@cloudscape-design/components 3.0.839 → 3.0.841

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 (865) hide show
  1. package/alert/styles.css.js +28 -28
  2. package/alert/styles.scoped.css +43 -49
  3. package/alert/styles.selectors.js +28 -28
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +18 -21
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/annotation-icon.d.ts +2 -1
  8. package/annotation-context/annotation/annotation-icon.d.ts.map +1 -1
  9. package/annotation-context/annotation/annotation-icon.js.map +1 -1
  10. package/annotation-context/annotation/annotation-popover.d.ts +2 -1
  11. package/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
  12. package/annotation-context/annotation/annotation-popover.js.map +1 -1
  13. package/annotation-context/annotation/annotation-trigger.d.ts +1 -1
  14. package/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  15. package/annotation-context/annotation/annotation-trigger.js.map +1 -1
  16. package/annotation-context/annotation/closed-annotation.d.ts +2 -1
  17. package/annotation-context/annotation/closed-annotation.d.ts.map +1 -1
  18. package/annotation-context/annotation/closed-annotation.js.map +1 -1
  19. package/annotation-context/annotation/open-annotation.d.ts +2 -1
  20. package/annotation-context/annotation/open-annotation.d.ts.map +1 -1
  21. package/annotation-context/annotation/open-annotation.js.map +1 -1
  22. package/annotation-context/annotation/styles.css.js +24 -24
  23. package/annotation-context/annotation/styles.scoped.css +30 -33
  24. package/annotation-context/annotation/styles.selectors.js +24 -24
  25. package/app-layout/classic.d.ts.map +1 -1
  26. package/app-layout/classic.js +6 -3
  27. package/app-layout/classic.js.map +1 -1
  28. package/app-layout/defaults.d.ts +2 -1
  29. package/app-layout/defaults.d.ts.map +1 -1
  30. package/app-layout/defaults.js.map +1 -1
  31. package/app-layout/split-panel/constants.d.ts +0 -1
  32. package/app-layout/split-panel/constants.d.ts.map +1 -1
  33. package/app-layout/split-panel/constants.js +0 -1
  34. package/app-layout/split-panel/constants.js.map +1 -1
  35. package/app-layout/split-panel/split-panel-forced-position.d.ts +5 -0
  36. package/app-layout/split-panel/split-panel-forced-position.d.ts.map +1 -0
  37. package/app-layout/split-panel/split-panel-forced-position.js +30 -0
  38. package/app-layout/split-panel/split-panel-forced-position.js.map +1 -0
  39. package/app-layout/utils/use-pointer-events.d.ts.map +1 -1
  40. package/app-layout/utils/use-pointer-events.js +19 -10
  41. package/app-layout/utils/use-pointer-events.js.map +1 -1
  42. package/app-layout/utils/use-resize.d.ts +1 -1
  43. package/app-layout/utils/use-resize.d.ts.map +1 -1
  44. package/app-layout/utils/use-resize.js.map +1 -1
  45. package/app-layout/utils/use-split-panel-focus-control.d.ts +2 -1
  46. package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
  47. package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
  48. package/app-layout/visual-refresh/context.d.ts.map +1 -1
  49. package/app-layout/visual-refresh/context.js +5 -2
  50. package/app-layout/visual-refresh/context.js.map +1 -1
  51. package/app-layout/visual-refresh/drawers.d.ts +0 -8
  52. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  53. package/app-layout/visual-refresh/drawers.js +1 -1
  54. package/app-layout/visual-refresh/drawers.js.map +1 -1
  55. package/app-layout/visual-refresh/styles.css.js +86 -86
  56. package/app-layout/visual-refresh/styles.scoped.css +163 -169
  57. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  58. package/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -1
  59. package/app-layout/visual-refresh-toolbar/compute-layout.js +6 -3
  60. package/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
  61. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js +1 -1
  62. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.js.map +1 -1
  63. package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
  64. package/app-layout/visual-refresh-toolbar/index.js +32 -2
  65. package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
  66. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +19 -19
  67. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +35 -50
  68. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +19 -19
  69. package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +1 -1
  70. package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts.map +1 -1
  71. package/app-layout/visual-refresh-toolbar/split-panel/index.js +3 -1
  72. package/app-layout/visual-refresh-toolbar/split-panel/index.js.map +1 -1
  73. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  74. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +3 -5
  75. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  76. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
  77. package/app-layout/visual-refresh-toolbar/toolbar/index.js +4 -1
  78. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  79. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +13 -13
  80. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -18
  81. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +13 -13
  82. package/area-chart/elements/area-series.d.ts +1 -1
  83. package/area-chart/elements/area-series.d.ts.map +1 -1
  84. package/area-chart/elements/area-series.js.map +1 -1
  85. package/area-chart/elements/threshold-series.d.ts +1 -1
  86. package/area-chart/elements/threshold-series.d.ts.map +1 -1
  87. package/area-chart/elements/threshold-series.js.map +1 -1
  88. package/attribute-editor/internal.d.ts.map +1 -1
  89. package/attribute-editor/internal.js +5 -1
  90. package/attribute-editor/internal.js.map +1 -1
  91. package/attribute-editor/row.d.ts +2 -1
  92. package/attribute-editor/row.d.ts.map +1 -1
  93. package/attribute-editor/row.js.map +1 -1
  94. package/attribute-editor/styles.css.js +14 -14
  95. package/attribute-editor/styles.scoped.css +24 -27
  96. package/attribute-editor/styles.selectors.js +14 -14
  97. package/autosuggest/analytics-metadata/interfaces.d.ts +0 -4
  98. package/autosuggest/analytics-metadata/interfaces.d.ts.map +1 -1
  99. package/autosuggest/analytics-metadata/interfaces.js.map +1 -1
  100. package/autosuggest/autosuggest-option.d.ts +1 -1
  101. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  102. package/autosuggest/autosuggest-option.js.map +1 -1
  103. package/autosuggest/internal.d.ts +1 -1
  104. package/autosuggest/internal.d.ts.map +1 -1
  105. package/autosuggest/internal.js.map +1 -1
  106. package/autosuggest/load-more-controller.d.ts +3 -2
  107. package/autosuggest/load-more-controller.d.ts.map +1 -1
  108. package/autosuggest/load-more-controller.js.map +1 -1
  109. package/autosuggest/options-list.d.ts +2 -1
  110. package/autosuggest/options-list.d.ts.map +1 -1
  111. package/autosuggest/options-list.js.map +1 -1
  112. package/badge/styles.css.js +10 -10
  113. package/badge/styles.scoped.css +10 -13
  114. package/badge/styles.selectors.js +10 -10
  115. package/breadcrumb-group/analytics-metadata/interfaces.d.ts +0 -7
  116. package/breadcrumb-group/analytics-metadata/interfaces.d.ts.map +1 -1
  117. package/breadcrumb-group/analytics-metadata/interfaces.js.map +1 -1
  118. package/breadcrumb-group/styles.css.js +10 -10
  119. package/breadcrumb-group/styles.scoped.css +11 -14
  120. package/breadcrumb-group/styles.selectors.js +10 -10
  121. package/button/styles.css.js +21 -21
  122. package/button/styles.scoped.css +154 -157
  123. package/button/styles.selectors.js +21 -21
  124. package/button-dropdown/interfaces.d.ts +4 -3
  125. package/button-dropdown/interfaces.d.ts.map +1 -1
  126. package/button-dropdown/interfaces.js.map +1 -1
  127. package/button-dropdown/item-element/index.d.ts +0 -7
  128. package/button-dropdown/item-element/index.d.ts.map +1 -1
  129. package/button-dropdown/item-element/index.js.map +1 -1
  130. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts +1 -1
  131. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts.map +1 -1
  132. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.js.map +1 -1
  133. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  134. package/button-dropdown/mobile-expandable-group/styles.scoped.css +5 -8
  135. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  136. package/button-dropdown/tooltip.d.ts +2 -1
  137. package/button-dropdown/tooltip.d.ts.map +1 -1
  138. package/button-dropdown/tooltip.js.map +1 -1
  139. package/button-dropdown/utils/menu-item.d.ts +3 -2
  140. package/button-dropdown/utils/menu-item.d.ts.map +1 -1
  141. package/button-dropdown/utils/menu-item.js.map +1 -1
  142. package/button-group/styles.css.js +4 -4
  143. package/button-group/styles.scoped.css +4 -7
  144. package/button-group/styles.selectors.js +4 -4
  145. package/calendar/grid/index.d.ts +2 -1
  146. package/calendar/grid/index.d.ts.map +1 -1
  147. package/calendar/grid/index.js.map +1 -1
  148. package/calendar/styles.css.js +21 -21
  149. package/calendar/styles.scoped.css +43 -46
  150. package/calendar/styles.selectors.js +21 -21
  151. package/cards/styles.css.js +39 -39
  152. package/cards/styles.scoped.css +50 -53
  153. package/cards/styles.selectors.js +39 -39
  154. package/checkbox/styles.css.js +3 -3
  155. package/checkbox/styles.scoped.css +5 -8
  156. package/checkbox/styles.selectors.js +3 -3
  157. package/code-editor/pane.d.ts +2 -1
  158. package/code-editor/pane.d.ts.map +1 -1
  159. package/code-editor/pane.js.map +1 -1
  160. package/code-editor/styles.css.js +33 -33
  161. package/code-editor/styles.scoped.css +135 -138
  162. package/code-editor/styles.selectors.js +33 -33
  163. package/collection-preferences/analytics-metadata/interfaces.d.ts +0 -24
  164. package/collection-preferences/analytics-metadata/interfaces.d.ts.map +1 -1
  165. package/collection-preferences/analytics-metadata/interfaces.js.map +1 -1
  166. package/collection-preferences/content-display/content-display-option.d.ts +1 -1
  167. package/collection-preferences/content-display/content-display-option.d.ts.map +1 -1
  168. package/collection-preferences/content-display/content-display-option.js.map +1 -1
  169. package/collection-preferences/content-display/index.d.ts.map +1 -1
  170. package/collection-preferences/content-display/index.js +18 -42
  171. package/collection-preferences/content-display/index.js.map +1 -1
  172. package/collection-preferences/content-display/styles.css.js +12 -13
  173. package/collection-preferences/content-display/styles.scoped.css +15 -47
  174. package/collection-preferences/content-display/styles.selectors.js +12 -13
  175. package/collection-preferences/styles.css.js +38 -39
  176. package/collection-preferences/styles.scoped.css +42 -74
  177. package/collection-preferences/styles.selectors.js +38 -39
  178. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  179. package/column-layout/flexible-column-layout/styles.scoped.css +22 -7
  180. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  181. package/column-layout/styles.css.js +13 -13
  182. package/column-layout/styles.scoped.css +43 -46
  183. package/column-layout/styles.selectors.js +13 -13
  184. package/container/styles.css.js +31 -31
  185. package/container/styles.scoped.css +54 -57
  186. package/container/styles.selectors.js +31 -31
  187. package/copy-to-clipboard/internal.d.ts +2 -1
  188. package/copy-to-clipboard/internal.d.ts.map +1 -1
  189. package/copy-to-clipboard/internal.js +2 -2
  190. package/copy-to-clipboard/internal.js.map +1 -1
  191. package/copy-to-clipboard/styles.css.js +3 -4
  192. package/copy-to-clipboard/styles.scoped.css +3 -7
  193. package/copy-to-clipboard/styles.selectors.js +3 -4
  194. package/date-picker/index.js +1 -1
  195. package/date-picker/index.js.map +1 -1
  196. package/date-picker/styles.css.js +7 -7
  197. package/date-picker/styles.scoped.css +9 -12
  198. package/date-picker/styles.selectors.js +7 -7
  199. package/date-range-picker/calendar/grids/index.d.ts +2 -1
  200. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  201. package/date-range-picker/calendar/grids/index.js.map +1 -1
  202. package/date-range-picker/calendar/grids/monthly-grid.d.ts +2 -1
  203. package/date-range-picker/calendar/grids/monthly-grid.d.ts.map +1 -1
  204. package/date-range-picker/calendar/grids/monthly-grid.js.map +1 -1
  205. package/date-range-picker/calendar/range-inputs.d.ts +1 -1
  206. package/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  207. package/date-range-picker/calendar/range-inputs.js.map +1 -1
  208. package/date-range-picker/dropdown.d.ts +2 -2
  209. package/date-range-picker/dropdown.d.ts.map +1 -1
  210. package/date-range-picker/dropdown.js +2 -2
  211. package/date-range-picker/dropdown.js.map +1 -1
  212. package/date-range-picker/interfaces.d.ts +2 -1
  213. package/date-range-picker/interfaces.d.ts.map +1 -1
  214. package/date-range-picker/interfaces.js.map +1 -1
  215. package/date-range-picker/relative-range/index.d.ts +2 -1
  216. package/date-range-picker/relative-range/index.d.ts.map +1 -1
  217. package/date-range-picker/relative-range/index.js.map +1 -1
  218. package/date-range-picker/styles.css.js +38 -38
  219. package/date-range-picker/styles.scoped.css +47 -50
  220. package/date-range-picker/styles.selectors.js +38 -38
  221. package/drawer/implementation.d.ts +2 -1
  222. package/drawer/implementation.d.ts.map +1 -1
  223. package/drawer/implementation.js.map +1 -1
  224. package/drawer/interfaces.d.ts +2 -1
  225. package/drawer/interfaces.d.ts.map +1 -1
  226. package/drawer/interfaces.js.map +1 -1
  227. package/drawer/styles.css.js +5 -5
  228. package/drawer/styles.scoped.css +10 -13
  229. package/drawer/styles.selectors.js +5 -5
  230. package/expandable-section/expandable-section-container.d.ts +2 -1
  231. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  232. package/expandable-section/expandable-section-container.js.map +1 -1
  233. package/expandable-section/expandable-section-header.d.ts +0 -1
  234. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  235. package/expandable-section/expandable-section-header.js +1 -1
  236. package/expandable-section/expandable-section-header.js.map +1 -1
  237. package/expandable-section/internal.d.ts +2 -1
  238. package/expandable-section/internal.d.ts.map +1 -1
  239. package/expandable-section/internal.js.map +1 -1
  240. package/expandable-section/styles.css.js +34 -34
  241. package/expandable-section/styles.scoped.css +65 -68
  242. package/expandable-section/styles.selectors.js +34 -34
  243. package/file-token-group/file-token.d.ts +1 -1
  244. package/file-token-group/file-token.d.ts.map +1 -1
  245. package/file-token-group/file-token.js.map +1 -1
  246. package/file-token-group/styles.css.js +22 -22
  247. package/file-token-group/styles.scoped.css +29 -32
  248. package/file-token-group/styles.selectors.js +22 -22
  249. package/file-upload/interfaces.d.ts +0 -5
  250. package/file-upload/interfaces.d.ts.map +1 -1
  251. package/file-upload/interfaces.js.map +1 -1
  252. package/flashbar/analytics-metadata/interfaces.d.ts +0 -6
  253. package/flashbar/analytics-metadata/interfaces.d.ts.map +1 -1
  254. package/flashbar/analytics-metadata/interfaces.js.map +1 -1
  255. package/flashbar/collapsible-flashbar.d.ts +0 -1
  256. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  257. package/flashbar/collapsible-flashbar.js.map +1 -1
  258. package/flashbar/flash.d.ts +2 -1
  259. package/flashbar/flash.d.ts.map +1 -1
  260. package/flashbar/flash.js.map +1 -1
  261. package/flashbar/non-collapsible-flashbar.d.ts +0 -1
  262. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  263. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  264. package/flashbar/styles.css.js +50 -50
  265. package/flashbar/styles.scoped.css +148 -151
  266. package/flashbar/styles.selectors.js +50 -50
  267. package/flashbar/utils.d.ts +2 -1
  268. package/flashbar/utils.d.ts.map +1 -1
  269. package/flashbar/utils.js.map +1 -1
  270. package/form/styles.css.js +8 -8
  271. package/form/styles.scoped.css +8 -11
  272. package/form/styles.selectors.js +8 -8
  273. package/form-field/styles.css.js +24 -24
  274. package/form-field/styles.scoped.css +38 -41
  275. package/form-field/styles.selectors.js +24 -24
  276. package/grid/internal.d.ts +1 -1
  277. package/grid/internal.d.ts.map +1 -1
  278. package/grid/internal.js.map +1 -1
  279. package/grid/styles.css.js +53 -53
  280. package/grid/styles.scoped.css +54 -57
  281. package/grid/styles.selectors.js +53 -53
  282. package/header/styles.css.js +34 -34
  283. package/header/styles.scoped.css +50 -53
  284. package/header/styles.selectors.js +34 -34
  285. package/help-panel/implementation.d.ts +2 -1
  286. package/help-panel/implementation.d.ts.map +1 -1
  287. package/help-panel/implementation.js.map +1 -1
  288. package/help-panel/styles.css.js +6 -6
  289. package/help-panel/styles.scoped.css +67 -70
  290. package/help-panel/styles.selectors.js +6 -6
  291. package/i18n/context.d.ts +1 -1
  292. package/i18n/context.d.ts.map +1 -1
  293. package/i18n/context.js.map +1 -1
  294. package/i18n/testing.d.ts +2 -1
  295. package/i18n/testing.d.ts.map +1 -1
  296. package/i18n/testing.js.map +1 -1
  297. package/input/styles.css.js +13 -13
  298. package/input/styles.scoped.css +32 -35
  299. package/input/styles.selectors.js +13 -13
  300. package/internal/analytics/components/analytics-funnel.d.ts +0 -1
  301. package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  302. package/internal/analytics/components/analytics-funnel.js +1 -1
  303. package/internal/analytics/components/analytics-funnel.js.map +1 -1
  304. package/internal/analytics/interfaces.d.ts +17 -24
  305. package/internal/analytics/interfaces.d.ts.map +1 -1
  306. package/internal/analytics/interfaces.js.map +1 -1
  307. package/internal/analytics/selectors.d.ts +1 -1
  308. package/internal/analytics/selectors.d.ts.map +1 -1
  309. package/internal/analytics/selectors.js +2 -1
  310. package/internal/analytics/selectors.js.map +1 -1
  311. package/internal/components/autosuggest-input/index.d.ts +2 -2
  312. package/internal/components/autosuggest-input/index.d.ts.map +1 -1
  313. package/internal/components/autosuggest-input/index.js.map +1 -1
  314. package/internal/components/button-trigger/styles.css.js +13 -13
  315. package/internal/components/button-trigger/styles.scoped.css +27 -30
  316. package/internal/components/button-trigger/styles.selectors.js +13 -13
  317. package/internal/components/cartesian-chart/highlighted-point.d.ts +1 -1
  318. package/internal/components/cartesian-chart/highlighted-point.d.ts.map +1 -1
  319. package/internal/components/cartesian-chart/highlighted-point.js.map +1 -1
  320. package/internal/components/cartesian-chart/scales.d.ts +4 -5
  321. package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  322. package/internal/components/cartesian-chart/scales.js +1 -1
  323. package/internal/components/cartesian-chart/scales.js.map +1 -1
  324. package/internal/components/cartesian-chart/vertical-marker.d.ts +1 -1
  325. package/internal/components/cartesian-chart/vertical-marker.d.ts.map +1 -1
  326. package/internal/components/cartesian-chart/vertical-marker.js.map +1 -1
  327. package/internal/components/chart-filter/index.d.ts +1 -1
  328. package/internal/components/chart-filter/index.d.ts.map +1 -1
  329. package/internal/components/chart-filter/index.js.map +1 -1
  330. package/internal/components/chart-filter/styles.css.js +3 -3
  331. package/internal/components/chart-filter/styles.scoped.css +3 -6
  332. package/internal/components/chart-filter/styles.selectors.js +3 -3
  333. package/internal/components/chart-legend/index.d.ts +1 -1
  334. package/internal/components/chart-legend/index.d.ts.map +1 -1
  335. package/internal/components/chart-legend/index.js.map +1 -1
  336. package/internal/components/chart-legend/styles.css.js +6 -6
  337. package/internal/components/chart-legend/styles.scoped.css +15 -18
  338. package/internal/components/chart-legend/styles.selectors.js +6 -6
  339. package/internal/components/chart-plot/application-controller.d.ts +1 -1
  340. package/internal/components/chart-plot/application-controller.d.ts.map +1 -1
  341. package/internal/components/chart-plot/application-controller.js.map +1 -1
  342. package/internal/components/chart-plot/focus-outline.d.ts +2 -1
  343. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  344. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  345. package/internal/components/chart-plot/index.d.ts +1 -1
  346. package/internal/components/chart-plot/index.d.ts.map +1 -1
  347. package/internal/components/chart-plot/index.js.map +1 -1
  348. package/internal/components/chart-popover/index.d.ts +1 -1
  349. package/internal/components/chart-popover/index.d.ts.map +1 -1
  350. package/internal/components/chart-popover/index.js.map +1 -1
  351. package/internal/components/chart-popover/styles.css.js +3 -3
  352. package/internal/components/chart-popover/styles.scoped.css +3 -6
  353. package/internal/components/chart-popover/styles.selectors.js +3 -3
  354. package/internal/components/chart-series-details/index.d.ts +1 -1
  355. package/internal/components/chart-series-details/index.d.ts.map +1 -1
  356. package/internal/components/chart-series-details/index.js.map +1 -1
  357. package/internal/components/chart-series-details/styles.css.js +20 -20
  358. package/internal/components/chart-series-details/styles.scoped.css +33 -42
  359. package/internal/components/chart-series-details/styles.selectors.js +20 -20
  360. package/internal/components/chart-series-marker/styles.css.js +5 -5
  361. package/internal/components/chart-series-marker/styles.scoped.css +7 -10
  362. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  363. package/internal/components/chart-wrapper/styles.css.js +9 -9
  364. package/internal/components/chart-wrapper/styles.scoped.css +9 -12
  365. package/internal/components/chart-wrapper/styles.selectors.js +9 -9
  366. package/internal/components/checkbox-icon/index.d.ts +1 -10
  367. package/internal/components/checkbox-icon/index.d.ts.map +1 -1
  368. package/internal/components/checkbox-icon/index.js +1 -1
  369. package/internal/components/checkbox-icon/index.js.map +1 -1
  370. package/internal/components/dnd-container/index.d.ts +28 -0
  371. package/internal/components/dnd-container/index.d.ts.map +1 -0
  372. package/internal/components/dnd-container/index.js +67 -0
  373. package/internal/components/dnd-container/index.js.map +1 -0
  374. package/internal/components/dnd-container/interfaces.d.ts +13 -0
  375. package/internal/components/dnd-container/interfaces.d.ts.map +1 -0
  376. package/internal/components/dnd-container/interfaces.js +4 -0
  377. package/internal/components/dnd-container/interfaces.js.map +1 -0
  378. package/internal/components/dnd-container/keyboard-sensor/defaults.d.ts.map +1 -0
  379. package/internal/components/dnd-container/keyboard-sensor/defaults.js.map +1 -0
  380. package/internal/components/dnd-container/keyboard-sensor/index.d.ts.map +1 -0
  381. package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/index.js +1 -1
  382. package/internal/components/dnd-container/keyboard-sensor/index.js.map +1 -0
  383. package/internal/components/dnd-container/keyboard-sensor/utilities/events.d.ts +7 -0
  384. package/internal/components/dnd-container/keyboard-sensor/utilities/events.d.ts.map +1 -0
  385. package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/utilities/events.js +0 -4
  386. package/internal/components/dnd-container/keyboard-sensor/utilities/events.js.map +1 -0
  387. package/internal/components/dnd-container/keyboard-sensor/utilities/listeners.d.ts.map +1 -0
  388. package/internal/components/dnd-container/keyboard-sensor/utilities/listeners.js.map +1 -0
  389. package/internal/components/dnd-container/keyboard-sensor/utilities/scroll.d.ts +8 -0
  390. package/internal/components/dnd-container/keyboard-sensor/utilities/scroll.d.ts.map +1 -0
  391. package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/utilities/scroll.js +2 -2
  392. package/internal/components/dnd-container/keyboard-sensor/utilities/scroll.js.map +1 -0
  393. package/internal/components/dnd-container/styles.css.js +6 -0
  394. package/internal/components/dnd-container/styles.scoped.css +168 -0
  395. package/internal/components/dnd-container/styles.selectors.js +7 -0
  396. package/{collection-preferences/content-display → internal/components/dnd-container}/use-drag-and-drop-reorder.d.ts +2 -4
  397. package/internal/components/dnd-container/use-drag-and-drop-reorder.d.ts.map +1 -0
  398. package/{collection-preferences/content-display → internal/components/dnd-container}/use-drag-and-drop-reorder.js +4 -4
  399. package/internal/components/dnd-container/use-drag-and-drop-reorder.js.map +1 -0
  400. package/internal/components/dnd-container/use-live-announcements.d.ts +11 -0
  401. package/internal/components/dnd-container/use-live-announcements.d.ts.map +1 -0
  402. package/{collection-preferences/content-display → internal/components/dnd-container}/use-live-announcements.js +6 -6
  403. package/internal/components/dnd-container/use-live-announcements.js.map +1 -0
  404. package/internal/components/dropdown/dropdown-fit-handler.d.ts +0 -30
  405. package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  406. package/internal/components/dropdown/dropdown-fit-handler.js +4 -4
  407. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  408. package/internal/components/dropdown/styles.css.js +20 -20
  409. package/internal/components/dropdown/styles.scoped.css +37 -40
  410. package/internal/components/dropdown/styles.selectors.js +20 -20
  411. package/internal/components/dropdown-footer/styles.css.js +3 -3
  412. package/internal/components/dropdown-footer/styles.scoped.css +3 -6
  413. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  414. package/internal/components/dropdown-status/styles.css.js +2 -2
  415. package/internal/components/dropdown-status/styles.scoped.css +2 -5
  416. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  417. package/internal/components/focus-lock/utils.d.ts +0 -1
  418. package/internal/components/focus-lock/utils.d.ts.map +1 -1
  419. package/internal/components/focus-lock/utils.js +1 -1
  420. package/internal/components/focus-lock/utils.js.map +1 -1
  421. package/internal/components/masked-input/index.d.ts +1 -2
  422. package/internal/components/masked-input/index.d.ts.map +1 -1
  423. package/internal/components/masked-input/index.js +0 -1
  424. package/internal/components/masked-input/index.js.map +1 -1
  425. package/internal/components/masked-input/utils/mask-format.d.ts +1 -1
  426. package/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  427. package/internal/components/masked-input/utils/mask-format.js.map +1 -1
  428. package/internal/components/menu-dropdown/styles.css.js +7 -7
  429. package/internal/components/menu-dropdown/styles.scoped.css +13 -16
  430. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  431. package/internal/components/option/highlight-match.d.ts +2 -1
  432. package/internal/components/option/highlight-match.d.ts.map +1 -1
  433. package/internal/components/option/highlight-match.js.map +1 -1
  434. package/internal/components/option/interfaces.d.ts +3 -2
  435. package/internal/components/option/interfaces.d.ts.map +1 -1
  436. package/internal/components/option/interfaces.js.map +1 -1
  437. package/internal/components/option/styles.css.js +17 -17
  438. package/internal/components/option/styles.scoped.css +29 -32
  439. package/internal/components/option/styles.selectors.js +17 -17
  440. package/internal/components/options-list/styles.css.js +3 -3
  441. package/internal/components/options-list/styles.scoped.css +3 -6
  442. package/internal/components/options-list/styles.selectors.js +3 -3
  443. package/internal/components/options-list/utils/use-highlight-option.d.ts +2 -1
  444. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  445. package/internal/components/options-list/utils/use-highlight-option.js +2 -2
  446. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  447. package/internal/components/screenreader-only/index.d.ts +2 -1
  448. package/internal/components/screenreader-only/index.d.ts.map +1 -1
  449. package/internal/components/screenreader-only/index.js.map +1 -1
  450. package/internal/components/tab-trap/index.d.ts +2 -1
  451. package/internal/components/tab-trap/index.d.ts.map +1 -1
  452. package/internal/components/tab-trap/index.js.map +1 -1
  453. package/internal/components/token-list/styles.css.js +10 -10
  454. package/internal/components/token-list/styles.scoped.css +22 -25
  455. package/internal/components/token-list/styles.selectors.js +10 -10
  456. package/internal/components/transition/index.d.ts +2 -1
  457. package/internal/components/transition/index.d.ts.map +1 -1
  458. package/internal/components/transition/index.js.map +1 -1
  459. package/internal/context/single-tab-stop-navigation-context.d.ts +2 -4
  460. package/internal/context/single-tab-stop-navigation-context.d.ts.map +1 -1
  461. package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
  462. package/internal/context/table-component-context.d.ts +2 -2
  463. package/internal/context/table-component-context.d.ts.map +1 -1
  464. package/internal/context/table-component-context.js +1 -1
  465. package/internal/context/table-component-context.js.map +1 -1
  466. package/internal/environment.js +1 -1
  467. package/internal/environment.json +1 -1
  468. package/internal/events/index.d.ts +1 -0
  469. package/internal/events/index.d.ts.map +1 -1
  470. package/internal/events/index.js +1 -0
  471. package/internal/events/index.js.map +1 -1
  472. package/internal/hooks/forward-focus/radio-group.d.ts +2 -1
  473. package/internal/hooks/forward-focus/radio-group.d.ts.map +1 -1
  474. package/internal/hooks/forward-focus/radio-group.js.map +1 -1
  475. package/internal/hooks/use-dynamic-overlap/index.d.ts +2 -1
  476. package/internal/hooks/use-dynamic-overlap/index.d.ts.map +1 -1
  477. package/internal/hooks/use-dynamic-overlap/index.js.map +1 -1
  478. package/internal/keycode.d.ts +1 -5
  479. package/internal/keycode.d.ts.map +1 -1
  480. package/internal/keycode.js +0 -4
  481. package/internal/keycode.js.map +1 -1
  482. package/internal/manifest.json +1 -1
  483. package/internal/plugins/controllers/action-buttons.d.ts +1 -1
  484. package/internal/plugins/controllers/action-buttons.d.ts.map +1 -1
  485. package/internal/plugins/controllers/action-buttons.js.map +1 -1
  486. package/internal/plugins/controllers/alert-flash-content.d.ts +3 -3
  487. package/internal/plugins/controllers/alert-flash-content.d.ts.map +1 -1
  488. package/internal/plugins/controllers/alert-flash-content.js.map +1 -1
  489. package/internal/plugins/controllers/app-layout-widget.d.ts +1 -1
  490. package/internal/plugins/controllers/app-layout-widget.d.ts.map +1 -1
  491. package/internal/plugins/controllers/app-layout-widget.js.map +1 -1
  492. package/internal/plugins/controllers/drawers.d.ts +4 -4
  493. package/internal/plugins/controllers/drawers.d.ts.map +1 -1
  494. package/internal/plugins/controllers/drawers.js.map +1 -1
  495. package/internal/utils/handle-key.d.ts +2 -1
  496. package/internal/utils/handle-key.d.ts.map +1 -1
  497. package/internal/utils/handle-key.js.map +1 -1
  498. package/internal/utils/throttle.d.ts +2 -1
  499. package/internal/utils/throttle.d.ts.map +1 -1
  500. package/internal/utils/throttle.js.map +1 -1
  501. package/key-value-pairs/styles.css.js +8 -8
  502. package/key-value-pairs/styles.scoped.css +9 -15
  503. package/key-value-pairs/styles.selectors.js +8 -8
  504. package/link/styles.css.js +20 -20
  505. package/link/styles.scoped.css +71 -74
  506. package/link/styles.selectors.js +20 -20
  507. package/live-region/internal.d.ts +1 -1
  508. package/live-region/internal.d.ts.map +1 -1
  509. package/live-region/internal.js.map +1 -1
  510. package/mixed-line-bar-chart/bar-groups.d.ts +2 -1
  511. package/mixed-line-bar-chart/bar-groups.d.ts.map +1 -1
  512. package/mixed-line-bar-chart/bar-groups.js.map +1 -1
  513. package/mixed-line-bar-chart/bar-series.d.ts +2 -1
  514. package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  515. package/mixed-line-bar-chart/bar-series.js.map +1 -1
  516. package/mixed-line-bar-chart/data-series.d.ts +2 -1
  517. package/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  518. package/mixed-line-bar-chart/data-series.js.map +1 -1
  519. package/mixed-line-bar-chart/interfaces.d.ts +0 -2
  520. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  521. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  522. package/mixed-line-bar-chart/line-series.d.ts +2 -1
  523. package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  524. package/mixed-line-bar-chart/line-series.js.map +1 -1
  525. package/modal/index.d.ts.map +1 -1
  526. package/modal/index.js +8 -2
  527. package/modal/index.js.map +1 -1
  528. package/modal/internal.js +1 -1
  529. package/modal/internal.js.map +1 -1
  530. package/modal/styles.css.js +23 -23
  531. package/modal/styles.scoped.css +38 -44
  532. package/modal/styles.selectors.js +23 -23
  533. package/multiselect/analytics-metadata/interfaces.d.ts +0 -4
  534. package/multiselect/analytics-metadata/interfaces.d.ts.map +1 -1
  535. package/multiselect/analytics-metadata/interfaces.js.map +1 -1
  536. package/multiselect/styles.css.js +3 -3
  537. package/multiselect/styles.scoped.css +3 -9
  538. package/multiselect/styles.selectors.js +3 -3
  539. package/package.json +1 -1
  540. package/pagination/styles.css.js +9 -9
  541. package/pagination/styles.scoped.css +23 -26
  542. package/pagination/styles.selectors.js +9 -9
  543. package/pie-chart/interfaces.d.ts +2 -1
  544. package/pie-chart/interfaces.d.ts.map +1 -1
  545. package/pie-chart/interfaces.js.map +1 -1
  546. package/pie-chart/labels.d.ts +1 -1
  547. package/pie-chart/labels.d.ts.map +1 -1
  548. package/pie-chart/labels.js.map +1 -1
  549. package/pie-chart/pie-chart.d.ts +2 -7
  550. package/pie-chart/pie-chart.d.ts.map +1 -1
  551. package/pie-chart/pie-chart.js.map +1 -1
  552. package/popover/arrow.d.ts +1 -1
  553. package/popover/arrow.d.ts.map +1 -1
  554. package/popover/arrow.js.map +1 -1
  555. package/popover/body.d.ts.map +1 -1
  556. package/popover/body.js +0 -1
  557. package/popover/body.js.map +1 -1
  558. package/popover/container.d.ts +2 -1
  559. package/popover/container.d.ts.map +1 -1
  560. package/popover/container.js.map +1 -1
  561. package/popover/internal.d.ts +1 -0
  562. package/popover/internal.d.ts.map +1 -1
  563. package/popover/internal.js +2 -2
  564. package/popover/internal.js.map +1 -1
  565. package/popover/styles.css.js +53 -52
  566. package/popover/styles.scoped.css +71 -77
  567. package/popover/styles.selectors.js +53 -52
  568. package/progress-bar/styles.css.js +19 -19
  569. package/progress-bar/styles.scoped.css +30 -33
  570. package/progress-bar/styles.selectors.js +19 -19
  571. package/prompt-input/internal.d.ts +1 -1
  572. package/prompt-input/internal.d.ts.map +1 -1
  573. package/prompt-input/internal.js.map +1 -1
  574. package/prompt-input/styles.css.js +14 -14
  575. package/prompt-input/styles.scoped.css +39 -51
  576. package/prompt-input/styles.selectors.js +14 -14
  577. package/property-filter/analytics-metadata/interfaces.d.ts +0 -15
  578. package/property-filter/analytics-metadata/interfaces.d.ts.map +1 -1
  579. package/property-filter/analytics-metadata/interfaces.js.map +1 -1
  580. package/property-filter/controller.d.ts +0 -1
  581. package/property-filter/controller.d.ts.map +1 -1
  582. package/property-filter/controller.js +1 -1
  583. package/property-filter/controller.js.map +1 -1
  584. package/property-filter/filtering-token/styles.css.js +18 -18
  585. package/property-filter/filtering-token/styles.scoped.css +41 -44
  586. package/property-filter/filtering-token/styles.selectors.js +18 -18
  587. package/property-filter/interfaces.d.ts +1 -6
  588. package/property-filter/interfaces.d.ts.map +1 -1
  589. package/property-filter/interfaces.js.map +1 -1
  590. package/property-filter/internal.d.ts +0 -2
  591. package/property-filter/internal.d.ts.map +1 -1
  592. package/property-filter/internal.js.map +1 -1
  593. package/property-filter/styles.css.js +39 -39
  594. package/property-filter/styles.scoped.css +41 -47
  595. package/property-filter/styles.selectors.js +39 -39
  596. package/property-filter/utils.d.ts +0 -1
  597. package/property-filter/utils.d.ts.map +1 -1
  598. package/property-filter/utils.js +1 -1
  599. package/property-filter/utils.js.map +1 -1
  600. package/radio-group/styles.css.js +10 -10
  601. package/radio-group/styles.scoped.css +16 -19
  602. package/radio-group/styles.selectors.js +10 -10
  603. package/s3-resource-selector/s3-modal/basic-table.d.ts +0 -6
  604. package/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  605. package/s3-resource-selector/s3-modal/basic-table.js +1 -1
  606. package/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  607. package/segmented-control/segment.d.ts +2 -1
  608. package/segmented-control/segment.d.ts.map +1 -1
  609. package/segmented-control/segment.js.map +1 -1
  610. package/segmented-control/styles.css.js +15 -15
  611. package/segmented-control/styles.scoped.css +34 -37
  612. package/segmented-control/styles.selectors.js +15 -15
  613. package/select/analytics-metadata/interfaces.d.ts +0 -4
  614. package/select/analytics-metadata/interfaces.d.ts.map +1 -1
  615. package/select/analytics-metadata/interfaces.js.map +1 -1
  616. package/select/styles.css.js +1 -1
  617. package/select/styles.scoped.css +1 -4
  618. package/select/styles.selectors.js +1 -1
  619. package/select/utils/render-options.d.ts +2 -1
  620. package/select/utils/render-options.d.ts.map +1 -1
  621. package/select/utils/render-options.js.map +1 -1
  622. package/select/utils/use-native-search.d.ts +0 -1
  623. package/select/utils/use-native-search.d.ts.map +1 -1
  624. package/select/utils/use-native-search.js +1 -1
  625. package/select/utils/use-native-search.js.map +1 -1
  626. package/side-navigation/analytics-metadata/interfaces.d.ts +0 -2
  627. package/side-navigation/analytics-metadata/interfaces.d.ts.map +1 -1
  628. package/side-navigation/analytics-metadata/interfaces.js.map +1 -1
  629. package/side-navigation/implementation.d.ts +2 -1
  630. package/side-navigation/implementation.d.ts.map +1 -1
  631. package/side-navigation/implementation.js.map +1 -1
  632. package/side-navigation/parts.d.ts +2 -2
  633. package/side-navigation/parts.d.ts.map +1 -1
  634. package/side-navigation/parts.js.map +1 -1
  635. package/side-navigation/styles.css.js +30 -30
  636. package/side-navigation/styles.scoped.css +46 -49
  637. package/side-navigation/styles.selectors.js +30 -30
  638. package/slider/internal.d.ts +2 -1
  639. package/slider/internal.d.ts.map +1 -1
  640. package/slider/internal.js.map +1 -1
  641. package/slider/slider-labels.d.ts +2 -1
  642. package/slider/slider-labels.d.ts.map +1 -1
  643. package/slider/slider-labels.js.map +1 -1
  644. package/slider/styles.css.js +26 -26
  645. package/slider/styles.scoped.css +76 -79
  646. package/slider/styles.selectors.js +26 -26
  647. package/slider/tick-marks.d.ts +2 -4
  648. package/slider/tick-marks.d.ts.map +1 -1
  649. package/slider/tick-marks.js.map +1 -1
  650. package/split-panel/bottom.d.ts.map +1 -1
  651. package/split-panel/bottom.js +13 -3
  652. package/split-panel/bottom.js.map +1 -1
  653. package/split-panel/implementation.js +1 -1
  654. package/split-panel/implementation.js.map +1 -1
  655. package/split-panel/styles.css.js +26 -26
  656. package/split-panel/styles.scoped.css +43 -51
  657. package/split-panel/styles.selectors.js +26 -26
  658. package/steps/internal.d.ts +1 -1
  659. package/steps/internal.d.ts.map +1 -1
  660. package/steps/internal.js +1 -1
  661. package/steps/internal.js.map +1 -1
  662. package/steps/styles.css.js +6 -6
  663. package/steps/styles.scoped.css +7 -10
  664. package/steps/styles.selectors.js +6 -6
  665. package/table/expandable-rows/styles.css.js +3 -3
  666. package/table/expandable-rows/styles.scoped.css +13 -16
  667. package/table/expandable-rows/styles.selectors.js +3 -3
  668. package/table/interfaces.d.ts +3 -2
  669. package/table/interfaces.d.ts.map +1 -1
  670. package/table/interfaces.js.map +1 -1
  671. package/table/internal.js +2 -2
  672. package/table/internal.js.map +1 -1
  673. package/table/progressive-loading/loader-cell.d.ts +2 -1
  674. package/table/progressive-loading/loader-cell.d.ts.map +1 -1
  675. package/table/progressive-loading/loader-cell.js.map +1 -1
  676. package/table/resizer/styles.css.js +8 -8
  677. package/table/resizer/styles.scoped.css +15 -18
  678. package/table/resizer/styles.selectors.js +8 -8
  679. package/table/selection/utils.d.ts +0 -1
  680. package/table/selection/utils.d.ts.map +1 -1
  681. package/table/selection/utils.js +1 -1
  682. package/table/selection/utils.js.map +1 -1
  683. package/table/sticky-columns/use-sticky-columns.d.ts +1 -21
  684. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  685. package/table/sticky-columns/use-sticky-columns.js +1 -1
  686. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  687. package/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -1
  688. package/table/sticky-scrollbar/sticky-scrollbar.js +6 -2
  689. package/table/sticky-scrollbar/sticky-scrollbar.js.map +1 -1
  690. package/table/sticky-scrollbar/styles.css.js +6 -6
  691. package/table/sticky-scrollbar/styles.scoped.css +10 -7
  692. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  693. package/table/table-role/grid-navigation.js +10 -0
  694. package/table/table-role/grid-navigation.js.map +1 -1
  695. package/table/table-role/index.d.ts +1 -1
  696. package/table/table-role/index.d.ts.map +1 -1
  697. package/table/table-role/index.js.map +1 -1
  698. package/table/use-cell-editing.d.ts +1 -1
  699. package/table/use-cell-editing.d.ts.map +1 -1
  700. package/table/use-cell-editing.js.map +1 -1
  701. package/tabs/styles.css.js +28 -28
  702. package/tabs/styles.scoped.css +49 -52
  703. package/tabs/styles.selectors.js +28 -28
  704. package/tabs/tab-header-bar.d.ts +2 -1
  705. package/tabs/tab-header-bar.d.ts.map +1 -1
  706. package/tabs/tab-header-bar.js.map +1 -1
  707. package/tag-editor/internal.d.ts +2 -1
  708. package/tag-editor/internal.d.ts.map +1 -1
  709. package/tag-editor/internal.js.map +1 -1
  710. package/test-utils/dom/anchor-navigation/index.d.ts +2 -1
  711. package/test-utils/dom/anchor-navigation/index.js +0 -2
  712. package/test-utils/dom/anchor-navigation/index.js.map +1 -1
  713. package/test-utils/dom/autosuggest/index.d.ts +0 -3
  714. package/test-utils/dom/autosuggest/index.js +1 -2
  715. package/test-utils/dom/autosuggest/index.js.map +1 -1
  716. package/test-utils/dom/cards/index.d.ts +3 -2
  717. package/test-utils/dom/cards/index.js +0 -3
  718. package/test-utils/dom/cards/index.js.map +1 -1
  719. package/test-utils/dom/key-value-pairs/index.d.ts +3 -2
  720. package/test-utils/dom/key-value-pairs/index.js +0 -3
  721. package/test-utils/dom/key-value-pairs/index.js.map +1 -1
  722. package/test-utils/dom/steps/index.d.ts +2 -1
  723. package/test-utils/dom/steps/index.js +0 -2
  724. package/test-utils/dom/steps/index.js.map +1 -1
  725. package/test-utils/dom/tabs/index.d.ts +2 -1
  726. package/test-utils/dom/tabs/index.js +0 -2
  727. package/test-utils/dom/tabs/index.js.map +1 -1
  728. package/test-utils/dom/tag-editor/index.d.ts +2 -1
  729. package/test-utils/dom/tag-editor/index.js +0 -2
  730. package/test-utils/dom/tag-editor/index.js.map +1 -1
  731. package/test-utils/selectors/anchor-navigation/index.d.ts +2 -1
  732. package/test-utils/selectors/anchor-navigation/index.js +0 -2
  733. package/test-utils/selectors/anchor-navigation/index.js.map +1 -1
  734. package/test-utils/selectors/autosuggest/index.d.ts +0 -3
  735. package/test-utils/selectors/autosuggest/index.js +1 -2
  736. package/test-utils/selectors/autosuggest/index.js.map +1 -1
  737. package/test-utils/selectors/cards/index.d.ts +3 -2
  738. package/test-utils/selectors/cards/index.js +0 -3
  739. package/test-utils/selectors/cards/index.js.map +1 -1
  740. package/test-utils/selectors/key-value-pairs/index.d.ts +3 -2
  741. package/test-utils/selectors/key-value-pairs/index.js +0 -3
  742. package/test-utils/selectors/key-value-pairs/index.js.map +1 -1
  743. package/test-utils/selectors/steps/index.d.ts +2 -1
  744. package/test-utils/selectors/steps/index.js +0 -2
  745. package/test-utils/selectors/steps/index.js.map +1 -1
  746. package/test-utils/selectors/tabs/index.d.ts +2 -1
  747. package/test-utils/selectors/tabs/index.js +0 -2
  748. package/test-utils/selectors/tabs/index.js.map +1 -1
  749. package/test-utils/selectors/tag-editor/index.d.ts +2 -1
  750. package/test-utils/selectors/tag-editor/index.js +0 -2
  751. package/test-utils/selectors/tag-editor/index.js.map +1 -1
  752. package/test-utils/tsconfig.tsbuildinfo +1 -1
  753. package/text-content/styles.css.js +1 -1
  754. package/text-content/styles.scoped.css +60 -63
  755. package/text-content/styles.selectors.js +1 -1
  756. package/text-filter/analytics-metadata/interfaces.d.ts +0 -2
  757. package/text-filter/analytics-metadata/interfaces.d.ts.map +1 -1
  758. package/text-filter/analytics-metadata/interfaces.js.map +1 -1
  759. package/text-filter/styles.css.js +3 -3
  760. package/text-filter/styles.scoped.css +3 -6
  761. package/text-filter/styles.selectors.js +3 -3
  762. package/textarea/styles.css.js +5 -5
  763. package/textarea/styles.scoped.css +14 -17
  764. package/textarea/styles.selectors.js +5 -5
  765. package/tiles/styles.css.js +30 -30
  766. package/tiles/styles.scoped.css +71 -77
  767. package/tiles/styles.selectors.js +30 -30
  768. package/toggle/styles.css.js +10 -10
  769. package/toggle/styles.scoped.css +17 -20
  770. package/toggle/styles.selectors.js +10 -10
  771. package/toggle-button/internal.d.ts +0 -1
  772. package/toggle-button/internal.d.ts.map +1 -1
  773. package/toggle-button/internal.js +0 -1
  774. package/toggle-button/internal.js.map +1 -1
  775. package/token-group/analytics-metadata/interfaces.d.ts +0 -2
  776. package/token-group/analytics-metadata/interfaces.d.ts.map +1 -1
  777. package/token-group/analytics-metadata/interfaces.js.map +1 -1
  778. package/token-group/styles.css.js +8 -8
  779. package/token-group/styles.scoped.css +16 -19
  780. package/token-group/styles.selectors.js +8 -8
  781. package/top-navigation/1.0-beta/internal.d.ts +2 -1
  782. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  783. package/top-navigation/1.0-beta/internal.js.map +1 -1
  784. package/top-navigation/1.0-beta/parts/overflow-menu.d.ts +2 -1
  785. package/top-navigation/1.0-beta/parts/overflow-menu.d.ts.map +1 -1
  786. package/top-navigation/1.0-beta/parts/overflow-menu.js.map +1 -1
  787. package/top-navigation/1.0-beta/styles.css.js +25 -25
  788. package/top-navigation/1.0-beta/styles.scoped.css +42 -45
  789. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  790. package/top-navigation/1.0-beta/use-top-navigation.d.ts +4 -24
  791. package/top-navigation/1.0-beta/use-top-navigation.d.ts.map +1 -1
  792. package/top-navigation/1.0-beta/use-top-navigation.js +2 -2
  793. package/top-navigation/1.0-beta/use-top-navigation.js.map +1 -1
  794. package/top-navigation/internal.d.ts +2 -1
  795. package/top-navigation/internal.d.ts.map +1 -1
  796. package/top-navigation/internal.js.map +1 -1
  797. package/top-navigation/parts/overflow-menu/router.d.ts +1 -10
  798. package/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  799. package/top-navigation/parts/overflow-menu/router.js +1 -1
  800. package/top-navigation/parts/overflow-menu/router.js.map +1 -1
  801. package/top-navigation/styles.css.js +47 -47
  802. package/top-navigation/styles.scoped.css +66 -75
  803. package/top-navigation/styles.selectors.js +47 -47
  804. package/top-navigation/use-top-navigation.d.ts +4 -3
  805. package/top-navigation/use-top-navigation.d.ts.map +1 -1
  806. package/top-navigation/use-top-navigation.js.map +1 -1
  807. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  808. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +21 -24
  809. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  810. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts +2 -1
  811. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts.map +1 -1
  812. package/tutorial-panel/components/tutorial-detail-view/task-list.js.map +1 -1
  813. package/tutorial-panel/components/tutorial-list/index.d.ts +2 -1
  814. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  815. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  816. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  817. package/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -36
  818. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  819. package/tutorial-panel/styles.css.js +1 -1
  820. package/tutorial-panel/styles.scoped.css +1 -4
  821. package/tutorial-panel/styles.selectors.js +1 -1
  822. package/wizard/analytics-metadata/interfaces.d.ts +0 -21
  823. package/wizard/analytics-metadata/interfaces.d.ts.map +1 -1
  824. package/wizard/analytics-metadata/interfaces.js.map +1 -1
  825. package/wizard/styles.css.js +30 -30
  826. package/wizard/styles.scoped.css +58 -61
  827. package/wizard/styles.selectors.js +30 -30
  828. package/wizard/wizard-form.d.ts +1 -4
  829. package/wizard/wizard-form.d.ts.map +1 -1
  830. package/wizard/wizard-form.js +1 -1
  831. package/wizard/wizard-form.js.map +1 -1
  832. package/app-layout/split-panel/split-panel-utils.d.ts +0 -12
  833. package/app-layout/split-panel/split-panel-utils.d.ts.map +0 -1
  834. package/app-layout/split-panel/split-panel-utils.js +0 -28
  835. package/app-layout/split-panel/split-panel-utils.js.map +0 -1
  836. package/collection-preferences/content-display/draggable-option.d.ts +0 -9
  837. package/collection-preferences/content-display/draggable-option.d.ts.map +0 -1
  838. package/collection-preferences/content-display/draggable-option.js +0 -27
  839. package/collection-preferences/content-display/draggable-option.js.map +0 -1
  840. package/collection-preferences/content-display/keyboard-sensor/defaults.d.ts.map +0 -1
  841. package/collection-preferences/content-display/keyboard-sensor/defaults.js.map +0 -1
  842. package/collection-preferences/content-display/keyboard-sensor/index.d.ts.map +0 -1
  843. package/collection-preferences/content-display/keyboard-sensor/index.js.map +0 -1
  844. package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts +0 -11
  845. package/collection-preferences/content-display/keyboard-sensor/utilities/events.d.ts.map +0 -1
  846. package/collection-preferences/content-display/keyboard-sensor/utilities/events.js.map +0 -1
  847. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.d.ts.map +0 -1
  848. package/collection-preferences/content-display/keyboard-sensor/utilities/listeners.js.map +0 -1
  849. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts +0 -30
  850. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.d.ts.map +0 -1
  851. package/collection-preferences/content-display/keyboard-sensor/utilities/scroll.js.map +0 -1
  852. package/collection-preferences/content-display/use-drag-and-drop-reorder.d.ts.map +0 -1
  853. package/collection-preferences/content-display/use-drag-and-drop-reorder.js.map +0 -1
  854. package/collection-preferences/content-display/use-live-announcements.d.ts +0 -12
  855. package/collection-preferences/content-display/use-live-announcements.d.ts.map +0 -1
  856. package/collection-preferences/content-display/use-live-announcements.js.map +0 -1
  857. package/internal/hooks/use-mutation-observer/index.d.ts +0 -8
  858. package/internal/hooks/use-mutation-observer/index.d.ts.map +0 -1
  859. package/internal/hooks/use-mutation-observer/index.js +0 -26
  860. package/internal/hooks/use-mutation-observer/index.js.map +0 -1
  861. /package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/defaults.d.ts +0 -0
  862. /package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/defaults.js +0 -0
  863. /package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/index.d.ts +0 -0
  864. /package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/utilities/listeners.d.ts +0 -0
  865. /package/{collection-preferences/content-display → internal/components/dnd-container}/keyboard-sensor/utilities/listeners.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/context.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAoB,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,SAA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,eAAe;YACf,eAAe;YACf,cAAc;YACd,cAAc;YACd,mBAAmB;YACnB,sBAAsB;YACtB,YAAY;YACZ,yBAAyB;YACzB,iCAAiC;YACjC,UAAU;YACV,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;YAClB,kBAAkB;YAClB,qBAAqB;YACrB,sBAAsB;YACtB,8BAA8B;YAC9B,cAAc;YACd,gBAAgB;YAChB,mBAAmB;YACnB,cAAc;YACd,cAAc;YACd,SAAS,EACT,SAAS,EAAE,WAAW,EACtB,UAAU;YACV,SAAS;YACT,kBAAkB;QAGpB,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,6BAA6B,IACjE,QAAQ,CACsB,CACE,CACtC,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\nimport { getOffsetInlineStart } from '@cloudscape-design/component-toolkit/internal';\n\nimport { DynamicOverlapContext } from '../../internal/context/dynamic-overlap-context';\nimport { SplitPanelSideToggleProps } from '../../internal/context/split-panel-context';\nimport { fireNonCancelableEvent } from '../../internal/events';\nimport { useControllable } from '../../internal/hooks/use-controllable';\nimport { useMobile } from '../../internal/hooks/use-mobile';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { getSplitPanelDefaultSize } from '../../split-panel/utils/size-utils';\nimport { AppLayoutProps, AppLayoutPropsWithDefaults } from '../interfaces';\nimport { SPLIT_PANEL_MIN_WIDTH } from '../split-panel';\nimport { checkSplitPanelForcedPosition } from '../split-panel/split-panel-utils';\nimport { useDrawers } from '../utils/use-drawers';\nimport { FocusControlRefs, useFocusControl } from '../utils/use-focus-control';\nimport useResize from '../utils/use-resize';\nimport { SplitPanelFocusControlRefs, useSplitPanelFocusControl } from '../utils/use-split-panel-focus-control';\nimport { getSplitPanelPosition } from './split-panel';\nimport useBackgroundOverlap from './use-background-overlap';\n\nimport styles from './styles.css.js';\n\nexport interface AppLayoutInternals extends AppLayoutPropsWithDefaults {\n activeDrawerId: string | null;\n drawers: Array<AppLayoutProps.Drawer> | undefined;\n drawersAriaLabel: string | undefined;\n drawersOverflowAriaLabel: string | undefined;\n drawersOverflowWithBadgeAriaLabel: string | undefined;\n drawersRefs: FocusControlRefs;\n drawerSize: number;\n drawersMinWidth: number;\n drawersMaxWidth: number;\n drawerRef: React.Ref<HTMLElement>;\n resizeHandle: React.ReactElement;\n drawersTriggerCount: number;\n handleDrawersClick: (activeDrawerId: string | null, skipFocusControl?: boolean) => void;\n handleSplitPanelClick: () => void;\n handleNavigationClick: (isOpen: boolean) => void;\n handleSplitPanelPreferencesChange: (detail: AppLayoutProps.SplitPanelPreferences) => void;\n handleSplitPanelResize: (newSize: number) => void;\n handleToolsClick: (value: boolean, skipFocusControl?: boolean) => void;\n hasBackgroundOverlap: boolean;\n hasDrawerViewportOverlay: boolean;\n hasNotificationsContent: boolean;\n hasOpenDrawer?: boolean;\n isBackgroundOverlapDisabled: boolean;\n isMobile: boolean;\n isSplitPanelForcedPosition: boolean;\n isSplitPanelOpen?: boolean;\n isToolsOpen: boolean;\n layoutElement: React.Ref<HTMLElement>;\n layoutWidth: number;\n loseToolsFocus: () => void;\n loseDrawersFocus: () => void;\n mainElement: React.Ref<HTMLDivElement>;\n mainOffsetLeft: number;\n navigationRefs: FocusControlRefs;\n notificationsHeight: number;\n setNotificationsHeight: (height: number) => void;\n offsetBottom: number;\n setSplitPanelReportedSize: (value: number) => void;\n setSplitPanelReportedHeaderHeight: (value: number) => void;\n headerHeight: number;\n footerHeight: number;\n splitPanelControlId: string;\n splitPanelMaxWidth: number;\n splitPanelPosition: AppLayoutProps.SplitPanelPosition;\n splitPanelReportedSize: number;\n splitPanelReportedHeaderHeight: number;\n splitPanelToggle: SplitPanelSideToggleProps;\n setSplitPanelToggle: (toggle: SplitPanelSideToggleProps) => void;\n splitPanelDisplayed: boolean;\n splitPanelRefs: SplitPanelFocusControlRefs;\n toolsControlId: string;\n toolsRefs: FocusControlRefs;\n __embeddedViewMode?: boolean;\n}\n\n/**\n * The default values are destructured in the context instantiation to\n * prevent downstream Typescript errors. This could likely be replaced\n * by a context interface definition that extends the AppLayout interface.\n */\nconst AppLayoutInternalsContext = createContext<AppLayoutInternals | null>(null);\n\ninterface AppLayoutProviderInternalsProps extends AppLayoutPropsWithDefaults {\n children: React.ReactNode;\n}\n\nexport function useAppLayoutInternals() {\n const ctx = useContext(AppLayoutInternalsContext);\n if (!ctx) {\n throw new Error('Invariant violation: this context is only available inside app layout');\n }\n return ctx;\n}\n\nexport const AppLayoutInternalsProvider = React.forwardRef(\n (props: AppLayoutProviderInternalsProps, forwardRef: React.Ref<AppLayoutProps.Ref>) => {\n const {\n toolsHide,\n toolsOpen: controlledToolsOpen,\n navigationHide,\n navigationOpen,\n contentType,\n placement,\n children,\n splitPanel,\n } = props;\n const isMobile = useMobile();\n\n // Private API for embedded view mode\n const __embeddedViewMode = Boolean((props as any).__embeddedViewMode);\n\n /**\n * Set the default values for minimum and maximum content width.\n */\n const geckoMaxCssLength = ((1 << 30) - 1) / 60;\n const halfGeckoMaxCssLength = geckoMaxCssLength / 2;\n // CSS lengths in Gecko are limited to at most (1<<30)-1 app units (Gecko uses 60 as app unit).\n // Limit the maxContentWidth to the half of the upper boundary (≈4230^2) to be on the safe side.\n const maxContentWidth =\n props.maxContentWidth && props.maxContentWidth > halfGeckoMaxCssLength\n ? halfGeckoMaxCssLength\n : props.maxContentWidth ?? 0;\n const minContentWidth = props.minContentWidth ?? 280;\n\n const { refs: navigationRefs, setFocus: focusNavButtons } = useFocusControl(navigationOpen);\n\n const handleNavigationClick = useStableCallback(function handleNavigationChange(isOpen: boolean) {\n focusNavButtons();\n fireNonCancelableEvent(props.onNavigationChange, { open: isOpen });\n });\n\n useEffect(() => {\n // Close navigation drawer on mobile so that the main content is visible\n if (isMobile) {\n handleNavigationClick(false);\n }\n }, [isMobile, handleNavigationClick]);\n\n const toolsWidth = props.toolsWidth;\n const [isToolsOpen = false, setIsToolsOpen] = useControllable(controlledToolsOpen, props.onToolsChange, false, {\n componentName: 'AppLayout',\n controlledProp: 'toolsOpen',\n changeHandler: 'onToolsChange',\n });\n\n const {\n refs: toolsRefs,\n setFocus: focusToolsButtons,\n loseFocus: loseToolsFocus,\n } = useFocusControl(isToolsOpen, true);\n\n const handleToolsClick = useCallback(\n function handleToolsChange(isOpen: boolean, skipFocusControl?: boolean) {\n setIsToolsOpen(isOpen);\n !skipFocusControl && focusToolsButtons();\n fireNonCancelableEvent(props.onToolsChange, { open: isOpen });\n },\n [props.onToolsChange, setIsToolsOpen, focusToolsButtons]\n );\n\n /**\n * Set the default values for the minimum and maximum Split Panel width when it is\n * in the side position. The useLayoutEffect will compute the available space in the\n * DOM for the Split Panel given the current state. The minimum and maximum\n * widths will potentially trigger a side effect that will put the Split Panel into\n * a forced position on the bottom.\n */\n const [splitPanelMaxWidth, setSplitPanelMaxWidth] = useState(SPLIT_PANEL_MIN_WIDTH);\n\n /**\n * The useControllable hook will set the default value and manage either\n * the controlled or uncontrolled state of the Split Panel. By default\n * the Split Panel should always be closed on page load.\n *\n * The callback that will be passed to the SplitPanel component\n * to handle the click events that will change the state of the SplitPanel\n * to open or closed given the current state. It will set the isSplitPanelOpen\n * controlled state and fire the onSplitPanelToggle event.\n */\n const [isSplitPanelOpen, setIsSplitPanelOpen] = useControllable(\n props.splitPanelOpen,\n props.onSplitPanelToggle,\n false,\n { componentName: 'AppLayout', controlledProp: 'splitPanelOpen', changeHandler: 'onSplitPanelToggle' }\n );\n\n /**\n * The useControllable hook will manage the controlled or uncontrolled\n * state of the splitPanelPreferences. By default the splitPanelPreferences\n * is undefined. When set the object shape should have a single key to indicate\n * either bottom or side position.\n *\n * The callback that will handle changes to the splitPanelPreferences\n * object that will determine if the SplitPanel is rendered either on the\n * bottom of the viewport or within the Tools container.\n */\n const [splitPanelPreferences, setSplitPanelPreferences] = useControllable(\n props.splitPanelPreferences,\n props.onSplitPanelPreferencesChange,\n undefined,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelPreferences',\n changeHandler: 'onSplitPanelPreferencesChange',\n }\n );\n\n const { refs: splitPanelRefs, setLastInteraction: setSplitPanelLastInteraction } = useSplitPanelFocusControl([\n splitPanelPreferences,\n isSplitPanelOpen,\n ]);\n\n const handleSplitPanelClick = useCallback(\n function handleSplitPanelChange() {\n setIsSplitPanelOpen(!isSplitPanelOpen);\n setSplitPanelLastInteraction({ type: isSplitPanelOpen ? 'close' : 'open' });\n fireNonCancelableEvent(props.onSplitPanelToggle, { open: !isSplitPanelOpen });\n },\n [props.onSplitPanelToggle, isSplitPanelOpen, setIsSplitPanelOpen, setSplitPanelLastInteraction]\n );\n\n const isSplitPanelForcedPosition = checkSplitPanelForcedPosition({ isMobile, splitPanelMaxWidth });\n const splitPanelPosition = getSplitPanelPosition(isSplitPanelForcedPosition, splitPanelPreferences);\n\n /**\n * The useControllable hook will set the default size of the SplitPanel based\n * on the default position set in the splitPanelPreferences. The logic for the\n * default size is contained in the SplitPanel component. The splitPanelControlledSize\n * will be bound to the size property in the SplitPanel context for rendering.\n *\n * The callback that will be passed to the SplitPanel component\n * to handle the resize events that will change the size of the SplitPanel.\n * It will set the splitPanelControlledSize controlled state and fire the\n * onSplitPanelResize event.\n */\n const [splitPanelReportedSize, setSplitPanelReportedSize] = useState(0);\n const [splitPanelReportedHeaderHeight, setSplitPanelReportedHeaderHeight] = useState(0);\n const [splitPanelToggle, setSplitPanelToggle] = useState<SplitPanelSideToggleProps>({\n displayed: false,\n ariaLabel: undefined,\n });\n const splitPanelDisplayed = !!(splitPanelToggle.displayed || isSplitPanelOpen) && !!splitPanel;\n const splitPanelControlId = useUniqueId('split-panel-');\n const toolsControlId = useUniqueId('tools-');\n\n const [splitPanelSize, setSplitPanelSize] = useControllable(\n props.splitPanelSize,\n props.onSplitPanelResize,\n getSplitPanelDefaultSize(splitPanelPosition),\n { componentName: 'AppLayout', controlledProp: 'splitPanelSize', changeHandler: 'onSplitPanelResize' }\n );\n\n const handleSplitPanelResize = useCallback(\n (size: number) => {\n setSplitPanelSize(size);\n fireNonCancelableEvent(props.onSplitPanelResize, { size });\n },\n [props.onSplitPanelResize, setSplitPanelSize]\n );\n\n const handleSplitPanelPreferencesChange = useCallback(\n function handleSplitPanelChange(detail: AppLayoutProps.SplitPanelPreferences) {\n setSplitPanelPreferences(detail);\n setSplitPanelLastInteraction({ type: 'position' });\n fireNonCancelableEvent(props.onSplitPanelPreferencesChange, detail);\n },\n [props.onSplitPanelPreferencesChange, setSplitPanelPreferences, setSplitPanelLastInteraction]\n );\n\n const {\n drawers,\n activeDrawer,\n activeDrawerId,\n minDrawerSize: drawersMinWidth,\n onActiveDrawerChange,\n onActiveDrawerResize,\n activeDrawerSize,\n ...drawersProps\n } = useDrawers(props, props.ariaLabels, {\n disableDrawersMerge: true,\n ariaLabels: props.ariaLabels,\n toolsHide,\n toolsOpen: isToolsOpen,\n tools: props.tools,\n toolsWidth,\n onToolsToggle: handleToolsClick,\n });\n\n const [drawersMaxWidth, setDrawersMaxWidth] = useState(toolsWidth);\n const hasDrawers = !!drawers && drawers.length > 0;\n\n const {\n refs: drawersRefs,\n setFocus: focusDrawersButtons,\n loseFocus: loseDrawersFocus,\n } = useFocusControl(!!activeDrawerId, true, activeDrawerId);\n\n const drawerRef = useRef<HTMLDivElement>(null);\n const { resizeHandle, drawerSize } = useResize(drawerRef, {\n onActiveDrawerResize,\n activeDrawerSize,\n activeDrawer,\n drawersRefs,\n isToolsOpen,\n drawersMaxWidth,\n drawersMinWidth,\n });\n\n const handleDrawersClick = (id: string | null, skipFocusControl?: boolean) => {\n const newActiveDrawerId = id !== activeDrawerId ? id : null;\n\n onActiveDrawerChange(newActiveDrawerId, { initiatedByUserAction: true });\n\n !skipFocusControl && focusDrawersButtons();\n };\n\n let drawersTriggerCount = drawers ? drawers.length : !toolsHide ? 1 : 0;\n if (splitPanelDisplayed && splitPanelPosition === 'side') {\n drawersTriggerCount++;\n }\n const hasOpenDrawer =\n !!activeDrawerId ||\n (!toolsHide && isToolsOpen) ||\n (splitPanelDisplayed && splitPanelPosition === 'side' && isSplitPanelOpen);\n const hasDrawerViewportOverlay =\n isMobile && (!!activeDrawerId || (!navigationHide && navigationOpen) || (!toolsHide && isToolsOpen));\n\n const layoutElement = useRef<HTMLDivElement>(null);\n const mainElement = useRef<HTMLDivElement>(null);\n const [mainOffsetLeft, setMainOffsetLeft] = useState(0);\n\n const { hasBackgroundOverlap, updateBackgroundOverlapHeight } = useBackgroundOverlap({\n contentHeader: props.contentHeader,\n disableContentHeaderOverlap: props.disableContentHeaderOverlap,\n layoutElement,\n });\n\n useLayoutEffect(\n function handleMainOffsetLeft() {\n const offsetInlineStart = mainElement?.current ? getOffsetInlineStart(mainElement?.current) : 0;\n setMainOffsetLeft(offsetInlineStart);\n },\n [placement.inlineSize, navigationOpen, isToolsOpen, splitPanelReportedSize]\n );\n\n /**\n * On mobile viewports the navigation and tools drawers are adjusted to a fixed position\n * that consumes 100% of the viewport height and width. The body content could potentially\n * be scrollable underneath the drawer. In order to prevent this a CSS class needs to be\n * added to the document body that sets overflow to hidden.\n */\n useEffect(\n function handleBodyScroll() {\n if (isMobile && (navigationOpen || isToolsOpen || !!activeDrawer)) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n\n // Ensure the CSS class is removed from the body on side effect cleanup\n return function cleanup() {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n },\n [isMobile, navigationOpen, isToolsOpen, activeDrawer]\n );\n\n const [notificationsHeight, setNotificationsHeight] = useState(0);\n const hasNotificationsContent = notificationsHeight > 0;\n /**\n * Determine the offsetBottom value based on the presence of a footer element and\n * the SplitPanel component. Ignore the SplitPanel if it is not in the bottom\n * position. Use the size property if it is open and the header height if it is closed.\n */\n let offsetBottom = placement.insetBlockEnd;\n\n if (splitPanelDisplayed && splitPanelPosition === 'bottom') {\n if (isSplitPanelOpen) {\n offsetBottom += splitPanelReportedSize;\n } else {\n offsetBottom += splitPanelReportedHeaderHeight;\n }\n }\n\n /**\n * Warning! This is a hack! In order to accurately calculate if there is adequate\n * horizontal space for the Split Panel to be in the side position we need two values\n * that are not available in JavaScript.\n *\n * The first is the the content gap on the right which is stored in a design token\n * and applied in the Layout CSS:\n *\n * $contentGapRight: #{awsui.$space-layout-content-horizontal};\n *\n * The second is the width of the element that has the circular buttons for the\n * Tools and Split Panel. This could be suppressed given the state of the Tools\n * drawer returning a zero value. It would, however, be rendered if the Split Panel\n * were to move into the side position. This is calculated in the Tools CSS and\n * the Trigger button CSS with design tokens:\n *\n * padding: awsui.$space-scaled-s awsui.$space-layout-toggle-padding;\n * width: awsui.$space-layout-toggle-diameter;\n *\n * These values will be defined below as static integers that are rough approximations\n * of their computed width when rendered in the DOM, but doubled to ensure adequate\n * spacing for the Split Panel to be in side position.\n */\n useLayoutEffect(\n function handleSplitPanelMaxWidth() {\n const contentGapRight = 50; // Approximately 24px when rendered but doubled for safety\n const toolsFormOffsetWidth = 120; // Approximately 60px when rendered but doubled for safety\n const getPanelOffsetWidth = () => {\n if (drawers) {\n return activeDrawerId ? drawerSize : 0;\n }\n return isToolsOpen ? toolsWidth : 0;\n };\n\n setSplitPanelMaxWidth(\n placement.inlineSize -\n mainOffsetLeft -\n minContentWidth -\n contentGapRight -\n toolsFormOffsetWidth -\n getPanelOffsetWidth()\n );\n\n setDrawersMaxWidth(\n placement.inlineSize - mainOffsetLeft - minContentWidth - contentGapRight - toolsFormOffsetWidth\n );\n },\n [\n activeDrawerId,\n drawerSize,\n drawers,\n navigationOpen,\n isToolsOpen,\n placement.inlineSize,\n mainOffsetLeft,\n minContentWidth,\n toolsWidth,\n ]\n );\n\n /**\n * The useImperativeHandle hook in conjunction with the forwardRef function\n * in the AppLayout component definition expose the following callable\n * functions to component consumers when they put a ref as a property on\n * their component implementation.\n */\n useImperativeHandle(\n forwardRef,\n function createImperativeHandle() {\n return {\n closeNavigationIfNecessary: function () {\n isMobile && handleNavigationClick(false);\n },\n openTools: function () {\n handleToolsClick(true, hasDrawers);\n if (hasDrawers) {\n focusDrawersButtons(true);\n }\n },\n focusToolsClose: () => {\n if (hasDrawers) {\n focusDrawersButtons(true);\n } else {\n focusToolsButtons(true);\n }\n },\n focusActiveDrawer: () => focusDrawersButtons(true),\n focusSplitPanel: () => splitPanelRefs.slider.current?.focus(),\n };\n },\n [\n isMobile,\n handleNavigationClick,\n handleToolsClick,\n focusToolsButtons,\n focusDrawersButtons,\n splitPanelRefs.slider,\n hasDrawers,\n ]\n );\n\n return (\n <AppLayoutInternalsContext.Provider\n value={{\n ...props,\n activeDrawerId,\n contentType,\n drawers,\n drawersAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawers,\n drawersOverflowAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawersOverflow,\n drawersOverflowWithBadgeAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawersOverflowWithBadge,\n drawersRefs,\n drawersMinWidth,\n drawersMaxWidth,\n drawerSize,\n drawerRef,\n resizeHandle,\n drawersTriggerCount,\n headerHeight: placement.insetBlockStart,\n footerHeight: placement.insetBlockEnd,\n hasDrawerViewportOverlay,\n handleDrawersClick,\n handleNavigationClick,\n handleSplitPanelClick,\n handleSplitPanelPreferencesChange,\n handleSplitPanelResize,\n handleToolsClick,\n hasBackgroundOverlap,\n hasNotificationsContent,\n hasOpenDrawer,\n isBackgroundOverlapDisabled: props.disableContentHeaderOverlap || !hasBackgroundOverlap,\n isMobile,\n isSplitPanelForcedPosition,\n isSplitPanelOpen,\n isToolsOpen,\n layoutElement,\n layoutWidth: placement.inlineSize,\n loseToolsFocus,\n loseDrawersFocus,\n mainElement,\n mainOffsetLeft,\n maxContentWidth,\n minContentWidth,\n navigationHide,\n navigationRefs,\n notificationsHeight,\n setNotificationsHeight,\n offsetBottom,\n setSplitPanelReportedSize,\n setSplitPanelReportedHeaderHeight,\n splitPanel,\n splitPanelControlId,\n splitPanelDisplayed,\n splitPanelMaxWidth,\n splitPanelPosition,\n splitPanelPreferences,\n splitPanelReportedSize,\n splitPanelReportedHeaderHeight,\n splitPanelSize,\n splitPanelToggle,\n setSplitPanelToggle,\n splitPanelRefs,\n toolsControlId,\n toolsHide,\n toolsOpen: isToolsOpen,\n toolsWidth,\n toolsRefs,\n __embeddedViewMode,\n }}\n >\n <DynamicOverlapContext.Provider value={updateBackgroundOverlapHeight}>\n {children}\n </DynamicOverlapContext.Provider>\n </AppLayoutInternalsContext.Provider>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/context.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO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B,gBAAgB;YAChB,WAAW;YACX,aAAa,EACb,WAAW,EAAE,SAAS,CAAC,UAAU,EACjC,cAAc;YACd,gBAAgB;YAChB,WAAW;YACX,cAAc;YACd,eAAe;YACf,eAAe;YACf,cAAc;YACd,cAAc;YACd,mBAAmB;YACnB,sBAAsB;YACtB,YAAY;YACZ,yBAAyB;YACzB,iCAAiC;YACjC,UAAU;YACV,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;YAClB,kBAAkB;YAClB,qBAAqB;YACrB,sBAAsB;YACtB,8BAA8B;YAC9B,cAAc;YACd,gBAAgB;YAChB,mBAAmB;YACnB,cAAc;YACd,cAAc;YACd,SAAS,EACT,SAAS,EAAE,WAAW,EACtB,UAAU;YACV,SAAS;YACT,kBAAkB;QAGpB,oBAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,6BAA6B,IACjE,QAAQ,CACsB,CACE,CACtC,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\nimport { getOffsetInlineStart } from '@cloudscape-design/component-toolkit/internal';\n\nimport { DynamicOverlapContext } from '../../internal/context/dynamic-overlap-context';\nimport { SplitPanelSideToggleProps } from '../../internal/context/split-panel-context';\nimport { fireNonCancelableEvent } from '../../internal/events';\nimport { useControllable } from '../../internal/hooks/use-controllable';\nimport { useMobile } from '../../internal/hooks/use-mobile';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { getSplitPanelDefaultSize } from '../../split-panel/utils/size-utils';\nimport { AppLayoutProps, AppLayoutPropsWithDefaults } from '../interfaces';\nimport { SPLIT_PANEL_MIN_WIDTH } from '../split-panel';\nimport { shouldSplitPanelBeForcedToBottom } from '../split-panel/split-panel-forced-position';\nimport { useDrawers } from '../utils/use-drawers';\nimport { FocusControlRefs, useFocusControl } from '../utils/use-focus-control';\nimport useResize from '../utils/use-resize';\nimport { SplitPanelFocusControlRefs, useSplitPanelFocusControl } from '../utils/use-split-panel-focus-control';\nimport { getSplitPanelPosition } from './split-panel';\nimport useBackgroundOverlap from './use-background-overlap';\n\nimport styles from './styles.css.js';\n\nexport interface AppLayoutInternals extends AppLayoutPropsWithDefaults {\n activeDrawerId: string | null;\n drawers: Array<AppLayoutProps.Drawer> | undefined;\n drawersAriaLabel: string | undefined;\n drawersOverflowAriaLabel: string | undefined;\n drawersOverflowWithBadgeAriaLabel: string | undefined;\n drawersRefs: FocusControlRefs;\n drawerSize: number;\n drawersMinWidth: number;\n drawersMaxWidth: number;\n drawerRef: React.Ref<HTMLElement>;\n resizeHandle: React.ReactElement;\n drawersTriggerCount: number;\n handleDrawersClick: (activeDrawerId: string | null, skipFocusControl?: boolean) => void;\n handleSplitPanelClick: () => void;\n handleNavigationClick: (isOpen: boolean) => void;\n handleSplitPanelPreferencesChange: (detail: AppLayoutProps.SplitPanelPreferences) => void;\n handleSplitPanelResize: (newSize: number) => void;\n handleToolsClick: (value: boolean, skipFocusControl?: boolean) => void;\n hasBackgroundOverlap: boolean;\n hasDrawerViewportOverlay: boolean;\n hasNotificationsContent: boolean;\n hasOpenDrawer?: boolean;\n isBackgroundOverlapDisabled: boolean;\n isMobile: boolean;\n isSplitPanelForcedPosition: boolean;\n isSplitPanelOpen?: boolean;\n isToolsOpen: boolean;\n layoutElement: React.Ref<HTMLElement>;\n layoutWidth: number;\n loseToolsFocus: () => void;\n loseDrawersFocus: () => void;\n mainElement: React.Ref<HTMLDivElement>;\n mainOffsetLeft: number;\n navigationRefs: FocusControlRefs;\n notificationsHeight: number;\n setNotificationsHeight: (height: number) => void;\n offsetBottom: number;\n setSplitPanelReportedSize: (value: number) => void;\n setSplitPanelReportedHeaderHeight: (value: number) => void;\n headerHeight: number;\n footerHeight: number;\n splitPanelControlId: string;\n splitPanelMaxWidth: number;\n splitPanelPosition: AppLayoutProps.SplitPanelPosition;\n splitPanelReportedSize: number;\n splitPanelReportedHeaderHeight: number;\n splitPanelToggle: SplitPanelSideToggleProps;\n setSplitPanelToggle: (toggle: SplitPanelSideToggleProps) => void;\n splitPanelDisplayed: boolean;\n splitPanelRefs: SplitPanelFocusControlRefs;\n toolsControlId: string;\n toolsRefs: FocusControlRefs;\n __embeddedViewMode?: boolean;\n}\n\n/**\n * The default values are destructured in the context instantiation to\n * prevent downstream Typescript errors. This could likely be replaced\n * by a context interface definition that extends the AppLayout interface.\n */\nconst AppLayoutInternalsContext = createContext<AppLayoutInternals | null>(null);\n\ninterface AppLayoutProviderInternalsProps extends AppLayoutPropsWithDefaults {\n children: React.ReactNode;\n}\n\nexport function useAppLayoutInternals() {\n const ctx = useContext(AppLayoutInternalsContext);\n if (!ctx) {\n throw new Error('Invariant violation: this context is only available inside app layout');\n }\n return ctx;\n}\n\nexport const AppLayoutInternalsProvider = React.forwardRef(\n (props: AppLayoutProviderInternalsProps, forwardRef: React.Ref<AppLayoutProps.Ref>) => {\n const {\n toolsHide,\n toolsOpen: controlledToolsOpen,\n navigationHide,\n navigationOpen,\n contentType,\n placement,\n children,\n splitPanel,\n } = props;\n const isMobile = useMobile();\n\n // Private API for embedded view mode\n const __embeddedViewMode = Boolean((props as any).__embeddedViewMode);\n\n /**\n * Set the default values for minimum and maximum content width.\n */\n const geckoMaxCssLength = ((1 << 30) - 1) / 60;\n const halfGeckoMaxCssLength = geckoMaxCssLength / 2;\n // CSS lengths in Gecko are limited to at most (1<<30)-1 app units (Gecko uses 60 as app unit).\n // Limit the maxContentWidth to the half of the upper boundary (≈4230^2) to be on the safe side.\n const maxContentWidth =\n props.maxContentWidth && props.maxContentWidth > halfGeckoMaxCssLength\n ? halfGeckoMaxCssLength\n : props.maxContentWidth ?? 0;\n const minContentWidth = props.minContentWidth ?? 280;\n\n const { refs: navigationRefs, setFocus: focusNavButtons } = useFocusControl(navigationOpen);\n\n const handleNavigationClick = useStableCallback(function handleNavigationChange(isOpen: boolean) {\n focusNavButtons();\n fireNonCancelableEvent(props.onNavigationChange, { open: isOpen });\n });\n\n useEffect(() => {\n // Close navigation drawer on mobile so that the main content is visible\n if (isMobile) {\n handleNavigationClick(false);\n }\n }, [isMobile, handleNavigationClick]);\n\n const toolsWidth = props.toolsWidth;\n const [isToolsOpen = false, setIsToolsOpen] = useControllable(controlledToolsOpen, props.onToolsChange, false, {\n componentName: 'AppLayout',\n controlledProp: 'toolsOpen',\n changeHandler: 'onToolsChange',\n });\n\n const {\n refs: toolsRefs,\n setFocus: focusToolsButtons,\n loseFocus: loseToolsFocus,\n } = useFocusControl(isToolsOpen, true);\n\n const handleToolsClick = useCallback(\n function handleToolsChange(isOpen: boolean, skipFocusControl?: boolean) {\n setIsToolsOpen(isOpen);\n !skipFocusControl && focusToolsButtons();\n fireNonCancelableEvent(props.onToolsChange, { open: isOpen });\n },\n [props.onToolsChange, setIsToolsOpen, focusToolsButtons]\n );\n\n /**\n * Set the default values for the minimum and maximum Split Panel width when it is\n * in the side position. The useLayoutEffect will compute the available space in the\n * DOM for the Split Panel given the current state. The minimum and maximum\n * widths will potentially trigger a side effect that will put the Split Panel into\n * a forced position on the bottom.\n */\n const [splitPanelMaxWidth, setSplitPanelMaxWidth] = useState(SPLIT_PANEL_MIN_WIDTH);\n\n /**\n * The useControllable hook will set the default value and manage either\n * the controlled or uncontrolled state of the Split Panel. By default\n * the Split Panel should always be closed on page load.\n *\n * The callback that will be passed to the SplitPanel component\n * to handle the click events that will change the state of the SplitPanel\n * to open or closed given the current state. It will set the isSplitPanelOpen\n * controlled state and fire the onSplitPanelToggle event.\n */\n const [isSplitPanelOpen, setIsSplitPanelOpen] = useControllable(\n props.splitPanelOpen,\n props.onSplitPanelToggle,\n false,\n { componentName: 'AppLayout', controlledProp: 'splitPanelOpen', changeHandler: 'onSplitPanelToggle' }\n );\n\n /**\n * The useControllable hook will manage the controlled or uncontrolled\n * state of the splitPanelPreferences. By default the splitPanelPreferences\n * is undefined. When set the object shape should have a single key to indicate\n * either bottom or side position.\n *\n * The callback that will handle changes to the splitPanelPreferences\n * object that will determine if the SplitPanel is rendered either on the\n * bottom of the viewport or within the Tools container.\n */\n const [splitPanelPreferences, setSplitPanelPreferences] = useControllable(\n props.splitPanelPreferences,\n props.onSplitPanelPreferencesChange,\n undefined,\n {\n componentName: 'AppLayout',\n controlledProp: 'splitPanelPreferences',\n changeHandler: 'onSplitPanelPreferencesChange',\n }\n );\n\n const { refs: splitPanelRefs, setLastInteraction: setSplitPanelLastInteraction } = useSplitPanelFocusControl([\n splitPanelPreferences,\n isSplitPanelOpen,\n ]);\n\n const handleSplitPanelClick = useCallback(\n function handleSplitPanelChange() {\n setIsSplitPanelOpen(!isSplitPanelOpen);\n setSplitPanelLastInteraction({ type: isSplitPanelOpen ? 'close' : 'open' });\n fireNonCancelableEvent(props.onSplitPanelToggle, { open: !isSplitPanelOpen });\n },\n [props.onSplitPanelToggle, isSplitPanelOpen, setIsSplitPanelOpen, setSplitPanelLastInteraction]\n );\n\n const isSplitPanelForcedPosition = shouldSplitPanelBeForcedToBottom({\n isMobile,\n availableWidthForSplitPanel: splitPanelMaxWidth,\n });\n const splitPanelPosition = getSplitPanelPosition(isSplitPanelForcedPosition, splitPanelPreferences);\n\n /**\n * The useControllable hook will set the default size of the SplitPanel based\n * on the default position set in the splitPanelPreferences. The logic for the\n * default size is contained in the SplitPanel component. The splitPanelControlledSize\n * will be bound to the size property in the SplitPanel context for rendering.\n *\n * The callback that will be passed to the SplitPanel component\n * to handle the resize events that will change the size of the SplitPanel.\n * It will set the splitPanelControlledSize controlled state and fire the\n * onSplitPanelResize event.\n */\n const [splitPanelReportedSize, setSplitPanelReportedSize] = useState(0);\n const [splitPanelReportedHeaderHeight, setSplitPanelReportedHeaderHeight] = useState(0);\n const [splitPanelToggle, setSplitPanelToggle] = useState<SplitPanelSideToggleProps>({\n displayed: false,\n ariaLabel: undefined,\n });\n const splitPanelDisplayed = !!(splitPanelToggle.displayed || isSplitPanelOpen) && !!splitPanel;\n const splitPanelControlId = useUniqueId('split-panel-');\n const toolsControlId = useUniqueId('tools-');\n\n const [splitPanelSize, setSplitPanelSize] = useControllable(\n props.splitPanelSize,\n props.onSplitPanelResize,\n getSplitPanelDefaultSize(splitPanelPosition),\n { componentName: 'AppLayout', controlledProp: 'splitPanelSize', changeHandler: 'onSplitPanelResize' }\n );\n\n const handleSplitPanelResize = useCallback(\n (size: number) => {\n setSplitPanelSize(size);\n fireNonCancelableEvent(props.onSplitPanelResize, { size });\n },\n [props.onSplitPanelResize, setSplitPanelSize]\n );\n\n const handleSplitPanelPreferencesChange = useCallback(\n function handleSplitPanelChange(detail: AppLayoutProps.SplitPanelPreferences) {\n setSplitPanelPreferences(detail);\n setSplitPanelLastInteraction({ type: 'position' });\n fireNonCancelableEvent(props.onSplitPanelPreferencesChange, detail);\n },\n [props.onSplitPanelPreferencesChange, setSplitPanelPreferences, setSplitPanelLastInteraction]\n );\n\n const {\n drawers,\n activeDrawer,\n activeDrawerId,\n minDrawerSize: drawersMinWidth,\n onActiveDrawerChange,\n onActiveDrawerResize,\n activeDrawerSize,\n ...drawersProps\n } = useDrawers(props, props.ariaLabels, {\n disableDrawersMerge: true,\n ariaLabels: props.ariaLabels,\n toolsHide,\n toolsOpen: isToolsOpen,\n tools: props.tools,\n toolsWidth,\n onToolsToggle: handleToolsClick,\n });\n\n const [drawersMaxWidth, setDrawersMaxWidth] = useState(toolsWidth);\n const hasDrawers = !!drawers && drawers.length > 0;\n\n const {\n refs: drawersRefs,\n setFocus: focusDrawersButtons,\n loseFocus: loseDrawersFocus,\n } = useFocusControl(!!activeDrawerId, true, activeDrawerId);\n\n const drawerRef = useRef<HTMLDivElement>(null);\n const { resizeHandle, drawerSize } = useResize(drawerRef, {\n onActiveDrawerResize,\n activeDrawerSize,\n activeDrawer,\n drawersRefs,\n isToolsOpen,\n drawersMaxWidth,\n drawersMinWidth,\n });\n\n const handleDrawersClick = (id: string | null, skipFocusControl?: boolean) => {\n const newActiveDrawerId = id !== activeDrawerId ? id : null;\n\n onActiveDrawerChange(newActiveDrawerId, { initiatedByUserAction: true });\n\n !skipFocusControl && focusDrawersButtons();\n };\n\n let drawersTriggerCount = drawers ? drawers.length : !toolsHide ? 1 : 0;\n if (splitPanelDisplayed && splitPanelPosition === 'side') {\n drawersTriggerCount++;\n }\n const hasOpenDrawer =\n !!activeDrawerId ||\n (!toolsHide && isToolsOpen) ||\n (splitPanelDisplayed && splitPanelPosition === 'side' && isSplitPanelOpen);\n const hasDrawerViewportOverlay =\n isMobile && (!!activeDrawerId || (!navigationHide && navigationOpen) || (!toolsHide && isToolsOpen));\n\n const layoutElement = useRef<HTMLDivElement>(null);\n const mainElement = useRef<HTMLDivElement>(null);\n const [mainOffsetLeft, setMainOffsetLeft] = useState(0);\n\n const { hasBackgroundOverlap, updateBackgroundOverlapHeight } = useBackgroundOverlap({\n contentHeader: props.contentHeader,\n disableContentHeaderOverlap: props.disableContentHeaderOverlap,\n layoutElement,\n });\n\n useLayoutEffect(\n function handleMainOffsetLeft() {\n const offsetInlineStart = mainElement?.current ? getOffsetInlineStart(mainElement?.current) : 0;\n setMainOffsetLeft(offsetInlineStart);\n },\n [placement.inlineSize, navigationOpen, isToolsOpen, splitPanelReportedSize]\n );\n\n /**\n * On mobile viewports the navigation and tools drawers are adjusted to a fixed position\n * that consumes 100% of the viewport height and width. The body content could potentially\n * be scrollable underneath the drawer. In order to prevent this a CSS class needs to be\n * added to the document body that sets overflow to hidden.\n */\n useEffect(\n function handleBodyScroll() {\n if (isMobile && (navigationOpen || isToolsOpen || !!activeDrawer)) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n\n // Ensure the CSS class is removed from the body on side effect cleanup\n return function cleanup() {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n },\n [isMobile, navigationOpen, isToolsOpen, activeDrawer]\n );\n\n const [notificationsHeight, setNotificationsHeight] = useState(0);\n const hasNotificationsContent = notificationsHeight > 0;\n /**\n * Determine the offsetBottom value based on the presence of a footer element and\n * the SplitPanel component. Ignore the SplitPanel if it is not in the bottom\n * position. Use the size property if it is open and the header height if it is closed.\n */\n let offsetBottom = placement.insetBlockEnd;\n\n if (splitPanelDisplayed && splitPanelPosition === 'bottom') {\n if (isSplitPanelOpen) {\n offsetBottom += splitPanelReportedSize;\n } else {\n offsetBottom += splitPanelReportedHeaderHeight;\n }\n }\n\n /**\n * Warning! This is a hack! In order to accurately calculate if there is adequate\n * horizontal space for the Split Panel to be in the side position we need two values\n * that are not available in JavaScript.\n *\n * The first is the the content gap on the right which is stored in a design token\n * and applied in the Layout CSS:\n *\n * $contentGapRight: #{awsui.$space-layout-content-horizontal};\n *\n * The second is the width of the element that has the circular buttons for the\n * Tools and Split Panel. This could be suppressed given the state of the Tools\n * drawer returning a zero value. It would, however, be rendered if the Split Panel\n * were to move into the side position. This is calculated in the Tools CSS and\n * the Trigger button CSS with design tokens:\n *\n * padding: awsui.$space-scaled-s awsui.$space-layout-toggle-padding;\n * width: awsui.$space-layout-toggle-diameter;\n *\n * These values will be defined below as static integers that are rough approximations\n * of their computed width when rendered in the DOM, but doubled to ensure adequate\n * spacing for the Split Panel to be in side position.\n */\n useLayoutEffect(\n function handleSplitPanelMaxWidth() {\n const contentGapRight = 50; // Approximately 24px when rendered but doubled for safety\n const toolsFormOffsetWidth = 120; // Approximately 60px when rendered but doubled for safety\n const getPanelOffsetWidth = () => {\n if (drawers) {\n return activeDrawerId ? drawerSize : 0;\n }\n return isToolsOpen ? toolsWidth : 0;\n };\n\n setSplitPanelMaxWidth(\n placement.inlineSize -\n mainOffsetLeft -\n minContentWidth -\n contentGapRight -\n toolsFormOffsetWidth -\n getPanelOffsetWidth()\n );\n\n setDrawersMaxWidth(\n placement.inlineSize - mainOffsetLeft - minContentWidth - contentGapRight - toolsFormOffsetWidth\n );\n },\n [\n activeDrawerId,\n drawerSize,\n drawers,\n navigationOpen,\n isToolsOpen,\n placement.inlineSize,\n mainOffsetLeft,\n minContentWidth,\n toolsWidth,\n ]\n );\n\n /**\n * The useImperativeHandle hook in conjunction with the forwardRef function\n * in the AppLayout component definition expose the following callable\n * functions to component consumers when they put a ref as a property on\n * their component implementation.\n */\n useImperativeHandle(\n forwardRef,\n function createImperativeHandle() {\n return {\n closeNavigationIfNecessary: function () {\n isMobile && handleNavigationClick(false);\n },\n openTools: function () {\n handleToolsClick(true, hasDrawers);\n if (hasDrawers) {\n focusDrawersButtons(true);\n }\n },\n focusToolsClose: () => {\n if (hasDrawers) {\n focusDrawersButtons(true);\n } else {\n focusToolsButtons(true);\n }\n },\n focusActiveDrawer: () => focusDrawersButtons(true),\n focusSplitPanel: () => splitPanelRefs.slider.current?.focus(),\n };\n },\n [\n isMobile,\n handleNavigationClick,\n handleToolsClick,\n focusToolsButtons,\n focusDrawersButtons,\n splitPanelRefs.slider,\n hasDrawers,\n ]\n );\n\n return (\n <AppLayoutInternalsContext.Provider\n value={{\n ...props,\n activeDrawerId,\n contentType,\n drawers,\n drawersAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawers,\n drawersOverflowAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawersOverflow,\n drawersOverflowWithBadgeAriaLabel: drawersProps.ariaLabelsWithDrawers?.drawersOverflowWithBadge,\n drawersRefs,\n drawersMinWidth,\n drawersMaxWidth,\n drawerSize,\n drawerRef,\n resizeHandle,\n drawersTriggerCount,\n headerHeight: placement.insetBlockStart,\n footerHeight: placement.insetBlockEnd,\n hasDrawerViewportOverlay,\n handleDrawersClick,\n handleNavigationClick,\n handleSplitPanelClick,\n handleSplitPanelPreferencesChange,\n handleSplitPanelResize,\n handleToolsClick,\n hasBackgroundOverlap,\n hasNotificationsContent,\n hasOpenDrawer,\n isBackgroundOverlapDisabled: props.disableContentHeaderOverlap || !hasBackgroundOverlap,\n isMobile,\n isSplitPanelForcedPosition,\n isSplitPanelOpen,\n isToolsOpen,\n layoutElement,\n layoutWidth: placement.inlineSize,\n loseToolsFocus,\n loseDrawersFocus,\n mainElement,\n mainOffsetLeft,\n maxContentWidth,\n minContentWidth,\n navigationHide,\n navigationRefs,\n notificationsHeight,\n setNotificationsHeight,\n offsetBottom,\n setSplitPanelReportedSize,\n setSplitPanelReportedHeaderHeight,\n splitPanel,\n splitPanelControlId,\n splitPanelDisplayed,\n splitPanelMaxWidth,\n splitPanelPosition,\n splitPanelPreferences,\n splitPanelReportedSize,\n splitPanelReportedHeaderHeight,\n splitPanelSize,\n splitPanelToggle,\n setSplitPanelToggle,\n splitPanelRefs,\n toolsControlId,\n toolsHide,\n toolsOpen: isToolsOpen,\n toolsWidth,\n toolsRefs,\n __embeddedViewMode,\n }}\n >\n <DynamicOverlapContext.Provider value={updateBackgroundOverlapHeight}>\n {children}\n </DynamicOverlapContext.Provider>\n </AppLayoutInternalsContext.Provider>\n );\n }\n);\n"]}
@@ -1,12 +1,4 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * The VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT is used to reduce the number
4
- * of triggers that are initially visible on the mobile toolbar, the rest
5
- * are then placed into an overflow menu
6
- *
7
- * Note if one of the triggers is for a split-panel, it would not count that
8
- */
9
- export declare const VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT = 2;
10
2
  /**
11
3
  * The Drawers root component is mounted in the AppLayout index file. It will only
12
4
  * render if the drawers are defined, and it will take over the mounting of and
@@ -1 +1 @@
1
- {"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":";AAqBA;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,IAAI,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,uBA+B9B;AAiPD;;;;;GAKG;AACH,wBAAgB,cAAc,uBAsE7B"}
1
+ {"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":";AA8BA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,uBA+B9B;AAiPD;;;;;GAKG;AACH,wBAAgB,cAAc,uBAsE7B"}
@@ -22,7 +22,7 @@ import styles from './styles.css.js';
22
22
  *
23
23
  * Note if one of the triggers is for a split-panel, it would not count that
24
24
  */
25
- export const VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT = 2;
25
+ const VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT = 2;
26
26
  /**
27
27
  * The Drawers root component is mounted in the AppLayout index file. It will only
28
28
  * render if the drawers are defined, and it will take over the mounting of and
@@ -1 +1 @@
1
- {"version":3,"file":"drawers.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,wBAAwB,MAAM,8CAA8C,CAAC;AACpF,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,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ifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { InternalButton } from '../../button/internal';\nimport customCssProps from '../../internal/generated/custom-css-properties';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { splitItems } from '../drawer/drawers-helpers';\nimport OverflowMenu from '../drawer/overflow-menu';\nimport { TOOLS_DRAWER_ID } from '../utils/use-drawers';\nimport { useAppLayoutInternals } from './context';\nimport SplitPanel from './split-panel';\nimport TriggerButton from './trigger-button';\n\nimport splitPanelTestUtilStyles from '../../split-panel/test-classes/styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\n/**\n * The VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT is used to reduce the number\n * of triggers that are initially visible on the mobile toolbar, the rest\n * are then placed into an overflow menu\n *\n * Note if one of the triggers is for a split-panel, it would not count that\n */\nexport const VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT = 2;\n\n/**\n * The Drawers root component is mounted in the AppLayout index file. It will only\n * render if the drawers are defined, and it will take over the mounting of and\n * rendering of the Tools and SplitPanel (side position) if they exist. If drawers\n * do not exist then the Tools and SplitPanel will be handled by the Tools component.\n */\nexport default function Drawers() {\n const {\n disableBodyScroll,\n drawers,\n drawersTriggerCount,\n hasDrawerViewportOverlay,\n hasOpenDrawer,\n navigationOpen,\n navigationHide,\n isMobile,\n } = useAppLayoutInternals();\n\n const isUnfocusable = hasDrawerViewportOverlay && navigationOpen && !navigationHide;\n\n if (!drawers || drawersTriggerCount === 0) {\n return null;\n }\n\n return (\n <div\n className={clsx(styles['drawers-container'], {\n [styles['disable-body-scroll']]: disableBodyScroll,\n [styles['has-open-drawer']]: hasOpenDrawer,\n [styles.unfocusable]: isUnfocusable,\n })}\n >\n <SplitPanel.Side />\n <ActiveDrawer />\n {!isMobile && <DesktopTriggers />}\n </div>\n );\n}\n\nfunction ActiveDrawer() {\n const {\n activeDrawerId,\n ariaLabels,\n drawers,\n drawersRefs,\n handleDrawersClick,\n handleToolsClick,\n hasDrawerViewportOverlay,\n isMobile,\n navigationOpen,\n navigationHide,\n loseDrawersFocus,\n resizeHandle,\n drawerSize,\n drawersMinWidth,\n drawersMaxWidth,\n drawerRef,\n } = useAppLayoutInternals();\n\n const activeDrawer = drawers?.find(item => item.id === activeDrawerId) ?? null;\n\n const computedAriaLabels = {\n closeButton: activeDrawerId ? activeDrawer?.ariaLabels?.closeButton : ariaLabels?.toolsClose,\n content: activeDrawerId ? activeDrawer?.ariaLabels?.drawerName : ariaLabels?.tools,\n };\n\n const isHidden = !activeDrawerId;\n const isUnfocusable = isHidden || (hasDrawerViewportOverlay && navigationOpen && !navigationHide);\n const isToolsDrawer = activeDrawerId === TOOLS_DRAWER_ID;\n const toolsContent = drawers?.find(drawer => drawer.id === TOOLS_DRAWER_ID)?.content;\n\n const size = getLimitedValue(drawersMinWidth, drawerSize, drawersMaxWidth);\n\n return (\n <aside\n id={activeDrawerId ?? undefined}\n aria-hidden={isHidden}\n aria-label={computedAriaLabels.content}\n className={clsx(styles.drawer, {\n [styles['is-drawer-open']]: activeDrawerId,\n [styles.unfocusable]: isUnfocusable,\n [testutilStyles['active-drawer']]: activeDrawerId,\n [testutilStyles.tools]: isToolsDrawer,\n })}\n style={{\n ...(!isMobile && drawerSize && { [customCssProps.drawerSize]: `${size}px` }),\n }}\n ref={drawerRef}\n onBlur={e => {\n if (!e.relatedTarget || !e.currentTarget.contains(e.relatedTarget)) {\n loseDrawersFocus();\n }\n }}\n >\n {!isMobile && activeDrawer?.resizable && <div className={styles['drawer-slider']}>{resizeHandle}</div>}\n <div className={styles['drawer-content-container']}>\n <div className={styles['drawer-close-button']}>\n <InternalButton\n ariaLabel={computedAriaLabels.closeButton}\n className={clsx({\n [testutilStyles['active-drawer-close-button']]: activeDrawerId,\n [testutilStyles['tools-close']]: isToolsDrawer,\n })}\n formAction=\"none\"\n iconName={isMobile ? 'close' : 'angle-right'}\n onClick={() => {\n handleDrawersClick(activeDrawerId);\n handleToolsClick(false);\n }}\n ref={drawersRefs.close}\n variant=\"icon\"\n />\n </div>\n {toolsContent && (\n <div\n className={clsx(\n styles['drawer-content'],\n activeDrawerId !== TOOLS_DRAWER_ID && styles['drawer-content-hidden']\n )}\n >\n {toolsContent}\n </div>\n )}\n {activeDrawerId !== TOOLS_DRAWER_ID && (\n <div className={styles['drawer-content']}>{activeDrawerId && activeDrawer?.content}</div>\n )}\n </div>\n </aside>\n );\n}\n\n/**\n * The DesktopTriggers will render the trigger buttons for Tools, Drawers, and the\n * SplitPanel in non mobile viewports. Changes to the activeDrawerId need to be\n * tracked by the previousActiveDrawerId property in order to appropriately apply\n * the ref required to manage focus control.\n */\nfunction DesktopTriggers() {\n const {\n activeDrawerId,\n drawers,\n drawersAriaLabel,\n drawersOverflowAriaLabel,\n drawersOverflowWithBadgeAriaLabel,\n drawersRefs,\n drawersTriggerCount,\n handleDrawersClick,\n handleSplitPanelClick,\n hasOpenDrawer,\n isSplitPanelOpen,\n splitPanel,\n splitPanelControlId,\n splitPanelDisplayed,\n splitPanelPosition,\n splitPanelRefs,\n splitPanelToggle,\n splitPanelReportedHeaderHeight,\n splitPanelReportedSize,\n headerVariant,\n } = useAppLayoutInternals();\n\n const hasMultipleTriggers = drawersTriggerCount > 1;\n const hasSplitPanel = splitPanel && splitPanelDisplayed && splitPanelPosition === 'side';\n\n const previousActiveDrawerId = useRef(activeDrawerId);\n const [containerHeight, triggersContainerRef] = useContainerQuery(rect => rect.contentBoxHeight);\n\n if (activeDrawerId) {\n previousActiveDrawerId.current = activeDrawerId;\n }\n\n const splitPanelHeight =\n isSplitPanelOpen && splitPanelPosition === 'bottom' ? splitPanelReportedSize : splitPanelReportedHeaderHeight;\n\n const getIndexOfOverflowItem = () => {\n if (containerHeight) {\n const ITEM_HEIGHT = 48;\n const overflowSpot =\n activeDrawerId && isSplitPanelOpen\n ? (containerHeight - splitPanelReportedHeaderHeight) / 1.5\n : (containerHeight - splitPanelHeight) / 1.5;\n\n const index = Math.floor(overflowSpot / ITEM_HEIGHT);\n\n let splitPanelItem = 0;\n if (hasSplitPanel && splitPanelToggle.displayed) {\n splitPanelItem = 1;\n }\n return index - splitPanelItem;\n }\n\n return 0;\n };\n\n const { visibleItems, overflowItems } = splitItems(drawers ?? undefined, getIndexOfOverflowItem(), activeDrawerId);\n const overflowMenuHasBadge = !!overflowItems.find(item => item.badge);\n\n return (\n <aside\n className={clsx(styles['drawers-desktop-triggers-container'], {\n [styles['has-multiple-triggers']]: hasMultipleTriggers,\n [styles['has-open-drawer']]: hasOpenDrawer,\n })}\n aria-label={drawersAriaLabel}\n ref={triggersContainerRef}\n role=\"region\"\n >\n <div\n className={clsx(styles['drawers-trigger-content'], {\n [styles['has-multiple-triggers']]: hasMultipleTriggers,\n [styles['has-open-drawer']]: hasOpenDrawer,\n })}\n role=\"toolbar\"\n aria-orientation=\"vertical\"\n >\n {visibleItems.map(item => {\n const isForPreviousActiveDrawer = previousActiveDrawerId?.current === item.id;\n return (\n <TriggerButton\n ariaLabel={item.ariaLabels?.triggerButton}\n ariaExpanded={item.id === activeDrawerId}\n ariaControls={activeDrawerId === item.id ? item.id : undefined}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], {\n [testutilStyles['drawers-trigger-with-badge']]: item.badge,\n [testutilStyles['tools-toggle']]: item.id === TOOLS_DRAWER_ID,\n })}\n iconName={item?.trigger?.iconName}\n iconSvg={item?.trigger?.iconSvg}\n key={item.id}\n onClick={() => handleDrawersClick(item.id)}\n ref={isForPreviousActiveDrawer ? drawersRefs.toggle : undefined}\n badge={item.badge}\n testId={`awsui-app-layout-trigger-${item.id}`}\n highContrastHeader={headerVariant === 'high-contrast'}\n selected={item.id === activeDrawerId}\n />\n );\n })}\n\n {overflowItems.length > 0 && (\n <OverflowMenu\n items={overflowItems}\n ariaLabel={overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel}\n customTriggerBuilder={({ onClick, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (\n <TriggerButton\n ref={triggerRef}\n ariaLabel={ariaLabel}\n ariaExpanded={ariaExpanded}\n badge={overflowMenuHasBadge}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], testUtilsClass)}\n iconName=\"ellipsis\"\n onClick={onClick}\n highContrastHeader={headerVariant === 'high-contrast'}\n />\n )}\n onItemClick={({ detail }) => {\n handleDrawersClick(detail.id);\n }}\n />\n )}\n {hasSplitPanel && splitPanelToggle.displayed && (\n <TriggerButton\n ariaLabel={splitPanelToggle.ariaLabel}\n ariaControls={splitPanelControlId}\n ariaExpanded={!!isSplitPanelOpen}\n className={clsx(styles['drawers-trigger'], splitPanelTestUtilStyles['open-button'])}\n iconName=\"view-vertical\"\n onClick={() => handleSplitPanelClick()}\n selected={hasSplitPanel && isSplitPanelOpen}\n ref={splitPanelRefs.toggle}\n highContrastHeader={headerVariant === 'high-contrast'}\n />\n )}\n </div>\n </aside>\n );\n}\n\n/**\n * The MobileTriggers will be mounted inside of the AppBar component and\n * only rendered when Drawers are defined in mobile viewports. The same logic\n * will in the AppBar component will suppress the rendering of the legacy\n * trigger button for the Tools drawer.\n */\nexport function MobileTriggers() {\n const {\n activeDrawerId,\n drawers,\n drawersAriaLabel,\n drawersOverflowAriaLabel,\n drawersOverflowWithBadgeAriaLabel,\n drawersRefs,\n handleDrawersClick,\n hasDrawerViewportOverlay,\n headerVariant,\n } = useAppLayoutInternals();\n\n const previousActiveDrawerId = useRef(activeDrawerId);\n\n if (!drawers) {\n return null;\n }\n\n if (activeDrawerId) {\n previousActiveDrawerId.current = activeDrawerId;\n }\n\n const { visibleItems, overflowItems } = splitItems(drawers, VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT, activeDrawerId);\n const overflowMenuHasBadge = !!overflowItems.find(item => item.badge);\n\n return (\n <aside\n aria-hidden={hasDrawerViewportOverlay}\n className={clsx({\n [styles.unfocusable]: hasDrawerViewportOverlay,\n })}\n aria-label={drawersAriaLabel}\n role=\"region\"\n >\n <div className={styles['drawers-mobile-triggers-container']} role=\"toolbar\" aria-orientation=\"horizontal\">\n {visibleItems.map(item => {\n const isForPreviousActiveDrawer = previousActiveDrawerId?.current === item.id;\n return (\n <TriggerButton\n ariaExpanded={item.id === activeDrawerId}\n ariaLabel={item.ariaLabels?.triggerButton}\n ariaControls={activeDrawerId === item.id ? item.id : undefined}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], {\n [testutilStyles['drawers-trigger-with-badge']]: item.badge,\n [testutilStyles['tools-toggle']]: item.id === TOOLS_DRAWER_ID,\n })}\n disabled={hasDrawerViewportOverlay}\n ref={isForPreviousActiveDrawer ? drawersRefs.toggle : undefined}\n iconName={item?.trigger?.iconName}\n iconSvg={item?.trigger?.iconSvg}\n badge={item.badge}\n key={item.id}\n onClick={() => handleDrawersClick(item.id)}\n testId={`awsui-app-layout-trigger-${item.id}`}\n highContrastHeader={headerVariant === 'high-contrast'}\n selected={item.id === activeDrawerId}\n />\n );\n })}\n {overflowItems.length > 0 && (\n <OverflowMenu\n items={overflowItems}\n ariaLabel={overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel}\n onItemClick={({ detail }) => handleDrawersClick(detail.id)}\n />\n )}\n </div>\n </aside>\n );\n}\n"]}
1
+ {"version":3,"file":"drawers.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/drawers.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE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J,CAAC,CAAC;YACD,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,CAC3B,oBAAC,YAAY,IACX,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,wBAAwB,EAC9F,WAAW,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,GAC1D,CACH,CACG,CACA,CACT,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { InternalButton } from '../../button/internal';\nimport customCssProps from '../../internal/generated/custom-css-properties';\nimport { getLimitedValue } from '../../split-panel/utils/size-utils';\nimport { splitItems } from '../drawer/drawers-helpers';\nimport OverflowMenu from '../drawer/overflow-menu';\nimport { TOOLS_DRAWER_ID } from '../utils/use-drawers';\nimport { useAppLayoutInternals } from './context';\nimport SplitPanel from './split-panel';\nimport TriggerButton from './trigger-button';\n\nimport splitPanelTestUtilStyles from '../../split-panel/test-classes/styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\n/**\n * The VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT is used to reduce the number\n * of triggers that are initially visible on the mobile toolbar, the rest\n * are then placed into an overflow menu\n *\n * Note if one of the triggers is for a split-panel, it would not count that\n */\nconst VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT = 2;\n\n/**\n * The Drawers root component is mounted in the AppLayout index file. It will only\n * render if the drawers are defined, and it will take over the mounting of and\n * rendering of the Tools and SplitPanel (side position) if they exist. If drawers\n * do not exist then the Tools and SplitPanel will be handled by the Tools component.\n */\nexport default function Drawers() {\n const {\n disableBodyScroll,\n drawers,\n drawersTriggerCount,\n hasDrawerViewportOverlay,\n hasOpenDrawer,\n navigationOpen,\n navigationHide,\n isMobile,\n } = useAppLayoutInternals();\n\n const isUnfocusable = hasDrawerViewportOverlay && navigationOpen && !navigationHide;\n\n if (!drawers || drawersTriggerCount === 0) {\n return null;\n }\n\n return (\n <div\n className={clsx(styles['drawers-container'], {\n [styles['disable-body-scroll']]: disableBodyScroll,\n [styles['has-open-drawer']]: hasOpenDrawer,\n [styles.unfocusable]: isUnfocusable,\n })}\n >\n <SplitPanel.Side />\n <ActiveDrawer />\n {!isMobile && <DesktopTriggers />}\n </div>\n );\n}\n\nfunction ActiveDrawer() {\n const {\n activeDrawerId,\n ariaLabels,\n drawers,\n drawersRefs,\n handleDrawersClick,\n handleToolsClick,\n hasDrawerViewportOverlay,\n isMobile,\n navigationOpen,\n navigationHide,\n loseDrawersFocus,\n resizeHandle,\n drawerSize,\n drawersMinWidth,\n drawersMaxWidth,\n drawerRef,\n } = useAppLayoutInternals();\n\n const activeDrawer = drawers?.find(item => item.id === activeDrawerId) ?? null;\n\n const computedAriaLabels = {\n closeButton: activeDrawerId ? activeDrawer?.ariaLabels?.closeButton : ariaLabels?.toolsClose,\n content: activeDrawerId ? activeDrawer?.ariaLabels?.drawerName : ariaLabels?.tools,\n };\n\n const isHidden = !activeDrawerId;\n const isUnfocusable = isHidden || (hasDrawerViewportOverlay && navigationOpen && !navigationHide);\n const isToolsDrawer = activeDrawerId === TOOLS_DRAWER_ID;\n const toolsContent = drawers?.find(drawer => drawer.id === TOOLS_DRAWER_ID)?.content;\n\n const size = getLimitedValue(drawersMinWidth, drawerSize, drawersMaxWidth);\n\n return (\n <aside\n id={activeDrawerId ?? undefined}\n aria-hidden={isHidden}\n aria-label={computedAriaLabels.content}\n className={clsx(styles.drawer, {\n [styles['is-drawer-open']]: activeDrawerId,\n [styles.unfocusable]: isUnfocusable,\n [testutilStyles['active-drawer']]: activeDrawerId,\n [testutilStyles.tools]: isToolsDrawer,\n })}\n style={{\n ...(!isMobile && drawerSize && { [customCssProps.drawerSize]: `${size}px` }),\n }}\n ref={drawerRef}\n onBlur={e => {\n if (!e.relatedTarget || !e.currentTarget.contains(e.relatedTarget)) {\n loseDrawersFocus();\n }\n }}\n >\n {!isMobile && activeDrawer?.resizable && <div className={styles['drawer-slider']}>{resizeHandle}</div>}\n <div className={styles['drawer-content-container']}>\n <div className={styles['drawer-close-button']}>\n <InternalButton\n ariaLabel={computedAriaLabels.closeButton}\n className={clsx({\n [testutilStyles['active-drawer-close-button']]: activeDrawerId,\n [testutilStyles['tools-close']]: isToolsDrawer,\n })}\n formAction=\"none\"\n iconName={isMobile ? 'close' : 'angle-right'}\n onClick={() => {\n handleDrawersClick(activeDrawerId);\n handleToolsClick(false);\n }}\n ref={drawersRefs.close}\n variant=\"icon\"\n />\n </div>\n {toolsContent && (\n <div\n className={clsx(\n styles['drawer-content'],\n activeDrawerId !== TOOLS_DRAWER_ID && styles['drawer-content-hidden']\n )}\n >\n {toolsContent}\n </div>\n )}\n {activeDrawerId !== TOOLS_DRAWER_ID && (\n <div className={styles['drawer-content']}>{activeDrawerId && activeDrawer?.content}</div>\n )}\n </div>\n </aside>\n );\n}\n\n/**\n * The DesktopTriggers will render the trigger buttons for Tools, Drawers, and the\n * SplitPanel in non mobile viewports. Changes to the activeDrawerId need to be\n * tracked by the previousActiveDrawerId property in order to appropriately apply\n * the ref required to manage focus control.\n */\nfunction DesktopTriggers() {\n const {\n activeDrawerId,\n drawers,\n drawersAriaLabel,\n drawersOverflowAriaLabel,\n drawersOverflowWithBadgeAriaLabel,\n drawersRefs,\n drawersTriggerCount,\n handleDrawersClick,\n handleSplitPanelClick,\n hasOpenDrawer,\n isSplitPanelOpen,\n splitPanel,\n splitPanelControlId,\n splitPanelDisplayed,\n splitPanelPosition,\n splitPanelRefs,\n splitPanelToggle,\n splitPanelReportedHeaderHeight,\n splitPanelReportedSize,\n headerVariant,\n } = useAppLayoutInternals();\n\n const hasMultipleTriggers = drawersTriggerCount > 1;\n const hasSplitPanel = splitPanel && splitPanelDisplayed && splitPanelPosition === 'side';\n\n const previousActiveDrawerId = useRef(activeDrawerId);\n const [containerHeight, triggersContainerRef] = useContainerQuery(rect => rect.contentBoxHeight);\n\n if (activeDrawerId) {\n previousActiveDrawerId.current = activeDrawerId;\n }\n\n const splitPanelHeight =\n isSplitPanelOpen && splitPanelPosition === 'bottom' ? splitPanelReportedSize : splitPanelReportedHeaderHeight;\n\n const getIndexOfOverflowItem = () => {\n if (containerHeight) {\n const ITEM_HEIGHT = 48;\n const overflowSpot =\n activeDrawerId && isSplitPanelOpen\n ? (containerHeight - splitPanelReportedHeaderHeight) / 1.5\n : (containerHeight - splitPanelHeight) / 1.5;\n\n const index = Math.floor(overflowSpot / ITEM_HEIGHT);\n\n let splitPanelItem = 0;\n if (hasSplitPanel && splitPanelToggle.displayed) {\n splitPanelItem = 1;\n }\n return index - splitPanelItem;\n }\n\n return 0;\n };\n\n const { visibleItems, overflowItems } = splitItems(drawers ?? undefined, getIndexOfOverflowItem(), activeDrawerId);\n const overflowMenuHasBadge = !!overflowItems.find(item => item.badge);\n\n return (\n <aside\n className={clsx(styles['drawers-desktop-triggers-container'], {\n [styles['has-multiple-triggers']]: hasMultipleTriggers,\n [styles['has-open-drawer']]: hasOpenDrawer,\n })}\n aria-label={drawersAriaLabel}\n ref={triggersContainerRef}\n role=\"region\"\n >\n <div\n className={clsx(styles['drawers-trigger-content'], {\n [styles['has-multiple-triggers']]: hasMultipleTriggers,\n [styles['has-open-drawer']]: hasOpenDrawer,\n })}\n role=\"toolbar\"\n aria-orientation=\"vertical\"\n >\n {visibleItems.map(item => {\n const isForPreviousActiveDrawer = previousActiveDrawerId?.current === item.id;\n return (\n <TriggerButton\n ariaLabel={item.ariaLabels?.triggerButton}\n ariaExpanded={item.id === activeDrawerId}\n ariaControls={activeDrawerId === item.id ? item.id : undefined}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], {\n [testutilStyles['drawers-trigger-with-badge']]: item.badge,\n [testutilStyles['tools-toggle']]: item.id === TOOLS_DRAWER_ID,\n })}\n iconName={item?.trigger?.iconName}\n iconSvg={item?.trigger?.iconSvg}\n key={item.id}\n onClick={() => handleDrawersClick(item.id)}\n ref={isForPreviousActiveDrawer ? drawersRefs.toggle : undefined}\n badge={item.badge}\n testId={`awsui-app-layout-trigger-${item.id}`}\n highContrastHeader={headerVariant === 'high-contrast'}\n selected={item.id === activeDrawerId}\n />\n );\n })}\n\n {overflowItems.length > 0 && (\n <OverflowMenu\n items={overflowItems}\n ariaLabel={overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel}\n customTriggerBuilder={({ onClick, triggerRef, ariaLabel, ariaExpanded, testUtilsClass }) => (\n <TriggerButton\n ref={triggerRef}\n ariaLabel={ariaLabel}\n ariaExpanded={ariaExpanded}\n badge={overflowMenuHasBadge}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], testUtilsClass)}\n iconName=\"ellipsis\"\n onClick={onClick}\n highContrastHeader={headerVariant === 'high-contrast'}\n />\n )}\n onItemClick={({ detail }) => {\n handleDrawersClick(detail.id);\n }}\n />\n )}\n {hasSplitPanel && splitPanelToggle.displayed && (\n <TriggerButton\n ariaLabel={splitPanelToggle.ariaLabel}\n ariaControls={splitPanelControlId}\n ariaExpanded={!!isSplitPanelOpen}\n className={clsx(styles['drawers-trigger'], splitPanelTestUtilStyles['open-button'])}\n iconName=\"view-vertical\"\n onClick={() => handleSplitPanelClick()}\n selected={hasSplitPanel && isSplitPanelOpen}\n ref={splitPanelRefs.toggle}\n highContrastHeader={headerVariant === 'high-contrast'}\n />\n )}\n </div>\n </aside>\n );\n}\n\n/**\n * The MobileTriggers will be mounted inside of the AppBar component and\n * only rendered when Drawers are defined in mobile viewports. The same logic\n * will in the AppBar component will suppress the rendering of the legacy\n * trigger button for the Tools drawer.\n */\nexport function MobileTriggers() {\n const {\n activeDrawerId,\n drawers,\n drawersAriaLabel,\n drawersOverflowAriaLabel,\n drawersOverflowWithBadgeAriaLabel,\n drawersRefs,\n handleDrawersClick,\n hasDrawerViewportOverlay,\n headerVariant,\n } = useAppLayoutInternals();\n\n const previousActiveDrawerId = useRef(activeDrawerId);\n\n if (!drawers) {\n return null;\n }\n\n if (activeDrawerId) {\n previousActiveDrawerId.current = activeDrawerId;\n }\n\n const { visibleItems, overflowItems } = splitItems(drawers, VISIBLE_MOBILE_TOOLBAR_TRIGGERS_LIMIT, activeDrawerId);\n const overflowMenuHasBadge = !!overflowItems.find(item => item.badge);\n\n return (\n <aside\n aria-hidden={hasDrawerViewportOverlay}\n className={clsx({\n [styles.unfocusable]: hasDrawerViewportOverlay,\n })}\n aria-label={drawersAriaLabel}\n role=\"region\"\n >\n <div className={styles['drawers-mobile-triggers-container']} role=\"toolbar\" aria-orientation=\"horizontal\">\n {visibleItems.map(item => {\n const isForPreviousActiveDrawer = previousActiveDrawerId?.current === item.id;\n return (\n <TriggerButton\n ariaExpanded={item.id === activeDrawerId}\n ariaLabel={item.ariaLabels?.triggerButton}\n ariaControls={activeDrawerId === item.id ? item.id : undefined}\n className={clsx(styles['drawers-trigger'], testutilStyles['drawers-trigger'], {\n [testutilStyles['drawers-trigger-with-badge']]: item.badge,\n [testutilStyles['tools-toggle']]: item.id === TOOLS_DRAWER_ID,\n })}\n disabled={hasDrawerViewportOverlay}\n ref={isForPreviousActiveDrawer ? drawersRefs.toggle : undefined}\n iconName={item?.trigger?.iconName}\n iconSvg={item?.trigger?.iconSvg}\n badge={item.badge}\n key={item.id}\n onClick={() => handleDrawersClick(item.id)}\n testId={`awsui-app-layout-trigger-${item.id}`}\n highContrastHeader={headerVariant === 'high-contrast'}\n selected={item.id === activeDrawerId}\n />\n );\n })}\n {overflowItems.length > 0 && (\n <OverflowMenu\n items={overflowItems}\n ariaLabel={overflowMenuHasBadge ? drawersOverflowWithBadgeAriaLabel : drawersOverflowAriaLabel}\n onItemClick={({ detail }) => handleDrawersClick(detail.id)}\n />\n )}\n </div>\n </aside>\n );\n}\n"]}
@@ -1,91 +1,91 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "background": "awsui_background_hyvsj_17ek5_145",
5
- "scrolling-background": "awsui_scrolling-background_hyvsj_17ek5_148",
6
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_17ek5_159",
7
- "drawers-container": "awsui_drawers-container_hyvsj_17ek5_172",
8
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_17ek5_183",
9
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_17ek5_204",
10
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_17ek5_209",
11
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_17ek5_250",
12
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_17ek5_260",
13
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_17ek5_265",
14
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_17ek5_279",
15
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_17ek5_265",
16
- "drawer": "awsui_drawer_hyvsj_17ek5_172",
17
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_17ek5_310",
18
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_17ek5_319",
19
- "drawer-content": "awsui_drawer-content_hyvsj_17ek5_310",
20
- "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_17ek5_328",
21
- "drawer-slider": "awsui_drawer-slider_hyvsj_17ek5_331",
22
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_17ek5_338",
23
- "content": "awsui_content_hyvsj_17ek5_364",
24
- "layout": "awsui_layout_hyvsj_17ek5_389",
25
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_17ek5_461",
26
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_17ek5_476",
27
- "content-type-table": "awsui_content-type-table_hyvsj_17ek5_490",
28
- "content-type-cards": "awsui_content-type-cards_hyvsj_17ek5_490",
29
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_17ek5_496",
30
- "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_17ek5_499",
31
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_17ek5_513",
32
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_17ek5_516",
33
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_17ek5_526",
34
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_17ek5_529",
35
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_17ek5_529",
36
- "has-header": "awsui_has-header_hyvsj_17ek5_529",
37
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_17ek5_544",
38
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_17ek5_544",
39
- "has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_17ek5_564",
40
- "has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_17ek5_567",
41
- "has-split-panel": "awsui_has-split-panel_hyvsj_17ek5_587",
42
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_17ek5_587",
43
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_17ek5_595",
44
- "unfocusable": "awsui_unfocusable_hyvsj_17ek5_600",
45
- "container": "awsui_container_hyvsj_17ek5_610",
46
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_17ek5_636",
47
- "is-tools-open": "awsui_is-tools-open_hyvsj_17ek5_639",
48
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_17ek5_639",
49
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_17ek5_639",
50
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_17ek5_639",
51
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_17ek5_652",
52
- "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_17ek5_669",
53
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_17ek5_673",
54
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_17ek5_677",
55
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_17ek5_681",
56
- "navigation-container": "awsui_navigation-container_hyvsj_17ek5_690",
57
- "show-navigation": "awsui_show-navigation_hyvsj_17ek5_728",
58
- "animating": "awsui_animating_hyvsj_17ek5_751",
59
- "showButtons": "awsui_showButtons_hyvsj_17ek5_1",
60
- "navigation": "awsui_navigation_hyvsj_17ek5_690",
61
- "openNavigation": "awsui_openNavigation_hyvsj_17ek5_1",
62
- "animated-content": "awsui_animated-content_hyvsj_17ek5_815",
63
- "content-container": "awsui_content-container_hyvsj_17ek5_818",
64
- "hide-navigation": "awsui_hide-navigation_hyvsj_17ek5_827",
65
- "notifications": "awsui_notifications_hyvsj_17ek5_837",
66
- "has-notification-content": "awsui_has-notification-content_hyvsj_17ek5_842",
67
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_17ek5_846",
68
- "high-contrast": "awsui_high-contrast_hyvsj_17ek5_851",
69
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_17ek5_869",
70
- "position-bottom": "awsui_position-bottom_hyvsj_17ek5_916",
71
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_17ek5_1",
72
- "split-panel-side": "awsui_split-panel-side_hyvsj_17ek5_945",
73
- "position-side": "awsui_position-side_hyvsj_17ek5_958",
74
- "tools-container": "awsui_tools-container_hyvsj_17ek5_980",
75
- "tools": "awsui_tools_hyvsj_17ek5_980",
76
- "openTools": "awsui_openTools_hyvsj_17ek5_1",
77
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_17ek5_1069",
78
- "hide-tools": "awsui_hide-tools_hyvsj_17ek5_1079",
79
- "show-tools": "awsui_show-tools_hyvsj_17ek5_1091",
80
- "has-tools-form": "awsui_has-tools-form_hyvsj_17ek5_1069",
81
- "trigger-button-styles": "awsui_trigger-button-styles_hyvsj_17ek5_1174",
82
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_17ek5_1190",
83
- "trigger": "awsui_trigger_hyvsj_17ek5_1174",
84
- "selected": "awsui_selected_hyvsj_17ek5_1242",
85
- "badge": "awsui_badge_hyvsj_17ek5_1262",
86
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_17ek5_1266",
87
- "trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_hyvsj_17ek5_1277",
88
- "dot": "awsui_dot_hyvsj_17ek5_1281",
89
- "trigger-tooltip": "awsui_trigger-tooltip_hyvsj_17ek5_1294"
4
+ "background": "awsui_background_hyvsj_uh0or_145",
5
+ "scrolling-background": "awsui_scrolling-background_hyvsj_uh0or_148",
6
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_uh0or_159",
7
+ "drawers-container": "awsui_drawers-container_hyvsj_uh0or_172",
8
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_uh0or_183",
9
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_uh0or_204",
10
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_uh0or_209",
11
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_uh0or_247",
12
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_uh0or_257",
13
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_uh0or_262",
14
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_uh0or_276",
15
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_uh0or_262",
16
+ "drawer": "awsui_drawer_hyvsj_uh0or_172",
17
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_uh0or_307",
18
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_uh0or_316",
19
+ "drawer-content": "awsui_drawer-content_hyvsj_uh0or_307",
20
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_uh0or_325",
21
+ "drawer-slider": "awsui_drawer-slider_hyvsj_uh0or_328",
22
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_uh0or_335",
23
+ "content": "awsui_content_hyvsj_uh0or_361",
24
+ "layout": "awsui_layout_hyvsj_uh0or_386",
25
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_uh0or_458",
26
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_uh0or_473",
27
+ "content-type-table": "awsui_content-type-table_hyvsj_uh0or_487",
28
+ "content-type-cards": "awsui_content-type-cards_hyvsj_uh0or_487",
29
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_uh0or_493",
30
+ "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_uh0or_496",
31
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_uh0or_510",
32
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_uh0or_513",
33
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_uh0or_523",
34
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_uh0or_526",
35
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_uh0or_526",
36
+ "has-header": "awsui_has-header_hyvsj_uh0or_526",
37
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_uh0or_541",
38
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_uh0or_541",
39
+ "has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_uh0or_561",
40
+ "has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_uh0or_564",
41
+ "has-split-panel": "awsui_has-split-panel_hyvsj_uh0or_584",
42
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_uh0or_584",
43
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_uh0or_592",
44
+ "unfocusable": "awsui_unfocusable_hyvsj_uh0or_597",
45
+ "container": "awsui_container_hyvsj_uh0or_607",
46
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_uh0or_633",
47
+ "is-tools-open": "awsui_is-tools-open_hyvsj_uh0or_636",
48
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_uh0or_636",
49
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_uh0or_636",
50
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_uh0or_636",
51
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_uh0or_649",
52
+ "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_uh0or_666",
53
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_uh0or_670",
54
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_uh0or_674",
55
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_uh0or_678",
56
+ "navigation-container": "awsui_navigation-container_hyvsj_uh0or_687",
57
+ "show-navigation": "awsui_show-navigation_hyvsj_uh0or_725",
58
+ "animating": "awsui_animating_hyvsj_uh0or_748",
59
+ "showButtons": "awsui_showButtons_hyvsj_uh0or_1",
60
+ "navigation": "awsui_navigation_hyvsj_uh0or_687",
61
+ "openNavigation": "awsui_openNavigation_hyvsj_uh0or_1",
62
+ "animated-content": "awsui_animated-content_hyvsj_uh0or_812",
63
+ "content-container": "awsui_content-container_hyvsj_uh0or_815",
64
+ "hide-navigation": "awsui_hide-navigation_hyvsj_uh0or_824",
65
+ "notifications": "awsui_notifications_hyvsj_uh0or_834",
66
+ "has-notification-content": "awsui_has-notification-content_hyvsj_uh0or_839",
67
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_uh0or_843",
68
+ "high-contrast": "awsui_high-contrast_hyvsj_uh0or_848",
69
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_uh0or_866",
70
+ "position-bottom": "awsui_position-bottom_hyvsj_uh0or_913",
71
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_uh0or_1",
72
+ "split-panel-side": "awsui_split-panel-side_hyvsj_uh0or_942",
73
+ "position-side": "awsui_position-side_hyvsj_uh0or_955",
74
+ "tools-container": "awsui_tools-container_hyvsj_uh0or_977",
75
+ "tools": "awsui_tools_hyvsj_uh0or_977",
76
+ "openTools": "awsui_openTools_hyvsj_uh0or_1",
77
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_uh0or_1066",
78
+ "hide-tools": "awsui_hide-tools_hyvsj_uh0or_1076",
79
+ "show-tools": "awsui_show-tools_hyvsj_uh0or_1088",
80
+ "has-tools-form": "awsui_has-tools-form_hyvsj_uh0or_1066",
81
+ "trigger-button-styles": "awsui_trigger-button-styles_hyvsj_uh0or_1168",
82
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_uh0or_1184",
83
+ "trigger": "awsui_trigger_hyvsj_uh0or_1168",
84
+ "selected": "awsui_selected_hyvsj_uh0or_1236",
85
+ "badge": "awsui_badge_hyvsj_uh0or_1256",
86
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_uh0or_1260",
87
+ "trigger-wrapper-tooltip-visible": "awsui_trigger-wrapper-tooltip-visible_hyvsj_uh0or_1271",
88
+ "dot": "awsui_dot_hyvsj_uh0or_1275",
89
+ "trigger-tooltip": "awsui_trigger-tooltip_hyvsj_uh0or_1288"
90
90
  };
91
91