@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,81 +1,18 @@
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 } from "lit";
8
- import { property } from "lit/decorators.js";
9
- import { defineElement } from "../shared/define-element.js";
10
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
11
- import "../../tokens/tokens.js";
12
- import "../badge/badge.js";
13
- import "../divider/divider-horizontal.js";
14
- import "../heading/heading.js";
15
- import "../paragraph/paragraph.js";
16
- import newHeaderPricingCSS from "../pricing-cards/pricing-card-header.css.js";
17
- let PricingCardHeader = class PricingCardHeader extends LitElement {
18
- constructor() {
19
- super(...arguments);
20
- this.title = "";
21
- }
22
- static { this.styles = [newHeaderPricingCSS]; }
23
- get parsedBadges() {
24
- return this.badges ? this.badges.split("|").map((b) => b.trim()) : [];
25
- }
26
- /* The title, as one heading: "Bitdefender" on a line of its own when the
27
- title starts with it, and the word "Plus" in the brand colour.
28
-
29
- A title without "Plus" used to render the words "Internet Security"
30
- whatever it said -- every card but Antivirus Plus named the wrong product
31
- -- inside a <template shadowrootmode> that never attaches when Lit clones
32
- a template, so it sat in the heading as an inert element. A title with
33
- "Plus" was split across two <h4>s, which a screen reader announced as two
34
- headings. */
35
- renderTitle() {
36
- if (!this.title)
37
- return "";
38
- const match = this.title.match(/^(Bitdefender)\s+(.*)$/i);
39
- const brand = match ? match[1] : "";
40
- const rest = match ? match[2] : this.title;
41
- const highlighted = rest.split(/\b(plus)\b/i).map((part, i) => i % 2 ? html `<span class="plus-text">${part}</span>` : part);
42
- return html `
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import"../badge/badge.js";import"../divider/divider-horizontal.js";import n from"./pricing-card-header.css.js";import{LitElement as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends r{constructor(...e){super(...e),this.title=``}static{this.styles=[n]}get parsedBadges(){return this.badges?this.badges.split(`|`).map(e=>e.trim()):[]}renderTitle(){if(!this.title)return``;let e=this.title.match(/^(Bitdefender)\s+(.*)$/i),t=e?e[1]:``,n=(e?e[2]:this.title).split(/\b(plus)\b/i).map((e,t)=>t%2?i`<span class="plus-text">${e}</span>`:e);return i`
43
2
  <bd-h as="h4" class="card-title">
44
- ${brand ? html `<span class="card-title-brand">${brand}</span>` : ""}${highlighted}
3
+ ${t?i`<span class="card-title-brand">${t}</span>`:``}${n}
45
4
  </bd-h>
46
- `;
47
- }
48
- render() {
49
- return html `
5
+ `}render(){return i`
50
6
  <div class="card-header">
51
7
  ${this.renderTitle()}
52
8
 
53
- ${this.parsedBadges.length
54
- ? html `
9
+ ${this.parsedBadges.length?i`
55
10
  <div class="badge-wrapper multiple">
56
- ${this.parsedBadges.map((b) => html `<bd-badge tone="primary" variant="fill">${b}</bd-badge>`)}
11
+ ${this.parsedBadges.map(e=>i`<bd-badge tone="primary" variant="fill">${e}</bd-badge>`)}
57
12
  </div>
58
- `
59
- : ""}
13
+ `:``}
60
14
  <bd-p variant="small" class="badge-subtitle">${this.subtitle}</bd-p>
61
15
  <bd-divider-horizontal></bd-divider-horizontal>
62
16
  </div>
63
- `;
64
- }
65
- };
66
- __decorate([
67
- property({ type: String })
68
- ], PricingCardHeader.prototype, "title", void 0);
69
- __decorate([
70
- property({ type: String })
71
- ], PricingCardHeader.prototype, "subtitle", void 0);
72
- __decorate([
73
- property({ type: String })
74
- ], PricingCardHeader.prototype, "badges", void 0);
75
- __decorate([
76
- property({ type: Boolean })
77
- ], PricingCardHeader.prototype, "plus", void 0);
78
- PricingCardHeader = __decorate([
79
- defineElement("pricing-card-header")
80
- ], PricingCardHeader);
17
+ `}};t([a({type:String})],o.prototype,`title`,void 0),t([a({type:String})],o.prototype,`subtitle`,void 0),t([a({type:String})],o.prototype,`badges`,void 0),t([a({type:Boolean})],o.prototype,`plus`,void 0),o=t([e(`pricing-card-header`)],o);
81
18
  //# sourceMappingURL=pricing-card-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card-header.js","sourceRoot":"","sources":["../../../../src/components/pricing-cards/pricing-card-header.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,kCAAkC,CAAC;AAC1C,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,mBAAmB,MAAM,6CAA6C,CAAC;AAG9E,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IAA1C;;QAIE,UAAK,GAAG,EAAE,CAAC;IAsDb,CAAC;aAzDQ,WAAM,GAAG,CAAC,mBAAmB,CAAC,AAAxB,CAAyB;IAWtC,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE,CAAC;IAED;;;;;;;;mBAQe;IACf,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,EAAE,CAAC;QAE3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC1D,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAC5D,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,2BAA2B,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAA;;UAEL,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA,kCAAkC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,WAAW;;KAEpF,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,WAAW,EAAE;;UAElB,IAAI,CAAC,YAAY,CAAC,MAAM;YACxB,CAAC,CAAC,IAAI,CAAA;;kBAEE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAA,2CAA2C,CAAC,aAAa,CAAC;;aAEhG;YACH,CAAC,CAAC,EAAE;uDACyC,IAAI,CAAC,QAAQ;;;KAG/D,CAAC;IACJ,CAAC;;AArDD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAChB;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDACT;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACX;AAEhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACb;AAVX,iBAAiB;IADtB,aAAa,CAAC,qBAAqB,CAAC;GAC/B,iBAAiB,CA0DtB","sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport \"../badge/badge.ts\";\nimport \"../divider/divider-horizontal.ts\";\nimport \"../heading/heading.ts\";\nimport \"../paragraph/paragraph.ts\";\nimport newHeaderPricingCSS from \"../pricing-cards/pricing-card-header.css.ts\";\n\n@defineElement(\"pricing-card-header\")\nclass PricingCardHeader extends LitElement {\n static styles = [newHeaderPricingCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n subtitle?: string;\n @property({ type: String })\n badges?: string;\n @property({ type: Boolean })\n plus?: boolean;\n\n get parsedBadges() {\n return this.badges ? this.badges.split(\"|\").map((b) => b.trim()) : [];\n }\n\n /* The title, as one heading: \"Bitdefender\" on a line of its own when the\n title starts with it, and the word \"Plus\" in the brand colour.\n\n A title without \"Plus\" used to render the words \"Internet Security\"\n whatever it said -- every card but Antivirus Plus named the wrong product\n -- inside a <template shadowrootmode> that never attaches when Lit clones\n a template, so it sat in the heading as an inert element. A title with\n \"Plus\" was split across two <h4>s, which a screen reader announced as two\n headings. */\n renderTitle() {\n if (!this.title) return \"\";\n\n const match = this.title.match(/^(Bitdefender)\\s+(.*)$/i);\n const brand = match ? match[1] : \"\";\n const rest = match ? match[2] : this.title;\n const highlighted = rest.split(/\\b(plus)\\b/i).map((part, i) =>\n i % 2 ? html`<span class=\"plus-text\">${part}</span>` : part);\n\n return html`\n <bd-h as=\"h4\" class=\"card-title\">\n ${brand ? html`<span class=\"card-title-brand\">${brand}</span>` : \"\"}${highlighted}\n </bd-h>\n `;\n }\n\n render() {\n return html`\n <div class=\"card-header\">\n ${this.renderTitle()}\n\n ${this.parsedBadges.length\n ? html`\n <div class=\"badge-wrapper multiple\">\n ${this.parsedBadges.map((b) => html`<bd-badge tone=\"primary\" variant=\"fill\">${b}</bd-badge>`)}\n </div>\n `\n : \"\"}\n <bd-p variant=\"small\" class=\"badge-subtitle\">${this.subtitle}</bd-p>\n <bd-divider-horizontal></bd-divider-horizontal>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-header\": PricingCardHeader;\n }\n}\n"]}
1
+ {"version":3,"file":"pricing-card-header.js","names":["newHeaderPricingCSS","_decorate","__decorate","pricing_card_header_css_default","PricingCardHeader","LitElement","_args","b","match","brand","highlighted","i","part","property","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-header.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/divider/divider-horizontal.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport newHeaderPricingCSS from \"#components/pricing-cards/pricing-card-header.css.ts\";\n\n@defineElement(\"pricing-card-header\")\nclass PricingCardHeader extends LitElement {\n static styles = [newHeaderPricingCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n subtitle?: string;\n @property({ type: String })\n badges?: string;\n @property({ type: Boolean })\n plus?: boolean;\n\n get parsedBadges() {\n return this.badges ? this.badges.split(\"|\").map((b) => b.trim()) : [];\n }\n\n /* The title, as one heading: \"Bitdefender\" on a line of its own when the\n title starts with it, and the word \"Plus\" in the brand colour.\n\n A title without \"Plus\" used to render the words \"Internet Security\"\n whatever it said -- every card but Antivirus Plus named the wrong product\n -- inside a <template shadowrootmode> that never attaches when Lit clones\n a template, so it sat in the heading as an inert element. A title with\n \"Plus\" was split across two <h4>s, which a screen reader announced as two\n headings. */\n renderTitle() {\n if (!this.title) return \"\";\n\n const match = this.title.match(/^(Bitdefender)\\s+(.*)$/i);\n const brand = match ? match[1] : \"\";\n const rest = match ? match[2] : this.title;\n const highlighted = rest.split(/\\b(plus)\\b/i).map((part, i) =>\n i % 2 ? html`<span class=\"plus-text\">${part}</span>` : part);\n\n return html`\n <bd-h as=\"h4\" class=\"card-title\">\n ${brand ? html`<span class=\"card-title-brand\">${brand}</span>` : \"\"}${highlighted}\n </bd-h>\n `;\n }\n\n render() {\n return html`\n <div class=\"card-header\">\n ${this.renderTitle()}\n\n ${this.parsedBadges.length\n ? html`\n <div class=\"badge-wrapper multiple\">\n ${this.parsedBadges.map((b) => html`<bd-badge tone=\"primary\" variant=\"fill\">${b}</bd-badge>`)}\n </div>\n `\n : \"\"}\n <bd-p variant=\"small\" class=\"badge-subtitle\">${this.subtitle}</bd-p>\n <bd-divider-horizontal></bd-divider-horizontal>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-header\": PricingCardHeader;\n }\n}\n"],"mappings":"A,4aAWA,IACMI,EADN,cACgCC,CAAW,C,8BAIjC,KAAA,MAAA,E,QAHQ,KAAA,OAAA,CAACL,CAAmB,C,CAWpC,IAAI,cAAe,CACjB,OAAO,KAAK,OAAS,KAAK,OAAO,MAAM,GAAG,CAAC,CAAC,IAAK,GAAMO,EAAE,KAAK,CAAC,EAAI,CAAC,CACtE,CAWA,aAAc,CACZ,GAAI,CAAC,KAAK,MAAO,MAAO,GAExB,IAAMC,EAAQ,KAAK,MAAM,MAAM,yBAAyB,EAClDC,EAAQD,EAAQA,EAAM,GAAK,GAE3BE,GADOF,EAAQA,EAAM,GAAK,KAAK,MAAA,CACZ,MAAM,aAAa,CAAC,CAAC,KAAK,EAAM,IACvDG,EAAI,EAAI,CAAI,2BAA2BC,EAAK,SAAWA,CAAI,EAE7D,MAAO,EAAI;;UAELH,EAAQ,CAAI,kCAAkCA,EAAM,SAAW,KAAKC,EAAY;;KAGxF,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,YAAY,EAAE;;UAEnB,KAAK,aAAa,OAChB,CAAI;;kBAEE,KAAK,aAAa,IAAK,GAAM,CAAI,2CAA2CH,EAAE,YAAY,EAAE;;cAGlG,GAAG;uDACwC,KAAK,SAAS;;;KAInE,CACF,EAvDGN,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,WAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAT,EAAA,UAAA,SAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAT,EAAA,UAAA,OAAA,IAAA,EAAA,EAV5B,EAAAH,EAAA,CAAAa,EAAc,qBAAqB,CAAA,EAAAV,CAAA"}
@@ -1,93 +1,2 @@
1
- import { css } from "lit";
2
- /* Adopted by the document (or the shadow root the card sits in) rather than
3
- copied into each card, so every selector starts at the element: unscoped,
4
- ".price" and ".terms" would style any element of that class on the page. */
5
- export default css `
6
- pricing-card-pricing .pricing {
7
- text-align: start;
8
- margin-top: var(--spacing-16);
9
- }
10
- pricing-card-pricing .pricing-info {
11
- display: flex;
12
- gap: var(--spacing-8);
13
- align-items: baseline;
14
- margin-top: var(--spacing-16);
15
- }
16
-
17
- pricing-card-pricing .original-price {
18
- text-decoration: line-through;
19
- font-family: var(--typography-fontFamily-sans);
20
- color: var(--color-text-primary);
21
- font-size: var(--typography-body-regular-fontSize);
22
- margin: 0;
23
- }
24
-
25
- pricing-card-pricing .discount {
26
- color: var(--color-text-success);
27
- font-weight: bold;
28
- /* -surface-strong is the step tokens.ts calls "the heavier tint, badge
29
- shade", and this pill's ink is already --color-text-success, which is
30
- the same green-800 --status-success-text resolves to. So the pair now
31
- matches bd-badge's success variant exactly (badge.css.ts:78-79) and
32
- measures the 5.93:1 that file records. Value-identical at #d1fadc. */
33
- background: var(--status-success-surface-strong);
34
- font-size: var(--typography-body-regular-fontSize);
35
- padding: 5px;
36
- border-radius: var(--radius-full);
37
- font-family: var(--typography-fontFamily-sans);
38
- margin: 0;
39
- }
40
-
41
- /* The price, a paragraph and not a heading: a figure the card states, not
42
- the title of anything below it. As an <h3> under the card's <h4> it put an
43
- out-of-order heading on every card. It keeps the look it had by reading
44
- the heading-h3 role's axes directly, as the hero's final price reads
45
- heading-h2. The 40px that stood here was on the bd-h host, where the atom
46
- sets its own size, and never painted. */
47
- pricing-card-pricing .price {
48
- margin: 0;
49
- text-align: start;
50
- font-family: var(--typography-heading-h3-fontFamily);
51
- font-size: var(--typography-heading-h3-fontSize);
52
- font-weight: var(--typography-heading-h3-fontWeight);
53
- line-height: var(--typography-heading-h3-lineHeight);
54
- letter-spacing: var(--typography-heading-h3-letterSpacing);
55
- color: var(--color-text-primary);
56
- }
57
-
58
- pricing-card-pricing .terms {
59
- font-family: var(--typography-fontFamily-sans);
60
- font-size: var(--typography-label-small-fontSize);
61
- color: var(--color-text-primary);
62
- text-align: start;
63
- margin: 0;
64
- margin-top: var(--spacing-8);
65
- margin-bottom: var(--spacing-16);
66
- }
67
-
68
- pricing-card-pricing .terms a {
69
- font-family: var(--typography-fontFamily-sans);
70
- font-size: var(--typography-label-small-fontSize);
71
- color: var(--color-text-primary);
72
- text-decoration: underline;
73
- }
74
-
75
- /* The two radios side by side, as the .toggle-group row they replace, and
76
- the group's label kept for a screen reader only: the card's layout has
77
- no line for it. */
78
- pricing-card-pricing .billing::part(options) {
79
- flex-direction: row;
80
- gap: var(--spacing-16);
81
- }
82
- pricing-card-pricing .billing::part(label) {
83
- position: absolute;
84
- /* no token: 1px is the clip idiom's own measure, as in
85
- visually-hidden.css.ts */
86
- width: 1px;
87
- height: 1px;
88
- overflow: hidden;
89
- clip-path: inset(50%);
90
- white-space: nowrap;
91
- }
92
- `;
1
+ import{css as e}from"lit";var t=e`pricing-card-pricing .pricing{text-align:start;margin-top:var(--spacing-16)}pricing-card-pricing .pricing-info{gap:var(--spacing-8);margin-top:var(--spacing-16);align-items:baseline;display:flex}pricing-card-pricing .original-price{font-family:var(--typography-fontFamily-sans);color:var(--color-text-primary);font-size:var(--typography-body-regular-fontSize);margin:0;text-decoration:line-through}pricing-card-pricing .discount{color:var(--color-text-success);background:var(--status-success-surface-strong);font-weight:700;font-size:var(--typography-body-regular-fontSize);border-radius:var(--radius-full);font-family:var(--typography-fontFamily-sans);margin:0;padding:5px}pricing-card-pricing .price{text-align:start;font-family:var(--typography-heading-h3-fontFamily);font-size:var(--typography-heading-h3-fontSize);font-weight:var(--typography-heading-h3-fontWeight);line-height:var(--typography-heading-h3-lineHeight);letter-spacing:var(--typography-heading-h3-letterSpacing);color:var(--color-text-primary);margin:0}pricing-card-pricing .terms{font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);color:var(--color-text-primary);text-align:start;margin:0;margin-top:var(--spacing-8);margin-bottom:var(--spacing-16)}pricing-card-pricing .terms a{font-family:var(--typography-fontFamily-sans);font-size:var(--typography-label-small-fontSize);color:var(--color-text-primary);text-decoration:underline}pricing-card-pricing .billing::part(options){gap:var(--spacing-16);flex-direction:row}pricing-card-pricing .billing::part(label){clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}`;export{t as default};
93
2
  //# sourceMappingURL=pricing-card-pricing.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card-pricing.css.js","sourceRoot":"","sources":["../../../../src/components/pricing-cards/pricing-card-pricing.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;8EAE8E;AAC9E,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFjB,CAAC","sourcesContent":["import { css } from \"lit\";\n\n/* Adopted by the document (or the shadow root the card sits in) rather than\n copied into each card, so every selector starts at the element: unscoped,\n \".price\" and \".terms\" would style any element of that class on the page. */\nexport default css`\n pricing-card-pricing .pricing {\n text-align: start;\n margin-top: var(--spacing-16);\n }\n pricing-card-pricing .pricing-info {\n display: flex;\n gap: var(--spacing-8);\n align-items: baseline;\n margin-top: var(--spacing-16);\n }\n\n pricing-card-pricing .original-price {\n text-decoration: line-through;\n font-family: var(--typography-fontFamily-sans);\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n margin: 0;\n }\n\n pricing-card-pricing .discount {\n color: var(--color-text-success);\n font-weight: bold;\n /* -surface-strong is the step tokens.ts calls \"the heavier tint, badge\n shade\", and this pill's ink is already --color-text-success, which is\n the same green-800 --status-success-text resolves to. So the pair now\n matches bd-badge's success variant exactly (badge.css.ts:78-79) and\n measures the 5.93:1 that file records. Value-identical at #d1fadc. */\n background: var(--status-success-surface-strong);\n font-size: var(--typography-body-regular-fontSize);\n padding: 5px;\n border-radius: var(--radius-full);\n font-family: var(--typography-fontFamily-sans);\n margin: 0;\n }\n\n /* The price, a paragraph and not a heading: a figure the card states, not\n the title of anything below it. As an <h3> under the card's <h4> it put an\n out-of-order heading on every card. It keeps the look it had by reading\n the heading-h3 role's axes directly, as the hero's final price reads\n heading-h2. The 40px that stood here was on the bd-h host, where the atom\n sets its own size, and never painted. */\n pricing-card-pricing .price {\n margin: 0;\n text-align: start;\n font-family: var(--typography-heading-h3-fontFamily);\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n color: var(--color-text-primary);\n }\n\n pricing-card-pricing .terms {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-align: start;\n margin: 0;\n margin-top: var(--spacing-8);\n margin-bottom: var(--spacing-16);\n }\n\n pricing-card-pricing .terms a {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-decoration: underline;\n }\n\n /* The two radios side by side, as the .toggle-group row they replace, and\n the group's label kept for a screen reader only: the card's layout has\n no line for it. */\n pricing-card-pricing .billing::part(options) {\n flex-direction: row;\n gap: var(--spacing-16);\n }\n pricing-card-pricing .billing::part(label) {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, as in\n visually-hidden.css.ts */\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n`;\n"]}
1
+ {"version":3,"file":"pricing-card-pricing.css.js","names":["pricing_card_pricing_css_default"],"sources":["../../../../src/components/pricing-cards/pricing-card-pricing.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* Adopted by the document (or the shadow root the card sits in) rather than\n copied into each card, so every selector starts at the element: unscoped,\n \".price\" and \".terms\" would style any element of that class on the page. */\nexport default css`\n pricing-card-pricing .pricing {\n text-align: start;\n margin-top: var(--spacing-16);\n }\n pricing-card-pricing .pricing-info {\n display: flex;\n gap: var(--spacing-8);\n align-items: baseline;\n margin-top: var(--spacing-16);\n }\n\n pricing-card-pricing .original-price {\n text-decoration: line-through;\n font-family: var(--typography-fontFamily-sans);\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n margin: 0;\n }\n\n pricing-card-pricing .discount {\n color: var(--color-text-success);\n font-weight: bold;\n /* -surface-strong is the step tokens.ts calls \"the heavier tint, badge\n shade\", and this pill's ink is already --color-text-success, which is\n the same green-800 --status-success-text resolves to. So the pair now\n matches bd-badge's success variant exactly (badge.css.ts:78-79) and\n measures the 5.93:1 that file records. Value-identical at #d1fadc. */\n background: var(--status-success-surface-strong);\n font-size: var(--typography-body-regular-fontSize);\n padding: 5px;\n border-radius: var(--radius-full);\n font-family: var(--typography-fontFamily-sans);\n margin: 0;\n }\n\n /* The price, a paragraph and not a heading: a figure the card states, not\n the title of anything below it. As an <h3> under the card's <h4> it put an\n out-of-order heading on every card. It keeps the look it had by reading\n the heading-h3 role's axes directly, as the hero's final price reads\n heading-h2. The 40px that stood here was on the bd-h host, where the atom\n sets its own size, and never painted. */\n pricing-card-pricing .price {\n margin: 0;\n text-align: start;\n font-family: var(--typography-heading-h3-fontFamily);\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n color: var(--color-text-primary);\n }\n\n pricing-card-pricing .terms {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-align: start;\n margin: 0;\n margin-top: var(--spacing-8);\n margin-bottom: var(--spacing-16);\n }\n\n pricing-card-pricing .terms a {\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-label-small-fontSize);\n color: var(--color-text-primary);\n text-decoration: underline;\n }\n\n /* The two radios side by side, as the .toggle-group row they replace, and\n the group's label kept for a screen reader only: the card's layout has\n no line for it. */\n pricing-card-pricing .billing::part(options) {\n flex-direction: row;\n gap: var(--spacing-16);\n }\n pricing-card-pricing .billing::part(label) {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, as in\n visually-hidden.css.ts */\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n`;\n"],"mappings":"A,0BAKA,IAAAA,EAAe,CAAG,0oD"}
@@ -1,10 +1,10 @@
1
1
  import { LitElement } from "lit";
2
- import "../../tokens/tokens.ts";
3
- import "../badge/badge.ts";
4
- import "../paragraph/paragraph.ts";
5
- import "../link/link.ts";
6
- import "../radio/radio.ts";
7
- import "../radio/radio-group.ts";
2
+ import "../../tokens/tokens.js";
3
+ import "../badge/badge.js";
4
+ import "../paragraph/paragraph.js";
5
+ import "../link/link.js";
6
+ import "../radio/radio.js";
7
+ import "../radio/radio-group.js";
8
8
  declare const PERIODS: {
9
9
  monthly: {
10
10
  price: string;
@@ -1,53 +1,4 @@
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 } from "lit";
8
- import { property, state } from "lit/decorators.js";
9
- import { defineElement } from "../shared/define-element.js";
10
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
11
- import "../../tokens/tokens.js";
12
- import "../badge/badge.js";
13
- import "../paragraph/paragraph.js";
14
- import "../link/link.js";
15
- import "../radio/radio.js";
16
- import "../radio/radio-group.js";
17
- import newPricingPricingCSS from "../pricing-cards/pricing-card-pricing.css.js";
18
- import { adoptStyles } from "./adopt-styles.js";
19
- /* What the store renders for each billing period, and the period it is per.
20
- The toggle used to change nothing but its own radios: the card showed the
21
- yearly price, labelled "/month", whichever was selected. */
22
- const PERIODS = {
23
- monthly: { price: "discounted-monthly||full-monthly", full: "full-monthly", per: "/month" },
24
- yearly: { price: "discounted||full", full: "full", per: "/year" }
25
- };
26
- let PricingCardPricing = class PricingCardPricing extends LitElement {
27
- constructor() {
28
- super(...arguments);
29
- this.productId = "vsb";
30
- this.devices = "5";
31
- this.subscription = "1";
32
- this.billingPeriod = "monthly";
33
- this.dataLayerEvent = "info";
34
- /** Where "terms of use" goes. Without it the words are plain text. */
35
- this.termsHref = "";
36
- }
37
- // FOLOSEȘTE LIGHT DOM
38
- createRenderRoot() {
39
- return this;
40
- }
41
- connectedCallback() {
42
- super.connectedCallback();
43
- adoptStyles(this, newPricingPricingCSS);
44
- }
45
- render() {
46
- const isMonthly = this.billingPeriod === "monthly";
47
- const period = PERIODS[this.billingPeriod];
48
- /* Each card's pair is its own group. Three cards on a page all named their
49
- radios "billing", so choosing a period in one card cleared the others. */
50
- return html `
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../paragraph/paragraph.js";import"../link/link.js";import"../badge/badge.js";import{adoptStyles as n}from"./adopt-styles.js";import r from"./pricing-card-pricing.css.js";import"../radio/radio.js";import"../radio/radio-group.js";import{LitElement as i,html as a}from"lit";import{property as o,state as s}from"lit/decorators.js";var c={monthly:{price:`discounted-monthly||full-monthly`,full:`full-monthly`,per:`/month`},yearly:{price:`discounted||full`,full:`full`,per:`/year`}},l=class extends i{constructor(...e){super(...e),this.productId=`vsb`,this.devices=`5`,this.subscription=`1`,this.billingPeriod=`monthly`,this.dataLayerEvent=`info`,this.termsHref=``}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),n(this,r)}render(){let e=this.billingPeriod===`monthly`,t=c[this.billingPeriod];return a`
51
2
  <bd-context ignore-events-parent>
52
3
  <bd-product product-id="${this.productId}">
53
4
  <bd-option
@@ -60,20 +11,20 @@ let PricingCardPricing = class PricingCardPricing extends LitElement {
60
11
  <bd-radio
61
12
  value="monthly"
62
13
  label="Monthly"
63
- ?checked=${isMonthly}
14
+ ?checked=${e}
64
15
  @change=${this.onBillingChange}
65
16
  ></bd-radio>
66
17
  <bd-radio
67
18
  value="yearly"
68
19
  label="Yearly"
69
- ?checked=${!isMonthly}
20
+ ?checked=${!e}
70
21
  @change=${this.onBillingChange}
71
22
  ></bd-radio>
72
23
  </bd-radio-group>
73
24
 
74
25
  <div class="pricing-info" data-store-hide="!it.option.price.discounted">
75
26
  <bd-p variant="small" class="original-price">
76
- <s data-store-render data-store-price="${period.full}"></s>
27
+ <s data-store-render data-store-price="${t.full}"></s>
77
28
  </bd-p>
78
29
 
79
30
  <bd-badge tone="success" variant="shade">
@@ -82,48 +33,17 @@ let PricingCardPricing = class PricingCardPricing extends LitElement {
82
33
  </div>
83
34
 
84
35
  <p class="price">
85
- <span data-store-render data-store-price="${period.price}"></span>${period.per}
36
+ <span data-store-render data-store-price="${t.price}"></span>${t.per}
86
37
  </p>
87
38
 
88
39
  <bd-p variant="small" class="terms">
89
40
  First year price. Plus applicable sales tax. See
90
- ${this.termsHref
91
- ? html `<bd-link href="${this.termsHref}" font-size="sm" color="strong" underline>terms of use</bd-link>`
92
- : "terms of use"}
41
+ ${this.termsHref?a`<bd-link href="${this.termsHref}" font-size="sm" color="strong" underline>terms of use</bd-link>`:`terms of use`}
93
42
  </bd-p>
94
43
  </div>
95
44
 
96
45
  </bd-option>
97
46
  </bd-product>
98
47
  </bd-context>
99
- `;
100
- }
101
- onBillingChange(e) {
102
- const value = e.target.value;
103
- if (value === "monthly" || value === "yearly") {
104
- this.billingPeriod = value;
105
- }
106
- }
107
- };
108
- __decorate([
109
- property({ type: String, attribute: "product-id" })
110
- ], PricingCardPricing.prototype, "productId", void 0);
111
- __decorate([
112
- property({ type: String })
113
- ], PricingCardPricing.prototype, "devices", void 0);
114
- __decorate([
115
- property({ type: String })
116
- ], PricingCardPricing.prototype, "subscription", void 0);
117
- __decorate([
118
- state()
119
- ], PricingCardPricing.prototype, "billingPeriod", void 0);
120
- __decorate([
121
- property({ type: String })
122
- ], PricingCardPricing.prototype, "dataLayerEvent", void 0);
123
- __decorate([
124
- property({ type: String, attribute: "terms-href" })
125
- ], PricingCardPricing.prototype, "termsHref", void 0);
126
- PricingCardPricing = __decorate([
127
- defineElement("pricing-card-pricing")
128
- ], PricingCardPricing);
48
+ `}onBillingChange(e){let t=e.target.value;(t===`monthly`||t===`yearly`)&&(this.billingPeriod=t)}};t([o({type:String,attribute:`product-id`})],l.prototype,`productId`,void 0),t([o({type:String})],l.prototype,`devices`,void 0),t([o({type:String})],l.prototype,`subscription`,void 0),t([s()],l.prototype,`billingPeriod`,void 0),t([o({type:String})],l.prototype,`dataLayerEvent`,void 0),t([o({type:String,attribute:`terms-href`})],l.prototype,`termsHref`,void 0),l=t([e(`pricing-card-pricing`)],l);
129
49
  //# sourceMappingURL=pricing-card-pricing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card-pricing.js","sourceRoot":"","sources":["../../../../src/components/pricing-cards/pricing-card-pricing.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AACnC,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,oBAAoB,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;8DAE8D;AAC9D,MAAM,OAAO,GAAG;IACd,OAAO,EAAE,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE;IAC3F,MAAM,EAAG,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE;CACnE,CAAC;AAKF,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QAEE,cAAS,GAAG,KAAK,CAAC;QAElB,YAAO,GAAG,GAAG,CAAC;QAEd,iBAAY,GAAG,GAAG,CAAC;QAEnB,kBAAa,GAAkB,SAAS,CAAC;QAEzC,mBAAc,GAAG,MAAM,CAAC;QACxB,sEAAsE;QAEtE,cAAS,GAAG,EAAE,CAAC;IA4EjB,CAAC;IA1EC,sBAAsB;IACtB,gBAAgB;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,WAAW,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,KAAK,SAAS,CAAC;QACnD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAE3C;oFAC4E;QAC5E,OAAO,IAAI,CAAA;;kCAEmB,IAAI,CAAC,SAAS;;uBAEzB,IAAI,CAAC,OAAO;4BACP,IAAI,CAAC,YAAY;gCACb,IAAI,CAAC,cAAc;;;;;;;6BAOtB,SAAS;4BACV,IAAI,CAAC,eAAe;;;;;6BAKnB,CAAC,SAAS;4BACX,IAAI,CAAC,eAAe;;;;;;6CAMH,MAAM,CAAC,IAAI;;;;;;;;;4DASI,MAAM,CAAC,KAAK,YAAY,MAAM,CAAC,GAAG;;;;;kBAK5E,IAAI,CAAC,SAAS;YACd,CAAC,CAAC,IAAI,CAAA,kBAAkB,IAAI,CAAC,SAAS,kEAAkE;YACxG,CAAC,CAAC,cAAc;;;;;;;KAO7B,CAAC;IACJ,CAAC;IAED,eAAe,CAAC,CAAQ;QACtB,MAAM,KAAK,GAAI,CAAC,CAAC,MAA4C,CAAC,KAAK,CAAC;QACpE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC7B,CAAC;IACH,CAAC;CACF,CAAA;AAvFC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDAClC;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDACb;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDACR;AAEnB;IADC,KAAK,EAAE;yDACiC;AAEzC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACH;AAGxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDACrC;AAbX,kBAAkB;IADvB,aAAa,CAAC,sBAAsB,CAAC;GAChC,kBAAkB,CAyFvB","sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport \"../badge/badge.ts\";\nimport \"../paragraph/paragraph.ts\";\nimport \"../link/link.ts\";\nimport \"../radio/radio.ts\";\nimport \"../radio/radio-group.ts\";\nimport newPricingPricingCSS from \"../pricing-cards/pricing-card-pricing.css.ts\";\nimport { adoptStyles } from \"./adopt-styles.ts\";\n\n/* What the store renders for each billing period, and the period it is per.\n The toggle used to change nothing but its own radios: the card showed the\n yearly price, labelled \"/month\", whichever was selected. */\nconst PERIODS = {\n monthly: { price: \"discounted-monthly||full-monthly\", full: \"full-monthly\", per: \"/month\" },\n yearly : { price: \"discounted||full\", full: \"full\", per: \"/year\" }\n};\n\ntype BillingPeriod = keyof typeof PERIODS;\n\n@defineElement(\"pricing-card-pricing\")\nclass PricingCardPricing extends LitElement {\n @property({ type: String, attribute: \"product-id\" })\n productId = \"vsb\";\n @property({ type: String })\n devices = \"5\";\n @property({ type: String })\n subscription = \"1\";\n @state()\n billingPeriod: BillingPeriod = \"monthly\";\n @property({ type: String })\n dataLayerEvent = \"info\";\n /** Where \"terms of use\" goes. Without it the words are plain text. */\n @property({ type: String, attribute: \"terms-href\" })\n termsHref = \"\";\n\n // FOLOSEȘTE LIGHT DOM\n createRenderRoot() {\n return this;\n }\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, newPricingPricingCSS);\n }\n\n render() {\n const isMonthly = this.billingPeriod === \"monthly\";\n const period = PERIODS[this.billingPeriod];\n\n /* Each card's pair is its own group. Three cards on a page all named their\n radios \"billing\", so choosing a period in one card cleared the others. */\n return html`\n <bd-context ignore-events-parent>\n <bd-product product-id=\"${this.productId}\">\n <bd-option\n devices=\"${this.devices}\"\n subscription=\"${this.subscription}\"\n data-layer-event=\"${this.dataLayerEvent}\">\n\n <div class=\"pricing\">\n <bd-radio-group class=\"billing\" label=\"Billing period\" name=\"billing\">\n <bd-radio\n value=\"monthly\"\n label=\"Monthly\"\n ?checked=${isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n <bd-radio\n value=\"yearly\"\n label=\"Yearly\"\n ?checked=${!isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n </bd-radio-group>\n\n <div class=\"pricing-info\" data-store-hide=\"!it.option.price.discounted\">\n <bd-p variant=\"small\" class=\"original-price\">\n <s data-store-render data-store-price=\"${period.full}\"></s>\n </bd-p>\n\n <bd-badge tone=\"success\" variant=\"shade\">\n Save <span data-store-render data-store-discount=\"percentage\"></span>\n </bd-badge>\n</div>\n\n <p class=\"price\">\n <span data-store-render data-store-price=\"${period.price}\"></span>${period.per}\n </p>\n\n <bd-p variant=\"small\" class=\"terms\">\n First year price. Plus applicable sales tax. See\n ${this.termsHref\n ? html`<bd-link href=\"${this.termsHref}\" font-size=\"sm\" color=\"strong\" underline>terms of use</bd-link>`\n : \"terms of use\"}\n </bd-p>\n </div>\n\n </bd-option>\n </bd-product>\n </bd-context>\n `;\n }\n\n onBillingChange(e: Event) {\n const value = (e.target as HTMLElementTagNameMap[\"bd-radio\"]).value;\n if (value === \"monthly\" || value === \"yearly\") {\n this.billingPeriod = value;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-pricing\": PricingCardPricing;\n }\n}\n"]}
1
+ {"version":3,"file":"pricing-card-pricing.js","names":["newPricingPricingCSS","_decorate","__decorate","pricing_card_pricing_css_default","PERIODS","PricingCardPricing","LitElement","_args","adoptStyles","isMonthly","period","value","property","state","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-pricing.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/radio/radio.ts\";\nimport \"#components/radio/radio-group.ts\";\nimport newPricingPricingCSS from \"#components/pricing-cards/pricing-card-pricing.css.ts\";\nimport { adoptStyles } from \"./adopt-styles.ts\";\n\n/* What the store renders for each billing period, and the period it is per.\n The toggle used to change nothing but its own radios: the card showed the\n yearly price, labelled \"/month\", whichever was selected. */\nconst PERIODS = {\n monthly: { price: \"discounted-monthly||full-monthly\", full: \"full-monthly\", per: \"/month\" },\n yearly : { price: \"discounted||full\", full: \"full\", per: \"/year\" }\n};\n\ntype BillingPeriod = keyof typeof PERIODS;\n\n@defineElement(\"pricing-card-pricing\")\nclass PricingCardPricing extends LitElement {\n @property({ type: String, attribute: \"product-id\" })\n productId = \"vsb\";\n @property({ type: String })\n devices = \"5\";\n @property({ type: String })\n subscription = \"1\";\n @state()\n billingPeriod: BillingPeriod = \"monthly\";\n @property({ type: String })\n dataLayerEvent = \"info\";\n /** Where \"terms of use\" goes. Without it the words are plain text. */\n @property({ type: String, attribute: \"terms-href\" })\n termsHref = \"\";\n\n // FOLOSEȘTE LIGHT DOM\n createRenderRoot() {\n return this;\n }\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, newPricingPricingCSS);\n }\n\n render() {\n const isMonthly = this.billingPeriod === \"monthly\";\n const period = PERIODS[this.billingPeriod];\n\n /* Each card's pair is its own group. Three cards on a page all named their\n radios \"billing\", so choosing a period in one card cleared the others. */\n return html`\n <bd-context ignore-events-parent>\n <bd-product product-id=\"${this.productId}\">\n <bd-option\n devices=\"${this.devices}\"\n subscription=\"${this.subscription}\"\n data-layer-event=\"${this.dataLayerEvent}\">\n\n <div class=\"pricing\">\n <bd-radio-group class=\"billing\" label=\"Billing period\" name=\"billing\">\n <bd-radio\n value=\"monthly\"\n label=\"Monthly\"\n ?checked=${isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n <bd-radio\n value=\"yearly\"\n label=\"Yearly\"\n ?checked=${!isMonthly}\n @change=${this.onBillingChange}\n ></bd-radio>\n </bd-radio-group>\n\n <div class=\"pricing-info\" data-store-hide=\"!it.option.price.discounted\">\n <bd-p variant=\"small\" class=\"original-price\">\n <s data-store-render data-store-price=\"${period.full}\"></s>\n </bd-p>\n\n <bd-badge tone=\"success\" variant=\"shade\">\n Save <span data-store-render data-store-discount=\"percentage\"></span>\n </bd-badge>\n</div>\n\n <p class=\"price\">\n <span data-store-render data-store-price=\"${period.price}\"></span>${period.per}\n </p>\n\n <bd-p variant=\"small\" class=\"terms\">\n First year price. Plus applicable sales tax. See\n ${this.termsHref\n ? html`<bd-link href=\"${this.termsHref}\" font-size=\"sm\" color=\"strong\" underline>terms of use</bd-link>`\n : \"terms of use\"}\n </bd-p>\n </div>\n\n </bd-option>\n </bd-product>\n </bd-context>\n `;\n }\n\n onBillingChange(e: Event) {\n const value = (e.target as HTMLElementTagNameMap[\"bd-radio\"]).value;\n if (value === \"monthly\" || value === \"yearly\") {\n this.billingPeriod = value;\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"pricing-card-pricing\": PricingCardPricing;\n }\n}\n"],"mappings":"A,mfAgBA,IAAMI,EAAU,CACd,QAAS,CAAE,MAAO,mCAAoC,KAAM,eAAgB,IAAK,QAAS,EAC1F,OAAS,CAAE,MAAO,mBAAoB,KAAM,OAAQ,IAAK,OAAQ,CACnE,EAKMC,EADN,cACiCC,CAAW,C,8BAE9B,KAAA,UAAA,MAEF,KAAA,QAAA,IAEK,KAAA,aAAA,IAEgB,KAAA,cAAA,UAEd,KAAA,eAAA,OAGL,KAAA,UAAA,E,CAGZ,kBAAmB,CACjB,OAAO,IACT,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACxBE,EAAY,KAAMR,CAAoB,CACxC,CAEA,QAAS,CACP,IAAMS,EAAY,KAAK,gBAAkB,UACnCC,EAASN,EAAQ,KAAK,eAI5B,MAAO,EAAI;;kCAEmB,KAAK,UAAU;;uBAE1B,KAAK,QAAQ;4BACR,KAAK,aAAa;gCACd,KAAK,eAAe;;;;;;;6BAOvBK,EAAU;4BACX,KAAK,gBAAgB;;;;;6BAKpB,CAACA,EAAU;4BACZ,KAAK,gBAAgB;;;;;;6CAMJC,EAAO,KAAK;;;;;;;;;4DASGA,EAAO,MAAM,WAAWA,EAAO,IAAI;;;;;kBAK7E,KAAK,UACH,CAAI,kBAAkB,KAAK,UAAU,kEACrC,eAAe;;;;;;;KAQjC,CAEA,gBAAgB,EAAU,CACxB,IAAMC,EAAS,EAAE,OAA6C,OAC1DA,IAAU,WAAaA,IAAU,YACnC,KAAK,cAAgBA,EAEzB,CACF,EAxFGV,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAP,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,eAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAY,EAAM,CAAA,EAAAR,EAAA,UAAA,gBAAA,IAAA,EAAA,EAENJ,EAAA,CAAAW,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,iBAAA,IAAA,EAAA,EAGzBJ,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAP,EAAA,UAAA,YAAA,IAAA,EAAA,EAbpD,EAAAJ,EAAA,CAAAa,EAAc,sBAAsB,CAAA,EAAAT,CAAA"}
@@ -1,30 +1,2 @@
1
- import { css } from "lit";
2
- export default css `
3
- .show-more-toggle {
4
- /* flex, not block, because the + and - are icon atoms now rather than
5
- characters in the label. A glyph sat on the text baseline and was
6
- centred by text-align; an atom is an inline-flex box of its own, so the
7
- button aligns it against the label instead. gap replaces the space that
8
- used to be part of the string. */
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- gap: var(--spacing-8);
13
- background: none;
14
- border: none;
15
- color: var(--color-text-brand);
16
- cursor: pointer;
17
- font-size: var(--typography-fontSize-lg);
18
- text-align: center;
19
- margin: 1rem auto;
20
- font-family: var(--typography-fontFamily-sans);
21
- font-weight: var(--typography-fontWeight-semibold);
22
- }
23
-
24
- .feature-items {
25
- display: flex;
26
- flex-direction: column;
27
- gap: 0.5rem;
28
- }
29
- `;
1
+ import{css as e}from"lit";var t=e`.show-more-toggle{justify-content:center;align-items:center;gap:var(--spacing-8);color:var(--color-text-brand);cursor:pointer;font-size:var(--typography-fontSize-lg);text-align:center;font-family:var(--typography-fontFamily-sans);font-weight:var(--typography-fontWeight-semibold);background:0 0;border:none;margin:1rem auto;display:flex}.feature-items{flex-direction:column;gap:.5rem;display:flex}`;export{t as default};
30
2
  //# sourceMappingURL=pricing-card-show-more.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card-show-more.css.js","sourceRoot":"","sources":["../../../../src/components/pricing-cards/pricing-card-show-more.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjB,CAAC","sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n .show-more-toggle {\n /* flex, not block, because the + and - are icon atoms now rather than\n characters in the label. A glyph sat on the text baseline and was\n centred by text-align; an atom is an inline-flex box of its own, so the\n button aligns it against the label instead. gap replaces the space that\n used to be part of the string. */\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-8);\n background: none;\n border: none;\n color: var(--color-text-brand);\n cursor: pointer;\n font-size: var(--typography-fontSize-lg);\n text-align: center;\n margin: 1rem auto;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-fontWeight-semibold);\n }\n\n .feature-items {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n`;\n"]}
1
+ {"version":3,"file":"pricing-card-show-more.css.js","names":["pricing_card_show_more_css_default"],"sources":["../../../../src/components/pricing-cards/pricing-card-show-more.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n .show-more-toggle {\n /* flex, not block, because the + and - are icon atoms now rather than\n characters in the label. A glyph sat on the text baseline and was\n centred by text-align; an atom is an inline-flex box of its own, so the\n button aligns it against the label instead. gap replaces the space that\n used to be part of the string. */\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-8);\n background: none;\n border: none;\n color: var(--color-text-brand);\n cursor: pointer;\n font-size: var(--typography-fontSize-lg);\n text-align: center;\n margin: 1rem auto;\n font-family: var(--typography-fontFamily-sans);\n font-weight: var(--typography-fontWeight-semibold);\n }\n\n .feature-items {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n`;\n"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,gZ"}
@@ -1,7 +1,7 @@
1
- import { LitElement } from 'lit';
2
- import "../../tokens/tokens.ts";
3
- import "../icons/plus-icon.ts";
4
- import "../icons/minus-icon.ts";
1
+ import { LitElement } from "lit";
2
+ import "../../tokens/tokens.js";
3
+ import "../icons/plus-icon.js";
4
+ import "../icons/minus-icon.js";
5
5
  declare class PricingCardShowMore extends LitElement {
6
6
  static styles: import("lit").CSSResult[];
7
7
  expanded: boolean;
@@ -1,48 +1,12 @@
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
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
11
- import "../../tokens/tokens.js";
12
- import newShowMorePricingCSS from "../pricing-cards/pricing-card-show-more.css.js";
13
- import "../icons/plus-icon.js";
14
- import "../icons/minus-icon.js";
15
- let PricingCardShowMore = class PricingCardShowMore extends LitElement {
16
- constructor() {
17
- super(...arguments);
18
- this.expanded = false;
19
- }
20
- static { this.styles = [newShowMorePricingCSS]; }
21
- toggleFeatures() {
22
- this.expanded = !this.expanded;
23
- }
24
- render() {
25
- return html `
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../icons/minus-icon.js";import"../icons/plus-icon.js";import n from"./pricing-card-show-more.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends r{constructor(...e){super(...e),this.expanded=!1}static{this.styles=[n]}toggleFeatures(){this.expanded=!this.expanded}render(){return i`
26
2
  <button
27
3
  @click="${this.toggleFeatures}"
28
4
  class="show-more-toggle"
29
5
  aria-expanded="${this.expanded}"
30
- aria-controls="${this.expanded ? "feature-items" : nothing}"
6
+ aria-controls="${this.expanded?`feature-items`:a}"
31
7
  >
32
- ${this.expanded
33
- ? html `<bd-minus-icon aria-hidden="true"></bd-minus-icon>Hide features`
34
- : html `<bd-plus-icon aria-hidden="true"></bd-plus-icon>Show more features`}
8
+ ${this.expanded?i`<bd-minus-icon aria-hidden="true"></bd-minus-icon>Hide features`:i`<bd-plus-icon aria-hidden="true"></bd-plus-icon>Show more features`}
35
9
  </button>
36
- ${this.expanded
37
- ? html `<div id="feature-items" class="feature-items"><slot></slot></div>`
38
- : ''}
39
- `;
40
- }
41
- };
42
- __decorate([
43
- property({ type: Boolean })
44
- ], PricingCardShowMore.prototype, "expanded", void 0);
45
- PricingCardShowMore = __decorate([
46
- defineElement('pricing-card-show-more')
47
- ], PricingCardShowMore);
10
+ ${this.expanded?i`<div id="feature-items" class="feature-items"><slot></slot></div>`:``}
11
+ `}};t([o({type:Boolean})],s.prototype,`expanded`,void 0),s=t([e(`pricing-card-show-more`)],s);
48
12
  //# sourceMappingURL=pricing-card-show-more.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card-show-more.js","sourceRoot":"","sources":["../../../../src/components/pricing-cards/pricing-card-show-more.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,qBAAqB,MAAM,gDAAgD,CAAC;AACnF,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAGhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAA5C;;QAIE,aAAQ,GAAG,KAAK,CAAC;IAwBnB,CAAC;aA3BQ,WAAM,GAAG,CAAC,qBAAqB,CAAC,AAA1B,CAA2B;IAMxC,cAAc;QACZ,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;kBAEG,IAAI,CAAC,cAAc;;yBAEZ,IAAI,CAAC,QAAQ;yBACb,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO;;UAExD,IAAI,CAAC,QAAQ;YACb,CAAC,CAAC,IAAI,CAAA,iEAAiE;YACvE,CAAC,CAAC,IAAI,CAAA,oEAAoE;;QAE5E,IAAI,CAAC,QAAQ;YACb,CAAC,CAAC,IAAI,CAAA,mEAAmE;YACzE,CAAC,CAAC,EAAE;KACP,CAAC;IACJ,CAAC;;AAvBD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDACX;AAJb,mBAAmB;IADxB,aAAa,CAAC,wBAAwB,CAAC;GAClC,mBAAmB,CA4BxB","sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '../shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport newShowMorePricingCSS from \"../pricing-cards/pricing-card-show-more.css.ts\";\nimport \"../icons/plus-icon.ts\";\nimport \"../icons/minus-icon.ts\";\n\n@defineElement('pricing-card-show-more')\nclass PricingCardShowMore extends LitElement {\n static styles = [newShowMorePricingCSS];\n\n @property({ type: Boolean })\n expanded = false;\n\n\n toggleFeatures() {\n this.expanded = !this.expanded;\n }\n\n render() {\n return html`\n <button\n @click=\"${this.toggleFeatures}\"\n class=\"show-more-toggle\"\n aria-expanded=\"${this.expanded}\"\n aria-controls=\"${this.expanded ? \"feature-items\" : nothing}\"\n >\n ${this.expanded\n ? html`<bd-minus-icon aria-hidden=\"true\"></bd-minus-icon>Hide features`\n : html`<bd-plus-icon aria-hidden=\"true\"></bd-plus-icon>Show more features`}\n </button>\n ${this.expanded\n ? html`<div id=\"feature-items\" class=\"feature-items\"><slot></slot></div>`\n : ''}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'pricing-card-show-more': PricingCardShowMore;\n }\n}\n"]}
1
+ {"version":3,"file":"pricing-card-show-more.js","names":["newShowMorePricingCSS","_decorate","__decorate","pricing_card_show_more_css_default","PricingCardShowMore","LitElement","_args","nothing","property","defineElement"],"sources":["../../../../src/components/pricing-cards/pricing-card-show-more.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport newShowMorePricingCSS from \"#components/pricing-cards/pricing-card-show-more.css.ts\";\nimport \"#components/icons/plus-icon.ts\";\nimport \"#components/icons/minus-icon.ts\";\n\n@defineElement('pricing-card-show-more')\nclass PricingCardShowMore extends LitElement {\n static styles = [newShowMorePricingCSS];\n\n @property({ type: Boolean })\n expanded = false;\n\n\n toggleFeatures() {\n this.expanded = !this.expanded;\n }\n\n render() {\n return html`\n <button\n @click=\"${this.toggleFeatures}\"\n class=\"show-more-toggle\"\n aria-expanded=\"${this.expanded}\"\n aria-controls=\"${this.expanded ? \"feature-items\" : nothing}\"\n >\n ${this.expanded\n ? html`<bd-minus-icon aria-hidden=\"true\"></bd-minus-icon>Hide features`\n : html`<bd-plus-icon aria-hidden=\"true\"></bd-plus-icon>Show more features`}\n </button>\n ${this.expanded\n ? html`<div id=\"feature-items\" class=\"feature-items\"><slot></slot></div>`\n : ''}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'pricing-card-show-more': PricingCardShowMore;\n }\n}\n"],"mappings":"A,sXASA,IACMI,EADN,cACkCC,CAAW,C,8BAIhC,KAAA,SAAA,E,QAHK,KAAA,OAAA,CAACL,CAAqB,C,CAMtC,gBAAiB,CACf,KAAK,SAAW,CAAC,KAAK,QACxB,CAEA,QAAS,CACP,MAAO,EAAI;;kBAEG,KAAK,eAAe;;yBAEb,KAAK,SAAS;yBACd,KAAK,SAAW,gBAAkBO,EAAQ;;UAEzD,KAAK,SACH,CAAI,kEACJ,CAAI,qEAAqE;;QAE7E,KAAK,SACH,CAAI,oEACJ,GAAG;KAEX,CACF,EAzBGN,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAJ,EAAA,UAAA,WAAA,IAAA,EAAA,EAJ5B,EAAAH,EAAA,CAAAQ,EAAc,wBAAwB,CAAA,EAAAL,CAAA"}