@amboss/design-system 1.16.1 → 1.16.2-canary2
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/build/cjs/src/components/PictogramButton/PictogramButton.js +3 -2
- package/build/cjs/src/components/RoundButton/RoundButton.js +3 -2
- package/build/esm/src/components/PictogramButton/PictogramButton.js +3 -2
- package/build/esm/src/components/PictogramButton/PictogramButton.js.map +1 -1
- package/build/esm/src/components/RoundButton/RoundButton.js +3 -2
- package/build/esm/src/components/RoundButton/RoundButton.js.map +1 -1
- package/package.json +4 -2
- package/build/cjs/scss/themes/dark.scss +0 -111
- package/build/cjs/scss/themes/light.scss +0 -111
- package/build/esm/build-tokens/_breakpoints.json +0 -17
- package/build/esm/build-tokens/_colors.json +0 -918
- package/build/esm/build-tokens/_icon_sizes_map.json +0 -7
- package/build/esm/build-tokens/_sizes.json +0 -782
- package/build/esm/build-tokens/_subThemeType.d.ts +0 -1
- package/build/esm/build-tokens/_zindex.json +0 -17
- package/build/esm/build-tokens/assets/icons.json +0 -142
- package/build/esm/build-tokens/assets/icons16.json +0 -153
- package/build/esm/build-tokens/assets/logo.json +0 -3
- package/build/esm/build-tokens/visualConfig.d.ts +0 -767
- package/build/esm/scss/themes/dark.scss +0 -111
- package/build/esm/scss/themes/light.scss +0 -111
- package/build/esm/src/components/Badge/Badge.d.ts +0 -11
- package/build/esm/src/components/Box/Box.d.ts +0 -35
- package/build/esm/src/components/Button/Button.d.ts +0 -33
- package/build/esm/src/components/Callout/Callout.d.ts +0 -14
- package/build/esm/src/components/Card/Card.d.ts +0 -16
- package/build/esm/src/components/Card/CardBox.d.ts +0 -6
- package/build/esm/src/components/Card/CardHeader/CardHeader.d.ts +0 -12
- package/build/esm/src/components/Collapsible/Collapsible.d.ts +0 -15
- package/build/esm/src/components/Column/Columns.d.ts +0 -45
- package/build/esm/src/components/Container/Container.d.ts +0 -14
- package/build/esm/src/components/DataTable/DataTable.d.ts +0 -58
- package/build/esm/src/components/DataTable/TableBody.d.ts +0 -9
- package/build/esm/src/components/DataTable/TableCell.d.ts +0 -15
- package/build/esm/src/components/DataTable/TableHeader.d.ts +0 -9
- package/build/esm/src/components/DataTable/index.d.ts +0 -4
- package/build/esm/src/components/DataTable/types.d.ts +0 -15
- package/build/esm/src/components/DataTable/useDataTableSort.d.ts +0 -14
- package/build/esm/src/components/Divider/Divider.d.ts +0 -6
- package/build/esm/src/components/DropdownMenu/DropdownMenu.d.ts +0 -35
- package/build/esm/src/components/DropdownMenu/MenuItem.d.ts +0 -19
- package/build/esm/src/components/Form/Checkbox/Checkbox.d.ts +0 -26
- package/build/esm/src/components/Form/FormErrorMessages/FormErrorMessages.d.ts +0 -6
- package/build/esm/src/components/Form/FormField/FormField.d.ts +0 -15
- package/build/esm/src/components/Form/FormFieldGroup/FormFieldGroup.d.ts +0 -11
- package/build/esm/src/components/Form/FormLabelText/FormLabelText.d.ts +0 -7
- package/build/esm/src/components/Form/Input/Input.d.ts +0 -78
- package/build/esm/src/components/Form/Input/index.d.ts +0 -2
- package/build/esm/src/components/Form/PasswordInput/PasswordInput.d.ts +0 -76
- package/build/esm/src/components/Form/PasswordInput/index.d.ts +0 -2
- package/build/esm/src/components/Form/Radio/Radio.d.ts +0 -24
- package/build/esm/src/components/Form/RadioButton/RadioButton.d.ts +0 -17
- package/build/esm/src/components/Form/SegmentedControl/SegmentedControl.d.ts +0 -31
- package/build/esm/src/components/Form/SegmentedControl/SegmentedControlOption.d.ts +0 -8
- package/build/esm/src/components/Form/Select/Select.d.ts +0 -23
- package/build/esm/src/components/Form/Textarea/Textarea.d.ts +0 -48
- package/build/esm/src/components/Form/Toggle/Toggle.d.ts +0 -32
- package/build/esm/src/components/Form/ToggleButton/ToggleButton.d.ts +0 -26
- package/build/esm/src/components/Icon/Icon.d.ts +0 -22
- package/build/esm/src/components/Inline/Inline.d.ts +0 -30
- package/build/esm/src/components/Link/Link.d.ts +0 -14
- package/build/esm/src/components/LoadingSpinner/LoadingSpinner.d.ts +0 -11
- package/build/esm/src/components/Logo/Logo.d.ts +0 -8
- package/build/esm/src/components/MediaItem/MediaItem.d.ts +0 -14
- package/build/esm/src/components/MediaViewerBar/MediaViewerBar.d.ts +0 -7
- package/build/esm/src/components/Notification/ExpandedContent.d.ts +0 -2
- package/build/esm/src/components/Notification/Notification.d.ts +0 -16
- package/build/esm/src/components/Pagination/Pagination.d.ts +0 -17
- package/build/esm/src/components/Patterns/ButtonGroup/ButtonGroup.d.ts +0 -14
- package/build/esm/src/components/Patterns/Modal/Modal.d.ts +0 -28
- package/build/esm/src/components/PictogramButton/PictogramButton.d.ts +0 -15
- package/build/esm/src/components/Portal/Portal.d.ts +0 -7
- package/build/esm/src/components/ProgressBar/ProgressBar.d.ts +0 -15
- package/build/esm/src/components/RoundButton/RoundButton.d.ts +0 -12
- package/build/esm/src/components/SearchResult/SearchResult.d.ts +0 -39
- package/build/esm/src/components/SegmentedProgressBar/SegmentedProgressBar.d.ts +0 -28
- package/build/esm/src/components/SegmentedProgressBar/SegmentedProgressBarUtil.d.ts +0 -10
- package/build/esm/src/components/ShadowWebComponent/ShadowWebComponent.d.ts +0 -13
- package/build/esm/src/components/Stack/Stack.d.ts +0 -20
- package/build/esm/src/components/SubThemeProvider/SubThemeProvider.d.ts +0 -8
- package/build/esm/src/components/Tabs/Tabs.d.ts +0 -28
- package/build/esm/src/components/Tag/Tag.d.ts +0 -19
- package/build/esm/src/components/TagGroup/TagGroup.d.ts +0 -17
- package/build/esm/src/components/Tooltip/Tooltip.d.ts +0 -23
- package/build/esm/src/components/Tooltip/utils.d.ts +0 -11
- package/build/esm/src/components/Typography/Header/Header.d.ts +0 -36
- package/build/esm/src/components/Typography/StyledText/StyledText.d.ts +0 -11
- package/build/esm/src/components/Typography/Text/Text.d.ts +0 -21
- package/build/esm/src/components/Typography/TextClamped/TextClamped.d.ts +0 -10
- package/build/esm/src/components/VirtualScrollList/VirtualScrollList.d.ts +0 -11
- package/build/esm/src/components/VirtualScrollList/VirtualScrollListReducer.d.ts +0 -36
- package/build/esm/src/index.d.ts +0 -54
- package/build/esm/src/shared/ScreenReaderText.d.ts +0 -5
- package/build/esm/src/shared/flattenChildren.d.ts +0 -11
- package/build/esm/src/shared/informDeprecation.d.ts +0 -1
- package/build/esm/src/shared/mediaQueries.d.ts +0 -14
- package/build/esm/src/shared/replaceDeprecated.d.ts +0 -1
- package/build/esm/src/shared/useAutoPosition.d.ts +0 -5
- package/build/esm/src/shared/useDocument.d.ts +0 -1
- package/build/esm/src/shared/useHover.d.ts +0 -2
- package/build/esm/src/shared/useKeyboard.d.ts +0 -17
- package/build/esm/src/shared/useOnEscapePress.d.ts +0 -2
- package/build/esm/src/shared/useOutsideClick.d.ts +0 -11
- package/build/esm/src/shared/useWindow.d.ts +0 -1
- package/build/esm/src/types/index.d.ts +0 -57
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Do not edit directly
|
|
3
|
-
// Generated on Wed, 27 Sep 2023 10:11:30 GMT
|
|
4
|
-
|
|
5
|
-
$dark-color-canvas: #1e2125;
|
|
6
|
-
$dark-color-background-primary-default: #24282d;
|
|
7
|
-
$dark-color-background-secondary-default: #282c34;
|
|
8
|
-
$dark-color-background-secondary-hover: #393e47;
|
|
9
|
-
$dark-color-background-secondary-active: #393e47;
|
|
10
|
-
$dark-color-background-accent-default: #28816b;
|
|
11
|
-
$dark-color-background-accent-hover: #41a48a;
|
|
12
|
-
$dark-color-background-accent-active: #233d3d;
|
|
13
|
-
$dark-color-background-accent-disabled: rgba(40, 129, 107, 0.3);
|
|
14
|
-
$dark-color-background-onAccent-default: #ffffff;
|
|
15
|
-
$dark-color-background-onAccent-hover: #ffffff;
|
|
16
|
-
$dark-color-background-onAccent-active: #ffffff;
|
|
17
|
-
$dark-color-background-onAccent-disabled: rgba(255, 255, 255, 0.6);
|
|
18
|
-
$dark-color-background-error-default: #a45355;
|
|
19
|
-
$dark-color-background-error-hover: #d07c7c;
|
|
20
|
-
$dark-color-background-error-active: #4d3237;
|
|
21
|
-
$dark-color-background-error-disabled: rgba(164, 83, 85, 0.3);
|
|
22
|
-
$dark-color-background-success-default: #28816b;
|
|
23
|
-
$dark-color-background-info-default: #2f538a;
|
|
24
|
-
$dark-color-background-warning-default: #a4792d;
|
|
25
|
-
$dark-color-background-accentSubtle-default: #233d3d;
|
|
26
|
-
$dark-color-background-errorSubtle-default: #312b31;
|
|
27
|
-
$dark-color-background-successSubtle-default: #262e33;
|
|
28
|
-
$dark-color-background-infoSubtle-default: #282e39;
|
|
29
|
-
$dark-color-background-warningSubtle-default: #32302f;
|
|
30
|
-
$dark-color-background-highlight-default: #40454f;
|
|
31
|
-
$dark-color-background-highlight-hover: #393e47;
|
|
32
|
-
$dark-color-background-contrast-default: #ced1d6;
|
|
33
|
-
$dark-color-background-transparent-default: rgba(255, 255, 255, 0);
|
|
34
|
-
$dark-color-background-transparent-hover: rgba(147, 151, 159, 0.08);
|
|
35
|
-
$dark-color-background-transparent-active: rgba(147, 151, 159, 0.08);
|
|
36
|
-
$dark-color-background-backdrop-default: rgba(0, 0, 0, 0.6);
|
|
37
|
-
$dark-color-text-primary-default: #ced1d6;
|
|
38
|
-
$dark-color-text-primary-hover: #ffffff;
|
|
39
|
-
$dark-color-text-secondary-default: #b9bcc3;
|
|
40
|
-
$dark-color-text-secondary-hover: #ced1d6;
|
|
41
|
-
$dark-color-text-tertiary-default: #93979f;
|
|
42
|
-
$dark-color-text-tertiary-disabled: rgba(216, 218, 222, 0.3);
|
|
43
|
-
$dark-color-text-tertiary-hover: #b9bcc3;
|
|
44
|
-
$dark-color-text-quaternary-default: #757a84;
|
|
45
|
-
$dark-color-text-accent-default: #41a48a;
|
|
46
|
-
$dark-color-text-accent-hover: #a6f2dd;
|
|
47
|
-
$dark-color-text-onAccent-default: #ffffff;
|
|
48
|
-
$dark-color-text-onAccent-disabled: rgba(216, 218, 222, 0.3);
|
|
49
|
-
$dark-color-text-info-default: #99c1fa;
|
|
50
|
-
$dark-color-text-error-default: #f49a9a;
|
|
51
|
-
$dark-color-text-error-disabled: rgba(244, 154, 154, 0.3);
|
|
52
|
-
$dark-color-text-warning-default: #fae0b3;
|
|
53
|
-
$dark-color-text-success-default: #a6f2dd;
|
|
54
|
-
$dark-color-icon-primary: #d8dade;
|
|
55
|
-
$dark-color-icon-secondary: #ced1d6;
|
|
56
|
-
$dark-color-icon-tertiary: #93979f;
|
|
57
|
-
$dark-color-icon-quaternary: #757a84;
|
|
58
|
-
$dark-color-icon-accent: #41a48a;
|
|
59
|
-
$dark-color-icon-onAccent: #ffffff;
|
|
60
|
-
$dark-color-icon-info: #6e95cf;
|
|
61
|
-
$dark-color-icon-error: #d07c7c;
|
|
62
|
-
$dark-color-icon-warning: #cbac76;
|
|
63
|
-
$dark-color-icon-success: #41a48a;
|
|
64
|
-
$dark-color-icon-brand: #62b2bc;
|
|
65
|
-
$dark-color-border-primary-default: #5b5f67;
|
|
66
|
-
$dark-color-border-primary-hover: #757a84;
|
|
67
|
-
$dark-color-border-primary-active: #93979f;
|
|
68
|
-
$dark-color-border-primary-disabled: rgba(147, 151, 159, 0.08);
|
|
69
|
-
$dark-color-border-secondary-default: rgba(147, 149, 159, 0.3);
|
|
70
|
-
$dark-color-border-accent-default: #41a48a;
|
|
71
|
-
$dark-color-border-error-default: #d07c7c;
|
|
72
|
-
$dark-color-border-accentSubtle-default: #28816b;
|
|
73
|
-
$dark-color-divider-primary: #40454f;
|
|
74
|
-
$dark-color-divider-secondary: rgba(147, 151, 159, 0.08);
|
|
75
|
-
$dark-color-toggle-background-highlight: #b2ab39;
|
|
76
|
-
$dark-color-toggle-border-highlight: #b2ab39;
|
|
77
|
-
$dark-color-badge-background-default: transparent;
|
|
78
|
-
$dark-color-badge-background-green: transparent;
|
|
79
|
-
$dark-color-badge-background-blue: transparent;
|
|
80
|
-
$dark-color-badge-background-yellow: transparent;
|
|
81
|
-
$dark-color-badge-background-brand: transparent;
|
|
82
|
-
$dark-color-badge-background-purple: transparent;
|
|
83
|
-
$dark-color-badge-background-red: transparent;
|
|
84
|
-
$dark-color-badge-background-gray: transparent;
|
|
85
|
-
$dark-color-badge-text-default: #ced1d6;
|
|
86
|
-
$dark-color-badge-text-green: #41a48a;
|
|
87
|
-
$dark-color-badge-text-blue: #6e95cf;
|
|
88
|
-
$dark-color-badge-text-yellow: #cbac76;
|
|
89
|
-
$dark-color-badge-text-brand: #62b2bc;
|
|
90
|
-
$dark-color-badge-text-purple: #ad97f7;
|
|
91
|
-
$dark-color-badge-text-red: #d07c7c;
|
|
92
|
-
$dark-color-badge-text-gray: #93979f;
|
|
93
|
-
$dark-color-badge-border-default: #393e47;
|
|
94
|
-
$dark-color-badge-border-green: #393e47;
|
|
95
|
-
$dark-color-badge-border-blue: #393e47;
|
|
96
|
-
$dark-color-badge-border-yellow: #393e47;
|
|
97
|
-
$dark-color-badge-border-brand: #393e47;
|
|
98
|
-
$dark-color-badge-border-purple: #393e47;
|
|
99
|
-
$dark-color-badge-border-red: #393e47;
|
|
100
|
-
$dark-color-badge-border-gray: #393e47;
|
|
101
|
-
$dark-color-segmented-progress-bar-monochrome: #ced1d6;
|
|
102
|
-
$dark-color-segmented-progress-bar-success: #28816b;
|
|
103
|
-
$dark-color-segmented-progress-bar-warning: #a4792d;
|
|
104
|
-
$dark-color-segmented-progress-bar-alert: #a45355;
|
|
105
|
-
$dark-color-segmented-progress-bar-in-progress: #5b5f67;
|
|
106
|
-
$dark-color-tag-background-gray: #5b5f67;
|
|
107
|
-
$dark-color-tag-background-blue: #2f538a;
|
|
108
|
-
$dark-color-tag-text-gray: #ced1d6;
|
|
109
|
-
$dark-color-tag-text-blue: #e7effe;
|
|
110
|
-
$dark-color-destructive-tertiary-button-background-hover: rgba(164, 83, 85, 0.08);
|
|
111
|
-
$dark-color-destructive-tertiary-button-background-active: rgba(164, 83, 85, 0.08);
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// Do not edit directly
|
|
3
|
-
// Generated on Wed, 27 Sep 2023 10:11:30 GMT
|
|
4
|
-
|
|
5
|
-
$light-color-canvas: #eef2f5;
|
|
6
|
-
$light-color-background-primary-default: #ffffff;
|
|
7
|
-
$light-color-background-secondary-default: #f5f7f9;
|
|
8
|
-
$light-color-background-secondary-hover: #eef2f5;
|
|
9
|
-
$light-color-background-secondary-active: #ffffff;
|
|
10
|
-
$light-color-background-accent-default: #0fa980;
|
|
11
|
-
$light-color-background-accent-hover: #0b8363;
|
|
12
|
-
$light-color-background-accent-active: #0a5c45;
|
|
13
|
-
$light-color-background-accent-disabled: rgba(15, 169, 128, 0.3);
|
|
14
|
-
$light-color-background-onAccent-default: #ffffff;
|
|
15
|
-
$light-color-background-onAccent-hover: #ffffff;
|
|
16
|
-
$light-color-background-onAccent-active: #ffffff;
|
|
17
|
-
$light-color-background-onAccent-disabled: rgba(255, 255, 255, 0.6);
|
|
18
|
-
$light-color-background-error-default: #dc4847;
|
|
19
|
-
$light-color-background-error-hover: #c02725;
|
|
20
|
-
$light-color-background-error-active: #c02725;
|
|
21
|
-
$light-color-background-error-disabled: rgba(238, 97, 96, 0.3);
|
|
22
|
-
$light-color-background-success-default: #0b8363;
|
|
23
|
-
$light-color-background-info-default: #295dae;
|
|
24
|
-
$light-color-background-warning-default: #df9411;
|
|
25
|
-
$light-color-background-accentSubtle-default: #e8f8f4;
|
|
26
|
-
$light-color-background-errorSubtle-default: #fde8e8;
|
|
27
|
-
$light-color-background-successSubtle-default: #e8f8f4;
|
|
28
|
-
$light-color-background-infoSubtle-default: #e7effe;
|
|
29
|
-
$light-color-background-warningSubtle-default: #fef3e1;
|
|
30
|
-
$light-color-background-highlight-default: #607585;
|
|
31
|
-
$light-color-background-highlight-hover: #40515e;
|
|
32
|
-
$light-color-background-contrast-default: #314554;
|
|
33
|
-
$light-color-background-transparent-default: rgba(255, 255, 255, 0);
|
|
34
|
-
$light-color-background-transparent-hover: rgba(96, 117, 133, 0.08);
|
|
35
|
-
$light-color-background-transparent-active: rgba(96, 117, 133, 0.08);
|
|
36
|
-
$light-color-background-backdrop-default: rgba(0, 0, 0, 0.6);
|
|
37
|
-
$light-color-text-primary-default: #1a1c1c;
|
|
38
|
-
$light-color-text-primary-hover: #1a1c1c;
|
|
39
|
-
$light-color-text-secondary-default: #40515e;
|
|
40
|
-
$light-color-text-secondary-hover: #40515e;
|
|
41
|
-
$light-color-text-tertiary-default: #607585;
|
|
42
|
-
$light-color-text-tertiary-disabled: rgba(64, 81, 94, 0.3);
|
|
43
|
-
$light-color-text-tertiary-hover: #40515e;
|
|
44
|
-
$light-color-text-quaternary-default: #a3b2bd;
|
|
45
|
-
$light-color-text-accent-default: #0b8363;
|
|
46
|
-
$light-color-text-accent-hover: #0a5c45;
|
|
47
|
-
$light-color-text-onAccent-default: #ffffff;
|
|
48
|
-
$light-color-text-onAccent-disabled: rgba(255, 255, 255, 0.6);
|
|
49
|
-
$light-color-text-info-default: #1c427d;
|
|
50
|
-
$light-color-text-error-default: #c02725;
|
|
51
|
-
$light-color-text-error-disabled: rgba(192, 39, 37, 0.3);
|
|
52
|
-
$light-color-text-warning-default: #314554;
|
|
53
|
-
$light-color-text-success-default: #0a5c45;
|
|
54
|
-
$light-color-icon-primary: #1a1c1c;
|
|
55
|
-
$light-color-icon-secondary: #40515e;
|
|
56
|
-
$light-color-icon-tertiary: #607585;
|
|
57
|
-
$light-color-icon-quaternary: #a3b2bd;
|
|
58
|
-
$light-color-icon-accent: #0b8363;
|
|
59
|
-
$light-color-icon-onAccent: #ffffff;
|
|
60
|
-
$light-color-icon-info: #295dae;
|
|
61
|
-
$light-color-icon-error: #dc4847;
|
|
62
|
-
$light-color-icon-warning: #df9411;
|
|
63
|
-
$light-color-icon-success: #0b8363;
|
|
64
|
-
$light-color-icon-brand: #0aa6b8;
|
|
65
|
-
$light-color-border-primary-default: #a3b2bd;
|
|
66
|
-
$light-color-border-primary-hover: #607585;
|
|
67
|
-
$light-color-border-primary-active: #40515e;
|
|
68
|
-
$light-color-border-primary-disabled: rgba(163, 178, 189, 0.3);
|
|
69
|
-
$light-color-border-secondary-default: rgba(163, 178, 189, 0.3);
|
|
70
|
-
$light-color-border-accent-default: #0b8363;
|
|
71
|
-
$light-color-border-error-default: #dc4847;
|
|
72
|
-
$light-color-border-accentSubtle-default: #8adcc6;
|
|
73
|
-
$light-color-divider-primary: #e0e6eb;
|
|
74
|
-
$light-color-divider-secondary: rgba(163, 178, 189, 0.3);
|
|
75
|
-
$light-color-toggle-background-highlight: #f3eb75;
|
|
76
|
-
$light-color-toggle-border-highlight: #f3eb75;
|
|
77
|
-
$light-color-badge-background-default: #ffffff;
|
|
78
|
-
$light-color-badge-background-green: #e8f8f4;
|
|
79
|
-
$light-color-badge-background-blue: #e7effe;
|
|
80
|
-
$light-color-badge-background-yellow: #fef3e1;
|
|
81
|
-
$light-color-badge-background-brand: #e7f6f8;
|
|
82
|
-
$light-color-badge-background-purple: #f2effb;
|
|
83
|
-
$light-color-badge-background-red: #fde8e8;
|
|
84
|
-
$light-color-badge-background-gray: #eef2f5;
|
|
85
|
-
$light-color-badge-text-default: #1a1c1c;
|
|
86
|
-
$light-color-badge-text-green: #0b8363;
|
|
87
|
-
$light-color-badge-text-blue: #295dae;
|
|
88
|
-
$light-color-badge-text-yellow: #9a6304;
|
|
89
|
-
$light-color-badge-text-brand: #067c89;
|
|
90
|
-
$light-color-badge-text-purple: #5d44ab;
|
|
91
|
-
$light-color-badge-text-red: #c02725;
|
|
92
|
-
$light-color-badge-text-gray: #607585;
|
|
93
|
-
$light-color-badge-border-default: #e0e6eb;
|
|
94
|
-
$light-color-badge-border-green: #e8f8f4;
|
|
95
|
-
$light-color-badge-border-blue: #e7effe;
|
|
96
|
-
$light-color-badge-border-yellow: #fef3e1;
|
|
97
|
-
$light-color-badge-border-brand: #e7f6f8;
|
|
98
|
-
$light-color-badge-border-purple: #f2effb;
|
|
99
|
-
$light-color-badge-border-red: #fde8e8;
|
|
100
|
-
$light-color-badge-border-gray: #eef2f5;
|
|
101
|
-
$light-color-segmented-progress-bar-monochrome: #607585;
|
|
102
|
-
$light-color-segmented-progress-bar-success: #39d6ac;
|
|
103
|
-
$light-color-segmented-progress-bar-warning: #f1d56b;
|
|
104
|
-
$light-color-segmented-progress-bar-alert: #f07575;
|
|
105
|
-
$light-color-segmented-progress-bar-in-progress: #e0e6eb;
|
|
106
|
-
$light-color-tag-background-gray: #e0e6eb;
|
|
107
|
-
$light-color-tag-background-blue: #d2e2f9;
|
|
108
|
-
$light-color-tag-text-gray: #40515e;
|
|
109
|
-
$light-color-tag-text-blue: #1c427d;
|
|
110
|
-
$light-color-destructive-tertiary-button-background-hover: rgba(238, 97, 96, 0.08);
|
|
111
|
-
$light-color-destructive-tertiary-button-background-active: rgba(238, 97, 96, 0.08);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IconName } from "../Icon/Icon";
|
|
3
|
-
export declare type BadgeProps = {
|
|
4
|
-
/** This is a text for a component property */
|
|
5
|
-
text: string;
|
|
6
|
-
/** A color doesn't reflect any intent other than to variety */
|
|
7
|
-
color?: `green` | `blue` | `yellow` | `brand` | `purple` | `red` | `gray`;
|
|
8
|
-
icon?: IconName;
|
|
9
|
-
"data-e2e-test-id"?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function Badge({ text, color, icon, "data-e2e-test-id": dataE2eTestId, }: BadgeProps): React.ReactElement;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { AriaAttributes } from "react";
|
|
2
|
-
import { SpaceSizes, TextAlignment, MQ } from "../../types";
|
|
3
|
-
export declare type BoxProps = {
|
|
4
|
-
children: React.ReactNode[] | React.ReactNode;
|
|
5
|
-
/** Represents both vertical and horizontal paddings. When used alone, vertical and horizontal paddings will have the same value.
|
|
6
|
-
* Use "vSpace" prop to override vertical padding value in case you want it different.
|
|
7
|
-
* specify [small screen padding, medium screen padding, large screen padding] or one padding for all screen sizes
|
|
8
|
-
* */
|
|
9
|
-
space?: SpaceSizes | MQ<SpaceSizes>;
|
|
10
|
-
/** Represents vertical padding. Used to override the vertical padding from "space" prop.
|
|
11
|
-
* specify [small screen vertical padding, medium screen vertical padding, large screen vertical padding] or one padding for all screen sizes */
|
|
12
|
-
vSpace?: SpaceSizes | MQ<SpaceSizes>;
|
|
13
|
-
/** right padding * */
|
|
14
|
-
rSpace?: SpaceSizes | MQ<SpaceSizes>;
|
|
15
|
-
/** left padding * */
|
|
16
|
-
lSpace?: SpaceSizes | MQ<SpaceSizes>;
|
|
17
|
-
/** top padding * */
|
|
18
|
-
tSpace?: SpaceSizes | MQ<SpaceSizes>;
|
|
19
|
-
/** bottom padding * */
|
|
20
|
-
bSpace?: SpaceSizes | MQ<SpaceSizes>;
|
|
21
|
-
/** Text alignment prop.
|
|
22
|
-
* specify [small screen alignText, medium screen alignText, large screen alignText] or one alignText for all screen sizes */
|
|
23
|
-
alignText?: TextAlignment | MQ<TextAlignment>;
|
|
24
|
-
/** Aria property for assigning an accessible role to an element
|
|
25
|
-
* eg. dialog, tab, tooltip etc. */
|
|
26
|
-
role?: string;
|
|
27
|
-
/** Additional aria attributes. [see documentation](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/02549c083e9d62b604091d770c4568d47282cdd0/types/react/index.d.ts#L1461)
|
|
28
|
-
*/
|
|
29
|
-
ariaAttributes?: AriaAttributes;
|
|
30
|
-
"data-e2e-test-id"?: string;
|
|
31
|
-
};
|
|
32
|
-
export declare function Box({ children, space, vSpace, rSpace, lSpace, tSpace, bSpace, alignText, role, ariaAttributes, "data-e2e-test-id": dataE2eTestId, }: BoxProps): React.ReactElement;
|
|
33
|
-
export declare namespace Box {
|
|
34
|
-
var defaultProps: Partial<BoxProps>;
|
|
35
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { AriaAttributes } from "react";
|
|
2
|
-
import { IconName } from "../Icon/Icon";
|
|
3
|
-
import { BaseVariations, ButtonSize, HorizontalAlignment, TextVariations, PolymorphicComponentPropsWithRef, IconsColors } from "../../types";
|
|
4
|
-
declare type ButtonPrivateProps = {
|
|
5
|
-
squareCorners?: boolean | ("TopLeft" | "TopRight" | "BottomLeft" | "BottomRight")[];
|
|
6
|
-
alignItems?: HorizontalAlignment;
|
|
7
|
-
rightIconVariant?: TextVariations;
|
|
8
|
-
rightIconColor?: IconsColors;
|
|
9
|
-
};
|
|
10
|
-
export declare type ButtonProps = {
|
|
11
|
-
variant?: BaseVariations;
|
|
12
|
-
size?: ButtonSize;
|
|
13
|
-
/** Type is ignored if "a" is provided to "as" property. Note that you can explicetly pass null. */
|
|
14
|
-
type?: "submit" | "button" | "reset" | null;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/** When loading is true, disabled is set to true as well. */
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
19
|
-
onFocus?: (e: React.FocusEvent) => void;
|
|
20
|
-
onBlur?: (e: React.FocusEvent) => void;
|
|
21
|
-
leftIcon?: IconName;
|
|
22
|
-
rightIcon?: IconName;
|
|
23
|
-
fullWidth?: boolean;
|
|
24
|
-
destructive?: boolean;
|
|
25
|
-
privateProps?: ButtonPrivateProps;
|
|
26
|
-
"data-e2e-test-id"?: string;
|
|
27
|
-
/** Additional aria attributes. [see documentation](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/02549c083e9d62b604091d770c4568d47282cdd0/types/react/index.d.ts#L1461)
|
|
28
|
-
*/
|
|
29
|
-
ariaAttributes?: AriaAttributes;
|
|
30
|
-
};
|
|
31
|
-
declare type ButtonComponent = <C extends React.ElementType = "button">(props: PolymorphicComponentPropsWithRef<C, ButtonProps>) => React.ReactElement | null;
|
|
32
|
-
export declare const Button: ButtonComponent;
|
|
33
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { IconName } from "../Icon/Icon";
|
|
3
|
-
import { CalloutVariations } from "../../types";
|
|
4
|
-
export declare type CalloutProps = {
|
|
5
|
-
type?: CalloutVariations;
|
|
6
|
-
icon?: IconName;
|
|
7
|
-
"data-e2e-test-id"?: string;
|
|
8
|
-
text: string | ReactElement;
|
|
9
|
-
description?: string | ReactElement;
|
|
10
|
-
};
|
|
11
|
-
export declare function Callout({ text, description, type, icon, "data-e2e-test-id": dataE2eTestId, }: CalloutProps): React.ReactElement;
|
|
12
|
-
export declare namespace Callout {
|
|
13
|
-
var defaultProps: Partial<CalloutProps>;
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DropdownMenuProps } from "../DropdownMenu/DropdownMenu";
|
|
3
|
-
export declare type CardProps = {
|
|
4
|
-
/** Specify title displayed in Header */
|
|
5
|
-
title?: string;
|
|
6
|
-
/** @deprecated Subtitle is now deprecated */
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
/** @deprecated button property is deprecated now. Please use dropdown prop. */
|
|
9
|
-
button?: React.ReactElement;
|
|
10
|
-
dropdown?: Omit<DropdownMenuProps, "iconName" | "size">;
|
|
11
|
-
overflow?: "auto" | "hidden" | "visible";
|
|
12
|
-
squareCorners?: boolean;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
"data-e2e-test-id"?: string;
|
|
15
|
-
};
|
|
16
|
-
export declare function Card({ title, subtitle, button, dropdown, children, overflow, squareCorners, "data-e2e-test-id": dataE2eTestId, }: CardProps): React.ReactElement;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DropdownMenuProps } from "../../DropdownMenu/DropdownMenu";
|
|
3
|
-
export declare class CardHeaderProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
/** @deprecated * */
|
|
6
|
-
subtitle?: string;
|
|
7
|
-
dropdown?: Omit<DropdownMenuProps, "iconName" | "size">;
|
|
8
|
-
/** @deprecated * */
|
|
9
|
-
button?: React.ReactElement;
|
|
10
|
-
"data-e2e-test-id"?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function CardHeader({ title, subtitle, button, dropdown, "data-e2e-test-id": dataE2eTestId, }: CardHeaderProps): React.ReactElement;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Box } from "../Box/Box";
|
|
3
|
-
export declare type CollapsibleProps = {
|
|
4
|
-
/** the first element of the array of children has to be `<CollapsibleHeader/>`. The rest of the children is the content visible after spreading the component */
|
|
5
|
-
children: [
|
|
6
|
-
React.ReactElement<CollapsibleHeaderProps>,
|
|
7
|
-
...React.ReactElement[]
|
|
8
|
-
];
|
|
9
|
-
isExpanded: boolean | undefined;
|
|
10
|
-
};
|
|
11
|
-
export declare type CollapsibleHeaderProps = {
|
|
12
|
-
onClick?: (e: React.FormEvent<HTMLButtonElement>) => void;
|
|
13
|
-
} & React.ComponentProps<typeof Box>;
|
|
14
|
-
export declare function CollapsibleHeader({ space, vSpace, rSpace, lSpace, tSpace, bSpace, onClick, children, }: CollapsibleHeaderProps): React.ReactElement;
|
|
15
|
-
export declare function Collapsible({ isExpanded, children, }: CollapsibleProps): React.ReactElement;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MQ, HorizontalAlignment, SpaceSizes, VerticalAlignment, ColumnSizes, ColumnAlignment, Order } from "../../types";
|
|
3
|
-
export declare type ColumnsProps = {
|
|
4
|
-
children: React.ReactNode[] | React.ReactNode;
|
|
5
|
-
/** represents the size of both horizontal and vertical gap between children, can be a single string or an array of 3 strings
|
|
6
|
-
* specify [small screen gap size, medium screen gap size, large screen gap size] to apply different gap sizes for different screen sizes
|
|
7
|
-
*/
|
|
8
|
-
gap?: SpaceSizes | MQ<SpaceSizes>;
|
|
9
|
-
/** set to true if you want the last element to fill the space
|
|
10
|
-
*/
|
|
11
|
-
alwaysFillSpace?: boolean;
|
|
12
|
-
/** specify horizontal alignment
|
|
13
|
-
* specify [small screen alignItems, medium screen alignItems, large screen alignItems] to apply different alignItems for different screen sizes
|
|
14
|
-
*/
|
|
15
|
-
alignItems?: HorizontalAlignment | MQ<HorizontalAlignment>;
|
|
16
|
-
/** specify vertical alignment
|
|
17
|
-
* specify [small screen vAlignItems, medium screen vAlignItems, large screen vAlignItems] to apply different vAlignItems for different screen sizes
|
|
18
|
-
*/
|
|
19
|
-
vAlignItems?: VerticalAlignment | MQ<VerticalAlignment>;
|
|
20
|
-
"data-e2e-test-id"?: string;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
"data-ds-id"?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare type ColumnProps = {
|
|
25
|
-
children: React.ReactNode[] | React.ReactNode;
|
|
26
|
-
/** represents the size of the column, can be a single number or an array of 3 numbers with a value ranging from 1 to 12
|
|
27
|
-
* specify [small screen column size, medium screen column size, large screen column size] to apply different values for different screen sizes
|
|
28
|
-
*/
|
|
29
|
-
size?: ColumnSizes | MQ<ColumnSizes>;
|
|
30
|
-
/** specify the visual positioning of the column. [small screen column order, medium screen column order, large screen column order] to apply different order for different screen sizes
|
|
31
|
-
*/
|
|
32
|
-
order?: Order | MQ<Order>;
|
|
33
|
-
alignSelf?: ColumnAlignment | MQ<ColumnAlignment>;
|
|
34
|
-
"data-e2e-test-id"?: string;
|
|
35
|
-
/** @ignore */
|
|
36
|
-
"data-ds-id"?: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const Column: import("@emotion/styled").StyledComponent<{
|
|
39
|
-
theme?: import("@emotion/react").Theme;
|
|
40
|
-
as?: React.ElementType<any>;
|
|
41
|
-
} & Partial<ColumnProps>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
|
-
export declare const Columns: import("@emotion/styled").StyledComponent<{
|
|
43
|
-
theme?: import("@emotion/react").Theme;
|
|
44
|
-
as?: React.ElementType<any>;
|
|
45
|
-
} & Partial<ColumnsProps>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BorderRadius } from "src/types";
|
|
3
|
-
export declare type ContainerProps = {
|
|
4
|
-
/** 0 - base, 1 - Card, 2 - Tooltips, 3 - Dropdowns, 4 - Modals */
|
|
5
|
-
elevation: 0 | 1 | 2 | 3 | 4;
|
|
6
|
-
borderRadius?: BorderRadius;
|
|
7
|
-
overflow?: "auto" | "hidden" | "visible";
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
squareCorners?: boolean;
|
|
10
|
-
"data-e2e-test-id"?: string;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
"data-ds-id"?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare function Container({ children, elevation, borderRadius, overflow, squareCorners, "data-e2e-test-id": dataE2eTestId, "data-ds-id": dataDsId, }: ContainerProps): React.ReactElement;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { DataTableColumn, DataTableRow } from "./types";
|
|
3
|
-
import { MQ } from "../../types";
|
|
4
|
-
export declare type DataTableProps = {
|
|
5
|
-
/** Screen reader text for table caption */
|
|
6
|
-
caption: string;
|
|
7
|
-
/** CSS table layout. In 'auto' layout, columns are sized according to content width. In 'fixed' layout, columns can be provided a fixed or percentage width. */
|
|
8
|
-
layout?: "auto" | "fixed";
|
|
9
|
-
/** Table width */
|
|
10
|
-
width?: string | MQ<string>;
|
|
11
|
-
/** Vertical padding on row cells to set table density, condensed (s), default (m), comfortable (l) */
|
|
12
|
-
bodyCellVerticalPadding?: "s" | "m" | "l" | MQ<"s" | "m" | "l">;
|
|
13
|
-
/** Height of empty/error or loading table content */
|
|
14
|
-
emptyTableContentHeight?: string | MQ<string>;
|
|
15
|
-
/** Footer element */
|
|
16
|
-
footer?: React.ReactElement;
|
|
17
|
-
/**
|
|
18
|
-
* Meta data for columns
|
|
19
|
-
* @param DataTableColumn[].name - Column name
|
|
20
|
-
* @param DataTableColumn[].label - Column label for display
|
|
21
|
-
* @param DataTableColumn[].align - Align cell content, 'left' | 'right' | 'center'
|
|
22
|
-
* @param DataTableColumn[].width - Column width
|
|
23
|
-
* @param DataTableColumn[].renderCell - Callback to render custom cell content.
|
|
24
|
-
* @param DataTableColumn[].isSortable - Is table sortable by column
|
|
25
|
-
* @param DataTableColumn[].sortDirection - Sorted as 'asc' | 'desc'
|
|
26
|
-
*/
|
|
27
|
-
columns: DataTableColumn[];
|
|
28
|
-
/**
|
|
29
|
-
* Table content as an array of objects with values for each column
|
|
30
|
-
*/
|
|
31
|
-
rows?: DataTableRow[];
|
|
32
|
-
/**
|
|
33
|
-
* Is loading data. You can display custom loading content with children prop.
|
|
34
|
-
*/
|
|
35
|
-
isLoading?: boolean;
|
|
36
|
-
/** Screen reader text for loading spinner */
|
|
37
|
-
loadingStateScreenReaderText?: string;
|
|
38
|
-
/** Is empty or in error state. You can display custom empty/error content with children prop.
|
|
39
|
-
*/
|
|
40
|
-
isEmpty?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Is first column sticky on scroll
|
|
43
|
-
*/
|
|
44
|
-
isFirstColumnSticky?: boolean;
|
|
45
|
-
"data-e2e-test-id"?: string;
|
|
46
|
-
/** Column most recently used to sort data */
|
|
47
|
-
currentlySortedByColumn?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Callback to handle sorting by column
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Empty cell content.
|
|
53
|
-
*/
|
|
54
|
-
emptyCellContent?: string;
|
|
55
|
-
onSort?: (columnName: string, desiredSortDirection: DataTableColumn["sortDirection"]) => void;
|
|
56
|
-
};
|
|
57
|
-
export declare function BaseDataTable({ caption, columns, rows, footer, currentlySortedByColumn, isFirstColumnSticky, "data-e2e-test-id": dataE2eTestId, isLoading, loadingStateScreenReaderText, isEmpty, children, emptyTableContentHeight, layout, width, bodyCellVerticalPadding, emptyCellContent, onSort, }: React.PropsWithChildren<DataTableProps>): React.ReactElement;
|
|
58
|
-
export declare function DataTable({ caption, columns, rows, footer, currentlySortedByColumn, isFirstColumnSticky, "data-e2e-test-id": dataE2eTestId, isLoading, loadingStateScreenReaderText, isEmpty, children, emptyTableContentHeight, layout, width, bodyCellVerticalPadding, emptyCellContent, onSort, }: React.PropsWithChildren<DataTableProps>): React.ReactElement;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { DataTableProps } from "./DataTable";
|
|
3
|
-
export declare type TableBodyProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
isTableScrolled: boolean;
|
|
6
|
-
} & Pick<DataTableProps, "columns" | "rows" | "isLoading" | "loadingStateScreenReaderText" | "isEmpty" | "emptyTableContentHeight" | "bodyCellVerticalPadding" | "footer" | "isFirstColumnSticky" | "emptyCellContent">;
|
|
7
|
-
declare function TableBody({ className, columns, rows, bodyCellVerticalPadding, isTableScrolled, isLoading, loadingStateScreenReaderText, isEmpty, emptyTableContentHeight, footer, children, isFirstColumnSticky, emptyCellContent, }: React.PropsWithChildren<TableBodyProps>): React.ReactElement;
|
|
8
|
-
declare const _default: React.MemoExoticComponent<typeof TableBody>;
|
|
9
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TableBodyProps } from "./TableBody";
|
|
3
|
-
import type { DataTableColumn } from "./types";
|
|
4
|
-
export declare type TableCellProps = {
|
|
5
|
-
alignColumn?: DataTableColumn["align"];
|
|
6
|
-
columnWidth?: DataTableColumn["width"];
|
|
7
|
-
} & Pick<TableBodyProps, "isFirstColumnSticky" | "isTableScrolled">;
|
|
8
|
-
declare const TableCell: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: import("react").ElementType<any>;
|
|
11
|
-
} & {
|
|
12
|
-
alignColumn?: DataTableColumn["align"];
|
|
13
|
-
columnWidth?: DataTableColumn["width"];
|
|
14
|
-
} & Pick<TableBodyProps, "isFirstColumnSticky" | "isTableScrolled">, import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
15
|
-
export default TableCell;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { DataTableProps } from "./DataTable";
|
|
3
|
-
export declare type TableHeaderProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
isTableScrolled: boolean;
|
|
6
|
-
} & Pick<DataTableProps, "columns" | "rows" | "onSort" | "currentlySortedByColumn" | "isFirstColumnSticky">;
|
|
7
|
-
declare function TableHeader({ className, columns, isFirstColumnSticky, currentlySortedByColumn, isTableScrolled, onSort, }: TableHeaderProps): React.ReactElement;
|
|
8
|
-
declare const _default: React.MemoExoticComponent<typeof TableHeader>;
|
|
9
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextAlignment, MQ } from "../../types";
|
|
3
|
-
export declare type DataTableRow = {
|
|
4
|
-
id: string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export declare type DataTableColumn = {
|
|
8
|
-
name: string;
|
|
9
|
-
label: string;
|
|
10
|
-
align?: TextAlignment | MQ<TextAlignment>;
|
|
11
|
-
width?: string | MQ<string>;
|
|
12
|
-
isSortable?: boolean;
|
|
13
|
-
sortDirection?: "asc" | "desc";
|
|
14
|
-
renderCell?: (row: DataTableRow) => React.ReactElement;
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from "react";
|
|
2
|
-
import type { DataTableColumn, DataTableRow } from "./types";
|
|
3
|
-
import type { DataTableProps } from "./DataTable";
|
|
4
|
-
declare type SortCompareFn = (a: DataTableRow, b: DataTableRow, columnName: DataTableColumn["name"], desiredSortDirection: DataTableColumn["sortDirection"]) => number;
|
|
5
|
-
export declare function useDataTableSort(initialColumns: DataTableColumn[], initialRows: DataTableRow[], initialSortedByColumn?: DataTableColumn["name"], sortCompareFn?: SortCompareFn): {
|
|
6
|
-
columns: DataTableColumn[];
|
|
7
|
-
rows: DataTableRow[];
|
|
8
|
-
currentlySortedByColumn: DataTableColumn["name"];
|
|
9
|
-
handleSort: DataTableProps["onSort"];
|
|
10
|
-
setColumns: Dispatch<SetStateAction<DataTableColumn[]>>;
|
|
11
|
-
setRows: Dispatch<SetStateAction<DataTableRow[]>>;
|
|
12
|
-
setCurrentlySortedByColumn: Dispatch<SetStateAction<DataTableColumn["name"]>>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VerticalPosition, HorizontalPosition } from "../../shared/useAutoPosition";
|
|
3
|
-
import { MenuItemProps } from "./MenuItem";
|
|
4
|
-
import { IconName } from "../Icon/Icon";
|
|
5
|
-
import { ButtonSize } from "../../types";
|
|
6
|
-
declare type Separator = "separator";
|
|
7
|
-
export declare type DropdownItem = MenuItemProps | Separator;
|
|
8
|
-
export declare type DropdownPrivateProps = {
|
|
9
|
-
dropdownSquareCorners?: boolean | ("TopLeft" | "TopRight" | "BottomLeft" | "BottomRight")[];
|
|
10
|
-
};
|
|
11
|
-
export declare type DropdownMenuProps = {
|
|
12
|
-
/** an array of menu items, contains "label" and "onSelect" */
|
|
13
|
-
menuItems: DropdownItem[];
|
|
14
|
-
/** the text variant of menu items */
|
|
15
|
-
menuItemTextVariant?: "uppercase" | "capitalize" | "lowercase" | "none";
|
|
16
|
-
label?: string;
|
|
17
|
-
iconName?: IconName;
|
|
18
|
-
size?: ButtonSize;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** Dropdown menu open state callback */
|
|
21
|
-
onMenuOpen?: (e: React.MouseEvent) => void;
|
|
22
|
-
/** Dropdown menu close state callback */
|
|
23
|
-
onMenuClose?: (e: React.MouseEvent) => void;
|
|
24
|
-
privateProps?: DropdownPrivateProps;
|
|
25
|
-
"data-e2e-test-id"?: string;
|
|
26
|
-
};
|
|
27
|
-
export declare type MenuPositionProps = {
|
|
28
|
-
verticalPosition: VerticalPosition;
|
|
29
|
-
horizontalPosition: HorizontalPosition;
|
|
30
|
-
};
|
|
31
|
-
export declare function DropdownMenu({ menuItems, menuItemTextVariant, label, iconName, size, disabled, onMenuOpen, onMenuClose, privateProps: { dropdownSquareCorners }, "data-e2e-test-id": dataE2eTestId, }: DropdownMenuProps): React.ReactElement;
|
|
32
|
-
export declare namespace DropdownMenu {
|
|
33
|
-
var defaultProps: Partial<DropdownMenuProps>;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ButtonSize } from "../../types";
|
|
3
|
-
import { IconName } from "../Icon/Icon";
|
|
4
|
-
export declare type MenuItemProps = {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
/** The text for the menu item */
|
|
7
|
-
label: string;
|
|
8
|
-
/** The size of the menu item */
|
|
9
|
-
size?: ButtonSize;
|
|
10
|
-
/** Menu item disabled state */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** On select menu item callback */
|
|
13
|
-
onSelect: (e: React.MouseEvent) => void;
|
|
14
|
-
icon?: IconName;
|
|
15
|
-
emphasized?: boolean;
|
|
16
|
-
textVariant?: "uppercase" | "capitalize" | "lowercase" | "none";
|
|
17
|
-
onBlur?: (e: React.FocusEvent) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare function MenuItem({ label, size, disabled, onSelect, icon, emphasized, textVariant, onBlur, }: MenuItemProps): React.ReactElement;
|