@loadsmart/loadsmart-ui 7.3.3 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DragDropFile.context-D-EBrXnw.js +2 -0
- package/dist/DragDropFile.context-D-EBrXnw.js.map +1 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs +29 -0
- package/dist/DragDropFile.context-jVTIKfj5.mjs.map +1 -0
- package/dist/addons/Theme/register.d.ts +1 -0
- package/dist/common/BackButton/BackButton.d.ts +4 -5
- package/dist/common/BackButton/index.d.ts +2 -2
- package/dist/common/CloseButton/CloseButton.d.ts +6 -7
- package/dist/common/CloseButton/index.d.ts +2 -2
- package/dist/common/SelectionWrapper.d.ts +14 -14
- package/dist/components/Accordion/Accordion.context.d.ts +10 -10
- package/dist/components/Accordion/Accordion.d.ts +19 -19
- package/dist/components/Accordion/Accordion.stories.d.ts +8 -8
- package/dist/components/Accordion/Accordion.test.d.ts +1 -1
- package/dist/components/Accordion/index.d.ts +2 -2
- package/dist/components/Banner/Banner.d.ts +25 -25
- package/dist/components/Banner/Banner.stories.d.ts +107 -106
- package/dist/components/Banner/Banner.test.d.ts +1 -1
- package/dist/components/Banner/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadbrumbs.test.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +5 -4
- package/dist/components/Breadcrumbs/index.d.ts +3 -3
- package/dist/components/Button/Button.d.ts +21 -22
- package/dist/components/Button/Button.stories.d.ts +33 -32
- package/dist/components/Button/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +9 -10
- package/dist/components/Calendar/Calendar.helpers.d.ts +2 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +21 -21
- package/dist/components/Calendar/Calendar.test.d.ts +1 -1
- package/dist/components/Calendar/Calendar.types.d.ts +63 -63
- package/dist/components/Calendar/Date.helper.d.ts +214 -214
- package/dist/components/Calendar/Date.helper.test.d.ts +1 -1
- package/dist/components/Calendar/DateFormat.helper.d.ts +35 -35
- package/dist/components/Calendar/DateFormat.helper.test.d.ts +1 -1
- package/dist/components/Calendar/Month.helper.d.ts +58 -58
- package/dist/components/Calendar/Month.helper.test.d.ts +1 -1
- package/dist/components/Calendar/PickerModeToggle.d.ts +5 -6
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +9 -10
- package/dist/components/Calendar/Pickers/DayPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +3 -4
- package/dist/components/Calendar/Pickers/MonthPicker.test.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +4 -5
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +3 -4
- package/dist/components/Calendar/Pickers/YearPicker.test.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +9 -9
- package/dist/components/Calendar/useCalendar.d.ts +19 -19
- package/dist/components/Calendar/usePickerMode.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +16 -16
- package/dist/components/Card/Card.stories.d.ts +8 -8
- package/dist/components/Card/Card.test.d.ts +1 -1
- package/dist/components/Card/CardTitle.d.ts +8 -8
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +13 -13
- package/dist/components/DatePicker/DatePicker.stories.d.ts +22 -23
- package/dist/components/DatePicker/DatePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +27 -27
- package/dist/components/DatePicker/DateRangePicker.d.ts +4 -5
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +21 -22
- package/dist/components/DatePicker/DateRangePicker.test.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -3
- package/dist/components/DatePicker/useDatePicker.d.ts +604 -591
- package/dist/components/DatePicker/useDateRangePicker.d.ts +905 -885
- package/dist/components/Dialog/Dialog.d.ts +37 -37
- package/dist/components/Dialog/Dialog.stories.d.ts +67 -67
- package/dist/components/Dialog/Dialog.test.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +4 -4
- package/dist/components/Dialog/useDialog.d.ts +12 -12
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +5 -5
- package/dist/components/DragDropFile/DragDropFile.d.ts +7 -8
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +33 -33
- package/dist/components/DragDropFile/components/DropZone.d.ts +3 -4
- package/dist/components/DragDropFile/components/DropZone.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.d.ts +3 -4
- package/dist/components/DragDropFile/components/FileList.test.d.ts +1 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +7 -7
- package/dist/components/DragDropFile/index.d.ts +3 -3
- package/dist/components/DragDropFile/mocks.d.ts +9 -9
- package/dist/components/DragDropFile/styles.d.ts +11 -11
- package/dist/components/DragDropFile/types.d.ts +71 -71
- package/dist/components/Drawer/Drawer.d.ts +27 -28
- package/dist/components/Drawer/Drawer.stories.d.ts +6 -6
- package/dist/components/Drawer/Drawer.test.d.ts +1 -1
- package/dist/components/Drawer/index.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.context.d.ts +3 -4
- package/dist/components/Dropdown/Dropdown.d.ts +47 -47
- package/dist/components/Dropdown/Dropdown.fixtures.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.stories.d.ts +12 -12
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +49 -49
- package/dist/components/Dropdown/DropdownMenu.d.ts +8 -8
- package/dist/components/Dropdown/DropdownTrigger.d.ts +21 -22
- package/dist/components/Dropdown/index.d.ts +6 -6
- package/dist/components/Dropdown/useDropdown.d.ts +14 -14
- package/dist/components/Dropdown/useDropdown.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.mocks.d.ts +7 -7
- package/dist/components/EmptyState/EmptyState.stories.d.ts +32 -32
- package/dist/components/EmptyState/EmptyState.test.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +22 -22
- package/dist/components/EmptyState/EmptyStateWithIcon.d.ts +4 -4
- package/dist/components/EmptyState/EmptyStateWithIllustration.d.ts +4 -4
- package/dist/components/EmptyState/Illustration.d.ts +4 -4
- package/dist/components/EmptyState/index.d.ts +3 -3
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -5
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +13 -13
- package/dist/components/ErrorMessage/ErrorMessage.test.d.ts +1 -1
- package/dist/components/ErrorMessage/index.d.ts +2 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +7 -7
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +5 -5
- package/dist/components/HighlightMatch/HighlightMatch.test.d.ts +1 -1
- package/dist/components/HighlightMatch/index.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts +27 -28
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +17 -17
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +10 -10
- package/dist/components/IconFactory/IconFactory.stories.d.ts +6 -6
- package/dist/components/IconFactory/IconFactory.test.d.ts +1 -1
- package/dist/components/IconFactory/index.d.ts +2 -2
- package/dist/components/Label/Label.d.ts +17 -18
- package/dist/components/Label/Label.stories.d.ts +14 -14
- package/dist/components/Label/Label.test.d.ts +1 -1
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Layout/Box.d.ts +15 -15
- package/dist/components/Layout/Grid.d.ts +11 -11
- package/dist/components/Layout/Group.d.ts +13 -14
- package/dist/components/Layout/Layout.d.ts +16 -16
- package/dist/components/Layout/Layout.stories.d.ts +146 -146
- package/dist/components/Layout/Layout.types.d.ts +3 -3
- package/dist/components/Layout/Layout.utils.d.ts +3 -3
- package/dist/components/Layout/Sidebar.d.ts +13 -13
- package/dist/components/Layout/Stack.d.ts +18 -19
- package/dist/components/Layout/Switcher.d.ts +12 -12
- package/dist/components/Layout/index.d.ts +7 -7
- package/dist/components/Link/Link.d.ts +8 -9
- package/dist/components/Link/Link.stories.d.ts +5 -5
- package/dist/components/Link/Link.test.d.ts +1 -1
- package/dist/components/Link/index.d.ts +3 -3
- package/dist/components/Link/useSafeLink.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +13 -13
- package/dist/components/Loaders/LoadingBar.stories.d.ts +5 -5
- package/dist/components/Loaders/LoadingBar.test.d.ts +1 -1
- package/dist/components/Loaders/LoadingDots.d.ts +5 -6
- package/dist/components/Loaders/LoadingDots.stories.d.ts +6 -6
- package/dist/components/Loaders/LoadingDots.test.d.ts +1 -1
- package/dist/components/Loaders/Spinner.d.ts +5 -6
- package/dist/components/Loaders/Spinner.stories.d.ts +5 -5
- package/dist/components/Loaders/Spinner.test.d.ts +1 -1
- package/dist/components/Loaders/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +22 -22
- package/dist/components/Modal/Modal.stories.d.ts +30 -30
- package/dist/components/Modal/Modal.test.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.constants.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts +3 -4
- package/dist/components/Pagination/Pagination.helper.d.ts +15 -15
- package/dist/components/Pagination/Pagination.stories.d.ts +5 -5
- package/dist/components/Pagination/Pagination.test.d.ts +1 -1
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/PaginationItem.d.ts +3 -4
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Pagination/usePagination.d.ts +3 -3
- package/dist/components/Pagination/usePagination.test.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -11
- package/dist/components/Popover/Popover.stories.d.ts +5 -5
- package/dist/components/Popover/Popover.test.d.ts +1 -1
- package/dist/components/Popover/Popover.types.d.ts +31 -31
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +9 -9
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +12 -12
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +10 -10
- package/dist/components/Radio/Radio.stories.d.ts +8 -8
- package/dist/components/Radio/Radio.test.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Section/Section.d.ts +12 -12
- package/dist/components/Section/Section.test.d.ts +1 -1
- package/dist/components/Section/Sections.stories.d.ts +5 -5
- package/dist/components/Section/index.d.ts +2 -2
- package/dist/components/Select/Select.constants.d.ts +2 -2
- package/dist/components/Select/Select.context.d.ts +5 -6
- package/dist/components/Select/Select.d.ts +13 -13
- package/dist/components/Select/Select.fixtures.d.ts +37 -37
- package/dist/components/Select/Select.stories.d.ts +19 -19
- package/dist/components/Select/Select.test.d.ts +1 -1
- package/dist/components/Select/Select.types.d.ts +122 -122
- package/dist/components/Select/SelectCreatableOption.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.d.ts +3 -4
- package/dist/components/Select/SelectEmpty.test.d.ts +1 -1
- package/dist/components/Select/SelectOption.d.ts +3 -4
- package/dist/components/Select/SelectOption.test.d.ts +1 -1
- package/dist/components/Select/SelectTrigger.d.ts +3 -3
- package/dist/components/Select/components.d.ts +2 -2
- package/dist/components/Select/index.d.ts +3 -3
- package/dist/components/Select/useSelect.d.ts +8 -8
- package/dist/components/Select/useSelect.helpers.d.ts +6 -6
- package/dist/components/Select/useSelect.helpers.test.d.ts +1 -1
- package/dist/components/Select/useSelect.test.d.ts +1 -1
- package/dist/components/Select/useSelectExternal.d.ts +2 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +8 -14
- package/dist/components/SideNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/index.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/Menu.d.ts +16 -17
- package/dist/components/SideNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +11 -11
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +6 -6
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +10 -11
- package/dist/components/SideNavigation/Menu/index.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/Separator.d.ts +5 -6
- package/dist/components/SideNavigation/Separator/Separator.test.d.ts +1 -1
- package/dist/components/SideNavigation/Separator/index.d.ts +1 -1
- package/dist/components/SideNavigation/SideNavigation.d.ts +28 -34
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +5 -5
- package/dist/components/SideNavigation/SideNavigation.test.d.ts +1 -1
- package/dist/components/SideNavigation/index.d.ts +4 -4
- package/dist/components/SideNavigation/useSideNavigation.d.ts +8 -8
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +12 -12
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +7 -8
- package/dist/components/Steps/ProgressSteps/index.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +16 -16
- package/dist/components/Steps/Steps.fixtures.d.ts +6 -6
- package/dist/components/Steps/Steps.helpers.d.ts +2 -2
- package/dist/components/Steps/Steps.stories.d.ts +5 -5
- package/dist/components/Steps/Steps.test.d.ts +1 -1
- package/dist/components/Steps/Steps.types.d.ts +5 -5
- package/dist/components/Steps/StepsContext.d.ts +3 -3
- package/dist/components/Steps/StepsStep.d.ts +8 -8
- package/dist/components/Steps/index.d.ts +5 -5
- package/dist/components/Steps/useStep.test.d.ts +1 -1
- package/dist/components/Steps/useSteps.d.ts +30 -30
- package/dist/components/Switch/Switch.d.ts +11 -11
- package/dist/components/Switch/Switch.stories.d.ts +5 -5
- package/dist/components/Switch/Switch.test.d.ts +1 -1
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/Selection.d.ts +34 -35
- package/dist/components/Table/Table.d.ts +38 -39
- package/dist/components/Table/Table.fixtures.d.ts +29 -29
- package/dist/components/Table/Table.stories.d.ts +61 -61
- package/dist/components/Table/Table.test.d.ts +1 -1
- package/dist/components/Table/Table.types.d.ts +72 -72
- package/dist/components/Table/TableSortHandle.d.ts +7 -8
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/useSortBy.d.ts +16 -16
- package/dist/components/Table/useSortBy.test.d.ts +1 -1
- package/dist/components/Table/useSortBy.types.d.ts +16 -16
- package/dist/components/TablePagination/RowsPerPage.d.ts +3 -4
- package/dist/components/TablePagination/TablePagination.d.ts +3 -4
- package/dist/components/TablePagination/TablePagination.stories.d.ts +5 -5
- package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -5
- package/dist/components/TablePagination/TablePagination.test.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.types.d.ts +59 -59
- package/dist/components/TablePagination/TablePaginationActions.d.ts +11 -11
- package/dist/components/TablePagination/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +49 -49
- package/dist/components/Tabs/Tabs.stories.d.ts +23 -23
- package/dist/components/Tabs/Tabs.test.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +6 -6
- package/dist/components/Tabs/TabsContext.d.ts +8 -9
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +18 -19
- package/dist/components/Tag/Tag.stories.d.ts +42 -41
- package/dist/components/Tag/Tag.test.d.ts +1 -1
- package/dist/components/Tag/index.d.ts +2 -2
- package/dist/components/Text/Text.d.ts +9 -15
- package/dist/components/Text/Text.stories.d.ts +7 -5
- package/dist/components/Text/Text.test.d.ts +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +18 -19
- package/dist/components/TextField/TextField.stories.d.ts +11 -11
- package/dist/components/TextField/TextField.test.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +4 -4
- package/dist/components/TextField/useTextField.d.ts +6 -6
- package/dist/components/Textarea/Textarea.d.ts +16 -17
- package/dist/components/Textarea/Textarea.stories.d.ts +11 -11
- package/dist/components/Textarea/Textarea.test.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +11 -11
- package/dist/components/Toast/Toast.stories.d.ts +12 -12
- package/dist/components/Toast/Toast.test.d.ts +1 -1
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +4 -5
- package/dist/components/ToggleGroup/Toggle.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.constants.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +6 -7
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -6
- package/dist/components/ToggleGroup/ToggleGroup.test.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.types.d.ts +26 -26
- package/dist/components/ToggleGroup/ToggleGroupContext.d.ts +5 -5
- package/dist/components/ToggleGroup/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +22 -23
- package/dist/components/Tooltip/Tooltip.stories.d.ts +13 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -1
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TopNavigation/Logo/Logo.d.ts +8 -14
- package/dist/components/TopNavigation/Logo/Logo.test.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/index.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/Menu.d.ts +18 -18
- package/dist/components/TopNavigation/Menu/Menu.test.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +17 -17
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/index.d.ts +1 -1
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +7 -8
- package/dist/components/TopNavigation/OpenSideNavButton/index.d.ts +1 -1
- package/dist/components/TopNavigation/TopNavigation.d.ts +11 -17
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +5 -6
- package/dist/components/TopNavigation/index.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +12 -13
- package/dist/components/VisuallyHidden/VisuallyHidden.test.d.ts +1 -1
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/dist/hooks/useClickOutside/useClickOutside.test.d.ts +1 -1
- package/dist/hooks/useDidMount/index.d.ts +1 -1
- package/dist/hooks/useDidMount/useDidMount.d.ts +9 -9
- package/dist/hooks/useDidMount/useDidMount.test.d.ts +1 -1
- package/dist/hooks/useFingerprint/index.d.ts +1 -1
- package/dist/hooks/useFingerprint/useFingerprint.d.ts +18 -18
- package/dist/hooks/useFingerprint/useFingerprint.test.d.ts +1 -1
- package/dist/hooks/useFocusTrap/index.d.ts +2 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +27 -27
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +7 -7
- package/dist/hooks/useFocusTrap/useFocusTrap.test.d.ts +1 -1
- package/dist/hooks/useFocusWithin/index.d.ts +2 -2
- package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +15 -15
- package/dist/hooks/useFocusWithin/useFocusWithin.test.d.ts +1 -1
- package/dist/hooks/useHeightExpansionToggler/index.d.ts +2 -2
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +14 -14
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.d.ts +1 -1
- package/dist/hooks/useID/index.d.ts +1 -1
- package/dist/hooks/useID/useID.d.ts +2 -2
- package/dist/hooks/useSelectable/SelectableStrategy.d.ts +11 -11
- package/dist/hooks/useSelectable/SelectableStrategy.test.d.ts +1 -1
- package/dist/hooks/useSelectable/index.d.ts +2 -2
- package/dist/hooks/useSelectable/useSelectable.d.ts +6 -6
- package/dist/hooks/useSelectable/useSelectable.test.d.ts +1 -1
- package/dist/hooks/useSelectable/useSelectable.types.d.ts +46 -46
- package/dist/hooks/useWindowResize/index.d.ts +1 -1
- package/dist/hooks/useWindowResize/useWindowResize.d.ts +5 -5
- package/dist/index.d.ts +97 -97
- package/dist/index.js +305 -2676
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9310 -0
- package/dist/index.mjs.map +1 -0
- package/dist/miranda-compatibility.theme-C3Dt-45K.js +2 -0
- package/dist/miranda-compatibility.theme-C3Dt-45K.js.map +1 -0
- package/dist/miranda-compatibility.theme-ClCWbTIT.mjs +2525 -0
- package/dist/miranda-compatibility.theme-ClCWbTIT.mjs.map +1 -0
- package/dist/prop-C4yDbi0C.mjs +53 -0
- package/dist/prop-C4yDbi0C.mjs.map +1 -0
- package/dist/prop-pWSEOvKc.js +2 -0
- package/dist/{prop-597d4792.js.map → prop-pWSEOvKc.js.map} +1 -1
- package/dist/styles/activatable.d.ts +10 -10
- package/dist/styles/disableable.d.ts +10 -10
- package/dist/styles/ellipsizable.d.ts +7 -7
- package/dist/styles/focusable.d.ts +10 -10
- package/dist/styles/font.d.ts +16 -16
- package/dist/styles/font.test.d.ts +1 -1
- package/dist/styles/hidden.d.ts +7 -7
- package/dist/styles/hoverable.d.ts +10 -10
- package/dist/styles/transition.d.ts +11 -11
- package/dist/styles/typography.d.ts +26 -27
- package/dist/styles/typography.test.d.ts +1 -1
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +42 -42
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +41 -41
- package/dist/testing/DatePickerEvent/index.d.ts +2 -2
- package/dist/testing/DragDropFileEvent/DragDropFileEvent.d.ts +6 -6
- package/dist/testing/DragDropFileEvent/index.d.ts +1 -1
- package/dist/testing/SelectEvent/SelectEvent.d.ts +66 -66
- package/dist/testing/SelectEvent/SelectEvent.test.d.ts +1 -1
- package/dist/testing/SelectEvent/index.d.ts +1 -1
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +10 -10
- package/dist/testing/getInterpolatedStyles/index.d.ts +1 -1
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs +227 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/testing/renderWithDragDropFileProvider/index.d.ts +1 -1
- package/dist/testing/renderWithDragDropFileProvider/renderWithDragDropFileProvider.d.ts +5 -5
- package/dist/tests/generator.d.ts +34 -35
- package/dist/tests/renderer.d.ts +9 -10
- package/dist/theming/index.d.ts +16 -16
- package/dist/theming/index.js +1 -1
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/index.mjs +19 -0
- package/dist/theming/index.mjs.map +1 -0
- package/dist/theming/themes/alice.theme.d.ts +812 -812
- package/dist/theming/themes/index.d.ts +3 -3
- package/dist/theming/themes/loadsmart.theme.d.ts +794 -794
- package/dist/theming/themes/miranda-compatibility.theme.d.ts +808 -808
- package/dist/theming/theming.helpers.d.ts +22 -22
- package/dist/toArray-BJfx0Xhj.mjs +38 -0
- package/dist/toArray-BJfx0Xhj.mjs.map +1 -0
- package/dist/toArray-Dw6F-w3t.js +2 -0
- package/dist/{toArray-b56541b4.js.map → toArray-Dw6F-w3t.js.map} +1 -1
- package/dist/tools/conditional.d.ts +39 -39
- package/dist/tools/conditional.test.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.mjs +7 -0
- package/dist/tools/index.mjs.map +1 -0
- package/dist/tools/prop.d.ts +15 -15
- package/dist/tools/prop.test.d.ts +1 -1
- package/dist/utils/toolset/awaitTo.d.ts +10 -10
- package/dist/utils/toolset/flatten.d.ts +2 -1
- package/dist/utils/toolset/formatBytes.d.ts +4 -4
- package/dist/utils/toolset/formatBytes.test.d.ts +1 -1
- package/dist/utils/toolset/get.d.ts +2 -1
- package/dist/utils/toolset/getID.d.ts +13 -13
- package/dist/utils/toolset/getID.test.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.d.ts +1 -1
- package/dist/utils/toolset/getOrdinalSuffix.test.d.ts +1 -1
- package/dist/utils/toolset/highlightMatch.d.ts +9 -10
- package/dist/utils/toolset/highlightMatch.test.d.ts +1 -1
- package/dist/utils/toolset/interleave.d.ts +2 -2
- package/dist/utils/toolset/interleave.test.d.ts +1 -1
- package/dist/utils/toolset/isEmpty.d.ts +2 -1
- package/dist/utils/toolset/isThenable.d.ts +5 -5
- package/dist/utils/toolset/isThenable.test.d.ts +1 -1
- package/dist/utils/toolset/keyboard.d.ts +24 -24
- package/dist/utils/toolset/omit.d.ts +2 -1
- package/dist/utils/toolset/pluralize.d.ts +14 -14
- package/dist/utils/toolset/range.d.ts +2 -1
- package/dist/utils/toolset/rem.d.ts +3 -3
- package/dist/utils/toolset/styledCompounds.d.ts +12 -13
- package/dist/utils/toolset/toArray.d.ts +2 -2
- package/dist/utils/types/ColorScheme.d.ts +2 -2
- package/dist/utils/types/EventLike.d.ts +10 -10
- package/dist/utils/types/InterpolatedStyle.d.ts +2 -2
- package/dist/utils/types/Status.d.ts +7 -7
- package/package.json +31 -50
- package/src/components/Dropdown/Dropdown.test.tsx +3 -1
- package/src/components/Icon/Icon.tsx +21 -21
- package/src/components/IconFactory/IconFactory.tsx +3 -3
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/Switch/Switch.test.tsx +3 -1
- package/src/components/Text/Text.stories.tsx +29 -25
- package/src/utils/toolset/flatten.ts +3 -1
- package/src/utils/toolset/get.ts +2 -1
- package/src/utils/toolset/isEmpty.ts +2 -1
- package/src/utils/toolset/omit.ts +2 -1
- package/src/utils/toolset/range.ts +2 -1
- package/dist/DragDropFile.context-bbb7d631.js +0 -2
- package/dist/DragDropFile.context-bbb7d631.js.map +0 -1
- package/dist/miranda-compatibility.theme-8689186b.js +0 -2
- package/dist/miranda-compatibility.theme-8689186b.js.map +0 -1
- package/dist/prop-597d4792.js +0 -2
- package/dist/toArray-b56541b4.js +0 -2
- package/dist/utils/toolset/debounce.d.ts +0 -1
- package/src/utils/toolset/debounce.ts +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare function TabsItems({ children, ...props }: TabsItemsProps): React.JSX.Element;
|
|
5
|
-
interface TabsItemProps extends HTMLAttributes<HTMLInputElement> {
|
|
6
|
-
name: string;
|
|
7
|
-
default?: boolean;
|
|
8
|
-
leading?: ReactNode;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, disabled, ...props }: TabsItemProps): React.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare function PanelsItems({ children, ...props }: PanelsItemsProps): React.JSX.Element;
|
|
14
|
-
interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
|
|
15
|
-
name: string;
|
|
16
|
-
/**
|
|
17
|
-
* Renders the Panel.Item only when is visible
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
lazy?: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): React.JSX.Element;
|
|
23
|
-
export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
|
|
24
|
-
activeTab?: string;
|
|
25
|
-
onTabChange?: (tab: string) => void;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @example
|
|
29
|
-
* <Tabs>
|
|
30
|
-
<Tabs.Items>
|
|
31
|
-
<Tabs.Item name="tab-1" default>
|
|
32
|
-
Tabs 1
|
|
33
|
-
</Tabs.Item>
|
|
34
|
-
<Tabs.Item name="tab-2">Tabs 2</Tabs.Item>
|
|
35
|
-
</Tabs.Items>
|
|
36
|
-
<Tabs.Panels>
|
|
37
|
-
<Tabs.Panel name="tab-1">first content</Tabs.Panel>
|
|
38
|
-
<Tabs.Panel name="tab-2">second content</Tabs.Panel>
|
|
39
|
-
</Tabs.Panels>
|
|
40
|
-
* </Tabs>
|
|
41
|
-
*/
|
|
42
|
-
declare function Tabs({ children, direction, id: propId, activeTab: propTab, onTabChange, ...props }: TabsProps): JSX.Element;
|
|
43
|
-
declare namespace Tabs {
|
|
44
|
-
var Items: typeof TabsItems;
|
|
45
|
-
var Item: typeof TabsItem;
|
|
46
|
-
var Panels: typeof PanelsItems;
|
|
47
|
-
var Panel: typeof PanelsItem;
|
|
48
|
-
}
|
|
49
|
-
export default Tabs;
|
|
1
|
+
import { default as React, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { WithDirectionProps } from './Tabs.types';
|
|
3
|
+
type TabsItemsProps = HTMLAttributes<HTMLUListElement>;
|
|
4
|
+
declare function TabsItems({ children, ...props }: TabsItemsProps): React.JSX.Element;
|
|
5
|
+
interface TabsItemProps extends HTMLAttributes<HTMLInputElement> {
|
|
6
|
+
name: string;
|
|
7
|
+
default?: boolean;
|
|
8
|
+
leading?: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, disabled, ...props }: TabsItemProps): React.JSX.Element;
|
|
12
|
+
type PanelsItemsProps = HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
declare function PanelsItems({ children, ...props }: PanelsItemsProps): React.JSX.Element;
|
|
14
|
+
interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Renders the Panel.Item only when is visible
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
lazy?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): React.JSX.Element;
|
|
23
|
+
export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
|
|
24
|
+
activeTab?: string;
|
|
25
|
+
onTabChange?: (tab: string) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* <Tabs>
|
|
30
|
+
<Tabs.Items>
|
|
31
|
+
<Tabs.Item name="tab-1" default>
|
|
32
|
+
Tabs 1
|
|
33
|
+
</Tabs.Item>
|
|
34
|
+
<Tabs.Item name="tab-2">Tabs 2</Tabs.Item>
|
|
35
|
+
</Tabs.Items>
|
|
36
|
+
<Tabs.Panels>
|
|
37
|
+
<Tabs.Panel name="tab-1">first content</Tabs.Panel>
|
|
38
|
+
<Tabs.Panel name="tab-2">second content</Tabs.Panel>
|
|
39
|
+
</Tabs.Panels>
|
|
40
|
+
* </Tabs>
|
|
41
|
+
*/
|
|
42
|
+
declare function Tabs({ children, direction, id: propId, activeTab: propTab, onTabChange, ...props }: TabsProps): JSX.Element;
|
|
43
|
+
declare namespace Tabs {
|
|
44
|
+
var Items: typeof TabsItems;
|
|
45
|
+
var Item: typeof TabsItem;
|
|
46
|
+
var Panels: typeof PanelsItems;
|
|
47
|
+
var Panel: typeof PanelsItem;
|
|
48
|
+
}
|
|
49
|
+
export default Tabs;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import { TabsProps } from './Tabs';
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: TabsProps): JSX.Element;
|
|
6
|
-
export declare namespace Playground {
|
|
7
|
-
var args: {
|
|
8
|
-
direction: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare function Controlled(): JSX.Element;
|
|
12
|
-
export declare namespace Controlled {
|
|
13
|
-
var args: {
|
|
14
|
-
direction: string;
|
|
15
|
-
};
|
|
16
|
-
var parameters: {
|
|
17
|
-
docs: {
|
|
18
|
-
source: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { TabsProps } from './Tabs';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Playground(args: TabsProps): JSX.Element;
|
|
6
|
+
export declare namespace Playground {
|
|
7
|
+
var args: {
|
|
8
|
+
direction: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function Controlled(): JSX.Element;
|
|
12
|
+
export declare namespace Controlled {
|
|
13
|
+
var args: {
|
|
14
|
+
direction: string;
|
|
15
|
+
};
|
|
16
|
+
var parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
source: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface WithDirectionProps {
|
|
2
|
-
direction?: 'horizontal' | 'vertical';
|
|
3
|
-
}
|
|
4
|
-
export interface WithActiveProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
}
|
|
1
|
+
export interface WithDirectionProps {
|
|
2
|
+
direction?: 'horizontal' | 'vertical';
|
|
3
|
+
}
|
|
4
|
+
export interface WithActiveProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export {};
|
|
1
|
+
interface TabContextValue {
|
|
2
|
+
id: string;
|
|
3
|
+
activeTab: string;
|
|
4
|
+
setActiveTab: (name: string) => void;
|
|
5
|
+
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
}
|
|
7
|
+
export declare const TabContext: import('react').Context<TabContextValue>;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Tabs } from './Tabs';
|
|
2
|
-
export type { TabsProps } from './Tabs';
|
|
1
|
+
export { default as Tabs } from './Tabs';
|
|
2
|
+
export type { TabsProps } from './Tabs';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export default Tag;
|
|
1
|
+
import { default as React, ReactNode, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
interface WithSizeProps {
|
|
3
|
+
size?: 'small' | 'default' | 'large';
|
|
4
|
+
}
|
|
5
|
+
export interface TagProps extends React.HTMLAttributes<HTMLElement>, WithSizeProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
leading?: ReactNode;
|
|
10
|
+
removable?: boolean;
|
|
11
|
+
variant?: 'accent' | 'danger' | 'default' | 'outlined' | 'success' | 'warning';
|
|
12
|
+
onRemove?: () => void;
|
|
13
|
+
getRemoveButtonProps?: () => Partial<ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
declare function Tag(props: TagProps): JSX.Element;
|
|
18
|
+
export default Tag;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TagProps } from './Tag';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export declare
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TagProps } from './Tag';
|
|
3
|
+
import { Meta } from '@storybook/react';
|
|
4
|
+
declare const _default: Meta;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function Default(args: TagProps): JSX.Element;
|
|
7
|
+
export declare namespace Default {
|
|
8
|
+
var args: {
|
|
9
|
+
size: string;
|
|
10
|
+
variant: string;
|
|
11
|
+
as: string;
|
|
12
|
+
href: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function Icon(args: TagProps): JSX.Element;
|
|
16
|
+
export declare namespace Icon {
|
|
17
|
+
var args: {
|
|
18
|
+
size: string;
|
|
19
|
+
variant: string;
|
|
20
|
+
leading: React.JSX.Element;
|
|
21
|
+
removable: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare function Removable(args: TagProps): JSX.Element;
|
|
25
|
+
export declare namespace Removable {
|
|
26
|
+
var args: {
|
|
27
|
+
size: string;
|
|
28
|
+
variant: string;
|
|
29
|
+
leading: null;
|
|
30
|
+
removable: boolean;
|
|
31
|
+
onRemove: () => void;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare function Disabled(args: TagProps): JSX.Element;
|
|
35
|
+
export declare namespace Disabled {
|
|
36
|
+
var args: {
|
|
37
|
+
size: string;
|
|
38
|
+
variant: string;
|
|
39
|
+
className: string;
|
|
40
|
+
removable: boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Tag } from './Tag';
|
|
2
|
-
export type { TagProps } from './Tag';
|
|
1
|
+
export { default as Tag } from './Tag';
|
|
2
|
+
export type { TagProps } from './Tag';
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TypographyOptions, TypographyVariants } from
|
|
3
|
-
export
|
|
4
|
-
variant?: TypographyVariants;
|
|
5
|
-
italic?: TypographyOptions['italic'];
|
|
6
|
-
color?: TypographyOptions['color'];
|
|
7
|
-
}>;
|
|
8
|
-
declare const _default: import(
|
|
9
|
-
|
|
10
|
-
italic?: boolean | undefined;
|
|
11
|
-
color?: "left" | "center" | "right" | "color-neutral-darker" | "button-border-radius" | "button-border-width" | "button-font-weight" | "button-font-height" | "button-small-font-size" | "button-small-height" | "button-small-padding-x" | "button-small-padding-y" | "button-font-size" | "button-height" | "button-width" | "button-padding-y" | "button-padding-x" | "button-spacing-x" | "button-large-font-size" | "button-large-height" | "button-large-padding-x" | "button-large-padding-y" | "button-outline-offset" | "button-primary-background" | "button-primary-background--hover" | "button-primary-background--focus" | "button-primary-background--active" | "button-primary-background--disabled" | "button-primary-border-color" | "button-primary-border-color--hover" | "button-primary-border-color--focus" | "button-primary-border-color--active" | "button-primary-border-color--disabled" | "button-primary-color" | "button-primary-color--hover" | "button-primary-color--focus" | "button-primary-color--active" | "button-primary-color--disabled" | "button-primary-outline" | "button-primary-box-shadow" | "button-secondary-background" | "button-secondary-background--hover" | "button-secondary-background--focus" | "button-secondary-background--active" | "button-secondary-background--disabled" | "button-secondary-border-color" | "button-secondary-border-color--hover" | "button-secondary-border-color--focus" | "button-secondary-border-color--active" | "button-secondary-border-color--disabled" | "button-secondary-color" | "button-secondary-color--hover" | "button-secondary-color--focus" | "button-secondary-color--active" | "button-secondary-color--disabled" | "button-secondary-outline" | "button-secondary-box-shadow" | "button-secondary-dark-background" | "button-secondary-dark-background--hover" | "button-secondary-dark-background--focus" | "button-secondary-dark-background--active" | "button-secondary-dark-background--disabled" | "button-secondary-dark-border-color" | "button-secondary-dark-border-color--hover" | "button-secondary-dark-border-color--focus" | "button-secondary-dark-border-color--active" | "button-secondary-dark-border-color--disabled" | "button-secondary-dark-color" | "button-secondary-dark-color--hover" | "button-secondary-dark-color--focus" | "button-secondary-dark-color--active" | "button-secondary-dark-color--disabled" | "button-tertiary-background" | "button-tertiary-background--hover" | "button-tertiary-background--focus" | "button-tertiary-background--active" | "button-tertiary-background--disabled" | "button-tertiary-border-color" | "button-tertiary-border-color--hover" | "button-tertiary-border-color--focus" | "button-tertiary-border-color--active" | "button-tertiary-border-color--disabled" | "button-tertiary-color" | "button-tertiary-color--hover" | "button-tertiary-color--focus" | "button-tertiary-color--active" | "button-tertiary-color--disabled" | "button-tertiary-outline" | "button-tertiary-box-shadow" | "button-warning-background" | "button-warning-background--hover" | "button-warning-background--focus" | "button-warning-background--active" | "button-warning-background--disabled" | "button-warning-border-color" | "button-warning-border-color--hover" | "button-warning-border-color--focus" | "button-warning-border-color--active" | "button-warning-border-color--disabled" | "button-warning-color" | "button-warning-color--hover" | "button-warning-color--focus" | "button-warning-color--active" | "button-warning-color--disabled" | "button-warning-outline" | "button-warning-box-shadow" | "button-icon-border-radius" | "button-icon-small-width" | "button-icon-width" | "button-icon-large-width" | "button-icon-background" | "button-icon-background--hover" | "button-icon-background--focus" | "button-icon-background--active" | "button-icon-background--disabled" | "button-icon-border-color" | "button-icon-border-color--hover" | "button-icon-border-color--focus" | "button-icon-border-color--active" | "button-icon-border-color--disabled" | "button-icon-color" | "button-icon-color--hover" | "button-icon-color--focus" | "button-icon-color--active" | "button-icon-color--disabled" | "button-icon-box-shadow" | "button-icon-outline" | "tag-border-radius" | "tag-border-width" | "tag-font-height" | "tag-spacing" | "tag-removable-spacing" | "tag-width" | "tag-box-shadow" | "tag-outline-offset" | "tag-remove-button-background" | "tag-remove-button-border-radius" | "tag-icon-spacing" | "tag-small-font-size" | "tag-small-font-weight" | "tag-small-height" | "tag-small-transform" | "tag-small-leading-display" | "tag-small-remove-button-size" | "tag-small-remove-button-icon-size" | "tag-small-spacing" | "tag-small-removable-spacing" | "tag-font-size" | "tag-font-weight" | "tag-height" | "tag-transform" | "tag-leading-display" | "tag-remove-button-size" | "tag-remove-button-icon-size" | "tag-large-font-size" | "tag-large-font-weight" | "tag-large-height" | "tag-large-transform" | "tag-large-leading-display" | "tag-large-remove-button-size" | "tag-large-remove-button-icon-size" | "tag-large-spacing" | "tag-default-background" | "tag-default-background--hover" | "tag-default-background--focus" | "tag-default-color" | "tag-default-color--hover" | "tag-default-color--focus" | "tag-default-border-color" | "tag-default-border-color--hover" | "tag-default-border-color--focus" | "tag-default-outline" | "tag-outlined-background" | "tag-outlined-background--hover" | "tag-outlined-background--focus" | "tag-outlined-color" | "tag-outlined-color--hover" | "tag-outlined-color--focus" | "tag-outlined-border-color" | "tag-outlined-border-color--hover" | "tag-outlined-border-color--focus" | "tag-outline-outline" | "tag-accent-background" | "tag-accent-background--hover" | "tag-accent-background--focus" | "tag-accent-color" | "tag-accent-color--hover" | "tag-accent-color--focus" | "tag-accent-border-color" | "tag-accent-border-color--hover" | "tag-accent-border-color--focus" | "tag-accent-outline" | "tag-success-background" | "tag-success-background--hover" | "tag-success-background--focus" | "tag-success-color" | "tag-success-color--hover" | "tag-success-color--focus" | "tag-success-border-color" | "tag-success-border-color--hover" | "tag-success-border-color--focus" | "tag-success-outline" | "tag-warning-background" | "tag-warning-background--hover" | "tag-warning-background--focus" | "tag-warning-color" | "tag-warning-color--hover" | "tag-warning-color--focus" | "tag-warning-border-color" | "tag-warning-border-color--hover" | "tag-warning-border-color--focus" | "tag-warning-outline" | "tag-danger-background" | "tag-danger-background--hover" | "tag-danger-background--focus" | "tag-danger-color" | "tag-danger-color--hover" | "tag-danger-color--focus" | "tag-danger-border-color" | "tag-danger-border-color--hover" | "tag-danger-border-color--focus" | "tag-danger-outline" | "checkbox-color" | "checkbox-font-weight" | "checkbox-font-size" | "checkbox-selector-border-radius" | "checkbox-selector-size" | "checkbox-selector-box-shadow" | "checkbox-selector-outline" | "checkbox-selector-outline-offset" | "checkbox-small-font-size" | "checkbox-selector-icon-color" | "checkbox-selector-background" | "checkbox-selector-background--hover" | "checkbox-selector-background--focus" | "checkbox-selector-background--disabled" | "checkbox-selector-checked-background" | "checkbox-selector-checked-background--hover" | "checkbox-selector-checked-background--focus" | "checkbox-selector-checked-background--disabled" | "checkbox-selector-border-color" | "checkbox-selector-border-color--hover" | "checkbox-selector-border-color--focus" | "checkbox-selector-border-color--disabled" | "checkbox-selector-checked-border-color" | "checkbox-selector-checked-border-color--hover" | "checkbox-selector-checked-border-color--focus" | "checkbox-selector-checked-border-color--disabled" | "checkbox-dark-color" | "checkbox-dark-selector-background" | "checkbox-dark-selector-background--hover" | "checkbox-dark-selector-background--focus" | "checkbox-dark-selector-background--disabled" | "checkbox-dark-selector-border-color" | "checkbox-dark-selector-border-color--hover" | "checkbox-dark-selector-border-color--focus" | "checkbox-dark-selector-border-color--disabled" | "radio-color" | "radio-font-weight" | "radio-font-size" | "radio-selector-border-radius" | "radio-selector-size" | "radio-selector-box-shadow" | "radio-small-font-size" | "radio-small-selector-size" | "radio-selector-background" | "radio-selector-background--hover" | "radio-selector-background--focus" | "radio-selector-background--disabled" | "radio-selector-border-color" | "radio-selector-border-color--hover" | "radio-selector-border-color--focus" | "radio-selector-border-color--disabled" | "radio-selector-border-color--checked" | "radio-dark-color" | "radio-dark-selector-background" | "radio-dark-selector-background--hover" | "radio-dark-selector-background--focus" | "radio-dark-selector-background--disabled" | "radio-dark-selector-border-color" | "radio-dark-selector-border-color--hover" | "radio-dark-selector-border-color--focus" | "radio-dark-selector-border-color--disabled" | "tooltip-arrow-height" | "tooltip-arrow-width" | "tooltip-background" | "tooltip-border-radius" | "tooltip-color" | "tooltip-dark-outline" | "tooltip-font-size" | "tooltip-font-height" | "tooltip-max-width" | "tooltip-min-width" | "tooltip-outline" | "tooltip-padding-x" | "tooltip-padding-y" | "tooltip-margin" | "tooltip-shadow" | "modal-small-max-width" | "modal-max-width" | "modal-large-max-width" | "modal-overlay-background" | "dialog-header-color" | "dialog-header-border-color" | "dialog-body-font-color" | "text-field-border-radius" | "text-field-color" | "text-field-font-size" | "text-field-font-weight" | "text-field-font-height" | "text-field-height" | "text-field-padding-x" | "text-field-padding-y" | "text-field-box-shadow" | "text-field-outline" | "text-field-outline-offset" | "text-field-small-height" | "text-field-small-padding-x" | "text-field-small-padding-y" | "text-field-small-font-size" | "text-field-large-height" | "text-field-large-padding-x" | "text-field-large-padding-y" | "text-field-large-font-size" | "text-field-background" | "text-field-background--hover" | "text-field-background--focus" | "text-field-background--disabled" | "text-field-border-color" | "text-field-border-color--hover" | "text-field-border-color--focus" | "text-field-border-color--disabled" | "text-field-dark-color" | "text-field-dark-background" | "text-field-dark-border-color" | "text-field-dark-border-color--hover" | "text-field-dark-border-color--focus" | "text-field-dark-border-color--disabled" | "text-field-success-border-color" | "text-field-danger-border-color" | "text-field-dark-box-shadow" | "textarea-border-radius" | "textarea-color" | "textarea-font-size" | "textarea-font-weight" | "textarea-font-height" | "textarea-min-height" | "textarea-padding-x" | "textarea-padding-y" | "textarea-box-shadow" | "textarea-outline" | "textarea-outline-offset" | "textarea-small-padding-x" | "textarea-small-padding-y" | "textarea-small-font-size" | "textarea-large-height" | "textarea-large-padding-x" | "textarea-large-padding-y" | "textarea-large-font-size" | "textarea-background" | "textarea-background--hover" | "textarea-background--focus" | "textarea-background--disabled" | "textarea-border-color" | "textarea-border-color--hover" | "textarea-border-color--focus" | "textarea-border-color--disabled" | "textarea-dark-color" | "textarea-dark-background" | "textarea-dark-border-color" | "textarea-dark-border-color--hover" | "textarea-dark-border-color--focus" | "textarea-dark-border-color--disabled" | "textarea-success-border-color" | "textarea-danger-border-color" | "textarea-dark-box-shadow" | "link-font-size" | "link-font-height" | "link-color" | "link-font-weight" | "link-font-weight--hover" | "link-box-shadow" | "link-outline" | "link-outline-offset" | "breadcrumbs-font-size" | "breadcrumbs-font-height" | "breadcrumbs-font-weight" | "breadcrumbs-font-weight--active" | "breadcrumbs-spacing-x" | "banner-font-size" | "banner-font-height" | "banner-default-height" | "banner-min-width" | "banner-description-color" | "banner-title-font-weight" | "banner-border-radius" | "banner-border-width" | "banner-close-button-color" | "banner-icon-width" | "banner-icon-height" | "banner-icon-margin-right" | "banner-default-padding-x" | "banner-default-padding-y" | "banner-large-padding" | "banner-default-icon-alignment" | "banner-large-icon-alignment" | "banner-default-close-top" | "banner-default-close-right" | "banner-large-close-top" | "banner-large-close-right" | "banner-title-color-success" | "banner-border-color-success" | "banner-background-success" | "banner-title-color-danger" | "banner-border-color-danger" | "banner-background-danger" | "banner-title-color-warning" | "banner-border-color-warning" | "banner-background-warning" | "banner-title-color-neutral" | "banner-border-color-neutral" | "banner-background-neutral" | "banner-button-background-success" | "banner-button-background-neutral" | "banner-button-background-danger" | "banner-button-background-warning" | "banner-button-background-secondary" | "banner-button-text-color" | "banner-secondary-button-margin-left" | "progressbar-height" | "progressbar-background" | "progressbar-line" | "progressbar-neutral-fill" | "progressbar-success-fill" | "progressbar-danger-fill" | "progressbar-warning-fill" | "toast-padding-x" | "toast-padding-y" | "toast-border-radius" | "toast-font-color" | "toast-font-size" | "toast-font-weight" | "toast-font-height" | "toast-close-x" | "toast-close-y" | "toast-shadow" | "toast-width" | "toast-neutral-background" | "toast-success-background" | "toast-danger-background" | "toast-warning-background" | "label-font-size" | "label-font-weight" | "label-font-height" | "label-font-color" | "label-required-color" | "label-tooltip-margin-left" | "label-tooltip-font-weight" | "label-tooltip-font-size" | "label-tooltip-font-color" | "label-tooltip-background-color" | "label-dark-font-color" | "label-tooltip-dark-font-color" | "label-tooltip-dark-background-color" | "switch-width" | "switch-height" | "switch-border-radius" | "switch-box-shadow" | "switch-outline" | "switch-outline-offset" | "switch-large-width" | "switch-large-height" | "switch-large-border-radius" | "switch-icon-height" | "switch-icon-width" | "switch-icon-color" | "switch-large-icon-height" | "switch-large-icon-width" | "switch-icon-active-x" | "switch-icon-active-y" | "switch-large-icon-active-x" | "switch-large-icon-active-y" | "switch-icon-inactive-x" | "switch-icon-inactive-y" | "switch-large-icon-inactive-x" | "switch-large-icon-inactive-y" | "switch-inactive-background-color" | "switch-inactive-background-color--hover" | "switch-active-background-color" | "switch-active-background-color--hover" | "switch-slider-x" | "switch-slider-active-x" | "switch-slider-y" | "switch-slider-active-y" | "switch-slider-size" | "switch-slider-background-color" | "switch-slider-border-radius" | "switch-slider-large-x" | "switch-slider-large-active-x" | "switch-slider-large-y" | "switch-slider-large-active-y" | "switch-slider-large-size" | "steps-step-padding-y" | "steps-step-padding-x" | "steps-color" | "steps-progress-padding-y" | "steps-progress-padding-x" | "steps-spacing-y" | "steps-indicator-size" | "steps-conector-height" | "steps-conector-height--complete" | "steps-conector-top" | "steps-conector-top--complete" | "steps-progress-step-background-color" | "steps-progress-step-background-color--complete" | "card-background" | "card-border-color" | "card-border-radius" | "card-color" | "card-flag-background-danger" | "card-flag-background-neutral" | "card-flag-background-success" | "card-flag-background-warning" | "card-flag-width" | "card-font-height" | "card-padding-x" | "card-padding-y" | "card-separator-background" | "card-subtitle-font-size" | "card-subtitle-font-weight" | "card-title-font-height" | "card-title-font-size" | "card-title-font-weight" | "dropdown-background" | "dropdown-border-color" | "dropdown-border-radius" | "dropdown-shadow" | "popover-background" | "popover-border-color" | "popover-border-radius" | "popover-shadow" | "side-navigation-collapsing-breakpoint" | "side-navigation-width" | "side-navigation-width-large" | "side-navigation-padding-bottom" | "side-navigation-background-color" | "side-navigation-component-margin-top" | "side-navigation-logo-padding-x" | "side-navigation-separator-color" | "side-navigation-menu-title-font-weight" | "side-navigation-menu-title-font-size" | "side-navigation-menu-title-line-height" | "side-navigation-menu-link-color--hover" | "side-navigation-menu-link-background-color--active" | "side-navigation-menu-link-box-shadow-color--active" | "side-navigation-menu-item-color--focus" | "table-row-default-color" | "table-row-variant-color" | "table-row-selected-color" | "top-navigation-height" | "top-navigation-background-color" | "top-navigation-border-color" | "top-navigation-dropdown-separator-color" | "top-navigation-dropdown-trigger-color" | "top-navigation-dropdown-subitem-color" | "top-navigation-item-icon-color" | "top-navigation-item-color" | "top-navigation-item-color--hover" | "select-trigger-height" | "select-trigger-border-color" | "select-selected-option-check-color" | "select-selected-option-background-color" | "toggle-text-transform" | "toggle-box-shadow" | "toggle-outline" | "toggle-outline-offset" | "toggle-background-color" | "toggle-background-color--hover" | "toggle-background-color--focus" | "toggle-background-color--active" | "toggle-background-color--disabled" | "toggle-checked-background-color" | "toggle-checked-background-color--hover" | "toggle-checked-background-color--focus" | "toggle-checked-background-color--active" | "toggle-checked-background-color--disabled" | "toggle-color" | "toggle-color--hover" | "toggle-color--focus" | "toggle-color--active" | "toggle-color--disabled" | "toggle-checked-color" | "toggle-checked-color--hover" | "toggle-checked-color--focus" | "toggle-checked-color--active" | "toggle-checked-color--disabled" | "toggle-single-border-color" | "toggle-single-border-color--hover" | "toggle-single-border-color--focus" | "toggle-single-border-color--active" | "toggle-single-border-color--disabled" | "toggle-single-checked-border-color" | "toggle-single-checked-border-color--disabled" | "toggle-single-font-size" | "toggle-single-small-font-size" | "toggle-single-height" | "toggle-single-small-height" | "toggle-multiple-border-color" | "toggle-multiple-border-color--hover" | "toggle-multiple-border-color--focus" | "toggle-multiple-border-color--active" | "toggle-multiple-border-color--disabled" | "toggle-multiple-checked-border-color" | "toggle-multiple-checked-border-color--disabled" | "toggle-multiple-font-size" | "toggle-multiple-small-font-size" | "toggle-multiple-height" | "toggle-multiple-small-height" | "toggle-group-border-color--disabled" | "toggle-group-multiple-border-width" | "toggle-group-multiple-border-style" | "toggle-group-multiple-border-color" | "toggle-group-multiple-border-radius" | "toggle-group-multiple-padding" | "toggle-group-single-border-width" | "toggle-group-single-border-style" | "toggle-group-single-border-color" | "toggle-group-single-border-radius" | "toggle-group-single-padding" | "dropdown-trigger-border-color" | "dropdown-trigger-dark-border-color" | "dropdown-trigger-outlined-border-color" | "dropdown-trigger-expanded-color" | "dropdown-trigger-height" | "dropdown-trigger-small-height" | "dropdown-trigger-large-height" | "dropdown-trigger-box-shadow" | "dropdown-trigger-outline" | "dropdown-trigger-outline-offset" | "height-small" | "height-default" | "height-large" | "z-index-none" | "z-index-default" | "z-index-droplist" | "z-index-tooltip" | "z-index-overlay" | "z-index-modal" | "space-none" | "space-2xs" | "space-xs" | "space-s" | "space-m" | "space-l" | "space-xl" | "space-2xl" | "space-3xl" | "shadow-none" | "shadow-modal" | "shadow-droplist" | "shadow-glow-primary" | "shadow-glow-warning" | "opacity-0" | "opacity-20" | "opacity-40" | "opacity-60" | "opacity-100" | "font-weight-regular" | "font-weight-medium" | "font-weight-bold" | "font-size-6" | "font-size-5" | "font-size-4" | "font-size-3" | "font-size-2" | "font-size-1" | "font-height-1" | "font-height-2" | "font-height-3" | "font-family-default" | "font-family-monospace" | "color-primary" | "color-accent" | "color-neutral-darkest" | "color-neutral-dark" | "color-neutral" | "color-neutral-light" | "color-neutral-lighter" | "color-neutral-lightest" | "color-neutral-white" | "color-success-dark" | "color-success" | "color-success-light" | "color-transparent" | "color-warning-dark" | "color-warning" | "color-warning-light" | "color-danger-dark" | "color-danger" | "color-danger-light" | "border-width-none" | "border-width-thin" | "border-width-medium" | "border-width-bold" | "border-radius-none" | "border-radius-s" | "border-radius-m" | "border-radius-l" | "border-radius-circle" | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
children?: import("react").ReactNode;
|
|
14
|
-
}, never>;
|
|
15
|
-
export default _default;
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { TypographyOptions, TypographyVariants } from '../../styles/typography';
|
|
3
|
+
export type TextProps = PropsWithChildren<{
|
|
4
|
+
variant?: TypographyVariants;
|
|
5
|
+
italic?: TypographyOptions['italic'];
|
|
6
|
+
color?: TypographyOptions['color'];
|
|
7
|
+
}>;
|
|
8
|
+
declare const _default: import('styled-components').StyledComponent<"span", any, TextProps, never>;
|
|
9
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Text } from '.';
|
|
3
|
+
import { TextProps } from './Text';
|
|
4
|
+
declare const meta: Meta<typeof Text>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<TextProps>;
|
|
7
|
+
export declare const Playground: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Text } from './Text';
|
|
2
|
-
export type { TextProps } from './Text';
|
|
1
|
+
export { default as Text } from './Text';
|
|
2
|
+
export type { TextProps } from './Text';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Status from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export default TextField;
|
|
1
|
+
import { default as React, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
|
+
import { default as Status } from '../../utils/types/Status';
|
|
4
|
+
interface WithAdditionalProps {
|
|
5
|
+
scale?: 'small' | 'default' | 'large';
|
|
6
|
+
status?: Status;
|
|
7
|
+
scheme?: ColorScheme;
|
|
8
|
+
leading?: ReactNode;
|
|
9
|
+
trailing?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const Leading: import('styled-components').StyledComponent<"span", any, WithAdditionalProps, never>;
|
|
16
|
+
export declare const Trailing: import('styled-components').StyledComponent<"span", any, WithAdditionalProps, never>;
|
|
17
|
+
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
+
export default TextField;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: TextFieldProps): JSX.Element;
|
|
6
|
-
export declare namespace Playground {
|
|
7
|
-
var args: {
|
|
8
|
-
scale: string;
|
|
9
|
-
scheme: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import { TextFieldProps } from './TextField';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Playground(args: TextFieldProps): JSX.Element;
|
|
6
|
+
export declare namespace Playground {
|
|
7
|
+
var args: {
|
|
8
|
+
scale: string;
|
|
9
|
+
scheme: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as TextField } from './TextField';
|
|
2
|
-
export { default as useTextField } from './useTextField';
|
|
3
|
-
export type { TextFieldProps } from './TextField';
|
|
4
|
-
export { Leading, Trailing } from './TextField';
|
|
1
|
+
export { default as TextField } from './TextField';
|
|
2
|
+
export { default as useTextField } from './useTextField';
|
|
3
|
+
export type { TextFieldProps } from './TextField';
|
|
4
|
+
export { Leading, Trailing } from './TextField';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function useTextField({ onChange: onChangeProp, value: valueProp }: TextFieldProps): ReturnType;
|
|
6
|
-
export default useTextField;
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { TextFieldProps } from './TextField';
|
|
3
|
+
type InputValue = string | number | readonly string[] | undefined;
|
|
4
|
+
type ReturnType = [InputValue, (e: ChangeEvent<HTMLInputElement>) => void];
|
|
5
|
+
declare function useTextField({ onChange: onChangeProp, value: valueProp }: TextFieldProps): ReturnType;
|
|
6
|
+
export default useTextField;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Status from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export default Textarea;
|
|
1
|
+
import { default as React, TextareaHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
|
+
import { default as Status } from '../../utils/types/Status';
|
|
4
|
+
interface WithAdditionalProps {
|
|
5
|
+
scale?: 'small' | 'default' | 'large';
|
|
6
|
+
status?: Status;
|
|
7
|
+
scheme?: ColorScheme;
|
|
8
|
+
leading?: ReactNode;
|
|
9
|
+
trailing?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, WithAdditionalProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
16
|
+
export default Textarea;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
declare const _default:
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare function Playground(args: TextareaProps): JSX.Element;
|
|
6
|
-
export declare namespace Playground {
|
|
7
|
-
var args: {
|
|
8
|
-
scale: string;
|
|
9
|
-
scheme: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import { TextareaProps } from './Textarea';
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare function Playground(args: TextareaProps): JSX.Element;
|
|
6
|
+
export declare namespace Playground {
|
|
7
|
+
var args: {
|
|
8
|
+
scale: string;
|
|
9
|
+
scheme: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Textarea } from './Textarea';
|
|
2
|
-
export type { TextareaProps } from './Textarea';
|
|
1
|
+
export { default as Textarea } from './Textarea';
|
|
2
|
+
export type { TextareaProps } from './Textarea';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BaseHTMLAttributes } from 'react';
|
|
2
|
-
import Status from
|
|
3
|
-
export interface ToastProps extends BaseHTMLAttributes<HTMLDivElement> {
|
|
4
|
-
message: string;
|
|
5
|
-
status?: Status;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
showIcon?: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare function Toast({ message, onClose, timeout, showIcon, status, }: ToastProps): JSX.Element;
|
|
11
|
-
export default Toast;
|
|
1
|
+
import { BaseHTMLAttributes } from 'react';
|
|
2
|
+
import { default as Status } from '../../utils/types/Status';
|
|
3
|
+
export interface ToastProps extends BaseHTMLAttributes<HTMLDivElement> {
|
|
4
|
+
message: string;
|
|
5
|
+
status?: Status;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function Toast({ message, onClose, timeout, showIcon, status, }: ToastProps): JSX.Element;
|
|
11
|
+
export default Toast;
|