@cloudscape-design/components 3.0.301 → 3.0.303

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 (433) hide show
  1. package/alert/interfaces.d.ts +1 -0
  2. package/alert/interfaces.d.ts.map +1 -1
  3. package/alert/interfaces.js.map +1 -1
  4. package/alert/styles.css.js +19 -19
  5. package/alert/styles.scoped.css +64 -64
  6. package/alert/styles.selectors.js +19 -19
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +46 -46
  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 +10 -10
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +10 -10
  14. package/app-layout/drawer/styles.scoped.css +31 -31
  15. package/app-layout/drawer/styles.selectors.js +10 -10
  16. package/app-layout/interfaces.d.ts +1 -0
  17. package/app-layout/interfaces.d.ts.map +1 -1
  18. package/app-layout/interfaces.js.map +1 -1
  19. package/app-layout/mobile-toolbar/styles.css.js +6 -6
  20. package/app-layout/mobile-toolbar/styles.scoped.css +20 -20
  21. package/app-layout/mobile-toolbar/styles.selectors.js +6 -6
  22. package/app-layout/notifications/styles.css.js +3 -3
  23. package/app-layout/notifications/styles.scoped.css +7 -7
  24. package/app-layout/notifications/styles.selectors.js +3 -3
  25. package/app-layout/styles.css.js +13 -13
  26. package/app-layout/styles.scoped.css +22 -22
  27. package/app-layout/styles.selectors.js +13 -13
  28. package/app-layout/toggles/styles.css.js +1 -1
  29. package/app-layout/toggles/styles.scoped.css +3 -3
  30. package/app-layout/toggles/styles.selectors.js +1 -1
  31. package/app-layout/visual-refresh/styles.css.js +68 -68
  32. package/app-layout/visual-refresh/styles.scoped.css +265 -265
  33. package/app-layout/visual-refresh/styles.selectors.js +68 -68
  34. package/area-chart/interfaces.d.ts +1 -0
  35. package/area-chart/interfaces.d.ts.map +1 -1
  36. package/area-chart/interfaces.js.map +1 -1
  37. package/area-chart/styles.css.js +13 -13
  38. package/area-chart/styles.scoped.css +29 -29
  39. package/area-chart/styles.selectors.js +13 -13
  40. package/attribute-editor/interfaces.d.ts +1 -0
  41. package/attribute-editor/interfaces.d.ts.map +1 -1
  42. package/attribute-editor/interfaces.js.map +1 -1
  43. package/attribute-editor/styles.css.js +14 -14
  44. package/attribute-editor/styles.scoped.css +48 -48
  45. package/attribute-editor/styles.selectors.js +14 -14
  46. package/autosuggest/interfaces.d.ts +2 -0
  47. package/autosuggest/interfaces.d.ts.map +1 -1
  48. package/autosuggest/interfaces.js.map +1 -1
  49. package/badge/styles.css.js +5 -5
  50. package/badge/styles.scoped.css +20 -20
  51. package/badge/styles.selectors.js +5 -5
  52. package/box/styles.css.js +189 -189
  53. package/box/styles.scoped.css +418 -418
  54. package/box/styles.selectors.js +189 -189
  55. package/breadcrumb-group/interfaces.d.ts +1 -0
  56. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  57. package/breadcrumb-group/interfaces.js.map +1 -1
  58. package/breadcrumb-group/item/styles.css.js +9 -9
  59. package/breadcrumb-group/item/styles.scoped.css +28 -28
  60. package/breadcrumb-group/item/styles.selectors.js +9 -9
  61. package/breadcrumb-group/styles.css.js +7 -7
  62. package/breadcrumb-group/styles.scoped.css +22 -22
  63. package/breadcrumb-group/styles.selectors.js +7 -7
  64. package/button/styles.css.js +19 -19
  65. package/button/styles.scoped.css +412 -412
  66. package/button/styles.selectors.js +19 -19
  67. package/button-dropdown/category-elements/styles.css.js +13 -13
  68. package/button-dropdown/category-elements/styles.scoped.css +50 -50
  69. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  70. package/button-dropdown/item-element/styles.css.js +14 -14
  71. package/button-dropdown/item-element/styles.scoped.css +42 -42
  72. package/button-dropdown/item-element/styles.selectors.js +14 -14
  73. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  74. package/button-dropdown/mobile-expandable-group/styles.scoped.css +10 -10
  75. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  76. package/button-dropdown/styles.css.js +8 -8
  77. package/button-dropdown/styles.scoped.css +20 -20
  78. package/button-dropdown/styles.selectors.js +8 -8
  79. package/calendar/interfaces.d.ts +3 -0
  80. package/calendar/interfaces.d.ts.map +1 -1
  81. package/calendar/interfaces.js.map +1 -1
  82. package/calendar/styles.css.js +18 -18
  83. package/calendar/styles.scoped.css +89 -89
  84. package/calendar/styles.selectors.js +18 -18
  85. package/cards/interfaces.d.ts +1 -0
  86. package/cards/interfaces.d.ts.map +1 -1
  87. package/cards/interfaces.js.map +1 -1
  88. package/cards/styles.css.js +37 -37
  89. package/cards/styles.scoped.css +100 -100
  90. package/cards/styles.selectors.js +37 -37
  91. package/checkbox/styles.css.js +3 -3
  92. package/checkbox/styles.scoped.css +16 -16
  93. package/checkbox/styles.selectors.js +3 -3
  94. package/code-editor/interfaces.d.ts +1 -0
  95. package/code-editor/interfaces.d.ts.map +1 -1
  96. package/code-editor/interfaces.js.map +1 -1
  97. package/code-editor/resizable-box/styles.css.js +3 -3
  98. package/code-editor/resizable-box/styles.scoped.css +8 -8
  99. package/code-editor/resizable-box/styles.selectors.js +3 -3
  100. package/code-editor/styles.css.js +32 -32
  101. package/code-editor/styles.scoped.css +194 -194
  102. package/code-editor/styles.selectors.js +32 -32
  103. package/collection-preferences/content-display/styles.css.js +11 -11
  104. package/collection-preferences/content-display/styles.scoped.css +42 -42
  105. package/collection-preferences/content-display/styles.selectors.js +11 -11
  106. package/collection-preferences/interfaces.d.ts +9 -0
  107. package/collection-preferences/interfaces.d.ts.map +1 -1
  108. package/collection-preferences/interfaces.js.map +1 -1
  109. package/collection-preferences/styles.css.js +37 -37
  110. package/collection-preferences/styles.scoped.css +81 -81
  111. package/collection-preferences/styles.selectors.js +37 -37
  112. package/column-layout/styles.css.js +13 -13
  113. package/column-layout/styles.scoped.css +55 -55
  114. package/column-layout/styles.selectors.js +13 -13
  115. package/container/styles.css.js +18 -18
  116. package/container/styles.scoped.css +73 -73
  117. package/container/styles.selectors.js +18 -18
  118. package/content-layout/styles.css.js +6 -6
  119. package/content-layout/styles.scoped.css +14 -14
  120. package/content-layout/styles.selectors.js +6 -6
  121. package/date-picker/styles.css.js +7 -7
  122. package/date-picker/styles.scoped.css +16 -16
  123. package/date-picker/styles.selectors.js +7 -7
  124. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  125. package/date-range-picker/calendar/grids/styles.scoped.css +95 -95
  126. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  127. package/date-range-picker/interfaces.d.ts +1 -0
  128. package/date-range-picker/interfaces.d.ts.map +1 -1
  129. package/date-range-picker/interfaces.js.map +1 -1
  130. package/date-range-picker/relative-range/styles.css.js +9 -9
  131. package/date-range-picker/relative-range/styles.scoped.css +16 -16
  132. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  133. package/date-range-picker/styles.css.js +38 -38
  134. package/date-range-picker/styles.scoped.css +76 -76
  135. package/date-range-picker/styles.selectors.js +38 -38
  136. package/expandable-section/styles.css.js +24 -24
  137. package/expandable-section/styles.scoped.css +87 -87
  138. package/expandable-section/styles.selectors.js +24 -24
  139. package/file-upload/dropzone/styles.css.js +2 -2
  140. package/file-upload/dropzone/styles.scoped.css +9 -9
  141. package/file-upload/dropzone/styles.selectors.js +2 -2
  142. package/file-upload/file-input/styles.css.js +4 -4
  143. package/file-upload/file-input/styles.scoped.css +14 -14
  144. package/file-upload/file-input/styles.selectors.js +4 -4
  145. package/file-upload/file-option/styles.css.js +7 -7
  146. package/file-upload/file-option/styles.scoped.css +10 -10
  147. package/file-upload/file-option/styles.selectors.js +7 -7
  148. package/file-upload/styles.css.js +2 -2
  149. package/file-upload/styles.scoped.css +4 -4
  150. package/file-upload/styles.selectors.js +2 -2
  151. package/flashbar/interfaces.d.ts +1 -0
  152. package/flashbar/interfaces.d.ts.map +1 -1
  153. package/flashbar/interfaces.js.map +1 -1
  154. package/flashbar/styles.css.js +45 -45
  155. package/flashbar/styles.scoped.css +246 -246
  156. package/flashbar/styles.selectors.js +45 -45
  157. package/form/interfaces.d.ts +1 -0
  158. package/form/interfaces.d.ts.map +1 -1
  159. package/form/interfaces.js.map +1 -1
  160. package/form/styles.css.js +9 -9
  161. package/form/styles.scoped.css +20 -20
  162. package/form/styles.selectors.js +9 -9
  163. package/form-field/interfaces.d.ts +1 -0
  164. package/form-field/interfaces.d.ts.map +1 -1
  165. package/form-field/interfaces.js.map +1 -1
  166. package/form-field/styles.css.js +19 -19
  167. package/form-field/styles.scoped.css +52 -52
  168. package/form-field/styles.selectors.js +19 -19
  169. package/grid/styles.css.js +53 -53
  170. package/grid/styles.scoped.css +60 -60
  171. package/grid/styles.selectors.js +53 -53
  172. package/header/styles.css.js +44 -44
  173. package/header/styles.scoped.css +116 -116
  174. package/header/styles.selectors.js +44 -44
  175. package/help-panel/interfaces.d.ts +1 -0
  176. package/help-panel/interfaces.d.ts.map +1 -1
  177. package/help-panel/interfaces.js.map +1 -1
  178. package/help-panel/styles.css.js +4 -4
  179. package/help-panel/styles.scoped.css +153 -153
  180. package/help-panel/styles.selectors.js +4 -4
  181. package/hotspot/styles.css.js +7 -7
  182. package/hotspot/styles.scoped.css +10 -10
  183. package/hotspot/styles.selectors.js +7 -7
  184. package/icon/styles.css.js +21 -21
  185. package/icon/styles.scoped.css +81 -81
  186. package/icon/styles.selectors.js +21 -21
  187. package/input/interfaces.d.ts +1 -0
  188. package/input/interfaces.d.ts.map +1 -1
  189. package/input/interfaces.js.map +1 -1
  190. package/input/styles.css.js +12 -12
  191. package/input/styles.scoped.css +73 -73
  192. package/input/styles.selectors.js +12 -12
  193. package/internal/base-component/styles.scoped.css +1620 -1437
  194. package/internal/components/abstract-switch/styles.css.js +13 -13
  195. package/internal/components/abstract-switch/styles.scoped.css +26 -26
  196. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  197. package/internal/components/button-trigger/styles.css.js +9 -9
  198. package/internal/components/button-trigger/styles.scoped.css +63 -63
  199. package/internal/components/button-trigger/styles.selectors.js +9 -9
  200. package/internal/components/cartesian-chart/interfaces.d.ts +4 -0
  201. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  202. package/internal/components/cartesian-chart/interfaces.js.map +1 -1
  203. package/internal/components/cartesian-chart/styles.css.js +21 -21
  204. package/internal/components/cartesian-chart/styles.scoped.css +34 -34
  205. package/internal/components/cartesian-chart/styles.selectors.js +21 -21
  206. package/internal/components/chart-filter/styles.css.js +3 -3
  207. package/internal/components/chart-filter/styles.scoped.css +7 -7
  208. package/internal/components/chart-filter/styles.selectors.js +3 -3
  209. package/internal/components/chart-legend/styles.css.js +6 -6
  210. package/internal/components/chart-legend/styles.scoped.css +23 -23
  211. package/internal/components/chart-legend/styles.selectors.js +6 -6
  212. package/internal/components/chart-plot/styles.css.js +5 -5
  213. package/internal/components/chart-plot/styles.scoped.css +6 -6
  214. package/internal/components/chart-plot/styles.selectors.js +5 -5
  215. package/internal/components/chart-popover/styles.css.js +3 -3
  216. package/internal/components/chart-popover/styles.scoped.css +9 -9
  217. package/internal/components/chart-popover/styles.selectors.js +3 -3
  218. package/internal/components/chart-series-details/styles.css.js +5 -5
  219. package/internal/components/chart-series-details/styles.scoped.css +20 -20
  220. package/internal/components/chart-series-details/styles.selectors.js +5 -5
  221. package/internal/components/chart-series-marker/styles.css.js +5 -5
  222. package/internal/components/chart-series-marker/styles.scoped.css +14 -14
  223. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  224. package/internal/components/chart-status-container/styles.css.js +2 -2
  225. package/internal/components/chart-status-container/styles.scoped.css +3 -3
  226. package/internal/components/chart-status-container/styles.selectors.js +2 -2
  227. package/internal/components/checkbox-icon/styles.css.js +7 -7
  228. package/internal/components/checkbox-icon/styles.scoped.css +18 -18
  229. package/internal/components/checkbox-icon/styles.selectors.js +7 -7
  230. package/internal/components/dark-ribbon/styles.css.js +2 -2
  231. package/internal/components/dark-ribbon/styles.scoped.css +4 -4
  232. package/internal/components/dark-ribbon/styles.selectors.js +2 -2
  233. package/internal/components/dropdown/styles.css.js +20 -20
  234. package/internal/components/dropdown/styles.scoped.css +51 -51
  235. package/internal/components/dropdown/styles.selectors.js +20 -20
  236. package/internal/components/dropdown-footer/styles.css.js +3 -3
  237. package/internal/components/dropdown-footer/styles.scoped.css +9 -9
  238. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  239. package/internal/components/dropdown-status/interfaces.d.ts +3 -0
  240. package/internal/components/dropdown-status/interfaces.d.ts.map +1 -1
  241. package/internal/components/dropdown-status/interfaces.js.map +1 -1
  242. package/internal/components/dropdown-status/styles.css.js +2 -2
  243. package/internal/components/dropdown-status/styles.scoped.css +8 -8
  244. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  245. package/internal/components/filtering-token/styles.css.js +7 -7
  246. package/internal/components/filtering-token/styles.scoped.css +34 -34
  247. package/internal/components/filtering-token/styles.selectors.js +7 -7
  248. package/internal/components/handle/styles.css.js +2 -2
  249. package/internal/components/handle/styles.scoped.css +12 -12
  250. package/internal/components/handle/styles.selectors.js +2 -2
  251. package/internal/components/menu-dropdown/styles.css.js +7 -7
  252. package/internal/components/menu-dropdown/styles.scoped.css +32 -32
  253. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  254. package/internal/components/option/index.d.ts.map +1 -1
  255. package/internal/components/option/index.js +1 -1
  256. package/internal/components/option/index.js.map +1 -1
  257. package/internal/components/option/styles.css.js +17 -17
  258. package/internal/components/option/styles.scoped.css +47 -47
  259. package/internal/components/option/styles.selectors.js +17 -17
  260. package/internal/components/options-list/styles.css.js +2 -2
  261. package/internal/components/options-list/styles.scoped.css +7 -7
  262. package/internal/components/options-list/styles.selectors.js +2 -2
  263. package/internal/components/selectable-item/styles.css.js +16 -16
  264. package/internal/components/selectable-item/styles.scoped.css +71 -68
  265. package/internal/components/selectable-item/styles.selectors.js +16 -16
  266. package/internal/components/token-list/styles.css.js +9 -9
  267. package/internal/components/token-list/styles.scoped.css +40 -40
  268. package/internal/components/token-list/styles.selectors.js +9 -9
  269. package/internal/environment.js +1 -1
  270. package/internal/generated/styles/tokens.d.ts +4 -0
  271. package/internal/generated/styles/tokens.js +303 -299
  272. package/internal/generated/theming/index.cjs +1609 -675
  273. package/internal/generated/theming/index.cjs.d.ts +206 -0
  274. package/internal/generated/theming/index.d.ts +206 -0
  275. package/internal/generated/theming/index.js +1609 -675
  276. package/internal/manifest.json +1 -1
  277. package/link/interfaces.d.ts +1 -0
  278. package/link/interfaces.d.ts.map +1 -1
  279. package/link/interfaces.js.map +1 -1
  280. package/link/styles.css.js +20 -20
  281. package/link/styles.scoped.css +163 -163
  282. package/link/styles.selectors.js +20 -20
  283. package/mixed-line-bar-chart/styles.css.js +19 -19
  284. package/mixed-line-bar-chart/styles.scoped.css +38 -38
  285. package/mixed-line-bar-chart/styles.selectors.js +19 -19
  286. package/modal/interfaces.d.ts +1 -0
  287. package/modal/interfaces.d.ts.map +1 -1
  288. package/modal/interfaces.js.map +1 -1
  289. package/modal/styles.css.js +23 -23
  290. package/modal/styles.scoped.css +67 -67
  291. package/modal/styles.selectors.js +23 -23
  292. package/multiselect/interfaces.d.ts +1 -0
  293. package/multiselect/interfaces.d.ts.map +1 -1
  294. package/multiselect/interfaces.js.map +1 -1
  295. package/multiselect/styles.css.js +1 -1
  296. package/multiselect/styles.scoped.css +5 -5
  297. package/multiselect/styles.selectors.js +1 -1
  298. package/package.json +1 -1
  299. package/pagination/interfaces.d.ts +1 -0
  300. package/pagination/interfaces.d.ts.map +1 -1
  301. package/pagination/interfaces.js.map +1 -1
  302. package/pagination/styles.css.js +9 -9
  303. package/pagination/styles.scoped.css +47 -47
  304. package/pagination/styles.selectors.js +9 -9
  305. package/pie-chart/interfaces.d.ts +4 -0
  306. package/pie-chart/interfaces.d.ts.map +1 -1
  307. package/pie-chart/interfaces.js.map +1 -1
  308. package/pie-chart/styles.css.js +27 -27
  309. package/pie-chart/styles.scoped.css +70 -70
  310. package/pie-chart/styles.selectors.js +27 -27
  311. package/popover/interfaces.d.ts +1 -0
  312. package/popover/interfaces.d.ts.map +1 -1
  313. package/popover/interfaces.js.map +1 -1
  314. package/popover/styles.css.js +50 -50
  315. package/popover/styles.scoped.css +104 -104
  316. package/popover/styles.selectors.js +50 -50
  317. package/progress-bar/styles.css.js +18 -18
  318. package/progress-bar/styles.scoped.css +58 -58
  319. package/progress-bar/styles.selectors.js +18 -18
  320. package/property-filter/interfaces.d.ts +1 -0
  321. package/property-filter/interfaces.d.ts.map +1 -1
  322. package/property-filter/interfaces.js.map +1 -1
  323. package/property-filter/styles.css.js +29 -29
  324. package/property-filter/styles.scoped.css +52 -52
  325. package/property-filter/styles.selectors.js +29 -29
  326. package/radio-group/styles.css.js +9 -9
  327. package/radio-group/styles.scoped.css +37 -37
  328. package/radio-group/styles.selectors.js +9 -9
  329. package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
  330. package/s3-resource-selector/s3-in-context/styles.scoped.css +12 -12
  331. package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
  332. package/segmented-control/styles.css.js +14 -14
  333. package/segmented-control/styles.scoped.css +78 -78
  334. package/segmented-control/styles.selectors.js +14 -14
  335. package/select/interfaces.d.ts +2 -0
  336. package/select/interfaces.d.ts.map +1 -1
  337. package/select/interfaces.js.map +1 -1
  338. package/select/parts/styles.css.js +9 -9
  339. package/select/parts/styles.scoped.css +17 -17
  340. package/select/parts/styles.selectors.js +9 -9
  341. package/select/styles.css.js +1 -1
  342. package/select/styles.scoped.css +5 -5
  343. package/select/styles.selectors.js +1 -1
  344. package/side-navigation/styles.css.js +27 -27
  345. package/side-navigation/styles.scoped.css +89 -89
  346. package/side-navigation/styles.selectors.js +27 -27
  347. package/space-between/styles.css.js +20 -20
  348. package/space-between/styles.scoped.css +37 -37
  349. package/space-between/styles.selectors.js +20 -20
  350. package/spinner/styles.css.js +13 -13
  351. package/spinner/styles.scoped.css +35 -35
  352. package/spinner/styles.selectors.js +13 -13
  353. package/split-panel/interfaces.d.ts +1 -0
  354. package/split-panel/interfaces.d.ts.map +1 -1
  355. package/split-panel/interfaces.js.map +1 -1
  356. package/split-panel/styles.css.js +59 -59
  357. package/split-panel/styles.scoped.css +150 -150
  358. package/split-panel/styles.selectors.js +59 -59
  359. package/status-indicator/styles.css.js +20 -20
  360. package/status-indicator/styles.scoped.css +44 -44
  361. package/status-indicator/styles.selectors.js +20 -20
  362. package/table/body-cell/styles.css.js +28 -28
  363. package/table/body-cell/styles.scoped.css +144 -144
  364. package/table/body-cell/styles.selectors.js +28 -28
  365. package/table/header-cell/styles.css.js +24 -24
  366. package/table/header-cell/styles.scoped.css +93 -93
  367. package/table/header-cell/styles.selectors.js +24 -24
  368. package/table/interfaces.d.ts +1 -0
  369. package/table/interfaces.d.ts.map +1 -1
  370. package/table/interfaces.js.map +1 -1
  371. package/table/resizer/styles.css.js +6 -6
  372. package/table/resizer/styles.scoped.css +27 -27
  373. package/table/resizer/styles.selectors.js +6 -6
  374. package/table/selection-control/styles.css.js +3 -3
  375. package/table/selection-control/styles.scoped.css +4 -4
  376. package/table/selection-control/styles.selectors.js +3 -3
  377. package/table/styles.css.js +36 -36
  378. package/table/styles.scoped.css +88 -88
  379. package/table/styles.selectors.js +36 -36
  380. package/tabs/interfaces.d.ts +1 -0
  381. package/tabs/interfaces.d.ts.map +1 -1
  382. package/tabs/interfaces.js.map +1 -1
  383. package/tabs/styles.css.js +21 -21
  384. package/tabs/styles.scoped.css +86 -86
  385. package/tabs/styles.selectors.js +21 -21
  386. package/tag-editor/styles.css.js +3 -3
  387. package/tag-editor/styles.scoped.css +24 -24
  388. package/tag-editor/styles.selectors.js +3 -3
  389. package/text-content/styles.css.js +1 -1
  390. package/text-content/styles.scoped.css +125 -125
  391. package/text-content/styles.selectors.js +1 -1
  392. package/text-filter/styles.css.js +3 -3
  393. package/text-filter/styles.scoped.css +10 -10
  394. package/text-filter/styles.selectors.js +3 -3
  395. package/textarea/styles.css.js +4 -4
  396. package/textarea/styles.scoped.css +40 -40
  397. package/textarea/styles.selectors.js +4 -4
  398. package/tiles/styles.css.js +28 -28
  399. package/tiles/styles.scoped.css +124 -124
  400. package/tiles/styles.selectors.js +28 -28
  401. package/toggle/styles.css.js +8 -8
  402. package/toggle/styles.scoped.css +27 -27
  403. package/toggle/styles.selectors.js +8 -8
  404. package/token-group/interfaces.d.ts +1 -0
  405. package/token-group/interfaces.d.ts.map +1 -1
  406. package/token-group/interfaces.js.map +1 -1
  407. package/token-group/styles.css.js +7 -7
  408. package/token-group/styles.scoped.css +42 -42
  409. package/token-group/styles.selectors.js +7 -7
  410. package/top-navigation/1.0-beta/styles.css.js +25 -25
  411. package/top-navigation/1.0-beta/styles.scoped.css +84 -84
  412. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  413. package/top-navigation/interfaces.d.ts +1 -0
  414. package/top-navigation/interfaces.d.ts.map +1 -1
  415. package/top-navigation/interfaces.js.map +1 -1
  416. package/top-navigation/styles.css.js +47 -47
  417. package/top-navigation/styles.scoped.css +148 -148
  418. package/top-navigation/styles.selectors.js +47 -47
  419. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  420. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +43 -43
  421. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  422. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  423. package/tutorial-panel/components/tutorial-list/styles.scoped.css +50 -50
  424. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  425. package/tutorial-panel/styles.css.js +1 -1
  426. package/tutorial-panel/styles.scoped.css +6 -6
  427. package/tutorial-panel/styles.selectors.js +1 -1
  428. package/wizard/interfaces.d.ts +1 -0
  429. package/wizard/interfaces.d.ts.map +1 -1
  430. package/wizard/interfaces.js.map +1 -1
  431. package/wizard/styles.css.js +31 -31
  432. package/wizard/styles.scoped.css +125 -125
  433. package/wizard/styles.selectors.js +31 -31
@@ -90,67 +90,67 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_button-dropdown_sne0l_1jdy2_93:not(#\9) {
93
+ .awsui_button-dropdown_sne0l_14ox4_93:not(#\9) {
94
94
  display: inline-block;
95
95
  }
96
96
 
97
- .awsui_items-list-container_sne0l_1jdy2_97:not(#\9) {
97
+ .awsui_items-list-container_sne0l_14ox4_97:not(#\9) {
98
98
  padding: 0;
99
99
  margin: 0;
100
- animation: awsui_awsui-motion-fade-in-0_sne0l_1jdy2_1 500ms var(--motion-easing-show-quick-vlcbqf, ease-out);
100
+ animation: awsui_awsui-motion-fade-in-0_sne0l_14ox4_1 500ms var(--motion-easing-show-quick-17va6f, ease-out);
101
101
  animation-fill-mode: none;
102
102
  }
103
103
  @media (prefers-reduced-motion: reduce) {
104
- .awsui_items-list-container_sne0l_1jdy2_97:not(#\9) {
104
+ .awsui_items-list-container_sne0l_14ox4_97:not(#\9) {
105
105
  animation: none;
106
106
  transition: none;
107
107
  }
108
108
  }
109
- .awsui-motion-disabled .awsui_items-list-container_sne0l_1jdy2_97:not(#\9), .awsui-mode-entering .awsui_items-list-container_sne0l_1jdy2_97:not(#\9) {
109
+ .awsui-motion-disabled .awsui_items-list-container_sne0l_14ox4_97:not(#\9), .awsui-mode-entering .awsui_items-list-container_sne0l_14ox4_97:not(#\9) {
110
110
  animation: none;
111
111
  transition: none;
112
112
  }
113
113
 
114
- .awsui_rotate-up_sne0l_1jdy2_114:not(#\9) {
114
+ .awsui_rotate-up_sne0l_14ox4_114:not(#\9) {
115
115
  transform: rotate(-180deg);
116
- transition: transform var(--motion-duration-rotate-180-i3ygzg, 135ms) var(--motion-easing-rotate-180-qx5hdf, cubic-bezier(0.165, 0.84, 0.44, 1));
116
+ transition: transform var(--motion-duration-rotate-180-m9g4a9, 135ms) var(--motion-easing-rotate-180-h4cyjx, cubic-bezier(0.165, 0.84, 0.44, 1));
117
117
  }
118
118
  @media (prefers-reduced-motion: reduce) {
119
- .awsui_rotate-up_sne0l_1jdy2_114:not(#\9) {
119
+ .awsui_rotate-up_sne0l_14ox4_114:not(#\9) {
120
120
  animation: none;
121
121
  transition: none;
122
122
  }
123
123
  }
124
- .awsui-motion-disabled .awsui_rotate-up_sne0l_1jdy2_114:not(#\9), .awsui-mode-entering .awsui_rotate-up_sne0l_1jdy2_114:not(#\9) {
124
+ .awsui-motion-disabled .awsui_rotate-up_sne0l_14ox4_114:not(#\9), .awsui-mode-entering .awsui_rotate-up_sne0l_14ox4_114:not(#\9) {
125
125
  animation: none;
126
126
  transition: none;
127
127
  }
128
128
 
129
- .awsui_rotate-down_sne0l_1jdy2_129:not(#\9) {
129
+ .awsui_rotate-down_sne0l_14ox4_129:not(#\9) {
130
130
  transform: rotate(0deg);
131
- transition: transform var(--motion-duration-rotate-180-i3ygzg, 135ms) var(--motion-easing-rotate-180-qx5hdf, cubic-bezier(0.165, 0.84, 0.44, 1));
131
+ transition: transform var(--motion-duration-rotate-180-m9g4a9, 135ms) var(--motion-easing-rotate-180-h4cyjx, cubic-bezier(0.165, 0.84, 0.44, 1));
132
132
  }
133
133
  @media (prefers-reduced-motion: reduce) {
134
- .awsui_rotate-down_sne0l_1jdy2_129:not(#\9) {
134
+ .awsui_rotate-down_sne0l_14ox4_129:not(#\9) {
135
135
  animation: none;
136
136
  transition: none;
137
137
  }
138
138
  }
139
- .awsui-motion-disabled .awsui_rotate-down_sne0l_1jdy2_129:not(#\9), .awsui-mode-entering .awsui_rotate-down_sne0l_1jdy2_129:not(#\9) {
139
+ .awsui-motion-disabled .awsui_rotate-down_sne0l_14ox4_129:not(#\9), .awsui-mode-entering .awsui_rotate-down_sne0l_14ox4_129:not(#\9) {
140
140
  animation: none;
141
141
  transition: none;
142
142
  }
143
143
 
144
- .awsui_header_sne0l_1jdy2_144:not(#\9) {
144
+ .awsui_header_sne0l_14ox4_144:not(#\9) {
145
145
  display: flex;
146
146
  flex-direction: column;
147
147
  list-style: none;
148
- padding: var(--space-s-rd607g, 12px) var(--space-l-ds615y, 20px);
149
- border: var(--border-field-width-egrqih, 2px) solid transparent;
150
- border-bottom: var(--border-field-width-egrqih, 2px) solid var(--color-border-dropdown-group-l3q7ne, #e9ebed);
148
+ padding: var(--space-s-hdd878, 12px) var(--space-l-f4l5gr, 20px);
149
+ border: var(--border-field-width-riro62, 2px) solid transparent;
150
+ border-bottom: var(--border-field-width-riro62, 2px) solid var(--color-border-dropdown-group-qb493x, #e9ebed);
151
151
  }
152
152
 
153
- .awsui_title_sne0l_1jdy2_153:not(#\9),
154
- .awsui_description_sne0l_1jdy2_154:not(#\9) {
155
- color: var(--color-text-dropdown-header-892ghs, #000716);
153
+ .awsui_title_sne0l_14ox4_153:not(#\9),
154
+ .awsui_description_sne0l_14ox4_154:not(#\9) {
155
+ color: var(--color-text-dropdown-header-mdcup0, #000716);
156
156
  }
@@ -2,13 +2,13 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "button-dropdown": "awsui_button-dropdown_sne0l_1jdy2_93",
6
- "items-list-container": "awsui_items-list-container_sne0l_1jdy2_97",
7
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_sne0l_1jdy2_1",
8
- "rotate-up": "awsui_rotate-up_sne0l_1jdy2_114",
9
- "rotate-down": "awsui_rotate-down_sne0l_1jdy2_129",
10
- "header": "awsui_header_sne0l_1jdy2_144",
11
- "title": "awsui_title_sne0l_1jdy2_153",
12
- "description": "awsui_description_sne0l_1jdy2_154"
5
+ "button-dropdown": "awsui_button-dropdown_sne0l_14ox4_93",
6
+ "items-list-container": "awsui_items-list-container_sne0l_14ox4_97",
7
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_sne0l_14ox4_1",
8
+ "rotate-up": "awsui_rotate-up_sne0l_14ox4_114",
9
+ "rotate-down": "awsui_rotate-down_sne0l_14ox4_129",
10
+ "header": "awsui_header_sne0l_14ox4_144",
11
+ "title": "awsui_title_sne0l_14ox4_153",
12
+ "description": "awsui_description_sne0l_14ox4_154"
13
13
  };
14
14
 
@@ -39,14 +39,17 @@ export interface CalendarProps extends BaseComponentProps {
39
39
  ariaDescribedby?: string;
40
40
  /**
41
41
  * Used as part of the `aria-label` for today's date in the calendar.
42
+ * @i18n
42
43
  */
43
44
  todayAriaLabel?: string;
44
45
  /**
45
46
  * Specifies an `aria-label` for the 'next month' button.
47
+ * @i18n
46
48
  */
47
49
  nextMonthAriaLabel?: string;
48
50
  /**
49
51
  * Specifies an `aria-label` for the 'previous month' button.
52
+ * @i18n
50
53
  */
51
54
  previousMonthAriaLabel?: string;
52
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["calendar/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC;IAEpD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;OAGG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OAAO,CAAC;KACvB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["calendar/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CalendarProps extends BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n\n /**\n * Defines whether a particular date is enabled in the calendar or not.\n * If you disable a date in the calendar, users can still enter this date using a keyboard.\n * We recommend that you also validate these constraints on the client-side and server-side\n * as you would for other form elements.\n * @param date\n */\n isDateEnabled?: CalendarProps.IsDateEnabledFunction;\n\n /**\n * Specifies the locale to use to render month names and determine the starting day of the week.\n * If you don't provide this, the locale is determined by the page and browser locales.\n * Supported values and formats are listed in the\n * [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n */\n locale?: string;\n\n /**\n * Determines the starting day of the week. The values 0-6 map to Sunday-Saturday.\n * By default the starting day of the week is defined by the locale, but you can use this property to override it.\n */\n startOfWeek?: number;\n\n /**\n * Adds an `aria-label` to the calendar.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the calendar.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the calendar.\n */\n ariaDescribedby?: string;\n\n /**\n * Used as part of the `aria-label` for today's date in the calendar.\n */\n todayAriaLabel?: string;\n\n /**\n * Specifies an `aria-label` for the 'next month' button.\n */\n nextMonthAriaLabel?: string;\n\n /**\n * Specifies an `aria-label` for the 'previous month' button.\n */\n previousMonthAriaLabel?: string;\n\n /**\n * Called whenever a user changes the input value (by typing, pasting, or selecting a value).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<CalendarProps.ChangeDetail>;\n}\n\nexport namespace CalendarProps {\n export interface ChangeDetail {\n /**\n * The new value of this component.\n */\n value: string;\n }\n\n export interface IsDateEnabledFunction {\n (date: Date): boolean;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["calendar/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface CalendarProps extends BaseComponentProps {\n /**\n * The current input value, in YYYY-MM-DD format.\n */\n value: string;\n\n /**\n * Defines whether a particular date is enabled in the calendar or not.\n * If you disable a date in the calendar, users can still enter this date using a keyboard.\n * We recommend that you also validate these constraints on the client-side and server-side\n * as you would for other form elements.\n * @param date\n */\n isDateEnabled?: CalendarProps.IsDateEnabledFunction;\n\n /**\n * Specifies the locale to use to render month names and determine the starting day of the week.\n * If you don't provide this, the locale is determined by the page and browser locales.\n * Supported values and formats are listed in the\n * [JavaScript Intl API specification](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).\n */\n locale?: string;\n\n /**\n * Determines the starting day of the week. The values 0-6 map to Sunday-Saturday.\n * By default the starting day of the week is defined by the locale, but you can use this property to override it.\n */\n startOfWeek?: number;\n\n /**\n * Adds an `aria-label` to the calendar.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-labelledby` to the calendar.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the calendar.\n */\n ariaDescribedby?: string;\n\n /**\n * Used as part of the `aria-label` for today's date in the calendar.\n * @i18n\n */\n todayAriaLabel?: string;\n\n /**\n * Specifies an `aria-label` for the 'next month' button.\n * @i18n\n */\n nextMonthAriaLabel?: string;\n\n /**\n * Specifies an `aria-label` for the 'previous month' button.\n * @i18n\n */\n previousMonthAriaLabel?: string;\n\n /**\n * Called whenever a user changes the input value (by typing, pasting, or selecting a value).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<CalendarProps.ChangeDetail>;\n}\n\nexport namespace CalendarProps {\n export interface ChangeDetail {\n /**\n * The new value of this component.\n */\n value: string;\n }\n\n export interface IsDateEnabledFunction {\n (date: Date): boolean;\n }\n}\n"]}
@@ -1,23 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "calendar": "awsui_calendar_1ykar_bzka2_93",
5
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1ykar_bzka2_1",
6
- "root": "awsui_root_1ykar_bzka2_124",
7
- "calendar-inner": "awsui_calendar-inner_1ykar_bzka2_143",
8
- "calendar-header": "awsui_calendar-header_1ykar_bzka2_146",
9
- "calendar-header-month": "awsui_calendar-header-month_1ykar_bzka2_151",
10
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_1ykar_bzka2_158",
11
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_1ykar_bzka2_161",
12
- "calendar-grid": "awsui_calendar-grid_1ykar_bzka2_164",
13
- "calendar-grid-cell": "awsui_calendar-grid-cell_1ykar_bzka2_168",
14
- "calendar-day-header": "awsui_calendar-day-header_1ykar_bzka2_174",
15
- "calendar-day": "awsui_calendar-day_1ykar_bzka2_174",
16
- "calendar-day-enabled": "awsui_calendar-day-enabled_1ykar_bzka2_191",
17
- "calendar-day-current-month": "awsui_calendar-day-current-month_1ykar_bzka2_198",
18
- "calendar-day-selected": "awsui_calendar-day-selected_1ykar_bzka2_205",
19
- "calendar-day-today": "awsui_calendar-day-today_1ykar_bzka2_208",
20
- "day-inner": "awsui_day-inner_1ykar_bzka2_223",
21
- "calendar-week": "awsui_calendar-week_1ykar_bzka2_288"
4
+ "calendar": "awsui_calendar_1ykar_1mzwv_93",
5
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1ykar_1mzwv_1",
6
+ "root": "awsui_root_1ykar_1mzwv_124",
7
+ "calendar-inner": "awsui_calendar-inner_1ykar_1mzwv_143",
8
+ "calendar-header": "awsui_calendar-header_1ykar_1mzwv_146",
9
+ "calendar-header-month": "awsui_calendar-header-month_1ykar_1mzwv_151",
10
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_1ykar_1mzwv_158",
11
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_1ykar_1mzwv_161",
12
+ "calendar-grid": "awsui_calendar-grid_1ykar_1mzwv_164",
13
+ "calendar-grid-cell": "awsui_calendar-grid-cell_1ykar_1mzwv_168",
14
+ "calendar-day-header": "awsui_calendar-day-header_1ykar_1mzwv_174",
15
+ "calendar-day": "awsui_calendar-day_1ykar_1mzwv_174",
16
+ "calendar-day-enabled": "awsui_calendar-day-enabled_1ykar_1mzwv_191",
17
+ "calendar-day-current-month": "awsui_calendar-day-current-month_1ykar_1mzwv_198",
18
+ "calendar-day-selected": "awsui_calendar-day-selected_1ykar_1mzwv_205",
19
+ "calendar-day-today": "awsui_calendar-day-today_1ykar_1mzwv_208",
20
+ "day-inner": "awsui_day-inner_1ykar_1mzwv_223",
21
+ "calendar-week": "awsui_calendar-week_1ykar_1mzwv_288"
22
22
  };
23
23
 
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_calendar_1ykar_bzka2_93:not(#\9) {
94
- animation: awsui_awsui-motion-fade-in-0_1ykar_bzka2_1 var(--motion-duration-show-quick-b6n9lb, 135ms) var(--motion-easing-show-quick-vlcbqf, ease-out);
93
+ .awsui_calendar_1ykar_1mzwv_93:not(#\9) {
94
+ animation: awsui_awsui-motion-fade-in-0_1ykar_1mzwv_1 var(--motion-duration-show-quick-fkbsov, 135ms) var(--motion-easing-show-quick-17va6f, ease-out);
95
95
  animation-fill-mode: both;
96
96
  }
97
- @keyframes awsui_awsui-motion-fade-in-0_1ykar_bzka2_1 {
97
+ @keyframes awsui_awsui-motion-fade-in-0_1ykar_1mzwv_1 {
98
98
  from {
99
99
  opacity: 0;
100
100
  }
@@ -103,12 +103,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
103
103
  }
104
104
  }
105
105
  @media (prefers-reduced-motion: reduce) {
106
- .awsui_calendar_1ykar_bzka2_93:not(#\9) {
106
+ .awsui_calendar_1ykar_1mzwv_93:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
110
110
  }
111
- .awsui-motion-disabled .awsui_calendar_1ykar_bzka2_93:not(#\9), .awsui-mode-entering .awsui_calendar_1ykar_bzka2_93:not(#\9) {
111
+ .awsui-motion-disabled .awsui_calendar_1ykar_1mzwv_93:not(#\9), .awsui-mode-entering .awsui_calendar_1ykar_1mzwv_93:not(#\9) {
112
112
  animation: none;
113
113
  transition: none;
114
114
  }
@@ -121,13 +121,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
121
121
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
122
122
  SPDX-License-Identifier: Apache-2.0
123
123
  */
124
- .awsui_root_1ykar_bzka2_124:not(#\9) {
124
+ .awsui_root_1ykar_1mzwv_124:not(#\9) {
125
125
  /* used in test-utils */
126
126
  }
127
127
 
128
- .awsui_calendar_1ykar_bzka2_93:not(#\9) {
128
+ .awsui_calendar_1ykar_1mzwv_93:not(#\9) {
129
129
  display: block;
130
- width: var(--size-calendar-grid-width-fvnn65, 238px);
130
+ width: var(--size-calendar-grid-width-5g8y2e, 238px);
131
131
  overflow: auto;
132
132
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
133
133
  border-collapse: separate;
@@ -158,159 +158,159 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
158
158
  widows: 2;
159
159
  word-spacing: normal;
160
160
  box-sizing: border-box;
161
- font-size: var(--font-body-m-size-cqtcam, 14px);
162
- line-height: var(--font-body-m-line-height-83azrc, 22px);
163
- color: var(--color-text-body-default-01bwmw, #000716);
161
+ font-size: var(--font-body-m-size-7dign1, 14px);
162
+ line-height: var(--font-body-m-line-height-rfgrp9, 22px);
163
+ color: var(--color-text-body-default-mmvcvg, #000716);
164
164
  font-weight: 400;
165
- font-family: var(--font-family-base-kd6hgy, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
165
+ font-family: var(--font-family-base-wn913o, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
166
166
  -webkit-font-smoothing: auto;
167
167
  -moz-osx-font-smoothing: auto;
168
168
  }
169
- .awsui_calendar-inner_1ykar_bzka2_143:not(#\9) {
170
- margin: var(--space-xs-inub5w, 8px);
169
+ .awsui_calendar-inner_1ykar_1mzwv_143:not(#\9) {
170
+ margin: var(--space-xs-edba2s, 8px);
171
171
  }
172
- .awsui_calendar-header_1ykar_bzka2_146:not(#\9) {
172
+ .awsui_calendar-header_1ykar_1mzwv_146:not(#\9) {
173
173
  display: flex;
174
174
  justify-content: space-between;
175
175
  align-items: center;
176
176
  }
177
- .awsui_calendar-header-month_1ykar_bzka2_151:not(#\9) {
178
- font-size: var(--font-body-m-size-cqtcam, 14px);
179
- line-height: var(--font-body-m-line-height-83azrc, 22px);
177
+ .awsui_calendar-header-month_1ykar_1mzwv_151:not(#\9) {
178
+ font-size: var(--font-body-m-size-7dign1, 14px);
179
+ line-height: var(--font-body-m-line-height-rfgrp9, 22px);
180
180
  font-weight: 700;
181
- color: var(--color-text-dropdown-item-default-23eojq, #000716);
181
+ color: var(--color-text-dropdown-item-default-dyep5n, #000716);
182
182
  margin: 0;
183
183
  }
184
- .awsui_calendar-next-month-btn_1ykar_bzka2_158:not(#\9) {
184
+ .awsui_calendar-next-month-btn_1ykar_1mzwv_158:not(#\9) {
185
185
  /* used for identifying element */
186
186
  }
187
- .awsui_calendar-prev-month-btn_1ykar_bzka2_161:not(#\9) {
187
+ .awsui_calendar-prev-month-btn_1ykar_1mzwv_161:not(#\9) {
188
188
  /* used for identifying element */
189
189
  }
190
- .awsui_calendar-grid_1ykar_bzka2_164:not(#\9) {
190
+ .awsui_calendar-grid_1ykar_1mzwv_164:not(#\9) {
191
191
  width: 100%;
192
192
  border-spacing: 0;
193
193
  }
194
- .awsui_calendar-grid-cell_1ykar_bzka2_168:not(#\9) {
194
+ .awsui_calendar-grid-cell_1ykar_1mzwv_168:not(#\9) {
195
195
  width: 14.2857142857%;
196
196
  word-break: break-word;
197
197
  text-align: center;
198
198
  font-weight: unset;
199
199
  }
200
- .awsui_calendar-day-header_1ykar_bzka2_174:not(#\9) {
201
- padding: var(--space-s-rd607g, 12px) 0 var(--space-xxs-a6783b, 4px);
202
- color: var(--color-text-calendar-month-a9ogmz, #5f6b7a);
203
- font-size: var(--font-body-s-size-zu142i, 12px);
204
- line-height: var(--font-body-s-line-height-yd7nw5, 16px);
205
- letter-spacing: var(--font-body-s-letter-spacing-26nwxv, 0.005em);
206
- }
207
- .awsui_calendar-day_1ykar_bzka2_174:not(#\9) {
208
- border-bottom: 1px solid var(--color-border-calendar-grid-24tkkl, transparent);
209
- border-right: 1px solid var(--color-border-calendar-grid-24tkkl, transparent);
210
- padding: var(--space-xxs-a6783b, 4px) 0;
211
- color: var(--color-text-dropdown-item-disabled-9e6ykc, #9ba7b6);
200
+ .awsui_calendar-day-header_1ykar_1mzwv_174:not(#\9) {
201
+ padding: var(--space-s-hdd878, 12px) 0 var(--space-xxs-ja5cp8, 4px);
202
+ color: var(--color-text-calendar-month-tvowxv, #5f6b7a);
203
+ font-size: var(--font-body-s-size-6jmxer, 12px);
204
+ line-height: var(--font-body-s-line-height-ga8tt7, 16px);
205
+ letter-spacing: var(--font-body-s-letter-spacing-v8bwhi, 0.005em);
206
+ }
207
+ .awsui_calendar-day_1ykar_1mzwv_174:not(#\9) {
208
+ border-bottom: 1px solid var(--color-border-calendar-grid-kpox7s, transparent);
209
+ border-right: 1px solid var(--color-border-calendar-grid-kpox7s, transparent);
210
+ padding: var(--space-xxs-ja5cp8, 4px) 0;
211
+ color: var(--color-text-dropdown-item-disabled-p5eewj, #9ba7b6);
212
212
  position: relative;
213
213
  }
214
- .awsui_calendar-day_1ykar_bzka2_174:not(#\9):first-child {
215
- border-left: 1px solid var(--color-border-calendar-grid-24tkkl, transparent);
214
+ .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):first-child {
215
+ border-left: 1px solid var(--color-border-calendar-grid-kpox7s, transparent);
216
216
  }
217
- .awsui_calendar-day-enabled_1ykar_bzka2_191:not(#\9) {
217
+ .awsui_calendar-day-enabled_1ykar_1mzwv_191:not(#\9) {
218
218
  cursor: pointer;
219
- color: var(--color-text-dropdown-item-secondary-d2dxdn, #5f6b7a);
219
+ color: var(--color-text-dropdown-item-secondary-c4unu9, #5f6b7a);
220
220
  }
221
- .awsui_calendar-day-enabled_1ykar_bzka2_191:not(#\9)::after {
222
- border-radius: var(--border-radius-item-5rz9ov, 8px);
221
+ .awsui_calendar-day-enabled_1ykar_1mzwv_191:not(#\9)::after {
222
+ border-radius: var(--border-radius-item-gyl0qr, 8px);
223
223
  }
224
- .awsui_calendar-day-enabled_1ykar_bzka2_191.awsui_calendar-day-current-month_1ykar_bzka2_198:not(#\9) {
225
- color: var(--color-text-dropdown-item-default-23eojq, #000716);
224
+ .awsui_calendar-day-enabled_1ykar_1mzwv_191.awsui_calendar-day-current-month_1ykar_1mzwv_198:not(#\9) {
225
+ color: var(--color-text-dropdown-item-default-dyep5n, #000716);
226
226
  }
227
- .awsui_calendar-day-enabled_1ykar_bzka2_191.awsui_calendar-day-current-month_1ykar_bzka2_198:not(#\9):hover {
228
- color: var(--color-text-calendar-day-hover-a8ka2o, #000716);
229
- background-color: var(--color-background-dropdown-item-hover-mqv311, #f4f4f4);
227
+ .awsui_calendar-day-enabled_1ykar_1mzwv_191.awsui_calendar-day-current-month_1ykar_1mzwv_198:not(#\9):hover {
228
+ color: var(--color-text-calendar-day-hover-ail3l7, #000716);
229
+ background-color: var(--color-background-dropdown-item-hover-gvdk4u, #f4f4f4);
230
230
  }
231
- .awsui_calendar-day-enabled_1ykar_bzka2_191.awsui_calendar-day-current-month_1ykar_bzka2_198:not(#\9):hover:not(.awsui_calendar-day-selected_1ykar_bzka2_205)::after {
232
- border: var(--border-item-width-4pi0dw, 2px) solid var(--color-border-dropdown-item-hover-r32qaz, #7d8998);
231
+ .awsui_calendar-day-enabled_1ykar_1mzwv_191.awsui_calendar-day-current-month_1ykar_1mzwv_198:not(#\9):hover:not(.awsui_calendar-day-selected_1ykar_1mzwv_205)::after {
232
+ border: var(--border-item-width-y36svo, 2px) solid var(--color-border-dropdown-item-hover-me98vk, #7d8998);
233
233
  }
234
- .awsui_calendar-day-today_1ykar_bzka2_208:not(#\9) {
235
- background-color: var(--color-background-calendar-today-9kadgk, #f4f4f4);
236
- border-radius: var(--border-radius-item-5rz9ov, 8px);
234
+ .awsui_calendar-day-today_1ykar_1mzwv_208:not(#\9) {
235
+ background-color: var(--color-background-calendar-today-yk2tnj, #f4f4f4);
236
+ border-radius: var(--border-radius-item-gyl0qr, 8px);
237
237
  font-weight: 700;
238
238
  }
239
- .awsui_calendar-day_1ykar_bzka2_174:not(#\9)::after {
239
+ .awsui_calendar-day_1ykar_1mzwv_174:not(#\9)::after {
240
240
  content: "";
241
241
  position: absolute;
242
242
  z-index: 1;
243
- top: calc(-1 * var(--border-item-width-4pi0dw, 2px));
243
+ top: calc(-1 * var(--border-item-width-y36svo, 2px));
244
244
  left: -1px;
245
245
  bottom: -1px;
246
- right: calc(-1 * var(--border-item-width-4pi0dw, 2px));
246
+ right: calc(-1 * var(--border-item-width-y36svo, 2px));
247
247
  background-color: transparent;
248
248
  }
249
- .awsui_calendar-day_1ykar_bzka2_174 > .awsui_day-inner_1ykar_bzka2_223:not(#\9) {
249
+ .awsui_calendar-day_1ykar_1mzwv_174 > .awsui_day-inner_1ykar_1mzwv_223:not(#\9) {
250
250
  position: relative;
251
251
  z-index: 1;
252
252
  }
253
- .awsui_calendar-day_1ykar_bzka2_174:not(#\9):focus {
253
+ .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):focus {
254
254
  outline: none;
255
255
  }
256
- body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_bzka2_174:not(#\9):focus:focus {
256
+ body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):focus:focus {
257
257
  position: relative;
258
258
  }
259
- body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_bzka2_174:not(#\9):focus:focus {
259
+ body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):focus:focus {
260
260
  outline: 2px dotted transparent;
261
- outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px) - 1px);
261
+ outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px) - 1px);
262
262
  }
263
- body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_bzka2_174:not(#\9):focus:focus::before {
263
+ body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):focus:focus::before {
264
264
  content: " ";
265
265
  display: block;
266
266
  position: absolute;
267
- left: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
268
- top: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
269
- width: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
270
- height: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
271
- border-radius: var(--border-radius-calendar-day-focus-ring-onnbsk, 3px);
272
- box-shadow: 0 0 0 2px var(--color-border-item-focused-nwfxo7, #0972d3);
273
- }
274
- body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_bzka2_174:not(#\9):focus:focus::before {
267
+ left: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
268
+ top: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
269
+ width: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
270
+ height: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
271
+ border-radius: var(--border-radius-calendar-day-focus-ring-p4dxcv, 3px);
272
+ box-shadow: 0 0 0 2px var(--color-border-item-focused-4t19h5, #0972d3);
273
+ }
274
+ body[data-awsui-focus-visible=true] .awsui_calendar-day_1ykar_1mzwv_174:not(#\9):focus:focus::before {
275
275
  z-index: 2;
276
276
  }
277
- .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9) {
277
+ .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9) {
278
278
  border-color: transparent;
279
279
  position: relative;
280
280
  z-index: 2;
281
281
  font-weight: 700;
282
282
  }
283
- body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9):focus:focus {
283
+ body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9):focus:focus {
284
284
  position: relative;
285
285
  }
286
- body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9):focus:focus {
286
+ body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9):focus:focus {
287
287
  outline: 2px dotted transparent;
288
- outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px) - 1px);
288
+ outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px) - 1px);
289
289
  }
290
- body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9):focus:focus::before {
290
+ body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9):focus:focus::before {
291
291
  content: " ";
292
292
  display: block;
293
293
  position: absolute;
294
- left: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
295
- top: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
296
- width: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
297
- height: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-2i29hf, -5px));
298
- border-radius: var(--border-radius-calendar-day-focus-ring-onnbsk, 3px);
299
- box-shadow: 0 0 0 2px var(--color-border-calendar-grid-selected-focus-ring-kuyfu4, #fbfbfb);
300
- }
301
- body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9):focus:focus::before {
294
+ left: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
295
+ top: calc(-1 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
296
+ width: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
297
+ height: calc(100% + 2 * var(--space-calendar-grid-focus-outline-gutter-reev1c, -5px));
298
+ border-radius: var(--border-radius-calendar-day-focus-ring-p4dxcv, 3px);
299
+ box-shadow: 0 0 0 2px var(--color-border-calendar-grid-selected-focus-ring-ns1ga1, #fbfbfb);
300
+ }
301
+ body[data-awsui-focus-visible=true] .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9):focus:focus::before {
302
302
  z-index: 2;
303
303
  }
304
- .awsui_calendar-day-selected_1ykar_bzka2_205:not(#\9)::after {
305
- background-color: var(--color-background-control-checked-6eqeqa, #0972d3);
306
- border: var(--border-item-width-4pi0dw, 2px) solid var(--color-background-control-checked-6eqeqa, #0972d3);
307
- border-radius: var(--border-radius-item-5rz9ov, 8px);
304
+ .awsui_calendar-day-selected_1ykar_1mzwv_205:not(#\9)::after {
305
+ background-color: var(--color-background-control-checked-k2dd8u, #0972d3);
306
+ border: var(--border-item-width-y36svo, 2px) solid var(--color-background-control-checked-k2dd8u, #0972d3);
307
+ border-radius: var(--border-radius-item-gyl0qr, 8px);
308
308
  }
309
- .awsui_calendar-day-selected_1ykar_bzka2_205 > .awsui_day-inner_1ykar_bzka2_223:not(#\9) {
309
+ .awsui_calendar-day-selected_1ykar_1mzwv_205 > .awsui_day-inner_1ykar_1mzwv_223:not(#\9) {
310
310
  z-index: 2;
311
- color: var(--color-background-control-default-ndb7qp, #ffffff);
311
+ color: var(--color-background-control-default-19p6ht, #ffffff);
312
312
  position: relative;
313
313
  }
314
- .awsui_calendar-week_1ykar_bzka2_288:not(#\9):first-child > .awsui_calendar-day_1ykar_bzka2_174 {
315
- border-top: 1px solid var(--color-border-calendar-grid-24tkkl, transparent);
314
+ .awsui_calendar-week_1ykar_1mzwv_288:not(#\9):first-child > .awsui_calendar-day_1ykar_1mzwv_174 {
315
+ border-top: 1px solid var(--color-border-calendar-grid-kpox7s, transparent);
316
316
  }
@@ -2,23 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "calendar": "awsui_calendar_1ykar_bzka2_93",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1ykar_bzka2_1",
7
- "root": "awsui_root_1ykar_bzka2_124",
8
- "calendar-inner": "awsui_calendar-inner_1ykar_bzka2_143",
9
- "calendar-header": "awsui_calendar-header_1ykar_bzka2_146",
10
- "calendar-header-month": "awsui_calendar-header-month_1ykar_bzka2_151",
11
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_1ykar_bzka2_158",
12
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_1ykar_bzka2_161",
13
- "calendar-grid": "awsui_calendar-grid_1ykar_bzka2_164",
14
- "calendar-grid-cell": "awsui_calendar-grid-cell_1ykar_bzka2_168",
15
- "calendar-day-header": "awsui_calendar-day-header_1ykar_bzka2_174",
16
- "calendar-day": "awsui_calendar-day_1ykar_bzka2_174",
17
- "calendar-day-enabled": "awsui_calendar-day-enabled_1ykar_bzka2_191",
18
- "calendar-day-current-month": "awsui_calendar-day-current-month_1ykar_bzka2_198",
19
- "calendar-day-selected": "awsui_calendar-day-selected_1ykar_bzka2_205",
20
- "calendar-day-today": "awsui_calendar-day-today_1ykar_bzka2_208",
21
- "day-inner": "awsui_day-inner_1ykar_bzka2_223",
22
- "calendar-week": "awsui_calendar-week_1ykar_bzka2_288"
5
+ "calendar": "awsui_calendar_1ykar_1mzwv_93",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1ykar_1mzwv_1",
7
+ "root": "awsui_root_1ykar_1mzwv_124",
8
+ "calendar-inner": "awsui_calendar-inner_1ykar_1mzwv_143",
9
+ "calendar-header": "awsui_calendar-header_1ykar_1mzwv_146",
10
+ "calendar-header-month": "awsui_calendar-header-month_1ykar_1mzwv_151",
11
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_1ykar_1mzwv_158",
12
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_1ykar_1mzwv_161",
13
+ "calendar-grid": "awsui_calendar-grid_1ykar_1mzwv_164",
14
+ "calendar-grid-cell": "awsui_calendar-grid-cell_1ykar_1mzwv_168",
15
+ "calendar-day-header": "awsui_calendar-day-header_1ykar_1mzwv_174",
16
+ "calendar-day": "awsui_calendar-day_1ykar_1mzwv_174",
17
+ "calendar-day-enabled": "awsui_calendar-day-enabled_1ykar_1mzwv_191",
18
+ "calendar-day-current-month": "awsui_calendar-day-current-month_1ykar_1mzwv_198",
19
+ "calendar-day-selected": "awsui_calendar-day-selected_1ykar_1mzwv_205",
20
+ "calendar-day-today": "awsui_calendar-day-today_1ykar_1mzwv_208",
21
+ "day-inner": "awsui_day-inner_1ykar_1mzwv_223",
22
+ "calendar-week": "awsui_calendar-week_1ykar_1mzwv_288"
23
23
  };
24
24
 
@@ -137,6 +137,7 @@ export interface CardsProps<T = any> extends BaseComponentProps {
137
137
  * state of the component (for example, the `selectedItems` list). The label function for individual
138
138
  * items also receives the corresponding `Item` object. You can use the group label to
139
139
  * add a meaningful description to the whole selection.
140
+ * @i18n
140
141
  */
141
142
  ariaLabels?: Cards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C;KACnB;IAED,KAAY,OAAO,CAAC,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IAExD,KAAY,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE/C,UAAiB,cAAc,CAAC,CAAC;QAC/B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC;IAED,UAAiB,qBAAqB,CAAC,CAAC;QACtC,aAAa,EAAE,CAAC,EAAE,CAAC;KACpB;IAED,KAAY,cAAc,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;IAErD,UAAiB,UAAU,CAAC,CAAC;QAC3B,kBAAkB,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;QAC3E,mBAAmB,EAAE,MAAM,CAAC;QAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,gBAAgB;QAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,GAAG;QAClB;;;WAGG;QACH,WAAW,IAAI,IAAI,CAAC;KACrB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["cards/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface CardsForwardRefType {\n <T>(props: CardsProps<T> & { ref?: React.Ref<CardsProps.Ref> }): JSX.Element;\n}\n\nexport interface CardsProps<T = any> extends BaseComponentProps {\n /**\n * Displayed only when the list of items is empty.\n */\n empty?: React.ReactNode;\n\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Use this slot to add filtering controls to the component.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the component.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the component.\n */\n preferences?: React.ReactNode;\n\n /**\n * Specifies the items that serve as data source for a card.\n *\n * The `cardDefinition` property handles the display of this data.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the cards in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text to display when in loading state.\n */\n loadingText?: string;\n\n /**\n * Defines what to display in each card. It has the following properties:\n * * `header` ((item) => ReactNode) - Responsible for displaying the card header. You receive the current item as an argument.\n * Use `fontSize=\"heading-m\"` on [link](/components/link/) components inside card header.\n * * `sections` (array) - Responsible for displaying the card content. Cards can have many sections in their\n * body. Each entry in the array is responsible for displaying a section. An entry has the following properties:\n * * `id`: (string) - A unique identifier for the section. The property is used as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys)\n * source for React rendering, and to match entries in the `visibleSections` property (if it's defined).\n * * `header`: (ReactNode) - Responsible for displaying the section header.\n * * `content`: ((item) => ReactNode) - Responsible for displaying the section content. You receive the current item as an argument.\n * * `width`: (number) - Specifies the width of the card section in percent. Use this to display multiple sections in\n * the same row. The default value is 100%.\n *\n * All of the above properties are optional.\n */\n cardDefinition: CardsProps.CardDefinition<T>;\n /**\n * Determines the number of cards per row for any interval of container width.\n * It's an array whose entries are objects containing the following:\n * - `cards` (number) - Specifies the number of cards per row.\n * - `minWidth` (number) - Specifies the minimum container width (in pixels) for which this configuration object should apply.\n *\n * For example, with this configuration:\n * ```\n * [{\n * cards: 1\n * }, {\n * minWidth: 500,\n * cards: 2\n * }, {\n * minWidth: 800,\n * cards: 3\n * }]\n * ```\n *\n * the cards component displays:\n * * 1 card per row when the container width is below 500px.\n * * 2 cards per row when the container width is between 500px and 799px.\n * * 3 cards per row when the container width is 800px or wider.\n *\n * The number of cards per row can't be greater than 20.\n *\n * Default value:\n * ```\n * [{\n * cards: 1\n * }, {\n * minWidth: 768,\n * cards: 2\n * }, {\n * minWidth: 992,\n * cards: 3\n * }, {\n * minWidth: 1200,\n * cards: 4\n * }, {\n * minWidth: 1400,\n * cards: 5\n * }, {\n * minWidth: 1920,\n * cards: 6\n * }]\n * ```\n */\n cardsPerRow?: ReadonlyArray<CardsProps.CardsLayout>;\n /**\n * Specifies the property inside items that uniquely identifies them.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It's also used for connecting `items` and `selectedItems` values when they don't reference the same object.\n */\n trackBy?: CardsProps.TrackBy<T>;\n /**\n * Specifies the selection mode. It can be either `single` or `multi`.\n */\n selectionType?: CardsProps.SelectionType;\n /**\n * Specifies the list of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n /**\n * Determines which items are disabled. If an item is disabled, users can't select it.\n */\n isItemDisabled?: CardsProps.IsItemDisabled<T>;\n /**\n * Adds labels to the selection components (checkboxes and radio buttons) as follows:\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Determines the label for an item.\n * * `selectionGroupLabel` (string) - Specifies the label for the group selection control.\n * * `cardsLabel` (string) - Provides alternative text for the cards list.\n * By default the contents of the `header` are used.\n *\n * You can use the first arguments of type `SelectionState` to access the current selection\n * state of the component (for example, the `selectedItems` list). The label function for individual\n * items also receives the corresponding `Item` object. You can use the group label to\n * add a meaningful description to the whole selection.\n */\n ariaLabels?: CardsProps.AriaLabels<T>;\n /**\n * Specifies an array containing the `id` of each visible section. If not set, all sections are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of `id`s doesn't influence the order of display of sections, which is controlled by the `cardDefinition` property.\n */\n visibleSections?: ReadonlyArray<string>;\n /**\n * Called when a user interaction causes a change in the list of selected items.\n * The event `detail` contains the current list of `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<CardsProps.SelectionChangeDetail<T>>;\n /**\n * If set to true, the cards header remains visible when the user scrolls down.\n */\n stickyHeader?: boolean;\n /**\n * Optionally provide a vertical offset (in pixels) for the sticky header, for example if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Use this property to inform screen readers how many cards there are.\n * It specifies the total number of cards.\n * If there is an unknown total number of cards, leave this property undefined. */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of cards is currently displayed.\n * It specifies the index (1-based) of the first card.\n * If the cards list has no pagination, leave this property undefined. */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * Requires the properties firstIndex and totalItemsCount to be set correctly.\n */\n renderAriaLive?: (data: CardsProps.LiveAnnouncement) => string;\n\n /**\n * Specify a cards variant with one of the following:\n * * `container` - Use this variant to have the cards displayed as a container.\n * * `full-page` – Use this variant when cards are the entire content of a page. Full page variants\n * implement the high contrast header and content behavior automatically.\n * @visualrefresh `full-page` variant\n */\n variant?: 'container' | 'full-page';\n}\n\nexport namespace CardsProps {\n export interface CardDefinition<T> {\n header?(item: T): React.ReactNode;\n sections?: ReadonlyArray<SectionDefinition<T>>;\n }\n\n export interface SectionDefinition<T> {\n id?: string;\n header?: React.ReactNode;\n content?(item: T): React.ReactNode;\n width?: number;\n }\n\n export interface CardsLayout {\n cards: number;\n minWidth?: number;\n }\n\n export type TrackBy<T> = string | ((item: T) => string);\n\n export type SelectionType = 'single' | 'multi';\n\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n }\n\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n\n export type IsItemDisabled<T> = (item: T) => boolean;\n\n export interface AriaLabels<T> {\n itemSelectionLabel: (data: CardsProps.SelectionState<T>, row: T) => string;\n selectionGroupLabel: string;\n cardsLabel?: string;\n }\n\n export interface LiveAnnouncement {\n totalItemsCount?: number;\n firstIndex: number;\n lastIndex: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled, calling this function scrolls cards's\n * scroll parent up to reveal the first card or row of cards.\n */\n scrollToTop(): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["cards/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface CardsForwardRefType {\n <T>(props: CardsProps<T> & { ref?: React.Ref<CardsProps.Ref> }): JSX.Element;\n}\n\nexport interface CardsProps<T = any> extends BaseComponentProps {\n /**\n * Displayed only when the list of items is empty.\n */\n empty?: React.ReactNode;\n\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Use this slot to add filtering controls to the component.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the component.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the component.\n */\n preferences?: React.ReactNode;\n\n /**\n * Specifies the items that serve as data source for a card.\n *\n * The `cardDefinition` property handles the display of this data.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the cards in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text to display when in loading state.\n */\n loadingText?: string;\n\n /**\n * Defines what to display in each card. It has the following properties:\n * * `header` ((item) => ReactNode) - Responsible for displaying the card header. You receive the current item as an argument.\n * Use `fontSize=\"heading-m\"` on [link](/components/link/) components inside card header.\n * * `sections` (array) - Responsible for displaying the card content. Cards can have many sections in their\n * body. Each entry in the array is responsible for displaying a section. An entry has the following properties:\n * * `id`: (string) - A unique identifier for the section. The property is used as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys)\n * source for React rendering, and to match entries in the `visibleSections` property (if it's defined).\n * * `header`: (ReactNode) - Responsible for displaying the section header.\n * * `content`: ((item) => ReactNode) - Responsible for displaying the section content. You receive the current item as an argument.\n * * `width`: (number) - Specifies the width of the card section in percent. Use this to display multiple sections in\n * the same row. The default value is 100%.\n *\n * All of the above properties are optional.\n */\n cardDefinition: CardsProps.CardDefinition<T>;\n /**\n * Determines the number of cards per row for any interval of container width.\n * It's an array whose entries are objects containing the following:\n * - `cards` (number) - Specifies the number of cards per row.\n * - `minWidth` (number) - Specifies the minimum container width (in pixels) for which this configuration object should apply.\n *\n * For example, with this configuration:\n * ```\n * [{\n * cards: 1\n * }, {\n * minWidth: 500,\n * cards: 2\n * }, {\n * minWidth: 800,\n * cards: 3\n * }]\n * ```\n *\n * the cards component displays:\n * * 1 card per row when the container width is below 500px.\n * * 2 cards per row when the container width is between 500px and 799px.\n * * 3 cards per row when the container width is 800px or wider.\n *\n * The number of cards per row can't be greater than 20.\n *\n * Default value:\n * ```\n * [{\n * cards: 1\n * }, {\n * minWidth: 768,\n * cards: 2\n * }, {\n * minWidth: 992,\n * cards: 3\n * }, {\n * minWidth: 1200,\n * cards: 4\n * }, {\n * minWidth: 1400,\n * cards: 5\n * }, {\n * minWidth: 1920,\n * cards: 6\n * }]\n * ```\n */\n cardsPerRow?: ReadonlyArray<CardsProps.CardsLayout>;\n /**\n * Specifies the property inside items that uniquely identifies them.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It's also used for connecting `items` and `selectedItems` values when they don't reference the same object.\n */\n trackBy?: CardsProps.TrackBy<T>;\n /**\n * Specifies the selection mode. It can be either `single` or `multi`.\n */\n selectionType?: CardsProps.SelectionType;\n /**\n * Specifies the list of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n /**\n * Determines which items are disabled. If an item is disabled, users can't select it.\n */\n isItemDisabled?: CardsProps.IsItemDisabled<T>;\n /**\n * Adds labels to the selection components (checkboxes and radio buttons) as follows:\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Determines the label for an item.\n * * `selectionGroupLabel` (string) - Specifies the label for the group selection control.\n * * `cardsLabel` (string) - Provides alternative text for the cards list.\n * By default the contents of the `header` are used.\n *\n * You can use the first arguments of type `SelectionState` to access the current selection\n * state of the component (for example, the `selectedItems` list). The label function for individual\n * items also receives the corresponding `Item` object. You can use the group label to\n * add a meaningful description to the whole selection.\n * @i18n\n */\n ariaLabels?: CardsProps.AriaLabels<T>;\n /**\n * Specifies an array containing the `id` of each visible section. If not set, all sections are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of `id`s doesn't influence the order of display of sections, which is controlled by the `cardDefinition` property.\n */\n visibleSections?: ReadonlyArray<string>;\n /**\n * Called when a user interaction causes a change in the list of selected items.\n * The event `detail` contains the current list of `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<CardsProps.SelectionChangeDetail<T>>;\n /**\n * If set to true, the cards header remains visible when the user scrolls down.\n */\n stickyHeader?: boolean;\n /**\n * Optionally provide a vertical offset (in pixels) for the sticky header, for example if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Use this property to inform screen readers how many cards there are.\n * It specifies the total number of cards.\n * If there is an unknown total number of cards, leave this property undefined. */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of cards is currently displayed.\n * It specifies the index (1-based) of the first card.\n * If the cards list has no pagination, leave this property undefined. */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * Requires the properties firstIndex and totalItemsCount to be set correctly.\n */\n renderAriaLive?: (data: CardsProps.LiveAnnouncement) => string;\n\n /**\n * Specify a cards variant with one of the following:\n * * `container` - Use this variant to have the cards displayed as a container.\n * * `full-page` – Use this variant when cards are the entire content of a page. Full page variants\n * implement the high contrast header and content behavior automatically.\n * @visualrefresh `full-page` variant\n */\n variant?: 'container' | 'full-page';\n}\n\nexport namespace CardsProps {\n export interface CardDefinition<T> {\n header?(item: T): React.ReactNode;\n sections?: ReadonlyArray<SectionDefinition<T>>;\n }\n\n export interface SectionDefinition<T> {\n id?: string;\n header?: React.ReactNode;\n content?(item: T): React.ReactNode;\n width?: number;\n }\n\n export interface CardsLayout {\n cards: number;\n minWidth?: number;\n }\n\n export type TrackBy<T> = string | ((item: T) => string);\n\n export type SelectionType = 'single' | 'multi';\n\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n }\n\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n\n export type IsItemDisabled<T> = (item: T) => boolean;\n\n export interface AriaLabels<T> {\n itemSelectionLabel: (data: CardsProps.SelectionState<T>, row: T) => string;\n selectionGroupLabel: string;\n cardsLabel?: string;\n }\n\n export interface LiveAnnouncement {\n totalItemsCount?: number;\n firstIndex: number;\n lastIndex: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled, calling this function scrolls cards's\n * scroll parent up to reveal the first card or row of cards.\n */\n scrollToTop(): void;\n }\n}\n"]}