@esportsplus/ui 0.54.0 → 0.56.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 (848) hide show
  1. package/README.md +144 -4
  2. package/build/components/accordion/index.d.ts +2157 -8
  3. package/build/components/accordion/index.js +25 -11
  4. package/build/components/accordion/more.d.ts +20 -0
  5. package/build/components/accordion/more.js +76 -0
  6. package/build/components/accordion/scss/index.scss +1 -1
  7. package/build/components/anchor/scss/index.scss +1 -1
  8. package/build/components/announcement-banner/index.d.ts +33 -0
  9. package/build/components/announcement-banner/index.js +61 -0
  10. package/build/components/announcement-banner/scss/index.scss +2 -0
  11. package/build/components/autosave/index.d.ts +12 -0
  12. package/build/components/autosave/index.js +140 -0
  13. package/build/components/autosave/scss/index.scss +2 -0
  14. package/build/components/back-to-top/index.d.ts +16 -0
  15. package/build/components/back-to-top/index.js +182 -0
  16. package/build/components/back-to-top/scss/index.scss +2 -0
  17. package/build/components/bento-grid/index.d.ts +25 -0
  18. package/build/components/bento-grid/index.js +38 -0
  19. package/build/components/bento-grid/scss/index.scss +2 -0
  20. package/build/components/bento-grid-spotlight/index.d.ts +35 -0
  21. package/build/components/bento-grid-spotlight/index.js +108 -0
  22. package/build/components/bento-grid-spotlight/scss/index.scss +2 -0
  23. package/build/components/bookmark-button/index.d.ts +23 -0
  24. package/build/components/bookmark-button/index.js +120 -0
  25. package/build/components/bookmark-button/scss/index.scss +2 -0
  26. package/build/components/breadcrumb/ellipsis.d.ts +12 -0
  27. package/build/components/breadcrumb/ellipsis.js +11 -0
  28. package/build/components/breadcrumb/index.d.ts +29 -0
  29. package/build/components/breadcrumb/index.js +19 -0
  30. package/build/components/breadcrumb/item.d.ts +12 -0
  31. package/build/components/breadcrumb/item.js +9 -0
  32. package/build/components/breadcrumb/link.d.ts +15 -0
  33. package/build/components/breadcrumb/link.js +14 -0
  34. package/build/components/breadcrumb/list.d.ts +12 -0
  35. package/build/components/breadcrumb/list.js +9 -0
  36. package/build/components/breadcrumb/menu.d.ts +13 -0
  37. package/build/components/breadcrumb/menu.js +16 -0
  38. package/build/components/breadcrumb/page.d.ts +12 -0
  39. package/build/components/breadcrumb/page.js +9 -0
  40. package/build/components/breadcrumb/scss/index.scss +2 -0
  41. package/build/components/breadcrumb/separator.d.ts +12 -0
  42. package/build/components/breadcrumb/separator.js +11 -0
  43. package/build/components/breadcrumb/svg/caret.svg +1 -0
  44. package/build/components/breadcrumb/svg/chevron.svg +1 -0
  45. package/build/components/breadcrumb/svg/more.svg +1 -0
  46. package/build/components/breadcrumbs/index.d.ts +27 -0
  47. package/build/components/breadcrumbs/index.js +324 -0
  48. package/build/components/breadcrumbs/scss/index.scss +2 -0
  49. package/build/components/button/copy.d.ts +21 -0
  50. package/build/components/button/copy.js +48 -0
  51. package/build/components/button/faces.d.ts +10 -0
  52. package/build/components/button/faces.js +16 -0
  53. package/build/components/button/fan.d.ts +24 -0
  54. package/build/components/button/fan.js +117 -0
  55. package/build/components/button/hold.d.ts +31 -0
  56. package/build/components/button/hold.js +117 -0
  57. package/build/components/button/icons.d.ts +6 -0
  58. package/build/components/button/icons.js +12 -0
  59. package/build/components/button/index.d.ts +14 -0
  60. package/build/components/button/index.js +8 -0
  61. package/build/components/button/kbd.d.ts +15 -0
  62. package/build/components/button/kbd.js +106 -0
  63. package/build/components/button/loading.d.ts +22 -0
  64. package/build/components/button/loading.js +60 -0
  65. package/build/components/button/scss/index.scss +1 -1
  66. package/build/components/button/svg/plus.svg +1 -0
  67. package/build/components/card/scss/index.scss +1 -1
  68. package/build/components/card-input/index.d.ts +31 -0
  69. package/build/components/card-input/index.js +562 -0
  70. package/build/components/card-input/scss/index.scss +2 -0
  71. package/build/components/carousel-3d/index.d.ts +27 -0
  72. package/build/components/carousel-3d/index.js +248 -0
  73. package/build/components/carousel-3d/scss/index.scss +2 -0
  74. package/build/components/checkbox/index.d.ts +1447 -11
  75. package/build/components/checkbox/index.js +50 -66
  76. package/build/components/checkbox/scss/index.scss +1 -1
  77. package/build/components/checkbox-group/index.d.ts +30 -0
  78. package/build/components/checkbox-group/index.js +101 -0
  79. package/build/components/checkbox-group/scss/index.scss +2 -0
  80. package/build/components/clipboard/copy.d.ts +21 -5
  81. package/build/components/clipboard/copy.js +28 -29
  82. package/build/components/clipboard/index.d.ts +2165 -1435
  83. package/build/components/clipboard/index.js +2 -3
  84. package/build/components/code-morph/index.d.ts +25 -0
  85. package/build/components/code-morph/index.js +401 -0
  86. package/build/components/code-morph/scss/index.scss +2 -0
  87. package/build/components/collapsible-sidebar/index.d.ts +41 -0
  88. package/build/components/collapsible-sidebar/index.js +105 -0
  89. package/build/components/collapsible-sidebar/scss/index.scss +2 -0
  90. package/build/components/color-picker/index.d.ts +19 -0
  91. package/build/components/color-picker/index.js +569 -0
  92. package/build/components/color-picker/scss/index.scss +2 -0
  93. package/build/components/command/constants.d.ts +3 -0
  94. package/build/components/command/constants.js +3 -0
  95. package/build/components/command/index.d.ts +30 -0
  96. package/build/components/command/index.js +188 -0
  97. package/build/components/command/scss/index.scss +2 -0
  98. package/build/components/command-palette/index.d.ts +51 -0
  99. package/build/components/command-palette/index.js +319 -0
  100. package/build/components/command-palette/scss/index.scss +2 -0
  101. package/build/components/composer/index.d.ts +29 -0
  102. package/build/components/composer/index.js +79 -0
  103. package/build/components/composer/scss/index.scss +2 -0
  104. package/build/components/composer/svg/arrow-up.svg +1 -0
  105. package/build/components/container/scss/index.scss +1 -1
  106. package/build/components/contribution-heatmap/index.d.ts +30 -0
  107. package/build/components/contribution-heatmap/index.js +236 -0
  108. package/build/components/contribution-heatmap/scss/index.scss +2 -0
  109. package/build/components/counter/index.d.ts +3 -1
  110. package/build/components/counter/index.js +54 -31
  111. package/build/components/counter/scss/index.scss +1 -1
  112. package/build/components/datalist/index.d.ts +37 -0
  113. package/build/components/datalist/index.js +159 -0
  114. package/build/components/datalist/scss/index.scss +2 -0
  115. package/build/components/date-range-picker/index.d.ts +28 -0
  116. package/build/components/date-range-picker/index.js +443 -0
  117. package/build/components/date-range-picker/scss/index.scss +2 -0
  118. package/build/components/dock/index.d.ts +24 -0
  119. package/build/components/dock/index.js +200 -0
  120. package/build/components/dock/scss/index.scss +2 -0
  121. package/build/components/dynamic-island/index.d.ts +23 -0
  122. package/build/components/dynamic-island/index.js +179 -0
  123. package/build/components/dynamic-island/scss/index.scss +2 -0
  124. package/build/components/email-typo-fix/index.d.ts +28 -0
  125. package/build/components/email-typo-fix/index.js +416 -0
  126. package/build/components/email-typo-fix/scss/index.scss +2 -0
  127. package/build/components/expanding-card/index.d.ts +26 -0
  128. package/build/components/expanding-card/index.js +265 -0
  129. package/build/components/expanding-card/scss/index.scss +2 -0
  130. package/build/components/feature-spotlight/index.d.ts +37 -0
  131. package/build/components/feature-spotlight/index.js +248 -0
  132. package/build/components/feature-spotlight/scss/index.scss +2 -0
  133. package/build/components/file-tree/index.d.ts +31 -0
  134. package/build/components/file-tree/index.js +208 -0
  135. package/build/components/file-tree/scss/index.scss +2 -0
  136. package/build/components/filter-grid/index.d.ts +23 -0
  137. package/build/components/filter-grid/index.js +240 -0
  138. package/build/components/filter-grid/scss/index.scss +2 -0
  139. package/build/components/form/action.d.ts +1 -1
  140. package/build/components/form/action.js +9 -12
  141. package/build/components/form/index.d.ts +1 -1
  142. package/build/components/form/scss/index.scss +1 -1
  143. package/build/components/gradient-text/index.d.ts +19 -0
  144. package/build/components/gradient-text/index.js +14 -0
  145. package/build/components/gradient-text/scss/index.scss +2 -0
  146. package/build/components/grid/scss/index.scss +1 -1
  147. package/build/components/header/index.d.ts +41 -0
  148. package/build/components/header/index.js +281 -0
  149. package/build/components/header/scss/index.scss +2 -0
  150. package/build/components/highlight/index.d.ts +25 -0
  151. package/build/components/highlight/index.js +218 -0
  152. package/build/components/highlight/scss/index.scss +2 -0
  153. package/build/components/hover-card/index.d.ts +47 -0
  154. package/build/components/hover-card/index.js +197 -0
  155. package/build/components/hover-card/scss/index.scss +2 -0
  156. package/build/components/icon/index.d.ts +11 -2
  157. package/build/components/icon/index.js +6 -6
  158. package/build/components/image/index.d.ts +14 -0
  159. package/build/components/image/index.js +62 -0
  160. package/build/components/image/scss/index.scss +2 -0
  161. package/build/components/index.d.ts +96 -1
  162. package/build/components/index.js +96 -1
  163. package/build/components/inline-edit/index.d.ts +30 -0
  164. package/build/components/inline-edit/index.js +108 -0
  165. package/build/components/inline-edit/scss/index.scss +2 -0
  166. package/build/components/input/index.d.ts +8 -2
  167. package/build/components/input/index.js +12 -13
  168. package/build/components/input/scss/index.scss +1 -1
  169. package/build/components/kanban-board/index.d.ts +23 -0
  170. package/build/components/kanban-board/index.js +235 -0
  171. package/build/components/kanban-board/scss/index.scss +2 -0
  172. package/build/components/lightbox/index.d.ts +32 -0
  173. package/build/components/lightbox/index.js +396 -0
  174. package/build/components/lightbox/scss/index.scss +2 -0
  175. package/build/components/lightbox/spring.d.ts +16 -0
  176. package/build/components/lightbox/spring.js +71 -0
  177. package/build/components/line-shadow-text/index.d.ts +17 -0
  178. package/build/components/line-shadow-text/index.js +15 -0
  179. package/build/components/line-shadow-text/scss/index.scss +2 -0
  180. package/build/components/link/scss/index.scss +1 -1
  181. package/build/components/loading/index.js +5 -7
  182. package/build/components/loading/scss/index.scss +1 -1
  183. package/build/components/log/index.d.ts +20 -0
  184. package/build/components/log/index.js +125 -0
  185. package/build/components/log/scss/index.scss +2 -0
  186. package/build/components/long-press/bind.d.ts +21 -0
  187. package/build/components/long-press/bind.js +136 -0
  188. package/build/components/long-press/button.d.ts +21 -0
  189. package/build/components/long-press/button.js +25 -0
  190. package/build/components/long-press/index.d.ts +2181 -0
  191. package/build/components/long-press/index.js +4 -0
  192. package/build/components/long-press/scss/index.scss +2 -0
  193. package/build/components/marquee/index.d.ts +20 -0
  194. package/build/components/marquee/index.js +236 -0
  195. package/build/components/marquee/scss/index.scss +2 -0
  196. package/build/components/modal/index.d.ts +24 -0
  197. package/build/components/modal/index.js +75 -0
  198. package/build/components/modal/scss/index.scss +1 -1
  199. package/build/components/morphing-button/index.d.ts +24 -0
  200. package/build/components/morphing-button/index.js +127 -0
  201. package/build/components/morphing-button/scss/index.scss +2 -0
  202. package/build/components/morphing-nav/index.d.ts +38 -0
  203. package/build/components/morphing-nav/index.js +342 -0
  204. package/build/components/morphing-nav/scss/index.scss +2 -0
  205. package/build/components/multi-step-form/index.d.ts +32 -0
  206. package/build/components/multi-step-form/index.js +305 -0
  207. package/build/components/multi-step-form/scss/index.scss +2 -0
  208. package/build/components/nested-menu/index.d.ts +27 -0
  209. package/build/components/nested-menu/index.js +374 -0
  210. package/build/components/nested-menu/scss/index.scss +2 -0
  211. package/build/components/notification-bell/index.d.ts +13 -0
  212. package/build/components/notification-bell/index.js +87 -0
  213. package/build/components/notification-bell/scss/index.scss +2 -0
  214. package/build/components/notification-bell/svg/bell.svg +1 -0
  215. package/build/components/onboarding-checklist/index.d.ts +29 -0
  216. package/build/components/onboarding-checklist/index.js +196 -0
  217. package/build/components/onboarding-checklist/scss/index.scss +2 -0
  218. package/build/components/overlay/index.d.ts +11 -2
  219. package/build/components/overlay/index.js +7 -7
  220. package/build/components/page-dots/index.d.ts +24 -0
  221. package/build/components/page-dots/index.js +116 -0
  222. package/build/components/page-dots/scss/index.scss +2 -0
  223. package/build/components/pagination/index.d.ts +11 -0
  224. package/build/components/pagination/index.js +109 -0
  225. package/build/components/pagination/scss/index.scss +2 -0
  226. package/build/components/pagination/svg/arrow-left.svg +1 -0
  227. package/build/components/pagination/svg/arrow-right.svg +1 -0
  228. package/build/components/password/constants.d.ts +2 -0
  229. package/build/components/password/constants.js +2 -0
  230. package/build/components/password/index.d.ts +22 -0
  231. package/build/components/password/index.js +74 -0
  232. package/build/components/password/scss/index.scss +2 -0
  233. package/build/components/progress/index.d.ts +15 -0
  234. package/build/components/progress/index.js +37 -0
  235. package/build/components/progress/scss/index.scss +2 -0
  236. package/build/components/pull-to-refresh/index.d.ts +26 -0
  237. package/build/components/pull-to-refresh/index.js +260 -0
  238. package/build/components/pull-to-refresh/scss/index.scss +2 -0
  239. package/build/components/radio/index.d.ts +3 -1442
  240. package/build/components/radio/index.js +2 -1
  241. package/build/components/radio-cards/index.d.ts +36 -0
  242. package/build/components/radio-cards/index.js +106 -0
  243. package/build/components/radio-cards/scss/index.scss +2 -0
  244. package/build/components/range/index.js +13 -13
  245. package/build/components/range/scss/index.scss +1 -1
  246. package/build/components/range-filter/index.d.ts +20 -0
  247. package/build/components/range-filter/index.js +216 -0
  248. package/build/components/range-filter/scss/index.scss +2 -0
  249. package/build/components/range-slider/index.d.ts +30 -0
  250. package/build/components/range-slider/index.js +287 -0
  251. package/build/components/range-slider/scss/index.scss +2 -0
  252. package/build/components/reading-progress/index.d.ts +13 -0
  253. package/build/components/reading-progress/index.js +106 -0
  254. package/build/components/reading-progress/scss/index.scss +2 -0
  255. package/build/components/relative-time/index.d.ts +25 -0
  256. package/build/components/relative-time/index.js +283 -0
  257. package/build/components/relative-time/scss/index.scss +2 -0
  258. package/build/components/root/scss/index.scss +1 -1
  259. package/build/components/scroll-fade/index.d.ts +39 -0
  260. package/build/components/scroll-fade/index.js +104 -0
  261. package/build/components/scroll-fade/scss/index.scss +2 -0
  262. package/build/components/scroll-spine/index.d.ts +26 -0
  263. package/build/components/scroll-spine/index.js +204 -0
  264. package/build/components/scroll-spine/scss/index.scss +2 -0
  265. package/build/components/scroll-velocity/index.d.ts +22 -0
  266. package/build/components/scroll-velocity/index.js +160 -0
  267. package/build/components/scroll-velocity/scss/index.scss +2 -0
  268. package/build/components/scrub-input/index.d.ts +39 -0
  269. package/build/components/scrub-input/index.js +221 -0
  270. package/build/components/scrub-input/scss/index.scss +2 -0
  271. package/build/components/select/index.d.ts +16 -8
  272. package/build/components/select/index.js +66 -81
  273. package/build/components/select/scss/index.scss +1 -1
  274. package/build/components/select-menu/index.d.ts +34 -0
  275. package/build/components/select-menu/index.js +329 -0
  276. package/build/components/select-menu/scss/index.scss +2 -0
  277. package/build/components/selection-toolbar/index.d.ts +36 -0
  278. package/build/components/selection-toolbar/index.js +442 -0
  279. package/build/components/selection-toolbar/scss/index.scss +2 -0
  280. package/build/components/settings/index.d.ts +43 -0
  281. package/build/components/settings/index.js +147 -0
  282. package/build/components/settings/scss/index.scss +2 -0
  283. package/build/components/settings/svg/close.svg +1 -0
  284. package/build/components/settings/svg/saved.svg +1 -0
  285. package/build/components/share-button/index.d.ts +29 -0
  286. package/build/components/share-button/index.js +191 -0
  287. package/build/components/share-button/scss/index.scss +2 -0
  288. package/build/components/sheet/index.d.ts +33 -0
  289. package/build/components/sheet/index.js +110 -0
  290. package/build/components/sheet/scss/index.scss +2 -0
  291. package/build/components/shiny-text/index.d.ts +17 -0
  292. package/build/components/shiny-text/index.js +14 -0
  293. package/build/components/shiny-text/scss/index.scss +2 -0
  294. package/build/components/shortcut-recorder/index.d.ts +12 -0
  295. package/build/components/shortcut-recorder/index.js +230 -0
  296. package/build/components/shortcut-recorder/scss/index.scss +2 -0
  297. package/build/components/shortcut-sheet/index.d.ts +48 -0
  298. package/build/components/shortcut-sheet/index.js +304 -0
  299. package/build/components/shortcut-sheet/scss/index.scss +2 -0
  300. package/build/components/sidebar/index.d.ts +11 -2
  301. package/build/components/sidebar/index.js +7 -7
  302. package/build/components/sidebar/scss/index.scss +1 -1
  303. package/build/components/slider/index.d.ts +25 -0
  304. package/build/components/slider/index.js +188 -0
  305. package/build/components/slider/scss/index.scss +2 -0
  306. package/build/components/sliding-tabs/index.d.ts +28 -0
  307. package/build/components/sliding-tabs/index.js +188 -0
  308. package/build/components/sliding-tabs/scss/index.scss +2 -0
  309. package/build/components/snap-carousel/index.d.ts +30 -0
  310. package/build/components/snap-carousel/index.js +233 -0
  311. package/build/components/snap-carousel/scss/index.scss +2 -0
  312. package/build/components/sortable/index.d.ts +9 -0
  313. package/build/components/sortable/index.js +302 -0
  314. package/build/components/sortable/scss/index.scss +2 -0
  315. package/build/components/sparkline/index.d.ts +26 -0
  316. package/build/components/sparkline/index.js +173 -0
  317. package/build/components/sparkline/scss/index.scss +2 -0
  318. package/build/components/stacked-drawer/index.d.ts +24 -0
  319. package/build/components/stacked-drawer/index.js +211 -0
  320. package/build/components/stacked-drawer/scss/index.scss +2 -0
  321. package/build/components/stat-counter/index.d.ts +32 -0
  322. package/build/components/stat-counter/index.js +216 -0
  323. package/build/components/stat-counter/scss/index.scss +2 -0
  324. package/build/components/status-picker/index.d.ts +32 -0
  325. package/build/components/status-picker/index.js +198 -0
  326. package/build/components/status-picker/scss/index.scss +2 -0
  327. package/build/components/sticky-header/index.d.ts +2159 -0
  328. package/build/components/sticky-header/index.js +98 -0
  329. package/build/components/sticky-header/scss/index.scss +2 -0
  330. package/build/components/sticky-stack/index.d.ts +33 -0
  331. package/build/components/sticky-stack/index.js +184 -0
  332. package/build/components/sticky-stack/scss/index.scss +2 -0
  333. package/build/components/story-progress/index.d.ts +26 -0
  334. package/build/components/story-progress/index.js +196 -0
  335. package/build/components/story-progress/scss/index.scss +2 -0
  336. package/build/components/swipe-deck/index.d.ts +19 -0
  337. package/build/components/swipe-deck/index.js +300 -0
  338. package/build/components/swipe-deck/scss/index.scss +2 -0
  339. package/build/components/switch/index.d.ts +3 -1442
  340. package/build/components/switch/index.js +2 -1
  341. package/build/components/tabs/scss/index.scss +1 -1
  342. package/build/components/tag-input/index.d.ts +27 -0
  343. package/build/components/tag-input/index.js +309 -0
  344. package/build/components/tag-input/scss/index.scss +2 -0
  345. package/build/components/task-list/index.d.ts +28 -0
  346. package/build/components/task-list/index.js +107 -0
  347. package/build/components/task-list/scss/index.scss +2 -0
  348. package/build/components/tasklist/constants.d.ts +2 -0
  349. package/build/components/tasklist/constants.js +2 -0
  350. package/build/components/tasklist/index.d.ts +730 -0
  351. package/build/components/tasklist/index.js +116 -0
  352. package/build/components/tasklist/scss/index.scss +2 -0
  353. package/build/components/text-animate/index.d.ts +30 -0
  354. package/build/components/text-animate/index.js +97 -0
  355. package/build/components/text-animate/scss/index.scss +2 -0
  356. package/build/components/text-progress/index.d.ts +13 -0
  357. package/build/components/text-progress/index.js +114 -0
  358. package/build/components/text-progress/scss/index.scss +2 -0
  359. package/build/components/textarea/index.d.ts +2159 -715
  360. package/build/components/textarea/index.js +16 -18
  361. package/build/components/textarea/scss/index.scss +1 -1
  362. package/build/components/thumbnail/scss/index.scss +1 -1
  363. package/build/components/toast/index.js +53 -43
  364. package/build/components/toast/manager.d.ts +4 -0
  365. package/build/components/toast/manager.js +19 -1
  366. package/build/components/toast/scss/index.scss +1 -1
  367. package/build/components/tooltip/context.d.ts +22 -0
  368. package/build/components/tooltip/context.js +66 -0
  369. package/build/components/tooltip/group.d.ts +29 -0
  370. package/build/components/tooltip/group.js +128 -0
  371. package/build/components/tooltip/index.d.ts +12 -2153
  372. package/build/components/tooltip/index.js +4 -1
  373. package/build/components/tooltip/menu.d.ts +23 -10
  374. package/build/components/tooltip/menu.js +16 -36
  375. package/build/components/tooltip/onclick.d.ts +22 -713
  376. package/build/components/tooltip/onclick.js +32 -18
  377. package/build/components/tooltip/onhover.d.ts +24 -711
  378. package/build/components/tooltip/onhover.js +85 -14
  379. package/build/components/tooltip/options.d.ts +7 -0
  380. package/build/components/tooltip/options.js +21 -0
  381. package/build/components/tooltip/scss/index.scss +1 -1
  382. package/build/components/tooltip/utilities.d.ts +4 -0
  383. package/build/components/tooltip/utilities.js +58 -0
  384. package/build/components/tree/index.d.ts +28 -0
  385. package/build/components/tree/index.js +182 -0
  386. package/build/components/tree/scss/index.scss +2 -0
  387. package/build/components/tree-view/index.d.ts +25 -0
  388. package/build/components/tree-view/index.js +205 -0
  389. package/build/components/tree-view/scss/index.scss +2 -0
  390. package/build/components/typewriter/index.d.ts +11 -2
  391. package/build/components/typewriter/index.js +16 -12
  392. package/build/components/typewriter/scss/index.scss +1 -1
  393. package/build/components/typewriter-retype/index.d.ts +8 -0
  394. package/build/components/typewriter-retype/index.js +122 -0
  395. package/build/components/typewriter-retype/scss/index.scss +2 -0
  396. package/build/components/undo-toast/index.d.ts +30 -0
  397. package/build/components/undo-toast/index.js +262 -0
  398. package/build/components/undo-toast/scss/index.scss +2 -0
  399. package/build/components/uptime/index.d.ts +21 -0
  400. package/build/components/uptime/index.js +210 -0
  401. package/build/components/uptime/scss/index.scss +2 -0
  402. package/build/components/usage-meter/index.d.ts +2159 -0
  403. package/build/components/usage-meter/index.js +30 -0
  404. package/build/components/usage-meter/scss/index.scss +2 -0
  405. package/build/components/value-flash/index.d.ts +12 -0
  406. package/build/components/value-flash/index.js +106 -0
  407. package/build/components/value-flash/scss/index.scss +2 -0
  408. package/build/components/waitlist-join/index.d.ts +34 -0
  409. package/build/components/waitlist-join/index.js +402 -0
  410. package/build/components/waitlist-join/scss/index.scss +2 -0
  411. package/build/components/web-search/brands.d.ts +121 -0
  412. package/build/components/web-search/brands.js +138 -0
  413. package/build/components/web-search/index.d.ts +31 -0
  414. package/build/components/web-search/index.js +245 -0
  415. package/build/components/web-search/scss/index.scss +2 -0
  416. package/build/components/word-rotator/index.d.ts +14 -0
  417. package/build/components/word-rotator/index.js +196 -0
  418. package/build/components/word-rotator/scss/index.scss +2 -0
  419. package/build/css-utilities/absolute/scss/index.scss +1 -1
  420. package/build/css-utilities/index.scss +1 -1
  421. package/build/css-utilities/scrollbar/scss/index.scss +1 -1
  422. package/build/themes/dark/input.d.ts +496 -492
  423. package/build/themes/dark/select.d.ts +3 -735
  424. package/build/themes/dark/select.js +4 -3
  425. package/build/themes/dark/textarea.d.ts +2172 -718
  426. package/package.json +6 -6
  427. package/pnpm-workspace.yaml +5 -5
  428. package/src/components/accordion/index.ts +13 -14
  429. package/src/components/accordion/more.ts +97 -0
  430. package/src/components/accordion/scss/index.scss +144 -1
  431. package/src/components/anchor/scss/index.scss +2 -2
  432. package/src/components/announcement-banner/index.ts +81 -0
  433. package/src/components/announcement-banner/scss/index.scss +183 -0
  434. package/src/components/announcement-banner/scss/variables.scss +18 -0
  435. package/src/components/autosave/index.ts +113 -0
  436. package/src/components/autosave/scss/index.scss +155 -0
  437. package/src/components/autosave/scss/variables.scss +22 -0
  438. package/src/components/back-to-top/index.ts +293 -0
  439. package/src/components/back-to-top/scss/index.scss +111 -0
  440. package/src/components/back-to-top/scss/variables.scss +30 -0
  441. package/src/components/banner/scss/variables.scss +1 -1
  442. package/src/components/bento-grid/index.ts +63 -0
  443. package/src/components/bento-grid/scss/index.scss +174 -0
  444. package/src/components/bento-grid/scss/variables.scss +19 -0
  445. package/src/components/bento-grid-spotlight/index.ts +133 -0
  446. package/src/components/bento-grid-spotlight/scss/index.scss +226 -0
  447. package/src/components/bento-grid-spotlight/scss/variables.scss +36 -0
  448. package/src/components/bookmark-button/index.ts +174 -0
  449. package/src/components/bookmark-button/scss/index.scss +162 -0
  450. package/src/components/bookmark-button/scss/variables.scss +28 -0
  451. package/src/components/breadcrumb/ellipsis.ts +17 -0
  452. package/src/components/breadcrumb/index.ts +32 -0
  453. package/src/components/breadcrumb/item.ts +10 -0
  454. package/src/components/breadcrumb/link.ts +21 -0
  455. package/src/components/breadcrumb/list.ts +10 -0
  456. package/src/components/breadcrumb/menu.ts +20 -0
  457. package/src/components/breadcrumb/page.ts +16 -0
  458. package/src/components/breadcrumb/scss/index.scss +74 -0
  459. package/src/components/breadcrumb/scss/variables.scss +17 -0
  460. package/src/components/breadcrumb/separator.ts +17 -0
  461. package/src/components/breadcrumb/svg/caret.svg +1 -0
  462. package/src/components/breadcrumb/svg/chevron.svg +1 -0
  463. package/src/components/breadcrumb/svg/more.svg +1 -0
  464. package/src/components/breadcrumbs/index.ts +479 -0
  465. package/src/components/breadcrumbs/scss/index.scss +235 -0
  466. package/src/components/breadcrumbs/scss/variables.scss +30 -0
  467. package/src/components/button/copy.ts +59 -0
  468. package/src/components/button/faces.ts +29 -0
  469. package/src/components/button/fan.ts +173 -0
  470. package/src/components/button/hold.ts +154 -0
  471. package/src/components/button/icons.ts +38 -0
  472. package/src/components/button/index.ts +12 -0
  473. package/src/components/button/kbd.ts +156 -0
  474. package/src/components/button/loading.ts +77 -0
  475. package/src/components/button/scss/_fan.scss +125 -0
  476. package/src/components/button/scss/_kbd.scss +10 -0
  477. package/src/components/button/scss/index.scss +117 -5
  478. package/src/components/button/scss/variables.scss +81 -0
  479. package/src/components/button/svg/plus.svg +1 -0
  480. package/src/components/card/scss/index.scss +2 -3
  481. package/src/components/card-input/index.ts +594 -0
  482. package/src/components/card-input/scss/index.scss +512 -0
  483. package/src/components/card-input/scss/variables.scss +29 -0
  484. package/src/components/carousel-3d/index.ts +405 -0
  485. package/src/components/carousel-3d/scss/index.scss +155 -0
  486. package/src/components/carousel-3d/scss/variables.scss +25 -0
  487. package/src/components/checkbox/index.ts +17 -25
  488. package/src/components/checkbox/scss/index.scss +6 -3
  489. package/src/components/checkbox-group/index.ts +171 -0
  490. package/src/components/checkbox-group/scss/index.scss +229 -0
  491. package/src/components/checkbox-group/scss/variables.scss +28 -0
  492. package/src/components/clipboard/copy.ts +24 -35
  493. package/src/components/clipboard/index.ts +2 -3
  494. package/src/components/code-morph/index.ts +459 -0
  495. package/src/components/code-morph/scss/index.scss +384 -0
  496. package/src/components/code-morph/scss/variables.scss +33 -0
  497. package/src/components/collapsible-sidebar/index.ts +193 -0
  498. package/src/components/collapsible-sidebar/scss/index.scss +220 -0
  499. package/src/components/collapsible-sidebar/scss/variables.scss +42 -0
  500. package/src/components/color-picker/index.ts +650 -0
  501. package/src/components/color-picker/scss/index.scss +345 -0
  502. package/src/components/color-picker/scss/variables.scss +33 -0
  503. package/src/components/command/constants.ts +6 -0
  504. package/src/components/command/index.ts +282 -0
  505. package/src/components/command/scss/index.scss +213 -0
  506. package/src/components/command/scss/variables.scss +35 -0
  507. package/src/components/command-palette/index.ts +456 -0
  508. package/src/components/command-palette/scss/index.scss +235 -0
  509. package/src/components/command-palette/scss/variables.scss +42 -0
  510. package/src/components/composer/index.ts +117 -0
  511. package/src/components/composer/scss/index.scss +105 -0
  512. package/src/components/composer/scss/variables.scss +82 -0
  513. package/src/components/composer/svg/arrow-up.svg +1 -0
  514. package/src/components/container/scss/index.scss +2 -1
  515. package/src/components/contribution-heatmap/index.ts +348 -0
  516. package/src/components/contribution-heatmap/scss/index.scss +151 -0
  517. package/src/components/contribution-heatmap/scss/variables.scss +39 -0
  518. package/src/components/counter/index.ts +58 -20
  519. package/src/components/counter/scss/index.scss +56 -2
  520. package/src/components/counter/scss/variables.scss +38 -2
  521. package/src/components/datalist/index.ts +236 -0
  522. package/src/components/datalist/scss/index.scss +84 -0
  523. package/src/components/datalist/scss/variables.scss +26 -0
  524. package/src/components/date-range-picker/index.ts +641 -0
  525. package/src/components/date-range-picker/scss/index.scss +380 -0
  526. package/src/components/date-range-picker/scss/variables.scss +22 -0
  527. package/src/components/dock/index.ts +265 -0
  528. package/src/components/dock/scss/index.scss +102 -0
  529. package/src/components/dock/scss/variables.scss +30 -0
  530. package/src/components/dynamic-island/index.ts +161 -0
  531. package/src/components/dynamic-island/scss/index.scss +278 -0
  532. package/src/components/dynamic-island/scss/variables.scss +39 -0
  533. package/src/components/email-typo-fix/index.ts +615 -0
  534. package/src/components/email-typo-fix/scss/index.scss +213 -0
  535. package/src/components/email-typo-fix/scss/variables.scss +18 -0
  536. package/src/components/expanding-card/index.ts +377 -0
  537. package/src/components/expanding-card/scss/index.scss +232 -0
  538. package/src/components/expanding-card/scss/variables.scss +22 -0
  539. package/src/components/feature-spotlight/index.ts +437 -0
  540. package/src/components/feature-spotlight/scss/index.scss +254 -0
  541. package/src/components/feature-spotlight/scss/variables.scss +36 -0
  542. package/src/components/file-tree/index.ts +319 -0
  543. package/src/components/file-tree/scss/index.scss +138 -0
  544. package/src/components/file-tree/scss/variables.scss +18 -0
  545. package/src/components/filter-grid/index.ts +344 -0
  546. package/src/components/filter-grid/scss/index.scss +142 -0
  547. package/src/components/filter-grid/scss/variables.scss +41 -0
  548. package/src/components/form/action.ts +2 -8
  549. package/src/components/form/scss/index.scss +2 -1
  550. package/src/components/gradient-text/index.ts +26 -0
  551. package/src/components/gradient-text/scss/index.scss +20 -0
  552. package/src/components/gradient-text/scss/variables.scss +6 -0
  553. package/src/components/grid/scss/index.scss +1 -1
  554. package/src/components/header/index.ts +318 -0
  555. package/src/components/header/scss/index.scss +508 -0
  556. package/src/components/header/scss/variables.scss +21 -0
  557. package/src/components/highlight/index.ts +239 -0
  558. package/src/components/highlight/scss/index.scss +48 -0
  559. package/src/components/highlight/scss/variables.scss +26 -0
  560. package/src/components/hover-card/index.ts +319 -0
  561. package/src/components/hover-card/scss/index.scss +117 -0
  562. package/src/components/hover-card/scss/variables.scss +25 -0
  563. package/src/components/image/index.ts +79 -0
  564. package/src/components/image/scss/index.scss +82 -0
  565. package/src/components/image/scss/variables.scss +15 -0
  566. package/src/components/index.ts +96 -1
  567. package/src/components/inline-edit/index.ts +177 -0
  568. package/src/components/inline-edit/scss/index.scss +152 -0
  569. package/src/components/inline-edit/scss/variables.scss +17 -0
  570. package/src/components/input/index.ts +15 -6
  571. package/src/components/input/scss/index.scss +2 -3
  572. package/src/components/kanban-board/index.ts +326 -0
  573. package/src/components/kanban-board/scss/index.scss +126 -0
  574. package/src/components/kanban-board/scss/variables.scss +39 -0
  575. package/src/components/lightbox/index.ts +594 -0
  576. package/src/components/lightbox/scss/index.scss +194 -0
  577. package/src/components/lightbox/scss/variables.scss +24 -0
  578. package/src/components/lightbox/spring.ts +118 -0
  579. package/src/components/line-shadow-text/index.ts +24 -0
  580. package/src/components/line-shadow-text/scss/index.scss +45 -0
  581. package/src/components/line-shadow-text/scss/variables.scss +6 -0
  582. package/src/components/link/scss/index.scss +2 -3
  583. package/src/components/loading/index.ts +3 -10
  584. package/src/components/loading/scss/index.scss +55 -4
  585. package/src/components/loading/scss/variables.scss +15 -1
  586. package/src/components/log/index.ts +156 -0
  587. package/src/components/log/scss/index.scss +269 -0
  588. package/src/components/log/scss/variables.scss +19 -0
  589. package/src/components/long-press/bind.ts +159 -0
  590. package/src/components/long-press/button.ts +46 -0
  591. package/src/components/long-press/index.ts +6 -0
  592. package/src/components/long-press/scss/index.scss +60 -0
  593. package/src/components/long-press/scss/variables.scss +9 -0
  594. package/src/components/marquee/index.ts +300 -0
  595. package/src/components/marquee/scss/index.scss +109 -0
  596. package/src/components/marquee/scss/variables.scss +18 -0
  597. package/src/components/modal/index.ts +91 -0
  598. package/src/components/modal/scss/index.scss +51 -4
  599. package/src/components/modal/scss/variables.scss +36 -0
  600. package/src/components/morphing-button/index.ts +188 -0
  601. package/src/components/morphing-button/scss/index.scss +154 -0
  602. package/src/components/morphing-button/scss/variables.scss +21 -0
  603. package/src/components/morphing-nav/index.ts +496 -0
  604. package/src/components/morphing-nav/scss/index.scss +284 -0
  605. package/src/components/morphing-nav/scss/variables.scss +36 -0
  606. package/src/components/multi-step-form/index.ts +368 -0
  607. package/src/components/multi-step-form/scss/index.scss +397 -0
  608. package/src/components/multi-step-form/scss/variables.scss +22 -0
  609. package/src/components/nested-menu/index.ts +446 -0
  610. package/src/components/nested-menu/scss/index.scss +219 -0
  611. package/src/components/nested-menu/scss/variables.scss +26 -0
  612. package/src/components/notification-bell/index.ts +102 -0
  613. package/src/components/notification-bell/scss/index.scss +132 -0
  614. package/src/components/notification-bell/scss/variables.scss +41 -0
  615. package/src/components/notification-bell/svg/bell.svg +1 -0
  616. package/src/components/onboarding-checklist/index.ts +252 -0
  617. package/src/components/onboarding-checklist/scss/index.scss +414 -0
  618. package/src/components/onboarding-checklist/scss/variables.scss +17 -0
  619. package/src/components/page-dots/index.ts +137 -0
  620. package/src/components/page-dots/scss/index.scss +95 -0
  621. package/src/components/page-dots/scss/variables.scss +26 -0
  622. package/src/components/pagination/index.ts +129 -0
  623. package/src/components/pagination/scss/index.scss +46 -0
  624. package/src/components/pagination/scss/variables.scss +40 -0
  625. package/src/components/pagination/svg/arrow-left.svg +1 -0
  626. package/src/components/pagination/svg/arrow-right.svg +1 -0
  627. package/src/components/password/constants.ts +4 -0
  628. package/src/components/password/index.ts +97 -0
  629. package/src/components/password/scss/index.scss +188 -0
  630. package/src/components/password/scss/variables.scss +50 -0
  631. package/src/components/progress/index.ts +57 -0
  632. package/src/components/progress/scss/index.scss +49 -0
  633. package/src/components/progress/scss/variables.scss +11 -0
  634. package/src/components/pull-to-refresh/index.ts +438 -0
  635. package/src/components/pull-to-refresh/scss/index.scss +91 -0
  636. package/src/components/pull-to-refresh/scss/variables.scss +10 -0
  637. package/src/components/radio/index.ts +5 -2
  638. package/src/components/radio-cards/index.ts +145 -0
  639. package/src/components/radio-cards/scss/index.scss +232 -0
  640. package/src/components/radio-cards/scss/variables.scss +32 -0
  641. package/src/components/range/scss/index.scss +2 -1
  642. package/src/components/range-filter/index.ts +295 -0
  643. package/src/components/range-filter/scss/index.scss +257 -0
  644. package/src/components/range-filter/scss/variables.scss +20 -0
  645. package/src/components/range-slider/index.ts +277 -0
  646. package/src/components/range-slider/scss/index.scss +234 -0
  647. package/src/components/range-slider/scss/variables.scss +26 -0
  648. package/src/components/reading-progress/index.ts +160 -0
  649. package/src/components/reading-progress/scss/index.scss +115 -0
  650. package/src/components/reading-progress/scss/variables.scss +31 -0
  651. package/src/components/relative-time/index.ts +410 -0
  652. package/src/components/relative-time/scss/index.scss +88 -0
  653. package/src/components/relative-time/scss/variables.scss +19 -0
  654. package/src/components/root/scss/index.scss +2 -2
  655. package/src/components/scroll-fade/index.ts +131 -0
  656. package/src/components/scroll-fade/scss/index.scss +104 -0
  657. package/src/components/scroll-fade/scss/variables.scss +10 -0
  658. package/src/components/scroll-spine/index.ts +355 -0
  659. package/src/components/scroll-spine/scss/index.scss +209 -0
  660. package/src/components/scroll-spine/scss/variables.scss +22 -0
  661. package/src/components/scroll-velocity/index.ts +269 -0
  662. package/src/components/scroll-velocity/scss/index.scss +29 -0
  663. package/src/components/scroll-velocity/scss/variables.scss +3 -0
  664. package/src/components/scrub-input/index.ts +339 -0
  665. package/src/components/scrub-input/scss/index.scss +105 -0
  666. package/src/components/scrub-input/scss/variables.scss +23 -0
  667. package/src/components/select/index.ts +54 -51
  668. package/src/components/select/scss/index.scss +15 -10
  669. package/src/components/select-menu/index.ts +499 -0
  670. package/src/components/select-menu/scss/index.scss +192 -0
  671. package/src/components/select-menu/scss/variables.scss +41 -0
  672. package/src/components/selection-toolbar/index.ts +510 -0
  673. package/src/components/selection-toolbar/scss/index.scss +221 -0
  674. package/src/components/selection-toolbar/scss/variables.scss +24 -0
  675. package/src/components/settings/index.ts +184 -0
  676. package/src/components/settings/scss/index.scss +327 -0
  677. package/src/components/settings/scss/variables.scss +50 -0
  678. package/src/components/settings/svg/close.svg +1 -0
  679. package/src/components/settings/svg/saved.svg +1 -0
  680. package/src/components/share-button/index.ts +328 -0
  681. package/src/components/share-button/scss/index.scss +191 -0
  682. package/src/components/share-button/scss/variables.scss +24 -0
  683. package/src/components/sheet/index.ts +170 -0
  684. package/src/components/sheet/scss/index.scss +65 -0
  685. package/src/components/sheet/scss/variables.scss +27 -0
  686. package/src/components/shiny-text/index.ts +19 -0
  687. package/src/components/shiny-text/scss/index.scss +32 -0
  688. package/src/components/shiny-text/scss/variables.scss +7 -0
  689. package/src/components/shortcut-recorder/index.ts +284 -0
  690. package/src/components/shortcut-recorder/scss/index.scss +198 -0
  691. package/src/components/shortcut-recorder/scss/variables.scss +54 -0
  692. package/src/components/shortcut-sheet/index.ts +454 -0
  693. package/src/components/shortcut-sheet/scss/index.scss +306 -0
  694. package/src/components/shortcut-sheet/scss/variables.scss +36 -0
  695. package/src/components/sidebar/scss/index.scss +3 -3
  696. package/src/components/slider/index.ts +232 -0
  697. package/src/components/slider/scss/index.scss +182 -0
  698. package/src/components/slider/scss/variables.scss +15 -0
  699. package/src/components/sliding-tabs/index.ts +291 -0
  700. package/src/components/sliding-tabs/scss/index.scss +174 -0
  701. package/src/components/sliding-tabs/scss/variables.scss +34 -0
  702. package/src/components/snap-carousel/index.ts +324 -0
  703. package/src/components/snap-carousel/scss/index.scss +174 -0
  704. package/src/components/snap-carousel/scss/variables.scss +31 -0
  705. package/src/components/sortable/index.ts +483 -0
  706. package/src/components/sortable/scss/index.scss +282 -0
  707. package/src/components/sortable/scss/variables.scss +59 -0
  708. package/src/components/sparkline/index.ts +234 -0
  709. package/src/components/sparkline/scss/index.scss +169 -0
  710. package/src/components/sparkline/scss/variables.scss +30 -0
  711. package/src/components/stacked-drawer/index.ts +272 -0
  712. package/src/components/stacked-drawer/scss/index.scss +122 -0
  713. package/src/components/stacked-drawer/scss/variables.scss +20 -0
  714. package/src/components/stat-counter/index.ts +337 -0
  715. package/src/components/stat-counter/scss/index.scss +246 -0
  716. package/src/components/stat-counter/scss/variables.scss +24 -0
  717. package/src/components/status-picker/index.ts +323 -0
  718. package/src/components/status-picker/scss/index.scss +290 -0
  719. package/src/components/status-picker/scss/variables.scss +29 -0
  720. package/src/components/sticky-header/index.ts +127 -0
  721. package/src/components/sticky-header/scss/index.scss +149 -0
  722. package/src/components/sticky-header/scss/variables.scss +22 -0
  723. package/src/components/sticky-stack/index.ts +313 -0
  724. package/src/components/sticky-stack/scss/index.scss +167 -0
  725. package/src/components/sticky-stack/scss/variables.scss +50 -0
  726. package/src/components/story-progress/index.ts +247 -0
  727. package/src/components/story-progress/scss/index.scss +205 -0
  728. package/src/components/story-progress/scss/variables.scss +21 -0
  729. package/src/components/swipe-deck/index.ts +438 -0
  730. package/src/components/swipe-deck/scss/index.scss +275 -0
  731. package/src/components/swipe-deck/scss/variables.scss +24 -0
  732. package/src/components/switch/index.ts +5 -2
  733. package/src/components/tabs/scss/index.scss +3 -3
  734. package/src/components/tag-input/index.ts +415 -0
  735. package/src/components/tag-input/scss/index.scss +186 -0
  736. package/src/components/tag-input/scss/variables.scss +30 -0
  737. package/src/components/task-list/index.ts +137 -0
  738. package/src/components/task-list/scss/index.scss +171 -0
  739. package/src/components/task-list/scss/variables.scss +8 -0
  740. package/src/components/tasklist/constants.ts +4 -0
  741. package/src/components/tasklist/index.ts +174 -0
  742. package/src/components/tasklist/scss/index.scss +184 -0
  743. package/src/components/tasklist/scss/variables.scss +83 -0
  744. package/src/components/text-animate/index.ts +142 -0
  745. package/src/components/text-animate/scss/index.scss +106 -0
  746. package/src/components/text-animate/scss/variables.scss +17 -0
  747. package/src/components/text-progress/index.ts +170 -0
  748. package/src/components/text-progress/scss/index.scss +148 -0
  749. package/src/components/text-progress/scss/variables.scss +26 -0
  750. package/src/components/textarea/index.ts +18 -16
  751. package/src/components/textarea/scss/index.scss +2 -3
  752. package/src/components/thumbnail/scss/index.scss +51 -0
  753. package/src/components/thumbnail/scss/variables.scss +12 -0
  754. package/src/components/toast/index.ts +11 -1
  755. package/src/components/toast/manager.ts +31 -1
  756. package/src/components/toast/scss/index.scss +66 -18
  757. package/src/components/toast/scss/variables.scss +2 -0
  758. package/src/components/tooltip/context.ts +96 -0
  759. package/src/components/tooltip/group.ts +162 -0
  760. package/src/components/tooltip/index.ts +6 -1
  761. package/src/components/tooltip/menu.ts +31 -48
  762. package/src/components/tooltip/onclick.ts +42 -15
  763. package/src/components/tooltip/onhover.ts +130 -11
  764. package/src/components/tooltip/options.ts +33 -0
  765. package/src/components/tooltip/scss/_center.scss +1 -5
  766. package/src/components/tooltip/scss/_east.scss +5 -5
  767. package/src/components/tooltip/scss/_group.scss +164 -0
  768. package/src/components/tooltip/scss/_north.scss +5 -5
  769. package/src/components/tooltip/scss/_south.scss +5 -5
  770. package/src/components/tooltip/scss/_west.scss +5 -5
  771. package/src/components/tooltip/scss/index.scss +230 -17
  772. package/src/components/tooltip/scss/variables.scss +105 -0
  773. package/src/components/tooltip/utilities.ts +103 -0
  774. package/src/components/tree/index.ts +259 -0
  775. package/src/components/tree/scss/index.scss +105 -0
  776. package/src/components/tree/scss/variables.scss +48 -0
  777. package/src/components/tree-view/index.ts +285 -0
  778. package/src/components/tree-view/scss/index.scss +169 -0
  779. package/src/components/tree-view/scss/variables.scss +18 -0
  780. package/src/components/typewriter/index.ts +10 -6
  781. package/src/components/typewriter/scss/index.scss +30 -11
  782. package/src/components/typewriter/scss/variables.scss +24 -0
  783. package/src/components/typewriter-retype/index.ts +164 -0
  784. package/src/components/typewriter-retype/scss/index.scss +142 -0
  785. package/src/components/typewriter-retype/scss/variables.scss +46 -0
  786. package/src/components/undo-toast/index.ts +359 -0
  787. package/src/components/undo-toast/scss/index.scss +216 -0
  788. package/src/components/undo-toast/scss/variables.scss +20 -0
  789. package/src/components/uptime/index.ts +271 -0
  790. package/src/components/uptime/scss/index.scss +163 -0
  791. package/src/components/uptime/scss/variables.scss +56 -0
  792. package/src/components/usage-meter/index.ts +63 -0
  793. package/src/components/usage-meter/scss/index.scss +94 -0
  794. package/src/components/usage-meter/scss/variables.scss +43 -0
  795. package/src/components/value-flash/index.ts +121 -0
  796. package/src/components/value-flash/scss/index.scss +193 -0
  797. package/src/components/value-flash/scss/variables.scss +47 -0
  798. package/src/components/waitlist-join/index.ts +545 -0
  799. package/src/components/waitlist-join/scss/index.scss +401 -0
  800. package/src/components/waitlist-join/scss/variables.scss +23 -0
  801. package/src/components/web-search/brands.ts +155 -0
  802. package/src/components/web-search/index.ts +316 -0
  803. package/src/components/web-search/scss/index.scss +270 -0
  804. package/src/components/web-search/scss/variables.scss +8 -0
  805. package/src/components/word-rotator/index.ts +296 -0
  806. package/src/components/word-rotator/scss/index.scss +33 -0
  807. package/src/components/word-rotator/scss/variables.scss +7 -0
  808. package/src/css-utilities/scrollbar/scss/index.scss +6 -1
  809. package/src/lib/scss/position.scss +3 -3
  810. package/src/themes/dark/select.ts +7 -4
  811. package/storage/svg/settings/add-line.svg +1 -0
  812. package/storage/svg/settings/arrow-down-s-line.svg +1 -0
  813. package/storage/svg/settings/arrow-left-s-line.svg +1 -0
  814. package/storage/svg/settings/arrow-right-s-line.svg +1 -0
  815. package/storage/svg/settings/bank-card-line.svg +1 -0
  816. package/storage/svg/settings/book-open-line.svg +1 -0
  817. package/storage/svg/settings/calendar-line.svg +1 -0
  818. package/storage/svg/settings/code-block.svg +1 -0
  819. package/storage/svg/settings/database-2-line.svg +1 -0
  820. package/storage/svg/settings/delete-bin-6-line.svg +1 -0
  821. package/storage/svg/settings/download-2-line.svg +1 -0
  822. package/storage/svg/settings/edit-line.svg +1 -0
  823. package/storage/svg/settings/expand-up-down-line.svg +1 -0
  824. package/storage/svg/settings/external-link-line.svg +1 -0
  825. package/storage/svg/settings/file-copy-line.svg +1 -0
  826. package/storage/svg/settings/file-excel-2-fill.svg +1 -0
  827. package/storage/svg/settings/file-text-fill.svg +1 -0
  828. package/storage/svg/settings/film-fill.svg +1 -0
  829. package/storage/svg/settings/git-merge-line.svg +1 -0
  830. package/storage/svg/settings/logout-circle-line.svg +1 -0
  831. package/storage/svg/settings/mail-line.svg +1 -0
  832. package/storage/svg/settings/more-2-fill.svg +1 -0
  833. package/storage/svg/settings/more-fill.svg +1 -0
  834. package/storage/svg/settings/organization-chart.svg +1 -0
  835. package/storage/svg/settings/palette-line.svg +1 -0
  836. package/storage/svg/settings/plug-line.svg +1 -0
  837. package/storage/svg/settings/school-line.svg +1 -0
  838. package/storage/svg/settings/search-line.svg +1 -0
  839. package/storage/svg/settings/settings-6-line.svg +1 -0
  840. package/storage/svg/settings/settings-line.svg +1 -0
  841. package/storage/svg/settings/tools-fill.svg +1 -0
  842. package/storage/svg/settings/upload-cloud-2-line.svg +1 -0
  843. package/build/components/border/scss/index.scss +0 -2
  844. package/build/components/clipboard/onclick.d.ts +0 -10
  845. package/build/components/clipboard/onclick.js +0 -38
  846. package/src/components/border/scss/index.scss +0 -17
  847. package/src/components/border/scss/variables.scss +0 -6
  848. package/src/components/clipboard/onclick.ts +0 -40
@@ -0,0 +1,562 @@
1
+ import * as template_u1 from '@esportsplus/template';
2
+ import * as reactivity_u0 from '@esportsplus/reactivity';
3
+ import { effect, onCleanup, untrack } from '@esportsplus/reactivity';
4
+ import input from '../input/index.js';
5
+ import './scss/index.scss';
6
+ const template_1pbvmay7 = template_u1.template(`<div class='card-input-shell card-input-shell--cvc'><div class='card-input-shell-header'><label class='card-input-label'>`);
7
+ const template_1pbvmayc = template_u1.template(`<span class='card-input-error'>`);
8
+ const template_1pbvmayf = template_u1.template(`<div class='card-input-shell card-input-shell--expiry'><div class='card-input-shell-header'><label class='card-input-label'>`);
9
+ const template_1pbvmaym = template_u1.template(`<div class='card-input-shell card-input-shell--name'><div class='card-input-shell-header'><label class='card-input-label'>`);
10
+ const template_1pbvmayt = template_u1.template(`<div class='card-input-shell card-input-shell--number'><div class='card-input-shell-header'><label class='card-input-label'>`);
11
+ const template_1pbvmay10 = template_u1.template(`<div class='card-input-shell '><div class='card-input-shell-header'><label class='card-input-label'>`);
12
+ const template_1pbvmay17 = template_u1.template(`<span aria-hidden='true' class='card-input-brand card-input-brand--large'><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><g fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'><rect height='14.5' rx='2.5' width='22.5' x='6.75' y='4.75' /><path d='M6.75 9.25h22.5M10.5 15.5h4' /></g></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='12.5' font-style='italic' font-weight='800' letter-spacing='-0.3' text-anchor='middle' x='18' y='16.5'>VISA</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><circle cx='14' cy='12' fill='currentColor' opacity='0.55' r='7' /><circle cx='22' cy='12' fill='currentColor' opacity='0.9' r='7' /></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><rect fill='none' height='14.5' rx='2.5' stroke='currentColor' stroke-width='1.5' width='28.5' x='3.75' y='4.75' /><text fill='currentColor' font-size='8' font-weight='800' letter-spacing='0.4' text-anchor='middle' x='18' y='15.25'>AMEX</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='7.5' font-weight='700' letter-spacing='0.2' text-anchor='middle' x='15' y='15'>DISC</text><circle cx='28.5' cy='12.25' fill='currentColor' r='3.5' />`);
13
+ const template_1pbvmay1e = template_u1.template(`<span aria-hidden='true' class='card-input-brand card-input-brand--small'><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><g fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'><rect height='14.5' rx='2.5' width='22.5' x='6.75' y='4.75' /><path d='M6.75 9.25h22.5M10.5 15.5h4' /></g></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='12.5' font-style='italic' font-weight='800' letter-spacing='-0.3' text-anchor='middle' x='18' y='16.5'>VISA</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><circle cx='14' cy='12' fill='currentColor' opacity='0.55' r='7' /><circle cx='22' cy='12' fill='currentColor' opacity='0.9' r='7' /></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><rect fill='none' height='14.5' rx='2.5' stroke='currentColor' stroke-width='1.5' width='28.5' x='3.75' y='4.75' /><text fill='currentColor' font-size='8' font-weight='800' letter-spacing='0.4' text-anchor='middle' x='18' y='15.25'>AMEX</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='7.5' font-weight='700' letter-spacing='0.2' text-anchor='middle' x='15' y='15'>DISC</text><circle cx='28.5' cy='12.25' fill='currentColor' r='3.5' />`);
14
+ const template_1pbvmay1l = template_u1.template(`<span aria-hidden='true' class='card-input-brand '><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><g fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'><rect height='14.5' rx='2.5' width='22.5' x='6.75' y='4.75' /><path d='M6.75 9.25h22.5M10.5 15.5h4' /></g></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='12.5' font-style='italic' font-weight='800' letter-spacing='-0.3' text-anchor='middle' x='18' y='16.5'>VISA</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><circle cx='14' cy='12' fill='currentColor' opacity='0.55' r='7' /><circle cx='22' cy='12' fill='currentColor' opacity='0.9' r='7' /></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><rect fill='none' height='14.5' rx='2.5' stroke='currentColor' stroke-width='1.5' width='28.5' x='3.75' y='4.75' /><text fill='currentColor' font-size='8' font-weight='800' letter-spacing='0.4' text-anchor='middle' x='18' y='15.25'>AMEX</text></svg></span><span class='card-input-brand-mark '><svg viewBox='0 0 36 24'><text fill='currentColor' font-size='7.5' font-weight='700' letter-spacing='0.2' text-anchor='middle' x='15' y='15'>DISC</text><circle cx='28.5' cy='12.25' fill='currentColor' r='3.5' />`);
15
+ const template_1pbvmay1t = template_u1.template(`<form aria-label='Card details' class='card-input' novalidate><div aria-hidden='true' class='card-input-preview'><div class='card-input-card '><div class='card-input-face card-input-face--front'><span class='card-input-ring'></span><div class='card-input-face-top'><svg class='card-input-chip' fill='none' viewBox='0 0 44 32'><rect fill='currentColor' height='32' opacity='0.22' rx='6' width='44' /><path d='M0 11h14m16 0h14M0 21h14m16 0h14M14 0v32M30 0v32M14 16h16' stroke='currentColor' stroke-opacity='0.3' /></svg></div><div class='card-input-number'></div><div class='card-input-face-bottom'><div class='card-input-holder'><span class='card-input-caption'>Card holder</span><span class='card-input-holder-value'></span></div><div class='card-input-expires'><span class='card-input-caption'>Expires</span><span class='card-input-expires-value'></span></div></div></div><div class='card-input-face card-input-face--back'><div class='card-input-stripe'></div><div class='card-input-signature'><div class='card-input-signature-value'></div><span class='card-input-caption'>CVC</span></div><p class='card-input-disclaimer'>Not a real card. Nothing you type leaves this page.</p></div></div></div><div class='card-input-fields'><!--$--><div class='card-input-row'><!--$--></div></div><div class='card-input-actions'><button class='card-input-submit ' type='submit'><span class='card-input-submit-labels'><span class='card-input-submit-label card-input-submit-label--idle'><span class='card-input-submit-text'></span></span><span class='card-input-submit-label card-input-submit-label--confirmed'><svg class='card-input-submit-icon' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 16 16'><path d='m3.5 8.5 3 3 6-7' /></svg><span class='card-input-submit-text'>Details look valid</span></span></span></button><!--$--><span aria-live='polite' class='card-input-live'></span><span aria-live='polite' class='card-input-live'>`);
16
+ const template_1pbvmay2g = template_u1.template(`<span class='card-input-digit '>`);
17
+ const template_1pbvmay2j = template_u1.template(`<div class='card-input-control'><!--$--><span class='card-input-control-brand '>`);
18
+ const template_1pbvmay2n = template_u1.template(`<p class='card-input-note'><svg aria-hidden='true' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 16 16'><rect height='6.25' rx='1.5' width='9.5' x='3.25' y='7' /><path d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' />`);
19
+ class ReactiveObject_1pbvmay0 extends reactivity_u0.ReactiveObject {
20
+ #cvc = this[reactivity_u0.SIGNAL]('');
21
+ #expiry = this[reactivity_u0.SIGNAL]('');
22
+ #name = this[reactivity_u0.SIGNAL]('');
23
+ #number = this[reactivity_u0.SIGNAL]('');
24
+ constructor() {
25
+ super(null);
26
+ }
27
+ get cvc() {
28
+ return reactivity_u0.read(this.#cvc);
29
+ }
30
+ set cvc(_v0) {
31
+ reactivity_u0.write(this.#cvc, _v0);
32
+ }
33
+ get expiry() {
34
+ return reactivity_u0.read(this.#expiry);
35
+ }
36
+ set expiry(_v1) {
37
+ reactivity_u0.write(this.#expiry, _v1);
38
+ }
39
+ get name() {
40
+ return reactivity_u0.read(this.#name);
41
+ }
42
+ set name(_v2) {
43
+ reactivity_u0.write(this.#name, _v2);
44
+ }
45
+ get number() {
46
+ return reactivity_u0.read(this.#number);
47
+ }
48
+ set number(_v3) {
49
+ reactivity_u0.write(this.#number, _v3);
50
+ }
51
+ }
52
+ class ReactiveObject_1pbvmay1 extends reactivity_u0.ReactiveObject {
53
+ #active = this[reactivity_u0.SIGNAL](false);
54
+ #error = this[reactivity_u0.SIGNAL]('');
55
+ constructor() {
56
+ super(null);
57
+ }
58
+ get active() {
59
+ return reactivity_u0.read(this.#active);
60
+ }
61
+ set active(_v0) {
62
+ reactivity_u0.write(this.#active, _v0);
63
+ }
64
+ get error() {
65
+ return reactivity_u0.read(this.#error);
66
+ }
67
+ set error(_v1) {
68
+ reactivity_u0.write(this.#error, _v1);
69
+ }
70
+ }
71
+ class ReactiveObject_1pbvmay2 extends reactivity_u0.ReactiveObject {
72
+ #active = this[reactivity_u0.SIGNAL](false);
73
+ #error = this[reactivity_u0.SIGNAL]('');
74
+ constructor() {
75
+ super(null);
76
+ }
77
+ get active() {
78
+ return reactivity_u0.read(this.#active);
79
+ }
80
+ set active(_v0) {
81
+ reactivity_u0.write(this.#active, _v0);
82
+ }
83
+ get error() {
84
+ return reactivity_u0.read(this.#error);
85
+ }
86
+ set error(_v1) {
87
+ reactivity_u0.write(this.#error, _v1);
88
+ }
89
+ }
90
+ class ReactiveObject_1pbvmay3 extends reactivity_u0.ReactiveObject {
91
+ #active = this[reactivity_u0.SIGNAL](false);
92
+ #error = this[reactivity_u0.SIGNAL]('');
93
+ constructor() {
94
+ super(null);
95
+ }
96
+ get active() {
97
+ return reactivity_u0.read(this.#active);
98
+ }
99
+ set active(_v0) {
100
+ reactivity_u0.write(this.#active, _v0);
101
+ }
102
+ get error() {
103
+ return reactivity_u0.read(this.#error);
104
+ }
105
+ set error(_v1) {
106
+ reactivity_u0.write(this.#error, _v1);
107
+ }
108
+ }
109
+ class ReactiveObject_1pbvmay4 extends reactivity_u0.ReactiveObject {
110
+ #active = this[reactivity_u0.SIGNAL](false);
111
+ #error = this[reactivity_u0.SIGNAL]('');
112
+ constructor() {
113
+ super(null);
114
+ }
115
+ get active() {
116
+ return reactivity_u0.read(this.#active);
117
+ }
118
+ set active(_v0) {
119
+ reactivity_u0.write(this.#active, _v0);
120
+ }
121
+ get error() {
122
+ return reactivity_u0.read(this.#error);
123
+ }
124
+ set error(_v1) {
125
+ reactivity_u0.write(this.#error, _v1);
126
+ }
127
+ }
128
+ class ReactiveObject_1pbvmay5 extends reactivity_u0.ReactiveObject {
129
+ #confirmed = this[reactivity_u0.SIGNAL](false);
130
+ #focused;
131
+ constructor(_p0) {
132
+ super(null);
133
+ this.#focused = this[reactivity_u0.SIGNAL](_p0);
134
+ }
135
+ get confirmed() {
136
+ return reactivity_u0.read(this.#confirmed);
137
+ }
138
+ set confirmed(_v0) {
139
+ reactivity_u0.write(this.#confirmed, _v0);
140
+ }
141
+ get focused() {
142
+ return reactivity_u0.read(this.#focused);
143
+ }
144
+ set focused(_v1) {
145
+ reactivity_u0.write(this.#focused, _v1);
146
+ }
147
+ }
148
+ const BRANDS = {
149
+ amex: { cvc: 4, gaps: [4, 10], lengths: [15], name: 'American Express', test: /^3[47]/ },
150
+ discover: { cvc: 3, gaps: [4, 8, 12, 16], lengths: [16, 19], name: 'Discover', test: /^(6011|65|64[4-9])/ },
151
+ mastercard: { cvc: 3, gaps: [4, 8, 12], lengths: [16], name: 'Mastercard', test: /^(5[1-5]|2[2-7])/ },
152
+ unknown: { cvc: 3, gaps: [4, 8, 12, 16], lengths: [16, 12, 13, 14, 15], name: 'Card', test: /^/ },
153
+ visa: { cvc: 3, gaps: [4, 8, 12, 16], lengths: [16, 13, 19], name: 'Visa', test: /^4/ }
154
+ };
155
+ const CARD_INPUT_FIELD = Symbol.for('@esportsplus/ui/card-input.field');
156
+ const CARD_INPUT_SUBMIT = Symbol.for('@esportsplus/ui/card-input.submit');
157
+ const CONFIRM_FOR = 2000;
158
+ const FIELDS = ['number', 'expiry', 'cvc', 'name'];
159
+ const ORDER = ['visa', 'mastercard', 'amex', 'discover'];
160
+ let uid = 0;
161
+ function caret(value, count) {
162
+ if (count <= 0) {
163
+ return 0;
164
+ }
165
+ let seen = 0;
166
+ for (let i = 0, n = value.length; i < n; i++) {
167
+ if (/\d/.test(value[i]) && ++seen === count) {
168
+ return i + 1;
169
+ }
170
+ }
171
+ return value.length;
172
+ }
173
+ function detect(digits) {
174
+ return ORDER.find((brand) => BRANDS[brand].test.test(digits)) ?? 'unknown';
175
+ }
176
+ function digitsOf(value) {
177
+ return value.replace(/\D/g, '');
178
+ }
179
+ function expiry(digits) {
180
+ return digits.length > 2 ? `${digits.slice(0, 2)}/${digits.slice(2)}` : digits;
181
+ }
182
+ function group(digits, gaps) {
183
+ let out = '';
184
+ for (let i = 0, n = digits.length; i < n; i++) {
185
+ if (gaps.includes(i)) {
186
+ out += ' ';
187
+ }
188
+ out += digits[i];
189
+ }
190
+ return out;
191
+ }
192
+ function luhn(digits) {
193
+ let sum = 0;
194
+ for (let i = 0, n = digits.length; i < n; i++) {
195
+ let d = Number(digits[n - 1 - i]);
196
+ if (i % 2) {
197
+ d *= 2;
198
+ if (d > 9) {
199
+ d -= 9;
200
+ }
201
+ }
202
+ sum += d;
203
+ }
204
+ return sum % 10 === 0;
205
+ }
206
+ function mark(brand, size) {
207
+ let active = (b) => () => brand() === b && '--active';
208
+ return (size === "large" ? (() => {
209
+ let root_1pbvmay16 = template_1pbvmay17(), element_1pbvmay18 = root_1pbvmay16.firstChild.firstElementChild, element_1pbvmay19 = element_1pbvmay18.nextElementSibling, element_1pbvmay1a = element_1pbvmay19.nextElementSibling, element_1pbvmay1b = element_1pbvmay1a.nextElementSibling, element_1pbvmay1c = element_1pbvmay1b.nextElementSibling;
210
+ template_u1.setList(element_1pbvmay18, 'class', active('unknown'));
211
+ template_u1.setList(element_1pbvmay19, 'class', active('visa'));
212
+ template_u1.setList(element_1pbvmay1a, 'class', active('mastercard'));
213
+ template_u1.setList(element_1pbvmay1b, 'class', active('amex'));
214
+ template_u1.setList(element_1pbvmay1c, 'class', active('discover'));
215
+ return root_1pbvmay16;
216
+ })() : size === "small" ? (() => {
217
+ let root_1pbvmay1d = template_1pbvmay1e(), element_1pbvmay1f = root_1pbvmay1d.firstChild.firstElementChild, element_1pbvmay1g = element_1pbvmay1f.nextElementSibling, element_1pbvmay1h = element_1pbvmay1g.nextElementSibling, element_1pbvmay1i = element_1pbvmay1h.nextElementSibling, element_1pbvmay1j = element_1pbvmay1i.nextElementSibling;
218
+ template_u1.setList(element_1pbvmay1f, 'class', active('unknown'));
219
+ template_u1.setList(element_1pbvmay1g, 'class', active('visa'));
220
+ template_u1.setList(element_1pbvmay1h, 'class', active('mastercard'));
221
+ template_u1.setList(element_1pbvmay1i, 'class', active('amex'));
222
+ template_u1.setList(element_1pbvmay1j, 'class', active('discover'));
223
+ return root_1pbvmay1d;
224
+ })() : (() => {
225
+ let root_1pbvmay1k = template_1pbvmay1l(), element_1pbvmay1m = root_1pbvmay1k.firstChild, element_1pbvmay1n = element_1pbvmay1m.firstElementChild, element_1pbvmay1o = element_1pbvmay1n.nextElementSibling, element_1pbvmay1p = element_1pbvmay1o.nextElementSibling, element_1pbvmay1q = element_1pbvmay1p.nextElementSibling, element_1pbvmay1r = element_1pbvmay1q.nextElementSibling;
226
+ template_u1.setList(element_1pbvmay1m, 'class', template_u1.interpolate(["card-input-brand--", (size)]));
227
+ template_u1.setList(element_1pbvmay1n, 'class', active('unknown'));
228
+ template_u1.setList(element_1pbvmay1o, 'class', active('visa'));
229
+ template_u1.setList(element_1pbvmay1p, 'class', active('mastercard'));
230
+ template_u1.setList(element_1pbvmay1q, 'class', active('amex'));
231
+ template_u1.setList(element_1pbvmay1r, 'class', active('discover'));
232
+ return root_1pbvmay1k;
233
+ })());
234
+ }
235
+ function reformat(element, max, format, pad) {
236
+ let at = element.selectionStart ?? element.value.length, before = digitsOf(element.value.slice(0, at)).length, digits = digitsOf(element.value).slice(0, max);
237
+ if (pad) {
238
+ let padded = pad(digits);
239
+ before += padded.length - digits.length;
240
+ digits = padded;
241
+ }
242
+ let value = format(digits);
243
+ element.value = value;
244
+ if (document.activeElement === element) {
245
+ let position = caret(value, Math.min(before, digits.length));
246
+ element.setSelectionRange(position, position);
247
+ }
248
+ return { digits, value };
249
+ }
250
+ function skip(e) {
251
+ let element = e.currentTarget, at = element.selectionStart;
252
+ if (at === null || at !== element.selectionEnd) {
253
+ return;
254
+ }
255
+ if (e.key === 'Backspace' && at > 0 && /\D/.test(element.value[at - 1])) {
256
+ element.setSelectionRange(at - 1, at - 1);
257
+ }
258
+ if (e.key === 'Delete' && at < element.value.length && /\D/.test(element.value[at])) {
259
+ element.setSelectionRange(at + 1, at + 1);
260
+ }
261
+ }
262
+ function validate(field, values, final) {
263
+ let spec = BRANDS[detect(digitsOf(values.number))], value = values[field], digits = digitsOf(value);
264
+ if (!value.trim()) {
265
+ return final ? 'Required' : '';
266
+ }
267
+ if (field === 'number') {
268
+ if (!spec.lengths.includes(digits.length)) {
269
+ return 'Too short';
270
+ }
271
+ if (!luhn(digits)) {
272
+ return 'Not a valid number';
273
+ }
274
+ }
275
+ if (field === 'expiry') {
276
+ if (digits.length < 4) {
277
+ return 'Use MM/YY';
278
+ }
279
+ let month = Number(digits.slice(0, 2)), now = new Date(), year = 2000 + Number(digits.slice(2));
280
+ if (month < 1 || month > 12) {
281
+ return 'Invalid month';
282
+ }
283
+ if (year < now.getFullYear() || (year === now.getFullYear() && month < now.getMonth() + 1)) {
284
+ return 'Card expired';
285
+ }
286
+ }
287
+ if (field === 'cvc' && digits.length < spec.cvc) {
288
+ return 'Too short';
289
+ }
290
+ return '';
291
+ }
292
+ export default Object.assign(function ({ note = 'Demo only. Nothing is charged or sent anywhere.', onvalid, state = new ReactiveObject_1pbvmay0(), submit = 'Check details', ...attributes }) {
293
+ let fields = {
294
+ cvc: new ReactiveObject_1pbvmay1(),
295
+ expiry: new ReactiveObject_1pbvmay2(),
296
+ name: new ReactiveObject_1pbvmay3(),
297
+ number: new ReactiveObject_1pbvmay4()
298
+ }, id = `card-input-${++uid}`, local = new ReactiveObject_1pbvmay5(''), parts = { ...this?.attributes?.[CARD_INPUT_FIELD], ...attributes[CARD_INPUT_FIELD] }, reduced = matchMedia('(prefers-reduced-motion: reduce)'), regions = {}, ring, slots = new reactivity_u0.ReactiveArray(), timer;
299
+ function brand() {
300
+ return detect(digitsOf(state.number));
301
+ }
302
+ function check(e) {
303
+ e.preventDefault();
304
+ let bad;
305
+ for (let i = 0, n = FIELDS.length; i < n; i++) {
306
+ let error = validate(FIELDS[i], state, true);
307
+ fields[FIELDS[i]].error = error;
308
+ if (error && !bad) {
309
+ bad = FIELDS[i];
310
+ }
311
+ }
312
+ if (bad) {
313
+ document.getElementById(`${id}-${bad}`)?.focus();
314
+ return;
315
+ }
316
+ let digits = digitsOf(state.number);
317
+ local.confirmed = true;
318
+ onvalid?.({ brand: detect(digits), expiry: state.expiry, last4: digits.slice(-4), name: state.name.trim() });
319
+ clearTimeout(timer);
320
+ timer = setTimeout(() => {
321
+ local.confirmed = false;
322
+ }, CONFIRM_FOR);
323
+ }
324
+ function control(field, own) {
325
+ return input.call({ attributes: parts }, {
326
+ ...own,
327
+ 'aria-describedby': () => fields[field].error ? `${id}-${field}-error` : '',
328
+ 'aria-invalid': () => fields[field].error ? 'true' : 'false',
329
+ class: `card-input-field card-input-field--${field}`,
330
+ id: `${id}-${field}`,
331
+ onblur: () => {
332
+ if (local.focused === field) {
333
+ local.focused = '';
334
+ }
335
+ fields[field].error = validate(field, state, false);
336
+ },
337
+ onfocus: () => {
338
+ local.focused = field;
339
+ },
340
+ state: fields[field],
341
+ value: () => state[field]
342
+ });
343
+ }
344
+ function frame(field) {
345
+ let region = field && field !== 'cvc' ? regions[field] : undefined;
346
+ if (!ring) {
347
+ return;
348
+ }
349
+ if (!region) {
350
+ ring.classList.remove('--active');
351
+ return;
352
+ }
353
+ let style = `height: ${region.offsetHeight + 12}px; left: ${region.offsetLeft - 8}px; top: ${region.offsetTop - 6}px; width: ${region.offsetWidth + 16}px;`;
354
+ if (!ring.classList.contains('--active') || reduced.matches) {
355
+ ring.style.cssText = `${style} transition-property: opacity;`;
356
+ ring.getBoundingClientRect();
357
+ ring.style.removeProperty('transition-property');
358
+ }
359
+ else {
360
+ ring.style.cssText = style;
361
+ }
362
+ ring.classList.add('--active');
363
+ }
364
+ function set(field, value) {
365
+ state[field] = value;
366
+ fields[field].error = '';
367
+ local.confirmed = false;
368
+ }
369
+ function shell(field, label, content) {
370
+ return (field === "cvc" ? (() => {
371
+ let root_1pbvmay6 = template_1pbvmay7(), element_1pbvmay8 = root_1pbvmay6.firstChild.firstElementChild.firstElementChild, element_1pbvmay9 = root_1pbvmay6.firstChild.firstElementChild, element_1pbvmaya = root_1pbvmay6.firstChild;
372
+ template_u1.setProperty(element_1pbvmay8, 'for', template_u1.interpolate([(id), "-cvc"]));
373
+ template_u1.slot(element_1pbvmay8, label, 1);
374
+ new template_u1.EffectSlot(element_1pbvmay9, () => {
375
+ let error = fields[field].error;
376
+ return error ? (() => {
377
+ let root_1pbvmayb = template_1pbvmayc(), element_1pbvmayd = root_1pbvmayb.firstChild;
378
+ template_u1.setProperty(element_1pbvmayd, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
379
+ template_u1.slot(element_1pbvmayd, error, 1);
380
+ return root_1pbvmayb;
381
+ })() : '';
382
+ }, 2);
383
+ template_u1.slot(element_1pbvmaya, content, 2);
384
+ return root_1pbvmay6;
385
+ })() : field === "expiry" ? (() => {
386
+ let root_1pbvmaye = template_1pbvmayf(), element_1pbvmayg = root_1pbvmaye.firstChild.firstElementChild.firstElementChild, element_1pbvmayh = root_1pbvmaye.firstChild.firstElementChild, element_1pbvmayi = root_1pbvmaye.firstChild;
387
+ template_u1.setProperty(element_1pbvmayg, 'for', template_u1.interpolate([(id), "-expiry"]));
388
+ template_u1.slot(element_1pbvmayg, label, 1);
389
+ new template_u1.EffectSlot(element_1pbvmayh, () => {
390
+ let error = fields[field].error;
391
+ return error ? (() => {
392
+ let root_1pbvmayj = template_1pbvmayc(), element_1pbvmayk = root_1pbvmayj.firstChild;
393
+ template_u1.setProperty(element_1pbvmayk, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
394
+ template_u1.slot(element_1pbvmayk, error, 1);
395
+ return root_1pbvmayj;
396
+ })() : '';
397
+ }, 2);
398
+ template_u1.slot(element_1pbvmayi, content, 2);
399
+ return root_1pbvmaye;
400
+ })() : field === "name" ? (() => {
401
+ let root_1pbvmayl = template_1pbvmaym(), element_1pbvmayn = root_1pbvmayl.firstChild.firstElementChild.firstElementChild, element_1pbvmayo = root_1pbvmayl.firstChild.firstElementChild, element_1pbvmayp = root_1pbvmayl.firstChild;
402
+ template_u1.setProperty(element_1pbvmayn, 'for', template_u1.interpolate([(id), "-name"]));
403
+ template_u1.slot(element_1pbvmayn, label, 1);
404
+ new template_u1.EffectSlot(element_1pbvmayo, () => {
405
+ let error = fields[field].error;
406
+ return error ? (() => {
407
+ let root_1pbvmayq = template_1pbvmayc(), element_1pbvmayr = root_1pbvmayq.firstChild;
408
+ template_u1.setProperty(element_1pbvmayr, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
409
+ template_u1.slot(element_1pbvmayr, error, 1);
410
+ return root_1pbvmayq;
411
+ })() : '';
412
+ }, 2);
413
+ template_u1.slot(element_1pbvmayp, content, 2);
414
+ return root_1pbvmayl;
415
+ })() : field === "number" ? (() => {
416
+ let root_1pbvmays = template_1pbvmayt(), element_1pbvmayu = root_1pbvmays.firstChild.firstElementChild.firstElementChild, element_1pbvmayv = root_1pbvmays.firstChild.firstElementChild, element_1pbvmayw = root_1pbvmays.firstChild;
417
+ template_u1.setProperty(element_1pbvmayu, 'for', template_u1.interpolate([(id), "-number"]));
418
+ template_u1.slot(element_1pbvmayu, label, 1);
419
+ new template_u1.EffectSlot(element_1pbvmayv, () => {
420
+ let error = fields[field].error;
421
+ return error ? (() => {
422
+ let root_1pbvmayx = template_1pbvmayc(), element_1pbvmayy = root_1pbvmayx.firstChild;
423
+ template_u1.setProperty(element_1pbvmayy, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
424
+ template_u1.slot(element_1pbvmayy, error, 1);
425
+ return root_1pbvmayx;
426
+ })() : '';
427
+ }, 2);
428
+ template_u1.slot(element_1pbvmayw, content, 2);
429
+ return root_1pbvmays;
430
+ })() : (() => {
431
+ let root_1pbvmayz = template_1pbvmay10(), element_1pbvmay11 = root_1pbvmayz.firstChild, element_1pbvmay12 = element_1pbvmay11.firstElementChild.firstElementChild, element_1pbvmay13 = element_1pbvmay11.firstElementChild;
432
+ template_u1.setList(element_1pbvmay11, 'class', template_u1.interpolate(["card-input-shell--", (field)]));
433
+ template_u1.setProperty(element_1pbvmay12, 'for', template_u1.interpolate([(id), "-", (field)]));
434
+ template_u1.slot(element_1pbvmay12, label, 1);
435
+ new template_u1.EffectSlot(element_1pbvmay13, () => {
436
+ let error = fields[field].error;
437
+ return error ? (() => {
438
+ let root_1pbvmay14 = template_1pbvmayc(), element_1pbvmay15 = root_1pbvmay14.firstChild;
439
+ template_u1.setProperty(element_1pbvmay15, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
440
+ template_u1.slot(element_1pbvmay15, error, 1);
441
+ return root_1pbvmay14;
442
+ })() : '';
443
+ }, 2);
444
+ template_u1.slot(element_1pbvmay11, content, 2);
445
+ return root_1pbvmayz;
446
+ })());
447
+ }
448
+ effect(() => {
449
+ let digits = digitsOf(state.number), spec = BRANDS[detect(digits)], length = Math.max(spec.lengths[0], digits.length);
450
+ untrack(() => {
451
+ let initial = slots.$length === 0;
452
+ for (let i = 0; i < length; i++) {
453
+ let char = digits[i] ?? '•', gap = spec.gaps.includes(i), slot = slots[i];
454
+ if (!slot) {
455
+ slots.push(reactivity_u0.reactive({ char, gap, roll: initial ? 0 : 1 }));
456
+ continue;
457
+ }
458
+ slot.gap = gap;
459
+ if (slot.char !== char) {
460
+ slot.char = char;
461
+ slot.roll = slot.roll === 1 ? 2 : 1;
462
+ }
463
+ }
464
+ if (slots.$length > length) {
465
+ slots.splice(length);
466
+ }
467
+ });
468
+ });
469
+ effect(() => {
470
+ let focused = local.focused;
471
+ untrack(() => frame(focused));
472
+ });
473
+ onCleanup(() => {
474
+ clearTimeout(timer);
475
+ });
476
+ return (() => {
477
+ let root_1pbvmay1s = template_1pbvmay1t(), element_1pbvmay1u = root_1pbvmay1s.firstChild, element_1pbvmay1v = element_1pbvmay1u.firstElementChild.firstElementChild, element_1pbvmay1w = element_1pbvmay1v.firstElementChild.firstElementChild, element_1pbvmay1x = element_1pbvmay1w.nextElementSibling, element_1pbvmay1y = element_1pbvmay1x.nextElementSibling, element_1pbvmay1z = element_1pbvmay1y.nextElementSibling.firstElementChild, element_1pbvmay20 = element_1pbvmay1z.firstElementChild.nextElementSibling, element_1pbvmay21 = element_1pbvmay1z.nextElementSibling, element_1pbvmay22 = element_1pbvmay21.firstElementChild.nextElementSibling, element_1pbvmay23 = element_1pbvmay1v.firstElementChild.nextElementSibling.firstElementChild.nextElementSibling.firstElementChild, element_1pbvmay24 = element_1pbvmay1u.firstElementChild.nextElementSibling.firstChild, element_1pbvmay25 = element_1pbvmay1u.firstElementChild.nextElementSibling.firstElementChild.firstChild, element_1pbvmay26 = element_1pbvmay1u.firstElementChild.nextElementSibling.firstElementChild, element_1pbvmay27 = element_1pbvmay1u.firstElementChild.nextElementSibling, element_1pbvmay28 = element_1pbvmay27.nextElementSibling.firstElementChild, element_1pbvmay29 = element_1pbvmay28.firstElementChild.firstElementChild, element_1pbvmay2a = element_1pbvmay29.firstElementChild, element_1pbvmay2b = element_1pbvmay29.nextElementSibling, element_1pbvmay2c = element_1pbvmay27.nextElementSibling.firstChild.nextSibling, element_1pbvmay2d = element_1pbvmay28.nextElementSibling, element_1pbvmay2e = element_1pbvmay2d.nextElementSibling;
478
+ template_u1.setProperties(element_1pbvmay1u, this?.attributes);
479
+ template_u1.setProperties(element_1pbvmay1u, attributes);
480
+ template_u1.on(element_1pbvmay1u, 'submit', check);
481
+ template_u1.setList(element_1pbvmay1v, 'class', () => local.focused === 'cvc' && '--flipped');
482
+ template_u1.onrender(element_1pbvmay1w, (element) => { ring = element; });
483
+ template_u1.slot(element_1pbvmay1x, mark(brand, 'large'), 2);
484
+ template_u1.onrender(element_1pbvmay1y, (element) => { regions.number = element; });
485
+ element_1pbvmay1y.appendChild(new template_u1.ArraySlot(slots, (slot) => {
486
+ let root_1pbvmay2f = template_1pbvmay2g(), element_1pbvmay2h = root_1pbvmay2f.firstChild;
487
+ template_u1.setList(element_1pbvmay2h, 'class', () => slot.gap && '--gap');
488
+ template_u1.setList(element_1pbvmay2h, 'class', () => slot.char === '•' && '--placeholder');
489
+ template_u1.setProperty(element_1pbvmay2h, 'data-roll', () => slot.roll);
490
+ new template_u1.EffectSlot(element_1pbvmay2h, () => slot.char, 1);
491
+ return root_1pbvmay2f;
492
+ }, true).fragment);
493
+ template_u1.onrender(element_1pbvmay1z, (element) => { regions.name = element; });
494
+ new template_u1.EffectSlot(element_1pbvmay20, () => state.name.trim() || 'Your name', 1);
495
+ template_u1.onrender(element_1pbvmay21, (element) => { regions.expiry = element; });
496
+ new template_u1.EffectSlot(element_1pbvmay22, () => state.expiry || 'MM/YY', 1);
497
+ new template_u1.EffectSlot(element_1pbvmay23, () => state.cvc || (brand() === 'amex' ? '••••' : '•••'), 1);
498
+ template_u1.slot(element_1pbvmay24, shell('number', 'Card number', (() => {
499
+ let root_1pbvmay2i = template_1pbvmay2j(), element_1pbvmay2k = root_1pbvmay2i.firstChild.firstChild, element_1pbvmay2l = root_1pbvmay2i.firstChild.firstElementChild;
500
+ template_u1.slot(element_1pbvmay2k, control('number', {
501
+ autocomplete: 'cc-number',
502
+ inputmode: 'numeric',
503
+ oninput: (e) => {
504
+ let element = e.currentTarget, next = BRANDS[detect(digitsOf(element.value))], { digits, value } = reformat(element, Math.max(...next.lengths), (d) => group(d, next.gaps));
505
+ set('number', value);
506
+ let max = BRANDS[detect(digits)].cvc;
507
+ if (state.cvc.length > max) {
508
+ state.cvc = state.cvc.slice(0, max);
509
+ }
510
+ },
511
+ onkeydown: skip,
512
+ placeholder: '1234 5678 9012 3456'
513
+ }));
514
+ template_u1.setList(element_1pbvmay2l, 'class', () => brand() !== 'unknown' && '--known');
515
+ template_u1.slot(element_1pbvmay2l, mark(brand, 'small'), 1);
516
+ return root_1pbvmay2i;
517
+ })()));
518
+ template_u1.slot(element_1pbvmay25, shell('expiry', 'Expiry', control('expiry', {
519
+ autocomplete: 'cc-exp',
520
+ inputmode: 'numeric',
521
+ oninput: (e) => {
522
+ let { value } = reformat(e.currentTarget, 4, expiry, (d) => /^[2-9]/.test(d) ? `0${d}`.slice(0, 4) : d);
523
+ set('expiry', value);
524
+ },
525
+ onkeydown: skip,
526
+ placeholder: 'MM/YY'
527
+ })));
528
+ template_u1.slot(element_1pbvmay26, shell('cvc', 'CVC', control('cvc', {
529
+ autocomplete: 'cc-csc',
530
+ inputmode: 'numeric',
531
+ oninput: (e) => {
532
+ let { value } = reformat(e.currentTarget, BRANDS[brand()].cvc, (d) => d);
533
+ set('cvc', value);
534
+ },
535
+ placeholder: () => brand() === 'amex' ? '1234' : '123'
536
+ })), 2);
537
+ template_u1.slot(element_1pbvmay27, shell('name', 'Name on card', control('name', {
538
+ autocapitalize: 'words',
539
+ autocomplete: 'cc-name',
540
+ maxlength: 40,
541
+ oninput: (e) => {
542
+ set('name', e.currentTarget.value);
543
+ },
544
+ placeholder: 'Ada Lovelace',
545
+ spellcheck: false
546
+ })), 2);
547
+ template_u1.setList(element_1pbvmay28, 'class', () => local.confirmed && '--active');
548
+ template_u1.setProperties(element_1pbvmay28, this?.attributes?.[CARD_INPUT_SUBMIT]);
549
+ template_u1.setProperties(element_1pbvmay28, attributes[CARD_INPUT_SUBMIT]);
550
+ template_u1.setProperty(element_1pbvmay29, 'aria-hidden', () => local.confirmed ? 'true' : 'false');
551
+ template_u1.slot(element_1pbvmay2a, submit, 1);
552
+ template_u1.setProperty(element_1pbvmay2b, 'aria-hidden', () => local.confirmed ? 'false' : 'true');
553
+ template_u1.slot(element_1pbvmay2c, note ? (() => {
554
+ let root_1pbvmay2m = template_1pbvmay2n(), element_1pbvmay2o = root_1pbvmay2m.firstChild;
555
+ template_u1.slot(element_1pbvmay2o, note, 2);
556
+ return root_1pbvmay2m;
557
+ })() : '');
558
+ new template_u1.EffectSlot(element_1pbvmay2d, () => local.confirmed ? 'Card details look valid' : '', 1);
559
+ new template_u1.EffectSlot(element_1pbvmay2e, () => brand() === 'unknown' ? '' : `${BRANDS[brand()].name} card`, 1);
560
+ return root_1pbvmay1s;
561
+ })();
562
+ }, { field: CARD_INPUT_FIELD, submit: CARD_INPUT_SUBMIT });
@@ -0,0 +1,2 @@
1
+ @layer components {.card-input{--card-background:var(--color-text-500);--card-border-radius:var(--border-radius-700);--card-color:var(--color-white-300);--card-number-font-size:clamp(16px, 5.2vw, 21px);--card-shadow:var(--box-shadow-300);--color:var(--color-text-500);--digit-duration:.15s;--error-color:var(--color-red-400);--field-background:var(--color-white-300);--field-border-color:var(--color-border-300);--field-border-radius:var(--border-radius-600);--field-font-size:15px;--field-height:44px;--flip-duration:.764s;--flip-timing-function:linear(0, .031, .108, .205, .315, .421, .524, .614, .695, .762, .82, .865, .903, .931, .954, .97, .982, .991, .997, 1.001, 1.004, 1.005, 1.006, 1.006, 1.005, 1.005, 1.004, 1.004, 1.003, 1.002, 1);--font-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--label-font-size:var(--font-size-300);--label-font-weight:var(--font-weight-500);--muted-color:var(--color-text-300);--outline-color:var(--color-text-500);--ring-duration:.3s;--spring:linear(0, .035, .118, .216, .319, .424, .515, .6, .669, .728, .781, .822, .856, .885, .908, .927, .942, .954, .964, .971, .977, .982, .986, .989, .991, .993, .995, .996, .997, .997, 1);--submit-background:var(--color-text-500);--submit-color:var(--color-white-300);--swap-duration:.3s;--width:min(400px, 100%);color:var(--color);width:var(--width);flex-direction:column;gap:20px;display:flex}.card-input-actions{flex-direction:column;gap:10px;display:flex}.card-input-brand{display:grid}.card-input-brand--large{width:48px;height:32px}.card-input-brand--small{width:36px;height:24px}.card-input-brand-mark{filter:blur(4px);opacity:0;height:100%;transition:filter var(--swap-duration) var(--spring), opacity var(--swap-duration) var(--spring), scale var(--swap-duration) var(--spring);grid-area:1/1;width:100%;scale:.25}.card-input-brand-mark.--active{filter:blur();opacity:1;scale:1}.card-input-brand-mark svg{width:100%;height:100%;display:block}.card-input-caption{letter-spacing:.025em;opacity:.6;text-transform:uppercase;font-size:12px}.card-input-card{height:100%;transform-style:preserve-3d;transition:transform var(--flip-duration) var(--flip-timing-function);width:100%;position:relative}.card-input-card.--flipped{transform:rotateY(180deg)}.card-input-chip{width:44px;height:32px}.card-input-control{position:relative}.card-input-control-brand{color:var(--muted-color);pointer-events:none;transition:color var(--transition-duration) var(--transition-timing-function);display:flex;position:absolute;top:50%;right:12px;translate:0 -50%}.card-input-control-brand.--known{color:var(--color)}.card-input-digit{display:inline-block}.card-input-digit.--gap{margin-inline-start:.6em}.card-input-digit.--placeholder{opacity:.45}.card-input-digit[data-roll="1"]{animation:card-input-digit-1 var(--digit-duration) ease-out}.card-input-digit[data-roll="2"]{animation:card-input-digit-2 var(--digit-duration) ease-out}.card-input-disclaimer{opacity:.6;margin:auto 0 0;padding:0 24px 20px;font-size:12px}.card-input-error{color:var(--error-color);text-overflow:ellipsis;white-space:nowrap;font-size:13px;transition:filter .2s cubic-bezier(.23,1,.32,1),opacity .2s cubic-bezier(.23,1,.32,1),translate .2s cubic-bezier(.23,1,.32,1);overflow:hidden}@starting-style{.card-input-error{filter:blur(4px);opacity:0;translate:0 2px}}.card-input-expires{flex-direction:column;flex-shrink:0;gap:4px;display:flex}.card-input-expires-value{font-family:var(--font-mono);font-size:15px;font-weight:var(--font-weight-500)}.card-input-face{backface-visibility:hidden;background:var(--card-background);border-radius:var(--card-border-radius);box-shadow:var(--card-shadow);color:var(--card-color);flex-direction:column;transition:opacity .2s ease-out;display:flex;position:absolute;inset:0;overflow:hidden}.card-input-face--back{transform:rotateY(180deg)}.card-input-face--front{justify-content:space-between;padding:24px}.card-input-face-bottom{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.card-input-face-top{justify-content:space-between;align-items:flex-start;display:flex}.card-input-fields{flex-direction:column;gap:16px;display:flex}.card-input-shell .card-input-field{--background-default:var(--field-background);--border-color-active:var(--field-border-color);--border-color-default:var(--field-border-color);--border-color-hover:var(--field-border-color);--border-color-pressed:var(--field-border-color);--border-radius:var(--field-border-radius);--border-width:var(--border-width-400);--color-default:currentColor;--padding-horizontal:14px;font-size:var(--field-font-size);font-variant-numeric:tabular-nums;height:var(--field-height);outline:none;min-height:0;padding-block:0;transition:border-color .15s ease-out}.card-input-shell .card-input-field:focus-visible{outline:var(--border-width-500) solid var(--outline-color);outline-offset:-1px}.card-input-shell .card-input-field::placeholder{color:oklch(from var(--muted-color) l c h/.7)}.card-input-shell .card-input-field[aria-invalid=true]{--field-border-color:var(--error-color);--outline-color:var(--error-color)}.card-input-shell .card-input-field--cvc,.card-input-shell .card-input-field--expiry,.card-input-shell .card-input-field--number{font-family:var(--font-mono)}.card-input-shell .card-input-field--number{padding-inline-end:64px}.card-input-holder{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.card-input-holder-value{font-size:15px;font-weight:var(--font-weight-500);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;overflow:hidden}.card-input-label{font-size:var(--label-font-size);font-weight:var(--label-font-weight);-webkit-user-select:none;user-select:none}.card-input-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.card-input-note{color:var(--muted-color);justify-content:center;align-items:center;gap:6px;margin:0;font-size:13px;display:flex}.card-input-note svg{flex-shrink:0;width:14px;height:14px}.card-input-number{font-family:var(--font-mono);font-size:var(--card-number-font-size);letter-spacing:.025em;white-space:nowrap;align-self:flex-start}.card-input-preview{aspect-ratio:1.586;perspective:1200px;-webkit-user-select:none;user-select:none;width:100%;position:relative}.card-input-ring{border:1px solid oklch(from var(--card-color) l c h/.35);border-radius:var(--border-radius-400);opacity:0;pointer-events:none;transition:height var(--ring-duration) var(--spring), left var(--ring-duration) var(--spring), opacity .12s ease-out, top var(--ring-duration) var(--spring), width var(--ring-duration) var(--spring);position:absolute;top:0;left:0}.card-input-ring.--active{opacity:1;transition:height var(--ring-duration) var(--spring), left var(--ring-duration) var(--spring), opacity .2s ease-out, top var(--ring-duration) var(--spring), width var(--ring-duration) var(--spring)}.card-input-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.card-input-shell{flex-direction:column;gap:8px;min-width:0;display:flex}.card-input-shell-header{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.card-input-signature{align-items:center;gap:12px;padding:20px 24px 0;display:flex}.card-input-signature-value{background:var(--card-color);border-radius:var(--border-radius-300);color:var(--card-background);font-family:var(--font-mono);flex:1;justify-content:flex-end;align-items:center;height:40px;padding-inline:12px;font-size:15px;font-style:italic;display:flex}.card-input-stripe{background:oklch(from var(--card-color) l c h/.15);height:44px;margin-top:24px}.card-input-submit{background:var(--submit-background);border-radius:var(--field-border-radius);color:var(--submit-color);cursor:pointer;font:inherit;font-size:var(--field-font-size);font-weight:var(--font-weight-500);height:var(--field-height);touch-action:manipulation;-webkit-user-select:none;user-select:none;border:0;outline:none;transition:scale .15s ease-out}.card-input-submit:active{scale:.96}.card-input-submit:focus-visible{outline:var(--border-width-500) solid var(--outline-color);outline-offset:2px}.card-input-submit-icon{flex-shrink:0;width:16px;height:16px}.card-input-submit-label{grid-area:1/1;justify-content:center;align-items:center;gap:8px;display:flex}.card-input-submit-label>*{transition:filter var(--swap-duration) var(--spring), opacity var(--swap-duration) var(--spring), scale var(--swap-duration) var(--spring)}.card-input-submit-label--confirmed>*,.card-input-submit.--active .card-input-submit-label--idle>*{filter:blur(4px);opacity:0}.card-input-submit-label--confirmed>svg{scale:.25}.card-input-submit.--active .card-input-submit-label--confirmed>*{filter:blur();opacity:1;scale:1}.card-input-submit-labels{display:grid}@keyframes card-input-digit-1{0%{filter:blur(2px);opacity:0;translate:0 -4px}}@keyframes card-input-digit-2{0%{filter:blur(2px);opacity:0;translate:0 -4px}}@media (prefers-reduced-motion:reduce){.card-input-brand-mark,.card-input-submit-label>*{filter:none!important;scale:1!important}.card-input-card.--flipped{transform:none}.card-input-digit[data-roll]{animation-name:card-input-fade}@starting-style{.card-input-error{filter:none;translate:0}}.card-input-face--back{opacity:0;transform:none}.card-input-card.--flipped .card-input-face--back{opacity:1}.card-input-card.--flipped .card-input-face--front{opacity:0}.card-input-submit:active{scale:1}}@keyframes card-input-fade{0%{opacity:0}}}
2
+ /*$vite$:1*/
@@ -0,0 +1,27 @@
1
+ import { type Attributes, type Renderable } from '@esportsplus/template';
2
+ import './scss/index.scss';
3
+ declare const CAROUSEL_3D_BUTTON: unique symbol;
4
+ declare const CAROUSEL_3D_CARD: unique symbol;
5
+ type A = Attributes & {
6
+ [CAROUSEL_3D_BUTTON]?: Attributes;
7
+ [CAROUSEL_3D_CARD]?: Attributes;
8
+ items: Item[];
9
+ label: string;
10
+ state?: State;
11
+ };
12
+ type Item = {
13
+ note: Renderable<unknown>;
14
+ title: string;
15
+ };
16
+ type State = {
17
+ active: number;
18
+ };
19
+ declare function template(this: {
20
+ attributes?: Partial<A>;
21
+ } | void, { items, label, state, ...attributes }: A): DocumentFragment | Text;
22
+ declare const _default: typeof template & {
23
+ readonly button: typeof CAROUSEL_3D_BUTTON;
24
+ readonly card: typeof CAROUSEL_3D_CARD;
25
+ };
26
+ export default _default;
27
+ export type { Item as Carousel3dItem, State as Carousel3dState };