@cloudscape-design/components-themeable 3.0.306 → 3.0.308

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 (401) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/visual-refresh/background.scss +16 -32
  3. package/lib/internal/scss/app-layout/visual-refresh/breadcrumbs.scss +23 -0
  4. package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +1 -1
  5. package/lib/internal/scss/app-layout/visual-refresh/header.scss +1 -48
  6. package/lib/internal/scss/app-layout/visual-refresh/layout.scss +189 -78
  7. package/lib/internal/scss/app-layout/visual-refresh/main.scss +1 -92
  8. package/lib/internal/scss/app-layout/visual-refresh/mobile-toolbar.scss +40 -0
  9. package/lib/internal/scss/app-layout/visual-refresh/navigation.scss +2 -2
  10. package/lib/internal/scss/app-layout/visual-refresh/notifications.scss +3 -38
  11. package/lib/internal/scss/app-layout/visual-refresh/split-panel.scss +1 -1
  12. package/lib/internal/scss/app-layout/visual-refresh/styles.scss +2 -1
  13. package/lib/internal/scss/app-layout/visual-refresh/tools.scss +3 -4
  14. package/lib/internal/scss/cards/styles.scss +2 -2
  15. package/lib/internal/scss/content-layout/styles.scss +0 -10
  16. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +37 -32
  17. package/lib/internal/scss/table/styles.scss +4 -0
  18. package/lib/internal/scss/wizard/styles.scss +2 -5
  19. package/lib/internal/template/alert/interfaces.d.ts +1 -0
  20. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  21. package/lib/internal/template/alert/interfaces.js.map +1 -1
  22. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  23. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +30 -30
  24. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  25. package/lib/internal/template/app-layout/interfaces.d.ts +1 -0
  26. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  27. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  28. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  29. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  30. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  31. package/lib/internal/template/app-layout/visual-refresh/background.d.ts +1 -5
  32. package/lib/internal/template/app-layout/visual-refresh/background.d.ts.map +1 -1
  33. package/lib/internal/template/app-layout/visual-refresh/background.js +8 -13
  34. package/lib/internal/template/app-layout/visual-refresh/background.js.map +1 -1
  35. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.d.ts +3 -0
  36. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -0
  37. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.js +17 -0
  38. package/lib/internal/template/app-layout/visual-refresh/breadcrumbs.js.map +1 -0
  39. package/lib/internal/template/app-layout/visual-refresh/context.js +3 -3
  40. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  41. package/lib/internal/template/app-layout/visual-refresh/header.d.ts +0 -4
  42. package/lib/internal/template/app-layout/visual-refresh/header.d.ts.map +1 -1
  43. package/lib/internal/template/app-layout/visual-refresh/header.js +0 -4
  44. package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
  45. package/lib/internal/template/app-layout/visual-refresh/index.d.ts +0 -8
  46. package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
  47. package/lib/internal/template/app-layout/visual-refresh/index.js +4 -13
  48. package/lib/internal/template/app-layout/visual-refresh/index.js.map +1 -1
  49. package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
  50. package/lib/internal/template/app-layout/visual-refresh/layout.js +31 -19
  51. package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
  52. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  53. package/lib/internal/template/app-layout/visual-refresh/main.js +2 -6
  54. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  55. package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.d.ts +3 -0
  56. package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -0
  57. package/lib/internal/template/app-layout/visual-refresh/{app-bar.js → mobile-toolbar.js} +9 -18
  58. package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.js.map +1 -0
  59. package/lib/internal/template/app-layout/visual-refresh/navigation.js +1 -1
  60. package/lib/internal/template/app-layout/visual-refresh/navigation.js.map +1 -1
  61. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts +0 -4
  62. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  63. package/lib/internal/template/app-layout/visual-refresh/notifications.js +4 -9
  64. package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
  65. package/lib/internal/template/app-layout/visual-refresh/split-panel.js +1 -1
  66. package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
  67. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +68 -72
  68. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +400 -576
  69. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +68 -72
  70. package/lib/internal/template/attribute-editor/interfaces.d.ts +2 -1
  71. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  72. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  73. package/lib/internal/template/attribute-editor/row.d.ts +1 -1
  74. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  75. package/lib/internal/template/attribute-editor/row.js +3 -1
  76. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  77. package/lib/internal/template/autosuggest/autosuggest-option.d.ts +1 -1
  78. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  79. package/lib/internal/template/autosuggest/autosuggest-option.js +3 -1
  80. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  81. package/lib/internal/template/autosuggest/interfaces.d.ts +3 -1
  82. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  83. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  84. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  85. package/lib/internal/template/autosuggest/internal.js +4 -0
  86. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  87. package/lib/internal/template/autosuggest/plain-list.d.ts +1 -1
  88. package/lib/internal/template/autosuggest/plain-list.d.ts.map +1 -1
  89. package/lib/internal/template/autosuggest/plain-list.js.map +1 -1
  90. package/lib/internal/template/breadcrumb-group/interfaces.d.ts +1 -0
  91. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  92. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  93. package/lib/internal/template/calendar/interfaces.d.ts +3 -0
  94. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  95. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  96. package/lib/internal/template/cards/interfaces.d.ts +1 -0
  97. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  98. package/lib/internal/template/cards/interfaces.js.map +1 -1
  99. package/lib/internal/template/cards/styles.css.js +37 -37
  100. package/lib/internal/template/cards/styles.scoped.css +53 -53
  101. package/lib/internal/template/cards/styles.selectors.js +37 -37
  102. package/lib/internal/template/code-editor/interfaces.d.ts +1 -0
  103. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  104. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  105. package/lib/internal/template/collection-preferences/content-display/index.d.ts.map +1 -1
  106. package/lib/internal/template/collection-preferences/content-display/index.js +14 -9
  107. package/lib/internal/template/collection-preferences/content-display/index.js.map +1 -1
  108. package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
  109. package/lib/internal/template/collection-preferences/index.js +6 -4
  110. package/lib/internal/template/collection-preferences/index.js.map +1 -1
  111. package/lib/internal/template/collection-preferences/interfaces.d.ts +21 -12
  112. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  113. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  114. package/lib/internal/template/collection-preferences/utils.d.ts +1 -1
  115. package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
  116. package/lib/internal/template/collection-preferences/utils.js +19 -6
  117. package/lib/internal/template/collection-preferences/utils.js.map +1 -1
  118. package/lib/internal/template/content-layout/internal.d.ts.map +1 -1
  119. package/lib/internal/template/content-layout/internal.js +1 -3
  120. package/lib/internal/template/content-layout/internal.js.map +1 -1
  121. package/lib/internal/template/content-layout/styles.css.js +6 -7
  122. package/lib/internal/template/content-layout/styles.scoped.css +9 -19
  123. package/lib/internal/template/content-layout/styles.selectors.js +6 -7
  124. package/lib/internal/template/date-range-picker/calendar/grids/grid.d.ts +1 -1
  125. package/lib/internal/template/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  126. package/lib/internal/template/date-range-picker/calendar/grids/grid.js.map +1 -1
  127. package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts +1 -1
  128. package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  129. package/lib/internal/template/date-range-picker/calendar/grids/index.js.map +1 -1
  130. package/lib/internal/template/date-range-picker/calendar/header/header-button.d.ts +1 -1
  131. package/lib/internal/template/date-range-picker/calendar/header/header-button.d.ts.map +1 -1
  132. package/lib/internal/template/date-range-picker/calendar/header/header-button.js.map +1 -1
  133. package/lib/internal/template/date-range-picker/calendar/header/index.d.ts +2 -2
  134. package/lib/internal/template/date-range-picker/calendar/header/index.d.ts.map +1 -1
  135. package/lib/internal/template/date-range-picker/calendar/header/index.js.map +1 -1
  136. package/lib/internal/template/date-range-picker/calendar/index.d.ts +1 -1
  137. package/lib/internal/template/date-range-picker/calendar/index.d.ts.map +1 -1
  138. package/lib/internal/template/date-range-picker/calendar/index.js +11 -8
  139. package/lib/internal/template/date-range-picker/calendar/index.js.map +1 -1
  140. package/lib/internal/template/date-range-picker/calendar/range-inputs.d.ts +1 -1
  141. package/lib/internal/template/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  142. package/lib/internal/template/date-range-picker/calendar/range-inputs.js +7 -5
  143. package/lib/internal/template/date-range-picker/calendar/range-inputs.js.map +1 -1
  144. package/lib/internal/template/date-range-picker/dropdown.d.ts +2 -1
  145. package/lib/internal/template/date-range-picker/dropdown.d.ts.map +1 -1
  146. package/lib/internal/template/date-range-picker/dropdown.js +7 -5
  147. package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
  148. package/lib/internal/template/date-range-picker/index.d.ts.map +1 -1
  149. package/lib/internal/template/date-range-picker/index.js +13 -4
  150. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  151. package/lib/internal/template/date-range-picker/interfaces.d.ts +22 -21
  152. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  153. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  154. package/lib/internal/template/date-range-picker/mode-switcher.d.ts +1 -1
  155. package/lib/internal/template/date-range-picker/mode-switcher.d.ts.map +1 -1
  156. package/lib/internal/template/date-range-picker/mode-switcher.js +4 -2
  157. package/lib/internal/template/date-range-picker/mode-switcher.js.map +1 -1
  158. package/lib/internal/template/date-range-picker/relative-range/index.d.ts +1 -1
  159. package/lib/internal/template/date-range-picker/relative-range/index.d.ts.map +1 -1
  160. package/lib/internal/template/date-range-picker/relative-range/index.js +14 -10
  161. package/lib/internal/template/date-range-picker/relative-range/index.js.map +1 -1
  162. package/lib/internal/template/expandable-section/interfaces.d.ts +1 -1
  163. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  164. package/lib/internal/template/flashbar/interfaces.d.ts +1 -0
  165. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  166. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  167. package/lib/internal/template/flashbar/styles.css.js +45 -45
  168. package/lib/internal/template/flashbar/styles.scoped.css +169 -169
  169. package/lib/internal/template/flashbar/styles.selectors.js +45 -45
  170. package/lib/internal/template/form/interfaces.d.ts +1 -0
  171. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  172. package/lib/internal/template/form/interfaces.js.map +1 -1
  173. package/lib/internal/template/form-field/interfaces.d.ts +1 -0
  174. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  175. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  176. package/lib/internal/template/help-panel/interfaces.d.ts +1 -0
  177. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  178. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  179. package/lib/internal/template/i18n/context.d.ts +20 -0
  180. package/lib/internal/template/i18n/context.d.ts.map +1 -0
  181. package/lib/internal/template/i18n/context.js +17 -0
  182. package/lib/internal/template/i18n/context.js.map +1 -0
  183. package/lib/internal/template/i18n/index.d.ts +2 -0
  184. package/lib/internal/template/i18n/index.d.ts.map +1 -0
  185. package/lib/internal/template/i18n/index.js +4 -0
  186. package/lib/internal/template/i18n/index.js.map +1 -0
  187. package/lib/internal/template/i18n/messages/all.all.d.ts +3 -0
  188. package/lib/internal/template/i18n/messages/all.all.js +5473 -0
  189. package/lib/internal/template/i18n/messages/all.all.json +5518 -0
  190. package/lib/internal/template/i18n/messages/all.de.d.ts +3 -0
  191. package/lib/internal/template/i18n/messages/all.de.js +446 -0
  192. package/lib/internal/template/i18n/messages/all.de.json +454 -0
  193. package/lib/internal/template/i18n/messages/all.en-GB.d.ts +3 -0
  194. package/lib/internal/template/i18n/messages/all.en-GB.js +436 -0
  195. package/lib/internal/template/i18n/messages/all.en-GB.json +439 -0
  196. package/lib/internal/template/i18n/messages/all.en.d.ts +3 -0
  197. package/lib/internal/template/i18n/messages/all.en.js +722 -0
  198. package/lib/internal/template/i18n/messages/all.en.json +721 -0
  199. package/lib/internal/template/i18n/messages/all.es.d.ts +3 -0
  200. package/lib/internal/template/i18n/messages/all.es.js +437 -0
  201. package/lib/internal/template/i18n/messages/all.es.json +439 -0
  202. package/lib/internal/template/i18n/messages/all.fr.d.ts +3 -0
  203. package/lib/internal/template/i18n/messages/all.fr.js +451 -0
  204. package/lib/internal/template/i18n/messages/all.fr.json +452 -0
  205. package/lib/internal/template/i18n/messages/all.id.d.ts +3 -0
  206. package/lib/internal/template/i18n/messages/all.id.js +427 -0
  207. package/lib/internal/template/i18n/messages/all.id.json +435 -0
  208. package/lib/internal/template/i18n/messages/all.it.d.ts +3 -0
  209. package/lib/internal/template/i18n/messages/all.it.js +437 -0
  210. package/lib/internal/template/i18n/messages/all.it.json +441 -0
  211. package/lib/internal/template/i18n/messages/all.ja.d.ts +3 -0
  212. package/lib/internal/template/i18n/messages/all.ja.js +441 -0
  213. package/lib/internal/template/i18n/messages/all.ja.json +445 -0
  214. package/lib/internal/template/i18n/messages/all.ko.d.ts +3 -0
  215. package/lib/internal/template/i18n/messages/all.ko.js +419 -0
  216. package/lib/internal/template/i18n/messages/all.ko.json +426 -0
  217. package/lib/internal/template/i18n/messages/all.pt-BR.d.ts +3 -0
  218. package/lib/internal/template/i18n/messages/all.pt-BR.js +444 -0
  219. package/lib/internal/template/i18n/messages/all.pt-BR.json +443 -0
  220. package/lib/internal/template/i18n/messages/all.zh-CN.d.ts +3 -0
  221. package/lib/internal/template/i18n/messages/all.zh-CN.js +429 -0
  222. package/lib/internal/template/i18n/messages/all.zh-CN.json +434 -0
  223. package/lib/internal/template/i18n/messages/all.zh-TW.d.ts +3 -0
  224. package/lib/internal/template/i18n/messages/all.zh-TW.js +428 -0
  225. package/lib/internal/template/i18n/messages/all.zh-TW.json +433 -0
  226. package/lib/internal/template/i18n/provider.d.ts +20 -0
  227. package/lib/internal/template/i18n/provider.d.ts.map +1 -0
  228. package/lib/internal/template/i18n/provider.js +105 -0
  229. package/lib/internal/template/i18n/provider.js.map +1 -0
  230. package/lib/internal/template/i18n/testing.d.ts +8 -0
  231. package/lib/internal/template/i18n/testing.d.ts.map +1 -0
  232. package/lib/internal/template/i18n/testing.js +8 -0
  233. package/lib/internal/template/i18n/testing.js.map +1 -0
  234. package/lib/internal/template/input/interfaces.d.ts +1 -0
  235. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  236. package/lib/internal/template/input/interfaces.js.map +1 -1
  237. package/lib/internal/template/internal/base-component/styles.scoped.css +0 -2
  238. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts +3 -0
  239. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  240. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +1 -1
  241. package/lib/internal/template/internal/environment.js +1 -1
  242. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  243. package/lib/internal/template/internal/generated/custom-css-properties/index.js +37 -32
  244. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  245. package/lib/internal/template/internal/i18n/context.d.ts +1 -19
  246. package/lib/internal/template/internal/i18n/context.d.ts.map +1 -1
  247. package/lib/internal/template/internal/i18n/context.js +1 -14
  248. package/lib/internal/template/internal/i18n/context.js.map +1 -1
  249. package/lib/internal/template/internal/i18n/index.d.ts +1 -1
  250. package/lib/internal/template/internal/i18n/index.js +1 -1
  251. package/lib/internal/template/internal/i18n/index.js.map +1 -1
  252. package/lib/internal/template/internal/i18n/messages/all.all.js +3541 -30
  253. package/lib/internal/template/internal/i18n/messages/all.all.json +3599 -52
  254. package/lib/internal/template/internal/i18n/messages/all.de.js +280 -1
  255. package/lib/internal/template/internal/i18n/messages/all.de.json +290 -3
  256. package/lib/internal/template/internal/i18n/messages/all.en-GB.js +270 -1
  257. package/lib/internal/template/internal/i18n/messages/all.en-GB.json +275 -3
  258. package/lib/internal/template/internal/i18n/messages/all.en.js +556 -1
  259. package/lib/internal/template/internal/i18n/messages/all.en.json +558 -4
  260. package/lib/internal/template/internal/i18n/messages/all.es.js +271 -1
  261. package/lib/internal/template/internal/i18n/messages/all.es.json +275 -3
  262. package/lib/internal/template/internal/i18n/messages/all.fr.js +289 -5
  263. package/lib/internal/template/internal/i18n/messages/all.fr.json +292 -7
  264. package/lib/internal/template/internal/i18n/messages/all.id.js +261 -1
  265. package/lib/internal/template/internal/i18n/messages/all.id.json +271 -3
  266. package/lib/internal/template/internal/i18n/messages/all.it.js +271 -1
  267. package/lib/internal/template/internal/i18n/messages/all.it.json +277 -3
  268. package/lib/internal/template/internal/i18n/messages/all.ja.js +267 -1
  269. package/lib/internal/template/internal/i18n/messages/all.ja.json +273 -3
  270. package/lib/internal/template/internal/i18n/messages/all.ko.js +257 -2
  271. package/lib/internal/template/internal/i18n/messages/all.ko.json +263 -4
  272. package/lib/internal/template/internal/i18n/messages/all.pt-BR.js +280 -3
  273. package/lib/internal/template/internal/i18n/messages/all.pt-BR.json +281 -5
  274. package/lib/internal/template/internal/i18n/messages/all.zh-CN.js +272 -9
  275. package/lib/internal/template/internal/i18n/messages/all.zh-CN.json +276 -11
  276. package/lib/internal/template/internal/i18n/messages/all.zh-TW.js +264 -1
  277. package/lib/internal/template/internal/i18n/messages/all.zh-TW.json +268 -3
  278. package/lib/internal/template/internal/i18n/provider.d.ts +1 -19
  279. package/lib/internal/template/internal/i18n/provider.d.ts.map +1 -1
  280. package/lib/internal/template/internal/i18n/provider.js +1 -102
  281. package/lib/internal/template/internal/i18n/provider.js.map +1 -1
  282. package/lib/internal/template/internal/i18n/testing.d.ts +1 -7
  283. package/lib/internal/template/internal/i18n/testing.d.ts.map +1 -1
  284. package/lib/internal/template/internal/i18n/testing.js +1 -5
  285. package/lib/internal/template/internal/i18n/testing.js.map +1 -1
  286. package/lib/internal/template/link/interfaces.d.ts +1 -0
  287. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  288. package/lib/internal/template/link/interfaces.js.map +1 -1
  289. package/lib/internal/template/modal/interfaces.d.ts +1 -0
  290. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  291. package/lib/internal/template/modal/interfaces.js.map +1 -1
  292. package/lib/internal/template/multiselect/interfaces.d.ts +1 -0
  293. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  294. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  295. package/lib/internal/template/package.json +27 -0
  296. package/lib/internal/template/pagination/interfaces.d.ts +1 -0
  297. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  298. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  299. package/lib/internal/template/property-filter/interfaces.d.ts +1 -0
  300. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  301. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  302. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +48 -47
  303. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  304. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  305. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  306. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js +11 -9
  307. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  308. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.d.ts +2 -1
  309. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.d.ts.map +1 -1
  310. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.js +2 -2
  311. package/lib/internal/template/s3-resource-selector/s3-in-context/validation.js.map +1 -1
  312. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.d.ts +2 -1
  313. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.d.ts.map +1 -1
  314. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js +7 -7
  315. package/lib/internal/template/s3-resource-selector/s3-modal/basic-table.js.map +1 -1
  316. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.d.ts.map +1 -1
  317. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.js +10 -7
  318. package/lib/internal/template/s3-resource-selector/s3-modal/buckets-table.js.map +1 -1
  319. package/lib/internal/template/s3-resource-selector/s3-modal/index.d.ts.map +1 -1
  320. package/lib/internal/template/s3-resource-selector/s3-modal/index.js +8 -6
  321. package/lib/internal/template/s3-resource-selector/s3-modal/index.js.map +1 -1
  322. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.d.ts.map +1 -1
  323. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.js +10 -7
  324. package/lib/internal/template/s3-resource-selector/s3-modal/objects-table.js.map +1 -1
  325. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.d.ts +2 -1
  326. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.d.ts.map +1 -1
  327. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.js +5 -9
  328. package/lib/internal/template/s3-resource-selector/s3-modal/table-utils.js.map +1 -1
  329. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.d.ts.map +1 -1
  330. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.js +10 -7
  331. package/lib/internal/template/s3-resource-selector/s3-modal/versions-table.js.map +1 -1
  332. package/lib/internal/template/select/interfaces.d.ts +2 -0
  333. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  334. package/lib/internal/template/select/interfaces.js.map +1 -1
  335. package/lib/internal/template/split-panel/index.d.ts.map +1 -1
  336. package/lib/internal/template/split-panel/index.js +16 -13
  337. package/lib/internal/template/split-panel/index.js.map +1 -1
  338. package/lib/internal/template/split-panel/interfaces.d.ts +4 -3
  339. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  340. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  341. package/lib/internal/template/split-panel/side.d.ts +3 -3
  342. package/lib/internal/template/split-panel/side.d.ts.map +1 -1
  343. package/lib/internal/template/split-panel/side.js +2 -2
  344. package/lib/internal/template/split-panel/side.js.map +1 -1
  345. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  346. package/lib/internal/template/table/body-cell/index.js +3 -1
  347. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  348. package/lib/internal/template/table/body-cell/inline-editor.d.ts.map +1 -1
  349. package/lib/internal/template/table/body-cell/inline-editor.js +5 -1
  350. package/lib/internal/template/table/body-cell/inline-editor.js.map +1 -1
  351. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  352. package/lib/internal/template/table/header-cell/index.js +3 -1
  353. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  354. package/lib/internal/template/table/interfaces.d.ts +2 -0
  355. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  356. package/lib/internal/template/table/interfaces.js.map +1 -1
  357. package/lib/internal/template/table/styles.css.js +36 -35
  358. package/lib/internal/template/table/styles.scoped.css +46 -43
  359. package/lib/internal/template/table/styles.selectors.js +36 -35
  360. package/lib/internal/template/tabs/interfaces.d.ts +1 -0
  361. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  362. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  363. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  364. package/lib/internal/template/tag-editor/index.js +19 -16
  365. package/lib/internal/template/tag-editor/index.js.map +1 -1
  366. package/lib/internal/template/tag-editor/interfaces.d.ts +33 -32
  367. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  368. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  369. package/lib/internal/template/tag-editor/internal.d.ts +6 -6
  370. package/lib/internal/template/tag-editor/internal.d.ts.map +1 -1
  371. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  372. package/lib/internal/template/tag-editor/validation.d.ts +2 -1
  373. package/lib/internal/template/tag-editor/validation.d.ts.map +1 -1
  374. package/lib/internal/template/tag-editor/validation.js +8 -8
  375. package/lib/internal/template/tag-editor/validation.js.map +1 -1
  376. package/lib/internal/template/token-group/interfaces.d.ts +1 -0
  377. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  378. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  379. package/lib/internal/template/top-navigation/interfaces.d.ts +4 -3
  380. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  381. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  382. package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
  383. package/lib/internal/template/top-navigation/internal.js +6 -4
  384. package/lib/internal/template/top-navigation/internal.js.map +1 -1
  385. package/lib/internal/template/top-navigation/parts/overflow-menu/index.d.ts.map +1 -1
  386. package/lib/internal/template/top-navigation/parts/overflow-menu/index.js +6 -2
  387. package/lib/internal/template/top-navigation/parts/overflow-menu/index.js.map +1 -1
  388. package/lib/internal/template/wizard/interfaces.d.ts +1 -0
  389. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  390. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  391. package/lib/internal/template/wizard/styles.css.js +31 -32
  392. package/lib/internal/template/wizard/styles.scoped.css +64 -67
  393. package/lib/internal/template/wizard/styles.selectors.js +31 -32
  394. package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
  395. package/lib/internal/template/wizard/wizard-form.js +1 -1
  396. package/lib/internal/template/wizard/wizard-form.js.map +1 -1
  397. package/package.json +1 -1
  398. package/lib/internal/scss/app-layout/visual-refresh/app-bar.scss +0 -145
  399. package/lib/internal/template/app-layout/visual-refresh/app-bar.d.ts +0 -7
  400. package/lib/internal/template/app-layout/visual-refresh/app-bar.d.ts.map +0 -1
  401. package/lib/internal/template/app-layout/visual-refresh/app-bar.js.map +0 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "8172184cd173668915496435ec2a2a60b60531d2"
2
+ "commit": "e43ea9a2e752358541497697df1da0748a06285a"
3
3
  }
@@ -9,45 +9,29 @@
9
9
  div.background {
10
10
  display: contents;
11
11
 
12
- > .notifications-appbar-header {
12
+ > .scrolling-background {
13
13
  background-color: awsui.$color-background-layout-main;
14
- grid-column: 1 / span 5;
15
- grid-row: 1 / span 3;
16
14
  color: awsui.$color-text-body-default;
17
-
18
- /*
19
- The cards and table content types have a sticky dark header that is
20
- offset beneath the sticky notifications if they exist. If the background
21
- is not sticky then it will scroll out of the viewport leaving a white space
22
- behind the notifications above the content dark header.
23
- */
24
- @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
25
- &.has-sticky-background.has-notifications-content.sticky-notifications {
26
- position: sticky;
27
- top: var(#{custom-props.$offsetTop});
28
- z-index: 799;
29
- }
30
- }
15
+ grid-column: 1 / span 5;
16
+ grid-row: 1 / 10;
31
17
  }
32
18
 
33
- > .overlap {
19
+ > .sticky-background {
34
20
  background-color: awsui.$color-background-layout-main;
35
21
  grid-column: 1 / span 5;
36
- grid-row: 4;
37
- color: awsui.$color-text-body-default;
22
+ grid-row: 1 / 10;
23
+ position: sticky;
24
+ top: var(#{custom-props.$headerHeight});
25
+ z-index: 799;
26
+
27
+ &:not(.has-sticky-notifications) {
28
+ height: calc(#{awsui.$space-scaled-s} + var(#{custom-props.$overlapHeight}));
29
+ }
38
30
 
39
- /*
40
- The cards and table content types can have sticky header content that
41
- will retain position on viewport scroll. The overlap background needs to
42
- be sticky in desktop viewports to prevent light background gutters with
43
- the high contrast header background only in the content area.
44
- */
45
- @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
46
- &.has-sticky-background {
47
- position: sticky;
48
- top: var(#{custom-props.$offsetTopWithNotifications});
49
- z-index: 799;
50
- }
31
+ &.has-sticky-notifications {
32
+ height: calc(
33
+ var(#{custom-props.$notificationsGap}) + var(#{custom-props.$notificationsHeight}) + #{awsui.$space-s} + var(#{custom-props.$overlapHeight})
34
+ );
51
35
  }
52
36
  }
53
37
  }
@@ -0,0 +1,23 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ @use '../../internal/styles/' as styles;
7
+ @use '../../internal/styles/tokens' as awsui;
8
+ @use '../../internal/generated/custom-css-properties/index.scss' as custom-props;
9
+
10
+ .breadcrumbs {
11
+ background-color: awsui.$color-background-layout-main;
12
+ grid-area: breadcrumbs;
13
+
14
+ /*
15
+ If a child component tells the AppLayout to have a sticky
16
+ background (typically because of a stickyHeader with a
17
+ full-page variant) the z-index of the breadcrumbs needs to
18
+ be lifted so it doesn't render behind the background element.
19
+ */
20
+ &.has-sticky-background {
21
+ z-index: 799;
22
+ }
23
+ }
@@ -11,7 +11,7 @@
11
11
  background-color: transparent;
12
12
  display: flex;
13
13
  grid-column: 5;
14
- grid-row: 1 / span 5;
14
+ grid-row: 1 / span 10;
15
15
  height: var(#{custom-props.$contentHeight});
16
16
  pointer-events: none;
17
17
  position: sticky;
@@ -3,53 +3,6 @@
3
3
  SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
- @use '../../internal/styles/' as styles;
7
- @use '../../internal/styles/tokens' as awsui;
8
-
9
6
  header.content {
10
- grid-column: 3;
11
- grid-row: 3;
12
- padding-bottom: awsui.$space-content-header-padding-bottom;
13
-
14
- @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
15
- /*
16
- If Notifications exist and Breadcrumbs do not then Notifications
17
- is the previous adjacent sibling to the Header. Add minimal top padding
18
- in addition to the bottom padding on the Notifications.
19
- */
20
- &.has-notifications-content:not(.has-breadcrumbs) {
21
- padding-top: awsui.$space-scaled-xs;
22
- }
23
-
24
- /*
25
- If Breadcrumbs exists it is necessarily the previous adjacent
26
- sibling and the Header should have no padding. Add minimal top
27
- padding for vertical space between the Breadcrumbs and Header.
28
- */
29
- &.has-breadcrumbs {
30
- padding-top: awsui.$space-xxs;
31
- }
32
-
33
- /*
34
- If Notifications and Breadcrumbs do not exist then the Header
35
- is the first rendered center content. The top padding should
36
- vertically align the Header with the Navigation and Tools
37
- circular buttons.
38
- */
39
- &:not(.has-notifications-content):not(.has-breadcrumbs) {
40
- padding-top: awsui.$space-scaled-xs;
41
- }
42
- }
43
-
44
- @include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
45
- padding: awsui.$space-m 0 awsui.$space-content-header-padding-bottom;
46
-
47
- /*
48
- Breadcrumbs has moved to first position and sticky so Notifications
49
- are now the previous adjacent sibling if they exist.
50
- */
51
- &.has-notifications-content {
52
- padding-top: awsui.$space-scaled-xs;
53
- }
54
- }
7
+ grid-area: header;
55
8
  }
@@ -3,54 +3,86 @@
3
3
  SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
 
6
- @use '../../internal/styles' as styles;
7
- @use '../../internal/styles/tokens' as awsui;
8
6
  @use '../constants' as constants;
9
7
  @use '../../internal/generated/custom-css-properties/index.scss' as custom-props;
8
+ @use '../../internal/styles' as styles;
9
+ @use '../../internal/styles/tokens' as awsui;
10
10
 
11
11
  /*
12
- The first and last column definitions have two responsibilities.
13
- If Navigation and/or Tools exist then that will determine the width of
14
- the first and last columns, respectively, and the content in these drawers
15
- will create horizontal space from the center column content. However, if the
16
- navigationHide and/or toolsHide properties have been set then the first
17
- and last column width will default to the minimum content gap properties to
18
- create the necessary visual space around the main content.
19
-
20
- The minimum content width property is set to zero and applied under all
21
- circumstances regardless of whether the minContentWidth property is
22
- explicitly set in script.
23
- */
12
+ The first and last column definitions have two responsibilities.
13
+ If Navigation and/or Tools exist then that will determine the width of
14
+ the first and last columns, respectively, and the content in these drawers
15
+ will create horizontal space from the center column content. However, if the
16
+ navigationHide and/or toolsHide properties have been set then the first
17
+ and last column width will default to the minimum content gap properties to
18
+ create the necessary visual space around the main content.
19
+
20
+ The minimum content width property is set to zero and applied under all
21
+ circumstances regardless of whether the minContentWidth property is
22
+ explicitly set in script.
23
+ */
24
24
  .layout {
25
+ #{custom-props.$breadcrumbsGap}: 0px;
25
26
  #{custom-props.$contentGapLeft}: 0px;
26
27
  #{custom-props.$contentGapRight}: 0px;
27
28
  #{custom-props.$contentHeight}: calc(100vh - var(#{custom-props.$headerHeight}) - var(#{custom-props.$footerHeight}));
28
29
  #{custom-props.$defaultMaxContentWidth}: 1280px;
29
30
  #{custom-props.$defaultMinContentWidth}: 0px;
30
31
  #{custom-props.$footerHeight}: 0px;
32
+ #{custom-props.$headerGap}: 0px;
31
33
  #{custom-props.$headerHeight}: 0px;
32
34
  #{custom-props.$layoutWidth}: 0px;
35
+ #{custom-props.$mainGap}: 0px;
33
36
  #{custom-props.$mainOffsetLeft}: 0px;
37
+ #{custom-props.$mainTemplateRows}: 1fr;
34
38
  #{custom-props.$maxContentWidth}: 0px;
35
39
  #{custom-props.$minContentWidth}: 280px;
36
40
  #{custom-props.$mobileBarHeight}: calc(2 * #{awsui.$space-m} + #{awsui.$space-scaled-xs});
41
+ #{custom-props.$notificationsGap}: 0px;
37
42
  #{custom-props.$notificationsHeight}: 0px;
38
- #{custom-props.$offsetTop}: 0px;
43
+ #{custom-props.$offsetTop}: var(#{custom-props.$headerHeight});
39
44
  #{custom-props.$offsetTopWithNotifications}: 0px;
40
45
  #{custom-props.$overlapHeight}: #{awsui.$space-dark-header-overlap-distance};
41
46
  background-color: awsui.$color-background-layout-main;
47
+ color: awsui.$color-text-body-default;
42
48
  display: grid;
43
- grid-template-rows: repeat(3, auto) var(#{custom-props.$overlapHeight}) 1fr;
49
+ grid-template-areas:
50
+ '. . mobileToolbar . .'
51
+ '. . notificationsGap . .'
52
+ '. . notifications . .'
53
+ '. . breadcrumbsGap . .'
54
+ '. . breadcrumbs . .'
55
+ '. . headerGap . .'
56
+ '. . header . .'
57
+ '. . mainGap . .'
58
+ '. . main . .'
59
+ '. . main . .';
44
60
  grid-template-columns:
45
61
  min-content
46
62
  minmax(var(#{custom-props.$contentGapLeft}), 1fr)
47
63
  minmax(var(#{custom-props.$defaultMinContentWidth}), var(#{custom-props.$defaultMaxContentWidth}))
48
64
  minmax(var(#{custom-props.$contentGapRight}), 1fr)
49
65
  min-content;
66
+ grid-template-rows:
67
+ auto // mobileToolbar template area
68
+ var(#{custom-props.$notificationsGap})
69
+ auto // notifications template area
70
+ var(#{custom-props.$breadcrumbsGap})
71
+ auto // breadcrumbs template area
72
+ var(#{custom-props.$headerGap})
73
+ auto // contentHeader template area
74
+ var(#{custom-props.$mainGap})
75
+ var(#{custom-props.$overlapHeight}) // main template area with overlap
76
+ var(#{custom-props.$mainTemplateRows}); // main template area
77
+ min-height: var(#{custom-props.$contentHeight});
50
78
  position: relative;
51
- color: awsui.$color-text-body-default;
52
79
 
53
- // Add unified max-width for AppLayout content based on breakpoints.
80
+ /*
81
+ Add unified max-width for AppLayout content based on breakpoints. Only use the max content
82
+ width custom property for the middle column definition if the maxContentWidth property
83
+ has been explicitly set to a non-zero value and subsequently set the has-max-content-width
84
+ data attribute to true.
85
+ */
54
86
  &:not(.has-max-content-width) {
55
87
  @each $breakpoint, $width in constants.$adaptive-content-widths {
56
88
  @include styles.media-breakpoint-up($breakpoint) {
@@ -75,6 +107,11 @@
75
107
  #{custom-props.$defaultMaxContentWidth}: var(#{custom-props.$maxContentWidth});
76
108
  }
77
109
 
110
+ // Override the dark header overlap height property if disableContentHeaderOverlap is true.
111
+ &.is-overlap-disabled {
112
+ #{custom-props.$overlapHeight}: 0;
113
+ }
114
+
78
115
  /*
79
116
  Warning! This is a hack! We are implementing a short term fix to prevent the
80
117
  tools drawer from potentially getting pushed off screen. Currently there is no
@@ -92,75 +129,35 @@
92
129
  }
93
130
 
94
131
  /*
95
- Override the dark header overlap height property if isOverlapDisabled is true.
96
- The is computed state from props that can be found in the AppLayout context.
97
- */
98
- &.is-overlap-disabled {
99
- #{custom-props.$overlapHeight}: 0;
100
- }
101
-
102
- /*
103
- If disableBodyScroll is false (this is the overwhelming majority
104
- of use cases and the default scenario) then the scrollable element
105
- will be the document body which is a parent of the AppLayout component.
106
- The Layout should have a minimum but not fixed content height set to the
107
- viewport height less the header and footer height set by the resize
108
- observers in the component. The offset top value for components
109
- with position: sticky (AppBar, Navigation, Notifications, Tools) will
110
- be set to the header height value. The offset top value for AppLayout
111
- contentMain children with position: sticky will be the combined value of the
112
- header and notifications height in addition to the notifications top margin
132
+ The offset top value for components with position: sticky (AppBar, Navigation,
133
+ Notifications, Tools) will be set to the header height value. The offset top value
134
+ for AppLayout contentMain children with position: sticky will be the combined value
135
+ of the header and notifications height in addition to the notifications top margin
113
136
  and some additional vertical space for aesthetics.
114
137
  */
115
- &:not(.disable-body-scroll) {
116
- #{custom-props.$offsetTop}: var(#{custom-props.$headerHeight});
117
- min-height: var(#{custom-props.$contentHeight});
138
+ &:not(.has-sticky-notifications):not(.has-sticky-background) {
139
+ #{custom-props.$offsetTopWithNotifications}: var(#{custom-props.$headerHeight});
118
140
  }
119
141
 
120
- &:not(.disable-body-scroll):not(.has-sticky-notifications) {
121
- #{custom-props.$offsetTopWithNotifications}: var(#{custom-props.$headerHeight});
142
+ &:not(.has-sticky-notifications).has-sticky-background {
143
+ #{custom-props.$offsetTopWithNotifications}: calc(var(#{custom-props.$headerHeight}) + #{awsui.$space-scaled-s});
122
144
  }
123
145
 
124
- // #{awsui.$space-xs} token needs to align with the top margin in the notifications CSS
125
- &:not(.disable-body-scroll).has-sticky-notifications {
146
+ /* stylelint-disable scss/operator-no-newline-after */
147
+ &.has-sticky-notifications:not(.has-sticky-background) {
126
148
  #{custom-props.$offsetTopWithNotifications}: calc(
127
- var(#{custom-props.$headerHeight}) + var(#{custom-props.$notificationsHeight}) + #{awsui.$space-xs} + #{awsui.$space-xxxs}
149
+ var(#{custom-props.$offsetTop}) + var(#{custom-props.$notificationsGap}) +
150
+ var(#{custom-props.$notificationsHeight}) + #{awsui.$space-xxxs}
128
151
  );
129
152
  }
130
153
 
131
- /*
132
- If disableBodyScroll is true (very uncommon use case) then the
133
- AppLayout component and not the document body will be the scrollable
134
- element. This requires a fixed height instead of a minimum height
135
- with a vertical scroll policy. The offset top value for components
136
- with position: sticky (AppBar, Navigation, Notifications, Tools) will
137
- be set zero since the AppLayout is nearest scrollable parent and any
138
- existing header does not matter. The offset top value for AppLayout
139
- contentMain children with position: sticky will be the value of the
140
- notifications height in addition to the notifications top margin
141
- and some additional vertical space for aesthetics.
142
- */
143
- &.disable-body-scroll {
144
- #{custom-props.$offsetTop}: 0px;
145
- grid-template-rows: repeat(3, auto) var(#{custom-props.$overlapHeight}) 1fr auto;
146
- height: var(#{custom-props.$contentHeight});
147
- overflow-y: scroll;
148
- }
149
-
150
- &.disable-body-scroll.has-split-panel.split-panel-position-bottom {
151
- grid-template-rows: repeat(3, auto) var(#{custom-props.$overlapHeight}) repeat(2, auto);
152
- }
153
-
154
- &.disable-body-scroll:not(.has-sticky-notifications) {
155
- #{custom-props.$offsetTopWithNotifications}: 0px;
156
- }
157
-
158
- // #{awsui.$space-xs} token needs to align with the top margin in the notifications CSS
159
- &.disable-body-scroll.has-sticky-notifications {
154
+ &.has-sticky-notifications.has-sticky-background {
160
155
  #{custom-props.$offsetTopWithNotifications}: calc(
161
- var(#{custom-props.$notificationsHeight}) + #{awsui.$space-xs} + #{awsui.$space-xxs}
156
+ var(#{custom-props.$offsetTop}) + var(#{custom-props.$notificationsGap}) +
157
+ var(#{custom-props.$notificationsHeight}) + #{awsui.$space-scaled-s}
162
158
  );
163
159
  }
160
+ /* stylelint-enable scss/operator-no-newline-after */
164
161
 
165
162
  /*
166
163
  In desktop viewports the content gap property for the left and right
@@ -168,9 +165,9 @@
168
165
  or toolsHide property is set. This ensures adequate horizontal space
169
166
  for the center column from the edges of the viewport when there is
170
167
  not left or right content.
171
-
172
- Warning! If these design tokens change it will adversely impact the
173
- calculation used to determine the Split Panel maximum width in the
168
+
169
+ Warning! If these design tokens change it will adversely impact the
170
+ calculation used to determine the Split Panel maximum width in the
174
171
  handleSplitPanelMaxWidth function in the context.
175
172
  */
176
173
  @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
@@ -185,7 +182,7 @@
185
182
 
186
183
  /*
187
184
  In mobile viewports the Navigation and Tools drawers are hidden
188
- and triggered by the AppBar which then take up the entire viewport.
185
+ and triggered by the MobileToolbar which then take up the entire viewport.
189
186
  The center column needs permanent space from the horizontal viewport
190
187
  edges regardless of whether or not there is a Navigation or Tools.
191
188
  */
@@ -193,6 +190,112 @@
193
190
  #{custom-props.$contentGapLeft}: #{awsui.$space-l};
194
191
  #{custom-props.$contentGapRight}: #{awsui.$space-l};
195
192
  }
193
+
194
+ // Vertically align the notifications with the trigger buttons
195
+ &.content-first-child-notifications {
196
+ #{custom-props.$notificationsGap}: #{awsui.$space-xs};
197
+ }
198
+
199
+ // Vertically align the breadcrumbs with the trigger buttons
200
+ &.has-breadcrumbs {
201
+ #{custom-props.$breadcrumbsGap}: #{awsui.$space-scaled-m};
202
+ }
203
+
204
+ // Vertically align the content header with the trigger buttons
205
+ &.content-first-child-header,
206
+ &.content-first-child-notifications:not(.has-breadcrumbs).has-header {
207
+ #{custom-props.$headerGap}: #{awsui.$space-scaled-xs};
208
+ }
209
+
210
+ // The Header gap is slightly smaller when it comes after the Breadcrumbs
211
+ &.has-breadcrumbs.has-header {
212
+ #{custom-props.$headerGap}: #{awsui.$space-scaled-xxs};
213
+ }
214
+
215
+ // Set the Main gap when it follows the Notifications
216
+ &.content-first-child-notifications:not(.has-breadcrumbs):not(.has-header) {
217
+ #{custom-props.$mainGap}: #{awsui.$space-xs};
218
+ }
219
+
220
+ // Set the Main gap when it follows the Breadcrumbs without an overlap
221
+ &.has-breadcrumbs:not(.has-header).is-overlap-disabled {
222
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-m};
223
+ }
224
+
225
+ // Set the Main gap when it follows the Breadcrumbs with an overlap
226
+ &.has-breadcrumbs:not(.has-header):not(.is-overlap-disabled) {
227
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-xxs};
228
+ }
229
+
230
+ // Set the Main gap when it follows the Header
231
+ &.has-header {
232
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-xl};
233
+ }
234
+
235
+ // Set the Main gap when it is the first page content
236
+ &.content-first-child-main:not(.is-overlap-disabled),
237
+ &.content-first-child-main.is-overlap-disabled:not(.disable-content-paddings) {
238
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-xs};
239
+ }
240
+
241
+ /*
242
+ Override the desktop gap values set above for the Notifications, Header, and Main
243
+ components for mobile viewports.
244
+ */
245
+ @include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
246
+ &.content-first-child-notifications {
247
+ #{custom-props.$notificationsGap}: #{awsui.$space-scaled-s};
248
+ }
249
+
250
+ &.content-first-child-header {
251
+ #{custom-props.$headerGap}: #{awsui.$space-scaled-s};
252
+ }
253
+
254
+ &.content-first-child-notifications:not(.has-breadcrumbs).has-header {
255
+ #{custom-props.$headerGap}: #{awsui.$space-scaled-s};
256
+ }
257
+
258
+ &.content-first-child-notifications:not(.has-breadcrumbs):not(.has-header),
259
+ &.content-first-child-main:not(.is-overlap-disabled) {
260
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-s};
261
+ }
262
+
263
+ &.content-first-child-main.is-overlap-disabled:not(.disable-content-paddings) {
264
+ #{custom-props.$mainGap}: #{awsui.$space-scaled-m};
265
+ }
266
+ }
267
+ }
268
+
269
+ /*
270
+ If disableBodyScroll is true (very uncommon use case) then the AppLayout component
271
+ and not the document body will be the scrollable element. This requires a fixed height
272
+ instead of a minimum height with a vertical scroll policy. The offset top value for
273
+ components with position: sticky (MobileToolbar, Navigation, Notifications, Tools) will be
274
+ set zero since the AppLayout is nearest scrollable parent and any existing header does
275
+ not matter. The offset top value for AppLayout contentMain children with
276
+ position: sticky will be the value of the notifications height in addition to the
277
+ notifications top margin and some additional vertical space for aesthetics.
278
+ */
279
+ .layout.disable-body-scroll {
280
+ #{custom-props.$mainTemplateRows}: 1fr auto;
281
+ #{custom-props.$offsetTop}: 0px;
282
+ height: var(#{custom-props.$contentHeight});
283
+ overflow-y: scroll;
284
+
285
+ &.has-split-panel.split-panel-position-bottom {
286
+ #{custom-props.$mainTemplateRows}: repeat(2, auto);
287
+ }
288
+
289
+ &:not(.has-sticky-notifications) {
290
+ #{custom-props.$offsetTopWithNotifications}: 0px;
291
+ }
292
+
293
+ // #{awsui.$space-xs} token needs to align with the top margin in the notifications CSS
294
+ &.has-sticky-notifications {
295
+ #{custom-props.$offsetTopWithNotifications}: calc(
296
+ var(#{custom-props.$notificationsHeight}) + #{awsui.$space-xs} + #{awsui.$space-xxs}
297
+ );
298
+ }
196
299
  }
197
300
 
198
301
  /*
@@ -202,3 +305,11 @@ when the navigation or tools drawers are open in responsive viewports.
202
305
  .block-body-scroll {
203
306
  overflow: hidden;
204
307
  }
308
+
309
+ // Prevent content that is visually hidden behind drawers and content area in mobile view from receiving focus
310
+ /* stylelint-disable selector-max-universal, selector-combinator-disallowed-list */
311
+ .unfocusable,
312
+ .unfocusable * {
313
+ visibility: hidden !important;
314
+ }
315
+ /* stylelint-enable selector-max-universal, selector-combinator-disallowed-list */
@@ -8,8 +8,7 @@
8
8
  @use '../../internal/generated/custom-css-properties/index.scss' as custom-props;
9
9
 
10
10
  .container {
11
- grid-column: 3;
12
- grid-row: 4 / span 2;
11
+ grid-area: main;
13
12
  padding-bottom: awsui.$space-layout-content-bottom;
14
13
 
15
14
  /*
@@ -44,94 +43,4 @@
44
43
  }
45
44
  }
46
45
  }
47
-
48
- /*
49
- If disableContentPaddings is not enabled (the majority of use cases) then
50
- the following code block will compute the padding behavior for the Main
51
- under various circumstances.
52
- */
53
- &:not(.disable-content-paddings) {
54
- @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
55
- /*
56
- Notifications is the previous adjacent sibling to the Main in
57
- desktop viewports if there are no Breadcrumbs or Header. Use additional
58
- to padding on the Main.
59
- */
60
- &.content-type-default.has-notifications-content:not(.has-breadcrumbs):not(.has-header):not(
61
- .has-dynamic-overlap-height
62
- ),
63
- &.content-type-form.has-notifications-content:not(.has-breadcrumbs):not(.has-header):not(
64
- .has-dynamic-overlap-height
65
- ) {
66
- padding-top: awsui.$space-scaled-m;
67
- }
68
-
69
- /*
70
- Main is the only rendered center content if there are no Notifications,
71
- Breadcrumbs, or Header. Use minimal top padding.
72
- */
73
- &.content-type-default:not(.has-notifications-content):not(.has-breadcrumbs):not(.has-header):not(
74
- .has-dynamic-overlap-height
75
- ),
76
- &.content-type-form:not(.has-notifications-content):not(.has-breadcrumbs):not(.has-header):not(
77
- .has-dynamic-overlap-height
78
- ) {
79
- padding-top: awsui.$space-scaled-xs;
80
- }
81
-
82
- /*
83
- If the Header exists then it is necessarily the previous adjacent
84
- sibling to the Main which requires no top padding.
85
- */
86
- &.has-header,
87
- &.has-dynamic-overlap-height {
88
- padding-top: 0;
89
- }
90
- }
91
-
92
- @include styles.media-breakpoint-down(styles.$breakpoint-x-small) {
93
- /*
94
- If the Notifications exist but the Header does not then the
95
- Notifications is the previous adjacent sibling to the Main
96
- requiring additional top padding. This is because the Breadcrumbs
97
- are now rendered first and positioned sticky.
98
- */
99
- &.content-type-default.has-notifications-content:not(.has-header):not(.has-dynamic-overlap-height),
100
- &.content-type-form.has-notifications-content:not(.has-header):not(.has-dynamic-overlap-height) {
101
- padding-top: awsui.$space-scaled-m;
102
- }
103
-
104
- /*
105
- Main is the only rendered center content if there are no Notifications or Header.
106
- */
107
- &.content-type-default:not(.has-notifications-content):not(.has-header):not(.has-dynamic-overlap-height),
108
- &.content-type-form:not(.has-notifications-content):not(.has-header):not(.has-dynamic-overlap-height) {
109
- padding-top: awsui.$space-scaled-m;
110
- }
111
-
112
- /*
113
- If the Header exists then it is necessarily the previous adjacent
114
- sibling to the Main which requires no top padding.
115
- */
116
- &.has-header,
117
- &.has-dynamic-overlap-height {
118
- padding-top: 0;
119
- }
120
- }
121
- }
122
-
123
- // Main should never have top padding for dark header content types
124
- &.content-type-cards,
125
- &.content-type-table,
126
- &.content-type-wizard {
127
- padding-top: 0;
128
- }
129
- }
130
-
131
- // Prevent content that is visually hidden behind drawers and content area in mobile view from receiving focus
132
- /* stylelint-disable selector-max-universal, selector-combinator-disallowed-list */
133
- .unfocusable,
134
- .unfocusable * {
135
- visibility: hidden !important;
136
46
  }
137
- /* stylelint-enable selector-max-universal, selector-combinator-disallowed-list */
@@ -0,0 +1,40 @@
1
+ /*
2
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ @use '../../internal/styles/' as styles;
7
+ @use '../../internal/styles/tokens' as awsui;
8
+ @use '../../internal/generated/custom-css-properties/index.scss' as custom-props;
9
+
10
+ section.mobile-toolbar {
11
+ align-items: center;
12
+ background-color: awsui.$color-background-home-header;
13
+ border-bottom: 1px solid awsui.$color-border-divider-default;
14
+ box-shadow: awsui.$shadow-panel-toggle;
15
+ box-sizing: border-box;
16
+ height: var(#{custom-props.$mobileBarHeight});
17
+ display: grid;
18
+ grid-area: mobileToolbar;
19
+ grid-column: 1 / span 5;
20
+ grid-template-columns: auto minmax(0, 1fr) auto;
21
+ padding: 0 awsui.$space-m;
22
+ position: sticky;
23
+ top: var(#{custom-props.$offsetTop});
24
+ z-index: 1000;
25
+
26
+ > .mobile-toolbar-nav {
27
+ grid-column: 1;
28
+ margin-right: awsui.$space-m;
29
+ }
30
+
31
+ > .mobile-toolbar-breadcrumbs {
32
+ grid-column: 2;
33
+ background-color: awsui.$color-background-layout-main;
34
+ }
35
+
36
+ > .mobile-toolbar-tools {
37
+ grid-column: 3;
38
+ margin-left: awsui.$space-m;
39
+ }
40
+ }
@@ -11,7 +11,7 @@
11
11
  #{custom-props.$navigationWidth}: 280px;
12
12
  display: flex;
13
13
  grid-column: 1;
14
- grid-row: 1 / span 5;
14
+ grid-row: 1 / span 10;
15
15
  height: var(#{custom-props.$contentHeight});
16
16
  position: sticky;
17
17
  top: var(#{custom-props.$offsetTop});
@@ -70,7 +70,7 @@ nav.show-navigation {
70
70
  }
71
71
 
72
72
  /*
73
- Apply the animation only in desktop viewports because the AppBar will
73
+ Apply the animation only in desktop viewports because the MobileToolbar will
74
74
  take control in responsive viewports.
75
75
  */
76
76
  @include styles.media-breakpoint-up(styles.$breakpoint-x-small) {