react-magma-dom 4.14.1-next.0 → 5.0.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 +35 -0
- package/dist/components/AIButton/StyledAIButtonTemplate.d.ts +2 -2
- package/dist/components/AIButton/index.d.ts +10 -10
- package/dist/components/Accordion/Accordion.d.ts +4 -3
- package/dist/components/Accordion/Accordion.stories.d.ts +48 -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 +20 -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 +14 -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 +16 -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 +16 -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 +41 -0
- package/dist/components/Button/index.d.ts +4 -3
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +24 -0
- 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 +38 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +31 -0
- package/dist/components/Checkbox/index.d.ts +3 -3
- package/dist/components/Combobox/Combobox.stories.d.ts +178 -0
- package/dist/components/Container/Container.d.ts +4 -3
- package/dist/components/Container/Container.stories.d.ts +33 -0
- package/dist/components/Datagrid/Datagrid.d.ts +4 -3
- package/dist/components/Datagrid/Datagrid.stories.d.ts +332 -0
- package/dist/components/DatePicker/DateField/StyledDateFieldInput.d.ts +4 -4
- package/dist/components/DatePicker/DatePicker.stories.d.ts +47 -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 +44 -0
- package/dist/components/Dropdown/Dropdown.stories.d.ts +78 -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/EmptyState/EmptyState.stories.d.ts +137 -0
- package/dist/components/EmptyState/styles.d.ts +4 -4
- package/dist/components/Fieldset/Fieldset.stories.d.ts +46 -0
- 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 +28 -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 +5 -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 +34 -0
- package/dist/components/IconButton/IconButton.stories.d.ts +55 -0
- package/dist/components/IndeterminateCheckbox/IndeterminateCheckbox.stories.d.ts +38 -0
- package/dist/components/Input/Input.stories.d.ts +168 -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 +30 -0
- package/dist/components/NativeSelect/NativeSelect.d.ts +4 -3
- package/dist/components/NativeSelect/NativeSelect.stories.d.ts +85 -0
- package/dist/components/NavTabs/NavTabs.stories.d.ts +25 -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 +27 -0
- package/dist/components/Popover/Popover.stories.d.ts +146 -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 +8 -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 +6 -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 +20 -7
- package/dist/components/Table/Table.stories.d.ts +194 -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 +80 -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 +21 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +15 -0
- package/dist/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/TimePicker/TimePicker.stories.d.ts +21 -0
- package/dist/components/Toast/Toast.stories.d.ts +31 -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 +24 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +4 -3
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +25 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +53 -0
- package/dist/components/Tooltip/index.d.ts +3 -3
- package/dist/components/Transition/Transition.d.ts +5 -4
- package/dist/components/Transition/Transition.stories.d.ts +81 -0
- package/dist/components/TreeView/TreeItem.d.ts +1 -0
- package/dist/components/TreeView/TreeView.stories.d.ts +280 -0
- package/dist/components/TreeView/useTreeItem.d.ts +1 -1
- package/dist/components/TreeView/useTreeView.d.ts +1 -1
- package/dist/components/TreeView/utils.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 +6011 -4514
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +145 -72
- package/dist/properties.json +11008 -13076
- package/dist/react-magma-dom.cjs.development.js +2590 -2602
- 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,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: any;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: () => React.JSX.Element;
|
|
5
|
+
export declare const Inverse: () => React.JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* Performance reproduction story.
|
|
8
|
+
*
|
|
9
|
+
* Renders N controlled Checkbox components and lets you flip their `checked`
|
|
10
|
+
* prop in bulk via the buttons. Measures time from setState to the next paint
|
|
11
|
+
* (via two requestAnimationFrame ticks) so we can see how heavy a mass update
|
|
12
|
+
* is for a large list.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PerformanceLargeList: {
|
|
15
|
+
(args: {
|
|
16
|
+
count: number;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
argTypes: {
|
|
19
|
+
count: {
|
|
20
|
+
control: {
|
|
21
|
+
type: string;
|
|
22
|
+
min: number;
|
|
23
|
+
max: number;
|
|
24
|
+
step: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
args: {
|
|
29
|
+
count: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -75,15 +75,15 @@ export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElemen
|
|
|
75
75
|
}
|
|
76
76
|
export declare const HiddenLabelText: import("@emotion/styled").StyledComponent<{
|
|
77
77
|
theme?: import("@emotion/react").Theme;
|
|
78
|
-
as?: React.ElementType<any>;
|
|
78
|
+
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">;
|
|
79
79
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
80
80
|
export declare const HiddenInput: import("@emotion/styled").StyledComponent<{
|
|
81
81
|
theme?: import("@emotion/react").Theme;
|
|
82
|
-
as?: React.ElementType<any>;
|
|
82
|
+
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">;
|
|
83
83
|
}, React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
84
84
|
export declare const StyledFakeInput: import("@emotion/styled").StyledComponent<{
|
|
85
85
|
theme?: import("@emotion/react").Theme;
|
|
86
|
-
as?: React.ElementType<any>;
|
|
86
|
+
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">;
|
|
87
87
|
} & {
|
|
88
88
|
isChecked?: boolean;
|
|
89
89
|
color: string;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LabelPosition } from '../Label';
|
|
3
|
+
import { SelectOptions } from '../Select';
|
|
4
|
+
import { MultiComboboxProps } from '.';
|
|
5
|
+
declare const _default: any;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
defaultItems: ({
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
disabled?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
disabled: string;
|
|
18
|
+
})[];
|
|
19
|
+
disableCreateItem: boolean;
|
|
20
|
+
errorMessage: string;
|
|
21
|
+
helperMessage: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
isClearable: boolean;
|
|
24
|
+
isMulti: boolean;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const Multi: {
|
|
30
|
+
render: (props: MultiComboboxProps<SelectOptions>) => React.JSX.Element;
|
|
31
|
+
args: {
|
|
32
|
+
labelText: string;
|
|
33
|
+
isMulti: boolean;
|
|
34
|
+
isClearable: boolean;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
hasPersistentMenu: boolean;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const ErrorMessage: {
|
|
41
|
+
args: {
|
|
42
|
+
errorMessage: string;
|
|
43
|
+
labelText: string;
|
|
44
|
+
defaultItems: ({
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
disabled?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
disabled: string;
|
|
52
|
+
})[];
|
|
53
|
+
disableCreateItem: boolean;
|
|
54
|
+
helperMessage: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
isClearable: boolean;
|
|
57
|
+
isMulti: boolean;
|
|
58
|
+
isLoading: boolean;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const HelperMessage: {
|
|
63
|
+
args: {
|
|
64
|
+
helperMessage: string;
|
|
65
|
+
labelText: string;
|
|
66
|
+
defaultItems: ({
|
|
67
|
+
label: string;
|
|
68
|
+
value: string;
|
|
69
|
+
disabled?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
label: string;
|
|
72
|
+
value: string;
|
|
73
|
+
disabled: string;
|
|
74
|
+
})[];
|
|
75
|
+
disableCreateItem: boolean;
|
|
76
|
+
errorMessage: string;
|
|
77
|
+
placeholder: string;
|
|
78
|
+
isClearable: boolean;
|
|
79
|
+
isMulti: boolean;
|
|
80
|
+
isLoading: boolean;
|
|
81
|
+
disabled: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const Inverse: {
|
|
85
|
+
args: {
|
|
86
|
+
isInverse: boolean;
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
labelText: string;
|
|
89
|
+
defaultItems: ({
|
|
90
|
+
label: string;
|
|
91
|
+
value: string;
|
|
92
|
+
disabled?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
label: string;
|
|
95
|
+
value: string;
|
|
96
|
+
disabled: string;
|
|
97
|
+
})[];
|
|
98
|
+
disableCreateItem: boolean;
|
|
99
|
+
errorMessage: string;
|
|
100
|
+
helperMessage: string;
|
|
101
|
+
placeholder: string;
|
|
102
|
+
isClearable: boolean;
|
|
103
|
+
isMulti: boolean;
|
|
104
|
+
isLoading: boolean;
|
|
105
|
+
};
|
|
106
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
107
|
+
};
|
|
108
|
+
export declare const LeftAlignedLabel: {
|
|
109
|
+
args: {
|
|
110
|
+
labelPosition: LabelPosition;
|
|
111
|
+
errorMessage: string;
|
|
112
|
+
labelText: string;
|
|
113
|
+
defaultItems: ({
|
|
114
|
+
label: string;
|
|
115
|
+
value: string;
|
|
116
|
+
disabled?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
label: string;
|
|
119
|
+
value: string;
|
|
120
|
+
disabled: string;
|
|
121
|
+
})[];
|
|
122
|
+
disableCreateItem: boolean;
|
|
123
|
+
helperMessage: string;
|
|
124
|
+
placeholder: string;
|
|
125
|
+
isClearable: boolean;
|
|
126
|
+
isMulti: boolean;
|
|
127
|
+
isLoading: boolean;
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const LeftAlignedLabelWithContainer: {
|
|
132
|
+
args: {
|
|
133
|
+
labelPosition: LabelPosition;
|
|
134
|
+
errorMessage: string;
|
|
135
|
+
labelText: string;
|
|
136
|
+
defaultItems: ({
|
|
137
|
+
label: string;
|
|
138
|
+
value: string;
|
|
139
|
+
disabled?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
label: string;
|
|
142
|
+
value: string;
|
|
143
|
+
disabled: string;
|
|
144
|
+
})[];
|
|
145
|
+
disableCreateItem: boolean;
|
|
146
|
+
helperMessage: string;
|
|
147
|
+
placeholder: string;
|
|
148
|
+
isClearable: boolean;
|
|
149
|
+
isMulti: boolean;
|
|
150
|
+
isLoading: boolean;
|
|
151
|
+
disabled: boolean;
|
|
152
|
+
};
|
|
153
|
+
decorators: ((Story: any) => React.JSX.Element)[];
|
|
154
|
+
};
|
|
155
|
+
export declare const Typeahead: {
|
|
156
|
+
render: (args: any) => React.JSX.Element;
|
|
157
|
+
args: {
|
|
158
|
+
isTypeahead: boolean;
|
|
159
|
+
isClearable: boolean;
|
|
160
|
+
isMulti: boolean;
|
|
161
|
+
disableCreateItem: boolean;
|
|
162
|
+
largeDataSet: boolean;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare const FullPageExample: {
|
|
166
|
+
render: (args: any) => React.JSX.Element;
|
|
167
|
+
parameters: {
|
|
168
|
+
controls: {
|
|
169
|
+
exclude: string[];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export declare const ControlledSelectedItem: {
|
|
174
|
+
render: () => React.JSX.Element;
|
|
175
|
+
};
|
|
176
|
+
export declare const ControlledItems: {
|
|
177
|
+
render: () => React.JSX.Element;
|
|
178
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @children required
|
|
4
|
-
*/
|
|
5
2
|
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
3
|
isInverse?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* @children required
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
7
8
|
/**
|
|
8
9
|
* Left/right padding, set by CSS. If a number is provided, value will be in pixels
|
|
9
10
|
* @default theme.spaceScale.spacing06
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: any;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
render: any;
|
|
6
|
+
args: {
|
|
7
|
+
children: React.JSX.Element;
|
|
8
|
+
isInverse: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const Inverse: {
|
|
12
|
+
render: any;
|
|
13
|
+
args: {
|
|
14
|
+
isInverse: boolean;
|
|
15
|
+
children: React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const MaxWidth: {
|
|
19
|
+
render: any;
|
|
20
|
+
args: {
|
|
21
|
+
maxWidth: string;
|
|
22
|
+
children: React.JSX.Element;
|
|
23
|
+
isInverse: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const Gutters: {
|
|
27
|
+
render: any;
|
|
28
|
+
args: {
|
|
29
|
+
gutterWidth: number;
|
|
30
|
+
children: React.JSX.Element;
|
|
31
|
+
isInverse: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -40,10 +40,11 @@ export interface DatagridComponents {
|
|
|
40
40
|
export interface DatagridComponentsProps {
|
|
41
41
|
pagination?: Partial<Omit<TablePaginationProps, 'page' | 'defaultPage' | 'rowsPerPage' | 'defaultRowsPerPage'>>;
|
|
42
42
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @children required
|
|
45
|
-
*/
|
|
46
43
|
export interface BaseDatagridProps extends TableProps {
|
|
44
|
+
/**
|
|
45
|
+
* @children required
|
|
46
|
+
*/
|
|
47
|
+
children: React.ReactNode;
|
|
47
48
|
/**
|
|
48
49
|
* Column data to be displayed in the table header
|
|
49
50
|
*/
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { DatagridProps } from './Datagrid';
|
|
4
|
+
import { TableDensity, TablePaginationProps, TableRowColor } from '../Table';
|
|
5
|
+
declare const _default: any;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: {
|
|
8
|
+
render: any;
|
|
9
|
+
args: {
|
|
10
|
+
tableTitle: string;
|
|
11
|
+
density: TableDensity;
|
|
12
|
+
columns: {
|
|
13
|
+
field: string;
|
|
14
|
+
header: string;
|
|
15
|
+
}[];
|
|
16
|
+
rows: {
|
|
17
|
+
id: number;
|
|
18
|
+
col1: string;
|
|
19
|
+
col2: string;
|
|
20
|
+
col3: string;
|
|
21
|
+
col4: string;
|
|
22
|
+
rowName: string;
|
|
23
|
+
}[];
|
|
24
|
+
hasHoverStyles: boolean;
|
|
25
|
+
hasSquareCorners: boolean;
|
|
26
|
+
hasVerticalBorders: boolean;
|
|
27
|
+
hasZebraStripes: boolean;
|
|
28
|
+
isSelectable: boolean;
|
|
29
|
+
isInverse: boolean;
|
|
30
|
+
isSortableBySelected: boolean;
|
|
31
|
+
paginationProps: {};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const ColoredRows: {
|
|
35
|
+
render: any;
|
|
36
|
+
args: {
|
|
37
|
+
rows: {
|
|
38
|
+
id: number;
|
|
39
|
+
color: TableRowColor;
|
|
40
|
+
col1: string;
|
|
41
|
+
col2: string;
|
|
42
|
+
col3: string;
|
|
43
|
+
col4: string;
|
|
44
|
+
rowName: string;
|
|
45
|
+
}[];
|
|
46
|
+
tableTitle: string;
|
|
47
|
+
density: TableDensity;
|
|
48
|
+
columns: {
|
|
49
|
+
field: string;
|
|
50
|
+
header: string;
|
|
51
|
+
}[];
|
|
52
|
+
hasHoverStyles: boolean;
|
|
53
|
+
hasSquareCorners: boolean;
|
|
54
|
+
hasVerticalBorders: boolean;
|
|
55
|
+
hasZebraStripes: boolean;
|
|
56
|
+
isSelectable: boolean;
|
|
57
|
+
isInverse: boolean;
|
|
58
|
+
isSortableBySelected: boolean;
|
|
59
|
+
paginationProps: {};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const Selectable: {
|
|
63
|
+
render: any;
|
|
64
|
+
args: {
|
|
65
|
+
isSelectable: boolean;
|
|
66
|
+
tableTitle: string;
|
|
67
|
+
density: TableDensity;
|
|
68
|
+
columns: {
|
|
69
|
+
field: string;
|
|
70
|
+
header: string;
|
|
71
|
+
}[];
|
|
72
|
+
rows: {
|
|
73
|
+
id: number;
|
|
74
|
+
col1: string;
|
|
75
|
+
col2: string;
|
|
76
|
+
col3: string;
|
|
77
|
+
col4: string;
|
|
78
|
+
rowName: string;
|
|
79
|
+
}[];
|
|
80
|
+
hasHoverStyles: boolean;
|
|
81
|
+
hasSquareCorners: boolean;
|
|
82
|
+
hasVerticalBorders: boolean;
|
|
83
|
+
hasZebraStripes: boolean;
|
|
84
|
+
isInverse: boolean;
|
|
85
|
+
isSortableBySelected: boolean;
|
|
86
|
+
paginationProps: {};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const SelectableAndSortable: StoryObj<DatagridProps>;
|
|
90
|
+
export declare const ControlledSelectable: {
|
|
91
|
+
render: any;
|
|
92
|
+
args: {
|
|
93
|
+
isSelectable: boolean;
|
|
94
|
+
tableTitle: string;
|
|
95
|
+
density: TableDensity;
|
|
96
|
+
columns: {
|
|
97
|
+
field: string;
|
|
98
|
+
header: string;
|
|
99
|
+
}[];
|
|
100
|
+
rows: {
|
|
101
|
+
id: number;
|
|
102
|
+
col1: string;
|
|
103
|
+
col2: string;
|
|
104
|
+
col3: string;
|
|
105
|
+
col4: string;
|
|
106
|
+
rowName: string;
|
|
107
|
+
}[];
|
|
108
|
+
hasHoverStyles: boolean;
|
|
109
|
+
hasSquareCorners: boolean;
|
|
110
|
+
hasVerticalBorders: boolean;
|
|
111
|
+
hasZebraStripes: boolean;
|
|
112
|
+
isInverse: boolean;
|
|
113
|
+
isSortableBySelected: boolean;
|
|
114
|
+
paginationProps: {};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export declare const DisabledSelectableRow: {
|
|
118
|
+
render: any;
|
|
119
|
+
args: {
|
|
120
|
+
isSelectable: boolean;
|
|
121
|
+
tableTitle: string;
|
|
122
|
+
rows: ({
|
|
123
|
+
id: number;
|
|
124
|
+
col1: string;
|
|
125
|
+
col2: string;
|
|
126
|
+
col3: string;
|
|
127
|
+
col4: string;
|
|
128
|
+
rowName: string;
|
|
129
|
+
} | {
|
|
130
|
+
id: number;
|
|
131
|
+
col1: string;
|
|
132
|
+
isSelectableDisabled: boolean;
|
|
133
|
+
col2: string;
|
|
134
|
+
col3: string;
|
|
135
|
+
col4: string;
|
|
136
|
+
})[];
|
|
137
|
+
density: TableDensity;
|
|
138
|
+
columns: {
|
|
139
|
+
field: string;
|
|
140
|
+
header: string;
|
|
141
|
+
}[];
|
|
142
|
+
hasHoverStyles: boolean;
|
|
143
|
+
hasSquareCorners: boolean;
|
|
144
|
+
hasVerticalBorders: boolean;
|
|
145
|
+
hasZebraStripes: boolean;
|
|
146
|
+
isInverse: boolean;
|
|
147
|
+
isSortableBySelected: boolean;
|
|
148
|
+
paginationProps: {};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export declare const PaginationChangedDefaults: {
|
|
152
|
+
render: any;
|
|
153
|
+
args: {
|
|
154
|
+
tableTitle: string;
|
|
155
|
+
paginationProps: {
|
|
156
|
+
defaultPage: number;
|
|
157
|
+
defaultRowsPerPage: number;
|
|
158
|
+
rowsPerPageValues: number[];
|
|
159
|
+
};
|
|
160
|
+
density: TableDensity;
|
|
161
|
+
columns: {
|
|
162
|
+
field: string;
|
|
163
|
+
header: string;
|
|
164
|
+
}[];
|
|
165
|
+
rows: {
|
|
166
|
+
id: number;
|
|
167
|
+
col1: string;
|
|
168
|
+
col2: string;
|
|
169
|
+
col3: string;
|
|
170
|
+
col4: string;
|
|
171
|
+
rowName: string;
|
|
172
|
+
}[];
|
|
173
|
+
hasHoverStyles: boolean;
|
|
174
|
+
hasSquareCorners: boolean;
|
|
175
|
+
hasVerticalBorders: boolean;
|
|
176
|
+
hasZebraStripes: boolean;
|
|
177
|
+
isSelectable: boolean;
|
|
178
|
+
isInverse: boolean;
|
|
179
|
+
isSortableBySelected: boolean;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
export declare const ControlledPagination: {
|
|
183
|
+
render: any;
|
|
184
|
+
args: {
|
|
185
|
+
tableTitle: string;
|
|
186
|
+
paginationProps: {
|
|
187
|
+
rowsPerPageValues: number[];
|
|
188
|
+
};
|
|
189
|
+
density: TableDensity;
|
|
190
|
+
columns: {
|
|
191
|
+
field: string;
|
|
192
|
+
header: string;
|
|
193
|
+
}[];
|
|
194
|
+
rows: {
|
|
195
|
+
id: number;
|
|
196
|
+
col1: string;
|
|
197
|
+
col2: string;
|
|
198
|
+
col3: string;
|
|
199
|
+
col4: string;
|
|
200
|
+
rowName: string;
|
|
201
|
+
}[];
|
|
202
|
+
hasHoverStyles: boolean;
|
|
203
|
+
hasSquareCorners: boolean;
|
|
204
|
+
hasVerticalBorders: boolean;
|
|
205
|
+
hasZebraStripes: boolean;
|
|
206
|
+
isSelectable: boolean;
|
|
207
|
+
isInverse: boolean;
|
|
208
|
+
isSortableBySelected: boolean;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
export declare const WithoutPagination: {
|
|
212
|
+
render: any;
|
|
213
|
+
args: {
|
|
214
|
+
hasPagination: boolean;
|
|
215
|
+
tableTitle: string;
|
|
216
|
+
density: TableDensity;
|
|
217
|
+
columns: {
|
|
218
|
+
field: string;
|
|
219
|
+
header: string;
|
|
220
|
+
}[];
|
|
221
|
+
rows: {
|
|
222
|
+
id: number;
|
|
223
|
+
col1: string;
|
|
224
|
+
col2: string;
|
|
225
|
+
col3: string;
|
|
226
|
+
col4: string;
|
|
227
|
+
rowName: string;
|
|
228
|
+
}[];
|
|
229
|
+
hasHoverStyles: boolean;
|
|
230
|
+
hasSquareCorners: boolean;
|
|
231
|
+
hasVerticalBorders: boolean;
|
|
232
|
+
hasZebraStripes: boolean;
|
|
233
|
+
isSelectable: boolean;
|
|
234
|
+
isInverse: boolean;
|
|
235
|
+
isSortableBySelected: boolean;
|
|
236
|
+
paginationProps: {};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
export declare const PaginationWithCustomComponent: {
|
|
240
|
+
render: any;
|
|
241
|
+
args: {
|
|
242
|
+
tableTitle: string;
|
|
243
|
+
components: {
|
|
244
|
+
Pagination: React.FunctionComponent<TablePaginationProps>;
|
|
245
|
+
};
|
|
246
|
+
density: TableDensity;
|
|
247
|
+
columns: {
|
|
248
|
+
field: string;
|
|
249
|
+
header: string;
|
|
250
|
+
}[];
|
|
251
|
+
rows: {
|
|
252
|
+
id: number;
|
|
253
|
+
col1: string;
|
|
254
|
+
col2: string;
|
|
255
|
+
col3: string;
|
|
256
|
+
col4: string;
|
|
257
|
+
rowName: string;
|
|
258
|
+
}[];
|
|
259
|
+
hasHoverStyles: boolean;
|
|
260
|
+
hasSquareCorners: boolean;
|
|
261
|
+
hasVerticalBorders: boolean;
|
|
262
|
+
hasZebraStripes: boolean;
|
|
263
|
+
isSelectable: boolean;
|
|
264
|
+
isInverse: boolean;
|
|
265
|
+
isSortableBySelected: boolean;
|
|
266
|
+
paginationProps: {};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
export declare const TitleTable: {
|
|
270
|
+
render: any;
|
|
271
|
+
args: {
|
|
272
|
+
hasOutsideBorder: boolean;
|
|
273
|
+
hasSquareCorners: boolean;
|
|
274
|
+
tableTitle: React.JSX.Element;
|
|
275
|
+
density: TableDensity;
|
|
276
|
+
columns: {
|
|
277
|
+
field: string;
|
|
278
|
+
header: string;
|
|
279
|
+
}[];
|
|
280
|
+
rows: {
|
|
281
|
+
id: number;
|
|
282
|
+
col1: string;
|
|
283
|
+
col2: string;
|
|
284
|
+
col3: string;
|
|
285
|
+
col4: string;
|
|
286
|
+
rowName: string;
|
|
287
|
+
}[];
|
|
288
|
+
hasHoverStyles: boolean;
|
|
289
|
+
hasVerticalBorders: boolean;
|
|
290
|
+
hasZebraStripes: boolean;
|
|
291
|
+
isSelectable: boolean;
|
|
292
|
+
isInverse: boolean;
|
|
293
|
+
isSortableBySelected: boolean;
|
|
294
|
+
paginationProps: {};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
export declare const ScrollableDatagrid: {
|
|
298
|
+
render: (args: React.JSX.IntrinsicAttributes & (DatagridProps & React.RefAttributes<HTMLTableElement>)) => React.JSX.Element;
|
|
299
|
+
args: {
|
|
300
|
+
columns: {
|
|
301
|
+
field: string;
|
|
302
|
+
header: string;
|
|
303
|
+
style: {
|
|
304
|
+
minWidth: string;
|
|
305
|
+
};
|
|
306
|
+
}[];
|
|
307
|
+
rows: {
|
|
308
|
+
id: number;
|
|
309
|
+
product: string;
|
|
310
|
+
category: string;
|
|
311
|
+
price: string;
|
|
312
|
+
quantity: string;
|
|
313
|
+
status: string;
|
|
314
|
+
brand: string;
|
|
315
|
+
warehouse: string;
|
|
316
|
+
rowName: string;
|
|
317
|
+
}[];
|
|
318
|
+
tableTitle: string;
|
|
319
|
+
hasHoverStyles: boolean;
|
|
320
|
+
hasOutsideBorder: boolean;
|
|
321
|
+
hasZebraStripes: boolean;
|
|
322
|
+
hasPagination: boolean;
|
|
323
|
+
isSelectable: boolean;
|
|
324
|
+
};
|
|
325
|
+
parameters: {
|
|
326
|
+
docs: {
|
|
327
|
+
description: {
|
|
328
|
+
story: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|