@cloudscape-design/components 3.0.1407 → 3.0.1408

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 (508) hide show
  1. package/alert/styles.css.js +27 -27
  2. package/alert/styles.scoped.css +55 -53
  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/styles.css.js +86 -86
  11. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  12. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  13. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  14. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  15. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  16. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  17. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
  18. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  19. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  20. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
  21. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  22. package/attribute-editor/styles.css.js +15 -15
  23. package/attribute-editor/styles.scoped.css +28 -28
  24. package/attribute-editor/styles.selectors.js +15 -15
  25. package/breadcrumb-group/item/styles.css.js +7 -7
  26. package/breadcrumb-group/item/styles.scoped.css +28 -28
  27. package/breadcrumb-group/item/styles.selectors.js +7 -7
  28. package/button/styles.css.js +24 -24
  29. package/button/styles.scoped.css +327 -327
  30. package/button/styles.selectors.js +24 -24
  31. package/button-dropdown/category-elements/expandable-category-element.d.ts +4 -1
  32. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  33. package/button-dropdown/category-elements/expandable-category-element.js +18 -3
  34. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  35. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +4 -1
  36. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  37. package/button-dropdown/category-elements/mobile-expandable-category-element.js +23 -3
  38. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  39. package/button-dropdown/category-elements/use-expandable-group-status.d.ts +34 -0
  40. package/button-dropdown/category-elements/use-expandable-group-status.d.ts.map +1 -0
  41. package/button-dropdown/category-elements/use-expandable-group-status.js +59 -0
  42. package/button-dropdown/category-elements/use-expandable-group-status.js.map +1 -0
  43. package/button-dropdown/index.d.ts.map +1 -1
  44. package/button-dropdown/index.js +3 -3
  45. package/button-dropdown/index.js.map +1 -1
  46. package/button-dropdown/interfaces.d.ts +110 -8
  47. package/button-dropdown/interfaces.d.ts.map +1 -1
  48. package/button-dropdown/interfaces.js.map +1 -1
  49. package/button-dropdown/internal-interfaces.d.ts +20 -0
  50. package/button-dropdown/internal-interfaces.d.ts.map +1 -1
  51. package/button-dropdown/internal-interfaces.js.map +1 -1
  52. package/button-dropdown/internal.d.ts.map +1 -1
  53. package/button-dropdown/internal.js +149 -16
  54. package/button-dropdown/internal.js.map +1 -1
  55. package/button-dropdown/item-element/styles.css.js +21 -21
  56. package/button-dropdown/item-element/styles.scoped.css +37 -37
  57. package/button-dropdown/item-element/styles.selectors.js +21 -21
  58. package/button-dropdown/items-list.d.ts +4 -1
  59. package/button-dropdown/items-list.d.ts.map +1 -1
  60. package/button-dropdown/items-list.js +2 -2
  61. package/button-dropdown/items-list.js.map +1 -1
  62. package/button-dropdown/status-footer.d.ts +16 -0
  63. package/button-dropdown/status-footer.d.ts.map +1 -0
  64. package/button-dropdown/status-footer.js +23 -0
  65. package/button-dropdown/status-footer.js.map +1 -0
  66. package/button-dropdown/styles.css.js +23 -23
  67. package/button-dropdown/styles.scoped.css +34 -31
  68. package/button-dropdown/styles.selectors.js +23 -23
  69. package/button-dropdown/test-classes/styles.css.js +7 -0
  70. package/button-dropdown/test-classes/styles.scoped.css +11 -0
  71. package/button-dropdown/test-classes/styles.selectors.js +8 -0
  72. package/button-dropdown/utils/use-button-dropdown.d.ts +31 -2
  73. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  74. package/button-dropdown/utils/use-button-dropdown.js +62 -7
  75. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  76. package/button-dropdown/utils/use-highlighted-menu.d.ts +2 -0
  77. package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  78. package/button-dropdown/utils/use-highlighted-menu.js +7 -0
  79. package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  80. package/button-dropdown/utils/use-load-items.d.ts +17 -0
  81. package/button-dropdown/utils/use-load-items.d.ts.map +1 -0
  82. package/button-dropdown/utils/use-load-items.js +23 -0
  83. package/button-dropdown/utils/use-load-items.js.map +1 -0
  84. package/button-group/copy-to-clipboard-item.d.ts +1 -0
  85. package/button-group/copy-to-clipboard-item.d.ts.map +1 -1
  86. package/button-group/copy-to-clipboard-item.js +2 -2
  87. package/button-group/copy-to-clipboard-item.js.map +1 -1
  88. package/button-group/file-input-item.d.ts +1 -0
  89. package/button-group/file-input-item.d.ts.map +1 -1
  90. package/button-group/file-input-item.js +2 -2
  91. package/button-group/file-input-item.js.map +1 -1
  92. package/button-group/icon-button-item.d.ts +1 -0
  93. package/button-group/icon-button-item.d.ts.map +1 -1
  94. package/button-group/icon-button-item.js +2 -2
  95. package/button-group/icon-button-item.js.map +1 -1
  96. package/button-group/icon-toggle-button-item.d.ts +1 -0
  97. package/button-group/icon-toggle-button-item.d.ts.map +1 -1
  98. package/button-group/icon-toggle-button-item.js +2 -2
  99. package/button-group/icon-toggle-button-item.js.map +1 -1
  100. package/button-group/index.d.ts.map +1 -1
  101. package/button-group/index.js +1 -1
  102. package/button-group/index.js.map +1 -1
  103. package/button-group/internal-interfaces.d.ts +8 -0
  104. package/button-group/internal-interfaces.d.ts.map +1 -1
  105. package/button-group/internal-interfaces.js.map +1 -1
  106. package/button-group/internal.d.ts.map +1 -1
  107. package/button-group/internal.js +3 -3
  108. package/button-group/internal.js.map +1 -1
  109. package/button-group/item-element.d.ts +2 -0
  110. package/button-group/item-element.d.ts.map +1 -1
  111. package/button-group/item-element.js +7 -6
  112. package/button-group/item-element.js.map +1 -1
  113. package/button-group/menu-dropdown-item.d.ts +2 -0
  114. package/button-group/menu-dropdown-item.d.ts.map +1 -1
  115. package/button-group/menu-dropdown-item.js +3 -3
  116. package/button-group/menu-dropdown-item.js.map +1 -1
  117. package/button-group/styles.css.js +4 -4
  118. package/button-group/styles.scoped.css +19 -6
  119. package/button-group/styles.selectors.js +4 -4
  120. package/cards/styles.css.js +39 -39
  121. package/cards/styles.scoped.css +41 -41
  122. package/cards/styles.selectors.js +39 -39
  123. package/checkbox/styles.css.js +3 -3
  124. package/checkbox/styles.scoped.css +10 -10
  125. package/checkbox/styles.selectors.js +3 -3
  126. package/column-layout/internal.d.ts.map +1 -1
  127. package/column-layout/internal.js +12 -0
  128. package/column-layout/internal.js.map +1 -1
  129. package/container/internal.d.ts +11 -0
  130. package/container/internal.d.ts.map +1 -1
  131. package/container/internal.js +7 -4
  132. package/container/internal.js.map +1 -1
  133. package/container/styles.css.js +33 -34
  134. package/container/styles.scoped.css +140 -94
  135. package/container/styles.selectors.js +33 -34
  136. package/content-layout/styles.css.js +14 -14
  137. package/content-layout/styles.scoped.css +27 -27
  138. package/content-layout/styles.selectors.js +14 -14
  139. package/control-group/styles.css.js +27 -27
  140. package/control-group/styles.scoped.css +28 -28
  141. package/control-group/styles.selectors.js +27 -27
  142. package/copy-to-clipboard/index.d.ts.map +1 -1
  143. package/copy-to-clipboard/index.js +1 -1
  144. package/copy-to-clipboard/index.js.map +1 -1
  145. package/copy-to-clipboard/internal.d.ts +9 -1
  146. package/copy-to-clipboard/internal.d.ts.map +1 -1
  147. package/copy-to-clipboard/internal.js +3 -3
  148. package/copy-to-clipboard/internal.js.map +1 -1
  149. package/copy-to-clipboard/styles.css.js +10 -10
  150. package/copy-to-clipboard/styles.scoped.css +16 -14
  151. package/copy-to-clipboard/styles.selectors.js +10 -10
  152. package/date-input/internal.d.ts +5 -0
  153. package/date-input/internal.d.ts.map +1 -1
  154. package/date-input/internal.js +2 -2
  155. package/date-input/internal.js.map +1 -1
  156. package/date-input/styles.css.js +1 -1
  157. package/date-input/styles.scoped.css +2 -1
  158. package/date-input/styles.selectors.js +1 -1
  159. package/divider/index.d.ts.map +1 -1
  160. package/divider/index.js +1 -1
  161. package/divider/index.js.map +1 -1
  162. package/divider/internal.d.ts +7 -1
  163. package/divider/internal.d.ts.map +1 -1
  164. package/divider/internal.js +2 -2
  165. package/divider/internal.js.map +1 -1
  166. package/divider/styles.css.js +6 -6
  167. package/divider/styles.scoped.css +20 -9
  168. package/divider/styles.selectors.js +6 -6
  169. package/dropdown/internal.d.ts +1 -1
  170. package/dropdown/internal.d.ts.map +1 -1
  171. package/dropdown/internal.js +1 -1
  172. package/dropdown/internal.js.map +1 -1
  173. package/dropdown/styles.css.js +20 -20
  174. package/dropdown/styles.scoped.css +48 -48
  175. package/dropdown/styles.selectors.js +20 -20
  176. package/expandable-section/expandable-section-container.d.ts +6 -0
  177. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  178. package/expandable-section/expandable-section-container.js +4 -3
  179. package/expandable-section/expandable-section-container.js.map +1 -1
  180. package/expandable-section/expandable-section-header.d.ts +6 -0
  181. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  182. package/expandable-section/expandable-section-header.js +34 -15
  183. package/expandable-section/expandable-section-header.js.map +1 -1
  184. package/expandable-section/interfaces.d.ts +11 -0
  185. package/expandable-section/interfaces.d.ts.map +1 -1
  186. package/expandable-section/interfaces.js.map +1 -1
  187. package/expandable-section/internal.d.ts +2 -0
  188. package/expandable-section/internal.d.ts.map +1 -1
  189. package/expandable-section/internal.js +10 -3
  190. package/expandable-section/internal.js.map +1 -1
  191. package/expandable-section/styles.css.js +49 -46
  192. package/expandable-section/styles.scoped.css +121 -91
  193. package/expandable-section/styles.selectors.js +49 -46
  194. package/expandable-section/utils.d.ts +1 -0
  195. package/expandable-section/utils.d.ts.map +1 -1
  196. package/expandable-section/utils.js +3 -0
  197. package/expandable-section/utils.js.map +1 -1
  198. package/file-input/internal.d.ts +2 -0
  199. package/file-input/internal.d.ts.map +1 -1
  200. package/file-input/internal.js +2 -2
  201. package/file-input/internal.js.map +1 -1
  202. package/file-input/styles.css.js +5 -5
  203. package/file-input/styles.scoped.css +18 -22
  204. package/file-input/styles.selectors.js +5 -5
  205. package/file-token-group/styles.css.js +23 -23
  206. package/file-token-group/styles.scoped.css +36 -36
  207. package/file-token-group/styles.selectors.js +23 -23
  208. package/flashbar/styles.css.js +50 -50
  209. package/flashbar/styles.scoped.css +184 -184
  210. package/flashbar/styles.selectors.js +50 -50
  211. package/header/interfaces.d.ts +3 -2
  212. package/header/interfaces.d.ts.map +1 -1
  213. package/header/interfaces.js.map +1 -1
  214. package/header/internal.d.ts +6 -0
  215. package/header/internal.d.ts.map +1 -1
  216. package/header/internal.js +2 -1
  217. package/header/internal.js.map +1 -1
  218. package/header/styles.css.js +36 -35
  219. package/header/styles.scoped.css +69 -53
  220. package/header/styles.selectors.js +36 -35
  221. package/help-panel/styles.css.js +6 -6
  222. package/help-panel/styles.scoped.css +72 -72
  223. package/help-panel/styles.selectors.js +6 -6
  224. package/i18n/messages/all.all.js +1 -1
  225. package/i18n/messages/all.all.json +1 -1
  226. package/i18n/messages/all.de.js +1 -1
  227. package/i18n/messages/all.de.json +1 -1
  228. package/i18n/messages/all.en-GB.js +1 -1
  229. package/i18n/messages/all.en-GB.json +1 -1
  230. package/i18n/messages/all.en.js +1 -1
  231. package/i18n/messages/all.en.json +1 -1
  232. package/i18n/messages/all.es.js +1 -1
  233. package/i18n/messages/all.es.json +1 -1
  234. package/i18n/messages/all.fr.js +1 -1
  235. package/i18n/messages/all.fr.json +1 -1
  236. package/i18n/messages/all.id.js +1 -1
  237. package/i18n/messages/all.id.json +1 -1
  238. package/i18n/messages/all.it.js +1 -1
  239. package/i18n/messages/all.it.json +1 -1
  240. package/i18n/messages/all.ja.js +1 -1
  241. package/i18n/messages/all.ja.json +1 -1
  242. package/i18n/messages/all.ko.js +1 -1
  243. package/i18n/messages/all.ko.json +1 -1
  244. package/i18n/messages/all.pt-BR.js +1 -1
  245. package/i18n/messages/all.pt-BR.json +1 -1
  246. package/i18n/messages/all.tr.js +1 -1
  247. package/i18n/messages/all.tr.json +1 -1
  248. package/i18n/messages/all.zh-CN.js +1 -1
  249. package/i18n/messages/all.zh-CN.json +1 -1
  250. package/i18n/messages/all.zh-TW.js +1 -1
  251. package/i18n/messages/all.zh-TW.json +1 -1
  252. package/i18n/messages-types.d.ts +28 -0
  253. package/i18n/messages-types.d.ts.map +1 -1
  254. package/i18n/messages-types.js.map +1 -1
  255. package/input/styles.css.js +44 -44
  256. package/input/styles.scoped.css +143 -143
  257. package/input/styles.selectors.js +44 -44
  258. package/internal/base-component/styles.scoped.css +1 -1
  259. package/internal/components/autosuggest-input/styles.css.js +33 -33
  260. package/internal/components/autosuggest-input/styles.scoped.css +86 -86
  261. package/internal/components/autosuggest-input/styles.selectors.js +33 -33
  262. package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  263. package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  264. package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  265. package/internal/components/dropdown-status/index.d.ts +7 -1
  266. package/internal/components/dropdown-status/index.d.ts.map +1 -1
  267. package/internal/components/dropdown-status/index.js +2 -2
  268. package/internal/components/dropdown-status/index.js.map +1 -1
  269. package/internal/components/listbox/selection/interfaces.d.ts +28 -0
  270. package/internal/components/listbox/selection/interfaces.d.ts.map +1 -0
  271. package/internal/components/listbox/selection/interfaces.js +2 -0
  272. package/internal/components/listbox/selection/interfaces.js.map +1 -0
  273. package/internal/components/listbox/selection/multi-selection.d.ts +24 -0
  274. package/internal/components/listbox/selection/multi-selection.d.ts.map +1 -0
  275. package/internal/components/listbox/selection/multi-selection.js +60 -0
  276. package/internal/components/listbox/selection/multi-selection.js.map +1 -0
  277. package/internal/components/listbox/selection/single-selection.d.ts +7 -0
  278. package/internal/components/listbox/selection/single-selection.d.ts.map +1 -0
  279. package/internal/components/listbox/selection/single-selection.js +26 -0
  280. package/internal/components/listbox/selection/single-selection.js.map +1 -0
  281. package/internal/components/option/styles.css.js +18 -18
  282. package/internal/components/option/styles.scoped.css +35 -35
  283. package/internal/components/option/styles.selectors.js +18 -18
  284. package/internal/components/radio-button/styles.css.js +7 -7
  285. package/internal/components/radio-button/styles.scoped.css +17 -17
  286. package/internal/components/radio-button/styles.selectors.js +7 -7
  287. package/internal/components/selectable-item/styles.css.js +22 -22
  288. package/internal/components/selectable-item/styles.scoped.css +57 -57
  289. package/internal/components/selectable-item/styles.selectors.js +22 -22
  290. package/internal/components/token-list/styles.css.js +10 -10
  291. package/internal/components/token-list/styles.scoped.css +25 -25
  292. package/internal/components/token-list/styles.selectors.js +10 -10
  293. package/internal/environment.js +2 -2
  294. package/internal/environment.json +2 -2
  295. package/internal/generated/custom-css-properties/index.d.ts +2 -0
  296. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  297. package/internal/generated/custom-css-properties/index.js +177 -175
  298. package/internal/generated/custom-css-properties/index.js.map +1 -1
  299. package/internal/hooks/use-load-items/index.d.ts +18 -0
  300. package/internal/hooks/use-load-items/index.d.ts.map +1 -0
  301. package/{select/utils/use-load-items.js → internal/hooks/use-load-items/index.js} +4 -5
  302. package/internal/hooks/use-load-items/index.js.map +1 -0
  303. package/internal/manifest.json +1 -1
  304. package/item-card/styles.css.js +14 -14
  305. package/item-card/styles.scoped.css +63 -63
  306. package/item-card/styles.selectors.js +14 -14
  307. package/link/styles.css.js +21 -21
  308. package/link/styles.scoped.css +104 -104
  309. package/link/styles.selectors.js +21 -21
  310. package/manifest.json +2 -2
  311. package/modal/styles.css.js +32 -32
  312. package/modal/styles.scoped.css +49 -49
  313. package/modal/styles.selectors.js +32 -32
  314. package/multiselect/use-multiselect.d.ts.map +1 -1
  315. package/multiselect/use-multiselect.js +15 -48
  316. package/multiselect/use-multiselect.js.map +1 -1
  317. package/package.json +1 -1
  318. package/popover/arrow.d.ts +3 -1
  319. package/popover/arrow.d.ts.map +1 -1
  320. package/popover/arrow.js +2 -2
  321. package/popover/arrow.js.map +1 -1
  322. package/popover/body.d.ts +1 -0
  323. package/popover/body.d.ts.map +1 -1
  324. package/popover/body.js +2 -2
  325. package/popover/body.js.map +1 -1
  326. package/popover/container.d.ts +3 -1
  327. package/popover/container.d.ts.map +1 -1
  328. package/popover/container.js +2 -2
  329. package/popover/container.js.map +1 -1
  330. package/popover/internal.d.ts +6 -0
  331. package/popover/internal.d.ts.map +1 -1
  332. package/popover/internal.js +3 -3
  333. package/popover/internal.js.map +1 -1
  334. package/popover/styles.css.js +58 -58
  335. package/popover/styles.scoped.css +114 -95
  336. package/popover/styles.selectors.js +58 -58
  337. package/progress-bar/index.d.ts.map +1 -1
  338. package/progress-bar/index.js +4 -3
  339. package/progress-bar/index.js.map +1 -1
  340. package/progress-bar/internal.d.ts +7 -1
  341. package/progress-bar/internal.d.ts.map +1 -1
  342. package/progress-bar/internal.js +2 -2
  343. package/progress-bar/internal.js.map +1 -1
  344. package/progress-bar/styles.css.js +20 -19
  345. package/progress-bar/styles.scoped.css +92 -59
  346. package/progress-bar/styles.selectors.js +20 -19
  347. package/prompt-input/styles.css.js +26 -26
  348. package/prompt-input/styles.scoped.css +105 -105
  349. package/prompt-input/styles.selectors.js +26 -26
  350. package/segmented-control/styles.css.js +31 -31
  351. package/segmented-control/styles.scoped.css +81 -81
  352. package/segmented-control/styles.selectors.js +31 -31
  353. package/select/internal.d.ts.map +1 -1
  354. package/select/internal.js +6 -3
  355. package/select/internal.js.map +1 -1
  356. package/select/parts/styles.css.js +21 -21
  357. package/select/parts/styles.scoped.css +24 -24
  358. package/select/parts/styles.selectors.js +21 -21
  359. package/select/utils/use-select.d.ts +4 -4
  360. package/select/utils/use-select.d.ts.map +1 -1
  361. package/select/utils/use-select.js +16 -29
  362. package/select/utils/use-select.js.map +1 -1
  363. package/side-navigation/styles.css.js +65 -65
  364. package/side-navigation/styles.scoped.css +114 -114
  365. package/side-navigation/styles.selectors.js +65 -65
  366. package/slider/internal.d.ts +6 -0
  367. package/slider/internal.d.ts.map +1 -1
  368. package/slider/internal.js +3 -3
  369. package/slider/internal.js.map +1 -1
  370. package/slider/styles.css.js +26 -26
  371. package/slider/styles.scoped.css +202 -171
  372. package/slider/styles.selectors.js +26 -26
  373. package/spinner/styles.css.js +14 -14
  374. package/spinner/styles.scoped.css +40 -40
  375. package/spinner/styles.selectors.js +14 -14
  376. package/styling/button-dropdown.scss +1 -0
  377. package/styling/button-group.scss +15 -0
  378. package/styling/container.scss +95 -0
  379. package/styling/copy-to-clipboard.scss +1 -0
  380. package/styling/date-input.scss +1 -0
  381. package/styling/divider.scss +15 -0
  382. package/styling/dropdown.scss +2 -2
  383. package/styling/popover.scss +58 -0
  384. package/styling/progress-bar.scss +36 -0
  385. package/styling/slider.scss +30 -0
  386. package/styling/text-filter.scss +19 -0
  387. package/styling/time-input.scss +1 -0
  388. package/styling/toggle-button.scss +1 -0
  389. package/styling/token.scss +49 -0
  390. package/styling/tooltip.scss +58 -0
  391. package/table/column-groups/col-group.d.ts +1 -1
  392. package/table/column-groups/col-group.d.ts.map +1 -1
  393. package/table/column-groups/col-group.js +3 -3
  394. package/table/column-groups/col-group.js.map +1 -1
  395. package/table/header-cell/group-header-cell.js +2 -2
  396. package/table/header-cell/group-header-cell.js.map +1 -1
  397. package/table/internal.d.ts.map +1 -1
  398. package/table/internal.js +1 -1
  399. package/table/internal.js.map +1 -1
  400. package/table/styles.css.js +37 -37
  401. package/table/styles.scoped.css +46 -46
  402. package/table/styles.selectors.js +37 -37
  403. package/table/use-column-widths.d.ts +2 -1
  404. package/table/use-column-widths.d.ts.map +1 -1
  405. package/table/use-column-widths.js +42 -11
  406. package/table/use-column-widths.js.map +1 -1
  407. package/tabs/styles.css.js +31 -30
  408. package/tabs/styles.scoped.css +93 -77
  409. package/tabs/styles.selectors.js +31 -30
  410. package/tabs/tab-header-bar.d.ts.map +1 -1
  411. package/tabs/tab-header-bar.js +54 -5
  412. package/tabs/tab-header-bar.js.map +1 -1
  413. package/tag-editor/styles.css.js +3 -3
  414. package/tag-editor/styles.scoped.css +13 -13
  415. package/tag-editor/styles.selectors.js +3 -3
  416. package/test-utils/dom/button-dropdown/index.d.ts +16 -0
  417. package/test-utils/dom/button-dropdown/index.js +28 -6
  418. package/test-utils/dom/button-dropdown/index.js.map +1 -1
  419. package/test-utils/selectors/button-dropdown/index.d.ts +16 -0
  420. package/test-utils/selectors/button-dropdown/index.js +32 -6
  421. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  422. package/text-content/styles.css.js +1 -1
  423. package/text-content/styles.scoped.css +66 -66
  424. package/text-content/styles.selectors.js +1 -1
  425. package/text-filter/internal.d.ts +8 -1
  426. package/text-filter/internal.d.ts.map +1 -1
  427. package/text-filter/internal.js +3 -3
  428. package/text-filter/internal.js.map +1 -1
  429. package/text-filter/search-results.d.ts +1 -0
  430. package/text-filter/search-results.d.ts.map +1 -1
  431. package/text-filter/search-results.js +3 -2
  432. package/text-filter/search-results.js.map +1 -1
  433. package/text-filter/styles.css.js +3 -3
  434. package/text-filter/styles.scoped.css +6 -3
  435. package/text-filter/styles.selectors.js +3 -3
  436. package/textarea/styles.css.js +9 -9
  437. package/textarea/styles.scoped.css +51 -51
  438. package/textarea/styles.selectors.js +9 -9
  439. package/time-input/internal.d.ts +7 -1
  440. package/time-input/internal.d.ts.map +1 -1
  441. package/time-input/internal.js +2 -1
  442. package/time-input/internal.js.map +1 -1
  443. package/time-input/styles.css.js +1 -1
  444. package/time-input/styles.scoped.css +2 -1
  445. package/time-input/styles.selectors.js +1 -1
  446. package/toggle/styles.css.js +10 -10
  447. package/toggle/styles.scoped.css +25 -25
  448. package/toggle/styles.selectors.js +10 -10
  449. package/toggle-button/index.d.ts.map +1 -1
  450. package/toggle-button/index.js +1 -1
  451. package/toggle-button/index.js.map +1 -1
  452. package/toggle-button/internal.d.ts +2 -0
  453. package/toggle-button/internal.d.ts.map +1 -1
  454. package/toggle-button/internal.js +2 -2
  455. package/toggle-button/internal.js.map +1 -1
  456. package/toggle-button/styles.css.js +4 -4
  457. package/toggle-button/styles.scoped.css +5 -4
  458. package/toggle-button/styles.selectors.js +4 -4
  459. package/token/dismiss-button.d.ts +13 -3
  460. package/token/dismiss-button.d.ts.map +1 -1
  461. package/token/dismiss-button.js +6 -22
  462. package/token/dismiss-button.js.map +1 -1
  463. package/token/index.d.ts.map +1 -1
  464. package/token/index.js +1 -1
  465. package/token/index.js.map +1 -1
  466. package/token/internal.d.ts +6 -0
  467. package/token/internal.d.ts.map +1 -1
  468. package/token/internal.js +3 -3
  469. package/token/internal.js.map +1 -1
  470. package/token/styles.css.js +14 -14
  471. package/token/styles.d.ts +26 -1
  472. package/token/styles.d.ts.map +1 -1
  473. package/token/styles.js +22 -12
  474. package/token/styles.js.map +1 -1
  475. package/token/styles.scoped.css +67 -61
  476. package/token/styles.selectors.js +14 -14
  477. package/tooltip/internal.d.ts +6 -0
  478. package/tooltip/internal.d.ts.map +1 -1
  479. package/tooltip/internal.js +2 -2
  480. package/tooltip/internal.js.map +1 -1
  481. package/tooltip/styles.css.js +2 -2
  482. package/tooltip/styles.scoped.css +7 -5
  483. package/tooltip/styles.selectors.js +2 -2
  484. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts +1 -1
  485. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts.map +1 -1
  486. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.js.map +1 -1
  487. package/tutorial-panel/components/tutorial-detail-view/index.d.ts +1 -1
  488. package/tutorial-panel/components/tutorial-detail-view/index.d.ts.map +1 -1
  489. package/tutorial-panel/components/tutorial-detail-view/index.js.map +1 -1
  490. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts +1 -1
  491. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  492. package/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  493. package/tutorial-panel/components/tutorial-detail-view/task.d.ts +1 -1
  494. package/tutorial-panel/components/tutorial-detail-view/task.d.ts.map +1 -1
  495. package/tutorial-panel/components/tutorial-detail-view/task.js +9 -5
  496. package/tutorial-panel/components/tutorial-detail-view/task.js.map +1 -1
  497. package/tutorial-panel/components/tutorial-list/index.d.ts +1 -1
  498. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  499. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  500. package/tutorial-panel/index.d.ts.map +1 -1
  501. package/tutorial-panel/index.js +27 -1
  502. package/tutorial-panel/index.js.map +1 -1
  503. package/tutorial-panel/interfaces.d.ts +19 -18
  504. package/tutorial-panel/interfaces.d.ts.map +1 -1
  505. package/tutorial-panel/interfaces.js.map +1 -1
  506. package/select/utils/use-load-items.d.ts +0 -18
  507. package/select/utils/use-load-items.d.ts.map +0 -1
  508. package/select/utils/use-load-items.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/dropdown/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;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,QAAQ,EAClB,EAAE,EAAE,iBAAiB,EACrB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACvC,eAAe,EAAE,eAAe,GAChC;gBAEF,oBAAC,OAAO,IACN,iBAAiB,EAAE,GAAG,EAAE,WAAC,OAAA,UAAU,CAAC,OAAO,KAAI,MAAA,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,0CAAE,KAAK,EAAE,CAAA,CAAA,EAAA,EAC7F,QAAQ,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,GAC7B,CACE,CACP,CACU,CACK,CAChB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CACzB,QAAqD,EACf,EAAE,CAAE,QAAqC,CAAC,aAAa,KAAK,SAAS,CAAC;AAE9G,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getLogicalBoundingClientRect } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable, getLastFocusable } from '../internal/components/focus-lock/utils.js';\nimport TabTrap from '../internal/components/tab-trap/index.js';\nimport { Transition, TransitionStatus } from '../internal/components/transition';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport useMouseDownTarget from '../internal/hooks/use-mouse-down-target';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { DropdownContextProvider, DropdownContextProviderProps } from './context';\nimport {\n calculatePosition,\n DropdownPosition,\n hasEnoughSpaceForFlexibleWidth,\n InteriorDropdownPosition,\n} from './dropdown-fit-handler';\nimport { applyDropdownPositionRelativeToViewport, LogicalDOMRect } from './dropdown-position';\nimport { DropdownAlignment, DropdownProps, DropdownWidthConstraint } from './interfaces';\nimport { getDropdownStyles } from './style';\n\nexport interface InternalDropdownProps\n extends Omit<DropdownProps, 'minWidth' | 'maxWidth'>,\n InternalBaseComponentProps {\n onMouseDown?: React.MouseEventHandler;\n contentKey?: string;\n dropdownId?: string;\n dropdownContentId?: string;\n stretchHeight?: boolean;\n stretchTriggerHeight?: boolean;\n interior?: boolean;\n scrollable?: boolean;\n loopFocus?: boolean;\n minWidth?: DropdownWidthConstraint;\n maxWidth?: DropdownWidthConstraint;\n maxHeight?: number;\n preferredAlignment?: DropdownAlignment;\n hideBlockBorder?: boolean;\n onFocus?: NonCancelableEventHandler<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;\n onBlur?: NonCancelableEventHandler<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;\n triggerRef?: React.RefObject<HTMLElement>;\n triggerId?: string;\n styleClassNames?: StyleClassNames;\n}\n\n// Style API v2\nexport interface StyleClassNames {\n dropdown?: string;\n}\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface DropdownContainerProps {\n triggerRef: React.RefObject<HTMLElement>;\n children?: React.ReactNode;\n renderWithPortal: boolean;\n id?: string;\n referrerId?: string;\n open?: boolean;\n}\n\nconst DropdownContainer = ({\n triggerRef,\n children,\n renderWithPortal,\n id,\n referrerId,\n open,\n}: DropdownContainerProps) => {\n if (!renderWithPortal) {\n return <>{children}</>;\n }\n if (!open) {\n return null;\n }\n const currentDocument = triggerRef.current?.ownerDocument ?? document;\n return createPortal(\n <div id={id} data-awsui-referrer-id={referrerId}>\n {children}\n </div>,\n currentDocument.body\n );\n};\n\ninterface TransitionContentProps {\n state: TransitionStatus;\n transitionRef: React.MutableRefObject<any>;\n dropdownClasses: string;\n matchTriggerWidth: boolean;\n hideBlockBorder: boolean;\n interior: boolean;\n isRefresh: boolean;\n dropdownRef: React.RefObject<HTMLDivElement>;\n verticalContainerRef: React.RefObject<HTMLDivElement>;\n expandToViewport?: boolean;\n minWidth?: string;\n maxWidth?: string;\n header?: React.ReactNode;\n content?: React.ReactNode;\n footer?: React.ReactNode;\n position?: DropdownContextProviderProps['position'];\n open?: boolean;\n onMouseDown?: React.MouseEventHandler<Element>;\n onFocusEnter?: React.FocusEventHandler<Element>;\n onFocusLeave?: React.FocusEventHandler<Element>;\n id?: string;\n ariaRole?: string;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n dropdownStyle?: React.CSSProperties;\n styleClassNames?: StyleClassNames;\n}\n\nconst TransitionContent = ({\n state,\n transitionRef,\n dropdownClasses,\n matchTriggerWidth,\n hideBlockBorder,\n interior,\n isRefresh,\n dropdownRef,\n verticalContainerRef,\n expandToViewport,\n minWidth,\n maxWidth,\n header,\n content,\n footer,\n position,\n open,\n onMouseDown,\n onFocusEnter,\n onFocusLeave,\n id,\n ariaRole,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n dropdownStyle,\n styleClassNames,\n}: TransitionContentProps) => {\n const contentRef = useMergeRefs(dropdownRef, transitionRef);\n const dropdownStyles: Record<string, string> = {};\n if (minWidth) {\n dropdownStyles[customCssProps.dropdownDefaultMinWidth] = minWidth;\n }\n if (maxWidth) {\n dropdownStyles[customCssProps.dropdownDefaultMaxWidth] = maxWidth;\n }\n return (\n <div\n className={clsx(styles.dropdown, dropdownClasses, {\n [styles.open]: open,\n [styles['with-limited-width']]: !matchTriggerWidth,\n [styles['hide-block-border']]: hideBlockBorder,\n [styles.interior]: interior,\n [styles.refresh]: isRefresh,\n [styles['use-portal']]: expandToViewport && !interior,\n [styles['use-flexible-width']]: !matchTriggerWidth && !interior,\n })}\n ref={contentRef}\n id={id}\n role={ariaRole}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n data-open={open}\n data-animating={state !== 'exited'}\n aria-hidden={!open}\n style={dropdownStyles}\n onMouseDown={onMouseDown}\n onFocus={onFocusEnter}\n onBlur={onFocusLeave}\n >\n <div\n className={clsx(\n styleClassNames?.dropdown,\n styles['dropdown-content-wrapper'],\n !header && !content && styles['is-empty'],\n isRefresh && styles.refresh\n )}\n style={dropdownStyle}\n >\n <div ref={verticalContainerRef} className={styles['dropdown-content']}>\n <DropdownContextProvider position={position}>\n {header && <div className={testUtilStyles.header}>{header}</div>}\n {content}\n {footer && <div className={testUtilStyles.footer}>{footer}</div>}\n </DropdownContextProvider>\n </div>\n </div>\n </div>\n );\n};\n\nconst InternalDropdown = ({\n content,\n trigger,\n triggerRef: externalTriggerRef,\n triggerId: externalTriggerId,\n open,\n onOutsideClick,\n onMouseDown,\n header,\n footer,\n dropdownId,\n stretchTriggerHeight = false,\n stretchHeight = false,\n minWidth,\n maxWidth,\n maxHeight,\n hideBlockBorder = true,\n expandToViewport = false,\n preferredAlignment = 'start',\n interior = false,\n scrollable = true,\n loopFocus = expandToViewport,\n onFocus,\n onBlur,\n onFocusEnter,\n onFocusLeave,\n onEscape,\n contentKey,\n dropdownContentId,\n ariaRole,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n style,\n styleClassNames,\n __internalRootRef,\n ...restProps\n}: InternalDropdownProps) => {\n const baseProps = getBaseProps(restProps);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergeRefs(wrapperRef, __internalRootRef);\n const internalTriggerRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const dropdownContainerRef = useRef<HTMLDivElement | null>(null);\n const verticalContainerRef = useRef<HTMLDivElement>(null);\n // To keep track of the initial position (drop up/down) which is kept the same during fixed repositioning\n const fixedPosition = useRef<DropdownPosition | null>(null);\n\n // Use external trigger ref if provided, otherwise use internal ref\n const triggerRef = externalTriggerRef || internalTriggerRef;\n\n const isRefresh = useVisualRefresh();\n\n // Tracks where the most recent pointer gesture started, so a gesture that begins\n // inside the dropdown but releases outside it (e.g. drag-to-reorder, text selection)\n // is not mistaken for an outside click.\n const getMouseDownTarget = useMouseDownTarget();\n\n const dropdownClasses = usePortalModeClasses(triggerRef);\n const [position, setPosition] = useState<DropdownContextProviderProps['position']>('bottom-right');\n\n const isMobile = useMobile();\n\n // Derive if dropdown should match trigger width exactly\n // This happens when both minWidth and maxWidth are explicitly set to 'trigger'\n const matchTriggerWidth = minWidth === 'trigger' && maxWidth === 'trigger';\n\n // Convert preferredAlignment to boolean for internal positioning logic\n const preferCenter = preferredAlignment === 'center';\n\n const setDropdownPosition = (\n position: DropdownPosition | InteriorDropdownPosition,\n triggerBox: LogicalDOMRect,\n target: HTMLDivElement,\n verticalContainer: HTMLDivElement\n ) => {\n verticalContainer.style.maxBlockSize = position.blockSize;\n\n // Only apply occupy-entire-width when matching trigger width exactly and not in portal mode\n if (!interior && matchTriggerWidth && !expandToViewport) {\n target.classList.add(styles['occupy-entire-width']);\n } else {\n target.style.inlineSize = position.inlineSize;\n }\n\n // Using styles for main dropdown to adjust its position as preferred alternative\n if (position.dropBlockStart && !interior) {\n target.classList.add(styles['dropdown-drop-up']);\n if (!expandToViewport) {\n target.style.insetBlockEnd = '100%';\n }\n } else {\n target.classList.remove(styles['dropdown-drop-up']);\n }\n target.classList.add(position.dropInlineStart ? styles['dropdown-drop-left'] : styles['dropdown-drop-right']);\n\n if (position.insetInlineStart && position.insetInlineStart !== 'auto') {\n target.style.insetInlineStart = position.insetInlineStart;\n }\n\n // Position normal overflow dropdowns with fixed positioning relative to viewport\n if (expandToViewport && !interior) {\n applyDropdownPositionRelativeToViewport({\n position,\n dropdownElement: target,\n triggerRect: triggerBox,\n isMobile,\n });\n // Keep track of the initial dropdown position and direction.\n // Dropdown direction doesn't need to change as the user scrolls, just needs to stay attached to the trigger.\n fixedPosition.current = position;\n return;\n }\n\n // For an interior dropdown (the fly out) we need exact values for positioning\n // and classes are not enough\n // usage of relative position is impossible due to overwrite of overflow-x\n if (interior && isInteriorPosition(position)) {\n if (position.dropBlockStart) {\n target.style.insetBlockEnd = position.insetBlockEnd;\n } else {\n target.style.insetBlockStart = position.insetBlockStart;\n }\n target.style.insetInlineStart = position.insetInlineStart;\n }\n\n if (position.dropBlockStart && position.dropInlineStart) {\n setPosition('top-left');\n } else if (position.dropBlockStart) {\n setPosition('top-right');\n } else if (position.dropInlineStart) {\n setPosition('bottom-left');\n } else {\n setPosition('bottom-right');\n }\n };\n\n const isOutsideDropdown = (element: Element) =>\n (!wrapperRef.current || !nodeBelongs(wrapperRef.current, element)) &&\n (!dropdownContainerRef.current || !nodeBelongs(dropdownContainerRef.current, element));\n\n const focusHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onFocus, event);\n }\n };\n\n const blurHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onBlur, event);\n }\n };\n\n const isOutsideDropdownContent = (element: Element) =>\n !dropdownRef.current || !nodeBelongs(dropdownRef.current, element);\n\n const focusEnterHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdownContent(event.relatedTarget)) {\n fireNonCancelableEvent(onFocusEnter, event);\n }\n };\n\n const focusLeaveHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdownContent(event.relatedTarget)) {\n fireNonCancelableEvent(onFocusLeave, event);\n }\n };\n\n // Check if the dropdown has enough space to fit with its desired width constraints\n // If not, remove the class that allows flexible width sizing\n const fixStretching = () => {\n const classNameToRemove = styles['use-flexible-width'];\n if (\n open &&\n dropdownRef.current &&\n triggerRef.current &&\n dropdownRef.current.classList.contains(classNameToRemove) &&\n !hasEnoughSpaceForFlexibleWidth({\n triggerElement: triggerRef.current,\n dropdownElement: dropdownRef.current,\n minWidthConstraint: minWidth,\n maxWidthConstraint: maxWidth,\n expandToViewport,\n stretchHeight,\n isMobile,\n })\n ) {\n dropdownRef.current.classList.remove(classNameToRemove);\n }\n };\n\n useResizeObserver(() => dropdownRef.current, fixStretching);\n\n useLayoutEffect(() => {\n const onDropdownOpen = () => {\n if (open && dropdownRef.current && triggerRef.current && verticalContainerRef.current) {\n if (scrollable) {\n dropdownRef.current.classList.add(styles.nowrap);\n }\n\n setDropdownPosition(\n ...calculatePosition(\n dropdownRef.current,\n triggerRef.current,\n verticalContainerRef.current,\n interior,\n expandToViewport,\n preferCenter,\n matchTriggerWidth,\n stretchHeight,\n isMobile,\n minWidth,\n maxWidth,\n maxHeight\n ),\n dropdownRef.current,\n verticalContainerRef.current\n );\n\n if (scrollable) {\n dropdownRef.current.classList.remove(styles.nowrap);\n }\n }\n };\n onDropdownOpen();\n\n if (open) {\n // window may scroll when dropdown opens, for example when soft keyboard shows up\n window.addEventListener('scroll', onDropdownOpen);\n // only listen to window scroll within very short time after the dropdown opens\n // do not want to interfere dropdown position on scroll afterwards\n const timeoutId = setTimeout(() => {\n window.removeEventListener('scroll', onDropdownOpen);\n }, 500);\n\n return () => {\n clearTimeout(timeoutId);\n window.removeEventListener('scroll', onDropdownOpen);\n };\n }\n // See AWSUI-13040\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, dropdownRef, triggerRef, verticalContainerRef, interior, matchTriggerWidth, isMobile, contentKey]);\n\n // subscribe to outside click\n useEffect(() => {\n if (!open) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n // The gesture's origin. A native `click` is dispatched on the common ancestor of the mousedown\n // and mouseup elements, so a gesture starting inside the dropdown but released just outside it\n // (drag-to-reorder, text selection, slider drags) resolves to a target outside the dropdown.\n // Considering the mousedown origin prevents closing the dropdown in those cases.\n const mouseDownTarget = getMouseDownTarget();\n // For internal triggers, the wrapper div itself counts as outside — only its children are the trigger.\n // For external triggers, the ref is the trigger element directly, so it counts as inside.\n const isOutsideTrigger =\n !nodeBelongs(triggerRef.current, target) || (!externalTriggerRef && target === triggerRef.current);\n\n if (\n !nodeBelongs(dropdownRef.current, target) &&\n !nodeBelongs(dropdownRef.current, mouseDownTarget) &&\n isOutsideTrigger\n ) {\n fireNonCancelableEvent(onOutsideClick);\n }\n };\n window.addEventListener('click', clickListener, true);\n\n return () => {\n window.removeEventListener('click', clickListener, true);\n };\n }, [open, onOutsideClick, triggerRef, externalTriggerRef, getMouseDownTarget]);\n\n // subscribe to Escape key press\n useEffect(() => {\n // Only add the listener if onEscape callback is provided\n if (!open || !onEscape) {\n return;\n }\n const keydownListener = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n // Prevent any surrounding modals or dialogs from acting on this Escape key\n event.stopPropagation();\n fireNonCancelableEvent(onEscape);\n }\n };\n window.addEventListener('keydown', keydownListener, true);\n\n return () => {\n window.removeEventListener('keydown', keydownListener, true);\n };\n }, [open, onEscape]);\n\n // sync dropdown position on scroll and resize\n useLayoutEffect(() => {\n if (!expandToViewport || !open) {\n return;\n }\n const updateDropdownPosition = () => {\n if (triggerRef.current && dropdownRef.current && verticalContainerRef.current && fixedPosition.current) {\n applyDropdownPositionRelativeToViewport({\n position: fixedPosition.current,\n dropdownElement: dropdownRef.current,\n triggerRect: getLogicalBoundingClientRect(triggerRef.current),\n isMobile,\n });\n }\n };\n\n updateDropdownPosition();\n\n const controller = new AbortController();\n window.addEventListener('scroll', updateDropdownPosition, { capture: true, signal: controller.signal });\n window.addEventListener('resize', updateDropdownPosition, { capture: true, signal: controller.signal });\n return () => {\n controller.abort();\n };\n }, [open, expandToViewport, isMobile, triggerRef]);\n\n const internalReferrerId = useUniqueId();\n const referrerId = externalTriggerId ?? internalReferrerId;\n\n // Compute CSS variable values for min/max width\n // These will be used by the use-flexible-width CSS class\n const getMinWidthCssValue = (): string | undefined => {\n if (minWidth === undefined) {\n return undefined;\n }\n if (typeof minWidth === 'number') {\n return `${minWidth}px`;\n }\n // 'trigger' maps to 100% (relative to parent)\n return '100%';\n };\n\n const getMaxWidthCssValue = (): string | undefined => {\n if (maxWidth === undefined) {\n return 'none';\n }\n if (typeof maxWidth === 'number') {\n return `${maxWidth}px`;\n }\n // 'trigger' maps to 100% (relative to parent)\n return '100%';\n };\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.root,\n interior && styles.interior,\n stretchTriggerHeight && styles['stretch-trigger-height'],\n baseProps.className\n )}\n ref={mergedRef}\n onFocus={focusHandler}\n onBlur={blurHandler}\n >\n {!externalTriggerRef && (\n <div\n id={referrerId}\n className={clsx(stretchTriggerHeight && styles['stretch-trigger-height'], testUtilStyles.trigger)}\n ref={internalTriggerRef}\n >\n {trigger}\n </div>\n )}\n\n <TabTrap\n focusNextCallback={() => dropdownRef.current && getFirstFocusable(dropdownRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <DropdownContainer\n triggerRef={triggerRef}\n renderWithPortal={expandToViewport && !interior}\n id={dropdownId}\n referrerId={referrerId}\n open={open}\n >\n <Transition in={open ?? false} exit={false}>\n {(state, ref) => (\n <div ref={dropdownContainerRef}>\n <TabTrap\n focusNextCallback={() => triggerRef.current && getLastFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <TransitionContent\n state={state}\n transitionRef={ref}\n dropdownClasses={dropdownClasses}\n open={open}\n matchTriggerWidth={matchTriggerWidth}\n hideBlockBorder={hideBlockBorder}\n interior={interior}\n header={header}\n content={content}\n expandToViewport={expandToViewport}\n minWidth={getMinWidthCssValue()}\n maxWidth={getMaxWidthCssValue()}\n footer={footer}\n onMouseDown={onMouseDown}\n onFocusEnter={focusEnterHandler}\n onFocusLeave={focusLeaveHandler}\n isRefresh={isRefresh}\n dropdownRef={dropdownRef}\n verticalContainerRef={verticalContainerRef}\n position={position}\n id={dropdownContentId}\n ariaRole={ariaRole}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescribedby={ariaDescribedby}\n dropdownStyle={getDropdownStyles(style)}\n styleClassNames={styleClassNames}\n />\n\n <TabTrap\n focusNextCallback={() => triggerRef.current && getFirstFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n </div>\n )}\n </Transition>\n </DropdownContainer>\n </div>\n );\n};\n\nconst isInteriorPosition = (\n position: DropdownPosition | InteriorDropdownPosition\n): position is InteriorDropdownPosition => (position as InteriorDropdownPosition).insetBlockEnd !== undefined;\n\nexport default InternalDropdown;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/dropdown/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAoB,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,cAAc,MAAM,6CAA6C,CAAC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AE,CAAA,CAAA,EAAA,EAC7F,QAAQ,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,GAC7B,CACE,CACP,CACU,CACK,CAChB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CACzB,QAAqD,EACf,EAAE,CAAE,QAAqC,CAAC,aAAa,KAAK,SAAS,CAAC;AAE9G,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useResizeObserver, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getLogicalBoundingClientRect } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable, getLastFocusable } from '../internal/components/focus-lock/utils.js';\nimport TabTrap from '../internal/components/tab-trap/index.js';\nimport { Transition, TransitionStatus } from '../internal/components/transition';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport useMouseDownTarget from '../internal/hooks/use-mouse-down-target';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { nodeBelongs } from '../internal/utils/node-belongs';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { DropdownContextProvider, DropdownContextProviderProps } from './context';\nimport {\n calculatePosition,\n DropdownPosition,\n hasEnoughSpaceForFlexibleWidth,\n InteriorDropdownPosition,\n} from './dropdown-fit-handler';\nimport { applyDropdownPositionRelativeToViewport, LogicalDOMRect } from './dropdown-position';\nimport { DropdownAlignment, DropdownProps, DropdownWidthConstraint } from './interfaces';\nimport { getDropdownStyles } from './style';\n\nexport interface InternalDropdownProps\n extends Omit<DropdownProps, 'minWidth' | 'maxWidth'>,\n InternalBaseComponentProps {\n onMouseDown?: React.MouseEventHandler;\n contentKey?: string;\n dropdownId?: string;\n dropdownContentId?: string;\n stretchHeight?: boolean;\n stretchTriggerHeight?: boolean;\n interior?: boolean;\n scrollable?: boolean;\n loopFocus?: boolean;\n minWidth?: DropdownWidthConstraint;\n maxWidth?: DropdownWidthConstraint;\n maxHeight?: number;\n preferredAlignment?: DropdownAlignment;\n hideBlockBorder?: boolean;\n onFocus?: NonCancelableEventHandler<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;\n onBlur?: NonCancelableEventHandler<Pick<React.FocusEvent, 'target' | 'relatedTarget'>>;\n triggerRef?: React.RefObject<HTMLElement>;\n triggerId?: string;\n styleClassNames?: StyleClassNames;\n}\n\n// Style API v2\nexport interface StyleClassNames {\n container?: string;\n}\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface DropdownContainerProps {\n triggerRef: React.RefObject<HTMLElement>;\n children?: React.ReactNode;\n renderWithPortal: boolean;\n id?: string;\n referrerId?: string;\n open?: boolean;\n}\n\nconst DropdownContainer = ({\n triggerRef,\n children,\n renderWithPortal,\n id,\n referrerId,\n open,\n}: DropdownContainerProps) => {\n if (!renderWithPortal) {\n return <>{children}</>;\n }\n if (!open) {\n return null;\n }\n const currentDocument = triggerRef.current?.ownerDocument ?? document;\n return createPortal(\n <div id={id} data-awsui-referrer-id={referrerId}>\n {children}\n </div>,\n currentDocument.body\n );\n};\n\ninterface TransitionContentProps {\n state: TransitionStatus;\n transitionRef: React.MutableRefObject<any>;\n dropdownClasses: string;\n matchTriggerWidth: boolean;\n hideBlockBorder: boolean;\n interior: boolean;\n isRefresh: boolean;\n dropdownRef: React.RefObject<HTMLDivElement>;\n verticalContainerRef: React.RefObject<HTMLDivElement>;\n expandToViewport?: boolean;\n minWidth?: string;\n maxWidth?: string;\n header?: React.ReactNode;\n content?: React.ReactNode;\n footer?: React.ReactNode;\n position?: DropdownContextProviderProps['position'];\n open?: boolean;\n onMouseDown?: React.MouseEventHandler<Element>;\n onFocusEnter?: React.FocusEventHandler<Element>;\n onFocusLeave?: React.FocusEventHandler<Element>;\n id?: string;\n ariaRole?: string;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n dropdownStyle?: React.CSSProperties;\n styleClassNames?: StyleClassNames;\n}\n\nconst TransitionContent = ({\n state,\n transitionRef,\n dropdownClasses,\n matchTriggerWidth,\n hideBlockBorder,\n interior,\n isRefresh,\n dropdownRef,\n verticalContainerRef,\n expandToViewport,\n minWidth,\n maxWidth,\n header,\n content,\n footer,\n position,\n open,\n onMouseDown,\n onFocusEnter,\n onFocusLeave,\n id,\n ariaRole,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n dropdownStyle,\n styleClassNames,\n}: TransitionContentProps) => {\n const contentRef = useMergeRefs(dropdownRef, transitionRef);\n const dropdownStyles: Record<string, string> = {};\n if (minWidth) {\n dropdownStyles[customCssProps.dropdownDefaultMinWidth] = minWidth;\n }\n if (maxWidth) {\n dropdownStyles[customCssProps.dropdownDefaultMaxWidth] = maxWidth;\n }\n return (\n <div\n className={clsx(styles.dropdown, dropdownClasses, {\n [styles.open]: open,\n [styles['with-limited-width']]: !matchTriggerWidth,\n [styles['hide-block-border']]: hideBlockBorder,\n [styles.interior]: interior,\n [styles.refresh]: isRefresh,\n [styles['use-portal']]: expandToViewport && !interior,\n [styles['use-flexible-width']]: !matchTriggerWidth && !interior,\n })}\n ref={contentRef}\n id={id}\n role={ariaRole}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n data-open={open}\n data-animating={state !== 'exited'}\n aria-hidden={!open}\n style={dropdownStyles}\n onMouseDown={onMouseDown}\n onFocus={onFocusEnter}\n onBlur={onFocusLeave}\n >\n <div\n className={clsx(\n styleClassNames?.container,\n styles['dropdown-content-wrapper'],\n !header && !content && styles['is-empty'],\n isRefresh && styles.refresh\n )}\n style={dropdownStyle}\n >\n <div ref={verticalContainerRef} className={styles['dropdown-content']}>\n <DropdownContextProvider position={position}>\n {header && <div className={testUtilStyles.header}>{header}</div>}\n {content}\n {footer && <div className={testUtilStyles.footer}>{footer}</div>}\n </DropdownContextProvider>\n </div>\n </div>\n </div>\n );\n};\n\nconst InternalDropdown = ({\n content,\n trigger,\n triggerRef: externalTriggerRef,\n triggerId: externalTriggerId,\n open,\n onOutsideClick,\n onMouseDown,\n header,\n footer,\n dropdownId,\n stretchTriggerHeight = false,\n stretchHeight = false,\n minWidth,\n maxWidth,\n maxHeight,\n hideBlockBorder = true,\n expandToViewport = false,\n preferredAlignment = 'start',\n interior = false,\n scrollable = true,\n loopFocus = expandToViewport,\n onFocus,\n onBlur,\n onFocusEnter,\n onFocusLeave,\n onEscape,\n contentKey,\n dropdownContentId,\n ariaRole,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n style,\n styleClassNames,\n __internalRootRef,\n ...restProps\n}: InternalDropdownProps) => {\n const baseProps = getBaseProps(restProps);\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergeRefs(wrapperRef, __internalRootRef);\n const internalTriggerRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const dropdownContainerRef = useRef<HTMLDivElement | null>(null);\n const verticalContainerRef = useRef<HTMLDivElement>(null);\n // To keep track of the initial position (drop up/down) which is kept the same during fixed repositioning\n const fixedPosition = useRef<DropdownPosition | null>(null);\n\n // Use external trigger ref if provided, otherwise use internal ref\n const triggerRef = externalTriggerRef || internalTriggerRef;\n\n const isRefresh = useVisualRefresh();\n\n // Tracks where the most recent pointer gesture started, so a gesture that begins\n // inside the dropdown but releases outside it (e.g. drag-to-reorder, text selection)\n // is not mistaken for an outside click.\n const getMouseDownTarget = useMouseDownTarget();\n\n const dropdownClasses = usePortalModeClasses(triggerRef);\n const [position, setPosition] = useState<DropdownContextProviderProps['position']>('bottom-right');\n\n const isMobile = useMobile();\n\n // Derive if dropdown should match trigger width exactly\n // This happens when both minWidth and maxWidth are explicitly set to 'trigger'\n const matchTriggerWidth = minWidth === 'trigger' && maxWidth === 'trigger';\n\n // Convert preferredAlignment to boolean for internal positioning logic\n const preferCenter = preferredAlignment === 'center';\n\n const setDropdownPosition = (\n position: DropdownPosition | InteriorDropdownPosition,\n triggerBox: LogicalDOMRect,\n target: HTMLDivElement,\n verticalContainer: HTMLDivElement\n ) => {\n verticalContainer.style.maxBlockSize = position.blockSize;\n\n // Only apply occupy-entire-width when matching trigger width exactly and not in portal mode\n if (!interior && matchTriggerWidth && !expandToViewport) {\n target.classList.add(styles['occupy-entire-width']);\n } else {\n target.style.inlineSize = position.inlineSize;\n }\n\n // Using styles for main dropdown to adjust its position as preferred alternative\n if (position.dropBlockStart && !interior) {\n target.classList.add(styles['dropdown-drop-up']);\n if (!expandToViewport) {\n target.style.insetBlockEnd = '100%';\n }\n } else {\n target.classList.remove(styles['dropdown-drop-up']);\n }\n target.classList.add(position.dropInlineStart ? styles['dropdown-drop-left'] : styles['dropdown-drop-right']);\n\n if (position.insetInlineStart && position.insetInlineStart !== 'auto') {\n target.style.insetInlineStart = position.insetInlineStart;\n }\n\n // Position normal overflow dropdowns with fixed positioning relative to viewport\n if (expandToViewport && !interior) {\n applyDropdownPositionRelativeToViewport({\n position,\n dropdownElement: target,\n triggerRect: triggerBox,\n isMobile,\n });\n // Keep track of the initial dropdown position and direction.\n // Dropdown direction doesn't need to change as the user scrolls, just needs to stay attached to the trigger.\n fixedPosition.current = position;\n return;\n }\n\n // For an interior dropdown (the fly out) we need exact values for positioning\n // and classes are not enough\n // usage of relative position is impossible due to overwrite of overflow-x\n if (interior && isInteriorPosition(position)) {\n if (position.dropBlockStart) {\n target.style.insetBlockEnd = position.insetBlockEnd;\n } else {\n target.style.insetBlockStart = position.insetBlockStart;\n }\n target.style.insetInlineStart = position.insetInlineStart;\n }\n\n if (position.dropBlockStart && position.dropInlineStart) {\n setPosition('top-left');\n } else if (position.dropBlockStart) {\n setPosition('top-right');\n } else if (position.dropInlineStart) {\n setPosition('bottom-left');\n } else {\n setPosition('bottom-right');\n }\n };\n\n const isOutsideDropdown = (element: Element) =>\n (!wrapperRef.current || !nodeBelongs(wrapperRef.current, element)) &&\n (!dropdownContainerRef.current || !nodeBelongs(dropdownContainerRef.current, element));\n\n const focusHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onFocus, event);\n }\n };\n\n const blurHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onBlur, event);\n }\n };\n\n const isOutsideDropdownContent = (element: Element) =>\n !dropdownRef.current || !nodeBelongs(dropdownRef.current, element);\n\n const focusEnterHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdownContent(event.relatedTarget)) {\n fireNonCancelableEvent(onFocusEnter, event);\n }\n };\n\n const focusLeaveHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdownContent(event.relatedTarget)) {\n fireNonCancelableEvent(onFocusLeave, event);\n }\n };\n\n // Check if the dropdown has enough space to fit with its desired width constraints\n // If not, remove the class that allows flexible width sizing\n const fixStretching = () => {\n const classNameToRemove = styles['use-flexible-width'];\n if (\n open &&\n dropdownRef.current &&\n triggerRef.current &&\n dropdownRef.current.classList.contains(classNameToRemove) &&\n !hasEnoughSpaceForFlexibleWidth({\n triggerElement: triggerRef.current,\n dropdownElement: dropdownRef.current,\n minWidthConstraint: minWidth,\n maxWidthConstraint: maxWidth,\n expandToViewport,\n stretchHeight,\n isMobile,\n })\n ) {\n dropdownRef.current.classList.remove(classNameToRemove);\n }\n };\n\n useResizeObserver(() => dropdownRef.current, fixStretching);\n\n useLayoutEffect(() => {\n const onDropdownOpen = () => {\n if (open && dropdownRef.current && triggerRef.current && verticalContainerRef.current) {\n if (scrollable) {\n dropdownRef.current.classList.add(styles.nowrap);\n }\n\n setDropdownPosition(\n ...calculatePosition(\n dropdownRef.current,\n triggerRef.current,\n verticalContainerRef.current,\n interior,\n expandToViewport,\n preferCenter,\n matchTriggerWidth,\n stretchHeight,\n isMobile,\n minWidth,\n maxWidth,\n maxHeight\n ),\n dropdownRef.current,\n verticalContainerRef.current\n );\n\n if (scrollable) {\n dropdownRef.current.classList.remove(styles.nowrap);\n }\n }\n };\n onDropdownOpen();\n\n if (open) {\n // window may scroll when dropdown opens, for example when soft keyboard shows up\n window.addEventListener('scroll', onDropdownOpen);\n // only listen to window scroll within very short time after the dropdown opens\n // do not want to interfere dropdown position on scroll afterwards\n const timeoutId = setTimeout(() => {\n window.removeEventListener('scroll', onDropdownOpen);\n }, 500);\n\n return () => {\n clearTimeout(timeoutId);\n window.removeEventListener('scroll', onDropdownOpen);\n };\n }\n // See AWSUI-13040\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, dropdownRef, triggerRef, verticalContainerRef, interior, matchTriggerWidth, isMobile, contentKey]);\n\n // subscribe to outside click\n useEffect(() => {\n if (!open) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n // The gesture's origin. A native `click` is dispatched on the common ancestor of the mousedown\n // and mouseup elements, so a gesture starting inside the dropdown but released just outside it\n // (drag-to-reorder, text selection, slider drags) resolves to a target outside the dropdown.\n // Considering the mousedown origin prevents closing the dropdown in those cases.\n const mouseDownTarget = getMouseDownTarget();\n // For internal triggers, the wrapper div itself counts as outside — only its children are the trigger.\n // For external triggers, the ref is the trigger element directly, so it counts as inside.\n const isOutsideTrigger =\n !nodeBelongs(triggerRef.current, target) || (!externalTriggerRef && target === triggerRef.current);\n\n if (\n !nodeBelongs(dropdownRef.current, target) &&\n !nodeBelongs(dropdownRef.current, mouseDownTarget) &&\n isOutsideTrigger\n ) {\n fireNonCancelableEvent(onOutsideClick);\n }\n };\n window.addEventListener('click', clickListener, true);\n\n return () => {\n window.removeEventListener('click', clickListener, true);\n };\n }, [open, onOutsideClick, triggerRef, externalTriggerRef, getMouseDownTarget]);\n\n // subscribe to Escape key press\n useEffect(() => {\n // Only add the listener if onEscape callback is provided\n if (!open || !onEscape) {\n return;\n }\n const keydownListener = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n // Prevent any surrounding modals or dialogs from acting on this Escape key\n event.stopPropagation();\n fireNonCancelableEvent(onEscape);\n }\n };\n window.addEventListener('keydown', keydownListener, true);\n\n return () => {\n window.removeEventListener('keydown', keydownListener, true);\n };\n }, [open, onEscape]);\n\n // sync dropdown position on scroll and resize\n useLayoutEffect(() => {\n if (!expandToViewport || !open) {\n return;\n }\n const updateDropdownPosition = () => {\n if (triggerRef.current && dropdownRef.current && verticalContainerRef.current && fixedPosition.current) {\n applyDropdownPositionRelativeToViewport({\n position: fixedPosition.current,\n dropdownElement: dropdownRef.current,\n triggerRect: getLogicalBoundingClientRect(triggerRef.current),\n isMobile,\n });\n }\n };\n\n updateDropdownPosition();\n\n const controller = new AbortController();\n window.addEventListener('scroll', updateDropdownPosition, { capture: true, signal: controller.signal });\n window.addEventListener('resize', updateDropdownPosition, { capture: true, signal: controller.signal });\n return () => {\n controller.abort();\n };\n }, [open, expandToViewport, isMobile, triggerRef]);\n\n const internalReferrerId = useUniqueId();\n const referrerId = externalTriggerId ?? internalReferrerId;\n\n // Compute CSS variable values for min/max width\n // These will be used by the use-flexible-width CSS class\n const getMinWidthCssValue = (): string | undefined => {\n if (minWidth === undefined) {\n return undefined;\n }\n if (typeof minWidth === 'number') {\n return `${minWidth}px`;\n }\n // 'trigger' maps to 100% (relative to parent)\n return '100%';\n };\n\n const getMaxWidthCssValue = (): string | undefined => {\n if (maxWidth === undefined) {\n return 'none';\n }\n if (typeof maxWidth === 'number') {\n return `${maxWidth}px`;\n }\n // 'trigger' maps to 100% (relative to parent)\n return '100%';\n };\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.root,\n interior && styles.interior,\n stretchTriggerHeight && styles['stretch-trigger-height'],\n baseProps.className\n )}\n ref={mergedRef}\n onFocus={focusHandler}\n onBlur={blurHandler}\n >\n {!externalTriggerRef && (\n <div\n id={referrerId}\n className={clsx(stretchTriggerHeight && styles['stretch-trigger-height'], testUtilStyles.trigger)}\n ref={internalTriggerRef}\n >\n {trigger}\n </div>\n )}\n\n <TabTrap\n focusNextCallback={() => dropdownRef.current && getFirstFocusable(dropdownRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <DropdownContainer\n triggerRef={triggerRef}\n renderWithPortal={expandToViewport && !interior}\n id={dropdownId}\n referrerId={referrerId}\n open={open}\n >\n <Transition in={open ?? false} exit={false}>\n {(state, ref) => (\n <div ref={dropdownContainerRef}>\n <TabTrap\n focusNextCallback={() => triggerRef.current && getLastFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <TransitionContent\n state={state}\n transitionRef={ref}\n dropdownClasses={dropdownClasses}\n open={open}\n matchTriggerWidth={matchTriggerWidth}\n hideBlockBorder={hideBlockBorder}\n interior={interior}\n header={header}\n content={content}\n expandToViewport={expandToViewport}\n minWidth={getMinWidthCssValue()}\n maxWidth={getMaxWidthCssValue()}\n footer={footer}\n onMouseDown={onMouseDown}\n onFocusEnter={focusEnterHandler}\n onFocusLeave={focusLeaveHandler}\n isRefresh={isRefresh}\n dropdownRef={dropdownRef}\n verticalContainerRef={verticalContainerRef}\n position={position}\n id={dropdownContentId}\n ariaRole={ariaRole}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n ariaDescribedby={ariaDescribedby}\n dropdownStyle={getDropdownStyles(style)}\n styleClassNames={styleClassNames}\n />\n\n <TabTrap\n focusNextCallback={() => triggerRef.current && getFirstFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n </div>\n )}\n </Transition>\n </DropdownContainer>\n </div>\n );\n};\n\nconst isInteriorPosition = (\n position: DropdownPosition | InteriorDropdownPosition\n): position is InteriorDropdownPosition => (position as InteriorDropdownPosition).insetBlockEnd !== undefined;\n\nexport default InternalDropdown;\n"]}
@@ -1,25 +1,25 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_9duf6_qe16g_13",
5
- "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_9duf6_qe16g_1",
6
- "refresh": "awsui_refresh_9duf6_qe16g_34",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_9duf6_qe16g_1",
8
- "root": "awsui_root_9duf6_qe16g_70",
9
- "interior": "awsui_interior_9duf6_qe16g_103",
10
- "dropdown": "awsui_dropdown_9duf6_qe16g_13",
11
- "use-portal": "awsui_use-portal_9duf6_qe16g_113",
12
- "is-empty": "awsui_is-empty_9duf6_qe16g_191",
13
- "dropdown-drop-up": "awsui_dropdown-drop-up_9duf6_qe16g_198",
14
- "with-limited-width": "awsui_with-limited-width_9duf6_qe16g_202",
15
- "dropdown-drop-left": "awsui_dropdown-drop-left_9duf6_qe16g_205",
16
- "dropdown-drop-right": "awsui_dropdown-drop-right_9duf6_qe16g_208",
17
- "occupy-entire-width": "awsui_occupy-entire-width_9duf6_qe16g_211",
18
- "use-flexible-width": "awsui_use-flexible-width_9duf6_qe16g_214",
19
- "hide-block-border": "awsui_hide-block-border_9duf6_qe16g_222",
20
- "open": "awsui_open_9duf6_qe16g_231",
21
- "nowrap": "awsui_nowrap_9duf6_qe16g_240",
22
- "dropdown-content": "awsui_dropdown-content_9duf6_qe16g_13",
23
- "stretch-trigger-height": "awsui_stretch-trigger-height_9duf6_qe16g_251"
4
+ "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_9duf6_1eld9_13",
5
+ "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_9duf6_1eld9_1",
6
+ "refresh": "awsui_refresh_9duf6_1eld9_34",
7
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_9duf6_1eld9_1",
8
+ "root": "awsui_root_9duf6_1eld9_70",
9
+ "interior": "awsui_interior_9duf6_1eld9_103",
10
+ "dropdown": "awsui_dropdown_9duf6_1eld9_13",
11
+ "use-portal": "awsui_use-portal_9duf6_1eld9_113",
12
+ "is-empty": "awsui_is-empty_9duf6_1eld9_191",
13
+ "dropdown-drop-up": "awsui_dropdown-drop-up_9duf6_1eld9_198",
14
+ "with-limited-width": "awsui_with-limited-width_9duf6_1eld9_202",
15
+ "dropdown-drop-left": "awsui_dropdown-drop-left_9duf6_1eld9_205",
16
+ "dropdown-drop-right": "awsui_dropdown-drop-right_9duf6_1eld9_208",
17
+ "occupy-entire-width": "awsui_occupy-entire-width_9duf6_1eld9_211",
18
+ "use-flexible-width": "awsui_use-flexible-width_9duf6_1eld9_214",
19
+ "hide-block-border": "awsui_hide-block-border_9duf6_1eld9_222",
20
+ "open": "awsui_open_9duf6_1eld9_231",
21
+ "nowrap": "awsui_nowrap_9duf6_1eld9_240",
22
+ "dropdown-content": "awsui_dropdown-content_9duf6_1eld9_13",
23
+ "stretch-trigger-height": "awsui_stretch-trigger-height_9duf6_1eld9_251"
24
24
  };
25
25
 
@@ -10,10 +10,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
10
10
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
11
  SPDX-License-Identifier: Apache-2.0
12
12
  */
13
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
14
- animation: awsui_awsui-motion-fade-in-dropdown_9duf6_qe16g_1 var(--motion-duration-show-quick-4iaca1, 135ms) var(--motion-easing-show-quick-mfgaht, ease-out);
13
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
14
+ animation: awsui_awsui-motion-fade-in-dropdown_9duf6_1eld9_1 var(--motion-duration-show-quick-4iaca1, 135ms) var(--motion-easing-show-quick-mfgaht, ease-out);
15
15
  }
16
- @keyframes awsui_awsui-motion-fade-in-dropdown_9duf6_qe16g_1 {
16
+ @keyframes awsui_awsui-motion-fade-in-dropdown_9duf6_1eld9_1 {
17
17
  from {
18
18
  opacity: 0.4;
19
19
  }
@@ -22,22 +22,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
22
22
  }
23
23
  }
24
24
  @media (prefers-reduced-motion: reduce) {
25
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
25
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
26
26
  animation: none;
27
27
  transition: none;
28
28
  }
29
29
  }
30
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
30
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
31
31
  animation: none;
32
32
  transition: none;
33
33
  }
34
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13.awsui_refresh_9duf6_qe16g_34:not(#\9) {
34
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13.awsui_refresh_9duf6_1eld9_34:not(#\9) {
35
35
  transform-origin: top;
36
- animation-name: awsui_awsui-motion-fade-in-0_9duf6_qe16g_1;
36
+ animation-name: awsui_awsui-motion-fade-in-0_9duf6_1eld9_1;
37
37
  animation-duration: var(--motion-duration-show-quick-4iaca1, 135ms);
38
38
  animation-timing-function: var(--motion-easing-show-quick-mfgaht, ease-out);
39
39
  }
40
- @keyframes awsui_awsui-motion-fade-in-0_9duf6_qe16g_1 {
40
+ @keyframes awsui_awsui-motion-fade-in-0_9duf6_1eld9_1 {
41
41
  from {
42
42
  opacity: 0;
43
43
  }
@@ -46,12 +46,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
46
46
  }
47
47
  }
48
48
  @media (prefers-reduced-motion: reduce) {
49
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13.awsui_refresh_9duf6_qe16g_34:not(#\9) {
49
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13.awsui_refresh_9duf6_1eld9_34:not(#\9) {
50
50
  animation: none;
51
51
  transition: none;
52
52
  }
53
53
  }
54
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_9duf6_qe16g_13.awsui_refresh_9duf6_qe16g_34:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_9duf6_qe16g_13.awsui_refresh_9duf6_qe16g_34:not(#\9) {
54
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_9duf6_1eld9_13.awsui_refresh_9duf6_1eld9_34:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_9duf6_1eld9_13.awsui_refresh_9duf6_1eld9_34:not(#\9) {
55
55
  animation: none;
56
56
  transition: none;
57
57
  }
@@ -64,10 +64,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
64
64
  syntax: "*";
65
65
  inherits: false;
66
66
  }
67
- /* awsui:style-api-slot name=dropdown tokens=outline-color, outline-width properties=background, border-radius, box-shadow */
68
- /* awsui:style-api-description slot=dropdown kind=token name=outline-color text=Color of the line drawn over the dropdown edges. Unlike a border, it takes no space. */
69
- /* awsui:style-api-description slot=dropdown kind=token name=outline-width text=Width of the line drawn over the dropdown edges. Unlike a border, it takes no space. */
70
- .awsui_root_9duf6_qe16g_70:not(#\9) {
67
+ /* awsui:style-api-slot name=container tokens=outline-color, outline-width properties=background, border-radius, box-shadow */
68
+ /* awsui:style-api-description slot=container kind=token name=outline-color text=Color of the line drawn over the dropdown edges. Unlike a border, it takes no space. */
69
+ /* awsui:style-api-description slot=container kind=token name=outline-width text=Width of the line drawn over the dropdown edges. Unlike a border, it takes no space. */
70
+ .awsui_root_9duf6_1eld9_70:not(#\9) {
71
71
  border-collapse: separate;
72
72
  border-spacing: 0;
73
73
  box-sizing: border-box;
@@ -100,34 +100,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
100
100
  position: relative;
101
101
  white-space: inherit;
102
102
  }
103
- .awsui_root_9duf6_qe16g_70.awsui_interior_9duf6_qe16g_103:not(#\9) {
103
+ .awsui_root_9duf6_1eld9_70.awsui_interior_9duf6_1eld9_103:not(#\9) {
104
104
  position: static;
105
105
  }
106
106
 
107
- .awsui_dropdown_9duf6_qe16g_13:not(#\9) {
107
+ .awsui_dropdown_9duf6_1eld9_13:not(#\9) {
108
108
  position: absolute;
109
109
  display: none;
110
110
  z-index: 2000;
111
111
  transform-origin: top;
112
112
  }
113
- .awsui_dropdown_9duf6_qe16g_13.awsui_use-portal_9duf6_qe16g_113:not(#\9) {
113
+ .awsui_dropdown_9duf6_1eld9_13.awsui_use-portal_9duf6_1eld9_113:not(#\9) {
114
114
  z-index: 7000;
115
115
  }
116
- .awsui_dropdown_9duf6_qe16g_13:not(#\9):not(.awsui_interior_9duf6_qe16g_103) {
116
+ .awsui_dropdown_9duf6_1eld9_13:not(#\9):not(.awsui_interior_9duf6_1eld9_103) {
117
117
  transform: translateY(0px);
118
118
  transition: transform var(--motion-duration-show-quick-4iaca1, 135ms);
119
119
  }
120
120
  @media (prefers-reduced-motion: reduce) {
121
- .awsui_dropdown_9duf6_qe16g_13:not(#\9):not(.awsui_interior_9duf6_qe16g_103) {
121
+ .awsui_dropdown_9duf6_1eld9_13:not(#\9):not(.awsui_interior_9duf6_1eld9_103) {
122
122
  animation: none;
123
123
  transition: none;
124
124
  }
125
125
  }
126
- .awsui-motion-disabled .awsui_dropdown_9duf6_qe16g_13:not(#\9):not(.awsui_interior_9duf6_qe16g_103), .awsui-mode-entering .awsui_dropdown_9duf6_qe16g_13:not(#\9):not(.awsui_interior_9duf6_qe16g_103) {
126
+ .awsui-motion-disabled .awsui_dropdown_9duf6_1eld9_13:not(#\9):not(.awsui_interior_9duf6_1eld9_103), .awsui-mode-entering .awsui_dropdown_9duf6_1eld9_13:not(#\9):not(.awsui_interior_9duf6_1eld9_103) {
127
127
  animation: none;
128
128
  transition: none;
129
129
  }
130
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
130
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
131
131
  border-collapse: separate;
132
132
  border-spacing: 0;
133
133
  box-sizing: border-box;
@@ -164,14 +164,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
164
164
  background-color: var(--color-background-dropdown-item-default-ietiqg, #ffffff);
165
165
  outline: none;
166
166
  box-shadow: var(--shadow-dropdown-py0mls, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
167
- border-start-start-radius: var(--awsui-dropdown-content-border-radius-ka4djm, var(--border-radius-dropdown-a5d2oz, 8px));
168
- border-start-end-radius: var(--awsui-dropdown-content-border-radius-ka4djm, var(--border-radius-dropdown-a5d2oz, 8px));
169
- border-end-start-radius: var(--awsui-dropdown-content-border-radius-ka4djm, var(--border-radius-dropdown-a5d2oz, 8px));
170
- border-end-end-radius: var(--awsui-dropdown-content-border-radius-ka4djm, var(--border-radius-dropdown-a5d2oz, 8px));
167
+ border-start-start-radius: var(--awsui-dropdown-content-border-radius-8i8exb, var(--border-radius-dropdown-a5d2oz, 8px));
168
+ border-start-end-radius: var(--awsui-dropdown-content-border-radius-8i8exb, var(--border-radius-dropdown-a5d2oz, 8px));
169
+ border-end-start-radius: var(--awsui-dropdown-content-border-radius-8i8exb, var(--border-radius-dropdown-a5d2oz, 8px));
170
+ border-end-end-radius: var(--awsui-dropdown-content-border-radius-8i8exb, var(--border-radius-dropdown-a5d2oz, 8px));
171
171
  border-block: var(--border-divider-list-width-q8ujlb, 1px) solid var(--color-border-container-top-scqdhd, transparent);
172
172
  box-sizing: border-box;
173
173
  }
174
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9)::after {
174
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9)::after {
175
175
  content: "";
176
176
  position: absolute;
177
177
  z-index: 1;
@@ -180,74 +180,74 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
180
180
  inset-inline-start: 0px;
181
181
  inset-inline-end: 0px;
182
182
  background-color: transparent;
183
- border-block: var(--awsui-internal-style-outline-width, var(--awsui-dropdown-content-border-width-ka4djm, var(--border-width-popover-n0wkrq, 2px))) solid var(--awsui-internal-style-outline-color, var(--awsui-dropdown-content-border-color-ka4djm, var(--color-border-dropdown-container-1m4bci, #b4b4bb)));
184
- border-inline: var(--awsui-internal-style-outline-width, var(--awsui-dropdown-content-border-width-ka4djm, var(--border-width-popover-n0wkrq, 2px))) solid var(--awsui-internal-style-outline-color, var(--awsui-dropdown-content-border-color-ka4djm, var(--color-border-dropdown-container-1m4bci, #b4b4bb)));
183
+ border-block: var(--awsui-internal-style-outline-width, var(--awsui-dropdown-content-border-width-8i8exb, var(--border-width-popover-n0wkrq, 2px))) solid var(--awsui-internal-style-outline-color, var(--awsui-dropdown-content-border-color-8i8exb, var(--color-border-dropdown-container-1m4bci, #b4b4bb)));
184
+ border-inline: var(--awsui-internal-style-outline-width, var(--awsui-dropdown-content-border-width-8i8exb, var(--border-width-popover-n0wkrq, 2px))) solid var(--awsui-internal-style-outline-color, var(--awsui-dropdown-content-border-color-8i8exb, var(--color-border-dropdown-container-1m4bci, #b4b4bb)));
185
185
  border-start-start-radius: inherit;
186
186
  border-start-end-radius: inherit;
187
187
  border-end-start-radius: inherit;
188
188
  border-end-end-radius: inherit;
189
189
  pointer-events: none;
190
190
  }
191
- .awsui_dropdown-content-wrapper_9duf6_qe16g_13.awsui_is-empty_9duf6_qe16g_191:not(#\9)::after {
191
+ .awsui_dropdown-content-wrapper_9duf6_1eld9_13.awsui_is-empty_9duf6_1eld9_191:not(#\9)::after {
192
192
  display: none;
193
193
  }
194
- .awsui_dropdown_9duf6_qe16g_13 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
194
+ .awsui_dropdown_9duf6_1eld9_13 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
195
195
  border-block-start: var(--border-divider-list-width-q8ujlb, 1px) solid var(--color-border-container-top-scqdhd, transparent);
196
196
  border-block-end: var(--border-divider-list-width-q8ujlb, 1px) solid var(--color-border-dropdown-group-xlzbiz, #c6c6cd);
197
197
  }
198
- .awsui_dropdown-drop-up_9duf6_qe16g_198 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
198
+ .awsui_dropdown-drop-up_9duf6_1eld9_198 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
199
199
  transform-origin: bottom;
200
200
  box-shadow: var(--shadow-dropup-4iqvjn, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
201
201
  }
202
- .awsui_dropdown-drop-up_9duf6_qe16g_198.awsui_with-limited-width_9duf6_qe16g_202 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
202
+ .awsui_dropdown-drop-up_9duf6_1eld9_198.awsui_with-limited-width_9duf6_1eld9_202 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
203
203
  border-block-start: none;
204
204
  }
205
- .awsui_dropdown-drop-left_9duf6_qe16g_205:not(#\9) {
205
+ .awsui_dropdown-drop-left_9duf6_1eld9_205:not(#\9) {
206
206
  inset-inline-end: 0;
207
207
  }
208
- .awsui_dropdown-drop-right_9duf6_qe16g_208:not(#\9) {
208
+ .awsui_dropdown-drop-right_9duf6_1eld9_208:not(#\9) {
209
209
  inset-inline-start: 0;
210
210
  }
211
- .awsui_dropdown_9duf6_qe16g_13.awsui_occupy-entire-width_9duf6_qe16g_211:not(#\9) {
211
+ .awsui_dropdown_9duf6_1eld9_13.awsui_occupy-entire-width_9duf6_1eld9_211:not(#\9) {
212
212
  min-inline-size: 100%;
213
213
  }
214
- .awsui_dropdown_9duf6_qe16g_13.awsui_use-flexible-width_9duf6_qe16g_214:not(#\9) {
214
+ .awsui_dropdown_9duf6_1eld9_13.awsui_use-flexible-width_9duf6_1eld9_214:not(#\9) {
215
215
  inline-size: max-content;
216
- max-inline-size: var(--awsui-dropdown-default-max-width-ka4djm, none);
217
- min-inline-size: var(--awsui-dropdown-default-min-width-ka4djm, auto);
216
+ max-inline-size: var(--awsui-dropdown-default-max-width-8i8exb, none);
217
+ min-inline-size: var(--awsui-dropdown-default-min-width-8i8exb, auto);
218
218
  }
219
- .awsui_dropdown_9duf6_qe16g_13.awsui_interior_9duf6_qe16g_103 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
219
+ .awsui_dropdown_9duf6_1eld9_13.awsui_interior_9duf6_1eld9_103 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
220
220
  margin-block-start: -1px;
221
221
  }
222
- .awsui_dropdown_9duf6_qe16g_13.awsui_hide-block-border_9duf6_qe16g_222 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
222
+ .awsui_dropdown_9duf6_1eld9_13.awsui_hide-block-border_9duf6_1eld9_222 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
223
223
  border-block-start: none;
224
224
  }
225
- .awsui_dropdown_9duf6_qe16g_13.awsui_hide-block-border_9duf6_qe16g_222:not(#\9):not(.awsui_dropdown-drop-up_9duf6_qe16g_198) > .awsui_dropdown-content-wrapper_9duf6_qe16g_13 {
225
+ .awsui_dropdown_9duf6_1eld9_13.awsui_hide-block-border_9duf6_1eld9_222:not(#\9):not(.awsui_dropdown-drop-up_9duf6_1eld9_198) > .awsui_dropdown-content-wrapper_9duf6_1eld9_13 {
226
226
  border-block-end: none;
227
227
  }
228
- .awsui_dropdown_9duf6_qe16g_13.awsui_hide-block-border_9duf6_qe16g_222.awsui_refresh_9duf6_qe16g_34 > .awsui_dropdown-content-wrapper_9duf6_qe16g_13:not(#\9) {
228
+ .awsui_dropdown_9duf6_1eld9_13.awsui_hide-block-border_9duf6_1eld9_222.awsui_refresh_9duf6_1eld9_34 > .awsui_dropdown-content-wrapper_9duf6_1eld9_13:not(#\9) {
229
229
  border-block-end: none;
230
230
  }
231
- .awsui_dropdown_9duf6_qe16g_13.awsui_open_9duf6_qe16g_231:not(#\9) {
231
+ .awsui_dropdown_9duf6_1eld9_13.awsui_open_9duf6_1eld9_231:not(#\9) {
232
232
  display: block;
233
233
  }
234
- .awsui_dropdown_9duf6_qe16g_13.awsui_open_9duf6_qe16g_231:not(#\9):not(.awsui_interior_9duf6_qe16g_103).awsui_refresh_9duf6_qe16g_34[data-animating=true] {
234
+ .awsui_dropdown_9duf6_1eld9_13.awsui_open_9duf6_1eld9_231:not(#\9):not(.awsui_interior_9duf6_1eld9_103).awsui_refresh_9duf6_1eld9_34[data-animating=true] {
235
235
  transform: translateY(4px);
236
236
  }
237
- .awsui_dropdown_9duf6_qe16g_13.awsui_open_9duf6_qe16g_231:not(#\9):not(.awsui_interior_9duf6_qe16g_103).awsui_refresh_9duf6_qe16g_34[data-animating=true].awsui_dropdown-drop-up_9duf6_qe16g_198 {
237
+ .awsui_dropdown_9duf6_1eld9_13.awsui_open_9duf6_1eld9_231:not(#\9):not(.awsui_interior_9duf6_1eld9_103).awsui_refresh_9duf6_1eld9_34[data-animating=true].awsui_dropdown-drop-up_9duf6_1eld9_198 {
238
238
  transform: translateY(-4px);
239
239
  }
240
- .awsui_dropdown_9duf6_qe16g_13.awsui_open_9duf6_qe16g_231.awsui_nowrap_9duf6_qe16g_240:not(#\9) {
240
+ .awsui_dropdown_9duf6_1eld9_13.awsui_open_9duf6_1eld9_231.awsui_nowrap_9duf6_1eld9_240:not(#\9) {
241
241
  white-space: nowrap;
242
242
  overflow: scroll;
243
243
  }
244
244
 
245
- .awsui_dropdown-content_9duf6_qe16g_13:not(#\9) {
245
+ .awsui_dropdown-content_9duf6_1eld9_13:not(#\9) {
246
246
  display: flex;
247
247
  flex-direction: column;
248
248
  inline-size: 100%;
249
249
  }
250
250
 
251
- .awsui_stretch-trigger-height_9duf6_qe16g_251:not(#\9) {
251
+ .awsui_stretch-trigger-height_9duf6_1eld9_251:not(#\9) {
252
252
  block-size: 100%;
253
253
  }
@@ -2,25 +2,25 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_9duf6_qe16g_13",
6
- "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_9duf6_qe16g_1",
7
- "refresh": "awsui_refresh_9duf6_qe16g_34",
8
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_9duf6_qe16g_1",
9
- "root": "awsui_root_9duf6_qe16g_70",
10
- "interior": "awsui_interior_9duf6_qe16g_103",
11
- "dropdown": "awsui_dropdown_9duf6_qe16g_13",
12
- "use-portal": "awsui_use-portal_9duf6_qe16g_113",
13
- "is-empty": "awsui_is-empty_9duf6_qe16g_191",
14
- "dropdown-drop-up": "awsui_dropdown-drop-up_9duf6_qe16g_198",
15
- "with-limited-width": "awsui_with-limited-width_9duf6_qe16g_202",
16
- "dropdown-drop-left": "awsui_dropdown-drop-left_9duf6_qe16g_205",
17
- "dropdown-drop-right": "awsui_dropdown-drop-right_9duf6_qe16g_208",
18
- "occupy-entire-width": "awsui_occupy-entire-width_9duf6_qe16g_211",
19
- "use-flexible-width": "awsui_use-flexible-width_9duf6_qe16g_214",
20
- "hide-block-border": "awsui_hide-block-border_9duf6_qe16g_222",
21
- "open": "awsui_open_9duf6_qe16g_231",
22
- "nowrap": "awsui_nowrap_9duf6_qe16g_240",
23
- "dropdown-content": "awsui_dropdown-content_9duf6_qe16g_13",
24
- "stretch-trigger-height": "awsui_stretch-trigger-height_9duf6_qe16g_251"
5
+ "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_9duf6_1eld9_13",
6
+ "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_9duf6_1eld9_1",
7
+ "refresh": "awsui_refresh_9duf6_1eld9_34",
8
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_9duf6_1eld9_1",
9
+ "root": "awsui_root_9duf6_1eld9_70",
10
+ "interior": "awsui_interior_9duf6_1eld9_103",
11
+ "dropdown": "awsui_dropdown_9duf6_1eld9_13",
12
+ "use-portal": "awsui_use-portal_9duf6_1eld9_113",
13
+ "is-empty": "awsui_is-empty_9duf6_1eld9_191",
14
+ "dropdown-drop-up": "awsui_dropdown-drop-up_9duf6_1eld9_198",
15
+ "with-limited-width": "awsui_with-limited-width_9duf6_1eld9_202",
16
+ "dropdown-drop-left": "awsui_dropdown-drop-left_9duf6_1eld9_205",
17
+ "dropdown-drop-right": "awsui_dropdown-drop-right_9duf6_1eld9_208",
18
+ "occupy-entire-width": "awsui_occupy-entire-width_9duf6_1eld9_211",
19
+ "use-flexible-width": "awsui_use-flexible-width_9duf6_1eld9_214",
20
+ "hide-block-border": "awsui_hide-block-border_9duf6_1eld9_222",
21
+ "open": "awsui_open_9duf6_1eld9_231",
22
+ "nowrap": "awsui_nowrap_9duf6_1eld9_240",
23
+ "dropdown-content": "awsui_dropdown-content_9duf6_1eld9_13",
24
+ "stretch-trigger-height": "awsui_stretch-trigger-height_9duf6_1eld9_251"
25
25
  };
26
26
 
@@ -7,6 +7,9 @@ interface ExpandableSectionContainerProps extends InternalBaseComponentProps {
7
7
  children?: React.ReactNode;
8
8
  variant: InternalVariant;
9
9
  expanded: boolean | undefined;
10
+ role?: string;
11
+ ariaLabel?: string;
12
+ ariaLabelledby?: string;
10
13
  __injectAnalyticsComponentMetadata?: boolean;
11
14
  }
12
15
  export declare const ExpandableSectionContainer: ({
@@ -15,6 +18,9 @@ export declare const ExpandableSectionContainer: ({
15
18
  header,
16
19
  variant,
17
20
  expanded,
21
+ role,
22
+ ariaLabel,
23
+ ariaLabelledby,
18
24
  __internalRootRef,
19
25
  __injectAnalyticsComponentMetadata,
20
26
  ...rest
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,UAAU,+BAAgC,SAAQ,0BAA0B;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,eAAO,MAAM,0BAA0B,GAAI,oHASxC,+BAA+B,gBA+CjC,CAAC"}
1
+ {"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,UAAU,+BAAgC,SAAQ,0BAA0B;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,eAAO,MAAM,0BAA0B,GAAI,qJAYxC,+BAA+B,gBAmDjC,CAAC"}
@@ -6,7 +6,7 @@ import { InternalContainerAsSubstep } from '../container/internal';
6
6
  import { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';
7
7
  import { getAnalyticsMetadataProps } from '../internal/base-component';
8
8
  import analyticsSelectors from './analytics-metadata/styles.css.js';
9
- export const ExpandableSectionContainer = ({ className, children, header, variant, expanded, __internalRootRef, __injectAnalyticsComponentMetadata, ...rest }) => {
9
+ export const ExpandableSectionContainer = ({ className, children, header, variant, expanded, role, ariaLabel, ariaLabelledby, __internalRootRef, __injectAnalyticsComponentMetadata, ...rest }) => {
10
10
  const analyticsMetadata = getAnalyticsMetadataProps(rest);
11
11
  const analyticsComponentMetadata = {
12
12
  name: 'awsui.ExpandableSection',
@@ -16,11 +16,12 @@ export const ExpandableSectionContainer = ({ className, children, header, varian
16
16
  const metadataAttribute = __injectAnalyticsComponentMetadata
17
17
  ? getAnalyticsMetadataAttribute({ component: analyticsComponentMetadata })
18
18
  : {};
19
+ const ariaProps = { role, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby };
19
20
  if (variant === 'container' || variant === 'stacked') {
20
21
  return (React.createElement(AnalyticsFunnelSubStep, { subStepIdentifier: analyticsMetadata === null || analyticsMetadata === void 0 ? void 0 : analyticsMetadata.instanceIdentifier, subStepErrorContext: analyticsMetadata === null || analyticsMetadata === void 0 ? void 0 : analyticsMetadata.errorContext },
21
- React.createElement(InternalContainerAsSubstep, { ...rest, className: className, header: header, variant: variant === 'stacked' ? 'stacked' : 'default', disableContentPaddings: true, disableHeaderPaddings: true, __hiddenContent: !expanded, __internalRootRef: __internalRootRef, ...metadataAttribute }, children)));
22
+ React.createElement(InternalContainerAsSubstep, { ...rest, className: className, header: header, variant: variant === 'stacked' ? 'stacked' : 'default', disableContentPaddings: true, disableHeaderPaddings: true, __hiddenContent: !expanded, __internalRootRef: __internalRootRef, __nativeAttributes: ariaProps, ...metadataAttribute }, children)));
22
23
  }
23
- return (React.createElement("div", { className: className, ...rest, ref: __internalRootRef, ...metadataAttribute, ...getAnalyticsLabelAttribute(`.${analyticsSelectors['header-label']}`) },
24
+ return (React.createElement("div", { className: className, ...rest, ...ariaProps, ref: __internalRootRef, ...metadataAttribute, ...getAnalyticsLabelAttribute(`.${analyticsSelectors['header-label']}`) },
24
25
  header,
25
26
  children));
26
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-section-container.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAkC,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAKvG,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAWpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACzC,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,kCAAkC,EAClC,GAAG,IAAI,EACyB,EAAE,EAAE;IACpC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC,IAAsC,CAAC,CAAC;IAC5F,MAAM,0BAA0B,GAAyD;QACvF,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvB,UAAU,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;KACnD,CAAC;IAEF,MAAM,iBAAiB,GAAG,kCAAkC;QAC1D,CAAC,CAAC,6BAA6B,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC;QAC1E,CAAC,CAAC,EAAE,CAAC;IAEP,IAAI,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACrD,OAAO,CACL,oBAAC,sBAAsB,IACrB,iBAAiB,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,kBAAkB,EACxD,mBAAmB,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,YAAY;YAEpD,oBAAC,0BAA0B,OACrB,IAAI,EACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACtD,sBAAsB,EAAE,IAAI,EAC5B,qBAAqB,EAAE,IAAI,EAC3B,eAAe,EAAE,CAAC,QAAQ,EAC1B,iBAAiB,EAAE,iBAAiB,KAChC,iBAAiB,IAEpB,QAAQ,CACkB,CACN,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,CACL,6BACE,SAAS,EAAE,SAAS,KAChB,IAAI,EACR,GAAG,EAAE,iBAAiB,KAClB,iBAAiB,KACjB,0BAA0B,CAAC,IAAI,kBAAkB,CAAC,cAAc,CAAC,EAAE,CAAC;QAEvE,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n getAnalyticsLabelAttribute,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { InternalContainerAsSubstep } from '../container/internal';\nimport { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';\nimport { BasePropsWithAnalyticsMetadata, getAnalyticsMetadataProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { GeneratedAnalyticsMetadataExpandableSectionComponent } from './analytics-metadata/interfaces';\nimport { InternalVariant } from './internal-interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\ninterface ExpandableSectionContainerProps extends InternalBaseComponentProps {\n className?: string;\n header: React.ReactNode;\n children?: React.ReactNode;\n variant: InternalVariant;\n expanded: boolean | undefined;\n __injectAnalyticsComponentMetadata?: boolean;\n}\n\nexport const ExpandableSectionContainer = ({\n className,\n children,\n header,\n variant,\n expanded,\n __internalRootRef,\n __injectAnalyticsComponentMetadata,\n ...rest\n}: ExpandableSectionContainerProps) => {\n const analyticsMetadata = getAnalyticsMetadataProps(rest as BasePropsWithAnalyticsMetadata);\n const analyticsComponentMetadata: GeneratedAnalyticsMetadataExpandableSectionComponent = {\n name: 'awsui.ExpandableSection',\n label: { root: 'self' },\n properties: { variant, expanded: `${!!expanded}` },\n };\n\n const metadataAttribute = __injectAnalyticsComponentMetadata\n ? getAnalyticsMetadataAttribute({ component: analyticsComponentMetadata })\n : {};\n\n if (variant === 'container' || variant === 'stacked') {\n return (\n <AnalyticsFunnelSubStep\n subStepIdentifier={analyticsMetadata?.instanceIdentifier}\n subStepErrorContext={analyticsMetadata?.errorContext}\n >\n <InternalContainerAsSubstep\n {...rest}\n className={className}\n header={header}\n variant={variant === 'stacked' ? 'stacked' : 'default'}\n disableContentPaddings={true}\n disableHeaderPaddings={true}\n __hiddenContent={!expanded}\n __internalRootRef={__internalRootRef}\n {...metadataAttribute}\n >\n {children}\n </InternalContainerAsSubstep>\n </AnalyticsFunnelSubStep>\n );\n }\n\n return (\n <div\n className={className}\n {...rest}\n ref={__internalRootRef}\n {...metadataAttribute}\n {...getAnalyticsLabelAttribute(`.${analyticsSelectors['header-label']}`)}\n >\n {header}\n {children}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"expandable-section-container.js","sourceRoot":"","sources":["../../../src/expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAAA,qEAAqE;A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BAAmB,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,YAAY;YAEpD,oBAAC,0BAA0B,OACrB,IAAI,EACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACtD,sBAAsB,EAAE,IAAI,EAC5B,qBAAqB,EAAE,IAAI,EAC3B,eAAe,EAAE,CAAC,QAAQ,EAC1B,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,SAAS,KACzB,iBAAiB,IAEpB,QAAQ,CACkB,CACN,CAC1B,CAAC;IACJ,CAAC;IAED,OAAO,CACL,6BACE,SAAS,EAAE,SAAS,KAChB,IAAI,KACJ,SAAS,EACb,GAAG,EAAE,iBAAiB,KAClB,iBAAiB,KACjB,0BAA0B,CAAC,IAAI,kBAAkB,CAAC,cAAc,CAAC,EAAE,CAAC;QAEvE,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n getAnalyticsLabelAttribute,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { InternalContainerAsSubstep } from '../container/internal';\nimport { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';\nimport { BasePropsWithAnalyticsMetadata, getAnalyticsMetadataProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { GeneratedAnalyticsMetadataExpandableSectionComponent } from './analytics-metadata/interfaces';\nimport { InternalVariant } from './internal-interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\ninterface ExpandableSectionContainerProps extends InternalBaseComponentProps {\n className?: string;\n header: React.ReactNode;\n children?: React.ReactNode;\n variant: InternalVariant;\n expanded: boolean | undefined;\n role?: string;\n ariaLabel?: string;\n ariaLabelledby?: string;\n __injectAnalyticsComponentMetadata?: boolean;\n}\n\nexport const ExpandableSectionContainer = ({\n className,\n children,\n header,\n variant,\n expanded,\n role,\n ariaLabel,\n ariaLabelledby,\n __internalRootRef,\n __injectAnalyticsComponentMetadata,\n ...rest\n}: ExpandableSectionContainerProps) => {\n const analyticsMetadata = getAnalyticsMetadataProps(rest as BasePropsWithAnalyticsMetadata);\n const analyticsComponentMetadata: GeneratedAnalyticsMetadataExpandableSectionComponent = {\n name: 'awsui.ExpandableSection',\n label: { root: 'self' },\n properties: { variant, expanded: `${!!expanded}` },\n };\n\n const metadataAttribute = __injectAnalyticsComponentMetadata\n ? getAnalyticsMetadataAttribute({ component: analyticsComponentMetadata })\n : {};\n\n const ariaProps = { role, ['aria-label']: ariaLabel, ['aria-labelledby']: ariaLabelledby };\n\n if (variant === 'container' || variant === 'stacked') {\n return (\n <AnalyticsFunnelSubStep\n subStepIdentifier={analyticsMetadata?.instanceIdentifier}\n subStepErrorContext={analyticsMetadata?.errorContext}\n >\n <InternalContainerAsSubstep\n {...rest}\n className={className}\n header={header}\n variant={variant === 'stacked' ? 'stacked' : 'default'}\n disableContentPaddings={true}\n disableHeaderPaddings={true}\n __hiddenContent={!expanded}\n __internalRootRef={__internalRootRef}\n __nativeAttributes={ariaProps}\n {...metadataAttribute}\n >\n {children}\n </InternalContainerAsSubstep>\n </AnalyticsFunnelSubStep>\n );\n }\n\n return (\n <div\n className={className}\n {...rest}\n {...ariaProps}\n ref={__internalRootRef}\n {...metadataAttribute}\n {...getAnalyticsLabelAttribute(`.${analyticsSelectors['header-label']}`)}\n >\n {header}\n {children}\n </div>\n );\n};\n"]}
@@ -23,6 +23,9 @@ interface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps
23
23
  headerCounter?: string;
24
24
  headerInfo?: ReactNode;
25
25
  headerActions?: ReactNode;
26
+ headerSecondaryContent?: ReactNode;
27
+ secondaryContentId?: string;
28
+ hideHeaderText?: boolean;
26
29
  headingTagOverride?: ExpandableSectionProps.HeadingTag;
27
30
  ariaLabelledBy?: string;
28
31
  hideExpandIcon?: boolean;
@@ -39,6 +42,9 @@ export declare const ExpandableSectionHeader: ({
39
42
  headerCounter,
40
43
  headerInfo,
41
44
  headerActions,
45
+ headerSecondaryContent,
46
+ secondaryContentId,
47
+ hideHeaderText,
42
48
  headingTagOverride,
43
49
  expanded,
44
50
  ariaControls,