@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
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { ReactNode, default as React } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
interface WithScaleProps {
|
|
4
|
-
scale?: 'small' | 'default' | 'large';
|
|
4
|
+
readonly scale?: 'small' | 'default' | 'large';
|
|
5
5
|
}
|
|
6
6
|
export interface DialogProps extends WithScaleProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
onOverlayClick?: () => void;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
readonly id?: string;
|
|
9
|
+
readonly open: boolean;
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
readonly onOverlayClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
declare function DialogActions({ scale, direction, children, }: {
|
|
14
|
-
scale?: 'small' | 'default' | 'large';
|
|
15
|
-
direction?: 'vertical' | 'horizontal';
|
|
16
|
-
children: ReactNode;
|
|
14
|
+
readonly scale?: 'small' | 'default' | 'large';
|
|
15
|
+
readonly direction?: 'vertical' | 'horizontal';
|
|
16
|
+
readonly children: ReactNode;
|
|
17
17
|
}): React.JSX.Element;
|
|
18
18
|
export interface DialogActionConfirmProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
19
|
-
onConfirm: () => void;
|
|
19
|
+
readonly onConfirm: () => void;
|
|
20
20
|
}
|
|
21
21
|
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): React.JSX.Element;
|
|
22
22
|
export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
23
|
-
onCancel: () => void;
|
|
23
|
+
readonly onCancel: () => void;
|
|
24
24
|
}
|
|
25
25
|
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): React.JSX.Element;
|
|
26
|
-
declare function Dialog({ scale, open, ...others }: DialogProps): JSX.Element;
|
|
26
|
+
declare function Dialog({ scale, open, ...others }: DialogProps): React.JSX.Element;
|
|
27
27
|
declare namespace Dialog {
|
|
28
28
|
var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
29
29
|
var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
30
30
|
var ActionConfirm: typeof DialogActionConfirm;
|
|
31
31
|
var ActionCancel: typeof DialogActionCancel;
|
|
32
32
|
var Actions: typeof DialogActions;
|
|
33
|
-
var Close: import("styled-components").StyledComponent<
|
|
34
|
-
size: 16;
|
|
35
|
-
}, "size">;
|
|
33
|
+
var Close: import("styled-components").StyledComponent<any, any, any, any>;
|
|
36
34
|
}
|
|
37
35
|
export default Dialog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DragDropFileContextValue, DragDropFileProviderProps } from './types';
|
|
3
3
|
export declare const DragDropFileContext: React.Context<DragDropFileContextValue | undefined>;
|
|
4
|
-
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => JSX.Element;
|
|
4
|
+
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => React.JSX.Element;
|
|
5
5
|
export declare const useDragDropFileContext: () => DragDropFileContextValue;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { WrapperProps, DropZoneProps, FileListProps } from './types';
|
|
1
2
|
declare const DragDropFile: {
|
|
2
3
|
(): null;
|
|
3
|
-
Wrapper: ({ children, ...props }:
|
|
4
|
-
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }:
|
|
5
|
-
FileList: ({ disabled, ...props }:
|
|
4
|
+
Wrapper: ({ children, ...props }: WrapperProps) => import("react").JSX.Element;
|
|
5
|
+
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => import("react").JSX.Element;
|
|
6
|
+
FileList: ({ disabled, ...props }: FileListProps) => import("react").JSX.Element | null;
|
|
6
7
|
};
|
|
7
8
|
export default DragDropFile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { DropZoneProps } from '../types';
|
|
2
|
-
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => JSX.Element;
|
|
3
|
+
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => React.JSX.Element;
|
|
3
4
|
export default DropZone;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { FileListProps } from '../types';
|
|
2
|
-
declare const FileList: ({ disabled, ...props }: FileListProps) => JSX.Element | null;
|
|
3
|
+
declare const FileList: ({ disabled, ...props }: FileListProps) => React.JSX.Element | null;
|
|
3
4
|
export default FileList;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { StackProps
|
|
2
|
+
import { StackProps } from '../Layout/Stack';
|
|
3
3
|
import { DropZoneProps } from './types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const Divider: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
+
import { StyledComponent } from 'styled-components';
|
|
5
|
+
export declare const DragDropFileWrapper: StyledComponent<any, any, any, any>;
|
|
6
|
+
export declare const DropZoneWrapper: StyledComponent<(props: StackProps) => React.JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
|
|
7
|
+
export declare const HiddenInput: StyledComponent<"input", any, {}, never>;
|
|
8
|
+
export declare const UploadIcon: StyledComponent<any, any, any, any>;
|
|
9
|
+
export declare const FileListUL: StyledComponent<(props: StackProps) => React.JSX.Element, any, {}, never>;
|
|
10
|
+
export declare const Divider: StyledComponent<"div", any, {}, never>;
|
|
@@ -31,11 +31,11 @@ export type DropZoneProps = Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> &
|
|
|
31
31
|
}) => JSX.Element;
|
|
32
32
|
};
|
|
33
33
|
export type FileStatus = 'loading' | 'error' | 'success';
|
|
34
|
-
export
|
|
34
|
+
export interface FileWithStatus {
|
|
35
35
|
file: File;
|
|
36
36
|
status: FileStatus;
|
|
37
37
|
errorMessage?: string;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
export type FileItemProps = FileWithStatus & {
|
|
40
40
|
onRemove: () => void;
|
|
41
41
|
onRetry?: () => void;
|
|
@@ -47,7 +47,7 @@ export type FileListProps = Partial<StackProps> & {
|
|
|
47
47
|
*/
|
|
48
48
|
disabled?: boolean;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export interface DragDropFileProviderProps {
|
|
51
51
|
/**
|
|
52
52
|
* List of items including the file and its status.
|
|
53
53
|
*/
|
|
@@ -65,7 +65,7 @@ export type DragDropFileProviderProps = {
|
|
|
65
65
|
*/
|
|
66
66
|
onRetryUpload?: (item: FileWithStatus, removedItemIndex: number) => void;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
export type DragDropFileContextValue = Pick<DragDropFileProviderProps, 'fileList' | 'onFilesAdded' | 'onRetryUpload'> & {
|
|
70
70
|
onRemoveFile: (removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
71
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode, default as React } from 'react';
|
|
2
2
|
export interface DrawerProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
className?: string;
|
|
@@ -7,18 +7,18 @@ export interface DrawerProps {
|
|
|
7
7
|
onClickOutside?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export interface DrawerHeaderProps {
|
|
10
|
-
className?: string;
|
|
10
|
+
readonly className?: string;
|
|
11
11
|
}
|
|
12
|
-
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
12
|
+
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): React.JSX.Element;
|
|
13
13
|
export interface DrawerBodyProps {
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
16
|
+
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): React.JSX.Element;
|
|
17
17
|
export interface DrawerFooterProps {
|
|
18
|
-
className?: string;
|
|
18
|
+
readonly className?: string;
|
|
19
19
|
}
|
|
20
|
-
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): JSX.Element;
|
|
21
|
-
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps):
|
|
20
|
+
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): React.JSX.Element;
|
|
21
|
+
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps): React.ReactPortal;
|
|
22
22
|
declare namespace Drawer {
|
|
23
23
|
var Header: typeof DrawerHeader;
|
|
24
24
|
var Body: typeof DrawerBody;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { DropdownContextReturn } from './Dropdown.types';
|
|
2
|
-
|
|
2
|
+
import { Context } from 'react';
|
|
3
|
+
declare const DropdownContext: Context<DropdownContextReturn>;
|
|
3
4
|
export default DropdownContext;
|
|
@@ -8,11 +8,8 @@ import { DropdownProps, GenericDropdownProps, DropdownMenuProps } from './Dropdo
|
|
|
8
8
|
* Based on:
|
|
9
9
|
* - https://www.w3.org/TR/2017/REC-wai-aria-1.1-20171214/#menu
|
|
10
10
|
* - https://www.w3.org/WAI/tutorials/menus/application-menus/
|
|
11
|
-
*
|
|
12
|
-
* @param props
|
|
13
|
-
* @returns
|
|
14
11
|
*/
|
|
15
|
-
export declare function GenericDropdown(props: GenericDropdownProps): JSX.Element;
|
|
12
|
+
export declare function GenericDropdown(props: GenericDropdownProps): React.JSX.Element;
|
|
16
13
|
/**
|
|
17
14
|
* @example
|
|
18
15
|
<Dropdown>
|
|
@@ -34,7 +31,7 @@ export declare function GenericDropdown(props: GenericDropdownProps): JSX.Elemen
|
|
|
34
31
|
</Dropdown.Menu>
|
|
35
32
|
</Dropdown>
|
|
36
33
|
*/
|
|
37
|
-
declare function Dropdown(props: DropdownProps): JSX.Element;
|
|
34
|
+
declare function Dropdown(props: DropdownProps): React.JSX.Element;
|
|
38
35
|
declare namespace Dropdown {
|
|
39
36
|
var Trigger: typeof DropdownTrigger;
|
|
40
37
|
var Menu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -36,7 +36,7 @@ export interface DropdownMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
36
36
|
export interface DropdownMenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
37
37
|
leading?: ReactNode;
|
|
38
38
|
trailing?: ReactNode;
|
|
39
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement
|
|
39
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => boolean | undefined | void;
|
|
40
40
|
}
|
|
41
41
|
export interface DropdownMenuSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
42
42
|
header: ReactNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSectionProps } from './Dropdown.types';
|
|
3
|
-
|
|
3
|
+
import { StyledComponent } from 'styled-components';
|
|
4
|
+
export declare const DropdownSeparator: StyledComponent<"hr", any, {
|
|
4
5
|
'aria-hidden': true;
|
|
5
6
|
}, "aria-hidden">;
|
|
6
7
|
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export declare function DropdownMenuItem(props: DropdownMenuItemProps): JSX.Element;
|
|
8
|
-
export declare function DropdownMenuSection(props: DropdownMenuSectionProps): JSX.Element;
|
|
8
|
+
export declare function DropdownMenuItem(props: DropdownMenuItemProps): React.JSX.Element;
|
|
9
|
+
export declare function DropdownMenuSection(props: DropdownMenuSectionProps): React.JSX.Element;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { default as React, ButtonHTMLAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
import { DropdownTriggerProps, DropdownContextReturn } from './Dropdown.types';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorScheme } from '../../utils/types/ColorScheme';
|
|
4
4
|
export interface DropdownTriggerButtonProps extends Omit<DropdownTriggerProps, 'children'> {
|
|
5
|
-
children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
|
|
5
|
+
readonly children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
|
|
6
6
|
}
|
|
7
|
-
declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): JSX.Element;
|
|
8
|
-
declare function DropdownTriggerHandle(props: ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
7
|
+
declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): React.JSX.Element;
|
|
8
|
+
declare function DropdownTriggerHandle(props: ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
9
9
|
export interface GenericDropdownTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
scheme?: ColorScheme;
|
|
12
|
-
outlined?: boolean;
|
|
13
|
-
scale?: DropdownTriggerProps['scale'];
|
|
10
|
+
readonly disabled?: boolean;
|
|
11
|
+
readonly scheme?: ColorScheme;
|
|
12
|
+
readonly outlined?: boolean;
|
|
13
|
+
readonly scale?: DropdownTriggerProps['scale'];
|
|
14
14
|
}
|
|
15
|
-
export declare function GenericDropdownTrigger(props: GenericDropdownTriggerProps): JSX.Element;
|
|
16
|
-
declare function DropdownTrigger(props: DropdownTriggerProps): JSX.Element;
|
|
15
|
+
export declare function GenericDropdownTrigger(props: GenericDropdownTriggerProps): React.JSX.Element;
|
|
16
|
+
declare function DropdownTrigger(props: DropdownTriggerProps): React.JSX.Element;
|
|
17
17
|
declare namespace DropdownTrigger {
|
|
18
18
|
var Button: typeof DropdownTriggerButton;
|
|
19
19
|
var Handle: typeof DropdownTriggerHandle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { EmptyStateProps } from './EmptyState.types';
|
|
2
|
+
import { EmptyStateProps, IllustrationProps } from './EmptyState.types';
|
|
3
3
|
declare const EmptyState: {
|
|
4
|
-
(props: EmptyStateProps): JSX.Element;
|
|
5
|
-
Illustration: React.FC<
|
|
4
|
+
(props: EmptyStateProps): React.JSX.Element;
|
|
5
|
+
Illustration: React.FC< IllustrationProps>;
|
|
6
6
|
};
|
|
7
7
|
export default EmptyState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
export type EmptyStateCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
title?: string;
|
|
@@ -8,7 +8,7 @@ export type EmptyStateCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
8
8
|
};
|
|
9
9
|
export type EmptyStateWithIconProps = EmptyStateCommonProps & {
|
|
10
10
|
variant: 'card' | 'horizontal-card';
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: ReactNode;
|
|
12
12
|
};
|
|
13
13
|
export type EmptyStateWithIllustrationProps = EmptyStateCommonProps & {
|
|
14
14
|
variant: 'page' | 'panel';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, default as React } from 'react';
|
|
2
2
|
export type HighlightMatchProps = {
|
|
3
|
-
text: string;
|
|
4
|
-
match: string;
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly match: string;
|
|
5
5
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
6
|
-
declare const HighlightMatch: ({ text, match, ...props }: HighlightMatchProps) => JSX.Element;
|
|
6
|
+
declare const HighlightMatch: ({ text, match, ...props }: HighlightMatchProps) => React.JSX.Element;
|
|
7
7
|
export default HighlightMatch;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IconProps as GenericIconProps } from '../IconFactory';
|
|
1
|
+
import { IconProps as GenericIconProps, IconMapping } from '../IconFactory';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
2
3
|
declare const icons: {
|
|
3
4
|
'burguer-menu': any;
|
|
4
5
|
calendar: any;
|
|
@@ -22,6 +23,6 @@ declare const icons: {
|
|
|
22
23
|
'dots-horizontal': any;
|
|
23
24
|
'caret-right-last': any;
|
|
24
25
|
};
|
|
25
|
-
declare const Icon:
|
|
26
|
+
declare const Icon: ComponentType<GenericIconProps< IconMapping>>;
|
|
26
27
|
export type IconProps = GenericIconProps<typeof icons>;
|
|
27
28
|
export default Icon;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentType,
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { ThemeToken } from '../../theming';
|
|
3
3
|
type ThemeColors = keyof {
|
|
4
4
|
[ColorToken in ThemeToken as ColorToken extends `color-${infer Token}` ? Token : never]: ColorToken;
|
|
5
5
|
};
|
|
6
6
|
export interface IconProps<T> {
|
|
7
|
-
name: keyof T;
|
|
8
|
-
size?: string | number;
|
|
9
|
-
width?: string | number;
|
|
10
|
-
height?: string | number;
|
|
11
|
-
className?: string;
|
|
12
|
-
color?: ThemeColors;
|
|
7
|
+
readonly name: keyof T;
|
|
8
|
+
readonly size?: string | number;
|
|
9
|
+
readonly width?: string | number;
|
|
10
|
+
readonly height?: string | number;
|
|
11
|
+
readonly className?: string;
|
|
12
|
+
readonly color?: ThemeColors;
|
|
13
13
|
}
|
|
14
14
|
export type IconMapping = Record<string, ComponentType<Omit<IconProps<string>, 'name'>>>;
|
|
15
|
-
export declare function UnknownIcon():
|
|
15
|
+
export declare function UnknownIcon(): ReactNode;
|
|
16
16
|
declare function IconFactory(map: IconMapping): ComponentType<IconProps<typeof map>>;
|
|
17
17
|
export default IconFactory;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SVGAttributes } from 'react';
|
|
2
|
-
declare function Caret(props: SVGAttributes<HTMLOrSVGElement>): JSX.Element;
|
|
1
|
+
import { SVGAttributes, default as React } from 'react';
|
|
2
|
+
declare function Caret(props: SVGAttributes<HTMLOrSVGElement>): React.JSX.Element;
|
|
3
3
|
export declare const icons: {
|
|
4
|
-
clubs: () => JSX.Element;
|
|
5
|
-
spades: () => JSX.Element;
|
|
6
|
-
diams: () => JSX.Element;
|
|
7
|
-
hearts: () => JSX.Element;
|
|
4
|
+
clubs: () => React.JSX.Element;
|
|
5
|
+
spades: () => React.JSX.Element;
|
|
6
|
+
diams: () => React.JSX.Element;
|
|
7
|
+
hearts: () => React.JSX.Element;
|
|
8
8
|
caret: typeof Caret;
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { default as React, LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
3
|
import { TooltipProps } from '../Tooltip';
|
|
4
4
|
type AcceptedType = 'label' | 'div' | 'span';
|
|
5
5
|
interface WithAdditionalProps {
|
|
6
|
-
as?: AcceptedType;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
scheme?: ColorScheme;
|
|
10
|
-
tip?: ReactNode;
|
|
11
|
-
tipProps?: Omit<TooltipProps, 'message'>;
|
|
6
|
+
readonly as?: AcceptedType;
|
|
7
|
+
readonly disabled?: boolean;
|
|
8
|
+
readonly required?: boolean;
|
|
9
|
+
readonly scheme?: ColorScheme;
|
|
10
|
+
readonly tip?: ReactNode;
|
|
11
|
+
readonly tipProps?: Omit<TooltipProps, 'message'>;
|
|
12
12
|
}
|
|
13
13
|
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement | HTMLDivElement | HTMLSpanElement>, WithAdditionalProps {
|
|
14
|
-
className?: string;
|
|
14
|
+
readonly className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare function Label({ as, children, className, disabled, required, scheme, tip, tipProps, ...others }: LabelProps): JSX.Element;
|
|
16
|
+
declare function Label({ as, children, className, disabled, required, scheme, tip, tipProps, ...others }: LabelProps): React.JSX.Element;
|
|
17
17
|
export default Label;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
1
2
|
import { Spacing } from './Layout.types';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
3
|
export interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
background?: 'transparent' | 'neutral-white' | 'neutral-lighter' | 'neutral-lightest';
|
|
5
|
-
padding?: Spacing;
|
|
6
|
-
borderRadius?: 'none' | 's' | 'm' | 'l';
|
|
7
|
-
borderWidth?: 'medium' | 'thin' | 'none';
|
|
8
|
-
borderColor?: 'neutral-darker' | 'neutral-light' | 'neutral-lighter' | 'neutral-white' | 'primary';
|
|
9
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
4
|
+
readonly background?: 'transparent' | 'neutral-white' | 'neutral-lighter' | 'neutral-lightest';
|
|
5
|
+
readonly padding?: Spacing;
|
|
6
|
+
readonly borderRadius?: 'none' | 's' | 'm' | 'l';
|
|
7
|
+
readonly borderWidth?: 'medium' | 'thin' | 'none';
|
|
8
|
+
readonly borderColor?: 'neutral-darker' | 'neutral-light' | 'neutral-lighter' | 'neutral-white' | 'primary';
|
|
9
|
+
readonly textAlign?: 'left' | 'center' | 'right';
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Box layout component.
|
|
13
|
-
* @param {BoxProps} props
|
|
14
13
|
*/
|
|
15
|
-
export declare function Box(props: BoxProps): JSX.Element;
|
|
14
|
+
export declare function Box(props: BoxProps): React.JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
1
2
|
import { Spacing } from './Layout.types';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
3
|
export interface GridProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
space?: Spacing;
|
|
5
|
-
minColumnWidth?: string;
|
|
4
|
+
readonly space?: Spacing;
|
|
5
|
+
readonly minColumnWidth?: string;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Grid layout component.
|
|
9
|
-
* @param {GridProps} props
|
|
10
9
|
*/
|
|
11
|
-
export declare function Grid(props: GridProps): JSX.Element;
|
|
10
|
+
export declare function Grid(props: GridProps): React.JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
2
|
import { Spacing, JustifyValue, AlignValue } from './Layout.types';
|
|
3
3
|
export interface GroupProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
space?: Spacing;
|
|
5
|
-
justify?: JustifyValue;
|
|
6
|
-
align?: AlignValue;
|
|
7
|
-
as?: string | React.ComponentType<any>;
|
|
4
|
+
readonly space?: Spacing;
|
|
5
|
+
readonly justify?: JustifyValue;
|
|
6
|
+
readonly align?: AlignValue;
|
|
7
|
+
readonly as?: string | React.ComponentType<any>;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Group layout component.
|
|
11
|
-
* @param {GroupProps} props
|
|
12
11
|
*/
|
|
13
|
-
export declare function Group(props: GroupProps): JSX.Element;
|
|
12
|
+
export declare function Group(props: GroupProps): React.JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
1
2
|
import { Spacing } from './Layout.types';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
3
|
export interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
space?: Spacing;
|
|
5
|
-
reversed?: boolean;
|
|
6
|
-
sideWidth?: string;
|
|
7
|
-
minContentWidth?: string;
|
|
4
|
+
readonly space?: Spacing;
|
|
5
|
+
readonly reversed?: boolean;
|
|
6
|
+
readonly sideWidth?: string;
|
|
7
|
+
readonly minContentWidth?: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Sidebar layout component.
|
|
11
|
-
* @param {SidebarProps} props
|
|
12
11
|
*/
|
|
13
|
-
export declare function Sidebar(props: SidebarProps): JSX.Element;
|
|
12
|
+
export declare function Sidebar(props: SidebarProps): React.JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
2
|
import { Spacing, JustifyValue, AlignValue } from './Layout.types';
|
|
3
|
+
import { StyledComponent } from 'styled-components';
|
|
3
4
|
export interface StackProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
space?: Spacing;
|
|
5
|
-
justify?: JustifyValue;
|
|
6
|
-
align?: AlignValue;
|
|
7
|
-
as?: string | React.ComponentType<any>;
|
|
5
|
+
readonly space?: Spacing;
|
|
6
|
+
readonly justify?: JustifyValue;
|
|
7
|
+
readonly align?: AlignValue;
|
|
8
|
+
readonly as?: string | React.ComponentType<any>;
|
|
8
9
|
}
|
|
9
|
-
export declare const StackContainer:
|
|
10
|
+
export declare const StackContainer: StyledComponent<"div", any, {
|
|
10
11
|
$space: StackProps["space"];
|
|
11
12
|
$justify: StackProps["justify"];
|
|
12
13
|
$align: StackProps["align"];
|
|
13
14
|
}, never>;
|
|
14
15
|
/**
|
|
15
16
|
* Stack layout component.
|
|
16
|
-
* @param {StackProps} props
|
|
17
17
|
*/
|
|
18
|
-
export declare function Stack(props: StackProps): JSX.Element;
|
|
18
|
+
export declare function Stack(props: StackProps): React.JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
1
2
|
import { Spacing } from './Layout.types';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
3
|
export interface SwitcherProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
space?: Spacing;
|
|
5
|
-
threshold?: string;
|
|
6
|
-
limit?: number;
|
|
4
|
+
readonly space?: Spacing;
|
|
5
|
+
readonly threshold?: string;
|
|
6
|
+
readonly limit?: number;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Switcher layout component.
|
|
10
|
-
* @param {SwitcherProps} props
|
|
11
10
|
*/
|
|
12
|
-
export declare function Switcher(props: SwitcherProps): JSX.Element;
|
|
11
|
+
export declare function Switcher(props: SwitcherProps): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
-
className?: string;
|
|
4
|
-
disabled?: boolean;
|
|
3
|
+
readonly className?: string;
|
|
4
|
+
readonly disabled?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const BaseLink: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
|
-
declare function Link(props: LinkProps): JSX.Element;
|
|
7
|
+
declare function Link(props: LinkProps): React.JSX.Element;
|
|
8
8
|
export default Link;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { StyledComponent } from 'styled-components';
|
|
3
|
+
export declare const Bar: StyledComponent<"div", any, {
|
|
3
4
|
width?: number;
|
|
4
5
|
velocity?: number;
|
|
5
6
|
}, never>;
|
|
6
7
|
export interface LoadingBarProps {
|
|
7
|
-
alignment?: 'left' | 'center' | 'right';
|
|
8
|
-
title?: React.ReactNode;
|
|
9
|
-
secondaryTitle?: React.ReactNode;
|
|
10
|
-
width?: number | undefined;
|
|
11
|
-
velocity?: number | undefined;
|
|
8
|
+
readonly alignment?: 'left' | 'center' | 'right';
|
|
9
|
+
readonly title?: React.ReactNode;
|
|
10
|
+
readonly secondaryTitle?: React.ReactNode;
|
|
11
|
+
readonly width?: number | undefined;
|
|
12
|
+
readonly velocity?: number | undefined;
|
|
12
13
|
}
|
|
13
|
-
export default function LoadingBar({ alignment, title, secondaryTitle, width, velocity, }: LoadingBarProps): JSX.Element;
|
|
14
|
+
export default function LoadingBar({ alignment, title, secondaryTitle, width, velocity, }: LoadingBarProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
export interface LoadingDotsProps {
|
|
2
|
-
size?: number;
|
|
3
|
-
variant?: 'dark' | 'light';
|
|
3
|
+
readonly size?: number;
|
|
4
|
+
readonly variant?: 'dark' | 'light';
|
|
4
5
|
}
|
|
5
|
-
export default function LoadingDots({ size, variant, ...props }: LoadingDotsProps): JSX.Element;
|
|
6
|
+
export default function LoadingDots({ size, variant, ...props }: LoadingDotsProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
export interface SpinnerProps {
|
|
2
|
-
title?: string;
|
|
3
|
-
size: number;
|
|
3
|
+
readonly title?: string;
|
|
4
|
+
readonly size: number;
|
|
4
5
|
}
|
|
5
|
-
export default function Spinner({ title, size, ...props }: SpinnerProps): JSX.Element;
|
|
6
|
+
export default function Spinner({ title, size, ...props }: SpinnerProps): React.JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
2
|
-
import { default as CloseButton } from '../../common/CloseButton';
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
3
2
|
interface WithScaleProps {
|
|
4
3
|
scale?: 'small' | 'default' | 'large';
|
|
5
4
|
}
|
|
@@ -10,13 +9,11 @@ export interface ModalProps extends WithScaleProps {
|
|
|
10
9
|
fullscreen?: boolean;
|
|
11
10
|
onOverlayClick?: () => void;
|
|
12
11
|
}
|
|
13
|
-
declare function Modal({ scale, children, open, fullscreen, onOverlayClick, ...others }: PropsWithChildren<ModalProps>):
|
|
12
|
+
declare function Modal({ scale, children, open, fullscreen, onOverlayClick, ...others }: PropsWithChildren<ModalProps>): React.ReactPortal;
|
|
14
13
|
declare namespace Modal {
|
|
15
14
|
var Header: ({ title, children }: PropsWithChildren<{
|
|
16
|
-
title: string;
|
|
15
|
+
readonly title: string;
|
|
17
16
|
}>) => React.JSX.Element;
|
|
18
|
-
var Close: import("styled-components").StyledComponent<
|
|
19
|
-
size: 16;
|
|
20
|
-
}, "size">;
|
|
17
|
+
var Close: import("styled-components").StyledComponent<any, any, any, any>;
|
|
21
18
|
}
|
|
22
19
|
export default Modal;
|