Skip to content

Commit

Permalink
feat(types): export types in preset packages Filters and QuickFilters…
Browse files Browse the repository at this point in the history
… so that they are available for consumption in published packages (#3003)
  • Loading branch information
ByronDWall authored Dec 4, 2024
1 parent 225bee9 commit 36a4cc2
Show file tree
Hide file tree
Showing 11 changed files with 336 additions and 76 deletions.
11 changes: 11 additions & 0 deletions .changeset/neat-mails-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@commercetools-uikit/quick-filters': patch
'@commercetools-uikit/filters': patch
'@commercetools-uikit/spacings': patch
'@commercetools-uikit/buttons': patch
'@commercetools-uikit/fields': patch
'@commercetools-uikit/inputs': patch
'@commercetools-frontend/ui-kit': patch
---

Bundles types with UI Kit preset packages, Filters package, QuickFilters package
7 changes: 6 additions & 1 deletion packages/components/filters/src/export-types.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export type { TFiltersProps } from './filters';
export type {
TFiltersProps,
TFilterConfiguration,
TFilterGroupConfiguration,
TAppliedFilter,
} from './filters';
4 changes: 2 additions & 2 deletions packages/components/filters/src/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface TAddFilterOptionGroup extends TOptionObject {
key: string;
}

type TAppliedFilter = {
export type TAppliedFilter = {
/**
* unique identifier for the filter
*/
Expand Down Expand Up @@ -106,7 +106,7 @@ export type TFilterConfiguration = {
isDisabled?: boolean;
};

type TFilterGroupConfiguration = {
export type TFilterGroupConfiguration = {
/**
* unique identifier for the filter group
*/
Expand Down
1 change: 1 addition & 0 deletions packages/components/filters/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default } from './filters';
export { default as version } from './version';
export * from './export-types';
2 changes: 2 additions & 0 deletions packages/components/quick-filters/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { default } from './quick-filters';
export { default as version } from './version';

export * from './export-types';
35 changes: 28 additions & 7 deletions presets/buttons/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
export { default as AccessibleButton } from '@commercetools-uikit/accessible-button';
export { default as FlatButton } from '@commercetools-uikit/flat-button';
export { default as PrimaryButton } from '@commercetools-uikit/primary-button';
export { default as IconButton } from '@commercetools-uikit/icon-button';
export { default as LinkButton } from '@commercetools-uikit/link-button';
export { default as SecondaryButton } from '@commercetools-uikit/secondary-button';
export { default as SecondaryIconButton } from '@commercetools-uikit/secondary-icon-button';
export {
default as AccessibleButton,
type TAccessibleButtonProps,
} from '@commercetools-uikit/accessible-button';
export {
default as FlatButton,
type TFlatButtonProps,
} from '@commercetools-uikit/flat-button';
export {
default as PrimaryButton,
type TPrimaryButtonProps,
} from '@commercetools-uikit/primary-button';
export {
default as IconButton,
type TIconButtonProps,
} from '@commercetools-uikit/icon-button';
export {
default as LinkButton,
type TLinkButtonProps,
} from '@commercetools-uikit/link-button';
export {
default as SecondaryButton,
type TSecondaryButtonProps,
} from '@commercetools-uikit/secondary-button';
export {
default as SecondaryIconButton,
type TSecondaryButtonIconProps,
} from '@commercetools-uikit/secondary-icon-button';
80 changes: 64 additions & 16 deletions presets/fields/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,65 @@
export { default as TextField } from '@commercetools-uikit/text-field';
export { default as DateField } from '@commercetools-uikit/date-field';
export { default as DateTimeField } from '@commercetools-uikit/date-time-field';
export { default as DateRangeField } from '@commercetools-uikit/date-range-field';
export { default as TimeField } from '@commercetools-uikit/time-field';
export { default as MultilineTextField } from '@commercetools-uikit/multiline-text-field';
export { default as LocalizedTextField } from '@commercetools-uikit/localized-text-field';
export { default as LocalizedMultilineTextField } from '@commercetools-uikit/localized-multiline-text-field';
export { default as NumberField } from '@commercetools-uikit/number-field';
export { default as MoneyField } from '@commercetools-uikit/money-field';
export { default as SelectField } from '@commercetools-uikit/select-field';
export { default as AsyncSelectField } from '@commercetools-uikit/async-select-field';
export {
default as TextField,
type TTextFieldProps,
} from '@commercetools-uikit/text-field';
export {
default as DateField,
type TDateFieldProps,
} from '@commercetools-uikit/date-field';
export {
default as DateTimeField,
type TDateTimeFieldProps,
} from '@commercetools-uikit/date-time-field';
export {
default as DateRangeField,
type TDateRangeFieldProps,
} from '@commercetools-uikit/date-range-field';
export {
default as TimeField,
type TTimeFieldProps,
} from '@commercetools-uikit/time-field';
export {
default as MultilineTextField,
type TMultiTextFieldProps,
} from '@commercetools-uikit/multiline-text-field';
export {
default as LocalizedTextField,
type TLocalizedTextFieldProps,
} from '@commercetools-uikit/localized-text-field';
export {
default as LocalizedMultilineTextField,
type TLocalizedMultilineTextFieldProps,
} from '@commercetools-uikit/localized-multiline-text-field';
export {
default as NumberField,
type TNumberFieldProps,
} from '@commercetools-uikit/number-field';
export {
default as MoneyField,
type TMoneyFieldProps,
} from '@commercetools-uikit/money-field';
export {
default as SelectField,
type TSelectFieldProps,
} from '@commercetools-uikit/select-field';
export {
default as AsyncSelectField,
type TAsyncSelectFieldProps,
} from '@commercetools-uikit/async-select-field';
export { default as CreatableSelectField } from '@commercetools-uikit/creatable-select-field';
export { default as AsyncCreatableSelectField } from '@commercetools-uikit/async-creatable-select-field';
export { default as PasswordField } from '@commercetools-uikit/password-field';
export { default as RadioField } from '@commercetools-uikit/radio-field';
export { default as SearchSelectField } from '@commercetools-uikit/search-select-field';
export {
default as AsyncCreatableSelectField,
type TAsyncCreatableSelectFieldProps,
} from '@commercetools-uikit/async-creatable-select-field';
export {
default as PasswordField,
type TPasswordField,
} from '@commercetools-uikit/password-field';
export {
default as RadioField,
type TRadioFieldProps,
} from '@commercetools-uikit/radio-field';
export {
default as SearchSelectField,
type TSearchSelectFieldProps,
} from '@commercetools-uikit/search-select-field';
127 changes: 103 additions & 24 deletions presets/inputs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,103 @@
export { default as AsyncCreatableSelectInput } from '@commercetools-uikit/async-creatable-select-input';
export { default as AsyncSelectInput } from '@commercetools-uikit/async-select-input';
export { default as CreatableSelectInput } from '@commercetools-uikit/creatable-select-input';
export { default as DateInput } from '@commercetools-uikit/date-input';
export { default as DateRangeInput } from '@commercetools-uikit/date-range-input';
export { default as DateTimeInput } from '@commercetools-uikit/date-time-input';
export { default as LocalizedMultilineTextInput } from '@commercetools-uikit/localized-multiline-text-input';
export { default as LocalizedTextInput } from '@commercetools-uikit/localized-text-input';
export { default as MoneyInput } from '@commercetools-uikit/money-input';
export { default as LocalizedMoneyInput } from '@commercetools-uikit/localized-money-input';
export { default as MultilineTextInput } from '@commercetools-uikit/multiline-text-input';
export { default as NumberInput } from '@commercetools-uikit/number-input';
export { default as PasswordInput } from '@commercetools-uikit/password-input';
export { default as SelectInput } from '@commercetools-uikit/select-input';
export { default as TextInput } from '@commercetools-uikit/text-input';
export { default as RichTextInput } from '@commercetools-uikit/rich-text-input';
export { default as LocalizedRichTextInput } from '@commercetools-uikit/localized-rich-text-input';
export { default as TimeInput } from '@commercetools-uikit/time-input';
export { default as ToggleInput } from '@commercetools-uikit/toggle-input';
export { default as CheckboxInput } from '@commercetools-uikit/checkbox-input';
export { default as RadioInput } from '@commercetools-uikit/radio-input';
export { default as SearchSelectInput } from '@commercetools-uikit/search-select-input';
export { default as SearchTextInput } from '@commercetools-uikit/search-text-input';
export { default as SelectableSearchInput } from '@commercetools-uikit/selectable-search-input';
export {
default as AsyncCreatableSelectInput,
type TAsyncCreatableSelectInputProps,
} from '@commercetools-uikit/async-creatable-select-input';
export {
default as AsyncSelectInput,
type TAsyncSelectInputProps,
} from '@commercetools-uikit/async-select-input';
export {
default as CreatableSelectInput,
type TCreatableSelectInputProps,
} from '@commercetools-uikit/creatable-select-input';
export {
default as DateInput,
type TDateInput,
} from '@commercetools-uikit/date-input';
export {
default as DateRangeInput,
type TDateRangeInputProps,
} from '@commercetools-uikit/date-range-input';
export {
default as DateTimeInput,
type TDateTimeInputProps,
} from '@commercetools-uikit/date-time-input';
export {
default as LocalizedMultilineTextInput,
type TLocalizedMultilineTextInputProps,
} from '@commercetools-uikit/localized-multiline-text-input';
export {
default as LocalizedTextInput,
type TLocalizedTextInputProps,
} from '@commercetools-uikit/localized-text-input';
export {
default as MoneyInput,
type TCurrencyCode,
type TMoneyValue,
type TValue,
} from '@commercetools-uikit/money-input';
export {
default as LocalizedMoneyInput,
type TLocalizedMoneyInputProps,
} from '@commercetools-uikit/localized-money-input';
export {
default as MultilineTextInput,
type TMultilineTextInputProps,
} from '@commercetools-uikit/multiline-text-input';
export {
default as NumberInput,
type TNumberInputProps,
} from '@commercetools-uikit/number-input';
export {
default as PasswordInput,
type TPasswordInputProps,
} from '@commercetools-uikit/password-input';
export {
default as SelectInput,
type TSelectInputProps,
type TOption,
type TOptionObject,
type TOptions,
type TCustomEvent,
} from '@commercetools-uikit/select-input';
export {
default as TextInput,
type TTextInputProps,
} from '@commercetools-uikit/text-input';
export {
default as RichTextInput,
type TRichTextInputProps,
} from '@commercetools-uikit/rich-text-input';
export {
default as LocalizedRichTextInput,
type TLocalizedRichTextInputProps,
} from '@commercetools-uikit/localized-rich-text-input';
export {
default as TimeInput,
type TTimeInputProps,
} from '@commercetools-uikit/time-input';
export {
default as ToggleInput,
type TToggleInputProps,
} from '@commercetools-uikit/toggle-input';
export {
default as CheckboxInput,
type TCheckboxProps,
} from '@commercetools-uikit/checkbox-input';
export {
default as RadioInput,
type TGroupProps,
type TOptionProps,
} from '@commercetools-uikit/radio-input';
export {
default as SearchSelectInput,
type TSearchSelectInputProps,
} from '@commercetools-uikit/search-select-input';
export {
default as SearchTextInput,
type TSearchTextInputProps,
} from '@commercetools-uikit/search-text-input';
export {
default as SelectableSearchInput,
type TSelectableSearchInputProps,
} from '@commercetools-uikit/selectable-search-input';
6 changes: 5 additions & 1 deletion presets/spacings/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export { default } from './spacings';
export { default, type TSpacings } from './spacings';
export type { TInlineProps } from '@commercetools-uikit/spacings-inline';
export type { TInsetProps } from '@commercetools-uikit/spacings-inset';
export type { TInsetSquishProps } from '@commercetools-uikit/spacings-inset-squish';
export type { TStackProps } from '@commercetools-uikit/spacings-stack';
2 changes: 1 addition & 1 deletion presets/spacings/src/spacings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Inset from '@commercetools-uikit/spacings-inset';
import InsetSquish from '@commercetools-uikit/spacings-inset-squish';
import Stack from '@commercetools-uikit/spacings-stack';

type TSpacings = {
export type TSpacings = {
Inline: typeof Inline;
Inset: typeof Inset;
InsetSquish: typeof InsetSquish;
Expand Down
Loading

0 comments on commit 36a4cc2

Please sign in to comment.