From 8bee35834ad551cc0ab80ef6f3bb8bd37cbed16a Mon Sep 17 00:00:00 2001 From: Byron Wall <87667330+ByronDWall@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:29:14 -0500 Subject: [PATCH] feat(types): adds types for Filters, QuickFilters, Spacings, DataTable, and DataTableManager components to UI Kit preset (#3004) --- .changeset/curly-mirrors-eat.md | 5 +++++ presets/ui-kit/src/index.ts | 39 ++++++++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 .changeset/curly-mirrors-eat.md diff --git a/.changeset/curly-mirrors-eat.md b/.changeset/curly-mirrors-eat.md new file mode 100644 index 0000000000..cccbeffec6 --- /dev/null +++ b/.changeset/curly-mirrors-eat.md @@ -0,0 +1,5 @@ +--- +'@commercetools-frontend/ui-kit': patch +--- + +Add types for Filters, QuickFilters, Spacings, DataTable, and DataTableManager components to UI Kit preset diff --git a/presets/ui-kit/src/index.ts b/presets/ui-kit/src/index.ts index 975c1b0957..cd6910127e 100644 --- a/presets/ui-kit/src/index.ts +++ b/presets/ui-kit/src/index.ts @@ -77,7 +77,13 @@ export { type TFieldErrors, } from '@commercetools-uikit/field-errors'; /** TODO: Add Types w/next release */ -export { default as Filters } from '@commercetools-uikit/filters'; +export { + default as Filters, + type TFiltersProps, + type TFilterConfiguration, + type TFilterGroupConfiguration, + type TAppliedFilter, +} from '@commercetools-uikit/filters'; export { default as Grid, type TGridItemProps, @@ -106,16 +112,39 @@ export { type TProgressBarProps, } from '@commercetools-uikit/progress-bar'; /** TODO: Add Types w/next release */ -export { default as QuickFilters } from '@commercetools-uikit/quick-filters'; +export { + default as QuickFilters, + type TQuickFiltersProps, +} from '@commercetools-uikit/quick-filters'; /** TODO: Add Types w/next release */ -export { default as Spacings } from '@commercetools-uikit/spacings'; +export { + default as Spacings, + type TSpacings, + type TInlineProps, + type TInsetProps, + type TInsetSquishProps, + type TStackProps, +} from '@commercetools-uikit/spacings'; export { default as Stamp, type TStampProps, type TTone as TStampTone, } from '@commercetools-uikit/stamp'; -export { default as DataTable } from '@commercetools-uikit/data-table'; -export { default as DataTableManager } from '@commercetools-uikit/data-table-manager'; +export { + default as DataTable, + type TRow, + type TColumn, + type TDataTableProps, +} from '@commercetools-uikit/data-table'; +export { + default as DataTableManager, + type TDataTableManagerProps, + type TColumnProps, + type TColumnData, + type TDataTableSettingsProps, + type TColumnSettingsManagerProps, + type TDataTableManagerContext, +} from '@commercetools-uikit/data-table-manager'; export { Tag, TagList,