@loadsmart/loadsmart-ui 6.0.6 → 6.0.8
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/{DragDropFile.context-50968b55.js → DragDropFile.context-c7cd1441.js} +1 -1
- package/dist/{DragDropFile.context-50968b55.js.map → DragDropFile.context-c7cd1441.js.map} +1 -1
- package/dist/common/BackButton/BackButton.d.ts +4 -4
- package/dist/common/BackButton/index.d.ts +2 -2
- package/dist/common/CloseButton/CloseButton.d.ts +6 -6
- package/dist/common/CloseButton/index.d.ts +2 -2
- package/dist/common/SelectionWrapper.d.ts +14 -14
- package/dist/components/Accordion/Accordion.context.d.ts +10 -10
- package/dist/components/Accordion/Accordion.d.ts +19 -19
- package/dist/components/Accordion/Accordion.stories.d.ts +8 -8
- package/dist/components/Accordion/Accordion.test.d.ts +1 -1
- package/dist/components/Accordion/index.d.ts +2 -2
- package/dist/components/Banner/Banner.d.ts +25 -25
- package/dist/components/Banner/Banner.stories.d.ts +106 -106
- package/dist/components/Banner/Banner.test.d.ts +1 -1
- package/dist/components/Banner/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -5
- package/dist/components/Breadcrumbs/index.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +22 -22
- package/dist/components/Button/Button.stories.d.ts +32 -32
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +9 -9
- package/dist/components/Calendar/Calendar.helpers.d.ts +2 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +21 -21
- package/dist/components/Calendar/Calendar.test.d.ts +1 -1
- package/dist/components/Calendar/Calendar.types.d.ts +63 -63
- package/dist/components/Calendar/Date.helper.d.ts +214 -214
- package/dist/components/Calendar/Date.helper.test.d.ts +1 -1
- package/dist/components/Calendar/DateFormat.helper.d.ts +35 -35
- package/dist/components/Calendar/DateFormat.helper.test.d.ts +1 -1
- package/dist/components/Calendar/Month.helper.d.ts +58 -58
- package/dist/components/Calendar/Month.helper.test.d.ts +1 -1
- package/dist/components/Calendar/PickerModeToggle.d.ts +5 -5
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -9
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -3
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +5 -5
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -3
- package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +9 -9
- package/dist/components/Calendar/useCalendar.d.ts +19 -19
- package/dist/components/Calendar/usePickerMode.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +16 -16
- package/dist/components/Card/Card.stories.d.ts +8 -8
- package/dist/components/Card/Card.test.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts +8 -8
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +13 -13
- package/dist/components/DatePicker/DatePicker.stories.d.ts +22 -22
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +27 -27
- package/dist/components/DatePicker/DateRangePicker.d.ts +4 -4
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -21
- package/dist/components/DatePicker/DateRangePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -3
- package/dist/components/DatePicker/useDatePicker.d.ts +585 -584
- package/dist/components/DatePicker/useDateRangePicker.d.ts +877 -876
- package/dist/components/Dialog/Dialog.d.ts +37 -37
- package/dist/components/Dialog/Dialog.stories.d.ts +67 -67
- package/dist/components/Dialog/Dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +4 -4
- package/dist/components/Dialog/useDialog.d.ts +12 -12
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +5 -5
- package/dist/components/DragDropFile/DragDropFile.d.ts +7 -7
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
- package/dist/components/DragDropFile/components/DropZone.d.ts +3 -3
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +3 -3
- package/dist/components/DragDropFile/components/FileList.d.ts +3 -3
- package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +6 -6
- package/dist/components/DragDropFile/index.d.ts +3 -3
- package/dist/components/DragDropFile/mocks.d.ts +9 -9
- package/dist/components/DragDropFile/styles.d.ts +10 -10
- package/dist/components/DragDropFile/types.d.ts +71 -71
- package/dist/components/Drawer/Drawer.d.ts +28 -28
- package/dist/components/Drawer/Drawer.stories.d.ts +6 -6
- package/dist/components/Drawer/Drawer.test.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.context.d.ts +4 -4
- package/dist/components/Dropdown/Dropdown.d.ts +47 -47
- package/dist/components/Dropdown/Dropdown.fixtures.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.stories.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +49 -49
- package/dist/components/Dropdown/DropdownMenu.d.ts +8 -8
- package/dist/components/Dropdown/DropdownTrigger.d.ts +22 -21
- package/dist/components/Dropdown/index.d.ts +6 -6
- package/dist/components/Dropdown/useDropdown.d.ts +14 -14
- package/dist/components/Dropdown/useDropdown.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.mocks.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.stories.d.ts +32 -32
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +22 -22
- package/dist/components/EmptyState/EmptyStateWithIcon.d.ts +4 -4
- package/dist/components/EmptyState/EmptyStateWithIllustration.d.ts +4 -4
- package/dist/components/EmptyState/Illustration.d.ts +4 -4
- package/dist/components/EmptyState/index.d.ts +3 -3
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +4 -4
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +13 -13
- package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +1 -1
- package/dist/components/ErrorMessage/index.d.ts +2 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +7 -7
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +5 -5
- package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +1 -1
- package/dist/components/HighlightMatch/index.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts +27 -27
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +16 -16
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +10 -10
- package/dist/components/IconFactory/IconFactory.stories.d.ts +6 -6
- package/dist/components/IconFactory/IconFactory.test.d.ts +1 -1
- package/dist/components/IconFactory/index.d.ts +2 -2
- package/dist/components/Label/Label.d.ts +18 -18
- package/dist/components/Label/Label.stories.d.ts +14 -14
- package/dist/components/Label/Label.test.d.ts +1 -1
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Layout/Box.d.ts +15 -15
- package/dist/components/Layout/Grid.d.ts +11 -11
- package/dist/components/Layout/Group.d.ts +14 -14
- package/dist/components/Layout/Layout.d.ts +16 -16
- package/dist/components/Layout/Layout.stories.d.ts +146 -146
- package/dist/components/Layout/Layout.types.d.ts +3 -3
- package/dist/components/Layout/Layout.utils.d.ts +3 -3
- package/dist/components/Layout/Sidebar.d.ts +13 -13
- package/dist/components/Layout/Stack.d.ts +19 -19
- package/dist/components/Layout/Switcher.d.ts +12 -12
- package/dist/components/Layout/index.d.ts +7 -7
- package/dist/components/Link/Link.d.ts +9 -9
- package/dist/components/Link/Link.stories.d.ts +5 -5
- package/dist/components/Link/Link.test.d.ts +1 -1
- package/dist/components/Link/index.d.ts +3 -3
- package/dist/components/Link/useSafeLink.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +13 -13
- package/dist/components/Loaders/LoadingBar.stories.d.ts +5 -5
- package/dist/components/Loaders/LoadingBar.test.d.ts +1 -1
- package/dist/components/Loaders/LoadingDots.d.ts +5 -5
- package/dist/components/Loaders/LoadingDots.stories.d.ts +6 -6
- package/dist/components/Loaders/LoadingDots.test.d.ts +1 -1
- package/dist/components/Loaders/Spinner.d.ts +5 -5
- package/dist/components/Loaders/Spinner.stories.d.ts +5 -5
- package/dist/components/Loaders/Spinner.test.d.ts +1 -1
- package/dist/components/Loaders/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +22 -22
- package/dist/components/Modal/Modal.stories.d.ts +30 -30
- package/dist/components/Modal/Modal.test.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.constants.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.helper.d.ts +15 -15
- package/dist/components/Pagination/Pagination.stories.d.ts +5 -5
- package/dist/components/Pagination/Pagination.test.d.ts +1 -1
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/PaginationItem.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/usePagination.d.ts +3 -3
- package/dist/components/Pagination/usePagination.test.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -10
- package/dist/components/Popover/Popover.stories.d.ts +5 -5
- package/dist/components/Popover/Popover.test.d.ts +1 -1
- package/dist/components/Popover/Popover.types.d.ts +33 -33
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +12 -12
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +10 -10
- package/dist/components/Radio/Radio.stories.d.ts +8 -8
- package/dist/components/Radio/Radio.test.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Section/Section.d.ts +12 -12
- package/dist/components/Section/Section.test.d.ts +1 -1
- package/dist/components/Section/Sections.stories.d.ts +5 -5
- package/dist/components/Section/index.d.ts +2 -2
- package/dist/components/Select/Select.constants.d.ts +2 -2
- package/dist/components/Select/Select.context.d.ts +6 -6
- package/dist/components/Select/Select.d.ts +13 -13
- package/dist/components/Select/Select.fixtures.d.ts +28 -28
- package/dist/components/Select/Select.stories.d.ts +18 -18
- package/dist/components/Select/Select.test.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +121 -121
- package/dist/components/Select/SelectCreatableOption.d.ts +3 -3
- package/dist/components/Select/SelectEmpty.d.ts +3 -3
- package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts +3 -3
- package/dist/components/Select/SelectOption.test.d.ts +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +3 -3
- package/dist/components/Select/components.d.ts +2 -2
- package/dist/components/Select/index.d.ts +3 -3
- package/dist/components/Select/useSelect.d.ts +8 -8
- package/dist/components/Select/useSelect.helpers.d.ts +6 -6
- package/dist/components/Select/useSelect.helpers.test.d.ts +1 -1
- package/dist/components/Select/useSelect.test.d.ts +1 -1
- package/dist/components/Select/useSelectExternal.d.ts +2 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +14 -14
- package/dist/components/SideNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/index.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/Menu.d.ts +17 -17
- package/dist/components/SideNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +6 -6
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -5
- package/dist/components/SideNavigation/Separator/Separator.test.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/index.d.ts +1 -1
- package/dist/components/SideNavigation/SideNavigation.d.ts +34 -34
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +5 -5
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -1
- package/dist/components/SideNavigation/index.d.ts +4 -4
- package/dist/components/SideNavigation/useSideNavigation.d.ts +8 -8
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +12 -12
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +7 -7
- package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +19 -19
- package/dist/components/Steps/Steps.fixtures.d.ts +6 -6
- package/dist/components/Steps/Steps.helpers.d.ts +2 -2
- package/dist/components/Steps/Steps.stories.d.ts +5 -5
- package/dist/components/Steps/Steps.test.d.ts +1 -1
- package/dist/components/Steps/Steps.types.d.ts +5 -5
- package/dist/components/Steps/StepsContext.d.ts +3 -3
- package/dist/components/Steps/StepsStep.d.ts +8 -8
- package/dist/components/Steps/index.d.ts +5 -5
- package/dist/components/Steps/useStep.test.d.ts +1 -1
- package/dist/components/Steps/useSteps.d.ts +30 -30
- package/dist/components/Switch/Switch.d.ts +11 -11
- package/dist/components/Switch/Switch.stories.d.ts +5 -5
- package/dist/components/Switch/Switch.test.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Selection.d.ts +35 -35
- package/dist/components/Table/Table.d.ts +44 -44
- package/dist/components/Table/Table.fixtures.d.ts +29 -29
- package/dist/components/Table/Table.stories.d.ts +61 -61
- package/dist/components/Table/Table.test.d.ts +1 -1
- package/dist/components/Table/Table.types.d.ts +73 -73
- package/dist/components/Table/TableSortHandle.d.ts +7 -7
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/useSortBy.d.ts +16 -16
- package/dist/components/Table/useSortBy.test.d.ts +1 -1
- package/dist/components/Table/useSortBy.types.d.ts +16 -16
- package/dist/components/TablePagination/RowsPerPage.d.ts +3 -3
- package/dist/components/TablePagination/TablePagination.d.ts +3 -3
- package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.styles.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.test.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.types.d.ts +59 -59
- package/dist/components/TablePagination/TablePaginationActions.d.ts +10 -10
- package/dist/components/TablePagination/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +54 -54
- package/dist/components/Tabs/Tabs.stories.d.ts +23 -23
- package/dist/components/Tabs/Tabs.test.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -6
- package/dist/components/Tabs/TabsContext.d.ts +9 -9
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +19 -19
- package/dist/components/Tag/Tag.stories.d.ts +41 -41
- package/dist/components/Tag/Tag.test.d.ts +1 -1
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +15 -15
- package/dist/components/Text/Text.stories.d.ts +5 -5
- package/dist/components/Text/Text.test.d.ts +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +19 -19
- package/dist/components/TextField/TextField.stories.d.ts +11 -11
- package/dist/components/TextField/TextField.test.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +4 -4
- package/dist/components/TextField/useTextField.d.ts +6 -6
- package/dist/components/Textarea/Textarea.d.ts +17 -17
- package/dist/components/Textarea/Textarea.stories.d.ts +11 -11
- package/dist/components/Textarea/Textarea.test.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +11 -11
- package/dist/components/Toast/Toast.stories.d.ts +12 -12
- package/dist/components/Toast/Toast.test.d.ts +1 -1
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +4 -4
- package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.constants.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +26 -26
- package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +5 -5
- package/dist/components/ToggleGroup/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +23 -23
- package/dist/components/Tooltip/Tooltip.stories.d.ts +13 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TopNavigation/Logo/Logo.d.ts +14 -14
- package/dist/components/TopNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/index.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/Menu.d.ts +18 -18
- package/dist/components/TopNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +17 -17
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/index.d.ts +1 -1
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +7 -7
- package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
- package/dist/components/TopNavigation/TopNavigation.d.ts +17 -17
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -5
- package/dist/components/TopNavigation/index.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +12 -13
- package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +1 -1
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +1 -1
- package/dist/hooks/useDidMount/index.d.ts +1 -1
- package/dist/hooks/useDidMount/useDidMount.d.ts +9 -9
- package/dist/hooks/useDidMount/useDidMount.test.d.ts +1 -1
- package/dist/hooks/useFingerprint/index.d.ts +1 -1
- package/dist/hooks/useFingerprint/useFingerprint.d.ts +18 -18
- package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +1 -1
- package/dist/hooks/useFocusTrap/index.d.ts +2 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +27 -27
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +7 -7
- package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +1 -1
- package/dist/hooks/useFocusWithin/index.d.ts +2 -2
- package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +15 -15
- package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +1 -1
- package/dist/hooks/useHeightExpansionToggler/index.d.ts +2 -2
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +14 -14
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +1 -1
- package/dist/hooks/useID/index.d.ts +1 -1
- package/dist/hooks/useID/useID.d.ts +2 -2
- package/dist/hooks/useSelectable/SelectableStrategy.d.ts +11 -11
- package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +1 -1
- package/dist/hooks/useSelectable/index.d.ts +2 -2
- package/dist/hooks/useSelectable/useSelectable.d.ts +6 -6
- package/dist/hooks/useSelectable/useSelectable.test.d.ts +1 -1
- package/dist/hooks/useSelectable/useSelectable.types.d.ts +46 -46
- package/dist/hooks/useWindowResize/index.d.ts +1 -1
- package/dist/hooks/useWindowResize/useWindowResize.d.ts +5 -5
- package/dist/index.d.ts +97 -97
- package/dist/index.js +375 -374
- package/dist/index.js.map +1 -1
- package/dist/miranda-compatibility.theme-ec2c3370.js +2 -0
- package/dist/miranda-compatibility.theme-ec2c3370.js.map +1 -0
- package/dist/prop-9e9ff08a.js +2 -0
- package/dist/prop-9e9ff08a.js.map +1 -0
- package/dist/styles/activatable.d.ts +10 -10
- package/dist/styles/disableable.d.ts +10 -10
- package/dist/styles/ellipsizable.d.ts +7 -7
- package/dist/styles/focusable.d.ts +10 -10
- package/dist/styles/font.d.ts +16 -16
- package/dist/styles/font.test.d.ts +1 -1
- package/dist/styles/hidden.d.ts +7 -7
- package/dist/styles/hoverable.d.ts +10 -10
- package/dist/styles/transition.d.ts +11 -11
- package/dist/styles/typography.d.ts +27 -27
- package/dist/styles/typography.test.d.ts +1 -1
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +42 -42
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +41 -41
- package/dist/testing/DatePickerEvent/index.d.ts +2 -2
- package/dist/testing/DragDropFileEvent/DragDropFileEvent.d.ts +6 -6
- package/dist/testing/DragDropFileEvent/index.d.ts +1 -1
- package/dist/testing/SelectEvent/SelectEvent.d.ts +66 -66
- package/dist/testing/SelectEvent/SelectEvent.test.d.ts +1 -1
- package/dist/testing/SelectEvent/index.d.ts +1 -1
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +10 -10
- package/dist/testing/getInterpolatedStyles/index.d.ts +1 -1
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
- package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
- package/dist/tests/generator.d.ts +35 -35
- package/dist/tests/renderer.d.ts +10 -10
- package/dist/theming/index.d.ts +16 -16
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/themes/alice.theme.d.ts +757 -755
- package/dist/theming/themes/index.d.ts +3 -3
- package/dist/theming/themes/loadsmart.theme.d.ts +739 -737
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +752 -750
- package/dist/theming/theming.helpers.d.ts +22 -22
- package/dist/{toArray-8fc577bb.js → toArray-b56541b4.js} +1 -1
- package/dist/toArray-b56541b4.js.map +1 -0
- package/dist/tools/conditional.d.ts +39 -39
- package/dist/tools/conditional.test.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/prop.d.ts +15 -15
- package/dist/tools/prop.test.d.ts +1 -1
- package/dist/utils/toolset/awaitTo.d.ts +10 -10
- package/dist/utils/toolset/debounce.d.ts +1 -1
- package/dist/utils/toolset/flatten.d.ts +1 -1
- package/dist/utils/toolset/formatBytes.d.ts +4 -4
- package/dist/utils/toolset/formatBytes.test.d.ts +1 -1
- package/dist/utils/toolset/get.d.ts +1 -1
- package/dist/utils/toolset/getID.d.ts +13 -13
- package/dist/utils/toolset/getID.test.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +1 -1
- package/dist/utils/toolset/highlightMatch.d.ts +9 -9
- package/dist/utils/toolset/highlightMatch.test.d.ts +1 -1
- package/dist/utils/toolset/interleave.d.ts +2 -2
- package/dist/utils/toolset/interleave.test.d.ts +1 -1
- package/dist/utils/toolset/isEmpty.d.ts +1 -1
- package/dist/utils/toolset/isThenable.d.ts +5 -5
- package/dist/utils/toolset/isThenable.test.d.ts +1 -1
- package/dist/utils/toolset/keyboard.d.ts +24 -24
- package/dist/utils/toolset/omit.d.ts +1 -1
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +1 -1
- package/dist/utils/toolset/rem.d.ts +3 -3
- package/dist/utils/toolset/styledCompounds.d.ts +13 -13
- package/dist/utils/toolset/toArray.d.ts +2 -2
- package/dist/utils/types/ColorScheme.d.ts +2 -2
- package/dist/utils/types/EventLike.d.ts +10 -10
- package/dist/utils/types/InterpolatedStyle.d.ts +2 -2
- package/dist/utils/types/Status.d.ts +7 -7
- package/package.json +8 -7
- package/src/components/Dropdown/Dropdown.stories.tsx +16 -7
- package/src/components/Dropdown/DropdownTrigger.tsx +19 -8
- package/src/components/Table/Table.tsx +1 -1
- package/src/theming/themes/alice.theme.ts +2 -0
- package/src/theming/themes/loadsmart.theme.ts +2 -0
- package/src/theming/themes/miranda-compatibility.theme.ts +2 -0
- package/dist/miranda-compatibility.theme-781b0886.js +0 -2
- package/dist/miranda-compatibility.theme-781b0886.js.map +0 -1
- package/dist/prop-32998961.js +0 -2
- package/dist/prop-32998961.js.map +0 -1
- package/dist/toArray-8fc577bb.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
type FingerprintAdapter<T> = (item: T) => string;
|
|
2
|
-
/**
|
|
3
|
-
* This hook helps with stabilizing changes for components that rely on non-primitive props, more specifically, arrays,
|
|
4
|
-
* objects, maps, sets and so on; when we need to update an internal state based on such types of prop, we might run into an infinite loop.
|
|
5
|
-
* By creating a fingerprint - a string that identifies that set of items - we can garantee that the same set of items will
|
|
6
|
-
* always return the same fingerprint, thus, making check for changes more predictable.
|
|
7
|
-
*
|
|
8
|
-
* @param adapter - adapter function that gets a unique identifier for each item in the `items` prop
|
|
9
|
-
* @param items - list of items whose fingerprint should be checked.
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
declare function useFingerprint<T>(adapter: FingerprintAdapter<T>, items: T[]): {
|
|
13
|
-
fingerprint: string;
|
|
14
|
-
getFingerprint: (items?: T[] | null, insert?: boolean) => string;
|
|
15
|
-
resetFingerprint: (items: T[]) => void;
|
|
16
|
-
hasSameFingerprint: (otherItems: T[]) => boolean;
|
|
17
|
-
};
|
|
18
|
-
export default useFingerprint;
|
|
1
|
+
declare type FingerprintAdapter<T> = (item: T) => string;
|
|
2
|
+
/**
|
|
3
|
+
* This hook helps with stabilizing changes for components that rely on non-primitive props, more specifically, arrays,
|
|
4
|
+
* objects, maps, sets and so on; when we need to update an internal state based on such types of prop, we might run into an infinite loop.
|
|
5
|
+
* By creating a fingerprint - a string that identifies that set of items - we can garantee that the same set of items will
|
|
6
|
+
* always return the same fingerprint, thus, making check for changes more predictable.
|
|
7
|
+
*
|
|
8
|
+
* @param adapter - adapter function that gets a unique identifier for each item in the `items` prop
|
|
9
|
+
* @param items - list of items whose fingerprint should be checked.
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
declare function useFingerprint<T>(adapter: FingerprintAdapter<T>, items: T[]): {
|
|
13
|
+
fingerprint: string;
|
|
14
|
+
getFingerprint: (items?: T[] | null, insert?: boolean) => string;
|
|
15
|
+
resetFingerprint: (items: T[]) => void;
|
|
16
|
+
hasSameFingerprint: (otherItems: T[]) => boolean;
|
|
17
|
+
};
|
|
18
|
+
export default useFingerprint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as useFocusTrap } from './useFocusTrap';
|
|
2
|
-
export type { useFocusTrapProps } from './useFocusTrap';
|
|
1
|
+
export { default as useFocusTrap } from './useFocusTrap';
|
|
2
|
+
export type { useFocusTrapProps } from './useFocusTrap';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import type { SupportedKey } from
|
|
2
|
-
export interface useFocusTrapProps {
|
|
3
|
-
onActivate?: () => void;
|
|
4
|
-
onDeactivate?: () => void;
|
|
5
|
-
keys?: SupportedKey[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Custom hook that limits the focusable elements within a container, when activated.
|
|
9
|
-
*
|
|
10
|
-
* Based on https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets.
|
|
11
|
-
*
|
|
12
|
-
* @param {useFocusTrapProps} props
|
|
13
|
-
* @param {RefObject} props.containerRef - Ref to the container that will be the boundary for the focus trap.
|
|
14
|
-
* @param {() => void} props.onActivate - Called when the focus trap is activated.
|
|
15
|
-
* @param {() => void} props.onDeactivate - Called when the focus trap is deactivated.
|
|
16
|
-
* @param {(KeyboardEvent['key'])[]} props.keys - Keys that will move the focus inside
|
|
17
|
-
* the container (The current implementation only track focus for button elements). We current
|
|
18
|
-
* support `Tab`, `ArrowUp`, and `ArrowDown` keys. If not provided, only the `Tab` key will be used.
|
|
19
|
-
* @returns {Object}
|
|
20
|
-
*/
|
|
21
|
-
declare function useFocusTrap<T extends HTMLElement>(props: useFocusTrapProps): {
|
|
22
|
-
containerRef: (container: T | null) => void;
|
|
23
|
-
active: boolean;
|
|
24
|
-
activate: () => void;
|
|
25
|
-
deactivate: () => void;
|
|
26
|
-
};
|
|
27
|
-
export default useFocusTrap;
|
|
1
|
+
import type { SupportedKey } from "../../utils/toolset/keyboard";
|
|
2
|
+
export interface useFocusTrapProps {
|
|
3
|
+
onActivate?: () => void;
|
|
4
|
+
onDeactivate?: () => void;
|
|
5
|
+
keys?: SupportedKey[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Custom hook that limits the focusable elements within a container, when activated.
|
|
9
|
+
*
|
|
10
|
+
* Based on https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets.
|
|
11
|
+
*
|
|
12
|
+
* @param {useFocusTrapProps} props
|
|
13
|
+
* @param {RefObject} props.containerRef - Ref to the container that will be the boundary for the focus trap.
|
|
14
|
+
* @param {() => void} props.onActivate - Called when the focus trap is activated.
|
|
15
|
+
* @param {() => void} props.onDeactivate - Called when the focus trap is deactivated.
|
|
16
|
+
* @param {(KeyboardEvent['key'])[]} props.keys - Keys that will move the focus inside
|
|
17
|
+
* the container (The current implementation only track focus for button elements). We current
|
|
18
|
+
* support `Tab`, `ArrowUp`, and `ArrowDown` keys. If not provided, only the `Tab` key will be used.
|
|
19
|
+
* @returns {Object}
|
|
20
|
+
*/
|
|
21
|
+
declare function useFocusTrap<T extends HTMLElement>(props: useFocusTrapProps): {
|
|
22
|
+
containerRef: (container: T | null) => void;
|
|
23
|
+
active: boolean;
|
|
24
|
+
activate: () => void;
|
|
25
|
+
deactivate: () => void;
|
|
26
|
+
};
|
|
27
|
+
export default useFocusTrap;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Story, Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import type { useFocusTrapProps } from './useFocusTrap';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: Story<useFocusTrapProps>;
|
|
6
|
-
export declare const TabTrap: Story<useFocusTrapProps>;
|
|
7
|
-
export declare const ArrowTrap: Story<useFocusTrapProps>;
|
|
1
|
+
import type { Story, Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import type { useFocusTrapProps } from './useFocusTrap';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Playground: Story<useFocusTrapProps>;
|
|
6
|
+
export declare const TabTrap: Story<useFocusTrapProps>;
|
|
7
|
+
export declare const ArrowTrap: Story<useFocusTrapProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as useFocusWithin } from './useFocusWithin';
|
|
2
|
-
export type { useFocusWithinProps } from './useFocusWithin';
|
|
1
|
+
export { default as useFocusWithin } from './useFocusWithin';
|
|
2
|
+
export type { useFocusWithinProps } from './useFocusWithin';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
2
|
-
export interface useFocusWithinProps {
|
|
3
|
-
onFocus?: () => void;
|
|
4
|
-
onBlur?: () => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* As CSS's focus-within is not fully supported, this hook
|
|
8
|
-
* helps with identifying focus within elements.
|
|
9
|
-
* @param {Object} props - Hook props
|
|
10
|
-
*/
|
|
11
|
-
declare function useFocusWithin<T>(props?: useFocusWithinProps): {
|
|
12
|
-
ref: RefObject<T>;
|
|
13
|
-
focused: boolean;
|
|
14
|
-
};
|
|
15
|
-
export default useFocusWithin;
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
export interface useFocusWithinProps {
|
|
3
|
+
onFocus?: () => void;
|
|
4
|
+
onBlur?: () => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* As CSS's focus-within is not fully supported, this hook
|
|
8
|
+
* helps with identifying focus within elements.
|
|
9
|
+
* @param {Object} props - Hook props
|
|
10
|
+
*/
|
|
11
|
+
declare function useFocusWithin<T>(props?: useFocusWithinProps): {
|
|
12
|
+
ref: RefObject<T>;
|
|
13
|
+
focused: boolean;
|
|
14
|
+
};
|
|
15
|
+
export default useFocusWithin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as useHeightExpansionToggler } from './useHeightExpansionToggler';
|
|
2
|
-
export type { HeightExpansionToggler } from './useHeightExpansionToggler';
|
|
1
|
+
export { default as useHeightExpansionToggler } from './useHeightExpansionToggler';
|
|
2
|
+
export type { HeightExpansionToggler } from './useHeightExpansionToggler';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import type { CSSProperties } from 'styled-components';
|
|
3
|
-
export type HeightExpansionToggler = {
|
|
4
|
-
expanded: boolean;
|
|
5
|
-
toggle: () => void;
|
|
6
|
-
height: CSSProperties['height'];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* A React Hook to help you expand or collapse an element by
|
|
10
|
-
* checking its total height and controlling a boolean flag
|
|
11
|
-
* @param {React.RefObject} targetElRef - Ref of the wrapper element
|
|
12
|
-
*/
|
|
13
|
-
declare function useHeightExpansionToggler(targetElRef: RefObject<HTMLElement>): HeightExpansionToggler;
|
|
14
|
-
export default useHeightExpansionToggler;
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import type { CSSProperties } from 'styled-components';
|
|
3
|
+
export declare type HeightExpansionToggler = {
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
height: CSSProperties['height'];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A React Hook to help you expand or collapse an element by
|
|
10
|
+
* checking its total height and controlling a boolean flag
|
|
11
|
+
* @param {React.RefObject} targetElRef - Ref of the wrapper element
|
|
12
|
+
*/
|
|
13
|
+
declare function useHeightExpansionToggler(targetElRef: RefObject<HTMLElement>): HeightExpansionToggler;
|
|
14
|
+
export default useHeightExpansionToggler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './useID';
|
|
1
|
+
export { default } from './useID';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function useID(propId?: string): string;
|
|
2
|
-
export default useID;
|
|
1
|
+
declare function useID(propId?: string): string;
|
|
2
|
+
export default useID;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Selectable, SelectableAdapter, SelectableStrategy } from './useSelectable.types';
|
|
2
|
-
export type SelectableStrategyContext<T extends Selectable> = {
|
|
3
|
-
getAdapter: (type?: string) => SelectableAdapter<T>;
|
|
4
|
-
};
|
|
5
|
-
declare function createSelectionStrategy<T extends Selectable>(props: {
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
adapters: Record<string, SelectableAdapter<T>>;
|
|
8
|
-
}): SelectableStrategy<T>;
|
|
9
|
-
export declare function SingleSelectionStrategy<T extends Selectable>(context: SelectableStrategyContext<T>): SelectableStrategy<T>;
|
|
10
|
-
export declare function MultipleSelectionStrategy<T extends Selectable>(context: SelectableStrategyContext<T>): SelectableStrategy<T>;
|
|
11
|
-
export default createSelectionStrategy;
|
|
1
|
+
import type { Selectable, SelectableAdapter, SelectableStrategy } from './useSelectable.types';
|
|
2
|
+
export declare type SelectableStrategyContext<T extends Selectable> = {
|
|
3
|
+
getAdapter: (type?: string) => SelectableAdapter<T>;
|
|
4
|
+
};
|
|
5
|
+
declare function createSelectionStrategy<T extends Selectable>(props: {
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
adapters: Record<string, SelectableAdapter<T>>;
|
|
8
|
+
}): SelectableStrategy<T>;
|
|
9
|
+
export declare function SingleSelectionStrategy<T extends Selectable>(context: SelectableStrategyContext<T>): SelectableStrategy<T>;
|
|
10
|
+
export declare function MultipleSelectionStrategy<T extends Selectable>(context: SelectableStrategyContext<T>): SelectableStrategy<T>;
|
|
11
|
+
export default createSelectionStrategy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createSelectable } from './useSelectable';
|
|
2
|
-
export type { Selectable, SelectableAdapter, SelectableKeyType, SelectableType, SelectableState, } from './useSelectable.types';
|
|
1
|
+
export { createSelectable } from './useSelectable';
|
|
2
|
+
export type { Selectable, SelectableAdapter, SelectableKeyType, SelectableType, SelectableState, } from './useSelectable.types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Context } from 'react';
|
|
2
|
-
import type { Selectable, useSelectableProps, useSelectableReturn } from './useSelectable.types';
|
|
3
|
-
export declare function createSelectable<T extends Selectable>(): {
|
|
4
|
-
SelectableContext: Context<useSelectableReturn<T>>;
|
|
5
|
-
useSelectable: (props: useSelectableProps<T>) => useSelectableReturn<T>;
|
|
6
|
-
};
|
|
1
|
+
import type { Context } from 'react';
|
|
2
|
+
import type { Selectable, useSelectableProps, useSelectableReturn } from './useSelectable.types';
|
|
3
|
+
export declare function createSelectable<T extends Selectable>(): {
|
|
4
|
+
SelectableContext: Context<useSelectableReturn<T>>;
|
|
5
|
+
useSelectable: (props: useSelectableProps<T>) => useSelectableReturn<T>;
|
|
6
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export type SelectableKeyType = string | number | boolean;
|
|
2
|
-
export interface Selectable {
|
|
3
|
-
_type?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface SelectableAdapter<T> {
|
|
6
|
-
getKey: (o: T) => SelectableKeyType;
|
|
7
|
-
}
|
|
8
|
-
export type SelectableState<T extends Selectable> = Map<SelectableKeyType, T>;
|
|
9
|
-
export type SelectableType = 'single' | 'multiple';
|
|
10
|
-
export type SelectableStrategy<T extends Selectable> = {
|
|
11
|
-
type: () => SelectableType;
|
|
12
|
-
init: (items: T[]) => SelectableState<T>;
|
|
13
|
-
select: (items: T[], selection: SelectableState<T>) => SelectableState<T>;
|
|
14
|
-
unselect: (keys: SelectableKeyType[], selection: SelectableState<T>) => SelectableState<T>;
|
|
15
|
-
toggle: (items: T[], selection: SelectableState<T>) => SelectableState<T>;
|
|
16
|
-
clear: (selection: SelectableState<T>) => SelectableState<T>;
|
|
17
|
-
};
|
|
18
|
-
export type SelectableAction<T extends Selectable> = {
|
|
19
|
-
type: 'select';
|
|
20
|
-
payload: T[];
|
|
21
|
-
} | {
|
|
22
|
-
type: 'unselect';
|
|
23
|
-
payload: SelectableKeyType[];
|
|
24
|
-
} | {
|
|
25
|
-
type: 'toggle';
|
|
26
|
-
payload: T[];
|
|
27
|
-
} | {
|
|
28
|
-
type: 'clear';
|
|
29
|
-
} | {
|
|
30
|
-
type: 'reset';
|
|
31
|
-
payload: SelectableState<T>;
|
|
32
|
-
};
|
|
33
|
-
export interface useSelectableReturn<T extends Selectable> {
|
|
34
|
-
type: () => SelectableType;
|
|
35
|
-
selected: SelectableState<T>;
|
|
36
|
-
select: (items: T | T[]) => void;
|
|
37
|
-
unselect: (keys: SelectableKeyType | SelectableKeyType[]) => void;
|
|
38
|
-
toggle: (items: T | T[]) => void;
|
|
39
|
-
clear: () => void;
|
|
40
|
-
}
|
|
41
|
-
export interface useSelectableProps<T extends Selectable> {
|
|
42
|
-
selected: T | T[];
|
|
43
|
-
multiple?: boolean;
|
|
44
|
-
onChange?: (selected: SelectableState<T>) => void;
|
|
45
|
-
adapters?: Record<string, SelectableAdapter<T>>;
|
|
46
|
-
}
|
|
1
|
+
export declare type SelectableKeyType = string | number | boolean;
|
|
2
|
+
export interface Selectable {
|
|
3
|
+
_type?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SelectableAdapter<T> {
|
|
6
|
+
getKey: (o: T) => SelectableKeyType;
|
|
7
|
+
}
|
|
8
|
+
export declare type SelectableState<T extends Selectable> = Map<SelectableKeyType, T>;
|
|
9
|
+
export declare type SelectableType = 'single' | 'multiple';
|
|
10
|
+
export declare type SelectableStrategy<T extends Selectable> = {
|
|
11
|
+
type: () => SelectableType;
|
|
12
|
+
init: (items: T[]) => SelectableState<T>;
|
|
13
|
+
select: (items: T[], selection: SelectableState<T>) => SelectableState<T>;
|
|
14
|
+
unselect: (keys: SelectableKeyType[], selection: SelectableState<T>) => SelectableState<T>;
|
|
15
|
+
toggle: (items: T[], selection: SelectableState<T>) => SelectableState<T>;
|
|
16
|
+
clear: (selection: SelectableState<T>) => SelectableState<T>;
|
|
17
|
+
};
|
|
18
|
+
export declare type SelectableAction<T extends Selectable> = {
|
|
19
|
+
type: 'select';
|
|
20
|
+
payload: T[];
|
|
21
|
+
} | {
|
|
22
|
+
type: 'unselect';
|
|
23
|
+
payload: SelectableKeyType[];
|
|
24
|
+
} | {
|
|
25
|
+
type: 'toggle';
|
|
26
|
+
payload: T[];
|
|
27
|
+
} | {
|
|
28
|
+
type: 'clear';
|
|
29
|
+
} | {
|
|
30
|
+
type: 'reset';
|
|
31
|
+
payload: SelectableState<T>;
|
|
32
|
+
};
|
|
33
|
+
export interface useSelectableReturn<T extends Selectable> {
|
|
34
|
+
type: () => SelectableType;
|
|
35
|
+
selected: SelectableState<T>;
|
|
36
|
+
select: (items: T | T[]) => void;
|
|
37
|
+
unselect: (keys: SelectableKeyType | SelectableKeyType[]) => void;
|
|
38
|
+
toggle: (items: T | T[]) => void;
|
|
39
|
+
clear: () => void;
|
|
40
|
+
}
|
|
41
|
+
export interface useSelectableProps<T extends Selectable> {
|
|
42
|
+
selected: T | T[];
|
|
43
|
+
multiple?: boolean;
|
|
44
|
+
onChange?: (selected: SelectableState<T>) => void;
|
|
45
|
+
adapters?: Record<string, SelectableAdapter<T>>;
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './useWindowResize';
|
|
1
|
+
export { default } from './useWindowResize';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare function useWindowSize(): {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
};
|
|
5
|
-
export default useWindowSize;
|
|
1
|
+
declare function useWindowSize(): {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
5
|
+
export default useWindowSize;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
export { Button, BaseButton, SelectorButton, IconButton, Caret } from './components/Button';
|
|
2
|
-
export { default as CloseButton } from './common/CloseButton';
|
|
3
|
-
export { default as BackButton } from './common/BackButton';
|
|
4
|
-
export type { ButtonProps } from './components/Button';
|
|
5
|
-
export type { CloseButtonProps } from './common/CloseButton';
|
|
6
|
-
export type { BackButtonProps } from './common/BackButton';
|
|
7
|
-
export { Checkbox } from './components/Checkbox';
|
|
8
|
-
export type { CheckboxProps } from './components/Checkbox';
|
|
9
|
-
export { Radio } from './components/Radio';
|
|
10
|
-
export type { RadioProps } from './components/Radio';
|
|
11
|
-
export { TextField, useTextField } from './components/TextField';
|
|
12
|
-
export type { TextFieldProps } from './components/TextField';
|
|
13
|
-
export { Textarea } from './components/Textarea';
|
|
14
|
-
export type { TextareaProps } from './components/Textarea';
|
|
15
|
-
export { Link } from './components/Link';
|
|
16
|
-
export type { LinkProps } from './components/Link';
|
|
17
|
-
export { Breadcrumbs } from './components/Breadcrumbs';
|
|
18
|
-
export type { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
19
|
-
export { ToggleGroup } from './components/ToggleGroup';
|
|
20
|
-
export type { ToggleGroupProps, ToggleGroupOptionProps } from './components/ToggleGroup';
|
|
21
|
-
export { Tabs } from './components/Tabs';
|
|
22
|
-
export type { TabsProps } from './components/Tabs';
|
|
23
|
-
export { Section } from './components/Section';
|
|
24
|
-
export type { SectionProps, SectionTitleProps } from './components/Section';
|
|
25
|
-
export { Accordion } from './components/Accordion';
|
|
26
|
-
export type { AccordionProps, AccordionBodyProps, AccordionToggleProps, } from './components/Accordion';
|
|
27
|
-
export { Banner, BannerLarge, BannerAction, BannerActionLarge } from './components/Banner';
|
|
28
|
-
export type { BannerProps, BannerActionProps } from './components/Banner';
|
|
29
|
-
export { Dialog, useDialog } from './components/Dialog';
|
|
30
|
-
export type { DialogProps, useDialogProps, DialogActionConfirmProps, DialogActionCancelProps, } from './components/Dialog';
|
|
31
|
-
export { Label } from './components/Label';
|
|
32
|
-
export type { LabelProps } from './components/Label';
|
|
33
|
-
export { Modal } from './components/Modal';
|
|
34
|
-
export type { ModalProps } from './components/Modal';
|
|
35
|
-
export { Pagination } from './components/Pagination';
|
|
36
|
-
export type { PaginationProps } from './components/Pagination';
|
|
37
|
-
export { ProgressBar } from './components/ProgressBar';
|
|
38
|
-
export type { ProgressBarProps } from './components/ProgressBar';
|
|
39
|
-
export { Switch } from './components/Switch';
|
|
40
|
-
export type { SwitchProps } from './components/Switch';
|
|
41
|
-
export { Tag } from './components/Tag';
|
|
42
|
-
export type { TagProps } from './components/Tag';
|
|
43
|
-
export { Toast } from './components/Toast';
|
|
44
|
-
export type { ToastProps } from './components/Toast';
|
|
45
|
-
export { Tooltip, TooltipPosition, TooltipAlign } from './components/Tooltip';
|
|
46
|
-
export type { TooltipProps } from './components/Tooltip';
|
|
47
|
-
export { Steps, useSteps } from './components/Steps';
|
|
48
|
-
export type { Step, StepsProps, useStepsProps } from './components/Steps';
|
|
49
|
-
export { Card } from './components/Card';
|
|
50
|
-
export type { CardProps } from './components/Card';
|
|
51
|
-
export { IconFactory } from './components/IconFactory';
|
|
52
|
-
export type { IconProps, IconMapping } from './components/IconFactory';
|
|
53
|
-
export { Popover, usePopover } from './components/Popover';
|
|
54
|
-
export type { PopoverProps, PopoverAlign, PopoverPosition, PopoverFloatingProps, PopoverPlacement, PopoverReferenceProps, UsePopoverReturn, } from './components/Popover';
|
|
55
|
-
export { Dropdown, useDropdown, DropdownContext } from './components/Dropdown';
|
|
56
|
-
export type { DropdownProps, useDropdownProps } from './components/Dropdown';
|
|
57
|
-
export { Select, useSelect } from './components/Select';
|
|
58
|
-
export type { SelectProps, useSelectReturn, SelectOptionProps, SelectEmptyProps, } from './components/Select';
|
|
59
|
-
export { SideNavigation, useSideNavigation } from './components/SideNavigation';
|
|
60
|
-
export type { SideNavigationProps, useSideNavigationProps } from './components/SideNavigation';
|
|
61
|
-
export { Drawer, useDrawer } from './components/Drawer';
|
|
62
|
-
export type { DrawerProps, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, } from './components/Drawer';
|
|
63
|
-
export { Table } from './components/Table';
|
|
64
|
-
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps, } from './components/Table';
|
|
65
|
-
export { Text } from './components/Text';
|
|
66
|
-
export type { TextProps } from './components/Text';
|
|
67
|
-
export { TopNavigation } from './components/TopNavigation';
|
|
68
|
-
export type { TopNavigationProps } from './components/TopNavigation';
|
|
69
|
-
export { EmptyState } from './components/EmptyState';
|
|
70
|
-
export type { EmptyStateProps } from './components/EmptyState';
|
|
71
|
-
export { Layout } from './components/Layout';
|
|
72
|
-
export type { BoxProps } from './components/Layout/Box';
|
|
73
|
-
export type { GroupProps } from './components/Layout/Group';
|
|
74
|
-
export type { SidebarProps } from './components/Layout/Sidebar';
|
|
75
|
-
export type { StackProps } from './components/Layout/Stack';
|
|
76
|
-
export type { SwitcherProps } from './components/Layout/Switcher';
|
|
77
|
-
export type { GridProps } from './components/Layout/Grid';
|
|
78
|
-
export { Calendar, DateHelper, DateFormatHelper } from './components/Calendar';
|
|
79
|
-
export type { CalendarProps, CalendarDate, CalendarDateRange, CalendarConstraint, DateFormat, } from './components/Calendar';
|
|
80
|
-
export { DatePicker, DateRangePicker } from './components/DatePicker';
|
|
81
|
-
export type { DatePickerProps, DateRangePickerProps } from './components/DatePicker';
|
|
82
|
-
export { Spinner } from './components/Loaders';
|
|
83
|
-
export type { SpinnerProps } from './components/Loaders';
|
|
84
|
-
export { LoadingBar } from './components/Loaders';
|
|
85
|
-
export type { LoadingBarProps } from './components/Loaders';
|
|
86
|
-
export { LoadingDots } from './components/Loaders';
|
|
87
|
-
export type { LoadingDotsProps } from './components/Loaders';
|
|
88
|
-
export { HighlightMatch } from './components/HighlightMatch';
|
|
89
|
-
export type { HighlightMatchProps } from './components/HighlightMatch';
|
|
90
|
-
export { ErrorMessage } from './components/ErrorMessage';
|
|
91
|
-
export type { ErrorMessageProps } from './components/ErrorMessage';
|
|
92
|
-
export { DragDropFileProvider, useDragDropFileContext, } from './components/DragDropFile/DragDropFile.context';
|
|
93
|
-
export { default as DragDropFile } from './components/DragDropFile/DragDropFile';
|
|
94
|
-
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, } from './components/DragDropFile/types';
|
|
95
|
-
export { TablePagination } from './components/TablePagination';
|
|
96
|
-
export type { TablePaginationProps } from './components/TablePagination';
|
|
97
|
-
export { VisuallyHidden } from './components/VisuallyHidden';
|
|
1
|
+
export { Button, BaseButton, SelectorButton, IconButton, Caret } from './components/Button';
|
|
2
|
+
export { default as CloseButton } from './common/CloseButton';
|
|
3
|
+
export { default as BackButton } from './common/BackButton';
|
|
4
|
+
export type { ButtonProps } from './components/Button';
|
|
5
|
+
export type { CloseButtonProps } from './common/CloseButton';
|
|
6
|
+
export type { BackButtonProps } from './common/BackButton';
|
|
7
|
+
export { Checkbox } from './components/Checkbox';
|
|
8
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
9
|
+
export { Radio } from './components/Radio';
|
|
10
|
+
export type { RadioProps } from './components/Radio';
|
|
11
|
+
export { TextField, useTextField } from './components/TextField';
|
|
12
|
+
export type { TextFieldProps } from './components/TextField';
|
|
13
|
+
export { Textarea } from './components/Textarea';
|
|
14
|
+
export type { TextareaProps } from './components/Textarea';
|
|
15
|
+
export { Link } from './components/Link';
|
|
16
|
+
export type { LinkProps } from './components/Link';
|
|
17
|
+
export { Breadcrumbs } from './components/Breadcrumbs';
|
|
18
|
+
export type { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
19
|
+
export { ToggleGroup } from './components/ToggleGroup';
|
|
20
|
+
export type { ToggleGroupProps, ToggleGroupOptionProps } from './components/ToggleGroup';
|
|
21
|
+
export { Tabs } from './components/Tabs';
|
|
22
|
+
export type { TabsProps } from './components/Tabs';
|
|
23
|
+
export { Section } from './components/Section';
|
|
24
|
+
export type { SectionProps, SectionTitleProps } from './components/Section';
|
|
25
|
+
export { Accordion } from './components/Accordion';
|
|
26
|
+
export type { AccordionProps, AccordionBodyProps, AccordionToggleProps, } from './components/Accordion';
|
|
27
|
+
export { Banner, BannerLarge, BannerAction, BannerActionLarge } from './components/Banner';
|
|
28
|
+
export type { BannerProps, BannerActionProps } from './components/Banner';
|
|
29
|
+
export { Dialog, useDialog } from './components/Dialog';
|
|
30
|
+
export type { DialogProps, useDialogProps, DialogActionConfirmProps, DialogActionCancelProps, } from './components/Dialog';
|
|
31
|
+
export { Label } from './components/Label';
|
|
32
|
+
export type { LabelProps } from './components/Label';
|
|
33
|
+
export { Modal } from './components/Modal';
|
|
34
|
+
export type { ModalProps } from './components/Modal';
|
|
35
|
+
export { Pagination } from './components/Pagination';
|
|
36
|
+
export type { PaginationProps } from './components/Pagination';
|
|
37
|
+
export { ProgressBar } from './components/ProgressBar';
|
|
38
|
+
export type { ProgressBarProps } from './components/ProgressBar';
|
|
39
|
+
export { Switch } from './components/Switch';
|
|
40
|
+
export type { SwitchProps } from './components/Switch';
|
|
41
|
+
export { Tag } from './components/Tag';
|
|
42
|
+
export type { TagProps } from './components/Tag';
|
|
43
|
+
export { Toast } from './components/Toast';
|
|
44
|
+
export type { ToastProps } from './components/Toast';
|
|
45
|
+
export { Tooltip, TooltipPosition, TooltipAlign } from './components/Tooltip';
|
|
46
|
+
export type { TooltipProps } from './components/Tooltip';
|
|
47
|
+
export { Steps, useSteps } from './components/Steps';
|
|
48
|
+
export type { Step, StepsProps, useStepsProps } from './components/Steps';
|
|
49
|
+
export { Card } from './components/Card';
|
|
50
|
+
export type { CardProps } from './components/Card';
|
|
51
|
+
export { IconFactory } from './components/IconFactory';
|
|
52
|
+
export type { IconProps, IconMapping } from './components/IconFactory';
|
|
53
|
+
export { Popover, usePopover } from './components/Popover';
|
|
54
|
+
export type { PopoverProps, PopoverAlign, PopoverPosition, PopoverFloatingProps, PopoverPlacement, PopoverReferenceProps, UsePopoverReturn, } from './components/Popover';
|
|
55
|
+
export { Dropdown, useDropdown, DropdownContext } from './components/Dropdown';
|
|
56
|
+
export type { DropdownProps, useDropdownProps } from './components/Dropdown';
|
|
57
|
+
export { Select, useSelect } from './components/Select';
|
|
58
|
+
export type { SelectProps, useSelectReturn, SelectOptionProps, SelectEmptyProps, } from './components/Select';
|
|
59
|
+
export { SideNavigation, useSideNavigation } from './components/SideNavigation';
|
|
60
|
+
export type { SideNavigationProps, useSideNavigationProps } from './components/SideNavigation';
|
|
61
|
+
export { Drawer, useDrawer } from './components/Drawer';
|
|
62
|
+
export type { DrawerProps, DrawerBodyProps, DrawerFooterProps, DrawerHeaderProps, } from './components/Drawer';
|
|
63
|
+
export { Table } from './components/Table';
|
|
64
|
+
export type { TableProps, TableCellProps, TableRowProps, TableSectionProps, } from './components/Table';
|
|
65
|
+
export { Text } from './components/Text';
|
|
66
|
+
export type { TextProps } from './components/Text';
|
|
67
|
+
export { TopNavigation } from './components/TopNavigation';
|
|
68
|
+
export type { TopNavigationProps } from './components/TopNavigation';
|
|
69
|
+
export { EmptyState } from './components/EmptyState';
|
|
70
|
+
export type { EmptyStateProps } from './components/EmptyState';
|
|
71
|
+
export { Layout } from './components/Layout';
|
|
72
|
+
export type { BoxProps } from './components/Layout/Box';
|
|
73
|
+
export type { GroupProps } from './components/Layout/Group';
|
|
74
|
+
export type { SidebarProps } from './components/Layout/Sidebar';
|
|
75
|
+
export type { StackProps } from './components/Layout/Stack';
|
|
76
|
+
export type { SwitcherProps } from './components/Layout/Switcher';
|
|
77
|
+
export type { GridProps } from './components/Layout/Grid';
|
|
78
|
+
export { Calendar, DateHelper, DateFormatHelper } from './components/Calendar';
|
|
79
|
+
export type { CalendarProps, CalendarDate, CalendarDateRange, CalendarConstraint, DateFormat, } from './components/Calendar';
|
|
80
|
+
export { DatePicker, DateRangePicker } from './components/DatePicker';
|
|
81
|
+
export type { DatePickerProps, DateRangePickerProps } from './components/DatePicker';
|
|
82
|
+
export { Spinner } from './components/Loaders';
|
|
83
|
+
export type { SpinnerProps } from './components/Loaders';
|
|
84
|
+
export { LoadingBar } from './components/Loaders';
|
|
85
|
+
export type { LoadingBarProps } from './components/Loaders';
|
|
86
|
+
export { LoadingDots } from './components/Loaders';
|
|
87
|
+
export type { LoadingDotsProps } from './components/Loaders';
|
|
88
|
+
export { HighlightMatch } from './components/HighlightMatch';
|
|
89
|
+
export type { HighlightMatchProps } from './components/HighlightMatch';
|
|
90
|
+
export { ErrorMessage } from './components/ErrorMessage';
|
|
91
|
+
export type { ErrorMessageProps } from './components/ErrorMessage';
|
|
92
|
+
export { DragDropFileProvider, useDragDropFileContext, } from './components/DragDropFile/DragDropFile.context';
|
|
93
|
+
export { default as DragDropFile } from './components/DragDropFile/DragDropFile';
|
|
94
|
+
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, } from './components/DragDropFile/types';
|
|
95
|
+
export { TablePagination } from './components/TablePagination';
|
|
96
|
+
export type { TablePaginationProps } from './components/TablePagination';
|
|
97
|
+
export { VisuallyHidden } from './components/VisuallyHidden';
|