@loadsmart/loadsmart-ui 7.4.0 → 7.6.0
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-D-EBrXnw.js +2 -0
- package/dist/DragDropFile.context-D-EBrXnw.js.map +1 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs +29 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs.map +1 -0
- package/dist/addons/Theme/register.d.ts +1 -0
- package/dist/common/BackButton/BackButton.d.ts +4 -5
- package/dist/common/BackButton/index.d.ts +2 -2
- package/dist/common/CloseButton/CloseButton.d.ts +6 -7
- 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 +107 -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 -4
- package/dist/components/Breadcrumbs/index.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +21 -22
- package/dist/components/Button/Button.stories.d.ts +33 -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 -10
- 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 -6
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -10
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -4
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +4 -5
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -4
- 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 -23
- 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 -5
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -22
- 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 +604 -591
- package/dist/components/DatePicker/useDateRangePicker.d.ts +905 -885
- 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 -8
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
- package/dist/components/DragDropFile/components/DropZone.d.ts +3 -4
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +7 -7
- 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 +11 -11
- package/dist/components/DragDropFile/types.d.ts +71 -71
- package/dist/components/Drawer/Drawer.d.ts +27 -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 +3 -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 +21 -22
- 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 +5 -5
- 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 -28
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +17 -17
- 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 +17 -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 +13 -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 +18 -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 +8 -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 -6
- 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 -6
- 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 -4
- 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 -4
- 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 -11
- 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 +31 -31
- 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 +5 -6
- package/dist/components/Select/Select.d.ts +13 -13
- package/dist/components/Select/Select.fixtures.d.ts +37 -37
- package/dist/components/Select/Select.stories.d.ts +19 -19
- package/dist/components/Select/Select.test.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +122 -122
- package/dist/components/Select/SelectCreatableOption.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts +3 -4
- 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 +8 -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 +16 -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 +10 -11
- package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -6
- 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 +28 -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 -8
- package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +16 -16
- 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 +34 -35
- package/dist/components/Table/Table.d.ts +38 -39
- 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 +72 -72
- package/dist/components/Table/TableSortHandle.d.ts +7 -8
- 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 -4
- package/dist/components/TablePagination/TablePagination.d.ts +3 -4
- package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -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 +11 -11
- package/dist/components/TablePagination/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +49 -49
- 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 +8 -9
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +18 -19
- package/dist/components/Tag/Tag.stories.d.ts +42 -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 +9 -15
- package/dist/components/Text/Text.stories.d.ts +7 -7
- 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 +18 -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 +16 -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 -5
- 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 -7
- 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 +22 -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 +8 -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 -8
- package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
- package/dist/components/TopNavigation/TopNavigation.d.ts +11 -17
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -6
- 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 +305 -2676
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8046 -0
- package/dist/index.mjs.map +1 -0
- package/dist/miranda-compatibility.theme-ChPV-BBw.js +2 -0
- package/dist/miranda-compatibility.theme-ChPV-BBw.js.map +1 -0
- package/dist/miranda-compatibility.theme-DQDHkWzC.mjs +2469 -0
- package/dist/miranda-compatibility.theme-DQDHkWzC.mjs.map +1 -0
- package/dist/prop-5m3D4883.mjs +54 -0
- package/dist/prop-5m3D4883.mjs.map +1 -0
- package/dist/prop-BwhJNJHO.js +2 -0
- package/dist/{prop-d9ec2877.js.map → prop-BwhJNJHO.js.map} +1 -1
- 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 +26 -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/index.mjs +228 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
- package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
- package/dist/tests/generator.d.ts +34 -35
- package/dist/tests/renderer.d.ts +9 -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/index.mjs +20 -0
- package/dist/theming/index.mjs.map +1 -0
- package/dist/theming/themes/alice.theme.d.ts +812 -812
- package/dist/theming/themes/index.d.ts +3 -3
- package/dist/theming/themes/loadsmart.theme.d.ts +794 -794
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +808 -808
- package/dist/theming/theming.helpers.d.ts +22 -22
- package/dist/toArray-BW3gx_gH.js +2 -0
- package/dist/toArray-BW3gx_gH.js.map +1 -0
- package/dist/toArray-DqgeO2ua.mjs +8 -0
- package/dist/toArray-DqgeO2ua.mjs.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/index.mjs +7 -0
- package/dist/tools/index.mjs.map +1 -0
- 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/flatten.d.ts +2 -2
- 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 +2 -2
- 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 -10
- 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 +2 -2
- 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 +2 -2
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +2 -2
- package/dist/utils/toolset/rem.d.ts +3 -3
- package/dist/utils/toolset/styledCompounds.d.ts +12 -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 +24 -31
- package/src/components/Dropdown/Dropdown.test.tsx +3 -1
- package/src/components/Icon/Icon.tsx +21 -21
- package/src/components/IconFactory/IconFactory.tsx +3 -3
- package/src/components/Switch/Switch.test.tsx +3 -1
- package/dist/DragDropFile.context-bbb7d631.js +0 -2
- package/dist/DragDropFile.context-bbb7d631.js.map +0 -1
- package/dist/miranda-compatibility.theme-ce3baf7f.js +0 -2
- package/dist/miranda-compatibility.theme-ce3baf7f.js.map +0 -1
- package/dist/prop-d9ec2877.js +0 -2
- package/dist/toArray-b56541b4.js +0 -2
- package/dist/toArray-b56541b4.js.map +0 -1
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
|
|
30
|
-
};
|
|
31
|
-
var Separator: typeof import("./Separator/Separator").default;
|
|
32
|
-
var CloseButton: import("styled-components").StyledComponent<typeof import("../../common/CloseButton/CloseButton").default, any, CloseButtonProps, never>;
|
|
33
|
-
}
|
|
34
|
-
export default SideNavigation;
|
|
1
|
+
import { CloseButtonProps } from '../../common/CloseButton';
|
|
2
|
+
import { default as React, ReactNode } from 'react';
|
|
3
|
+
export interface SideNavigationProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function SideNavigation({ className, children }: SideNavigationProps): JSX.Element;
|
|
8
|
+
declare namespace SideNavigation {
|
|
9
|
+
var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
|
|
10
|
+
var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, {}> & {
|
|
11
|
+
Item: (props: {
|
|
12
|
+
active?: boolean;
|
|
13
|
+
} & React.HTMLAttributes<HTMLAnchorElement> & {
|
|
14
|
+
label: string;
|
|
15
|
+
leading?: ReactNode;
|
|
16
|
+
trailing?: ReactNode;
|
|
17
|
+
url?: string;
|
|
18
|
+
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
label: string;
|
|
20
|
+
} & {
|
|
21
|
+
children?: ReactNode | undefined;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
|
|
24
|
+
};
|
|
25
|
+
var Separator: typeof import("./Separator").Separator;
|
|
26
|
+
var CloseButton: import("styled-components").StyledComponent<typeof import("common/CloseButton").default, any, CloseButtonProps, never>;
|
|
27
|
+
}
|
|
28
|
+
export default SideNavigation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: SideNavigationProps): JSX.Element;
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { SideNavigationProps } from './SideNavigation';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Playground(args: SideNavigationProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as SideNavigation } from './SideNavigation';
|
|
2
|
-
export type { SideNavigationProps } from './SideNavigation';
|
|
3
|
-
export { default as useSideNavigation } from './useSideNavigation';
|
|
4
|
-
export type { useSideNavigationProps } from './useSideNavigation';
|
|
1
|
+
export { default as SideNavigation } from './SideNavigation';
|
|
2
|
+
export type { SideNavigationProps } from './SideNavigation';
|
|
3
|
+
export { default as useSideNavigation } from './useSideNavigation';
|
|
4
|
+
export type { useSideNavigationProps } from './useSideNavigation';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface useSideNavigationProps {
|
|
2
|
-
open: boolean;
|
|
3
|
-
show: () => void;
|
|
4
|
-
hide: () => void;
|
|
5
|
-
toggle: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare function useSideNavigation(): useSideNavigationProps;
|
|
8
|
-
export default useSideNavigation;
|
|
1
|
+
export interface useSideNavigationProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
show: () => void;
|
|
4
|
+
hide: () => void;
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function useSideNavigation(): useSideNavigationProps;
|
|
8
|
+
export default useSideNavigation;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import
|
|
3
|
-
export interface StepsProgressProps {
|
|
4
|
-
steps: Array<Step>;
|
|
5
|
-
current: number | string;
|
|
6
|
-
}
|
|
7
|
-
declare function ProgressStep(props: {
|
|
8
|
-
step: Step;
|
|
9
|
-
current: boolean;
|
|
10
|
-
indicator: ReactNode;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
export default ProgressStep;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Step } from '../Steps.types';
|
|
3
|
+
export interface StepsProgressProps {
|
|
4
|
+
steps: Array<Step>;
|
|
5
|
+
current: number | string;
|
|
6
|
+
}
|
|
7
|
+
declare function ProgressStep(props: {
|
|
8
|
+
step: Step;
|
|
9
|
+
current: boolean;
|
|
10
|
+
indicator: ReactNode;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export default ProgressStep;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default StepsProgress;
|
|
1
|
+
import { Step } from '../Steps.types';
|
|
2
|
+
export interface StepsProgressProps {
|
|
3
|
+
steps: Array<Step>;
|
|
4
|
+
current: number | string;
|
|
5
|
+
}
|
|
6
|
+
declare function StepsProgress(props: StepsProgressProps): JSX.Element;
|
|
7
|
+
export default StepsProgress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ProgressSteps';
|
|
1
|
+
export { default } from './ProgressSteps';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import StepsStep from './StepsStep';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
export interface StepsProps {
|
|
6
|
-
current: number | string;
|
|
7
|
-
id: number | string;
|
|
8
|
-
steps: Array<Step>;
|
|
9
|
-
className?: string;
|
|
10
|
-
scheme?: ColorScheme;
|
|
11
|
-
}
|
|
12
|
-
declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): JSX.Element;
|
|
13
|
-
declare namespace Steps {
|
|
14
|
-
var Step: typeof StepsStep;
|
|
15
|
-
}
|
|
16
|
-
export default Steps;
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { default as StepsStep } from './StepsStep';
|
|
3
|
+
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
4
|
+
import { Step } from './Steps.types';
|
|
5
|
+
export interface StepsProps {
|
|
6
|
+
current: number | string;
|
|
7
|
+
id: number | string;
|
|
8
|
+
steps: Array<Step>;
|
|
9
|
+
className?: string;
|
|
10
|
+
scheme?: ColorScheme;
|
|
11
|
+
}
|
|
12
|
+
declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): JSX.Element;
|
|
13
|
+
declare namespace Steps {
|
|
14
|
+
var Step: typeof StepsStep;
|
|
15
|
+
}
|
|
16
|
+
export default Steps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const STEPS: {
|
|
2
|
-
id: string;
|
|
3
|
-
label: string;
|
|
4
|
-
complete: boolean;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const CONTENTS: string[];
|
|
1
|
+
export declare const STEPS: {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
complete: boolean;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const CONTENTS: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function check(id: string): void;
|
|
2
|
-
export declare function getPanelRadioID(id: number | string): string;
|
|
1
|
+
export declare function check(id: string): void;
|
|
2
|
+
export declare function getPanelRadioID(id: number | string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: Story<StepsProps>;
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { StepsProps } from './Steps';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Playground: Story<StepsProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: number | string;
|
|
3
|
-
label: string;
|
|
4
|
-
complete: boolean;
|
|
5
|
-
};
|
|
1
|
+
export type Step = {
|
|
2
|
+
id: number | string;
|
|
3
|
+
label: string;
|
|
4
|
+
complete: boolean;
|
|
5
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const StepsContext: React.Context<string | number>;
|
|
3
|
-
export default StepsContext;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const StepsContext: React.Context<string | number>;
|
|
3
|
+
export default StepsContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface StepsStepProps {
|
|
3
|
-
id: number | string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const StepWrapper: import(
|
|
7
|
-
declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): JSX.Element;
|
|
8
|
-
export default StepsStep;
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export interface StepsStepProps {
|
|
3
|
+
id: number | string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const StepWrapper: import('styled-components').StyledComponent<"article", any, import('../../theming').ThemedProps, never>;
|
|
7
|
+
declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): JSX.Element;
|
|
8
|
+
export default StepsStep;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as Steps } from './Steps';
|
|
2
|
-
export { default as useSteps } from './useSteps';
|
|
3
|
-
export type { StepsProps } from './Steps';
|
|
4
|
-
export type { useStepsProps } from './useSteps';
|
|
5
|
-
export type { Step } from './Steps.types';
|
|
1
|
+
export { default as Steps } from './Steps';
|
|
2
|
+
export { default as useSteps } from './useSteps';
|
|
3
|
+
export type { StepsProps } from './Steps';
|
|
4
|
+
export type { useStepsProps } from './useSteps';
|
|
5
|
+
export type { Step } from './Steps.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Dispatch } from 'react';
|
|
2
|
-
import
|
|
3
|
-
export interface useStepsProps {
|
|
4
|
-
steps: Array<Step>;
|
|
5
|
-
current?: number | string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
current: number | string;
|
|
9
|
-
steps: Array<Step>;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type: 'navigate';
|
|
13
|
-
payload: {
|
|
14
|
-
stepID: number | string;
|
|
15
|
-
};
|
|
16
|
-
} | {
|
|
17
|
-
type: 'next';
|
|
18
|
-
} | {
|
|
19
|
-
type: 'previous';
|
|
20
|
-
} | {
|
|
21
|
-
type: 'complete';
|
|
22
|
-
payload: {
|
|
23
|
-
stepID: number | string;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
type: 'reset';
|
|
27
|
-
payload: State;
|
|
28
|
-
};
|
|
29
|
-
declare function useSteps({ steps, current: currentProp }: useStepsProps): [State, Dispatch<Action>];
|
|
30
|
-
export default useSteps;
|
|
1
|
+
import { Dispatch } from 'react';
|
|
2
|
+
import { Step } from './Steps.types';
|
|
3
|
+
export interface useStepsProps {
|
|
4
|
+
steps: Array<Step>;
|
|
5
|
+
current?: number | string;
|
|
6
|
+
}
|
|
7
|
+
type State = {
|
|
8
|
+
current: number | string;
|
|
9
|
+
steps: Array<Step>;
|
|
10
|
+
};
|
|
11
|
+
type Action = {
|
|
12
|
+
type: 'navigate';
|
|
13
|
+
payload: {
|
|
14
|
+
stepID: number | string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
type: 'next';
|
|
18
|
+
} | {
|
|
19
|
+
type: 'previous';
|
|
20
|
+
} | {
|
|
21
|
+
type: 'complete';
|
|
22
|
+
payload: {
|
|
23
|
+
stepID: number | string;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
type: 'reset';
|
|
27
|
+
payload: State;
|
|
28
|
+
};
|
|
29
|
+
declare function useSteps({ steps, current: currentProp }: useStepsProps): [State, Dispatch<Action>];
|
|
30
|
+
export default useSteps;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
-
interface WithAdditionalProps {
|
|
3
|
-
active?: boolean;
|
|
4
|
-
onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
scale?: 'default' | 'large';
|
|
6
|
-
}
|
|
7
|
-
export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): JSX.Element;
|
|
11
|
-
export default Switch;
|
|
1
|
+
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
+
interface WithAdditionalProps {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
scale?: 'default' | 'large';
|
|
6
|
+
}
|
|
7
|
+
export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): JSX.Element;
|
|
11
|
+
export default Switch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SwitchProps } from './Switch';
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: Story<SwitchProps>;
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { SwitchProps } from './Switch';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Playground: Story<SwitchProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Switch } from './Switch';
|
|
2
|
-
export type { SwitchProps } from './Switch';
|
|
1
|
+
export { default as Switch } from './Switch';
|
|
2
|
+
export type { SwitchProps } from './Switch';
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
export declare function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare function
|
|
33
|
-
export declare function
|
|
34
|
-
export
|
|
35
|
-
export {};
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { Selectable, SelectableState } from '../../hooks/useSelectable';
|
|
3
|
+
import { useSelectableProps } from '../../hooks/useSelectable/useSelectable.types';
|
|
4
|
+
export type TableSelectableRow = Selectable & {
|
|
5
|
+
value?: string | number | boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TableSelectionSelectable<T extends Selectable = TableSelectableRow> = Omit<useSelectableProps<T>, 'onChange'> & {
|
|
8
|
+
onChange: (selected: T[]) => void;
|
|
9
|
+
};
|
|
10
|
+
export type TableSelectionConfig<T extends Selectable = TableSelectableRow> = boolean | Partial<TableSelectionSelectable<T>>;
|
|
11
|
+
export interface TableSelectionCore<T extends Selectable = TableSelectableRow> {
|
|
12
|
+
selected?: SelectableState<T>;
|
|
13
|
+
config: TableSelectionSelectable<T>;
|
|
14
|
+
allRowsAreSelected: boolean;
|
|
15
|
+
toggle: (key: T) => void;
|
|
16
|
+
toggleAll: () => void;
|
|
17
|
+
clear: () => void;
|
|
18
|
+
register: (key?: T) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function useTableSelectionCore<T extends Selectable>(config?: TableSelectionConfig<T>): TableSelectionCore<T>;
|
|
21
|
+
export declare const TableSelectionContext: React.Context<TableSelectionCore<TableSelectableRow>>;
|
|
22
|
+
type TableSelectionProviderProps = PropsWithChildren<{
|
|
23
|
+
selection?: TableSelectionConfig;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function TableSelectionProvider({ children, selection, }: TableSelectionProviderProps): JSX.Element;
|
|
26
|
+
export declare function useTableSelection<T extends Selectable = TableSelectableRow>(): TableSelectionCore<T>;
|
|
27
|
+
type TableSelectionHook<T extends Selectable = TableSelectableRow> = {
|
|
28
|
+
values: T[];
|
|
29
|
+
clear: TableSelectionCore<T>['clear'];
|
|
30
|
+
};
|
|
31
|
+
export declare function useSelection<T extends Selectable = TableSelectableRow>(): TableSelectionHook<T>;
|
|
32
|
+
export declare function isCellSelected<T extends Selectable>(value: T, selectedRows: SelectableState<T>, config: TableSelectionSelectable<T>): boolean;
|
|
33
|
+
export declare function useIsCellSelected<T extends Selectable = TableSelectableRow>(value?: T): boolean;
|
|
34
|
+
export {};
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
declare function
|
|
24
|
-
declare function
|
|
25
|
-
declare function
|
|
26
|
-
declare function
|
|
27
|
-
declare function
|
|
28
|
-
declare function
|
|
29
|
-
declare function
|
|
30
|
-
declare function
|
|
31
|
-
declare function
|
|
32
|
-
declare function
|
|
33
|
-
declare function
|
|
34
|
-
declare
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
export
|
|
39
|
-
export default Table;
|
|
1
|
+
import { useSelection } from './Selection';
|
|
2
|
+
import { default as TableSortHandle } from './TableSortHandle';
|
|
3
|
+
import { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
|
|
4
|
+
declare function Table<T>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
|
|
5
|
+
declare namespace Table {
|
|
6
|
+
var Head: typeof TableHead;
|
|
7
|
+
var Body: typeof TableBody;
|
|
8
|
+
var Row: typeof TableRow;
|
|
9
|
+
var Cell: typeof TableCell;
|
|
10
|
+
var HeadCell: typeof TableHeadCell;
|
|
11
|
+
var Foot: import("styled-components").StyledComponent<"tfoot", any, {}, never>;
|
|
12
|
+
var Caption: typeof TableCaption;
|
|
13
|
+
var Selection: {
|
|
14
|
+
Actions: typeof TableSelectionActions;
|
|
15
|
+
Cell: typeof SelectionCell;
|
|
16
|
+
HeadCell: typeof SelectionHeadCell;
|
|
17
|
+
};
|
|
18
|
+
var ExpandableRow: typeof ExpandableTableRow;
|
|
19
|
+
var SortHandle: typeof TableSortHandle;
|
|
20
|
+
var Picker: typeof TablePicker;
|
|
21
|
+
}
|
|
22
|
+
declare function TableCaption({ children, position, height }: TableCaptionProps): JSX.Element;
|
|
23
|
+
declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
|
|
24
|
+
declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
|
|
25
|
+
declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
|
|
26
|
+
declare function SelectionCell<T>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
|
|
27
|
+
declare function SelectionHeadCell<T>(props: SelectionCellProps<T>): JSX.Element;
|
|
28
|
+
declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
|
|
29
|
+
declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
|
|
30
|
+
declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
|
|
31
|
+
declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): JSX.Element;
|
|
32
|
+
declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): JSX.Element;
|
|
33
|
+
declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): JSX.Element;
|
|
34
|
+
declare namespace TablePicker {
|
|
35
|
+
var Item: typeof TablePickerItem;
|
|
36
|
+
}
|
|
37
|
+
export { useSelection };
|
|
38
|
+
export default Table;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export declare const TABLE_COLUMNS: ({
|
|
2
|
-
key: string;
|
|
3
|
-
title: string;
|
|
4
|
-
isSortable?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
key: string;
|
|
7
|
-
title: string;
|
|
8
|
-
isSortable: boolean;
|
|
9
|
-
})[];
|
|
10
|
-
export declare const TABLE_ROWS: {
|
|
11
|
-
[x: string]: string | number;
|
|
12
|
-
value: number;
|
|
13
|
-
}[];
|
|
14
|
-
export
|
|
15
|
-
export declare const TEST_TABLE_COLUMNS: ({
|
|
16
|
-
key: string;
|
|
17
|
-
title: string;
|
|
18
|
-
isSortable: boolean;
|
|
19
|
-
} | {
|
|
20
|
-
key: string;
|
|
21
|
-
title: string;
|
|
22
|
-
isSortable?: undefined;
|
|
23
|
-
})[];
|
|
24
|
-
export declare const TEST_TABLE_ROWS: {
|
|
25
|
-
key: number;
|
|
26
|
-
name: string;
|
|
27
|
-
type: string;
|
|
28
|
-
quantity: number;
|
|
29
|
-
}[];
|
|
1
|
+
export declare const TABLE_COLUMNS: ({
|
|
2
|
+
key: string;
|
|
3
|
+
title: string;
|
|
4
|
+
isSortable?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
key: string;
|
|
7
|
+
title: string;
|
|
8
|
+
isSortable: boolean;
|
|
9
|
+
})[];
|
|
10
|
+
export declare const TABLE_ROWS: {
|
|
11
|
+
[x: string]: string | number;
|
|
12
|
+
value: number;
|
|
13
|
+
}[];
|
|
14
|
+
export type RowFixture = (typeof TABLE_ROWS)[number];
|
|
15
|
+
export declare const TEST_TABLE_COLUMNS: ({
|
|
16
|
+
key: string;
|
|
17
|
+
title: string;
|
|
18
|
+
isSortable: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
key: string;
|
|
21
|
+
title: string;
|
|
22
|
+
isSortable?: undefined;
|
|
23
|
+
})[];
|
|
24
|
+
export declare const TEST_TABLE_ROWS: {
|
|
25
|
+
key: number;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
quantity: number;
|
|
29
|
+
}[];
|