@loadsmart/loadsmart-ui 6.0.1 → 6.0.3
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-0f0ede42.js → DragDropFile.context-50968b55.js} +1 -1
- package/dist/{DragDropFile.context-0f0ede42.js.map → DragDropFile.context-50968b55.js.map} +1 -1
- package/dist/common/BackButton/BackButton.d.ts +4 -4
- package/dist/common/BackButton/index.d.ts +2 -2
- package/dist/common/CloseButton/CloseButton.d.ts +6 -6
- package/dist/common/CloseButton/index.d.ts +2 -2
- package/dist/common/SelectionWrapper.d.ts +14 -14
- package/dist/components/Accordion/Accordion.context.d.ts +10 -10
- package/dist/components/Accordion/Accordion.d.ts +19 -19
- package/dist/components/Accordion/Accordion.stories.d.ts +8 -8
- package/dist/components/Accordion/Accordion.test.d.ts +1 -1
- package/dist/components/Accordion/index.d.ts +2 -2
- package/dist/components/Banner/Banner.d.ts +25 -25
- package/dist/components/Banner/Banner.stories.d.ts +106 -106
- package/dist/components/Banner/Banner.test.d.ts +1 -1
- package/dist/components/Banner/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -5
- package/dist/components/Breadcrumbs/index.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +22 -22
- package/dist/components/Button/Button.stories.d.ts +32 -32
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +9 -9
- package/dist/components/Calendar/Calendar.helpers.d.ts +2 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +21 -21
- package/dist/components/Calendar/Calendar.test.d.ts +1 -1
- package/dist/components/Calendar/Calendar.types.d.ts +63 -63
- package/dist/components/Calendar/Date.helper.d.ts +214 -214
- package/dist/components/Calendar/Date.helper.test.d.ts +1 -1
- package/dist/components/Calendar/DateFormat.helper.d.ts +35 -35
- package/dist/components/Calendar/DateFormat.helper.test.d.ts +1 -1
- package/dist/components/Calendar/Month.helper.d.ts +58 -58
- package/dist/components/Calendar/Month.helper.test.d.ts +1 -1
- package/dist/components/Calendar/PickerModeToggle.d.ts +5 -5
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -9
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -3
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +5 -5
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -3
- package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +9 -9
- package/dist/components/Calendar/useCalendar.d.ts +19 -19
- package/dist/components/Calendar/usePickerMode.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +16 -16
- package/dist/components/Card/Card.stories.d.ts +8 -8
- package/dist/components/Card/Card.test.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts +8 -8
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +13 -13
- package/dist/components/DatePicker/DatePicker.stories.d.ts +22 -22
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +27 -27
- package/dist/components/DatePicker/DateRangePicker.d.ts +4 -4
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -21
- package/dist/components/DatePicker/DateRangePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -3
- package/dist/components/DatePicker/useDatePicker.d.ts +584 -584
- package/dist/components/DatePicker/useDateRangePicker.d.ts +876 -876
- package/dist/components/Dialog/Dialog.d.ts +37 -37
- package/dist/components/Dialog/Dialog.stories.d.ts +67 -67
- package/dist/components/Dialog/Dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +4 -4
- package/dist/components/Dialog/useDialog.d.ts +12 -12
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +5 -5
- package/dist/components/DragDropFile/DragDropFile.d.ts +7 -7
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
- package/dist/components/DragDropFile/components/DropZone.d.ts +3 -3
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +3 -3
- package/dist/components/DragDropFile/components/FileList.d.ts +3 -3
- package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +6 -6
- package/dist/components/DragDropFile/index.d.ts +3 -3
- package/dist/components/DragDropFile/mocks.d.ts +9 -9
- package/dist/components/DragDropFile/styles.d.ts +10 -10
- package/dist/components/DragDropFile/types.d.ts +71 -71
- package/dist/components/Drawer/Drawer.d.ts +28 -28
- package/dist/components/Drawer/Drawer.stories.d.ts +6 -6
- package/dist/components/Drawer/Drawer.test.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.context.d.ts +4 -4
- package/dist/components/Dropdown/Dropdown.d.ts +47 -47
- package/dist/components/Dropdown/Dropdown.fixtures.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.stories.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +49 -49
- package/dist/components/Dropdown/DropdownMenu.d.ts +8 -8
- package/dist/components/Dropdown/DropdownTrigger.d.ts +21 -21
- package/dist/components/Dropdown/index.d.ts +6 -6
- package/dist/components/Dropdown/useDropdown.d.ts +14 -14
- package/dist/components/Dropdown/useDropdown.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.mocks.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.stories.d.ts +32 -32
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +22 -22
- package/dist/components/EmptyState/EmptyStateWithIcon.d.ts +4 -4
- package/dist/components/EmptyState/EmptyStateWithIllustration.d.ts +4 -4
- package/dist/components/EmptyState/Illustration.d.ts +4 -4
- package/dist/components/EmptyState/index.d.ts +3 -3
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +4 -4
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +13 -13
- package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +1 -1
- package/dist/components/ErrorMessage/index.d.ts +2 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +7 -7
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +5 -5
- package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +1 -1
- package/dist/components/HighlightMatch/index.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts +27 -27
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +16 -16
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +10 -10
- package/dist/components/IconFactory/IconFactory.stories.d.ts +6 -6
- package/dist/components/IconFactory/IconFactory.test.d.ts +1 -1
- package/dist/components/IconFactory/index.d.ts +2 -2
- package/dist/components/Label/Label.d.ts +18 -18
- package/dist/components/Label/Label.stories.d.ts +14 -14
- package/dist/components/Label/Label.test.d.ts +1 -1
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Layout/Box.d.ts +15 -15
- package/dist/components/Layout/Grid.d.ts +11 -11
- package/dist/components/Layout/Group.d.ts +14 -14
- package/dist/components/Layout/Layout.d.ts +16 -16
- package/dist/components/Layout/Layout.stories.d.ts +146 -146
- package/dist/components/Layout/Layout.types.d.ts +3 -3
- package/dist/components/Layout/Layout.utils.d.ts +3 -3
- package/dist/components/Layout/Sidebar.d.ts +13 -13
- package/dist/components/Layout/Stack.d.ts +19 -19
- package/dist/components/Layout/Switcher.d.ts +12 -12
- package/dist/components/Layout/index.d.ts +7 -7
- package/dist/components/Link/Link.d.ts +9 -9
- package/dist/components/Link/Link.stories.d.ts +5 -5
- package/dist/components/Link/Link.test.d.ts +1 -1
- package/dist/components/Link/index.d.ts +3 -3
- package/dist/components/Link/useSafeLink.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +13 -13
- package/dist/components/Loaders/LoadingBar.stories.d.ts +5 -5
- package/dist/components/Loaders/LoadingBar.test.d.ts +1 -1
- package/dist/components/Loaders/LoadingDots.d.ts +5 -5
- package/dist/components/Loaders/LoadingDots.stories.d.ts +6 -6
- package/dist/components/Loaders/LoadingDots.test.d.ts +1 -1
- package/dist/components/Loaders/Spinner.d.ts +5 -5
- package/dist/components/Loaders/Spinner.stories.d.ts +5 -5
- package/dist/components/Loaders/Spinner.test.d.ts +1 -1
- package/dist/components/Loaders/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +22 -22
- package/dist/components/Modal/Modal.stories.d.ts +30 -30
- package/dist/components/Modal/Modal.test.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.constants.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.helper.d.ts +15 -15
- package/dist/components/Pagination/Pagination.stories.d.ts +5 -5
- package/dist/components/Pagination/Pagination.test.d.ts +1 -1
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/PaginationItem.d.ts +3 -3
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/usePagination.d.ts +3 -3
- package/dist/components/Pagination/usePagination.test.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -10
- package/dist/components/Popover/Popover.stories.d.ts +5 -5
- package/dist/components/Popover/Popover.test.d.ts +1 -1
- package/dist/components/Popover/Popover.types.d.ts +33 -33
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +12 -12
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +10 -10
- package/dist/components/Radio/Radio.stories.d.ts +8 -8
- package/dist/components/Radio/Radio.test.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Section/Section.d.ts +12 -12
- package/dist/components/Section/Section.test.d.ts +1 -1
- package/dist/components/Section/Sections.stories.d.ts +5 -5
- package/dist/components/Section/index.d.ts +2 -2
- package/dist/components/Select/Select.constants.d.ts +2 -2
- package/dist/components/Select/Select.context.d.ts +6 -6
- package/dist/components/Select/Select.d.ts +13 -13
- package/dist/components/Select/Select.fixtures.d.ts +28 -28
- package/dist/components/Select/Select.stories.d.ts +18 -18
- package/dist/components/Select/Select.test.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +121 -121
- package/dist/components/Select/SelectCreatableOption.d.ts +3 -3
- package/dist/components/Select/SelectEmpty.d.ts +3 -3
- package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts +3 -3
- package/dist/components/Select/SelectOption.test.d.ts +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +3 -3
- package/dist/components/Select/components.d.ts +2 -2
- package/dist/components/Select/index.d.ts +3 -3
- package/dist/components/Select/useSelect.d.ts +8 -8
- package/dist/components/Select/useSelect.helpers.d.ts +6 -6
- package/dist/components/Select/useSelect.helpers.test.d.ts +1 -1
- package/dist/components/Select/useSelect.test.d.ts +1 -1
- package/dist/components/Select/useSelectExternal.d.ts +2 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +14 -14
- package/dist/components/SideNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/index.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/Menu.d.ts +17 -17
- package/dist/components/SideNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +6 -6
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -5
- package/dist/components/SideNavigation/Separator/Separator.test.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/index.d.ts +1 -1
- package/dist/components/SideNavigation/SideNavigation.d.ts +34 -34
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +5 -5
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -1
- package/dist/components/SideNavigation/index.d.ts +4 -4
- package/dist/components/SideNavigation/useSideNavigation.d.ts +8 -8
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +12 -12
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +7 -7
- package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +19 -19
- package/dist/components/Steps/Steps.fixtures.d.ts +6 -6
- package/dist/components/Steps/Steps.helpers.d.ts +2 -2
- package/dist/components/Steps/Steps.stories.d.ts +5 -5
- package/dist/components/Steps/Steps.test.d.ts +1 -1
- package/dist/components/Steps/Steps.types.d.ts +5 -5
- package/dist/components/Steps/StepsContext.d.ts +3 -3
- package/dist/components/Steps/StepsStep.d.ts +8 -8
- package/dist/components/Steps/index.d.ts +5 -5
- package/dist/components/Steps/useStep.test.d.ts +1 -1
- package/dist/components/Steps/useSteps.d.ts +30 -30
- package/dist/components/Switch/Switch.d.ts +11 -11
- package/dist/components/Switch/Switch.stories.d.ts +5 -5
- package/dist/components/Switch/Switch.test.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Selection.d.ts +35 -35
- package/dist/components/Table/Table.d.ts +44 -44
- package/dist/components/Table/Table.fixtures.d.ts +29 -29
- package/dist/components/Table/Table.stories.d.ts +61 -61
- package/dist/components/Table/Table.test.d.ts +1 -1
- package/dist/components/Table/Table.types.d.ts +73 -73
- package/dist/components/Table/TableSortHandle.d.ts +7 -7
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/useSortBy.d.ts +16 -16
- package/dist/components/Table/useSortBy.test.d.ts +1 -1
- package/dist/components/Table/useSortBy.types.d.ts +16 -16
- package/dist/components/TablePagination/RowsPerPage.d.ts +3 -3
- package/dist/components/TablePagination/TablePagination.d.ts +3 -3
- package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.styles.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.test.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.types.d.ts +59 -59
- package/dist/components/TablePagination/TablePaginationActions.d.ts +10 -10
- package/dist/components/TablePagination/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +54 -54
- package/dist/components/Tabs/Tabs.stories.d.ts +23 -23
- package/dist/components/Tabs/Tabs.test.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -6
- package/dist/components/Tabs/TabsContext.d.ts +9 -9
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +19 -19
- package/dist/components/Tag/Tag.stories.d.ts +41 -41
- package/dist/components/Tag/Tag.test.d.ts +1 -1
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +15 -15
- package/dist/components/Text/Text.stories.d.ts +5 -5
- package/dist/components/Text/Text.test.d.ts +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +19 -19
- package/dist/components/TextField/TextField.stories.d.ts +11 -11
- package/dist/components/TextField/TextField.test.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +4 -4
- package/dist/components/TextField/useTextField.d.ts +6 -6
- package/dist/components/Textarea/Textarea.d.ts +17 -17
- package/dist/components/Textarea/Textarea.stories.d.ts +11 -11
- package/dist/components/Textarea/Textarea.test.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +11 -11
- package/dist/components/Toast/Toast.stories.d.ts +12 -12
- package/dist/components/Toast/Toast.test.d.ts +1 -1
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +4 -4
- package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.constants.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +26 -26
- package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +5 -5
- package/dist/components/ToggleGroup/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +23 -23
- package/dist/components/Tooltip/Tooltip.stories.d.ts +13 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TopNavigation/Logo/Logo.d.ts +14 -14
- package/dist/components/TopNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/index.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/Menu.d.ts +18 -18
- package/dist/components/TopNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +17 -17
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/index.d.ts +1 -1
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +7 -7
- package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
- package/dist/components/TopNavigation/TopNavigation.d.ts +17 -17
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -5
- package/dist/components/TopNavigation/index.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +13 -12
- 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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{miranda-compatibility.theme-97e29e8e.js → miranda-compatibility.theme-781b0886.js} +1 -1
- package/dist/miranda-compatibility.theme-781b0886.js.map +1 -0
- package/dist/prop-32998961.js +2 -0
- package/dist/prop-32998961.js.map +1 -0
- package/dist/styles/activatable.d.ts +10 -10
- package/dist/styles/disableable.d.ts +10 -10
- package/dist/styles/ellipsizable.d.ts +7 -7
- package/dist/styles/focusable.d.ts +10 -10
- package/dist/styles/font.d.ts +16 -16
- package/dist/styles/font.test.d.ts +1 -1
- package/dist/styles/hidden.d.ts +7 -7
- package/dist/styles/hoverable.d.ts +10 -10
- package/dist/styles/transition.d.ts +11 -11
- package/dist/styles/typography.d.ts +27 -27
- package/dist/styles/typography.test.d.ts +1 -1
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +42 -42
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +41 -41
- package/dist/testing/DatePickerEvent/index.d.ts +2 -2
- package/dist/testing/DragDropFileEvent/DragDropFileEvent.d.ts +6 -6
- package/dist/testing/DragDropFileEvent/index.d.ts +1 -1
- package/dist/testing/SelectEvent/SelectEvent.d.ts +66 -66
- package/dist/testing/SelectEvent/SelectEvent.test.d.ts +1 -1
- package/dist/testing/SelectEvent/index.d.ts +1 -1
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +10 -10
- package/dist/testing/getInterpolatedStyles/index.d.ts +1 -1
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
- package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
- package/dist/tests/generator.d.ts +35 -35
- package/dist/tests/renderer.d.ts +10 -10
- package/dist/theming/index.d.ts +16 -16
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/themes/alice.theme.d.ts +755 -755
- package/dist/theming/themes/index.d.ts +3 -3
- package/dist/theming/themes/loadsmart.theme.d.ts +737 -737
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +750 -750
- package/dist/theming/theming.helpers.d.ts +22 -22
- package/dist/{toArray-b56541b4.js → toArray-8fc577bb.js} +1 -1
- package/dist/toArray-8fc577bb.js.map +1 -0
- package/dist/tools/conditional.d.ts +39 -39
- package/dist/tools/conditional.test.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/prop.d.ts +15 -15
- package/dist/tools/prop.test.d.ts +1 -1
- package/dist/utils/toolset/awaitTo.d.ts +10 -10
- package/dist/utils/toolset/debounce.d.ts +1 -1
- package/dist/utils/toolset/flatten.d.ts +1 -1
- package/dist/utils/toolset/formatBytes.d.ts +4 -4
- package/dist/utils/toolset/formatBytes.test.d.ts +1 -1
- package/dist/utils/toolset/get.d.ts +1 -1
- package/dist/utils/toolset/getID.d.ts +13 -13
- package/dist/utils/toolset/getID.test.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +1 -1
- package/dist/utils/toolset/highlightMatch.d.ts +9 -9
- package/dist/utils/toolset/highlightMatch.test.d.ts +1 -1
- package/dist/utils/toolset/interleave.d.ts +2 -2
- package/dist/utils/toolset/interleave.test.d.ts +1 -1
- package/dist/utils/toolset/isEmpty.d.ts +1 -1
- package/dist/utils/toolset/isThenable.d.ts +5 -5
- package/dist/utils/toolset/isThenable.test.d.ts +1 -1
- package/dist/utils/toolset/keyboard.d.ts +24 -24
- package/dist/utils/toolset/omit.d.ts +1 -1
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +1 -1
- package/dist/utils/toolset/rem.d.ts +3 -3
- package/dist/utils/toolset/styledCompounds.d.ts +13 -13
- package/dist/utils/toolset/toArray.d.ts +2 -2
- package/dist/utils/types/ColorScheme.d.ts +2 -2
- package/dist/utils/types/EventLike.d.ts +10 -10
- package/dist/utils/types/InterpolatedStyle.d.ts +2 -2
- package/dist/utils/types/Status.d.ts +7 -7
- package/package.json +8 -9
- package/src/@types/@loadsmart/utilsFunction.d.ts +2 -2
- package/src/@types/@loadsmart/utilsObject.d.ts +2 -2
- package/src/@types/svg.d.ts +3 -3
- package/src/components/Calendar/Date.helper.test.ts +3 -6
- package/src/components/Calendar/Month.helper.test.ts +66 -66
- package/src/components/Calendar/Month.helper.ts +1 -3
- package/src/components/Dialog/useDialog.tsx +1 -5
- package/src/components/DragDropFile/DragDropFile.context.tsx +4 -6
- package/src/components/Dropdown/Dropdown.tsx +4 -6
- package/src/components/Dropdown/useDropdown.ts +1 -4
- package/src/components/Select/Select.stories.tsx +2 -2
- package/src/components/Select/Select.test.tsx +2 -2
- package/src/components/Select/SelectOption.test.tsx +1 -1
- package/src/components/Select/useSelect.ts +4 -4
- package/src/components/Table/Table.fixtures.ts +1 -1
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/TopNavigation/Menu/Menu.test.tsx +33 -0
- package/src/components/TopNavigation/Menu/MenuItemDropdown.tsx +6 -2
- package/src/components/TopNavigation/TopNavigation.stories.tsx +4 -1
- package/src/docs/tools/DragDropFileEvent.stories.mdx +1 -5
- package/src/docs/tools/conditional.stories.mdx +35 -28
- package/src/hooks/useClickOutside/useClickOutside.ts +1 -1
- package/src/hooks/useFocusTrap/useFocusTrap.ts +1 -1
- package/src/hooks/useFocusWithin/useFocusWithin.ts +5 -4
- package/src/tools/conditional.ts +1 -1
- package/src/utils/toolset/highlightMatch.test.tsx +1 -1
- package/src/utils/toolset/keyboard.ts +1 -3
- package/dist/miranda-compatibility.theme-97e29e8e.js.map +0 -1
- package/dist/prop-5c502a5a.js +0 -2
- package/dist/prop-5c502a5a.js.map +0 -1
- package/dist/toArray-b56541b4.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ButtonProps } from '../Button';
|
|
3
|
-
interface WithScaleProps {
|
|
4
|
-
scale?: 'small' | 'default' | 'large';
|
|
5
|
-
}
|
|
6
|
-
export interface DialogProps extends WithScaleProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
onOverlayClick?: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare function DialogActions({ scale, direction, children, }: {
|
|
14
|
-
scale?: 'small' | 'default' | 'large';
|
|
15
|
-
direction?: 'vertical' | 'horizontal';
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}): JSX.Element;
|
|
18
|
-
export interface DialogActionConfirmProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
19
|
-
onConfirm: () => void;
|
|
20
|
-
}
|
|
21
|
-
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): JSX.Element;
|
|
22
|
-
export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
23
|
-
onCancel: () => void;
|
|
24
|
-
}
|
|
25
|
-
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): JSX.Element;
|
|
26
|
-
declare function Dialog({ scale, open, ...others }: DialogProps): JSX.Element;
|
|
27
|
-
declare namespace Dialog {
|
|
28
|
-
var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
29
|
-
var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
|
-
var ActionConfirm: typeof DialogActionConfirm;
|
|
31
|
-
var ActionCancel: typeof DialogActionCancel;
|
|
32
|
-
var Actions: typeof DialogActions;
|
|
33
|
-
var Close: import("styled-components").StyledComponent<typeof import("../../common/CloseButton/CloseButton").default, any, {
|
|
34
|
-
size: 16;
|
|
35
|
-
}, "size">;
|
|
36
|
-
}
|
|
37
|
-
export default Dialog;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { ButtonProps } from '../Button';
|
|
3
|
+
interface WithScaleProps {
|
|
4
|
+
scale?: 'small' | 'default' | 'large';
|
|
5
|
+
}
|
|
6
|
+
export interface DialogProps extends WithScaleProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onOverlayClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare function DialogActions({ scale, direction, children, }: {
|
|
14
|
+
scale?: 'small' | 'default' | 'large';
|
|
15
|
+
direction?: 'vertical' | 'horizontal';
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
export interface DialogActionConfirmProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
19
|
+
onConfirm: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): JSX.Element;
|
|
22
|
+
export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
23
|
+
onCancel: () => void;
|
|
24
|
+
}
|
|
25
|
+
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): JSX.Element;
|
|
26
|
+
declare function Dialog({ scale, open, ...others }: DialogProps): JSX.Element;
|
|
27
|
+
declare namespace Dialog {
|
|
28
|
+
var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
29
|
+
var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
|
+
var ActionConfirm: typeof DialogActionConfirm;
|
|
31
|
+
var ActionCancel: typeof DialogActionCancel;
|
|
32
|
+
var Actions: typeof DialogActions;
|
|
33
|
+
var Close: import("styled-components").StyledComponent<typeof import("../../common/CloseButton/CloseButton").default, any, {
|
|
34
|
+
size: 16;
|
|
35
|
+
}, "size">;
|
|
36
|
+
}
|
|
37
|
+
export default Dialog;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import type { DialogProps } from './Dialog';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function WithoutHeader(args: DialogProps): JSX.Element;
|
|
6
|
-
export declare namespace WithoutHeader {
|
|
7
|
-
var args: {
|
|
8
|
-
scale: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare function WithHeader(args: DialogProps): JSX.Element;
|
|
13
|
-
export declare namespace WithHeader {
|
|
14
|
-
var args: {
|
|
15
|
-
scale: string;
|
|
16
|
-
open: boolean;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare function WithHeaderAndBody(args: DialogProps): JSX.Element;
|
|
20
|
-
export declare namespace WithHeaderAndBody {
|
|
21
|
-
var args: {
|
|
22
|
-
scale: string;
|
|
23
|
-
open: boolean;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export declare function WithCloseButton(args: DialogProps): JSX.Element;
|
|
27
|
-
export declare namespace WithCloseButton {
|
|
28
|
-
var args: {
|
|
29
|
-
scale: string;
|
|
30
|
-
open: boolean;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export declare function WithActionConfirm(args: DialogProps): JSX.Element;
|
|
34
|
-
export declare namespace WithActionConfirm {
|
|
35
|
-
var args: {
|
|
36
|
-
scale: string;
|
|
37
|
-
open: boolean;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare function WithCustomActionConfirmLabel(args: DialogProps): JSX.Element;
|
|
41
|
-
export declare namespace WithCustomActionConfirmLabel {
|
|
42
|
-
var args: {
|
|
43
|
-
scale: string;
|
|
44
|
-
open: boolean;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export declare function WithCustomActionCancelLabel(args: DialogProps): JSX.Element;
|
|
48
|
-
export declare namespace WithCustomActionCancelLabel {
|
|
49
|
-
var args: {
|
|
50
|
-
scale: string;
|
|
51
|
-
open: boolean;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export declare function WithActionConfirmAndCancel(args: DialogProps): JSX.Element;
|
|
55
|
-
export declare namespace WithActionConfirmAndCancel {
|
|
56
|
-
var args: {
|
|
57
|
-
scale: string;
|
|
58
|
-
open: boolean;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export declare function WithInlineActions(args: DialogProps): JSX.Element;
|
|
62
|
-
export declare namespace WithInlineActions {
|
|
63
|
-
var args: {
|
|
64
|
-
scale: string;
|
|
65
|
-
open: boolean;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
1
|
+
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import type { DialogProps } from './Dialog';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function WithoutHeader(args: DialogProps): JSX.Element;
|
|
6
|
+
export declare namespace WithoutHeader {
|
|
7
|
+
var args: {
|
|
8
|
+
scale: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function WithHeader(args: DialogProps): JSX.Element;
|
|
13
|
+
export declare namespace WithHeader {
|
|
14
|
+
var args: {
|
|
15
|
+
scale: string;
|
|
16
|
+
open: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function WithHeaderAndBody(args: DialogProps): JSX.Element;
|
|
20
|
+
export declare namespace WithHeaderAndBody {
|
|
21
|
+
var args: {
|
|
22
|
+
scale: string;
|
|
23
|
+
open: boolean;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function WithCloseButton(args: DialogProps): JSX.Element;
|
|
27
|
+
export declare namespace WithCloseButton {
|
|
28
|
+
var args: {
|
|
29
|
+
scale: string;
|
|
30
|
+
open: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare function WithActionConfirm(args: DialogProps): JSX.Element;
|
|
34
|
+
export declare namespace WithActionConfirm {
|
|
35
|
+
var args: {
|
|
36
|
+
scale: string;
|
|
37
|
+
open: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare function WithCustomActionConfirmLabel(args: DialogProps): JSX.Element;
|
|
41
|
+
export declare namespace WithCustomActionConfirmLabel {
|
|
42
|
+
var args: {
|
|
43
|
+
scale: string;
|
|
44
|
+
open: boolean;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare function WithCustomActionCancelLabel(args: DialogProps): JSX.Element;
|
|
48
|
+
export declare namespace WithCustomActionCancelLabel {
|
|
49
|
+
var args: {
|
|
50
|
+
scale: string;
|
|
51
|
+
open: boolean;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export declare function WithActionConfirmAndCancel(args: DialogProps): JSX.Element;
|
|
55
|
+
export declare namespace WithActionConfirmAndCancel {
|
|
56
|
+
var args: {
|
|
57
|
+
scale: string;
|
|
58
|
+
open: boolean;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export declare function WithInlineActions(args: DialogProps): JSX.Element;
|
|
62
|
+
export declare namespace WithInlineActions {
|
|
63
|
+
var args: {
|
|
64
|
+
scale: string;
|
|
65
|
+
open: boolean;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Dialog } from './Dialog';
|
|
2
|
-
export type { DialogProps, DialogActionConfirmProps, DialogActionCancelProps } from './Dialog';
|
|
3
|
-
export { default as useDialog } from './useDialog';
|
|
4
|
-
export type { useDialogProps } from './useDialog';
|
|
1
|
+
export { default as Dialog } from './Dialog';
|
|
2
|
+
export type { DialogProps, DialogActionConfirmProps, DialogActionCancelProps } from './Dialog';
|
|
3
|
+
export { default as useDialog } from './useDialog';
|
|
4
|
+
export type { useDialogProps } from './useDialog';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface useDialogProps {
|
|
2
|
-
open: boolean;
|
|
3
|
-
onOpen?: () => void;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare function useDialog({ open: openProp, onOpen, onClose
|
|
7
|
-
open: boolean;
|
|
8
|
-
show: () => void;
|
|
9
|
-
hide: () => void;
|
|
10
|
-
toggle: () => void;
|
|
11
|
-
};
|
|
12
|
-
export default useDialog;
|
|
1
|
+
export interface useDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpen?: () => void;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function useDialog({ open: openProp, onOpen, onClose }: useDialogProps): {
|
|
7
|
+
open: boolean;
|
|
8
|
+
show: () => void;
|
|
9
|
+
hide: () => void;
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
};
|
|
12
|
+
export default useDialog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DragDropFileContextValue, DragDropFileProviderProps } from './types';
|
|
3
|
-
export declare const DragDropFileContext: React.Context<DragDropFileContextValue | undefined>;
|
|
4
|
-
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => JSX.Element;
|
|
5
|
-
export declare const useDragDropFileContext: () => DragDropFileContextValue;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DragDropFileContextValue, DragDropFileProviderProps } from './types';
|
|
3
|
+
export declare const DragDropFileContext: React.Context<DragDropFileContextValue | undefined>;
|
|
4
|
+
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => JSX.Element;
|
|
5
|
+
export declare const useDragDropFileContext: () => DragDropFileContextValue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const DragDropFile: {
|
|
2
|
-
(): null;
|
|
3
|
-
Wrapper: ({ children, ...props }: Partial<import("../..").StackProps>) => JSX.Element;
|
|
4
|
-
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: import("./types").DropZoneProps) => JSX.Element;
|
|
5
|
-
FileList: ({ disabled, ...props }: import("./types").FileListProps) => JSX.Element | null;
|
|
6
|
-
};
|
|
7
|
-
export default DragDropFile;
|
|
1
|
+
declare const DragDropFile: {
|
|
2
|
+
(): null;
|
|
3
|
+
Wrapper: ({ children, ...props }: Partial<import("../..").StackProps>) => JSX.Element;
|
|
4
|
+
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: import("./types").DropZoneProps) => JSX.Element;
|
|
5
|
+
FileList: ({ disabled, ...props }: import("./types").FileListProps) => JSX.Element | null;
|
|
6
|
+
};
|
|
7
|
+
export default DragDropFile;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
|
-
import type { DropZoneProps } from './types';
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
|
|
6
|
-
errorMessage?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function Playground({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
9
|
-
export declare namespace Playground {
|
|
10
|
-
var args: {
|
|
11
|
-
hint: string;
|
|
12
|
-
accept: string;
|
|
13
|
-
multiple: boolean;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function WithInitialFileList({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
17
|
-
export declare namespace WithInitialFileList {
|
|
18
|
-
var args: {
|
|
19
|
-
hint: string;
|
|
20
|
-
accept: string;
|
|
21
|
-
multiple: boolean;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare function GeneralError({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
25
|
-
export declare namespace GeneralError {
|
|
26
|
-
var args: {
|
|
27
|
-
hint: string;
|
|
28
|
-
accept: string;
|
|
29
|
-
multiple: boolean;
|
|
30
|
-
error: boolean;
|
|
31
|
-
errorMessage: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
1
|
+
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
|
+
import type { DropZoneProps } from './types';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type PlaygroundProps = DropZoneProps & {
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Playground({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
9
|
+
export declare namespace Playground {
|
|
10
|
+
var args: {
|
|
11
|
+
hint: string;
|
|
12
|
+
accept: string;
|
|
13
|
+
multiple: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare function WithInitialFileList({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
17
|
+
export declare namespace WithInitialFileList {
|
|
18
|
+
var args: {
|
|
19
|
+
hint: string;
|
|
20
|
+
accept: string;
|
|
21
|
+
multiple: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare function GeneralError({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
25
|
+
export declare namespace GeneralError {
|
|
26
|
+
var args: {
|
|
27
|
+
hint: string;
|
|
28
|
+
accept: string;
|
|
29
|
+
multiple: boolean;
|
|
30
|
+
error: boolean;
|
|
31
|
+
errorMessage: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DropZoneProps } from '../types';
|
|
2
|
-
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => JSX.Element;
|
|
3
|
-
export default DropZone;
|
|
1
|
+
import type { DropZoneProps } from '../types';
|
|
2
|
+
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => JSX.Element;
|
|
3
|
+
export default DropZone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FileItemProps } from '../types';
|
|
2
|
-
declare const FileItem: (props: FileItemProps) => JSX.Element;
|
|
3
|
-
export default FileItem;
|
|
1
|
+
import type { FileItemProps } from '../types';
|
|
2
|
+
declare const FileItem: (props: FileItemProps) => JSX.Element;
|
|
3
|
+
export default FileItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FileListProps } from '../types';
|
|
2
|
-
declare const FileList: ({ disabled, ...props }: FileListProps) => JSX.Element | null;
|
|
3
|
-
export default FileList;
|
|
1
|
+
import type { FileListProps } from '../types';
|
|
2
|
+
declare const FileList: ({ disabled, ...props }: FileListProps) => JSX.Element | null;
|
|
3
|
+
export default FileList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { WrapperProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* This is a `Stack` component customized with the needed spacing between the DragDropFile inner components
|
|
4
|
-
*/
|
|
5
|
-
declare const Wrapper: ({ children, ...props }: WrapperProps) => JSX.Element;
|
|
6
|
-
export default Wrapper;
|
|
1
|
+
import type { WrapperProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* This is a `Stack` component customized with the needed spacing between the DragDropFile inner components
|
|
4
|
+
*/
|
|
5
|
+
declare const Wrapper: ({ children, ...props }: WrapperProps) => JSX.Element;
|
|
6
|
+
export default Wrapper;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DragDropFileProvider, useDragDropFileContext } from './DragDropFile.context';
|
|
2
|
-
export { default as DragDropFile } from './DragDropFile';
|
|
3
|
-
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, } from './types';
|
|
1
|
+
export { DragDropFileProvider, useDragDropFileContext } from './DragDropFile.context';
|
|
2
|
+
export { default as DragDropFile } from './DragDropFile';
|
|
3
|
+
export type { FileStatus, FileWithStatus, DropZoneProps, DragDropFileProviderProps, DragDropFileContextValue, } from './types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { FileWithStatus } from './types';
|
|
2
|
-
export declare const loadingFile: File;
|
|
3
|
-
export declare const errorFile: File;
|
|
4
|
-
export declare const successFile: File;
|
|
5
|
-
export declare const filesMock: File[];
|
|
6
|
-
export declare const loadingFileItem: FileWithStatus;
|
|
7
|
-
export declare const errorFileItem: FileWithStatus;
|
|
8
|
-
export declare const successFileItem: FileWithStatus;
|
|
9
|
-
export declare const fileListMock: FileWithStatus[];
|
|
1
|
+
import type { FileWithStatus } from './types';
|
|
2
|
+
export declare const loadingFile: File;
|
|
3
|
+
export declare const errorFile: File;
|
|
4
|
+
export declare const successFile: File;
|
|
5
|
+
export declare const filesMock: File[];
|
|
6
|
+
export declare const loadingFileItem: FileWithStatus;
|
|
7
|
+
export declare const errorFileItem: FileWithStatus;
|
|
8
|
+
export declare const successFileItem: FileWithStatus;
|
|
9
|
+
export declare const fileListMock: FileWithStatus[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StackProps, Stack } from
|
|
2
|
-
import type { DropZoneProps } from './types';
|
|
3
|
-
export declare const DragDropFileWrapper: import("styled-components").StyledComponent<typeof Stack, any, {
|
|
4
|
-
withFileList: boolean;
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const DropZoneWrapper: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
|
|
7
|
-
export declare const HiddenInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
8
|
-
export declare const UploadIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {}, never>;
|
|
9
|
-
export declare const FileListUL: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, {}, never>;
|
|
10
|
-
export declare const Divider: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
import { StackProps, Stack } from 'components/Layout/Stack';
|
|
2
|
+
import type { DropZoneProps } from './types';
|
|
3
|
+
export declare const DragDropFileWrapper: import("styled-components").StyledComponent<typeof Stack, any, {
|
|
4
|
+
withFileList: boolean;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const DropZoneWrapper: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
|
|
7
|
+
export declare const HiddenInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
8
|
+
export declare const UploadIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {}, never>;
|
|
9
|
+
export declare const FileListUL: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, {}, never>;
|
|
10
|
+
export declare const Divider: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { StackProps } from
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
/**
|
|
6
|
-
* Optional hint to be rendered below the main call to action text.
|
|
7
|
-
*/
|
|
8
|
-
hint?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Whether the input should allow multiple files.
|
|
11
|
-
*/
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* List (or single string) of allowed file formats.
|
|
15
|
-
*/
|
|
16
|
-
accept?: string | string[];
|
|
17
|
-
/**
|
|
18
|
-
* Disables the drop zone.
|
|
19
|
-
*/
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Applies error styles to the drop zone wrapper.
|
|
23
|
-
*/
|
|
24
|
-
error?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Useful to render custom content inside the dropzone.
|
|
27
|
-
* If provided, the icon, call to action, and hint won't be rendered.
|
|
28
|
-
*/
|
|
29
|
-
renderCustomContent?: (params: {
|
|
30
|
-
isDragging: boolean;
|
|
31
|
-
}) => JSX.Element;
|
|
32
|
-
};
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
file: File;
|
|
36
|
-
status: FileStatus;
|
|
37
|
-
errorMessage?: string;
|
|
38
|
-
};
|
|
39
|
-
export
|
|
40
|
-
onRemove: () => void;
|
|
41
|
-
onRetry?: () => void;
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
};
|
|
44
|
-
export
|
|
45
|
-
/**
|
|
46
|
-
* Disables the buttons within the file items.
|
|
47
|
-
*/
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
};
|
|
50
|
-
export
|
|
51
|
-
/**
|
|
52
|
-
* List of items including the file and its status.
|
|
53
|
-
*/
|
|
54
|
-
fileList: FileWithStatus[];
|
|
55
|
-
/**
|
|
56
|
-
* Function that will be triggered when new files are added to the input.
|
|
57
|
-
*/
|
|
58
|
-
onFilesAdded: (newFiles: File[]) => void;
|
|
59
|
-
/**
|
|
60
|
-
* Function that will be triggered when a file is removed from the list.
|
|
61
|
-
*/
|
|
62
|
-
onFileRemoved: (newFileList: FileWithStatus[], removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
63
|
-
/**
|
|
64
|
-
* Optional function to retry upload on a file item with error status.
|
|
65
|
-
*/
|
|
66
|
-
onRetryUpload?: (item: FileWithStatus, removedItemIndex: number) => void;
|
|
67
|
-
children: ReactNode;
|
|
68
|
-
};
|
|
69
|
-
export
|
|
70
|
-
onRemoveFile: (removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
71
|
-
};
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { StackProps } from 'components/Layout/Stack';
|
|
3
|
+
export type WrapperProps = Partial<StackProps>;
|
|
4
|
+
export type DropZoneProps = Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Optional hint to be rendered below the main call to action text.
|
|
7
|
+
*/
|
|
8
|
+
hint?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the input should allow multiple files.
|
|
11
|
+
*/
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* List (or single string) of allowed file formats.
|
|
15
|
+
*/
|
|
16
|
+
accept?: string | string[];
|
|
17
|
+
/**
|
|
18
|
+
* Disables the drop zone.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Applies error styles to the drop zone wrapper.
|
|
23
|
+
*/
|
|
24
|
+
error?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Useful to render custom content inside the dropzone.
|
|
27
|
+
* If provided, the icon, call to action, and hint won't be rendered.
|
|
28
|
+
*/
|
|
29
|
+
renderCustomContent?: (params: {
|
|
30
|
+
isDragging: boolean;
|
|
31
|
+
}) => JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
export type FileStatus = 'loading' | 'error' | 'success';
|
|
34
|
+
export type FileWithStatus = {
|
|
35
|
+
file: File;
|
|
36
|
+
status: FileStatus;
|
|
37
|
+
errorMessage?: string;
|
|
38
|
+
};
|
|
39
|
+
export type FileItemProps = FileWithStatus & {
|
|
40
|
+
onRemove: () => void;
|
|
41
|
+
onRetry?: () => void;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type FileListProps = Partial<StackProps> & {
|
|
45
|
+
/**
|
|
46
|
+
* Disables the buttons within the file items.
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type DragDropFileProviderProps = {
|
|
51
|
+
/**
|
|
52
|
+
* List of items including the file and its status.
|
|
53
|
+
*/
|
|
54
|
+
fileList: FileWithStatus[];
|
|
55
|
+
/**
|
|
56
|
+
* Function that will be triggered when new files are added to the input.
|
|
57
|
+
*/
|
|
58
|
+
onFilesAdded: (newFiles: File[]) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Function that will be triggered when a file is removed from the list.
|
|
61
|
+
*/
|
|
62
|
+
onFileRemoved: (newFileList: FileWithStatus[], removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Optional function to retry upload on a file item with error status.
|
|
65
|
+
*/
|
|
66
|
+
onRetryUpload?: (item: FileWithStatus, removedItemIndex: number) => void;
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
};
|
|
69
|
+
export type DragDropFileContextValue = Pick<DragDropFileProviderProps, 'fileList' | 'onFilesAdded' | 'onRetryUpload'> & {
|
|
70
|
+
onRemoveFile: (removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
71
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface DrawerProps {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
open: boolean;
|
|
7
|
-
onClose?: () => void;
|
|
8
|
-
onClickOutside?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export interface DrawerHeaderProps {
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
14
|
-
export interface DrawerBodyProps {
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
18
|
-
export interface DrawerFooterProps {
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): JSX.Element;
|
|
22
|
-
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps): JSX.Element;
|
|
23
|
-
declare namespace Drawer {
|
|
24
|
-
var Header: typeof DrawerHeader;
|
|
25
|
-
var Body: typeof DrawerBody;
|
|
26
|
-
var Footer: typeof DrawerFooter;
|
|
27
|
-
}
|
|
28
|
-
export default Drawer;
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface DrawerProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
onClickOutside?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface DrawerHeaderProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
14
|
+
export interface DrawerBodyProps {
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
18
|
+
export interface DrawerFooterProps {
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): JSX.Element;
|
|
22
|
+
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps): JSX.Element;
|
|
23
|
+
declare namespace Drawer {
|
|
24
|
+
var Header: typeof DrawerHeader;
|
|
25
|
+
var Body: typeof DrawerBody;
|
|
26
|
+
var Footer: typeof DrawerFooter;
|
|
27
|
+
}
|
|
28
|
+
export default Drawer;
|