@cloudscape-design/components 3.0.638 → 3.0.640

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 (253) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +31 -31
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/implementation.d.ts +31 -0
  5. package/app-layout/implementation.d.ts.map +1 -1
  6. package/app-layout/implementation.js +2 -0
  7. package/app-layout/implementation.js.map +1 -1
  8. package/app-layout/interfaces.d.ts +7 -0
  9. package/app-layout/interfaces.d.ts.map +1 -1
  10. package/app-layout/interfaces.js.map +1 -1
  11. package/app-layout/internal.js +1 -1
  12. package/app-layout/internal.js.map +1 -1
  13. package/app-layout/notifications/styles.css.js +3 -3
  14. package/app-layout/notifications/styles.scoped.css +7 -7
  15. package/app-layout/notifications/styles.selectors.js +3 -3
  16. package/app-layout/skeleton/index.d.ts +1 -1
  17. package/app-layout/skeleton/index.d.ts.map +1 -1
  18. package/app-layout/skeleton/index.js +2 -2
  19. package/app-layout/skeleton/index.js.map +1 -1
  20. package/app-layout/skeleton/layout.d.ts +2 -2
  21. package/app-layout/skeleton/layout.d.ts.map +1 -1
  22. package/app-layout/skeleton/layout.js +5 -4
  23. package/app-layout/skeleton/layout.js.map +1 -1
  24. package/app-layout/skeleton/styles.css.js +11 -11
  25. package/app-layout/skeleton/styles.scoped.css +99 -38
  26. package/app-layout/skeleton/styles.selectors.js +11 -11
  27. package/app-layout/utils/use-app-layout-placement.js +1 -1
  28. package/app-layout/utils/use-app-layout-placement.js.map +1 -1
  29. package/app-layout/utils/use-pointer-events.d.ts.map +1 -1
  30. package/app-layout/utils/use-pointer-events.js +1 -1
  31. package/app-layout/utils/use-pointer-events.js.map +1 -1
  32. package/app-layout/visual-refresh/background.d.ts.map +1 -1
  33. package/app-layout/visual-refresh/background.js +3 -3
  34. package/app-layout/visual-refresh/background.js.map +1 -1
  35. package/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -1
  36. package/app-layout/visual-refresh/breadcrumbs.js +4 -3
  37. package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  38. package/app-layout/visual-refresh/context.js +1 -1
  39. package/app-layout/visual-refresh/context.js.map +1 -1
  40. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  41. package/app-layout/visual-refresh/drawers.js +5 -5
  42. package/app-layout/visual-refresh/drawers.js.map +1 -1
  43. package/app-layout/visual-refresh/header.d.ts.map +1 -1
  44. package/app-layout/visual-refresh/header.js +4 -3
  45. package/app-layout/visual-refresh/header.js.map +1 -1
  46. package/app-layout/visual-refresh/layout.d.ts.map +1 -1
  47. package/app-layout/visual-refresh/layout.js +2 -0
  48. package/app-layout/visual-refresh/layout.js.map +1 -1
  49. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  50. package/app-layout/visual-refresh/mobile-toolbar.js +4 -4
  51. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  52. package/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  53. package/app-layout/visual-refresh/navigation.js +2 -2
  54. package/app-layout/visual-refresh/navigation.js.map +1 -1
  55. package/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  56. package/app-layout/visual-refresh/notifications.js +4 -3
  57. package/app-layout/visual-refresh/notifications.js.map +1 -1
  58. package/app-layout/visual-refresh/styles.css.js +83 -81
  59. package/app-layout/visual-refresh/styles.scoped.css +266 -258
  60. package/app-layout/visual-refresh/styles.selectors.js +83 -81
  61. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  62. package/app-layout/visual-refresh/tools.js +4 -4
  63. package/app-layout/visual-refresh/tools.js.map +1 -1
  64. package/app-layout/visual-refresh/trigger-button.d.ts +1 -0
  65. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  66. package/app-layout/visual-refresh/trigger-button.js +2 -3
  67. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  68. package/area-chart/internal.js +1 -1
  69. package/area-chart/internal.js.map +1 -1
  70. package/cards/index.d.ts.map +1 -1
  71. package/cards/index.js +4 -6
  72. package/cards/index.js.map +1 -1
  73. package/cards/styles.css.js +39 -40
  74. package/cards/styles.scoped.css +50 -50
  75. package/cards/styles.selectors.js +39 -40
  76. package/container/internal.d.ts +2 -2
  77. package/container/internal.d.ts.map +1 -1
  78. package/container/internal.js +5 -7
  79. package/container/internal.js.map +1 -1
  80. package/container/styles.css.js +28 -30
  81. package/container/styles.scoped.css +52 -65
  82. package/container/styles.selectors.js +28 -30
  83. package/container/use-sticky-header.js +2 -2
  84. package/container/use-sticky-header.js.map +1 -1
  85. package/content-layout/interfaces.d.ts +52 -0
  86. package/content-layout/interfaces.d.ts.map +1 -1
  87. package/content-layout/interfaces.js.map +1 -1
  88. package/content-layout/internal.d.ts +1 -1
  89. package/content-layout/internal.d.ts.map +1 -1
  90. package/content-layout/internal.js +37 -7
  91. package/content-layout/internal.js.map +1 -1
  92. package/content-layout/styles.css.js +14 -7
  93. package/content-layout/styles.scoped.css +57 -37
  94. package/content-layout/styles.selectors.js +14 -7
  95. package/content-layout/test-classes/styles.css.js +9 -0
  96. package/content-layout/test-classes/styles.scoped.css +19 -0
  97. package/content-layout/test-classes/styles.selectors.js +10 -0
  98. package/flashbar/styles.css.js +47 -47
  99. package/flashbar/styles.scoped.css +171 -171
  100. package/flashbar/styles.selectors.js +47 -47
  101. package/internal/components/cartesian-chart/inline-start-labels.js +1 -1
  102. package/internal/components/cartesian-chart/inline-start-labels.js.map +1 -1
  103. package/internal/components/dropdown/dropdown-fit-handler.js +1 -1
  104. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  105. package/internal/components/dropdown/index.js +1 -1
  106. package/internal/components/dropdown/index.js.map +1 -1
  107. package/internal/components/dropdown/styles.css.js +20 -20
  108. package/internal/components/dropdown/styles.scoped.css +41 -41
  109. package/internal/components/dropdown/styles.selectors.js +20 -20
  110. package/internal/components/responsive-text/index.js +1 -1
  111. package/internal/components/responsive-text/index.js.map +1 -1
  112. package/internal/environment.js +1 -1
  113. package/internal/environment.json +1 -1
  114. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  115. package/internal/generated/custom-css-properties/index.js +56 -51
  116. package/internal/generated/custom-css-properties/index.js.map +1 -1
  117. package/internal/hooks/use-scroll-sync/index.d.ts +1 -1
  118. package/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  119. package/internal/hooks/use-scroll-sync/index.js +2 -4
  120. package/internal/hooks/use-scroll-sync/index.js.map +1 -1
  121. package/internal/manifest.json +1 -1
  122. package/internal/utils/content-header-utils.d.ts +1 -0
  123. package/internal/utils/content-header-utils.d.ts.map +1 -1
  124. package/internal/utils/content-header-utils.js +2 -1
  125. package/internal/utils/content-header-utils.js.map +1 -1
  126. package/internal/utils/dom.d.ts +0 -5
  127. package/internal/utils/dom.d.ts.map +1 -1
  128. package/internal/utils/dom.js +0 -12
  129. package/internal/utils/dom.js.map +1 -1
  130. package/internal/utils/handle-key.js +1 -1
  131. package/internal/utils/handle-key.js.map +1 -1
  132. package/link/interfaces.d.ts +6 -1
  133. package/link/interfaces.d.ts.map +1 -1
  134. package/link/interfaces.js.map +1 -1
  135. package/link/internal.d.ts.map +1 -1
  136. package/link/internal.js +12 -2
  137. package/link/internal.js.map +1 -1
  138. package/mixed-line-bar-chart/chart-container.js +1 -1
  139. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  140. package/package.json +1 -1
  141. package/pie-chart/responsive-text.js +1 -1
  142. package/pie-chart/responsive-text.js.map +1 -1
  143. package/popover/use-popover-position.js +1 -1
  144. package/popover/use-popover-position.js.map +1 -1
  145. package/slider/styles.css.js +25 -25
  146. package/slider/styles.scoped.css +71 -71
  147. package/slider/styles.selectors.js +25 -25
  148. package/spinner/styles.css.js +13 -13
  149. package/spinner/styles.scoped.css +39 -39
  150. package/spinner/styles.selectors.js +13 -13
  151. package/split-panel/bottom.d.ts.map +1 -1
  152. package/split-panel/bottom.js +4 -2
  153. package/split-panel/bottom.js.map +1 -1
  154. package/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  155. package/split-panel/icons/bottom-icon-refresh.js +1 -2
  156. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  157. package/split-panel/icons/bottom-icon.js +1 -1
  158. package/split-panel/icons/bottom-icon.js.map +1 -1
  159. package/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  160. package/split-panel/icons/side-position-refresh.js +2 -3
  161. package/split-panel/icons/side-position-refresh.js.map +1 -1
  162. package/split-panel/icons/side-position.js +1 -1
  163. package/split-panel/icons/side-position.js.map +1 -1
  164. package/split-panel/icons/styles.css.js +27 -0
  165. package/split-panel/icons/styles.scoped.css +168 -0
  166. package/split-panel/icons/styles.selectors.js +28 -0
  167. package/split-panel/implementation.d.ts.map +1 -1
  168. package/split-panel/implementation.js +7 -6
  169. package/split-panel/implementation.js.map +1 -1
  170. package/split-panel/internal.js +1 -1
  171. package/split-panel/internal.js.map +1 -1
  172. package/split-panel/side.d.ts.map +1 -1
  173. package/split-panel/side.js +5 -3
  174. package/split-panel/side.js.map +1 -1
  175. package/split-panel/styles.css.js +31 -57
  176. package/split-panel/styles.scoped.css +51 -235
  177. package/split-panel/styles.selectors.js +31 -57
  178. package/split-panel/test-classes/styles.css.js +13 -0
  179. package/split-panel/test-classes/styles.scoped.css +14 -0
  180. package/split-panel/test-classes/styles.selectors.js +14 -0
  181. package/table/interfaces.d.ts +1 -0
  182. package/table/interfaces.d.ts.map +1 -1
  183. package/table/interfaces.js.map +1 -1
  184. package/table/internal.d.ts.map +1 -1
  185. package/table/internal.js +2 -8
  186. package/table/internal.js.map +1 -1
  187. package/table/no-data-cell.d.ts.map +1 -1
  188. package/table/no-data-cell.js +1 -2
  189. package/table/no-data-cell.js.map +1 -1
  190. package/table/progressive-loading/progressive-loading-utils.d.ts.map +1 -1
  191. package/table/progressive-loading/progressive-loading-utils.js +8 -3
  192. package/table/progressive-loading/progressive-loading-utils.js.map +1 -1
  193. package/table/resizer/index.js +1 -1
  194. package/table/resizer/index.js.map +1 -1
  195. package/table/resizer/resizer-lookup.js +1 -1
  196. package/table/resizer/resizer-lookup.js.map +1 -1
  197. package/table/sticky-columns/use-sticky-columns.js +1 -1
  198. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  199. package/table/sticky-columns/utils.js +1 -1
  200. package/table/sticky-columns/utils.js.map +1 -1
  201. package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -1
  202. package/table/sticky-scrollbar/use-sticky-scrollbar.js +12 -14
  203. package/table/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -1
  204. package/table/sticky-scrolling.js +1 -1
  205. package/table/sticky-scrolling.js.map +1 -1
  206. package/table/styles.css.js +34 -35
  207. package/table/styles.scoped.css +39 -48
  208. package/table/styles.selectors.js +34 -35
  209. package/table/table-role/grid-navigation.js +13 -13
  210. package/table/table-role/grid-navigation.js.map +1 -1
  211. package/table/use-column-widths.js +1 -1
  212. package/table/use-column-widths.js.map +1 -1
  213. package/tabs/scroll-utils.js +1 -1
  214. package/tabs/scroll-utils.js.map +1 -1
  215. package/test-utils/dom/app-layout/index.js +1 -1
  216. package/test-utils/dom/app-layout/index.js.map +1 -1
  217. package/test-utils/dom/content-layout/index.d.ts +3 -0
  218. package/test-utils/dom/content-layout/index.js +11 -1
  219. package/test-utils/dom/content-layout/index.js.map +1 -1
  220. package/test-utils/dom/split-panel/index.js +3 -3
  221. package/test-utils/dom/split-panel/index.js.map +1 -1
  222. package/test-utils/selectors/app-layout/index.js +1 -1
  223. package/test-utils/selectors/app-layout/index.js.map +1 -1
  224. package/test-utils/selectors/content-layout/index.d.ts +3 -0
  225. package/test-utils/selectors/content-layout/index.js +11 -1
  226. package/test-utils/selectors/content-layout/index.js.map +1 -1
  227. package/test-utils/selectors/split-panel/index.js +3 -3
  228. package/test-utils/selectors/split-panel/index.js.map +1 -1
  229. package/test-utils/tsconfig.tsbuildinfo +1 -1
  230. package/wizard/internal.d.ts.map +1 -1
  231. package/wizard/internal.js +3 -5
  232. package/wizard/internal.js.map +1 -1
  233. package/wizard/styles.css.js +31 -32
  234. package/wizard/styles.scoped.css +59 -116
  235. package/wizard/styles.selectors.js +31 -32
  236. package/wizard/wizard-form-header.d.ts.map +1 -1
  237. package/wizard/wizard-form-header.js +2 -4
  238. package/wizard/wizard-form-header.js.map +1 -1
  239. package/wizard/wizard-navigation.d.ts.map +1 -1
  240. package/wizard/wizard-navigation.js +2 -3
  241. package/wizard/wizard-navigation.js.map +1 -1
  242. package/app-layout/widget.d.ts +0 -6
  243. package/app-layout/widget.d.ts.map +0 -1
  244. package/app-layout/widget.js +0 -16
  245. package/app-layout/widget.js.map +0 -1
  246. package/internal/direction.d.ts +0 -36
  247. package/internal/direction.d.ts.map +0 -1
  248. package/internal/direction.js +0 -66
  249. package/internal/direction.js.map +0 -1
  250. package/split-panel/widget.d.ts +0 -2
  251. package/split-panel/widget.d.ts.map +0 -1
  252. package/split-panel/widget.js +0 -4
  253. package/split-panel/widget.js.map +0 -1
@@ -1,45 +1,44 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "card-inner": "awsui_card-inner_p8a6i_6eu0b_103",
5
- "root": "awsui_root_p8a6i_6eu0b_139",
6
- "header-variant-full-page": "awsui_header-variant-full-page_p8a6i_6eu0b_181",
7
- "header-refresh": "awsui_header-refresh_p8a6i_6eu0b_181",
8
- "list": "awsui_list_p8a6i_6eu0b_190",
9
- "list-grid-1": "awsui_list-grid-1_p8a6i_6eu0b_201",
10
- "card": "awsui_card_p8a6i_6eu0b_103",
11
- "list-grid-2": "awsui_list-grid-2_p8a6i_6eu0b_204",
12
- "list-grid-3": "awsui_list-grid-3_p8a6i_6eu0b_207",
13
- "list-grid-4": "awsui_list-grid-4_p8a6i_6eu0b_210",
14
- "list-grid-5": "awsui_list-grid-5_p8a6i_6eu0b_213",
15
- "list-grid-6": "awsui_list-grid-6_p8a6i_6eu0b_216",
16
- "list-grid-7": "awsui_list-grid-7_p8a6i_6eu0b_219",
17
- "list-grid-8": "awsui_list-grid-8_p8a6i_6eu0b_222",
18
- "list-grid-9": "awsui_list-grid-9_p8a6i_6eu0b_225",
19
- "list-grid-10": "awsui_list-grid-10_p8a6i_6eu0b_228",
20
- "list-grid-11": "awsui_list-grid-11_p8a6i_6eu0b_231",
21
- "list-grid-12": "awsui_list-grid-12_p8a6i_6eu0b_234",
22
- "list-grid-13": "awsui_list-grid-13_p8a6i_6eu0b_237",
23
- "list-grid-14": "awsui_list-grid-14_p8a6i_6eu0b_240",
24
- "list-grid-15": "awsui_list-grid-15_p8a6i_6eu0b_243",
25
- "list-grid-16": "awsui_list-grid-16_p8a6i_6eu0b_246",
26
- "list-grid-17": "awsui_list-grid-17_p8a6i_6eu0b_249",
27
- "list-grid-18": "awsui_list-grid-18_p8a6i_6eu0b_252",
28
- "list-grid-19": "awsui_list-grid-19_p8a6i_6eu0b_255",
29
- "list-grid-20": "awsui_list-grid-20_p8a6i_6eu0b_258",
30
- "selection-control": "awsui_selection-control_p8a6i_6eu0b_262",
31
- "loading": "awsui_loading_p8a6i_6eu0b_272",
32
- "empty": "awsui_empty_p8a6i_6eu0b_273",
33
- "has-header": "awsui_has-header_p8a6i_6eu0b_280",
34
- "refresh": "awsui_refresh_p8a6i_6eu0b_283",
35
- "remove-high-contrast-header": "awsui_remove-high-contrast-header_p8a6i_6eu0b_283",
36
- "card-header": "awsui_card-header_p8a6i_6eu0b_354",
37
- "card-header-inner": "awsui_card-header-inner_p8a6i_6eu0b_362",
38
- "card-selectable": "awsui_card-selectable_p8a6i_6eu0b_366",
39
- "card-selected": "awsui_card-selected_p8a6i_6eu0b_369",
40
- "section": "awsui_section_p8a6i_6eu0b_377",
41
- "section-header": "awsui_section-header_p8a6i_6eu0b_385",
42
- "section-content": "awsui_section-content_p8a6i_6eu0b_391",
43
- "footer-pagination": "awsui_footer-pagination_p8a6i_6eu0b_401"
4
+ "card-inner": "awsui_card-inner_p8a6i_1etzp_103",
5
+ "root": "awsui_root_p8a6i_1etzp_139",
6
+ "header-variant-full-page": "awsui_header-variant-full-page_p8a6i_1etzp_181",
7
+ "header-refresh": "awsui_header-refresh_p8a6i_1etzp_181",
8
+ "list": "awsui_list_p8a6i_1etzp_190",
9
+ "list-grid-1": "awsui_list-grid-1_p8a6i_1etzp_201",
10
+ "card": "awsui_card_p8a6i_1etzp_103",
11
+ "list-grid-2": "awsui_list-grid-2_p8a6i_1etzp_204",
12
+ "list-grid-3": "awsui_list-grid-3_p8a6i_1etzp_207",
13
+ "list-grid-4": "awsui_list-grid-4_p8a6i_1etzp_210",
14
+ "list-grid-5": "awsui_list-grid-5_p8a6i_1etzp_213",
15
+ "list-grid-6": "awsui_list-grid-6_p8a6i_1etzp_216",
16
+ "list-grid-7": "awsui_list-grid-7_p8a6i_1etzp_219",
17
+ "list-grid-8": "awsui_list-grid-8_p8a6i_1etzp_222",
18
+ "list-grid-9": "awsui_list-grid-9_p8a6i_1etzp_225",
19
+ "list-grid-10": "awsui_list-grid-10_p8a6i_1etzp_228",
20
+ "list-grid-11": "awsui_list-grid-11_p8a6i_1etzp_231",
21
+ "list-grid-12": "awsui_list-grid-12_p8a6i_1etzp_234",
22
+ "list-grid-13": "awsui_list-grid-13_p8a6i_1etzp_237",
23
+ "list-grid-14": "awsui_list-grid-14_p8a6i_1etzp_240",
24
+ "list-grid-15": "awsui_list-grid-15_p8a6i_1etzp_243",
25
+ "list-grid-16": "awsui_list-grid-16_p8a6i_1etzp_246",
26
+ "list-grid-17": "awsui_list-grid-17_p8a6i_1etzp_249",
27
+ "list-grid-18": "awsui_list-grid-18_p8a6i_1etzp_252",
28
+ "list-grid-19": "awsui_list-grid-19_p8a6i_1etzp_255",
29
+ "list-grid-20": "awsui_list-grid-20_p8a6i_1etzp_258",
30
+ "selection-control": "awsui_selection-control_p8a6i_1etzp_262",
31
+ "loading": "awsui_loading_p8a6i_1etzp_272",
32
+ "empty": "awsui_empty_p8a6i_1etzp_273",
33
+ "has-header": "awsui_has-header_p8a6i_1etzp_280",
34
+ "refresh": "awsui_refresh_p8a6i_1etzp_283",
35
+ "card-header": "awsui_card-header_p8a6i_1etzp_354",
36
+ "card-header-inner": "awsui_card-header-inner_p8a6i_1etzp_362",
37
+ "card-selectable": "awsui_card-selectable_p8a6i_1etzp_366",
38
+ "card-selected": "awsui_card-selected_p8a6i_1etzp_369",
39
+ "section": "awsui_section_p8a6i_1etzp_377",
40
+ "section-header": "awsui_section-header_p8a6i_1etzp_385",
41
+ "section-content": "awsui_section-content_p8a6i_1etzp_391",
42
+ "footer-pagination": "awsui_footer-pagination_p8a6i_1etzp_401"
44
43
  };
45
44
 
@@ -100,34 +100,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
100
100
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
101
101
  SPDX-License-Identifier: Apache-2.0
102
102
  */
103
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9) {
103
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9) {
104
104
  transition-property: background-color;
105
105
  transition-duration: var(--motion-duration-transition-show-paced-9s9l5z, 180ms);
106
106
  transition-timing-function: var(--motion-easing-transition-show-paced-eobwvi, ease-out);
107
107
  }
108
108
  @media (prefers-reduced-motion: reduce) {
109
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9) {
109
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9) {
110
110
  animation: none;
111
111
  transition: none;
112
112
  }
113
113
  }
114
- .awsui-motion-disabled .awsui_card-inner_p8a6i_6eu0b_103:not(#\9), .awsui-mode-entering .awsui_card-inner_p8a6i_6eu0b_103:not(#\9) {
114
+ .awsui-motion-disabled .awsui_card-inner_p8a6i_1etzp_103:not(#\9), .awsui-mode-entering .awsui_card-inner_p8a6i_1etzp_103:not(#\9) {
115
115
  animation: none;
116
116
  transition: none;
117
117
  }
118
118
 
119
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before {
119
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before {
120
120
  transition-property: border-top-color, border-right-color, border-bottom-color, border-left-color;
121
121
  transition-duration: var(--motion-duration-transition-show-paced-9s9l5z, 180ms);
122
122
  transition-timing-function: var(--motion-easing-transition-show-paced-eobwvi, ease-out);
123
123
  }
124
124
  @media (prefers-reduced-motion: reduce) {
125
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before {
125
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before {
126
126
  animation: none;
127
127
  transition: none;
128
128
  }
129
129
  }
130
- .awsui-motion-disabled .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before, .awsui-mode-entering .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before {
130
+ .awsui-motion-disabled .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before, .awsui-mode-entering .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before {
131
131
  animation: none;
132
132
  transition: none;
133
133
  }
@@ -136,7 +136,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
136
136
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
137
  SPDX-License-Identifier: Apache-2.0
138
138
  */
139
- .awsui_root_p8a6i_6eu0b_139:not(#\9) {
139
+ .awsui_root_p8a6i_1etzp_139:not(#\9) {
140
140
  border-collapse: separate;
141
141
  border-spacing: 0;
142
142
  box-sizing: border-box;
@@ -179,7 +179,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
179
179
  -moz-osx-font-smoothing: auto;
180
180
  }
181
181
 
182
- .awsui_header-variant-full-page_p8a6i_6eu0b_181.awsui_header-refresh_p8a6i_6eu0b_181:not(#\9) {
182
+ .awsui_header-variant-full-page_p8a6i_1etzp_181.awsui_header-refresh_p8a6i_1etzp_181:not(#\9) {
183
183
  padding-block-start: 0;
184
184
  padding-inline-start: 0;
185
185
  padding-inline-end: 0;
@@ -188,7 +188,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
188
188
  );
189
189
  }
190
190
 
191
- .awsui_list_p8a6i_6eu0b_190:not(#\9) {
191
+ .awsui_list_p8a6i_1etzp_190:not(#\9) {
192
192
  display: flex;
193
193
  flex-wrap: wrap;
194
194
  box-sizing: border-box;
@@ -199,68 +199,68 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
199
199
  margin-inline-start: calc(var(--space-grid-gutter-ieqn7e, 20px) * -1);
200
200
  margin-inline-end: 0;
201
201
  }
202
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-1_p8a6i_6eu0b_201 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
202
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-1_p8a6i_1etzp_201 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
203
203
  inline-size: 100%;
204
204
  }
205
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-2_p8a6i_6eu0b_204 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
205
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-2_p8a6i_1etzp_204 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
206
206
  inline-size: 50%;
207
207
  }
208
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-3_p8a6i_6eu0b_207 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
208
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-3_p8a6i_1etzp_207 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
209
209
  inline-size: 33.3333333333%;
210
210
  }
211
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-4_p8a6i_6eu0b_210 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
211
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-4_p8a6i_1etzp_210 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
212
212
  inline-size: 25%;
213
213
  }
214
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-5_p8a6i_6eu0b_213 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
214
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-5_p8a6i_1etzp_213 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
215
215
  inline-size: 20%;
216
216
  }
217
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-6_p8a6i_6eu0b_216 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
217
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-6_p8a6i_1etzp_216 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
218
218
  inline-size: 16.6666666667%;
219
219
  }
220
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-7_p8a6i_6eu0b_219 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
220
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-7_p8a6i_1etzp_219 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
221
221
  inline-size: 14.2857142857%;
222
222
  }
223
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-8_p8a6i_6eu0b_222 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
223
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-8_p8a6i_1etzp_222 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
224
224
  inline-size: 12.5%;
225
225
  }
226
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-9_p8a6i_6eu0b_225 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
226
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-9_p8a6i_1etzp_225 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
227
227
  inline-size: 11.1111111111%;
228
228
  }
229
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-10_p8a6i_6eu0b_228 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
229
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-10_p8a6i_1etzp_228 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
230
230
  inline-size: 10%;
231
231
  }
232
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-11_p8a6i_6eu0b_231 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
232
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-11_p8a6i_1etzp_231 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
233
233
  inline-size: 9.0909090909%;
234
234
  }
235
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-12_p8a6i_6eu0b_234 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
235
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-12_p8a6i_1etzp_234 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
236
236
  inline-size: 8.3333333333%;
237
237
  }
238
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-13_p8a6i_6eu0b_237 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
238
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-13_p8a6i_1etzp_237 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
239
239
  inline-size: 7.6923076923%;
240
240
  }
241
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-14_p8a6i_6eu0b_240 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
241
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-14_p8a6i_1etzp_240 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
242
242
  inline-size: 7.1428571429%;
243
243
  }
244
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-15_p8a6i_6eu0b_243 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
244
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-15_p8a6i_1etzp_243 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
245
245
  inline-size: 6.6666666667%;
246
246
  }
247
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-16_p8a6i_6eu0b_246 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
247
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-16_p8a6i_1etzp_246 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
248
248
  inline-size: 6.25%;
249
249
  }
250
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-17_p8a6i_6eu0b_249 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
250
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-17_p8a6i_1etzp_249 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
251
251
  inline-size: 5.8823529412%;
252
252
  }
253
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-18_p8a6i_6eu0b_252 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
253
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-18_p8a6i_1etzp_252 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
254
254
  inline-size: 5.5555555556%;
255
255
  }
256
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-19_p8a6i_6eu0b_255 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
256
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-19_p8a6i_1etzp_255 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
257
257
  inline-size: 5.2631578947%;
258
258
  }
259
- .awsui_list_p8a6i_6eu0b_190.awsui_list-grid-20_p8a6i_6eu0b_258 > .awsui_card_p8a6i_6eu0b_103:not(#\9) {
259
+ .awsui_list_p8a6i_1etzp_190.awsui_list-grid-20_p8a6i_1etzp_258 > .awsui_card_p8a6i_1etzp_103:not(#\9) {
260
260
  inline-size: 5%;
261
261
  }
262
262
 
263
- .awsui_selection-control_p8a6i_6eu0b_262:not(#\9) {
263
+ .awsui_selection-control_p8a6i_1etzp_262:not(#\9) {
264
264
  position: absolute;
265
265
  box-sizing: border-box;
266
266
  inline-size: calc(var(--size-control-28i7hr, 16px) + (2 * var(--space-card-horizontal-tuwbbd, 20px)));
@@ -270,22 +270,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
270
270
  padding-inline: var(--space-card-horizontal-tuwbbd, 20px);
271
271
  }
272
272
 
273
- .awsui_loading_p8a6i_6eu0b_272:not(#\9),
274
- .awsui_empty_p8a6i_6eu0b_273:not(#\9) {
273
+ .awsui_loading_p8a6i_1etzp_272:not(#\9),
274
+ .awsui_empty_p8a6i_1etzp_273:not(#\9) {
275
275
  overflow: hidden;
276
276
  text-align: center;
277
277
  color: var(--color-text-empty-2wfcyr, #5f6b7a);
278
278
  margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
279
279
  }
280
280
 
281
- .awsui_has-header_p8a6i_6eu0b_280:not(#\9) {
281
+ .awsui_has-header_p8a6i_1etzp_280:not(#\9) {
282
282
  margin-block-start: var(--space-grid-gutter-ieqn7e, 20px);
283
283
  }
284
- .awsui_has-header_p8a6i_6eu0b_280.awsui_refresh_p8a6i_6eu0b_283.awsui_header-variant-full-page_p8a6i_6eu0b_181.awsui_remove-high-contrast-header_p8a6i_6eu0b_283:not(#\9) {
284
+ .awsui_has-header_p8a6i_1etzp_280.awsui_refresh_p8a6i_1etzp_283.awsui_header-variant-full-page_p8a6i_1etzp_181:not(#\9) {
285
285
  margin-block-start: var(--space-scaled-s-aqzyko, 12px);
286
286
  }
287
287
 
288
- .awsui_card_p8a6i_6eu0b_103:not(#\9) {
288
+ .awsui_card_p8a6i_1etzp_103:not(#\9) {
289
289
  display: flex;
290
290
  overflow-wrap: break-word;
291
291
  word-wrap: break-word;
@@ -295,7 +295,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
295
295
  padding-inline: 0;
296
296
  list-style: none;
297
297
  }
298
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9) {
298
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9) {
299
299
  position: relative;
300
300
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
301
301
  margin-block-start: 0;
@@ -312,7 +312,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
312
312
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
313
313
  box-sizing: border-box;
314
314
  }
315
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before {
315
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before {
316
316
  content: "";
317
317
  position: absolute;
318
318
  inset-inline-start: 0px;
@@ -330,7 +330,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
330
330
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
331
331
  z-index: 1;
332
332
  }
333
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::after {
333
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::after {
334
334
  content: "";
335
335
  position: absolute;
336
336
  inset-inline-start: 0px;
@@ -345,14 +345,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
345
345
  border-end-start-radius: var(--border-radius-container-wqv1zi, 16px);
346
346
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
347
347
  }
348
- .awsui_card-inner_p8a6i_6eu0b_103:not(#\9):not(.awsui_refresh_p8a6i_6eu0b_283)::after {
348
+ .awsui_card-inner_p8a6i_1etzp_103:not(#\9):not(.awsui_refresh_p8a6i_1etzp_283)::after {
349
349
  box-shadow: var(--shadow-container-fxmdn3, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
350
350
  }
351
- .awsui_card-inner_p8a6i_6eu0b_103.awsui_refresh_p8a6i_6eu0b_283:not(#\9)::after {
351
+ .awsui_card-inner_p8a6i_1etzp_103.awsui_refresh_p8a6i_1etzp_283:not(#\9)::after {
352
352
  border-block: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
353
353
  border-inline: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
354
354
  }
355
- .awsui_card-header_p8a6i_6eu0b_354:not(#\9) {
355
+ .awsui_card-header_p8a6i_1etzp_354:not(#\9) {
356
356
  font-size: var(--font-size-heading-m-sjd256, 18px);
357
357
  line-height: var(--line-height-heading-m-50evfk, 22px);
358
358
  letter-spacing: var(--letter-spacing-heading-m-0w575i, -0.01em);
@@ -360,22 +360,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
360
360
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
361
361
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
362
362
  }
363
- .awsui_card-header-inner_p8a6i_6eu0b_362:not(#\9) {
363
+ .awsui_card-header-inner_p8a6i_1etzp_362:not(#\9) {
364
364
  inline-size: 100%;
365
365
  display: inline-block;
366
366
  }
367
- .awsui_card-selectable_p8a6i_6eu0b_366 > .awsui_card-inner_p8a6i_6eu0b_103 > .awsui_card-header_p8a6i_6eu0b_354:not(#\9) {
367
+ .awsui_card-selectable_p8a6i_1etzp_366 > .awsui_card-inner_p8a6i_1etzp_103 > .awsui_card-header_p8a6i_1etzp_354:not(#\9) {
368
368
  inline-size: 90%;
369
369
  }
370
- .awsui_card-selected_p8a6i_6eu0b_369 > .awsui_card-inner_p8a6i_6eu0b_103:not(#\9) {
370
+ .awsui_card-selected_p8a6i_1etzp_369 > .awsui_card-inner_p8a6i_1etzp_103:not(#\9) {
371
371
  background-color: var(--color-background-item-selected-hcx8l4, #f2f8fd);
372
372
  }
373
- .awsui_card-selected_p8a6i_6eu0b_369 > .awsui_card-inner_p8a6i_6eu0b_103:not(#\9)::before {
373
+ .awsui_card-selected_p8a6i_1etzp_369 > .awsui_card-inner_p8a6i_1etzp_103:not(#\9)::before {
374
374
  border-block: var(--border-item-width-yel47s, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
375
375
  border-inline: var(--border-item-width-yel47s, 2px) solid var(--color-border-item-selected-k00wlz, #0972d3);
376
376
  }
377
377
 
378
- .awsui_section_p8a6i_6eu0b_377:not(#\9) {
378
+ .awsui_section_p8a6i_1etzp_377:not(#\9) {
379
379
  display: inline-block;
380
380
  box-sizing: border-box;
381
381
  padding-block-start: var(--space-xs-zb16t3, 8px);
@@ -383,23 +383,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
383
383
  padding-inline: 0;
384
384
  vertical-align: top;
385
385
  }
386
- .awsui_section-header_p8a6i_6eu0b_385:not(#\9) {
386
+ .awsui_section-header_p8a6i_1etzp_385:not(#\9) {
387
387
  font-size: var(--font-size-body-m-x4okxb, 14px);
388
388
  line-height: var(--line-height-body-m-30ar75, 20px);
389
389
  font-weight: var(--font-display-label-weight-815ja9, 700);
390
390
  color: var(--color-text-label-rj4jdv, #000716);
391
391
  }
392
- .awsui_section-content_p8a6i_6eu0b_391:not(#\9) {
392
+ .awsui_section-content_p8a6i_1etzp_391:not(#\9) {
393
393
  /* used in test-utils */
394
394
  }
395
395
 
396
- .awsui_section_p8a6i_6eu0b_377:not(#\9):last-child {
396
+ .awsui_section_p8a6i_1etzp_377:not(#\9):last-child {
397
397
  padding-block-start: var(--space-xs-zb16t3, 8px);
398
398
  padding-block-end: 0;
399
399
  padding-inline: 0;
400
400
  }
401
401
 
402
- .awsui_footer-pagination_p8a6i_6eu0b_401:not(#\9) {
402
+ .awsui_footer-pagination_p8a6i_1etzp_401:not(#\9) {
403
403
  display: flex;
404
404
  justify-content: flex-end;
405
405
  }
@@ -2,45 +2,44 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "card-inner": "awsui_card-inner_p8a6i_6eu0b_103",
6
- "root": "awsui_root_p8a6i_6eu0b_139",
7
- "header-variant-full-page": "awsui_header-variant-full-page_p8a6i_6eu0b_181",
8
- "header-refresh": "awsui_header-refresh_p8a6i_6eu0b_181",
9
- "list": "awsui_list_p8a6i_6eu0b_190",
10
- "list-grid-1": "awsui_list-grid-1_p8a6i_6eu0b_201",
11
- "card": "awsui_card_p8a6i_6eu0b_103",
12
- "list-grid-2": "awsui_list-grid-2_p8a6i_6eu0b_204",
13
- "list-grid-3": "awsui_list-grid-3_p8a6i_6eu0b_207",
14
- "list-grid-4": "awsui_list-grid-4_p8a6i_6eu0b_210",
15
- "list-grid-5": "awsui_list-grid-5_p8a6i_6eu0b_213",
16
- "list-grid-6": "awsui_list-grid-6_p8a6i_6eu0b_216",
17
- "list-grid-7": "awsui_list-grid-7_p8a6i_6eu0b_219",
18
- "list-grid-8": "awsui_list-grid-8_p8a6i_6eu0b_222",
19
- "list-grid-9": "awsui_list-grid-9_p8a6i_6eu0b_225",
20
- "list-grid-10": "awsui_list-grid-10_p8a6i_6eu0b_228",
21
- "list-grid-11": "awsui_list-grid-11_p8a6i_6eu0b_231",
22
- "list-grid-12": "awsui_list-grid-12_p8a6i_6eu0b_234",
23
- "list-grid-13": "awsui_list-grid-13_p8a6i_6eu0b_237",
24
- "list-grid-14": "awsui_list-grid-14_p8a6i_6eu0b_240",
25
- "list-grid-15": "awsui_list-grid-15_p8a6i_6eu0b_243",
26
- "list-grid-16": "awsui_list-grid-16_p8a6i_6eu0b_246",
27
- "list-grid-17": "awsui_list-grid-17_p8a6i_6eu0b_249",
28
- "list-grid-18": "awsui_list-grid-18_p8a6i_6eu0b_252",
29
- "list-grid-19": "awsui_list-grid-19_p8a6i_6eu0b_255",
30
- "list-grid-20": "awsui_list-grid-20_p8a6i_6eu0b_258",
31
- "selection-control": "awsui_selection-control_p8a6i_6eu0b_262",
32
- "loading": "awsui_loading_p8a6i_6eu0b_272",
33
- "empty": "awsui_empty_p8a6i_6eu0b_273",
34
- "has-header": "awsui_has-header_p8a6i_6eu0b_280",
35
- "refresh": "awsui_refresh_p8a6i_6eu0b_283",
36
- "remove-high-contrast-header": "awsui_remove-high-contrast-header_p8a6i_6eu0b_283",
37
- "card-header": "awsui_card-header_p8a6i_6eu0b_354",
38
- "card-header-inner": "awsui_card-header-inner_p8a6i_6eu0b_362",
39
- "card-selectable": "awsui_card-selectable_p8a6i_6eu0b_366",
40
- "card-selected": "awsui_card-selected_p8a6i_6eu0b_369",
41
- "section": "awsui_section_p8a6i_6eu0b_377",
42
- "section-header": "awsui_section-header_p8a6i_6eu0b_385",
43
- "section-content": "awsui_section-content_p8a6i_6eu0b_391",
44
- "footer-pagination": "awsui_footer-pagination_p8a6i_6eu0b_401"
5
+ "card-inner": "awsui_card-inner_p8a6i_1etzp_103",
6
+ "root": "awsui_root_p8a6i_1etzp_139",
7
+ "header-variant-full-page": "awsui_header-variant-full-page_p8a6i_1etzp_181",
8
+ "header-refresh": "awsui_header-refresh_p8a6i_1etzp_181",
9
+ "list": "awsui_list_p8a6i_1etzp_190",
10
+ "list-grid-1": "awsui_list-grid-1_p8a6i_1etzp_201",
11
+ "card": "awsui_card_p8a6i_1etzp_103",
12
+ "list-grid-2": "awsui_list-grid-2_p8a6i_1etzp_204",
13
+ "list-grid-3": "awsui_list-grid-3_p8a6i_1etzp_207",
14
+ "list-grid-4": "awsui_list-grid-4_p8a6i_1etzp_210",
15
+ "list-grid-5": "awsui_list-grid-5_p8a6i_1etzp_213",
16
+ "list-grid-6": "awsui_list-grid-6_p8a6i_1etzp_216",
17
+ "list-grid-7": "awsui_list-grid-7_p8a6i_1etzp_219",
18
+ "list-grid-8": "awsui_list-grid-8_p8a6i_1etzp_222",
19
+ "list-grid-9": "awsui_list-grid-9_p8a6i_1etzp_225",
20
+ "list-grid-10": "awsui_list-grid-10_p8a6i_1etzp_228",
21
+ "list-grid-11": "awsui_list-grid-11_p8a6i_1etzp_231",
22
+ "list-grid-12": "awsui_list-grid-12_p8a6i_1etzp_234",
23
+ "list-grid-13": "awsui_list-grid-13_p8a6i_1etzp_237",
24
+ "list-grid-14": "awsui_list-grid-14_p8a6i_1etzp_240",
25
+ "list-grid-15": "awsui_list-grid-15_p8a6i_1etzp_243",
26
+ "list-grid-16": "awsui_list-grid-16_p8a6i_1etzp_246",
27
+ "list-grid-17": "awsui_list-grid-17_p8a6i_1etzp_249",
28
+ "list-grid-18": "awsui_list-grid-18_p8a6i_1etzp_252",
29
+ "list-grid-19": "awsui_list-grid-19_p8a6i_1etzp_255",
30
+ "list-grid-20": "awsui_list-grid-20_p8a6i_1etzp_258",
31
+ "selection-control": "awsui_selection-control_p8a6i_1etzp_262",
32
+ "loading": "awsui_loading_p8a6i_1etzp_272",
33
+ "empty": "awsui_empty_p8a6i_1etzp_273",
34
+ "has-header": "awsui_has-header_p8a6i_1etzp_280",
35
+ "refresh": "awsui_refresh_p8a6i_1etzp_283",
36
+ "card-header": "awsui_card-header_p8a6i_1etzp_354",
37
+ "card-header-inner": "awsui_card-header-inner_p8a6i_1etzp_362",
38
+ "card-selectable": "awsui_card-selectable_p8a6i_1etzp_366",
39
+ "card-selected": "awsui_card-selected_p8a6i_1etzp_369",
40
+ "section": "awsui_section_p8a6i_1etzp_377",
41
+ "section-header": "awsui_section-header_p8a6i_1etzp_385",
42
+ "section-content": "awsui_section-content_p8a6i_1etzp_391",
43
+ "footer-pagination": "awsui_footer-pagination_p8a6i_1etzp_401"
45
44
  };
46
45
 
@@ -10,7 +10,7 @@ export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>,
10
10
  __disableFooterPaddings?: boolean;
11
11
  __hiddenContent?: boolean;
12
12
  __headerRef?: React.RefObject<HTMLDivElement>;
13
- __darkHeader?: boolean;
13
+ __fullPage?: boolean;
14
14
  __disableStickyMobile?: boolean;
15
15
  /**
16
16
  * Additional internal variant:
@@ -23,5 +23,5 @@ export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>,
23
23
  __subStepRef?: ReturnType<typeof useFunnelSubStep>['subStepRef'];
24
24
  }
25
25
  export declare function InternalContainerAsSubstep(props: InternalContainerProps): JSX.Element;
26
- export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __darkHeader, __disableStickyMobile, __funnelSubStepProps, __subStepRef, ...restProps }: InternalContainerProps): JSX.Element;
26
+ export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __fullPage, __disableStickyMobile, __funnelSubStepProps, __subStepRef, ...restProps }: InternalContainerProps): JSX.Element;
27
27
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAQlF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAM1E,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;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9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IAEzE,oBAAoB,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,CAAC;IACjF,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC;CAClE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,eAWvE;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,SAAS,EACT,KAAK,EACL,cAAc,EACd,oBAAoB,EACpB,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAkB,EAClB,qBAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,sBAAsB,eAoHxB"}
@@ -5,7 +5,6 @@ import clsx from 'clsx';
5
5
  import React, { useEffect, useRef } from 'react';
6
6
  import { getBaseProps } from '../internal/base-component';
7
7
  import { useAppLayoutContext } from '../internal/context/app-layout-context';
8
- import { getContentHeaderClassName } from '../internal/utils/content-header-utils';
9
8
  import { StickyHeaderContext, useStickyHeader } from './use-sticky-header';
10
9
  import { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';
11
10
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
@@ -15,7 +14,6 @@ import styles from './styles.css.js';
15
14
  import { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';
16
15
  import { useModalContext } from '../internal/context/modal-context';
17
16
  import { useUniqueId } from '../internal/hooks/use-unique-id';
18
- import { shouldRemoveHighContrastHeader } from '../internal/utils/content-header-utils';
19
17
  import { ContainerHeaderContextProvider } from '../internal/context/container-header';
20
18
  export function InternalContainerAsSubstep(props) {
21
19
  const { subStepRef, funnelSubStepProps } = useFunnelSubStep();
@@ -24,7 +22,7 @@ export function InternalContainerAsSubstep(props) {
24
22
  }
25
23
  export default function InternalContainer(_a) {
26
24
  var _b;
27
- var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __darkHeader = false, __disableStickyMobile = true, __funnelSubStepProps, __subStepRef } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "media", "__stickyOffset", "__mobileStickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__darkHeader", "__disableStickyMobile", "__funnelSubStepProps", "__subStepRef"]);
25
+ var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __fullPage = false, __disableStickyMobile = true, __funnelSubStepProps, __subStepRef } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "media", "__stickyOffset", "__mobileStickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__fullPage", "__disableStickyMobile", "__funnelSubStepProps", "__subStepRef"]);
28
26
  const isMobile = useMobile();
29
27
  const baseProps = getBaseProps(restProps);
30
28
  const rootRef = useRef(null);
@@ -34,7 +32,7 @@ export default function InternalContainer(_a) {
34
32
  const { setHasStickyBackground } = useAppLayoutContext();
35
33
  const isRefresh = useVisualRefresh();
36
34
  const hasDynamicHeight = isRefresh && variant === 'full-page';
37
- const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });
35
+ const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__fullPage });
38
36
  const mergedRef = useMergeRefs(rootRef, __internalRootRef);
39
37
  const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);
40
38
  /**
@@ -63,7 +61,7 @@ export default function InternalContainer(_a) {
63
61
  React.createElement("div", { id: contentId, ref: __subStepRef, className: clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height']) },
64
62
  header && (React.createElement(ContainerHeaderContextProvider, null,
65
63
  React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
66
- React.createElement("div", Object.assign({ className: clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'], {
64
+ React.createElement("div", Object.assign({ className: clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], {
67
65
  [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
68
66
  [styles['header-sticky-enabled']]: isSticky,
69
67
  [styles['header-dynamic-height']]: hasDynamicHeight,
@@ -71,8 +69,8 @@ export default function InternalContainer(_a) {
71
69
  [styles['with-paddings']]: !disableHeaderPaddings,
72
70
  [styles['with-hidden-content']]: !children || __hiddenContent,
73
71
  [styles['header-with-media']]: hasMedia,
74
- }) }, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], getContentHeaderClassName()) }, header)) : (header))))),
75
- React.createElement("div", { className: clsx(styles.content, fitHeight && styles['content-fit-height'], shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'], {
72
+ }) }, stickyStyles, { ref: headerMergedRef }), header)))),
73
+ React.createElement("div", { className: clsx(styles.content, fitHeight && styles['content-fit-height'], {
76
74
  [styles['with-paddings']]: !disableContentPaddings,
77
75
  }) }, children),
78
76
  footer && (React.createElement("div", { className: clsx(styles.footer, {
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAwBtF,MAAM,UAAU,0BAA0B,CAAC,KAA6B;IACtE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAC9D,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,OAAO,CACL,oBAAC,iBAAiB,oBACZ,KAAK,IACT,YAAY,EAAE,CAAA,YAAY,aAAZ,YAAY,u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C/D,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,QAAQ;4BAC3C,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,gBAAgB;4BACnD,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO;4BACjC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,qBAAqB;4BACjD,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,eAAe;4BAC7D,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,QAAQ;yBACxC,CACF,IACG,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,YAAY,CAAC,CAAC,CAAC,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,yBAAyB,EAAE,CAAC,IAAG,MAAM,CAAO,CACzF,CAAC,CAAC,CAAC,CACF,MAAM,CACP,CACG,CACuB,CACA,CAClC;YACD,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,EACzC,8BAA8B,EAAE,IAAI,MAAM,CAAC,6BAA6B,CAAC,EACzE;oBACE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;iBACnD,CACF,IAEA,QAAQ,CACL;YACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;oBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { getContentHeaderClassName } from '../internal/utils/content-header-utils';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { shouldRemoveHighContrastHeader } from '../internal/utils/content-header-utils';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n\n __funnelSubStepProps?: ReturnType<typeof useFunnelSubStep>['funnelSubStepProps'];\n __subStepRef?: ReturnType<typeof useFunnelSubStep>['subStepRef'];\n}\n\nexport function InternalContainerAsSubstep(props: InternalContainerProps) {\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n const modalContext = useModalContext();\n\n return (\n <InternalContainer\n {...props}\n __subStepRef={modalContext?.isInModal ? { current: null } : subStepRef}\n __funnelSubStepProps={modalContext?.isInModal ? {} : funnelSubStepProps}\n />\n );\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n media,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __darkHeader = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const contentId = useUniqueId();\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n const hasMedia = !!media?.content;\n const mediaPosition = media?.position ?? 'top';\n return (\n <div\n {...baseProps}\n {...__funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {header && (\n <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(\n isRefresh && styles.refresh,\n styles.header,\n styles[`header-variant-${variant}`],\n shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'],\n {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n }\n )}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], getContentHeaderClassName())}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n </ContainerHeaderContextProvider>\n )}\n <div\n className={clsx(\n styles.content,\n fitHeight && styles['content-fit-height'],\n shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'],\n {\n [styles['with-paddings']]: !disableContentPaddings,\n }\n )}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {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AC,EAAE,OAAO;4BACjC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,qBAAqB;4BACjD,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,QAAQ,IAAI,eAAe;4BAC7D,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,QAAQ;yBACxC,CAAC,IACE,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,MAAM,CACH,CACuB,CACA,CAClC;YACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,EAAE;oBACzE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;iBACnD,CAAC,IAED,QAAQ,CACL;YACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;oBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __fullPage?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n\n __funnelSubStepProps?: ReturnType<typeof useFunnelSubStep>['funnelSubStepProps'];\n __subStepRef?: ReturnType<typeof useFunnelSubStep>['subStepRef'];\n}\n\nexport function InternalContainerAsSubstep(props: InternalContainerProps) {\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n const modalContext = useModalContext();\n\n return (\n <InternalContainer\n {...props}\n __subStepRef={modalContext?.isInModal ? { current: null } : subStepRef}\n __funnelSubStepProps={modalContext?.isInModal ? {} : funnelSubStepProps}\n />\n );\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n media,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __fullPage = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const contentId = useUniqueId();\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__fullPage });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n const hasMedia = !!media?.content;\n const mediaPosition = media?.position ?? 'top';\n return (\n <div\n {...baseProps}\n {...__funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {header && (\n <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n })}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {header}\n </div>\n </StickyHeaderContext.Provider>\n </ContainerHeaderContextProvider>\n )}\n <div\n className={clsx(styles.content, fitHeight && styles['content-fit-height'], {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}