@cloudscape-design/components 3.0.638 → 3.0.639

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 (217) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +31 -31
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/implementation.d.ts +31 -0
  5. package/app-layout/implementation.d.ts.map +1 -1
  6. package/app-layout/implementation.js +2 -0
  7. package/app-layout/implementation.js.map +1 -1
  8. package/app-layout/interfaces.d.ts +7 -0
  9. package/app-layout/interfaces.d.ts.map +1 -1
  10. package/app-layout/interfaces.js.map +1 -1
  11. package/app-layout/internal.js +1 -1
  12. package/app-layout/internal.js.map +1 -1
  13. package/app-layout/notifications/styles.css.js +3 -3
  14. package/app-layout/notifications/styles.scoped.css +7 -7
  15. package/app-layout/notifications/styles.selectors.js +3 -3
  16. package/app-layout/skeleton/index.d.ts +1 -1
  17. package/app-layout/skeleton/index.d.ts.map +1 -1
  18. package/app-layout/skeleton/index.js +2 -2
  19. package/app-layout/skeleton/index.js.map +1 -1
  20. package/app-layout/skeleton/layout.d.ts +2 -2
  21. package/app-layout/skeleton/layout.d.ts.map +1 -1
  22. package/app-layout/skeleton/layout.js +5 -4
  23. package/app-layout/skeleton/layout.js.map +1 -1
  24. package/app-layout/skeleton/styles.css.js +11 -11
  25. package/app-layout/skeleton/styles.scoped.css +99 -38
  26. package/app-layout/skeleton/styles.selectors.js +11 -11
  27. package/app-layout/utils/use-app-layout-placement.js +1 -1
  28. package/app-layout/utils/use-app-layout-placement.js.map +1 -1
  29. package/app-layout/utils/use-pointer-events.d.ts.map +1 -1
  30. package/app-layout/utils/use-pointer-events.js +1 -1
  31. package/app-layout/utils/use-pointer-events.js.map +1 -1
  32. package/app-layout/visual-refresh/background.d.ts.map +1 -1
  33. package/app-layout/visual-refresh/background.js +3 -3
  34. package/app-layout/visual-refresh/background.js.map +1 -1
  35. package/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -1
  36. package/app-layout/visual-refresh/breadcrumbs.js +4 -3
  37. package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  38. package/app-layout/visual-refresh/context.js +1 -1
  39. package/app-layout/visual-refresh/context.js.map +1 -1
  40. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  41. package/app-layout/visual-refresh/drawers.js +4 -4
  42. package/app-layout/visual-refresh/drawers.js.map +1 -1
  43. package/app-layout/visual-refresh/header.d.ts.map +1 -1
  44. package/app-layout/visual-refresh/header.js +4 -3
  45. package/app-layout/visual-refresh/header.js.map +1 -1
  46. package/app-layout/visual-refresh/layout.d.ts.map +1 -1
  47. package/app-layout/visual-refresh/layout.js +2 -0
  48. package/app-layout/visual-refresh/layout.js.map +1 -1
  49. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  50. package/app-layout/visual-refresh/mobile-toolbar.js +4 -4
  51. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  52. package/app-layout/visual-refresh/navigation.d.ts.map +1 -1
  53. package/app-layout/visual-refresh/navigation.js +2 -2
  54. package/app-layout/visual-refresh/navigation.js.map +1 -1
  55. package/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  56. package/app-layout/visual-refresh/notifications.js +4 -3
  57. package/app-layout/visual-refresh/notifications.js.map +1 -1
  58. package/app-layout/visual-refresh/styles.css.js +83 -81
  59. package/app-layout/visual-refresh/styles.scoped.css +266 -258
  60. package/app-layout/visual-refresh/styles.selectors.js +83 -81
  61. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  62. package/app-layout/visual-refresh/tools.js +3 -3
  63. package/app-layout/visual-refresh/tools.js.map +1 -1
  64. package/app-layout/visual-refresh/trigger-button.d.ts +1 -0
  65. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  66. package/app-layout/visual-refresh/trigger-button.js +2 -3
  67. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  68. package/area-chart/internal.js +1 -1
  69. package/area-chart/internal.js.map +1 -1
  70. package/cards/index.d.ts.map +1 -1
  71. package/cards/index.js +4 -6
  72. package/cards/index.js.map +1 -1
  73. package/cards/styles.css.js +39 -40
  74. package/cards/styles.scoped.css +50 -50
  75. package/cards/styles.selectors.js +39 -40
  76. package/container/internal.d.ts +2 -2
  77. package/container/internal.d.ts.map +1 -1
  78. package/container/internal.js +5 -7
  79. package/container/internal.js.map +1 -1
  80. package/container/styles.css.js +28 -30
  81. package/container/styles.scoped.css +52 -65
  82. package/container/styles.selectors.js +28 -30
  83. package/container/use-sticky-header.js +2 -2
  84. package/container/use-sticky-header.js.map +1 -1
  85. package/content-layout/interfaces.d.ts +52 -0
  86. package/content-layout/interfaces.d.ts.map +1 -1
  87. package/content-layout/interfaces.js.map +1 -1
  88. package/content-layout/internal.d.ts +1 -1
  89. package/content-layout/internal.d.ts.map +1 -1
  90. package/content-layout/internal.js +37 -7
  91. package/content-layout/internal.js.map +1 -1
  92. package/content-layout/styles.css.js +14 -7
  93. package/content-layout/styles.scoped.css +57 -37
  94. package/content-layout/styles.selectors.js +14 -7
  95. package/content-layout/test-classes/styles.css.js +9 -0
  96. package/content-layout/test-classes/styles.scoped.css +19 -0
  97. package/content-layout/test-classes/styles.selectors.js +10 -0
  98. package/flashbar/styles.css.js +47 -47
  99. package/flashbar/styles.scoped.css +171 -171
  100. package/flashbar/styles.selectors.js +47 -47
  101. package/internal/components/cartesian-chart/inline-start-labels.js +1 -1
  102. package/internal/components/cartesian-chart/inline-start-labels.js.map +1 -1
  103. package/internal/components/dropdown/dropdown-fit-handler.js +1 -1
  104. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  105. package/internal/components/dropdown/index.js +1 -1
  106. package/internal/components/dropdown/index.js.map +1 -1
  107. package/internal/components/dropdown/styles.css.js +20 -20
  108. package/internal/components/dropdown/styles.scoped.css +41 -41
  109. package/internal/components/dropdown/styles.selectors.js +20 -20
  110. package/internal/components/responsive-text/index.js +1 -1
  111. package/internal/components/responsive-text/index.js.map +1 -1
  112. package/internal/environment.js +1 -1
  113. package/internal/environment.json +1 -1
  114. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  115. package/internal/generated/custom-css-properties/index.js +56 -51
  116. package/internal/generated/custom-css-properties/index.js.map +1 -1
  117. package/internal/hooks/use-scroll-sync/index.d.ts +1 -1
  118. package/internal/hooks/use-scroll-sync/index.d.ts.map +1 -1
  119. package/internal/hooks/use-scroll-sync/index.js +2 -4
  120. package/internal/hooks/use-scroll-sync/index.js.map +1 -1
  121. package/internal/manifest.json +1 -1
  122. package/internal/utils/content-header-utils.d.ts +1 -0
  123. package/internal/utils/content-header-utils.d.ts.map +1 -1
  124. package/internal/utils/content-header-utils.js +2 -1
  125. package/internal/utils/content-header-utils.js.map +1 -1
  126. package/internal/utils/dom.d.ts +0 -5
  127. package/internal/utils/dom.d.ts.map +1 -1
  128. package/internal/utils/dom.js +0 -12
  129. package/internal/utils/dom.js.map +1 -1
  130. package/internal/utils/handle-key.js +1 -1
  131. package/internal/utils/handle-key.js.map +1 -1
  132. package/mixed-line-bar-chart/chart-container.js +1 -1
  133. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  134. package/package.json +1 -1
  135. package/pie-chart/responsive-text.js +1 -1
  136. package/pie-chart/responsive-text.js.map +1 -1
  137. package/popover/use-popover-position.js +1 -1
  138. package/popover/use-popover-position.js.map +1 -1
  139. package/slider/styles.css.js +25 -25
  140. package/slider/styles.scoped.css +71 -71
  141. package/slider/styles.selectors.js +25 -25
  142. package/spinner/styles.css.js +13 -13
  143. package/spinner/styles.scoped.css +39 -39
  144. package/spinner/styles.selectors.js +13 -13
  145. package/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  146. package/split-panel/icons/bottom-icon-refresh.js +1 -2
  147. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  148. package/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  149. package/split-panel/icons/side-position-refresh.js +1 -2
  150. package/split-panel/icons/side-position-refresh.js.map +1 -1
  151. package/split-panel/internal.js +1 -1
  152. package/split-panel/internal.js.map +1 -1
  153. package/table/interfaces.d.ts +1 -0
  154. package/table/interfaces.d.ts.map +1 -1
  155. package/table/interfaces.js.map +1 -1
  156. package/table/internal.d.ts.map +1 -1
  157. package/table/internal.js +2 -8
  158. package/table/internal.js.map +1 -1
  159. package/table/no-data-cell.d.ts.map +1 -1
  160. package/table/no-data-cell.js +1 -2
  161. package/table/no-data-cell.js.map +1 -1
  162. package/table/progressive-loading/progressive-loading-utils.d.ts.map +1 -1
  163. package/table/progressive-loading/progressive-loading-utils.js +8 -3
  164. package/table/progressive-loading/progressive-loading-utils.js.map +1 -1
  165. package/table/resizer/index.js +1 -1
  166. package/table/resizer/index.js.map +1 -1
  167. package/table/resizer/resizer-lookup.js +1 -1
  168. package/table/resizer/resizer-lookup.js.map +1 -1
  169. package/table/sticky-columns/use-sticky-columns.js +1 -1
  170. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  171. package/table/sticky-columns/utils.js +1 -1
  172. package/table/sticky-columns/utils.js.map +1 -1
  173. package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -1
  174. package/table/sticky-scrollbar/use-sticky-scrollbar.js +12 -14
  175. package/table/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -1
  176. package/table/sticky-scrolling.js +1 -1
  177. package/table/sticky-scrolling.js.map +1 -1
  178. package/table/styles.css.js +34 -35
  179. package/table/styles.scoped.css +39 -48
  180. package/table/styles.selectors.js +34 -35
  181. package/table/table-role/grid-navigation.js +13 -13
  182. package/table/table-role/grid-navigation.js.map +1 -1
  183. package/table/use-column-widths.js +1 -1
  184. package/table/use-column-widths.js.map +1 -1
  185. package/tabs/scroll-utils.js +1 -1
  186. package/tabs/scroll-utils.js.map +1 -1
  187. package/test-utils/dom/content-layout/index.d.ts +3 -0
  188. package/test-utils/dom/content-layout/index.js +11 -1
  189. package/test-utils/dom/content-layout/index.js.map +1 -1
  190. package/test-utils/selectors/content-layout/index.d.ts +3 -0
  191. package/test-utils/selectors/content-layout/index.js +11 -1
  192. package/test-utils/selectors/content-layout/index.js.map +1 -1
  193. package/test-utils/tsconfig.tsbuildinfo +1 -1
  194. package/wizard/internal.d.ts.map +1 -1
  195. package/wizard/internal.js +3 -5
  196. package/wizard/internal.js.map +1 -1
  197. package/wizard/styles.css.js +31 -32
  198. package/wizard/styles.scoped.css +59 -116
  199. package/wizard/styles.selectors.js +31 -32
  200. package/wizard/wizard-form-header.d.ts.map +1 -1
  201. package/wizard/wizard-form-header.js +2 -4
  202. package/wizard/wizard-form-header.js.map +1 -1
  203. package/wizard/wizard-navigation.d.ts.map +1 -1
  204. package/wizard/wizard-navigation.js +2 -3
  205. package/wizard/wizard-navigation.js.map +1 -1
  206. package/app-layout/widget.d.ts +0 -6
  207. package/app-layout/widget.d.ts.map +0 -1
  208. package/app-layout/widget.js +0 -16
  209. package/app-layout/widget.js.map +0 -1
  210. package/internal/direction.d.ts +0 -36
  211. package/internal/direction.d.ts.map +0 -1
  212. package/internal/direction.js +0 -66
  213. package/internal/direction.js.map +0 -1
  214. package/split-panel/widget.d.ts +0 -2
  215. package/split-panel/widget.d.ts.map +0 -1
  216. package/split-panel/widget.js +0 -4
  217. package/split-panel/widget.js.map +0 -1
@@ -1,29 +1,29 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "arrow": "awsui_arrow_1hpp3_ger0s_99",
5
- "arrow-outer": "awsui_arrow-outer_1hpp3_ger0s_103",
6
- "arrow-inner": "awsui_arrow-inner_1hpp3_ger0s_103",
7
- "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_ger0s_144",
8
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_ger0s_144",
9
- "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_ger0s_147",
10
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_ger0s_147",
11
- "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_ger0s_150",
12
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_ger0s_150",
13
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_ger0s_153",
14
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_ger0s_153",
15
- "annotation": "awsui_annotation_1hpp3_ger0s_161",
16
- "next-button": "awsui_next-button_1hpp3_ger0s_162",
17
- "previous-button": "awsui_previous-button_1hpp3_ger0s_163",
18
- "finish-button": "awsui_finish-button_1hpp3_ger0s_164",
19
- "header": "awsui_header_1hpp3_ger0s_165",
20
- "step-counter-content": "awsui_step-counter-content_1hpp3_ger0s_166",
21
- "content": "awsui_content_1hpp3_ger0s_167",
22
- "description": "awsui_description_1hpp3_ger0s_171",
23
- "actionBar": "awsui_actionBar_1hpp3_ger0s_176",
24
- "stepCounter": "awsui_stepCounter_1hpp3_ger0s_183",
25
- "divider": "awsui_divider_1hpp3_ger0s_187",
26
- "hotspot": "awsui_hotspot_1hpp3_ger0s_191",
27
- "icon": "awsui_icon_1hpp3_ger0s_258"
4
+ "arrow": "awsui_arrow_1hpp3_1q1bo_99",
5
+ "arrow-outer": "awsui_arrow-outer_1hpp3_1q1bo_103",
6
+ "arrow-inner": "awsui_arrow-inner_1hpp3_1q1bo_103",
7
+ "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_1q1bo_144",
8
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_1q1bo_144",
9
+ "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_1q1bo_147",
10
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_1q1bo_147",
11
+ "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_1q1bo_150",
12
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_1q1bo_150",
13
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_1q1bo_153",
14
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_1q1bo_153",
15
+ "annotation": "awsui_annotation_1hpp3_1q1bo_161",
16
+ "next-button": "awsui_next-button_1hpp3_1q1bo_162",
17
+ "previous-button": "awsui_previous-button_1hpp3_1q1bo_163",
18
+ "finish-button": "awsui_finish-button_1hpp3_1q1bo_164",
19
+ "header": "awsui_header_1hpp3_1q1bo_165",
20
+ "step-counter-content": "awsui_step-counter-content_1hpp3_1q1bo_166",
21
+ "content": "awsui_content_1hpp3_1q1bo_167",
22
+ "description": "awsui_description_1hpp3_1q1bo_171",
23
+ "actionBar": "awsui_actionBar_1hpp3_1q1bo_176",
24
+ "stepCounter": "awsui_stepCounter_1hpp3_1q1bo_183",
25
+ "divider": "awsui_divider_1hpp3_1q1bo_187",
26
+ "hotspot": "awsui_hotspot_1hpp3_1q1bo_191",
27
+ "icon": "awsui_icon_1hpp3_1q1bo_258"
28
28
  };
29
29
 
@@ -96,11 +96,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
96
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
97
97
  SPDX-License-Identifier: Apache-2.0
98
98
  */
99
- .awsui_arrow_1hpp3_ger0s_99:not(#\9) {
99
+ .awsui_arrow_1hpp3_1q1bo_99:not(#\9) {
100
100
  inline-size: 20px;
101
101
  block-size: 10px;
102
102
  }
103
- .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9), .awsui_arrow-inner_1hpp3_ger0s_103:not(#\9) {
103
+ .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9), .awsui_arrow-inner_1hpp3_1q1bo_103:not(#\9) {
104
104
  position: absolute;
105
105
  overflow: hidden;
106
106
  inline-size: 20px;
@@ -108,7 +108,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
108
108
  inset-block-start: 0;
109
109
  inset-inline-start: 0;
110
110
  }
111
- .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after, .awsui_arrow-inner_1hpp3_ger0s_103:not(#\9)::after {
111
+ .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after, .awsui_arrow-inner_1hpp3_1q1bo_103:not(#\9)::after {
112
112
  content: "";
113
113
  box-sizing: border-box;
114
114
  display: inline-block;
@@ -124,33 +124,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
124
124
  transform: rotate(45deg);
125
125
  transform-origin: 0 100%;
126
126
  }
127
- .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9):dir(rtl)::after, .awsui_arrow-inner_1hpp3_ger0s_103:not(#\9):dir(rtl)::after {
127
+ .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9):dir(rtl)::after, .awsui_arrow-inner_1hpp3_1q1bo_103:not(#\9):dir(rtl)::after {
128
128
  transform: rotate(-45deg);
129
129
  transform-origin: 100% 100%;
130
130
  }
131
- .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after {
131
+ .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after {
132
132
  background-color: var(--color-border-status-info-8upc6f, #0972d3);
133
133
  }
134
- .awsui_arrow-inner_1hpp3_ger0s_103:not(#\9) {
134
+ .awsui_arrow-inner_1hpp3_1q1bo_103:not(#\9) {
135
135
  inset-block-start: 2px;
136
136
  }
137
- .awsui_arrow-inner_1hpp3_ger0s_103:not(#\9)::after {
137
+ .awsui_arrow-inner_1hpp3_1q1bo_103:not(#\9)::after {
138
138
  border-start-start-radius: 1px;
139
139
  border-start-end-radius: 0;
140
140
  border-end-start-radius: 0;
141
141
  border-end-end-radius: 0;
142
142
  background-color: var(--color-background-status-info-mvnbre, #f2f8fd);
143
143
  }
144
- .awsui_arrow-position-right-top_1hpp3_ger0s_144 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_ger0s_144 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after {
144
+ .awsui_arrow-position-right-top_1hpp3_1q1bo_144 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after, .awsui_arrow-position-right-bottom_1hpp3_1q1bo_144 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after {
145
145
  box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
146
146
  }
147
- .awsui_arrow-position-left-top_1hpp3_ger0s_147 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_ger0s_147 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after {
147
+ .awsui_arrow-position-left-top_1hpp3_1q1bo_147 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after, .awsui_arrow-position-left-bottom_1hpp3_1q1bo_147 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after {
148
148
  box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
149
149
  }
150
- .awsui_arrow-position-top-center_1hpp3_ger0s_150 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_ger0s_150 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after {
150
+ .awsui_arrow-position-top-center_1hpp3_1q1bo_150 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after, .awsui_arrow-position-top-responsive_1hpp3_1q1bo_150 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after {
151
151
  box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
152
152
  }
153
- .awsui_arrow-position-bottom-center_1hpp3_ger0s_153 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_ger0s_153 > .awsui_arrow-outer_1hpp3_ger0s_103:not(#\9)::after {
153
+ .awsui_arrow-position-bottom-center_1hpp3_1q1bo_153 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after, .awsui_arrow-position-bottom-responsive_1hpp3_1q1bo_153 > .awsui_arrow-outer_1hpp3_1q1bo_103:not(#\9)::after {
154
154
  box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-8jp634, rgba(0, 7, 22, 0.12));
155
155
  }
156
156
 
@@ -158,37 +158,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
158
158
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
159
159
  SPDX-License-Identifier: Apache-2.0
160
160
  */
161
- .awsui_annotation_1hpp3_ger0s_161:not(#\9),
162
- .awsui_next-button_1hpp3_ger0s_162:not(#\9),
163
- .awsui_previous-button_1hpp3_ger0s_163:not(#\9),
164
- .awsui_finish-button_1hpp3_ger0s_164:not(#\9),
165
- .awsui_header_1hpp3_ger0s_165:not(#\9),
166
- .awsui_step-counter-content_1hpp3_ger0s_166:not(#\9),
167
- .awsui_content_1hpp3_ger0s_167:not(#\9) {
161
+ .awsui_annotation_1hpp3_1q1bo_161:not(#\9),
162
+ .awsui_next-button_1hpp3_1q1bo_162:not(#\9),
163
+ .awsui_previous-button_1hpp3_1q1bo_163:not(#\9),
164
+ .awsui_finish-button_1hpp3_1q1bo_164:not(#\9),
165
+ .awsui_header_1hpp3_1q1bo_165:not(#\9),
166
+ .awsui_step-counter-content_1hpp3_1q1bo_166:not(#\9),
167
+ .awsui_content_1hpp3_1q1bo_167:not(#\9) {
168
168
  /* used in test-utils */
169
169
  }
170
170
 
171
- .awsui_description_1hpp3_ger0s_171:not(#\9) {
171
+ .awsui_description_1hpp3_1q1bo_171:not(#\9) {
172
172
  overflow: hidden;
173
173
  margin-block-start: var(--space-xxs-p8yyaw, 4px);
174
174
  }
175
175
 
176
- .awsui_actionBar_1hpp3_ger0s_176:not(#\9) {
176
+ .awsui_actionBar_1hpp3_1q1bo_176:not(#\9) {
177
177
  display: flex;
178
178
  justify-content: space-between;
179
179
  align-items: center;
180
180
  position: relative;
181
181
  }
182
182
 
183
- .awsui_stepCounter_1hpp3_ger0s_183:not(#\9) {
183
+ .awsui_stepCounter_1hpp3_1q1bo_183:not(#\9) {
184
184
  margin-inline-end: 20px;
185
185
  }
186
186
 
187
- .awsui_divider_1hpp3_ger0s_187:not(#\9) {
187
+ .awsui_divider_1hpp3_1q1bo_187:not(#\9) {
188
188
  border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
189
189
  }
190
190
 
191
- .awsui_hotspot_1hpp3_ger0s_191:not(#\9) {
191
+ .awsui_hotspot_1hpp3_1q1bo_191:not(#\9) {
192
192
  border-collapse: separate;
193
193
  border-spacing: 0;
194
194
  box-sizing: border-box;
@@ -228,21 +228,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
228
228
  padding-block: 0;
229
229
  padding-inline: 0;
230
230
  cursor: pointer;
231
- scroll-margin: var(--awsui-content-scroll-margin-epuq3n, 40px 0 0 0);
231
+ scroll-margin: var(--awsui-content-scroll-margin-7t5ed6, 40px 0 0 0);
232
232
  inline-size: 16px;
233
233
  block-size: 16px;
234
234
  }
235
- .awsui_hotspot_1hpp3_ger0s_191:not(#\9):focus {
235
+ .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):focus {
236
236
  outline: none;
237
237
  }
238
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_ger0s_191:not(#\9):focus {
238
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):focus {
239
239
  position: relative;
240
240
  }
241
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_ger0s_191:not(#\9):focus {
241
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):focus {
242
242
  outline: 2px dotted transparent;
243
243
  outline-offset: calc(2px - 1px);
244
244
  }
245
- body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_ger0s_191:not(#\9):focus::before {
245
+ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):focus::before {
246
246
  content: " ";
247
247
  display: block;
248
248
  position: absolute;
@@ -256,13 +256,13 @@ body[data-awsui-focus-visible=true] .awsui_hotspot_1hpp3_ger0s_191:not(#\9):focu
256
256
  border-end-end-radius: var(--border-radius-control-circular-focus-ring-w07mub, 4px);
257
257
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
258
258
  }
259
- .awsui_hotspot_1hpp3_ger0s_191 > .awsui_icon_1hpp3_ger0s_258:not(#\9) {
259
+ .awsui_hotspot_1hpp3_1q1bo_191 > .awsui_icon_1hpp3_1q1bo_258:not(#\9) {
260
260
  position: relative;
261
261
  stroke: var(--color-text-link-default-latg1a, #0972d3);
262
262
  }
263
- .awsui_hotspot_1hpp3_ger0s_191:not(#\9):hover > .awsui_icon_1hpp3_ger0s_258 {
263
+ .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):hover > .awsui_icon_1hpp3_1q1bo_258 {
264
264
  stroke: var(--color-text-link-hover-8j6p14, #033160);
265
265
  }
266
- .awsui_hotspot_1hpp3_ger0s_191:not(#\9):active > .awsui_icon_1hpp3_ger0s_258 {
266
+ .awsui_hotspot_1hpp3_1q1bo_191:not(#\9):active > .awsui_icon_1hpp3_1q1bo_258 {
267
267
  stroke: var(--color-text-link-default-latg1a, #0972d3);
268
268
  }
@@ -2,29 +2,29 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "arrow": "awsui_arrow_1hpp3_ger0s_99",
6
- "arrow-outer": "awsui_arrow-outer_1hpp3_ger0s_103",
7
- "arrow-inner": "awsui_arrow-inner_1hpp3_ger0s_103",
8
- "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_ger0s_144",
9
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_ger0s_144",
10
- "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_ger0s_147",
11
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_ger0s_147",
12
- "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_ger0s_150",
13
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_ger0s_150",
14
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_ger0s_153",
15
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_ger0s_153",
16
- "annotation": "awsui_annotation_1hpp3_ger0s_161",
17
- "next-button": "awsui_next-button_1hpp3_ger0s_162",
18
- "previous-button": "awsui_previous-button_1hpp3_ger0s_163",
19
- "finish-button": "awsui_finish-button_1hpp3_ger0s_164",
20
- "header": "awsui_header_1hpp3_ger0s_165",
21
- "step-counter-content": "awsui_step-counter-content_1hpp3_ger0s_166",
22
- "content": "awsui_content_1hpp3_ger0s_167",
23
- "description": "awsui_description_1hpp3_ger0s_171",
24
- "actionBar": "awsui_actionBar_1hpp3_ger0s_176",
25
- "stepCounter": "awsui_stepCounter_1hpp3_ger0s_183",
26
- "divider": "awsui_divider_1hpp3_ger0s_187",
27
- "hotspot": "awsui_hotspot_1hpp3_ger0s_191",
28
- "icon": "awsui_icon_1hpp3_ger0s_258"
5
+ "arrow": "awsui_arrow_1hpp3_1q1bo_99",
6
+ "arrow-outer": "awsui_arrow-outer_1hpp3_1q1bo_103",
7
+ "arrow-inner": "awsui_arrow-inner_1hpp3_1q1bo_103",
8
+ "arrow-position-right-top": "awsui_arrow-position-right-top_1hpp3_1q1bo_144",
9
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_1hpp3_1q1bo_144",
10
+ "arrow-position-left-top": "awsui_arrow-position-left-top_1hpp3_1q1bo_147",
11
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_1hpp3_1q1bo_147",
12
+ "arrow-position-top-center": "awsui_arrow-position-top-center_1hpp3_1q1bo_150",
13
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_1hpp3_1q1bo_150",
14
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_1hpp3_1q1bo_153",
15
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_1hpp3_1q1bo_153",
16
+ "annotation": "awsui_annotation_1hpp3_1q1bo_161",
17
+ "next-button": "awsui_next-button_1hpp3_1q1bo_162",
18
+ "previous-button": "awsui_previous-button_1hpp3_1q1bo_163",
19
+ "finish-button": "awsui_finish-button_1hpp3_1q1bo_164",
20
+ "header": "awsui_header_1hpp3_1q1bo_165",
21
+ "step-counter-content": "awsui_step-counter-content_1hpp3_1q1bo_166",
22
+ "content": "awsui_content_1hpp3_1q1bo_167",
23
+ "description": "awsui_description_1hpp3_1q1bo_171",
24
+ "actionBar": "awsui_actionBar_1hpp3_1q1bo_176",
25
+ "stepCounter": "awsui_stepCounter_1hpp3_1q1bo_183",
26
+ "divider": "awsui_divider_1hpp3_1q1bo_187",
27
+ "hotspot": "awsui_hotspot_1hpp3_1q1bo_191",
28
+ "icon": "awsui_icon_1hpp3_1q1bo_258"
29
29
  };
30
30
 
@@ -16,4 +16,35 @@ export declare const AppLayoutImplementation: React.ForwardRefExoticComponent<Om
16
16
  inlineSize: number;
17
17
  };
18
18
  } & React.RefAttributes<AppLayoutProps.Ref>>;
19
+ export declare const createWidgetizedAppLayout: (Loader?: React.ForwardRefExoticComponent<Omit<AppLayoutProps, "headerSelector" | "footerSelector"> & {
20
+ contentType: AppLayoutProps.ContentType;
21
+ navigationOpen: boolean;
22
+ navigationWidth: number;
23
+ toolsWidth: number;
24
+ minContentWidth: number;
25
+ onNavigationChange: import("../internal/events").NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;
26
+ } & {
27
+ placement: {
28
+ insetBlockStart: number;
29
+ insetBlockEnd: number;
30
+ insetInlineStart: number;
31
+ insetInlineEnd: number;
32
+ inlineSize: number;
33
+ };
34
+ } & React.RefAttributes<AppLayoutProps.Ref>> | undefined) => React.ForwardRefExoticComponent<Omit<AppLayoutProps, "headerSelector" | "footerSelector"> & {
35
+ contentType: AppLayoutProps.ContentType;
36
+ navigationOpen: boolean;
37
+ navigationWidth: number;
38
+ toolsWidth: number;
39
+ minContentWidth: number;
40
+ onNavigationChange: import("../internal/events").NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;
41
+ } & {
42
+ placement: {
43
+ insetBlockStart: number;
44
+ insetBlockEnd: number;
45
+ insetInlineStart: number;
46
+ insetInlineEnd: number;
47
+ inlineSize: number;
48
+ };
49
+ } & React.RefAttributes<AppLayoutProps.Ref>>;
19
50
  //# sourceMappingURL=implementation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,cAAc,EAA8B,MAAM,cAAc,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;4CAKnC,CAAC"}
1
+ {"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,cAAc,EAA8B,MAAM,cAAc,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;4CAKnC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAIZ,CAAC"}
@@ -2,10 +2,12 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
5
+ import { createWidgetizedForwardRef } from '../internal/widgets';
5
6
  import ClassicAppLayout from './classic';
6
7
  import RefreshedAppLayout from './visual-refresh';
7
8
  export const AppLayoutImplementation = React.forwardRef((props, ref) => {
8
9
  const isRefresh = useVisualRefresh();
9
10
  return isRefresh ? React.createElement(RefreshedAppLayout, Object.assign({ ref: ref }, props)) : React.createElement(ClassicAppLayout, Object.assign({ ref: ref }, props));
10
11
  });
12
+ export const createWidgetizedAppLayout = createWidgetizedForwardRef(AppLayoutImplementation);
11
13
  //# sourceMappingURL=implementation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,gBAAgB,MAAM,WAAW,CAAC;AACzC,OAAO,kBAAkB,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CACrD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACb,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,kBAAkB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC,CAAC,CAAC,oBAAC,gBAAgB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AAC7G,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport ClassicAppLayout from './classic';\nimport RefreshedAppLayout from './visual-refresh';\nimport { AppLayoutProps, AppLayoutPropsWithDefaults } from './interfaces';\n\nexport const AppLayoutImplementation = React.forwardRef<AppLayoutProps.Ref, AppLayoutPropsWithDefaults>(\n (props, ref) => {\n const isRefresh = useVisualRefresh();\n return isRefresh ? <RefreshedAppLayout ref={ref} {...props} /> : <ClassicAppLayout ref={ref} {...props} />;\n }\n);\n"]}
1
+ {"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,gBAAgB,MAAM,WAAW,CAAC;AACzC,OAAO,kBAAkB,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CACrD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACb,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,kBAAkB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC,CAAC,CAAC,oBAAC,gBAAgB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AAC7G,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,0BAA0B,CAIjE,uBAAuB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { createWidgetizedForwardRef } from '../internal/widgets';\nimport ClassicAppLayout from './classic';\nimport RefreshedAppLayout from './visual-refresh';\nimport { AppLayoutProps, AppLayoutPropsWithDefaults } from './interfaces';\n\nexport const AppLayoutImplementation = React.forwardRef<AppLayoutProps.Ref, AppLayoutPropsWithDefaults>(\n (props, ref) => {\n const isRefresh = useVisualRefresh();\n return isRefresh ? <RefreshedAppLayout ref={ref} {...props} /> : <ClassicAppLayout ref={ref} {...props} />;\n }\n);\n\nexport const createWidgetizedAppLayout = createWidgetizedForwardRef<\n AppLayoutPropsWithDefaults,\n AppLayoutProps.Ref,\n typeof AppLayoutImplementation\n>(AppLayoutImplementation);\n"]}
@@ -145,6 +145,13 @@ export interface AppLayoutProps extends BaseComponentProps {
145
145
  * @visualrefresh
146
146
  */
147
147
  disableContentHeaderOverlap?: boolean;
148
+ /**
149
+ * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:
150
+ * * `default` - Does not apply any visual treatment.
151
+ * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant="high-contrast"` in ContentLayout.
152
+ * @visualrefresh
153
+ */
154
+ headerVariant?: 'default' | 'high-contrast';
148
155
  /**
149
156
  * Main content.
150
157
  */
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;IAEzC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAE9E;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IAC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AAE,MAAM,CAAC;QAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC;IAED,UAAiB,YAAY;QAC3B,IAAI,EAAE,OAAO,CAAC;KACf;IAED,UAAiB,sBAAsB;QACrC,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,qBAAqB;QACpC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC7B;IAGD,KAAY,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEnD,UAAiB,kBAAkB;QACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;CACF;AAED,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,IAAI,CAAC,cAAc,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,EACzD,aAAa,GAAG,iBAAiB,GAAG,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,oBAAoB,CAC/G,GAAG;IACF,SAAS,EAAE;QACT,eAAe,EAAE,MAAM,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;QACzB,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { IconProps } from '../icon/interfaces';\nimport { SomeRequired } from '../internal/types';\n\nexport interface AppLayoutProps extends BaseComponentProps {\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n \n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer. \n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n * \n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button.\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport namespace AppLayoutProps {\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { IconProps } from '../icon/interfaces';\nimport { SomeRequired } from '../internal/types';\n\nexport interface AppLayoutProps extends BaseComponentProps {\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n \n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer. \n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n * \n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button.\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:\n * * `default` - Does not apply any visual treatment.\n * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant=\"high-contrast\"` in ContentLayout.\n * @visualrefresh\n */\n headerVariant?: 'default' | 'high-contrast';\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport namespace AppLayoutProps {\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { createWidgetizedAppLayout } from './widget';
3
+ import { createWidgetizedAppLayout } from './implementation';
4
4
  export const AppLayoutInternal = createWidgetizedAppLayout();
5
5
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/app-layout/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,CAAC,MAAM,iBAAiB,GAAG,yBAAyB,EAAE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createWidgetizedAppLayout } from './widget';\n\nexport const AppLayoutInternal = createWidgetizedAppLayout();\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/app-layout/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,yBAAyB,EAAE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createWidgetizedAppLayout } from './implementation';\n\nexport const AppLayoutInternal = createWidgetizedAppLayout();\n"]}
@@ -1,8 +1,8 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "notifications": "awsui_notifications_1hmm4_1k57g_9",
5
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1k57g_10",
6
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1k57g_25"
4
+ "notifications": "awsui_notifications_1hmm4_kvr85_9",
5
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_kvr85_10",
6
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_kvr85_25"
7
7
  };
8
8
 
@@ -6,26 +6,26 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
- .awsui_notifications_1hmm4_1k57g_9:not(#\9),
10
- .awsui_notifications-sticky_1hmm4_1k57g_10:not(#\9) {
9
+ .awsui_notifications_1hmm4_kvr85_9:not(#\9),
10
+ .awsui_notifications-sticky_1hmm4_kvr85_10:not(#\9) {
11
11
  z-index: 850;
12
12
  }
13
13
 
14
- .awsui_notifications_1hmm4_1k57g_9:not(#\9) {
14
+ .awsui_notifications_1hmm4_kvr85_9:not(#\9) {
15
15
  /* This is necessary for the z-index to have effect */
16
16
  position: relative;
17
17
  }
18
18
 
19
- .awsui_notifications-sticky_1hmm4_1k57g_10:not(#\9) {
19
+ .awsui_notifications-sticky_1hmm4_kvr85_10:not(#\9) {
20
20
  inset-block-start: 0;
21
21
  position: sticky;
22
- --awsui-flashbar-sticky-bottom-margin-epuq3n: var(--space-xxl-cu2m1r, 32px);
22
+ --awsui-flashbar-sticky-bottom-margin-7t5ed6: var(--space-xxl-cu2m1r, 32px);
23
23
  }
24
24
 
25
- .awsui_no-content-paddings_1hmm4_1k57g_25:not(#\9) {
25
+ .awsui_no-content-paddings_1hmm4_kvr85_25:not(#\9) {
26
26
  /*
27
27
  When using the disableContentPaddings option, the Flashbar will use this custom property to add additional space
28
28
  when the notification bar is rendered, to prevent it from overlapping the content.
29
29
  */
30
- --awsui-stacked-notifications-bottom-margin-epuq3n: var(--space-scaled-l-0hpmd7, 20px);
30
+ --awsui-stacked-notifications-bottom-margin-7t5ed6: var(--space-scaled-l-0hpmd7, 20px);
31
31
  }
@@ -2,8 +2,8 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "notifications": "awsui_notifications_1hmm4_1k57g_9",
6
- "notifications-sticky": "awsui_notifications-sticky_1hmm4_1k57g_10",
7
- "no-content-paddings": "awsui_no-content-paddings_1hmm4_1k57g_25"
5
+ "notifications": "awsui_notifications_1hmm4_kvr85_9",
6
+ "notifications-sticky": "awsui_notifications-sticky_1hmm4_kvr85_10",
7
+ "no-content-paddings": "awsui_no-content-paddings_1hmm4_kvr85_25"
8
8
  };
9
9
 
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AppLayoutPropsWithDefaults } from '../interfaces';
3
- export declare function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, minContentWidth, disableContentPaddings, }: AppLayoutPropsWithDefaults): JSX.Element;
3
+ export declare function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, disableContentPaddings, }: AppLayoutPropsWithDefaults): JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,EAAE,0BAA0B,eAoB5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACvB,EAAE,0BAA0B,eAmB5B"}
@@ -2,9 +2,9 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import { SkeletonLayout } from './layout';
5
- export function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, minContentWidth, disableContentPaddings, }) {
5
+ export function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, disableContentPaddings, }) {
6
6
  // render nothing in the skeleton state
7
7
  const placeholder = React.createElement(React.Fragment, null);
8
- return (React.createElement(SkeletonLayout, { topBar: placeholder, notifications: notifications, contentHeader: contentHeader, content: content, navigation: !navigationHide && navigationOpen && navigation && placeholder, navigationWidth: navigationWidth, tools: !toolsHide && toolsOpen && tools && placeholder, toolsWidth: toolsWidth, placement: placement, contentType: contentType, maxContentWidth: maxContentWidth, minContentWidth: minContentWidth, disableContentPaddings: disableContentPaddings }));
8
+ return (React.createElement(SkeletonLayout, { topBar: placeholder, notifications: notifications, contentHeader: contentHeader, content: content, navigation: !navigationHide && navigationOpen && navigation && placeholder, navigationWidth: navigationWidth, tools: !toolsHide && toolsOpen && tools && placeholder, toolsWidth: toolsWidth, placement: placement, contentType: contentType, maxContentWidth: maxContentWidth, disableContentPaddings: disableContentPaddings }));
9
9
  }
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,eAAe,EACf,sBAAsB,GACK;IAC3B,uCAAuC;IACvC,MAAM,WAAW,GAAG,yCAAK,CAAC;IAC1B,OAAO,CACL,oBAAC,cAAc,IACb,MAAM,EAAE,WAAW,EACnB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,CAAC,cAAc,IAAI,cAAc,IAAI,UAAU,IAAI,WAAW,EAC1E,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,CAAC,SAAS,IAAI,SAAS,IAAI,KAAK,IAAI,WAAW,EACtD,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,EAChC,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport { SkeletonLayout } from './layout';\n\nexport function AppLayoutSkeleton({\n notifications,\n contentHeader,\n content,\n\n navigation,\n navigationHide,\n navigationOpen,\n navigationWidth,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n\n placement,\n contentType,\n maxContentWidth,\n minContentWidth,\n disableContentPaddings,\n}: AppLayoutPropsWithDefaults) {\n // render nothing in the skeleton state\n const placeholder = <></>;\n return (\n <SkeletonLayout\n topBar={placeholder}\n notifications={notifications}\n contentHeader={contentHeader}\n content={content}\n navigation={!navigationHide && navigationOpen && navigation && placeholder}\n navigationWidth={navigationWidth}\n tools={!toolsHide && toolsOpen && tools && placeholder}\n toolsWidth={toolsWidth}\n placement={placement}\n contentType={contentType}\n maxContentWidth={maxContentWidth}\n minContentWidth={minContentWidth}\n disableContentPaddings={disableContentPaddings}\n />\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACK;IAC3B,uCAAuC;IACvC,MAAM,WAAW,GAAG,yCAAK,CAAC;IAC1B,OAAO,CACL,oBAAC,cAAc,IACb,MAAM,EAAE,WAAW,EACnB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,CAAC,cAAc,IAAI,cAAc,IAAI,UAAU,IAAI,WAAW,EAC1E,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,CAAC,SAAS,IAAI,SAAS,IAAI,KAAK,IAAI,WAAW,EACtD,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport { SkeletonLayout } from './layout';\n\nexport function AppLayoutSkeleton({\n notifications,\n contentHeader,\n content,\n\n navigation,\n navigationHide,\n navigationOpen,\n navigationWidth,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n\n placement,\n contentType,\n maxContentWidth,\n disableContentPaddings,\n}: AppLayoutPropsWithDefaults) {\n // render nothing in the skeleton state\n const placeholder = <></>;\n return (\n <SkeletonLayout\n topBar={placeholder}\n notifications={notifications}\n contentHeader={contentHeader}\n content={content}\n navigation={!navigationHide && navigationOpen && navigation && placeholder}\n navigationWidth={navigationWidth}\n tools={!toolsHide && toolsOpen && tools && placeholder}\n toolsWidth={toolsWidth}\n placement={placement}\n contentType={contentType}\n maxContentWidth={maxContentWidth}\n disableContentPaddings={disableContentPaddings}\n />\n );\n}\n"]}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { AppLayoutPropsWithDefaults } from '../interfaces';
3
- interface SkeletonLayoutProps extends Pick<AppLayoutPropsWithDefaults, 'notifications' | 'contentHeader' | 'content' | 'contentType' | 'minContentWidth' | 'maxContentWidth' | 'disableContentPaddings' | 'navigation' | 'navigationWidth' | 'tools' | 'toolsWidth' | 'placement'> {
3
+ interface SkeletonLayoutProps extends Pick<AppLayoutPropsWithDefaults, 'notifications' | 'contentHeader' | 'content' | 'contentType' | 'maxContentWidth' | 'disableContentPaddings' | 'navigation' | 'navigationWidth' | 'tools' | 'toolsWidth' | 'placement'> {
4
4
  topBar?: React.ReactNode;
5
5
  }
6
- export declare function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, minContentWidth, disableContentPaddings, }: SkeletonLayoutProps): JSX.Element;
6
+ export declare function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, disableContentPaddings, }: SkeletonLayoutProps): JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAO3D,UAAU,mBACR,SAAQ,IAAI,CACV,0BAA0B,EACxB,eAAe,GACf,eAAe,GACf,SAAS,GACT,aAAa,GACb,iBAAiB,GACjB,iBAAiB,GACjB,wBAAwB,GACxB,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,YAAY,GACZ,WAAW,CACd;IACD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,eAAe,EACf,KAAK,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,EAAE,mBAAmB,eAkCrB"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAO3D,UAAU,mBACR,SAAQ,IAAI,CACV,0BAA0B,EACxB,eAAe,GACf,eAAe,GACf,SAAS,GACT,aAAa,GACb,iBAAiB,GACjB,wBAAwB,GACxB,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,YAAY,GACZ,WAAW,CACd;IACD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,eAAe,EACf,KAAK,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACvB,EAAE,mBAAmB,eA2BrB"}
@@ -5,7 +5,7 @@ import styles from './styles.css.js';
5
5
  import customCssProps from '../../internal/generated/custom-css-properties';
6
6
  import clsx from 'clsx';
7
7
  const contentTypeCustomWidths = ['dashboard', 'cards', 'table'];
8
- export function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, minContentWidth, disableContentPaddings, }) {
8
+ export function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, disableContentPaddings, }) {
9
9
  const isMaxWidth = maxContentWidth === Number.MAX_VALUE || maxContentWidth === Number.MAX_SAFE_INTEGER;
10
10
  return (React.createElement("div", { className: clsx(styles.root, {
11
11
  [styles['has-adaptive-widths-default']]: !contentTypeCustomWidths.includes(contentType),
@@ -13,15 +13,16 @@ export function SkeletonLayout({ notifications, contentHeader, content, navigati
13
13
  }), style: {
14
14
  minBlockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,
15
15
  [customCssProps.maxContentWidth]: isMaxWidth ? '100%' : maxContentWidth ? `${maxContentWidth}px` : '',
16
- [customCssProps.minContentWidth]: `${minContentWidth}px`,
16
+ [customCssProps.navigationWidth]: `${navigationWidth}px`,
17
+ [customCssProps.toolsWidth]: `${toolsWidth}px`,
17
18
  } },
18
19
  React.createElement("section", { className: styles['top-bar'] }, topBar),
19
- navigation && (React.createElement("div", { className: styles.navigation, style: { inlineSize: navigationWidth } }, navigation)),
20
+ navigation && React.createElement("div", { className: styles.navigation }, navigation),
20
21
  React.createElement("main", { className: styles['main-landmark'] },
21
22
  notifications && React.createElement("div", { className: styles.notifications }, notifications),
22
23
  React.createElement("div", { className: clsx(styles.main, { [styles['main-disable-paddings']]: disableContentPaddings }) },
23
24
  contentHeader && React.createElement("div", { className: styles['content-header'] }, contentHeader),
24
25
  React.createElement("div", null, content))),
25
- tools && (React.createElement("div", { className: styles.tools, style: { inlineSize: toolsWidth } }, tools))));
26
+ tools && React.createElement("div", { className: styles.tools }, tools)));
26
27
  }
27
28
  //# sourceMappingURL=layout.js.map