Skip to content

Commit

Permalink
feat: export useful types
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprevot committed Aug 24, 2023
1 parent 068d37a commit eace0a1
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 32 deletions.
7 changes: 7 additions & 0 deletions packages/fractal/src/components/Autocomplete/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
export { default as Autocomplete } from './Autocomplete.js'
export type {
AutocompleteEmptyProps,
AutocompleteItemGroupProps,
AutocompleteLoadingProps,
AutocompleteProps,
CombinedRefs as AutocompleteRefs,
} from './Autocomplete.types.js'
export { default as AutocompleteEmpty } from './AutocompleteEmpty.js'
export { default as AutocompleteItem } from './AutocompleteItem.js'
export { default as AutocompleteItemGroup } from './AutocompleteItemGroup.js'
Expand Down
1 change: 1 addition & 0 deletions packages/fractal/src/components/Avatar/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Avatar } from './Avatar.js'
export type { AvatarProps } from './Avatar.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Button } from './Button.js'
export type { ButtonProps } from './Button.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Card/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Card } from './Card.js'
export type { CardProps } from './Card.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Header/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Header } from './Header.js'
export type { HeaderProps } from './Header.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/InputCheckbox/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as InputCheckbox } from './InputCheckbox.js'
export type { InputCheckboxProps } from './InputCheckbox.types.js'
7 changes: 7 additions & 0 deletions packages/fractal/src/components/InputDate/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export { default as InputDate } from './InputDate.js'
export type {
CombinedRefs as InputDateRefs,
DateFormat,
Descriptions,
InputDateProps,
Placeholders,
} from './InputDate.types.js'
5 changes: 5 additions & 0 deletions packages/fractal/src/components/InputPhone/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export { default as InputPhone } from './InputPhone.js'
export type {
CombinedRefs as InputPhoneRefs,
InputPhoneProps,
PhoneNumber,
} from './InputPhone.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/InputPinCode/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as InputPinCode } from './InputPinCode.js'
export type { InputPinCodeProps } from './InputPinCode.types.js'
4 changes: 4 additions & 0 deletions packages/fractal/src/components/InputRadio/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export { default as InputRadio } from './InputRadio.js'
export type {
InputRadioGroupProps,
InputRadioProps,
} from './InputRadio.types.js'
export { default as InputRadioGroup } from './InputRadioGroup.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/InputText/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as InputText } from './InputText.js'
export type { InputTextProps } from './InputText.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Loader/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Loader } from './Loader.js'
export type { LoaderProps } from './Loader.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Logo/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Logo } from './Logo.js'
export type { LogoProps } from './Logo.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Paper/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Paper } from './Paper.js'
export type { PaperProps } from './Paper.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Progress/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Progress } from './Progress.js'
export type { ProgressProps } from './Progress.types.js'
7 changes: 7 additions & 0 deletions packages/fractal/src/components/Select/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
export { default as Select } from './Select.js'
export type {
CombinedRefs as SelectRefs,
SelectItemGroupProps,
SelectItemProps,
SelectItemSeparatorProps,
SelectProps,
} from './Select.types.js'
export { default as SelectItem } from './SelectItem.js'
export { default as SelectItemGroup } from './SelectItemGroup.js'
export { default as SelectItemSeparator } from './SelectItemSeparator.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Stepper/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Stepper } from './Stepper.js'
export type { StepperProps } from './Stepper.types.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Toggle/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Toggle } from './Toggle.js'
export type { ToggleProps } from './Toggle.types.js'
4 changes: 4 additions & 0 deletions packages/fractal/src/components/ToggleGroup/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export { default as ToggleGroup } from './ToggleGroup.js'
export type {
ToggleGroupItemProps,
ToggleGroupProps,
} from './ToggleGroup.types.js'
export { default as ToggleGroupItem } from './ToggleGroupItem.js'
1 change: 1 addition & 0 deletions packages/fractal/src/components/Typography/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as Typography } from './Typography.js'
export type { TypographyProps } from './Typography.types.js'
52 changes: 20 additions & 32 deletions packages/fractal/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
export {
Autocomplete,
AutocompleteEmpty,
AutocompleteItem,
AutocompleteItemGroup,
AutocompleteItemSeparator,
AutocompleteLoading,
} from './Autocomplete/index.js'
export { Avatar } from './Avatar/index.js'
export { Button } from './Button/index.js'
export { Card } from './Card/index.js'
export { Header } from './Header/index.js'
export { InputCheckbox } from './InputCheckbox/index.js'
export { InputDate } from './InputDate/index.js'
export { InputPhone } from './InputPhone/index.js'
export { InputPinCode } from './InputPinCode/index.js'
export { InputRadio, InputRadioGroup } from './InputRadio/index.js'
export { InputText } from './InputText/index.js'
export { Loader } from './Loader/index.js'
export { Logo } from './Logo/index.js'
export { Paper } from './Paper/index.js'
export { Progress } from './Progress/index.js'
export {
Select,
SelectItem,
SelectItemGroup,
SelectItemSeparator,
} from './Select/index.js'
export { Stepper } from './Stepper/index.js'
export { Toggle } from './Toggle/index.js'
export { ToggleGroup, ToggleGroupItem } from './ToggleGroup/index.js'
export { Typography } from './Typography/index.js'
export * from './Autocomplete/index.js'
export * from './Avatar/index.js'
export * from './Button/index.js'
export * from './Card/index.js'
export * from './Header/index.js'
export * from './InputCheckbox/index.js'
export * from './InputDate/index.js'
export * from './InputPhone/index.js'
export * from './InputPinCode/index.js'
export * from './InputRadio/index.js'
export * from './InputText/index.js'
export * from './Loader/index.js'
export * from './Logo/index.js'
export * from './Paper/index.js'
export * from './Progress/index.js'
export * from './Select/index.js'
export * from './Stepper/index.js'
export * from './Toggle/index.js'
export * from './ToggleGroup/index.js'
export * from './Typography/index.js'

0 comments on commit eace0a1

Please sign in to comment.