react-magma-dom 4.10.1-next.0 → 5.0.1-rc.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/components/AIButton/AIButton.stories.d.ts +37 -0
- package/dist/components/AIButton/StyledAIButtonTemplate.d.ts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +4 -3
- package/dist/components/Accordion/Accordion.stories.d.ts +49 -0
- package/dist/components/Accordion/AccordionButton.d.ts +4 -3
- package/dist/components/Accordion/AccordionItem.d.ts +4 -3
- package/dist/components/Accordion/AccordionPanel.d.ts +4 -3
- package/dist/components/Alert/Alert.stories.d.ts +5 -0
- package/dist/components/Alert/index.d.ts +4 -3
- package/dist/components/AlertBase/index.d.ts +1 -1
- package/dist/components/Announce/Announce.stories.d.ts +4 -0
- package/dist/components/Announce/index.d.ts +5 -4
- package/dist/components/AppBar/AppBar.d.ts +4 -3
- package/dist/components/AppBar/AppBar.stories.d.ts +21 -0
- package/dist/components/Badge/Badge.stories.d.ts +5 -0
- package/dist/components/Badge/index.d.ts +4 -3
- package/dist/components/Banner/Banner.stories.d.ts +15 -0
- package/dist/components/Banner/index.d.ts +4 -3
- package/dist/components/BlockQuote/BlockQuote.d.ts +4 -3
- package/dist/components/BlockQuote/BlockQuote.stories.d.ts +17 -0
- package/dist/components/BlockQuote/BlockQuoteItem.d.ts +4 -3
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +4 -3
- package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +17 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +4 -3
- package/dist/components/BreakpointsContainer/BreakpointsContainer.stories.d.ts +4 -0
- package/dist/components/BreakpointsContainer/index.d.ts +4 -3
- package/dist/components/Button/Button.stories.d.ts +42 -0
- package/dist/components/Button/index.d.ts +4 -3
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +24 -0
- package/dist/components/ButtonGroup/index.d.ts +4 -3
- package/dist/components/Card/Card.d.ts +4 -3
- package/dist/components/Card/Card.stories.d.ts +13 -0
- package/dist/components/Card/CardBody.d.ts +4 -3
- package/dist/components/Card/CardHeading.d.ts +4 -3
- package/dist/components/CharacterCounter/CharacterCounter.stories.d.ts +39 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/components/Checkbox/index.d.ts +3 -3
- package/dist/components/Combobox/Combobox.stories.d.ts +142 -0
- package/dist/components/Container/Container.d.ts +4 -3
- package/dist/components/Container/Container.stories.d.ts +34 -0
- package/dist/components/Datagrid/Datagrid.d.ts +4 -3
- package/dist/components/Datagrid/Datagrid.stories.d.ts +296 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts +36 -0
- package/dist/components/DatePicker/StyledSelect.d.ts +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.stories.d.ts +25 -0
- package/dist/components/DefinitionList/DefinitionList.stories.d.ts +32 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +36 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts +76 -0
- package/dist/components/Dropdown/DropdownContent.d.ts +4 -3
- package/dist/components/Dropdown/DropdownExpandableMenuPanel.d.ts +3 -2
- package/dist/components/Dropdown/DropdownHeader.d.ts +4 -3
- package/dist/components/Dropdown/DropdownMenuGroup.d.ts +4 -3
- package/dist/components/Dropdown/DropdownMenuItem.d.ts +1 -1
- package/dist/components/Flex/Flex.d.ts +4 -3
- package/dist/components/Flex/Flex.stories.d.ts +46 -0
- package/dist/components/Form/Form.stories.d.ts +27 -0
- package/dist/components/Form/index.d.ts +4 -3
- package/dist/components/FormGroup/FormGroup.stories.d.ts +4 -0
- package/dist/components/FormGroup/index.d.ts +4 -3
- package/dist/components/Grid/Grid.d.ts +14 -12
- package/dist/components/Grid/Grid.stories.d.ts +6 -0
- package/dist/components/Heading/Heading.stories.d.ts +14 -0
- package/dist/components/Heading/index.d.ts +5 -4
- package/dist/components/HideAtBreakpoint/HideAtBreakpoint.stories.d.ts +4 -0
- package/dist/components/HideAtBreakpoint/index.d.ts +4 -3
- package/dist/components/Hyperlink/Hyperlink.stories.d.ts +33 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +75 -0
- package/dist/components/IndeterminateCheckbox/IndeterminateCheckbox.stories.d.ts +6 -0
- package/dist/components/Input/Input.stories.d.ts +169 -0
- package/dist/components/InputBase/InputBase.stories.d.ts +10 -0
- package/dist/components/InputBase/index.d.ts +3 -3
- package/dist/components/List/List.d.ts +4 -3
- package/dist/components/List/List.stories.d.ts +65 -0
- package/dist/components/List/ListItem.d.ts +4 -3
- package/dist/components/LoadingIndicator/LoadingIndicator.stories.d.ts +11 -0
- package/dist/components/Modal/Modal.d.ts +4 -3
- package/dist/components/Modal/Modal.stories.d.ts +16 -0
- package/dist/components/NativeSelect/NativeSelect.d.ts +4 -3
- package/dist/components/NativeSelect/NativeSelect.stories.d.ts +86 -0
- package/dist/components/NavTabs/NavTabs.d.ts +1 -1
- package/dist/components/NavTabs/NavTabs.stories.d.ts +27 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +88 -0
- package/dist/components/Paragraph/Paragraph.stories.d.ts +6 -0
- package/dist/components/Paragraph/index.d.ts +4 -3
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +28 -0
- package/dist/components/Popover/Popover.stories.d.ts +135 -0
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +30 -0
- package/dist/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/components/RadioGroup/index.d.ts +4 -3
- package/dist/components/Search/Search.stories.d.ts +9 -0
- package/dist/components/Select/Select.stories.d.ts +247 -0
- package/dist/components/Select/SelectContainer.d.ts +1 -1
- package/dist/components/Select/shared.d.ts +8 -8
- package/dist/components/SkipLink/SkipLink.stories.d.ts +4 -0
- package/dist/components/SkipLinkContent/index.d.ts +4 -3
- package/dist/components/Spacer/Spacer.stories.d.ts +14 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +7 -0
- package/dist/components/Stepper/Step.d.ts +1 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +29 -0
- package/dist/components/StyledButton/index.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +8 -7
- package/dist/components/Table/Table.stories.d.ts +176 -0
- package/dist/components/Table/TableBody.d.ts +4 -3
- package/dist/components/Table/TableHead.d.ts +4 -3
- package/dist/components/Table/TableRow.d.ts +4 -3
- package/dist/components/Tabs/Tab.d.ts +2 -2
- package/dist/components/Tabs/TabPanelsContainer.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/Tabs.stories.d.ts +82 -0
- package/dist/components/Tabs/TabsContainer.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +4 -3
- package/dist/components/Tag/Tag.stories.d.ts +25 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +16 -0
- package/dist/components/TimePicker/TimePicker.stories.d.ts +22 -0
- package/dist/components/Toast/Toast.stories.d.ts +22 -0
- package/dist/components/Toast/index.d.ts +4 -3
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -0
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +26 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +4 -3
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +26 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +53 -0
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Transition/Transition.d.ts +5 -4
- package/dist/components/Transition/Transition.stories.d.ts +81 -0
- package/dist/components/TreeView/TreeView.stories.d.ts +199 -0
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/useTreeItem.d.ts +1 -1
- package/dist/components/TreeView/useTreeView.d.ts +1 -1
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +4 -0
- package/dist/components/VisuallyHidden/index.d.ts +4 -3
- package/dist/esm/index.js +1145 -1307
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +143 -71
- package/dist/properties.json +10418 -11030
- package/dist/react-magma-dom.cjs.development.js +773 -725
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +24 -21
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaginationProps, PaginationType } from './Pagination';
|
|
3
|
+
import { PageButtonSize } from '.';
|
|
4
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
args: {
|
|
8
|
+
count: number;
|
|
9
|
+
hidePreviousButton: boolean;
|
|
10
|
+
hideNextButton: boolean;
|
|
11
|
+
isInverse: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const DefaultSelected: {
|
|
16
|
+
args: {
|
|
17
|
+
defaultPage: number;
|
|
18
|
+
count: number;
|
|
19
|
+
hidePreviousButton: boolean;
|
|
20
|
+
hideNextButton: boolean;
|
|
21
|
+
isInverse: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const AdjacentPages: {
|
|
26
|
+
args: {
|
|
27
|
+
count: number;
|
|
28
|
+
defaultPage: number;
|
|
29
|
+
numberOfAdjacentPages: number;
|
|
30
|
+
hidePreviousButton: boolean;
|
|
31
|
+
hideNextButton: boolean;
|
|
32
|
+
isInverse: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const EdgePages: {
|
|
37
|
+
args: {
|
|
38
|
+
count: number;
|
|
39
|
+
defaultPage: number;
|
|
40
|
+
numberOfEdgePages: number;
|
|
41
|
+
hidePreviousButton: boolean;
|
|
42
|
+
hideNextButton: boolean;
|
|
43
|
+
isInverse: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const Size: {
|
|
48
|
+
args: {
|
|
49
|
+
size: PageButtonSize;
|
|
50
|
+
count: number;
|
|
51
|
+
hidePreviousButton: boolean;
|
|
52
|
+
hideNextButton: boolean;
|
|
53
|
+
isInverse: boolean;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const SimplePagination: {
|
|
58
|
+
args: {
|
|
59
|
+
type: PaginationType;
|
|
60
|
+
count: number;
|
|
61
|
+
hidePreviousButton: boolean;
|
|
62
|
+
hideNextButton: boolean;
|
|
63
|
+
isInverse: boolean;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
};
|
|
66
|
+
parameters: {
|
|
67
|
+
controls: {
|
|
68
|
+
exclude: string[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const SimplePaginationOnPageChange: {
|
|
73
|
+
render: (args: Partial<PaginationProps>) => React.JSX.Element;
|
|
74
|
+
args: {
|
|
75
|
+
type: PaginationType;
|
|
76
|
+
page: number;
|
|
77
|
+
count: number;
|
|
78
|
+
hidePreviousButton: boolean;
|
|
79
|
+
hideNextButton: boolean;
|
|
80
|
+
isInverse: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
};
|
|
83
|
+
parameters: {
|
|
84
|
+
controls: {
|
|
85
|
+
exclude: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
render: (args: any) => React.JSX.Element;
|
|
6
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ThemeInterface } from '../../theme/magma';
|
|
3
3
|
import { TypographyVisualStyle, TypographyColor, TypographyContextVariant } from '../Typography';
|
|
4
|
-
/**
|
|
5
|
-
* @children required
|
|
6
|
-
*/
|
|
7
4
|
export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
5
|
+
/**
|
|
6
|
+
* @children required
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
/**
|
|
9
10
|
* The color of the component, helping to convey meaning or relative emphasis
|
|
10
11
|
* @default TypographyColor.default
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PasswordInputProps } from '.';
|
|
3
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: {
|
|
6
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, PasswordInputProps>;
|
|
7
|
+
args: {};
|
|
8
|
+
};
|
|
9
|
+
export declare const Error: {
|
|
10
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, PasswordInputProps>;
|
|
11
|
+
args: {
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const Inverse: {
|
|
16
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, PasswordInputProps>;
|
|
17
|
+
args: {
|
|
18
|
+
isInverse: boolean;
|
|
19
|
+
};
|
|
20
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
21
|
+
};
|
|
22
|
+
export declare const CustomText: {
|
|
23
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, PasswordInputProps>;
|
|
24
|
+
args: {
|
|
25
|
+
showPasswordButtonText: string;
|
|
26
|
+
hidePasswordButtonText: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
render: (args: any) => React.JSX.Element;
|
|
6
|
+
args: {
|
|
7
|
+
width: number;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
controls: {
|
|
11
|
+
exclude: string[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const CustomIcon: {
|
|
16
|
+
render: (args: any) => React.JSX.Element;
|
|
17
|
+
args: {
|
|
18
|
+
width: number;
|
|
19
|
+
};
|
|
20
|
+
parameters: {
|
|
21
|
+
controls: {
|
|
22
|
+
exclude: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const TextOnlyWithHover: {
|
|
27
|
+
render: (args: any) => React.JSX.Element;
|
|
28
|
+
args: {
|
|
29
|
+
width: number;
|
|
30
|
+
hoverable: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const WithHeader: {
|
|
34
|
+
render: (args: any) => React.JSX.Element;
|
|
35
|
+
args: {
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const WithFooter: {
|
|
40
|
+
render: (args: any) => React.JSX.Element;
|
|
41
|
+
args: {
|
|
42
|
+
width: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const WithHeaderAndFooter: {
|
|
46
|
+
render: (args: any) => React.JSX.Element;
|
|
47
|
+
args: {
|
|
48
|
+
width: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const WithALongContentAndMaxHeight: {
|
|
52
|
+
render: (args: any) => React.JSX.Element;
|
|
53
|
+
args: {
|
|
54
|
+
width: number;
|
|
55
|
+
maxHeight: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const SettingsExample: {
|
|
59
|
+
render: (args: any) => React.JSX.Element;
|
|
60
|
+
args: {
|
|
61
|
+
width: number;
|
|
62
|
+
};
|
|
63
|
+
parameters: {
|
|
64
|
+
controls: {
|
|
65
|
+
exclude: string[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare const CustomTriggerButton: {
|
|
70
|
+
render: (args: any) => React.JSX.Element;
|
|
71
|
+
args: {
|
|
72
|
+
width: string;
|
|
73
|
+
};
|
|
74
|
+
parameters: {
|
|
75
|
+
controls: {
|
|
76
|
+
exclude: string[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const FormExample: {
|
|
81
|
+
render: (args: any) => React.JSX.Element;
|
|
82
|
+
args: {};
|
|
83
|
+
parameters: {
|
|
84
|
+
controls: {
|
|
85
|
+
exclude: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const InputExample: {
|
|
90
|
+
render: (args: any) => React.JSX.Element;
|
|
91
|
+
args: {
|
|
92
|
+
hasPointer: boolean;
|
|
93
|
+
width: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare const DisabledPopover: {
|
|
97
|
+
render: (args: any) => React.JSX.Element;
|
|
98
|
+
args: {
|
|
99
|
+
width: number;
|
|
100
|
+
isDisabled: boolean;
|
|
101
|
+
hoverable: boolean;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export declare const DisabledTrigger: {
|
|
105
|
+
render: (args: any) => React.JSX.Element;
|
|
106
|
+
args: {
|
|
107
|
+
width: number;
|
|
108
|
+
hoverable: boolean;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export declare const ProfileExample: {
|
|
112
|
+
render: (args: any) => React.JSX.Element;
|
|
113
|
+
args: {};
|
|
114
|
+
parameters: {
|
|
115
|
+
controls: {
|
|
116
|
+
exclude: string[];
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export declare const DontShowAgain: {
|
|
121
|
+
render: (args: any) => React.JSX.Element;
|
|
122
|
+
args: {
|
|
123
|
+
width: number;
|
|
124
|
+
openByDefault: boolean;
|
|
125
|
+
};
|
|
126
|
+
parameters: {
|
|
127
|
+
controls: {
|
|
128
|
+
exclude: string[];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare const ProgrammaticallyOpening: {
|
|
133
|
+
render: (args: any) => React.JSX.Element;
|
|
134
|
+
};
|
|
135
|
+
export declare const SeveralPopovers: () => React.JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
args: {
|
|
6
|
+
percentage: number;
|
|
7
|
+
isInverse: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const Inverse: {
|
|
11
|
+
args: {
|
|
12
|
+
isInverse: boolean;
|
|
13
|
+
percentage: number;
|
|
14
|
+
};
|
|
15
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
16
|
+
};
|
|
17
|
+
export declare const CustomColor: {
|
|
18
|
+
render: (args: any) => React.JSX.Element;
|
|
19
|
+
args: {
|
|
20
|
+
percentage: number;
|
|
21
|
+
isInverse: boolean;
|
|
22
|
+
height: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
parameters: {
|
|
26
|
+
controls: {
|
|
27
|
+
exclude: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: () => React.JSX.Element;
|
|
5
|
+
export declare const Inverse: () => React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @children required
|
|
4
|
-
*/
|
|
5
2
|
export interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* @children required
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
6
7
|
/**
|
|
7
8
|
* Action that fires when the radio group loses focus
|
|
8
9
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SearchProps } from '.';
|
|
2
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, SearchProps>;
|
|
6
|
+
args: {
|
|
7
|
+
placeholder: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LabelPosition } from '../Label';
|
|
3
|
+
import { MultiSelectProps, SelectOptions } from './';
|
|
4
|
+
declare const _default: import("storybook/internal/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("storybook/internal/csf").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: {
|
|
7
|
+
args: {
|
|
8
|
+
labelText: string;
|
|
9
|
+
items: ({
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
} | {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
disabled?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
helperMessage: string;
|
|
20
|
+
isClearable: boolean;
|
|
21
|
+
isLabelVisuallyHidden: boolean;
|
|
22
|
+
isMulti: boolean;
|
|
23
|
+
labelPosition: LabelPosition;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const Disabled: {
|
|
27
|
+
args: {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
labelText: string;
|
|
30
|
+
items: ({
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
} | {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
disabled?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
errorMessage: string;
|
|
40
|
+
helperMessage: string;
|
|
41
|
+
isClearable: boolean;
|
|
42
|
+
isLabelVisuallyHidden: boolean;
|
|
43
|
+
isMulti: boolean;
|
|
44
|
+
labelPosition: LabelPosition;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const Multi: {
|
|
48
|
+
render: (props: MultiSelectProps<SelectOptions>) => React.JSX.Element;
|
|
49
|
+
args: {
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
labelText: string;
|
|
52
|
+
items: ({
|
|
53
|
+
label: string;
|
|
54
|
+
value: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
} | {
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
disabled?: undefined;
|
|
60
|
+
})[];
|
|
61
|
+
errorMessage: string;
|
|
62
|
+
helperMessage: string;
|
|
63
|
+
isClearable: boolean;
|
|
64
|
+
isLabelVisuallyHidden: boolean;
|
|
65
|
+
isMulti: boolean;
|
|
66
|
+
labelPosition: LabelPosition;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare const WithContent: {
|
|
70
|
+
render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, any>;
|
|
71
|
+
args: {
|
|
72
|
+
isMulti: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export declare const ErrorMessage: {
|
|
76
|
+
args: {
|
|
77
|
+
errorMessage: string;
|
|
78
|
+
labelText: string;
|
|
79
|
+
items: ({
|
|
80
|
+
label: string;
|
|
81
|
+
value: string;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
} | {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
disabled?: undefined;
|
|
87
|
+
})[];
|
|
88
|
+
helperMessage: string;
|
|
89
|
+
isClearable: boolean;
|
|
90
|
+
isLabelVisuallyHidden: boolean;
|
|
91
|
+
isMulti: boolean;
|
|
92
|
+
labelPosition: LabelPosition;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export declare const HelperMessage: {
|
|
96
|
+
args: {
|
|
97
|
+
helperMessage: string;
|
|
98
|
+
labelText: string;
|
|
99
|
+
items: ({
|
|
100
|
+
label: string;
|
|
101
|
+
value: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
} | {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
disabled?: undefined;
|
|
107
|
+
})[];
|
|
108
|
+
errorMessage: string;
|
|
109
|
+
isClearable: boolean;
|
|
110
|
+
isLabelVisuallyHidden: boolean;
|
|
111
|
+
isMulti: boolean;
|
|
112
|
+
labelPosition: LabelPosition;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export declare const Inverse: {
|
|
116
|
+
args: {
|
|
117
|
+
isMulti: boolean;
|
|
118
|
+
isInverse: boolean;
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
labelText: string;
|
|
121
|
+
items: ({
|
|
122
|
+
label: string;
|
|
123
|
+
value: string;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
} | {
|
|
126
|
+
label: string;
|
|
127
|
+
value: string;
|
|
128
|
+
disabled?: undefined;
|
|
129
|
+
})[];
|
|
130
|
+
errorMessage: string;
|
|
131
|
+
helperMessage: string;
|
|
132
|
+
isClearable: boolean;
|
|
133
|
+
isLabelVisuallyHidden: boolean;
|
|
134
|
+
labelPosition: LabelPosition;
|
|
135
|
+
};
|
|
136
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
137
|
+
};
|
|
138
|
+
export declare const LeftAlignedLabel: {
|
|
139
|
+
args: {
|
|
140
|
+
labelPosition: LabelPosition;
|
|
141
|
+
labelText: string;
|
|
142
|
+
items: ({
|
|
143
|
+
label: string;
|
|
144
|
+
value: string;
|
|
145
|
+
disabled: boolean;
|
|
146
|
+
} | {
|
|
147
|
+
label: string;
|
|
148
|
+
value: string;
|
|
149
|
+
disabled?: undefined;
|
|
150
|
+
})[];
|
|
151
|
+
errorMessage: string;
|
|
152
|
+
helperMessage: string;
|
|
153
|
+
isClearable: boolean;
|
|
154
|
+
isLabelVisuallyHidden: boolean;
|
|
155
|
+
isMulti: boolean;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
export declare const LeftAlignedLabelWithContainer: {
|
|
159
|
+
args: {
|
|
160
|
+
labelPosition: LabelPosition;
|
|
161
|
+
labelText: string;
|
|
162
|
+
items: ({
|
|
163
|
+
label: string;
|
|
164
|
+
value: string;
|
|
165
|
+
disabled: boolean;
|
|
166
|
+
} | {
|
|
167
|
+
label: string;
|
|
168
|
+
value: string;
|
|
169
|
+
disabled?: undefined;
|
|
170
|
+
})[];
|
|
171
|
+
errorMessage: string;
|
|
172
|
+
helperMessage: string;
|
|
173
|
+
isClearable: boolean;
|
|
174
|
+
isLabelVisuallyHidden: boolean;
|
|
175
|
+
isMulti: boolean;
|
|
176
|
+
};
|
|
177
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
178
|
+
};
|
|
179
|
+
export declare const WithDisabledItems: {
|
|
180
|
+
args: {
|
|
181
|
+
items: ({
|
|
182
|
+
label: string;
|
|
183
|
+
value: string;
|
|
184
|
+
disabled: boolean;
|
|
185
|
+
} | {
|
|
186
|
+
label: string;
|
|
187
|
+
value: string;
|
|
188
|
+
disabled?: undefined;
|
|
189
|
+
})[];
|
|
190
|
+
isClearable: boolean;
|
|
191
|
+
defaultSelectedItem: {
|
|
192
|
+
label: string;
|
|
193
|
+
value: string;
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
};
|
|
196
|
+
initialSelectedItem: {
|
|
197
|
+
label: string;
|
|
198
|
+
value: string;
|
|
199
|
+
disabled: boolean;
|
|
200
|
+
};
|
|
201
|
+
labelText: string;
|
|
202
|
+
errorMessage: string;
|
|
203
|
+
helperMessage: string;
|
|
204
|
+
isLabelVisuallyHidden: boolean;
|
|
205
|
+
isMulti: boolean;
|
|
206
|
+
labelPosition: LabelPosition;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export declare const MultiWithDisabledItems: {
|
|
210
|
+
args: {
|
|
211
|
+
isMulti: boolean;
|
|
212
|
+
items: ({
|
|
213
|
+
label: string;
|
|
214
|
+
value: string;
|
|
215
|
+
disabled?: undefined;
|
|
216
|
+
} | {
|
|
217
|
+
label: string;
|
|
218
|
+
value: string;
|
|
219
|
+
disabled: boolean;
|
|
220
|
+
})[];
|
|
221
|
+
isClearable: boolean;
|
|
222
|
+
initialHighlightedIndex: number;
|
|
223
|
+
defaultSelectedItems: ({
|
|
224
|
+
label: string;
|
|
225
|
+
value: string;
|
|
226
|
+
disabled?: undefined;
|
|
227
|
+
} | {
|
|
228
|
+
label: string;
|
|
229
|
+
value: string;
|
|
230
|
+
disabled: boolean;
|
|
231
|
+
})[];
|
|
232
|
+
initialSelectedItems: ({
|
|
233
|
+
label: string;
|
|
234
|
+
value: string;
|
|
235
|
+
disabled?: undefined;
|
|
236
|
+
} | {
|
|
237
|
+
label: string;
|
|
238
|
+
value: string;
|
|
239
|
+
disabled: boolean;
|
|
240
|
+
})[];
|
|
241
|
+
labelText: string;
|
|
242
|
+
errorMessage: string;
|
|
243
|
+
helperMessage: string;
|
|
244
|
+
isLabelVisuallyHidden: boolean;
|
|
245
|
+
labelPosition: LabelPosition;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
@@ -3,7 +3,7 @@ import { UseSelectGetLabelPropsOptions } from 'downshift';
|
|
|
3
3
|
import { LabelPosition } from '../Label';
|
|
4
4
|
export declare const SelectContainerElement: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: React.ElementType<any>;
|
|
6
|
+
as?: React.ElementType<any, "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">;
|
|
7
7
|
} & {
|
|
8
8
|
isLabelVisuallyHidden?: boolean;
|
|
9
9
|
labelPosition?: LabelPosition;
|