@cloudscape-design/components 3.0.1412 → 3.0.1414

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 (383) hide show
  1. package/alert/styles.css.js +27 -27
  2. package/alert/styles.scoped.css +49 -49
  3. package/alert/styles.selectors.js +27 -27
  4. package/annotation-context/annotation/styles.css.js +13 -13
  5. package/annotation-context/annotation/styles.scoped.css +21 -21
  6. package/annotation-context/annotation/styles.selectors.js +13 -13
  7. package/app-layout/notifications/styles.css.js +3 -3
  8. package/app-layout/notifications/styles.scoped.css +7 -7
  9. package/app-layout/notifications/styles.selectors.js +3 -3
  10. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  11. package/app-layout/visual-refresh/mobile-toolbar.js +1 -1
  12. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  13. package/app-layout/visual-refresh/styles.css.js +86 -86
  14. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  15. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  16. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  17. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  18. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  19. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  20. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
  21. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  22. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  23. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
  24. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  25. package/attribute-editor/styles.css.js +15 -15
  26. package/attribute-editor/styles.scoped.css +28 -28
  27. package/attribute-editor/styles.selectors.js +15 -15
  28. package/breadcrumb-group/item/styles.css.js +7 -7
  29. package/breadcrumb-group/item/styles.scoped.css +28 -28
  30. package/breadcrumb-group/item/styles.selectors.js +7 -7
  31. package/button/styles.css.js +24 -24
  32. package/button/styles.scoped.css +328 -328
  33. package/button/styles.selectors.js +24 -24
  34. package/button-dropdown/item-element/styles.css.js +21 -21
  35. package/button-dropdown/item-element/styles.scoped.css +37 -37
  36. package/button-dropdown/item-element/styles.selectors.js +21 -21
  37. package/cards/styles.css.js +39 -39
  38. package/cards/styles.scoped.css +41 -41
  39. package/cards/styles.selectors.js +39 -39
  40. package/checkbox/internal.d.ts +1 -1
  41. package/checkbox/internal.d.ts.map +1 -1
  42. package/checkbox/internal.js.map +1 -1
  43. package/checkbox/styles.css.js +3 -3
  44. package/checkbox/styles.scoped.css +10 -10
  45. package/checkbox/styles.selectors.js +3 -3
  46. package/container/styles.css.js +33 -33
  47. package/container/styles.scoped.css +106 -106
  48. package/container/styles.selectors.js +33 -33
  49. package/content-layout/interfaces.d.ts +4 -2
  50. package/content-layout/interfaces.d.ts.map +1 -1
  51. package/content-layout/interfaces.js.map +1 -1
  52. package/content-layout/styles.css.js +14 -14
  53. package/content-layout/styles.scoped.css +27 -27
  54. package/content-layout/styles.selectors.js +14 -14
  55. package/control-group/styles.css.js +27 -27
  56. package/control-group/styles.scoped.css +28 -28
  57. package/control-group/styles.selectors.js +27 -27
  58. package/dropdown/styles.css.js +20 -20
  59. package/dropdown/styles.scoped.css +45 -45
  60. package/dropdown/styles.selectors.js +20 -20
  61. package/expandable-section/expandable-section-header.js +1 -1
  62. package/expandable-section/expandable-section-header.js.map +1 -1
  63. package/file-token-group/styles.css.js +23 -23
  64. package/file-token-group/styles.scoped.css +36 -36
  65. package/file-token-group/styles.selectors.js +23 -23
  66. package/flashbar/styles.css.js +50 -50
  67. package/flashbar/styles.scoped.css +182 -182
  68. package/flashbar/styles.selectors.js +50 -50
  69. package/header/interfaces.d.ts +4 -0
  70. package/header/interfaces.d.ts.map +1 -1
  71. package/header/interfaces.js.map +1 -1
  72. package/header/internal.d.ts +1 -6
  73. package/header/internal.d.ts.map +1 -1
  74. package/header/internal.js +2 -2
  75. package/header/internal.js.map +1 -1
  76. package/header/styles.css.js +36 -36
  77. package/header/styles.scoped.css +55 -55
  78. package/header/styles.selectors.js +36 -36
  79. package/help-panel/styles.css.js +6 -6
  80. package/help-panel/styles.scoped.css +72 -72
  81. package/help-panel/styles.selectors.js +6 -6
  82. package/i18n/messages/all.all.js +1 -1
  83. package/i18n/messages/all.all.json +1 -1
  84. package/i18n/messages/all.de.js +1 -1
  85. package/i18n/messages/all.de.json +1 -1
  86. package/i18n/messages/all.en-GB.js +1 -1
  87. package/i18n/messages/all.en-GB.json +1 -1
  88. package/i18n/messages/all.en.js +1 -1
  89. package/i18n/messages/all.en.json +1 -1
  90. package/i18n/messages/all.es.js +1 -1
  91. package/i18n/messages/all.es.json +1 -1
  92. package/i18n/messages/all.fr.js +1 -1
  93. package/i18n/messages/all.fr.json +1 -1
  94. package/i18n/messages/all.id.js +1 -1
  95. package/i18n/messages/all.id.json +1 -1
  96. package/i18n/messages/all.it.js +1 -1
  97. package/i18n/messages/all.it.json +1 -1
  98. package/i18n/messages/all.ja.js +1 -1
  99. package/i18n/messages/all.ja.json +1 -1
  100. package/i18n/messages/all.ko.js +1 -1
  101. package/i18n/messages/all.ko.json +1 -1
  102. package/i18n/messages/all.pt-BR.js +1 -1
  103. package/i18n/messages/all.pt-BR.json +1 -1
  104. package/i18n/messages/all.tr.js +1 -1
  105. package/i18n/messages/all.tr.json +1 -1
  106. package/i18n/messages/all.zh-CN.js +1 -1
  107. package/i18n/messages/all.zh-CN.json +1 -1
  108. package/i18n/messages/all.zh-TW.js +1 -1
  109. package/i18n/messages/all.zh-TW.json +1 -1
  110. package/i18n/messages-types.d.ts +3 -0
  111. package/i18n/messages-types.d.ts.map +1 -1
  112. package/i18n/messages-types.js.map +1 -1
  113. package/index.d.ts +1 -0
  114. package/index.d.ts.map +1 -1
  115. package/index.js +1 -0
  116. package/index.js.map +1 -1
  117. package/input/styles.css.js +45 -45
  118. package/input/styles.scoped.css +145 -145
  119. package/input/styles.selectors.js +45 -45
  120. package/internal/base-component/styles.scoped.css +1 -1
  121. package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  122. package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  123. package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  124. package/internal/components/focus-lock/utils.d.ts +2 -0
  125. package/internal/components/focus-lock/utils.d.ts.map +1 -1
  126. package/internal/components/focus-lock/utils.js +5 -1
  127. package/internal/components/focus-lock/utils.js.map +1 -1
  128. package/internal/components/listbox/parts/item.d.ts +2 -0
  129. package/internal/components/listbox/parts/item.d.ts.map +1 -1
  130. package/internal/components/listbox/parts/item.js +3 -3
  131. package/internal/components/listbox/parts/item.js.map +1 -1
  132. package/internal/components/listbox/parts/plain-list.d.ts +6 -0
  133. package/internal/components/listbox/parts/plain-list.d.ts.map +1 -1
  134. package/internal/components/listbox/parts/plain-list.js +5 -4
  135. package/internal/components/listbox/parts/plain-list.js.map +1 -1
  136. package/internal/components/listbox/parts/scroll-to-index.d.ts +11 -0
  137. package/internal/components/listbox/parts/scroll-to-index.d.ts.map +1 -1
  138. package/internal/components/listbox/parts/scroll-to-index.js +16 -0
  139. package/internal/components/listbox/parts/scroll-to-index.js.map +1 -1
  140. package/internal/components/listbox/use-listbox.d.ts +2 -2
  141. package/internal/components/listbox/use-listbox.d.ts.map +1 -1
  142. package/internal/components/listbox/use-listbox.js.map +1 -1
  143. package/internal/components/option/styles.css.js +19 -19
  144. package/internal/components/option/styles.scoped.css +36 -36
  145. package/internal/components/option/styles.selectors.js +19 -19
  146. package/internal/components/options-list/index.d.ts +4 -1
  147. package/internal/components/options-list/index.d.ts.map +1 -1
  148. package/internal/components/options-list/index.js +1 -1
  149. package/internal/components/options-list/index.js.map +1 -1
  150. package/internal/components/options-list/utils/use-keyboard.d.ts +2 -1
  151. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  152. package/internal/components/options-list/utils/use-keyboard.js +4 -2
  153. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  154. package/internal/components/radio-button/styles.css.js +7 -7
  155. package/internal/components/radio-button/styles.scoped.css +17 -17
  156. package/internal/components/radio-button/styles.selectors.js +7 -7
  157. package/internal/components/selectable-item/index.d.ts +1 -0
  158. package/internal/components/selectable-item/index.d.ts.map +1 -1
  159. package/internal/components/selectable-item/index.js +2 -1
  160. package/internal/components/selectable-item/index.js.map +1 -1
  161. package/internal/components/selectable-item/interfaces.d.ts +1 -0
  162. package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  163. package/internal/components/selectable-item/interfaces.js.map +1 -1
  164. package/internal/components/selectable-item/styles.css.js +23 -22
  165. package/internal/components/selectable-item/styles.scoped.css +60 -57
  166. package/internal/components/selectable-item/styles.selectors.js +23 -22
  167. package/internal/components/sticky-header/use-untabbable-descendants.d.ts +2 -0
  168. package/internal/components/sticky-header/use-untabbable-descendants.d.ts.map +1 -0
  169. package/internal/components/sticky-header/use-untabbable-descendants.js +16 -0
  170. package/internal/components/sticky-header/use-untabbable-descendants.js.map +1 -0
  171. package/internal/components/token-list/styles.css.js +10 -10
  172. package/internal/components/token-list/styles.scoped.css +25 -25
  173. package/internal/components/token-list/styles.selectors.js +10 -10
  174. package/internal/environment.js +2 -2
  175. package/internal/environment.json +2 -2
  176. package/internal/generated/custom-css-properties/index.d.ts +1 -0
  177. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  178. package/internal/generated/custom-css-properties/index.js +178 -177
  179. package/internal/generated/custom-css-properties/index.js.map +1 -1
  180. package/internal/manifest.json +1 -1
  181. package/item-card/styles.css.js +14 -14
  182. package/item-card/styles.scoped.css +73 -73
  183. package/item-card/styles.selectors.js +14 -14
  184. package/link/styles.css.js +21 -21
  185. package/link/styles.scoped.css +104 -104
  186. package/link/styles.selectors.js +21 -21
  187. package/manifest.json +2 -2
  188. package/modal/styles.css.js +32 -32
  189. package/modal/styles.scoped.css +49 -49
  190. package/modal/styles.selectors.js +32 -32
  191. package/multiselect/use-multiselect.d.ts +1 -1
  192. package/option-list/index.d.ts +5 -0
  193. package/option-list/index.d.ts.map +1 -0
  194. package/option-list/index.js +21 -0
  195. package/option-list/index.js.map +1 -0
  196. package/option-list/interfaces.d.ts +131 -0
  197. package/option-list/interfaces.d.ts.map +1 -0
  198. package/option-list/interfaces.js +2 -0
  199. package/option-list/interfaces.js.map +1 -0
  200. package/option-list/internal.d.ts +5 -0
  201. package/option-list/internal.d.ts.map +1 -0
  202. package/option-list/internal.js +138 -0
  203. package/option-list/internal.js.map +1 -0
  204. package/option-list/styles.css.js +6 -0
  205. package/option-list/styles.scoped.css +40 -0
  206. package/option-list/styles.selectors.js +7 -0
  207. package/option-list/test-classes/styles.css.js +8 -0
  208. package/option-list/test-classes/styles.scoped.css +9 -0
  209. package/option-list/test-classes/styles.selectors.js +9 -0
  210. package/option-list/use-option-list.d.ts +36 -0
  211. package/option-list/use-option-list.d.ts.map +1 -0
  212. package/option-list/use-option-list.js +69 -0
  213. package/option-list/use-option-list.js.map +1 -0
  214. package/package.json +4 -1
  215. package/popover/styles.css.js +58 -58
  216. package/popover/styles.scoped.css +94 -94
  217. package/popover/styles.selectors.js +58 -58
  218. package/progress-bar/styles.css.js +20 -20
  219. package/progress-bar/styles.scoped.css +59 -59
  220. package/progress-bar/styles.selectors.js +20 -20
  221. package/prompt-input/components/token-mode.d.ts +4 -0
  222. package/prompt-input/components/token-mode.d.ts.map +1 -1
  223. package/prompt-input/components/token-mode.js +2 -2
  224. package/prompt-input/components/token-mode.js.map +1 -1
  225. package/prompt-input/internal.d.ts +10 -1
  226. package/prompt-input/internal.d.ts.map +1 -1
  227. package/prompt-input/internal.js +35 -26
  228. package/prompt-input/internal.js.map +1 -1
  229. package/prompt-input/styles.css.js +26 -26
  230. package/prompt-input/styles.scoped.css +136 -107
  231. package/prompt-input/styles.selectors.js +26 -26
  232. package/prompt-input/tokens/use-token-mode.d.ts +4 -0
  233. package/prompt-input/tokens/use-token-mode.d.ts.map +1 -1
  234. package/prompt-input/tokens/use-token-mode.js +3 -3
  235. package/prompt-input/tokens/use-token-mode.js.map +1 -1
  236. package/property-filter/interfaces.d.ts +2 -0
  237. package/property-filter/interfaces.d.ts.map +1 -1
  238. package/property-filter/interfaces.js.map +1 -1
  239. package/property-filter/token-editor-inputs.d.ts.map +1 -1
  240. package/property-filter/token-editor-inputs.js +3 -3
  241. package/property-filter/token-editor-inputs.js.map +1 -1
  242. package/segmented-control/styles.css.js +31 -31
  243. package/segmented-control/styles.scoped.css +81 -81
  244. package/segmented-control/styles.selectors.js +31 -31
  245. package/select/parts/styles.css.js +22 -22
  246. package/select/parts/styles.scoped.css +25 -25
  247. package/select/parts/styles.selectors.js +22 -22
  248. package/side-navigation/styles.css.js +65 -65
  249. package/side-navigation/styles.scoped.css +114 -114
  250. package/side-navigation/styles.selectors.js +65 -65
  251. package/slider/styles.css.js +26 -26
  252. package/slider/styles.scoped.css +167 -167
  253. package/slider/styles.selectors.js +26 -26
  254. package/spinner/styles.css.js +14 -14
  255. package/spinner/styles.scoped.css +40 -40
  256. package/spinner/styles.selectors.js +14 -14
  257. package/styling/prompt-input.scss +76 -0
  258. package/styling/table.scss +102 -0
  259. package/styling/tabs.scss +128 -0
  260. package/table/body-cell/styles.css.js +47 -47
  261. package/table/body-cell/styles.scoped.css +426 -418
  262. package/table/body-cell/styles.selectors.js +47 -47
  263. package/table/body-cell/td-element.d.ts +1 -0
  264. package/table/body-cell/td-element.d.ts.map +1 -1
  265. package/table/body-cell/td-element.js +2 -2
  266. package/table/body-cell/td-element.js.map +1 -1
  267. package/table/clear-sort.d.ts +3 -1
  268. package/table/clear-sort.d.ts.map +1 -1
  269. package/table/clear-sort.js +2 -2
  270. package/table/clear-sort.js.map +1 -1
  271. package/table/header-cell/common-props.d.ts +2 -0
  272. package/table/header-cell/common-props.d.ts.map +1 -1
  273. package/table/header-cell/common-props.js.map +1 -1
  274. package/table/header-cell/group-header-cell.d.ts +2 -1
  275. package/table/header-cell/group-header-cell.d.ts.map +1 -1
  276. package/table/header-cell/group-header-cell.js +3 -2
  277. package/table/header-cell/group-header-cell.js.map +1 -1
  278. package/table/header-cell/index.d.ts +2 -1
  279. package/table/header-cell/index.d.ts.map +1 -1
  280. package/table/header-cell/index.js +12 -5
  281. package/table/header-cell/index.js.map +1 -1
  282. package/table/header-cell/sort-menu.d.ts +4 -1
  283. package/table/header-cell/sort-menu.d.ts.map +1 -1
  284. package/table/header-cell/sort-menu.js +2 -2
  285. package/table/header-cell/sort-menu.js.map +1 -1
  286. package/table/header-cell/styles.css.js +39 -39
  287. package/table/header-cell/styles.scoped.css +140 -125
  288. package/table/header-cell/styles.selectors.js +39 -39
  289. package/table/header-cell/th-element.d.ts +2 -0
  290. package/table/header-cell/th-element.d.ts.map +1 -1
  291. package/table/header-cell/th-element.js +2 -2
  292. package/table/header-cell/th-element.js.map +1 -1
  293. package/table/internal.d.ts.map +1 -1
  294. package/table/internal.js +20 -7
  295. package/table/internal.js.map +1 -1
  296. package/table/resizer/index.d.ts.map +1 -1
  297. package/table/resizer/index.js +1 -1
  298. package/table/resizer/index.js.map +1 -1
  299. package/table/resizer/styles.css.js +17 -17
  300. package/table/resizer/styles.scoped.css +39 -35
  301. package/table/resizer/styles.selectors.js +17 -17
  302. package/table/selection/selection-cell.d.ts +5 -0
  303. package/table/selection/selection-cell.d.ts.map +1 -1
  304. package/table/selection/selection-cell.js +6 -5
  305. package/table/selection/selection-cell.js.map +1 -1
  306. package/table/selection/selection-control.d.ts +3 -0
  307. package/table/selection/selection-control.d.ts.map +1 -1
  308. package/table/selection/selection-control.js +2 -2
  309. package/table/selection/selection-control.js.map +1 -1
  310. package/table/style-api.d.ts +41 -0
  311. package/table/style-api.d.ts.map +1 -0
  312. package/table/style-api.js +4 -0
  313. package/table/style-api.js.map +1 -0
  314. package/table/styles.css.js +37 -37
  315. package/table/styles.scoped.css +119 -46
  316. package/table/styles.selectors.js +37 -37
  317. package/table/thead.d.ts +2 -0
  318. package/table/thead.d.ts.map +1 -1
  319. package/table/thead.js +2 -1
  320. package/table/thead.js.map +1 -1
  321. package/table-root/index.js +1 -1
  322. package/table-root/index.js.map +1 -1
  323. package/table-root/interfaces.d.ts +15 -1
  324. package/table-root/interfaces.d.ts.map +1 -1
  325. package/table-root/interfaces.js.map +1 -1
  326. package/table-root/internal.d.ts +2 -0
  327. package/table-root/internal.d.ts.map +1 -1
  328. package/table-root/internal.js +23 -11
  329. package/table-root/internal.js.map +1 -1
  330. package/table-root/sticky-header-slot.d.ts +24 -0
  331. package/table-root/sticky-header-slot.d.ts.map +1 -0
  332. package/table-root/sticky-header-slot.js +13 -0
  333. package/table-root/sticky-header-slot.js.map +1 -0
  334. package/table-root/styles.css.js +10 -5
  335. package/table-root/styles.scoped.css +52 -7
  336. package/table-root/styles.selectors.js +10 -5
  337. package/table-root/use-sticky-header.d.ts +33 -0
  338. package/table-root/use-sticky-header.d.ts.map +1 -0
  339. package/table-root/use-sticky-header.js +141 -0
  340. package/table-root/use-sticky-header.js.map +1 -0
  341. package/tabs/index.d.ts.map +1 -1
  342. package/tabs/index.js +3 -2
  343. package/tabs/index.js.map +1 -1
  344. package/tabs/styles.css.js +30 -30
  345. package/tabs/styles.scoped.css +137 -81
  346. package/tabs/styles.selectors.js +30 -30
  347. package/tabs/tab-header-bar.d.ts +12 -1
  348. package/tabs/tab-header-bar.d.ts.map +1 -1
  349. package/tabs/tab-header-bar.js +14 -7
  350. package/tabs/tab-header-bar.js.map +1 -1
  351. package/tag-editor/styles.css.js +3 -3
  352. package/tag-editor/styles.scoped.css +13 -13
  353. package/tag-editor/styles.selectors.js +3 -3
  354. package/test-utils/dom/header/index.d.ts +1 -0
  355. package/test-utils/dom/header/index.js +3 -0
  356. package/test-utils/dom/header/index.js.map +1 -1
  357. package/test-utils/dom/index.d.ts +28 -0
  358. package/test-utils/dom/index.js +21 -2
  359. package/test-utils/dom/index.js.map +1 -1
  360. package/test-utils/dom/option-list/index.d.ts +69 -0
  361. package/test-utils/dom/option-list/index.js +132 -0
  362. package/test-utils/dom/option-list/index.js.map +1 -0
  363. package/test-utils/selectors/header/index.d.ts +1 -0
  364. package/test-utils/selectors/header/index.js +3 -0
  365. package/test-utils/selectors/header/index.js.map +1 -1
  366. package/test-utils/selectors/index.d.ts +18 -0
  367. package/test-utils/selectors/index.js +16 -2
  368. package/test-utils/selectors/index.js.map +1 -1
  369. package/test-utils/selectors/option-list/index.d.ts +66 -0
  370. package/test-utils/selectors/option-list/index.js +108 -0
  371. package/test-utils/selectors/option-list/index.js.map +1 -0
  372. package/text-content/styles.css.js +1 -1
  373. package/text-content/styles.scoped.css +66 -66
  374. package/text-content/styles.selectors.js +1 -1
  375. package/textarea/styles.css.js +9 -9
  376. package/textarea/styles.scoped.css +51 -51
  377. package/textarea/styles.selectors.js +9 -9
  378. package/toggle/styles.css.js +10 -10
  379. package/toggle/styles.scoped.css +25 -25
  380. package/toggle/styles.selectors.js +10 -10
  381. package/token/styles.css.js +14 -14
  382. package/token/styles.scoped.css +57 -57
  383. package/token/styles.selectors.js +14 -14
@@ -2,55 +2,55 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "flash-with-motion": "awsui_flash-with-motion_1q84n_1c3pp_13",
6
- "enter": "awsui_enter_1q84n_1c3pp_13",
7
- "flash-body": "awsui_flash-body_1q84n_1c3pp_27",
8
- "flash-message": "awsui_flash-message_1q84n_1c3pp_27",
9
- "flash-header": "awsui_flash-header_1q84n_1c3pp_27",
10
- "flash-content": "awsui_flash-content_1q84n_1c3pp_28",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_1c3pp_29",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1c3pp_30",
13
- "flash-icon": "awsui_flash-icon_1q84n_1c3pp_53",
14
- "entering": "awsui_entering_1q84n_1c3pp_66",
15
- "entered": "awsui_entered_1q84n_1c3pp_87",
16
- "exiting": "awsui_exiting_1q84n_1c3pp_192",
17
- "stack": "awsui_stack_1q84n_1c3pp_218",
18
- "animation-running": "awsui_animation-running_1q84n_1c3pp_218",
19
- "item": "awsui_item_1q84n_1c3pp_218",
20
- "flash-list-item": "awsui_flash-list-item_1q84n_1c3pp_219",
21
- "notification-bar": "awsui_notification-bar_1q84n_1c3pp_220",
22
- "collapsed": "awsui_collapsed_1q84n_1c3pp_240",
23
- "animation-ready": "awsui_animation-ready_1q84n_1c3pp_240",
24
- "expanded-only": "awsui_expanded-only_1q84n_1c3pp_240",
25
- "expanded": "awsui_expanded_1q84n_1c3pp_240",
26
- "flash": "awsui_flash_1q84n_1c3pp_13",
27
- "collapsible": "awsui_collapsible_1q84n_1c3pp_298",
28
- "short-list": "awsui_short-list_1q84n_1c3pp_304",
29
- "visual-refresh": "awsui_visual-refresh_1q84n_1c3pp_342",
30
- "status": "awsui_status_1q84n_1c3pp_418",
31
- "header": "awsui_header_1q84n_1c3pp_418",
32
- "item-count": "awsui_item-count_1q84n_1c3pp_419",
33
- "button": "awsui_button_1q84n_1c3pp_420",
34
- "type-count": "awsui_type-count_1q84n_1c3pp_453",
35
- "count-number": "awsui_count-number_1q84n_1c3pp_453",
36
- "icon": "awsui_icon_1q84n_1c3pp_486",
37
- "floating": "awsui_floating_1q84n_1c3pp_527",
38
- "flashbar": "awsui_flashbar_1q84n_1c3pp_548",
39
- "initial-hidden": "awsui_initial-hidden_1q84n_1c3pp_610",
40
- "flash-list": "awsui_flash-list_1q84n_1c3pp_219",
41
- "flash-focus-container": "awsui_flash-focus-container_1q84n_1c3pp_634",
42
- "flash-text": "awsui_flash-text_1q84n_1c3pp_664",
43
- "hidden": "awsui_hidden_1q84n_1c3pp_683",
44
- "header-replacement": "awsui_header-replacement_1q84n_1c3pp_688",
45
- "content-replacement": "awsui_content-replacement_1q84n_1c3pp_693",
46
- "dismiss-button": "awsui_dismiss-button_1q84n_1c3pp_30",
47
- "action-wrapped": "awsui_action-wrapped_1q84n_1c3pp_711",
48
- "action-button": "awsui_action-button_1q84n_1c3pp_29",
49
- "action-slot": "awsui_action-slot_1q84n_1c3pp_718",
50
- "flash-type-success": "awsui_flash-type-success_1q84n_1c3pp_722",
51
- "flash-type-error": "awsui_flash-type-error_1q84n_1c3pp_730",
52
- "flash-type-info": "awsui_flash-type-info_1q84n_1c3pp_738",
53
- "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_1c3pp_739",
54
- "flash-type-warning": "awsui_flash-type-warning_1q84n_1c3pp_748"
5
+ "flash-with-motion": "awsui_flash-with-motion_1q84n_cop0z_13",
6
+ "enter": "awsui_enter_1q84n_cop0z_13",
7
+ "flash-body": "awsui_flash-body_1q84n_cop0z_27",
8
+ "flash-message": "awsui_flash-message_1q84n_cop0z_27",
9
+ "flash-header": "awsui_flash-header_1q84n_cop0z_27",
10
+ "flash-content": "awsui_flash-content_1q84n_cop0z_28",
11
+ "action-button-wrapper": "awsui_action-button-wrapper_1q84n_cop0z_29",
12
+ "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_cop0z_30",
13
+ "flash-icon": "awsui_flash-icon_1q84n_cop0z_53",
14
+ "entering": "awsui_entering_1q84n_cop0z_66",
15
+ "entered": "awsui_entered_1q84n_cop0z_87",
16
+ "exiting": "awsui_exiting_1q84n_cop0z_192",
17
+ "stack": "awsui_stack_1q84n_cop0z_218",
18
+ "animation-running": "awsui_animation-running_1q84n_cop0z_218",
19
+ "item": "awsui_item_1q84n_cop0z_218",
20
+ "flash-list-item": "awsui_flash-list-item_1q84n_cop0z_219",
21
+ "notification-bar": "awsui_notification-bar_1q84n_cop0z_220",
22
+ "collapsed": "awsui_collapsed_1q84n_cop0z_240",
23
+ "animation-ready": "awsui_animation-ready_1q84n_cop0z_240",
24
+ "expanded-only": "awsui_expanded-only_1q84n_cop0z_240",
25
+ "expanded": "awsui_expanded_1q84n_cop0z_240",
26
+ "flash": "awsui_flash_1q84n_cop0z_13",
27
+ "collapsible": "awsui_collapsible_1q84n_cop0z_298",
28
+ "short-list": "awsui_short-list_1q84n_cop0z_304",
29
+ "visual-refresh": "awsui_visual-refresh_1q84n_cop0z_342",
30
+ "status": "awsui_status_1q84n_cop0z_418",
31
+ "header": "awsui_header_1q84n_cop0z_418",
32
+ "item-count": "awsui_item-count_1q84n_cop0z_419",
33
+ "button": "awsui_button_1q84n_cop0z_420",
34
+ "type-count": "awsui_type-count_1q84n_cop0z_453",
35
+ "count-number": "awsui_count-number_1q84n_cop0z_453",
36
+ "icon": "awsui_icon_1q84n_cop0z_486",
37
+ "floating": "awsui_floating_1q84n_cop0z_527",
38
+ "flashbar": "awsui_flashbar_1q84n_cop0z_548",
39
+ "initial-hidden": "awsui_initial-hidden_1q84n_cop0z_610",
40
+ "flash-list": "awsui_flash-list_1q84n_cop0z_219",
41
+ "flash-focus-container": "awsui_flash-focus-container_1q84n_cop0z_634",
42
+ "flash-text": "awsui_flash-text_1q84n_cop0z_664",
43
+ "hidden": "awsui_hidden_1q84n_cop0z_683",
44
+ "header-replacement": "awsui_header-replacement_1q84n_cop0z_688",
45
+ "content-replacement": "awsui_content-replacement_1q84n_cop0z_693",
46
+ "dismiss-button": "awsui_dismiss-button_1q84n_cop0z_30",
47
+ "action-wrapped": "awsui_action-wrapped_1q84n_cop0z_711",
48
+ "action-button": "awsui_action-button_1q84n_cop0z_29",
49
+ "action-slot": "awsui_action-slot_1q84n_cop0z_718",
50
+ "flash-type-success": "awsui_flash-type-success_1q84n_cop0z_722",
51
+ "flash-type-error": "awsui_flash-type-error_1q84n_cop0z_730",
52
+ "flash-type-info": "awsui_flash-type-info_1q84n_cop0z_738",
53
+ "flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_cop0z_739",
54
+ "flash-type-warning": "awsui_flash-type-warning_1q84n_cop0z_748"
55
55
  };
56
56
 
@@ -39,6 +39,10 @@ export interface HeaderProps extends BaseComponentProps {
39
39
  * Area next to the heading to display an Info link.
40
40
  */
41
41
  info?: React.ReactNode;
42
+ /**
43
+ * Secondary content displayed next to the header text.
44
+ */
45
+ secondaryContent?: React.ReactNode;
42
46
  }
43
47
  export declare namespace HeaderProps {
44
48
  type Variant = 'h1' | 'h2' | 'h3' | 'awsui-h1-sticky';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/header/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,yBAAiB,WAAW,CAAC;IAC3B,KAAY,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,iBAAiB,CAAC;IAC7D,KAAY,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;CAC1E"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/header/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACpC;AAED,yBAAiB,WAAW,CAAC;IAC3B,KAAY,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,iBAAiB,CAAC;IAC7D,KAAY,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;CAC1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/header/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';\n\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface HeaderProps extends BaseComponentProps {\n /**\n * The heading text. Plain text is recommended. The component renders the\n * HTML heading tag based on the specified `variant` or `headingTagOverride`.\n * @displayname title\n */\n children?: React.ReactNode;\n /**\n * Specifies the variant of the header:\n * * `h1` - Use this for page level headers.\n * * `h2` - Use this for container level headers.\n * * `h3` - Use this for section level headers.\n * * `awsui-h1-sticky` - Use this for sticky headers in cards and tables.\n * @visualrefresh `awsui-h1-sticky` variant\n */\n variant?: HeaderProps.Variant;\n /**\n * Overrides the default [HTML heading tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements)\n * provided by the variant. Set to `div` to render the title without heading semantics. Using this property does not\n * change the visual appearance of the component.\n */\n headingTagOverride?: HeaderProps.HeadingTag;\n /**\n * Supplementary text below the heading.\n */\n description?: React.ReactNode;\n /**\n * Actions for the container.\n */\n actions?: React.ReactNode;\n /**\n * Specifies secondary content that's displayed to the right of the heading title. This is commonly used\n * to display resource counters in table and cards components.\n */\n counter?: React.ReactNode;\n /**\n * Area next to the heading to display an Info link.\n */\n info?: React.ReactNode;\n}\n\nexport namespace HeaderProps {\n export type Variant = 'h1' | 'h2' | 'h3' | 'awsui-h1-sticky';\n export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/header/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';\n\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface HeaderProps extends BaseComponentProps {\n /**\n * The heading text. Plain text is recommended. The component renders the\n * HTML heading tag based on the specified `variant` or `headingTagOverride`.\n * @displayname title\n */\n children?: React.ReactNode;\n /**\n * Specifies the variant of the header:\n * * `h1` - Use this for page level headers.\n * * `h2` - Use this for container level headers.\n * * `h3` - Use this for section level headers.\n * * `awsui-h1-sticky` - Use this for sticky headers in cards and tables.\n * @visualrefresh `awsui-h1-sticky` variant\n */\n variant?: HeaderProps.Variant;\n /**\n * Overrides the default [HTML heading tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements)\n * provided by the variant. Set to `div` to render the title without heading semantics. Using this property does not\n * change the visual appearance of the component.\n */\n headingTagOverride?: HeaderProps.HeadingTag;\n /**\n * Supplementary text below the heading.\n */\n description?: React.ReactNode;\n /**\n * Actions for the container.\n */\n actions?: React.ReactNode;\n /**\n * Specifies secondary content that's displayed to the right of the heading title. This is commonly used\n * to display resource counters in table and cards components.\n */\n counter?: React.ReactNode;\n /**\n * Area next to the heading to display an Info link.\n */\n info?: React.ReactNode;\n /**\n * Secondary content displayed next to the header text.\n */\n secondaryContent?: React.ReactNode;\n}\n\nexport namespace HeaderProps {\n export type Variant = 'h1' | 'h2' | 'h3' | 'awsui-h1-sticky';\n export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n}\n"]}
@@ -7,11 +7,6 @@ interface InternalHeaderProps extends SomeRequired<HeaderProps, 'variant'>, Inte
7
7
  __headingTagRef?: MutableRefObject<HTMLHeadingElement | null>;
8
8
  __headingTagTabIndex?: number;
9
9
  __inExpandableSection?: boolean;
10
- /**
11
- * Rendered in the title row but outside the heading tag, so content beside the title is not
12
- * nested inside the heading element.
13
- */
14
- __additionalTitleContent?: React.ReactNode;
15
10
  }
16
11
  export default function InternalHeader({
17
12
  variant,
@@ -21,12 +16,12 @@ export default function InternalHeader({
21
16
  counter,
22
17
  description,
23
18
  info,
19
+ secondaryContent,
24
20
  __internalRootRef,
25
21
  __disableActionsWrapping,
26
22
  __headingTagRef,
27
23
  __headingTagTabIndex,
28
24
  __inExpandableSection,
29
- __additionalTitleContent,
30
25
  ...restProps
31
26
  }: InternalHeaderProps): JSX.Element;
32
27
  export declare function Description({
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/header/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAY5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,UAAU,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC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O,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,GAAG,SAAS,EACb,EAAE,mBAAmB,eA4FrB;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,sBAgBhH"}
@@ -15,7 +15,7 @@ import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
15
15
  import { useTableIntegration } from './analytics/use-table-integration';
16
16
  import analyticsSelectors from './analytics-metadata/styles.css.js';
17
17
  import styles from './styles.css.js';
18
- export default function InternalHeader({ variant, headingTagOverride, children, actions, counter, description, info, __internalRootRef, __disableActionsWrapping, __headingTagRef, __headingTagTabIndex, __inExpandableSection, __additionalTitleContent, ...restProps }) {
18
+ export default function InternalHeader({ variant, headingTagOverride, children, actions, counter, description, info, secondaryContent, __internalRootRef, __disableActionsWrapping, __headingTagRef, __headingTagTabIndex, __inExpandableSection, ...restProps }) {
19
19
  const isMobile = useMobile();
20
20
  const HeadingTag = headingTagOverride !== null && headingTagOverride !== void 0 ? headingTagOverride : (variant === 'awsui-h1-sticky' ? 'h1' : variant);
21
21
  const { isStuck } = useContext(StickyHeaderContext);
@@ -42,7 +42,7 @@ export default function InternalHeader({ variant, headingTagOverride, children,
42
42
  info && (React.createElement(InfoLinkLabelContext.Provider, { value: headingId },
43
43
  React.createElement("span", { className: styles['virtual-space'] }, " \u00A0"),
44
44
  React.createElement("span", { className: styles.info }, info)))),
45
- __additionalTitleContent && (React.createElement("div", { className: styles['additional-title-content'] }, __additionalTitleContent)),
45
+ secondaryContent && React.createElement("div", { className: styles['secondary-content'] }, secondaryContent),
46
46
  actions && (React.createElement("div", { className: clsx(styles.actions, styles[`actions-variant-${variantOverride}`], isRefresh && styles.refresh, !__disableActionsWrapping && [styles['actions-centered']]) }, actions))),
47
47
  React.createElement(Description, { variantOverride: variantOverride }, description)));
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/header/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAoB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AAE9G,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAcrC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,oBA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AM,CAAC,eAAe,CAAC,cAAgB;oBACxD,8BAAM,SAAS,EAAE,MAAM,CAAC,IAAI,IAAG,IAAI,CAAQ,CACb,CACjC,CACG;YACL,wBAAwB,IAAI,CAC3B,6BAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,IAAG,wBAAwB,CAAO,CACrF;YACA,OAAO,IAAI,CACV,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,mBAAmB,eAAe,EAAE,CAAC,EAC5C,SAAS,IAAI,MAAM,CAAC,OAAO,EAC3B,CAAC,wBAAwB,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAC1D,IAEA,OAAO,CACJ,CACP,CACG;QACN,oBAAC,WAAW,IAAC,eAAe,EAAE,eAAe,IAAG,WAAW,CAAe,CACtE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAA0D;IAC/G,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,CACL,CAAC,QAAQ,IAAI,CACX,2BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,uBAAuB,eAAe,EAAE,CAAC,EAChD,SAAS,IAAI,MAAM,CAAC,OAAO,CAC5B,IAEA,QAAQ,CACP,CACL,CAAC;QACF,IAAI,CACL,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { MutableRefObject, useContext } from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { StickyHeaderContext } from '../container/use-sticky-header';\nimport { DATA_ATTR_FUNNEL_KEY, FUNNEL_KEY_SUBSTEP_NAME } from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionLabelContext } from '../internal/context/collection-label-context';\nimport { useContainerHeader } from '../internal/context/container-header';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { useTableIntegration } from './analytics/use-table-integration';\nimport { HeaderProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface InternalHeaderProps extends SomeRequired<HeaderProps, 'variant'>, InternalBaseComponentProps {\n __disableActionsWrapping?: boolean;\n __headingTagRef?: MutableRefObject<HTMLHeadingElement | null>;\n __headingTagTabIndex?: number;\n __inExpandableSection?: boolean;\n /**\n * Rendered in the title row but outside the heading tag, so content beside the title is not\n * nested inside the heading element.\n */\n __additionalTitleContent?: React.ReactNode;\n}\n\nexport default function InternalHeader({\n variant,\n headingTagOverride,\n children,\n actions,\n counter,\n description,\n info,\n __internalRootRef,\n __disableActionsWrapping,\n __headingTagRef,\n __headingTagTabIndex,\n __inExpandableSection,\n __additionalTitleContent,\n ...restProps\n}: InternalHeaderProps) {\n const isMobile = useMobile();\n const HeadingTag = headingTagOverride ?? (variant === 'awsui-h1-sticky' ? 'h1' : variant);\n const { isStuck } = useContext(StickyHeaderContext);\n const baseProps = getBaseProps(restProps);\n const isRefresh = useVisualRefresh();\n const assignHeaderId = useContext(CollectionLabelContext).assignId;\n const isInContainer = useContainerHeader();\n const headingId = useUniqueId('heading');\n\n useTableIntegration(counter);\n\n if (assignHeaderId !== undefined) {\n assignHeaderId(headingId);\n }\n // If is mobile there is no need to have the dynamic variant because it's scrolled out of view\n const dynamicVariant = !isMobile && isStuck ? 'h2' : 'h1';\n const variantOverride = variant === 'awsui-h1-sticky' ? (isRefresh ? dynamicVariant : 'h2') : variant;\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n styles[`root-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n !actions && [styles[`root-no-actions`]],\n description && [styles[`root-has-description`]]\n )}\n ref={__internalRootRef}\n >\n <div\n className={clsx(\n styles.main,\n styles[`main-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n __disableActionsWrapping && [styles['no-wrap']]\n )}\n >\n <div\n className={clsx(\n styles.title,\n styles[`title-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n __inExpandableSection && styles['title-in-expandable-section']\n )}\n >\n <HeadingTag\n className={clsx(styles.heading, styles[`heading-variant-${variantOverride}`])}\n ref={__headingTagRef}\n tabIndex={__headingTagTabIndex}\n {...getAnalyticsLabelAttribute(`.${analyticsSelectors['heading-text']}`)}\n >\n <span\n {...(isInContainer ? { [DATA_ATTR_FUNNEL_KEY]: FUNNEL_KEY_SUBSTEP_NAME } : {})}\n className={clsx(\n styles['heading-text'],\n analyticsSelectors['heading-text'],\n styles[`heading-text-variant-${variantOverride}`]\n )}\n id={headingId}\n >\n {children}\n </span>\n {counter !== undefined && <span className={styles.counter}> {counter}</span>}\n </HeadingTag>\n {info && (\n <InfoLinkLabelContext.Provider value={headingId}>\n {/* Exists to create a space between heading text and info so that a double-click selection on the last word of the heading doesn't also include info */}\n <span className={styles['virtual-space']}> &nbsp;</span>\n <span className={styles.info}>{info}</span>\n </InfoLinkLabelContext.Provider>\n )}\n </div>\n {__additionalTitleContent && (\n <div className={styles['additional-title-content']}>{__additionalTitleContent}</div>\n )}\n {actions && (\n <div\n className={clsx(\n styles.actions,\n styles[`actions-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n !__disableActionsWrapping && [styles['actions-centered']]\n )}\n >\n {actions}\n </div>\n )}\n </div>\n <Description variantOverride={variantOverride}>{description}</Description>\n </div>\n );\n}\n\nexport function Description({ children, variantOverride }: { children: React.ReactNode; variantOverride: string }) {\n const isRefresh = useVisualRefresh();\n return (\n (children && (\n <p\n className={clsx(\n styles.description,\n styles[`description-variant-${variantOverride}`],\n isRefresh && styles.refresh\n )}\n >\n {children}\n </p>\n )) ||\n null\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/header/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAoB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AAE9G,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,GAAG,SAAS,EACQ;IACpB,MAAM,QAAQ,GAAG,SAAS,E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,CACb,CACjC,CACG;YACL,gBAAgB,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,IAAG,gBAAgB,CAAO;YACzF,OAAO,IAAI,CACV,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,mBAAmB,eAAe,EAAE,CAAC,EAC5C,SAAS,IAAI,MAAM,CAAC,OAAO,EAC3B,CAAC,wBAAwB,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAC1D,IAEA,OAAO,CACJ,CACP,CACG;QACN,oBAAC,WAAW,IAAC,eAAe,EAAE,eAAe,IAAG,WAAW,CAAe,CACtE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,eAAe,EAA0D;IAC/G,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,CACL,CAAC,QAAQ,IAAI,CACX,2BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,uBAAuB,eAAe,EAAE,CAAC,EAChD,SAAS,IAAI,MAAM,CAAC,OAAO,CAC5B,IAEA,QAAQ,CACP,CACL,CAAC;QACF,IAAI,CACL,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { MutableRefObject, useContext } from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { StickyHeaderContext } from '../container/use-sticky-header';\nimport { DATA_ATTR_FUNNEL_KEY, FUNNEL_KEY_SUBSTEP_NAME } from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport { CollectionLabelContext } from '../internal/context/collection-label-context';\nimport { useContainerHeader } from '../internal/context/container-header';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { useTableIntegration } from './analytics/use-table-integration';\nimport { HeaderProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface InternalHeaderProps extends SomeRequired<HeaderProps, 'variant'>, InternalBaseComponentProps {\n __disableActionsWrapping?: boolean;\n __headingTagRef?: MutableRefObject<HTMLHeadingElement | null>;\n __headingTagTabIndex?: number;\n __inExpandableSection?: boolean;\n}\n\nexport default function InternalHeader({\n variant,\n headingTagOverride,\n children,\n actions,\n counter,\n description,\n info,\n secondaryContent,\n __internalRootRef,\n __disableActionsWrapping,\n __headingTagRef,\n __headingTagTabIndex,\n __inExpandableSection,\n ...restProps\n}: InternalHeaderProps) {\n const isMobile = useMobile();\n const HeadingTag = headingTagOverride ?? (variant === 'awsui-h1-sticky' ? 'h1' : variant);\n const { isStuck } = useContext(StickyHeaderContext);\n const baseProps = getBaseProps(restProps);\n const isRefresh = useVisualRefresh();\n const assignHeaderId = useContext(CollectionLabelContext).assignId;\n const isInContainer = useContainerHeader();\n const headingId = useUniqueId('heading');\n\n useTableIntegration(counter);\n\n if (assignHeaderId !== undefined) {\n assignHeaderId(headingId);\n }\n // If is mobile there is no need to have the dynamic variant because it's scrolled out of view\n const dynamicVariant = !isMobile && isStuck ? 'h2' : 'h1';\n const variantOverride = variant === 'awsui-h1-sticky' ? (isRefresh ? dynamicVariant : 'h2') : variant;\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n styles[`root-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n !actions && [styles[`root-no-actions`]],\n description && [styles[`root-has-description`]]\n )}\n ref={__internalRootRef}\n >\n <div\n className={clsx(\n styles.main,\n styles[`main-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n __disableActionsWrapping && [styles['no-wrap']]\n )}\n >\n <div\n className={clsx(\n styles.title,\n styles[`title-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n __inExpandableSection && styles['title-in-expandable-section']\n )}\n >\n <HeadingTag\n className={clsx(styles.heading, styles[`heading-variant-${variantOverride}`])}\n ref={__headingTagRef}\n tabIndex={__headingTagTabIndex}\n {...getAnalyticsLabelAttribute(`.${analyticsSelectors['heading-text']}`)}\n >\n <span\n {...(isInContainer ? { [DATA_ATTR_FUNNEL_KEY]: FUNNEL_KEY_SUBSTEP_NAME } : {})}\n className={clsx(\n styles['heading-text'],\n analyticsSelectors['heading-text'],\n styles[`heading-text-variant-${variantOverride}`]\n )}\n id={headingId}\n >\n {children}\n </span>\n {counter !== undefined && <span className={styles.counter}> {counter}</span>}\n </HeadingTag>\n {info && (\n <InfoLinkLabelContext.Provider value={headingId}>\n {/* Exists to create a space between heading text and info so that a double-click selection on the last word of the heading doesn't also include info */}\n <span className={styles['virtual-space']}> &nbsp;</span>\n <span className={styles.info}>{info}</span>\n </InfoLinkLabelContext.Provider>\n )}\n </div>\n {secondaryContent && <div className={styles['secondary-content']}>{secondaryContent}</div>}\n {actions && (\n <div\n className={clsx(\n styles.actions,\n styles[`actions-variant-${variantOverride}`],\n isRefresh && styles.refresh,\n !__disableActionsWrapping && [styles['actions-centered']]\n )}\n >\n {actions}\n </div>\n )}\n </div>\n <Description variantOverride={variantOverride}>{description}</Description>\n </div>\n );\n}\n\nexport function Description({ children, variantOverride }: { children: React.ReactNode; variantOverride: string }) {\n const isRefresh = useVisualRefresh();\n return (\n (children && (\n <p\n className={clsx(\n styles.description,\n styles[`description-variant-${variantOverride}`],\n isRefresh && styles.refresh\n )}\n >\n {children}\n </p>\n )) ||\n null\n );\n}\n"]}
@@ -1,41 +1,41 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_2qdw9_1tbn2_9",
5
- "refresh": "awsui_refresh_2qdw9_1tbn2_45",
6
- "root-no-actions": "awsui_root-no-actions_2qdw9_1tbn2_45",
7
- "root-variant-h2": "awsui_root-variant-h2_2qdw9_1tbn2_48",
8
- "root-variant-h3": "awsui_root-variant-h3_2qdw9_1tbn2_48",
9
- "root-has-description": "awsui_root-has-description_2qdw9_1tbn2_48",
10
- "root-variant-h1": "awsui_root-variant-h1_2qdw9_1tbn2_57",
11
- "main": "awsui_main_2qdw9_1tbn2_67",
12
- "no-wrap": "awsui_no-wrap_2qdw9_1tbn2_77",
13
- "main-variant-h1": "awsui_main-variant-h1_2qdw9_1tbn2_83",
14
- "actions": "awsui_actions_2qdw9_1tbn2_91",
15
- "actions-centered": "awsui_actions-centered_2qdw9_1tbn2_96",
16
- "actions-variant-h1": "awsui_actions-variant-h1_2qdw9_1tbn2_99",
17
- "actions-variant-h2": "awsui_actions-variant-h2_2qdw9_1tbn2_103",
18
- "actions-variant-h3": "awsui_actions-variant-h3_2qdw9_1tbn2_107",
19
- "additional-title-content": "awsui_additional-title-content_2qdw9_1tbn2_123",
20
- "title": "awsui_title_2qdw9_1tbn2_132",
21
- "title-variant-h1": "awsui_title-variant-h1_2qdw9_1tbn2_137",
22
- "title-variant-h2": "awsui_title-variant-h2_2qdw9_1tbn2_144",
23
- "title-variant-h3": "awsui_title-variant-h3_2qdw9_1tbn2_150",
24
- "title-in-expandable-section": "awsui_title-in-expandable-section_2qdw9_1tbn2_163",
25
- "virtual-space": "awsui_virtual-space_2qdw9_1tbn2_182",
26
- "info": "awsui_info_2qdw9_1tbn2_188",
27
- "description": "awsui_description_2qdw9_1tbn2_192",
28
- "description-variant-h1": "awsui_description-variant-h1_2qdw9_1tbn2_199",
29
- "description-variant-h2": "awsui_description-variant-h2_2qdw9_1tbn2_203",
30
- "description-variant-h3": "awsui_description-variant-h3_2qdw9_1tbn2_210",
31
- "heading": "awsui_heading_2qdw9_1tbn2_221",
32
- "heading-variant-h1": "awsui_heading-variant-h1_2qdw9_1tbn2_246",
33
- "heading-variant-h2": "awsui_heading-variant-h2_2qdw9_1tbn2_251",
34
- "heading-variant-h3": "awsui_heading-variant-h3_2qdw9_1tbn2_256",
35
- "heading-text": "awsui_heading-text_2qdw9_1tbn2_262",
36
- "heading-text-variant-h1": "awsui_heading-text-variant-h1_2qdw9_1tbn2_265",
37
- "heading-text-variant-h2": "awsui_heading-text-variant-h2_2qdw9_1tbn2_274",
38
- "heading-text-variant-h3": "awsui_heading-text-variant-h3_2qdw9_1tbn2_283",
39
- "counter": "awsui_counter_2qdw9_1tbn2_293"
4
+ "root": "awsui_root_2qdw9_1fo3d_9",
5
+ "refresh": "awsui_refresh_2qdw9_1fo3d_45",
6
+ "root-no-actions": "awsui_root-no-actions_2qdw9_1fo3d_45",
7
+ "root-variant-h2": "awsui_root-variant-h2_2qdw9_1fo3d_48",
8
+ "root-variant-h3": "awsui_root-variant-h3_2qdw9_1fo3d_48",
9
+ "root-has-description": "awsui_root-has-description_2qdw9_1fo3d_48",
10
+ "root-variant-h1": "awsui_root-variant-h1_2qdw9_1fo3d_57",
11
+ "main": "awsui_main_2qdw9_1fo3d_67",
12
+ "no-wrap": "awsui_no-wrap_2qdw9_1fo3d_77",
13
+ "main-variant-h1": "awsui_main-variant-h1_2qdw9_1fo3d_83",
14
+ "actions": "awsui_actions_2qdw9_1fo3d_91",
15
+ "actions-centered": "awsui_actions-centered_2qdw9_1fo3d_96",
16
+ "actions-variant-h1": "awsui_actions-variant-h1_2qdw9_1fo3d_99",
17
+ "actions-variant-h2": "awsui_actions-variant-h2_2qdw9_1fo3d_103",
18
+ "actions-variant-h3": "awsui_actions-variant-h3_2qdw9_1fo3d_107",
19
+ "secondary-content": "awsui_secondary-content_2qdw9_1fo3d_123",
20
+ "title": "awsui_title_2qdw9_1fo3d_132",
21
+ "title-variant-h1": "awsui_title-variant-h1_2qdw9_1fo3d_137",
22
+ "title-variant-h2": "awsui_title-variant-h2_2qdw9_1fo3d_144",
23
+ "title-variant-h3": "awsui_title-variant-h3_2qdw9_1fo3d_150",
24
+ "title-in-expandable-section": "awsui_title-in-expandable-section_2qdw9_1fo3d_163",
25
+ "virtual-space": "awsui_virtual-space_2qdw9_1fo3d_182",
26
+ "info": "awsui_info_2qdw9_1fo3d_188",
27
+ "description": "awsui_description_2qdw9_1fo3d_192",
28
+ "description-variant-h1": "awsui_description-variant-h1_2qdw9_1fo3d_199",
29
+ "description-variant-h2": "awsui_description-variant-h2_2qdw9_1fo3d_203",
30
+ "description-variant-h3": "awsui_description-variant-h3_2qdw9_1fo3d_210",
31
+ "heading": "awsui_heading_2qdw9_1fo3d_221",
32
+ "heading-variant-h1": "awsui_heading-variant-h1_2qdw9_1fo3d_246",
33
+ "heading-variant-h2": "awsui_heading-variant-h2_2qdw9_1fo3d_251",
34
+ "heading-variant-h3": "awsui_heading-variant-h3_2qdw9_1fo3d_256",
35
+ "heading-text": "awsui_heading-text_2qdw9_1fo3d_262",
36
+ "heading-text-variant-h1": "awsui_heading-text-variant-h1_2qdw9_1fo3d_265",
37
+ "heading-text-variant-h2": "awsui_heading-text-variant-h2_2qdw9_1fo3d_274",
38
+ "heading-text-variant-h3": "awsui_heading-text-variant-h3_2qdw9_1fo3d_283",
39
+ "counter": "awsui_counter_2qdw9_1fo3d_293"
40
40
  };
41
41