@cloudscape-design/components 3.0.262 → 3.0.263

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.
Files changed (110) hide show
  1. package/THIRD-PARTY-LICENSES +31 -0
  2. package/collection-preferences/content-display/index.d.ts +9 -0
  3. package/collection-preferences/content-display/index.d.ts.map +1 -0
  4. package/collection-preferences/content-display/index.js +55 -0
  5. package/collection-preferences/content-display/index.js.map +1 -0
  6. package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts +3 -0
  7. package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +1 -0
  8. package/collection-preferences/content-display/keyboard-sensor/defaults.js +9 -0
  9. package/collection-preferences/content-display/keyboard-sensor/defaults.js.map +1 -0
  10. package/collection-preferences/content-display/keyboard-sensor/index.d.ts +19 -0
  11. package/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +1 -0
  12. package/collection-preferences/content-display/keyboard-sensor/index.js +126 -0
  13. package/collection-preferences/content-display/keyboard-sensor/index.js.map +1 -0
  14. package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts +11 -0
  15. package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +1 -0
  16. package/collection-preferences/content-display/keyboard-sensor/utilities/events.js +14 -0
  17. package/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +1 -0
  18. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts +8 -0
  19. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +1 -0
  20. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js +17 -0
  21. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +1 -0
  22. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts +30 -0
  23. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +1 -0
  24. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js +95 -0
  25. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +1 -0
  26. package/collection-preferences/content-display/sortable-item.d.ts +9 -0
  27. package/collection-preferences/content-display/sortable-item.d.ts.map +1 -0
  28. package/collection-preferences/content-display/sortable-item.js +52 -0
  29. package/collection-preferences/content-display/sortable-item.js.map +1 -0
  30. package/collection-preferences/content-display/styles.css.js +20 -0
  31. package/collection-preferences/content-display/styles.scoped.css +303 -0
  32. package/collection-preferences/content-display/styles.selectors.js +21 -0
  33. package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts +14 -0
  34. package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +1 -0
  35. package/collection-preferences/content-display/use-drag-and-drop-reorder.js +144 -0
  36. package/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +1 -0
  37. package/collection-preferences/content-display/use-live-announcements.d.ts +12 -0
  38. package/collection-preferences/content-display/use-live-announcements.d.ts.map +1 -0
  39. package/collection-preferences/content-display/use-live-announcements.js +40 -0
  40. package/collection-preferences/content-display/use-live-announcements.js.map +1 -0
  41. package/collection-preferences/content-display/utils.d.ts +9 -0
  42. package/collection-preferences/content-display/utils.d.ts.map +1 -0
  43. package/collection-preferences/content-display/utils.js +7 -0
  44. package/collection-preferences/content-display/utils.js.map +1 -0
  45. package/collection-preferences/index.d.ts +1 -1
  46. package/collection-preferences/index.d.ts.map +1 -1
  47. package/collection-preferences/index.js +15 -9
  48. package/collection-preferences/index.js.map +1 -1
  49. package/collection-preferences/interfaces.d.ts +47 -1
  50. package/collection-preferences/interfaces.d.ts.map +1 -1
  51. package/collection-preferences/interfaces.js.map +1 -1
  52. package/collection-preferences/styles.css.js +36 -21
  53. package/collection-preferences/styles.scoped.css +326 -22
  54. package/collection-preferences/styles.selectors.js +36 -21
  55. package/collection-preferences/utils.d.ts +1 -1
  56. package/collection-preferences/utils.d.ts.map +1 -1
  57. package/collection-preferences/utils.js +20 -9
  58. package/collection-preferences/utils.js.map +1 -1
  59. package/internal/components/token-list/styles.css.js +9 -9
  60. package/internal/components/token-list/styles.scoped.css +22 -21
  61. package/internal/components/token-list/styles.selectors.js +9 -9
  62. package/internal/drag-handle/index.d.ts +9 -0
  63. package/internal/drag-handle/index.d.ts.map +1 -0
  64. package/internal/drag-handle/index.js +13 -0
  65. package/internal/drag-handle/index.js.map +1 -0
  66. package/internal/drag-handle/styles.css.js +6 -0
  67. package/internal/drag-handle/styles.scoped.css +13 -0
  68. package/internal/drag-handle/styles.selectors.js +7 -0
  69. package/internal/environment.js +1 -1
  70. package/internal/handle/index.d.ts +3 -0
  71. package/internal/handle/index.d.ts.map +1 -0
  72. package/internal/handle/index.js +14 -0
  73. package/internal/handle/index.js.map +1 -0
  74. package/internal/handle/styles.css.js +7 -0
  75. package/internal/handle/styles.scoped.css +125 -0
  76. package/internal/handle/styles.selectors.js +8 -0
  77. package/internal/manifest.json +1 -1
  78. package/package.json +4 -1
  79. package/table/body-cell/styles.css.js +23 -23
  80. package/table/body-cell/styles.scoped.css +59 -59
  81. package/table/body-cell/styles.selectors.js +23 -23
  82. package/table/interfaces.d.ts +16 -3
  83. package/table/interfaces.d.ts.map +1 -1
  84. package/table/interfaces.js.map +1 -1
  85. package/table/internal.d.ts.map +1 -1
  86. package/table/internal.js +7 -5
  87. package/table/internal.js.map +1 -1
  88. package/table/thead.d.ts.map +1 -1
  89. package/table/thead.js +3 -6
  90. package/table/thead.js.map +1 -1
  91. package/table/utils.d.ts +5 -0
  92. package/table/utils.d.ts.map +1 -1
  93. package/table/utils.js +23 -0
  94. package/table/utils.js.map +1 -1
  95. package/test-utils/dom/collection-preferences/content-display-preference.d.ts +37 -0
  96. package/test-utils/dom/collection-preferences/content-display-preference.js +62 -0
  97. package/test-utils/dom/collection-preferences/content-display-preference.js.map +1 -0
  98. package/test-utils/dom/collection-preferences/index.d.ts +2 -0
  99. package/test-utils/dom/collection-preferences/index.js +4 -0
  100. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  101. package/test-utils/selectors/collection-preferences/content-display-preference.d.ts +37 -0
  102. package/test-utils/selectors/collection-preferences/content-display-preference.js +62 -0
  103. package/test-utils/selectors/collection-preferences/content-display-preference.js.map +1 -0
  104. package/test-utils/selectors/collection-preferences/index.d.ts +2 -0
  105. package/test-utils/selectors/collection-preferences/index.js +4 -0
  106. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  107. package/test-utils/tsconfig.tsbuildinfo +1 -1
  108. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  109. package/top-navigation/parts/overflow-menu/menu-item.js +5 -4
  110. 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-content_tc96w_10hwa_185:not(#\9),
186
- .awsui_visible-content-toggle_tc96w_10hwa_186:not(#\9),
187
- .awsui_visible-content-groups_tc96w_10hwa_187:not(#\9),
188
- .awsui_visible-content-group_tc96w_10hwa_187:not(#\9) {
185
+ .awsui_visible-content_tc96w_e00a9_185:not(#\9),
186
+ .awsui_visible-content-toggle_tc96w_e00a9_186:not(#\9),
187
+ .awsui_visible-content-groups_tc96w_e00a9_187:not(#\9),
188
+ .awsui_visible-content-group_tc96w_e00a9_187:not(#\9) {
189
189
  /* used in test-utils */
190
190
  }
191
191
 
192
- .awsui_visible-content-title_tc96w_10hwa_192:not(#\9) {
192
+ .awsui_visible-content-title_tc96w_e00a9_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-label_tc96w_10hwa_201:not(#\9) {
201
+ .awsui_visible-content-group-label_tc96w_e00a9_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-option_tc96w_10hwa_207:not(#\9) {
207
+ .awsui_visible-content-option_tc96w_e00a9_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-option_tc96w_10hwa_207:not(#\9):last-child {
214
+ .awsui_visible-content-option_tc96w_e00a9_207:not(#\9):last-child {
215
215
  border-bottom: none;
216
216
  }
217
217
 
218
- .awsui_visible-content-option-label_tc96w_10hwa_218:not(#\9) {
218
+ .awsui_visible-content-option-label_tc96w_e00a9_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
- .awsui_root_tc96w_10hwa_225:not(#\9),
226
- .awsui_modal-root_tc96w_10hwa_226:not(#\9),
227
- .awsui_trigger-button_tc96w_10hwa_227:not(#\9),
228
- .awsui_cancel-button_tc96w_10hwa_228:not(#\9),
229
- .awsui_confirm-button_tc96w_10hwa_229:not(#\9),
230
- .awsui_custom_tc96w_10hwa_230:not(#\9) {
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_e00a9_409:not(#\9) {
410
+ /* used in test-utils */
411
+ }
412
+
413
+ .awsui_sortable-item_tc96w_e00a9_409:not(#\9) {
414
+ position: relative;
415
+ }
416
+
417
+ .awsui_sortable-item-placeholder_tc96w_e00a9_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_e00a9_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: 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_e00a9_427:not(#\9):not(.awsui_draggable_tc96w_e00a9_437) {
438
+ padding-left: var(--space-scaled-l-t03y3z, 20px);
439
+ }
440
+ .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437:not(#\9):not(.awsui_active_tc96w_e00a9_446).awsui_sorting_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437:not(#\9):not(.awsui_active_tc96w_e00a9_446).awsui_sorting_tc96w_e00a9_452 {
457
+ animation: none;
458
+ transition: none;
459
+ }
460
+ }
461
+ .awsui-motion-disabled .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_437:not(#\9):not(.awsui_active_tc96w_e00a9_446).awsui_sorting_tc96w_e00a9_452, .awsui-mode-entering .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_437:not(#\9):not(.awsui_active_tc96w_e00a9_446).awsui_sorting_tc96w_e00a9_452 {
462
+ animation: none;
463
+ transition: none;
464
+ }
465
+ body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_446:not(#\9), .awsui-mode-entering body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_446:not(#\9) {
476
+ animation: none;
477
+ transition: none;
478
+ }
479
+ body[data-awsui-focus-visible=true] .awsui_sortable-item-content_tc96w_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_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_e00a9_427.awsui_draggable_tc96w_e00a9_437.awsui_active_tc96w_e00a9_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_e00a9_495:not(#\9) {
496
+ padding-right: var(--space-l-4vl6xu, 20px);
497
+ flex-grow: 1;
498
+ }
499
+
500
+ .awsui_content-display_tc96w_e00a9_500:not(#\9),
501
+ .awsui_content-display-groups_tc96w_e00a9_501:not(#\9),
502
+ .awsui_content-display-group_tc96w_e00a9_501:not(#\9),
503
+ .awsui_content-display-option_tc96w_e00a9_503:not(#\9) {
504
+ /* used in test-utils */
505
+ }
506
+
507
+ .awsui_content-display-title_tc96w_e00a9_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_e00a9_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_e00a9_523:not(#\9) {
524
+ position: relative;
525
+ list-style: none;
526
+ padding: 0;
527
+ }
528
+
529
+ .awsui_root_tc96w_e00a9_529:not(#\9),
530
+ .awsui_modal-root_tc96w_e00a9_530:not(#\9),
531
+ .awsui_trigger-button_tc96w_e00a9_531:not(#\9),
532
+ .awsui_cancel-button_tc96w_e00a9_532:not(#\9),
533
+ .awsui_confirm-button_tc96w_e00a9_533:not(#\9),
534
+ .awsui_custom_tc96w_e00a9_534:not(#\9) {
231
535
  /* used in test-utils */
232
536
  }
233
537
 
234
- .awsui_second-column-small_tc96w_10hwa_234:not(#\9) {
538
+ .awsui_second-column-small_tc96w_e00a9_538:not(#\9) {
235
539
  padding-top: calc(2 * var(--space-scaled-l-t03y3z, 20px));
236
540
  }
237
541
 
238
- .awsui_wrap-lines_tc96w_10hwa_238:not(#\9),
239
- .awsui_striped-rows_tc96w_10hwa_239:not(#\9),
240
- .awsui_content-density_tc96w_10hwa_240:not(#\9),
241
- .awsui_page-size_tc96w_10hwa_241:not(#\9),
242
- .awsui_page-size-form-field_tc96w_10hwa_242:not(#\9),
243
- .awsui_page-size-radio-group_tc96w_10hwa_243:not(#\9) {
542
+ .awsui_wrap-lines_tc96w_e00a9_542:not(#\9),
543
+ .awsui_striped-rows_tc96w_e00a9_543:not(#\9),
544
+ .awsui_content-density_tc96w_e00a9_544:not(#\9),
545
+ .awsui_page-size_tc96w_e00a9_545:not(#\9),
546
+ .awsui_page-size-form-field_tc96w_e00a9_546:not(#\9),
547
+ .awsui_page-size-radio-group_tc96w_e00a9_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-content_tc96w_10hwa_185",
6
- "visible-content-toggle": "awsui_visible-content-toggle_tc96w_10hwa_186",
7
- "visible-content-groups": "awsui_visible-content-groups_tc96w_10hwa_187",
8
- "visible-content-group": "awsui_visible-content-group_tc96w_10hwa_187",
9
- "visible-content-title": "awsui_visible-content-title_tc96w_10hwa_192",
10
- "visible-content-group-label": "awsui_visible-content-group-label_tc96w_10hwa_201",
11
- "visible-content-option": "awsui_visible-content-option_tc96w_10hwa_207",
12
- "visible-content-option-label": "awsui_visible-content-option-label_tc96w_10hwa_218",
13
- "root": "awsui_root_tc96w_10hwa_225",
14
- "modal-root": "awsui_modal-root_tc96w_10hwa_226",
15
- "trigger-button": "awsui_trigger-button_tc96w_10hwa_227",
16
- "cancel-button": "awsui_cancel-button_tc96w_10hwa_228",
17
- "confirm-button": "awsui_confirm-button_tc96w_10hwa_229",
18
- "custom": "awsui_custom_tc96w_10hwa_230",
19
- "second-column-small": "awsui_second-column-small_tc96w_10hwa_234",
20
- "wrap-lines": "awsui_wrap-lines_tc96w_10hwa_238",
21
- "striped-rows": "awsui_striped-rows_tc96w_10hwa_239",
22
- "content-density": "awsui_content-density_tc96w_10hwa_240",
23
- "page-size": "awsui_page-size_tc96w_10hwa_241",
24
- "page-size-form-field": "awsui_page-size-form-field_tc96w_10hwa_242",
25
- "page-size-radio-group": "awsui_page-size-radio-group_tc96w_10hwa_243"
5
+ "visible-content": "awsui_visible-content_tc96w_e00a9_185",
6
+ "visible-content-toggle": "awsui_visible-content-toggle_tc96w_e00a9_186",
7
+ "visible-content-groups": "awsui_visible-content-groups_tc96w_e00a9_187",
8
+ "visible-content-group": "awsui_visible-content-group_tc96w_e00a9_187",
9
+ "visible-content-title": "awsui_visible-content-title_tc96w_e00a9_192",
10
+ "visible-content-group-label": "awsui_visible-content-group-label_tc96w_e00a9_201",
11
+ "visible-content-option": "awsui_visible-content-option_tc96w_e00a9_207",
12
+ "visible-content-option-label": "awsui_visible-content-option-label_tc96w_e00a9_218",
13
+ "sortable-item-toggle": "awsui_sortable-item-toggle_tc96w_e00a9_409",
14
+ "sortable-item": "awsui_sortable-item_tc96w_e00a9_409",
15
+ "sortable-item-placeholder": "awsui_sortable-item-placeholder_tc96w_e00a9_417",
16
+ "sortable-item-content": "awsui_sortable-item-content_tc96w_e00a9_427",
17
+ "draggable": "awsui_draggable_tc96w_e00a9_437",
18
+ "active": "awsui_active_tc96w_e00a9_446",
19
+ "sorting": "awsui_sorting_tc96w_e00a9_452",
20
+ "sortable-item-label": "awsui_sortable-item-label_tc96w_e00a9_495",
21
+ "content-display": "awsui_content-display_tc96w_e00a9_500",
22
+ "content-display-groups": "awsui_content-display-groups_tc96w_e00a9_501",
23
+ "content-display-group": "awsui_content-display-group_tc96w_e00a9_501",
24
+ "content-display-option": "awsui_content-display-option_tc96w_e00a9_503",
25
+ "content-display-title": "awsui_content-display-title_tc96w_e00a9_507",
26
+ "content-display-description": "awsui_content-display-description_tc96w_e00a9_515",
27
+ "content-display-option-list": "awsui_content-display-option-list_tc96w_e00a9_523",
28
+ "root": "awsui_root_tc96w_e00a9_529",
29
+ "modal-root": "awsui_modal-root_tc96w_e00a9_530",
30
+ "trigger-button": "awsui_trigger-button_tc96w_e00a9_531",
31
+ "cancel-button": "awsui_cancel-button_tc96w_e00a9_532",
32
+ "confirm-button": "awsui_confirm-button_tc96w_e00a9_533",
33
+ "custom": "awsui_custom_tc96w_e00a9_534",
34
+ "second-column-small": "awsui_second-column-small_tc96w_e00a9_538",
35
+ "wrap-lines": "awsui_wrap-lines_tc96w_e00a9_542",
36
+ "striped-rows": "awsui_striped-rows_tc96w_e00a9_543",
37
+ "content-density": "awsui_content-density_tc96w_e00a9_544",
38
+ "page-size": "awsui_page-size_tc96w_e00a9_545",
39
+ "page-size-form-field": "awsui_page-size-form-field_tc96w_e00a9_546",
40
+ "page-size-radio-group": "awsui_page-size-radio-group_tc96w_e00a9_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,kFAOzB,2BAA2B,WAAW,KAAG,2BAA2B,WAOrE,CAAC;AAEH,eAA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AAO,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
- pageSize: newPref.pageSize !== undefined ? newPref.pageSize : oldPref.pageSize,
21
- wrapLines: newPref.wrapLines !== undefined ? newPref.wrapLines : oldPref.wrapLines,
22
- stripedRows: newPref.stripedRows !== undefined ? newPref.stripedRows : oldPref.stripedRows,
23
- contentDensity: newPref.contentDensity !== undefined ? newPref.contentDensity : oldPref.contentDensity,
24
- visibleContent: newPref.visibleContent !== undefined ? newPref.visibleContent : oldPref.visibleContent,
25
- custom: newPref.custom !== undefined ? newPref.custom : oldPref.custom,
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;IACd,cAAc;IACd,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAA+C,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AAE,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 custom,\n}: CollectionPreferencesProps.Preferences): CollectionPreferencesProps.Preferences => ({\n pageSize,\n wrapLines,\n stripedRows,\n contentDensity,\n visibleContent,\n custom,\n});\n\nexport const mergePreferences = (\n newPref: CollectionPreferencesProps.Preferences,\n oldPref: CollectionPreferencesProps.Preferences\n): CollectionPreferencesProps.Preferences => ({\n pageSize: newPref.pageSize !== undefined ? newPref.pageSize : oldPref.pageSize,\n wrapLines: newPref.wrapLines !== undefined ? newPref.wrapLines : oldPref.wrapLines,\n stripedRows: newPref.stripedRows !== undefined ? newPref.stripedRows : oldPref.stripedRows,\n contentDensity: newPref.contentDensity !== undefined ? newPref.contentDensity : oldPref.contentDensity,\n visibleContent: newPref.visibleContent !== undefined ? newPref.visibleContent : oldPref.visibleContent,\n custom: newPref.custom !== undefined ? newPref.custom : oldPref.custom,\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"]}
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,cAAc,EACd,MAAM,GACiC,EAA0C,EAAE,CAAC,CAAC;IACrF,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IACd,cAAc;IACd,cAAc;IACd,MAAM;CACP,CAAC,CAAC;AAIH,MAAM,CAAC,MAA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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"]}
@@ -1,14 +1,14 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_gfwv3_sgio_93",
5
- "horizontal": "awsui_horizontal_gfwv3_sgio_98",
6
- "vertical": "awsui_vertical_gfwv3_sgio_102",
7
- "list": "awsui_list_gfwv3_sgio_106",
8
- "list-item": "awsui_list-item_gfwv3_sgio_124",
9
- "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_sgio_128",
10
- "toggle": "awsui_toggle_gfwv3_sgio_128",
11
- "description": "awsui_description_gfwv3_sgio_196",
12
- "separator": "awsui_separator_gfwv3_sgio_200"
4
+ "root": "awsui_root_gfwv3_1w5fz_93",
5
+ "horizontal": "awsui_horizontal_gfwv3_1w5fz_98",
6
+ "vertical": "awsui_vertical_gfwv3_1w5fz_102",
7
+ "list": "awsui_list_gfwv3_1w5fz_106",
8
+ "list-item": "awsui_list-item_gfwv3_1w5fz_124",
9
+ "toggle-container-inline": "awsui_toggle-container-inline_gfwv3_1w5fz_129",
10
+ "toggle": "awsui_toggle_gfwv3_1w5fz_129",
11
+ "description": "awsui_description_gfwv3_1w5fz_197",
12
+ "separator": "awsui_separator_gfwv3_1w5fz_201"
13
13
  };
14
14