@cloudscape-design/components 3.0.193 → 3.0.195

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 (347) hide show
  1. package/alert/styles.css.js +19 -19
  2. package/alert/styles.scoped.css +33 -33
  3. package/alert/styles.selectors.js +19 -19
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +32 -32
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/app-layout/content-wrapper/styles.css.js +3 -3
  8. package/app-layout/content-wrapper/styles.scoped.css +8 -8
  9. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  10. package/app-layout/mobile-toolbar/styles.css.js +4 -4
  11. package/app-layout/mobile-toolbar/styles.scoped.css +9 -9
  12. package/app-layout/mobile-toolbar/styles.selectors.js +4 -4
  13. package/app-layout/notifications/styles.css.js +1 -1
  14. package/app-layout/notifications/styles.scoped.css +2 -1
  15. package/app-layout/notifications/styles.selectors.js +1 -1
  16. package/app-layout/styles.css.js +26 -26
  17. package/app-layout/styles.scoped.css +35 -35
  18. package/app-layout/styles.selectors.js +26 -26
  19. package/app-layout/toggles/styles.css.js +1 -1
  20. package/app-layout/toggles/styles.scoped.css +3 -3
  21. package/app-layout/toggles/styles.selectors.js +1 -1
  22. package/app-layout/visual-refresh/styles.css.js +60 -60
  23. package/app-layout/visual-refresh/styles.scoped.css +225 -224
  24. package/app-layout/visual-refresh/styles.selectors.js +60 -60
  25. package/area-chart/styles.css.js +13 -13
  26. package/area-chart/styles.scoped.css +18 -18
  27. package/area-chart/styles.selectors.js +13 -13
  28. package/attribute-editor/interfaces.d.ts +1 -0
  29. package/attribute-editor/interfaces.d.ts.map +1 -1
  30. package/attribute-editor/interfaces.js.map +1 -1
  31. package/attribute-editor/internal.d.ts.map +1 -1
  32. package/attribute-editor/internal.js +17 -2
  33. package/attribute-editor/internal.js.map +1 -1
  34. package/attribute-editor/styles.css.js +14 -14
  35. package/attribute-editor/styles.scoped.css +26 -26
  36. package/attribute-editor/styles.selectors.js +14 -14
  37. package/badge/styles.css.js +5 -5
  38. package/badge/styles.scoped.css +7 -7
  39. package/badge/styles.selectors.js +5 -5
  40. package/box/styles.css.js +189 -189
  41. package/box/styles.scoped.css +240 -240
  42. package/box/styles.selectors.js +189 -189
  43. package/breadcrumb-group/item/styles.css.js +9 -9
  44. package/breadcrumb-group/item/styles.scoped.css +19 -19
  45. package/breadcrumb-group/item/styles.selectors.js +9 -9
  46. package/breadcrumb-group/styles.css.js +6 -6
  47. package/breadcrumb-group/styles.scoped.css +13 -13
  48. package/breadcrumb-group/styles.selectors.js +6 -6
  49. package/button/styles.css.js +18 -18
  50. package/button/styles.scoped.css +138 -138
  51. package/button/styles.selectors.js +18 -18
  52. package/button-dropdown/category-elements/styles.css.js +13 -13
  53. package/button-dropdown/category-elements/styles.scoped.css +25 -25
  54. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  55. package/button-dropdown/item-element/styles.css.js +14 -14
  56. package/button-dropdown/item-element/styles.scoped.css +20 -20
  57. package/button-dropdown/item-element/styles.selectors.js +14 -14
  58. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  59. package/button-dropdown/mobile-expandable-group/styles.scoped.css +7 -7
  60. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  61. package/button-dropdown/styles.css.js +8 -8
  62. package/button-dropdown/styles.scoped.css +16 -16
  63. package/button-dropdown/styles.selectors.js +8 -8
  64. package/calendar/styles.css.js +18 -18
  65. package/calendar/styles.scoped.css +40 -40
  66. package/calendar/styles.selectors.js +18 -18
  67. package/cards/styles.css.js +37 -37
  68. package/cards/styles.scoped.css +122 -57
  69. package/cards/styles.selectors.js +37 -37
  70. package/checkbox/styles.css.js +3 -3
  71. package/checkbox/styles.scoped.css +7 -7
  72. package/checkbox/styles.selectors.js +3 -3
  73. package/code-editor/styles.css.js +32 -32
  74. package/code-editor/styles.scoped.css +111 -111
  75. package/code-editor/styles.selectors.js +32 -32
  76. package/collection-preferences/styles.css.js +20 -20
  77. package/collection-preferences/styles.scoped.css +25 -25
  78. package/collection-preferences/styles.selectors.js +20 -20
  79. package/column-layout/styles.css.js +13 -13
  80. package/column-layout/styles.scoped.css +45 -45
  81. package/column-layout/styles.selectors.js +13 -13
  82. package/container/internal.d.ts.map +1 -1
  83. package/container/internal.js +1 -1
  84. package/container/internal.js.map +1 -1
  85. package/container/styles.css.js +18 -17
  86. package/container/styles.scoped.css +107 -44
  87. package/container/styles.selectors.js +18 -17
  88. package/container/use-sticky-header.d.ts.map +1 -1
  89. package/container/use-sticky-header.js +4 -15
  90. package/container/use-sticky-header.js.map +1 -1
  91. package/content-layout/styles.css.js +7 -7
  92. package/content-layout/styles.scoped.css +13 -13
  93. package/content-layout/styles.selectors.js +7 -7
  94. package/date-picker/styles.css.js +7 -7
  95. package/date-picker/styles.scoped.css +11 -11
  96. package/date-picker/styles.selectors.js +7 -7
  97. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  98. package/date-range-picker/calendar/grids/styles.scoped.css +44 -44
  99. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  100. package/date-range-picker/relative-range/styles.css.js +9 -9
  101. package/date-range-picker/relative-range/styles.scoped.css +15 -15
  102. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  103. package/date-range-picker/styles.css.js +38 -38
  104. package/date-range-picker/styles.scoped.css +47 -47
  105. package/date-range-picker/styles.selectors.js +38 -38
  106. package/expandable-section/styles.css.js +21 -21
  107. package/expandable-section/styles.scoped.css +44 -44
  108. package/expandable-section/styles.selectors.js +21 -21
  109. package/flashbar/collapsible-flashbar.d.ts +2 -2
  110. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  111. package/flashbar/collapsible-flashbar.js +19 -9
  112. package/flashbar/collapsible-flashbar.js.map +1 -1
  113. package/flashbar/common.d.ts +2 -2
  114. package/flashbar/common.d.ts.map +1 -1
  115. package/flashbar/common.js.map +1 -1
  116. package/flashbar/index.d.ts +2 -2
  117. package/flashbar/index.d.ts.map +1 -1
  118. package/flashbar/index.js +1 -4
  119. package/flashbar/index.js.map +1 -1
  120. package/flashbar/interfaces.d.ts +30 -17
  121. package/flashbar/interfaces.d.ts.map +1 -1
  122. package/flashbar/interfaces.js.map +1 -1
  123. package/flashbar/non-collapsible-flashbar.d.ts +2 -2
  124. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  125. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  126. package/flashbar/styles.css.js +43 -43
  127. package/flashbar/styles.scoped.css +152 -163
  128. package/flashbar/styles.selectors.js +43 -43
  129. package/flashbar/utils.d.ts +1 -0
  130. package/flashbar/utils.d.ts.map +1 -1
  131. package/flashbar/utils.js +3 -0
  132. package/flashbar/utils.js.map +1 -1
  133. package/form/styles.css.js +8 -8
  134. package/form/styles.scoped.css +10 -10
  135. package/form/styles.selectors.js +8 -8
  136. package/form-field/styles.css.js +19 -19
  137. package/form-field/styles.scoped.css +31 -31
  138. package/form-field/styles.selectors.js +19 -19
  139. package/grid/styles.css.js +53 -53
  140. package/grid/styles.scoped.css +56 -56
  141. package/grid/styles.selectors.js +53 -53
  142. package/header/styles.css.js +44 -44
  143. package/header/styles.scoped.css +49 -49
  144. package/header/styles.selectors.js +44 -44
  145. package/help-panel/styles.css.js +4 -4
  146. package/help-panel/styles.scoped.css +60 -60
  147. package/help-panel/styles.selectors.js +4 -4
  148. package/hotspot/styles.css.js +7 -7
  149. package/hotspot/styles.scoped.css +9 -9
  150. package/hotspot/styles.selectors.js +7 -7
  151. package/icon/styles.css.js +21 -21
  152. package/icon/styles.scoped.css +50 -50
  153. package/icon/styles.selectors.js +21 -21
  154. package/input/styles.css.js +12 -12
  155. package/input/styles.scoped.css +32 -32
  156. package/input/styles.selectors.js +12 -12
  157. package/internal/base-component/styles.scoped.css +6 -6
  158. package/internal/components/abstract-switch/styles.css.js +12 -12
  159. package/internal/components/abstract-switch/styles.scoped.css +21 -21
  160. package/internal/components/abstract-switch/styles.selectors.js +12 -12
  161. package/internal/components/button-trigger/styles.css.js +9 -9
  162. package/internal/components/button-trigger/styles.scoped.css +25 -25
  163. package/internal/components/button-trigger/styles.selectors.js +9 -9
  164. package/internal/components/chart-filter/styles.css.js +3 -3
  165. package/internal/components/chart-filter/styles.scoped.css +5 -5
  166. package/internal/components/chart-filter/styles.selectors.js +3 -3
  167. package/internal/components/chart-legend/styles.css.js +6 -6
  168. package/internal/components/chart-legend/styles.scoped.css +17 -17
  169. package/internal/components/chart-legend/styles.selectors.js +6 -6
  170. package/internal/components/chart-plot/styles.css.js +5 -5
  171. package/internal/components/chart-plot/styles.scoped.css +7 -7
  172. package/internal/components/chart-plot/styles.selectors.js +5 -5
  173. package/internal/components/chart-popover/styles.css.js +3 -3
  174. package/internal/components/chart-popover/styles.scoped.css +5 -5
  175. package/internal/components/chart-popover/styles.selectors.js +3 -3
  176. package/internal/components/chart-series-details/styles.css.js +5 -5
  177. package/internal/components/chart-series-details/styles.scoped.css +10 -10
  178. package/internal/components/chart-series-details/styles.selectors.js +5 -5
  179. package/internal/components/chart-series-marker/styles.css.js +5 -5
  180. package/internal/components/chart-series-marker/styles.scoped.css +9 -9
  181. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  182. package/internal/components/checkbox-icon/styles.css.js +7 -7
  183. package/internal/components/checkbox-icon/styles.scoped.css +10 -10
  184. package/internal/components/checkbox-icon/styles.selectors.js +7 -7
  185. package/internal/components/dropdown/styles.css.js +20 -20
  186. package/internal/components/dropdown/styles.scoped.css +37 -37
  187. package/internal/components/dropdown/styles.selectors.js +20 -20
  188. package/internal/components/dropdown-footer/styles.css.js +3 -3
  189. package/internal/components/dropdown-footer/styles.scoped.css +5 -5
  190. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  191. package/internal/components/dropdown-status/styles.css.js +2 -2
  192. package/internal/components/dropdown-status/styles.scoped.css +4 -4
  193. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  194. package/internal/components/filtering-token/styles.css.js +7 -7
  195. package/internal/components/filtering-token/styles.scoped.css +15 -15
  196. package/internal/components/filtering-token/styles.selectors.js +7 -7
  197. package/internal/components/menu-dropdown/styles.css.js +7 -7
  198. package/internal/components/menu-dropdown/styles.scoped.css +15 -15
  199. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  200. package/internal/components/option/styles.css.js +17 -17
  201. package/internal/components/option/styles.scoped.css +31 -31
  202. package/internal/components/option/styles.selectors.js +17 -17
  203. package/internal/components/options-list/styles.css.js +2 -2
  204. package/internal/components/options-list/styles.scoped.css +4 -4
  205. package/internal/components/options-list/styles.selectors.js +2 -2
  206. package/internal/components/screenreader-only/styles.css.js +1 -1
  207. package/internal/components/screenreader-only/styles.scoped.css +3 -3
  208. package/internal/components/screenreader-only/styles.selectors.js +1 -1
  209. package/internal/components/selectable-item/styles.css.js +16 -16
  210. package/internal/components/selectable-item/styles.scoped.css +29 -29
  211. package/internal/components/selectable-item/styles.selectors.js +16 -16
  212. package/internal/environment.js +1 -1
  213. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  214. package/internal/generated/custom-css-properties/index.js +28 -27
  215. package/internal/generated/custom-css-properties/index.js.map +1 -1
  216. package/internal/generated/theming/index.cjs +6 -6
  217. package/internal/generated/theming/index.js +6 -6
  218. package/internal/manifest.json +1 -1
  219. package/link/styles.css.js +20 -20
  220. package/link/styles.scoped.css +73 -73
  221. package/link/styles.selectors.js +20 -20
  222. package/mixed-line-bar-chart/styles.css.js +19 -19
  223. package/mixed-line-bar-chart/styles.scoped.css +28 -28
  224. package/mixed-line-bar-chart/styles.selectors.js +19 -19
  225. package/modal/styles.css.js +22 -22
  226. package/modal/styles.scoped.css +40 -47
  227. package/modal/styles.selectors.js +22 -22
  228. package/multiselect/styles.css.js +1 -1
  229. package/multiselect/styles.scoped.css +3 -3
  230. package/multiselect/styles.selectors.js +1 -1
  231. package/package.json +1 -1
  232. package/pagination/styles.css.js +9 -9
  233. package/pagination/styles.scoped.css +25 -25
  234. package/pagination/styles.selectors.js +9 -9
  235. package/pie-chart/styles.css.js +27 -27
  236. package/pie-chart/styles.scoped.css +45 -45
  237. package/pie-chart/styles.selectors.js +27 -27
  238. package/popover/styles.css.js +50 -50
  239. package/popover/styles.scoped.css +73 -73
  240. package/popover/styles.selectors.js +50 -50
  241. package/progress-bar/styles.css.js +18 -18
  242. package/progress-bar/styles.scoped.css +36 -36
  243. package/progress-bar/styles.selectors.js +18 -18
  244. package/property-filter/styles.css.js +33 -33
  245. package/property-filter/styles.scoped.css +37 -37
  246. package/property-filter/styles.selectors.js +33 -33
  247. package/radio-group/styles.css.js +9 -9
  248. package/radio-group/styles.scoped.css +17 -17
  249. package/radio-group/styles.selectors.js +9 -9
  250. package/segmented-control/styles.css.js +14 -14
  251. package/segmented-control/styles.scoped.css +35 -35
  252. package/segmented-control/styles.selectors.js +14 -14
  253. package/select/parts/styles.css.js +9 -9
  254. package/select/parts/styles.scoped.css +14 -14
  255. package/select/parts/styles.selectors.js +9 -9
  256. package/select/styles.css.js +1 -1
  257. package/select/styles.scoped.css +3 -3
  258. package/select/styles.selectors.js +1 -1
  259. package/side-navigation/styles.css.js +26 -26
  260. package/side-navigation/styles.scoped.css +38 -38
  261. package/side-navigation/styles.selectors.js +26 -26
  262. package/space-between/styles.css.js +28 -28
  263. package/space-between/styles.scoped.css +31 -31
  264. package/space-between/styles.selectors.js +28 -28
  265. package/spinner/styles.css.js +13 -13
  266. package/spinner/styles.scoped.css +20 -20
  267. package/spinner/styles.selectors.js +13 -13
  268. package/split-panel/styles.css.js +59 -59
  269. package/split-panel/styles.scoped.css +85 -85
  270. package/split-panel/styles.selectors.js +59 -59
  271. package/status-indicator/styles.css.js +20 -20
  272. package/status-indicator/styles.scoped.css +28 -28
  273. package/status-indicator/styles.selectors.js +20 -20
  274. package/table/body-cell/styles.css.js +18 -18
  275. package/table/body-cell/styles.scoped.css +52 -52
  276. package/table/body-cell/styles.selectors.js +18 -18
  277. package/table/header-cell/styles.css.js +19 -19
  278. package/table/header-cell/styles.scoped.css +33 -33
  279. package/table/header-cell/styles.selectors.js +19 -19
  280. package/table/resizer/styles.css.js +6 -6
  281. package/table/resizer/styles.scoped.css +13 -13
  282. package/table/resizer/styles.selectors.js +6 -6
  283. package/table/selection-control/styles.css.js +3 -3
  284. package/table/selection-control/styles.scoped.css +5 -5
  285. package/table/selection-control/styles.selectors.js +3 -3
  286. package/table/styles.css.js +33 -33
  287. package/table/styles.scoped.css +41 -41
  288. package/table/styles.selectors.js +33 -33
  289. package/tabs/styles.css.js +21 -21
  290. package/tabs/styles.scoped.css +42 -42
  291. package/tabs/styles.selectors.js +21 -21
  292. package/tag-editor/interfaces.d.ts +1 -0
  293. package/tag-editor/interfaces.d.ts.map +1 -1
  294. package/tag-editor/interfaces.js.map +1 -1
  295. package/tag-editor/styles.css.js +3 -3
  296. package/tag-editor/styles.scoped.css +12 -12
  297. package/tag-editor/styles.selectors.js +3 -3
  298. package/test-utils/dom/flashbar/index.d.ts +2 -0
  299. package/test-utils/dom/flashbar/index.js +2 -0
  300. package/test-utils/dom/flashbar/index.js.map +1 -1
  301. package/test-utils/selectors/flashbar/index.d.ts +2 -0
  302. package/test-utils/selectors/flashbar/index.js +2 -0
  303. package/test-utils/selectors/flashbar/index.js.map +1 -1
  304. package/test-utils/tsconfig.tsbuildinfo +1 -1
  305. package/text-content/styles.css.js +1 -1
  306. package/text-content/styles.scoped.css +62 -62
  307. package/text-content/styles.selectors.js +1 -1
  308. package/text-filter/styles.css.js +4 -4
  309. package/text-filter/styles.scoped.css +6 -6
  310. package/text-filter/styles.selectors.js +4 -4
  311. package/textarea/styles.css.js +4 -4
  312. package/textarea/styles.scoped.css +14 -14
  313. package/textarea/styles.selectors.js +4 -4
  314. package/tiles/styles.css.js +28 -28
  315. package/tiles/styles.scoped.css +70 -70
  316. package/tiles/styles.selectors.js +28 -28
  317. package/toggle/styles.css.js +8 -8
  318. package/toggle/styles.scoped.css +15 -15
  319. package/toggle/styles.selectors.js +8 -8
  320. package/token-group/styles.css.js +7 -7
  321. package/token-group/styles.scoped.css +24 -24
  322. package/token-group/styles.selectors.js +7 -7
  323. package/top-navigation/1.0-beta/styles.css.js +25 -25
  324. package/top-navigation/1.0-beta/styles.scoped.css +44 -44
  325. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  326. package/top-navigation/styles.css.js +47 -47
  327. package/top-navigation/styles.scoped.css +68 -68
  328. package/top-navigation/styles.selectors.js +47 -47
  329. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  330. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
  331. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  332. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  333. package/tutorial-panel/components/tutorial-list/styles.scoped.css +29 -29
  334. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  335. package/tutorial-panel/styles.css.js +1 -1
  336. package/tutorial-panel/styles.scoped.css +3 -3
  337. package/tutorial-panel/styles.selectors.js +1 -1
  338. package/wizard/index.d.ts.map +1 -1
  339. package/wizard/index.js +5 -4
  340. package/wizard/index.js.map +1 -1
  341. package/wizard/internal/analytics.d.ts +3 -3
  342. package/wizard/internal/analytics.d.ts.map +1 -1
  343. package/wizard/internal/analytics.js +6 -11
  344. package/wizard/internal/analytics.js.map +1 -1
  345. package/wizard/styles.css.js +32 -32
  346. package/wizard/styles.scoped.css +98 -64
  347. package/wizard/styles.selectors.js +32 -32
@@ -2,65 +2,65 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "appbar": "awsui_appbar_hyvsj_j35f2_93",
6
- "appbar-nav": "awsui_appbar-nav_hyvsj_j35f2_117",
7
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_j35f2_121",
8
- "appbar-tools": "awsui_appbar-tools_hyvsj_j35f2_125",
9
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_j35f2_166",
10
- "has-notifications-content": "awsui_has-notifications-content_hyvsj_j35f2_173",
11
- "has-header": "awsui_has-header_hyvsj_j35f2_179",
12
- "has-dynamic-overlap-height": "awsui_has-dynamic-overlap-height_hyvsj_j35f2_179",
13
- "content-type-wizard": "awsui_content-type-wizard_hyvsj_j35f2_180",
14
- "content-type-cards": "awsui_content-type-cards_hyvsj_j35f2_183",
15
- "content-type-table": "awsui_content-type-table_hyvsj_j35f2_184",
16
- "has-sticky-background": "awsui_has-sticky-background_hyvsj_j35f2_187",
17
- "background": "awsui_background_hyvsj_j35f2_221",
18
- "notifications-appbar-header": "awsui_notifications-appbar-header_hyvsj_j35f2_224",
19
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_j35f2_236",
20
- "overlap": "awsui_overlap_hyvsj_j35f2_242",
21
- "content": "awsui_content_hyvsj_j35f2_180",
22
- "layout": "awsui_layout_hyvsj_j35f2_333",
23
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_j35f2_415",
24
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_j35f2_442",
25
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_j35f2_445",
26
- "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_j35f2_449",
27
- "has-split-panel": "awsui_has-split-panel_hyvsj_j35f2_463",
28
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_j35f2_463",
29
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_j35f2_475",
30
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_j35f2_478",
31
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_j35f2_493",
32
- "container": "awsui_container_hyvsj_j35f2_501",
33
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_j35f2_527",
34
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_j35f2_532",
35
- "is-tools-open": "awsui_is-tools-open_hyvsj_j35f2_535",
36
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_j35f2_535",
37
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_j35f2_535",
38
- "content-type-default": "awsui_content-type-default_hyvsj_j35f2_555",
39
- "content-type-form": "awsui_content-type-form_hyvsj_j35f2_555",
40
- "unfocusable": "awsui_unfocusable_hyvsj_j35f2_596",
41
- "navigation-container": "awsui_navigation-container_hyvsj_j35f2_606",
42
- "show-navigation": "awsui_show-navigation_hyvsj_j35f2_641",
43
- "animating": "awsui_animating_hyvsj_j35f2_663",
44
- "showButtons": "awsui_showButtons_hyvsj_j35f2_1",
45
- "navigation": "awsui_navigation_hyvsj_j35f2_606",
46
- "openNavigation": "awsui_openNavigation_hyvsj_j35f2_1",
47
- "animated-content": "awsui_animated-content_hyvsj_j35f2_724",
48
- "hide-navigation": "awsui_hide-navigation_hyvsj_j35f2_733",
49
- "notifications": "awsui_notifications_hyvsj_j35f2_224",
50
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_j35f2_798",
51
- "position-bottom": "awsui_position-bottom_hyvsj_j35f2_844",
52
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_j35f2_1",
53
- "split-panel-side": "awsui_split-panel-side_hyvsj_j35f2_873",
54
- "position-side": "awsui_position-side_hyvsj_j35f2_901",
55
- "openSplitPanelSide": "awsui_openSplitPanelSide_hyvsj_j35f2_1",
56
- "tools-container": "awsui_tools-container_hyvsj_j35f2_938",
57
- "tools": "awsui_tools_hyvsj_j35f2_938",
58
- "openTools": "awsui_openTools_hyvsj_j35f2_1",
59
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_j35f2_1023",
60
- "hide-tools": "awsui_hide-tools_hyvsj_j35f2_1033",
61
- "show-tools": "awsui_show-tools_hyvsj_j35f2_1045",
62
- "has-tools-form": "awsui_has-tools-form_hyvsj_j35f2_1023",
63
- "trigger": "awsui_trigger_hyvsj_j35f2_1102",
64
- "selected": "awsui_selected_hyvsj_j35f2_1141"
5
+ "appbar": "awsui_appbar_hyvsj_1naed_93",
6
+ "appbar-nav": "awsui_appbar-nav_hyvsj_1naed_117",
7
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_1naed_121",
8
+ "appbar-tools": "awsui_appbar-tools_hyvsj_1naed_125",
9
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1naed_166",
10
+ "has-notifications-content": "awsui_has-notifications-content_hyvsj_1naed_173",
11
+ "has-header": "awsui_has-header_hyvsj_1naed_179",
12
+ "has-dynamic-overlap-height": "awsui_has-dynamic-overlap-height_hyvsj_1naed_179",
13
+ "content-type-wizard": "awsui_content-type-wizard_hyvsj_1naed_180",
14
+ "content-type-cards": "awsui_content-type-cards_hyvsj_1naed_183",
15
+ "content-type-table": "awsui_content-type-table_hyvsj_1naed_184",
16
+ "has-sticky-background": "awsui_has-sticky-background_hyvsj_1naed_187",
17
+ "background": "awsui_background_hyvsj_1naed_221",
18
+ "notifications-appbar-header": "awsui_notifications-appbar-header_hyvsj_1naed_224",
19
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_1naed_236",
20
+ "overlap": "awsui_overlap_hyvsj_1naed_242",
21
+ "content": "awsui_content_hyvsj_1naed_180",
22
+ "layout": "awsui_layout_hyvsj_1naed_333",
23
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_1naed_415",
24
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1naed_442",
25
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1naed_445",
26
+ "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1naed_449",
27
+ "has-split-panel": "awsui_has-split-panel_hyvsj_1naed_463",
28
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1naed_463",
29
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1naed_475",
30
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1naed_478",
31
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_1naed_493",
32
+ "container": "awsui_container_hyvsj_1naed_501",
33
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1naed_527",
34
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_1naed_532",
35
+ "is-tools-open": "awsui_is-tools-open_hyvsj_1naed_535",
36
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1naed_535",
37
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1naed_535",
38
+ "content-type-default": "awsui_content-type-default_hyvsj_1naed_555",
39
+ "content-type-form": "awsui_content-type-form_hyvsj_1naed_555",
40
+ "unfocusable": "awsui_unfocusable_hyvsj_1naed_596",
41
+ "navigation-container": "awsui_navigation-container_hyvsj_1naed_606",
42
+ "show-navigation": "awsui_show-navigation_hyvsj_1naed_641",
43
+ "animating": "awsui_animating_hyvsj_1naed_663",
44
+ "showButtons": "awsui_showButtons_hyvsj_1naed_1",
45
+ "navigation": "awsui_navigation_hyvsj_1naed_606",
46
+ "openNavigation": "awsui_openNavigation_hyvsj_1naed_1",
47
+ "animated-content": "awsui_animated-content_hyvsj_1naed_724",
48
+ "hide-navigation": "awsui_hide-navigation_hyvsj_1naed_733",
49
+ "notifications": "awsui_notifications_hyvsj_1naed_224",
50
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1naed_799",
51
+ "position-bottom": "awsui_position-bottom_hyvsj_1naed_845",
52
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1naed_1",
53
+ "split-panel-side": "awsui_split-panel-side_hyvsj_1naed_874",
54
+ "position-side": "awsui_position-side_hyvsj_1naed_902",
55
+ "openSplitPanelSide": "awsui_openSplitPanelSide_hyvsj_1naed_1",
56
+ "tools-container": "awsui_tools-container_hyvsj_1naed_939",
57
+ "tools": "awsui_tools_hyvsj_1naed_939",
58
+ "openTools": "awsui_openTools_hyvsj_1naed_1",
59
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1naed_1024",
60
+ "hide-tools": "awsui_hide-tools_hyvsj_1naed_1034",
61
+ "show-tools": "awsui_show-tools_hyvsj_1naed_1046",
62
+ "has-tools-form": "awsui_has-tools-form_hyvsj_1naed_1024",
63
+ "trigger": "awsui_trigger_hyvsj_1naed_1103",
64
+ "selected": "awsui_selected_hyvsj_1naed_1142"
65
65
  };
66
66
 
@@ -1,18 +1,18 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "series": "awsui_series_y1yrh_fjo38_93",
5
- "root": "awsui_root_y1yrh_fjo38_111",
6
- "has-default-filter": "awsui_has-default-filter_y1yrh_fjo38_126",
7
- "chart-container": "awsui_chart-container_y1yrh_fjo38_130",
8
- "chart-container__vertical": "awsui_chart-container__vertical_y1yrh_fjo38_136",
9
- "chart-container__horizontal": "awsui_chart-container__horizontal_y1yrh_fjo38_142",
10
- "content": "awsui_content_y1yrh_fjo38_146",
11
- "content--reserve-filter": "awsui_content--reserve-filter_y1yrh_fjo38_153",
12
- "content--reserve-legend": "awsui_content--reserve-legend_y1yrh_fjo38_157",
13
- "series--highlighted": "awsui_series--highlighted_y1yrh_fjo38_169",
14
- "series--dimmed": "awsui_series--dimmed_y1yrh_fjo38_173",
15
- "series--threshold": "awsui_series--threshold_y1yrh_fjo38_177",
16
- "popover-divider": "awsui_popover-divider_y1yrh_fjo38_182"
4
+ "series": "awsui_series_y1yrh_u5bx8_93",
5
+ "root": "awsui_root_y1yrh_u5bx8_111",
6
+ "has-default-filter": "awsui_has-default-filter_y1yrh_u5bx8_126",
7
+ "chart-container": "awsui_chart-container_y1yrh_u5bx8_130",
8
+ "chart-container__vertical": "awsui_chart-container__vertical_y1yrh_u5bx8_136",
9
+ "chart-container__horizontal": "awsui_chart-container__horizontal_y1yrh_u5bx8_142",
10
+ "content": "awsui_content_y1yrh_u5bx8_146",
11
+ "content--reserve-filter": "awsui_content--reserve-filter_y1yrh_u5bx8_153",
12
+ "content--reserve-legend": "awsui_content--reserve-legend_y1yrh_u5bx8_157",
13
+ "series--highlighted": "awsui_series--highlighted_y1yrh_u5bx8_169",
14
+ "series--dimmed": "awsui_series--dimmed_y1yrh_u5bx8_173",
15
+ "series--threshold": "awsui_series--threshold_y1yrh_u5bx8_177",
16
+ "popover-divider": "awsui_popover-divider_y1yrh_u5bx8_182"
17
17
  };
18
18
 
@@ -50,8 +50,6 @@
50
50
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
51
  SPDX-License-Identifier: Apache-2.0
52
52
  */
53
- /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
54
- /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
55
53
  /*
56
54
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
57
55
  SPDX-License-Identifier: Apache-2.0
@@ -64,6 +62,8 @@
64
62
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
65
63
  SPDX-License-Identifier: Apache-2.0
66
64
  */
65
+ /* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
66
+ /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
67
67
  /*
68
68
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
69
69
  SPDX-License-Identifier: Apache-2.0
@@ -90,16 +90,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_series_y1yrh_fjo38_93 > rect:not(#\9) {
93
+ .awsui_series_y1yrh_u5bx8_93 > rect:not(#\9) {
94
94
  transition: opacity var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
95
95
  }
96
96
  @media (prefers-reduced-motion: reduce) {
97
- .awsui_series_y1yrh_fjo38_93 > rect:not(#\9) {
97
+ .awsui_series_y1yrh_u5bx8_93 > rect:not(#\9) {
98
98
  animation: none;
99
99
  transition: none;
100
100
  }
101
101
  }
102
- .awsui-motion-disabled .awsui_series_y1yrh_fjo38_93 > rect:not(#\9), .awsui-mode-entering .awsui_series_y1yrh_fjo38_93 > rect:not(#\9) {
102
+ .awsui-motion-disabled .awsui_series_y1yrh_u5bx8_93 > rect:not(#\9), .awsui-mode-entering .awsui_series_y1yrh_u5bx8_93 > rect:not(#\9) {
103
103
  animation: none;
104
104
  transition: none;
105
105
  }
@@ -108,7 +108,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
108
108
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
109
109
  SPDX-License-Identifier: Apache-2.0
110
110
  */
111
- .awsui_root_y1yrh_fjo38_111:not(#\9) {
111
+ .awsui_root_y1yrh_u5bx8_111:not(#\9) {
112
112
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
113
113
  border-collapse: separate;
114
114
  border-spacing: 0;
@@ -149,42 +149,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
149
149
  display: block;
150
150
  }
151
151
 
152
- .awsui_has-default-filter_y1yrh_fjo38_126 > :not(#\9):first-child {
152
+ .awsui_has-default-filter_y1yrh_u5bx8_126 > :not(#\9):first-child {
153
153
  flex: 280px 0 1;
154
154
  }
155
155
 
156
- .awsui_chart-container_y1yrh_fjo38_130:not(#\9) {
156
+ .awsui_chart-container_y1yrh_u5bx8_130:not(#\9) {
157
157
  display: flex;
158
158
  width: 100%;
159
159
  flex-direction: column;
160
160
  }
161
161
 
162
- .awsui_chart-container__vertical_y1yrh_fjo38_136:not(#\9) {
162
+ .awsui_chart-container__vertical_y1yrh_u5bx8_136:not(#\9) {
163
163
  display: flex;
164
164
  flex-direction: column;
165
165
  width: 100%;
166
166
  }
167
167
 
168
- .awsui_chart-container__horizontal_y1yrh_fjo38_142:not(#\9) {
168
+ .awsui_chart-container__horizontal_y1yrh_u5bx8_142:not(#\9) {
169
169
  display: flex;
170
170
  }
171
171
 
172
- .awsui_content_y1yrh_fjo38_146:not(#\9) {
172
+ .awsui_content_y1yrh_u5bx8_146:not(#\9) {
173
173
  display: flex;
174
174
  position: relative;
175
175
  justify-content: center;
176
176
  align-items: center;
177
177
  }
178
178
 
179
- .awsui_content--reserve-filter_y1yrh_fjo38_153:not(#\9) {
179
+ .awsui_content--reserve-filter_y1yrh_u5bx8_153:not(#\9) {
180
180
  margin-top: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
181
181
  }
182
182
 
183
- .awsui_content--reserve-legend_y1yrh_fjo38_157:not(#\9) {
183
+ .awsui_content--reserve-legend_y1yrh_u5bx8_157:not(#\9) {
184
184
  margin-bottom: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
185
185
  }
186
186
 
187
- .awsui_series_y1yrh_fjo38_93:not(#\9) {
187
+ .awsui_series_y1yrh_u5bx8_93:not(#\9) {
188
188
  display: block;
189
189
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
190
190
  fill: none;
@@ -192,20 +192,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
192
192
  stroke-linejoin: var(--border-line-chart-line-join-nan7pn, round);
193
193
  }
194
194
 
195
- .awsui_series--highlighted_y1yrh_fjo38_169:not(#\9) {
195
+ .awsui_series--highlighted_y1yrh_u5bx8_169:not(#\9) {
196
196
  /* used in test-utils */
197
197
  }
198
198
 
199
- .awsui_series--dimmed_y1yrh_fjo38_173:not(#\9) {
199
+ .awsui_series--dimmed_y1yrh_u5bx8_173:not(#\9) {
200
200
  opacity: 0.3;
201
201
  }
202
202
 
203
- .awsui_series--threshold_y1yrh_fjo38_177:not(#\9) {
203
+ .awsui_series--threshold_y1yrh_u5bx8_177:not(#\9) {
204
204
  stroke-dasharray: var(--border-line-chart-dash-array-4wa4ab, 3 5);
205
205
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
206
206
  }
207
207
 
208
- .awsui_popover-divider_y1yrh_fjo38_182:not(#\9) {
208
+ .awsui_popover-divider_y1yrh_u5bx8_182:not(#\9) {
209
209
  margin: var(--space-xxs-ynfts5, 4px) 0;
210
210
  border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
211
211
  }
@@ -2,18 +2,18 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "series": "awsui_series_y1yrh_fjo38_93",
6
- "root": "awsui_root_y1yrh_fjo38_111",
7
- "has-default-filter": "awsui_has-default-filter_y1yrh_fjo38_126",
8
- "chart-container": "awsui_chart-container_y1yrh_fjo38_130",
9
- "chart-container__vertical": "awsui_chart-container__vertical_y1yrh_fjo38_136",
10
- "chart-container__horizontal": "awsui_chart-container__horizontal_y1yrh_fjo38_142",
11
- "content": "awsui_content_y1yrh_fjo38_146",
12
- "content--reserve-filter": "awsui_content--reserve-filter_y1yrh_fjo38_153",
13
- "content--reserve-legend": "awsui_content--reserve-legend_y1yrh_fjo38_157",
14
- "series--highlighted": "awsui_series--highlighted_y1yrh_fjo38_169",
15
- "series--dimmed": "awsui_series--dimmed_y1yrh_fjo38_173",
16
- "series--threshold": "awsui_series--threshold_y1yrh_fjo38_177",
17
- "popover-divider": "awsui_popover-divider_y1yrh_fjo38_182"
5
+ "series": "awsui_series_y1yrh_u5bx8_93",
6
+ "root": "awsui_root_y1yrh_u5bx8_111",
7
+ "has-default-filter": "awsui_has-default-filter_y1yrh_u5bx8_126",
8
+ "chart-container": "awsui_chart-container_y1yrh_u5bx8_130",
9
+ "chart-container__vertical": "awsui_chart-container__vertical_y1yrh_u5bx8_136",
10
+ "chart-container__horizontal": "awsui_chart-container__horizontal_y1yrh_u5bx8_142",
11
+ "content": "awsui_content_y1yrh_u5bx8_146",
12
+ "content--reserve-filter": "awsui_content--reserve-filter_y1yrh_u5bx8_153",
13
+ "content--reserve-legend": "awsui_content--reserve-legend_y1yrh_u5bx8_157",
14
+ "series--highlighted": "awsui_series--highlighted_y1yrh_u5bx8_169",
15
+ "series--dimmed": "awsui_series--dimmed_y1yrh_u5bx8_173",
16
+ "series--threshold": "awsui_series--threshold_y1yrh_u5bx8_177",
17
+ "popover-divider": "awsui_popover-divider_y1yrh_u5bx8_182"
18
18
  };
19
19
 
@@ -26,6 +26,7 @@ export declare namespace AttributeEditorProps {
26
26
  }
27
27
  interface I18nStrings {
28
28
  errorIconAriaLabel?: string;
29
+ itemRemovedAriaLive?: string;
29
30
  }
30
31
  }
31
32
  export interface AttributeEditorProps<T> extends BaseComponentProps {
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/attribute-editor/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAY/D,MAAM,WAAW,6BAA6B;IAC5C,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;CAClG;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,uBAAuB,CAAC,CAAC;QACxC,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;KACpB;IAED,KAAY,eAAe,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACjF,UAAiB,eAAe,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAA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,WAAW;QAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,kBAAkB;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEjC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAElE;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;;OAUG;IACH,UAAU,EAAE,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnE;;OAEG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAE7C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,CAAC;IAE9F;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC,WAAW,CAAC;CAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/attribute-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface AttributeEditorForwardRefType {\n <T>(props: AttributeEditorProps<T> & { ref?: React.Ref<AttributeEditorProps.Ref> }): JSX.Element;\n}\n\nexport namespace AttributeEditorProps {\n export interface IsItemRemovableFunction<T> {\n (item: T): boolean;\n }\n\n export type FieldRenderable<T> = (item: T, itemIndex: number) => React.ReactNode;\n export interface FieldDefinition<T> {\n label?: React.ReactNode;\n info?: React.ReactNode;\n control?: FieldRenderable<T> | React.ReactNode;\n errorText?: FieldRenderable<T> | React.ReactNode;\n constraintText?: FieldRenderable<T> | React.ReactNode;\n }\n\n export interface RemoveButtonClickDetail {\n itemIndex: number;\n }\n\n export interface Ref {\n focusRemoveButton(itemIndex: number): void;\n }\n\n export interface I18nStrings {\n errorIconAriaLabel?: string;\n }\n}\n\nexport interface AttributeEditorProps<T> extends BaseComponentProps {\n /**\n * Displayed when there are no items to display.\n */\n empty?: React.ReactNode;\n\n /**\n * Displayed below the add button. Use it for additional information related to the attribute editor.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Specifies the text that's displayed in the add button.\n */\n addButtonText: string;\n\n /**\n * Specifies the text that's displayed in the remove button.\n */\n removeButtonText: string;\n\n /**\n * Specifies the items that serve as the data source for all rows.\n * The display of a row is handled by the `definition` property.\n */\n items?: ReadonlyArray<T>;\n\n /**\n * Function that determines whether an item is removable. When this function returns `false`, the remove\n * button is not rendered and the user can't remove the item.\n * By default, all items are removable.\n */\n isItemRemovable?: AttributeEditorProps.IsItemRemovableFunction<T>;\n\n /**\n * Determines whether the add button is disabled.\n */\n disableAddButton?: boolean;\n\n /**\n * Defines the editor configuration. Each object in the array represents one form field in the row.\n * * `label` (ReactNode) - Text label for the form field.\n * * `info` (ReactNode) - Info link for the form field.\n * * `errorText` ((item, itemIndex) => ReactNode) - Error message text to display as a control validation message.\n * It renders the form field as invalid if the returned value is not `null` or `undefined`.\n * * `constraintText` ((item, itemIndex) => ReactNode) - Text to display as a constraint message below the field.\n * * `control` ((item, itemIndex) => ReactNode) - A control to use as the input for the field.\n *\n * A maximum of four fields are supported.\n */\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n\n /**\n * Called when add button is clicked.\n */\n onAddButtonClick?: NonCancelableEventHandler;\n\n /**\n * Called when remove button is clicked.\n * The event `detail` contains the index of the corresponding item.\n */\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings?: AttributeEditorProps.I18nStrings;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/attribute-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface AttributeEditorForwardRefType {\n <T>(props: AttributeEditorProps<T> & { ref?: React.Ref<AttributeEditorProps.Ref> }): JSX.Element;\n}\n\nexport namespace AttributeEditorProps {\n export interface IsItemRemovableFunction<T> {\n (item: T): boolean;\n }\n\n export type FieldRenderable<T> = (item: T, itemIndex: number) => React.ReactNode;\n export interface FieldDefinition<T> {\n label?: React.ReactNode;\n info?: React.ReactNode;\n control?: FieldRenderable<T> | React.ReactNode;\n errorText?: FieldRenderable<T> | React.ReactNode;\n constraintText?: FieldRenderable<T> | React.ReactNode;\n }\n\n export interface RemoveButtonClickDetail {\n itemIndex: number;\n }\n\n export interface Ref {\n focusRemoveButton(itemIndex: number): void;\n }\n\n export interface I18nStrings {\n errorIconAriaLabel?: string;\n\n itemRemovedAriaLive?: string;\n }\n}\n\nexport interface AttributeEditorProps<T> extends BaseComponentProps {\n /**\n * Displayed when there are no items to display.\n */\n empty?: React.ReactNode;\n\n /**\n * Displayed below the add button. Use it for additional information related to the attribute editor.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Specifies the text that's displayed in the add button.\n */\n addButtonText: string;\n\n /**\n * Specifies the text that's displayed in the remove button.\n */\n removeButtonText: string;\n\n /**\n * Specifies the items that serve as the data source for all rows.\n * The display of a row is handled by the `definition` property.\n */\n items?: ReadonlyArray<T>;\n\n /**\n * Function that determines whether an item is removable. When this function returns `false`, the remove\n * button is not rendered and the user can't remove the item.\n * By default, all items are removable.\n */\n isItemRemovable?: AttributeEditorProps.IsItemRemovableFunction<T>;\n\n /**\n * Determines whether the add button is disabled.\n */\n disableAddButton?: boolean;\n\n /**\n * Defines the editor configuration. Each object in the array represents one form field in the row.\n * * `label` (ReactNode) - Text label for the form field.\n * * `info` (ReactNode) - Info link for the form field.\n * * `errorText` ((item, itemIndex) => ReactNode) - Error message text to display as a control validation message.\n * It renders the form field as invalid if the returned value is not `null` or `undefined`.\n * * `constraintText` ((item, itemIndex) => ReactNode) - Text to display as a constraint message below the field.\n * * `control` ((item, itemIndex) => ReactNode) - A control to use as the input for the field.\n *\n * A maximum of four fields are supported.\n */\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n\n /**\n * Called when add button is clicked.\n */\n onAddButtonClick?: NonCancelableEventHandler;\n\n /**\n * Called when remove button is clicked.\n * The event `detail` contains the index of the corresponding item.\n */\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings?: AttributeEditorProps.I18nStrings;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/attribute-editor/internal.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,6BAA6B,EAAwB,MAAM,cAAc,CAAC;AAcnF,QAAA,MAAM,uBAAuB,+BAuEK,CAAC;AAEnC,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/attribute-editor/internal.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,6BAA6B,EAAwB,MAAM,cAAc,CAAC;AAgBnF,QAAA,MAAM,uBAAuB,+BAwFK,CAAC;AAEnC,eAAe,uBAAuB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { __assign, __rest } from "tslib";
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- import React, { useImperativeHandle, useRef } from 'react';
4
+ import React, { useImperativeHandle, useRef, useState } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { getBaseProps } from '../internal/base-component';
7
7
  import { InternalButton } from '../button/internal';
@@ -12,11 +12,14 @@ import { useContainerBreakpoints } from '../internal/hooks/container-queries';
12
12
  import InternalBox from '../box/internal';
13
13
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
14
14
  import { useUniqueId } from '../internal/hooks/use-unique-id';
15
+ import { usePrevious } from '../internal/hooks/use-previous';
16
+ import LiveRegion from '../internal/components/live-region';
15
17
  var InternalAttributeEditor = React.forwardRef(function (_a, ref) {
16
18
  var additionalInfo = _a.additionalInfo, disableAddButton = _a.disableAddButton, definition = _a.definition, items = _a.items, _b = _a.isItemRemovable, isItemRemovable = _b === void 0 ? function () { return true; } : _b, empty = _a.empty, addButtonText = _a.addButtonText, removeButtonText = _a.removeButtonText, i18nStrings = _a.i18nStrings, onAddButtonClick = _a.onAddButtonClick, onRemoveButtonClick = _a.onRemoveButtonClick, _c = _a.__internalRootRef, __internalRootRef = _c === void 0 ? null : _c, props = __rest(_a, ["additionalInfo", "disableAddButton", "definition", "items", "isItemRemovable", "empty", "addButtonText", "removeButtonText", "i18nStrings", "onAddButtonClick", "onRemoveButtonClick", "__internalRootRef"]);
17
19
  var _d = useContainerBreakpoints(['default', 'xxs', 'xs']), breakpoint = _d[0], breakpointRef = _d[1];
18
20
  var removeButtonRefs = useRef([]);
19
21
  var wasNonEmpty = useRef(false);
22
+ var _e = useState(''), removalAnnouncement = _e[0], setRemovalAnnouncement = _e[1];
20
23
  var baseProps = getBaseProps(props);
21
24
  var isEmpty = items && items.length === 0;
22
25
  wasNonEmpty.current = wasNonEmpty.current || !isEmpty;
@@ -29,12 +32,24 @@ var InternalAttributeEditor = React.forwardRef(function (_a, ref) {
29
32
  var mergedRef = useMergeRefs(breakpointRef, __internalRootRef);
30
33
  var additionalInfoId = useUniqueId('attribute-editor-info');
31
34
  var infoAriaDescribedBy = additionalInfo ? additionalInfoId : undefined;
35
+ var prevItemsLength = usePrevious(items.length);
36
+ React.useEffect(function () {
37
+ if (prevItemsLength && prevItemsLength > items.length && (i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.itemRemovedAriaLive)) {
38
+ setRemovalAnnouncement(i18nStrings.itemRemovedAriaLive);
39
+ }
40
+ else {
41
+ setRemovalAnnouncement('');
42
+ }
43
+ // we only want to announce when the number of items decreases (i.e. when an item is removed)
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45
+ }, [items, i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.itemRemovedAriaLive]);
32
46
  return (React.createElement("div", __assign({}, baseProps, { ref: mergedRef, className: clsx(baseProps.className, styles.root) }),
33
47
  React.createElement(InternalBox, { margin: { bottom: 'l' } },
34
48
  isEmpty && React.createElement("div", { className: clsx(styles.empty, wasNonEmpty.current && styles['empty-appear']) }, empty),
35
49
  items.map(function (item, index) { return (React.createElement(Row, { key: index, index: index, breakpoint: breakpoint, item: item, definition: definition, i18nStrings: i18nStrings, removable: isItemRemovable(item), removeButtonText: removeButtonText, removeButtonRefs: removeButtonRefs.current, onRemoveButtonClick: onRemoveButtonClick })); })),
36
50
  React.createElement(InternalButton, { className: styles['add-button'], disabled: disableAddButton, onClick: onAddButtonClick, formAction: "none", __nativeAttributes: { 'aria-describedby': infoAriaDescribedBy } }, addButtonText),
37
- additionalInfo && React.createElement(AdditionalInfo, { id: infoAriaDescribedBy }, additionalInfo)));
51
+ React.createElement(LiveRegion, { "data-testid": "removal-announcement", delay: 5, key: items.length }, removalAnnouncement),
52
+ !!additionalInfo && React.createElement(AdditionalInfo, { id: infoAriaDescribedBy }, additionalInfo)));
38
53
  });
39
54
  export default InternalAttributeEditor;
40
55
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/attribute-editor/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAI9D,IAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CAC9C,UACE,EAckC,EAClC,GAAwC;IAdtC,IAAA,cAAc,oBAAA,EACd,gBAAgB,sBAAA,EAChB,UAAU,gBAAA,EACV,KAAK,WAAA,EACL,uBAA4B,EAA5B,eAAe,mBAAG,cAAM,OAAA,IAAI,EAAJ,CAAI,KAAA,EAC5B,KAAK,WA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AAM,EAAE,GAAG,EAAE;YACjC,OAAO,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,OAAO,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,IAAG,KAAK,CAAO;YAC3G,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAC1B,oBAAC,GAAG,IACF,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,EAC1C,mBAAmB,EAAE,mBAAmB,GACxC,CACH,EAb2B,CAa3B,CAAC,CACU;QACd,oBAAC,cAAc,IACb,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAC/B,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAC,MAAM,EACjB,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,IAE9D,aAAa,CACC;QAChB,cAAc,IAAI,oBAAC,cAAc,IAAC,EAAE,EAAE,mBAAmB,IAAG,cAAc,CAAkB,CACzF,CACP,CAAC;AACJ,CAAC,CAC+B,CAAC;AAEnC,eAAe,uBAAuB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\n\nimport { AttributeEditorForwardRefType, AttributeEditorProps } from './interfaces';\nimport { AdditionalInfo } from './additional-info';\nimport { Row } from './row';\n\nimport styles from './styles.css.js';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport InternalBox from '../box/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { SomeRequired } from '../internal/types';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\n\ntype InternalAttributeEditorProps<T> = SomeRequired<AttributeEditorProps<T>, 'items'> & InternalBaseComponentProps;\n\nconst InternalAttributeEditor = React.forwardRef(\n <T,>(\n {\n additionalInfo,\n disableAddButton,\n definition,\n items,\n isItemRemovable = () => true,\n empty,\n addButtonText,\n removeButtonText,\n i18nStrings,\n onAddButtonClick,\n onRemoveButtonClick,\n __internalRootRef = null,\n ...props\n }: InternalAttributeEditorProps<T>,\n ref: React.Ref<AttributeEditorProps.Ref>\n ) => {\n const [breakpoint, breakpointRef] = useContainerBreakpoints(['default', 'xxs', 'xs']);\n const removeButtonRefs = useRef<Array<ButtonProps.Ref | undefined>>([]);\n const wasNonEmpty = useRef<boolean>(false);\n\n const baseProps = getBaseProps(props);\n const isEmpty = items && items.length === 0;\n\n wasNonEmpty.current = wasNonEmpty.current || !isEmpty;\n\n useImperativeHandle(ref, () => ({\n focusRemoveButton(rowIndex: number) {\n removeButtonRefs.current[rowIndex]?.focus();\n },\n }));\n\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const additionalInfoId = useUniqueId('attribute-editor-info');\n const infoAriaDescribedBy = additionalInfo ? additionalInfoId : undefined;\n\n return (\n <div {...baseProps} ref={mergedRef} className={clsx(baseProps.className, styles.root)}>\n <InternalBox margin={{ bottom: 'l' }}>\n {isEmpty && <div className={clsx(styles.empty, wasNonEmpty.current && styles['empty-appear'])}>{empty}</div>}\n {items.map((item, index) => (\n <Row\n key={index}\n index={index}\n breakpoint={breakpoint}\n item={item}\n definition={definition}\n i18nStrings={i18nStrings}\n removable={isItemRemovable(item)}\n removeButtonText={removeButtonText}\n removeButtonRefs={removeButtonRefs.current}\n onRemoveButtonClick={onRemoveButtonClick}\n />\n ))}\n </InternalBox>\n <InternalButton\n className={styles['add-button']}\n disabled={disableAddButton}\n onClick={onAddButtonClick}\n formAction=\"none\"\n __nativeAttributes={{ 'aria-describedby': infoAriaDescribedBy }}\n >\n {addButtonText}\n </InternalButton>\n {additionalInfo && <AdditionalInfo id={infoAriaDescribedBy}>{additionalInfo}</AdditionalInfo>}\n </div>\n );\n }\n) as AttributeEditorForwardRefType;\n\nexport default InternalAttributeEditor;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/attribute-editor/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAI5D,IAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CAC9C,UACE,EAckC,EAClC,GAAwC;IAdtC,IAAA,cAAc,oBAAA,EACd,gBAAgB,sBAAA,EAChB,UAAU,gBAAA,EACV,KAAK,WAA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b,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAC/B,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAC,MAAM,EACjB,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,IAE9D,aAAa,CACC;QACjB,oBAAC,UAAU,mBAAa,sBAAsB,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,MAAM,IACvE,mBAAmB,CACT;QACZ,CAAC,CAAC,cAAc,IAAI,oBAAC,cAAc,IAAC,EAAE,EAAE,mBAAmB,IAAG,cAAc,CAAkB,CAC3F,CACP,CAAC;AACJ,CAAC,CAC+B,CAAC;AAEnC,eAAe,uBAAuB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\n\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\n\nimport { AttributeEditorForwardRefType, AttributeEditorProps } from './interfaces';\nimport { AdditionalInfo } from './additional-info';\nimport { Row } from './row';\n\nimport styles from './styles.css.js';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport InternalBox from '../box/internal';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { SomeRequired } from '../internal/types';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { usePrevious } from '../internal/hooks/use-previous';\nimport LiveRegion from '../internal/components/live-region';\n\ntype InternalAttributeEditorProps<T> = SomeRequired<AttributeEditorProps<T>, 'items'> & InternalBaseComponentProps;\n\nconst InternalAttributeEditor = React.forwardRef(\n <T,>(\n {\n additionalInfo,\n disableAddButton,\n definition,\n items,\n isItemRemovable = () => true,\n empty,\n addButtonText,\n removeButtonText,\n i18nStrings,\n onAddButtonClick,\n onRemoveButtonClick,\n __internalRootRef = null,\n ...props\n }: InternalAttributeEditorProps<T>,\n ref: React.Ref<AttributeEditorProps.Ref>\n ) => {\n const [breakpoint, breakpointRef] = useContainerBreakpoints(['default', 'xxs', 'xs']);\n const removeButtonRefs = useRef<Array<ButtonProps.Ref | undefined>>([]);\n const wasNonEmpty = useRef<boolean>(false);\n const [removalAnnouncement, setRemovalAnnouncement] = useState<string>('');\n\n const baseProps = getBaseProps(props);\n const isEmpty = items && items.length === 0;\n\n wasNonEmpty.current = wasNonEmpty.current || !isEmpty;\n\n useImperativeHandle(ref, () => ({\n focusRemoveButton(rowIndex: number) {\n removeButtonRefs.current[rowIndex]?.focus();\n },\n }));\n\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const additionalInfoId = useUniqueId('attribute-editor-info');\n const infoAriaDescribedBy = additionalInfo ? additionalInfoId : undefined;\n\n const prevItemsLength = usePrevious(items.length);\n\n React.useEffect(() => {\n if (prevItemsLength && prevItemsLength > items.length && i18nStrings?.itemRemovedAriaLive) {\n setRemovalAnnouncement(i18nStrings.itemRemovedAriaLive);\n } else {\n setRemovalAnnouncement('');\n }\n // we only want to announce when the number of items decreases (i.e. when an item is removed)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [items, i18nStrings?.itemRemovedAriaLive]);\n\n return (\n <div {...baseProps} ref={mergedRef} className={clsx(baseProps.className, styles.root)}>\n <InternalBox margin={{ bottom: 'l' }}>\n {isEmpty && <div className={clsx(styles.empty, wasNonEmpty.current && styles['empty-appear'])}>{empty}</div>}\n {items.map((item, index) => (\n <Row\n key={index}\n index={index}\n breakpoint={breakpoint}\n item={item}\n definition={definition}\n i18nStrings={i18nStrings}\n removable={isItemRemovable(item)}\n removeButtonText={removeButtonText}\n removeButtonRefs={removeButtonRefs.current}\n onRemoveButtonClick={onRemoveButtonClick}\n />\n ))}\n </InternalBox>\n\n <InternalButton\n className={styles['add-button']}\n disabled={disableAddButton}\n onClick={onAddButtonClick}\n formAction=\"none\"\n __nativeAttributes={{ 'aria-describedby': infoAriaDescribedBy }}\n >\n {addButtonText}\n </InternalButton>\n <LiveRegion data-testid=\"removal-announcement\" delay={5} key={items.length}>\n {removalAnnouncement}\n </LiveRegion>\n {!!additionalInfo && <AdditionalInfo id={infoAriaDescribedBy}>{additionalInfo}</AdditionalInfo>}\n </div>\n );\n }\n) as AttributeEditorForwardRefType;\n\nexport default InternalAttributeEditor;\n"]}
@@ -1,19 +1,19 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "empty-appear": "awsui_empty-appear_n4qlp_1xm04_93",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_1xm04_1",
6
- "root": "awsui_root_n4qlp_1xm04_119",
7
- "empty": "awsui_empty_n4qlp_1xm04_93",
8
- "row": "awsui_row_n4qlp_1xm04_139",
9
- "row-control": "awsui_row-control_n4qlp_1xm04_143",
10
- "field": "awsui_field_n4qlp_1xm04_147",
11
- "add-button": "awsui_add-button_n4qlp_1xm04_151",
12
- "remove-button": "awsui_remove-button_n4qlp_1xm04_155",
13
- "button-container-haslabel": "awsui_button-container-haslabel_n4qlp_1xm04_159",
14
- "button-container-nolabel": "awsui_button-container-nolabel_n4qlp_1xm04_163",
15
- "divider": "awsui_divider_n4qlp_1xm04_167",
16
- "additional-info": "awsui_additional-info_n4qlp_1xm04_171",
17
- "right-align": "awsui_right-align_n4qlp_1xm04_217"
4
+ "empty-appear": "awsui_empty-appear_n4qlp_roecl_93",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_n4qlp_roecl_1",
6
+ "root": "awsui_root_n4qlp_roecl_119",
7
+ "empty": "awsui_empty_n4qlp_roecl_93",
8
+ "row": "awsui_row_n4qlp_roecl_139",
9
+ "row-control": "awsui_row-control_n4qlp_roecl_143",
10
+ "field": "awsui_field_n4qlp_roecl_147",
11
+ "add-button": "awsui_add-button_n4qlp_roecl_151",
12
+ "remove-button": "awsui_remove-button_n4qlp_roecl_155",
13
+ "button-container-haslabel": "awsui_button-container-haslabel_n4qlp_roecl_159",
14
+ "button-container-nolabel": "awsui_button-container-nolabel_n4qlp_roecl_163",
15
+ "divider": "awsui_divider_n4qlp_roecl_167",
16
+ "additional-info": "awsui_additional-info_n4qlp_roecl_171",
17
+ "right-align": "awsui_right-align_n4qlp_roecl_217"
18
18
  };
19
19