@repobit/dex-system-design 3.0.1 → 3.0.3

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 (656) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
  3. package/dist/src/components/accordion/accordion-bg.css.js +1 -288
  4. package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
  5. package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
  6. package/dist/src/components/accordion/accordion-bg.js +15 -210
  7. package/dist/src/components/accordion/accordion-bg.js.map +1 -1
  8. package/dist/src/components/accordion/accordion-keyboard.js +1 -89
  9. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  10. package/dist/src/components/accordion/accordion-panel.js +1 -22
  11. package/dist/src/components/accordion/accordion-panel.js.map +1 -1
  12. package/dist/src/components/accordion/accordion.css.js +1 -380
  13. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  14. package/dist/src/components/accordion/accordion.d.ts +7 -7
  15. package/dist/src/components/accordion/accordion.js +16 -138
  16. package/dist/src/components/accordion/accordion.js.map +1 -1
  17. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
  18. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  19. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
  20. package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
  21. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  22. package/dist/src/components/alert/alert.css.js +1 -217
  23. package/dist/src/components/alert/alert.css.js.map +1 -1
  24. package/dist/src/components/alert/alert.d.ts +4 -4
  25. package/dist/src/components/alert/alert.js +6 -110
  26. package/dist/src/components/alert/alert.js.map +1 -1
  27. package/dist/src/components/anchor/anchor-nav.css.js +1 -546
  28. package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
  29. package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
  30. package/dist/src/components/anchor/anchor-nav.js +23 -567
  31. package/dist/src/components/anchor/anchor-nav.js.map +1 -1
  32. package/dist/src/components/annotation/annotation.css.js +1 -64
  33. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  34. package/dist/src/components/annotation/annotation.d.ts +2 -2
  35. package/dist/src/components/annotation/annotation.js +7 -72
  36. package/dist/src/components/annotation/annotation.js.map +1 -1
  37. package/dist/src/components/audience-card/audience-card.css.js +1 -122
  38. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  39. package/dist/src/components/audience-card/audience-card.d.ts +2 -2
  40. package/dist/src/components/audience-card/audience-card.js +8 -83
  41. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  42. package/dist/src/components/avatar/avatar.css.js +1 -65
  43. package/dist/src/components/avatar/avatar.css.js.map +1 -1
  44. package/dist/src/components/avatar/avatar.d.ts +3 -3
  45. package/dist/src/components/avatar/avatar.js +6 -76
  46. package/dist/src/components/avatar/avatar.js.map +1 -1
  47. package/dist/src/components/awards/awards-flex.css.js +1 -273
  48. package/dist/src/components/awards/awards-flex.css.js.map +1 -1
  49. package/dist/src/components/awards/awards-flex.d.ts +12 -12
  50. package/dist/src/components/awards/awards-flex.js +33 -264
  51. package/dist/src/components/awards/awards-flex.js.map +1 -1
  52. package/dist/src/components/awards/awards-spotlight.css.js +1 -161
  53. package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
  54. package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
  55. package/dist/src/components/awards/awards-spotlight.js +24 -140
  56. package/dist/src/components/awards/awards-spotlight.js.map +1 -1
  57. package/dist/src/components/awards/awards.css.js +1 -401
  58. package/dist/src/components/awards/awards.css.js.map +1 -1
  59. package/dist/src/components/awards/awards.d.ts +13 -13
  60. package/dist/src/components/awards/awards.js +26 -179
  61. package/dist/src/components/awards/awards.js.map +1 -1
  62. package/dist/src/components/awards/scroll-slides.js +1 -131
  63. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  64. package/dist/src/components/back/back.css.js +1 -91
  65. package/dist/src/components/back/back.css.js.map +1 -1
  66. package/dist/src/components/back/back.d.ts +1 -1
  67. package/dist/src/components/back/back.js +8 -71
  68. package/dist/src/components/back/back.js.map +1 -1
  69. package/dist/src/components/badge/badge.css.js +1 -204
  70. package/dist/src/components/badge/badge.css.js.map +1 -1
  71. package/dist/src/components/badge/badge.d.ts +4 -4
  72. package/dist/src/components/badge/badge.js +2 -117
  73. package/dist/src/components/badge/badge.js.map +1 -1
  74. package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
  75. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  76. package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
  77. package/dist/src/components/bento-grid/bento-grid.js +10 -189
  78. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  79. package/dist/src/components/bento-grid/bento-item.css.js +1 -338
  80. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  81. package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
  82. package/dist/src/components/bento-grid/bento-item.js +10 -94
  83. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  84. package/dist/src/components/blockquote/blockquote.css.js +1 -54
  85. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  86. package/dist/src/components/blockquote/blockquote.d.ts +2 -2
  87. package/dist/src/components/blockquote/blockquote.js +1 -44
  88. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  89. package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
  90. package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
  91. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
  92. package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
  93. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  94. package/dist/src/components/button/button.css.js +1 -843
  95. package/dist/src/components/button/button.css.js.map +1 -1
  96. package/dist/src/components/button/button.d.ts +5 -5
  97. package/dist/src/components/button/button.js +18 -420
  98. package/dist/src/components/button/button.js.map +1 -1
  99. package/dist/src/components/caption/caption.css.js +1 -29
  100. package/dist/src/components/caption/caption.css.js.map +1 -1
  101. package/dist/src/components/caption/caption.d.ts +3 -3
  102. package/dist/src/components/caption/caption.js +2 -36
  103. package/dist/src/components/caption/caption.js.map +1 -1
  104. package/dist/src/components/card-features/card-features.css.js +1 -120
  105. package/dist/src/components/card-features/card-features.css.js.map +1 -1
  106. package/dist/src/components/card-features/card-features.d.ts +3 -3
  107. package/dist/src/components/card-features/card-features.js +12 -145
  108. package/dist/src/components/card-features/card-features.js.map +1 -1
  109. package/dist/src/components/cards/card.css.js +1 -369
  110. package/dist/src/components/cards/card.css.js.map +1 -1
  111. package/dist/src/components/cards/card.d.ts +3 -3
  112. package/dist/src/components/cards/card.js +21 -312
  113. package/dist/src/components/cards/card.js.map +1 -1
  114. package/dist/src/components/carousel/carousel.css.js +1 -261
  115. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  116. package/dist/src/components/carousel/carousel.d.ts +5 -5
  117. package/dist/src/components/carousel/carousel.js +13 -297
  118. package/dist/src/components/carousel/carousel.js.map +1 -1
  119. package/dist/src/components/checkbox/checkbox.css.js +1 -173
  120. package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
  121. package/dist/src/components/checkbox/checkbox.d.ts +2 -2
  122. package/dist/src/components/checkbox/checkbox.js +5 -138
  123. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  124. package/dist/src/components/code/code.css.js +1 -73
  125. package/dist/src/components/code/code.css.js.map +1 -1
  126. package/dist/src/components/code/code.d.ts +2 -2
  127. package/dist/src/components/code/code.js +4 -87
  128. package/dist/src/components/code/code.js.map +1 -1
  129. package/dist/src/components/compare/compare.css.js +1 -478
  130. package/dist/src/components/compare/compare.css.js.map +1 -1
  131. package/dist/src/components/compare/compare.d.ts +5 -5
  132. package/dist/src/components/compare/compare.js +23 -476
  133. package/dist/src/components/compare/compare.js.map +1 -1
  134. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
  135. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  136. package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
  137. package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
  138. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  139. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
  140. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  141. package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
  142. package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
  143. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  144. package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
  145. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  146. package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
  147. package/dist/src/components/cta-banner/cta-banner.js +8 -51
  148. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  149. package/dist/src/components/display/display.css.js +1 -95
  150. package/dist/src/components/display/display.css.js.map +1 -1
  151. package/dist/src/components/display/display.d.ts +2 -2
  152. package/dist/src/components/display/display.js +3 -84
  153. package/dist/src/components/display/display.js.map +1 -1
  154. package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
  155. package/dist/src/components/divider/divider-horizontal.js +4 -63
  156. package/dist/src/components/divider/divider-horizontal.js.map +1 -1
  157. package/dist/src/components/divider/divider-vertical.d.ts +2 -2
  158. package/dist/src/components/divider/divider-vertical.js +6 -61
  159. package/dist/src/components/divider/divider-vertical.js.map +1 -1
  160. package/dist/src/components/divider/divider.css.js +1 -20
  161. package/dist/src/components/divider/divider.css.js.map +1 -1
  162. package/dist/src/components/dropdown/dropdown.css.js +1 -121
  163. package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
  164. package/dist/src/components/dropdown/dropdown.d.ts +5 -5
  165. package/dist/src/components/dropdown/dropdown.js +17 -283
  166. package/dist/src/components/dropdown/dropdown.js.map +1 -1
  167. package/dist/src/components/features/features.css.js +1 -123
  168. package/dist/src/components/features/features.css.js.map +1 -1
  169. package/dist/src/components/features/features.d.ts +5 -5
  170. package/dist/src/components/features/features.js +11 -71
  171. package/dist/src/components/features/features.js.map +1 -1
  172. package/dist/src/components/features-tab/features-tab.css.js +1 -100
  173. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  174. package/dist/src/components/features-tab/features-tab.d.ts +5 -5
  175. package/dist/src/components/features-tab/features-tab.js +9 -70
  176. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  177. package/dist/src/components/fieldset/fieldset.css.js +1 -28
  178. package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
  179. package/dist/src/components/fieldset/fieldset.d.ts +2 -2
  180. package/dist/src/components/fieldset/fieldset.js +3 -31
  181. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  182. package/dist/src/components/footer/footer-images.js +5 -27
  183. package/dist/src/components/footer/footer-images.js.map +1 -1
  184. package/dist/src/components/footer/footer-links-group.css.js +1 -33
  185. package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
  186. package/dist/src/components/footer/footer-links-group.d.ts +3 -3
  187. package/dist/src/components/footer/footer-links-group.js +3 -32
  188. package/dist/src/components/footer/footer-links-group.js.map +1 -1
  189. package/dist/src/components/footer/footer-locale.js +1 -45
  190. package/dist/src/components/footer/footer-locale.js.map +1 -1
  191. package/dist/src/components/footer/footer-lp.d.ts +7 -7
  192. package/dist/src/components/footer/footer-lp.js +8 -121
  193. package/dist/src/components/footer/footer-lp.js.map +1 -1
  194. package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
  195. package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
  196. package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
  197. package/dist/src/components/footer/footer-nav-menu.js +3 -47
  198. package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
  199. package/dist/src/components/footer/footer.css.js +1 -664
  200. package/dist/src/components/footer/footer.css.js.map +1 -1
  201. package/dist/src/components/footer/footer.d.ts +13 -13
  202. package/dist/src/components/footer/footer.js +20 -305
  203. package/dist/src/components/footer/footer.js.map +1 -1
  204. package/dist/src/components/footer/localeMap.js +1 -1
  205. package/dist/src/components/footer/localeMap.js.map +1 -1
  206. package/dist/src/components/grid/grid.css.js +1 -78
  207. package/dist/src/components/grid/grid.css.js.map +1 -1
  208. package/dist/src/components/grid/grid.d.ts +2 -2
  209. package/dist/src/components/grid/grid.js +9 -126
  210. package/dist/src/components/grid/grid.js.map +1 -1
  211. package/dist/src/components/header/header-code.css.js +1 -369
  212. package/dist/src/components/header/header-code.css.js.map +1 -1
  213. package/dist/src/components/header/header-code.d.ts +4 -4
  214. package/dist/src/components/header/header-code.js +15 -163
  215. package/dist/src/components/header/header-code.js.map +1 -1
  216. package/dist/src/components/header/header.css.js +1 -757
  217. package/dist/src/components/header/header.css.js.map +1 -1
  218. package/dist/src/components/header/header.d.ts +7 -7
  219. package/dist/src/components/header/header.js +4 -212
  220. package/dist/src/components/header/header.js.map +1 -1
  221. package/dist/src/components/heading/heading.css.js +1 -89
  222. package/dist/src/components/heading/heading.css.js.map +1 -1
  223. package/dist/src/components/heading/heading.d.ts +2 -2
  224. package/dist/src/components/heading/heading.js +1 -108
  225. package/dist/src/components/heading/heading.js.map +1 -1
  226. package/dist/src/components/help-text/help-text.css.js +1 -19
  227. package/dist/src/components/help-text/help-text.css.js.map +1 -1
  228. package/dist/src/components/help-text/help-text.d.ts +2 -2
  229. package/dist/src/components/help-text/help-text.js +3 -31
  230. package/dist/src/components/help-text/help-text.js.map +1 -1
  231. package/dist/src/components/hero/hero.css.js +1 -362
  232. package/dist/src/components/hero/hero.css.js.map +1 -1
  233. package/dist/src/components/hero/hero.d.ts +3 -3
  234. package/dist/src/components/hero/hero.js +12 -164
  235. package/dist/src/components/hero/hero.js.map +1 -1
  236. package/dist/src/components/highlight/highlight.css.js +1 -175
  237. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  238. package/dist/src/components/highlight/highlight.d.ts +3 -3
  239. package/dist/src/components/highlight/highlight.js +4 -115
  240. package/dist/src/components/highlight/highlight.js.map +1 -1
  241. package/dist/src/components/icons/analysis-icon.d.ts +1 -1
  242. package/dist/src/components/icons/analysis-icon.js +2 -20
  243. package/dist/src/components/icons/analysis-icon.js.map +1 -1
  244. package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
  245. package/dist/src/components/icons/arrow-down-icon.js +2 -20
  246. package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
  247. package/dist/src/components/icons/arrow-icon.d.ts +1 -1
  248. package/dist/src/components/icons/arrow-icon.js +2 -48
  249. package/dist/src/components/icons/arrow-icon.js.map +1 -1
  250. package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
  251. package/dist/src/components/icons/arrow-right-icon.js +2 -45
  252. package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
  253. package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
  254. package/dist/src/components/icons/arrow-up-icon.js +2 -33
  255. package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
  256. package/dist/src/components/icons/av-comparatives-icon.js +2 -31
  257. package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
  258. package/dist/src/components/icons/bd-ai-icon.js +2 -31
  259. package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
  260. package/dist/src/components/icons/best-brands-icon.js +2 -31
  261. package/dist/src/components/icons/best-brands-icon.js.map +1 -1
  262. package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
  263. package/dist/src/components/icons/brand-signature-icon.js +2 -46
  264. package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
  265. package/dist/src/components/icons/check-icon.d.ts +1 -1
  266. package/dist/src/components/icons/check-icon.js +2 -31
  267. package/dist/src/components/icons/check-icon.js.map +1 -1
  268. package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
  269. package/dist/src/components/icons/circle-info-icon.js +2 -35
  270. package/dist/src/components/icons/circle-info-icon.js.map +1 -1
  271. package/dist/src/components/icons/close-icon.d.ts +1 -1
  272. package/dist/src/components/icons/close-icon.js +2 -20
  273. package/dist/src/components/icons/close-icon.js.map +1 -1
  274. package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
  275. package/dist/src/components/icons/enterprise-icon.js +2 -22
  276. package/dist/src/components/icons/enterprise-icon.js.map +1 -1
  277. package/dist/src/components/icons/family-icon.d.ts +1 -1
  278. package/dist/src/components/icons/family-icon.js +2 -20
  279. package/dist/src/components/icons/family-icon.js.map +1 -1
  280. package/dist/src/components/icons/globe-icon.d.ts +1 -1
  281. package/dist/src/components/icons/globe-icon.js +2 -20
  282. package/dist/src/components/icons/globe-icon.js.map +1 -1
  283. package/dist/src/components/icons/guide-icon.d.ts +1 -1
  284. package/dist/src/components/icons/guide-icon.js +2 -20
  285. package/dist/src/components/icons/guide-icon.js.map +1 -1
  286. package/dist/src/components/icons/home-icon.d.ts +1 -1
  287. package/dist/src/components/icons/home-icon.js +2 -22
  288. package/dist/src/components/icons/home-icon.js.map +1 -1
  289. package/dist/src/components/icons/icon-element.js +1 -162
  290. package/dist/src/components/icons/icon-element.js.map +1 -1
  291. package/dist/src/components/icons/icons.d.ts +23 -23
  292. package/dist/src/components/icons/icons.js +1 -42
  293. package/dist/src/components/icons/individual-icon.d.ts +1 -1
  294. package/dist/src/components/icons/individual-icon.js +2 -20
  295. package/dist/src/components/icons/individual-icon.js.map +1 -1
  296. package/dist/src/components/icons/laurel-icon.d.ts +1 -1
  297. package/dist/src/components/icons/laurel-icon.js +2 -24
  298. package/dist/src/components/icons/laurel-icon.js.map +1 -1
  299. package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
  300. package/dist/src/components/icons/machine-learning-icon.js +2 -20
  301. package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
  302. package/dist/src/components/icons/marks.d.ts +9 -9
  303. package/dist/src/components/icons/marks.js +1 -41
  304. package/dist/src/components/icons/minus-icon.d.ts +1 -1
  305. package/dist/src/components/icons/minus-icon.js +2 -19
  306. package/dist/src/components/icons/minus-icon.js.map +1 -1
  307. package/dist/src/components/icons/missing-icon.d.ts +1 -1
  308. package/dist/src/components/icons/missing-icon.js +3 -53
  309. package/dist/src/components/icons/missing-icon.js.map +1 -1
  310. package/dist/src/components/icons/pause-icon.d.ts +1 -1
  311. package/dist/src/components/icons/pause-icon.js +2 -22
  312. package/dist/src/components/icons/pause-icon.js.map +1 -1
  313. package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
  314. package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
  315. package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
  316. package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
  317. package/dist/src/components/icons/pc-mag-icon.js +2 -31
  318. package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
  319. package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
  320. package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
  321. package/dist/src/components/icons/play-icon.d.ts +1 -1
  322. package/dist/src/components/icons/play-icon.js +2 -22
  323. package/dist/src/components/icons/play-icon.js.map +1 -1
  324. package/dist/src/components/icons/plus-icon.d.ts +1 -1
  325. package/dist/src/components/icons/plus-icon.js +2 -19
  326. package/dist/src/components/icons/plus-icon.js.map +1 -1
  327. package/dist/src/components/icons/quote-icon.d.ts +1 -1
  328. package/dist/src/components/icons/quote-icon.js +2 -30
  329. package/dist/src/components/icons/quote-icon.js.map +1 -1
  330. package/dist/src/components/icons/small-business-icon.d.ts +1 -1
  331. package/dist/src/components/icons/small-business-icon.js +2 -22
  332. package/dist/src/components/icons/small-business-icon.js.map +1 -1
  333. package/dist/src/components/icons/top-product-icon.js +2 -31
  334. package/dist/src/components/icons/top-product-icon.js.map +1 -1
  335. package/dist/src/components/image/image.css.js +1 -106
  336. package/dist/src/components/image/image.css.js.map +1 -1
  337. package/dist/src/components/image/image.d.ts +2 -2
  338. package/dist/src/components/image/image.js +10 -115
  339. package/dist/src/components/image/image.js.map +1 -1
  340. package/dist/src/components/input/input-clipboard.css.js +1 -93
  341. package/dist/src/components/input/input-clipboard.css.js.map +1 -1
  342. package/dist/src/components/input/input-clipboard.d.ts +5 -5
  343. package/dist/src/components/input/input-clipboard.js +20 -257
  344. package/dist/src/components/input/input-clipboard.js.map +1 -1
  345. package/dist/src/components/input/input.css.js +1 -9
  346. package/dist/src/components/input/input.css.js.map +1 -1
  347. package/dist/src/components/input/input.d.ts +4 -4
  348. package/dist/src/components/input/input.js +19 -202
  349. package/dist/src/components/input/input.js.map +1 -1
  350. package/dist/src/components/install-options/install-options.css.js +1 -308
  351. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  352. package/dist/src/components/install-options/install-options.d.ts +4 -4
  353. package/dist/src/components/install-options/install-options.js +28 -159
  354. package/dist/src/components/install-options/install-options.js.map +1 -1
  355. package/dist/src/components/label/label.css.js +1 -33
  356. package/dist/src/components/label/label.css.js.map +1 -1
  357. package/dist/src/components/label/label.d.ts +3 -3
  358. package/dist/src/components/label/label.js +3 -135
  359. package/dist/src/components/label/label.js.map +1 -1
  360. package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
  361. package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
  362. package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
  363. package/dist/src/components/light-carousel/light-carousel.js +16 -181
  364. package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
  365. package/dist/src/components/link/link.css.js +1 -288
  366. package/dist/src/components/link/link.css.js.map +1 -1
  367. package/dist/src/components/link/link.d.ts +3 -3
  368. package/dist/src/components/link/link.js +6 -233
  369. package/dist/src/components/link/link.js.map +1 -1
  370. package/dist/src/components/list/list-item/list-item.css.js +1 -167
  371. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  372. package/dist/src/components/list/list-item/list-item.d.ts +3 -3
  373. package/dist/src/components/list/list-item/list-item.js +3 -122
  374. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  375. package/dist/src/components/list/list.css.js +1 -180
  376. package/dist/src/components/list/list.css.js.map +1 -1
  377. package/dist/src/components/list/list.d.ts +1 -1
  378. package/dist/src/components/list/list.js +5 -82
  379. package/dist/src/components/list/list.js.map +1 -1
  380. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
  381. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  382. package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
  383. package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
  384. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  385. package/dist/src/components/modal/modal.css.js +1 -203
  386. package/dist/src/components/modal/modal.css.js.map +1 -1
  387. package/dist/src/components/modal/modal.d.ts +3 -3
  388. package/dist/src/components/modal/modal.js +3 -131
  389. package/dist/src/components/modal/modal.js.map +1 -1
  390. package/dist/src/components/motion-art/motion-art.d.ts +1 -1
  391. package/dist/src/components/motion-art/motion-art.js +1 -114
  392. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  393. package/dist/src/components/overview/overview.css.js +1 -125
  394. package/dist/src/components/overview/overview.css.js.map +1 -1
  395. package/dist/src/components/overview/overview.d.ts +2 -2
  396. package/dist/src/components/overview/overview.js +9 -50
  397. package/dist/src/components/overview/overview.js.map +1 -1
  398. package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
  399. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  400. package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
  401. package/dist/src/components/page-switcher/page-switcher.js +6 -62
  402. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  403. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
  404. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  405. package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
  406. package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
  407. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  408. package/dist/src/components/paragraph/paragraph.css.js +1 -101
  409. package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
  410. package/dist/src/components/paragraph/paragraph.d.ts +2 -2
  411. package/dist/src/components/paragraph/paragraph.js +3 -119
  412. package/dist/src/components/paragraph/paragraph.js.map +1 -1
  413. package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
  414. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  415. package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
  416. package/dist/src/components/partner-banner/partner-banner.js +6 -81
  417. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  418. package/dist/src/components/picture/picture.css.js +1 -208
  419. package/dist/src/components/picture/picture.css.js.map +1 -1
  420. package/dist/src/components/picture/picture.d.ts +2 -2
  421. package/dist/src/components/picture/picture.js +14 -186
  422. package/dist/src/components/picture/picture.js.map +1 -1
  423. package/dist/src/components/post-card/post-card.css.js +1 -149
  424. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  425. package/dist/src/components/post-card/post-card.d.ts +2 -2
  426. package/dist/src/components/post-card/post-card.js +5 -97
  427. package/dist/src/components/post-card/post-card.js.map +1 -1
  428. package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
  429. package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
  430. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
  431. package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
  432. package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
  433. package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
  434. package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
  435. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
  436. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
  437. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
  438. package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
  439. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
  440. package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
  441. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
  442. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
  443. package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
  444. package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
  445. package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
  446. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
  447. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
  448. package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
  449. package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
  450. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
  451. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
  452. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
  453. package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
  454. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
  455. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
  456. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
  457. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
  458. package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
  459. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
  460. package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
  461. package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
  462. package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
  463. package/dist/src/components/pricing-cards/pricing-card.js +53 -639
  464. package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
  465. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
  466. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
  467. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
  468. package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
  469. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
  470. package/dist/src/components/process-steps/process-steps.css.js +1 -106
  471. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  472. package/dist/src/components/process-steps/process-steps.d.ts +5 -5
  473. package/dist/src/components/process-steps/process-steps.js +10 -78
  474. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  475. package/dist/src/components/progress/progress.css.js +1 -123
  476. package/dist/src/components/progress/progress.css.js.map +1 -1
  477. package/dist/src/components/progress/progress.d.ts +2 -2
  478. package/dist/src/components/progress/progress.js +6 -72
  479. package/dist/src/components/progress/progress.js.map +1 -1
  480. package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
  481. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  482. package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
  483. package/dist/src/components/quick-answer/quick-answer.js +9 -49
  484. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  485. package/dist/src/components/radio/radio-group.css.js +1 -41
  486. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  487. package/dist/src/components/radio/radio-group.d.ts +1 -1
  488. package/dist/src/components/radio/radio-group.js +5 -92
  489. package/dist/src/components/radio/radio-group.js.map +1 -1
  490. package/dist/src/components/radio/radio.css.js +1 -193
  491. package/dist/src/components/radio/radio.css.js.map +1 -1
  492. package/dist/src/components/radio/radio.d.ts +4 -4
  493. package/dist/src/components/radio/radio.js +6 -263
  494. package/dist/src/components/radio/radio.js.map +1 -1
  495. package/dist/src/components/radio/toggle-radio.d.ts +2 -2
  496. package/dist/src/components/radio/toggle-radio.js +3 -39
  497. package/dist/src/components/radio/toggle-radio.js.map +1 -1
  498. package/dist/src/components/review/review-grid.css.js +1 -46
  499. package/dist/src/components/review/review-grid.css.js.map +1 -1
  500. package/dist/src/components/review/review-grid.d.ts +2 -2
  501. package/dist/src/components/review/review-grid.js +4 -49
  502. package/dist/src/components/review/review-grid.js.map +1 -1
  503. package/dist/src/components/review/review.css.js +1 -54
  504. package/dist/src/components/review/review.css.js.map +1 -1
  505. package/dist/src/components/review/review.d.ts +2 -2
  506. package/dist/src/components/review/review.js +2 -59
  507. package/dist/src/components/review/review.js.map +1 -1
  508. package/dist/src/components/section/section.css.js +1 -37
  509. package/dist/src/components/section/section.css.js.map +1 -1
  510. package/dist/src/components/section/section.d.ts +1 -1
  511. package/dist/src/components/section/section.js +1 -50
  512. package/dist/src/components/section/section.js.map +1 -1
  513. package/dist/src/components/section-header/section-header.css.js +1 -99
  514. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  515. package/dist/src/components/section-header/section-header.d.ts +2 -2
  516. package/dist/src/components/section-header/section-header.js +4 -85
  517. package/dist/src/components/section-header/section-header.js.map +1 -1
  518. package/dist/src/components/shared/announcer.d.ts +1 -1
  519. package/dist/src/components/shared/announcer.js +1 -34
  520. package/dist/src/components/shared/announcer.js.map +1 -1
  521. package/dist/src/components/shared/controller.media-query.d.ts +1 -1
  522. package/dist/src/components/shared/controller.media-query.js +1 -57
  523. package/dist/src/components/shared/controller.media-query.js.map +1 -1
  524. package/dist/src/components/shared/define-element.js +1 -16
  525. package/dist/src/components/shared/define-element.js.map +1 -1
  526. package/dist/src/components/shared/ensemble.css.js +1 -101
  527. package/dist/src/components/shared/ensemble.css.js.map +1 -1
  528. package/dist/src/components/shared/events.js +0 -13
  529. package/dist/src/components/shared/fill-width.css.js +2 -27
  530. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  531. package/dist/src/components/shared/form-control.d.ts +1 -1
  532. package/dist/src/components/shared/form-control.js +1 -198
  533. package/dist/src/components/shared/form-control.js.map +1 -1
  534. package/dist/src/components/shared/form-field.css.js +1 -258
  535. package/dist/src/components/shared/form-field.css.js.map +1 -1
  536. package/dist/src/components/shared/prop-vocabulary.js +1 -49
  537. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  538. package/dist/src/components/shared/token-scales.js +1 -351
  539. package/dist/src/components/shared/token-scales.js.map +1 -1
  540. package/dist/src/components/skeleton/skeleton.css.js +1 -32
  541. package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
  542. package/dist/src/components/skeleton/skeleton.d.ts +2 -2
  543. package/dist/src/components/skeleton/skeleton.js +4 -36
  544. package/dist/src/components/skeleton/skeleton.js.map +1 -1
  545. package/dist/src/components/spinner/spinner.css.js +1 -87
  546. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  547. package/dist/src/components/spinner/spinner.d.ts +3 -3
  548. package/dist/src/components/spinner/spinner.js +3 -69
  549. package/dist/src/components/spinner/spinner.js.map +1 -1
  550. package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
  551. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
  552. package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
  553. package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
  554. package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
  555. package/dist/src/components/stat/stat-highlight.js +6 -82
  556. package/dist/src/components/stat/stat-highlight.js.map +1 -1
  557. package/dist/src/components/stat/stat-tile.js +5 -52
  558. package/dist/src/components/stat/stat-tile.js.map +1 -1
  559. package/dist/src/components/stat/stat.css.js +1 -145
  560. package/dist/src/components/stat/stat.css.js.map +1 -1
  561. package/dist/src/components/stat/stat.d.ts +2 -2
  562. package/dist/src/components/stat/stat.js +1 -3
  563. package/dist/src/components/switch/switch.css.js +1 -175
  564. package/dist/src/components/switch/switch.css.js.map +1 -1
  565. package/dist/src/components/switch/switch.d.ts +4 -4
  566. package/dist/src/components/switch/switch.js +4 -99
  567. package/dist/src/components/switch/switch.js.map +1 -1
  568. package/dist/src/components/tab-list/tab-list.css.js +1 -289
  569. package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
  570. package/dist/src/components/tab-list/tab-list.d.ts +1 -1
  571. package/dist/src/components/tab-list/tab-list.js +13 -191
  572. package/dist/src/components/tab-list/tab-list.js.map +1 -1
  573. package/dist/src/components/tabs/tabs.css.js +1 -77
  574. package/dist/src/components/tabs/tabs.css.js.map +1 -1
  575. package/dist/src/components/tabs/tabs.d.ts +6 -6
  576. package/dist/src/components/tabs/tabs.js +8 -220
  577. package/dist/src/components/tabs/tabs.js.map +1 -1
  578. package/dist/src/components/tag/tag.css.js +1 -52
  579. package/dist/src/components/tag/tag.css.js.map +1 -1
  580. package/dist/src/components/tag/tag.d.ts +2 -2
  581. package/dist/src/components/tag/tag.js +2 -37
  582. package/dist/src/components/tag/tag.js.map +1 -1
  583. package/dist/src/components/terminal/terminal-cursor.js +1 -65
  584. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  585. package/dist/src/components/terminal/terminal-message.css.js +1 -409
  586. package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
  587. package/dist/src/components/terminal/terminal-message.d.ts +5 -5
  588. package/dist/src/components/terminal/terminal-message.js +28 -183
  589. package/dist/src/components/terminal/terminal-message.js.map +1 -1
  590. package/dist/src/components/termsOfUse/terms.css.js +1 -55
  591. package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
  592. package/dist/src/components/termsOfUse/terms.d.ts +5 -5
  593. package/dist/src/components/termsOfUse/terms.js +9 -82
  594. package/dist/src/components/termsOfUse/terms.js.map +1 -1
  595. package/dist/src/components/textarea/textarea.css.js +1 -49
  596. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  597. package/dist/src/components/textarea/textarea.d.ts +5 -5
  598. package/dist/src/components/textarea/textarea.js +15 -160
  599. package/dist/src/components/textarea/textarea.js.map +1 -1
  600. package/dist/src/components/tooltip/tooltip.css.js +1 -96
  601. package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
  602. package/dist/src/components/tooltip/tooltip.d.ts +2 -2
  603. package/dist/src/components/tooltip/tooltip.js +5 -285
  604. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  605. package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
  606. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  607. package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
  608. package/dist/src/components/trust-panel/trust-panel.js +25 -104
  609. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  610. package/dist/src/components/video/video.css.js +1 -20
  611. package/dist/src/components/video/video.css.js.map +1 -1
  612. package/dist/src/components/video/video.d.ts +2 -2
  613. package/dist/src/components/video/video.js +5 -88
  614. package/dist/src/components/video/video.js.map +1 -1
  615. package/dist/src/components/video-player/video-player.css.js +1 -167
  616. package/dist/src/components/video-player/video-player.css.js.map +1 -1
  617. package/dist/src/components/video-player/video-player.d.ts +2 -2
  618. package/dist/src/components/video-player/video-player.js +15 -150
  619. package/dist/src/components/video-player/video-player.js.map +1 -1
  620. package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
  621. package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
  622. package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
  623. package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
  624. package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
  625. package/dist/src/tokens/brand-layer.js +8 -162
  626. package/dist/src/tokens/brand-layer.js.map +1 -1
  627. package/dist/src/tokens/dark-derivation.js +1 -325
  628. package/dist/src/tokens/dark-derivation.js.map +1 -1
  629. package/dist/src/tokens/dark-findings.d.ts +1 -1
  630. package/dist/src/tokens/dark-findings.js +1 -204
  631. package/dist/src/tokens/dark-findings.js.map +1 -1
  632. package/dist/src/tokens/fonts.css +1 -166
  633. package/dist/src/tokens/layout.css +1 -61
  634. package/dist/src/tokens/story-chrome.js +27 -221
  635. package/dist/src/tokens/story-chrome.js.map +1 -1
  636. package/dist/src/tokens/themes/bitdefender.js +1 -30
  637. package/dist/src/tokens/themes/bitdefender.js.map +1 -1
  638. package/dist/src/tokens/themes/contract.js +1 -7
  639. package/dist/src/tokens/themes/contract.js.map +1 -1
  640. package/dist/src/tokens/themes/index.js +1 -39
  641. package/dist/src/tokens/themes/index.js.map +1 -1
  642. package/dist/src/tokens/token-map.js +1 -236
  643. package/dist/src/tokens/token-map.js.map +1 -1
  644. package/dist/src/tokens/token-purposes.js +1 -259
  645. package/dist/src/tokens/token-purposes.js.map +1 -1
  646. package/dist/src/tokens/tokens.css +1 -1809
  647. package/dist/src/tokens/tokens.js +1 -1865
  648. package/dist/src/tokens/tokens.js.map +1 -1
  649. package/dist/src/tokens/type-ceiling-words.js +1 -293
  650. package/dist/src/tokens/type-ceiling-words.js.map +1 -1
  651. package/package.json +16 -5
  652. package/schemas/component-manifest.json +1 -1
  653. package/dist/src/components/icons/icons.js.map +0 -1
  654. package/dist/src/components/icons/marks.js.map +0 -1
  655. package/dist/src/components/shared/events.js.map +0 -1
  656. package/dist/src/components/stat/stat.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../src/components/label/label.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAa,MAAM,8BAA8B,CAAC;AAEtE,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB;mEACmE;AACnE,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;AACpG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAK1C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;aAC9B,WAAM,GAAG,CAAC,QAAQ,CAAC,AAAb,CAAc;IAY3B;QACE,KAAK,EAAE,CAAC;QAVV,SAAI,GAAS,IAAI,CAAC;QAIlB,aAAQ,GAAG,KAAK,CAAC;QAOf,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,uEAAuE;QACvE,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;yBAgBqB;IACrB,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,KAAK,CAAC,oBAAoB,EAAE,CAAC;IAC/B,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IACvC,CAAC;IAED;;;kCAG8B;IAC9B,IAAI,OAAO;QACT,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC;QAChD,MAAM,EAAE,GAAI,IAAI,CAAC,WAAW,EAA4B,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpF,OAAO,EAAE,IAAI,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACvD,CAAC;IAED,KAAK;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;QAC3C,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,yDAAyD;YACzD,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;YAChC,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YAChF,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC3G,OAAO;QACT,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,GAAG,YAAY,EAAE,QAAQ,EAAE,CAAC;QACjD,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxF,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAAE,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAChG,IAAI,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;IACzC,CAAC;IAED,OAAO;QACL,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO;QAC1B,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QACpC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACnG,IAAI,GAAG,CAAC,MAAM;YAAE,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;;YACjE,MAAM,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,SAAS,CAAC,CAAa;QACrB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ;YAAE,OAAO;QACvC,iEAAiE;QACjE,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,IAAK,CAAa,CAAC,OAAO,EAAE,CAAC,0CAA0C,CAAC,CAAC;YAAE,OAAO;QAC3H,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,IAAI,MAAM,CAAC,SAAS,KAAK,OAAO,IAAI,SAAS,CAAC,GAAG,CAAE,MAA2B,CAAC,IAAI,CAAC;YAAE,MAAM,CAAC,KAAK,EAAE,CAAC;IACvG,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;uBAEQ,IAAI,CAAC,QAAQ;YAC1B,CAAC,CAAC,IAAI,CAAA,oDAAoD;YAC1D,CAAC,CAAC,OAAO;;KAEd,CAAC;IACJ,CAAC;;AAzGD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCACxB;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCACd;AAEb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAC1B;AARN,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CA8GnB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '../shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '../../tokens/tokens.ts';\nimport { labelCSS } from './label.css.ts';\nimport { resolveSize, type Size } from '../shared/prop-vocabulary.ts';\n\nlet labelIds = 0;\n\n/* Controls whose own <label for> would have worked: the ones a label can be\n for. A custom element is not here -- see the note on _target. */\nconst LABELABLE = new Set([\"input\", \"select\", \"textarea\", \"button\", \"meter\", \"output\", \"progress\"]);\nconst ACTIVATES = new Set([\"checkbox\", \"radio\"]);\n\ntype Labelable = HTMLElement & { disabled?: boolean };\n\n@defineElement('bd-label')\nexport class BdLabel extends LitElement {\n static styles = [labelCSS];\n\n @property({ type: String, reflect: true })\n size: Size = 'md';\n @property({ type: String })\n for?: string;\n @property({ type: Boolean, reflect: true })\n required = false;\n\n _waiting?: MutationObserver | null;\n _linked? : { target: Labelable; id: string } | null;\n\n constructor() {\n super();\n this.addEventListener('click', e => this._activate(e));\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // small / default / large still resolve; see shared/prop-vocabulary.ts\n if (changed.has('size')) this.size = resolveSize(this.size, 'md');\n }\n\n /* WHY for IS DONE BY HAND.\n The <label> this renders is in its own shadow root, and a for reference\n resolves only in the tree it is written in, so <bd-label for=\"email\">\n pointed at nothing: the control went unnamed and a click on the label did\n nothing. It now does what a native label's for does, for a native control\n in the same tree as this element:\n\n name the control gets aria-labelledby pointing at this element,\n added to whatever it already lists, and taken back when for\n changes or this element leaves -- so the control is named by\n the label's text\n activate a click on the label focuses the control, and toggles it\n when it is a checkbox or a radio\n\n The control may not exist yet when this renders -- it can come later in\n the page, or be rendered after -- so until it is found the root is\n watched for it. */\n connectedCallback() {\n super.connectedCallback();\n this._link();\n }\n\n disconnectedCallback() {\n this._unlink();\n super.disconnectedCallback();\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has('for')) this._link();\n }\n\n /* The control, when for names one in this element's own tree. A custom\n element is skipped: its real control is inside its own shadow root, where\n aria-labelledby on the host does not reach -- label a bd-custom-input\n with its own label prop. */\n get _target(): Labelable | null {\n if (!this.for || !this.isConnected) return null;\n const el = (this.getRootNode() as Document | ShadowRoot).getElementById?.(this.for);\n return el && LABELABLE.has(el.localName) ? el : null;\n }\n\n _link() {\n this._unlink();\n if (!this.for || !this.isConnected) return;\n const target = this._target;\n if (!target) {\n // not there yet: watch for it, and stop as soon as it is\n const root = this.getRootNode();\n this._waiting = new MutationObserver(() => { if (this._target) this._link(); });\n this._waiting.observe(root, { childList: true, subtree: true, attributes: true, attributeFilter: ['id'] });\n return;\n }\n if (!this.id) this.id = `bd-label-${++labelIds}`;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(Boolean);\n if (!ids.includes(this.id)) target.setAttribute('aria-labelledby', [...ids, this.id].join(' '));\n this._linked = { target, id: this.id };\n }\n\n _unlink() {\n this._waiting?.disconnect();\n this._waiting = null;\n if (!this._linked) return;\n const { target, id } = this._linked;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(t => t && t !== id);\n if (ids.length) target.setAttribute('aria-labelledby', ids.join(' '));\n else target.removeAttribute('aria-labelledby');\n this._linked = null;\n }\n\n _activate(e: MouseEvent) {\n const target = this._target;\n if (!target || target.disabled) return;\n // a link or a control slotted into the label keeps its own click\n if (e.composedPath().some(n => n !== this && (n as Element).matches?.('a[href], button, input, select, textarea'))) return;\n target.focus();\n if (target.localName === 'input' && ACTIVATES.has((target as HTMLInputElement).type)) target.click();\n }\n\n render() {\n return html`\n <label>\n <slot></slot>${this.required\n ? html`<span class=\"required\" aria-hidden=\"true\">*</span>`\n : nothing}\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-label': BdLabel;\n }\n}\n"]}
1
+ {"version":3,"file":"label.js","names":["_decorate","__decorate","labelCSS","labelIds","LABELABLE","ACTIVATES","BdLabel","LitElement","changed","resolveSize","el","target","root","ids","t","id","n","nothing","property","defineElement"],"sources":["../../../../src/components/label/label.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { labelCSS } from './label.css.ts';\nimport { resolveSize, type Size } from '#shared/prop-vocabulary.ts';\n\nlet labelIds = 0;\n\n/* Controls whose own <label for> would have worked: the ones a label can be\n for. A custom element is not here -- see the note on _target. */\nconst LABELABLE = new Set([\"input\", \"select\", \"textarea\", \"button\", \"meter\", \"output\", \"progress\"]);\nconst ACTIVATES = new Set([\"checkbox\", \"radio\"]);\n\ntype Labelable = HTMLElement & { disabled?: boolean };\n\n@defineElement('bd-label')\nexport class BdLabel extends LitElement {\n static styles = [labelCSS];\n\n @property({ type: String, reflect: true })\n size: Size = 'md';\n @property({ type: String })\n for?: string;\n @property({ type: Boolean, reflect: true })\n required = false;\n\n _waiting?: MutationObserver | null;\n _linked? : { target: Labelable; id: string } | null;\n\n constructor() {\n super();\n this.addEventListener('click', e => this._activate(e));\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // small / default / large still resolve; see shared/prop-vocabulary.ts\n if (changed.has('size')) this.size = resolveSize(this.size, 'md');\n }\n\n /* WHY for IS DONE BY HAND.\n The <label> this renders is in its own shadow root, and a for reference\n resolves only in the tree it is written in, so <bd-label for=\"email\">\n pointed at nothing: the control went unnamed and a click on the label did\n nothing. It now does what a native label's for does, for a native control\n in the same tree as this element:\n\n name the control gets aria-labelledby pointing at this element,\n added to whatever it already lists, and taken back when for\n changes or this element leaves -- so the control is named by\n the label's text\n activate a click on the label focuses the control, and toggles it\n when it is a checkbox or a radio\n\n The control may not exist yet when this renders -- it can come later in\n the page, or be rendered after -- so until it is found the root is\n watched for it. */\n connectedCallback() {\n super.connectedCallback();\n this._link();\n }\n\n disconnectedCallback() {\n this._unlink();\n super.disconnectedCallback();\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has('for')) this._link();\n }\n\n /* The control, when for names one in this element's own tree. A custom\n element is skipped: its real control is inside its own shadow root, where\n aria-labelledby on the host does not reach -- label a bd-custom-input\n with its own label prop. */\n get _target(): Labelable | null {\n if (!this.for || !this.isConnected) return null;\n const el = (this.getRootNode() as Document | ShadowRoot).getElementById?.(this.for);\n return el && LABELABLE.has(el.localName) ? el : null;\n }\n\n _link() {\n this._unlink();\n if (!this.for || !this.isConnected) return;\n const target = this._target;\n if (!target) {\n // not there yet: watch for it, and stop as soon as it is\n const root = this.getRootNode();\n this._waiting = new MutationObserver(() => { if (this._target) this._link(); });\n this._waiting.observe(root, { childList: true, subtree: true, attributes: true, attributeFilter: ['id'] });\n return;\n }\n if (!this.id) this.id = `bd-label-${++labelIds}`;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(Boolean);\n if (!ids.includes(this.id)) target.setAttribute('aria-labelledby', [...ids, this.id].join(' '));\n this._linked = { target, id: this.id };\n }\n\n _unlink() {\n this._waiting?.disconnect();\n this._waiting = null;\n if (!this._linked) return;\n const { target, id } = this._linked;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(t => t && t !== id);\n if (ids.length) target.setAttribute('aria-labelledby', ids.join(' '));\n else target.removeAttribute('aria-labelledby');\n this._linked = null;\n }\n\n _activate(e: MouseEvent) {\n const target = this._target;\n if (!target || target.disabled) return;\n // a link or a control slotted into the label keeps its own click\n if (e.composedPath().some(n => n !== this && (n as Element).matches?.('a[href], button, input, select, textarea'))) return;\n target.focus();\n if (target.localName === 'input' && ACTIVATES.has((target as HTMLInputElement).type)) target.click();\n }\n\n render() {\n return html`\n <label>\n <slot></slot>${this.required\n ? html`<span class=\"required\" aria-hidden=\"true\">*</span>`\n : nothing}\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-label': BdLabel;\n }\n}\n"],"mappings":"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"}
@@ -1,271 +1,2 @@
1
- import { css, unsafeCSS } from "lit";
2
- import { below } from "../shared/token-scales.js";
3
- /* A card's own size at three widths, each said once and asked twice: of the
4
- section, the container every width rule in this sheet reads, and of the
5
- screen, for a card set on its own with no section around it
6
- (Foundations/Visual Alignment's card family). The two never disagree: a
7
- section is never wider than the screen, so wherever the screen says narrow
8
- the section does too, and in a section on a wide screen the section alone
9
- decides. */
10
- /* No inset change at 1024. This box used to drop to 1.5em here and 1em at
11
- 480, and it was an outlier twice over: it started shrinking 256px of
12
- viewport before any sibling did, and it kept going to 16px where the rest
13
- stop at 24. It takes the compact inset with the family at md instead --
14
- see cardBelowMd.
15
-
16
- The literals were also ems, so the inset scaled with whatever font-size the
17
- box inherited while every sibling card's stayed put.
18
-
19
- The width line is unrelated and stays. With box-sizing: border-box, the 380
20
- is the card's whole width rather than its content width, so the card
21
- measures 380 here instead of the 444 it used to render -- 64px narrower,
22
- two still to a row, each one exactly filling its grid item. The declared
23
- width was chosen over the rendered one on purpose: a rule that says 380 and
24
- paints 444 is the kind of thing this file is being cleaned of. */
25
- const cardUpTo1024 = css `
26
- .bd-light-box {
27
- width: 380px;
28
- }
29
- `;
30
- const cardBelowMd = css `
31
- .bd-light-box {
32
- width: 100%;
33
- max-width: 400px;
34
- margin: var(--spacing-0) auto;
35
- /* The compact inset, at the breakpoint the family takes it. Bento, the
36
- Comparison Panel and the Trust Panel all step down here; this box used
37
- to step down at 1024 and again at 480, which is why it read as the odd
38
- one out when it was really just early and twice. */
39
- padding: var(--card-padding-compact);
40
- }
41
- `;
42
- const cardUpTo480 = css `
43
- .bd-light-box {
44
- width: 100%;
45
- min-height: 300px;
46
- }
47
- .bd-light-icon {
48
- bottom: var(--spacing-10);
49
- }
50
- `;
51
- const cardUpTo1024Media = css `@media (max-width: 1024px) { ${cardUpTo1024} }`;
52
- const cardBelowMdMedia = css `@media ${unsafeCSS(below('md'))} { ${cardBelowMd} }`;
53
- const cardUpTo480Media = css `@media (max-width: 480px) { ${cardUpTo480} }`;
54
- export default css `
55
- /* One stylesheet for both public variants.
56
-
57
- The two implementations were copies of each other: twenty-three rule
58
- blocks each, the same selectors under the same media conditions, seventeen
59
- of them byte-identical and every responsive block identical. The simple
60
- copy differed only in the six values below, and carried them by suffixing
61
- every class name with -s.
62
-
63
- So the variant is a set of values, not a set of rules. It used to be
64
- selected by tag name, which is why there were two public element pairs at
65
- all; P6E.1 folded those into one pair and the set is now selected by
66
- the variant attribute. Everything after that is shared, which is what keeps the 480,
67
- 600 and 1024 queries in one place instead of two. */
68
- :host {
69
- display: block;
70
-
71
- --bd-lc-columns: 3;
72
- --bd-lc-gap: 30px;
73
- --bd-lc-icon-size: var(--spacing-32);
74
- --bd-lc-header-direction: row;
75
- --bd-lc-header-align: center;
76
- --bd-lc-title-align: start;
77
- --bd-lc-section-padding-block: var(--spacing-0);
78
- --bd-lc-carousel-padding-top: var(--spacing-32);
79
- }
80
-
81
- :host([variant="simple"]) {
82
- --bd-lc-columns: 4;
83
- --bd-lc-gap: var(--spacing-24);
84
- --bd-lc-icon-size: var(--spacing-44);
85
- --bd-lc-header-direction: column;
86
- --bd-lc-header-align: flex-start;
87
- --bd-lc-title-align: center;
88
- --bd-lc-section-padding-block: var(--spacing-32);
89
- --bd-lc-carousel-padding-top: var(--spacing-0);
90
- }
91
-
92
- :host(bd-light-carousel-section[variant="simple"]) {
93
- padding-top: var(--bd-lc-section-padding-block);
94
- padding-bottom: var(--bd-lc-section-padding-block);
95
- }
96
-
97
- /* The section is the container every width rule below reads -- the
98
- track's columns and each card's size alike, so the two never disagree
99
- -- where they used to read the screen. A section across the page is as
100
- wide as the screen, so there nothing moves; one placed in a narrower
101
- column steps down with it. width: 100% because a size container
102
- contributes nothing to its own intrinsic width. */
103
- :host(bd-light-carousel-section) {
104
- container-type: inline-size;
105
- width: 100%;
106
- box-sizing: border-box;
107
- }
108
- .bd-header-light-carousel {
109
- margin-bottom: 50px;
110
- margin-top: 50px;
111
- }
112
-
113
- .bd-light-carousel {
114
- display: flex;
115
- align-items: center;
116
- justify-content: center;
117
- position: relative;
118
- /* The section is the page column (bd-ensemble), so its cards land on the
119
- same content edge as every other module's. It used to be 1400 wide with a
120
- 14px gutter of its own; the track below carried a second 20px one, which
121
- put these cards 20px inside the column everything else aligned to. The
122
- column owns the gutter now, the track none. */
123
- box-sizing: border-box;
124
- width: 100%;
125
- margin: var(--spacing-0) auto;
126
- overflow: hidden;
127
- flex-direction: column;
128
- padding-top: var(--bd-lc-carousel-padding-top);
129
- }
130
- .bd-light-carousel-track {
131
- scroll-behavior: smooth;
132
- flex: 1;
133
- /* No wider than the column, so cards that do not fit scroll inside it.
134
- Centred in the section's flex column, the track takes its cards' width,
135
- which is right while they fit; but two 380 cards and the gap are 790,
136
- and the column between 768 and 1024 is 656 to 944, so where they did
137
- not fit the track never scrolled: it hung past the column on both
138
- sides and the section's overflow: hidden cut the cards off there. */
139
- max-width: 100%;
140
- position: relative;
141
- padding: var(--spacing-0);
142
- overflow-x: auto;
143
- overflow-y: hidden;
144
- scrollbar-width: none;
145
- z-index: var(--z-base);
146
- scroll-snap-type: x mandatory;
147
- }
148
- .bd-light-carousel-track {
149
- display: grid;
150
- gap: var(--bd-lc-gap);
151
- grid-template-columns: repeat(var(--bd-lc-columns), 1fr);
152
- }
153
- .bd-light-carousel-track::-webkit-scrollbar {
154
- display: none;
155
- }
156
-
157
- /* The track is a tab stop while it scrolls (light-carousel.ts), with the
158
- one focus ring -- see Foundations/Focus. It fits: the section clips at
159
- its padding box, and the track sits inside the column's gutter. */
160
- .bd-light-carousel-track:focus-visible {
161
- outline: var(--border-width-2) solid transparent;
162
- outline-offset: var(--focus-outline-offset);
163
- box-shadow: var(--focus-outline-primary);
164
- border-radius: var(--focus-outline-radius);
165
- }
166
-
167
- .bd-light-box {
168
- flex: var(--spacing-0) var(--spacing-0) auto;
169
- background: var(--color-surface-container);
170
- /* 2xl is the card radius: the card box, the card-features card, the trust
171
- panel card, the bento item and the awards root all use it. This was the
172
- only one of them at 3xl, and nothing about a carousel item asks for a
173
- softer corner than the same card sitting in a grid. */
174
- border-radius: var(--card-radius);
175
- padding: var(--card-padding);
176
- flex-direction: column;
177
- align-items: start;
178
- justify-content: center;
179
- text-align: start;
180
- transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);
181
- min-height: 135px;
182
- /* The inset sits inside the declared width, exactly as it already does on
183
- bd-card and bd-bento-item. Without this the box is content-box: the two
184
- width rules below mean content width, the 32px inset is added outside
185
- them, and at 480 the card rendered 311 + 64 = 375px inside a 343px
186
- section -- 64px past its own parent, clipping its text off the right of
187
- a 375px phone. cards/card.css.ts carries the same note for the same
188
- reason. The em paddings that used to be in those media queries were
189
- compensating for this rather than expressing an inset. */
190
- box-sizing: border-box;
191
- position: relative;
192
- z-index: var(--z-raised);
193
- scroll-snap-align: start;
194
- font-family: var(--typography-fontFamily-sans);
195
- }
196
-
197
- /* Two rules stood here, matching a bare h3 and a bare p inside the box.
198
- Neither can match: the item renders its title through bd-h and its copy
199
- through bd-p, so both elements live in their own shadow roots, and a
200
- descendant selector from this stylesheet does not cross that boundary.
201
- Measured 0 matches for each across 105 .bd-light-box instances. P5E.1
202
- removed the responsive half of this pair; the base half kept declaring
203
- spacing that nothing has ever been able to read. */
204
-
205
- .bd-light-icon {
206
- position: relative;
207
- bottom: var(--spacing-6);
208
- max-width: 100%;
209
- height: var(--bd-lc-icon-size);
210
- width: var(--bd-lc-icon-size);
211
- }
212
- .bd-light-box-header {
213
- display: flex;
214
- flex-direction: var(--bd-lc-header-direction);
215
- align-items: var(--bd-lc-header-align);
216
- gap: var(--spacing-8);
217
- }
218
- .bd-light-title-badge-wrapper {
219
- display: flex;
220
- align-items: center;
221
- gap: var(--spacing-4);
222
- }
223
-
224
- ${cardUpTo1024Media}
225
- @container (width <= 1024px) { ${cardUpTo1024} }
226
-
227
- ${cardBelowMdMedia}
228
- @container ${unsafeCSS(below('md'))} {
229
- .bd-light-carousel-track {
230
- display: flex;
231
- flex-direction: column;
232
- gap: var(--spacing-20);
233
- overflow-x: hidden;
234
- overflow-y: hidden;
235
- scroll-behavior: smooth;
236
- }
237
-
238
- ${cardBelowMd}
239
- }
240
-
241
- ${cardUpTo480Media}
242
- @container (width <= 480px) { ${cardUpTo480} }
243
-
244
- @container (width <= 1024px) {
245
- .bd-light-carousel-track {
246
- grid-template-columns: repeat(2, 1fr);
247
- }
248
- }
249
-
250
- @container (width <= 600px) {
251
- .bd-light-carousel-track {
252
- grid-template-columns: 1fr;
253
- }
254
- }
255
-
256
- /* A reader who asked for less motion was still getting the item lift. Twenty-three
257
- of the thirty animated directories in this package honour the query; this
258
- one did not. */
259
- @media (prefers-reduced-motion: reduce) {
260
- .bd-light-box {
261
- transition: none;
262
- }
263
-
264
- /* The track scrolls smoothly when its arrows or a script move it; a reader
265
- who asked for less motion gets the jump. */
266
- .bd-light-carousel-track {
267
- scroll-behavior: auto;
268
- }
269
- }
270
- `;
1
+ import"../shared/token-scales.js";import{css as e}from"lit";e`.bd-light-box{width:380px}`,e`.bd-light-box{width:100%;max-width:400px;margin:var(--spacing-0) auto;padding:var(--card-padding-compact)}`,e`.bd-light-box{width:100%;min-height:300px}.bd-light-icon{bottom:var(--spacing-10)}`,e`@media (width<=1024px){.bd-light-box{width:380px}}`,e`@media (width<768px){.bd-light-box{width:100%;max-width:400px;margin:var(--spacing-0) auto;padding:var(--card-padding-compact)}}`,e`@media (width<=480px){.bd-light-box{width:100%;min-height:300px}.bd-light-icon{bottom:var(--spacing-10)}}`;var t=e`:host{--bd-lc-columns:3;--bd-lc-gap:30px;--bd-lc-icon-size:var(--spacing-32);--bd-lc-header-direction:row;--bd-lc-header-align:center;--bd-lc-title-align:start;--bd-lc-section-padding-block:var(--spacing-0);--bd-lc-carousel-padding-top:var(--spacing-32);display:block}:host([variant=simple]){--bd-lc-columns:4;--bd-lc-gap:var(--spacing-24);--bd-lc-icon-size:var(--spacing-44);--bd-lc-header-direction:column;--bd-lc-header-align:flex-start;--bd-lc-title-align:center;--bd-lc-section-padding-block:var(--spacing-32);--bd-lc-carousel-padding-top:var(--spacing-0)}:host(bd-light-carousel-section[variant=simple]){padding-top:var(--bd-lc-section-padding-block);padding-bottom:var(--bd-lc-section-padding-block)}:host(bd-light-carousel-section){box-sizing:border-box;width:100%;container-type:inline-size}.bd-header-light-carousel{margin-top:50px;margin-bottom:50px}.bd-light-carousel{box-sizing:border-box;width:100%;margin:var(--spacing-0) auto;padding-top:var(--bd-lc-carousel-padding-top);flex-direction:column;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.bd-light-carousel-track{scroll-behavior:smooth;max-width:100%;padding:var(--spacing-0);scrollbar-width:none;z-index:var(--z-base);scroll-snap-type:x mandatory;gap:var(--bd-lc-gap);grid-template-columns:repeat(var(--bd-lc-columns), 1fr);flex:1;display:grid;position:relative;overflow:auto hidden}.bd-light-carousel-track::-webkit-scrollbar{display:none}.bd-light-carousel-track:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary);border-radius:var(--focus-outline-radius)}.bd-light-box{flex:var(--spacing-0) var(--spacing-0) auto;background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);box-sizing:border-box;min-height:135px;z-index:var(--z-raised);scroll-snap-align:start;font-family:var(--typography-fontFamily-sans);flex-direction:column;justify-content:center;align-items:start;position:relative}.bd-light-icon{bottom:var(--spacing-6);max-width:100%;height:var(--bd-lc-icon-size);width:var(--bd-lc-icon-size);position:relative}.bd-light-box-header{flex-direction:var(--bd-lc-header-direction);align-items:var(--bd-lc-header-align);gap:var(--spacing-8);display:flex}.bd-light-title-badge-wrapper{align-items:center;gap:var(--spacing-4);display:flex}@media (width<=1024px){.bd-light-box{width:380px}}@container (width<=1024px){.bd-light-box{width:380px}}@media (width<768px){.bd-light-box{width:100%;max-width:400px;margin:var(--spacing-0) auto;padding:var(--card-padding-compact)}}@container (width<768px){.bd-light-carousel-track{gap:var(--spacing-20);scroll-behavior:smooth;flex-direction:column;display:flex;overflow:hidden}.bd-light-box{width:100%;max-width:400px;margin:var(--spacing-0) auto;padding:var(--card-padding-compact)}}@media (width<=480px){.bd-light-box{width:100%;min-height:300px}.bd-light-icon{bottom:var(--spacing-10)}}@container (width<=480px){.bd-light-box{width:100%;min-height:300px}.bd-light-icon{bottom:var(--spacing-10)}}@container (width<=1024px){.bd-light-carousel-track{grid-template-columns:repeat(2,1fr)}}@container (width<=600px){.bd-light-carousel-track{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.bd-light-box{transition:none}.bd-light-carousel-track{scroll-behavior:auto}}`;export{t as default};
271
2
  //# sourceMappingURL=light-carousel.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"light-carousel.css.js","sourceRoot":"","sources":["../../../../src/components/light-carousel/light-carousel.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;;;;;cAMc;AAEd;;;;;;;;;;;;;;oEAcoE;AACpE,MAAM,YAAY,GAAG,GAAG,CAAA;;;;CAIvB,CAAC;AAEF,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;CAWtB,CAAC;AAEF,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;CAQtB,CAAC;AAEF,MAAM,iBAAiB,GAAG,GAAG,CAAA,gCAAgC,YAAY,IAAI,CAAC;AAC9E,MAAM,gBAAgB,GAAG,GAAG,CAAA,UAAU,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,WAAW,IAAI,CAAC;AAClF,MAAM,gBAAgB,GAAG,GAAG,CAAA,+BAA+B,WAAW,IAAI,CAAC;AAE3E,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0Kd,iBAAiB;mCACc,YAAY;;IAE3C,gBAAgB;eACL,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;MAU/B,WAAW;;;IAGb,gBAAgB;kCACc,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B5C,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"../shared/token-scales.ts\";\n\n/* A card's own size at three widths, each said once and asked twice: of the\n section, the container every width rule in this sheet reads, and of the\n screen, for a card set on its own with no section around it\n (Foundations/Visual Alignment's card family). The two never disagree: a\n section is never wider than the screen, so wherever the screen says narrow\n the section does too, and in a section on a wide screen the section alone\n decides. */\n\n/* No inset change at 1024. This box used to drop to 1.5em here and 1em at\n 480, and it was an outlier twice over: it started shrinking 256px of\n viewport before any sibling did, and it kept going to 16px where the rest\n stop at 24. It takes the compact inset with the family at md instead --\n see cardBelowMd.\n\n The literals were also ems, so the inset scaled with whatever font-size the\n box inherited while every sibling card's stayed put.\n\n The width line is unrelated and stays. With box-sizing: border-box, the 380\n is the card's whole width rather than its content width, so the card\n measures 380 here instead of the 444 it used to render -- 64px narrower,\n two still to a row, each one exactly filling its grid item. The declared\n width was chosen over the rendered one on purpose: a rule that says 380 and\n paints 444 is the kind of thing this file is being cleaned of. */\nconst cardUpTo1024 = css`\n .bd-light-box {\n width: 380px;\n }\n`;\n\nconst cardBelowMd = css`\n .bd-light-box {\n width: 100%;\n max-width: 400px;\n margin: var(--spacing-0) auto;\n /* The compact inset, at the breakpoint the family takes it. Bento, the\n Comparison Panel and the Trust Panel all step down here; this box used\n to step down at 1024 and again at 480, which is why it read as the odd\n one out when it was really just early and twice. */\n padding: var(--card-padding-compact);\n }\n`;\n\nconst cardUpTo480 = css`\n .bd-light-box {\n width: 100%;\n min-height: 300px;\n }\n .bd-light-icon {\n bottom: var(--spacing-10);\n }\n`;\n\nconst cardUpTo1024Media = css`@media (max-width: 1024px) { ${cardUpTo1024} }`;\nconst cardBelowMdMedia = css`@media ${unsafeCSS(below('md'))} { ${cardBelowMd} }`;\nconst cardUpTo480Media = css`@media (max-width: 480px) { ${cardUpTo480} }`;\n\nexport default css`\n /* One stylesheet for both public variants.\n\n The two implementations were copies of each other: twenty-three rule\n blocks each, the same selectors under the same media conditions, seventeen\n of them byte-identical and every responsive block identical. The simple\n copy differed only in the six values below, and carried them by suffixing\n every class name with -s.\n\n So the variant is a set of values, not a set of rules. It used to be\n selected by tag name, which is why there were two public element pairs at\n all; P6E.1 folded those into one pair and the set is now selected by\n the variant attribute. Everything after that is shared, which is what keeps the 480,\n 600 and 1024 queries in one place instead of two. */\n :host {\n display: block;\n\n --bd-lc-columns: 3;\n --bd-lc-gap: 30px;\n --bd-lc-icon-size: var(--spacing-32);\n --bd-lc-header-direction: row;\n --bd-lc-header-align: center;\n --bd-lc-title-align: start;\n --bd-lc-section-padding-block: var(--spacing-0);\n --bd-lc-carousel-padding-top: var(--spacing-32);\n }\n\n :host([variant=\"simple\"]) {\n --bd-lc-columns: 4;\n --bd-lc-gap: var(--spacing-24);\n --bd-lc-icon-size: var(--spacing-44);\n --bd-lc-header-direction: column;\n --bd-lc-header-align: flex-start;\n --bd-lc-title-align: center;\n --bd-lc-section-padding-block: var(--spacing-32);\n --bd-lc-carousel-padding-top: var(--spacing-0);\n }\n\n :host(bd-light-carousel-section[variant=\"simple\"]) {\n padding-top: var(--bd-lc-section-padding-block);\n padding-bottom: var(--bd-lc-section-padding-block);\n }\n\n /* The section is the container every width rule below reads -- the\n track's columns and each card's size alike, so the two never disagree\n -- where they used to read the screen. A section across the page is as\n wide as the screen, so there nothing moves; one placed in a narrower\n column steps down with it. width: 100% because a size container\n contributes nothing to its own intrinsic width. */\n :host(bd-light-carousel-section) {\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n }\n .bd-header-light-carousel {\n margin-bottom: 50px;\n margin-top: 50px;\n }\n\n .bd-light-carousel {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n /* The section is the page column (bd-ensemble), so its cards land on the\n same content edge as every other module's. It used to be 1400 wide with a\n 14px gutter of its own; the track below carried a second 20px one, which\n put these cards 20px inside the column everything else aligned to. The\n column owns the gutter now, the track none. */\n box-sizing: border-box;\n width: 100%;\n margin: var(--spacing-0) auto;\n overflow: hidden;\n flex-direction: column;\n padding-top: var(--bd-lc-carousel-padding-top);\n }\n .bd-light-carousel-track {\n scroll-behavior: smooth;\n flex: 1;\n /* No wider than the column, so cards that do not fit scroll inside it.\n Centred in the section's flex column, the track takes its cards' width,\n which is right while they fit; but two 380 cards and the gap are 790,\n and the column between 768 and 1024 is 656 to 944, so where they did\n not fit the track never scrolled: it hung past the column on both\n sides and the section's overflow: hidden cut the cards off there. */\n max-width: 100%;\n position: relative;\n padding: var(--spacing-0);\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: none;\n z-index: var(--z-base);\n scroll-snap-type: x mandatory;\n }\n .bd-light-carousel-track {\n display: grid;\n gap: var(--bd-lc-gap);\n grid-template-columns: repeat(var(--bd-lc-columns), 1fr);\n }\n .bd-light-carousel-track::-webkit-scrollbar {\n display: none;\n }\n\n /* The track is a tab stop while it scrolls (light-carousel.ts), with the\n one focus ring -- see Foundations/Focus. It fits: the section clips at\n its padding box, and the track sits inside the column's gutter. */\n .bd-light-carousel-track:focus-visible {\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .bd-light-box {\n flex: var(--spacing-0) var(--spacing-0) auto;\n background: var(--color-surface-container);\n /* 2xl is the card radius: the card box, the card-features card, the trust\n panel card, the bento item and the awards root all use it. This was the\n only one of them at 3xl, and nothing about a carousel item asks for a\n softer corner than the same card sitting in a grid. */\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n flex-direction: column;\n align-items: start;\n justify-content: center;\n text-align: start;\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n min-height: 135px;\n /* The inset sits inside the declared width, exactly as it already does on\n bd-card and bd-bento-item. Without this the box is content-box: the two\n width rules below mean content width, the 32px inset is added outside\n them, and at 480 the card rendered 311 + 64 = 375px inside a 343px\n section -- 64px past its own parent, clipping its text off the right of\n a 375px phone. cards/card.css.ts carries the same note for the same\n reason. The em paddings that used to be in those media queries were\n compensating for this rather than expressing an inset. */\n box-sizing: border-box;\n position: relative;\n z-index: var(--z-raised);\n scroll-snap-align: start;\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* Two rules stood here, matching a bare h3 and a bare p inside the box.\n Neither can match: the item renders its title through bd-h and its copy\n through bd-p, so both elements live in their own shadow roots, and a\n descendant selector from this stylesheet does not cross that boundary.\n Measured 0 matches for each across 105 .bd-light-box instances. P5E.1\n removed the responsive half of this pair; the base half kept declaring\n spacing that nothing has ever been able to read. */\n\n .bd-light-icon {\n position: relative;\n bottom: var(--spacing-6);\n max-width: 100%;\n height: var(--bd-lc-icon-size);\n width: var(--bd-lc-icon-size);\n }\n .bd-light-box-header {\n display: flex;\n flex-direction: var(--bd-lc-header-direction);\n align-items: var(--bd-lc-header-align);\n gap: var(--spacing-8);\n }\n .bd-light-title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-4);\n }\n\n ${cardUpTo1024Media}\n @container (width <= 1024px) { ${cardUpTo1024} }\n\n ${cardBelowMdMedia}\n @container ${unsafeCSS(below('md'))} {\n .bd-light-carousel-track {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-20);\n overflow-x: hidden;\n overflow-y: hidden;\n scroll-behavior: smooth;\n }\n\n ${cardBelowMd}\n }\n\n ${cardUpTo480Media}\n @container (width <= 480px) { ${cardUpTo480} }\n\n @container (width <= 1024px) {\n .bd-light-carousel-track {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n\n @container (width <= 600px) {\n .bd-light-carousel-track {\n grid-template-columns: 1fr;\n }\n }\n\n /* A reader who asked for less motion was still getting the item lift. Twenty-three\n of the thirty animated directories in this package honour the query; this\n one did not. */\n @media (prefers-reduced-motion: reduce) {\n .bd-light-box {\n transition: none;\n }\n\n /* The track scrolls smoothly when its arrows or a script move it; a reader\n who asked for less motion gets the jump. */\n .bd-light-carousel-track {\n scroll-behavior: auto;\n }\n }\n`;\n"]}
1
+ {"version":3,"file":"light-carousel.css.js","names":["light_carousel_css_default"],"sources":["../../../../src/components/light-carousel/light-carousel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\n/* A card's own size at three widths, each said once and asked twice: of the\n section, the container every width rule in this sheet reads, and of the\n screen, for a card set on its own with no section around it\n (Foundations/Visual Alignment's card family). The two never disagree: a\n section is never wider than the screen, so wherever the screen says narrow\n the section does too, and in a section on a wide screen the section alone\n decides. */\n\n/* No inset change at 1024. This box used to drop to 1.5em here and 1em at\n 480, and it was an outlier twice over: it started shrinking 256px of\n viewport before any sibling did, and it kept going to 16px where the rest\n stop at 24. It takes the compact inset with the family at md instead --\n see cardBelowMd.\n\n The literals were also ems, so the inset scaled with whatever font-size the\n box inherited while every sibling card's stayed put.\n\n The width line is unrelated and stays. With box-sizing: border-box, the 380\n is the card's whole width rather than its content width, so the card\n measures 380 here instead of the 444 it used to render -- 64px narrower,\n two still to a row, each one exactly filling its grid item. The declared\n width was chosen over the rendered one on purpose: a rule that says 380 and\n paints 444 is the kind of thing this file is being cleaned of. */\nconst cardUpTo1024 = css`\n .bd-light-box {\n width: 380px;\n }\n`;\n\nconst cardBelowMd = css`\n .bd-light-box {\n width: 100%;\n max-width: 400px;\n margin: var(--spacing-0) auto;\n /* The compact inset, at the breakpoint the family takes it. Bento, the\n Comparison Panel and the Trust Panel all step down here; this box used\n to step down at 1024 and again at 480, which is why it read as the odd\n one out when it was really just early and twice. */\n padding: var(--card-padding-compact);\n }\n`;\n\nconst cardUpTo480 = css`\n .bd-light-box {\n width: 100%;\n min-height: 300px;\n }\n .bd-light-icon {\n bottom: var(--spacing-10);\n }\n`;\n\nconst cardUpTo1024Media = css`@media (max-width: 1024px) { ${cardUpTo1024} }`;\nconst cardBelowMdMedia = css`@media ${unsafeCSS(below('md'))} { ${cardBelowMd} }`;\nconst cardUpTo480Media = css`@media (max-width: 480px) { ${cardUpTo480} }`;\n\nexport default css`\n /* One stylesheet for both public variants.\n\n The two implementations were copies of each other: twenty-three rule\n blocks each, the same selectors under the same media conditions, seventeen\n of them byte-identical and every responsive block identical. The simple\n copy differed only in the six values below, and carried them by suffixing\n every class name with -s.\n\n So the variant is a set of values, not a set of rules. It used to be\n selected by tag name, which is why there were two public element pairs at\n all; P6E.1 folded those into one pair and the set is now selected by\n the variant attribute. Everything after that is shared, which is what keeps the 480,\n 600 and 1024 queries in one place instead of two. */\n :host {\n display: block;\n\n --bd-lc-columns: 3;\n --bd-lc-gap: 30px;\n --bd-lc-icon-size: var(--spacing-32);\n --bd-lc-header-direction: row;\n --bd-lc-header-align: center;\n --bd-lc-title-align: start;\n --bd-lc-section-padding-block: var(--spacing-0);\n --bd-lc-carousel-padding-top: var(--spacing-32);\n }\n\n :host([variant=\"simple\"]) {\n --bd-lc-columns: 4;\n --bd-lc-gap: var(--spacing-24);\n --bd-lc-icon-size: var(--spacing-44);\n --bd-lc-header-direction: column;\n --bd-lc-header-align: flex-start;\n --bd-lc-title-align: center;\n --bd-lc-section-padding-block: var(--spacing-32);\n --bd-lc-carousel-padding-top: var(--spacing-0);\n }\n\n :host(bd-light-carousel-section[variant=\"simple\"]) {\n padding-top: var(--bd-lc-section-padding-block);\n padding-bottom: var(--bd-lc-section-padding-block);\n }\n\n /* The section is the container every width rule below reads -- the\n track's columns and each card's size alike, so the two never disagree\n -- where they used to read the screen. A section across the page is as\n wide as the screen, so there nothing moves; one placed in a narrower\n column steps down with it. width: 100% because a size container\n contributes nothing to its own intrinsic width. */\n :host(bd-light-carousel-section) {\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n }\n .bd-header-light-carousel {\n margin-bottom: 50px;\n margin-top: 50px;\n }\n\n .bd-light-carousel {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n /* The section is the page column (bd-ensemble), so its cards land on the\n same content edge as every other module's. It used to be 1400 wide with a\n 14px gutter of its own; the track below carried a second 20px one, which\n put these cards 20px inside the column everything else aligned to. The\n column owns the gutter now, the track none. */\n box-sizing: border-box;\n width: 100%;\n margin: var(--spacing-0) auto;\n overflow: hidden;\n flex-direction: column;\n padding-top: var(--bd-lc-carousel-padding-top);\n }\n .bd-light-carousel-track {\n scroll-behavior: smooth;\n flex: 1;\n /* No wider than the column, so cards that do not fit scroll inside it.\n Centred in the section's flex column, the track takes its cards' width,\n which is right while they fit; but two 380 cards and the gap are 790,\n and the column between 768 and 1024 is 656 to 944, so where they did\n not fit the track never scrolled: it hung past the column on both\n sides and the section's overflow: hidden cut the cards off there. */\n max-width: 100%;\n position: relative;\n padding: var(--spacing-0);\n overflow-x: auto;\n overflow-y: hidden;\n scrollbar-width: none;\n z-index: var(--z-base);\n scroll-snap-type: x mandatory;\n }\n .bd-light-carousel-track {\n display: grid;\n gap: var(--bd-lc-gap);\n grid-template-columns: repeat(var(--bd-lc-columns), 1fr);\n }\n .bd-light-carousel-track::-webkit-scrollbar {\n display: none;\n }\n\n /* The track is a tab stop while it scrolls (light-carousel.ts), with the\n one focus ring -- see Foundations/Focus. It fits: the section clips at\n its padding box, and the track sits inside the column's gutter. */\n .bd-light-carousel-track:focus-visible {\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .bd-light-box {\n flex: var(--spacing-0) var(--spacing-0) auto;\n background: var(--color-surface-container);\n /* 2xl is the card radius: the card box, the card-features card, the trust\n panel card, the bento item and the awards root all use it. This was the\n only one of them at 3xl, and nothing about a carousel item asks for a\n softer corner than the same card sitting in a grid. */\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n flex-direction: column;\n align-items: start;\n justify-content: center;\n text-align: start;\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n min-height: 135px;\n /* The inset sits inside the declared width, exactly as it already does on\n bd-card and bd-bento-item. Without this the box is content-box: the two\n width rules below mean content width, the 32px inset is added outside\n them, and at 480 the card rendered 311 + 64 = 375px inside a 343px\n section -- 64px past its own parent, clipping its text off the right of\n a 375px phone. cards/card.css.ts carries the same note for the same\n reason. The em paddings that used to be in those media queries were\n compensating for this rather than expressing an inset. */\n box-sizing: border-box;\n position: relative;\n z-index: var(--z-raised);\n scroll-snap-align: start;\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* Two rules stood here, matching a bare h3 and a bare p inside the box.\n Neither can match: the item renders its title through bd-h and its copy\n through bd-p, so both elements live in their own shadow roots, and a\n descendant selector from this stylesheet does not cross that boundary.\n Measured 0 matches for each across 105 .bd-light-box instances. P5E.1\n removed the responsive half of this pair; the base half kept declaring\n spacing that nothing has ever been able to read. */\n\n .bd-light-icon {\n position: relative;\n bottom: var(--spacing-6);\n max-width: 100%;\n height: var(--bd-lc-icon-size);\n width: var(--bd-lc-icon-size);\n }\n .bd-light-box-header {\n display: flex;\n flex-direction: var(--bd-lc-header-direction);\n align-items: var(--bd-lc-header-align);\n gap: var(--spacing-8);\n }\n .bd-light-title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-4);\n }\n\n ${cardUpTo1024Media}\n @container (width <= 1024px) { ${cardUpTo1024} }\n\n ${cardBelowMdMedia}\n @container ${unsafeCSS(below('md'))} {\n .bd-light-carousel-track {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-20);\n overflow-x: hidden;\n overflow-y: hidden;\n scroll-behavior: smooth;\n }\n\n ${cardBelowMd}\n }\n\n ${cardUpTo480Media}\n @container (width <= 480px) { ${cardUpTo480} }\n\n @container (width <= 1024px) {\n .bd-light-carousel-track {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n\n @container (width <= 600px) {\n .bd-light-carousel-track {\n grid-template-columns: 1fr;\n }\n }\n\n /* A reader who asked for less motion was still getting the item lift. Twenty-three\n of the thirty animated directories in this package honour the query; this\n one did not. */\n @media (prefers-reduced-motion: reduce) {\n .bd-light-box {\n transition: none;\n }\n\n /* The track scrolls smoothly when its arrows or a script move it; a reader\n who asked for less motion gets the jump. */\n .bd-light-carousel-track {\n scroll-behavior: auto;\n }\n }\n`;\n"],"mappings":"A,4DA0BqB,CAAG,6BAMJ,CAAG,6GAaH,CAAG,qFAUG,CAAG,qDACJ,CAAG,mIACH,CAAG,4GAE5B,IAAAA,EAAe,CAAG,w5G"}
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from "lit";
2
- import "../../tokens/tokens.ts";
3
- import "../badge/badge.ts";
4
- import "../heading/heading.ts";
2
+ import "../../tokens/tokens.js";
3
+ import "../badge/badge.js";
4
+ import "../heading/heading.js";
5
5
  type Variant = "standard" | "simple";
6
6
  declare class CustomLightCarousel extends LitElement {
7
7
  static styles: import("lit").CSSResult[];
@@ -1,199 +1,34 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, html, nothing } from "lit";
8
- import { property, state } from "lit/decorators.js";
9
- import { defineElement } from "../shared/define-element.js";
10
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
11
- import "../../tokens/tokens.js";
12
- import "../badge/badge.js";
13
- import "../heading/heading.js";
14
- import carouselCSS from "../light-carousel/light-carousel.css.js";
15
- import { ensembleCSS } from "../shared/ensemble.css.js";
16
- let CustomLightCarousel = class CustomLightCarousel extends LitElement {
17
- constructor() {
18
- super(...arguments);
19
- this.title = "";
20
- this.headingLevel = 2;
21
- /**
22
- * Which value set the stylesheet uses: "standard" or "simple". Reflected,
23
- * because light-carousel.css.ts selects the set with an attribute selector.
24
- *
25
- * These were two public element pairs until P6E.1 --
26
- * bd-light-carousel-simple-section and -item. They were never a different
27
- * component: one stylesheet already served both and differed on eight
28
- * custom properties. The names are the ones this component's own stories
29
- * and docs table have always used, Standard and Simple, rather than new
30
- * ones invented at consolidation time.
31
- */
32
- this.variant = "standard";
33
- this._scrollable = false;
34
- }
35
- static { this.styles = [ensembleCSS, carouselCSS]; }
36
- /**
37
- * The heading element this section renders. Level is the document-outline
38
- * question and belongs to whoever composes the page; the type scale is this
39
- * component's own and does not move with it. Defaults to h2, because a
40
- * reusable section cannot know it is the only thing on the page, and two of
41
- * these used to put two h1s on one.
42
- */
43
- get _headingTag() {
44
- const n = Number(this.headingLevel);
45
- return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h2";
46
- }
47
- /* bd-h already builds the dynamic tag, and it keeps the two questions apart
48
- the way this component needs: as= is the outline level the page composes,
49
- visual-level= is the type role, which is ours. Building the element here
50
- meant re-implementing bd-h and then hand-writing the type on top of it. */
51
- _renderTitle(className) {
52
- return html `<bd-h as=${this._headingTag} visual-level="h3" class=${className}
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../badge/badge.js";import r from"./light-carousel.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s,state as c}from"lit/decorators.js";var l=class extends i{constructor(...e){super(...e),this.title=``,this.headingLevel=2,this.variant=`standard`,this._scrollable=!1}static{this.styles=[n,r]}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h2`}_renderTitle(e){return a`<bd-h as=${this._headingTag} visual-level="h3" class=${e}
53
2
  >${this.title}</bd-h
54
- >`;
55
- }
56
- /* The track scrolls sideways when its cards do not fit (between md and
57
- 1024 two cards of 380 rarely do), and a scroller the keyboard cannot
58
- reach cannot be scrolled from the keyboard: it is a tab stop then, named
59
- after the section's title, as a region. Only then -- a track whose cards
60
- fit has nothing to scroll, and a tab stop that does nothing is noise. */
61
- firstUpdated() {
62
- this._track = this.renderRoot.querySelector(".bd-light-carousel-track");
63
- this._overflow = new ResizeObserver(() => this._syncScrollable());
64
- this._overflow.observe(this._track);
65
- }
66
- /* Put back on the page, the track is watched again: disconnecting stops
67
- the observer, and firstUpdated does not run twice, so a moved carousel
68
- kept the answer it had and never gained or lost its tab stop again. An
69
- observer's first delivery comes on observe(), so the answer is current. */
70
- connectedCallback() {
71
- super.connectedCallback();
72
- if (this._track)
73
- this._overflow.observe(this._track);
74
- }
75
- disconnectedCallback() {
76
- super.disconnectedCallback();
77
- this._overflow?.disconnect();
78
- }
79
- _syncScrollable() {
80
- const track = this._track;
81
- this._scrollable = !!track && track.scrollWidth > track.clientWidth + 1;
82
- }
83
- render() {
84
- const scrollable = this._scrollable;
85
- return html `
3
+ >`}firstUpdated(){this._track=this.renderRoot.querySelector(`.bd-light-carousel-track`),this._overflow=new ResizeObserver(()=>this._syncScrollable()),this._overflow.observe(this._track)}connectedCallback(){super.connectedCallback(),this._track&&this._overflow.observe(this._track)}disconnectedCallback(){super.disconnectedCallback(),this._overflow?.disconnect()}_syncScrollable(){let e=this._track;this._scrollable=!!e&&e.scrollWidth>e.clientWidth+1}render(){let e=this._scrollable;return a`
86
4
  <section class="bd-ensemble bd-light-carousel">
87
- ${this.title
88
- ? html `
5
+ ${this.title?a`
89
6
  <div class="bd-header-light-carousel">
90
- ${this._renderTitle("bd-section-title")}
7
+ ${this._renderTitle(`bd-section-title`)}
91
8
  </div>
92
- `
93
- : null}
9
+ `:null}
94
10
  <div
95
11
  class="bd-light-carousel-track"
96
- tabindex=${scrollable ? "0" : nothing}
97
- role=${scrollable ? "region" : nothing}
98
- aria-label=${scrollable ? this.title || "Cards" : nothing}
12
+ tabindex=${e?`0`:o}
13
+ role=${e?`region`:o}
14
+ aria-label=${e?this.title||`Cards`:o}
99
15
  >
100
- <slot @slotchange=${() => this._syncScrollable()}></slot>
16
+ <slot @slotchange=${()=>this._syncScrollable()}></slot>
101
17
  </div>
102
18
  </section>
103
- `;
104
- }
105
- };
106
- __decorate([
107
- property({ type: String })
108
- ], CustomLightCarousel.prototype, "title", void 0);
109
- __decorate([
110
- property({ type: Number, attribute: "heading-level" })
111
- ], CustomLightCarousel.prototype, "headingLevel", void 0);
112
- __decorate([
113
- property({ type: String, reflect: true })
114
- ], CustomLightCarousel.prototype, "variant", void 0);
115
- __decorate([
116
- state()
117
- ], CustomLightCarousel.prototype, "_scrollable", void 0);
118
- CustomLightCarousel = __decorate([
119
- defineElement("bd-light-carousel-section")
120
- ], CustomLightCarousel);
121
- let LightCarouselItem = class LightCarouselItem extends LitElement {
122
- constructor() {
123
- super(...arguments);
124
- this.title = "";
125
- this.badge = "";
126
- this.icon = "";
127
- this.headingLevel = 3;
128
- /** See the note on the section. Reflected for the same reason. */
129
- this.variant = "standard";
130
- }
131
- static { this.styles = [carouselCSS]; }
132
- /**
133
- * One level below the section default, so a section and the items inside it
134
- * read as a hierarchy rather than a jump. The two variants render the same
135
- * role at different sizes, which is a type decision and stays on
136
- * visual-level; before this they said h6 and h4, which was a document-outline
137
- * difference nobody chose.
138
- */
139
- get _headingTag() {
140
- const n = Number(this.headingLevel);
141
- return Number.isInteger(n) && n >= 1 && n <= 6 ? `h${n}` : "h3";
142
- }
143
- /**
144
- * The title, at whichever type the variant renders it.
145
- *
146
- * Standard draws it at h5, bold, with 10px of vertical padding; simple draws
147
- * it at h4 with neither. That is a real difference, and it is the reason
148
- * omitting `badge` could not have reproduced the simple item on its own --
149
- * the two treatments disagree about the type of the title as well as about
150
- * the eight layout values in the stylesheet.
151
- */
152
- _renderItemTitle() {
153
- return this.variant === "simple"
154
- ? html `<bd-h as="${this._headingTag}" visual-level="h4">${this.title}</bd-h>`
155
- : html `<bd-h as="${this._headingTag}" visual-level="h5" padding="10 0" fontWeight="bold">${this.title}</bd-h>`;
156
- }
157
- render() {
158
- return html `
19
+ `}};t([s({type:String})],l.prototype,`title`,void 0),t([s({type:Number,attribute:`heading-level`})],l.prototype,`headingLevel`,void 0),t([s({type:String,reflect:!0})],l.prototype,`variant`,void 0),t([c()],l.prototype,`_scrollable`,void 0),l=t([e(`bd-light-carousel-section`)],l);var u=class extends i{constructor(...e){super(...e),this.title=``,this.badge=``,this.icon=``,this.headingLevel=3,this.variant=`standard`}static{this.styles=[r]}get _headingTag(){let e=Number(this.headingLevel);return Number.isInteger(e)&&e>=1&&e<=6?`h${e}`:`h3`}_renderItemTitle(){return this.variant===`simple`?a`<bd-h as="${this._headingTag}" visual-level="h4">${this.title}</bd-h>`:a`<bd-h as="${this._headingTag}" visual-level="h5" padding="10 0" fontWeight="bold">${this.title}</bd-h>`}render(){return a`
159
20
  <div class="bd-light-box">
160
21
  <div class="bd-light-box-header">
161
- ${this.icon
162
- ? html `<img src="${this.icon}" alt="" class="bd-light-icon" />`
163
- : ""}
22
+ ${this.icon?a`<img src="${this.icon}" alt="" class="bd-light-icon" />`:``}
164
23
 
165
- ${this.title || this.badge
166
- ? html `
24
+ ${this.title||this.badge?a`
167
25
  <div class="bd-light-title-badge-wrapper">
168
- ${this.title ? this._renderItemTitle() : ""}
169
- ${this.badge
170
- ? html `<bd-badge tone="primary" variant="fill">${this.badge}</bd-badge>`
171
- : ""}
26
+ ${this.title?this._renderItemTitle():``}
27
+ ${this.badge?a`<bd-badge tone="primary" variant="fill">${this.badge}</bd-badge>`:``}
172
28
  </div>
173
- `
174
- : ""}
29
+ `:``}
175
30
  </div>
176
31
  <slot></slot>
177
32
  </div>
178
- `;
179
- }
180
- };
181
- __decorate([
182
- property({ type: String })
183
- ], LightCarouselItem.prototype, "title", void 0);
184
- __decorate([
185
- property({ type: String })
186
- ], LightCarouselItem.prototype, "badge", void 0);
187
- __decorate([
188
- property({ type: String })
189
- ], LightCarouselItem.prototype, "icon", void 0);
190
- __decorate([
191
- property({ type: Number, attribute: "heading-level" })
192
- ], LightCarouselItem.prototype, "headingLevel", void 0);
193
- __decorate([
194
- property({ type: String, reflect: true })
195
- ], LightCarouselItem.prototype, "variant", void 0);
196
- LightCarouselItem = __decorate([
197
- defineElement("bd-light-carousel-item")
198
- ], LightCarouselItem);
33
+ `}};t([s({type:String})],u.prototype,`title`,void 0),t([s({type:String})],u.prototype,`badge`,void 0),t([s({type:String})],u.prototype,`icon`,void 0),t([s({type:Number,attribute:`heading-level`})],u.prototype,`headingLevel`,void 0),t([s({type:String,reflect:!0})],u.prototype,`variant`,void 0),u=t([e(`bd-light-carousel-item`)],u);
199
34
  //# sourceMappingURL=light-carousel.js.map