@repobit/dex-system-design 3.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1048) hide show
  1. package/CHANGELOG.md +1074 -0
  2. package/README.md +31 -6
  3. package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
  4. package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
  5. package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
  6. package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
  7. package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
  8. package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
  9. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
  10. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
  11. package/dist/src/components/abstract/abstract.css.d.ts +7 -0
  12. package/dist/src/components/abstract/abstract.css.js +2 -0
  13. package/dist/src/components/abstract/abstract.css.js.map +1 -0
  14. package/dist/src/components/abstract/abstract.d.ts +31 -0
  15. package/dist/src/components/abstract/abstract.js +2 -0
  16. package/dist/src/components/abstract/abstract.js.map +1 -0
  17. package/dist/src/components/accordion/accordion-item.d.ts +93 -0
  18. package/dist/src/components/accordion/accordion-item.js +25 -0
  19. package/dist/src/components/accordion/accordion-item.js.map +1 -0
  20. package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
  21. package/dist/src/components/accordion/accordion-keyboard.js +1 -1
  22. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  23. package/dist/src/components/accordion/accordion.css.d.ts +2 -2
  24. package/dist/src/components/accordion/accordion.css.js +1 -1
  25. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  26. package/dist/src/components/accordion/accordion.d.ts +66 -31
  27. package/dist/src/components/accordion/accordion.js +8 -66
  28. package/dist/src/components/accordion/accordion.js.map +1 -1
  29. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
  30. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
  31. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
  32. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  33. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
  34. package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
  35. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  36. package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
  37. package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
  38. package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
  39. package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
  40. package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
  41. package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
  42. package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
  43. package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
  44. package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
  45. package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
  46. package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
  47. package/dist/src/components/annotation/annotation.css.js +1 -1
  48. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  49. package/dist/src/components/annotation/annotation.js +2 -2
  50. package/dist/src/components/annotation/annotation.js.map +1 -1
  51. package/dist/src/components/article/article.css.d.ts +30 -0
  52. package/dist/src/components/article/article.css.js +2 -0
  53. package/dist/src/components/article/article.css.js.map +1 -0
  54. package/dist/src/components/article/article.d.ts +135 -0
  55. package/dist/src/components/article/article.js +39 -0
  56. package/dist/src/components/article/article.js.map +1 -0
  57. package/dist/src/components/audience-card/audience-card.css.js +1 -1
  58. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  59. package/dist/src/components/audience-card/audience-card.d.ts +30 -15
  60. package/dist/src/components/audience-card/audience-card.js +9 -11
  61. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  62. package/dist/src/components/authors/authors.css.d.ts +7 -0
  63. package/dist/src/components/authors/authors.css.js +2 -0
  64. package/dist/src/components/authors/authors.css.js.map +1 -0
  65. package/dist/src/components/authors/authors.d.ts +29 -0
  66. package/dist/src/components/authors/authors.js +7 -0
  67. package/dist/src/components/authors/authors.js.map +1 -0
  68. package/dist/src/components/avatar/avatar.js +6 -6
  69. package/dist/src/components/avatar/avatar.js.map +1 -1
  70. package/dist/src/components/awards/award-marks.css.js +2 -0
  71. package/dist/src/components/awards/award-marks.css.js.map +1 -0
  72. package/dist/src/components/awards/award.css.js +2 -0
  73. package/dist/src/components/awards/award.css.js.map +1 -0
  74. package/dist/src/components/awards/award.d.ts +65 -0
  75. package/dist/src/components/awards/award.js +11 -0
  76. package/dist/src/components/awards/award.js.map +1 -0
  77. package/dist/src/components/awards/awards.css.d.ts +2 -1
  78. package/dist/src/components/awards/awards.css.js +1 -1
  79. package/dist/src/components/awards/awards.css.js.map +1 -1
  80. package/dist/src/components/awards/awards.d.ts +123 -71
  81. package/dist/src/components/awards/awards.js +46 -57
  82. package/dist/src/components/awards/awards.js.map +1 -1
  83. package/dist/src/components/awards/scroll-slides.d.ts +9 -8
  84. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  85. package/dist/src/components/back/back.d.ts +12 -7
  86. package/dist/src/components/back/back.js +6 -6
  87. package/dist/src/components/back/back.js.map +1 -1
  88. package/dist/src/components/badge/badge.css.js +1 -1
  89. package/dist/src/components/badge/badge.css.js.map +1 -1
  90. package/dist/src/components/badge/badge.d.ts +11 -11
  91. package/dist/src/components/badge/badge.js +2 -2
  92. package/dist/src/components/badge/badge.js.map +1 -1
  93. package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
  94. package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
  95. package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
  96. package/dist/src/components/bar-chart/bar-chart.js +42 -0
  97. package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
  98. package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
  99. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  100. package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
  101. package/dist/src/components/bento-grid/bento-grid.js +10 -26
  102. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  103. package/dist/src/components/bento-grid/bento-item.css.js +1 -1
  104. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  105. package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
  106. package/dist/src/components/bento-grid/bento-item.js +9 -26
  107. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  108. package/dist/src/components/blockquote/blockquote.css.js +1 -1
  109. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  110. package/dist/src/components/blockquote/blockquote.d.ts +27 -2
  111. package/dist/src/components/blockquote/blockquote.js +1 -1
  112. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  113. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
  114. package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
  115. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  116. package/dist/src/components/button/button.css.js +1 -1
  117. package/dist/src/components/button/button.css.js.map +1 -1
  118. package/dist/src/components/button/button.d.ts +87 -96
  119. package/dist/src/components/button/button.js +20 -33
  120. package/dist/src/components/button/button.js.map +1 -1
  121. package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
  122. package/dist/src/components/callout/callout.css.js +2 -0
  123. package/dist/src/components/callout/callout.css.js.map +1 -0
  124. package/dist/src/components/callout/callout.d.ts +56 -0
  125. package/dist/src/components/callout/callout.js +28 -0
  126. package/dist/src/components/callout/callout.js.map +1 -0
  127. package/dist/src/components/caption/caption.js +2 -2
  128. package/dist/src/components/caption/caption.js.map +1 -1
  129. package/dist/src/components/card/card-grid.css.js +2 -0
  130. package/dist/src/components/card/card-grid.css.js.map +1 -0
  131. package/dist/src/components/card/card-grid.d.ts +63 -0
  132. package/dist/src/components/card/card-grid.js +10 -0
  133. package/dist/src/components/card/card-grid.js.map +1 -0
  134. package/dist/src/components/card/card.css.js +2 -0
  135. package/dist/src/components/card/card.css.js.map +1 -0
  136. package/dist/src/components/card/card.d.ts +86 -0
  137. package/dist/src/components/card/card.js +15 -0
  138. package/dist/src/components/card/card.js.map +1 -0
  139. package/dist/src/components/carousel/carousel.css.js +1 -1
  140. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  141. package/dist/src/components/carousel/carousel.d.ts +64 -37
  142. package/dist/src/components/carousel/carousel.js +24 -32
  143. package/dist/src/components/carousel/carousel.js.map +1 -1
  144. package/dist/src/components/checkbox/checkbox.d.ts +15 -1
  145. package/dist/src/components/checkbox/checkbox.js +6 -5
  146. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  147. package/dist/src/components/code/code.css.d.ts +15 -0
  148. package/dist/src/components/code/code.css.js +1 -1
  149. package/dist/src/components/code/code.css.js.map +1 -1
  150. package/dist/src/components/code/code.d.ts +100 -4
  151. package/dist/src/components/code/code.js +17 -3
  152. package/dist/src/components/code/code.js.map +1 -1
  153. package/dist/src/components/code/prism-page.d.ts +2 -0
  154. package/dist/src/components/code/prism-page.js +2 -0
  155. package/dist/src/components/code/prism-page.js.map +1 -0
  156. package/dist/src/components/code/prism.d.ts +10 -0
  157. package/dist/src/components/code/prism.js +2 -0
  158. package/dist/src/components/code/prism.js.map +1 -0
  159. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
  160. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  161. package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
  162. package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
  163. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  164. package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
  165. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
  166. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  167. package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
  168. package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
  169. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  170. package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
  171. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  172. package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
  173. package/dist/src/components/cta-banner/cta-banner.js +8 -28
  174. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  175. package/dist/src/components/dialog/dialog.css.js +2 -0
  176. package/dist/src/components/dialog/dialog.css.js.map +1 -0
  177. package/dist/src/components/dialog/dialog.d.ts +76 -0
  178. package/dist/src/components/dialog/dialog.js +32 -0
  179. package/dist/src/components/dialog/dialog.js.map +1 -0
  180. package/dist/src/components/display/display.css.js +1 -1
  181. package/dist/src/components/display/display.css.js.map +1 -1
  182. package/dist/src/components/display/display.d.ts +30 -6
  183. package/dist/src/components/display/display.js +7 -5
  184. package/dist/src/components/display/display.js.map +1 -1
  185. package/dist/src/components/divider/divider.css.d.ts +2 -2
  186. package/dist/src/components/divider/divider.css.js +1 -1
  187. package/dist/src/components/divider/divider.css.js.map +1 -1
  188. package/dist/src/components/divider/divider.d.ts +36 -0
  189. package/dist/src/components/divider/divider.js +21 -0
  190. package/dist/src/components/divider/divider.js.map +1 -0
  191. package/dist/src/components/fact/fact.css.d.ts +1 -0
  192. package/dist/src/components/fact/fact.css.js +2 -0
  193. package/dist/src/components/fact/fact.css.js.map +1 -0
  194. package/dist/src/components/fact/fact.d.ts +37 -0
  195. package/dist/src/components/fact/fact.js +2 -0
  196. package/dist/src/components/fact/fact.js.map +1 -0
  197. package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
  198. package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
  199. package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
  200. package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
  201. package/dist/src/components/feature-columns/feature-columns.js +11 -0
  202. package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
  203. package/dist/src/components/features-tab/features-tab.css.js +1 -1
  204. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  205. package/dist/src/components/features-tab/features-tab.d.ts +21 -6
  206. package/dist/src/components/features-tab/features-tab.js +9 -21
  207. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  208. package/dist/src/components/fieldset/fieldset.d.ts +16 -1
  209. package/dist/src/components/fieldset/fieldset.js +3 -3
  210. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  211. package/dist/src/components/footer/footer-group.css.js +2 -0
  212. package/dist/src/components/footer/footer-group.css.js.map +1 -0
  213. package/dist/src/components/footer/footer-group.d.ts +28 -0
  214. package/dist/src/components/footer/footer-group.js +5 -0
  215. package/dist/src/components/footer/footer-group.js.map +1 -0
  216. package/dist/src/components/footer/footer-locale.js +1 -1
  217. package/dist/src/components/footer/footer-locale.js.map +1 -1
  218. package/dist/src/components/footer/footer-nav.css.js +2 -0
  219. package/dist/src/components/footer/footer-nav.css.js.map +1 -0
  220. package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
  221. package/dist/src/components/footer/footer-nav.js +6 -0
  222. package/dist/src/components/footer/footer-nav.js.map +1 -0
  223. package/dist/src/components/footer/footer.css.js +1 -1
  224. package/dist/src/components/footer/footer.css.js.map +1 -1
  225. package/dist/src/components/footer/footer.d.ts +38 -10
  226. package/dist/src/components/footer/footer.js +71 -93
  227. package/dist/src/components/footer/footer.js.map +1 -1
  228. package/dist/src/components/grid/grid.js +7 -7
  229. package/dist/src/components/h/h.css.js +2 -0
  230. package/dist/src/components/h/h.css.js.map +1 -0
  231. package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
  232. package/dist/src/components/h/h.js +7 -0
  233. package/dist/src/components/h/h.js.map +1 -0
  234. package/dist/src/components/hero/hero.css.js +1 -1
  235. package/dist/src/components/hero/hero.css.js.map +1 -1
  236. package/dist/src/components/hero/hero.d.ts +42 -24
  237. package/dist/src/components/hero/hero.js +15 -19
  238. package/dist/src/components/hero/hero.js.map +1 -1
  239. package/dist/src/components/highlight/highlight.css.js +1 -1
  240. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  241. package/dist/src/components/highlight/highlight.d.ts +21 -12
  242. package/dist/src/components/highlight/highlight.js +1 -4
  243. package/dist/src/components/highlight/highlight.js.map +1 -1
  244. package/dist/src/components/hint/hint.css.d.ts +3 -0
  245. package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
  246. package/dist/src/components/hint/hint.css.js.map +1 -0
  247. package/dist/src/components/hint/hint.d.ts +33 -0
  248. package/dist/src/components/hint/hint.js +4 -0
  249. package/dist/src/components/hint/hint.js.map +1 -0
  250. package/dist/src/components/icons/analysis.d.ts +1 -0
  251. package/dist/src/components/icons/analysis.js +6 -0
  252. package/dist/src/components/icons/analysis.js.map +1 -0
  253. package/dist/src/components/icons/arrow-down.d.ts +1 -0
  254. package/dist/src/components/icons/arrow-down.js +6 -0
  255. package/dist/src/components/icons/arrow-down.js.map +1 -0
  256. package/dist/src/components/icons/arrow-right.d.ts +1 -0
  257. package/dist/src/components/icons/arrow-right.js +6 -0
  258. package/dist/src/components/icons/arrow-right.js.map +1 -0
  259. package/dist/src/components/icons/arrow-up.d.ts +1 -0
  260. package/dist/src/components/icons/arrow-up.js +6 -0
  261. package/dist/src/components/icons/arrow-up.js.map +1 -0
  262. package/dist/src/components/icons/arrow.d.ts +1 -0
  263. package/dist/src/components/icons/arrow.js +6 -0
  264. package/dist/src/components/icons/arrow.js.map +1 -0
  265. package/dist/src/components/icons/brand-signature.d.ts +1 -0
  266. package/dist/src/components/icons/brand-signature.js +6 -0
  267. package/dist/src/components/icons/brand-signature.js.map +1 -0
  268. package/dist/src/components/icons/check.d.ts +1 -0
  269. package/dist/src/components/icons/check.js +6 -0
  270. package/dist/src/components/icons/check.js.map +1 -0
  271. package/dist/src/components/icons/circle-info.d.ts +1 -0
  272. package/dist/src/components/icons/circle-info.js +8 -0
  273. package/dist/src/components/icons/circle-info.js.map +1 -0
  274. package/dist/src/components/icons/clipboard.d.ts +1 -0
  275. package/dist/src/components/icons/clipboard.js +7 -0
  276. package/dist/src/components/icons/clipboard.js.map +1 -0
  277. package/dist/src/components/icons/close.d.ts +1 -0
  278. package/dist/src/components/icons/close.js +6 -0
  279. package/dist/src/components/icons/close.js.map +1 -0
  280. package/dist/src/components/icons/enterprise.d.ts +1 -0
  281. package/dist/src/components/icons/enterprise.js +6 -0
  282. package/dist/src/components/icons/enterprise.js.map +1 -0
  283. package/dist/src/components/icons/envelope.d.ts +1 -0
  284. package/dist/src/components/icons/envelope.js +7 -0
  285. package/dist/src/components/icons/envelope.js.map +1 -0
  286. package/dist/src/components/icons/family.d.ts +1 -0
  287. package/dist/src/components/icons/family.js +8 -0
  288. package/dist/src/components/icons/family.js.map +1 -0
  289. package/dist/src/components/icons/globe.d.ts +1 -0
  290. package/dist/src/components/icons/globe.js +6 -0
  291. package/dist/src/components/icons/globe.js.map +1 -0
  292. package/dist/src/components/icons/guide.d.ts +1 -0
  293. package/dist/src/components/icons/guide.js +6 -0
  294. package/dist/src/components/icons/guide.js.map +1 -0
  295. package/dist/src/components/icons/home.d.ts +1 -0
  296. package/dist/src/components/icons/home.js +6 -0
  297. package/dist/src/components/icons/home.js.map +1 -0
  298. package/dist/src/components/icons/icon.d.ts +60 -0
  299. package/dist/src/components/icons/icon.js +2 -0
  300. package/dist/src/components/icons/icon.js.map +1 -0
  301. package/dist/src/components/icons/icons.d.ts +43 -36
  302. package/dist/src/components/icons/icons.js +1 -1
  303. package/dist/src/components/icons/individual.d.ts +1 -0
  304. package/dist/src/components/icons/individual.js +6 -0
  305. package/dist/src/components/icons/individual.js.map +1 -0
  306. package/dist/src/components/icons/laurel.d.ts +1 -0
  307. package/dist/src/components/icons/laurel.js +13 -0
  308. package/dist/src/components/icons/laurel.js.map +1 -0
  309. package/dist/src/components/icons/machine-learning.d.ts +1 -0
  310. package/dist/src/components/icons/machine-learning.js +6 -0
  311. package/dist/src/components/icons/machine-learning.js.map +1 -0
  312. package/dist/src/components/icons/mark.d.ts +66 -0
  313. package/dist/src/components/icons/mark.js +2 -0
  314. package/dist/src/components/icons/mark.js.map +1 -0
  315. package/dist/src/components/icons/marks/ai.d.ts +1 -0
  316. package/dist/src/components/icons/marks/ai.js +6 -0
  317. package/dist/src/components/icons/marks/ai.js.map +1 -0
  318. package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
  319. package/dist/src/components/icons/marks/av-comparatives.js +12 -0
  320. package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
  321. package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
  322. package/dist/src/components/icons/marks/best-brands.js +12 -0
  323. package/dist/src/components/icons/marks/best-brands.js.map +1 -0
  324. package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
  325. package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
  326. package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
  327. package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
  328. package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
  329. package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
  330. package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
  331. package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
  332. package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
  333. package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
  334. package/dist/src/components/icons/marks/pc-mag.js +11 -0
  335. package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
  336. package/dist/src/components/icons/marks/top-product.d.ts +1 -0
  337. package/dist/src/components/icons/marks/top-product.js +11 -0
  338. package/dist/src/components/icons/marks/top-product.js.map +1 -0
  339. package/dist/src/components/icons/marks.d.ts +29 -28
  340. package/dist/src/components/icons/marks.js +1 -1
  341. package/dist/src/components/icons/minus.d.ts +1 -0
  342. package/dist/src/components/icons/minus.js +6 -0
  343. package/dist/src/components/icons/minus.js.map +1 -0
  344. package/dist/src/components/icons/pause.d.ts +1 -0
  345. package/dist/src/components/icons/pause.js +7 -0
  346. package/dist/src/components/icons/pause.js.map +1 -0
  347. package/dist/src/components/icons/play.d.ts +1 -0
  348. package/dist/src/components/icons/play.js +6 -0
  349. package/dist/src/components/icons/play.js.map +1 -0
  350. package/dist/src/components/icons/plus.d.ts +1 -0
  351. package/dist/src/components/icons/plus.js +6 -0
  352. package/dist/src/components/icons/plus.js.map +1 -0
  353. package/dist/src/components/icons/quote.d.ts +1 -0
  354. package/dist/src/components/icons/quote.js +6 -0
  355. package/dist/src/components/icons/quote.js.map +1 -0
  356. package/dist/src/components/icons/registry.d.ts +122 -0
  357. package/dist/src/components/icons/registry.js +4 -0
  358. package/dist/src/components/icons/registry.js.map +1 -0
  359. package/dist/src/components/icons/small-business.d.ts +1 -0
  360. package/dist/src/components/icons/small-business.js +6 -0
  361. package/dist/src/components/icons/small-business.js.map +1 -0
  362. package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
  363. package/dist/src/components/img/img.css.js.map +1 -0
  364. package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
  365. package/dist/src/components/img/img.js +17 -0
  366. package/dist/src/components/img/img.js.map +1 -0
  367. package/dist/src/components/input/input.css.d.ts +7 -5
  368. package/dist/src/components/input/input.css.js +1 -1
  369. package/dist/src/components/input/input.css.js.map +1 -1
  370. package/dist/src/components/input/input.d.ts +34 -12
  371. package/dist/src/components/input/input.js +30 -29
  372. package/dist/src/components/input/input.js.map +1 -1
  373. package/dist/src/components/install-options/install-option.css.js +2 -0
  374. package/dist/src/components/install-options/install-option.css.js.map +1 -0
  375. package/dist/src/components/install-options/install-option.d.ts +57 -0
  376. package/dist/src/components/install-options/install-option.js +29 -0
  377. package/dist/src/components/install-options/install-option.js.map +1 -0
  378. package/dist/src/components/install-options/install-options.css.js +1 -1
  379. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  380. package/dist/src/components/install-options/install-options.d.ts +42 -31
  381. package/dist/src/components/install-options/install-options.js +42 -85
  382. package/dist/src/components/install-options/install-options.js.map +1 -1
  383. package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
  384. package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
  385. package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
  386. package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
  387. package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
  388. package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
  389. package/dist/src/components/label/label.js +3 -3
  390. package/dist/src/components/label/label.js.map +1 -1
  391. package/dist/src/components/link/link.css.js +1 -1
  392. package/dist/src/components/link/link.css.js.map +1 -1
  393. package/dist/src/components/link/link.d.ts +25 -16
  394. package/dist/src/components/link/link.js +3 -3
  395. package/dist/src/components/link/link.js.map +1 -1
  396. package/dist/src/components/list/list-item/list-item.css.js +1 -1
  397. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  398. package/dist/src/components/list/list-item/list-item.d.ts +9 -7
  399. package/dist/src/components/list/list-item/list-item.js +3 -3
  400. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  401. package/dist/src/components/list/list.d.ts +3 -2
  402. package/dist/src/components/list/list.js +2 -2
  403. package/dist/src/components/list/list.js.map +1 -1
  404. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
  405. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  406. package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
  407. package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
  408. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  409. package/dist/src/components/meta/meta.css.d.ts +8 -0
  410. package/dist/src/components/meta/meta.css.js +2 -0
  411. package/dist/src/components/meta/meta.css.js.map +1 -0
  412. package/dist/src/components/meta/meta.d.ts +37 -0
  413. package/dist/src/components/meta/meta.js +2 -0
  414. package/dist/src/components/meta/meta.js.map +1 -0
  415. package/dist/src/components/motion-art/motion-art.d.ts +39 -2
  416. package/dist/src/components/motion-art/motion-art.js +1 -1
  417. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  418. package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
  419. package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
  420. package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
  421. package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
  422. package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
  423. package/dist/src/components/overview/overview.css.js +1 -1
  424. package/dist/src/components/overview/overview.css.js.map +1 -1
  425. package/dist/src/components/overview/overview.d.ts +23 -12
  426. package/dist/src/components/overview/overview.js +9 -24
  427. package/dist/src/components/overview/overview.js.map +1 -1
  428. package/dist/src/components/p/p.css.js +2 -0
  429. package/dist/src/components/p/p.css.js.map +1 -0
  430. package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
  431. package/dist/src/components/p/p.js +6 -0
  432. package/dist/src/components/p/p.js.map +1 -0
  433. package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
  434. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  435. package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
  436. package/dist/src/components/page-switcher/page-switcher.js +5 -13
  437. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  438. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
  439. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  440. package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
  441. package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
  442. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  443. package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
  444. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  445. package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
  446. package/dist/src/components/partner-banner/partner-banner.js +11 -11
  447. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  448. package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
  449. package/dist/src/components/paste-button/paste-button.css.js +2 -0
  450. package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
  451. package/dist/src/components/paste-button/paste-button.d.ts +68 -0
  452. package/dist/src/components/paste-button/paste-button.js +17 -0
  453. package/dist/src/components/paste-button/paste-button.js.map +1 -0
  454. package/dist/src/components/picture/picture.js +3 -3
  455. package/dist/src/components/picture/picture.js.map +1 -1
  456. package/dist/src/components/post-card/post-card.css.js +1 -1
  457. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  458. package/dist/src/components/post-card/post-card.d.ts +65 -24
  459. package/dist/src/components/post-card/post-card.js +13 -9
  460. package/dist/src/components/post-card/post-card.js.map +1 -1
  461. package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
  462. package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
  463. package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
  464. package/dist/src/components/pricing-card/pricing-card.js +16 -0
  465. package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
  466. package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
  467. package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
  468. package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
  469. package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
  470. package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
  471. package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
  472. package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
  473. package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
  474. package/dist/src/components/pricing-card/pricing-feature.js +19 -0
  475. package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
  476. package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
  477. package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
  478. package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
  479. package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
  480. package/dist/src/components/pricing-card/pricing-group.js +6 -0
  481. package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
  482. package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
  483. package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
  484. package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
  485. package/dist/src/components/pricing-card/pricing-price.js +11 -0
  486. package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
  487. package/dist/src/components/process-steps/process-step.css.js +2 -0
  488. package/dist/src/components/process-steps/process-step.css.js.map +1 -0
  489. package/dist/src/components/process-steps/process-step.d.ts +31 -0
  490. package/dist/src/components/process-steps/process-step.js +6 -0
  491. package/dist/src/components/process-steps/process-step.js.map +1 -0
  492. package/dist/src/components/process-steps/process-steps.css.js +1 -1
  493. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  494. package/dist/src/components/process-steps/process-steps.d.ts +36 -19
  495. package/dist/src/components/process-steps/process-steps.js +5 -26
  496. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  497. package/dist/src/components/product-hero/product-hero.css.js +2 -0
  498. package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
  499. package/dist/src/components/product-hero/product-hero.d.ts +71 -0
  500. package/dist/src/components/product-hero/product-hero.js +123 -0
  501. package/dist/src/components/product-hero/product-hero.js.map +1 -0
  502. package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
  503. package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
  504. package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
  505. package/dist/src/components/product-upsell/product-upsell.js +14 -0
  506. package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
  507. package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
  508. package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
  509. package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
  510. package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
  511. package/dist/src/components/progress-bar/progress-bar.js +15 -0
  512. package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
  513. package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
  514. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  515. package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
  516. package/dist/src/components/quick-answer/quick-answer.js +13 -29
  517. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  518. package/dist/src/components/radio/radio-group.css.js +1 -1
  519. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  520. package/dist/src/components/radio/radio-group.d.ts +9 -5
  521. package/dist/src/components/radio/radio-group.js +5 -5
  522. package/dist/src/components/radio/radio-group.js.map +1 -1
  523. package/dist/src/components/radio/radio.css.d.ts +2 -1
  524. package/dist/src/components/radio/radio.css.js.map +1 -1
  525. package/dist/src/components/radio/radio.d.ts +8 -2
  526. package/dist/src/components/radio/radio.js +6 -5
  527. package/dist/src/components/radio/radio.js.map +1 -1
  528. package/dist/src/components/related-articles/related-articles.css.js +2 -0
  529. package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
  530. package/dist/src/components/related-articles/related-articles.d.ts +52 -0
  531. package/dist/src/components/related-articles/related-articles.js +9 -0
  532. package/dist/src/components/related-articles/related-articles.js.map +1 -0
  533. package/dist/src/components/report-promo/report-promo.css.js +2 -0
  534. package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
  535. package/dist/src/components/report-promo/report-promo.d.ts +70 -0
  536. package/dist/src/components/report-promo/report-promo.js +19 -0
  537. package/dist/src/components/report-promo/report-promo.js.map +1 -0
  538. package/dist/src/components/review/review-grid.css.js +1 -1
  539. package/dist/src/components/review/review-grid.css.js.map +1 -1
  540. package/dist/src/components/review/review-grid.d.ts +27 -6
  541. package/dist/src/components/review/review-grid.js +7 -7
  542. package/dist/src/components/review/review-grid.js.map +1 -1
  543. package/dist/src/components/review/review.css.js +1 -1
  544. package/dist/src/components/review/review.css.js.map +1 -1
  545. package/dist/src/components/review/review.d.ts +24 -17
  546. package/dist/src/components/review/review.js +7 -11
  547. package/dist/src/components/review/review.js.map +1 -1
  548. package/dist/src/components/section/section.css.js +1 -1
  549. package/dist/src/components/section/section.css.js.map +1 -1
  550. package/dist/src/components/section/section.d.ts +8 -6
  551. package/dist/src/components/section/section.js +1 -1
  552. package/dist/src/components/section/section.js.map +1 -1
  553. package/dist/src/components/section-header/section-header.css.js +1 -1
  554. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  555. package/dist/src/components/section-header/section-header.d.ts +22 -23
  556. package/dist/src/components/section-header/section-header.js +6 -8
  557. package/dist/src/components/section-header/section-header.js.map +1 -1
  558. package/dist/src/components/select/select-option.d.ts +29 -0
  559. package/dist/src/components/select/select-option.js +2 -0
  560. package/dist/src/components/select/select-option.js.map +1 -0
  561. package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
  562. package/dist/src/components/select/select.css.js.map +1 -0
  563. package/dist/src/components/select/select.d.ts +78 -0
  564. package/dist/src/components/select/select.js +35 -0
  565. package/dist/src/components/select/select.js.map +1 -0
  566. package/dist/src/components/shared/adopt-styles.d.ts +53 -0
  567. package/dist/src/components/shared/adopt-styles.js +2 -0
  568. package/dist/src/components/shared/adopt-styles.js.map +1 -0
  569. package/dist/src/components/shared/controller.slot.d.ts +65 -0
  570. package/dist/src/components/shared/controller.slot.js +2 -0
  571. package/dist/src/components/shared/controller.slot.js.map +1 -0
  572. package/dist/src/components/shared/events.d.ts +19 -23
  573. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  574. package/dist/src/components/shared/flat-text.d.ts +15 -0
  575. package/dist/src/components/shared/flat-text.js +2 -0
  576. package/dist/src/components/shared/flat-text.js.map +1 -0
  577. package/dist/src/components/shared/form-control.d.ts +27 -3
  578. package/dist/src/components/shared/form-control.js +11 -1
  579. package/dist/src/components/shared/form-control.js.map +1 -1
  580. package/dist/src/components/shared/form-field.css.d.ts +5 -5
  581. package/dist/src/components/shared/form-field.css.js +1 -1
  582. package/dist/src/components/shared/form-field.css.js.map +1 -1
  583. package/dist/src/components/shared/hold.d.ts +14 -0
  584. package/dist/src/components/shared/hold.js +2 -0
  585. package/dist/src/components/shared/hold.js.map +1 -0
  586. package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
  587. package/dist/src/components/shared/prop-vocabulary.js +1 -1
  588. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  589. package/dist/src/components/shared/tablist.d.ts +31 -0
  590. package/dist/src/components/shared/tablist.js +2 -0
  591. package/dist/src/components/shared/tablist.js.map +1 -0
  592. package/dist/src/components/shared/token-scales.d.ts +30 -4
  593. package/dist/src/components/shared/token-scales.js +1 -1
  594. package/dist/src/components/shared/token-scales.js.map +1 -1
  595. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  596. package/dist/src/components/spinner/spinner.js +2 -2
  597. package/dist/src/components/spinner/spinner.js.map +1 -1
  598. package/dist/src/components/spotlight/spotlight.css.js +2 -0
  599. package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
  600. package/dist/src/components/spotlight/spotlight.d.ts +31 -0
  601. package/dist/src/components/spotlight/spotlight.js +18 -0
  602. package/dist/src/components/spotlight/spotlight.js.map +1 -0
  603. package/dist/src/components/stat/stat-highlight.d.ts +1 -1
  604. package/dist/src/components/stat/stat.css.d.ts +1 -1
  605. package/dist/src/components/stat/stat.css.js +1 -1
  606. package/dist/src/components/stat/stat.css.js.map +1 -1
  607. package/dist/src/components/stat/stat.d.ts +41 -1
  608. package/dist/src/components/stat/stat.js +12 -1
  609. package/dist/src/components/stat/stat.js.map +1 -0
  610. package/dist/src/components/switch/switch.css.js +1 -1
  611. package/dist/src/components/switch/switch.css.js.map +1 -1
  612. package/dist/src/components/switch/switch.d.ts +10 -2
  613. package/dist/src/components/switch/switch.js +5 -4
  614. package/dist/src/components/switch/switch.js.map +1 -1
  615. package/dist/src/components/tab-group/tab-group.css.js +2 -0
  616. package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
  617. package/dist/src/components/tab-group/tab-group.d.ts +172 -0
  618. package/dist/src/components/tab-group/tab-group.js +16 -0
  619. package/dist/src/components/tab-group/tab-group.js.map +1 -0
  620. package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
  621. package/dist/src/components/tab-group/tab-panel.js +2 -0
  622. package/dist/src/components/tab-group/tab-panel.js.map +1 -0
  623. package/dist/src/components/tab-group/tab.css.js +2 -0
  624. package/dist/src/components/tab-group/tab.css.js.map +1 -0
  625. package/dist/src/components/tab-group/tab.d.ts +53 -0
  626. package/dist/src/components/tab-group/tab.js +2 -0
  627. package/dist/src/components/tab-group/tab.js.map +1 -0
  628. package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
  629. package/dist/src/components/table-of-contents/reading-line.js +2 -0
  630. package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
  631. package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
  632. package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
  633. package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
  634. package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
  635. package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
  636. package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
  637. package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
  638. package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
  639. package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
  640. package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
  641. package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
  642. package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
  643. package/dist/src/components/tag/tag.css.js +1 -1
  644. package/dist/src/components/tag/tag.css.js.map +1 -1
  645. package/dist/src/components/tag/tag.d.ts +31 -4
  646. package/dist/src/components/tag/tag.js +1 -3
  647. package/dist/src/components/tag/tag.js.map +1 -1
  648. package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
  649. package/dist/src/components/terminal/terminal-cursor.js +1 -1
  650. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  651. package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
  652. package/dist/src/components/terminal/terminal-line.css.js +2 -0
  653. package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
  654. package/dist/src/components/terminal/terminal-line.d.ts +42 -0
  655. package/dist/src/components/terminal/terminal-line.js +8 -0
  656. package/dist/src/components/terminal/terminal-line.js.map +1 -0
  657. package/dist/src/components/terminal/terminal.css.d.ts +2 -0
  658. package/dist/src/components/terminal/terminal.css.js +2 -0
  659. package/dist/src/components/terminal/terminal.css.js.map +1 -0
  660. package/dist/src/components/terminal/terminal.d.ts +52 -0
  661. package/dist/src/components/terminal/terminal.js +19 -0
  662. package/dist/src/components/terminal/terminal.js.map +1 -0
  663. package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
  664. package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
  665. package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
  666. package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
  667. package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
  668. package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
  669. package/dist/src/components/terms/terms.css.d.ts +2 -0
  670. package/dist/src/components/terms/terms.css.js +2 -0
  671. package/dist/src/components/terms/terms.css.js.map +1 -0
  672. package/dist/src/components/terms/terms.d.ts +42 -0
  673. package/dist/src/components/terms/terms.js +9 -0
  674. package/dist/src/components/terms/terms.js.map +1 -0
  675. package/dist/src/components/textarea/textarea.css.d.ts +2 -2
  676. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  677. package/dist/src/components/textarea/textarea.d.ts +15 -6
  678. package/dist/src/components/textarea/textarea.js +13 -17
  679. package/dist/src/components/textarea/textarea.js.map +1 -1
  680. package/dist/src/components/tooltip/tooltip.d.ts +25 -4
  681. package/dist/src/components/tooltip/tooltip.js +5 -8
  682. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  683. package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
  684. package/dist/src/components/trust-panel/trust-card.css.js +2 -0
  685. package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
  686. package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
  687. package/dist/src/components/trust-panel/trust-card.js +10 -0
  688. package/dist/src/components/trust-panel/trust-card.js.map +1 -0
  689. package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
  690. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  691. package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
  692. package/dist/src/components/trust-panel/trust-panel.js +10 -57
  693. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  694. package/dist/src/components/video/video.js +1 -1
  695. package/dist/src/components/video/video.js.map +1 -1
  696. package/dist/src/components/video-player/video-player.d.ts +25 -3
  697. package/dist/src/components/video-player/video-player.js +7 -7
  698. package/dist/src/components/video-player/video-player.js.map +1 -1
  699. package/dist/src/loader/create-loader.d.ts +13 -2
  700. package/dist/src/loader/create-loader.js +1 -1
  701. package/dist/src/loader/create-loader.js.map +1 -1
  702. package/dist/src/loader/loader.d.ts +7 -4
  703. package/dist/src/loader/loader.js.map +1 -1
  704. package/dist/src/loader/registry.js +1 -1
  705. package/dist/src/loader/registry.js.map +1 -1
  706. package/dist/src/tokens/fonts.css +1 -1
  707. package/dist/src/tokens/layout.css +1 -1
  708. package/dist/src/tokens/scheme-layer.d.ts +55 -0
  709. package/dist/src/tokens/scheme-layer.js +5 -0
  710. package/dist/src/tokens/scheme-layer.js.map +1 -0
  711. package/dist/src/tokens/themes/dark.d.ts +64 -0
  712. package/dist/src/tokens/themes/dark.js +2 -0
  713. package/dist/src/tokens/themes/dark.js.map +1 -0
  714. package/dist/src/tokens/tokens.css +1 -1
  715. package/dist/src/tokens/tokens.d.ts +4 -25
  716. package/dist/src/tokens/tokens.js +1 -1
  717. package/dist/src/tokens/tokens.js.map +1 -1
  718. package/dist/src/vendor/prism/LICENSE +21 -0
  719. package/dist/src/vendor/prism/README.md +65 -0
  720. package/dist/src/vendor/prism/prism.d.ts +7 -0
  721. package/dist/src/vendor/prism/prism.js +13 -0
  722. package/package.json +163 -105
  723. package/schemas/README.md +55 -1
  724. package/schemas/component-manifest.json +4546 -3215
  725. package/schemas/figma-component-map.json +3247 -0
  726. package/schemas/manifest-omissions.json +1 -26
  727. package/schemas/page-schema.json +28 -1
  728. package/dist/src/components/accordion/accordion-bg.css.js +0 -2
  729. package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
  730. package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
  731. package/dist/src/components/accordion/accordion-bg.js +0 -76
  732. package/dist/src/components/accordion/accordion-bg.js.map +0 -1
  733. package/dist/src/components/alert/alert.css.js +0 -2
  734. package/dist/src/components/alert/alert.css.js.map +0 -1
  735. package/dist/src/components/alert/alert.d.ts +0 -55
  736. package/dist/src/components/alert/alert.js +0 -28
  737. package/dist/src/components/alert/alert.js.map +0 -1
  738. package/dist/src/components/anchor/anchor-nav.css.js +0 -2
  739. package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
  740. package/dist/src/components/anchor/anchor-nav.js +0 -67
  741. package/dist/src/components/anchor/anchor-nav.js.map +0 -1
  742. package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
  743. package/dist/src/components/awards/awards-flex.css.js +0 -2
  744. package/dist/src/components/awards/awards-flex.css.js.map +0 -1
  745. package/dist/src/components/awards/awards-flex.d.ts +0 -65
  746. package/dist/src/components/awards/awards-flex.js +0 -68
  747. package/dist/src/components/awards/awards-flex.js.map +0 -1
  748. package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
  749. package/dist/src/components/awards/awards-spotlight.css.js +0 -2
  750. package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
  751. package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
  752. package/dist/src/components/awards/awards-spotlight.js +0 -51
  753. package/dist/src/components/awards/awards-spotlight.js.map +0 -1
  754. package/dist/src/components/card-features/card-features.css.js +0 -2
  755. package/dist/src/components/card-features/card-features.css.js.map +0 -1
  756. package/dist/src/components/card-features/card-features.d.ts +0 -43
  757. package/dist/src/components/card-features/card-features.js +0 -37
  758. package/dist/src/components/card-features/card-features.js.map +0 -1
  759. package/dist/src/components/cards/card.css.js +0 -2
  760. package/dist/src/components/cards/card.css.js.map +0 -1
  761. package/dist/src/components/cards/card.d.ts +0 -61
  762. package/dist/src/components/cards/card.js +0 -54
  763. package/dist/src/components/cards/card.js.map +0 -1
  764. package/dist/src/components/compare/compare.css.js +0 -2
  765. package/dist/src/components/compare/compare.css.js.map +0 -1
  766. package/dist/src/components/compare/compare.d.ts +0 -79
  767. package/dist/src/components/compare/compare.js +0 -122
  768. package/dist/src/components/compare/compare.js.map +0 -1
  769. package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
  770. package/dist/src/components/divider/divider-horizontal.js +0 -11
  771. package/dist/src/components/divider/divider-horizontal.js.map +0 -1
  772. package/dist/src/components/divider/divider-vertical.d.ts +0 -16
  773. package/dist/src/components/divider/divider-vertical.js +0 -12
  774. package/dist/src/components/divider/divider-vertical.js.map +0 -1
  775. package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
  776. package/dist/src/components/dropdown/dropdown.d.ts +0 -49
  777. package/dist/src/components/dropdown/dropdown.js +0 -36
  778. package/dist/src/components/dropdown/dropdown.js.map +0 -1
  779. package/dist/src/components/features/features.css.js +0 -2
  780. package/dist/src/components/features/features.css.js.map +0 -1
  781. package/dist/src/components/features/features.d.ts +0 -21
  782. package/dist/src/components/features/features.js +0 -28
  783. package/dist/src/components/features/features.js.map +0 -1
  784. package/dist/src/components/footer/footer-images.d.ts +0 -3
  785. package/dist/src/components/footer/footer-images.js +0 -9
  786. package/dist/src/components/footer/footer-images.js.map +0 -1
  787. package/dist/src/components/footer/footer-links-group.css.js +0 -2
  788. package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
  789. package/dist/src/components/footer/footer-links-group.d.ts +0 -13
  790. package/dist/src/components/footer/footer-links-group.js +0 -5
  791. package/dist/src/components/footer/footer-links-group.js.map +0 -1
  792. package/dist/src/components/footer/footer-lp.d.ts +0 -26
  793. package/dist/src/components/footer/footer-lp.js +0 -45
  794. package/dist/src/components/footer/footer-lp.js.map +0 -1
  795. package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
  796. package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
  797. package/dist/src/components/footer/footer-nav-menu.js +0 -6
  798. package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
  799. package/dist/src/components/header/header-code.css.js +0 -2
  800. package/dist/src/components/header/header-code.css.js.map +0 -1
  801. package/dist/src/components/header/header-code.d.ts +0 -50
  802. package/dist/src/components/header/header-code.js +0 -80
  803. package/dist/src/components/header/header-code.js.map +0 -1
  804. package/dist/src/components/header/header.css.js +0 -2
  805. package/dist/src/components/header/header.css.js.map +0 -1
  806. package/dist/src/components/header/header.d.ts +0 -32
  807. package/dist/src/components/header/header.js +0 -165
  808. package/dist/src/components/header/header.js.map +0 -1
  809. package/dist/src/components/heading/heading.css.js +0 -2
  810. package/dist/src/components/heading/heading.css.js.map +0 -1
  811. package/dist/src/components/heading/heading.js +0 -6
  812. package/dist/src/components/heading/heading.js.map +0 -1
  813. package/dist/src/components/help-text/help-text.css.d.ts +0 -3
  814. package/dist/src/components/help-text/help-text.css.js.map +0 -1
  815. package/dist/src/components/help-text/help-text.d.ts +0 -14
  816. package/dist/src/components/help-text/help-text.js +0 -4
  817. package/dist/src/components/help-text/help-text.js.map +0 -1
  818. package/dist/src/components/icons/analysis-icon.d.ts +0 -11
  819. package/dist/src/components/icons/analysis-icon.js +0 -6
  820. package/dist/src/components/icons/analysis-icon.js.map +0 -1
  821. package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
  822. package/dist/src/components/icons/arrow-down-icon.js +0 -6
  823. package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
  824. package/dist/src/components/icons/arrow-icon.d.ts +0 -37
  825. package/dist/src/components/icons/arrow-icon.js +0 -6
  826. package/dist/src/components/icons/arrow-icon.js.map +0 -1
  827. package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
  828. package/dist/src/components/icons/arrow-right-icon.js +0 -6
  829. package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
  830. package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
  831. package/dist/src/components/icons/arrow-up-icon.js +0 -6
  832. package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
  833. package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
  834. package/dist/src/components/icons/av-comparatives-icon.js +0 -13
  835. package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
  836. package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
  837. package/dist/src/components/icons/bd-ai-icon.js +0 -6
  838. package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
  839. package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
  840. package/dist/src/components/icons/best-brands-icon.js +0 -15
  841. package/dist/src/components/icons/best-brands-icon.js.map +0 -1
  842. package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
  843. package/dist/src/components/icons/brand-signature-icon.js +0 -6
  844. package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
  845. package/dist/src/components/icons/check-icon.d.ts +0 -22
  846. package/dist/src/components/icons/check-icon.js +0 -6
  847. package/dist/src/components/icons/check-icon.js.map +0 -1
  848. package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
  849. package/dist/src/components/icons/circle-info-icon.js +0 -8
  850. package/dist/src/components/icons/circle-info-icon.js.map +0 -1
  851. package/dist/src/components/icons/close-icon.d.ts +0 -11
  852. package/dist/src/components/icons/close-icon.js +0 -6
  853. package/dist/src/components/icons/close-icon.js.map +0 -1
  854. package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
  855. package/dist/src/components/icons/enterprise-icon.js +0 -6
  856. package/dist/src/components/icons/enterprise-icon.js.map +0 -1
  857. package/dist/src/components/icons/family-icon.d.ts +0 -11
  858. package/dist/src/components/icons/family-icon.js +0 -8
  859. package/dist/src/components/icons/family-icon.js.map +0 -1
  860. package/dist/src/components/icons/globe-icon.d.ts +0 -11
  861. package/dist/src/components/icons/globe-icon.js +0 -6
  862. package/dist/src/components/icons/globe-icon.js.map +0 -1
  863. package/dist/src/components/icons/guide-icon.d.ts +0 -11
  864. package/dist/src/components/icons/guide-icon.js +0 -6
  865. package/dist/src/components/icons/guide-icon.js.map +0 -1
  866. package/dist/src/components/icons/home-icon.d.ts +0 -11
  867. package/dist/src/components/icons/home-icon.js +0 -6
  868. package/dist/src/components/icons/home-icon.js.map +0 -1
  869. package/dist/src/components/icons/icon-element.d.ts +0 -58
  870. package/dist/src/components/icons/icon-element.js +0 -2
  871. package/dist/src/components/icons/icon-element.js.map +0 -1
  872. package/dist/src/components/icons/individual-icon.d.ts +0 -11
  873. package/dist/src/components/icons/individual-icon.js +0 -6
  874. package/dist/src/components/icons/individual-icon.js.map +0 -1
  875. package/dist/src/components/icons/laurel-icon.d.ts +0 -11
  876. package/dist/src/components/icons/laurel-icon.js +0 -14
  877. package/dist/src/components/icons/laurel-icon.js.map +0 -1
  878. package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
  879. package/dist/src/components/icons/machine-learning-icon.js +0 -6
  880. package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
  881. package/dist/src/components/icons/minus-icon.d.ts +0 -11
  882. package/dist/src/components/icons/minus-icon.js +0 -7
  883. package/dist/src/components/icons/minus-icon.js.map +0 -1
  884. package/dist/src/components/icons/missing-icon.d.ts +0 -41
  885. package/dist/src/components/icons/missing-icon.js +0 -8
  886. package/dist/src/components/icons/missing-icon.js.map +0 -1
  887. package/dist/src/components/icons/pause-icon.d.ts +0 -11
  888. package/dist/src/components/icons/pause-icon.js +0 -7
  889. package/dist/src/components/icons/pause-icon.js.map +0 -1
  890. package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
  891. package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
  892. package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
  893. package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
  894. package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
  895. package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
  896. package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
  897. package/dist/src/components/icons/pc-mag-icon.js +0 -14
  898. package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
  899. package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
  900. package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
  901. package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
  902. package/dist/src/components/icons/play-icon.d.ts +0 -11
  903. package/dist/src/components/icons/play-icon.js +0 -6
  904. package/dist/src/components/icons/play-icon.js.map +0 -1
  905. package/dist/src/components/icons/plus-icon.d.ts +0 -11
  906. package/dist/src/components/icons/plus-icon.js +0 -6
  907. package/dist/src/components/icons/plus-icon.js.map +0 -1
  908. package/dist/src/components/icons/quote-icon.d.ts +0 -20
  909. package/dist/src/components/icons/quote-icon.js +0 -6
  910. package/dist/src/components/icons/quote-icon.js.map +0 -1
  911. package/dist/src/components/icons/small-business-icon.d.ts +0 -11
  912. package/dist/src/components/icons/small-business-icon.js +0 -6
  913. package/dist/src/components/icons/small-business-icon.js.map +0 -1
  914. package/dist/src/components/icons/top-product-icon.d.ts +0 -13
  915. package/dist/src/components/icons/top-product-icon.js +0 -14
  916. package/dist/src/components/icons/top-product-icon.js.map +0 -1
  917. package/dist/src/components/image/image.css.js.map +0 -1
  918. package/dist/src/components/image/image.js +0 -17
  919. package/dist/src/components/image/image.js.map +0 -1
  920. package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
  921. package/dist/src/components/input/input-clipboard.css.js +0 -2
  922. package/dist/src/components/input/input-clipboard.css.js.map +0 -1
  923. package/dist/src/components/input/input-clipboard.d.ts +0 -52
  924. package/dist/src/components/input/input-clipboard.js +0 -62
  925. package/dist/src/components/input/input-clipboard.js.map +0 -1
  926. package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
  927. package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
  928. package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
  929. package/dist/src/components/light-carousel/light-carousel.js +0 -34
  930. package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
  931. package/dist/src/components/modal/modal.css.js +0 -2
  932. package/dist/src/components/modal/modal.css.js.map +0 -1
  933. package/dist/src/components/modal/modal.d.ts +0 -52
  934. package/dist/src/components/modal/modal.js +0 -17
  935. package/dist/src/components/modal/modal.js.map +0 -1
  936. package/dist/src/components/paragraph/paragraph.css.js +0 -2
  937. package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
  938. package/dist/src/components/paragraph/paragraph.js +0 -6
  939. package/dist/src/components/paragraph/paragraph.js.map +0 -1
  940. package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
  941. package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
  942. package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
  943. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
  944. package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
  945. package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
  946. package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
  947. package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
  948. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
  949. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
  950. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
  951. package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
  952. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
  953. package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
  954. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
  955. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
  956. package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
  957. package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
  958. package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
  959. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
  960. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
  961. package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
  962. package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
  963. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
  964. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
  965. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
  966. package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
  967. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
  968. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
  969. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
  970. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
  971. package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
  972. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
  973. package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
  974. package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
  975. package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
  976. package/dist/src/components/pricing-cards/pricing-card.js +0 -258
  977. package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
  978. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
  979. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
  980. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
  981. package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
  982. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
  983. package/dist/src/components/progress/progress.css.d.ts +0 -3
  984. package/dist/src/components/progress/progress.css.js +0 -2
  985. package/dist/src/components/progress/progress.css.js.map +0 -1
  986. package/dist/src/components/progress/progress.d.ts +0 -19
  987. package/dist/src/components/progress/progress.js +0 -11
  988. package/dist/src/components/progress/progress.js.map +0 -1
  989. package/dist/src/components/radio/toggle-radio.d.ts +0 -28
  990. package/dist/src/components/radio/toggle-radio.js +0 -15
  991. package/dist/src/components/radio/toggle-radio.js.map +0 -1
  992. package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
  993. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
  994. package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
  995. package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
  996. package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
  997. package/dist/src/components/stat/stat-tile.d.ts +0 -24
  998. package/dist/src/components/stat/stat-tile.js +0 -7
  999. package/dist/src/components/stat/stat-tile.js.map +0 -1
  1000. package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
  1001. package/dist/src/components/tab-list/tab-list.css.js +0 -2
  1002. package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
  1003. package/dist/src/components/tab-list/tab-list.d.ts +0 -99
  1004. package/dist/src/components/tab-list/tab-list.js +0 -25
  1005. package/dist/src/components/tab-list/tab-list.js.map +0 -1
  1006. package/dist/src/components/tabs/tabs.css.js +0 -2
  1007. package/dist/src/components/tabs/tabs.css.js.map +0 -1
  1008. package/dist/src/components/tabs/tabs.d.ts +0 -69
  1009. package/dist/src/components/tabs/tabs.js +0 -29
  1010. package/dist/src/components/tabs/tabs.js.map +0 -1
  1011. package/dist/src/components/terminal/terminal-message.css.js +0 -2
  1012. package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
  1013. package/dist/src/components/terminal/terminal-message.d.ts +0 -44
  1014. package/dist/src/components/terminal/terminal-message.js +0 -68
  1015. package/dist/src/components/terminal/terminal-message.js.map +0 -1
  1016. package/dist/src/components/termsOfUse/terms.css.js +0 -2
  1017. package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
  1018. package/dist/src/components/termsOfUse/terms.d.ts +0 -22
  1019. package/dist/src/components/termsOfUse/terms.js +0 -78
  1020. package/dist/src/components/termsOfUse/terms.js.map +0 -1
  1021. /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
  1022. /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
  1023. /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
  1024. /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
  1025. /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
  1026. /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
  1027. /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
  1028. /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
  1029. /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
  1030. /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
  1031. /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
  1032. /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
  1033. /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
  1034. /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
  1035. /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
  1036. /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
  1037. /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
  1038. /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
  1039. /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
  1040. /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
  1041. /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
  1042. /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
  1043. /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
  1044. /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
  1045. /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
  1046. /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
  1047. /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
  1048. /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
@@ -2,138 +2,129 @@ import { LitElement, nothing, type PropertyValues } from "lit";
2
2
  import { type Size } from "../shared/prop-vocabulary.js";
3
3
  import "../../tokens/tokens.js";
4
4
  import { type FontSizeStep, type FontWeightStep } from "../shared/token-scales.js";
5
- import "../icons/arrow-icon.js";
6
- declare const VARIANTS: readonly ["primary", "secondary", "tertiary", "ghost", "accent", "white", "outline-white"];
5
+ import { SlotController } from "../shared/controller.slot.js";
6
+ import { ObserverController } from "../shared/controller.observer.js";
7
+ import "../icons/arrow.js";
8
+ declare const APPEARANCES: readonly ["primary", "secondary", "tertiary", "ghost", "accent", "plain", "white", "outline-white"];
7
9
  declare const SURFACES: readonly ["light", "dark", "brand"];
8
10
  declare const SHAPES: readonly ["default", "rounded"];
9
11
  declare const TYPES: readonly ["button", "submit", "reset"];
10
- type Variant = typeof VARIANTS[number];
12
+ type Appearance = typeof APPEARANCES[number];
11
13
  type Surface = typeof SURFACES[number];
12
14
  type Shape = typeof SHAPES[number];
13
15
  type ButtonType = typeof TYPES[number];
14
16
  type Align = "left" | "center" | "right";
17
+ type Slot = "" | "start" | "end";
18
+ declare const BdButton_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
15
19
  /**
16
- * Everything bd-button and bd-button-link share.
20
+ * One control, two elements, and the element is decided by what it does.
17
21
  *
18
- * They differ only in the element they render, and that difference is
19
- * semantic rather than visual: <button> performs an action in place, <a href>
20
- * navigates. No CSS substitutes for it — only the link appears in a screen
21
- * reader's list of links and offers open-in-new-tab, and only the button
22
- * responds to Space as well as Enter.
22
+ * With `href` (or `buy-link`, whose href the store fills) it renders an
23
+ * `<a>`: it navigates, appears in a screen reader's list of links, and offers
24
+ * open-in-new-tab, middle-click and copy-address; `target`, `rel` and
25
+ * `download` apply to it and to nothing else. Without one it renders a
26
+ * `<button>`: it performs an action in place, and answers Space as well as
27
+ * Enter. No CSS substitutes for that difference, which is why it is the
28
+ * attribute that makes a link in HTML and in Web Awesome, rather than a look.
29
+ * Until 4.0 the two were bd-button and bd-button-link, and bd-contact-button
30
+ * a third tag for one link with an arrow; they were the same structure, so
31
+ * they are one element (N2).
23
32
  *
24
- * That element is exposed as part="button", for what only the element that
25
- * takes the click can do -- a stretched-link ::after across a card, as
26
- * bd-audience-card draws. Width has its own hook, --bd-button-width, because a
27
- * part cannot be reached through ::slotted().
33
+ * The element that takes the click is exposed as part="button", for what only
34
+ * it can do -- a stretched-link ::after across a card, as bd-audience-card
35
+ * draws. Width has its own hook, --bd-button-width, because a part cannot be
36
+ * reached through ::slotted().
37
+ *
38
+ * ICON-ONLY. A button whose whole content is one <bd-icon> with a `label` is a
39
+ * circle around that icon, named by the label. There is no attribute for it:
40
+ * the content says so, as Web Awesome names the icon rather than the button.
41
+ * The label is copied onto the control as its aria-label, because the icon's
42
+ * name is set inside the icon and a reference from here cannot reach it.
43
+ *
44
+ * IN A FORM. The <button> is in this shadow root, where it has no form owner,
45
+ * so a type on it could never reach a form. The element is form-associated
46
+ * instead (shared/form-control.ts) and does the submit or reset itself:
47
+ * requestSubmit(), so the form validates first and fires submit as it would
48
+ * for a native button, or reset(). A <fieldset disabled> around it disables
49
+ * it too (a link it leaves alone, as it leaves a native <a>), and el.click()
50
+ * presses it -- once. `type` defaults to "button", not
51
+ * the native "submit": every bd-button on a page was written to do nothing to
52
+ * its form, and stays that way. A link has no type; it is ignored with href.
53
+ *
54
+ * EVENTS. The native `click`. It used to dispatch custom-click as well, a
55
+ * second name for the same press; a page listens for click, as on any
56
+ * button. A disabled or loading button stops the click before it leaves
57
+ * this shadow root, so a listener on the element hears only presses that
58
+ * did something.
28
59
  */
29
- declare class BdButtonBase extends LitElement {
60
+ export declare class BdButton extends BdButton_base {
30
61
  static styles: import("lit").CSSResult[];
31
- label: string;
62
+ appearance: Appearance;
32
63
  size: Size | "";
33
- variant: Variant;
34
- /** @deprecated pass `variant`. kind meant four different things across the
35
- atoms; on this one it always meant appearance. */
36
- kind: string;
64
+ surface: Surface;
65
+ /** "rounded" takes the pill corner; see .button--rounded. */
66
+ shape: Shape;
67
+ align: Align;
37
68
  fullWidth: boolean;
38
69
  strong: boolean;
39
70
  disabled: boolean;
40
71
  loading: boolean;
41
72
  fontSize: FontSizeStep | "";
42
73
  fontWeight: FontWeightStep | "";
43
- align: Align;
44
- surface: Surface;
45
- /** "rounded" takes the pill corner; see .button--rounded. */
46
- shape: Shape;
47
- /** The accent variant reveals a trailing arrow on hover; this opts out. */
48
- noArrow: boolean;
49
- iconOnly: boolean;
74
+ /** The accent appearance reveals a trailing arrow on hover; this removes it. */
75
+ withoutArrow: boolean;
76
+ label: string;
50
77
  description: string;
78
+ /** What the button does to its form. Without href only. */
79
+ type: ButtonType;
80
+ href: string;
81
+ target: string;
82
+ rel: string;
83
+ download: string | null;
84
+ buyLink: boolean;
85
+ protected _slots: SlotController<Slot>;
86
+ protected _labels: ObserverController<MutationObserver>;
87
+ connectedCallback(): void;
51
88
  willUpdate(changed: PropertyValues<this>): void;
89
+ /** It renders an <a>: it has somewhere to go, or the store will give it one. */
90
+ get _isLink(): boolean;
52
91
  get _inert(): boolean;
53
- get _hasArrow(): boolean;
54
- get _classes(): string;
92
+ /**
93
+ * The label of the one bd-icon that is the whole content, or "" when the
94
+ * button has any other content -- text, a second element, a decoration in
95
+ * start or end -- or the icon has no label. Detected by tag name: the icon
96
+ * is another module's, and a button must not import every drawing to ask.
97
+ */
98
+ get _iconLabel(): string;
99
+ _hasArrow(iconOnly: boolean): boolean;
100
+ _classes(iconOnly: boolean): string;
55
101
  /**
56
102
  * font-size and font-weight are step names resolved to token references by
57
103
  * shared/token-scales.ts; anything off-scale is dropped.
58
104
  */
59
105
  get _inlineStyle(): string;
60
- /** The spinner is decorative — aria-busy on the control carries the state. */
61
- get _content(): import("lit-html").TemplateResult<1>;
62
106
  /**
63
- * One glyph, never a glyph and a spinner side by side: the circle holds a
64
- * single item, so loading replaces the icon rather than joining it.
107
+ * The spinner is decorative -- aria-busy on the control carries the state --
108
+ * and it comes first, ahead of the decorations.
65
109
  *
66
- * The icon is a slot so any bd-*-icon can go in; with nothing slotted it is
67
- * the arrow, the system's only true shafted arrow and the default the Figma
68
- * sets draw. The button and icon scales share step names -- sm 16, md 20,
69
- * lg 24 against padding 8, 12 and 16 -- and the circle comes out 32, 44 and
70
- * 56. The glyph reads its step from --bd-button-icon-size through
71
- * .button__icon rather than a size attribute, so the responsive default
72
- * resizes it at the breakpoint along with the circle.
110
+ * All three slots are always rendered, so a decoration or a label added
111
+ * later is assigned and heard. start and end are display: contents, so an
112
+ * empty one draws no box and takes no gap; the label's box is hidden while
113
+ * it is empty, for the same reason. On an icon-only button the label's box
114
+ * gives way to the circle (button.css.ts, SHAPE -- icon-only), and while it
115
+ * is loading the spinner takes the icon's place.
73
116
  */
74
- get _describedBy(): typeof nothing | "description";
75
- get _description(): typeof nothing | import("lit-html").TemplateResult<1>;
76
- get _iconContent(): import("lit-html").TemplateResult<1>;
77
- _handleClick(e: MouseEvent): void;
78
- }
79
- declare const Button_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof BdButtonBase;
80
- /**
81
- * Performs an action in place -- and, with type="submit" or "reset", that
82
- * action is the form it sits in.
83
- *
84
- * The <button> it renders is in this shadow root, where it has no form owner,
85
- * so a type on it could never reach a form: a page that wanted bd-button to
86
- * submit had to fall back to a native one. The element is form-associated
87
- * instead (shared/form-control.ts), and does the submit or reset itself:
88
- * requestSubmit(), so the form validates first and fires submit as it would
89
- * for a native button, or reset(). A <fieldset disabled> around it disables
90
- * it too, and el.click() presses it.
91
- *
92
- * type defaults to "button", not the native "submit": every bd-button on a
93
- * page today was written to do nothing to its form, and stays that way.
94
- */
95
- declare class Button extends Button_base {
96
- type: ButtonType;
97
- willUpdate(changed: PropertyValues<this>): void;
117
+ _content(iconOnly: boolean): import("lit-html").TemplateResult<1>;
118
+ get _description(): import("lit-html").TemplateResult<1> | typeof nothing;
119
+ get _rel(): string;
98
120
  protected get _control(): HTMLButtonElement | null;
99
- get _inert(): boolean;
100
121
  protected _activate(): void;
101
- _handleClick(e: MouseEvent): void;
102
- render(): import("lit-html").TemplateResult<1>;
103
- }
104
- /** Navigates. Looks identical; is not the same control. */
105
- declare class ButtonLink extends BdButtonBase {
106
- href: string;
107
- buyLink: boolean;
108
- target: string;
109
- rel: string;
110
- constructor();
111
- connectedCallback(): void;
112
- willUpdate(changed: PropertyValues<this>): void;
113
- get _rel(): string;
114
- render(): import("lit-html").TemplateResult<1>;
115
- }
116
- /**
117
- * A fixed "Contact us" CTA — a preset rather than a variant, with no size or
118
- * kind axis. Its trailing arrow is bd-arrow-icon, an atom.
119
- */
120
- declare class ContactButton extends LitElement {
121
- static styles: import("lit").CSSResult[];
122
- label: string;
123
- href: string;
124
- align: Align;
125
- shape: Shape;
126
- _handleClick(): void;
122
+ _onClick(e: MouseEvent): void;
127
123
  render(): import("lit-html").TemplateResult<1>;
128
124
  }
129
125
  declare global {
130
126
  interface HTMLElementTagNameMap {
131
- "bd-button": Button;
132
- "bd-button-link": ButtonLink;
133
- "bd-contact-button": ContactButton;
134
- }
135
- interface HTMLElementEventMap {
136
- "custom-click": CustomEvent<null>;
127
+ "bd-button": BdButton;
137
128
  }
138
129
  }
139
130
  export {};
@@ -1,42 +1,29 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{fontSize as t,fontWeight as n}from"../shared/token-scales.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{isOneOf as i}from"../shared/prop-vocabulary.js";import a from"./button.css.js";import{FormControl as o}from"../shared/form-control.js";import"../icons/arrow-icon.js";import{LitElement as s,html as c,nothing as l}from"lit";import{property as u}from"lit/decorators.js";var d=[`primary`,`secondary`,`tertiary`,`ghost`,`accent`,`white`,`outline-white`],f={outline:`ghost`,"primary-outline":`tertiary`,danger:`accent`,destructive:`accent`},p={sm:`button--small`,md:`button--medium`,lg:`button--large`},m=`button--responsive`,h=[`light`,`dark`,`brand`],g=[`default`,`rounded`],_=[`button`,`submit`,`reset`],v=()=>new CustomEvent(`custom-click`,{bubbles:!0,composed:!0}),y=class extends s{constructor(...e){super(...e),this.label=``,this.size=``,this.variant=`primary`,this.kind=``,this.fullWidth=!1,this.strong=!1,this.disabled=!1,this.loading=!1,this.fontSize=``,this.fontWeight=``,this.align=`left`,this.surface=`light`,this.shape=`default`,this.noArrow=!1,this.iconOnly=!1,this.description=``}static{this.styles=[a]}willUpdate(e){e.has(`kind`)&&this.kind&&(this.variant=this.kind),(e.has(`variant`)||e.has(`kind`))&&(f[this.variant]&&(this.variant=f[this.variant]),i(d,this.variant)||(this.variant=`primary`)),e.has(`size`)&&!p[this.size]&&(this.size=``),e.has(`surface`)&&!i(h,this.surface)&&(this.surface=`light`),e.has(`shape`)&&!i(g,this.shape)&&(this.shape=`default`)}get _inert(){return this.disabled||this.loading}get _hasArrow(){return this.variant===`accent`&&!this.noArrow&&!this._inert&&!this.iconOnly}get _classes(){return[`button`,`button--${this.variant}`,p[this.size]||m,this.iconOnly?`button--icon-only`:``,this.fullWidth&&!this.iconOnly?`max--width`:``,this.strong?`button--bold`:``,this.shape===`rounded`&&!this.iconOnly?`button--rounded`:``,this._hasArrow?`button--with-arrow`:``,this.loading?`button--loading`:``].filter(Boolean).join(` `)}get _inlineStyle(){return[[`font-size`,t(this.fontSize)],[`font-weight`,n(this.fontWeight)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t};`).join(` `)}get _content(){return this.iconOnly?this._iconContent:c`${this.loading?c`<span class="spinner" aria-hidden="true"></span>`:l}<span class="button__label"><slot>${this.label}</slot></span>${this._hasArrow?c`<bd-arrow-icon class="button__arrow" aria-hidden="true"></bd-arrow-icon>`:l}`}get _describedBy(){return this.description?`description`:l}get _description(){return this.description?c`<span id="description" hidden>${this.description}</span>`:l}get _iconContent(){return this.loading?c`<span class="spinner" aria-hidden="true"></span>`:c`<slot><bd-arrow-icon class="button__icon" aria-hidden="true"></bd-arrow-icon></slot>`}_handleClick(e){this._inert?(e.preventDefault(),e.stopPropagation()):this.dispatchEvent(v())}};r([u({type:String})],y.prototype,`label`,void 0),r([u({type:String})],y.prototype,`size`,void 0),r([u({type:String,reflect:!0})],y.prototype,`variant`,void 0),r([u({type:String})],y.prototype,`kind`,void 0),r([u({type:Boolean,attribute:`fullwidth`})],y.prototype,`fullWidth`,void 0),r([u({type:Boolean})],y.prototype,`strong`,void 0),r([u({type:Boolean,reflect:!0})],y.prototype,`disabled`,void 0),r([u({type:Boolean,reflect:!0})],y.prototype,`loading`,void 0),r([u({type:String,attribute:`font-size`})],y.prototype,`fontSize`,void 0),r([u({type:String,attribute:`font-weight`})],y.prototype,`fontWeight`,void 0),r([u({type:String})],y.prototype,`align`,void 0),r([u({type:String,reflect:!0})],y.prototype,`surface`,void 0),r([u({type:String,reflect:!0})],y.prototype,`shape`,void 0),r([u({type:Boolean,attribute:`no-arrow`})],y.prototype,`noArrow`,void 0),r([u({type:Boolean,attribute:`icon-only`,reflect:!0})],y.prototype,`iconOnly`,void 0),r([u({type:String})],y.prototype,`description`,void 0);var b=class extends o(y){constructor(...e){super(...e),this.type=`button`}willUpdate(e){super.willUpdate(e),e.has(`type`)&&!i(_,this.type)&&(this.type=`button`)}get _control(){return this.renderRoot?.querySelector?.(`button`)}get _inert(){return super._inert||this._formDisabled}_activate(){this._control?.click()}_handleClick(e){super._handleClick(e),!this._inert&&(this.type===`submit`?this.form?.requestSubmit():this.type===`reset`&&this.form?.reset())}render(){return c`
2
- <button
1
+ import{fontSize as e,fontWeight as t}from"../shared/token-scales.js";import{defineElement as n}from"../shared/define-element.js";import"../../tokens/tokens.js";import{SIZES as r,isOneOf as i}from"../shared/prop-vocabulary.js";import a from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ObserverController as o}from"../shared/controller.observer.js";import{SlotController as s}from"../shared/controller.slot.js";import"../icons/arrow.js";import c from"./button.css.js";import{FormControl as l}from"../shared/form-control.js";import{LitElement as u,html as d,nothing as f}from"lit";import{property as p}from"lit/decorators.js";var m=[`primary`,`secondary`,`tertiary`,`ghost`,`accent`,`plain`,`white`,`outline-white`],h=[`light`,`dark`,`brand`],g=[`default`,`rounded`],_=[`button`,`submit`,`reset`],v={sm:`button--small`,md:`button--medium`,lg:`button--large`},y=`button--responsive`,b=class extends l(u){constructor(...e){super(...e),this.appearance=`primary`,this.size=``,this.surface=`light`,this.shape=`default`,this.align=`left`,this.fullWidth=!1,this.strong=!1,this.disabled=!1,this.loading=!1,this.fontSize=``,this.fontWeight=``,this.withoutArrow=!1,this.label=``,this.description=``,this.type=`button`,this.href=``,this.target=``,this.rel=``,this.download=null,this.buyLink=!1,this._slots=new s(this,{slots:[``,`start`,`end`],text:[``]}),this._labels=new o(this,()=>new MutationObserver(()=>this.requestUpdate()),e=>e.observe(this,{subtree:!0,attributes:!0,attributeFilter:[`label`]}))}static{this.styles=[c]}connectedCallback(){super.connectedCallback(),this.toggleAttribute(`data-bd-watch-shadow`,this.buyLink)}willUpdate(e){super.willUpdate(e),e.has(`appearance`)&&!i(m,this.appearance)&&(this.appearance=`primary`),e.has(`size`)&&this.size&&!i(r,this.size)&&(this.size=``),e.has(`surface`)&&!i(h,this.surface)&&(this.surface=`light`),e.has(`shape`)&&!i(g,this.shape)&&(this.shape=`default`),e.has(`type`)&&!i(_,this.type)&&(this.type=`button`),e.has(`buyLink`)&&this.isConnected&&this.toggleAttribute(`data-bd-watch-shadow`,this.buyLink)}get _isLink(){return!!this.href||this.buyLink}get _inert(){return this.disabled||this.loading||!this._isLink&&this._formDisabled}get _iconLabel(){if(this._slots.has(`start`)||this._slots.has(`end`))return``;let[e,...t]=this._slots.elements(``);return!e||t.length||e.localName!==`bd-icon`||this._slots.text(``)?``:e.getAttribute(`label`)?.trim()??``}_hasArrow(e){return this.appearance===`accent`&&!this.withoutArrow&&!this._inert&&!e&&!this._slots.has(`end`)}_classes(e){return[`button`,`button--${this.appearance}`,this.size&&v[this.size]||y,e?`button--icon-only`:``,this.fullWidth&&!e?`max--width`:``,this.strong?`button--bold`:``,this.shape===`rounded`&&!e?`button--rounded`:``,this._hasArrow(e)?`button--with-arrow`:``,this.loading?`button--loading`:``].filter(Boolean).join(` `)}get _inlineStyle(){return[[`font-size`,e(this.fontSize)],[`font-weight`,t(this.fontWeight)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t};`).join(` `)}_content(e){return d`${this.loading?d`<span class="spinner" aria-hidden="true"></span>`:f}<slot name="start"></slot><span class="button__label" ?hidden=${!this._slots.has(``)}><slot></slot></span><slot name="end"></slot>${this._hasArrow(e)?d`<bd-icon name="arrow" class="button__arrow" aria-hidden="true"></bd-icon>`:f}`}get _description(){return this.description?d`<span id="description" hidden>${this.description}</span>`:f}get _rel(){return this.rel?this.rel:this.target===`_blank`?`noopener noreferrer`:``}get _control(){return this.renderRoot?.querySelector?.(`button.button`)??null}_activate(){this.renderRoot?.querySelector(`.button`)?.click()}_onClick(e){this._inert?(e.preventDefault(),e.stopPropagation()):!this._isLink&&this.form&&(this.type===`submit`?HTMLFormElement.prototype.requestSubmit.call(this.form):this.type===`reset`&&HTMLFormElement.prototype.reset.call(this.form))}render(){let e=this._iconLabel,t=!!e,n=this.label||e||f,r=this.description?`description`:f;if(!this._isLink)return d`<button
3
2
  type="button"
4
3
  part="button"
5
- class="${this._classes}"
6
- aria-label="${this.label||l}"
7
- aria-busy="${this.loading?`true`:l}"
8
- aria-describedby="${this._describedBy}"
4
+ class="${this._classes(t)}"
5
+ aria-label="${n}"
6
+ aria-busy="${this.loading?`true`:f}"
7
+ aria-describedby="${r}"
9
8
  ?disabled="${this.disabled||this._formDisabled}"
10
9
  style="${this._inlineStyle}"
11
- @click=${this._handleClick}
12
- >${this._content}</button>${this._description}
13
- `}};r([u({type:String})],b.prototype,`type`,void 0),b=r([e(`bd-button`)],b);var x=class extends y{constructor(){super(),this.href=``,this.buyLink=!1,this.target=``,this.rel=``,this.align=`left`}connectedCallback(){super.connectedCallback(),this.toggleAttribute(`data-bd-watch-shadow`,this.buyLink)}willUpdate(e){super.willUpdate(e),e.has(`buyLink`)&&this.isConnected&&this.toggleAttribute(`data-bd-watch-shadow`,this.buyLink)}get _rel(){return this.rel?this.rel:this.target===`_blank`?`noopener noreferrer`:``}render(){let e=this._inert||!this.href?l:this.href;return c`
14
- <a
10
+ @click=${this._onClick}
11
+ >${this._content(t)}</button>${this._description}`;let i=this._inert||!this.href?f:this.href;return d`<a
15
12
  part="button"
16
- href="${e}"
17
- target="${this.target||l}"
18
- rel="${this._rel||l}"
19
- role="${this._inert?`link`:l}"
20
- tabindex="${this._inert?`-1`:l}"
21
- class="${this._classes}"
22
- aria-label="${this.label||l}"
23
- aria-busy="${this.loading?`true`:l}"
24
- aria-disabled="${this.disabled?`true`:l}"
25
- aria-describedby="${this._describedBy}"
13
+ class="${this._classes(t)}"
14
+ href="${i}"
15
+ target="${this.target||f}"
16
+ rel="${this._rel||f}"
17
+ download="${this.download??f}"
18
+ role="${this._inert?`link`:f}"
19
+ tabindex="${this._inert?`-1`:f}"
20
+ aria-label="${n}"
21
+ aria-busy="${this.loading?`true`:f}"
22
+ aria-disabled="${this.disabled?`true`:f}"
23
+ aria-describedby="${r}"
26
24
  style="${this._inlineStyle}"
27
- @click=${this._handleClick}
25
+ @click=${this._onClick}
28
26
  ?data-store-render="${this.buyLink}"
29
27
  ?data-store-buy-link="${this.buyLink}"
30
- >${this._content}</a>${this._description}
31
- `}};r([u({type:String})],x.prototype,`href`,void 0),r([u({type:Boolean})],x.prototype,`buyLink`,void 0),r([u({type:String})],x.prototype,`target`,void 0),r([u({type:String})],x.prototype,`rel`,void 0),x=r([e(`bd-button-link`)],x);var S=class extends s{constructor(...e){super(...e),this.label=`Contact us`,this.href=``,this.align=`left`,this.shape=`default`}static{this.styles=[a]}_handleClick(){this.dispatchEvent(v())}render(){return c`
32
- <a
33
- class="button bd-contact-btn ${this.shape===`rounded`?`button--rounded`:``}"
34
- href="${this.href||l}"
35
- aria-label="${this.label||l}"
36
- @click=${this._handleClick}
37
- >
38
- ${this.label}
39
- <bd-arrow-icon aria-hidden="true"></bd-arrow-icon>
40
- </a>
41
- `}};r([u({type:String})],S.prototype,`label`,void 0),r([u({type:String})],S.prototype,`href`,void 0),r([u({type:String})],S.prototype,`align`,void 0),r([u({type:String,reflect:!0})],S.prototype,`shape`,void 0),S=r([e(`bd-contact-button`)],S);
28
+ >${this._content(t)}</a>${this._description}`}};a([p({type:String,reflect:!0})],b.prototype,`appearance`,void 0),a([p({type:String})],b.prototype,`size`,void 0),a([p({type:String,reflect:!0})],b.prototype,`surface`,void 0),a([p({type:String,reflect:!0})],b.prototype,`shape`,void 0),a([p({type:String})],b.prototype,`align`,void 0),a([p({type:Boolean,attribute:`full-width`})],b.prototype,`fullWidth`,void 0),a([p({type:Boolean})],b.prototype,`strong`,void 0),a([p({type:Boolean,reflect:!0})],b.prototype,`disabled`,void 0),a([p({type:Boolean,reflect:!0})],b.prototype,`loading`,void 0),a([p({type:String,attribute:`font-size`})],b.prototype,`fontSize`,void 0),a([p({type:String,attribute:`font-weight`})],b.prototype,`fontWeight`,void 0),a([p({type:Boolean,attribute:`without-arrow`})],b.prototype,`withoutArrow`,void 0),a([p({type:String})],b.prototype,`label`,void 0),a([p({type:String})],b.prototype,`description`,void 0),a([p({type:String})],b.prototype,`type`,void 0),a([p({type:String})],b.prototype,`href`,void 0),a([p({type:String})],b.prototype,`target`,void 0),a([p({type:String})],b.prototype,`rel`,void 0),a([p({type:String})],b.prototype,`download`,void 0),a([p({type:Boolean,attribute:`buy-link`})],b.prototype,`buyLink`,void 0),b=a([n(`bd-button`)],b);export{b as BdButton};
42
29
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","names":["buttonsCSS","_decorate","__decorate","button_css_default","VARIANTS","LEGACY_KINDS","\"outline\"","\"danger\"","\"destructive\"","SIZE_CLASS","RESPONSIVE_SIZE_CLASS","SURFACES","SHAPES","TYPES","clickEvent","BdButtonBase","LitElement","_args","changed","isOneOf","fontSize","fontWeight","v","p","nothing","property","Button","FormControl","_args2","defineElement","ButtonLink","href","ContactButton","_args3"],"sources":["../../../../src/components/button/button.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf, type Size } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport buttonsCSS from \"./button.css.ts\";\nimport { fontSize, fontWeight, type FontSizeStep, type FontWeightStep } from \"#shared/token-scales.ts\";\nimport { FormControl } from \"#shared/form-control.ts\";\n// the trailing arrow on bd-contact-button; an atom now, not a local registry\nimport \"#components/icons/arrow-icon.ts\";\n\n// \"white\" and \"outline-white\" are ButtonLink-only presets (no bd-button\n// equivalent) used on a solid-colour banner (e.g. cta-banner) where a\n// surface=\"dark\" primary/tertiary button would still be too close in tone —\n// they render a plain white fill / white 2px outline regardless of surface.\nconst VARIANTS = [\"primary\", \"secondary\", \"tertiary\", \"ghost\", \"accent\", \"white\", \"outline-white\"] as const;\n\n/**\n * Pre-ds-button kind values, mapped onto the variant that reproduces them, so\n * existing markup keeps rendering the same thing.\n */\nconst LEGACY_KINDS: Record<string, Variant> = {\n \"outline\" : \"ghost\", // dark 2px outline\n \"primary-outline\": \"tertiary\", // blue 2px outline\n // red is this system's conversion colour, not a danger signal, so both of\n // these earlier names described the wrong thing\n \"danger\" : \"accent\",\n \"destructive\" : \"accent\"\n};\n\nconst SIZE_CLASS: Record<string, string> = { sm: \"button--small\", md: \"button--medium\", lg: \"button--large\" };\n/* No size given: md below the lg breakpoint, lg from it -- the band the\n websites ask for on desktop and the one that fits a phone or tablet row.\n An explicit size still pins one band at every width. */\nconst RESPONSIVE_SIZE_CLASS = \"button--responsive\";\nconst SURFACES = [\"light\", \"dark\", \"brand\"] as const;\nconst SHAPES = [\"default\", \"rounded\"] as const;\nconst TYPES = [\"button\", \"submit\", \"reset\"] as const;\n\ntype Variant = typeof VARIANTS[number];\ntype Surface = typeof SURFACES[number];\ntype Shape = typeof SHAPES[number];\ntype ButtonType = typeof TYPES[number];\ntype Align = \"left\" | \"center\" | \"right\";\n\n/* custom-click bubbles and is composed, like every sibling event in the\n package -- bd-checkbox's and bd-radio's change, bd-switch's and\n bd-custom-input's bd-change. It was a plain Event, which does not bubble,\n so it reached a listener on the button itself and nothing above it: a form\n or a card delegating from a wrapper heard nothing. composed carries it out\n of any shadow root the button is rendered inside, too. */\nconst clickEvent = () => new CustomEvent(\"custom-click\", { bubbles: true, composed: true });\n\n/**\n * Everything bd-button and bd-button-link share.\n *\n * They differ only in the element they render, and that difference is\n * semantic rather than visual: <button> performs an action in place, <a href>\n * navigates. No CSS substitutes for it — only the link appears in a screen\n * reader's list of links and offers open-in-new-tab, and only the button\n * responds to Space as well as Enter.\n *\n * That element is exposed as part=\"button\", for what only the element that\n * takes the click can do -- a stretched-link ::after across a card, as\n * bd-audience-card draws. Width has its own hook, --bd-button-width, because a\n * part cannot be reached through ::slotted().\n */\nclass BdButtonBase extends LitElement {\n static styles = [buttonsCSS];\n\n // label is only an accessible name, never the visible text: defaulting it\n // to a word like \"Buy now\" would override whatever the caller slotted\n @property({ type: String })\n label = \"\";\n // empty is the responsive default; see RESPONSIVE_SIZE_CLASS\n @property({ type: String })\n size: Size | \"\" = \"\";\n @property({ type: String, reflect: true })\n variant: Variant = \"primary\";\n /** @deprecated pass `variant`. kind meant four different things across the\n atoms; on this one it always meant appearance. */\n @property({ type: String })\n kind = \"\";\n @property({ type: Boolean, attribute: \"fullwidth\" })\n fullWidth = false;\n @property({ type: Boolean })\n strong = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: Boolean, reflect: true })\n loading = false;\n @property({ type: String, attribute: \"font-size\" })\n fontSize: FontSizeStep | \"\" = \"\";\n @property({ type: String, attribute: \"font-weight\" })\n fontWeight: FontWeightStep | \"\" = \"\";\n @property({ type: String })\n align: Align = \"left\";\n // \"dark\" retunes every variant for a hero or panel with a full background\n // colour, \"brand\" for a band filled with the brand itself, in that brand's\n // ink; see the SURFACE blocks in button.css.ts\n @property({ type: String, reflect: true })\n surface: Surface = \"light\";\n /** \"rounded\" takes the pill corner; see .button--rounded. */\n @property({ type: String, reflect: true })\n shape: Shape = \"default\";\n /** The accent variant reveals a trailing arrow on hover; this opts out. */\n @property({ type: Boolean, attribute: \"no-arrow\" })\n noArrow = false;\n /* A circle holding one icon instead of a label: the homepage's audience\n cards and the mobile menu toggle. A mode, not a variant, because every\n variant, size, surface and state applies to it unchanged -- which is how\n the Button icon sets in the foundation Figma file are drawn. With no\n visible text there is nothing to name the control, so label becomes\n required rather than optional. */\n @property({ type: Boolean, attribute: \"icon-only\", reflect: true })\n iconOnly = false;\n /* Extra text a screen reader reads after the name, through\n aria-describedby on the inner control. It has to be carried in here:\n the control is in this shadow root, so an aria-describedby written on\n the host, or pointing at an id outside, never reaches it. bd-tooltip\n sets it on a bd-button trigger; a page can set it directly. */\n @property({ type: String })\n description = \"\";\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"kind\") && this.kind) this.variant = this.kind as Variant;\n if (changed.has(\"variant\") || changed.has(\"kind\")) {\n if (LEGACY_KINDS[this.variant]) this.variant = LEGACY_KINDS[this.variant];\n if (!isOneOf(VARIANTS, this.variant)) this.variant = \"primary\";\n }\n if (changed.has(\"size\") && !SIZE_CLASS[this.size]) this.size = \"\";\n if (changed.has(\"surface\") && !isOneOf(SURFACES, this.surface)) this.surface = \"light\";\n if (changed.has(\"shape\") && !isOneOf(SHAPES, this.shape)) this.shape = \"default\";\n }\n\n get _inert() {\n return this.disabled || this.loading;\n }\n\n /* The hover arrow belongs to the conversion CTA -- what \"danger\" meant before\n it became accent -- and never to a control that cannot be pressed. */\n get _hasArrow() {\n // an icon-only circle has no label to slide aside\n return this.variant === \"accent\" && !this.noArrow && !this._inert && !this.iconOnly;\n }\n\n get _classes() {\n return [\n \"button\",\n `button--${this.variant}`,\n SIZE_CLASS[this.size] || RESPONSIVE_SIZE_CLASS,\n this.iconOnly ? \"button--icon-only\" : \"\",\n // a circle stretched to the container is a pill, not this control\n this.fullWidth && !this.iconOnly ? \"max--width\" : \"\",\n this.strong ? \"button--bold\" : \"\",\n // the circle is already the roundest shape there is\n this.shape === \"rounded\" && !this.iconOnly ? \"button--rounded\" : \"\",\n this._hasArrow ? \"button--with-arrow\" : \"\",\n this.loading ? \"button--loading\" : \"\"\n ].filter(Boolean).join(\" \");\n }\n\n /**\n * font-size and font-weight are step names resolved to token references by\n * shared/token-scales.ts; anything off-scale is dropped.\n */\n get _inlineStyle() {\n return [\n [\"font-size\", fontSize(this.fontSize)],\n [\"font-weight\", fontWeight(this.fontWeight)]\n ].filter(([, v]) => v).map(([p, v]) => `${p}: ${v};`)\n .join(\" \");\n }\n\n /** The spinner is decorative — aria-busy on the control carries the state. */\n get _content() {\n if (this.iconOnly) return this._iconContent;\n return html`${this.loading\n ? html`<span class=\"spinner\" aria-hidden=\"true\"></span>`\n : nothing}<span class=\"button__label\"><slot>${this.label}</slot></span>${this._hasArrow\n ? html`<bd-arrow-icon class=\"button__arrow\" aria-hidden=\"true\"></bd-arrow-icon>`\n : nothing}`;\n }\n\n /**\n * One glyph, never a glyph and a spinner side by side: the circle holds a\n * single item, so loading replaces the icon rather than joining it.\n *\n * The icon is a slot so any bd-*-icon can go in; with nothing slotted it is\n * the arrow, the system's only true shafted arrow and the default the Figma\n * sets draw. The button and icon scales share step names -- sm 16, md 20,\n * lg 24 against padding 8, 12 and 16 -- and the circle comes out 32, 44 and\n * 56. The glyph reads its step from --bd-button-icon-size through\n * .button__icon rather than a size attribute, so the responsive default\n * resizes it at the breakpoint along with the circle.\n */\n get _describedBy() {\n return this.description ? \"description\" : nothing;\n }\n\n get _description() {\n return this.description ? html`<span id=\"description\" hidden>${this.description}</span>` : nothing;\n }\n\n get _iconContent() {\n if (this.loading) return html`<span class=\"spinner\" aria-hidden=\"true\"></span>`;\n return html`<slot><bd-arrow-icon class=\"button__icon\" aria-hidden=\"true\"></bd-arrow-icon></slot>`;\n }\n\n _handleClick(e: MouseEvent) {\n if (this._inert) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n this.dispatchEvent(clickEvent());\n }\n}\n\n/**\n * Performs an action in place -- and, with type=\"submit\" or \"reset\", that\n * action is the form it sits in.\n *\n * The <button> it renders is in this shadow root, where it has no form owner,\n * so a type on it could never reach a form: a page that wanted bd-button to\n * submit had to fall back to a native one. The element is form-associated\n * instead (shared/form-control.ts), and does the submit or reset itself:\n * requestSubmit(), so the form validates first and fires submit as it would\n * for a native button, or reset(). A <fieldset disabled> around it disables\n * it too, and el.click() presses it.\n *\n * type defaults to \"button\", not the native \"submit\": every bd-button on a\n * page today was written to do nothing to its form, and stays that way.\n */\n@defineElement(\"bd-button\")\nclass Button extends FormControl(BdButtonBase) {\n @property({ type: String })\n type: ButtonType = \"button\";\n\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (changed.has(\"type\") && !isOneOf(TYPES, this.type)) this.type = \"button\";\n }\n\n protected get _control(): HTMLButtonElement | null {\n return this.renderRoot?.querySelector?.(\"button\");\n }\n\n get _inert() {\n return super._inert || this._formDisabled;\n }\n\n // el.click() and a <label for> press it, as they press a native button\n protected _activate() {\n this._control?.click();\n }\n\n _handleClick(e: MouseEvent) {\n super._handleClick(e);\n if (this._inert) return;\n if (this.type === \"submit\") this.form?.requestSubmit();\n else if (this.type === \"reset\") this.form?.reset();\n }\n\n render() {\n return html`\n <button\n type=\"button\"\n part=\"button\"\n class=\"${this._classes}\"\n aria-label=\"${this.label || nothing}\"\n aria-busy=\"${this.loading ? \"true\" : nothing}\"\n aria-describedby=\"${this._describedBy}\"\n ?disabled=\"${this.disabled || this._formDisabled}\"\n style=\"${this._inlineStyle}\"\n @click=${this._handleClick}\n >${this._content}</button>${this._description}\n `;\n }\n}\n\n/** Navigates. Looks identical; is not the same control. */\n@defineElement(\"bd-button-link\")\nclass ButtonLink extends BdButtonBase {\n @property({ type: String })\n href = \"\";\n @property({ type: Boolean })\n buyLink = false;\n /* The base class comment calls <a href> the element that navigates and\n \"offers open-in-new-tab\" -- and until now the atom could not express\n that, so a consumer needing a new tab had to hand-roll the anchor and\n lost the button's focus ring, disabled state and typography with it. */\n @property({ type: String })\n target = \"\";\n @property({ type: String })\n rel = \"\";\n\n constructor() {\n super();\n this.align = \"left\";\n }\n\n /* A buy link's href is the store's to fill, on the anchor in this shadow\n root -- and @repobit/dex-store-elements only searches the shadow tree of a\n host matching '[shadow], [data-bd-watch-shadow]' (renders/index.ts), the\n same opt-in bd-header reflects. Without it the store never found the\n anchor, and every buy link rendered with no href at all.\n\n Set on connect, not in an update. The store hears of a new element from\n its MutationObserver, whose callback runs before the element's first\n update, and reads the opt-in then and not again. Set in willUpdate, it was\n there for the links on the page when the store first looked and missing\n for every link rendered after -- the cards a plan switch brings in.\n connectedCallback runs inside the insertion, so the attribute and the\n shadow root are both in place when the observer reads them. */\n connectedCallback() {\n super.connectedCallback();\n this.toggleAttribute(\"data-bd-watch-shadow\", this.buyLink);\n }\n\n // buyLink changed on a link already on the page\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (changed.has(\"buyLink\") && this.isConnected) this.toggleAttribute(\"data-bd-watch-shadow\", this.buyLink);\n }\n\n /* Reverse tabnabbing is the reason rather than convention: a new tab opened\n from here keeps a window.opener handle back unless rel says otherwise. An\n explicit rel always wins, so a consumer can still opt out deliberately. */\n get _rel() {\n if (this.rel) return this.rel;\n return this.target === \"_blank\" ? \"noopener noreferrer\" : \"\";\n }\n\n render() {\n // A link has no native disabled state. Dropping the href stops it being a\n // link at all, so the state is announced with aria-disabled and the role\n // is restored explicitly; tabindex keeps it out of the tab order.\n const href = this._inert || !this.href ? nothing : this.href;\n\n return html`\n <a\n part=\"button\"\n href=\"${href}\"\n target=\"${this.target || nothing}\"\n rel=\"${this._rel || nothing}\"\n role=\"${this._inert ? \"link\" : nothing}\"\n tabindex=\"${this._inert ? \"-1\" : nothing}\"\n class=\"${this._classes}\"\n aria-label=\"${this.label || nothing}\"\n aria-busy=\"${this.loading ? \"true\" : nothing}\"\n aria-disabled=\"${this.disabled ? \"true\" : nothing}\"\n aria-describedby=\"${this._describedBy}\"\n style=\"${this._inlineStyle}\"\n @click=${this._handleClick}\n ?data-store-render=\"${this.buyLink}\"\n ?data-store-buy-link=\"${this.buyLink}\"\n >${this._content}</a>${this._description}\n `;\n }\n}\n\n/**\n * A fixed \"Contact us\" CTA — a preset rather than a variant, with no size or\n * kind axis. Its trailing arrow is bd-arrow-icon, an atom.\n */\n@defineElement(\"bd-contact-button\")\nclass ContactButton extends LitElement {\n static styles = [buttonsCSS];\n\n @property({ type: String })\n label = \"Contact us\";\n @property({ type: String })\n href = \"\";\n @property({ type: String })\n align: Align = \"left\";\n @property({ type: String, reflect: true })\n shape: Shape = \"default\";\n\n _handleClick() {\n this.dispatchEvent(clickEvent());\n }\n\n render() {\n return html`\n <a\n class=\"button bd-contact-btn ${this.shape === \"rounded\" ? \"button--rounded\" : \"\"}\"\n href=\"${this.href || nothing}\"\n aria-label=\"${this.label || nothing}\"\n @click=${this._handleClick}\n >\n ${this.label}\n <bd-arrow-icon aria-hidden=\"true\"></bd-arrow-icon>\n </a>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-button\" : Button;\n \"bd-button-link\" : ButtonLink;\n \"bd-contact-button\": ContactButton;\n }\n interface HTMLElementEventMap {\n \"custom-click\": CustomEvent<null>;\n }\n}"],"mappings":"A,4fAgBA,IAAMI,EAAW,CAAC,UAAW,YAAa,WAAY,QAAS,SAAU,QAAS,eAAe,EAM3FC,EAAwC,CAC5CC,QAAmB,QACnB,kBAAmB,WAGnBC,OAAmB,SACnBC,YAAmB,QACrB,EAEMC,EAAqC,CAAE,GAAI,gBAAiB,GAAI,iBAAkB,GAAI,eAAgB,EAItGC,EAAwB,qBACxBC,EAAW,CAAC,QAAS,OAAQ,OAAO,EACpCC,EAAS,CAAC,UAAW,SAAS,EAC9BC,EAAQ,CAAC,SAAU,SAAU,OAAO,EAcpCC,MAAmB,IAAI,YAAY,eAAgB,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,EAgBpFC,EAAN,cAA2BC,CAAW,C,8BAM5B,KAAA,MAAA,GA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OAAA,CAAChB,CAAU,C,CAW3B,cAAe,CACb,KAAK,cAAcc,EAAW,CAAC,CACjC,CAEA,QAAS,CACP,MAAO,EAAI;;uCAEwB,KAAK,QAAU,UAAY,kBAAoB,GAAG;gBACzE,KAAK,MAAQU,EAAQ;sBACf,KAAK,OAASA,EAAQ;iBAC3B,KAAK,aAAa;;UAEzB,KAAK,MAAM;;;KAInB,CACF,EA1BGvB,EAAA,CAAAwB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAO,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzB/B,EAAA,CAAAwB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAO,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzB/B,EAAA,CAAAwB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAO,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzB/B,EAAA,CAAAwB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAO,EAAA,UAAA,QAAA,IAAA,EAAA,EAV1C,EAAA/B,EAAA,CAAA4B,EAAc,mBAAmB,CAAA,EAAAG,CAAA"}
1
+ {"version":3,"file":"button.js","names":["buttonsCSS","_decorate","__decorate","button_css_default","APPEARANCES","SURFACES","SHAPES","TYPES","SIZE_CLASS","RESPONSIVE_SIZE_CLASS","BdButton","FormControl","LitElement","_args","SlotController","ObserverController","observer","changed","isOneOf","SIZES","icon","rest","iconOnly","fontSize","fontWeight","v","p","nothing","iconLabel","name","describedBy","href","property","defineElement"],"sources":["../../../../src/components/button/button.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf, SIZES, type Size } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport buttonsCSS from \"./button.css.ts\";\nimport { fontSize, fontWeight, type FontSizeStep, type FontWeightStep } from \"#shared/token-scales.ts\";\nimport { FormControl } from \"#shared/form-control.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\n// the accent hover arrow, the system's one shafted arrow\nimport \"#components/icons/arrow.ts\";\n\n/* The look. \"white\" and \"outline-white\" are presets for a solid-colour banner\n (e.g. cta-banner), where a surface=\"dark\" primary or tertiary would still\n sit too close in tone: a white fill and a white 2px outline whatever the\n surface. \"plain\" is the text CTA bd-contact-button was -- brand ink, no fill,\n no ring -- and, unlike those two, follows the surface. There is no legacy\n spelling any more -- outline, primary-outline, danger and destructive, and\n the `kind` attribute that carried them, ended at 4.0 (N6). */\nconst APPEARANCES = [\"primary\", \"secondary\", \"tertiary\", \"ghost\", \"accent\", \"plain\", \"white\", \"outline-white\"] as const;\nconst SURFACES = [\"light\", \"dark\", \"brand\"] as const;\nconst SHAPES = [\"default\", \"rounded\"] as const;\nconst TYPES = [\"button\", \"submit\", \"reset\"] as const;\n\nconst SIZE_CLASS: Record<Size, string> = { sm: \"button--small\", md: \"button--medium\", lg: \"button--large\" };\n/* No size given: md below the lg breakpoint, lg from it -- the band the\n websites ask for on desktop and the one that fits a phone or tablet row.\n An explicit size still pins one band at every width. */\nconst RESPONSIVE_SIZE_CLASS = \"button--responsive\";\n\ntype Appearance = typeof APPEARANCES[number];\ntype Surface = typeof SURFACES[number];\ntype Shape = typeof SHAPES[number];\ntype ButtonType = typeof TYPES[number];\ntype Align = \"left\" | \"center\" | \"right\";\n\n/* The slots: the default one is the label, start and end the decorations\n either side of it. */\ntype Slot = \"\" | \"start\" | \"end\";\n\n/**\n * One control, two elements, and the element is decided by what it does.\n *\n * With `href` (or `buy-link`, whose href the store fills) it renders an\n * `<a>`: it navigates, appears in a screen reader's list of links, and offers\n * open-in-new-tab, middle-click and copy-address; `target`, `rel` and\n * `download` apply to it and to nothing else. Without one it renders a\n * `<button>`: it performs an action in place, and answers Space as well as\n * Enter. No CSS substitutes for that difference, which is why it is the\n * attribute that makes a link in HTML and in Web Awesome, rather than a look.\n * Until 4.0 the two were bd-button and bd-button-link, and bd-contact-button\n * a third tag for one link with an arrow; they were the same structure, so\n * they are one element (N2).\n *\n * The element that takes the click is exposed as part=\"button\", for what only\n * it can do -- a stretched-link ::after across a card, as bd-audience-card\n * draws. Width has its own hook, --bd-button-width, because a part cannot be\n * reached through ::slotted().\n *\n * ICON-ONLY. A button whose whole content is one <bd-icon> with a `label` is a\n * circle around that icon, named by the label. There is no attribute for it:\n * the content says so, as Web Awesome names the icon rather than the button.\n * The label is copied onto the control as its aria-label, because the icon's\n * name is set inside the icon and a reference from here cannot reach it.\n *\n * IN A FORM. The <button> is in this shadow root, where it has no form owner,\n * so a type on it could never reach a form. The element is form-associated\n * instead (shared/form-control.ts) and does the submit or reset itself:\n * requestSubmit(), so the form validates first and fires submit as it would\n * for a native button, or reset(). A <fieldset disabled> around it disables\n * it too (a link it leaves alone, as it leaves a native <a>), and el.click()\n * presses it -- once. `type` defaults to \"button\", not\n * the native \"submit\": every bd-button on a page was written to do nothing to\n * its form, and stays that way. A link has no type; it is ignored with href.\n *\n * EVENTS. The native `click`. It used to dispatch custom-click as well, a\n * second name for the same press; a page listens for click, as on any\n * button. A disabled or loading button stops the click before it leaves\n * this shadow root, so a listener on the element hears only presses that\n * did something.\n */\n@defineElement(\"bd-button\")\nexport class BdButton extends FormControl(LitElement) {\n static styles = [buttonsCSS];\n\n @property({ type: String, reflect: true })\n appearance: Appearance = \"primary\";\n // empty is the responsive default; see RESPONSIVE_SIZE_CLASS\n @property({ type: String })\n size: Size | \"\" = \"\";\n // \"dark\" retunes every appearance for a hero or panel with a full background\n // colour, \"brand\" for a band filled with the brand itself, in that brand's\n // ink; see the SURFACE blocks in button.css.ts\n @property({ type: String, reflect: true })\n surface: Surface = \"light\";\n /** \"rounded\" takes the pill corner; see .button--rounded. */\n @property({ type: String, reflect: true })\n shape: Shape = \"default\";\n @property({ type: String })\n align: Align = \"left\";\n @property({ type: Boolean, attribute: \"full-width\" })\n fullWidth = false;\n @property({ type: Boolean })\n strong = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: Boolean, reflect: true })\n loading = false;\n @property({ type: String, attribute: \"font-size\" })\n fontSize: FontSizeStep | \"\" = \"\";\n @property({ type: String, attribute: \"font-weight\" })\n fontWeight: FontWeightStep | \"\" = \"\";\n /** The accent appearance reveals a trailing arrow on hover; this removes it. */\n @property({ type: Boolean, attribute: \"without-arrow\" })\n withoutArrow = false;\n /* An accessible name that replaces the one the content gives, and never\n renders: the visible label is the default slot. For a name that has to\n say more than the words on the button -- \"Buy Now, Total Security\" on a\n card whose button reads \"Buy Now\" -- with the visible words first, so\n WCAG 2.5.3 holds. Leave it unset and the slotted text names the control. */\n @property({ type: String })\n label = \"\";\n /* Extra text a screen reader reads after the name, through\n aria-describedby on the inner control. It has to be carried in here:\n the control is in this shadow root, so an aria-describedby written on\n the host, or pointing at an id outside, never reaches it. bd-tooltip\n sets it on a bd-button trigger; a page can set it directly. */\n @property({ type: String })\n description = \"\";\n /** What the button does to its form. Without href only. */\n @property({ type: String })\n type: ButtonType = \"button\";\n /* Where the link goes. Setting it is what makes this a link. */\n @property({ type: String })\n href = \"\";\n /* With href only. \"_blank\" opens a new tab, and rel then defaults to\n \"noopener noreferrer\"; see _rel. */\n @property({ type: String })\n target = \"\";\n @property({ type: String })\n rel = \"\";\n /* With href only: the link saves its target instead of navigating to it,\n under this file name, or the URL's own when it is empty -- the native\n attribute, passed through. */\n @property({ type: String })\n download: string | null = null;\n /* A buy link: its href is the store's to fill (@repobit/dex-store-elements),\n so it renders the anchor with or without an href of its own. */\n @property({ type: Boolean, attribute: \"buy-link\" })\n buyLink = false;\n\n /* What the page slotted. The label is followed into its words, so a page\n editing a label re-renders the button: a text node whose words are set\n in place -- blank to \"Menu\", say -- fires no slotchange, and whether the\n label's box shows, and whether the button is an icon-only circle, both\n read those words. */\n protected _slots = new SlotController<Slot>(this, { slots: [\"\", \"start\", \"end\"], text: [\"\"] });\n\n /* An icon's label can change after it was slotted -- a menu toggle\n relabelled \"Close menu\" once it opens -- and that is an attribute on a\n child, which no slotchange reports. */\n protected _labels = new ObserverController(this,\n () => new MutationObserver(() => this.requestUpdate()),\n observer => observer.observe(this, { subtree: true, attributes: true, attributeFilter: [\"label\"] }));\n\n /* A buy link's href is the store's to fill, on the anchor in this shadow\n root -- and @repobit/dex-store-elements only searches the shadow tree of a\n host matching '[shadow], [data-bd-watch-shadow]' (renders/index.ts), the\n same opt-in bd-header reflects. Without it the store never found the\n anchor, and every buy link rendered with no href at all. This is one of\n the three host-attribute writes CLAUDE.md records (Brands).\n\n Set on connect, not in an update. The store hears of a new element from\n its MutationObserver, whose callback runs before the element's first\n update, and reads the opt-in then and not again. Set in willUpdate, it was\n there for the links on the page when the store first looked and missing\n for every link rendered after -- the cards a plan switch brings in.\n connectedCallback runs inside the insertion, so the attribute and the\n shadow root are both in place when the observer reads them. */\n connectedCallback() {\n super.connectedCallback();\n this.toggleAttribute(\"data-bd-watch-shadow\", this.buyLink);\n }\n\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"primary\";\n if (changed.has(\"size\") && this.size && !isOneOf(SIZES, this.size)) this.size = \"\";\n if (changed.has(\"surface\") && !isOneOf(SURFACES, this.surface)) this.surface = \"light\";\n if (changed.has(\"shape\") && !isOneOf(SHAPES, this.shape)) this.shape = \"default\";\n if (changed.has(\"type\") && !isOneOf(TYPES, this.type)) this.type = \"button\";\n // buy-link changed on a button already on the page\n if (changed.has(\"buyLink\") && this.isConnected) this.toggleAttribute(\"data-bd-watch-shadow\", this.buyLink);\n }\n\n /** It renders an <a>: it has somewhere to go, or the store will give it one. */\n get _isLink() {\n return !!this.href || this.buyLink;\n }\n\n /* A <fieldset disabled> disables the controls of a form, and a link is not\n one: a native <a> inside it still goes where it goes, and so did 3.x's\n bd-button-link, which was not form-associated. The element is\n form-associated for the <button> it renders without href, so the\n fieldset's state reaches a link here too, and is ignored there. */\n get _inert() {\n return this.disabled || this.loading || (!this._isLink && this._formDisabled);\n }\n\n /**\n * The label of the one bd-icon that is the whole content, or \"\" when the\n * button has any other content -- text, a second element, a decoration in\n * start or end -- or the icon has no label. Detected by tag name: the icon\n * is another module's, and a button must not import every drawing to ask.\n */\n get _iconLabel() {\n if (this._slots.has(\"start\") || this._slots.has(\"end\")) return \"\";\n const [icon, ...rest] = this._slots.elements(\"\");\n if (!icon || rest.length || icon.localName !== \"bd-icon\" || this._slots.text(\"\")) return \"\";\n return icon.getAttribute(\"label\")?.trim() ?? \"\";\n }\n\n /* The hover arrow belongs to the conversion CTA -- what \"danger\" meant before\n it became accent -- and never to a control that cannot be pressed. A\n decoration the page put in end is the end of this button, and the arrow\n would slide in on top of it. */\n _hasArrow(iconOnly: boolean) {\n return this.appearance === \"accent\" && !this.withoutArrow && !this._inert && !iconOnly && !this._slots.has(\"end\");\n }\n\n _classes(iconOnly: boolean) {\n return [\n \"button\",\n `button--${this.appearance}`,\n (this.size && SIZE_CLASS[this.size]) || RESPONSIVE_SIZE_CLASS,\n iconOnly ? \"button--icon-only\" : \"\",\n // a circle stretched to the container is a pill, not this control\n this.fullWidth && !iconOnly ? \"max--width\" : \"\",\n this.strong ? \"button--bold\" : \"\",\n // the circle is already the roundest shape there is\n this.shape === \"rounded\" && !iconOnly ? \"button--rounded\" : \"\",\n this._hasArrow(iconOnly) ? \"button--with-arrow\" : \"\",\n this.loading ? \"button--loading\" : \"\"\n ].filter(Boolean).join(\" \");\n }\n\n /**\n * font-size and font-weight are step names resolved to token references by\n * shared/token-scales.ts; anything off-scale is dropped.\n */\n get _inlineStyle() {\n return [\n [\"font-size\", fontSize(this.fontSize)],\n [\"font-weight\", fontWeight(this.fontWeight)]\n ].filter(([, v]) => v).map(([p, v]) => `${p}: ${v};`)\n .join(\" \");\n }\n\n /**\n * The spinner is decorative -- aria-busy on the control carries the state --\n * and it comes first, ahead of the decorations.\n *\n * All three slots are always rendered, so a decoration or a label added\n * later is assigned and heard. start and end are display: contents, so an\n * empty one draws no box and takes no gap; the label's box is hidden while\n * it is empty, for the same reason. On an icon-only button the label's box\n * gives way to the circle (button.css.ts, SHAPE -- icon-only), and while it\n * is loading the spinner takes the icon's place.\n */\n _content(iconOnly: boolean) {\n return html`${this.loading\n ? html`<span class=\"spinner\" aria-hidden=\"true\"></span>`\n : nothing}<slot name=\"start\"></slot><span class=\"button__label\" ?hidden=${!this._slots.has(\"\")}><slot></slot></span><slot name=\"end\"></slot>${this._hasArrow(iconOnly)\n ? html`<bd-icon name=\"arrow\" class=\"button__arrow\" aria-hidden=\"true\"></bd-icon>`\n : nothing}`;\n }\n\n get _description() {\n return this.description ? html`<span id=\"description\" hidden>${this.description}</span>` : nothing;\n }\n\n /* Reverse tabnabbing is the reason rather than convention: a new tab opened\n from here keeps a window.opener handle back unless rel says otherwise. An\n explicit rel always wins, so a consumer can still opt out deliberately. */\n get _rel() {\n if (this.rel) return this.rel;\n return this.target === \"_blank\" ? \"noopener noreferrer\" : \"\";\n }\n\n protected get _control(): HTMLButtonElement | null {\n return this.renderRoot?.querySelector?.(\"button.button\") ?? null;\n }\n\n // el.click() and a <label for> press it, as they press a native button --\n // or follow it, as they follow a native link\n protected _activate() {\n this.renderRoot?.querySelector<HTMLElement>(\".button\")?.click();\n }\n\n _onClick(e: MouseEvent) {\n if (this._inert) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n if (this._isLink || !this.form) return;\n /* Through the prototype: a form's controls are its named properties, so\n one with the id or name \"reset\" or \"requestSubmit\" stands where the\n method was -- form.reset is that element, and calling it throws. */\n if (this.type === \"submit\") HTMLFormElement.prototype.requestSubmit.call(this.form);\n else if (this.type === \"reset\") HTMLFormElement.prototype.reset.call(this.form);\n }\n\n render() {\n const iconLabel = this._iconLabel;\n const iconOnly = !!iconLabel;\n const name = this.label || iconLabel || nothing;\n const describedBy = this.description ? \"description\" : nothing;\n\n if (!this._isLink) {\n return html`<button\n type=\"button\"\n part=\"button\"\n class=\"${this._classes(iconOnly)}\"\n aria-label=\"${name}\"\n aria-busy=\"${this.loading ? \"true\" : nothing}\"\n aria-describedby=\"${describedBy}\"\n ?disabled=\"${this.disabled || this._formDisabled}\"\n style=\"${this._inlineStyle}\"\n @click=${this._onClick}\n >${this._content(iconOnly)}</button>${this._description}`;\n }\n\n // A link has no native disabled state. Dropping the href stops it being a\n // link at all, so the state is announced with aria-disabled and the role\n // is restored explicitly; tabindex keeps it out of the tab order.\n const href = this._inert || !this.href ? nothing : this.href;\n return html`<a\n part=\"button\"\n class=\"${this._classes(iconOnly)}\"\n href=\"${href}\"\n target=\"${this.target || nothing}\"\n rel=\"${this._rel || nothing}\"\n download=\"${this.download ?? nothing}\"\n role=\"${this._inert ? \"link\" : nothing}\"\n tabindex=\"${this._inert ? \"-1\" : nothing}\"\n aria-label=\"${name}\"\n aria-busy=\"${this.loading ? \"true\" : nothing}\"\n aria-disabled=\"${this.disabled ? \"true\" : nothing}\"\n aria-describedby=\"${describedBy}\"\n style=\"${this._inlineStyle}\"\n @click=${this._onClick}\n ?data-store-render=\"${this.buyLink}\"\n ?data-store-buy-link=\"${this.buyLink}\"\n >${this._content(iconOnly)}</a>${this._description}`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-button\": BdButton;\n }\n}\n"],"mappings":"A,soBAqBA,IAAMI,EAAc,CAAC,UAAW,YAAa,WAAY,QAAS,SAAU,QAAS,QAAS,eAAe,EACvGC,EAAW,CAAC,QAAS,OAAQ,OAAO,EACpCC,EAAS,CAAC,UAAW,SAAS,EAC9BC,EAAQ,CAAC,SAAU,SAAU,OAAO,EAEpCC,EAAmC,CAAE,GAAI,gBAAiB,GAAI,iBAAkB,GAAI,eAAgB,EAIpGC,EAAwB,qBAsDjBC,EAAN,cAAuBC,EAAYC,CAAU,CAAC,AAAC,C,8BAI3B,KAAA,WAAA,UAGP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AA,UAAA,UAAA,IAAA,EAAA,EAnEnD,EAAAT,EAAA,CAAAgC,EAAc,WAAW,CAAA,EAAAvB,CAAA,E"}
@@ -15,24 +15,24 @@
15
15
  * warning tint the design is fff6f0, an orange; --status-warning-surface is
16
16
  * fffbf0, a yellow. Ours. Worth knowing that warning is the
17
17
  * tightest of the six: its accent reads 3.49:1 on its own
18
- * tint where every other tone clears 4.2, so a future change
18
+ * tint where every other meaning clears 4.2, so a future change
19
19
  * to either half has least room here.
20
20
  * actions ink the design is 0045ad; --color-text-brand is blue-600
21
21
  * 0059d6. Ours, and blue-600 is the documented choice for ink
22
22
  * on a tint -- CLAUDE.md records blue-500 as failing there.
23
23
  *
24
24
  * THE LEFT ACCENT RULE IS GONE. This atom carried a 4px border-left in the
25
- * tone's accent colour; the design is tint-only, with a full border on the
26
- * outline variant instead. That is a visible change to a shipped atom and it
27
- * was asked for. The invariant the old rule existed to keep -- that an alert
28
- * and a bd-badge of the same tone are the same colour by construction, because
29
- * both read --status-<tone>-accent -- survives, because the icon now carries
25
+ * meaning's accent colour; the design is tint-only, with a full border on the
26
+ * outline appearance instead. That is a visible change to a shipped atom and it
27
+ * was asked for. The invariant the old rule existed to keep -- that a callout
28
+ * and a bd-badge of the same variant are the same colour by construction, because
29
+ * both read --status-<variant>-accent -- survives, because the icon now carries
30
30
  * it.
31
31
  *
32
32
  * EVERY COMBINATION WAS MEASURED, not assumed: title and description
33
33
  * (--color-text-primary) run 16.03 to 17.97:1 across the six grounds, the
34
- * actions ink 5.51 to 6.18, and the tone accents 3.49 to 8.39 against the 3:1
34
+ * actions ink 5.51 to 6.18, and the accents 3.49 to 8.39 against the 3:1
35
35
  * non-text bar. No pair needed a compromise.
36
36
  */
37
- export declare const alertCSS: import("lit").CSSResult;
38
- export default alertCSS;
37
+ export declare const calloutCSS: import("lit").CSSResult;
38
+ export default calloutCSS;
@@ -0,0 +1,2 @@
1
+ import{css as e}from"lit";var t=e`:host{display:block}:host([hidden]){display:none}.callout{align-items:flex-start;gap:var(--spacing-12);padding:var(--spacing-16);border-radius:var(--shape-radius-lg);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);background:var(--status-info-surface);display:flex}.icon{color:var(--status-info-accent);flex:none;display:flex}:host([variant=success]) .callout{background:var(--status-success-surface)}:host([variant=success]) .icon{color:var(--status-success-accent)}:host([variant=warning]) .callout{background:var(--status-warning-surface)}:host([variant=warning]) .icon{color:var(--status-warning-accent)}:host([variant=error]) .callout{background:var(--status-error-surface)}:host([variant=error]) .icon{color:var(--status-error-accent)}:host([variant=neutral]) .callout{background:var(--status-neutral-surface)}:host([variant=neutral]) .icon{color:var(--status-neutral-accent)}:host([appearance=outline]) .callout{background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container)}.content{gap:var(--spacing-8);overflow-wrap:break-word;flex-direction:column;flex:auto;min-width:0;display:flex}.title{font-weight:var(--typography-fontWeight-semibold)}.title[hidden]{display:none}.body{min-height:var(--icon-lg-size)}.actions{align-items:center;gap:var(--spacing-12);color:var(--color-text-brand);flex-wrap:wrap;display:flex}.actions[hidden]{display:none}.dismiss{padding:var(--spacing-0);color:var(--color-text-muted);border-radius:var(--focus-outline-radius);cursor:pointer;background:0 0;border:none;flex:none;display:flex;position:relative}.dismiss:before{content:"";inset:calc(-1 * var(--spacing-4));position:absolute}.dismiss:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}`;export{t as calloutCSS,t as default};
2
+ //# sourceMappingURL=callout.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.css.js","names":["calloutCSS"],"sources":["../../../../src/components/callout/callout.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * Styled entirely from design tokens -- see npm run lint:tokens.\n *\n * Reshaped 2026-09-14 to the Eclipse Alert banner (Figma yzCimjlQG7RzokkgVpjfnZ\n * node 5021:11630), using this package's roles rather than that file's\n * variables. The two systems turn out to share ancestry: three of the five\n * tints matched byte-for-byte (blue f0f7ff, green edfdf1, red fff0f0), the type\n * size matched at 14px, and the radius, gaps and padding all landed on our\n * existing scales -- radius/small 8px IS --radius-lg, and 16/12/8 are\n * --spacing-16/12/8.\n *\n * Two places the design and this package disagree, both resolved our way\n * because our tokens are the brief:\n *\n * warning tint the design is fff6f0, an orange; --status-warning-surface is\n * fffbf0, a yellow. Ours. Worth knowing that warning is the\n * tightest of the six: its accent reads 3.49:1 on its own\n * tint where every other meaning clears 4.2, so a future change\n * to either half has least room here.\n * actions ink the design is 0045ad; --color-text-brand is blue-600\n * 0059d6. Ours, and blue-600 is the documented choice for ink\n * on a tint -- CLAUDE.md records blue-500 as failing there.\n *\n * THE LEFT ACCENT RULE IS GONE. This atom carried a 4px border-left in the\n * meaning's accent colour; the design is tint-only, with a full border on the\n * outline appearance instead. That is a visible change to a shipped atom and it\n * was asked for. The invariant the old rule existed to keep -- that a callout\n * and a bd-badge of the same variant are the same colour by construction, because\n * both read --status-<variant>-accent -- survives, because the icon now carries\n * it.\n *\n * EVERY COMBINATION WAS MEASURED, not assumed: title and description\n * (--color-text-primary) run 16.03 to 17.97:1 across the six grounds, the\n * actions ink 5.51 to 6.18, and the accents 3.49 to 8.39 against the 3:1\n * non-text bar. No pair needed a compromise.\n */\nexport const calloutCSS = css`\n :host {\n display: block;\n }\n\n /* The native hidden attribute has to beat the display above, or a consumer\n writing <bd-callout hidden> gets a visible callout. Same fix as\n icons/icon-element.ts. */\n :host([hidden]) {\n display: none;\n }\n\n .callout {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-12);\n padding: var(--spacing-16);\n border-radius: var(--shape-radius-lg);\n font-family: var(--typography-fontFamily-sans);\n /* Set ONCE, here. The title differs from the description by weight only,\n which is what the design does too -- Body/medium/semibold over\n Body/medium/regular, both 14px -- so nothing below re-declares a size.\n .\n THE LEADING IS DELIBERATELY NOT THE DESIGN'S. The design specifies 20px;\n this resolves to 1.45, which computes to 20.3px at 14px. Confirmed 2026-09-14\n to stay as it is: a unitless ratio is the first rule of this package's\n typography contract, because an absolute 20px stops scaling when a reader\n enlarges their text, which is the defect the rule exists to prevent. The\n 0.3px is the price of keeping it. 1.45 also clears the Plex leading floor\n that Romanian diacritics need, so there is no clipping risk in dropping\n toward the design's figure -- but there is no reason to. */\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n background: var(--status-info-surface);\n }\n\n /* The variant sets the ground and the icon's ink in one place, so the two cannot\n drift apart. The icon reads currentColor from .icon, which is the rule the\n icon atoms already follow. */\n .icon {\n flex: none;\n display: flex;\n color: var(--status-info-accent);\n }\n\n :host([variant='success']) .callout {\n background: var(--status-success-surface);\n }\n\n :host([variant='success']) .icon {\n color: var(--status-success-accent);\n }\n\n :host([variant='warning']) .callout {\n background: var(--status-warning-surface);\n }\n\n :host([variant='warning']) .icon {\n color: var(--status-warning-accent);\n }\n\n :host([variant='error']) .callout {\n background: var(--status-error-surface);\n }\n\n :host([variant='error']) .icon {\n color: var(--status-error-accent);\n }\n\n :host([variant='neutral']) .callout {\n background: var(--status-neutral-surface);\n }\n\n :host([variant='neutral']) .icon {\n color: var(--status-neutral-accent);\n }\n\n /* The outline appearance is a LOOK, not a meaning: it keeps whichever\n variant's icon is set and drops the tint for the page ground plus an edge.\n That is why it is its own attribute rather than a sixth variant -- the\n design models both axes in one enum, and folding a look into the meaning\n vocabulary is the category error CLAUDE.md names (N6).\n .\n The edge takes --color-border-container, the role for a self-contained\n object's boundary, which is what this is. The design spells it\n rgba(0,0,0,0.1); the role is neutral-100 and within a shade of it. */\n :host([appearance='outline']) .callout {\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n }\n\n .content {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n overflow-wrap: break-word;\n }\n\n /* no role: the title's weight. Semibold at 14px is not a role this package\n has -- body-small is 400, label-default and control-label-default are 500 --\n and the element is doing the work a role would name. It stays a strong so\n the emphasis is in the markup rather than in a class, which is the same\n argument button.css.ts's .button--bold makes.\n .\n The value is deliberate and not the UA default: strong renders at bolder\n (700), and semibold keeps a callout title from shouting inside a status\n strip. The design agrees -- Body/medium/semibold.\n .\n The page's words come in through the title slot, which accepts text:\n whatever is slotted inherits this box's role -- the size and leading set\n once on .callout, this weight -- through the flat tree, so a span the\n page wrote reads as the title without styling of its own. */\n .title { font-weight: var(--typography-fontWeight-semibold); }\n\n /* Rendered only while the title slot holds something, so a\n description-only callout carries no empty line and no gap above it. */\n .title[hidden] {\n display: none;\n }\n\n /* The design gives the description a 24px floor so a one-line callout has the\n same height as the icon beside it and the row does not look top-heavy. */\n .body {\n min-height: var(--icon-lg-size);\n }\n\n /* Each action is its own flex item, so the gap needs each one slotted\n separately -- wrapping several in one span makes them a single item and\n they run together with no space. The stories show the right shape.\n .\n The colour here is a DEFAULT, not the source of the action ink: bd-link\n and bd-button both set their own, so in normal use this never paints. It\n is kept so a bare anchor or a run of text slotted here gets brand ink\n rather than the UA's blue, which is the only case it applies to. Do not go\n looking here for why an action is the colour it is -- look at the atom. */\n .actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-12);\n color: var(--color-text-brand);\n }\n\n /* Rendered only when something is slotted in, so a callout without actions\n does not carry an empty row and the gap above it. */\n .actions[hidden] {\n display: none;\n }\n\n /* A 24px target around the 16px icon. The button was the icon and\n nothing else, 16x16, under the 24px WCAG 2.5.8 asks of a pointer target\n -- and a callout's close button is the one control on it a reader is\n trying to hit. The ::before below is that target: it reaches\n --spacing-4 past the button on each side, and a click on it is a click\n on the button -- 24x24 at the default text size, and larger, never\n smaller, for a reader who enlarges their text, since the reach is rem.\n The button's own box is unchanged, so the icon sits exactly where it did\n and the callout is no taller. */\n .dismiss {\n position: relative;\n flex: none;\n display: flex;\n padding: var(--spacing-0);\n border: none;\n background: none;\n color: var(--color-text-muted);\n border-radius: var(--focus-outline-radius);\n cursor: pointer;\n }\n\n .dismiss::before {\n content: \"\";\n position: absolute;\n inset: calc(-1 * var(--spacing-4));\n }\n\n /* One token, one painter -- the same invariant accordion.css.ts records. */\n .dismiss:focus-visible {\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 box-shadow: var(--focus-outline-primary);\n }\n`;\n\nexport default calloutCSS;\n"],"mappings":"A,0BAsCA,IAAaA,EAAa,CAAG,+5D"}
@@ -0,0 +1,56 @@
1
+ import { LitElement, type PropertyValues } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
4
+ import "../icons/circle-info.js";
5
+ import "../icons/close.js";
6
+ declare const VARIANTS: readonly ["info", "success", "warning", "error", "neutral"];
7
+ type Variant = typeof VARIANTS[number];
8
+ declare const APPEARANCES: readonly ["tint", "outline"];
9
+ type Appearance = typeof APPEARANCES[number];
10
+ /**
11
+ * A status banner: an icon, a title, a description, optional actions, and an
12
+ * optional dismiss.
13
+ *
14
+ * Shaped to the Eclipse Alert banner (Figma yzCimjlQG7RzokkgVpjfnZ node
15
+ * 5021:11630) with this package's roles. See callout.css.ts for what the two
16
+ * systems agreed on and the two places they did not.
17
+ *
18
+ * TWO AXES, NOT ONE. The design models six values of a single `type` enum:
19
+ * Information, Success, Danger, Warning, Neutral and Outline. Five of those are
20
+ * meanings and one is a look, so this element keeps them apart -- `variant`
21
+ * for the meaning, `appearance` for the look (N6). An outline callout still
22
+ * has a meaning, and folding the two into one attribute would mean
23
+ * variant="outline", which says nothing about what the callout is telling you.
24
+ *
25
+ * THE TITLE IS A SLOT, AND IT IS TEXT. `<span slot="title">` is the bold line
26
+ * above the description: phrasing content that takes the callout's own type
27
+ * role -- body-small, at the title's weight -- rather than a document heading,
28
+ * so it puts nothing in the page's outline. Its wrapper is hidden while the
29
+ * slot is empty, so a description-only callout carries no empty line.
30
+ *
31
+ * THE LEADING ICON. bd-circle-info-icon, the glyph the design asked for. Pass
32
+ * your own through the icon slot to override it.
33
+ */
34
+ export declare class BdCallout extends LitElement {
35
+ static styles: import("lit").CSSResult[];
36
+ /** What the callout means: info | success | warning | error | neutral. */
37
+ variant: Variant;
38
+ /** How it looks: tint (default) | outline. */
39
+ appearance: Appearance;
40
+ dismissible: boolean;
41
+ /** The dismiss button's accessible name, overridable per context and language. */
42
+ dismissLabel: string;
43
+ _slots: SlotController<"title" | "actions">;
44
+ willUpdate(changed: PropertyValues<this>): void;
45
+ _onDismiss(): void;
46
+ render(): import("lit-html").TemplateResult<1>;
47
+ }
48
+ declare global {
49
+ interface HTMLElementTagNameMap {
50
+ 'bd-callout': BdCallout;
51
+ }
52
+ interface HTMLElementEventMap {
53
+ 'bd-dismiss': CustomEvent<null>;
54
+ }
55
+ }
56
+ export {};
@@ -0,0 +1,28 @@
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{SlotController as r}from"../shared/controller.slot.js";import"../icons/close.js";import{calloutCSS as i}from"./callout.css.js";import"../icons/circle-info.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=[`info`,`success`,`warning`,`error`,`neutral`],u=[`tint`,`outline`],d=class extends a{constructor(...e){super(...e),this.variant=`info`,this.appearance=`tint`,this.dismissible=!1,this.dismissLabel=`Dismiss`,this._slots=new r(this,{slots:[`title`,`actions`]})}static{this.styles=[i]}willUpdate(e){e.has(`variant`)&&!t(l,this.variant)&&(this.variant=`info`),e.has(`appearance`)&&!t(u,this.appearance)&&(this.appearance=`tint`)}_onDismiss(){this.dispatchEvent(new CustomEvent(`bd-dismiss`,{bubbles:!0,composed:!0}))}render(){return o`
2
+ <div class="callout" role=${this.variant===`error`?`alert`:`status`}>
3
+ <span class="icon">
4
+ <slot name="icon">
5
+ <bd-icon name="circle-info" size="lg"></bd-icon>
6
+ </slot>
7
+ </span>
8
+
9
+ <div class="content">
10
+ <strong class="title" ?hidden=${!this._slots.has(`title`)}><slot name="title"></slot></strong>
11
+ <div class="body"><slot></slot></div>
12
+ <div class="actions" ?hidden=${!this._slots.has(`actions`)}>
13
+ <slot name="actions"></slot>
14
+ </div>
15
+ </div>
16
+
17
+ ${this.dismissible?o`
18
+ <button
19
+ class="dismiss"
20
+ type="button"
21
+ aria-label=${this.dismissLabel}
22
+ @click=${this._onDismiss}
23
+ >
24
+ <bd-icon name="close" size="sm"></bd-icon>
25
+ </button>`:s}
26
+ </div>
27
+ `}};n([c({type:String,reflect:!0})],d.prototype,`variant`,void 0),n([c({type:String,reflect:!0})],d.prototype,`appearance`,void 0),n([c({type:Boolean,reflect:!0})],d.prototype,`dismissible`,void 0),n([c({type:String,attribute:`dismiss-label`})],d.prototype,`dismissLabel`,void 0),d=n([e(`bd-callout`)],d);export{d as BdCallout};
28
+ //# sourceMappingURL=callout.js.map