@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,31 @@
1
+ import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
4
+ import "../h/h.js";
5
+ import "../p/p.js";
6
+ /**
7
+ * A two-column band on a brand gradient: a large title on one side, a logo
8
+ * and a description on the other, each with buttons of its own.
9
+ *
10
+ * Every word is the page's (ADR 0003): `<bd-h slot="title" as="h2">` and
11
+ * `<bd-p slot="description">`. The title column also takes `media` (an image
12
+ * above the title) and `actions` (buttons under it); the description column
13
+ * takes `icon` (the logo above the description) and `description-actions`
14
+ * (buttons under it). Each part's box is left out while its slot is empty,
15
+ * and so is a column with nothing in it.
16
+ *
17
+ * Media in the title column moves the emphasis across: the title steps down
18
+ * to the description's size and the description up, so the band still has
19
+ * one large line. The page keeps both elements and their levels; the band
20
+ * only changes the size it sets on them.
21
+ */
22
+ export declare class BdSpotlight extends LitElement {
23
+ static styles: import("lit").CSSResult[];
24
+ _slots: SlotController<"title" | "description" | "icon" | "media" | "actions" | "description-actions">;
25
+ render(): import("lit-html").TemplateResult<1>;
26
+ }
27
+ declare global {
28
+ interface HTMLElementTagNameMap {
29
+ "bd-spotlight": BdSpotlight;
30
+ }
31
+ }
@@ -0,0 +1,18 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./spotlight.css.js";import{LitElement as a,html as o}from"lit";var s=[`media`,`title`,`actions`,`icon`,`description`,`description-actions`],c=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:s})}static{this.styles=[r,i]}render(){let e=e=>this._slots.has(e),t=e(`media`);return o`
2
+ <div class="bd-ensemble">
3
+ <div class="bd-spotlight-container ${t?`flipped`:``}">
4
+ <div class="bd-spotlight-column" ?hidden=${!t&&!e(`title`)&&!e(`actions`)}>
5
+ <div class="bd-spotlight-icon" ?hidden=${!t}><slot name="media"></slot></div>
6
+ <div class="bd-spotlight-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
7
+ <div class="bd-spotlight-buttons" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
8
+ </div>
9
+
10
+ <div class="bd-spotlight-column" ?hidden=${!e(`icon`)&&!e(`description`)&&!e(`description-actions`)}>
11
+ <div class="bd-spotlight-icon" ?hidden=${!e(`icon`)}><slot name="icon"></slot></div>
12
+ <div class="bd-spotlight-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
13
+ <div class="bd-spotlight-buttons" ?hidden=${!e(`description-actions`)}><slot name="description-actions"></slot></div>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ `}};c=t([e(`bd-spotlight`)],c);export{c as BdSpotlight};
18
+ //# sourceMappingURL=spotlight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spotlight.js","names":["spotlightCSS","_decorate","__decorate","spotlight_css_default","SLOTS","BdSpotlight","LitElement","_args","SlotController","ensembleCSS","has","name","flipped","defineElement"],"sources":["../../../../src/components/spotlight/spotlight.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms the page writes into the band's title and description. It\n renders neither now, but 3.x's bd-spotlight-section registered both, and\n a page importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport spotlightCSS from \"./spotlight.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\nconst SLOTS = [\"media\", \"title\", \"actions\", \"icon\", \"description\", \"description-actions\"] as const;\ntype Slot = typeof SLOTS[number];\n\n/**\n * A two-column band on a brand gradient: a large title on one side, a logo\n * and a description on the other, each with buttons of its own.\n *\n * Every word is the page's (ADR 0003): `<bd-h slot=\"title\" as=\"h2\">` and\n * `<bd-p slot=\"description\">`. The title column also takes `media` (an image\n * above the title) and `actions` (buttons under it); the description column\n * takes `icon` (the logo above the description) and `description-actions`\n * (buttons under it). Each part's box is left out while its slot is empty,\n * and so is a column with nothing in it.\n *\n * Media in the title column moves the emphasis across: the title steps down\n * to the description's size and the description up, so the band still has\n * one large line. The page keeps both elements and their levels; the band\n * only changes the size it sets on them.\n */\n@defineElement(\"bd-spotlight\")\nexport class BdSpotlight extends LitElement {\n static styles = [ensembleCSS, spotlightCSS];\n\n _slots = new SlotController(this, { slots: SLOTS });\n\n render() {\n const has = (name: Slot) => this._slots.has(name);\n const flipped = has(\"media\");\n return html`\n <div class=\"bd-ensemble\">\n <div class=\"bd-spotlight-container ${flipped ? \"flipped\" : \"\"}\">\n <div class=\"bd-spotlight-column\" ?hidden=${!flipped && !has(\"title\") && !has(\"actions\")}>\n <div class=\"bd-spotlight-icon\" ?hidden=${!flipped}><slot name=\"media\"></slot></div>\n <div class=\"bd-spotlight-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-spotlight-buttons\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n\n <div class=\"bd-spotlight-column\" ?hidden=${!has(\"icon\") && !has(\"description\") && !has(\"description-actions\")}>\n <div class=\"bd-spotlight-icon\" ?hidden=${!has(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"bd-spotlight-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-spotlight-buttons\" ?hidden=${!has(\"description-actions\")}><slot name=\"description-actions\"></slot></div>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-spotlight\": BdSpotlight;\n }\n}\n"],"mappings":"A,4YAaA,IAAMI,EAAQ,CAAC,QAAS,QAAS,UAAW,OAAQ,cAAe,qBAAqB,EAoB3EC,EAAN,cAA0BC,CAAW,C,8BAGjC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAOJ,CAAM,CAAC,C,QAFlC,KAAA,OAAA,CAACK,EAAaT,CAAY,C,CAI1C,QAAS,CACP,IAAMU,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAUF,EAAI,OAAO,EAC3B,MAAO,EAAI;;6CAE8BE,EAAU,UAAY,GAAG;qDACjB,CAACA,GAAW,CAACF,EAAI,OAAO,GAAK,CAACA,EAAI,SAAS,EAAE;qDAC7C,CAACE,EAAQ;sDACR,CAACF,EAAI,OAAO,EAAE;wDACZ,CAACA,EAAI,SAAS,EAAE;;;qDAGnB,CAACA,EAAI,MAAM,GAAK,CAACA,EAAI,aAAa,GAAK,CAACA,EAAI,qBAAqB,EAAE;qDACnE,CAACA,EAAI,MAAM,EAAE;4DACN,CAACA,EAAI,aAAa,EAAE;wDACxB,CAACA,EAAI,qBAAqB,EAAE;;;;KAKlF,CACF,EA3BC,EAAAT,EAAA,CAAAY,EAAc,cAAc,CAAA,EAAAR,CAAA,E"}
@@ -21,7 +21,7 @@ export declare class StatHighlight extends LitElement {
21
21
  _inView: ObserverController<IntersectionObserver>;
22
22
  willUpdate(): void;
23
23
  _renderChar(ch: string, i: number): import("lit-html").TemplateResult<1>;
24
- render(): typeof nothing | import("lit-html").TemplateResult<1>;
24
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
25
25
  }
26
26
  declare global {
27
27
  interface HTMLElementTagNameMap {
@@ -1,2 +1,2 @@
1
- export declare const statTileCSS: import("lit").CSSResult;
1
+ export declare const statCSS: import("lit").CSSResult;
2
2
  export declare const statHighlightCSS: import("lit").CSSResult;
@@ -1,2 +1,2 @@
1
- import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;height:100%;display:block}.tile{box-sizing:border-box;justify-content:space-between;gap:var(--spacing-12);height:100%;padding:var(--spacing-20);text-align:start;background:var(--color-surface-info);border-radius:var(--shape-radius-3xl);flex-direction:column;display:flex}@media (width>=992px){.tile{gap:var(--spacing-48);padding:var(--spacing-24)}}.value,.caption{color:var(--color-text-primary);margin:0}.value{font-family:var(--typography-display-md-fontFamily);font-size:var(--typography-display-md-fontSize);font-weight:var(--typography-display-md-fontWeight);line-height:var(--typography-display-md-lineHeight);letter-spacing:var(--typography-display-md-letterSpacing);font-variant-numeric:tabular-nums}.caption{font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);white-space:pre-line}`,n=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.highlight{text-align:start;color:var(--color-text-primary);font-family:var(--typography-display-3xl-fontFamily);font-weight:var(--typography-fontWeight-normal);letter-spacing:var(--typography-display-3xl-letterSpacing);font-variant-numeric:tabular-nums;margin:0;font-size:clamp(5rem,min(12.5vw,30.6122cqi),11.25rem);line-height:1}.chars{align-items:flex-end;display:inline-flex}.char{height:1em;display:inline-block}.digit{overflow:hidden}.reel{transform:translateY(calc(var(--bd-stat-digit) * -1em));transition:transform var(--transition-duration-slower) var(--transition-easing-smooth);transition-delay:calc(var(--bd-stat-order) * var(--transition-duration-fast));flex-direction:column;display:flex}.reel>span{height:1em}@media (prefers-reduced-motion:reduce){.reel{transition:none}}`;export{n as statHighlightCSS,t as statTileCSS};
1
+ import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;height:100%;display:block}.tile{box-sizing:border-box;justify-content:space-between;gap:var(--spacing-12);height:100%;padding:var(--spacing-20);text-align:start;background:var(--color-surface-info);border-radius:var(--shape-radius-3xl);flex-direction:column;display:flex}.tile>[hidden]{display:none}@media (width>=992px){.tile{gap:var(--spacing-48);padding:var(--spacing-24)}}.value,.caption{color:var(--color-text-primary);margin:0}.value{font-family:var(--typography-display-md-fontFamily);font-size:var(--typography-display-md-fontSize);font-weight:var(--typography-display-md-fontWeight);line-height:var(--typography-display-md-lineHeight);letter-spacing:var(--typography-display-md-letterSpacing);font-variant-numeric:tabular-nums}.caption{font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing)}`,n=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.highlight{text-align:start;color:var(--color-text-primary);font-family:var(--typography-display-3xl-fontFamily);font-weight:var(--typography-fontWeight-normal);letter-spacing:var(--typography-display-3xl-letterSpacing);font-variant-numeric:tabular-nums;margin:0;font-size:clamp(5rem,min(12.5vw,30.6122cqi),11.25rem);line-height:1}.chars{align-items:flex-end;display:inline-flex}.char{height:1em;display:inline-block}.digit{overflow:hidden}.reel{transform:translateY(calc(var(--bd-stat-digit) * -1em));transition:transform var(--transition-duration-slower) var(--transition-easing-smooth);transition-delay:calc(var(--bd-stat-order) * var(--transition-duration-fast));flex-direction:column;display:flex}.reel>span{height:1em}@media (prefers-reduced-motion:reduce){.reel{transition:none}}`;export{t as statCSS,n as statHighlightCSS};
2
2
  //# sourceMappingURL=stat.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stat.css.js","names":["statTileCSS","statHighlightCSS"],"sources":["../../../../src/components/stat/stat.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* A tile on surface/info: the value at display-md, the caption at body-small,\n pinned to the foot. On the info tint the value's text-primary measures\n 16.65:1 and the caption's the same. The tile takes the card corner one step\n up, 3xl, as the design draws it; it is not a card -- it holds no controls\n and no heading, only a figure. */\nexport const statTileCSS = css`\n /* the full cell, both ways, so a row of tiles is one height and one width\n whatever each one holds */\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .tile {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: var(--spacing-12);\n padding: var(--spacing-20);\n text-align: start;\n background: var(--color-surface-info);\n border-radius: var(--shape-radius-3xl);\n }\n\n /* The phone and tablet frames hold the copy 20 in and the caption at least\n 12 under the value; the desktop frame opens both up. */\n @media ${unsafeCSS(above(\"lg\"))} {\n .tile {\n gap: var(--spacing-48);\n padding: var(--spacing-24);\n }\n }\n\n .value,\n .caption {\n margin: 0;\n color: var(--color-text-primary);\n }\n\n .value {\n font-family: var(--typography-display-md-fontFamily);\n font-size: var(--typography-display-md-fontSize);\n font-weight: var(--typography-display-md-fontWeight);\n line-height: var(--typography-display-md-lineHeight);\n letter-spacing: var(--typography-display-md-letterSpacing);\n font-variant-numeric: tabular-nums;\n }\n\n .caption {\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. */\n .caption {\n white-space: pre-line;\n }\n`;\n\n/* The leading figure. Its size is the one value here off the type scale: the\n display family stops at 3xl (128) and the design draws this at 180, as a\n deliberate one-off rather than a role, so it is spelled once, here.\n Each digit is a reel of 0-9 in a one-line window, moved up by its own\n value. */\nexport const statHighlightCSS = css`\n /* The figure is held to the width it is given, so the host is a size\n container and takes its column's whole width: its content gives it none,\n and in a flex column that aligns its items to the start it would measure\n 0 and hold the figure at its floor. The width is the column less the\n host's margins (shared/fill-width.css.ts). */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n .highlight {\n margin: 0;\n text-align: start;\n color: var(--color-text-primary);\n font-family: var(--typography-display-3xl-fontFamily);\n /* no role: every display role is bold, and the design sets this one-off\n figure in IBM Plex Sans Text (450), a cut the system does not ship;\n Regular is the nearest it does */\n font-weight: var(--typography-fontWeight-normal);\n letter-spacing: var(--typography-display-3xl-letterSpacing);\n /* no token: the one-off figure the design sets; the display scale stops\n at 128. The frames scale it with the page, not with its own column --\n 80 on a phone, about 107 in the tablet frame's 656 column, 180 in the\n desktop frame's 588 half-column -- so the viewport stays the measure.\n The column is the cap: never more of it than the desktop frame takes,\n 180 of 588. Uncapped, the story's $1.5B+ ran past its half of the page\n column at 1060-1199 and 1283-1399, where the half holds at 428 and\n 518 while the viewport keeps growing. */\n font-size: clamp(5rem, min(12.5vw, 100cqi * 180 / 588), 11.25rem);\n /* no token: a reel of digits needs a line box exactly one digit tall, so\n the window and the steps the reel moves by are the same length */\n line-height: 1;\n font-variant-numeric: tabular-nums;\n }\n\n .chars {\n display: inline-flex;\n align-items: flex-end;\n }\n\n .char {\n display: inline-block;\n height: 1em;\n }\n\n .digit {\n overflow: hidden;\n }\n\n .reel {\n display: flex;\n flex-direction: column;\n transform: translateY(calc(var(--bd-stat-digit) * -1em));\n transition: transform var(--transition-duration-slower) var(--transition-easing-smooth);\n transition-delay: calc(var(--bd-stat-order) * var(--transition-duration-fast));\n }\n\n .reel > span {\n height: 1em;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .reel {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,gGASA,IAAaA,EAAc,CAAG,4/BAoEjBC,EAAmB,CAAG,0jC"}
1
+ {"version":3,"file":"stat.css.js","names":["statCSS","statHighlightCSS"],"sources":["../../../../src/components/stat/stat.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* bd-stat: a tile on surface/info, the value at display-md and the caption\n at body-small, pinned to the foot. Both are text slots, so the slotted\n words take their role and ink from the box each slot sits in. On the info\n tint the value's text-primary measures 16.65:1 and the caption's the same.\n The tile takes the card corner one step up, 3xl, as the design draws it; it\n is not a card -- it holds no controls and no heading, only a figure. */\nexport const statCSS = css`\n /* the full cell, both ways, so a row of tiles is one height and one width\n whatever each one holds */\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .tile {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: var(--spacing-12);\n padding: var(--spacing-20);\n text-align: start;\n background: var(--color-surface-info);\n border-radius: var(--shape-radius-3xl);\n }\n\n /* A part's box is hidden while its slot is empty; the attribute's selector\n outweighs the display the tile gives its items. */\n .tile > [hidden] {\n display: none;\n }\n\n /* The phone and tablet frames hold the copy 20 in and the caption at least\n 12 under the value; the desktop frame opens both up. */\n @media ${unsafeCSS(above(\"lg\"))} {\n .tile {\n gap: var(--spacing-48);\n padding: var(--spacing-24);\n }\n }\n\n .value,\n .caption {\n margin: 0;\n color: var(--color-text-primary);\n }\n\n .value {\n font-family: var(--typography-display-md-fontFamily);\n font-size: var(--typography-display-md-fontSize);\n font-weight: var(--typography-display-md-fontWeight);\n line-height: var(--typography-display-md-lineHeight);\n letter-spacing: var(--typography-display-md-letterSpacing);\n font-variant-numeric: tabular-nums;\n }\n\n .caption {\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n }\n`;\n\n/* The leading figure. Its size is the one value here off the type scale: the\n display family stops at 3xl (128) and the design draws this at 180, as a\n deliberate one-off rather than a role, so it is spelled once, here.\n Each digit is a reel of 0-9 in a one-line window, moved up by its own\n value. */\nexport const statHighlightCSS = css`\n /* The figure is held to the width it is given, so the host is a size\n container and takes its column's whole width: its content gives it none,\n and in a flex column that aligns its items to the start it would measure\n 0 and hold the figure at its floor. The width is the column less the\n host's margins (shared/fill-width.css.ts). */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n .highlight {\n margin: 0;\n text-align: start;\n color: var(--color-text-primary);\n font-family: var(--typography-display-3xl-fontFamily);\n /* no role: every display role is bold, and the design sets this one-off\n figure in IBM Plex Sans Text (450), a cut the system does not ship;\n Regular is the nearest it does */\n font-weight: var(--typography-fontWeight-normal);\n letter-spacing: var(--typography-display-3xl-letterSpacing);\n /* no token: the one-off figure the design sets; the display scale stops\n at 128. The frames scale it with the page, not with its own column --\n 80 on a phone, about 107 in the tablet frame's 656 column, 180 in the\n desktop frame's 588 half-column -- so the viewport stays the measure.\n The column is the cap: never more of it than the desktop frame takes,\n 180 of 588. Uncapped, the story's $1.5B+ ran past its half of the page\n column at 1060-1199 and 1283-1399, where the half holds at 428 and\n 518 while the viewport keeps growing. */\n font-size: clamp(5rem, min(12.5vw, 100cqi * 180 / 588), 11.25rem);\n /* no token: a reel of digits needs a line box exactly one digit tall, so\n the window and the steps the reel moves by are the same length */\n line-height: 1;\n font-variant-numeric: tabular-nums;\n }\n\n .chars {\n display: inline-flex;\n align-items: flex-end;\n }\n\n .char {\n display: inline-block;\n height: 1em;\n }\n\n .digit {\n overflow: hidden;\n }\n\n .reel {\n display: flex;\n flex-direction: column;\n transform: translateY(calc(var(--bd-stat-digit) * -1em));\n transition: transform var(--transition-duration-slower) var(--transition-easing-smooth);\n transition-delay: calc(var(--bd-stat-order) * var(--transition-duration-fast));\n }\n\n .reel > span {\n height: 1em;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .reel {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,gGAUA,IAAaA,EAAU,CAAG,mgCAkEbC,EAAmB,CAAG,0jC"}
@@ -1,2 +1,42 @@
1
+ import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
1
4
  import "./stat-highlight.js";
2
- import "./stat-tile.js";
5
+ type Part = "value" | "caption";
6
+ /**
7
+ * One figure from the Why-trust stat grid: a display value over a short
8
+ * caption, on surface/info. The caption is pinned to the tile's foot so a row
9
+ * of tiles lines its captions up, whatever each value's length. Drawn in the
10
+ * foundation Figma file as Stat tile.
11
+ *
12
+ * <bd-stat>
13
+ * <span slot="value">580+</span>
14
+ * <span slot="caption">Patents filed, including breakthroughs in machine learning.</span>
15
+ * </bd-stat>
16
+ *
17
+ * It was bd-stat-tile, whose `value` and `caption` were attributes. Both are
18
+ * text slots now, and the stat sets their type and ink; each one's box is
19
+ * hidden while its slot is empty.
20
+ *
21
+ * The value and caption are read as one statement -- "580+ patents filed" --
22
+ * so the stat is a group named by both. Its name is the slotted words
23
+ * themselves (aria-labelledby at the two boxes), unless `label` spells the
24
+ * value out where its short form reads badly aloud ("50 billion plus"): then
25
+ * the name is the label and the caption's text, as 3.x composed it, and the
26
+ * visible parts are hidden from the tree so the figure is not read twice. A
27
+ * name set as a string cannot follow the caption by reference, so the caption
28
+ * is copied, and an edit to it renders the name again.
29
+ */
30
+ export declare class BdStat extends LitElement {
31
+ static styles: import("lit").CSSResult[];
32
+ /** The value spelled out for a screen reader; never shown. */
33
+ label: string;
34
+ _slots: SlotController<Part>;
35
+ render(): import("lit-html").TemplateResult<1>;
36
+ }
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ "bd-stat": BdStat;
40
+ }
41
+ }
42
+ export {};
@@ -1 +1,12 @@
1
- import"./stat-highlight.js";import"./stat-tile.js";
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import{statCSS as r}from"./stat.css.js";import"./stat-highlight.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.label=``,this._slots=new n(this,{slots:[`value`,`caption`],text:[`value`,`caption`]})}static{this.styles=[r]}render(){let e=e=>this._slots.has(e),t=!!this.label,n=[`value`,`caption`].filter(e);return a`
2
+ <div
3
+ class="tile"
4
+ role="group"
5
+ aria-label=${t?`${this.label} ${this._slots.text(`caption`)}`.trim():o}
6
+ aria-labelledby=${!t&&n.length?n.join(` `):o}
7
+ >
8
+ <p class="value" id="value" aria-hidden=${t?`true`:o} ?hidden=${!e(`value`)}><slot name="value"></slot></p>
9
+ <p class="caption" id="caption" aria-hidden=${t?`true`:o} ?hidden=${!e(`caption`)}><slot name="caption"></slot></p>
10
+ </div>
11
+ `}};t([s({type:String,attribute:`label`})],c.prototype,`label`,void 0),c=t([e(`bd-stat`)],c);export{c as BdStat};
12
+ //# sourceMappingURL=stat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stat.js","names":["_decorate","__decorate","BdStat","LitElement","_args","SlotController","statCSS","has","part","spelled","parts","nothing","property","defineElement"],"sources":["../../../../src/components/stat/stat.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\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/* The ./stat export registers both figures: this one, and the oversized\n figure a section leads with. */\nimport \"./stat-highlight.ts\";\nimport { statCSS } from \"./stat.css.ts\";\n\ntype Part = \"value\" | \"caption\";\n\n/**\n * One figure from the Why-trust stat grid: a display value over a short\n * caption, on surface/info. The caption is pinned to the tile's foot so a row\n * of tiles lines its captions up, whatever each value's length. Drawn in the\n * foundation Figma file as Stat tile.\n *\n * <bd-stat>\n * <span slot=\"value\">580+</span>\n * <span slot=\"caption\">Patents filed, including breakthroughs in machine learning.</span>\n * </bd-stat>\n *\n * It was bd-stat-tile, whose `value` and `caption` were attributes. Both are\n * text slots now, and the stat sets their type and ink; each one's box is\n * hidden while its slot is empty.\n *\n * The value and caption are read as one statement -- \"580+ patents filed\" --\n * so the stat is a group named by both. Its name is the slotted words\n * themselves (aria-labelledby at the two boxes), unless `label` spells the\n * value out where its short form reads badly aloud (\"50 billion plus\"): then\n * the name is the label and the caption's text, as 3.x composed it, and the\n * visible parts are hidden from the tree so the figure is not read twice. A\n * name set as a string cannot follow the caption by reference, so the caption\n * is copied, and an edit to it renders the name again.\n */\n@defineElement(\"bd-stat\")\nexport class BdStat extends LitElement {\n static styles = [statCSS];\n\n /** The value spelled out for a screen reader; never shown. */\n @property({ type: String, attribute: \"label\" })\n label = \"\";\n\n _slots = new SlotController<Part>(this, { slots: [\"value\", \"caption\"], text: [\"value\", \"caption\"] });\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n const spelled = !!this.label;\n const parts = ([\"value\", \"caption\"] as const).filter(has);\n return html`\n <div\n class=\"tile\"\n role=\"group\"\n aria-label=${spelled ? `${this.label} ${this._slots.text(\"caption\")}`.trim() : nothing}\n aria-labelledby=${!spelled && parts.length ? parts.join(\" \") : nothing}\n >\n <p class=\"value\" id=\"value\" aria-hidden=${spelled ? \"true\" : nothing} ?hidden=${!has(\"value\")}><slot name=\"value\"></slot></p>\n <p class=\"caption\" id=\"caption\" aria-hidden=${spelled ? \"true\" : nothing} ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-stat\": BdStat;\n }\n}\n"],"mappings":"A,4YAsCO,IAAME,EAAN,cAAqBC,CAAW,C,8BAK7B,KAAA,MAAA,GAEC,KAAA,OAAA,IAAIE,EAAqB,KAAM,CAAE,MAAO,CAAC,QAAS,SAAS,EAAG,KAAM,CAAC,QAAS,SAAS,CAAE,CAAC,C,QANnF,KAAA,OAAA,CAACC,CAAO,C,CAQxB,QAAS,CACP,IAAMC,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAU,CAAC,CAAC,KAAK,MACjBC,EAAS,CAAC,QAAS,SAAS,CAAC,CAAW,OAAOH,CAAG,EACxD,MAAO,EAAI;;;;qBAIME,EAAU,GAAG,KAAK,MAAM,GAAG,KAAK,OAAO,KAAK,SAAS,IAAI,KAAK,EAAIE,EAAQ;0BACrE,CAACF,GAAWC,EAAM,OAASA,EAAM,KAAK,GAAG,EAAIC,EAAQ;;kDAE7BF,EAAU,OAASE,EAAQ,WAAW,CAACJ,EAAI,OAAO,EAAE;sDAChDE,EAAU,OAASE,EAAQ,WAAW,CAACJ,EAAI,SAAS,EAAE;;KAG1G,CACF,EArBGP,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,UAAW,OAAQ,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAL/C,EAAAF,EAAA,CAAAa,EAAc,SAAS,CAAA,EAAAX,CAAA,E"}
@@ -1,2 +1,2 @@
1
- import{css as e}from"lit";var t=e`:host{display:inline-flex}label{align-items:center;gap:var(--spacing-8);padding:var(--spacing-2);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-small-fontSize);line-height:var(--typography-body-small-lineHeight);color:var(--color-text-primary);cursor:pointer;outline:none;display:inline-flex}input{clip-path:inset(50%);width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.track{width:var(--dimension-40);height:var(--dimension-24);background:var(--color-border-default);border-radius:var(--radius-full);transition:background-color var(--transition-duration-normal) var(--transition-easing-smooth);--bd-switch-inset:calc((var(--dimension-24) - var(--dimension-20)) / 2);--bd-switch-travel:calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));flex:none;position:relative}.thumb{--_dir:1;top:var(--bd-switch-inset);width:var(--dimension-20);height:var(--dimension-20);background:var(--color-action-on-fill);border-radius:var(--radius-full);box-shadow:var(--shadow-sm);transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);position:absolute;inset-inline-start:var(--bd-switch-inset)}:host([checked]) .track{background:var(--color-action-primary)}label:hover .track{background:var(--color-neutral-500)}:host([checked]) label:hover .track{background:var(--color-action-primary-hover)}:host(:dir(rtl)) .thumb{--_dir:-1}:host([checked]) .thumb{transform:translateX(calc(var(--_dir) * var(--bd-switch-travel)));background:var(--color-brand-on-fill)}label:has(input:focus-visible){box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);border-radius:var(--focus-outline-radius)}:host(:disabled) label{cursor:not-allowed;color:var(--color-text-subtle)}:host(:disabled) label:hover .track,:host(:disabled) .track{background:var(--color-border-subtle)}@media (prefers-reduced-motion:reduce){.track,.thumb{transition:none}}@media (forced-colors:active){.track,.thumb{forced-color-adjust:none}.track,label:hover .track{outline:var(--border-width-1) solid CanvasText;outline-offset:calc(-1 * var(--border-width-1));background:canvas}.thumb{box-shadow:none;background:canvastext}:host([checked]) .track,:host([checked]) label:hover .track{background:highlight;outline-color:highlight}:host([checked]) .thumb{background:highlighttext}:host(:disabled) .track,:host(:disabled) label:hover .track{background:canvas;outline-color:graytext}:host(:disabled) .thumb{background:graytext}}`;export{t as default,t as switchCSS};
1
+ import{css as e}from"lit";var t=e`:host{display:inline-flex}label{align-items:center;gap:var(--spacing-8);padding:var(--spacing-2);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-small-fontSize);line-height:var(--typography-body-small-lineHeight);color:var(--color-text-primary);cursor:pointer;outline:none;display:inline-flex}input{clip-path:inset(50%);width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.track{width:var(--dimension-40);height:var(--dimension-24);background:var(--color-border-default);border-radius:var(--radius-full);transition:background-color var(--transition-duration-normal) var(--transition-easing-smooth);--bd-switch-inset:calc((var(--dimension-24) - var(--dimension-20)) / 2);--bd-switch-travel:calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));flex:none;position:relative}.thumb{--_dir:1;top:var(--bd-switch-inset);width:var(--dimension-20);height:var(--dimension-20);background:var(--color-action-on-fill);border-radius:var(--radius-full);box-shadow:var(--shadow-sm);transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);position:absolute;inset-inline-start:var(--bd-switch-inset)}:host([checked]) .track{background:var(--color-action-primary)}label:hover .track{background:color-mix(in srgb, var(--color-border-default), var(--color-text-primary) 25%)}:host([checked]) label:hover .track{background:var(--color-action-primary-hover)}:host(:dir(rtl)) .thumb{--_dir:-1}:host([checked]) .thumb{transform:translateX(calc(var(--_dir) * var(--bd-switch-travel)));background:var(--color-brand-on-fill)}label:has(input:focus-visible){box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);border-radius:var(--focus-outline-radius)}:host(:disabled) label{cursor:not-allowed;color:var(--color-text-subtle)}:host(:disabled) label:hover .track,:host(:disabled) .track{background:var(--color-border-subtle)}@media (prefers-reduced-motion:reduce){.track,.thumb{transition:none}}@media (forced-colors:active){.track,.thumb{forced-color-adjust:none}.track,label:hover .track{outline:var(--border-width-1) solid CanvasText;outline-offset:calc(-1 * var(--border-width-1));background:canvas}.thumb{box-shadow:none;background:canvastext}:host([checked]) .track,:host([checked]) label:hover .track{background:highlight;outline-color:highlight}:host([checked]) .thumb{background:highlighttext}:host(:disabled) .track,:host(:disabled) label:hover .track{background:canvas;outline-color:graytext}:host(:disabled) .thumb{background:graytext}}`;export{t as default,t as switchCSS};
2
2
  //# sourceMappingURL=switch.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.css.js","names":["switchCSS"],"sources":["../../../../src/components/switch/switch.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const switchCSS = css`\n :host { display: inline-flex; }\n\n /* The row is the control, matching bd-checkbox and bd-radio: same gap, same\n padding, same type, same inherited weight. This was the label-default\n weight (medium) where those two inherit normal, so a switch label sat\n bolder than a checkbox label on the same line of the same form.\n\n Padding rather than a min-height, so the focus ring below insets evenly on\n all four sides. */\n label {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-8);\n padding: var(--spacing-2);\n font-family: var(--typography-fontFamily-sans);\n /* body-small: sm / normal / 1.5, which is what this already rendered on all\n three axes. Only the axes this rule declares are adopted -- the role also\n carries a family and a tracking, and importing those would change text\n the rule never spoke for. */\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n cursor: pointer;\n outline: none;\n }\n\n /* the real control stays in the accessibility tree */\n input {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, not a border. It was\n spelled --border-width-1, which resolves to the same pixel and reads as\n a category error — the lint already sanctions the literal here, as it\n does the -1px below. */\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n }\n\n /* neutral-400, not neutral-300: off is a state the user has to be able to\n perceive, so 1.4.11 wants 3:1 against the page. neutral-300 measured 2.27\n and neutral-400 measures 3.23 — the same step bd-custom-input already uses\n for the edge of a control. It is also the boundary the white thumb is read\n against, which was failing for the same reason.\n The disabled track below stays lighter; disabled is exempt under 1.4.3. */\n .track {\n position: relative;\n width: var(--dimension-40);\n height: var(--dimension-24);\n background: var(--color-border-default);\n border-radius: var(--radius-full);\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth);\n flex: none;\n }\n\n /* The thumb's inset and travel are derived from the two boxes they sit\n between, in px like those boxes. They were --spacing-2 and --spacing-16,\n which are rem, inside a track that is --dimension-* and so is not: at a\n 24px root the thumb rode 3px in and travelled 24px, and finished at 47px\n in a 40px track. A knob has to stay on the track it belongs to at any text\n size, so all four lengths are now one unit. Inset is half the height left\n over; travel is the width left over after both insets: 2px and 16px. */\n .track {\n --bd-switch-inset: calc((var(--dimension-24) - var(--dimension-20)) / 2);\n --bd-switch-travel: calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));\n }\n\n /* The thumb starts at the inline start and travels toward the end, so on a\n right-to-left page off is on the right, as a native switch draws it.\n --_dir turns the travel round, the multiplier bd-pagination-dots uses for\n its fill. */\n .thumb {\n --_dir: 1;\n position: absolute;\n top: var(--bd-switch-inset);\n inset-inline-start: var(--bd-switch-inset);\n width: var(--dimension-20);\n height: var(--dimension-20);\n /* the knob on the track, white on both tracks: --color-action-on-fill,\n like the checkbox mark, not the page colour it happens to equal here */\n background: var(--color-action-on-fill);\n border-radius: var(--radius-full);\n box-shadow: var(--shadow-sm);\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n :host([checked]) .track { background: var(--color-action-primary); }\n\n /* The off track is --color-border-default and this is one step darker. The\n border roles name no hover step — this is the only track in the system\n that hovers — so the primitive stands rather than a text role being\n borrowed for a background or a role being invented for one consumer.\n If a second component ever needs it, that is when it earns a name. */\n label:hover .track { background: var(--color-neutral-500); }\n :host([checked]) label:hover .track { background: var(--color-action-primary-hover); }\n :host(:dir(rtl)) .thumb { --_dir: -1; }\n :host([checked]) .thumb { transform: translateX(calc(var(--_dir) * var(--bd-switch-travel))); }\n /* On the checked track the thumb sits on the brand fill, so it takes the\n brand's ink; on the off track it stays white, the foundation's own pair. */\n :host([checked]) .thumb { background: var(--color-brand-on-fill); }\n\n /* the one focus ring — see Foundations/Focus. On the row rather than the\n track, so the target and the indicator are the same shape here as on\n bd-checkbox and bd-radio. */\n label:has(input:focus-visible) {\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n border-radius: var(--focus-outline-radius);\n }\n\n /* :disabled rather than [disabled], so a <fieldset disabled> around the\n switch greys it too: a form-associated element matches :disabled for\n both. */\n :host(:disabled) label { cursor: not-allowed; color: var(--color-text-subtle); }\n :host(:disabled) label:hover .track,\n :host(:disabled) .track { background: var(--color-border-subtle); }\n\n @media (prefers-reduced-motion: reduce) {\n .track, .thumb { transition: none; }\n }\n\n /* Forced colours repaint every background as Canvas, so the track and the\n thumb both vanished there, on and off alike, and only the label was left.\n The two opt out and state system colours, as bd-progress does: off is a\n CanvasText ring round a CanvasText knob, on is a Highlight track with a\n HighlightText knob -- the pair a forced palette keeps apart for a\n selected thing -- and disabled is GrayText. The ring is an outline drawn\n inward, not a border, so the thumb's inset and travel are untouched. The\n hover selectors are repeated because they outrank these, and the knob's\n shadow goes because opting out would otherwise paint it. */\n @media (forced-colors: active) {\n .track,\n .thumb {\n forced-color-adjust: none;\n }\n\n .track,\n label:hover .track {\n background: Canvas;\n outline: var(--border-width-1) solid CanvasText;\n outline-offset: calc(-1 * var(--border-width-1));\n }\n\n .thumb {\n background: CanvasText;\n box-shadow: none;\n }\n\n :host([checked]) .track,\n :host([checked]) label:hover .track {\n background: Highlight;\n outline-color: Highlight;\n }\n\n :host([checked]) .thumb { background: HighlightText; }\n\n :host(:disabled) .track,\n :host(:disabled) label:hover .track {\n background: Canvas;\n outline-color: GrayText;\n }\n\n :host(:disabled) .thumb { background: GrayText; }\n }\n`;\n\nexport default switchCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAY,CAAG,g/E"}
1
+ {"version":3,"file":"switch.css.js","names":["switchCSS"],"sources":["../../../../src/components/switch/switch.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const switchCSS = css`\n :host { display: inline-flex; }\n\n /* The row is the control, matching bd-checkbox and bd-radio: same gap, same\n padding, same type, same inherited weight. This was the label-default\n weight (medium) where those two inherit normal, so a switch label sat\n bolder than a checkbox label on the same line of the same form.\n\n Padding rather than a min-height, so the focus ring below insets evenly on\n all four sides. */\n label {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-8);\n padding: var(--spacing-2);\n font-family: var(--typography-fontFamily-sans);\n /* body-small: sm / normal / 1.5, which is what this already rendered on all\n three axes. Only the axes this rule declares are adopted -- the role also\n carries a family and a tracking, and importing those would change text\n the rule never spoke for. */\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n cursor: pointer;\n outline: none;\n }\n\n /* the real control stays in the accessibility tree */\n input {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, not a border. It was\n spelled --border-width-1, which resolves to the same pixel and reads as\n a category error — the lint already sanctions the literal here, as it\n does the -1px below. */\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n }\n\n /* neutral-400, not neutral-300: off is a state the user has to be able to\n perceive, so 1.4.11 wants 3:1 against the page. neutral-300 measured 2.27\n and neutral-400 measures 3.23 — the same step bd-input already uses\n for the edge of a control. It is also the boundary the white thumb is read\n against, which was failing for the same reason.\n The disabled track below stays lighter; disabled is exempt under 1.4.3. */\n .track {\n position: relative;\n width: var(--dimension-40);\n height: var(--dimension-24);\n background: var(--color-border-default);\n border-radius: var(--radius-full);\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth);\n flex: none;\n }\n\n /* The thumb's inset and travel are derived from the two boxes they sit\n between, in px like those boxes. They were --spacing-2 and --spacing-16,\n which are rem, inside a track that is --dimension-* and so is not: at a\n 24px root the thumb rode 3px in and travelled 24px, and finished at 47px\n in a 40px track. A knob has to stay on the track it belongs to at any text\n size, so all four lengths are now one unit. Inset is half the height left\n over; travel is the width left over after both insets: 2px and 16px. */\n .track {\n --bd-switch-inset: calc((var(--dimension-24) - var(--dimension-20)) / 2);\n --bd-switch-travel: calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));\n }\n\n /* The thumb starts at the inline start and travels toward the end, so on a\n right-to-left page off is on the right, as a native switch draws it.\n --_dir turns the travel round, the multiplier bd-pagination-dots uses for\n its fill. */\n .thumb {\n --_dir: 1;\n position: absolute;\n top: var(--bd-switch-inset);\n inset-inline-start: var(--bd-switch-inset);\n width: var(--dimension-20);\n height: var(--dimension-20);\n /* the knob on the track, white on both tracks: --color-action-on-fill,\n like the checkbox mark, not the page colour it happens to equal here */\n background: var(--color-action-on-fill);\n border-radius: var(--radius-full);\n box-shadow: var(--shadow-sm);\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n :host([checked]) .track { background: var(--color-action-primary); }\n\n /* The off track is --color-border-default, and its hover moves a quarter of\n the way toward the primary ink: neutral-500 in light (#6b727a, where the\n step it replaced is #6a737e), and one step lighter than the track on a\n dark page, where neutral-500 was the track itself and the hover showed\n nothing. The border roles name no hover step -- this is the only track\n that hovers -- so it is written from the two roles, not a new one. */\n label:hover .track { background: color-mix(in srgb, var(--color-border-default), var(--color-text-primary) 25%); }\n :host([checked]) label:hover .track { background: var(--color-action-primary-hover); }\n :host(:dir(rtl)) .thumb { --_dir: -1; }\n :host([checked]) .thumb { transform: translateX(calc(var(--_dir) * var(--bd-switch-travel))); }\n /* On the checked track the thumb sits on the brand fill, so it takes the\n brand's ink; on the off track it stays white, the foundation's own pair. */\n :host([checked]) .thumb { background: var(--color-brand-on-fill); }\n\n /* the one focus ring — see Foundations/Focus. On the row rather than the\n track, so the target and the indicator are the same shape here as on\n bd-checkbox and bd-radio. */\n label:has(input:focus-visible) {\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n border-radius: var(--focus-outline-radius);\n }\n\n /* :disabled rather than [disabled], so a <fieldset disabled> around the\n switch greys it too: a form-associated element matches :disabled for\n both. */\n :host(:disabled) label { cursor: not-allowed; color: var(--color-text-subtle); }\n :host(:disabled) label:hover .track,\n :host(:disabled) .track { background: var(--color-border-subtle); }\n\n @media (prefers-reduced-motion: reduce) {\n .track, .thumb { transition: none; }\n }\n\n /* Forced colours repaint every background as Canvas, so the track and the\n thumb both vanished there, on and off alike, and only the label was left.\n The two opt out and state system colours, as bd-progress does: off is a\n CanvasText ring round a CanvasText knob, on is a Highlight track with a\n HighlightText knob -- the pair a forced palette keeps apart for a\n selected thing -- and disabled is GrayText. The ring is an outline drawn\n inward, not a border, so the thumb's inset and travel are untouched. The\n hover selectors are repeated because they outrank these, and the knob's\n shadow goes because opting out would otherwise paint it. */\n @media (forced-colors: active) {\n .track,\n .thumb {\n forced-color-adjust: none;\n }\n\n .track,\n label:hover .track {\n background: Canvas;\n outline: var(--border-width-1) solid CanvasText;\n outline-offset: calc(-1 * var(--border-width-1));\n }\n\n .thumb {\n background: CanvasText;\n box-shadow: none;\n }\n\n :host([checked]) .track,\n :host([checked]) label:hover .track {\n background: Highlight;\n outline-color: Highlight;\n }\n\n :host([checked]) .thumb { background: HighlightText; }\n\n :host(:disabled) .track,\n :host(:disabled) label:hover .track {\n background: Canvas;\n outline-color: GrayText;\n }\n\n :host(:disabled) .thumb { background: GrayText; }\n }\n`;\n\nexport default switchCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAY,CAAG,siF"}
@@ -1,18 +1,26 @@
1
1
  import { LitElement } from "lit";
2
- import "../shared/events.js";
3
2
  import "../../tokens/tokens.js";
3
+ import { SlotController } from "../shared/controller.slot.js";
4
4
  declare const BdSwitch_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
5
+ /**
6
+ * Turns something on or off, taking effect at once.
7
+ *
8
+ * <bd-switch name="alerts" checked><span slot="label">Scam alerts</span></bd-switch>
9
+ *
10
+ * A native checkbox with role="switch", inside a <label> that holds the page's
11
+ * `label` slot, so the slotted words are the switch's name.
12
+ */
5
13
  export declare class BdSwitch extends BdSwitch_base {
6
14
  static styles: import("lit").CSSResult[];
7
15
  checked: boolean;
8
16
  disabled: boolean;
9
- label: string;
10
17
  name?: string;
11
18
  value: string;
12
19
  required: boolean;
13
20
  _defaults?: {
14
21
  checked: boolean;
15
22
  };
23
+ protected _slots: SlotController<"label">;
16
24
  connectedCallback(): void;
17
25
  protected get _control(): HTMLInputElement | null;
18
26
  protected _activate(): void;
@@ -1,4 +1,4 @@
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{FormControl as n,omitEmpty as r}from"../shared/form-control.js";import i from"./switch.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends n(a){constructor(...e){super(...e),this.checked=!1,this.disabled=!1,this.label=``,this.value=``,this.required=!1}static{this.styles=[i]}connectedCallback(){super.connectedCallback(),this._defaults??={checked:this.checked}}get _control(){return this.renderRoot?.querySelector?.(`input`)}_activate(){this._control?.click()}updated(){this._internals.setFormValue(this.checked?this.value||`on`:null,String(this.checked)),this._mirrorValidity(this._control)}formResetCallback(){super.formResetCallback(),this._defaults&&(this.checked=this._defaults.checked)}formStateRestoreCallback(e){this.checked=e===`true`}_onKeydown(e){e.key===`Enter`&&(e.preventDefault(),this._submitImplicitly())}render(){return o`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import{FormControl as r,omitEmpty as i}from"../shared/form-control.js";import a from"./switch.css.js";import{LitElement as o,html as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends r(o){constructor(...e){super(...e),this.checked=!1,this.disabled=!1,this.value=``,this.required=!1,this._slots=new n(this,{slots:[`label`]})}static{this.styles=[a]}connectedCallback(){super.connectedCallback(),this._defaults??={checked:this.checked}}get _control(){return this.renderRoot?.querySelector?.(`input`)}_activate(){this._control?.click()}updated(){this._internals.setFormValue(this.checked?this.value||`on`:null,String(this.checked)),this._mirrorValidity(this._control)}formResetCallback(){super.formResetCallback(),this._defaults&&(this.checked=this._defaults.checked)}formStateRestoreCallback(e){this.checked=e===`true`}_onKeydown(e){e.key===`Enter`&&(e.preventDefault(),this._submitImplicitly())}render(){return s`
2
2
  <label>
3
3
  <input
4
4
  type="checkbox"
@@ -7,10 +7,11 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
7
7
  ?disabled=${this.disabled||this._formDisabled}
8
8
  ?required=${this.required}
9
9
  @keydown=${this._onKeydown}
10
- @change=${e=>{this.checked=e.target.checked,this.dispatchEvent(new CustomEvent(`bd-change`,{detail:this.checked,bubbles:!0,composed:!0}))}}
10
+ @input=${e=>{this.checked=e.target.checked}}
11
+ @change=${e=>{this.checked=e.target.checked,this._relayChange()}}
11
12
  />
12
13
  <span class="track"><span class="thumb"></span></span>
13
- <span>${this.label}<slot></slot></span>
14
+ <span class="label" part="label" ?hidden=${!this._slots.has(`label`)}><slot name="label"></slot></span>
14
15
  </label>
15
- `}};t([s({type:Boolean,reflect:!0})],c.prototype,`checked`,void 0),t([s({type:Boolean,reflect:!0})],c.prototype,`disabled`,void 0),t([s({type:String})],c.prototype,`label`,void 0),t([s({type:String,reflect:!0,converter:r})],c.prototype,`name`,void 0),t([s({type:String})],c.prototype,`value`,void 0),t([s({type:Boolean})],c.prototype,`required`,void 0),c=t([e(`bd-switch`)],c);export{c as BdSwitch};
16
+ `}};t([c({type:Boolean,reflect:!0})],l.prototype,`checked`,void 0),t([c({type:Boolean,reflect:!0})],l.prototype,`disabled`,void 0),t([c({type:String,reflect:!0,converter:i})],l.prototype,`name`,void 0),t([c({type:String})],l.prototype,`value`,void 0),t([c({type:Boolean})],l.prototype,`required`,void 0),l=t([e(`bd-switch`)],l);export{l as BdSwitch};
16
17
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","names":["_decorate","__decorate","switchCSS","BdSwitch","FormControl","LitElement","_args","state","property","omitEmpty","defineElement"],"sources":["../../../../src/components/switch/switch.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport '#shared/events.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { switchCSS } from './switch.css.ts';\nimport { FormControl, omitEmpty } from '#shared/form-control.ts';\n\n@defineElement('bd-switch')\nexport class BdSwitch extends FormControl(LitElement) {\n static styles = [switchCSS];\n\n @property({ type: Boolean, reflect: true })\n checked = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: String })\n label = '';\n /* It always had a name and rendered it on the native input, where it did\n nothing: that input is in a shadow root and has no form. The host is\n what a form reads now, so the name reflects onto it -- see\n shared/form-control.ts. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name?: string;\n @property({ type: String })\n value = '';\n @property({ type: Boolean })\n required = false;\n\n _defaults?: { checked: boolean };\n\n connectedCallback() {\n super.connectedCallback();\n // what reset returns to, as in bd-checkbox: checked reflects, so the\n // attribute cannot hold the default\n this._defaults ??= { checked: this.checked };\n }\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.('input');\n }\n\n // a native switch toggles when its label is clicked, or on el.click()\n protected _activate() {\n this._control?.click();\n }\n\n updated() {\n // with no value it submits \"on\", as the native checkbox under it would\n this._internals.setFormValue(this.checked ? this.value || 'on' : null, String(this.checked));\n this._mirrorValidity(this._control);\n }\n\n formResetCallback() {\n super.formResetCallback();\n // never connected, it has no default yet and keeps what it holds, as in\n // bd-checkbox\n if (!this._defaults) return;\n this.checked = this._defaults.checked;\n }\n\n formStateRestoreCallback(state: string | File | FormData | null) {\n this.checked = state === 'true';\n }\n\n // Enter submits the form, as from the native checkbox under it; Space toggles\n _onKeydown(e: KeyboardEvent) {\n if (e.key !== 'Enter') return;\n e.preventDefault();\n this._submitImplicitly();\n }\n\n render() {\n return html`\n <label>\n <input\n type=\"checkbox\"\n role=\"switch\"\n .checked=${this.checked}\n ?disabled=${this.disabled || this._formDisabled}\n ?required=${this.required}\n @keydown=${this._onKeydown}\n @change=${(e: Event & { target: HTMLInputElement }) => {\n this.checked = e.target.checked;\n // bubbles and composed, as every sibling form atom's event is: with\n // neither, it reached a listener on the switch and nothing above\n // it, so a form wrapper delegating bd-change heard nothing\n this.dispatchEvent(new CustomEvent('bd-change', {\n detail : this.checked,\n bubbles : true,\n composed: true\n }));\n }}\n />\n <span class=\"track\"><span class=\"thumb\"></span></span>\n <span>${this.label}<slot></slot></span>\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-switch': BdSwitch;\n }\n}\n"],"mappings":"A,mWAUO,IAAMG,EAAN,cAAuBC,EAAYC,CAAU,CAAC,AAAC,C,8BAI1C,KAAA,QAAA,GAEC,KAAA,SAAA,GAEH,KAAA,MAAA,GAQA,KAAA,MAAA,GAEG,KAAA,SAAA,E,QAjBK,KAAA,OAAA,CAACH,CAAS,C,CAqB1B,mBAAoB,CAClB,MAAM,kBAAkB,EAGxB,KAAK,YAAc,CAAE,QAAS,KAAK,OAAQ,CAC7C,CAEA,IAAc,UAAoC,CAChD,OAAO,KAAK,YAAY,gBAAgB,OAAO,CACjD,CAGA,WAAsB,CACpB,KAAK,UAAU,MAAM,CACvB,CAEA,SAAU,CAER,KAAK,WAAW,aAAa,KAAK,QAAU,KAAK,OAAS,KAAO,KAAM,OAAO,KAAK,OAAO,CAAC,EAC3F,KAAK,gBAAgB,KAAK,QAAQ,CACpC,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EAGnB,KAAK,YACV,KAAK,QAAU,KAAK,UAAU,QAChC,CAEA,yBAAyB,EAAwC,CAC/D,KAAK,QAAUK,IAAU,MAC3B,CAGA,WAAW,EAAkB,CACvB,EAAE,MAAQ,UACd,EAAE,eAAe,EACjB,KAAK,kBAAkB,EACzB,CAEA,QAAS,CACP,MAAO,EAAI;;;;;qBAKM,KAAK,QAAQ;sBACZ,KAAK,UAAY,KAAK,cAAc;sBACpC,KAAK,SAAS;qBACf,KAAK,WAAW;oBAChB,GAA4C,CACrD,KAAK,QAAU,EAAE,OAAO,QAIxB,KAAK,cAAc,IAAI,YAAY,YAAa,CAC9C,OAAU,KAAK,QACf,QAAU,GACV,SAAU,EACZ,CAAC,CAAC,CACJ,EAAE;;;gBAGI,KAAK,MAAM;;KAGzB,CACF,EAvFGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzCH,EAAA,CAAAQ,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,WAAA,IAAA,EAAA,EAEzCH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAMzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAWC,CAAU,CAAC,CAAA,EAAAN,EAAA,UAAA,OAAA,IAAA,EAAA,EAE9DH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,WAAA,IAAA,EAAA,EAlB5B,EAAAH,EAAA,CAAAU,EAAc,WAAW,CAAA,EAAAP,CAAA,E"}
1
+ {"version":3,"file":"switch.js","names":["_decorate","__decorate","switchCSS","BdSwitch","FormControl","LitElement","_args","SlotController","state","property","omitEmpty","defineElement"],"sources":["../../../../src/components/switch/switch.ts"],"sourcesContent":["import { LitElement, 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';\nimport { switchCSS } from './switch.css.ts';\nimport { FormControl, omitEmpty } from '#shared/form-control.ts';\nimport { SlotController } from '#shared/controller.slot.ts';\n\n/**\n * Turns something on or off, taking effect at once.\n *\n * <bd-switch name=\"alerts\" checked><span slot=\"label\">Scam alerts</span></bd-switch>\n *\n * A native checkbox with role=\"switch\", inside a <label> that holds the page's\n * `label` slot, so the slotted words are the switch's name.\n */\n@defineElement('bd-switch')\nexport class BdSwitch extends FormControl(LitElement) {\n static styles = [switchCSS];\n\n @property({ type: Boolean, reflect: true })\n checked = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* It always had a name and rendered it on the native input, where it did\n nothing: that input is in a shadow root and has no form. The host is\n what a form reads now, so the name reflects onto it -- see\n shared/form-control.ts. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name?: string;\n @property({ type: String })\n value = '';\n @property({ type: Boolean })\n required = false;\n\n _defaults?: { checked: boolean };\n protected _slots = new SlotController(this, { slots: ['label'] });\n\n connectedCallback() {\n super.connectedCallback();\n // what reset returns to, as in bd-checkbox: checked reflects, so the\n // attribute cannot hold the default\n this._defaults ??= { checked: this.checked };\n }\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.('input');\n }\n\n // a native switch toggles when its label is clicked, or on el.click()\n protected _activate() {\n this._control?.click();\n }\n\n updated() {\n // with no value it submits \"on\", as the native checkbox under it would\n this._internals.setFormValue(this.checked ? this.value || 'on' : null, String(this.checked));\n this._mirrorValidity(this._control);\n }\n\n formResetCallback() {\n super.formResetCallback();\n // never connected, it has no default yet and keeps what it holds, as in\n // bd-checkbox\n if (!this._defaults) return;\n this.checked = this._defaults.checked;\n }\n\n formStateRestoreCallback(state: string | File | FormData | null) {\n this.checked = state === 'true';\n }\n\n // Enter submits the form, as from the native checkbox under it; Space toggles\n _onKeydown(e: KeyboardEvent) {\n if (e.key !== 'Enter') return;\n e.preventDefault();\n this._submitImplicitly();\n }\n\n render() {\n return html`\n <label>\n <input\n type=\"checkbox\"\n role=\"switch\"\n .checked=${this.checked}\n ?disabled=${this.disabled || this._formDisabled}\n ?required=${this.required}\n @keydown=${this._onKeydown}\n @input=${(e: Event & { target: HTMLInputElement }) => {\n /* the native input leaves the shadow root by itself, and this\n runs on the native control before the page hears it, so\n event.target.checked is already the new state */\n this.checked = e.target.checked;\n }}\n @change=${(e: Event & { target: HTMLInputElement }) => {\n this.checked = e.target.checked;\n /* the native change, sent again from the host: it does not leave\n the shadow root on its own, and input does (shared/form-control.ts).\n 3.x sent bd-change with the boolean as detail; a listener reads\n event.target.checked now. */\n this._relayChange();\n }}\n />\n <span class=\"track\"><span class=\"thumb\"></span></span>\n <span class=\"label\" part=\"label\" ?hidden=${!this._slots.has('label')}><slot name=\"label\"></slot></span>\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-switch': BdSwitch;\n }\n}\n"],"mappings":"A,iaAkBO,IAAMG,EAAN,cAAuBC,EAAYC,CAAU,CAAC,AAAC,C,8BAI1C,KAAA,QAAA,GAEC,KAAA,SAAA,GAQH,KAAA,MAAA,GAEG,KAAA,SAAA,GAGQ,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAO,CAAE,CAAC,C,QAlBhD,KAAA,OAAA,CAACL,CAAS,C,CAoB1B,mBAAoB,CAClB,MAAM,kBAAkB,EAGxB,KAAK,YAAc,CAAE,QAAS,KAAK,OAAQ,CAC7C,CAEA,IAAc,UAAoC,CAChD,OAAO,KAAK,YAAY,gBAAgB,OAAO,CACjD,CAGA,WAAsB,CACpB,KAAK,UAAU,MAAM,CACvB,CAEA,SAAU,CAER,KAAK,WAAW,aAAa,KAAK,QAAU,KAAK,OAAS,KAAO,KAAM,OAAO,KAAK,OAAO,CAAC,EAC3F,KAAK,gBAAgB,KAAK,QAAQ,CACpC,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EAGnB,KAAK,YACV,KAAK,QAAU,KAAK,UAAU,QAChC,CAEA,yBAAyB,EAAwC,CAC/D,KAAK,QAAUM,IAAU,MAC3B,CAGA,WAAW,EAAkB,CACvB,EAAE,MAAQ,UACd,EAAE,eAAe,EACjB,KAAK,kBAAkB,EACzB,CAEA,QAAS,CACP,MAAO,EAAI;;;;;qBAKM,KAAK,QAAQ;sBACZ,KAAK,UAAY,KAAK,cAAc;sBACpC,KAAK,SAAS;qBACf,KAAK,WAAW;mBACjB,GAA4C,CAIpD,KAAK,QAAU,EAAE,OAAO,OAC1B,EAAE;oBACS,GAA4C,CACrD,KAAK,QAAU,EAAE,OAAO,QAKxB,KAAK,aAAa,CACpB,EAAE;;;mDAGuC,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;;KAG3E,CACF,EAzFGR,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAN,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzCH,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAMzCH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAWC,CAAU,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAE9DH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAhB5B,EAAAH,EAAA,CAAAW,EAAc,WAAW,CAAA,EAAAR,CAAA,E"}
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);--bd-features-padding-bottom:0;display:block}:host([hidden]){display:none}:host([background=tint]){background:var(--status-brand-surface);--bd-features-padding-bottom:var(--spacing-32)}.root{box-sizing:border-box;flex-direction:column;align-items:center;display:flex}.title[hidden],.description[hidden]{display:none}.title{margin:var(--spacing-24);box-sizing:border-box;text-align:center;max-width:820px}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);margin:0}.description{box-sizing:border-box;margin:var(--spacing-32) var(--spacing-24);text-align:center;max-width:780px}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing)}.tablist{margin:var(--spacing-24);border-bottom:var(--border-width-1) solid var(--bd-tab-border-color,var(--color-border-container));flex-wrap:wrap;justify-content:center;display:inline-flex}:host([appearance=switcher]) .tablist{gap:var(--spacing-4);padding:var(--spacing-4);border-radius:var(--radius-full);background:var(--color-action-primary);border-bottom:none;grid-auto-columns:1fr;grid-auto-flow:column;margin-inline:0;display:inline-grid}.panels{box-sizing:border-box;grid-template-columns:minmax(0,1fr);width:100%;display:grid}::slotted(bd-tab-panel){grid-area:1/1}.held::slotted(*){visibility:hidden;opacity:0}@media (width<576px){.tablist{gap:var(--spacing-4)}}`;export{t as default};
2
+ //# sourceMappingURL=tab-group.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-group.css.js","names":["tab_group_css_default"],"sources":["../../../../src/components/tab-group/tab-group.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole } from \"#shared/token-scales.ts\";\n\n/* bd-tab-group: the header, the tablist and the panel area. The tabs' own\n look is tab.css.ts. The numbers are 3.x bd-tabs', whose title was a\n bd-highlight and whose strip was bd-tab-list's. */\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n /* bd-feature-columns in a panel closes with no pad of its own; the name\n is 3.x's, which feature-columns.css.ts still reads. */\n --bd-features-padding-bottom: 0;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* tint: the brand wash, full bleed behind the column, and the columns in\n it close with a pad again so their content does not meet the band's\n edge. */\n :host([background=\"tint\"]) {\n background: var(--status-brand-surface);\n --bd-features-padding-bottom: var(--spacing-32);\n }\n\n .root {\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n }\n\n .title[hidden],\n .description[hidden] {\n display: none;\n }\n\n /* 3.x's bd-highlight: centred, 24 clear of everything, in a measure of its\n own. */\n .title {\n margin: var(--spacing-24);\n box-sizing: border-box;\n /* no token: a centred title measure, deliberately narrower than the page\n column (--layout-ensemble-max-width); nothing on the scale sits between\n --content-width-readable and that column. bd-highlight's, which drew it */\n max-width: 820px;\n text-align: center;\n }\n\n /* The title: the heading-h3 role, the size 3.x's bd-highlight drew its\n h3 at, whatever level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h3\"))}\n margin: 0;\n }\n\n /* 3.x's subtitle: body-large, centred, 32 above and below. */\n .description {\n box-sizing: border-box;\n margin: var(--spacing-32) var(--spacing-24);\n /* no token: the subtitle's centred measure, narrower than the title's\n 820 and the page column; nothing on the scale sits there */\n max-width: 780px;\n text-align: center;\n }\n\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n }\n\n /* The strip: bd-tab-list's .bd-tabs-container. The slot is display:\n contents, so the tabs are its flex items.\n\n --bd-tab-border-color is the one 3.x --bd-tab-* knob kept, as a\n component token: the rule under the strip is drawn here, in the group's\n shadow root, which no rule of the page's reaches, and on a muted band\n border/container is the band's own colour (1.000:1). Every other knob\n was the tab's, which the page now styles directly (tab.css.ts). */\n .tablist {\n display: inline-flex;\n justify-content: center;\n flex-wrap: wrap;\n margin: var(--spacing-24);\n border-bottom: var(--border-width-1) solid var(--bd-tab-border-color, var(--color-border-container));\n }\n\n /* appearance=\"switcher\": the content switcher's track, 3.x bd-tab-list's\n .bd-tabs-container--switcher. A pill on the action fill, 4 inside it and\n 4 between options; each option draws itself (tab.css.ts).\n\n Every option is as wide as the widest, so a translation cannot make one\n bigger than another. 3.x measured the widest in script after\n fonts.ready and published it as --bd-switcher-option-width, having\n measured 1fr wrap and fall unequal; that was before the option was\n nowrap. Here it is CSS: an inline grid is sized to its content, and\n under that sizing every 1fr column is the widest column's max-content\n (CSS Grid, \"find the size of an fr\"), so the track hugs its options, the\n columns are equal, and the width follows a label or a late font with no\n script. Measured against 3.x's Content Switcher stories at 375 and 1280:\n the same widths to the hundredth of a pixel wherever the equal track\n fits its column (122.19 twice, 107.81 three times, 246.38 twice).\n Narrower than that, the track takes the column and the shorter options\n give up the difference, none below its own label: \"One\" beside \"A\n considerably longer label\" at 375 is 84.63 and 246.38 in a 343 track,\n where 3.x's measured 504.75 ran the page 146px wide.\n __tests__/tab-group.test.ts holds both. */\n :host([appearance=\"switcher\"]) .tablist {\n display: inline-grid;\n grid-auto-flow: column;\n grid-auto-columns: 1fr;\n gap: var(--spacing-4);\n padding: var(--spacing-4);\n /* The 24 above and below stay, apart from the title and the panel; the\n 24 either side go. The track is centred, so they only ever took room\n from a track as wide as the column, which cannot wrap as the strip\n does, and at 375 they would have cost three options their equal\n widths (295 of a 343 column, under the 339 the three need). */\n margin-inline: 0;\n border-bottom: none;\n border-radius: var(--radius-full);\n background: var(--color-action-primary);\n }\n\n /* Every panel in one cell: the shown one and, under it, the held ones,\n which are laid out and never drawn, so the row is the tallest panel's\n height and a tab switch moves nothing below the group. minmax(0, 1fr)\n keeps the track at the column's width: an auto track would grow to the\n widest panel's min-content and lay the shown panel out wider than the\n column. */\n .panels {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n width: 100%;\n box-sizing: border-box;\n }\n\n ::slotted(bd-tab-panel) {\n grid-area: 1 / 1;\n }\n\n /* Out of sight, still in layout: display: none would take the held panels\n out of the height they are here to hold. They are inert as well, which\n keeps them out of the tab order and the accessibility tree.\n\n visibility alone is not out of sight: it is inherited, so anything in a\n held panel that sets visibility: visible again -- a page's reveal class,\n bd-anchor-nav's opened actions -- would draw over the shown panel in\n this shared cell. Opacity is the panel's whole subtree as one group, and\n no descendant can take it back. */\n .held::slotted(*) {\n visibility: hidden;\n opacity: 0;\n }\n\n @media ${unsafeCSS(below(\"sm\"))} {\n .tablist {\n gap: var(--spacing-4);\n }\n }\n`;\n"],"mappings":"A,4DAMA,IAAAA,EAAe,CAAG,q5D"}
@@ -0,0 +1,172 @@
1
+ import { LitElement, type PropertyValues } from "lit";
2
+ import { ObserverController } from "../shared/controller.observer.js";
3
+ import { SlotController } from "../shared/controller.slot.js";
4
+ import "../../tokens/tokens.js";
5
+ import { type TabAppearance } from "./tab.js";
6
+ import "./tab-panel.js";
7
+ import "../feature-columns/feature-columns.js";
8
+ import "../h/h.js";
9
+ import "../p/p.js";
10
+ declare const BACKGROUNDS: readonly ["none", "tint"];
11
+ type Background = typeof BACKGROUNDS[number];
12
+ /**
13
+ * A row of tabs over the panels they show, one at a time.
14
+ *
15
+ * <bd-tab-group>
16
+ * <bd-h slot="title" as="h2">The Ultimate Protection for all platforms</bd-h>
17
+ * <bd-p slot="description">Your digital safety is our top priority.</bd-p>
18
+ * <bd-tab panel="windows">Windows</bd-tab>
19
+ * <bd-tab panel="macos">macOS</bd-tab>
20
+ * <bd-tab-panel name="windows">…</bd-tab-panel>
21
+ * <bd-tab-panel name="macos">…</bd-tab-panel>
22
+ * </bd-tab-group>
23
+ *
24
+ * It was bd-tabs, and Web Awesome's wa-tab-group is the model. The page
25
+ * writes the tabs and panels as plain children, with no `slot`: the group's
26
+ * shadow root assigns its slots by hand (slotAssignment: "manual"), the tabs
27
+ * into its tablist and the shown panel into its panel area. Imperative slot
28
+ * assignment is Baseline Widely available since 2025-09-27 (Chrome 92,
29
+ * Firefox 92, Safari 16.4; webstatus.dev slot-assign, looked up 2026-11-04
30
+ * -- modern-web-guidance's shadow-dom guide covers slots but gives this no
31
+ * status). The title and the description are routed by their `slot`, as a
32
+ * named slot would. A child added, removed or renamed later, or a tab's
33
+ * `panel` or a panel's `name` changed, is routed again (_apply), and the
34
+ * routing reads attributes, so a tab or panel that upgrades after the group
35
+ * is routed the same.
36
+ *
37
+ * ## Every panel stays the page's
38
+ *
39
+ * Nothing is copied. 3.x rendered a copy of each panel, kept copies of the
40
+ * hidden ones as sizers in shadow roots of their own, and took the copies
41
+ * again whenever a panel changed; all of that is gone. The hidden panels are
42
+ * assigned too, to a second slot in the same grid cell as the shown one
43
+ * (tab-group.css.ts), where they take part in layout and are never drawn, so
44
+ * the panel area is as tall as the tallest panel and a tab switch moves
45
+ * nothing below it. A hidden panel is `inert` and held still (shared/hold.ts):
46
+ * its media paused and kept from autoplaying, its `paused` components
47
+ * paused, its embeds unloaded. Shown, it is released: its frames load again,
48
+ * and what the page wrote with autoplay plays. Content the page adds to a
49
+ * held panel later -- a block it decorates once the group is on it -- is held
50
+ * as it arrives.
51
+ *
52
+ * Two things follow from the panels being one tree with the page, and both
53
+ * are behaviour 3.x did not have. Leaving a tab no longer puts what it holds
54
+ * back as the page wrote it: an accordion opened there is still open when
55
+ * the reader comes back. And same-name radios in two panels are one group,
56
+ * as they would be anywhere in a page -- a choice in one clears the other's
57
+ * -- so each panel that asks its own question wraps its radios in a
58
+ * bd-radio-group.
59
+ *
60
+ * ## Names, roles and the keys
61
+ *
62
+ * bd-tab is role="tab" and bd-tab-panel role="tabpanel", each through
63
+ * ElementInternals. The tablist is named by the title, through the wrapper
64
+ * around its slot, or by `label` without one. Tab and panel are paired
65
+ * through ElementInternals' element references: the tab's
66
+ * ariaControlsElements and the panel's ariaLabelledByElements, so the group
67
+ * writes no id, aria-controls or aria-labelledby on the page's elements.
68
+ * They are Baseline Newly available, since 2025-04-04 (Chrome 135, Firefox
69
+ * 136, Safari 16.4; modern-web-guidance, accessible-web-components, looked up
70
+ * 2026-11-09), inside the target. The group hands each child its partner
71
+ * through the child's _pair() on every _apply. A child that has not upgraded
72
+ * when the group connects is paired on the apply after the group's first
73
+ * update: the family's definitions are imported before the group's, so by
74
+ * then it has. A tab or panel taken out of the group is unpaired. It also
75
+ * writes the roving tabindex -- the one way to put a host with an
76
+ * ElementInternals role in the tab order -- and `inert` on the held panels.
77
+ * CLAUDE.md (Brands) records these writes.
78
+ *
79
+ * The keys are the WAI-ARIA tabs pattern's, onTablistKeydown(): ArrowRight
80
+ * and ArrowLeft (mirrored on a right-to-left page), Home and End, a disabled
81
+ * tab skipped, and automatic activation, since showing a panel costs
82
+ * nothing.
83
+ *
84
+ * `active` is the name of the shown panel. Without one the first tab that is
85
+ * not disabled is shown, and its name written to `active`. A name no tab has
86
+ * yet is kept -- the page may be about to add the tab -- and the first is
87
+ * shown meanwhile; the shown tab taken away, the first is shown and written.
88
+ * The group sends bd-tab-show, `detail: { name }`, whenever the shown panel
89
+ * changes after the first, by the reader or by the page. It bubbles, so a
90
+ * group nested in another's panel reaches the outer group's listeners too:
91
+ * `event.target` says which group it was.
92
+ *
93
+ * ## Two appearances
94
+ *
95
+ * `appearance="switcher"` draws 3.x bd-tab-list's content switcher (Figma
96
+ * node 311:931): a pill track on the action fill, the shown tab on a white
97
+ * pill, every tab as wide as the widest and on one line. It is a look, not a
98
+ * second element (N2): the roles, the references, the keys and the hold are the
99
+ * same. The group hands `appearance` to its bd-tabs as an attribute, as it
100
+ * hands them `active`, and each tab draws its own pill (tab.css.ts); the
101
+ * track is this group's (tab-group.css.ts).
102
+ *
103
+ * The equal widths are CSS, where 3.x measured them in script after
104
+ * fonts.ready and published --bd-switcher-option-width: the track is an
105
+ * inline grid whose columns are each 1fr, and an inline grid sized to its
106
+ * content makes every flexible column as wide as the widest column's content
107
+ * (CSS Grid, "find the size of an fr"). So a translated label or a font that
108
+ * arrives late resizes the track with no script. tab-group.css.ts records
109
+ * where the two differ: only where the column is narrower than the equal
110
+ * track, and the measured numbers.
111
+ *
112
+ * ## Nested groups
113
+ *
114
+ * A group routes its own children only, so a group in another's panel -- the
115
+ * pricing card's billing tabs, in a panel of the plan tabs -- keeps its tabs,
116
+ * its panels and its keys: the outer group's lists, clicks and keys stop at
117
+ * its own children, and its hold reaches no further than the inner group's
118
+ * held panels (shared/hold.ts, "held roots nest"). The inner group's own
119
+ * `slot`, as in `<bd-tab-group slot="price">` inside a card, is its parent's
120
+ * business, not its children's.
121
+ */
122
+ export declare class BdTabGroup extends LitElement {
123
+ static shadowRootOptions: ShadowRootInit;
124
+ static styles: import("lit").CSSResult[];
125
+ /** The `name` of the shown bd-tab-panel. Reflected; the first tab's panel when unset. */
126
+ active: string;
127
+ /** The strip's look: standard, the underlined strip, or switcher, the pill track. Handed to every bd-tab. */
128
+ appearance: TabAppearance;
129
+ /** The group's ground: none, or tint, the brand wash behind it. */
130
+ background: Background;
131
+ /** The tablist's accessible name while no title is slotted. No default. */
132
+ label: string;
133
+ _slots: SlotController<"title" | "description">;
134
+ _children: ObserverController<MutationObserver>;
135
+ private _shown;
136
+ private readonly _held;
137
+ private _panels;
138
+ private _pairedTabs;
139
+ connectedCallback(): void;
140
+ willUpdate(changed: PropertyValues<this>): void;
141
+ updated(): void;
142
+ _tabs(): Element[];
143
+ _tabPanels(): Element[];
144
+ private _resolve;
145
+ /**
146
+ * Everything the group hands its children, from what they are now: which
147
+ * tab and panel are active, the tabs' appearance, the references that
148
+ * pair them, the roving tabindex, which panels are inert and held,
149
+ * and the slot each child is assigned to. Idempotent; it runs on connect,
150
+ * after every update and on every routing change.
151
+ */
152
+ _apply(): void;
153
+ private _route;
154
+ private _childAround;
155
+ private _onMutations;
156
+ private _tabFrom;
157
+ private _choose;
158
+ private _onClick;
159
+ private _onKeydown;
160
+ render(): import("lit-html").TemplateResult<1>;
161
+ }
162
+ declare global {
163
+ interface HTMLElementTagNameMap {
164
+ "bd-tab-group": BdTabGroup;
165
+ }
166
+ interface HTMLElementEventMap {
167
+ "bd-tab-show": CustomEvent<{
168
+ name: string;
169
+ }>;
170
+ }
171
+ }
172
+ export {};
@@ -0,0 +1,16 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{ObserverController as r}from"../shared/controller.observer.js";import{SlotController as i}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as a}from"../shared/ensemble.css.js";import"../feature-columns/feature-columns.js";import{hold as o,release as s}from"../shared/hold.js";import{onTablistKeydown as c}from"../shared/tablist.js";import l from"./tab-group.css.js";import{TAB_APPEARANCES as u}from"./tab.js";import"./tab-panel.js";import{LitElement as d,html as f,nothing as p}from"lit";import{property as m}from"lit/decorators.js";var h=[`none`,`tint`],g=[`title`,`description`],_=e=>e.localName===`bd-tab`&&!g.includes(e.slot),v=e=>e.localName===`bd-tab-panel`&&!g.includes(e.slot),y=e=>e.getAttribute(`panel`)??``,b=e=>e.getAttribute(`name`)??``,x=[`slot`,`panel`,`name`,`disabled`],S=[`src`,`srcdoc`,`autoplay`],C=class extends d{constructor(...e){super(...e),this.active=``,this.appearance=`standard`,this.background=`none`,this.label=``,this._slots=new i(this,{slots:[`title`,`description`]}),this._children=new r(this,()=>new MutationObserver(e=>this._onMutations(e)),e=>e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[...x,...S]})),this._shown=``,this._held=/* @__PURE__ */ new WeakSet,this._panels=/* @__PURE__ */ new Set,this._pairedTabs=/* @__PURE__ */ new Set,this._onClick=e=>{let{tab:t}=this._tabFrom(e);t&&this._choose(t)},this._onKeydown=e=>{let{tabs:t,tab:n}=this._tabFrom(e);if(!n)return;let r=c(e,{count:t.length,current:t.indexOf(n),rtl:this.matches(`:dir(rtl)`),disabled:e=>t[e].hasAttribute(`disabled`)});r!==null&&this._choose(t[r],{focus:!0})}}static{this.shadowRootOptions={...d.shadowRootOptions,slotAssignment:`manual`}}static{this.styles=[a,l]}connectedCallback(){super.connectedCallback(),this._apply()}willUpdate(e){e.has(`appearance`)&&!t(u,this.appearance)&&(this.appearance=`standard`),e.has(`background`)&&!t(h,this.background)&&(this.background=`none`),this._resolve(this._tabs(),this._tabPanels())}updated(){this._apply()}_tabs(){return[...this.children].filter(_)}_tabPanels(){return[...this.children].filter(v)}_resolve(e,t){if((n=>n!==``&&(e.length?e.some(e=>y(e)===n):t.some(e=>b(e)===n)))(this.active))return this.active;let n=e.find(e=>y(e)&&!e.hasAttribute(`disabled`))??e.find(y),r=n?y(n):t.map(b).find(Boolean)??``;return r&&(!this.active||this.active===this._shown)&&(this.active=r),r}_apply(){let e=this._tabs(),t=this._tabPanels(),n=this._resolve(e,t),r=t=>e.find(e=>y(e)===t),i=e=>t.find(t=>b(t)===e),a=this.appearance===`switcher`,c=!1;for(let t of e){let e=y(t)===n;t.toggleAttribute(`active`,e),a?t.setAttribute(`appearance`,`switcher`):t.removeAttribute(`appearance`),t.setAttribute(`tabindex`,e&&!c?`0`:`-1`),c||=e,t._pair?.(i(y(t))??null)}for(let t of this._pairedTabs)e.includes(t)||t._pair?.(null);this._pairedTabs=new Set(e);for(let e of t){let t=b(e)===n;e.toggleAttribute(`active`,t),e.toggleAttribute(`inert`,!t),e._pair?.(r(b(e))??null),t&&this._held.has(e)?(this._held.delete(e),s(e)):!t&&!this._held.has(e)&&(this._held.add(e),o(e))}for(let e of this._panels)t.includes(e)||(e.removeAttribute(`inert`),e.removeAttribute(`active`),e._pair?.(null),this._held.has(e)&&(this._held.delete(e),s(e)));if(this._panels=new Set(t),this._route(e,t,n),!n)return;let l=this._shown;this._shown=n,l&&n!==l&&this.dispatchEvent(new CustomEvent(`bd-tab-show`,{detail:{name:n},bubbles:!0,composed:!0}))}_route(e,t,n){let r=e=>this.renderRoot.querySelector(e),i=r(`slot[name="title"]`);if(!i)return;let a=[...this.children];i.assign(...a.filter(e=>e.slot===`title`)),r(`slot[name="description"]`).assign(...a.filter(e=>e.slot===`description`)),r(`slot.tabs`).assign(...e),r(`slot.shown`).assign(...t.filter(e=>b(e)===n)),r(`slot.held`).assign(...t.filter(e=>b(e)!==n))}_childAround(e){for(;e&&e.parentNode!==this;)e=e.parentNode;return e}_onMutations(e){let t=!1,n=/* @__PURE__ */ new Set;for(let r of e){let e=r.target;if(e===this)t=!0;else if(e.parentNode===this&&r.type===`attributes`&&x.includes(r.attributeName))t=!0;else{let t=this._childAround(e);t&&this._held.has(t)&&n.add(t)}}t&&this._apply();for(let e of n)this._held.has(e)&&o(e)}_tabFrom(e){let t=this._tabs();return{tabs:t,tab:e.composedPath().find(e=>t.includes(e))}}_choose(e,{focus:t=!1}={}){if(e.hasAttribute(`disabled`))return;t&&e.focus();let n=y(e);n&&n!==this.active&&(this.active=n)}render(){let e=this._slots.has(`title`),t=this._slots.has(`description`);return f`
2
+ <div class="bd-ensemble root">
3
+ <div class="title" id="title" ?hidden=${!e}><slot name="title"></slot></div>
4
+ <div class="description" ?hidden=${!t}><slot name="description"></slot></div>
5
+ <div
6
+ class="tablist"
7
+ role="tablist"
8
+ aria-labelledby=${e?`title`:p}
9
+ aria-label=${!e&&this.label?this.label:p}
10
+ @click=${this._onClick}
11
+ @keydown=${this._onKeydown}
12
+ ><slot class="tabs"></slot></div>
13
+ <div class="panels"><slot class="shown"></slot><slot class="held"></slot></div>
14
+ </div>
15
+ `}};n([m({type:String,reflect:!0,attribute:`active`})],C.prototype,`active`,void 0),n([m({type:String,reflect:!0,attribute:`appearance`})],C.prototype,`appearance`,void 0),n([m({type:String,reflect:!0,attribute:`background`})],C.prototype,`background`,void 0),n([m({type:String,attribute:`label`})],C.prototype,`label`,void 0),C=n([e(`bd-tab-group`)],C);export{C as BdTabGroup};
16
+ //# sourceMappingURL=tab-group.js.map