@loadsmart/loadsmart-ui 8.0.0 → 8.0.1
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 +8 -8
- package/dist/components/Accordion/Accordion.context.d.ts +6 -6
- package/dist/components/Accordion/Accordion.d.ts +11 -11
- package/dist/components/Accordion/Accordion.stories.d.ts +5 -4
- package/dist/components/Banner/Banner.d.ts +14 -14
- package/dist/components/Banner/Banner.stories.d.ts +11 -11
- 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 +8 -8
- package/dist/components/Button/Button.stories.d.ts +7 -7
- package/dist/components/Calendar/Calendar.d.ts +3 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +3 -2
- 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 +2 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +2 -1
- 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 +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +6 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -1
- package/dist/components/DatePicker/DateRangePicker.d.ts +2 -1
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -1
- package/dist/components/Dialog/Dialog.d.ts +13 -13
- package/dist/components/Dialog/Dialog.stories.d.ts +10 -9
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +1 -1
- package/dist/components/DragDropFile/DragDropFile.d.ts +2 -2
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +5 -4
- 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/types.d.ts +4 -4
- package/dist/components/Drawer/Drawer.d.ts +7 -7
- 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 +2 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts +9 -9
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +8 -7
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +3 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +4 -4
- 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 +9 -9
- package/dist/components/Label/Label.stories.d.ts +2 -1
- 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/Layout.stories.d.ts +8 -7
- package/dist/components/Layout/Sidebar.d.ts +6 -7
- package/dist/components/Layout/Stack.d.ts +5 -6
- package/dist/components/Layout/Switcher.d.ts +5 -6
- package/dist/components/Link/Link.d.ts +3 -3
- package/dist/components/Link/Link.stories.d.ts +2 -1
- package/dist/components/Loaders/LoadingBar.d.ts +6 -6
- 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 +3 -3
- package/dist/components/Modal/Modal.stories.d.ts +4 -3
- 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/ProgressBar/ProgressBar.stories.d.ts +2 -1
- package/dist/components/Radio/Radio.d.ts +6 -6
- package/dist/components/Radio/Radio.stories.d.ts +2 -1
- package/dist/components/Section/Section.d.ts +4 -4
- package/dist/components/Section/Sections.stories.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +1 -1
- 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/useSelect.d.ts +0 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +4 -4
- package/dist/components/SideNavigation/Menu/Menu.d.ts +5 -5
- 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 +5 -5
- package/dist/components/SideNavigation/Separator/Separator.d.ts +3 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +13 -13
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +2 -1
- 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 +7 -7
- package/dist/components/Steps/Steps.types.d.ts +2 -2
- package/dist/components/Steps/StepsStep.d.ts +4 -4
- 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 +5 -5
- package/dist/components/Table/Table.d.ts +14 -13
- package/dist/components/Table/Table.stories.d.ts +7 -6
- 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/TablePaginationActions.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +10 -10
- package/dist/components/Tabs/Tabs.stories.d.ts +3 -2
- package/dist/components/Tag/Tag.d.ts +11 -11
- package/dist/components/Tag/Tag.stories.d.ts +5 -5
- package/dist/components/TextField/TextField.d.ts +7 -7
- package/dist/components/TextField/TextField.stories.d.ts +2 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -7
- package/dist/components/Textarea/Textarea.stories.d.ts +2 -1
- package/dist/components/Toast/Toast.d.ts +7 -7
- package/dist/components/Toast/Toast.stories.d.ts +2 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +2 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -3
- package/dist/components/TopNavigation/Logo/Logo.d.ts +4 -4
- package/dist/components/TopNavigation/Menu/Menu.d.ts +7 -7
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +7 -7
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +6 -5
- package/dist/components/TopNavigation/TopNavigation.d.ts +5 -5
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +2 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.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 +6 -7
- 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 +5 -4
- 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/package.json +53 -56
- package/dist/miranda-compatibility.theme-kYNEZ7mW.js.map +0 -1
- package/dist/prop-K2Z3EsyG.js.map +0 -1
- package/dist/toArray-Dxb1kUxx.js +0 -14
- package/dist/toArray-Dxb1kUxx.js.map +0 -1
- package/dist/utils/toolset/flatten.d.ts +0 -2
- package/dist/utils/toolset/isThenable.d.ts +0 -5
- package/dist/utils/toolset/isThenable.test.d.ts +0 -1
|
@@ -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 {
|
|
1
|
+
import { default as React, LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { default as 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,8 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { LabelProps } from './Label';
|
|
2
3
|
import { Meta } from '@storybook/react';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: LabelProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: LabelProps): React.JSX.Element;
|
|
6
7
|
export declare namespace Playground {
|
|
7
8
|
var args: {
|
|
8
9
|
children: string;
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { BoxProps } from './Box';
|
|
3
4
|
import { SidebarProps } from './Sidebar';
|
|
@@ -6,13 +7,13 @@ import { SwitcherProps } from './Switcher';
|
|
|
6
7
|
import { GridProps } from './Grid';
|
|
7
8
|
declare const _default: Meta;
|
|
8
9
|
export default _default;
|
|
9
|
-
export declare function Playground(): JSX.Element;
|
|
10
|
+
export declare function Playground(): React.JSX.Element;
|
|
10
11
|
export declare namespace Playground {
|
|
11
12
|
var args: {
|
|
12
13
|
space: string;
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
|
-
export declare function Stack(args: StackProps): JSX.Element;
|
|
16
|
+
export declare function Stack(args: StackProps): React.JSX.Element;
|
|
16
17
|
export declare namespace Stack {
|
|
17
18
|
var parameters: {
|
|
18
19
|
docs: {
|
|
@@ -47,7 +48,7 @@ export declare namespace Stack {
|
|
|
47
48
|
align: string;
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
export declare function Group(args: BoxProps): JSX.Element;
|
|
51
|
+
export declare function Group(args: BoxProps): React.JSX.Element;
|
|
51
52
|
export declare namespace Group {
|
|
52
53
|
var parameters: {
|
|
53
54
|
docs: {
|
|
@@ -82,7 +83,7 @@ export declare namespace Group {
|
|
|
82
83
|
align: string;
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
export declare function Box(args: BoxProps): JSX.Element;
|
|
86
|
+
export declare function Box(args: BoxProps): React.JSX.Element;
|
|
86
87
|
export declare namespace Box {
|
|
87
88
|
var args: {
|
|
88
89
|
background: string;
|
|
@@ -99,7 +100,7 @@ export declare namespace Box {
|
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
102
|
}
|
|
102
|
-
export declare function Sidebar(args: SidebarProps): JSX.Element;
|
|
103
|
+
export declare function Sidebar(args: SidebarProps): React.JSX.Element;
|
|
103
104
|
export declare namespace Sidebar {
|
|
104
105
|
var args: {
|
|
105
106
|
space: string;
|
|
@@ -115,7 +116,7 @@ export declare namespace Sidebar {
|
|
|
115
116
|
};
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
|
-
export declare function Switcher(args: SwitcherProps): JSX.Element;
|
|
119
|
+
export declare function Switcher(args: SwitcherProps): React.JSX.Element;
|
|
119
120
|
export declare namespace Switcher {
|
|
120
121
|
var args: {
|
|
121
122
|
space: string;
|
|
@@ -130,7 +131,7 @@ export declare namespace Switcher {
|
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
export declare function Grid(args: GridProps): JSX.Element;
|
|
134
|
+
export declare function Grid(args: GridProps): React.JSX.Element;
|
|
134
135
|
export declare namespace Grid {
|
|
135
136
|
var args: {
|
|
136
137
|
space: string;
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
2
|
import { Spacing, JustifyValue, AlignValue } from './Layout.types';
|
|
3
3
|
export interface StackProps 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
|
export declare const StackContainer: import('styled-components').StyledComponent<"div", any, {
|
|
10
10
|
$space: StackProps["space"];
|
|
@@ -13,6 +13,5 @@ export declare const StackContainer: import('styled-components').StyledComponent
|
|
|
13
13
|
}, never>;
|
|
14
14
|
/**
|
|
15
15
|
* Stack layout component.
|
|
16
|
-
* @param {StackProps} props
|
|
17
16
|
*/
|
|
18
|
-
export declare function Stack(props: StackProps): JSX.Element;
|
|
17
|
+
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,5 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { LinkProps } from './Link';
|
|
2
3
|
import { Meta } from '@storybook/react';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: LinkProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: LinkProps): React.JSX.Element;
|
|
@@ -4,10 +4,10 @@ export declare const Bar: import('styled-components').StyledComponent<"div", any
|
|
|
4
4
|
velocity?: number;
|
|
5
5
|
}, never>;
|
|
6
6
|
export interface LoadingBarProps {
|
|
7
|
-
alignment?: 'left' | 'center' | 'right';
|
|
8
|
-
title?: React.ReactNode;
|
|
9
|
-
secondaryTitle?: React.ReactNode;
|
|
10
|
-
width?: number | undefined;
|
|
11
|
-
velocity?: number | undefined;
|
|
7
|
+
readonly alignment?: 'left' | 'center' | 'right';
|
|
8
|
+
readonly title?: React.ReactNode;
|
|
9
|
+
readonly secondaryTitle?: React.ReactNode;
|
|
10
|
+
readonly width?: number | undefined;
|
|
11
|
+
readonly velocity?: number | undefined;
|
|
12
12
|
}
|
|
13
|
-
export default function LoadingBar({ alignment, title, secondaryTitle, width, velocity, }: LoadingBarProps): JSX.Element;
|
|
13
|
+
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,4 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
2
|
import { default as CloseButton } from '../../common/CloseButton';
|
|
3
3
|
interface WithScaleProps {
|
|
4
4
|
scale?: 'small' | 'default' | 'large';
|
|
@@ -10,10 +10,10 @@ export interface ModalProps extends WithScaleProps {
|
|
|
10
10
|
fullscreen?: boolean;
|
|
11
11
|
onOverlayClick?: () => void;
|
|
12
12
|
}
|
|
13
|
-
declare function Modal({ scale, children, open, fullscreen, onOverlayClick, ...others }: PropsWithChildren<ModalProps>):
|
|
13
|
+
declare function Modal({ scale, children, open, fullscreen, onOverlayClick, ...others }: PropsWithChildren<ModalProps>): React.ReactPortal;
|
|
14
14
|
declare namespace Modal {
|
|
15
15
|
var Header: ({ title, children }: PropsWithChildren<{
|
|
16
|
-
title: string;
|
|
16
|
+
readonly title: string;
|
|
17
17
|
}>) => React.JSX.Element;
|
|
18
18
|
var Close: import("styled-components").StyledComponent<typeof CloseButton, any, {
|
|
19
19
|
size: 16;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { ModalProps } from './Modal';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function WithoutHeader(args: ModalProps): JSX.Element;
|
|
6
|
+
export declare function WithoutHeader(args: ModalProps): React.JSX.Element;
|
|
6
7
|
export declare namespace WithoutHeader {
|
|
7
8
|
var args: {
|
|
8
9
|
scale: string;
|
|
@@ -10,7 +11,7 @@ export declare namespace WithoutHeader {
|
|
|
10
11
|
fullscreen: boolean;
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
export declare function WithHeader(args: ModalProps): JSX.Element;
|
|
14
|
+
export declare function WithHeader(args: ModalProps): React.JSX.Element;
|
|
14
15
|
export declare namespace WithHeader {
|
|
15
16
|
var args: {
|
|
16
17
|
scale: string;
|
|
@@ -19,7 +20,7 @@ export declare namespace WithHeader {
|
|
|
19
20
|
title: string;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
|
-
export declare function WithCloseButton(args: ModalProps): JSX.Element;
|
|
23
|
+
export declare function WithCloseButton(args: ModalProps): React.JSX.Element;
|
|
23
24
|
export declare namespace WithCloseButton {
|
|
24
25
|
var args: {
|
|
25
26
|
scale: string;
|
|
@@ -29,20 +29,20 @@ export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, 'onChange'> & {
|
|
|
29
29
|
siblingCount?: number;
|
|
30
30
|
};
|
|
31
31
|
export type usePaginationProps = Pick<PaginationProps, 'boundaryCount' | 'count' | 'disabled' | 'onChange' | 'page' | 'siblingCount'>;
|
|
32
|
-
export
|
|
32
|
+
export interface usePaginationReturn {
|
|
33
33
|
'aria-current'?: boolean | undefined;
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
itemType: string;
|
|
36
36
|
onClick: () => void;
|
|
37
37
|
page: number | null;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
export type PaginationItemProps = ButtonProps & {
|
|
40
40
|
itemType: string;
|
|
41
41
|
page: number | null;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
43
|
+
export interface PaginationHelperArgs {
|
|
44
44
|
boundaryCount: number;
|
|
45
45
|
count: number;
|
|
46
46
|
page: number;
|
|
47
47
|
siblingCount: number;
|
|
48
|
-
}
|
|
48
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { PaginationItemProps } from './Pagination.types';
|
|
2
|
-
declare function PaginationItem(props: PaginationItemProps): JSX.Element;
|
|
3
|
+
declare function PaginationItem(props: PaginationItemProps): React.JSX.Element;
|
|
3
4
|
export default PaginationItem;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { PopoverFloatingProps, PopoverProps, PopoverReferenceProps, UsePopoverReturn } from './Popover.types';
|
|
2
3
|
export declare function usePopover(): UsePopoverReturn;
|
|
3
|
-
declare function Popover(props: PopoverProps): JSX.Element;
|
|
4
|
+
declare function Popover(props: PopoverProps): React.JSX.Element;
|
|
4
5
|
declare namespace Popover {
|
|
5
6
|
var Floating: typeof PopoverFloating;
|
|
6
7
|
var Reference: typeof PopoverReference;
|
|
7
8
|
}
|
|
8
|
-
declare function PopoverReference({ children, ...others }: PopoverReferenceProps): JSX.Element;
|
|
9
|
-
declare function PopoverFloating({ children, style, ...others }: PopoverFloatingProps): JSX.Element;
|
|
9
|
+
declare function PopoverReference({ children, ...others }: PopoverReferenceProps): React.JSX.Element;
|
|
10
|
+
declare function PopoverFloating({ children, style, ...others }: PopoverFloatingProps): React.JSX.Element;
|
|
10
11
|
export default Popover;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseHTMLAttributes } from 'react';
|
|
1
|
+
import { BaseHTMLAttributes, default as React } from 'react';
|
|
2
2
|
export interface ProgressBarProps extends BaseHTMLAttributes<HTMLDivElement> {
|
|
3
|
-
value?: number;
|
|
4
|
-
status?: string;
|
|
5
|
-
rounded?: boolean;
|
|
6
|
-
showLine?: boolean;
|
|
3
|
+
readonly value?: number;
|
|
4
|
+
readonly status?: string;
|
|
5
|
+
readonly rounded?: boolean;
|
|
6
|
+
readonly showLine?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function ProgressBar({ value, status, rounded, showLine, ...extra }: ProgressBarProps): JSX.Element;
|
|
8
|
+
export declare function ProgressBar({ value, status, rounded, showLine, ...extra }: ProgressBarProps): React.JSX.Element;
|
|
9
9
|
export default ProgressBar;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ProgressBarProps } from './ProgressBar';
|
|
2
3
|
import { Meta } from '@storybook/react';
|
|
3
4
|
import { default as Status } from '../../utils/types/Status';
|
|
4
5
|
declare const _default: Meta;
|
|
5
6
|
export default _default;
|
|
6
|
-
export declare function Playground(args: ProgressBarProps): JSX.Element;
|
|
7
|
+
export declare function Playground(args: ProgressBarProps): React.JSX.Element;
|
|
7
8
|
export declare namespace Playground {
|
|
8
9
|
var args: {
|
|
9
10
|
value: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { InputHTMLAttributes, ReactNode, default as React } from 'react';
|
|
2
2
|
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
3
|
import { SelectionStyleProps } from '../../common/SelectionWrapper';
|
|
4
|
-
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement>, SelectionStyleProps {
|
|
5
|
-
leading?: ReactNode;
|
|
6
|
-
scheme?: ColorScheme;
|
|
7
|
-
trailing?: ReactNode;
|
|
4
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled'>, SelectionStyleProps {
|
|
5
|
+
readonly leading?: ReactNode;
|
|
6
|
+
readonly scheme?: ColorScheme;
|
|
7
|
+
readonly trailing?: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare function Radio({ className, disabled, children, leading, trailing, scheme, ...others }: RadioProps): JSX.Element;
|
|
9
|
+
declare function Radio({ className, disabled, children, leading, trailing, scheme, ...others }: RadioProps): React.JSX.Element;
|
|
10
10
|
export default Radio;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { RadioProps } from './Radio';
|
|
2
3
|
import { Meta } from '@storybook/react';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: RadioProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: RadioProps): React.JSX.Element;
|
|
6
7
|
export declare namespace Playground {
|
|
7
8
|
var args: {};
|
|
8
9
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { HTMLAttributes, ReactNode, default as React } from 'react';
|
|
2
2
|
export type SectionProps = HTMLAttributes<HTMLElement>;
|
|
3
3
|
export interface SectionTitleProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
leading?: ReactNode;
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
readonly leading?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
declare function SectionTitle({ children, leading, ...others }: SectionTitleProps): React.JSX.Element;
|
|
8
|
-
declare function Section({ children, ...others }: SectionProps): JSX.Element;
|
|
8
|
+
declare function Section({ children, ...others }: SectionProps): React.JSX.Element;
|
|
9
9
|
declare namespace Section {
|
|
10
10
|
var Title: typeof SectionTitle;
|
|
11
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { SectionProps } from './Section';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: SectionProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: SectionProps): React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { default as SelectOption } from './SelectOption';
|
|
|
3
3
|
import { default as SelectEmpty } from './SelectEmpty';
|
|
4
4
|
import { default as SelectCreatableOption } from './SelectCreatableOption';
|
|
5
5
|
import { SelectProps } from './Select.types';
|
|
6
|
-
declare function Select(props: SelectProps): JSX.Element;
|
|
6
|
+
declare function Select(props: SelectProps): React.JSX.Element;
|
|
7
7
|
declare namespace Select {
|
|
8
8
|
var Trigger: React.ForwardRefExoticComponent<import("../TextField").TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
var Option: typeof SelectOption;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SelectableKeyType } from '../../hooks/useSelectable';
|
|
2
2
|
import { SelectDatasource } from './Select.types';
|
|
3
|
-
export
|
|
3
|
+
export interface Fruit {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
6
|
family: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
7
|
+
}
|
|
8
|
+
export interface User {
|
|
9
9
|
uuid: string;
|
|
10
10
|
name: string;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
export type Customer = User;
|
|
13
13
|
export declare const SelectableKeyTypeOptions: {
|
|
14
14
|
label: string;
|
|
@@ -3,7 +3,7 @@ import { DropdownMenuItemProps, DropdownProps } from '../Dropdown';
|
|
|
3
3
|
import { TextFieldProps } from '../TextField';
|
|
4
4
|
import { Selectable, SelectableAdapter, SelectableKeyType, SelectableState } from '../../hooks/useSelectable';
|
|
5
5
|
import { useSelectableReturn } from '../../hooks/useSelectable/useSelectable.types';
|
|
6
|
-
import { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes } from 'react';
|
|
6
|
+
import { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes, ReactNode } from 'react';
|
|
7
7
|
export type Option = Selectable;
|
|
8
8
|
export interface GenericOption {
|
|
9
9
|
label: string;
|
|
@@ -29,27 +29,27 @@ export interface SelectAdapter<T> extends SelectableAdapter<T> {
|
|
|
29
29
|
getLabel: (o: T) => string;
|
|
30
30
|
}
|
|
31
31
|
export type Adapters = Record<string, SelectAdapter<any>>;
|
|
32
|
-
export
|
|
32
|
+
export interface SelectDatasource<T> {
|
|
33
33
|
type: string;
|
|
34
34
|
adapter: SelectAdapter<T>;
|
|
35
35
|
fetch: ({ query, regex }: {
|
|
36
36
|
query: string;
|
|
37
37
|
regex: RegExp;
|
|
38
38
|
}) => T[] | Promise<T[]>;
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
40
|
export type SelectDatasourceFunction<T> = () => SelectDatasource<T>;
|
|
41
|
-
export
|
|
41
|
+
export interface SelectComponentsOptionProps {
|
|
42
42
|
value: SelectOptionProps['value'];
|
|
43
|
-
}
|
|
44
|
-
export
|
|
43
|
+
}
|
|
44
|
+
export interface SelectComponentsEmptyProps {
|
|
45
45
|
children: SelectEmptyProps['children'];
|
|
46
|
-
}
|
|
47
|
-
export type CreatableOptionType = () =>
|
|
48
|
-
export
|
|
46
|
+
}
|
|
47
|
+
export type CreatableOptionType = () => ReactNode | null;
|
|
48
|
+
export interface Components {
|
|
49
49
|
Option?: ComponentType<SelectComponentsOptionProps>;
|
|
50
50
|
Empty?: ComponentType<SelectComponentsEmptyProps>;
|
|
51
51
|
CreatableOption?: CreatableOptionType;
|
|
52
|
-
}
|
|
52
|
+
}
|
|
53
53
|
export type CreateOptionPosition = 'first' | 'last';
|
|
54
54
|
export type OnChange = (event: EventLike<Option | Option[] | null>) => void;
|
|
55
55
|
export type OnCreate = (query: string) => Promise<void | Option> | void | Option;
|
|
@@ -81,7 +81,7 @@ export type SelectEmptyProps = HTMLAttributes<HTMLDivElement>;
|
|
|
81
81
|
export type SelectCreatableOptionProps = Omit<DropdownMenuItemProps, keyof CreatableProps>;
|
|
82
82
|
export type SelectStatus = 'idle' | 'querying' | 'pending-query' | 'queried';
|
|
83
83
|
export type SelectTriggerProps = TextFieldProps;
|
|
84
|
-
export
|
|
84
|
+
export interface useSelectReturn {
|
|
85
85
|
status: SelectStatus;
|
|
86
86
|
options: Option[];
|
|
87
87
|
value: Selectable | Selectable[] | null;
|
|
@@ -114,9 +114,9 @@ export type useSelectReturn = {
|
|
|
114
114
|
getCreatebleProps: () => CreatableProps;
|
|
115
115
|
isCreatable: () => boolean;
|
|
116
116
|
createOptionPosition?: CreateOptionPosition;
|
|
117
|
-
}
|
|
118
|
-
export
|
|
117
|
+
}
|
|
118
|
+
export interface useSelectExternalReturn {
|
|
119
119
|
getOption: useSelectReturn['getOption'];
|
|
120
120
|
query: useSelectReturn['query'];
|
|
121
121
|
isChecked: (option: Option) => boolean;
|
|
122
|
-
}
|
|
122
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SelectCreatableOptionProps } from './Select.types';
|
|
2
|
-
declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): JSX.Element;
|
|
3
|
+
declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): React.JSX.Element;
|
|
3
4
|
export default SelectCreatableOption;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SelectEmptyProps } from './Select.types';
|
|
2
|
-
declare function SelectEmpty({ children, ...others }: SelectEmptyProps): JSX.Element;
|
|
3
|
+
declare function SelectEmpty({ children, ...others }: SelectEmptyProps): React.JSX.Element;
|
|
3
4
|
export default SelectEmpty;
|