react-magma-dom 3.7.0 → 3.9.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/AlertBase/index.d.ts +2 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +8 -8
- package/dist/components/CharacterCounter/CharacterCounter.stories.d.ts +16 -16
- package/dist/components/Checkbox/index.d.ts +5 -0
- package/dist/components/Combobox/ComboboxInput.d.ts +3 -3
- package/dist/components/Datagrid/Datagrid.stories.d.ts +8 -8
- package/dist/components/DatePicker/DatePicker.stories.d.ts +11 -0
- package/dist/components/DatePicker/utils.d.ts +1 -0
- package/dist/components/Dropdown/DropdownMenuItem.d.ts +2 -1
- package/dist/components/Grid/Grid.d.ts +2 -2
- package/dist/components/Hyperlink/Hyperlink.stories.d.ts +30 -2
- package/dist/components/Hyperlink/index.d.ts +19 -3
- package/dist/components/IconButton/IconButton.stories.d.ts +4 -4
- package/dist/components/IndeterminateCheckbox/index.d.ts +4 -0
- package/dist/components/Input/Input.stories.d.ts +46 -27
- package/dist/components/InputBase/index.d.ts +10 -2
- package/dist/components/Modal/Modal.d.ts +9 -0
- package/dist/components/Modal/Modal.stories.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +15 -0
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/Select/shared.d.ts +10 -9
- package/dist/components/Stepper/Step.d.ts +53 -0
- package/dist/components/Stepper/Stepper.d.ts +53 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +6 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +3 -2
- package/dist/components/Table/Table.stories.d.ts +48 -48
- package/dist/components/Tabs/TabScrollSpyPanel.d.ts +10 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +2 -0
- package/dist/components/Tabs/TabsScrollSpyContainer.d.ts +9 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/utils.d.ts +3 -0
- package/dist/components/Tag/Tag.stories.d.ts +16 -16
- package/dist/components/Textarea/Textarea.stories.d.ts +8 -8
- package/dist/components/TimePicker/TimePicker.stories.d.ts +2 -0
- package/dist/components/TimePicker/useTimePicker.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.stories.d.ts +32 -32
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +16 -16
- package/dist/components/Tooltip/index.d.ts +4 -3
- package/dist/components/TreeView/TreeItem.d.ts +5 -0
- package/dist/components/TreeView/TreeItemContext.d.ts +15 -0
- package/dist/components/TreeView/TreeView.d.ts +5 -0
- package/dist/components/TreeView/TreeView.stories.d.ts +88 -0
- package/dist/components/TreeView/TreeViewContext.d.ts +28 -0
- package/dist/components/TreeView/index.d.ts +5 -0
- package/dist/components/TreeView/useTreeItem.d.ts +84 -0
- package/dist/components/TreeView/useTreeView.d.ts +75 -0
- package/dist/components/TreeView/utils.d.ts +44 -0
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/esm/index.js +3245 -737
- package/dist/esm/index.js.map +1 -1
- package/dist/i18n/interface.d.ts +5 -0
- package/dist/index.d.ts +7 -1
- package/dist/properties.json +1104 -128
- package/dist/react-magma-dom.cjs.development.js +2971 -540
- 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/dist/theme/styled.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -46,7 +46,7 @@ export declare const OnClear: {
|
|
|
46
46
|
suppressHydrationWarning?: boolean;
|
|
47
47
|
accessKey?: string;
|
|
48
48
|
className?: string;
|
|
49
|
-
contentEditable?: boolean | "
|
|
49
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
50
50
|
contextMenu?: string;
|
|
51
51
|
dir?: string;
|
|
52
52
|
draggable?: boolean | "true" | "false";
|
|
@@ -81,27 +81,27 @@ export declare const OnClear: {
|
|
|
81
81
|
results?: number;
|
|
82
82
|
security?: string;
|
|
83
83
|
unselectable?: "on" | "off";
|
|
84
|
-
inputMode?: "
|
|
84
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
85
85
|
is?: string;
|
|
86
86
|
'aria-activedescendant'?: string;
|
|
87
87
|
'aria-atomic'?: boolean | "true" | "false";
|
|
88
|
-
'aria-autocomplete'?: "
|
|
88
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
89
89
|
'aria-busy'?: boolean | "true" | "false";
|
|
90
90
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
91
91
|
'aria-colcount'?: number;
|
|
92
92
|
'aria-colindex'?: number;
|
|
93
93
|
'aria-colspan'?: number;
|
|
94
94
|
'aria-controls'?: string;
|
|
95
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
95
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
96
96
|
'aria-describedby'?: string;
|
|
97
97
|
'aria-details'?: string;
|
|
98
98
|
'aria-disabled'?: boolean | "true" | "false";
|
|
99
|
-
'aria-dropeffect'?: "
|
|
99
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
100
100
|
'aria-errormessage'?: string;
|
|
101
101
|
'aria-expanded'?: boolean | "true" | "false";
|
|
102
102
|
'aria-flowto'?: string;
|
|
103
103
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
104
|
-
'aria-haspopup'?: boolean | "
|
|
104
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
105
105
|
'aria-hidden'?: boolean | "true" | "false";
|
|
106
106
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
107
107
|
'aria-keyshortcuts'?: string;
|
|
@@ -118,7 +118,7 @@ export declare const OnClear: {
|
|
|
118
118
|
'aria-posinset'?: number;
|
|
119
119
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
120
120
|
'aria-readonly'?: boolean | "true" | "false";
|
|
121
|
-
'aria-relevant'?: "
|
|
121
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
122
122
|
'aria-required'?: boolean | "true" | "false";
|
|
123
123
|
'aria-roledescription'?: string;
|
|
124
124
|
'aria-rowcount'?: number;
|
|
@@ -126,7 +126,7 @@ export declare const OnClear: {
|
|
|
126
126
|
'aria-rowspan'?: number;
|
|
127
127
|
'aria-selected'?: boolean | "true" | "false";
|
|
128
128
|
'aria-setsize'?: number;
|
|
129
|
-
'aria-sort'?: "none" | "
|
|
129
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
130
130
|
'aria-valuemax'?: number;
|
|
131
131
|
'aria-valuemin'?: number;
|
|
132
132
|
'aria-valuenow'?: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TimePickerProps } from '.';
|
|
2
3
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
3
4
|
export default _default;
|
|
4
5
|
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, TimePickerProps>;
|
|
5
6
|
export declare const Error: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, TimePickerProps>;
|
|
6
7
|
export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, TimePickerProps>;
|
|
8
|
+
export declare const Events: () => JSX.Element;
|
|
@@ -16,9 +16,9 @@ export interface UseTimePickerProps extends Omit<FormFieldContainerBaseProps, 'i
|
|
|
16
16
|
*/
|
|
17
17
|
minutesStep?: number;
|
|
18
18
|
/**
|
|
19
|
-
* Full time value passed in and converted to use in hour, minute, and AM/PM fields
|
|
19
|
+
* Full time value passed in and converted to use in hour, minute, and AM/PM fields. To clear the TimePicker - send the undefined value.
|
|
20
20
|
*/
|
|
21
|
-
value?: string;
|
|
21
|
+
value?: string | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* Function called when the component is changed to a new time
|
|
24
24
|
*/
|
|
@@ -32,7 +32,7 @@ export declare const Text: {
|
|
|
32
32
|
suppressHydrationWarning?: boolean;
|
|
33
33
|
accessKey?: string;
|
|
34
34
|
className?: string;
|
|
35
|
-
contentEditable?: boolean | "
|
|
35
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
36
36
|
contextMenu?: string;
|
|
37
37
|
dir?: string;
|
|
38
38
|
draggable?: boolean | "true" | "false";
|
|
@@ -68,27 +68,27 @@ export declare const Text: {
|
|
|
68
68
|
results?: number;
|
|
69
69
|
security?: string;
|
|
70
70
|
unselectable?: "on" | "off";
|
|
71
|
-
inputMode?: "
|
|
71
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
72
72
|
is?: string;
|
|
73
73
|
'aria-activedescendant'?: string;
|
|
74
74
|
'aria-atomic'?: boolean | "true" | "false";
|
|
75
|
-
'aria-autocomplete'?: "
|
|
75
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
76
76
|
'aria-busy'?: boolean | "true" | "false";
|
|
77
77
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
78
78
|
'aria-colcount'?: number;
|
|
79
79
|
'aria-colindex'?: number;
|
|
80
80
|
'aria-colspan'?: number;
|
|
81
81
|
'aria-controls'?: string;
|
|
82
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
82
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
83
83
|
'aria-describedby'?: string;
|
|
84
84
|
'aria-details'?: string;
|
|
85
85
|
'aria-disabled'?: boolean | "true" | "false";
|
|
86
|
-
'aria-dropeffect'?: "
|
|
86
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
87
87
|
'aria-errormessage'?: string;
|
|
88
88
|
'aria-expanded'?: boolean | "true" | "false";
|
|
89
89
|
'aria-flowto'?: string;
|
|
90
90
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
91
|
-
'aria-haspopup'?: boolean | "
|
|
91
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
92
92
|
'aria-hidden'?: boolean | "true" | "false";
|
|
93
93
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
94
94
|
'aria-keyshortcuts'?: string;
|
|
@@ -104,7 +104,7 @@ export declare const Text: {
|
|
|
104
104
|
'aria-posinset'?: number;
|
|
105
105
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
106
106
|
'aria-readonly'?: boolean | "true" | "false";
|
|
107
|
-
'aria-relevant'?: "
|
|
107
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
108
108
|
'aria-required'?: boolean | "true" | "false";
|
|
109
109
|
'aria-roledescription'?: string;
|
|
110
110
|
'aria-rowcount'?: number;
|
|
@@ -112,7 +112,7 @@ export declare const Text: {
|
|
|
112
112
|
'aria-rowspan'?: number;
|
|
113
113
|
'aria-selected'?: boolean | "true" | "false";
|
|
114
114
|
'aria-setsize'?: number;
|
|
115
|
-
'aria-sort'?: "none" | "
|
|
115
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
116
116
|
'aria-valuemax'?: number;
|
|
117
117
|
'aria-valuemin'?: number;
|
|
118
118
|
'aria-valuenow'?: number;
|
|
@@ -311,7 +311,7 @@ export declare const Text: {
|
|
|
311
311
|
suppressHydrationWarning?: boolean;
|
|
312
312
|
accessKey?: string;
|
|
313
313
|
className?: string;
|
|
314
|
-
contentEditable?: boolean | "
|
|
314
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
315
315
|
contextMenu?: string;
|
|
316
316
|
dir?: string;
|
|
317
317
|
draggable?: boolean | "true" | "false";
|
|
@@ -347,27 +347,27 @@ export declare const Text: {
|
|
|
347
347
|
results?: number;
|
|
348
348
|
security?: string;
|
|
349
349
|
unselectable?: "on" | "off";
|
|
350
|
-
inputMode?: "
|
|
350
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
351
351
|
is?: string;
|
|
352
352
|
'aria-activedescendant'?: string;
|
|
353
353
|
'aria-atomic'?: boolean | "true" | "false";
|
|
354
|
-
'aria-autocomplete'?: "
|
|
354
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
355
355
|
'aria-busy'?: boolean | "true" | "false";
|
|
356
356
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
357
357
|
'aria-colcount'?: number;
|
|
358
358
|
'aria-colindex'?: number;
|
|
359
359
|
'aria-colspan'?: number;
|
|
360
360
|
'aria-controls'?: string;
|
|
361
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
361
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
362
362
|
'aria-describedby'?: string;
|
|
363
363
|
'aria-details'?: string;
|
|
364
364
|
'aria-disabled'?: boolean | "true" | "false";
|
|
365
|
-
'aria-dropeffect'?: "
|
|
365
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
366
366
|
'aria-errormessage'?: string;
|
|
367
367
|
'aria-expanded'?: boolean | "true" | "false";
|
|
368
368
|
'aria-flowto'?: string;
|
|
369
369
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
370
|
-
'aria-haspopup'?: boolean | "
|
|
370
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
371
371
|
'aria-hidden'?: boolean | "true" | "false";
|
|
372
372
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
373
373
|
'aria-keyshortcuts'?: string;
|
|
@@ -384,7 +384,7 @@ export declare const Text: {
|
|
|
384
384
|
'aria-posinset'?: number;
|
|
385
385
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
386
386
|
'aria-readonly'?: boolean | "true" | "false";
|
|
387
|
-
'aria-relevant'?: "
|
|
387
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
388
388
|
'aria-required'?: boolean | "true" | "false";
|
|
389
389
|
'aria-roledescription'?: string;
|
|
390
390
|
'aria-rowcount'?: number;
|
|
@@ -392,7 +392,7 @@ export declare const Text: {
|
|
|
392
392
|
'aria-rowspan'?: number;
|
|
393
393
|
'aria-selected'?: boolean | "true" | "false";
|
|
394
394
|
'aria-setsize'?: number;
|
|
395
|
-
'aria-sort'?: "none" | "
|
|
395
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
396
396
|
'aria-valuemax'?: number;
|
|
397
397
|
'aria-valuemin'?: number;
|
|
398
398
|
'aria-valuenow'?: number;
|
|
@@ -596,7 +596,7 @@ export declare const TextAndIcon: {
|
|
|
596
596
|
suppressHydrationWarning?: boolean;
|
|
597
597
|
accessKey?: string;
|
|
598
598
|
className?: string;
|
|
599
|
-
contentEditable?: boolean | "
|
|
599
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
600
600
|
contextMenu?: string;
|
|
601
601
|
dir?: string;
|
|
602
602
|
draggable?: boolean | "true" | "false";
|
|
@@ -632,27 +632,27 @@ export declare const TextAndIcon: {
|
|
|
632
632
|
results?: number;
|
|
633
633
|
security?: string;
|
|
634
634
|
unselectable?: "on" | "off";
|
|
635
|
-
inputMode?: "
|
|
635
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
636
636
|
is?: string;
|
|
637
637
|
'aria-activedescendant'?: string;
|
|
638
638
|
'aria-atomic'?: boolean | "true" | "false";
|
|
639
|
-
'aria-autocomplete'?: "
|
|
639
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
640
640
|
'aria-busy'?: boolean | "true" | "false";
|
|
641
641
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
642
642
|
'aria-colcount'?: number;
|
|
643
643
|
'aria-colindex'?: number;
|
|
644
644
|
'aria-colspan'?: number;
|
|
645
645
|
'aria-controls'?: string;
|
|
646
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
646
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
647
647
|
'aria-describedby'?: string;
|
|
648
648
|
'aria-details'?: string;
|
|
649
649
|
'aria-disabled'?: boolean | "true" | "false";
|
|
650
|
-
'aria-dropeffect'?: "
|
|
650
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
651
651
|
'aria-errormessage'?: string;
|
|
652
652
|
'aria-expanded'?: boolean | "true" | "false";
|
|
653
653
|
'aria-flowto'?: string;
|
|
654
654
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
655
|
-
'aria-haspopup'?: boolean | "
|
|
655
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
656
656
|
'aria-hidden'?: boolean | "true" | "false";
|
|
657
657
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
658
658
|
'aria-keyshortcuts'?: string;
|
|
@@ -668,7 +668,7 @@ export declare const TextAndIcon: {
|
|
|
668
668
|
'aria-posinset'?: number;
|
|
669
669
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
670
670
|
'aria-readonly'?: boolean | "true" | "false";
|
|
671
|
-
'aria-relevant'?: "
|
|
671
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
672
672
|
'aria-required'?: boolean | "true" | "false";
|
|
673
673
|
'aria-roledescription'?: string;
|
|
674
674
|
'aria-rowcount'?: number;
|
|
@@ -676,7 +676,7 @@ export declare const TextAndIcon: {
|
|
|
676
676
|
'aria-rowspan'?: number;
|
|
677
677
|
'aria-selected'?: boolean | "true" | "false";
|
|
678
678
|
'aria-setsize'?: number;
|
|
679
|
-
'aria-sort'?: "none" | "
|
|
679
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
680
680
|
'aria-valuemax'?: number;
|
|
681
681
|
'aria-valuemin'?: number;
|
|
682
682
|
'aria-valuenow'?: number;
|
|
@@ -875,7 +875,7 @@ export declare const TextAndIcon: {
|
|
|
875
875
|
suppressHydrationWarning?: boolean;
|
|
876
876
|
accessKey?: string;
|
|
877
877
|
className?: string;
|
|
878
|
-
contentEditable?: boolean | "
|
|
878
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
879
879
|
contextMenu?: string;
|
|
880
880
|
dir?: string;
|
|
881
881
|
draggable?: boolean | "true" | "false";
|
|
@@ -911,27 +911,27 @@ export declare const TextAndIcon: {
|
|
|
911
911
|
results?: number;
|
|
912
912
|
security?: string;
|
|
913
913
|
unselectable?: "on" | "off";
|
|
914
|
-
inputMode?: "
|
|
914
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
915
915
|
is?: string;
|
|
916
916
|
'aria-activedescendant'?: string;
|
|
917
917
|
'aria-atomic'?: boolean | "true" | "false";
|
|
918
|
-
'aria-autocomplete'?: "
|
|
918
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
919
919
|
'aria-busy'?: boolean | "true" | "false";
|
|
920
920
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
921
921
|
'aria-colcount'?: number;
|
|
922
922
|
'aria-colindex'?: number;
|
|
923
923
|
'aria-colspan'?: number;
|
|
924
924
|
'aria-controls'?: string;
|
|
925
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
925
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
926
926
|
'aria-describedby'?: string;
|
|
927
927
|
'aria-details'?: string;
|
|
928
928
|
'aria-disabled'?: boolean | "true" | "false";
|
|
929
|
-
'aria-dropeffect'?: "
|
|
929
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
930
930
|
'aria-errormessage'?: string;
|
|
931
931
|
'aria-expanded'?: boolean | "true" | "false";
|
|
932
932
|
'aria-flowto'?: string;
|
|
933
933
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
934
|
-
'aria-haspopup'?: boolean | "
|
|
934
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
935
935
|
'aria-hidden'?: boolean | "true" | "false";
|
|
936
936
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
937
937
|
'aria-keyshortcuts'?: string;
|
|
@@ -948,7 +948,7 @@ export declare const TextAndIcon: {
|
|
|
948
948
|
'aria-posinset'?: number;
|
|
949
949
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
950
950
|
'aria-readonly'?: boolean | "true" | "false";
|
|
951
|
-
'aria-relevant'?: "
|
|
951
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
952
952
|
'aria-required'?: boolean | "true" | "false";
|
|
953
953
|
'aria-roledescription'?: string;
|
|
954
954
|
'aria-rowcount'?: number;
|
|
@@ -956,7 +956,7 @@ export declare const TextAndIcon: {
|
|
|
956
956
|
'aria-rowspan'?: number;
|
|
957
957
|
'aria-selected'?: boolean | "true" | "false";
|
|
958
958
|
'aria-setsize'?: number;
|
|
959
|
-
'aria-sort'?: "none" | "
|
|
959
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
960
960
|
'aria-valuemax'?: number;
|
|
961
961
|
'aria-valuemin'?: number;
|
|
962
962
|
'aria-valuenow'?: number;
|
|
@@ -28,7 +28,7 @@ export declare const AlignmentExample: {
|
|
|
28
28
|
suppressHydrationWarning?: boolean;
|
|
29
29
|
accessKey?: string;
|
|
30
30
|
className?: string;
|
|
31
|
-
contentEditable?: boolean | "
|
|
31
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
32
32
|
contextMenu?: string;
|
|
33
33
|
dir?: string;
|
|
34
34
|
draggable?: boolean | "true" | "false";
|
|
@@ -63,27 +63,27 @@ export declare const AlignmentExample: {
|
|
|
63
63
|
results?: number;
|
|
64
64
|
security?: string;
|
|
65
65
|
unselectable?: "on" | "off";
|
|
66
|
-
inputMode?: "
|
|
66
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
67
67
|
is?: string;
|
|
68
68
|
'aria-activedescendant'?: string;
|
|
69
69
|
'aria-atomic'?: boolean | "true" | "false";
|
|
70
|
-
'aria-autocomplete'?: "
|
|
70
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
71
71
|
'aria-busy'?: boolean | "true" | "false";
|
|
72
72
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
73
73
|
'aria-colcount'?: number;
|
|
74
74
|
'aria-colindex'?: number;
|
|
75
75
|
'aria-colspan'?: number;
|
|
76
76
|
'aria-controls'?: string;
|
|
77
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
77
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
78
78
|
'aria-describedby'?: string;
|
|
79
79
|
'aria-details'?: string;
|
|
80
80
|
'aria-disabled'?: boolean | "true" | "false";
|
|
81
|
-
'aria-dropeffect'?: "
|
|
81
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
82
82
|
'aria-errormessage'?: string;
|
|
83
83
|
'aria-expanded'?: boolean | "true" | "false";
|
|
84
84
|
'aria-flowto'?: string;
|
|
85
85
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
86
|
-
'aria-haspopup'?: boolean | "
|
|
86
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
87
87
|
'aria-hidden'?: boolean | "true" | "false";
|
|
88
88
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
89
89
|
'aria-keyshortcuts'?: string;
|
|
@@ -100,7 +100,7 @@ export declare const AlignmentExample: {
|
|
|
100
100
|
'aria-posinset'?: number;
|
|
101
101
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
102
102
|
'aria-readonly'?: boolean | "true" | "false";
|
|
103
|
-
'aria-relevant'?: "
|
|
103
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
104
104
|
'aria-required'?: boolean | "true" | "false";
|
|
105
105
|
'aria-roledescription'?: string;
|
|
106
106
|
'aria-rowcount'?: number;
|
|
@@ -108,7 +108,7 @@ export declare const AlignmentExample: {
|
|
|
108
108
|
'aria-rowspan'?: number;
|
|
109
109
|
'aria-selected'?: boolean | "true" | "false";
|
|
110
110
|
'aria-setsize'?: number;
|
|
111
|
-
'aria-sort'?: "none" | "
|
|
111
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
112
112
|
'aria-valuemax'?: number;
|
|
113
113
|
'aria-valuemin'?: number;
|
|
114
114
|
'aria-valuenow'?: number;
|
|
@@ -303,7 +303,7 @@ export declare const DifferentToggleButtons: {
|
|
|
303
303
|
suppressHydrationWarning?: boolean;
|
|
304
304
|
accessKey?: string;
|
|
305
305
|
className?: string;
|
|
306
|
-
contentEditable?: boolean | "
|
|
306
|
+
contentEditable?: boolean | "true" | "false" | "inherit";
|
|
307
307
|
contextMenu?: string;
|
|
308
308
|
dir?: string;
|
|
309
309
|
draggable?: boolean | "true" | "false";
|
|
@@ -338,27 +338,27 @@ export declare const DifferentToggleButtons: {
|
|
|
338
338
|
results?: number;
|
|
339
339
|
security?: string;
|
|
340
340
|
unselectable?: "on" | "off";
|
|
341
|
-
inputMode?: "
|
|
341
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
342
342
|
is?: string;
|
|
343
343
|
'aria-activedescendant'?: string;
|
|
344
344
|
'aria-atomic'?: boolean | "true" | "false";
|
|
345
|
-
'aria-autocomplete'?: "
|
|
345
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both";
|
|
346
346
|
'aria-busy'?: boolean | "true" | "false";
|
|
347
347
|
'aria-checked'?: boolean | "true" | "false" | "mixed";
|
|
348
348
|
'aria-colcount'?: number;
|
|
349
349
|
'aria-colindex'?: number;
|
|
350
350
|
'aria-colspan'?: number;
|
|
351
351
|
'aria-controls'?: string;
|
|
352
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "
|
|
352
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date";
|
|
353
353
|
'aria-describedby'?: string;
|
|
354
354
|
'aria-details'?: string;
|
|
355
355
|
'aria-disabled'?: boolean | "true" | "false";
|
|
356
|
-
'aria-dropeffect'?: "
|
|
356
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
357
357
|
'aria-errormessage'?: string;
|
|
358
358
|
'aria-expanded'?: boolean | "true" | "false";
|
|
359
359
|
'aria-flowto'?: string;
|
|
360
360
|
'aria-grabbed'?: boolean | "true" | "false";
|
|
361
|
-
'aria-haspopup'?: boolean | "
|
|
361
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
|
362
362
|
'aria-hidden'?: boolean | "true" | "false";
|
|
363
363
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
364
364
|
'aria-keyshortcuts'?: string;
|
|
@@ -375,7 +375,7 @@ export declare const DifferentToggleButtons: {
|
|
|
375
375
|
'aria-posinset'?: number;
|
|
376
376
|
'aria-pressed'?: boolean | "true" | "false" | "mixed";
|
|
377
377
|
'aria-readonly'?: boolean | "true" | "false";
|
|
378
|
-
'aria-relevant'?: "
|
|
378
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
379
379
|
'aria-required'?: boolean | "true" | "false";
|
|
380
380
|
'aria-roledescription'?: string;
|
|
381
381
|
'aria-rowcount'?: number;
|
|
@@ -383,7 +383,7 @@ export declare const DifferentToggleButtons: {
|
|
|
383
383
|
'aria-rowspan'?: number;
|
|
384
384
|
'aria-selected'?: boolean | "true" | "false";
|
|
385
385
|
'aria-setsize'?: number;
|
|
386
|
-
'aria-sort'?: "none" | "
|
|
386
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other";
|
|
387
387
|
'aria-valuemax'?: number;
|
|
388
388
|
'aria-valuemin'?: number;
|
|
389
389
|
'aria-valuenow'?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
export declare enum TooltipPosition {
|
|
3
4
|
bottom = "bottom",
|
|
4
5
|
left = "left",
|
|
@@ -22,7 +23,7 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
22
23
|
/**
|
|
23
24
|
* The content of the tooltip
|
|
24
25
|
*/
|
|
25
|
-
content:
|
|
26
|
+
content: any;
|
|
26
27
|
isInverse?: boolean;
|
|
27
28
|
/**
|
|
28
29
|
* Override the default opening of the tooltip on hover/focus to remain open
|
|
@@ -49,11 +50,11 @@ export interface ITooltipState {
|
|
|
49
50
|
export declare const TooltipArrow: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
50
51
|
position?: any;
|
|
51
52
|
isInverse?: boolean;
|
|
52
|
-
},
|
|
53
|
+
}, ThemeInterface>;
|
|
53
54
|
export declare const StyledTooltip: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
54
55
|
isInverse?: boolean;
|
|
55
56
|
isVisible?: boolean;
|
|
56
57
|
position: TooltipPosition;
|
|
57
58
|
visible?: boolean;
|
|
58
|
-
},
|
|
59
|
+
}, ThemeInterface>;
|
|
59
60
|
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<any>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IndeterminateCheckboxStatus } from '../IndeterminateCheckbox';
|
|
3
|
+
interface TreeItemContextInterface {
|
|
4
|
+
itemId?: string;
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
setExpanded: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
8
|
+
checkboxChangeHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
numberOfTreeItemChildren: number;
|
|
10
|
+
hasOwnTreeItems: boolean;
|
|
11
|
+
updateCheckedStatusFromChild: (index: number, status: IndeterminateCheckboxStatus) => void;
|
|
12
|
+
parentDepth: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const TreeItemContext: React.Context<TreeItemContextInterface>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { UseTreeViewProps } from './useTreeView';
|
|
3
|
+
export interface TreeViewProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'children'>, UseTreeViewProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TreeViewSelectable } from '.';
|
|
3
|
+
import { IndeterminateCheckboxStatus } from '../..';
|
|
4
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Simple: {
|
|
7
|
+
(args: any): JSX.Element;
|
|
8
|
+
parameters: {
|
|
9
|
+
controls: {
|
|
10
|
+
exclude: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const Complex: {
|
|
15
|
+
(args: any): JSX.Element;
|
|
16
|
+
args: {
|
|
17
|
+
selectable: TreeViewSelectable;
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
initialExpandedItems: string[];
|
|
20
|
+
preselectedItems: {
|
|
21
|
+
itemId: string;
|
|
22
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
23
|
+
}[];
|
|
24
|
+
testId: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const NoIcons: {
|
|
28
|
+
(args: any): JSX.Element;
|
|
29
|
+
args: {
|
|
30
|
+
initialExpandedItems: string[];
|
|
31
|
+
preselectedItems: {
|
|
32
|
+
itemId: string;
|
|
33
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const Textbook: {
|
|
38
|
+
(args: any): JSX.Element;
|
|
39
|
+
args: {
|
|
40
|
+
ariaLabelledBy: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const DefaultIcon: {
|
|
44
|
+
(args: any): JSX.Element;
|
|
45
|
+
parameters: {
|
|
46
|
+
controls: {
|
|
47
|
+
exclude: string[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const FirstItemLeaf: {
|
|
52
|
+
(args: any): JSX.Element;
|
|
53
|
+
args: {
|
|
54
|
+
initialExpandedItems: string[];
|
|
55
|
+
preselectedItems: {
|
|
56
|
+
itemId: string;
|
|
57
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
parameters: {
|
|
61
|
+
controls: {
|
|
62
|
+
exclude: string[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const FirstItemBranch: {
|
|
67
|
+
(args: any): JSX.Element;
|
|
68
|
+
args: {
|
|
69
|
+
ariaLabel: string;
|
|
70
|
+
selectable: TreeViewSelectable;
|
|
71
|
+
preselectedItems: {
|
|
72
|
+
itemId: string;
|
|
73
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
74
|
+
}[];
|
|
75
|
+
initialExpandedItems: string[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const FlatTree: {
|
|
79
|
+
(args: any): JSX.Element;
|
|
80
|
+
args: {
|
|
81
|
+
selectable: TreeViewSelectable;
|
|
82
|
+
};
|
|
83
|
+
parameters: {
|
|
84
|
+
controls: {
|
|
85
|
+
exclude: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TreeViewSelectable } from './useTreeView';
|
|
3
|
+
import { IndeterminateCheckboxStatus } from '../IndeterminateCheckbox';
|
|
4
|
+
export interface TreeItemSelectedInterface {
|
|
5
|
+
itemId?: string;
|
|
6
|
+
checkedStatus: IndeterminateCheckboxStatus;
|
|
7
|
+
}
|
|
8
|
+
export interface TreeViewContextInterface {
|
|
9
|
+
children?: React.ReactNode[];
|
|
10
|
+
hasIcons: boolean;
|
|
11
|
+
initialExpandedItems: Array<string>;
|
|
12
|
+
initialExpandedItemsNeedUpdate: boolean;
|
|
13
|
+
onExpandedChange?: (event: React.SyntheticEvent) => void;
|
|
14
|
+
onSelectedItemChange?: (selectedItems: Array<TreeItemSelectedInterface>) => void;
|
|
15
|
+
preselectedItemsNeedUpdate: boolean;
|
|
16
|
+
registerTreeItem: (itemRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, itemRef: React.MutableRefObject<Element>) => void;
|
|
17
|
+
selectable: TreeViewSelectable;
|
|
18
|
+
selectedItems: Array<TreeItemSelectedInterface>;
|
|
19
|
+
selectedItemsChanged: boolean;
|
|
20
|
+
setHasIcons: React.Dispatch<React.SetStateAction<boolean>>;
|
|
21
|
+
setInitialExpandedItemsNeedUpdate: React.Dispatch<React.SetStateAction<any>>;
|
|
22
|
+
setPreselectedItemsNeedUpdate: React.Dispatch<React.SetStateAction<any>>;
|
|
23
|
+
setSelectedItems: React.Dispatch<React.SetStateAction<any>>;
|
|
24
|
+
setSelectedItemsChanged: React.Dispatch<React.SetStateAction<any>>;
|
|
25
|
+
treeItemRefArray?: React.MutableRefObject<React.MutableRefObject<Element>[]>;
|
|
26
|
+
itemToFocus?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const TreeViewContext: React.Context<TreeViewContextInterface>;
|