@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,37 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
family: string;
|
|
7
|
-
};
|
|
8
|
-
export
|
|
9
|
-
uuid: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
export
|
|
13
|
-
export declare const SelectableKeyTypeOptions: {
|
|
14
|
-
label: string;
|
|
15
|
-
value: SelectableKeyType;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const FRUITS: Readonly<Fruit[]>;
|
|
18
|
-
export declare const USERS: {
|
|
19
|
-
uuid: string;
|
|
20
|
-
name: string;
|
|
21
|
-
}[];
|
|
22
|
-
export declare const CUSTOMERS: {
|
|
23
|
-
uuid: string;
|
|
24
|
-
name: string;
|
|
25
|
-
}[];
|
|
26
|
-
export declare function useSyncFruits(): SelectDatasource<{
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}>;
|
|
30
|
-
export declare function useAsyncUsers(): SelectDatasource<{
|
|
31
|
-
uuid: string;
|
|
32
|
-
name: string;
|
|
33
|
-
}>;
|
|
34
|
-
export declare function useAsyncCustomers(): SelectDatasource<{
|
|
35
|
-
uuid: string;
|
|
36
|
-
name: string;
|
|
37
|
-
}>;
|
|
1
|
+
import { SelectableKeyType } from '../../hooks/useSelectable';
|
|
2
|
+
import { SelectDatasource } from './Select.types';
|
|
3
|
+
export type Fruit = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
family: string;
|
|
7
|
+
};
|
|
8
|
+
export type User = {
|
|
9
|
+
uuid: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
export type Customer = User;
|
|
13
|
+
export declare const SelectableKeyTypeOptions: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: SelectableKeyType;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const FRUITS: Readonly<Fruit[]>;
|
|
18
|
+
export declare const USERS: {
|
|
19
|
+
uuid: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const CUSTOMERS: {
|
|
23
|
+
uuid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}[];
|
|
26
|
+
export declare function useSyncFruits(): SelectDatasource<{
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function useAsyncUsers(): SelectDatasource<{
|
|
31
|
+
uuid: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function useAsyncCustomers(): SelectDatasource<{
|
|
35
|
+
uuid: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: Story<SelectProps>;
|
|
6
|
-
export declare const SingleSyncDatasource: Story<SelectProps>;
|
|
7
|
-
export declare const SingleCustomOptionRendering: Story<SelectProps>;
|
|
8
|
-
export declare const SingleCustomEmptyRendering: Story<SelectProps>;
|
|
9
|
-
export declare const SingleAsyncDatasource: Story<SelectProps>;
|
|
10
|
-
export declare const SingleMixedDatasources: Story<SelectProps>;
|
|
11
|
-
export declare const MultiSyncDatasource: Story<SelectProps>;
|
|
12
|
-
export declare const MultiAsyncDatasource: Story<SelectProps>;
|
|
13
|
-
export declare const MultiMixedDatasource: Story<SelectProps>;
|
|
14
|
-
export declare const VariousAsyncDatasources: Story<SelectProps>;
|
|
15
|
-
export declare const MultiCustomOptionRendering: Story<SelectProps>;
|
|
16
|
-
export declare const CreatableSync: Story<SelectProps>;
|
|
17
|
-
export declare const CreatableAsync: Story<SelectProps>;
|
|
18
|
-
export declare const CustomCreatableOption: Story<SelectProps>;
|
|
19
|
-
export declare const SelectWithFixedCreatableOption: Story<SelectProps>;
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import { SelectProps } from './Select.types';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Playground: Story<SelectProps>;
|
|
6
|
+
export declare const SingleSyncDatasource: Story<SelectProps>;
|
|
7
|
+
export declare const SingleCustomOptionRendering: Story<SelectProps>;
|
|
8
|
+
export declare const SingleCustomEmptyRendering: Story<SelectProps>;
|
|
9
|
+
export declare const SingleAsyncDatasource: Story<SelectProps>;
|
|
10
|
+
export declare const SingleMixedDatasources: Story<SelectProps>;
|
|
11
|
+
export declare const MultiSyncDatasource: Story<SelectProps>;
|
|
12
|
+
export declare const MultiAsyncDatasource: Story<SelectProps>;
|
|
13
|
+
export declare const MultiMixedDatasource: Story<SelectProps>;
|
|
14
|
+
export declare const VariousAsyncDatasources: Story<SelectProps>;
|
|
15
|
+
export declare const MultiCustomOptionRendering: Story<SelectProps>;
|
|
16
|
+
export declare const CreatableSync: Story<SelectProps>;
|
|
17
|
+
export declare const CreatableAsync: Story<SelectProps>;
|
|
18
|
+
export declare const CustomCreatableOption: Story<SelectProps>;
|
|
19
|
+
export declare const SelectWithFixedCreatableOption: Story<SelectProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
export
|
|
8
|
-
export interface GenericOption {
|
|
9
|
-
label: string;
|
|
10
|
-
value: SelectableKeyType;
|
|
11
|
-
}
|
|
12
|
-
export interface SelectableOption extends GenericOption {
|
|
13
|
-
checked: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface SelectableOptionProps {
|
|
16
|
-
role: string;
|
|
17
|
-
'aria-selected': boolean;
|
|
18
|
-
id: string;
|
|
19
|
-
onClick: () => boolean | undefined;
|
|
20
|
-
tabIndex: number;
|
|
21
|
-
}
|
|
22
|
-
export interface CreatableProps {
|
|
23
|
-
onClick: () => void;
|
|
24
|
-
tabIndex: number;
|
|
25
|
-
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export interface SelectAdapter<T> extends SelectableAdapter<T> {
|
|
29
|
-
getLabel: (o: T) => string;
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
type: string;
|
|
34
|
-
adapter: SelectAdapter<T>;
|
|
35
|
-
fetch: ({ query, regex }: {
|
|
36
|
-
query: string;
|
|
37
|
-
regex: RegExp;
|
|
38
|
-
}) => T[] | Promise<T[]>;
|
|
39
|
-
};
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
value: SelectOptionProps['value'];
|
|
43
|
-
};
|
|
44
|
-
export
|
|
45
|
-
children: SelectEmptyProps['children'];
|
|
46
|
-
};
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
Option?: ComponentType<SelectComponentsOptionProps>;
|
|
50
|
-
Empty?: ComponentType<SelectComponentsEmptyProps>;
|
|
51
|
-
CreatableOption?: CreatableOptionType;
|
|
52
|
-
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export interface SelectProps extends DropdownProps {
|
|
58
|
-
name: string;
|
|
59
|
-
placeholder?: string;
|
|
60
|
-
value?: Option | Option[] | null;
|
|
61
|
-
multiple?: boolean;
|
|
62
|
-
autoFocus?: boolean;
|
|
63
|
-
datasources?: SelectDatasourceFunction<any>[];
|
|
64
|
-
options?: GenericOption[];
|
|
65
|
-
components?: Components;
|
|
66
|
-
onChange?: OnChange;
|
|
67
|
-
onCreate?: OnCreate;
|
|
68
|
-
onQueryChange?: OnQueryChange;
|
|
69
|
-
getInputProps?: () => Partial<TextFieldProps>;
|
|
70
|
-
isValidNewOption?: ((query: string) => boolean) | boolean;
|
|
71
|
-
createOptionPosition?: CreateOptionPosition;
|
|
72
|
-
/**
|
|
73
|
-
* Hide the clear button on the Single Select.
|
|
74
|
-
*/
|
|
75
|
-
hideClear?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export
|
|
78
|
-
value: SelectableKeyType;
|
|
79
|
-
} & Omit<DropdownMenuItemProps, keyof SelectableOptionProps | 'value'>;
|
|
80
|
-
export
|
|
81
|
-
export
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
export
|
|
85
|
-
status: SelectStatus;
|
|
86
|
-
options: Option[];
|
|
87
|
-
value: Selectable | Selectable[] | null;
|
|
88
|
-
query: string;
|
|
89
|
-
disabled: boolean;
|
|
90
|
-
selectable: useSelectableReturn<Option>;
|
|
91
|
-
getMenuProps: () => {
|
|
92
|
-
ref: (container: HTMLElement | null) => void;
|
|
93
|
-
role: string;
|
|
94
|
-
};
|
|
95
|
-
getSelectableOption: (option: Option) => SelectableOption;
|
|
96
|
-
getOption: (value: SelectableKeyType) => Option | undefined;
|
|
97
|
-
getOptionProps: ({ option }: {
|
|
98
|
-
option: Option;
|
|
99
|
-
}) => SelectableOptionProps;
|
|
100
|
-
getTriggerProps: () => {
|
|
101
|
-
ref: (node: HTMLInputElement | null) => void;
|
|
102
|
-
value: string;
|
|
103
|
-
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
104
|
-
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
105
|
-
};
|
|
106
|
-
getClearProps: () => {
|
|
107
|
-
onClick: () => void;
|
|
108
|
-
};
|
|
109
|
-
getDropdownProps: () => {
|
|
110
|
-
toggle: () => void;
|
|
111
|
-
expanded: boolean;
|
|
112
|
-
onBlur: (event?: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
113
|
-
};
|
|
114
|
-
getCreatebleProps: () => CreatableProps;
|
|
115
|
-
isCreatable: () => boolean;
|
|
116
|
-
createOptionPosition?: CreateOptionPosition;
|
|
117
|
-
};
|
|
118
|
-
export
|
|
119
|
-
getOption: useSelectReturn['getOption'];
|
|
120
|
-
query: useSelectReturn['query'];
|
|
121
|
-
isChecked: (option: Option) => boolean;
|
|
122
|
-
};
|
|
1
|
+
import { default as EventLike } from '../../utils/types/EventLike';
|
|
2
|
+
import { DropdownMenuItemProps, DropdownProps } from '../Dropdown';
|
|
3
|
+
import { TextFieldProps } from '../TextField';
|
|
4
|
+
import { Selectable, SelectableAdapter, SelectableKeyType, SelectableState } from '../../hooks/useSelectable';
|
|
5
|
+
import { useSelectableReturn } from '../../hooks/useSelectable/useSelectable.types';
|
|
6
|
+
import { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes } from 'react';
|
|
7
|
+
export type Option = Selectable;
|
|
8
|
+
export interface GenericOption {
|
|
9
|
+
label: string;
|
|
10
|
+
value: SelectableKeyType;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectableOption extends GenericOption {
|
|
13
|
+
checked: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface SelectableOptionProps {
|
|
16
|
+
role: string;
|
|
17
|
+
'aria-selected': boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
onClick: () => boolean | undefined;
|
|
20
|
+
tabIndex: number;
|
|
21
|
+
}
|
|
22
|
+
export interface CreatableProps {
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
tabIndex: number;
|
|
25
|
+
}
|
|
26
|
+
export type OptionKeyType = SelectableKeyType;
|
|
27
|
+
export type SelectValue = SelectableState<Option>;
|
|
28
|
+
export interface SelectAdapter<T> extends SelectableAdapter<T> {
|
|
29
|
+
getLabel: (o: T) => string;
|
|
30
|
+
}
|
|
31
|
+
export type Adapters = Record<string, SelectAdapter<any>>;
|
|
32
|
+
export type SelectDatasource<T> = {
|
|
33
|
+
type: string;
|
|
34
|
+
adapter: SelectAdapter<T>;
|
|
35
|
+
fetch: ({ query, regex }: {
|
|
36
|
+
query: string;
|
|
37
|
+
regex: RegExp;
|
|
38
|
+
}) => T[] | Promise<T[]>;
|
|
39
|
+
};
|
|
40
|
+
export type SelectDatasourceFunction<T> = () => SelectDatasource<T>;
|
|
41
|
+
export type SelectComponentsOptionProps = {
|
|
42
|
+
value: SelectOptionProps['value'];
|
|
43
|
+
};
|
|
44
|
+
export type SelectComponentsEmptyProps = {
|
|
45
|
+
children: SelectEmptyProps['children'];
|
|
46
|
+
};
|
|
47
|
+
export type CreatableOptionType = () => React.ReactElement<any, any> | null;
|
|
48
|
+
export type Components = {
|
|
49
|
+
Option?: ComponentType<SelectComponentsOptionProps>;
|
|
50
|
+
Empty?: ComponentType<SelectComponentsEmptyProps>;
|
|
51
|
+
CreatableOption?: CreatableOptionType;
|
|
52
|
+
};
|
|
53
|
+
export type CreateOptionPosition = 'first' | 'last';
|
|
54
|
+
export type OnChange = (event: EventLike<Option | Option[] | null>) => void;
|
|
55
|
+
export type OnCreate = (query: string) => Promise<void | Option> | void | Option;
|
|
56
|
+
export type OnQueryChange = (e: ChangeEvent<HTMLInputElement>) => void;
|
|
57
|
+
export interface SelectProps extends DropdownProps {
|
|
58
|
+
name: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
value?: Option | Option[] | null;
|
|
61
|
+
multiple?: boolean;
|
|
62
|
+
autoFocus?: boolean;
|
|
63
|
+
datasources?: SelectDatasourceFunction<any>[];
|
|
64
|
+
options?: GenericOption[];
|
|
65
|
+
components?: Components;
|
|
66
|
+
onChange?: OnChange;
|
|
67
|
+
onCreate?: OnCreate;
|
|
68
|
+
onQueryChange?: OnQueryChange;
|
|
69
|
+
getInputProps?: () => Partial<TextFieldProps>;
|
|
70
|
+
isValidNewOption?: ((query: string) => boolean) | boolean;
|
|
71
|
+
createOptionPosition?: CreateOptionPosition;
|
|
72
|
+
/**
|
|
73
|
+
* Hide the clear button on the Single Select.
|
|
74
|
+
*/
|
|
75
|
+
hideClear?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export type SelectOptionProps = {
|
|
78
|
+
value: SelectableKeyType;
|
|
79
|
+
} & Omit<DropdownMenuItemProps, keyof SelectableOptionProps | 'value'>;
|
|
80
|
+
export type SelectEmptyProps = HTMLAttributes<HTMLDivElement>;
|
|
81
|
+
export type SelectCreatableOptionProps = Omit<DropdownMenuItemProps, keyof CreatableProps>;
|
|
82
|
+
export type SelectStatus = 'idle' | 'querying' | 'pending-query' | 'queried';
|
|
83
|
+
export type SelectTriggerProps = TextFieldProps;
|
|
84
|
+
export type useSelectReturn = {
|
|
85
|
+
status: SelectStatus;
|
|
86
|
+
options: Option[];
|
|
87
|
+
value: Selectable | Selectable[] | null;
|
|
88
|
+
query: string;
|
|
89
|
+
disabled: boolean;
|
|
90
|
+
selectable: useSelectableReturn<Option>;
|
|
91
|
+
getMenuProps: () => {
|
|
92
|
+
ref: (container: HTMLElement | null) => void;
|
|
93
|
+
role: string;
|
|
94
|
+
};
|
|
95
|
+
getSelectableOption: (option: Option) => SelectableOption;
|
|
96
|
+
getOption: (value: SelectableKeyType) => Option | undefined;
|
|
97
|
+
getOptionProps: ({ option }: {
|
|
98
|
+
option: Option;
|
|
99
|
+
}) => SelectableOptionProps;
|
|
100
|
+
getTriggerProps: () => {
|
|
101
|
+
ref: (node: HTMLInputElement | null) => void;
|
|
102
|
+
value: string;
|
|
103
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
104
|
+
onFocus: (e: FocusEvent<HTMLInputElement>) => void;
|
|
105
|
+
};
|
|
106
|
+
getClearProps: () => {
|
|
107
|
+
onClick: () => void;
|
|
108
|
+
};
|
|
109
|
+
getDropdownProps: () => {
|
|
110
|
+
toggle: () => void;
|
|
111
|
+
expanded: boolean;
|
|
112
|
+
onBlur: (event?: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
113
|
+
};
|
|
114
|
+
getCreatebleProps: () => CreatableProps;
|
|
115
|
+
isCreatable: () => boolean;
|
|
116
|
+
createOptionPosition?: CreateOptionPosition;
|
|
117
|
+
};
|
|
118
|
+
export type useSelectExternalReturn = {
|
|
119
|
+
getOption: useSelectReturn['getOption'];
|
|
120
|
+
query: useSelectReturn['query'];
|
|
121
|
+
isChecked: (option: Option) => boolean;
|
|
122
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default SelectCreatableOption;
|
|
1
|
+
import { SelectCreatableOptionProps } from './Select.types';
|
|
2
|
+
declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): JSX.Element;
|
|
3
|
+
export default SelectCreatableOption;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default SelectEmpty;
|
|
1
|
+
import { SelectEmptyProps } from './Select.types';
|
|
2
|
+
declare function SelectEmpty({ children, ...others }: SelectEmptyProps): JSX.Element;
|
|
3
|
+
export default SelectEmpty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default SelectOption;
|
|
1
|
+
import { SelectOptionProps } from './Select.types';
|
|
2
|
+
declare function SelectOption({ children, value, leading, trailing, ...rest }: SelectOptionProps): JSX.Element;
|
|
3
|
+
export default SelectOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<import(
|
|
3
|
-
export default SelectTrigger;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<import('../TextField').TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export default SelectTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function getComponents(components?: Components): Required<Components>;
|
|
1
|
+
import { Components } from './Select.types';
|
|
2
|
+
export declare function getComponents(components?: Components): Required<Components>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Select } from './Select';
|
|
2
|
-
export type { SelectProps, useSelectExternalReturn as useSelectReturn, SelectComponentsOptionProps as SelectOptionProps, SelectComponentsEmptyProps as SelectEmptyProps, Option as SelectOption, OnChange as SelectOnChange, OnCreate as SelectOnCreate, OnQueryChange as SelectOnQueryChange, } from './Select.types';
|
|
3
|
-
export { useSelectExternal as useSelect } from './useSelectExternal';
|
|
1
|
+
export { default as Select } from './Select';
|
|
2
|
+
export type { SelectProps, useSelectExternalReturn as useSelectReturn, SelectComponentsOptionProps as SelectOptionProps, SelectComponentsEmptyProps as SelectEmptyProps, Option as SelectOption, OnChange as SelectOnChange, OnCreate as SelectOnCreate, OnQueryChange as SelectOnQueryChange, } from './Select.types';
|
|
3
|
+
export { useSelectExternal as useSelect } from './useSelectExternal';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Based on https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html
|
|
4
|
-
* @param props
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
declare function useSelect(props: SelectProps): useSelectReturn;
|
|
8
|
-
export default useSelect;
|
|
1
|
+
import { SelectProps, useSelectReturn } from './Select.types';
|
|
2
|
+
/**
|
|
3
|
+
* Based on https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html
|
|
4
|
+
* @param props
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
declare function useSelect(props: SelectProps): useSelectReturn;
|
|
8
|
+
export default useSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function getAdapter(adapters: Adapters, type?: string): SelectAdapter<any>;
|
|
3
|
-
export declare function getValue(selection: SelectValue, multiple?: boolean): Option | Option[] | null;
|
|
4
|
-
export declare function toSelection(value: SelectProps['value']): Option[];
|
|
5
|
-
export declare function getDisplayValue(adapters: Adapters, selection: SelectValue, multiple?: boolean): string;
|
|
6
|
-
export declare function escapeRegExp(value: string): string;
|
|
1
|
+
import { SelectAdapter, SelectValue, Option, Adapters, SelectProps } from './Select.types';
|
|
2
|
+
export declare function getAdapter(adapters: Adapters, type?: string): SelectAdapter<any>;
|
|
3
|
+
export declare function getValue(selection: SelectValue, multiple?: boolean): Option | Option[] | null;
|
|
4
|
+
export declare function toSelection(value: SelectProps['value']): Option[];
|
|
5
|
+
export declare function getDisplayValue(adapters: Adapters, selection: SelectValue, multiple?: boolean): string;
|
|
6
|
+
export declare function escapeRegExp(value: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function useSelectExternal(): useSelectExternalReturn;
|
|
1
|
+
import { useSelectExternalReturn } from './Select.types';
|
|
2
|
+
export declare function useSelectExternal(): useSelectExternalReturn;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
url: string;
|
|
10
|
-
className?: string | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
}, never>;
|
|
14
|
-
export default _default;
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type LogoProps = PropsWithChildren<{
|
|
3
|
+
url: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
declare function Logo({ className, url, children }: LogoProps): JSX.Element;
|
|
7
|
+
declare const _default: import('styled-components').StyledComponent<typeof Logo, any, LogoProps, never>;
|
|
8
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Logo } from './Logo';
|
|
1
|
+
export { default as Logo } from './Logo';
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export default _default;
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { MenuExpandableProps } from './MenuExpandable';
|
|
3
|
+
import { MenuLinkProps } from './MenuLink';
|
|
4
|
+
export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function Menu({ label, children, ...props }: MenuProps): JSX.Element;
|
|
8
|
+
type MenuItemProps = {
|
|
9
|
+
active?: boolean;
|
|
10
|
+
} & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
|
|
11
|
+
declare function MenuItem(props: MenuItemProps): React.JSX.Element;
|
|
12
|
+
declare const _default: string & import('styled-components').StyledComponentBase<typeof Menu, any, {}, never> & import('hoist-non-react-statics').NonReactStatics<typeof Menu, {}> & {
|
|
13
|
+
Item: typeof MenuItem;
|
|
14
|
+
SubItem: import('styled-components').StyledComponent<({ url, ...props }: MenuLinkProps) => JSX.Element, any, {}, never>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
label: string;
|
|
5
|
-
leading?: ReactNode;
|
|
6
|
-
trailing?: ReactNode;
|
|
7
|
-
url?: string;
|
|
8
|
-
subItems?: MenuLinkProps[];
|
|
9
|
-
};
|
|
10
|
-
declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): JSX.Element;
|
|
11
|
-
export default MenuBaseItem;
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
import { MenuLinkProps } from './MenuLink';
|
|
3
|
+
export type MenuBaseItemProps = HTMLAttributes<HTMLElement> & {
|
|
4
|
+
label: string;
|
|
5
|
+
leading?: ReactNode;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
url?: string;
|
|
8
|
+
subItems?: MenuLinkProps[];
|
|
9
|
+
};
|
|
10
|
+
declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): JSX.Element;
|
|
11
|
+
export default MenuBaseItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
label: string;
|
|
4
|
-
}>;
|
|
5
|
-
declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): JSX.Element;
|
|
6
|
-
export default MenuExpandable;
|
|
1
|
+
import { PropsWithChildren, HTMLAttributes } from 'react';
|
|
2
|
+
export type MenuExpandableProps = HTMLAttributes<HTMLDivElement> & PropsWithChildren<{
|
|
3
|
+
label: string;
|
|
4
|
+
}>;
|
|
5
|
+
declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): JSX.Element;
|
|
6
|
+
export default MenuExpandable;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
export default _default;
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export type MenuLinkProps = React.HTMLAttributes<HTMLAnchorElement> & {
|
|
3
|
+
label: string;
|
|
4
|
+
leading?: ReactNode;
|
|
5
|
+
trailing?: ReactNode;
|
|
6
|
+
url?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function MenuLink({ url, ...props }: MenuLinkProps): JSX.Element;
|
|
9
|
+
declare const _default: import('styled-components').StyledComponent<typeof MenuLink, any, {}, never>;
|
|
10
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Menu } from './Menu';
|
|
1
|
+
export { default as Menu } from './Menu';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default Separator;
|
|
1
|
+
export interface SeparatorProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
}
|
|
4
|
+
declare function Separator(props: SeparatorProps): JSX.Element;
|
|
5
|
+
export default Separator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Separator } from './Separator';
|
|
1
|
+
export { default as Separator } from './Separator';
|