@repobit/dex-system-design 3.0.0 → 3.0.2

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 +4 -3
  383. package/dist/src/components/logo-marquee/logo-marquee.js +6 -136
  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 +14 -3
  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":"awards-flex.css.js","sourceRoot":"","sources":["../../../../src/components/awards/awards-flex.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4OrB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"../shared/token-scales.ts\";\n\nexport const awardsFlexCSS = css`\n .bd-awardsflex-root {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n width: 100%;\n box-sizing: border-box;\n padding-block: var(--spacing-32);\n border-radius: var(--shape-radius-2xl);\n text-align: center;\n font-family: var(--typography-fontFamily-sans);\n min-height: var(--bd-awardsflex-min-height, 320px);\n }\n\n .bd-awardsflex-root--white {\n background: var(--color-surface-default);\n /* --border-width-2, not --spacing-2. Same 2px at a 16px root and not the\n same thing: --spacing-* is rem and --border-width-* is px, so this edge\n measured 3px for a reader at a 24px root while every other border in the\n package held still. A border width is a fixed optical weight, not a\n distance that should grow with the text it surrounds -- the same\n argument CLAUDE.md makes for the carousel arrow, running the other way.\n\n --color-border-container for the colour, and --color-blue-50 was the\n second half of the same problem: a primitive doing a border role's job.\n No border role resolves to blue-50 -- the three roles that carry that\n value are all SURFACES, so adopting one would have been the category\n error CLAUDE.md names outright. This is the role five other\n edge-drawing objects in the package already use.\n\n Measured against the page ground this section sits on:\n\n --color-blue-50 1.080:1 the primitive, today\n --color-border-container 1.287:1 the role, and the smallest change\n --color-border-subtle 1.664:1\n --status-brand-border 1.727:1 a real BRAND border role\n --color-border-brand 4.534:1\n\n --status-brand-border was the interesting alternative, because it keeps\n the blue and is a legitimate border role. Rejected on two counts: it\n would make this the only section in the package with a brand-coloured\n frame, a fresh divergence rather than a fix, and at 1.727:1 it is a far\n larger visible change than the defect warrants.\n\n The blue was probably meant to echo the tint variant, whose ground is\n this same blue-50 -- but that echo does no perceptual work. Looked at on\n screen, a 1.080:1 edge on white reads as a faint neutral hairline with no\n blue in it, so what is lost is a relationship nobody can see and what is\n gained is a line that means something. Visible: the hairline becomes\n slightly more definite. */\n border: var(--border-width-2) solid var(--color-border-container);\n border-radius: var(--shape-radius-2xl);\n padding-block: var(--spacing-64);\n }\n\n /* the tint runs full-bleed on the host; the root inside it is the column */\n :host([background=\"tint\"]) {\n background: var(--status-brand-surface);\n }\n\n /* === LAUREL ICON (always centered, above the headline) === */\n .bd-awardsflex-laurel {\n display: flex;\n align-items: center;\n justify-content: center;\n /* no role: the laurel wreath, same decision as awards.css.ts's laurel and\n as highlight.css.ts's deco shapes -- ornament, so an ink role is the\n wrong family. This div is a currentColor carrier for bd-laurel-icon or a\n slotted mark.\n .\n --color-blue-500 is the brand blue, and a primitive because no blue-500\n role means ink: they are all surfaces, borders, actions, the indicator\n underline, or status fills.\n .\n This one sits on both grounds the component has. Against the white root,\n 6.18:1 -> 4.53:1; against the tint variant's blue-50 host, 5.72:1 ->\n 4.20:1. Both clear the 3:1 non-text minimum, and a decorative graphic\n has no minimum at all. */\n color: var(--color-brand-500);\n margin-bottom: var(--spacing-8);\n }\n\n.bd-awardsflex-text-group {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-32);\n}\n\n.bd-awardsflex-headline {\n margin: 0;\n}\n\n.bd-awardsflex-subtext {\n color: var(--color-text-muted);\n max-width: 640px;\n margin: 0; /* was: margin: 0 0 var(--spacing-8); */\n}\n\n /* === BADGES ROW (compact / grid layouts) === */\n .bd-awardsflex-badges-row {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: var(--spacing-24);\n min-height: 64px;\n }\n\n .bd-awardsflex-badge {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n /* === QUOTES LAYOUT — no card background, sits directly on the section bg === */\n .bd-awardsflex-quotes-row {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-32);\n width: 100%;\n }\n\n /* A scroller the browser drives: a swipe, a trackpad and a wheel all move\n it, and the snap settles each of them on a whole slide. */\n .bd-awardsflex-carousel-viewport {\n width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n /* a sideways swipe that reaches either end stops here, rather than\n carrying on into the browser's back and forward gesture */\n overscroll-behavior-x: contain;\n /* No scrollbar: the dots say where the slides are. */\n scrollbar-width: none;\n /* a dot's jump glides; see the reduced-motion block for who it does not */\n scroll-behavior: smooth;\n }\n\n .bd-awardsflex-carousel-viewport::-webkit-scrollbar {\n display: none;\n }\n\n .bd-awardsflex-carousel-track {\n display: flex;\n }\n\n /* each slide/page holds a group of quote cards (default 3), shown side by\n side; one stop a slide, and a swipe moves one slide however hard it is\n flung */\n .bd-awardsflex-carousel-slide {\n scroll-snap-align: start;\n scroll-snap-stop: always;\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n gap: var(--spacing-32);\n box-sizing: border-box;\n }\n\n .bd-awardsflex-quote-card {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n background: transparent;\n padding: 0;\n max-width: 220px;\n flex: 1 1 200px;\n box-sizing: border-box;\n min-height: 160px;\n }\n\n .bd-awardsflex-quote-text {\n /* A pull quote is supporting body copy, and it wraps -- three lines at the\n widths this renders at. It was asking for the 14px primitive and taking\n its leading from whatever it sat inside, which was the browser's own. */\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n font-style: italic;\n /* Pull quote: supporting, not primary. */\n color: var(--color-text-secondary);\n margin: 0;\n }\n\n .bd-awardsflex-quote-source {\n /* no role: 12px text that no role in the vocabulary describes. The checker\n recommends body-xsmall here and that recommendation is wrong, which is\n worth writing down because it has recurred through the NEEDS_ROLE and\n HAS_ROLE batches: body-xsmall declares fontSize and nothing else, so it\n matches ANY one-axis 12px declaration trivially, on size alone. It is not\n an incomplete role waiting to be finished -- tokens.ts says it is\n deliberately size-only, and it exists for bd-p variant=\"xsmall\", which\n composes it with body-small's weight, leading and tracking. This element\n is not a bd-p, so borrowing that token would claim a composition it has\n no half of.\n .\n The complete roles at this step do not fit either. label-small,\n caption-default and caption-small all declare fontFamily-sans, and four\n of the five sites this argument covers are IBM Plex Mono -- adopting one\n would change the face. caption-default additionally declares a colour,\n the only role in the vocabulary that does.\n .\n So: the size stays a primitive and says why. The other four sites are\n .bd-headercode-breadcrumb, .bd-headercode-badge,\n .bd-terminalmsg-panel-label and .bd-terminalmsg-hint. */\n font-size: var(--typography-fontSize-xs);\n /* same as the quick-answer labels: subtle reads at 4.33:1 on this tint. */\n color: var(--color-text-muted);\n margin: 0;\n }\n\n /* === SLIDE CONTROLS ===\n bd-pagination-dots, which also runs the autoplay clock. This file used to\n draw its own dots and pause button -- a dot row that called itself a\n tablist with no tabpanels, resting dots at neutral-300 (2.10:1 on the\n tint, under the 3:1 a control needs), and a setInterval the dots knew\n nothing about. The atom owns all of that now; the margin is all that is\n left to decide here. */\n bd-pagination-dots {\n margin-top: var(--spacing-8);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .bd-awardsflex-carousel-viewport {\n scroll-behavior: auto;\n }\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-awardsflex-root {\n padding-block: var(--spacing-24);\n gap: var(--spacing-8);\n min-height: var(--bd-awardsflex-min-height-mobile, 280px);\n }\n\n /* The static row stacks. The carousel slide does not: below sm it holds\n one card, and in a column the card's 200px flex-basis became its\n height. In the row it fills the width and takes its own height. */\n .bd-awardsflex-quotes-row {\n flex-direction: column;\n align-items: center;\n }\n\n /* A stacked card is as tall as what it holds. In the column, the card's\n 200px flex-basis became its height and the 160px min-height had nothing\n left to do -- it keeps cards that stand side by side the same height,\n and stacked cards stand side by side with nothing. Measured at 390:\n 200px cards whose content ended at 111 and 132. The width is the\n column's, so a short quote no longer hugs its source line.\n .\n The carousel slide keeps the min-height: there it stops the section\n jumping in height from one slide to the next. */\n .bd-awardsflex-quotes-row .bd-awardsflex-quote-card {\n flex: none;\n width: 100%;\n min-height: 0;\n }\n\n .bd-awardsflex-quote-card {\n max-width: none;\n }\n }\n`;"]}
1
+ {"version":3,"file":"awards-flex.css.js","names":["awardsFlexCSS"],"sources":["../../../../src/components/awards/awards-flex.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport const awardsFlexCSS = css`\n .bd-awardsflex-root {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n width: 100%;\n box-sizing: border-box;\n padding-block: var(--spacing-32);\n border-radius: var(--shape-radius-2xl);\n text-align: center;\n font-family: var(--typography-fontFamily-sans);\n min-height: var(--bd-awardsflex-min-height, 320px);\n }\n\n .bd-awardsflex-root--white {\n background: var(--color-surface-default);\n /* --border-width-2, not --spacing-2. Same 2px at a 16px root and not the\n same thing: --spacing-* is rem and --border-width-* is px, so this edge\n measured 3px for a reader at a 24px root while every other border in the\n package held still. A border width is a fixed optical weight, not a\n distance that should grow with the text it surrounds -- the same\n argument CLAUDE.md makes for the carousel arrow, running the other way.\n\n --color-border-container for the colour, and --color-blue-50 was the\n second half of the same problem: a primitive doing a border role's job.\n No border role resolves to blue-50 -- the three roles that carry that\n value are all SURFACES, so adopting one would have been the category\n error CLAUDE.md names outright. This is the role five other\n edge-drawing objects in the package already use.\n\n Measured against the page ground this section sits on:\n\n --color-blue-50 1.080:1 the primitive, today\n --color-border-container 1.287:1 the role, and the smallest change\n --color-border-subtle 1.664:1\n --status-brand-border 1.727:1 a real BRAND border role\n --color-border-brand 4.534:1\n\n --status-brand-border was the interesting alternative, because it keeps\n the blue and is a legitimate border role. Rejected on two counts: it\n would make this the only section in the package with a brand-coloured\n frame, a fresh divergence rather than a fix, and at 1.727:1 it is a far\n larger visible change than the defect warrants.\n\n The blue was probably meant to echo the tint variant, whose ground is\n this same blue-50 -- but that echo does no perceptual work. Looked at on\n screen, a 1.080:1 edge on white reads as a faint neutral hairline with no\n blue in it, so what is lost is a relationship nobody can see and what is\n gained is a line that means something. Visible: the hairline becomes\n slightly more definite. */\n border: var(--border-width-2) solid var(--color-border-container);\n border-radius: var(--shape-radius-2xl);\n padding-block: var(--spacing-64);\n }\n\n /* the tint runs full-bleed on the host; the root inside it is the column */\n :host([background=\"tint\"]) {\n background: var(--status-brand-surface);\n }\n\n /* === LAUREL ICON (always centered, above the headline) === */\n .bd-awardsflex-laurel {\n display: flex;\n align-items: center;\n justify-content: center;\n /* no role: the laurel wreath, same decision as awards.css.ts's laurel and\n as highlight.css.ts's deco shapes -- ornament, so an ink role is the\n wrong family. This div is a currentColor carrier for bd-laurel-icon or a\n slotted mark.\n .\n --color-blue-500 is the brand blue, and a primitive because no blue-500\n role means ink: they are all surfaces, borders, actions, the indicator\n underline, or status fills.\n .\n This one sits on both grounds the component has. Against the white root,\n 6.18:1 -> 4.53:1; against the tint variant's blue-50 host, 5.72:1 ->\n 4.20:1. Both clear the 3:1 non-text minimum, and a decorative graphic\n has no minimum at all. */\n color: var(--color-brand-500);\n margin-bottom: var(--spacing-8);\n }\n\n.bd-awardsflex-text-group {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-32);\n}\n\n.bd-awardsflex-headline {\n margin: 0;\n}\n\n.bd-awardsflex-subtext {\n color: var(--color-text-muted);\n max-width: 640px;\n margin: 0; /* was: margin: 0 0 var(--spacing-8); */\n}\n\n /* === BADGES ROW (compact / grid layouts) === */\n .bd-awardsflex-badges-row {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: var(--spacing-24);\n min-height: 64px;\n }\n\n .bd-awardsflex-badge {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n /* === QUOTES LAYOUT — no card background, sits directly on the section bg === */\n .bd-awardsflex-quotes-row {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-32);\n width: 100%;\n }\n\n /* A scroller the browser drives: a swipe, a trackpad and a wheel all move\n it, and the snap settles each of them on a whole slide. */\n .bd-awardsflex-carousel-viewport {\n width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-snap-type: x mandatory;\n /* a sideways swipe that reaches either end stops here, rather than\n carrying on into the browser's back and forward gesture */\n overscroll-behavior-x: contain;\n /* No scrollbar: the dots say where the slides are. */\n scrollbar-width: none;\n /* a dot's jump glides; see the reduced-motion block for who it does not */\n scroll-behavior: smooth;\n }\n\n .bd-awardsflex-carousel-viewport::-webkit-scrollbar {\n display: none;\n }\n\n .bd-awardsflex-carousel-track {\n display: flex;\n }\n\n /* each slide/page holds a group of quote cards (default 3), shown side by\n side; one stop a slide, and a swipe moves one slide however hard it is\n flung */\n .bd-awardsflex-carousel-slide {\n scroll-snap-align: start;\n scroll-snap-stop: always;\n flex: 0 0 100%;\n display: flex;\n justify-content: center;\n gap: var(--spacing-32);\n box-sizing: border-box;\n }\n\n .bd-awardsflex-quote-card {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n background: transparent;\n padding: 0;\n max-width: 220px;\n flex: 1 1 200px;\n box-sizing: border-box;\n min-height: 160px;\n }\n\n .bd-awardsflex-quote-text {\n /* A pull quote is supporting body copy, and it wraps -- three lines at the\n widths this renders at. It was asking for the 14px primitive and taking\n its leading from whatever it sat inside, which was the browser's own. */\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n font-style: italic;\n /* Pull quote: supporting, not primary. */\n color: var(--color-text-secondary);\n margin: 0;\n }\n\n .bd-awardsflex-quote-source {\n /* no role: 12px text that no role in the vocabulary describes. The checker\n recommends body-xsmall here and that recommendation is wrong, which is\n worth writing down because it has recurred through the NEEDS_ROLE and\n HAS_ROLE batches: body-xsmall declares fontSize and nothing else, so it\n matches ANY one-axis 12px declaration trivially, on size alone. It is not\n an incomplete role waiting to be finished -- tokens.ts says it is\n deliberately size-only, and it exists for bd-p variant=\"xsmall\", which\n composes it with body-small's weight, leading and tracking. This element\n is not a bd-p, so borrowing that token would claim a composition it has\n no half of.\n .\n The complete roles at this step do not fit either. label-small,\n caption-default and caption-small all declare fontFamily-sans, and four\n of the five sites this argument covers are IBM Plex Mono -- adopting one\n would change the face. caption-default additionally declares a colour,\n the only role in the vocabulary that does.\n .\n So: the size stays a primitive and says why. The other four sites are\n .bd-headercode-breadcrumb, .bd-headercode-badge,\n .bd-terminalmsg-panel-label and .bd-terminalmsg-hint. */\n font-size: var(--typography-fontSize-xs);\n /* same as the quick-answer labels: subtle reads at 4.33:1 on this tint. */\n color: var(--color-text-muted);\n margin: 0;\n }\n\n /* === SLIDE CONTROLS ===\n bd-pagination-dots, which also runs the autoplay clock. This file used to\n draw its own dots and pause button -- a dot row that called itself a\n tablist with no tabpanels, resting dots at neutral-300 (2.10:1 on the\n tint, under the 3:1 a control needs), and a setInterval the dots knew\n nothing about. The atom owns all of that now; the margin is all that is\n left to decide here. */\n bd-pagination-dots {\n margin-top: var(--spacing-8);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .bd-awardsflex-carousel-viewport {\n scroll-behavior: auto;\n }\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-awardsflex-root {\n padding-block: var(--spacing-24);\n gap: var(--spacing-8);\n min-height: var(--bd-awardsflex-min-height-mobile, 280px);\n }\n\n /* The static row stacks. The carousel slide does not: below sm it holds\n one card, and in a column the card's 200px flex-basis became its\n height. In the row it fills the width and takes its own height. */\n .bd-awardsflex-quotes-row {\n flex-direction: column;\n align-items: center;\n }\n\n /* A stacked card is as tall as what it holds. In the column, the card's\n 200px flex-basis became its height and the 160px min-height had nothing\n left to do -- it keeps cards that stand side by side the same height,\n and stacked cards stand side by side with nothing. Measured at 390:\n 200px cards whose content ended at 111 and 132. The width is the\n column's, so a short quote no longer hugs its source line.\n .\n The carousel slide keeps the min-height: there it stops the section\n jumping in height from one slide to the next. */\n .bd-awardsflex-quotes-row .bd-awardsflex-quote-card {\n flex: none;\n width: 100%;\n min-height: 0;\n }\n\n .bd-awardsflex-quote-card {\n max-width: none;\n }\n }\n`;"],"mappings":"A,4DAGA,IAAaA,EAAgB,CAAG,6zF"}
@@ -1,16 +1,16 @@
1
1
  import { LitElement, nothing, type PropertyValues } from "lit";
2
- import "../icons/av-comparatives-icon.ts";
3
- import "../icons/best-brands-icon.ts";
4
- import "../icons/laurel-icon.ts";
5
- import "../icons/pc-mag-2024-icon.ts";
6
- import "../icons/pc-mag-business-icon.ts";
7
- import "../icons/pc-mag-icon.ts";
8
- import "../icons/pc-mag-readers-icon.ts";
9
- import "../icons/top-product-icon.ts";
10
- import "../heading/heading.ts";
11
- import "../paragraph/paragraph.ts";
12
- import "../pagination-dots/pagination-dots.ts";
13
- import { ScrollSlides } from "./scroll-slides.ts";
2
+ import "../icons/av-comparatives-icon.js";
3
+ import "../icons/best-brands-icon.js";
4
+ import "../icons/laurel-icon.js";
5
+ import "../icons/pc-mag-2024-icon.js";
6
+ import "../icons/pc-mag-business-icon.js";
7
+ import "../icons/pc-mag-icon.js";
8
+ import "../icons/pc-mag-readers-icon.js";
9
+ import "../icons/top-product-icon.js";
10
+ import "../heading/heading.js";
11
+ import "../paragraph/paragraph.js";
12
+ import "../pagination-dots/pagination-dots.js";
13
+ import { ScrollSlides } from "./scroll-slides.js";
14
14
  type Background = "white" | "tint";
15
15
  type Layout = "compact" | "grid" | "quotes";
16
16
  type Live = "off" | "polite";
@@ -1,299 +1,68 @@
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
- import { MediaQueryController } from "../shared/controller.media-query.js";
11
- import { tokens } from "../../tokens/tokens.js";
12
- import "../icons/av-comparatives-icon.js";
13
- import "../icons/best-brands-icon.js";
14
- import "../icons/laurel-icon.js";
15
- import "../icons/pc-mag-2024-icon.js";
16
- import "../icons/pc-mag-business-icon.js";
17
- import "../icons/pc-mag-icon.js";
18
- import "../icons/pc-mag-readers-icon.js";
19
- import "../icons/top-product-icon.js";
20
- import "../heading/heading.js";
21
- import "../paragraph/paragraph.js";
22
- import "../pagination-dots/pagination-dots.js";
23
- import { awardsFlexCSS } from "./awards-flex.css.js";
24
- import { ensembleCSS } from "../shared/ensemble.css.js";
25
- import { below } from "../shared/token-scales.js";
26
- import { ScrollSlides } from "./scroll-slides.js";
27
- /* How many quote cards one carousel slide holds: three side by side, and one
28
- below sm. Three used to stack in a column on a phone, so a slide was about
29
- 1065px tall with every card on screen at once, and the dots paged between
30
- two such stacks. One card a slide gives the phone a carousel again -- six
31
- awards are six slides and six dots -- at about half the height. Drawn in the
32
- foundation Figma file as Awards carousel, breakpoint=mobile. */
33
- const GROUP_SIZE = 3;
34
- const GROUP_SIZE_NARROW = 1;
35
- let AwardsFlex = class AwardsFlex extends LitElement {
36
- static { this.styles = [tokens, ensembleCSS, awardsFlexCSS]; }
37
- constructor() {
38
- super();
39
- this.background = "white";
40
- this.layout = "compact";
41
- this.carousel = false;
42
- this.autoplay = false;
43
- this.autoplayDelay = 4000;
44
- this.headline = "";
45
- this.subtext = "";
46
- this.badges = [];
47
- this._slide = 0;
48
- this._groupSize = GROUP_SIZE;
49
- /* The pointer or focus on the slides holds the autoplay -- a hold, which
50
- lifts by itself. Stopping it for good is the atom's: a visitor who picks
51
- a dot has chosen a slide, and it stays. */
52
- this._hovered = false;
53
- this._focusWithin = false;
54
- /* The slides' live region. Off while they change on their own, so a
55
- screen reader is not read a new set of quotes every few seconds; polite
56
- once they are still, so a change the visitor asks for is announced.
57
- bd-pagination-dots says which, through bd-toggle. */
58
- this._live = "polite";
59
- this._slides = new ScrollSlides(this, {
60
- scroller: ".bd-awardsflex-carousel-viewport",
61
- onSlide: i => this._onScrolled(i)
62
- });
63
- /* Watched rather than read once: a slide is a layout, and a phone turned
64
- sideways crosses the breakpoint. */
65
- new MediaQueryController(this, below("sm"), narrow => this._setGroupSize(narrow ? GROUP_SIZE_NARROW : GROUP_SIZE));
66
- }
67
- /* Changing the slide size keeps the visitor on the slide that holds the card
68
- they were looking at: its first card, re-paged. */
69
- _setGroupSize(size) {
70
- if (size === this._groupSize)
71
- return;
72
- const firstCard = this._slide * this._groupSize;
73
- this._groupSize = size;
74
- this._slide = Math.floor(firstCard / size);
75
- }
76
- updated(changed) {
77
- if (changed.has("autoplay") ||
78
- changed.has("carousel") ||
79
- changed.has("layout") ||
80
- changed.has("badges") ||
81
- changed.has("_groupSize")) {
82
- // if the badge set shrank, make sure the current slide index is still valid
83
- if (this._slide >= this._slidesCount) {
84
- this._slide = 0;
85
- }
86
- }
87
- // a dot, the clock or a re-paging chose a slide: bring it in
88
- if (changed.has("_slide") || changed.has("_groupSize"))
89
- this._slides.go(this._slide);
90
- }
91
- /* A visitor scrolled to another slide. That is a choice of slide, as a dot
92
- is, so it stops autoplay for good the way a dot does. */
93
- _onScrolled(index) {
94
- if (index === this._slide)
95
- return;
96
- this._slide = index;
97
- const dots = this.renderRoot.querySelector("bd-pagination-dots");
98
- if (dots?.autoplay)
99
- dots.paused = true;
100
- }
101
- get _groups() {
102
- // chunk badges into slides of _groupSize for the carousel
103
- const groups = [];
104
- for (let i = 0; i < this.badges.length; i += this._groupSize) {
105
- groups.push(this.badges.slice(i, i + this._groupSize));
106
- }
107
- return groups;
108
- }
109
- get _slidesCount() {
110
- return this.layout === "quotes" ? this._groups.length : 0;
111
- }
112
- /** True when the carousel is able to move on its own. */
113
- get _autoplayOffered() {
114
- return this.autoplay && this.carousel && this.layout === "quotes" && this._slidesCount > 1;
115
- }
116
- _iconHeight() {
117
- if (this.layout === "grid")
118
- return 64;
119
- if (this.layout === "quotes")
120
- return 56;
121
- return 56;
122
- }
123
- _renderIcon(iconKey) {
124
- const h = this._iconHeight();
125
- switch (iconKey) {
126
- case "pc-mag":
127
- return html `<bd-pc-mag-icon height=${h}></bd-pc-mag-icon>`;
128
- case "pc-mag-2024":
129
- return html `<bd-pc-mag-2024-icon height=${h}></bd-pc-mag-2024-icon>`;
130
- case "pc-mag-business":
131
- return html `<bd-pc-mag-business-icon height=${h}></bd-pc-mag-business-icon>`;
132
- case "pc-mag-readers":
133
- return html `<bd-pc-mag-readers-icon height=${h}></bd-pc-mag-readers-icon>`;
134
- case "av-comparatives":
135
- return html `<bd-av-comparatives-icon height=${h}></bd-av-comparatives-icon>`;
136
- case "best-brands":
137
- return html `<bd-best-brands-icon height=${h}></bd-best-brands-icon>`;
138
- case "top-product":
139
- return html `<bd-top-product-icon height=${h}></bd-top-product-icon>`;
140
- default:
141
- return html `<span class="bd-awardsflex-badge-fallback" aria-hidden="true">?</span>`;
142
- }
143
- }
144
- _renderBadge(award) {
145
- const classes = `bd-awardsflex-badge ${award.type === "dark" ? "bd-awardsflex-badge--dark" : ""}`;
146
- return html `
147
- <div class="${classes}" data-award-id="${award.id}" role="listitem" aria-label="${award.label || ""}">
148
- ${this._renderIcon(award.icon)}
1
+ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import{below as n}from"../shared/token-scales.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import{awardsFlexCSS as a}from"./awards-flex.css.js";import{MediaQueryController as o}from"../shared/controller.media-query.js";import"../icons/av-comparatives-icon.js";import"../icons/best-brands-icon.js";import"../icons/laurel-icon.js";import"../icons/pc-mag-2024-icon.js";import"../icons/pc-mag-business-icon.js";import"../icons/pc-mag-icon.js";import"../icons/pc-mag-readers-icon.js";import"../icons/top-product-icon.js";import"../pagination-dots/pagination-dots.js";import{ScrollSlides as s}from"./scroll-slides.js";import{LitElement as c,html as l,nothing as u}from"lit";import{property as d,state as f}from"lit/decorators.js";var p=3,m=1,h=class extends c{static{this.styles=[t,i,a]}constructor(){super(),this.background=`white`,this.layout=`compact`,this.carousel=!1,this.autoplay=!1,this.autoplayDelay=4e3,this.headline=``,this.subtext=``,this.badges=[],this._slide=0,this._groupSize=p,this._hovered=!1,this._focusWithin=!1,this._live=`polite`,this._slides=new s(this,{scroller:`.bd-awardsflex-carousel-viewport`,onSlide:e=>this._onScrolled(e)}),new o(this,n(`sm`),e=>this._setGroupSize(e?m:p))}_setGroupSize(e){if(e===this._groupSize)return;let t=this._slide*this._groupSize;this._groupSize=e,this._slide=Math.floor(t/e)}updated(e){(e.has(`autoplay`)||e.has(`carousel`)||e.has(`layout`)||e.has(`badges`)||e.has(`_groupSize`))&&this._slide>=this._slidesCount&&(this._slide=0),(e.has(`_slide`)||e.has(`_groupSize`))&&this._slides.go(this._slide)}_onScrolled(e){if(e===this._slide)return;this._slide=e;let t=this.renderRoot.querySelector(`bd-pagination-dots`);t?.autoplay&&(t.paused=!0)}get _groups(){let e=[];for(let t=0;t<this.badges.length;t+=this._groupSize)e.push(this.badges.slice(t,t+this._groupSize));return e}get _slidesCount(){return this.layout===`quotes`?this._groups.length:0}get _autoplayOffered(){return this.autoplay&&this.carousel&&this.layout===`quotes`&&this._slidesCount>1}_iconHeight(){return this.layout===`grid`?64:(this.layout,56)}_renderIcon(e){let t=this._iconHeight();switch(e){case`pc-mag`:return l`<bd-pc-mag-icon height=${t}></bd-pc-mag-icon>`;case`pc-mag-2024`:return l`<bd-pc-mag-2024-icon height=${t}></bd-pc-mag-2024-icon>`;case`pc-mag-business`:return l`<bd-pc-mag-business-icon height=${t}></bd-pc-mag-business-icon>`;case`pc-mag-readers`:return l`<bd-pc-mag-readers-icon height=${t}></bd-pc-mag-readers-icon>`;case`av-comparatives`:return l`<bd-av-comparatives-icon height=${t}></bd-av-comparatives-icon>`;case`best-brands`:return l`<bd-best-brands-icon height=${t}></bd-best-brands-icon>`;case`top-product`:return l`<bd-top-product-icon height=${t}></bd-top-product-icon>`;default:return l`<span class="bd-awardsflex-badge-fallback" aria-hidden="true">?</span>`}}_renderBadge(e){let t=`bd-awardsflex-badge ${e.type===`dark`?`bd-awardsflex-badge--dark`:``}`;return l`
2
+ <div class="${t}" data-award-id="${e.id}" role="listitem" aria-label="${e.label||``}">
3
+ ${this._renderIcon(e.icon)}
149
4
  </div>
150
- `;
151
- }
152
- _renderQuoteCard(award) {
153
- if (!award.quote)
154
- return nothing;
155
- return html `
5
+ `}_renderQuoteCard(e){return e.quote?l`
156
6
  <div class="bd-awardsflex-quote-card">
157
- ${this._renderBadge(award)}
158
- <p class="bd-awardsflex-quote-text">"${award.quote}"</p>
159
- ${award.source
160
- ? html `<p class="bd-awardsflex-quote-source">${award.source}${award.date ? html `, ${award.date}` : nothing}</p>`
161
- : nothing}
7
+ ${this._renderBadge(e)}
8
+ <p class="bd-awardsflex-quote-text">"${e.quote}"</p>
9
+ ${e.source?l`<p class="bd-awardsflex-quote-source">${e.source}${e.date?l`, ${e.date}`:u}</p>`:u}
162
10
  </div>
163
- `;
164
- }
165
- /* bd-pagination-dots, which runs the clock too, so the progress in the
166
- current pill and the change of slide are one thing. WCAG 2.2.2's way to
167
- stop it is the dots themselves: picking one stops autoplay for good. */
168
- _renderDots() {
169
- if (!this.carousel || this._slidesCount < 2)
170
- return nothing;
171
- return html `
11
+ `:u}_renderDots(){return!this.carousel||this._slidesCount<2?u:l`
172
12
  <bd-pagination-dots
173
13
  count=${this._slidesCount}
174
- current=${this._slide + 1}
14
+ current=${this._slide+1}
175
15
  label="Awards"
176
16
  ?autoplay=${this._autoplayOffered}
177
17
  delay=${this.autoplayDelay}
178
- ?held=${this._hovered || this._focusWithin}
179
- @bd-change=${(e) => { this._slide = e.detail.current - 1; }}
180
- @bd-toggle=${(e) => { this._live = e.detail.moving ? "off" : "polite"; }}
18
+ ?held=${this._hovered||this._focusWithin}
19
+ @bd-change=${e=>{this._slide=e.detail.current-1}}
20
+ @bd-toggle=${e=>{this._live=e.detail.moving?`off`:`polite`}}
181
21
  ></bd-pagination-dots>
182
- `;
183
- }
184
- /* The window is a scroll-snap scroller the browser drives -- a swipe, a
185
- trackpad and a wheel move it, and the dots follow (scroll-slides.ts). It
186
- used to be overflow: hidden around a track moved by an inline
187
- translateX, which nothing but the dots could move. */
188
- _renderCarousel() {
189
- return html `
22
+ `}_renderCarousel(){return l`
190
23
  <div
191
24
  class="bd-awardsflex-carousel-viewport"
192
- @mouseenter=${() => { this._hovered = true; }}
193
- @mouseleave=${() => { this._hovered = false; }}
194
- @focusin=${() => { this._focusWithin = true; }}
195
- @focusout=${(e) => { this._focusWithin = e.currentTarget.contains(e.relatedTarget); }}
25
+ @mouseenter=${()=>{this._hovered=!0}}
26
+ @mouseleave=${()=>{this._hovered=!1}}
27
+ @focusin=${()=>{this._focusWithin=!0}}
28
+ @focusout=${e=>{this._focusWithin=e.currentTarget.contains(e.relatedTarget)}}
196
29
  >
197
30
  <div class="bd-awardsflex-carousel-track" aria-live=${this._live}>
198
- ${this._groups.map((group, i) => html `
199
- <div class="bd-awardsflex-carousel-slide" ?inert=${i !== this._slide}>
200
- ${group.map((a) => this._renderQuoteCard(a))}
31
+ ${this._groups.map((e,t)=>l`
32
+ <div class="bd-awardsflex-carousel-slide" ?inert=${t!==this._slide}>
33
+ ${e.map(e=>this._renderQuoteCard(e))}
201
34
  </div>
202
35
  `)}
203
36
  </div>
204
37
  </div>
205
- `;
206
- }
207
- _renderLaurel() {
208
- // slot lets a consumer override the icon while bd-laurel-icon remains
209
- // the default, matching the reference design (centered above the headline)
210
- return html `
38
+ `}_renderLaurel(){return l`
211
39
  <div class="bd-awardsflex-laurel">
212
40
  <slot name="icon">
213
41
  <bd-laurel-icon width="80" height="64"></bd-laurel-icon>
214
42
  </slot>
215
43
  </div>
216
- `;
217
- }
218
- render() {
219
- const rootClasses = `bd-ensemble bd-awardsflex-root bd-awardsflex-root--${this.background} bd-awardsflex-root--${this.layout}`;
220
- return html `
221
- <section class="${rootClasses}" aria-label="Awards and recognition">
44
+ `}render(){let e=`bd-ensemble bd-awardsflex-root bd-awardsflex-root--${this.background} bd-awardsflex-root--${this.layout}`;return l`
45
+ <section class="${e}" aria-label="Awards and recognition">
222
46
  ${this._renderLaurel()}
223
- ${(this.headline || this.subtext)
224
- ? html `
47
+ ${this.headline||this.subtext?l`
225
48
  <div class="bd-awardsflex-text-group">
226
- ${this.headline
227
- ? html `<bd-h as="h3" class="bd-awardsflex-headline">${this.headline}</bd-h>`
228
- : nothing}
229
- ${this.subtext
230
- ? html `<bd-p variant="large" class="bd-awardsflex-subtext">${this.subtext}</bd-p>`
231
- : nothing}
49
+ ${this.headline?l`<bd-h as="h3" class="bd-awardsflex-headline">${this.headline}</bd-h>`:u}
50
+ ${this.subtext?l`<bd-p variant="large" class="bd-awardsflex-subtext">${this.subtext}</bd-p>`:u}
232
51
  </div>
233
- `
234
- : nothing}
52
+ `:u}
235
53
 
236
- ${this.layout === "quotes"
237
- ? html `
238
- ${this.carousel
239
- ? this._renderCarousel()
240
- : html `
54
+ ${this.layout===`quotes`?l`
55
+ ${this.carousel?this._renderCarousel():l`
241
56
  <div class="bd-awardsflex-quotes-row" role="list">
242
- ${this.badges.map((a) => this._renderQuoteCard(a))}
57
+ ${this.badges.map(e=>this._renderQuoteCard(e))}
243
58
  </div>
244
59
  `}
245
60
  ${this._renderDots()}
246
- `
247
- : html `
61
+ `:l`
248
62
  <div class="bd-awardsflex-badges-row" role="list">
249
- ${this.badges.map((a) => this._renderBadge(a))}
63
+ ${this.badges.map(e=>this._renderBadge(e))}
250
64
  </div>
251
65
  `}
252
66
  </section>
253
- `;
254
- }
255
- };
256
- __decorate([
257
- property({ type: String, reflect: true })
258
- ], AwardsFlex.prototype, "background", void 0);
259
- __decorate([
260
- property({ type: String })
261
- ], AwardsFlex.prototype, "layout", void 0);
262
- __decorate([
263
- property({ type: Boolean })
264
- ], AwardsFlex.prototype, "carousel", void 0);
265
- __decorate([
266
- property({ type: Boolean })
267
- ], AwardsFlex.prototype, "autoplay", void 0);
268
- __decorate([
269
- property({ type: Number, attribute: "autoplay-delay" })
270
- ], AwardsFlex.prototype, "autoplayDelay", void 0);
271
- __decorate([
272
- property({ type: String })
273
- ], AwardsFlex.prototype, "headline", void 0);
274
- __decorate([
275
- property({ type: String })
276
- ], AwardsFlex.prototype, "subtext", void 0);
277
- __decorate([
278
- property({ type: Array })
279
- ], AwardsFlex.prototype, "badges", void 0);
280
- __decorate([
281
- state()
282
- ], AwardsFlex.prototype, "_slide", void 0);
283
- __decorate([
284
- state()
285
- ], AwardsFlex.prototype, "_groupSize", void 0);
286
- __decorate([
287
- state()
288
- ], AwardsFlex.prototype, "_hovered", void 0);
289
- __decorate([
290
- state()
291
- ], AwardsFlex.prototype, "_focusWithin", void 0);
292
- __decorate([
293
- state()
294
- ], AwardsFlex.prototype, "_live", void 0);
295
- AwardsFlex = __decorate([
296
- defineElement("bd-awards-flex")
297
- ], AwardsFlex);
298
- export { AwardsFlex };
67
+ `}};r([d({type:String,reflect:!0})],h.prototype,`background`,void 0),r([d({type:String})],h.prototype,`layout`,void 0),r([d({type:Boolean})],h.prototype,`carousel`,void 0),r([d({type:Boolean})],h.prototype,`autoplay`,void 0),r([d({type:Number,attribute:`autoplay-delay`})],h.prototype,`autoplayDelay`,void 0),r([d({type:String})],h.prototype,`headline`,void 0),r([d({type:String})],h.prototype,`subtext`,void 0),r([d({type:Array})],h.prototype,`badges`,void 0),r([f()],h.prototype,`_slide`,void 0),r([f()],h.prototype,`_groupSize`,void 0),r([f()],h.prototype,`_hovered`,void 0),r([f()],h.prototype,`_focusWithin`,void 0),r([f()],h.prototype,`_live`,void 0),h=r([e(`bd-awards-flex`)],h);export{h as AwardsFlex};
299
68
  //# sourceMappingURL=awards-flex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"awards-flex.js","sourceRoot":"","sources":["../../../../src/components/awards/awards-flex.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,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property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport { MediaQueryController } from \"../shared/controller.media-query.ts\";\nimport { tokens } from \"../../tokens/tokens.ts\";\nimport \"../icons/av-comparatives-icon.ts\";\nimport \"../icons/best-brands-icon.ts\";\nimport \"../icons/laurel-icon.ts\";\nimport \"../icons/pc-mag-2024-icon.ts\";\nimport \"../icons/pc-mag-business-icon.ts\";\nimport \"../icons/pc-mag-icon.ts\";\nimport \"../icons/pc-mag-readers-icon.ts\";\nimport \"../icons/top-product-icon.ts\";\nimport \"../heading/heading.ts\";\nimport \"../paragraph/paragraph.ts\";\nimport \"../pagination-dots/pagination-dots.ts\";\nimport { awardsFlexCSS } from \"./awards-flex.css.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\nimport { below } from \"../shared/token-scales.ts\";\nimport { ScrollSlides } from \"./scroll-slides.ts\";\n\n/* How many quote cards one carousel slide holds: three side by side, and one\n below sm. Three used to stack in a column on a phone, so a slide was about\n 1065px tall with every card on screen at once, and the dots paged between\n two such stacks. One card a slide gives the phone a carousel again -- six\n awards are six slides and six dots -- at about half the height. Drawn in the\n foundation Figma file as Awards carousel, breakpoint=mobile. */\nconst GROUP_SIZE = 3;\nconst GROUP_SIZE_NARROW = 1;\n\ntype Background = \"white\" | \"tint\";\ntype Layout = \"compact\" | \"grid\" | \"quotes\";\ntype Live = \"off\" | \"polite\";\n\ninterface AwardsFlexBadge {\n id : string;\n label? : string;\n type? : string;\n icon : string;\n quote? : string;\n source?: string;\n date? : string;\n}\n\n@defineElement(\"bd-awards-flex\")\nexport class AwardsFlex extends LitElement {\n static styles = [tokens, ensembleCSS, awardsFlexCSS];\n\n @property({ type: String, reflect: true })\n background: Background = \"white\";\n @property({ type: String })\n layout: Layout = \"compact\";\n @property({ type: Boolean })\n carousel = false;\n @property({ type: Boolean })\n autoplay = false;\n @property({ type: Number, attribute: \"autoplay-delay\" })\n autoplayDelay = 4000;\n @property({ type: String })\n headline = \"\";\n @property({ type: String })\n subtext = \"\";\n @property({ type: Array })\n badges: AwardsFlexBadge[] = [];\n @state()\n _slide = 0;\n @state()\n _groupSize = GROUP_SIZE;\n /* The pointer or focus on the slides holds the autoplay -- a hold, which\n lifts by itself. Stopping it for good is the atom's: a visitor who picks\n a dot has chosen a slide, and it stays. */\n @state()\n _hovered = false;\n @state()\n _focusWithin = false;\n /* The slides' live region. Off while they change on their own, so a\n screen reader is not read a new set of quotes every few seconds; polite\n once they are still, so a change the visitor asks for is announced.\n bd-pagination-dots says which, through bd-toggle. */\n @state()\n _live: Live = \"polite\";\n\n _slides: ScrollSlides;\n\n constructor() {\n super();\n this._slides = new ScrollSlides(this, {\n scroller: \".bd-awardsflex-carousel-viewport\",\n onSlide : i => this._onScrolled(i)\n });\n /* Watched rather than read once: a slide is a layout, and a phone turned\n sideways crosses the breakpoint. */\n new MediaQueryController(this, below(\"sm\"), narrow => this._setGroupSize(narrow ? GROUP_SIZE_NARROW : GROUP_SIZE));\n }\n\n /* Changing the slide size keeps the visitor on the slide that holds the card\n they were looking at: its first card, re-paged. */\n _setGroupSize(size: number) {\n if (size === this._groupSize) return;\n const firstCard = this._slide * this._groupSize;\n this._groupSize = size;\n this._slide = Math.floor(firstCard / size);\n }\n\n updated(changed: PropertyValues<this>) {\n if (\n changed.has(\"autoplay\") ||\n changed.has(\"carousel\") ||\n changed.has(\"layout\") ||\n changed.has(\"badges\") ||\n changed.has(\"_groupSize\")\n ) {\n // if the badge set shrank, make sure the current slide index is still valid\n if (this._slide >= this._slidesCount) {\n this._slide = 0;\n }\n }\n // a dot, the clock or a re-paging chose a slide: bring it in\n if (changed.has(\"_slide\") || changed.has(\"_groupSize\")) this._slides.go(this._slide);\n }\n\n /* A visitor scrolled to another slide. That is a choice of slide, as a dot\n is, so it stops autoplay for good the way a dot does. */\n _onScrolled(index: number) {\n if (index === this._slide) return;\n this._slide = index;\n const dots = this.renderRoot.querySelector(\"bd-pagination-dots\");\n if (dots?.autoplay) dots.paused = true;\n }\n\n get _groups() {\n // chunk badges into slides of _groupSize for the carousel\n const groups: AwardsFlexBadge[][] = [];\n for (let i = 0; i < this.badges.length; i += this._groupSize) {\n groups.push(this.badges.slice(i, i + this._groupSize));\n }\n return groups;\n }\n\n get _slidesCount() {\n return this.layout === \"quotes\" ? this._groups.length : 0;\n }\n\n /** True when the carousel is able to move on its own. */\n get _autoplayOffered() {\n return this.autoplay && this.carousel && this.layout === \"quotes\" && this._slidesCount > 1;\n }\n\n _iconHeight() {\n if (this.layout === \"grid\") return 64;\n if (this.layout === \"quotes\") return 56;\n return 56;\n }\n\n _renderIcon(iconKey: string) {\n const h = this._iconHeight();\n\n switch (iconKey) {\n case \"pc-mag\":\n return html`<bd-pc-mag-icon height=${h}></bd-pc-mag-icon>`;\n case \"pc-mag-2024\":\n return html`<bd-pc-mag-2024-icon height=${h}></bd-pc-mag-2024-icon>`;\n case \"pc-mag-business\":\n return html`<bd-pc-mag-business-icon height=${h}></bd-pc-mag-business-icon>`;\n case \"pc-mag-readers\":\n return html`<bd-pc-mag-readers-icon height=${h}></bd-pc-mag-readers-icon>`;\n case \"av-comparatives\":\n return html`<bd-av-comparatives-icon height=${h}></bd-av-comparatives-icon>`;\n case \"best-brands\":\n return html`<bd-best-brands-icon height=${h}></bd-best-brands-icon>`;\n case \"top-product\":\n return html`<bd-top-product-icon height=${h}></bd-top-product-icon>`;\n default:\n return html`<span class=\"bd-awardsflex-badge-fallback\" aria-hidden=\"true\">?</span>`;\n }\n }\n\n _renderBadge(award: AwardsFlexBadge) {\n const classes = `bd-awardsflex-badge ${award.type === \"dark\" ? \"bd-awardsflex-badge--dark\" : \"\"}`;\n return html`\n <div class=\"${classes}\" data-award-id=\"${award.id}\" role=\"listitem\" aria-label=\"${award.label || \"\"}\">\n ${this._renderIcon(award.icon)}\n </div>\n `;\n }\n\n _renderQuoteCard(award: AwardsFlexBadge) {\n if (!award.quote) return nothing;\n return html`\n <div class=\"bd-awardsflex-quote-card\">\n ${this._renderBadge(award)}\n <p class=\"bd-awardsflex-quote-text\">\"${award.quote}\"</p>\n ${award.source\n ? html`<p class=\"bd-awardsflex-quote-source\">${award.source}${award.date ? html`, ${award.date}` : nothing}</p>`\n : nothing}\n </div>\n `;\n }\n\n /* bd-pagination-dots, which runs the clock too, so the progress in the\n current pill and the change of slide are one thing. WCAG 2.2.2's way to\n stop it is the dots themselves: picking one stops autoplay for good. */\n _renderDots() {\n if (!this.carousel || this._slidesCount < 2) return nothing;\n return html`\n <bd-pagination-dots\n count=${this._slidesCount}\n current=${this._slide + 1}\n label=\"Awards\"\n ?autoplay=${this._autoplayOffered}\n delay=${this.autoplayDelay}\n ?held=${this._hovered || this._focusWithin}\n @bd-change=${(e: CustomEvent<{ current: number }>) => { this._slide = e.detail.current - 1; }}\n @bd-toggle=${(e: CustomEvent<{ moving: boolean }>) => { this._live = e.detail.moving ? \"off\" : \"polite\"; }}\n ></bd-pagination-dots>\n `;\n }\n\n /* The window is a scroll-snap scroller the browser drives -- a swipe, a\n trackpad and a wheel move it, and the dots follow (scroll-slides.ts). It\n used to be overflow: hidden around a track moved by an inline\n translateX, which nothing but the dots could move. */\n _renderCarousel() {\n return html`\n <div\n class=\"bd-awardsflex-carousel-viewport\"\n @mouseenter=${() => { this._hovered = true; }}\n @mouseleave=${() => { this._hovered = false; }}\n @focusin=${() => { this._focusWithin = true; }}\n @focusout=${(e: FocusEvent) => { this._focusWithin = (e.currentTarget as HTMLElement).contains(e.relatedTarget as Node | null); }}\n >\n <div class=\"bd-awardsflex-carousel-track\" aria-live=${this._live}>\n ${this._groups.map(\n (group, i) => html`\n <div class=\"bd-awardsflex-carousel-slide\" ?inert=${i !== this._slide}>\n ${group.map((a) => this._renderQuoteCard(a))}\n </div>\n `\n )}\n </div>\n </div>\n `;\n }\n\n _renderLaurel() {\n // slot lets a consumer override the icon while bd-laurel-icon remains\n // the default, matching the reference design (centered above the headline)\n return html`\n <div class=\"bd-awardsflex-laurel\">\n <slot name=\"icon\">\n <bd-laurel-icon width=\"80\" height=\"64\"></bd-laurel-icon>\n </slot>\n </div>\n `;\n }\n\n render() {\n const rootClasses = `bd-ensemble bd-awardsflex-root bd-awardsflex-root--${this.background} bd-awardsflex-root--${this.layout}`;\n\n return html`\n <section class=\"${rootClasses}\" aria-label=\"Awards and recognition\">\n ${this._renderLaurel()}\n ${(this.headline || this.subtext)\n ? html`\n <div class=\"bd-awardsflex-text-group\">\n ${this.headline\n ? html`<bd-h as=\"h3\" class=\"bd-awardsflex-headline\">${this.headline}</bd-h>`\n : nothing}\n ${this.subtext\n ? html`<bd-p variant=\"large\" class=\"bd-awardsflex-subtext\">${this.subtext}</bd-p>`\n : nothing}\n </div>\n `\n : nothing}\n\n ${this.layout === \"quotes\"\n ? html`\n ${this.carousel\n ? this._renderCarousel()\n : html`\n <div class=\"bd-awardsflex-quotes-row\" role=\"list\">\n ${this.badges.map((a) => this._renderQuoteCard(a))}\n </div>\n `}\n ${this._renderDots()}\n `\n : html`\n <div class=\"bd-awardsflex-badges-row\" role=\"list\">\n ${this.badges.map((a) => this._renderBadge(a))}\n </div>\n `}\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-awards-flex\": AwardsFlex;\n }\n}\n"]}
1
+ {"version":3,"file":"awards-flex.js","names":["_decorate","__decorate","GROUP_SIZE","GROUP_SIZE_NARROW","AwardsFlex","LitElement","tokens","ensembleCSS","awardsFlexCSS","ScrollSlides","i","MediaQueryController","below","narrow","size","firstCard","changed","index","dots","groups","h","iconKey","classes","award","nothing","group","a","rootClasses","property","state","defineElement"],"sources":["../../../../src/components/awards/awards-flex.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { MediaQueryController } from \"#shared/controller.media-query.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/icons/av-comparatives-icon.ts\";\nimport \"#components/icons/best-brands-icon.ts\";\nimport \"#components/icons/laurel-icon.ts\";\nimport \"#components/icons/pc-mag-2024-icon.ts\";\nimport \"#components/icons/pc-mag-business-icon.ts\";\nimport \"#components/icons/pc-mag-icon.ts\";\nimport \"#components/icons/pc-mag-readers-icon.ts\";\nimport \"#components/icons/top-product-icon.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport \"#components/pagination-dots/pagination-dots.ts\";\nimport { awardsFlexCSS } from \"./awards-flex.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { below } from \"#shared/token-scales.ts\";\nimport { ScrollSlides } from \"./scroll-slides.ts\";\n\n/* How many quote cards one carousel slide holds: three side by side, and one\n below sm. Three used to stack in a column on a phone, so a slide was about\n 1065px tall with every card on screen at once, and the dots paged between\n two such stacks. One card a slide gives the phone a carousel again -- six\n awards are six slides and six dots -- at about half the height. Drawn in the\n foundation Figma file as Awards carousel, breakpoint=mobile. */\nconst GROUP_SIZE = 3;\nconst GROUP_SIZE_NARROW = 1;\n\ntype Background = \"white\" | \"tint\";\ntype Layout = \"compact\" | \"grid\" | \"quotes\";\ntype Live = \"off\" | \"polite\";\n\ninterface AwardsFlexBadge {\n id : string;\n label? : string;\n type? : string;\n icon : string;\n quote? : string;\n source?: string;\n date? : string;\n}\n\n@defineElement(\"bd-awards-flex\")\nexport class AwardsFlex extends LitElement {\n static styles = [tokens, ensembleCSS, awardsFlexCSS];\n\n @property({ type: String, reflect: true })\n background: Background = \"white\";\n @property({ type: String })\n layout: Layout = \"compact\";\n @property({ type: Boolean })\n carousel = false;\n @property({ type: Boolean })\n autoplay = false;\n @property({ type: Number, attribute: \"autoplay-delay\" })\n autoplayDelay = 4000;\n @property({ type: String })\n headline = \"\";\n @property({ type: String })\n subtext = \"\";\n @property({ type: Array })\n badges: AwardsFlexBadge[] = [];\n @state()\n _slide = 0;\n @state()\n _groupSize = GROUP_SIZE;\n /* The pointer or focus on the slides holds the autoplay -- a hold, which\n lifts by itself. Stopping it for good is the atom's: a visitor who picks\n a dot has chosen a slide, and it stays. */\n @state()\n _hovered = false;\n @state()\n _focusWithin = false;\n /* The slides' live region. Off while they change on their own, so a\n screen reader is not read a new set of quotes every few seconds; polite\n once they are still, so a change the visitor asks for is announced.\n bd-pagination-dots says which, through bd-toggle. */\n @state()\n _live: Live = \"polite\";\n\n _slides: ScrollSlides;\n\n constructor() {\n super();\n this._slides = new ScrollSlides(this, {\n scroller: \".bd-awardsflex-carousel-viewport\",\n onSlide : i => this._onScrolled(i)\n });\n /* Watched rather than read once: a slide is a layout, and a phone turned\n sideways crosses the breakpoint. */\n new MediaQueryController(this, below(\"sm\"), narrow => this._setGroupSize(narrow ? GROUP_SIZE_NARROW : GROUP_SIZE));\n }\n\n /* Changing the slide size keeps the visitor on the slide that holds the card\n they were looking at: its first card, re-paged. */\n _setGroupSize(size: number) {\n if (size === this._groupSize) return;\n const firstCard = this._slide * this._groupSize;\n this._groupSize = size;\n this._slide = Math.floor(firstCard / size);\n }\n\n updated(changed: PropertyValues<this>) {\n if (\n changed.has(\"autoplay\") ||\n changed.has(\"carousel\") ||\n changed.has(\"layout\") ||\n changed.has(\"badges\") ||\n changed.has(\"_groupSize\")\n ) {\n // if the badge set shrank, make sure the current slide index is still valid\n if (this._slide >= this._slidesCount) {\n this._slide = 0;\n }\n }\n // a dot, the clock or a re-paging chose a slide: bring it in\n if (changed.has(\"_slide\") || changed.has(\"_groupSize\")) this._slides.go(this._slide);\n }\n\n /* A visitor scrolled to another slide. That is a choice of slide, as a dot\n is, so it stops autoplay for good the way a dot does. */\n _onScrolled(index: number) {\n if (index === this._slide) return;\n this._slide = index;\n const dots = this.renderRoot.querySelector(\"bd-pagination-dots\");\n if (dots?.autoplay) dots.paused = true;\n }\n\n get _groups() {\n // chunk badges into slides of _groupSize for the carousel\n const groups: AwardsFlexBadge[][] = [];\n for (let i = 0; i < this.badges.length; i += this._groupSize) {\n groups.push(this.badges.slice(i, i + this._groupSize));\n }\n return groups;\n }\n\n get _slidesCount() {\n return this.layout === \"quotes\" ? this._groups.length : 0;\n }\n\n /** True when the carousel is able to move on its own. */\n get _autoplayOffered() {\n return this.autoplay && this.carousel && this.layout === \"quotes\" && this._slidesCount > 1;\n }\n\n _iconHeight() {\n if (this.layout === \"grid\") return 64;\n if (this.layout === \"quotes\") return 56;\n return 56;\n }\n\n _renderIcon(iconKey: string) {\n const h = this._iconHeight();\n\n switch (iconKey) {\n case \"pc-mag\":\n return html`<bd-pc-mag-icon height=${h}></bd-pc-mag-icon>`;\n case \"pc-mag-2024\":\n return html`<bd-pc-mag-2024-icon height=${h}></bd-pc-mag-2024-icon>`;\n case \"pc-mag-business\":\n return html`<bd-pc-mag-business-icon height=${h}></bd-pc-mag-business-icon>`;\n case \"pc-mag-readers\":\n return html`<bd-pc-mag-readers-icon height=${h}></bd-pc-mag-readers-icon>`;\n case \"av-comparatives\":\n return html`<bd-av-comparatives-icon height=${h}></bd-av-comparatives-icon>`;\n case \"best-brands\":\n return html`<bd-best-brands-icon height=${h}></bd-best-brands-icon>`;\n case \"top-product\":\n return html`<bd-top-product-icon height=${h}></bd-top-product-icon>`;\n default:\n return html`<span class=\"bd-awardsflex-badge-fallback\" aria-hidden=\"true\">?</span>`;\n }\n }\n\n _renderBadge(award: AwardsFlexBadge) {\n const classes = `bd-awardsflex-badge ${award.type === \"dark\" ? \"bd-awardsflex-badge--dark\" : \"\"}`;\n return html`\n <div class=\"${classes}\" data-award-id=\"${award.id}\" role=\"listitem\" aria-label=\"${award.label || \"\"}\">\n ${this._renderIcon(award.icon)}\n </div>\n `;\n }\n\n _renderQuoteCard(award: AwardsFlexBadge) {\n if (!award.quote) return nothing;\n return html`\n <div class=\"bd-awardsflex-quote-card\">\n ${this._renderBadge(award)}\n <p class=\"bd-awardsflex-quote-text\">\"${award.quote}\"</p>\n ${award.source\n ? html`<p class=\"bd-awardsflex-quote-source\">${award.source}${award.date ? html`, ${award.date}` : nothing}</p>`\n : nothing}\n </div>\n `;\n }\n\n /* bd-pagination-dots, which runs the clock too, so the progress in the\n current pill and the change of slide are one thing. WCAG 2.2.2's way to\n stop it is the dots themselves: picking one stops autoplay for good. */\n _renderDots() {\n if (!this.carousel || this._slidesCount < 2) return nothing;\n return html`\n <bd-pagination-dots\n count=${this._slidesCount}\n current=${this._slide + 1}\n label=\"Awards\"\n ?autoplay=${this._autoplayOffered}\n delay=${this.autoplayDelay}\n ?held=${this._hovered || this._focusWithin}\n @bd-change=${(e: CustomEvent<{ current: number }>) => { this._slide = e.detail.current - 1; }}\n @bd-toggle=${(e: CustomEvent<{ moving: boolean }>) => { this._live = e.detail.moving ? \"off\" : \"polite\"; }}\n ></bd-pagination-dots>\n `;\n }\n\n /* The window is a scroll-snap scroller the browser drives -- a swipe, a\n trackpad and a wheel move it, and the dots follow (scroll-slides.ts). It\n used to be overflow: hidden around a track moved by an inline\n translateX, which nothing but the dots could move. */\n _renderCarousel() {\n return html`\n <div\n class=\"bd-awardsflex-carousel-viewport\"\n @mouseenter=${() => { this._hovered = true; }}\n @mouseleave=${() => { this._hovered = false; }}\n @focusin=${() => { this._focusWithin = true; }}\n @focusout=${(e: FocusEvent) => { this._focusWithin = (e.currentTarget as HTMLElement).contains(e.relatedTarget as Node | null); }}\n >\n <div class=\"bd-awardsflex-carousel-track\" aria-live=${this._live}>\n ${this._groups.map(\n (group, i) => html`\n <div class=\"bd-awardsflex-carousel-slide\" ?inert=${i !== this._slide}>\n ${group.map((a) => this._renderQuoteCard(a))}\n </div>\n `\n )}\n </div>\n </div>\n `;\n }\n\n _renderLaurel() {\n // slot lets a consumer override the icon while bd-laurel-icon remains\n // the default, matching the reference design (centered above the headline)\n return html`\n <div class=\"bd-awardsflex-laurel\">\n <slot name=\"icon\">\n <bd-laurel-icon width=\"80\" height=\"64\"></bd-laurel-icon>\n </slot>\n </div>\n `;\n }\n\n render() {\n const rootClasses = `bd-ensemble bd-awardsflex-root bd-awardsflex-root--${this.background} bd-awardsflex-root--${this.layout}`;\n\n return html`\n <section class=\"${rootClasses}\" aria-label=\"Awards and recognition\">\n ${this._renderLaurel()}\n ${(this.headline || this.subtext)\n ? html`\n <div class=\"bd-awardsflex-text-group\">\n ${this.headline\n ? html`<bd-h as=\"h3\" class=\"bd-awardsflex-headline\">${this.headline}</bd-h>`\n : nothing}\n ${this.subtext\n ? html`<bd-p variant=\"large\" class=\"bd-awardsflex-subtext\">${this.subtext}</bd-p>`\n : nothing}\n </div>\n `\n : nothing}\n\n ${this.layout === \"quotes\"\n ? html`\n ${this.carousel\n ? this._renderCarousel()\n : html`\n <div class=\"bd-awardsflex-quotes-row\" role=\"list\">\n ${this.badges.map((a) => this._renderQuoteCard(a))}\n </div>\n `}\n ${this._renderDots()}\n `\n : html`\n <div class=\"bd-awardsflex-badges-row\" role=\"list\">\n ${this.badges.map((a) => this._renderBadge(a))}\n </div>\n `}\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-awards-flex\": AwardsFlex;\n }\n}\n"],"mappings":"A,y9BA2BA,IAAME,EAAa,EACbC,EAAoB,EAiBbC,EAAN,cAAyBC,CAAW,C,OACzB,KAAA,OAAA,CAACC,EAAQC,EAAaC,CAAa,C,CAsCnD,aAAc,CACZ,MAAM,EApCiB,KAAA,WAAA,QAER,KAAA,OAAA,UAEN,KAAA,SAAA,GAEA,KAAA,SAAA,GAEK,KAAA,cAAA,IAEL,KAAA,SAAA,GAED,KAAA,QAAA,GAEkB,KAAA,OAAA,CAAC,EAEpB,KAAA,OAAA,EAEI,KAAA,WAAAN,EAKF,KAAA,SAAA,GAEI,KAAA,aAAA,GAMD,KAAA,MAAA,SAMZ,KAAK,QAAU,IAAIO,EAAa,KAAM,CACpC,SAAU,mCACV,QAAU,GAAK,KAAK,YAAYC,CAAC,CACnC,CAAC,EAGD,IAAIC,EAAqB,KAAMC,EAAM,IAAI,EAAG,GAAU,KAAK,cAAcC,EAASV,EAAoBD,CAAU,CAAC,CACnH,CAIA,cAAc,EA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