@repobit/dex-system-design 3.1.2 → 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 +1067 -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
@@ -0,0 +1,2 @@
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 r from"./tab.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=[`standard`,`switcher`],c=class extends i{static{this.styles=[r]}constructor(){super(),this.panel=``,this.active=!1,this.appearance=`standard`,this.disabled=!1,this._internals=this.attachInternals(),this._internals.role=`tab`,this._internals.ariaSelected=`false`}willUpdate(e){e.has(`appearance`)&&!t(s,this.appearance)&&(this.appearance=`standard`)}updated(e){e.has(`active`)&&(this._internals.ariaSelected=String(this.active)),e.has(`disabled`)&&(this._internals.ariaDisabled=this.disabled?`true`:null)}_pair(e){this._internals.ariaControlsElements=e?[e]:null}render(){return a`<slot></slot>`}};n([o({type:String,reflect:!0,attribute:`panel`})],c.prototype,`panel`,void 0),n([o({type:Boolean,reflect:!0,attribute:`active`})],c.prototype,`active`,void 0),n([o({type:String,attribute:`appearance`})],c.prototype,`appearance`,void 0),n([o({type:Boolean,reflect:!0,attribute:`disabled`})],c.prototype,`disabled`,void 0),c=n([e(`bd-tab`)],c);export{c as BdTab,s as TAB_APPEARANCES};
2
+ //# sourceMappingURL=tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.js","names":["tabCSS","_decorate","__decorate","tab_css_default","TAB_APPEARANCES","BdTab","LitElement","changed","isOneOf","panel","property","defineElement"],"sources":["../../../../src/components/tab-group/tab.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 tabCSS from \"./tab.css.ts\";\n\n/* A bd-tab-group's looks, which it hands its tabs: standard, the underlined\n strip, and switcher, 3.x bd-tab-list's content switcher -- a pill track with\n the shown tab on a white pill. */\nexport const TAB_APPEARANCES = [\"standard\", \"switcher\"] as const;\nexport type TabAppearance = typeof TAB_APPEARANCES[number];\n\n/**\n * One tab of a bd-tab-group: its label, and the name of the panel it shows.\n *\n * <bd-tab panel=\"windows\">Windows</bd-tab>\n *\n * The tab is the control itself: role=\"tab\" through ElementInternals, with\n * aria-selected following `active`, so nothing renders but the label. Its\n * group writes the rest onto it -- `active`, its `appearance` and the roving\n * tabindex as attributes, so a tab that upgrades after its group still finds\n * them -- and pairs it with the panel it controls through _pair(), which the\n * tab hands to its ElementInternals as ariaControlsElements (tab-group.ts\n * says why).\n *\n * What the tab shows is the page's: a word, phrasing, a <bd-icon> beside the\n * word. 3.x bd-tab-list's `icon` / `iconAlt` and rich `content` are whatever\n * the page writes here, laid out in a row, centred, 8 apart.\n *\n * ElementInternals' ARIA reflection is Baseline Widely available since\n * 2026-04-24 (Chrome 103, Firefox 119, Safari 16.4; webstatus.dev\n * aria-attribute-reflection, looked up 2026-11-04), so the role needs no host\n * attribute.\n */\n@defineElement(\"bd-tab\")\nexport class BdTab extends LitElement {\n static styles = [tabCSS];\n\n /** The `name` of the bd-tab-panel this tab shows. Reflected, because the group reads it as an attribute. */\n @property({ type: String, reflect: true, attribute: \"panel\" })\n panel = \"\";\n\n /** Whether this is the shown tab. Set by the group from its `active`; reflected, for the stylesheet. */\n @property({ type: Boolean, reflect: true, attribute: \"active\" })\n active = false;\n\n /**\n * The strip's look, set by the group from its own `appearance`: written as\n * \"switcher\" in a switcher group and taken away in a standard one, and the\n * stylesheet reads the attribute. Not reflected: the default is no attribute.\n */\n @property({ type: String, attribute: \"appearance\" })\n appearance: TabAppearance = \"standard\";\n\n /** A disabled tab cannot be chosen, and the arrow keys skip it. */\n @property({ type: Boolean, reflect: true, attribute: \"disabled\" })\n disabled = false;\n\n private readonly _internals = this.attachInternals();\n\n constructor() {\n super();\n this._internals.role = \"tab\";\n this._internals.ariaSelected = \"false\";\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(TAB_APPEARANCES, this.appearance)) this.appearance = \"standard\";\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"active\")) this._internals.ariaSelected = String(this.active);\n if (changed.has(\"disabled\")) this._internals.ariaDisabled = this.disabled ? \"true\" : null;\n }\n\n /** Called by the group with the panel this tab controls, or null when it controls none. */\n _pair(panel: Element | null) {\n this._internals.ariaControlsElements = panel ? [panel] : null;\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-tab\": BdTab;\n }\n}\n"],"mappings":"A,gVAWA,IAAaI,EAAkB,CAAC,WAAY,UAAU,EA0BzCC,EAAN,cAAoBC,CAAW,C,OACpB,KAAA,OAAA,CAACN,CAAM,C,CAwBvB,aAAc,CACZ,MAAM,EArBA,KAAA,MAAA,GAIC,KAAA,OAAA,GAQmB,KAAA,WAAA,WAIjB,KAAA,SAAA,GAEmB,KAAA,WAAA,KAAK,gBAAgB,EAIjD,KAAK,WAAW,KAAO,MACvB,KAAK,WAAW,aAAe,OACjC,CAEA,WAAW,EAA+B,CACpCO,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQJ,EAAiB,KAAK,UAAU,IAAG,KAAK,WAAa,WACjG,CAEA,QAAQ,EAA+B,CACjCG,EAAQ,IAAI,QAAQ,IAAG,KAAK,WAAW,aAAe,OAAO,KAAK,MAAM,GACxEA,EAAQ,IAAI,UAAU,IAAG,KAAK,WAAW,aAAe,KAAK,SAAW,OAAS,KACvF,CAGA,MAAM,EAAuB,CAC3B,KAAK,WAAW,qBAAuBE,EAAQ,CAACA,CAAK,EAAI,IAC3D,CAEA,QAAS,CACP,MAAO,EAAI,eACb,CACF,EA5CGR,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAI5DJ,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,QAAS,CAAC,CAAA,EAAAL,EAAA,UAAA,SAAA,IAAA,EAAA,EAQ9DJ,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAL,EAAA,UAAA,aAAA,IAAA,EAAA,EAIlDJ,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,UAAW,CAAC,CAAA,EAAAL,EAAA,UAAA,WAAA,IAAA,EAAA,EArBlE,EAAAJ,EAAA,CAAAU,EAAc,QAAQ,CAAA,EAAAN,CAAA,E"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The table of contents' reading position: which section the reader is in.
3
+ *
4
+ * REAL's rule, from its templates/shared/toc.ts: the current section is the
5
+ * last one whose heading has reached the reading line, a fifth of the way
6
+ * down the viewport, else the first; and once the page is scrolled to its
7
+ * end, the last, since a short last section can leave its heading below the
8
+ * line with nowhere further to scroll. A heading that is not laid out --
9
+ * in a section the page has not shown yet -- reports a top of 0 and is not
10
+ * counted, and while any is missing the page's end says nothing.
11
+ *
12
+ * The blog's lib/article-toc.ts until the blog folded into the package's
13
+ * components (DEX-29414).
14
+ */
15
+ export interface TocHeading {
16
+ id: string;
17
+ el: Element;
18
+ }
19
+ /** Where the reading line sits, as a fraction of the viewport's height. */
20
+ export declare const READING_LINE = 0.2;
21
+ /** Whether the page is scrolled to its end: it scrolls, and there is no further to go. */
22
+ export declare function atPageEnd(): boolean;
23
+ /** The id of the section the reader is in, or '' with no headings. */
24
+ export declare function currentTocId(headings: TocHeading[]): string;
@@ -0,0 +1,2 @@
1
+ var e=.2;function t(){let e=document.documentElement.scrollHeight-window.innerHeight;return e>0&&window.scrollY>=e-1}function n(n){if(!n.length)return``;let r=n.filter(({el:e})=>e.getClientRects().length>0);if(r.length===n.length&&t())return n[n.length-1].id;let i=window.innerHeight*e;return(r.filter(({el:e})=>e.getBoundingClientRect().top<=i).at(-1)??n[0]).id}export{e as READING_LINE,t as atPageEnd,n as currentTocId};
2
+ //# sourceMappingURL=reading-line.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reading-line.js","names":["READING_LINE","atPageEnd","max","currentTocId","headings","laidOut","el","line"],"sources":["../../../../src/components/table-of-contents/reading-line.ts"],"sourcesContent":["/**\n * The table of contents' reading position: which section the reader is in.\n *\n * REAL's rule, from its templates/shared/toc.ts: the current section is the\n * last one whose heading has reached the reading line, a fifth of the way\n * down the viewport, else the first; and once the page is scrolled to its\n * end, the last, since a short last section can leave its heading below the\n * line with nowhere further to scroll. A heading that is not laid out --\n * in a section the page has not shown yet -- reports a top of 0 and is not\n * counted, and while any is missing the page's end says nothing.\n *\n * The blog's lib/article-toc.ts until the blog folded into the package's\n * components (DEX-29414).\n */\n\nexport interface TocHeading {\n id: string;\n el: Element;\n}\n\n/** Where the reading line sits, as a fraction of the viewport's height. */\nexport const READING_LINE = 0.2;\n\n/** Whether the page is scrolled to its end: it scrolls, and there is no further to go. */\nexport function atPageEnd() {\n const max = document.documentElement.scrollHeight - window.innerHeight;\n return max > 0 && window.scrollY >= max - 1;\n}\n\n/** The id of the section the reader is in, or '' with no headings. */\nexport function currentTocId(headings: TocHeading[]) {\n if (!headings.length) return '';\n const laidOut = headings.filter(({ el }) => el.getClientRects().length > 0);\n if (laidOut.length === headings.length && atPageEnd()) return headings[headings.length - 1].id;\n const line = window.innerHeight * READING_LINE;\n return (laidOut.filter(({ el }) => el.getBoundingClientRect().top <= line).at(-1) ?? headings[0]).id;\n}\n"],"mappings":"AAqBA,IAAaA,EAAe,GAG5B,SAAgBC,GAAY,CAC1B,IAAMC,EAAM,SAAS,gBAAgB,aAAe,OAAO,YAC3D,OAAOA,EAAM,GAAK,OAAO,SAAWA,EAAM,CAC5C,CAGA,SAAgBC,EAAa,EAAwB,CACnD,GAAI,CAACC,EAAS,OAAQ,MAAO,GAC7B,IAAMC,EAAUD,EAAS,QAAQ,CAAE,QAASE,EAAG,eAAe,CAAC,CAAC,OAAS,CAAC,EAC1E,GAAID,EAAQ,SAAWD,EAAS,QAAUH,EAAU,EAAG,OAAOG,EAASA,EAAS,OAAS,EAAE,CAAC,GAC5F,IAAMG,EAAO,OAAO,YAAcP,EAClC,OAAQK,EAAQ,QAAQ,CAAE,QAASC,EAAG,sBAAsB,CAAC,CAAC,KAAOC,CAAI,CAAC,CAAC,GAAG,EAAE,GAAKH,EAAS,GAAA,CAAI,EACpG,C"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * bd-table-of-contents-item: one entry of 229:455 -- the link in bold 16,
3
+ * the brand's text ink, no underline until hovered. The current entry is
4
+ * the brand's hover ink with REAL's 8px dot in the list's start padding,
5
+ * 8 before the words; Figma draws no current state.
6
+ */
7
+ export declare const tableOfContentsItemCSS: import("lit").CSSResult;
@@ -0,0 +1,2 @@
1
+ import{css as e}from"lit";var t=e`:host{font-family:var(--typography-link-standalone-fontFamily);font-size:var(--typography-link-standalone-fontSize);font-weight:var(--typography-fontWeight-bold);line-height:var(--typography-link-standalone-lineHeight);letter-spacing:var(--typography-link-standalone-letterSpacing);display:block;position:relative}.marker{left:calc(-1 * (var(--dimension-8) + var(--spacing-8)));width:var(--dimension-8);height:var(--dimension-8);border-radius:var(--radius-full);transition:background-color var(--transition-duration-fast) var(--transition-easing-ease-out);background:0 0;position:absolute;top:.5lh;transform:translateY(-50%)}:host([current]) .marker{background:var(--color-surface-brand)}a{color:var(--color-text-brand);text-underline-offset:var(--typography-link-underlineOffset);transition:color var(--transition-duration-fast) var(--transition-easing-ease-out);text-decoration:none;display:block}:host([current]) a,a:hover{color:var(--color-text-brand-hover)}a:hover{text-decoration:underline}a:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary);border-radius:var(--focus-outline-radius)}@media (prefers-reduced-motion:reduce){.marker,a{transition:none}}`;export{t as tableOfContentsItemCSS};
2
+ //# sourceMappingURL=table-of-contents-item.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-of-contents-item.css.js","names":["tableOfContentsItemCSS"],"sources":["../../../../src/components/table-of-contents/table-of-contents-item.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * bd-table-of-contents-item: one entry of 229:455 -- the link in bold 16,\n * the brand's text ink, no underline until hovered. The current entry is\n * the brand's hover ink with REAL's 8px dot in the list's start padding,\n * 8 before the words; Figma draws no current state.\n */\nexport const tableOfContentsItemCSS = css`\n :host {\n display: block;\n position: relative;\n font-family: var(--typography-link-standalone-fontFamily);\n font-size: var(--typography-link-standalone-fontSize);\n /* no role: the contents' bold entries -- a modifier weight on the\n standalone link role, which the design draws in bold */\n font-weight: var(--typography-fontWeight-bold);\n line-height: var(--typography-link-standalone-lineHeight);\n letter-spacing: var(--typography-link-standalone-letterSpacing);\n }\n\n /* The marker: a dot in the indent before the current entry, centred on\n its first line -- half the line box down, whatever the reader's text\n size. */\n .marker {\n position: absolute;\n left: calc(-1 * (var(--dimension-8) + var(--spacing-8)));\n /* no token: half the entry's own line box, which follows its leading\n and the reader's text size; no scale holds a fraction of a line */\n top: 0.5lh;\n width: var(--dimension-8);\n height: var(--dimension-8);\n border-radius: var(--radius-full);\n background: transparent;\n transform: translateY(-50%);\n transition: background-color var(--transition-duration-fast) var(--transition-easing-ease-out);\n }\n\n :host([current]) .marker {\n background: var(--color-surface-brand);\n }\n\n a {\n display: block;\n color: var(--color-text-brand);\n text-decoration: none;\n text-underline-offset: var(--typography-link-underlineOffset);\n transition: color var(--transition-duration-fast) var(--transition-easing-ease-out);\n }\n\n :host([current]) a,\n a:hover {\n color: var(--color-text-brand-hover);\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n /* the one focus ring -- see Foundations/Focus */\n a:focus-visible {\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .marker,\n a {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,0BAQA,IAAaA,EAAyB,CAAG,suC"}
@@ -0,0 +1,40 @@
1
+ import { LitElement } from "lit";
2
+ import "../../tokens/tokens.js";
3
+ /**
4
+ * One section of a bd-table-of-contents, and the link to it.
5
+ *
6
+ * <bd-table-of-contents-item href="#how-the-scam-works">How the scam works</bd-table-of-contents-item>
7
+ *
8
+ * The item is the link: it renders `<a part="link" href><slot></slot></a>`,
9
+ * and its words are the link's, as bd-anchor-nav-item's are. The page writes
10
+ * each subhead's `id` and one item per section, pointing at it.
11
+ *
12
+ * The table of contents sets `current` on the item whose section the reader
13
+ * is in -- the one it pushes it to, read off the scroll -- which puts
14
+ * aria-current="location" on the link and draws the marker beside it, so the
15
+ * look and the announcement cannot disagree. "location", not "page": these
16
+ * are places in one page.
17
+ *
18
+ * Inside a bd-table-of-contents the item is one item of its list, through
19
+ * ElementInternals, so nothing is written on the page's markup; anywhere else
20
+ * it is a link and no list item of anything.
21
+ *
22
+ * bd-blog-table-of-contents-item until the blog folded into the package's
23
+ * components (DEX-29414).
24
+ */
25
+ export declare class BdTableOfContentsItem extends LitElement {
26
+ static styles: import("lit").CSSResult[];
27
+ /** The section this item goes to: a fragment link, such as #how-the-scam-works. */
28
+ href: string;
29
+ /** The item whose section the reader is in. Pushed by the table of contents, and reflected for the look. */
30
+ current: boolean;
31
+ _internals: ElementInternals;
32
+ constructor();
33
+ connectedCallback(): void;
34
+ render(): import("lit-html").TemplateResult<1>;
35
+ }
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'bd-table-of-contents-item': BdTableOfContentsItem;
39
+ }
40
+ }
@@ -0,0 +1,2 @@
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{tableOfContentsItemCSS as n}from"./table-of-contents-item.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{static{this.styles=[n]}constructor(){super(),this.href=``,this.current=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._internals.role=this.parentElement?.localName===`bd-table-of-contents`?`listitem`:null}render(){return i`<span class="marker" aria-hidden="true"></span><a part="link" href=${this.href||a} aria-current=${this.current?`location`:a}><slot></slot></a>`}};t([o({type:String,attribute:`href`})],s.prototype,`href`,void 0),t([o({type:Boolean,reflect:!0,attribute:`current`})],s.prototype,`current`,void 0),s=t([e(`bd-table-of-contents-item`)],s);export{s as BdTableOfContentsItem};
2
+ //# sourceMappingURL=table-of-contents-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-of-contents-item.js","names":["_decorate","__decorate","BdTableOfContentsItem","LitElement","tableOfContentsItemCSS","nothing","property","defineElement"],"sources":["../../../../src/components/table-of-contents/table-of-contents-item.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 { tableOfContentsItemCSS } from './table-of-contents-item.css.ts';\n\n/**\n * One section of a bd-table-of-contents, and the link to it.\n *\n * <bd-table-of-contents-item href=\"#how-the-scam-works\">How the scam works</bd-table-of-contents-item>\n *\n * The item is the link: it renders `<a part=\"link\" href><slot></slot></a>`,\n * and its words are the link's, as bd-anchor-nav-item's are. The page writes\n * each subhead's `id` and one item per section, pointing at it.\n *\n * The table of contents sets `current` on the item whose section the reader\n * is in -- the one it pushes it to, read off the scroll -- which puts\n * aria-current=\"location\" on the link and draws the marker beside it, so the\n * look and the announcement cannot disagree. \"location\", not \"page\": these\n * are places in one page.\n *\n * Inside a bd-table-of-contents the item is one item of its list, through\n * ElementInternals, so nothing is written on the page's markup; anywhere else\n * it is a link and no list item of anything.\n *\n * bd-blog-table-of-contents-item until the blog folded into the package's\n * components (DEX-29414).\n */\n@defineElement('bd-table-of-contents-item')\nexport class BdTableOfContentsItem extends LitElement {\n static styles = [tableOfContentsItemCSS];\n\n /** The section this item goes to: a fragment link, such as #how-the-scam-works. */\n @property({ type: String, attribute: 'href' })\n href = '';\n\n /** The item whose section the reader is in. Pushed by the table of contents, and reflected for the look. */\n @property({ type: Boolean, reflect: true, attribute: 'current' })\n current = false;\n\n _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = this.parentElement?.localName === 'bd-table-of-contents' ? 'listitem' : null;\n }\n\n /* No whitespace inside the anchor: a newline there is a text node beside the words. */\n render() {\n return html`<span class=\"marker\" aria-hidden=\"true\"></span><a part=\"link\" href=${this.href || nothing} aria-current=${this.current ? 'location' : nothing}><slot></slot></a>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-table-of-contents-item': BdTableOfContentsItem;\n }\n}\n"],"mappings":"A,mVA8BO,IAAME,EAAN,cAAoCC,CAAW,C,OACpC,KAAA,OAAA,CAACC,CAAsB,C,CAYvC,aAAc,CACZ,MAAM,EATD,KAAA,KAAA,GAIG,KAAA,QAAA,GAMR,KAAK,WAAa,KAAK,gBAAgB,CACzC,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,WAAW,KAAO,KAAK,eAAe,YAAc,uBAAyB,WAAa,IACjG,CAGA,QAAS,CACP,MAAO,EAAI,sEAAsE,KAAK,MAAQC,EAAQ,gBAAgB,KAAK,QAAU,WAAaA,EAAQ,mBAC5J,CACF,EAvBGL,EAAA,CAAAM,EAAS,CAAE,KAAM,OAAQ,UAAW,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,OAAA,IAAA,EAAA,EAI5CF,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,SAAU,CAAC,CAAA,EAAAJ,EAAA,UAAA,UAAA,IAAA,EAAA,EATjE,EAAAF,EAAA,CAAAO,EAAc,2BAA2B,CAAA,EAAAL,CAAA,E"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * bd-table-of-contents: csg_blog's contents card, frame 69:830 nodes
3
+ * 207:455, 229:454 and 229:455 -- the brand wash, no edge, at the card
4
+ * corner; the title semibold 16 in the primary ink, 24 in from the card's
5
+ * top and sides and 8 above the list; the items 24 in, on a 40px pitch,
6
+ * 24 above the card's foot. Folded below lg it is frame 296:457's bar,
7
+ * 296:460: 56 tall, 12 above and below the toggle, the title at the start
8
+ * and a 16px plus at the end.
9
+ */
10
+ export declare const tableOfContentsCSS: import("lit").CSSResult;
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}[hidden]{display:none!important}.toc{border-radius:var(--card-radius);background:var(--status-brand-surface);overflow:hidden}.toc__header{justify-content:space-between;align-items:center;gap:var(--spacing-12);padding:var(--spacing-24) var(--spacing-24) var(--spacing-8);display:flex}.toc__title{flex:1;min-width:0}::slotted(bd-h[slot=title]){--bd-heading-font-size:var(--typography-heading-h6-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-semibold);--bd-heading-line-height:var(--typography-heading-h6-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h6-letterSpacing);--bd-heading-font-family:var(--typography-heading-h6-fontFamily);--bd-heading-color:var(--color-text-primary)}.toc__toggle{width:var(--dimension-32);height:var(--dimension-32);border-radius:var(--focus-outline-radius);cursor:pointer;color:var(--color-text-brand);transition:color var(--transition-duration-fast) var(--transition-easing-ease-out);background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;display:flex}.toc__header:hover .toc__toggle,.toc__toggle:focus-visible{color:var(--color-text-brand-hover)}.toc__toggle:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.toc__list{gap:var(--spacing-16);padding:var(--spacing-8) var(--spacing-24) var(--spacing-24);margin:0;list-style:none;display:grid}:host([collapsible]) .toc__header{padding:var(--spacing-12) var(--spacing-24);cursor:pointer}:host([collapsible]) .toc--collapsed .toc__list{display:none}@media (width>=992px){:host([collapsible]) .toc__header{padding:var(--spacing-24) var(--spacing-24) var(--spacing-8);cursor:auto}.toc__toggle{display:none}:host([collapsible]) .toc--collapsed .toc__list{display:grid}}@media (prefers-reduced-motion:reduce){.toc__toggle{transition:none}}`;export{t as tableOfContentsCSS};
2
+ //# sourceMappingURL=table-of-contents.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-of-contents.css.js","names":["tableOfContentsCSS"],"sources":["../../../../src/components/table-of-contents/table-of-contents.css.ts"],"sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { above, headingRole } from '#shared/token-scales.ts';\n\n/**\n * bd-table-of-contents: csg_blog's contents card, frame 69:830 nodes\n * 207:455, 229:454 and 229:455 -- the brand wash, no edge, at the card\n * corner; the title semibold 16 in the primary ink, 24 in from the card's\n * top and sides and 8 above the list; the items 24 in, on a 40px pitch,\n * 24 above the card's foot. Folded below lg it is frame 296:457's bar,\n * 296:460: 56 tall, 12 above and below the toggle, the title at the start\n * and a 16px plus at the end.\n */\nexport const tableOfContentsCSS = css`\n :host {\n display: block;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .toc {\n border-radius: var(--card-radius);\n background: var(--status-brand-surface);\n overflow: hidden;\n }\n\n .toc__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--spacing-12);\n padding: var(--spacing-24) var(--spacing-24) var(--spacing-8);\n }\n\n .toc__title {\n flex: 1;\n min-width: 0;\n }\n\n /* The page's heading, at the card's title whatever its level: heading-h6\n (16 at 320, 18 from lg) in semibold, in the primary ink. */\n ::slotted(bd-h[slot='title']) {\n ${unsafeCSS(headingRole('heading-h6'))}\n /* no role: the h6 role at 600, which csg_blog draws (229:454); no\n heading role carries the h6 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-semibold);\n --bd-heading-color: var(--color-text-primary);\n }\n\n /* The toggle: a 32px target holding the 16px plus or minus, in the brand's\n text ink, darker under the pointer. 12 + 32 + 12 is the bar's 56. */\n .toc__toggle {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--dimension-32);\n height: var(--dimension-32);\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: var(--focus-outline-radius);\n background: transparent;\n cursor: pointer;\n color: var(--color-text-brand);\n transition: color var(--transition-duration-fast) var(--transition-easing-ease-out);\n }\n\n .toc__header:hover .toc__toggle,\n .toc__toggle:focus-visible {\n color: var(--color-text-brand-hover);\n }\n\n /* the one focus ring -- see Foundations/Focus. Forced-colors mode does not\n paint box-shadow, so the transparent outline is what draws there. */\n .toc__toggle:focus-visible {\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n }\n\n .toc__list {\n display: grid;\n gap: var(--spacing-16);\n margin: 0;\n padding: var(--spacing-8) var(--spacing-24) var(--spacing-24);\n list-style: none;\n }\n\n /* Below lg, collapsible: the header is the bar, and the list folds under it. */\n :host([collapsible]) .toc__header {\n padding: var(--spacing-12) var(--spacing-24);\n cursor: pointer;\n }\n\n :host([collapsible]) .toc--collapsed .toc__list {\n display: none;\n }\n\n /* From lg the contents are open whatever the toggle says, and the toggle\n is not drawn: the card, as the sidebar holds it. */\n @media ${unsafeCSS(above('lg'))} {\n :host([collapsible]) .toc__header {\n padding: var(--spacing-24) var(--spacing-24) var(--spacing-8);\n cursor: auto;\n }\n\n .toc__toggle {\n display: none;\n }\n\n :host([collapsible]) .toc--collapsed .toc__list {\n display: grid;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .toc__toggle {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,4DAYA,IAAaA,EAAqB,CAAG,o3D"}
@@ -0,0 +1,116 @@
1
+ import { LitElement } from "lit";
2
+ import { MediaQueryController } from "../shared/controller.media-query.js";
3
+ import { ObserverController } from "../shared/controller.observer.js";
4
+ import { SlotController } from "../shared/controller.slot.js";
5
+ import "../../tokens/tokens.js";
6
+ import "../h/h.js";
7
+ import "../icons/minus.js";
8
+ import "../icons/plus.js";
9
+ import { type TocHeading } from "./reading-line.js";
10
+ import "./table-of-contents-item.js";
11
+ /**
12
+ * The article's table of contents: the page's heading over one link per
13
+ * section, the section the reader is in marked as they scroll.
14
+ *
15
+ * <bd-table-of-contents collapsible>
16
+ * <bd-h slot="title" as="h2">Contents</bd-h>
17
+ * <bd-table-of-contents-item href="#how-the-scam-works">How the scam works</bd-table-of-contents-item>
18
+ * <bd-table-of-contents-item href="#bottom-line">Bottom line</bd-table-of-contents-item>
19
+ * </bd-table-of-contents>
20
+ *
21
+ * The page writes the entries, as it writes bd-anchor-nav's. 3.x took an
22
+ * `items` array -- bd-blog-article built it from its own blocks and announced
23
+ * it with `toc-items-changed` -- and drew "Contents" itself. Both are gone:
24
+ * the heading is the page's, at the level it picks, and the table of
25
+ * contents sets its size and ink through the --bd-heading-* hooks.
26
+ *
27
+ * ## Folding
28
+ *
29
+ * `collapsible` folds the list behind the header below lg, as 3.x's inline
30
+ * copy did: the header is then csg_blog's 56px bar. From lg it is always
31
+ * open, as 3.x's sidebar copy was: the article moves one node between the
32
+ * two places (bd-article), so one node plays both, and the fold is the
33
+ * stylesheet's, not a second element's. The header holds the heading and
34
+ * the toggle, a `<button aria-expanded aria-controls>` named by the heading,
35
+ * which draws the package's plus or minus (`<bd-icon>`), never a glyph.
36
+ * 3.x's whole header was the button, which a heading cannot be inside, so
37
+ * the button is beside the heading; the header is still clickable
38
+ * everywhere, as it was.
39
+ *
40
+ * ## The scroll spy, as REAL's templates/shared/toc.ts
41
+ *
42
+ * From lg only: below it the contents are a card above the sections, not
43
+ * beside them, so nothing is current there, and crossing lg starts or
44
+ * stops the spy and clears what it marked. Each item's target is found from
45
+ * its href, in this element's own tree -- the document, or the shadow root
46
+ * of a component it is rendered in -- else the document, whenever the spy
47
+ * runs, so a section the page adds after the contents is found. The item
48
+ * whose section the reader is in gets `current`, and only it: the last
49
+ * section whose heading has reached the reading line, a fifth of the way
50
+ * down the viewport, else the first; and at the page's end the last, whose
51
+ * heading a short last section may never bring up to the line
52
+ * (reading-line.ts).
53
+ *
54
+ * A click is the browser's own jump to the hash: the page's `:target` and
55
+ * `hashchange` work, the address gains one history entry, and the section
56
+ * lands under its own scroll-margin-top. Nothing is prevented, pushed or
57
+ * scrolled by script, so it is never smooth, and a page opened at a hash is
58
+ * the browser's to scroll there too. From lg the clicked item is held
59
+ * current while the jump's own scroll runs and until the reader scrolls
60
+ * again, as REAL holds it: on a short section the reading line can fall on
61
+ * the next one, which is not the one the reader picked. The hold ends at
62
+ * the first scroll after the jump has come to rest (`scrollend`, or a
63
+ * scroll that has stopped for 120ms where there is none), and at the first
64
+ * scroll at all after a jump that goes nowhere, such as a click on the
65
+ * section the page already shows at its top. The browser looks a fragment
66
+ * up in the document only, so in a page's shadow root a click puts the hash
67
+ * in the address and scrolls nowhere. 3.x's scroll lock
68
+ * -- an attribute on <html> held until a smooth scroll ended -- went with
69
+ * the smooth scroll.
70
+ *
71
+ * The list is named by the heading: `<nav aria-labelledby>` at the box
72
+ * wrapping the title slot, while one is slotted. 3.x's nav was labelled with
73
+ * its own English "Contents".
74
+ *
75
+ * bd-blog-table-of-contents until the blog folded into the package's
76
+ * components (DEX-29414); the divider under its header went with csg_blog's
77
+ * card, which draws none.
78
+ */
79
+ export declare class BdTableOfContents extends LitElement {
80
+ static styles: import("lit").CSSResult[];
81
+ /** Folds the list behind its header below lg, closed until the toggle opens it. Always open from lg. */
82
+ collapsible: boolean;
83
+ _open: boolean;
84
+ _slots: SlotController<"" | "title">;
85
+ _children: ObserverController<MutationObserver>;
86
+ /** From lg: the spy runs. */
87
+ _wide: boolean;
88
+ _media: MediaQueryController;
89
+ _held: string;
90
+ _settled: boolean;
91
+ _restTimer: number;
92
+ _scrollRaf: number;
93
+ _connectRaf: number;
94
+ connectedCallback(): void;
95
+ disconnectedCallback(): void;
96
+ /** The page's items, in order. */
97
+ _items(): Element[];
98
+ /** The element a fragment names: in this element's tree, else the document. */
99
+ _target(id: string): HTMLElement | null;
100
+ /** Each item whose section is on the page, with that section. */
101
+ _headings(): (TocHeading & {
102
+ item: Element;
103
+ })[];
104
+ _onScroll: () => void;
105
+ _onScrollEnd: () => void;
106
+ _push(id: string): void;
107
+ _spy(): void;
108
+ _onListClick: (event: MouseEvent) => void;
109
+ _onHeaderClick: () => void;
110
+ render(): import("lit-html").TemplateResult<1>;
111
+ }
112
+ declare global {
113
+ interface HTMLElementTagNameMap {
114
+ 'bd-table-of-contents': BdTableOfContents;
115
+ }
116
+ }
@@ -0,0 +1,24 @@
1
+ import{above as e}from"../shared/token-scales.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ObserverController as r}from"../shared/controller.observer.js";import{SlotController as i}from"../shared/controller.slot.js";import"../h/h.js";import"../icons/minus.js";import"../icons/plus.js";import{MediaQueryController as a}from"../shared/controller.media-query.js";import{currentTocId as o}from"./reading-line.js";import{tableOfContentsCSS as s}from"./table-of-contents.css.js";import"./table-of-contents-item.js";import{LitElement as c,html as l,nothing as u}from"lit";import{property as d,state as f}from"lit/decorators.js";var p=`bd-table-of-contents-item`,m=e(`lg`),h=120,g=[`href`];function _(e){if(!e)return``;let t;try{t=new URL(e,document.baseURI)}catch{return``}let n=new URL(location.href);if(t.origin!==n.origin||t.pathname!==n.pathname||t.search!==n.search)return``;try{return decodeURIComponent(t.hash.slice(1))}catch{return t.hash.slice(1)}}function v(e){let t=document.getElementById(e);if(!t)return!1;let n=e=>Number.parseFloat(e)||0,r=n(getComputedStyle(t).scrollMarginTop)+n(getComputedStyle(document.documentElement).scrollPaddingTop),i=document.documentElement.scrollHeight-window.innerHeight,a=Math.max(0,Math.min(window.scrollY+t.getBoundingClientRect().top-r,i));return Math.abs(a-window.scrollY)>=1}var y=class extends c{constructor(...e){super(...e),this.collapsible=!1,this._open=!1,this._slots=new i(this,{slots:[`title`,``]}),this._children=new r(this,()=>new MutationObserver(()=>this._spy()),e=>e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:g})),this._wide=!1,this._media=new a(this,m,e=>{this._wide=e,this._held=``,this._spy()}),this._held=``,this._settled=!0,this._restTimer=0,this._scrollRaf=0,this._connectRaf=0,this._onScroll=()=>{if(`onscrollend`in window||(clearTimeout(this._restTimer),this._restTimer=window.setTimeout(this._onScrollEnd,h)),this._wide){if(this._held){if(!this._settled)return;this._held=``}this._scrollRaf||=requestAnimationFrame(()=>{this._scrollRaf=0,this._spy()})}},this._onScrollEnd=()=>{this._settled=!0},this._onListClick=e=>{if(!this._wide||e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=this._items(),n=e.composedPath().find(e=>t.includes(e));if(!n)return;let r=_(n.getAttribute(`href`));r&&this._target(r)&&(this._held=r,this._settled=!v(r),this._push(r))},this._onHeaderClick=()=>{this.collapsible&&!this._wide&&(this._open=!this._open)}}static{this.styles=[s]}connectedCallback(){super.connectedCallback(),window.addEventListener(`scroll`,this._onScroll,{passive:!0}),`onscrollend`in window&&window.addEventListener(`scrollend`,this._onScrollEnd,{passive:!0}),this._connectRaf=requestAnimationFrame(()=>{this._connectRaf=0,this._spy()})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(`scroll`,this._onScroll),window.removeEventListener(`scrollend`,this._onScrollEnd),cancelAnimationFrame(this._scrollRaf),cancelAnimationFrame(this._connectRaf),clearTimeout(this._restTimer),this._scrollRaf=0,this._connectRaf=0,this._held=``,this._settled=!0}_items(){return[...this.children].filter(e=>e.localName===p&&!e.slot)}_target(e){return e?this.getRootNode().getElementById?.(e)??document.getElementById(e):null}_headings(){return this._items().flatMap(e=>{let t=_(e.getAttribute(`href`)),n=this._target(t);return n?[{id:t,el:n,item:e}]:[]})}_push(e){for(let t of this._items())t.toggleAttribute(`current`,!!e&&_(t.getAttribute(`href`))===e)}_spy(){if(!this.isConnected)return;if(!this._wide){this._push(``);return}let e=this._headings();this._held&&e.some(({id:e})=>e===this._held)?this._push(this._held):this._push(o(e))}render(){let e=this._slots.has(`title`),t=this._slots.has(``),n=this.collapsible&&!this._open;return l`
2
+ <nav
3
+ class="toc ${n?`toc--collapsed`:``}"
4
+ part="toc"
5
+ aria-labelledby=${e?`title`:u}
6
+ ?hidden=${!e&&!t}
7
+ >
8
+ <div class="toc__header" part="header" @click=${this._onHeaderClick}>
9
+ <div class="toc__title" id="title" part="title" ?hidden=${!e}><slot name="title"></slot></div>
10
+ <button
11
+ type="button"
12
+ class="toc__toggle"
13
+ part="toggle"
14
+ aria-expanded=${this._open?`true`:`false`}
15
+ aria-controls="toc-list"
16
+ aria-labelledby=${e?`title`:u}
17
+ ?hidden=${!this.collapsible}
18
+ ><bd-icon name=${this._open?`minus`:`plus`} size="sm"></bd-icon></button>
19
+ </div>
20
+ <!-- role="list" for WebKit, which drops a list's role under list-style: none -->
21
+ <ol id="toc-list" class="toc__list" part="list" role="list" @click=${this._onListClick}><slot></slot></ol>
22
+ </nav>
23
+ `}};n([d({type:Boolean,reflect:!0,attribute:`collapsible`})],y.prototype,`collapsible`,void 0),n([f()],y.prototype,`_open`,void 0),y=n([t(`bd-table-of-contents`)],y);export{y as BdTableOfContents};
24
+ //# sourceMappingURL=table-of-contents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-of-contents.js","names":["_decorate","__decorate","ITEM","WIDE","above","SCROLL_REST_MS","WATCHED","fragmentOf","href","url","here","jumpScrolls","target","id","px","value","offset","max","to","BdTableOfContents","LitElement","_args","SlotController","ObserverController","observer","MediaQueryController","wide","event","items","item","el","tableOfContentsCSS","headings","currentTocId","hasTitle","hasItems","collapsed","nothing","property","state","defineElement"],"sources":["../../../../src/components/table-of-contents/table-of-contents.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { MediaQueryController } from '#shared/controller.media-query.ts';\nimport { ObserverController } from '#shared/controller.observer.ts';\nimport { SlotController } from '#shared/controller.slot.ts';\nimport { defineElement } from '#shared/define-element.ts';\nimport { above } from '#shared/token-scales.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\n// the heading the page writes, and the toggle's two drawings\nimport '#components/h/h.ts';\nimport '#components/icons/minus.ts';\nimport '#components/icons/plus.ts';\nimport { currentTocId, type TocHeading } from './reading-line.ts';\nimport { tableOfContentsCSS } from './table-of-contents.css.ts';\nimport './table-of-contents-item.ts';\n\nconst ITEM = 'bd-table-of-contents-item';\n\n/* The lg query: the spy runs from it, as bd-article's sidebar starts there. */\nconst WIDE = above('lg');\n\n/* How long the scroll has to rest before a held click is let go, where the\n browser sends no scrollend: REAL's debounce for the same fallback. */\nconst SCROLL_REST_MS = 120;\n\n/* What a change on an item can move: which section it goes to. */\nconst WATCHED = ['href'];\n\n/* The fragment an item's href names, when it names a place in this page. */\nfunction fragmentOf(href: string | null) {\n if (!href) return '';\n let url: URL;\n try {\n url = new URL(href, document.baseURI);\n } catch {\n return '';\n }\n const here = new URL(location.href);\n if (url.origin !== here.origin || url.pathname !== here.pathname || url.search !== here.search) return '';\n try {\n return decodeURIComponent(url.hash.slice(1));\n } catch {\n return url.hash.slice(1);\n }\n}\n\n/* Whether the browser's jump to the fragment `id` scrolls the page. It looks\n the id up in the document, never in a shadow root, so a section in a\n page's shadow root is no jump at all; one in the document has its top,\n less its scroll margin and the page's scroll padding, brought to the top\n of the viewport, as far as the page scrolls. */\nfunction jumpScrolls(id: string) {\n const target = document.getElementById(id);\n if (!target) return false;\n const px = (value: string) => Number.parseFloat(value) || 0;\n const offset = px(getComputedStyle(target).scrollMarginTop) + px(getComputedStyle(document.documentElement).scrollPaddingTop);\n const max = document.documentElement.scrollHeight - window.innerHeight;\n const to = Math.max(0, Math.min(window.scrollY + target.getBoundingClientRect().top - offset, max));\n return Math.abs(to - window.scrollY) >= 1;\n}\n\n/**\n * The article's table of contents: the page's heading over one link per\n * section, the section the reader is in marked as they scroll.\n *\n * <bd-table-of-contents collapsible>\n * <bd-h slot=\"title\" as=\"h2\">Contents</bd-h>\n * <bd-table-of-contents-item href=\"#how-the-scam-works\">How the scam works</bd-table-of-contents-item>\n * <bd-table-of-contents-item href=\"#bottom-line\">Bottom line</bd-table-of-contents-item>\n * </bd-table-of-contents>\n *\n * The page writes the entries, as it writes bd-anchor-nav's. 3.x took an\n * `items` array -- bd-blog-article built it from its own blocks and announced\n * it with `toc-items-changed` -- and drew \"Contents\" itself. Both are gone:\n * the heading is the page's, at the level it picks, and the table of\n * contents sets its size and ink through the --bd-heading-* hooks.\n *\n * ## Folding\n *\n * `collapsible` folds the list behind the header below lg, as 3.x's inline\n * copy did: the header is then csg_blog's 56px bar. From lg it is always\n * open, as 3.x's sidebar copy was: the article moves one node between the\n * two places (bd-article), so one node plays both, and the fold is the\n * stylesheet's, not a second element's. The header holds the heading and\n * the toggle, a `<button aria-expanded aria-controls>` named by the heading,\n * which draws the package's plus or minus (`<bd-icon>`), never a glyph.\n * 3.x's whole header was the button, which a heading cannot be inside, so\n * the button is beside the heading; the header is still clickable\n * everywhere, as it was.\n *\n * ## The scroll spy, as REAL's templates/shared/toc.ts\n *\n * From lg only: below it the contents are a card above the sections, not\n * beside them, so nothing is current there, and crossing lg starts or\n * stops the spy and clears what it marked. Each item's target is found from\n * its href, in this element's own tree -- the document, or the shadow root\n * of a component it is rendered in -- else the document, whenever the spy\n * runs, so a section the page adds after the contents is found. The item\n * whose section the reader is in gets `current`, and only it: the last\n * section whose heading has reached the reading line, a fifth of the way\n * down the viewport, else the first; and at the page's end the last, whose\n * heading a short last section may never bring up to the line\n * (reading-line.ts).\n *\n * A click is the browser's own jump to the hash: the page's `:target` and\n * `hashchange` work, the address gains one history entry, and the section\n * lands under its own scroll-margin-top. Nothing is prevented, pushed or\n * scrolled by script, so it is never smooth, and a page opened at a hash is\n * the browser's to scroll there too. From lg the clicked item is held\n * current while the jump's own scroll runs and until the reader scrolls\n * again, as REAL holds it: on a short section the reading line can fall on\n * the next one, which is not the one the reader picked. The hold ends at\n * the first scroll after the jump has come to rest (`scrollend`, or a\n * scroll that has stopped for 120ms where there is none), and at the first\n * scroll at all after a jump that goes nowhere, such as a click on the\n * section the page already shows at its top. The browser looks a fragment\n * up in the document only, so in a page's shadow root a click puts the hash\n * in the address and scrolls nowhere. 3.x's scroll lock\n * -- an attribute on <html> held until a smooth scroll ended -- went with\n * the smooth scroll.\n *\n * The list is named by the heading: `<nav aria-labelledby>` at the box\n * wrapping the title slot, while one is slotted. 3.x's nav was labelled with\n * its own English \"Contents\".\n *\n * bd-blog-table-of-contents until the blog folded into the package's\n * components (DEX-29414); the divider under its header went with csg_blog's\n * card, which draws none.\n */\n@defineElement('bd-table-of-contents')\nexport class BdTableOfContents extends LitElement {\n static styles = [tableOfContentsCSS];\n\n /** Folds the list behind its header below lg, closed until the toggle opens it. Always open from lg. */\n @property({ type: Boolean, reflect: true, attribute: 'collapsible' })\n collapsible = false;\n\n @state()\n _open = false;\n\n _slots = new SlotController(this, { slots: ['title', ''] });\n\n /* An item added, removed or pointed elsewhere: the current item is read again. */\n _children = new ObserverController(this,\n () => new MutationObserver(() => this._spy()),\n observer => observer.observe(this, { childList: true, subtree: true, attributes: true, attributeFilter: WATCHED }));\n\n /** From lg: the spy runs. */\n _wide = false;\n\n _media = new MediaQueryController(this, WIDE, wide => {\n this._wide = wide;\n this._held = '';\n this._spy();\n });\n\n /* The item a click made current, held until the reader scrolls after the\n jump has come to rest (REAL's clickedHeading and jumpSettled). */\n _held = '';\n _settled = true;\n _restTimer = 0;\n _scrollRaf = 0;\n _connectRaf = 0;\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('scroll', this._onScroll, { passive: true });\n /* scrollend is newer than the rest of this; where it is missing, a\n scroll that stops for a moment stands in for it (_onScroll). */\n if ('onscrollend' in (window as object)) window.addEventListener('scrollend', this._onScrollEnd, { passive: true });\n /* After the first render, and on a reconnect: the page's sections are\n laid out by then. */\n this._connectRaf = requestAnimationFrame(() => {\n this._connectRaf = 0;\n this._spy();\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n window.removeEventListener('scroll', this._onScroll);\n window.removeEventListener('scrollend', this._onScrollEnd);\n cancelAnimationFrame(this._scrollRaf);\n cancelAnimationFrame(this._connectRaf);\n clearTimeout(this._restTimer);\n this._scrollRaf = 0;\n this._connectRaf = 0;\n this._held = '';\n this._settled = true;\n }\n\n /** The page's items, in order. */\n _items() {\n return [...this.children].filter(el => el.localName === ITEM && !el.slot);\n }\n\n /** The element a fragment names: in this element's tree, else the document. */\n _target(id: string) {\n if (!id) return null;\n const root = this.getRootNode() as Partial<Document | ShadowRoot>;\n return root.getElementById?.(id) ?? document.getElementById(id);\n }\n\n /** Each item whose section is on the page, with that section. */\n _headings(): (TocHeading & { item: Element })[] {\n return this._items().flatMap(item => {\n const id = fragmentOf(item.getAttribute('href'));\n const el = this._target(id);\n return el ? [{ id, el, item }] : [];\n });\n }\n\n _onScroll = () => {\n if (!('onscrollend' in (window as object))) {\n clearTimeout(this._restTimer);\n this._restTimer = window.setTimeout(this._onScrollEnd, SCROLL_REST_MS);\n }\n if (!this._wide) return;\n if (this._held) {\n // the jump's own scroll keeps the clicked item; the reader's next one lets it go\n if (!this._settled) return;\n this._held = '';\n }\n if (this._scrollRaf) return;\n this._scrollRaf = requestAnimationFrame(() => {\n this._scrollRaf = 0;\n this._spy();\n });\n };\n\n _onScrollEnd = () => {\n this._settled = true;\n };\n\n /* The one item whose section the reader is in gets `current`; the others lose it. */\n _push(id: string) {\n for (const item of this._items()) item.toggleAttribute('current', !!id && fragmentOf(item.getAttribute('href')) === id);\n }\n\n /* Below lg nothing is current; from lg the held click, else the reading line's section. */\n _spy() {\n if (!this.isConnected) return;\n if (!this._wide) {\n this._push('');\n return;\n }\n const headings = this._headings();\n if (this._held && headings.some(({ id }) => id === this._held)) {\n this._push(this._held);\n return;\n }\n this._push(currentTocId(headings));\n }\n\n /* A click on an item's link is the browser's jump to its hash; from lg the\n item is held current while the jump scrolls, and until the reader does. */\n _onListClick = (event: MouseEvent) => {\n if (!this._wide || event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n const items = this._items();\n const item = event.composedPath().find((el): el is Element => items.includes(el as Element));\n if (!item) return;\n const id = fragmentOf(item.getAttribute('href'));\n if (!id || !this._target(id)) return;\n this._held = id;\n /* A jump that goes nowhere -- the section already under its scroll\n margin, the page at its end, or a section in a shadow root -- sends no\n scroll and no scrollend, so nothing would settle it, and the reader's\n next scroll would be taken for the jump's own. */\n this._settled = !jumpScrolls(id);\n this._push(id);\n };\n\n /* The whole header is the toggle's target, as 3.x's was; the button's own\n click reaches it too, so this is the one handler. Below lg only: from lg\n the contents do not fold. */\n _onHeaderClick = () => {\n if (!this.collapsible || this._wide) return;\n this._open = !this._open;\n };\n\n render() {\n const hasTitle = this._slots.has('title');\n const hasItems = this._slots.has('');\n const collapsed = this.collapsible && !this._open;\n return html`\n <nav\n class=\"toc ${collapsed ? 'toc--collapsed' : ''}\"\n part=\"toc\"\n aria-labelledby=${hasTitle ? 'title' : nothing}\n ?hidden=${!hasTitle && !hasItems}\n >\n <div class=\"toc__header\" part=\"header\" @click=${this._onHeaderClick}>\n <div class=\"toc__title\" id=\"title\" part=\"title\" ?hidden=${!hasTitle}><slot name=\"title\"></slot></div>\n <button\n type=\"button\"\n class=\"toc__toggle\"\n part=\"toggle\"\n aria-expanded=${this._open ? 'true' : 'false'}\n aria-controls=\"toc-list\"\n aria-labelledby=${hasTitle ? 'title' : nothing}\n ?hidden=${!this.collapsible}\n ><bd-icon name=${this._open ? 'minus' : 'plus'} size=\"sm\"></bd-icon></button>\n </div>\n <!-- role=\"list\" for WebKit, which drops a list's role under list-style: none -->\n <ol id=\"toc-list\" class=\"toc__list\" part=\"list\" role=\"list\" @click=${this._onListClick}><slot></slot></ol>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-table-of-contents': BdTableOfContents;\n }\n}\n"],"mappings":"A,gvBAiBA,IAAME,EAAO,4BAGPC,EAAOC,EAAM,IAAI,EAIjBC,EAAiB,IAGjBC,EAAU,CAAC,MAAM,EAGvB,SAASC,EAAW,EAAqB,CACvC,GAAI,CAACC,EAAM,MAAO,GAClB,IAAIC,EACJ,GAAI,CACF,EAAM,IAAI,IAAID,EAAM,SAAS,OAAO,CACtC,MAAQ,CACN,MAAO,EACT,CACA,IAAME,EAAO,IAAI,IAAI,SAAS,IAAI,EAClC,GAAID,EAAI,SAAWC,EAAK,QAAUD,EAAI,WAAaC,EAAK,UAAYD,EAAI,SAAWC,EAAK,OAAQ,MAAO,GACvG,GAAI,CACF,OAAO,mBAAmBD,EAAI,KAAK,MAAM,CAAC,CAAC,CAC7C,MAAQ,CACN,OAAOA,EAAI,KAAK,MAAM,CAAC,CACzB,CACF,CAOA,SAASE,EAAY,EAAY,CAC/B,IAAMC,EAAS,SAAS,eAAeC,CAAE,EACzC,GAAI,CAACD,EAAQ,MAAO,GACpB,IAAME,EAAM,GAAkB,OAAO,WAAWC,CAAK,GAAK,EACpDC,EAASF,EAAG,iBAAiBF,CAAM,CAAC,CAAC,eAAe,EAAIE,EAAG,iBAAiB,SAAS,eAAe,CAAC,CAAC,gBAAgB,EACtHG,EAAM,SAAS,gBAAgB,aAAe,OAAO,YACrDC,EAAK,KAAK,IAAI,EAAG,KAAK,IAAI,OAAO,QAAUN,EAAO,sBAAsB,CAAC,CAAC,IAAMI,EAAQC,CAAG,CAAC,EAClG,OAAO,KAAK,IAAIC,EAAK,OAAO,OAAO,GAAK,CAC1C,CAuEO,IAAMC,EAAN,cAAgCC,CAAW,C,8BAKlC,KAAA,YAAA,GAGN,KAAA,MAAA,GAEC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,EAAE,CAAE,CAAC,EAG9C,KAAA,UAAA,IAAIC,EAAmB,SAC3B,IAAI,qBAAuB,KAAK,KAAK,CAAC,EAC5C,GAAYC,EAAS,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,GAAM,gBAAiBlB,CAAQ,CAAC,CAAC,EAG5G,KAAA,MAAA,GAEC,KAAA,OAAA,IAAImB,EAAqB,KAAMtB,EAAM,GAAQ,CACpD,KAAK,MAAQuB,EACb,KAAK,MAAQ,GACb,KAAK,KAAK,CACZ,CAAC,EAIO,KAAA,MAAA,GACG,KAAA,SAAA,GACE,KAAA,WAAA,EACA,KAAA,WAAA,EACC,KAAA,YAAA,EAkDI,KAAA,cAAA,CAKhB,GAJM,gBAAkB,SACtB,aAAa,KAAK,UAAU,EAC5B,KAAK,WAAa,OAAO,WAAW,KAAK,aAAcrB,CAAc,GAElE,KAAK,MACV,IAAI,KAAK,MAAO,CAEd,GAAI,CAAC,KAAK,SAAU,OACpB,KAAK,MAAQ,EACf,CACA,AACA,KAAK,aAAa,0BAA4B,CAC5C,KAAK,WAAa,EAClB,KAAK,KAAK,CACZ,CAAC,CALD,CAMF,EAEqB,KAAA,iBAAA,CACnB,KAAK,SAAW,EAClB,EAwBgB,KAAA,aAAA,GAAsB,CACpC,GAAI,CAAC,KAAK,OAASsB,EAAM,kBAAoBA,EAAM,SAAW,GAAKA,EAAM,SAAWA,EAAM,SAAWA,EAAM,UAAYA,EAAM,OAAQ,OACrI,IAAMC,EAAQ,KAAK,OAAO,EACpBC,EAAOF,EAAM,aAAa,CAAC,CAAC,KAAM,GAAsBC,EAAM,SAASE,CAAa,CAAC,EAC3F,GAAI,CAACD,EAAM,OACX,IAAMhB,EAAKN,EAAWsB,EAAK,aAAa,MAAM,CAAC,EAC1ChB,GAAO,KAAK,QAAQA,CAAE,IAC3B,KAAK,MAAQA,EAKb,KAAK,SAAW,CAACF,EAAYE,CAAE,EAC/B,KAAK,MAAMA,CAAE,EACf,EAKuB,KAAA,mBAAA,CAChB,KAAK,aAAe,MAAK,QAC9B,KAAK,MAAQ,CAAC,KAAK,MACrB,C,QAnJgB,KAAA,OAAA,CAACkB,CAAkB,C,CAiCnC,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,OAAO,iBAAiB,SAAU,KAAK,UAAW,CAAE,QAAS,EAAK,CAAC,EAG/D,gBAAkB,QAAmB,OAAO,iBAAiB,YAAa,KAAK,aAAc,CAAE,QAAS,EAAK,CAAC,EAGlH,KAAK,YAAc,0BAA4B,CAC7C,KAAK,YAAc,EACnB,KAAK,KAAK,CACZ,CAAC,CACH,CAEA,sBAAuB,CACrB,MAAM,qBAAqB,EAC3B,OAAO,oBAAoB,SAAU,KAAK,SAAS,EACnD,OAAO,oBAAoB,YAAa,KAAK,YAAY,EACzD,qBAAqB,KAAK,UAAU,EACpC,qBAAqB,KAAK,WAAW,EACrC,aAAa,KAAK,UAAU,EAC5B,KAAK,WAAa,EAClB,KAAK,YAAc,EACnB,KAAK,MAAQ,GACb,KAAK,SAAW,EAClB,CAGA,QAAS,CACP,MAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,OAAO,GAAMD,EAAG,YAAc5B,GAAQ,CAAC4B,EAAG,IAAI,CAC1E,CAGA,QAAQ,EAAY,CAGlB,OAFKjB,EACQ,KAAK,YACX,CAAA,CAAK,iBAAiBA,CAAE,GAAK,SAAS,eAAeA,CAAE,EAF9C,IAGlB,CAGA,WAAgD,CAC9C,OAAO,KAAK,OAAO,CAAC,CAAC,QAAQ,GAAQ,CACnC,IAAMA,EAAKN,EAAWsB,EAAK,aAAa,MAAM,CAAC,EACzCC,EAAK,KAAK,QAAQjB,CAAE,EAC1B,OAAOiB,EAAK,CAAC,CAAE,KAAI,KAAI,MAAK,CAAC,EAAI,CAAC,CACpC,CAAC,CACH,CAyBA,MAAM,EAAY,CAChB,IAAK,IAAMD,KAAQ,KAAK,OAAO,EAAGA,EAAK,gBAAgB,UAAW,CAAC,CAAChB,GAAMN,EAAWsB,EAAK,aAAa,MAAM,CAAC,IAAMhB,CAAE,CACxH,CAGA,MAAO,CACL,GAAI,CAAC,KAAK,YAAa,OACvB,GAAI,CAAC,KAAK,MAAO,CACf,KAAK,MAAM,EAAE,EACb,MACF,CACA,IAAMmB,EAAW,KAAK,UAAU,EAC5B,KAAK,OAASA,EAAS,MAAM,CAAE,QAASnB,IAAO,KAAK,KAAK,EAC3D,KAAK,MAAM,KAAK,KAAK,EAGvB,KAAK,MAAMoB,EAAaD,CAAQ,CAAC,CACnC,CA4BA,QAAS,CACP,IAAME,EAAW,KAAK,OAAO,IAAI,OAAO,EAClCC,EAAW,KAAK,OAAO,IAAI,EAAE,EAC7BC,EAAY,KAAK,aAAe,CAAC,KAAK,MAC5C,MAAO,EAAI;;qBAEMA,EAAY,iBAAmB,GAAG;;0BAE7BF,EAAW,QAAUG,EAAQ;kBACrC,CAACH,GAAY,CAACC,EAAS;;wDAEe,KAAK,eAAe;oEACR,CAACD,EAAS;;;;;4BAKlD,KAAK,MAAQ,OAAS,QAAQ;;8BAE5BA,EAAW,QAAUG,EAAQ;sBACrC,CAAC,KAAK,YAAY;2BACb,KAAK,MAAQ,QAAU,OAAO;;;6EAGoB,KAAK,aAAa;;KAG7F,CACF,EA9KGrC,EAAA,CAAAsC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,aAAc,CAAC,CAAA,EAAAnB,EAAA,UAAA,cAAA,IAAA,EAAA,EAGnEnB,EAAA,CAAAuC,EAAM,CAAA,EAAApB,EAAA,UAAA,QAAA,IAAA,EAAA,EARR,EAAAnB,EAAA,CAAAwC,EAAc,sBAAsB,CAAA,EAAArB,CAAA,E"}
@@ -1,2 +1,2 @@
1
- import{css as e}from"lit";var t=e`:host{display:inline-flex}span{align-items:center;gap:var(--spacing-4);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);font-weight:var(--typography-label-small-fontWeight);line-height:var(--typography-label-small-lineHeight);letter-spacing:var(--typography-label-small-letterSpacing);padding:var(--spacing-2) var(--spacing-8);border-radius:var(--radius-full);border:var(--border-width-1) solid var(--status-neutral-border);color:var(--status-neutral-text);background:var(--status-neutral-surface);display:inline-flex}:host([tone=brand]) span{color:var(--status-brand-text);background:var(--status-brand-surface);border-color:var(--status-brand-border)}:host([tone=success]) span{color:var(--status-success-text);background:var(--status-success-surface);border-color:var(--status-success-border)}:host([tone=warning]) span{color:var(--status-warning-text);background:var(--status-warning-surface);border-color:var(--status-warning-border)}:host([tone=error]) span{color:var(--status-error-text);background:var(--status-error-surface);border-color:var(--status-error-border)}:host([tone=info]) span{color:var(--status-info-text);background:var(--status-info-surface);border-color:var(--status-info-border)}`;export{t as default,t as tagCSS};
1
+ import{css as e}from"lit";var t=e`:host{display:inline-flex}.tag{align-items:center;gap:var(--spacing-4);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);font-weight:var(--typography-label-small-fontWeight);line-height:var(--typography-label-small-lineHeight);letter-spacing:var(--typography-label-small-letterSpacing);padding:var(--spacing-2) var(--spacing-8);border-radius:var(--radius-full);border:var(--border-width-1) solid var(--status-neutral-border);color:var(--status-neutral-text);background:var(--status-neutral-surface);text-decoration:none;display:inline-flex}:host([variant=brand]) .tag{color:var(--status-brand-text);background:var(--status-brand-surface);border-color:var(--status-brand-border)}:host([variant=success]) .tag{color:var(--status-success-text);background:var(--status-success-surface);border-color:var(--status-success-border)}:host([variant=warning]) .tag{color:var(--status-warning-text);background:var(--status-warning-surface);border-color:var(--status-warning-border)}:host([variant=error]) .tag{color:var(--status-error-text);background:var(--status-error-surface);border-color:var(--status-error-border)}:host([variant=info]) .tag{color:var(--status-info-text);background:var(--status-info-surface);border-color:var(--status-info-border)}a.tag{cursor:pointer}:host(:not([appearance=chip])) a.tag:hover{text-decoration:underline}a.tag:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}:host([appearance=chip]) .tag{box-sizing:border-box;min-height:var(--dimension-24);gap:var(--spacing-8);padding:0 var(--spacing-8);white-space:nowrap;font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);color:var(--status-neutral-text);background:var(--status-neutral-surface-strong);transition:background-color var(--transition-duration-fast) var(--transition-easing-smooth), color var(--transition-duration-fast) var(--transition-easing-smooth), box-shadow var(--transition-duration-fast) var(--transition-easing-smooth);border:none}:host([appearance=chip][variant=brand]) .tag{color:var(--status-brand-text);background:var(--status-brand-surface-strong)}:host([appearance=chip][variant=success]) .tag{color:var(--status-success-text);background:var(--status-success-surface-strong)}:host([appearance=chip][variant=warning]) .tag{color:var(--status-warning-text);background:var(--status-warning-surface-strong)}:host([appearance=chip][variant=error]) .tag{color:var(--status-error-text);background:var(--status-error-surface-strong)}:host([appearance=chip][variant=info]) .tag{color:var(--status-info-text);background:var(--status-info-surface-strong)}:host([appearance=chip]) a.tag:is(:hover,:focus-visible){background:var(--status-neutral-surface)}:host([appearance=chip][variant=brand]) a.tag:is(:hover,:focus-visible){color:var(--color-text-brand-hover);background:var(--status-brand-surface)}:host([appearance=chip][variant=success]) a.tag:is(:hover,:focus-visible){background:var(--status-success-surface)}:host([appearance=chip][variant=warning]) a.tag:is(:hover,:focus-visible){background:var(--status-warning-surface)}:host([appearance=chip][variant=error]) a.tag:is(:hover,:focus-visible){background:var(--status-error-surface)}:host([appearance=chip][variant=info]) a.tag:is(:hover,:focus-visible){background:var(--status-info-surface)}:host([appearance=chip][variant]) a.tag:active{color:var(--color-text-primary);background:var(--color-surface-pressed)}@media (prefers-reduced-motion:reduce){:host([appearance=chip]) .tag{transition:none}}`;export{t as default,t as tagCSS};
2
2
  //# sourceMappingURL=tag.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.css.js","names":["tagCSS"],"sources":["../../../../src/components/tag/tag.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const tagCSS = css`\n :host { display: inline-flex; }\n\n span {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-4);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n font-weight: var(--typography-label-small-fontWeight);\n line-height: var(--typography-label-small-lineHeight);\n letter-spacing: var(--typography-label-small-letterSpacing);\n padding: var(--spacing-2) var(--spacing-8);\n border-radius: var(--radius-full);\n border: var(--border-width-1) solid var(--status-neutral-border);\n color: var(--status-neutral-text);\n background: var(--status-neutral-surface);\n }\n\n :host([tone='brand']) span {\n color: var(--status-brand-text);\n background: var(--status-brand-surface);\n border-color: var(--status-brand-border);\n }\n\n :host([tone='success']) span {\n color: var(--status-success-text);\n background: var(--status-success-surface);\n border-color: var(--status-success-border);\n }\n\n :host([tone='warning']) span {\n color: var(--status-warning-text);\n background: var(--status-warning-surface);\n border-color: var(--status-warning-border);\n }\n\n :host([tone='error']) span {\n color: var(--status-error-text);\n background: var(--status-error-surface);\n border-color: var(--status-error-border);\n }\n\n :host([tone='info']) span {\n color: var(--status-info-text);\n background: var(--status-info-surface);\n border-color: var(--status-info-border);\n }\n`;\n\nexport default tagCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAS,CAAG,suC"}
1
+ {"version":3,"file":"tag.css.js","names":["tagCSS"],"sources":["../../../../src/components/tag/tag.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const tagCSS = css`\n :host { display: inline-flex; }\n\n /* .tag is the <span> of a tag that is only words, or the <a> of one with\n an href: one box, so a link draws exactly what the words draw. */\n .tag {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-4);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n font-weight: var(--typography-label-small-fontWeight);\n line-height: var(--typography-label-small-lineHeight);\n letter-spacing: var(--typography-label-small-letterSpacing);\n padding: var(--spacing-2) var(--spacing-8);\n border-radius: var(--radius-full);\n border: var(--border-width-1) solid var(--status-neutral-border);\n color: var(--status-neutral-text);\n background: var(--status-neutral-surface);\n text-decoration: none;\n }\n\n :host([variant='brand']) .tag {\n color: var(--status-brand-text);\n background: var(--status-brand-surface);\n border-color: var(--status-brand-border);\n }\n\n :host([variant='success']) .tag {\n color: var(--status-success-text);\n background: var(--status-success-surface);\n border-color: var(--status-success-border);\n }\n\n :host([variant='warning']) .tag {\n color: var(--status-warning-text);\n background: var(--status-warning-surface);\n border-color: var(--status-warning-border);\n }\n\n :host([variant='error']) .tag {\n color: var(--status-error-text);\n background: var(--status-error-surface);\n border-color: var(--status-error-border);\n }\n\n :host([variant='info']) .tag {\n color: var(--status-info-text);\n background: var(--status-info-surface);\n border-color: var(--status-info-border);\n }\n\n /* === A link's states. A tag that is only words has none. === */\n\n a.tag {\n cursor: pointer;\n }\n\n /* The keyword's words underline, as a link's do; its tint stays. */\n :host(:not([appearance='chip'])) a.tag:hover {\n text-decoration: underline;\n }\n\n /* The package's one focus ring (Foundations/Focus): two bands drawn as a\n box-shadow, so it follows the pill, and a transparent outline under it,\n which forced-colors mode repaints in a system colour where the shadow is\n not drawn. Not the blog's --color-border-brand ring: a focus ring is\n never a border role. */\n a.tag:focus-visible {\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n }\n\n /* === chip: the blog's chip (www-blog-csg .post-chip; csg_blog's tag) ===\n 24px tall, a pill with no edge, 14px medium -- the label role -- on the\n variant's heavier tint in its status ink. The box is the design rather\n than the inset: Figma's 4px around a 20px line in a 24px box leaves the\n line 2px either side, so the chip takes the 24 as a floor, centres the\n label role's line in it and pads only the sides; a reader's larger text\n still grows it. Figma's ink is brand-800, which no role carries, so the\n chip reads the brand's status ink, as the shipped blog does. */\n :host([appearance='chip']) .tag {\n box-sizing: border-box;\n min-height: var(--dimension-24);\n gap: var(--spacing-8);\n padding: 0 var(--spacing-8);\n border: none;\n white-space: nowrap;\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n color: var(--status-neutral-text);\n background: var(--status-neutral-surface-strong);\n transition: background-color var(--transition-duration-fast) var(--transition-easing-smooth),\n color var(--transition-duration-fast) var(--transition-easing-smooth),\n box-shadow var(--transition-duration-fast) var(--transition-easing-smooth);\n }\n\n :host([appearance='chip'][variant='brand']) .tag {\n color: var(--status-brand-text);\n background: var(--status-brand-surface-strong);\n }\n\n :host([appearance='chip'][variant='success']) .tag {\n color: var(--status-success-text);\n background: var(--status-success-surface-strong);\n }\n\n :host([appearance='chip'][variant='warning']) .tag {\n color: var(--status-warning-text);\n background: var(--status-warning-surface-strong);\n }\n\n :host([appearance='chip'][variant='error']) .tag {\n color: var(--status-error-text);\n background: var(--status-error-surface-strong);\n }\n\n :host([appearance='chip'][variant='info']) .tag {\n color: var(--status-info-text);\n background: var(--status-info-surface-strong);\n }\n\n /* A linked chip on hover and focus: the variant's lighter tint, which its\n status ink reads on as the standard tag's does. The brand's words take\n the brand's hover ink there, as the shipped blog's chip does. */\n :host([appearance='chip']) a.tag:is(:hover, :focus-visible) {\n background: var(--status-neutral-surface);\n }\n\n :host([appearance='chip'][variant='brand']) a.tag:is(:hover, :focus-visible) {\n color: var(--color-text-brand-hover);\n background: var(--status-brand-surface);\n }\n\n :host([appearance='chip'][variant='success']) a.tag:is(:hover, :focus-visible) {\n background: var(--status-success-surface);\n }\n\n :host([appearance='chip'][variant='warning']) a.tag:is(:hover, :focus-visible) {\n background: var(--status-warning-surface);\n }\n\n :host([appearance='chip'][variant='error']) a.tag:is(:hover, :focus-visible) {\n background: var(--status-error-surface);\n }\n\n :host([appearance='chip'][variant='info']) a.tag:is(:hover, :focus-visible) {\n background: var(--status-info-surface);\n }\n\n /* Pressed: the pressed surface, in the primary ink. The blog kept the\n brand's hover ink there, which is 3.98:1 on the pressed surface in dark;\n the primary ink holds 4.5:1 on it in both themes, whatever the variant.\n [variant] (always reflected) brings it level with a variant's hover\n rule, which it follows, so a press under the pointer is drawn. */\n :host([appearance='chip'][variant]) a.tag:active {\n color: var(--color-text-primary);\n background: var(--color-surface-pressed);\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host([appearance='chip']) .tag {\n transition: none;\n }\n }\n`;\n\nexport default tagCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAS,CAAG,0qH"}
@@ -1,11 +1,38 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
2
  import "../../tokens/tokens.js";
3
- /** The six tones bd-badge also uses; bd-alert takes all but brand. */
4
- declare const TONES: readonly ["neutral", "brand", "success", "warning", "error", "info"];
5
- type Tone = typeof TONES[number];
3
+ /** The six meanings bd-badge also uses; bd-callout takes all but brand. */
4
+ declare const VARIANTS: readonly ["neutral", "brand", "success", "warning", "error", "info"];
5
+ type Variant = typeof VARIANTS[number];
6
+ /** How it looks (N6): the keyword with its edge, or the pill chip a post's topics and authors are drawn as. */
7
+ declare const APPEARANCES: readonly ["standard", "chip"];
8
+ type Appearance = typeof APPEARANCES[number];
9
+ /**
10
+ * A small label that classifies something: a keyword, a category, a filter.
11
+ *
12
+ * <bd-tag variant="success">Protected</bd-tag>
13
+ * <bd-tag appearance="chip" variant="brand" href="/blog/tag/scams">Scams</bd-tag>
14
+ *
15
+ * `appearance` is the look and `variant` the meaning (N6), and the two
16
+ * combine. `standard` is the keyword it always was: 12px on the lighter tint
17
+ * with a hairline edge. `chip` is the blog's chip (www-blog-csg's
18
+ * `.post-chip`, the `tag` in the csg_blog Figma file): 24px tall, a pill with
19
+ * no edge, 14px medium on the heavier tint, the variant's status ink on it --
20
+ * so the blog's chip is `appearance="chip" variant="brand"` and its quiet one
21
+ * `appearance="chip" variant="neutral"`.
22
+ *
23
+ * With `href` the tag is a link -- a topic's page, an author's -- named by
24
+ * its words; without one it is the words alone, and has no states. A linked
25
+ * chip takes the blog's states: the lighter tint on hover and focus, the
26
+ * pressed surface while pressed, and the package's focus ring.
27
+ */
6
28
  export declare class BdTag extends LitElement {
7
29
  static styles: import("lit").CSSResult[];
8
- tone: Tone;
30
+ /** What it means: neutral, brand, success, warning, error, info. */
31
+ variant: Variant;
32
+ /** How it looks: standard (the keyword) or chip (the blog's pill). */
33
+ appearance: Appearance;
34
+ /** Where the tag goes. With it the tag is a link named by its words; without, no link. */
35
+ href: string;
9
36
  willUpdate(changed: PropertyValues<this>): void;
10
37
  render(): import("lit-html").TemplateResult<1>;
11
38
  }
@@ -1,4 +1,2 @@
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"./tag.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=[`neutral`,`brand`,`success`,`warning`,`error`,`info`],c=class extends i{constructor(...e){super(...e),this.tone=`neutral`}static{this.styles=[r]}willUpdate(e){e.has(`tone`)&&!n(s,this.tone)&&(this.tone=`neutral`)}render(){return a`
2
- <span><slot></slot></span>
3
- `}};t([o({type:String,reflect:!0})],c.prototype,`tone`,void 0),c=t([e(`bd-tag`)],c);export{c as BdTag};
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 r from"./tag.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=[`neutral`,`brand`,`success`,`warning`,`error`,`info`],c=[`standard`,`chip`],l=class extends i{constructor(...e){super(...e),this.variant=`neutral`,this.appearance=`standard`,this.href=``}static{this.styles=[r]}willUpdate(e){e.has(`variant`)&&!t(s,this.variant)&&(this.variant=`neutral`),e.has(`appearance`)&&!t(c,this.appearance)&&(this.appearance=`standard`)}render(){return this.href?a`<a class="tag" href=${this.href}><slot></slot></a>`:a`<span class="tag"><slot></slot></span>`}};n([o({type:String,reflect:!0})],l.prototype,`variant`,void 0),n([o({type:String,reflect:!0})],l.prototype,`appearance`,void 0),n([o({type:String,attribute:`href`})],l.prototype,`href`,void 0),l=n([e(`bd-tag`)],l);export{l as BdTag};
4
2
  //# sourceMappingURL=tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","names":["_decorate","__decorate","tagCSS","TONES","BdTag","LitElement","_args","changed","isOneOf","property","defineElement"],"sources":["../../../../src/components/tag/tag.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 { tagCSS } from './tag.css.ts';\n\n/** The six tones bd-badge also uses; bd-alert takes all but brand. */\nconst TONES = ['neutral', 'brand', 'success', 'warning', 'error', 'info'] as const;\ntype Tone = typeof TONES[number];\n\n@defineElement('bd-tag')\nexport class BdTag extends LitElement {\n static styles = [tagCSS];\n\n @property({ type: String, reflect: true })\n tone: Tone = 'neutral';\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('tone') && !isOneOf(TONES, this.tone)) this.tone = 'neutral';\n }\n\n render() {\n return html`\n <span><slot></slot></span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-tag': BdTag;\n }\n}\n"],"mappings":"A,gVASA,IAAMG,EAAQ,CAAC,UAAW,QAAS,UAAW,UAAW,QAAS,MAAM,EAI3DC,EAAN,cAAoBC,CAAW,C,8BAIvB,KAAA,KAAA,S,QAHG,KAAA,OAAA,CAACH,CAAM,C,CAKvB,WAAW,EAA+B,CACpCK,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQL,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,UACrE,CAEA,QAAS,CACP,MAAO,EAAI;;KAGb,CACF,EAZGH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ1C,EAAAJ,EAAA,CAAAU,EAAc,QAAQ,CAAA,EAAAN,CAAA,E"}
1
+ {"version":3,"file":"tag.js","names":["_decorate","__decorate","tagCSS","VARIANTS","APPEARANCES","BdTag","LitElement","_args","changed","isOneOf","property","defineElement"],"sources":["../../../../src/components/tag/tag.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 { tagCSS } from './tag.css.ts';\n\n/** The six meanings bd-badge also uses; bd-callout takes all but brand. */\nconst VARIANTS = ['neutral', 'brand', 'success', 'warning', 'error', 'info'] as const;\ntype Variant = typeof VARIANTS[number];\n\n/** How it looks (N6): the keyword with its edge, or the pill chip a post's topics and authors are drawn as. */\nconst APPEARANCES = ['standard', 'chip'] as const;\ntype Appearance = typeof APPEARANCES[number];\n\n/**\n * A small label that classifies something: a keyword, a category, a filter.\n *\n * <bd-tag variant=\"success\">Protected</bd-tag>\n * <bd-tag appearance=\"chip\" variant=\"brand\" href=\"/blog/tag/scams\">Scams</bd-tag>\n *\n * `appearance` is the look and `variant` the meaning (N6), and the two\n * combine. `standard` is the keyword it always was: 12px on the lighter tint\n * with a hairline edge. `chip` is the blog's chip (www-blog-csg's\n * `.post-chip`, the `tag` in the csg_blog Figma file): 24px tall, a pill with\n * no edge, 14px medium on the heavier tint, the variant's status ink on it --\n * so the blog's chip is `appearance=\"chip\" variant=\"brand\"` and its quiet one\n * `appearance=\"chip\" variant=\"neutral\"`.\n *\n * With `href` the tag is a link -- a topic's page, an author's -- named by\n * its words; without one it is the words alone, and has no states. A linked\n * chip takes the blog's states: the lighter tint on hover and focus, the\n * pressed surface while pressed, and the package's focus ring.\n */\n@defineElement('bd-tag')\nexport class BdTag extends LitElement {\n static styles = [tagCSS];\n\n /** What it means: neutral, brand, success, warning, error, info. */\n @property({ type: String, reflect: true })\n variant: Variant = 'neutral';\n\n /** How it looks: standard (the keyword) or chip (the blog's pill). */\n @property({ type: String, reflect: true })\n appearance: Appearance = 'standard';\n\n /** Where the tag goes. With it the tag is a link named by its words; without, no link. */\n @property({ type: String, attribute: 'href' })\n href = '';\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('variant') && !isOneOf(VARIANTS, this.variant)) this.variant = 'neutral';\n if (changed.has('appearance') && !isOneOf(APPEARANCES, this.appearance)) this.appearance = 'standard';\n }\n\n render() {\n return this.href\n ? html`<a class=\"tag\" href=${this.href}><slot></slot></a>`\n : html`<span class=\"tag\"><slot></slot></span>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-tag': BdTag;\n }\n}\n"],"mappings":"A,gVASA,IAAMG,EAAW,CAAC,UAAW,QAAS,UAAW,UAAW,QAAS,MAAM,EAIrEC,EAAc,CAAC,WAAY,MAAM,EAuB1BC,EAAN,cAAoBC,CAAW,C,8BAKjB,KAAA,QAAA,UAIM,KAAA,WAAA,WAIlB,KAAA,KAAA,E,QAZS,KAAA,OAAA,CAACJ,CAAM,C,CAcvB,WAAW,EAA+B,CACpCM,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,WAC7F,CAEA,QAAS,CACP,OAAO,KAAK,KACR,CAAI,uBAAuB,KAAK,KAAK,oBACrC,CAAI,wCACV,CACF,EArBGJ,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAIxCL,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCL,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,UAAW,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAb9C,EAAAL,EAAA,CAAAW,EAAc,QAAQ,CAAA,EAAAN,CAAA,E"}
@@ -1,13 +1,12 @@
1
1
  import { LitElement } from "lit";
2
2
  import "../../tokens/tokens.js";
3
- declare class TerminalCursor extends LitElement {
3
+ export declare class BdTerminalCursor extends LitElement {
4
4
  static styles: import("lit").CSSResult[];
5
5
  color: string;
6
6
  render(): import("lit-html").TemplateResult<1>;
7
7
  }
8
8
  declare global {
9
9
  interface HTMLElementTagNameMap {
10
- "bd-terminal-cursor": TerminalCursor;
10
+ "bd-terminal-cursor": BdTerminalCursor;
11
11
  }
12
12
  }
13
- export {};
@@ -1,2 +1,2 @@
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{LitElement as n,css as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends n{constructor(...e){super(...e),this.color=``}static{this.styles=[r`:host{vertical-align:middle;width:8px;height:16px;display:inline-block}.bd-terminal-cursor{background:var(--bd-terminal-cursor-color,var(--color-brand-400));width:100%;height:100%;animation:1s step-end infinite bd-terminal-cursor-blink;display:block}@keyframes bd-terminal-cursor-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}@media (prefers-reduced-motion:reduce){.bd-terminal-cursor{animation:none}}`]}render(){let e=this.color?`background: ${this.color};`:``;return i`<span class="bd-terminal-cursor" style="${e}"></span>`}};t([a({type:String})],o.prototype,`color`,void 0),o=t([e(`bd-terminal-cursor`)],o);
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{LitElement as n,css as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends n{constructor(...e){super(...e),this.color=``}static{this.styles=[r`:host{vertical-align:middle;width:8px;height:16px;display:inline-block}.bd-terminal-cursor{background:var(--bd-terminal-cursor-color,var(--color-brand-400));width:100%;height:100%;animation:1s step-end infinite bd-terminal-cursor-blink;display:block}@keyframes bd-terminal-cursor-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}@media (prefers-reduced-motion:reduce){.bd-terminal-cursor{animation:none}}`]}render(){let e=this.color?`background: ${this.color};`:``;return i`<span class="bd-terminal-cursor" style="${e}"></span>`}};t([a({type:String})],o.prototype,`color`,void 0),o=t([e(`bd-terminal-cursor`)],o);export{o as BdTerminalCursor};
2
2
  //# sourceMappingURL=terminal-cursor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"terminal-cursor.js","names":["_decorate","__decorate","TerminalCursor","LitElement","_args","style","property","defineElement"],"sources":["../../../../src/components/terminal/terminal-cursor.ts"],"sourcesContent":["import { LitElement, css, html } 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\";\n\n@defineElement(\"bd-terminal-cursor\")\nclass TerminalCursor extends LitElement {\n static styles = [\n css`\n :host {\n display: inline-block;\n width: 8px;\n height: 16px;\n vertical-align: middle;\n }\n\n .bd-terminal-cursor {\n width: 100%;\n height: 100%;\n background: var(--bd-terminal-cursor-color, var(--color-brand-400));\n animation: bd-terminal-cursor-blink 1s steps(1) infinite;\n display: block;\n }\n\n @keyframes bd-terminal-cursor-blink {\n 0%, 50% {\n opacity: 1;\n }\n 50.01%, 100% {\n opacity: 0;\n }\n }\n\n /* A cursor that blinks for as long as the page is open is exactly the\n motion the setting exists for, and this one had no guard: every\n other animated element in the package stops or softens under\n prefers-reduced-motion. Here it stops, and the cursor stays shown --\n a steady block still says \"this is where the terminal is\". */\n @media (prefers-reduced-motion: reduce) {\n .bd-terminal-cursor {\n animation: none;\n }\n }\n `\n ];\n\n @property({ type: String })\n color = \"\";\n\n render() {\n const style = this.color ? `background: ${this.color};` : \"\";\n return html`<span class=\"bd-terminal-cursor\" style=\"${style}\"></span>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-terminal-cursor\": TerminalCursor;\n }\n}\n"],"mappings":"A,sQAMA,IACME,EADN,cAC6BC,CAAW,C,8BAyC9B,KAAA,MAAA,E,QAxCQ,KAAA,OAAA,CACd,CAAG,iZAoCL,C,CAKA,QAAS,CACP,IAAME,EAAQ,KAAK,MAAQ,eAAe,KAAK,MAAM,GAAK,GAC1D,MAAO,EAAI,2CAA2CA,EAAM,UAC9D,CACF,EAPGL,EAAA,CAAAM,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,QAAA,IAAA,EAAA,EAzC3B,EAAAF,EAAA,CAAAO,EAAc,oBAAoB,CAAA,EAAAL,CAAA"}
1
+ {"version":3,"file":"terminal-cursor.js","names":["_decorate","__decorate","BdTerminalCursor","LitElement","_args","style","property","defineElement"],"sources":["../../../../src/components/terminal/terminal-cursor.ts"],"sourcesContent":["import { LitElement, css, html } 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\";\n\n@defineElement(\"bd-terminal-cursor\")\nexport class BdTerminalCursor extends LitElement {\n static styles = [\n css`\n :host {\n display: inline-block;\n width: 8px;\n height: 16px;\n vertical-align: middle;\n }\n\n .bd-terminal-cursor {\n width: 100%;\n height: 100%;\n background: var(--bd-terminal-cursor-color, var(--color-brand-400));\n animation: bd-terminal-cursor-blink 1s steps(1) infinite;\n display: block;\n }\n\n @keyframes bd-terminal-cursor-blink {\n 0%, 50% {\n opacity: 1;\n }\n 50.01%, 100% {\n opacity: 0;\n }\n }\n\n /* A cursor that blinks for as long as the page is open is exactly the\n motion the setting exists for, and this one had no guard: every\n other animated element in the package stops or softens under\n prefers-reduced-motion. Here it stops, and the cursor stays shown --\n a steady block still says \"this is where the terminal is\". */\n @media (prefers-reduced-motion: reduce) {\n .bd-terminal-cursor {\n animation: none;\n }\n }\n `\n ];\n\n @property({ type: String })\n color = \"\";\n\n render() {\n const style = this.color ? `background: ${this.color};` : \"\";\n return html`<span class=\"bd-terminal-cursor\" style=\"${style}\"></span>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-terminal-cursor\": BdTerminalCursor;\n }\n}\n"],"mappings":"A,sQAOO,IAAME,EAAN,cAA+BC,CAAW,C,8BAyCvC,KAAA,MAAA,E,QAxCQ,KAAA,OAAA,CACd,CAAG,iZAoCL,C,CAKA,QAAS,CACP,IAAME,EAAQ,KAAK,MAAQ,eAAe,KAAK,MAAM,GAAK,GAC1D,MAAO,EAAI,2CAA2CA,EAAM,UAC9D,CACF,EAPGL,EAAA,CAAAM,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,QAAA,IAAA,EAAA,EAzC3B,EAAAF,EAAA,CAAAO,EAAc,oBAAoB,CAAA,EAAAL,CAAA,E"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import{css as e}from"lit";var t=e`:host{display:block}:host([hidden]){display:none}:host([appearance=cmd]){color:var(--bd-terminal-cmd);font-weight:var(--typography-fontWeight-bold)}:host([appearance=ok]){color:var(--bd-terminal-ok);padding-bottom:var(--spacing-12)}:host([appearance=ask]){color:var(--bd-terminal-ask);padding:var(--spacing-12) 0}:host([appearance=strong]){color:var(--color-text-on-media);font-weight:var(--typography-fontWeight-bold);padding-top:var(--spacing-12)}:host([appearance=dim]){color:var(--bd-terminal-subdued)}:host([appearance=space]){height:var(--spacing-12)}hr{border:none;border-top:var(--border-width-1) solid var(--color-border-container-inverse);margin:var(--spacing-8) 0}:host([appearance=title]){justify-content:space-between;align-items:center;gap:var(--spacing-12);color:var(--color-text-on-media);font-weight:var(--typography-fontWeight-bold);padding-bottom:var(--spacing-16);display:flex}:host([appearance=row]){container-type:inline-size}.row{align-items:start;column-gap:var(--spacing-12);padding:var(--spacing-8) 0;grid-template-columns:72px 1fr auto;display:grid}.label{color:var(--bd-terminal-subdued);text-transform:uppercase;font-size:var(--typography-body-xsmall-fontSize);letter-spacing:var(--typography-letterSpacing-wider);padding-top:var(--spacing-2)}.row .text{color:var(--color-text-on-media);overflow-wrap:anywhere}.row ::slotted([slot=badge]){margin-top:1px}::slotted([slot=badge]){flex-shrink:0}@container (width<=360px){.row{row-gap:var(--spacing-4);grid-template-columns:1fr}.label{padding-top:0}.row ::slotted([slot=badge]){justify-self:start}}:host([appearance=greeting]),:host([appearance=intro]){font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);padding-bottom:var(--spacing-12);margin-bottom:var(--spacing-16)}:host([appearance=greeting]){color:var(--bd-terminal-ask);font-weight:var(--typography-fontWeight-bold)}:host([appearance=intro]){color:var(--color-text-on-media)}:host([appearance=eyebrow]){color:var(--bd-terminal-subdued);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);padding-bottom:var(--spacing-12);margin-bottom:var(--spacing-16)}:host([slot=footer]),:host([slot=hint]){color:inherit;font:inherit;letter-spacing:inherit;margin:0;padding:0;display:inline}::slotted(strong),::slotted(kbd){font:inherit;color:var(--color-text-on-media);font-weight:var(--typography-fontWeight-bold)}::slotted(kbd):before{content:"["}::slotted(kbd):after{content:"]"}`;export{t as default};
2
+ //# sourceMappingURL=terminal-line.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminal-line.css.js","names":["terminal_line_css_default"],"sources":["../../../../src/components/terminal/terminal-line.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* One line of the transcript. The type is the terminal's: its body sets\n body-small's 14px at 1.45 in mono, and every look but the three paragraphs\n keeps it, so the transcript is read on one grid. A look is a colour always,\n a weight sometimes and the space around it -- two channels over constant\n type, the way a syntax highlighter uses them -- which is why the bold rules\n below say \"no role\": a role carries a size and a leading with it, and\n adopting one would break that grid. The inks are the terminal's line-kind\n palette, --bd-terminal-*, declared once on bd-terminal's host\n (terminal.css.ts) and inherited here.\n\n Each look reproduces what 3.x's bd-terminal-message drew for it, measured\n against its render at 375 and 1280. */\nexport default css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* === THE TRANSCRIPT'S LINES (3.x's lines[] types) === */\n :host([appearance=\"cmd\"]) {\n color: var(--bd-terminal-cmd);\n /* no role: the colour-plus-weight highlighting channel described at the\n head of this file -- the command line of the transcript. */\n font-weight: var(--typography-fontWeight-bold);\n }\n\n :host([appearance=\"ok\"]) {\n color: var(--bd-terminal-ok);\n padding-bottom: var(--spacing-12);\n }\n\n :host([appearance=\"ask\"]) {\n color: var(--bd-terminal-ask);\n padding: var(--spacing-12) 0;\n }\n\n :host([appearance=\"strong\"]) {\n color: var(--color-text-on-media);\n /* no role: the strong run inside a terminal line -- a state or modifier\n weight, not a text-content type. See button.css.ts's .button--bold for\n the argument. */\n font-weight: var(--typography-fontWeight-bold);\n padding-top: var(--spacing-12);\n }\n\n :host([appearance=\"dim\"]) {\n color: var(--bd-terminal-subdued);\n }\n\n :host([appearance=\"space\"]) {\n height: var(--spacing-12);\n }\n\n /* 3.x's <hr>, here inside the line: a separator in the accessibility tree,\n drawn as a boundary on the dark media ground, the same value and role as\n process-steps' divider (--color-border-container-inverse is white at 12%\n exactly). Its margins pass through the host, which draws no box of its\n own, as the <hr>'s did between 3.x's lines. */\n hr {\n border: none;\n border-top: var(--border-width-1) solid var(--color-border-container-inverse);\n margin: var(--spacing-8) 0;\n }\n\n /* A header row with an optional badge at its end -- 3.x's title line, whose\n \"LIVE\" marker is the page's bd-badge in the badge slot now. */\n :host([appearance=\"title\"]) {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--spacing-12);\n color: var(--color-text-on-media);\n /* no role: the colour-plus-weight highlighting channel described at the\n head of this file -- the transcript's title line. */\n font-weight: var(--typography-fontWeight-bold);\n padding-bottom: var(--spacing-16);\n }\n\n /* === ROW: label / text / badge, three columns ===\n The text wraps onto further lines while the label and the badge stay\n pinned. The line is its own size container: the row stacks when the line\n is 360 wide or less, which is the terminal's own width, not the screen's\n -- the terminal is often far narrower than the screen (tilted inside the\n VPN hero's 3D scene), so a media query never fired there and squeezed the\n text column to nothing. 3.x asked the same question of the box holding\n every line, which is exactly as wide as each one. */\n :host([appearance=\"row\"]) {\n container-type: inline-size;\n }\n\n .row {\n display: grid;\n /* no token: the label column, sized to the longest 3.x label (REQUEST)\n in uppercase xsmall mono with its tracking -- a measure of the copy,\n not a step on any scale. Carried from terminal-message.css.ts. */\n grid-template-columns: 72px 1fr auto;\n align-items: start;\n column-gap: var(--spacing-12);\n padding: var(--spacing-8) 0;\n }\n\n .label {\n color: var(--bd-terminal-subdued);\n text-transform: uppercase;\n font-size: var(--typography-body-xsmall-fontSize);\n letter-spacing: var(--typography-letterSpacing-wider);\n padding-top: var(--spacing-2);\n }\n\n .row .text {\n color: var(--color-text-on-media);\n /* the standard spelling of word-break's deprecated break-word value:\n break a long token anywhere rather than overflow the row */\n overflow-wrap: anywhere;\n }\n\n /* The badge sits one pixel lower than the row's top, as 3.x's chip did. */\n .row ::slotted([slot=\"badge\"]) {\n /* no token: the 1px nudge that seats the chip on the text's first line,\n carried from terminal-message.css.ts. */\n margin-top: 1px;\n }\n\n ::slotted([slot=\"badge\"]) {\n flex-shrink: 0;\n }\n\n @container (max-width: 360px) {\n .row {\n grid-template-columns: 1fr;\n row-gap: var(--spacing-4);\n }\n\n .label {\n padding-top: 0;\n }\n\n .row ::slotted([slot=\"badge\"]) {\n justify-self: start;\n }\n }\n\n /* === THE PARAGRAPHS (3.x's greeting, intro and dim-text props) ===\n 3.x drew each as a bd-p in mono with padding-bottom=\"12\", and the <p>\n inside kept bd-p's 16px flow margin: 28 under each paragraph, collapsing\n with what follows as a margin does. These are those boxes. */\n :host([appearance=\"greeting\"]),\n :host([appearance=\"intro\"]) {\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n padding-bottom: var(--spacing-12);\n margin-bottom: var(--spacing-16);\n }\n\n /* The assistant speaking: 3.x's greeting text in the ask ink and bold. Its\n icon is the first word of the line now, which an emoji ignores the ink\n for. */\n :host([appearance=\"greeting\"]) {\n color: var(--bd-terminal-ask);\n /* no role: the colour-plus-weight highlighting channel described at the\n head of this file -- the greeting. */\n font-weight: var(--typography-fontWeight-bold);\n }\n\n :host([appearance=\"intro\"]) {\n color: var(--color-text-on-media);\n }\n\n /* 3.x's dim-text: a faint label above the greeting (\"Welcome\"), the dim\n line's ink at bd-p small's type, with a paragraph's 28 under it. */\n :host([appearance=\"eyebrow\"]) {\n color: var(--bd-terminal-subdued);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n padding-bottom: var(--spacing-12);\n margin-bottom: var(--spacing-16);\n }\n\n /* === IN THE TERMINAL'S FOOTER OR HINT ===\n The slot decides the look, whatever the appearance says: the closing\n paragraph and the legend are runs of text in the terminal's own boxes,\n which set their type, so the line flows inline in them -- the cursor\n follows the footer's last word on its line, as it did in 3.x's <p>. */\n :host([slot=\"footer\"]),\n :host([slot=\"hint\"]) {\n display: inline;\n color: inherit;\n font: inherit;\n letter-spacing: inherit;\n padding: 0;\n margin: 0;\n }\n\n /* === THE STRONG RUN AND THE KEYS ===\n A direct <strong> child is the bold run 3.x's footer-bold drew, and a\n direct <kbd> a key of 3.x's hint, \"[Enter]\": both bold in the on-media\n ink, standing out from dimmer words around them. The brackets are drawn\n here, as punctuation around the key's own words. kbd's own face is the\n browser's monospace, not the package's, so the key inherits the line's. */\n ::slotted(strong),\n ::slotted(kbd) {\n font: inherit;\n color: var(--color-text-on-media);\n /* no role: the colour-plus-weight highlighting channel described at the\n head of this file -- a strong run, or a key against dimmer hint text. */\n font-weight: var(--typography-fontWeight-bold);\n }\n\n ::slotted(kbd)::before {\n content: \"[\";\n }\n\n ::slotted(kbd)::after {\n content: \"]\";\n }\n`;\n"],"mappings":"A,0BAcA,IAAAA,EAAe,CAAG,yqF"}