@cloudscape-design/components-themeable 3.0.1360 → 3.0.1362

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 (258) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/alert/styles.scss +13 -12
  3. package/lib/internal/scss/badge/styles.scss +38 -49
  4. package/lib/internal/scss/button/styles.scss +51 -51
  5. package/lib/internal/scss/cards/styles.scss +4 -0
  6. package/lib/internal/scss/container/styles.scss +2 -0
  7. package/lib/internal/scss/icon/hover-motion.scss +24 -12
  8. package/lib/internal/scss/input/styles.scss +4 -0
  9. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +175 -174
  10. package/lib/internal/scss/internal/styles/forms/mixins.scss +11 -2
  11. package/lib/internal/scss/internal/styles/style-api.scss +60 -10
  12. package/lib/internal/scss/pagination/styles.scss +3 -1
  13. package/lib/internal/scss/table/styles.scss +5 -0
  14. package/lib/internal/template/action-card/internal.d.ts.map +1 -1
  15. package/lib/internal/template/action-card/internal.js +5 -2
  16. package/lib/internal/template/action-card/internal.js.map +1 -1
  17. package/lib/internal/template/alert/styles.css.js +27 -27
  18. package/lib/internal/template/alert/styles.scoped.css +50 -50
  19. package/lib/internal/template/alert/styles.selectors.js +27 -27
  20. package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
  21. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
  22. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
  23. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  24. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  25. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  26. package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
  27. package/lib/internal/template/app-layout/toggles/index.js +1 -1
  28. package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
  29. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  30. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  31. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  32. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  33. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js +1 -1
  34. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
  35. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  36. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
  37. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  38. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  39. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
  40. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  41. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  42. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
  43. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  44. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
  45. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +1 -1
  46. package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
  47. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  48. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  49. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  50. package/lib/internal/template/breadcrumb-group/all-items-dropdown.js +2 -2
  51. package/lib/internal/template/breadcrumb-group/all-items-dropdown.js.map +1 -1
  52. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  53. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  54. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  55. package/lib/internal/template/button/internal.d.ts.map +1 -1
  56. package/lib/internal/template/button/internal.js +2 -0
  57. package/lib/internal/template/button/internal.js.map +1 -1
  58. package/lib/internal/template/button/styles.css.js +23 -23
  59. package/lib/internal/template/button/styles.scoped.css +261 -261
  60. package/lib/internal/template/button/styles.selectors.js +23 -23
  61. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  62. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js +2 -2
  63. package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  64. package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
  65. package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
  66. package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
  67. package/lib/internal/template/button-dropdown/internal.js +9 -3
  68. package/lib/internal/template/button-dropdown/internal.js.map +1 -1
  69. package/lib/internal/template/button-dropdown/item-element/index.d.ts.map +1 -1
  70. package/lib/internal/template/button-dropdown/item-element/index.js +2 -2
  71. package/lib/internal/template/button-dropdown/item-element/index.js.map +1 -1
  72. package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
  73. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
  74. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
  75. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +5 -3
  76. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  77. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js +14 -2
  78. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  79. package/lib/internal/template/cards/styles.css.js +39 -38
  80. package/lib/internal/template/cards/styles.scoped.css +42 -39
  81. package/lib/internal/template/cards/styles.selectors.js +39 -38
  82. package/lib/internal/template/checkbox/styles.css.js +3 -3
  83. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  84. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  85. package/lib/internal/template/code-editor/tab-button.d.ts.map +1 -1
  86. package/lib/internal/template/code-editor/tab-button.js +1 -1
  87. package/lib/internal/template/code-editor/tab-button.js.map +1 -1
  88. package/lib/internal/template/container/styles.css.js +33 -33
  89. package/lib/internal/template/container/styles.scoped.css +57 -56
  90. package/lib/internal/template/container/styles.selectors.js +33 -33
  91. package/lib/internal/template/content-layout/styles.css.js +14 -14
  92. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  93. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  94. package/lib/internal/template/dropdown/styles.css.js +20 -20
  95. package/lib/internal/template/dropdown/styles.scoped.css +49 -49
  96. package/lib/internal/template/dropdown/styles.selectors.js +20 -20
  97. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  98. package/lib/internal/template/expandable-section/expandable-section-header.js +13 -7
  99. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  100. package/lib/internal/template/file-token-group/styles.css.js +23 -23
  101. package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
  102. package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
  103. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  104. package/lib/internal/template/flashbar/collapsible-flashbar.js +3 -3
  105. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  106. package/lib/internal/template/flashbar/styles.css.js +50 -50
  107. package/lib/internal/template/flashbar/styles.scoped.css +192 -192
  108. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  109. package/lib/internal/template/help-panel/styles.css.js +6 -6
  110. package/lib/internal/template/help-panel/styles.scoped.css +72 -72
  111. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  112. package/lib/internal/template/input/index.d.ts.map +1 -1
  113. package/lib/internal/template/input/index.js +3 -2
  114. package/lib/internal/template/input/index.js.map +1 -1
  115. package/lib/internal/template/input/interfaces.d.ts +6 -0
  116. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  117. package/lib/internal/template/input/interfaces.js.map +1 -1
  118. package/lib/internal/template/input/internal.d.ts +0 -1
  119. package/lib/internal/template/input/internal.d.ts.map +1 -1
  120. package/lib/internal/template/input/internal.js +26 -12
  121. package/lib/internal/template/input/internal.js.map +1 -1
  122. package/lib/internal/template/input/styles.css.js +29 -28
  123. package/lib/internal/template/input/styles.scoped.css +134 -131
  124. package/lib/internal/template/input/styles.selectors.js +29 -28
  125. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  126. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  127. package/lib/internal/template/internal/components/button-trigger/index.js +2 -2
  128. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  129. package/lib/internal/template/internal/components/drag-handle/button.d.ts.map +1 -1
  130. package/lib/internal/template/internal/components/drag-handle/button.js +3 -1
  131. package/lib/internal/template/internal/components/drag-handle/button.js.map +1 -1
  132. package/lib/internal/template/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
  133. package/lib/internal/template/internal/components/drag-handle-wrapper/index.js +2 -1
  134. package/lib/internal/template/internal/components/drag-handle-wrapper/index.js.map +1 -1
  135. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  136. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
  137. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  138. package/lib/internal/template/internal/components/expand-toggle-button/index.d.ts.map +1 -1
  139. package/lib/internal/template/internal/components/expand-toggle-button/index.js +1 -1
  140. package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -1
  141. package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
  142. package/lib/internal/template/internal/components/menu-dropdown/index.js +1 -1
  143. package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
  144. package/lib/internal/template/internal/components/option/styles.css.js +17 -17
  145. package/lib/internal/template/internal/components/option/styles.scoped.css +31 -31
  146. package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
  147. package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
  148. package/lib/internal/template/internal/components/radio-button/styles.scoped.css +18 -18
  149. package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
  150. package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -22
  151. package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +57 -57
  152. package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
  153. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  154. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  155. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  156. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  157. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js +2 -2
  158. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  159. package/lib/internal/template/internal/environment.js +2 -2
  160. package/lib/internal/template/internal/environment.json +2 -2
  161. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +1 -0
  162. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  163. package/lib/internal/template/internal/generated/custom-css-properties/index.js +174 -173
  164. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  165. package/lib/internal/template/internal/generated/styles/tokens.js +200 -200
  166. package/lib/internal/template/internal/generated/theming/index.cjs +200 -200
  167. package/lib/internal/template/internal/generated/theming/index.js +200 -200
  168. package/lib/internal/template/internal/utils/focus-visible.d.ts +15 -0
  169. package/lib/internal/template/internal/utils/focus-visible.d.ts.map +1 -0
  170. package/lib/internal/template/internal/utils/focus-visible.js +21 -0
  171. package/lib/internal/template/internal/utils/focus-visible.js.map +1 -0
  172. package/lib/internal/template/item-card/styles.css.js +14 -14
  173. package/lib/internal/template/item-card/styles.scoped.css +63 -63
  174. package/lib/internal/template/item-card/styles.selectors.js +14 -14
  175. package/lib/internal/template/link/internal.d.ts.map +1 -1
  176. package/lib/internal/template/link/internal.js +2 -0
  177. package/lib/internal/template/link/internal.js.map +1 -1
  178. package/lib/internal/template/link/styles.css.js +21 -21
  179. package/lib/internal/template/link/styles.scoped.css +104 -104
  180. package/lib/internal/template/link/styles.selectors.js +21 -21
  181. package/lib/internal/template/modal/styles.css.js +31 -31
  182. package/lib/internal/template/modal/styles.scoped.css +48 -48
  183. package/lib/internal/template/modal/styles.selectors.js +31 -31
  184. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  185. package/lib/internal/template/pagination/internal.js +4 -4
  186. package/lib/internal/template/pagination/internal.js.map +1 -1
  187. package/lib/internal/template/pagination/styles.css.js +12 -12
  188. package/lib/internal/template/pagination/styles.scoped.css +31 -31
  189. package/lib/internal/template/pagination/styles.selectors.js +12 -12
  190. package/lib/internal/template/progress-bar/styles.css.js +19 -19
  191. package/lib/internal/template/progress-bar/styles.scoped.css +58 -58
  192. package/lib/internal/template/progress-bar/styles.selectors.js +19 -19
  193. package/lib/internal/template/prompt-input/styles.css.js +26 -26
  194. package/lib/internal/template/prompt-input/styles.scoped.css +105 -105
  195. package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
  196. package/lib/internal/template/property-filter/filtering-token/index.js +4 -4
  197. package/lib/internal/template/property-filter/filtering-token/index.js.map +1 -1
  198. package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
  199. package/lib/internal/template/segmented-control/segment.js +1 -1
  200. package/lib/internal/template/segmented-control/segment.js.map +1 -1
  201. package/lib/internal/template/segmented-control/styles.css.js +16 -16
  202. package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
  203. package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
  204. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  205. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  206. package/lib/internal/template/select/parts/styles.css.js +21 -21
  207. package/lib/internal/template/select/parts/styles.scoped.css +24 -24
  208. package/lib/internal/template/select/parts/styles.selectors.js +21 -21
  209. package/lib/internal/template/side-navigation/parts.js +3 -3
  210. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  211. package/lib/internal/template/side-navigation/styles.css.js +64 -64
  212. package/lib/internal/template/side-navigation/styles.scoped.css +111 -111
  213. package/lib/internal/template/side-navigation/styles.selectors.js +64 -64
  214. package/lib/internal/template/slider/styles.css.js +26 -26
  215. package/lib/internal/template/slider/styles.scoped.css +165 -165
  216. package/lib/internal/template/slider/styles.selectors.js +26 -26
  217. package/lib/internal/template/spinner/styles.css.js +14 -14
  218. package/lib/internal/template/spinner/styles.scoped.css +40 -40
  219. package/lib/internal/template/spinner/styles.selectors.js +14 -14
  220. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  221. package/lib/internal/template/table/header-cell/index.js +2 -1
  222. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  223. package/lib/internal/template/table/styles.css.js +37 -37
  224. package/lib/internal/template/table/styles.scoped.css +47 -44
  225. package/lib/internal/template/table/styles.selectors.js +37 -37
  226. package/lib/internal/template/tabs/styles.css.js +30 -30
  227. package/lib/internal/template/tabs/styles.scoped.css +76 -76
  228. package/lib/internal/template/tabs/styles.selectors.js +30 -30
  229. package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
  230. package/lib/internal/template/tabs/tab-header-bar.js +1 -1
  231. package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
  232. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  233. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  234. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  235. package/lib/internal/template/test-utils/dom/input/index.d.ts +1 -0
  236. package/lib/internal/template/test-utils/dom/input/index.js +3 -0
  237. package/lib/internal/template/test-utils/dom/input/index.js.map +1 -1
  238. package/lib/internal/template/test-utils/selectors/input/index.d.ts +1 -0
  239. package/lib/internal/template/test-utils/selectors/input/index.js +3 -0
  240. package/lib/internal/template/test-utils/selectors/input/index.js.map +1 -1
  241. package/lib/internal/template/text-content/styles.css.js +1 -1
  242. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  243. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  244. package/lib/internal/template/textarea/styles.css.js +9 -9
  245. package/lib/internal/template/textarea/styles.scoped.css +51 -51
  246. package/lib/internal/template/textarea/styles.selectors.js +9 -9
  247. package/lib/internal/template/toggle/styles.css.js +10 -10
  248. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  249. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  250. package/lib/internal/template/token/dismiss-button.js +2 -2
  251. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  252. package/lib/internal/template/token/styles.css.js +14 -14
  253. package/lib/internal/template/token/styles.scoped.css +46 -46
  254. package/lib/internal/template/token/styles.selectors.js +14 -14
  255. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  256. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js +5 -5
  257. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  258. package/package.json +1 -1
@@ -1,178 +1,179 @@
1
1
 
2
2
  // Build environment
3
- $awsui-commit-hash: "0c1c9fd2";
3
+ $awsui-commit-hash: "0fcf5f74";
4
4
  // Manually managed CSS-variables
5
- $maxContentWidth: --awsui-max-content-width-esndbs;
6
- $minContentWidth: --awsui-min-content-width-esndbs;
7
- $breadcrumbsGap: --awsui-breadcrumbs-gap-esndbs;
8
- $contentGapLeft: --awsui-content-gap-left-esndbs;
9
- $contentGapRight: --awsui-content-gap-right-esndbs;
10
- $contentHeight: --awsui-content-height-esndbs;
11
- $contentLayoutDefaultHorizontalPadding: --awsui-content-layout-default-horizontal-padding-esndbs;
12
- $contentLayoutMaxContentWidth: --awsui-content-layout-max-content-width-esndbs;
13
- $contentLayoutMainGap: --awsui-content-layout-main-gap-esndbs;
14
- $defaultMaxContentWidth: --awsui-default-max-content-width-esndbs;
15
- $defaultMinContentWidth: --awsui-default-min-content-width-esndbs;
16
- $drawerSize: --awsui-drawer-size-esndbs;
17
- $drawerMinSize: --awsui-drawer-min-size-esndbs;
18
- $bottomDrawerSize: --awsui-bottom-drawer-size-esndbs;
19
- $footerHeight: --awsui-footer-height-esndbs;
20
- $headerGap: --awsui-header-gap-esndbs;
21
- $headerHeight: --awsui-header-height-esndbs;
22
- $layoutWidth: --awsui-layout-width-esndbs;
23
- $mainGap: --awsui-main-gap-esndbs;
24
- $mainOffsetLeft: --awsui-main-offset-left-esndbs;
25
- $mainTemplateRows: --awsui-main-template-rows-esndbs;
26
- $mobileBarHeight: --awsui-mobile-bar-height-esndbs;
27
- $notificationsHeight: --awsui-notifications-height-esndbs;
28
- $offsetTop: --awsui-offset-top-esndbs;
29
- $overlapHeight: --awsui-overlap-height-esndbs;
30
- $navigationWidth: --awsui-navigation-width-esndbs;
31
- $navigationCollapsedWidth: --awsui-navigation-collapsed-width-esndbs;
32
- $splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-esndbs;
33
- $splitPanelReportedSize: --awsui-split-panel-reported-size-esndbs;
34
- $splitPanelHeight: --awsui-split-panel-height-esndbs;
35
- $splitPanelMinWidth: --awsui-split-panel-min-width-esndbs;
36
- $splitPanelMaxWidth: --awsui-split-panel-max-width-esndbs;
37
- $toolsMaxWidth: --awsui-tools-max-width-esndbs;
38
- $toolsWidth: --awsui-tools-width-esndbs;
39
- $toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-esndbs;
40
- $contentScrollMargin: --awsui-content-scroll-margin-esndbs;
41
- $flashbarStackDepth: --awsui-flashbar-stack-depth-esndbs;
42
- $flashbarStackIndex: --awsui-flashbar-stack-index-esndbs;
43
- $flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-esndbs;
44
- $stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-esndbs;
45
- $stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-esndbs;
46
- $dropdownDefaultMaxWidth: --awsui-dropdown-default-max-width-esndbs;
47
- $dropdownDefaultMinWidth: --awsui-dropdown-default-min-width-esndbs;
48
- $dropdownContentBorderColor: --awsui-dropdown-content-border-color-esndbs;
49
- $dropdownContentBorderWidth: --awsui-dropdown-content-border-width-esndbs;
50
- $dropdownContentBorderRadius: --awsui-dropdown-content-border-radius-esndbs;
51
- $modalCustomWidth: --awsui-modal-custom-width-esndbs;
52
- $modalCustomHeight: --awsui-modal-custom-height-esndbs;
53
- $spinnerRotatorFrom: --awsui-spinner-rotator-from-esndbs;
54
- $spinnerRotatorTo: --awsui-spinner-rotator-to-esndbs;
55
- $spinnerLineLeftFrom: --awsui-spinner-line-left-from-esndbs;
56
- $spinnerLineLeftTo: --awsui-spinner-line-left-to-esndbs;
57
- $spinnerLineRightFrom: --awsui-spinner-line-right-from-esndbs;
58
- $spinnerLineRightTo: --awsui-spinner-line-right-to-esndbs;
59
- $sliderLabelCount: --awsui-slider-label-count-esndbs;
60
- $sliderTickCount: --awsui-slider-tick-count-esndbs;
61
- $sliderReferenceColumn: --awsui-slider-reference-column-esndbs;
62
- $sliderNextReferenceColumn: --awsui-slider-next-reference-column-esndbs;
63
- $sliderMaxStart: --awsui-slider-max-start-esndbs;
64
- $sliderMinEnd: --awsui-slider-min-end-esndbs;
65
- $sliderRangeInlineSize: --awsui-slider-range-inline-size-esndbs;
66
- $sliderTooltipPosition: --awsui-slider-tooltip-position-esndbs;
67
- $togglesLeftWidth: --awsui-toggles-left-width-esndbs;
68
- $togglesRightWidth: --awsui-toggles-right-width-esndbs;
69
- $promptInputMaxRows: --awsui-prompt-input-max-rows-esndbs;
70
- $promptInputScrollHeight: --awsui-prompt-input-scroll-height-esndbs;
71
- $dragHandleAnimationInlineOffset: --awsui-drag-handle-animation-inline-offset-esndbs;
72
- $dragHandleAnimationBlockOffset: --awsui-drag-handle-animation-block-offset-esndbs;
73
- $styleBackgroundActive: --awsui-style-background-active-esndbs;
74
- $styleBackgroundDefault: --awsui-style-background-default-esndbs;
75
- $styleBackgroundDisabled: --awsui-style-background-disabled-esndbs;
76
- $styleBackgroundHover: --awsui-style-background-hover-esndbs;
77
- $styleBorderColorActive: --awsui-style-border-color-active-esndbs;
78
- $styleBorderColorDefault: --awsui-style-border-color-default-esndbs;
79
- $styleBorderColorDisabled: --awsui-style-border-color-disabled-esndbs;
80
- $styleBorderColorHover: --awsui-style-border-color-hover-esndbs;
81
- $styleColorActive: --awsui-style-color-active-esndbs;
82
- $styleColorDefault: --awsui-style-color-default-esndbs;
83
- $styleColorDisabled: --awsui-style-color-disabled-esndbs;
84
- $styleColorHover: --awsui-style-color-hover-esndbs;
85
- $styleFocusRingBorderColor: --awsui-style-focus-ring-border-color-esndbs;
86
- $styleFocusRingBorderRadius: --awsui-style-focus-ring-border-radius-esndbs;
87
- $styleFocusRingBorderWidth: --awsui-style-focus-ring-border-width-esndbs;
88
- $styleFocusRingBoxShadow: --awsui-style-focus-ring-box-shadow-esndbs;
89
- $styleBoxShadowActive: --awsui-style-box-shadow-active-esndbs;
90
- $styleBoxShadowDefault: --awsui-style-box-shadow-default-esndbs;
91
- $styleBoxShadowDisabled: --awsui-style-box-shadow-disabled-esndbs;
92
- $styleBoxShadowHover: --awsui-style-box-shadow-hover-esndbs;
93
- $styleBackgroundReadonly: --awsui-style-background-readonly-esndbs;
94
- $styleBorderColorReadonly: --awsui-style-border-color-readonly-esndbs;
95
- $styleBoxShadowReadonly: --awsui-style-box-shadow-readonly-esndbs;
96
- $styleColorReadonly: --awsui-style-color-readonly-esndbs;
97
- $styleBackgroundFocus: --awsui-style-background-focus-esndbs;
98
- $styleBorderColorFocus: --awsui-style-border-color-focus-esndbs;
99
- $styleBoxShadowFocus: --awsui-style-box-shadow-focus-esndbs;
100
- $styleColorFocus: --awsui-style-color-focus-esndbs;
101
- $stylePlaceholderColor: --awsui-style-placeholder-color-esndbs;
102
- $stylePlaceholderFontSize: --awsui-style-placeholder-font-size-esndbs;
103
- $stylePlaceholderFontStyle: --awsui-style-placeholder-font-style-esndbs;
104
- $stylePlaceholderFontWeight: --awsui-style-placeholder-font-weight-esndbs;
105
- $styleTabsActiveIndicatorColor: --awsui-style-tabs-active-indicator-color-esndbs;
106
- $styleTabsActiveIndicatorWidth: --awsui-style-tabs-active-indicator-width-esndbs;
107
- $styleTabsActiveIndicatorBorderRadius: --awsui-style-tabs-active-indicator-border-radius-esndbs;
108
- $styleTabsSeparatorColor: --awsui-style-tabs-separator-color-esndbs;
109
- $styleTabsSeparatorWidth: --awsui-style-tabs-separator-width-esndbs;
110
- $alertFocusRingBorderColor: --awsui-alert-focus-ring-border-color-esndbs;
111
- $alertFocusRingBorderRadius: --awsui-alert-focus-ring-border-radius-esndbs;
112
- $alertFocusRingBorderWidth: --awsui-alert-focus-ring-border-width-esndbs;
113
- $alertFocusRingBoxShadow: --awsui-alert-focus-ring-box-shadow-esndbs;
114
- $alertIconColor: --awsui-alert-icon-color-esndbs;
115
- $promptInputStyleBackgroundDefault: --awsui-prompt-input-style-background-default-esndbs;
116
- $promptInputStyleBackgroundDisabled: --awsui-prompt-input-style-background-disabled-esndbs;
117
- $promptInputStyleBackgroundFocus: --awsui-prompt-input-style-background-focus-esndbs;
118
- $promptInputStyleBackgroundHover: --awsui-prompt-input-style-background-hover-esndbs;
119
- $promptInputStyleBackgroundReadonly: --awsui-prompt-input-style-background-readonly-esndbs;
120
- $promptInputStyleBorderColorDefault: --awsui-prompt-input-style-border-color-default-esndbs;
121
- $promptInputStyleBorderColorDisabled: --awsui-prompt-input-style-border-color-disabled-esndbs;
122
- $promptInputStyleBorderColorFocus: --awsui-prompt-input-style-border-color-focus-esndbs;
123
- $promptInputStyleBorderColorHover: --awsui-prompt-input-style-border-color-hover-esndbs;
124
- $promptInputStyleBorderColorReadonly: --awsui-prompt-input-style-border-color-readonly-esndbs;
125
- $promptInputStyleBoxShadowDefault: --awsui-prompt-input-style-box-shadow-default-esndbs;
126
- $promptInputStyleBoxShadowDisabled: --awsui-prompt-input-style-box-shadow-disabled-esndbs;
127
- $promptInputStyleBoxShadowFocus: --awsui-prompt-input-style-box-shadow-focus-esndbs;
128
- $promptInputStyleBoxShadowHover: --awsui-prompt-input-style-box-shadow-hover-esndbs;
129
- $promptInputStyleBoxShadowReadonly: --awsui-prompt-input-style-box-shadow-readonly-esndbs;
130
- $promptInputStyleColorDefault: --awsui-prompt-input-style-color-default-esndbs;
131
- $promptInputStyleColorDisabled: --awsui-prompt-input-style-color-disabled-esndbs;
132
- $promptInputStyleColorFocus: --awsui-prompt-input-style-color-focus-esndbs;
133
- $promptInputStyleColorHover: --awsui-prompt-input-style-color-hover-esndbs;
134
- $promptInputStyleColorReadonly: --awsui-prompt-input-style-color-readonly-esndbs;
135
- $promptInputStylePlaceholderColor: --awsui-prompt-input-style-placeholder-color-esndbs;
136
- $promptInputStylePlaceholderFontSize: --awsui-prompt-input-style-placeholder-font-size-esndbs;
137
- $promptInputStylePlaceholderFontStyle: --awsui-prompt-input-style-placeholder-font-style-esndbs;
138
- $promptInputStylePlaceholderFontWeight: --awsui-prompt-input-style-placeholder-font-weight-esndbs;
139
- $promptInputMenuStyleBackgroundColor: --awsui-prompt-input-menu-style-background-color-esndbs;
140
- $promptInputMenuStyleBorderColor: --awsui-prompt-input-menu-style-border-color-esndbs;
141
- $promptInputMenuStyleBorderRadius: --awsui-prompt-input-menu-style-border-radius-esndbs;
142
- $promptInputMenuStyleBorderWidth: --awsui-prompt-input-menu-style-border-width-esndbs;
143
- $optionBackgroundDefault: --awsui-option-background-default-esndbs;
144
- $optionBackgroundHighlighted: --awsui-option-background-highlighted-esndbs;
145
- $optionBackgroundSelected: --awsui-option-background-selected-esndbs;
146
- $optionColorDefault: --awsui-option-color-default-esndbs;
147
- $optionColorHighlighted: --awsui-option-color-highlighted-esndbs;
148
- $optionColorDisabled: --awsui-option-color-disabled-esndbs;
149
- $optionGroupLabelColor: --awsui-option-group-label-color-esndbs;
150
- $optionFilterMatchBackground: --awsui-option-filter-match-background-esndbs;
151
- $optionFilterMatchColor: --awsui-option-filter-match-color-esndbs;
152
- $progressBarBackgroundColor: --awsui-progress-bar-background-color-esndbs;
153
- $progressBarBorderRadius: --awsui-progress-bar-border-radius-esndbs;
154
- $progressBarHeight: --awsui-progress-bar-height-esndbs;
155
- $progressValueBackgroundColor: --awsui-progress-value-background-color-esndbs;
156
- $styleSliderTrackBackgroundColor: --awsui-style-slider-track-background-color-esndbs;
157
- $styleSliderRangeBackgroundDefault: --awsui-style-slider-range-background-default-esndbs;
158
- $styleSliderRangeBackgroundActive: --awsui-style-slider-range-background-active-esndbs;
159
- $styleSliderHandleBackgroundDefault: --awsui-style-slider-handle-background-default-esndbs;
160
- $styleSliderHandleBackgroundHover: --awsui-style-slider-handle-background-hover-esndbs;
161
- $styleSliderHandleBackgroundActive: --awsui-style-slider-handle-background-active-esndbs;
162
- $styleSliderHandleBorderRadius: --awsui-style-slider-handle-border-radius-esndbs;
163
- $tokenStyleBackgroundDefault: --awsui-token-style-background-default-esndbs;
164
- $tokenStyleBackgroundDisabled: --awsui-token-style-background-disabled-esndbs;
165
- $tokenStyleBackgroundReadOnly: --awsui-token-style-background-read-only-esndbs;
166
- $tokenStyleBorderColorDefault: --awsui-token-style-border-color-default-esndbs;
167
- $tokenStyleBorderColorDisabled: --awsui-token-style-border-color-disabled-esndbs;
168
- $tokenStyleBorderColorReadOnly: --awsui-token-style-border-color-read-only-esndbs;
169
- $tokenStyleDismissColorDefault: --awsui-token-style-dismiss-color-default-esndbs;
170
- $tokenStyleDismissColorDisabled: --awsui-token-style-dismiss-color-disabled-esndbs;
171
- $tokenStyleDismissColorHover: --awsui-token-style-dismiss-color-hover-esndbs;
172
- $tokenStyleDismissColorReadOnly: --awsui-token-style-dismiss-color-read-only-esndbs;
173
- $styleItemCardBackgroundDefault: --awsui-style-item-card-background-default-esndbs;
174
- $styleItemCardBorderColorDefault: --awsui-style-item-card-border-color-default-esndbs;
175
- $styleItemCardBorderRadius: --awsui-style-item-card-border-radius-esndbs;
176
- $styleItemCardBorderWidthDefault: --awsui-style-item-card-border-width-default-esndbs;
177
- $styleItemCardBoxShadowDefault: --awsui-style-item-card-box-shadow-default-esndbs;
5
+ $maxContentWidth: --awsui-max-content-width-66120l;
6
+ $minContentWidth: --awsui-min-content-width-66120l;
7
+ $breadcrumbsGap: --awsui-breadcrumbs-gap-66120l;
8
+ $contentGapLeft: --awsui-content-gap-left-66120l;
9
+ $contentGapRight: --awsui-content-gap-right-66120l;
10
+ $contentHeight: --awsui-content-height-66120l;
11
+ $contentLayoutDefaultHorizontalPadding: --awsui-content-layout-default-horizontal-padding-66120l;
12
+ $contentLayoutMaxContentWidth: --awsui-content-layout-max-content-width-66120l;
13
+ $contentLayoutMainGap: --awsui-content-layout-main-gap-66120l;
14
+ $defaultMaxContentWidth: --awsui-default-max-content-width-66120l;
15
+ $defaultMinContentWidth: --awsui-default-min-content-width-66120l;
16
+ $drawerSize: --awsui-drawer-size-66120l;
17
+ $drawerMinSize: --awsui-drawer-min-size-66120l;
18
+ $bottomDrawerSize: --awsui-bottom-drawer-size-66120l;
19
+ $footerHeight: --awsui-footer-height-66120l;
20
+ $headerGap: --awsui-header-gap-66120l;
21
+ $headerHeight: --awsui-header-height-66120l;
22
+ $layoutWidth: --awsui-layout-width-66120l;
23
+ $mainGap: --awsui-main-gap-66120l;
24
+ $mainOffsetLeft: --awsui-main-offset-left-66120l;
25
+ $mainTemplateRows: --awsui-main-template-rows-66120l;
26
+ $mobileBarHeight: --awsui-mobile-bar-height-66120l;
27
+ $notificationsHeight: --awsui-notifications-height-66120l;
28
+ $offsetTop: --awsui-offset-top-66120l;
29
+ $overlapHeight: --awsui-overlap-height-66120l;
30
+ $navigationWidth: --awsui-navigation-width-66120l;
31
+ $navigationCollapsedWidth: --awsui-navigation-collapsed-width-66120l;
32
+ $splitPanelReportedHeaderSize: --awsui-split-panel-reported-header-size-66120l;
33
+ $splitPanelReportedSize: --awsui-split-panel-reported-size-66120l;
34
+ $splitPanelHeight: --awsui-split-panel-height-66120l;
35
+ $splitPanelMinWidth: --awsui-split-panel-min-width-66120l;
36
+ $splitPanelMaxWidth: --awsui-split-panel-max-width-66120l;
37
+ $toolsMaxWidth: --awsui-tools-max-width-66120l;
38
+ $toolsWidth: --awsui-tools-width-66120l;
39
+ $toolsAnimationStartingOpacity: --awsui-tools-animation-starting-opacity-66120l;
40
+ $contentScrollMargin: --awsui-content-scroll-margin-66120l;
41
+ $flashbarStackDepth: --awsui-flashbar-stack-depth-66120l;
42
+ $flashbarStackIndex: --awsui-flashbar-stack-index-66120l;
43
+ $flashbarStickyBottomMargin: --awsui-flashbar-sticky-bottom-margin-66120l;
44
+ $stackedNotificationsBottomMargin: --awsui-stacked-notifications-bottom-margin-66120l;
45
+ $stackedNotificationsDefaultBottomMargin: --awsui-stacked-notifications-default-bottom-margin-66120l;
46
+ $dropdownDefaultMaxWidth: --awsui-dropdown-default-max-width-66120l;
47
+ $dropdownDefaultMinWidth: --awsui-dropdown-default-min-width-66120l;
48
+ $dropdownContentBorderColor: --awsui-dropdown-content-border-color-66120l;
49
+ $dropdownContentBorderWidth: --awsui-dropdown-content-border-width-66120l;
50
+ $dropdownContentBorderRadius: --awsui-dropdown-content-border-radius-66120l;
51
+ $modalCustomWidth: --awsui-modal-custom-width-66120l;
52
+ $modalCustomHeight: --awsui-modal-custom-height-66120l;
53
+ $spinnerRotatorFrom: --awsui-spinner-rotator-from-66120l;
54
+ $spinnerRotatorTo: --awsui-spinner-rotator-to-66120l;
55
+ $spinnerLineLeftFrom: --awsui-spinner-line-left-from-66120l;
56
+ $spinnerLineLeftTo: --awsui-spinner-line-left-to-66120l;
57
+ $spinnerLineRightFrom: --awsui-spinner-line-right-from-66120l;
58
+ $spinnerLineRightTo: --awsui-spinner-line-right-to-66120l;
59
+ $sliderLabelCount: --awsui-slider-label-count-66120l;
60
+ $sliderTickCount: --awsui-slider-tick-count-66120l;
61
+ $sliderReferenceColumn: --awsui-slider-reference-column-66120l;
62
+ $sliderNextReferenceColumn: --awsui-slider-next-reference-column-66120l;
63
+ $sliderMaxStart: --awsui-slider-max-start-66120l;
64
+ $sliderMinEnd: --awsui-slider-min-end-66120l;
65
+ $sliderRangeInlineSize: --awsui-slider-range-inline-size-66120l;
66
+ $sliderTooltipPosition: --awsui-slider-tooltip-position-66120l;
67
+ $togglesLeftWidth: --awsui-toggles-left-width-66120l;
68
+ $togglesRightWidth: --awsui-toggles-right-width-66120l;
69
+ $promptInputMaxRows: --awsui-prompt-input-max-rows-66120l;
70
+ $promptInputScrollHeight: --awsui-prompt-input-scroll-height-66120l;
71
+ $dragHandleAnimationInlineOffset: --awsui-drag-handle-animation-inline-offset-66120l;
72
+ $dragHandleAnimationBlockOffset: --awsui-drag-handle-animation-block-offset-66120l;
73
+ $styleBackgroundActive: --awsui-style-background-active-66120l;
74
+ $styleBackgroundDefault: --awsui-style-background-default-66120l;
75
+ $styleBackgroundDisabled: --awsui-style-background-disabled-66120l;
76
+ $styleBackgroundHover: --awsui-style-background-hover-66120l;
77
+ $styleBorderColorActive: --awsui-style-border-color-active-66120l;
78
+ $styleBorderColorDefault: --awsui-style-border-color-default-66120l;
79
+ $styleBorderColorDisabled: --awsui-style-border-color-disabled-66120l;
80
+ $styleBorderColorHover: --awsui-style-border-color-hover-66120l;
81
+ $styleColorActive: --awsui-style-color-active-66120l;
82
+ $styleColorDefault: --awsui-style-color-default-66120l;
83
+ $styleColorDisabled: --awsui-style-color-disabled-66120l;
84
+ $styleColorHover: --awsui-style-color-hover-66120l;
85
+ $styleFocusRingBorderColor: --awsui-style-focus-ring-border-color-66120l;
86
+ $styleFocusRingBorderRadius: --awsui-style-focus-ring-border-radius-66120l;
87
+ $styleFocusRingBorderWidth: --awsui-style-focus-ring-border-width-66120l;
88
+ $styleFocusRingBoxShadow: --awsui-style-focus-ring-box-shadow-66120l;
89
+ $styleBoxShadowActive: --awsui-style-box-shadow-active-66120l;
90
+ $styleBoxShadowDefault: --awsui-style-box-shadow-default-66120l;
91
+ $styleBoxShadowDisabled: --awsui-style-box-shadow-disabled-66120l;
92
+ $styleBoxShadowHover: --awsui-style-box-shadow-hover-66120l;
93
+ $styleBackgroundReadonly: --awsui-style-background-readonly-66120l;
94
+ $styleBorderColorReadonly: --awsui-style-border-color-readonly-66120l;
95
+ $styleBoxShadowReadonly: --awsui-style-box-shadow-readonly-66120l;
96
+ $styleColorReadonly: --awsui-style-color-readonly-66120l;
97
+ $styleBackgroundFocus: --awsui-style-background-focus-66120l;
98
+ $styleBorderColorFocus: --awsui-style-border-color-focus-66120l;
99
+ $styleBoxShadowFocus: --awsui-style-box-shadow-focus-66120l;
100
+ $styleColorFocus: --awsui-style-color-focus-66120l;
101
+ $stylePlaceholderColor: --awsui-style-placeholder-color-66120l;
102
+ $stylePlaceholderFontSize: --awsui-style-placeholder-font-size-66120l;
103
+ $stylePlaceholderFontStyle: --awsui-style-placeholder-font-style-66120l;
104
+ $stylePlaceholderFontWeight: --awsui-style-placeholder-font-weight-66120l;
105
+ $styleTabsActiveIndicatorColor: --awsui-style-tabs-active-indicator-color-66120l;
106
+ $styleTabsActiveIndicatorWidth: --awsui-style-tabs-active-indicator-width-66120l;
107
+ $styleTabsActiveIndicatorBorderRadius: --awsui-style-tabs-active-indicator-border-radius-66120l;
108
+ $styleTabsSeparatorColor: --awsui-style-tabs-separator-color-66120l;
109
+ $styleTabsSeparatorWidth: --awsui-style-tabs-separator-width-66120l;
110
+ $alertFocusRingBorderColor: --awsui-alert-focus-ring-border-color-66120l;
111
+ $alertFocusRingBorderRadius: --awsui-alert-focus-ring-border-radius-66120l;
112
+ $alertFocusRingBorderWidth: --awsui-alert-focus-ring-border-width-66120l;
113
+ $alertFocusRingBoxShadow: --awsui-alert-focus-ring-box-shadow-66120l;
114
+ $alertIconColor: --awsui-alert-icon-color-66120l;
115
+ $promptInputStyleBackgroundDefault: --awsui-prompt-input-style-background-default-66120l;
116
+ $promptInputStyleBackgroundDisabled: --awsui-prompt-input-style-background-disabled-66120l;
117
+ $promptInputStyleBackgroundFocus: --awsui-prompt-input-style-background-focus-66120l;
118
+ $promptInputStyleBackgroundHover: --awsui-prompt-input-style-background-hover-66120l;
119
+ $promptInputStyleBackgroundReadonly: --awsui-prompt-input-style-background-readonly-66120l;
120
+ $promptInputStyleBorderColorDefault: --awsui-prompt-input-style-border-color-default-66120l;
121
+ $promptInputStyleBorderColorDisabled: --awsui-prompt-input-style-border-color-disabled-66120l;
122
+ $promptInputStyleBorderColorFocus: --awsui-prompt-input-style-border-color-focus-66120l;
123
+ $promptInputStyleBorderColorHover: --awsui-prompt-input-style-border-color-hover-66120l;
124
+ $promptInputStyleBorderColorReadonly: --awsui-prompt-input-style-border-color-readonly-66120l;
125
+ $promptInputStyleBoxShadowDefault: --awsui-prompt-input-style-box-shadow-default-66120l;
126
+ $promptInputStyleBoxShadowDisabled: --awsui-prompt-input-style-box-shadow-disabled-66120l;
127
+ $promptInputStyleBoxShadowFocus: --awsui-prompt-input-style-box-shadow-focus-66120l;
128
+ $promptInputStyleBoxShadowHover: --awsui-prompt-input-style-box-shadow-hover-66120l;
129
+ $promptInputStyleBoxShadowReadonly: --awsui-prompt-input-style-box-shadow-readonly-66120l;
130
+ $promptInputStyleColorDefault: --awsui-prompt-input-style-color-default-66120l;
131
+ $promptInputStyleColorDisabled: --awsui-prompt-input-style-color-disabled-66120l;
132
+ $promptInputStyleColorFocus: --awsui-prompt-input-style-color-focus-66120l;
133
+ $promptInputStyleColorHover: --awsui-prompt-input-style-color-hover-66120l;
134
+ $promptInputStyleColorReadonly: --awsui-prompt-input-style-color-readonly-66120l;
135
+ $promptInputStylePlaceholderColor: --awsui-prompt-input-style-placeholder-color-66120l;
136
+ $promptInputStylePlaceholderFontSize: --awsui-prompt-input-style-placeholder-font-size-66120l;
137
+ $promptInputStylePlaceholderFontStyle: --awsui-prompt-input-style-placeholder-font-style-66120l;
138
+ $promptInputStylePlaceholderFontWeight: --awsui-prompt-input-style-placeholder-font-weight-66120l;
139
+ $promptInputMenuStyleBackgroundColor: --awsui-prompt-input-menu-style-background-color-66120l;
140
+ $promptInputMenuStyleBorderColor: --awsui-prompt-input-menu-style-border-color-66120l;
141
+ $promptInputMenuStyleBorderRadius: --awsui-prompt-input-menu-style-border-radius-66120l;
142
+ $promptInputMenuStyleBorderWidth: --awsui-prompt-input-menu-style-border-width-66120l;
143
+ $optionBackgroundDefault: --awsui-option-background-default-66120l;
144
+ $optionBackgroundHighlighted: --awsui-option-background-highlighted-66120l;
145
+ $optionBackgroundSelected: --awsui-option-background-selected-66120l;
146
+ $optionColorDefault: --awsui-option-color-default-66120l;
147
+ $optionColorHighlighted: --awsui-option-color-highlighted-66120l;
148
+ $optionColorDisabled: --awsui-option-color-disabled-66120l;
149
+ $optionGroupLabelColor: --awsui-option-group-label-color-66120l;
150
+ $optionFilterMatchBackground: --awsui-option-filter-match-background-66120l;
151
+ $optionFilterMatchColor: --awsui-option-filter-match-color-66120l;
152
+ $progressBarBackgroundColor: --awsui-progress-bar-background-color-66120l;
153
+ $progressBarBorderRadius: --awsui-progress-bar-border-radius-66120l;
154
+ $progressBarHeight: --awsui-progress-bar-height-66120l;
155
+ $progressValueBackgroundColor: --awsui-progress-value-background-color-66120l;
156
+ $styleSliderTrackBackgroundColor: --awsui-style-slider-track-background-color-66120l;
157
+ $styleSliderRangeBackgroundDefault: --awsui-style-slider-range-background-default-66120l;
158
+ $styleSliderRangeBackgroundActive: --awsui-style-slider-range-background-active-66120l;
159
+ $styleSliderHandleBackgroundDefault: --awsui-style-slider-handle-background-default-66120l;
160
+ $styleSliderHandleBackgroundHover: --awsui-style-slider-handle-background-hover-66120l;
161
+ $styleSliderHandleBackgroundActive: --awsui-style-slider-handle-background-active-66120l;
162
+ $styleSliderHandleBorderRadius: --awsui-style-slider-handle-border-radius-66120l;
163
+ $tokenStyleBackgroundDefault: --awsui-token-style-background-default-66120l;
164
+ $tokenStyleBackgroundDisabled: --awsui-token-style-background-disabled-66120l;
165
+ $tokenStyleBackgroundReadOnly: --awsui-token-style-background-read-only-66120l;
166
+ $tokenStyleBorderColorDefault: --awsui-token-style-border-color-default-66120l;
167
+ $tokenStyleBorderColorDisabled: --awsui-token-style-border-color-disabled-66120l;
168
+ $tokenStyleBorderColorReadOnly: --awsui-token-style-border-color-read-only-66120l;
169
+ $tokenStyleDismissColorDefault: --awsui-token-style-dismiss-color-default-66120l;
170
+ $tokenStyleDismissColorDisabled: --awsui-token-style-dismiss-color-disabled-66120l;
171
+ $tokenStyleDismissColorHover: --awsui-token-style-dismiss-color-hover-66120l;
172
+ $tokenStyleDismissColorReadOnly: --awsui-token-style-dismiss-color-read-only-66120l;
173
+ $styleItemCardBackgroundDefault: --awsui-style-item-card-background-default-66120l;
174
+ $styleItemCardBorderColorDefault: --awsui-style-item-card-border-color-default-66120l;
175
+ $styleItemCardBorderRadius: --awsui-style-item-card-border-radius-66120l;
176
+ $styleItemCardBorderWidthDefault: --awsui-style-item-card-border-width-default-66120l;
177
+ $styleItemCardBoxShadowDefault: --awsui-style-item-card-box-shadow-default-66120l;
178
+ $inlineLabelBackgroundColor: --awsui-inline-label-background-color-66120l;
178
179
 
@@ -8,6 +8,7 @@
8
8
  @use '../foundation' as foundation;
9
9
  @use '../utils' as utils;
10
10
  @use './constants' as constants;
11
+ @use '../../generated/custom-css-properties/index.scss' as custom-props;
11
12
 
12
13
  @mixin link-focus(
13
14
  $border-color: awsui.$color-border-item-focused,
@@ -329,7 +330,11 @@ $inline-label-border-radius: 2px;
329
330
  }
330
331
 
331
332
  @mixin inline-label {
332
- background: linear-gradient(to bottom, awsui.$color-background-layout-main, awsui.$color-background-input-default);
333
+ background: linear-gradient(
334
+ to bottom,
335
+ var(#{custom-props.$inlineLabelBackgroundColor}, awsui.$color-background-layout-main),
336
+ awsui.$color-background-input-default
337
+ );
333
338
  border-start-start-radius: $inline-label-border-radius;
334
339
  border-start-end-radius: $inline-label-border-radius;
335
340
  border-end-start-radius: $inline-label-border-radius;
@@ -351,5 +356,9 @@ $inline-label-border-radius: 2px;
351
356
  }
352
357
 
353
358
  @mixin inline-label-disabled {
354
- background: linear-gradient(to bottom, awsui.$color-background-layout-main, awsui.$color-background-input-disabled);
359
+ background: linear-gradient(
360
+ to bottom,
361
+ var(#{custom-props.$inlineLabelBackgroundColor}, awsui.$color-background-layout-main),
362
+ awsui.$color-background-input-disabled
363
+ );
355
364
  }
@@ -1,9 +1,10 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- @forward '@cloudscape-design/component-toolkit/internal/style-api';
4
+ @forward '@cloudscape-design/component-toolkit/internal/style-api' show combine, resolve;
5
5
 
6
6
  @use '@cloudscape-design/component-toolkit/internal/style-api' as toolkit;
7
+ @use 'awsui:environment' as env;
7
8
  @use './tokens' as awsui;
8
9
  @use './foundation' as foundation;
9
10
  @use './forms/mixins' as forms;
@@ -23,6 +24,44 @@ $focus-ring: (focus-ring-color, focus-ring-width, focus-ring-radius, focus-ring-
23
24
  // carriers (re-anchored by carriers() on the component root), so the ring below reaches ::before.
24
25
  $_focus-ring-carriers: toolkit.resolve($focus-ring, carrier);
25
26
 
27
+ @function enabled() {
28
+ @return env.$system != 'console';
29
+ }
30
+
31
+ // Emits `var(<carrier>, <fallback>)` when enabled, or just `<fallback>` when disabled — so a read
32
+ // leaves no trace in the compiled CSS for gated-off systems.
33
+ @function value($tokens, $token, $fallback) {
34
+ @if not enabled() {
35
+ @return $fallback;
36
+ }
37
+ @return var(#{toolkit.read($tokens, $token)}, #{$fallback});
38
+ }
39
+
40
+ // Gated wrappers around the toolkit's CSS-emitting mixins — same signatures, no-op when disabled.
41
+ @mixin register($maps...) {
42
+ @if enabled() {
43
+ @include toolkit.register($maps...);
44
+ }
45
+ }
46
+
47
+ @mixin carriers($map) {
48
+ @if enabled() {
49
+ @include toolkit.carriers($map);
50
+ }
51
+ }
52
+
53
+ @mixin docs($name, $map) {
54
+ @if enabled() {
55
+ @include toolkit.docs($name, $map);
56
+ }
57
+ }
58
+
59
+ @mixin docs-forward($name, $component, $slot) {
60
+ @if enabled() {
61
+ @include toolkit.docs-forward($name, $component, $slot);
62
+ }
63
+ }
64
+
26
65
  // A wrapper for forms.focus-highlight with style API integration.
27
66
  @mixin focus-highlight(
28
67
  $gutter-block: awsui.$space-button-focus-outline-gutter,
@@ -31,13 +70,24 @@ $_focus-ring-carriers: toolkit.resolve($focus-ring, carrier);
31
70
  $width: foundation.$box-shadow-focused-width,
32
71
  $color: awsui.$color-border-item-focused
33
72
  ) {
34
- @include forms.focus-highlight(
35
- $gutter: (
36
- 'vertical': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-block)}, #{$gutter-block}),
37
- 'horizontal': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-inline)}, #{$gutter-inline}),
38
- ),
39
- $border-radius: var(#{toolkit.read($_focus-ring-carriers, focus-ring-radius)}, #{$radius}),
40
- $box-shadow: 0 0 0 var(#{toolkit.read($_focus-ring-carriers, focus-ring-width)}, #{$width})
41
- var(#{toolkit.read($_focus-ring-carriers, focus-ring-color)}, #{$color})
42
- );
73
+ @if enabled() {
74
+ @include forms.focus-highlight(
75
+ $gutter: (
76
+ 'vertical': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-block)}, #{$gutter-block}),
77
+ 'horizontal': var(#{toolkit.read($_focus-ring-carriers, focus-ring-gutter-inline)}, #{$gutter-inline}),
78
+ ),
79
+ $border-radius: var(#{toolkit.read($_focus-ring-carriers, focus-ring-radius)}, #{$radius}),
80
+ $box-shadow: 0 0 0 var(#{toolkit.read($_focus-ring-carriers, focus-ring-width)}, #{$width})
81
+ var(#{toolkit.read($_focus-ring-carriers, focus-ring-color)}, #{$color})
82
+ );
83
+ } @else {
84
+ @include forms.focus-highlight(
85
+ $gutter: (
86
+ 'vertical': $gutter-block,
87
+ 'horizontal': $gutter-inline,
88
+ ),
89
+ $border-radius: $radius,
90
+ $box-shadow: 0 0 0 $width $color
91
+ );
92
+ }
43
93
  }
@@ -89,7 +89,9 @@
89
89
 
90
90
  &-input {
91
91
  inline-size: 87px;
92
- margin-block-start: -0.6em;
92
+ // This element contains the inline label and the HTML input element.
93
+ // Push it upwards to let the HTML input element look vertically centered.
94
+ margin-block-start: calc(-2 * #{awsui.$space-scaled-xs});
93
95
  overflow: visible;
94
96
  }
95
97
  }
@@ -7,6 +7,7 @@
7
7
  @use '../internal/styles/tokens' as awsui;
8
8
  @use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
9
9
  @use '../container/shared' as container;
10
+ @use '../internal/generated/custom-css-properties/index.scss' as custom-props;
10
11
 
11
12
  .root {
12
13
  @include styles.default-text-style;
@@ -194,6 +195,10 @@ filter search icon.
194
195
  .header-controls {
195
196
  padding-block: awsui.$space-container-header-top awsui.$space-container-header-bottom;
196
197
 
198
+ &:not(.variant-full-page) {
199
+ #{custom-props.$inlineLabelBackgroundColor}: awsui.$color-background-table-header;
200
+ }
201
+
197
202
  &.variant-full-page {
198
203
  padding-block: 0 calc(#{awsui.$space-container-header-bottom} + #{awsui.$space-table-header-tools-full-page-bottom});
199
204
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,0BAA0B,CAAC;AAEnF,QAAA,MAAM,kBAAkB,0HAiOvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,0BAA0B,CAAC;AAEnF,QAAA,MAAM,kBAAkB,0HAqOvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -35,7 +35,7 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
35
35
  fireCancelableEvent(onClick, {}, event);
36
36
  };
37
37
  const headerRowEmpty = !header && !description;
38
- const iconWrapper = icon && (React.createElement("div", { className: clsx(styles.icon, testStyles.icon), "aria-hidden": "true" }, icon));
38
+ const iconWrapper = icon && (React.createElement("div", { className: clsx(styles.icon, testStyles.icon), "aria-hidden": "true", "data-awsui-motion-target": "" }, icon));
39
39
  const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;
40
40
  const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);
41
41
  // Link the description element as the button's accessible description
@@ -49,6 +49,9 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
49
49
  onClick: handleButtonClick,
50
50
  'aria-describedby': ariaDescribedby,
51
51
  'aria-disabled': disabled || undefined,
52
+ // The hover region is the whole card (see the root element); focusing
53
+ // the inner control also plays the motion.
54
+ 'data-awsui-motion-trigger': 'focus',
52
55
  };
53
56
  // <a>-tag specific props
54
57
  const anchorProps = {
@@ -88,7 +91,7 @@ const InternalActionCard = React.forwardRef(({ header, description, children, on
88
91
  headerSection,
89
92
  iconWrapper)) : (headerSection),
90
93
  children && (React.createElement("div", { className: clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding']), id: bodyId }, children))));
91
- return (React.createElement("div", { ...baseProps, ref: mergedRootRef, role: "group", "aria-labelledby": header ? headerId : standaloneButtonId, className: clsx(styles.root, styles[`variant-${variant}`], disabled && styles.disabled, disabled && testStyles.disabled, !!icon && styles['has-icon'], !!icon && styles['icon-align-end'], !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`], baseProps.className), "aria-disabled": disabled || undefined },
94
+ return (React.createElement("div", { ...baseProps, ref: mergedRootRef, role: "group", "aria-labelledby": header ? headerId : standaloneButtonId, className: clsx(styles.root, styles[`variant-${variant}`], disabled && styles.disabled, disabled && testStyles.disabled, !!icon && styles['has-icon'], !!icon && styles['icon-align-end'], !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`], baseProps.className), "aria-disabled": disabled || undefined, "data-awsui-motion-trigger": "hover" },
92
95
  standaloneButton,
93
96
  contentElement,
94
97
  !iconInHeaderRow && iconWrapper));
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAG5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAItD,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CACzC,CACE,EACE,MAAM,EACN,WAAW,EACX,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,GAAG,EACH,QAAQ,EACR,SAAS,EACT,eAAe,EACf,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,IAAI,EACJ,qBAAqB,EACrB,OAAO,EACP,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AAC,CAAC,CAAC,kBAAkB,EACvD,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAC5B,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAC3B,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAC/B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,EAC5B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,gBAAgB,CAAC,EAClC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,uBAAuB,qBAAqB,EAAE,CAAC,EAChE,SAAS,CAAC,SAAS,CACpB,mBACc,QAAQ,IAAI,SAAS;QAEnC,gBAAgB;QAChB,cAAc;QACd,CAAC,eAAe,IAAI,WAAW,CAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport InternalStructuredItem from '../internal/components/structured-item';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { ActionCardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\nexport type InternalActionCardProps = ActionCardProps & InternalBaseComponentProps;\n\nconst InternalActionCard = React.forwardRef(\n (\n {\n header,\n description,\n children,\n onClick,\n onFollow,\n href,\n target,\n rel,\n download,\n ariaLabel,\n ariaDescribedby,\n disabled,\n disableHeaderPaddings,\n disableContentPaddings,\n icon,\n iconVerticalAlignment,\n variant,\n nativeButtonAttributes,\n nativeAnchorAttributes,\n __internalRootRef,\n ...rest\n }: InternalActionCardProps,\n ref: React.Ref<ActionCardProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const containerRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerId = useUniqueId('action-card-header-');\n const standaloneButtonId = useUniqueId('action-card-button-');\n const descriptionId = useUniqueId('action-card-description-');\n const bodyId = useUniqueId('action-card-body-');\n\n useForwardFocus(ref, containerRef);\n\n checkSafeUrl('ActionCard', href);\n const isAnchor = Boolean(href);\n\n if (!header && !ariaLabel) {\n warnOnce(\n 'ActionCard',\n 'An accessible name is required. Provide either a `header` or an `ariaLabel` prop so the action card has a meaningful label for screen reader users.'\n );\n }\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => {\n if (disabled) {\n return event.preventDefault();\n }\n if (isAnchor && isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, { href, target }, event);\n }\n fireCancelableEvent(onClick, {}, event);\n };\n\n const headerRowEmpty = !header && !description;\n\n const iconWrapper = icon && (\n <div className={clsx(styles.icon, testStyles.icon)} aria-hidden=\"true\">\n {icon}\n </div>\n );\n const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;\n\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n\n // Link the description element as the button's accessible description\n // when the button already has a name (via header text or ariaLabel).\n if (!ariaDescribedby && description && (ariaLabel || header)) {\n ariaDescribedby = descriptionId;\n }\n\n // Shared props between <a>-tag and <button>-tag\n const interactiveProps = {\n className: clsx(\n styles['header-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n onClick: handleButtonClick,\n 'aria-describedby': ariaDescribedby,\n 'aria-disabled': disabled || undefined,\n };\n\n // <a>-tag specific props\n const anchorProps = {\n href: disabled ? undefined : href,\n role: disabled ? 'link' : undefined,\n tabIndex: disabled ? 0 : undefined,\n target,\n // security recommendation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target\n rel: rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined),\n download,\n };\n\n const renderInteractiveElement = (props: Record<string, unknown>, children?: React.ReactNode) =>\n isAnchor ? (\n <WithNativeAttributes<HTMLAnchorElement, React.AnchorHTMLAttributes<HTMLAnchorElement>>\n {...props}\n {...anchorProps}\n tag=\"a\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeAnchorAttributes}\n ref={containerRef as React.Ref<HTMLAnchorElement>}\n >\n {children}\n </WithNativeAttributes>\n ) : (\n <WithNativeAttributes<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>\n {...props}\n type=\"button\"\n tag=\"button\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeButtonAttributes}\n ref={containerRef as React.Ref<HTMLButtonElement>}\n >\n {children}\n </WithNativeAttributes>\n );\n\n const headerSection = !headerRowEmpty ? (\n <div className={clsx(styles.header, disableHeaderPaddings && styles['no-padding'])}>\n <InternalStructuredItem\n content={\n header && (\n <div className={clsx(styles['header-inner'], testStyles.header, disabled && styles.disabled)}>\n {renderInteractiveElement({ ...interactiveProps, id: headerId }, header)}\n </div>\n )\n }\n secondaryContent={\n description && (\n <div\n id={descriptionId}\n className={clsx(\n styles.description,\n testStyles.description,\n disabled && styles.disabled,\n header && styles['has-header']\n )}\n >\n {description}\n </div>\n )\n }\n disablePaddings={disableHeaderPaddings}\n />\n </div>\n ) : null;\n\n // When there's no header, a standalone overlay button is rendered.\n // If ariaLabel is provided, it's used directly. Otherwise, derive the button's\n // accessible name from the first available content: description or children.\n let standaloneButtonLabelledBy: string | undefined;\n if (!ariaLabel) {\n if (description) {\n standaloneButtonLabelledBy = descriptionId;\n } else if (children) {\n standaloneButtonLabelledBy = bodyId;\n }\n }\n\n const standaloneOverlayProps = {\n ...interactiveProps,\n id: standaloneButtonId,\n className: clsx(\n styles['overlay-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n 'aria-label': ariaLabel || undefined,\n 'aria-labelledby': standaloneButtonLabelledBy,\n };\n\n const standaloneButton = !header ? renderInteractiveElement(standaloneOverlayProps) : null;\n\n const contentElement = (\n <div className={styles['inner-card']}>\n {iconInHeaderRow ? (\n <div className={styles['header-row']}>\n {headerSection}\n {iconWrapper}\n </div>\n ) : (\n headerSection\n )}\n {children && (\n <div\n className={clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding'])}\n id={bodyId}\n >\n {children}\n </div>\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n ref={mergedRootRef}\n role=\"group\"\n aria-labelledby={header ? headerId : standaloneButtonId}\n className={clsx(\n styles.root,\n styles[`variant-${variant}`],\n disabled && styles.disabled,\n disabled && testStyles.disabled,\n !!icon && styles['has-icon'],\n !!icon && styles['icon-align-end'],\n !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`],\n baseProps.className\n )}\n aria-disabled={disabled || undefined}\n >\n {standaloneButton}\n {contentElement}\n {!iconInHeaderRow && iconWrapper}\n </div>\n );\n }\n);\n\nexport default InternalActionCard;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/action-card/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEpG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,sBAAsB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,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CAAC,YAAY,CAAC;QACjC,eAAe,CAAC,CAAC,CAAC,CACjB,6BAAK,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC;YACjC,aAAa;YACb,WAAW,CACR,CACP,CAAC,CAAC,CAAC,CACF,aAAa,CACd;QACA,QAAQ,IAAI,CACX,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,sBAAsB,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,EAC7F,EAAE,EAAE,MAAM,IAET,QAAQ,CACL,CACP,CACG,CACP,CAAC;IAEF,OAAO,CACL,gCACM,SAAS,EACb,GAAG,EAAE,aAAa,EAClB,IAAI,EAAC,OAAO,qBACK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,EACvD,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAC5B,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAC3B,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAC/B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,EAC5B,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,gBAAgB,CAAC,EAClC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,uBAAuB,qBAAqB,EAAE,CAAC,EAChE,SAAS,CAAC,SAAS,CACpB,mBACc,QAAQ,IAAI,SAAS,+BACV,OAAO;QAEhC,gBAAgB;QAChB,cAAc;QACd,CAAC,eAAe,IAAI,WAAW,CAC5B,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getBaseProps } from '../internal/base-component';\nimport InternalStructuredItem from '../internal/components/structured-item';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { ActionCardProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\nexport type InternalActionCardProps = ActionCardProps & InternalBaseComponentProps;\n\nconst InternalActionCard = React.forwardRef(\n (\n {\n header,\n description,\n children,\n onClick,\n onFollow,\n href,\n target,\n rel,\n download,\n ariaLabel,\n ariaDescribedby,\n disabled,\n disableHeaderPaddings,\n disableContentPaddings,\n icon,\n iconVerticalAlignment,\n variant,\n nativeButtonAttributes,\n nativeAnchorAttributes,\n __internalRootRef,\n ...rest\n }: InternalActionCardProps,\n ref: React.Ref<ActionCardProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const containerRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerId = useUniqueId('action-card-header-');\n const standaloneButtonId = useUniqueId('action-card-button-');\n const descriptionId = useUniqueId('action-card-description-');\n const bodyId = useUniqueId('action-card-body-');\n\n useForwardFocus(ref, containerRef);\n\n checkSafeUrl('ActionCard', href);\n const isAnchor = Boolean(href);\n\n if (!header && !ariaLabel) {\n warnOnce(\n 'ActionCard',\n 'An accessible name is required. Provide either a `header` or an `ariaLabel` prop so the action card has a meaningful label for screen reader users.'\n );\n }\n\n const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => {\n if (disabled) {\n return event.preventDefault();\n }\n if (isAnchor && isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, { href, target }, event);\n }\n fireCancelableEvent(onClick, {}, event);\n };\n\n const headerRowEmpty = !header && !description;\n\n const iconWrapper = icon && (\n <div className={clsx(styles.icon, testStyles.icon)} aria-hidden=\"true\" data-awsui-motion-target=\"\">\n {icon}\n </div>\n );\n const iconInHeaderRow = icon && iconVerticalAlignment === 'top' && !!header;\n\n const mergedRootRef = useMergeRefs(rootRef, __internalRootRef);\n\n // Link the description element as the button's accessible description\n // when the button already has a name (via header text or ariaLabel).\n if (!ariaDescribedby && description && (ariaLabel || header)) {\n ariaDescribedby = descriptionId;\n }\n\n // Shared props between <a>-tag and <button>-tag\n const interactiveProps = {\n className: clsx(\n styles['header-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n onClick: handleButtonClick,\n 'aria-describedby': ariaDescribedby,\n 'aria-disabled': disabled || undefined,\n // The hover region is the whole card (see the root element); focusing\n // the inner control also plays the motion.\n 'data-awsui-motion-trigger': 'focus',\n };\n\n // <a>-tag specific props\n const anchorProps = {\n href: disabled ? undefined : href,\n role: disabled ? 'link' : undefined,\n tabIndex: disabled ? 0 : undefined,\n target,\n // security recommendation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target\n rel: rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined),\n download,\n };\n\n const renderInteractiveElement = (props: Record<string, unknown>, children?: React.ReactNode) =>\n isAnchor ? (\n <WithNativeAttributes<HTMLAnchorElement, React.AnchorHTMLAttributes<HTMLAnchorElement>>\n {...props}\n {...anchorProps}\n tag=\"a\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeAnchorAttributes}\n ref={containerRef as React.Ref<HTMLAnchorElement>}\n >\n {children}\n </WithNativeAttributes>\n ) : (\n <WithNativeAttributes<HTMLButtonElement, React.ButtonHTMLAttributes<HTMLButtonElement>>\n {...props}\n type=\"button\"\n tag=\"button\"\n componentName=\"ActionCard\"\n nativeAttributes={nativeButtonAttributes}\n ref={containerRef as React.Ref<HTMLButtonElement>}\n >\n {children}\n </WithNativeAttributes>\n );\n\n const headerSection = !headerRowEmpty ? (\n <div className={clsx(styles.header, disableHeaderPaddings && styles['no-padding'])}>\n <InternalStructuredItem\n content={\n header && (\n <div className={clsx(styles['header-inner'], testStyles.header, disabled && styles.disabled)}>\n {renderInteractiveElement({ ...interactiveProps, id: headerId }, header)}\n </div>\n )\n }\n secondaryContent={\n description && (\n <div\n id={descriptionId}\n className={clsx(\n styles.description,\n testStyles.description,\n disabled && styles.disabled,\n header && styles['has-header']\n )}\n >\n {description}\n </div>\n )\n }\n disablePaddings={disableHeaderPaddings}\n />\n </div>\n ) : null;\n\n // When there's no header, a standalone overlay button is rendered.\n // If ariaLabel is provided, it's used directly. Otherwise, derive the button's\n // accessible name from the first available content: description or children.\n let standaloneButtonLabelledBy: string | undefined;\n if (!ariaLabel) {\n if (description) {\n standaloneButtonLabelledBy = descriptionId;\n } else if (children) {\n standaloneButtonLabelledBy = bodyId;\n }\n }\n\n const standaloneOverlayProps = {\n ...interactiveProps,\n id: standaloneButtonId,\n className: clsx(\n styles['overlay-button'],\n testStyles.button,\n disabled && styles.disabled,\n variant && styles[`variant-${variant}`]\n ),\n 'aria-label': ariaLabel || undefined,\n 'aria-labelledby': standaloneButtonLabelledBy,\n };\n\n const standaloneButton = !header ? renderInteractiveElement(standaloneOverlayProps) : null;\n\n const contentElement = (\n <div className={styles['inner-card']}>\n {iconInHeaderRow ? (\n <div className={styles['header-row']}>\n {headerSection}\n {iconWrapper}\n </div>\n ) : (\n headerSection\n )}\n {children && (\n <div\n className={clsx(styles.body, testStyles.body, disableContentPaddings && styles['no-padding'])}\n id={bodyId}\n >\n {children}\n </div>\n )}\n </div>\n );\n\n return (\n <div\n {...baseProps}\n ref={mergedRootRef}\n role=\"group\"\n aria-labelledby={header ? headerId : standaloneButtonId}\n className={clsx(\n styles.root,\n styles[`variant-${variant}`],\n disabled && styles.disabled,\n disabled && testStyles.disabled,\n !!icon && styles['has-icon'],\n !!icon && styles['icon-align-end'],\n !!icon && styles[`icon-vertical-align-${iconVerticalAlignment}`],\n baseProps.className\n )}\n aria-disabled={disabled || undefined}\n data-awsui-motion-trigger=\"hover\"\n >\n {standaloneButton}\n {contentElement}\n {!iconInHeaderRow && iconWrapper}\n </div>\n );\n }\n);\n\nexport default InternalActionCard;\n"]}