@cloudscape-design/components 3.0.250 → 3.0.252

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 (139) hide show
  1. package/app-layout/visual-refresh/app-bar.js +1 -1
  2. package/app-layout/visual-refresh/app-bar.js.map +1 -1
  3. package/autosuggest/internal.d.ts.map +1 -1
  4. package/autosuggest/internal.js +2 -1
  5. package/autosuggest/internal.js.map +1 -1
  6. package/autosuggest/options-list.d.ts +2 -1
  7. package/autosuggest/options-list.d.ts.map +1 -1
  8. package/autosuggest/options-list.js +8 -2
  9. package/autosuggest/options-list.js.map +1 -1
  10. package/button/internal.d.ts +1 -1
  11. package/button/internal.d.ts.map +1 -1
  12. package/button/internal.js +3 -2
  13. package/button/internal.js.map +1 -1
  14. package/button/styles.css.js +20 -19
  15. package/button/styles.scoped.css +298 -136
  16. package/button/styles.selectors.js +20 -19
  17. package/file-upload/default-formatters.d.ts +3 -0
  18. package/file-upload/default-formatters.d.ts.map +1 -0
  19. package/file-upload/default-formatters.js +23 -0
  20. package/file-upload/default-formatters.js.map +1 -0
  21. package/file-upload/dropzone/index.d.ts +9 -0
  22. package/file-upload/dropzone/index.d.ts.map +1 -0
  23. package/file-upload/dropzone/index.js +69 -0
  24. package/file-upload/dropzone/index.js.map +1 -0
  25. package/file-upload/dropzone/styles.css.js +7 -0
  26. package/file-upload/dropzone/styles.scoped.css +108 -0
  27. package/file-upload/dropzone/styles.selectors.js +8 -0
  28. package/file-upload/file-input/index.d.ts +14 -0
  29. package/file-upload/file-input/index.d.ts.map +1 -0
  30. package/file-upload/file-input/index.js +55 -0
  31. package/file-upload/file-input/index.js.map +1 -0
  32. package/file-upload/file-input/styles.css.js +8 -0
  33. package/file-upload/file-input/styles.scoped.css +21 -0
  34. package/file-upload/file-input/styles.selectors.js +9 -0
  35. package/file-upload/file-option/index.d.ts +10 -0
  36. package/file-upload/file-option/index.d.ts.map +1 -0
  37. package/file-upload/file-option/index.js +22 -0
  38. package/file-upload/file-option/index.js.map +1 -0
  39. package/file-upload/file-option/styles.css.js +12 -0
  40. package/file-upload/file-option/styles.scoped.css +35 -0
  41. package/file-upload/file-option/styles.selectors.js +13 -0
  42. package/file-upload/file-option/thumbnail.d.ts +7 -0
  43. package/file-upload/file-option/thumbnail.d.ts.map +1 -0
  44. package/file-upload/file-option/thumbnail.js +20 -0
  45. package/file-upload/file-option/thumbnail.js.map +1 -0
  46. package/file-upload/index.d.ts +6 -0
  47. package/file-upload/index.d.ts.map +1 -0
  48. package/file-upload/index.js +17 -0
  49. package/file-upload/index.js.map +1 -0
  50. package/file-upload/interfaces.d.ts +99 -0
  51. package/file-upload/interfaces.d.ts.map +1 -0
  52. package/file-upload/interfaces.js +4 -0
  53. package/file-upload/interfaces.js.map +1 -0
  54. package/file-upload/internal.d.ts +7 -0
  55. package/file-upload/internal.d.ts.map +1 -0
  56. package/file-upload/internal.js +72 -0
  57. package/file-upload/internal.js.map +1 -0
  58. package/file-upload/styles.css.js +7 -0
  59. package/file-upload/styles.scoped.css +16 -0
  60. package/file-upload/styles.selectors.js +8 -0
  61. package/form-field/internal.d.ts +6 -1
  62. package/form-field/internal.d.ts.map +1 -1
  63. package/form-field/internal.js +6 -3
  64. package/form-field/internal.js.map +1 -1
  65. package/index.d.ts +1 -0
  66. package/index.d.ts.map +1 -1
  67. package/index.js +1 -0
  68. package/index.js.map +1 -1
  69. package/internal/base-component/styles.scoped.css +25 -5
  70. package/internal/components/dropdown-footer/index.d.ts +1 -0
  71. package/internal/components/dropdown-footer/index.d.ts.map +1 -1
  72. package/internal/components/dropdown-footer/index.js +2 -2
  73. package/internal/components/dropdown-footer/index.js.map +1 -1
  74. package/internal/components/live-region/index.d.ts +2 -1
  75. package/internal/components/live-region/index.d.ts.map +1 -1
  76. package/internal/components/live-region/index.js +2 -2
  77. package/internal/components/live-region/index.js.map +1 -1
  78. package/internal/components/options-list/index.d.ts +1 -0
  79. package/internal/components/options-list/index.d.ts.map +1 -1
  80. package/internal/components/options-list/index.js +2 -2
  81. package/internal/components/options-list/index.js.map +1 -1
  82. package/internal/environment.js +1 -1
  83. package/internal/generated/theming/index.cjs +142 -25
  84. package/internal/generated/theming/index.js +142 -25
  85. package/internal/manifest.json +1 -1
  86. package/multiselect/internal.d.ts.map +1 -1
  87. package/multiselect/internal.js +4 -3
  88. package/multiselect/internal.js.map +1 -1
  89. package/package.json +2 -1
  90. package/property-filter/index.d.ts.map +1 -1
  91. package/property-filter/index.js +1 -1
  92. package/property-filter/index.js.map +1 -1
  93. package/property-filter/interfaces.d.ts +2 -1
  94. package/property-filter/interfaces.d.ts.map +1 -1
  95. package/property-filter/interfaces.js.map +1 -1
  96. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  97. package/property-filter/property-filter-autosuggest.js +4 -2
  98. package/property-filter/property-filter-autosuggest.js.map +1 -1
  99. package/select/internal.d.ts.map +1 -1
  100. package/select/internal.js +4 -3
  101. package/select/internal.js.map +1 -1
  102. package/split-panel/interfaces.d.ts +8 -8
  103. package/split-panel/interfaces.d.ts.map +1 -1
  104. package/split-panel/interfaces.js.map +1 -1
  105. package/split-panel/preferences-modal.d.ts +7 -7
  106. package/split-panel/preferences-modal.d.ts.map +1 -1
  107. package/split-panel/preferences-modal.js.map +1 -1
  108. package/table/body-cell/index.js +1 -1
  109. package/table/body-cell/index.js.map +1 -1
  110. package/table/header-cell/styles.css.js +19 -19
  111. package/table/header-cell/styles.scoped.css +33 -33
  112. package/table/header-cell/styles.selectors.js +19 -19
  113. package/table/resizer/styles.css.js +6 -6
  114. package/table/resizer/styles.scoped.css +13 -13
  115. package/table/resizer/styles.selectors.js +6 -6
  116. package/test-utils/dom/file-upload/index.d.ts +29 -0
  117. package/test-utils/dom/file-upload/index.js +66 -0
  118. package/test-utils/dom/file-upload/index.js.map +1 -0
  119. package/test-utils/dom/index.d.ts +3 -0
  120. package/test-utils/dom/index.js +10 -2
  121. package/test-utils/dom/index.js.map +1 -1
  122. package/test-utils/selectors/file-upload/index.d.ts +29 -0
  123. package/test-utils/selectors/file-upload/index.js +66 -0
  124. package/test-utils/selectors/file-upload/index.js.map +1 -0
  125. package/test-utils/selectors/index.d.ts +3 -0
  126. package/test-utils/selectors/index.js +10 -2
  127. package/test-utils/selectors/index.js.map +1 -1
  128. package/test-utils/tsconfig.tsbuildinfo +1 -1
  129. package/theming/index.d.ts +2 -1
  130. package/theming/index.d.ts.map +1 -1
  131. package/theming/index.js +2 -1
  132. package/theming/index.js.map +1 -1
  133. package/token-group/styles.css.js +7 -5
  134. package/token-group/styles.scoped.css +41 -23
  135. package/token-group/styles.selectors.js +7 -5
  136. package/token-group/token.d.ts +4 -1
  137. package/token-group/token.d.ts.map +1 -1
  138. package/token-group/token.js +13 -4
  139. package/token-group/token.js.map +1 -1
@@ -1060,8 +1060,8 @@ export var preset = {
1060
1060
  "dark": "{colorBackgroundControlDisabled}"
1061
1061
  },
1062
1062
  "colorBorderDividerActive": {
1063
- "light": "{colorGrey500}",
1064
- "dark": "{colorGrey500}"
1063
+ "light": "{colorGrey900}",
1064
+ "dark": "{colorGrey100}"
1065
1065
  },
1066
1066
  "colorBorderDividerDefault": {
1067
1067
  "light": "{colorGrey200}",
@@ -1164,8 +1164,8 @@ export var preset = {
1164
1164
  "dark": "{colorGrey450}"
1165
1165
  },
1166
1166
  "colorBorderDividerInteractiveDefault": {
1167
- "light": "{colorBorderDividerDefault}",
1168
- "dark": "{colorBorderDividerDefault}"
1167
+ "light": "{colorTextInteractiveDefault}",
1168
+ "dark": "{colorTextInteractiveDefault}"
1169
1169
  },
1170
1170
  "colorBorderTabsDivider": {
1171
1171
  "light": "{colorGrey200}",
@@ -1587,6 +1587,22 @@ export var preset = {
1587
1587
  "light": "{colorBlue200}",
1588
1588
  "dark": "{colorBlue600}"
1589
1589
  },
1590
+ "colorDropzoneBackgroundActive": {
1591
+ "light": "{colorGrey200}",
1592
+ "dark": "{colorGrey500}"
1593
+ },
1594
+ "colorDropzoneBackgroundHover": {
1595
+ "light": "{colorBlue200}",
1596
+ "dark": "{colorBlue600}"
1597
+ },
1598
+ "colorDropzoneTextActive": {
1599
+ "light": "{colorGrey550}",
1600
+ "dark": "{colorGrey800}"
1601
+ },
1602
+ "colorDropzoneTextHover": {
1603
+ "light": "{colorBlue800}",
1604
+ "dark": "{colorWhite}"
1605
+ },
1590
1606
  "fontBodyMLineHeight": "22px",
1591
1607
  "fontBodyMSize": "14px",
1592
1608
  "fontBodySLetterSpacing": "0.005em",
@@ -1664,6 +1680,7 @@ export var preset = {
1664
1680
  "borderRadiusControlCircularFocusRing": "4px",
1665
1681
  "borderRadiusControlDefaultFocusRing": "4px",
1666
1682
  "borderRadiusDropdown": "{borderRadiusItem}",
1683
+ "borderRadiusDropzone": "12px",
1667
1684
  "borderRadiusFlashbar": "12px",
1668
1685
  "borderRadiusItem": "8px",
1669
1686
  "borderRadiusInput": "8px",
@@ -2270,6 +2287,14 @@ export var preset = {
2270
2287
  "shadowStickyEmbedded": {
2271
2288
  "light": "0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.10)",
2272
2289
  "dark": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"
2290
+ },
2291
+ "shadowStickyColumnFirst": {
2292
+ "light": "4px 0px 20px 1px rgba(0, 7, 22, 0.1)",
2293
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
2294
+ },
2295
+ "shadowStickyColumnLast": {
2296
+ "light": "-4px 0 20px 1px rgba(0, 28, 36, 0.1)",
2297
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
2273
2298
  }
2274
2299
  },
2275
2300
  "contexts": {
@@ -2996,8 +3021,8 @@ export var preset = {
2996
3021
  "dark": "{colorBackgroundControlDisabled}"
2997
3022
  },
2998
3023
  "colorBorderDividerActive": {
2999
- "light": "{colorGrey500}",
3000
- "dark": "{colorGrey500}"
3024
+ "light": "{colorGrey100}",
3025
+ "dark": "{colorGrey100}"
3001
3026
  },
3002
3027
  "colorBorderDividerDefault": {
3003
3028
  "light": "{colorGrey600}",
@@ -3100,8 +3125,8 @@ export var preset = {
3100
3125
  "dark": "{colorGrey450}"
3101
3126
  },
3102
3127
  "colorBorderDividerInteractiveDefault": {
3103
- "light": "{colorBorderDividerDefault}",
3104
- "dark": "{colorBorderDividerDefault}"
3128
+ "light": "{colorTextInteractiveDefault}",
3129
+ "dark": "{colorTextInteractiveDefault}"
3105
3130
  },
3106
3131
  "colorBorderTabsDivider": {
3107
3132
  "light": "{colorGrey600}",
@@ -3522,6 +3547,22 @@ export var preset = {
3522
3547
  "colorDragPlaceholderHover": {
3523
3548
  "light": "{colorBlue600}",
3524
3549
  "dark": "{colorBlue600}"
3550
+ },
3551
+ "colorDropzoneBackgroundActive": {
3552
+ "light": "{colorGrey500}",
3553
+ "dark": "{colorGrey500}"
3554
+ },
3555
+ "colorDropzoneBackgroundHover": {
3556
+ "light": "{colorBlue600}",
3557
+ "dark": "{colorBlue600}"
3558
+ },
3559
+ "colorDropzoneTextActive": {
3560
+ "light": "{colorGrey800}",
3561
+ "dark": "{colorGrey800}"
3562
+ },
3563
+ "colorDropzoneTextHover": {
3564
+ "light": "{colorWhite}",
3565
+ "dark": "{colorWhite}"
3525
3566
  }
3526
3567
  }
3527
3568
  },
@@ -3589,6 +3630,14 @@ export var preset = {
3589
3630
  "light": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)",
3590
3631
  "dark": "0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"
3591
3632
  },
3633
+ "shadowStickyColumnFirst": {
3634
+ "light": "0px 4px 20px 1px rgba(0, 7, 22, 1)",
3635
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
3636
+ },
3637
+ "shadowStickyColumnLast": {
3638
+ "light": "0px 4px 20px 1px rgba(0, 7, 22, 1)",
3639
+ "dark": "0px 4px 20px 1px rgba(0, 7, 22, 1)"
3640
+ },
3592
3641
  "colorGreyOpaque25": {
3593
3642
  "light": "rgba(255, 255, 255, 0.25)",
3594
3643
  "dark": "rgba(255, 255, 255, 0.25)"
@@ -3950,8 +3999,8 @@ export var preset = {
3950
3999
  "dark": "{colorBackgroundControlDisabled}"
3951
4000
  },
3952
4001
  "colorBorderDividerActive": {
3953
- "light": "{colorGrey500}",
3954
- "dark": "{colorGrey500}"
4002
+ "light": "{colorGrey100}",
4003
+ "dark": "{colorGrey100}"
3955
4004
  },
3956
4005
  "colorBorderDividerDefault": {
3957
4006
  "light": "{colorGrey600}",
@@ -4054,8 +4103,8 @@ export var preset = {
4054
4103
  "dark": "{colorGrey450}"
4055
4104
  },
4056
4105
  "colorBorderDividerInteractiveDefault": {
4057
- "light": "{colorBorderDividerDefault}",
4058
- "dark": "{colorBorderDividerDefault}"
4106
+ "light": "{colorTextInteractiveDefault}",
4107
+ "dark": "{colorTextInteractiveDefault}"
4059
4108
  },
4060
4109
  "colorBorderTabsDivider": {
4061
4110
  "light": "{colorGrey600}",
@@ -4476,6 +4525,22 @@ export var preset = {
4476
4525
  "colorDragPlaceholderHover": {
4477
4526
  "light": "{colorBlue600}",
4478
4527
  "dark": "{colorBlue600}"
4528
+ },
4529
+ "colorDropzoneBackgroundActive": {
4530
+ "light": "{colorGrey500}",
4531
+ "dark": "{colorGrey500}"
4532
+ },
4533
+ "colorDropzoneBackgroundHover": {
4534
+ "light": "{colorBlue600}",
4535
+ "dark": "{colorBlue600}"
4536
+ },
4537
+ "colorDropzoneTextActive": {
4538
+ "light": "{colorGrey800}",
4539
+ "dark": "{colorGrey800}"
4540
+ },
4541
+ "colorDropzoneTextHover": {
4542
+ "light": "{colorWhite}",
4543
+ "dark": "{colorWhite}"
4479
4544
  }
4480
4545
  }
4481
4546
  },
@@ -4844,8 +4909,8 @@ export var preset = {
4844
4909
  "dark": "{colorBackgroundControlDisabled}"
4845
4910
  },
4846
4911
  "colorBorderDividerActive": {
4847
- "light": "{colorGrey500}",
4848
- "dark": "{colorGrey500}"
4912
+ "light": "{colorGrey900}",
4913
+ "dark": "{colorGrey100}"
4849
4914
  },
4850
4915
  "colorBorderDividerDefault": {
4851
4916
  "light": "{colorGrey200}",
@@ -4948,8 +5013,8 @@ export var preset = {
4948
5013
  "dark": "{colorGrey450}"
4949
5014
  },
4950
5015
  "colorBorderDividerInteractiveDefault": {
4951
- "light": "{colorBorderDividerDefault}",
4952
- "dark": "{colorBorderDividerDefault}"
5016
+ "light": "{colorTextInteractiveDefault}",
5017
+ "dark": "{colorTextInteractiveDefault}"
4953
5018
  },
4954
5019
  "colorBorderTabsDivider": {
4955
5020
  "light": "{colorGrey200}",
@@ -5370,6 +5435,22 @@ export var preset = {
5370
5435
  "colorDragPlaceholderHover": {
5371
5436
  "light": "{colorBlue200}",
5372
5437
  "dark": "{colorBlue600}"
5438
+ },
5439
+ "colorDropzoneBackgroundActive": {
5440
+ "light": "{colorGrey200}",
5441
+ "dark": "{colorGrey500}"
5442
+ },
5443
+ "colorDropzoneBackgroundHover": {
5444
+ "light": "{colorBlue200}",
5445
+ "dark": "{colorBlue600}"
5446
+ },
5447
+ "colorDropzoneTextActive": {
5448
+ "light": "{colorGrey550}",
5449
+ "dark": "{colorGrey800}"
5450
+ },
5451
+ "colorDropzoneTextHover": {
5452
+ "light": "{colorBlue800}",
5453
+ "dark": "{colorWhite}"
5373
5454
  }
5374
5455
  }
5375
5456
  },
@@ -5738,8 +5819,8 @@ export var preset = {
5738
5819
  "dark": "{colorBackgroundControlDisabled}"
5739
5820
  },
5740
5821
  "colorBorderDividerActive": {
5741
- "light": "{colorGrey500}",
5742
- "dark": "{colorGrey500}"
5822
+ "light": "{colorGrey900}",
5823
+ "dark": "{colorGrey100}"
5743
5824
  },
5744
5825
  "colorBorderDividerDefault": {
5745
5826
  "light": "{colorGrey200}",
@@ -5842,8 +5923,8 @@ export var preset = {
5842
5923
  "dark": "{colorGrey450}"
5843
5924
  },
5844
5925
  "colorBorderDividerInteractiveDefault": {
5845
- "light": "{colorBorderDividerDefault}",
5846
- "dark": "{colorBorderDividerDefault}"
5926
+ "light": "{colorTextInteractiveDefault}",
5927
+ "dark": "{colorTextInteractiveDefault}"
5847
5928
  },
5848
5929
  "colorBorderTabsDivider": {
5849
5930
  "light": "{colorGrey200}",
@@ -6264,6 +6345,22 @@ export var preset = {
6264
6345
  "colorDragPlaceholderHover": {
6265
6346
  "light": "{colorBlue200}",
6266
6347
  "dark": "{colorBlue600}"
6348
+ },
6349
+ "colorDropzoneBackgroundActive": {
6350
+ "light": "{colorGrey200}",
6351
+ "dark": "{colorGrey500}"
6352
+ },
6353
+ "colorDropzoneBackgroundHover": {
6354
+ "light": "{colorBlue200}",
6355
+ "dark": "{colorBlue600}"
6356
+ },
6357
+ "colorDropzoneTextActive": {
6358
+ "light": "{colorGrey550}",
6359
+ "dark": "{colorGrey800}"
6360
+ },
6361
+ "colorDropzoneTextHover": {
6362
+ "light": "{colorBlue800}",
6363
+ "dark": "{colorWhite}"
6267
6364
  }
6268
6365
  }
6269
6366
  }
@@ -6645,6 +6742,10 @@ export var preset = {
6645
6742
  "colorBoardPlaceholderHover": "color",
6646
6743
  "colorDragPlaceholderActive": "color",
6647
6744
  "colorDragPlaceholderHover": "color",
6745
+ "colorDropzoneBackgroundActive": "color",
6746
+ "colorDropzoneBackgroundHover": "color",
6747
+ "colorDropzoneTextActive": "color",
6748
+ "colorDropzoneTextHover": "color",
6648
6749
  "motionDurationExtraFast": "motion",
6649
6750
  "motionDurationExtraSlow": "motion",
6650
6751
  "motionDurationFast": "motion",
@@ -6793,7 +6894,9 @@ export var preset = {
6793
6894
  "shadowSplitBottom": "color",
6794
6895
  "shadowSplitSide": "color",
6795
6896
  "shadowSticky": "color",
6796
- "shadowStickyEmbedded": "color"
6897
+ "shadowStickyEmbedded": "color",
6898
+ "shadowStickyColumnFirst": "color",
6899
+ "shadowStickyColumnLast": "color"
6797
6900
  }
6798
6901
  },
6799
6902
  "secondary": [],
@@ -7670,6 +7773,10 @@ export var preset = {
7670
7773
  "colorBoardPlaceholderHover": "color-board-placeholder-hover",
7671
7774
  "colorDragPlaceholderActive": "color-drag-placeholder-active",
7672
7775
  "colorDragPlaceholderHover": "color-drag-placeholder-hover",
7776
+ "colorDropzoneBackgroundActive": "color-dropzone-background-active",
7777
+ "colorDropzoneBackgroundHover": "color-dropzone-background-hover",
7778
+ "colorDropzoneTextActive": "color-dropzone-text-active",
7779
+ "colorDropzoneTextHover": "color-dropzone-text-hover",
7673
7780
  "fontBodyMLineHeight": "font-body-m-line-height",
7674
7781
  "fontBodyMSize": "font-body-m-size",
7675
7782
  "fontBodySLetterSpacing": "font-body-s-letter-spacing",
@@ -7747,6 +7854,7 @@ export var preset = {
7747
7854
  "borderRadiusControlCircularFocusRing": "border-radius-control-circular-focus-ring",
7748
7855
  "borderRadiusControlDefaultFocusRing": "border-radius-control-default-focus-ring",
7749
7856
  "borderRadiusDropdown": "border-radius-dropdown",
7857
+ "borderRadiusDropzone": "border-radius-dropzone",
7750
7858
  "borderRadiusFlashbar": "border-radius-flashbar",
7751
7859
  "borderRadiusItem": "border-radius-item",
7752
7860
  "borderRadiusInput": "border-radius-input",
@@ -7906,7 +8014,9 @@ export var preset = {
7906
8014
  "shadowSplitBottom": "shadow-split-bottom",
7907
8015
  "shadowSplitSide": "shadow-split-side",
7908
8016
  "shadowSticky": "shadow-sticky",
7909
- "shadowStickyEmbedded": "shadow-sticky-embedded"
8017
+ "shadowStickyEmbedded": "shadow-sticky-embedded",
8018
+ "shadowStickyColumnFirst": "shadow-sticky-column-first",
8019
+ "shadowStickyColumnLast": "shadow-sticky-column-last"
7910
8020
  },
7911
8021
  "propertiesMap": {
7912
8022
  "colorAmazonOrange": "--color-amazon-orange-ds51uu",
@@ -8198,7 +8308,7 @@ export var preset = {
8198
8308
  "colorBorderControlChecked": "--color-border-control-checked-4xvndc",
8199
8309
  "colorBorderControlDefault": "--color-border-control-default-m3lmsh",
8200
8310
  "colorBorderControlDisabled": "--color-border-control-disabled-vx8bco",
8201
- "colorBorderDividerActive": "--color-border-divider-active-nnnfx9",
8311
+ "colorBorderDividerActive": "--color-border-divider-active-t11l9l",
8202
8312
  "colorBorderDividerDefault": "--color-border-divider-default-7s2wjw",
8203
8313
  "colorBorderDividerPanelBottom": "--color-border-divider-panel-bottom-zrjpck",
8204
8314
  "colorBorderDividerPanelSide": "--color-border-divider-panel-side-yjkfcr",
@@ -8224,7 +8334,7 @@ export var preset = {
8224
8334
  "colorBorderStatusInfo": "--color-border-status-info-546i7i",
8225
8335
  "colorBorderStatusSuccess": "--color-border-status-success-cqi45f",
8226
8336
  "colorBorderStatusWarning": "--color-border-status-warning-hg85ut",
8227
- "colorBorderDividerInteractiveDefault": "--color-border-divider-interactive-default-rcasvw",
8337
+ "colorBorderDividerInteractiveDefault": "--color-border-divider-interactive-default-0hdcst",
8228
8338
  "colorBorderTabsDivider": "--color-border-tabs-divider-69fx5i",
8229
8339
  "colorBorderTabsShadow": "--color-border-tabs-shadow-4lmh2z",
8230
8340
  "colorBorderTabsUnderline": "--color-border-tabs-underline-9bcfzu",
@@ -8330,6 +8440,10 @@ export var preset = {
8330
8440
  "colorBoardPlaceholderHover": "--color-board-placeholder-hover-v1s7kq",
8331
8441
  "colorDragPlaceholderActive": "--color-drag-placeholder-active-fkpj7i",
8332
8442
  "colorDragPlaceholderHover": "--color-drag-placeholder-hover-3ohnz1",
8443
+ "colorDropzoneBackgroundActive": "--color-dropzone-background-active-g4zi07",
8444
+ "colorDropzoneBackgroundHover": "--color-dropzone-background-hover-j98f7z",
8445
+ "colorDropzoneTextActive": "--color-dropzone-text-active-aobpir",
8446
+ "colorDropzoneTextHover": "--color-dropzone-text-hover-ud2lnq",
8333
8447
  "fontBodyMLineHeight": "--font-body-m-line-height-i7xxvv",
8334
8448
  "fontBodyMSize": "--font-body-m-size-sregvd",
8335
8449
  "fontBodySLetterSpacing": "--font-body-s-letter-spacing-cy0oxj",
@@ -8407,6 +8521,7 @@ export var preset = {
8407
8521
  "borderRadiusControlCircularFocusRing": "--border-radius-control-circular-focus-ring-qawzn7",
8408
8522
  "borderRadiusControlDefaultFocusRing": "--border-radius-control-default-focus-ring-7661kz",
8409
8523
  "borderRadiusDropdown": "--border-radius-dropdown-ujknaf",
8524
+ "borderRadiusDropzone": "--border-radius-dropzone-poqo08",
8410
8525
  "borderRadiusFlashbar": "--border-radius-flashbar-i7jm55",
8411
8526
  "borderRadiusItem": "--border-radius-item-u2ibpi",
8412
8527
  "borderRadiusInput": "--border-radius-input-txq8zy",
@@ -8566,6 +8681,8 @@ export var preset = {
8566
8681
  "shadowSplitBottom": "--shadow-split-bottom-otfetg",
8567
8682
  "shadowSplitSide": "--shadow-split-side-qv353u",
8568
8683
  "shadowSticky": "--shadow-sticky-aijlo6",
8569
- "shadowStickyEmbedded": "--shadow-sticky-embedded-qit8ba"
8684
+ "shadowStickyEmbedded": "--shadow-sticky-embedded-qit8ba",
8685
+ "shadowStickyColumnFirst": "--shadow-sticky-column-first-h2plme",
8686
+ "shadowStickyColumnLast": "--shadow-sticky-column-last-s13kkz"
8570
8687
  }
8571
8688
  };
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "f0bd2be938687dab156dfda205da408b9e8aa1d0"
2
+ "commit": "b823b8294327ff89fa23d955f2fb44c2090ac0a7"
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["multiselect/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AA2B3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAOhD,QAAA,MAAM,mBAAmB,4HAsRxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["multiselect/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AA2B3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAOhD,QAAA,MAAM,mBAAmB,4HA+RxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -74,6 +74,7 @@ const InternalMultiselect = React.forwardRef((_a, externalRef) => {
74
74
  const selfControlId = useUniqueId('trigger');
75
75
  const controlId = (_b = formFieldContext.controlId) !== null && _b !== void 0 ? _b : selfControlId;
76
76
  const multiSelectAriaLabelId = useUniqueId('multiselect-arialabel-');
77
+ const footerId = useUniqueId('footer');
77
78
  const scrollToIndex = useRef(null);
78
79
  const { isOpen, highlightType, highlightedOption, highlightedIndex, getTriggerProps, getDropdownProps, getFilterProps, getMenuProps, getOptionProps, highlightOption, announceSelected, } = useSelect({
79
80
  selectedOptions,
@@ -112,7 +113,7 @@ const InternalMultiselect = React.forwardRef((_a, externalRef) => {
112
113
  });
113
114
  const filter = (React.createElement(Filter, Object.assign({ clearAriaLabel: filteringClearAriaLabel, filteringType: filteringType, placeholder: filteringPlaceholder, ariaLabel: filteringAriaLabel, ariaRequired: ariaRequired, value: filteringValue }, getFilterProps())));
114
115
  const trigger = (React.createElement(Trigger, Object.assign({ placeholder: placeholder, disabled: disabled, triggerProps: getTriggerProps(disabled, autoFocus), selectedOption: null, isOpen: isOpen }, formFieldContext, { controlId: controlId, ariaLabelledby: joinStrings(formFieldContext.ariaLabelledby, multiSelectAriaLabelId) })));
115
- const menuProps = Object.assign(Object.assign({}, getMenuProps()), { onLoadMore: handleLoadMore, ariaLabelledby: joinStrings(multiSelectAriaLabelId, controlId) });
116
+ const menuProps = Object.assign(Object.assign({}, getMenuProps()), { onLoadMore: handleLoadMore, ariaLabelledby: joinStrings(multiSelectAriaLabelId, controlId), ariaDescribedby: dropdownStatus.content ? footerId : undefined });
116
117
  const announcement = useAnnouncement({
117
118
  announceSelected,
118
119
  highlightedOption,
@@ -159,8 +160,8 @@ const InternalMultiselect = React.forwardRef((_a, externalRef) => {
159
160
  };
160
161
  const mergedRef = useMergeRefs(rootRef, __internalRootRef);
161
162
  return (React.createElement("div", Object.assign({}, baseProps, { ref: mergedRef, className: clsx(styles.root, baseProps.className), onKeyPress: handleNativeSearch }),
162
- React.createElement(Dropdown, Object.assign({}, getDropdownProps(), { open: isOpen, trigger: trigger, header: filter, onMouseDown: handleMouseDown, footer: dropdownStatus.isSticky ? React.createElement(DropdownFooter, { content: isOpen ? dropdownStatus.content : null }) : null, expandToViewport: expandToViewport }),
163
- React.createElement(ListComponent, { listBottom: !dropdownStatus.isSticky ? React.createElement(DropdownFooter, { content: isOpen ? dropdownStatus.content : null }) : null, menuProps: menuProps, getOptionProps: getOptionProps, filteredOptions: filteredOptions, filteringValue: filteringValue, ref: scrollToIndex, hasDropdownStatus: dropdownStatus.content !== null, checkboxes: true, useInteractiveGroups: useInteractiveGroups, screenReaderContent: announcement, highlightType: highlightType })),
163
+ React.createElement(Dropdown, Object.assign({}, getDropdownProps(), { open: isOpen, trigger: trigger, header: filter, onMouseDown: handleMouseDown, footer: dropdownStatus.isSticky ? (React.createElement(DropdownFooter, { content: isOpen ? dropdownStatus.content : null, id: footerId })) : null, expandToViewport: expandToViewport }),
164
+ React.createElement(ListComponent, { listBottom: !dropdownStatus.isSticky ? (React.createElement(DropdownFooter, { content: isOpen ? dropdownStatus.content : null, id: footerId })) : null, menuProps: menuProps, getOptionProps: getOptionProps, filteredOptions: filteredOptions, filteringValue: filteringValue, ref: scrollToIndex, hasDropdownStatus: dropdownStatus.content !== null, checkboxes: true, useInteractiveGroups: useInteractiveGroups, screenReaderContent: announcement, highlightType: highlightType })),
164
165
  showTokens && (React.createElement(InternalTokenGroup, { alignment: "horizontal", limit: tokenLimit, items: tokens, onDismiss: handleTokenDismiss, i18nStrings: tokenGroupI18nStrings })),
165
166
  React.createElement(ScreenreaderOnly, { id: multiSelectAriaLabelId }, ariaLabel)));
166
167
  });
@@ -1 +1 @@
1
- {"version":3,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AQ,CAAC,CAAC,CAAC,oBAAC,cAAc,IAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5G,gBAAgB,EAAE,gBAAgB;YAElC,oBAAC,aAAa,IACZ,UAAU,EACR,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,oBAAC,cAAc,IAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EAEvG,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,aAAa,EAClB,iBAAiB,EAAE,cAAc,CAAC,OAAO,KAAK,IAAI,EAClD,UAAU,EAAE,IAAI,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,YAAY,EACjC,aAAa,EAAE,aAAa,GAC5B,CACO;QACV,UAAU,IAAI,CACb,oBAAC,kBAAkB,IACjB,SAAS,EAAC,YAAY,EACtB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,kBAAkB,EAC7B,WAAW,EAAE,qBAAqB,GAClC,CACH;QACD,oBAAC,gBAAgB,IAAC,EAAE,EAAE,sBAAsB,IAAG,SAAS,CAAoB,CACxE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component/index.js';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { isGroup } from '../internal/components/option/utils/filter-options';\n\nimport DropdownFooter from '../internal/components/dropdown-footer/index.js';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options';\nimport { OptionDefinition, OptionGroup } from '../internal/components/option/interfaces';\nimport Dropdown from '../internal/components/dropdown';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\n\nimport { useSelect, MenuProps } from '../select/utils/use-select';\nimport { useNativeSearch } from '../select/utils/use-native-search';\nimport { useLoadItems } from '../select/utils/use-load-items';\nimport { useAnnouncement } from '../select/utils/use-announcement';\nimport { findOptionIndex } from '../select/utils/connect-options';\nimport PlainList, { SelectListProps } from '../select/parts/plain-list';\nimport VirtualList from '../select/parts/virtual-list';\nimport { checkOptionValueField } from '../select/utils/check-option-value-field.js';\nimport Filter from '../select/parts/filter';\nimport Trigger from '../select/parts/trigger';\n\nimport InternalTokenGroup from '../token-group/internal';\nimport { TokenGroupProps } from '../token-group/interfaces';\n\nimport { MultiselectProps } from './interfaces';\nimport styles from './styles.css.js';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { joinStrings } from '../internal/utils/strings';\n\ntype InternalMultiselectProps = MultiselectProps & InternalBaseComponentProps;\n\nconst InternalMultiselect = React.forwardRef(\n (\n {\n options = [],\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n ariaRequired,\n placeholder,\n disabled,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n noMatch,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n selectedOptions = [],\n deselectAriaLabel,\n keepOpen = true,\n tokenLimit,\n i18nStrings,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n hideTokens = false,\n expandToViewport,\n __internalRootRef = null,\n autoFocus,\n ...restProps\n }: InternalMultiselectProps,\n externalRef: React.Ref<MultiselectProps.Ref>\n ) => {\n checkOptionValueField('Multiselect', 'options', options);\n\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n const useInteractiveGroups = true;\n const [filteringValue, setFilteringValue] = useState('');\n const { filteredOptions, parentMap } = prepareOptions(options, filteringType, filteringValue);\n\n const updateSelectedOption = useCallback(\n (option: OptionDefinition | OptionGroup) => {\n const filtered = filteredOptions.filter(item => item.type !== 'parent').map(item => item.option);\n\n // switch between selection and deselection behavior, ignores disabled options to prevent\n // getting stuck on one behavior when an option is disabled and its state cannot be changed\n const isAllChildrenSelected = (optionsArray: OptionDefinition[]) =>\n optionsArray.every(item => findOptionIndex(selectedOptions, item) > -1 || item.disabled);\n const intersection = (visibleOptions: OptionDefinition[], options: OptionDefinition[]) =>\n visibleOptions.filter(item => findOptionIndex(options, item) > -1 && !item.disabled);\n const union = (visibleOptions: OptionDefinition[], options: OptionDefinition[]) =>\n visibleOptions.filter(item => findOptionIndex(options, item) === -1).concat(options);\n const select = (options: OptionDefinition[], selectedOptions: OptionDefinition[]) => {\n return union(selectedOptions, options);\n };\n const unselect = (options: OptionDefinition[], selectedOptions: OptionDefinition[]) => {\n return selectedOptions.filter(option => findOptionIndex(options, option) === -1);\n };\n let newSelectedOptions = [...selectedOptions];\n\n if (isGroup(option)) {\n const visibleOptions = intersection([...option.options], filtered);\n newSelectedOptions = isAllChildrenSelected(visibleOptions)\n ? unselect(visibleOptions, newSelectedOptions)\n : select(visibleOptions, newSelectedOptions);\n } else {\n newSelectedOptions = isAllChildrenSelected([option])\n ? unselect([option], newSelectedOptions)\n : select([option], newSelectedOptions);\n }\n\n fireNonCancelableEvent(onChange, {\n selectedOptions: newSelectedOptions,\n });\n },\n [onChange, selectedOptions, filteredOptions]\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const multiSelectAriaLabelId = useUniqueId('multiselect-arialabel-');\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n announceSelected,\n } = useSelect({\n selectedOptions,\n updateSelectedOption,\n options: filteredOptions,\n filteringType,\n onFocus,\n onBlur,\n externalRef,\n keepOpen,\n fireLoadItems,\n setFilteringValue,\n useInteractiveGroups,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && isOpen,\n options: filteredOptions,\n highlightOption: highlightOption,\n highlightedOption: highlightedOption?.option,\n useInteractiveGroups,\n });\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n onRecoveryClick: handleRecoveryClick,\n errorIconAriaLabel: restProps.errorIconAriaLabel,\n });\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n placeholder={placeholder}\n disabled={disabled}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={null}\n isOpen={isOpen}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, multiSelectAriaLabelId)}\n />\n );\n\n const menuProps: MenuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(multiSelectAriaLabelId, controlId),\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const tokens: TokenGroupProps['items'] = selectedOptions.map(option => ({\n label: option.label,\n disabled: disabled || option.disabled,\n labelTag: option.labelTag,\n description: option.description,\n iconAlt: option.iconAlt,\n iconName: option.iconName,\n iconUrl: option.iconUrl,\n iconSvg: option.iconSvg,\n tags: option.tags,\n dismissLabel: deselectAriaLabel ? deselectAriaLabel(option) : undefined,\n }));\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const showTokens = !hideTokens && tokens.length > 0;\n const handleTokenDismiss: TokenGroupProps['onDismiss'] = ({ detail }) => {\n const optionToDeselect = selectedOptions[detail.itemIndex];\n updateSelectedOption(optionToDeselect);\n const targetRef = getTriggerProps().ref;\n if (targetRef.current) {\n targetRef.current.focus();\n }\n };\n\n const tokenGroupI18nStrings: TokenGroupProps.I18nStrings = {\n limitShowFewer: i18nStrings?.tokenLimitShowFewer,\n limitShowMore: i18nStrings?.tokenLimitShowMore,\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n return (\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyPress={handleNativeSearch}\n >\n <Dropdown\n {...getDropdownProps()}\n open={isOpen}\n trigger={trigger}\n header={filter}\n onMouseDown={handleMouseDown}\n footer={dropdownStatus.isSticky ? <DropdownFooter content={isOpen ? dropdownStatus.content : null} /> : null}\n expandToViewport={expandToViewport}\n >\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? <DropdownFooter content={isOpen ? dropdownStatus.content : null} /> : null\n }\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n checkboxes={true}\n useInteractiveGroups={useInteractiveGroups}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n </Dropdown>\n {showTokens && (\n <InternalTokenGroup\n alignment=\"horizontal\"\n limit={tokenLimit}\n items={tokens}\n onDismiss={handleTokenDismiss}\n i18nStrings={tokenGroupI18nStrings}\n />\n )}\n <ScreenreaderOnly id={multiSelectAriaLabelId}>{ariaLabel}</ScreenreaderOnly>\n </div>\n );\n }\n);\n\nexport default InternalMultiselect;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["multiselect/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oDAAoD,CAAC;AAE7E,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAa,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY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EAAE,YAAY,EACjC,aAAa,EAAE,aAAa,GAC5B,CACO;QACV,UAAU,IAAI,CACb,oBAAC,kBAAkB,IACjB,SAAS,EAAC,YAAY,EACtB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,kBAAkB,EAC7B,WAAW,EAAE,qBAAqB,GAClC,CACH;QACD,oBAAC,gBAAgB,IAAC,EAAE,EAAE,sBAAsB,IAAG,SAAS,CAAoB,CACxE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component/index.js';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { isGroup } from '../internal/components/option/utils/filter-options';\n\nimport DropdownFooter from '../internal/components/dropdown-footer/index.js';\nimport { prepareOptions } from '../internal/components/option/utils/prepare-options';\nimport { OptionDefinition, OptionGroup } from '../internal/components/option/interfaces';\nimport Dropdown from '../internal/components/dropdown';\nimport { useDropdownStatus } from '../internal/components/dropdown-status';\n\nimport { useSelect, MenuProps } from '../select/utils/use-select';\nimport { useNativeSearch } from '../select/utils/use-native-search';\nimport { useLoadItems } from '../select/utils/use-load-items';\nimport { useAnnouncement } from '../select/utils/use-announcement';\nimport { findOptionIndex } from '../select/utils/connect-options';\nimport PlainList, { SelectListProps } from '../select/parts/plain-list';\nimport VirtualList from '../select/parts/virtual-list';\nimport { checkOptionValueField } from '../select/utils/check-option-value-field.js';\nimport Filter from '../select/parts/filter';\nimport Trigger from '../select/parts/trigger';\n\nimport InternalTokenGroup from '../token-group/internal';\nimport { TokenGroupProps } from '../token-group/interfaces';\n\nimport { MultiselectProps } from './interfaces';\nimport styles from './styles.css.js';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { joinStrings } from '../internal/utils/strings';\n\ntype InternalMultiselectProps = MultiselectProps & InternalBaseComponentProps;\n\nconst InternalMultiselect = React.forwardRef(\n (\n {\n options = [],\n filteringType = 'none',\n filteringPlaceholder,\n filteringAriaLabel,\n filteringClearAriaLabel,\n ariaRequired,\n placeholder,\n disabled,\n ariaLabel,\n statusType = 'finished',\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n noMatch,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n selectedOptions = [],\n deselectAriaLabel,\n keepOpen = true,\n tokenLimit,\n i18nStrings,\n onBlur,\n onFocus,\n onLoadItems,\n onChange,\n virtualScroll,\n hideTokens = false,\n expandToViewport,\n __internalRootRef = null,\n autoFocus,\n ...restProps\n }: InternalMultiselectProps,\n externalRef: React.Ref<MultiselectProps.Ref>\n ) => {\n checkOptionValueField('Multiselect', 'options', options);\n\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const { handleLoadMore, handleRecoveryClick, fireLoadItems } = useLoadItems({\n onLoadItems,\n options,\n statusType,\n });\n const useInteractiveGroups = true;\n const [filteringValue, setFilteringValue] = useState('');\n const { filteredOptions, parentMap } = prepareOptions(options, filteringType, filteringValue);\n\n const updateSelectedOption = useCallback(\n (option: OptionDefinition | OptionGroup) => {\n const filtered = filteredOptions.filter(item => item.type !== 'parent').map(item => item.option);\n\n // switch between selection and deselection behavior, ignores disabled options to prevent\n // getting stuck on one behavior when an option is disabled and its state cannot be changed\n const isAllChildrenSelected = (optionsArray: OptionDefinition[]) =>\n optionsArray.every(item => findOptionIndex(selectedOptions, item) > -1 || item.disabled);\n const intersection = (visibleOptions: OptionDefinition[], options: OptionDefinition[]) =>\n visibleOptions.filter(item => findOptionIndex(options, item) > -1 && !item.disabled);\n const union = (visibleOptions: OptionDefinition[], options: OptionDefinition[]) =>\n visibleOptions.filter(item => findOptionIndex(options, item) === -1).concat(options);\n const select = (options: OptionDefinition[], selectedOptions: OptionDefinition[]) => {\n return union(selectedOptions, options);\n };\n const unselect = (options: OptionDefinition[], selectedOptions: OptionDefinition[]) => {\n return selectedOptions.filter(option => findOptionIndex(options, option) === -1);\n };\n let newSelectedOptions = [...selectedOptions];\n\n if (isGroup(option)) {\n const visibleOptions = intersection([...option.options], filtered);\n newSelectedOptions = isAllChildrenSelected(visibleOptions)\n ? unselect(visibleOptions, newSelectedOptions)\n : select(visibleOptions, newSelectedOptions);\n } else {\n newSelectedOptions = isAllChildrenSelected([option])\n ? unselect([option], newSelectedOptions)\n : select([option], newSelectedOptions);\n }\n\n fireNonCancelableEvent(onChange, {\n selectedOptions: newSelectedOptions,\n });\n },\n [onChange, selectedOptions, filteredOptions]\n );\n\n const rootRef = useRef<HTMLDivElement>(null);\n\n const selfControlId = useUniqueId('trigger');\n const controlId = formFieldContext.controlId ?? selfControlId;\n\n const multiSelectAriaLabelId = useUniqueId('multiselect-arialabel-');\n\n const footerId = useUniqueId('footer');\n\n const scrollToIndex = useRef<SelectListProps.SelectListRef>(null);\n const {\n isOpen,\n highlightType,\n highlightedOption,\n highlightedIndex,\n getTriggerProps,\n getDropdownProps,\n getFilterProps,\n getMenuProps,\n getOptionProps,\n highlightOption,\n announceSelected,\n } = useSelect({\n selectedOptions,\n updateSelectedOption,\n options: filteredOptions,\n filteringType,\n onFocus,\n onBlur,\n externalRef,\n keepOpen,\n fireLoadItems,\n setFilteringValue,\n useInteractiveGroups,\n });\n\n const handleNativeSearch = useNativeSearch({\n isEnabled: filteringType === 'none' && isOpen,\n options: filteredOptions,\n highlightOption: highlightOption,\n highlightedOption: highlightedOption?.option,\n useInteractiveGroups,\n });\n\n const isEmpty = !options || options.length === 0;\n const isNoMatch = filteredOptions && filteredOptions.length === 0;\n const dropdownStatus = useDropdownStatus({\n statusType,\n empty,\n loadingText,\n finishedText,\n errorText,\n recoveryText,\n isEmpty,\n isNoMatch,\n noMatch,\n onRecoveryClick: handleRecoveryClick,\n errorIconAriaLabel: restProps.errorIconAriaLabel,\n });\n\n const filter = (\n <Filter\n clearAriaLabel={filteringClearAriaLabel}\n filteringType={filteringType}\n placeholder={filteringPlaceholder}\n ariaLabel={filteringAriaLabel}\n ariaRequired={ariaRequired}\n value={filteringValue}\n {...getFilterProps()}\n />\n );\n\n const trigger = (\n <Trigger\n placeholder={placeholder}\n disabled={disabled}\n triggerProps={getTriggerProps(disabled, autoFocus)}\n selectedOption={null}\n isOpen={isOpen}\n {...formFieldContext}\n controlId={controlId}\n ariaLabelledby={joinStrings(formFieldContext.ariaLabelledby, multiSelectAriaLabelId)}\n />\n );\n\n const menuProps: MenuProps = {\n ...getMenuProps(),\n onLoadMore: handleLoadMore,\n ariaLabelledby: joinStrings(multiSelectAriaLabelId, controlId),\n ariaDescribedby: dropdownStatus.content ? footerId : undefined,\n };\n\n const announcement = useAnnouncement({\n announceSelected,\n highlightedOption,\n getParent: option => parentMap.get(option)?.option as undefined | OptionGroup,\n selectedAriaLabel,\n renderHighlightedAriaLive,\n });\n\n const tokens: TokenGroupProps['items'] = selectedOptions.map(option => ({\n label: option.label,\n disabled: disabled || option.disabled,\n labelTag: option.labelTag,\n description: option.description,\n iconAlt: option.iconAlt,\n iconName: option.iconName,\n iconUrl: option.iconUrl,\n iconSvg: option.iconSvg,\n tags: option.tags,\n dismissLabel: deselectAriaLabel ? deselectAriaLabel(option) : undefined,\n }));\n\n useEffect(() => {\n scrollToIndex.current?.(highlightedIndex);\n }, [highlightedIndex]);\n\n const ListComponent = virtualScroll ? VirtualList : PlainList;\n\n const handleMouseDown = (event: React.MouseEvent) => {\n const target = event.target as HTMLElement;\n\n if (target !== document.activeElement) {\n // prevent currently focused element from losing it\n event.preventDefault();\n }\n };\n\n const showTokens = !hideTokens && tokens.length > 0;\n const handleTokenDismiss: TokenGroupProps['onDismiss'] = ({ detail }) => {\n const optionToDeselect = selectedOptions[detail.itemIndex];\n updateSelectedOption(optionToDeselect);\n const targetRef = getTriggerProps().ref;\n if (targetRef.current) {\n targetRef.current.focus();\n }\n };\n\n const tokenGroupI18nStrings: TokenGroupProps.I18nStrings = {\n limitShowFewer: i18nStrings?.tokenLimitShowFewer,\n limitShowMore: i18nStrings?.tokenLimitShowMore,\n };\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n\n return (\n <div\n {...baseProps}\n ref={mergedRef}\n className={clsx(styles.root, baseProps.className)}\n onKeyPress={handleNativeSearch}\n >\n <Dropdown\n {...getDropdownProps()}\n open={isOpen}\n trigger={trigger}\n header={filter}\n onMouseDown={handleMouseDown}\n footer={\n dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n expandToViewport={expandToViewport}\n >\n <ListComponent\n listBottom={\n !dropdownStatus.isSticky ? (\n <DropdownFooter content={isOpen ? dropdownStatus.content : null} id={footerId} />\n ) : null\n }\n menuProps={menuProps}\n getOptionProps={getOptionProps}\n filteredOptions={filteredOptions}\n filteringValue={filteringValue}\n ref={scrollToIndex}\n hasDropdownStatus={dropdownStatus.content !== null}\n checkboxes={true}\n useInteractiveGroups={useInteractiveGroups}\n screenReaderContent={announcement}\n highlightType={highlightType}\n />\n </Dropdown>\n {showTokens && (\n <InternalTokenGroup\n alignment=\"horizontal\"\n limit={tokenLimit}\n items={tokens}\n onDismiss={handleTokenDismiss}\n i18nStrings={tokenGroupI18nStrings}\n />\n )}\n <ScreenreaderOnly id={multiSelectAriaLabelId}>{ariaLabel}</ScreenreaderOnly>\n </div>\n );\n }\n);\n\nexport default InternalMultiselect;\n"]}
package/package.json CHANGED
@@ -33,6 +33,7 @@
33
33
  "./date-picker": "./date-picker/index.js",
34
34
  "./date-range-picker": "./date-range-picker/index.js",
35
35
  "./expandable-section": "./expandable-section/index.js",
36
+ "./file-upload": "./file-upload/index.js",
36
37
  "./flashbar": "./flashbar/index.js",
37
38
  "./form": "./form/index.js",
38
39
  "./form-field": "./form-field/index.js",
@@ -108,7 +109,7 @@
108
109
  "./internal/base-component/index.js",
109
110
  "./internal/base-component/styles.css.js"
110
111
  ],
111
- "version": "3.0.250",
112
+ "version": "3.0.252",
112
113
  "repository": {
113
114
  "type": "git",
114
115
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["property-filter/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAWrE,OAAO,EAAE,mBAAmB,EAAiE,MAAM,cAAc,CAAC;AAoBlH,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAa/B,QAAA,MAAM,cAAc,qGA2TnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["property-filter/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAWrE,OAAO,EAAE,mBAAmB,EAAiE,MAAM,cAAc,CAAC;AAoBlH,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAa/B,QAAA,MAAM,cAAc,qGA8TnB,CAAC;AAGF,eAAe,cAAc,CAAC"}
@@ -153,7 +153,7 @@ const PropertyFilter = React.forwardRef((_a, ref) => {
153
153
  return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root), ref: __internalRootRef }),
154
154
  React.createElement("div", { className: styles['search-field'] },
155
155
  customControl && React.createElement("div", { className: styles['custom-control'] }, customControl),
156
- React.createElement(PropertyFilterAutosuggest, Object.assign({ ref: inputRef, virtualScroll: virtualScroll, enteredTextLabel: (_c = i18nStrings.enteredTextLabel) !== null && _c !== void 0 ? _c : (value => value), ariaLabel: i18nStrings.filteringAriaLabel, placeholder: i18nStrings.filteringPlaceholder, value: filteringText, disabled: disabled, onKeyDown: handleKeyDown }, autosuggestOptions, { onChange: event => setFilteringText(event.detail.value), empty: filteringEmpty }, asyncAutosuggestProps, { expandToViewport: expandToViewport, onOptionClick: handleSelected, customForm: operatorForm && (React.createElement(PropertyEditor, { property: parsedText.property, operator: parsedText.operator, filter: parsedText.value, operatorForm: operatorForm, i18nStrings: i18nStrings, onCancel: () => {
156
+ React.createElement(PropertyFilterAutosuggest, Object.assign({ ref: inputRef, virtualScroll: virtualScroll, enteredTextLabel: (_c = i18nStrings.enteredTextLabel) !== null && _c !== void 0 ? _c : (value => value), ariaLabel: i18nStrings.filteringAriaLabel, placeholder: i18nStrings.filteringPlaceholder, ariaLabelledby: rest.ariaLabelledby, ariaDescribedby: rest.ariaDescribedby, controlId: rest.controlId, value: filteringText, disabled: disabled, onKeyDown: handleKeyDown }, autosuggestOptions, { onChange: event => setFilteringText(event.detail.value), empty: filteringEmpty }, asyncAutosuggestProps, { expandToViewport: expandToViewport, onOptionClick: handleSelected, customForm: operatorForm && (React.createElement(PropertyEditor, { property: parsedText.property, operator: parsedText.operator, filter: parsedText.value, operatorForm: operatorForm, i18nStrings: i18nStrings, onCancel: () => {
157
157
  var _a, _b;
158
158
  setFilteringText('');
159
159
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.close();