@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":"section.css.js","names":["section_css_default"],"sources":["../../../../src/components/section/section.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* One distance, and twice it. Every section of the Figma homepage frames sits\n the same inset in from its top and its bottom -- 24 on the 390 phone frame,\n 32 on the 768 tablet and the 1440 desktop -- so two sections stand twice\n that apart, 48 and 64. The blocks inside a section take the same doubled\n gap, so two blocks of one section sit as far apart as two sections do, and\n one rhythm runs down the whole page.\n\n Vertical only. The page column is each module's own (ensembleCSS), so a\n section never sets a width, an inline padding or a ground. */\nexport default css`\n :host {\n --bd-section-padding: var(--spacing-24);\n\n display: flex;\n flex-direction: column;\n gap: calc(var(--bd-section-padding) * 2);\n padding-block: var(--bd-section-padding);\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n :host {\n --bd-section-padding: var(--spacing-32);\n }\n }\n\n /* An edge is on or off, never another size: the block meets its neighbour\n there, and keeps the inset everywhere else. */\n :host([no-padding-top]) {\n padding-block-start: 0;\n }\n\n :host([no-padding-bottom]) {\n padding-block-end: 0;\n }\n`;\n"],"mappings":"A,4DAYA,IAAAA,EAAe,CAAG,oU"}
1
+ {"version":3,"file":"section.css.js","names":["section_css_default"],"sources":["../../../../src/components/section/section.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* One distance, and twice it. Every section of the Figma homepage frames sits\n the same inset in from its top and its bottom -- 24 on the 390 phone frame,\n 32 on the 768 tablet and the 1440 desktop -- so two sections stand twice\n that apart, 48 and 64. The blocks inside a section take the same doubled\n gap, so two blocks of one section sit as far apart as two sections do, and\n one rhythm runs down the whole page.\n\n Vertical only. The page column is each module's own (ensembleCSS), so a\n section never sets a width, an inline padding or a ground. */\nexport default css`\n :host {\n --bd-section-padding: var(--spacing-24);\n\n display: flex;\n flex-direction: column;\n gap: calc(var(--bd-section-padding) * 2);\n padding-block: var(--bd-section-padding);\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n :host {\n --bd-section-padding: var(--spacing-32);\n }\n }\n\n /* An edge is on or off, never another size: the block meets its neighbour\n there, and keeps the inset everywhere else. */\n :host([without-padding-top]) {\n padding-block-start: 0;\n }\n\n :host([without-padding-bottom]) {\n padding-block-end: 0;\n }\n`;\n"],"mappings":"A,4DAYA,IAAAA,EAAe,CAAG,8U"}
@@ -8,10 +8,12 @@ import "../../tokens/tokens.js";
8
8
  * only be on or off at either edge, never a different size, so the rhythm
9
9
  * cannot drift.
10
10
  *
11
- * `no-padding-top` and `no-padding-bottom` turn one edge off, for a block that
12
- * must meet what is above or below it -- the hero, whose band starts under the
13
- * site menu, takes `no-padding-top`. The block keeps the rest of the rhythm:
14
- * the hero still stands twice the inset clear of the section after it.
11
+ * `without-padding-top` and `without-padding-bottom` turn one edge off, for a
12
+ * block that must meet what is above or below it -- the hero, whose band
13
+ * starts under the site menu, takes `without-padding-top`. The block keeps the
14
+ * rest of the rhythm: the hero still stands twice the inset clear of the
15
+ * section after it. (3.x spelled them `no-padding-top` and
16
+ * `no-padding-bottom`; N5 makes a removed default part `without-*`.)
15
17
  *
16
18
  * It sets no width and no ground. The blocks inside bring their own page
17
19
  * column; a full-bleed band is a block like any other, so it stands twice the
@@ -19,8 +21,8 @@ import "../../tokens/tokens.js";
19
21
  * wants a landmark puts one inside.
20
22
  */
21
23
  declare class BdSection extends LitElement {
22
- noPaddingTop: boolean;
23
- noPaddingBottom: boolean;
24
+ withoutPaddingTop: boolean;
25
+ withoutPaddingBottom: boolean;
24
26
  static styles: import("lit").CSSResult[];
25
27
  render(): import("lit-html").TemplateResult<1>;
26
28
  }
@@ -1,2 +1,2 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import n from"./section.css.js";import{LitElement as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends r{constructor(...e){super(...e),this.noPaddingTop=!1,this.noPaddingBottom=!1}static{this.styles=[n]}render(){return i`<slot></slot>`}};t([a({type:Boolean,reflect:!0,attribute:`no-padding-top`})],o.prototype,`noPaddingTop`,void 0),t([a({type:Boolean,reflect:!0,attribute:`no-padding-bottom`})],o.prototype,`noPaddingBottom`,void 0),o=t([e(`bd-section`)],o);
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import n from"./section.css.js";import{LitElement as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends r{constructor(...e){super(...e),this.withoutPaddingTop=!1,this.withoutPaddingBottom=!1}static{this.styles=[n]}render(){return i`<slot></slot>`}};t([a({type:Boolean,reflect:!0,attribute:`without-padding-top`})],o.prototype,`withoutPaddingTop`,void 0),t([a({type:Boolean,reflect:!0,attribute:`without-padding-bottom`})],o.prototype,`withoutPaddingBottom`,void 0),o=t([e(`bd-section`)],o);
2
2
  //# sourceMappingURL=section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.js","names":["sectionCSS","_decorate","__decorate","section_css_default","BdSection","LitElement","_args","property","defineElement"],"sources":["../../../../src/components/section/section.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport sectionCSS from \"./section.css.ts\";\n\n/**\n * A page section: the vertical rhythm a page is built on, and nothing else.\n * It pads its top and bottom by the section inset (24 on a phone, 32 from md)\n * and stacks its blocks twice that apart, so every section and every block on\n * a page sits on one distance. The inset is not a choice a page makes: it can\n * only be on or off at either edge, never a different size, so the rhythm\n * cannot drift.\n *\n * `no-padding-top` and `no-padding-bottom` turn one edge off, for a block that\n * must meet what is above or below it -- the hero, whose band starts under the\n * site menu, takes `no-padding-top`. The block keeps the rest of the rhythm:\n * the hero still stands twice the inset clear of the section after it.\n *\n * It sets no width and no ground. The blocks inside bring their own page\n * column; a full-bleed band is a block like any other, so it stands twice the\n * inset clear of its neighbours. It carries no semantics either -- a page that\n * wants a landmark puts one inside.\n */\n@defineElement(\"bd-section\")\nclass BdSection extends LitElement {\n @property({ type: Boolean, reflect: true, attribute: \"no-padding-top\" })\n noPaddingTop = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-padding-bottom\" })\n noPaddingBottom = false;\n\n static styles = [sectionCSS];\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section\": BdSection;\n }\n}\n"],"mappings":"A,6RAyBA,IACMI,EADN,cACwBC,CAAW,C,8BAElB,KAAA,aAAA,GAEG,KAAA,gBAAA,E,QAEF,KAAA,OAAA,CAACL,CAAU,C,CAE3B,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAVGC,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,gBAAiB,CAAC,CAAA,EAAAH,EAAA,UAAA,eAAA,IAAA,EAAA,EAEtEH,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,mBAAoB,CAAC,CAAA,EAAAH,EAAA,UAAA,kBAAA,IAAA,EAAA,EAJ3E,EAAAH,EAAA,CAAAO,EAAc,YAAY,CAAA,EAAAJ,CAAA"}
1
+ {"version":3,"file":"section.js","names":["sectionCSS","_decorate","__decorate","section_css_default","BdSection","LitElement","_args","property","defineElement"],"sources":["../../../../src/components/section/section.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport sectionCSS from \"./section.css.ts\";\n\n/**\n * A page section: the vertical rhythm a page is built on, and nothing else.\n * It pads its top and bottom by the section inset (24 on a phone, 32 from md)\n * and stacks its blocks twice that apart, so every section and every block on\n * a page sits on one distance. The inset is not a choice a page makes: it can\n * only be on or off at either edge, never a different size, so the rhythm\n * cannot drift.\n *\n * `without-padding-top` and `without-padding-bottom` turn one edge off, for a\n * block that must meet what is above or below it -- the hero, whose band\n * starts under the site menu, takes `without-padding-top`. The block keeps the\n * rest of the rhythm: the hero still stands twice the inset clear of the\n * section after it. (3.x spelled them `no-padding-top` and\n * `no-padding-bottom`; N5 makes a removed default part `without-*`.)\n *\n * It sets no width and no ground. The blocks inside bring their own page\n * column; a full-bleed band is a block like any other, so it stands twice the\n * inset clear of its neighbours. It carries no semantics either -- a page that\n * wants a landmark puts one inside.\n */\n@defineElement(\"bd-section\")\nclass BdSection extends LitElement {\n @property({ type: Boolean, reflect: true, attribute: \"without-padding-top\" })\n withoutPaddingTop = false;\n @property({ type: Boolean, reflect: true, attribute: \"without-padding-bottom\" })\n withoutPaddingBottom = false;\n\n static styles = [sectionCSS];\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section\": BdSection;\n }\n}\n"],"mappings":"A,6RA2BA,IACMI,EADN,cACwBC,CAAW,C,8BAEb,KAAA,kBAAA,GAEG,KAAA,qBAAA,E,QAEP,KAAA,OAAA,CAACL,CAAU,C,CAE3B,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAVGC,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,qBAAsB,CAAC,CAAA,EAAAH,EAAA,UAAA,oBAAA,IAAA,EAAA,EAE3EH,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,wBAAyB,CAAC,CAAA,EAAAH,EAAA,UAAA,uBAAA,IAAA,EAAA,EAJhF,EAAAH,EAAA,CAAAO,EAAc,YAAY,CAAA,EAAAJ,CAAA"}
@@ -1,2 +1,2 @@
1
- import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.root{gap:var(--spacing-16);flex-direction:column;display:flex}.eyebrow{--bd-paragraph-margin-bottom:0}.row{gap:var(--spacing-16);flex-direction:column;display:flex}.heading{margin:0}.lead[hidden]{display:none}.lead{font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-text-primary)}::slotted(*){margin:0}:host([layout=centered]) .root{text-align:center;align-items:center}:host([layout=centered]) .row{align-items:center;gap:var(--spacing-24);max-width:588px}@media (width>=992px){.lead{font-size:var(--typography-body-large-fontSize);font-weight:var(--typography-body-large-fontWeight);line-height:var(--typography-body-large-lineHeight);letter-spacing:var(--typography-body-large-letterSpacing)}:host([layout=split]) .row{align-items:flex-start;gap:var(--spacing-24);flex-direction:row}:host([layout=split]) .heading,:host([layout=split]) .lead{flex:1 1 0;min-width:0}}.text{white-space:pre-line}`;export{t as sectionHeaderCSS};
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.root{gap:var(--spacing-16);flex-direction:column;display:flex}.eyebrow[hidden],.row[hidden],.title[hidden],.description[hidden]{display:none}.eyebrow{font-family:var(--typography-label-large-fontFamily);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing);color:var(--bd-paragraph-color,var(--color-text-brand))}@media (width<992px){.eyebrow{font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing)}}.row{gap:var(--spacing-16);flex-direction:column;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily)}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing);--bd-paragraph-margin-bottom:0}::slotted(*){margin:0}:host([layout=centered]) .root{text-align:center;align-items:center}:host([layout=centered]) .row{align-items:center;gap:var(--spacing-24);max-width:588px}@media (width>=992px){::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing)}:host([layout=split]) .row{align-items:flex-start;gap:var(--spacing-24);flex-direction:row}:host([layout=split]) .title,:host([layout=split]) .description{flex:1 1 0;min-width:0}}`;export{t as sectionHeaderCSS};
2
2
  //# sourceMappingURL=section-header.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section-header.css.js","names":["sectionHeaderCSS"],"sources":["../../../../src/components/section-header/section-header.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* Mobile first. Everything stacks 16 apart until lg, where \"split\" sets the\n headline and the lead side by side, 24 apart, under the eyebrow -- the\n steps the Figma Section header draws at 390, 768 and 1440. */\nexport const sectionHeaderCSS = css`\n :host {\n display: block;\n }\n\n .root {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n /* bd-p closes every paragraph with a flow margin inside its own shadow\n root; the gap above is this header's spacing, so the switch turns it off */\n .eyebrow {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .row {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n .heading {\n margin: 0;\n }\n\n .lead[hidden] {\n display: none;\n }\n\n /* The lead is body-regular below lg and body-large from lg, the two roles\n the design binds. Set on the wrapper so slotted copy inherits it: the\n page writes the words and this header owns their type. */\n .lead {\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-text-primary);\n }\n\n ::slotted(*) {\n margin: 0;\n }\n\n :host([layout=\"centered\"]) .root {\n align-items: center;\n text-align: center;\n }\n\n :host([layout=\"centered\"]) .row {\n align-items: center;\n gap: var(--spacing-24);\n /* not the column: the centred measure the design sets on Proven, a\n heading and lead deliberately narrower than the page.\n no token: 588 is a measure, and the dimension scale stops at 64 */\n max-width: 588px;\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .lead {\n font-size: var(--typography-body-large-fontSize);\n font-weight: var(--typography-body-large-fontWeight);\n line-height: var(--typography-body-large-lineHeight);\n letter-spacing: var(--typography-body-large-letterSpacing);\n }\n\n :host([layout=\"split\"]) .row {\n flex-direction: row;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n /* two equal halves, so the lead starts on the page's centre line */\n :host([layout=\"split\"]) .heading,\n :host([layout=\"split\"]) .lead {\n flex: 1 1 0;\n min-width: 0;\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. The rule sits on a span around the text, not on bd-h or bd-p,\n whose own templates hold newlines that would break too, and the lead's\n span is the slot's fallback: slotted copy is markup, which brings its\n own <br>, and its source newlines stay spaces. */\n .text {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,4DAMA,IAAaA,EAAmB,CAAG,uoC"}
1
+ {"version":3,"file":"section-header.css.js","names":["sectionHeaderCSS"],"sources":["../../../../src/components/section-header/section-header.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below, bodyRole, headingRole } from \"#shared/token-scales.ts\";\n\n/* Mobile first. Everything stacks 16 apart until lg, where \"split\" sets the\n title and the description side by side, 24 apart, under the eyebrow -- the\n steps the Figma Section header draws at 390, 768 and 1440. */\nexport const sectionHeaderCSS = css`\n :host {\n display: block;\n }\n\n .root {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n .eyebrow[hidden],\n .row[hidden],\n .title[hidden],\n .description[hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so the page writes the words and this box sets\n them: bd-p's eyebrow look, label-large from lg and label-default below\n it, in brand ink. The ink reads --bd-paragraph-color first, as bd-p's\n eyebrow does, so a band that names its ink with ink() is not painted\n over with the brand on itself. */\n .eyebrow {\n font-family: var(--typography-label-large-fontFamily);\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 color: var(--bd-paragraph-color, var(--color-text-brand));\n }\n\n @media ${unsafeCSS(below(\"lg\"))} {\n .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 }\n }\n\n .row {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n /* The page's heading, at the page-section role whatever level it chose:\n what visual-level=\"h2\" on the header's own bd-h used to say. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n\n /* The description is body-regular below lg and body-large from lg, the two\n roles the design binds. bd-p closes every paragraph with a flow margin;\n the gap above is this header's spacing, so the switch turns it off. */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n ::slotted(*) {\n margin: 0;\n }\n\n :host([layout=\"centered\"]) .root {\n align-items: center;\n text-align: center;\n }\n\n :host([layout=\"centered\"]) .row {\n align-items: center;\n gap: var(--spacing-24);\n /* not the column: the centred measure the design sets on Proven, a\n heading and description deliberately narrower than the page.\n no token: 588 is a measure, and the dimension scale stops at 64 */\n max-width: 588px;\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n }\n\n :host([layout=\"split\"]) .row {\n flex-direction: row;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n /* two equal halves, so the description starts on the page's centre line */\n :host([layout=\"split\"]) .title,\n :host([layout=\"split\"]) .description {\n flex: 1 1 0;\n min-width: 0;\n }\n }\n`;\n"],"mappings":"A,4DAMA,IAAaA,EAAmB,CAAG,krE"}
@@ -1,41 +1,40 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
2
3
  import "../../tokens/tokens.js";
3
- import "../heading/heading.js";
4
- import "../paragraph/paragraph.js";
4
+ import "../h/h.js";
5
+ import "../p/p.js";
5
6
  declare const LAYOUTS: readonly ["stacked", "split", "centered"];
6
7
  type Layout = typeof LAYOUTS[number];
7
- type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
8
8
  /**
9
- * The header that opens a page section: an eyebrow, the section's h2 and a
10
- * lead. The homepage opens five sections with it -- AI, Why trust, Proven,
11
- * Insights and the solution splitter -- where each module used to spell its
12
- * own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the foundation
13
- * Figma file as Section header.
9
+ * The header that opens a page section: an eyebrow, the section's title and
10
+ * a description. The homepage opens five sections with it -- AI, Why trust,
11
+ * Proven, Insights and the solution splitter -- where each module used to
12
+ * spell its own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the
13
+ * foundation Figma file as Section header.
14
14
  *
15
- * layout="split" puts the headline and lead side by side from lg; below lg,
16
- * and in "stacked", everything stacks. layout="centered" centres the three on
17
- * a narrower measure. Leave eyebrow and lead out for a title-only header.
15
+ * layout="split" puts the title and description side by side from lg; below
16
+ * lg, and in "stacked", everything stacks. layout="centered" centres the
17
+ * three on a narrower measure.
18
18
  *
19
- * The lead is an attribute for plain copy, or the `lead` slot when it carries
20
- * a link -- `<bd-link inline underline>`, since colour alone measures 2.91:1
21
- * against the body text and fails WCAG 1.4.1. Slotted copy takes the lead's
22
- * role from here, so the page writes words, not typography.
19
+ * The copy is the page's (ADR 0003): `<span slot="eyebrow">`,
20
+ * `<bd-h slot="title" as="h2">` and `<bd-p slot="description">`. The page
21
+ * picks the title's level; this header sets the title's size (heading-h2) and
22
+ * the description's (body-regular, body-large from lg), so the page writes
23
+ * words and a level, not typography. A link in the description should be
24
+ * `<bd-link inline underline>`, since colour alone measures 2.91:1 against
25
+ * the body text and fails WCAG 1.4.1. Each part's box is left out while its
26
+ * slot is empty, so a title-only header carries no empty line.
23
27
  */
24
- export declare class SectionHeader extends LitElement {
28
+ export declare class BdSectionHeader extends LitElement {
25
29
  static styles: import("lit").CSSResult[];
26
- eyebrow: string;
27
- heading: string;
28
- lead: string;
29
- as: HeadingTag;
30
30
  layout: Layout;
31
- _hasLead: boolean;
31
+ _slots: SlotController<"eyebrow" | "title" | "description">;
32
32
  willUpdate(changed: PropertyValues<this>): void;
33
- _onLeadSlot(e: Event): void;
34
33
  render(): import("lit-html").TemplateResult<1>;
35
34
  }
36
35
  declare global {
37
36
  interface HTMLElementTagNameMap {
38
- "bd-section-header": SectionHeader;
37
+ "bd-section-header": BdSectionHeader;
39
38
  }
40
39
  }
41
40
  export {};
@@ -1,12 +1,10 @@
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{resolveEnum as n}from"../shared/prop-vocabulary.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import{sectionHeaderCSS as i}from"./section-header.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=[`stacked`,`split`,`centered`],d=class extends a{constructor(...e){super(...e),this.eyebrow=``,this.heading=``,this.lead=``,this.as=`h2`,this.layout=`stacked`,this._hasLead=!1}static{this.styles=[r,i]}willUpdate(e){e.has(`layout`)&&(this.layout=n(this.layout,{allowed:u,fallback:`stacked`}))}_onLeadSlot(e){this._hasLead=e.target.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.textContent.trim())}render(){let e=this.lead||this._hasLead;return o`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{resolveEnum as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as r}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import{sectionHeaderCSS as a}from"./section-header.css.js";import{LitElement as o,html as s}from"lit";import{property as c}from"lit/decorators.js";var l=[`stacked`,`split`,`centered`],u=class extends o{constructor(...e){super(...e),this.layout=`stacked`,this._slots=new r(this,{slots:[`eyebrow`,`title`,`description`]})}static{this.styles=[i,a]}willUpdate(e){e.has(`layout`)&&(this.layout=t(this.layout,{allowed:l,fallback:`stacked`}))}render(){let e=this._slots.has(`title`),t=this._slots.has(`description`);return s`
2
2
  <header class="bd-ensemble root">
3
- ${this.eyebrow?o`<bd-p variant="eyebrow" class="eyebrow"><span class="text">${this.eyebrow}</span></bd-p>`:s}
4
- <div class="row">
5
- ${this.heading?o`<bd-h as="${this.as}" visual-level="h2" class="heading"><span class="text">${this.heading}</span></bd-h>`:s}
6
- <div class="lead" ?hidden=${!e}>
7
- <slot name="lead" @slotchange=${this._onLeadSlot}><span class="text">${this.lead}</span></slot>
8
- </div>
3
+ <div class="eyebrow" ?hidden=${!this._slots.has(`eyebrow`)}><slot name="eyebrow"></slot></div>
4
+ <div class="row" ?hidden=${!e&&!t}>
5
+ <div class="title" ?hidden=${!e}><slot name="title"></slot></div>
6
+ <div class="description" ?hidden=${!t}><slot name="description"></slot></div>
9
7
  </div>
10
8
  </header>
11
- `}};t([c({type:String})],d.prototype,`eyebrow`,void 0),t([c({type:String})],d.prototype,`heading`,void 0),t([c({type:String})],d.prototype,`lead`,void 0),t([c({type:String})],d.prototype,`as`,void 0),t([c({type:String,reflect:!0})],d.prototype,`layout`,void 0),t([l()],d.prototype,`_hasLead`,void 0),d=t([e(`bd-section-header`)],d);export{d as SectionHeader};
9
+ `}};n([c({type:String,reflect:!0})],u.prototype,`layout`,void 0),u=n([e(`bd-section-header`)],u);export{u as BdSectionHeader};
12
10
  //# sourceMappingURL=section-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section-header.js","names":["_decorate","__decorate","LAYOUTS","SectionHeader","LitElement","_args","ensembleCSS","sectionHeaderCSS","changed","resolveEnum","n","showLead","nothing","property","state","defineElement"],"sources":["../../../../src/components/section-header/section-header.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } 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/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport { resolveEnum } from \"#shared/prop-vocabulary.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { sectionHeaderCSS } from \"./section-header.css.ts\";\n\nconst LAYOUTS = [\"stacked\", \"split\", \"centered\"] as const;\n\ntype Layout = typeof LAYOUTS[number];\ntype HeadingTag = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n\n/**\n * The header that opens a page section: an eyebrow, the section's h2 and a\n * lead. The homepage opens five sections with it -- AI, Why trust, Proven,\n * Insights and the solution splitter -- where each module used to spell its\n * own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the foundation\n * Figma file as Section header.\n *\n * layout=\"split\" puts the headline and lead side by side from lg; below lg,\n * and in \"stacked\", everything stacks. layout=\"centered\" centres the three on\n * a narrower measure. Leave eyebrow and lead out for a title-only header.\n *\n * The lead is an attribute for plain copy, or the `lead` slot when it carries\n * a link -- `<bd-link inline underline>`, since colour alone measures 2.91:1\n * against the body text and fails WCAG 1.4.1. Slotted copy takes the lead's\n * role from here, so the page writes words, not typography.\n */\n@defineElement(\"bd-section-header\")\nexport class SectionHeader extends LitElement {\n static styles = [ensembleCSS, sectionHeaderCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n // a page section's title: the outline is the page's, so it can say otherwise\n @property({ type: String })\n as: HeadingTag = \"h2\";\n @property({ type: String, reflect: true })\n layout: Layout = \"stacked\";\n @state()\n _hasLead = false;\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"layout\")) {\n this.layout = resolveEnum(this.layout, { allowed: LAYOUTS, fallback: \"stacked\" });\n }\n }\n\n _onLeadSlot(e: Event) {\n this._hasLead = (e.target as HTMLSlotElement).assignedNodes({ flatten: true })\n .some(n => n.nodeType === Node.ELEMENT_NODE || n.textContent!.trim());\n }\n\n render() {\n const showLead = this.lead || this._hasLead;\n return html`\n <header class=\"bd-ensemble root\">\n ${this.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"eyebrow\"><span class=\"text\">${this.eyebrow}</span></bd-p>`\n : nothing}\n <div class=\"row\">\n ${this.heading\n ? html`<bd-h as=\"${this.as}\" visual-level=\"h2\" class=\"heading\"><span class=\"text\">${this.heading}</span></bd-h>`\n : nothing}\n <div class=\"lead\" ?hidden=${!showLead}>\n <slot name=\"lead\" @slotchange=${this._onLeadSlot}><span class=\"text\">${this.lead}</span></slot>\n </div>\n </div>\n </header>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section-header\": SectionHeader;\n }\n}\n"],"mappings":"A,mgBAWA,IAAME,EAAU,CAAC,UAAW,QAAS,UAAU,EAsBlCC,EAAN,cAA4BC,CAAW,C,8BAIlC,KAAA,QAAA,GAEA,KAAA,QAAA,GAEH,KAAA,KAAA,GAGU,KAAA,GAAA,KAEA,KAAA,OAAA,UAEN,KAAA,SAAA,E,QAdK,KAAA,OAAA,CAACE,EAAaC,CAAgB,C,CAgB9C,WAAW,EAA+B,CACpCC,EAAQ,IAAI,QAAQ,IACtB,KAAK,OAASC,EAAY,KAAK,OAAQ,CAAE,QAASP,EAAS,SAAU,SAAU,CAAC,EAEpF,CAEA,YAAY,EAAU,CACpB,KAAK,SAAY,EAAE,OAA2B,cAAc,CAAE,QAAS,EAAK,CAAC,CAAC,CAC3E,KAAK,GAAKQ,EAAE,WAAa,KAAK,cAAgBA,EAAE,YAAa,KAAK,CAAC,CACxE,CAEA,QAAS,CACP,IAAMC,EAAW,KAAK,MAAQ,KAAK,SACnC,MAAO,EAAI;;UAEL,KAAK,QACH,CAAI,8DAA8D,KAAK,QAAQ,gBAC/EC,EAAQ;;YAER,KAAK,QACH,CAAI,aAAa,KAAK,GAAG,yDAAyD,KAAK,QAAQ,gBAC/FA,EAAQ;sCACgB,CAACD,EAAS;4CACJ,KAAK,YAAY,sBAAsB,KAAK,KAAK;;;;KAK3F,CACF,EA3CGX,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,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,OAAA,IAAA,EAAA,EAGzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,KAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,SAAA,IAAA,EAAA,EAExCH,EAAA,CAAAc,EAAM,CAAA,EAAAX,EAAA,UAAA,WAAA,IAAA,EAAA,EAfR,EAAAH,EAAA,CAAAe,EAAc,mBAAmB,CAAA,EAAAZ,CAAA,E"}
1
+ {"version":3,"file":"section-header.js","names":["_decorate","__decorate","LAYOUTS","BdSectionHeader","LitElement","_args","SlotController","ensembleCSS","sectionHeaderCSS","changed","resolveEnum","hasTitle","hasDescription","property","defineElement"],"sources":["../../../../src/components/section-header/section-header.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms the page writes into the header's slots. It renders neither\n now, but 3.x's module registered both, and a page importing only this\n module still gets them: an undefined bd-h is text with no heading role. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport { resolveEnum } from \"#shared/prop-vocabulary.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { sectionHeaderCSS } from \"./section-header.css.ts\";\n\nconst LAYOUTS = [\"stacked\", \"split\", \"centered\"] as const;\n\ntype Layout = typeof LAYOUTS[number];\n\n/**\n * The header that opens a page section: an eyebrow, the section's title and\n * a description. The homepage opens five sections with it -- AI, Why trust,\n * Proven, Insights and the solution splitter -- where each module used to\n * spell its own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the\n * foundation Figma file as Section header.\n *\n * layout=\"split\" puts the title and description side by side from lg; below\n * lg, and in \"stacked\", everything stacks. layout=\"centered\" centres the\n * three on a narrower measure.\n *\n * The copy is the page's (ADR 0003): `<span slot=\"eyebrow\">`,\n * `<bd-h slot=\"title\" as=\"h2\">` and `<bd-p slot=\"description\">`. The page\n * picks the title's level; this header sets the title's size (heading-h2) and\n * the description's (body-regular, body-large from lg), so the page writes\n * words and a level, not typography. A link in the description should be\n * `<bd-link inline underline>`, since colour alone measures 2.91:1 against\n * the body text and fails WCAG 1.4.1. Each part's box is left out while its\n * slot is empty, so a title-only header carries no empty line.\n */\n@defineElement(\"bd-section-header\")\nexport class BdSectionHeader extends LitElement {\n static styles = [ensembleCSS, sectionHeaderCSS];\n\n @property({ type: String, reflect: true })\n layout: Layout = \"stacked\";\n\n _slots = new SlotController(this, { slots: [\"eyebrow\", \"title\", \"description\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"layout\")) {\n this.layout = resolveEnum(this.layout, { allowed: LAYOUTS, fallback: \"stacked\" });\n }\n }\n\n render() {\n const hasTitle = this._slots.has(\"title\");\n const hasDescription = this._slots.has(\"description\");\n return html`\n <header class=\"bd-ensemble root\">\n <div class=\"eyebrow\" ?hidden=${!this._slots.has(\"eyebrow\")}><slot name=\"eyebrow\"></slot></div>\n <div class=\"row\" ?hidden=${!hasTitle && !hasDescription}>\n <div class=\"title\" ?hidden=${!hasTitle}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${!hasDescription}><slot name=\"description\"></slot></div>\n </div>\n </header>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section-header\": BdSectionHeader;\n }\n}\n"],"mappings":"A,6gBAeA,IAAME,EAAU,CAAC,UAAW,QAAS,UAAU,EAyBlCC,EAAN,cAA8BC,CAAW,C,8BAI7B,KAAA,OAAA,UAER,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,UAAW,QAAS,aAAa,CAAE,CAAC,C,QALhE,KAAA,OAAA,CAACC,EAAaC,CAAgB,C,CAO9C,WAAW,EAA+B,CACpCC,EAAQ,IAAI,QAAQ,IACtB,KAAK,OAASC,EAAY,KAAK,OAAQ,CAAE,QAASR,EAAS,SAAU,SAAU,CAAC,EAEpF,CAEA,QAAS,CACP,IAAMS,EAAW,KAAK,OAAO,IAAI,OAAO,EAClCC,EAAiB,KAAK,OAAO,IAAI,aAAa,EACpD,MAAO,EAAI;;uCAEwB,CAAC,KAAK,OAAO,IAAI,SAAS,EAAE;mCAChC,CAACD,GAAY,CAACC,EAAe;uCACzB,CAACD,EAAS;6CACJ,CAACC,EAAe;;;KAI3D,CACF,EAxBGZ,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,SAAA,IAAA,EAAA,EAJ1C,EAAAH,EAAA,CAAAc,EAAc,mBAAmB,CAAA,EAAAX,CAAA,E"}
@@ -0,0 +1,29 @@
1
+ import { LitElement } from "lit";
2
+ /**
3
+ * One choice of a bd-select: its words are the option's text, `value` what
4
+ * the select submits when it is chosen (its words, with none), `selected`
5
+ * the choice the select starts on and resets to, and `disabled` one that
6
+ * cannot be chosen -- the attributes of a native <option>.
7
+ *
8
+ * <bd-select-option value="ro" selected>Romania</bd-select-option>
9
+ *
10
+ * It is data. The select draws a native <option> for each one in its own
11
+ * shadow root and follows the page's edits to it; the element itself is never
12
+ * shown, inside a bd-select or out of one. `selected` is the default, as the
13
+ * native attribute is: the select's `value` is what is chosen now.
14
+ *
15
+ * Not `bd-option`: @repobit/dex-store-elements defines that tag on the same
16
+ * pages (docs/adr/0004-web-awesome-naming.md).
17
+ */
18
+ export declare class BdSelectOption extends LitElement {
19
+ static styles: import("lit").CSSResult;
20
+ value: string | null;
21
+ selected: boolean;
22
+ disabled: boolean;
23
+ render(): import("lit-html").TemplateResult<1>;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ "bd-select-option": BdSelectOption;
28
+ }
29
+ }
@@ -0,0 +1,2 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{LitElement as n,css as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends n{constructor(...e){super(...e),this.value=null,this.selected=!1,this.disabled=!1}static{this.styles=r`:host{display:none}`}render(){return i`<slot></slot>`}};t([a({type:String,reflect:!0})],o.prototype,`value`,void 0),t([a({type:Boolean,reflect:!0})],o.prototype,`selected`,void 0),t([a({type:Boolean,reflect:!0})],o.prototype,`disabled`,void 0),o=t([e(`bd-select-option`)],o);export{o as BdSelectOption};
2
+ //# sourceMappingURL=select-option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-option.js","names":["_decorate","__decorate","BdSelectOption","LitElement","_args","property","defineElement"],"sources":["../../../../src/components/select/select-option.ts"],"sourcesContent":["import { LitElement, css, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n\n/**\n * One choice of a bd-select: its words are the option's text, `value` what\n * the select submits when it is chosen (its words, with none), `selected`\n * the choice the select starts on and resets to, and `disabled` one that\n * cannot be chosen -- the attributes of a native <option>.\n *\n * <bd-select-option value=\"ro\" selected>Romania</bd-select-option>\n *\n * It is data. The select draws a native <option> for each one in its own\n * shadow root and follows the page's edits to it; the element itself is never\n * shown, inside a bd-select or out of one. `selected` is the default, as the\n * native attribute is: the select's `value` is what is chosen now.\n *\n * Not `bd-option`: @repobit/dex-store-elements defines that tag on the same\n * pages (docs/adr/0004-web-awesome-naming.md).\n */\n@defineElement(\"bd-select-option\")\nexport class BdSelectOption extends LitElement {\n static styles = css`\n :host {\n display: none;\n }\n `;\n\n /* Reflected, all three: the select reads the attributes, and follows them\n through a mutation observer, so a property set from script has to reach\n one. */\n @property({ type: String, reflect: true })\n value: string | null = null;\n @property({ type: Boolean, reflect: true })\n selected = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-select-option\": BdSelectOption;\n }\n}\n"],"mappings":"A,uOAqBO,IAAME,EAAN,cAA6BC,CAAW,C,8BAWtB,KAAA,MAAA,KAEZ,KAAA,SAAA,GAEA,KAAA,SAAA,E,QAdK,KAAA,OAAA,CAAG,qB,CAgBnB,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAVGH,EAAA,CAAAK,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAH,EAAA,UAAA,QAAA,IAAA,EAAA,EAExCF,EAAA,CAAAK,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAH,EAAA,UAAA,WAAA,IAAA,EAAA,EAEzCF,EAAA,CAAAK,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAH,EAAA,UAAA,WAAA,IAAA,EAAA,EAf3C,EAAAF,EAAA,CAAAM,EAAc,kBAAkB,CAAA,EAAAJ,CAAA,E"}
@@ -1,2 +1,2 @@
1
1
  import{css as e}from"lit";var t=e`.select-wrap{display:block;position:relative}select.form-input-bd{appearance:none;cursor:pointer;padding-inline-end:calc(var(--icon-sm-size) + var(--spacing-12) * 2)}.select-caret{color:var(--color-text-muted);top:50%;pointer-events:none;transition:transform var(--transition-duration-normal) var(--transition-easing-smooth), color var(--transition-duration-normal) var(--transition-easing-smooth);position:absolute;inset-inline-end:var(--spacing-12);transform:translateY(-50%)}.select-caret--open{color:var(--color-text-brand);transform:translateY(-50%)rotate(180deg)}@media (prefers-reduced-motion:reduce){.select-caret{transition:none}}select.form-input--placeholder:enabled{color:var(--color-text-subtle)}select.form-input--placeholder:enabled:is(.form-input--error,.form-input--success,:user-invalid,.form-input--attempted:invalid){color:var(--color-text-muted)}select.form-input-bd option{color:var(--form-input-default-color)}.select-wrap:has(.form-input--disabled) .select-caret{color:var(--form-input-disabled-color)}`;export{t as default};
2
- //# sourceMappingURL=dropdown.css.js.map
2
+ //# sourceMappingURL=select.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.css.js","names":["select_css_default"],"sources":["../../../../src/components/select/select.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * What a select adds to the shared field chrome: the native control is\n * suppressed and a chevron is drawn in its place.\n *\n * Everything else — label, sizes, states, help text — comes from\n * shared/form-field.css.ts.\n */\nexport default css`\n /* The caret is a sibling of the select rather than a pseudo-element, because a\n select cannot carry a reliable one of its own.\n\n This wrapper used to set color: var(--form-input-default-color) purely so\n currentColor on the mark resolved to the field's ink instead of whatever the\n page happened to carry. The caret names its own role now, so that\n declaration had no remaining reader and is gone. */\n .select-wrap {\n position: relative;\n display: block;\n }\n\n select.form-input-bd {\n appearance: none;\n cursor: pointer;\n /* Clearance for the chevron: its own width plus the gap on either side.\n This used to be a padding-right on a bare select type selector, which the\n .input-* size classes then overrode with the padding shorthand — they\n are a class each and beat a type selector — so the clearance never\n applied and a long option ran underneath the chevron. Typing it onto\n select.form-input-bd outranks them. */\n padding-inline-end: calc(var(--icon-sm-size) + var(--spacing-12) * 2);\n }\n\n /* bd-arrow-down-icon, positioned over the select. Three versions of this mark,\n and the progression is the point:\n\n background-image an encoded SVG carrying fill=\"%23000000\" -- black,\n percent-encoded inside a url(), which no theme could\n reach and no lint could see\n mask the same encoded SVG, alpha only, so the mark finally\n took currentColor and followed the field's own ink\n the atom what it is now\n\n The mask fixed the colour and left the real problem: the glyph was still a\n drawing encoded in a stylesheet, invisible to check:icons, and it was a\n SOLID TRIANGLE where every other disclosure control in the package uses a\n chevron -- which is also what this file's Figma Dropdown has always shown.\n A select cannot carry a reliable pseudo-element of its own, but it can have\n a sibling, so the caret is now the same atom the accordion uses. */\n .select-caret {\n /* muted at rest, brand when open -- the same pair bd-anchor-nav's mobile\n toggle uses, and converged on deliberately. This was action/primary in\n both states, which says \"this control opens\" and says nothing about\n whether it IS open; the rotation carried that alone. Letting the colour\n carry it too is the answer the other disclosure control already gave.\n\n Measured on all four grounds a caret sits on, against the 3:1 WCAG\n 1.4.11 asks of non-text UI -- and muted beats action/primary on every\n one of them:\n\n white error tint success tint disabled\n text/muted 6.59 5.95 6.25 5.12\n text/brand 6.18 5.58 5.86 4.80\n action/primary 4.53 4.10 4.30 3.52\n\n The disabled rule below is (0,3,0) against this (0,1,0), so a disabled\n field keeps its grey and never shows the open colour. */\n color: var(--color-text-muted);\n position: absolute;\n top: 50%;\n inset-inline-end: var(--spacing-12);\n transform: translateY(-50%);\n pointer-events: none;\n /* normal, not fast: bd-anchor-nav's chevron turns on the same gesture and\n already used it, and two durations for one motion is the kind of thing\n nobody notices as a decision and everybody notices as an inconsistency. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth),\n color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n /* Rotated rather than swapped for bd-arrow-up-icon, which is the same drawing\n the other way up. One element means the mark cannot change weight as it\n turns, and a transform can be animated where a DOM swap cannot. The weight\n argument was the sharper one when this was written -- arrow-up was still on\n the lighter Eclipse weight while arrow-down was on fill -- and although the\n two now agree, rotating keeps them from drifting apart again here. */\n .select-caret--open {\n transform: translateY(-50%) rotate(180deg);\n color: var(--color-text-brand);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .select-caret {\n transition: none;\n }\n }\n\n /* The placeholder option, while it is the choice, takes the placeholder ink\n an empty input shows -- and, as there, the next step up on a tinted\n field, where text-subtle falls under 4.5:1 (form-field.css.ts has the\n measurements). :enabled, so a disabled field keeps the disabled ink. */\n select.form-input--placeholder:enabled {\n color: var(--color-text-subtle);\n }\n\n select.form-input--placeholder:enabled:is(.form-input--error, .form-input--success, :user-invalid, .form-input--attempted:invalid) {\n color: var(--color-text-muted);\n }\n\n /* The options keep the field's ink. Where the picker is drawn by the page\n rather than the OS, an option inherits the select's colour, and would\n otherwise list every choice in the placeholder's grey. */\n select.form-input-bd option {\n color: var(--form-input-default-color);\n }\n\n /* The chevron is part of the control, so it greys with it. */\n .select-wrap:has(.form-input--disabled) .select-caret {\n color: var(--form-input-disabled-color);\n }\n`;\n"],"mappings":"A,0BASA,IAAAA,EAAe,CAAG,qgC"}
@@ -0,0 +1,85 @@
1
+ import { LitElement, type PropertyValues } from "lit";
2
+ import "../../tokens/tokens.js";
3
+ import "../icons/arrow-down.js";
4
+ import { type Size } from "../shared/prop-vocabulary.js";
5
+ import { SlotController } from "../shared/controller.slot.js";
6
+ import { ObserverController } from "../shared/controller.observer.js";
7
+ import "./select-option.js";
8
+ import type { BdSelectOption } from "./select-option.js";
9
+ interface Choice {
10
+ value: string;
11
+ text: string;
12
+ disabled: boolean;
13
+ }
14
+ declare const BdSelect_base: (new (...args: any[]) => import("../shared/form-control.js").ValueControlInterface) & (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
15
+ /**
16
+ * A select: a native <select>, drawn as a field, whose options are the
17
+ * bd-select-option children the page writes.
18
+ *
19
+ * <bd-select name="country" placeholder="Choose a country" required>
20
+ * <span slot="label">Country</span>
21
+ * <span slot="hint">Where the licence is used.</span>
22
+ * <bd-select-option value="ro" selected>Romania</bd-select-option>
23
+ * <bd-select-option value="de">Germany</bd-select-option>
24
+ * </bd-select>
25
+ *
26
+ * The options are data, not slotted content: a native <select> takes only
27
+ * <option>s of its own tree, so each bd-select-option becomes one, with the
28
+ * option's words copied in (contract rule 8, docs/adr/0003-copy-in-light-dom.md)
29
+ * and followed when the page edits them. Keeping the native control keeps the
30
+ * operating system's own picker, its keyboard, and the browser's validation.
31
+ *
32
+ * It is 3.x's bd-custom-dropdown, whose options were a JSON array attribute;
33
+ * the label and hint are slots, as on bd-input. It sends the native `input`
34
+ * and `change`, once each for a choice; a listener reads event.target.value.
35
+ *
36
+ * A select with no visible label is named by `aria-label` on the element,
37
+ * which is passed to the <select>, as on bd-input:
38
+ *
39
+ * <bd-select name="plan" aria-label="Plan">…</bd-select>
40
+ */
41
+ export declare class BdSelect extends BdSelect_base {
42
+ static styles: import("lit").CSSResult[];
43
+ size: Size;
44
+ required: boolean;
45
+ invalid: boolean;
46
+ validated: boolean;
47
+ disabled: boolean;
48
+ value: string;
49
+ name: string;
50
+ placeholder: string;
51
+ fieldLabel: string;
52
+ _open: boolean;
53
+ _onWindowFocus: () => void;
54
+ _onDocPointerDown: (e: PointerEvent) => void;
55
+ protected _slots: SlotController<"label" | "hint">;
56
+ protected _options: ObserverController<MutationObserver>;
57
+ protected get _control(): HTMLSelectElement | null;
58
+ get _accessibleName(): string;
59
+ /** The bd-select-option children, in order: the choices. */
60
+ get options(): BdSelectOption[];
61
+ get _choices(): Choice[];
62
+ /** The values the select can hold, in order: the placeholder's, then the options'. */
63
+ get _values(): string[];
64
+ protected _defaultValue(): string;
65
+ connectedCallback(): void;
66
+ disconnectedCallback(): void;
67
+ _onSelectMouseDown(): void;
68
+ _onSelectKeyDown(e: KeyboardEvent): void;
69
+ _closePicker(): void;
70
+ willUpdate(changed: PropertyValues<this>): void;
71
+ updated(): void;
72
+ _onInput(e: Event & {
73
+ target: HTMLSelectElement;
74
+ }): void;
75
+ _onChange(e: Event & {
76
+ target: HTMLSelectElement;
77
+ }): void;
78
+ render(): import("lit-html").TemplateResult<1>;
79
+ }
80
+ declare global {
81
+ interface HTMLElementTagNameMap {
82
+ "bd-select": BdSelect;
83
+ }
84
+ }
85
+ export {};
@@ -0,0 +1,36 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{SIZES as t,isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ObserverController as i}from"../shared/controller.observer.js";import{flatText as a}from"../shared/flat-text.js";import{SlotController as o}from"../shared/controller.slot.js";import"../icons/arrow-down.js";import{CONTROL_ID as s,FIELD_SLOTS as c,ValueControl as l,describedBy as u,fieldHint as d,fieldLabel as f,fieldName as p,omitEmpty as m}from"../shared/form-control.js";import h from"../shared/form-field.css.js";import"./select-option.js";import g from"./select.css.js";import{LitElement as _,html as v,nothing as y}from"lit";import{property as b,state as x}from"lit/decorators.js";import{keyed as S}from"lit/directives/keyed.js";var C={childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`value`,`selected`,`disabled`]},w=class extends l(_){constructor(...e){super(...e),this.size=`md`,this.required=!1,this.invalid=!1,this.validated=!1,this.disabled=!1,this.value=``,this.name=``,this.placeholder=``,this.fieldLabel=``,this._open=!1,this._slots=new o(this,{slots:c}),this._options=new i(this,()=>new MutationObserver(()=>this.requestUpdate()),e=>e.observe(this,C))}static{this.styles=[h,g]}get _control(){return this.renderRoot?.querySelector?.(`select`)}get _accessibleName(){return p(this._slots,this.fieldLabel,this._internals.labels)}get options(){return[...this.children].filter(e=>e.localName===`bd-select-option`)}get _choices(){return this.options.map(e=>{let t=a(e);return{value:e.getAttribute(`value`)??t,text:t,disabled:e.hasAttribute(`disabled`)}})}get _values(){return[...this.placeholder?[``]:[],...this._choices.map(e=>e.value)]}_defaultValue(){let e=this._values,t=this.getAttribute(`value`);if(t!==null&&e.includes(t))return t;let n=this._choices,r=this.options.findIndex(e=>e.hasAttribute(`selected`));return r>=0?n[r].value:this.placeholder?``:(n.find(e=>!e.disabled)??n[0])?.value??``}connectedCallback(){super.connectedCallback(),this._onWindowFocus=()=>{this._open&&=!1},this._onDocPointerDown=e=>{this._open&&e.composedPath()[0]!==this.shadowRoot?.querySelector(`select`)&&(this._open=!1)},window.addEventListener(`focus`,this._onWindowFocus),document.addEventListener(`pointerdown`,this._onDocPointerDown,!0),this.hasUpdated&&this.requestUpdate()}disconnectedCallback(){window.removeEventListener(`focus`,this._onWindowFocus),document.removeEventListener(`pointerdown`,this._onDocPointerDown,!0),super.disconnectedCallback()}_onSelectMouseDown(){this._open=!this._open}_onSelectKeyDown(e){(e.key===`Enter`||e.key===` `||e.altKey&&(e.key===`ArrowDown`||e.key===`ArrowUp`))&&(this._open=!0)}_closePicker(){this._open=!1}willUpdate(e){e.has(`size`)&&!n(t,this.size)&&(this.size=`md`),!this.hasUpdated&&this.value===``&&!this.hasAttribute(`value`)&&(this.value=this._defaultValue()),this._values.includes(this.value)||(this.value=this._defaultValue())}updated(){let e=this.shadowRoot.querySelector(`select`);e&&e.value!==this.value&&(e.value=this.value),this._sync()}_onInput(e){this.value=e.target.value,this._sync()}_onChange(e){this._closePicker(),this.value=e.target.value,this._relayChange()}render(){let e=this.disabled||this._formDisabled,t=e?`form-input--disabled`:this.invalid?`form-input--error`:this.validated?`form-input--success`:``,n=this.invalid?`error`:this.validated?`success`:`default`;return v`
2
+ <div class="input-container">
3
+ ${f(this._slots,{size:this.size,required:this.required},v`<slot name="label"></slot>`)}
4
+ <div class="select-wrap">
5
+ ${S(this._resets,v`<select
6
+ id=${s}
7
+ part="select"
8
+ class="form-input-bd input-${this.size} ${t} ${this._attempted?`form-input--attempted`:``} ${this.placeholder&&this.value===``?`form-input--placeholder`:``}"
9
+ name=${this.name||y}
10
+ ?required=${this.required}
11
+ ?disabled=${e}
12
+ aria-label=${this._accessibleName||y}
13
+ aria-invalid=${this.invalid?`true`:y}
14
+ aria-describedby=${u(this._slots)}
15
+ @mousedown=${this._onSelectMouseDown}
16
+ @keydown=${this._onSelectKeyDown}
17
+ @input=${this._onInput}
18
+ @change=${this._onChange}
19
+ @blur=${this._closePicker}
20
+ >
21
+ ${this.placeholder?v`<option value="" ?selected=${this.value===``}>${this.placeholder}</option>`:y}
22
+ ${this._choices.map(e=>v`<option
23
+ value=${e.value}
24
+ ?selected=${e.value===this.value}
25
+ ?disabled=${e.disabled}
26
+ >${e.text}</option>`)}
27
+ </select>`)}
28
+ <bd-icon name="arrow-down"
29
+ size="sm"
30
+ class="select-caret ${this._open?`select-caret--open`:``}"
31
+ ></bd-icon>
32
+ </div>
33
+ ${d(this._slots,n,v`<slot name="hint"></slot>`)}
34
+ </div>
35
+ `}};r([b({type:String,reflect:!0})],w.prototype,`size`,void 0),r([b({type:Boolean})],w.prototype,`required`,void 0),r([b({type:Boolean})],w.prototype,`invalid`,void 0),r([b({type:Boolean})],w.prototype,`validated`,void 0),r([b({type:Boolean,reflect:!0})],w.prototype,`disabled`,void 0),r([b({type:String})],w.prototype,`value`,void 0),r([b({type:String,reflect:!0,converter:m})],w.prototype,`name`,void 0),r([b({type:String})],w.prototype,`placeholder`,void 0),r([b({type:String,attribute:`aria-label`})],w.prototype,`fieldLabel`,void 0),r([x()],w.prototype,`_open`,void 0),w=r([e(`bd-select`)],w);export{w as BdSelect};
36
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.js","names":["selectCSS","_decorate","__decorate","formFieldCSS","select_css_default","OPTIONS","BdSelect","ValueControl","LitElement","_args","SlotController","FIELD_SLOTS","ObserverController","observer","fieldName","el","text","flatText","option","c","values","attribute","choices","selected","o","changed","isOneOf","SIZES","select","disabled","inputStateClass","tone","fieldLabel","keyed","CONTROL_ID","nothing","describedBy","choice","fieldHint","property","omitEmpty","state","defineElement"],"sources":["../../../../src/components/select/select.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { keyed } from \"lit/directives/keyed.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/arrow-down.ts\";\nimport { formFieldCSS } from \"#shared/form-field.css.ts\";\nimport selectCSS from \"./select.css.ts\";\nimport { SIZES, isOneOf, type Size } from \"#shared/prop-vocabulary.ts\";\nimport { CONTROL_ID, FIELD_SLOTS, ValueControl, describedBy, fieldHint, fieldLabel, fieldName, omitEmpty } from \"#shared/form-control.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\nimport { flatText } from \"#shared/flat-text.ts\";\n// registers bd-select-option too: the ./select export is the pair\nimport \"./select-option.ts\";\nimport type { BdSelectOption } from \"./select-option.ts\";\n\n/* An option as the native <select> is handed it. */\ninterface Choice {\n value : string;\n text : string;\n disabled: boolean;\n}\n\n/* What the options say changed: one added or removed, its words edited, its\n value, selected or disabled set. */\nconst OPTIONS: MutationObserverInit = {\n childList : true,\n subtree : true,\n characterData : true,\n attributes : true,\n attributeFilter: [\"value\", \"selected\", \"disabled\"]\n};\n\n/**\n * A select: a native <select>, drawn as a field, whose options are the\n * bd-select-option children the page writes.\n *\n * <bd-select name=\"country\" placeholder=\"Choose a country\" required>\n * <span slot=\"label\">Country</span>\n * <span slot=\"hint\">Where the licence is used.</span>\n * <bd-select-option value=\"ro\" selected>Romania</bd-select-option>\n * <bd-select-option value=\"de\">Germany</bd-select-option>\n * </bd-select>\n *\n * The options are data, not slotted content: a native <select> takes only\n * <option>s of its own tree, so each bd-select-option becomes one, with the\n * option's words copied in (contract rule 8, docs/adr/0003-copy-in-light-dom.md)\n * and followed when the page edits them. Keeping the native control keeps the\n * operating system's own picker, its keyboard, and the browser's validation.\n *\n * It is 3.x's bd-custom-dropdown, whose options were a JSON array attribute;\n * the label and hint are slots, as on bd-input. It sends the native `input`\n * and `change`, once each for a choice; a listener reads event.target.value.\n *\n * A select with no visible label is named by `aria-label` on the element,\n * which is passed to the <select>, as on bd-input:\n *\n * <bd-select name=\"plan\" aria-label=\"Plan\">…</bd-select>\n */\n@defineElement(\"bd-select\")\nexport class BdSelect extends ValueControl(LitElement) {\n static styles = [formFieldCSS, selectCSS];\n\n @property({ type: String, reflect: true })\n size: Size = \"md\";\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean })\n validated = false;\n /* Reflected, as on the other fields: a form-associated element is left\n out of a submit by its disabled ATTRIBUTE, so a disabled set as a\n property has to reach it. */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* The chosen option's value. It always names an option that can be chosen:\n unset, or set to one that is not there, it is the default -- see\n _defaultValue. The value attribute, when there is one, is that default. */\n @property({ type: String })\n value = \"\";\n /* The name it submits under in a form; reflected, because a form reads it\n off the element. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n /* A first option with no value, standing for \"nothing chosen yet\". It is\n what makes `required` mean anything here: a select is missing a value\n only while that option is the chosen one. Without it the first real\n option is chosen from the start, and required can never fail. */\n @property({ type: String })\n placeholder = \"\";\n /* The select's name when there is no visible label: aria-label on the\n element is passed to the <select>, which is what a screen reader\n focuses -- on the element itself it named nothing. A name that never\n renders, so an attribute (contract rule 6, docs/adr/0003-copy-in-light-dom.md),\n and the same one bd-input takes. */\n @property({ type: String, attribute: \"aria-label\" })\n fieldLabel = \"\";\n /* Whether the native picker is showing. A best effort, not a fact: a\n <select> renders its popup in the OS, so the page is never told when it\n opens or closes. See _onSelectMouseDown. */\n @state()\n _open = false;\n\n _onWindowFocus! : () => void;\n _onDocPointerDown!: (e: PointerEvent) => void;\n\n protected _slots = new SlotController(this, { slots: FIELD_SLOTS });\n /* The options are not slotted, so no slotchange reports them: a mutation\n observer on the host does, for as long as it is connected. */\n protected _options = new ObserverController(this,\n () => new MutationObserver(() => this.requestUpdate()),\n observer => observer.observe(this, OPTIONS));\n\n protected get _control(): HTMLSelectElement | null {\n return this.renderRoot?.querySelector?.(\"select\");\n }\n\n /* With no label in the label slot, the <select> is named by aria-label on\n the element, or else by the text of a <label for> pointing at the element\n (fieldName, shared/form-control.ts). Past both it has no name. */\n get _accessibleName() {\n return fieldName(this._slots, this.fieldLabel, this._internals.labels);\n }\n\n /** The bd-select-option children, in order: the choices. */\n get options(): BdSelectOption[] {\n return [...this.children].filter((el): el is BdSelectOption => el.localName === \"bd-select-option\");\n }\n\n /* Each option as the <select> gets it. An option with no value is chosen\n by its words, as a native <option> is. */\n get _choices(): Choice[] {\n return this.options.map(option => {\n const text = flatText(option);\n return { value: option.getAttribute(\"value\") ?? text, text, disabled: option.hasAttribute(\"disabled\") };\n });\n }\n\n /** The values the select can hold, in order: the placeholder's, then the options'. */\n get _values() {\n return [...(this.placeholder ? [\"\"] : []), ...this._choices.map(c => c.value)];\n }\n\n /* What a reset returns to, and what an unset or unknown value lands on: the\n value attribute, when it names an option; else the first option marked\n `selected`, as on a native select; else the placeholder's, when there is\n one; else the first option that can be chosen -- a native select skips a\n disabled one there, or a form would submit a value nobody could pick --\n and only when every option is disabled, the first. */\n protected _defaultValue() {\n const values = this._values;\n const attribute = this.getAttribute(\"value\");\n if (attribute !== null && values.includes(attribute)) return attribute;\n const choices = this._choices;\n const selected = this.options.findIndex(o => o.hasAttribute(\"selected\"));\n if (selected >= 0) return choices[selected].value;\n if (this.placeholder) return \"\";\n return (choices.find(c => !c.disabled) ?? choices[0])?.value ?? \"\";\n }\n\n /* WHY THIS IS APPROXIMATED RATHER THAN OBSERVED.\n A native select's picker is drawn by the operating system, so there is no\n event for \"opened\" and no state to read. Chrome 152 does support\n `select:open` and a `toggle` event, but only for a CUSTOMIZABLE select\n (appearance: base-select) -- this field is appearance: none, and Safari and\n Firefox have neither, so a CSS-only answer does not ship.\n\n What is left is inference from the interactions that open a picker, plus\n every signal that proves one has CLOSED. Opening is easy; closing is where\n this gets hard, because dismissing a picker without choosing consumes the\n click inside the popup. The page never sees it and the select keeps focus,\n so `blur` does not arrive until the NEXT click somewhere -- which showed up\n as a chevron stuck pointing up. Hence three closing signals, not one:\n\n change a value was chosen\n blur focus left the field\n window focus the picker is a separate native window, so the browser\n window becomes key again when it closes. This is the\n one that catches dismiss-without-choosing.\n pointerdown anywhere outside this element, capture phase\n\n The last two can only ever fire when the picker is already shut, so they\n add no false closes. Escape remains unobservable on macOS, which does not\n deliver that keystroke to the page while the popup holds the keyboard; the\n window-focus signal covers it only if focus actually moved. */\n connectedCallback() {\n super.connectedCallback();\n this._onWindowFocus = () => { if (this._open) this._open = false; };\n this._onDocPointerDown = e => {\n if (this._open && e.composedPath()[0] !== this.shadowRoot?.querySelector(\"select\")) this._open = false;\n };\n window.addEventListener(\"focus\", this._onWindowFocus);\n document.addEventListener(\"pointerdown\", this._onDocPointerDown, true);\n // the options may have changed while it was out of the page, unobserved\n if (this.hasUpdated) this.requestUpdate();\n }\n\n disconnectedCallback() {\n window.removeEventListener(\"focus\", this._onWindowFocus);\n document.removeEventListener(\"pointerdown\", this._onDocPointerDown, true);\n super.disconnectedCallback();\n }\n\n _onSelectMouseDown() {\n /* clicking an open picker closes it, so this toggles rather than sets */\n this._open = !this._open;\n }\n\n _onSelectKeyDown(e: KeyboardEvent) {\n if (e.key === \"Enter\" || e.key === \" \" || (e.altKey && (e.key === \"ArrowDown\" || e.key === \"ArrowUp\"))) {\n this._open = true;\n }\n }\n\n _closePicker() {\n this._open = false;\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"size\") && !isOneOf(SIZES, this.size)) this.size = \"md\";\n /* It starts on its default unless the page chose: a value attribute, or\n a value set from script before the first render. The placeholder's \"\"\n is also the property's own default, so it cannot say which. */\n if (!this.hasUpdated && this.value === \"\" && !this.hasAttribute(\"value\")) this.value = this._defaultValue();\n if (!this._values.includes(this.value)) this.value = this._defaultValue();\n }\n\n /* The select is told its value after its options exist. A binding on the\n <select> would be committed before the options inside it rendered, and\n an option's selected attribute stops counting once a visitor has chosen,\n so neither could move the selection when value is set from outside. */\n updated() {\n const select = this.shadowRoot!.querySelector(\"select\");\n if (select && select.value !== this.value) select.value = this.value;\n this._sync();\n }\n\n /* ONE CHOICE, ONE input AND ONE change.\n A select commits the moment an option is chosen, and the native control\n fires both. input is composed and reaches the page by itself, retargeted\n to this element; the value follows the <select> here first, on the\n <select> itself, so a listener on the page reads the new\n event.target.value. change is not composed, so it is sent again from the\n host (shared/form-control.ts). 3.x sent bd-input and bd-change instead,\n each with a { value, name } detail. */\n _onInput(e: Event & { target: HTMLSelectElement }) {\n this.value = e.target.value;\n this._sync();\n }\n\n _onChange(e: Event & { target: HTMLSelectElement }) {\n this._closePicker();\n this.value = e.target.value;\n this._relayChange();\n }\n\n render() {\n const disabled = this.disabled || this._formDisabled;\n const inputStateClass = disabled\n ? \"form-input--disabled\"\n : this.invalid\n ? \"form-input--error\"\n : this.validated\n ? \"form-input--success\"\n : \"\";\n const tone = this.invalid ? \"error\" : this.validated ? \"success\" : \"default\";\n\n // The hint is the select's description, and the state is announced, not\n // only drawn, as on bd-input.\n return html`\n <div class=\"input-container\">\n ${fieldLabel(this._slots, { size: this.size, required: this.required }, html`<slot name=\"label\"></slot>`)}\n <div class=\"select-wrap\">\n ${keyed(this._resets, html`<select\n id=${CONTROL_ID}\n part=\"select\"\n class=\"form-input-bd input-${this.size} ${inputStateClass} ${this._attempted ? \"form-input--attempted\" : \"\"} ${this.placeholder && this.value === \"\" ? \"form-input--placeholder\" : \"\"}\"\n name=${this.name || nothing}\n ?required=${this.required}\n ?disabled=${disabled}\n aria-label=${this._accessibleName || nothing}\n aria-invalid=${this.invalid ? \"true\" : nothing}\n aria-describedby=${describedBy(this._slots)}\n @mousedown=${this._onSelectMouseDown}\n @keydown=${this._onSelectKeyDown}\n @input=${this._onInput}\n @change=${this._onChange}\n @blur=${this._closePicker}\n >\n ${this.placeholder\n ? html`<option value=\"\" ?selected=${this.value === \"\"}>${this.placeholder}</option>`\n : nothing}\n ${this._choices.map(choice => html`<option\n value=${choice.value}\n ?selected=${choice.value === this.value}\n ?disabled=${choice.disabled}\n >${choice.text}</option>`)}\n </select>`)}\n <bd-icon name=\"arrow-down\"\n size=\"sm\"\n class=\"select-caret ${this._open ? \"select-caret--open\" : \"\"}\"\n ></bd-icon>\n </div>\n ${fieldHint(this._slots, tone, html`<slot name=\"hint\"></slot>`)}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-select\": BdSelect;\n }\n}\n"],"mappings":"A,y2BA2BA,IAAMK,EAAgC,CACpC,UAAiB,GACjB,QAAiB,GACjB,cAAiB,GACjB,WAAiB,GACjB,gBAAiB,CAAC,QAAS,WAAY,UAAU,CACnD,EA6BaC,EAAN,cAAuBC,EAAaC,CAAU,CAAC,AAAC,C,8BAIxC,KAAA,KAAA,KAEF,KAAA,SAAA,GAED,KAAA,QAAA,GAEE,KAAA,UAAA,GAKD,KAAA,SAAA,GAKH,KAAA,MAAA,GAID,KAAA,KAAA,GAMO,KAAA,YAAA,GAOD,KAAA,WAAA,GAKL,KAAA,MAAA,GAKW,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAOC,CAAY,CAAC,EAG7C,KAAA,SAAA,IAAIC,EAAmB,SACpC,IAAI,qBAAuB,KAAK,cAAc,CAAC,EACrD,GAAYC,EAAS,QAAQ,KAAMR,CAAO,CAAC,C,QAnD7B,KAAA,OAAA,CAACF,EAAcH,CAAS,C,CAqDxC,IAAc,UAAqC,CACjD,OAAO,KAAK,YAAY,gBAAgB,QAAQ,CAClD,CAKA,IAAI,iBAAkB,CACpB,OAAOc,EAAU,KAAK,OAAQ,KAAK,WAAY,KAAK,WAAW,MAAM,CACvE,CAGA,IAAI,SAA4B,CAC9B,MAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,OAAQ,GAA6BC,EAAG,YAAc,kBAAkB,CACpG,CAIA,IAAI,UAAqB,CACvB,OAAO,KAAK,QAAQ,IAAI,GAAU,CAChC,IAAMC,EAAOC,EAASC,CAAM,EAC5B,MAAO,CAAE,MAAOA,EAAO,aAAa,OAAO,GAAKF,EAAM,OAAM,SAAUE,EAAO,aAAa,UAAU,CAAE,CACxG,CAAC,CACH,CAGA,IAAI,SAAU,CACZ,MAAO,CAAC,GAAI,KAAK,YAAc,CAAC,EAAE,EAAI,CAAC,EAAI,GAAG,KAAK,SAAS,IAAI,GAAKC,EAAE,KAAK,CAAC,CAC/E,CAQA,eAA0B,CACxB,IAAMC,EAAS,KAAK,QACdC,EAAY,KAAK,aAAa,OAAO,EAC3C,GAAIA,IAAc,MAAQD,EAAO,SAASC,CAAS,EAAG,OAAOA,EAC7D,IAAMC,EAAU,KAAK,SACfC,EAAW,KAAK,QAAQ,UAAU,GAAKC,EAAE,aAAa,UAAU,CAAC,EAGvE,OAFID,GAAY,EAAUD,EAAQC,EAAS,CAAC,MACxC,KAAK,YAAoB,IACrBD,EAAQ,KAAK,GAAK,CAACH,EAAE,QAAQ,GAAKG,EAAQ,GAAA,EAAK,OAAS,EAClE,CA2BA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,mBAAuB,CAAE,AAAgB,KAAK,QAAQ,EAAO,EAClE,KAAK,kBAAoB,GAAK,CACxB,KAAK,OAAS,EAAE,aAAa,CAAC,CAAC,KAAO,KAAK,YAAY,cAAc,QAAQ,IAAG,KAAK,MAAQ,GACnG,EACA,OAAO,iBAAiB,QAAS,KAAK,cAAc,EACpD,SAAS,iBAAiB,cAAe,KAAK,kBAAmB,EAAI,EAEjE,KAAK,YAAY,KAAK,cAAc,CAC1C,CAEA,sBAAuB,CACrB,OAAO,oBAAoB,QAAS,KAAK,cAAc,EACvD,SAAS,oBAAoB,cAAe,KAAK,kBAAmB,EAAI,EACxE,MAAM,qBAAqB,CAC7B,CAEA,oBAAqB,CAEnB,KAAK,MAAQ,CAAC,KAAK,KACrB,CAEA,iBAAiB,EAAkB,EAC7B,EAAE,MAAQ,SAAW,EAAE,MAAQ,KAAQ,EAAE,SAAW,EAAE,MAAQ,aAAe,EAAE,MAAQ,cACzF,KAAK,MAAQ,GAEjB,CAEA,cAAe,CACb,KAAK,MAAQ,EACf,CAEA,WAAW,EAA+B,CACpCG,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQC,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,MAI/D,CAAC,KAAK,YAAc,KAAK,QAAU,IAAM,CAAC,KAAK,aAAa,OAAO,IAAG,KAAK,MAAQ,KAAK,cAAc,GACrG,KAAK,QAAQ,SAAS,KAAK,KAAK,IAAG,KAAK,MAAQ,KAAK,cAAc,EAC1E,CAMA,SAAU,CACR,IAAMC,EAAS,KAAK,WAAY,cAAc,QAAQ,EAClDA,GAAUA,EAAO,QAAU,KAAK,QAAO,EAAO,MAAQ,KAAK,OAC/D,KAAK,MAAM,CACb,CAUA,SAAS,EAA0C,CACjD,KAAK,MAAQ,EAAE,OAAO,MACtB,KAAK,MAAM,CACb,CAEA,UAAU,EAA0C,CAClD,KAAK,aAAa,EAClB,KAAK,MAAQ,EAAE,OAAO,MACtB,KAAK,aAAa,CACpB,CAEA,QAAS,CACP,IAAMC,EAAW,KAAK,UAAY,KAAK,cACjCC,EAAkBD,EACpB,uBACA,KAAK,QACH,oBACA,KAAK,UACH,sBACA,GACFE,EAAO,KAAK,QAAU,QAAU,KAAK,UAAY,UAAY,UAInE,MAAO,EAAI;;UAELC,EAAW,KAAK,OAAQ,CAAE,KAAM,KAAK,KAAM,SAAU,KAAK,QAAS,EAAG,CAAI,4BAA4B,EAAE;;YAEtGC,EAAM,KAAK,QAAS,CAAI;iBACnBC,EAAW;;yCAEa,KAAK,KAAK,GAAGJ,EAAgB,GAAG,KAAK,WAAa,wBAA0B,GAAG,GAAG,KAAK,aAAe,KAAK,QAAU,GAAK,0BAA4B,GAAG;mBAC/K,KAAK,MAAQK,EAAQ;wBAChB,KAAK,SAAS;wBACdN,EAAS;yBACR,KAAK,iBAAmBM,EAAQ;2BAC9B,KAAK,QAAU,OAASA,EAAQ;+BAC5BC,EAAY,KAAK,MAAM,EAAE;yBAC/B,KAAK,mBAAmB;uBAC1B,KAAK,iBAAiB;qBACxB,KAAK,SAAS;sBACb,KAAK,UAAU;oBACjB,KAAK,aAAa;;cAExB,KAAK,YACH,CAAI,8BAA8B,KAAK,QAAU,GAAG,GAAG,KAAK,YAAY,WACxED,EAAQ;cACV,KAAK,SAAS,IAAI,GAAU,CAAI;sBACxBE,EAAO,MAAM;0BACTA,EAAO,QAAU,KAAK,MAAM;0BAC5BA,EAAO,SAAS;eAC3BA,EAAO,KAAK,UAAU,EAAE;oBACnB,EAAE;;;kCAGY,KAAK,MAAQ,qBAAuB,GAAG;;;UAG/DC,EAAU,KAAK,OAAQP,EAAM,CAAI,2BAA2B,EAAE;;KAGtE,CACF,EArPG9B,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAjC,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCL,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAjC,EAAA,UAAA,WAAA,IAAA,EAAA,EAE1BL,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAjC,EAAA,UAAA,UAAA,IAAA,EAAA,EAE1BL,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAjC,EAAA,UAAA,YAAA,IAAA,EAAA,EAK1BL,EAAA,CAAAsC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAjC,EAAA,UAAA,WAAA,IAAA,EAAA,EAKzCL,EAAA,CAAAsC,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAjC,EAAA,UAAA,QAAA,IAAA,EAAA,EAIzBL,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAWC,CAAU,CAAC,CAAA,EAAAlC,EAAA,UAAA,OAAA,IAAA,EAAA,EAM9DL,EAAA,CAAAsC,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAjC,EAAA,UAAA,cAAA,IAAA,EAAA,EAOzBL,EAAA,CAAAsC,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAjC,EAAA,UAAA,aAAA,IAAA,EAAA,EAKlDL,EAAA,CAAAwC,EAAM,CAAA,EAAAnC,EAAA,UAAA,QAAA,IAAA,EAAA,EA1CR,EAAAL,EAAA,CAAAyC,EAAc,WAAW,CAAA,EAAApC,CAAA,E"}
@@ -0,0 +1,53 @@
1
+ import type { CSSResult } from "lit";
2
+ /**
3
+ * Puts a stylesheet into the tree a node sits in: the document, or the shadow
4
+ * root of the component it is rendered inside.
5
+ *
6
+ * connectedCallback() {
7
+ * super.connectedCallback();
8
+ * adoptStyles(this, 'bd-compatibility-table', tableCSS);
9
+ * }
10
+ *
11
+ * WHY. `static styles` reach a component's own shadow root and nothing in the
12
+ * page's light DOM under it. A component whose content is light DOM the page
13
+ * wrote -- bd-compatibility-table's native <table>, slotted whole -- cannot
14
+ * style that content's descendants from inside: ::slotted() reaches the
15
+ * slotted element and stops there, so a <td> is out of reach. Those rules
16
+ * have to be in the tree the content is in, which is the component's root
17
+ * node, and they keep to the component by naming its tag
18
+ * (`:where(bd-compatibility-table) > table td`).
19
+ *
20
+ * ONCE PER ROOT AND PER SHEET. One CSSStyleSheet per name for the whole page,
21
+ * adopted by every root that needs it; a root that has it already is left
22
+ * alone, so a thousand tables in one document add one sheet. It is appended
23
+ * after what the root already adopted -- the page's sheets, another bundle's,
24
+ * a framework's -- and never replaces or reorders them. A root that dropped
25
+ * it (a framework assigning adoptedStyleSheets whole) gets it back the next
26
+ * time a component connects there.
27
+ *
28
+ * PAGE-WIDE STATE. Several projects load their own bundled copy of this
29
+ * package onto one page, and each copy's css`` template is a CSSResult of its
30
+ * own, with a CSSStyleSheet of its own. So the sheets live where every copy
31
+ * finds them, window.BD.state.sheets, the dex-core rule for state that exists
32
+ * once per page: each copy reuses the map it finds there and never replaces
33
+ * one, and a name already in it keeps the sheet that got there first -- the
34
+ * rule the tags (@defineElement) and the icons (icons/registry.ts) follow.
35
+ * Two copies adopting one name therefore adopt one sheet, once.
36
+ *
37
+ * THE SHAPE IS A CONTRACT BETWEEN COPIES. A Map from a name -- the tag the
38
+ * sheet styles -- to the CSSStyleSheet, read by code that may be a different
39
+ * release of this package. Never rename the key or retype the value.
40
+ *
41
+ * The sheet is the CSSResult's own, so a css`` template from a `*.css.ts`
42
+ * module ships minified as every other one does (scripts/lib/vite-build.mjs)
43
+ * and is held to its source by __tests__/minified-styles.test.ts.
44
+ *
45
+ * Constructed stylesheets and adoptedStyleSheets as an array that takes
46
+ * push() are Baseline Widely available (Chrome 99, Firefox 101, Safari 16.4).
47
+ * A node that is not in a document -- detached, in a fragment -- or is in a
48
+ * document other than the one the sheet was made for (an iframe's), which
49
+ * cannot adopt it, is left alone: there is nothing on screen to style.
50
+ *
51
+ * Returns the sheet adopted or found, or undefined when nothing was adopted.
52
+ */
53
+ export declare function adoptStyles(node: Node, name: string, styles: CSSResult): CSSStyleSheet | undefined;
@@ -0,0 +1,2 @@
1
+ function e(e,t,n){let i=e.getRootNode();if(!(i instanceof Document||i instanceof ShadowRoot)||(i instanceof Document?i:i.ownerDocument)!==globalThis.document)return;let a=r(t,n);if(a)return i.adoptedStyleSheets.includes(a)||i.adoptedStyleSheets.push(a),a}var t=/* @__PURE__ */ new Map;function n(){let e=globalThis,n=e.BD??={},r=n.state??={},i=r.sheets;if(i instanceof Map)return i;if(i===void 0){let e=/* @__PURE__ */ new Map;return r.sheets=e,e}return t}function r(e,t){let r=n(),i=r.get(e);if(i instanceof CSSStyleSheet)return i;let a=t.styleSheet;return a&&r.set(e,a),a}export{e as adoptStyles};
2
+ //# sourceMappingURL=adopt-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adopt-styles.js","names":["adoptStyles","root","node","sheet","sheetFor","name","styles","own","sheets","page","BD","state","found","made","map"],"sources":["../../../../src/components/shared/adopt-styles.ts"],"sourcesContent":["import type { CSSResult } from 'lit';\n\n/**\n * Puts a stylesheet into the tree a node sits in: the document, or the shadow\n * root of the component it is rendered inside.\n *\n * connectedCallback() {\n * super.connectedCallback();\n * adoptStyles(this, 'bd-compatibility-table', tableCSS);\n * }\n *\n * WHY. `static styles` reach a component's own shadow root and nothing in the\n * page's light DOM under it. A component whose content is light DOM the page\n * wrote -- bd-compatibility-table's native <table>, slotted whole -- cannot\n * style that content's descendants from inside: ::slotted() reaches the\n * slotted element and stops there, so a <td> is out of reach. Those rules\n * have to be in the tree the content is in, which is the component's root\n * node, and they keep to the component by naming its tag\n * (`:where(bd-compatibility-table) > table td`).\n *\n * ONCE PER ROOT AND PER SHEET. One CSSStyleSheet per name for the whole page,\n * adopted by every root that needs it; a root that has it already is left\n * alone, so a thousand tables in one document add one sheet. It is appended\n * after what the root already adopted -- the page's sheets, another bundle's,\n * a framework's -- and never replaces or reorders them. A root that dropped\n * it (a framework assigning adoptedStyleSheets whole) gets it back the next\n * time a component connects there.\n *\n * PAGE-WIDE STATE. Several projects load their own bundled copy of this\n * package onto one page, and each copy's css`` template is a CSSResult of its\n * own, with a CSSStyleSheet of its own. So the sheets live where every copy\n * finds them, window.BD.state.sheets, the dex-core rule for state that exists\n * once per page: each copy reuses the map it finds there and never replaces\n * one, and a name already in it keeps the sheet that got there first -- the\n * rule the tags (@defineElement) and the icons (icons/registry.ts) follow.\n * Two copies adopting one name therefore adopt one sheet, once.\n *\n * THE SHAPE IS A CONTRACT BETWEEN COPIES. A Map from a name -- the tag the\n * sheet styles -- to the CSSStyleSheet, read by code that may be a different\n * release of this package. Never rename the key or retype the value.\n *\n * The sheet is the CSSResult's own, so a css`` template from a `*.css.ts`\n * module ships minified as every other one does (scripts/lib/vite-build.mjs)\n * and is held to its source by __tests__/minified-styles.test.ts.\n *\n * Constructed stylesheets and adoptedStyleSheets as an array that takes\n * push() are Baseline Widely available (Chrome 99, Firefox 101, Safari 16.4).\n * A node that is not in a document -- detached, in a fragment -- or is in a\n * document other than the one the sheet was made for (an iframe's), which\n * cannot adopt it, is left alone: there is nothing on screen to style.\n *\n * Returns the sheet adopted or found, or undefined when nothing was adopted.\n */\nexport function adoptStyles(node: Node, name: string, styles: CSSResult): CSSStyleSheet | undefined {\n const root = node.getRootNode();\n if (!(root instanceof Document || root instanceof ShadowRoot)) return undefined;\n const owner = root instanceof Document ? root : root.ownerDocument;\n if (owner !== globalThis.document) return undefined;\n\n const sheet = sheetFor(name, styles);\n if (!sheet) return undefined;\n if (!root.adoptedStyleSheets.includes(sheet)) root.adoptedStyleSheets.push(sheet);\n return sheet;\n}\n\ninterface PageState { BD?: { state?: Record<string, unknown> } }\n\n/* A value under the name that is not a Map belongs to something else, and is\n left alone: this copy keeps its sheets to itself rather than replace it. */\nconst own = new Map<string, CSSStyleSheet>();\n\n/** The page's map of sheets, made only when no copy has made it. */\nfunction sheets(): Map<string, CSSStyleSheet> {\n const page = globalThis as typeof globalThis & PageState;\n const BD = (page.BD ??= {});\n const state = (BD.state ??= {});\n const found = state.sheets;\n if (found instanceof Map) return found as Map<string, CSSStyleSheet>;\n if (found === undefined) {\n const made = new Map<string, CSSStyleSheet>();\n state.sheets = made;\n return made;\n }\n return own;\n}\n\n/* The page's sheet under the name, or this copy's, registered if it is the\n first. Lit makes a CSSResult's sheet on first read and keeps it. */\nfunction sheetFor(name: string, styles: CSSResult) {\n const map = sheets();\n const found = map.get(name);\n if (found instanceof CSSStyleSheet) return found;\n const made = styles.styleSheet;\n if (made) map.set(name, made);\n return made;\n}\n"],"mappings":"AAqDA,SAAgBA,EAAY,EAAY,EAAc,EAA8C,CAClG,IAAMC,EAAOC,EAAK,YAAY,EAG9B,GAFI,EAAED,aAAgB,UAAYA,aAAgB,cACpCA,aAAgB,SAAWA,EAAOA,EAAK,iBACvC,WAAW,SAAU,OAEnC,IAAME,EAAQC,EAASC,EAAMC,CAAM,EACnC,GAAKH,EAEL,OADKF,EAAK,mBAAmB,SAASE,CAAK,GAAGF,EAAK,mBAAmB,KAAKE,CAAK,EACzEA,CACT,CAMA,IAAMI,kBAAM,IAAI,IAGhB,SAASC,GAAqC,CAC5C,IAAMC,EAAO,WACPC,EAAM,EAAK,KAAO,CAAC,EACnBC,EAAS,EAAG,QAAU,CAAC,EACvBC,EAAQD,EAAM,OACpB,GAAIC,aAAiB,IAAK,OAAOA,EACjC,GAAIA,IAAU,IAAA,GAAW,CACvB,IAAMC,kBAAO,IAAI,IAEjB,MADA,GAAM,OAASA,EACRA,CACT,CACA,OAAON,CACT,CAIA,SAASH,EAAS,EAAc,EAAmB,CACjD,IAAMU,EAAMN,EAAO,EACbI,EAAQE,EAAI,IAAIT,CAAI,EAC1B,GAAIO,aAAiB,cAAe,OAAOA,EAC3C,IAAMC,EAAOP,EAAO,WAEpB,OADIO,GAAMC,EAAI,IAAIT,EAAMQ,CAAI,EACrBA,CACT,C"}