@cloudscape-design/components 3.0.1325 → 3.0.1326
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/action-card/interfaces.d.ts +40 -1
- package/action-card/interfaces.d.ts.map +1 -1
- package/action-card/interfaces.js.map +1 -1
- package/action-card/internal.d.ts.map +1 -1
- package/action-card/internal.js +32 -9
- package/action-card/internal.js.map +1 -1
- package/action-card/styles.css.js +17 -17
- package/action-card/styles.scoped.css +96 -92
- package/action-card/styles.selectors.js +17 -17
- package/box/interfaces.d.ts +59 -0
- package/box/interfaces.d.ts.map +1 -1
- package/box/interfaces.js.map +1 -1
- package/box/internal.d.ts +1 -0
- package/box/internal.d.ts.map +1 -1
- package/box/internal.js +4 -2
- package/box/internal.js.map +1 -1
- package/box/styles.css.js +224 -193
- package/box/styles.scoped.css +425 -238
- package/box/styles.selectors.js +224 -193
- package/button-dropdown/category-elements/category-element.d.ts +5 -1
- package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/category-element.js +3 -3
- package/button-dropdown/category-elements/category-element.js.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts +5 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +22 -12
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +5 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +12 -10
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/filter.d.ts +7 -0
- package/button-dropdown/filter.d.ts.map +1 -0
- package/button-dropdown/filter.js +18 -0
- package/button-dropdown/filter.js.map +1 -0
- package/button-dropdown/index.d.ts.map +1 -1
- package/button-dropdown/index.js +3 -3
- package/button-dropdown/index.js.map +1 -1
- package/button-dropdown/interfaces.d.ts +41 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/internal-interfaces.d.ts +12 -0
- package/button-dropdown/internal-interfaces.d.ts.map +1 -1
- package/button-dropdown/internal-interfaces.js.map +1 -1
- package/button-dropdown/internal.d.ts.map +1 -1
- package/button-dropdown/internal.js +46 -7
- package/button-dropdown/internal.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +5 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +35 -16
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/items-list.d.ts +5 -1
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +4 -4
- package/button-dropdown/items-list.js.map +1 -1
- package/button-dropdown/styles.css.js +23 -22
- package/button-dropdown/styles.scoped.css +38 -32
- package/button-dropdown/styles.selectors.js +23 -22
- package/button-dropdown/tooltip.d.ts +3 -1
- package/button-dropdown/tooltip.d.ts.map +1 -1
- package/button-dropdown/tooltip.js +22 -14
- package/button-dropdown/tooltip.js.map +1 -1
- package/button-dropdown/utils/filter-items.d.ts +3 -0
- package/button-dropdown/utils/filter-items.d.ts.map +1 -0
- package/button-dropdown/utils/filter-items.js +55 -0
- package/button-dropdown/utils/filter-items.js.map +1 -0
- package/button-dropdown/utils/use-button-dropdown.d.ts +8 -1
- package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
- package/button-dropdown/utils/use-button-dropdown.js +77 -13
- package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
- package/error-boundary/internal.d.ts.map +1 -1
- package/error-boundary/internal.js +1 -0
- package/error-boundary/internal.js.map +1 -1
- package/internal/base-component/index.js +3 -3
- package/internal/base-component/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +17 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +132 -0
- package/internal/generated/styles/tokens.js +132 -0
- package/internal/generated/theming/index.cjs +1884 -0
- package/internal/generated/theming/index.js +1884 -0
- package/internal/manifest.json +1 -1
- package/item-card/internal.js +1 -1
- package/item-card/internal.js.map +1 -1
- package/manifest.json +2 -2
- package/multiselect/embedded.d.ts +2 -2
- package/multiselect/internal.d.ts +1 -1
- package/package.json +1 -1
- package/select/parts/filter.d.ts +1 -1
- package/table/index.d.ts.map +1 -1
- package/table/index.js +5 -3
- package/table/index.js.map +1 -1
- package/test-utils/dom/action-card/index.d.ts +4 -2
- package/test-utils/dom/action-card/index.js +5 -3
- package/test-utils/dom/action-card/index.js.map +1 -1
- package/test-utils/dom/button-dropdown/index.d.ts +16 -0
- package/test-utils/dom/button-dropdown/index.js +24 -0
- package/test-utils/dom/button-dropdown/index.js.map +1 -1
- package/test-utils/selectors/button-dropdown/index.d.ts +16 -0
- package/test-utils/selectors/button-dropdown/index.js +24 -0
- package/test-utils/selectors/button-dropdown/index.js.map +1 -1
package/box/styles.selectors.js
CHANGED
|
@@ -2,198 +2,229 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"box": "
|
|
6
|
-
"p-variant": "awsui_p-
|
|
7
|
-
"color-default": "awsui_color-
|
|
8
|
-
"b-variant": "awsui_b-
|
|
9
|
-
"strong-variant": "awsui_strong-
|
|
10
|
-
"code-variant": "awsui_code-
|
|
11
|
-
"pre-variant": "awsui_pre-
|
|
12
|
-
"samp-variant": "awsui_samp-
|
|
13
|
-
"h1-variant": "awsui_h1-
|
|
14
|
-
"h2-variant": "awsui_h2-
|
|
15
|
-
"h3-variant": "awsui_h3-
|
|
16
|
-
"h4-variant": "awsui_h4-
|
|
17
|
-
"h5-variant": "awsui_h5-
|
|
18
|
-
"small-variant": "awsui_small-
|
|
19
|
-
"a-variant": "awsui_a-
|
|
20
|
-
"font-size-default": "awsui_font-size-
|
|
21
|
-
"font-weight-default": "awsui_font-weight-
|
|
22
|
-
"key-label-variant": "awsui_key-label-
|
|
23
|
-
"gen-ai-label-variant": "awsui_gen-ai-label-
|
|
24
|
-
"value-large-variant": "awsui_value-large-
|
|
25
|
-
"inline-code-variant": "awsui_inline-code-
|
|
26
|
-
"font-weight-heavy": "awsui_font-weight-
|
|
27
|
-
"color-inverted": "awsui_color-
|
|
28
|
-
"color-text-label": "awsui_color-text-
|
|
29
|
-
"color-text-body-secondary": "awsui_color-text-body-
|
|
30
|
-
"color-text-status-error": "awsui_color-text-status-
|
|
31
|
-
"color-text-status-success": "awsui_color-text-status-
|
|
32
|
-
"color-text-status-info": "awsui_color-text-status-
|
|
33
|
-
"color-text-status-inactive": "awsui_color-text-status-
|
|
34
|
-
"color-text-status-warning": "awsui_color-text-status-
|
|
35
|
-
"color-inherit": "awsui_color-
|
|
36
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
37
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
38
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
39
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
40
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
41
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
42
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
43
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
44
|
-
"font-size-display-xl": "awsui_font-size-display-
|
|
45
|
-
"font-weight-light": "awsui_font-weight-
|
|
46
|
-
"font-weight-normal": "awsui_font-weight-
|
|
47
|
-
"font-weight-bold": "awsui_font-weight-
|
|
48
|
-
"t-left": "awsui_t-
|
|
49
|
-
"t-right": "awsui_t-
|
|
50
|
-
"t-center": "awsui_t-
|
|
51
|
-
"p-n": "awsui_p-
|
|
52
|
-
"p-top-n": "awsui_p-top-
|
|
53
|
-
"p-vertical-n": "awsui_p-vertical-
|
|
54
|
-
"p-right-n": "awsui_p-right-
|
|
55
|
-
"p-horizontal-n": "awsui_p-horizontal-
|
|
56
|
-
"p-bottom-n": "awsui_p-bottom-
|
|
57
|
-
"p-left-n": "awsui_p-left-
|
|
58
|
-
"p-xxxs": "awsui_p-
|
|
59
|
-
"p-top-xxxs": "awsui_p-top-
|
|
60
|
-
"p-vertical-xxxs": "awsui_p-vertical-
|
|
61
|
-
"p-right-xxxs": "awsui_p-right-
|
|
62
|
-
"p-horizontal-xxxs": "awsui_p-horizontal-
|
|
63
|
-
"p-bottom-xxxs": "awsui_p-bottom-
|
|
64
|
-
"p-left-xxxs": "awsui_p-left-
|
|
65
|
-
"p-xxs": "awsui_p-
|
|
66
|
-
"p-top-xxs": "awsui_p-top-
|
|
67
|
-
"p-vertical-xxs": "awsui_p-vertical-
|
|
68
|
-
"p-right-xxs": "awsui_p-right-
|
|
69
|
-
"p-horizontal-xxs": "awsui_p-horizontal-
|
|
70
|
-
"p-bottom-xxs": "awsui_p-bottom-
|
|
71
|
-
"p-left-xxs": "awsui_p-left-
|
|
72
|
-
"p-xs": "awsui_p-
|
|
73
|
-
"p-top-xs": "awsui_p-top-
|
|
74
|
-
"p-vertical-xs": "awsui_p-vertical-
|
|
75
|
-
"p-right-xs": "awsui_p-right-
|
|
76
|
-
"p-horizontal-xs": "awsui_p-horizontal-
|
|
77
|
-
"p-bottom-xs": "awsui_p-bottom-
|
|
78
|
-
"p-left-xs": "awsui_p-left-
|
|
79
|
-
"p-s": "awsui_p-
|
|
80
|
-
"p-top-s": "awsui_p-top-
|
|
81
|
-
"p-vertical-s": "awsui_p-vertical-
|
|
82
|
-
"p-right-s": "awsui_p-right-
|
|
83
|
-
"p-horizontal-s": "awsui_p-horizontal-
|
|
84
|
-
"p-bottom-s": "awsui_p-bottom-
|
|
85
|
-
"p-left-s": "awsui_p-left-
|
|
86
|
-
"p-m": "awsui_p-
|
|
87
|
-
"p-top-m": "awsui_p-top-
|
|
88
|
-
"p-vertical-m": "awsui_p-vertical-
|
|
89
|
-
"p-right-m": "awsui_p-right-
|
|
90
|
-
"p-horizontal-m": "awsui_p-horizontal-
|
|
91
|
-
"p-bottom-m": "awsui_p-bottom-
|
|
92
|
-
"p-left-m": "awsui_p-left-
|
|
93
|
-
"p-l": "awsui_p-
|
|
94
|
-
"p-top-l": "awsui_p-top-
|
|
95
|
-
"p-vertical-l": "awsui_p-vertical-
|
|
96
|
-
"p-right-l": "awsui_p-right-
|
|
97
|
-
"p-horizontal-l": "awsui_p-horizontal-
|
|
98
|
-
"p-bottom-l": "awsui_p-bottom-
|
|
99
|
-
"p-left-l": "awsui_p-left-
|
|
100
|
-
"p-xl": "awsui_p-
|
|
101
|
-
"p-top-xl": "awsui_p-top-
|
|
102
|
-
"p-vertical-xl": "awsui_p-vertical-
|
|
103
|
-
"p-right-xl": "awsui_p-right-
|
|
104
|
-
"p-horizontal-xl": "awsui_p-horizontal-
|
|
105
|
-
"p-bottom-xl": "awsui_p-bottom-
|
|
106
|
-
"p-left-xl": "awsui_p-left-
|
|
107
|
-
"p-xxl": "awsui_p-
|
|
108
|
-
"p-top-xxl": "awsui_p-top-
|
|
109
|
-
"p-vertical-xxl": "awsui_p-vertical-
|
|
110
|
-
"p-right-xxl": "awsui_p-right-
|
|
111
|
-
"p-horizontal-xxl": "awsui_p-horizontal-
|
|
112
|
-
"p-bottom-xxl": "awsui_p-bottom-
|
|
113
|
-
"p-left-xxl": "awsui_p-left-
|
|
114
|
-
"p-xxxl": "awsui_p-
|
|
115
|
-
"p-top-xxxl": "awsui_p-top-
|
|
116
|
-
"p-vertical-xxxl": "awsui_p-vertical-
|
|
117
|
-
"p-right-xxxl": "awsui_p-right-
|
|
118
|
-
"p-horizontal-xxxl": "awsui_p-horizontal-
|
|
119
|
-
"p-bottom-xxxl": "awsui_p-bottom-
|
|
120
|
-
"p-left-xxxl": "awsui_p-left-
|
|
121
|
-
"m-n": "awsui_m-
|
|
122
|
-
"m-top-n": "awsui_m-top-
|
|
123
|
-
"m-vertical-n": "awsui_m-vertical-
|
|
124
|
-
"m-right-n": "awsui_m-right-
|
|
125
|
-
"m-horizontal-n": "awsui_m-horizontal-
|
|
126
|
-
"m-bottom-n": "awsui_m-bottom-
|
|
127
|
-
"m-left-n": "awsui_m-left-
|
|
128
|
-
"m-xxxs": "awsui_m-
|
|
129
|
-
"m-top-xxxs": "awsui_m-top-
|
|
130
|
-
"m-vertical-xxxs": "awsui_m-vertical-
|
|
131
|
-
"m-right-xxxs": "awsui_m-right-
|
|
132
|
-
"m-horizontal-xxxs": "awsui_m-horizontal-
|
|
133
|
-
"m-bottom-xxxs": "awsui_m-bottom-
|
|
134
|
-
"m-left-xxxs": "awsui_m-left-
|
|
135
|
-
"m-xxs": "awsui_m-
|
|
136
|
-
"m-top-xxs": "awsui_m-top-
|
|
137
|
-
"m-vertical-xxs": "awsui_m-vertical-
|
|
138
|
-
"m-right-xxs": "awsui_m-right-
|
|
139
|
-
"m-horizontal-xxs": "awsui_m-horizontal-
|
|
140
|
-
"m-bottom-xxs": "awsui_m-bottom-
|
|
141
|
-
"m-left-xxs": "awsui_m-left-
|
|
142
|
-
"m-xs": "awsui_m-
|
|
143
|
-
"m-top-xs": "awsui_m-top-
|
|
144
|
-
"m-vertical-xs": "awsui_m-vertical-
|
|
145
|
-
"m-right-xs": "awsui_m-right-
|
|
146
|
-
"m-horizontal-xs": "awsui_m-horizontal-
|
|
147
|
-
"m-bottom-xs": "awsui_m-bottom-
|
|
148
|
-
"m-left-xs": "awsui_m-left-
|
|
149
|
-
"m-s": "awsui_m-
|
|
150
|
-
"m-top-s": "awsui_m-top-
|
|
151
|
-
"m-vertical-s": "awsui_m-vertical-
|
|
152
|
-
"m-right-s": "awsui_m-right-
|
|
153
|
-
"m-horizontal-s": "awsui_m-horizontal-
|
|
154
|
-
"m-bottom-s": "awsui_m-bottom-
|
|
155
|
-
"m-left-s": "awsui_m-left-
|
|
156
|
-
"m-m": "awsui_m-
|
|
157
|
-
"m-top-m": "awsui_m-top-
|
|
158
|
-
"m-vertical-m": "awsui_m-vertical-
|
|
159
|
-
"m-right-m": "awsui_m-right-
|
|
160
|
-
"m-horizontal-m": "awsui_m-horizontal-
|
|
161
|
-
"m-bottom-m": "awsui_m-bottom-
|
|
162
|
-
"m-left-m": "awsui_m-left-
|
|
163
|
-
"m-l": "awsui_m-
|
|
164
|
-
"m-top-l": "awsui_m-top-
|
|
165
|
-
"m-vertical-l": "awsui_m-vertical-
|
|
166
|
-
"m-right-l": "awsui_m-right-
|
|
167
|
-
"m-horizontal-l": "awsui_m-horizontal-
|
|
168
|
-
"m-bottom-l": "awsui_m-bottom-
|
|
169
|
-
"m-left-l": "awsui_m-left-
|
|
170
|
-
"m-xl": "awsui_m-
|
|
171
|
-
"m-top-xl": "awsui_m-top-
|
|
172
|
-
"m-vertical-xl": "awsui_m-vertical-
|
|
173
|
-
"m-right-xl": "awsui_m-right-
|
|
174
|
-
"m-horizontal-xl": "awsui_m-horizontal-
|
|
175
|
-
"m-bottom-xl": "awsui_m-bottom-
|
|
176
|
-
"m-left-xl": "awsui_m-left-
|
|
177
|
-
"m-xxl": "awsui_m-
|
|
178
|
-
"m-top-xxl": "awsui_m-top-
|
|
179
|
-
"m-vertical-xxl": "awsui_m-vertical-
|
|
180
|
-
"m-right-xxl": "awsui_m-right-
|
|
181
|
-
"m-horizontal-xxl": "awsui_m-horizontal-
|
|
182
|
-
"m-bottom-xxl": "awsui_m-bottom-
|
|
183
|
-
"m-left-xxl": "awsui_m-left-
|
|
184
|
-
"m-xxxl": "awsui_m-
|
|
185
|
-
"m-top-xxxl": "awsui_m-top-
|
|
186
|
-
"m-vertical-xxxl": "awsui_m-vertical-
|
|
187
|
-
"m-right-xxxl": "awsui_m-right-
|
|
188
|
-
"m-horizontal-xxxl": "awsui_m-horizontal-
|
|
189
|
-
"m-bottom-xxxl": "awsui_m-bottom-
|
|
190
|
-
"m-left-xxxl": "awsui_m-left-
|
|
191
|
-
"d-block": "awsui_d-
|
|
192
|
-
"d-inline": "awsui_d-
|
|
193
|
-
"d-inline-block": "awsui_d-inline-
|
|
194
|
-
"d-none": "awsui_d-
|
|
195
|
-
"f-left": "awsui_f-
|
|
196
|
-
"f-right": "awsui_f-
|
|
197
|
-
"
|
|
5
|
+
"box": "awsui_box_18wu0_1r2yw_172",
|
|
6
|
+
"p-variant": "awsui_p-variant_18wu0_1r2yw_172",
|
|
7
|
+
"color-default": "awsui_color-default_18wu0_1r2yw_172",
|
|
8
|
+
"b-variant": "awsui_b-variant_18wu0_1r2yw_172",
|
|
9
|
+
"strong-variant": "awsui_strong-variant_18wu0_1r2yw_172",
|
|
10
|
+
"code-variant": "awsui_code-variant_18wu0_1r2yw_172",
|
|
11
|
+
"pre-variant": "awsui_pre-variant_18wu0_1r2yw_172",
|
|
12
|
+
"samp-variant": "awsui_samp-variant_18wu0_1r2yw_172",
|
|
13
|
+
"h1-variant": "awsui_h1-variant_18wu0_1r2yw_176",
|
|
14
|
+
"h2-variant": "awsui_h2-variant_18wu0_1r2yw_176",
|
|
15
|
+
"h3-variant": "awsui_h3-variant_18wu0_1r2yw_176",
|
|
16
|
+
"h4-variant": "awsui_h4-variant_18wu0_1r2yw_176",
|
|
17
|
+
"h5-variant": "awsui_h5-variant_18wu0_1r2yw_176",
|
|
18
|
+
"small-variant": "awsui_small-variant_18wu0_1r2yw_180",
|
|
19
|
+
"a-variant": "awsui_a-variant_18wu0_1r2yw_184",
|
|
20
|
+
"font-size-default": "awsui_font-size-default_18wu0_1r2yw_188",
|
|
21
|
+
"font-weight-default": "awsui_font-weight-default_18wu0_1r2yw_229",
|
|
22
|
+
"key-label-variant": "awsui_key-label-variant_18wu0_1r2yw_271",
|
|
23
|
+
"gen-ai-label-variant": "awsui_gen-ai-label-variant_18wu0_1r2yw_278",
|
|
24
|
+
"value-large-variant": "awsui_value-large-variant_18wu0_1r2yw_285",
|
|
25
|
+
"inline-code-variant": "awsui_inline-code-variant_18wu0_1r2yw_295",
|
|
26
|
+
"font-weight-heavy": "awsui_font-weight-heavy_18wu0_1r2yw_309",
|
|
27
|
+
"color-inverted": "awsui_color-inverted_18wu0_1r2yw_314",
|
|
28
|
+
"color-text-label": "awsui_color-text-label_18wu0_1r2yw_317",
|
|
29
|
+
"color-text-body-secondary": "awsui_color-text-body-secondary_18wu0_1r2yw_320",
|
|
30
|
+
"color-text-status-error": "awsui_color-text-status-error_18wu0_1r2yw_323",
|
|
31
|
+
"color-text-status-success": "awsui_color-text-status-success_18wu0_1r2yw_326",
|
|
32
|
+
"color-text-status-info": "awsui_color-text-status-info_18wu0_1r2yw_329",
|
|
33
|
+
"color-text-status-inactive": "awsui_color-text-status-inactive_18wu0_1r2yw_332",
|
|
34
|
+
"color-text-status-warning": "awsui_color-text-status-warning_18wu0_1r2yw_335",
|
|
35
|
+
"color-inherit": "awsui_color-inherit_18wu0_1r2yw_338",
|
|
36
|
+
"font-size-body-s": "awsui_font-size-body-s_18wu0_1r2yw_341",
|
|
37
|
+
"font-size-body-m": "awsui_font-size-body-m_18wu0_1r2yw_346",
|
|
38
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_18wu0_1r2yw_350",
|
|
39
|
+
"font-size-heading-s": "awsui_font-size-heading-s_18wu0_1r2yw_355",
|
|
40
|
+
"font-size-heading-m": "awsui_font-size-heading-m_18wu0_1r2yw_360",
|
|
41
|
+
"font-size-heading-l": "awsui_font-size-heading-l_18wu0_1r2yw_365",
|
|
42
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_18wu0_1r2yw_370",
|
|
43
|
+
"font-size-display-l": "awsui_font-size-display-l_18wu0_1r2yw_375",
|
|
44
|
+
"font-size-display-xl": "awsui_font-size-display-xl_18wu0_1r2yw_380",
|
|
45
|
+
"font-weight-light": "awsui_font-weight-light_18wu0_1r2yw_385",
|
|
46
|
+
"font-weight-normal": "awsui_font-weight-normal_18wu0_1r2yw_388",
|
|
47
|
+
"font-weight-bold": "awsui_font-weight-bold_18wu0_1r2yw_391",
|
|
48
|
+
"t-left": "awsui_t-left_18wu0_1r2yw_398",
|
|
49
|
+
"t-right": "awsui_t-right_18wu0_1r2yw_402",
|
|
50
|
+
"t-center": "awsui_t-center_18wu0_1r2yw_406",
|
|
51
|
+
"p-n": "awsui_p-n_18wu0_1r2yw_423",
|
|
52
|
+
"p-top-n": "awsui_p-top-n_18wu0_1r2yw_428",
|
|
53
|
+
"p-vertical-n": "awsui_p-vertical-n_18wu0_1r2yw_429",
|
|
54
|
+
"p-right-n": "awsui_p-right-n_18wu0_1r2yw_433",
|
|
55
|
+
"p-horizontal-n": "awsui_p-horizontal-n_18wu0_1r2yw_434",
|
|
56
|
+
"p-bottom-n": "awsui_p-bottom-n_18wu0_1r2yw_438",
|
|
57
|
+
"p-left-n": "awsui_p-left-n_18wu0_1r2yw_443",
|
|
58
|
+
"p-xxxs": "awsui_p-xxxs_18wu0_1r2yw_448",
|
|
59
|
+
"p-top-xxxs": "awsui_p-top-xxxs_18wu0_1r2yw_453",
|
|
60
|
+
"p-vertical-xxxs": "awsui_p-vertical-xxxs_18wu0_1r2yw_454",
|
|
61
|
+
"p-right-xxxs": "awsui_p-right-xxxs_18wu0_1r2yw_458",
|
|
62
|
+
"p-horizontal-xxxs": "awsui_p-horizontal-xxxs_18wu0_1r2yw_459",
|
|
63
|
+
"p-bottom-xxxs": "awsui_p-bottom-xxxs_18wu0_1r2yw_463",
|
|
64
|
+
"p-left-xxxs": "awsui_p-left-xxxs_18wu0_1r2yw_468",
|
|
65
|
+
"p-xxs": "awsui_p-xxs_18wu0_1r2yw_473",
|
|
66
|
+
"p-top-xxs": "awsui_p-top-xxs_18wu0_1r2yw_478",
|
|
67
|
+
"p-vertical-xxs": "awsui_p-vertical-xxs_18wu0_1r2yw_479",
|
|
68
|
+
"p-right-xxs": "awsui_p-right-xxs_18wu0_1r2yw_483",
|
|
69
|
+
"p-horizontal-xxs": "awsui_p-horizontal-xxs_18wu0_1r2yw_484",
|
|
70
|
+
"p-bottom-xxs": "awsui_p-bottom-xxs_18wu0_1r2yw_488",
|
|
71
|
+
"p-left-xxs": "awsui_p-left-xxs_18wu0_1r2yw_493",
|
|
72
|
+
"p-xs": "awsui_p-xs_18wu0_1r2yw_498",
|
|
73
|
+
"p-top-xs": "awsui_p-top-xs_18wu0_1r2yw_503",
|
|
74
|
+
"p-vertical-xs": "awsui_p-vertical-xs_18wu0_1r2yw_504",
|
|
75
|
+
"p-right-xs": "awsui_p-right-xs_18wu0_1r2yw_508",
|
|
76
|
+
"p-horizontal-xs": "awsui_p-horizontal-xs_18wu0_1r2yw_509",
|
|
77
|
+
"p-bottom-xs": "awsui_p-bottom-xs_18wu0_1r2yw_513",
|
|
78
|
+
"p-left-xs": "awsui_p-left-xs_18wu0_1r2yw_518",
|
|
79
|
+
"p-s": "awsui_p-s_18wu0_1r2yw_523",
|
|
80
|
+
"p-top-s": "awsui_p-top-s_18wu0_1r2yw_528",
|
|
81
|
+
"p-vertical-s": "awsui_p-vertical-s_18wu0_1r2yw_529",
|
|
82
|
+
"p-right-s": "awsui_p-right-s_18wu0_1r2yw_533",
|
|
83
|
+
"p-horizontal-s": "awsui_p-horizontal-s_18wu0_1r2yw_534",
|
|
84
|
+
"p-bottom-s": "awsui_p-bottom-s_18wu0_1r2yw_538",
|
|
85
|
+
"p-left-s": "awsui_p-left-s_18wu0_1r2yw_543",
|
|
86
|
+
"p-m": "awsui_p-m_18wu0_1r2yw_548",
|
|
87
|
+
"p-top-m": "awsui_p-top-m_18wu0_1r2yw_553",
|
|
88
|
+
"p-vertical-m": "awsui_p-vertical-m_18wu0_1r2yw_554",
|
|
89
|
+
"p-right-m": "awsui_p-right-m_18wu0_1r2yw_558",
|
|
90
|
+
"p-horizontal-m": "awsui_p-horizontal-m_18wu0_1r2yw_559",
|
|
91
|
+
"p-bottom-m": "awsui_p-bottom-m_18wu0_1r2yw_563",
|
|
92
|
+
"p-left-m": "awsui_p-left-m_18wu0_1r2yw_568",
|
|
93
|
+
"p-l": "awsui_p-l_18wu0_1r2yw_443",
|
|
94
|
+
"p-top-l": "awsui_p-top-l_18wu0_1r2yw_578",
|
|
95
|
+
"p-vertical-l": "awsui_p-vertical-l_18wu0_1r2yw_579",
|
|
96
|
+
"p-right-l": "awsui_p-right-l_18wu0_1r2yw_583",
|
|
97
|
+
"p-horizontal-l": "awsui_p-horizontal-l_18wu0_1r2yw_584",
|
|
98
|
+
"p-bottom-l": "awsui_p-bottom-l_18wu0_1r2yw_588",
|
|
99
|
+
"p-left-l": "awsui_p-left-l_18wu0_1r2yw_593",
|
|
100
|
+
"p-xl": "awsui_p-xl_18wu0_1r2yw_598",
|
|
101
|
+
"p-top-xl": "awsui_p-top-xl_18wu0_1r2yw_603",
|
|
102
|
+
"p-vertical-xl": "awsui_p-vertical-xl_18wu0_1r2yw_604",
|
|
103
|
+
"p-right-xl": "awsui_p-right-xl_18wu0_1r2yw_608",
|
|
104
|
+
"p-horizontal-xl": "awsui_p-horizontal-xl_18wu0_1r2yw_609",
|
|
105
|
+
"p-bottom-xl": "awsui_p-bottom-xl_18wu0_1r2yw_613",
|
|
106
|
+
"p-left-xl": "awsui_p-left-xl_18wu0_1r2yw_618",
|
|
107
|
+
"p-xxl": "awsui_p-xxl_18wu0_1r2yw_623",
|
|
108
|
+
"p-top-xxl": "awsui_p-top-xxl_18wu0_1r2yw_628",
|
|
109
|
+
"p-vertical-xxl": "awsui_p-vertical-xxl_18wu0_1r2yw_629",
|
|
110
|
+
"p-right-xxl": "awsui_p-right-xxl_18wu0_1r2yw_633",
|
|
111
|
+
"p-horizontal-xxl": "awsui_p-horizontal-xxl_18wu0_1r2yw_634",
|
|
112
|
+
"p-bottom-xxl": "awsui_p-bottom-xxl_18wu0_1r2yw_638",
|
|
113
|
+
"p-left-xxl": "awsui_p-left-xxl_18wu0_1r2yw_643",
|
|
114
|
+
"p-xxxl": "awsui_p-xxxl_18wu0_1r2yw_648",
|
|
115
|
+
"p-top-xxxl": "awsui_p-top-xxxl_18wu0_1r2yw_653",
|
|
116
|
+
"p-vertical-xxxl": "awsui_p-vertical-xxxl_18wu0_1r2yw_654",
|
|
117
|
+
"p-right-xxxl": "awsui_p-right-xxxl_18wu0_1r2yw_658",
|
|
118
|
+
"p-horizontal-xxxl": "awsui_p-horizontal-xxxl_18wu0_1r2yw_659",
|
|
119
|
+
"p-bottom-xxxl": "awsui_p-bottom-xxxl_18wu0_1r2yw_663",
|
|
120
|
+
"p-left-xxxl": "awsui_p-left-xxxl_18wu0_1r2yw_668",
|
|
121
|
+
"m-n": "awsui_m-n_18wu0_1r2yw_673",
|
|
122
|
+
"m-top-n": "awsui_m-top-n_18wu0_1r2yw_678",
|
|
123
|
+
"m-vertical-n": "awsui_m-vertical-n_18wu0_1r2yw_679",
|
|
124
|
+
"m-right-n": "awsui_m-right-n_18wu0_1r2yw_683",
|
|
125
|
+
"m-horizontal-n": "awsui_m-horizontal-n_18wu0_1r2yw_684",
|
|
126
|
+
"m-bottom-n": "awsui_m-bottom-n_18wu0_1r2yw_688",
|
|
127
|
+
"m-left-n": "awsui_m-left-n_18wu0_1r2yw_693",
|
|
128
|
+
"m-xxxs": "awsui_m-xxxs_18wu0_1r2yw_698",
|
|
129
|
+
"m-top-xxxs": "awsui_m-top-xxxs_18wu0_1r2yw_703",
|
|
130
|
+
"m-vertical-xxxs": "awsui_m-vertical-xxxs_18wu0_1r2yw_704",
|
|
131
|
+
"m-right-xxxs": "awsui_m-right-xxxs_18wu0_1r2yw_708",
|
|
132
|
+
"m-horizontal-xxxs": "awsui_m-horizontal-xxxs_18wu0_1r2yw_709",
|
|
133
|
+
"m-bottom-xxxs": "awsui_m-bottom-xxxs_18wu0_1r2yw_713",
|
|
134
|
+
"m-left-xxxs": "awsui_m-left-xxxs_18wu0_1r2yw_718",
|
|
135
|
+
"m-xxs": "awsui_m-xxs_18wu0_1r2yw_723",
|
|
136
|
+
"m-top-xxs": "awsui_m-top-xxs_18wu0_1r2yw_728",
|
|
137
|
+
"m-vertical-xxs": "awsui_m-vertical-xxs_18wu0_1r2yw_729",
|
|
138
|
+
"m-right-xxs": "awsui_m-right-xxs_18wu0_1r2yw_733",
|
|
139
|
+
"m-horizontal-xxs": "awsui_m-horizontal-xxs_18wu0_1r2yw_734",
|
|
140
|
+
"m-bottom-xxs": "awsui_m-bottom-xxs_18wu0_1r2yw_738",
|
|
141
|
+
"m-left-xxs": "awsui_m-left-xxs_18wu0_1r2yw_743",
|
|
142
|
+
"m-xs": "awsui_m-xs_18wu0_1r2yw_748",
|
|
143
|
+
"m-top-xs": "awsui_m-top-xs_18wu0_1r2yw_753",
|
|
144
|
+
"m-vertical-xs": "awsui_m-vertical-xs_18wu0_1r2yw_754",
|
|
145
|
+
"m-right-xs": "awsui_m-right-xs_18wu0_1r2yw_758",
|
|
146
|
+
"m-horizontal-xs": "awsui_m-horizontal-xs_18wu0_1r2yw_759",
|
|
147
|
+
"m-bottom-xs": "awsui_m-bottom-xs_18wu0_1r2yw_763",
|
|
148
|
+
"m-left-xs": "awsui_m-left-xs_18wu0_1r2yw_768",
|
|
149
|
+
"m-s": "awsui_m-s_18wu0_1r2yw_773",
|
|
150
|
+
"m-top-s": "awsui_m-top-s_18wu0_1r2yw_778",
|
|
151
|
+
"m-vertical-s": "awsui_m-vertical-s_18wu0_1r2yw_779",
|
|
152
|
+
"m-right-s": "awsui_m-right-s_18wu0_1r2yw_783",
|
|
153
|
+
"m-horizontal-s": "awsui_m-horizontal-s_18wu0_1r2yw_784",
|
|
154
|
+
"m-bottom-s": "awsui_m-bottom-s_18wu0_1r2yw_788",
|
|
155
|
+
"m-left-s": "awsui_m-left-s_18wu0_1r2yw_793",
|
|
156
|
+
"m-m": "awsui_m-m_18wu0_1r2yw_798",
|
|
157
|
+
"m-top-m": "awsui_m-top-m_18wu0_1r2yw_803",
|
|
158
|
+
"m-vertical-m": "awsui_m-vertical-m_18wu0_1r2yw_804",
|
|
159
|
+
"m-right-m": "awsui_m-right-m_18wu0_1r2yw_808",
|
|
160
|
+
"m-horizontal-m": "awsui_m-horizontal-m_18wu0_1r2yw_809",
|
|
161
|
+
"m-bottom-m": "awsui_m-bottom-m_18wu0_1r2yw_813",
|
|
162
|
+
"m-left-m": "awsui_m-left-m_18wu0_1r2yw_818",
|
|
163
|
+
"m-l": "awsui_m-l_18wu0_1r2yw_693",
|
|
164
|
+
"m-top-l": "awsui_m-top-l_18wu0_1r2yw_828",
|
|
165
|
+
"m-vertical-l": "awsui_m-vertical-l_18wu0_1r2yw_829",
|
|
166
|
+
"m-right-l": "awsui_m-right-l_18wu0_1r2yw_833",
|
|
167
|
+
"m-horizontal-l": "awsui_m-horizontal-l_18wu0_1r2yw_834",
|
|
168
|
+
"m-bottom-l": "awsui_m-bottom-l_18wu0_1r2yw_838",
|
|
169
|
+
"m-left-l": "awsui_m-left-l_18wu0_1r2yw_843",
|
|
170
|
+
"m-xl": "awsui_m-xl_18wu0_1r2yw_848",
|
|
171
|
+
"m-top-xl": "awsui_m-top-xl_18wu0_1r2yw_853",
|
|
172
|
+
"m-vertical-xl": "awsui_m-vertical-xl_18wu0_1r2yw_854",
|
|
173
|
+
"m-right-xl": "awsui_m-right-xl_18wu0_1r2yw_858",
|
|
174
|
+
"m-horizontal-xl": "awsui_m-horizontal-xl_18wu0_1r2yw_859",
|
|
175
|
+
"m-bottom-xl": "awsui_m-bottom-xl_18wu0_1r2yw_863",
|
|
176
|
+
"m-left-xl": "awsui_m-left-xl_18wu0_1r2yw_868",
|
|
177
|
+
"m-xxl": "awsui_m-xxl_18wu0_1r2yw_873",
|
|
178
|
+
"m-top-xxl": "awsui_m-top-xxl_18wu0_1r2yw_878",
|
|
179
|
+
"m-vertical-xxl": "awsui_m-vertical-xxl_18wu0_1r2yw_879",
|
|
180
|
+
"m-right-xxl": "awsui_m-right-xxl_18wu0_1r2yw_883",
|
|
181
|
+
"m-horizontal-xxl": "awsui_m-horizontal-xxl_18wu0_1r2yw_884",
|
|
182
|
+
"m-bottom-xxl": "awsui_m-bottom-xxl_18wu0_1r2yw_888",
|
|
183
|
+
"m-left-xxl": "awsui_m-left-xxl_18wu0_1r2yw_893",
|
|
184
|
+
"m-xxxl": "awsui_m-xxxl_18wu0_1r2yw_898",
|
|
185
|
+
"m-top-xxxl": "awsui_m-top-xxxl_18wu0_1r2yw_903",
|
|
186
|
+
"m-vertical-xxxl": "awsui_m-vertical-xxxl_18wu0_1r2yw_904",
|
|
187
|
+
"m-right-xxxl": "awsui_m-right-xxxl_18wu0_1r2yw_908",
|
|
188
|
+
"m-horizontal-xxxl": "awsui_m-horizontal-xxxl_18wu0_1r2yw_909",
|
|
189
|
+
"m-bottom-xxxl": "awsui_m-bottom-xxxl_18wu0_1r2yw_913",
|
|
190
|
+
"m-left-xxxl": "awsui_m-left-xxxl_18wu0_1r2yw_918",
|
|
191
|
+
"d-block": "awsui_d-block_18wu0_1r2yw_923",
|
|
192
|
+
"d-inline": "awsui_d-inline_18wu0_1r2yw_926",
|
|
193
|
+
"d-inline-block": "awsui_d-inline-block_18wu0_1r2yw_929",
|
|
194
|
+
"d-none": "awsui_d-none_18wu0_1r2yw_932",
|
|
195
|
+
"f-left": "awsui_f-left_18wu0_1r2yw_936",
|
|
196
|
+
"f-right": "awsui_f-right_18wu0_1r2yw_940",
|
|
197
|
+
"visual-accent": "awsui_visual-accent_18wu0_1r2yw_948",
|
|
198
|
+
"visual-accent-radius-xxxs": "awsui_visual-accent-radius-xxxs_18wu0_1r2yw_957",
|
|
199
|
+
"visual-accent-radius-xxs": "awsui_visual-accent-radius-xxs_18wu0_1r2yw_964",
|
|
200
|
+
"visual-accent-radius-xs": "awsui_visual-accent-radius-xs_18wu0_1r2yw_971",
|
|
201
|
+
"visual-accent-radius-s": "awsui_visual-accent-radius-s_18wu0_1r2yw_978",
|
|
202
|
+
"visual-accent-radius-m": "awsui_visual-accent-radius-m_18wu0_1r2yw_985",
|
|
203
|
+
"visual-accent-radius-l": "awsui_visual-accent-radius-l_18wu0_1r2yw_992",
|
|
204
|
+
"visual-accent-radius-xl": "awsui_visual-accent-radius-xl_18wu0_1r2yw_999",
|
|
205
|
+
"visual-accent-radius-xxl": "awsui_visual-accent-radius-xxl_18wu0_1r2yw_1006",
|
|
206
|
+
"visual-accent-radius-xxxl": "awsui_visual-accent-radius-xxxl_18wu0_1r2yw_1013",
|
|
207
|
+
"visual-accent-radius-full": "awsui_visual-accent-radius-full_18wu0_1r2yw_1020",
|
|
208
|
+
"visual-accent-aspect-auto": "awsui_visual-accent-aspect-auto_18wu0_1r2yw_1027",
|
|
209
|
+
"visual-accent-aspect-equal": "awsui_visual-accent-aspect-equal_18wu0_1r2yw_1032",
|
|
210
|
+
"visual-accent-red": "awsui_visual-accent-red_18wu0_1r2yw_1040",
|
|
211
|
+
"visual-accent-yellow": "awsui_visual-accent-yellow_18wu0_1r2yw_1045",
|
|
212
|
+
"visual-accent-indigo": "awsui_visual-accent-indigo_18wu0_1r2yw_1050",
|
|
213
|
+
"visual-accent-green": "awsui_visual-accent-green_18wu0_1r2yw_1055",
|
|
214
|
+
"visual-accent-orange": "awsui_visual-accent-orange_18wu0_1r2yw_1060",
|
|
215
|
+
"visual-accent-purple": "awsui_visual-accent-purple_18wu0_1r2yw_1065",
|
|
216
|
+
"visual-accent-mint": "awsui_visual-accent-mint_18wu0_1r2yw_1070",
|
|
217
|
+
"visual-accent-lime": "awsui_visual-accent-lime_18wu0_1r2yw_1075",
|
|
218
|
+
"visual-accent-grey": "awsui_visual-accent-grey_18wu0_1r2yw_1080",
|
|
219
|
+
"visual-accent-teal": "awsui_visual-accent-teal_18wu0_1r2yw_1085",
|
|
220
|
+
"visual-accent-cyan": "awsui_visual-accent-cyan_18wu0_1r2yw_1090",
|
|
221
|
+
"visual-accent-blue": "awsui_visual-accent-blue_18wu0_1r2yw_1095",
|
|
222
|
+
"visual-accent-violet": "awsui_visual-accent-violet_18wu0_1r2yw_1100",
|
|
223
|
+
"visual-accent-fuchsia": "awsui_visual-accent-fuchsia_18wu0_1r2yw_1105",
|
|
224
|
+
"visual-accent-magenta": "awsui_visual-accent-magenta_18wu0_1r2yw_1110",
|
|
225
|
+
"visual-accent-pink": "awsui_visual-accent-pink_18wu0_1r2yw_1115",
|
|
226
|
+
"visual-accent-rose": "awsui_visual-accent-rose_18wu0_1r2yw_1120",
|
|
227
|
+
"visual-accent-amber": "awsui_visual-accent-amber_18wu0_1r2yw_1125",
|
|
228
|
+
"root": "awsui_root_18wu0_1r2yw_1130"
|
|
198
229
|
};
|
|
199
230
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,QAAA,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,QAAA,MAAM,eAAe,GAAI,sPAmBtB,aAAa,gBAqEf,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import InternalIcon from '../../icon/internal';
|
|
6
6
|
import ItemsList from '../items-list';
|
|
7
7
|
import styles from './styles.css.js';
|
|
8
|
-
const CategoryElement = ({ item, index, onItemActivate, onGroupToggle, targetItem, isHighlighted, isKeyboardHighlight, isExpanded, lastInDropdown, highlightItem, disabled, variant, position, renderItem, }) => {
|
|
8
|
+
const CategoryElement = ({ item, index, onItemActivate, onGroupToggle, targetItem, isHighlighted, isKeyboardHighlight, isExpanded, lastInDropdown, highlightItem, disabled, variant, position, renderItem, filteringText, filteringEnabled, menuId, filteringDescriptionId, }) => {
|
|
9
9
|
var _a;
|
|
10
10
|
const highlighted = isHighlighted(item);
|
|
11
11
|
const groupProps = {
|
|
@@ -17,7 +17,7 @@ const CategoryElement = ({ item, index, onItemActivate, onGroupToggle, targetIte
|
|
|
17
17
|
expanded: true,
|
|
18
18
|
expandDirection: 'vertical',
|
|
19
19
|
};
|
|
20
|
-
const renderResult = (_a = renderItem === null || renderItem === void 0 ? void 0 : renderItem({ item: groupProps })) !== null && _a !== void 0 ? _a : null;
|
|
20
|
+
const renderResult = (_a = renderItem === null || renderItem === void 0 ? void 0 : renderItem({ item: groupProps, filterText: filteringText })) !== null && _a !== void 0 ? _a : null;
|
|
21
21
|
// Hide the category title element from screen readers because it will be
|
|
22
22
|
// provided as an ARIA label.
|
|
23
23
|
return (React.createElement("li", { className: clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled), role: "presentation" },
|
|
@@ -28,7 +28,7 @@ const CategoryElement = ({ item, index, onItemActivate, onGroupToggle, targetIte
|
|
|
28
28
|
(item.iconName || item.iconUrl || item.iconSvg) && (React.createElement("span", { className: styles['icon-wrapper'] },
|
|
29
29
|
React.createElement(InternalIcon, { name: item.iconName, url: item.iconUrl, svg: item.iconSvg, alt: item.iconAlt }))),
|
|
30
30
|
React.createElement("span", null, item.text))))),
|
|
31
|
-
React.createElement("ul", { className: styles['items-list-container'], role: "group", "aria-label": item.text, "aria-disabled": disabled }, item.items && (React.createElement(ItemsList, { items: item.items, onItemActivate: onItemActivate, onGroupToggle: onGroupToggle, targetItem: targetItem, isHighlighted: isHighlighted, isKeyboardHighlight: isKeyboardHighlight, isExpanded: isExpanded, lastInDropdown: lastInDropdown, highlightItem: highlightItem, categoryDisabled: disabled, hasCategoryHeader: !!item.text, variant: variant, position: position, renderItem: renderItem, parentProps: groupProps })))));
|
|
31
|
+
React.createElement("ul", { className: styles['items-list-container'], role: "group", "aria-label": item.text, "aria-disabled": disabled }, item.items && (React.createElement(ItemsList, { items: item.items, onItemActivate: onItemActivate, onGroupToggle: onGroupToggle, targetItem: targetItem, isHighlighted: isHighlighted, isKeyboardHighlight: isKeyboardHighlight, isExpanded: isExpanded, lastInDropdown: lastInDropdown, highlightItem: highlightItem, categoryDisabled: disabled, hasCategoryHeader: !!item.text, variant: variant, position: position, renderItem: renderItem, parentProps: groupProps, filteringText: filteringText, filteringEnabled: filteringEnabled, menuId: menuId, filteringDescriptionId: filteringDescriptionId })))));
|
|
32
32
|
};
|
|
33
33
|
export default CategoryElement;
|
|
34
34
|
//# sourceMappingURL=category-element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAG/C,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,eAAe,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,UAAU,
|
|
1
|
+
{"version":3,"file":"category-element.js","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/category-element.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport { ButtonDropdownProps } from '../interfaces';\nimport { CategoryProps } from '../internal-interfaces';\nimport ItemsList from '../items-list';\n\nimport styles from './styles.css.js';\n\nconst CategoryElement = ({\n item,\n index,\n onItemActivate,\n onGroupToggle,\n targetItem,\n isHighlighted,\n isKeyboardHighlight,\n isExpanded,\n lastInDropdown,\n highlightItem,\n disabled,\n variant,\n position,\n renderItem,\n filteringText,\n filteringEnabled,\n menuId,\n filteringDescriptionId,\n}: CategoryProps) => {\n const highlighted = isHighlighted(item);\n const groupProps: ButtonDropdownProps.GroupRenderItem = {\n type: 'group',\n index: index ?? 0,\n option: item as ButtonDropdownProps.ItemGroup,\n disabled: !!disabled,\n highlighted: !!highlighted,\n expanded: true,\n expandDirection: 'vertical',\n };\n const renderResult = renderItem?.({ item: groupProps, filterText: filteringText }) ?? null;\n\n // Hide the category title element from screen readers because it will be\n // provided as an ARIA label.\n return (\n <li\n className={clsx(styles.category, styles[`variant-${variant}`], disabled && styles.disabled)}\n role=\"presentation\"\n >\n {item.text && (\n <p\n className={clsx(styles.header, {\n [styles.disabled]: disabled,\n [styles['no-content-styling']]: !!renderResult,\n })}\n aria-hidden=\"true\"\n >\n {renderResult ? (\n renderResult\n ) : (\n <span className={styles['header-content']}>\n {(item.iconName || item.iconUrl || item.iconSvg) && (\n <span className={styles['icon-wrapper']}>\n <InternalIcon name={item.iconName} url={item.iconUrl} svg={item.iconSvg} alt={item.iconAlt} />\n </span>\n )}\n <span>{item.text}</span>\n </span>\n )}\n </p>\n )}\n <ul className={styles['items-list-container']} role=\"group\" aria-label={item.text} aria-disabled={disabled}>\n {item.items && (\n <ItemsList\n items={item.items}\n onItemActivate={onItemActivate}\n onGroupToggle={onGroupToggle}\n targetItem={targetItem}\n isHighlighted={isHighlighted}\n isKeyboardHighlight={isKeyboardHighlight}\n isExpanded={isExpanded}\n lastInDropdown={lastInDropdown}\n highlightItem={highlightItem}\n categoryDisabled={disabled}\n hasCategoryHeader={!!item.text}\n variant={variant}\n position={position}\n renderItem={renderItem}\n parentProps={groupProps}\n filteringText={filteringText}\n filteringEnabled={filteringEnabled}\n menuId={menuId}\n filteringDescriptionId={filteringDescriptionId}\n />\n )}\n </ul>\n </li>\n );\n};\n\nexport default CategoryElement;\n"]}
|
|
@@ -14,6 +14,10 @@ declare const ExpandableCategoryElement: ({
|
|
|
14
14
|
expandToViewport,
|
|
15
15
|
variant,
|
|
16
16
|
position,
|
|
17
|
-
renderItem
|
|
17
|
+
renderItem,
|
|
18
|
+
filteringText,
|
|
19
|
+
filteringEnabled,
|
|
20
|
+
menuId,
|
|
21
|
+
filteringDescriptionId
|
|
18
22
|
}: CategoryProps) => JSX.Element;
|
|
19
23
|
export default ExpandableCategoryElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAOvD,QAAA,MAAM,yBAAyB,GAAI,
|
|
1
|
+
{"version":3,"file":"expandable-category-element.d.ts","sourceRoot":"","sources":["../../../../src/button-dropdown/category-elements/expandable-category-element.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAOvD,QAAA,MAAM,yBAAyB,GAAI,wQAoBhC,aAAa,gBA+Kf,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|