@loadsmart/loadsmart-ui 8.0.0 → 8.0.2
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-oKnUu6d3.js.map +1 -1
- package/dist/common/BackButton/BackButton.d.ts +2 -1
- package/dist/common/CloseButton/CloseButton.d.ts +3 -2
- package/dist/common/SelectionWrapper.d.ts +9 -9
- package/dist/components/Accordion/Accordion.context.d.ts +6 -6
- package/dist/components/Accordion/Accordion.d.ts +11 -11
- package/dist/components/Banner/Banner.d.ts +17 -17
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +5 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/components/Button/Button.d.ts +11 -10
- package/dist/components/Calendar/Calendar.d.ts +3 -2
- package/dist/components/Calendar/Calendar.helpers.d.ts +2 -1
- package/dist/components/Calendar/Calendar.types.d.ts +4 -4
- package/dist/components/Calendar/Date.helper.d.ts +27 -54
- package/dist/components/Calendar/DateFormat.helper.d.ts +1 -3
- package/dist/components/Calendar/Month.helper.d.ts +5 -5
- package/dist/components/Calendar/PickerModeToggle.d.ts +2 -1
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +4 -2
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +2 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +2 -3
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +2 -1
- package/dist/components/Calendar/useCalendar.d.ts +4 -9
- package/dist/components/Card/Card.d.ts +5 -5
- package/dist/components/Card/CardTitle.d.ts +5 -4
- package/dist/components/Checkbox/Checkbox.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +6 -6
- package/dist/components/DatePicker/DateRangePicker.d.ts +3 -2
- package/dist/components/DatePicker/useDatePicker.d.ts +7 -586
- package/dist/components/DatePicker/useDateRangePicker.d.ts +5 -889
- package/dist/components/Dialog/Dialog.d.ts +14 -16
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +1 -1
- package/dist/components/DragDropFile/DragDropFile.d.ts +4 -3
- package/dist/components/DragDropFile/components/DropZone.d.ts +2 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +2 -1
- package/dist/components/DragDropFile/components/FileList.d.ts +2 -1
- package/dist/components/DragDropFile/styles.d.ts +8 -9
- package/dist/components/DragDropFile/types.d.ts +4 -4
- package/dist/components/Drawer/Drawer.d.ts +7 -7
- package/dist/components/Dropdown/Dropdown.context.d.ts +2 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -5
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/components/Dropdown/DropdownMenu.d.ts +4 -3
- package/dist/components/Dropdown/DropdownTrigger.d.ts +10 -10
- package/dist/components/EmptyState/EmptyState.d.ts +3 -3
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +4 -4
- package/dist/components/Icon/Icon.d.ts +3 -2
- package/dist/components/IconFactory/IconFactory.d.ts +8 -8
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +6 -6
- package/dist/components/Label/Label.d.ts +10 -10
- package/dist/components/Layout/Box.d.ts +8 -9
- package/dist/components/Layout/Grid.d.ts +4 -5
- package/dist/components/Layout/Group.d.ts +5 -6
- package/dist/components/Layout/Sidebar.d.ts +6 -7
- package/dist/components/Layout/Stack.d.ts +7 -7
- package/dist/components/Layout/Switcher.d.ts +5 -6
- package/dist/components/Link/Link.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +8 -7
- package/dist/components/Loaders/LoadingDots.d.ts +4 -3
- package/dist/components/Loaders/Spinner.d.ts +4 -3
- package/dist/components/Modal/Modal.d.ts +4 -7
- package/dist/components/Pagination/Pagination.d.ts +2 -1
- package/dist/components/Pagination/Pagination.types.d.ts +4 -4
- package/dist/components/Pagination/PaginationItem.d.ts +2 -1
- package/dist/components/Popover/Popover.d.ts +4 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts +6 -6
- package/dist/components/Radio/Radio.d.ts +7 -7
- package/dist/components/Section/Section.d.ts +4 -4
- package/dist/components/Select/Select.context.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.fixtures.d.ts +4 -4
- package/dist/components/Select/Select.types.d.ts +14 -14
- package/dist/components/Select/SelectCreatableOption.d.ts +2 -1
- package/dist/components/Select/SelectEmpty.d.ts +2 -1
- package/dist/components/Select/SelectOption.d.ts +2 -1
- package/dist/components/Select/SelectTrigger.d.ts +1 -1
- package/dist/components/Select/useSelect.d.ts +0 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +6 -5
- package/dist/components/SideNavigation/Menu/Menu.d.ts +3 -13
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +7 -7
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +3 -3
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +7 -6
- package/dist/components/SideNavigation/Separator/Separator.d.ts +3 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +7 -22
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +5 -5
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +4 -3
- package/dist/components/Steps/Steps.d.ts +8 -8
- package/dist/components/Steps/Steps.types.d.ts +2 -2
- package/dist/components/Steps/StepsStep.d.ts +6 -5
- package/dist/components/Steps/useSteps.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +6 -6
- package/dist/components/Table/Selection.d.ts +6 -6
- package/dist/components/Table/Table.d.ts +14 -13
- package/dist/components/Table/Table.types.d.ts +5 -5
- package/dist/components/Table/TableSortHandle.d.ts +3 -2
- package/dist/components/Table/useSortBy.d.ts +3 -3
- package/dist/components/TablePagination/RowsPerPage.d.ts +2 -1
- package/dist/components/TablePagination/TablePagination.d.ts +2 -1
- package/dist/components/TablePagination/TablePagination.styles.d.ts +2 -4
- package/dist/components/TablePagination/TablePaginationActions.d.ts +3 -8
- package/dist/components/Tabs/Tabs.d.ts +10 -10
- package/dist/components/Tabs/TabsContext.d.ts +2 -1
- package/dist/components/Tag/Tag.d.ts +11 -11
- package/dist/components/Text/Text.d.ts +2 -1
- package/dist/components/TextField/TextField.d.ts +11 -10
- package/dist/components/Textarea/Textarea.d.ts +8 -8
- package/dist/components/Toast/Toast.d.ts +7 -7
- package/dist/components/ToggleGroup/Toggle.d.ts +4 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -2
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +7 -7
- package/dist/components/TopNavigation/Logo/Logo.d.ts +6 -5
- package/dist/components/TopNavigation/Menu/Menu.d.ts +7 -7
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +12 -12
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +7 -7
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +8 -6
- package/dist/components/TopNavigation/TopNavigation.d.ts +5 -5
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -1
- package/dist/hooks/useDidMount/useDidMount.d.ts +1 -1
- package/dist/hooks/useFingerprint/useFingerprint.d.ts +0 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +7 -8
- package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +1 -1
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +3 -3
- package/dist/hooks/useSelectable/SelectableStrategy.d.ts +4 -4
- package/dist/hooks/useSelectable/useSelectable.types.d.ts +2 -2
- package/dist/index.js +316 -257
- package/dist/index.js.map +1 -1
- package/dist/{miranda-compatibility.theme-kYNEZ7mW.js → miranda-compatibility.theme-CIu9fa89.js} +2 -2
- package/dist/miranda-compatibility.theme-CIu9fa89.js.map +1 -0
- package/dist/{prop-K2Z3EsyG.js → prop-Fs2axl9W.js} +12 -18
- package/dist/prop-Fs2axl9W.js.map +1 -0
- package/dist/styles/activatable.d.ts +2 -3
- package/dist/styles/disableable.d.ts +3 -3
- package/dist/styles/ellipsizable.d.ts +1 -2
- package/dist/styles/focusable.d.ts +3 -3
- package/dist/styles/font.d.ts +0 -1
- package/dist/styles/hidden.d.ts +1 -2
- package/dist/styles/hoverable.d.ts +3 -3
- package/dist/styles/transition.d.ts +0 -1
- package/dist/styles/typography.d.ts +8 -8
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +7 -12
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +7 -12
- package/dist/testing/SelectEvent/SelectEvent.d.ts +11 -19
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +2 -2
- package/dist/testing/index.js +7 -9
- package/dist/testing/index.js.map +1 -1
- package/dist/tests/generator.d.ts +2 -2
- package/dist/tests/renderer.d.ts +6 -5
- package/dist/theming/index.d.ts +3 -3
- package/dist/theming/index.js +2 -2
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/theming.helpers.d.ts +2 -2
- package/dist/toArray-BJJzFRD1.js +13 -0
- package/dist/toArray-BJJzFRD1.js.map +1 -0
- package/dist/tools/conditional.d.ts +3 -3
- package/dist/tools/index.js +1 -1
- package/dist/tools/prop.d.ts +1 -1
- package/dist/utils/toolset/getID.d.ts +0 -6
- package/dist/utils/toolset/highlightMatch.d.ts +5 -6
- package/dist/utils/toolset/keyboard.d.ts +3 -4
- package/dist/utils/toolset/toArray.d.ts +7 -1
- package/dist/utils/types/ColorScheme.d.ts +1 -2
- package/package.json +65 -66
- package/dist/components/Accordion/Accordion.stories.d.ts +0 -8
- package/dist/components/Accordion/Accordion.test.d.ts +0 -1
- package/dist/components/Banner/Banner.stories.d.ts +0 -107
- package/dist/components/Banner/Banner.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -5
- package/dist/components/Button/Button.stories.d.ts +0 -33
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -21
- package/dist/components/Calendar/Calendar.test.d.ts +0 -1
- package/dist/components/Calendar/Date.helper.test.d.ts +0 -1
- package/dist/components/Calendar/DateFormat.helper.test.d.ts +0 -1
- package/dist/components/Calendar/Month.helper.test.d.ts +0 -1
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +0 -1
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +0 -1
- package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -8
- package/dist/components/Card/Card.test.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -8
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -22
- package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +0 -21
- package/dist/components/DatePicker/DateRangePicker.test.d.ts +0 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -67
- package/dist/components/Dialog/Dialog.test.d.ts +0 -1
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +0 -33
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +0 -1
- package/dist/components/DragDropFile/components/FileList.test.d.ts +0 -1
- package/dist/components/Drawer/Drawer.stories.d.ts +0 -6
- package/dist/components/Drawer/Drawer.test.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.stories.d.ts +0 -12
- package/dist/components/Dropdown/Dropdown.test.d.ts +0 -1
- package/dist/components/Dropdown/useDropdown.test.d.ts +0 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -32
- package/dist/components/EmptyState/EmptyState.test.d.ts +0 -1
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +0 -13
- package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +0 -1
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +0 -5
- package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +0 -1
- package/dist/components/IconFactory/IconFactory.stories.d.ts +0 -6
- package/dist/components/IconFactory/IconFactory.test.d.ts +0 -1
- package/dist/components/Label/Label.stories.d.ts +0 -14
- package/dist/components/Label/Label.test.d.ts +0 -1
- package/dist/components/Layout/Layout.stories.d.ts +0 -146
- package/dist/components/Link/Link.stories.d.ts +0 -5
- package/dist/components/Link/Link.test.d.ts +0 -1
- package/dist/components/Loaders/LoadingBar.stories.d.ts +0 -5
- package/dist/components/Loaders/LoadingBar.test.d.ts +0 -1
- package/dist/components/Loaders/LoadingDots.stories.d.ts +0 -6
- package/dist/components/Loaders/LoadingDots.test.d.ts +0 -1
- package/dist/components/Loaders/Spinner.stories.d.ts +0 -5
- package/dist/components/Loaders/Spinner.test.d.ts +0 -1
- package/dist/components/Modal/Modal.stories.d.ts +0 -30
- package/dist/components/Modal/Modal.test.d.ts +0 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -5
- package/dist/components/Pagination/Pagination.test.d.ts +0 -1
- package/dist/components/Pagination/usePagination.test.d.ts +0 -1
- package/dist/components/Popover/Popover.stories.d.ts +0 -5
- package/dist/components/Popover/Popover.test.d.ts +0 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +0 -12
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/components/Radio/Radio.stories.d.ts +0 -8
- package/dist/components/Radio/Radio.test.d.ts +0 -1
- package/dist/components/Section/Section.test.d.ts +0 -1
- package/dist/components/Section/Sections.stories.d.ts +0 -5
- package/dist/components/Select/Select.stories.d.ts +0 -19
- package/dist/components/Select/Select.test.d.ts +0 -1
- package/dist/components/Select/SelectEmpty.test.d.ts +0 -1
- package/dist/components/Select/SelectOption.test.d.ts +0 -1
- package/dist/components/Select/useSelect.helpers.test.d.ts +0 -1
- package/dist/components/Select/useSelect.test.d.ts +0 -1
- package/dist/components/SideNavigation/Logo/Logo.test.d.ts +0 -1
- package/dist/components/SideNavigation/Menu/Menu.test.d.ts +0 -1
- package/dist/components/SideNavigation/Separator/Separator.test.d.ts +0 -1
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +0 -5
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +0 -1
- package/dist/components/Steps/Steps.stories.d.ts +0 -5
- package/dist/components/Steps/Steps.test.d.ts +0 -1
- package/dist/components/Steps/useStep.test.d.ts +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/components/Switch/Switch.test.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +0 -61
- package/dist/components/Table/Table.test.d.ts +0 -1
- package/dist/components/Table/useSortBy.test.d.ts +0 -1
- package/dist/components/TablePagination/TablePagination.stories.d.ts +0 -5
- package/dist/components/TablePagination/TablePagination.test.d.ts +0 -1
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -23
- package/dist/components/Tabs/Tabs.test.d.ts +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -63
- package/dist/components/Tag/Tag.test.d.ts +0 -1
- package/dist/components/Text/Text.stories.d.ts +0 -7
- package/dist/components/Text/Text.test.d.ts +0 -1
- package/dist/components/TextField/TextField.stories.d.ts +0 -11
- package/dist/components/TextField/TextField.test.d.ts +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -11
- package/dist/components/Textarea/Textarea.test.d.ts +0 -1
- package/dist/components/Toast/Toast.stories.d.ts +0 -12
- package/dist/components/Toast/Toast.test.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.test.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -6
- package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
- package/dist/components/TopNavigation/Logo/Logo.test.d.ts +0 -1
- package/dist/components/TopNavigation/Menu/Menu.test.d.ts +0 -1
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +0 -5
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -11
- package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +0 -1
- package/dist/hooks/useDidMount/useDidMount.test.d.ts +0 -1
- package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +0 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +0 -7
- package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +0 -1
- package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +0 -1
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +0 -1
- package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +0 -1
- package/dist/hooks/useSelectable/useSelectable.test.d.ts +0 -1
- package/dist/miranda-compatibility.theme-kYNEZ7mW.js.map +0 -1
- package/dist/prop-K2Z3EsyG.js.map +0 -1
- package/dist/styles/font.test.d.ts +0 -1
- package/dist/styles/typography.test.d.ts +0 -1
- package/dist/testing/SelectEvent/SelectEvent.test.d.ts +0 -1
- package/dist/toArray-Dxb1kUxx.js +0 -14
- package/dist/toArray-Dxb1kUxx.js.map +0 -1
- package/dist/tools/conditional.test.d.ts +0 -1
- package/dist/tools/prop.test.d.ts +0 -1
- package/dist/utils/toolset/flatten.d.ts +0 -2
- package/dist/utils/toolset/formatBytes.test.d.ts +0 -1
- package/dist/utils/toolset/getID.test.d.ts +0 -1
- package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +0 -1
- package/dist/utils/toolset/highlightMatch.test.d.ts +0 -1
- package/dist/utils/toolset/interleave.test.d.ts +0 -1
- package/dist/utils/toolset/isThenable.d.ts +0 -5
- package/dist/utils/toolset/isThenable.test.d.ts +0 -1
|
@@ -15,8 +15,8 @@ export type When<P> = {
|
|
|
15
15
|
* 'prop-d': Boolean // checks `Boolean(Boolean(props['prop-d']))`
|
|
16
16
|
* })
|
|
17
17
|
* ```
|
|
18
|
-
* @param
|
|
19
|
-
* @returns
|
|
18
|
+
* @param conditions
|
|
19
|
+
* @returns Returns function that consumes component props.
|
|
20
20
|
*/
|
|
21
21
|
export declare function whenProps<P>(conditions: When<F.Narrow<P>> | When<F.Narrow<P>>[]): (props: P) => boolean;
|
|
22
22
|
type ConditionObject<P> = Record<string, string | number | boolean | ((props: P) => boolean) | undefined>;
|
|
@@ -33,7 +33,7 @@ type Condition<P> = number | string | ConditionObject<P> | ((props: P) => string
|
|
|
33
33
|
* }, (props) => props.className)
|
|
34
34
|
* ```
|
|
35
35
|
* @param conditions
|
|
36
|
-
* @returns
|
|
36
|
+
* @returns Returns function that consumes component props.
|
|
37
37
|
*/
|
|
38
38
|
declare function conditional<P>(...conditions: Condition<P>[]): (props: P) => string;
|
|
39
39
|
export default conditional;
|
package/dist/tools/index.js
CHANGED
package/dist/tools/prop.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare function compare(...args: any[]): unknown;
|
|
|
9
9
|
* @param name a valid property name from the object
|
|
10
10
|
* @param defaultValue a fallback value in case the property value is invalid
|
|
11
11
|
* @param comparatorFn a function to be used to decide between value or defaultValue
|
|
12
|
-
* @returns
|
|
12
|
+
* @returns Returns function that consumes component props.
|
|
13
13
|
*/
|
|
14
14
|
declare function prop<P, K extends keyof P = keyof P>(name: K, defaultValue?: NonNullable<P[K]>, comparatorFn?: typeof compare): (props: P) => P[K];
|
|
15
15
|
export default prop;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* A function that wraps a match into `mark` element to be highlighted.
|
|
3
|
-
* @
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
-
* @param {string} - match to be found
|
|
7
|
-
* @returns {ReactNode} - an element with marked match
|
|
4
|
+
* @param label to be split
|
|
5
|
+
* @param match to be found
|
|
6
|
+
* @returns an element with marked match
|
|
8
7
|
*/
|
|
9
|
-
export default function highlightMatch(str
|
|
8
|
+
export default function highlightMatch(str?: string, match?: string): React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
declare const SUPPORTED_KEYS: {
|
|
3
3
|
ALT: string;
|
|
4
4
|
ARROW_DOWN: string;
|
|
@@ -17,8 +17,7 @@ declare const SUPPORTED_KEYS: {
|
|
|
17
17
|
MINUS: string;
|
|
18
18
|
};
|
|
19
19
|
export type SupportedKey = keyof typeof SUPPORTED_KEYS;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
is(otherKeys: SupportedKey | SupportedKey[]): boolean;
|
|
20
|
+
declare function KeyboardKey(event: KeyboardEvent | React.KeyboardEvent): {
|
|
21
|
+
is: (otherKeys: SupportedKey | SupportedKey[]) => boolean;
|
|
23
22
|
};
|
|
24
23
|
export default KeyboardKey;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Produces array for non-array value.
|
|
3
|
+
* @param value - Value to be converted/returned.
|
|
4
|
+
* @return Returns `value` itself if it is an array or
|
|
5
|
+
* an array containing the provided `value`.
|
|
6
|
+
*/
|
|
7
|
+
declare const toArray: <T>(value: T | T[] | readonly T[] | undefined | null) => T[];
|
|
2
8
|
export default toArray;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
type ColorScheme = 'dark' | 'light';
|
|
2
|
-
export default ColorScheme;
|
|
1
|
+
export type ColorScheme = 'dark' | 'light';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/loadsmart-ui",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Miranda UI, a React UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,90 +19,89 @@
|
|
|
19
19
|
"release:ci": "semantic-release",
|
|
20
20
|
"build:ci": "yarn build",
|
|
21
21
|
"test:ci": "yarn test --ci --coverage --reporters=default --reporters=jest-junit -w 4",
|
|
22
|
-
"check:lint:ci": "yarn lint",
|
|
22
|
+
"check:lint:ci": "yarn lint --quiet",
|
|
23
23
|
"docs:build:ci": "yarn docs:build --disable-telemetry",
|
|
24
24
|
"docs:deploy:ci": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
|
|
25
|
-
"
|
|
25
|
+
"_postinstall": "node .husky/install.js",
|
|
26
|
+
"prepack": "pinst --disable",
|
|
27
|
+
"postpack": "pinst --enable",
|
|
28
|
+
"format": "prettier . --write",
|
|
29
|
+
"check:format:ci": "prettier . --check",
|
|
30
|
+
"check:type": "tsc -b",
|
|
31
|
+
"check:type:ci": "yarn check:type"
|
|
26
32
|
},
|
|
27
33
|
"storybook-deployer": {
|
|
28
34
|
"commitMessage": "chore(docs): deploy storybook to GitHub pages [skip ci]"
|
|
29
35
|
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"src/**/*.{js,ts,jsx,tsx,json}": [
|
|
32
|
-
"eslint --fix",
|
|
33
|
-
"prettier --write"
|
|
34
|
-
],
|
|
35
|
-
"src/{common,components,styles}/**/*.{js,ts,jsx,tsx}": [
|
|
36
|
-
"eslint --fix",
|
|
37
|
-
"prettier --write"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
36
|
"jest-junit": {
|
|
41
37
|
"addFileAttribute": "true"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
44
|
-
"@commitlint/cli": "^
|
|
45
|
-
"@commitlint/config-conventional": "^
|
|
46
|
-
"@loadsmart/miranda-tokens": "^4.
|
|
47
|
-
"@
|
|
48
|
-
"@storybook/addon-
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/addon-
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/react
|
|
53
|
-
"@storybook/
|
|
54
|
-
"@
|
|
55
|
-
"@swc/
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@testing-library/
|
|
59
|
-
"@testing-library/
|
|
40
|
+
"@commitlint/cli": "^20.5.0",
|
|
41
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
42
|
+
"@loadsmart/miranda-tokens": "^4.25.7",
|
|
43
|
+
"@rolldown/plugin-babel": "^0.2.2",
|
|
44
|
+
"@storybook/addon-a11y": "^8.6.18",
|
|
45
|
+
"@storybook/addon-docs": "^8.6.18",
|
|
46
|
+
"@storybook/addon-essentials": "^8.6.18",
|
|
47
|
+
"@storybook/addon-links": "^8.6.18",
|
|
48
|
+
"@storybook/react": "^8.6.18",
|
|
49
|
+
"@storybook/react-vite": "^8.6.18",
|
|
50
|
+
"@storybook/theming": "^8.6.18",
|
|
51
|
+
"@swc/core": "^1.15.21",
|
|
52
|
+
"@swc/jest": "^0.2.39",
|
|
53
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
54
|
+
"@testing-library/dom": "^10.4.1",
|
|
55
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
56
|
+
"@testing-library/react": "^16.3.2",
|
|
60
57
|
"@testing-library/react-hooks": "^8.0.1",
|
|
61
58
|
"@testing-library/user-event": "^13.5.0",
|
|
62
|
-
"@types/chance": "^1.1.
|
|
63
|
-
"@types/jest": "^
|
|
64
|
-
"@types/node": "^
|
|
65
|
-
"@types/react": "^18.3.
|
|
66
|
-
"@types/react-dom": "^18.3.
|
|
67
|
-
"@types/styled-components": "^5.1.
|
|
68
|
-
"@
|
|
69
|
-
"@typescript-eslint/parser": "^4.22.1",
|
|
70
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
59
|
+
"@types/chance": "^1.1.7",
|
|
60
|
+
"@types/jest": "^30.0.0",
|
|
61
|
+
"@types/node": "^24.12.0",
|
|
62
|
+
"@types/react": "^18.3.28",
|
|
63
|
+
"@types/react-dom": "^18.3.7",
|
|
64
|
+
"@types/styled-components": "^5.1.36",
|
|
65
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
71
66
|
"babel-plugin-styled-components": "^2.1.4",
|
|
72
|
-
"chance": "^1.1.
|
|
73
|
-
"commitizen": "^4.
|
|
67
|
+
"chance": "^1.1.13",
|
|
68
|
+
"commitizen": "^4.3.1",
|
|
74
69
|
"cz-conventional-changelog": "^3.3.0",
|
|
75
|
-
"eslint": "^
|
|
76
|
-
"eslint-config-prettier": "^10.1.
|
|
77
|
-
"eslint-plugin-jest
|
|
78
|
-
"eslint-plugin-
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
82
|
-
"eslint-plugin-
|
|
83
|
-
"eslint-plugin-
|
|
70
|
+
"eslint": "^9.39.4",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"eslint-plugin-jest": "^29.15.1",
|
|
73
|
+
"eslint-plugin-jest-dom": "^5.5.0",
|
|
74
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
76
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
77
|
+
"eslint-plugin-react": "^7.37.5",
|
|
78
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
79
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
80
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
84
81
|
"gh-pages": "^6.3.0",
|
|
85
82
|
"husky": "^9.1.7",
|
|
86
|
-
"jest": "^
|
|
87
|
-
"jest-environment-jsdom": "^
|
|
83
|
+
"jest": "^30.3.0",
|
|
84
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
88
85
|
"jest-junit": "^16.0.0",
|
|
89
86
|
"jest-transformer-svg": "^2.1.0",
|
|
90
|
-
"lint-staged": "^
|
|
91
|
-
"nanoid": "^5.1.
|
|
92
|
-
"
|
|
87
|
+
"lint-staged": "^16.4.0",
|
|
88
|
+
"nanoid": "^5.1.7",
|
|
89
|
+
"pinst": "^3.0.0",
|
|
90
|
+
"prettier": "^3.8.1",
|
|
93
91
|
"react": "^18.3.1",
|
|
94
|
-
"react-docgen-typescript": "^2.
|
|
92
|
+
"react-docgen-typescript": "^2.4.0",
|
|
95
93
|
"react-dom": "^18.3.1",
|
|
96
|
-
"react-is": "^18.
|
|
97
|
-
"semantic-release": "^
|
|
98
|
-
"storybook": "^8.6.
|
|
94
|
+
"react-is": "^18.3.1",
|
|
95
|
+
"semantic-release": "^25.0.3",
|
|
96
|
+
"storybook": "^8.6.18",
|
|
99
97
|
"styled-components": "^5.3.11",
|
|
100
|
-
"tailwindcss": "^4.
|
|
98
|
+
"tailwindcss": "^4.2.2",
|
|
101
99
|
"ts-toolbelt": "^9.6.0",
|
|
102
|
-
"typescript": "^
|
|
103
|
-
"
|
|
104
|
-
"vite
|
|
105
|
-
"vite-plugin-
|
|
100
|
+
"typescript": "^6.0.2",
|
|
101
|
+
"typescript-eslint": "^8.57.2",
|
|
102
|
+
"vite": "^7.3.1",
|
|
103
|
+
"vite-plugin-dts": "^4.5.4",
|
|
104
|
+
"vite-plugin-svgr": "^4.5.0"
|
|
106
105
|
},
|
|
107
106
|
"peerDependencies": {
|
|
108
107
|
"@loadsmart/miranda-tokens": ">=1.3.0",
|
|
@@ -112,13 +111,13 @@
|
|
|
112
111
|
"styled-components": ">=5.3.0"
|
|
113
112
|
},
|
|
114
113
|
"dependencies": {
|
|
115
|
-
"@floating-ui/react-dom": "^2.1.
|
|
114
|
+
"@floating-ui/react-dom": "^2.1.8",
|
|
116
115
|
"@loadsmart/utils-function": "0.3.1",
|
|
117
116
|
"@loadsmart/utils-object": "0.3.1",
|
|
118
117
|
"@loadsmart/utils-string": "0.3.1",
|
|
119
118
|
"@types/lodash-es": "^4.17.12",
|
|
120
119
|
"clsx": "^2.1.1",
|
|
121
|
-
"lodash-es": "^4.17.
|
|
120
|
+
"lodash-es": "^4.17.23"
|
|
122
121
|
},
|
|
123
122
|
"repository": {
|
|
124
123
|
"type": "git",
|
|
@@ -137,5 +136,5 @@
|
|
|
137
136
|
"@types/react": "18.3.20",
|
|
138
137
|
"@types/react-dom": "18.3.6"
|
|
139
138
|
},
|
|
140
|
-
"packageManager": "yarn@
|
|
139
|
+
"packageManager": "yarn@4.13.0+sha512.5c20ba010c99815433e5c8453112165e673f1c7948d8d2b267f4b5e52097538658388ebc9f9580656d9b75c5cc996f990f611f99304a2197d4c56d21eea370e7"
|
|
141
140
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
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/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BreadcrumbsProps>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
3
|
-
import { BackButtonProps } from '../../common/BackButton';
|
|
4
|
-
import { ButtonProps } from './Button';
|
|
5
|
-
import { CloseButtonProps } from '../../common/CloseButton';
|
|
6
|
-
declare const _default: Meta;
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare function Playground(args: ButtonProps): JSX.Element;
|
|
9
|
-
export declare namespace Playground {
|
|
10
|
-
var args: {
|
|
11
|
-
scale: string;
|
|
12
|
-
variant: string;
|
|
13
|
-
leading: React.JSX.Element;
|
|
14
|
-
trailing: React.JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare function Base(args: ButtonProps): JSX.Element;
|
|
18
|
-
export declare function Selector(args: ButtonProps): JSX.Element;
|
|
19
|
-
export declare namespace Selector {
|
|
20
|
-
var args: {
|
|
21
|
-
scale: string;
|
|
22
|
-
variant: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export declare function Icon(args: ButtonProps): JSX.Element;
|
|
26
|
-
export declare namespace Icon {
|
|
27
|
-
var args: {
|
|
28
|
-
scale: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare function Back(args: BackButtonProps): JSX.Element;
|
|
32
|
-
export declare function Close(args: CloseButtonProps): JSX.Element;
|
|
33
|
-
export declare function Loading(args: ButtonProps): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { CalendarDate } from './Date.helper';
|
|
3
|
-
import { CalendarProps } from './Calendar.types';
|
|
4
|
-
declare const _default: Meta;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CalendarProps>;
|
|
7
|
-
export declare function Selection(): JSX.Element;
|
|
8
|
-
declare function isWeekend(date: CalendarDate): boolean;
|
|
9
|
-
export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
|
|
10
|
-
export declare namespace CalendarConstraints {
|
|
11
|
-
var args: {
|
|
12
|
-
constraints: ((string | null)[] | typeof isWeekend)[];
|
|
13
|
-
};
|
|
14
|
-
var parameters: {
|
|
15
|
-
docs: {
|
|
16
|
-
description: {
|
|
17
|
-
story: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatter: import('./DateFormat.helper').DateFormat;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StoryFn, Meta } from '@storybook/react';
|
|
2
|
-
import { CardProps } from './Card';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: StoryFn<CardProps>;
|
|
6
|
-
export declare const Default: StoryFn<CardProps>;
|
|
7
|
-
export declare const TitleOnly: StoryFn<CardProps>;
|
|
8
|
-
export declare const Flagged: StoryFn<CardProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps } from './Checkbox';
|
|
2
|
-
import { Meta } from '@storybook/react';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: CheckboxProps): JSX.Element;
|
|
6
|
-
export declare namespace Playground {
|
|
7
|
-
var args: {};
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { StoryFn, Meta } from '@storybook/react';
|
|
2
|
-
import { DatePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: StoryFn<DatePickerProps>;
|
|
6
|
-
export declare const WithValue: StoryFn<DatePickerProps>;
|
|
7
|
-
export declare function DatePickerConstraints(args: DatePickerProps): JSX.Element;
|
|
8
|
-
export declare namespace DatePickerConstraints {
|
|
9
|
-
var args: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
constraints: (string | null)[][];
|
|
13
|
-
value: string;
|
|
14
|
-
};
|
|
15
|
-
var parameters: {
|
|
16
|
-
docs: {
|
|
17
|
-
description: {
|
|
18
|
-
story: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { StoryFn, Meta } from '@storybook/react';
|
|
2
|
-
import { DateRangePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Playground: StoryFn<DateRangePickerProps>;
|
|
6
|
-
export declare const WithValue: StoryFn<DateRangePickerProps>;
|
|
7
|
-
export declare function DateRangePickerConstraints(args: DateRangePickerProps): JSX.Element;
|
|
8
|
-
export declare namespace DateRangePickerConstraints {
|
|
9
|
-
var args: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
constraints: (string | null)[][];
|
|
13
|
-
};
|
|
14
|
-
var parameters: {
|
|
15
|
-
docs: {
|
|
16
|
-
description: {
|
|
17
|
-
story: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { DialogProps } from './Dialog';
|
|
3
|
-
declare const _default: Meta;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function WithoutHeader(args: DialogProps): JSX.Element;
|
|
6
|
-
export declare namespace WithoutHeader {
|
|
7
|
-
var args: {
|
|
8
|
-
scale: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare function WithHeader(args: DialogProps): JSX.Element;
|
|
13
|
-
export declare namespace WithHeader {
|
|
14
|
-
var args: {
|
|
15
|
-
scale: string;
|
|
16
|
-
open: boolean;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare function WithHeaderAndBody(args: DialogProps): JSX.Element;
|
|
20
|
-
export declare namespace WithHeaderAndBody {
|
|
21
|
-
var args: {
|
|
22
|
-
scale: string;
|
|
23
|
-
open: boolean;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export declare function WithCloseButton(args: DialogProps): JSX.Element;
|
|
27
|
-
export declare namespace WithCloseButton {
|
|
28
|
-
var args: {
|
|
29
|
-
scale: string;
|
|
30
|
-
open: boolean;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export declare function WithActionConfirm(args: DialogProps): JSX.Element;
|
|
34
|
-
export declare namespace WithActionConfirm {
|
|
35
|
-
var args: {
|
|
36
|
-
scale: string;
|
|
37
|
-
open: boolean;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare function WithCustomActionConfirmLabel(args: DialogProps): JSX.Element;
|
|
41
|
-
export declare namespace WithCustomActionConfirmLabel {
|
|
42
|
-
var args: {
|
|
43
|
-
scale: string;
|
|
44
|
-
open: boolean;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export declare function WithCustomActionCancelLabel(args: DialogProps): JSX.Element;
|
|
48
|
-
export declare namespace WithCustomActionCancelLabel {
|
|
49
|
-
var args: {
|
|
50
|
-
scale: string;
|
|
51
|
-
open: boolean;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export declare function WithActionConfirmAndCancel(args: DialogProps): JSX.Element;
|
|
55
|
-
export declare namespace WithActionConfirmAndCancel {
|
|
56
|
-
var args: {
|
|
57
|
-
scale: string;
|
|
58
|
-
open: boolean;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export declare function WithInlineActions(args: DialogProps): JSX.Element;
|
|
62
|
-
export declare namespace WithInlineActions {
|
|
63
|
-
var args: {
|
|
64
|
-
scale: string;
|
|
65
|
-
open: boolean;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|