@repobit/dex-system-design 3.1.2 → 4.1.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 +1075 -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 +16 -2
  407. package/dist/src/components/logo-marquee/logo-marquee.js +10 -12
  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 +85 -0
  564. package/dist/src/components/select/select.js +36 -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 +35 -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 +4110 -2766
  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 @@
1
+ {"version":3,"file":"tab-group.js","names":["tabGroupCSS","_decorate","__decorate","tab_group_css_default","BACKGROUNDS","NAMED","isTab","el","isPanel","panelOf","tab","nameOf","panel","ROUTING","MOVING","BdTabGroup","LitElement","_args","SlotController","ObserverController","records","observer","event","next","onTablistKeydown","tabs","index","ensembleCSS","changed","isOneOf","TAB_APPEARANCES","name","panels","first","shown","tabFor","panelFor","switcher","stop","on","gone","release","hold","was","slot","selector","title","children","node","reroute","record","target","child","focus","hasTitle","hasDescription","nothing","property","defineElement"],"sources":["../../../../src/components/tab-group/tab-group.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { hold, release } from \"#shared/hold.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\nimport { onTablistKeydown } from \"#shared/tablist.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n// ./tab-group registers the family (N4)\nimport { TAB_APPEARANCES, type BdTab, type TabAppearance } from \"./tab.ts\";\nimport type { BdTabPanel } from \"./tab-panel.ts\";\nimport \"./tab-panel.ts\";\n/* The atoms the page writes into the title and description slots, and the\n columns 3.x's ./tabs registered beside bd-tabs, which most panels hold. */\nimport \"#components/feature-columns/feature-columns.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport tabGroupCSS from \"./tab-group.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\nconst BACKGROUNDS = [\"none\", \"tint\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\n/* The two slots a child names itself into; every other child is routed by\n what it is. */\nconst NAMED = [\"title\", \"description\"] as const;\nconst isTab = (el: Element) => el.localName === \"bd-tab\" && !NAMED.includes(el.slot as typeof NAMED[number]);\nconst isPanel = (el: Element) => el.localName === \"bd-tab-panel\" && !NAMED.includes(el.slot as typeof NAMED[number]);\n\n/* Read as attributes, not properties, so a child that has not upgraded yet\n is read the same as one that has. */\nconst panelOf = (tab: Element) => tab.getAttribute(\"panel\") ?? \"\";\nconst nameOf = (panel: Element) => panel.getAttribute(\"name\") ?? \"\";\n\n/* What a change to these on a child of the group can move: which slot it\n goes to, which tab and panel pair up, which tab the keys skip. */\nconst ROUTING = [\"slot\", \"panel\", \"name\", \"disabled\"];\n/* ...and what, inside a held panel, can start something again. */\nconst MOVING = [\"src\", \"srcdoc\", \"autoplay\"];\n\n/**\n * A row of tabs over the panels they show, one at a time.\n *\n * <bd-tab-group>\n * <bd-h slot=\"title\" as=\"h2\">The Ultimate Protection for all platforms</bd-h>\n * <bd-p slot=\"description\">Your digital safety is our top priority.</bd-p>\n * <bd-tab panel=\"windows\">Windows</bd-tab>\n * <bd-tab panel=\"macos\">macOS</bd-tab>\n * <bd-tab-panel name=\"windows\">…</bd-tab-panel>\n * <bd-tab-panel name=\"macos\">…</bd-tab-panel>\n * </bd-tab-group>\n *\n * It was bd-tabs, and Web Awesome's wa-tab-group is the model. The page\n * writes the tabs and panels as plain children, with no `slot`: the group's\n * shadow root assigns its slots by hand (slotAssignment: \"manual\"), the tabs\n * into its tablist and the shown panel into its panel area. Imperative slot\n * assignment is Baseline Widely available since 2025-09-27 (Chrome 92,\n * Firefox 92, Safari 16.4; webstatus.dev slot-assign, looked up 2026-11-04\n * -- modern-web-guidance's shadow-dom guide covers slots but gives this no\n * status). The title and the description are routed by their `slot`, as a\n * named slot would. A child added, removed or renamed later, or a tab's\n * `panel` or a panel's `name` changed, is routed again (_apply), and the\n * routing reads attributes, so a tab or panel that upgrades after the group\n * is routed the same.\n *\n * ## Every panel stays the page's\n *\n * Nothing is copied. 3.x rendered a copy of each panel, kept copies of the\n * hidden ones as sizers in shadow roots of their own, and took the copies\n * again whenever a panel changed; all of that is gone. The hidden panels are\n * assigned too, to a second slot in the same grid cell as the shown one\n * (tab-group.css.ts), where they take part in layout and are never drawn, so\n * the panel area is as tall as the tallest panel and a tab switch moves\n * nothing below it. A hidden panel is `inert` and held still (shared/hold.ts):\n * its media paused and kept from autoplaying, its `paused` components\n * paused, its embeds unloaded. Shown, it is released: its frames load again,\n * and what the page wrote with autoplay plays. Content the page adds to a\n * held panel later -- a block it decorates once the group is on it -- is held\n * as it arrives.\n *\n * Two things follow from the panels being one tree with the page, and both\n * are behaviour 3.x did not have. Leaving a tab no longer puts what it holds\n * back as the page wrote it: an accordion opened there is still open when\n * the reader comes back. And same-name radios in two panels are one group,\n * as they would be anywhere in a page -- a choice in one clears the other's\n * -- so each panel that asks its own question wraps its radios in a\n * bd-radio-group.\n *\n * ## Names, roles and the keys\n *\n * bd-tab is role=\"tab\" and bd-tab-panel role=\"tabpanel\", each through\n * ElementInternals. The tablist is named by the title, through the wrapper\n * around its slot, or by `label` without one. Tab and panel are paired\n * through ElementInternals' element references: the tab's\n * ariaControlsElements and the panel's ariaLabelledByElements, so the group\n * writes no id, aria-controls or aria-labelledby on the page's elements.\n * They are Baseline Newly available, since 2025-04-04 (Chrome 135, Firefox\n * 136, Safari 16.4; modern-web-guidance, accessible-web-components, looked up\n * 2026-11-09), inside the target. The group hands each child its partner\n * through the child's _pair() on every _apply. A child that has not upgraded\n * when the group connects is paired on the apply after the group's first\n * update: the family's definitions are imported before the group's, so by\n * then it has. A tab or panel taken out of the group is unpaired. It also\n * writes the roving tabindex -- the one way to put a host with an\n * ElementInternals role in the tab order -- and `inert` on the held panels.\n * CLAUDE.md (Brands) records these writes.\n *\n * The keys are the WAI-ARIA tabs pattern's, onTablistKeydown(): ArrowRight\n * and ArrowLeft (mirrored on a right-to-left page), Home and End, a disabled\n * tab skipped, and automatic activation, since showing a panel costs\n * nothing.\n *\n * `active` is the name of the shown panel. Without one the first tab that is\n * not disabled is shown, and its name written to `active`. A name no tab has\n * yet is kept -- the page may be about to add the tab -- and the first is\n * shown meanwhile; the shown tab taken away, the first is shown and written.\n * The group sends bd-tab-show, `detail: { name }`, whenever the shown panel\n * changes after the first, by the reader or by the page. It bubbles, so a\n * group nested in another's panel reaches the outer group's listeners too:\n * `event.target` says which group it was.\n *\n * ## Two appearances\n *\n * `appearance=\"switcher\"` draws 3.x bd-tab-list's content switcher (Figma\n * node 311:931): a pill track on the action fill, the shown tab on a white\n * pill, every tab as wide as the widest and on one line. It is a look, not a\n * second element (N2): the roles, the references, the keys and the hold are the\n * same. The group hands `appearance` to its bd-tabs as an attribute, as it\n * hands them `active`, and each tab draws its own pill (tab.css.ts); the\n * track is this group's (tab-group.css.ts).\n *\n * The equal widths are CSS, where 3.x measured them in script after\n * fonts.ready and published --bd-switcher-option-width: the track is an\n * inline grid whose columns are each 1fr, and an inline grid sized to its\n * content makes every flexible column as wide as the widest column's content\n * (CSS Grid, \"find the size of an fr\"). So a translated label or a font that\n * arrives late resizes the track with no script. tab-group.css.ts records\n * where the two differ: only where the column is narrower than the equal\n * track, and the measured numbers.\n *\n * ## Nested groups\n *\n * A group routes its own children only, so a group in another's panel -- the\n * pricing card's billing tabs, in a panel of the plan tabs -- keeps its tabs,\n * its panels and its keys: the outer group's lists, clicks and keys stop at\n * its own children, and its hold reaches no further than the inner group's\n * held panels (shared/hold.ts, \"held roots nest\"). The inner group's own\n * `slot`, as in `<bd-tab-group slot=\"price\">` inside a card, is its parent's\n * business, not its children's.\n */\n@defineElement(\"bd-tab-group\")\nexport class BdTabGroup extends LitElement {\n static shadowRootOptions: ShadowRootInit = { ...LitElement.shadowRootOptions, slotAssignment: \"manual\" };\n static styles = [ensembleCSS, tabGroupCSS];\n\n /** The `name` of the shown bd-tab-panel. Reflected; the first tab's panel when unset. */\n @property({ type: String, reflect: true, attribute: \"active\" })\n active = \"\";\n\n /** The strip's look: standard, the underlined strip, or switcher, the pill track. Handed to every bd-tab. */\n @property({ type: String, reflect: true, attribute: \"appearance\" })\n appearance: TabAppearance = \"standard\";\n\n /** The group's ground: none, or tint, the brand wash behind it. */\n @property({ type: String, reflect: true, attribute: \"background\" })\n background: Background = \"none\";\n\n /** The tablist's accessible name while no title is slotted. No default. */\n @property({ type: String, attribute: \"label\" })\n label = \"\";\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\"] });\n\n /* A child added or removed, or a child's routing attribute changed, routes\n everything again; a change inside a held panel holds what it brought.\n Observed from the first update; connectedCallback routes everything\n again on a reconnect, since nothing reports what changed while the\n group was out of the page. */\n _children = new ObserverController(this,\n () => new MutationObserver(records => this._onMutations(records)),\n observer => observer.observe(this, { childList: true, subtree: true, attributes: true, attributeFilter: [...ROUTING, ...MOVING] }));\n\n /* The panel shown at the last _apply that showed one, which bd-tab-show reports a change from. */\n private _shown = \"\";\n /* The panels this group is holding, and every panel it routed last time. */\n private readonly _held = new WeakSet<Element>();\n private _panels = new Set<Element>();\n private _pairedTabs = new Set<Element>();\n\n connectedCallback() {\n super.connectedCallback();\n /* Before the first render, so a hidden panel's frames are unloaded and\n its video paused now rather than a frame later; and again on every\n reconnect. */\n this._apply();\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(TAB_APPEARANCES, this.appearance)) this.appearance = \"standard\";\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"none\";\n // here as well as in _apply, so an update writes the default before it renders rather than after\n this._resolve(this._tabs(), this._tabPanels());\n }\n\n updated() {\n this._apply();\n }\n\n _tabs() {\n return [...this.children].filter(isTab);\n }\n\n _tabPanels() {\n return [...this.children].filter(isPanel);\n }\n\n /* The panel to show: `active` when a tab names it (or, with no tabs, a\n panel has it), else the first tab's that is not disabled. The default is\n written to `active`, and so is the first when the shown tab went away; a\n name no tab has yet is the page's, and stays. */\n private _resolve(tabs: Element[], panels: Element[]) {\n const known = (name: string) => name !== \"\"\n && (tabs.length ? tabs.some(tab => panelOf(tab) === name) : panels.some(panel => nameOf(panel) === name));\n if (known(this.active)) return this.active;\n const first = tabs.find(tab => panelOf(tab) && !tab.hasAttribute(\"disabled\")) ?? tabs.find(panelOf);\n const shown = first ? panelOf(first) : (panels.map(nameOf).find(Boolean) ?? \"\");\n if (shown && (!this.active || this.active === this._shown)) this.active = shown;\n return shown;\n }\n\n /**\n * Everything the group hands its children, from what they are now: which\n * tab and panel are active, the tabs' appearance, the references that\n * pair them, the roving tabindex, which panels are inert and held,\n * and the slot each child is assigned to. Idempotent; it runs on connect,\n * after every update and on every routing change.\n */\n _apply() {\n const tabs = this._tabs();\n const panels = this._tabPanels();\n const shown = this._resolve(tabs, panels);\n\n const tabFor = (name: string) => tabs.find(tab => panelOf(tab) === name);\n const panelFor = (name: string) => panels.find(panel => nameOf(panel) === name);\n\n /* The strip's look, which each tab draws itself (tab.css.ts). Written\n only for the switcher, so a standard group leaves its tabs as the page\n wrote them; a value the group does not know is the standard look. */\n const switcher = this.appearance === \"switcher\";\n\n let stop = false;\n for (const tab of tabs) {\n const on = panelOf(tab) === shown;\n tab.toggleAttribute(\"active\", on);\n if (switcher) tab.setAttribute(\"appearance\", \"switcher\");\n else tab.removeAttribute(\"appearance\");\n // one tab stop, the shown tab's\n tab.setAttribute(\"tabindex\", on && !stop ? \"0\" : \"-1\");\n stop ||= on;\n (tab as BdTab)._pair?.(panelFor(panelOf(tab)) ?? null);\n }\n\n // a tab taken out of the group controls nothing\n for (const gone of this._pairedTabs) if (!tabs.includes(gone)) (gone as BdTab)._pair?.(null);\n this._pairedTabs = new Set(tabs);\n\n for (const panel of panels) {\n const on = nameOf(panel) === shown;\n panel.toggleAttribute(\"active\", on);\n panel.toggleAttribute(\"inert\", !on);\n (panel as BdTabPanel)._pair?.(tabFor(nameOf(panel)) ?? null);\n if (on && this._held.has(panel)) {\n this._held.delete(panel);\n release(panel);\n } else if (!on && !this._held.has(panel)) {\n this._held.add(panel);\n void hold(panel);\n }\n }\n\n // a panel taken out of the group is the page's again, as it wrote it\n for (const gone of this._panels) {\n if (panels.includes(gone)) continue;\n gone.removeAttribute(\"inert\");\n gone.removeAttribute(\"active\");\n (gone as BdTabPanel)._pair?.(null);\n if (this._held.has(gone)) {\n this._held.delete(gone);\n release(gone);\n }\n }\n this._panels = new Set(panels);\n\n this._route(tabs, panels, shown);\n\n /* An emptied group shows nothing, which is no panel to report. The last\n panel it showed stays the one _resolve measures `active` against, so a\n group filled again writes its first new tab to `active`, and reports\n it, rather than keeping the old name as if the page had asked for it. */\n if (!shown) return;\n const was = this._shown;\n this._shown = shown;\n if (was && shown !== was) {\n this.dispatchEvent(new CustomEvent(\"bd-tab-show\", { detail: { name: shown }, bubbles: true, composed: true }));\n }\n }\n\n /* Each child into its slot. Nothing is rendered before the first update, so\n there is nothing to assign to until then. */\n private _route(tabs: Element[], panels: Element[], shown: string) {\n const slot = (selector: string) => this.renderRoot.querySelector<HTMLSlotElement>(selector);\n const title = slot('slot[name=\"title\"]');\n if (!title) return;\n const children = [...this.children];\n title.assign(...children.filter(el => el.slot === \"title\"));\n slot('slot[name=\"description\"]')!.assign(...children.filter(el => el.slot === \"description\"));\n slot(\"slot.tabs\")!.assign(...tabs);\n slot(\"slot.shown\")!.assign(...panels.filter(panel => nameOf(panel) === shown));\n slot(\"slot.held\")!.assign(...panels.filter(panel => nameOf(panel) !== shown));\n }\n\n /* The child of the group a node is in, if any. */\n private _childAround(node: Node | null) {\n while (node && node.parentNode !== this) node = node.parentNode;\n return node as Element | null;\n }\n\n private _onMutations(records: MutationRecord[]) {\n let reroute = false;\n const changed = new Set<Element>();\n for (const record of records) {\n const target = record.target as Element;\n if (target === this) reroute = true;\n else if (target.parentNode === this && record.type === \"attributes\" && ROUTING.includes(record.attributeName!)) reroute = true;\n else {\n const child = this._childAround(target);\n if (child && this._held.has(child)) changed.add(child);\n }\n }\n if (reroute) this._apply();\n for (const panel of changed) if (this._held.has(panel)) void hold(panel);\n }\n\n /* The bd-tab an event came from, if it is one of this group's. */\n private _tabFrom(event: Event) {\n const tabs = this._tabs();\n return { tabs, tab: event.composedPath().find((el): el is Element => tabs.includes(el as Element)) };\n }\n\n private _choose(tab: Element, { focus = false } = {}) {\n if (tab.hasAttribute(\"disabled\")) return;\n if (focus) (tab as HTMLElement).focus();\n const name = panelOf(tab);\n if (name && name !== this.active) this.active = name;\n }\n\n private _onClick = (event: MouseEvent) => {\n const { tab } = this._tabFrom(event);\n if (tab) this._choose(tab);\n };\n\n private _onKeydown = (event: KeyboardEvent) => {\n const { tabs, tab } = this._tabFrom(event);\n if (!tab) return;\n const next = onTablistKeydown(event, {\n count : tabs.length,\n current : tabs.indexOf(tab),\n rtl : this.matches(\":dir(rtl)\"),\n disabled: index => tabs[index].hasAttribute(\"disabled\")\n });\n if (next !== null) this._choose(tabs[next], { focus: true });\n };\n\n render() {\n const hasTitle = this._slots.has(\"title\");\n const hasDescription = this._slots.has(\"description\");\n return html`\n <div class=\"bd-ensemble root\">\n <div class=\"title\" id=\"title\" ?hidden=${!hasTitle}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${!hasDescription}><slot name=\"description\"></slot></div>\n <div\n class=\"tablist\"\n role=\"tablist\"\n aria-labelledby=${hasTitle ? \"title\" : nothing}\n aria-label=${!hasTitle && this.label ? this.label : nothing}\n @click=${this._onClick}\n @keydown=${this._onKeydown}\n ><slot class=\"tabs\"></slot></div>\n <div class=\"panels\"><slot class=\"shown\"></slot><slot class=\"held\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-tab-group\": BdTabGroup;\n }\n interface HTMLElementEventMap {\n \"bd-tab-show\": CustomEvent<{ name: string }>;\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,30 @@
1
+ import { LitElement } from "lit";
2
+ import "../../tokens/tokens.js";
3
+ /**
4
+ * One panel of a bd-tab-group: what its tab shows.
5
+ *
6
+ * <bd-tab-panel name="windows">…</bd-tab-panel>
7
+ *
8
+ * role="tabpanel" through ElementInternals; its group names it by its tab
9
+ * (_pair(), which the panel hands to its ElementInternals as
10
+ * ariaLabelledByElements) and pushes `active`. The panel stays the page's: the
11
+ * group routes it into its own panel area without copying it, and while it is
12
+ * not the shown one it is `inert` and held still (shared/hold.ts).
13
+ */
14
+ export declare class BdTabPanel extends LitElement {
15
+ static styles: import("lit").CSSResult;
16
+ /** The name its bd-tab's `panel` and the group's `active` call it by. Reflected, because the group reads it as an attribute. */
17
+ name: string;
18
+ /** Whether this is the shown panel. Set by the group; reflected. */
19
+ active: boolean;
20
+ private readonly _internals;
21
+ constructor();
22
+ /** Called by the group with the tab that names this panel, or null when none does. */
23
+ _pair(tab: Element | null): void;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ }
26
+ declare global {
27
+ interface HTMLElementTagNameMap {
28
+ "bd-tab-panel": BdTabPanel;
29
+ }
30
+ }
@@ -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{LitElement as n,css as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends n{static{this.styles=r`:host{display:block}`}constructor(){super(),this.name=``,this.active=!1,this._internals=this.attachInternals(),this._internals.role=`tabpanel`}_pair(e){this._internals.ariaLabelledByElements=e?[e]:null}render(){return i`<slot></slot>`}};t([a({type:String,reflect:!0,attribute:`name`})],o.prototype,`name`,void 0),t([a({type:Boolean,reflect:!0,attribute:`active`})],o.prototype,`active`,void 0),o=t([e(`bd-tab-panel`)],o);export{o as BdTabPanel};
2
+ //# sourceMappingURL=tab-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.js","names":["_decorate","__decorate","BdTabPanel","LitElement","tab","property","defineElement"],"sources":["../../../../src/components/tab-group/tab-panel.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/**\n * One panel of a bd-tab-group: what its tab shows.\n *\n * <bd-tab-panel name=\"windows\">…</bd-tab-panel>\n *\n * role=\"tabpanel\" through ElementInternals; its group names it by its tab\n * (_pair(), which the panel hands to its ElementInternals as\n * ariaLabelledByElements) and pushes `active`. The panel stays the page's: the\n * group routes it into its own panel area without copying it, and while it is\n * not the shown one it is `inert` and held still (shared/hold.ts).\n */\n@defineElement(\"bd-tab-panel\")\nexport class BdTabPanel extends LitElement {\n static styles = css`\n :host {\n display: block;\n }\n `;\n\n /** The name its bd-tab's `panel` and the group's `active` call it by. Reflected, because the group reads it as an attribute. */\n @property({ type: String, reflect: true, attribute: \"name\" })\n name = \"\";\n\n /** Whether this is the shown panel. Set by the group; reflected. */\n @property({ type: Boolean, reflect: true, attribute: \"active\" })\n active = false;\n\n private readonly _internals = this.attachInternals();\n\n constructor() {\n super();\n this._internals.role = \"tabpanel\";\n }\n\n /** Called by the group with the tab that names this panel, or null when none does. */\n _pair(tab: Element | null) {\n this._internals.ariaLabelledByElements = tab ? [tab] : null;\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-tab-panel\": BdTabPanel;\n }\n}\n"],"mappings":"A,sQAkBO,IAAME,EAAN,cAAyBC,CAAW,C,OACzB,KAAA,OAAA,CAAG,sB,CAgBnB,aAAc,CACZ,MAAM,EATD,KAAA,KAAA,GAIE,KAAA,OAAA,GAEqB,KAAA,WAAA,KAAK,gBAAgB,EAIjD,KAAK,WAAW,KAAO,UACzB,CAGA,MAAM,EAAqB,CACzB,KAAK,WAAW,uBAAyBC,EAAM,CAACA,CAAG,EAAI,IACzD,CAEA,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAtBGJ,EAAA,CAAAK,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,MAAO,CAAC,CAAA,EAAAH,EAAA,UAAA,OAAA,IAAA,EAAA,EAI3DF,EAAA,CAAAK,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,QAAS,CAAC,CAAA,EAAAH,EAAA,UAAA,SAAA,IAAA,EAAA,EAbhE,EAAAF,EAAA,CAAAM,EAAc,cAAc,CAAA,EAAAJ,CAAA,E"}
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{justify-content:center;align-items:center;gap:var(--spacing-8);padding:var(--spacing-10) var(--spacing-16);cursor:pointer;color:var(--color-text-brand);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-regular-fontSize);line-height:var(--typography-body-regular-lineHeight);font-weight:var(--typography-body-regular-fontWeight);transition:color var(--transition-duration-fast) var(--transition-easing-smooth);-webkit-user-select:none;user-select:none;display:inline-flex;position:relative}:host:after{content:"";height:var(--indicator-underline-height);background:var(--indicator-color);transform-origin:0;width:100%;transition:scale var(--indicator-underline-duration) var(--indicator-underline-easing);position:absolute;bottom:0;left:0;scale:0 1}:host(:dir(rtl)):after{transform-origin:100%}:host(:hover:not([active]):not([disabled])){color:var(--color-action-primary-active)}:host([active]){color:var(--color-text-primary);font-weight:var(--typography-fontWeight-bold)}:host([active]):after{scale:1}:host([disabled]){color:var(--color-text-disabled);cursor:not-allowed}:host(: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){:host,:host:after{transition:none}}@media (forced-colors:active){:host:after{forced-color-adjust:none;background:highlight}}@media (width<576px){:host{padding:var(--spacing-8) var(--spacing-12)}}:host([appearance=switcher]){padding:var(--spacing-12) var(--spacing-24);border-radius:var(--radius-full);color:var(--color-brand-on-fill);font-weight:var(--typography-control-label-large-fontWeight);white-space:nowrap;transition:color var(--transition-duration-fast) var(--transition-easing-smooth), background-color var(--transition-duration-fast) var(--transition-easing-smooth)}:host([appearance=switcher]):after{display:none}:host([appearance=switcher]:hover:not([active]):not([disabled])){color:var(--color-brand-on-fill);background:var(--color-border-container-inverse)}:host([appearance=switcher][active]){color:var(--color-text-primary);font-weight:var(--typography-control-label-large-fontWeight);background:var(--color-surface-default)}:host([appearance=switcher][disabled]){color:var(--color-text-disabled)}@media (prefers-reduced-motion:reduce){:host([appearance=switcher]){transition:none}}@media (forced-colors:active){:host([appearance=switcher][active]){forced-color-adjust:none;color:highlighttext;background:highlight}}`;export{t as default};
2
+ //# sourceMappingURL=tab.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.css.js","names":["tab_css_default"],"sources":["../../../../src/components/tab-group/tab.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\n/* unsafeCSS is how a Lit css`` template accepts a computed string. The\n value is not arbitrary: below() resolves a name from the closed\n breakpoint set and throws on anything else, so the only strings that\n reach here are the ones the scale produced. */\nimport { below } from \"#shared/token-scales.ts\";\n\n/* bd-tab: the tab 3.x bd-tab-list drew as a <button class=\"bd-tab-button\">,\n drawn on the host, which is the control here. The values are that sheet's;\n bd-tab-list went in v4 (phase 6) and the pricing card's switch is a\n bd-tab-group appearance=\"switcher\" now, drawn by the second half of this\n sheet.\n\n 3.x's --bd-tab-* knobs on the tab are gone. The tab is the page's own\n element, so a page's rule on bd-tab or bd-tab[active] reaches it and wins\n over every rule here (the outer tree's normal declarations beat :host's),\n which leaves a knob for the ink, the padding, the gap or the type nothing\n to do but spell the same thing twice. The underline is the indicator\n role, --indicator-*, which the wayfinding family shares and the brand\n layer colours. */\nexport default css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-8);\n padding: var(--spacing-10) var(--spacing-16);\n cursor: pointer;\n position: relative;\n color: var(--color-text-brand);\n font-family: var(--typography-fontFamily-sans);\n /* body-regular, the role bd-tab-list's tabs, bd-anchor-nav's and\n bd-page-switcher's items resolve through: a label with an action\n attached, 10 + 24 + 10 = 44 tall. */\n font-size: var(--typography-body-regular-fontSize);\n line-height: var(--typography-body-regular-lineHeight);\n font-weight: var(--typography-body-regular-fontWeight);\n transition: color var(--transition-duration-fast) var(--transition-easing-smooth);\n -webkit-user-select: none;\n user-select: none;\n }\n\n /* The selected underline: full width, scaled to nothing at rest and grown\n from the inline start, so the compositor draws it. */\n :host::after {\n content: \"\";\n height: var(--indicator-underline-height);\n background: var(--indicator-color);\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n scale: 0 1;\n transform-origin: left center;\n transition: scale var(--indicator-underline-duration) var(--indicator-underline-easing);\n }\n\n :host(:dir(rtl))::after {\n transform-origin: right center;\n }\n\n /* action/primary-active under the pointer, the step bd-link's hover takes;\n not on the selected tab, whose ink does not move, nor a disabled one. */\n :host(:hover:not([active]):not([disabled])) {\n color: var(--color-action-primary-active);\n }\n\n :host([active]) {\n color: var(--color-text-primary);\n /* no role: the weight that marks the current item -- a state weight, as\n on bd-tab-list's selected tab and bd-link's current link */\n font-weight: var(--typography-fontWeight-bold);\n }\n\n :host([active])::after {\n scale: 1;\n }\n\n /* Disabled is exempt from the contrast minimum (WCAG 1.4.3), and it is\n disabled: the group never shows its panel and the keys skip it. */\n :host([disabled]) {\n color: var(--color-text-disabled);\n cursor: not-allowed;\n }\n\n :host(:focus-visible) {\n /* the one focus ring -- see Foundations/Focus. The transparent outline is\n what forced-colors mode paints, since it drops the box-shadow. */\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 :host,\n :host::after {\n transition: none;\n }\n }\n\n /* Forced colours repaint the underline's background as Canvas; it opts out\n and draws in Highlight, the system colour for a selected thing. */\n @media (forced-colors: active) {\n :host::after {\n forced-color-adjust: none;\n background: Highlight;\n }\n }\n\n /* bd-tab-list's narrow step, below sm. */\n @media ${unsafeCSS(below(\"sm\"))} {\n :host {\n padding: var(--spacing-8) var(--spacing-12);\n }\n }\n\n /* ---- appearance=\"switcher\": an option of the content switcher ----------\n The group writes appearance=\"switcher\" on its tabs; the track around them\n is the group's (tab-group.css.ts). 3.x bd-tab-list's\n .bd-tabs-container--switcher .bd-tab-button, value for value. Figma:\n Content switcher, node 311:931 -- a 24px label with 12/24 around it is the\n 48px option, and the track's 4px padding makes the 56px frame.\n\n The white pill alone marks the shown option, so both states keep the\n control-label weight and a label does not reflow when the reader\n switches; the standard strip's bold belongs with its underline. Each rule\n names the appearance, so it outranks the standard rule it replaces\n whatever their order: :host([active]) and the hover above. */\n :host([appearance=\"switcher\"]) {\n /* below sm too, where it outranks the standard tab's 8/12: that step\n would take the pill off the 48px option, and two options of \"Individual\"\n and \"Family\" plus the track still fit a 375px screen */\n padding: var(--spacing-12) var(--spacing-24);\n border-radius: var(--radius-full);\n /* on the brand track */\n color: var(--color-brand-on-fill);\n /* the control-label step, which a button's label carries */\n font-weight: var(--typography-control-label-large-fontWeight);\n /* An option is a control label, one line by definition: a wrap would\n break the pill, and the track's equal columns are the longest label's\n one-line width. */\n white-space: nowrap;\n transition: color var(--transition-duration-fast) var(--transition-easing-smooth),\n background-color var(--transition-duration-fast) var(--transition-easing-smooth);\n }\n\n /* The underline belongs to the standard strip. display: none rather than\n no scale, so its transition has nothing to animate either. */\n :host([appearance=\"switcher\"])::after {\n display: none;\n }\n\n /* The standard hover goes to action/primary-active, a darker blue, which\n on the blue track would be near invisible. The pointer's cue is the pill\n appearing under the option instead: white at 12%. */\n :host([appearance=\"switcher\"]:hover:not([active]):not([disabled])) {\n color: var(--color-brand-on-fill);\n background: var(--color-border-container-inverse);\n }\n\n :host([appearance=\"switcher\"][active]) {\n color: var(--color-text-primary);\n font-weight: var(--typography-control-label-large-fontWeight);\n background: var(--color-surface-default);\n }\n\n :host([appearance=\"switcher\"][disabled]) {\n color: var(--color-text-disabled);\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host([appearance=\"switcher\"]) {\n transition: none;\n }\n }\n\n /* The pill is the whole of the shown state, and forced colours repaint it\n -- and the track under it -- as Canvas, so every option would read the\n same. The shown one opts out into the system's selected pair. */\n @media (forced-colors: active) {\n :host([appearance=\"switcher\"][active]) {\n forced-color-adjust: none;\n background: Highlight;\n color: HighlightText;\n }\n }\n`;\n"],"mappings":"A,4DAoBA,IAAAA,EAAe,CAAG,ghF"}
@@ -0,0 +1,53 @@
1
+ import { LitElement, type PropertyValues } from "lit";
2
+ import "../../tokens/tokens.js";
3
+ export declare const TAB_APPEARANCES: readonly ["standard", "switcher"];
4
+ export type TabAppearance = typeof TAB_APPEARANCES[number];
5
+ /**
6
+ * One tab of a bd-tab-group: its label, and the name of the panel it shows.
7
+ *
8
+ * <bd-tab panel="windows">Windows</bd-tab>
9
+ *
10
+ * The tab is the control itself: role="tab" through ElementInternals, with
11
+ * aria-selected following `active`, so nothing renders but the label. Its
12
+ * group writes the rest onto it -- `active`, its `appearance` and the roving
13
+ * tabindex as attributes, so a tab that upgrades after its group still finds
14
+ * them -- and pairs it with the panel it controls through _pair(), which the
15
+ * tab hands to its ElementInternals as ariaControlsElements (tab-group.ts
16
+ * says why).
17
+ *
18
+ * What the tab shows is the page's: a word, phrasing, a <bd-icon> beside the
19
+ * word. 3.x bd-tab-list's `icon` / `iconAlt` and rich `content` are whatever
20
+ * the page writes here, laid out in a row, centred, 8 apart.
21
+ *
22
+ * ElementInternals' ARIA reflection is Baseline Widely available since
23
+ * 2026-04-24 (Chrome 103, Firefox 119, Safari 16.4; webstatus.dev
24
+ * aria-attribute-reflection, looked up 2026-11-04), so the role needs no host
25
+ * attribute.
26
+ */
27
+ export declare class BdTab extends LitElement {
28
+ static styles: import("lit").CSSResult[];
29
+ /** The `name` of the bd-tab-panel this tab shows. Reflected, because the group reads it as an attribute. */
30
+ panel: string;
31
+ /** Whether this is the shown tab. Set by the group from its `active`; reflected, for the stylesheet. */
32
+ active: boolean;
33
+ /**
34
+ * The strip's look, set by the group from its own `appearance`: written as
35
+ * "switcher" in a switcher group and taken away in a standard one, and the
36
+ * stylesheet reads the attribute. Not reflected: the default is no attribute.
37
+ */
38
+ appearance: TabAppearance;
39
+ /** A disabled tab cannot be chosen, and the arrow keys skip it. */
40
+ disabled: boolean;
41
+ private readonly _internals;
42
+ constructor();
43
+ willUpdate(changed: PropertyValues<this>): void;
44
+ updated(changed: PropertyValues<this>): void;
45
+ /** Called by the group with the panel this tab controls, or null when it controls none. */
46
+ _pair(panel: Element | null): void;
47
+ render(): import("lit-html").TemplateResult<1>;
48
+ }
49
+ declare global {
50
+ interface HTMLElementTagNameMap {
51
+ "bd-tab": BdTab;
52
+ }
53
+ }
@@ -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":"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"}
@@ -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