@loadsmart/loadsmart-ui 7.3.3 → 7.5.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 -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 +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 +9310 -0
- package/dist/index.mjs.map +1 -0
- package/dist/miranda-compatibility.theme-C3Dt-45K.js +2 -0
- package/dist/miranda-compatibility.theme-C3Dt-45K.js.map +1 -0
- package/dist/miranda-compatibility.theme-ClCWbTIT.mjs +2525 -0
- package/dist/miranda-compatibility.theme-ClCWbTIT.mjs.map +1 -0
- package/dist/prop-C4yDbi0C.mjs +53 -0
- package/dist/prop-C4yDbi0C.mjs.map +1 -0
- package/dist/prop-pWSEOvKc.js +2 -0
- package/dist/{prop-597d4792.js.map → prop-pWSEOvKc.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 +227 -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 +19 -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-BJfx0Xhj.mjs +38 -0
- package/dist/toArray-BJfx0Xhj.mjs.map +1 -0
- package/dist/toArray-Dw6F-w3t.js +2 -0
- package/dist/{toArray-b56541b4.js.map → toArray-Dw6F-w3t.js.map} +1 -1
- 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 -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 +2 -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 -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 -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 +2 -1
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +2 -1
- 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 +31 -50
- 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/Select/Select.stories.tsx +1 -1
- package/src/components/Switch/Switch.test.tsx +3 -1
- package/src/components/Text/Text.stories.tsx +29 -25
- package/src/utils/toolset/flatten.ts +3 -1
- package/src/utils/toolset/get.ts +2 -1
- package/src/utils/toolset/isEmpty.ts +2 -1
- package/src/utils/toolset/omit.ts +2 -1
- package/src/utils/toolset/range.ts +2 -1
- package/dist/DragDropFile.context-bbb7d631.js +0 -2
- package/dist/DragDropFile.context-bbb7d631.js.map +0 -1
- package/dist/miranda-compatibility.theme-8689186b.js +0 -2
- package/dist/miranda-compatibility.theme-8689186b.js.map +0 -1
- package/dist/prop-597d4792.js +0 -2
- package/dist/toArray-b56541b4.js +0 -2
- package/dist/utils/toolset/debounce.d.ts +0 -1
- package/src/utils/toolset/debounce.ts +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const t=require("react"),i=e=>e&&e.__esModule?e:{default:e},g=i(t),o=t.createContext(void 0),p=({fileList:e,onFilesAdded:n,onFileRemoved:u,onRetryUpload:a,children:s})=>{const c=t.useCallback((l,r)=>{u([...e.slice(0,r),...e.slice(r+1)],l,r)},[e]),D=t.useMemo(()=>({fileList:e,onFilesAdded:n,onRemoveFile:c,onRetryUpload:a}),[e,n,c,a]);return g.default.createElement(o.Provider,{value:D},s)},C=()=>{const e=t.useContext(o);if(!e)throw new Error("useDragDropFileContext must be used within an DragDropFileProvider");return e};exports.DragDropFileContext=o;exports.DragDropFileProvider=p;exports.useDragDropFileContext=C;
|
|
2
|
+
//# sourceMappingURL=DragDropFile.context-D-EBrXnw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragDropFile.context-D-EBrXnw.js","sources":["../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps): JSX.Element => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(\n () => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }),\n [fileList, onFilesAdded, onRemoveFile, onRetryUpload]\n )\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["DragDropFileContext","createContext","undefined","DragDropFileProvider","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","useDragDropFileContext","context","useContext","Error"],"mappings":"gFAIaA,EAAsBC,gBAAoDC,MAAS,EAEnFC,EAAuBA,CAAC,CACnCC,SAAAA,EACAC,aAAAA,EACAC,cAAAA,EACAC,cAAAA,EACAC,SAAAA,CACyB,IAAmB,CAC5C,MAAMC,EAAeC,EAAAA,YACnB,CAACC,EAA6BC,IAAkB,CAC9CN,EAAc,CAAC,GAAGF,EAASS,MAAM,EAAGD,CAAK,EAAG,GAAGR,EAASS,MAAMD,EAAQ,CAAC,CAAC,EAAGD,EAAaC,CAAK,CAAA,EAE/F,CAACR,CAAQ,CACX,EAEMU,EAAeC,EAAAA,QACnB,KAAO,CAAEX,SAAAA,EAAUC,aAAAA,EAAcI,aAAAA,EAAcF,cAAAA,IAC/C,CAACH,EAAUC,EAAcI,EAAcF,CAAa,CACtD,EAEA,+BACGP,EAAoB,SAApB,CAA6B,MAAOc,GAAeN,CAAS,CAEjE,EAEaQ,EAAyBA,IAAgC,CAC9DC,MAAAA,EAAUC,aAAWlB,CAAmB,EAE9C,GAAI,CAACiB,EACG,MAAA,IAAIE,MAAM,oEAAoE,EAG/EF,OAAAA,CACT"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import l, { createContext as m, useCallback as p, useMemo as v, useContext as x } from "react";
|
|
2
|
+
const n = m(void 0), g = ({
|
|
3
|
+
fileList: e,
|
|
4
|
+
onFilesAdded: o,
|
|
5
|
+
onFileRemoved: c,
|
|
6
|
+
onRetryUpload: t,
|
|
7
|
+
children: s
|
|
8
|
+
}) => {
|
|
9
|
+
const a = p((D, r) => {
|
|
10
|
+
c([...e.slice(0, r), ...e.slice(r + 1)], D, r);
|
|
11
|
+
}, [e]), u = v(() => ({
|
|
12
|
+
fileList: e,
|
|
13
|
+
onFilesAdded: o,
|
|
14
|
+
onRemoveFile: a,
|
|
15
|
+
onRetryUpload: t
|
|
16
|
+
}), [e, o, a, t]);
|
|
17
|
+
return /* @__PURE__ */ l.createElement(n.Provider, { value: u }, s);
|
|
18
|
+
}, i = () => {
|
|
19
|
+
const e = x(n);
|
|
20
|
+
if (!e)
|
|
21
|
+
throw new Error("useDragDropFileContext must be used within an DragDropFileProvider");
|
|
22
|
+
return e;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
n as D,
|
|
26
|
+
g as a,
|
|
27
|
+
i as u
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=DragDropFile.context-jVTIKfj5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragDropFile.context-jVTIKfj5.mjs","sources":["../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps): JSX.Element => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(\n () => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }),\n [fileList, onFilesAdded, onRemoveFile, onRetryUpload]\n )\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["DragDropFileContext","createContext","undefined","DragDropFileProvider","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","useDragDropFileContext","context","useContext","Error"],"mappings":";AAIaA,MAAAA,IAAsBC,EAAoDC,MAAS,GAEnFC,IAAuBA,CAAC;AAAA,EACnCC,UAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,UAAAA;AACyB,MAAmB;AAC5C,QAAMC,IAAeC,EACnB,CAACC,GAA6BC,MAAkB;AAC9CN,IAAAA,EAAc,CAAC,GAAGF,EAASS,MAAM,GAAGD,CAAK,GAAG,GAAGR,EAASS,MAAMD,IAAQ,CAAC,CAAC,GAAGD,GAAaC,CAAK;AAAA,EAAA,GAE/F,CAACR,CAAQ,CACX,GAEMU,IAAeC,EACnB,OAAO;AAAA,IAAEX,UAAAA;AAAAA,IAAUC,cAAAA;AAAAA,IAAcI,cAAAA;AAAAA,IAAcF,eAAAA;AAAAA,MAC/C,CAACH,GAAUC,GAAcI,GAAcF,CAAa,CACtD;AAEA,yCACGP,EAAoB,UAApB,EAA6B,OAAOc,KAAeN,CAAS;AAEjE,GAEaQ,IAAyBA,MAAgC;AAC9DC,QAAAA,IAAUC,EAAWlB,CAAmB;AAE9C,MAAI,CAACiB;AACG,UAAA,IAAIE,MAAM,oEAAoE;AAG/EF,SAAAA;AACT;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default BackButton;
|
|
1
|
+
import { ButtonProps } from '../../components/Button';
|
|
2
|
+
export type BackButtonProps = Omit<ButtonProps, 'children'>;
|
|
3
|
+
declare function BackButton({ scale, ...others }: BackButtonProps): JSX.Element;
|
|
4
|
+
export default BackButton;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './BackButton';
|
|
2
|
-
export type { BackButtonProps } from './BackButton';
|
|
1
|
+
export { default } from './BackButton';
|
|
2
|
+
export type { BackButtonProps } from './BackButton';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default CloseButton;
|
|
1
|
+
import { ButtonProps } from '../../components/Button';
|
|
2
|
+
export interface CloseButtonProps extends ButtonProps {
|
|
3
|
+
size?: string | number;
|
|
4
|
+
}
|
|
5
|
+
declare function CloseButton({ scale, size, ...others }: CloseButtonProps): JSX.Element;
|
|
6
|
+
export default CloseButton;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './CloseButton';
|
|
2
|
-
export type { CloseButtonProps } from './CloseButton';
|
|
1
|
+
export { default } from './CloseButton';
|
|
2
|
+
export type { CloseButtonProps } from './CloseButton';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import
|
|
3
|
-
export interface SelectionStyleProps {
|
|
4
|
-
scale?: 'small' | 'default';
|
|
5
|
-
scheme?: ColorScheme;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface SelectionWrapperProps extends LabelHTMLAttributes<HTMLLabelElement>, SelectionStyleProps {
|
|
9
|
-
selector: ReactNode;
|
|
10
|
-
leading?: ReactNode;
|
|
11
|
-
trailing?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function SelectionWrapper({ selector, children, leading, trailing, className, disabled, ...others }: SelectionWrapperProps): JSX.Element;
|
|
14
|
-
export default SelectionWrapper;
|
|
1
|
+
import { LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { default as ColorScheme } from '../utils/types/ColorScheme';
|
|
3
|
+
export interface SelectionStyleProps {
|
|
4
|
+
scale?: 'small' | 'default';
|
|
5
|
+
scheme?: ColorScheme;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectionWrapperProps extends LabelHTMLAttributes<HTMLLabelElement>, SelectionStyleProps {
|
|
9
|
+
selector: ReactNode;
|
|
10
|
+
leading?: ReactNode;
|
|
11
|
+
trailing?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function SelectionWrapper({ selector, children, leading, trailing, className, disabled, ...others }: SelectionWrapperProps): JSX.Element;
|
|
14
|
+
export default SelectionWrapper;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
declare function AccordionProvider({ expanded, children, onExpandedChange, initialExpanded, }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
initialExpanded?: boolean;
|
|
6
|
-
expanded?: boolean;
|
|
7
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
-
declare function useAccordionContext(): AccordionContextType;
|
|
10
|
-
export { AccordionProvider, useAccordionContext };
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type AccordionContextType = [boolean, () => void];
|
|
3
|
+
declare function AccordionProvider({ expanded, children, onExpandedChange, initialExpanded, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
initialExpanded?: boolean;
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare function useAccordionContext(): AccordionContextType;
|
|
10
|
+
export { AccordionProvider, useAccordionContext };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
leading?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
4
|
-
trailing?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
5
|
-
};
|
|
6
|
-
declare function AccordionToggle({ leading, trailing: propsTrailing, children, }: PropsWithChildren<AccordionToggleProps>): JSX.Element;
|
|
7
|
-
export
|
|
8
|
-
declare function AccordionBody({ children, ...props }: PropsWithChildren<AccordionBodyProps>): JSX.Element;
|
|
9
|
-
export interface AccordionProps extends HTMLAttributes<HTMLElement> {
|
|
10
|
-
expanded?: boolean;
|
|
11
|
-
initialExpanded?: boolean;
|
|
12
|
-
onExpandedChange?: (expanded: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
declare function Accordion({ children, expanded, initialExpanded, onExpandedChange, ...others }: AccordionProps): JSX.Element;
|
|
15
|
-
declare namespace Accordion {
|
|
16
|
-
var Toggle: typeof AccordionToggle;
|
|
17
|
-
var Body: typeof AccordionBody;
|
|
18
|
-
}
|
|
19
|
-
export default Accordion;
|
|
1
|
+
import { PropsWithChildren, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type AccordionToggleProps = {
|
|
3
|
+
leading?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
4
|
+
trailing?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
5
|
+
};
|
|
6
|
+
declare function AccordionToggle({ leading, trailing: propsTrailing, children, }: PropsWithChildren<AccordionToggleProps>): JSX.Element;
|
|
7
|
+
export type AccordionBodyProps = HTMLAttributes<HTMLElement>;
|
|
8
|
+
declare function AccordionBody({ children, ...props }: PropsWithChildren<AccordionBodyProps>): JSX.Element;
|
|
9
|
+
export interface AccordionProps extends HTMLAttributes<HTMLElement> {
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
initialExpanded?: boolean;
|
|
12
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function Accordion({ children, expanded, initialExpanded, onExpandedChange, ...others }: AccordionProps): JSX.Element;
|
|
15
|
+
declare namespace Accordion {
|
|
16
|
+
var Toggle: typeof AccordionToggle;
|
|
17
|
+
var Body: typeof AccordionBody;
|
|
18
|
+
}
|
|
19
|
+
export default Accordion;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: AccordionProps): JSX.Element;
|
|
6
|
-
export declare function CustomIndicators(): JSX.Element;
|
|
7
|
-
export declare function ControlledOpened(args: AccordionProps): JSX.Element;
|
|
8
|
-
export declare function ControlledBasedOnExpandedProp(args: AccordionProps): JSX.Element;
|
|
1
|
+
import { AccordionProps } from './Accordion';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Playground(args: AccordionProps): JSX.Element;
|
|
6
|
+
export declare function CustomIndicators(): JSX.Element;
|
|
7
|
+
export declare function ControlledOpened(args: AccordionProps): JSX.Element;
|
|
8
|
+
export declare function ControlledBasedOnExpandedProp(args: AccordionProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Accordion } from './Accordion';
|
|
2
|
-
export type { AccordionProps, AccordionBodyProps, AccordionToggleProps } from './Accordion';
|
|
1
|
+
export { default as Accordion } from './Accordion';
|
|
2
|
+
export type { AccordionProps, AccordionBodyProps, AccordionToggleProps } from './Accordion';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import DefaultCloseButton from
|
|
3
|
-
export interface BannerProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
variant?: 'success' | 'danger' | 'warning' | 'neutral';
|
|
6
|
-
icon?: JSX.Element;
|
|
7
|
-
scale?: 'default' | 'large';
|
|
8
|
-
title?: string | ReactElement;
|
|
9
|
-
description?: string | ReactElement;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
dismissible?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface BannerActionProps extends BannerProps {
|
|
14
|
-
action?: string;
|
|
15
|
-
secondaryAction?: string;
|
|
16
|
-
onActionButtonClick?: () => void;
|
|
17
|
-
onSecondaryActionButtonClick?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const CloseButton: import(
|
|
20
|
-
export declare const Icon: import(
|
|
21
|
-
declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
22
|
-
export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
23
|
-
export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): JSX.Element;
|
|
24
|
-
export declare function BannerActionLarge({ scale, variant, icon, title, description, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, onClose, dismissible, ...others }: BannerActionProps): React.JSX.Element | null;
|
|
25
|
-
export default Banner;
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
import { default as DefaultCloseButton } from '../../common/CloseButton';
|
|
3
|
+
export interface BannerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: 'success' | 'danger' | 'warning' | 'neutral';
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
scale?: 'default' | 'large';
|
|
8
|
+
title?: string | ReactElement;
|
|
9
|
+
description?: string | ReactElement;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
dismissible?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface BannerActionProps extends BannerProps {
|
|
14
|
+
action?: string;
|
|
15
|
+
secondaryAction?: string;
|
|
16
|
+
onActionButtonClick?: () => void;
|
|
17
|
+
onSecondaryActionButtonClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const CloseButton: import('styled-components').StyledComponent<typeof DefaultCloseButton, any, {}, never>;
|
|
20
|
+
export declare const Icon: import('styled-components').StyledComponent<React.ComponentType<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, any, {}, never>;
|
|
21
|
+
declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
22
|
+
export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
23
|
+
export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): JSX.Element;
|
|
24
|
+
export declare function BannerActionLarge({ scale, variant, icon, title, description, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, onClose, dismissible, ...others }: BannerActionProps): React.JSX.Element | null;
|
|
25
|
+
export default Banner;
|
|
@@ -1,106 +1,107 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export declare
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export declare
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export declare
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export declare
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export declare
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export declare
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export declare
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export declare
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
import { BannerProps, BannerActionProps } from './Banner';
|
|
4
|
+
declare const _default: Meta;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function Playground(args: BannerProps): JSX.Element;
|
|
7
|
+
export declare namespace Playground {
|
|
8
|
+
var args: {
|
|
9
|
+
scale: string;
|
|
10
|
+
variant: string;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function Warning(args: BannerProps): JSX.Element;
|
|
15
|
+
export declare namespace Warning {
|
|
16
|
+
var args: {
|
|
17
|
+
scale: string;
|
|
18
|
+
variant: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare function Danger(args: BannerProps): JSX.Element;
|
|
23
|
+
export declare namespace Danger {
|
|
24
|
+
var args: {
|
|
25
|
+
scale: string;
|
|
26
|
+
variant: string;
|
|
27
|
+
title: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export declare function Neutral(args: BannerProps): JSX.Element;
|
|
31
|
+
export declare namespace Neutral {
|
|
32
|
+
var args: {
|
|
33
|
+
scale: string;
|
|
34
|
+
variant: string;
|
|
35
|
+
title: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export declare function CustomIcon(args: BannerProps): JSX.Element;
|
|
39
|
+
export declare namespace CustomIcon {
|
|
40
|
+
var args: {
|
|
41
|
+
scale: string;
|
|
42
|
+
variant: string;
|
|
43
|
+
title: string;
|
|
44
|
+
icon: React.JSX.Element;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare function Large(args: BannerProps): JSX.Element;
|
|
48
|
+
export declare namespace Large {
|
|
49
|
+
var args: {
|
|
50
|
+
scale: string;
|
|
51
|
+
variant: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export declare function Action(args: BannerActionProps): JSX.Element;
|
|
57
|
+
export declare namespace Action {
|
|
58
|
+
var args: {
|
|
59
|
+
scale: string;
|
|
60
|
+
variant: string;
|
|
61
|
+
title: string;
|
|
62
|
+
action: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export declare function ActionWithSecondaryAction(args: BannerActionProps): JSX.Element;
|
|
66
|
+
export declare namespace ActionWithSecondaryAction {
|
|
67
|
+
var args: {
|
|
68
|
+
scale: string;
|
|
69
|
+
variant: string;
|
|
70
|
+
title: string;
|
|
71
|
+
action: string;
|
|
72
|
+
secondaryAction: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export declare function ActionLarge(args: BannerActionProps): JSX.Element;
|
|
76
|
+
export declare namespace ActionLarge {
|
|
77
|
+
var args: {
|
|
78
|
+
scale: string;
|
|
79
|
+
variant: string;
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
action: string;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export declare function ActionLargeWithSecondaryAction(args: BannerActionProps): JSX.Element;
|
|
86
|
+
export declare namespace ActionLargeWithSecondaryAction {
|
|
87
|
+
var args: {
|
|
88
|
+
scale: string;
|
|
89
|
+
variant: string;
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
action: string;
|
|
93
|
+
secondaryAction: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export declare function ActionLargeDismissibleWithSecondaryAction(args: BannerActionProps): JSX.Element;
|
|
97
|
+
export declare namespace ActionLargeDismissibleWithSecondaryAction {
|
|
98
|
+
var args: {
|
|
99
|
+
scale: string;
|
|
100
|
+
variant: string;
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
action: string;
|
|
104
|
+
secondaryAction: string;
|
|
105
|
+
dismissible: boolean;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Banner, BannerLarge, BannerAction, BannerActionLarge } from './Banner';
|
|
2
|
-
export type { BannerProps, BannerActionProps } from './Banner';
|
|
1
|
+
export { default as Banner, BannerLarge, BannerAction, BannerActionLarge } from './Banner';
|
|
2
|
+
export type { BannerProps, BannerActionProps } from './Banner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
-
active?: boolean;
|
|
4
|
-
label: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
}
|
|
7
|
-
declare function Breadcrumb({ active, label, url, ...rest }: BreadcrumbProps): JSX.Element;
|
|
8
|
-
export default Breadcrumb;
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function Breadcrumb({ active, label, url, ...rest }: BreadcrumbProps): JSX.Element;
|
|
8
|
+
export default Breadcrumb;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
import { BreadcrumbProps } from './Breadcrumb';
|
|
3
|
-
export interface BreadcrumbsProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
entries: BreadcrumbProps[];
|
|
7
|
-
onBack?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function Breadcrumbs({ entries, onBack, disabled, ...others }: BreadcrumbsProps): JSX.Element;
|
|
10
|
-
export default Breadcrumbs;
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { BreadcrumbProps } from './Breadcrumb';
|
|
3
|
+
export interface BreadcrumbsProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
entries: BreadcrumbProps[];
|
|
7
|
+
onBack?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function Breadcrumbs({ entries, onBack, disabled, ...others }: BreadcrumbsProps): JSX.Element;
|
|
10
|
+
export default Breadcrumbs;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BreadcrumbsProps } from './Breadcrumbs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { BreadcrumbsProps } from './Breadcrumbs';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Playground: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BreadcrumbsProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
2
|
-
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
3
|
-
export type { BreadcrumbProps } from './Breadcrumb';
|
|
1
|
+
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
2
|
+
export type { BreadcrumbsProps } from './Breadcrumbs';
|
|
3
|
+
export type { BreadcrumbProps } from './Breadcrumb';
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
declare
|
|
18
|
-
export declare
|
|
19
|
-
export
|
|
20
|
-
export declare
|
|
21
|
-
export
|
|
22
|
-
export default Button;
|
|
1
|
+
import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon';
|
|
3
|
+
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
4
|
+
export type ButtonVariants = 'primary' | 'secondary' | 'warning' | 'icon' | 'tertiary';
|
|
5
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
className?: string;
|
|
7
|
+
leading?: ReactNode;
|
|
8
|
+
scheme?: ColorScheme;
|
|
9
|
+
trailing?: ReactNode;
|
|
10
|
+
variant?: ButtonVariants;
|
|
11
|
+
scale?: 'small' | 'default' | 'large';
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Children: import('styled-components').StyledComponent<"span", any, ButtonProps, never>;
|
|
15
|
+
export declare const BaseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export declare function Caret(props: Omit<IconProps, 'name'>): JSX.Element;
|
|
18
|
+
export declare const SelectorButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export type IconButtonProps = Omit<ButtonProps, 'leading' | 'trailing' | 'variant' | 'loading'>;
|
|
20
|
+
export declare const IconButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
export default Button;
|