@repobit/dex-system-design 3.0.1 → 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 +7 -0
  2. package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
  3. package/dist/src/components/accordion/accordion-bg.css.js +1 -288
  4. package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
  5. package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
  6. package/dist/src/components/accordion/accordion-bg.js +15 -210
  7. package/dist/src/components/accordion/accordion-bg.js.map +1 -1
  8. package/dist/src/components/accordion/accordion-keyboard.js +1 -89
  9. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  10. package/dist/src/components/accordion/accordion-panel.js +1 -22
  11. package/dist/src/components/accordion/accordion-panel.js.map +1 -1
  12. package/dist/src/components/accordion/accordion.css.js +1 -380
  13. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  14. package/dist/src/components/accordion/accordion.d.ts +7 -7
  15. package/dist/src/components/accordion/accordion.js +16 -138
  16. package/dist/src/components/accordion/accordion.js.map +1 -1
  17. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
  18. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  19. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
  20. package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
  21. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  22. package/dist/src/components/alert/alert.css.js +1 -217
  23. package/dist/src/components/alert/alert.css.js.map +1 -1
  24. package/dist/src/components/alert/alert.d.ts +4 -4
  25. package/dist/src/components/alert/alert.js +6 -110
  26. package/dist/src/components/alert/alert.js.map +1 -1
  27. package/dist/src/components/anchor/anchor-nav.css.js +1 -546
  28. package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
  29. package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
  30. package/dist/src/components/anchor/anchor-nav.js +23 -567
  31. package/dist/src/components/anchor/anchor-nav.js.map +1 -1
  32. package/dist/src/components/annotation/annotation.css.js +1 -64
  33. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  34. package/dist/src/components/annotation/annotation.d.ts +2 -2
  35. package/dist/src/components/annotation/annotation.js +7 -72
  36. package/dist/src/components/annotation/annotation.js.map +1 -1
  37. package/dist/src/components/audience-card/audience-card.css.js +1 -122
  38. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  39. package/dist/src/components/audience-card/audience-card.d.ts +2 -2
  40. package/dist/src/components/audience-card/audience-card.js +8 -83
  41. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  42. package/dist/src/components/avatar/avatar.css.js +1 -65
  43. package/dist/src/components/avatar/avatar.css.js.map +1 -1
  44. package/dist/src/components/avatar/avatar.d.ts +3 -3
  45. package/dist/src/components/avatar/avatar.js +6 -76
  46. package/dist/src/components/avatar/avatar.js.map +1 -1
  47. package/dist/src/components/awards/awards-flex.css.js +1 -273
  48. package/dist/src/components/awards/awards-flex.css.js.map +1 -1
  49. package/dist/src/components/awards/awards-flex.d.ts +12 -12
  50. package/dist/src/components/awards/awards-flex.js +33 -264
  51. package/dist/src/components/awards/awards-flex.js.map +1 -1
  52. package/dist/src/components/awards/awards-spotlight.css.js +1 -161
  53. package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
  54. package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
  55. package/dist/src/components/awards/awards-spotlight.js +24 -140
  56. package/dist/src/components/awards/awards-spotlight.js.map +1 -1
  57. package/dist/src/components/awards/awards.css.js +1 -401
  58. package/dist/src/components/awards/awards.css.js.map +1 -1
  59. package/dist/src/components/awards/awards.d.ts +13 -13
  60. package/dist/src/components/awards/awards.js +26 -179
  61. package/dist/src/components/awards/awards.js.map +1 -1
  62. package/dist/src/components/awards/scroll-slides.js +1 -131
  63. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  64. package/dist/src/components/back/back.css.js +1 -91
  65. package/dist/src/components/back/back.css.js.map +1 -1
  66. package/dist/src/components/back/back.d.ts +1 -1
  67. package/dist/src/components/back/back.js +8 -71
  68. package/dist/src/components/back/back.js.map +1 -1
  69. package/dist/src/components/badge/badge.css.js +1 -204
  70. package/dist/src/components/badge/badge.css.js.map +1 -1
  71. package/dist/src/components/badge/badge.d.ts +4 -4
  72. package/dist/src/components/badge/badge.js +2 -117
  73. package/dist/src/components/badge/badge.js.map +1 -1
  74. package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
  75. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  76. package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
  77. package/dist/src/components/bento-grid/bento-grid.js +10 -189
  78. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  79. package/dist/src/components/bento-grid/bento-item.css.js +1 -338
  80. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  81. package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
  82. package/dist/src/components/bento-grid/bento-item.js +10 -94
  83. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  84. package/dist/src/components/blockquote/blockquote.css.js +1 -54
  85. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  86. package/dist/src/components/blockquote/blockquote.d.ts +2 -2
  87. package/dist/src/components/blockquote/blockquote.js +1 -44
  88. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  89. package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
  90. package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
  91. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
  92. package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
  93. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  94. package/dist/src/components/button/button.css.js +1 -843
  95. package/dist/src/components/button/button.css.js.map +1 -1
  96. package/dist/src/components/button/button.d.ts +5 -5
  97. package/dist/src/components/button/button.js +18 -420
  98. package/dist/src/components/button/button.js.map +1 -1
  99. package/dist/src/components/caption/caption.css.js +1 -29
  100. package/dist/src/components/caption/caption.css.js.map +1 -1
  101. package/dist/src/components/caption/caption.d.ts +3 -3
  102. package/dist/src/components/caption/caption.js +2 -36
  103. package/dist/src/components/caption/caption.js.map +1 -1
  104. package/dist/src/components/card-features/card-features.css.js +1 -120
  105. package/dist/src/components/card-features/card-features.css.js.map +1 -1
  106. package/dist/src/components/card-features/card-features.d.ts +3 -3
  107. package/dist/src/components/card-features/card-features.js +12 -145
  108. package/dist/src/components/card-features/card-features.js.map +1 -1
  109. package/dist/src/components/cards/card.css.js +1 -369
  110. package/dist/src/components/cards/card.css.js.map +1 -1
  111. package/dist/src/components/cards/card.d.ts +3 -3
  112. package/dist/src/components/cards/card.js +21 -312
  113. package/dist/src/components/cards/card.js.map +1 -1
  114. package/dist/src/components/carousel/carousel.css.js +1 -261
  115. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  116. package/dist/src/components/carousel/carousel.d.ts +5 -5
  117. package/dist/src/components/carousel/carousel.js +13 -297
  118. package/dist/src/components/carousel/carousel.js.map +1 -1
  119. package/dist/src/components/checkbox/checkbox.css.js +1 -173
  120. package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
  121. package/dist/src/components/checkbox/checkbox.d.ts +2 -2
  122. package/dist/src/components/checkbox/checkbox.js +5 -138
  123. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  124. package/dist/src/components/code/code.css.js +1 -73
  125. package/dist/src/components/code/code.css.js.map +1 -1
  126. package/dist/src/components/code/code.d.ts +2 -2
  127. package/dist/src/components/code/code.js +4 -87
  128. package/dist/src/components/code/code.js.map +1 -1
  129. package/dist/src/components/compare/compare.css.js +1 -478
  130. package/dist/src/components/compare/compare.css.js.map +1 -1
  131. package/dist/src/components/compare/compare.d.ts +5 -5
  132. package/dist/src/components/compare/compare.js +23 -476
  133. package/dist/src/components/compare/compare.js.map +1 -1
  134. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
  135. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  136. package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
  137. package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
  138. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  139. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
  140. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  141. package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
  142. package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
  143. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  144. package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
  145. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  146. package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
  147. package/dist/src/components/cta-banner/cta-banner.js +8 -51
  148. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  149. package/dist/src/components/display/display.css.js +1 -95
  150. package/dist/src/components/display/display.css.js.map +1 -1
  151. package/dist/src/components/display/display.d.ts +2 -2
  152. package/dist/src/components/display/display.js +3 -84
  153. package/dist/src/components/display/display.js.map +1 -1
  154. package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
  155. package/dist/src/components/divider/divider-horizontal.js +4 -63
  156. package/dist/src/components/divider/divider-horizontal.js.map +1 -1
  157. package/dist/src/components/divider/divider-vertical.d.ts +2 -2
  158. package/dist/src/components/divider/divider-vertical.js +6 -61
  159. package/dist/src/components/divider/divider-vertical.js.map +1 -1
  160. package/dist/src/components/divider/divider.css.js +1 -20
  161. package/dist/src/components/divider/divider.css.js.map +1 -1
  162. package/dist/src/components/dropdown/dropdown.css.js +1 -121
  163. package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
  164. package/dist/src/components/dropdown/dropdown.d.ts +5 -5
  165. package/dist/src/components/dropdown/dropdown.js +17 -283
  166. package/dist/src/components/dropdown/dropdown.js.map +1 -1
  167. package/dist/src/components/features/features.css.js +1 -123
  168. package/dist/src/components/features/features.css.js.map +1 -1
  169. package/dist/src/components/features/features.d.ts +5 -5
  170. package/dist/src/components/features/features.js +11 -71
  171. package/dist/src/components/features/features.js.map +1 -1
  172. package/dist/src/components/features-tab/features-tab.css.js +1 -100
  173. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  174. package/dist/src/components/features-tab/features-tab.d.ts +5 -5
  175. package/dist/src/components/features-tab/features-tab.js +9 -70
  176. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  177. package/dist/src/components/fieldset/fieldset.css.js +1 -28
  178. package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
  179. package/dist/src/components/fieldset/fieldset.d.ts +2 -2
  180. package/dist/src/components/fieldset/fieldset.js +3 -31
  181. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  182. package/dist/src/components/footer/footer-images.js +5 -27
  183. package/dist/src/components/footer/footer-images.js.map +1 -1
  184. package/dist/src/components/footer/footer-links-group.css.js +1 -33
  185. package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
  186. package/dist/src/components/footer/footer-links-group.d.ts +3 -3
  187. package/dist/src/components/footer/footer-links-group.js +3 -32
  188. package/dist/src/components/footer/footer-links-group.js.map +1 -1
  189. package/dist/src/components/footer/footer-locale.js +1 -45
  190. package/dist/src/components/footer/footer-locale.js.map +1 -1
  191. package/dist/src/components/footer/footer-lp.d.ts +7 -7
  192. package/dist/src/components/footer/footer-lp.js +8 -121
  193. package/dist/src/components/footer/footer-lp.js.map +1 -1
  194. package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
  195. package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
  196. package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
  197. package/dist/src/components/footer/footer-nav-menu.js +3 -47
  198. package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
  199. package/dist/src/components/footer/footer.css.js +1 -664
  200. package/dist/src/components/footer/footer.css.js.map +1 -1
  201. package/dist/src/components/footer/footer.d.ts +13 -13
  202. package/dist/src/components/footer/footer.js +20 -305
  203. package/dist/src/components/footer/footer.js.map +1 -1
  204. package/dist/src/components/footer/localeMap.js +1 -1
  205. package/dist/src/components/footer/localeMap.js.map +1 -1
  206. package/dist/src/components/grid/grid.css.js +1 -78
  207. package/dist/src/components/grid/grid.css.js.map +1 -1
  208. package/dist/src/components/grid/grid.d.ts +2 -2
  209. package/dist/src/components/grid/grid.js +9 -126
  210. package/dist/src/components/grid/grid.js.map +1 -1
  211. package/dist/src/components/header/header-code.css.js +1 -369
  212. package/dist/src/components/header/header-code.css.js.map +1 -1
  213. package/dist/src/components/header/header-code.d.ts +4 -4
  214. package/dist/src/components/header/header-code.js +15 -163
  215. package/dist/src/components/header/header-code.js.map +1 -1
  216. package/dist/src/components/header/header.css.js +1 -757
  217. package/dist/src/components/header/header.css.js.map +1 -1
  218. package/dist/src/components/header/header.d.ts +7 -7
  219. package/dist/src/components/header/header.js +4 -212
  220. package/dist/src/components/header/header.js.map +1 -1
  221. package/dist/src/components/heading/heading.css.js +1 -89
  222. package/dist/src/components/heading/heading.css.js.map +1 -1
  223. package/dist/src/components/heading/heading.d.ts +2 -2
  224. package/dist/src/components/heading/heading.js +1 -108
  225. package/dist/src/components/heading/heading.js.map +1 -1
  226. package/dist/src/components/help-text/help-text.css.js +1 -19
  227. package/dist/src/components/help-text/help-text.css.js.map +1 -1
  228. package/dist/src/components/help-text/help-text.d.ts +2 -2
  229. package/dist/src/components/help-text/help-text.js +3 -31
  230. package/dist/src/components/help-text/help-text.js.map +1 -1
  231. package/dist/src/components/hero/hero.css.js +1 -362
  232. package/dist/src/components/hero/hero.css.js.map +1 -1
  233. package/dist/src/components/hero/hero.d.ts +3 -3
  234. package/dist/src/components/hero/hero.js +12 -164
  235. package/dist/src/components/hero/hero.js.map +1 -1
  236. package/dist/src/components/highlight/highlight.css.js +1 -175
  237. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  238. package/dist/src/components/highlight/highlight.d.ts +3 -3
  239. package/dist/src/components/highlight/highlight.js +4 -115
  240. package/dist/src/components/highlight/highlight.js.map +1 -1
  241. package/dist/src/components/icons/analysis-icon.d.ts +1 -1
  242. package/dist/src/components/icons/analysis-icon.js +2 -20
  243. package/dist/src/components/icons/analysis-icon.js.map +1 -1
  244. package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
  245. package/dist/src/components/icons/arrow-down-icon.js +2 -20
  246. package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
  247. package/dist/src/components/icons/arrow-icon.d.ts +1 -1
  248. package/dist/src/components/icons/arrow-icon.js +2 -48
  249. package/dist/src/components/icons/arrow-icon.js.map +1 -1
  250. package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
  251. package/dist/src/components/icons/arrow-right-icon.js +2 -45
  252. package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
  253. package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
  254. package/dist/src/components/icons/arrow-up-icon.js +2 -33
  255. package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
  256. package/dist/src/components/icons/av-comparatives-icon.js +2 -31
  257. package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
  258. package/dist/src/components/icons/bd-ai-icon.js +2 -31
  259. package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
  260. package/dist/src/components/icons/best-brands-icon.js +2 -31
  261. package/dist/src/components/icons/best-brands-icon.js.map +1 -1
  262. package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
  263. package/dist/src/components/icons/brand-signature-icon.js +2 -46
  264. package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
  265. package/dist/src/components/icons/check-icon.d.ts +1 -1
  266. package/dist/src/components/icons/check-icon.js +2 -31
  267. package/dist/src/components/icons/check-icon.js.map +1 -1
  268. package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
  269. package/dist/src/components/icons/circle-info-icon.js +2 -35
  270. package/dist/src/components/icons/circle-info-icon.js.map +1 -1
  271. package/dist/src/components/icons/close-icon.d.ts +1 -1
  272. package/dist/src/components/icons/close-icon.js +2 -20
  273. package/dist/src/components/icons/close-icon.js.map +1 -1
  274. package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
  275. package/dist/src/components/icons/enterprise-icon.js +2 -22
  276. package/dist/src/components/icons/enterprise-icon.js.map +1 -1
  277. package/dist/src/components/icons/family-icon.d.ts +1 -1
  278. package/dist/src/components/icons/family-icon.js +2 -20
  279. package/dist/src/components/icons/family-icon.js.map +1 -1
  280. package/dist/src/components/icons/globe-icon.d.ts +1 -1
  281. package/dist/src/components/icons/globe-icon.js +2 -20
  282. package/dist/src/components/icons/globe-icon.js.map +1 -1
  283. package/dist/src/components/icons/guide-icon.d.ts +1 -1
  284. package/dist/src/components/icons/guide-icon.js +2 -20
  285. package/dist/src/components/icons/guide-icon.js.map +1 -1
  286. package/dist/src/components/icons/home-icon.d.ts +1 -1
  287. package/dist/src/components/icons/home-icon.js +2 -22
  288. package/dist/src/components/icons/home-icon.js.map +1 -1
  289. package/dist/src/components/icons/icon-element.js +1 -162
  290. package/dist/src/components/icons/icon-element.js.map +1 -1
  291. package/dist/src/components/icons/icons.d.ts +23 -23
  292. package/dist/src/components/icons/icons.js +1 -42
  293. package/dist/src/components/icons/individual-icon.d.ts +1 -1
  294. package/dist/src/components/icons/individual-icon.js +2 -20
  295. package/dist/src/components/icons/individual-icon.js.map +1 -1
  296. package/dist/src/components/icons/laurel-icon.d.ts +1 -1
  297. package/dist/src/components/icons/laurel-icon.js +2 -24
  298. package/dist/src/components/icons/laurel-icon.js.map +1 -1
  299. package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
  300. package/dist/src/components/icons/machine-learning-icon.js +2 -20
  301. package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
  302. package/dist/src/components/icons/marks.d.ts +9 -9
  303. package/dist/src/components/icons/marks.js +1 -41
  304. package/dist/src/components/icons/minus-icon.d.ts +1 -1
  305. package/dist/src/components/icons/minus-icon.js +2 -19
  306. package/dist/src/components/icons/minus-icon.js.map +1 -1
  307. package/dist/src/components/icons/missing-icon.d.ts +1 -1
  308. package/dist/src/components/icons/missing-icon.js +3 -53
  309. package/dist/src/components/icons/missing-icon.js.map +1 -1
  310. package/dist/src/components/icons/pause-icon.d.ts +1 -1
  311. package/dist/src/components/icons/pause-icon.js +2 -22
  312. package/dist/src/components/icons/pause-icon.js.map +1 -1
  313. package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
  314. package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
  315. package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
  316. package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
  317. package/dist/src/components/icons/pc-mag-icon.js +2 -31
  318. package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
  319. package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
  320. package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
  321. package/dist/src/components/icons/play-icon.d.ts +1 -1
  322. package/dist/src/components/icons/play-icon.js +2 -22
  323. package/dist/src/components/icons/play-icon.js.map +1 -1
  324. package/dist/src/components/icons/plus-icon.d.ts +1 -1
  325. package/dist/src/components/icons/plus-icon.js +2 -19
  326. package/dist/src/components/icons/plus-icon.js.map +1 -1
  327. package/dist/src/components/icons/quote-icon.d.ts +1 -1
  328. package/dist/src/components/icons/quote-icon.js +2 -30
  329. package/dist/src/components/icons/quote-icon.js.map +1 -1
  330. package/dist/src/components/icons/small-business-icon.d.ts +1 -1
  331. package/dist/src/components/icons/small-business-icon.js +2 -22
  332. package/dist/src/components/icons/small-business-icon.js.map +1 -1
  333. package/dist/src/components/icons/top-product-icon.js +2 -31
  334. package/dist/src/components/icons/top-product-icon.js.map +1 -1
  335. package/dist/src/components/image/image.css.js +1 -106
  336. package/dist/src/components/image/image.css.js.map +1 -1
  337. package/dist/src/components/image/image.d.ts +2 -2
  338. package/dist/src/components/image/image.js +10 -115
  339. package/dist/src/components/image/image.js.map +1 -1
  340. package/dist/src/components/input/input-clipboard.css.js +1 -93
  341. package/dist/src/components/input/input-clipboard.css.js.map +1 -1
  342. package/dist/src/components/input/input-clipboard.d.ts +5 -5
  343. package/dist/src/components/input/input-clipboard.js +20 -257
  344. package/dist/src/components/input/input-clipboard.js.map +1 -1
  345. package/dist/src/components/input/input.css.js +1 -9
  346. package/dist/src/components/input/input.css.js.map +1 -1
  347. package/dist/src/components/input/input.d.ts +4 -4
  348. package/dist/src/components/input/input.js +19 -202
  349. package/dist/src/components/input/input.js.map +1 -1
  350. package/dist/src/components/install-options/install-options.css.js +1 -308
  351. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  352. package/dist/src/components/install-options/install-options.d.ts +4 -4
  353. package/dist/src/components/install-options/install-options.js +28 -159
  354. package/dist/src/components/install-options/install-options.js.map +1 -1
  355. package/dist/src/components/label/label.css.js +1 -33
  356. package/dist/src/components/label/label.css.js.map +1 -1
  357. package/dist/src/components/label/label.d.ts +3 -3
  358. package/dist/src/components/label/label.js +3 -135
  359. package/dist/src/components/label/label.js.map +1 -1
  360. package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
  361. package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
  362. package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
  363. package/dist/src/components/light-carousel/light-carousel.js +16 -181
  364. package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
  365. package/dist/src/components/link/link.css.js +1 -288
  366. package/dist/src/components/link/link.css.js.map +1 -1
  367. package/dist/src/components/link/link.d.ts +3 -3
  368. package/dist/src/components/link/link.js +6 -233
  369. package/dist/src/components/link/link.js.map +1 -1
  370. package/dist/src/components/list/list-item/list-item.css.js +1 -167
  371. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  372. package/dist/src/components/list/list-item/list-item.d.ts +3 -3
  373. package/dist/src/components/list/list-item/list-item.js +3 -122
  374. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  375. package/dist/src/components/list/list.css.js +1 -180
  376. package/dist/src/components/list/list.css.js.map +1 -1
  377. package/dist/src/components/list/list.d.ts +1 -1
  378. package/dist/src/components/list/list.js +5 -82
  379. package/dist/src/components/list/list.js.map +1 -1
  380. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
  381. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  382. package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
  383. package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
  384. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  385. package/dist/src/components/modal/modal.css.js +1 -203
  386. package/dist/src/components/modal/modal.css.js.map +1 -1
  387. package/dist/src/components/modal/modal.d.ts +3 -3
  388. package/dist/src/components/modal/modal.js +3 -131
  389. package/dist/src/components/modal/modal.js.map +1 -1
  390. package/dist/src/components/motion-art/motion-art.d.ts +1 -1
  391. package/dist/src/components/motion-art/motion-art.js +1 -114
  392. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  393. package/dist/src/components/overview/overview.css.js +1 -125
  394. package/dist/src/components/overview/overview.css.js.map +1 -1
  395. package/dist/src/components/overview/overview.d.ts +2 -2
  396. package/dist/src/components/overview/overview.js +9 -50
  397. package/dist/src/components/overview/overview.js.map +1 -1
  398. package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
  399. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  400. package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
  401. package/dist/src/components/page-switcher/page-switcher.js +6 -62
  402. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  403. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
  404. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  405. package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
  406. package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
  407. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  408. package/dist/src/components/paragraph/paragraph.css.js +1 -101
  409. package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
  410. package/dist/src/components/paragraph/paragraph.d.ts +2 -2
  411. package/dist/src/components/paragraph/paragraph.js +3 -119
  412. package/dist/src/components/paragraph/paragraph.js.map +1 -1
  413. package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
  414. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  415. package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
  416. package/dist/src/components/partner-banner/partner-banner.js +6 -81
  417. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  418. package/dist/src/components/picture/picture.css.js +1 -208
  419. package/dist/src/components/picture/picture.css.js.map +1 -1
  420. package/dist/src/components/picture/picture.d.ts +2 -2
  421. package/dist/src/components/picture/picture.js +14 -186
  422. package/dist/src/components/picture/picture.js.map +1 -1
  423. package/dist/src/components/post-card/post-card.css.js +1 -149
  424. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  425. package/dist/src/components/post-card/post-card.d.ts +2 -2
  426. package/dist/src/components/post-card/post-card.js +5 -97
  427. package/dist/src/components/post-card/post-card.js.map +1 -1
  428. package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
  429. package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
  430. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
  431. package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
  432. package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
  433. package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
  434. package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
  435. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
  436. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
  437. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
  438. package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
  439. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
  440. package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
  441. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
  442. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
  443. package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
  444. package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
  445. package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
  446. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
  447. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
  448. package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
  449. package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
  450. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
  451. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
  452. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
  453. package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
  454. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
  455. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
  456. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
  457. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
  458. package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
  459. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
  460. package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
  461. package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
  462. package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
  463. package/dist/src/components/pricing-cards/pricing-card.js +53 -639
  464. package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
  465. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
  466. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
  467. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
  468. package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
  469. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
  470. package/dist/src/components/process-steps/process-steps.css.js +1 -106
  471. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  472. package/dist/src/components/process-steps/process-steps.d.ts +5 -5
  473. package/dist/src/components/process-steps/process-steps.js +10 -78
  474. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  475. package/dist/src/components/progress/progress.css.js +1 -123
  476. package/dist/src/components/progress/progress.css.js.map +1 -1
  477. package/dist/src/components/progress/progress.d.ts +2 -2
  478. package/dist/src/components/progress/progress.js +6 -72
  479. package/dist/src/components/progress/progress.js.map +1 -1
  480. package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
  481. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  482. package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
  483. package/dist/src/components/quick-answer/quick-answer.js +9 -49
  484. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  485. package/dist/src/components/radio/radio-group.css.js +1 -41
  486. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  487. package/dist/src/components/radio/radio-group.d.ts +1 -1
  488. package/dist/src/components/radio/radio-group.js +5 -92
  489. package/dist/src/components/radio/radio-group.js.map +1 -1
  490. package/dist/src/components/radio/radio.css.js +1 -193
  491. package/dist/src/components/radio/radio.css.js.map +1 -1
  492. package/dist/src/components/radio/radio.d.ts +4 -4
  493. package/dist/src/components/radio/radio.js +6 -263
  494. package/dist/src/components/radio/radio.js.map +1 -1
  495. package/dist/src/components/radio/toggle-radio.d.ts +2 -2
  496. package/dist/src/components/radio/toggle-radio.js +3 -39
  497. package/dist/src/components/radio/toggle-radio.js.map +1 -1
  498. package/dist/src/components/review/review-grid.css.js +1 -46
  499. package/dist/src/components/review/review-grid.css.js.map +1 -1
  500. package/dist/src/components/review/review-grid.d.ts +2 -2
  501. package/dist/src/components/review/review-grid.js +4 -49
  502. package/dist/src/components/review/review-grid.js.map +1 -1
  503. package/dist/src/components/review/review.css.js +1 -54
  504. package/dist/src/components/review/review.css.js.map +1 -1
  505. package/dist/src/components/review/review.d.ts +2 -2
  506. package/dist/src/components/review/review.js +2 -59
  507. package/dist/src/components/review/review.js.map +1 -1
  508. package/dist/src/components/section/section.css.js +1 -37
  509. package/dist/src/components/section/section.css.js.map +1 -1
  510. package/dist/src/components/section/section.d.ts +1 -1
  511. package/dist/src/components/section/section.js +1 -50
  512. package/dist/src/components/section/section.js.map +1 -1
  513. package/dist/src/components/section-header/section-header.css.js +1 -99
  514. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  515. package/dist/src/components/section-header/section-header.d.ts +2 -2
  516. package/dist/src/components/section-header/section-header.js +4 -85
  517. package/dist/src/components/section-header/section-header.js.map +1 -1
  518. package/dist/src/components/shared/announcer.d.ts +1 -1
  519. package/dist/src/components/shared/announcer.js +1 -34
  520. package/dist/src/components/shared/announcer.js.map +1 -1
  521. package/dist/src/components/shared/controller.media-query.d.ts +1 -1
  522. package/dist/src/components/shared/controller.media-query.js +1 -57
  523. package/dist/src/components/shared/controller.media-query.js.map +1 -1
  524. package/dist/src/components/shared/define-element.js +1 -16
  525. package/dist/src/components/shared/define-element.js.map +1 -1
  526. package/dist/src/components/shared/ensemble.css.js +1 -101
  527. package/dist/src/components/shared/ensemble.css.js.map +1 -1
  528. package/dist/src/components/shared/events.js +0 -13
  529. package/dist/src/components/shared/fill-width.css.js +2 -27
  530. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  531. package/dist/src/components/shared/form-control.d.ts +1 -1
  532. package/dist/src/components/shared/form-control.js +1 -198
  533. package/dist/src/components/shared/form-control.js.map +1 -1
  534. package/dist/src/components/shared/form-field.css.js +1 -258
  535. package/dist/src/components/shared/form-field.css.js.map +1 -1
  536. package/dist/src/components/shared/prop-vocabulary.js +1 -49
  537. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  538. package/dist/src/components/shared/token-scales.js +1 -351
  539. package/dist/src/components/shared/token-scales.js.map +1 -1
  540. package/dist/src/components/skeleton/skeleton.css.js +1 -32
  541. package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
  542. package/dist/src/components/skeleton/skeleton.d.ts +2 -2
  543. package/dist/src/components/skeleton/skeleton.js +4 -36
  544. package/dist/src/components/skeleton/skeleton.js.map +1 -1
  545. package/dist/src/components/spinner/spinner.css.js +1 -87
  546. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  547. package/dist/src/components/spinner/spinner.d.ts +3 -3
  548. package/dist/src/components/spinner/spinner.js +3 -69
  549. package/dist/src/components/spinner/spinner.js.map +1 -1
  550. package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
  551. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
  552. package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
  553. package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
  554. package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
  555. package/dist/src/components/stat/stat-highlight.js +6 -82
  556. package/dist/src/components/stat/stat-highlight.js.map +1 -1
  557. package/dist/src/components/stat/stat-tile.js +5 -52
  558. package/dist/src/components/stat/stat-tile.js.map +1 -1
  559. package/dist/src/components/stat/stat.css.js +1 -145
  560. package/dist/src/components/stat/stat.css.js.map +1 -1
  561. package/dist/src/components/stat/stat.d.ts +2 -2
  562. package/dist/src/components/stat/stat.js +1 -3
  563. package/dist/src/components/switch/switch.css.js +1 -175
  564. package/dist/src/components/switch/switch.css.js.map +1 -1
  565. package/dist/src/components/switch/switch.d.ts +4 -4
  566. package/dist/src/components/switch/switch.js +4 -99
  567. package/dist/src/components/switch/switch.js.map +1 -1
  568. package/dist/src/components/tab-list/tab-list.css.js +1 -289
  569. package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
  570. package/dist/src/components/tab-list/tab-list.d.ts +1 -1
  571. package/dist/src/components/tab-list/tab-list.js +13 -191
  572. package/dist/src/components/tab-list/tab-list.js.map +1 -1
  573. package/dist/src/components/tabs/tabs.css.js +1 -77
  574. package/dist/src/components/tabs/tabs.css.js.map +1 -1
  575. package/dist/src/components/tabs/tabs.d.ts +6 -6
  576. package/dist/src/components/tabs/tabs.js +8 -220
  577. package/dist/src/components/tabs/tabs.js.map +1 -1
  578. package/dist/src/components/tag/tag.css.js +1 -52
  579. package/dist/src/components/tag/tag.css.js.map +1 -1
  580. package/dist/src/components/tag/tag.d.ts +2 -2
  581. package/dist/src/components/tag/tag.js +2 -37
  582. package/dist/src/components/tag/tag.js.map +1 -1
  583. package/dist/src/components/terminal/terminal-cursor.js +1 -65
  584. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  585. package/dist/src/components/terminal/terminal-message.css.js +1 -409
  586. package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
  587. package/dist/src/components/terminal/terminal-message.d.ts +5 -5
  588. package/dist/src/components/terminal/terminal-message.js +28 -183
  589. package/dist/src/components/terminal/terminal-message.js.map +1 -1
  590. package/dist/src/components/termsOfUse/terms.css.js +1 -55
  591. package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
  592. package/dist/src/components/termsOfUse/terms.d.ts +5 -5
  593. package/dist/src/components/termsOfUse/terms.js +9 -82
  594. package/dist/src/components/termsOfUse/terms.js.map +1 -1
  595. package/dist/src/components/textarea/textarea.css.js +1 -49
  596. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  597. package/dist/src/components/textarea/textarea.d.ts +5 -5
  598. package/dist/src/components/textarea/textarea.js +15 -160
  599. package/dist/src/components/textarea/textarea.js.map +1 -1
  600. package/dist/src/components/tooltip/tooltip.css.js +1 -96
  601. package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
  602. package/dist/src/components/tooltip/tooltip.d.ts +2 -2
  603. package/dist/src/components/tooltip/tooltip.js +5 -285
  604. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  605. package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
  606. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  607. package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
  608. package/dist/src/components/trust-panel/trust-panel.js +25 -104
  609. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  610. package/dist/src/components/video/video.css.js +1 -20
  611. package/dist/src/components/video/video.css.js.map +1 -1
  612. package/dist/src/components/video/video.d.ts +2 -2
  613. package/dist/src/components/video/video.js +5 -88
  614. package/dist/src/components/video/video.js.map +1 -1
  615. package/dist/src/components/video-player/video-player.css.js +1 -167
  616. package/dist/src/components/video-player/video-player.css.js.map +1 -1
  617. package/dist/src/components/video-player/video-player.d.ts +2 -2
  618. package/dist/src/components/video-player/video-player.js +15 -150
  619. package/dist/src/components/video-player/video-player.js.map +1 -1
  620. package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
  621. package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
  622. package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
  623. package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
  624. package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
  625. package/dist/src/tokens/brand-layer.js +8 -162
  626. package/dist/src/tokens/brand-layer.js.map +1 -1
  627. package/dist/src/tokens/dark-derivation.js +1 -325
  628. package/dist/src/tokens/dark-derivation.js.map +1 -1
  629. package/dist/src/tokens/dark-findings.d.ts +1 -1
  630. package/dist/src/tokens/dark-findings.js +1 -204
  631. package/dist/src/tokens/dark-findings.js.map +1 -1
  632. package/dist/src/tokens/fonts.css +1 -166
  633. package/dist/src/tokens/layout.css +1 -61
  634. package/dist/src/tokens/story-chrome.js +27 -221
  635. package/dist/src/tokens/story-chrome.js.map +1 -1
  636. package/dist/src/tokens/themes/bitdefender.js +1 -30
  637. package/dist/src/tokens/themes/bitdefender.js.map +1 -1
  638. package/dist/src/tokens/themes/contract.js +1 -7
  639. package/dist/src/tokens/themes/contract.js.map +1 -1
  640. package/dist/src/tokens/themes/index.js +1 -39
  641. package/dist/src/tokens/themes/index.js.map +1 -1
  642. package/dist/src/tokens/token-map.js +1 -236
  643. package/dist/src/tokens/token-map.js.map +1 -1
  644. package/dist/src/tokens/token-purposes.js +1 -259
  645. package/dist/src/tokens/token-purposes.js.map +1 -1
  646. package/dist/src/tokens/tokens.css +1 -1809
  647. package/dist/src/tokens/tokens.js +1 -1865
  648. package/dist/src/tokens/tokens.js.map +1 -1
  649. package/dist/src/tokens/type-ceiling-words.js +1 -293
  650. package/dist/src/tokens/type-ceiling-words.js.map +1 -1
  651. package/package.json +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,479 +1,2 @@
1
- import { css, unsafeCSS } from "lit";
2
- import { below, readAs } from "../shared/token-scales.js";
3
- export default css `
4
-
5
- :host(bd-compare-section) {
6
- display: block;
7
- /* The section is the container its narrow layout reads -- one column of
8
- cards, the horizontal card stacked, the type a step down -- where it read
9
- the screen. Across the page the section is as wide as the screen, so
10
- nothing moves there. width: 100% because a size container contributes
11
- nothing to its own intrinsic width. */
12
- container-type: inline-size;
13
- width: 100%;
14
- box-sizing: border-box;
15
-
16
- /* The brand fill and the ink that belongs to it. theme-green and theme-red
17
- adopted --status-*-fill / --status-*-on-fill below with the argument that a
18
- saturated fill carrying a label is exactly that pair's responsibility; the
19
- default bar IS that shape and the migration skipped it, so it kept the
20
- primitives. Value-identical -- --status-brand-fill is blue-500 and
21
- --status-brand-on-fill is neutral-0 -- and the label measures 4.53:1 here,
22
- which passes 4.5:1 with almost nothing spare. Worth knowing before anyone
23
- retunes blue-500: green-500 and red-500 both failed this same test. */
24
- --cs-bar-primary-fg: var(--status-brand-on-fill);
25
- --cs-bar-primary-bg: var(--status-brand-fill);
26
- /* no role: the competitor bar is a resting fill. The three roles at
27
- neutral-100 are a state (surface-muted), a disabled control
28
- (surface-disabled) and a surface in the neutral status family, whose FILL
29
- is neutral-900 -- so the family that matches on job does not match on
30
- value, and the ones that match on value do not match on job. */
31
- --cs-bar-secondary-bg: var(--color-neutral-100);
32
- --cs-bar-track-bg: transparent;
33
- --cs-bar-track-border: var(--color-border-subtle);
34
- --cs-bar-height: var(--dimension-48);
35
- --cs-gap: var(--spacing-32);
36
-
37
- /* The section's own text, which is the only text that sits on the page's
38
- ground rather than on a card. .theme-dark recoloured the bars and the icon
39
- and stopped there, so on a dark ground the section title kept
40
- --color-text-primary and rendered at 1.05:1 -- a documented story whose
41
- heading was invisible.
42
-
43
- Deliberately section-scoped. .card sets its own --color-surface-container
44
- and stays light under .theme-dark, so card titles, descriptions, footnotes
45
- and bar labels must keep their light-surface roles; inverting those turned
46
- white text onto a light card at 1.04:1 when it was tried. This is a
47
- component-context fix, not a theme architecture. */
48
- --cs-section-text: var(--color-text-primary);
49
- }
50
-
51
- :host(compare-card) {
52
- display: block;
53
- height: 100%;
54
- }
55
-
56
- :host(compare-bar) {
57
- display: block;
58
- width: 100%;
59
- }
60
-
61
- .cs-sr-only {
62
- position: absolute;
63
- width: 1px;
64
- height: 1px;
65
- padding: 0;
66
- margin: -1px;
67
- overflow: hidden;
68
- clip-path: inset(50%);
69
- white-space: nowrap;
70
- border: 0;
71
- }
72
-
73
- .cs-section {
74
- background: transparent;
75
- padding-block: var(--spacing-0);
76
- box-sizing: border-box;
77
- }
78
-
79
- .cs-heading {
80
- text-align: center;
81
- /* not the column: a centred heading measure, one grid step narrower than the page */
82
- max-width: var(--grid-container-max-md);
83
- margin: 0 auto var(--spacing-40);
84
- }
85
-
86
- .cs-title { margin: 0 0 var(--spacing-8); color: var(--cs-section-text); }
87
- .cs-subtitle { margin: 0; color: var(--cs-section-text); }
88
-
89
- .cs-grid {
90
- display: grid;
91
- grid-template-columns: repeat(var(--_cols, 2), minmax(0, 598px));
92
- gap: var(--cs-gap);
93
- margin: 0 auto;
94
- justify-content: center;
95
- align-items: stretch;
96
- }
97
-
98
- @container ${unsafeCSS(below('md'))} {
99
- .cs-grid {
100
- grid-template-columns: 1fr;
101
- }
102
- }
103
-
104
- .cs-grid > ::slotted(compare-card[layout="horizontal"]) {
105
- grid-column: 1 / -1;
106
- }
107
-
108
- /* A card's three parts -- the header, the bars, the footnote -- are three of
109
- the section's rows, so the bars start on one line across a row of cards
110
- however many lines a title or a description wraps to. The card spans them
111
- as a subgrid and so does its .card; inside a card they are 24 apart, the
112
- card's own gap, while rows of cards keep --cs-gap between them. */
113
- .cs-grid > ::slotted(compare-card:not([layout="horizontal"])) {
114
- display: grid;
115
- grid-row: span 3;
116
- grid-template-rows: subgrid;
117
- row-gap: var(--spacing-24);
118
- }
119
-
120
- .card {
121
- background: var(--color-surface-container);
122
- /* --radius-2xl, the established card-family corner. This card sat at
123
- --radius-3xl and was otherwise identical to the family: the same
124
- --color-surface-container, the same 32px inset, no resting elevation and
125
- no card-level interaction. P5G could find no responsibility, affordance or
126
- recorded decision behind the extra 8px -- unlike the carousel item, whose
127
- 24px corner goes with a 2px border and real drag/modal behaviour and is a
128
- recorded open question. */
129
- border-radius: var(--card-radius);
130
- padding: var(--card-padding);
131
- /* In a section, the card's rows are the section's (see above); on its own
132
- the subgrid has no grid to inherit from, and the parts stack in rows of
133
- their own, 24 apart either way. */
134
- display: grid;
135
- grid-row: 1 / -1;
136
- grid-template-rows: subgrid;
137
- row-gap: var(--spacing-24);
138
- align-content: start;
139
- box-sizing: border-box;
140
- height: 100%;
141
- }
142
-
143
- .card-header {
144
- display: flex;
145
- flex-direction: column;
146
- align-items: flex-start;
147
- gap: var(--spacing-8);
148
- flex: 0 0 auto;
149
- }
150
-
151
- .card-icon-wrap {
152
- flex-shrink: 0;
153
- width: var(--icon-2xl-size);
154
- height: var(--icon-2xl-size);
155
- }
156
-
157
- .card-icon-wrap bd-img {
158
- display: block;
159
- width: 100%;
160
- height: 100%;
161
- }
162
-
163
- .card-text-wrap {
164
- display: flex;
165
- flex-direction: column;
166
- gap: var(--spacing-8);
167
- align-self: stretch;
168
- }
169
-
170
- .card-title { margin: 0; }
171
- .card-description { margin: 0; }
172
-
173
- .card-bars {
174
- display: flex;
175
- flex-direction: column;
176
- gap: var(--spacing-8);
177
- align-self: stretch;
178
- flex: 0 0 auto;
179
- }
180
-
181
- .card-footnote {
182
- margin: 0;
183
- color: var(--color-text-primary);
184
- flex: 0 0 auto;
185
- }
186
-
187
- /* In a card's rows, each part is as tall as itself; the row is as tall as
188
- the tallest of its row across the cards. */
189
- .card > .card-bars,
190
- .card > .card-footnote {
191
- align-self: start;
192
- }
193
-
194
- /* ── Horizontal layout ──────────────────────────────────────────────────────── */
195
-
196
- .card--horizontal {
197
- display: grid;
198
- grid-template-columns: 1fr 1fr;
199
- align-items: stretch;
200
- gap: var(--spacing-40);
201
- }
202
-
203
- .card-left {
204
- display: flex;
205
- flex-direction: column;
206
- gap: var(--spacing-16);
207
- }
208
-
209
- /* slot is transparent so fallback children are direct flex items of .card-left */
210
- slot[name="header"] { display: contents; }
211
-
212
- ::slotted([slot="header"]) {
213
- display: flex;
214
- flex-direction: column;
215
- }
216
-
217
- .card-left-top {
218
- display: flex;
219
- align-items: center;
220
- gap: var(--spacing-12);
221
- }
222
-
223
- .card--horizontal .card-icon-wrap {
224
- width: var(--dimension-40);
225
- height: var(--dimension-40);
226
- }
227
-
228
- .card--horizontal .card-description { margin: 0; }
229
-
230
- /* footnote sits at the bottom of the left column */
231
- .card--horizontal .card-footnote { margin-top: auto; }
232
-
233
- .card-right {
234
- display: flex;
235
- flex-direction: column;
236
- justify-content: center;
237
- }
238
-
239
- /* Narrow, the horizontal card stacks and the type steps down: the section
240
- title h3 to the h4 size, a card's title h4 to h5, the subtitle and the
241
- card descriptions regular to small (the horizontal card keeps its type). The level -- as= -- is the page's outline
242
- and does not move; see readAs() in token-scales.ts for how the size does.
243
-
244
- Twice, because a card is sometimes placed on its own (the SingleCard
245
- story): with no section around it there is no container to ask, and it
246
- reads the screen as it always did. In a section the container rule says
247
- the same thing whenever the screen rule does -- a section is never wider
248
- than the screen -- and says it alone when the section is narrow on a wide
249
- screen. */
250
- @media ${unsafeCSS(below('md'))} {
251
- .card--horizontal {
252
- grid-template-columns: 1fr;
253
- }
254
-
255
- .card--horizontal .card-footnote { margin-top: 0; }
256
-
257
- .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }
258
- .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }
259
- }
260
-
261
- @container ${unsafeCSS(below('md'))} {
262
- .card--horizontal {
263
- grid-template-columns: 1fr;
264
- }
265
-
266
- .card--horizontal .card-footnote { margin-top: 0; }
267
-
268
- .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }
269
- .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }
270
- .cs-title { ${unsafeCSS(readAs('heading-h3', 'heading-h4'))} }
271
- .cs-subtitle { ${unsafeCSS(readAs('body-regular', 'body-small'))} }
272
- }
273
-
274
- /* Every --cs-bar-* read here carries a fallback, because all of them are
275
- declared on :host(bd-compare-section) and none on :host(compare-bar). A
276
- var() with no fallback is invalid at computed-value time, so a bar used
277
- outside a section lost its height entirely: measured on CompareSection
278
- "compare-bar (isolated)", which puts four bars in a plain div, the track
279
- was 0px tall with no border and no fill, and the overflow: hidden below
280
- clipped the label away with it. Four invisible bars in a story whose whole
281
- job is to show the bar on its own -- and render-health cannot see it,
282
- because other things on the page do occupy space.
283
-
284
- The fallbacks are the same values the section declares, so a bar inside a
285
- section is unchanged, and a themed section still wins: a custom property
286
- inheriting from an ancestor beats a fallback, where a declaration on
287
- :host(compare-bar) would have beaten the theme and pinned every bar. */
288
- .bar-track {
289
- position: relative;
290
- height: var(--cs-bar-height, var(--dimension-48));
291
- border-radius: var(--shape-radius-xl);
292
- overflow: hidden;
293
- background: var(--cs-bar-track-bg, transparent);
294
- border: var(--border-width-1) solid var(--cs-bar-track-border, var(--color-border-subtle));
295
- box-sizing: border-box;
296
- }
297
-
298
- .bar-fill {
299
- position: absolute;
300
- inset: 0 auto 0 0;
301
- height: 100%;
302
- max-width: 100%;
303
- display: flex;
304
- align-items: center;
305
- justify-content: space-between;
306
- gap: var(--spacing-8);
307
- padding: 0 var(--spacing-16);
308
- box-sizing: border-box;
309
- background: transparent;
310
- transition: width calc(var(--transition-duration-slower) + 300ms)
311
- cubic-bezier(0.22, 1, 0.36, 1);
312
- min-width: 0;
313
- }
314
-
315
- :host(compare-bar.compare-no-motion) .bar-fill { transition: none; }
316
-
317
- @media (prefers-reduced-motion: reduce) {
318
- .bar-fill { transition: none; }
319
- }
320
-
321
- .bar-label {
322
- flex: 1 1 auto;
323
- min-width: 0;
324
- overflow: hidden;
325
- text-overflow: ellipsis;
326
- white-space: nowrap;
327
- }
328
-
329
- .bar-score { flex: 0 0 auto; }
330
-
331
- .bar-label,
332
- .bar-score {
333
- font-family: var(--typography-fontFamily-sans);
334
- font-size: var(--typography-body-regular-fontSize);
335
- line-height: var(--typography-body-regular-lineHeight);
336
- letter-spacing: var(--typography-body-regular-letterSpacing);
337
- }
338
-
339
- .bar-score { font-variant-numeric: tabular-nums; }
340
-
341
- /* The fallbacks matter: --cs-bar-primary-bg and -fg are declared on
342
- :host(bd-compare-section) only, so a compare-bar used on its own has neither.
343
- var() with no fallback is invalid at computed-value time, which made the fill
344
- transparent and dropped the label back to inherited ink -- measured on
345
- CompareSection "compare-bar (isolated)", a primary bar with
346
- background rgba(0, 0, 0, 0) and a dark label, indistinguishable from a
347
- secondary bar apart from its weight.
348
-
349
- Fallbacks rather than a declaration on :host(compare-bar): a value set on the
350
- bar's own host would override the one inheriting from a themed section and
351
- pin every bar blue. */
352
- :host(compare-bar[variant="primary"]) .bar-fill {
353
- background: var(--cs-bar-primary-bg, var(--status-brand-fill));
354
- }
355
- :host(compare-bar[variant="primary"]) .bar-label,
356
- :host(compare-bar[variant="primary"]) .bar-score {
357
- color: var(--cs-bar-primary-fg, var(--status-brand-on-fill));
358
- /* no role: this weight belongs to the primary VARIANT, not to the text --
359
- the same bar reads 400 in every other variant. A variant is a UI state,
360
- the category CLAUDE.md keeps apart from type when it says a focus ring is
361
- never expressed by swapping a border colour. See button.css.ts's
362
- .button--bold for the argument. */
363
- font-weight: var(--typography-fontWeight-semibold);
364
- }
365
-
366
- :host(compare-bar[variant="secondary"]) .bar-fill,
367
- :host(compare-bar:not([variant])) .bar-fill {
368
- /* no role: the same decision as --cs-bar-secondary-bg, which this repeats as
369
- a fallback for a compare-bar used outside a bd-compare-section. */
370
- background: var(--cs-bar-secondary-bg, var(--color-neutral-100));
371
- }
372
- :host(compare-bar[variant="secondary"]) .bar-label,
373
- :host(compare-bar:not([variant])) .bar-label,
374
- :host(compare-bar[variant="secondary"]) .bar-score,
375
- :host(compare-bar:not([variant])) .bar-score {
376
- color: var(--color-text-primary);
377
- font-weight: var(--typography-body-regular-fontWeight);
378
- }
379
-
380
- /* theme-green and theme-red take --status-*-fill and --status-*-on-fill: a
381
- saturated fill carrying a label on it is exactly the responsibility those
382
- roles name, and bd-badge variant="fill" already draws it.
383
-
384
- This is adopting a decision the system recorded rather than making a new one.
385
- badge.css.ts: "green-700 with a white label, rather than the design's
386
- green-500 with a dark one. green-700 is the lightest step in the family that
387
- carries white text at 4.5:1 -- it measures 4.75, where green-600 is only
388
- 3.20." So green-500-with-dark-ink was considered there and rejected.
389
-
390
- Measured on the built stories, white label on the primary fill:
391
- theme-green green-500 #15c14f 2.39:1 FAIL -> green-700 #0e8532 4.75:1
392
- theme-red red-500 #ff0000 4.00:1 FAIL -> red-600 #d60000 5.44:1
393
- Both are 16px/600, which is not WCAG large text, so the bar is 4.5:1.
394
-
395
- Each theme also used to set --cs-icon-color and --cs-icon-filter, eight
396
- declarations in all, and nothing read either one: the card icon is a <bd-img>
397
- sized by .card-icon-wrap and given no colour treatment at all. git log -S on
398
- the reading form finds no commit in the history where a consumer existed, so
399
- they were written and never wired up rather than orphaned by a later change.
400
- Removed. They were carrying a paragraph of contrast reasoning about the -500
401
- steps that read as a live decision, and one of the two occurrences of the raw
402
- #7c3aed literal -- the fill below is the only one left.
403
-
404
- Worth recording so it is not re-derived: green-500 is 2.39:1 on white, which
405
- is below the 3:1 non-text minimum, so tinting that icon green-500 would have
406
- been a 1.4.11 question if it had ever happened. It would not have failed even
407
- then -- compare.ts renders the icon aria-hidden with alt="", which is the
408
- exemption -- but the margin is why nothing should reach for -500 here later
409
- on the strength of the deleted comment. */
410
- :host(bd-compare-section.theme-green) {
411
- --cs-bar-primary-bg: var(--status-success-fill);
412
- --cs-bar-primary-fg: var(--status-success-on-fill);
413
- }
414
- :host(bd-compare-section.theme-red) {
415
- --cs-bar-primary-bg: var(--status-error-fill);
416
- --cs-bar-primary-fg: var(--status-error-on-fill);
417
- }
418
- /* theme-dark and theme-purple have no --status-*-fill pair to adopt -- "dark"
419
- and "purple" are themes, not statuses -- so the migration above does not
420
- reach them. They are settled separately, and only one of them is settled.
421
-
422
- theme-dark is D1, approved. The label measured 3.35:1 on the blue-400 fill
423
- and failed. Two directions had precedent here and they look different:
424
- darken the fill to blue-500 and keep the white label (4.53:1), or keep
425
- blue-400 and flip the ink dark (5.37:1). The approved direction is the
426
- second, because blue-400 is deliberately the brighter step so the fill still
427
- reads on a dark ground -- darkening it to blue-500 would have spent the one
428
- thing this theme exists for in order to fix the ink.
429
-
430
- The ink is --color-text-primary, and that is a responsibility rather than a
431
- value. Two tokens resolve to neutral-900 today and only one of them means
432
- this. --status-warning-on-fill is the ink belonging to the *warning* fill,
433
- and a compare bar is not a warning; taking it for the value would also tie
434
- this theme to yellow-500's future, so a warning fill later dark enough to
435
- carry white would turn this label white on light blue. --color-text-primary
436
- is the default ink for copy on a light ground, which is what a label on a
437
- light blue fill is, and it is already what the secondary bar's label uses on
438
- --cs-bar-secondary-bg two rules above. Same job in the same file, same role.
439
-
440
- Measured on the built stories at 16px/600, which is not WCAG large text, so
441
- the bar is 4.5:1:
442
- theme-dark blue-400 #338bff white #ffffff 3.35:1 FAIL
443
- -> ink #151719 5.37:1 PASS
444
-
445
- theme-purple measures 5.70:1 and passes, so there is no accessibility
446
- pressure; #7c3aed is a raw hex for a colour the palette does not contain.
447
- Giving it a token or retiring the theme is a product decision, still open.
448
-
449
- This used to add "and lint:tokens does not report it", which reads as a gate
450
- weakness and is not one. lint:tokens carries the literal in ALLOW.hex with
451
- the reason on the line above it -- no purple in the palette, nearest token
452
- 34.6 deltaE away -- so the silence is a registered exception, not a miss.
453
- Checked by probe: an unlisted off-scale hex reports hex-off-scale and fails
454
- the build, a palette value reports hex-for-token, and this one stays quiet.
455
- The check:color-coverage side needs its own record, which is what the
456
- no token: marker below is; the two gates do not share an exemption. */
457
- :host(bd-compare-section.theme-purple) {
458
- /* no token: the open product decision recorded above -- purple is not in the
459
- palette, so neither the fill nor the ink that belongs to it can resolve.
460
- green and red take --status-*-fill / --status-*-on-fill because they ARE
461
- statuses; there is no such pair to adopt here, and giving white ink a role
462
- while its ground stays a literal would record half a decision. */
463
- --cs-bar-primary-bg: #7c3aed;
464
- --cs-bar-primary-fg: var(--color-neutral-0); /* no token: as above */
465
- }
466
- :host(bd-compare-section.theme-dark) {
467
- /* no role: nothing in the semantic set resolves to blue-400. That is the
468
- point of the D1 decision above -- blue-400 is deliberately the brighter
469
- step so the fill still reads on a dark ground -- so the absence is the
470
- theme working, not a gap to close. */
471
- --cs-bar-primary-bg: var(--color-brand-400);
472
- --cs-bar-primary-fg: var(--color-text-primary);
473
- --cs-section-text: var(--color-text-inverse);
474
- }
475
-
476
- :host(bd-compare-section.bars-tall) { --cs-bar-height: var(--dimension-56); }
477
- :host(bd-compare-section.bars-compact) { --cs-bar-height: var(--dimension-40); --cs-gap: var(--spacing-24); }
478
- `;
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host(bd-compare-section){box-sizing:border-box;--cs-bar-primary-fg:var(--status-brand-on-fill);--cs-bar-primary-bg:var(--status-brand-fill);--cs-bar-secondary-bg:var(--color-neutral-100);--cs-bar-track-bg:transparent;--cs-bar-track-border:var(--color-border-subtle);--cs-bar-height:var(--dimension-48);--cs-gap:var(--spacing-32);--cs-section-text:var(--color-text-primary);width:100%;display:block;container-type:inline-size}:host(compare-card){height:100%;display:block}:host(compare-bar){width:100%;display:block}.cs-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.cs-section{padding-block:var(--spacing-0);box-sizing:border-box;background:0 0}.cs-heading{text-align:center;max-width:var(--grid-container-max-md);margin:0 auto var(--spacing-40)}.cs-title{margin:0 0 var(--spacing-8);color:var(--cs-section-text)}.cs-subtitle{color:var(--cs-section-text);margin:0}.cs-grid{grid-template-columns:repeat(var(--_cols,2), minmax(0, 598px));gap:var(--cs-gap);justify-content:center;align-items:stretch;margin:0 auto;display:grid}@container (width<768px){.cs-grid{grid-template-columns:1fr}}.cs-grid>::slotted(compare-card[layout=horizontal]){grid-column:1/-1}.cs-grid>::slotted(compare-card:not([layout=horizontal])){grid-row:span 3;grid-template-rows:subgrid;row-gap:var(--spacing-24);display:grid}.card{background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);grid-row:1/-1;grid-template-rows:subgrid;row-gap:var(--spacing-24);box-sizing:border-box;align-content:start;height:100%;display:grid}.card-header{align-items:flex-start;gap:var(--spacing-8);flex-direction:column;flex:none;display:flex}.card-icon-wrap{width:var(--icon-2xl-size);height:var(--icon-2xl-size);flex-shrink:0}.card-icon-wrap bd-img{width:100%;height:100%;display:block}.card-text-wrap{gap:var(--spacing-8);flex-direction:column;align-self:stretch;display:flex}.card-title,.card-description{margin:0}.card-bars{gap:var(--spacing-8);flex-direction:column;flex:none;align-self:stretch;display:flex}.card-footnote{color:var(--color-text-primary);flex:none;margin:0}.card>.card-bars,.card>.card-footnote{align-self:start}.card--horizontal{align-items:stretch;gap:var(--spacing-40);grid-template-columns:1fr 1fr;display:grid}.card-left{gap:var(--spacing-16);flex-direction:column;display:flex}slot[name=header]{display:contents}::slotted([slot=header]){flex-direction:column;display:flex}.card-left-top{align-items:center;gap:var(--spacing-12);display:flex}.card--horizontal .card-icon-wrap{width:var(--dimension-40);height:var(--dimension-40)}.card--horizontal .card-description{margin:0}.card--horizontal .card-footnote{margin-top:auto}.card-right{flex-direction:column;justify-content:center;display:flex}@media (width<768px){.card--horizontal{grid-template-columns:1fr}.card--horizontal .card-footnote{margin-top:0}.card-text-wrap .card-title{--typography-heading-h4-fontSize:var(--typography-heading-h5-fontSize);--typography-heading-h4-fontWeight:var(--typography-heading-h5-fontWeight);--typography-heading-h4-lineHeight:var(--typography-heading-h5-lineHeight);--typography-heading-h4-letterSpacing:var(--typography-heading-h5-letterSpacing);--typography-heading-h4-fontFamily:var(--typography-heading-h5-fontFamily)}.card-text-wrap .card-description{--typography-body-regular-fontSize:var(--typography-body-small-fontSize);--typography-body-regular-fontWeight:var(--typography-body-small-fontWeight);--typography-body-regular-lineHeight:var(--typography-body-small-lineHeight);--typography-body-regular-letterSpacing:var(--typography-body-small-letterSpacing)}}@container (width<768px){.card--horizontal{grid-template-columns:1fr}.card--horizontal .card-footnote{margin-top:0}.card-text-wrap .card-title{--typography-heading-h4-fontSize:var(--typography-heading-h5-fontSize);--typography-heading-h4-fontWeight:var(--typography-heading-h5-fontWeight);--typography-heading-h4-lineHeight:var(--typography-heading-h5-lineHeight);--typography-heading-h4-letterSpacing:var(--typography-heading-h5-letterSpacing);--typography-heading-h4-fontFamily:var(--typography-heading-h5-fontFamily)}.card-text-wrap .card-description{--typography-body-regular-fontSize:var(--typography-body-small-fontSize);--typography-body-regular-fontWeight:var(--typography-body-small-fontWeight);--typography-body-regular-lineHeight:var(--typography-body-small-lineHeight);--typography-body-regular-letterSpacing:var(--typography-body-small-letterSpacing)}.cs-title{--typography-heading-h3-fontSize:var(--typography-heading-h4-fontSize);--typography-heading-h3-fontWeight:var(--typography-heading-h4-fontWeight);--typography-heading-h3-lineHeight:var(--typography-heading-h4-lineHeight);--typography-heading-h3-letterSpacing:var(--typography-heading-h4-letterSpacing);--typography-heading-h3-fontFamily:var(--typography-heading-h4-fontFamily)}.cs-subtitle{--typography-body-regular-fontSize:var(--typography-body-small-fontSize);--typography-body-regular-fontWeight:var(--typography-body-small-fontWeight);--typography-body-regular-lineHeight:var(--typography-body-small-lineHeight);--typography-body-regular-letterSpacing:var(--typography-body-small-letterSpacing)}}.bar-track{height:var(--cs-bar-height,var(--dimension-48));border-radius:var(--shape-radius-xl);background:var(--cs-bar-track-bg,transparent);border:var(--border-width-1) solid var(--cs-bar-track-border,var(--color-border-subtle));box-sizing:border-box;position:relative;overflow:hidden}.bar-fill{justify-content:space-between;align-items:center;gap:var(--spacing-8);max-width:100%;height:100%;padding:0 var(--spacing-16);box-sizing:border-box;transition:width calc(var(--transition-duration-slower) + .3s) cubic-bezier(.22, 1, .36, 1);background:0 0;min-width:0;display:flex;position:absolute;inset:0 auto 0 0}:host(compare-bar.compare-no-motion) .bar-fill{transition:none}@media (prefers-reduced-motion:reduce){.bar-fill{transition:none}}.bar-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.bar-score{flex:none}.bar-label,.bar-score{font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-regular-fontSize);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing)}.bar-score{font-variant-numeric:tabular-nums}:host(compare-bar[variant=primary]) .bar-fill{background:var(--cs-bar-primary-bg,var(--status-brand-fill))}:host(compare-bar[variant=primary]) .bar-label,:host(compare-bar[variant=primary]) .bar-score{color:var(--cs-bar-primary-fg,var(--status-brand-on-fill));font-weight:var(--typography-fontWeight-semibold)}:host(compare-bar[variant=secondary]) .bar-fill,:host(compare-bar:not([variant])) .bar-fill{background:var(--cs-bar-secondary-bg,var(--color-neutral-100))}:host(compare-bar[variant=secondary]) .bar-label,:host(compare-bar:not([variant])) .bar-label,:host(compare-bar[variant=secondary]) .bar-score,:host(compare-bar:not([variant])) .bar-score{color:var(--color-text-primary);font-weight:var(--typography-body-regular-fontWeight)}:host(bd-compare-section.theme-green){--cs-bar-primary-bg:var(--status-success-fill);--cs-bar-primary-fg:var(--status-success-on-fill)}:host(bd-compare-section.theme-red){--cs-bar-primary-bg:var(--status-error-fill);--cs-bar-primary-fg:var(--status-error-on-fill)}:host(bd-compare-section.theme-purple){--cs-bar-primary-bg:#7c3aed;--cs-bar-primary-fg:var(--color-neutral-0)}:host(bd-compare-section.theme-dark){--cs-bar-primary-bg:var(--color-brand-400);--cs-bar-primary-fg:var(--color-text-primary);--cs-section-text:var(--color-text-inverse)}:host(bd-compare-section.bars-tall){--cs-bar-height:var(--dimension-56)}:host(bd-compare-section.bars-compact){--cs-bar-height:var(--dimension-40);--cs-gap:var(--spacing-24)}`;export{t as default};
479
2
  //# sourceMappingURL=compare.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compare.css.js","sourceRoot":"","sources":["../../../../src/components/compare/compare.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+FL,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAwJ1B,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;wCAOS,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;wCAC7C,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;;;aAG1E,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;wCAOK,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;wCAC7C,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;wBAC/D,SAAS,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;wBAC7C,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MtE,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, readAs } from \"../shared/token-scales.ts\";\n\nexport default css`\n\n:host(bd-compare-section) {\n display: block;\n /* The section is the container its narrow layout reads -- one column of\n cards, the horizontal card stacked, the type a step down -- where it read\n the screen. Across the page the section is as wide as the screen, so\n nothing moves there. width: 100% because a size container contributes\n nothing to its own intrinsic width. */\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n\n /* The brand fill and the ink that belongs to it. theme-green and theme-red\n adopted --status-*-fill / --status-*-on-fill below with the argument that a\n saturated fill carrying a label is exactly that pair's responsibility; the\n default bar IS that shape and the migration skipped it, so it kept the\n primitives. Value-identical -- --status-brand-fill is blue-500 and\n --status-brand-on-fill is neutral-0 -- and the label measures 4.53:1 here,\n which passes 4.5:1 with almost nothing spare. Worth knowing before anyone\n retunes blue-500: green-500 and red-500 both failed this same test. */\n --cs-bar-primary-fg: var(--status-brand-on-fill);\n --cs-bar-primary-bg: var(--status-brand-fill);\n /* no role: the competitor bar is a resting fill. The three roles at\n neutral-100 are a state (surface-muted), a disabled control\n (surface-disabled) and a surface in the neutral status family, whose FILL\n is neutral-900 -- so the family that matches on job does not match on\n value, and the ones that match on value do not match on job. */\n --cs-bar-secondary-bg: var(--color-neutral-100);\n --cs-bar-track-bg: transparent;\n --cs-bar-track-border: var(--color-border-subtle);\n --cs-bar-height: var(--dimension-48);\n --cs-gap: var(--spacing-32);\n\n /* The section's own text, which is the only text that sits on the page's\n ground rather than on a card. .theme-dark recoloured the bars and the icon\n and stopped there, so on a dark ground the section title kept\n --color-text-primary and rendered at 1.05:1 -- a documented story whose\n heading was invisible.\n\n Deliberately section-scoped. .card sets its own --color-surface-container\n and stays light under .theme-dark, so card titles, descriptions, footnotes\n and bar labels must keep their light-surface roles; inverting those turned\n white text onto a light card at 1.04:1 when it was tried. This is a\n component-context fix, not a theme architecture. */\n --cs-section-text: var(--color-text-primary);\n}\n\n:host(compare-card) {\n display: block;\n height: 100%;\n}\n\n:host(compare-bar) {\n display: block;\n width: 100%;\n}\n\n.cs-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n.cs-section {\n background: transparent;\n padding-block: var(--spacing-0);\n box-sizing: border-box;\n}\n\n.cs-heading {\n text-align: center;\n /* not the column: a centred heading measure, one grid step narrower than the page */\n max-width: var(--grid-container-max-md);\n margin: 0 auto var(--spacing-40);\n}\n\n.cs-title { margin: 0 0 var(--spacing-8); color: var(--cs-section-text); }\n.cs-subtitle { margin: 0; color: var(--cs-section-text); }\n\n.cs-grid {\n display: grid;\n grid-template-columns: repeat(var(--_cols, 2), minmax(0, 598px));\n gap: var(--cs-gap);\n margin: 0 auto;\n justify-content: center;\n align-items: stretch;\n}\n\n@container ${unsafeCSS(below('md'))} {\n .cs-grid {\n grid-template-columns: 1fr;\n }\n}\n\n.cs-grid > ::slotted(compare-card[layout=\"horizontal\"]) {\n grid-column: 1 / -1;\n}\n\n/* A card's three parts -- the header, the bars, the footnote -- are three of\n the section's rows, so the bars start on one line across a row of cards\n however many lines a title or a description wraps to. The card spans them\n as a subgrid and so does its .card; inside a card they are 24 apart, the\n card's own gap, while rows of cards keep --cs-gap between them. */\n.cs-grid > ::slotted(compare-card:not([layout=\"horizontal\"])) {\n display: grid;\n grid-row: span 3;\n grid-template-rows: subgrid;\n row-gap: var(--spacing-24);\n}\n\n.card {\n background: var(--color-surface-container);\n /* --radius-2xl, the established card-family corner. This card sat at\n --radius-3xl and was otherwise identical to the family: the same\n --color-surface-container, the same 32px inset, no resting elevation and\n no card-level interaction. P5G could find no responsibility, affordance or\n recorded decision behind the extra 8px -- unlike the carousel item, whose\n 24px corner goes with a 2px border and real drag/modal behaviour and is a\n recorded open question. */\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n /* In a section, the card's rows are the section's (see above); on its own\n the subgrid has no grid to inherit from, and the parts stack in rows of\n their own, 24 apart either way. */\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n row-gap: var(--spacing-24);\n align-content: start;\n box-sizing: border-box;\n height: 100%;\n}\n\n.card-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n flex: 0 0 auto;\n}\n\n.card-icon-wrap {\n flex-shrink: 0;\n width: var(--icon-2xl-size);\n height: var(--icon-2xl-size);\n}\n\n.card-icon-wrap bd-img {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.card-text-wrap {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n align-self: stretch;\n}\n\n.card-title { margin: 0; }\n.card-description { margin: 0; }\n\n.card-bars {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n align-self: stretch;\n flex: 0 0 auto;\n}\n\n.card-footnote {\n margin: 0;\n color: var(--color-text-primary);\n flex: 0 0 auto;\n}\n\n/* In a card's rows, each part is as tall as itself; the row is as tall as\n the tallest of its row across the cards. */\n.card > .card-bars,\n.card > .card-footnote {\n align-self: start;\n}\n\n/* ── Horizontal layout ──────────────────────────────────────────────────────── */\n\n.card--horizontal {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: stretch;\n gap: var(--spacing-40);\n}\n\n.card-left {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n}\n\n/* slot is transparent so fallback children are direct flex items of .card-left */\nslot[name=\"header\"] { display: contents; }\n\n::slotted([slot=\"header\"]) {\n display: flex;\n flex-direction: column;\n}\n\n.card-left-top {\n display: flex;\n align-items: center;\n gap: var(--spacing-12);\n}\n\n.card--horizontal .card-icon-wrap {\n width: var(--dimension-40);\n height: var(--dimension-40);\n}\n\n.card--horizontal .card-description { margin: 0; }\n\n/* footnote sits at the bottom of the left column */\n.card--horizontal .card-footnote { margin-top: auto; }\n\n.card-right {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n/* Narrow, the horizontal card stacks and the type steps down: the section\n title h3 to the h4 size, a card's title h4 to h5, the subtitle and the\n card descriptions regular to small (the horizontal card keeps its type). The level -- as= -- is the page's outline\n and does not move; see readAs() in token-scales.ts for how the size does.\n\n Twice, because a card is sometimes placed on its own (the SingleCard\n story): with no section around it there is no container to ask, and it\n reads the screen as it always did. In a section the container rule says\n the same thing whenever the screen rule does -- a section is never wider\n than the screen -- and says it alone when the section is narrow on a wide\n screen. */\n@media ${unsafeCSS(below('md'))} {\n .card--horizontal {\n grid-template-columns: 1fr;\n }\n\n .card--horizontal .card-footnote { margin-top: 0; }\n\n .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }\n .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n}\n\n@container ${unsafeCSS(below('md'))} {\n .card--horizontal {\n grid-template-columns: 1fr;\n }\n\n .card--horizontal .card-footnote { margin-top: 0; }\n\n .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }\n .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n .cs-title { ${unsafeCSS(readAs('heading-h3', 'heading-h4'))} }\n .cs-subtitle { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n}\n\n/* Every --cs-bar-* read here carries a fallback, because all of them are\n declared on :host(bd-compare-section) and none on :host(compare-bar). A\n var() with no fallback is invalid at computed-value time, so a bar used\n outside a section lost its height entirely: measured on CompareSection\n \"compare-bar (isolated)\", which puts four bars in a plain div, the track\n was 0px tall with no border and no fill, and the overflow: hidden below\n clipped the label away with it. Four invisible bars in a story whose whole\n job is to show the bar on its own -- and render-health cannot see it,\n because other things on the page do occupy space.\n \n The fallbacks are the same values the section declares, so a bar inside a\n section is unchanged, and a themed section still wins: a custom property\n inheriting from an ancestor beats a fallback, where a declaration on\n :host(compare-bar) would have beaten the theme and pinned every bar. */\n.bar-track {\n position: relative;\n height: var(--cs-bar-height, var(--dimension-48));\n border-radius: var(--shape-radius-xl);\n overflow: hidden;\n background: var(--cs-bar-track-bg, transparent);\n border: var(--border-width-1) solid var(--cs-bar-track-border, var(--color-border-subtle));\n box-sizing: border-box;\n}\n\n.bar-fill {\n position: absolute;\n inset: 0 auto 0 0;\n height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--spacing-8);\n padding: 0 var(--spacing-16);\n box-sizing: border-box;\n background: transparent;\n transition: width calc(var(--transition-duration-slower) + 300ms)\n cubic-bezier(0.22, 1, 0.36, 1);\n min-width: 0;\n}\n\n:host(compare-bar.compare-no-motion) .bar-fill { transition: none; }\n\n@media (prefers-reduced-motion: reduce) {\n .bar-fill { transition: none; }\n}\n\n.bar-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bar-score { flex: 0 0 auto; }\n\n.bar-label,\n.bar-score {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-regular-fontSize);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n}\n\n.bar-score { font-variant-numeric: tabular-nums; }\n\n/* The fallbacks matter: --cs-bar-primary-bg and -fg are declared on\n :host(bd-compare-section) only, so a compare-bar used on its own has neither.\n var() with no fallback is invalid at computed-value time, which made the fill\n transparent and dropped the label back to inherited ink -- measured on\n CompareSection \"compare-bar (isolated)\", a primary bar with\n background rgba(0, 0, 0, 0) and a dark label, indistinguishable from a\n secondary bar apart from its weight.\n \n Fallbacks rather than a declaration on :host(compare-bar): a value set on the\n bar's own host would override the one inheriting from a themed section and\n pin every bar blue. */\n:host(compare-bar[variant=\"primary\"]) .bar-fill {\n background: var(--cs-bar-primary-bg, var(--status-brand-fill));\n}\n:host(compare-bar[variant=\"primary\"]) .bar-label,\n:host(compare-bar[variant=\"primary\"]) .bar-score {\n color: var(--cs-bar-primary-fg, var(--status-brand-on-fill));\n /* no role: this weight belongs to the primary VARIANT, not to the text --\n the same bar reads 400 in every other variant. A variant is a UI state,\n the category CLAUDE.md keeps apart from type when it says a focus ring is\n never expressed by swapping a border colour. See button.css.ts's\n .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-semibold);\n}\n\n:host(compare-bar[variant=\"secondary\"]) .bar-fill,\n:host(compare-bar:not([variant])) .bar-fill {\n /* no role: the same decision as --cs-bar-secondary-bg, which this repeats as\n a fallback for a compare-bar used outside a bd-compare-section. */\n background: var(--cs-bar-secondary-bg, var(--color-neutral-100));\n}\n:host(compare-bar[variant=\"secondary\"]) .bar-label,\n:host(compare-bar:not([variant])) .bar-label,\n:host(compare-bar[variant=\"secondary\"]) .bar-score,\n:host(compare-bar:not([variant])) .bar-score {\n color: var(--color-text-primary);\n font-weight: var(--typography-body-regular-fontWeight);\n}\n\n/* theme-green and theme-red take --status-*-fill and --status-*-on-fill: a\n saturated fill carrying a label on it is exactly the responsibility those\n roles name, and bd-badge variant=\"fill\" already draws it.\n \n This is adopting a decision the system recorded rather than making a new one.\n badge.css.ts: \"green-700 with a white label, rather than the design's\n green-500 with a dark one. green-700 is the lightest step in the family that\n carries white text at 4.5:1 -- it measures 4.75, where green-600 is only\n 3.20.\" So green-500-with-dark-ink was considered there and rejected.\n \n Measured on the built stories, white label on the primary fill:\n theme-green green-500 #15c14f 2.39:1 FAIL -> green-700 #0e8532 4.75:1\n theme-red red-500 #ff0000 4.00:1 FAIL -> red-600 #d60000 5.44:1\n Both are 16px/600, which is not WCAG large text, so the bar is 4.5:1.\n\n Each theme also used to set --cs-icon-color and --cs-icon-filter, eight\n declarations in all, and nothing read either one: the card icon is a <bd-img>\n sized by .card-icon-wrap and given no colour treatment at all. git log -S on\n the reading form finds no commit in the history where a consumer existed, so\n they were written and never wired up rather than orphaned by a later change.\n Removed. They were carrying a paragraph of contrast reasoning about the -500\n steps that read as a live decision, and one of the two occurrences of the raw\n #7c3aed literal -- the fill below is the only one left.\n\n Worth recording so it is not re-derived: green-500 is 2.39:1 on white, which\n is below the 3:1 non-text minimum, so tinting that icon green-500 would have\n been a 1.4.11 question if it had ever happened. It would not have failed even\n then -- compare.ts renders the icon aria-hidden with alt=\"\", which is the\n exemption -- but the margin is why nothing should reach for -500 here later\n on the strength of the deleted comment. */\n:host(bd-compare-section.theme-green) {\n --cs-bar-primary-bg: var(--status-success-fill);\n --cs-bar-primary-fg: var(--status-success-on-fill);\n}\n:host(bd-compare-section.theme-red) {\n --cs-bar-primary-bg: var(--status-error-fill);\n --cs-bar-primary-fg: var(--status-error-on-fill);\n}\n/* theme-dark and theme-purple have no --status-*-fill pair to adopt -- \"dark\"\n and \"purple\" are themes, not statuses -- so the migration above does not\n reach them. They are settled separately, and only one of them is settled.\n\n theme-dark is D1, approved. The label measured 3.35:1 on the blue-400 fill\n and failed. Two directions had precedent here and they look different:\n darken the fill to blue-500 and keep the white label (4.53:1), or keep\n blue-400 and flip the ink dark (5.37:1). The approved direction is the\n second, because blue-400 is deliberately the brighter step so the fill still\n reads on a dark ground -- darkening it to blue-500 would have spent the one\n thing this theme exists for in order to fix the ink.\n\n The ink is --color-text-primary, and that is a responsibility rather than a\n value. Two tokens resolve to neutral-900 today and only one of them means\n this. --status-warning-on-fill is the ink belonging to the *warning* fill,\n and a compare bar is not a warning; taking it for the value would also tie\n this theme to yellow-500's future, so a warning fill later dark enough to\n carry white would turn this label white on light blue. --color-text-primary\n is the default ink for copy on a light ground, which is what a label on a\n light blue fill is, and it is already what the secondary bar's label uses on\n --cs-bar-secondary-bg two rules above. Same job in the same file, same role.\n\n Measured on the built stories at 16px/600, which is not WCAG large text, so\n the bar is 4.5:1:\n theme-dark blue-400 #338bff white #ffffff 3.35:1 FAIL\n -> ink #151719 5.37:1 PASS\n\n theme-purple measures 5.70:1 and passes, so there is no accessibility\n pressure; #7c3aed is a raw hex for a colour the palette does not contain.\n Giving it a token or retiring the theme is a product decision, still open.\n\n This used to add \"and lint:tokens does not report it\", which reads as a gate\n weakness and is not one. lint:tokens carries the literal in ALLOW.hex with\n the reason on the line above it -- no purple in the palette, nearest token\n 34.6 deltaE away -- so the silence is a registered exception, not a miss.\n Checked by probe: an unlisted off-scale hex reports hex-off-scale and fails\n the build, a palette value reports hex-for-token, and this one stays quiet.\n The check:color-coverage side needs its own record, which is what the\n no token: marker below is; the two gates do not share an exemption. */\n:host(bd-compare-section.theme-purple) {\n /* no token: the open product decision recorded above -- purple is not in the\n palette, so neither the fill nor the ink that belongs to it can resolve.\n green and red take --status-*-fill / --status-*-on-fill because they ARE\n statuses; there is no such pair to adopt here, and giving white ink a role\n while its ground stays a literal would record half a decision. */\n --cs-bar-primary-bg: #7c3aed;\n --cs-bar-primary-fg: var(--color-neutral-0); /* no token: as above */\n}\n:host(bd-compare-section.theme-dark) {\n /* no role: nothing in the semantic set resolves to blue-400. That is the\n point of the D1 decision above -- blue-400 is deliberately the brighter\n step so the fill still reads on a dark ground -- so the absence is the\n theme working, not a gap to close. */\n --cs-bar-primary-bg: var(--color-brand-400);\n --cs-bar-primary-fg: var(--color-text-primary);\n --cs-section-text: var(--color-text-inverse);\n}\n\n:host(bd-compare-section.bars-tall) { --cs-bar-height: var(--dimension-56); }\n:host(bd-compare-section.bars-compact) { --cs-bar-height: var(--dimension-40); --cs-gap: var(--spacing-24); }\n`;"]}
1
+ {"version":3,"file":"compare.css.js","names":["compare_css_default"],"sources":["../../../../src/components/compare/compare.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, readAs } from \"#shared/token-scales.ts\";\n\nexport default css`\n\n:host(bd-compare-section) {\n display: block;\n /* The section is the container its narrow layout reads -- one column of\n cards, the horizontal card stacked, the type a step down -- where it read\n the screen. Across the page the section is as wide as the screen, so\n nothing moves there. width: 100% because a size container contributes\n nothing to its own intrinsic width. */\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n\n /* The brand fill and the ink that belongs to it. theme-green and theme-red\n adopted --status-*-fill / --status-*-on-fill below with the argument that a\n saturated fill carrying a label is exactly that pair's responsibility; the\n default bar IS that shape and the migration skipped it, so it kept the\n primitives. Value-identical -- --status-brand-fill is blue-500 and\n --status-brand-on-fill is neutral-0 -- and the label measures 4.53:1 here,\n which passes 4.5:1 with almost nothing spare. Worth knowing before anyone\n retunes blue-500: green-500 and red-500 both failed this same test. */\n --cs-bar-primary-fg: var(--status-brand-on-fill);\n --cs-bar-primary-bg: var(--status-brand-fill);\n /* no role: the competitor bar is a resting fill. The three roles at\n neutral-100 are a state (surface-muted), a disabled control\n (surface-disabled) and a surface in the neutral status family, whose FILL\n is neutral-900 -- so the family that matches on job does not match on\n value, and the ones that match on value do not match on job. */\n --cs-bar-secondary-bg: var(--color-neutral-100);\n --cs-bar-track-bg: transparent;\n --cs-bar-track-border: var(--color-border-subtle);\n --cs-bar-height: var(--dimension-48);\n --cs-gap: var(--spacing-32);\n\n /* The section's own text, which is the only text that sits on the page's\n ground rather than on a card. .theme-dark recoloured the bars and the icon\n and stopped there, so on a dark ground the section title kept\n --color-text-primary and rendered at 1.05:1 -- a documented story whose\n heading was invisible.\n\n Deliberately section-scoped. .card sets its own --color-surface-container\n and stays light under .theme-dark, so card titles, descriptions, footnotes\n and bar labels must keep their light-surface roles; inverting those turned\n white text onto a light card at 1.04:1 when it was tried. This is a\n component-context fix, not a theme architecture. */\n --cs-section-text: var(--color-text-primary);\n}\n\n:host(compare-card) {\n display: block;\n height: 100%;\n}\n\n:host(compare-bar) {\n display: block;\n width: 100%;\n}\n\n.cs-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n.cs-section {\n background: transparent;\n padding-block: var(--spacing-0);\n box-sizing: border-box;\n}\n\n.cs-heading {\n text-align: center;\n /* not the column: a centred heading measure, one grid step narrower than the page */\n max-width: var(--grid-container-max-md);\n margin: 0 auto var(--spacing-40);\n}\n\n.cs-title { margin: 0 0 var(--spacing-8); color: var(--cs-section-text); }\n.cs-subtitle { margin: 0; color: var(--cs-section-text); }\n\n.cs-grid {\n display: grid;\n grid-template-columns: repeat(var(--_cols, 2), minmax(0, 598px));\n gap: var(--cs-gap);\n margin: 0 auto;\n justify-content: center;\n align-items: stretch;\n}\n\n@container ${unsafeCSS(below('md'))} {\n .cs-grid {\n grid-template-columns: 1fr;\n }\n}\n\n.cs-grid > ::slotted(compare-card[layout=\"horizontal\"]) {\n grid-column: 1 / -1;\n}\n\n/* A card's three parts -- the header, the bars, the footnote -- are three of\n the section's rows, so the bars start on one line across a row of cards\n however many lines a title or a description wraps to. The card spans them\n as a subgrid and so does its .card; inside a card they are 24 apart, the\n card's own gap, while rows of cards keep --cs-gap between them. */\n.cs-grid > ::slotted(compare-card:not([layout=\"horizontal\"])) {\n display: grid;\n grid-row: span 3;\n grid-template-rows: subgrid;\n row-gap: var(--spacing-24);\n}\n\n.card {\n background: var(--color-surface-container);\n /* --radius-2xl, the established card-family corner. This card sat at\n --radius-3xl and was otherwise identical to the family: the same\n --color-surface-container, the same 32px inset, no resting elevation and\n no card-level interaction. P5G could find no responsibility, affordance or\n recorded decision behind the extra 8px -- unlike the carousel item, whose\n 24px corner goes with a 2px border and real drag/modal behaviour and is a\n recorded open question. */\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n /* In a section, the card's rows are the section's (see above); on its own\n the subgrid has no grid to inherit from, and the parts stack in rows of\n their own, 24 apart either way. */\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n row-gap: var(--spacing-24);\n align-content: start;\n box-sizing: border-box;\n height: 100%;\n}\n\n.card-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n flex: 0 0 auto;\n}\n\n.card-icon-wrap {\n flex-shrink: 0;\n width: var(--icon-2xl-size);\n height: var(--icon-2xl-size);\n}\n\n.card-icon-wrap bd-img {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.card-text-wrap {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n align-self: stretch;\n}\n\n.card-title { margin: 0; }\n.card-description { margin: 0; }\n\n.card-bars {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n align-self: stretch;\n flex: 0 0 auto;\n}\n\n.card-footnote {\n margin: 0;\n color: var(--color-text-primary);\n flex: 0 0 auto;\n}\n\n/* In a card's rows, each part is as tall as itself; the row is as tall as\n the tallest of its row across the cards. */\n.card > .card-bars,\n.card > .card-footnote {\n align-self: start;\n}\n\n/* ── Horizontal layout ──────────────────────────────────────────────────────── */\n\n.card--horizontal {\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: stretch;\n gap: var(--spacing-40);\n}\n\n.card-left {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n}\n\n/* slot is transparent so fallback children are direct flex items of .card-left */\nslot[name=\"header\"] { display: contents; }\n\n::slotted([slot=\"header\"]) {\n display: flex;\n flex-direction: column;\n}\n\n.card-left-top {\n display: flex;\n align-items: center;\n gap: var(--spacing-12);\n}\n\n.card--horizontal .card-icon-wrap {\n width: var(--dimension-40);\n height: var(--dimension-40);\n}\n\n.card--horizontal .card-description { margin: 0; }\n\n/* footnote sits at the bottom of the left column */\n.card--horizontal .card-footnote { margin-top: auto; }\n\n.card-right {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n/* Narrow, the horizontal card stacks and the type steps down: the section\n title h3 to the h4 size, a card's title h4 to h5, the subtitle and the\n card descriptions regular to small (the horizontal card keeps its type). The level -- as= -- is the page's outline\n and does not move; see readAs() in token-scales.ts for how the size does.\n\n Twice, because a card is sometimes placed on its own (the SingleCard\n story): with no section around it there is no container to ask, and it\n reads the screen as it always did. In a section the container rule says\n the same thing whenever the screen rule does -- a section is never wider\n than the screen -- and says it alone when the section is narrow on a wide\n screen. */\n@media ${unsafeCSS(below('md'))} {\n .card--horizontal {\n grid-template-columns: 1fr;\n }\n\n .card--horizontal .card-footnote { margin-top: 0; }\n\n .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }\n .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n}\n\n@container ${unsafeCSS(below('md'))} {\n .card--horizontal {\n grid-template-columns: 1fr;\n }\n\n .card--horizontal .card-footnote { margin-top: 0; }\n\n .card-text-wrap .card-title { ${unsafeCSS(readAs('heading-h4', 'heading-h5'))} }\n .card-text-wrap .card-description { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n .cs-title { ${unsafeCSS(readAs('heading-h3', 'heading-h4'))} }\n .cs-subtitle { ${unsafeCSS(readAs('body-regular', 'body-small'))} }\n}\n\n/* Every --cs-bar-* read here carries a fallback, because all of them are\n declared on :host(bd-compare-section) and none on :host(compare-bar). A\n var() with no fallback is invalid at computed-value time, so a bar used\n outside a section lost its height entirely: measured on CompareSection\n \"compare-bar (isolated)\", which puts four bars in a plain div, the track\n was 0px tall with no border and no fill, and the overflow: hidden below\n clipped the label away with it. Four invisible bars in a story whose whole\n job is to show the bar on its own -- and render-health cannot see it,\n because other things on the page do occupy space.\n \n The fallbacks are the same values the section declares, so a bar inside a\n section is unchanged, and a themed section still wins: a custom property\n inheriting from an ancestor beats a fallback, where a declaration on\n :host(compare-bar) would have beaten the theme and pinned every bar. */\n.bar-track {\n position: relative;\n height: var(--cs-bar-height, var(--dimension-48));\n border-radius: var(--shape-radius-xl);\n overflow: hidden;\n background: var(--cs-bar-track-bg, transparent);\n border: var(--border-width-1) solid var(--cs-bar-track-border, var(--color-border-subtle));\n box-sizing: border-box;\n}\n\n.bar-fill {\n position: absolute;\n inset: 0 auto 0 0;\n height: 100%;\n max-width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--spacing-8);\n padding: 0 var(--spacing-16);\n box-sizing: border-box;\n background: transparent;\n transition: width calc(var(--transition-duration-slower) + 300ms)\n cubic-bezier(0.22, 1, 0.36, 1);\n min-width: 0;\n}\n\n:host(compare-bar.compare-no-motion) .bar-fill { transition: none; }\n\n@media (prefers-reduced-motion: reduce) {\n .bar-fill { transition: none; }\n}\n\n.bar-label {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.bar-score { flex: 0 0 auto; }\n\n.bar-label,\n.bar-score {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-regular-fontSize);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n}\n\n.bar-score { font-variant-numeric: tabular-nums; }\n\n/* The fallbacks matter: --cs-bar-primary-bg and -fg are declared on\n :host(bd-compare-section) only, so a compare-bar used on its own has neither.\n var() with no fallback is invalid at computed-value time, which made the fill\n transparent and dropped the label back to inherited ink -- measured on\n CompareSection \"compare-bar (isolated)\", a primary bar with\n background rgba(0, 0, 0, 0) and a dark label, indistinguishable from a\n secondary bar apart from its weight.\n \n Fallbacks rather than a declaration on :host(compare-bar): a value set on the\n bar's own host would override the one inheriting from a themed section and\n pin every bar blue. */\n:host(compare-bar[variant=\"primary\"]) .bar-fill {\n background: var(--cs-bar-primary-bg, var(--status-brand-fill));\n}\n:host(compare-bar[variant=\"primary\"]) .bar-label,\n:host(compare-bar[variant=\"primary\"]) .bar-score {\n color: var(--cs-bar-primary-fg, var(--status-brand-on-fill));\n /* no role: this weight belongs to the primary VARIANT, not to the text --\n the same bar reads 400 in every other variant. A variant is a UI state,\n the category CLAUDE.md keeps apart from type when it says a focus ring is\n never expressed by swapping a border colour. See button.css.ts's\n .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-semibold);\n}\n\n:host(compare-bar[variant=\"secondary\"]) .bar-fill,\n:host(compare-bar:not([variant])) .bar-fill {\n /* no role: the same decision as --cs-bar-secondary-bg, which this repeats as\n a fallback for a compare-bar used outside a bd-compare-section. */\n background: var(--cs-bar-secondary-bg, var(--color-neutral-100));\n}\n:host(compare-bar[variant=\"secondary\"]) .bar-label,\n:host(compare-bar:not([variant])) .bar-label,\n:host(compare-bar[variant=\"secondary\"]) .bar-score,\n:host(compare-bar:not([variant])) .bar-score {\n color: var(--color-text-primary);\n font-weight: var(--typography-body-regular-fontWeight);\n}\n\n/* theme-green and theme-red take --status-*-fill and --status-*-on-fill: a\n saturated fill carrying a label on it is exactly the responsibility those\n roles name, and bd-badge variant=\"fill\" already draws it.\n \n This is adopting a decision the system recorded rather than making a new one.\n badge.css.ts: \"green-700 with a white label, rather than the design's\n green-500 with a dark one. green-700 is the lightest step in the family that\n carries white text at 4.5:1 -- it measures 4.75, where green-600 is only\n 3.20.\" So green-500-with-dark-ink was considered there and rejected.\n \n Measured on the built stories, white label on the primary fill:\n theme-green green-500 #15c14f 2.39:1 FAIL -> green-700 #0e8532 4.75:1\n theme-red red-500 #ff0000 4.00:1 FAIL -> red-600 #d60000 5.44:1\n Both are 16px/600, which is not WCAG large text, so the bar is 4.5:1.\n\n Each theme also used to set --cs-icon-color and --cs-icon-filter, eight\n declarations in all, and nothing read either one: the card icon is a <bd-img>\n sized by .card-icon-wrap and given no colour treatment at all. git log -S on\n the reading form finds no commit in the history where a consumer existed, so\n they were written and never wired up rather than orphaned by a later change.\n Removed. They were carrying a paragraph of contrast reasoning about the -500\n steps that read as a live decision, and one of the two occurrences of the raw\n #7c3aed literal -- the fill below is the only one left.\n\n Worth recording so it is not re-derived: green-500 is 2.39:1 on white, which\n is below the 3:1 non-text minimum, so tinting that icon green-500 would have\n been a 1.4.11 question if it had ever happened. It would not have failed even\n then -- compare.ts renders the icon aria-hidden with alt=\"\", which is the\n exemption -- but the margin is why nothing should reach for -500 here later\n on the strength of the deleted comment. */\n:host(bd-compare-section.theme-green) {\n --cs-bar-primary-bg: var(--status-success-fill);\n --cs-bar-primary-fg: var(--status-success-on-fill);\n}\n:host(bd-compare-section.theme-red) {\n --cs-bar-primary-bg: var(--status-error-fill);\n --cs-bar-primary-fg: var(--status-error-on-fill);\n}\n/* theme-dark and theme-purple have no --status-*-fill pair to adopt -- \"dark\"\n and \"purple\" are themes, not statuses -- so the migration above does not\n reach them. They are settled separately, and only one of them is settled.\n\n theme-dark is D1, approved. The label measured 3.35:1 on the blue-400 fill\n and failed. Two directions had precedent here and they look different:\n darken the fill to blue-500 and keep the white label (4.53:1), or keep\n blue-400 and flip the ink dark (5.37:1). The approved direction is the\n second, because blue-400 is deliberately the brighter step so the fill still\n reads on a dark ground -- darkening it to blue-500 would have spent the one\n thing this theme exists for in order to fix the ink.\n\n The ink is --color-text-primary, and that is a responsibility rather than a\n value. Two tokens resolve to neutral-900 today and only one of them means\n this. --status-warning-on-fill is the ink belonging to the *warning* fill,\n and a compare bar is not a warning; taking it for the value would also tie\n this theme to yellow-500's future, so a warning fill later dark enough to\n carry white would turn this label white on light blue. --color-text-primary\n is the default ink for copy on a light ground, which is what a label on a\n light blue fill is, and it is already what the secondary bar's label uses on\n --cs-bar-secondary-bg two rules above. Same job in the same file, same role.\n\n Measured on the built stories at 16px/600, which is not WCAG large text, so\n the bar is 4.5:1:\n theme-dark blue-400 #338bff white #ffffff 3.35:1 FAIL\n -> ink #151719 5.37:1 PASS\n\n theme-purple measures 5.70:1 and passes, so there is no accessibility\n pressure; #7c3aed is a raw hex for a colour the palette does not contain.\n Giving it a token or retiring the theme is a product decision, still open.\n\n This used to add \"and lint:tokens does not report it\", which reads as a gate\n weakness and is not one. lint:tokens carries the literal in ALLOW.hex with\n the reason on the line above it -- no purple in the palette, nearest token\n 34.6 deltaE away -- so the silence is a registered exception, not a miss.\n Checked by probe: an unlisted off-scale hex reports hex-off-scale and fails\n the build, a palette value reports hex-for-token, and this one stays quiet.\n The check:color-coverage side needs its own record, which is what the\n no token: marker below is; the two gates do not share an exemption. */\n:host(bd-compare-section.theme-purple) {\n /* no token: the open product decision recorded above -- purple is not in the\n palette, so neither the fill nor the ink that belongs to it can resolve.\n green and red take --status-*-fill / --status-*-on-fill because they ARE\n statuses; there is no such pair to adopt here, and giving white ink a role\n while its ground stays a literal would record half a decision. */\n --cs-bar-primary-bg: #7c3aed;\n --cs-bar-primary-fg: var(--color-neutral-0); /* no token: as above */\n}\n:host(bd-compare-section.theme-dark) {\n /* no role: nothing in the semantic set resolves to blue-400. That is the\n point of the D1 decision above -- blue-400 is deliberately the brighter\n step so the fill still reads on a dark ground -- so the absence is the\n theme working, not a gap to close. */\n --cs-bar-primary-bg: var(--color-brand-400);\n --cs-bar-primary-fg: var(--color-text-primary);\n --cs-section-text: var(--color-text-inverse);\n}\n\n:host(bd-compare-section.bars-tall) { --cs-bar-height: var(--dimension-56); }\n:host(bd-compare-section.bars-compact) { --cs-bar-height: var(--dimension-40); --cs-gap: var(--spacing-24); }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,upP"}
@@ -1,9 +1,9 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
- import "../../tokens/tokens.ts";
3
- import "../heading/heading.ts";
4
- import "../image/image.ts";
5
- import "../link/link.ts";
6
- import "../paragraph/paragraph.ts";
2
+ import "../../tokens/tokens.js";
3
+ import "../heading/heading.js";
4
+ import "../image/image.js";
5
+ import "../link/link.js";
6
+ import "../paragraph/paragraph.js";
7
7
  type BarVariant = "primary" | "secondary";
8
8
  type CardLayout = "" | "horizontal";
9
9
  declare class CompareBar extends LitElement {