@cloudscape-design/components 3.0.534 → 3.0.535

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 (358) hide show
  1. package/alert/styles.css.js +25 -25
  2. package/alert/styles.scoped.css +45 -39
  3. package/alert/styles.selectors.js +25 -25
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +24 -18
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +36 -30
  9. package/annotation-context/annotation/styles.selectors.js +24 -24
  10. package/app-layout/content-wrapper/styles.css.js +3 -3
  11. package/app-layout/content-wrapper/styles.scoped.css +12 -6
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +12 -12
  14. package/app-layout/drawer/styles.scoped.css +26 -20
  15. package/app-layout/drawer/styles.selectors.js +12 -12
  16. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  17. package/app-layout/mobile-toolbar/styles.scoped.css +14 -8
  18. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  19. package/app-layout/notifications/styles.css.js +3 -3
  20. package/app-layout/notifications/styles.scoped.css +7 -7
  21. package/app-layout/notifications/styles.selectors.js +3 -3
  22. package/app-layout/split-panel/styles.css.js +2 -2
  23. package/app-layout/split-panel/styles.scoped.css +8 -2
  24. package/app-layout/split-panel/styles.selectors.js +2 -2
  25. package/app-layout/styles.css.js +16 -16
  26. package/app-layout/styles.scoped.css +25 -19
  27. package/app-layout/styles.selectors.js +16 -16
  28. package/app-layout/toggles/styles.css.js +2 -2
  29. package/app-layout/toggles/styles.scoped.css +12 -6
  30. package/app-layout/toggles/styles.selectors.js +2 -2
  31. package/app-layout/visual-refresh/styles.css.js +81 -81
  32. package/app-layout/visual-refresh/styles.scoped.css +294 -288
  33. package/app-layout/visual-refresh/styles.selectors.js +81 -81
  34. package/area-chart/styles.css.js +6 -6
  35. package/area-chart/styles.scoped.css +15 -9
  36. package/area-chart/styles.selectors.js +6 -6
  37. package/attribute-editor/styles.css.js +14 -14
  38. package/attribute-editor/styles.scoped.css +30 -24
  39. package/attribute-editor/styles.selectors.js +14 -14
  40. package/autosuggest/autosuggest-option.d.ts +0 -1
  41. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  42. package/autosuggest/autosuggest-option.js +2 -4
  43. package/autosuggest/autosuggest-option.js.map +1 -1
  44. package/autosuggest/internal.d.ts.map +1 -1
  45. package/autosuggest/internal.js +2 -5
  46. package/autosuggest/internal.js.map +1 -1
  47. package/autosuggest/options-controller.d.ts +2 -1
  48. package/autosuggest/options-controller.d.ts.map +1 -1
  49. package/autosuggest/options-controller.js +15 -3
  50. package/autosuggest/options-controller.js.map +1 -1
  51. package/autosuggest/options-list.d.ts +2 -2
  52. package/autosuggest/options-list.d.ts.map +1 -1
  53. package/autosuggest/options-list.js +2 -2
  54. package/autosuggest/options-list.js.map +1 -1
  55. package/autosuggest/plain-list.d.ts +2 -3
  56. package/autosuggest/plain-list.d.ts.map +1 -1
  57. package/autosuggest/plain-list.js +2 -2
  58. package/autosuggest/plain-list.js.map +1 -1
  59. package/autosuggest/virtual-list.d.ts +1 -1
  60. package/autosuggest/virtual-list.d.ts.map +1 -1
  61. package/autosuggest/virtual-list.js +2 -2
  62. package/autosuggest/virtual-list.js.map +1 -1
  63. package/badge/styles.css.js +5 -5
  64. package/badge/styles.scoped.css +11 -5
  65. package/badge/styles.selectors.js +5 -5
  66. package/box/styles.css.js +190 -190
  67. package/box/styles.scoped.css +253 -235
  68. package/box/styles.selectors.js +190 -190
  69. package/breadcrumb-group/item/styles.css.js +9 -9
  70. package/breadcrumb-group/item/styles.scoped.css +23 -17
  71. package/breadcrumb-group/item/styles.selectors.js +9 -9
  72. package/breadcrumb-group/styles.css.js +7 -7
  73. package/breadcrumb-group/styles.scoped.css +18 -12
  74. package/breadcrumb-group/styles.selectors.js +7 -7
  75. package/button/styles.css.js +20 -20
  76. package/button/styles.scoped.css +157 -151
  77. package/button/styles.selectors.js +20 -20
  78. package/button-dropdown/category-elements/styles.css.js +13 -13
  79. package/button-dropdown/category-elements/styles.scoped.css +29 -23
  80. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  81. package/button-dropdown/item-element/styles.css.js +15 -15
  82. package/button-dropdown/item-element/styles.scoped.css +24 -18
  83. package/button-dropdown/item-element/styles.selectors.js +15 -15
  84. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  85. package/button-dropdown/mobile-expandable-group/styles.scoped.css +11 -5
  86. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  87. package/button-dropdown/styles.css.js +15 -15
  88. package/button-dropdown/styles.scoped.css +28 -22
  89. package/button-dropdown/styles.selectors.js +15 -15
  90. package/calendar/styles.css.js +18 -18
  91. package/calendar/styles.scoped.css +44 -38
  92. package/calendar/styles.selectors.js +18 -18
  93. package/cards/styles.css.js +40 -40
  94. package/cards/styles.scoped.css +56 -50
  95. package/cards/styles.selectors.js +40 -40
  96. package/checkbox/styles.css.js +3 -3
  97. package/checkbox/styles.scoped.css +11 -5
  98. package/checkbox/styles.selectors.js +3 -3
  99. package/code-editor/styles.css.js +32 -32
  100. package/code-editor/styles.scoped.css +135 -129
  101. package/code-editor/styles.selectors.js +32 -32
  102. package/collection-preferences/content-display/styles.css.js +11 -11
  103. package/collection-preferences/content-display/styles.scoped.css +29 -17
  104. package/collection-preferences/content-display/styles.selectors.js +11 -11
  105. package/collection-preferences/styles.css.js +37 -37
  106. package/collection-preferences/styles.scoped.css +68 -44
  107. package/collection-preferences/styles.selectors.js +37 -37
  108. package/column-layout/styles.css.js +13 -13
  109. package/column-layout/styles.scoped.css +49 -43
  110. package/column-layout/styles.selectors.js +13 -13
  111. package/container/styles.css.js +30 -30
  112. package/container/styles.scoped.css +60 -54
  113. package/container/styles.selectors.js +30 -30
  114. package/content-layout/styles.css.js +7 -7
  115. package/content-layout/styles.scoped.css +19 -13
  116. package/content-layout/styles.selectors.js +7 -7
  117. package/date-picker/styles.css.js +7 -7
  118. package/date-picker/styles.scoped.css +15 -9
  119. package/date-picker/styles.selectors.js +7 -7
  120. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  121. package/date-range-picker/calendar/grids/styles.scoped.css +48 -42
  122. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  123. package/date-range-picker/relative-range/styles.css.js +9 -9
  124. package/date-range-picker/relative-range/styles.scoped.css +19 -13
  125. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  126. package/date-range-picker/styles.css.js +39 -39
  127. package/date-range-picker/styles.scoped.css +54 -48
  128. package/date-range-picker/styles.selectors.js +39 -39
  129. package/drawer/styles.css.js +3 -3
  130. package/drawer/styles.scoped.css +14 -8
  131. package/drawer/styles.selectors.js +3 -3
  132. package/expandable-section/styles.css.js +32 -32
  133. package/expandable-section/styles.scoped.css +68 -62
  134. package/expandable-section/styles.selectors.js +32 -32
  135. package/file-upload/dropzone/styles.css.js +2 -2
  136. package/file-upload/dropzone/styles.scoped.css +8 -2
  137. package/file-upload/dropzone/styles.selectors.js +2 -2
  138. package/file-upload/file-input/styles.css.js +4 -4
  139. package/file-upload/file-input/styles.scoped.css +13 -7
  140. package/file-upload/file-input/styles.selectors.js +4 -4
  141. package/flashbar/styles.css.js +47 -47
  142. package/flashbar/styles.scoped.css +177 -171
  143. package/flashbar/styles.selectors.js +47 -47
  144. package/form/styles.css.js +9 -9
  145. package/form/styles.scoped.css +14 -8
  146. package/form/styles.selectors.js +9 -9
  147. package/form-field/styles.css.js +19 -19
  148. package/form-field/styles.scoped.css +35 -29
  149. package/form-field/styles.selectors.js +19 -19
  150. package/grid/styles.css.js +53 -53
  151. package/grid/styles.scoped.css +60 -54
  152. package/grid/styles.selectors.js +53 -53
  153. package/header/styles.css.js +34 -34
  154. package/header/styles.scoped.css +80 -50
  155. package/header/styles.selectors.js +34 -34
  156. package/help-panel/styles.css.js +4 -4
  157. package/help-panel/styles.scoped.css +69 -63
  158. package/help-panel/styles.selectors.js +4 -4
  159. package/hotspot/styles.css.js +7 -7
  160. package/hotspot/styles.scoped.css +13 -7
  161. package/hotspot/styles.selectors.js +7 -7
  162. package/icon/internal.d.ts.map +1 -1
  163. package/icon/internal.js +1 -1
  164. package/icon/internal.js.map +1 -1
  165. package/icon/styles.css.js +36 -21
  166. package/icon/styles.scoped.css +92 -48
  167. package/icon/styles.selectors.js +36 -21
  168. package/input/styles.css.js +12 -12
  169. package/input/styles.scoped.css +36 -30
  170. package/input/styles.selectors.js +12 -12
  171. package/internal/components/abstract-switch/styles.css.js +13 -13
  172. package/internal/components/abstract-switch/styles.scoped.css +26 -20
  173. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  174. package/internal/components/button-trigger/styles.css.js +10 -10
  175. package/internal/components/button-trigger/styles.scoped.css +30 -24
  176. package/internal/components/button-trigger/styles.selectors.js +10 -10
  177. package/internal/components/chart-filter/styles.css.js +3 -3
  178. package/internal/components/chart-filter/styles.scoped.css +9 -3
  179. package/internal/components/chart-filter/styles.selectors.js +3 -3
  180. package/internal/components/chart-legend/styles.css.js +6 -6
  181. package/internal/components/chart-legend/styles.scoped.css +21 -15
  182. package/internal/components/chart-legend/styles.selectors.js +6 -6
  183. package/internal/components/chart-plot/styles.css.js +5 -5
  184. package/internal/components/chart-plot/styles.scoped.css +11 -5
  185. package/internal/components/chart-plot/styles.selectors.js +5 -5
  186. package/internal/components/chart-popover/styles.css.js +3 -3
  187. package/internal/components/chart-popover/styles.scoped.css +9 -3
  188. package/internal/components/chart-popover/styles.selectors.js +3 -3
  189. package/internal/components/chart-series-details/styles.css.js +20 -20
  190. package/internal/components/chart-series-details/styles.scoped.css +39 -33
  191. package/internal/components/chart-series-details/styles.selectors.js +20 -20
  192. package/internal/components/chart-series-marker/styles.css.js +5 -5
  193. package/internal/components/chart-series-marker/styles.scoped.css +13 -7
  194. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  195. package/internal/components/chart-wrapper/styles.css.js +9 -9
  196. package/internal/components/chart-wrapper/styles.scoped.css +15 -9
  197. package/internal/components/chart-wrapper/styles.selectors.js +9 -9
  198. package/internal/components/checkbox-icon/styles.css.js +7 -7
  199. package/internal/components/checkbox-icon/styles.scoped.css +14 -8
  200. package/internal/components/checkbox-icon/styles.selectors.js +7 -7
  201. package/internal/components/dropdown/styles.css.js +20 -20
  202. package/internal/components/dropdown/styles.scoped.css +62 -36
  203. package/internal/components/dropdown/styles.selectors.js +20 -20
  204. package/internal/components/dropdown-footer/styles.css.js +3 -3
  205. package/internal/components/dropdown-footer/styles.scoped.css +9 -3
  206. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  207. package/internal/components/dropdown-status/styles.css.js +2 -2
  208. package/internal/components/dropdown-status/styles.scoped.css +8 -2
  209. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  210. package/internal/components/filtering-token/styles.css.js +7 -7
  211. package/internal/components/filtering-token/styles.scoped.css +19 -13
  212. package/internal/components/filtering-token/styles.selectors.js +7 -7
  213. package/internal/components/handle/styles.css.js +2 -2
  214. package/internal/components/handle/styles.scoped.css +12 -6
  215. package/internal/components/handle/styles.selectors.js +2 -2
  216. package/internal/components/menu-dropdown/styles.css.js +7 -7
  217. package/internal/components/menu-dropdown/styles.scoped.css +19 -13
  218. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  219. package/internal/components/option/styles.css.js +17 -17
  220. package/internal/components/option/styles.scoped.css +35 -29
  221. package/internal/components/option/styles.selectors.js +17 -17
  222. package/internal/components/options-list/styles.css.js +2 -2
  223. package/internal/components/options-list/styles.scoped.css +8 -2
  224. package/internal/components/options-list/styles.selectors.js +2 -2
  225. package/internal/components/screenreader-only/styles.css.js +1 -1
  226. package/internal/components/screenreader-only/styles.scoped.css +7 -1
  227. package/internal/components/screenreader-only/styles.selectors.js +1 -1
  228. package/internal/components/selectable-item/styles.css.js +16 -16
  229. package/internal/components/selectable-item/styles.scoped.css +35 -29
  230. package/internal/components/selectable-item/styles.selectors.js +16 -16
  231. package/internal/components/token-list/styles.css.js +9 -9
  232. package/internal/components/token-list/styles.scoped.css +26 -20
  233. package/internal/components/token-list/styles.selectors.js +9 -9
  234. package/internal/environment.js +1 -1
  235. package/internal/environment.json +1 -1
  236. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  237. package/internal/generated/custom-css-properties/index.js +46 -40
  238. package/internal/generated/custom-css-properties/index.js.map +1 -1
  239. package/internal/manifest.json +1 -1
  240. package/link/styles.css.js +20 -20
  241. package/link/styles.scoped.css +77 -71
  242. package/link/styles.selectors.js +20 -20
  243. package/mixed-line-bar-chart/styles.css.js +11 -11
  244. package/mixed-line-bar-chart/styles.scoped.css +23 -17
  245. package/mixed-line-bar-chart/styles.selectors.js +11 -11
  246. package/modal/styles.css.js +23 -23
  247. package/modal/styles.scoped.css +44 -38
  248. package/modal/styles.selectors.js +23 -23
  249. package/multiselect/styles.css.js +2 -2
  250. package/multiselect/styles.scoped.css +8 -2
  251. package/multiselect/styles.selectors.js +2 -2
  252. package/package.json +1 -1
  253. package/pagination/styles.css.js +9 -9
  254. package/pagination/styles.scoped.css +29 -23
  255. package/pagination/styles.selectors.js +9 -9
  256. package/pie-chart/styles.css.js +27 -27
  257. package/pie-chart/styles.scoped.css +54 -48
  258. package/pie-chart/styles.selectors.js +27 -27
  259. package/popover/styles.css.js +50 -50
  260. package/popover/styles.scoped.css +94 -64
  261. package/popover/styles.selectors.js +50 -50
  262. package/progress-bar/styles.css.js +18 -18
  263. package/progress-bar/styles.scoped.css +44 -32
  264. package/progress-bar/styles.selectors.js +18 -18
  265. package/property-filter/property-filter-autosuggest.js +2 -1
  266. package/property-filter/property-filter-autosuggest.js.map +1 -1
  267. package/property-filter/styles.css.js +31 -31
  268. package/property-filter/styles.scoped.css +39 -33
  269. package/property-filter/styles.selectors.js +31 -31
  270. package/radio-group/styles.css.js +9 -9
  271. package/radio-group/styles.scoped.css +21 -15
  272. package/radio-group/styles.selectors.js +9 -9
  273. package/segmented-control/styles.css.js +14 -14
  274. package/segmented-control/styles.scoped.css +39 -33
  275. package/segmented-control/styles.selectors.js +14 -14
  276. package/select/parts/styles.css.js +16 -16
  277. package/select/parts/styles.scoped.css +22 -16
  278. package/select/parts/styles.selectors.js +16 -16
  279. package/select/styles.css.js +1 -1
  280. package/select/styles.scoped.css +7 -1
  281. package/select/styles.selectors.js +1 -1
  282. package/side-navigation/styles.css.js +28 -28
  283. package/side-navigation/styles.scoped.css +44 -38
  284. package/side-navigation/styles.selectors.js +28 -28
  285. package/space-between/styles.css.js +23 -23
  286. package/space-between/styles.scoped.css +30 -24
  287. package/space-between/styles.selectors.js +23 -23
  288. package/spinner/styles.css.js +13 -13
  289. package/spinner/styles.scoped.css +58 -26
  290. package/spinner/styles.selectors.js +13 -13
  291. package/split-panel/styles.css.js +55 -55
  292. package/split-panel/styles.scoped.css +87 -75
  293. package/split-panel/styles.selectors.js +55 -55
  294. package/status-indicator/styles.css.js +23 -23
  295. package/status-indicator/styles.scoped.css +35 -29
  296. package/status-indicator/styles.selectors.js +23 -23
  297. package/table/body-cell/styles.css.js +30 -30
  298. package/table/body-cell/styles.scoped.css +87 -81
  299. package/table/body-cell/styles.selectors.js +30 -30
  300. package/table/header-cell/styles.css.js +24 -24
  301. package/table/header-cell/styles.scoped.css +50 -44
  302. package/table/header-cell/styles.selectors.js +24 -24
  303. package/table/resizer/styles.css.js +8 -8
  304. package/table/resizer/styles.scoped.css +20 -14
  305. package/table/resizer/styles.selectors.js +8 -8
  306. package/table/selection/styles.css.js +3 -3
  307. package/table/selection/styles.scoped.css +9 -3
  308. package/table/selection/styles.selectors.js +3 -3
  309. package/table/sticky-scrollbar/styles.css.js +6 -6
  310. package/table/sticky-scrollbar/styles.scoped.css +13 -7
  311. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  312. package/table/styles.css.js +35 -35
  313. package/table/styles.scoped.css +46 -40
  314. package/table/styles.selectors.js +35 -35
  315. package/table/table-role/table-role-helper.js +1 -1
  316. package/table/table-role/table-role-helper.js.map +1 -1
  317. package/tabs/styles.css.js +21 -21
  318. package/tabs/styles.scoped.css +51 -39
  319. package/tabs/styles.selectors.js +21 -21
  320. package/tag-editor/styles.css.js +3 -3
  321. package/tag-editor/styles.scoped.css +16 -10
  322. package/tag-editor/styles.selectors.js +3 -3
  323. package/text-content/styles.css.js +1 -1
  324. package/text-content/styles.scoped.css +66 -60
  325. package/text-content/styles.selectors.js +1 -1
  326. package/text-filter/styles.css.js +3 -3
  327. package/text-filter/styles.scoped.css +9 -3
  328. package/text-filter/styles.selectors.js +3 -3
  329. package/textarea/styles.css.js +4 -4
  330. package/textarea/styles.scoped.css +18 -12
  331. package/textarea/styles.selectors.js +4 -4
  332. package/tiles/styles.css.js +29 -29
  333. package/tiles/styles.scoped.css +76 -70
  334. package/tiles/styles.selectors.js +29 -29
  335. package/toggle/styles.css.js +8 -8
  336. package/toggle/styles.scoped.css +19 -13
  337. package/toggle/styles.selectors.js +8 -8
  338. package/token-group/styles.css.js +8 -8
  339. package/token-group/styles.scoped.css +22 -16
  340. package/token-group/styles.selectors.js +8 -8
  341. package/top-navigation/1.0-beta/styles.css.js +25 -25
  342. package/top-navigation/1.0-beta/styles.scoped.css +48 -42
  343. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  344. package/top-navigation/styles.css.js +47 -47
  345. package/top-navigation/styles.scoped.css +72 -66
  346. package/top-navigation/styles.selectors.js +47 -47
  347. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  348. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +27 -21
  349. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  350. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  351. package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -27
  352. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  353. package/tutorial-panel/styles.css.js +1 -1
  354. package/tutorial-panel/styles.scoped.css +7 -1
  355. package/tutorial-panel/styles.selectors.js +1 -1
  356. package/wizard/styles.css.js +32 -32
  357. package/wizard/styles.scoped.css +74 -68
  358. package/wizard/styles.selectors.js +32 -32
@@ -6,6 +6,12 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
+ /* stylelint-disable @cloudscape-design/no-implicit-descendant, plugin/no-unsupported-browser-features, selector-combinator-disallowed-list */
10
+ /* stylelint-enable @cloudscape-design/no-implicit-descendant, plugin/no-unsupported-browser-features, selector-combinator-disallowed-list */
11
+ /*
12
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
13
+ SPDX-License-Identifier: Apache-2.0
14
+ */
9
15
  /*
10
16
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
17
  SPDX-License-Identifier: Apache-2.0
@@ -91,7 +97,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
91
97
  SPDX-License-Identifier: Apache-2.0
92
98
  */
93
99
  /* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
94
- .awsui_help-panel_1d237_1fyrw_94:not(#\9) {
100
+ .awsui_help-panel_1d237_ubb68_100:not(#\9) {
95
101
  border-collapse: separate;
96
102
  border-spacing: 0;
97
103
  box-sizing: border-box;
@@ -131,36 +137,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
131
137
  padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
132
138
  padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
133
139
  }
134
- .awsui_help-panel_1d237_1fyrw_94 hr:not(#\9) {
140
+ .awsui_help-panel_1d237_ubb68_100 hr:not(#\9) {
135
141
  border-block: none;
136
142
  border-inline: none;
137
143
  border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
138
144
  margin-block: var(--space-scaled-xl-kswcw7, 24px);
139
145
  margin-inline: calc(-1 * var(--space-xs-zb16t3, 8px));
140
146
  }
141
- .awsui_help-panel_1d237_1fyrw_94 ol:not(#\9),
142
- .awsui_help-panel_1d237_1fyrw_94 ul:not(#\9) {
147
+ .awsui_help-panel_1d237_ubb68_100 ol:not(#\9),
148
+ .awsui_help-panel_1d237_ubb68_100 ul:not(#\9) {
143
149
  padding-inline-start: var(--space-l-t419sm, 20px);
144
150
  list-style-position: outside;
145
151
  margin-block: var(--space-s-34lx8l, 12px);
146
152
  margin-inline: 0;
147
153
  }
148
- .awsui_help-panel_1d237_1fyrw_94 li:not(#\9) {
154
+ .awsui_help-panel_1d237_ubb68_100 li:not(#\9) {
149
155
  margin-block: var(--space-scaled-xxs-7597g1, 4px);
150
156
  margin-inline: 0;
151
157
  }
152
- .awsui_help-panel_1d237_1fyrw_94 a:not(#\9),
153
- .awsui_help-panel_1d237_1fyrw_94 h2:not(#\9),
154
- .awsui_help-panel_1d237_1fyrw_94 h3:not(#\9),
155
- .awsui_help-panel_1d237_1fyrw_94 h4:not(#\9),
156
- .awsui_help-panel_1d237_1fyrw_94 h5:not(#\9),
157
- .awsui_help-panel_1d237_1fyrw_94 pre:not(#\9),
158
- .awsui_help-panel_1d237_1fyrw_94 code:not(#\9) {
158
+ .awsui_help-panel_1d237_ubb68_100 a:not(#\9),
159
+ .awsui_help-panel_1d237_ubb68_100 h2:not(#\9),
160
+ .awsui_help-panel_1d237_ubb68_100 h3:not(#\9),
161
+ .awsui_help-panel_1d237_ubb68_100 h4:not(#\9),
162
+ .awsui_help-panel_1d237_ubb68_100 h5:not(#\9),
163
+ .awsui_help-panel_1d237_ubb68_100 pre:not(#\9),
164
+ .awsui_help-panel_1d237_ubb68_100 code:not(#\9) {
159
165
  margin-block: var(--space-xs-zb16t3, 8px);
160
166
  margin-inline: 0;
161
167
  padding-block: 0;
162
168
  }
163
- .awsui_help-panel_1d237_1fyrw_94 code:not(#\9) {
169
+ .awsui_help-panel_1d237_ubb68_100 code:not(#\9) {
164
170
  font-size: var(--font-size-body-s-asqx2i, 12px);
165
171
  line-height: var(--line-height-body-s-7zv1j5, 16px);
166
172
  letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
@@ -171,7 +177,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
171
177
  word-wrap: break-word;
172
178
  white-space: pre-wrap;
173
179
  }
174
- .awsui_help-panel_1d237_1fyrw_94 pre:not(#\9) {
180
+ .awsui_help-panel_1d237_ubb68_100 pre:not(#\9) {
175
181
  font-size: var(--font-size-body-s-asqx2i, 12px);
176
182
  line-height: var(--line-height-body-s-7zv1j5, 16px);
177
183
  letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
@@ -184,41 +190,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
184
190
  padding-block: var(--space-xxs-p8yyaw, 4px);
185
191
  padding-inline: var(--space-xxs-p8yyaw, 4px);
186
192
  }
187
- .awsui_help-panel_1d237_1fyrw_94 dl:not(#\9) {
193
+ .awsui_help-panel_1d237_ubb68_100 dl:not(#\9) {
188
194
  margin-block: var(--space-s-34lx8l, 12px);
189
195
  margin-inline: 0;
190
196
  /* stylelint-disable-next-line selector-max-universal */
191
197
  }
192
- .awsui_help-panel_1d237_1fyrw_94 dl *:not(#\9) {
198
+ .awsui_help-panel_1d237_ubb68_100 dl *:not(#\9) {
193
199
  margin-block: 0;
194
200
  }
195
- .awsui_help-panel_1d237_1fyrw_94 dt:not(#\9) {
201
+ .awsui_help-panel_1d237_ubb68_100 dt:not(#\9) {
196
202
  margin-block-start: var(--space-xs-zb16t3, 8px);
197
203
  font-weight: 700;
198
204
  }
199
- .awsui_help-panel_1d237_1fyrw_94 dd:not(#\9) {
205
+ .awsui_help-panel_1d237_ubb68_100 dd:not(#\9) {
200
206
  margin-block-start: 0;
201
207
  margin-block-end: var(--space-xs-zb16t3, 8px);
202
208
  margin-inline: 0;
203
209
  }
204
- .awsui_help-panel_1d237_1fyrw_94 h2:not(#\9),
205
- .awsui_help-panel_1d237_1fyrw_94 h3:not(#\9),
206
- .awsui_help-panel_1d237_1fyrw_94 h4:not(#\9),
207
- .awsui_help-panel_1d237_1fyrw_94 h5:not(#\9),
208
- .awsui_help-panel_1d237_1fyrw_94 h6:not(#\9) {
210
+ .awsui_help-panel_1d237_ubb68_100 h2:not(#\9),
211
+ .awsui_help-panel_1d237_ubb68_100 h3:not(#\9),
212
+ .awsui_help-panel_1d237_ubb68_100 h4:not(#\9),
213
+ .awsui_help-panel_1d237_ubb68_100 h5:not(#\9),
214
+ .awsui_help-panel_1d237_ubb68_100 h6:not(#\9) {
209
215
  margin-block-start: var(--space-xl-lmui9r, 24px);
210
216
  color: var(--color-text-heading-default-lstrpn, #000716);
211
217
  }
212
- .awsui_help-panel_1d237_1fyrw_94 > :not(#\9):last-child {
218
+ .awsui_help-panel_1d237_ubb68_100 > :not(#\9):last-child {
213
219
  margin-block-end: var(--space-scaled-xxxl-fdg8ai, 40px);
214
220
  }
215
- .awsui_help-panel_1d237_1fyrw_94 p:not(#\9) {
221
+ .awsui_help-panel_1d237_ubb68_100 p:not(#\9) {
216
222
  color: inherit;
217
223
  text-decoration: none;
218
224
  margin-block: var(--space-s-34lx8l, 12px);
219
225
  margin-inline: 0;
220
226
  }
221
- .awsui_help-panel_1d237_1fyrw_94 h1:not(#\9) {
227
+ .awsui_help-panel_1d237_ubb68_100 h1:not(#\9) {
222
228
  font-size: var(--font-size-heading-xl-ypc05a, 24px);
223
229
  line-height: var(--line-height-heading-xl-avbttk, 30px);
224
230
  letter-spacing: var(--letter-spacing-heading-xl-sagq9c, -0.02em);
@@ -226,7 +232,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
226
232
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
227
233
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
228
234
  }
229
- .awsui_help-panel_1d237_1fyrw_94 h2:not(#\9) {
235
+ .awsui_help-panel_1d237_ubb68_100 h2:not(#\9) {
230
236
  font-size: var(--font-size-heading-l-ou0d0l, 20px);
231
237
  line-height: var(--line-height-heading-l-mmm3my, 24px);
232
238
  letter-spacing: var(--letter-spacing-heading-l-qqjd4y, -0.015em);
@@ -234,7 +240,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
234
240
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
235
241
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
236
242
  }
237
- .awsui_help-panel_1d237_1fyrw_94 h3:not(#\9) {
243
+ .awsui_help-panel_1d237_ubb68_100 h3:not(#\9) {
238
244
  font-size: var(--font-size-heading-m-sjd256, 18px);
239
245
  line-height: var(--line-height-heading-m-50evfk, 22px);
240
246
  letter-spacing: var(--letter-spacing-heading-m-0w575i, -0.01em);
@@ -242,7 +248,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
242
248
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
243
249
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
244
250
  }
245
- .awsui_help-panel_1d237_1fyrw_94 h4:not(#\9) {
251
+ .awsui_help-panel_1d237_ubb68_100 h4:not(#\9) {
246
252
  font-size: var(--font-size-heading-s-yykzif, 16px);
247
253
  line-height: var(--line-height-heading-s-4i6ewn, 20px);
248
254
  letter-spacing: var(--letter-spacing-heading-s-jr3mor, -0.005em);
@@ -250,18 +256,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
250
256
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
251
257
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
252
258
  }
253
- .awsui_help-panel_1d237_1fyrw_94 h5:not(#\9) {
259
+ .awsui_help-panel_1d237_ubb68_100 h5:not(#\9) {
254
260
  font-size: var(--font-size-heading-xs-wo4hpf, 14px);
255
261
  line-height: var(--line-height-heading-xs-aeleja, 18px);
256
262
  font-weight: var(--font-weight-heading-xs-l7rqme, 700);
257
263
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
258
264
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
259
265
  }
260
- .awsui_help-panel_1d237_1fyrw_94 b:not(#\9),
261
- .awsui_help-panel_1d237_1fyrw_94 strong:not(#\9) {
266
+ .awsui_help-panel_1d237_ubb68_100 b:not(#\9),
267
+ .awsui_help-panel_1d237_ubb68_100 strong:not(#\9) {
262
268
  font-weight: 700;
263
269
  }
264
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263:not(#\9) {
270
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269:not(#\9) {
265
271
  font-size: var(--font-panel-header-size-edjz3l, 18px);
266
272
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
267
273
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -278,11 +284,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
278
284
  margin-inline-end: calc(-1 * var(--space-panel-side-right-xofg51, 24px));
279
285
  margin-inline-start: calc(-1 * var(--space-panel-side-left-5t0who, 28px));
280
286
  }
281
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263 h2:not(#\9),
282
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263 h3:not(#\9),
283
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263 h4:not(#\9),
284
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263 h5:not(#\9),
285
- .awsui_help-panel_1d237_1fyrw_94 .awsui_header_1d237_1fyrw_263 h6:not(#\9) {
287
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269 h2:not(#\9),
288
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269 h3:not(#\9),
289
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269 h4:not(#\9),
290
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269 h5:not(#\9),
291
+ .awsui_help-panel_1d237_ubb68_100 .awsui_header_1d237_ubb68_269 h6:not(#\9) {
286
292
  font-size: var(--font-panel-header-size-edjz3l, 18px);
287
293
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
288
294
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -292,17 +298,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
292
298
  margin-block: 0;
293
299
  }
294
300
 
295
- .awsui_content_1d237_1fyrw_294:not(#\9) {
301
+ .awsui_content_1d237_ubb68_300:not(#\9) {
296
302
  color: var(--color-text-body-secondary-w9jvno, #414d5c);
297
303
  }
298
- .awsui_content_1d237_1fyrw_294 h2:not(#\9):first-child,
299
- .awsui_content_1d237_1fyrw_294 h3:not(#\9):first-child,
300
- .awsui_content_1d237_1fyrw_294 h4:not(#\9):first-child,
301
- .awsui_content_1d237_1fyrw_294 h5:not(#\9):first-child,
302
- .awsui_content_1d237_1fyrw_294 h6:not(#\9):first-child {
304
+ .awsui_content_1d237_ubb68_300 h2:not(#\9):first-child,
305
+ .awsui_content_1d237_ubb68_300 h3:not(#\9):first-child,
306
+ .awsui_content_1d237_ubb68_300 h4:not(#\9):first-child,
307
+ .awsui_content_1d237_ubb68_300 h5:not(#\9):first-child,
308
+ .awsui_content_1d237_ubb68_300 h6:not(#\9):first-child {
303
309
  margin-block-start: 0;
304
310
  }
305
- .awsui_content_1d237_1fyrw_294 a:not(#\9) {
311
+ .awsui_content_1d237_ubb68_300 a:not(#\9) {
306
312
  color: var(--color-text-link-default-latg1a, #0972d3);
307
313
  font-weight: inherit;
308
314
  letter-spacing: normal;
@@ -316,31 +322,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
316
322
  text-decoration-thickness: 1px;
317
323
  }
318
324
  @media (prefers-reduced-motion: reduce) {
319
- .awsui_content_1d237_1fyrw_294 a:not(#\9) {
325
+ .awsui_content_1d237_ubb68_300 a:not(#\9) {
320
326
  animation: none;
321
327
  transition: none;
322
328
  }
323
329
  }
324
- .awsui-motion-disabled .awsui_content_1d237_1fyrw_294 a:not(#\9), .awsui-mode-entering .awsui_content_1d237_1fyrw_294 a:not(#\9) {
330
+ .awsui-motion-disabled .awsui_content_1d237_ubb68_300 a:not(#\9), .awsui-mode-entering .awsui_content_1d237_ubb68_300 a:not(#\9) {
325
331
  animation: none;
326
332
  transition: none;
327
333
  }
328
- .awsui_content_1d237_1fyrw_294 a:not(#\9):hover {
334
+ .awsui_content_1d237_ubb68_300 a:not(#\9):hover {
329
335
  cursor: pointer;
330
336
  color: var(--color-text-link-hover-8j6p14, #033160);
331
337
  }
332
- .awsui_content_1d237_1fyrw_294 a:not(#\9):focus {
338
+ .awsui_content_1d237_ubb68_300 a:not(#\9):focus {
333
339
  outline: none;
334
340
  }
335
- .awsui_content_1d237_1fyrw_294 a:not(#\9):active {
341
+ .awsui_content_1d237_ubb68_300 a:not(#\9):active {
336
342
  color: var(--color-text-link-hover-8j6p14, #033160);
337
343
  }
338
- .awsui_content_1d237_1fyrw_294 a:not(#\9):active, .awsui_content_1d237_1fyrw_294 a:not(#\9):focus, .awsui_content_1d237_1fyrw_294 a:not(#\9):hover {
344
+ .awsui_content_1d237_ubb68_300 a:not(#\9):active, .awsui_content_1d237_ubb68_300 a:not(#\9):focus, .awsui_content_1d237_ubb68_300 a:not(#\9):hover {
339
345
  text-decoration-line: underline;
340
346
  text-decoration-color: currentColor;
341
347
  }
342
348
 
343
- .awsui_footer_1d237_1fyrw_340:not(#\9) {
349
+ .awsui_footer_1d237_ubb68_346:not(#\9) {
344
350
  color: var(--color-text-body-secondary-w9jvno, #414d5c);
345
351
  border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
346
352
  margin-block: var(--space-scaled-xl-kswcw7, 24px);
@@ -348,14 +354,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
348
354
  padding-block: 0;
349
355
  padding-inline: var(--space-s-34lx8l, 12px);
350
356
  }
351
- .awsui_footer_1d237_1fyrw_340 > :not(#\9):first-child {
357
+ .awsui_footer_1d237_ubb68_346 > :not(#\9):first-child {
352
358
  margin-block-start: var(--space-scaled-xl-kswcw7, 24px);
353
359
  }
354
- .awsui_footer_1d237_1fyrw_340 ul:not(#\9) {
360
+ .awsui_footer_1d237_ubb68_346 ul:not(#\9) {
355
361
  list-style: none;
356
362
  padding-inline-start: 0;
357
363
  }
358
- .awsui_footer_1d237_1fyrw_340 a:not(#\9) {
364
+ .awsui_footer_1d237_ubb68_346 a:not(#\9) {
359
365
  color: var(--color-text-link-default-latg1a, #0972d3);
360
366
  font-weight: inherit;
361
367
  letter-spacing: normal;
@@ -369,32 +375,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
369
375
  text-decoration-thickness: 1px;
370
376
  }
371
377
  @media (prefers-reduced-motion: reduce) {
372
- .awsui_footer_1d237_1fyrw_340 a:not(#\9) {
378
+ .awsui_footer_1d237_ubb68_346 a:not(#\9) {
373
379
  animation: none;
374
380
  transition: none;
375
381
  }
376
382
  }
377
- .awsui-motion-disabled .awsui_footer_1d237_1fyrw_340 a:not(#\9), .awsui-mode-entering .awsui_footer_1d237_1fyrw_340 a:not(#\9) {
383
+ .awsui-motion-disabled .awsui_footer_1d237_ubb68_346 a:not(#\9), .awsui-mode-entering .awsui_footer_1d237_ubb68_346 a:not(#\9) {
378
384
  animation: none;
379
385
  transition: none;
380
386
  }
381
- .awsui_footer_1d237_1fyrw_340 a:not(#\9):hover {
387
+ .awsui_footer_1d237_ubb68_346 a:not(#\9):hover {
382
388
  cursor: pointer;
383
389
  color: var(--color-text-link-hover-8j6p14, #033160);
384
390
  }
385
- .awsui_footer_1d237_1fyrw_340 a:not(#\9):focus {
391
+ .awsui_footer_1d237_ubb68_346 a:not(#\9):focus {
386
392
  outline: none;
387
393
  }
388
- .awsui_footer_1d237_1fyrw_340 a:not(#\9):active {
394
+ .awsui_footer_1d237_ubb68_346 a:not(#\9):active {
389
395
  color: var(--color-text-link-hover-8j6p14, #033160);
390
396
  }
391
- .awsui_footer_1d237_1fyrw_340 a:not(#\9):active, .awsui_footer_1d237_1fyrw_340 a:not(#\9):focus, .awsui_footer_1d237_1fyrw_340 a:not(#\9):hover {
397
+ .awsui_footer_1d237_ubb68_346 a:not(#\9):active, .awsui_footer_1d237_ubb68_346 a:not(#\9):focus, .awsui_footer_1d237_ubb68_346 a:not(#\9):hover {
392
398
  text-decoration-line: underline;
393
399
  text-decoration-color: currentColor;
394
400
  }
395
401
 
396
- .awsui_content_1d237_1fyrw_294 a:not(#\9):focus,
397
- .awsui_footer_1d237_1fyrw_340 a:not(#\9):focus {
402
+ .awsui_content_1d237_ubb68_300 a:not(#\9):focus,
403
+ .awsui_footer_1d237_ubb68_346 a:not(#\9):focus {
398
404
  outline: thin dotted;
399
405
  outline: var(--border-link-focus-ring-outline-kkfop6, 0);
400
406
  outline-offset: 2px;
@@ -2,9 +2,9 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "help-panel": "awsui_help-panel_1d237_1fyrw_94",
6
- "header": "awsui_header_1d237_1fyrw_263",
7
- "content": "awsui_content_1d237_1fyrw_294",
8
- "footer": "awsui_footer_1d237_1fyrw_340"
5
+ "help-panel": "awsui_help-panel_1d237_ubb68_100",
6
+ "header": "awsui_header_1d237_ubb68_269",
7
+ "content": "awsui_content_1d237_ubb68_300",
8
+ "footer": "awsui_footer_1d237_ubb68_346"
9
9
  };
10
10
 
@@ -1,12 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_cqcqk_1eqc5_93",
5
- "wrapper": "awsui_wrapper_cqcqk_1eqc5_97",
6
- "elementWrapper": "awsui_elementWrapper_cqcqk_1eqc5_101",
7
- "markerWrapper": "awsui_markerWrapper_cqcqk_1eqc5_105",
8
- "placement-right": "awsui_placement-right_cqcqk_1eqc5_110",
9
- "placement-left": "awsui_placement-left_cqcqk_1eqc5_115",
10
- "inlineWrapper": "awsui_inlineWrapper_cqcqk_1eqc5_120"
4
+ "root": "awsui_root_cqcqk_1n4o5_99",
5
+ "wrapper": "awsui_wrapper_cqcqk_1n4o5_103",
6
+ "elementWrapper": "awsui_elementWrapper_cqcqk_1n4o5_107",
7
+ "markerWrapper": "awsui_markerWrapper_cqcqk_1n4o5_111",
8
+ "placement-right": "awsui_placement-right_cqcqk_1n4o5_116",
9
+ "placement-left": "awsui_placement-left_cqcqk_1n4o5_121",
10
+ "inlineWrapper": "awsui_inlineWrapper_cqcqk_1n4o5_126"
11
11
  };
12
12
 
@@ -6,6 +6,12 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
+ /* stylelint-disable @cloudscape-design/no-implicit-descendant, plugin/no-unsupported-browser-features, selector-combinator-disallowed-list */
10
+ /* stylelint-enable @cloudscape-design/no-implicit-descendant, plugin/no-unsupported-browser-features, selector-combinator-disallowed-list */
11
+ /*
12
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
13
+ SPDX-License-Identifier: Apache-2.0
14
+ */
9
15
  /*
10
16
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
11
17
  SPDX-License-Identifier: Apache-2.0
@@ -90,33 +96,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
97
  SPDX-License-Identifier: Apache-2.0
92
98
  */
93
- .awsui_root_cqcqk_1eqc5_93:not(#\9) {
99
+ .awsui_root_cqcqk_1n4o5_99:not(#\9) {
94
100
  /* used in test-utils */
95
101
  }
96
102
 
97
- .awsui_wrapper_cqcqk_1eqc5_97:not(#\9) {
103
+ .awsui_wrapper_cqcqk_1n4o5_103:not(#\9) {
98
104
  position: relative;
99
105
  }
100
106
 
101
- .awsui_elementWrapper_cqcqk_1eqc5_101:not(#\9) {
107
+ .awsui_elementWrapper_cqcqk_1n4o5_107:not(#\9) {
102
108
  flex: 1;
103
109
  }
104
110
 
105
- .awsui_markerWrapper_cqcqk_1eqc5_105:not(#\9) {
111
+ .awsui_markerWrapper_cqcqk_1n4o5_111:not(#\9) {
106
112
  position: absolute;
107
113
  inset-block-start: 0;
108
114
  }
109
115
 
110
- .awsui_placement-right_cqcqk_1eqc5_110:not(#\9) {
116
+ .awsui_placement-right_cqcqk_1n4o5_116:not(#\9) {
111
117
  inset-inline-start: 100%;
112
118
  margin-inline-start: var(--space-xxs-p8yyaw, 4px);
113
119
  }
114
120
 
115
- .awsui_placement-left_cqcqk_1eqc5_115:not(#\9) {
121
+ .awsui_placement-left_cqcqk_1n4o5_121:not(#\9) {
116
122
  inset-inline-end: 100%;
117
123
  margin-inline-end: var(--space-xxs-p8yyaw, 4px);
118
124
  }
119
125
 
120
- .awsui_inlineWrapper_cqcqk_1eqc5_120:not(#\9) {
126
+ .awsui_inlineWrapper_cqcqk_1n4o5_126:not(#\9) {
121
127
  margin-inline-start: var(--space-xxs-p8yyaw, 4px);
122
128
  }
@@ -2,12 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_cqcqk_1eqc5_93",
6
- "wrapper": "awsui_wrapper_cqcqk_1eqc5_97",
7
- "elementWrapper": "awsui_elementWrapper_cqcqk_1eqc5_101",
8
- "markerWrapper": "awsui_markerWrapper_cqcqk_1eqc5_105",
9
- "placement-right": "awsui_placement-right_cqcqk_1eqc5_110",
10
- "placement-left": "awsui_placement-left_cqcqk_1eqc5_115",
11
- "inlineWrapper": "awsui_inlineWrapper_cqcqk_1eqc5_120"
5
+ "root": "awsui_root_cqcqk_1n4o5_99",
6
+ "wrapper": "awsui_wrapper_cqcqk_1n4o5_103",
7
+ "elementWrapper": "awsui_elementWrapper_cqcqk_1n4o5_107",
8
+ "markerWrapper": "awsui_markerWrapper_cqcqk_1n4o5_111",
9
+ "placement-right": "awsui_placement-right_cqcqk_1n4o5_116",
10
+ "placement-left": "awsui_placement-left_cqcqk_1n4o5_121",
11
+ "inlineWrapper": "awsui_inlineWrapper_cqcqk_1n4o5_126"
12
12
  };
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["icon/internal.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,KAAK,iBAAiB,GAAG,SAAS,GAChC,0BAA0B,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBJ,QAAA,MAAM,YAAY,+EAUf,iBAAiB,gBAwFnB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["icon/internal.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,KAAK,iBAAiB,GAAG,SAAS,GAChC,0BAA0B,GAAG;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAqBJ,QAAA,MAAM,YAAY,+EAUf,iBAAiB,gBAyFnB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,YAAY,CAAC"}
package/icon/internal.js CHANGED
@@ -40,7 +40,7 @@ const InternalIcon = (_a) => {
40
40
  const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;
41
41
  const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};
42
42
  const baseProps = getBaseProps(props);
43
- baseProps.className = clsx(baseProps.className, styles.icon, contextualSize && styles['icon-flex-height'], badge && styles.badge, !contextualSize && styles[`size-${iconSize}-mapped-height`], styles[`size-${iconSize}`], styles[`variant-${variant}`]);
43
+ baseProps.className = clsx(baseProps.className, styles.icon, contextualSize && styles['icon-flex-height'], badge && styles.badge, !contextualSize && styles[`size-${iconSize}-mapped-height`], styles[`size-${iconSize}`], styles[`variant-${variant}`], styles[`name-${name}`]);
44
44
  // Possible infinite loop is not a concern here because line
45
45
  // height should not change without an external state update.
46
46
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["icon/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAOrE,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,2EAA2E;QAC3E,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,MAAM,IAA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7C,OAAO,eAAe,CAAC;SACxB;aAAM;YACL,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;SACpB;IACH,CAAC;IAED,OAAO,CACL,8CACM,SAAS;QACb,sFAAsF;QACtF,2CAA2C;QAC3C,uBAAuB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAC1E,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,YAAY,IACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useLayoutEffect, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport icons from './icons';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { IconProps } from './interfaces';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\ntype InternalIconProps = IconProps &\n InternalBaseComponentProps & {\n badge?: boolean;\n };\n\nfunction iconSizeMap(height: number | null) {\n if (height === null) {\n // This is the best guess for the contextual height while server rendering.\n return 'normal';\n }\n\n if (height >= 50) {\n return 'large';\n } else if (height >= 36) {\n return 'big';\n } else if (height >= 24) {\n return 'medium';\n } else if (height <= 16) {\n return 'small';\n } else {\n return 'normal';\n }\n}\n\nconst InternalIcon = ({\n name,\n size = 'normal',\n variant = 'normal',\n url,\n alt,\n svg,\n badge,\n __internalRootRef = null,\n ...props\n}: InternalIconProps) => {\n const iconRef = useRef<HTMLElement>(null);\n // To ensure a re-render is triggered on visual mode changes\n useVisualRefresh();\n const [parentHeight, setParentHeight] = useState<number | null>(null);\n const contextualSize = size === 'inherit';\n const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;\n const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};\n const baseProps = getBaseProps(props);\n\n baseProps.className = clsx(\n baseProps.className,\n styles.icon,\n contextualSize && styles['icon-flex-height'],\n badge && styles.badge,\n !contextualSize && styles[`size-${iconSize}-mapped-height`],\n styles[`size-${iconSize}`],\n styles[`variant-${variant}`]\n );\n\n // Possible infinite loop is not a concern here because line\n // height should not change without an external state update.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n if (!contextualSize || !iconRef.current) {\n return;\n }\n const { lineHeight } = getComputedStyle(iconRef.current);\n const newParentHeight = parseInt(lineHeight, 10);\n setParentHeight(newParentHeight);\n });\n\n const mergedRef = useMergeRefs(iconRef, __internalRootRef);\n\n if (svg) {\n if (url) {\n warnOnce(\n 'Icon',\n 'You have specified both `url` and `svg`. `svg` will take precedence and `url` will be ignored.'\n );\n }\n return (\n <span {...baseProps} ref={mergedRef} aria-hidden=\"true\" style={inlineStyles}>\n {svg}\n </span>\n );\n }\n\n if (url) {\n return (\n <span {...baseProps} ref={mergedRef} style={inlineStyles}>\n <img src={url} alt={alt} />\n </span>\n );\n }\n\n const validIcon = name && Object.prototype.hasOwnProperty.call(icons, name);\n\n function iconMap(name: IconProps.Name) {\n const genAiFilledIcon = `<svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n data-testid=\"gen-ai-filled\"\n >\n <path d=\"m8 4.4 1.018 2.582L11.6 8 9.018 9.018 8 11.6 6.982 9.018 4.4 8l2.582-1.018L8 4.4ZM2.405 2.41l.002-.003.003-.002-.003-.002-.002-.003-.002.003-.003.002.003.002.002.003Z\" class=\"filled\"></path>\n </svg>`;\n\n if (name === 'gen-ai' && iconSize === 'small') {\n return genAiFilledIcon;\n } else {\n return icons[name];\n }\n }\n\n return (\n <span\n {...baseProps}\n // dangerouslySetInnerHTML is safe here, as we control the content coming from `icons`\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={validIcon ? { __html: iconMap(name) } : undefined}\n ref={mergedRef}\n style={inlineStyles}\n />\n );\n};\n\nexport { InternalIconProps };\nexport default InternalIcon;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["icon/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAOrE,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,2EAA2E;QAC3E,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,MAAM,IAAI,EAAE,EAAE;QAChB,OAAO,OAAO,CAAC;KAChB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;SAAM;QACL,OAAO,QAAQ,CAAC;KACjB;AACH,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,EAUF,EAAE,EAAE;QAVF,EACpB,IAAI,EACJ,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,QAAQ,EAClB,GAAG,EAC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esContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useLayoutEffect, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport icons from './icons';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { IconProps } from './interfaces';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\ntype InternalIconProps = IconProps &\n InternalBaseComponentProps & {\n badge?: boolean;\n };\n\nfunction iconSizeMap(height: number | null) {\n if (height === null) {\n // This is the best guess for the contextual height while server rendering.\n return 'normal';\n }\n\n if (height >= 50) {\n return 'large';\n } else if (height >= 36) {\n return 'big';\n } else if (height >= 24) {\n return 'medium';\n } else if (height <= 16) {\n return 'small';\n } else {\n return 'normal';\n }\n}\n\nconst InternalIcon = ({\n name,\n size = 'normal',\n variant = 'normal',\n url,\n alt,\n svg,\n badge,\n __internalRootRef = null,\n ...props\n}: InternalIconProps) => {\n const iconRef = useRef<HTMLElement>(null);\n // To ensure a re-render is triggered on visual mode changes\n useVisualRefresh();\n const [parentHeight, setParentHeight] = useState<number | null>(null);\n const contextualSize = size === 'inherit';\n const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;\n const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};\n const baseProps = getBaseProps(props);\n\n baseProps.className = clsx(\n baseProps.className,\n styles.icon,\n contextualSize && styles['icon-flex-height'],\n badge && styles.badge,\n !contextualSize && styles[`size-${iconSize}-mapped-height`],\n styles[`size-${iconSize}`],\n styles[`variant-${variant}`],\n styles[`name-${name}`]\n );\n\n // Possible infinite loop is not a concern here because line\n // height should not change without an external state update.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n if (!contextualSize || !iconRef.current) {\n return;\n }\n const { lineHeight } = getComputedStyle(iconRef.current);\n const newParentHeight = parseInt(lineHeight, 10);\n setParentHeight(newParentHeight);\n });\n\n const mergedRef = useMergeRefs(iconRef, __internalRootRef);\n\n if (svg) {\n if (url) {\n warnOnce(\n 'Icon',\n 'You have specified both `url` and `svg`. `svg` will take precedence and `url` will be ignored.'\n );\n }\n return (\n <span {...baseProps} ref={mergedRef} aria-hidden=\"true\" style={inlineStyles}>\n {svg}\n </span>\n );\n }\n\n if (url) {\n return (\n <span {...baseProps} ref={mergedRef} style={inlineStyles}>\n <img src={url} alt={alt} />\n </span>\n );\n }\n\n const validIcon = name && Object.prototype.hasOwnProperty.call(icons, name);\n\n function iconMap(name: IconProps.Name) {\n const genAiFilledIcon = `<svg\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n aria-hidden=\"true\"\n data-testid=\"gen-ai-filled\"\n >\n <path d=\"m8 4.4 1.018 2.582L11.6 8 9.018 9.018 8 11.6 6.982 9.018 4.4 8l2.582-1.018L8 4.4ZM2.405 2.41l.002-.003.003-.002-.003-.002-.002-.003-.002.003-.003.002.003.002.002.003Z\" class=\"filled\"></path>\n </svg>`;\n\n if (name === 'gen-ai' && iconSize === 'small') {\n return genAiFilledIcon;\n } else {\n return icons[name];\n }\n }\n\n return (\n <span\n {...baseProps}\n // dangerouslySetInnerHTML is safe here, as we control the content coming from `icons`\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={validIcon ? { __html: iconMap(name) } : undefined}\n ref={mergedRef}\n style={inlineStyles}\n />\n );\n};\n\nexport { InternalIconProps };\nexport default InternalIcon;\n"]}
@@ -1,26 +1,41 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "icon": "awsui_icon_h11ix_swv0j_98",
5
- "icon-flex-height": "awsui_icon-flex-height_h11ix_swv0j_104",
6
- "size-small": "awsui_size-small_h11ix_swv0j_129",
7
- "size-small-mapped-height": "awsui_size-small-mapped-height_h11ix_swv0j_133",
8
- "size-normal": "awsui_size-normal_h11ix_swv0j_148",
9
- "size-normal-mapped-height": "awsui_size-normal-mapped-height_h11ix_swv0j_152",
10
- "size-medium": "awsui_size-medium_h11ix_swv0j_167",
11
- "size-medium-mapped-height": "awsui_size-medium-mapped-height_h11ix_swv0j_171",
12
- "size-big": "awsui_size-big_h11ix_swv0j_186",
13
- "size-big-mapped-height": "awsui_size-big-mapped-height_h11ix_swv0j_190",
14
- "size-large": "awsui_size-large_h11ix_swv0j_205",
15
- "size-large-mapped-height": "awsui_size-large-mapped-height_h11ix_swv0j_209",
16
- "variant-normal": "awsui_variant-normal_h11ix_swv0j_224",
17
- "variant-disabled": "awsui_variant-disabled_h11ix_swv0j_227",
18
- "variant-inverted": "awsui_variant-inverted_h11ix_swv0j_230",
19
- "variant-subtle": "awsui_variant-subtle_h11ix_swv0j_233",
20
- "variant-warning": "awsui_variant-warning_h11ix_swv0j_236",
21
- "variant-error": "awsui_variant-error_h11ix_swv0j_239",
22
- "variant-success": "awsui_variant-success_h11ix_swv0j_242",
23
- "variant-link": "awsui_variant-link_h11ix_swv0j_245",
24
- "badge": "awsui_badge_h11ix_swv0j_249"
4
+ "icon": "awsui_icon_h11ix_1sub3_104",
5
+ "icon-flex-height": "awsui_icon-flex-height_h11ix_1sub3_110",
6
+ "size-small": "awsui_size-small_h11ix_1sub3_135",
7
+ "size-small-mapped-height": "awsui_size-small-mapped-height_h11ix_1sub3_139",
8
+ "size-normal": "awsui_size-normal_h11ix_1sub3_154",
9
+ "size-normal-mapped-height": "awsui_size-normal-mapped-height_h11ix_1sub3_158",
10
+ "size-medium": "awsui_size-medium_h11ix_1sub3_173",
11
+ "size-medium-mapped-height": "awsui_size-medium-mapped-height_h11ix_1sub3_177",
12
+ "size-big": "awsui_size-big_h11ix_1sub3_192",
13
+ "size-big-mapped-height": "awsui_size-big-mapped-height_h11ix_1sub3_196",
14
+ "size-large": "awsui_size-large_h11ix_1sub3_211",
15
+ "size-large-mapped-height": "awsui_size-large-mapped-height_h11ix_1sub3_215",
16
+ "variant-normal": "awsui_variant-normal_h11ix_1sub3_230",
17
+ "variant-disabled": "awsui_variant-disabled_h11ix_1sub3_233",
18
+ "variant-inverted": "awsui_variant-inverted_h11ix_1sub3_236",
19
+ "variant-subtle": "awsui_variant-subtle_h11ix_1sub3_239",
20
+ "variant-warning": "awsui_variant-warning_h11ix_1sub3_242",
21
+ "variant-error": "awsui_variant-error_h11ix_1sub3_245",
22
+ "variant-success": "awsui_variant-success_h11ix_1sub3_248",
23
+ "variant-link": "awsui_variant-link_h11ix_1sub3_251",
24
+ "name-angle-left-double": "awsui_name-angle-left-double_h11ix_1sub3_255",
25
+ "name-angle-left": "awsui_name-angle-left_h11ix_1sub3_255",
26
+ "name-angle-right-double": "awsui_name-angle-right-double_h11ix_1sub3_257",
27
+ "name-angle-right": "awsui_name-angle-right_h11ix_1sub3_257",
28
+ "name-arrow-left": "awsui_name-arrow-left_h11ix_1sub3_259",
29
+ "name-caret-left-filled": "awsui_name-caret-left-filled_h11ix_1sub3_260",
30
+ "name-caret-right-filled": "awsui_name-caret-right-filled_h11ix_1sub3_261",
31
+ "name-audio-full": "awsui_name-audio-full_h11ix_1sub3_262",
32
+ "name-audio-half": "awsui_name-audio-half_h11ix_1sub3_263",
33
+ "name-audio-off": "awsui_name-audio-off_h11ix_1sub3_264",
34
+ "name-external": "awsui_name-external_h11ix_1sub3_265",
35
+ "name-redo": "awsui_name-redo_h11ix_1sub3_266",
36
+ "name-shrink": "awsui_name-shrink_h11ix_1sub3_267",
37
+ "name-undo": "awsui_name-undo_h11ix_1sub3_268",
38
+ "name-view-vertical": "awsui_name-view-vertical_h11ix_1sub3_269",
39
+ "badge": "awsui_badge_h11ix_1sub3_293"
25
40
  };
26
41