@loadsmart/loadsmart-ui 7.4.0 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DragDropFile.context-D-EBrXnw.js +2 -0
- package/dist/DragDropFile.context-D-EBrXnw.js.map +1 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs +29 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs.map +1 -0
- package/dist/addons/Theme/register.d.ts +1 -0
- package/dist/common/BackButton/BackButton.d.ts +4 -5
- package/dist/common/BackButton/index.d.ts +2 -2
- package/dist/common/CloseButton/CloseButton.d.ts +6 -7
- package/dist/common/CloseButton/index.d.ts +2 -2
- package/dist/common/SelectionWrapper.d.ts +14 -14
- package/dist/components/Accordion/Accordion.context.d.ts +10 -10
- package/dist/components/Accordion/Accordion.d.ts +19 -19
- package/dist/components/Accordion/Accordion.stories.d.ts +8 -8
- package/dist/components/Accordion/Accordion.test.d.ts +1 -1
- package/dist/components/Accordion/index.d.ts +2 -2
- package/dist/components/Banner/Banner.d.ts +25 -25
- package/dist/components/Banner/Banner.stories.d.ts +107 -106
- package/dist/components/Banner/Banner.test.d.ts +1 -1
- package/dist/components/Banner/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -4
- package/dist/components/Breadcrumbs/index.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +21 -22
- package/dist/components/Button/Button.stories.d.ts +33 -32
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +9 -10
- package/dist/components/Calendar/Calendar.helpers.d.ts +2 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +21 -21
- package/dist/components/Calendar/Calendar.test.d.ts +1 -1
- package/dist/components/Calendar/Calendar.types.d.ts +63 -63
- package/dist/components/Calendar/Date.helper.d.ts +214 -214
- package/dist/components/Calendar/Date.helper.test.d.ts +1 -1
- package/dist/components/Calendar/DateFormat.helper.d.ts +35 -35
- package/dist/components/Calendar/DateFormat.helper.test.d.ts +1 -1
- package/dist/components/Calendar/Month.helper.d.ts +58 -58
- package/dist/components/Calendar/Month.helper.test.d.ts +1 -1
- package/dist/components/Calendar/PickerModeToggle.d.ts +5 -6
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -10
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -4
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +4 -5
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -4
- package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +9 -9
- package/dist/components/Calendar/useCalendar.d.ts +19 -19
- package/dist/components/Calendar/usePickerMode.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +16 -16
- package/dist/components/Card/Card.stories.d.ts +8 -8
- package/dist/components/Card/Card.test.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts +8 -8
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +13 -13
- package/dist/components/DatePicker/DatePicker.stories.d.ts +22 -23
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +27 -27
- package/dist/components/DatePicker/DateRangePicker.d.ts +4 -5
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -22
- package/dist/components/DatePicker/DateRangePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -3
- package/dist/components/DatePicker/useDatePicker.d.ts +604 -591
- package/dist/components/DatePicker/useDateRangePicker.d.ts +905 -885
- package/dist/components/Dialog/Dialog.d.ts +37 -37
- package/dist/components/Dialog/Dialog.stories.d.ts +67 -67
- package/dist/components/Dialog/Dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +4 -4
- package/dist/components/Dialog/useDialog.d.ts +12 -12
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +5 -5
- package/dist/components/DragDropFile/DragDropFile.d.ts +7 -8
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
- package/dist/components/DragDropFile/components/DropZone.d.ts +3 -4
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +7 -7
- package/dist/components/DragDropFile/index.d.ts +3 -3
- package/dist/components/DragDropFile/mocks.d.ts +9 -9
- package/dist/components/DragDropFile/styles.d.ts +11 -11
- package/dist/components/DragDropFile/types.d.ts +71 -71
- package/dist/components/Drawer/Drawer.d.ts +27 -28
- package/dist/components/Drawer/Drawer.stories.d.ts +6 -6
- package/dist/components/Drawer/Drawer.test.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.context.d.ts +3 -4
- package/dist/components/Dropdown/Dropdown.d.ts +47 -47
- package/dist/components/Dropdown/Dropdown.fixtures.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.stories.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +49 -49
- package/dist/components/Dropdown/DropdownMenu.d.ts +8 -8
- package/dist/components/Dropdown/DropdownTrigger.d.ts +21 -22
- package/dist/components/Dropdown/index.d.ts +6 -6
- package/dist/components/Dropdown/useDropdown.d.ts +14 -14
- package/dist/components/Dropdown/useDropdown.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.mocks.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.stories.d.ts +32 -32
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +22 -22
- package/dist/components/EmptyState/EmptyStateWithIcon.d.ts +4 -4
- package/dist/components/EmptyState/EmptyStateWithIllustration.d.ts +4 -4
- package/dist/components/EmptyState/Illustration.d.ts +4 -4
- package/dist/components/EmptyState/index.d.ts +3 -3
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -5
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +13 -13
- package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +1 -1
- package/dist/components/ErrorMessage/index.d.ts +2 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +7 -7
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +5 -5
- package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +1 -1
- package/dist/components/HighlightMatch/index.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts +27 -28
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +17 -17
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +10 -10
- package/dist/components/IconFactory/IconFactory.stories.d.ts +6 -6
- package/dist/components/IconFactory/IconFactory.test.d.ts +1 -1
- package/dist/components/IconFactory/index.d.ts +2 -2
- package/dist/components/Label/Label.d.ts +17 -18
- package/dist/components/Label/Label.stories.d.ts +14 -14
- package/dist/components/Label/Label.test.d.ts +1 -1
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Layout/Box.d.ts +15 -15
- package/dist/components/Layout/Grid.d.ts +11 -11
- package/dist/components/Layout/Group.d.ts +13 -14
- package/dist/components/Layout/Layout.d.ts +16 -16
- package/dist/components/Layout/Layout.stories.d.ts +146 -146
- package/dist/components/Layout/Layout.types.d.ts +3 -3
- package/dist/components/Layout/Layout.utils.d.ts +3 -3
- package/dist/components/Layout/Sidebar.d.ts +13 -13
- package/dist/components/Layout/Stack.d.ts +18 -19
- package/dist/components/Layout/Switcher.d.ts +12 -12
- package/dist/components/Layout/index.d.ts +7 -7
- package/dist/components/Link/Link.d.ts +8 -9
- package/dist/components/Link/Link.stories.d.ts +5 -5
- package/dist/components/Link/Link.test.d.ts +1 -1
- package/dist/components/Link/index.d.ts +3 -3
- package/dist/components/Link/useSafeLink.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +13 -13
- package/dist/components/Loaders/LoadingBar.stories.d.ts +5 -5
- package/dist/components/Loaders/LoadingBar.test.d.ts +1 -1
- package/dist/components/Loaders/LoadingDots.d.ts +5 -6
- package/dist/components/Loaders/LoadingDots.stories.d.ts +6 -6
- package/dist/components/Loaders/LoadingDots.test.d.ts +1 -1
- package/dist/components/Loaders/Spinner.d.ts +5 -6
- package/dist/components/Loaders/Spinner.stories.d.ts +5 -5
- package/dist/components/Loaders/Spinner.test.d.ts +1 -1
- package/dist/components/Loaders/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +22 -22
- package/dist/components/Modal/Modal.stories.d.ts +30 -30
- package/dist/components/Modal/Modal.test.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.constants.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts +3 -4
- package/dist/components/Pagination/Pagination.helper.d.ts +15 -15
- package/dist/components/Pagination/Pagination.stories.d.ts +5 -5
- package/dist/components/Pagination/Pagination.test.d.ts +1 -1
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/PaginationItem.d.ts +3 -4
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/usePagination.d.ts +3 -3
- package/dist/components/Pagination/usePagination.test.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -11
- package/dist/components/Popover/Popover.stories.d.ts +5 -5
- package/dist/components/Popover/Popover.test.d.ts +1 -1
- package/dist/components/Popover/Popover.types.d.ts +31 -31
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +12 -12
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +10 -10
- package/dist/components/Radio/Radio.stories.d.ts +8 -8
- package/dist/components/Radio/Radio.test.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Section/Section.d.ts +12 -12
- package/dist/components/Section/Section.test.d.ts +1 -1
- package/dist/components/Section/Sections.stories.d.ts +5 -5
- package/dist/components/Section/index.d.ts +2 -2
- package/dist/components/Select/Select.constants.d.ts +2 -2
- package/dist/components/Select/Select.context.d.ts +5 -6
- package/dist/components/Select/Select.d.ts +13 -13
- package/dist/components/Select/Select.fixtures.d.ts +37 -37
- package/dist/components/Select/Select.stories.d.ts +19 -19
- package/dist/components/Select/Select.test.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +122 -122
- package/dist/components/Select/SelectCreatableOption.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts +3 -4
- package/dist/components/Select/SelectOption.test.d.ts +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +3 -3
- package/dist/components/Select/components.d.ts +2 -2
- package/dist/components/Select/index.d.ts +3 -3
- package/dist/components/Select/useSelect.d.ts +8 -8
- package/dist/components/Select/useSelect.helpers.d.ts +6 -6
- package/dist/components/Select/useSelect.helpers.test.d.ts +1 -1
- package/dist/components/Select/useSelect.test.d.ts +1 -1
- package/dist/components/Select/useSelectExternal.d.ts +2 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +8 -14
- package/dist/components/SideNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/index.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/Menu.d.ts +16 -17
- package/dist/components/SideNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +6 -6
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +10 -11
- package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -6
- package/dist/components/SideNavigation/Separator/Separator.test.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/index.d.ts +1 -1
- package/dist/components/SideNavigation/SideNavigation.d.ts +28 -34
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +5 -5
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -1
- package/dist/components/SideNavigation/index.d.ts +4 -4
- package/dist/components/SideNavigation/useSideNavigation.d.ts +8 -8
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +12 -12
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +7 -8
- package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +16 -16
- package/dist/components/Steps/Steps.fixtures.d.ts +6 -6
- package/dist/components/Steps/Steps.helpers.d.ts +2 -2
- package/dist/components/Steps/Steps.stories.d.ts +5 -5
- package/dist/components/Steps/Steps.test.d.ts +1 -1
- package/dist/components/Steps/Steps.types.d.ts +5 -5
- package/dist/components/Steps/StepsContext.d.ts +3 -3
- package/dist/components/Steps/StepsStep.d.ts +8 -8
- package/dist/components/Steps/index.d.ts +5 -5
- package/dist/components/Steps/useStep.test.d.ts +1 -1
- package/dist/components/Steps/useSteps.d.ts +30 -30
- package/dist/components/Switch/Switch.d.ts +11 -11
- package/dist/components/Switch/Switch.stories.d.ts +5 -5
- package/dist/components/Switch/Switch.test.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Selection.d.ts +34 -35
- package/dist/components/Table/Table.d.ts +38 -39
- package/dist/components/Table/Table.fixtures.d.ts +29 -29
- package/dist/components/Table/Table.stories.d.ts +61 -61
- package/dist/components/Table/Table.test.d.ts +1 -1
- package/dist/components/Table/Table.types.d.ts +72 -72
- package/dist/components/Table/TableSortHandle.d.ts +7 -8
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/useSortBy.d.ts +16 -16
- package/dist/components/Table/useSortBy.test.d.ts +1 -1
- package/dist/components/Table/useSortBy.types.d.ts +16 -16
- package/dist/components/TablePagination/RowsPerPage.d.ts +3 -4
- package/dist/components/TablePagination/TablePagination.d.ts +3 -4
- package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -5
- package/dist/components/TablePagination/TablePagination.test.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.types.d.ts +59 -59
- package/dist/components/TablePagination/TablePaginationActions.d.ts +11 -11
- package/dist/components/TablePagination/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +49 -49
- package/dist/components/Tabs/Tabs.stories.d.ts +23 -23
- package/dist/components/Tabs/Tabs.test.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -6
- package/dist/components/Tabs/TabsContext.d.ts +8 -9
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +18 -19
- package/dist/components/Tag/Tag.stories.d.ts +42 -41
- package/dist/components/Tag/Tag.test.d.ts +1 -1
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +9 -15
- package/dist/components/Text/Text.stories.d.ts +7 -7
- package/dist/components/Text/Text.test.d.ts +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +18 -19
- package/dist/components/TextField/TextField.stories.d.ts +11 -11
- package/dist/components/TextField/TextField.test.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +4 -4
- package/dist/components/TextField/useTextField.d.ts +6 -6
- package/dist/components/Textarea/Textarea.d.ts +16 -17
- package/dist/components/Textarea/Textarea.stories.d.ts +11 -11
- package/dist/components/Textarea/Textarea.test.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +11 -11
- package/dist/components/Toast/Toast.stories.d.ts +12 -12
- package/dist/components/Toast/Toast.test.d.ts +1 -1
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +4 -5
- package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.constants.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -7
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +26 -26
- package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +5 -5
- package/dist/components/ToggleGroup/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +22 -23
- package/dist/components/Tooltip/Tooltip.stories.d.ts +13 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TopNavigation/Logo/Logo.d.ts +8 -14
- package/dist/components/TopNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/index.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/Menu.d.ts +18 -18
- package/dist/components/TopNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +17 -17
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/index.d.ts +1 -1
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +7 -8
- package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
- package/dist/components/TopNavigation/TopNavigation.d.ts +11 -17
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -6
- package/dist/components/TopNavigation/index.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +12 -13
- package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +1 -1
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +1 -1
- package/dist/hooks/useDidMount/index.d.ts +1 -1
- package/dist/hooks/useDidMount/useDidMount.d.ts +9 -9
- package/dist/hooks/useDidMount/useDidMount.test.d.ts +1 -1
- package/dist/hooks/useFingerprint/index.d.ts +1 -1
- package/dist/hooks/useFingerprint/useFingerprint.d.ts +18 -18
- package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +1 -1
- package/dist/hooks/useFocusTrap/index.d.ts +2 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +27 -27
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +7 -7
- package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +1 -1
- package/dist/hooks/useFocusWithin/index.d.ts +2 -2
- package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +15 -15
- package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +1 -1
- package/dist/hooks/useHeightExpansionToggler/index.d.ts +2 -2
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +14 -14
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +1 -1
- package/dist/hooks/useID/index.d.ts +1 -1
- package/dist/hooks/useID/useID.d.ts +2 -2
- package/dist/hooks/useSelectable/SelectableStrategy.d.ts +11 -11
- package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +1 -1
- package/dist/hooks/useSelectable/index.d.ts +2 -2
- package/dist/hooks/useSelectable/useSelectable.d.ts +6 -6
- package/dist/hooks/useSelectable/useSelectable.test.d.ts +1 -1
- package/dist/hooks/useSelectable/useSelectable.types.d.ts +46 -46
- package/dist/hooks/useWindowResize/index.d.ts +1 -1
- package/dist/hooks/useWindowResize/useWindowResize.d.ts +5 -5
- package/dist/index.d.ts +97 -97
- package/dist/index.js +305 -2676
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8046 -0
- package/dist/index.mjs.map +1 -0
- package/dist/miranda-compatibility.theme-ChPV-BBw.js +2 -0
- package/dist/miranda-compatibility.theme-ChPV-BBw.js.map +1 -0
- package/dist/miranda-compatibility.theme-DQDHkWzC.mjs +2469 -0
- package/dist/miranda-compatibility.theme-DQDHkWzC.mjs.map +1 -0
- package/dist/prop-5m3D4883.mjs +54 -0
- package/dist/prop-5m3D4883.mjs.map +1 -0
- package/dist/prop-BwhJNJHO.js +2 -0
- package/dist/{prop-d9ec2877.js.map → prop-BwhJNJHO.js.map} +1 -1
- package/dist/styles/activatable.d.ts +10 -10
- package/dist/styles/disableable.d.ts +10 -10
- package/dist/styles/ellipsizable.d.ts +7 -7
- package/dist/styles/focusable.d.ts +10 -10
- package/dist/styles/font.d.ts +16 -16
- package/dist/styles/font.test.d.ts +1 -1
- package/dist/styles/hidden.d.ts +7 -7
- package/dist/styles/hoverable.d.ts +10 -10
- package/dist/styles/transition.d.ts +11 -11
- package/dist/styles/typography.d.ts +26 -27
- package/dist/styles/typography.test.d.ts +1 -1
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +42 -42
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +41 -41
- package/dist/testing/DatePickerEvent/index.d.ts +2 -2
- package/dist/testing/DragDropFileEvent/DragDropFileEvent.d.ts +6 -6
- package/dist/testing/DragDropFileEvent/index.d.ts +1 -1
- package/dist/testing/SelectEvent/SelectEvent.d.ts +66 -66
- package/dist/testing/SelectEvent/SelectEvent.test.d.ts +1 -1
- package/dist/testing/SelectEvent/index.d.ts +1 -1
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +10 -10
- package/dist/testing/getInterpolatedStyles/index.d.ts +1 -1
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs +228 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
- package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
- package/dist/tests/generator.d.ts +34 -35
- package/dist/tests/renderer.d.ts +9 -10
- package/dist/theming/index.d.ts +16 -16
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/index.mjs +20 -0
- package/dist/theming/index.mjs.map +1 -0
- package/dist/theming/themes/alice.theme.d.ts +812 -812
- package/dist/theming/themes/index.d.ts +3 -3
- package/dist/theming/themes/loadsmart.theme.d.ts +794 -794
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +808 -808
- package/dist/theming/theming.helpers.d.ts +22 -22
- package/dist/toArray-BW3gx_gH.js +2 -0
- package/dist/toArray-BW3gx_gH.js.map +1 -0
- package/dist/toArray-DqgeO2ua.mjs +8 -0
- package/dist/toArray-DqgeO2ua.mjs.map +1 -0
- package/dist/tools/conditional.d.ts +39 -39
- package/dist/tools/conditional.test.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.mjs +7 -0
- package/dist/tools/index.mjs.map +1 -0
- package/dist/tools/prop.d.ts +15 -15
- package/dist/tools/prop.test.d.ts +1 -1
- package/dist/utils/toolset/awaitTo.d.ts +10 -10
- package/dist/utils/toolset/flatten.d.ts +2 -2
- package/dist/utils/toolset/formatBytes.d.ts +4 -4
- package/dist/utils/toolset/formatBytes.test.d.ts +1 -1
- package/dist/utils/toolset/get.d.ts +2 -2
- package/dist/utils/toolset/getID.d.ts +13 -13
- package/dist/utils/toolset/getID.test.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +1 -1
- package/dist/utils/toolset/highlightMatch.d.ts +9 -10
- package/dist/utils/toolset/highlightMatch.test.d.ts +1 -1
- package/dist/utils/toolset/interleave.d.ts +2 -2
- package/dist/utils/toolset/interleave.test.d.ts +1 -1
- package/dist/utils/toolset/isEmpty.d.ts +2 -2
- package/dist/utils/toolset/isThenable.d.ts +5 -5
- package/dist/utils/toolset/isThenable.test.d.ts +1 -1
- package/dist/utils/toolset/keyboard.d.ts +24 -24
- package/dist/utils/toolset/omit.d.ts +2 -2
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +2 -2
- package/dist/utils/toolset/rem.d.ts +3 -3
- package/dist/utils/toolset/styledCompounds.d.ts +12 -13
- package/dist/utils/toolset/toArray.d.ts +2 -2
- package/dist/utils/types/ColorScheme.d.ts +2 -2
- package/dist/utils/types/EventLike.d.ts +10 -10
- package/dist/utils/types/InterpolatedStyle.d.ts +2 -2
- package/dist/utils/types/Status.d.ts +7 -7
- package/package.json +24 -31
- package/src/components/Dropdown/Dropdown.test.tsx +3 -1
- package/src/components/Icon/Icon.tsx +21 -21
- package/src/components/IconFactory/IconFactory.tsx +3 -3
- package/src/components/Switch/Switch.test.tsx +3 -1
- package/dist/DragDropFile.context-bbb7d631.js +0 -2
- package/dist/DragDropFile.context-bbb7d631.js.map +0 -1
- package/dist/miranda-compatibility.theme-ce3baf7f.js +0 -2
- package/dist/miranda-compatibility.theme-ce3baf7f.js.map +0 -1
- package/dist/prop-d9ec2877.js +0 -2
- package/dist/toArray-b56541b4.js +0 -2
- package/dist/toArray-b56541b4.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prop-5m3D4883.mjs","sources":["../src/tools/conditional.ts","../src/tools/prop.ts"],"sourcesContent":["import { isObject } from '@loadsmart/utils-object'\nimport { isFunction } from '@loadsmart/utils-function'\nimport type { F } from 'ts-toolbelt'\n\nimport { getToken } from 'theming'\nimport type { ThemeToken, ThemedProps } from 'theming'\nimport get from 'utils/toolset/get'\nimport toArray from 'utils/toolset/toArray'\n\ntype WhenProps<K> = K | undefined | ((value: K) => boolean | undefined)\n\nexport type When<P> = {\n [Key in keyof P]?: WhenProps<P[Key]> | WhenProps<P[Key]>[] | undefined\n}\n\n/**\n * Utility to generate style/class name conditions based on a components props.\n * Expected prop values can be a single value, an array of values or a function/callback.\n * @example\n * ```jsx\n * whenProps({\n * 'prop-a': true, // checks `props['prop-a']` === true`\n * 'prop-b': [1, 2], // checks `toArray([1, 2]).includes(props['prop-b'])`\n * 'prop-c': (value) => value + 1 // checks `Boolean(callback(props['prop-c']))`\n * 'prop-d': Boolean // checks `Boolean(Boolean(props['prop-d']))`\n * })\n * ```\n * @param {...Object} conditions\n * @returns {(props: Object}) => boolean} Returns function that consumes component props.\n */\nexport function whenProps<P>(conditions: When<F.Narrow<P>> | When<F.Narrow<P>>[]) {\n return function (props: P): boolean {\n const safeConditions = toArray(conditions)\n\n let res = false\n\n for (let i = 0; i < safeConditions.length; i++) {\n const condition = safeConditions[i]\n const keys = Object.keys(condition)\n\n let temp = true\n\n for (let j = 0; j < keys.length && temp; j++) {\n const key = keys[j]\n const propValue = get(props, key) as P[keyof P]\n const conditionValue = condition[key as keyof typeof condition]\n\n if (Array.isArray(conditionValue)) {\n temp = temp && toArray(conditionValue).includes(propValue)\n } else if (isFunction(conditionValue)) {\n temp = temp && Boolean(conditionValue(propValue))\n } else {\n temp = temp && (conditionValue as unknown) === propValue\n }\n }\n\n res = res || temp\n }\n\n return res\n }\n}\n\ntype ConditionObject<P> = Record<\n string,\n string | number | boolean | ((props: P) => boolean) | undefined\n>\n\nfunction handleConditionObject<P>(condition: ConditionObject<P>, props: P): string {\n const keys = Object.keys(condition || {})\n\n const res = keys.reduce((acc, key) => {\n let value = condition[key]\n\n if (isFunction(value)) {\n value = value(props)\n }\n\n if (value) {\n const tokenKey = key as ThemeToken\n const result = (getToken(tokenKey, props as unknown as ThemedProps) ?? key) as string\n return [...acc, result]\n }\n\n return acc\n }, [] as string[])\n\n return res.join(' ')\n}\n\ntype Condition<P> = number | string | ConditionObject<P> | ((props: P) => string)\n\n/**\n * Concatenate style properties or class names conditionally.\n * Conditions can be functions that consume components props,\n * objects, strings, or numbers (that will be coerced to strings).\n * @example\n * ```jsx\n * conditional(1, 'some-class', {\n * 'class-a': true,\n * 'class-b': (props) => props.showClassB,\n * }, (props) => props.className)\n * ```\n * @param conditions\n * @returns {(props: ThemedProps) => string} Returns function that consumes component props.\n */\nfunction conditional<P>(...conditions: Condition<P>[]) {\n return function (props: P): string {\n let classes: string[] = []\n\n for (let i = 0; i < conditions.length; i++) {\n const condition = conditions[i]\n\n if (isFunction(condition)) {\n classes.push(condition(props))\n } else if (isObject(condition)) {\n classes = classes.concat(handleConditionObject<P>(condition, props))\n } else if (condition) {\n classes.push(String(condition))\n }\n }\n\n return classes.join(' ')\n }\n}\n\nexport default conditional\n","function compare(...args: any[]): unknown {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const [value, defaultValue] = args\n\n if (value == null || value === false || Number.isNaN(value)) {\n return defaultValue || value\n }\n\n if (typeof value === 'string' && value.length === 0) {\n return defaultValue || value\n }\n\n return value\n}\n\n/**\n * Retrieve the key value from the props object\n * @example\n * ```jsx\n * -transform: scaleY(${(props) => props.$height || 1});\n * +transform: scaleY(${prop('$height', 1)});\n * ```\n * @param name a valid property name from the object\n * @param defaultValue a fallback value in case the property value is invalid\n * @param comparatorFn a function to be used to decide between value or defaultValue\n * @returns {(props: ThemedProps) => string} Returns function that consumes component props.\n */\nfunction prop<P, K extends keyof P = keyof P>(\n name: K,\n defaultValue?: NonNullable<P[K]>,\n comparatorFn = compare\n) {\n return (props: P): P[K] => comparatorFn(props[name], defaultValue) as P[K]\n}\n\nexport default prop\n"],"names":["whenProps","conditions","props","safeConditions","toArray","res","i","length","condition","keys","Object","temp","j","key","propValue","get","conditionValue","Array","isArray","includes","isFunction","Boolean","handleConditionObject","reduce","acc","value","result","getToken","join","conditional","classes","push","isObject","concat","String","compare","args","defaultValue","Number","isNaN","prop","name","comparatorFn"],"mappings":";;;;;AA8BO,SAASA,EAAaC,GAAqD;AAChF,SAAO,SAAUC,GAAmB;AAC5BC,UAAAA,IAAiBC,EAAQH,CAAU;AAEzC,QAAII,IAAM;AAEV,aAASC,IAAI,GAAGA,IAAIH,EAAeI,QAAQD,KAAK;AACxCE,YAAAA,IAAYL,EAAeG,CAAC,GAC5BG,IAAOC,OAAOD,KAAKD,CAAS;AAElC,UAAIG,IAAO;AAEX,eAASC,IAAI,GAAGA,IAAIH,EAAKF,UAAUI,GAAMC,KAAK;AACtCC,cAAAA,IAAMJ,EAAKG,CAAC,GACZE,IAAYC,EAAIb,GAAOW,CAAG,GAC1BG,IAAiBR,EAAUK,CAA6B;AAE1DI,QAAAA,MAAMC,QAAQF,CAAc,IAC9BL,IAAOA,KAAQP,EAAQY,CAAc,EAAEG,SAASL,CAAS,IAChDM,EAAWJ,CAAc,IAClCL,IAAOA,KAAQU,EAAQL,EAAeF,CAAS,IAE/CH,IAAOA,KAASK,MAA+BF;AAAAA,MACjD;AAGFT,MAAAA,IAAMA,KAAOM;AAAAA,IAAAA;AAGRN,WAAAA;AAAAA,EACT;AACF;AAOA,SAASiB,EAAyBd,GAA+BN,GAAkB;AAmB1EG,SAlBMK,OAAOD,KAAKD,KAAa,CAAA,CAAE,EAEvBe,OAAO,CAACC,GAAKX,MAAQ;AAChCY,QAAAA,IAAQjB,EAAUK,CAAG;AAMzB,QAJIO,EAAWK,CAAK,MAClBA,IAAQA,EAAMvB,CAAK,IAGjBuB,GAAO;AAET,YAAMC,IAAUC,EADCd,GACkBX,CAA+B,KAAKW;AAChE,aAAA,CAAC,GAAGW,GAAKE,CAAM;AAAA,IAAA;AAGjBF,WAAAA;AAAAA,EACT,GAAG,EAAc,EAENI,KAAK,GAAG;AACrB;AAkBA,SAASC,KAAkB5B,GAA4B;AACrD,SAAO,SAAUC,GAAkB;AACjC,QAAI4B,IAAoB,CAAE;AAE1B,aAASxB,IAAI,GAAGA,IAAIL,EAAWM,QAAQD,KAAK;AACpCE,YAAAA,IAAYP,EAAWK,CAAC;AAE1Bc,MAAAA,EAAWZ,CAAS,IACduB,EAAAA,KAAKvB,EAAUN,CAAK,CAAC,IACpB8B,EAASxB,CAAS,IAC3BsB,IAAUA,EAAQG,OAAOX,EAAyBd,GAAWN,CAAK,CAAC,IAC1DM,KACDuB,EAAAA,KAAKG,OAAO1B,CAAS,CAAC;AAAA,IAChC;AAGKsB,WAAAA,EAAQF,KAAK,GAAG;AAAA,EACzB;AACF;AC5HA,SAASO,KAAWC,GAAsB;AAElC,QAAA,CAACX,GAAOY,CAAY,IAAID;AAM9B,UAJIX,KAAS,QAAQA,MAAU,MAASa,OAAOC,MAAMd,CAAK,KAItD,OAAOA,KAAU,YAAYA,EAAMlB,WAAW,MACzC8B,KAAgBZ;AAI3B;AAcA,SAASe,EACPC,GACAJ,GACAK,IAAeP,GACf;AACA,SAAO,CAACjC,MAAmBwC,EAAaxC,EAAMuC,CAAI,GAAGJ,CAAY;AACnE;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const g=require("@loadsmart/utils-object"),a=require("@loadsmart/utils-function"),h=require("./theming/index.js"),p=require("lodash/get.js"),y=require("./toArray-BW3gx_gH.js"),j=t=>t&&t.__esModule?t:{default:t},b=j(p);function k(t){return function(e){const n=y.toArray(t);let r=!1;for(let o=0;o<n.length;o++){const u=n[o],s=Object.keys(u);let i=!0;for(let c=0;c<s.length&&i;c++){const d=s[c],f=b.default(e,d),l=u[d];Array.isArray(l)?i=i&&y.toArray(l).includes(f):a.isFunction(l)?i=i&&!!l(f):i=i&&l===f}r=r||i}return r}}function _(t,e){return Object.keys(t||{}).reduce((o,u)=>{let s=t[u];if(a.isFunction(s)&&(s=s(e)),s){const i=u,c=h.getToken(i,e)??u;return[...o,c]}return o},[]).join(" ")}function q(...t){return function(e){let n=[];for(let r=0;r<t.length;r++){const o=t[r];a.isFunction(o)?n.push(o(e)):g.isObject(o)?n=n.concat(_(o,e)):o&&n.push(String(o))}return n.join(" ")}}function A(...t){const[e,n]=t;return(e==null||e===!1||Number.isNaN(e)||typeof e=="string"&&e.length===0)&&n||e}function O(t,e,n=A){return r=>n(r[t],e)}exports.conditional=q;exports.prop=O;exports.whenProps=k;
|
|
2
|
+
//# sourceMappingURL=prop-BwhJNJHO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-
|
|
1
|
+
{"version":3,"file":"prop-BwhJNJHO.js","sources":["../src/tools/conditional.ts","../src/tools/prop.ts"],"sourcesContent":["import { isObject } from '@loadsmart/utils-object'\nimport { isFunction } from '@loadsmart/utils-function'\nimport type { F } from 'ts-toolbelt'\n\nimport { getToken } from 'theming'\nimport type { ThemeToken, ThemedProps } from 'theming'\nimport get from 'utils/toolset/get'\nimport toArray from 'utils/toolset/toArray'\n\ntype WhenProps<K> = K | undefined | ((value: K) => boolean | undefined)\n\nexport type When<P> = {\n [Key in keyof P]?: WhenProps<P[Key]> | WhenProps<P[Key]>[] | undefined\n}\n\n/**\n * Utility to generate style/class name conditions based on a components props.\n * Expected prop values can be a single value, an array of values or a function/callback.\n * @example\n * ```jsx\n * whenProps({\n * 'prop-a': true, // checks `props['prop-a']` === true`\n * 'prop-b': [1, 2], // checks `toArray([1, 2]).includes(props['prop-b'])`\n * 'prop-c': (value) => value + 1 // checks `Boolean(callback(props['prop-c']))`\n * 'prop-d': Boolean // checks `Boolean(Boolean(props['prop-d']))`\n * })\n * ```\n * @param {...Object} conditions\n * @returns {(props: Object}) => boolean} Returns function that consumes component props.\n */\nexport function whenProps<P>(conditions: When<F.Narrow<P>> | When<F.Narrow<P>>[]) {\n return function (props: P): boolean {\n const safeConditions = toArray(conditions)\n\n let res = false\n\n for (let i = 0; i < safeConditions.length; i++) {\n const condition = safeConditions[i]\n const keys = Object.keys(condition)\n\n let temp = true\n\n for (let j = 0; j < keys.length && temp; j++) {\n const key = keys[j]\n const propValue = get(props, key) as P[keyof P]\n const conditionValue = condition[key as keyof typeof condition]\n\n if (Array.isArray(conditionValue)) {\n temp = temp && toArray(conditionValue).includes(propValue)\n } else if (isFunction(conditionValue)) {\n temp = temp && Boolean(conditionValue(propValue))\n } else {\n temp = temp && (conditionValue as unknown) === propValue\n }\n }\n\n res = res || temp\n }\n\n return res\n }\n}\n\ntype ConditionObject<P> = Record<\n string,\n string | number | boolean | ((props: P) => boolean) | undefined\n>\n\nfunction handleConditionObject<P>(condition: ConditionObject<P>, props: P): string {\n const keys = Object.keys(condition || {})\n\n const res = keys.reduce((acc, key) => {\n let value = condition[key]\n\n if (isFunction(value)) {\n value = value(props)\n }\n\n if (value) {\n const tokenKey = key as ThemeToken\n const result = (getToken(tokenKey, props as unknown as ThemedProps) ?? key) as string\n return [...acc, result]\n }\n\n return acc\n }, [] as string[])\n\n return res.join(' ')\n}\n\ntype Condition<P> = number | string | ConditionObject<P> | ((props: P) => string)\n\n/**\n * Concatenate style properties or class names conditionally.\n * Conditions can be functions that consume components props,\n * objects, strings, or numbers (that will be coerced to strings).\n * @example\n * ```jsx\n * conditional(1, 'some-class', {\n * 'class-a': true,\n * 'class-b': (props) => props.showClassB,\n * }, (props) => props.className)\n * ```\n * @param conditions\n * @returns {(props: ThemedProps) => string} Returns function that consumes component props.\n */\nfunction conditional<P>(...conditions: Condition<P>[]) {\n return function (props: P): string {\n let classes: string[] = []\n\n for (let i = 0; i < conditions.length; i++) {\n const condition = conditions[i]\n\n if (isFunction(condition)) {\n classes.push(condition(props))\n } else if (isObject(condition)) {\n classes = classes.concat(handleConditionObject<P>(condition, props))\n } else if (condition) {\n classes.push(String(condition))\n }\n }\n\n return classes.join(' ')\n }\n}\n\nexport default conditional\n","function compare(...args: any[]): unknown {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const [value, defaultValue] = args\n\n if (value == null || value === false || Number.isNaN(value)) {\n return defaultValue || value\n }\n\n if (typeof value === 'string' && value.length === 0) {\n return defaultValue || value\n }\n\n return value\n}\n\n/**\n * Retrieve the key value from the props object\n * @example\n * ```jsx\n * -transform: scaleY(${(props) => props.$height || 1});\n * +transform: scaleY(${prop('$height', 1)});\n * ```\n * @param name a valid property name from the object\n * @param defaultValue a fallback value in case the property value is invalid\n * @param comparatorFn a function to be used to decide between value or defaultValue\n * @returns {(props: ThemedProps) => string} Returns function that consumes component props.\n */\nfunction prop<P, K extends keyof P = keyof P>(\n name: K,\n defaultValue?: NonNullable<P[K]>,\n comparatorFn = compare\n) {\n return (props: P): P[K] => comparatorFn(props[name], defaultValue) as P[K]\n}\n\nexport default prop\n"],"names":["whenProps","conditions","props","safeConditions","toArray","res","i","length","condition","keys","Object","temp","j","key","propValue","get","conditionValue","Array","isArray","includes","isFunction","Boolean","handleConditionObject","reduce","acc","value","tokenKey","result","getToken","join","conditional","classes","push","isObject","concat","String","compare","args","defaultValue","Number","isNaN","prop","name","comparatorFn"],"mappings":"uOA8BO,SAASA,EAAaC,EAAqD,CAChF,OAAO,SAAUC,EAAmB,CAC5BC,MAAAA,EAAiBC,UAAQH,CAAU,EAEzC,IAAII,EAAM,GAEV,QAASC,EAAI,EAAGA,EAAIH,EAAeI,OAAQD,IAAK,CACxCE,MAAAA,EAAYL,EAAeG,CAAC,EAC5BG,EAAOC,OAAOD,KAAKD,CAAS,EAElC,IAAIG,EAAO,GAEX,QAASC,EAAI,EAAGA,EAAIH,EAAKF,QAAUI,EAAMC,IAAK,CACtCC,MAAAA,EAAMJ,EAAKG,CAAC,EACZE,EAAYC,EAAAA,QAAIb,EAAOW,CAAG,EAC1BG,EAAiBR,EAAUK,CAA6B,EAE1DI,MAAMC,QAAQF,CAAc,EAC9BL,EAAOA,GAAQP,EAAAA,QAAQY,CAAc,EAAEG,SAASL,CAAS,EAChDM,EAAAA,WAAWJ,CAAc,EAClCL,EAAOA,GAAQU,EAAQL,EAAeF,CAAS,EAE/CH,EAAOA,GAASK,IAA+BF,CACjD,CAGFT,EAAMA,GAAOM,CAAAA,CAGRN,OAAAA,CACT,CACF,CAOA,SAASiB,EAAyBd,EAA+BN,EAAkB,CAmB1EG,OAlBMK,OAAOD,KAAKD,GAAa,CAAA,CAAE,EAEvBe,OAAO,CAACC,EAAKX,IAAQ,CAChCY,IAAAA,EAAQjB,EAAUK,CAAG,EAMzB,GAJIO,EAAAA,WAAWK,CAAK,IAClBA,EAAQA,EAAMvB,CAAK,GAGjBuB,EAAO,CACT,MAAMC,EAAWb,EACXc,EAAUC,EAAAA,SAASF,EAAUxB,CAA+B,GAAKW,EAChE,MAAA,CAAC,GAAGW,EAAKG,CAAM,CAAA,CAGjBH,OAAAA,CACT,EAAG,EAAc,EAENK,KAAK,GAAG,CACrB,CAkBA,SAASC,KAAkB7B,EAA4B,CACrD,OAAO,SAAUC,EAAkB,CACjC,IAAI6B,EAAoB,CAAE,EAE1B,QAASzB,EAAI,EAAGA,EAAIL,EAAWM,OAAQD,IAAK,CACpCE,MAAAA,EAAYP,EAAWK,CAAC,EAE1Bc,EAAAA,WAAWZ,CAAS,EACdwB,EAAAA,KAAKxB,EAAUN,CAAK,CAAC,EACpB+B,EAAAA,SAASzB,CAAS,EAC3BuB,EAAUA,EAAQG,OAAOZ,EAAyBd,EAAWN,CAAK,CAAC,EAC1DM,GACDwB,EAAAA,KAAKG,OAAO3B,CAAS,CAAC,CAChC,CAGKuB,OAAAA,EAAQF,KAAK,GAAG,CACzB,CACF,CC5HA,SAASO,KAAWC,EAAsB,CAElC,KAAA,CAACZ,EAAOa,CAAY,EAAID,EAM9B,OAJIZ,GAAS,MAAQA,IAAU,IAASc,OAAOC,MAAMf,CAAK,GAItD,OAAOA,GAAU,UAAYA,EAAMlB,SAAW,IACzC+B,GAAgBb,CAI3B,CAcA,SAASgB,EACPC,EACAJ,EACAK,EAAeP,EACf,CACA,OAAQlC,GAAmByC,EAAazC,EAAMwC,CAAI,EAAGJ,CAAY,CACnE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Add basic CSS style wrapping block for `:active` state.
|
|
4
|
-
* It returns an array to allow handling of nested interpolation
|
|
5
|
-
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
-
* @param {any[]} args - Interpolated items.
|
|
7
|
-
* @returns {any[]}
|
|
8
|
-
*/
|
|
9
|
-
declare function activatableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
-
export default activatableStyle;
|
|
1
|
+
import { InterpolatedStyle } from '../utils/types/InterpolatedStyle';
|
|
2
|
+
/**
|
|
3
|
+
* Add basic CSS style wrapping block for `:active` state.
|
|
4
|
+
* It returns an array to allow handling of nested interpolation
|
|
5
|
+
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
+
* @param {any[]} args - Interpolated items.
|
|
7
|
+
* @returns {any[]}
|
|
8
|
+
*/
|
|
9
|
+
declare function activatableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
+
export default activatableStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Add basic CSS style wrapping block for `:disabled` state or `.is-disabled` class.
|
|
4
|
-
* It returns an array to allow handling of nested interpolation
|
|
5
|
-
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
-
* @param {any[]} args - Interpolated items.
|
|
7
|
-
* @returns {any[]}
|
|
8
|
-
*/
|
|
9
|
-
declare function disableableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
-
export default disableableStyle;
|
|
1
|
+
import { InterpolatedStyle } from '../utils/types/InterpolatedStyle';
|
|
2
|
+
/**
|
|
3
|
+
* Add basic CSS style wrapping block for `:disabled` state or `.is-disabled` class.
|
|
4
|
+
* It returns an array to allow handling of nested interpolation
|
|
5
|
+
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
+
* @param {any[]} args - Interpolated items.
|
|
7
|
+
* @returns {any[]}
|
|
8
|
+
*/
|
|
9
|
+
declare function disableableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
+
export default disableableStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add basic CSS style for ellipsizing the content of an element.
|
|
3
|
-
* Setting `max-width` is a responsability of the caller.
|
|
4
|
-
* @returns {string}
|
|
5
|
-
*/
|
|
6
|
-
declare function ellipsizableStyle(): string;
|
|
7
|
-
export default ellipsizableStyle;
|
|
1
|
+
/**
|
|
2
|
+
* Add basic CSS style for ellipsizing the content of an element.
|
|
3
|
+
* Setting `max-width` is a responsability of the caller.
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
declare function ellipsizableStyle(): string;
|
|
7
|
+
export default ellipsizableStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Add basic CSS style wrapping block for `:active` state.
|
|
4
|
-
* It returns an array to allow handling of nested interpolation
|
|
5
|
-
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
-
* @param {any[]} args - Interpolated items.
|
|
7
|
-
* @returns {any[]}
|
|
8
|
-
*/
|
|
9
|
-
declare function focusableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
-
export default focusableStyle;
|
|
1
|
+
import { InterpolatedStyle } from '../utils/types/InterpolatedStyle';
|
|
2
|
+
/**
|
|
3
|
+
* Add basic CSS style wrapping block for `:active` state.
|
|
4
|
+
* It returns an array to allow handling of nested interpolation
|
|
5
|
+
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
+
* @param {any[]} args - Interpolated items.
|
|
7
|
+
* @returns {any[]}
|
|
8
|
+
*/
|
|
9
|
+
declare function focusableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
+
export default focusableStyle;
|
package/dist/styles/font.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
interface FontStyleOptions {
|
|
4
|
-
size?: ThemeToken;
|
|
5
|
-
family?: ThemeToken;
|
|
6
|
-
weight?: ThemeToken;
|
|
7
|
-
height?: ThemeToken;
|
|
8
|
-
color?: ThemeToken;
|
|
9
|
-
transform?: 'uppercase' | 'none';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Add basic CSS style for default font
|
|
13
|
-
* @returns {FlattenInterpolation}
|
|
14
|
-
*/
|
|
15
|
-
declare function fontStyle({ color, weight, size, family, height, transform, }: FontStyleOptions): FlattenInterpolation<ThemedProps>;
|
|
16
|
-
export default fontStyle;
|
|
1
|
+
import { FlattenInterpolation } from 'styled-components';
|
|
2
|
+
import { ThemedProps, ThemeToken } from '../theming';
|
|
3
|
+
interface FontStyleOptions {
|
|
4
|
+
size?: ThemeToken;
|
|
5
|
+
family?: ThemeToken;
|
|
6
|
+
weight?: ThemeToken;
|
|
7
|
+
height?: ThemeToken;
|
|
8
|
+
color?: ThemeToken;
|
|
9
|
+
transform?: 'uppercase' | 'none';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Add basic CSS style for default font
|
|
13
|
+
* @returns {FlattenInterpolation}
|
|
14
|
+
*/
|
|
15
|
+
declare function fontStyle({ color, weight, size, family, height, transform, }: FontStyleOptions): FlattenInterpolation<ThemedProps>;
|
|
16
|
+
export default fontStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/styles/hidden.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add basic CSS style for hide elements
|
|
3
|
-
* @param {boolean} accessible - should keep element visible for screen readers
|
|
4
|
-
* @returns {string}
|
|
5
|
-
*/
|
|
6
|
-
declare function hiddenStyle(accessible?: boolean): string;
|
|
7
|
-
export default hiddenStyle;
|
|
1
|
+
/**
|
|
2
|
+
* Add basic CSS style for hide elements
|
|
3
|
+
* @param {boolean} accessible - should keep element visible for screen readers
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
declare function hiddenStyle(accessible?: boolean): string;
|
|
7
|
+
export default hiddenStyle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
/**
|
|
3
|
-
* Add basic CSS style wrapping block for `:hover` state; it includes check for non-disabled (`:enabled` or not `.is-disabled`) elements.
|
|
4
|
-
* It returns an array to allow handling of nested interpolation
|
|
5
|
-
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
-
* @param {any[]} args - Interpolated items.
|
|
7
|
-
* @returns {any[]}
|
|
8
|
-
*/
|
|
9
|
-
declare function hoverableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
-
export default hoverableStyle;
|
|
1
|
+
import { InterpolatedStyle } from '../utils/types/InterpolatedStyle';
|
|
2
|
+
/**
|
|
3
|
+
* Add basic CSS style wrapping block for `:hover` state; it includes check for non-disabled (`:enabled` or not `.is-disabled`) elements.
|
|
4
|
+
* It returns an array to allow handling of nested interpolation
|
|
5
|
+
* @param {ReadonlyArray<string> | Array<string>} strings - String parts for the interpolation.
|
|
6
|
+
* @param {any[]} args - Interpolated items.
|
|
7
|
+
* @returns {any[]}
|
|
8
|
+
*/
|
|
9
|
+
declare function hoverableStyle(strings?: ReadonlyArray<string> | Array<string>, ...args: any[]): InterpolatedStyle;
|
|
10
|
+
export default hoverableStyle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface TransitionStyleOptions {
|
|
2
|
-
property?: string;
|
|
3
|
-
timingFunction?: string;
|
|
4
|
-
duration?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Add basic CSS style for default transition parameters
|
|
8
|
-
* @returns {string}
|
|
9
|
-
*/
|
|
10
|
-
declare function transitionStyle(options?: TransitionStyleOptions): string;
|
|
11
|
-
export default transitionStyle;
|
|
1
|
+
interface TransitionStyleOptions {
|
|
2
|
+
property?: string;
|
|
3
|
+
timingFunction?: string;
|
|
4
|
+
duration?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Add basic CSS style for default transition parameters
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
declare function transitionStyle(options?: TransitionStyleOptions): string;
|
|
11
|
+
export default transitionStyle;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { ThemedStyledProps } from 'styled-components';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*
|
|
22
|
-
* @param {
|
|
23
|
-
* @
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export default typography;
|
|
1
|
+
import { ThemedStyledProps, FlattenInterpolation } from 'styled-components';
|
|
2
|
+
import { CustomTheme, ThemeToken } from '../theming';
|
|
3
|
+
export type TypographyOptions = {
|
|
4
|
+
italic?: boolean;
|
|
5
|
+
color?: ThemeToken;
|
|
6
|
+
};
|
|
7
|
+
type PropertiesToken = {
|
|
8
|
+
fontSize: ThemeToken;
|
|
9
|
+
lineHeight: ThemeToken;
|
|
10
|
+
fontWeight: ThemeToken;
|
|
11
|
+
fontFamily?: ThemeToken;
|
|
12
|
+
textTransform?: 'none' | 'uppercase';
|
|
13
|
+
color?: ThemeToken;
|
|
14
|
+
};
|
|
15
|
+
export type TypographyVariants = 'heading-lg' | 'heading-md' | 'heading-md-bold' | 'heading-sm' | 'heading-sm-bold' | 'body' | 'body-bold' | 'caption' | 'caption-bold' | 'number-sm' | 'number-md' | 'button-sm' | 'button-md' | 'button-lg' | 'table-header-sm' | 'table-header-md' | 'chips-sm' | 'link';
|
|
16
|
+
type TypographyProperties = Record<TypographyVariants, PropertiesToken>;
|
|
17
|
+
export declare const typographyProperties: TypographyProperties;
|
|
18
|
+
type StyledTemplate<P> = FlattenInterpolation<ThemedStyledProps<P, CustomTheme>>;
|
|
19
|
+
/**
|
|
20
|
+
* Standard styles for screen-rendered text
|
|
21
|
+
* @param {TypographyVariants} variant Name of the variant
|
|
22
|
+
* @param {TypographyOptions} options Add boldness, italics and color
|
|
23
|
+
* @returns {FlattenInterpolation}
|
|
24
|
+
*/
|
|
25
|
+
declare function typography<P>(variant?: TypographyVariants | ((props: P) => string), options?: TypographyOptions): StyledTemplate<P> | ((props: P) => StyledTemplate<P>);
|
|
26
|
+
export default typography;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
declare function getContainerFromInput(input: HTMLElement): HTMLElement;
|
|
2
|
-
/**
|
|
3
|
-
* Expand the `DatePicker` calendar, if it not already expanded.
|
|
4
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
5
|
-
* @returns {Promise<void>}
|
|
6
|
-
*/
|
|
7
|
-
declare function expand(input: HTMLElement): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Collapse the `DatePicker` calendar, if it not already collapsed.
|
|
10
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
11
|
-
* @returns {Promise<void>}
|
|
12
|
-
*/
|
|
13
|
-
declare function collapse(input: HTMLElement): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Pick (select) the provided day in the current month/year.
|
|
16
|
-
* Notice that we programatically expand the `DatePicker` calendar before picking the date.
|
|
17
|
-
* @param {string} day - Label for the day to be picked, formatted as mm/dd/yyyy.
|
|
18
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
19
|
-
* @returns {Promise<void>}
|
|
20
|
-
*/
|
|
21
|
-
declare function pick(day: string, input: HTMLElement): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Clear the selection, if there are any options selected.
|
|
24
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
25
|
-
* @returns {Promise<void>}
|
|
26
|
-
*/
|
|
27
|
-
declare function clear(input: HTMLElement): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Get options elements currently selected in the `DatePicker` calendar.
|
|
30
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
31
|
-
* @returns {Promise<HTMLElement[]>}
|
|
32
|
-
*/
|
|
33
|
-
declare function getSelectedDates(input: HTMLElement): Promise<HTMLElement[]>;
|
|
34
|
-
declare const datePickerEvent: {
|
|
35
|
-
getContainer: typeof getContainerFromInput;
|
|
36
|
-
expand: typeof expand;
|
|
37
|
-
collapse: typeof collapse;
|
|
38
|
-
pick: typeof pick;
|
|
39
|
-
clear: typeof clear;
|
|
40
|
-
getSelectedDates: typeof getSelectedDates;
|
|
41
|
-
};
|
|
42
|
-
export default datePickerEvent;
|
|
1
|
+
declare function getContainerFromInput(input: HTMLElement): HTMLElement;
|
|
2
|
+
/**
|
|
3
|
+
* Expand the `DatePicker` calendar, if it not already expanded.
|
|
4
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
5
|
+
* @returns {Promise<void>}
|
|
6
|
+
*/
|
|
7
|
+
declare function expand(input: HTMLElement): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Collapse the `DatePicker` calendar, if it not already collapsed.
|
|
10
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
11
|
+
* @returns {Promise<void>}
|
|
12
|
+
*/
|
|
13
|
+
declare function collapse(input: HTMLElement): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Pick (select) the provided day in the current month/year.
|
|
16
|
+
* Notice that we programatically expand the `DatePicker` calendar before picking the date.
|
|
17
|
+
* @param {string} day - Label for the day to be picked, formatted as mm/dd/yyyy.
|
|
18
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
19
|
+
* @returns {Promise<void>}
|
|
20
|
+
*/
|
|
21
|
+
declare function pick(day: string, input: HTMLElement): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Clear the selection, if there are any options selected.
|
|
24
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
25
|
+
* @returns {Promise<void>}
|
|
26
|
+
*/
|
|
27
|
+
declare function clear(input: HTMLElement): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Get options elements currently selected in the `DatePicker` calendar.
|
|
30
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
31
|
+
* @returns {Promise<HTMLElement[]>}
|
|
32
|
+
*/
|
|
33
|
+
declare function getSelectedDates(input: HTMLElement): Promise<HTMLElement[]>;
|
|
34
|
+
declare const datePickerEvent: {
|
|
35
|
+
getContainer: typeof getContainerFromInput;
|
|
36
|
+
expand: typeof expand;
|
|
37
|
+
collapse: typeof collapse;
|
|
38
|
+
pick: typeof pick;
|
|
39
|
+
clear: typeof clear;
|
|
40
|
+
getSelectedDates: typeof getSelectedDates;
|
|
41
|
+
};
|
|
42
|
+
export default datePickerEvent;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Expand the `DatePicker` calendar, if it not already expanded.
|
|
3
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
4
|
-
* @returns {Promise<void>}
|
|
5
|
-
*/
|
|
6
|
-
declare function expand(input: HTMLElement): Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* Collapse the `DatePicker` calendar, if it not already collapsed.
|
|
9
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
10
|
-
* @returns {Promise<void>}
|
|
11
|
-
*/
|
|
12
|
-
declare function collapse(input: HTMLElement): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Pick (select) the provided day in the current month/year.
|
|
15
|
-
* Notice that we programatically expand the `DatePicker` calendar before picking the date.
|
|
16
|
-
* @param {string} day - Label for the day to be picked, formatted as mm/dd/yyyy.
|
|
17
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
18
|
-
* @returns {Promise<void>}
|
|
19
|
-
*/
|
|
20
|
-
declare function pick(range: [string | null, string | null], input: HTMLElement): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Clear the selection, if there are any options selected.
|
|
23
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
24
|
-
* @returns {Promise<void>}
|
|
25
|
-
*/
|
|
26
|
-
declare function clear(input: HTMLElement): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Get options elements currently selected in the `DatePicker` calendar.
|
|
29
|
-
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
30
|
-
* @returns {Promise<HTMLElement[]>}
|
|
31
|
-
*/
|
|
32
|
-
declare function getSelectedDates(input: HTMLElement): Promise<HTMLElement[]>;
|
|
33
|
-
export declare const dateRangePickerEvent: {
|
|
34
|
-
getContainer: (input: HTMLElement) => HTMLElement;
|
|
35
|
-
expand: typeof expand;
|
|
36
|
-
collapse: typeof collapse;
|
|
37
|
-
pick: typeof pick;
|
|
38
|
-
clear: typeof clear;
|
|
39
|
-
getSelectedDates: typeof getSelectedDates;
|
|
40
|
-
};
|
|
41
|
-
export default dateRangePickerEvent;
|
|
1
|
+
/**
|
|
2
|
+
* Expand the `DatePicker` calendar, if it not already expanded.
|
|
3
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
4
|
+
* @returns {Promise<void>}
|
|
5
|
+
*/
|
|
6
|
+
declare function expand(input: HTMLElement): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Collapse the `DatePicker` calendar, if it not already collapsed.
|
|
9
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
10
|
+
* @returns {Promise<void>}
|
|
11
|
+
*/
|
|
12
|
+
declare function collapse(input: HTMLElement): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Pick (select) the provided day in the current month/year.
|
|
15
|
+
* Notice that we programatically expand the `DatePicker` calendar before picking the date.
|
|
16
|
+
* @param {string} day - Label for the day to be picked, formatted as mm/dd/yyyy.
|
|
17
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
18
|
+
* @returns {Promise<void>}
|
|
19
|
+
*/
|
|
20
|
+
declare function pick(range: [string | null, string | null], input: HTMLElement): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Clear the selection, if there are any options selected.
|
|
23
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
24
|
+
* @returns {Promise<void>}
|
|
25
|
+
*/
|
|
26
|
+
declare function clear(input: HTMLElement): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Get options elements currently selected in the `DatePicker` calendar.
|
|
29
|
+
* @param {HTMLElement} input - You can refer to this element by the label you applied to the `DatePicker`
|
|
30
|
+
* @returns {Promise<HTMLElement[]>}
|
|
31
|
+
*/
|
|
32
|
+
declare function getSelectedDates(input: HTMLElement): Promise<HTMLElement[]>;
|
|
33
|
+
export declare const dateRangePickerEvent: {
|
|
34
|
+
getContainer: (input: HTMLElement) => HTMLElement;
|
|
35
|
+
expand: typeof expand;
|
|
36
|
+
collapse: typeof collapse;
|
|
37
|
+
pick: typeof pick;
|
|
38
|
+
clear: typeof clear;
|
|
39
|
+
getSelectedDates: typeof getSelectedDates;
|
|
40
|
+
};
|
|
41
|
+
export default dateRangePickerEvent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DatePickerEvent } from './DatePickerEvent';
|
|
2
|
-
export { default as DateRangePickerEvent } from './DateRangePickerEvent';
|
|
1
|
+
export { default as DatePickerEvent } from './DatePickerEvent';
|
|
2
|
+
export { default as DateRangePickerEvent } from './DateRangePickerEvent';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const DragDropFileEvent: {
|
|
2
|
-
dragOver: (input: HTMLInputElement) => void;
|
|
3
|
-
dragLeave: (input: HTMLInputElement) => void;
|
|
4
|
-
dropFiles: (input: HTMLInputElement, files: File | File[]) => void;
|
|
5
|
-
};
|
|
6
|
-
export default DragDropFileEvent;
|
|
1
|
+
export declare const DragDropFileEvent: {
|
|
2
|
+
dragOver: (input: HTMLInputElement) => void;
|
|
3
|
+
dragLeave: (input: HTMLInputElement) => void;
|
|
4
|
+
dropFiles: (input: HTMLInputElement, files: File | File[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export default DragDropFileEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DragDropFileEvent';
|
|
1
|
+
export { default } from './DragDropFileEvent';
|