@cloudscape-design/components 3.0.262 → 3.0.264
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/THIRD-PARTY-LICENSES +31 -0
- package/autosuggest/options-controller.d.ts +1 -1
- package/autosuggest/options-controller.d.ts.map +1 -1
- package/autosuggest/options-controller.js +22 -23
- package/autosuggest/options-controller.js.map +1 -1
- package/autosuggest/options-list.d.ts.map +1 -1
- package/autosuggest/options-list.js +1 -2
- package/autosuggest/options-list.js.map +1 -1
- package/button/internal.d.ts +0 -1
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +1 -3
- package/button/internal.js.map +1 -1
- package/button/styles.css.js +18 -20
- package/button/styles.scoped.css +136 -298
- package/button/styles.selectors.js +18 -20
- package/collection-preferences/content-display/index.d.ts +9 -0
- package/collection-preferences/content-display/index.d.ts.map +1 -0
- package/collection-preferences/content-display/index.js +55 -0
- package/collection-preferences/content-display/index.js.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts +3 -0
- package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/defaults.js +9 -0
- package/collection-preferences/content-display/keyboard-sensor/defaults.js.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/index.d.ts +19 -0
- package/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/index.js +126 -0
- package/collection-preferences/content-display/keyboard-sensor/index.js.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts +11 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/events.js +14 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts +8 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js +17 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts +30 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +1 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js +95 -0
- package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +1 -0
- package/collection-preferences/content-display/sortable-item.d.ts +9 -0
- package/collection-preferences/content-display/sortable-item.d.ts.map +1 -0
- package/collection-preferences/content-display/sortable-item.js +52 -0
- package/collection-preferences/content-display/sortable-item.js.map +1 -0
- package/collection-preferences/content-display/styles.css.js +20 -0
- package/collection-preferences/content-display/styles.scoped.css +303 -0
- package/collection-preferences/content-display/styles.selectors.js +21 -0
- package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts +14 -0
- package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +1 -0
- package/collection-preferences/content-display/use-drag-and-drop-reorder.js +144 -0
- package/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +1 -0
- package/collection-preferences/content-display/use-live-announcements.d.ts +12 -0
- package/collection-preferences/content-display/use-live-announcements.d.ts.map +1 -0
- package/collection-preferences/content-display/use-live-announcements.js +40 -0
- package/collection-preferences/content-display/use-live-announcements.js.map +1 -0
- package/collection-preferences/content-display/utils.d.ts +9 -0
- package/collection-preferences/content-display/utils.d.ts.map +1 -0
- package/collection-preferences/content-display/utils.js +7 -0
- package/collection-preferences/content-display/utils.js.map +1 -0
- package/collection-preferences/index.d.ts +1 -1
- package/collection-preferences/index.d.ts.map +1 -1
- package/collection-preferences/index.js +15 -9
- package/collection-preferences/index.js.map +1 -1
- package/collection-preferences/interfaces.d.ts +47 -1
- package/collection-preferences/interfaces.d.ts.map +1 -1
- package/collection-preferences/interfaces.js.map +1 -1
- package/collection-preferences/styles.css.js +36 -21
- package/collection-preferences/styles.scoped.css +326 -22
- package/collection-preferences/styles.selectors.js +36 -21
- package/collection-preferences/utils.d.ts +1 -1
- package/collection-preferences/utils.d.ts.map +1 -1
- package/collection-preferences/utils.js +20 -9
- package/collection-preferences/utils.js.map +1 -1
- package/expandable-section/expandable-section-header.js +1 -1
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/styles.css.js +24 -23
- package/expandable-section/styles.scoped.css +66 -44
- package/expandable-section/styles.selectors.js +24 -23
- package/file-upload/file-input/index.d.ts.map +1 -1
- package/file-upload/file-input/index.js +2 -1
- package/file-upload/file-input/index.js.map +1 -1
- package/file-upload/file-input/styles.css.js +4 -3
- package/file-upload/file-input/styles.scoped.css +107 -4
- package/file-upload/file-input/styles.selectors.js +4 -3
- package/internal/components/autosuggest-input/index.js +1 -1
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/components/options-list/utils/test-indexes.d.ts +1 -1
- package/internal/components/options-list/utils/test-indexes.d.ts.map +1 -1
- package/internal/components/options-list/utils/test-indexes.js.map +1 -1
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +22 -21
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/drag-handle/index.d.ts +9 -0
- package/internal/drag-handle/index.d.ts.map +1 -0
- package/internal/drag-handle/index.js +13 -0
- package/internal/drag-handle/index.js.map +1 -0
- package/internal/drag-handle/styles.css.js +6 -0
- package/internal/drag-handle/styles.scoped.css +13 -0
- package/internal/drag-handle/styles.selectors.js +7 -0
- package/internal/environment.js +1 -1
- package/internal/handle/index.d.ts +3 -0
- package/internal/handle/index.d.ts.map +1 -0
- package/internal/handle/index.js +14 -0
- package/internal/handle/index.js.map +1 -0
- package/internal/handle/styles.css.js +7 -0
- package/internal/handle/styles.scoped.css +125 -0
- package/internal/handle/styles.selectors.js +8 -0
- package/internal/manifest.json +1 -1
- package/package.json +4 -1
- package/table/body-cell/styles.css.js +23 -23
- package/table/body-cell/styles.scoped.css +59 -59
- package/table/body-cell/styles.selectors.js +23 -23
- package/table/interfaces.d.ts +16 -3
- package/table/interfaces.d.ts.map +1 -1
- package/table/interfaces.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +7 -5
- package/table/internal.js.map +1 -1
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +3 -6
- package/table/thead.js.map +1 -1
- package/table/utils.d.ts +5 -0
- package/table/utils.d.ts.map +1 -1
- package/table/utils.js +23 -0
- package/table/utils.js.map +1 -1
- package/test-utils/dom/collection-preferences/content-display-preference.d.ts +37 -0
- package/test-utils/dom/collection-preferences/content-display-preference.js +62 -0
- package/test-utils/dom/collection-preferences/content-display-preference.js.map +1 -0
- package/test-utils/dom/collection-preferences/index.d.ts +2 -0
- package/test-utils/dom/collection-preferences/index.js +4 -0
- package/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/test-utils/selectors/collection-preferences/content-display-preference.d.ts +37 -0
- package/test-utils/selectors/collection-preferences/content-display-preference.js +62 -0
- package/test-utils/selectors/collection-preferences/content-display-preference.js.map +1 -0
- package/test-utils/selectors/collection-preferences/index.d.ts +2 -0
- package/test-utils/selectors/collection-preferences/index.js +4 -0
- package/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
- package/top-navigation/parts/overflow-menu/menu-item.js +5 -4
- package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
|
@@ -182,14 +182,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.awsui_visible-
|
|
186
|
-
.awsui_visible-content-
|
|
187
|
-
.awsui_visible-content-
|
|
188
|
-
.awsui_visible-content-
|
|
185
|
+
.awsui_visible-content_tc96w_1m6re_185:not(#\9),
|
|
186
|
+
.awsui_visible-content-toggle_tc96w_1m6re_186:not(#\9),
|
|
187
|
+
.awsui_visible-content-groups_tc96w_1m6re_187:not(#\9),
|
|
188
|
+
.awsui_visible-content-group_tc96w_1m6re_187:not(#\9) {
|
|
189
189
|
/* used in test-utils */
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
.awsui_visible-content-
|
|
192
|
+
.awsui_visible-content-title_tc96w_1m6re_192:not(#\9) {
|
|
193
193
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
194
194
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
195
195
|
font-weight: var(--font-display-label-weight-m18hjh, 700);
|
|
@@ -198,48 +198,352 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
198
198
|
margin-bottom: var(--space-scaled-l-t03y3z, 20px);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
.awsui_visible-content-group-
|
|
201
|
+
.awsui_visible-content-group-label_tc96w_1m6re_201:not(#\9) {
|
|
202
202
|
color: var(--color-text-group-label-w9to2i, #414d5c);
|
|
203
203
|
padding-bottom: var(--space-xs-rsr2qu, 8px);
|
|
204
204
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.awsui_visible-content-
|
|
207
|
+
.awsui_visible-content-option_tc96w_1m6re_207:not(#\9) {
|
|
208
208
|
display: flex;
|
|
209
209
|
flex-wrap: nowrap;
|
|
210
210
|
justify-content: space-between;
|
|
211
211
|
padding: var(--space-xs-rsr2qu, 8px) 0px var(--space-xs-rsr2qu, 8px) var(--space-scaled-l-t03y3z, 20px);
|
|
212
212
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
213
213
|
}
|
|
214
|
-
.awsui_visible-content-
|
|
214
|
+
.awsui_visible-content-option_tc96w_1m6re_207:not(#\9):last-child {
|
|
215
215
|
border-bottom: none;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.awsui_visible-content-option-
|
|
218
|
+
.awsui_visible-content-option-label_tc96w_1m6re_218:not(#\9) {
|
|
219
219
|
overflow: hidden;
|
|
220
220
|
text-overflow: ellipsis;
|
|
221
221
|
padding-right: var(--space-l-4vl6xu, 20px);
|
|
222
222
|
flex-grow: 1;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
|
|
226
|
-
.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
.
|
|
225
|
+
/*
|
|
226
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
227
|
+
SPDX-License-Identifier: Apache-2.0
|
|
228
|
+
*/
|
|
229
|
+
/*
|
|
230
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
231
|
+
SPDX-License-Identifier: Apache-2.0
|
|
232
|
+
*/
|
|
233
|
+
/*
|
|
234
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
235
|
+
SPDX-License-Identifier: Apache-2.0
|
|
236
|
+
*/
|
|
237
|
+
/*
|
|
238
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
239
|
+
SPDX-License-Identifier: Apache-2.0
|
|
240
|
+
*/
|
|
241
|
+
/*
|
|
242
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
243
|
+
SPDX-License-Identifier: Apache-2.0
|
|
244
|
+
*/
|
|
245
|
+
/*
|
|
246
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
247
|
+
SPDX-License-Identifier: Apache-2.0
|
|
248
|
+
*/
|
|
249
|
+
/*
|
|
250
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
251
|
+
SPDX-License-Identifier: Apache-2.0
|
|
252
|
+
*/
|
|
253
|
+
/*
|
|
254
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
255
|
+
SPDX-License-Identifier: Apache-2.0
|
|
256
|
+
*/
|
|
257
|
+
/*
|
|
258
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
259
|
+
SPDX-License-Identifier: Apache-2.0
|
|
260
|
+
*/
|
|
261
|
+
/*
|
|
262
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
263
|
+
SPDX-License-Identifier: Apache-2.0
|
|
264
|
+
*/
|
|
265
|
+
/*
|
|
266
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
267
|
+
SPDX-License-Identifier: Apache-2.0
|
|
268
|
+
*/
|
|
269
|
+
/*
|
|
270
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
271
|
+
SPDX-License-Identifier: Apache-2.0
|
|
272
|
+
*/
|
|
273
|
+
/*
|
|
274
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
275
|
+
SPDX-License-Identifier: Apache-2.0
|
|
276
|
+
*/
|
|
277
|
+
/*
|
|
278
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
279
|
+
SPDX-License-Identifier: Apache-2.0
|
|
280
|
+
*/
|
|
281
|
+
/*
|
|
282
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
283
|
+
SPDX-License-Identifier: Apache-2.0
|
|
284
|
+
*/
|
|
285
|
+
/*
|
|
286
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
287
|
+
SPDX-License-Identifier: Apache-2.0
|
|
288
|
+
*/
|
|
289
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
290
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
291
|
+
/*
|
|
292
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
293
|
+
SPDX-License-Identifier: Apache-2.0
|
|
294
|
+
*/
|
|
295
|
+
/*
|
|
296
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
297
|
+
SPDX-License-Identifier: Apache-2.0
|
|
298
|
+
*/
|
|
299
|
+
/*
|
|
300
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
301
|
+
SPDX-License-Identifier: Apache-2.0
|
|
302
|
+
*/
|
|
303
|
+
/*
|
|
304
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
305
|
+
SPDX-License-Identifier: Apache-2.0
|
|
306
|
+
*/
|
|
307
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
308
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
309
|
+
/*
|
|
310
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
311
|
+
SPDX-License-Identifier: Apache-2.0
|
|
312
|
+
*/
|
|
313
|
+
/*
|
|
314
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
315
|
+
SPDX-License-Identifier: Apache-2.0
|
|
316
|
+
*/
|
|
317
|
+
/*
|
|
318
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
319
|
+
SPDX-License-Identifier: Apache-2.0
|
|
320
|
+
*/
|
|
321
|
+
/*
|
|
322
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
323
|
+
SPDX-License-Identifier: Apache-2.0
|
|
324
|
+
*/
|
|
325
|
+
/*
|
|
326
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
327
|
+
SPDX-License-Identifier: Apache-2.0
|
|
328
|
+
*/
|
|
329
|
+
/*
|
|
330
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
331
|
+
SPDX-License-Identifier: Apache-2.0
|
|
332
|
+
*/
|
|
333
|
+
/*
|
|
334
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
335
|
+
SPDX-License-Identifier: Apache-2.0
|
|
336
|
+
*/
|
|
337
|
+
/*
|
|
338
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
339
|
+
SPDX-License-Identifier: Apache-2.0
|
|
340
|
+
*/
|
|
341
|
+
/*
|
|
342
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
343
|
+
SPDX-License-Identifier: Apache-2.0
|
|
344
|
+
*/
|
|
345
|
+
/*
|
|
346
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
347
|
+
SPDX-License-Identifier: Apache-2.0
|
|
348
|
+
*/
|
|
349
|
+
/*
|
|
350
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
351
|
+
SPDX-License-Identifier: Apache-2.0
|
|
352
|
+
*/
|
|
353
|
+
/*
|
|
354
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
355
|
+
SPDX-License-Identifier: Apache-2.0
|
|
356
|
+
*/
|
|
357
|
+
/*
|
|
358
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
359
|
+
SPDX-License-Identifier: Apache-2.0
|
|
360
|
+
*/
|
|
361
|
+
/*
|
|
362
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
363
|
+
SPDX-License-Identifier: Apache-2.0
|
|
364
|
+
*/
|
|
365
|
+
/*
|
|
366
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
367
|
+
SPDX-License-Identifier: Apache-2.0
|
|
368
|
+
*/
|
|
369
|
+
/*
|
|
370
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
371
|
+
SPDX-License-Identifier: Apache-2.0
|
|
372
|
+
*/
|
|
373
|
+
/*
|
|
374
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
375
|
+
SPDX-License-Identifier: Apache-2.0
|
|
376
|
+
*/
|
|
377
|
+
/*
|
|
378
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
379
|
+
SPDX-License-Identifier: Apache-2.0
|
|
380
|
+
*/
|
|
381
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
382
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
383
|
+
/*
|
|
384
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
385
|
+
SPDX-License-Identifier: Apache-2.0
|
|
386
|
+
*/
|
|
387
|
+
/*
|
|
388
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
389
|
+
SPDX-License-Identifier: Apache-2.0
|
|
390
|
+
*/
|
|
391
|
+
/*
|
|
392
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
393
|
+
SPDX-License-Identifier: Apache-2.0
|
|
394
|
+
*/
|
|
395
|
+
/*
|
|
396
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
397
|
+
SPDX-License-Identifier: Apache-2.0
|
|
398
|
+
*/
|
|
399
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
400
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
401
|
+
/*
|
|
402
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
403
|
+
SPDX-License-Identifier: Apache-2.0
|
|
404
|
+
*/
|
|
405
|
+
/*
|
|
406
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
407
|
+
SPDX-License-Identifier: Apache-2.0
|
|
408
|
+
*/
|
|
409
|
+
.awsui_sortable-item-toggle_tc96w_1m6re_409:not(#\9) {
|
|
410
|
+
/* used in test-utils */
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.awsui_sortable-item_tc96w_1m6re_409:not(#\9) {
|
|
414
|
+
position: relative;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.awsui_sortable-item-placeholder_tc96w_1m6re_417:not(#\9) {
|
|
418
|
+
position: absolute;
|
|
419
|
+
top: 0;
|
|
420
|
+
bottom: 0;
|
|
421
|
+
left: 0;
|
|
422
|
+
right: 0;
|
|
423
|
+
background: var(--color-drag-placeholder-hover-3ohnz1, #d3e7f9);
|
|
424
|
+
border-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.awsui_sortable-item-content_tc96w_1m6re_427:not(#\9) {
|
|
428
|
+
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-wrap: nowrap;
|
|
431
|
+
justify-content: space-between;
|
|
432
|
+
align-items: flex-start;
|
|
433
|
+
padding-top: var(--space-xs-rsr2qu, 8px);
|
|
434
|
+
padding-bottom: var(--space-xs-rsr2qu, 8px);
|
|
435
|
+
padding-right: 0;
|
|
436
|
+
}
|
|
437
|
+
.awsui_sortable-item-content_tc96w_1m6re_427:not(#\9):not(.awsui_draggable_tc96w_1m6re_437) {
|
|
438
|
+
padding-left: var(--space-scaled-l-t03y3z, 20px);
|
|
439
|
+
}
|
|
440
|
+
.awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437:not(#\9) {
|
|
441
|
+
padding-left: 0;
|
|
442
|
+
padding-right: var(--space-scaled-xs-6859qs, 8px);
|
|
443
|
+
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
444
|
+
z-index: 1;
|
|
445
|
+
}
|
|
446
|
+
.awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9) {
|
|
447
|
+
position: relative;
|
|
448
|
+
z-index: 2;
|
|
449
|
+
box-shadow: var(--shadow-container-active-l4kuxc, 0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.1019607843));
|
|
450
|
+
border-radius: var(--border-radius-item-u2ibpi, 8px);
|
|
451
|
+
}
|
|
452
|
+
.awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437:not(#\9):not(.awsui_active_tc96w_1m6re_446).awsui_sorting_tc96w_1m6re_452 {
|
|
453
|
+
transition: transform var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
|
|
454
|
+
}
|
|
455
|
+
@media (prefers-reduced-motion: reduce) {
|
|
456
|
+
.awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437:not(#\9):not(.awsui_active_tc96w_1m6re_446).awsui_sorting_tc96w_1m6re_452 {
|
|
457
|
+
animation: none;
|
|
458
|
+
transition: none;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
.awsui-motion-disabled .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437:not(#\9):not(.awsui_active_tc96w_1m6re_446).awsui_sorting_tc96w_1m6re_452, .awsui-mode-entering .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437:not(#\9):not(.awsui_active_tc96w_1m6re_446).awsui_sorting_tc96w_1m6re_452 {
|
|
462
|
+
animation: none;
|
|
463
|
+
transition: none;
|
|
464
|
+
}
|
|
465
|
+
body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9) {
|
|
466
|
+
transition: transform var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
|
|
467
|
+
position: relative;
|
|
468
|
+
}
|
|
469
|
+
@media (prefers-reduced-motion: reduce) {
|
|
470
|
+
body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9) {
|
|
471
|
+
animation: none;
|
|
472
|
+
transition: none;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
.awsui-motion-disabled body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9), .awsui-mode-entering body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9) {
|
|
476
|
+
animation: none;
|
|
477
|
+
transition: none;
|
|
478
|
+
}
|
|
479
|
+
body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9) {
|
|
480
|
+
outline: 2px dotted transparent;
|
|
481
|
+
outline-offset: calc(0px - 1px);
|
|
482
|
+
}
|
|
483
|
+
body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_1m6re_427.awsui_draggable_tc96w_1m6re_437.awsui_active_tc96w_1m6re_446:not(#\9)::before {
|
|
484
|
+
content: " ";
|
|
485
|
+
display: block;
|
|
486
|
+
position: absolute;
|
|
487
|
+
left: calc(-1 * 0px);
|
|
488
|
+
top: calc(-1 * 0px);
|
|
489
|
+
width: calc(100% + 2 * 0px);
|
|
490
|
+
height: calc(100% + 2 * 0px);
|
|
491
|
+
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
492
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.awsui_sortable-item-label_tc96w_1m6re_495:not(#\9) {
|
|
496
|
+
padding-right: var(--space-l-4vl6xu, 20px);
|
|
497
|
+
flex-grow: 1;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.awsui_content-display_tc96w_1m6re_500:not(#\9),
|
|
501
|
+
.awsui_content-display-groups_tc96w_1m6re_501:not(#\9),
|
|
502
|
+
.awsui_content-display-group_tc96w_1m6re_501:not(#\9),
|
|
503
|
+
.awsui_content-display-option_tc96w_1m6re_503:not(#\9) {
|
|
504
|
+
/* used in test-utils */
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.awsui_content-display-title_tc96w_1m6re_507:not(#\9) {
|
|
508
|
+
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
509
|
+
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
510
|
+
font-weight: var(--font-display-label-weight-m18hjh, 700);
|
|
511
|
+
color: var(--color-text-form-label-k3j0b4, #000716);
|
|
512
|
+
margin: 0;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.awsui_content-display-description_tc96w_1m6re_515:not(#\9) {
|
|
516
|
+
color: var(--color-text-form-secondary-ih9x7l, #5f6b7a);
|
|
517
|
+
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
518
|
+
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
519
|
+
letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
|
|
520
|
+
margin-top: var(--space-scaled-xxxs-lo883m, 2px);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.awsui_content-display-option-list_tc96w_1m6re_523:not(#\9) {
|
|
524
|
+
position: relative;
|
|
525
|
+
list-style: none;
|
|
526
|
+
padding: 0;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.awsui_root_tc96w_1m6re_529:not(#\9),
|
|
530
|
+
.awsui_modal-root_tc96w_1m6re_530:not(#\9),
|
|
531
|
+
.awsui_trigger-button_tc96w_1m6re_531:not(#\9),
|
|
532
|
+
.awsui_cancel-button_tc96w_1m6re_532:not(#\9),
|
|
533
|
+
.awsui_confirm-button_tc96w_1m6re_533:not(#\9),
|
|
534
|
+
.awsui_custom_tc96w_1m6re_534:not(#\9) {
|
|
231
535
|
/* used in test-utils */
|
|
232
536
|
}
|
|
233
537
|
|
|
234
|
-
.awsui_second-column-
|
|
538
|
+
.awsui_second-column-small_tc96w_1m6re_538:not(#\9) {
|
|
235
539
|
padding-top: calc(2 * var(--space-scaled-l-t03y3z, 20px));
|
|
236
540
|
}
|
|
237
541
|
|
|
238
|
-
.awsui_wrap-
|
|
239
|
-
.awsui_striped-
|
|
240
|
-
.awsui_content-
|
|
241
|
-
.awsui_page-
|
|
242
|
-
.awsui_page-size-form-
|
|
243
|
-
.awsui_page-size-radio-
|
|
542
|
+
.awsui_wrap-lines_tc96w_1m6re_542:not(#\9),
|
|
543
|
+
.awsui_striped-rows_tc96w_1m6re_543:not(#\9),
|
|
544
|
+
.awsui_content-density_tc96w_1m6re_544:not(#\9),
|
|
545
|
+
.awsui_page-size_tc96w_1m6re_545:not(#\9),
|
|
546
|
+
.awsui_page-size-form-field_tc96w_1m6re_546:not(#\9),
|
|
547
|
+
.awsui_page-size-radio-group_tc96w_1m6re_547:not(#\9) {
|
|
244
548
|
/* used in test-utils */
|
|
245
549
|
}
|
|
@@ -2,26 +2,41 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"visible-content": "awsui_visible-
|
|
6
|
-
"visible-content-toggle": "awsui_visible-content-
|
|
7
|
-
"visible-content-groups": "awsui_visible-content-
|
|
8
|
-
"visible-content-group": "awsui_visible-content-
|
|
9
|
-
"visible-content-title": "awsui_visible-content-
|
|
10
|
-
"visible-content-group-label": "awsui_visible-content-group-
|
|
11
|
-
"visible-content-option": "awsui_visible-content-
|
|
12
|
-
"visible-content-option-label": "awsui_visible-content-option-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"content-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
5
|
+
"visible-content": "awsui_visible-content_tc96w_1m6re_185",
|
|
6
|
+
"visible-content-toggle": "awsui_visible-content-toggle_tc96w_1m6re_186",
|
|
7
|
+
"visible-content-groups": "awsui_visible-content-groups_tc96w_1m6re_187",
|
|
8
|
+
"visible-content-group": "awsui_visible-content-group_tc96w_1m6re_187",
|
|
9
|
+
"visible-content-title": "awsui_visible-content-title_tc96w_1m6re_192",
|
|
10
|
+
"visible-content-group-label": "awsui_visible-content-group-label_tc96w_1m6re_201",
|
|
11
|
+
"visible-content-option": "awsui_visible-content-option_tc96w_1m6re_207",
|
|
12
|
+
"visible-content-option-label": "awsui_visible-content-option-label_tc96w_1m6re_218",
|
|
13
|
+
"sortable-item-toggle": "awsui_sortable-item-toggle_tc96w_1m6re_409",
|
|
14
|
+
"sortable-item": "awsui_sortable-item_tc96w_1m6re_409",
|
|
15
|
+
"sortable-item-placeholder": "awsui_sortable-item-placeholder_tc96w_1m6re_417",
|
|
16
|
+
"sortable-item-content": "awsui_sortable-item-content_tc96w_1m6re_427",
|
|
17
|
+
"draggable": "awsui_draggable_tc96w_1m6re_437",
|
|
18
|
+
"active": "awsui_active_tc96w_1m6re_446",
|
|
19
|
+
"sorting": "awsui_sorting_tc96w_1m6re_452",
|
|
20
|
+
"sortable-item-label": "awsui_sortable-item-label_tc96w_1m6re_495",
|
|
21
|
+
"content-display": "awsui_content-display_tc96w_1m6re_500",
|
|
22
|
+
"content-display-groups": "awsui_content-display-groups_tc96w_1m6re_501",
|
|
23
|
+
"content-display-group": "awsui_content-display-group_tc96w_1m6re_501",
|
|
24
|
+
"content-display-option": "awsui_content-display-option_tc96w_1m6re_503",
|
|
25
|
+
"content-display-title": "awsui_content-display-title_tc96w_1m6re_507",
|
|
26
|
+
"content-display-description": "awsui_content-display-description_tc96w_1m6re_515",
|
|
27
|
+
"content-display-option-list": "awsui_content-display-option-list_tc96w_1m6re_523",
|
|
28
|
+
"root": "awsui_root_tc96w_1m6re_529",
|
|
29
|
+
"modal-root": "awsui_modal-root_tc96w_1m6re_530",
|
|
30
|
+
"trigger-button": "awsui_trigger-button_tc96w_1m6re_531",
|
|
31
|
+
"cancel-button": "awsui_cancel-button_tc96w_1m6re_532",
|
|
32
|
+
"confirm-button": "awsui_confirm-button_tc96w_1m6re_533",
|
|
33
|
+
"custom": "awsui_custom_tc96w_1m6re_534",
|
|
34
|
+
"second-column-small": "awsui_second-column-small_tc96w_1m6re_538",
|
|
35
|
+
"wrap-lines": "awsui_wrap-lines_tc96w_1m6re_542",
|
|
36
|
+
"striped-rows": "awsui_striped-rows_tc96w_1m6re_543",
|
|
37
|
+
"content-density": "awsui_content-density_tc96w_1m6re_544",
|
|
38
|
+
"page-size": "awsui_page-size_tc96w_1m6re_545",
|
|
39
|
+
"page-size-form-field": "awsui_page-size-form-field_tc96w_1m6re_546",
|
|
40
|
+
"page-size-radio-group": "awsui_page-size-radio-group_tc96w_1m6re_547"
|
|
26
41
|
};
|
|
27
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollectionPreferencesProps } from './interfaces';
|
|
3
|
-
export declare const copyPreferences: ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, custom, }: CollectionPreferencesProps.Preferences) => CollectionPreferencesProps.Preferences;
|
|
3
|
+
export declare const copyPreferences: ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, contentDisplay, custom, }: CollectionPreferencesProps.Preferences) => CollectionPreferencesProps.Preferences;
|
|
4
4
|
export declare const mergePreferences: (newPref: CollectionPreferencesProps.Preferences, oldPref: CollectionPreferencesProps.Preferences) => CollectionPreferencesProps.Preferences;
|
|
5
5
|
interface ModalContentLayoutProps {
|
|
6
6
|
left: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG1D,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG1D,eAAO,MAAM,eAAe,kGAQzB,2BAA2B,WAAW,KAAG,2BAA2B,WAQrE,CAAC;AAIH,eAAO,MAAM,gBAAgB,YAClB,2BAA2B,WAAW,WACtC,2BAA2B,WAAW,KAC9C,2BAA2B,WAiB7B,CAAC;AAEF,UAAU,uBAAuB;IAC/B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,oBAAqB,uBAAuB,gBAsB1E,CAAC;AAEF,UAAU,uBAAwB,SAAQ,0BAA0B,CAAC,kBAAkB;IACrF,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,wCAAyC,uBAAuB,gBAW9F,CAAC;AAEF,UAAU,wBAAyB,SAAQ,0BAA0B,CAAC,mBAAmB;IACvF,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,mBAAmB,4CAA6C,wBAAwB,gBASpG,CAAC;AAEF,UAAU,0BAA2B,SAAQ,0BAA0B,CAAC,qBAAqB;IAC3F,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,4CAA6C,0BAA0B,gBASxG,CAAC;AAEF,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,KAAK,IAAI,CAAC;IACrD,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,4CAA6C,6BAA6B,gBAS9G,CAAC;AAEF,UAAU,qBAAqB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC;IACtG,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC;CACV;AACD,eAAO,MAAM,gBAAgB,0CAA2C,qBAAqB,uBAc5F,CAAC"}
|
|
@@ -8,22 +8,33 @@ import InternalFormField from '../form-field/internal';
|
|
|
8
8
|
import InternalRadioGroup from '../radio-group/internal';
|
|
9
9
|
import { useContainerBreakpoints } from '../internal/hooks/container-queries';
|
|
10
10
|
import styles from './styles.css.js';
|
|
11
|
-
export const copyPreferences = ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, custom, }) => ({
|
|
11
|
+
export const copyPreferences = ({ pageSize, wrapLines, stripedRows, contentDensity, visibleContent, contentDisplay, custom, }) => ({
|
|
12
12
|
pageSize,
|
|
13
13
|
wrapLines,
|
|
14
14
|
stripedRows,
|
|
15
15
|
contentDensity,
|
|
16
16
|
visibleContent,
|
|
17
|
+
contentDisplay,
|
|
17
18
|
custom,
|
|
18
19
|
});
|
|
19
|
-
export const mergePreferences = (newPref, oldPref) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
export const mergePreferences = (newPref, oldPref) => {
|
|
21
|
+
const newObj = Object.assign({}, oldPref);
|
|
22
|
+
const prefNames = [
|
|
23
|
+
'pageSize',
|
|
24
|
+
'wrapLines',
|
|
25
|
+
'stripedRows',
|
|
26
|
+
'contentDensity',
|
|
27
|
+
'visibleContent',
|
|
28
|
+
'custom',
|
|
29
|
+
'contentDisplay',
|
|
30
|
+
];
|
|
31
|
+
for (const prefName of prefNames) {
|
|
32
|
+
if (newPref[prefName] !== undefined) {
|
|
33
|
+
newObj[prefName] = newPref[prefName];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return newObj;
|
|
37
|
+
};
|
|
27
38
|
export const ModalContentLayout = ({ left, right }) => {
|
|
28
39
|
const [breakpoint, ref] = useContainerBreakpoints(['xs']);
|
|
29
40
|
const smallContainer = breakpoint === 'default';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["collection-preferences/utils.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AACpD,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,MAAM,GACiC,EAA0C,EAAE,CAAC,CAAC;IACrF,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IAC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,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,EAC9E,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAEnC,KAAK,CACW,CACpB,CAAC;AAMF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAyB,EAAE,EAAE;IAC/F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,IAAI,gBAAgB,EAAE;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,IAC1B,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE;YACrC,uDAAuD;YACvD,cAAc,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CACE,CACP,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport clsx from 'clsx';\nimport InternalCheckbox from '../checkbox/internal';\nimport InternalColumnLayout from '../column-layout/internal';\nimport InternalFormField from '../form-field/internal';\nimport InternalRadioGroup from '../radio-group/internal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport const copyPreferences = ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n contentDisplay,\n custom,\n});\n\ntype CopyPreferenceName = keyof CollectionPreferencesProps.Preferences;\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => {\n const newObj = { ...oldPref };\n const prefNames: CopyPreferenceName[] = [\n 'pageSize',\n 'wrapLines',\n 'stripedRows',\n 'contentDensity',\n 'visibleContent',\n 'custom',\n 'contentDisplay',\n ];\n for (const prefName of prefNames) {\n if (newPref[prefName] !== undefined) {\n newObj[prefName] = newPref[prefName];\n }\n }\n return newObj;\n};\n\ninterface ModalContentLayoutProps {\n left: React.ReactNode;\n right: React.ReactNode;\n}\n\nexport const ModalContentLayout = ({ left, right }: ModalContentLayoutProps) => {\n const [breakpoint, ref] = useContainerBreakpoints(['xs']);\n const smallContainer = breakpoint === 'default';\n\n if (smallContainer) {\n return (\n <div ref={ref}>\n {left && <div>{left}</div>}\n {right && <div className={clsx(left && styles['second-column-small'])}>{right}</div>}\n </div>\n );\n }\n\n const columns = left && right ? 2 : 1;\n return (\n <div ref={ref}>\n <InternalColumnLayout columns={columns} variant=\"text-grid\">\n {left && <div>{left}</div>}\n {right && <div>{right}</div>}\n </InternalColumnLayout>\n </div>\n );\n};\n\ninterface PageSizePreferenceProps extends CollectionPreferencesProps.PageSizePreference {\n onChange: (value: number) => void;\n value?: number;\n}\n\nexport const PageSizePreference = ({ title, options, value, onChange }: PageSizePreferenceProps) => (\n <div className={styles['page-size']}>\n <InternalFormField label={title} stretch={true} className={styles['page-size-form-field']}>\n <InternalRadioGroup\n className={styles['page-size-radio-group']}\n value={`${value}`}\n items={options.map(({ label, value }) => ({ label, value: `${value}` }))}\n onChange={({ detail }) => onChange(parseInt(detail.value, 10))}\n />\n </InternalFormField>\n </div>\n);\n\ninterface WrapLinesPreferenceProps extends CollectionPreferencesProps.WrapLinesPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const WrapLinesPreference = ({ label, description, value, onChange }: WrapLinesPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['wrap-lines']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface StripedRowsPreferenceProps extends CollectionPreferencesProps.StripedRowsPreference {\n onChange: (value: boolean) => void;\n value?: boolean;\n}\n\nexport const StripedRowsPreference = ({ label, description, value, onChange }: StripedRowsPreferenceProps) => (\n <InternalCheckbox\n checked={!!value}\n description={description}\n onChange={({ detail }) => onChange(detail.checked)}\n className={styles['striped-rows']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface ContentDensityPreferenceProps extends CollectionPreferencesProps.ContentDensityPreference {\n onChange: (value: 'comfortable' | 'compact') => void;\n value?: 'comfortable' | 'compact';\n}\n\nexport const ContentDensityPreference = ({ label, description, value, onChange }: ContentDensityPreferenceProps) => (\n <InternalCheckbox\n checked={value === 'compact'}\n description={description}\n onChange={({ detail }) => onChange(detail.checked ? 'compact' : 'comfortable')}\n className={styles['content-density']}\n >\n {label}\n </InternalCheckbox>\n);\n\ninterface CustomPreferenceProps<T = any> extends Pick<CollectionPreferencesProps<T>, 'customPreference'> {\n onChange: (value: T) => void;\n value: T;\n}\nexport const CustomPreference = ({ value, customPreference, onChange }: CustomPreferenceProps) => {\n const [customState, setCustomState] = useState(value);\n if (customPreference) {\n return (\n <div className={styles.custom}>\n {customPreference(customState, value => {\n // prevent value to be treated as a functional callback\n setCustomState(() => value);\n onChange(value);\n })}\n </div>\n );\n }\n return null;\n};\n"]}
|
|
@@ -28,7 +28,7 @@ const ExpandableContainerHeader = ({ id, className, onClick, ariaLabel, ariaCont
|
|
|
28
28
|
};
|
|
29
29
|
return (React.createElement("div", { id: id, className: className, onClick: onClick },
|
|
30
30
|
React.createElement(Wrapper, null,
|
|
31
|
-
React.createElement("span", { className: styles['header-container-button'], role: "button", tabIndex: 0, onKeyUp: onKeyUp, onKeyDown: onKeyDown, "aria-label": ariaLabel, "aria-labelledby": ariaLabel || !isContainer ? undefined : screenreaderContentId, "aria-controls": ariaControls, "aria-expanded": expanded },
|
|
31
|
+
React.createElement("span", { className: isContainer ? styles['header-container-button'] : styles['header-button'], role: "button", tabIndex: 0, onKeyUp: onKeyUp, onKeyDown: onKeyDown, "aria-label": ariaLabel, "aria-labelledby": ariaLabel || !isContainer ? undefined : screenreaderContentId, "aria-controls": ariaControls, "aria-expanded": expanded },
|
|
32
32
|
React.createElement("span", { className: clsx(styles['icon-container'], styles[`icon-container-${variant}`]) }, icon),
|
|
33
33
|
React.createElement("span", null, children))),
|
|
34
34
|
isContainer && (React.createElement(ScreenreaderOnly, { id: screenreaderContentId },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-header.js","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAClF,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAoC/C,MAAM,uBAAuB,GAAG,CAAC,EAC/B,EAAE,EACF,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,OAAO,GACsB,EAAE,EAAE;IACjC,OAAO,CACL,6BACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,gBACJ,S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AC,uBAAuB,kBACtB,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAC3F,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,IAChB,kBAAkB,GAErB,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM,CACG,CAC3B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ExpandableSectionProps } from './interfaces';\nimport React, { KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';\nimport InternalIcon from '../icon/internal';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport InternalHeader from '../header/internal';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { isDevelopment } from '../internal/is-development';\nimport { warnOnce } from '../internal/logging';\n\ninterface ExpandableDefaultHeaderProps {\n id: string;\n className?: string;\n children?: ReactNode;\n expanded: boolean;\n ariaControls: string;\n ariaLabel?: string;\n onKeyUp: KeyboardEventHandler;\n onKeyDown: KeyboardEventHandler;\n onClick: MouseEventHandler;\n icon: JSX.Element;\n variant: ExpandableSectionProps.Variant;\n}\n\ninterface ExpandableNavigationHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'onKeyUp' | 'onKeyDown'> {\n ariaLabelledBy?: string;\n}\n\ninterface ExpandableContainerHeaderProps extends ExpandableDefaultHeaderProps {\n headerDescription?: ReactNode;\n headerCounter?: string;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n}\n\ninterface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'children' | 'icon'> {\n variant: ExpandableSectionProps.Variant;\n header?: ReactNode;\n headerText?: ReactNode;\n headerDescription?: ReactNode;\n headerCounter?: string;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n ariaLabelledBy?: string;\n}\n\nconst ExpandableDefaultHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n onKeyUp,\n onKeyDown,\n variant,\n}: ExpandableDefaultHeaderProps) => {\n return (\n <div\n id={id}\n role=\"button\"\n className={className}\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n >\n <div className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</div>\n {children}\n </div>\n );\n};\n\nconst ExpandableNavigationHeader = ({\n id,\n className,\n onClick,\n ariaLabelledBy,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n}: ExpandableNavigationHeaderProps) => {\n return (\n <div id={id} className={className} onClick={onClick}>\n <button\n className={styles['icon-container']}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n type=\"button\"\n >\n {icon}\n </button>\n {children}\n </div>\n );\n};\n\nconst ExpandableContainerHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n headerDescription,\n headerCounter,\n variant,\n headingTagOverride,\n onKeyUp,\n onKeyDown,\n}: ExpandableContainerHeaderProps) => {\n const screenreaderContentId = useUniqueId('expandable-section-header-content-');\n const isContainer = variant === 'container';\n\n const Wrapper = isContainer\n ? ({ children }: { children: ReactNode }) => (\n <InternalHeader\n variant=\"h2\"\n description={headerDescription}\n counter={headerCounter}\n headingTagOverride={headingTagOverride}\n >\n {children}\n </InternalHeader>\n )\n : ({ children }: { children: ReactNode }) => {\n const Tag = headingTagOverride || 'div';\n return <Tag className={styles['header-wrapper']}>{children}</Tag>;\n };\n\n return (\n <div id={id} className={className} onClick={onClick}>\n <Wrapper>\n <span\n className={styles['header-container-button']}\n role=\"button\"\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n aria-label={ariaLabel}\n // Do not use aria-labelledby={id} but ScreenreaderOnly because safari+VO does not read headerText in this case.\n aria-labelledby={ariaLabel || !isContainer ? undefined : screenreaderContentId}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n >\n <span className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</span>\n <span>{children}</span>\n </span>\n </Wrapper>\n {isContainer && (\n <ScreenreaderOnly id={screenreaderContentId}>\n {children} {headerCounter} {headerDescription}\n </ScreenreaderOnly>\n )}\n </div>\n );\n};\n\nexport const ExpandableSectionHeader = ({\n id,\n className,\n variant,\n header,\n headerText,\n headerDescription,\n headerCounter,\n headingTagOverride,\n expanded,\n ariaControls,\n ariaLabel,\n ariaLabelledBy,\n onKeyUp,\n onKeyDown,\n onClick,\n}: ExpandableSectionHeaderProps) => {\n const icon = (\n <InternalIcon\n size={variant === 'container' ? 'medium' : 'normal'}\n className={clsx(styles.icon, expanded && styles.expanded)}\n name=\"caret-down-filled\"\n />\n );\n const defaultHeaderProps = {\n id: id,\n icon: icon,\n expanded: expanded,\n ariaControls: ariaControls,\n ariaLabel: ariaLabel,\n onClick: onClick,\n variant,\n };\n\n const triggerClassName = clsx(styles.trigger, styles[`trigger-${variant}`], expanded && styles['trigger-expanded']);\n if (variant === 'navigation') {\n return (\n <ExpandableNavigationHeader\n className={clsx(className, triggerClassName)}\n ariaLabelledBy={ariaLabelledBy}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableNavigationHeader>\n );\n }\n\n if (headerText) {\n return (\n <ExpandableContainerHeader\n className={clsx(className, triggerClassName, expanded && styles.expanded)}\n headerDescription={headerDescription}\n headerCounter={headerCounter}\n headingTagOverride={headingTagOverride}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText}\n </ExpandableContainerHeader>\n );\n }\n\n if (variant === 'container' && header && isDevelopment) {\n warnOnce(\n 'ExpandableSection',\n 'Use `headerText` instead of `header` to provide the button within the heading for a11y.'\n );\n }\n\n return (\n <ExpandableDefaultHeader\n className={clsx(className, triggerClassName, styles.focusable, expanded && styles.expanded)}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableDefaultHeader>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"expandable-section-header.js","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAClF,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAoC/C,MAAM,uBAAuB,GAAG,CAAC,EAC/B,EAAE,EACF,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,SAAS,EACT,OAAO,GACsB,EAAE,EAAE;IACjC,OAAO,CACL,6BACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,gBACJ,SAAS,mBACN,YAAY,mBACZ,QAAQ;QAEvB,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC,IAAG,IAAI,CAAO;QAChG,QAAQ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,CAAC,QAAQ,CAAC,EAC3F,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,IAChB,kBAAkB,GAErB,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM,CACG,CAC3B,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ExpandableSectionProps } from './interfaces';\nimport React, { KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';\nimport InternalIcon from '../icon/internal';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport InternalHeader from '../header/internal';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { isDevelopment } from '../internal/is-development';\nimport { warnOnce } from '../internal/logging';\n\ninterface ExpandableDefaultHeaderProps {\n id: string;\n className?: string;\n children?: ReactNode;\n expanded: boolean;\n ariaControls: string;\n ariaLabel?: string;\n onKeyUp: KeyboardEventHandler;\n onKeyDown: KeyboardEventHandler;\n onClick: MouseEventHandler;\n icon: JSX.Element;\n variant: ExpandableSectionProps.Variant;\n}\n\ninterface ExpandableNavigationHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'onKeyUp' | 'onKeyDown'> {\n ariaLabelledBy?: string;\n}\n\ninterface ExpandableContainerHeaderProps extends ExpandableDefaultHeaderProps {\n headerDescription?: ReactNode;\n headerCounter?: string;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n}\n\ninterface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'children' | 'icon'> {\n variant: ExpandableSectionProps.Variant;\n header?: ReactNode;\n headerText?: ReactNode;\n headerDescription?: ReactNode;\n headerCounter?: string;\n headingTagOverride?: ExpandableSectionProps.HeadingTag;\n ariaLabelledBy?: string;\n}\n\nconst ExpandableDefaultHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n onKeyUp,\n onKeyDown,\n variant,\n}: ExpandableDefaultHeaderProps) => {\n return (\n <div\n id={id}\n role=\"button\"\n className={className}\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n onClick={onClick}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n >\n <div className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</div>\n {children}\n </div>\n );\n};\n\nconst ExpandableNavigationHeader = ({\n id,\n className,\n onClick,\n ariaLabelledBy,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n}: ExpandableNavigationHeaderProps) => {\n return (\n <div id={id} className={className} onClick={onClick}>\n <button\n className={styles['icon-container']}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n type=\"button\"\n >\n {icon}\n </button>\n {children}\n </div>\n );\n};\n\nconst ExpandableContainerHeader = ({\n id,\n className,\n onClick,\n ariaLabel,\n ariaControls,\n expanded,\n children,\n icon,\n headerDescription,\n headerCounter,\n variant,\n headingTagOverride,\n onKeyUp,\n onKeyDown,\n}: ExpandableContainerHeaderProps) => {\n const screenreaderContentId = useUniqueId('expandable-section-header-content-');\n const isContainer = variant === 'container';\n\n const Wrapper = isContainer\n ? ({ children }: { children: ReactNode }) => (\n <InternalHeader\n variant=\"h2\"\n description={headerDescription}\n counter={headerCounter}\n headingTagOverride={headingTagOverride}\n >\n {children}\n </InternalHeader>\n )\n : ({ children }: { children: ReactNode }) => {\n const Tag = headingTagOverride || 'div';\n return <Tag className={styles['header-wrapper']}>{children}</Tag>;\n };\n\n return (\n <div id={id} className={className} onClick={onClick}>\n <Wrapper>\n <span\n className={isContainer ? styles['header-container-button'] : styles['header-button']}\n role=\"button\"\n tabIndex={0}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n aria-label={ariaLabel}\n // Do not use aria-labelledby={id} but ScreenreaderOnly because safari+VO does not read headerText in this case.\n aria-labelledby={ariaLabel || !isContainer ? undefined : screenreaderContentId}\n aria-controls={ariaControls}\n aria-expanded={expanded}\n >\n <span className={clsx(styles['icon-container'], styles[`icon-container-${variant}`])}>{icon}</span>\n <span>{children}</span>\n </span>\n </Wrapper>\n {isContainer && (\n <ScreenreaderOnly id={screenreaderContentId}>\n {children} {headerCounter} {headerDescription}\n </ScreenreaderOnly>\n )}\n </div>\n );\n};\n\nexport const ExpandableSectionHeader = ({\n id,\n className,\n variant,\n header,\n headerText,\n headerDescription,\n headerCounter,\n headingTagOverride,\n expanded,\n ariaControls,\n ariaLabel,\n ariaLabelledBy,\n onKeyUp,\n onKeyDown,\n onClick,\n}: ExpandableSectionHeaderProps) => {\n const icon = (\n <InternalIcon\n size={variant === 'container' ? 'medium' : 'normal'}\n className={clsx(styles.icon, expanded && styles.expanded)}\n name=\"caret-down-filled\"\n />\n );\n const defaultHeaderProps = {\n id: id,\n icon: icon,\n expanded: expanded,\n ariaControls: ariaControls,\n ariaLabel: ariaLabel,\n onClick: onClick,\n variant,\n };\n\n const triggerClassName = clsx(styles.trigger, styles[`trigger-${variant}`], expanded && styles['trigger-expanded']);\n if (variant === 'navigation') {\n return (\n <ExpandableNavigationHeader\n className={clsx(className, triggerClassName)}\n ariaLabelledBy={ariaLabelledBy}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableNavigationHeader>\n );\n }\n\n if (headerText) {\n return (\n <ExpandableContainerHeader\n className={clsx(className, triggerClassName, expanded && styles.expanded)}\n headerDescription={headerDescription}\n headerCounter={headerCounter}\n headingTagOverride={headingTagOverride}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText}\n </ExpandableContainerHeader>\n );\n }\n\n if (variant === 'container' && header && isDevelopment) {\n warnOnce(\n 'ExpandableSection',\n 'Use `headerText` instead of `header` to provide the button within the heading for a11y.'\n );\n }\n\n return (\n <ExpandableDefaultHeader\n className={clsx(className, triggerClassName, styles.focusable, expanded && styles.expanded)}\n onKeyUp={onKeyUp}\n onKeyDown={onKeyDown}\n {...defaultHeaderProps}\n >\n {headerText ?? header}\n </ExpandableDefaultHeader>\n );\n};\n"]}
|