@repobit/dex-system-design 3.0.0 → 3.0.2

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 (656) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
  3. package/dist/src/components/accordion/accordion-bg.css.js +1 -288
  4. package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
  5. package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
  6. package/dist/src/components/accordion/accordion-bg.js +15 -210
  7. package/dist/src/components/accordion/accordion-bg.js.map +1 -1
  8. package/dist/src/components/accordion/accordion-keyboard.js +1 -89
  9. package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
  10. package/dist/src/components/accordion/accordion-panel.js +1 -22
  11. package/dist/src/components/accordion/accordion-panel.js.map +1 -1
  12. package/dist/src/components/accordion/accordion.css.js +1 -380
  13. package/dist/src/components/accordion/accordion.css.js.map +1 -1
  14. package/dist/src/components/accordion/accordion.d.ts +7 -7
  15. package/dist/src/components/accordion/accordion.js +16 -138
  16. package/dist/src/components/accordion/accordion.js.map +1 -1
  17. package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
  18. package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
  19. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
  20. package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
  21. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  22. package/dist/src/components/alert/alert.css.js +1 -217
  23. package/dist/src/components/alert/alert.css.js.map +1 -1
  24. package/dist/src/components/alert/alert.d.ts +4 -4
  25. package/dist/src/components/alert/alert.js +6 -110
  26. package/dist/src/components/alert/alert.js.map +1 -1
  27. package/dist/src/components/anchor/anchor-nav.css.js +1 -546
  28. package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
  29. package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
  30. package/dist/src/components/anchor/anchor-nav.js +23 -567
  31. package/dist/src/components/anchor/anchor-nav.js.map +1 -1
  32. package/dist/src/components/annotation/annotation.css.js +1 -64
  33. package/dist/src/components/annotation/annotation.css.js.map +1 -1
  34. package/dist/src/components/annotation/annotation.d.ts +2 -2
  35. package/dist/src/components/annotation/annotation.js +7 -72
  36. package/dist/src/components/annotation/annotation.js.map +1 -1
  37. package/dist/src/components/audience-card/audience-card.css.js +1 -122
  38. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  39. package/dist/src/components/audience-card/audience-card.d.ts +2 -2
  40. package/dist/src/components/audience-card/audience-card.js +8 -83
  41. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  42. package/dist/src/components/avatar/avatar.css.js +1 -65
  43. package/dist/src/components/avatar/avatar.css.js.map +1 -1
  44. package/dist/src/components/avatar/avatar.d.ts +3 -3
  45. package/dist/src/components/avatar/avatar.js +6 -76
  46. package/dist/src/components/avatar/avatar.js.map +1 -1
  47. package/dist/src/components/awards/awards-flex.css.js +1 -273
  48. package/dist/src/components/awards/awards-flex.css.js.map +1 -1
  49. package/dist/src/components/awards/awards-flex.d.ts +12 -12
  50. package/dist/src/components/awards/awards-flex.js +33 -264
  51. package/dist/src/components/awards/awards-flex.js.map +1 -1
  52. package/dist/src/components/awards/awards-spotlight.css.js +1 -161
  53. package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
  54. package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
  55. package/dist/src/components/awards/awards-spotlight.js +24 -140
  56. package/dist/src/components/awards/awards-spotlight.js.map +1 -1
  57. package/dist/src/components/awards/awards.css.js +1 -401
  58. package/dist/src/components/awards/awards.css.js.map +1 -1
  59. package/dist/src/components/awards/awards.d.ts +13 -13
  60. package/dist/src/components/awards/awards.js +26 -179
  61. package/dist/src/components/awards/awards.js.map +1 -1
  62. package/dist/src/components/awards/scroll-slides.js +1 -131
  63. package/dist/src/components/awards/scroll-slides.js.map +1 -1
  64. package/dist/src/components/back/back.css.js +1 -91
  65. package/dist/src/components/back/back.css.js.map +1 -1
  66. package/dist/src/components/back/back.d.ts +1 -1
  67. package/dist/src/components/back/back.js +8 -71
  68. package/dist/src/components/back/back.js.map +1 -1
  69. package/dist/src/components/badge/badge.css.js +1 -204
  70. package/dist/src/components/badge/badge.css.js.map +1 -1
  71. package/dist/src/components/badge/badge.d.ts +4 -4
  72. package/dist/src/components/badge/badge.js +2 -117
  73. package/dist/src/components/badge/badge.js.map +1 -1
  74. package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
  75. package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
  76. package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
  77. package/dist/src/components/bento-grid/bento-grid.js +10 -189
  78. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  79. package/dist/src/components/bento-grid/bento-item.css.js +1 -338
  80. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  81. package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
  82. package/dist/src/components/bento-grid/bento-item.js +10 -94
  83. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  84. package/dist/src/components/blockquote/blockquote.css.js +1 -54
  85. package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
  86. package/dist/src/components/blockquote/blockquote.d.ts +2 -2
  87. package/dist/src/components/blockquote/blockquote.js +1 -44
  88. package/dist/src/components/blockquote/blockquote.js.map +1 -1
  89. package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
  90. package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
  91. package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
  92. package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
  93. package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
  94. package/dist/src/components/button/button.css.js +1 -843
  95. package/dist/src/components/button/button.css.js.map +1 -1
  96. package/dist/src/components/button/button.d.ts +5 -5
  97. package/dist/src/components/button/button.js +18 -420
  98. package/dist/src/components/button/button.js.map +1 -1
  99. package/dist/src/components/caption/caption.css.js +1 -29
  100. package/dist/src/components/caption/caption.css.js.map +1 -1
  101. package/dist/src/components/caption/caption.d.ts +3 -3
  102. package/dist/src/components/caption/caption.js +2 -36
  103. package/dist/src/components/caption/caption.js.map +1 -1
  104. package/dist/src/components/card-features/card-features.css.js +1 -120
  105. package/dist/src/components/card-features/card-features.css.js.map +1 -1
  106. package/dist/src/components/card-features/card-features.d.ts +3 -3
  107. package/dist/src/components/card-features/card-features.js +12 -145
  108. package/dist/src/components/card-features/card-features.js.map +1 -1
  109. package/dist/src/components/cards/card.css.js +1 -369
  110. package/dist/src/components/cards/card.css.js.map +1 -1
  111. package/dist/src/components/cards/card.d.ts +3 -3
  112. package/dist/src/components/cards/card.js +21 -312
  113. package/dist/src/components/cards/card.js.map +1 -1
  114. package/dist/src/components/carousel/carousel.css.js +1 -261
  115. package/dist/src/components/carousel/carousel.css.js.map +1 -1
  116. package/dist/src/components/carousel/carousel.d.ts +5 -5
  117. package/dist/src/components/carousel/carousel.js +13 -297
  118. package/dist/src/components/carousel/carousel.js.map +1 -1
  119. package/dist/src/components/checkbox/checkbox.css.js +1 -173
  120. package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
  121. package/dist/src/components/checkbox/checkbox.d.ts +2 -2
  122. package/dist/src/components/checkbox/checkbox.js +5 -138
  123. package/dist/src/components/checkbox/checkbox.js.map +1 -1
  124. package/dist/src/components/code/code.css.js +1 -73
  125. package/dist/src/components/code/code.css.js.map +1 -1
  126. package/dist/src/components/code/code.d.ts +2 -2
  127. package/dist/src/components/code/code.js +4 -87
  128. package/dist/src/components/code/code.js.map +1 -1
  129. package/dist/src/components/compare/compare.css.js +1 -478
  130. package/dist/src/components/compare/compare.css.js.map +1 -1
  131. package/dist/src/components/compare/compare.d.ts +5 -5
  132. package/dist/src/components/compare/compare.js +23 -476
  133. package/dist/src/components/compare/compare.js.map +1 -1
  134. package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
  135. package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
  136. package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
  137. package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
  138. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  139. package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
  140. package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
  141. package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
  142. package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
  143. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  144. package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
  145. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  146. package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
  147. package/dist/src/components/cta-banner/cta-banner.js +8 -51
  148. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  149. package/dist/src/components/display/display.css.js +1 -95
  150. package/dist/src/components/display/display.css.js.map +1 -1
  151. package/dist/src/components/display/display.d.ts +2 -2
  152. package/dist/src/components/display/display.js +3 -84
  153. package/dist/src/components/display/display.js.map +1 -1
  154. package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
  155. package/dist/src/components/divider/divider-horizontal.js +4 -63
  156. package/dist/src/components/divider/divider-horizontal.js.map +1 -1
  157. package/dist/src/components/divider/divider-vertical.d.ts +2 -2
  158. package/dist/src/components/divider/divider-vertical.js +6 -61
  159. package/dist/src/components/divider/divider-vertical.js.map +1 -1
  160. package/dist/src/components/divider/divider.css.js +1 -20
  161. package/dist/src/components/divider/divider.css.js.map +1 -1
  162. package/dist/src/components/dropdown/dropdown.css.js +1 -121
  163. package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
  164. package/dist/src/components/dropdown/dropdown.d.ts +5 -5
  165. package/dist/src/components/dropdown/dropdown.js +17 -283
  166. package/dist/src/components/dropdown/dropdown.js.map +1 -1
  167. package/dist/src/components/features/features.css.js +1 -123
  168. package/dist/src/components/features/features.css.js.map +1 -1
  169. package/dist/src/components/features/features.d.ts +5 -5
  170. package/dist/src/components/features/features.js +11 -71
  171. package/dist/src/components/features/features.js.map +1 -1
  172. package/dist/src/components/features-tab/features-tab.css.js +1 -100
  173. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  174. package/dist/src/components/features-tab/features-tab.d.ts +5 -5
  175. package/dist/src/components/features-tab/features-tab.js +9 -70
  176. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  177. package/dist/src/components/fieldset/fieldset.css.js +1 -28
  178. package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
  179. package/dist/src/components/fieldset/fieldset.d.ts +2 -2
  180. package/dist/src/components/fieldset/fieldset.js +3 -31
  181. package/dist/src/components/fieldset/fieldset.js.map +1 -1
  182. package/dist/src/components/footer/footer-images.js +5 -27
  183. package/dist/src/components/footer/footer-images.js.map +1 -1
  184. package/dist/src/components/footer/footer-links-group.css.js +1 -33
  185. package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
  186. package/dist/src/components/footer/footer-links-group.d.ts +3 -3
  187. package/dist/src/components/footer/footer-links-group.js +3 -32
  188. package/dist/src/components/footer/footer-links-group.js.map +1 -1
  189. package/dist/src/components/footer/footer-locale.js +1 -45
  190. package/dist/src/components/footer/footer-locale.js.map +1 -1
  191. package/dist/src/components/footer/footer-lp.d.ts +7 -7
  192. package/dist/src/components/footer/footer-lp.js +8 -121
  193. package/dist/src/components/footer/footer-lp.js.map +1 -1
  194. package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
  195. package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
  196. package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
  197. package/dist/src/components/footer/footer-nav-menu.js +3 -47
  198. package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
  199. package/dist/src/components/footer/footer.css.js +1 -664
  200. package/dist/src/components/footer/footer.css.js.map +1 -1
  201. package/dist/src/components/footer/footer.d.ts +13 -13
  202. package/dist/src/components/footer/footer.js +20 -305
  203. package/dist/src/components/footer/footer.js.map +1 -1
  204. package/dist/src/components/footer/localeMap.js +1 -1
  205. package/dist/src/components/footer/localeMap.js.map +1 -1
  206. package/dist/src/components/grid/grid.css.js +1 -78
  207. package/dist/src/components/grid/grid.css.js.map +1 -1
  208. package/dist/src/components/grid/grid.d.ts +2 -2
  209. package/dist/src/components/grid/grid.js +9 -126
  210. package/dist/src/components/grid/grid.js.map +1 -1
  211. package/dist/src/components/header/header-code.css.js +1 -369
  212. package/dist/src/components/header/header-code.css.js.map +1 -1
  213. package/dist/src/components/header/header-code.d.ts +4 -4
  214. package/dist/src/components/header/header-code.js +15 -163
  215. package/dist/src/components/header/header-code.js.map +1 -1
  216. package/dist/src/components/header/header.css.js +1 -757
  217. package/dist/src/components/header/header.css.js.map +1 -1
  218. package/dist/src/components/header/header.d.ts +7 -7
  219. package/dist/src/components/header/header.js +4 -212
  220. package/dist/src/components/header/header.js.map +1 -1
  221. package/dist/src/components/heading/heading.css.js +1 -89
  222. package/dist/src/components/heading/heading.css.js.map +1 -1
  223. package/dist/src/components/heading/heading.d.ts +2 -2
  224. package/dist/src/components/heading/heading.js +1 -108
  225. package/dist/src/components/heading/heading.js.map +1 -1
  226. package/dist/src/components/help-text/help-text.css.js +1 -19
  227. package/dist/src/components/help-text/help-text.css.js.map +1 -1
  228. package/dist/src/components/help-text/help-text.d.ts +2 -2
  229. package/dist/src/components/help-text/help-text.js +3 -31
  230. package/dist/src/components/help-text/help-text.js.map +1 -1
  231. package/dist/src/components/hero/hero.css.js +1 -362
  232. package/dist/src/components/hero/hero.css.js.map +1 -1
  233. package/dist/src/components/hero/hero.d.ts +3 -3
  234. package/dist/src/components/hero/hero.js +12 -164
  235. package/dist/src/components/hero/hero.js.map +1 -1
  236. package/dist/src/components/highlight/highlight.css.js +1 -175
  237. package/dist/src/components/highlight/highlight.css.js.map +1 -1
  238. package/dist/src/components/highlight/highlight.d.ts +3 -3
  239. package/dist/src/components/highlight/highlight.js +4 -115
  240. package/dist/src/components/highlight/highlight.js.map +1 -1
  241. package/dist/src/components/icons/analysis-icon.d.ts +1 -1
  242. package/dist/src/components/icons/analysis-icon.js +2 -20
  243. package/dist/src/components/icons/analysis-icon.js.map +1 -1
  244. package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
  245. package/dist/src/components/icons/arrow-down-icon.js +2 -20
  246. package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
  247. package/dist/src/components/icons/arrow-icon.d.ts +1 -1
  248. package/dist/src/components/icons/arrow-icon.js +2 -48
  249. package/dist/src/components/icons/arrow-icon.js.map +1 -1
  250. package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
  251. package/dist/src/components/icons/arrow-right-icon.js +2 -45
  252. package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
  253. package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
  254. package/dist/src/components/icons/arrow-up-icon.js +2 -33
  255. package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
  256. package/dist/src/components/icons/av-comparatives-icon.js +2 -31
  257. package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
  258. package/dist/src/components/icons/bd-ai-icon.js +2 -31
  259. package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
  260. package/dist/src/components/icons/best-brands-icon.js +2 -31
  261. package/dist/src/components/icons/best-brands-icon.js.map +1 -1
  262. package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
  263. package/dist/src/components/icons/brand-signature-icon.js +2 -46
  264. package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
  265. package/dist/src/components/icons/check-icon.d.ts +1 -1
  266. package/dist/src/components/icons/check-icon.js +2 -31
  267. package/dist/src/components/icons/check-icon.js.map +1 -1
  268. package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
  269. package/dist/src/components/icons/circle-info-icon.js +2 -35
  270. package/dist/src/components/icons/circle-info-icon.js.map +1 -1
  271. package/dist/src/components/icons/close-icon.d.ts +1 -1
  272. package/dist/src/components/icons/close-icon.js +2 -20
  273. package/dist/src/components/icons/close-icon.js.map +1 -1
  274. package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
  275. package/dist/src/components/icons/enterprise-icon.js +2 -22
  276. package/dist/src/components/icons/enterprise-icon.js.map +1 -1
  277. package/dist/src/components/icons/family-icon.d.ts +1 -1
  278. package/dist/src/components/icons/family-icon.js +2 -20
  279. package/dist/src/components/icons/family-icon.js.map +1 -1
  280. package/dist/src/components/icons/globe-icon.d.ts +1 -1
  281. package/dist/src/components/icons/globe-icon.js +2 -20
  282. package/dist/src/components/icons/globe-icon.js.map +1 -1
  283. package/dist/src/components/icons/guide-icon.d.ts +1 -1
  284. package/dist/src/components/icons/guide-icon.js +2 -20
  285. package/dist/src/components/icons/guide-icon.js.map +1 -1
  286. package/dist/src/components/icons/home-icon.d.ts +1 -1
  287. package/dist/src/components/icons/home-icon.js +2 -22
  288. package/dist/src/components/icons/home-icon.js.map +1 -1
  289. package/dist/src/components/icons/icon-element.js +1 -162
  290. package/dist/src/components/icons/icon-element.js.map +1 -1
  291. package/dist/src/components/icons/icons.d.ts +23 -23
  292. package/dist/src/components/icons/icons.js +1 -42
  293. package/dist/src/components/icons/individual-icon.d.ts +1 -1
  294. package/dist/src/components/icons/individual-icon.js +2 -20
  295. package/dist/src/components/icons/individual-icon.js.map +1 -1
  296. package/dist/src/components/icons/laurel-icon.d.ts +1 -1
  297. package/dist/src/components/icons/laurel-icon.js +2 -24
  298. package/dist/src/components/icons/laurel-icon.js.map +1 -1
  299. package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
  300. package/dist/src/components/icons/machine-learning-icon.js +2 -20
  301. package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
  302. package/dist/src/components/icons/marks.d.ts +9 -9
  303. package/dist/src/components/icons/marks.js +1 -41
  304. package/dist/src/components/icons/minus-icon.d.ts +1 -1
  305. package/dist/src/components/icons/minus-icon.js +2 -19
  306. package/dist/src/components/icons/minus-icon.js.map +1 -1
  307. package/dist/src/components/icons/missing-icon.d.ts +1 -1
  308. package/dist/src/components/icons/missing-icon.js +3 -53
  309. package/dist/src/components/icons/missing-icon.js.map +1 -1
  310. package/dist/src/components/icons/pause-icon.d.ts +1 -1
  311. package/dist/src/components/icons/pause-icon.js +2 -22
  312. package/dist/src/components/icons/pause-icon.js.map +1 -1
  313. package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
  314. package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
  315. package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
  316. package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
  317. package/dist/src/components/icons/pc-mag-icon.js +2 -31
  318. package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
  319. package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
  320. package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
  321. package/dist/src/components/icons/play-icon.d.ts +1 -1
  322. package/dist/src/components/icons/play-icon.js +2 -22
  323. package/dist/src/components/icons/play-icon.js.map +1 -1
  324. package/dist/src/components/icons/plus-icon.d.ts +1 -1
  325. package/dist/src/components/icons/plus-icon.js +2 -19
  326. package/dist/src/components/icons/plus-icon.js.map +1 -1
  327. package/dist/src/components/icons/quote-icon.d.ts +1 -1
  328. package/dist/src/components/icons/quote-icon.js +2 -30
  329. package/dist/src/components/icons/quote-icon.js.map +1 -1
  330. package/dist/src/components/icons/small-business-icon.d.ts +1 -1
  331. package/dist/src/components/icons/small-business-icon.js +2 -22
  332. package/dist/src/components/icons/small-business-icon.js.map +1 -1
  333. package/dist/src/components/icons/top-product-icon.js +2 -31
  334. package/dist/src/components/icons/top-product-icon.js.map +1 -1
  335. package/dist/src/components/image/image.css.js +1 -106
  336. package/dist/src/components/image/image.css.js.map +1 -1
  337. package/dist/src/components/image/image.d.ts +2 -2
  338. package/dist/src/components/image/image.js +10 -115
  339. package/dist/src/components/image/image.js.map +1 -1
  340. package/dist/src/components/input/input-clipboard.css.js +1 -93
  341. package/dist/src/components/input/input-clipboard.css.js.map +1 -1
  342. package/dist/src/components/input/input-clipboard.d.ts +5 -5
  343. package/dist/src/components/input/input-clipboard.js +20 -257
  344. package/dist/src/components/input/input-clipboard.js.map +1 -1
  345. package/dist/src/components/input/input.css.js +1 -9
  346. package/dist/src/components/input/input.css.js.map +1 -1
  347. package/dist/src/components/input/input.d.ts +4 -4
  348. package/dist/src/components/input/input.js +19 -202
  349. package/dist/src/components/input/input.js.map +1 -1
  350. package/dist/src/components/install-options/install-options.css.js +1 -308
  351. package/dist/src/components/install-options/install-options.css.js.map +1 -1
  352. package/dist/src/components/install-options/install-options.d.ts +4 -4
  353. package/dist/src/components/install-options/install-options.js +28 -159
  354. package/dist/src/components/install-options/install-options.js.map +1 -1
  355. package/dist/src/components/label/label.css.js +1 -33
  356. package/dist/src/components/label/label.css.js.map +1 -1
  357. package/dist/src/components/label/label.d.ts +3 -3
  358. package/dist/src/components/label/label.js +3 -135
  359. package/dist/src/components/label/label.js.map +1 -1
  360. package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
  361. package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
  362. package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
  363. package/dist/src/components/light-carousel/light-carousel.js +16 -181
  364. package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
  365. package/dist/src/components/link/link.css.js +1 -288
  366. package/dist/src/components/link/link.css.js.map +1 -1
  367. package/dist/src/components/link/link.d.ts +3 -3
  368. package/dist/src/components/link/link.js +6 -233
  369. package/dist/src/components/link/link.js.map +1 -1
  370. package/dist/src/components/list/list-item/list-item.css.js +1 -167
  371. package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
  372. package/dist/src/components/list/list-item/list-item.d.ts +3 -3
  373. package/dist/src/components/list/list-item/list-item.js +3 -122
  374. package/dist/src/components/list/list-item/list-item.js.map +1 -1
  375. package/dist/src/components/list/list.css.js +1 -180
  376. package/dist/src/components/list/list.css.js.map +1 -1
  377. package/dist/src/components/list/list.d.ts +1 -1
  378. package/dist/src/components/list/list.js +5 -82
  379. package/dist/src/components/list/list.js.map +1 -1
  380. package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
  381. package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
  382. package/dist/src/components/logo-marquee/logo-marquee.d.ts +4 -3
  383. package/dist/src/components/logo-marquee/logo-marquee.js +6 -136
  384. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  385. package/dist/src/components/modal/modal.css.js +1 -203
  386. package/dist/src/components/modal/modal.css.js.map +1 -1
  387. package/dist/src/components/modal/modal.d.ts +3 -3
  388. package/dist/src/components/modal/modal.js +3 -131
  389. package/dist/src/components/modal/modal.js.map +1 -1
  390. package/dist/src/components/motion-art/motion-art.d.ts +1 -1
  391. package/dist/src/components/motion-art/motion-art.js +1 -114
  392. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  393. package/dist/src/components/overview/overview.css.js +1 -125
  394. package/dist/src/components/overview/overview.css.js.map +1 -1
  395. package/dist/src/components/overview/overview.d.ts +2 -2
  396. package/dist/src/components/overview/overview.js +9 -50
  397. package/dist/src/components/overview/overview.js.map +1 -1
  398. package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
  399. package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
  400. package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
  401. package/dist/src/components/page-switcher/page-switcher.js +6 -62
  402. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  403. package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
  404. package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
  405. package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
  406. package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
  407. package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
  408. package/dist/src/components/paragraph/paragraph.css.js +1 -101
  409. package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
  410. package/dist/src/components/paragraph/paragraph.d.ts +2 -2
  411. package/dist/src/components/paragraph/paragraph.js +3 -119
  412. package/dist/src/components/paragraph/paragraph.js.map +1 -1
  413. package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
  414. package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
  415. package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
  416. package/dist/src/components/partner-banner/partner-banner.js +6 -81
  417. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  418. package/dist/src/components/picture/picture.css.js +1 -208
  419. package/dist/src/components/picture/picture.css.js.map +1 -1
  420. package/dist/src/components/picture/picture.d.ts +2 -2
  421. package/dist/src/components/picture/picture.js +14 -186
  422. package/dist/src/components/picture/picture.js.map +1 -1
  423. package/dist/src/components/post-card/post-card.css.js +1 -149
  424. package/dist/src/components/post-card/post-card.css.js.map +1 -1
  425. package/dist/src/components/post-card/post-card.d.ts +2 -2
  426. package/dist/src/components/post-card/post-card.js +5 -97
  427. package/dist/src/components/post-card/post-card.js.map +1 -1
  428. package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
  429. package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
  430. package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
  431. package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
  432. package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
  433. package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
  434. package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
  435. package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
  436. package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
  437. package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
  438. package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
  439. package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
  440. package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
  441. package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
  442. package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
  443. package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
  444. package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
  445. package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
  446. package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
  447. package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
  448. package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
  449. package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
  450. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
  451. package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
  452. package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
  453. package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
  454. package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
  455. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
  456. package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
  457. package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
  458. package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
  459. package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
  460. package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
  461. package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
  462. package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
  463. package/dist/src/components/pricing-cards/pricing-card.js +53 -639
  464. package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
  465. package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
  466. package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
  467. package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
  468. package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
  469. package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
  470. package/dist/src/components/process-steps/process-steps.css.js +1 -106
  471. package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
  472. package/dist/src/components/process-steps/process-steps.d.ts +5 -5
  473. package/dist/src/components/process-steps/process-steps.js +10 -78
  474. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  475. package/dist/src/components/progress/progress.css.js +1 -123
  476. package/dist/src/components/progress/progress.css.js.map +1 -1
  477. package/dist/src/components/progress/progress.d.ts +2 -2
  478. package/dist/src/components/progress/progress.js +6 -72
  479. package/dist/src/components/progress/progress.js.map +1 -1
  480. package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
  481. package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
  482. package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
  483. package/dist/src/components/quick-answer/quick-answer.js +9 -49
  484. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  485. package/dist/src/components/radio/radio-group.css.js +1 -41
  486. package/dist/src/components/radio/radio-group.css.js.map +1 -1
  487. package/dist/src/components/radio/radio-group.d.ts +1 -1
  488. package/dist/src/components/radio/radio-group.js +5 -92
  489. package/dist/src/components/radio/radio-group.js.map +1 -1
  490. package/dist/src/components/radio/radio.css.js +1 -193
  491. package/dist/src/components/radio/radio.css.js.map +1 -1
  492. package/dist/src/components/radio/radio.d.ts +4 -4
  493. package/dist/src/components/radio/radio.js +6 -263
  494. package/dist/src/components/radio/radio.js.map +1 -1
  495. package/dist/src/components/radio/toggle-radio.d.ts +2 -2
  496. package/dist/src/components/radio/toggle-radio.js +3 -39
  497. package/dist/src/components/radio/toggle-radio.js.map +1 -1
  498. package/dist/src/components/review/review-grid.css.js +1 -46
  499. package/dist/src/components/review/review-grid.css.js.map +1 -1
  500. package/dist/src/components/review/review-grid.d.ts +2 -2
  501. package/dist/src/components/review/review-grid.js +4 -49
  502. package/dist/src/components/review/review-grid.js.map +1 -1
  503. package/dist/src/components/review/review.css.js +1 -54
  504. package/dist/src/components/review/review.css.js.map +1 -1
  505. package/dist/src/components/review/review.d.ts +2 -2
  506. package/dist/src/components/review/review.js +2 -59
  507. package/dist/src/components/review/review.js.map +1 -1
  508. package/dist/src/components/section/section.css.js +1 -37
  509. package/dist/src/components/section/section.css.js.map +1 -1
  510. package/dist/src/components/section/section.d.ts +1 -1
  511. package/dist/src/components/section/section.js +1 -50
  512. package/dist/src/components/section/section.js.map +1 -1
  513. package/dist/src/components/section-header/section-header.css.js +1 -99
  514. package/dist/src/components/section-header/section-header.css.js.map +1 -1
  515. package/dist/src/components/section-header/section-header.d.ts +2 -2
  516. package/dist/src/components/section-header/section-header.js +4 -85
  517. package/dist/src/components/section-header/section-header.js.map +1 -1
  518. package/dist/src/components/shared/announcer.d.ts +1 -1
  519. package/dist/src/components/shared/announcer.js +1 -34
  520. package/dist/src/components/shared/announcer.js.map +1 -1
  521. package/dist/src/components/shared/controller.media-query.d.ts +1 -1
  522. package/dist/src/components/shared/controller.media-query.js +1 -57
  523. package/dist/src/components/shared/controller.media-query.js.map +1 -1
  524. package/dist/src/components/shared/define-element.js +1 -16
  525. package/dist/src/components/shared/define-element.js.map +1 -1
  526. package/dist/src/components/shared/ensemble.css.js +1 -101
  527. package/dist/src/components/shared/ensemble.css.js.map +1 -1
  528. package/dist/src/components/shared/events.js +0 -13
  529. package/dist/src/components/shared/fill-width.css.js +2 -27
  530. package/dist/src/components/shared/fill-width.css.js.map +1 -1
  531. package/dist/src/components/shared/form-control.d.ts +1 -1
  532. package/dist/src/components/shared/form-control.js +1 -198
  533. package/dist/src/components/shared/form-control.js.map +1 -1
  534. package/dist/src/components/shared/form-field.css.js +1 -258
  535. package/dist/src/components/shared/form-field.css.js.map +1 -1
  536. package/dist/src/components/shared/prop-vocabulary.js +1 -49
  537. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  538. package/dist/src/components/shared/token-scales.js +1 -351
  539. package/dist/src/components/shared/token-scales.js.map +1 -1
  540. package/dist/src/components/skeleton/skeleton.css.js +1 -32
  541. package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
  542. package/dist/src/components/skeleton/skeleton.d.ts +2 -2
  543. package/dist/src/components/skeleton/skeleton.js +4 -36
  544. package/dist/src/components/skeleton/skeleton.js.map +1 -1
  545. package/dist/src/components/spinner/spinner.css.js +1 -87
  546. package/dist/src/components/spinner/spinner.css.js.map +1 -1
  547. package/dist/src/components/spinner/spinner.d.ts +3 -3
  548. package/dist/src/components/spinner/spinner.js +3 -69
  549. package/dist/src/components/spinner/spinner.js.map +1 -1
  550. package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
  551. package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
  552. package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
  553. package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
  554. package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
  555. package/dist/src/components/stat/stat-highlight.js +6 -82
  556. package/dist/src/components/stat/stat-highlight.js.map +1 -1
  557. package/dist/src/components/stat/stat-tile.js +5 -52
  558. package/dist/src/components/stat/stat-tile.js.map +1 -1
  559. package/dist/src/components/stat/stat.css.js +1 -145
  560. package/dist/src/components/stat/stat.css.js.map +1 -1
  561. package/dist/src/components/stat/stat.d.ts +2 -2
  562. package/dist/src/components/stat/stat.js +1 -3
  563. package/dist/src/components/switch/switch.css.js +1 -175
  564. package/dist/src/components/switch/switch.css.js.map +1 -1
  565. package/dist/src/components/switch/switch.d.ts +4 -4
  566. package/dist/src/components/switch/switch.js +4 -99
  567. package/dist/src/components/switch/switch.js.map +1 -1
  568. package/dist/src/components/tab-list/tab-list.css.js +1 -289
  569. package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
  570. package/dist/src/components/tab-list/tab-list.d.ts +1 -1
  571. package/dist/src/components/tab-list/tab-list.js +13 -191
  572. package/dist/src/components/tab-list/tab-list.js.map +1 -1
  573. package/dist/src/components/tabs/tabs.css.js +1 -77
  574. package/dist/src/components/tabs/tabs.css.js.map +1 -1
  575. package/dist/src/components/tabs/tabs.d.ts +6 -6
  576. package/dist/src/components/tabs/tabs.js +8 -220
  577. package/dist/src/components/tabs/tabs.js.map +1 -1
  578. package/dist/src/components/tag/tag.css.js +1 -52
  579. package/dist/src/components/tag/tag.css.js.map +1 -1
  580. package/dist/src/components/tag/tag.d.ts +2 -2
  581. package/dist/src/components/tag/tag.js +2 -37
  582. package/dist/src/components/tag/tag.js.map +1 -1
  583. package/dist/src/components/terminal/terminal-cursor.js +1 -65
  584. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  585. package/dist/src/components/terminal/terminal-message.css.js +1 -409
  586. package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
  587. package/dist/src/components/terminal/terminal-message.d.ts +5 -5
  588. package/dist/src/components/terminal/terminal-message.js +28 -183
  589. package/dist/src/components/terminal/terminal-message.js.map +1 -1
  590. package/dist/src/components/termsOfUse/terms.css.js +1 -55
  591. package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
  592. package/dist/src/components/termsOfUse/terms.d.ts +5 -5
  593. package/dist/src/components/termsOfUse/terms.js +9 -82
  594. package/dist/src/components/termsOfUse/terms.js.map +1 -1
  595. package/dist/src/components/textarea/textarea.css.js +1 -49
  596. package/dist/src/components/textarea/textarea.css.js.map +1 -1
  597. package/dist/src/components/textarea/textarea.d.ts +5 -5
  598. package/dist/src/components/textarea/textarea.js +15 -160
  599. package/dist/src/components/textarea/textarea.js.map +1 -1
  600. package/dist/src/components/tooltip/tooltip.css.js +1 -96
  601. package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
  602. package/dist/src/components/tooltip/tooltip.d.ts +2 -2
  603. package/dist/src/components/tooltip/tooltip.js +5 -285
  604. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  605. package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
  606. package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
  607. package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
  608. package/dist/src/components/trust-panel/trust-panel.js +25 -104
  609. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  610. package/dist/src/components/video/video.css.js +1 -20
  611. package/dist/src/components/video/video.css.js.map +1 -1
  612. package/dist/src/components/video/video.d.ts +2 -2
  613. package/dist/src/components/video/video.js +5 -88
  614. package/dist/src/components/video/video.js.map +1 -1
  615. package/dist/src/components/video-player/video-player.css.js +1 -167
  616. package/dist/src/components/video-player/video-player.css.js.map +1 -1
  617. package/dist/src/components/video-player/video-player.d.ts +2 -2
  618. package/dist/src/components/video-player/video-player.js +15 -150
  619. package/dist/src/components/video-player/video-player.js.map +1 -1
  620. package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
  621. package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
  622. package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
  623. package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
  624. package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
  625. package/dist/src/tokens/brand-layer.js +8 -162
  626. package/dist/src/tokens/brand-layer.js.map +1 -1
  627. package/dist/src/tokens/dark-derivation.js +1 -325
  628. package/dist/src/tokens/dark-derivation.js.map +1 -1
  629. package/dist/src/tokens/dark-findings.d.ts +1 -1
  630. package/dist/src/tokens/dark-findings.js +1 -204
  631. package/dist/src/tokens/dark-findings.js.map +1 -1
  632. package/dist/src/tokens/fonts.css +1 -166
  633. package/dist/src/tokens/layout.css +1 -61
  634. package/dist/src/tokens/story-chrome.js +27 -221
  635. package/dist/src/tokens/story-chrome.js.map +1 -1
  636. package/dist/src/tokens/themes/bitdefender.js +1 -30
  637. package/dist/src/tokens/themes/bitdefender.js.map +1 -1
  638. package/dist/src/tokens/themes/contract.js +1 -7
  639. package/dist/src/tokens/themes/contract.js.map +1 -1
  640. package/dist/src/tokens/themes/index.js +1 -39
  641. package/dist/src/tokens/themes/index.js.map +1 -1
  642. package/dist/src/tokens/token-map.js +1 -236
  643. package/dist/src/tokens/token-map.js.map +1 -1
  644. package/dist/src/tokens/token-purposes.js +1 -259
  645. package/dist/src/tokens/token-purposes.js.map +1 -1
  646. package/dist/src/tokens/tokens.css +1 -1809
  647. package/dist/src/tokens/tokens.js +1 -1865
  648. package/dist/src/tokens/tokens.js.map +1 -1
  649. package/dist/src/tokens/type-ceiling-words.js +1 -293
  650. package/dist/src/tokens/type-ceiling-words.js.map +1 -1
  651. package/package.json +14 -3
  652. package/schemas/component-manifest.json +1 -1
  653. package/dist/src/components/icons/icons.js.map +0 -1
  654. package/dist/src/components/icons/marks.js.map +0 -1
  655. package/dist/src/components/shared/events.js.map +0 -1
  656. package/dist/src/components/stat/stat.js.map +0 -1
@@ -1,238 +1,11 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, html, nothing } from "lit";
8
- import { property } from "lit/decorators.js";
9
- import { defineElement } from "../shared/define-element.js";
10
- import { isOneOf } from "../shared/prop-vocabulary.js";
11
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
12
- import "../../tokens/tokens.js";
13
- import linkCSS from "./link.css.js";
14
- // the trailing mark when arrow is set; an atom, the same one bd-button uses
15
- import "../icons/arrow-icon.js";
16
- import { fontSize, color } from "../shared/token-scales.js";
17
- /**
18
- * The anchor -- or, when disabled, the span -- is exposed as `part="link"`.
19
- *
20
- * It is the element that carries the ink, the padding and the focus ring, and
21
- * until now nothing outside this shadow root could reach it. That is not a
22
- * theoretical gap: bd-breadcrumb's mobile layout put a full-width padded pill
23
- * on the bd-link HOST, and the anchor inside stayed the width of its own text,
24
- * so a 343x40 row offered a 43x24 target -- 7.5% of what it looked like. A
25
- * part is the seam for the cases where the box a consumer needs to style and
26
- * the box the browser makes focusable have to be the same box.
27
- *
28
- * It is a seam, not a licence to restyle the atom: reach for a variant first.
29
- */
30
- /**
31
- * kind values that described something else, mapped onto what they meant so
32
- * existing markup keeps working. `light` said "on a dark surface", which is
33
- * what the surface attribute says now.
34
- */
35
- const LEGACY_KINDS = { light: "primary" };
36
- const VARIANTS = ["primary", "secondary", "subtle", "bold", "danger"];
37
- let BdLink = class BdLink extends LitElement {
38
- constructor() {
39
- super(...arguments);
40
- /* No destination unless one is given. This was "#", so a bd-link written
41
- without an href was still a real link -- focusable, announced as a
42
- link, and on activation a jump to the top of the page. Now it renders
43
- an <a> with no href, which is not a link at all, and the missing
44
- destination shows instead of hiding. */
45
- this.href = "";
46
- this.target = "_self";
47
- this.variant = "primary";
48
- /** @deprecated pass `variant`. */
49
- this.kind = "";
50
- this.underline = false;
51
- this.noUnderline = false;
52
- this.disabled = false;
53
- this.fontSize = "";
54
- /* The link is a run of text in a sentence and takes its type from that
55
- sentence. Off by default: 62 of the 66 bd-link usages in this package
56
- rely on the standalone role's 1rem, so inheriting cannot be the default
57
- without repositioning all of them. */
58
- this.inline = false;
59
- this.color = "";
60
- /* The link is the current one in its set: page, step, location, date,
61
- time, or true -- the aria-current token, which lands on the <a>.
62
- aria-current written on this element never reached the <a> in its
63
- shadow root, which is where a screen reader looks: bd-anchor-nav and
64
- bd-page-switcher both wrote it there and announced nothing. It
65
- reflects, so the element that holds the link can style its own box --
66
- an indicator, say -- from the same state. */
67
- this.current = "";
68
- /** @deprecated pass `current`. It drew the current state without
69
- announcing it; it now means current="true". */
70
- this.active = false;
71
- /* The surface the link sits on, the same attribute bd-button uses. It
72
- replaces kind="light", which described the surface rather than the link
73
- and so could not be combined with any of the real kinds. */
74
- this.surface = "light";
75
- /* A trailing arrow after the label: "Read more ->" on the homepage's post
76
- cards and the four solution-splitter links. Drawn in the foundation
77
- Figma file as Link arrow and Link arrow / dark; until now three
78
- components hand-rolled it, each with a 12px chevron where the design
79
- has the 16px shafted arrow. A modifier like underline rather than a
80
- sixth variant, because every variant, state and surface takes it. */
81
- this.arrow = false;
82
- /* Extra text a screen reader reads after the link's name, through
83
- aria-describedby on the inner <a>, as on bd-button: the <a> is in this
84
- shadow root, so a description from outside never reaches it. bd-tooltip
85
- sets it on a bd-link trigger; a page can set it directly. */
86
- this.description = "";
87
- }
88
- willUpdate(changed) {
89
- if (!changed.has("kind") && !changed.has("variant"))
90
- return;
91
- if (changed.has("kind") && this.kind)
92
- this.variant = this.kind;
93
- // light meant "this link is on a dark surface", which the surface
94
- // attribute says now
95
- if (this.variant === "light")
96
- this.surface = "dark";
97
- if (LEGACY_KINDS[this.variant])
98
- this.variant = LEGACY_KINDS[this.variant];
99
- if (!isOneOf(VARIANTS, this.variant))
100
- this.variant = "primary";
101
- }
102
- static { this.styles = [linkCSS]; }
103
- get _classes() {
104
- return [
105
- "bd-link",
106
- `bd-link--${this.variant}`,
107
- this.underline ? "bd-link--underline" : "",
108
- this.noUnderline ? "bd-link--no-underline" : "",
109
- this.disabled ? "bd-link--disabled" : "",
110
- this.arrow ? "bd-link--arrow" : ""
111
- ].filter(Boolean).join(" ");
112
- }
113
- /**
114
- * The arrow is decorative: the label already says where the link goes, so
115
- * the icon is hidden rather than named. It sits in a named slot so a page
116
- * can swap the glyph, the way the Figma set swaps its icon property, and it
117
- * is drawn in currentColor, so it takes the link's ink in every variant,
118
- * state and surface without a rule of its own.
119
- */
120
- get _arrow() {
121
- return this.arrow
122
- ? html `<slot name="icon"><bd-arrow-icon size="sm" aria-hidden="true"></bd-arrow-icon></slot>`
123
- : nothing;
124
- }
125
- /**
126
- * font-size is a type-scale step and color is a semantic role; both are
127
- * resolved to token references by shared/token-scales.ts, and anything off
128
- * the scale is dropped.
129
- *
130
- * `color` is emitted as --bd-link-color rather than as `color`, and that is
131
- * the whole of the fix. A style attribute beats every rule in this
132
- * stylesheet, so a link with a colour prop had NO hover, NO active and NO
133
- * disabled appearance -- the resting ink won in all four states. Measured on
134
- * bd-anchor-nav, which passes color="strong": rest, hover and mouse-down all
135
- * reported neutral-900 at weight 400, so the links were inert under the
136
- * pointer. Four sites pass the prop today and all four were affected.
137
- *
138
- * As a custom property it is the *resting* colour instead: the kind rules
139
- * below read it through a var() fallback, and the :hover, --active and
140
- * --disabled rules keep plain `color` declarations, so they win the way they
141
- * were always meant to.
142
- *
143
- * font-size is not emitted at all when inline is set, because the two ask
144
- * contradictory questions: inline means the sentence decides the size. It is
145
- * dropped here rather than left to lose a specificity argument in the
146
- * stylesheet -- this is a style attribute, so it would beat
147
- * :host([inline]) and pull the link back out of the line box that mode
148
- * exists to keep it in.
149
- */
150
- get _inlineStyle() {
151
- return [
152
- ["font-size", this.inline ? "" : fontSize(this.fontSize)],
153
- ["--bd-link-color", color(this.color)]
154
- ].filter(([, v]) => v).map(([prop, v]) => `${prop}: ${v}`)
155
- .join("; ");
156
- }
157
- /** The aria-current token, which is also what the current look keys on. */
158
- get _current() {
159
- return this.current || (this.active ? "true" : "");
160
- }
161
- /* No whitespace anywhere in these templates: not between the tags and the
162
- slot, and not around the element either. The default flex row never
163
- rendered it, but inline drops the row, and there each newline became a
164
- real space inside the host -- measured at 3.5-4.5px past the text on
165
- every inline link, so a link before a comma read "countries ,". */
166
- render() {
167
- if (this.disabled) {
168
- return html `<span part="link" class="${this._classes}" style="${this._inlineStyle}"><slot></slot>${this._arrow}</span>`;
169
- }
170
- return html `<a
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{color as t,fontSize as n}from"../shared/token-scales.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{isOneOf as i}from"../shared/prop-vocabulary.js";import"../icons/arrow-icon.js";import a from"./link.css.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l}from"lit/decorators.js";var u={light:`primary`},d=[`primary`,`secondary`,`subtle`,`bold`,`danger`],f=class extends o{constructor(...e){super(...e),this.href=``,this.target=`_self`,this.variant=`primary`,this.kind=``,this.underline=!1,this.noUnderline=!1,this.disabled=!1,this.fontSize=``,this.inline=!1,this.color=``,this.current=``,this.active=!1,this.surface=`light`,this.arrow=!1,this.description=``}willUpdate(e){(e.has(`kind`)||e.has(`variant`))&&(e.has(`kind`)&&this.kind&&(this.variant=this.kind),this.variant===`light`&&(this.surface=`dark`),u[this.variant]&&(this.variant=u[this.variant]),i(d,this.variant)||(this.variant=`primary`))}static{this.styles=[a]}get _classes(){return[`bd-link`,`bd-link--${this.variant}`,this.underline?`bd-link--underline`:``,this.noUnderline?`bd-link--no-underline`:``,this.disabled?`bd-link--disabled`:``,this.arrow?`bd-link--arrow`:``].filter(Boolean).join(` `)}get _arrow(){return this.arrow?s`<slot name="icon"><bd-arrow-icon size="sm" aria-hidden="true"></bd-arrow-icon></slot>`:c}get _inlineStyle(){return[[`font-size`,this.inline?``:n(this.fontSize)],[`--bd-link-color`,t(this.color)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t}`).join(`; `)}get _current(){return this.current||(this.active?`true`:``)}render(){return this.disabled?s`<span part="link" class="${this._classes}" style="${this._inlineStyle}"><slot></slot>${this._arrow}</span>`:s`<a
171
2
  part="link"
172
3
  class="${this._classes}"
173
4
  style="${this._inlineStyle}"
174
- href="${this.href || nothing}"
175
- target="${this.href ? this.target : nothing}"
176
- aria-current="${this._current || nothing}"
177
- aria-describedby="${this.description ? "description" : nothing}"
5
+ href="${this.href||c}"
6
+ target="${this.href?this.target:c}"
7
+ aria-current="${this._current||c}"
8
+ aria-describedby="${this.description?`description`:c}"
178
9
  @click="${this._handleClick}"
179
- ><slot></slot>${this._arrow}</a>${this.description
180
- ? html `<span id="description" hidden>${this.description}</span>`
181
- : nothing}`;
182
- }
183
- _handleClick(e) {
184
- if (this.disabled) {
185
- e.preventDefault();
186
- e.stopImmediatePropagation();
187
- }
188
- }
189
- };
190
- __decorate([
191
- property({ type: String })
192
- ], BdLink.prototype, "href", void 0);
193
- __decorate([
194
- property({ type: String })
195
- ], BdLink.prototype, "target", void 0);
196
- __decorate([
197
- property({ type: String, reflect: true })
198
- ], BdLink.prototype, "variant", void 0);
199
- __decorate([
200
- property({ type: String })
201
- ], BdLink.prototype, "kind", void 0);
202
- __decorate([
203
- property({ type: Boolean, reflect: true })
204
- ], BdLink.prototype, "underline", void 0);
205
- __decorate([
206
- property({ type: Boolean, attribute: "no-underline" })
207
- ], BdLink.prototype, "noUnderline", void 0);
208
- __decorate([
209
- property({ type: Boolean, reflect: true })
210
- ], BdLink.prototype, "disabled", void 0);
211
- __decorate([
212
- property({ type: String, attribute: "font-size" })
213
- ], BdLink.prototype, "fontSize", void 0);
214
- __decorate([
215
- property({ type: Boolean, reflect: true })
216
- ], BdLink.prototype, "inline", void 0);
217
- __decorate([
218
- property({ type: String })
219
- ], BdLink.prototype, "color", void 0);
220
- __decorate([
221
- property({ type: String, reflect: true, converter: { toAttribute: value => value || null } })
222
- ], BdLink.prototype, "current", void 0);
223
- __decorate([
224
- property({ type: Boolean, reflect: true })
225
- ], BdLink.prototype, "active", void 0);
226
- __decorate([
227
- property({ type: String, reflect: true })
228
- ], BdLink.prototype, "surface", void 0);
229
- __decorate([
230
- property({ type: Boolean, reflect: true })
231
- ], BdLink.prototype, "arrow", void 0);
232
- __decorate([
233
- property({ type: String })
234
- ], BdLink.prototype, "description", void 0);
235
- BdLink = __decorate([
236
- defineElement("bd-link")
237
- ], BdLink);
10
+ ><slot></slot>${this._arrow}</a>${this.description?s`<span id="description" hidden>${this.description}</span>`:c}`}_handleClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}};r([l({type:String})],f.prototype,`href`,void 0),r([l({type:String})],f.prototype,`target`,void 0),r([l({type:String,reflect:!0})],f.prototype,`variant`,void 0),r([l({type:String})],f.prototype,`kind`,void 0),r([l({type:Boolean,reflect:!0})],f.prototype,`underline`,void 0),r([l({type:Boolean,attribute:`no-underline`})],f.prototype,`noUnderline`,void 0),r([l({type:Boolean,reflect:!0})],f.prototype,`disabled`,void 0),r([l({type:String,attribute:`font-size`})],f.prototype,`fontSize`,void 0),r([l({type:Boolean,reflect:!0})],f.prototype,`inline`,void 0),r([l({type:String})],f.prototype,`color`,void 0),r([l({type:String,reflect:!0,converter:{toAttribute:e=>e||null}})],f.prototype,`current`,void 0),r([l({type:Boolean,reflect:!0})],f.prototype,`active`,void 0),r([l({type:String,reflect:!0})],f.prototype,`surface`,void 0),r([l({type:Boolean,reflect:!0})],f.prototype,`arrow`,void 0),r([l({type:String})],f.prototype,`description`,void 0),f=r([e(`bd-link`)],f);
238
11
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../../../src/components/link/link.ts"],"names":[],"mappings":"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","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport { isOneOf } from \"../shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport linkCSS from \"./link.css.ts\";\n// the trailing mark when arrow is set; an atom, the same one bd-button uses\nimport \"../icons/arrow-icon.ts\";\nimport { fontSize, color, type FontSizeStep, type ColorRole } from \"../shared/token-scales.ts\";\n\n/**\n * The anchor -- or, when disabled, the span -- is exposed as `part=\"link\"`.\n *\n * It is the element that carries the ink, the padding and the focus ring, and\n * until now nothing outside this shadow root could reach it. That is not a\n * theoretical gap: bd-breadcrumb's mobile layout put a full-width padded pill\n * on the bd-link HOST, and the anchor inside stayed the width of its own text,\n * so a 343x40 row offered a 43x24 target -- 7.5% of what it looked like. A\n * part is the seam for the cases where the box a consumer needs to style and\n * the box the browser makes focusable have to be the same box.\n *\n * It is a seam, not a licence to restyle the atom: reach for a variant first.\n */\n\n/**\n * kind values that described something else, mapped onto what they meant so\n * existing markup keeps working. `light` said \"on a dark surface\", which is\n * what the surface attribute says now.\n */\nconst LEGACY_KINDS: Record<string, Variant> = { light: \"primary\" };\nconst VARIANTS = [\"primary\", \"secondary\", \"subtle\", \"bold\", \"danger\"] as const;\n\ntype Variant = typeof VARIANTS[number];\ntype Surface = \"light\" | \"dark\" | \"brand\";\ntype Current = \"page\" | \"step\" | \"location\" | \"date\" | \"time\" | \"true\";\n\n@defineElement(\"bd-link\")\nclass BdLink extends LitElement {\n /* No destination unless one is given. This was \"#\", so a bd-link written\n without an href was still a real link -- focusable, announced as a\n link, and on activation a jump to the top of the page. Now it renders\n an <a> with no href, which is not a link at all, and the missing\n destination shows instead of hiding. */\n @property({ type: String })\n href = \"\";\n @property({ type: String })\n target = \"_self\";\n @property({ type: String, reflect: true })\n variant: Variant | \"light\" = \"primary\";\n /** @deprecated pass `variant`. */\n @property({ type: String })\n kind: Variant | \"light\" | \"\" = \"\";\n @property({ type: Boolean, reflect: true })\n underline = false;\n @property({ type: Boolean, attribute: \"no-underline\" })\n noUnderline = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: String, attribute: \"font-size\" })\n fontSize: FontSizeStep | \"\" = \"\";\n /* The link is a run of text in a sentence and takes its type from that\n sentence. Off by default: 62 of the 66 bd-link usages in this package\n rely on the standalone role's 1rem, so inheriting cannot be the default\n without repositioning all of them. */\n @property({ type: Boolean, reflect: true })\n inline = false;\n @property({ type: String })\n color: ColorRole | \"\" = \"\";\n /* The link is the current one in its set: page, step, location, date,\n time, or true -- the aria-current token, which lands on the <a>.\n aria-current written on this element never reached the <a> in its\n shadow root, which is where a screen reader looks: bd-anchor-nav and\n bd-page-switcher both wrote it there and announced nothing. It\n reflects, so the element that holds the link can style its own box --\n an indicator, say -- from the same state. */\n @property({ type: String, reflect: true, converter: { toAttribute: value => value || null } })\n current: Current | \"\" = \"\";\n /** @deprecated pass `current`. It drew the current state without\n announcing it; it now means current=\"true\". */\n @property({ type: Boolean, reflect: true })\n active = false;\n /* The surface the link sits on, the same attribute bd-button uses. It\n replaces kind=\"light\", which described the surface rather than the link\n and so could not be combined with any of the real kinds. */\n @property({ type: String, reflect: true })\n surface: Surface = \"light\";\n /* A trailing arrow after the label: \"Read more ->\" on the homepage's post\n cards and the four solution-splitter links. Drawn in the foundation\n Figma file as Link arrow and Link arrow / dark; until now three\n components hand-rolled it, each with a 12px chevron where the design\n has the 16px shafted arrow. A modifier like underline rather than a\n sixth variant, because every variant, state and surface takes it. */\n @property({ type: Boolean, reflect: true })\n arrow = false;\n /* Extra text a screen reader reads after the link's name, through\n aria-describedby on the inner <a>, as on bd-button: the <a> is in this\n shadow root, so a description from outside never reaches it. bd-tooltip\n sets it on a bd-link trigger; a page can set it directly. */\n @property({ type: String })\n description = \"\";\n\n willUpdate(changed: PropertyValues<this>) {\n if (!changed.has(\"kind\") && !changed.has(\"variant\")) return;\n if (changed.has(\"kind\") && this.kind) this.variant = this.kind;\n // light meant \"this link is on a dark surface\", which the surface\n // attribute says now\n if (this.variant === \"light\") this.surface = \"dark\";\n if (LEGACY_KINDS[this.variant]) this.variant = LEGACY_KINDS[this.variant];\n if (!isOneOf(VARIANTS, this.variant)) this.variant = \"primary\";\n }\n\n static styles = [linkCSS];\n\n get _classes() {\n return [\n \"bd-link\",\n `bd-link--${this.variant}`,\n this.underline ? \"bd-link--underline\" : \"\",\n this.noUnderline ? \"bd-link--no-underline\" : \"\",\n this.disabled ? \"bd-link--disabled\" : \"\",\n this.arrow ? \"bd-link--arrow\" : \"\"\n ].filter(Boolean).join(\" \");\n }\n\n /**\n * The arrow is decorative: the label already says where the link goes, so\n * the icon is hidden rather than named. It sits in a named slot so a page\n * can swap the glyph, the way the Figma set swaps its icon property, and it\n * is drawn in currentColor, so it takes the link's ink in every variant,\n * state and surface without a rule of its own.\n */\n get _arrow() {\n return this.arrow\n ? html`<slot name=\"icon\"><bd-arrow-icon size=\"sm\" aria-hidden=\"true\"></bd-arrow-icon></slot>`\n : nothing;\n }\n\n /**\n * font-size is a type-scale step and color is a semantic role; both are\n * resolved to token references by shared/token-scales.ts, and anything off\n * the scale is dropped.\n *\n * `color` is emitted as --bd-link-color rather than as `color`, and that is\n * the whole of the fix. A style attribute beats every rule in this\n * stylesheet, so a link with a colour prop had NO hover, NO active and NO\n * disabled appearance -- the resting ink won in all four states. Measured on\n * bd-anchor-nav, which passes color=\"strong\": rest, hover and mouse-down all\n * reported neutral-900 at weight 400, so the links were inert under the\n * pointer. Four sites pass the prop today and all four were affected.\n *\n * As a custom property it is the *resting* colour instead: the kind rules\n * below read it through a var() fallback, and the :hover, --active and\n * --disabled rules keep plain `color` declarations, so they win the way they\n * were always meant to.\n *\n * font-size is not emitted at all when inline is set, because the two ask\n * contradictory questions: inline means the sentence decides the size. It is\n * dropped here rather than left to lose a specificity argument in the\n * stylesheet -- this is a style attribute, so it would beat\n * :host([inline]) and pull the link back out of the line box that mode\n * exists to keep it in.\n */\n get _inlineStyle() {\n return [\n [\"font-size\", this.inline ? \"\" : fontSize(this.fontSize)],\n [\"--bd-link-color\", color(this.color)]\n ].filter(([, v]) => v).map(([prop, v]) => `${prop}: ${v}`)\n .join(\"; \");\n }\n\n /** The aria-current token, which is also what the current look keys on. */\n get _current() {\n return this.current || (this.active ? \"true\" : \"\");\n }\n\n /* No whitespace anywhere in these templates: not between the tags and the\n slot, and not around the element either. The default flex row never\n rendered it, but inline drops the row, and there each newline became a\n real space inside the host -- measured at 3.5-4.5px past the text on\n every inline link, so a link before a comma read \"countries ,\". */\n render() {\n if (this.disabled) {\n return html`<span part=\"link\" class=\"${this._classes}\" style=\"${this._inlineStyle}\"><slot></slot>${this._arrow}</span>`;\n }\n\n return html`<a\n part=\"link\"\n class=\"${this._classes}\"\n style=\"${this._inlineStyle}\"\n href=\"${this.href || nothing}\"\n target=\"${this.href ? this.target : nothing}\"\n aria-current=\"${this._current || nothing}\"\n aria-describedby=\"${this.description ? \"description\" : nothing}\"\n @click=\"${this._handleClick}\"\n ><slot></slot>${this._arrow}</a>${this.description\n ? html`<span id=\"description\" hidden>${this.description}</span>`\n : nothing}`;\n }\n\n _handleClick(e: Event) {\n if (this.disabled) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-link\": BdLink;\n }\n}"]}
1
+ {"version":3,"file":"link.js","names":["linkCSS","_decorate","__decorate","link_css_default","LEGACY_KINDS","VARIANTS","BdLink","LitElement","_args","changed","isOneOf","nothing","fontSize","color","v","prop","property","value","defineElement"],"sources":["../../../../src/components/link/link.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport linkCSS from \"./link.css.ts\";\n// the trailing mark when arrow is set; an atom, the same one bd-button uses\nimport \"#components/icons/arrow-icon.ts\";\nimport { fontSize, color, type FontSizeStep, type ColorRole } from \"#shared/token-scales.ts\";\n\n/**\n * The anchor -- or, when disabled, the span -- is exposed as `part=\"link\"`.\n *\n * It is the element that carries the ink, the padding and the focus ring, and\n * until now nothing outside this shadow root could reach it. That is not a\n * theoretical gap: bd-breadcrumb's mobile layout put a full-width padded pill\n * on the bd-link HOST, and the anchor inside stayed the width of its own text,\n * so a 343x40 row offered a 43x24 target -- 7.5% of what it looked like. A\n * part is the seam for the cases where the box a consumer needs to style and\n * the box the browser makes focusable have to be the same box.\n *\n * It is a seam, not a licence to restyle the atom: reach for a variant first.\n */\n\n/**\n * kind values that described something else, mapped onto what they meant so\n * existing markup keeps working. `light` said \"on a dark surface\", which is\n * what the surface attribute says now.\n */\nconst LEGACY_KINDS: Record<string, Variant> = { light: \"primary\" };\nconst VARIANTS = [\"primary\", \"secondary\", \"subtle\", \"bold\", \"danger\"] as const;\n\ntype Variant = typeof VARIANTS[number];\ntype Surface = \"light\" | \"dark\" | \"brand\";\ntype Current = \"page\" | \"step\" | \"location\" | \"date\" | \"time\" | \"true\";\n\n@defineElement(\"bd-link\")\nclass BdLink extends LitElement {\n /* No destination unless one is given. This was \"#\", so a bd-link written\n without an href was still a real link -- focusable, announced as a\n link, and on activation a jump to the top of the page. Now it renders\n an <a> with no href, which is not a link at all, and the missing\n destination shows instead of hiding. */\n @property({ type: String })\n href = \"\";\n @property({ type: String })\n target = \"_self\";\n @property({ type: String, reflect: true })\n variant: Variant | \"light\" = \"primary\";\n /** @deprecated pass `variant`. */\n @property({ type: String })\n kind: Variant | \"light\" | \"\" = \"\";\n @property({ type: Boolean, reflect: true })\n underline = false;\n @property({ type: Boolean, attribute: \"no-underline\" })\n noUnderline = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n @property({ type: String, attribute: \"font-size\" })\n fontSize: FontSizeStep | \"\" = \"\";\n /* The link is a run of text in a sentence and takes its type from that\n sentence. Off by default: 62 of the 66 bd-link usages in this package\n rely on the standalone role's 1rem, so inheriting cannot be the default\n without repositioning all of them. */\n @property({ type: Boolean, reflect: true })\n inline = false;\n @property({ type: String })\n color: ColorRole | \"\" = \"\";\n /* The link is the current one in its set: page, step, location, date,\n time, or true -- the aria-current token, which lands on the <a>.\n aria-current written on this element never reached the <a> in its\n shadow root, which is where a screen reader looks: bd-anchor-nav and\n bd-page-switcher both wrote it there and announced nothing. It\n reflects, so the element that holds the link can style its own box --\n an indicator, say -- from the same state. */\n @property({ type: String, reflect: true, converter: { toAttribute: value => value || null } })\n current: Current | \"\" = \"\";\n /** @deprecated pass `current`. It drew the current state without\n announcing it; it now means current=\"true\". */\n @property({ type: Boolean, reflect: true })\n active = false;\n /* The surface the link sits on, the same attribute bd-button uses. It\n replaces kind=\"light\", which described the surface rather than the link\n and so could not be combined with any of the real kinds. */\n @property({ type: String, reflect: true })\n surface: Surface = \"light\";\n /* A trailing arrow after the label: \"Read more ->\" on the homepage's post\n cards and the four solution-splitter links. Drawn in the foundation\n Figma file as Link arrow and Link arrow / dark; until now three\n components hand-rolled it, each with a 12px chevron where the design\n has the 16px shafted arrow. A modifier like underline rather than a\n sixth variant, because every variant, state and surface takes it. */\n @property({ type: Boolean, reflect: true })\n arrow = false;\n /* Extra text a screen reader reads after the link's name, through\n aria-describedby on the inner <a>, as on bd-button: the <a> is in this\n shadow root, so a description from outside never reaches it. bd-tooltip\n sets it on a bd-link trigger; a page can set it directly. */\n @property({ type: String })\n description = \"\";\n\n willUpdate(changed: PropertyValues<this>) {\n if (!changed.has(\"kind\") && !changed.has(\"variant\")) return;\n if (changed.has(\"kind\") && this.kind) this.variant = this.kind;\n // light meant \"this link is on a dark surface\", which the surface\n // attribute says now\n if (this.variant === \"light\") this.surface = \"dark\";\n if (LEGACY_KINDS[this.variant]) this.variant = LEGACY_KINDS[this.variant];\n if (!isOneOf(VARIANTS, this.variant)) this.variant = \"primary\";\n }\n\n static styles = [linkCSS];\n\n get _classes() {\n return [\n \"bd-link\",\n `bd-link--${this.variant}`,\n this.underline ? \"bd-link--underline\" : \"\",\n this.noUnderline ? \"bd-link--no-underline\" : \"\",\n this.disabled ? \"bd-link--disabled\" : \"\",\n this.arrow ? \"bd-link--arrow\" : \"\"\n ].filter(Boolean).join(\" \");\n }\n\n /**\n * The arrow is decorative: the label already says where the link goes, so\n * the icon is hidden rather than named. It sits in a named slot so a page\n * can swap the glyph, the way the Figma set swaps its icon property, and it\n * is drawn in currentColor, so it takes the link's ink in every variant,\n * state and surface without a rule of its own.\n */\n get _arrow() {\n return this.arrow\n ? html`<slot name=\"icon\"><bd-arrow-icon size=\"sm\" aria-hidden=\"true\"></bd-arrow-icon></slot>`\n : nothing;\n }\n\n /**\n * font-size is a type-scale step and color is a semantic role; both are\n * resolved to token references by shared/token-scales.ts, and anything off\n * the scale is dropped.\n *\n * `color` is emitted as --bd-link-color rather than as `color`, and that is\n * the whole of the fix. A style attribute beats every rule in this\n * stylesheet, so a link with a colour prop had NO hover, NO active and NO\n * disabled appearance -- the resting ink won in all four states. Measured on\n * bd-anchor-nav, which passes color=\"strong\": rest, hover and mouse-down all\n * reported neutral-900 at weight 400, so the links were inert under the\n * pointer. Four sites pass the prop today and all four were affected.\n *\n * As a custom property it is the *resting* colour instead: the kind rules\n * below read it through a var() fallback, and the :hover, --active and\n * --disabled rules keep plain `color` declarations, so they win the way they\n * were always meant to.\n *\n * font-size is not emitted at all when inline is set, because the two ask\n * contradictory questions: inline means the sentence decides the size. It is\n * dropped here rather than left to lose a specificity argument in the\n * stylesheet -- this is a style attribute, so it would beat\n * :host([inline]) and pull the link back out of the line box that mode\n * exists to keep it in.\n */\n get _inlineStyle() {\n return [\n [\"font-size\", this.inline ? \"\" : fontSize(this.fontSize)],\n [\"--bd-link-color\", color(this.color)]\n ].filter(([, v]) => v).map(([prop, v]) => `${prop}: ${v}`)\n .join(\"; \");\n }\n\n /** The aria-current token, which is also what the current look keys on. */\n get _current() {\n return this.current || (this.active ? \"true\" : \"\");\n }\n\n /* No whitespace anywhere in these templates: not between the tags and the\n slot, and not around the element either. The default flex row never\n rendered it, but inline drops the row, and there each newline became a\n real space inside the host -- measured at 3.5-4.5px past the text on\n every inline link, so a link before a comma read \"countries ,\". */\n render() {\n if (this.disabled) {\n return html`<span part=\"link\" class=\"${this._classes}\" style=\"${this._inlineStyle}\"><slot></slot>${this._arrow}</span>`;\n }\n\n return html`<a\n part=\"link\"\n class=\"${this._classes}\"\n style=\"${this._inlineStyle}\"\n href=\"${this.href || nothing}\"\n target=\"${this.href ? this.target : nothing}\"\n aria-current=\"${this._current || nothing}\"\n aria-describedby=\"${this.description ? \"description\" : nothing}\"\n @click=\"${this._handleClick}\"\n ><slot></slot>${this._arrow}</a>${this.description\n ? html`<span id=\"description\" hidden>${this.description}</span>`\n : nothing}`;\n }\n\n _handleClick(e: Event) {\n if (this.disabled) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-link\": BdLink;\n }\n}"],"mappings":"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"}
@@ -1,168 +1,2 @@
1
- import { css } from "lit";
2
- export default css `
3
- @layer bd-components {
4
- /* Sans, and the same ink as bd-p. This was set in --font-family-mono, so a
5
- bulleted list rendered in monospace while the paragraph above it was in
6
- sans — the only text atom in the system that was not. That token was also
7
- a duplicate of --typography-fontFamily-mono carrying a shorter fallback
8
- stack, so the two spellings of "mono" degraded differently; it has been
9
- retired.
10
-
11
- The ink was neutral-700 against bd-p's neutral-1000 and bd-display's
12
- neutral-900. A list and the paragraph beside it are the same running text
13
- and now take the same role. */
14
- .bd-list-item {
15
- margin: 0;
16
- padding: 0;
17
- list-style: none;
18
- display: flex;
19
- align-items: flex-start;
20
- gap: var(--spacing-8);
21
- color: var(--color-text-primary);
22
- font-family: var(--typography-fontFamily-sans);
23
- }
24
-
25
- /* === SIZE VARIANTS === */
26
-
27
- /* The size ladder is body-small / body-regular / body-large: a list item is
28
- running prose, which is what the body-* family is for. The leading used to
29
- sit once on the base rule as lineHeight-normal for all three rungs; it now
30
- comes from each rung's own role, which is what makes the ladder a role
31
- ladder rather than three sizes over one shared number. */
32
- .bd-list-item.sm {
33
- --bd-li-line-height: var(--typography-body-small-lineHeight);
34
- font-size: var(--typography-body-small-fontSize);
35
- line-height: var(--bd-li-line-height);
36
- margin-bottom: var(--spacing-4);
37
- }
38
-
39
- .bd-list-item.md {
40
- --bd-li-line-height: var(--typography-body-regular-lineHeight);
41
- font-size: var(--typography-body-regular-fontSize);
42
- line-height: var(--bd-li-line-height);
43
- margin-bottom: var(--bd-li-margin-bottom, var(--spacing-6));
44
- }
45
-
46
- .bd-list-item.lg {
47
- --bd-li-line-height: var(--typography-body-large-lineHeight);
48
- font-size: var(--typography-body-large-fontSize);
49
- line-height: var(--bd-li-line-height);
50
- margin-bottom: var(--spacing-8);
51
- }
52
-
53
- /* === MARKER STYLES === */
54
-
55
- .bd-list-item-marker {
56
- flex-shrink: 0;
57
- align-self: flex-start;
58
- /* centrează markerul pe înălțimea unei linii de text,
59
- calculat din line-height-ul itemului, indiferent de size.
60
- Se aplică doar markerelor "forme" (bullet, check) — nu textului (number).
61
-
62
- Reads the rung's own leading, not a fixed 1.5. The three rungs used to
63
- share one leading on the base rule, so hard-coding it here was
64
- equivalent; body-large is 1.625, so it no longer is, and a fixed ratio
65
- would leave the bullet 1.125px above the line's centre at lg. */
66
- margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size, var(--spacing-6))) / 2);
67
- }
68
-
69
- /* Bullet List */
70
- .bd-list-item.bullet .bd-list-item-marker {
71
- --bd-li-marker-size: var(--spacing-6);
72
- width: var(--bd-li-marker-size);
73
- height: var(--bd-li-marker-size);
74
- background-color: var(--bd-li-marker-color, var(--color-text-primary));
75
- border-radius: var(--radius-full);
76
- }
77
-
78
- /* Number List. The number comes from list-item.ts, on the marker's
79
- data-number: a CSS counter cannot count across shadow roots, so each
80
- item's counter only ever reached 1. */
81
- .bd-list-item.number .bd-list-item-marker {
82
- margin-top: 0; /* text — se aliniază natural pe linia de bază, nu geometric */
83
- }
84
-
85
- .bd-list-item.number .bd-list-item-marker::before {
86
- content: attr(data-number);
87
- /* no role: a marker glyph, not running prose. The number or bullet in
88
- front of a list item is a symbol sized and weighted to sit against the
89
- text beside it, the same category typography rule 7 already covers for
90
- an icon-only line box's leading. A role describes text a reader reads
91
- as a sentence; it has nothing to say about a glyph. This is the
92
- argument for every "no role: glyph/marker/placeholder" marker in the
93
- package -- the others point here rather than restating it. */
94
- font-weight: var(--typography-fontWeight-semibold);
95
- color: var(--bd-li-marker-color, var(--color-text-primary));
96
- }
97
-
98
- /* Check List */
99
- /* green-700, not green-500: the tick is white on this disc, and on
100
- green-500 that measures 2.39:1 — it fails 1.4.3 as text and 1.4.11 as a
101
- graphic. green-700 gives 4.75 and is the step bd-badge already picked for
102
- white-on-green, for the same reason and with the same measurement.
103
- .
104
- So the disc and the tick are the badge's fill pair, and read it by name:
105
- --status-success-fill and --status-success-on-fill. They used to read
106
- -accent and --color-text-inverse, which resolve to the same two colours
107
- here and are not the same two roles -- a dark theme moves the accent
108
- and flips the inverse ink, and the pair it was borrowing from would come
109
- apart. */
110
- .bd-list-item.check .bd-list-item-marker {
111
- --bd-li-marker-size: var(--spacing-16);
112
- width: var(--bd-li-marker-size);
113
- height: var(--bd-li-marker-size);
114
- background-color: var(--status-success-fill);
115
- border-radius: var(--radius-full);
116
- position: relative;
117
- }
118
-
119
- /* The tick is bd-check-icon now, not a "✓" in a ::after. A character here was
120
- type doing an icon's job -- it changed shape with the font and drew
121
- differently on macOS and Windows, on a mark whose whole purpose is to be
122
- recognised at 16px. The atom is drawn at the same 2-unit weight as
123
- bd-plus-icon and bd-minus-icon, so the three read as one family.
124
- .
125
- The absolute centring went with it: the marker is a flex box now, which
126
- also means no ::after and no transform to keep in step with the disc. The
127
- icon inherits the white through currentColor from the colour set here, so
128
- the contrast argument above still holds and is still measured on the disc
129
- rather than on the glyph. */
130
- .bd-list-item.check .bd-list-item-marker {
131
- display: flex;
132
- align-items: center;
133
- justify-content: center;
134
- color: var(--status-success-on-fill);
135
- }
136
-
137
- /* Custom Icon */
138
- .bd-list-item-custom-icon {
139
- --bd-li-marker-size: var(--spacing-16);
140
- width: var(--bd-li-marker-size);
141
- height: var(--bd-li-marker-size);
142
- flex-shrink: 0;
143
- /* the rung's own leading -- see .bd-list-item-marker above. */
144
- margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size)) / 2);
145
- }
146
-
147
- /* No Marker */
148
- .bd-list-item.none {
149
- gap: 0;
150
- }
151
-
152
- .bd-list-item.none .bd-list-item-marker {
153
- display: none;
154
- }
155
-
156
- /* === CONTENT STYLING === */
157
-
158
- .bd-list-item-content {
159
- flex: 1;
160
- }
161
-
162
- /* Last Item */
163
- :host(:last-of-type) .bd-list-item {
164
- margin-bottom: 0;
165
- }
166
- }
167
- `;
1
+ import{css as e}from"lit";var t=e`@layer bd-components{.bd-list-item{align-items:flex-start;gap:var(--spacing-8);color:var(--color-text-primary);font-family:var(--typography-fontFamily-sans);margin:0;padding:0;list-style:none;display:flex}.bd-list-item.sm{--bd-li-line-height:var(--typography-body-small-lineHeight);font-size:var(--typography-body-small-fontSize);line-height:var(--bd-li-line-height);margin-bottom:var(--spacing-4)}.bd-list-item.md{--bd-li-line-height:var(--typography-body-regular-lineHeight);font-size:var(--typography-body-regular-fontSize);line-height:var(--bd-li-line-height);margin-bottom:var(--bd-li-margin-bottom,var(--spacing-6))}.bd-list-item.lg{--bd-li-line-height:var(--typography-body-large-lineHeight);font-size:var(--typography-body-large-fontSize);line-height:var(--bd-li-line-height);margin-bottom:var(--spacing-8)}.bd-list-item-marker{margin-top:calc((1em * var(--bd-li-line-height,var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size,var(--spacing-6))) / 2);flex-shrink:0;align-self:flex-start}.bd-list-item.bullet .bd-list-item-marker{--bd-li-marker-size:var(--spacing-6);width:var(--bd-li-marker-size);height:var(--bd-li-marker-size);background-color:var(--bd-li-marker-color,var(--color-text-primary));border-radius:var(--radius-full)}.bd-list-item.number .bd-list-item-marker{margin-top:0}.bd-list-item.number .bd-list-item-marker:before{content:attr(data-number);font-weight:var(--typography-fontWeight-semibold);color:var(--bd-li-marker-color,var(--color-text-primary))}.bd-list-item.check .bd-list-item-marker{--bd-li-marker-size:var(--spacing-16);width:var(--bd-li-marker-size);height:var(--bd-li-marker-size);background-color:var(--status-success-fill);border-radius:var(--radius-full);color:var(--status-success-on-fill);justify-content:center;align-items:center;display:flex;position:relative}.bd-list-item-custom-icon{--bd-li-marker-size:var(--spacing-16);width:var(--bd-li-marker-size);height:var(--bd-li-marker-size);margin-top:calc((1em * var(--bd-li-line-height,var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size)) / 2);flex-shrink:0}.bd-list-item.none{gap:0}.bd-list-item.none .bd-list-item-marker{display:none}.bd-list-item-content{flex:1}:host(:last-of-type) .bd-list-item{margin-bottom:0}}`;export{t as default};
168
2
  //# sourceMappingURL=list-item.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.css.js","sourceRoot":"","sources":["../../../../../src/components/list/list-item/list-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKjB,CAAC","sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n@layer bd-components {\n /* Sans, and the same ink as bd-p. This was set in --font-family-mono, so a\n bulleted list rendered in monospace while the paragraph above it was in\n sans — the only text atom in the system that was not. That token was also\n a duplicate of --typography-fontFamily-mono carrying a shorter fallback\n stack, so the two spellings of \"mono\" degraded differently; it has been\n retired.\n\n The ink was neutral-700 against bd-p's neutral-1000 and bd-display's\n neutral-900. A list and the paragraph beside it are the same running text\n and now take the same role. */\n .bd-list-item {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-8);\n color: var(--color-text-primary);\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* === SIZE VARIANTS === */\n\n /* The size ladder is body-small / body-regular / body-large: a list item is\n running prose, which is what the body-* family is for. The leading used to\n sit once on the base rule as lineHeight-normal for all three rungs; it now\n comes from each rung's own role, which is what makes the ladder a role\n ladder rather than three sizes over one shared number. */\n .bd-list-item.sm {\n --bd-li-line-height: var(--typography-body-small-lineHeight);\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--spacing-4);\n }\n\n .bd-list-item.md {\n --bd-li-line-height: var(--typography-body-regular-lineHeight);\n font-size: var(--typography-body-regular-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--bd-li-margin-bottom, var(--spacing-6));\n }\n\n .bd-list-item.lg {\n --bd-li-line-height: var(--typography-body-large-lineHeight);\n font-size: var(--typography-body-large-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--spacing-8);\n }\n\n /* === MARKER STYLES === */\n\n .bd-list-item-marker {\n flex-shrink: 0;\n align-self: flex-start;\n /* centrează markerul pe înălțimea unei linii de text,\n calculat din line-height-ul itemului, indiferent de size.\n Se aplică doar markerelor \"forme\" (bullet, check) — nu textului (number).\n\n Reads the rung's own leading, not a fixed 1.5. The three rungs used to\n share one leading on the base rule, so hard-coding it here was\n equivalent; body-large is 1.625, so it no longer is, and a fixed ratio\n would leave the bullet 1.125px above the line's centre at lg. */\n margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size, var(--spacing-6))) / 2);\n }\n\n /* Bullet List */\n .bd-list-item.bullet .bd-list-item-marker {\n --bd-li-marker-size: var(--spacing-6);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n background-color: var(--bd-li-marker-color, var(--color-text-primary));\n border-radius: var(--radius-full);\n }\n\n /* Number List. The number comes from list-item.ts, on the marker's\n data-number: a CSS counter cannot count across shadow roots, so each\n item's counter only ever reached 1. */\n .bd-list-item.number .bd-list-item-marker {\n margin-top: 0; /* text — se aliniază natural pe linia de bază, nu geometric */\n }\n\n .bd-list-item.number .bd-list-item-marker::before {\n content: attr(data-number);\n /* no role: a marker glyph, not running prose. The number or bullet in\n front of a list item is a symbol sized and weighted to sit against the\n text beside it, the same category typography rule 7 already covers for\n an icon-only line box's leading. A role describes text a reader reads\n as a sentence; it has nothing to say about a glyph. This is the\n argument for every \"no role: glyph/marker/placeholder\" marker in the\n package -- the others point here rather than restating it. */\n font-weight: var(--typography-fontWeight-semibold);\n color: var(--bd-li-marker-color, var(--color-text-primary));\n }\n\n /* Check List */\n /* green-700, not green-500: the tick is white on this disc, and on\n green-500 that measures 2.39:1 — it fails 1.4.3 as text and 1.4.11 as a\n graphic. green-700 gives 4.75 and is the step bd-badge already picked for\n white-on-green, for the same reason and with the same measurement.\n .\n So the disc and the tick are the badge's fill pair, and read it by name:\n --status-success-fill and --status-success-on-fill. They used to read\n -accent and --color-text-inverse, which resolve to the same two colours\n here and are not the same two roles -- a dark theme moves the accent\n and flips the inverse ink, and the pair it was borrowing from would come\n apart. */\n .bd-list-item.check .bd-list-item-marker {\n --bd-li-marker-size: var(--spacing-16);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n background-color: var(--status-success-fill);\n border-radius: var(--radius-full);\n position: relative;\n }\n\n /* The tick is bd-check-icon now, not a \"✓\" in a ::after. A character here was\n type doing an icon's job -- it changed shape with the font and drew\n differently on macOS and Windows, on a mark whose whole purpose is to be\n recognised at 16px. The atom is drawn at the same 2-unit weight as\n bd-plus-icon and bd-minus-icon, so the three read as one family.\n .\n The absolute centring went with it: the marker is a flex box now, which\n also means no ::after and no transform to keep in step with the disc. The\n icon inherits the white through currentColor from the colour set here, so\n the contrast argument above still holds and is still measured on the disc\n rather than on the glyph. */\n .bd-list-item.check .bd-list-item-marker {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--status-success-on-fill);\n }\n\n /* Custom Icon */\n .bd-list-item-custom-icon {\n --bd-li-marker-size: var(--spacing-16);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n flex-shrink: 0;\n /* the rung's own leading -- see .bd-list-item-marker above. */\n margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size)) / 2);\n }\n\n /* No Marker */\n .bd-list-item.none {\n gap: 0;\n }\n\n .bd-list-item.none .bd-list-item-marker {\n display: none;\n }\n\n /* === CONTENT STYLING === */\n\n .bd-list-item-content {\n flex: 1;\n }\n\n /* Last Item */\n :host(:last-of-type) .bd-list-item {\n margin-bottom: 0;\n }\n}\n`;"]}
1
+ {"version":3,"file":"list-item.css.js","names":["list_item_css_default"],"sources":["../../../../../src/components/list/list-item/list-item.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n@layer bd-components {\n /* Sans, and the same ink as bd-p. This was set in --font-family-mono, so a\n bulleted list rendered in monospace while the paragraph above it was in\n sans — the only text atom in the system that was not. That token was also\n a duplicate of --typography-fontFamily-mono carrying a shorter fallback\n stack, so the two spellings of \"mono\" degraded differently; it has been\n retired.\n\n The ink was neutral-700 against bd-p's neutral-1000 and bd-display's\n neutral-900. A list and the paragraph beside it are the same running text\n and now take the same role. */\n .bd-list-item {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-8);\n color: var(--color-text-primary);\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* === SIZE VARIANTS === */\n\n /* The size ladder is body-small / body-regular / body-large: a list item is\n running prose, which is what the body-* family is for. The leading used to\n sit once on the base rule as lineHeight-normal for all three rungs; it now\n comes from each rung's own role, which is what makes the ladder a role\n ladder rather than three sizes over one shared number. */\n .bd-list-item.sm {\n --bd-li-line-height: var(--typography-body-small-lineHeight);\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--spacing-4);\n }\n\n .bd-list-item.md {\n --bd-li-line-height: var(--typography-body-regular-lineHeight);\n font-size: var(--typography-body-regular-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--bd-li-margin-bottom, var(--spacing-6));\n }\n\n .bd-list-item.lg {\n --bd-li-line-height: var(--typography-body-large-lineHeight);\n font-size: var(--typography-body-large-fontSize);\n line-height: var(--bd-li-line-height);\n margin-bottom: var(--spacing-8);\n }\n\n /* === MARKER STYLES === */\n\n .bd-list-item-marker {\n flex-shrink: 0;\n align-self: flex-start;\n /* centrează markerul pe înălțimea unei linii de text,\n calculat din line-height-ul itemului, indiferent de size.\n Se aplică doar markerelor \"forme\" (bullet, check) — nu textului (number).\n\n Reads the rung's own leading, not a fixed 1.5. The three rungs used to\n share one leading on the base rule, so hard-coding it here was\n equivalent; body-large is 1.625, so it no longer is, and a fixed ratio\n would leave the bullet 1.125px above the line's centre at lg. */\n margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size, var(--spacing-6))) / 2);\n }\n\n /* Bullet List */\n .bd-list-item.bullet .bd-list-item-marker {\n --bd-li-marker-size: var(--spacing-6);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n background-color: var(--bd-li-marker-color, var(--color-text-primary));\n border-radius: var(--radius-full);\n }\n\n /* Number List. The number comes from list-item.ts, on the marker's\n data-number: a CSS counter cannot count across shadow roots, so each\n item's counter only ever reached 1. */\n .bd-list-item.number .bd-list-item-marker {\n margin-top: 0; /* text — se aliniază natural pe linia de bază, nu geometric */\n }\n\n .bd-list-item.number .bd-list-item-marker::before {\n content: attr(data-number);\n /* no role: a marker glyph, not running prose. The number or bullet in\n front of a list item is a symbol sized and weighted to sit against the\n text beside it, the same category typography rule 7 already covers for\n an icon-only line box's leading. A role describes text a reader reads\n as a sentence; it has nothing to say about a glyph. This is the\n argument for every \"no role: glyph/marker/placeholder\" marker in the\n package -- the others point here rather than restating it. */\n font-weight: var(--typography-fontWeight-semibold);\n color: var(--bd-li-marker-color, var(--color-text-primary));\n }\n\n /* Check List */\n /* green-700, not green-500: the tick is white on this disc, and on\n green-500 that measures 2.39:1 — it fails 1.4.3 as text and 1.4.11 as a\n graphic. green-700 gives 4.75 and is the step bd-badge already picked for\n white-on-green, for the same reason and with the same measurement.\n .\n So the disc and the tick are the badge's fill pair, and read it by name:\n --status-success-fill and --status-success-on-fill. They used to read\n -accent and --color-text-inverse, which resolve to the same two colours\n here and are not the same two roles -- a dark theme moves the accent\n and flips the inverse ink, and the pair it was borrowing from would come\n apart. */\n .bd-list-item.check .bd-list-item-marker {\n --bd-li-marker-size: var(--spacing-16);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n background-color: var(--status-success-fill);\n border-radius: var(--radius-full);\n position: relative;\n }\n\n /* The tick is bd-check-icon now, not a \"✓\" in a ::after. A character here was\n type doing an icon's job -- it changed shape with the font and drew\n differently on macOS and Windows, on a mark whose whole purpose is to be\n recognised at 16px. The atom is drawn at the same 2-unit weight as\n bd-plus-icon and bd-minus-icon, so the three read as one family.\n .\n The absolute centring went with it: the marker is a flex box now, which\n also means no ::after and no transform to keep in step with the disc. The\n icon inherits the white through currentColor from the colour set here, so\n the contrast argument above still holds and is still measured on the disc\n rather than on the glyph. */\n .bd-list-item.check .bd-list-item-marker {\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--status-success-on-fill);\n }\n\n /* Custom Icon */\n .bd-list-item-custom-icon {\n --bd-li-marker-size: var(--spacing-16);\n width: var(--bd-li-marker-size);\n height: var(--bd-li-marker-size);\n flex-shrink: 0;\n /* the rung's own leading -- see .bd-list-item-marker above. */\n margin-top: calc((1em * var(--bd-li-line-height, var(--typography-body-regular-lineHeight)) - var(--bd-li-marker-size)) / 2);\n }\n\n /* No Marker */\n .bd-list-item.none {\n gap: 0;\n }\n\n .bd-list-item.none .bd-list-item-marker {\n display: none;\n }\n\n /* === CONTENT STYLING === */\n\n .bd-list-item-content {\n flex: 1;\n }\n\n /* Last Item */\n :host(:last-of-type) .bd-list-item {\n margin-bottom: 0;\n }\n}\n`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,wsE"}
@@ -1,7 +1,7 @@
1
1
  import { LitElement, nothing, type PropertyValues } from "lit";
2
- import "../../../tokens/tokens.ts";
3
- import { type ColorRole } from "../../shared/token-scales.ts";
4
- import "../../icons/check-icon.ts";
2
+ import "../../../tokens/tokens.js";
3
+ import { type ColorRole } from "../../shared/token-scales.js";
4
+ import "../../icons/check-icon.js";
5
5
  declare const SIZE_STEPS: readonly ["sm", "md", "lg"];
6
6
  /** The markers this item can draw. */
7
7
  declare const MARKERS: readonly ["bullet", "number", "check", "none"];