Skip to content

Commit

Permalink
Refactor component file names for improved clarity and consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannemas committed Apr 26, 2024
1 parent fe0f523 commit 97bbc4a
Show file tree
Hide file tree
Showing 73 changed files with 67 additions and 62 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-carpets-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jeanne-mas/svelte-ui': patch
---

Renamed internal svelte files to improve debug experience
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/lib/components/alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export {
type Attributes as DescriptionAttributes,
type Props as DescriptionProps,
type Slots as DescriptionSlots,
} from './Description.svelte';
} from './AlertDescription.svelte';
export {
default as Root,
defaultVariant,
Expand All @@ -14,11 +14,11 @@ export {
type Props as RootProps,
type Slots as RootSlots,
type Variant,
} from './Root.svelte';
} from './AlertRoot.svelte';
export {
default as Title,
styles as titleStyles,
type Attributes as TitleAttributes,
type Props as TitleProps,
type Slots as TitleSlots,
} from './Title.svelte';
} from './AlertTitle.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions src/lib/components/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,63 @@ export {
type Attributes as CellAttributes,
type Props as CellProps,
type Slots as CellSlots,
} from './Cell.svelte';
} from './CalendarCell.svelte';
export {
default as Day,
styles as dayStyles,
type Attributes as DayAttributes,
type Props as DayProps,
type Slots as DaySlots,
} from './Day.svelte';
} from './CalendarDay.svelte';
export {
default as Grid,
styles as gridStyles,
type Attributes as GridAttributes,
type Props as GridProps,
type Slots as GridSlots,
} from './Grid.svelte';
} from './CalendarGrid.svelte';
export {
default as GridBody,
styles as gridBodyStyles,
type Attributes as GridBodyAttributes,
type Props as GridBodyProps,
type Slots as GridBodySlots,
} from './GridBody.svelte';
} from './CalendarGridBody.svelte';
export {
default as GridHead,
styles as gridHeadStyles,
type Attributes as GridHeadAttributes,
type Props as GridHeadProps,
type Slots as GridHeadSlots,
} from './GridHead.svelte';
} from './CalendarGridHead.svelte';
export {
default as GridRow,
styles as gridRowStyles,
type Attributes as GridRowAttributes,
type Props as GridRowProps,
type Slots as GridRowSlots,
} from './GridRow.svelte';
} from './CalendarGridRow.svelte';
export {
default as HeadCell,
styles as headCellStyles,
type Attributes as HeadCellAttributes,
type Props as HeadCellProps,
type Slots as HeadCellSlots,
} from './HeadCell.svelte';
} from './CalendarHeadCell.svelte';
export {
default as Header,
styles as headerStyles,
type Attributes as HeaderAttributes,
type Props as HeaderProps,
type Slots as HeaderSlots,
} from './Header.svelte';
} from './CalendarHeader.svelte';
export {
default as Heading,
styles as headingStyles,
type Attributes as HeadingAttributes,
type Props as HeadingProps,
type Slots as HeadingSlots,
} from './Heading.svelte';
} from './CalendarHeading.svelte';
export {
default as Months,
breakpoints as monthsBreakpoints,
Expand All @@ -70,21 +70,21 @@ export {
type Breakpoint as MonthsBreakpoint,
type Props as MonthsProps,
type Slots as MonthsSlots,
} from './Months.svelte';
} from './CalendarMonths.svelte';
export {
default as NextButton,
styles as nextButtonStyles,
type Attributes as NextButtonAttributes,
type Props as NextButtonProps,
type Slots as NextButtonSlots,
} from './NextButton.svelte';
} from './CalendarNextButton.svelte';
export {
default as PreviousButton,
styles as previousButtonStyles,
type Attributes as PreviousButtonAttributes,
type Props as PreviousButtonProps,
type Slots as PreviousButtonSlots,
} from './PreviousButton.svelte';
} from './CalendarPreviousButton.svelte';
export {
default as Root,
styles as rootStyles,
Expand All @@ -93,4 +93,4 @@ export {
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './CalendarRoot.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/lib/components/card/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@ export {
type Attributes as ContentAttributes,
type Props as ContentProps,
type Slots as ContentSlots,
} from './Content.svelte';
} from './CardContent.svelte';
export {
default as Description,
styles as descriptionStyles,
type Attributes as DescriptionAttributes,
type Props as DescriptionProps,
type Slots as DescriptionSlots,
} from './Description.svelte';
} from './CardDescription.svelte';
export {
default as Footer,
styles as footerStyles,
type Attributes as FooterAttributes,
type Props as FooterProps,
type Slots as FooterSlots,
} from './Footer.svelte';
} from './CardFooter.svelte';
export {
default as Header,
styles as headerStyles,
type Attributes as HeaderAttributes,
type Props as HeaderProps,
type Slots as HeaderSlots,
} from './Header.svelte';
} from './CardHeader.svelte';
export {
default as Root,
styles as rootStyles,
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './CardRoot.svelte';
export {
default as Title,
styles as titleStyles,
type Attributes as TitleAttributes,
type Props as TitleProps,
type Slots as TitleSlots,
} from './Title.svelte';
} from './CardTitle.svelte';
File renamed without changes.
6 changes: 3 additions & 3 deletions src/lib/components/collapsible/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ export {
type Attributes as ContentAttributes,
type Props as ContentProps,
type Slots as ContentSlots,
} from './Content.svelte';
} from './CollapsibleContent.svelte';
export {
default as Root,
styles as rootStyles,
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './CollapsibleRoot.svelte';
export {
default as Trigger,
styles as triggerStyles,
type Attributes as TriggerAttributes,
type Props as TriggerProps,
type Slots as TriggerSlots,
} from './Trigger.svelte';
} from './CollapsibleTrigger.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions src/lib/components/form/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,59 @@ export {
type Attributes as ControlAttributes,
type Props as ControlProps,
type Slots as ControlSlots,
} from './Control.svelte';
} from './FormControl.svelte';
export {
default as Description,
styles as descriptionStyles,
type Attributes as DescriptionAttributes,
type Props as DescriptionProps,
type Slots as DescriptionSlots,
} from './Description.svelte';
} from './FormDescription.svelte';
export {
default as ElementField,
styles as elementFieldStyles,
type Attributes as ElementFieldAttributes,
type Props as ElementFieldProps,
} from './ElementField.svelte';
} from './FormElementField.svelte';
export {
default as Field,
styles as fieldStyles,
type Attributes as FieldAttributes,
type Props as FieldProps,
type Slots as FieldSlots,
} from './Field.svelte';
} from './FormField.svelte';
export {
default as FieldErrors,
styles as fieldErrorsStyles,
type Attributes as FieldErrorsAttributes,
type Props as FieldErrorsProps,
type Slots as FieldErrorsSlots,
} from './FieldErrors.svelte';
} from './FormFieldErrors.svelte';
export {
default as Fieldset,
styles as fieldsetStyles,
type Attributes as FieldsetAttributes,
type Props as FieldsetProps,
type Slots as FieldsetSlots,
} from './Fieldset.svelte';
} from './FormFieldset.svelte';
export {
default as Label,
styles as labelStyles,
type Attributes as LabelAttributes,
type Props as LabelProps,
type Slots as LabelSlots,
} from './Label.svelte';
} from './FormLabel.svelte';
export {
default as Legend,
styles as legendStyles,
type Attributes as LegendAttributes,
type Props as LegendProps,
type Slots as LegendSlots,
} from './Legend.svelte';
} from './FormLegend.svelte';
export {
default as Root,
styles as rootStyles,
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './FormRoot.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/lib/components/popover/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ export {
type Attributes as CloseAttributes,
type Props as CloseProps,
type Slots as CloseSlots,
} from './Close.svelte';
} from './PopoverClose.svelte';
export {
default as Content,
styles as contentStyles,
type Attributes as ContentAttributes,
type Props as ContentProps,
type Slots as ContentSlots,
} from './Content.svelte';
} from './PopoverContent.svelte';
export {
default as Root,
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './PopoverRoot.svelte';
export {
default as Trigger,
styles as triggerStyles,
type Attributes as TriggerAttributes,
type Props as TriggerProps,
type Slots as TriggerSlots,
} from './Trigger.svelte';
} from './PopoverTrigger.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions src/lib/components/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,59 @@ export {
type Attributes as ContentAttributes,
type Props as ContentProps,
type Slots as ContentSlots,
} from './Content.svelte';
} from './SelectContent.svelte';
export {
default as Group,
styles as groupStyles,
type Attributes as GroupAttributes,
type Props as GroupProps,
type Slots as GroupSlots,
} from './Group.svelte';
} from './SelectGroup.svelte';
export {
default as Input,
styles as inputStyles,
type Attributes as InputAttributes,
type Props as InputProps,
type Slots as InputSlots,
} from './Input.svelte';
} from './SelectInput.svelte';
export {
default as Item,
styles as itemStyles,
type Attributes as ItemAttributes,
type Props as ItemProps,
type Slots as ItemSlots,
} from './Item.svelte';
} from './SelectItem.svelte';
export {
default as Label,
styles as labelStyles,
type Attributes as LabelAttributes,
type Props as LabelProps,
type Slots as LabelSlots,
} from './Label.svelte';
} from './SelectLabel.svelte';
export {
default as Root,
type Attributes as RootAttributes,
type Props as RootProps,
type Slots as RootSlots,
} from './Root.svelte';
} from './SelectRoot.svelte';
export {
default as Separator,
styles as separatorStyles,
type Attributes as SeparatorAttributes,
type Props as SeparatorProps,
type Slots as SeparatorSlots,
} from './Separator.svelte';
} from './SelectSeparator.svelte';
export {
default as Trigger,
styles as triggerStyles,
type Attributes as TriggerAttributes,
type Props as TriggerProps,
type Slots as TriggerSlots,
} from './Trigger.svelte';
} from './SelectTrigger.svelte';
export {
default as Value,
styles as valueStyles,
type Attributes as ValueAttributes,
type Props as ValueProps,
type Slots as ValueSlots,
} from './Value.svelte';
} from './SelectValue.svelte';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 97bbc4a

Please sign in to comment.