@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 +1 @@
1
- {"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../../src/components/footer/footer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D;;;wEAGwE;AACxE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,gDAAgD,CAAC;AACxD,OAAO,8CAA8C,CAAC;AACtD,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AACpD,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAChC,OAAO,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,iB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AU;;SAEjC;YACD,CAAC,CAAC,IAAI;;;;;;;;;0DAS4C,IAAI,CAAC,kBAAkB;;;;iDAIhC,IAAI,CAAC,eAAe;;;;;;;;;;;;;;sBAc/C,IAAI,CAAC,eAAe;;;;YAI9B,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAA;4CACC,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE;gBACnF,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAA;2BACR,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE;8BACnB,CAAC,CAAC,MAAM;0BACZ,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ;kCACnB,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;mBAC3D,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC;;WAE1C,CAAC;;;;;CAKX,CAAC;IACA,CAAC;aAEM,WAAM,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,AAA3B,CAA4B;;AA7XzC;IADC,KAAK,EAAE;iDACgC;AAsBxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;+CACzB;AAE/B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;kDACxC;AAErB;IADC,KAAK,EAAE;2CACuB;AA5BpB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAgYpB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '../shared/define-element.ts';\nimport { MediaQueryController } from '../shared/controller.media-query.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport { DEFAULT_THEME } from '../../tokens/themes/index.ts';\n/* The md boundary comes from the shared breakpoint source so the CSS and the\n JS cannot drift apart again: bd-footer switched at 767 while bd-footer-lp,\n sharing footer-nav-menu.css.ts, switched at 768 — so at exactly 768px the\n LP footer rendered its mobile markup under the desktop stylesheet. */\nimport { below, matchesBelow } from '../shared/token-scales.ts';\nimport '../../components/divider/divider-horizontal.ts';\nimport '../../components/divider/divider-vertical.ts';\nimport '../../components/footer/footer-links-group.ts';\nimport '../../components/footer/footer-nav-menu.ts';\nimport '../../components/grid/grid.ts';\nimport '../../components/link/link.ts';\nimport \"../icons/arrow-down-icon.ts\";\nimport \"../icons/arrow-up-icon.ts\";\nimport \"../icons/close-icon.ts\";\nimport \"../icons/globe-icon.ts\";\nimport footerCSS from './footer.css.ts';\nimport { ensembleCSS } from '../shared/ensemble.css.ts';\nimport { localeMap } from './localeMap.ts';\nimport { DEFAULT_LOCALE, localeFromPath, toggleImpressum } from './footer-locale.ts';\nimport { footerAnpc, footerLogo, footerMasterbrand } from './footer-images.ts';\n\n/* The labels in localeMap not written in their locale's language. A label is\n \"<place> - <language>\", and these two were read in a Chinese voice: Hong\n Kong's is English throughout, and Taiwan's place name is English beside\n 台灣. */\nconst LABEL_LANG: Record<string, { place?: string; language?: string }> = {\n 'zh-HK': { place: 'en', language: 'en' },\n 'zh-TW': { place: 'en' }\n};\n\ninterface Country {\n locale: string;\n label : string;\n}\n\n@defineElement('bd-footer')\nexport class BdFooter extends LitElement {\n @state()\n selectedCountry = 'Choose your country';\n /* `current-locale` and `max-columns-per-row`, both documented dash-cased\n and both previously inert for the same reason as bd-header above: Lit\n lowercases a property name to get its observed attribute, so these were\n listening for `currentlocale` and `maxcolumnsperrow`.\n\n current-locale is the consequential one, and it did not merely fail --\n it failed into nonsense. The attribute was ignored, so the locale fell\n through to URL detection, and under Storybook the path is /iframe.html:\n measured on Components/Footer Default, Romanian Locale and German\n Locale, all three reported currentLocale \"iframe.html\" while their\n markup asked for \"en\", \"ro\" and \"de\". Twelve usages in footer.stories.ts\n write it, including the documented usage example.\n\n max-columns-per-row has a single usage, in the playground, and it passes\n 2 -- which is already the default -- so repairing it changes no rendered\n output today. It is fixed with the other one because it is the same\n defect in the same declaration block, not because it was visible.\n\n Zero consumers of either working lowercase spelling across src, schemas\n and docs, and no property bindings, so naming the attributes is safe. */\n @property({ type: String, attribute: \"current-locale\" })\n currentLocale = DEFAULT_LOCALE;\n @property({ type: Number, attribute: \"max-columns-per-row\" })\n maxColumnsPerRow = 2;\n @state()\n _isMobile = matchesBelow('md');\n\n _localeExplicit?: boolean;\n _closingInPlace?: boolean;\n\n /* The viewport, as one media query's change event. It was a window resize\n listener, removed with a fresh .bind(this) that matched nothing, so every\n footer ever disconnected kept its listener and kept running. */\n _viewport = new MediaQueryController(this, below('md'), mobile => { this._isMobile = mobile; });\n\n connectedCallback() {\n super.connectedCallback();\n /* The footer is Bitdefender's on every page, a co-branded one included,\n wherever the page puts a partner's data-brand. Pinning it to the\n default theme reuses that theme's generated block, which restates every\n themable token, so nothing a partner changed reaches in here. The host's\n attributes are normally the page's; this one is the exception, because\n the requirement is absolute, not a default the page may override. */\n this.setAttribute('data-brand', DEFAULT_THEME);\n /* Whether the consuming page asked for a locale, captured before inference\n runs. An attribute in the markup counts, and so does a property assigned\n before the element connects -- both are the page stating its intent. A\n page that explicitly asks for 'en' is indistinguishable from one that\n said nothing, and that costs nothing: it asked for the value it gets. */\n this._localeExplicit =\n this.hasAttribute('current-locale') || this.currentLocale !== DEFAULT_LOCALE;\n this._initLocaleFromUrl();\n }\n\n firstUpdated(changedProps: PropertyValues<this>) {\n super.firstUpdated(changedProps);\n }\n\n updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('currentLocale')) {\n this._toggleImpressumVisibility();\n }\n }\n\n /* maxColumnsPerRow, finally read. The property has been declared here with\n a default of 2 since it was written, the manifest claims it, and\n footer.stories.ts documents it as \"Max columns per row in the quick-links\n grid\" -- and nothing ever looked at it. P7H.1 made the attribute reach the\n property; this makes the property reach the layout.\n\n It drives the grid the documentation names, through the cols-* attributes\n bd-grid observes since P7H. Mobile and sm stay at one column because the\n footer stacks there regardless of the cap, and md is capped at 2 because\n that is what md has always shown -- the property raises the ceiling at the\n widest breakpoint rather than redesigning the ladder.\n\n The default therefore renders exactly what it rendered before:\n min(2, 2) = 2 at md and 2 at lg, which is the pair that was hard-coded.\n Verified by measurement, not by reading.\n\n Clamped because the attribute is public: a 0, a negative or a fractional\n value would otherwise reach grid-template-columns as\n `repeat(0, 1fr)`. */\n get _maxColumns() {\n const n = Math.floor(Number(this.maxColumnsPerRow));\n return Number.isFinite(n) && n >= 1 ? n : 2;\n }\n\n _toggleImpressumVisibility() {\n toggleImpressum(this.shadowRoot!.querySelector<HTMLSlotElement>('slot[name=\"secondary-nav\"]'), this.locale);\n }\n\n /* Smooth only for a reader who has not asked for reduced motion. */\n _scrollToCountries() {\n this.shadowRoot!.querySelector('.footer-countries-container')\n ?.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n _scrollToTop() {\n this.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n get _scrollBehavior() {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth';\n }\n\n /* Locale precedence, and it is a precedence rather than a sequence of\n assignments -- which is what went wrong.\n\n 1. the country selector, when a reader picks one (see _selectCountry)\n 2. an explicit current-locale attribute or currentLocale property\n 3. a locale inferred from the first path segment, IF it resolves to a\n supported locale\n 4. DEFAULT_LOCALE\n\n Two defects sat in the old version, both in its closing lines. It ended\n with an unconditional `this.currentLocale = originalKey || urlLocale`,\n so:\n\n - an explicit input was silently overwritten by the environment. Measured:\n <bd-footer current-locale=\"ro\"> served from /de/ reported \"de\".\n - any first path segment became the locale verbatim, supported or not.\n Measured: /iframe.html reported currentLocale \"iframe.html\", and /zz-zz/\n reported \"zz-zz\".\n\n The second is why Storybook showed \"iframe.html\" as a locale, and the fix\n is not a Storybook exception -- there is none here. A segment that does\n not resolve against localeMap is simply not a locale, on any host. The\n resolution itself is localeFromPath (footer-locale.ts), which bd-footer-lp\n shares; only its authority is decided here. */\n _initLocaleFromUrl() {\n if (this._localeExplicit) return;\n\n const resolved = localeFromPath(window.location.pathname);\n\n /* Nothing resolved: the segment is not a locale, so neither the locale nor\n the country is touched. This is the line that used to assign the raw\n path segment. */\n if (!resolved) return;\n\n [this.currentLocale, this.selectedCountry] = resolved;\n }\n\n /* The country list is a <details>, so the browser keeps its state, its\n expanded/collapsed announcement and its keyboard, and finds a country in\n it with Ctrl+F while it is shut. What is left here is where the page\n scrolls: to the list when it opens, back to the footer when it shuts --\n except from the list's own close button on a phone, where the reader is\n already where they want to be. */\n _onCountriesToggle(e: Event) {\n if ((e.target as HTMLDetailsElement).open) this._scrollToCountries();\n else if (!this._closingInPlace) this._scrollToTop();\n this._closingInPlace = false;\n }\n\n /* Focus goes back to the summary, which is what opened the list: the\n button that had it is inside the list, and closing it hides it. */\n _closeCountries(e: MouseEvent) {\n const details = (e.currentTarget as HTMLButtonElement).closest('details')!;\n this._closingInPlace = this._isMobile;\n details.open = false;\n details.querySelector('summary')!.focus({ preventScroll: true });\n }\n\n getCountriesList(): Country[] {\n return Object.entries(localeMap).map(([locale, country]) => ({\n locale,\n label: country\n }));\n }\n\n /* The languages a country's label is written in: its place, and the\n language after the dash. lang is how the label is read aloud, and\n hreflang, not lang, says what the link leads to, so a label written in\n another language than its locale's says so (LABEL_LANG). */\n _labelLang({ locale }: Country) {\n return { place: locale, language: locale, ...LABEL_LANG[locale] };\n }\n\n /* The place in a lang of its own only when it differs from the rest. No\n whitespace is added: the label reads as localeMap spells it. */\n _renderCountryLabel(c: Country) {\n const { place, language } = this._labelLang(c);\n const [name, tongue] = c.label.split(' - ');\n if (place === language || tongue === undefined) return c.label;\n return html`<span lang=\"${place}\">${name}</span> - ${tongue}`;\n }\n\n /* The country the page is in: the one picked from the URL, or the one an\n explicit current-locale names exactly. */\n _isCurrentCountry({ locale, label }: Country) {\n return this.selectedCountry === label || locale.toLowerCase() === this.locale;\n }\n\n get locale() {\n const val = (this.currentLocale || 'en').toLowerCase();\n return val;\n }\n\n /* No _updateNavLinks. It queried '.footer-nav-main bd-link' inside this\n shadow root and wrote a locale into the href of everything it found, and it\n could never find anything: .footer-nav-main is rendered by bd-footer-nav\n into bd-footer-nav's own shadow root, and this template has only\n .footer-nav-main-container, the box its slot sits in. Measured 0 matches\n across the 22 built footer stories.\n\n So the four locale-aware nav hrefs it promised -- consumer,\n small-business, business, partners -- were never written, and no story\n depended on them. Localising slotted navigation is real work with a real\n API question (whose hrefs are they, and does a component rewrite markup it\n does not own); it is not this, and leaving this here made it look\n answered. */\n\n render() {\n const year = new Date().getFullYear();\n const showAnpc = this.locale.startsWith('ro');\n const countriesList = this.getCountriesList();\n\n const chunkSize = Math.ceil(countriesList.length / 3);\n const countryChunks = [\n countriesList.slice(0, chunkSize),\n countriesList.slice(chunkSize, chunkSize * 2),\n countriesList.slice(chunkSize * 2)\n ];\n\n const quickLinksSlot = this.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=\"quick-links\"]');\n const quickLinksElements = quickLinksSlot?.assignedElements({ flatten: true }) || [];\n\n const linksGroups: Element[] = [];\n quickLinksElements.forEach(el => {\n if (el.tagName === 'BD-FOOTER-LINKS-GROUP') {\n linksGroups.push(el);\n } else {\n const children = el.querySelectorAll ? el.querySelectorAll('bd-footer-links-group') : [];\n children.forEach(child => linksGroups.push(child));\n }\n });\n\n return html`\n <div class=\"footer-top-bleed\">\n <div class=\"bd-ensemble container\">\n <div class=\"footer-top\">\n <div class=\"footer-logo\">\n <slot name=\"logo\">\n <span>${footerLogo}</span>\n </slot>\n </div>\n <div class=\"footer-top-right\">\n <slot name=\"top-right\">\n <div slot=\"top-right\">\n <span slot=\"logo\">${footerMasterbrand}</span>\n </div>\n </slot>\n </div>\n </div>\n </div>\n </div>\n\n <footer class=\"bd-ensemble container\">\n <div class=\"footer-nav-main-container\">\n <slot name=\"nav\"></slot>\n </div>\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-links\">\n <div class=\"footer-links-left\">\n <bd-grid\n cols=\"1\"\n cols-sm=\"1\"\n cols-md=\"${Math.min(2, this._maxColumns)}\"\n cols-lg=\"${this._maxColumns}\"\n gap=\"lg\"\n align=\"start\"\n justify=\"start\"\n padding=\"none\"\n >\n <slot name=\"quick-links\"></slot>\n </bd-grid>\n </div>\n <bd-divider-horizontal class=\"tablet-divider\" width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-links-right social-icons\">\n <slot name=\"social-links\">\n <bd-link href=\"https://www.facebook.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-facebook\">Facebook</bd-link>\n <bd-link href=\"https://twitter.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-twitter\">Twitter</bd-link>\n <bd-link href=\"https://www.linkedin.com/company/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-linkedin\">LinkedIn</bd-link>\n <bd-link href=\"https://www.youtube.com/c/Bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-youtube\">YouTube</bd-link>\n <bd-link href=\"https://www.instagram.com/bitdefender/\" target=\"_blank\" variant=\"secondary\" class=\"bd-instagram\">Instagram</bd-link>\n <bd-link href=\"https://www.tiktok.com/@bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-tiktok\">TikTok</bd-link>\n </slot>\n </div>\n </div>\n\n ${!this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-middle-line\">\n <div class=\"secondary-nav-container\">\n <slot name=\"secondary-nav\"></slot>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n </div>\n <div class=\"footer-address\">\n <slot name=\"address\">\n <div>\n 111 W. Houston Street, Suite 2105, Frost Tower Building<br />\n San Antonio, Texas 78205\n </div>\n </slot>\n </div>\n </div>\n\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-extra\">\n <div class=\"footer-copy\">\n <slot name=\"copyright\">\n Copyright © 1997 - ${year} Bitdefender\n </slot>\n </div>\n\n ${showAnpc\n ? html`\n <div class=\"footer-anpc\">\n <slot name=\"anpc\">${footerAnpc}</slot>\n </div>\n `\n : null}\n\n <!-- The list is the summary's own content, so it opens under the\n toggle in the same row; the stylesheet runs it the row's full width.\n Its links are plain anchors: a reader who picks a country follows a\n link: hreflang says which language it leads to, lang which one its\n label is in. -->\n <!-- No icon here has a colour of its own: each takes its summary's or\n button's, so forced colours repaint it (footer.css.ts). -->\n <details class=\"footer-countries-toggle\" @toggle=\"${this._onCountriesToggle}\">\n <summary class=\"country-toggle\">\n <span class=\"country-toggle-row\">\n <bd-globe-icon size=\"20\"></bd-globe-icon>\n <span class=\"country-toggle-label\">${this.selectedCountry}</span>\n <bd-arrow-down-icon class=\"when-closed\" size=\"20\"></bd-arrow-down-icon>\n <bd-arrow-up-icon class=\"when-open\" size=\"20\"></bd-arrow-up-icon>\n </span>\n </summary>\n <div class=\"footer-countries-container\">\n <!-- The icon is the only content and bd-close-icon's svg is aria-hidden,\n so without a label this button had no accessible name at all: a\n screen reader announced \"button\" and nothing else. WCAG 2.2 SC\n 4.1.2. The name goes on the control, never on the icon -- naming\n both makes it announce twice. -->\n <button\n class=\"close-countries-button\"\n aria-label=\"Close country list\"\n @click=\"${this._closeCountries}\"\n >\n <bd-close-icon size=\"18\"></bd-close-icon>\n </button>\n ${countryChunks.map(chunk => html`\n <bd-footer-links-group title=\"${chunk === countryChunks[0] ? 'Choose your country' : ''}\">\n ${chunk.map(c => html`<a\n href=\"/${c.locale.toLowerCase()}/\"\n hreflang=\"${c.locale}\"\n lang=\"${this._labelLang(c).language}\"\n aria-current=\"${this._isCurrentCountry(c) ? 'true' : nothing}\"\n >${this._renderCountryLabel(c)}</a>`)}\n </bd-footer-links-group>\n `)}\n </div>\n </details>\n </div>\n </footer>\n`;\n }\n\n static styles = [ensembleCSS, footerCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-footer': BdFooter;\n }\n}\n"]}
1
+ {"version":3,"file":"footer.js","names":["footerCSS","_decorate","__decorate","footer_css_default","LABEL_LANG","BdFooter","LitElement","_args","matchesBelow","MediaQueryController","below","mobile","DEFAULT_THEME","changedProps","n","toggleImpressum","resolved","localeFromPath","details","localeMap","locale","country","c","name","tongue","place","language","label","year","showAnpc","countriesList","chunkSize","countryChunks","quickLinksElements","linksGroups","el","child","footerLogo","footerMasterbrand","footerAnpc","chunk","nothing","ensembleCSS","state","property","defineElement"],"sources":["../../../../src/components/footer/footer.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport { MediaQueryController } from '#shared/controller.media-query.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { DEFAULT_THEME } from '#tokens/themes/index.ts';\n/* The md boundary comes from the shared breakpoint source so the CSS and the\n JS cannot drift apart again: bd-footer switched at 767 while bd-footer-lp,\n sharing footer-nav-menu.css.ts, switched at 768 — so at exactly 768px the\n LP footer rendered its mobile markup under the desktop stylesheet. */\nimport { below, matchesBelow } from '#shared/token-scales.ts';\nimport '#components/divider/divider-horizontal.ts';\nimport '#components/divider/divider-vertical.ts';\nimport '#components/footer/footer-links-group.ts';\nimport '#components/footer/footer-nav-menu.ts';\nimport '#components/grid/grid.ts';\nimport '#components/link/link.ts';\nimport \"#components/icons/arrow-down-icon.ts\";\nimport \"#components/icons/arrow-up-icon.ts\";\nimport \"#components/icons/close-icon.ts\";\nimport \"#components/icons/globe-icon.ts\";\nimport footerCSS from './footer.css.ts';\nimport { ensembleCSS } from '#shared/ensemble.css.ts';\nimport { localeMap } from './localeMap.ts';\nimport { DEFAULT_LOCALE, localeFromPath, toggleImpressum } from './footer-locale.ts';\nimport { footerAnpc, footerLogo, footerMasterbrand } from './footer-images.ts';\n\n/* The labels in localeMap not written in their locale's language. A label is\n \"<place> - <language>\", and these two were read in a Chinese voice: Hong\n Kong's is English throughout, and Taiwan's place name is English beside\n 台灣. */\nconst LABEL_LANG: Record<string, { place?: string; language?: string }> = {\n 'zh-HK': { place: 'en', language: 'en' },\n 'zh-TW': { place: 'en' }\n};\n\ninterface Country {\n locale: string;\n label : string;\n}\n\n@defineElement('bd-footer')\nexport class BdFooter extends LitElement {\n @state()\n selectedCountry = 'Choose your country';\n /* `current-locale` and `max-columns-per-row`, both documented dash-cased\n and both previously inert for the same reason as bd-header above: Lit\n lowercases a property name to get its observed attribute, so these were\n listening for `currentlocale` and `maxcolumnsperrow`.\n\n current-locale is the consequential one, and it did not merely fail --\n it failed into nonsense. The attribute was ignored, so the locale fell\n through to URL detection, and under Storybook the path is /iframe.html:\n measured on Components/Footer Default, Romanian Locale and German\n Locale, all three reported currentLocale \"iframe.html\" while their\n markup asked for \"en\", \"ro\" and \"de\". Twelve usages in footer.stories.ts\n write it, including the documented usage example.\n\n max-columns-per-row has a single usage, in the playground, and it passes\n 2 -- which is already the default -- so repairing it changes no rendered\n output today. It is fixed with the other one because it is the same\n defect in the same declaration block, not because it was visible.\n\n Zero consumers of either working lowercase spelling across src, schemas\n and docs, and no property bindings, so naming the attributes is safe. */\n @property({ type: String, attribute: \"current-locale\" })\n currentLocale = DEFAULT_LOCALE;\n @property({ type: Number, attribute: \"max-columns-per-row\" })\n maxColumnsPerRow = 2;\n @state()\n _isMobile = matchesBelow('md');\n\n _localeExplicit?: boolean;\n _closingInPlace?: boolean;\n\n /* The viewport, as one media query's change event. It was a window resize\n listener, removed with a fresh .bind(this) that matched nothing, so every\n footer ever disconnected kept its listener and kept running. */\n _viewport = new MediaQueryController(this, below('md'), mobile => { this._isMobile = mobile; });\n\n connectedCallback() {\n super.connectedCallback();\n /* The footer is Bitdefender's on every page, a co-branded one included,\n wherever the page puts a partner's data-brand. Pinning it to the\n default theme reuses that theme's generated block, which restates every\n themable token, so nothing a partner changed reaches in here. The host's\n attributes are normally the page's; this one is the exception, because\n the requirement is absolute, not a default the page may override. */\n this.setAttribute('data-brand', DEFAULT_THEME);\n /* Whether the consuming page asked for a locale, captured before inference\n runs. An attribute in the markup counts, and so does a property assigned\n before the element connects -- both are the page stating its intent. A\n page that explicitly asks for 'en' is indistinguishable from one that\n said nothing, and that costs nothing: it asked for the value it gets. */\n this._localeExplicit =\n this.hasAttribute('current-locale') || this.currentLocale !== DEFAULT_LOCALE;\n this._initLocaleFromUrl();\n }\n\n firstUpdated(changedProps: PropertyValues<this>) {\n super.firstUpdated(changedProps);\n }\n\n updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('currentLocale')) {\n this._toggleImpressumVisibility();\n }\n }\n\n /* maxColumnsPerRow, finally read. The property has been declared here with\n a default of 2 since it was written, the manifest claims it, and\n footer.stories.ts documents it as \"Max columns per row in the quick-links\n grid\" -- and nothing ever looked at it. P7H.1 made the attribute reach the\n property; this makes the property reach the layout.\n\n It drives the grid the documentation names, through the cols-* attributes\n bd-grid observes since P7H. Mobile and sm stay at one column because the\n footer stacks there regardless of the cap, and md is capped at 2 because\n that is what md has always shown -- the property raises the ceiling at the\n widest breakpoint rather than redesigning the ladder.\n\n The default therefore renders exactly what it rendered before:\n min(2, 2) = 2 at md and 2 at lg, which is the pair that was hard-coded.\n Verified by measurement, not by reading.\n\n Clamped because the attribute is public: a 0, a negative or a fractional\n value would otherwise reach grid-template-columns as\n `repeat(0, 1fr)`. */\n get _maxColumns() {\n const n = Math.floor(Number(this.maxColumnsPerRow));\n return Number.isFinite(n) && n >= 1 ? n : 2;\n }\n\n _toggleImpressumVisibility() {\n toggleImpressum(this.shadowRoot!.querySelector<HTMLSlotElement>('slot[name=\"secondary-nav\"]'), this.locale);\n }\n\n /* Smooth only for a reader who has not asked for reduced motion. */\n _scrollToCountries() {\n this.shadowRoot!.querySelector('.footer-countries-container')\n ?.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n _scrollToTop() {\n this.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n get _scrollBehavior() {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth';\n }\n\n /* Locale precedence, and it is a precedence rather than a sequence of\n assignments -- which is what went wrong.\n\n 1. the country selector, when a reader picks one (see _selectCountry)\n 2. an explicit current-locale attribute or currentLocale property\n 3. a locale inferred from the first path segment, IF it resolves to a\n supported locale\n 4. DEFAULT_LOCALE\n\n Two defects sat in the old version, both in its closing lines. It ended\n with an unconditional `this.currentLocale = originalKey || urlLocale`,\n so:\n\n - an explicit input was silently overwritten by the environment. Measured:\n <bd-footer current-locale=\"ro\"> served from /de/ reported \"de\".\n - any first path segment became the locale verbatim, supported or not.\n Measured: /iframe.html reported currentLocale \"iframe.html\", and /zz-zz/\n reported \"zz-zz\".\n\n The second is why Storybook showed \"iframe.html\" as a locale, and the fix\n is not a Storybook exception -- there is none here. A segment that does\n not resolve against localeMap is simply not a locale, on any host. The\n resolution itself is localeFromPath (footer-locale.ts), which bd-footer-lp\n shares; only its authority is decided here. */\n _initLocaleFromUrl() {\n if (this._localeExplicit) return;\n\n const resolved = localeFromPath(window.location.pathname);\n\n /* Nothing resolved: the segment is not a locale, so neither the locale nor\n the country is touched. This is the line that used to assign the raw\n path segment. */\n if (!resolved) return;\n\n [this.currentLocale, this.selectedCountry] = resolved;\n }\n\n /* The country list is a <details>, so the browser keeps its state, its\n expanded/collapsed announcement and its keyboard, and finds a country in\n it with Ctrl+F while it is shut. What is left here is where the page\n scrolls: to the list when it opens, back to the footer when it shuts --\n except from the list's own close button on a phone, where the reader is\n already where they want to be. */\n _onCountriesToggle(e: Event) {\n if ((e.target as HTMLDetailsElement).open) this._scrollToCountries();\n else if (!this._closingInPlace) this._scrollToTop();\n this._closingInPlace = false;\n }\n\n /* Focus goes back to the summary, which is what opened the list: the\n button that had it is inside the list, and closing it hides it. */\n _closeCountries(e: MouseEvent) {\n const details = (e.currentTarget as HTMLButtonElement).closest('details')!;\n this._closingInPlace = this._isMobile;\n details.open = false;\n details.querySelector('summary')!.focus({ preventScroll: true });\n }\n\n getCountriesList(): Country[] {\n return Object.entries(localeMap).map(([locale, country]) => ({\n locale,\n label: country\n }));\n }\n\n /* The languages a country's label is written in: its place, and the\n language after the dash. lang is how the label is read aloud, and\n hreflang, not lang, says what the link leads to, so a label written in\n another language than its locale's says so (LABEL_LANG). */\n _labelLang({ locale }: Country) {\n return { place: locale, language: locale, ...LABEL_LANG[locale] };\n }\n\n /* The place in a lang of its own only when it differs from the rest. No\n whitespace is added: the label reads as localeMap spells it. */\n _renderCountryLabel(c: Country) {\n const { place, language } = this._labelLang(c);\n const [name, tongue] = c.label.split(' - ');\n if (place === language || tongue === undefined) return c.label;\n return html`<span lang=\"${place}\">${name}</span> - ${tongue}`;\n }\n\n /* The country the page is in: the one picked from the URL, or the one an\n explicit current-locale names exactly. */\n _isCurrentCountry({ locale, label }: Country) {\n return this.selectedCountry === label || locale.toLowerCase() === this.locale;\n }\n\n get locale() {\n const val = (this.currentLocale || 'en').toLowerCase();\n return val;\n }\n\n /* No _updateNavLinks. It queried '.footer-nav-main bd-link' inside this\n shadow root and wrote a locale into the href of everything it found, and it\n could never find anything: .footer-nav-main is rendered by bd-footer-nav\n into bd-footer-nav's own shadow root, and this template has only\n .footer-nav-main-container, the box its slot sits in. Measured 0 matches\n across the 22 built footer stories.\n\n So the four locale-aware nav hrefs it promised -- consumer,\n small-business, business, partners -- were never written, and no story\n depended on them. Localising slotted navigation is real work with a real\n API question (whose hrefs are they, and does a component rewrite markup it\n does not own); it is not this, and leaving this here made it look\n answered. */\n\n render() {\n const year = new Date().getFullYear();\n const showAnpc = this.locale.startsWith('ro');\n const countriesList = this.getCountriesList();\n\n const chunkSize = Math.ceil(countriesList.length / 3);\n const countryChunks = [\n countriesList.slice(0, chunkSize),\n countriesList.slice(chunkSize, chunkSize * 2),\n countriesList.slice(chunkSize * 2)\n ];\n\n const quickLinksSlot = this.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=\"quick-links\"]');\n const quickLinksElements = quickLinksSlot?.assignedElements({ flatten: true }) || [];\n\n const linksGroups: Element[] = [];\n quickLinksElements.forEach(el => {\n if (el.tagName === 'BD-FOOTER-LINKS-GROUP') {\n linksGroups.push(el);\n } else {\n const children = el.querySelectorAll ? el.querySelectorAll('bd-footer-links-group') : [];\n children.forEach(child => linksGroups.push(child));\n }\n });\n\n return html`\n <div class=\"footer-top-bleed\">\n <div class=\"bd-ensemble container\">\n <div class=\"footer-top\">\n <div class=\"footer-logo\">\n <slot name=\"logo\">\n <span>${footerLogo}</span>\n </slot>\n </div>\n <div class=\"footer-top-right\">\n <slot name=\"top-right\">\n <div slot=\"top-right\">\n <span slot=\"logo\">${footerMasterbrand}</span>\n </div>\n </slot>\n </div>\n </div>\n </div>\n </div>\n\n <footer class=\"bd-ensemble container\">\n <div class=\"footer-nav-main-container\">\n <slot name=\"nav\"></slot>\n </div>\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-links\">\n <div class=\"footer-links-left\">\n <bd-grid\n cols=\"1\"\n cols-sm=\"1\"\n cols-md=\"${Math.min(2, this._maxColumns)}\"\n cols-lg=\"${this._maxColumns}\"\n gap=\"lg\"\n align=\"start\"\n justify=\"start\"\n padding=\"none\"\n >\n <slot name=\"quick-links\"></slot>\n </bd-grid>\n </div>\n <bd-divider-horizontal class=\"tablet-divider\" width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-links-right social-icons\">\n <slot name=\"social-links\">\n <bd-link href=\"https://www.facebook.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-facebook\">Facebook</bd-link>\n <bd-link href=\"https://twitter.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-twitter\">Twitter</bd-link>\n <bd-link href=\"https://www.linkedin.com/company/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-linkedin\">LinkedIn</bd-link>\n <bd-link href=\"https://www.youtube.com/c/Bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-youtube\">YouTube</bd-link>\n <bd-link href=\"https://www.instagram.com/bitdefender/\" target=\"_blank\" variant=\"secondary\" class=\"bd-instagram\">Instagram</bd-link>\n <bd-link href=\"https://www.tiktok.com/@bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-tiktok\">TikTok</bd-link>\n </slot>\n </div>\n </div>\n\n ${!this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-middle-line\">\n <div class=\"secondary-nav-container\">\n <slot name=\"secondary-nav\"></slot>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n </div>\n <div class=\"footer-address\">\n <slot name=\"address\">\n <div>\n 111 W. Houston Street, Suite 2105, Frost Tower Building<br />\n San Antonio, Texas 78205\n </div>\n </slot>\n </div>\n </div>\n\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-extra\">\n <div class=\"footer-copy\">\n <slot name=\"copyright\">\n Copyright © 1997 - ${year} Bitdefender\n </slot>\n </div>\n\n ${showAnpc\n ? html`\n <div class=\"footer-anpc\">\n <slot name=\"anpc\">${footerAnpc}</slot>\n </div>\n `\n : null}\n\n <!-- The list is the summary's own content, so it opens under the\n toggle in the same row; the stylesheet runs it the row's full width.\n Its links are plain anchors: a reader who picks a country follows a\n link: hreflang says which language it leads to, lang which one its\n label is in. -->\n <!-- No icon here has a colour of its own: each takes its summary's or\n button's, so forced colours repaint it (footer.css.ts). -->\n <details class=\"footer-countries-toggle\" @toggle=\"${this._onCountriesToggle}\">\n <summary class=\"country-toggle\">\n <span class=\"country-toggle-row\">\n <bd-globe-icon size=\"20\"></bd-globe-icon>\n <span class=\"country-toggle-label\">${this.selectedCountry}</span>\n <bd-arrow-down-icon class=\"when-closed\" size=\"20\"></bd-arrow-down-icon>\n <bd-arrow-up-icon class=\"when-open\" size=\"20\"></bd-arrow-up-icon>\n </span>\n </summary>\n <div class=\"footer-countries-container\">\n <!-- The icon is the only content and bd-close-icon's svg is aria-hidden,\n so without a label this button had no accessible name at all: a\n screen reader announced \"button\" and nothing else. WCAG 2.2 SC\n 4.1.2. The name goes on the control, never on the icon -- naming\n both makes it announce twice. -->\n <button\n class=\"close-countries-button\"\n aria-label=\"Close country list\"\n @click=\"${this._closeCountries}\"\n >\n <bd-close-icon size=\"18\"></bd-close-icon>\n </button>\n ${countryChunks.map(chunk => html`\n <bd-footer-links-group title=\"${chunk === countryChunks[0] ? 'Choose your country' : ''}\">\n ${chunk.map(c => html`<a\n href=\"/${c.locale.toLowerCase()}/\"\n hreflang=\"${c.locale}\"\n lang=\"${this._labelLang(c).language}\"\n aria-current=\"${this._isCurrentCountry(c) ? 'true' : nothing}\"\n >${this._renderCountryLabel(c)}</a>`)}\n </bd-footer-links-group>\n `)}\n </div>\n </details>\n </div>\n </footer>\n`;\n }\n\n static styles = [ensembleCSS, footerCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-footer': BdFooter;\n }\n}\n"],"mappings":"A,okCAgCA,IAAMI,EAAoE,CACxE,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A,EAsBNJ,EAAA,CAAA2C,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAvC,EAAA,UAAA,gBAAA,IAAA,EAAA,EAEtDJ,EAAA,CAAA2C,EAAS,CAAE,KAAM,OAAQ,UAAW,qBAAsB,CAAC,CAAA,EAAAvC,EAAA,UAAA,mBAAA,IAAA,EAAA,EAE3DJ,EAAA,CAAA0C,EAAM,CAAA,EAAAtC,EAAA,UAAA,YAAA,IAAA,EAAA,EA5BR,EAAAJ,EAAA,CAAA4C,EAAc,WAAW,CAAA,EAAAxC,CAAA,E"}
@@ -1,2 +1,2 @@
1
- export const localeMap = { "en-AU": "Australia - English", "nl-BE": "België - Nederlands", "fr-BE": "Belgique - Français", "en-BZ": "Belize - English", "pt-BR": "Brasil - Português", "en-BG": "Bulgaria - English", "en-CA": "Canada - English", "es-CL": "Chile - Español", "es-CO": "Colombia - Español", "en-CZ": "Czechia - English", "en-DK": "Denmark - English", "de-DE": "Deutschland - Deutsch", "es-ES": "España - Español", "fr-FR": "France - Français", "zh-HK": "Hong Kong - China", "en-HU": "Hungary - English", "en-IN": "India - English", "en-ID": "Indonesia - English", "en-IL": "Israel - English", "it-IT": "Italia - Italiano", "en-JM": "Jamaica - English", "en-LV": "Latvia - English", "en-MY": "Malaysia - English", "en-MT": "Malta - English", "es-MX": "México - Español", "nl-NL": "Nederland - Nederlands", "en-NZ": "New Zealand - English", "en-NO": "Norway - English", "de-AT": "Österreich - Deutsch", "es-PE": "Perú - Español", "en-PH": "Philippines - English", "en-PL": "Poland - English", "pt-PT": "Portugal - Português", "ro-RO": "România - Română", "en-SA": "Saudi Arabia - English", "de-CH": "Schweiz - Deutsch", "en-SG": "Singapore - English", "en-ZA": "South Africa - English", "en-KR": "South Korea - English", "sv-SE": "Sverige - Svenska", "zh-TW": "Taiwan - 台灣", "en-TH": "Thailand - English", "en-AE": "United Arab Emirates - English", "en-GB": "United Kingdom - English", "en-US": "United States - English", "ja-JP": "日本 - 日本語" };
1
+ var e={"en-AU":`Australia - English`,"nl-BE":`België - Nederlands`,"fr-BE":`Belgique - Français`,"en-BZ":`Belize - English`,"pt-BR":`Brasil - Português`,"en-BG":`Bulgaria - English`,"en-CA":`Canada - English`,"es-CL":`Chile - Español`,"es-CO":`Colombia - Español`,"en-CZ":`Czechia - English`,"en-DK":`Denmark - English`,"de-DE":`Deutschland - Deutsch`,"es-ES":`España - Español`,"fr-FR":`France - Français`,"zh-HK":`Hong Kong - China`,"en-HU":`Hungary - English`,"en-IN":`India - English`,"en-ID":`Indonesia - English`,"en-IL":`Israel - English`,"it-IT":`Italia - Italiano`,"en-JM":`Jamaica - English`,"en-LV":`Latvia - English`,"en-MY":`Malaysia - English`,"en-MT":`Malta - English`,"es-MX":`México - Español`,"nl-NL":`Nederland - Nederlands`,"en-NZ":`New Zealand - English`,"en-NO":`Norway - English`,"de-AT":`Österreich - Deutsch`,"es-PE":`Perú - Español`,"en-PH":`Philippines - English`,"en-PL":`Poland - English`,"pt-PT":`Portugal - Português`,"ro-RO":`România - Română`,"en-SA":`Saudi Arabia - English`,"de-CH":`Schweiz - Deutsch`,"en-SG":`Singapore - English`,"en-ZA":`South Africa - English`,"en-KR":`South Korea - English`,"sv-SE":`Sverige - Svenska`,"zh-TW":`Taiwan - 台灣`,"en-TH":`Thailand - English`,"en-AE":`United Arab Emirates - English`,"en-GB":`United Kingdom - English`,"en-US":`United States - English`,"ja-JP":`日本 - 日本語`};export{e as localeMap};
2
2
  //# sourceMappingURL=localeMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"localeMap.js","sourceRoot":"","sources":["../../../../src/components/footer/localeMap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAA2B,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,gCAAgC,EAAE,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,yBAAyB,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["export const localeMap: Record<string, string> = { \"en-AU\": \"Australia - English\", \"nl-BE\": \"België - Nederlands\", \"fr-BE\": \"Belgique - Français\", \"en-BZ\": \"Belize - English\", \"pt-BR\": \"Brasil - Português\", \"en-BG\": \"Bulgaria - English\", \"en-CA\": \"Canada - English\", \"es-CL\": \"Chile - Español\", \"es-CO\": \"Colombia - Español\", \"en-CZ\": \"Czechia - English\", \"en-DK\": \"Denmark - English\", \"de-DE\": \"Deutschland - Deutsch\", \"es-ES\": \"España - Español\", \"fr-FR\": \"France - Français\", \"zh-HK\": \"Hong Kong - China\", \"en-HU\": \"Hungary - English\", \"en-IN\": \"India - English\", \"en-ID\": \"Indonesia - English\", \"en-IL\": \"Israel - English\", \"it-IT\": \"Italia - Italiano\", \"en-JM\": \"Jamaica - English\", \"en-LV\": \"Latvia - English\", \"en-MY\": \"Malaysia - English\", \"en-MT\": \"Malta - English\", \"es-MX\": \"México - Español\", \"nl-NL\": \"Nederland - Nederlands\", \"en-NZ\": \"New Zealand - English\", \"en-NO\": \"Norway - English\", \"de-AT\": \"Österreich - Deutsch\", \"es-PE\": \"Perú - Español\", \"en-PH\": \"Philippines - English\", \"en-PL\": \"Poland - English\", \"pt-PT\": \"Portugal - Português\", \"ro-RO\": \"România - Română\", \"en-SA\": \"Saudi Arabia - English\", \"de-CH\": \"Schweiz - Deutsch\", \"en-SG\": \"Singapore - English\", \"en-ZA\": \"South Africa - English\", \"en-KR\": \"South Korea - English\", \"sv-SE\": \"Sverige - Svenska\", \"zh-TW\": \"Taiwan - 台灣\", \"en-TH\": \"Thailand - English\", \"en-AE\": \"United Arab Emirates - English\", \"en-GB\": \"United Kingdom - English\", \"en-US\": \"United States - English\", \"ja-JP\": \"日本 - 日本語\" };"]}
1
+ {"version":3,"file":"localeMap.js","names":["localeMap"],"sources":["../../../../src/components/footer/localeMap.ts"],"sourcesContent":["export const localeMap: Record<string, string> = { \"en-AU\": \"Australia - English\", \"nl-BE\": \"België - Nederlands\", \"fr-BE\": \"Belgique - Français\", \"en-BZ\": \"Belize - English\", \"pt-BR\": \"Brasil - Português\", \"en-BG\": \"Bulgaria - English\", \"en-CA\": \"Canada - English\", \"es-CL\": \"Chile - Español\", \"es-CO\": \"Colombia - Español\", \"en-CZ\": \"Czechia - English\", \"en-DK\": \"Denmark - English\", \"de-DE\": \"Deutschland - Deutsch\", \"es-ES\": \"España - Español\", \"fr-FR\": \"France - Français\", \"zh-HK\": \"Hong Kong - China\", \"en-HU\": \"Hungary - English\", \"en-IN\": \"India - English\", \"en-ID\": \"Indonesia - English\", \"en-IL\": \"Israel - English\", \"it-IT\": \"Italia - Italiano\", \"en-JM\": \"Jamaica - English\", \"en-LV\": \"Latvia - English\", \"en-MY\": \"Malaysia - English\", \"en-MT\": \"Malta - English\", \"es-MX\": \"México - Español\", \"nl-NL\": \"Nederland - Nederlands\", \"en-NZ\": \"New Zealand - English\", \"en-NO\": \"Norway - English\", \"de-AT\": \"Österreich - Deutsch\", \"es-PE\": \"Perú - Español\", \"en-PH\": \"Philippines - English\", \"en-PL\": \"Poland - English\", \"pt-PT\": \"Portugal - Português\", \"ro-RO\": \"România - Română\", \"en-SA\": \"Saudi Arabia - English\", \"de-CH\": \"Schweiz - Deutsch\", \"en-SG\": \"Singapore - English\", \"en-ZA\": \"South Africa - English\", \"en-KR\": \"South Korea - English\", \"sv-SE\": \"Sverige - Svenska\", \"zh-TW\": \"Taiwan - 台灣\", \"en-TH\": \"Thailand - English\", \"en-AE\": \"United Arab Emirates - English\", \"en-GB\": \"United Kingdom - English\", \"en-US\": \"United States - English\", \"ja-JP\": \"日本 - 日本語\" };"],"mappings":"AAAA,IAAaA,EAAoC,CAAE,QAAS,sBAAuB,QAAS,sBAAuB,QAAS,sBAAuB,QAAS,mBAAoB,QAAS,qBAAsB,QAAS,qBAAsB,QAAS,mBAAoB,QAAS,kBAAmB,QAAS,qBAAsB,QAAS,oBAAqB,QAAS,oBAAqB,QAAS,wBAAyB,QAAS,mBAAoB,QAAS,oBAAqB,QAAS,oBAAqB,QAAS,oBAAqB,QAAS,kBAAmB,QAAS,sBAAuB,QAAS,mBAAoB,QAAS,oBAAqB,QAAS,oBAAqB,QAAS,mBAAoB,QAAS,qBAAsB,QAAS,kBAAmB,QAAS,mBAAoB,QAAS,yBAA0B,QAAS,wBAAyB,QAAS,mBAAoB,QAAS,uBAAwB,QAAS,iBAAkB,QAAS,wBAAyB,QAAS,mBAAoB,QAAS,uBAAwB,QAAS,mBAAoB,QAAS,yBAA0B,QAAS,oBAAqB,QAAS,sBAAuB,QAAS,yBAA0B,QAAS,wBAAyB,QAAS,oBAAqB,QAAS,cAAe,QAAS,qBAAsB,QAAS,iCAAkC,QAAS,2BAA4B,QAAS,0BAA2B,QAAS,UAAW,E"}
@@ -1,79 +1,2 @@
1
- import { css, unsafeCSS } from "lit";
2
- import { above } from "../shared/token-scales.js";
3
- /* The column steps follow the screen: cols, then cols-sm, cols-md and
4
- cols-lg from 576, 768 and 992 -- the sm, md and lg every other breakpoint
5
- in this package means. A grid's steps are a page's structure, and that is
6
- a question about the screen; it can answer differently at the same width
7
- in two places -- a 492 grid across a 600 screen and a 518 one beside the
8
- stat highlight at 1280 hold different layouts on the homepage.
9
-
10
- 2.6.0 stepped by the grid's own width instead, at the page column's widths
11
- (492, 656, 880). A grid as wide as the page stepped where it always had; a
12
- narrower one never reached its upper steps, so the homepage's stat tiles,
13
- two across beside the highlight since they were drawn, stacked one a row
14
- on every desktop, and bd-footer opted its grid out to keep its layout.
15
- Nothing that was measured gained from it, so the steps read the screen
16
- again.
17
-
18
- What reading its own width was for -- a 3-column step taken at a 992
19
- screen gave a 360 column 104px cells -- is min-col-width's: each step's
20
- count becomes the most columns there will be, and a column is never
21
- narrower than min-col-width, so a grid in a narrow column takes fewer,
22
- wider ones, wherever it is laid out. It asks the cells, which is the
23
- question a collection has, where the page's widths could only be answered
24
- by a grid as wide as the page. */
25
- export default css `
26
- :host {
27
- display: block;
28
- }
29
-
30
- /* Each step below says only which columns and which gap apply; they are
31
- laid out here, once, so that min-col-width reads the same two. */
32
- .grid {
33
- display: grid;
34
- align-items: stretch;
35
- justify-items: start;
36
- --grid-cols-active: var(--grid-cols);
37
- --grid-gap-active: var(--grid-gap, var(--spacing-24));
38
- grid-template-columns: repeat(var(--grid-cols-active), 1fr);
39
- gap: var(--grid-gap-active);
40
- }
41
-
42
- /* The columns and the gap step together; a gap left unset carries the
43
- one below it up. */
44
- @media ${unsafeCSS(above('sm'))} {
45
- .grid {
46
- --grid-cols-active: var(--grid-cols-sm);
47
- --grid-gap-active: var(--grid-gap-sm, var(--spacing-24));
48
- }
49
- }
50
-
51
- @media ${unsafeCSS(above('md'))} {
52
- .grid {
53
- --grid-cols-active: var(--grid-cols-md);
54
- --grid-gap-active: var(--grid-gap-md, var(--spacing-24));
55
- }
56
- }
57
-
58
- @media ${unsafeCSS(above('lg'))} {
59
- .grid {
60
- --grid-cols-active: var(--grid-cols-lg);
61
- --grid-gap-active: var(--grid-gap-lg, var(--spacing-24));
62
- }
63
- }
64
-
65
- /* min-col-width: as many columns as fit at min-col-width, up to the
66
- step's count. auto-fill takes as many as fit; the second term of max()
67
- is what holds it to the count -- a column at least the grid less the
68
- count's gaps, over the count, leaves no room for one more, with a gap
69
- to spare so rounding cannot drop one either; and min(100%, ...) keeps
70
- one column inside a grid narrower than the floor. The columns then
71
- share what is left, as 1fr always has. */
72
- .grid.grid--fit {
73
- grid-template-columns: repeat(auto-fill, minmax(min(100%, max(
74
- var(--grid-min-col-width),
75
- (100% - var(--grid-cols-active) * var(--grid-gap-active)) / var(--grid-cols-active)
76
- )), 1fr));
77
- }
78
- `;
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.grid{--grid-cols-active:var(--grid-cols);--grid-gap-active:var(--grid-gap,var(--spacing-24));grid-template-columns:repeat(var(--grid-cols-active), 1fr);place-items:stretch start;gap:var(--grid-gap-active);display:grid}@media (width>=576px){.grid{--grid-cols-active:var(--grid-cols-sm);--grid-gap-active:var(--grid-gap-sm,var(--spacing-24))}}@media (width>=768px){.grid{--grid-cols-active:var(--grid-cols-md);--grid-gap-active:var(--grid-gap-md,var(--spacing-24))}}@media (width>=992px){.grid{--grid-cols-active:var(--grid-cols-lg);--grid-gap-active:var(--grid-gap-lg,var(--spacing-24))}}.grid.grid--fit{grid-template-columns:repeat(auto-fill, minmax(min(100%, max(var(--grid-min-col-width), (100% - var(--grid-cols-active) * var(--grid-gap-active)) / var(--grid-cols-active))), 1fr))}`;export{t as default};
79
2
  //# sourceMappingURL=grid.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.css.js","sourceRoot":"","sources":["../../../../src/components/grid/grid.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;oCAqBoC;AACpC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;aAmBL,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;aAOtB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;aAOtB,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;CAoBlC,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"../shared/token-scales.ts\";\n\n/* The column steps follow the screen: cols, then cols-sm, cols-md and\n cols-lg from 576, 768 and 992 -- the sm, md and lg every other breakpoint\n in this package means. A grid's steps are a page's structure, and that is\n a question about the screen; it can answer differently at the same width\n in two places -- a 492 grid across a 600 screen and a 518 one beside the\n stat highlight at 1280 hold different layouts on the homepage.\n\n 2.6.0 stepped by the grid's own width instead, at the page column's widths\n (492, 656, 880). A grid as wide as the page stepped where it always had; a\n narrower one never reached its upper steps, so the homepage's stat tiles,\n two across beside the highlight since they were drawn, stacked one a row\n on every desktop, and bd-footer opted its grid out to keep its layout.\n Nothing that was measured gained from it, so the steps read the screen\n again.\n\n What reading its own width was for -- a 3-column step taken at a 992\n screen gave a 360 column 104px cells -- is min-col-width's: each step's\n count becomes the most columns there will be, and a column is never\n narrower than min-col-width, so a grid in a narrow column takes fewer,\n wider ones, wherever it is laid out. It asks the cells, which is the\n question a collection has, where the page's widths could only be answered\n by a grid as wide as the page. */\nexport default css`\n :host {\n display: block;\n }\n\n /* Each step below says only which columns and which gap apply; they are\n laid out here, once, so that min-col-width reads the same two. */\n .grid {\n display: grid;\n align-items: stretch;\n justify-items: start;\n --grid-cols-active: var(--grid-cols);\n --grid-gap-active: var(--grid-gap, var(--spacing-24));\n grid-template-columns: repeat(var(--grid-cols-active), 1fr);\n gap: var(--grid-gap-active);\n }\n\n /* The columns and the gap step together; a gap left unset carries the\n one below it up. */\n @media ${unsafeCSS(above('sm'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-sm);\n --grid-gap-active: var(--grid-gap-sm, var(--spacing-24));\n }\n }\n\n @media ${unsafeCSS(above('md'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-md);\n --grid-gap-active: var(--grid-gap-md, var(--spacing-24));\n }\n }\n\n @media ${unsafeCSS(above('lg'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-lg);\n --grid-gap-active: var(--grid-gap-lg, var(--spacing-24));\n }\n }\n\n /* min-col-width: as many columns as fit at min-col-width, up to the\n step's count. auto-fill takes as many as fit; the second term of max()\n is what holds it to the count -- a column at least the grid less the\n count's gaps, over the count, leaves no room for one more, with a gap\n to spare so rounding cannot drop one either; and min(100%, ...) keeps\n one column inside a grid narrower than the floor. The columns then\n share what is left, as 1fr always has. */\n .grid.grid--fit {\n grid-template-columns: repeat(auto-fill, minmax(min(100%, max(\n var(--grid-min-col-width),\n (100% - var(--grid-cols-active) * var(--grid-gap-active)) / var(--grid-cols-active)\n )), 1fr));\n }\n`;\n"]}
1
+ {"version":3,"file":"grid.css.js","names":["grid_css_default"],"sources":["../../../../src/components/grid/grid.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* The column steps follow the screen: cols, then cols-sm, cols-md and\n cols-lg from 576, 768 and 992 -- the sm, md and lg every other breakpoint\n in this package means. A grid's steps are a page's structure, and that is\n a question about the screen; it can answer differently at the same width\n in two places -- a 492 grid across a 600 screen and a 518 one beside the\n stat highlight at 1280 hold different layouts on the homepage.\n\n 2.6.0 stepped by the grid's own width instead, at the page column's widths\n (492, 656, 880). A grid as wide as the page stepped where it always had; a\n narrower one never reached its upper steps, so the homepage's stat tiles,\n two across beside the highlight since they were drawn, stacked one a row\n on every desktop, and bd-footer opted its grid out to keep its layout.\n Nothing that was measured gained from it, so the steps read the screen\n again.\n\n What reading its own width was for -- a 3-column step taken at a 992\n screen gave a 360 column 104px cells -- is min-col-width's: each step's\n count becomes the most columns there will be, and a column is never\n narrower than min-col-width, so a grid in a narrow column takes fewer,\n wider ones, wherever it is laid out. It asks the cells, which is the\n question a collection has, where the page's widths could only be answered\n by a grid as wide as the page. */\nexport default css`\n :host {\n display: block;\n }\n\n /* Each step below says only which columns and which gap apply; they are\n laid out here, once, so that min-col-width reads the same two. */\n .grid {\n display: grid;\n align-items: stretch;\n justify-items: start;\n --grid-cols-active: var(--grid-cols);\n --grid-gap-active: var(--grid-gap, var(--spacing-24));\n grid-template-columns: repeat(var(--grid-cols-active), 1fr);\n gap: var(--grid-gap-active);\n }\n\n /* The columns and the gap step together; a gap left unset carries the\n one below it up. */\n @media ${unsafeCSS(above('sm'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-sm);\n --grid-gap-active: var(--grid-gap-sm, var(--spacing-24));\n }\n }\n\n @media ${unsafeCSS(above('md'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-md);\n --grid-gap-active: var(--grid-gap-md, var(--spacing-24));\n }\n }\n\n @media ${unsafeCSS(above('lg'))} {\n .grid {\n --grid-cols-active: var(--grid-cols-lg);\n --grid-gap-active: var(--grid-gap-lg, var(--spacing-24));\n }\n }\n\n /* min-col-width: as many columns as fit at min-col-width, up to the\n step's count. auto-fill takes as many as fit; the second term of max()\n is what holds it to the count -- a column at least the grid less the\n count's gaps, over the count, leaves no room for one more, with a gap\n to spare so rounding cannot drop one either; and min(100%, ...) keeps\n one column inside a grid narrower than the floor. The columns then\n share what is left, as 1fr always has. */\n .grid.grid--fit {\n grid-template-columns: repeat(auto-fill, minmax(min(100%, max(\n var(--grid-min-col-width),\n (100% - var(--grid-cols-active) * var(--grid-gap-active)) / var(--grid-cols-active)\n )), 1fr));\n }\n`;\n"],"mappings":"A,4DAyBA,IAAAA,EAAe,CAAG,wyB"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from "lit";
2
- import "../../tokens/tokens.ts";
3
- import { type SpaceName } from "../shared/token-scales.ts";
2
+ import "../../tokens/tokens.js";
3
+ import { type SpaceName } from "../shared/token-scales.js";
4
4
  type Align = "start" | "center" | "end" | "stretch";
5
5
  type Justify = "start" | "center" | "end" | "stretch";
6
6
  declare class BdGrid extends LitElement {
@@ -1,139 +1,22 @@
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 gridCSS from "../grid/grid.css.js";
13
- import { space } from "../shared/token-scales.js";
14
- let BdGrid = class BdGrid extends LitElement {
15
- constructor() {
16
- super(...arguments);
17
- /* The three responsive properties name their attribute, and that is the
18
- whole fix. Lit derives an observed attribute by LOWERCASING the property
19
- name -- not by dash-casing it -- so `colsSm` observed `colssm` and the
20
- `cols-sm` this component documents was not an attribute it had ever been
21
- listening for. observedAttributes read
22
- ["cols","colssm","colsmd","colslg","gap","align","justify","padding"];
23
- `cols` worked because it is one word, which is why the failure looked like
24
- a responsive bug rather than a naming one.
25
-
26
- So every dash-cased column attribute in the package was inert and the
27
- properties kept their constructor defaults 1/1/2/3. Those defaults sit one
28
- step under the 2/3/4 the Responsive columns story asks for, which is why
29
- the rendered grid looked merely one breakpoint late instead of ignoring
30
- the markup entirely. Measured across five stories x six viewports, 25 of
31
- 66 readings rendered a column count nobody had asked for:
32
-
33
- Layout/Grid "Single column" cols-lg="1" -> 3 columns at 992 and 1440
34
- Layout/Grid "Gap scale" cols-sm="3" -> 1 column at 576-767
35
- Layout/Grid "Alignment" cols-sm="3" -> 1 column at 576-767
36
- bd-footer quick links cols-lg="2" -> 3 columns at 992 and 1440
37
-
38
- The last one is not a story: footer.ts writes cols-md/cols-lg in its own
39
- shadow root, so a shipped component's layout was running on the defaults
40
- too.
41
-
42
- Naming the attribute is what this package already does everywhere else --
43
- 94 explicit dash-cased mappings across 40 files, `heading-level`,
44
- `visual-level`, `max-columns`, `min-card-width` -- and it is what the
45
- component's own documentation promises: grid.stories.ts reads "`cols`
46
- below 576, then `cols-sm`, `cols-md` at 768 and `cols-lg` at 992", and its
47
- argTypes map colsSm to the control name "cols-sm". The code was the only
48
- part that disagreed.
49
-
50
- An explicit name replaces the lowercase one rather than adding to it, so
51
- `colssm` stops being observed. Nothing reads it: grepped for colssm,
52
- colsmd, colslg and fallbacksrc across src, schemas and docs -- zero
53
- occurrences outside these declarations. The responsive behaviour itself is
54
- untouched; the media queries in grid.css.ts and the 576/768/992 steps are
55
- the ones that were already there, and this adds no smartness to a layout
56
- primitive -- it only lets the primitive hear what it is told. */
57
- this.cols = 1; // default cols
58
- this.colsSm = 1; // optional cols on small screens
59
- this.colsMd = 2; // optional cols on medium
60
- this.colsLg = 3; // optional cols on large
61
- this.gap = "md"; // e.g., 'sm', 'md'
62
- this.gapSm = ""; // optional gap from sm; unset keeps the step below
63
- this.gapMd = ""; // optional gap from md
64
- this.gapLg = ""; // optional gap from lg
65
- this.align = "stretch"; // start, center, end, stretch
66
- this.justify = "start"; // start, center, end, stretch: justify-items takes no space-between
67
- this.padding = "none"; // e.g., 'none', 'sm', 'md', 'lg'
68
- /* The narrowest a column may be. Unset, each step's count is the
69
- columns there are; set, it is the most there will be, and the grid
70
- takes fewer, wider ones where that many would not fit (grid.css.ts).
71
- A number of px at the default text size, laid out in rem: a cell holds
72
- text, so its floor grows with the reader's text, as the gaps do. */
73
- this.minColWidth = 0;
74
- }
75
- static { this.styles = [gridCSS]; }
76
- render() {
77
- return html `
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{space as t}from"../shared/token-scales.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import r from"./grid.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends i{constructor(...e){super(...e),this.cols=1,this.colsSm=1,this.colsMd=2,this.colsLg=3,this.gap=`md`,this.gapSm=``,this.gapMd=``,this.gapLg=``,this.align=`stretch`,this.justify=`start`,this.padding=`none`,this.minColWidth=0}static{this.styles=[r]}render(){return a`
78
2
  <div
79
- class="grid ${this.minColWidth > 0 ? "grid--fit" : ""}"
3
+ class="grid ${this.minColWidth>0?`grid--fit`:``}"
80
4
  style="
81
5
  --grid-cols: ${this.cols};
82
6
  --grid-cols-sm: ${this.colsSm};
83
7
  --grid-cols-md: ${this.colsMd};
84
8
  --grid-cols-lg: ${this.colsLg};
85
- ${space(this.gap) ? `--grid-gap: ${space(this.gap)};` : ""}
86
- --grid-gap-sm: ${space(this.gapSm) || "var(--grid-gap)"};
87
- --grid-gap-md: ${space(this.gapMd) || "var(--grid-gap-sm)"};
88
- --grid-gap-lg: ${space(this.gapLg) || "var(--grid-gap-md)"};
9
+ ${t(this.gap)?`--grid-gap: ${t(this.gap)};`:``}
10
+ --grid-gap-sm: ${t(this.gapSm)||`var(--grid-gap)`};
11
+ --grid-gap-md: ${t(this.gapMd)||`var(--grid-gap-sm)`};
12
+ --grid-gap-lg: ${t(this.gapLg)||`var(--grid-gap-md)`};
89
13
  align-items: ${this.align};
90
14
  justify-items: ${this.justify};
91
- padding: ${space(this.padding)};
92
- ${this.minColWidth > 0 ? `--grid-min-col-width: ${this.minColWidth / 16}rem;` : ""}
15
+ padding: ${t(this.padding)};
16
+ ${this.minColWidth>0?`--grid-min-col-width: ${this.minColWidth/16}rem;`:``}
93
17
  "
94
18
  >
95
19
  <slot></slot>
96
20
  </div>
97
- `;
98
- }
99
- };
100
- __decorate([
101
- property({ type: Number })
102
- ], BdGrid.prototype, "cols", void 0);
103
- __decorate([
104
- property({ type: Number, attribute: "cols-sm" })
105
- ], BdGrid.prototype, "colsSm", void 0);
106
- __decorate([
107
- property({ type: Number, attribute: "cols-md" })
108
- ], BdGrid.prototype, "colsMd", void 0);
109
- __decorate([
110
- property({ type: Number, attribute: "cols-lg" })
111
- ], BdGrid.prototype, "colsLg", void 0);
112
- __decorate([
113
- property({ type: String })
114
- ], BdGrid.prototype, "gap", void 0);
115
- __decorate([
116
- property({ type: String, attribute: "gap-sm" })
117
- ], BdGrid.prototype, "gapSm", void 0);
118
- __decorate([
119
- property({ type: String, attribute: "gap-md" })
120
- ], BdGrid.prototype, "gapMd", void 0);
121
- __decorate([
122
- property({ type: String, attribute: "gap-lg" })
123
- ], BdGrid.prototype, "gapLg", void 0);
124
- __decorate([
125
- property({ type: String })
126
- ], BdGrid.prototype, "align", void 0);
127
- __decorate([
128
- property({ type: String })
129
- ], BdGrid.prototype, "justify", void 0);
130
- __decorate([
131
- property({ type: String })
132
- ], BdGrid.prototype, "padding", void 0);
133
- __decorate([
134
- property({ type: Number, attribute: "min-col-width" })
135
- ], BdGrid.prototype, "minColWidth", void 0);
136
- BdGrid = __decorate([
137
- defineElement("bd-grid")
138
- ], BdGrid);
21
+ `}};n([o({type:Number})],s.prototype,`cols`,void 0),n([o({type:Number,attribute:`cols-sm`})],s.prototype,`colsSm`,void 0),n([o({type:Number,attribute:`cols-md`})],s.prototype,`colsMd`,void 0),n([o({type:Number,attribute:`cols-lg`})],s.prototype,`colsLg`,void 0),n([o({type:String})],s.prototype,`gap`,void 0),n([o({type:String,attribute:`gap-sm`})],s.prototype,`gapSm`,void 0),n([o({type:String,attribute:`gap-md`})],s.prototype,`gapMd`,void 0),n([o({type:String,attribute:`gap-lg`})],s.prototype,`gapLg`,void 0),n([o({type:String})],s.prototype,`align`,void 0),n([o({type:String})],s.prototype,`justify`,void 0),n([o({type:String})],s.prototype,`padding`,void 0),n([o({type:Number,attribute:`min-col-width`})],s.prototype,`minColWidth`,void 0),s=n([e(`bd-grid`)],s);
139
22
  //# sourceMappingURL=grid.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../../src/components/grid/grid.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,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAkB,MAAM,2BAA2B,CAAC;AAMlE,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QAGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAuCmE;QAEnE,SAAI,GAAG,CAAC,CAAC,CAAC,eAAe;QAEzB,WAAM,GAAG,CAAC,CAAC,CAAC,iCAAiC;QAE7C,WAAM,GAAG,CAAC,CAAC,CAAC,0BAA0B;QAEtC,WAAM,GAAG,CAAC,CAAC,CAAC,yBAAyB;QAErC,QAAG,GAAc,IAAI,CAAC,CAAC,mBAAmB;QAE1C,UAAK,GAAmB,EAAE,CAAC,CAAC,mDAAmD;QAE/E,UAAK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EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;sCACtC;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;sCACtC;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;sCACtC;AAEX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mCACL;AAEtB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;qCACrB;AAE3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;qCACrB;AAE3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;qCACrB;AAE3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACF;AAEzB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACA;AAE3B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACC;AAO5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;2CACvC;AAvEZ,MAAM;IADX,aAAa,CAAC,SAAS,CAAC;GACnB,MAAM,CAgGX","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 gridCSS from \"../grid/grid.css.ts\";\nimport { space, type SpaceName } from \"../shared/token-scales.ts\";\n\ntype Align = \"start\" | \"center\" | \"end\" | \"stretch\";\ntype Justify = \"start\" | \"center\" | \"end\" | \"stretch\";\n\n@defineElement(\"bd-grid\")\nclass BdGrid extends LitElement {\n static styles = [gridCSS];\n\n /* The three responsive properties name their attribute, and that is the\n whole fix. Lit derives an observed attribute by LOWERCASING the property\n name -- not by dash-casing it -- so `colsSm` observed `colssm` and the\n `cols-sm` this component documents was not an attribute it had ever been\n listening for. observedAttributes read\n [\"cols\",\"colssm\",\"colsmd\",\"colslg\",\"gap\",\"align\",\"justify\",\"padding\"];\n `cols` worked because it is one word, which is why the failure looked like\n a responsive bug rather than a naming one.\n\n So every dash-cased column attribute in the package was inert and the\n properties kept their constructor defaults 1/1/2/3. Those defaults sit one\n step under the 2/3/4 the Responsive columns story asks for, which is why\n the rendered grid looked merely one breakpoint late instead of ignoring\n the markup entirely. Measured across five stories x six viewports, 25 of\n 66 readings rendered a column count nobody had asked for:\n\n Layout/Grid \"Single column\" cols-lg=\"1\" -> 3 columns at 992 and 1440\n Layout/Grid \"Gap scale\" cols-sm=\"3\" -> 1 column at 576-767\n Layout/Grid \"Alignment\" cols-sm=\"3\" -> 1 column at 576-767\n bd-footer quick links cols-lg=\"2\" -> 3 columns at 992 and 1440\n\n The last one is not a story: footer.ts writes cols-md/cols-lg in its own\n shadow root, so a shipped component's layout was running on the defaults\n too.\n\n Naming the attribute is what this package already does everywhere else --\n 94 explicit dash-cased mappings across 40 files, `heading-level`,\n `visual-level`, `max-columns`, `min-card-width` -- and it is what the\n component's own documentation promises: grid.stories.ts reads \"`cols`\n below 576, then `cols-sm`, `cols-md` at 768 and `cols-lg` at 992\", and its\n argTypes map colsSm to the control name \"cols-sm\". The code was the only\n part that disagreed.\n\n An explicit name replaces the lowercase one rather than adding to it, so\n `colssm` stops being observed. Nothing reads it: grepped for colssm,\n colsmd, colslg and fallbacksrc across src, schemas and docs -- zero\n occurrences outside these declarations. The responsive behaviour itself is\n untouched; the media queries in grid.css.ts and the 576/768/992 steps are\n the ones that were already there, and this adds no smartness to a layout\n primitive -- it only lets the primitive hear what it is told. */\n @property({ type: Number })\n cols = 1; // default cols\n @property({ type: Number, attribute: \"cols-sm\" })\n colsSm = 1; // optional cols on small screens\n @property({ type: Number, attribute: \"cols-md\" })\n colsMd = 2; // optional cols on medium\n @property({ type: Number, attribute: \"cols-lg\" })\n colsLg = 3; // optional cols on large\n @property({ type: String })\n gap: SpaceName = \"md\"; // e.g., 'sm', 'md'\n @property({ type: String, attribute: \"gap-sm\" })\n gapSm: SpaceName | \"\" = \"\"; // optional gap from sm; unset keeps the step below\n @property({ type: String, attribute: \"gap-md\" })\n gapMd: SpaceName | \"\" = \"\"; // optional gap from md\n @property({ type: String, attribute: \"gap-lg\" })\n gapLg: SpaceName | \"\" = \"\"; // optional gap from lg\n @property({ type: String })\n align: Align = \"stretch\"; // start, center, end, stretch\n @property({ type: String })\n justify: Justify = \"start\"; // start, center, end, stretch: justify-items takes no space-between\n @property({ type: String })\n padding: SpaceName = \"none\"; // e.g., 'none', 'sm', 'md', 'lg'\n /* The narrowest a column may be. Unset, each step's count is the\n columns there are; set, it is the most there will be, and the grid\n takes fewer, wider ones where that many would not fit (grid.css.ts).\n A number of px at the default text size, laid out in rem: a cell holds\n text, so its floor grows with the reader's text, as the gaps do. */\n @property({ type: Number, attribute: \"min-col-width\" })\n minColWidth = 0;\n\n render() {\n return html`\n <div\n class=\"grid ${this.minColWidth > 0 ? \"grid--fit\" : \"\"}\"\n style=\"\n --grid-cols: ${this.cols};\n --grid-cols-sm: ${this.colsSm};\n --grid-cols-md: ${this.colsMd};\n --grid-cols-lg: ${this.colsLg};\n ${space(this.gap) ? `--grid-gap: ${space(this.gap)};` : \"\"}\n --grid-gap-sm: ${space(this.gapSm) || \"var(--grid-gap)\"};\n --grid-gap-md: ${space(this.gapMd) || \"var(--grid-gap-sm)\"};\n --grid-gap-lg: ${space(this.gapLg) || \"var(--grid-gap-md)\"};\n align-items: ${this.align};\n justify-items: ${this.justify};\n padding: ${space(this.padding)};\n ${this.minColWidth > 0 ? `--grid-min-col-width: ${this.minColWidth / 16}rem;` : \"\"}\n \"\n >\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-grid\": BdGrid;\n }\n}\n"]}
1
+ {"version":3,"file":"grid.js","names":["gridCSS","_decorate","__decorate","grid_css_default","BdGrid","LitElement","_args","space","property","defineElement"],"sources":["../../../../src/components/grid/grid.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 gridCSS from \"#components/grid/grid.css.ts\";\nimport { space, type SpaceName } from \"#shared/token-scales.ts\";\n\ntype Align = \"start\" | \"center\" | \"end\" | \"stretch\";\ntype Justify = \"start\" | \"center\" | \"end\" | \"stretch\";\n\n@defineElement(\"bd-grid\")\nclass BdGrid extends LitElement {\n static styles = [gridCSS];\n\n /* The three responsive properties name their attribute, and that is the\n whole fix. Lit derives an observed attribute by LOWERCASING the property\n name -- not by dash-casing it -- so `colsSm` observed `colssm` and the\n `cols-sm` this component documents was not an attribute it had ever been\n listening for. observedAttributes read\n [\"cols\",\"colssm\",\"colsmd\",\"colslg\",\"gap\",\"align\",\"justify\",\"padding\"];\n `cols` worked because it is one word, which is why the failure looked like\n a responsive bug rather than a naming one.\n\n So every dash-cased column attribute in the package was inert and the\n properties kept their constructor defaults 1/1/2/3. Those defaults sit one\n step under the 2/3/4 the Responsive columns story asks for, which is why\n the rendered grid looked merely one breakpoint late instead of ignoring\n the markup entirely. Measured across five stories x six viewports, 25 of\n 66 readings rendered a column count nobody had asked for:\n\n Layout/Grid \"Single column\" cols-lg=\"1\" -> 3 columns at 992 and 1440\n Layout/Grid \"Gap scale\" cols-sm=\"3\" -> 1 column at 576-767\n Layout/Grid \"Alignment\" cols-sm=\"3\" -> 1 column at 576-767\n bd-footer quick links cols-lg=\"2\" -> 3 columns at 992 and 1440\n\n The last one is not a story: footer.ts writes cols-md/cols-lg in its own\n shadow root, so a shipped component's layout was running on the defaults\n too.\n\n Naming the attribute is what this package already does everywhere else --\n 94 explicit dash-cased mappings across 40 files, `heading-level`,\n `visual-level`, `max-columns`, `min-card-width` -- and it is what the\n component's own documentation promises: grid.stories.ts reads \"`cols`\n below 576, then `cols-sm`, `cols-md` at 768 and `cols-lg` at 992\", and its\n argTypes map colsSm to the control name \"cols-sm\". The code was the only\n part that disagreed.\n\n An explicit name replaces the lowercase one rather than adding to it, so\n `colssm` stops being observed. Nothing reads it: grepped for colssm,\n colsmd, colslg and fallbacksrc across src, schemas and docs -- zero\n occurrences outside these declarations. The responsive behaviour itself is\n untouched; the media queries in grid.css.ts and the 576/768/992 steps are\n the ones that were already there, and this adds no smartness to a layout\n primitive -- it only lets the primitive hear what it is told. */\n @property({ type: Number })\n cols = 1; // default cols\n @property({ type: Number, attribute: \"cols-sm\" })\n colsSm = 1; // optional cols on small screens\n @property({ type: Number, attribute: \"cols-md\" })\n colsMd = 2; // optional cols on medium\n @property({ type: Number, attribute: \"cols-lg\" })\n colsLg = 3; // optional cols on large\n @property({ type: String })\n gap: SpaceName = \"md\"; // e.g., 'sm', 'md'\n @property({ type: String, attribute: \"gap-sm\" })\n gapSm: SpaceName | \"\" = \"\"; // optional gap from sm; unset keeps the step below\n @property({ type: String, attribute: \"gap-md\" })\n gapMd: SpaceName | \"\" = \"\"; // optional gap from md\n @property({ type: String, attribute: \"gap-lg\" })\n gapLg: SpaceName | \"\" = \"\"; // optional gap from lg\n @property({ type: String })\n align: Align = \"stretch\"; // start, center, end, stretch\n @property({ type: String })\n justify: Justify = \"start\"; // start, center, end, stretch: justify-items takes no space-between\n @property({ type: String })\n padding: SpaceName = \"none\"; // e.g., 'none', 'sm', 'md', 'lg'\n /* The narrowest a column may be. Unset, each step's count is the\n columns there are; set, it is the most there will be, and the grid\n takes fewer, wider ones where that many would not fit (grid.css.ts).\n A number of px at the default text size, laid out in rem: a cell holds\n text, so its floor grows with the reader's text, as the gaps do. */\n @property({ type: Number, attribute: \"min-col-width\" })\n minColWidth = 0;\n\n render() {\n return html`\n <div\n class=\"grid ${this.minColWidth > 0 ? \"grid--fit\" : \"\"}\"\n style=\"\n --grid-cols: ${this.cols};\n --grid-cols-sm: ${this.colsSm};\n --grid-cols-md: ${this.colsMd};\n --grid-cols-lg: ${this.colsLg};\n ${space(this.gap) ? `--grid-gap: ${space(this.gap)};` : \"\"}\n --grid-gap-sm: ${space(this.gapSm) || \"var(--grid-gap)\"};\n --grid-gap-md: ${space(this.gapMd) || \"var(--grid-gap-sm)\"};\n --grid-gap-lg: ${space(this.gapLg) || \"var(--grid-gap-md)\"};\n align-items: ${this.align};\n justify-items: ${this.justify};\n padding: ${space(this.padding)};\n ${this.minColWidth > 0 ? `--grid-min-col-width: ${this.minColWidth / 16}rem;` : \"\"}\n \"\n >\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-grid\": BdGrid;\n }\n}\n"],"mappings":"A,4UAWA,IACMI,EADN,cACqBC,CAAW,C,8BA4CvB,KAAA,KAAA,EAEE,KAAA,OAAA,EAEA,KAAA,OAAA,EAEA,KAAA,OAAA,EAEQ,KAAA,IAAA,KAEO,KAAA,MAAA,GAEA,KAAA,MAAA,GAEA,KAAA,MAAA,GAET,KAAA,MAAA,UAEI,KAAA,QAAA,QAEE,KAAA,QAAA,OAOP,KAAA,YAAA,C,QAtEE,KAAA,OAAA,CAACL,CAAO,C,CAwExB,QAAS,CACP,MAAO,EAAI;;sBAEO,KAAK,YAAc,EAAI,YAAc,GAAG;;yBAErC,KAAK,KAAK;4BACP,KAAK,OAAO;4BACZ,KAAK,OAAO;4BACZ,KAAK,OAAO;YAC5BO,EAAM,KAAK,GAAG,EAAI,eAAeA,EAAM,KAAK,GAAG,EAAE,GAAK,GAAG;2BAC1CA,EAAM,KAAK,KAAK,GAAK,kBAAkB;2BACvCA,EAAM,KAAK,KAAK,GAAK,qBAAqB;2BAC1CA,EAAM,KAAK,KAAK,GAAK,qB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