@cloudscape-design/components-themeable 3.0.344 → 3.0.346

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 (351) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/button-dropdown/styles.scss +42 -0
  3. package/lib/internal/scss/help-panel/styles.scss +6 -5
  4. package/lib/internal/scss/internal/components/option/styles.scss +1 -1
  5. package/lib/internal/scss/status-indicator/styles.scss +8 -1
  6. package/lib/internal/scss/table/sticky-scrollbar/styles.scss +0 -1
  7. package/lib/internal/scss/text-content/styles.scss +2 -2
  8. package/lib/internal/template/alert/styles.css.js +19 -19
  9. package/lib/internal/template/alert/styles.scoped.css +33 -33
  10. package/lib/internal/template/alert/styles.selectors.js +19 -19
  11. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  12. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +30 -30
  13. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  14. package/lib/internal/template/app-layout/index.js +3 -3
  15. package/lib/internal/template/app-layout/index.js.map +1 -1
  16. package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
  17. package/lib/internal/template/app-layout/visual-refresh/context.js +3 -3
  18. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  19. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +69 -69
  20. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +168 -168
  21. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +69 -69
  22. package/lib/internal/template/attribute-editor/styles.css.js +14 -14
  23. package/lib/internal/template/attribute-editor/styles.scoped.css +27 -27
  24. package/lib/internal/template/attribute-editor/styles.selectors.js +14 -14
  25. package/lib/internal/template/autosuggest/virtual-list.d.ts.map +1 -1
  26. package/lib/internal/template/autosuggest/virtual-list.js +2 -2
  27. package/lib/internal/template/autosuggest/virtual-list.js.map +1 -1
  28. package/lib/internal/template/badge/styles.css.js +5 -5
  29. package/lib/internal/template/badge/styles.scoped.css +7 -7
  30. package/lib/internal/template/badge/styles.selectors.js +5 -5
  31. package/lib/internal/template/box/styles.css.js +189 -189
  32. package/lib/internal/template/box/styles.scoped.css +238 -238
  33. package/lib/internal/template/box/styles.selectors.js +189 -189
  34. package/lib/internal/template/breadcrumb-group/styles.css.js +7 -7
  35. package/lib/internal/template/breadcrumb-group/styles.scoped.css +14 -14
  36. package/lib/internal/template/breadcrumb-group/styles.selectors.js +7 -7
  37. package/lib/internal/template/button/internal.d.ts.map +1 -1
  38. package/lib/internal/template/button/internal.js +12 -1
  39. package/lib/internal/template/button/internal.js.map +1 -1
  40. package/lib/internal/template/button/styles.css.js +20 -20
  41. package/lib/internal/template/button/styles.scoped.css +154 -154
  42. package/lib/internal/template/button/styles.selectors.js +20 -20
  43. package/lib/internal/template/button-dropdown/index.d.ts.map +1 -1
  44. package/lib/internal/template/button-dropdown/index.js +2 -2
  45. package/lib/internal/template/button-dropdown/index.js.map +1 -1
  46. package/lib/internal/template/button-dropdown/interfaces.d.ts +31 -0
  47. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  48. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  49. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  50. package/lib/internal/template/button-dropdown/internal.js +64 -8
  51. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  52. package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  53. package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.scoped.css +6 -6
  54. package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  55. package/lib/internal/template/button-dropdown/styles.css.js +14 -8
  56. package/lib/internal/template/button-dropdown/styles.scoped.css +44 -14
  57. package/lib/internal/template/button-dropdown/styles.selectors.js +14 -8
  58. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +1 -0
  59. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  60. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js +1 -0
  61. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  62. package/lib/internal/template/calendar/styles.css.js +18 -18
  63. package/lib/internal/template/calendar/styles.scoped.css +40 -40
  64. package/lib/internal/template/calendar/styles.selectors.js +18 -18
  65. package/lib/internal/template/cards/index.js +5 -4
  66. package/lib/internal/template/cards/index.js.map +1 -1
  67. package/lib/internal/template/cards/styles.css.js +38 -38
  68. package/lib/internal/template/cards/styles.scoped.css +55 -55
  69. package/lib/internal/template/cards/styles.selectors.js +38 -38
  70. package/lib/internal/template/checkbox/styles.css.js +3 -3
  71. package/lib/internal/template/checkbox/styles.scoped.css +7 -7
  72. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  73. package/lib/internal/template/code-editor/index.js +2 -2
  74. package/lib/internal/template/code-editor/index.js.map +1 -1
  75. package/lib/internal/template/code-editor/status-bar.d.ts.map +1 -1
  76. package/lib/internal/template/code-editor/status-bar.js +3 -3
  77. package/lib/internal/template/code-editor/status-bar.js.map +1 -1
  78. package/lib/internal/template/code-editor/styles.css.js +32 -32
  79. package/lib/internal/template/code-editor/styles.scoped.css +177 -177
  80. package/lib/internal/template/code-editor/styles.selectors.js +32 -32
  81. package/lib/internal/template/collection-preferences/content-display/styles.css.js +11 -11
  82. package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +19 -19
  83. package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +11 -11
  84. package/lib/internal/template/collection-preferences/styles.css.js +37 -37
  85. package/lib/internal/template/collection-preferences/styles.scoped.css +47 -47
  86. package/lib/internal/template/collection-preferences/styles.selectors.js +37 -37
  87. package/lib/internal/template/column-layout/flexible-column-layout/index.d.ts.map +1 -1
  88. package/lib/internal/template/column-layout/flexible-column-layout/index.js +2 -2
  89. package/lib/internal/template/column-layout/flexible-column-layout/index.js.map +1 -1
  90. package/lib/internal/template/column-layout/styles.css.js +13 -13
  91. package/lib/internal/template/column-layout/styles.scoped.css +44 -44
  92. package/lib/internal/template/column-layout/styles.selectors.js +13 -13
  93. package/lib/internal/template/container/styles.css.js +28 -28
  94. package/lib/internal/template/container/styles.scoped.css +52 -52
  95. package/lib/internal/template/container/styles.selectors.js +28 -28
  96. package/lib/internal/template/date-picker/styles.css.js +7 -7
  97. package/lib/internal/template/date-picker/styles.scoped.css +10 -10
  98. package/lib/internal/template/date-picker/styles.selectors.js +7 -7
  99. package/lib/internal/template/date-range-picker/styles.css.js +38 -38
  100. package/lib/internal/template/date-range-picker/styles.scoped.css +48 -48
  101. package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
  102. package/lib/internal/template/expandable-section/styles.css.js +29 -29
  103. package/lib/internal/template/expandable-section/styles.scoped.css +65 -65
  104. package/lib/internal/template/expandable-section/styles.selectors.js +29 -29
  105. package/lib/internal/template/flashbar/styles.css.js +46 -46
  106. package/lib/internal/template/flashbar/styles.scoped.css +160 -160
  107. package/lib/internal/template/flashbar/styles.selectors.js +46 -46
  108. package/lib/internal/template/form/internal.d.ts.map +1 -1
  109. package/lib/internal/template/form/internal.js +7 -2
  110. package/lib/internal/template/form/internal.js.map +1 -1
  111. package/lib/internal/template/form/styles.css.js +9 -9
  112. package/lib/internal/template/form/styles.scoped.css +9 -9
  113. package/lib/internal/template/form/styles.selectors.js +9 -9
  114. package/lib/internal/template/form-field/internal.d.ts.map +1 -1
  115. package/lib/internal/template/form-field/internal.js +8 -3
  116. package/lib/internal/template/form-field/internal.js.map +1 -1
  117. package/lib/internal/template/form-field/styles.css.js +19 -19
  118. package/lib/internal/template/form-field/styles.scoped.css +31 -31
  119. package/lib/internal/template/form-field/styles.selectors.js +19 -19
  120. package/lib/internal/template/grid/styles.css.js +53 -53
  121. package/lib/internal/template/grid/styles.scoped.css +55 -55
  122. package/lib/internal/template/grid/styles.selectors.js +53 -53
  123. package/lib/internal/template/header/styles.css.js +44 -44
  124. package/lib/internal/template/header/styles.scoped.css +50 -50
  125. package/lib/internal/template/header/styles.selectors.js +44 -44
  126. package/lib/internal/template/help-panel/styles.css.js +4 -4
  127. package/lib/internal/template/help-panel/styles.scoped.css +70 -69
  128. package/lib/internal/template/help-panel/styles.selectors.js +4 -4
  129. package/lib/internal/template/icon/styles.css.js +21 -21
  130. package/lib/internal/template/icon/styles.scoped.css +50 -50
  131. package/lib/internal/template/icon/styles.selectors.js +21 -21
  132. package/lib/internal/template/input/styles.css.js +12 -12
  133. package/lib/internal/template/input/styles.scoped.css +35 -35
  134. package/lib/internal/template/input/styles.selectors.js +12 -12
  135. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  136. package/lib/internal/template/internal/analytics/components/analytics-funnel.js +58 -11
  137. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  138. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +5 -1
  139. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  140. package/lib/internal/template/internal/analytics/context/analytics-context.js +3 -0
  141. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  142. package/lib/internal/template/internal/analytics/hooks/use-funnel.d.ts +3 -0
  143. package/lib/internal/template/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
  144. package/lib/internal/template/internal/analytics/hooks/use-funnel.js +7 -2
  145. package/lib/internal/template/internal/analytics/hooks/use-funnel.js.map +1 -1
  146. package/lib/internal/template/internal/base-component/styles.scoped.css +12 -13
  147. package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
  148. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +26 -26
  149. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
  150. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.d.ts.map +1 -1
  151. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.js +2 -2
  152. package/lib/internal/template/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  153. package/lib/internal/template/internal/components/chart-filter/styles.css.js +3 -3
  154. package/lib/internal/template/internal/components/chart-filter/styles.scoped.css +4 -4
  155. package/lib/internal/template/internal/components/chart-filter/styles.selectors.js +3 -3
  156. package/lib/internal/template/internal/components/chart-legend/styles.css.js +6 -6
  157. package/lib/internal/template/internal/components/chart-legend/styles.scoped.css +16 -16
  158. package/lib/internal/template/internal/components/chart-legend/styles.selectors.js +6 -6
  159. package/lib/internal/template/internal/components/chart-popover/styles.css.js +3 -3
  160. package/lib/internal/template/internal/components/chart-popover/styles.scoped.css +4 -4
  161. package/lib/internal/template/internal/components/chart-popover/styles.selectors.js +3 -3
  162. package/lib/internal/template/internal/components/chart-series-details/styles.css.js +5 -5
  163. package/lib/internal/template/internal/components/chart-series-details/styles.scoped.css +10 -10
  164. package/lib/internal/template/internal/components/chart-series-details/styles.selectors.js +5 -5
  165. package/lib/internal/template/internal/components/chart-series-marker/styles.css.js +5 -5
  166. package/lib/internal/template/internal/components/chart-series-marker/styles.scoped.css +8 -8
  167. package/lib/internal/template/internal/components/chart-series-marker/styles.selectors.js +5 -5
  168. package/lib/internal/template/internal/components/chart-wrapper/styles.css.js +6 -6
  169. package/lib/internal/template/internal/components/chart-wrapper/styles.scoped.css +9 -9
  170. package/lib/internal/template/internal/components/chart-wrapper/styles.selectors.js +6 -6
  171. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  172. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +36 -36
  173. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  174. package/lib/internal/template/internal/components/dropdown-footer/styles.css.js +3 -3
  175. package/lib/internal/template/internal/components/dropdown-footer/styles.scoped.css +4 -4
  176. package/lib/internal/template/internal/components/dropdown-footer/styles.selectors.js +3 -3
  177. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  178. package/lib/internal/template/internal/components/dropdown-status/index.js +1 -1
  179. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  180. package/lib/internal/template/internal/components/dropdown-status/styles.css.js +2 -2
  181. package/lib/internal/template/internal/components/dropdown-status/styles.scoped.css +3 -3
  182. package/lib/internal/template/internal/components/dropdown-status/styles.selectors.js +2 -2
  183. package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
  184. package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +14 -14
  185. package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
  186. package/lib/internal/template/internal/components/option/styles.css.js +17 -17
  187. package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
  188. package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
  189. package/lib/internal/template/internal/components/options-list/styles.css.js +2 -2
  190. package/lib/internal/template/internal/components/options-list/styles.scoped.css +3 -3
  191. package/lib/internal/template/internal/components/options-list/styles.selectors.js +2 -2
  192. package/lib/internal/template/internal/components/selectable-item/styles.css.js +16 -16
  193. package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +29 -29
  194. package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +16 -16
  195. package/lib/internal/template/internal/components/token-list/styles.css.js +9 -9
  196. package/lib/internal/template/internal/components/token-list/styles.scoped.css +21 -21
  197. package/lib/internal/template/internal/components/token-list/styles.selectors.js +9 -9
  198. package/lib/internal/template/internal/environment.js +1 -1
  199. package/lib/internal/template/internal/generated/theming/index.cjs +24 -13
  200. package/lib/internal/template/internal/generated/theming/index.js +24 -13
  201. package/lib/internal/template/internal/hooks/container-queries/index.d.ts +0 -2
  202. package/lib/internal/template/internal/hooks/container-queries/index.d.ts.map +1 -1
  203. package/lib/internal/template/internal/hooks/container-queries/index.js +2 -1
  204. package/lib/internal/template/internal/hooks/container-queries/index.js.map +1 -1
  205. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  206. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js +2 -2
  207. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  208. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.d.ts +1 -1
  209. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.d.ts.map +1 -1
  210. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.js +0 -2
  211. package/lib/internal/template/internal/hooks/container-queries/use-resize-observer.js.map +1 -1
  212. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js +2 -2
  213. package/lib/internal/template/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  214. package/lib/internal/template/internal/utils/use-container-width.d.ts.map +1 -1
  215. package/lib/internal/template/internal/utils/use-container-width.js +5 -3
  216. package/lib/internal/template/internal/utils/use-container-width.js.map +1 -1
  217. package/lib/internal/template/link/styles.css.js +20 -20
  218. package/lib/internal/template/link/styles.scoped.css +73 -73
  219. package/lib/internal/template/link/styles.selectors.js +20 -20
  220. package/lib/internal/template/modal/internal.d.ts.map +1 -1
  221. package/lib/internal/template/modal/internal.js +2 -1
  222. package/lib/internal/template/modal/internal.js.map +1 -1
  223. package/lib/internal/template/modal/styles.css.js +23 -23
  224. package/lib/internal/template/modal/styles.scoped.css +40 -40
  225. package/lib/internal/template/modal/styles.selectors.js +23 -23
  226. package/lib/internal/template/multiselect/styles.css.js +1 -1
  227. package/lib/internal/template/multiselect/styles.scoped.css +2 -2
  228. package/lib/internal/template/multiselect/styles.selectors.js +1 -1
  229. package/lib/internal/template/pagination/styles.css.js +9 -9
  230. package/lib/internal/template/pagination/styles.scoped.css +24 -24
  231. package/lib/internal/template/pagination/styles.selectors.js +9 -9
  232. package/lib/internal/template/pie-chart/styles.css.js +23 -23
  233. package/lib/internal/template/pie-chart/styles.scoped.css +42 -42
  234. package/lib/internal/template/pie-chart/styles.selectors.js +23 -23
  235. package/lib/internal/template/popover/styles.css.js +50 -50
  236. package/lib/internal/template/popover/styles.scoped.css +66 -66
  237. package/lib/internal/template/popover/styles.selectors.js +50 -50
  238. package/lib/internal/template/progress-bar/styles.css.js +18 -18
  239. package/lib/internal/template/progress-bar/styles.scoped.css +35 -35
  240. package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
  241. package/lib/internal/template/property-filter/index.d.ts.map +1 -1
  242. package/lib/internal/template/property-filter/index.js +2 -3
  243. package/lib/internal/template/property-filter/index.js.map +1 -1
  244. package/lib/internal/template/property-filter/styles.css.js +29 -29
  245. package/lib/internal/template/property-filter/styles.scoped.css +32 -32
  246. package/lib/internal/template/property-filter/styles.selectors.js +29 -29
  247. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  248. package/lib/internal/template/property-filter/token-editor.js +2 -2
  249. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  250. package/lib/internal/template/radio-group/styles.css.js +9 -9
  251. package/lib/internal/template/radio-group/styles.scoped.css +17 -17
  252. package/lib/internal/template/radio-group/styles.selectors.js +9 -9
  253. package/lib/internal/template/s3-resource-selector/s3-in-context/styles.css.js +7 -7
  254. package/lib/internal/template/s3-resource-selector/s3-in-context/styles.scoped.css +9 -9
  255. package/lib/internal/template/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
  256. package/lib/internal/template/segmented-control/styles.css.js +14 -14
  257. package/lib/internal/template/segmented-control/styles.scoped.css +35 -35
  258. package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
  259. package/lib/internal/template/select/parts/virtual-list.js +2 -2
  260. package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
  261. package/lib/internal/template/select/styles.css.js +1 -1
  262. package/lib/internal/template/select/styles.scoped.css +2 -2
  263. package/lib/internal/template/select/styles.selectors.js +1 -1
  264. package/lib/internal/template/side-navigation/styles.css.js +27 -27
  265. package/lib/internal/template/side-navigation/styles.scoped.css +39 -39
  266. package/lib/internal/template/side-navigation/styles.selectors.js +27 -27
  267. package/lib/internal/template/spinner/styles.css.js +13 -13
  268. package/lib/internal/template/spinner/styles.scoped.css +20 -20
  269. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  270. package/lib/internal/template/split-panel/styles.css.js +56 -56
  271. package/lib/internal/template/split-panel/styles.scoped.css +78 -78
  272. package/lib/internal/template/split-panel/styles.selectors.js +56 -56
  273. package/lib/internal/template/status-indicator/internal.d.ts +6 -3
  274. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  275. package/lib/internal/template/status-indicator/internal.js +2 -2
  276. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  277. package/lib/internal/template/status-indicator/styles.css.js +22 -20
  278. package/lib/internal/template/status-indicator/styles.scoped.css +33 -28
  279. package/lib/internal/template/status-indicator/styles.selectors.js +22 -20
  280. package/lib/internal/template/table/internal.d.ts.map +1 -1
  281. package/lib/internal/template/table/internal.js +6 -4
  282. package/lib/internal/template/table/internal.js.map +1 -1
  283. package/lib/internal/template/table/sticky-scrollbar/styles.css.js +4 -4
  284. package/lib/internal/template/table/sticky-scrollbar/styles.scoped.css +4 -5
  285. package/lib/internal/template/table/sticky-scrollbar/styles.selectors.js +4 -4
  286. package/lib/internal/template/table/styles.css.js +34 -34
  287. package/lib/internal/template/table/styles.scoped.css +43 -43
  288. package/lib/internal/template/table/styles.selectors.js +34 -34
  289. package/lib/internal/template/tabs/styles.css.js +21 -21
  290. package/lib/internal/template/tabs/styles.scoped.css +39 -39
  291. package/lib/internal/template/tabs/styles.selectors.js +21 -21
  292. package/lib/internal/template/tabs/tab-header-bar.js +2 -2
  293. package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
  294. package/lib/internal/template/test-utils/dom/button-dropdown/index.d.ts +2 -0
  295. package/lib/internal/template/test-utils/dom/button-dropdown/index.js +6 -1
  296. package/lib/internal/template/test-utils/dom/button-dropdown/index.js.map +1 -1
  297. package/lib/internal/template/test-utils/selectors/button-dropdown/index.d.ts +2 -0
  298. package/lib/internal/template/test-utils/selectors/button-dropdown/index.js +6 -1
  299. package/lib/internal/template/test-utils/selectors/button-dropdown/index.js.map +1 -1
  300. package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
  301. package/lib/internal/template/text-content/styles.css.js +1 -1
  302. package/lib/internal/template/text-content/styles.scoped.css +64 -64
  303. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  304. package/lib/internal/template/text-filter/styles.css.js +3 -3
  305. package/lib/internal/template/text-filter/styles.scoped.css +4 -4
  306. package/lib/internal/template/text-filter/styles.selectors.js +3 -3
  307. package/lib/internal/template/textarea/styles.css.js +4 -4
  308. package/lib/internal/template/textarea/styles.scoped.css +14 -14
  309. package/lib/internal/template/textarea/styles.selectors.js +4 -4
  310. package/lib/internal/template/tiles/styles.css.js +28 -28
  311. package/lib/internal/template/tiles/styles.scoped.css +70 -70
  312. package/lib/internal/template/tiles/styles.selectors.js +28 -28
  313. package/lib/internal/template/toggle/styles.css.js +8 -8
  314. package/lib/internal/template/toggle/styles.scoped.css +15 -15
  315. package/lib/internal/template/toggle/styles.selectors.js +8 -8
  316. package/lib/internal/template/token-group/styles.css.js +7 -7
  317. package/lib/internal/template/token-group/styles.scoped.css +17 -17
  318. package/lib/internal/template/token-group/styles.selectors.js +7 -7
  319. package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
  320. package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +43 -43
  321. package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
  322. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  323. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.js +2 -1
  324. package/lib/internal/template/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  325. package/lib/internal/template/top-navigation/styles.css.js +47 -47
  326. package/lib/internal/template/top-navigation/styles.scoped.css +70 -70
  327. package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
  328. package/lib/internal/template/top-navigation/use-top-navigation.d.ts.map +1 -1
  329. package/lib/internal/template/top-navigation/use-top-navigation.js +2 -1
  330. package/lib/internal/template/top-navigation/use-top-navigation.js.map +1 -1
  331. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  332. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
  333. package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  334. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  335. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +30 -30
  336. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  337. package/lib/internal/template/tutorial-panel/styles.css.js +1 -1
  338. package/lib/internal/template/tutorial-panel/styles.scoped.css +2 -2
  339. package/lib/internal/template/tutorial-panel/styles.selectors.js +1 -1
  340. package/lib/internal/template/wizard/styles.css.js +31 -31
  341. package/lib/internal/template/wizard/styles.scoped.css +63 -63
  342. package/lib/internal/template/wizard/styles.selectors.js +31 -31
  343. package/package.json +1 -1
  344. package/lib/internal/template/internal/hooks/container-queries/interfaces.d.ts +0 -10
  345. package/lib/internal/template/internal/hooks/container-queries/interfaces.d.ts.map +0 -1
  346. package/lib/internal/template/internal/hooks/container-queries/interfaces.js +0 -4
  347. package/lib/internal/template/internal/hooks/container-queries/interfaces.js.map +0 -1
  348. package/lib/internal/template/internal/hooks/container-queries/use-container-query.d.ts +0 -22
  349. package/lib/internal/template/internal/hooks/container-queries/use-container-query.d.ts.map +0 -1
  350. package/lib/internal/template/internal/hooks/container-queries/use-container-query.js +0 -32
  351. package/lib/internal/template/internal/hooks/container-queries/use-container-query.js.map +0 -1
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_link_4c84z_kbqfg_93:not(#\9) {
93
+ .awsui_link_4c84z_1t0gu_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -121,7 +121,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
121
121
  word-spacing: normal;
122
122
  box-sizing: border-box;
123
123
  font-size: var(--font-body-m-size-0qqejn, 14px);
124
- line-height: var(--font-body-m-line-height-9vkzhc, 22px);
124
+ line-height: var(--font-body-m-line-height-43ichb, 22px);
125
125
  color: var(--color-text-body-default-4colr5, #16191f);
126
126
  font-weight: 400;
127
127
  font-family: var(--font-family-base-nzcxu9, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
@@ -141,31 +141,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
141
141
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
142
142
  }
143
143
  @media (prefers-reduced-motion: reduce) {
144
- .awsui_link_4c84z_kbqfg_93:not(#\9) {
144
+ .awsui_link_4c84z_1t0gu_93:not(#\9) {
145
145
  animation: none;
146
146
  transition: none;
147
147
  }
148
148
  }
149
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93:not(#\9) {
149
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93:not(#\9) {
150
150
  animation: none;
151
151
  transition: none;
152
152
  }
153
- .awsui_link_4c84z_kbqfg_93:not(#\9):hover {
153
+ .awsui_link_4c84z_1t0gu_93:not(#\9):hover {
154
154
  cursor: pointer;
155
155
  color: var(--color-text-link-hover-z15m9s, #0073bb);
156
156
  }
157
- .awsui_link_4c84z_kbqfg_93:not(#\9):focus {
157
+ .awsui_link_4c84z_1t0gu_93:not(#\9):focus {
158
158
  outline: none;
159
159
  }
160
- .awsui_link_4c84z_kbqfg_93:not(#\9):active {
160
+ .awsui_link_4c84z_1t0gu_93:not(#\9):active {
161
161
  color: var(--color-text-link-hover-z15m9s, #0073bb);
162
162
  }
163
- .awsui_link_4c84z_kbqfg_93:not(#\9):active, .awsui_link_4c84z_kbqfg_93:not(#\9):focus, .awsui_link_4c84z_kbqfg_93:not(#\9):hover {
163
+ .awsui_link_4c84z_1t0gu_93:not(#\9):active, .awsui_link_4c84z_1t0gu_93:not(#\9):focus, .awsui_link_4c84z_1t0gu_93:not(#\9):hover {
164
164
  text-decoration: underline;
165
165
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
166
166
  text-decoration-color: currentColor;
167
167
  }
168
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9) {
168
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9) {
169
169
  -webkit-font-smoothing: inherit;
170
170
  -moz-osx-font-smoothing: inherit;
171
171
  color: var(--color-text-link-default-0jy39k, #0073bb);
@@ -180,31 +180,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
180
180
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
181
181
  }
182
182
  @media (prefers-reduced-motion: reduce) {
183
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9) {
183
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9) {
184
184
  animation: none;
185
185
  transition: none;
186
186
  }
187
187
  }
188
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9) {
188
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9) {
189
189
  animation: none;
190
190
  transition: none;
191
191
  }
192
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):hover {
192
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):hover {
193
193
  cursor: pointer;
194
194
  color: var(--color-text-link-hover-z15m9s, #0073bb);
195
195
  }
196
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):focus {
196
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):focus {
197
197
  outline: none;
198
198
  }
199
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):active {
199
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):active {
200
200
  color: var(--color-text-link-hover-z15m9s, #0073bb);
201
201
  }
202
- .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-secondary_4c84z_kbqfg_140:not(#\9):hover {
202
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-secondary_4c84z_1t0gu_140:not(#\9):hover {
203
203
  text-decoration: underline;
204
204
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
205
205
  text-decoration-color: currentColor;
206
206
  }
207
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9) {
207
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9) {
208
208
  color: var(--color-text-link-default-0jy39k, #0073bb);
209
209
  font-weight: var(--font-link-primary-weight-cpyp2f, 700);
210
210
  letter-spacing: var(--font-link-primary-letter-spacing-wsaj96, 0.005em);
@@ -218,31 +218,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
218
218
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
219
219
  }
220
220
  @media (prefers-reduced-motion: reduce) {
221
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9) {
221
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9) {
222
222
  animation: none;
223
223
  transition: none;
224
224
  }
225
225
  }
226
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9) {
226
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9) {
227
227
  animation: none;
228
228
  transition: none;
229
229
  }
230
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):hover {
230
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):hover {
231
231
  cursor: pointer;
232
232
  color: var(--color-text-link-hover-z15m9s, #0073bb);
233
233
  }
234
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):focus {
234
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):focus {
235
235
  outline: none;
236
236
  }
237
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):active {
237
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):active {
238
238
  color: var(--color-text-link-hover-z15m9s, #0073bb);
239
239
  }
240
- .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-primary_4c84z_kbqfg_177:not(#\9):hover {
240
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-primary_4c84z_1t0gu_177:not(#\9):hover {
241
241
  text-decoration: underline;
242
242
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
243
243
  text-decoration-color: currentColor;
244
244
  }
245
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9) {
245
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9) {
246
246
  -webkit-font-smoothing: var(--font-smoothing-webkit-teqshp, auto);
247
247
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-apq2ca, auto);
248
248
  color: var(--color-text-link-default-0jy39k, #0073bb);
@@ -257,31 +257,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
257
257
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
258
258
  }
259
259
  @media (prefers-reduced-motion: reduce) {
260
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9) {
260
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9) {
261
261
  animation: none;
262
262
  transition: none;
263
263
  }
264
264
  }
265
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9) {
265
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9) {
266
266
  animation: none;
267
267
  transition: none;
268
268
  }
269
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):hover {
269
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):hover {
270
270
  cursor: pointer;
271
271
  color: var(--color-text-link-hover-z15m9s, #0073bb);
272
272
  }
273
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):focus {
273
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):focus {
274
274
  outline: none;
275
275
  }
276
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):active {
276
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):active {
277
277
  color: var(--color-text-link-hover-z15m9s, #0073bb);
278
278
  }
279
- .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-info_4c84z_kbqfg_212:not(#\9):hover {
279
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-info_4c84z_1t0gu_212:not(#\9):hover {
280
280
  text-decoration: underline;
281
281
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
282
282
  text-decoration-color: var(--color-text-link-button-underline-hover-ezyh57, currentColor);
283
283
  }
284
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9) {
284
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9) {
285
285
  color: var(--color-text-link-default-0jy39k, #0073bb);
286
286
  font-weight: var(--font-box-value-large-weight-nt4rcf, 300);
287
287
  text-decoration: none;
@@ -293,31 +293,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
293
293
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
294
294
  }
295
295
  @media (prefers-reduced-motion: reduce) {
296
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9) {
296
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9) {
297
297
  animation: none;
298
298
  transition: none;
299
299
  }
300
300
  }
301
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9) {
301
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9) {
302
302
  animation: none;
303
303
  transition: none;
304
304
  }
305
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):hover {
305
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):hover {
306
306
  cursor: pointer;
307
307
  color: var(--color-text-link-hover-z15m9s, #0073bb);
308
308
  }
309
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):focus {
309
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):focus {
310
310
  outline: none;
311
311
  }
312
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):active {
312
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):active {
313
313
  color: var(--color-text-link-hover-z15m9s, #0073bb);
314
314
  }
315
- .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-value-large_4c84z_kbqfg_249:not(#\9):hover {
315
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-value-large_4c84z_1t0gu_249:not(#\9):hover {
316
316
  text-decoration: underline;
317
317
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
318
318
  text-decoration-color: currentColor;
319
319
  }
320
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9) {
320
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9) {
321
321
  color: var(--color-text-interactive-default-9x433a, #545b64);
322
322
  font-weight: 700;
323
323
  letter-spacing: 0.005em;
@@ -330,31 +330,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
330
330
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
331
331
  }
332
332
  @media (prefers-reduced-motion: reduce) {
333
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9) {
333
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9) {
334
334
  animation: none;
335
335
  transition: none;
336
336
  }
337
337
  }
338
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9) {
338
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9) {
339
339
  animation: none;
340
340
  transition: none;
341
341
  }
342
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):hover {
342
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):hover {
343
343
  cursor: pointer;
344
344
  color: var(--color-text-interactive-hover-6fw5y8, #16191f);
345
345
  }
346
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):focus {
346
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):focus {
347
347
  outline: none;
348
348
  }
349
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):active {
349
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):active {
350
350
  color: var(--color-text-interactive-active-2cnt2n, #16191f);
351
351
  }
352
- .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-top-navigation_4c84z_kbqfg_283:not(#\9):hover {
352
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-top-navigation_4c84z_1t0gu_283:not(#\9):hover {
353
353
  text-decoration: underline;
354
354
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
355
355
  text-decoration-color: transparent;
356
356
  }
357
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9) {
357
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9) {
358
358
  color: var(--color-text-link-default-0jy39k, #0073bb);
359
359
  font-weight: var(--font-link-button-weight-2omqnn, 400);
360
360
  letter-spacing: var(--font-link-button-letter-spacing-zntxrt, normal);
@@ -367,31 +367,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
367
367
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
368
368
  }
369
369
  @media (prefers-reduced-motion: reduce) {
370
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9) {
370
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9) {
371
371
  animation: none;
372
372
  transition: none;
373
373
  }
374
374
  }
375
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9) {
375
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9) {
376
376
  animation: none;
377
377
  transition: none;
378
378
  }
379
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):hover {
379
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):hover {
380
380
  cursor: pointer;
381
381
  color: var(--color-text-link-hover-z15m9s, #0073bb);
382
382
  }
383
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):focus {
383
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):focus {
384
384
  outline: none;
385
385
  }
386
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):active {
386
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):active {
387
387
  color: var(--color-text-link-hover-z15m9s, #0073bb);
388
388
  }
389
- .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_variant-recovery_4c84z_kbqfg_318:not(#\9):hover {
389
+ .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_variant-recovery_4c84z_1t0gu_318:not(#\9):hover {
390
390
  text-decoration: underline;
391
391
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
392
392
  text-decoration-color: var(--color-text-link-button-underline-hover-ezyh57, currentColor);
393
393
  }
394
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9) {
394
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9) {
395
395
  -webkit-font-smoothing: var(--font-smoothing-webkit-teqshp, auto);
396
396
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-apq2ca, auto);
397
397
  color: var(--color-text-link-button-normal-default-dlq865, #545b64);
@@ -406,42 +406,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
406
406
  transition-duration: var(--motion-duration-refresh-only-medium-smx8a1, 165ms);
407
407
  }
408
408
  @media (prefers-reduced-motion: reduce) {
409
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9) {
409
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9) {
410
410
  animation: none;
411
411
  transition: none;
412
412
  }
413
413
  }
414
- .awsui-motion-disabled .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9), .awsui-mode-entering .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9) {
414
+ .awsui-motion-disabled .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9), .awsui-mode-entering .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9) {
415
415
  animation: none;
416
416
  transition: none;
417
417
  }
418
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):hover {
418
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):hover {
419
419
  cursor: pointer;
420
420
  color: var(--color-text-link-button-normal-hover-nprmu3, #16191f);
421
421
  }
422
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):focus {
422
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):focus {
423
423
  outline: none;
424
424
  }
425
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):active {
425
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):active {
426
426
  color: var(--color-text-link-button-normal-active-wxaaoj, #16191f);
427
427
  }
428
- .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):active, .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):focus, .awsui_link_4c84z_kbqfg_93.awsui_button_4c84z_kbqfg_353:not(#\9):hover {
428
+ .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):active, .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):focus, .awsui_link_4c84z_1t0gu_93.awsui_button_4c84z_1t0gu_353:not(#\9):hover {
429
429
  text-decoration: underline;
430
430
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
431
431
  text-decoration-color: transparent;
432
432
  }
433
- .awsui_link_4c84z_kbqfg_93.awsui_color-inverted_4c84z_kbqfg_390:not(#\9) {
433
+ .awsui_link_4c84z_1t0gu_93.awsui_color-inverted_4c84z_1t0gu_390:not(#\9) {
434
434
  color: var(--color-text-notification-default-1d4z49, #fafafa);
435
435
  }
436
- .awsui_link_4c84z_kbqfg_93.awsui_color-inverted_4c84z_kbqfg_390:not(#\9):not(.awsui_button_4c84z_kbqfg_353) {
436
+ .awsui_link_4c84z_1t0gu_93.awsui_color-inverted_4c84z_1t0gu_390:not(#\9):not(.awsui_button_4c84z_1t0gu_353) {
437
437
  text-decoration: underline;
438
438
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
439
439
  text-decoration-color: currentColor;
440
440
  }
441
- .awsui_link_4c84z_kbqfg_93.awsui_color-inverted_4c84z_kbqfg_390:not(#\9):hover {
441
+ .awsui_link_4c84z_1t0gu_93.awsui_color-inverted_4c84z_1t0gu_390:not(#\9):hover {
442
442
  color: var(--color-text-link-inverted-hover-qulh2k, #fafafa);
443
443
  }
444
- body[data-awsui-focus-visible=true] .awsui_link_4c84z_kbqfg_93:not(#\9):focus {
444
+ body[data-awsui-focus-visible=true] .awsui_link_4c84z_1t0gu_93:not(#\9):focus {
445
445
  outline: thin dotted;
446
446
  outline: var(--border-link-focus-ring-outline-e033ba, 5px auto Highlight);
447
447
  outline-offset: 2px;
@@ -449,54 +449,54 @@ body[data-awsui-focus-visible=true] .awsui_link_4c84z_kbqfg_93:not(#\9):focus {
449
449
  border-radius: var(--border-radius-control-default-focus-ring-uu8qi4, 2px);
450
450
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-3gfzjd, 0px) var(--color-border-item-focused-4clyb1, #0073bb);
451
451
  }
452
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-body-s_4c84z_kbqfg_409:not(#\9) {
452
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-body-s_4c84z_1t0gu_409:not(#\9) {
453
453
  font-size: var(--font-body-s-size-v1w8ey, 12px);
454
454
  line-height: var(--font-body-s-line-height-jfgg5d, 16px);
455
455
  letter-spacing: var(--font-body-s-letter-spacing-bzrysr, normal);
456
456
  }
457
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-body-m_4c84z_kbqfg_414:not(#\9) {
457
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-body-m_4c84z_1t0gu_414:not(#\9) {
458
458
  font-size: var(--font-body-m-size-0qqejn, 14px);
459
- line-height: var(--font-body-m-line-height-9vkzhc, 22px);
459
+ line-height: var(--font-body-m-line-height-43ichb, 22px);
460
460
  }
461
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-heading-xs_4c84z_kbqfg_418:not(#\9) {
461
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-heading-xs_4c84z_1t0gu_418:not(#\9) {
462
462
  font-size: var(--font-heading-xs-size-zxjy53, 16px);
463
463
  line-height: var(--font-heading-xs-line-height-61ulqg, 20px);
464
464
  }
465
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-heading-s_4c84z_kbqfg_422:not(#\9) {
465
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-heading-s_4c84z_1t0gu_422:not(#\9) {
466
466
  font-size: var(--font-heading-s-size-dnu1l1, 16px);
467
467
  line-height: var(--font-heading-s-line-height-m71f3f, 20px);
468
468
  letter-spacing: var(--font-heading-s-letter-spacing-jp7jyt, normal);
469
469
  }
470
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-heading-m_4c84z_kbqfg_427:not(#\9) {
470
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-heading-m_4c84z_1t0gu_427:not(#\9) {
471
471
  font-size: var(--font-heading-m-size-bwdbnx, 18px);
472
472
  line-height: var(--font-heading-m-line-height-ahaded, 22px);
473
473
  letter-spacing: var(--font-heading-m-letter-spacing-t3csz2, normal);
474
474
  }
475
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-heading-l_4c84z_kbqfg_432:not(#\9) {
475
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-heading-l_4c84z_1t0gu_432:not(#\9) {
476
476
  font-size: var(--font-heading-l-size-s5huxt, 18px);
477
477
  line-height: var(--font-heading-l-line-height-b1ar04, 22px);
478
478
  letter-spacing: var(--font-heading-l-letter-spacing-898wn9, normal);
479
479
  }
480
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-heading-xl_4c84z_kbqfg_437:not(#\9) {
480
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-heading-xl_4c84z_1t0gu_437:not(#\9) {
481
481
  font-size: var(--font-heading-xl-size-is7x8e, 28px);
482
482
  line-height: var(--font-heading-xl-line-height-vkzpnf, 36px);
483
483
  letter-spacing: var(--font-heading-xl-letter-spacing-gwr2it, normal);
484
484
  }
485
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-display-l_4c84z_kbqfg_442:not(#\9) {
485
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-display-l_4c84z_1t0gu_442:not(#\9) {
486
486
  font-size: var(--font-display-l-size-2vcm2f, 44px);
487
487
  line-height: var(--font-display-l-line-height-qysxq1, 56px);
488
488
  letter-spacing: var(--font-display-l-letter-spacing-4z7f9n, normal);
489
489
  }
490
- .awsui_link_4c84z_kbqfg_93.awsui_font-size-inherit_4c84z_kbqfg_447:not(#\9) {
490
+ .awsui_link_4c84z_1t0gu_93.awsui_font-size-inherit_4c84z_1t0gu_447:not(#\9) {
491
491
  font-size: inherit;
492
492
  line-height: inherit;
493
493
  letter-spacing: inherit;
494
494
  }
495
495
 
496
- .awsui_icon-wrapper_4c84z_kbqfg_453:not(#\9) {
496
+ .awsui_icon-wrapper_4c84z_1t0gu_453:not(#\9) {
497
497
  white-space: nowrap;
498
498
  }
499
499
 
500
- .awsui_icon_4c84z_kbqfg_453:not(#\9) {
500
+ .awsui_icon_4c84z_1t0gu_453:not(#\9) {
501
501
  display: inline-block;
502
502
  }
@@ -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
- "link": "awsui_link_4c84z_kbqfg_93",
6
- "variant-secondary": "awsui_variant-secondary_4c84z_kbqfg_140",
7
- "variant-primary": "awsui_variant-primary_4c84z_kbqfg_177",
8
- "variant-info": "awsui_variant-info_4c84z_kbqfg_212",
9
- "variant-value-large": "awsui_variant-value-large_4c84z_kbqfg_249",
10
- "variant-top-navigation": "awsui_variant-top-navigation_4c84z_kbqfg_283",
11
- "variant-recovery": "awsui_variant-recovery_4c84z_kbqfg_318",
12
- "button": "awsui_button_4c84z_kbqfg_353",
13
- "color-inverted": "awsui_color-inverted_4c84z_kbqfg_390",
14
- "font-size-body-s": "awsui_font-size-body-s_4c84z_kbqfg_409",
15
- "font-size-body-m": "awsui_font-size-body-m_4c84z_kbqfg_414",
16
- "font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_kbqfg_418",
17
- "font-size-heading-s": "awsui_font-size-heading-s_4c84z_kbqfg_422",
18
- "font-size-heading-m": "awsui_font-size-heading-m_4c84z_kbqfg_427",
19
- "font-size-heading-l": "awsui_font-size-heading-l_4c84z_kbqfg_432",
20
- "font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_kbqfg_437",
21
- "font-size-display-l": "awsui_font-size-display-l_4c84z_kbqfg_442",
22
- "font-size-inherit": "awsui_font-size-inherit_4c84z_kbqfg_447",
23
- "icon-wrapper": "awsui_icon-wrapper_4c84z_kbqfg_453",
24
- "icon": "awsui_icon_4c84z_kbqfg_453"
5
+ "link": "awsui_link_4c84z_1t0gu_93",
6
+ "variant-secondary": "awsui_variant-secondary_4c84z_1t0gu_140",
7
+ "variant-primary": "awsui_variant-primary_4c84z_1t0gu_177",
8
+ "variant-info": "awsui_variant-info_4c84z_1t0gu_212",
9
+ "variant-value-large": "awsui_variant-value-large_4c84z_1t0gu_249",
10
+ "variant-top-navigation": "awsui_variant-top-navigation_4c84z_1t0gu_283",
11
+ "variant-recovery": "awsui_variant-recovery_4c84z_1t0gu_318",
12
+ "button": "awsui_button_4c84z_1t0gu_353",
13
+ "color-inverted": "awsui_color-inverted_4c84z_1t0gu_390",
14
+ "font-size-body-s": "awsui_font-size-body-s_4c84z_1t0gu_409",
15
+ "font-size-body-m": "awsui_font-size-body-m_4c84z_1t0gu_414",
16
+ "font-size-heading-xs": "awsui_font-size-heading-xs_4c84z_1t0gu_418",
17
+ "font-size-heading-s": "awsui_font-size-heading-s_4c84z_1t0gu_422",
18
+ "font-size-heading-m": "awsui_font-size-heading-m_4c84z_1t0gu_427",
19
+ "font-size-heading-l": "awsui_font-size-heading-l_4c84z_1t0gu_432",
20
+ "font-size-heading-xl": "awsui_font-size-heading-xl_4c84z_1t0gu_437",
21
+ "font-size-display-l": "awsui_font-size-display-l_4c84z_1t0gu_442",
22
+ "font-size-inherit": "awsui_font-size-inherit_4c84z_1t0gu_447",
23
+ "icon-wrapper": "awsui_icon-wrapper_4c84z_1t0gu_453",
24
+ "icon": "awsui_icon_4c84z_1t0gu_453"
25
25
  };
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["modal/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAYlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,0BAA0B,CAAC;AAExF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,eAM/E"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["modal/internal.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAYlF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMjD,KAAK,kBAAkB,GAAG,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,0BAA0B,CAAC;AAExF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,eAM/E"}
@@ -11,7 +11,7 @@ import { useUniqueId } from '../internal/hooks/use-unique-id';
11
11
  import { InternalButton } from '../button/internal';
12
12
  import InternalHeader from '../header/internal';
13
13
  import Portal from '../internal/components/portal';
14
- import { useContainerBreakpoints, useContainerQuery } from '../internal/hooks/container-queries';
14
+ import { useContainerBreakpoints } from '../internal/hooks/container-queries';
15
15
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
16
16
  import { FormFieldContext } from '../internal/context/form-field-context';
17
17
  import { disableBodyScrolling, enableBodyScrolling } from './body-scroll';
@@ -19,6 +19,7 @@ import styles from './styles.css.js';
19
19
  import FocusLock from '../internal/components/focus-lock';
20
20
  import { useInternalI18n } from '../internal/i18n/context';
21
21
  import { useIntersectionObserver } from '../internal/hooks/use-intersection-observer';
22
+ import { useContainerQuery } from '@cloudscape-design/component-toolkit';
22
23
  export default function InternalModal(_a) {
23
24
  var { modalRoot } = _a, rest = __rest(_a, ["modalRoot"]);
24
25
  return (React.createElement(Portal, { container: modalRoot },
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["modal/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KA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CAAC,aAAa,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC;4BACtF,QAAQ;4BACT,6BAAK,GAAG,EAAE,iBAAiB,GAAI,CAC3B;wBACL,MAAM,IAAI,CACT,6BAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC,IACxF,MAAM,CACH,CACP,CACG,CACF,CACI,CACR,CACoB,CAC7B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { InternalButton } from '../button/internal';\nimport InternalHeader from '../header/internal';\nimport Portal from '../internal/components/portal';\nimport { useContainerBreakpoints, useContainerQuery } from '../internal/hooks/container-queries';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { FormFieldContext } from '../internal/context/form-field-context';\n\nimport { disableBodyScrolling, enableBodyScrolling } from './body-scroll';\nimport { ModalProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { SomeRequired } from '../internal/types';\nimport FocusLock from '../internal/components/focus-lock';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { useIntersectionObserver } from '../internal/hooks/use-intersection-observer';\n\ntype InternalModalProps = SomeRequired<ModalProps, 'size'> & InternalBaseComponentProps;\n\nexport default function InternalModal({ modalRoot, ...rest }: InternalModalProps) {\n return (\n <Portal container={modalRoot}>\n <InnerModal {...rest} />\n </Portal>\n );\n}\n\n// Separate component to prevent the Portal from getting in the way of refs, as it needs extra cycles to render the inner components.\n// useContainerQuery needs its targeted element to exist on the first render in order to work properly.\nfunction InnerModal({\n size,\n visible,\n header,\n children,\n footer,\n disableContentPaddings,\n onDismiss,\n __internalRootRef = null,\n ...rest\n}: InternalModalProps) {\n const instanceUniqueId = useUniqueId();\n const headerId = `${rest.id || instanceUniqueId}-header`;\n const lastMouseDownElementRef = useRef<HTMLElement | null>(null);\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n\n const i18n = useInternalI18n('modal');\n const closeAriaLabel = i18n('closeAriaLabel', rest.closeAriaLabel);\n\n const refObject = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(breakpointsRef, refObject, __internalRootRef);\n\n const isRefresh = useVisualRefresh();\n\n const baseProps = getBaseProps(rest);\n\n // enable body scroll and restore focus if unmounting while visible\n useEffect(() => {\n return () => {\n enableBodyScrolling();\n };\n }, []);\n\n // enable / disable body scroll\n useEffect(() => {\n if (visible) {\n disableBodyScrolling();\n } else {\n enableBodyScrolling();\n }\n }, [visible]);\n\n // Because we hide the element with styles (and not actually detach it from DOM), we need to scroll to top\n useEffect(() => {\n if (visible && refObject.current) {\n refObject.current.scrollTop = 0;\n }\n }, [visible]);\n\n const dismiss = (reason: string) => fireNonCancelableEvent(onDismiss, { reason });\n\n const onOverlayMouseDown = (event: React.MouseEvent) => {\n lastMouseDownElementRef.current = event.target as HTMLElement;\n };\n const onOverlayClick = (event: React.MouseEvent) => {\n const overlay = refObject.current;\n const lastClicked = lastMouseDownElementRef.current;\n\n if (event.target === overlay && lastClicked === overlay) {\n dismiss('overlay');\n }\n };\n const onCloseButtonClick = () => dismiss('closeButton');\n const escKeyHandler = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.escape) {\n dismiss('keyboard');\n }\n };\n\n // We use an empty div element at the end of the content slot as a sentinel\n // to detect when the user has scrolled to the bottom.\n const { ref: stickySentinelRef, isIntersecting: footerStuck } = useIntersectionObserver();\n\n // Add extra scroll padding to account for the height of the sticky footer,\n // to prevent it from covering focused elements.\n const [footerHeight, footerRef] = useContainerQuery(rect => rect.borderBoxHeight);\n\n return (\n <FormFieldContext.Provider value={{}}>\n <div\n {...baseProps}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className, isRefresh && styles.refresh)}\n role=\"dialog\"\n aria-modal={true}\n aria-labelledby={headerId}\n onMouseDown={onOverlayMouseDown}\n onClick={onOverlayClick}\n ref={mergedRef}\n style={footerHeight ? { scrollPaddingBottom: footerHeight } : undefined}\n >\n <FocusLock disabled={!visible} autoFocus={true} restoreFocus={true} className={styles['focus-lock']}>\n <div\n className={clsx(\n styles.dialog,\n styles[size],\n styles[`breakpoint-${breakpoint}`],\n isRefresh && styles.refresh\n )}\n onKeyDown={escKeyHandler}\n >\n <div className={styles.container}>\n <div className={styles.header}>\n <InternalHeader\n variant=\"h2\"\n __disableActionsWrapping={true}\n actions={\n <InternalButton\n ariaLabel={closeAriaLabel}\n className={styles['dismiss-control']}\n variant=\"modal-dismiss\"\n iconName=\"close\"\n formAction=\"none\"\n onClick={onCloseButtonClick}\n />\n }\n >\n <span id={headerId} className={styles['header--text']}>\n {header}\n </span>\n </InternalHeader>\n </div>\n <div className={clsx(styles.content, { [styles['no-paddings']]: disableContentPaddings })}>\n {children}\n <div ref={stickySentinelRef} />\n </div>\n {footer && (\n <div ref={footerRef} className={clsx(styles.footer, footerStuck && styles['footer--stuck'])}>\n {footer}\n </div>\n )}\n </div>\n </div>\n </FocusLock>\n </div>\n </FormFieldContext.Provider>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["modal/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAA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AAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC,IACxF,MAAM,CACH,CACP,CACG,CACF,CACI,CACR,CACoB,CAC7B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { KeyCode } from '../internal/keycode';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { InternalButton } from '../button/internal';\nimport InternalHeader from '../header/internal';\nimport Portal from '../internal/components/portal';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { FormFieldContext } from '../internal/context/form-field-context';\n\nimport { disableBodyScrolling, enableBodyScrolling } from './body-scroll';\nimport { ModalProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { SomeRequired } from '../internal/types';\nimport FocusLock from '../internal/components/focus-lock';\nimport { useInternalI18n } from '../internal/i18n/context';\nimport { useIntersectionObserver } from '../internal/hooks/use-intersection-observer';\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\ntype InternalModalProps = SomeRequired<ModalProps, 'size'> & InternalBaseComponentProps;\n\nexport default function InternalModal({ modalRoot, ...rest }: InternalModalProps) {\n return (\n <Portal container={modalRoot}>\n <InnerModal {...rest} />\n </Portal>\n );\n}\n\n// Separate component to prevent the Portal from getting in the way of refs, as it needs extra cycles to render the inner components.\n// useContainerQuery needs its targeted element to exist on the first render in order to work properly.\nfunction InnerModal({\n size,\n visible,\n header,\n children,\n footer,\n disableContentPaddings,\n onDismiss,\n __internalRootRef = null,\n ...rest\n}: InternalModalProps) {\n const instanceUniqueId = useUniqueId();\n const headerId = `${rest.id || instanceUniqueId}-header`;\n const lastMouseDownElementRef = useRef<HTMLElement | null>(null);\n const [breakpoint, breakpointsRef] = useContainerBreakpoints(['xs']);\n\n const i18n = useInternalI18n('modal');\n const closeAriaLabel = i18n('closeAriaLabel', rest.closeAriaLabel);\n\n const refObject = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(breakpointsRef, refObject, __internalRootRef);\n\n const isRefresh = useVisualRefresh();\n\n const baseProps = getBaseProps(rest);\n\n // enable body scroll and restore focus if unmounting while visible\n useEffect(() => {\n return () => {\n enableBodyScrolling();\n };\n }, []);\n\n // enable / disable body scroll\n useEffect(() => {\n if (visible) {\n disableBodyScrolling();\n } else {\n enableBodyScrolling();\n }\n }, [visible]);\n\n // Because we hide the element with styles (and not actually detach it from DOM), we need to scroll to top\n useEffect(() => {\n if (visible && refObject.current) {\n refObject.current.scrollTop = 0;\n }\n }, [visible]);\n\n const dismiss = (reason: string) => fireNonCancelableEvent(onDismiss, { reason });\n\n const onOverlayMouseDown = (event: React.MouseEvent) => {\n lastMouseDownElementRef.current = event.target as HTMLElement;\n };\n const onOverlayClick = (event: React.MouseEvent) => {\n const overlay = refObject.current;\n const lastClicked = lastMouseDownElementRef.current;\n\n if (event.target === overlay && lastClicked === overlay) {\n dismiss('overlay');\n }\n };\n const onCloseButtonClick = () => dismiss('closeButton');\n const escKeyHandler = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.escape) {\n dismiss('keyboard');\n }\n };\n\n // We use an empty div element at the end of the content slot as a sentinel\n // to detect when the user has scrolled to the bottom.\n const { ref: stickySentinelRef, isIntersecting: footerStuck } = useIntersectionObserver();\n\n // Add extra scroll padding to account for the height of the sticky footer,\n // to prevent it from covering focused elements.\n const [footerHeight, footerRef] = useContainerQuery(rect => rect.borderBoxHeight);\n\n return (\n <FormFieldContext.Provider value={{}}>\n <div\n {...baseProps}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className, isRefresh && styles.refresh)}\n role=\"dialog\"\n aria-modal={true}\n aria-labelledby={headerId}\n onMouseDown={onOverlayMouseDown}\n onClick={onOverlayClick}\n ref={mergedRef}\n style={footerHeight ? { scrollPaddingBottom: footerHeight } : undefined}\n >\n <FocusLock disabled={!visible} autoFocus={true} restoreFocus={true} className={styles['focus-lock']}>\n <div\n className={clsx(\n styles.dialog,\n styles[size],\n styles[`breakpoint-${breakpoint}`],\n isRefresh && styles.refresh\n )}\n onKeyDown={escKeyHandler}\n >\n <div className={styles.container}>\n <div className={styles.header}>\n <InternalHeader\n variant=\"h2\"\n __disableActionsWrapping={true}\n actions={\n <InternalButton\n ariaLabel={closeAriaLabel}\n className={styles['dismiss-control']}\n variant=\"modal-dismiss\"\n iconName=\"close\"\n formAction=\"none\"\n onClick={onCloseButtonClick}\n />\n }\n >\n <span id={headerId} className={styles['header--text']}>\n {header}\n </span>\n </InternalHeader>\n </div>\n <div className={clsx(styles.content, { [styles['no-paddings']]: disableContentPaddings })}>\n {children}\n <div ref={stickySentinelRef} />\n </div>\n {footer && (\n <div ref={footerRef} className={clsx(styles.footer, footerStuck && styles['footer--stuck'])}>\n {footer}\n </div>\n )}\n </div>\n </div>\n </FocusLock>\n </div>\n </FormFieldContext.Provider>\n );\n}\n"]}
@@ -1,28 +1,28 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "dialog": "awsui_dialog_1d2i7_1yi5s_105",
5
- "modal-slide-up": "awsui_modal-slide-up_1d2i7_1yi5s_1",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1yi5s_1",
7
- "refresh": "awsui_refresh_1d2i7_1yi5s_128",
8
- "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1yi5s_1",
9
- "root": "awsui_root_1d2i7_1yi5s_161",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1yi5s_1",
11
- "hidden": "awsui_hidden_1d2i7_1yi5s_226",
12
- "focus-lock": "awsui_focus-lock_1d2i7_1yi5s_230",
13
- "small": "awsui_small_1d2i7_1yi5s_248",
14
- "medium": "awsui_medium_1d2i7_1yi5s_251",
15
- "large": "awsui_large_1d2i7_1yi5s_254",
16
- "max": "awsui_max_1d2i7_1yi5s_257",
17
- "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1yi5s_257",
18
- "container": "awsui_container_1d2i7_1yi5s_262",
19
- "content": "awsui_content_1d2i7_1yi5s_281",
20
- "no-paddings": "awsui_no-paddings_1d2i7_1yi5s_284",
21
- "header": "awsui_header_1d2i7_1yi5s_288",
22
- "header--text": "awsui_header--text_1d2i7_1yi5s_295",
23
- "footer": "awsui_footer_1d2i7_1yi5s_299",
24
- "footer--stuck": "awsui_footer--stuck_1d2i7_1yi5s_307",
25
- "dismiss-control": "awsui_dismiss-control_1d2i7_1yi5s_316",
26
- "modal-open": "awsui_modal-open_1d2i7_1yi5s_320"
4
+ "dialog": "awsui_dialog_1d2i7_1mex3_105",
5
+ "modal-slide-up": "awsui_modal-slide-up_1d2i7_1mex3_1",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_1mex3_1",
7
+ "refresh": "awsui_refresh_1d2i7_1mex3_128",
8
+ "awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_1mex3_1",
9
+ "root": "awsui_root_1d2i7_1mex3_161",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_1mex3_1",
11
+ "hidden": "awsui_hidden_1d2i7_1mex3_226",
12
+ "focus-lock": "awsui_focus-lock_1d2i7_1mex3_230",
13
+ "small": "awsui_small_1d2i7_1mex3_248",
14
+ "medium": "awsui_medium_1d2i7_1mex3_251",
15
+ "large": "awsui_large_1d2i7_1mex3_254",
16
+ "max": "awsui_max_1d2i7_1mex3_257",
17
+ "breakpoint-xs": "awsui_breakpoint-xs_1d2i7_1mex3_257",
18
+ "container": "awsui_container_1d2i7_1mex3_262",
19
+ "content": "awsui_content_1d2i7_1mex3_281",
20
+ "no-paddings": "awsui_no-paddings_1d2i7_1mex3_284",
21
+ "header": "awsui_header_1d2i7_1mex3_288",
22
+ "header--text": "awsui_header--text_1d2i7_1mex3_295",
23
+ "footer": "awsui_footer_1d2i7_1mex3_299",
24
+ "footer--stuck": "awsui_footer--stuck_1d2i7_1mex3_307",
25
+ "dismiss-control": "awsui_dismiss-control_1d2i7_1mex3_316",
26
+ "modal-open": "awsui_modal-open_1d2i7_1mex3_320"
27
27
  };
28
28