@repobit/dex-system-design 3.1.2 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1048) hide show
  1. package/CHANGELOG.md +1075 -0
  2. package/README.md +31 -6
  3. package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
  4. package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
  5. package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
  6. package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
  7. package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
  8. package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
  9. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
  10. package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
  11. package/dist/src/components/abstract/abstract.css.d.ts +7 -0
  12. package/dist/src/components/abstract/abstract.css.js +2 -0
  13. package/dist/src/components/abstract/abstract.css.js.map +1 -0
  14. package/dist/src/components/abstract/abstract.d.ts +31 -0
  15. package/dist/src/components/abstract/abstract.js +2 -0
  16. package/dist/src/components/abstract/abstract.js.map +1 -0
  17. package/dist/src/components/accordion/accordion-item.d.ts +93 -0
  18. package/dist/src/components/accordion/accordion-item.js +25 -0
  19. package/dist/src/components/accordion/accordion-item.js.map +1 -0
  20. package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
  21. package/dist/src/components/accordion/accordion-keyboard.js +1 -1
  22. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  23. package/dist/src/components/accordion/accordion.css.d.ts +2 -2
  24. package/dist/src/components/accordion/accordion.css.js +1 -1
  25. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  26. package/dist/src/components/accordion/accordion.d.ts +66 -31
  27. package/dist/src/components/accordion/accordion.js +8 -66
  28. package/dist/src/components/accordion/accordion.js.map +1 -1
  29. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
  30. package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
  31. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
  32. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  33. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
  34. package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
  35. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  36. package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
  37. package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
  38. package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
  39. package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
  40. package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
  41. package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
  42. package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
  43. package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
  44. package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
  45. package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
  46. package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
  47. package/dist/src/components/annotation/annotation.css.js +1 -1
  48. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  49. package/dist/src/components/annotation/annotation.js +2 -2
  50. package/dist/src/components/annotation/annotation.js.map +1 -1
  51. package/dist/src/components/article/article.css.d.ts +30 -0
  52. package/dist/src/components/article/article.css.js +2 -0
  53. package/dist/src/components/article/article.css.js.map +1 -0
  54. package/dist/src/components/article/article.d.ts +135 -0
  55. package/dist/src/components/article/article.js +39 -0
  56. package/dist/src/components/article/article.js.map +1 -0
  57. package/dist/src/components/audience-card/audience-card.css.js +1 -1
  58. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  59. package/dist/src/components/audience-card/audience-card.d.ts +30 -15
  60. package/dist/src/components/audience-card/audience-card.js +9 -11
  61. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  62. package/dist/src/components/authors/authors.css.d.ts +7 -0
  63. package/dist/src/components/authors/authors.css.js +2 -0
  64. package/dist/src/components/authors/authors.css.js.map +1 -0
  65. package/dist/src/components/authors/authors.d.ts +29 -0
  66. package/dist/src/components/authors/authors.js +7 -0
  67. package/dist/src/components/authors/authors.js.map +1 -0
  68. package/dist/src/components/avatar/avatar.js +6 -6
  69. package/dist/src/components/avatar/avatar.js.map +1 -1
  70. package/dist/src/components/awards/award-marks.css.js +2 -0
  71. package/dist/src/components/awards/award-marks.css.js.map +1 -0
  72. package/dist/src/components/awards/award.css.js +2 -0
  73. package/dist/src/components/awards/award.css.js.map +1 -0
  74. package/dist/src/components/awards/award.d.ts +65 -0
  75. package/dist/src/components/awards/award.js +11 -0
  76. package/dist/src/components/awards/award.js.map +1 -0
  77. package/dist/src/components/awards/awards.css.d.ts +2 -1
  78. package/dist/src/components/awards/awards.css.js +1 -1
  79. package/dist/src/components/awards/awards.css.js.map +1 -1
  80. package/dist/src/components/awards/awards.d.ts +123 -71
  81. package/dist/src/components/awards/awards.js +46 -57
  82. package/dist/src/components/awards/awards.js.map +1 -1
  83. package/dist/src/components/awards/scroll-slides.d.ts +9 -8
  84. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  85. package/dist/src/components/back/back.d.ts +12 -7
  86. package/dist/src/components/back/back.js +6 -6
  87. package/dist/src/components/back/back.js.map +1 -1
  88. package/dist/src/components/badge/badge.css.js +1 -1
  89. package/dist/src/components/badge/badge.css.js.map +1 -1
  90. package/dist/src/components/badge/badge.d.ts +11 -11
  91. package/dist/src/components/badge/badge.js +2 -2
  92. package/dist/src/components/badge/badge.js.map +1 -1
  93. package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
  94. package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
  95. package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
  96. package/dist/src/components/bar-chart/bar-chart.js +42 -0
  97. package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
  98. package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
  99. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  100. package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
  101. package/dist/src/components/bento-grid/bento-grid.js +10 -26
  102. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  103. package/dist/src/components/bento-grid/bento-item.css.js +1 -1
  104. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  105. package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
  106. package/dist/src/components/bento-grid/bento-item.js +9 -26
  107. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  108. package/dist/src/components/blockquote/blockquote.css.js +1 -1
  109. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  110. package/dist/src/components/blockquote/blockquote.d.ts +27 -2
  111. package/dist/src/components/blockquote/blockquote.js +1 -1
  112. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  113. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
  114. package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
  115. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  116. package/dist/src/components/button/button.css.js +1 -1
  117. package/dist/src/components/button/button.css.js.map +1 -1
  118. package/dist/src/components/button/button.d.ts +87 -96
  119. package/dist/src/components/button/button.js +20 -33
  120. package/dist/src/components/button/button.js.map +1 -1
  121. package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
  122. package/dist/src/components/callout/callout.css.js +2 -0
  123. package/dist/src/components/callout/callout.css.js.map +1 -0
  124. package/dist/src/components/callout/callout.d.ts +56 -0
  125. package/dist/src/components/callout/callout.js +28 -0
  126. package/dist/src/components/callout/callout.js.map +1 -0
  127. package/dist/src/components/caption/caption.js +2 -2
  128. package/dist/src/components/caption/caption.js.map +1 -1
  129. package/dist/src/components/card/card-grid.css.js +2 -0
  130. package/dist/src/components/card/card-grid.css.js.map +1 -0
  131. package/dist/src/components/card/card-grid.d.ts +63 -0
  132. package/dist/src/components/card/card-grid.js +10 -0
  133. package/dist/src/components/card/card-grid.js.map +1 -0
  134. package/dist/src/components/card/card.css.js +2 -0
  135. package/dist/src/components/card/card.css.js.map +1 -0
  136. package/dist/src/components/card/card.d.ts +86 -0
  137. package/dist/src/components/card/card.js +15 -0
  138. package/dist/src/components/card/card.js.map +1 -0
  139. package/dist/src/components/carousel/carousel.css.js +1 -1
  140. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  141. package/dist/src/components/carousel/carousel.d.ts +64 -37
  142. package/dist/src/components/carousel/carousel.js +24 -32
  143. package/dist/src/components/carousel/carousel.js.map +1 -1
  144. package/dist/src/components/checkbox/checkbox.d.ts +15 -1
  145. package/dist/src/components/checkbox/checkbox.js +6 -5
  146. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  147. package/dist/src/components/code/code.css.d.ts +15 -0
  148. package/dist/src/components/code/code.css.js +1 -1
  149. package/dist/src/components/code/code.css.js.map +1 -1
  150. package/dist/src/components/code/code.d.ts +100 -4
  151. package/dist/src/components/code/code.js +17 -3
  152. package/dist/src/components/code/code.js.map +1 -1
  153. package/dist/src/components/code/prism-page.d.ts +2 -0
  154. package/dist/src/components/code/prism-page.js +2 -0
  155. package/dist/src/components/code/prism-page.js.map +1 -0
  156. package/dist/src/components/code/prism.d.ts +10 -0
  157. package/dist/src/components/code/prism.js +2 -0
  158. package/dist/src/components/code/prism.js.map +1 -0
  159. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
  160. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  161. package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
  162. package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
  163. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  164. package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
  165. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
  166. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  167. package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
  168. package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
  169. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  170. package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
  171. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  172. package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
  173. package/dist/src/components/cta-banner/cta-banner.js +8 -28
  174. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  175. package/dist/src/components/dialog/dialog.css.js +2 -0
  176. package/dist/src/components/dialog/dialog.css.js.map +1 -0
  177. package/dist/src/components/dialog/dialog.d.ts +76 -0
  178. package/dist/src/components/dialog/dialog.js +32 -0
  179. package/dist/src/components/dialog/dialog.js.map +1 -0
  180. package/dist/src/components/display/display.css.js +1 -1
  181. package/dist/src/components/display/display.css.js.map +1 -1
  182. package/dist/src/components/display/display.d.ts +30 -6
  183. package/dist/src/components/display/display.js +7 -5
  184. package/dist/src/components/display/display.js.map +1 -1
  185. package/dist/src/components/divider/divider.css.d.ts +2 -2
  186. package/dist/src/components/divider/divider.css.js +1 -1
  187. package/dist/src/components/divider/divider.css.js.map +1 -1
  188. package/dist/src/components/divider/divider.d.ts +36 -0
  189. package/dist/src/components/divider/divider.js +21 -0
  190. package/dist/src/components/divider/divider.js.map +1 -0
  191. package/dist/src/components/fact/fact.css.d.ts +1 -0
  192. package/dist/src/components/fact/fact.css.js +2 -0
  193. package/dist/src/components/fact/fact.css.js.map +1 -0
  194. package/dist/src/components/fact/fact.d.ts +37 -0
  195. package/dist/src/components/fact/fact.js +2 -0
  196. package/dist/src/components/fact/fact.js.map +1 -0
  197. package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
  198. package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
  199. package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
  200. package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
  201. package/dist/src/components/feature-columns/feature-columns.js +11 -0
  202. package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
  203. package/dist/src/components/features-tab/features-tab.css.js +1 -1
  204. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  205. package/dist/src/components/features-tab/features-tab.d.ts +21 -6
  206. package/dist/src/components/features-tab/features-tab.js +9 -21
  207. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  208. package/dist/src/components/fieldset/fieldset.d.ts +16 -1
  209. package/dist/src/components/fieldset/fieldset.js +3 -3
  210. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  211. package/dist/src/components/footer/footer-group.css.js +2 -0
  212. package/dist/src/components/footer/footer-group.css.js.map +1 -0
  213. package/dist/src/components/footer/footer-group.d.ts +28 -0
  214. package/dist/src/components/footer/footer-group.js +5 -0
  215. package/dist/src/components/footer/footer-group.js.map +1 -0
  216. package/dist/src/components/footer/footer-locale.js +1 -1
  217. package/dist/src/components/footer/footer-locale.js.map +1 -1
  218. package/dist/src/components/footer/footer-nav.css.js +2 -0
  219. package/dist/src/components/footer/footer-nav.css.js.map +1 -0
  220. package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
  221. package/dist/src/components/footer/footer-nav.js +6 -0
  222. package/dist/src/components/footer/footer-nav.js.map +1 -0
  223. package/dist/src/components/footer/footer.css.js +1 -1
  224. package/dist/src/components/footer/footer.css.js.map +1 -1
  225. package/dist/src/components/footer/footer.d.ts +38 -10
  226. package/dist/src/components/footer/footer.js +71 -93
  227. package/dist/src/components/footer/footer.js.map +1 -1
  228. package/dist/src/components/grid/grid.js +7 -7
  229. package/dist/src/components/h/h.css.js +2 -0
  230. package/dist/src/components/h/h.css.js.map +1 -0
  231. package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
  232. package/dist/src/components/h/h.js +7 -0
  233. package/dist/src/components/h/h.js.map +1 -0
  234. package/dist/src/components/hero/hero.css.js +1 -1
  235. package/dist/src/components/hero/hero.css.js.map +1 -1
  236. package/dist/src/components/hero/hero.d.ts +42 -24
  237. package/dist/src/components/hero/hero.js +15 -19
  238. package/dist/src/components/hero/hero.js.map +1 -1
  239. package/dist/src/components/highlight/highlight.css.js +1 -1
  240. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  241. package/dist/src/components/highlight/highlight.d.ts +21 -12
  242. package/dist/src/components/highlight/highlight.js +1 -4
  243. package/dist/src/components/highlight/highlight.js.map +1 -1
  244. package/dist/src/components/hint/hint.css.d.ts +3 -0
  245. package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
  246. package/dist/src/components/hint/hint.css.js.map +1 -0
  247. package/dist/src/components/hint/hint.d.ts +33 -0
  248. package/dist/src/components/hint/hint.js +4 -0
  249. package/dist/src/components/hint/hint.js.map +1 -0
  250. package/dist/src/components/icons/analysis.d.ts +1 -0
  251. package/dist/src/components/icons/analysis.js +6 -0
  252. package/dist/src/components/icons/analysis.js.map +1 -0
  253. package/dist/src/components/icons/arrow-down.d.ts +1 -0
  254. package/dist/src/components/icons/arrow-down.js +6 -0
  255. package/dist/src/components/icons/arrow-down.js.map +1 -0
  256. package/dist/src/components/icons/arrow-right.d.ts +1 -0
  257. package/dist/src/components/icons/arrow-right.js +6 -0
  258. package/dist/src/components/icons/arrow-right.js.map +1 -0
  259. package/dist/src/components/icons/arrow-up.d.ts +1 -0
  260. package/dist/src/components/icons/arrow-up.js +6 -0
  261. package/dist/src/components/icons/arrow-up.js.map +1 -0
  262. package/dist/src/components/icons/arrow.d.ts +1 -0
  263. package/dist/src/components/icons/arrow.js +6 -0
  264. package/dist/src/components/icons/arrow.js.map +1 -0
  265. package/dist/src/components/icons/brand-signature.d.ts +1 -0
  266. package/dist/src/components/icons/brand-signature.js +6 -0
  267. package/dist/src/components/icons/brand-signature.js.map +1 -0
  268. package/dist/src/components/icons/check.d.ts +1 -0
  269. package/dist/src/components/icons/check.js +6 -0
  270. package/dist/src/components/icons/check.js.map +1 -0
  271. package/dist/src/components/icons/circle-info.d.ts +1 -0
  272. package/dist/src/components/icons/circle-info.js +8 -0
  273. package/dist/src/components/icons/circle-info.js.map +1 -0
  274. package/dist/src/components/icons/clipboard.d.ts +1 -0
  275. package/dist/src/components/icons/clipboard.js +7 -0
  276. package/dist/src/components/icons/clipboard.js.map +1 -0
  277. package/dist/src/components/icons/close.d.ts +1 -0
  278. package/dist/src/components/icons/close.js +6 -0
  279. package/dist/src/components/icons/close.js.map +1 -0
  280. package/dist/src/components/icons/enterprise.d.ts +1 -0
  281. package/dist/src/components/icons/enterprise.js +6 -0
  282. package/dist/src/components/icons/enterprise.js.map +1 -0
  283. package/dist/src/components/icons/envelope.d.ts +1 -0
  284. package/dist/src/components/icons/envelope.js +7 -0
  285. package/dist/src/components/icons/envelope.js.map +1 -0
  286. package/dist/src/components/icons/family.d.ts +1 -0
  287. package/dist/src/components/icons/family.js +8 -0
  288. package/dist/src/components/icons/family.js.map +1 -0
  289. package/dist/src/components/icons/globe.d.ts +1 -0
  290. package/dist/src/components/icons/globe.js +6 -0
  291. package/dist/src/components/icons/globe.js.map +1 -0
  292. package/dist/src/components/icons/guide.d.ts +1 -0
  293. package/dist/src/components/icons/guide.js +6 -0
  294. package/dist/src/components/icons/guide.js.map +1 -0
  295. package/dist/src/components/icons/home.d.ts +1 -0
  296. package/dist/src/components/icons/home.js +6 -0
  297. package/dist/src/components/icons/home.js.map +1 -0
  298. package/dist/src/components/icons/icon.d.ts +60 -0
  299. package/dist/src/components/icons/icon.js +2 -0
  300. package/dist/src/components/icons/icon.js.map +1 -0
  301. package/dist/src/components/icons/icons.d.ts +43 -36
  302. package/dist/src/components/icons/icons.js +1 -1
  303. package/dist/src/components/icons/individual.d.ts +1 -0
  304. package/dist/src/components/icons/individual.js +6 -0
  305. package/dist/src/components/icons/individual.js.map +1 -0
  306. package/dist/src/components/icons/laurel.d.ts +1 -0
  307. package/dist/src/components/icons/laurel.js +13 -0
  308. package/dist/src/components/icons/laurel.js.map +1 -0
  309. package/dist/src/components/icons/machine-learning.d.ts +1 -0
  310. package/dist/src/components/icons/machine-learning.js +6 -0
  311. package/dist/src/components/icons/machine-learning.js.map +1 -0
  312. package/dist/src/components/icons/mark.d.ts +66 -0
  313. package/dist/src/components/icons/mark.js +2 -0
  314. package/dist/src/components/icons/mark.js.map +1 -0
  315. package/dist/src/components/icons/marks/ai.d.ts +1 -0
  316. package/dist/src/components/icons/marks/ai.js +6 -0
  317. package/dist/src/components/icons/marks/ai.js.map +1 -0
  318. package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
  319. package/dist/src/components/icons/marks/av-comparatives.js +12 -0
  320. package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
  321. package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
  322. package/dist/src/components/icons/marks/best-brands.js +12 -0
  323. package/dist/src/components/icons/marks/best-brands.js.map +1 -0
  324. package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
  325. package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
  326. package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
  327. package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
  328. package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
  329. package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
  330. package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
  331. package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
  332. package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
  333. package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
  334. package/dist/src/components/icons/marks/pc-mag.js +11 -0
  335. package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
  336. package/dist/src/components/icons/marks/top-product.d.ts +1 -0
  337. package/dist/src/components/icons/marks/top-product.js +11 -0
  338. package/dist/src/components/icons/marks/top-product.js.map +1 -0
  339. package/dist/src/components/icons/marks.d.ts +29 -28
  340. package/dist/src/components/icons/marks.js +1 -1
  341. package/dist/src/components/icons/minus.d.ts +1 -0
  342. package/dist/src/components/icons/minus.js +6 -0
  343. package/dist/src/components/icons/minus.js.map +1 -0
  344. package/dist/src/components/icons/pause.d.ts +1 -0
  345. package/dist/src/components/icons/pause.js +7 -0
  346. package/dist/src/components/icons/pause.js.map +1 -0
  347. package/dist/src/components/icons/play.d.ts +1 -0
  348. package/dist/src/components/icons/play.js +6 -0
  349. package/dist/src/components/icons/play.js.map +1 -0
  350. package/dist/src/components/icons/plus.d.ts +1 -0
  351. package/dist/src/components/icons/plus.js +6 -0
  352. package/dist/src/components/icons/plus.js.map +1 -0
  353. package/dist/src/components/icons/quote.d.ts +1 -0
  354. package/dist/src/components/icons/quote.js +6 -0
  355. package/dist/src/components/icons/quote.js.map +1 -0
  356. package/dist/src/components/icons/registry.d.ts +122 -0
  357. package/dist/src/components/icons/registry.js +4 -0
  358. package/dist/src/components/icons/registry.js.map +1 -0
  359. package/dist/src/components/icons/small-business.d.ts +1 -0
  360. package/dist/src/components/icons/small-business.js +6 -0
  361. package/dist/src/components/icons/small-business.js.map +1 -0
  362. package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
  363. package/dist/src/components/img/img.css.js.map +1 -0
  364. package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
  365. package/dist/src/components/img/img.js +17 -0
  366. package/dist/src/components/img/img.js.map +1 -0
  367. package/dist/src/components/input/input.css.d.ts +7 -5
  368. package/dist/src/components/input/input.css.js +1 -1
  369. package/dist/src/components/input/input.css.js.map +1 -1
  370. package/dist/src/components/input/input.d.ts +34 -12
  371. package/dist/src/components/input/input.js +30 -29
  372. package/dist/src/components/input/input.js.map +1 -1
  373. package/dist/src/components/install-options/install-option.css.js +2 -0
  374. package/dist/src/components/install-options/install-option.css.js.map +1 -0
  375. package/dist/src/components/install-options/install-option.d.ts +57 -0
  376. package/dist/src/components/install-options/install-option.js +29 -0
  377. package/dist/src/components/install-options/install-option.js.map +1 -0
  378. package/dist/src/components/install-options/install-options.css.js +1 -1
  379. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  380. package/dist/src/components/install-options/install-options.d.ts +42 -31
  381. package/dist/src/components/install-options/install-options.js +42 -85
  382. package/dist/src/components/install-options/install-options.js.map +1 -1
  383. package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
  384. package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
  385. package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
  386. package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
  387. package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
  388. package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
  389. package/dist/src/components/label/label.js +3 -3
  390. package/dist/src/components/label/label.js.map +1 -1
  391. package/dist/src/components/link/link.css.js +1 -1
  392. package/dist/src/components/link/link.css.js.map +1 -1
  393. package/dist/src/components/link/link.d.ts +25 -16
  394. package/dist/src/components/link/link.js +3 -3
  395. package/dist/src/components/link/link.js.map +1 -1
  396. package/dist/src/components/list/list-item/list-item.css.js +1 -1
  397. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  398. package/dist/src/components/list/list-item/list-item.d.ts +9 -7
  399. package/dist/src/components/list/list-item/list-item.js +3 -3
  400. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  401. package/dist/src/components/list/list.d.ts +3 -2
  402. package/dist/src/components/list/list.js +2 -2
  403. package/dist/src/components/list/list.js.map +1 -1
  404. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
  405. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  406. package/dist/src/components/logo-marquee/logo-marquee.d.ts +16 -2
  407. package/dist/src/components/logo-marquee/logo-marquee.js +10 -12
  408. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  409. package/dist/src/components/meta/meta.css.d.ts +8 -0
  410. package/dist/src/components/meta/meta.css.js +2 -0
  411. package/dist/src/components/meta/meta.css.js.map +1 -0
  412. package/dist/src/components/meta/meta.d.ts +37 -0
  413. package/dist/src/components/meta/meta.js +2 -0
  414. package/dist/src/components/meta/meta.js.map +1 -0
  415. package/dist/src/components/motion-art/motion-art.d.ts +39 -2
  416. package/dist/src/components/motion-art/motion-art.js +1 -1
  417. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  418. package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
  419. package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
  420. package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
  421. package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
  422. package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
  423. package/dist/src/components/overview/overview.css.js +1 -1
  424. package/dist/src/components/overview/overview.css.js.map +1 -1
  425. package/dist/src/components/overview/overview.d.ts +23 -12
  426. package/dist/src/components/overview/overview.js +9 -24
  427. package/dist/src/components/overview/overview.js.map +1 -1
  428. package/dist/src/components/p/p.css.js +2 -0
  429. package/dist/src/components/p/p.css.js.map +1 -0
  430. package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
  431. package/dist/src/components/p/p.js +6 -0
  432. package/dist/src/components/p/p.js.map +1 -0
  433. package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
  434. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  435. package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
  436. package/dist/src/components/page-switcher/page-switcher.js +5 -13
  437. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  438. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
  439. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  440. package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
  441. package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
  442. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  443. package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
  444. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  445. package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
  446. package/dist/src/components/partner-banner/partner-banner.js +11 -11
  447. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  448. package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
  449. package/dist/src/components/paste-button/paste-button.css.js +2 -0
  450. package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
  451. package/dist/src/components/paste-button/paste-button.d.ts +68 -0
  452. package/dist/src/components/paste-button/paste-button.js +17 -0
  453. package/dist/src/components/paste-button/paste-button.js.map +1 -0
  454. package/dist/src/components/picture/picture.js +3 -3
  455. package/dist/src/components/picture/picture.js.map +1 -1
  456. package/dist/src/components/post-card/post-card.css.js +1 -1
  457. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  458. package/dist/src/components/post-card/post-card.d.ts +65 -24
  459. package/dist/src/components/post-card/post-card.js +13 -9
  460. package/dist/src/components/post-card/post-card.js.map +1 -1
  461. package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
  462. package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
  463. package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
  464. package/dist/src/components/pricing-card/pricing-card.js +16 -0
  465. package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
  466. package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
  467. package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
  468. package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
  469. package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
  470. package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
  471. package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
  472. package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
  473. package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
  474. package/dist/src/components/pricing-card/pricing-feature.js +19 -0
  475. package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
  476. package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
  477. package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
  478. package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
  479. package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
  480. package/dist/src/components/pricing-card/pricing-group.js +6 -0
  481. package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
  482. package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
  483. package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
  484. package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
  485. package/dist/src/components/pricing-card/pricing-price.js +11 -0
  486. package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
  487. package/dist/src/components/process-steps/process-step.css.js +2 -0
  488. package/dist/src/components/process-steps/process-step.css.js.map +1 -0
  489. package/dist/src/components/process-steps/process-step.d.ts +31 -0
  490. package/dist/src/components/process-steps/process-step.js +6 -0
  491. package/dist/src/components/process-steps/process-step.js.map +1 -0
  492. package/dist/src/components/process-steps/process-steps.css.js +1 -1
  493. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  494. package/dist/src/components/process-steps/process-steps.d.ts +36 -19
  495. package/dist/src/components/process-steps/process-steps.js +5 -26
  496. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  497. package/dist/src/components/product-hero/product-hero.css.js +2 -0
  498. package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
  499. package/dist/src/components/product-hero/product-hero.d.ts +71 -0
  500. package/dist/src/components/product-hero/product-hero.js +123 -0
  501. package/dist/src/components/product-hero/product-hero.js.map +1 -0
  502. package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
  503. package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
  504. package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
  505. package/dist/src/components/product-upsell/product-upsell.js +14 -0
  506. package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
  507. package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
  508. package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
  509. package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
  510. package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
  511. package/dist/src/components/progress-bar/progress-bar.js +15 -0
  512. package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
  513. package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
  514. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  515. package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
  516. package/dist/src/components/quick-answer/quick-answer.js +13 -29
  517. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  518. package/dist/src/components/radio/radio-group.css.js +1 -1
  519. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  520. package/dist/src/components/radio/radio-group.d.ts +9 -5
  521. package/dist/src/components/radio/radio-group.js +5 -5
  522. package/dist/src/components/radio/radio-group.js.map +1 -1
  523. package/dist/src/components/radio/radio.css.d.ts +2 -1
  524. package/dist/src/components/radio/radio.css.js.map +1 -1
  525. package/dist/src/components/radio/radio.d.ts +8 -2
  526. package/dist/src/components/radio/radio.js +6 -5
  527. package/dist/src/components/radio/radio.js.map +1 -1
  528. package/dist/src/components/related-articles/related-articles.css.js +2 -0
  529. package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
  530. package/dist/src/components/related-articles/related-articles.d.ts +52 -0
  531. package/dist/src/components/related-articles/related-articles.js +9 -0
  532. package/dist/src/components/related-articles/related-articles.js.map +1 -0
  533. package/dist/src/components/report-promo/report-promo.css.js +2 -0
  534. package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
  535. package/dist/src/components/report-promo/report-promo.d.ts +70 -0
  536. package/dist/src/components/report-promo/report-promo.js +19 -0
  537. package/dist/src/components/report-promo/report-promo.js.map +1 -0
  538. package/dist/src/components/review/review-grid.css.js +1 -1
  539. package/dist/src/components/review/review-grid.css.js.map +1 -1
  540. package/dist/src/components/review/review-grid.d.ts +27 -6
  541. package/dist/src/components/review/review-grid.js +7 -7
  542. package/dist/src/components/review/review-grid.js.map +1 -1
  543. package/dist/src/components/review/review.css.js +1 -1
  544. package/dist/src/components/review/review.css.js.map +1 -1
  545. package/dist/src/components/review/review.d.ts +24 -17
  546. package/dist/src/components/review/review.js +7 -11
  547. package/dist/src/components/review/review.js.map +1 -1
  548. package/dist/src/components/section/section.css.js +1 -1
  549. package/dist/src/components/section/section.css.js.map +1 -1
  550. package/dist/src/components/section/section.d.ts +8 -6
  551. package/dist/src/components/section/section.js +1 -1
  552. package/dist/src/components/section/section.js.map +1 -1
  553. package/dist/src/components/section-header/section-header.css.js +1 -1
  554. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  555. package/dist/src/components/section-header/section-header.d.ts +22 -23
  556. package/dist/src/components/section-header/section-header.js +6 -8
  557. package/dist/src/components/section-header/section-header.js.map +1 -1
  558. package/dist/src/components/select/select-option.d.ts +29 -0
  559. package/dist/src/components/select/select-option.js +2 -0
  560. package/dist/src/components/select/select-option.js.map +1 -0
  561. package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
  562. package/dist/src/components/select/select.css.js.map +1 -0
  563. package/dist/src/components/select/select.d.ts +85 -0
  564. package/dist/src/components/select/select.js +36 -0
  565. package/dist/src/components/select/select.js.map +1 -0
  566. package/dist/src/components/shared/adopt-styles.d.ts +53 -0
  567. package/dist/src/components/shared/adopt-styles.js +2 -0
  568. package/dist/src/components/shared/adopt-styles.js.map +1 -0
  569. package/dist/src/components/shared/controller.slot.d.ts +65 -0
  570. package/dist/src/components/shared/controller.slot.js +2 -0
  571. package/dist/src/components/shared/controller.slot.js.map +1 -0
  572. package/dist/src/components/shared/events.d.ts +19 -23
  573. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  574. package/dist/src/components/shared/flat-text.d.ts +15 -0
  575. package/dist/src/components/shared/flat-text.js +2 -0
  576. package/dist/src/components/shared/flat-text.js.map +1 -0
  577. package/dist/src/components/shared/form-control.d.ts +35 -3
  578. package/dist/src/components/shared/form-control.js +11 -1
  579. package/dist/src/components/shared/form-control.js.map +1 -1
  580. package/dist/src/components/shared/form-field.css.d.ts +5 -5
  581. package/dist/src/components/shared/form-field.css.js +1 -1
  582. package/dist/src/components/shared/form-field.css.js.map +1 -1
  583. package/dist/src/components/shared/hold.d.ts +14 -0
  584. package/dist/src/components/shared/hold.js +2 -0
  585. package/dist/src/components/shared/hold.js.map +1 -0
  586. package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
  587. package/dist/src/components/shared/prop-vocabulary.js +1 -1
  588. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  589. package/dist/src/components/shared/tablist.d.ts +31 -0
  590. package/dist/src/components/shared/tablist.js +2 -0
  591. package/dist/src/components/shared/tablist.js.map +1 -0
  592. package/dist/src/components/shared/token-scales.d.ts +30 -4
  593. package/dist/src/components/shared/token-scales.js +1 -1
  594. package/dist/src/components/shared/token-scales.js.map +1 -1
  595. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  596. package/dist/src/components/spinner/spinner.js +2 -2
  597. package/dist/src/components/spinner/spinner.js.map +1 -1
  598. package/dist/src/components/spotlight/spotlight.css.js +2 -0
  599. package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
  600. package/dist/src/components/spotlight/spotlight.d.ts +31 -0
  601. package/dist/src/components/spotlight/spotlight.js +18 -0
  602. package/dist/src/components/spotlight/spotlight.js.map +1 -0
  603. package/dist/src/components/stat/stat-highlight.d.ts +1 -1
  604. package/dist/src/components/stat/stat.css.d.ts +1 -1
  605. package/dist/src/components/stat/stat.css.js +1 -1
  606. package/dist/src/components/stat/stat.css.js.map +1 -1
  607. package/dist/src/components/stat/stat.d.ts +41 -1
  608. package/dist/src/components/stat/stat.js +12 -1
  609. package/dist/src/components/stat/stat.js.map +1 -0
  610. package/dist/src/components/switch/switch.css.js +1 -1
  611. package/dist/src/components/switch/switch.css.js.map +1 -1
  612. package/dist/src/components/switch/switch.d.ts +10 -2
  613. package/dist/src/components/switch/switch.js +5 -4
  614. package/dist/src/components/switch/switch.js.map +1 -1
  615. package/dist/src/components/tab-group/tab-group.css.js +2 -0
  616. package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
  617. package/dist/src/components/tab-group/tab-group.d.ts +172 -0
  618. package/dist/src/components/tab-group/tab-group.js +16 -0
  619. package/dist/src/components/tab-group/tab-group.js.map +1 -0
  620. package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
  621. package/dist/src/components/tab-group/tab-panel.js +2 -0
  622. package/dist/src/components/tab-group/tab-panel.js.map +1 -0
  623. package/dist/src/components/tab-group/tab.css.js +2 -0
  624. package/dist/src/components/tab-group/tab.css.js.map +1 -0
  625. package/dist/src/components/tab-group/tab.d.ts +53 -0
  626. package/dist/src/components/tab-group/tab.js +2 -0
  627. package/dist/src/components/tab-group/tab.js.map +1 -0
  628. package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
  629. package/dist/src/components/table-of-contents/reading-line.js +2 -0
  630. package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
  631. package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
  632. package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
  633. package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
  634. package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
  635. package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
  636. package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
  637. package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
  638. package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
  639. package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
  640. package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
  641. package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
  642. package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
  643. package/dist/src/components/tag/tag.css.js +1 -1
  644. package/dist/src/components/tag/tag.css.js.map +1 -1
  645. package/dist/src/components/tag/tag.d.ts +31 -4
  646. package/dist/src/components/tag/tag.js +1 -3
  647. package/dist/src/components/tag/tag.js.map +1 -1
  648. package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
  649. package/dist/src/components/terminal/terminal-cursor.js +1 -1
  650. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  651. package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
  652. package/dist/src/components/terminal/terminal-line.css.js +2 -0
  653. package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
  654. package/dist/src/components/terminal/terminal-line.d.ts +42 -0
  655. package/dist/src/components/terminal/terminal-line.js +8 -0
  656. package/dist/src/components/terminal/terminal-line.js.map +1 -0
  657. package/dist/src/components/terminal/terminal.css.d.ts +2 -0
  658. package/dist/src/components/terminal/terminal.css.js +2 -0
  659. package/dist/src/components/terminal/terminal.css.js.map +1 -0
  660. package/dist/src/components/terminal/terminal.d.ts +52 -0
  661. package/dist/src/components/terminal/terminal.js +19 -0
  662. package/dist/src/components/terminal/terminal.js.map +1 -0
  663. package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
  664. package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
  665. package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
  666. package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
  667. package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
  668. package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
  669. package/dist/src/components/terms/terms.css.d.ts +2 -0
  670. package/dist/src/components/terms/terms.css.js +2 -0
  671. package/dist/src/components/terms/terms.css.js.map +1 -0
  672. package/dist/src/components/terms/terms.d.ts +42 -0
  673. package/dist/src/components/terms/terms.js +9 -0
  674. package/dist/src/components/terms/terms.js.map +1 -0
  675. package/dist/src/components/textarea/textarea.css.d.ts +2 -2
  676. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  677. package/dist/src/components/textarea/textarea.d.ts +15 -6
  678. package/dist/src/components/textarea/textarea.js +13 -17
  679. package/dist/src/components/textarea/textarea.js.map +1 -1
  680. package/dist/src/components/tooltip/tooltip.d.ts +25 -4
  681. package/dist/src/components/tooltip/tooltip.js +5 -8
  682. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  683. package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
  684. package/dist/src/components/trust-panel/trust-card.css.js +2 -0
  685. package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
  686. package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
  687. package/dist/src/components/trust-panel/trust-card.js +10 -0
  688. package/dist/src/components/trust-panel/trust-card.js.map +1 -0
  689. package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
  690. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  691. package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
  692. package/dist/src/components/trust-panel/trust-panel.js +10 -57
  693. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  694. package/dist/src/components/video/video.js +1 -1
  695. package/dist/src/components/video/video.js.map +1 -1
  696. package/dist/src/components/video-player/video-player.d.ts +25 -3
  697. package/dist/src/components/video-player/video-player.js +7 -7
  698. package/dist/src/components/video-player/video-player.js.map +1 -1
  699. package/dist/src/loader/create-loader.d.ts +13 -2
  700. package/dist/src/loader/create-loader.js +1 -1
  701. package/dist/src/loader/create-loader.js.map +1 -1
  702. package/dist/src/loader/loader.d.ts +7 -4
  703. package/dist/src/loader/loader.js.map +1 -1
  704. package/dist/src/loader/registry.js +1 -1
  705. package/dist/src/loader/registry.js.map +1 -1
  706. package/dist/src/tokens/fonts.css +1 -1
  707. package/dist/src/tokens/layout.css +1 -1
  708. package/dist/src/tokens/scheme-layer.d.ts +55 -0
  709. package/dist/src/tokens/scheme-layer.js +5 -0
  710. package/dist/src/tokens/scheme-layer.js.map +1 -0
  711. package/dist/src/tokens/themes/dark.d.ts +64 -0
  712. package/dist/src/tokens/themes/dark.js +2 -0
  713. package/dist/src/tokens/themes/dark.js.map +1 -0
  714. package/dist/src/tokens/tokens.css +1 -1
  715. package/dist/src/tokens/tokens.d.ts +4 -25
  716. package/dist/src/tokens/tokens.js +1 -1
  717. package/dist/src/tokens/tokens.js.map +1 -1
  718. package/dist/src/vendor/prism/LICENSE +21 -0
  719. package/dist/src/vendor/prism/README.md +65 -0
  720. package/dist/src/vendor/prism/prism.d.ts +7 -0
  721. package/dist/src/vendor/prism/prism.js +13 -0
  722. package/package.json +163 -105
  723. package/schemas/README.md +55 -1
  724. package/schemas/component-manifest.json +4110 -2766
  725. package/schemas/figma-component-map.json +3247 -0
  726. package/schemas/manifest-omissions.json +1 -26
  727. package/schemas/page-schema.json +28 -1
  728. package/dist/src/components/accordion/accordion-bg.css.js +0 -2
  729. package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
  730. package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
  731. package/dist/src/components/accordion/accordion-bg.js +0 -76
  732. package/dist/src/components/accordion/accordion-bg.js.map +0 -1
  733. package/dist/src/components/alert/alert.css.js +0 -2
  734. package/dist/src/components/alert/alert.css.js.map +0 -1
  735. package/dist/src/components/alert/alert.d.ts +0 -55
  736. package/dist/src/components/alert/alert.js +0 -28
  737. package/dist/src/components/alert/alert.js.map +0 -1
  738. package/dist/src/components/anchor/anchor-nav.css.js +0 -2
  739. package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
  740. package/dist/src/components/anchor/anchor-nav.js +0 -67
  741. package/dist/src/components/anchor/anchor-nav.js.map +0 -1
  742. package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
  743. package/dist/src/components/awards/awards-flex.css.js +0 -2
  744. package/dist/src/components/awards/awards-flex.css.js.map +0 -1
  745. package/dist/src/components/awards/awards-flex.d.ts +0 -65
  746. package/dist/src/components/awards/awards-flex.js +0 -68
  747. package/dist/src/components/awards/awards-flex.js.map +0 -1
  748. package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
  749. package/dist/src/components/awards/awards-spotlight.css.js +0 -2
  750. package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
  751. package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
  752. package/dist/src/components/awards/awards-spotlight.js +0 -51
  753. package/dist/src/components/awards/awards-spotlight.js.map +0 -1
  754. package/dist/src/components/card-features/card-features.css.js +0 -2
  755. package/dist/src/components/card-features/card-features.css.js.map +0 -1
  756. package/dist/src/components/card-features/card-features.d.ts +0 -43
  757. package/dist/src/components/card-features/card-features.js +0 -37
  758. package/dist/src/components/card-features/card-features.js.map +0 -1
  759. package/dist/src/components/cards/card.css.js +0 -2
  760. package/dist/src/components/cards/card.css.js.map +0 -1
  761. package/dist/src/components/cards/card.d.ts +0 -61
  762. package/dist/src/components/cards/card.js +0 -54
  763. package/dist/src/components/cards/card.js.map +0 -1
  764. package/dist/src/components/compare/compare.css.js +0 -2
  765. package/dist/src/components/compare/compare.css.js.map +0 -1
  766. package/dist/src/components/compare/compare.d.ts +0 -79
  767. package/dist/src/components/compare/compare.js +0 -122
  768. package/dist/src/components/compare/compare.js.map +0 -1
  769. package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
  770. package/dist/src/components/divider/divider-horizontal.js +0 -11
  771. package/dist/src/components/divider/divider-horizontal.js.map +0 -1
  772. package/dist/src/components/divider/divider-vertical.d.ts +0 -16
  773. package/dist/src/components/divider/divider-vertical.js +0 -12
  774. package/dist/src/components/divider/divider-vertical.js.map +0 -1
  775. package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
  776. package/dist/src/components/dropdown/dropdown.d.ts +0 -49
  777. package/dist/src/components/dropdown/dropdown.js +0 -36
  778. package/dist/src/components/dropdown/dropdown.js.map +0 -1
  779. package/dist/src/components/features/features.css.js +0 -2
  780. package/dist/src/components/features/features.css.js.map +0 -1
  781. package/dist/src/components/features/features.d.ts +0 -21
  782. package/dist/src/components/features/features.js +0 -28
  783. package/dist/src/components/features/features.js.map +0 -1
  784. package/dist/src/components/footer/footer-images.d.ts +0 -3
  785. package/dist/src/components/footer/footer-images.js +0 -9
  786. package/dist/src/components/footer/footer-images.js.map +0 -1
  787. package/dist/src/components/footer/footer-links-group.css.js +0 -2
  788. package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
  789. package/dist/src/components/footer/footer-links-group.d.ts +0 -13
  790. package/dist/src/components/footer/footer-links-group.js +0 -5
  791. package/dist/src/components/footer/footer-links-group.js.map +0 -1
  792. package/dist/src/components/footer/footer-lp.d.ts +0 -26
  793. package/dist/src/components/footer/footer-lp.js +0 -45
  794. package/dist/src/components/footer/footer-lp.js.map +0 -1
  795. package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
  796. package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
  797. package/dist/src/components/footer/footer-nav-menu.js +0 -6
  798. package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
  799. package/dist/src/components/header/header-code.css.js +0 -2
  800. package/dist/src/components/header/header-code.css.js.map +0 -1
  801. package/dist/src/components/header/header-code.d.ts +0 -50
  802. package/dist/src/components/header/header-code.js +0 -80
  803. package/dist/src/components/header/header-code.js.map +0 -1
  804. package/dist/src/components/header/header.css.js +0 -2
  805. package/dist/src/components/header/header.css.js.map +0 -1
  806. package/dist/src/components/header/header.d.ts +0 -32
  807. package/dist/src/components/header/header.js +0 -165
  808. package/dist/src/components/header/header.js.map +0 -1
  809. package/dist/src/components/heading/heading.css.js +0 -2
  810. package/dist/src/components/heading/heading.css.js.map +0 -1
  811. package/dist/src/components/heading/heading.js +0 -6
  812. package/dist/src/components/heading/heading.js.map +0 -1
  813. package/dist/src/components/help-text/help-text.css.d.ts +0 -3
  814. package/dist/src/components/help-text/help-text.css.js.map +0 -1
  815. package/dist/src/components/help-text/help-text.d.ts +0 -14
  816. package/dist/src/components/help-text/help-text.js +0 -4
  817. package/dist/src/components/help-text/help-text.js.map +0 -1
  818. package/dist/src/components/icons/analysis-icon.d.ts +0 -11
  819. package/dist/src/components/icons/analysis-icon.js +0 -6
  820. package/dist/src/components/icons/analysis-icon.js.map +0 -1
  821. package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
  822. package/dist/src/components/icons/arrow-down-icon.js +0 -6
  823. package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
  824. package/dist/src/components/icons/arrow-icon.d.ts +0 -37
  825. package/dist/src/components/icons/arrow-icon.js +0 -6
  826. package/dist/src/components/icons/arrow-icon.js.map +0 -1
  827. package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
  828. package/dist/src/components/icons/arrow-right-icon.js +0 -6
  829. package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
  830. package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
  831. package/dist/src/components/icons/arrow-up-icon.js +0 -6
  832. package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
  833. package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
  834. package/dist/src/components/icons/av-comparatives-icon.js +0 -13
  835. package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
  836. package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
  837. package/dist/src/components/icons/bd-ai-icon.js +0 -6
  838. package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
  839. package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
  840. package/dist/src/components/icons/best-brands-icon.js +0 -15
  841. package/dist/src/components/icons/best-brands-icon.js.map +0 -1
  842. package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
  843. package/dist/src/components/icons/brand-signature-icon.js +0 -6
  844. package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
  845. package/dist/src/components/icons/check-icon.d.ts +0 -22
  846. package/dist/src/components/icons/check-icon.js +0 -6
  847. package/dist/src/components/icons/check-icon.js.map +0 -1
  848. package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
  849. package/dist/src/components/icons/circle-info-icon.js +0 -8
  850. package/dist/src/components/icons/circle-info-icon.js.map +0 -1
  851. package/dist/src/components/icons/close-icon.d.ts +0 -11
  852. package/dist/src/components/icons/close-icon.js +0 -6
  853. package/dist/src/components/icons/close-icon.js.map +0 -1
  854. package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
  855. package/dist/src/components/icons/enterprise-icon.js +0 -6
  856. package/dist/src/components/icons/enterprise-icon.js.map +0 -1
  857. package/dist/src/components/icons/family-icon.d.ts +0 -11
  858. package/dist/src/components/icons/family-icon.js +0 -8
  859. package/dist/src/components/icons/family-icon.js.map +0 -1
  860. package/dist/src/components/icons/globe-icon.d.ts +0 -11
  861. package/dist/src/components/icons/globe-icon.js +0 -6
  862. package/dist/src/components/icons/globe-icon.js.map +0 -1
  863. package/dist/src/components/icons/guide-icon.d.ts +0 -11
  864. package/dist/src/components/icons/guide-icon.js +0 -6
  865. package/dist/src/components/icons/guide-icon.js.map +0 -1
  866. package/dist/src/components/icons/home-icon.d.ts +0 -11
  867. package/dist/src/components/icons/home-icon.js +0 -6
  868. package/dist/src/components/icons/home-icon.js.map +0 -1
  869. package/dist/src/components/icons/icon-element.d.ts +0 -58
  870. package/dist/src/components/icons/icon-element.js +0 -2
  871. package/dist/src/components/icons/icon-element.js.map +0 -1
  872. package/dist/src/components/icons/individual-icon.d.ts +0 -11
  873. package/dist/src/components/icons/individual-icon.js +0 -6
  874. package/dist/src/components/icons/individual-icon.js.map +0 -1
  875. package/dist/src/components/icons/laurel-icon.d.ts +0 -11
  876. package/dist/src/components/icons/laurel-icon.js +0 -14
  877. package/dist/src/components/icons/laurel-icon.js.map +0 -1
  878. package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
  879. package/dist/src/components/icons/machine-learning-icon.js +0 -6
  880. package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
  881. package/dist/src/components/icons/minus-icon.d.ts +0 -11
  882. package/dist/src/components/icons/minus-icon.js +0 -7
  883. package/dist/src/components/icons/minus-icon.js.map +0 -1
  884. package/dist/src/components/icons/missing-icon.d.ts +0 -41
  885. package/dist/src/components/icons/missing-icon.js +0 -8
  886. package/dist/src/components/icons/missing-icon.js.map +0 -1
  887. package/dist/src/components/icons/pause-icon.d.ts +0 -11
  888. package/dist/src/components/icons/pause-icon.js +0 -7
  889. package/dist/src/components/icons/pause-icon.js.map +0 -1
  890. package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
  891. package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
  892. package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
  893. package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
  894. package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
  895. package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
  896. package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
  897. package/dist/src/components/icons/pc-mag-icon.js +0 -14
  898. package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
  899. package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
  900. package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
  901. package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
  902. package/dist/src/components/icons/play-icon.d.ts +0 -11
  903. package/dist/src/components/icons/play-icon.js +0 -6
  904. package/dist/src/components/icons/play-icon.js.map +0 -1
  905. package/dist/src/components/icons/plus-icon.d.ts +0 -11
  906. package/dist/src/components/icons/plus-icon.js +0 -6
  907. package/dist/src/components/icons/plus-icon.js.map +0 -1
  908. package/dist/src/components/icons/quote-icon.d.ts +0 -20
  909. package/dist/src/components/icons/quote-icon.js +0 -6
  910. package/dist/src/components/icons/quote-icon.js.map +0 -1
  911. package/dist/src/components/icons/small-business-icon.d.ts +0 -11
  912. package/dist/src/components/icons/small-business-icon.js +0 -6
  913. package/dist/src/components/icons/small-business-icon.js.map +0 -1
  914. package/dist/src/components/icons/top-product-icon.d.ts +0 -13
  915. package/dist/src/components/icons/top-product-icon.js +0 -14
  916. package/dist/src/components/icons/top-product-icon.js.map +0 -1
  917. package/dist/src/components/image/image.css.js.map +0 -1
  918. package/dist/src/components/image/image.js +0 -17
  919. package/dist/src/components/image/image.js.map +0 -1
  920. package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
  921. package/dist/src/components/input/input-clipboard.css.js +0 -2
  922. package/dist/src/components/input/input-clipboard.css.js.map +0 -1
  923. package/dist/src/components/input/input-clipboard.d.ts +0 -52
  924. package/dist/src/components/input/input-clipboard.js +0 -62
  925. package/dist/src/components/input/input-clipboard.js.map +0 -1
  926. package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
  927. package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
  928. package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
  929. package/dist/src/components/light-carousel/light-carousel.js +0 -34
  930. package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
  931. package/dist/src/components/modal/modal.css.js +0 -2
  932. package/dist/src/components/modal/modal.css.js.map +0 -1
  933. package/dist/src/components/modal/modal.d.ts +0 -52
  934. package/dist/src/components/modal/modal.js +0 -17
  935. package/dist/src/components/modal/modal.js.map +0 -1
  936. package/dist/src/components/paragraph/paragraph.css.js +0 -2
  937. package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
  938. package/dist/src/components/paragraph/paragraph.js +0 -6
  939. package/dist/src/components/paragraph/paragraph.js.map +0 -1
  940. package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
  941. package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
  942. package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
  943. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
  944. package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
  945. package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
  946. package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
  947. package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
  948. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
  949. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
  950. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
  951. package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
  952. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
  953. package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
  954. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
  955. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
  956. package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
  957. package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
  958. package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
  959. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
  960. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
  961. package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
  962. package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
  963. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
  964. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
  965. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
  966. package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
  967. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
  968. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
  969. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
  970. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
  971. package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
  972. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
  973. package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
  974. package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
  975. package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
  976. package/dist/src/components/pricing-cards/pricing-card.js +0 -258
  977. package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
  978. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
  979. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
  980. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
  981. package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
  982. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
  983. package/dist/src/components/progress/progress.css.d.ts +0 -3
  984. package/dist/src/components/progress/progress.css.js +0 -2
  985. package/dist/src/components/progress/progress.css.js.map +0 -1
  986. package/dist/src/components/progress/progress.d.ts +0 -19
  987. package/dist/src/components/progress/progress.js +0 -11
  988. package/dist/src/components/progress/progress.js.map +0 -1
  989. package/dist/src/components/radio/toggle-radio.d.ts +0 -28
  990. package/dist/src/components/radio/toggle-radio.js +0 -15
  991. package/dist/src/components/radio/toggle-radio.js.map +0 -1
  992. package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
  993. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
  994. package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
  995. package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
  996. package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
  997. package/dist/src/components/stat/stat-tile.d.ts +0 -24
  998. package/dist/src/components/stat/stat-tile.js +0 -7
  999. package/dist/src/components/stat/stat-tile.js.map +0 -1
  1000. package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
  1001. package/dist/src/components/tab-list/tab-list.css.js +0 -2
  1002. package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
  1003. package/dist/src/components/tab-list/tab-list.d.ts +0 -99
  1004. package/dist/src/components/tab-list/tab-list.js +0 -25
  1005. package/dist/src/components/tab-list/tab-list.js.map +0 -1
  1006. package/dist/src/components/tabs/tabs.css.js +0 -2
  1007. package/dist/src/components/tabs/tabs.css.js.map +0 -1
  1008. package/dist/src/components/tabs/tabs.d.ts +0 -69
  1009. package/dist/src/components/tabs/tabs.js +0 -29
  1010. package/dist/src/components/tabs/tabs.js.map +0 -1
  1011. package/dist/src/components/terminal/terminal-message.css.js +0 -2
  1012. package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
  1013. package/dist/src/components/terminal/terminal-message.d.ts +0 -44
  1014. package/dist/src/components/terminal/terminal-message.js +0 -68
  1015. package/dist/src/components/terminal/terminal-message.js.map +0 -1
  1016. package/dist/src/components/termsOfUse/terms.css.js +0 -2
  1017. package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
  1018. package/dist/src/components/termsOfUse/terms.d.ts +0 -22
  1019. package/dist/src/components/termsOfUse/terms.js +0 -78
  1020. package/dist/src/components/termsOfUse/terms.js.map +0 -1
  1021. /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
  1022. /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
  1023. /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
  1024. /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
  1025. /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
  1026. /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
  1027. /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
  1028. /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
  1029. /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
  1030. /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
  1031. /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
  1032. /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
  1033. /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
  1034. /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
  1035. /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
  1036. /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
  1037. /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
  1038. /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
  1039. /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
  1040. /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
  1041. /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
  1042. /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
  1043. /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
  1044. /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
  1045. /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
  1046. /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
  1047. /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
  1048. /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"trust-panel.css.js","names":["trust_panel_css_default"],"sources":["../../../../src/components/trust-panel/trust-panel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n background: var(--status-brand-surface);\n }\n\n .bd-trustpanel-wrapper {\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n .bd-trustpanel-eyebrow {\n display: block;\n margin: 0 0 var(--spacing-8);\n color: var(--color-text-brand);\n }\n\n .bd-trustpanel-title {\n margin: 0 0 var(--spacing-16);\n }\n\n .bd-trustpanel-description {\n display: block;\n margin: 0 0 var(--spacing-40);\n color: var(--color-text-muted);\n max-width: 80ch;\n }\n\n .bd-trustpanel-inline-link {\n /* bd-link owns colour, weight, underline and the focus ring now. What is\n left here is the one thing the parent legitimately decides: that this\n link does not break across lines mid-phrase in running text.\n\n It used to be a bare anchor with text-decoration none, which left colour\n as the only thing marking it as a link inside a muted paragraph, and it\n had no focus treatment beyond the browser default outline. */\n white-space: nowrap;\n }\n\n .bd-trustpanel-card-link {\n /* 16px on this tint, where blue-500 is 4.2:1. text-brand is what the link\n atom itself uses for a primary link, so this stops diverging from it. */\n color: var(--color-text-brand);\n /* link-standalone: this is a link that stands on its own -- a card's call\n to action, not a link inside a sentence, which is what link-default's\n inherit-everything shape is for. The size was inherited at 16px and the\n role names base, so declaring it changes nothing and stops the size\n depending on whatever encloses the card. The weight moves 600 -> 500,\n the same step already accepted for the accordion title and the\n accordion-bg question. The leading is the real gain: it was undeclared\n and computing to the font's own metric, which CLAUDE.md rule 2 says is\n not a typography contract. */\n font-size: var(--typography-link-standalone-fontSize);\n font-weight: var(--typography-link-standalone-fontWeight);\n line-height: var(--typography-link-standalone-lineHeight);\n text-decoration: none;\n white-space: nowrap;\n }\n .bd-trustpanel-card-link:hover {\n text-decoration: underline;\n }\n\n /* === STATS ROW === */\n .bd-trustpanel-stats {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: var(--spacing-24);\n margin-bottom: var(--spacing-40);\n }\n\n .bd-trustpanel-stat {\n display: flex;\n flex-direction: column;\n }\n\n .bd-trustpanel-stat-divider {\n border-top: 2px solid var(--color-border-brand);\n margin-bottom: var(--spacing-16);\n }\n\n .bd-trustpanel-stat-value {\n /* --color-text-brand, the role, not --color-blue-500. CLAUDE.md is explicit\n that blue-500 is 4.53:1 on pure white and fails on any tint, and this\n statistic sits on the panel's blue-50 ground -- text on a tint, which is\n the case the rule names.\n .\n It was not failing: measured 4.20:1 at 32px/700, and WCAG's large-text\n bar is 3:1, so it passed on the exemption rather than on the number. The\n role takes it to 5.72:1 and it passes without needing the exemption,\n which is the difference worth having on a figure people read across a\n room.\n .\n Visible, and small: the statistic darkens one step of blue. */\n color: var(--color-text-brand);\n font-size: var(--typography-fontSize-3xl);\n font-weight: var(--typography-fontWeight-bold);\n /* no token: 1.1 is neither --typography-lineHeight-none (1) nor -tight\n (1.25), and choosing between them changes the height of a rendered\n statistic. P5E recorded it as a design-review item and P5E.1 is\n explicitly not the phase that decides it. */\n line-height: 1.1;\n margin-bottom: var(--spacing-4);\n }\n\n .bd-trustpanel-stat-label {\n color: var(--color-text-muted);\n /* The sentence under a statistic, and it wraps to two lines at most widths.\n Supporting body copy rather than a form label: label-default would put it\n at weight 500, and this is prose describing a number, not a control's\n name. The stat value above it keeps its own leading and is untouched. */\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n }\n\n /* === CARDS === */\n .bd-trustpanel-cards {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--spacing-24);\n }\n\n\n .bd-trustpanel-card {\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n /* normal, not 250ms: a hover lift is the most repeated interaction on\n the page, and 250 was a fifth of a second off the scale for no reason\n anyone recorded. bento-item ran the same lift at the same value. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n }\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted. */\n @media (hover: hover) {\n .bd-trustpanel-card:hover {\n transform: translateY(-3px);\n /* no token: the hover lift bd-bento-item shares -- one wide, soft layer of\n black at 7%. Every --shadow-* step is tighter and darker (10%, two\n layers from md up), so none of them draws this; a card-hover elevation\n would be a new step, decided for both cards at once. The colour is\n mixed over the palette, the house pattern for a black with an alpha\n (see the modal's scrim): it was #00000012, the same pixels. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* The shadow stays and the movement goes. Turning the transition off alone\n would only make the lift instant, which is the same 3px of travel with\n less warning; the transform is the part someone asking for reduced motion\n is asking not to see. The shadow still says the card is hovered. */\n @media (prefers-reduced-motion: reduce) {\n .bd-trustpanel-card {\n transition: none;\n }\n\n .bd-trustpanel-card:hover {\n transform: none;\n }\n }\n\n .bd-trustpanel-card-eyebrow {\n display: block;\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-brand);\n }\n\n .bd-trustpanel-card-logos {\n display: flex;\n align-items: center;\n gap: var(--spacing-16);\n margin-bottom: var(--spacing-20);\n flex-wrap: wrap;\n }\n\n .bd-trustpanel-card-logos ::slotted(*) {\n height: 32px;\n width: auto;\n object-fit: contain;\n }\n\n .bd-trustpanel-card-title {\n margin: 0 0 var(--spacing-12);\n }\n\n .bd-trustpanel-card-description {\n display: block;\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-muted);\n flex: 1;\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(3, 1fr);\n }\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .bd-trustpanel-cards {\n grid-template-columns: 1fr;\n }\n\n .bd-trustpanel-wrapper {\n padding: var(--spacing-32) var(--spacing-24);\n }\n\n .bd-trustpanel-card {\n padding: var(--card-padding-compact);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,0mG"}
1
+ {"version":3,"file":"trust-panel.css.js","names":["trust_panel_css_default"],"sources":["../../../../src/components/trust-panel/trust-panel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n background: var(--status-brand-surface);\n }\n\n .bd-trustpanel-wrapper {\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .bd-trustpanel-wrapper [hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so it takes the eyebrow's role from here: bd-p's\n eyebrow appearance, label-large from lg and label-default below it, in\n brand ink. 16 under it is what 3.x measured: its 8 collapsed into the\n 16 flow margin of the bd-p it drew the eyebrow in. */\n .bd-trustpanel-eyebrow {\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-brand);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n font-family: var(--typography-label-large-fontFamily);\n }\n\n @media ${unsafeCSS(below(\"lg\"))} {\n .bd-trustpanel-eyebrow {\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n font-family: var(--typography-label-default-fontFamily);\n }\n }\n\n .bd-trustpanel-title {\n margin: 0 0 var(--spacing-16);\n }\n\n /* The page section's title: the h2 role at every level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n\n /* The description and the link under it. Both are blocks in one flow, so\n the paragraph's own flow margin is the 16 above the link, and collapses\n into the 40 under the lead when there is no link -- the 40 3.x drew. */\n .bd-trustpanel-lead {\n margin: 0 0 var(--spacing-40);\n }\n\n ::slotted([slot=\"description\"]) {\n max-width: 80ch;\n ${unsafeCSS(ink(\"muted\"))}\n }\n\n .bd-trustpanel-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-16);\n margin-top: var(--spacing-16);\n }\n\n /* === STATS ROW ===\n Each bd-fact is a grid item and draws its own rule. */\n .bd-trustpanel-stats {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: var(--spacing-24);\n margin-bottom: var(--spacing-40);\n }\n\n /* === CARDS ===\n Each bd-trust-card is a grid item and stretches to its row. */\n .bd-trustpanel-cards {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--spacing-24);\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(3, 1fr);\n }\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .bd-trustpanel-cards {\n grid-template-columns: 1fr;\n }\n\n .bd-trustpanel-wrapper {\n padding: var(--spacing-32) var(--spacing-24);\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,8kE"}
@@ -1,35 +1,38 @@
1
1
  import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
2
3
  import "../../tokens/tokens.js";
3
- import "../heading/heading.js";
4
+ import "../fact/fact.js";
5
+ import "./trust-card.js";
6
+ import "../h/h.js";
4
7
  import "../link/link.js";
5
- import "../paragraph/paragraph.js";
6
- import "../icons/arrow-right-icon.js";
7
- interface TrustStat {
8
- value: string;
9
- label: string;
10
- }
11
- interface TrustCard {
12
- eyebrow?: string;
13
- title?: string;
14
- description?: string;
15
- linkLabel?: string;
16
- linkHref?: string;
17
- }
18
- declare class TrustPanel extends LitElement {
8
+ import "../p/p.js";
9
+ /**
10
+ * A light-blue trust section: an eyebrow, a title, a description and a link,
11
+ * a row of statistics, and the cards under them.
12
+ *
13
+ * <bd-trust-panel>
14
+ * <span slot="eyebrow">Why trust it</span>
15
+ * <bd-h slot="title" as="h2">Built by Bitdefender</bd-h>
16
+ * <bd-p slot="description">AI Guardian is made by Bitdefender …</bd-p>
17
+ * <bd-link slot="actions" href="…">Why millions trust Bitdefender</bd-link>
18
+ * <bd-fact slot="stats" appearance="stat"><span slot="value">50B+</span><span slot="label">threats blocked every year</span></bd-fact>
19
+ * <bd-trust-card>…</bd-trust-card>
20
+ * </bd-trust-panel>
21
+ *
22
+ * The cards are the default slot; the statistics are a second collection,
23
+ * so they have a slot of their own, `stats`. The link is its own slot, so it
24
+ * shows whether or not there is a description: 3.x drew it inside the
25
+ * description's paragraph and lost it with the paragraph. The panel sets its
26
+ * title's size (the page-section h2) and its description's ink; the page
27
+ * picks the title's level. Each part's box is hidden while its slot is empty.
28
+ */
29
+ export declare class BdTrustPanel extends LitElement {
19
30
  static styles: import("lit").CSSResult[];
20
- eyebrow: string;
21
- title: string;
22
- description: string;
23
- linkLabel: string;
24
- linkHref: string;
25
- stats: TrustStat[];
26
- cards: TrustCard[];
27
- _renderCard(card: TrustCard, index: number): import("lit-html").TemplateResult<1>;
31
+ _slots: SlotController<"" | "eyebrow" | "title" | "description" | "actions" | "stats">;
28
32
  render(): import("lit-html").TemplateResult<1>;
29
33
  }
30
34
  declare global {
31
35
  interface HTMLElementTagNameMap {
32
- "bd-trust-panel": TrustPanel;
36
+ "bd-trust-panel": BdTrustPanel;
33
37
  }
34
38
  }
35
- export {};
@@ -1,60 +1,13 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../icons/arrow-right-icon.js";import"../link/link.js";import r from"./trust-panel.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.eyebrow=``,this.title=``,this.description=``,this.linkLabel=``,this.linkHref=`#`,this.stats=[],this.cards=[]}static{this.styles=[n,r]}_renderCard(e,t){let n=`card-${t+1}-logos`;return a`
2
- <div class="bd-trustpanel-card">
3
- ${e.eyebrow?a`<bd-p variant="eyebrow" class="bd-trustpanel-card-eyebrow">${e.eyebrow}</bd-p>`:o}
4
-
5
- <div class="bd-trustpanel-card-logos">
6
- <slot name="${n}"></slot>
7
- </div>
8
-
9
- ${e.title?a`<bd-h as="h4" class="bd-trustpanel-card-title">${e.title}</bd-h>`:o}
10
-
11
- ${e.description?a`<bd-p variant="regular" class="bd-trustpanel-card-description">${e.description}</bd-p>`:o}
12
-
13
- ${e.linkLabel?a`
14
- <a class="bd-trustpanel-card-link" href=${e.linkHref||`#`}>
15
- ${e.linkLabel} <bd-arrow-right-icon size="xs" aria-hidden="true"></bd-arrow-right-icon>
16
- </a>
17
- `:o}
18
- </div>
19
- `}render(){return a`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../fact/fact.js";import"./trust-card.js";import i from"./trust-panel.css.js";import{LitElement as a,html as o}from"lit";var s=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:[`eyebrow`,`title`,`description`,`actions`,`stats`,``]})}static{this.styles=[r,i]}render(){let e=e=>this._slots.has(e);return o`
20
2
  <div class="bd-ensemble bd-trustpanel-wrapper">
21
- ${this.eyebrow?a`<bd-p variant="eyebrow" class="bd-trustpanel-eyebrow"><slot name="eyebrow">${this.eyebrow}</slot></bd-p>`:o}
22
-
23
- ${this.title?a`<bd-h as="h2" class="bd-trustpanel-title"><slot name="title">${this.title}</slot></bd-h>`:o}
24
-
25
- ${this.description?a`
26
- <bd-p variant="regular" class="bd-trustpanel-description">
27
- <slot name="description">${this.description}</slot>
28
- ${this.linkLabel?a`
29
- <bd-link
30
- class="bd-trustpanel-inline-link"
31
- href=${this.linkHref}
32
- underline
33
- font-size="inherit"
34
- >
35
- ${this.linkLabel} <bd-arrow-right-icon size="xs" aria-hidden="true"></bd-arrow-right-icon>
36
- </bd-link>
37
- `:o}
38
- </bd-p>
39
- `:o}
40
-
41
- ${this.stats&&this.stats.length?a`
42
- <div class="bd-trustpanel-stats">
43
- ${this.stats.map(e=>a`
44
- <div class="bd-trustpanel-stat">
45
- <div class="bd-trustpanel-stat-divider"></div>
46
- <div class="bd-trustpanel-stat-value">${e.value}</div>
47
- <div class="bd-trustpanel-stat-label">${e.label}</div>
48
- </div>
49
- `)}
50
- </div>
51
- `:o}
52
-
53
- ${this.cards&&this.cards.length?a`
54
- <div class="bd-trustpanel-cards">
55
- ${this.cards.map((e,t)=>this._renderCard(e,t))}
56
- </div>
57
- `:o}
3
+ <div class="bd-trustpanel-eyebrow" ?hidden=${!e(`eyebrow`)}><slot name="eyebrow"></slot></div>
4
+ <div class="bd-trustpanel-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
5
+ <div class="bd-trustpanel-lead" ?hidden=${!e(`description`)&&!e(`actions`)}>
6
+ <slot name="description"></slot>
7
+ <div class="bd-trustpanel-actions" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
8
+ </div>
9
+ <div class="bd-trustpanel-stats" ?hidden=${!e(`stats`)}><slot name="stats"></slot></div>
10
+ <div class="bd-trustpanel-cards" ?hidden=${!e(``)}><slot></slot></div>
58
11
  </div>
59
- `}};t([s({type:String})],c.prototype,`eyebrow`,void 0),t([s({type:String})],c.prototype,`title`,void 0),t([s({type:String})],c.prototype,`description`,void 0),t([s({type:String,attribute:`link-label`})],c.prototype,`linkLabel`,void 0),t([s({type:String,attribute:`link-href`})],c.prototype,`linkHref`,void 0),t([s({type:Array})],c.prototype,`stats`,void 0),t([s({type:Array})],c.prototype,`cards`,void 0),c=t([e(`bd-trust-panel`)],c);
12
+ `}};s=t([e(`bd-trust-panel`)],s);export{s as BdTrustPanel};
60
13
  //# sourceMappingURL=trust-panel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trust-panel.js","names":["trustPanelCSS","_decorate","__decorate","trust_panel_css_default","TrustPanel","LitElement","_args","ensembleCSS","logoSlotName","index","card","nothing","stat","i","property","defineElement"],"sources":["../../../../src/components/trust-panel/trust-panel.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport trustPanelCSS from \"./trust-panel.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport \"#components/icons/arrow-right-icon.ts\";\n\ninterface TrustStat {\n value: string;\n label: string;\n}\n\ninterface TrustCard {\n eyebrow? : string;\n title? : string;\n description?: string;\n linkLabel? : string;\n linkHref? : string;\n}\n\n@defineElement(\"bd-trust-panel\")\nclass TrustPanel extends LitElement {\n static styles = [ensembleCSS, trustPanelCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String, attribute: \"link-label\" })\n linkLabel = \"\";\n @property({ type: String, attribute: \"link-href\" })\n linkHref = \"#\";\n @property({ type: Array })\n stats: TrustStat[] = []; // [{ value: String, label: String }]\n @property({ type: Array })\n cards: TrustCard[] = []; // [{ eyebrow, title, description, linkLabel, linkHref }] — logos slotted per card\n\n _renderCard(card: TrustCard, index: number) {\n const logoSlotName = `card-${index + 1}-logos`;\n return html`\n <div class=\"bd-trustpanel-card\">\n ${card.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"bd-trustpanel-card-eyebrow\">${card.eyebrow}</bd-p>`\n : nothing}\n\n <div class=\"bd-trustpanel-card-logos\">\n <slot name=\"${logoSlotName}\"></slot>\n </div>\n\n ${card.title\n ? html`<bd-h as=\"h4\" class=\"bd-trustpanel-card-title\">${card.title}</bd-h>`\n : nothing}\n\n ${card.description\n ? html`<bd-p variant=\"regular\" class=\"bd-trustpanel-card-description\">${card.description}</bd-p>`\n : nothing}\n\n ${card.linkLabel\n ? html`\n <a class=\"bd-trustpanel-card-link\" href=${card.linkHref || \"#\"}>\n ${card.linkLabel} <bd-arrow-right-icon size=\"xs\" aria-hidden=\"true\"></bd-arrow-right-icon>\n </a>\n `\n : nothing}\n </div>\n `;\n }\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-trustpanel-wrapper\">\n ${this.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"bd-trustpanel-eyebrow\"><slot name=\"eyebrow\">${this.eyebrow}</slot></bd-p>`\n : nothing}\n\n ${this.title\n ? html`<bd-h as=\"h2\" class=\"bd-trustpanel-title\"><slot name=\"title\">${this.title}</slot></bd-h>`\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"regular\" class=\"bd-trustpanel-description\">\n <slot name=\"description\">${this.description}</slot>\n ${this.linkLabel\n ? html`\n <bd-link\n class=\"bd-trustpanel-inline-link\"\n href=${this.linkHref}\n underline\n font-size=\"inherit\"\n >\n ${this.linkLabel} <bd-arrow-right-icon size=\"xs\" aria-hidden=\"true\"></bd-arrow-right-icon>\n </bd-link>\n `\n : nothing}\n </bd-p>\n `\n : nothing}\n\n ${this.stats && this.stats.length\n ? html`\n <div class=\"bd-trustpanel-stats\">\n ${this.stats.map(\n (stat) => html`\n <div class=\"bd-trustpanel-stat\">\n <div class=\"bd-trustpanel-stat-divider\"></div>\n <div class=\"bd-trustpanel-stat-value\">${stat.value}</div>\n <div class=\"bd-trustpanel-stat-label\">${stat.label}</div>\n </div>\n `\n )}\n </div>\n `\n : nothing}\n\n ${this.cards && this.cards.length\n ? html`\n <div class=\"bd-trustpanel-cards\">\n ${this.cards.map((card, i) => this._renderCard(card, i))}\n </div>\n `\n : nothing}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-trust-panel\": TrustPanel;\n }\n}"],"mappings":"A,meAyBA,IACMI,EADN,cACyBC,CAAW,C,8BAIxB,KAAA,QAAA,GAEF,KAAA,MAAA,GAEM,KAAA,YAAA,GAEF,KAAA,UAAA,GAED,KAAA,SAAA,IAEU,KAAA,MAAA,CAAC,EAED,KAAA,MAAA,CAAC,C,QAfN,KAAA,OAAA,CAACE,EAAaP,CAAa,C,CAiB3C,YAAY,EAAiB,EAAe,CAC1C,IAAMQ,EAAe,QAAQC,EAAQ,EAAE,QACvC,MAAO,EAAI;;UAELC,EAAK,QACH,CAAI,8DAA8DA,EAAK,QAAQ,SAC/EC,EAAQ;;;wBAGIH,EAAa;;;UAG3BE,EAAK,MACH,CAAI,kDAAkDA,EAAK,MAAM,SACjEC,EAAQ;;UAEVD,EAAK,YACH,CAAI,kEAAkEA,EAAK,YAAY,SACvFC,EAAQ;;UAEVD,EAAK,UACH,CAAI;wDACwCA,EAAK,UAAY,IAAI;kBAC3DA,EAAK,UAAU;;cAGrBC,EAAQ;;KAGlB,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,QACH,CAAI,8EAA8E,KAAK,QAAQ,gBAC/FA,EAAQ;;UAEV,KAAK,MACH,CAAI,gEAAgE,KAAK,MAAM,gBAC/EA,EAAQ;;UAEV,KAAK,YACH,CAAI;;2CAE2B,KAAK,YAAY;kBAC1C,KAAK,UACH,CAAI;;;+BAGO,KAAK,SAAS;;;;0BAInB,KAAK,UAAU;;sBAGrBA,EAAQ;;cAGhBA,EAAQ;;UAEV,KAAK,OAAS,KAAK,MAAM,OACvB,CAAI;;kBAEE,KAAK,MAAM,IACV,GAAS,CAAI;;;8DAG8BC,EAAK,MAAM;8DACXA,EAAK,MAAM;;mBAGzD,EAAE;;cAGND,EAAQ;;UAEV,KAAK,OAAS,KAAK,MAAM,OACvB,CAAI;;kBAEE,KAAK,MAAM,KAAK,EAAM,IAAM,KAAK,YAAYD,EAAMG,CAAC,CAAC,EAAE;;cAG7DF,EAAQ;;KAGlB,CACF,EAvGGV,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAV,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAV,EAAA,UAAA,WAAA,IAAA,EAAA,EAEjDH,EAAA,CAAAa,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAExBH,EAAA,CAAAa,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAhB1B,EAAAH,EAAA,CAAAc,EAAc,gBAAgB,CAAA,EAAAX,CAAA"}
1
+ {"version":3,"file":"trust-panel.js","names":["trustPanelCSS","_decorate","__decorate","trust_panel_css_default","BdTrustPanel","LitElement","_args","SlotController","ensembleCSS","has","name","defineElement"],"sources":["../../../../src/components/trust-panel/trust-panel.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/fact/fact.ts\";\nimport \"./trust-card.ts\";\n/* The atoms the page writes into the panel's and its cards' slots. Neither\n renders them now, but 3.x's module registered all three, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/p/p.ts\";\nimport trustPanelCSS from \"./trust-panel.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * A light-blue trust section: an eyebrow, a title, a description and a link,\n * a row of statistics, and the cards under them.\n *\n * <bd-trust-panel>\n * <span slot=\"eyebrow\">Why trust it</span>\n * <bd-h slot=\"title\" as=\"h2\">Built by Bitdefender</bd-h>\n * <bd-p slot=\"description\">AI Guardian is made by Bitdefender …</bd-p>\n * <bd-link slot=\"actions\" href=\"…\">Why millions trust Bitdefender</bd-link>\n * <bd-fact slot=\"stats\" appearance=\"stat\"><span slot=\"value\">50B+</span><span slot=\"label\">threats blocked every year</span></bd-fact>\n * <bd-trust-card>…</bd-trust-card>\n * </bd-trust-panel>\n *\n * The cards are the default slot; the statistics are a second collection,\n * so they have a slot of their own, `stats`. The link is its own slot, so it\n * shows whether or not there is a description: 3.x drew it inside the\n * description's paragraph and lost it with the paragraph. The panel sets its\n * title's size (the page-section h2) and its description's ink; the page\n * picks the title's level. Each part's box is hidden while its slot is empty.\n */\n@defineElement(\"bd-trust-panel\")\nexport class BdTrustPanel extends LitElement {\n static styles = [ensembleCSS, trustPanelCSS];\n\n _slots = new SlotController(this, { slots: [\"eyebrow\", \"title\", \"description\", \"actions\", \"stats\", \"\"] });\n\n render() {\n const has = (name: \"eyebrow\" | \"title\" | \"description\" | \"actions\" | \"stats\" | \"\") => this._slots.has(name);\n return html`\n <div class=\"bd-ensemble bd-trustpanel-wrapper\">\n <div class=\"bd-trustpanel-eyebrow\" ?hidden=${!has(\"eyebrow\")}><slot name=\"eyebrow\"></slot></div>\n <div class=\"bd-trustpanel-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-trustpanel-lead\" ?hidden=${!has(\"description\") && !has(\"actions\")}>\n <slot name=\"description\"></slot>\n <div class=\"bd-trustpanel-actions\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n <div class=\"bd-trustpanel-stats\" ?hidden=${!has(\"stats\")}><slot name=\"stats\"></slot></div>\n <div class=\"bd-trustpanel-cards\" ?hidden=${!has(\"\")}><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-trust-panel\": BdTrustPanel;\n }\n}\n"],"mappings":"A,sdAqCO,IAAMI,EAAN,cAA2BC,CAAW,C,8BAGlC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,UAAW,QAAS,cAAe,UAAW,QAAS,EAAE,CAAE,CAAC,C,QAFxF,KAAA,OAAA,CAACC,EAAaR,CAAa,C,CAI3C,QAAS,CACP,IAAMS,EAAO,GAAyE,KAAK,OAAO,IAAIC,CAAI,EAC1G,MAAO,EAAI;;qDAEsC,CAACD,EAAI,SAAS,EAAE;mDAClB,CAACA,EAAI,OAAO,EAAE;kDACf,CAACA,EAAI,aAAa,GAAK,CAACA,EAAI,SAAS,EAAE;;uDAElC,CAACA,EAAI,SAAS,EAAE;;mDAEpB,CAACA,EAAI,OAAO,EAAE;mDACd,CAACA,EAAI,EAAE,EAAE;;KAG1D,CACF,EArBC,EAAAR,EAAA,CAAAU,EAAc,gBAAgB,CAAA,EAAAP,CAAA,E"}
@@ -9,5 +9,5 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
9
9
  preload=${this.preload||a}
10
10
  playsinline
11
11
  >${this._media}</video>
12
- `}};t([o({type:String})],c.prototype,`src`,void 0),t([o({type:String})],c.prototype,`poster`,void 0),t([o({converter:{fromAttribute:e=>e!==`false`}})],c.prototype,`controls`,void 0),t([o({type:Boolean})],c.prototype,`muted`,void 0),t([o({type:Boolean})],c.prototype,`loop`,void 0),t([o({type:String})],c.prototype,`preload`,void 0),t([s()],c.prototype,`_media`,void 0),c=t([e(`bd-video`)],c);export{c as BdVideo};
12
+ `}};t([o({type:String,attribute:`src`})],c.prototype,`src`,void 0),t([o({type:String,attribute:`poster`})],c.prototype,`poster`,void 0),t([o({attribute:`controls`,converter:{fromAttribute:e=>e!==`false`}})],c.prototype,`controls`,void 0),t([o({type:Boolean,attribute:`muted`})],c.prototype,`muted`,void 0),t([o({type:Boolean,attribute:`loop`})],c.prototype,`loop`,void 0),t([o({type:String,attribute:`preload`})],c.prototype,`preload`,void 0),t([s()],c.prototype,`_media`,void 0),c=t([e(`bd-video`)],c);export{c as BdVideo};
13
13
  //# sourceMappingURL=video.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"video.js","names":["_decorate","__decorate","videoCSS","BdVideo","LitElement","_args","el","nothing","property","value","state","defineElement"],"sources":["../../../../src/components/video/video.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { videoCSS } from './video.css.ts';\n\ntype Preload = 'none' | 'metadata' | 'auto';\n\n@defineElement('bd-video')\nexport class BdVideo extends LitElement {\n static styles = [videoCSS];\n\n @property({ type: String })\n src = '';\n @property({ type: String })\n poster = '';\n /* On unless told otherwise -- see the story's Notes. A default-on boolean\n cannot be turned off by leaving the attribute out, so the attribute\n reads controls=\"false\" as off; the property takes false as it is. */\n @property({ converter: { fromAttribute: value => value !== 'false' } })\n controls = true;\n @property({ type: Boolean })\n muted = false;\n @property({ type: Boolean })\n loop = false;\n /* What to fetch before playback: metadata by default, so the frame and the\n duration are there without the file; none for a video far down a page. */\n @property({ type: String })\n preload: Preload = 'metadata';\n @state()\n _media: Node[] = [];\n\n _observer?: MutationObserver;\n\n /* WHY THE TRACKS ARE COPIED IN.\n This rendered <video><slot></slot></video>, and a media element builds\n its text tracks and sources only from real <track> and <source> children\n -- a slot is neither, so the captions the story told readers to slot in\n never reached the player. The <track> and <source> children are now\n copied into the <video> itself, and copied again whenever they change. */\n connectedCallback() {\n super.connectedCallback();\n this._collect();\n this._observer = new MutationObserver(() => this._collect());\n this._observer.observe(this, { childList: true, subtree: true, attributes: true });\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n super.disconnectedCallback();\n }\n\n _collect() {\n this._media = [...this.children]\n .filter(el => el.localName === 'track' || el.localName === 'source')\n .map(el => el.cloneNode(true));\n }\n\n /* muted is a property, not only an attribute. The attribute is read once,\n when the media loads -- it is what lets a muted video autoplay -- and\n changing it afterwards mutes nothing, so muted = true on a playing video\n left the sound on. Both are set: the attribute for the load, the\n property for every change after it. */\n render() {\n return html`\n <video\n src=${this.src || nothing}\n poster=${this.poster || nothing}\n ?controls=${this.controls}\n ?muted=${this.muted}\n .muted=${this.muted}\n ?loop=${this.loop}\n preload=${this.preload || nothing}\n playsinline\n >${this._media}</video>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-video': BdVideo;\n }\n}\n"],"mappings":"A,mTAUO,IAAMG,EAAN,cAAsBC,CAAW,C,8BAIhC,KAAA,IAAA,GAEG,KAAA,OAAA,GAKE,KAAA,SAAA,GAEH,KAAA,MAAA,GAED,KAAA,KAAA,GAIY,KAAA,QAAA,WAEF,KAAA,OAAA,CAAC,C,QApBF,KAAA,OAAA,CAACF,CAAQ,C,CA8BzB,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,SAAS,EACd,KAAK,UAAY,IAAI,qBAAuB,KAAK,SAAS,CAAC,EAC3D,KAAK,UAAU,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,EAAK,CAAC,CACnF,CAEA,sBAAuB,CACrB,KAAK,WAAW,WAAW,EAC3B,MAAM,qBAAqB,CAC7B,CAEA,UAAW,CACT,KAAK,OAAS,CAAC,GAAG,KAAK,QAAQ,CAAC,CAC7B,OAAO,GAAMI,EAAG,YAAc,SAAWA,EAAG,YAAc,QAAQ,CAAC,CACnE,IAAI,GAAMA,EAAG,UAAU,EAAI,CAAC,CACjC,CAOA,QAAS,CACP,MAAO,EAAI;;cAED,KAAK,KAAOC,EAAQ;iBACjB,KAAK,QAAUA,EAAQ;oBACpB,KAAK,SAAS;iBACjB,KAAK,MAAM;iBACX,KAAK,MAAM;gBACZ,KAAK,KAAK;kBACR,KAAK,SAAWA,EAAQ;;SAEjC,KAAK,OAAO;KAEnB,CACF,EAjEGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,SAAA,IAAA,EAAA,EAKzBH,EAAA,CAAAQ,EAAS,CAAE,UAAW,CAAE,cAAe,GAASC,IAAU,OAAQ,CAAE,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAErEH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAE1BH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAI1BH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAM,CAAA,EAAAP,EAAA,UAAA,SAAA,IAAA,EAAA,EArBR,EAAAH,EAAA,CAAAW,EAAc,UAAU,CAAA,EAAAR,CAAA,E"}
1
+ {"version":3,"file":"video.js","names":["_decorate","__decorate","videoCSS","BdVideo","LitElement","_args","el","nothing","property","value","state","defineElement"],"sources":["../../../../src/components/video/video.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { videoCSS } from './video.css.ts';\n\ntype Preload = 'none' | 'metadata' | 'auto';\n\n@defineElement('bd-video')\nexport class BdVideo extends LitElement {\n static styles = [videoCSS];\n\n @property({ type: String, attribute: 'src' })\n src = '';\n @property({ type: String, attribute: 'poster' })\n poster = '';\n /* On unless told otherwise -- see the story's Notes. A default-on boolean\n cannot be turned off by leaving the attribute out, so the attribute\n reads controls=\"false\" as off; the property takes false as it is. */\n @property({ attribute: 'controls', converter: { fromAttribute: value => value !== 'false' } })\n controls = true;\n @property({ type: Boolean, attribute: 'muted' })\n muted = false;\n @property({ type: Boolean, attribute: 'loop' })\n loop = false;\n /* What to fetch before playback: metadata by default, so the frame and the\n duration are there without the file; none for a video far down a page. */\n @property({ type: String, attribute: 'preload' })\n preload: Preload = 'metadata';\n @state()\n _media: Node[] = [];\n\n _observer?: MutationObserver;\n\n /* WHY THE TRACKS ARE COPIED IN.\n This rendered <video><slot></slot></video>, and a media element builds\n its text tracks and sources only from real <track> and <source> children\n -- a slot is neither, so the captions the story told readers to slot in\n never reached the player. The <track> and <source> children are now\n copied into the <video> itself, and copied again whenever they change. */\n connectedCallback() {\n super.connectedCallback();\n this._collect();\n this._observer = new MutationObserver(() => this._collect());\n this._observer.observe(this, { childList: true, subtree: true, attributes: true });\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n super.disconnectedCallback();\n }\n\n _collect() {\n this._media = [...this.children]\n .filter(el => el.localName === 'track' || el.localName === 'source')\n .map(el => el.cloneNode(true));\n }\n\n /* muted is a property, not only an attribute. The attribute is read once,\n when the media loads -- it is what lets a muted video autoplay -- and\n changing it afterwards mutes nothing, so muted = true on a playing video\n left the sound on. Both are set: the attribute for the load, the\n property for every change after it. */\n render() {\n return html`\n <video\n src=${this.src || nothing}\n poster=${this.poster || nothing}\n ?controls=${this.controls}\n ?muted=${this.muted}\n .muted=${this.muted}\n ?loop=${this.loop}\n preload=${this.preload || nothing}\n playsinline\n >${this._media}</video>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-video': BdVideo;\n }\n}\n"],"mappings":"A,mTAUO,IAAMG,EAAN,cAAsBC,CAAW,C,8BAIhC,KAAA,IAAA,GAEG,KAAA,OAAA,GAKE,KAAA,SAAA,GAEH,KAAA,MAAA,GAED,KAAA,KAAA,GAIY,KAAA,QAAA,WAEF,KAAA,OAAA,CAAC,C,QApBF,KAAA,OAAA,CAACF,CAAQ,C,CA8BzB,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,SAAS,EACd,KAAK,UAAY,IAAI,qBAAuB,KAAK,SAAS,CAAC,EAC3D,KAAK,UAAU,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,EAAK,CAAC,CACnF,CAEA,sBAAuB,CACrB,KAAK,WAAW,WAAW,EAC3B,MAAM,qBAAqB,CAC7B,CAEA,UAAW,CACT,KAAK,OAAS,CAAC,GAAG,KAAK,QAAQ,CAAC,CAC7B,OAAO,GAAMI,EAAG,YAAc,SAAWA,EAAG,YAAc,QAAQ,CAAC,CACnE,IAAI,GAAMA,EAAG,UAAU,EAAI,CAAC,CACjC,CAOA,QAAS,CACP,MAAO,EAAI;;cAED,KAAK,KAAOC,EAAQ;iBACjB,KAAK,QAAUA,EAAQ;oBACpB,KAAK,SAAS;iBACjB,KAAK,MAAM;iBACX,KAAK,MAAM;gBACZ,KAAK,KAAK;kBACR,KAAK,SAAWA,EAAQ;;SAEjC,KAAK,OAAO;KAEnB,CACF,EAjEGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,UAAW,KAAM,CAAC,CAAA,EAAAL,EAAA,UAAA,MAAA,IAAA,EAAA,EAE3CH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,UAAW,QAAS,CAAC,CAAA,EAAAL,EAAA,UAAA,SAAA,IAAA,EAAA,EAK9CH,EAAA,CAAAQ,EAAS,CAAE,UAAW,WAAY,UAAW,CAAE,cAAe,GAASC,IAAU,OAAQ,CAAE,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAE5FH,EAAA,CAAAQ,EAAS,CAAE,KAAM,QAAS,UAAW,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAE9CH,EAAA,CAAAQ,EAAS,CAAE,KAAM,QAAS,UAAW,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAI7CH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,UAAW,SAAU,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAE/CH,EAAA,CAAAU,EAAM,CAAA,EAAAP,EAAA,UAAA,SAAA,IAAA,EAAA,EArBR,EAAAH,EAAA,CAAAW,EAAc,UAAU,CAAA,EAAAR,CAAA,E"}
@@ -1,12 +1,35 @@
1
1
  import { LitElement } from "lit";
2
2
  import "../../tokens/tokens.js";
3
- import "../icons/close-icon.js";
4
- declare class BdVideoPlayer extends LitElement {
3
+ import "../icons/close.js";
4
+ /**
5
+ * A video behind a thumbnail: the thumbnail is a play button, and pressing it
6
+ * swaps in the player with a close button that brings the thumbnail back. A
7
+ * YouTube URL is an embed; anything else a <video>. Without a thumbnail the
8
+ * player is there from the start.
9
+ *
10
+ * <bd-video-player src="https://www.youtube.com/embed/…" thumb="/poster.jpg"
11
+ * thumb-alt="Bitdefender Total Security in two minutes"
12
+ * video-title="Bitdefender Total Security overview"
13
+ * play-label="Play the overview video" close-label="Close the video">
14
+ * </bd-video-player>
15
+ *
16
+ * Every name is the page's (ADR 0003), and none has a default: `play-label`
17
+ * names the thumbnail's button, `close-label` the close button, `thumb-alt`
18
+ * the thumbnail picture and `video-title` the embedded player. 3.x wrote
19
+ * "Play video", "Close video", "Video preview" and "Video player" where the
20
+ * page set none.
21
+ */
22
+ export declare class BdVideoPlayer extends LitElement {
5
23
  static styles: import("lit").CSSResult[];
6
24
  src: string;
7
25
  thumb: string;
26
+ /** The thumbnail picture's text alternative. No default. */
8
27
  thumbAlt: string;
9
28
  videoTitle: string;
29
+ /** The thumbnail button's accessible name: what pressing it does. No default. */
30
+ playLabel: string;
31
+ /** The close button's accessible name, once the player is open. No default. */
32
+ closeLabel: string;
10
33
  _open: boolean;
11
34
  _isYoutube(): boolean;
12
35
  get _embedSrc(): string;
@@ -41,4 +64,3 @@ declare global {
41
64
  "bd-video-player": BdVideoPlayer;
42
65
  }
43
66
  }
44
- export {};
@@ -1,4 +1,4 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../icons/close-icon.js";import n from"./video-player.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o,state as s}from"lit/decorators.js";var c=class extends r{constructor(...e){super(...e),this.src=``,this.thumb=``,this.thumbAlt=``,this.videoTitle=``,this._open=!1}static{this.styles=[n]}_isYoutube(){return this.src.includes(`youtube.com`)||this.src.includes(`youtu.be`)}get _embedSrc(){if(!this.thumb)return this.src;try{let e=new URL(this.src,document.baseURI);return e.searchParams.set(`autoplay`,`1`),e.href}catch{return this.src}}_openVideo(){this._open=!0,this.thumb&&this.updateComplete.then(()=>{this.renderRoot?.querySelector(`.bd-video-close`)?.focus(),this._playOnOpen()})}_playOnOpen(){(this.renderRoot?.querySelector(`video`))?.play().catch(()=>{})}_closeVideo(){this._open=!1,this.updateComplete.then(()=>{this.renderRoot?.querySelector(`.bd-video-thumb`)?.focus()})}_renderVideo(){let e=!this.thumb&&!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;return i`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../icons/close.js";import n from"./video-player.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o,state as s}from"lit/decorators.js";var c=class extends r{constructor(...e){super(...e),this.src=``,this.thumb=``,this.thumbAlt=``,this.videoTitle=``,this.playLabel=``,this.closeLabel=``,this._open=!1}static{this.styles=[n]}_isYoutube(){return this.src.includes(`youtube.com`)||this.src.includes(`youtu.be`)}get _embedSrc(){if(!this.thumb)return this.src;try{let e=new URL(this.src,document.baseURI);return e.searchParams.set(`autoplay`,`1`),e.href}catch{return this.src}}_openVideo(){this._open=!0,this.thumb&&this.updateComplete.then(()=>{this.renderRoot?.querySelector(`.bd-video-close`)?.focus(),this._playOnOpen()})}_playOnOpen(){(this.renderRoot?.querySelector(`video`))?.play().catch(()=>{})}_closeVideo(){this._open=!1,this.updateComplete.then(()=>{this.renderRoot?.querySelector(`.bd-video-thumb`)?.focus()})}_renderVideo(){let e=!this.thumb&&!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;return i`
2
2
  <video
3
3
  src="${this.src}"
4
4
  poster="${this.thumb||a}"
@@ -14,7 +14,7 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
14
14
  ${this._isYoutube()?i`
15
15
  <iframe
16
16
  src="${this._embedSrc}"
17
- title="${this.videoTitle||`Video player`}"
17
+ title=${this.videoTitle||a}
18
18
  loading="lazy"
19
19
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
20
20
  referrerpolicy="strict-origin-when-cross-origin"
@@ -25,9 +25,9 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
25
25
  <button
26
26
  class="bd-video-close"
27
27
  @click=${this._closeVideo}
28
- aria-label="Close video"
28
+ aria-label=${this.closeLabel||a}
29
29
  >
30
- <bd-close-icon size="xs" aria-hidden="true"></bd-close-icon>
30
+ <bd-icon name="close" size="xs" aria-hidden="true"></bd-icon>
31
31
  </button>
32
32
  `:``}
33
33
  </div>
@@ -35,11 +35,11 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
35
35
  <button
36
36
  class="bd-video-thumb"
37
37
  @click=${this._openVideo}
38
- aria-label="Play video"
38
+ aria-label=${this.playLabel||a}
39
39
  >
40
40
  <img
41
41
  src="${this.thumb}"
42
- alt="${this.thumbAlt||`Video preview`}"
42
+ alt="${this.thumbAlt}"
43
43
  loading="lazy"
44
44
  />
45
45
  <span class="bd-video-play-btn" aria-hidden="true">
@@ -49,5 +49,5 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
49
49
  </svg>
50
50
  </span>
51
51
  </button>
52
- `}};t([o({type:String})],c.prototype,`src`,void 0),t([o({type:String})],c.prototype,`thumb`,void 0),t([o({type:String,attribute:`thumb-alt`})],c.prototype,`thumbAlt`,void 0),t([o({type:String,attribute:`video-title`})],c.prototype,`videoTitle`,void 0),t([s()],c.prototype,`_open`,void 0),c=t([e(`bd-video-player`)],c);
52
+ `}};t([o({type:String})],c.prototype,`src`,void 0),t([o({type:String})],c.prototype,`thumb`,void 0),t([o({type:String,attribute:`thumb-alt`})],c.prototype,`thumbAlt`,void 0),t([o({type:String,attribute:`video-title`})],c.prototype,`videoTitle`,void 0),t([o({type:String,attribute:`play-label`})],c.prototype,`playLabel`,void 0),t([o({type:String,attribute:`close-label`})],c.prototype,`closeLabel`,void 0),t([s()],c.prototype,`_open`,void 0),c=t([e(`bd-video-player`)],c);export{c as BdVideoPlayer};
53
53
  //# sourceMappingURL=video-player.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"video-player.js","names":["videoPlayerCSS","_decorate","__decorate","video_player_css_default","BdVideoPlayer","LitElement","_args","url","autoplay","nothing","property","state","defineElement"],"sources":["../../../../src/components/video-player/video-player.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/close-icon.ts\";\nimport videoPlayerCSS from \"./video-player.css.ts\";\n\n@defineElement(\"bd-video-player\")\nclass BdVideoPlayer extends LitElement {\n static styles = [videoPlayerCSS];\n\n @property({ type: String })\n src = \"\";\n @property({ type: String })\n thumb = \"\";\n @property({ type: String, attribute: \"thumb-alt\" })\n thumbAlt = \"\";\n /* The embedded player's name, as a screen reader announces the iframe.\n Every instance used to be titled \"Video player\", which says what the\n frame is and nothing about which video it holds. */\n @property({ type: String, attribute: \"video-title\" })\n videoTitle = \"\";\n @state()\n _open = false;\n\n _isYoutube() {\n return this.src.includes(\"youtube.com\") || this.src.includes(\"youtu.be\");\n }\n\n /* autoplay=1 is set on the URL's own query rather than appended to the\n string. Appended, an embed URL that already had a query -- ?start=, ?list=,\n or the ?autoplay=1 of the YouTube with Autoplay story -- came out as\n ...?autoplay=1?autoplay=1, its second \"?\" read as part of the first\n value. Only behind a thumbnail: the click on it is the request to play. */\n get _embedSrc() {\n if (!this.thumb) return this.src;\n try {\n const url = new URL(this.src, document.baseURI);\n url.searchParams.set(\"autoplay\", \"1\");\n return url.href;\n } catch {\n return this.src;\n }\n }\n\n /**\n * Opening replaces the thumbnail button with the player, which destroys the\n * element that had focus. Measured with a real keyboard: Tab to the\n * thumbnail, Enter, and document.activeElement was body -- the keyboard user\n * was dropped to the top of the document by the act of pressing Play.\n *\n * Focus goes to the close button, which is the one control this component\n * owns once the player is up. That also answers a reachability problem it\n * would otherwise have: the close button follows the iframe in DOM order, so\n * reaching it by Tab means traversing the embedded player's own tab stops\n * first -- measured, six Tabs after opening never left the iframe. Landing on\n * it directly means the way out is the first thing the keyboard has.\n *\n * Only when there is a thumbnail: without one the component renders the\n * player immediately, owns no close button, and nothing has been displaced.\n */\n _openVideo() {\n this._open = true;\n if (!this.thumb) return;\n this.updateComplete.then(() => {\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-video-close\")?.focus();\n this._playOnOpen();\n });\n }\n\n /* A direct video starts from the click on its thumbnail, with its sound.\n It used to be <video autoplay> without muted, which a browser is free to\n refuse -- most do for a video with sound -- and iOS played it full screen\n besides. play() is called from the click's own task, which is the user\n activation that lets unmuted playback start everywhere; if it is refused\n anyway, the poster and the controls are still there. */\n _playOnOpen() {\n const video = this.renderRoot?.querySelector(\"video\");\n video?.play().catch(() => {});\n }\n\n /**\n * Closing destroys the close button the same way, so focus returns to the\n * thumbnail it came from.\n */\n _closeVideo() {\n this._open = false;\n this.updateComplete.then(() => {\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-video-thumb\")?.focus();\n });\n }\n\n /* Behind a thumbnail the video is the thumbnail's click (see\n _playOnOpen), so it never autoplays and keeps the thumbnail as its\n poster. Without one it starts on its own, which a browser allows only\n muted and inline -- and not at all under prefers-reduced-motion, where it\n waits for its play button. Behind a thumbnail preload is \"none\": the\n poster is the picture, and nothing is fetched before playback is asked\n for. Without one it is \"metadata\", or a video held still under reduced\n motion would be an empty box with controls -- no first frame, no\n duration -- until it was played. muted is the property as well as the\n attribute, because the attribute is only read when the element is\n parsed, never when a template sets it. */\n _renderVideo() {\n const autoplay = !this.thumb &&\n !window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n return html`\n <video\n src=\"${this.src}\"\n poster=\"${this.thumb || nothing}\"\n controls\n playsinline\n preload=\"${this.thumb ? \"none\" : \"metadata\"}\"\n ?autoplay=${autoplay}\n ?muted=${autoplay}\n .muted=${autoplay}\n ></video>\n `;\n }\n\n render() {\n if (!this.thumb || this._open) {\n return html`\n <div class=\"bd-video-player\">\n ${this._isYoutube()\n ? html`\n <iframe\n src=\"${this._embedSrc}\"\n title=\"${this.videoTitle || \"Video player\"}\"\n loading=\"lazy\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n referrerpolicy=\"strict-origin-when-cross-origin\"\n allowfullscreen\n ></iframe>\n `\n : this._renderVideo()}\n ${this.thumb\n ? html`\n <button\n class=\"bd-video-close\"\n @click=${this._closeVideo}\n aria-label=\"Close video\"\n >\n <bd-close-icon size=\"xs\" aria-hidden=\"true\"></bd-close-icon>\n </button>\n `\n : \"\"}\n </div>\n `;\n }\n\n return html`\n <button\n class=\"bd-video-thumb\"\n @click=${this._openVideo}\n aria-label=\"Play video\"\n >\n <img\n src=\"${this.thumb}\"\n alt=\"${this.thumbAlt || 'Video preview'}\"\n loading=\"lazy\"\n />\n <span class=\"bd-video-play-btn\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"32\" cy=\"32\" r=\"32\" fill=\"white\" fill-opacity=\"0.9\"/>\n <path d=\"M26 20L46 32L26 44V20Z\" fill=\"var(--color-brand-500)\"/>\n </svg>\n </span>\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-video-player\": BdVideoPlayer;\n }\n}\n"],"mappings":"A,yVAQA,IACMI,EADN,cAC4BC,CAAW,C,8BAI/B,KAAA,IAAA,GAEE,KAAA,MAAA,GAEG,KAAA,SAAA,GAKE,KAAA,WAAA,GAEL,KAAA,MAAA,E,QAdQ,KAAA,OAAA,CAACL,CAAc,C,CAgB/B,YAAa,CACX,OAAO,KAAK,IAAI,SAAS,aAAa,GAAK,KAAK,IAAI,SAAS,UAAU,CACzE,CAOA,IAAI,WAAY,CACd,GAAI,CAAC,KAAK,MAAO,OAAO,KAAK,IAC7B,GAAI,CACF,IAAMO,EAAM,IAAI,IAAI,KAAK,IAAK,SAAS,OAAO,EAE9C,OADAA,EAAI,aAAa,IAAI,WAAY,GAAG,EAC7BA,EAAI,IACb,MAAQ,CACN,OAAO,KAAK,GACd,CACF,CAkBA,YAAa,CACX,KAAK,MAAQ,GACR,KAAK,OACV,KAAK,eAAe,SAAW,CAC7B,KAAK,YAAY,cAAiC,iBAAiB,CAAC,EAAE,MAAM,EAC5E,KAAK,YAAY,CACnB,CAAC,CACH,CAQA,aAAc,EACE,KAAK,YAAY,cAAc,OAAO,EAAA,EAC7C,KAAK,CAAC,CAAC,UAAY,CAAC,CAAC,CAC9B,CAMA,aAAc,CACZ,KAAK,MAAQ,GACb,KAAK,eAAe,SAAW,CAC7B,KAAK,YAAY,cAAiC,iBAAiB,CAAC,EAAE,MAAM,CAC9E,CAAC,CACH,CAaA,cAAe,CACb,IAAMC,EAAW,CAAC,KAAK,OACrB,CAAC,OAAO,aAAa,kCAAkC,CAAC,CAAC,QAC3D,MAAO,EAAI;;eAEA,KAAK,IAAI;kBACN,KAAK,OAASC,EAAQ;;;mBAGrB,KAAK,MAAQ,OAAS,WAAW;oBAChCD,EAAS;iBACZA,EAAS;iBACTA,EAAS;;KAGxB,CAEA,QAAS,CA+BP,MA9BI,CAAC,KAAK,OAAS,KAAK,MACf,CAAI;;YAEL,KAAK,WAAW,EACd,CAAI;;yBAEO,KAAK,UAAU;2BACb,KAAK,YAAc,eAAe;;;;;;gBAO/C,KAAK,aAAa,EAAE;YACtB,KAAK,MACH,CAAI;;;2BAGS,KAAK,YAAY;;;;;gBAM9B,GAAG;;QAKN,CAAI;;;iBAGE,KAAK,WAAW;;;;iBAIhB,KAAK,MAAM;iBACX,KAAK,UAAY,gBAAgB;;;;;;;;;;KAWhD,CACF,EAhKGP,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAKjDH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAN,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDH,EAAA,CAAAU,EAAM,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAfR,EAAAH,EAAA,CAAAW,EAAc,iBAAiB,CAAA,EAAAR,CAAA"}
1
+ {"version":3,"file":"video-player.js","names":["videoPlayerCSS","_decorate","__decorate","video_player_css_default","BdVideoPlayer","LitElement","_args","url","autoplay","nothing","property","state","defineElement"],"sources":["../../../../src/components/video-player/video-player.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/close.ts\";\nimport videoPlayerCSS from \"./video-player.css.ts\";\n\n/**\n * A video behind a thumbnail: the thumbnail is a play button, and pressing it\n * swaps in the player with a close button that brings the thumbnail back. A\n * YouTube URL is an embed; anything else a <video>. Without a thumbnail the\n * player is there from the start.\n *\n * <bd-video-player src=\"https://www.youtube.com/embed/…\" thumb=\"/poster.jpg\"\n * thumb-alt=\"Bitdefender Total Security in two minutes\"\n * video-title=\"Bitdefender Total Security overview\"\n * play-label=\"Play the overview video\" close-label=\"Close the video\">\n * </bd-video-player>\n *\n * Every name is the page's (ADR 0003), and none has a default: `play-label`\n * names the thumbnail's button, `close-label` the close button, `thumb-alt`\n * the thumbnail picture and `video-title` the embedded player. 3.x wrote\n * \"Play video\", \"Close video\", \"Video preview\" and \"Video player\" where the\n * page set none.\n */\n@defineElement(\"bd-video-player\")\nexport class BdVideoPlayer extends LitElement {\n static styles = [videoPlayerCSS];\n\n @property({ type: String })\n src = \"\";\n @property({ type: String })\n thumb = \"\";\n /** The thumbnail picture's text alternative. No default. */\n @property({ type: String, attribute: \"thumb-alt\" })\n thumbAlt = \"\";\n /* The embedded player's name, as a screen reader announces the iframe.\n Every instance used to be titled \"Video player\", which says what the\n frame is and nothing about which video it holds. No default. */\n @property({ type: String, attribute: \"video-title\" })\n videoTitle = \"\";\n /** The thumbnail button's accessible name: what pressing it does. No default. */\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"\";\n /** The close button's accessible name, once the player is open. No default. */\n @property({ type: String, attribute: \"close-label\" })\n closeLabel = \"\";\n @state()\n _open = false;\n\n _isYoutube() {\n return this.src.includes(\"youtube.com\") || this.src.includes(\"youtu.be\");\n }\n\n /* autoplay=1 is set on the URL's own query rather than appended to the\n string. Appended, an embed URL that already had a query -- ?start=, ?list=,\n or the ?autoplay=1 of the YouTube with Autoplay story -- came out as\n ...?autoplay=1?autoplay=1, its second \"?\" read as part of the first\n value. Only behind a thumbnail: the click on it is the request to play. */\n get _embedSrc() {\n if (!this.thumb) return this.src;\n try {\n const url = new URL(this.src, document.baseURI);\n url.searchParams.set(\"autoplay\", \"1\");\n return url.href;\n } catch {\n return this.src;\n }\n }\n\n /**\n * Opening replaces the thumbnail button with the player, which destroys the\n * element that had focus. Measured with a real keyboard: Tab to the\n * thumbnail, Enter, and document.activeElement was body -- the keyboard user\n * was dropped to the top of the document by the act of pressing Play.\n *\n * Focus goes to the close button, which is the one control this component\n * owns once the player is up. That also answers a reachability problem it\n * would otherwise have: the close button follows the iframe in DOM order, so\n * reaching it by Tab means traversing the embedded player's own tab stops\n * first -- measured, six Tabs after opening never left the iframe. Landing on\n * it directly means the way out is the first thing the keyboard has.\n *\n * Only when there is a thumbnail: without one the component renders the\n * player immediately, owns no close button, and nothing has been displaced.\n */\n _openVideo() {\n this._open = true;\n if (!this.thumb) return;\n this.updateComplete.then(() => {\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-video-close\")?.focus();\n this._playOnOpen();\n });\n }\n\n /* A direct video starts from the click on its thumbnail, with its sound.\n It used to be <video autoplay> without muted, which a browser is free to\n refuse -- most do for a video with sound -- and iOS played it full screen\n besides. play() is called from the click's own task, which is the user\n activation that lets unmuted playback start everywhere; if it is refused\n anyway, the poster and the controls are still there. */\n _playOnOpen() {\n const video = this.renderRoot?.querySelector(\"video\");\n video?.play().catch(() => {});\n }\n\n /**\n * Closing destroys the close button the same way, so focus returns to the\n * thumbnail it came from.\n */\n _closeVideo() {\n this._open = false;\n this.updateComplete.then(() => {\n this.renderRoot?.querySelector<HTMLButtonElement>(\".bd-video-thumb\")?.focus();\n });\n }\n\n /* Behind a thumbnail the video is the thumbnail's click (see\n _playOnOpen), so it never autoplays and keeps the thumbnail as its\n poster. Without one it starts on its own, which a browser allows only\n muted and inline -- and not at all under prefers-reduced-motion, where it\n waits for its play button. Behind a thumbnail preload is \"none\": the\n poster is the picture, and nothing is fetched before playback is asked\n for. Without one it is \"metadata\", or a video held still under reduced\n motion would be an empty box with controls -- no first frame, no\n duration -- until it was played. muted is the property as well as the\n attribute, because the attribute is only read when the element is\n parsed, never when a template sets it. */\n _renderVideo() {\n const autoplay = !this.thumb &&\n !window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n return html`\n <video\n src=\"${this.src}\"\n poster=\"${this.thumb || nothing}\"\n controls\n playsinline\n preload=\"${this.thumb ? \"none\" : \"metadata\"}\"\n ?autoplay=${autoplay}\n ?muted=${autoplay}\n .muted=${autoplay}\n ></video>\n `;\n }\n\n render() {\n if (!this.thumb || this._open) {\n return html`\n <div class=\"bd-video-player\">\n ${this._isYoutube()\n ? html`\n <iframe\n src=\"${this._embedSrc}\"\n title=${this.videoTitle || nothing}\n loading=\"lazy\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\n referrerpolicy=\"strict-origin-when-cross-origin\"\n allowfullscreen\n ></iframe>\n `\n : this._renderVideo()}\n ${this.thumb\n ? html`\n <button\n class=\"bd-video-close\"\n @click=${this._closeVideo}\n aria-label=${this.closeLabel || nothing}\n >\n <bd-icon name=\"close\" size=\"xs\" aria-hidden=\"true\"></bd-icon>\n </button>\n `\n : \"\"}\n </div>\n `;\n }\n\n return html`\n <button\n class=\"bd-video-thumb\"\n @click=${this._openVideo}\n aria-label=${this.playLabel || nothing}\n >\n <img\n src=\"${this.thumb}\"\n alt=\"${this.thumbAlt}\"\n loading=\"lazy\"\n />\n <span class=\"bd-video-play-btn\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"32\" cy=\"32\" r=\"32\" fill=\"white\" fill-opacity=\"0.9\"/>\n <path d=\"M26 20L46 32L26 44V20Z\" fill=\"var(--color-brand-500)\"/>\n </svg>\n </span>\n </button>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-video-player\": BdVideoPlayer;\n }\n}\n"],"mappings":"A,oVA2BO,IAAMI,EAAN,cAA4BC,CAAW,C,8BAItC,KAAA,IAAA,GAEE,KAAA,MAAA,GAGG,KAAA,SAAA,GAKE,KAAA,WAAA,GAGD,KAAA,UAAA,GAGC,KAAA,WAAA,GAEL,KAAA,MAAA,E,QArBQ,KAAA,OAAA,CAACL,CAAc,C,CAuB/B,YAAa,CACX,OAAO,KAAK,IAAI,SAAS,aAAa,GAAK,KAAK,IAAI,SAAS,UAAU,CACzE,CAOA,IAAI,WAAY,CACd,GAAI,CAAC,KAAK,MAAO,OAAO,KAAK,IAC7B,GAAI,CACF,IAAMO,EAAM,IAAI,IAAI,KAAK,IAAK,SAAS,OAAO,EAE9C,OADAA,EAAI,aAAa,IAAI,WAAY,GAAG,EAC7BA,EAAI,IACb,MAAQ,CACN,OAAO,KAAK,GACd,CACF,CAkBA,YAAa,CACX,KAAK,MAAQ,GACR,KAAK,OACV,KAAK,eAAe,SAAW,CAC7B,KAAK,YAAY,cAAiC,iBAAiB,CAAC,EAAE,MAAM,EAC5E,KAAK,YAAY,CACnB,CAAC,CACH,CAQA,aAAc,EACE,KAAK,YAAY,cAAc,OAAO,EAAA,EAC7C,KAAK,CAAC,CAAC,UAAY,CAAC,CAAC,CAC9B,CAMA,aAAc,CACZ,KAAK,MAAQ,GACb,KAAK,eAAe,SAAW,CAC7B,KAAK,YAAY,cAAiC,iBAAiB,CAAC,EAAE,MAAM,CAC9E,CAAC,CACH,CAaA,cAAe,CACb,IAAMC,EAAW,CAAC,KAAK,OACrB,CAAC,OAAO,aAAa,kCAAkC,CAAC,CAAC,QAC3D,MAAO,EAAI;;eAEA,KAAK,IAAI;kBACN,KAAK,OAASC,EAAQ;;;mBAGrB,KAAK,MAAQ,OAAS,WAAW;oBAChCD,EAAS;iBACZA,EAAS;iBACTA,EAAS;;KAGxB,CAEA,QAAS,CA+BP,MA9BI,CAAC,KAAK,OAAS,KAAK,MACf,CAAI;;YAEL,KAAK,WAAW,EACd,CAAI;;yBAEO,KAAK,UAAU;0BACd,KAAK,YAAcC,EAAQ;;;;;;gBAOvC,KAAK,aAAa,EAAE;YACtB,KAAK,MACH,CAAI;;;2BAGS,KAAK,YAAY;+BACb,KAAK,YAAcA,EAAQ;;;;gBAK5C,GAAG;;QAKN,CAAI;;;iBAGE,KAAK,WAAW;qBACZ,KAAK,WAAaA,EAAQ;;;iBAG9B,KAAK,MAAM;iBACX,KAAK,SAAS;;;;;;;;;;KAW7B,CACF,EAvKGR,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAGzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAKjDH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAN,EAAA,UAAA,aAAA,IAAA,EAAA,EAGnDH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAN,EAAA,UAAA,YAAA,IAAA,EAAA,EAGlDH,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAN,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDH,EAAA,CAAAU,EAAM,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAtBR,EAAAH,EAAA,CAAAW,EAAc,iBAAiB,CAAA,EAAAR,CAAA,E"}
@@ -1,5 +1,16 @@
1
- /** One row of the registry: the tags a module registers, space-separated, and how to import it. */
2
- export type RegistryRow = readonly [tags: string, load: () => Promise<unknown>];
1
+ /**
2
+ * One row of the registry: the tags a module registers, space-separated, how
3
+ * to import it, and whether it is imported wherever the tags appear, defined
4
+ * or not.
5
+ *
6
+ * `always` is for a tag whose definition is not the whole of what the page
7
+ * needs. bd-icon is defined by any module that imports one drawing -- bd-button
8
+ * imports its arrow -- and draws only the names registered on the page, so a
9
+ * defined bd-icon can still name a drawing nobody imported. Its row imports the
10
+ * barrel of every drawing the first time the page writes one, once, as any
11
+ * other row is imported once.
12
+ */
13
+ export type RegistryRow = readonly [tags: string, load: () => Promise<unknown>, always?: true];
3
14
  export interface Loader {
4
15
  /** Imports the module of every component in `target`; see loader.ts. */
5
16
  load(target: ParentNode | Iterable<string>): Promise<void>;
@@ -1,2 +1,2 @@
1
- function e(e){let t=/* @__PURE__ */ new Map;for(let[n,r]of e)for(let e of n.split(` `))t.set(e,r);let n=/* @__PURE__ */ new Map,r=e=>{let t=n.get(e);return t||(t=e(),n.set(e,t),t.catch(()=>n.delete(e))),t},i=e=>{let t=(e.ownerDocument??e).defaultView;if(t&&t!==window)throw TypeError(`@repobit/dex-system-design: the loader defines components in its own window; import it in the iframe to load an iframe's`)},a=e=>{if(typeof e==`string`)return[e];let t=e;if(typeof t.nodeType!=`number`)return Array.from(e,a).flat();i(t);let n=t.nodeType===Node.ELEMENT_NODE?[t.localName]:[],r=t.querySelectorAll?Array.from(t.querySelectorAll(`:not(:defined)`),e=>e.localName):[];return[...n,...r]},o=async e=>{let n=/* @__PURE__ */ new Set;for(let r of a(e)){let e=t.get(r);e&&!customElements.get(r)&&n.add(e)}await Promise.all(Array.from(n,r))};return{load:o,autoload:(e=document.documentElement)=>{i(e);let t=e=>console.warn(`@repobit/dex-system-design: a component failed to load`,e);o(e).catch(t);let n=new MutationObserver(e=>{let n=e.flatMap(({addedNodes:e})=>[...e]);n.length&&o(n).catch(t)});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()}}}export{e as createLoader};
1
+ function e(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set;for(let[r,i,a]of e)for(let e of r.split(` `))t.set(e,i),a&&n.add(e);let r=[`:not(:defined)`,...n].join(`, `),i=/* @__PURE__ */ new Map,a=e=>{let t=i.get(e);return t||(t=e(),i.set(e,t),t.catch(()=>i.delete(e))),t},o=e=>{let t=(e.ownerDocument??e).defaultView;if(t&&t!==window)throw TypeError(`@repobit/dex-system-design: the loader defines components in its own window; import it in the iframe to load an iframe's`)},s=e=>{if(typeof e==`string`)return[e];let t=e;if(typeof t.nodeType!=`number`)return Array.from(e,s).flat();o(t);let n=t.nodeType===Node.ELEMENT_NODE?[t.localName]:[],i=t.querySelectorAll?Array.from(t.querySelectorAll(r),e=>e.localName):[];return[...n,...i]},c=async e=>{let r=/* @__PURE__ */ new Set;for(let i of s(e)){let e=t.get(i);e&&(n.has(i)||!customElements.get(i))&&r.add(e)}await Promise.all(Array.from(r,a))};return{load:c,autoload:(e=document.documentElement)=>{o(e);let t=e=>console.warn(`@repobit/dex-system-design: a component failed to load`,e);c(e).catch(t);let n=new MutationObserver(e=>{let n=e.flatMap(({addedNodes:e})=>[...e]);n.length&&c(n).catch(t)});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()}}}export{e as createLoader};
2
2
  //# sourceMappingURL=create-loader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-loader.js","names":["createLoader","moduleOf","tags","load","rows","tag","imports","importOnce","pending","refuseForeign","view","node","tagsIn","target","own","under","el","modules","importer","root","report","error","observer","added","records","addedNodes"],"sources":["../../../src/loader/create-loader.ts"],"sourcesContent":["/** One row of the registry: the tags a module registers, space-separated, and how to import it. */\nexport type RegistryRow = readonly [tags: string, load: () => Promise<unknown>];\n\nexport interface Loader {\n /** Imports the module of every component in `target`; see loader.ts. */\n load(target: ParentNode | Iterable<string>): Promise<void>;\n /** `load(root)`, then again for whatever is added under `root`; see loader.ts. */\n autoload(root?: ParentNode): () => void;\n}\n\n/**\n * The loader for a registry. loader.ts makes the package's one from the\n * generated registry; this is separate so a test can hand it rows of its own.\n */\nexport function createLoader(rows: readonly RegistryRow[]): Loader {\n const moduleOf = new Map<string, RegistryRow[1]>();\n for (const [tags, load] of rows) for (const tag of tags.split(' ')) moduleOf.set(tag, load);\n\n /* Each module is imported once, however many callers ask for its tags and\n however many of its tags they ask for. A failed import is forgotten, so\n the next caller calls import() again rather than inheriting the failure.\n That retries only where the browser has not kept the failure itself: a\n module that threw while evaluating rejects with the same error for the\n life of the page, and so does a failed fetch in an engine whose module\n map caches it. */\n const imports = new Map<RegistryRow[1], Promise<unknown>>();\n const importOnce = (load: RegistryRow[1]) => {\n let pending = imports.get(load);\n if (!pending) {\n pending = load();\n imports.set(load, pending);\n pending.catch(() => imports.delete(load));\n }\n return pending;\n };\n\n /* The modules define their tags in this window's registry, and a document\n of another window (an iframe's) upgrades its elements from its own, which\n they never reach: load() would resolve with them still undefined, so it\n refuses them. A node of no window -- a template's content, a parsed\n document -- is let through: what it holds is defined here once adopted. */\n const refuseForeign = (node: Node) => {\n const view = (node.ownerDocument ?? (node as Document)).defaultView;\n if (view && view !== window) throw new TypeError('@repobit/dex-system-design: the loader defines components in its own window; import it in the iframe to load an iframe\\'s');\n };\n\n /* A node is told by its nodeType, not instanceof, so that one of another\n window is refused rather than read as a list; a list may hold nodes as\n well as tags, as a NodeList does. A node that holds no elements (text, a\n comment) adds none. */\n const tagsIn = (target: unknown): string[] => {\n if (typeof target === 'string') return [target];\n const node = target as Partial<Element>;\n if (typeof node.nodeType !== 'number') return Array.from(target as Iterable<unknown>, tagsIn).flat();\n refuseForeign(node as Element);\n const own = node.nodeType === Node.ELEMENT_NODE ? [node.localName!] : [];\n const under = node.querySelectorAll ? Array.from(node.querySelectorAll(':not(:defined)'), el => el.localName) : [];\n return [...own, ...under];\n };\n\n const load = async (target: unknown) => {\n const modules = new Set<RegistryRow[1]>();\n for (const tag of tagsIn(target)) {\n const importer = moduleOf.get(tag);\n if (importer && !customElements.get(tag)) modules.add(importer);\n }\n await Promise.all(Array.from(modules, importOnce));\n };\n\n const autoload = (root: ParentNode = document.documentElement) => {\n refuseForeign(root);\n const report = (error: unknown) => console.warn('@repobit/dex-system-design: a component failed to load', error);\n load(root).catch(report);\n /* One load() per delivery, for everything it added, not one per element:\n the parser adds each element of a page as a record of its own. It is\n handed the nodes, not their tags, so that one refused (moved into an\n iframe's document before the delivery) is reported, not thrown. */\n const observer = new MutationObserver(records => {\n const added = records.flatMap(({ addedNodes }) => [...addedNodes]);\n if (added.length) load(added).catch(report);\n });\n observer.observe(root, { childList: true, subtree: true });\n return () => observer.disconnect();\n };\n\n return { load, autoload };\n}\n"],"mappings":"AAcA,SAAgBA,EAAa,EAAsC,CACjE,IAAMC,kBAAW,IAAI,IACrB,IAAK,GAAM,CAACC,EAAMC,KAASC,EAAM,IAAK,IAAMC,KAAOH,EAAK,MAAM,GAAG,EAAGD,EAAS,IAAII,EAAKF,CAAI,EAS1F,IAAMG,kBAAU,IAAI,IACdC,EAAc,GAAyB,CAC3C,IAAIC,EAAUF,EAAQ,IAAIH,CAAI,EAM9B,OALKK,IACH,EAAUL,EAAK,EACfG,EAAQ,IAAIH,EAAMK,CAAO,EACzBA,EAAQ,UAAYF,EAAQ,OAAOH,CAAI,CAAC,GAEnCK,CACT,EAOMC,EAAiB,GAAe,CACpC,IAAMC,GAAQC,EAAK,eAAkBA,EAAA,CAAmB,YACxD,GAAID,GAAQA,IAAS,OAAQ,MAAU,UAAU,0HAA2H,CAC9K,EAMME,EAAU,GAA8B,CAC5C,GAAI,OAAOC,GAAW,SAAU,MAAO,CAACA,CAAM,EAC9C,IAAMF,EAAOE,EACb,GAAI,OAAOF,EAAK,UAAa,SAAU,OAAO,MAAM,KAAKE,EAA6BD,CAAM,CAAC,CAAC,KAAK,EACnGH,EAAcE,CAAe,EAC7B,IAAMG,EAAMH,EAAK,WAAa,KAAK,aAAe,CAACA,EAAK,SAAU,EAAI,CAAC,EACjEI,EAAQJ,EAAK,iBAAmB,MAAM,KAAKA,EAAK,iBAAiB,gBAAgB,EAAG,GAAMK,EAAG,SAAS,EAAI,CAAC,EACjH,MAAO,CAAC,GAAGF,EAAK,GAAGC,CAAK,CAC1B,EAEMZ,EAAO,KAAO,IAAoB,CACtC,IAAMc,kBAAU,IAAI,IACpB,IAAK,IAAMZ,KAAOO,EAAOC,CAAM,EAAG,CAChC,IAAMK,EAAWjB,EAAS,IAAII,CAAG,EAC7Ba,GAAY,CAAC,eAAe,IAAIb,CAAG,GAAGY,EAAQ,IAAIC,CAAQ,CAChE,CACA,MAAM,QAAQ,IAAI,MAAM,KAAKD,EAASV,CAAU,CAAC,CACnD,EAkBA,MAAO,CAAE,OAAM,UAhBG,EAAmB,SAAS,kBAAoB,CAChEE,EAAcU,CAAI,EAClB,IAAMC,EAAU,GAAmB,QAAQ,KAAK,yDAA0DC,CAAK,EAC/GlB,EAAKgB,CAAI,CAAC,CAAC,MAAMC,CAAM,EAKvB,IAAME,EAAW,IAAI,iBAAiB,GAAW,CAC/C,IAAMC,EAAQC,EAAQ,SAAS,CAAE,gBAAiB,CAAC,GAAGC,CAAU,CAAC,EAC7DF,EAAM,QAAQpB,EAAKoB,CAAK,CAAC,CAAC,MAAMH,CAAM,CAC5C,CAAC,EAED,OADAE,EAAS,QAAQH,EAAM,CAAE,UAAW,GAAM,QAAS,EAAK,CAAC,MAC5CG,EAAS,WAAW,CACnC,CAEwB,CAC1B,C"}
1
+ {"version":3,"file":"create-loader.js","names":["createLoader","moduleOf","always","tags","load","everywhere","rows","tag","wanted","imports","importOnce","pending","refuseForeign","view","node","tagsIn","target","own","under","el","modules","importer","root","report","error","observer","added","records","addedNodes"],"sources":["../../../src/loader/create-loader.ts"],"sourcesContent":["/**\n * One row of the registry: the tags a module registers, space-separated, how\n * to import it, and whether it is imported wherever the tags appear, defined\n * or not.\n *\n * `always` is for a tag whose definition is not the whole of what the page\n * needs. bd-icon is defined by any module that imports one drawing -- bd-button\n * imports its arrow -- and draws only the names registered on the page, so a\n * defined bd-icon can still name a drawing nobody imported. Its row imports the\n * barrel of every drawing the first time the page writes one, once, as any\n * other row is imported once.\n */\nexport type RegistryRow = readonly [tags: string, load: () => Promise<unknown>, always?: true];\n\nexport interface Loader {\n /** Imports the module of every component in `target`; see loader.ts. */\n load(target: ParentNode | Iterable<string>): Promise<void>;\n /** `load(root)`, then again for whatever is added under `root`; see loader.ts. */\n autoload(root?: ParentNode): () => void;\n}\n\n/**\n * The loader for a registry. loader.ts makes the package's one from the\n * generated registry; this is separate so a test can hand it rows of its own.\n */\nexport function createLoader(rows: readonly RegistryRow[]): Loader {\n const moduleOf = new Map<string, RegistryRow[1]>();\n const always = new Set<string>();\n for (const [tags, load, everywhere] of rows) {\n for (const tag of tags.split(' ')) {\n moduleOf.set(tag, load);\n if (everywhere) always.add(tag);\n }\n }\n /* What a tree is searched for: the elements still waiting for a definition,\n and every element of an `always` row, which may be defined already. */\n const wanted = [':not(:defined)', ...always].join(', ');\n\n /* Each module is imported once, however many callers ask for its tags and\n however many of its tags they ask for. A failed import is forgotten, so\n the next caller calls import() again rather than inheriting the failure.\n That retries only where the browser has not kept the failure itself: a\n module that threw while evaluating rejects with the same error for the\n life of the page, and so does a failed fetch in an engine whose module\n map caches it. */\n const imports = new Map<RegistryRow[1], Promise<unknown>>();\n const importOnce = (load: RegistryRow[1]) => {\n let pending = imports.get(load);\n if (!pending) {\n pending = load();\n imports.set(load, pending);\n pending.catch(() => imports.delete(load));\n }\n return pending;\n };\n\n /* The modules define their tags in this window's registry, and a document\n of another window (an iframe's) upgrades its elements from its own, which\n they never reach: load() would resolve with them still undefined, so it\n refuses them. A node of no window -- a template's content, a parsed\n document -- is let through: what it holds is defined here once adopted. */\n const refuseForeign = (node: Node) => {\n const view = (node.ownerDocument ?? (node as Document)).defaultView;\n if (view && view !== window) throw new TypeError('@repobit/dex-system-design: the loader defines components in its own window; import it in the iframe to load an iframe\\'s');\n };\n\n /* A node is told by its nodeType, not instanceof, so that one of another\n window is refused rather than read as a list; a list may hold nodes as\n well as tags, as a NodeList does. A node that holds no elements (text, a\n comment) adds none. */\n const tagsIn = (target: unknown): string[] => {\n if (typeof target === 'string') return [target];\n const node = target as Partial<Element>;\n if (typeof node.nodeType !== 'number') return Array.from(target as Iterable<unknown>, tagsIn).flat();\n refuseForeign(node as Element);\n const own = node.nodeType === Node.ELEMENT_NODE ? [node.localName!] : [];\n const under = node.querySelectorAll ? Array.from(node.querySelectorAll(wanted), el => el.localName) : [];\n return [...own, ...under];\n };\n\n const load = async (target: unknown) => {\n const modules = new Set<RegistryRow[1]>();\n for (const tag of tagsIn(target)) {\n const importer = moduleOf.get(tag);\n if (importer && (always.has(tag) || !customElements.get(tag))) modules.add(importer);\n }\n await Promise.all(Array.from(modules, importOnce));\n };\n\n const autoload = (root: ParentNode = document.documentElement) => {\n refuseForeign(root);\n const report = (error: unknown) => console.warn('@repobit/dex-system-design: a component failed to load', error);\n load(root).catch(report);\n /* One load() per delivery, for everything it added, not one per element:\n the parser adds each element of a page as a record of its own. It is\n handed the nodes, not their tags, so that one refused (moved into an\n iframe's document before the delivery) is reported, not thrown. */\n const observer = new MutationObserver(records => {\n const added = records.flatMap(({ addedNodes }) => [...addedNodes]);\n if (added.length) load(added).catch(report);\n });\n observer.observe(root, { childList: true, subtree: true });\n return () => observer.disconnect();\n };\n\n return { load, autoload };\n}\n"],"mappings":"AAyBA,SAAgBA,EAAa,EAAsC,CACjE,IAAMC,kBAAW,IAAI,IACfC,kBAAS,IAAI,IACnB,IAAK,GAAM,CAACC,EAAMC,EAAMC,KAAeC,EACrC,IAAK,IAAMC,KAAOJ,EAAK,MAAM,GAAG,EAC9BF,EAAS,IAAIM,EAAKH,CAAI,EAClBC,GAAYH,EAAO,IAAIK,CAAG,EAKlC,IAAMC,EAAS,CAAC,iBAAkB,GAAGN,CAAM,CAAC,CAAC,KAAK,IAAI,EAShDO,kBAAU,IAAI,IACdC,EAAc,GAAyB,CAC3C,IAAIC,EAAUF,EAAQ,IAAIL,CAAI,EAM9B,OALKO,IACH,EAAUP,EAAK,EACfK,EAAQ,IAAIL,EAAMO,CAAO,EACzBA,EAAQ,UAAYF,EAAQ,OAAOL,CAAI,CAAC,GAEnCO,CACT,EAOMC,EAAiB,GAAe,CACpC,IAAMC,GAAQC,EAAK,eAAkBA,EAAA,CAAmB,YACxD,GAAID,GAAQA,IAAS,OAAQ,MAAU,UAAU,0HAA2H,CAC9K,EAMME,EAAU,GAA8B,CAC5C,GAAI,OAAOC,GAAW,SAAU,MAAO,CAACA,CAAM,EAC9C,IAAMF,EAAOE,EACb,GAAI,OAAOF,EAAK,UAAa,SAAU,OAAO,MAAM,KAAKE,EAA6BD,CAAM,CAAC,CAAC,KAAK,EACnGH,EAAcE,CAAe,EAC7B,IAAMG,EAAMH,EAAK,WAAa,KAAK,aAAe,CAACA,EAAK,SAAU,EAAI,CAAC,EACjEI,EAAQJ,EAAK,iBAAmB,MAAM,KAAKA,EAAK,iBAAiBN,CAAM,EAAG,GAAMW,EAAG,SAAS,EAAI,CAAC,EACvG,MAAO,CAAC,GAAGF,EAAK,GAAGC,CAAK,CAC1B,EAEMd,EAAO,KAAO,IAAoB,CACtC,IAAMgB,kBAAU,IAAI,IACpB,IAAK,IAAMb,KAAOQ,EAAOC,CAAM,EAAG,CAChC,IAAMK,EAAWpB,EAAS,IAAIM,CAAG,EAC7Bc,IAAanB,EAAO,IAAIK,CAAG,GAAK,CAAC,eAAe,IAAIA,CAAG,IAAIa,EAAQ,IAAIC,CAAQ,CACrF,CACA,MAAM,QAAQ,IAAI,MAAM,KAAKD,EAASV,CAAU,CAAC,CACnD,EAkBA,MAAO,CAAE,OAAM,UAhBG,EAAmB,SAAS,kBAAoB,CAChEE,EAAcU,CAAI,EAClB,IAAMC,EAAU,GAAmB,QAAQ,KAAK,yDAA0DC,CAAK,EAC/GpB,EAAKkB,CAAI,CAAC,CAAC,MAAMC,CAAM,EAKvB,IAAME,EAAW,IAAI,iBAAiB,GAAW,CAC/C,IAAMC,EAAQC,EAAQ,SAAS,CAAE,gBAAiB,CAAC,GAAGC,CAAU,CAAC,EAC7DF,EAAM,QAAQtB,EAAKsB,CAAK,CAAC,CAAC,MAAMH,CAAM,CAC5C,CAAC,EAED,OADAE,EAAS,QAAQH,EAAM,CAAE,UAAW,GAAM,QAAS,EAAK,CAAC,MAC5CG,EAAS,WAAW,CACnC,CAEwB,CAC1B,C"}
@@ -2,9 +2,9 @@
2
2
  * Loads the components a page uses, and only those, without the page naming
3
3
  * the module each one lives in.
4
4
  *
5
- * A page that imported components one by one had to know that bd-p is
6
- * paragraph's, bd-button-link is button's and bd-li is list-item's, and its
7
- * import list drifted from the tags it actually wrote. Here the package keeps
5
+ * A page that imported components one by one had to know that bd-li is
6
+ * list's, bd-sup is annotation's and bd-mark is marks's, and its import list
7
+ * drifted from the tags it actually wrote. Here the package keeps
8
8
  * that knowledge -- registry.ts, generated from the tags each module
9
9
  * registers -- and a page says only where to look:
10
10
  *
@@ -30,7 +30,10 @@ import { type Loader } from "./create-loader.js";
30
30
  * window, and an iframe's document is upgraded from its own registry, so the
31
31
  * iframe imports the loader itself. A template's content is taken. A tag that
32
32
  * is not this package's (`bd-context` is dex-store-elements') is ignored, and
33
- * so is one already defined, by this copy of the package or another.
33
+ * so is one already defined, by this copy of the package or another -- except
34
+ * bd-icon and bd-mark, whose barrel of drawings is imported the first time
35
+ * either appears, defined or not: any atom that draws an icon defines bd-icon
36
+ * by importing its one drawing, and a page's icons need the rest.
34
37
  */
35
38
  export declare const load: Loader['load'];
36
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","names":["loader","createLoader","registry","load","autoload"],"sources":["../../../src/loader/loader.ts"],"sourcesContent":["/**\n * Loads the components a page uses, and only those, without the page naming\n * the module each one lives in.\n *\n * A page that imported components one by one had to know that bd-p is\n * paragraph's, bd-button-link is button's and bd-li is list-item's, and its\n * import list drifted from the tags it actually wrote. Here the package keeps\n * that knowledge -- registry.ts, generated from the tags each module\n * registers -- and a page says only where to look:\n *\n * import { load, autoload } from '@repobit/dex-system-design/loader';\n *\n * const layout = buildLayout(); // document.createElement('bd-…')\n * await load(layout); // every component in it is defined\n * block.replaceChildren(layout);\n *\n * autoload(); // and anything added to the page later\n *\n * Importing this module does nothing on its own: no import starts and no\n * observer runs until load() or autoload() is called.\n */\nimport { createLoader, type Loader } from './create-loader.ts';\nimport { registry } from './registry.ts';\n\nconst loader = createLoader(registry);\n\n/**\n * Imports the module of every component in `target` and resolves once all of\n * them are defined. `target` is an element or a fragment -- itself and\n * everything under it, attached to the page or not -- or a list of tag names.\n *\n * Rejects if an import fails, so a caller can keep its fallback, and for a\n * node of another window (an iframe's): the components are defined in this\n * window, and an iframe's document is upgraded from its own registry, so the\n * iframe imports the loader itself. A template's content is taken. A tag that\n * is not this package's (`bd-context` is dex-store-elements') is ignored, and\n * so is one already defined, by this copy of the package or another.\n */\nexport const load: Loader['load'] = loader.load;\n\n/**\n * `load(root)` now, then again for every element added under `root` later\n * (default: the whole document). Nothing awaits it, so a failed import is\n * reported, not thrown; a root of another window, which load() rejects,\n * throws. It does not look inside shadow roots: a component\n * imports what it renders there itself, and a shadow root of the page's own is\n * `load()`ed by whoever attaches it. Returns a function that stops watching.\n */\nexport const autoload: Loader['autoload'] = loader.autoload;\n"],"mappings":"A,2FAwBA,IAAMA,EAASC,EAAaC,CAAQ,EAcvBC,EAAuBH,EAAO,KAU9BI,EAA+BJ,EAAO,S"}
1
+ {"version":3,"file":"loader.js","names":["loader","createLoader","registry","load","autoload"],"sources":["../../../src/loader/loader.ts"],"sourcesContent":["/**\n * Loads the components a page uses, and only those, without the page naming\n * the module each one lives in.\n *\n * A page that imported components one by one had to know that bd-li is\n * list's, bd-sup is annotation's and bd-mark is marks's, and its import list\n * drifted from the tags it actually wrote. Here the package keeps\n * that knowledge -- registry.ts, generated from the tags each module\n * registers -- and a page says only where to look:\n *\n * import { load, autoload } from '@repobit/dex-system-design/loader';\n *\n * const layout = buildLayout(); // document.createElement('bd-…')\n * await load(layout); // every component in it is defined\n * block.replaceChildren(layout);\n *\n * autoload(); // and anything added to the page later\n *\n * Importing this module does nothing on its own: no import starts and no\n * observer runs until load() or autoload() is called.\n */\nimport { createLoader, type Loader } from './create-loader.ts';\nimport { registry } from './registry.ts';\n\nconst loader = createLoader(registry);\n\n/**\n * Imports the module of every component in `target` and resolves once all of\n * them are defined. `target` is an element or a fragment -- itself and\n * everything under it, attached to the page or not -- or a list of tag names.\n *\n * Rejects if an import fails, so a caller can keep its fallback, and for a\n * node of another window (an iframe's): the components are defined in this\n * window, and an iframe's document is upgraded from its own registry, so the\n * iframe imports the loader itself. A template's content is taken. A tag that\n * is not this package's (`bd-context` is dex-store-elements') is ignored, and\n * so is one already defined, by this copy of the package or another -- except\n * bd-icon and bd-mark, whose barrel of drawings is imported the first time\n * either appears, defined or not: any atom that draws an icon defines bd-icon\n * by importing its one drawing, and a page's icons need the rest.\n */\nexport const load: Loader['load'] = loader.load;\n\n/**\n * `load(root)` now, then again for every element added under `root` later\n * (default: the whole document). Nothing awaits it, so a failed import is\n * reported, not thrown; a root of another window, which load() rejects,\n * throws. It does not look inside shadow roots: a component\n * imports what it renders there itself, and a shadow root of the page's own is\n * `load()`ed by whoever attaches it. Returns a function that stops watching.\n */\nexport const autoload: Loader['autoload'] = loader.autoload;\n"],"mappings":"A,2FAwBA,IAAMA,EAASC,EAAaC,CAAQ,EAiBvBC,EAAuBH,EAAO,KAU9BI,EAA+BJ,EAAO,S"}