@repobit/dex-system-design 3.1.1 → 4.0.0

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 (1048) hide show
  1. package/CHANGELOG.md +1074 -0
  2. package/README.md +31 -6
  3. package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
  4. package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
  5. package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
  6. package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
  7. package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
  8. package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
  9. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
  10. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
  11. package/dist/src/components/abstract/abstract.css.d.ts +7 -0
  12. package/dist/src/components/abstract/abstract.css.js +2 -0
  13. package/dist/src/components/abstract/abstract.css.js.map +1 -0
  14. package/dist/src/components/abstract/abstract.d.ts +31 -0
  15. package/dist/src/components/abstract/abstract.js +2 -0
  16. package/dist/src/components/abstract/abstract.js.map +1 -0
  17. package/dist/src/components/accordion/accordion-item.d.ts +93 -0
  18. package/dist/src/components/accordion/accordion-item.js +25 -0
  19. package/dist/src/components/accordion/accordion-item.js.map +1 -0
  20. package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
  21. package/dist/src/components/accordion/accordion-keyboard.js +1 -1
  22. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  23. package/dist/src/components/accordion/accordion.css.d.ts +2 -2
  24. package/dist/src/components/accordion/accordion.css.js +1 -1
  25. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  26. package/dist/src/components/accordion/accordion.d.ts +66 -31
  27. package/dist/src/components/accordion/accordion.js +8 -66
  28. package/dist/src/components/accordion/accordion.js.map +1 -1
  29. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
  30. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
  31. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
  32. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  33. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
  34. package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
  35. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  36. package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
  37. package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
  38. package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
  39. package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
  40. package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
  41. package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
  42. package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
  43. package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
  44. package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
  45. package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
  46. package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
  47. package/dist/src/components/annotation/annotation.css.js +1 -1
  48. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  49. package/dist/src/components/annotation/annotation.js +2 -2
  50. package/dist/src/components/annotation/annotation.js.map +1 -1
  51. package/dist/src/components/article/article.css.d.ts +30 -0
  52. package/dist/src/components/article/article.css.js +2 -0
  53. package/dist/src/components/article/article.css.js.map +1 -0
  54. package/dist/src/components/article/article.d.ts +135 -0
  55. package/dist/src/components/article/article.js +39 -0
  56. package/dist/src/components/article/article.js.map +1 -0
  57. package/dist/src/components/audience-card/audience-card.css.js +1 -1
  58. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  59. package/dist/src/components/audience-card/audience-card.d.ts +30 -15
  60. package/dist/src/components/audience-card/audience-card.js +9 -11
  61. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  62. package/dist/src/components/authors/authors.css.d.ts +7 -0
  63. package/dist/src/components/authors/authors.css.js +2 -0
  64. package/dist/src/components/authors/authors.css.js.map +1 -0
  65. package/dist/src/components/authors/authors.d.ts +29 -0
  66. package/dist/src/components/authors/authors.js +7 -0
  67. package/dist/src/components/authors/authors.js.map +1 -0
  68. package/dist/src/components/avatar/avatar.js +6 -6
  69. package/dist/src/components/avatar/avatar.js.map +1 -1
  70. package/dist/src/components/awards/award-marks.css.js +2 -0
  71. package/dist/src/components/awards/award-marks.css.js.map +1 -0
  72. package/dist/src/components/awards/award.css.js +2 -0
  73. package/dist/src/components/awards/award.css.js.map +1 -0
  74. package/dist/src/components/awards/award.d.ts +65 -0
  75. package/dist/src/components/awards/award.js +11 -0
  76. package/dist/src/components/awards/award.js.map +1 -0
  77. package/dist/src/components/awards/awards.css.d.ts +2 -1
  78. package/dist/src/components/awards/awards.css.js +1 -1
  79. package/dist/src/components/awards/awards.css.js.map +1 -1
  80. package/dist/src/components/awards/awards.d.ts +123 -71
  81. package/dist/src/components/awards/awards.js +46 -57
  82. package/dist/src/components/awards/awards.js.map +1 -1
  83. package/dist/src/components/awards/scroll-slides.d.ts +9 -8
  84. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  85. package/dist/src/components/back/back.d.ts +12 -7
  86. package/dist/src/components/back/back.js +6 -6
  87. package/dist/src/components/back/back.js.map +1 -1
  88. package/dist/src/components/badge/badge.css.js +1 -1
  89. package/dist/src/components/badge/badge.css.js.map +1 -1
  90. package/dist/src/components/badge/badge.d.ts +11 -11
  91. package/dist/src/components/badge/badge.js +2 -2
  92. package/dist/src/components/badge/badge.js.map +1 -1
  93. package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
  94. package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
  95. package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
  96. package/dist/src/components/bar-chart/bar-chart.js +42 -0
  97. package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
  98. package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
  99. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  100. package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
  101. package/dist/src/components/bento-grid/bento-grid.js +10 -26
  102. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  103. package/dist/src/components/bento-grid/bento-item.css.js +1 -1
  104. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  105. package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
  106. package/dist/src/components/bento-grid/bento-item.js +9 -26
  107. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  108. package/dist/src/components/blockquote/blockquote.css.js +1 -1
  109. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  110. package/dist/src/components/blockquote/blockquote.d.ts +27 -2
  111. package/dist/src/components/blockquote/blockquote.js +1 -1
  112. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  113. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
  114. package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
  115. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  116. package/dist/src/components/button/button.css.js +1 -1
  117. package/dist/src/components/button/button.css.js.map +1 -1
  118. package/dist/src/components/button/button.d.ts +87 -96
  119. package/dist/src/components/button/button.js +20 -33
  120. package/dist/src/components/button/button.js.map +1 -1
  121. package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
  122. package/dist/src/components/callout/callout.css.js +2 -0
  123. package/dist/src/components/callout/callout.css.js.map +1 -0
  124. package/dist/src/components/callout/callout.d.ts +56 -0
  125. package/dist/src/components/callout/callout.js +28 -0
  126. package/dist/src/components/callout/callout.js.map +1 -0
  127. package/dist/src/components/caption/caption.js +2 -2
  128. package/dist/src/components/caption/caption.js.map +1 -1
  129. package/dist/src/components/card/card-grid.css.js +2 -0
  130. package/dist/src/components/card/card-grid.css.js.map +1 -0
  131. package/dist/src/components/card/card-grid.d.ts +63 -0
  132. package/dist/src/components/card/card-grid.js +10 -0
  133. package/dist/src/components/card/card-grid.js.map +1 -0
  134. package/dist/src/components/card/card.css.js +2 -0
  135. package/dist/src/components/card/card.css.js.map +1 -0
  136. package/dist/src/components/card/card.d.ts +86 -0
  137. package/dist/src/components/card/card.js +15 -0
  138. package/dist/src/components/card/card.js.map +1 -0
  139. package/dist/src/components/carousel/carousel.css.js +1 -1
  140. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  141. package/dist/src/components/carousel/carousel.d.ts +64 -37
  142. package/dist/src/components/carousel/carousel.js +24 -32
  143. package/dist/src/components/carousel/carousel.js.map +1 -1
  144. package/dist/src/components/checkbox/checkbox.d.ts +15 -1
  145. package/dist/src/components/checkbox/checkbox.js +6 -5
  146. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  147. package/dist/src/components/code/code.css.d.ts +15 -0
  148. package/dist/src/components/code/code.css.js +1 -1
  149. package/dist/src/components/code/code.css.js.map +1 -1
  150. package/dist/src/components/code/code.d.ts +100 -4
  151. package/dist/src/components/code/code.js +17 -3
  152. package/dist/src/components/code/code.js.map +1 -1
  153. package/dist/src/components/code/prism-page.d.ts +2 -0
  154. package/dist/src/components/code/prism-page.js +2 -0
  155. package/dist/src/components/code/prism-page.js.map +1 -0
  156. package/dist/src/components/code/prism.d.ts +10 -0
  157. package/dist/src/components/code/prism.js +2 -0
  158. package/dist/src/components/code/prism.js.map +1 -0
  159. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
  160. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  161. package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
  162. package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
  163. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  164. package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
  165. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
  166. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  167. package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
  168. package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
  169. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  170. package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
  171. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  172. package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
  173. package/dist/src/components/cta-banner/cta-banner.js +8 -28
  174. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  175. package/dist/src/components/dialog/dialog.css.js +2 -0
  176. package/dist/src/components/dialog/dialog.css.js.map +1 -0
  177. package/dist/src/components/dialog/dialog.d.ts +76 -0
  178. package/dist/src/components/dialog/dialog.js +32 -0
  179. package/dist/src/components/dialog/dialog.js.map +1 -0
  180. package/dist/src/components/display/display.css.js +1 -1
  181. package/dist/src/components/display/display.css.js.map +1 -1
  182. package/dist/src/components/display/display.d.ts +30 -6
  183. package/dist/src/components/display/display.js +7 -5
  184. package/dist/src/components/display/display.js.map +1 -1
  185. package/dist/src/components/divider/divider.css.d.ts +2 -2
  186. package/dist/src/components/divider/divider.css.js +1 -1
  187. package/dist/src/components/divider/divider.css.js.map +1 -1
  188. package/dist/src/components/divider/divider.d.ts +36 -0
  189. package/dist/src/components/divider/divider.js +21 -0
  190. package/dist/src/components/divider/divider.js.map +1 -0
  191. package/dist/src/components/fact/fact.css.d.ts +1 -0
  192. package/dist/src/components/fact/fact.css.js +2 -0
  193. package/dist/src/components/fact/fact.css.js.map +1 -0
  194. package/dist/src/components/fact/fact.d.ts +37 -0
  195. package/dist/src/components/fact/fact.js +2 -0
  196. package/dist/src/components/fact/fact.js.map +1 -0
  197. package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
  198. package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
  199. package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
  200. package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
  201. package/dist/src/components/feature-columns/feature-columns.js +11 -0
  202. package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
  203. package/dist/src/components/features-tab/features-tab.css.js +1 -1
  204. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  205. package/dist/src/components/features-tab/features-tab.d.ts +21 -6
  206. package/dist/src/components/features-tab/features-tab.js +9 -21
  207. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  208. package/dist/src/components/fieldset/fieldset.d.ts +16 -1
  209. package/dist/src/components/fieldset/fieldset.js +3 -3
  210. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  211. package/dist/src/components/footer/footer-group.css.js +2 -0
  212. package/dist/src/components/footer/footer-group.css.js.map +1 -0
  213. package/dist/src/components/footer/footer-group.d.ts +28 -0
  214. package/dist/src/components/footer/footer-group.js +5 -0
  215. package/dist/src/components/footer/footer-group.js.map +1 -0
  216. package/dist/src/components/footer/footer-locale.js +1 -1
  217. package/dist/src/components/footer/footer-locale.js.map +1 -1
  218. package/dist/src/components/footer/footer-nav.css.js +2 -0
  219. package/dist/src/components/footer/footer-nav.css.js.map +1 -0
  220. package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
  221. package/dist/src/components/footer/footer-nav.js +6 -0
  222. package/dist/src/components/footer/footer-nav.js.map +1 -0
  223. package/dist/src/components/footer/footer.css.js +1 -1
  224. package/dist/src/components/footer/footer.css.js.map +1 -1
  225. package/dist/src/components/footer/footer.d.ts +38 -10
  226. package/dist/src/components/footer/footer.js +71 -93
  227. package/dist/src/components/footer/footer.js.map +1 -1
  228. package/dist/src/components/grid/grid.js +7 -7
  229. package/dist/src/components/h/h.css.js +2 -0
  230. package/dist/src/components/h/h.css.js.map +1 -0
  231. package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
  232. package/dist/src/components/h/h.js +7 -0
  233. package/dist/src/components/h/h.js.map +1 -0
  234. package/dist/src/components/hero/hero.css.js +1 -1
  235. package/dist/src/components/hero/hero.css.js.map +1 -1
  236. package/dist/src/components/hero/hero.d.ts +42 -24
  237. package/dist/src/components/hero/hero.js +15 -19
  238. package/dist/src/components/hero/hero.js.map +1 -1
  239. package/dist/src/components/highlight/highlight.css.js +1 -1
  240. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  241. package/dist/src/components/highlight/highlight.d.ts +21 -12
  242. package/dist/src/components/highlight/highlight.js +1 -4
  243. package/dist/src/components/highlight/highlight.js.map +1 -1
  244. package/dist/src/components/hint/hint.css.d.ts +3 -0
  245. package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
  246. package/dist/src/components/hint/hint.css.js.map +1 -0
  247. package/dist/src/components/hint/hint.d.ts +33 -0
  248. package/dist/src/components/hint/hint.js +4 -0
  249. package/dist/src/components/hint/hint.js.map +1 -0
  250. package/dist/src/components/icons/analysis.d.ts +1 -0
  251. package/dist/src/components/icons/analysis.js +6 -0
  252. package/dist/src/components/icons/analysis.js.map +1 -0
  253. package/dist/src/components/icons/arrow-down.d.ts +1 -0
  254. package/dist/src/components/icons/arrow-down.js +6 -0
  255. package/dist/src/components/icons/arrow-down.js.map +1 -0
  256. package/dist/src/components/icons/arrow-right.d.ts +1 -0
  257. package/dist/src/components/icons/arrow-right.js +6 -0
  258. package/dist/src/components/icons/arrow-right.js.map +1 -0
  259. package/dist/src/components/icons/arrow-up.d.ts +1 -0
  260. package/dist/src/components/icons/arrow-up.js +6 -0
  261. package/dist/src/components/icons/arrow-up.js.map +1 -0
  262. package/dist/src/components/icons/arrow.d.ts +1 -0
  263. package/dist/src/components/icons/arrow.js +6 -0
  264. package/dist/src/components/icons/arrow.js.map +1 -0
  265. package/dist/src/components/icons/brand-signature.d.ts +1 -0
  266. package/dist/src/components/icons/brand-signature.js +6 -0
  267. package/dist/src/components/icons/brand-signature.js.map +1 -0
  268. package/dist/src/components/icons/check.d.ts +1 -0
  269. package/dist/src/components/icons/check.js +6 -0
  270. package/dist/src/components/icons/check.js.map +1 -0
  271. package/dist/src/components/icons/circle-info.d.ts +1 -0
  272. package/dist/src/components/icons/circle-info.js +8 -0
  273. package/dist/src/components/icons/circle-info.js.map +1 -0
  274. package/dist/src/components/icons/clipboard.d.ts +1 -0
  275. package/dist/src/components/icons/clipboard.js +7 -0
  276. package/dist/src/components/icons/clipboard.js.map +1 -0
  277. package/dist/src/components/icons/close.d.ts +1 -0
  278. package/dist/src/components/icons/close.js +6 -0
  279. package/dist/src/components/icons/close.js.map +1 -0
  280. package/dist/src/components/icons/enterprise.d.ts +1 -0
  281. package/dist/src/components/icons/enterprise.js +6 -0
  282. package/dist/src/components/icons/enterprise.js.map +1 -0
  283. package/dist/src/components/icons/envelope.d.ts +1 -0
  284. package/dist/src/components/icons/envelope.js +7 -0
  285. package/dist/src/components/icons/envelope.js.map +1 -0
  286. package/dist/src/components/icons/family.d.ts +1 -0
  287. package/dist/src/components/icons/family.js +8 -0
  288. package/dist/src/components/icons/family.js.map +1 -0
  289. package/dist/src/components/icons/globe.d.ts +1 -0
  290. package/dist/src/components/icons/globe.js +6 -0
  291. package/dist/src/components/icons/globe.js.map +1 -0
  292. package/dist/src/components/icons/guide.d.ts +1 -0
  293. package/dist/src/components/icons/guide.js +6 -0
  294. package/dist/src/components/icons/guide.js.map +1 -0
  295. package/dist/src/components/icons/home.d.ts +1 -0
  296. package/dist/src/components/icons/home.js +6 -0
  297. package/dist/src/components/icons/home.js.map +1 -0
  298. package/dist/src/components/icons/icon.d.ts +60 -0
  299. package/dist/src/components/icons/icon.js +2 -0
  300. package/dist/src/components/icons/icon.js.map +1 -0
  301. package/dist/src/components/icons/icons.d.ts +43 -36
  302. package/dist/src/components/icons/icons.js +1 -1
  303. package/dist/src/components/icons/individual.d.ts +1 -0
  304. package/dist/src/components/icons/individual.js +6 -0
  305. package/dist/src/components/icons/individual.js.map +1 -0
  306. package/dist/src/components/icons/laurel.d.ts +1 -0
  307. package/dist/src/components/icons/laurel.js +13 -0
  308. package/dist/src/components/icons/laurel.js.map +1 -0
  309. package/dist/src/components/icons/machine-learning.d.ts +1 -0
  310. package/dist/src/components/icons/machine-learning.js +6 -0
  311. package/dist/src/components/icons/machine-learning.js.map +1 -0
  312. package/dist/src/components/icons/mark.d.ts +66 -0
  313. package/dist/src/components/icons/mark.js +2 -0
  314. package/dist/src/components/icons/mark.js.map +1 -0
  315. package/dist/src/components/icons/marks/ai.d.ts +1 -0
  316. package/dist/src/components/icons/marks/ai.js +6 -0
  317. package/dist/src/components/icons/marks/ai.js.map +1 -0
  318. package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
  319. package/dist/src/components/icons/marks/av-comparatives.js +12 -0
  320. package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
  321. package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
  322. package/dist/src/components/icons/marks/best-brands.js +12 -0
  323. package/dist/src/components/icons/marks/best-brands.js.map +1 -0
  324. package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
  325. package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
  326. package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
  327. package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
  328. package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
  329. package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
  330. package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
  331. package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
  332. package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
  333. package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
  334. package/dist/src/components/icons/marks/pc-mag.js +11 -0
  335. package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
  336. package/dist/src/components/icons/marks/top-product.d.ts +1 -0
  337. package/dist/src/components/icons/marks/top-product.js +11 -0
  338. package/dist/src/components/icons/marks/top-product.js.map +1 -0
  339. package/dist/src/components/icons/marks.d.ts +29 -28
  340. package/dist/src/components/icons/marks.js +1 -1
  341. package/dist/src/components/icons/minus.d.ts +1 -0
  342. package/dist/src/components/icons/minus.js +6 -0
  343. package/dist/src/components/icons/minus.js.map +1 -0
  344. package/dist/src/components/icons/pause.d.ts +1 -0
  345. package/dist/src/components/icons/pause.js +7 -0
  346. package/dist/src/components/icons/pause.js.map +1 -0
  347. package/dist/src/components/icons/play.d.ts +1 -0
  348. package/dist/src/components/icons/play.js +6 -0
  349. package/dist/src/components/icons/play.js.map +1 -0
  350. package/dist/src/components/icons/plus.d.ts +1 -0
  351. package/dist/src/components/icons/plus.js +6 -0
  352. package/dist/src/components/icons/plus.js.map +1 -0
  353. package/dist/src/components/icons/quote.d.ts +1 -0
  354. package/dist/src/components/icons/quote.js +6 -0
  355. package/dist/src/components/icons/quote.js.map +1 -0
  356. package/dist/src/components/icons/registry.d.ts +122 -0
  357. package/dist/src/components/icons/registry.js +4 -0
  358. package/dist/src/components/icons/registry.js.map +1 -0
  359. package/dist/src/components/icons/small-business.d.ts +1 -0
  360. package/dist/src/components/icons/small-business.js +6 -0
  361. package/dist/src/components/icons/small-business.js.map +1 -0
  362. package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
  363. package/dist/src/components/img/img.css.js.map +1 -0
  364. package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
  365. package/dist/src/components/img/img.js +17 -0
  366. package/dist/src/components/img/img.js.map +1 -0
  367. package/dist/src/components/input/input.css.d.ts +7 -5
  368. package/dist/src/components/input/input.css.js +1 -1
  369. package/dist/src/components/input/input.css.js.map +1 -1
  370. package/dist/src/components/input/input.d.ts +34 -12
  371. package/dist/src/components/input/input.js +30 -29
  372. package/dist/src/components/input/input.js.map +1 -1
  373. package/dist/src/components/install-options/install-option.css.js +2 -0
  374. package/dist/src/components/install-options/install-option.css.js.map +1 -0
  375. package/dist/src/components/install-options/install-option.d.ts +57 -0
  376. package/dist/src/components/install-options/install-option.js +29 -0
  377. package/dist/src/components/install-options/install-option.js.map +1 -0
  378. package/dist/src/components/install-options/install-options.css.js +1 -1
  379. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  380. package/dist/src/components/install-options/install-options.d.ts +42 -31
  381. package/dist/src/components/install-options/install-options.js +42 -85
  382. package/dist/src/components/install-options/install-options.js.map +1 -1
  383. package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
  384. package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
  385. package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
  386. package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
  387. package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
  388. package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
  389. package/dist/src/components/label/label.js +3 -3
  390. package/dist/src/components/label/label.js.map +1 -1
  391. package/dist/src/components/link/link.css.js +1 -1
  392. package/dist/src/components/link/link.css.js.map +1 -1
  393. package/dist/src/components/link/link.d.ts +25 -16
  394. package/dist/src/components/link/link.js +3 -3
  395. package/dist/src/components/link/link.js.map +1 -1
  396. package/dist/src/components/list/list-item/list-item.css.js +1 -1
  397. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  398. package/dist/src/components/list/list-item/list-item.d.ts +9 -7
  399. package/dist/src/components/list/list-item/list-item.js +3 -3
  400. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  401. package/dist/src/components/list/list.d.ts +3 -2
  402. package/dist/src/components/list/list.js +2 -2
  403. package/dist/src/components/list/list.js.map +1 -1
  404. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
  405. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  406. package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
  407. package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
  408. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  409. package/dist/src/components/meta/meta.css.d.ts +8 -0
  410. package/dist/src/components/meta/meta.css.js +2 -0
  411. package/dist/src/components/meta/meta.css.js.map +1 -0
  412. package/dist/src/components/meta/meta.d.ts +37 -0
  413. package/dist/src/components/meta/meta.js +2 -0
  414. package/dist/src/components/meta/meta.js.map +1 -0
  415. package/dist/src/components/motion-art/motion-art.d.ts +39 -2
  416. package/dist/src/components/motion-art/motion-art.js +1 -1
  417. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  418. package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
  419. package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
  420. package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
  421. package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
  422. package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
  423. package/dist/src/components/overview/overview.css.js +1 -1
  424. package/dist/src/components/overview/overview.css.js.map +1 -1
  425. package/dist/src/components/overview/overview.d.ts +23 -12
  426. package/dist/src/components/overview/overview.js +9 -24
  427. package/dist/src/components/overview/overview.js.map +1 -1
  428. package/dist/src/components/p/p.css.js +2 -0
  429. package/dist/src/components/p/p.css.js.map +1 -0
  430. package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
  431. package/dist/src/components/p/p.js +6 -0
  432. package/dist/src/components/p/p.js.map +1 -0
  433. package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
  434. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  435. package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
  436. package/dist/src/components/page-switcher/page-switcher.js +5 -13
  437. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  438. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
  439. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  440. package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
  441. package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
  442. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  443. package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
  444. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  445. package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
  446. package/dist/src/components/partner-banner/partner-banner.js +11 -11
  447. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  448. package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
  449. package/dist/src/components/paste-button/paste-button.css.js +2 -0
  450. package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
  451. package/dist/src/components/paste-button/paste-button.d.ts +68 -0
  452. package/dist/src/components/paste-button/paste-button.js +17 -0
  453. package/dist/src/components/paste-button/paste-button.js.map +1 -0
  454. package/dist/src/components/picture/picture.js +3 -3
  455. package/dist/src/components/picture/picture.js.map +1 -1
  456. package/dist/src/components/post-card/post-card.css.js +1 -1
  457. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  458. package/dist/src/components/post-card/post-card.d.ts +65 -24
  459. package/dist/src/components/post-card/post-card.js +13 -9
  460. package/dist/src/components/post-card/post-card.js.map +1 -1
  461. package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
  462. package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
  463. package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
  464. package/dist/src/components/pricing-card/pricing-card.js +16 -0
  465. package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
  466. package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
  467. package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
  468. package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
  469. package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
  470. package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
  471. package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
  472. package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
  473. package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
  474. package/dist/src/components/pricing-card/pricing-feature.js +19 -0
  475. package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
  476. package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
  477. package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
  478. package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
  479. package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
  480. package/dist/src/components/pricing-card/pricing-group.js +6 -0
  481. package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
  482. package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
  483. package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
  484. package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
  485. package/dist/src/components/pricing-card/pricing-price.js +11 -0
  486. package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
  487. package/dist/src/components/process-steps/process-step.css.js +2 -0
  488. package/dist/src/components/process-steps/process-step.css.js.map +1 -0
  489. package/dist/src/components/process-steps/process-step.d.ts +31 -0
  490. package/dist/src/components/process-steps/process-step.js +6 -0
  491. package/dist/src/components/process-steps/process-step.js.map +1 -0
  492. package/dist/src/components/process-steps/process-steps.css.js +1 -1
  493. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  494. package/dist/src/components/process-steps/process-steps.d.ts +36 -19
  495. package/dist/src/components/process-steps/process-steps.js +5 -26
  496. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  497. package/dist/src/components/product-hero/product-hero.css.js +2 -0
  498. package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
  499. package/dist/src/components/product-hero/product-hero.d.ts +71 -0
  500. package/dist/src/components/product-hero/product-hero.js +123 -0
  501. package/dist/src/components/product-hero/product-hero.js.map +1 -0
  502. package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
  503. package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
  504. package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
  505. package/dist/src/components/product-upsell/product-upsell.js +14 -0
  506. package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
  507. package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
  508. package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
  509. package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
  510. package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
  511. package/dist/src/components/progress-bar/progress-bar.js +15 -0
  512. package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
  513. package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
  514. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  515. package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
  516. package/dist/src/components/quick-answer/quick-answer.js +13 -29
  517. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  518. package/dist/src/components/radio/radio-group.css.js +1 -1
  519. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  520. package/dist/src/components/radio/radio-group.d.ts +9 -5
  521. package/dist/src/components/radio/radio-group.js +5 -5
  522. package/dist/src/components/radio/radio-group.js.map +1 -1
  523. package/dist/src/components/radio/radio.css.d.ts +2 -1
  524. package/dist/src/components/radio/radio.css.js.map +1 -1
  525. package/dist/src/components/radio/radio.d.ts +8 -2
  526. package/dist/src/components/radio/radio.js +6 -5
  527. package/dist/src/components/radio/radio.js.map +1 -1
  528. package/dist/src/components/related-articles/related-articles.css.js +2 -0
  529. package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
  530. package/dist/src/components/related-articles/related-articles.d.ts +52 -0
  531. package/dist/src/components/related-articles/related-articles.js +9 -0
  532. package/dist/src/components/related-articles/related-articles.js.map +1 -0
  533. package/dist/src/components/report-promo/report-promo.css.js +2 -0
  534. package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
  535. package/dist/src/components/report-promo/report-promo.d.ts +70 -0
  536. package/dist/src/components/report-promo/report-promo.js +19 -0
  537. package/dist/src/components/report-promo/report-promo.js.map +1 -0
  538. package/dist/src/components/review/review-grid.css.js +1 -1
  539. package/dist/src/components/review/review-grid.css.js.map +1 -1
  540. package/dist/src/components/review/review-grid.d.ts +27 -6
  541. package/dist/src/components/review/review-grid.js +7 -7
  542. package/dist/src/components/review/review-grid.js.map +1 -1
  543. package/dist/src/components/review/review.css.js +1 -1
  544. package/dist/src/components/review/review.css.js.map +1 -1
  545. package/dist/src/components/review/review.d.ts +24 -17
  546. package/dist/src/components/review/review.js +7 -11
  547. package/dist/src/components/review/review.js.map +1 -1
  548. package/dist/src/components/section/section.css.js +1 -1
  549. package/dist/src/components/section/section.css.js.map +1 -1
  550. package/dist/src/components/section/section.d.ts +8 -6
  551. package/dist/src/components/section/section.js +1 -1
  552. package/dist/src/components/section/section.js.map +1 -1
  553. package/dist/src/components/section-header/section-header.css.js +1 -1
  554. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  555. package/dist/src/components/section-header/section-header.d.ts +22 -23
  556. package/dist/src/components/section-header/section-header.js +6 -8
  557. package/dist/src/components/section-header/section-header.js.map +1 -1
  558. package/dist/src/components/select/select-option.d.ts +29 -0
  559. package/dist/src/components/select/select-option.js +2 -0
  560. package/dist/src/components/select/select-option.js.map +1 -0
  561. package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
  562. package/dist/src/components/select/select.css.js.map +1 -0
  563. package/dist/src/components/select/select.d.ts +78 -0
  564. package/dist/src/components/select/select.js +35 -0
  565. package/dist/src/components/select/select.js.map +1 -0
  566. package/dist/src/components/shared/adopt-styles.d.ts +53 -0
  567. package/dist/src/components/shared/adopt-styles.js +2 -0
  568. package/dist/src/components/shared/adopt-styles.js.map +1 -0
  569. package/dist/src/components/shared/controller.slot.d.ts +65 -0
  570. package/dist/src/components/shared/controller.slot.js +2 -0
  571. package/dist/src/components/shared/controller.slot.js.map +1 -0
  572. package/dist/src/components/shared/events.d.ts +19 -23
  573. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  574. package/dist/src/components/shared/flat-text.d.ts +15 -0
  575. package/dist/src/components/shared/flat-text.js +2 -0
  576. package/dist/src/components/shared/flat-text.js.map +1 -0
  577. package/dist/src/components/shared/form-control.d.ts +27 -3
  578. package/dist/src/components/shared/form-control.js +11 -1
  579. package/dist/src/components/shared/form-control.js.map +1 -1
  580. package/dist/src/components/shared/form-field.css.d.ts +5 -5
  581. package/dist/src/components/shared/form-field.css.js +1 -1
  582. package/dist/src/components/shared/form-field.css.js.map +1 -1
  583. package/dist/src/components/shared/hold.d.ts +14 -0
  584. package/dist/src/components/shared/hold.js +2 -0
  585. package/dist/src/components/shared/hold.js.map +1 -0
  586. package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
  587. package/dist/src/components/shared/prop-vocabulary.js +1 -1
  588. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  589. package/dist/src/components/shared/tablist.d.ts +31 -0
  590. package/dist/src/components/shared/tablist.js +2 -0
  591. package/dist/src/components/shared/tablist.js.map +1 -0
  592. package/dist/src/components/shared/token-scales.d.ts +30 -4
  593. package/dist/src/components/shared/token-scales.js +1 -1
  594. package/dist/src/components/shared/token-scales.js.map +1 -1
  595. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  596. package/dist/src/components/spinner/spinner.js +2 -2
  597. package/dist/src/components/spinner/spinner.js.map +1 -1
  598. package/dist/src/components/spotlight/spotlight.css.js +2 -0
  599. package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
  600. package/dist/src/components/spotlight/spotlight.d.ts +31 -0
  601. package/dist/src/components/spotlight/spotlight.js +18 -0
  602. package/dist/src/components/spotlight/spotlight.js.map +1 -0
  603. package/dist/src/components/stat/stat-highlight.d.ts +1 -1
  604. package/dist/src/components/stat/stat.css.d.ts +1 -1
  605. package/dist/src/components/stat/stat.css.js +1 -1
  606. package/dist/src/components/stat/stat.css.js.map +1 -1
  607. package/dist/src/components/stat/stat.d.ts +41 -1
  608. package/dist/src/components/stat/stat.js +12 -1
  609. package/dist/src/components/stat/stat.js.map +1 -0
  610. package/dist/src/components/switch/switch.css.js +1 -1
  611. package/dist/src/components/switch/switch.css.js.map +1 -1
  612. package/dist/src/components/switch/switch.d.ts +10 -2
  613. package/dist/src/components/switch/switch.js +5 -4
  614. package/dist/src/components/switch/switch.js.map +1 -1
  615. package/dist/src/components/tab-group/tab-group.css.js +2 -0
  616. package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
  617. package/dist/src/components/tab-group/tab-group.d.ts +172 -0
  618. package/dist/src/components/tab-group/tab-group.js +16 -0
  619. package/dist/src/components/tab-group/tab-group.js.map +1 -0
  620. package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
  621. package/dist/src/components/tab-group/tab-panel.js +2 -0
  622. package/dist/src/components/tab-group/tab-panel.js.map +1 -0
  623. package/dist/src/components/tab-group/tab.css.js +2 -0
  624. package/dist/src/components/tab-group/tab.css.js.map +1 -0
  625. package/dist/src/components/tab-group/tab.d.ts +53 -0
  626. package/dist/src/components/tab-group/tab.js +2 -0
  627. package/dist/src/components/tab-group/tab.js.map +1 -0
  628. package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
  629. package/dist/src/components/table-of-contents/reading-line.js +2 -0
  630. package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
  631. package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
  632. package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
  633. package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
  634. package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
  635. package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
  636. package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
  637. package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
  638. package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
  639. package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
  640. package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
  641. package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
  642. package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
  643. package/dist/src/components/tag/tag.css.js +1 -1
  644. package/dist/src/components/tag/tag.css.js.map +1 -1
  645. package/dist/src/components/tag/tag.d.ts +31 -4
  646. package/dist/src/components/tag/tag.js +1 -3
  647. package/dist/src/components/tag/tag.js.map +1 -1
  648. package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
  649. package/dist/src/components/terminal/terminal-cursor.js +1 -1
  650. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  651. package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
  652. package/dist/src/components/terminal/terminal-line.css.js +2 -0
  653. package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
  654. package/dist/src/components/terminal/terminal-line.d.ts +42 -0
  655. package/dist/src/components/terminal/terminal-line.js +8 -0
  656. package/dist/src/components/terminal/terminal-line.js.map +1 -0
  657. package/dist/src/components/terminal/terminal.css.d.ts +2 -0
  658. package/dist/src/components/terminal/terminal.css.js +2 -0
  659. package/dist/src/components/terminal/terminal.css.js.map +1 -0
  660. package/dist/src/components/terminal/terminal.d.ts +52 -0
  661. package/dist/src/components/terminal/terminal.js +19 -0
  662. package/dist/src/components/terminal/terminal.js.map +1 -0
  663. package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
  664. package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
  665. package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
  666. package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
  667. package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
  668. package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
  669. package/dist/src/components/terms/terms.css.d.ts +2 -0
  670. package/dist/src/components/terms/terms.css.js +2 -0
  671. package/dist/src/components/terms/terms.css.js.map +1 -0
  672. package/dist/src/components/terms/terms.d.ts +42 -0
  673. package/dist/src/components/terms/terms.js +9 -0
  674. package/dist/src/components/terms/terms.js.map +1 -0
  675. package/dist/src/components/textarea/textarea.css.d.ts +2 -2
  676. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  677. package/dist/src/components/textarea/textarea.d.ts +15 -6
  678. package/dist/src/components/textarea/textarea.js +13 -17
  679. package/dist/src/components/textarea/textarea.js.map +1 -1
  680. package/dist/src/components/tooltip/tooltip.d.ts +25 -4
  681. package/dist/src/components/tooltip/tooltip.js +5 -8
  682. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  683. package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
  684. package/dist/src/components/trust-panel/trust-card.css.js +2 -0
  685. package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
  686. package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
  687. package/dist/src/components/trust-panel/trust-card.js +10 -0
  688. package/dist/src/components/trust-panel/trust-card.js.map +1 -0
  689. package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
  690. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  691. package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
  692. package/dist/src/components/trust-panel/trust-panel.js +10 -57
  693. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  694. package/dist/src/components/video/video.js +1 -1
  695. package/dist/src/components/video/video.js.map +1 -1
  696. package/dist/src/components/video-player/video-player.d.ts +25 -3
  697. package/dist/src/components/video-player/video-player.js +7 -7
  698. package/dist/src/components/video-player/video-player.js.map +1 -1
  699. package/dist/src/loader/create-loader.d.ts +13 -2
  700. package/dist/src/loader/create-loader.js +1 -1
  701. package/dist/src/loader/create-loader.js.map +1 -1
  702. package/dist/src/loader/loader.d.ts +7 -4
  703. package/dist/src/loader/loader.js.map +1 -1
  704. package/dist/src/loader/registry.js +1 -1
  705. package/dist/src/loader/registry.js.map +1 -1
  706. package/dist/src/tokens/fonts.css +1 -1
  707. package/dist/src/tokens/layout.css +1 -1
  708. package/dist/src/tokens/scheme-layer.d.ts +55 -0
  709. package/dist/src/tokens/scheme-layer.js +5 -0
  710. package/dist/src/tokens/scheme-layer.js.map +1 -0
  711. package/dist/src/tokens/themes/dark.d.ts +64 -0
  712. package/dist/src/tokens/themes/dark.js +2 -0
  713. package/dist/src/tokens/themes/dark.js.map +1 -0
  714. package/dist/src/tokens/tokens.css +1 -1
  715. package/dist/src/tokens/tokens.d.ts +4 -25
  716. package/dist/src/tokens/tokens.js +1 -1
  717. package/dist/src/tokens/tokens.js.map +1 -1
  718. package/dist/src/vendor/prism/LICENSE +21 -0
  719. package/dist/src/vendor/prism/README.md +65 -0
  720. package/dist/src/vendor/prism/prism.d.ts +7 -0
  721. package/dist/src/vendor/prism/prism.js +13 -0
  722. package/package.json +163 -105
  723. package/schemas/README.md +55 -1
  724. package/schemas/component-manifest.json +4546 -3215
  725. package/schemas/figma-component-map.json +3247 -0
  726. package/schemas/manifest-omissions.json +1 -26
  727. package/schemas/page-schema.json +28 -1
  728. package/dist/src/components/accordion/accordion-bg.css.js +0 -2
  729. package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
  730. package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
  731. package/dist/src/components/accordion/accordion-bg.js +0 -76
  732. package/dist/src/components/accordion/accordion-bg.js.map +0 -1
  733. package/dist/src/components/alert/alert.css.js +0 -2
  734. package/dist/src/components/alert/alert.css.js.map +0 -1
  735. package/dist/src/components/alert/alert.d.ts +0 -55
  736. package/dist/src/components/alert/alert.js +0 -28
  737. package/dist/src/components/alert/alert.js.map +0 -1
  738. package/dist/src/components/anchor/anchor-nav.css.js +0 -2
  739. package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
  740. package/dist/src/components/anchor/anchor-nav.js +0 -67
  741. package/dist/src/components/anchor/anchor-nav.js.map +0 -1
  742. package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
  743. package/dist/src/components/awards/awards-flex.css.js +0 -2
  744. package/dist/src/components/awards/awards-flex.css.js.map +0 -1
  745. package/dist/src/components/awards/awards-flex.d.ts +0 -65
  746. package/dist/src/components/awards/awards-flex.js +0 -68
  747. package/dist/src/components/awards/awards-flex.js.map +0 -1
  748. package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
  749. package/dist/src/components/awards/awards-spotlight.css.js +0 -2
  750. package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
  751. package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
  752. package/dist/src/components/awards/awards-spotlight.js +0 -51
  753. package/dist/src/components/awards/awards-spotlight.js.map +0 -1
  754. package/dist/src/components/card-features/card-features.css.js +0 -2
  755. package/dist/src/components/card-features/card-features.css.js.map +0 -1
  756. package/dist/src/components/card-features/card-features.d.ts +0 -43
  757. package/dist/src/components/card-features/card-features.js +0 -37
  758. package/dist/src/components/card-features/card-features.js.map +0 -1
  759. package/dist/src/components/cards/card.css.js +0 -2
  760. package/dist/src/components/cards/card.css.js.map +0 -1
  761. package/dist/src/components/cards/card.d.ts +0 -61
  762. package/dist/src/components/cards/card.js +0 -54
  763. package/dist/src/components/cards/card.js.map +0 -1
  764. package/dist/src/components/compare/compare.css.js +0 -2
  765. package/dist/src/components/compare/compare.css.js.map +0 -1
  766. package/dist/src/components/compare/compare.d.ts +0 -79
  767. package/dist/src/components/compare/compare.js +0 -122
  768. package/dist/src/components/compare/compare.js.map +0 -1
  769. package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
  770. package/dist/src/components/divider/divider-horizontal.js +0 -11
  771. package/dist/src/components/divider/divider-horizontal.js.map +0 -1
  772. package/dist/src/components/divider/divider-vertical.d.ts +0 -16
  773. package/dist/src/components/divider/divider-vertical.js +0 -12
  774. package/dist/src/components/divider/divider-vertical.js.map +0 -1
  775. package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
  776. package/dist/src/components/dropdown/dropdown.d.ts +0 -49
  777. package/dist/src/components/dropdown/dropdown.js +0 -36
  778. package/dist/src/components/dropdown/dropdown.js.map +0 -1
  779. package/dist/src/components/features/features.css.js +0 -2
  780. package/dist/src/components/features/features.css.js.map +0 -1
  781. package/dist/src/components/features/features.d.ts +0 -21
  782. package/dist/src/components/features/features.js +0 -28
  783. package/dist/src/components/features/features.js.map +0 -1
  784. package/dist/src/components/footer/footer-images.d.ts +0 -3
  785. package/dist/src/components/footer/footer-images.js +0 -9
  786. package/dist/src/components/footer/footer-images.js.map +0 -1
  787. package/dist/src/components/footer/footer-links-group.css.js +0 -2
  788. package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
  789. package/dist/src/components/footer/footer-links-group.d.ts +0 -13
  790. package/dist/src/components/footer/footer-links-group.js +0 -5
  791. package/dist/src/components/footer/footer-links-group.js.map +0 -1
  792. package/dist/src/components/footer/footer-lp.d.ts +0 -26
  793. package/dist/src/components/footer/footer-lp.js +0 -45
  794. package/dist/src/components/footer/footer-lp.js.map +0 -1
  795. package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
  796. package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
  797. package/dist/src/components/footer/footer-nav-menu.js +0 -6
  798. package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
  799. package/dist/src/components/header/header-code.css.js +0 -2
  800. package/dist/src/components/header/header-code.css.js.map +0 -1
  801. package/dist/src/components/header/header-code.d.ts +0 -50
  802. package/dist/src/components/header/header-code.js +0 -80
  803. package/dist/src/components/header/header-code.js.map +0 -1
  804. package/dist/src/components/header/header.css.js +0 -2
  805. package/dist/src/components/header/header.css.js.map +0 -1
  806. package/dist/src/components/header/header.d.ts +0 -32
  807. package/dist/src/components/header/header.js +0 -165
  808. package/dist/src/components/header/header.js.map +0 -1
  809. package/dist/src/components/heading/heading.css.js +0 -2
  810. package/dist/src/components/heading/heading.css.js.map +0 -1
  811. package/dist/src/components/heading/heading.js +0 -6
  812. package/dist/src/components/heading/heading.js.map +0 -1
  813. package/dist/src/components/help-text/help-text.css.d.ts +0 -3
  814. package/dist/src/components/help-text/help-text.css.js.map +0 -1
  815. package/dist/src/components/help-text/help-text.d.ts +0 -14
  816. package/dist/src/components/help-text/help-text.js +0 -4
  817. package/dist/src/components/help-text/help-text.js.map +0 -1
  818. package/dist/src/components/icons/analysis-icon.d.ts +0 -11
  819. package/dist/src/components/icons/analysis-icon.js +0 -6
  820. package/dist/src/components/icons/analysis-icon.js.map +0 -1
  821. package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
  822. package/dist/src/components/icons/arrow-down-icon.js +0 -6
  823. package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
  824. package/dist/src/components/icons/arrow-icon.d.ts +0 -37
  825. package/dist/src/components/icons/arrow-icon.js +0 -6
  826. package/dist/src/components/icons/arrow-icon.js.map +0 -1
  827. package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
  828. package/dist/src/components/icons/arrow-right-icon.js +0 -6
  829. package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
  830. package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
  831. package/dist/src/components/icons/arrow-up-icon.js +0 -6
  832. package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
  833. package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
  834. package/dist/src/components/icons/av-comparatives-icon.js +0 -13
  835. package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
  836. package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
  837. package/dist/src/components/icons/bd-ai-icon.js +0 -6
  838. package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
  839. package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
  840. package/dist/src/components/icons/best-brands-icon.js +0 -15
  841. package/dist/src/components/icons/best-brands-icon.js.map +0 -1
  842. package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
  843. package/dist/src/components/icons/brand-signature-icon.js +0 -6
  844. package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
  845. package/dist/src/components/icons/check-icon.d.ts +0 -22
  846. package/dist/src/components/icons/check-icon.js +0 -6
  847. package/dist/src/components/icons/check-icon.js.map +0 -1
  848. package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
  849. package/dist/src/components/icons/circle-info-icon.js +0 -8
  850. package/dist/src/components/icons/circle-info-icon.js.map +0 -1
  851. package/dist/src/components/icons/close-icon.d.ts +0 -11
  852. package/dist/src/components/icons/close-icon.js +0 -6
  853. package/dist/src/components/icons/close-icon.js.map +0 -1
  854. package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
  855. package/dist/src/components/icons/enterprise-icon.js +0 -6
  856. package/dist/src/components/icons/enterprise-icon.js.map +0 -1
  857. package/dist/src/components/icons/family-icon.d.ts +0 -11
  858. package/dist/src/components/icons/family-icon.js +0 -8
  859. package/dist/src/components/icons/family-icon.js.map +0 -1
  860. package/dist/src/components/icons/globe-icon.d.ts +0 -11
  861. package/dist/src/components/icons/globe-icon.js +0 -6
  862. package/dist/src/components/icons/globe-icon.js.map +0 -1
  863. package/dist/src/components/icons/guide-icon.d.ts +0 -11
  864. package/dist/src/components/icons/guide-icon.js +0 -6
  865. package/dist/src/components/icons/guide-icon.js.map +0 -1
  866. package/dist/src/components/icons/home-icon.d.ts +0 -11
  867. package/dist/src/components/icons/home-icon.js +0 -6
  868. package/dist/src/components/icons/home-icon.js.map +0 -1
  869. package/dist/src/components/icons/icon-element.d.ts +0 -58
  870. package/dist/src/components/icons/icon-element.js +0 -2
  871. package/dist/src/components/icons/icon-element.js.map +0 -1
  872. package/dist/src/components/icons/individual-icon.d.ts +0 -11
  873. package/dist/src/components/icons/individual-icon.js +0 -6
  874. package/dist/src/components/icons/individual-icon.js.map +0 -1
  875. package/dist/src/components/icons/laurel-icon.d.ts +0 -11
  876. package/dist/src/components/icons/laurel-icon.js +0 -14
  877. package/dist/src/components/icons/laurel-icon.js.map +0 -1
  878. package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
  879. package/dist/src/components/icons/machine-learning-icon.js +0 -6
  880. package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
  881. package/dist/src/components/icons/minus-icon.d.ts +0 -11
  882. package/dist/src/components/icons/minus-icon.js +0 -7
  883. package/dist/src/components/icons/minus-icon.js.map +0 -1
  884. package/dist/src/components/icons/missing-icon.d.ts +0 -41
  885. package/dist/src/components/icons/missing-icon.js +0 -8
  886. package/dist/src/components/icons/missing-icon.js.map +0 -1
  887. package/dist/src/components/icons/pause-icon.d.ts +0 -11
  888. package/dist/src/components/icons/pause-icon.js +0 -7
  889. package/dist/src/components/icons/pause-icon.js.map +0 -1
  890. package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
  891. package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
  892. package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
  893. package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
  894. package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
  895. package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
  896. package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
  897. package/dist/src/components/icons/pc-mag-icon.js +0 -14
  898. package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
  899. package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
  900. package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
  901. package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
  902. package/dist/src/components/icons/play-icon.d.ts +0 -11
  903. package/dist/src/components/icons/play-icon.js +0 -6
  904. package/dist/src/components/icons/play-icon.js.map +0 -1
  905. package/dist/src/components/icons/plus-icon.d.ts +0 -11
  906. package/dist/src/components/icons/plus-icon.js +0 -6
  907. package/dist/src/components/icons/plus-icon.js.map +0 -1
  908. package/dist/src/components/icons/quote-icon.d.ts +0 -20
  909. package/dist/src/components/icons/quote-icon.js +0 -6
  910. package/dist/src/components/icons/quote-icon.js.map +0 -1
  911. package/dist/src/components/icons/small-business-icon.d.ts +0 -11
  912. package/dist/src/components/icons/small-business-icon.js +0 -6
  913. package/dist/src/components/icons/small-business-icon.js.map +0 -1
  914. package/dist/src/components/icons/top-product-icon.d.ts +0 -13
  915. package/dist/src/components/icons/top-product-icon.js +0 -14
  916. package/dist/src/components/icons/top-product-icon.js.map +0 -1
  917. package/dist/src/components/image/image.css.js.map +0 -1
  918. package/dist/src/components/image/image.js +0 -17
  919. package/dist/src/components/image/image.js.map +0 -1
  920. package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
  921. package/dist/src/components/input/input-clipboard.css.js +0 -2
  922. package/dist/src/components/input/input-clipboard.css.js.map +0 -1
  923. package/dist/src/components/input/input-clipboard.d.ts +0 -52
  924. package/dist/src/components/input/input-clipboard.js +0 -62
  925. package/dist/src/components/input/input-clipboard.js.map +0 -1
  926. package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
  927. package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
  928. package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
  929. package/dist/src/components/light-carousel/light-carousel.js +0 -34
  930. package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
  931. package/dist/src/components/modal/modal.css.js +0 -2
  932. package/dist/src/components/modal/modal.css.js.map +0 -1
  933. package/dist/src/components/modal/modal.d.ts +0 -52
  934. package/dist/src/components/modal/modal.js +0 -17
  935. package/dist/src/components/modal/modal.js.map +0 -1
  936. package/dist/src/components/paragraph/paragraph.css.js +0 -2
  937. package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
  938. package/dist/src/components/paragraph/paragraph.js +0 -6
  939. package/dist/src/components/paragraph/paragraph.js.map +0 -1
  940. package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
  941. package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
  942. package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
  943. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
  944. package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
  945. package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
  946. package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
  947. package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
  948. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
  949. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
  950. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
  951. package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
  952. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
  953. package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
  954. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
  955. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
  956. package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
  957. package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
  958. package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
  959. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
  960. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
  961. package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
  962. package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
  963. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
  964. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
  965. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
  966. package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
  967. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
  968. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
  969. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
  970. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
  971. package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
  972. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
  973. package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
  974. package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
  975. package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
  976. package/dist/src/components/pricing-cards/pricing-card.js +0 -258
  977. package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
  978. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
  979. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
  980. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
  981. package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
  982. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
  983. package/dist/src/components/progress/progress.css.d.ts +0 -3
  984. package/dist/src/components/progress/progress.css.js +0 -2
  985. package/dist/src/components/progress/progress.css.js.map +0 -1
  986. package/dist/src/components/progress/progress.d.ts +0 -19
  987. package/dist/src/components/progress/progress.js +0 -11
  988. package/dist/src/components/progress/progress.js.map +0 -1
  989. package/dist/src/components/radio/toggle-radio.d.ts +0 -28
  990. package/dist/src/components/radio/toggle-radio.js +0 -15
  991. package/dist/src/components/radio/toggle-radio.js.map +0 -1
  992. package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
  993. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
  994. package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
  995. package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
  996. package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
  997. package/dist/src/components/stat/stat-tile.d.ts +0 -24
  998. package/dist/src/components/stat/stat-tile.js +0 -7
  999. package/dist/src/components/stat/stat-tile.js.map +0 -1
  1000. package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
  1001. package/dist/src/components/tab-list/tab-list.css.js +0 -2
  1002. package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
  1003. package/dist/src/components/tab-list/tab-list.d.ts +0 -99
  1004. package/dist/src/components/tab-list/tab-list.js +0 -25
  1005. package/dist/src/components/tab-list/tab-list.js.map +0 -1
  1006. package/dist/src/components/tabs/tabs.css.js +0 -2
  1007. package/dist/src/components/tabs/tabs.css.js.map +0 -1
  1008. package/dist/src/components/tabs/tabs.d.ts +0 -69
  1009. package/dist/src/components/tabs/tabs.js +0 -29
  1010. package/dist/src/components/tabs/tabs.js.map +0 -1
  1011. package/dist/src/components/terminal/terminal-message.css.js +0 -2
  1012. package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
  1013. package/dist/src/components/terminal/terminal-message.d.ts +0 -44
  1014. package/dist/src/components/terminal/terminal-message.js +0 -68
  1015. package/dist/src/components/terminal/terminal-message.js.map +0 -1
  1016. package/dist/src/components/termsOfUse/terms.css.js +0 -2
  1017. package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
  1018. package/dist/src/components/termsOfUse/terms.d.ts +0 -22
  1019. package/dist/src/components/termsOfUse/terms.js +0 -78
  1020. package/dist/src/components/termsOfUse/terms.js.map +0 -1
  1021. /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
  1022. /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
  1023. /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
  1024. /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
  1025. /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
  1026. /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
  1027. /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
  1028. /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
  1029. /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
  1030. /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
  1031. /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
  1032. /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
  1033. /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
  1034. /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
  1035. /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
  1036. /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
  1037. /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
  1038. /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
  1039. /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
  1040. /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
  1041. /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
  1042. /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
  1043. /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
  1044. /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
  1045. /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
  1046. /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
  1047. /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
  1048. /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-slides.js","names":["ScrollSlides","host","scroller","onSlide","el","method","on","type","index","sign"],"sources":["../../../../src/components/awards/scroll-slides.ts"],"sourcesContent":["import type { ReactiveController, ReactiveElement } from \"lit\";\n\ninterface ScrollSlidesOptions {\n scroller: string;\n onSlide : (index: number) => void;\n}\n\n/**\n * Whole-width slides in a scroll-snap scroller: the two awards carousels.\n *\n * bd-awards-spotlight and bd-awards-flex used to move their slides with an\n * inline translateX on a track inside an overflow: hidden window, so only the\n * dots could move them: a phone could not swipe, a trackpad could not scroll,\n * and in a right-to-left page the slides ran the wrong way. The window is a\n * scroller now (overflow-x, scroll-snap-type, one stop a slide) and the\n * browser moves it for every input it has, the way bd-carousel-section's\n * track already works.\n *\n * What is left for script is the two-way link with the dots:\n * - the scroller settles on a slide -> the host is told which (onSlide)\n * - the host's current slide changes (a dot, autoplay) -> go() scrolls there\n *\n * Every slide is the scroller's own width, so a slide's index is how many\n * widths the scroller has travelled from its start. scrollLeft runs negative\n * in a right-to-left scroller, which the absolute value and the sign in go()\n * account for.\n */\nexport class ScrollSlides implements ReactiveController {\n host : ReactiveElement;\n _selector: string;\n _onSlide : (index: number) => void;\n _el : HTMLElement | null;\n _seeking : number;\n _frame : number;\n _onScroll: () => void;\n _onGrab : () => void;\n _wanted : number;\n _pending : boolean;\n _resize : ResizeObserver;\n\n /**\n * @param host\n * @param options\n * scroller -- a selector in the host's render root;\n * onSlide -- the slide a visitor's scroll came to rest on.\n */\n constructor(host: ReactiveElement, { scroller, onSlide }: ScrollSlidesOptions) {\n this.host = host;\n this._selector = scroller;\n this._onSlide = onSlide;\n this._el = null;\n /* The slide go() asked for, while the smooth scroll there is on its way:\n the slides it passes are not the visitor's choice. -1 when none. */\n this._seeking = -1;\n this._frame = 0;\n this._onScroll = () => {\n cancelAnimationFrame(this._frame);\n this._frame = requestAnimationFrame(() => this._read());\n };\n // a visitor taking hold of the scroller ends any scroll go() started\n this._onGrab = () => { this._seeking = -1; };\n /* A go() asked of a scroller with no width -- hidden when it was asked --\n cannot scroll, so it waits, and runs once the scroller has a width.\n Only that one: any other difference between the slide shown and the\n last one asked for is a visitor's scroll the host has yet to hear of. */\n this._wanted = 0;\n this._pending = false;\n this._resize = new ResizeObserver(() => {\n if (this._pending && this._el?.clientWidth) this.go(this._wanted);\n });\n host.addController(this);\n }\n\n hostUpdated() {\n const el = this.host.renderRoot.querySelector<HTMLElement>(this._selector);\n if (el === this._el) return;\n this._listen(false);\n this._el = el;\n this._listen(true);\n }\n\n /* Put back on the page -- moved, or re-inserted by a framework -- the host\n need not render again, and the scroller it rendered is still there, so\n it is listened to again now. Waiting for the next update left a swipe\n moving nothing: no dot followed, and the slide it brought in stayed\n inert. */\n hostConnected() {\n if (this.host.hasUpdated) this.hostUpdated();\n }\n\n hostDisconnected() {\n this._listen(false);\n this._el = null;\n cancelAnimationFrame(this._frame);\n }\n\n _listen(on: boolean) {\n const el = this._el;\n if (!el) return;\n const method = on ? \"addEventListener\" : \"removeEventListener\";\n el[method](\"scroll\", this._onScroll, { passive: true });\n for (const type of [\"pointerdown\", \"touchstart\", \"wheel\", \"keydown\"]) {\n el[method](type, this._onGrab, { passive: true });\n }\n if (on) this._resize.observe(el);\n else this._resize.unobserve(el);\n }\n\n /** The slide the scroller is nearest: whole widths from its start, either way round. */\n get index() {\n const el = this._el;\n if (!el?.clientWidth) return 0;\n return Math.round(Math.abs(el.scrollLeft) / el.clientWidth);\n }\n\n /** Bring slide `index` into the scroller -- smoothly, or at once under reduced motion (the stylesheet's scroll-behavior). */\n go(index: number) {\n const el = this._el;\n this._wanted = index;\n this._pending = false;\n if (!el) return;\n /* Compared with where the scroller is headed, not where it is: mid-glide\n from slide 1 to 2 it is still nearest 1, so a dot asking for 1 was\n dropped, the glide landed on 2, and the dots said 1 over a slide drawn\n inert. */\n if ((this._seeking === -1 ? this.index : this._seeking) === index) return;\n /* With no width there is nowhere to scroll and no scroll to end the\n seek, which would then hold every visitor's scroll off; _resize brings\n the slide in once the scroller is shown. */\n if (!el.clientWidth) {\n this._pending = true;\n return;\n }\n this._seeking = index;\n const sign = getComputedStyle(el).direction === \"rtl\" ? -1 : 1;\n el.scrollTo({ left: sign * index * el.clientWidth });\n }\n\n _read() {\n const index = this.index;\n if (this._seeking !== -1) {\n if (index === this._seeking) this._seeking = -1;\n return;\n }\n this._onSlide(index);\n }\n}\n"],"mappings":"AA2BA,IAAaA,EAAb,KAAwD,CAmBtD,YAAY,EAAuB,CAAE,WAAU,WAAgC,CAC7E,KAAK,KAAOC,EACZ,KAAK,UAAYC,EACjB,KAAK,SAAWC,EAChB,KAAK,IAAM,KAGX,KAAK,SAAW,GAChB,KAAK,OAAS,EACd,KAAK,cAAkB,CACrB,qBAAqB,KAAK,MAAM,EAChC,KAAK,OAAS,0BAA4B,KAAK,MAAM,CAAC,CACxD,EAEA,KAAK,YAAgB,CAAE,KAAK,SAAW,EAAI,EAK3C,KAAK,QAAU,EACf,KAAK,SAAW,GAChB,KAAK,QAAU,IAAI,mBAAqB,CAClC,KAAK,UAAY,KAAK,KAAK,aAAa,KAAK,GAAG,KAAK,OAAO,CAClE,CAAC,EACDF,EAAK,cAAc,IAAI,CACzB,CAEA,aAAc,CACZ,IAAMG,EAAK,KAAK,KAAK,WAAW,cAA2B,KAAK,SAAS,EACrEA,IAAO,KAAK,MAChB,KAAK,QAAQ,EAAK,EAClB,KAAK,IAAMA,EACX,KAAK,QAAQ,EAAI,EACnB,CAOA,eAAgB,CACV,KAAK,KAAK,YAAY,KAAK,YAAY,CAC7C,CAEA,kBAAmB,CACjB,KAAK,QAAQ,EAAK,EAClB,KAAK,IAAM,KACX,qBAAqB,KAAK,MAAM,CAClC,CAEA,QAAQ,EAAa,CACnB,IAAMA,EAAK,KAAK,IAChB,GAAI,CAACA,EAAI,OACT,IAAMC,EAASC,EAAK,mBAAqB,sBACzCF,EAAGC,EAAO,CAAC,SAAU,KAAK,UAAW,CAAE,QAAS,EAAK,CAAC,EACtD,IAAK,IAAME,IAAQ,CAAC,cAAe,aAAc,QAAS,SAAS,EACjEH,EAAGC,EAAO,CAACE,EAAM,KAAK,QAAS,CAAE,QAAS,EAAK,CAAC,EAE9CD,EAAI,KAAK,QAAQ,QAAQF,CAAE,EAC1B,KAAK,QAAQ,UAAUA,CAAE,CAChC,CAGA,IAAI,OAAQ,CACV,IAAMA,EAAK,KAAK,IAEhB,OADKA,GAAI,YACF,KAAK,MAAM,KAAK,IAAIA,EAAG,UAAU,EAAIA,EAAG,WAAW,EAD7B,CAE/B,CAGA,GAAG,EAAe,CAChB,IAAMA,EAAK,KAAK,IAQhB,GAPA,KAAK,QAAUI,EACf,KAAK,SAAW,GACZ,CAACJ,IAKA,KAAK,WAAa,GAAK,KAAK,MAAQ,KAAK,YAAcI,EAAO,OAInE,GAAI,CAACJ,EAAG,YAAa,CACnB,KAAK,SAAW,GAChB,MACF,CACA,KAAK,SAAWI,EAChB,IAAMC,EAAO,iBAAiBL,CAAE,CAAC,CAAC,YAAc,MAAQ,GAAK,EAC7DA,EAAG,SAAS,CAAE,KAAMK,EAAOD,EAAQJ,EAAG,WAAY,CAAC,CACrD,CAEA,OAAQ,CACN,IAAMI,EAAQ,KAAK,MACf,KAAK,WAAa,GAItB,KAAK,SAASA,CAAK,EAHbA,IAAU,KAAK,WAAU,KAAK,SAAW,GAIjD,CACF,E"}
1
+ {"version":3,"file":"scroll-slides.js","names":["ScrollSlides","host","scroller","onSlide","el","method","on","type","index","sign"],"sources":["../../../../src/components/awards/scroll-slides.ts"],"sourcesContent":["import type { ReactiveController, ReactiveElement } from \"lit\";\n\ninterface ScrollSlidesOptions {\n scroller: string;\n onSlide : (index: number) => void;\n}\n\n/**\n * Whole-width slides in a scroll-snap scroller: bd-awards' carousel, which\n * its quotes and spotlight layouts share.\n *\n * Its two 3.x tags, bd-awards-spotlight and bd-awards-flex, used to move\n * their slides with an inline translateX on a track inside an overflow:\n * hidden window, so only the dots could move them: a phone could not swipe,\n * a trackpad could not scroll, and in a right-to-left page the slides ran the\n * wrong way. The window is a scroller now (overflow-x, scroll-snap-type, one\n * stop a slide) and the browser moves it for every input it has, the way\n * bd-carousel's track already works.\n *\n * What is left for script is the two-way link with the dots:\n * - the scroller settles on a slide -> the host is told which (onSlide)\n * - the host's current slide changes (a dot, autoplay) -> go() scrolls there\n *\n * Every slide is the scroller's own width, so a slide's index is how many\n * widths the scroller has travelled from its start. scrollLeft runs negative\n * in a right-to-left scroller, which the absolute value and the sign in go()\n * account for.\n */\nexport class ScrollSlides implements ReactiveController {\n host : ReactiveElement;\n _selector: string;\n _onSlide : (index: number) => void;\n _el : HTMLElement | null;\n _seeking : number;\n _frame : number;\n _onScroll: () => void;\n _onGrab : () => void;\n _wanted : number;\n _pending : boolean;\n _resize : ResizeObserver;\n\n /**\n * @param host\n * @param options\n * scroller -- a selector in the host's render root;\n * onSlide -- the slide a visitor's scroll came to rest on.\n */\n constructor(host: ReactiveElement, { scroller, onSlide }: ScrollSlidesOptions) {\n this.host = host;\n this._selector = scroller;\n this._onSlide = onSlide;\n this._el = null;\n /* The slide go() asked for, while the smooth scroll there is on its way:\n the slides it passes are not the visitor's choice. -1 when none. */\n this._seeking = -1;\n this._frame = 0;\n this._onScroll = () => {\n cancelAnimationFrame(this._frame);\n this._frame = requestAnimationFrame(() => this._read());\n };\n // a visitor taking hold of the scroller ends any scroll go() started\n this._onGrab = () => { this._seeking = -1; };\n /* A go() asked of a scroller with no width -- hidden when it was asked --\n cannot scroll, so it waits, and runs once the scroller has a width.\n Only that one: any other difference between the slide shown and the\n last one asked for is a visitor's scroll the host has yet to hear of. */\n this._wanted = 0;\n this._pending = false;\n this._resize = new ResizeObserver(() => {\n if (this._pending && this._el?.clientWidth) this.go(this._wanted);\n });\n host.addController(this);\n }\n\n hostUpdated() {\n const el = this.host.renderRoot.querySelector<HTMLElement>(this._selector);\n if (el === this._el) return;\n this._listen(false);\n this._el = el;\n this._listen(true);\n }\n\n /* Put back on the page -- moved, or re-inserted by a framework -- the host\n need not render again, and the scroller it rendered is still there, so\n it is listened to again now. Waiting for the next update left a swipe\n moving nothing: no dot followed, and the slide it brought in stayed\n inert. */\n hostConnected() {\n if (this.host.hasUpdated) this.hostUpdated();\n }\n\n hostDisconnected() {\n this._listen(false);\n this._el = null;\n cancelAnimationFrame(this._frame);\n }\n\n _listen(on: boolean) {\n const el = this._el;\n if (!el) return;\n const method = on ? \"addEventListener\" : \"removeEventListener\";\n el[method](\"scroll\", this._onScroll, { passive: true });\n for (const type of [\"pointerdown\", \"touchstart\", \"wheel\", \"keydown\"]) {\n el[method](type, this._onGrab, { passive: true });\n }\n if (on) this._resize.observe(el);\n else this._resize.unobserve(el);\n }\n\n /** The slide the scroller is nearest: whole widths from its start, either way round. */\n get index() {\n const el = this._el;\n if (!el?.clientWidth) return 0;\n return Math.round(Math.abs(el.scrollLeft) / el.clientWidth);\n }\n\n /** Bring slide `index` into the scroller -- smoothly, or at once under reduced motion (the stylesheet's scroll-behavior). */\n go(index: number) {\n const el = this._el;\n this._wanted = index;\n this._pending = false;\n if (!el) return;\n /* Compared with where the scroller is headed, not where it is: mid-glide\n from slide 1 to 2 it is still nearest 1, so a dot asking for 1 was\n dropped, the glide landed on 2, and the dots said 1 over a slide drawn\n inert. */\n if ((this._seeking === -1 ? this.index : this._seeking) === index) return;\n /* With no width there is nowhere to scroll and no scroll to end the\n seek, which would then hold every visitor's scroll off; _resize brings\n the slide in once the scroller is shown. */\n if (!el.clientWidth) {\n this._pending = true;\n return;\n }\n this._seeking = index;\n const sign = getComputedStyle(el).direction === \"rtl\" ? -1 : 1;\n el.scrollTo({ left: sign * index * el.clientWidth });\n }\n\n _read() {\n const index = this.index;\n if (this._seeking !== -1) {\n if (index === this._seeking) this._seeking = -1;\n return;\n }\n this._onSlide(index);\n }\n}\n"],"mappings":"AA4BA,IAAaA,EAAb,KAAwD,CAmBtD,YAAY,EAAuB,CAAE,WAAU,WAAgC,CAC7E,KAAK,KAAOC,EACZ,KAAK,UAAYC,EACjB,KAAK,SAAWC,EAChB,KAAK,IAAM,KAGX,KAAK,SAAW,GAChB,KAAK,OAAS,EACd,KAAK,cAAkB,CACrB,qBAAqB,KAAK,MAAM,EAChC,KAAK,OAAS,0BAA4B,KAAK,MAAM,CAAC,CACxD,EAEA,KAAK,YAAgB,CAAE,KAAK,SAAW,EAAI,EAK3C,KAAK,QAAU,EACf,KAAK,SAAW,GAChB,KAAK,QAAU,IAAI,mBAAqB,CAClC,KAAK,UAAY,KAAK,KAAK,aAAa,KAAK,GAAG,KAAK,OAAO,CAClE,CAAC,EACDF,EAAK,cAAc,IAAI,CACzB,CAEA,aAAc,CACZ,IAAMG,EAAK,KAAK,KAAK,WAAW,cAA2B,KAAK,SAAS,EACrEA,IAAO,KAAK,MAChB,KAAK,QAAQ,EAAK,EAClB,KAAK,IAAMA,EACX,KAAK,QAAQ,EAAI,EACnB,CAOA,eAAgB,CACV,KAAK,KAAK,YAAY,KAAK,YAAY,CAC7C,CAEA,kBAAmB,CACjB,KAAK,QAAQ,EAAK,EAClB,KAAK,IAAM,KACX,qBAAqB,KAAK,MAAM,CAClC,CAEA,QAAQ,EAAa,CACnB,IAAMA,EAAK,KAAK,IAChB,GAAI,CAACA,EAAI,OACT,IAAMC,EAASC,EAAK,mBAAqB,sBACzCF,EAAGC,EAAO,CAAC,SAAU,KAAK,UAAW,CAAE,QAAS,EAAK,CAAC,EACtD,IAAK,IAAME,IAAQ,CAAC,cAAe,aAAc,QAAS,SAAS,EACjEH,EAAGC,EAAO,CAACE,EAAM,KAAK,QAAS,CAAE,QAAS,EAAK,CAAC,EAE9CD,EAAI,KAAK,QAAQ,QAAQF,CAAE,EAC1B,KAAK,QAAQ,UAAUA,CAAE,CAChC,CAGA,IAAI,OAAQ,CACV,IAAMA,EAAK,KAAK,IAEhB,OADKA,GAAI,YACF,KAAK,MAAM,KAAK,IAAIA,EAAG,UAAU,EAAIA,EAAG,WAAW,EAD7B,CAE/B,CAGA,GAAG,EAAe,CAChB,IAAMA,EAAK,KAAK,IAQhB,GAPA,KAAK,QAAUI,EACf,KAAK,SAAW,GACZ,CAACJ,IAKA,KAAK,WAAa,GAAK,KAAK,MAAQ,KAAK,YAAcI,EAAO,OAInE,GAAI,CAACJ,EAAG,YAAa,CACnB,KAAK,SAAW,GAChB,MACF,CACA,KAAK,SAAWI,EAChB,IAAMC,EAAO,iBAAiBL,CAAE,CAAC,CAAC,YAAc,MAAQ,GAAK,EAC7DA,EAAG,SAAS,CAAE,KAAMK,EAAOD,EAAQJ,EAAG,WAAY,CAAC,CACrD,CAEA,OAAQ,CACN,IAAMI,EAAQ,KAAK,MACf,KAAK,WAAa,GAItB,KAAK,SAASA,CAAK,EAHbA,IAAU,KAAK,WAAU,KAAK,SAAW,GAIjD,CACF,E"}
@@ -1,22 +1,27 @@
1
1
  import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
2
3
  import "../../tokens/tokens.js";
3
4
  /**
4
5
  * The compact back control: an arrow and a short label.
5
6
  *
6
- * The accessible name is the label. `label=""` is a supported configuration --
7
- * it renders the arrow alone -- and an arrow is not a name, so the host's
8
- * `aria-label` is forwarded to the button for that case. Without it the button
9
- * had no accessible name at all: measured on Atoms/Back "No Label", empty text
10
- * content, no aria-label, and an svg with neither a title nor aria-hidden.
7
+ * The label is the default slot -- `<bd-back href="/">Back</bd-back>` -- and
8
+ * it is the accessible name: the button or link reads the slotted words
9
+ * through the flat tree. Until 4.0 it was a `label` attribute that defaulted
10
+ * to "Back"; there is no default copy in a component any more (contract rule
11
+ * 7), so an empty element renders the arrow alone. An arrow is not a name, so
12
+ * the host's `aria-label` is forwarded to the button for that case. Without
13
+ * it the button had no accessible name at all: measured on Atoms/Back "No
14
+ * Label", empty text content, no aria-label, and an svg with neither a title
15
+ * nor aria-hidden.
11
16
  */
12
17
  export declare class BdBack extends LitElement {
13
18
  href: string;
14
- label: string;
15
19
  /**
16
20
  * Read off the host so it can be put on the button, which is the element a
17
- * screen reader actually lands on. Required when `label` is empty.
21
+ * screen reader actually lands on. Required when the label is empty.
18
22
  */
19
23
  ariaLabel: string | null;
24
+ protected _slots: SlotController<"">;
20
25
  /** Without an href there is no destination to link to, only history. */
21
26
  handleClick(): void;
22
27
  render(): import("lit-html").TemplateResult<1>;
@@ -1,18 +1,18 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import n from"./back.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends r{constructor(...e){super(...e),this.href=``,this.label=`Back`,this.ariaLabel=null}handleClick(){window.history.back()}render(){let e=i`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" aria-hidden="true" class="mi-solid mi-arrow-back" viewBox="0 0 24 24">
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import r from"./back.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.href=``,this.ariaLabel=null,this._slots=new n(this,{slots:[``]})}handleClick(){window.history.back()}render(){let e=a`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" aria-hidden="true" class="mi-solid mi-arrow-back" viewBox="0 0 24 24">
2
2
  <path d="M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"/>
3
3
  </svg>
4
- <span class="bd-back-label">${this.label}</span>`;return this.href?i`
4
+ <span class="bd-back-label" ?hidden=${!this._slots.has(``)}><slot></slot></span>`;return this.href?a`
5
5
  <a
6
6
  class="bd-back"
7
7
  href="${this.href}"
8
- aria-label="${this.ariaLabel??a}"
8
+ aria-label="${this.ariaLabel??o}"
9
9
  >${e}</a>
10
- `:i`
10
+ `:a`
11
11
  <button
12
12
  type="button"
13
13
  class="bd-back"
14
- aria-label="${this.ariaLabel??a}"
14
+ aria-label="${this.ariaLabel??o}"
15
15
  @click="${this.handleClick}"
16
16
  >${e}</button>
17
- `}static{this.styles=[n]}};t([o({type:String})],s.prototype,`href`,void 0),t([o({type:String})],s.prototype,`label`,void 0),t([o({type:String,attribute:`aria-label`})],s.prototype,`ariaLabel`,void 0),s=t([e(`bd-back`)],s);export{s as BdBack};
17
+ `}static{this.styles=[r]}};t([s({type:String})],c.prototype,`href`,void 0),t([s({type:String,attribute:`aria-label`})],c.prototype,`ariaLabel`,void 0),c=t([e(`bd-back`)],c);export{c as BdBack};
18
18
  //# sourceMappingURL=back.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"back.js","names":["backCSS","_decorate","__decorate","back_css_default","BdBack","LitElement","_args","content","nothing","property","defineElement"],"sources":["../../../../src/components/back/back.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport backCSS from \"./back.css.ts\";\n\n/**\n * The compact back control: an arrow and a short label.\n *\n * The accessible name is the label. `label=\"\"` is a supported configuration --\n * it renders the arrow alone -- and an arrow is not a name, so the host's\n * `aria-label` is forwarded to the button for that case. Without it the button\n * had no accessible name at all: measured on Atoms/Back \"No Label\", empty text\n * content, no aria-label, and an svg with neither a title nor aria-hidden.\n */\n@defineElement(\"bd-back\")\nexport class BdBack extends LitElement {\n @property({ type: String })\n href = \"\";\n @property({ type: String })\n label = \"Back\";\n /**\n * Read off the host so it can be put on the button, which is the element a\n * screen reader actually lands on. Required when `label` is empty.\n */\n @property({ type: String, attribute: \"aria-label\" })\n ariaLabel: string | null = null;\n\n /** Without an href there is no destination to link to, only history. */\n handleClick() {\n window.history.back();\n }\n\n /* A real link when there is somewhere to go. With href this used to be a\n <button> that set window.location.href on click, so the destination was\n invisible to everything that reads links: no middle-click or\n Cmd/Ctrl-click into a new tab, no \"copy link\", no status-bar URL, and a\n screen reader announced a button and listed it under none of the page's\n links. Without href it stays a button, because history.back() is an\n action, not a place. */\n render() {\n const content = html`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" fill=\"currentColor\" aria-hidden=\"true\" class=\"mi-solid mi-arrow-back\" viewBox=\"0 0 24 24\">\n <path d=\"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1\"/>\n</svg>\n <span class=\"bd-back-label\">${this.label}</span>`;\n\n return this.href\n ? html`\n <a\n class=\"bd-back\"\n href=\"${this.href}\"\n aria-label=\"${this.ariaLabel ?? nothing}\"\n >${content}</a>\n `\n : html`\n <button\n type=\"button\"\n class=\"bd-back\"\n aria-label=\"${this.ariaLabel ?? nothing}\"\n @click=\"${this.handleClick}\"\n >${content}</button>\n `;\n }\n\n static styles = [backCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-back\": BdBack;\n }\n}"],"mappings":"A,uSAiBO,IAAMI,EAAN,cAAqBC,CAAW,C,8BAE9B,KAAA,KAAA,GAEC,KAAA,MAAA,OAMmB,KAAA,UAAA,I,CAG3B,aAAc,CACZ,OAAO,QAAQ,KAAK,CACtB,CASA,QAAS,CACP,IAAME,EAAU,CAAI;;;oCAGY,KAAK,MAAM,SAE3C,OAAO,KAAK,KACR,CAAI;;;cAGE,KAAK,KAAK;oBACJ,KAAK,WAAaC,EAAQ;OACvCD,EAAQ;IAEP,CAAI;;;;oBAIQ,KAAK,WAAaC,EAAQ;gBAC9B,KAAK,YAAY;OAC1BD,EAAQ;GAEb,C,OAEgB,KAAA,OAAA,CAACP,CAAO,C,CAC1B,EAhDGC,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAMzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAL,EAAA,UAAA,YAAA,IAAA,EAAA,EAVpD,EAAAH,EAAA,CAAAS,EAAc,SAAS,CAAA,EAAAN,CAAA,E"}
1
+ {"version":3,"file":"back.js","names":["backCSS","_decorate","__decorate","back_css_default","BdBack","LitElement","_args","SlotController","content","nothing","property","defineElement"],"sources":["../../../../src/components/back/back.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport backCSS from \"./back.css.ts\";\n\n/**\n * The compact back control: an arrow and a short label.\n *\n * The label is the default slot -- `<bd-back href=\"/\">Back</bd-back>` -- and\n * it is the accessible name: the button or link reads the slotted words\n * through the flat tree. Until 4.0 it was a `label` attribute that defaulted\n * to \"Back\"; there is no default copy in a component any more (contract rule\n * 7), so an empty element renders the arrow alone. An arrow is not a name, so\n * the host's `aria-label` is forwarded to the button for that case. Without\n * it the button had no accessible name at all: measured on Atoms/Back \"No\n * Label\", empty text content, no aria-label, and an svg with neither a title\n * nor aria-hidden.\n */\n@defineElement(\"bd-back\")\nexport class BdBack extends LitElement {\n @property({ type: String })\n href = \"\";\n /**\n * Read off the host so it can be put on the button, which is the element a\n * screen reader actually lands on. Required when the label is empty.\n */\n @property({ type: String, attribute: \"aria-label\" })\n ariaLabel: string | null = null;\n\n /* The label's box is hidden while nothing is slotted, so an arrow alone\n takes no gap beside an empty box. */\n protected _slots = new SlotController(this, { slots: [\"\"] });\n\n /** Without an href there is no destination to link to, only history. */\n handleClick() {\n window.history.back();\n }\n\n /* A real link when there is somewhere to go. With href this used to be a\n <button> that set window.location.href on click, so the destination was\n invisible to everything that reads links: no middle-click or\n Cmd/Ctrl-click into a new tab, no \"copy link\", no status-bar URL, and a\n screen reader announced a button and listed it under none of the page's\n links. Without href it stays a button, because history.back() is an\n action, not a place. */\n render() {\n const content = html`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" fill=\"currentColor\" aria-hidden=\"true\" class=\"mi-solid mi-arrow-back\" viewBox=\"0 0 24 24\">\n <path d=\"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59a.996.996 0 0 0 0 1.41l6.59 6.59a.996.996 0 1 0 1.41-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1\"/>\n</svg>\n <span class=\"bd-back-label\" ?hidden=${!this._slots.has(\"\")}><slot></slot></span>`;\n\n return this.href\n ? html`\n <a\n class=\"bd-back\"\n href=\"${this.href}\"\n aria-label=\"${this.ariaLabel ?? nothing}\"\n >${content}</a>\n `\n : html`\n <button\n type=\"button\"\n class=\"bd-back\"\n aria-label=\"${this.ariaLabel ?? nothing}\"\n @click=\"${this.handleClick}\"\n >${content}</button>\n `;\n }\n\n static styles = [backCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-back\": BdBack;\n }\n}\n"],"mappings":"A,qWAsBO,IAAMI,EAAN,cAAqBC,CAAW,C,8BAE9B,KAAA,KAAA,GAMoB,KAAA,UAAA,KAIR,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,EAAE,CAAE,CAAC,C,CAG3D,aAAc,CACZ,OAAO,QAAQ,KAAK,CACtB,CASA,QAAS,CACP,IAAMC,EAAU,CAAI;;;4CAGoB,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE,uBAE7D,OAAO,KAAK,KACR,CAAI;;;cAGE,KAAK,KAAK;oBACJ,KAAK,WAAaC,EAAQ;OACvCD,EAAQ;IAEP,CAAI;;;;oBAIQ,KAAK,WAAaC,EAAQ;gBAC9B,KAAK,YAAY;OAC1BD,EAAQ;GAEb,C,OAEgB,KAAA,OAAA,CAACR,CAAO,C,CAC1B,EAlDGC,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,OAAA,IAAA,EAAA,EAMzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAN,EAAA,UAAA,YAAA,IAAA,EAAA,EARpD,EAAAH,EAAA,CAAAU,EAAc,SAAS,CAAA,EAAAP,CAAA,E"}
@@ -1,2 +1,2 @@
1
- import{css as e}from"lit";var t=e`:host{vertical-align:middle;display:inline-flex}.badge{justify-content:center;align-items:center;gap:var(--spacing-4);box-sizing:border-box;font-family:var(--typography-fontFamily-sans);font-weight:var(--typography-control-label-small-fontWeight);line-height:var(--typography-control-label-small-lineHeight);border-radius:var(--radius-full);white-space:var(--bd-badge-white-space,nowrap);text-align:center;-webkit-user-select:none;user-select:none;display:inline-flex}:host([size=sm]) .badge{font-size:var(--typography-fontSize-xxs);padding:var(--spacing-4) var(--spacing-8)}:host([size=md]) .badge,:host(:not([size])) .badge{font-size:var(--typography-control-label-small-fontSize);padding:var(--spacing-4) var(--spacing-8)}:host([size=lg]) .badge{font-size:var(--typography-control-label-default-fontSize);padding:var(--spacing-8) var(--spacing-12)}.badge{color:var(--status-neutral-text);background:var(--status-neutral-surface-strong)}:host([tone=brand]) .badge{color:var(--status-brand-text);background:var(--status-brand-surface)}:host([tone=success]) .badge{color:var(--status-success-text);background:var(--status-success-surface-strong)}:host([tone=warning]) .badge{color:var(--status-warning-text);background:var(--status-warning-surface-strong)}:host([tone=error]) .badge{color:var(--status-error-text);background:var(--status-error-surface-strong)}:host([tone=info]) .badge{color:var(--status-info-text);background:var(--status-info-surface-strong)}:host([variant=fill]) .badge{color:var(--status-neutral-on-fill);background:var(--status-neutral-fill)}:host([variant=fill][tone=brand]) .badge{color:var(--status-brand-on-fill);background:var(--status-brand-fill)}:host([variant=fill][tone=info]) .badge{color:var(--status-info-on-fill);background:var(--status-info-fill)}:host([variant=fill][tone=success]) .badge{color:var(--status-success-on-fill);background:var(--status-success-fill)}:host([variant=fill][tone=warning]) .badge{color:var(--status-warning-on-fill);background:var(--status-warning-fill)}:host([variant=fill][tone=error]) .badge{color:var(--status-error-on-fill);background:var(--status-error-fill)}:host([mode=dot]) .badge{width:var(--spacing-8);height:var(--spacing-8);background:var(--status-neutral-accent);gap:0;padding:0}:host([mode=dot][tone=brand]) .badge{background:var(--status-brand-accent)}:host([mode=dot][tone=success]) .badge{background:var(--status-success-accent)}:host([mode=dot][tone=warning]) .badge{background:var(--status-warning-accent)}:host([mode=dot][tone=error]) .badge{background:var(--status-error-accent)}:host([mode=dot][tone=info]) .badge{background:var(--status-info-accent)}@media (forced-colors:active){:host([mode=dot]) .badge,:host([mode=dot][tone]) .badge{forced-color-adjust:none;background:canvastext}}:host([mode=count]) .badge{font-variant-numeric:tabular-nums}::slotted(*){flex:none}`;export{t as default};
1
+ import{css as e}from"lit";var t=e`:host{vertical-align:middle;display:inline-flex}.badge{justify-content:center;align-items:center;gap:var(--spacing-4);box-sizing:border-box;font-family:var(--typography-fontFamily-sans);font-weight:var(--typography-control-label-small-fontWeight);line-height:var(--typography-control-label-small-lineHeight);border-radius:var(--radius-full);white-space:var(--bd-badge-white-space,nowrap);text-align:center;-webkit-user-select:none;user-select:none;display:inline-flex}:host([size=sm]) .badge{font-size:var(--typography-fontSize-xxs);padding:var(--spacing-4) var(--spacing-8)}:host([size=md]) .badge,:host(:not([size])) .badge{font-size:var(--typography-control-label-small-fontSize);padding:var(--spacing-4) var(--spacing-8)}:host([size=lg]) .badge{font-size:var(--typography-control-label-default-fontSize);padding:var(--spacing-8) var(--spacing-12)}.badge{color:var(--status-neutral-text);background:var(--status-neutral-surface-strong)}:host([variant=brand]) .badge{color:var(--status-brand-text);background:var(--status-brand-surface)}:host([variant=success]) .badge{color:var(--status-success-text);background:var(--status-success-surface-strong)}:host([variant=warning]) .badge{color:var(--status-warning-text);background:var(--status-warning-surface-strong)}:host([variant=error]) .badge{color:var(--status-error-text);background:var(--status-error-surface-strong)}:host([variant=info]) .badge{color:var(--status-info-text);background:var(--status-info-surface-strong)}:host([appearance=fill]) .badge{color:var(--status-neutral-on-fill);background:var(--status-neutral-fill)}:host([appearance=fill][variant=brand]) .badge{color:var(--status-brand-on-fill);background:var(--status-brand-fill)}:host([appearance=fill][variant=info]) .badge{color:var(--status-info-on-fill);background:var(--status-info-fill)}:host([appearance=fill][variant=success]) .badge{color:var(--status-success-on-fill);background:var(--status-success-fill)}:host([appearance=fill][variant=warning]) .badge{color:var(--status-warning-on-fill);background:var(--status-warning-fill)}:host([appearance=fill][variant=error]) .badge{color:var(--status-error-on-fill);background:var(--status-error-fill)}:host([mode=dot]) .badge{width:var(--spacing-8);height:var(--spacing-8);background:var(--status-neutral-accent);gap:0;padding:0}:host([mode=dot][variant=brand]) .badge{background:var(--status-brand-accent)}:host([mode=dot][variant=success]) .badge{background:var(--status-success-accent)}:host([mode=dot][variant=warning]) .badge{background:var(--status-warning-accent)}:host([mode=dot][variant=error]) .badge{background:var(--status-error-accent)}:host([mode=dot][variant=info]) .badge{background:var(--status-info-accent)}@media (forced-colors:active){:host([mode=dot]) .badge,:host([mode=dot][variant]) .badge{forced-color-adjust:none;background:canvastext}}:host([mode=count]) .badge{font-variant-numeric:tabular-nums}::slotted(*){flex:none}`;export{t as default};
2
2
  //# sourceMappingURL=badge.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.css.js","names":["badge_css_default"],"sources":["../../../../src/components/badge/badge.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, \"The foundation\n * rule\". Values were matched to the ds-badge design by finding the token that\n * already carries each value, never by copying a literal out of Figma.\n */\nexport default css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n .badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-4);\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-control-label-small-fontWeight);\n line-height: var(--typography-control-label-small-lineHeight);\n border-radius: var(--radius-full);\n /* One line, unless the component holding the badge caps its width and\n lets it wrap through --bd-badge-white-space (bd-post-card does, for a\n feed's long channel title over its cover). Wrapped, it stays a pill:\n the full radius rounds the taller box, the lines centre in it, and the\n leading is control-label-small's tight, which holds a second line. */\n white-space: var(--bd-badge-white-space, nowrap);\n text-align: center;\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n }\n\n /* ---- size -------------------------------------------------------------\n sm and md share their padding and differ only in type size, which is what\n makes them 22px and 23px tall. lg steps both up. */\n :host([size='sm']) .badge {\n /* no role: this rung sits below the control-label-* family's floor. The\n base rule takes its weight and leading from control-label-small and the\n lg rung takes its size from control-label-default, so the ladder already\n resolves through the family -- but the family's smallest size is xs, and\n this is xxs. label-extra-small is the only declared role at this size and\n it carries normal leading where this badge is tight, so it describes\n different text. The family was deliberately scoped to four rungs; adding\n a fifth for one consumer is what the token-hygiene item exists to resist,\n so the size stays a primitive and says why. */\n font-size: var(--typography-fontSize-xxs);\n padding: var(--spacing-4) var(--spacing-8);\n }\n\n :host([size='md']) .badge,\n :host(:not([size])) .badge {\n /* control-label-small's size, completing the rung: the base rule already\n takes this text's weight and leading from that role, so the size is its\n third axis rather than a separate choice. */\n font-size: var(--typography-control-label-small-fontSize);\n padding: var(--spacing-4) var(--spacing-8);\n }\n\n :host([size='lg']) .badge {\n font-size: var(--typography-control-label-default-fontSize);\n padding: var(--spacing-8) var(--spacing-12);\n }\n\n /* ---- tone × variant --------------------------------------------------\n shade is a tinted background with dark text; fill is a saturated\n background. Defaults below are the shade/default pair. */\n /* Grey, not blue: a tone called \"default\" reading as pale blue is\n surprising, and it left default and primary sharing a background while\n differing only in text colour.\n\n A badge takes the heavier tint and a tag the lighter one, so the two read\n apart. Neutral follows that; it used to sit on the lighter grey, which made\n a neutral badge and a neutral tag the same colour. */\n .badge {\n color: var(--status-neutral-text);\n background: var(--status-neutral-surface-strong);\n }\n\n /* Brand is the one tone that stays on the lighter tint. Its heavier tint\n would be blue-100, which is info's, and a brand badge would then be\n indistinguishable from an info badge. Telling brand from info matters more\n than telling a brand badge from a brand tag, so brand has no heavier tint\n at all. */\n :host([tone='brand']) .badge {\n color: var(--status-brand-text);\n background: var(--status-brand-surface);\n }\n\n :host([tone='success']) .badge {\n /* green-800 rather than green-700: on green-100 that is 5.93:1 against\n 4.17:1, and it matches the step the warning tone already uses */\n color: var(--status-success-text);\n background: var(--status-success-surface-strong);\n }\n\n :host([tone='warning']) .badge {\n color: var(--status-warning-text);\n background: var(--status-warning-surface-strong);\n }\n\n :host([tone='error']) .badge {\n color: var(--status-error-text);\n background: var(--status-error-surface-strong);\n }\n\n :host([tone='info']) .badge {\n color: var(--status-info-text);\n background: var(--status-info-surface-strong);\n }\n\n :host([variant='fill']) .badge {\n color: var(--status-neutral-on-fill);\n background: var(--status-neutral-fill);\n }\n\n :host([variant='fill'][tone='brand']) .badge {\n color: var(--status-brand-on-fill);\n background: var(--status-brand-fill);\n }\n\n /* Info reads its own fill roles, not brand's. The two resolve to the same\n blue-500 today, which is why info used to borrow brand's; sharing a value\n is not sharing a role, and borrowing meant a change to brand's fill would\n have moved every filled info badge with it. */\n :host([variant='fill'][tone='info']) .badge {\n color: var(--status-info-on-fill);\n background: var(--status-info-fill);\n }\n\n /* green-700 with a white label, rather than the design's green-500 with a\n dark one. green-700 is the lightest step in the family that carries white\n text at 4.5:1 — it measures 4.75, where green-600 is only 3.20. It also\n lines up with the success dot, which already uses green-700. */\n :host([variant='fill'][tone='success']) .badge {\n color: var(--status-success-on-fill);\n background: var(--status-success-fill);\n }\n\n :host([variant='fill'][tone='warning']) .badge {\n color: var(--status-warning-on-fill);\n background: var(--status-warning-fill);\n }\n\n :host([variant='fill'][tone='error']) .badge {\n color: var(--status-error-on-fill);\n background: var(--status-error-fill);\n }\n\n /* ---- mode: dot ------------------------------------------------------\n The design keeps the dot at one size across sm/md/lg, so size has no\n effect in this mode.\n\n variant has no effect either. A dot has no text, so there is no\n foreground/background pair for shade and fill to describe — the colour\n *is* the content. That also means it has to carry itself on the page:\n WCAG 1.4.11 wants 3:1 for a graphical object whose colour conveys\n meaning, and the tint steps the shade text sits on measure 1.08 to 1.33.\n Each tone therefore uses a saturated step chosen to clear 3:1. */\n :host([mode='dot']) .badge {\n width: var(--spacing-8);\n height: var(--spacing-8);\n padding: 0;\n gap: 0;\n }\n\n :host([mode='dot']) .badge { background: var(--status-neutral-accent); }\n :host([mode='dot'][tone='brand']) .badge { background: var(--status-brand-accent); }\n /* green-700 rather than the lighter steps: green-500 measures 2.39 and\n green-600 only 3.20, where 700 gives 4.75 and still reads as green */\n :host([mode='dot'][tone='success']) .badge { background: var(--status-success-accent); }\n /* yellow is inherently light — 700 at 3.61 is the lightest step that both\n clears 3:1 and still reads as yellow rather than brown */\n :host([mode='dot'][tone='warning']) .badge { background: var(--status-warning-accent); }\n :host([mode='dot'][tone='error']) .badge { background: var(--status-error-accent); }\n :host([mode='dot'][tone='info']) .badge { background: var(--status-info-accent); }\n\n /* A dot is nothing but its fill, and forced colours repaint every fill as\n Canvas: the dot vanished. It opts out and is drawn in CanvasText. A\n forced palette has no tones, so every tone draws the same dot; the text\n beside it carries the meaning, as it must anyway. [tone] is spelled out\n so this outranks the tone rules above. */\n @media (forced-colors: active) {\n :host([mode='dot']) .badge,\n :host([mode='dot'][tone]) .badge {\n forced-color-adjust: none;\n background: CanvasText;\n }\n }\n\n /* ---- mode: count ----------------------------------------------------\n Digits are set tabular so a counter does not change width as it counts:\n measured, \"12\" and \"99\" both come out at the same width. The padding\n already makes a single digit near-circular, so no min-width is needed. */\n :host([mode='count']) .badge {\n font-variant-numeric: tabular-nums;\n }\n\n /* ---- icon ------------------------------------------------------------ */\n ::slotted(*) {\n flex: none;\n }\n`;\n"],"mappings":"A,0BAOA,IAAAA,EAAe,CAAG,0yF"}
1
+ {"version":3,"file":"badge.css.js","names":["badge_css_default"],"sources":["../../../../src/components/badge/badge.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * Styled entirely from src/tokens/tokens.ts — see CLAUDE.md, \"The foundation\n * rule\". Values were matched to the ds-badge design by finding the token that\n * already carries each value, never by copying a literal out of Figma.\n */\nexport default css`\n :host {\n display: inline-flex;\n vertical-align: middle;\n }\n\n .badge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-4);\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-control-label-small-fontWeight);\n line-height: var(--typography-control-label-small-lineHeight);\n border-radius: var(--radius-full);\n /* One line, unless the component holding the badge caps its width and\n lets it wrap through --bd-badge-white-space (bd-post-card does, for a\n feed's long channel title over its cover). Wrapped, it stays a pill:\n the full radius rounds the taller box, the lines centre in it, and the\n leading is control-label-small's tight, which holds a second line. */\n white-space: var(--bd-badge-white-space, nowrap);\n text-align: center;\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n }\n\n /* ---- size -------------------------------------------------------------\n sm and md share their padding and differ only in type size, which is what\n makes them 22px and 23px tall. lg steps both up. */\n :host([size='sm']) .badge {\n /* no role: this rung sits below the control-label-* family's floor. The\n base rule takes its weight and leading from control-label-small and the\n lg rung takes its size from control-label-default, so the ladder already\n resolves through the family -- but the family's smallest size is xs, and\n this is xxs. label-extra-small is the only declared role at this size and\n it carries normal leading where this badge is tight, so it describes\n different text. The family was deliberately scoped to four rungs; adding\n a fifth for one consumer is what the token-hygiene item exists to resist,\n so the size stays a primitive and says why. */\n font-size: var(--typography-fontSize-xxs);\n padding: var(--spacing-4) var(--spacing-8);\n }\n\n :host([size='md']) .badge,\n :host(:not([size])) .badge {\n /* control-label-small's size, completing the rung: the base rule already\n takes this text's weight and leading from that role, so the size is its\n third axis rather than a separate choice. */\n font-size: var(--typography-control-label-small-fontSize);\n padding: var(--spacing-4) var(--spacing-8);\n }\n\n :host([size='lg']) .badge {\n font-size: var(--typography-control-label-default-fontSize);\n padding: var(--spacing-8) var(--spacing-12);\n }\n\n /* ---- variant × appearance -------------------------------------------\n The variant is the meaning, the appearance the look: shade is a tinted\n background with dark text; fill is a saturated background. Defaults\n below are the shade/neutral pair. */\n /* Grey, not blue: a neutral reading as pale blue is surprising, and it left\n neutral and brand sharing a background while differing only in text\n colour.\n\n A badge takes the heavier tint and a tag the lighter one, so the two read\n apart. Neutral follows that; it used to sit on the lighter grey, which made\n a neutral badge and a neutral tag the same colour. */\n .badge {\n color: var(--status-neutral-text);\n background: var(--status-neutral-surface-strong);\n }\n\n /* Brand is the one variant that stays on the lighter tint. Its heavier tint\n would be blue-100, which is info's, and a brand badge would then be\n indistinguishable from an info badge. Telling brand from info matters more\n than telling a brand badge from a brand tag, so brand has no heavier tint\n at all. */\n :host([variant='brand']) .badge {\n color: var(--status-brand-text);\n background: var(--status-brand-surface);\n }\n\n :host([variant='success']) .badge {\n /* green-800 rather than green-700: on green-100 that is 5.93:1 against\n 4.17:1, and it matches the step the warning tone already uses */\n color: var(--status-success-text);\n background: var(--status-success-surface-strong);\n }\n\n :host([variant='warning']) .badge {\n color: var(--status-warning-text);\n background: var(--status-warning-surface-strong);\n }\n\n :host([variant='error']) .badge {\n color: var(--status-error-text);\n background: var(--status-error-surface-strong);\n }\n\n :host([variant='info']) .badge {\n color: var(--status-info-text);\n background: var(--status-info-surface-strong);\n }\n\n :host([appearance='fill']) .badge {\n color: var(--status-neutral-on-fill);\n background: var(--status-neutral-fill);\n }\n\n :host([appearance='fill'][variant='brand']) .badge {\n color: var(--status-brand-on-fill);\n background: var(--status-brand-fill);\n }\n\n /* Info reads its own fill roles, not brand's. The two resolve to the same\n blue-500 today, which is why info used to borrow brand's; sharing a value\n is not sharing a role, and borrowing meant a change to brand's fill would\n have moved every filled info badge with it. */\n :host([appearance='fill'][variant='info']) .badge {\n color: var(--status-info-on-fill);\n background: var(--status-info-fill);\n }\n\n /* green-700 with a white label, rather than the design's green-500 with a\n dark one. green-700 is the lightest step in the family that carries white\n text at 4.5:1 — it measures 4.75, where green-600 is only 3.20. It also\n lines up with the success dot, which already uses green-700. */\n :host([appearance='fill'][variant='success']) .badge {\n color: var(--status-success-on-fill);\n background: var(--status-success-fill);\n }\n\n :host([appearance='fill'][variant='warning']) .badge {\n color: var(--status-warning-on-fill);\n background: var(--status-warning-fill);\n }\n\n :host([appearance='fill'][variant='error']) .badge {\n color: var(--status-error-on-fill);\n background: var(--status-error-fill);\n }\n\n /* ---- mode: dot ------------------------------------------------------\n The design keeps the dot at one size across sm/md/lg, so size has no\n effect in this mode.\n\n appearance has no effect either. A dot has no text, so there is no\n foreground/background pair for shade and fill to describe — the colour\n *is* the content. That also means it has to carry itself on the page:\n WCAG 1.4.11 wants 3:1 for a graphical object whose colour conveys\n meaning, and the tint steps the shade text sits on measure 1.08 to 1.33.\n Each variant therefore uses a saturated step chosen to clear 3:1. */\n :host([mode='dot']) .badge {\n width: var(--spacing-8);\n height: var(--spacing-8);\n padding: 0;\n gap: 0;\n }\n\n :host([mode='dot']) .badge { background: var(--status-neutral-accent); }\n :host([mode='dot'][variant='brand']) .badge { background: var(--status-brand-accent); }\n /* green-700 rather than the lighter steps: green-500 measures 2.39 and\n green-600 only 3.20, where 700 gives 4.75 and still reads as green */\n :host([mode='dot'][variant='success']) .badge { background: var(--status-success-accent); }\n /* yellow is inherently light — 700 at 3.61 is the lightest step that both\n clears 3:1 and still reads as yellow rather than brown */\n :host([mode='dot'][variant='warning']) .badge { background: var(--status-warning-accent); }\n :host([mode='dot'][variant='error']) .badge { background: var(--status-error-accent); }\n :host([mode='dot'][variant='info']) .badge { background: var(--status-info-accent); }\n\n /* A dot is nothing but its fill, and forced colours repaint every fill as\n Canvas: the dot vanished. It opts out and is drawn in CanvasText. A\n forced palette has no tones, so every variant draws the same dot; the\n text beside it carries the meaning, as it must anyway. [variant] is\n spelled out so this outranks the variant rules above. */\n @media (forced-colors: active) {\n :host([mode='dot']) .badge,\n :host([mode='dot'][variant]) .badge {\n forced-color-adjust: none;\n background: CanvasText;\n }\n }\n\n /* ---- mode: count ----------------------------------------------------\n Digits are set tabular so a counter does not change width as it counts:\n measured, \"12\" and \"99\" both come out at the same width. The padding\n already makes a single digit near-circular, so no min-width is needed. */\n :host([mode='count']) .badge {\n font-variant-numeric: tabular-nums;\n }\n\n /* ---- icon ------------------------------------------------------------ */\n ::slotted(*) {\n flex: none;\n }\n`;\n"],"mappings":"A,0BAOA,IAAAA,EAAe,CAAG,42F"}
@@ -1,28 +1,28 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
2
  import "../../tokens/tokens.js";
3
- import "../icons/family-icon.js";
4
- import "../icons/individual-icon.js";
3
+ import "../icons/family.js";
4
+ import "../icons/individual.js";
5
5
  declare const MODES: readonly ["text", "dot", "count"];
6
6
  declare const SIZES: readonly ["sm", "md", "lg"];
7
7
  /**
8
- * The six tones bd-badge and bd-tag share; bd-alert takes five, all but
9
- * brand. `default` and `primary` are the names this component started with
10
- * and keep working; they resolve to `neutral` and `brand`, which say what
11
- * they mean and are what the other two already called them. `primary` in particular collided with
12
- * bd-button's primary kind while describing something else entirely.
8
+ * The six meanings bd-badge and bd-tag share; bd-callout takes five, all but
9
+ * brand. Neither set keeps a legacy alias any more (N6): an unknown value is
10
+ * repaired to the default like any other.
13
11
  */
14
- declare const TONES: readonly ["neutral", "brand", "success", "warning", "error", "info"];
15
- declare const VARIANTS: readonly ["shade", "fill"];
12
+ declare const VARIANTS: readonly ["neutral", "brand", "success", "warning", "error", "info"];
13
+ declare const APPEARANCES: readonly ["shade", "fill"];
16
14
  type Mode = typeof MODES[number];
17
15
  type Size = typeof SIZES[number];
18
- type Tone = typeof TONES[number];
19
16
  type Variant = typeof VARIANTS[number];
17
+ type Appearance = typeof APPEARANCES[number];
20
18
  export declare class BdBadge extends LitElement {
21
19
  static styles: import("lit").CSSResult[];
22
20
  mode: Mode;
23
21
  size: Size;
24
- tone: Tone;
22
+ /** What it means: neutral, brand, success, warning, error, info. */
25
23
  variant: Variant;
24
+ /** How it looks: shade, fill. */
25
+ appearance: Appearance;
26
26
  icon: string;
27
27
  label: string;
28
28
  willUpdate(changed: PropertyValues<this>): void;
@@ -1,7 +1,7 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{isOneOf as n}from"../shared/prop-vocabulary.js";import r from"./badge.css.js";import"../icons/family-icon.js";import"../icons/individual-icon.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s={"bd-light-blue":{tone:`brand`,variant:`fill`},"bd-light-green":{tone:`success`,variant:`shade`}},c=[`text`,`dot`,`count`],l=[`sm`,`md`,`lg`],u=[`neutral`,`brand`,`success`,`warning`,`error`,`info`],d={default:`neutral`,primary:`brand`},f=[`shade`,`fill`],p=class extends i{constructor(...e){super(...e),this.mode=`text`,this.size=`md`,this.tone=`neutral`,this.variant=`shade`,this.icon=``,this.label=``}static{this.styles=[r]}willUpdate(e){if(e.has(`variant`)&&s[this.variant]){let{tone:e,variant:t}=s[this.variant];this.tone=e,this.variant=t}e.has(`mode`)&&!n(c,this.mode)&&(this.mode=`text`),e.has(`size`)&&!n(l,this.size)&&(this.size=`md`),e.has(`tone`)&&(d[this.tone]?this.tone=d[this.tone]:n(u,this.tone)||(this.tone=`neutral`)),e.has(`variant`)&&!n(f,this.variant)&&(this.variant=`shade`)}_renderIcon(){if(!this.icon||this.mode===`dot`)return``;switch(this.icon){case`individual`:return a`<bd-individual-icon size="sm" color="currentColor"></bd-individual-icon>`;case`family`:return a`<bd-family-icon size="sm" color="currentColor"></bd-family-icon>`;default:return``}}render(){return this.mode===`dot`?a`<span class="badge" role="img" aria-label="${this.label||this.tone}"></span>`:a`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../icons/family.js";import"../icons/individual.js";import r from"./badge.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=[`text`,`dot`,`count`],c=[`sm`,`md`,`lg`],l=[`neutral`,`brand`,`success`,`warning`,`error`,`info`],u=[`shade`,`fill`],d=class extends i{constructor(...e){super(...e),this.mode=`text`,this.size=`md`,this.variant=`neutral`,this.appearance=`shade`,this.icon=``,this.label=``}static{this.styles=[r]}willUpdate(e){e.has(`mode`)&&!t(s,this.mode)&&(this.mode=`text`),e.has(`size`)&&!t(c,this.size)&&(this.size=`md`),e.has(`variant`)&&!t(l,this.variant)&&(this.variant=`neutral`),e.has(`appearance`)&&!t(u,this.appearance)&&(this.appearance=`shade`)}_renderIcon(){if(!this.icon||this.mode===`dot`)return``;switch(this.icon){case`individual`:return a`<bd-icon name="individual" size="sm"></bd-icon>`;case`family`:return a`<bd-icon name="family" size="sm"></bd-icon>`;default:return``}}render(){return this.mode===`dot`?a`<span class="badge" role="img" aria-label="${this.label||this.variant}"></span>`:a`
2
2
  <span class="badge">
3
3
  ${this._renderIcon()}
4
4
  <slot></slot>
5
5
  </span>
6
- `}};t([o({type:String,reflect:!0})],p.prototype,`mode`,void 0),t([o({type:String,reflect:!0})],p.prototype,`size`,void 0),t([o({type:String,reflect:!0})],p.prototype,`tone`,void 0),t([o({type:String,reflect:!0})],p.prototype,`variant`,void 0),t([o({type:String})],p.prototype,`icon`,void 0),t([o({type:String})],p.prototype,`label`,void 0),p=t([e(`bd-badge`)],p);export{p as BdBadge};
6
+ `}};n([o({type:String,reflect:!0})],d.prototype,`mode`,void 0),n([o({type:String,reflect:!0})],d.prototype,`size`,void 0),n([o({type:String,reflect:!0})],d.prototype,`variant`,void 0),n([o({type:String,reflect:!0})],d.prototype,`appearance`,void 0),n([o({type:String})],d.prototype,`icon`,void 0),n([o({type:String})],d.prototype,`label`,void 0),d=n([e(`bd-badge`)],d);export{d as BdBadge};
7
7
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","names":["badgeCSS","_decorate","__decorate","badge_css_default","LEGACY_VARIANTS","MODES","SIZES","TONES","LEGACY_TONES","VARIANTS","BdBadge","LitElement","_args","changed","tone","variant","isOneOf","property","defineElement"],"sources":["../../../../src/components/badge/badge.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport { isOneOf } from '#shared/prop-vocabulary.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/family-icon.ts\";\nimport \"#components/icons/individual-icon.ts\";\nimport badgeCSS from './badge.css.ts';\n\n/**\n * Maps the pre-ds-badge `variant` values onto the tone/variant pair that\n * reproduces them, so existing markup keeps rendering the same thing.\n */\nconst LEGACY_VARIANTS: Record<string, { tone: Tone; variant: Variant }> = {\n 'bd-light-blue' : { tone: 'brand', variant: 'fill' }, // blue-500 / neutral-0\n 'bd-light-green': { tone: 'success', variant: 'shade' } // green-100 / green-800\n};\n\nconst MODES = ['text', 'dot', 'count'] as const;\nconst SIZES = ['sm', 'md', 'lg'] as const;\n/**\n * The six tones bd-badge and bd-tag share; bd-alert takes five, all but\n * brand. `default` and `primary` are the names this component started with\n * and keep working; they resolve to `neutral` and `brand`, which say what\n * they mean and are what the other two already called them. `primary` in particular collided with\n * bd-button's primary kind while describing something else entirely.\n */\nconst TONES = ['neutral', 'brand', 'success', 'warning', 'error', 'info'] as const;\nconst LEGACY_TONES: Record<string, Tone> = { default: 'neutral', primary: 'brand' };\nconst VARIANTS = ['shade', 'fill'] as const;\n\ntype Mode = typeof MODES[number];\ntype Size = typeof SIZES[number];\ntype Tone = typeof TONES[number];\ntype Variant = typeof VARIANTS[number];\n\n@defineElement('bd-badge')\nexport class BdBadge extends LitElement {\n static styles = [badgeCSS];\n\n @property({ type: String, reflect: true })\n mode: Mode = 'text'; // text, dot, count\n @property({ type: String, reflect: true })\n size: Size = 'md'; // sm, md, lg\n @property({ type: String, reflect: true })\n tone: Tone = 'neutral'; // neutral, brand, success, warning, error, info\n @property({ type: String, reflect: true })\n variant: Variant = 'shade'; // shade, fill\n @property({ type: String })\n icon = ''; // individual, family\n @property({ type: String })\n label = ''; // accessible name for mode=\"dot\"\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('variant') && LEGACY_VARIANTS[this.variant]) {\n const { tone, variant } = LEGACY_VARIANTS[this.variant];\n this.tone = tone;\n this.variant = variant;\n }\n\n // an unset or unrecognised value falls back to the default rather than\n // dropping out of every selector and rendering unstyled\n if (changed.has('mode') && !isOneOf(MODES, this.mode)) this.mode = 'text';\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n if (changed.has('tone')) {\n if (LEGACY_TONES[this.tone]) this.tone = LEGACY_TONES[this.tone];\n else if (!isOneOf(TONES, this.tone)) this.tone = 'neutral';\n }\n if (changed.has('variant') && !isOneOf(VARIANTS, this.variant)) this.variant = 'shade';\n }\n\n _renderIcon() {\n if (!this.icon || this.mode === 'dot') return '';\n\n // currentColor makes the icon follow the tone's text colour, so there is\n // no per-tone icon colour to keep in step.\n // size is a step on the icon scale, not pixels. This said size=\"16\", which\n // is no step, so both icons fell back to the xl they were drawn at and a\n // badge with an icon measured 40px tall beside 23px ones; sm is the 16.\n switch (this.icon) {\n case 'individual':\n return html`<bd-individual-icon size=\"sm\" color=\"currentColor\"></bd-individual-icon>`;\n case 'family':\n return html`<bd-family-icon size=\"sm\" color=\"currentColor\"></bd-family-icon>`;\n default:\n return '';\n }\n }\n\n render() {\n // a dot renders no text, so it needs a name of its own. Reading\n // textContent here would be unreliable — light DOM children are not\n // guaranteed to be parsed at first update, and later edits to them would\n // not trigger a re-render.\n return this.mode === 'dot'\n ? html`<span class=\"badge\" role=\"img\" aria-label=\"${this.label || this.tone}\"></span>`\n : html`\n <span class=\"badge\">\n ${this._renderIcon()}\n <slot></slot>\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-badge': BdBadge;\n }\n}\n"],"mappings":"A,sZAcA,IAAMI,EAAoE,CACxE,gBAAkB,CAAE,KAAM,QAAS,QAAS,MAAO,EACnD,iBAAkB,CAAE,KAAM,UAAW,QAAS,OAAQ,CACxD,EAEMC,EAAQ,CAAC,OAAQ,MAAO,OAAO,EAC/BC,EAAQ,CAAC,KAAM,KAAM,IAAI,EAQzBC,EAAQ,CAAC,UAAW,QAAS,UAAW,UAAW,QAAS,MAAM,EAClEC,EAAqC,CAAE,QAAS,UAAW,QAAS,OAAQ,EAC5EC,EAAW,CAAC,QAAS,MAAM,EAQpBC,EAAN,cAAsBC,CAAW,C,8BAIzB,KAAA,KAAA,OAEA,KAAA,KAAA,KAEA,KAAA,KAAA,UAEM,KAAA,QAAA,QAEZ,KAAA,KAAA,GAEC,KAAA,MAAA,E,QAbQ,KAAA,OAAA,CAACX,CAAQ,C,CAezB,WAAW,EAA+B,CACxC,GAAIa,EAAQ,IAAI,SAAS,GAAKT,EAAgB,KAAK,SAAU,CAC3D,GAAM,CAAE,OAAM,WAAYA,EAAgB,KAAK,SAC/C,KAAK,KAAOU,EACZ,KAAK,QAAUC,CACjB,CAIIF,EAAQ,IAAI,MAAM,GAAK,CAACG,EAAQX,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,QAC/DQ,EAAQ,IAAI,MAAM,GAAK,CAACG,EAAQV,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,MAC/DO,EAAQ,IAAI,MAAM,IAChBL,EAAa,KAAK,MAAO,KAAK,KAAOA,EAAa,KAAK,MACjDQ,EAAQT,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,YAE/CM,EAAQ,IAAI,SAAS,GAAK,CAACG,EAAQP,EAAU,KAAK,OAAO,IAAG,KAAK,QAAU,QACjF,CAEA,aAAc,CACZ,GAAI,CAAC,KAAK,MAAQ,KAAK,OAAS,MAAO,MAAO,GAO9C,OAAQ,KAAK,KAAb,CACE,IAAK,aACH,MAAO,EAAI,2EACb,IAAK,SACH,MAAO,EAAI,mEACb,QACE,MAAO,EACX,CACF,CAEA,QAAS,CAKP,OAAO,KAAK,OAAS,MACjB,CAAI,8CAA8C,KAAK,OAAS,KAAK,KAAK,WAC1E,CAAI;;UAEF,KAAK,YAAY,EAAE;;;KAI3B,CACF,EA/DGR,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCT,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCT,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCT,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAExCT,EAAA,CAAAgB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBT,EAAA,CAAAgB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAd3B,EAAAT,EAAA,CAAAiB,EAAc,UAAU,CAAA,EAAAR,CAAA,E"}
1
+ {"version":3,"file":"badge.js","names":["badgeCSS","_decorate","__decorate","badge_css_default","MODES","SIZES","VARIANTS","APPEARANCES","BdBadge","LitElement","_args","changed","isOneOf","property","defineElement"],"sources":["../../../../src/components/badge/badge.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport { isOneOf } from '#shared/prop-vocabulary.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/family.ts\";\nimport \"#components/icons/individual.ts\";\nimport badgeCSS from './badge.css.ts';\n\nconst MODES = ['text', 'dot', 'count'] as const;\nconst SIZES = ['sm', 'md', 'lg'] as const;\n/**\n * The six meanings bd-badge and bd-tag share; bd-callout takes five, all but\n * brand. Neither set keeps a legacy alias any more (N6): an unknown value is\n * repaired to the default like any other.\n */\nconst VARIANTS = ['neutral', 'brand', 'success', 'warning', 'error', 'info'] as const;\nconst APPEARANCES = ['shade', 'fill'] as const;\n\ntype Mode = typeof MODES[number];\ntype Size = typeof SIZES[number];\ntype Variant = typeof VARIANTS[number];\ntype Appearance = typeof APPEARANCES[number];\n\n@defineElement('bd-badge')\nexport class BdBadge extends LitElement {\n static styles = [badgeCSS];\n\n @property({ type: String, reflect: true })\n mode: Mode = 'text'; // text, dot, count\n @property({ type: String, reflect: true })\n size: Size = 'md'; // sm, md, lg\n /** What it means: neutral, brand, success, warning, error, info. */\n @property({ type: String, reflect: true })\n variant: Variant = 'neutral';\n /** How it looks: shade, fill. */\n @property({ type: String, reflect: true })\n appearance: Appearance = 'shade';\n @property({ type: String })\n icon = ''; // individual, family\n @property({ type: String })\n label = ''; // accessible name for mode=\"dot\"\n\n willUpdate(changed: PropertyValues<this>) {\n // an unset or unrecognised value falls back to the default rather than\n // dropping out of every selector and rendering unstyled\n if (changed.has('mode') && !isOneOf(MODES, this.mode)) this.mode = 'text';\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n if (changed.has('variant') && !isOneOf(VARIANTS, this.variant)) this.variant = 'neutral';\n if (changed.has('appearance') && !isOneOf(APPEARANCES, this.appearance)) this.appearance = 'shade';\n }\n\n _renderIcon() {\n if (!this.icon || this.mode === 'dot') return '';\n\n // currentColor makes the icon follow the variant's text colour, so there\n // is no per-variant icon colour to keep in step.\n // size is a step on the icon scale, not pixels. This said size=\"16\", which\n // is no step, so both icons fell back to the xl they were drawn at and a\n // badge with an icon measured 40px tall beside 23px ones; sm is the 16.\n switch (this.icon) {\n case 'individual':\n return html`<bd-icon name=\"individual\" size=\"sm\"></bd-icon>`;\n case 'family':\n return html`<bd-icon name=\"family\" size=\"sm\"></bd-icon>`;\n default:\n return '';\n }\n }\n\n render() {\n // a dot renders no text, so it needs a name of its own. Reading\n // textContent here would be unreliable — light DOM children are not\n // guaranteed to be parsed at first update, and later edits to them would\n // not trigger a re-render.\n return this.mode === 'dot'\n ? html`<span class=\"badge\" role=\"img\" aria-label=\"${this.label || this.variant}\"></span>`\n : html`\n <span class=\"badge\">\n ${this._renderIcon()}\n <slot></slot>\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-badge': BdBadge;\n }\n}\n"],"mappings":"A,4YAUA,IAAMI,EAAQ,CAAC,OAAQ,MAAO,OAAO,EAC/BC,EAAQ,CAAC,KAAM,KAAM,IAAI,EAMzBC,EAAW,CAAC,UAAW,QAAS,UAAW,UAAW,QAAS,MAAM,EACrEC,EAAc,CAAC,QAAS,MAAM,EAQvBC,EAAN,cAAsBC,CAAW,C,8BAIzB,KAAA,KAAA,OAEA,KAAA,KAAA,KAGM,KAAA,QAAA,UAGM,KAAA,WAAA,QAElB,KAAA,KAAA,GAEC,KAAA,MAAA,E,QAfQ,KAAA,OAAA,CAACT,CAAQ,C,CAiBzB,WAAW,EAA+B,CAGpCW,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQR,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,QAC/DO,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQP,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,MAC/DM,EAAQ,IAAI,SAAS,GAAK,CAACC,EAAQN,EAAU,KAAK,OAAO,IAAG,KAAK,QAAU,WAC3EK,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQL,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,QAC7F,CAEA,aAAc,CACZ,GAAI,CAAC,KAAK,MAAQ,KAAK,OAAS,MAAO,MAAO,GAO9C,OAAQ,KAAK,KAAb,CACE,IAAK,aACH,MAAO,EAAI,kDACb,IAAK,SACH,MAAO,EAAI,8CACb,QACE,MAAO,EACX,CACF,CAEA,QAAS,CAKP,OAAO,KAAK,OAAS,MACjB,CAAI,8CAA8C,KAAK,OAAS,KAAK,QAAQ,WAC7E,CAAI;;UAEF,KAAK,YAAY,EAAE;;;KAI3B,CACF,EAxDGN,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCP,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAGxCP,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAGxCP,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,aAAA,IAAA,EAAA,EAExCP,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBP,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAhB3B,EAAAP,EAAA,CAAAa,EAAc,UAAU,CAAA,EAAAN,CAAA,E"}
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host(bd-bar-chart-grid){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(--status-neutral-surface-strong);--cs-bar-track-bg:transparent;--cs-bar-track-border:var(--color-border-subtle);--cs-bar-height:var(--dimension-48);--cs-gap:var(--spacing-32);width:100%;display:block;container-type:inline-size}:host(bd-bar-chart){height:100%;display:block}:host(bd-bar-chart-item){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-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(bd-bar-chart[orientation=horizontal]){grid-column:1/-1}.cs-grid>::slotted(bd-bar-chart:not([orientation=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;--bd-heading-color:var(--color-text-primary);--bd-paragraph-color:var(--color-text-primary);align-content:start;height:100%;display:grid}.card [hidden]{display:none}.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 ::slotted([slot=icon]){width:100%;height:100%;display:block}.card-text-wrap{gap:var(--spacing-8);flex-direction:column;align-self:stretch;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily)}:host([orientation=horizontal]) ::slotted(bd-h[slot=title]),:host([orientation=horizontal]) ::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily)}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing)}.card-bars{gap:var(--spacing-8);flex-direction:column;flex:none;align-self:stretch;display:flex}.card-footnote{flex:none}.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}.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-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}:host(:not([orientation=horizontal])) ::slotted(bd-h[slot=title]),:host(:not([orientation=horizontal])) ::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h5-fontSize);--bd-heading-font-weight:var(--typography-heading-h5-fontWeight);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h5-letterSpacing);--bd-heading-font-family:var(--typography-heading-h5-fontFamily)}:host(:not([orientation=horizontal])) ::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-small-fontSize);--bd-paragraph-font-weight:var(--typography-body-small-fontWeight);--bd-paragraph-line-height:var(--typography-body-small-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-small-letterSpacing)}}@container (width<768px){.card--horizontal{grid-template-columns:1fr}.card--horizontal .card-footnote{margin-top:0}:host(:not([orientation=horizontal])) ::slotted(bd-h[slot=title]),:host(:not([orientation=horizontal])) ::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h5-fontSize);--bd-heading-font-weight:var(--typography-heading-h5-fontWeight);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h5-letterSpacing);--bd-heading-font-family:var(--typography-heading-h5-fontFamily)}:host(:not([orientation=horizontal])) ::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-small-fontSize);--bd-paragraph-font-weight:var(--typography-body-small-fontWeight);--bd-paragraph-line-height:var(--typography-body-small-lineHeight);--bd-paragraph-letter-spacing: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(bd-bar-chart-item.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(bd-bar-chart-item[appearance=primary]) .bar-fill{background:var(--cs-bar-primary-bg,var(--status-brand-fill))}:host(bd-bar-chart-item[appearance=primary]) .bar-label,:host(bd-bar-chart-item[appearance=primary]) .bar-score{color:var(--cs-bar-primary-fg,var(--status-brand-on-fill));font-weight:var(--typography-fontWeight-semibold)}:host(bd-bar-chart-item:not([appearance=primary])) .bar-fill{background:var(--cs-bar-secondary-bg,var(--status-neutral-surface-strong))}:host(bd-bar-chart-item:not([appearance=primary])) .bar-label,:host(bd-bar-chart-item:not([appearance=primary])) .bar-score{color:var(--color-text-primary);font-weight:var(--typography-body-regular-fontWeight)}:host(bd-bar-chart-grid.theme-green){--cs-bar-primary-bg:var(--status-success-fill);--cs-bar-primary-fg:var(--status-success-on-fill)}:host(bd-bar-chart-grid.theme-red){--cs-bar-primary-bg:var(--status-error-fill);--cs-bar-primary-fg:var(--status-error-on-fill)}:host(bd-bar-chart-grid.theme-purple){--cs-bar-primary-bg:light-dark(#7c3aed,#a78bfa);--cs-bar-primary-fg:light-dark(var(--color-neutral-0),var(--color-neutral-950))}:host(bd-bar-chart-grid.theme-dark){--cs-bar-primary-bg:var(--color-brand-400);--cs-bar-primary-fg:var(--color-text-primary);color-scheme:light}:host(bd-bar-chart-grid.bars-tall){--cs-bar-height:var(--dimension-56)}:host(bd-bar-chart-grid.bars-compact){--cs-bar-height:var(--dimension-40);--cs-gap:var(--spacing-24)}`;export{t as default};
2
+ //# sourceMappingURL=bar-chart.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bar-chart.css.js","names":["bar_chart_css_default"],"sources":["../../../../src/components/bar-chart/bar-chart.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n\n:host(bd-bar-chart-grid) {\n display: block;\n /* The grid is the container its narrow layout reads -- one column of\n charts, the horizontal chart stacked, the type a step down -- where it\n read the screen. Across the page the grid 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 /* The competitor bar: the neutral tone's strong wash, beside the primary\n bar's brand fill. The bars are the status families' pairs -- the brand\n bar the brand tone's fill and its on-fill ink, a competitor the neutral\n tone, quiet -- and the neutral tone's quiet answer to \"a ground a label\n sits on\" is a wash, not its fill (neutral-900, which would outshout the\n brand bar). The strong step, because the plain wash is one step off the\n card and would not read as a bar. Not surface-muted: that is a state,\n and a competitor's bar is at rest.\n\n It read --color-neutral-100 until it had a role, which stayed light on a\n dark page while the label on it turned light: 1.15:1. The role's light\n half is neutral-100, so light does not move; dark is neutral-800 under\n the label's neutral-50, 11.85:1. */\n --cs-bar-secondary-bg: var(--status-neutral-surface-strong);\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\n:host(bd-bar-chart) {\n display: block;\n height: 100%;\n}\n\n:host(bd-bar-chart-item) {\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-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(bd-bar-chart[orientation=\"horizontal\"]) {\n grid-column: 1 / -1;\n}\n\n/* A chart's three parts -- the header, the bars, the footer -- are three of\n the grid's rows, so the bars start on one line across a row of charts\n however many lines a title or a description wraps to. The chart spans them\n as a subgrid and so does its .card; inside a chart they are 24 apart, the\n chart's own gap, while rows of charts keep --cs-gap between them. */\n.cs-grid > ::slotted(bd-bar-chart:not([orientation=\"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 grid, the card's rows are the grid's (see above); on its own the\n 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 /* The card is its own light ground, so it names that ground's ink for the\n title, description and footer the page slots in. An ink inherited from a\n dark band around the grid (--bd-heading-color, --bd-paragraph-color)\n would otherwise put white copy on this light card: 1.04:1 when inverting\n the card's text under theme-dark was tried. An explicit color= on the\n page's atom still wins. */\n ${unsafeCSS(ink('strong'))}\n}\n\n/* Each part's box is hidden while its slot is empty; the attribute outweighs\n the display a box sets. */\n.card [hidden] {\n display: none;\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/* The page's icon fills the frame, as 3.x's bd-img width=\"48\" did. This rule\n comes from the chart's shadow root, outside bd-img's, so it sizes the host\n and bd-img's own image follows it. */\n.card-icon-wrap ::slotted([slot=\"icon\"]) {\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/* The chart's title: the h4 role 3.x rendered, at every level the page\n picks, and the h3 role in the horizontal layout, which 3.x drew as h3. */\n::slotted(bd-h[slot=\"title\"]),\n::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole('heading-h4'))}\n}\n\n:host([orientation=\"horizontal\"]) ::slotted(bd-h[slot=\"title\"]),\n:host([orientation=\"horizontal\"]) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole('heading-h3'))}\n}\n\n/* The description: body-regular, which 3.x drew it at, whatever appearance\n the page's bd-p names. */\n::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole('body-regular'))}\n}\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 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.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/* 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 a vertical chart's type steps\n down: its title from the h4 size to the h5, its description from\n body-regular to body-small (the horizontal card keeps its type). The\n level -- as= -- is the page's outline and does not move; the hooks set\n the size, whatever level the page chose.\n\n Twice, because a chart is sometimes placed on its own (the SingleCard\n story): with no grid around it there is no container to ask, and it\n reads the screen as it always did. In a grid the container rule says the\n same thing whenever the screen rule does -- a grid is never wider than\n the screen -- and says it alone when the grid 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 :host(:not([orientation=\"horizontal\"])) ::slotted(bd-h[slot=\"title\"]),\n :host(:not([orientation=\"horizontal\"])) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole('heading-h5'))}\n }\n\n :host(:not([orientation=\"horizontal\"])) ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole('body-small'))}\n }\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 :host(:not([orientation=\"horizontal\"])) ::slotted(bd-h[slot=\"title\"]),\n :host(:not([orientation=\"horizontal\"])) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole('heading-h5'))}\n }\n\n :host(:not([orientation=\"horizontal\"])) ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole('body-small'))}\n }\n}\n\n/* Every --cs-bar-* read here carries a fallback, because all of them are\n declared on :host(bd-bar-chart-grid) and none on :host(bd-bar-chart-item).\n A var() with no fallback is invalid at computed-value time, so a bar used\n outside a grid lost its height entirely: measured on the isolated-bars\n story, which puts four bars in a plain div, the track was 0px tall with no\n border and no fill, and the overflow: hidden below clipped the label away\n with it. Four invisible bars in a story whose whole job is to show the bar\n on its own -- and render-health cannot see it, because other things on the\n page do occupy space.\n\n The fallbacks are the same values the grid declares, so a bar inside a\n grid is unchanged, and a themed grid still wins: a custom property\n inheriting from an ancestor beats a fallback, where a declaration on\n :host(bd-bar-chart-item) 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(bd-bar-chart-item.compare-no-motion) .bar-fill { transition: none; }\n\n@media (prefers-reduced-motion: reduce) {\n .bar-fill { transition: none; }\n}\n\n/* The brand is the default slot's text, so it inherits this box's role and\n ink, and clips with an ellipsis as 3.x's own text did. */\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-bar-chart-grid) only, so a bd-bar-chart-item used on its own has\n neither. var() with no fallback is invalid at computed-value time, which\n made the fill transparent and dropped the label back to inherited ink --\n measured on the isolated-bars story, a primary bar with background\n rgba(0, 0, 0, 0) and a dark label, indistinguishable from a secondary bar\n apart from its weight.\n\n Fallbacks rather than a declaration on :host(bd-bar-chart-item): a value\n set on the bar's own host would override the one inheriting from a themed\n grid and pin every bar blue. */\n:host(bd-bar-chart-item[appearance=\"primary\"]) .bar-fill {\n background: var(--cs-bar-primary-bg, var(--status-brand-fill));\n}\n:host(bd-bar-chart-item[appearance=\"primary\"]) .bar-label,\n:host(bd-bar-chart-item[appearance=\"primary\"]) .bar-score {\n color: var(--cs-bar-primary-fg, var(--status-brand-on-fill));\n /* no role: this weight belongs to the primary APPEARANCE, not to the text --\n the same bar reads 400 in the other appearance. An appearance is a look,\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(bd-bar-chart-item:not([appearance=\"primary\"])) .bar-fill {\n /* --cs-bar-secondary-bg's role, which this repeats as a fallback for a\n bd-bar-chart-item used outside a bd-bar-chart-grid. */\n background: var(--cs-bar-secondary-bg, var(--status-neutral-surface-strong));\n}\n:host(bd-bar-chart-item:not([appearance=\"primary\"])) .bar-label,\n:host(bd-bar-chart-item:not([appearance=\"primary\"])) .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 chart's icon is the\n page's <bd-img>, sized by .card-icon-wrap and given no colour treatment at\n all. git log -S on the reading form finds no commit in the history where a\n consumer existed, so they were written and never wired up rather than\n orphaned by a later change. Removed. They were carrying a paragraph of\n contrast reasoning about the -500 steps that read as a live decision, and\n one of the two occurrences of the raw #7c3aed literal -- the fill below is\n 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 -- the icon is decorative, alt=\"\", which is the exemption -- but the\n margin is why nothing should reach for -500 here later on the strength of\n the deleted comment. */\n:host(bd-bar-chart-grid.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-bar-chart-grid.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 bar is not a warning; taking it for the value would also tie this\n theme to yellow-500's future, so a warning fill later dark enough to carry\n white would turn this label white on light blue. --color-text-primary is\n 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\n on --cs-bar-secondary-bg two rules above. Same job in the same file, same\n 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 The grid draws no text of its own on the dark ground any more: 3.x's\n section title is the page's bd-section-header before the grid, whose bd-h\n and bd-p take color=\"inverse\" there. The charts stay light (.card names\n its own ink above).\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-bar-chart-grid.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 Each has its dark half, so the look follows a dark page: #a78bfa, the\n lighter purple, under ink one end of the neutral ramp darker -- 5.70:1\n for white on #7c3aed in light, about 7.7:1 for neutral-950 on #a78bfa\n in dark. */\n --cs-bar-primary-bg: light-dark(#7c3aed, #a78bfa);\n --cs-bar-primary-fg: light-dark(var(--color-neutral-0), var(--color-neutral-950)); /* no token: as above */\n}\n:host(bd-bar-chart-grid.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 /* IN A DARK PAGE the theme is what it says: a grid on a dark band, whose\n charts stay light. So it draws in the light scheme, as bd-button\n surface=\"dark\" does on its hero: light-dark() resolves by an element's\n own color-scheme, so the cards keep their light ground and the label\n its text-primary on the blue-400 fill -- 5.37:1 -- where in the page's\n scheme the label turned light on a fill that does not, 2.98:1 (1.47 and\n 1.32 under the green and yellow test brands). */\n color-scheme: light;\n}\n\n:host(bd-bar-chart-grid.bars-tall) { --cs-bar-height: var(--dimension-56); }\n:host(bd-bar-chart-grid.bars-compact) { --cs-bar-height: var(--dimension-40); --cs-gap: var(--spacing-24); }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,+2P"}
@@ -0,0 +1,147 @@
1
+ import { LitElement, type PropertyValues } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
4
+ import "../h/h.js";
5
+ import "../img/img.js";
6
+ import "../link/link.js";
7
+ import "../p/p.js";
8
+ declare const APPEARANCES: readonly ["primary", "secondary"];
9
+ type Appearance = typeof APPEARANCES[number];
10
+ declare const ORIENTATIONS: readonly ["vertical", "horizontal"];
11
+ type Orientation = typeof ORIENTATIONS[number];
12
+ /**
13
+ * One bar of a bd-bar-chart: a brand and its score.
14
+ *
15
+ * <bd-bar-chart-item score="5.95" max-score="6" appearance="primary">Bitdefender</bd-bar-chart-item>
16
+ * <bd-bar-chart-item score="6" appearance="primary">Perfect score<span slot="value">6 / 6</span></bd-bar-chart-item>
17
+ *
18
+ * The default slot is the brand's name, drawn at the start of the bar; the
19
+ * `value` slot is the text drawn at its end in place of the score, which
20
+ * 3.x's `score-label` was. While `value` holds content the score is not
21
+ * animated, because there is no number to count. `score` stays an
22
+ * attribute: it is the datum the bar is drawn from and animates (ADR 0003,
23
+ * rule 6).
24
+ *
25
+ * The bar is a meter, and says so through its internals: its role, its name
26
+ * -- the default slot's words, copied, since an aria-labelledby on the host
27
+ * cannot reach into its own shadow root -- and its value: the score, out of
28
+ * `max-score`, and the `value` slot's words as aria-valuetext when it has
29
+ * some. Its inside is aria-hidden, so the brand and the score are announced
30
+ * once, as the meter's. Internals rather than attributes: the page keeps
31
+ * the host's own attributes, and nothing is written on it but the
32
+ * reflected `appearance`.
33
+ */
34
+ declare class BdBarChartItem extends LitElement {
35
+ static styles: import("lit").CSSResult[];
36
+ score: number;
37
+ maxScore: number;
38
+ /** primary (the brand the chart is about, a full brand-filled bar) | secondary (default) */
39
+ appearance: Appearance;
40
+ referenceScore: number;
41
+ scale: number;
42
+ _animatedScore: number;
43
+ _slots: SlotController<"" | "value">;
44
+ _scoreAnimRaf: number;
45
+ _internals: ElementInternals | undefined;
46
+ _hadValue: boolean | undefined;
47
+ constructor();
48
+ connectedCallback(): void;
49
+ disconnectedCallback(): void;
50
+ willUpdate(changed: PropertyValues<this>): void;
51
+ updated(changed: PropertyValues<this>): void;
52
+ _shouldAnimateCompetitorScore(): boolean;
53
+ _scoreAnimStart(): number;
54
+ _cancelScoreAnim(): void;
55
+ _runScoreAnim(): void;
56
+ get _pct(): number;
57
+ _renderScoreText(): string | number;
58
+ static _formatScoreTick(v: number): string;
59
+ _syncMeter(): void;
60
+ render(): import("lit-html").TemplateResult<1>;
61
+ }
62
+ /**
63
+ * A chart of bars that scale and stretch together: an icon, a title, a
64
+ * description, the bars, and a footer for the source.
65
+ *
66
+ * <bd-bar-chart bars-label="Scores by brand" scale-note="Bar lengths are scaled …">
67
+ * <bd-img slot="icon" src="/assets/shield-check.svg" alt="" width="48" height="48" fit="contain"></bd-img>
68
+ * <bd-h slot="title" as="h4">Best Protection</bd-h>
69
+ * <bd-p slot="description">Scale of 0–6. Higher is better.</bd-p>
70
+ * <bd-bar-chart-item score="5.95" appearance="primary">Bitdefender</bd-bar-chart-item>
71
+ * <bd-bar-chart-item score="5.59" scale="0.93">Norton</bd-bar-chart-item>
72
+ * <bd-p slot="footer" appearance="xsmall">Overall Score. Source <bd-link href="…">AV TEST.org</bd-link></bd-p>
73
+ * </bd-bar-chart>
74
+ *
75
+ * The chart sets its title's size (the h4 role 3.x rendered, a step down
76
+ * below md; the h3 role horizontal) and its description's (body-regular,
77
+ * body-small below md); the page picks the title's level. Each part's box is
78
+ * hidden while its slot is empty.
79
+ *
80
+ * Names follow the text. The <article> is named by aria-labelledby on the
81
+ * box around the title slot, written only while the slot holds something:
82
+ * aria-labelledby resolves in the root it is written in, and the box is in
83
+ * this one beside the article, while accname walks the flat tree through
84
+ * the slot into the page's bd-h. (3.x pointed it at an id on its own bd-h,
85
+ * and at nothing at all when a page filled its `header` slot.) `bars-label`
86
+ * names the bars' group and `scale-note` is the sr-only description the
87
+ * article's aria-describedby points at; both are accessible names only and
88
+ * have no default, so without `scale-note` there is no aria-describedby.
89
+ *
90
+ * orientation="horizontal" puts the icon, title, description and footer in
91
+ * one column and the bars in the other, and stacks them where the chart is
92
+ * narrow. `without-stretch` turns the stretch mapping off.
93
+ */
94
+ declare class BdBarChart extends LitElement {
95
+ static styles: import("lit").CSSResult[];
96
+ /** vertical (default) | horizontal */
97
+ orientation: Orientation;
98
+ withoutStretch: boolean;
99
+ barFillMin: number;
100
+ barStretchGamma: number;
101
+ /** The bars' group's accessible name. Never rendered. */
102
+ barsLabel: string;
103
+ /** The sr-only text the article's aria-describedby points at. Never rendered visibly. */
104
+ scaleNote: string;
105
+ _slots: SlotController<"title" | "description" | "icon" | "footer">;
106
+ willUpdate(changed: PropertyValues<this>): void;
107
+ firstUpdated(): void;
108
+ updated(changed: PropertyValues<this>): void;
109
+ _syncBarStretch(): void;
110
+ _refreshBars(bars: BdBarChartItem[]): void;
111
+ render(): import("lit-html").TemplateResult<1>;
112
+ }
113
+ /**
114
+ * The page column that lays bd-bar-chart children out in a grid and lines
115
+ * their rows up: every vertical chart spans three of the grid's rows as a
116
+ * subgrid -- header, bars, footer -- so the bars start on one line across a
117
+ * row however the titles and descriptions wrap. A horizontal chart takes the
118
+ * whole row.
119
+ *
120
+ * <bd-section-header layout="centered">
121
+ * <bd-h slot="title" as="h2">How Bitdefender Compares</bd-h>
122
+ * </bd-section-header>
123
+ * <bd-bar-chart-grid columns="2">
124
+ * <bd-bar-chart>…</bd-bar-chart>
125
+ * <bd-bar-chart>…</bd-bar-chart>
126
+ * </bd-bar-chart-grid>
127
+ *
128
+ * It renders no heading: 3.x's `title` and `subtitle` are the page's
129
+ * bd-section-header before it. A page that wants the region landmark 3.x's
130
+ * titled section drew writes its own <section aria-labelledby>.
131
+ */
132
+ declare class BdBarChartGrid extends LitElement {
133
+ static styles: import("lit").CSSResult[];
134
+ columns: number;
135
+ /** A token reference from the spacing scale, e.g. var(--spacing-16). */
136
+ gap: string;
137
+ firstUpdated(): void;
138
+ render(): import("lit-html").TemplateResult<1>;
139
+ }
140
+ export { BdBarChartItem, BdBarChart, BdBarChartGrid };
141
+ declare global {
142
+ interface HTMLElementTagNameMap {
143
+ "bd-bar-chart-item": BdBarChartItem;
144
+ "bd-bar-chart": BdBarChart;
145
+ "bd-bar-chart-grid": BdBarChartGrid;
146
+ }
147
+ }
@@ -0,0 +1,42 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as r}from"../shared/controller.slot.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import"../img/img.js";import a from"./bar-chart.css.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l,state as u}from"lit/decorators.js";var d;function f(e){let t=getComputedStyle(e);return{stretch:t.getPropertyValue(`--cs-bar-stretch`).trim()!==`0`,rMinStr:t.getPropertyValue(`--cs-stretch-r-min`).trim(),fillMin:parseFloat(t.getPropertyValue(`--cs-bar-fill-min`).trim()),gamma:parseFloat(t.getPropertyValue(`--cs-bar-stretch-gamma`).trim())}}var p=800,m=e=>1-(1-e)**3,h=!1,g=0;function _(){return!h&&!y()}function v(){h||g||(g=setTimeout(()=>{g=0,h=!0},920))}function y(){try{return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}catch{return!1}}var b=[`primary`,`secondary`],x=[`vertical`,`horizontal`],S=class extends o{static{d=this}static{this.styles=[a]}constructor(){super(),this.score=0,this.maxScore=6,this.appearance=`secondary`,this.referenceScore=0,this.scale=1,this._animatedScore=NaN,this._slots=new r(this,{slots:[``,`value`],text:[``,`value`]}),this._scoreAnimRaf=0,this._internals=this.attachInternals?.(),this._internals&&(this._internals.role=`meter`)}connectedCallback(){super.connectedCallback(),_()?(v(),this._shouldAnimateCompetitorScore()&&(this._animatedScore=this._scoreAnimStart())):this.classList.add(`compare-no-motion`)}disconnectedCallback(){super.disconnectedCallback(),this._cancelScoreAnim()}willUpdate(e){e.has(`appearance`)&&!t(b,this.appearance)&&(this.appearance=`secondary`)}updated(e){super.updated(e),this._syncMeter();let t=this._slots.has(`value`),n=t!==this._hadValue;this._hadValue=t,(n||[`score`,`referenceScore`,`appearance`,`maxScore`].some(t=>e.has(t)))&&(this._cancelScoreAnim(),_()?this._shouldAnimateCompetitorScore()?(this._animatedScore=this._scoreAnimStart(),this._runScoreAnim()):this._animatedScore=NaN:(this.classList.add(`compare-no-motion`),this._animatedScore=NaN))}_shouldAnimateCompetitorScore(){return this.appearance===`primary`||this._slots.has(`value`)?!1:Number.isFinite(parseFloat(String(this.score)))}_scoreAnimStart(){let e=parseFloat(String(this.score)),t=parseFloat(String(this.referenceScore)),n=parseFloat(String(this.maxScore))||6,r=t>0?t:n;return r<=e&&(r=Math.min(n,e+.2)),r}_cancelScoreAnim(){this._scoreAnimRaf&&=(cancelAnimationFrame(this._scoreAnimRaf),0)}_runScoreAnim(){let e=parseFloat(String(this.score)),t=this._animatedScore;if(!Number.isFinite(e)||!Number.isFinite(t))return;let n=performance.now(),r=i=>{let a=Math.min(1,(i-n)/p),o=m(a);this._animatedScore=t+(e-t)*o,a<1?this._scoreAnimRaf=requestAnimationFrame(r):(this._scoreAnimRaf=0,this._animatedScore=NaN,this.requestUpdate())};this._scoreAnimRaf=requestAnimationFrame(r)}get _pct(){let e=parseFloat(String(this.score))||0;if(this.appearance===`primary`)return 100;let t=parseFloat(String(this.referenceScore));if(t>0){let n=Math.min(1,Math.max(0,e/t)),r=n*100,{stretch:i,rMinStr:a,fillMin:o,gamma:s}=f(this);if(!i||!a||a===`none`)return Math.min(100,Math.max(0,r));let c=parseFloat(a);if(Number.isNaN(c)||c>=1-1e-9)return Math.min(100,Math.max(0,r));let l=1-c,u=Number.isFinite(o)?o:50,d=Number.isFinite(s)&&s>0?s:1,p=(n-c)/l,m=u+Math.min(1,Math.max(0,p))**+d*(100-u);return Math.min(100,Math.max(0,m))}let n=parseFloat(String(this.maxScore))||6;return n===0?0:Math.min(100,Math.max(0,e/n*100))*(this.scale||1)}_renderScoreText(){return this.appearance!==`primary`&&Number.isFinite(this._animatedScore)?d._formatScoreTick(this._animatedScore):this.score}static _formatScoreTick(e){return(Math.round(e*100)/100).toFixed(2)}_syncMeter(){let e=this._internals;if(!e)return;let t=this.maxScore??6,n=parseFloat(String(this.score));e.ariaLabel=this._slots.text(``)||null,e.ariaValueMin=`0`,e.ariaValueMax=String(t),e.ariaValueNow=Number.isFinite(n)?String(n):null,e.ariaValueText=this._slots.text(`value`)||null}render(){return s`
2
+ <div class="bar-track">
3
+ <div class="bar-fill" style="width: ${this._pct}%">
4
+ <span class="bar-label" aria-hidden="true"><slot></slot></span>
5
+ <span class="bar-score" aria-hidden="true"><slot name="value"></slot>${this._slots.has(`value`)?c:this._renderScoreText()}</span>
6
+ </div>
7
+ </div>
8
+ `}};n([l({type:Number})],S.prototype,`score`,void 0),n([l({type:Number,attribute:`max-score`})],S.prototype,`maxScore`,void 0),n([l({type:String,reflect:!0})],S.prototype,`appearance`,void 0),n([l({type:Number,attribute:`reference-score`})],S.prototype,`referenceScore`,void 0),n([l({type:Number})],S.prototype,`scale`,void 0),n([u()],S.prototype,`_animatedScore`,void 0),S=d=n([e(`bd-bar-chart-item`)],S);var C=class extends o{constructor(...e){super(...e),this.orientation=`vertical`,this.withoutStretch=!1,this.barFillMin=50,this.barStretchGamma=1,this.barsLabel=``,this.scaleNote=``,this._slots=new r(this,{slots:[`icon`,`title`,`description`,`footer`]})}static{this.styles=[a]}willUpdate(e){e.has(`orientation`)&&!t(x,this.orientation)&&(this.orientation=`vertical`)}firstUpdated(){this._syncBarStretch()}updated(e){super.updated(e),(e.has(`barFillMin`)||e.has(`barStretchGamma`)||e.has(`withoutStretch`))&&this._syncBarStretch()}_syncBarStretch(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);if(!e)return;let t=e.assignedElements({flatten:!0}).filter(e=>e.localName===`bd-bar-chart-item`);if(this.withoutStretch){this.style.setProperty(`--cs-bar-stretch`,`0`),this._refreshBars(t);return}let n=t.find(e=>e.appearance===`primary`),r=n?parseFloat(String(n.score)):0;if(!r||r<=0){this.style.setProperty(`--cs-bar-stretch`,`0`),this._refreshBars(t);return}let i=t.filter(e=>e.appearance!==`primary`);if(i.length<2){this.style.setProperty(`--cs-bar-stretch`,`0`),this._refreshBars(t);return}let a=1;for(let e of i){let t=parseFloat(String(e.score));Number.isNaN(t)||(a=Math.min(a,t/r))}a>=1-1e-6?this.style.setProperty(`--cs-bar-stretch`,`0`):(this.style.setProperty(`--cs-bar-stretch`,`1`),this.style.setProperty(`--cs-stretch-r-min`,String(a)),this.style.setProperty(`--cs-bar-fill-min`,String(this.barFillMin)),this.style.setProperty(`--cs-bar-stretch-gamma`,String(this.barStretchGamma))),this._refreshBars(t)}_refreshBars(e){queueMicrotask(()=>{e.forEach(e=>e.requestUpdate?.())})}render(){let e=e=>this._slots.has(e),t=(t,n)=>s`
9
+ <article
10
+ class="${t}"
11
+ aria-labelledby=${e(`title`)?`title`:c}
12
+ aria-describedby=${this.scaleNote?`scale-note`:c}
13
+ >
14
+ ${this.scaleNote?s`<p class="cs-sr-only" id="scale-note">${this.scaleNote}</p>`:c}
15
+ ${n}
16
+ </article>
17
+ `,n=s`<div class="card-icon-wrap" ?hidden=${!e(`icon`)}><slot name="icon"></slot></div>`,r=s`<div class="card-title" id="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>`,i=s`<div class="card-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>`,a=s`<div class="card-footnote" ?hidden=${!e(`footer`)}><slot name="footer"></slot></div>`,o=s`
18
+ <div class="card-bars" role="group" aria-label=${this.barsLabel||c}>
19
+ <slot @slotchange=${this._syncBarStretch}></slot>
20
+ </div>
21
+ `;return this.orientation===`horizontal`?t(`card card--horizontal`,s`
22
+ <div class="card-left">
23
+ <div class="card-left-top" ?hidden=${!e(`icon`)&&!e(`title`)}>${n}${r}</div>
24
+ ${i}
25
+ ${a}
26
+ </div>
27
+ <div class="card-right">${o}</div>
28
+ `):t(`card`,s`
29
+ <div class="card-header" ?hidden=${!e(`icon`)&&!e(`title`)&&!e(`description`)}>
30
+ ${n}
31
+ <div class="card-text-wrap" ?hidden=${!e(`title`)&&!e(`description`)}>${r}${i}</div>
32
+ </div>
33
+ ${o}
34
+ ${a}
35
+ `)}};n([l({type:String,reflect:!0})],C.prototype,`orientation`,void 0),n([l({type:Boolean,attribute:`without-stretch`})],C.prototype,`withoutStretch`,void 0),n([l({type:Number,attribute:`bar-fill-min`})],C.prototype,`barFillMin`,void 0),n([l({type:Number,attribute:`bar-stretch-gamma`})],C.prototype,`barStretchGamma`,void 0),n([l({type:String,attribute:`bars-label`})],C.prototype,`barsLabel`,void 0),n([l({type:String,attribute:`scale-note`})],C.prototype,`scaleNote`,void 0),C=n([e(`bd-bar-chart`)],C);var w=class extends o{constructor(...e){super(...e),this.columns=2,this.gap=``}static{this.styles=[i,a]}firstUpdated(){v()}render(){let e=this.gap?`--_cols: ${this.columns}; --cs-gap: ${this.gap}`:`--_cols: ${this.columns}`;return s`
36
+ <div class="bd-ensemble cs-section">
37
+ <div class="cs-grid" style="${e}">
38
+ <slot></slot>
39
+ </div>
40
+ </div>
41
+ `}};n([l({type:Number})],w.prototype,`columns`,void 0),n([l({type:String})],w.prototype,`gap`,void 0),w=n([e(`bd-bar-chart-grid`)],w);export{C as BdBarChart,w as BdBarChartGrid,S as BdBarChartItem};
42
+ //# sourceMappingURL=bar-chart.js.map