@repobit/dex-system-design 3.0.1 → 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 +7 -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 +3 -3
  383. package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
  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,206 +1,27 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, html, nothing } from "lit";
8
- import { property } from "lit/decorators.js";
9
- import { keyed } from "lit/directives/keyed.js";
10
- import { defineElement } from "../shared/define-element.js";
11
- import "../shared/events.js";
12
- // Installs the design tokens into document scope; see src/tokens/tokens.ts
13
- import "../../tokens/tokens.js";
14
- import { formFieldCSS } from "../shared/form-field.css.js";
15
- import inputClipboardCSS from "../input/input-clipboard.css.js";
16
- import { resolveSize } from "../shared/prop-vocabulary.js";
17
- import { ValueControl, omitEmpty } from "../shared/form-control.js";
18
- import { Announcer } from "../shared/announcer.js";
19
- /**
20
- * A text field with a paste button. Form-associated, as bd-custom-input is
21
- * (shared/form-control.ts): the <input> is in this shadow root, where it has
22
- * no form owner, so the <form> around the element could not see it -- it was
23
- * the one field in the family a form submitted, reset and validated none of.
24
- */
25
- let CustomInputClipboard = class CustomInputClipboard extends ValueControl(LitElement) {
26
- static { this.styles = [formFieldCSS, inputClipboardCSS]; }
27
- constructor() {
28
- super();
29
- /* No default copy — see the note in input.ts. */
30
- this.label = "";
31
- this.type = "text";
32
- this.size = "md";
33
- /** @deprecated pass `size`. It named the size, not the kind. */
34
- this.kind = "";
35
- this.placeholder = "";
36
- this.required = false;
37
- this.focused = false;
38
- this.tooltip = "";
39
- this.invalid = false;
40
- this.validated = false;
41
- this.disabled = false;
42
- /* The current value; the value ATTRIBUTE is what reset returns to, as on
43
- bd-custom-input. */
44
- this.value = "";
45
- /* Carried on the event detail, as on bd-custom-input, and the name the
46
- form submits under, which FACE reads off the attribute. */
47
- this.name = "";
48
- /* Passed to the <input>, as bd-custom-input passes them: what autofill
49
- may offer, whether the field is spellchecked -- a pasted key or code
50
- usually wants spellcheck="false" -- and what the mobile Enter key
51
- says. spellcheck is the global attribute, read under its own name. */
52
- this.autocomplete = "";
53
- this.spellCheck = null;
54
- this.enterkeyhint = "";
55
- /* The field's name when there is no visible label: aria-label on the
56
- element is passed to the <input>, which is what a screen reader
57
- focuses -- on the element itself it named nothing. */
58
- this.fieldLabel = "";
59
- /* What the paste button did is said, not left to be inferred: the field
60
- fills silently, and a refused clipboard -- the reader declined the
61
- permission, or the page is not allowed it -- used to do nothing at all
62
- but log. Through the live region, as in bd-install-options
63
- (shared/announcer.ts). */
64
- this._announcer = new Announcer(this);
65
- }
66
- get _control() {
67
- return this.renderRoot?.querySelector?.("input");
68
- }
69
- /* With no visible label, the <input> is named by aria-label on the
70
- element, or else by the text of a <label for> pointing at the element --
71
- FACE gives the element its labels, but a label outside cannot name the
72
- <input> inside. Past both, the browser falls back on the placeholder. */
73
- get _accessibleName() {
74
- if (this.label)
75
- return "";
76
- if (this.fieldLabel)
77
- return this.fieldLabel;
78
- return [...(this._internals.labels ?? [])].map(l => l.textContent.trim()).filter(Boolean)
79
- .join(" ");
80
- }
81
- /* THE EVENTS ARE bd-custom-input's.
82
- This fired an event named input -- the native event's own name -- with
83
- the bare string as detail, neither bubbling nor composed. The native
84
- input from the inner <input> is composed and already leaves the shadow
85
- root, so a listener on the host heard every keystroke twice, once with a
86
- detail and once without, and a paste once. Now it is bd-input on every
87
- change and bd-change on commit, each { value, name }, bubbling and
88
- composed, as on bd-custom-input: one form handler reads all three fields.
89
- A paste is a commit as well as a change, so it fires both. */
90
- _emit(type) {
91
- this.dispatchEvent(new CustomEvent(type, {
92
- detail: { value: this.value, name: this.name },
93
- bubbles: true,
94
- composed: true
95
- }));
96
- }
97
- async pasteFromClipboard() {
98
- try {
99
- const text = await navigator.clipboard.readText();
100
- this.value = text;
101
- // before the events, as handleInput does: the form is not told until
102
- // the next update otherwise, and a handler asking it got the old value
103
- this._sync();
104
- this._emit("bd-input");
105
- this._emit("bd-change");
106
- this._announcer.say("Pasted from clipboard");
107
- }
108
- catch (err) {
109
- console.error("Clipboard paste failed:", err);
110
- this._announcer.say("Could not paste from clipboard");
111
- }
112
- }
113
- handleInput(e) {
114
- this.value = e.target.value;
115
- // before the event, as in bd-custom-input
116
- this._sync();
117
- this._emit("bd-input");
118
- }
119
- handleChange() {
120
- this._emit("bd-change");
121
- }
122
- willUpdate(changed) {
123
- // kind said "size" on these three and nothing else in the system,
124
- // so it moved; see shared/prop-vocabulary.ts
125
- if (changed.has("kind") && this.kind)
126
- this.size = this.kind;
127
- if (changed.has("size") || changed.has("kind"))
128
- this.size = resolveSize(this.size);
129
- }
130
- /* focused is the field's real focus, both ways. Setting it moves keyboard
131
- focus into the <input> and clearing it blurs the field; focusing or
132
- leaving the field by hand sets it, and it reflects, so the attribute says
133
- whether the field has focus. It used to add a .focused class that painted
134
- the focus ring on a field that did not have focus -- a second, false
135
- indicator on any page that set it. The ring is now only the browser's
136
- :focus-visible, which a text field shows whenever it is focused. */
137
- updated(changed) {
138
- this._sync();
139
- if (!changed.has('focused'))
140
- return;
141
- const input = this.shadowRoot.querySelector('input');
142
- const has = this.shadowRoot.activeElement === input;
143
- if (this.focused && !has)
144
- input?.focus();
145
- if (!this.focused && has)
146
- input?.blur();
147
- }
148
- render() {
149
- const inputClass = {
150
- sm: "input-sm",
151
- md: "input-md",
152
- lg: "input-lg"
153
- }[this.size];
154
- const labelClass = {
155
- sm: "label-sm",
156
- md: "label-md",
157
- lg: "label-lg"
158
- }[this.size];
159
- const disabled = this.disabled || this._formDisabled;
160
- const inputStateClass = disabled
161
- ? "form-input--disabled"
162
- : this.invalid
163
- ? "form-input--error"
164
- : this.validated
165
- ? "form-input--success"
166
- : "";
167
- const helpTextClass = this.invalid
168
- ? "form-help-text--error"
169
- : this.validated
170
- ? "form-help-text--success"
171
- : "form-help-text--default";
172
- // The hint is the field's description, and the state is announced, not
173
- // only drawn: invalid used to be a red border alone and the hint was never
174
- // pointed at, so the reason a field was invalid reached a screen reader
175
- // not at all. Both as bd-custom-input does them.
176
- return html `
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{resolveSize as n}from"../shared/prop-vocabulary.js";import{ValueControl as r,omitEmpty as i}from"../shared/form-control.js";import a from"../shared/form-field.css.js";import o from"./input-clipboard.css.js";import{Announcer as s}from"../shared/announcer.js";import{LitElement as c,html as l,nothing as u}from"lit";import{property as d}from"lit/decorators.js";import{keyed as f}from"lit/directives/keyed.js";var p=class extends r(c){static{this.styles=[a,o]}constructor(){super(),this.label=``,this.type=`text`,this.size=`md`,this.kind=``,this.placeholder=``,this.required=!1,this.focused=!1,this.tooltip=``,this.invalid=!1,this.validated=!1,this.disabled=!1,this.value=``,this.name=``,this.autocomplete=``,this.spellCheck=null,this.enterkeyhint=``,this.fieldLabel=``,this._announcer=new s(this)}get _control(){return this.renderRoot?.querySelector?.(`input`)}get _accessibleName(){return this.label?``:this.fieldLabel?this.fieldLabel:[...this._internals.labels??[]].map(e=>e.textContent.trim()).filter(Boolean).join(` `)}_emit(e){this.dispatchEvent(new CustomEvent(e,{detail:{value:this.value,name:this.name},bubbles:!0,composed:!0}))}async pasteFromClipboard(){try{let e=await navigator.clipboard.readText();this.value=e,this._sync(),this._emit(`bd-input`),this._emit(`bd-change`),this._announcer.say(`Pasted from clipboard`)}catch(e){console.error(`Clipboard paste failed:`,e),this._announcer.say(`Could not paste from clipboard`)}}handleInput(e){this.value=e.target.value,this._sync(),this._emit(`bd-input`)}handleChange(){this._emit(`bd-change`)}willUpdate(e){e.has(`kind`)&&this.kind&&(this.size=this.kind),(e.has(`size`)||e.has(`kind`))&&(this.size=n(this.size))}updated(e){if(this._sync(),!e.has(`focused`))return;let t=this.shadowRoot.querySelector(`input`),n=this.shadowRoot.activeElement===t;this.focused&&!n&&t?.focus(),!this.focused&&n&&t?.blur()}render(){let e={sm:`input-sm`,md:`input-md`,lg:`input-lg`}[this.size],t={sm:`label-sm`,md:`label-md`,lg:`label-lg`}[this.size],n=this.disabled||this._formDisabled,r=n?`form-input--disabled`:this.invalid?`form-input--error`:this.validated?`form-input--success`:``,i=this.invalid?`form-help-text--error`:this.validated?`form-help-text--success`:`form-help-text--default`;return l`
177
2
  <div class="input-container">
178
- ${this.label
179
- ? html `<label for="clipboard-input" class="form-label ${labelClass}">
3
+ ${this.label?l`<label for="clipboard-input" class="form-label ${t}">
180
4
  ${this.label}
181
- ${this.required
182
- ? html `<span class="form-label__required" aria-hidden="true">*</span>`
183
- : ""}
184
- </label>`
185
- : nothing}
5
+ ${this.required?l`<span class="form-label__required" aria-hidden="true">*</span>`:``}
6
+ </label>`:u}
186
7
  <div class="input-with-button">
187
- ${keyed(this._resets, html `<input
8
+ ${f(this._resets,l`<input
188
9
  id="clipboard-input"
189
- class="form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? "form-input--attempted" : ""}"
10
+ class="form-input-bd ${e} ${r} ${this._attempted?`form-input--attempted`:``}"
190
11
  type="${this.type}"
191
12
  placeholder="${this.placeholder}"
192
13
  .value="${this.value}"
193
- autocomplete="${this.autocomplete || nothing}"
194
- spellcheck="${this.spellCheck ?? nothing}"
195
- enterkeyhint="${this.enterkeyhint || nothing}"
14
+ autocomplete="${this.autocomplete||u}"
15
+ spellcheck="${this.spellCheck??u}"
16
+ enterkeyhint="${this.enterkeyhint||u}"
196
17
  ?required="${this.required}"
197
- ?disabled="${disabled}"
198
- name="${this.name || nothing}"
199
- aria-label="${this._accessibleName || nothing}"
200
- aria-invalid="${this.invalid ? "true" : nothing}"
201
- aria-describedby="${this.tooltip ? "clipboard-input-help" : nothing}"
202
- @focus="${() => { this.focused = true; }}"
203
- @blur="${() => { this.focused = false; }}"
18
+ ?disabled="${n}"
19
+ name="${this.name||u}"
20
+ aria-label="${this._accessibleName||u}"
21
+ aria-invalid="${this.invalid?`true`:u}"
22
+ aria-describedby="${this.tooltip?`clipboard-input-help`:u}"
23
+ @focus="${()=>{this.focused=!0}}"
24
+ @blur="${()=>{this.focused=!1}}"
204
25
  @input="${this.handleInput}"
205
26
  @change="${this.handleChange}"
206
27
  @keydown="${this._onFieldKeydown}"
@@ -209,7 +30,7 @@ let CustomInputClipboard = class CustomInputClipboard extends ValueControl(LitEl
209
30
  class="paste-button"
210
31
  @click="${this.pasteFromClipboard}"
211
32
  title="Paste from clipboard"
212
- ?disabled="${disabled}"
33
+ ?disabled="${n}"
213
34
  type="button"
214
35
  aria-label="Paste from clipboard"
215
36
  >
@@ -232,68 +53,10 @@ let CustomInputClipboard = class CustomInputClipboard extends ValueControl(LitEl
232
53
  </button>
233
54
  </div>
234
55
 
235
- ${this.tooltip
236
- ? html `<div id="clipboard-input-help" class="form-help-text ${helpTextClass}">
56
+ ${this.tooltip?l`<div id="clipboard-input-help" class="form-help-text ${i}">
237
57
  ${this.tooltip}
238
- </div>`
239
- : ""}
58
+ </div>`:``}
240
59
  <span class="paste-status" role="status">${this._announcer.status}</span>
241
60
  </div>
242
- `;
243
- }
244
- };
245
- __decorate([
246
- property({ type: String })
247
- ], CustomInputClipboard.prototype, "label", void 0);
248
- __decorate([
249
- property({ type: String })
250
- ], CustomInputClipboard.prototype, "type", void 0);
251
- __decorate([
252
- property({ type: String, reflect: true })
253
- ], CustomInputClipboard.prototype, "size", void 0);
254
- __decorate([
255
- property({ type: String })
256
- ], CustomInputClipboard.prototype, "kind", void 0);
257
- __decorate([
258
- property({ type: String })
259
- ], CustomInputClipboard.prototype, "placeholder", void 0);
260
- __decorate([
261
- property({ type: Boolean })
262
- ], CustomInputClipboard.prototype, "required", void 0);
263
- __decorate([
264
- property({ type: Boolean, reflect: true })
265
- ], CustomInputClipboard.prototype, "focused", void 0);
266
- __decorate([
267
- property({ type: String })
268
- ], CustomInputClipboard.prototype, "tooltip", void 0);
269
- __decorate([
270
- property({ type: Boolean })
271
- ], CustomInputClipboard.prototype, "invalid", void 0);
272
- __decorate([
273
- property({ type: Boolean, reflect: true })
274
- ], CustomInputClipboard.prototype, "validated", void 0);
275
- __decorate([
276
- property({ type: Boolean, reflect: true })
277
- ], CustomInputClipboard.prototype, "disabled", void 0);
278
- __decorate([
279
- property({ type: String })
280
- ], CustomInputClipboard.prototype, "value", void 0);
281
- __decorate([
282
- property({ type: String, reflect: true, converter: omitEmpty })
283
- ], CustomInputClipboard.prototype, "name", void 0);
284
- __decorate([
285
- property({ type: String })
286
- ], CustomInputClipboard.prototype, "autocomplete", void 0);
287
- __decorate([
288
- property({ type: String, attribute: "spellcheck" })
289
- ], CustomInputClipboard.prototype, "spellCheck", void 0);
290
- __decorate([
291
- property({ type: String })
292
- ], CustomInputClipboard.prototype, "enterkeyhint", void 0);
293
- __decorate([
294
- property({ type: String, attribute: "aria-label" })
295
- ], CustomInputClipboard.prototype, "fieldLabel", void 0);
296
- CustomInputClipboard = __decorate([
297
- defineElement("bd-custom-input-clipboard")
298
- ], CustomInputClipboard);
61
+ `}};t([d({type:String})],p.prototype,`label`,void 0),t([d({type:String})],p.prototype,`type`,void 0),t([d({type:String,reflect:!0})],p.prototype,`size`,void 0),t([d({type:String})],p.prototype,`kind`,void 0),t([d({type:String})],p.prototype,`placeholder`,void 0),t([d({type:Boolean})],p.prototype,`required`,void 0),t([d({type:Boolean,reflect:!0})],p.prototype,`focused`,void 0),t([d({type:String})],p.prototype,`tooltip`,void 0),t([d({type:Boolean})],p.prototype,`invalid`,void 0),t([d({type:Boolean,reflect:!0})],p.prototype,`validated`,void 0),t([d({type:Boolean,reflect:!0})],p.prototype,`disabled`,void 0),t([d({type:String})],p.prototype,`value`,void 0),t([d({type:String,reflect:!0,converter:i})],p.prototype,`name`,void 0),t([d({type:String})],p.prototype,`autocomplete`,void 0),t([d({type:String,attribute:`spellcheck`})],p.prototype,`spellCheck`,void 0),t([d({type:String})],p.prototype,`enterkeyhint`,void 0),t([d({type:String,attribute:`aria-label`})],p.prototype,`fieldLabel`,void 0),p=t([e(`bd-custom-input-clipboard`)],p);
299
62
  //# sourceMappingURL=input-clipboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-clipboard.js","sourceRoot":"","sources":["../../../../src/components/input/input-clipboard.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,qBAAqB,CAAC;AAC7B,2EAA2E;AAC3E,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAa,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;;GAK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hB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDACzB;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sDAC1B;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAChB;AAIX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;kDACtD;AAMV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACT;AAElB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;wDACnB;AAEjC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACT;AAKlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;wDACpC;AAjDZ,oBAAoB;IADzB,aAAa,CAAC,2BAA2B,CAAC;GACrC,oBAAoB,CAsPzB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { keyed } from \"lit/directives/keyed.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport \"../shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"../../tokens/tokens.ts\";\nimport { formFieldCSS } from \"../shared/form-field.css.ts\";\nimport inputClipboardCSS from \"../input/input-clipboard.css.ts\";\nimport { resolveSize, type Size } from '../shared/prop-vocabulary.ts';\nimport { ValueControl, omitEmpty } from \"../shared/form-control.ts\";\nimport { Announcer } from \"../shared/announcer.ts\";\n\n/**\n * A text field with a paste button. Form-associated, as bd-custom-input is\n * (shared/form-control.ts): the <input> is in this shadow root, where it has\n * no form owner, so the <form> around the element could not see it -- it was\n * the one field in the family a form submitted, reset and validated none of.\n */\n@defineElement(\"bd-custom-input-clipboard\")\nclass CustomInputClipboard extends ValueControl(LitElement) {\n static styles = [formFieldCSS, inputClipboardCSS];\n\n /* No default copy — see the note in input.ts. */\n @property({ type: String })\n label = \"\";\n @property({ type: String })\n type = \"text\";\n @property({ type: String, reflect: true })\n size: Size = \"md\";\n /** @deprecated pass `size`. It named the size, not the kind. */\n @property({ type: String })\n kind = \"\";\n @property({ type: String })\n placeholder = \"\";\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean, reflect: true })\n focused = false;\n @property({ type: String })\n tooltip = \"\";\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean, reflect: true })\n validated = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* The current value; the value ATTRIBUTE is what reset returns to, as on\n bd-custom-input. */\n @property({ type: String })\n value = \"\";\n /* Carried on the event detail, as on bd-custom-input, and the name the\n form submits under, which FACE reads off the attribute. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n /* Passed to the <input>, as bd-custom-input passes them: what autofill\n may offer, whether the field is spellchecked -- a pasted key or code\n usually wants spellcheck=\"false\" -- and what the mobile Enter key\n says. spellcheck is the global attribute, read under its own name. */\n @property({ type: String })\n autocomplete = \"\";\n @property({ type: String, attribute: \"spellcheck\" })\n spellCheck: string | null = null;\n @property({ type: String })\n enterkeyhint = \"\";\n /* The field's name when there is no visible label: aria-label on the\n element is passed to the <input>, which is what a screen reader\n focuses -- on the element itself it named nothing. */\n @property({ type: String, attribute: \"aria-label\" })\n fieldLabel = \"\";\n\n _announcer: Announcer;\n\n constructor() {\n super();\n /* What the paste button did is said, not left to be inferred: the field\n fills silently, and a refused clipboard -- the reader declined the\n permission, or the page is not allowed it -- used to do nothing at all\n but log. Through the live region, as in bd-install-options\n (shared/announcer.ts). */\n this._announcer = new Announcer(this);\n }\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /* With no visible label, the <input> is named by aria-label on the\n element, or else by the text of a <label for> pointing at the element --\n FACE gives the element its labels, but a label outside cannot name the\n <input> inside. Past both, the browser falls back on the placeholder. */\n get _accessibleName() {\n if (this.label) return \"\";\n if (this.fieldLabel) return this.fieldLabel;\n return [...(this._internals.labels ?? [])].map(l => l.textContent!.trim()).filter(Boolean)\n .join(\" \");\n }\n\n /* THE EVENTS ARE bd-custom-input's.\n This fired an event named input -- the native event's own name -- with\n the bare string as detail, neither bubbling nor composed. The native\n input from the inner <input> is composed and already leaves the shadow\n root, so a listener on the host heard every keystroke twice, once with a\n detail and once without, and a paste once. Now it is bd-input on every\n change and bd-change on commit, each { value, name }, bubbling and\n composed, as on bd-custom-input: one form handler reads all three fields.\n A paste is a commit as well as a change, so it fires both. */\n _emit(type: \"bd-input\" | \"bd-change\") {\n this.dispatchEvent(new CustomEvent(type, {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n async pasteFromClipboard() {\n try {\n const text = await navigator.clipboard.readText();\n this.value = text;\n // before the events, as handleInput does: the form is not told until\n // the next update otherwise, and a handler asking it got the old value\n this._sync();\n this._emit(\"bd-input\");\n this._emit(\"bd-change\");\n this._announcer.say(\"Pasted from clipboard\");\n } catch (err) {\n console.error(\"Clipboard paste failed:\", err);\n this._announcer.say(\"Could not paste from clipboard\");\n }\n }\n\n handleInput(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n // before the event, as in bd-custom-input\n this._sync();\n this._emit(\"bd-input\");\n }\n\n handleChange() {\n this._emit(\"bd-change\");\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // kind said \"size\" on these three and nothing else in the system,\n // so it moved; see shared/prop-vocabulary.ts\n if (changed.has(\"kind\") && this.kind) this.size = this.kind as Size;\n if (changed.has(\"size\") || changed.has(\"kind\")) this.size = resolveSize(this.size);\n }\n\n /* focused is the field's real focus, both ways. Setting it moves keyboard\n focus into the <input> and clearing it blurs the field; focusing or\n leaving the field by hand sets it, and it reflects, so the attribute says\n whether the field has focus. It used to add a .focused class that painted\n the focus ring on a field that did not have focus -- a second, false\n indicator on any page that set it. The ring is now only the browser's\n :focus-visible, which a text field shows whenever it is focused. */\n updated(changed: PropertyValues<this>) {\n this._sync();\n if (!changed.has('focused')) return;\n const input = this.shadowRoot!.querySelector('input');\n const has = this.shadowRoot!.activeElement === input;\n if (this.focused && !has) input?.focus();\n if (!this.focused && has) input?.blur();\n }\n\n render() {\n const inputClass = {\n sm: \"input-sm\",\n md: \"input-md\",\n lg: \"input-lg\"\n }[this.size];\n\n const labelClass = {\n sm: \"label-sm\",\n md: \"label-md\",\n lg: \"label-lg\"\n }[this.size];\n\n const disabled = this.disabled || this._formDisabled;\n const inputStateClass = disabled\n ? \"form-input--disabled\"\n : this.invalid\n ? \"form-input--error\"\n : this.validated\n ? \"form-input--success\"\n : \"\";\n\n const helpTextClass = this.invalid\n ? \"form-help-text--error\"\n : this.validated\n ? \"form-help-text--success\"\n : \"form-help-text--default\";\n\n // The hint is the field's description, and the state is announced, not\n // only drawn: invalid used to be a red border alone and the hint was never\n // pointed at, so the reason a field was invalid reached a screen reader\n // not at all. Both as bd-custom-input does them.\n return html`\n <div class=\"input-container\">\n ${this.label\n ? html`<label for=\"clipboard-input\" class=\"form-label ${labelClass}\">\n ${this.label}\n ${this.required\n ? html`<span class=\"form-label__required\" aria-hidden=\"true\">*</span>`\n : \"\"}\n </label>`\n : nothing}\n <div class=\"input-with-button\">\n ${keyed(this._resets, html`<input\n id=\"clipboard-input\"\n class=\"form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? \"form-input--attempted\" : \"\"}\"\n type=\"${this.type}\"\n placeholder=\"${this.placeholder}\"\n .value=\"${this.value}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n spellcheck=\"${this.spellCheck ?? nothing}\"\n enterkeyhint=\"${this.enterkeyhint || nothing}\"\n ?required=\"${this.required}\"\n ?disabled=\"${disabled}\"\n name=\"${this.name || nothing}\"\n aria-label=\"${this._accessibleName || nothing}\"\n aria-invalid=\"${this.invalid ? \"true\" : nothing}\"\n aria-describedby=\"${this.tooltip ? \"clipboard-input-help\" : nothing}\"\n @focus=\"${() => { this.focused = true; }}\"\n @blur=\"${() => { this.focused = false; }}\"\n @input=\"${this.handleInput}\"\n @change=\"${this.handleChange}\"\n @keydown=\"${this._onFieldKeydown}\"\n />`)}\n <button\n class=\"paste-button\"\n @click=\"${this.pasteFromClipboard}\"\n title=\"Paste from clipboard\"\n ?disabled=\"${disabled}\"\n type=\"button\"\n aria-label=\"Paste from clipboard\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path\n d=\"M16 4H18A2 2 0 0 1 20 6V20A2 2 0 0 1 18 22H6A2 2 0 0 1 4 20V6A2 2 0 0 1 6 4H8\"\n />\n <rect x=\"8\" y=\"2\" width=\"8\" height=\"4\" rx=\"1\" ry=\"1\" />\n </svg>\n </button>\n </div>\n\n ${this.tooltip\n ? html`<div id=\"clipboard-input-help\" class=\"form-help-text ${helpTextClass}\">\n ${this.tooltip}\n </div>`\n : \"\"}\n <span class=\"paste-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-custom-input-clipboard\": CustomInputClipboard;\n }\n}\n"]}
1
+ {"version":3,"file":"input-clipboard.js","names":["inputClipboardCSS","_decorate","__decorate","formFieldCSS","input_clipboard_css_default","CustomInputClipboard","ValueControl","LitElement","Announcer","l","type","text","err","changed","resolveSize","input","has","inputClass","labelClass","disabled","inputStateClass","helpTextClass","nothing","keyed","property","omitEmpty","defineElement"],"sources":["../../../../src/components/input/input-clipboard.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { keyed } from \"lit/directives/keyed.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport \"#shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { formFieldCSS } from \"#shared/form-field.css.ts\";\nimport inputClipboardCSS from \"#components/input/input-clipboard.css.ts\";\nimport { resolveSize, type Size } from '#shared/prop-vocabulary.ts';\nimport { ValueControl, omitEmpty } from \"#shared/form-control.ts\";\nimport { Announcer } from \"#shared/announcer.ts\";\n\n/**\n * A text field with a paste button. Form-associated, as bd-custom-input is\n * (shared/form-control.ts): the <input> is in this shadow root, where it has\n * no form owner, so the <form> around the element could not see it -- it was\n * the one field in the family a form submitted, reset and validated none of.\n */\n@defineElement(\"bd-custom-input-clipboard\")\nclass CustomInputClipboard extends ValueControl(LitElement) {\n static styles = [formFieldCSS, inputClipboardCSS];\n\n /* No default copy — see the note in input.ts. */\n @property({ type: String })\n label = \"\";\n @property({ type: String })\n type = \"text\";\n @property({ type: String, reflect: true })\n size: Size = \"md\";\n /** @deprecated pass `size`. It named the size, not the kind. */\n @property({ type: String })\n kind = \"\";\n @property({ type: String })\n placeholder = \"\";\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean, reflect: true })\n focused = false;\n @property({ type: String })\n tooltip = \"\";\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean, reflect: true })\n validated = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n /* The current value; the value ATTRIBUTE is what reset returns to, as on\n bd-custom-input. */\n @property({ type: String })\n value = \"\";\n /* Carried on the event detail, as on bd-custom-input, and the name the\n form submits under, which FACE reads off the attribute. */\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = \"\";\n /* Passed to the <input>, as bd-custom-input passes them: what autofill\n may offer, whether the field is spellchecked -- a pasted key or code\n usually wants spellcheck=\"false\" -- and what the mobile Enter key\n says. spellcheck is the global attribute, read under its own name. */\n @property({ type: String })\n autocomplete = \"\";\n @property({ type: String, attribute: \"spellcheck\" })\n spellCheck: string | null = null;\n @property({ type: String })\n enterkeyhint = \"\";\n /* The field's name when there is no visible label: aria-label on the\n element is passed to the <input>, which is what a screen reader\n focuses -- on the element itself it named nothing. */\n @property({ type: String, attribute: \"aria-label\" })\n fieldLabel = \"\";\n\n _announcer: Announcer;\n\n constructor() {\n super();\n /* What the paste button did is said, not left to be inferred: the field\n fills silently, and a refused clipboard -- the reader declined the\n permission, or the page is not allowed it -- used to do nothing at all\n but log. Through the live region, as in bd-install-options\n (shared/announcer.ts). */\n this._announcer = new Announcer(this);\n }\n\n protected get _control(): HTMLInputElement | null {\n return this.renderRoot?.querySelector?.(\"input\");\n }\n\n /* With no visible label, the <input> is named by aria-label on the\n element, or else by the text of a <label for> pointing at the element --\n FACE gives the element its labels, but a label outside cannot name the\n <input> inside. Past both, the browser falls back on the placeholder. */\n get _accessibleName() {\n if (this.label) return \"\";\n if (this.fieldLabel) return this.fieldLabel;\n return [...(this._internals.labels ?? [])].map(l => l.textContent!.trim()).filter(Boolean)\n .join(\" \");\n }\n\n /* THE EVENTS ARE bd-custom-input's.\n This fired an event named input -- the native event's own name -- with\n the bare string as detail, neither bubbling nor composed. The native\n input from the inner <input> is composed and already leaves the shadow\n root, so a listener on the host heard every keystroke twice, once with a\n detail and once without, and a paste once. Now it is bd-input on every\n change and bd-change on commit, each { value, name }, bubbling and\n composed, as on bd-custom-input: one form handler reads all three fields.\n A paste is a commit as well as a change, so it fires both. */\n _emit(type: \"bd-input\" | \"bd-change\") {\n this.dispatchEvent(new CustomEvent(type, {\n detail : { value: this.value, name: this.name },\n bubbles : true,\n composed: true\n }));\n }\n\n async pasteFromClipboard() {\n try {\n const text = await navigator.clipboard.readText();\n this.value = text;\n // before the events, as handleInput does: the form is not told until\n // the next update otherwise, and a handler asking it got the old value\n this._sync();\n this._emit(\"bd-input\");\n this._emit(\"bd-change\");\n this._announcer.say(\"Pasted from clipboard\");\n } catch (err) {\n console.error(\"Clipboard paste failed:\", err);\n this._announcer.say(\"Could not paste from clipboard\");\n }\n }\n\n handleInput(e: Event & { target: HTMLInputElement }) {\n this.value = e.target.value;\n // before the event, as in bd-custom-input\n this._sync();\n this._emit(\"bd-input\");\n }\n\n handleChange() {\n this._emit(\"bd-change\");\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // kind said \"size\" on these three and nothing else in the system,\n // so it moved; see shared/prop-vocabulary.ts\n if (changed.has(\"kind\") && this.kind) this.size = this.kind as Size;\n if (changed.has(\"size\") || changed.has(\"kind\")) this.size = resolveSize(this.size);\n }\n\n /* focused is the field's real focus, both ways. Setting it moves keyboard\n focus into the <input> and clearing it blurs the field; focusing or\n leaving the field by hand sets it, and it reflects, so the attribute says\n whether the field has focus. It used to add a .focused class that painted\n the focus ring on a field that did not have focus -- a second, false\n indicator on any page that set it. The ring is now only the browser's\n :focus-visible, which a text field shows whenever it is focused. */\n updated(changed: PropertyValues<this>) {\n this._sync();\n if (!changed.has('focused')) return;\n const input = this.shadowRoot!.querySelector('input');\n const has = this.shadowRoot!.activeElement === input;\n if (this.focused && !has) input?.focus();\n if (!this.focused && has) input?.blur();\n }\n\n render() {\n const inputClass = {\n sm: \"input-sm\",\n md: \"input-md\",\n lg: \"input-lg\"\n }[this.size];\n\n const labelClass = {\n sm: \"label-sm\",\n md: \"label-md\",\n lg: \"label-lg\"\n }[this.size];\n\n const disabled = this.disabled || this._formDisabled;\n const inputStateClass = disabled\n ? \"form-input--disabled\"\n : this.invalid\n ? \"form-input--error\"\n : this.validated\n ? \"form-input--success\"\n : \"\";\n\n const helpTextClass = this.invalid\n ? \"form-help-text--error\"\n : this.validated\n ? \"form-help-text--success\"\n : \"form-help-text--default\";\n\n // The hint is the field's description, and the state is announced, not\n // only drawn: invalid used to be a red border alone and the hint was never\n // pointed at, so the reason a field was invalid reached a screen reader\n // not at all. Both as bd-custom-input does them.\n return html`\n <div class=\"input-container\">\n ${this.label\n ? html`<label for=\"clipboard-input\" class=\"form-label ${labelClass}\">\n ${this.label}\n ${this.required\n ? html`<span class=\"form-label__required\" aria-hidden=\"true\">*</span>`\n : \"\"}\n </label>`\n : nothing}\n <div class=\"input-with-button\">\n ${keyed(this._resets, html`<input\n id=\"clipboard-input\"\n class=\"form-input-bd ${inputClass} ${inputStateClass} ${this._attempted ? \"form-input--attempted\" : \"\"}\"\n type=\"${this.type}\"\n placeholder=\"${this.placeholder}\"\n .value=\"${this.value}\"\n autocomplete=\"${this.autocomplete || nothing}\"\n spellcheck=\"${this.spellCheck ?? nothing}\"\n enterkeyhint=\"${this.enterkeyhint || nothing}\"\n ?required=\"${this.required}\"\n ?disabled=\"${disabled}\"\n name=\"${this.name || nothing}\"\n aria-label=\"${this._accessibleName || nothing}\"\n aria-invalid=\"${this.invalid ? \"true\" : nothing}\"\n aria-describedby=\"${this.tooltip ? \"clipboard-input-help\" : nothing}\"\n @focus=\"${() => { this.focused = true; }}\"\n @blur=\"${() => { this.focused = false; }}\"\n @input=\"${this.handleInput}\"\n @change=\"${this.handleChange}\"\n @keydown=\"${this._onFieldKeydown}\"\n />`)}\n <button\n class=\"paste-button\"\n @click=\"${this.pasteFromClipboard}\"\n title=\"Paste from clipboard\"\n ?disabled=\"${disabled}\"\n type=\"button\"\n aria-label=\"Paste from clipboard\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path\n d=\"M16 4H18A2 2 0 0 1 20 6V20A2 2 0 0 1 18 22H6A2 2 0 0 1 4 20V6A2 2 0 0 1 6 4H8\"\n />\n <rect x=\"8\" y=\"2\" width=\"8\" height=\"4\" rx=\"1\" ry=\"1\" />\n </svg>\n </button>\n </div>\n\n ${this.tooltip\n ? html`<div id=\"clipboard-input-help\" class=\"form-help-text ${helpTextClass}\">\n ${this.tooltip}\n </div>`\n : \"\"}\n <span class=\"paste-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-custom-input-clipboard\": CustomInputClipboard;\n }\n}\n"],"mappings":"A,mkBAmBA,IACMK,EADN,cACmCC,EAAaC,CAAU,CAAC,AAAC,C,OAC1C,KAAA,OAAA,CAACJ,EAAcH,CAAiB,C,CAoDhD,aAAc,CACZ,MAAM,EAjDA,KAAA,MAAA,GAED,KAAA,KAAA,OAEM,KAAA,KAAA,KAGN,KAAA,KAAA,GAEO,KAAA,YAAA,GAEH,KAAA,SAAA,GAED,KAAA,QAAA,GAEA,KAAA,QAAA,GAEA,KAAA,QAAA,GAEE,KAAA,UAAA,GAED,KAAA,SAAA,GAIH,KAAA,MAAA,GAID,KAAA,KAAA,GAMQ,KAAA,aAAA,GAEa,KAAA,WAAA,KAEb,KAAA,aAAA,GAKF,KAAA,WAAA,GAWX,KAAK,WAAa,IAAIQ,EAAU,IAAI,CACtC,CAEA,IAAc,UAAoC,CAChD,OAAO,KAAK,YAAY,gBAAgB,OAAO,CACjD,CAMA,IAAI,iBAAkB,CAGpB,OAFI,KAAK,MAAc,GACnB,KAAK,WAAmB,KAAK,WAC1B,CAAC,GAAI,KAAK,WAAW,QAAU,CAAC,CAAE,CAAC,CAAC,IAAI,GAAKC,EAAE,YAAa,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CACvF,KAAK,GAAG,CACb,CAWA,MAAM,EAAgC,CACpC,KAAK,cAAc,IAAI,YAAYC,EAAM,CACvC,OAAU,CAAE,MAAO,KAAK,MAAO,KAAM,KAAK,IAAK,EAC/C,QAAU,GACV,SAAU,EACZ,CAAC,CAAC,CACJ,CAEA,MAAM,oBAAqB,CACzB,GAAI,CACF,IAAMC,EAAO,MAAM,UAAU,UAAU,SAAS,EAChD,KAAK,MAAQA,EAGb,KAAK,MAAM,EACX,KAAK,MAAM,UAAU,EACrB,KAAK,MAAM,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AAA"}
@@ -1,10 +1,2 @@
1
- import { css } from "lit";
2
- /**
3
- * bd-custom-input adds nothing to the shared field chrome — a text input is
4
- * the plain case that shared/form-field.css.ts was written around. The file
5
- * stays so the component's `static styles` reads the same as its two
6
- * siblings', and so there is somewhere obvious to put an input-only rule if
7
- * one is ever needed.
8
- */
9
- export default css ``;
1
+ import{css as e}from"lit";var t=e``;export{t as default};
10
2
  //# sourceMappingURL=input.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.css.js","sourceRoot":"","sources":["../../../../src/components/input/input.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;;;GAMG;AACH,eAAe,GAAG,CAAA,EAAE,CAAC","sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-custom-input adds nothing to the shared field chrome — a text input is\n * the plain case that shared/form-field.css.ts was written around. The file\n * stays so the component's `static styles` reads the same as its two\n * siblings', and so there is somewhere obvious to put an input-only rule if\n * one is ever needed.\n */\nexport default css``;\n"]}
1
+ {"version":3,"file":"input.css.js","names":["input_css_default"],"sources":["../../../../src/components/input/input.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-custom-input adds nothing to the shared field chrome — a text input is\n * the plain case that shared/form-field.css.ts was written around. The file\n * stays so the component's `static styles` reads the same as its two\n * siblings', and so there is somewhere obvious to put an input-only rule if\n * one is ever needed.\n */\nexport default css``;\n"],"mappings":"A,0BASA,IAAAA,EAAe,CAAG,G"}
@@ -1,8 +1,8 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
- import "../shared/events.ts";
3
- import "../../tokens/tokens.ts";
4
- import { type Size } from '../shared/prop-vocabulary.ts';
5
- declare const CustomInput_base: (new (...args: any[]) => import("../shared/form-control.ts").ValueControlInterface) & (new (...args: any[]) => import("../shared/form-control.ts").FormControlInterface) & typeof LitElement;
2
+ import "../shared/events.js";
3
+ import "../../tokens/tokens.js";
4
+ import { type Size } from "../shared/prop-vocabulary.js";
5
+ declare const CustomInput_base: (new (...args: any[]) => import("../shared/form-control.js").ValueControlInterface) & (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
6
6
  declare class CustomInput extends CustomInput_base {
7
7
  static styles: import("lit").CSSResult[];
8
8
  label: string;