@cloudscape-design/components 3.0.1412 → 3.0.1414

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 (383) hide show
  1. package/alert/styles.css.js +27 -27
  2. package/alert/styles.scoped.css +49 -49
  3. package/alert/styles.selectors.js +27 -27
  4. package/annotation-context/annotation/styles.css.js +13 -13
  5. package/annotation-context/annotation/styles.scoped.css +21 -21
  6. package/annotation-context/annotation/styles.selectors.js +13 -13
  7. package/app-layout/notifications/styles.css.js +3 -3
  8. package/app-layout/notifications/styles.scoped.css +7 -7
  9. package/app-layout/notifications/styles.selectors.js +3 -3
  10. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  11. package/app-layout/visual-refresh/mobile-toolbar.js +1 -1
  12. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  13. package/app-layout/visual-refresh/styles.css.js +86 -86
  14. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  15. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  16. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  17. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  18. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  19. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  20. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
  21. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  22. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  23. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
  24. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  25. package/attribute-editor/styles.css.js +15 -15
  26. package/attribute-editor/styles.scoped.css +28 -28
  27. package/attribute-editor/styles.selectors.js +15 -15
  28. package/breadcrumb-group/item/styles.css.js +7 -7
  29. package/breadcrumb-group/item/styles.scoped.css +28 -28
  30. package/breadcrumb-group/item/styles.selectors.js +7 -7
  31. package/button/styles.css.js +24 -24
  32. package/button/styles.scoped.css +328 -328
  33. package/button/styles.selectors.js +24 -24
  34. package/button-dropdown/item-element/styles.css.js +21 -21
  35. package/button-dropdown/item-element/styles.scoped.css +37 -37
  36. package/button-dropdown/item-element/styles.selectors.js +21 -21
  37. package/cards/styles.css.js +39 -39
  38. package/cards/styles.scoped.css +41 -41
  39. package/cards/styles.selectors.js +39 -39
  40. package/checkbox/internal.d.ts +1 -1
  41. package/checkbox/internal.d.ts.map +1 -1
  42. package/checkbox/internal.js.map +1 -1
  43. package/checkbox/styles.css.js +3 -3
  44. package/checkbox/styles.scoped.css +10 -10
  45. package/checkbox/styles.selectors.js +3 -3
  46. package/container/styles.css.js +33 -33
  47. package/container/styles.scoped.css +106 -106
  48. package/container/styles.selectors.js +33 -33
  49. package/content-layout/interfaces.d.ts +4 -2
  50. package/content-layout/interfaces.d.ts.map +1 -1
  51. package/content-layout/interfaces.js.map +1 -1
  52. package/content-layout/styles.css.js +14 -14
  53. package/content-layout/styles.scoped.css +27 -27
  54. package/content-layout/styles.selectors.js +14 -14
  55. package/control-group/styles.css.js +27 -27
  56. package/control-group/styles.scoped.css +28 -28
  57. package/control-group/styles.selectors.js +27 -27
  58. package/dropdown/styles.css.js +20 -20
  59. package/dropdown/styles.scoped.css +45 -45
  60. package/dropdown/styles.selectors.js +20 -20
  61. package/expandable-section/expandable-section-header.js +1 -1
  62. package/expandable-section/expandable-section-header.js.map +1 -1
  63. package/file-token-group/styles.css.js +23 -23
  64. package/file-token-group/styles.scoped.css +36 -36
  65. package/file-token-group/styles.selectors.js +23 -23
  66. package/flashbar/styles.css.js +50 -50
  67. package/flashbar/styles.scoped.css +182 -182
  68. package/flashbar/styles.selectors.js +50 -50
  69. package/header/interfaces.d.ts +4 -0
  70. package/header/interfaces.d.ts.map +1 -1
  71. package/header/interfaces.js.map +1 -1
  72. package/header/internal.d.ts +1 -6
  73. package/header/internal.d.ts.map +1 -1
  74. package/header/internal.js +2 -2
  75. package/header/internal.js.map +1 -1
  76. package/header/styles.css.js +36 -36
  77. package/header/styles.scoped.css +55 -55
  78. package/header/styles.selectors.js +36 -36
  79. package/help-panel/styles.css.js +6 -6
  80. package/help-panel/styles.scoped.css +72 -72
  81. package/help-panel/styles.selectors.js +6 -6
  82. package/i18n/messages/all.all.js +1 -1
  83. package/i18n/messages/all.all.json +1 -1
  84. package/i18n/messages/all.de.js +1 -1
  85. package/i18n/messages/all.de.json +1 -1
  86. package/i18n/messages/all.en-GB.js +1 -1
  87. package/i18n/messages/all.en-GB.json +1 -1
  88. package/i18n/messages/all.en.js +1 -1
  89. package/i18n/messages/all.en.json +1 -1
  90. package/i18n/messages/all.es.js +1 -1
  91. package/i18n/messages/all.es.json +1 -1
  92. package/i18n/messages/all.fr.js +1 -1
  93. package/i18n/messages/all.fr.json +1 -1
  94. package/i18n/messages/all.id.js +1 -1
  95. package/i18n/messages/all.id.json +1 -1
  96. package/i18n/messages/all.it.js +1 -1
  97. package/i18n/messages/all.it.json +1 -1
  98. package/i18n/messages/all.ja.js +1 -1
  99. package/i18n/messages/all.ja.json +1 -1
  100. package/i18n/messages/all.ko.js +1 -1
  101. package/i18n/messages/all.ko.json +1 -1
  102. package/i18n/messages/all.pt-BR.js +1 -1
  103. package/i18n/messages/all.pt-BR.json +1 -1
  104. package/i18n/messages/all.tr.js +1 -1
  105. package/i18n/messages/all.tr.json +1 -1
  106. package/i18n/messages/all.zh-CN.js +1 -1
  107. package/i18n/messages/all.zh-CN.json +1 -1
  108. package/i18n/messages/all.zh-TW.js +1 -1
  109. package/i18n/messages/all.zh-TW.json +1 -1
  110. package/i18n/messages-types.d.ts +3 -0
  111. package/i18n/messages-types.d.ts.map +1 -1
  112. package/i18n/messages-types.js.map +1 -1
  113. package/index.d.ts +1 -0
  114. package/index.d.ts.map +1 -1
  115. package/index.js +1 -0
  116. package/index.js.map +1 -1
  117. package/input/styles.css.js +45 -45
  118. package/input/styles.scoped.css +145 -145
  119. package/input/styles.selectors.js +45 -45
  120. package/internal/base-component/styles.scoped.css +1 -1
  121. package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  122. package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  123. package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  124. package/internal/components/focus-lock/utils.d.ts +2 -0
  125. package/internal/components/focus-lock/utils.d.ts.map +1 -1
  126. package/internal/components/focus-lock/utils.js +5 -1
  127. package/internal/components/focus-lock/utils.js.map +1 -1
  128. package/internal/components/listbox/parts/item.d.ts +2 -0
  129. package/internal/components/listbox/parts/item.d.ts.map +1 -1
  130. package/internal/components/listbox/parts/item.js +3 -3
  131. package/internal/components/listbox/parts/item.js.map +1 -1
  132. package/internal/components/listbox/parts/plain-list.d.ts +6 -0
  133. package/internal/components/listbox/parts/plain-list.d.ts.map +1 -1
  134. package/internal/components/listbox/parts/plain-list.js +5 -4
  135. package/internal/components/listbox/parts/plain-list.js.map +1 -1
  136. package/internal/components/listbox/parts/scroll-to-index.d.ts +11 -0
  137. package/internal/components/listbox/parts/scroll-to-index.d.ts.map +1 -1
  138. package/internal/components/listbox/parts/scroll-to-index.js +16 -0
  139. package/internal/components/listbox/parts/scroll-to-index.js.map +1 -1
  140. package/internal/components/listbox/use-listbox.d.ts +2 -2
  141. package/internal/components/listbox/use-listbox.d.ts.map +1 -1
  142. package/internal/components/listbox/use-listbox.js.map +1 -1
  143. package/internal/components/option/styles.css.js +19 -19
  144. package/internal/components/option/styles.scoped.css +36 -36
  145. package/internal/components/option/styles.selectors.js +19 -19
  146. package/internal/components/options-list/index.d.ts +4 -1
  147. package/internal/components/options-list/index.d.ts.map +1 -1
  148. package/internal/components/options-list/index.js +1 -1
  149. package/internal/components/options-list/index.js.map +1 -1
  150. package/internal/components/options-list/utils/use-keyboard.d.ts +2 -1
  151. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  152. package/internal/components/options-list/utils/use-keyboard.js +4 -2
  153. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  154. package/internal/components/radio-button/styles.css.js +7 -7
  155. package/internal/components/radio-button/styles.scoped.css +17 -17
  156. package/internal/components/radio-button/styles.selectors.js +7 -7
  157. package/internal/components/selectable-item/index.d.ts +1 -0
  158. package/internal/components/selectable-item/index.d.ts.map +1 -1
  159. package/internal/components/selectable-item/index.js +2 -1
  160. package/internal/components/selectable-item/index.js.map +1 -1
  161. package/internal/components/selectable-item/interfaces.d.ts +1 -0
  162. package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  163. package/internal/components/selectable-item/interfaces.js.map +1 -1
  164. package/internal/components/selectable-item/styles.css.js +23 -22
  165. package/internal/components/selectable-item/styles.scoped.css +60 -57
  166. package/internal/components/selectable-item/styles.selectors.js +23 -22
  167. package/internal/components/sticky-header/use-untabbable-descendants.d.ts +2 -0
  168. package/internal/components/sticky-header/use-untabbable-descendants.d.ts.map +1 -0
  169. package/internal/components/sticky-header/use-untabbable-descendants.js +16 -0
  170. package/internal/components/sticky-header/use-untabbable-descendants.js.map +1 -0
  171. package/internal/components/token-list/styles.css.js +10 -10
  172. package/internal/components/token-list/styles.scoped.css +25 -25
  173. package/internal/components/token-list/styles.selectors.js +10 -10
  174. package/internal/environment.js +2 -2
  175. package/internal/environment.json +2 -2
  176. package/internal/generated/custom-css-properties/index.d.ts +1 -0
  177. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  178. package/internal/generated/custom-css-properties/index.js +178 -177
  179. package/internal/generated/custom-css-properties/index.js.map +1 -1
  180. package/internal/manifest.json +1 -1
  181. package/item-card/styles.css.js +14 -14
  182. package/item-card/styles.scoped.css +73 -73
  183. package/item-card/styles.selectors.js +14 -14
  184. package/link/styles.css.js +21 -21
  185. package/link/styles.scoped.css +104 -104
  186. package/link/styles.selectors.js +21 -21
  187. package/manifest.json +2 -2
  188. package/modal/styles.css.js +32 -32
  189. package/modal/styles.scoped.css +49 -49
  190. package/modal/styles.selectors.js +32 -32
  191. package/multiselect/use-multiselect.d.ts +1 -1
  192. package/option-list/index.d.ts +5 -0
  193. package/option-list/index.d.ts.map +1 -0
  194. package/option-list/index.js +21 -0
  195. package/option-list/index.js.map +1 -0
  196. package/option-list/interfaces.d.ts +131 -0
  197. package/option-list/interfaces.d.ts.map +1 -0
  198. package/option-list/interfaces.js +2 -0
  199. package/option-list/interfaces.js.map +1 -0
  200. package/option-list/internal.d.ts +5 -0
  201. package/option-list/internal.d.ts.map +1 -0
  202. package/option-list/internal.js +138 -0
  203. package/option-list/internal.js.map +1 -0
  204. package/option-list/styles.css.js +6 -0
  205. package/option-list/styles.scoped.css +40 -0
  206. package/option-list/styles.selectors.js +7 -0
  207. package/option-list/test-classes/styles.css.js +8 -0
  208. package/option-list/test-classes/styles.scoped.css +9 -0
  209. package/option-list/test-classes/styles.selectors.js +9 -0
  210. package/option-list/use-option-list.d.ts +36 -0
  211. package/option-list/use-option-list.d.ts.map +1 -0
  212. package/option-list/use-option-list.js +69 -0
  213. package/option-list/use-option-list.js.map +1 -0
  214. package/package.json +4 -1
  215. package/popover/styles.css.js +58 -58
  216. package/popover/styles.scoped.css +94 -94
  217. package/popover/styles.selectors.js +58 -58
  218. package/progress-bar/styles.css.js +20 -20
  219. package/progress-bar/styles.scoped.css +59 -59
  220. package/progress-bar/styles.selectors.js +20 -20
  221. package/prompt-input/components/token-mode.d.ts +4 -0
  222. package/prompt-input/components/token-mode.d.ts.map +1 -1
  223. package/prompt-input/components/token-mode.js +2 -2
  224. package/prompt-input/components/token-mode.js.map +1 -1
  225. package/prompt-input/internal.d.ts +10 -1
  226. package/prompt-input/internal.d.ts.map +1 -1
  227. package/prompt-input/internal.js +35 -26
  228. package/prompt-input/internal.js.map +1 -1
  229. package/prompt-input/styles.css.js +26 -26
  230. package/prompt-input/styles.scoped.css +136 -107
  231. package/prompt-input/styles.selectors.js +26 -26
  232. package/prompt-input/tokens/use-token-mode.d.ts +4 -0
  233. package/prompt-input/tokens/use-token-mode.d.ts.map +1 -1
  234. package/prompt-input/tokens/use-token-mode.js +3 -3
  235. package/prompt-input/tokens/use-token-mode.js.map +1 -1
  236. package/property-filter/interfaces.d.ts +2 -0
  237. package/property-filter/interfaces.d.ts.map +1 -1
  238. package/property-filter/interfaces.js.map +1 -1
  239. package/property-filter/token-editor-inputs.d.ts.map +1 -1
  240. package/property-filter/token-editor-inputs.js +3 -3
  241. package/property-filter/token-editor-inputs.js.map +1 -1
  242. package/segmented-control/styles.css.js +31 -31
  243. package/segmented-control/styles.scoped.css +81 -81
  244. package/segmented-control/styles.selectors.js +31 -31
  245. package/select/parts/styles.css.js +22 -22
  246. package/select/parts/styles.scoped.css +25 -25
  247. package/select/parts/styles.selectors.js +22 -22
  248. package/side-navigation/styles.css.js +65 -65
  249. package/side-navigation/styles.scoped.css +114 -114
  250. package/side-navigation/styles.selectors.js +65 -65
  251. package/slider/styles.css.js +26 -26
  252. package/slider/styles.scoped.css +167 -167
  253. package/slider/styles.selectors.js +26 -26
  254. package/spinner/styles.css.js +14 -14
  255. package/spinner/styles.scoped.css +40 -40
  256. package/spinner/styles.selectors.js +14 -14
  257. package/styling/prompt-input.scss +76 -0
  258. package/styling/table.scss +102 -0
  259. package/styling/tabs.scss +128 -0
  260. package/table/body-cell/styles.css.js +47 -47
  261. package/table/body-cell/styles.scoped.css +426 -418
  262. package/table/body-cell/styles.selectors.js +47 -47
  263. package/table/body-cell/td-element.d.ts +1 -0
  264. package/table/body-cell/td-element.d.ts.map +1 -1
  265. package/table/body-cell/td-element.js +2 -2
  266. package/table/body-cell/td-element.js.map +1 -1
  267. package/table/clear-sort.d.ts +3 -1
  268. package/table/clear-sort.d.ts.map +1 -1
  269. package/table/clear-sort.js +2 -2
  270. package/table/clear-sort.js.map +1 -1
  271. package/table/header-cell/common-props.d.ts +2 -0
  272. package/table/header-cell/common-props.d.ts.map +1 -1
  273. package/table/header-cell/common-props.js.map +1 -1
  274. package/table/header-cell/group-header-cell.d.ts +2 -1
  275. package/table/header-cell/group-header-cell.d.ts.map +1 -1
  276. package/table/header-cell/group-header-cell.js +3 -2
  277. package/table/header-cell/group-header-cell.js.map +1 -1
  278. package/table/header-cell/index.d.ts +2 -1
  279. package/table/header-cell/index.d.ts.map +1 -1
  280. package/table/header-cell/index.js +12 -5
  281. package/table/header-cell/index.js.map +1 -1
  282. package/table/header-cell/sort-menu.d.ts +4 -1
  283. package/table/header-cell/sort-menu.d.ts.map +1 -1
  284. package/table/header-cell/sort-menu.js +2 -2
  285. package/table/header-cell/sort-menu.js.map +1 -1
  286. package/table/header-cell/styles.css.js +39 -39
  287. package/table/header-cell/styles.scoped.css +140 -125
  288. package/table/header-cell/styles.selectors.js +39 -39
  289. package/table/header-cell/th-element.d.ts +2 -0
  290. package/table/header-cell/th-element.d.ts.map +1 -1
  291. package/table/header-cell/th-element.js +2 -2
  292. package/table/header-cell/th-element.js.map +1 -1
  293. package/table/internal.d.ts.map +1 -1
  294. package/table/internal.js +20 -7
  295. package/table/internal.js.map +1 -1
  296. package/table/resizer/index.d.ts.map +1 -1
  297. package/table/resizer/index.js +1 -1
  298. package/table/resizer/index.js.map +1 -1
  299. package/table/resizer/styles.css.js +17 -17
  300. package/table/resizer/styles.scoped.css +39 -35
  301. package/table/resizer/styles.selectors.js +17 -17
  302. package/table/selection/selection-cell.d.ts +5 -0
  303. package/table/selection/selection-cell.d.ts.map +1 -1
  304. package/table/selection/selection-cell.js +6 -5
  305. package/table/selection/selection-cell.js.map +1 -1
  306. package/table/selection/selection-control.d.ts +3 -0
  307. package/table/selection/selection-control.d.ts.map +1 -1
  308. package/table/selection/selection-control.js +2 -2
  309. package/table/selection/selection-control.js.map +1 -1
  310. package/table/style-api.d.ts +41 -0
  311. package/table/style-api.d.ts.map +1 -0
  312. package/table/style-api.js +4 -0
  313. package/table/style-api.js.map +1 -0
  314. package/table/styles.css.js +37 -37
  315. package/table/styles.scoped.css +119 -46
  316. package/table/styles.selectors.js +37 -37
  317. package/table/thead.d.ts +2 -0
  318. package/table/thead.d.ts.map +1 -1
  319. package/table/thead.js +2 -1
  320. package/table/thead.js.map +1 -1
  321. package/table-root/index.js +1 -1
  322. package/table-root/index.js.map +1 -1
  323. package/table-root/interfaces.d.ts +15 -1
  324. package/table-root/interfaces.d.ts.map +1 -1
  325. package/table-root/interfaces.js.map +1 -1
  326. package/table-root/internal.d.ts +2 -0
  327. package/table-root/internal.d.ts.map +1 -1
  328. package/table-root/internal.js +23 -11
  329. package/table-root/internal.js.map +1 -1
  330. package/table-root/sticky-header-slot.d.ts +24 -0
  331. package/table-root/sticky-header-slot.d.ts.map +1 -0
  332. package/table-root/sticky-header-slot.js +13 -0
  333. package/table-root/sticky-header-slot.js.map +1 -0
  334. package/table-root/styles.css.js +10 -5
  335. package/table-root/styles.scoped.css +52 -7
  336. package/table-root/styles.selectors.js +10 -5
  337. package/table-root/use-sticky-header.d.ts +33 -0
  338. package/table-root/use-sticky-header.d.ts.map +1 -0
  339. package/table-root/use-sticky-header.js +141 -0
  340. package/table-root/use-sticky-header.js.map +1 -0
  341. package/tabs/index.d.ts.map +1 -1
  342. package/tabs/index.js +3 -2
  343. package/tabs/index.js.map +1 -1
  344. package/tabs/styles.css.js +30 -30
  345. package/tabs/styles.scoped.css +137 -81
  346. package/tabs/styles.selectors.js +30 -30
  347. package/tabs/tab-header-bar.d.ts +12 -1
  348. package/tabs/tab-header-bar.d.ts.map +1 -1
  349. package/tabs/tab-header-bar.js +14 -7
  350. package/tabs/tab-header-bar.js.map +1 -1
  351. package/tag-editor/styles.css.js +3 -3
  352. package/tag-editor/styles.scoped.css +13 -13
  353. package/tag-editor/styles.selectors.js +3 -3
  354. package/test-utils/dom/header/index.d.ts +1 -0
  355. package/test-utils/dom/header/index.js +3 -0
  356. package/test-utils/dom/header/index.js.map +1 -1
  357. package/test-utils/dom/index.d.ts +28 -0
  358. package/test-utils/dom/index.js +21 -2
  359. package/test-utils/dom/index.js.map +1 -1
  360. package/test-utils/dom/option-list/index.d.ts +69 -0
  361. package/test-utils/dom/option-list/index.js +132 -0
  362. package/test-utils/dom/option-list/index.js.map +1 -0
  363. package/test-utils/selectors/header/index.d.ts +1 -0
  364. package/test-utils/selectors/header/index.js +3 -0
  365. package/test-utils/selectors/header/index.js.map +1 -1
  366. package/test-utils/selectors/index.d.ts +18 -0
  367. package/test-utils/selectors/index.js +16 -2
  368. package/test-utils/selectors/index.js.map +1 -1
  369. package/test-utils/selectors/option-list/index.d.ts +66 -0
  370. package/test-utils/selectors/option-list/index.js +108 -0
  371. package/test-utils/selectors/option-list/index.js.map +1 -0
  372. package/text-content/styles.css.js +1 -1
  373. package/text-content/styles.scoped.css +66 -66
  374. package/text-content/styles.selectors.js +1 -1
  375. package/textarea/styles.css.js +9 -9
  376. package/textarea/styles.scoped.css +51 -51
  377. package/textarea/styles.selectors.js +9 -9
  378. package/toggle/styles.css.js +10 -10
  379. package/toggle/styles.scoped.css +25 -25
  380. package/toggle/styles.selectors.js +10 -10
  381. package/token/styles.css.js +14 -14
  382. package/token/styles.scoped.css +57 -57
  383. package/token/styles.selectors.js +14 -14
@@ -14,7 +14,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
14
14
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
15
15
  SPDX-License-Identifier: Apache-2.0
16
16
  */
17
- @keyframes awsui_modal-slide-up_1d2i7_14utw_1 {
17
+ @keyframes awsui_modal-slide-up_1d2i7_fo99r_1 {
18
18
  0% {
19
19
  transform: translate(0, 10px);
20
20
  }
@@ -22,12 +22,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
22
22
  transform: translate(0, 0);
23
23
  }
24
24
  }
25
- .awsui_dialog_1d2i7_14utw_25:not(#\9) {
26
- animation: awsui_modal-slide-up_1d2i7_14utw_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_14utw_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out;
25
+ .awsui_dialog_1d2i7_fo99r_25:not(#\9) {
26
+ animation: awsui_modal-slide-up_1d2i7_fo99r_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 var(--motion-duration-slow-c82sxa, 180ms) ease-out;
27
27
  animation-delay: var(--motion-duration-fast-0xpm7h, 90ms);
28
28
  animation-fill-mode: both;
29
29
  }
30
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_14utw_1 {
30
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 {
31
31
  from {
32
32
  opacity: 0;
33
33
  }
@@ -36,22 +36,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
36
36
  }
37
37
  }
38
38
  @media (prefers-reduced-motion: reduce) {
39
- .awsui_dialog_1d2i7_14utw_25:not(#\9) {
39
+ .awsui_dialog_1d2i7_fo99r_25:not(#\9) {
40
40
  animation: none;
41
41
  transition: none;
42
42
  }
43
43
  }
44
- .awsui-motion-disabled .awsui_dialog_1d2i7_14utw_25:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_14utw_25:not(#\9) {
44
+ .awsui-motion-disabled .awsui_dialog_1d2i7_fo99r_25:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_fo99r_25:not(#\9) {
45
45
  animation: none;
46
46
  transition: none;
47
47
  }
48
- .awsui_dialog_1d2i7_14utw_25.awsui_refresh_1d2i7_14utw_48:not(#\9) {
49
- animation: awsui_awsui-motion-scale-popup_1d2i7_14utw_1, awsui_awsui-motion-fade-in-0_1d2i7_14utw_1;
48
+ .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
49
+ animation: awsui_awsui-motion-scale-popup_1d2i7_fo99r_1, awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1;
50
50
  animation-duration: var(--motion-duration-refresh-only-fast-hi50lq, 115ms);
51
51
  animation-timing-function: var(--motion-easing-refresh-only-a-puvjff, cubic-bezier(0, 0, 0, 1));
52
52
  animation-fill-mode: both;
53
53
  }
54
- @keyframes awsui_awsui-motion-fade-in-0_1d2i7_14utw_1 {
54
+ @keyframes awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1 {
55
55
  from {
56
56
  opacity: 0;
57
57
  }
@@ -59,7 +59,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
59
59
  opacity: 1;
60
60
  }
61
61
  }
62
- @keyframes awsui_awsui-motion-scale-popup_1d2i7_14utw_1 {
62
+ @keyframes awsui_awsui-motion-scale-popup_1d2i7_fo99r_1 {
63
63
  0% {
64
64
  transform: scale(0.95);
65
65
  }
@@ -68,21 +68,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
68
68
  }
69
69
  }
70
70
  @media (prefers-reduced-motion: reduce) {
71
- .awsui_dialog_1d2i7_14utw_25.awsui_refresh_1d2i7_14utw_48:not(#\9) {
71
+ .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
72
72
  animation: none;
73
73
  transition: none;
74
74
  }
75
75
  }
76
- .awsui-motion-disabled .awsui_dialog_1d2i7_14utw_25.awsui_refresh_1d2i7_14utw_48:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_14utw_25.awsui_refresh_1d2i7_14utw_48:not(#\9) {
76
+ .awsui-motion-disabled .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_fo99r_25.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
77
77
  animation: none;
78
78
  transition: none;
79
79
  }
80
80
 
81
- .awsui_root_1d2i7_14utw_81:not(#\9) {
82
- animation: awsui_awsui-motion-fade-in_1d2i7_14utw_1 var(--motion-duration-extra-slow-c5gw5h, 270ms) ease-out;
81
+ .awsui_root_1d2i7_fo99r_81:not(#\9) {
82
+ animation: awsui_awsui-motion-fade-in_1d2i7_fo99r_1 var(--motion-duration-extra-slow-c5gw5h, 270ms) ease-out;
83
83
  animation-fill-mode: both;
84
84
  }
85
- @keyframes awsui_awsui-motion-fade-in_1d2i7_14utw_1 {
85
+ @keyframes awsui_awsui-motion-fade-in_1d2i7_fo99r_1 {
86
86
  from {
87
87
  opacity: 0.2;
88
88
  }
@@ -91,30 +91,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
91
91
  }
92
92
  }
93
93
  @media (prefers-reduced-motion: reduce) {
94
- .awsui_root_1d2i7_14utw_81:not(#\9) {
94
+ .awsui_root_1d2i7_fo99r_81:not(#\9) {
95
95
  animation: none;
96
96
  transition: none;
97
97
  }
98
98
  }
99
- .awsui-motion-disabled .awsui_root_1d2i7_14utw_81:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_14utw_81:not(#\9) {
99
+ .awsui-motion-disabled .awsui_root_1d2i7_fo99r_81:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_fo99r_81:not(#\9) {
100
100
  animation: none;
101
101
  transition: none;
102
102
  }
103
- .awsui_root_1d2i7_14utw_81.awsui_refresh_1d2i7_14utw_48:not(#\9) {
103
+ .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
104
104
  animation-duration: var(--motion-duration-refresh-only-fast-hi50lq, 115ms);
105
105
  }
106
106
  @media (prefers-reduced-motion: reduce) {
107
- .awsui_root_1d2i7_14utw_81.awsui_refresh_1d2i7_14utw_48:not(#\9) {
107
+ .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
108
108
  animation: none;
109
109
  transition: none;
110
110
  }
111
111
  }
112
- .awsui-motion-disabled .awsui_root_1d2i7_14utw_81.awsui_refresh_1d2i7_14utw_48:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_14utw_81.awsui_refresh_1d2i7_14utw_48:not(#\9) {
112
+ .awsui-motion-disabled .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_fo99r_81.awsui_refresh_1d2i7_fo99r_48:not(#\9) {
113
113
  animation: none;
114
114
  transition: none;
115
115
  }
116
116
 
117
- .awsui_root_1d2i7_14utw_81:not(#\9) {
117
+ .awsui_root_1d2i7_fo99r_81:not(#\9) {
118
118
  border-collapse: separate;
119
119
  border-spacing: 0;
120
120
  box-sizing: border-box;
@@ -155,14 +155,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
155
155
  overflow: auto;
156
156
  cursor: pointer;
157
157
  }
158
- .awsui_root_1d2i7_14utw_81.awsui_hide-dismiss-button_1d2i7_14utw_158:not(#\9) {
158
+ .awsui_root_1d2i7_fo99r_81.awsui_hide-dismiss-button_1d2i7_fo99r_158:not(#\9) {
159
159
  cursor: default;
160
160
  }
161
- .awsui_root_1d2i7_14utw_81.awsui_hidden_1d2i7_14utw_161:not(#\9) {
161
+ .awsui_root_1d2i7_fo99r_81.awsui_hidden_1d2i7_fo99r_161:not(#\9) {
162
162
  display: none;
163
163
  }
164
164
 
165
- .awsui_focus-lock_1d2i7_14utw_165:not(#\9) {
165
+ .awsui_focus-lock_1d2i7_fo99r_165:not(#\9) {
166
166
  align-self: flex-start;
167
167
  margin-inline: auto;
168
168
  padding-block: var(--space-s-f4zmjb, 12px);
@@ -170,14 +170,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
170
170
  z-index: 5000;
171
171
  pointer-events: none;
172
172
  }
173
- .awsui_focus-lock_1d2i7_14utw_165.awsui_position-top_1d2i7_14utw_173:not(#\9) {
173
+ .awsui_focus-lock_1d2i7_fo99r_165.awsui_position-top_1d2i7_fo99r_173:not(#\9) {
174
174
  margin-block-start: 0;
175
175
  }
176
- .awsui_focus-lock_1d2i7_14utw_165.awsui_position-center_1d2i7_14utw_176:not(#\9) {
176
+ .awsui_focus-lock_1d2i7_fo99r_165.awsui_position-center_1d2i7_fo99r_176:not(#\9) {
177
177
  margin-block: auto;
178
178
  }
179
179
 
180
- .awsui_dialog_1d2i7_14utw_25:not(#\9) {
180
+ .awsui_dialog_1d2i7_fo99r_25:not(#\9) {
181
181
  position: static;
182
182
  inset-block-start: 0;
183
183
  transform: translate(0, 0);
@@ -187,35 +187,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
187
  z-index: 5000;
188
188
  pointer-events: all;
189
189
  }
190
- .awsui_dialog_1d2i7_14utw_25.awsui_small_1d2i7_14utw_190:not(#\9) {
190
+ .awsui_dialog_1d2i7_fo99r_25.awsui_small_1d2i7_fo99r_190:not(#\9) {
191
191
  max-inline-size: 320px;
192
192
  }
193
- .awsui_dialog_1d2i7_14utw_25.awsui_medium_1d2i7_14utw_193:not(#\9) {
193
+ .awsui_dialog_1d2i7_fo99r_25.awsui_medium_1d2i7_fo99r_193:not(#\9) {
194
194
  max-inline-size: 600px;
195
195
  }
196
- .awsui_dialog_1d2i7_14utw_25.awsui_large_1d2i7_14utw_196:not(#\9) {
196
+ .awsui_dialog_1d2i7_fo99r_25.awsui_large_1d2i7_fo99r_196:not(#\9) {
197
197
  max-inline-size: 820px;
198
198
  }
199
- .awsui_dialog_1d2i7_14utw_25.awsui_x-large_1d2i7_14utw_199:not(#\9) {
199
+ .awsui_dialog_1d2i7_fo99r_25.awsui_x-large_1d2i7_fo99r_199:not(#\9) {
200
200
  max-inline-size: 1024px;
201
201
  }
202
- .awsui_dialog_1d2i7_14utw_25.awsui_xx-large_1d2i7_14utw_202:not(#\9) {
202
+ .awsui_dialog_1d2i7_fo99r_25.awsui_xx-large_1d2i7_fo99r_202:not(#\9) {
203
203
  max-inline-size: 1280px;
204
204
  }
205
- .awsui_dialog_1d2i7_14utw_25.awsui_custom-width_1d2i7_14utw_205:not(#\9) {
206
- max-inline-size: var(--awsui-modal-custom-width-8i8exb);
205
+ .awsui_dialog_1d2i7_fo99r_25.awsui_custom-width_1d2i7_fo99r_205:not(#\9) {
206
+ max-inline-size: var(--awsui-modal-custom-width-6xj2gg);
207
207
  }
208
- .awsui_dialog_1d2i7_14utw_25.awsui_max_1d2i7_14utw_208.awsui_breakpoint-xs_1d2i7_14utw_208:not(#\9) {
208
+ .awsui_dialog_1d2i7_fo99r_25.awsui_max_1d2i7_fo99r_208.awsui_breakpoint-xs_1d2i7_fo99r_208:not(#\9) {
209
209
  max-inline-size: calc(100vw - (8 * 10px + var(--space-xxxl-0rzsa3, 40px)));
210
210
  margin-block: auto;
211
211
  margin-inline: auto;
212
212
  }
213
- .awsui_dialog_1d2i7_14utw_25.awsui_custom-height_1d2i7_14utw_213:not(#\9) {
214
- block-size: var(--awsui-modal-custom-height-8i8exb);
213
+ .awsui_dialog_1d2i7_fo99r_25.awsui_custom-height_1d2i7_fo99r_213:not(#\9) {
214
+ block-size: var(--awsui-modal-custom-height-6xj2gg);
215
215
  max-block-size: calc(100vh - 2 * var(--space-s-f4zmjb, 12px));
216
216
  }
217
217
 
218
- .awsui_container_1d2i7_14utw_218:not(#\9) {
218
+ .awsui_container_1d2i7_fo99r_218:not(#\9) {
219
219
  border-collapse: separate;
220
220
  border-spacing: 0;
221
221
  box-sizing: border-box;
@@ -255,27 +255,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
255
255
  border-end-end-radius: var(--border-radius-container-cjce5i, 16px);
256
256
  box-shadow: var(--shadow-modal-aotdcx, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
257
257
  }
258
- .awsui_container_1d2i7_14utw_218.awsui_custom-height-container_1d2i7_14utw_258:not(#\9) {
258
+ .awsui_container_1d2i7_fo99r_218.awsui_custom-height-container_1d2i7_fo99r_258:not(#\9) {
259
259
  display: flex;
260
260
  flex-direction: column;
261
261
  block-size: 100%;
262
262
  }
263
263
 
264
- .awsui_content_1d2i7_14utw_264:not(#\9) {
264
+ .awsui_content_1d2i7_fo99r_264:not(#\9) {
265
265
  padding-block-start: var(--space-container-content-top-wtzf3r, 4px);
266
266
  padding-block-end: var(--space-modal-content-bottom-3154al, 16px);
267
267
  padding-inline: var(--space-modal-horizontal-q3dvhz, 20px);
268
268
  }
269
- .awsui_content_1d2i7_14utw_264.awsui_no-paddings_1d2i7_14utw_269:not(#\9) {
269
+ .awsui_content_1d2i7_fo99r_264.awsui_no-paddings_1d2i7_fo99r_269:not(#\9) {
270
270
  padding-block: 0;
271
271
  padding-inline: 0;
272
272
  }
273
- .awsui_content_1d2i7_14utw_264.awsui_custom-height-content_1d2i7_14utw_273:not(#\9) {
273
+ .awsui_content_1d2i7_fo99r_264.awsui_custom-height-content_1d2i7_fo99r_273:not(#\9) {
274
274
  flex-grow: 1;
275
275
  overflow-y: auto;
276
276
  }
277
277
 
278
- .awsui_header_1d2i7_14utw_278:not(#\9) {
278
+ .awsui_header_1d2i7_fo99r_278:not(#\9) {
279
279
  padding-block-start: var(--space-container-header-top-yolt6h, 12px);
280
280
  padding-block-end: var(--space-container-header-bottom-r88nbd, 8px);
281
281
  padding-inline: var(--space-modal-horizontal-q3dvhz, 20px);
@@ -287,11 +287,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
287
287
  border-end-end-radius: 0;
288
288
  }
289
289
 
290
- .awsui_header--text_1d2i7_14utw_290:not(#\9) {
290
+ .awsui_header--text_1d2i7_fo99r_290:not(#\9) {
291
291
  /* used in test-utils */
292
292
  }
293
293
 
294
- .awsui_footer_1d2i7_14utw_294:not(#\9) {
294
+ .awsui_footer_1d2i7_fo99r_294:not(#\9) {
295
295
  border-block-start: var(--border-divider-section-width-ljhehl, 1px) solid var(--color-border-divider-default-8vuq97, #c6c6cd);
296
296
  padding-block: var(--space-scaled-s-srzhhj, 12px);
297
297
  padding-inline: var(--space-container-horizontal-lzv1u4, 20px);
@@ -300,23 +300,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
300
300
  inset-block-end: 0;
301
301
  z-index: 800;
302
302
  }
303
- .awsui_footer--rounded_1d2i7_14utw_303:not(#\9) {
303
+ .awsui_footer--rounded_1d2i7_fo99r_303:not(#\9) {
304
304
  border-start-start-radius: 0;
305
305
  border-start-end-radius: 0;
306
306
  border-end-start-radius: var(--border-radius-container-cjce5i, 16px);
307
307
  border-end-end-radius: var(--border-radius-container-cjce5i, 16px);
308
308
  }
309
- .awsui_footer_1d2i7_14utw_294:not(#\9):after {
309
+ .awsui_footer_1d2i7_fo99r_294:not(#\9):after {
310
310
  content: "";
311
311
  display: table;
312
312
  clear: both;
313
313
  }
314
314
 
315
- .awsui_dismiss-control_1d2i7_14utw_315:not(#\9) {
315
+ .awsui_dismiss-control_1d2i7_fo99r_315:not(#\9) {
316
316
  /* used in test-utils */
317
317
  }
318
318
 
319
- .awsui_modal-open_1d2i7_14utw_319:not(#\9) {
319
+ .awsui_modal-open_1d2i7_fo99r_319:not(#\9) {
320
320
  overflow: hidden;
321
321
  /*
322
322
  * When padding-right is added to account for scrollbar being turned
@@ -2,37 +2,37 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dialog": "awsui_dialog_1d2i7_14utw_25",
6
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_14utw_1",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_14utw_1",
8
- "refresh": "awsui_refresh_1d2i7_14utw_48",
9
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_14utw_1",
10
- "root": "awsui_root_1d2i7_14utw_81",
11
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_14utw_1",
12
- "hide-dismiss-button": "awsui_hide-dismiss-button_1d2i7_14utw_158",
13
- "hidden": "awsui_hidden_1d2i7_14utw_161",
14
- "focus-lock": "awsui_focus-lock_1d2i7_14utw_165",
15
- "position-top": "awsui_position-top_1d2i7_14utw_173",
16
- "position-center": "awsui_position-center_1d2i7_14utw_176",
17
- "small": "awsui_small_1d2i7_14utw_190",
18
- "medium": "awsui_medium_1d2i7_14utw_193",
19
- "large": "awsui_large_1d2i7_14utw_196",
20
- "x-large": "awsui_x-large_1d2i7_14utw_199",
21
- "xx-large": "awsui_xx-large_1d2i7_14utw_202",
22
- "custom-width": "awsui_custom-width_1d2i7_14utw_205",
23
- "max": "awsui_max_1d2i7_14utw_208",
24
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_14utw_208",
25
- "custom-height": "awsui_custom-height_1d2i7_14utw_213",
26
- "container": "awsui_container_1d2i7_14utw_218",
27
- "custom-height-container": "awsui_custom-height-container_1d2i7_14utw_258",
28
- "content": "awsui_content_1d2i7_14utw_264",
29
- "no-paddings": "awsui_no-paddings_1d2i7_14utw_269",
30
- "custom-height-content": "awsui_custom-height-content_1d2i7_14utw_273",
31
- "header": "awsui_header_1d2i7_14utw_278",
32
- "header--text": "awsui_header--text_1d2i7_14utw_290",
33
- "footer": "awsui_footer_1d2i7_14utw_294",
34
- "footer--rounded": "awsui_footer--rounded_1d2i7_14utw_303",
35
- "dismiss-control": "awsui_dismiss-control_1d2i7_14utw_315",
36
- "modal-open": "awsui_modal-open_1d2i7_14utw_319"
5
+ "dialog": "awsui_dialog_1d2i7_fo99r_25",
6
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_fo99r_1",
7
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_fo99r_1",
8
+ "refresh": "awsui_refresh_1d2i7_fo99r_48",
9
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_fo99r_1",
10
+ "root": "awsui_root_1d2i7_fo99r_81",
11
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_fo99r_1",
12
+ "hide-dismiss-button": "awsui_hide-dismiss-button_1d2i7_fo99r_158",
13
+ "hidden": "awsui_hidden_1d2i7_fo99r_161",
14
+ "focus-lock": "awsui_focus-lock_1d2i7_fo99r_165",
15
+ "position-top": "awsui_position-top_1d2i7_fo99r_173",
16
+ "position-center": "awsui_position-center_1d2i7_fo99r_176",
17
+ "small": "awsui_small_1d2i7_fo99r_190",
18
+ "medium": "awsui_medium_1d2i7_fo99r_193",
19
+ "large": "awsui_large_1d2i7_fo99r_196",
20
+ "x-large": "awsui_x-large_1d2i7_fo99r_199",
21
+ "xx-large": "awsui_xx-large_1d2i7_fo99r_202",
22
+ "custom-width": "awsui_custom-width_1d2i7_fo99r_205",
23
+ "max": "awsui_max_1d2i7_fo99r_208",
24
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_fo99r_208",
25
+ "custom-height": "awsui_custom-height_1d2i7_fo99r_213",
26
+ "container": "awsui_container_1d2i7_fo99r_218",
27
+ "custom-height-container": "awsui_custom-height-container_1d2i7_fo99r_258",
28
+ "content": "awsui_content_1d2i7_fo99r_264",
29
+ "no-paddings": "awsui_no-paddings_1d2i7_fo99r_269",
30
+ "custom-height-content": "awsui_custom-height-content_1d2i7_fo99r_273",
31
+ "header": "awsui_header_1d2i7_fo99r_278",
32
+ "header--text": "awsui_header--text_1d2i7_fo99r_290",
33
+ "footer": "awsui_footer_1d2i7_fo99r_294",
34
+ "footer--rounded": "awsui_footer--rounded_1d2i7_fo99r_303",
35
+ "dismiss-control": "awsui_dismiss-control_1d2i7_fo99r_315",
36
+ "modal-open": "awsui_modal-open_1d2i7_fo99r_319"
37
37
  };
38
38
 
@@ -76,7 +76,7 @@ export declare function useMultiselect({
76
76
  ariaLabel?: string | undefined;
77
77
  nativeAttributes?: Record<string, any> | undefined;
78
78
  tagOverride?: "div" | "ul" | undefined;
79
- statusType: DropdownStatusProps.StatusType;
79
+ statusType?: DropdownStatusProps.StatusType | undefined;
80
80
  ariaRequired?: boolean | undefined;
81
81
  decreaseBlockMargin?: boolean | undefined;
82
82
  stickyItemBlockSize?: number | null | undefined;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { OptionListProps } from './interfaces';
3
+ export { OptionListProps };
4
+ declare const OptionList: React.ForwardRefExoticComponent<OptionListProps & React.RefAttributes<OptionListProps.Ref>>;
5
+ export default OptionList;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/option-list/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,6FASd,CAAC;AAGH,eAAe,UAAU,CAAC"}
@@ -0,0 +1,21 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ 'use client';
4
+ import React from 'react';
5
+ import useBaseComponent from '../internal/hooks/use-base-component';
6
+ import { applyDisplayName } from '../internal/utils/apply-display-name';
7
+ import { getExternalProps } from '../internal/utils/external-props';
8
+ import InternalOptionList from './internal';
9
+ const OptionList = React.forwardRef((props, ref) => {
10
+ const baseComponentProps = useBaseComponent('OptionList', {
11
+ props: { selectionType: props.selectionType },
12
+ metadata: {
13
+ optionsCount: props.options.length,
14
+ },
15
+ });
16
+ const externalProps = getExternalProps(props);
17
+ return React.createElement(InternalOptionList, { ...externalProps, ...baseComponentProps, ref: ref });
18
+ });
19
+ applyDisplayName(OptionList, 'OptionList');
20
+ export default OptionList;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/option-list/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAI5C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAAmC,EAAE,EAAE;IAClG,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE;QAC7C,QAAQ,EAAE;YACR,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM;SACnC;KACF,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,oBAAC,kBAAkB,OAAK,aAAa,KAAM,kBAAkB,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AACrF,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { OptionListProps } from './interfaces';\nimport InternalOptionList from './internal';\n\nexport { OptionListProps };\n\nconst OptionList = React.forwardRef((props: OptionListProps, ref: React.Ref<OptionListProps.Ref>) => {\n const baseComponentProps = useBaseComponent('OptionList', {\n props: { selectionType: props.selectionType },\n metadata: {\n optionsCount: props.options.length,\n },\n });\n const externalProps = getExternalProps(props);\n return <InternalOptionList {...externalProps} {...baseComponentProps} ref={ref} />;\n});\n\napplyDisplayName(OptionList, 'OptionList');\nexport default OptionList;\n"]}
@@ -0,0 +1,131 @@
1
+ import React from 'react';
2
+ import { BaseComponentProps } from '../types/base-component';
3
+ import { NonCancelableEventHandler } from '../types/events';
4
+ export interface OptionListProps extends BaseComponentProps {
5
+ /**
6
+ * Specifies an array of options that are displayed as a list.
7
+ * You can group options into one level of option groups.
8
+ *
9
+ * #### Option
10
+ * - `value` (string) - The returned value of the option when selected. Must be unique.
11
+ * - `label` (string) - (Optional) Option text displayed to the user.
12
+ * - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.
13
+ * - `description` (string) - (Optional) Further information about the option that appears below the label.
14
+ * - `disabled` (boolean) - (Optional) Determines whether the option is disabled. Users can't select or deselect a disabled option.
15
+ * - `disabledReason` (ReactNode) - (Optional) Displays a tooltip near the item when disabled. Use to provide additional context.
16
+ * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.
17
+ * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.
18
+ * - `icon` (ReactNode) - (Optional) An icon displayed in the option, such as an [icon component](/components/icon/).
19
+ *
20
+ * #### OptionGroup
21
+ * - `value` (string) - Identifies the option group. Must be unique among the groups.
22
+ * - `label` (string) - Option group text displayed to the user.
23
+ * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled. Disables every option in the group.
24
+ * - `options` (Option[]) - The options in the group.
25
+ *
26
+ * Options are the selection target. Do not render interactive elements such as buttons or links inside them.
27
+ */
28
+ options: OptionListProps.Options;
29
+ /**
30
+ * Specifies whether the user can select one option (`single`) or several (`multi`).
31
+ * Multi selection shows a checkbox next to each option.
32
+ */
33
+ selectionType: OptionListProps.SelectionType;
34
+ /**
35
+ * The selected options. Options are matched by `value`. In single selection, only the first option of the array is used.
36
+ * If you don't provide this property, the component manages its selection internally.
37
+ */
38
+ selectedOptions?: ReadonlyArray<OptionListProps.Option>;
39
+ /**
40
+ * Called when the user selects or deselects an option.
41
+ * The event `detail` contains the new `selectedOptions`.
42
+ */
43
+ onChange?: NonCancelableEventHandler<OptionListProps.ChangeDetail>;
44
+ /**
45
+ * Adds `aria-label` to the list. Use this when there is no visible label.
46
+ */
47
+ ariaLabel?: string;
48
+ /**
49
+ * Adds `aria-labelledby` to the list. Use this to reference the visible label of the list.
50
+ */
51
+ ariaLabelledby?: string;
52
+ /**
53
+ * Adds `aria-describedby` to the list.
54
+ */
55
+ ariaDescribedby?: string;
56
+ /**
57
+ * Specifies a render function to render custom options.
58
+ */
59
+ renderOption?: OptionListProps.OptionItemRenderer;
60
+ /**
61
+ * Overrides the element that is announced to screen readers
62
+ * when the highlighted option changes. By default, this announces
63
+ * the option's name and properties, and its selected state if
64
+ * the `selectedAriaLabel` property is defined.
65
+ * The highlighted option is provided, and its group (if groups
66
+ * are used and it differs from the group of the previously highlighted option).
67
+ * In multi selection, when a group header is highlighted, the group is provided as the option.
68
+ *
69
+ * For more information, see the
70
+ * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).
71
+ */
72
+ renderHighlightedAriaLive?: OptionListProps.ContainingOptionAndGroupString;
73
+ /**
74
+ * An object containing all the necessary localized strings required by the component.
75
+ * * `selectedAriaLabel` - Announced with the highlighted option when it is selected.
76
+ * @i18n
77
+ */
78
+ i18nStrings?: OptionListProps.I18nStrings;
79
+ }
80
+ export declare namespace OptionListProps {
81
+ type SelectionType = 'single' | 'multi';
82
+ interface Option {
83
+ value: string;
84
+ label?: string;
85
+ lang?: string;
86
+ description?: string;
87
+ disabled?: boolean;
88
+ disabledReason?: React.ReactNode;
89
+ labelTag?: string;
90
+ tags?: ReadonlyArray<string>;
91
+ icon?: React.ReactNode;
92
+ }
93
+ interface OptionGroup extends Option {
94
+ options: ReadonlyArray<Option>;
95
+ }
96
+ type Options = ReadonlyArray<Option | OptionGroup>;
97
+ interface OptionItem {
98
+ type: 'item';
99
+ index: number;
100
+ option: Option;
101
+ selected: boolean;
102
+ highlighted: boolean;
103
+ disabled: boolean;
104
+ parent: OptionGroupItem | null;
105
+ }
106
+ interface OptionGroupItem {
107
+ type: 'group';
108
+ index: number;
109
+ option: OptionGroup;
110
+ disabled: boolean;
111
+ selected?: boolean;
112
+ indeterminate?: boolean;
113
+ highlighted?: boolean;
114
+ }
115
+ type Item = OptionItem | OptionGroupItem;
116
+ type OptionItemRenderer = (props: {
117
+ item: Item;
118
+ }) => React.ReactNode | null;
119
+ interface ContainingOptionAndGroupString {
120
+ (option: Option | OptionGroup, group?: OptionGroup): string;
121
+ }
122
+ interface ChangeDetail {
123
+ selectedOptions: ReadonlyArray<Option>;
124
+ }
125
+ interface I18nStrings {
126
+ selectedAriaLabel?: string;
127
+ }
128
+ interface Ref {
129
+ focus(): void;
130
+ }
131
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/option-list/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC;IAEjC;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAC,aAAa,CAAC;IAE7C;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAExD;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAEnE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC;IAElD;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,eAAe,CAAC,8BAA8B,CAAC;IAE3E;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC;CAC3C;AAED,yBAAiB,eAAe,CAAC;IAC/B,KAAY,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE/C,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB;IAED,UAAiB,WAAY,SAAQ,MAAM;QACzC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KAChC;IAED,KAAY,OAAO,GAAG,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC,CAAC;IAE1D,UAAiB,UAAU;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,OAAO,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;QACrB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;KAChC;IAED,UAAiB,eAAe;QAC9B,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,WAAW,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;IAED,KAAY,IAAI,GAAG,UAAU,GAAG,eAAe,CAAC;IAEhD,KAAY,kBAAkB,GAAG,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAEnF,UAAiB,8BAA8B;QAC7C,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;KAC7D;IAED,UAAiB,YAAY;QAC3B,eAAe,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KACxC;IAED,UAAiB,WAAW;QAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAED,UAAiB,GAAG;QAClB,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/option-list/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';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\n\nexport interface OptionListProps extends BaseComponentProps {\n /**\n * Specifies an array of options that are displayed as a list.\n * You can group options into one level of option groups.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected. Must be unique.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `lang` (string) - (Optional) The language of the option, provided as a BCP 47 language tag.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled. Users can't select or deselect a disabled option.\n * - `disabledReason` (ReactNode) - (Optional) Displays a tooltip near the item when disabled. Use to provide additional context.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.\n * - `icon` (ReactNode) - (Optional) An icon displayed in the option, such as an [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `value` (string) - Identifies the option group. Must be unique among the groups.\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled. Disables every option in the group.\n * - `options` (Option[]) - The options in the group.\n *\n * Options are the selection target. Do not render interactive elements such as buttons or links inside them.\n */\n options: OptionListProps.Options;\n\n /**\n * Specifies whether the user can select one option (`single`) or several (`multi`).\n * Multi selection shows a checkbox next to each option.\n */\n selectionType: OptionListProps.SelectionType;\n\n /**\n * The selected options. Options are matched by `value`. In single selection, only the first option of the array is used.\n * If you don't provide this property, the component manages its selection internally.\n */\n selectedOptions?: ReadonlyArray<OptionListProps.Option>;\n\n /**\n * Called when the user selects or deselects an option.\n * The event `detail` contains the new `selectedOptions`.\n */\n onChange?: NonCancelableEventHandler<OptionListProps.ChangeDetail>;\n\n /**\n * Adds `aria-label` to the list. Use this when there is no visible label.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the list. Use this to reference the visible label of the list.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the list.\n */\n ariaDescribedby?: string;\n\n /**\n * Specifies a render function to render custom options.\n */\n renderOption?: OptionListProps.OptionItemRenderer;\n\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedAriaLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n * In multi selection, when a group header is highlighted, the group is provided as the option.\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: OptionListProps.ContainingOptionAndGroupString;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * * `selectedAriaLabel` - Announced with the highlighted option when it is selected.\n * @i18n\n */\n i18nStrings?: OptionListProps.I18nStrings;\n}\n\nexport namespace OptionListProps {\n export type SelectionType = 'single' | 'multi';\n\n export interface Option {\n value: string;\n label?: string;\n lang?: string;\n description?: string;\n disabled?: boolean;\n disabledReason?: React.ReactNode;\n labelTag?: string;\n tags?: ReadonlyArray<string>;\n icon?: React.ReactNode;\n }\n\n export interface OptionGroup extends Option {\n options: ReadonlyArray<Option>;\n }\n\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export interface OptionItem {\n type: 'item';\n index: number;\n option: Option;\n selected: boolean;\n highlighted: boolean;\n disabled: boolean;\n parent: OptionGroupItem | null;\n }\n\n export interface OptionGroupItem {\n type: 'group';\n index: number;\n option: OptionGroup;\n disabled: boolean;\n selected?: boolean;\n indeterminate?: boolean;\n highlighted?: boolean;\n }\n\n export type Item = OptionItem | OptionGroupItem;\n\n export type OptionItemRenderer = (props: { item: Item }) => React.ReactNode | null;\n\n export interface ContainingOptionAndGroupString {\n (option: Option | OptionGroup, group?: OptionGroup): string;\n }\n\n export interface ChangeDetail {\n selectedOptions: ReadonlyArray<Option>;\n }\n\n export interface I18nStrings {\n selectedAriaLabel?: string;\n }\n\n export interface Ref {\n focus(): void;\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
3
+ import { OptionListProps } from './interfaces';
4
+ declare const InternalOptionList: React.ForwardRefExoticComponent<OptionListProps & InternalBaseComponentProps & React.RefAttributes<OptionListProps.Ref>>;
5
+ export default InternalOptionList;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/option-list/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAgBpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAyD/C,QAAA,MAAM,kBAAkB,0HAoJvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}