@caratlogic/design-system 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/ActionButtonWithTooltip/ActionButtonWithTooltip.d.ts.map +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.d.ts +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.d.ts.map +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.hooks.d.ts +16 -0
- package/dist/components/molecules/DataEditableTable/DataEditableTable.hooks.d.ts.map +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.parts.d.ts +8 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.parts.d.ts.map +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.types.d.ts +20 -0
- package/dist/components/molecules/DataEditableTable/DataEditableTable.types.d.ts.map +1 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.utils.d.ts +7 -1
- package/dist/components/molecules/DataEditableTable/DataEditableTable.utils.d.ts.map +1 -1
- package/dist/components/molecules/FilterSelect/FilterMultiSelect.d.ts +8 -3
- package/dist/components/molecules/FilterSelect/FilterMultiSelect.d.ts.map +1 -1
- package/dist/components/molecules/FilterSelect/FilterSelect.d.ts.map +1 -1
- package/dist/components/molecules/FilterSelect/FilterSelect.utils.d.ts +10 -1
- package/dist/components/molecules/FilterSelect/FilterSelect.utils.d.ts.map +1 -1
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.accessibility.d.ts +3 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.d.ts +6 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.types.d.ts +19 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.utils.d.ts +7 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/ActiveFilterChips.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/index.d.ts +3 -0
- package/dist/components/molecules/Filters/ActiveFilterChips/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.accessibility.d.ts +2 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.hooks.d.ts +9 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.types.d.ts +11 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.utils.d.ts +3 -0
- package/dist/components/molecules/Filters/ContainsFilter/ContainsFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ContainsFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/ContainsFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.accessibility.d.ts +3 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.hooks.d.ts +11 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.types.d.ts +10 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.utils.d.ts +11 -0
- package/dist/components/molecules/Filters/DateRangeFilter/DateRangeFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/DateRangeFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/DateRangeFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.d.ts +6 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.types.d.ts +8 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.utils.d.ts +6 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/FilterCardSkeleton.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/index.d.ts +3 -0
- package/dist/components/molecules/Filters/FilterCardSkeleton/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.accessibility.d.ts +3 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.d.ts +6 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.types.d.ts +24 -0
- package/dist/components/molecules/Filters/FilterCellPopover/FilterCellPopover.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterCellPopover/index.d.ts +3 -0
- package/dist/components/molecules/Filters/FilterCellPopover/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.d.ts +6 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.types.d.ts +14 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.utils.d.ts +5 -0
- package/dist/components/molecules/Filters/FilterEmptyState/FilterEmptyState.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterEmptyState/index.d.ts +3 -0
- package/dist/components/molecules/Filters/FilterEmptyState/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.d.ts +6 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.types.d.ts +28 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.utils.d.ts +4 -0
- package/dist/components/molecules/Filters/FilterPanel/FilterPanel.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/FilterPanel/index.d.ts +3 -0
- package/dist/components/molecules/Filters/FilterPanel/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/Filters.hooks.d.ts +20 -0
- package/dist/components/molecules/Filters/Filters.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/Filters.types.d.ts +75 -0
- package/dist/components/molecules/Filters/Filters.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/Filters.utils.d.ts +66 -0
- package/dist/components/molecules/Filters/Filters.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.accessibility.d.ts +2 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.d.ts +6 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.hooks.d.ts +10 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.types.d.ts +10 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.utils.d.ts +4 -0
- package/dist/components/molecules/Filters/IdListInput/IdListInput.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/IdListInput/index.d.ts +3 -0
- package/dist/components/molecules/Filters/IdListInput/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.accessibility.d.ts +5 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.hooks.d.ts +18 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.types.d.ts +16 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.utils.d.ts +19 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/NumberExpressionFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/NumberExpressionFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.accessibility.d.ts +3 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.d.ts +6 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.hooks.d.ts +15 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.types.d.ts +17 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.utils.d.ts +13 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/NumberRangeInputs.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/index.d.ts +3 -0
- package/dist/components/molecules/Filters/NumberRangeInputs/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.accessibility.d.ts +2 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.hooks.d.ts +3 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.types.d.ts +34 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.utils.d.ts +24 -0
- package/dist/components/molecules/Filters/PickListFilter/PickListFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/PickListFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/PickListFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.hooks.d.ts +4 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.types.d.ts +22 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.utils.d.ts +7 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/ScaleRangeFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.d.ts +6 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.hooks.d.ts +7 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.hooks.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.types.d.ts +15 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.utils.d.ts +4 -0
- package/dist/components/molecules/Filters/ScrollFade/ScrollFade.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/ScrollFade/index.d.ts +3 -0
- package/dist/components/molecules/Filters/ScrollFade/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.accessibility.d.ts +6 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.d.ts +6 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.types.d.ts +7 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.utils.d.ts +3 -0
- package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.utils.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TriStateFilter/index.d.ts +3 -0
- package/dist/components/molecules/Filters/TriStateFilter/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TruncatedLabel/TruncatedLabel.d.ts +6 -0
- package/dist/components/molecules/Filters/TruncatedLabel/TruncatedLabel.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TruncatedLabel/TruncatedLabel.types.d.ts +5 -0
- package/dist/components/molecules/Filters/TruncatedLabel/TruncatedLabel.types.d.ts.map +1 -0
- package/dist/components/molecules/Filters/TruncatedLabel/index.d.ts +3 -0
- package/dist/components/molecules/Filters/TruncatedLabel/index.d.ts.map +1 -0
- package/dist/components/molecules/Filters/index.d.ts +18 -0
- package/dist/components/molecules/Filters/index.d.ts.map +1 -0
- package/dist/components/molecules/InventoryFilterSelects.d.ts.map +1 -1
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.accessibility.d.ts +11 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.d.ts +6 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.hooks.d.ts +9 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.hooks.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.parts.d.ts +5 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.parts.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.types.d.ts +66 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.types.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.utils.d.ts +14 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.utils.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/index.d.ts +5 -0
- package/dist/components/molecules/SavedSearches/SaveSearchDialog/index.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.d.ts +6 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.hooks.d.ts +7 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.hooks.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.types.d.ts +19 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.types.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.utils.d.ts +5 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.utils.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/index.d.ts +3 -0
- package/dist/components/molecules/SavedSearches/SavedSearchChipList/index.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.accessibility.d.ts +6 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.accessibility.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.d.ts +6 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.hooks.d.ts +3 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.hooks.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.parts.d.ts +7 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.parts.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.types.d.ts +56 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.types.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.utils.d.ts +18 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.utils.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/index.d.ts +4 -0
- package/dist/components/molecules/SavedSearches/SavedSearchesMenu/index.d.ts.map +1 -0
- package/dist/components/molecules/SavedSearches/index.d.ts +4 -0
- package/dist/components/molecules/SavedSearches/index.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.d.ts +11 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.types.d.ts +68 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.types.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.utils.d.ts +38 -0
- package/dist/components/organisms/Filters/FilterField/FilterField.utils.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterField/index.d.ts +4 -0
- package/dist/components/organisms/Filters/FilterField/index.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.accessibility.d.ts +8 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.accessibility.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.d.ts +9 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.hooks.d.ts +6 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.hooks.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.parts.d.ts +7 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.parts.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.types.d.ts +42 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.types.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.utils.d.ts +4 -0
- package/dist/components/organisms/Filters/FilterSurface/FilterSurface.utils.d.ts.map +1 -0
- package/dist/components/organisms/Filters/FilterSurface/index.d.ts +3 -0
- package/dist/components/organisms/Filters/FilterSurface/index.d.ts.map +1 -0
- package/dist/components/organisms/Filters/index.d.ts +3 -0
- package/dist/components/organisms/Filters/index.d.ts.map +1 -0
- package/dist/hooks/useTruncatedText.d.ts.map +1 -1
- package/dist/index.cjs.js +1979 -320
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1930 -322
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FilterFieldOption } from '../Filters.types';
|
|
2
|
+
/** `list` — searchable checkbox list. `chips` / `tiles` — pill or tile toggles. All scroll within a max height. */
|
|
3
|
+
export type PickListLayout = 'list' | 'chips' | 'tiles';
|
|
4
|
+
export interface PickListFilterProps {
|
|
5
|
+
options: FilterFieldOption[];
|
|
6
|
+
value: string[];
|
|
7
|
+
onChange: (values: string[]) => void;
|
|
8
|
+
ariaLabel: string;
|
|
9
|
+
layout?: PickListLayout;
|
|
10
|
+
/** List layout only: shows a search box filtering options by label. */
|
|
11
|
+
searchPlaceholder?: string;
|
|
12
|
+
/** Show the search box even for a short list (it otherwise appears from `SEARCH_MIN_OPTIONS`). */
|
|
13
|
+
alwaysSearchable?: boolean;
|
|
14
|
+
/** Tiles only: grid columns. */
|
|
15
|
+
columns?: number;
|
|
16
|
+
/** Extra classes on the scrolling option list, e.g. a different max height. */
|
|
17
|
+
listClassName?: string;
|
|
18
|
+
/** Grow into the free height of a stretched card instead of stopping at the usual max height. */
|
|
19
|
+
fill?: boolean;
|
|
20
|
+
/** One value at a time: list rows become radio buttons, a pill or tile replaces the previous pick. */
|
|
21
|
+
single?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface UsePickListFilterArgs {
|
|
24
|
+
options: FilterFieldOption[];
|
|
25
|
+
value: string[];
|
|
26
|
+
layout: PickListLayout;
|
|
27
|
+
}
|
|
28
|
+
export interface UsePickListFilterResult {
|
|
29
|
+
query: string;
|
|
30
|
+
setQuery: (query: string) => void;
|
|
31
|
+
visibleOptions: FilterFieldOption[];
|
|
32
|
+
selectedCount: number;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=PickListFilter.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickListFilter.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/PickListFilter/PickListFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,mHAAmH;AACnH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sGAAsG;IACtG,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getPillClassName } from '../Filters.utils';
|
|
2
|
+
import type { FilterFieldOption } from '../Filters.types';
|
|
3
|
+
export declare function filterOptionsByQuery(options: readonly FilterFieldOption[], query: string): FilterFieldOption[];
|
|
4
|
+
export declare const getChipClassName: typeof getPillClassName;
|
|
5
|
+
export declare function getTileClassName(selected: boolean): string;
|
|
6
|
+
/** The list's search box only appears once there are enough options to need it. */
|
|
7
|
+
export declare const SEARCH_MIN_OPTIONS = 9;
|
|
8
|
+
/** Long option sets scroll inside the card or popover instead of growing it. */
|
|
9
|
+
export declare const OPTIONS_SCROLL_CLASS_NAME = "max-h-48 overflow-y-auto";
|
|
10
|
+
/** Fills a stretched card: at least the usual height, growing into any space the row gives it (never driving the row height). */
|
|
11
|
+
export declare const OPTIONS_FILL_CLASS_NAME = "min-h-48 flex-1 basis-0 overflow-y-auto";
|
|
12
|
+
export declare const FILL_WRAPPER_CLASS_NAME = "flex min-h-0 flex-1 flex-col";
|
|
13
|
+
/** Card lists flow into as many columns as fit; popover lists stay one column. */
|
|
14
|
+
export declare const LIST_COLUMN_MIN_WIDTH = "10rem";
|
|
15
|
+
export declare const getOptionsScrollClassName: (fill: boolean) => string;
|
|
16
|
+
export declare const LIST_ROW_CLASS_NAME: string;
|
|
17
|
+
/** Picking a value: a single-choice list replaces (or clears) it, a multi-choice list toggles it. */
|
|
18
|
+
export declare const pickValue: (values: readonly string[], value: string, single: boolean) => string[];
|
|
19
|
+
/** The single-choice counterpart of the checkbox: same size, primary dot when picked. */
|
|
20
|
+
export declare const LIST_RADIO_CLASS_NAME = "size-4.5 shrink-0 cursor-pointer accent-primary";
|
|
21
|
+
/** Outlined (not filled) box until checked; the border is dark enough to read on white. */
|
|
22
|
+
export declare const LIST_CHECKBOX_CLASS_NAME = "size-4.5 border-muted-foreground/50 bg-card dark:border-muted-foreground/60 dark:bg-transparent";
|
|
23
|
+
export declare const SEARCH_BOX_CLASS_NAME = "flex h-9 items-center gap-2 rounded-md border border-input bg-card px-3 focus-within:border-primary focus-within:ring-2 focus-within:ring-primary/30";
|
|
24
|
+
//# sourceMappingURL=PickListFilter.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickListFilter.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/PickListFilter/PickListFilter.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,gBAAgB,EAEjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,KAAK,EAAE,MAAM,GACZ,iBAAiB,EAAE,CAMrB;AAED,eAAO,MAAM,gBAAgB,yBAAmB,CAAC;AAEjD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAK1D;AAED,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AAEpE,iIAAiI;AACjI,eAAO,MAAM,uBAAuB,4CACO,CAAC;AAC5C,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AAEtE,kFAAkF;AAClF,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C,eAAO,MAAM,yBAAyB,GAAI,MAAM,OAAO,KAAG,MACE,CAAC;AAE7D,eAAO,MAAM,mBAAmB,QAA0B,CAAC;AAE3D,qGAAqG;AACrG,eAAO,MAAM,SAAS,GACpB,QAAQ,SAAS,MAAM,EAAE,EACzB,OAAO,MAAM,EACb,QAAQ,OAAO,KACd,MAAM,EAGR,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,qBAAqB,oDACiB,CAAC;AAEpD,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB,oGAC8D,CAAC;AAEpG,eAAO,MAAM,qBAAqB,yJAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/PickListFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ScaleRangeFilterProps } from './ScaleRangeFilter.types';
|
|
3
|
+
export type { ScaleRangeFilterProps, ScalePosition, } from './ScaleRangeFilter.types';
|
|
4
|
+
/** Ordered-scale filter: click a start option, then an end option. */
|
|
5
|
+
export declare function ScaleRangeFilter({ options, value, onChange, ariaLabel, columns, fill, }: ScaleRangeFilterProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=ScaleRangeFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleRangeFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,YAAY,EACV,qBAAqB,EACrB,aAAa,GACd,MAAM,0BAA0B,CAAC;AAElC,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,IAAY,GACb,EAAE,qBAAqB,GAAG,YAAY,CA2BtC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { UseScaleRangeFilterArgs, UseScaleRangeFilterResult } from './ScaleRangeFilter.types';
|
|
2
|
+
/** First click picks the start option, the next click the end option; a click after that starts over. */
|
|
3
|
+
export declare function useScaleRangeFilter({ value, onChange, }: UseScaleRangeFilterArgs): UseScaleRangeFilterResult;
|
|
4
|
+
//# sourceMappingURL=ScaleRangeFilter.hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleRangeFilter.hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.hooks.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAElC,yGAAyG;AACzG,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,GACT,EAAE,uBAAuB,GAAG,yBAAyB,CAiBrD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FilterFieldOption, ScaleRangeValue } from '../Filters.types';
|
|
2
|
+
export interface ScaleRangeFilterProps {
|
|
3
|
+
/** Scales in scale order. */
|
|
4
|
+
options: FilterFieldOption[];
|
|
5
|
+
value?: ScaleRangeValue;
|
|
6
|
+
onChange: (value: ScaleRangeValue | undefined) => void;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
/** Fixed column count; omit to fit as many tiles as the width allows. */
|
|
9
|
+
columns?: number;
|
|
10
|
+
/** Larger tiles, for a roomy card; the compact size suits popovers. */
|
|
11
|
+
fill?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Where an option sits relative to the selected range. */
|
|
14
|
+
export type ScalePosition = 'end' | 'between' | 'outside';
|
|
15
|
+
export interface UseScaleRangeFilterArgs {
|
|
16
|
+
value: ScaleRangeValue | undefined;
|
|
17
|
+
onChange: (value: ScaleRangeValue | undefined) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface UseScaleRangeFilterResult {
|
|
20
|
+
selectOption: (option: string) => void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ScaleRangeFilter.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleRangeFilter.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,WAAW,qBAAqB;IACpC,6BAA6B;IAC7B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,KAAK,IAAI,CAAC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,eAAe,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,KAAK,IAAI,CAAC;CACxD;AAED,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FilterFieldOption, ScaleRangeValue } from '../Filters.types';
|
|
2
|
+
import type { ScalePosition } from './ScaleRangeFilter.types';
|
|
3
|
+
export declare function getScalePosition(options: readonly FilterFieldOption[], value: ScaleRangeValue | undefined, option: string): ScalePosition;
|
|
4
|
+
/** Next range after clicking `scale`: a fresh single-option range, or the end of the pending one. */
|
|
5
|
+
export declare function getNextScaleRange(anchor: string | null, option: string): ScaleRangeValue;
|
|
6
|
+
export declare function getScaleButtonClassName(position: ScalePosition, fill?: boolean): string;
|
|
7
|
+
//# sourceMappingURL=ScaleRangeFilter.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScaleRangeFilter.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScaleRangeFilter/ScaleRangeFilter.utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,MAAM,EAAE,MAAM,GACb,aAAa,CAMf;AAED,qGAAqG;AACrG,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,MAAM,EAAE,MAAM,GACb,eAAe,CAIjB;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,aAAa,EACvB,IAAI,UAAQ,GACX,MAAM,CAYR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScaleRangeFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { ScrollFadeProps } from './ScrollFade.types';
|
|
3
|
+
export type { ScrollFadeProps } from './ScrollFade.types';
|
|
4
|
+
/** Scroll container that fades its top / bottom edge while more content is hidden there, so it reads as scrollable. */
|
|
5
|
+
export declare function ScrollFade({ className, wrapperClassName, children, ...props }: ScrollFadeProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=ScrollFade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollFade.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScrollFade/ScrollFade.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,uHAAuH;AACvH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,YAAY,CAqBhC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { ScrollFadeState } from './ScrollFade.types';
|
|
3
|
+
export declare function useScrollFade(): ScrollFadeState & {
|
|
4
|
+
ref: RefObject<HTMLDivElement | null>;
|
|
5
|
+
update: () => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ScrollFade.hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollFade.hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScrollFade/ScrollFade.hooks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,wBAAgB,aAAa,IAAI,eAAe,GAAG;IACjD,GAAG,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACtC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAiCA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ScrollFadeProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Classes for the scrolling element itself (max height, layout). */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Classes for the outer positioning wrapper, e.g. to let it grow in a flex column. */
|
|
6
|
+
wrapperClassName?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface ScrollFadeState {
|
|
10
|
+
/** More content above the visible area. */
|
|
11
|
+
top: boolean;
|
|
12
|
+
/** More content below the visible area. */
|
|
13
|
+
bottom: boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ScrollFade.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollFade.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScrollFade/ScrollFade.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,GAAG,EAAE,OAAO,CAAC;IACb,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ScrollFadeState } from './ScrollFade.types';
|
|
2
|
+
export declare function getScrollFadeState(el: HTMLElement): ScrollFadeState;
|
|
3
|
+
export declare const FADE_BASE_CLASS_NAME = "pointer-events-none absolute inset-x-0 h-8 from-card to-transparent";
|
|
4
|
+
//# sourceMappingURL=ScrollFade.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollFade.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScrollFade/ScrollFade.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAK1D,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,WAAW,GAAG,eAAe,CAMnE;AAED,eAAO,MAAM,oBAAoB,wEACsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/ScrollFade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { KeyboardEvent } from 'react';
|
|
2
|
+
import type { TriStateValue } from '../Filters.types';
|
|
3
|
+
/** Arrow keys move and select within the radio group, wrapping at either end. */
|
|
4
|
+
export declare function getArrowKeyTarget(current: TriStateValue, key: string): TriStateValue | null;
|
|
5
|
+
export declare function createRadioGroupKeyDownHandler(current: TriStateValue, onChange: (value: TriStateValue) => void): (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
6
|
+
//# sourceMappingURL=TriStateFilter.accessibility.d.ts.map
|
package/dist/components/molecules/Filters/TriStateFilter/TriStateFilter.accessibility.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriStateFilter.accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TriStateFilter/TriStateFilter.accessibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,iFAAiF;AACjF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,MAAM,GACV,aAAa,GAAG,IAAI,CAStB;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GACvC,CAAC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAUhD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TriStateFilterProps } from './TriStateFilter.types';
|
|
3
|
+
export type { TriStateFilterProps } from './TriStateFilter.types';
|
|
4
|
+
/** Any / Yes / No radio group for boolean columns (e.g. Active). */
|
|
5
|
+
export declare function TriStateFilter({ value, onChange, ariaLabel, }: TriStateFilterProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=TriStateFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriStateFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TriStateFilter/TriStateFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAO1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,GAAG,YAAY,CAiCpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriStateFilter.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TriStateFilter/TriStateFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriStateFilter.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TriStateFilter/TriStateFilter.utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,KAAG,MACxB,CAAC;AAEjC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAKhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TriStateFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { TruncatedLabelProps } from './TruncatedLabel.types';
|
|
3
|
+
export type { TruncatedLabelProps } from './TruncatedLabel.types';
|
|
4
|
+
/** Single-line label that shows its full text in a tooltip, only while it is cut off. */
|
|
5
|
+
export declare function TruncatedLabel({ text, className, }: TruncatedLabelProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=TruncatedLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TruncatedLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TruncatedLabel/TruncatedLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAS1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,GACV,EAAE,mBAAmB,GAAG,YAAY,CAepC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TruncatedLabel.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TruncatedLabel/TruncatedLabel.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Filters/TruncatedLabel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './ActiveFilterChips';
|
|
2
|
+
export * from './ContainsFilter';
|
|
3
|
+
export * from './DateRangeFilter';
|
|
4
|
+
export * from './FilterCellPopover';
|
|
5
|
+
export * from './FilterEmptyState';
|
|
6
|
+
export * from './FilterPanel';
|
|
7
|
+
export * from './ScaleRangeFilter';
|
|
8
|
+
export * from './FilterCardSkeleton';
|
|
9
|
+
export * from './IdListInput';
|
|
10
|
+
export * from './NumberExpressionFilter';
|
|
11
|
+
export * from './NumberRangeInputs';
|
|
12
|
+
export * from './PickListFilter';
|
|
13
|
+
export * from './ScrollFade';
|
|
14
|
+
export * from './TriStateFilter';
|
|
15
|
+
export * from './TruncatedLabel';
|
|
16
|
+
export type { DatePreset, DateRangeValue, FilterControlType, FilterFieldOption, FilterFieldState, FilterValue, ScaleRangeValue, NumberRangeValue, NumberRuleExamples, TriStateValue, } from './Filters.types';
|
|
17
|
+
export { DATE_PRESET_OPTIONS, buildNumberRuleHelp, expandScaleRange, FILTER_COUNT_BADGE_CLASS_NAME, formatDateRange, formatScaleRange, formatNumberRange, formatSelectedCount, isFilterValueActive, parseNumberExpression, resolveDatePreset, resolveDateRange, splitIdList, } from './Filters.utils';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,YAAY,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,6BAA6B,EAC7B,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,GACZ,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InventoryFilterSelects.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/InventoryFilterSelects.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,gBAAgB,EAAE,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;CAC9C;
|
|
1
|
+
{"version":3,"file":"InventoryFilterSelects.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/InventoryFilterSelects.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,gBAAgB,EAAE,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;CAC9C;AA+BD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOtD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOtD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOnD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuB1D,CAAC"}
|
package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.accessibility.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const NAME_LABEL = "Name";
|
|
2
|
+
export declare const FILTERS_LABEL = "Filters saved";
|
|
3
|
+
export declare const NAME_REQUIRED_ERROR = "Enter a name for this search.";
|
|
4
|
+
export declare const DUPLICATE_TITLE = "Name already in use";
|
|
5
|
+
export declare const DUPLICATE_DESCRIPTION = "Save another search with this name?";
|
|
6
|
+
export declare const DUPLICATE_DETAIL_LABEL = "Existing saved search";
|
|
7
|
+
export declare const SAVE_ANYWAY_LABEL = "Save anyway";
|
|
8
|
+
export declare const CHANGE_NAME_LABEL = "Change name";
|
|
9
|
+
export declare const GO_BACK_LABEL = "Go back";
|
|
10
|
+
export declare const CANCEL_LABEL = "Cancel";
|
|
11
|
+
//# sourceMappingURL=SaveSearchDialog.accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.accessibility.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAS,CAAC;AACjC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,mBAAmB,kCAAkC,CAAC;AAEnE,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,sBAAsB,0BAA0B,CAAC;AAE9D,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,YAAY,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SaveSearchDialogProps } from './SaveSearchDialog.types';
|
|
3
|
+
export type { SaveSearchDialogProps } from './SaveSearchDialog.types';
|
|
4
|
+
/** Names the current filters and saves them; also used to rename a saved search. */
|
|
5
|
+
export declare function SaveSearchDialog({ open, onClose, onSave, defaultName, chips, title, icon, submitLabel, note, existingNames, limitWarning, existingWarning, saving, }: SaveSearchDialogProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=SaveSearchDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAQtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,MAAM,EACN,WAAgB,EAChB,KAAK,EACL,KAAqB,EACrB,IAAsC,EACtC,WAA2B,EAC3B,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,MAAc,GACf,EAAE,qBAAqB,GAAG,YAAY,CAmHtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UseSaveSearchDialogArgs, UseSaveSearchDialogResult } from './SaveSearchDialog.types';
|
|
2
|
+
/**
|
|
3
|
+
* The name field restarts from `defaultName` every time the dialog opens. Save stays enabled and reports a
|
|
4
|
+
* missing name; an optional warning can come before the form (e.g. already saved), and a reused name, then the
|
|
5
|
+
* saved-search limit, each get a follow-up warning that replaces the
|
|
6
|
+
* form until the user confirms (the last one stays up, showing progress, until the caller closes on success).
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSaveSearchDialog({ open, defaultName, onSave, saving, existingNames, hasLimitWarning, hasExistingWarning, onClose, }: UseSaveSearchDialogArgs): UseSaveSearchDialogResult;
|
|
9
|
+
//# sourceMappingURL=SaveSearchDialog.hooks.d.ts.map
|
package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.hooks.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.hooks.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAMlC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,WAAW,EACX,MAAM,EACN,MAAM,EACN,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,OAAO,GACR,EAAE,uBAAuB,GAAG,yBAAyB,CAoDrD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SaveSearchWarningDetail } from './SaveSearchDialog.types';
|
|
3
|
+
/** The search a warning is about, in the dialog body (long names stay on one line, full text on hover). */
|
|
4
|
+
export declare function WarningDetail({ label, value, }: SaveSearchWarningDetail): ReactElement;
|
|
5
|
+
//# sourceMappingURL=SaveSearchDialog.parts.d.ts.map
|
package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.parts.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.parts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAGxE,2GAA2G;AAC3G,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,GACN,EAAE,uBAAuB,GAAG,YAAY,CAUxC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SaveSearchDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
/** Receives the trimmed name. */
|
|
6
|
+
onSave: (name: string) => void;
|
|
7
|
+
/** Name filled in each time the dialog opens. */
|
|
8
|
+
defaultName?: string;
|
|
9
|
+
/** Filter summaries being saved; omit to hide the "Filters saved" block (e.g. when renaming). */
|
|
10
|
+
chips?: string[];
|
|
11
|
+
/** Default `Save search`. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Header tile icon. Default a bookmark. */
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Default `Save search`. */
|
|
16
|
+
submitLabel?: string;
|
|
17
|
+
/** Small print under the filters, e.g. a limit on how many searches are kept. */
|
|
18
|
+
note?: ReactNode;
|
|
19
|
+
/** Names already taken (e.g. the user's other saved searches); reusing one (ignoring case) asks for confirmation first. */
|
|
20
|
+
existingNames?: string[];
|
|
21
|
+
/** Asked before saving, e.g. when the saved-search limit means the oldest one will be removed. */
|
|
22
|
+
limitWarning?: SaveSearchWarning;
|
|
23
|
+
/** Asked before the form opens, e.g. when these filters are already saved; Cancel closes, confirming shows the form. */
|
|
24
|
+
existingWarning?: SaveSearchWarning;
|
|
25
|
+
saving?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface SaveSearchWarning {
|
|
28
|
+
title: string;
|
|
29
|
+
/** One short line under the title (dialog rule: no wrapping subtitles); details go in `detail`. */
|
|
30
|
+
description: string;
|
|
31
|
+
/** Shown in the body, e.g. the name of the search involved. */
|
|
32
|
+
detail?: SaveSearchWarningDetail;
|
|
33
|
+
/** Default `Save anyway`. */
|
|
34
|
+
confirmLabel?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface SaveSearchWarningDetail {
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}
|
|
40
|
+
/** The form, or one of the follow-up warnings that replace it until confirmed or sent back. */
|
|
41
|
+
export type SaveSearchStep = 'existing' | 'form' | 'duplicate' | 'limit';
|
|
42
|
+
export interface UseSaveSearchDialogArgs {
|
|
43
|
+
open: boolean;
|
|
44
|
+
defaultName: string;
|
|
45
|
+
onSave: (name: string) => void;
|
|
46
|
+
saving: boolean;
|
|
47
|
+
existingNames: readonly string[];
|
|
48
|
+
hasLimitWarning: boolean;
|
|
49
|
+
hasExistingWarning: boolean;
|
|
50
|
+
onClose: () => void;
|
|
51
|
+
}
|
|
52
|
+
export interface UseSaveSearchDialogResult {
|
|
53
|
+
formId: string;
|
|
54
|
+
inputId: string;
|
|
55
|
+
name: string;
|
|
56
|
+
setName: (name: string) => void;
|
|
57
|
+
/** Shown under the name once a save is tried with an invalid name. */
|
|
58
|
+
error: string | undefined;
|
|
59
|
+
submit: () => void;
|
|
60
|
+
step: SaveSearchStep;
|
|
61
|
+
/** Moves past the current warning: to the next one, or saves. */
|
|
62
|
+
confirmWarning: () => void;
|
|
63
|
+
/** Back to the form, keeping the typed name (or closes, from the warning shown before the form). */
|
|
64
|
+
cancelWarning: () => void;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=SaveSearchDialog.types.d.ts.map
|
package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iCAAiC;IACjC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2HAA2H;IAC3H,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,kGAAkG;IAClG,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,wHAAwH;IACxH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+FAA+F;AAC/F,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,sEAAsE;IACtE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;IACrB,iEAAiE;IACjE,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,oGAAoG;IACpG,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SaveSearchStep, SaveSearchWarning } from './SaveSearchDialog.types';
|
|
2
|
+
export declare const SAVED_SEARCH_NAME_MAX_LENGTH = 100;
|
|
3
|
+
export declare const isValidSearchName: (name: string) => boolean;
|
|
4
|
+
export declare const isDuplicateSearchName: (name: string, existingNames: readonly string[]) => boolean;
|
|
5
|
+
export declare const FILTERS_PANEL_CLASS_NAME = "rounded-lg border border-border bg-muted/40 p-3";
|
|
6
|
+
/** The warning for a step: the caller's for the limit and already-saved steps, built-in copy for a reused name. */
|
|
7
|
+
export declare function getStepWarning(step: SaveSearchStep, name: string, warnings: {
|
|
8
|
+
limitWarning?: SaveSearchWarning;
|
|
9
|
+
existingWarning?: SaveSearchWarning;
|
|
10
|
+
}): SaveSearchWarning | undefined;
|
|
11
|
+
/** Cancel closes before the form; later warnings go back to it. */
|
|
12
|
+
export declare function getWarningCancelLabel(step: SaveSearchStep): string;
|
|
13
|
+
export declare const WARNING_DETAIL_CLASS_NAME = "flex min-w-0 flex-col gap-0.5 rounded-xl border border-border bg-muted/30 px-3.5 py-3";
|
|
14
|
+
//# sourceMappingURL=SaveSearchDialog.utils.d.ts.map
|
package/dist/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.utils.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveSearchDialog.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/SaveSearchDialog.utils.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,OAGhD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,MAAM,MAAM,EACZ,eAAe,SAAS,MAAM,EAAE,KAC/B,OAGF,CAAC;AAEF,eAAO,MAAM,wBAAwB,oDACc,CAAC;AAEpD,mHAAmH;AACnH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;IACR,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,eAAe,CAAC,EAAE,iBAAiB,CAAC;CACrC,GACA,iBAAiB,GAAG,SAAS,CAW/B;AAED,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAIlE;AAED,eAAO,MAAM,yBAAyB,0FACmD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SaveSearchDialog } from './SaveSearchDialog';
|
|
2
|
+
export type { SaveSearchDialogProps } from './SaveSearchDialog';
|
|
3
|
+
export type { SaveSearchWarning, SaveSearchWarningDetail, } from './SaveSearchDialog.types';
|
|
4
|
+
export { isDuplicateSearchName, isValidSearchName, SAVED_SEARCH_NAME_MAX_LENGTH, } from './SaveSearchDialog.utils';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SaveSearchDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EACV,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SavedSearchChipListProps } from './SavedSearchChipList.types';
|
|
3
|
+
export type { SavedSearchChipListProps } from './SavedSearchChipList.types';
|
|
4
|
+
/** Read-only filter summaries of a saved search, as pills; optionally one line ending in "+N more". */
|
|
5
|
+
export declare function SavedSearchChipList({ chips, emptyText, collapsible, className, }: SavedSearchChipListProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=SavedSearchChipList.d.ts.map
|
package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedSearchChipList.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAM5E,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,uGAAuG;AACvG,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAwB,EACxB,WAAmB,EACnB,SAAS,GACV,EAAE,wBAAwB,GAAG,YAAY,CAyCzC"}
|
package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.hooks.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UseChipOverflowResult } from './SavedSearchChipList.types';
|
|
2
|
+
/**
|
|
3
|
+
* Fits chips on one line with the "+N more" link right after the last one. Renders every chip, counts
|
|
4
|
+
* how many wrap, then drops chips until the link itself fits; a resize starts the measurement over.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useChipOverflow(chips: string[], enabled: boolean): UseChipOverflowResult;
|
|
7
|
+
//# sourceMappingURL=SavedSearchChipList.hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedSearchChipList.hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.hooks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGzE;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,EAAE,OAAO,GACf,qBAAqB,CAgDvB"}
|
package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.types.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface SavedSearchChipListProps {
|
|
2
|
+
/** One short summary per filter, e.g. `Red, Blue` or `1.00 – 3.00`. */
|
|
3
|
+
chips: string[];
|
|
4
|
+
/** Shown when there are no chips. */
|
|
5
|
+
emptyText?: string;
|
|
6
|
+
/** Keep to one line, ending in a "+N more" link that reveals the rest. */
|
|
7
|
+
collapsible?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UseChipOverflowResult {
|
|
11
|
+
listRef: (node: HTMLUListElement | null) => void;
|
|
12
|
+
expanded: boolean;
|
|
13
|
+
toggle: () => void;
|
|
14
|
+
/** Chips shown (all of them unless collapsed and too many to fit one line). */
|
|
15
|
+
visibleChips: string[];
|
|
16
|
+
/** Chips folded into "+N more". */
|
|
17
|
+
hiddenCount: number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=SavedSearchChipList.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedSearchChipList.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,uEAAuE;IACvE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+EAA+E;IAC/E,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.utils.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const SAVED_SEARCH_CHIP_CLASS_NAME = "inline-flex h-6 min-w-0 max-w-full items-center rounded-full border border-primary/30 bg-primary/5 px-2 text-xs text-foreground";
|
|
2
|
+
/** Children laid out below the first one's line. */
|
|
3
|
+
export declare function countWrapped(items: readonly HTMLElement[]): number;
|
|
4
|
+
export declare const getShowMoreLabel: (hiddenCount: number) => string;
|
|
5
|
+
//# sourceMappingURL=SavedSearchChipList.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedSearchChipList.utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchChipList/SavedSearchChipList.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oIAC0F,CAAC;AAEpI,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAIlE;AAED,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,KAAG,MAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchChipList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SEARCH_INPUT_LABEL = "Find a saved search";
|
|
2
|
+
export declare const getRenameLabel: (name: string) => string;
|
|
3
|
+
export declare const getDeleteLabel: (name: string) => string;
|
|
4
|
+
export declare const NO_MATCH_TITLE = "No matches";
|
|
5
|
+
export declare const getNoMatchText: (query: string) => string;
|
|
6
|
+
//# sourceMappingURL=SavedSearchesMenu.accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SavedSearchesMenu.accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SavedSearches/SavedSearchesMenu/SavedSearchesMenu.accessibility.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAA0B,CAAC;AAEzE,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAA0B,CAAC;AAEzE,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MACD,CAAC"}
|