asta-ui 0.0.0-stage → 0.2.0

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 (547) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +69 -2
  3. package/bin/asta-ui.mjs +218 -0
  4. package/dist/accordion.d.ts +2 -0
  5. package/dist/accordion.js +9 -0
  6. package/dist/add-to-cart.d.ts +2 -0
  7. package/dist/add-to-cart.js +7 -0
  8. package/dist/avatar.d.ts +2 -0
  9. package/dist/avatar.js +13 -0
  10. package/dist/badge.d.ts +2 -0
  11. package/dist/badge.js +11 -0
  12. package/dist/base/accordion.d.ts +2 -0
  13. package/dist/base/accordion.js +9 -0
  14. package/dist/base/add-to-cart.d.ts +2 -0
  15. package/dist/base/add-to-cart.js +7 -0
  16. package/dist/base/avatar.d.ts +2 -0
  17. package/dist/base/avatar.js +13 -0
  18. package/dist/base/badge.d.ts +2 -0
  19. package/dist/base/badge.js +11 -0
  20. package/dist/base/bubble-wrap.d.ts +2 -0
  21. package/dist/base/bubble-wrap.js +7 -0
  22. package/dist/base/button.d.ts +2 -0
  23. package/dist/base/button.js +13 -0
  24. package/dist/base/candlestick.d.ts +2 -0
  25. package/dist/base/candlestick.js +7 -0
  26. package/dist/base/card-checkout.d.ts +2 -0
  27. package/dist/base/card-checkout.js +7 -0
  28. package/dist/base/cart-drawer.d.ts +2 -0
  29. package/dist/base/cart-drawer.js +7 -0
  30. package/dist/base/checkbox.d.ts +2 -0
  31. package/dist/base/checkbox.js +9 -0
  32. package/dist/base/combo-lock.d.ts +2 -0
  33. package/dist/base/combo-lock.js +7 -0
  34. package/dist/base/command-palette.d.ts +2 -0
  35. package/dist/base/command-palette.js +11 -0
  36. package/dist/base/dial-knob.d.ts +2 -0
  37. package/dist/base/dial-knob.js +7 -0
  38. package/dist/base/dialog.d.ts +2 -0
  39. package/dist/base/dialog.js +9 -0
  40. package/dist/base/dropdown-menu.d.ts +2 -0
  41. package/dist/base/dropdown-menu.js +10 -0
  42. package/dist/base/elastic-string.d.ts +2 -0
  43. package/dist/base/elastic-string.js +7 -0
  44. package/dist/base/field.d.ts +2 -0
  45. package/dist/base/field.js +11 -0
  46. package/dist/base/footer.d.ts +2 -0
  47. package/dist/base/footer.js +12 -0
  48. package/dist/base/gravity-pills.d.ts +2 -0
  49. package/dist/base/gravity-pills.js +7 -0
  50. package/dist/base/hold-to-confirm.d.ts +2 -0
  51. package/dist/base/hold-to-confirm.js +7 -0
  52. package/dist/base/ink-trail.d.ts +2 -0
  53. package/dist/base/ink-trail.js +7 -0
  54. package/dist/base/input.d.ts +2 -0
  55. package/dist/base/input.js +11 -0
  56. package/dist/base/kbd.d.ts +2 -0
  57. package/dist/base/kbd.js +11 -0
  58. package/dist/base/morse-tap.d.ts +2 -0
  59. package/dist/base/morse-tap.js +7 -0
  60. package/dist/base/motion-button.d.ts +2 -0
  61. package/dist/base/motion-button.js +23 -0
  62. package/dist/base/navbar.d.ts +2 -0
  63. package/dist/base/navbar.js +10 -0
  64. package/dist/base/needle-field.d.ts +2 -0
  65. package/dist/base/needle-field.js +7 -0
  66. package/dist/base/number-input.d.ts +2 -0
  67. package/dist/base/number-input.js +9 -0
  68. package/dist/base/order-book.d.ts +2 -0
  69. package/dist/base/order-book.js +7 -0
  70. package/dist/base/pay-methods.d.ts +2 -0
  71. package/dist/base/pay-methods.js +7 -0
  72. package/dist/base/payment-status.d.ts +2 -0
  73. package/dist/base/payment-status.js +7 -0
  74. package/dist/base/pixel-reveal.d.ts +2 -0
  75. package/dist/base/pixel-reveal.js +7 -0
  76. package/dist/base/price-chart.d.ts +2 -0
  77. package/dist/base/price-chart.js +7 -0
  78. package/dist/base/pricing.d.ts +2 -0
  79. package/dist/base/pricing.js +14 -0
  80. package/dist/base/radio-group.d.ts +2 -0
  81. package/dist/base/radio-group.js +11 -0
  82. package/dist/base/scramble-text.d.ts +2 -0
  83. package/dist/base/scramble-text.js +7 -0
  84. package/dist/base/segmented-control.d.ts +2 -0
  85. package/dist/base/segmented-control.js +9 -0
  86. package/dist/base/select.d.ts +2 -0
  87. package/dist/base/select.js +9 -0
  88. package/dist/base/settings-panel.d.ts +2 -0
  89. package/dist/base/settings-panel.js +10 -0
  90. package/dist/base/sign-in.d.ts +2 -0
  91. package/dist/base/sign-in.js +10 -0
  92. package/dist/base/skeleton.d.ts +2 -0
  93. package/dist/base/skeleton.js +13 -0
  94. package/dist/base/slider.d.ts +2 -0
  95. package/dist/base/slider.js +9 -0
  96. package/dist/base/snap-grid.d.ts +2 -0
  97. package/dist/base/snap-grid.js +7 -0
  98. package/dist/base/spinner.d.ts +2 -0
  99. package/dist/base/spinner.js +11 -0
  100. package/dist/base/split-flap.d.ts +2 -0
  101. package/dist/base/split-flap.js +7 -0
  102. package/dist/base/spotlight-grid.d.ts +2 -0
  103. package/dist/base/spotlight-grid.js +7 -0
  104. package/dist/base/switch.d.ts +2 -0
  105. package/dist/base/switch.js +9 -0
  106. package/dist/base/tabs.d.ts +2 -0
  107. package/dist/base/tabs.js +9 -0
  108. package/dist/base/tag-input.d.ts +2 -0
  109. package/dist/base/tag-input.js +9 -0
  110. package/dist/base/textarea-aui-001.d.ts +2 -0
  111. package/dist/base/textarea-aui-001.js +9 -0
  112. package/dist/base/textarea-aui-002.d.ts +2 -0
  113. package/dist/base/textarea-aui-002.js +9 -0
  114. package/dist/base/textarea-aui-003.d.ts +2 -0
  115. package/dist/base/textarea-aui-003.js +9 -0
  116. package/dist/base/textarea-aui-004.d.ts +2 -0
  117. package/dist/base/textarea-aui-004.js +9 -0
  118. package/dist/base/textarea-aui-005.d.ts +2 -0
  119. package/dist/base/textarea-aui-005.js +9 -0
  120. package/dist/base/textarea-aui-006.d.ts +2 -0
  121. package/dist/base/textarea-aui-006.js +9 -0
  122. package/dist/base/textarea-aui-007.d.ts +2 -0
  123. package/dist/base/textarea-aui-007.js +9 -0
  124. package/dist/base/textarea-aui-008.d.ts +2 -0
  125. package/dist/base/textarea-aui-008.js +9 -0
  126. package/dist/base/textarea.d.ts +2 -0
  127. package/dist/base/textarea.js +9 -0
  128. package/dist/base/toast.d.ts +2 -0
  129. package/dist/base/toast.js +11 -0
  130. package/dist/base/tooltip.d.ts +2 -0
  131. package/dist/base/tooltip.js +9 -0
  132. package/dist/base/trade-ticket.d.ts +2 -0
  133. package/dist/base/trade-ticket.js +7 -0
  134. package/dist/base/variant-picker.d.ts +2 -0
  135. package/dist/base/variant-picker.js +7 -0
  136. package/dist/base.d.ts +1 -0
  137. package/dist/base.js +315 -0
  138. package/dist/bubble-wrap.d.ts +2 -0
  139. package/dist/bubble-wrap.js +7 -0
  140. package/dist/button.d.ts +2 -0
  141. package/dist/button.js +13 -0
  142. package/dist/candlestick.d.ts +2 -0
  143. package/dist/candlestick.js +7 -0
  144. package/dist/card-checkout.d.ts +2 -0
  145. package/dist/card-checkout.js +7 -0
  146. package/dist/cart-drawer.d.ts +2 -0
  147. package/dist/cart-drawer.js +7 -0
  148. package/dist/checkbox.d.ts +2 -0
  149. package/dist/checkbox.js +9 -0
  150. package/dist/chunk-2KJNBHUV.js +137 -0
  151. package/dist/chunk-2OGTIQVU.js +237 -0
  152. package/dist/chunk-2Z5Z4YYZ.js +57 -0
  153. package/dist/chunk-37JQA6PI.js +98 -0
  154. package/dist/chunk-3JNUC3FU.js +92 -0
  155. package/dist/chunk-4L4EKC46.js +360 -0
  156. package/dist/chunk-4WK3F76T.js +57 -0
  157. package/dist/chunk-56BEMYK3.js +36 -0
  158. package/dist/chunk-5A36JYGI.js +71 -0
  159. package/dist/chunk-5RPJPL2V.js +102 -0
  160. package/dist/chunk-6322OCI4.js +189 -0
  161. package/dist/chunk-66OZ7CBK.js +153 -0
  162. package/dist/chunk-6AZKJUL4.js +67 -0
  163. package/dist/chunk-7L4YE6HM.js +56 -0
  164. package/dist/chunk-7MGB7FVD.js +221 -0
  165. package/dist/chunk-7RCBOTWL.js +138 -0
  166. package/dist/chunk-7TK42PS3.js +247 -0
  167. package/dist/chunk-7UMBKY3H.js +105 -0
  168. package/dist/chunk-AS6RA64I.js +53 -0
  169. package/dist/chunk-B7V4ZTKI.js +53 -0
  170. package/dist/chunk-BH2DLHFW.js +145 -0
  171. package/dist/chunk-BOJCW7Z7.js +131 -0
  172. package/dist/chunk-C2G5BUEG.js +197 -0
  173. package/dist/chunk-CLCP2GFW.js +93 -0
  174. package/dist/chunk-CNY76NHF.js +92 -0
  175. package/dist/chunk-CTO36MY2.js +87 -0
  176. package/dist/chunk-DK2BM32V.js +71 -0
  177. package/dist/chunk-DQWKBQBT.js +68 -0
  178. package/dist/chunk-DUGKLVQJ.js +89 -0
  179. package/dist/chunk-E4MX3E3B.js +66 -0
  180. package/dist/chunk-EG7NXGDD.js +109 -0
  181. package/dist/chunk-EVSTTLOT.js +141 -0
  182. package/dist/chunk-F5I6EK7F.js +55 -0
  183. package/dist/chunk-FATLQKRY.js +88 -0
  184. package/dist/chunk-FK2LKLRN.js +89 -0
  185. package/dist/chunk-FT7WZV3D.js +184 -0
  186. package/dist/chunk-FUNXYRSG.js +198 -0
  187. package/dist/chunk-H4URFOQC.js +69 -0
  188. package/dist/chunk-H5C7HOQJ.js +84 -0
  189. package/dist/chunk-JAQANAOP.js +247 -0
  190. package/dist/chunk-JIVLBHHE.js +266 -0
  191. package/dist/chunk-KEMMI76V.js +94 -0
  192. package/dist/chunk-N6FMS47F.js +225 -0
  193. package/dist/chunk-NDBLIYMX.js +62 -0
  194. package/dist/chunk-OBU2UOYI.js +96 -0
  195. package/dist/chunk-OLNMOTAD.js +141 -0
  196. package/dist/chunk-OQU6KGVR.js +70 -0
  197. package/dist/chunk-PIC5ZIR3.js +55 -0
  198. package/dist/chunk-PSTMF66E.js +79 -0
  199. package/dist/chunk-Q7OHWQP2.js +108 -0
  200. package/dist/chunk-QDRBMWRX.js +190 -0
  201. package/dist/chunk-R3LWG23K.js +138 -0
  202. package/dist/chunk-RS3XHHDE.js +77 -0
  203. package/dist/chunk-SAJ4D3Z2.js +206 -0
  204. package/dist/chunk-SATIWCJQ.js +141 -0
  205. package/dist/chunk-SRGDJSW7.js +107 -0
  206. package/dist/chunk-T4SOPNM5.js +107 -0
  207. package/dist/chunk-TCID6NNE.js +69 -0
  208. package/dist/chunk-TIAKMX7U.js +49 -0
  209. package/dist/chunk-TRIXMWR3.js +74 -0
  210. package/dist/chunk-TRR3J5NJ.js +28 -0
  211. package/dist/chunk-U7BYEW3Y.js +115 -0
  212. package/dist/chunk-U7VX6A6K.js +136 -0
  213. package/dist/chunk-UAP47MSR.js +230 -0
  214. package/dist/chunk-UXRTPEH7.js +57 -0
  215. package/dist/chunk-VGBP42IZ.js +84 -0
  216. package/dist/chunk-VWYX5IRP.js +92 -0
  217. package/dist/chunk-WRB66XD3.js +31 -0
  218. package/dist/chunk-WSL4JGEA.js +87 -0
  219. package/dist/chunk-WVIV4JBH.js +69 -0
  220. package/dist/chunk-WWQV7LE7.js +198 -0
  221. package/dist/chunk-XIU7K2YE.js +60 -0
  222. package/dist/chunk-XNL5BLUR.js +283 -0
  223. package/dist/chunk-XRVVZA2Y.js +360 -0
  224. package/dist/chunk-XYNJQGYX.js +107 -0
  225. package/dist/chunk-YON5SU2G.js +156 -0
  226. package/dist/chunk-Z6IAITZJ.js +214 -0
  227. package/dist/chunk-ZE7BT2K4.js +173 -0
  228. package/dist/chunk-ZN3W5PAI.js +107 -0
  229. package/dist/chunk-ZQV2GAWY.js +178 -0
  230. package/dist/chunk-ZRGPSYW6.js +237 -0
  231. package/dist/chunk-ZWBJUJTR.js +83 -0
  232. package/dist/combo-lock.d.ts +2 -0
  233. package/dist/combo-lock.js +7 -0
  234. package/dist/command-palette.d.ts +2 -0
  235. package/dist/command-palette.js +11 -0
  236. package/dist/dial-knob.d.ts +2 -0
  237. package/dist/dial-knob.js +7 -0
  238. package/dist/dialog.d.ts +2 -0
  239. package/dist/dialog.js +9 -0
  240. package/dist/dropdown-menu.d.ts +2 -0
  241. package/dist/dropdown-menu.js +10 -0
  242. package/dist/elastic-string.d.ts +2 -0
  243. package/dist/elastic-string.js +7 -0
  244. package/dist/field.d.ts +2 -0
  245. package/dist/field.js +11 -0
  246. package/dist/footer.d.ts +2 -0
  247. package/dist/footer.js +12 -0
  248. package/dist/gravity-pills.d.ts +2 -0
  249. package/dist/gravity-pills.js +7 -0
  250. package/dist/hold-to-confirm.d.ts +2 -0
  251. package/dist/hold-to-confirm.js +7 -0
  252. package/dist/index.d.ts +1 -0
  253. package/dist/index.js +315 -0
  254. package/dist/ink-trail.d.ts +2 -0
  255. package/dist/ink-trail.js +7 -0
  256. package/dist/input.d.ts +2 -0
  257. package/dist/input.js +11 -0
  258. package/dist/kbd.d.ts +2 -0
  259. package/dist/kbd.js +11 -0
  260. package/dist/morse-tap.d.ts +2 -0
  261. package/dist/morse-tap.js +7 -0
  262. package/dist/motion-button.d.ts +2 -0
  263. package/dist/motion-button.js +23 -0
  264. package/dist/navbar.d.ts +2 -0
  265. package/dist/navbar.js +10 -0
  266. package/dist/needle-field.d.ts +2 -0
  267. package/dist/needle-field.js +7 -0
  268. package/dist/number-input.d.ts +2 -0
  269. package/dist/number-input.js +9 -0
  270. package/dist/order-book.d.ts +2 -0
  271. package/dist/order-book.js +7 -0
  272. package/dist/pay-methods.d.ts +2 -0
  273. package/dist/pay-methods.js +7 -0
  274. package/dist/payment-status.d.ts +2 -0
  275. package/dist/payment-status.js +7 -0
  276. package/dist/pixel-reveal.d.ts +2 -0
  277. package/dist/pixel-reveal.js +7 -0
  278. package/dist/price-chart.d.ts +2 -0
  279. package/dist/price-chart.js +7 -0
  280. package/dist/pricing.d.ts +2 -0
  281. package/dist/pricing.js +14 -0
  282. package/dist/radio-group.d.ts +2 -0
  283. package/dist/radio-group.js +11 -0
  284. package/dist/scramble-text.d.ts +2 -0
  285. package/dist/scramble-text.js +7 -0
  286. package/dist/segmented-control.d.ts +2 -0
  287. package/dist/segmented-control.js +9 -0
  288. package/dist/select.d.ts +2 -0
  289. package/dist/select.js +9 -0
  290. package/dist/settings-panel.d.ts +2 -0
  291. package/dist/settings-panel.js +10 -0
  292. package/dist/sign-in.d.ts +2 -0
  293. package/dist/sign-in.js +10 -0
  294. package/dist/skeleton.d.ts +2 -0
  295. package/dist/skeleton.js +13 -0
  296. package/dist/slider.d.ts +2 -0
  297. package/dist/slider.js +9 -0
  298. package/dist/snap-grid.d.ts +2 -0
  299. package/dist/snap-grid.js +7 -0
  300. package/dist/spinner.d.ts +2 -0
  301. package/dist/spinner.js +11 -0
  302. package/dist/split-flap.d.ts +2 -0
  303. package/dist/split-flap.js +7 -0
  304. package/dist/spotlight-grid.d.ts +2 -0
  305. package/dist/spotlight-grid.js +7 -0
  306. package/dist/styles.css +46 -0
  307. package/dist/switch.d.ts +2 -0
  308. package/dist/switch.js +9 -0
  309. package/dist/tabs.d.ts +2 -0
  310. package/dist/tabs.js +9 -0
  311. package/dist/tag-input.d.ts +2 -0
  312. package/dist/tag-input.js +9 -0
  313. package/dist/textarea-aui-001.d.ts +2 -0
  314. package/dist/textarea-aui-001.js +9 -0
  315. package/dist/textarea-aui-002.d.ts +2 -0
  316. package/dist/textarea-aui-002.js +9 -0
  317. package/dist/textarea-aui-003.d.ts +2 -0
  318. package/dist/textarea-aui-003.js +9 -0
  319. package/dist/textarea-aui-004.d.ts +2 -0
  320. package/dist/textarea-aui-004.js +9 -0
  321. package/dist/textarea-aui-005.d.ts +2 -0
  322. package/dist/textarea-aui-005.js +9 -0
  323. package/dist/textarea-aui-006.d.ts +2 -0
  324. package/dist/textarea-aui-006.js +9 -0
  325. package/dist/textarea-aui-007.d.ts +2 -0
  326. package/dist/textarea-aui-007.js +9 -0
  327. package/dist/textarea-aui-008.d.ts +2 -0
  328. package/dist/textarea-aui-008.js +9 -0
  329. package/dist/textarea.d.ts +2 -0
  330. package/dist/textarea.js +9 -0
  331. package/dist/toast.d.ts +2 -0
  332. package/dist/toast.js +11 -0
  333. package/dist/tooltip.d.ts +2 -0
  334. package/dist/tooltip.js +9 -0
  335. package/dist/trade-ticket.d.ts +2 -0
  336. package/dist/trade-ticket.js +7 -0
  337. package/dist/types/components/kit/accordion.d.ts +19 -0
  338. package/dist/types/components/kit/avatar.d.ts +32 -0
  339. package/dist/types/components/kit/badge.d.ts +23 -0
  340. package/dist/types/components/kit/base/accordion.d.ts +19 -0
  341. package/dist/types/components/kit/base/avatar.d.ts +32 -0
  342. package/dist/types/components/kit/base/button.d.ts +38 -0
  343. package/dist/types/components/kit/base/checkbox.d.ts +19 -0
  344. package/dist/types/components/kit/base/command-palette.d.ts +38 -0
  345. package/dist/types/components/kit/base/dialog.d.ts +21 -0
  346. package/dist/types/components/kit/base/dropdown-menu.d.ts +32 -0
  347. package/dist/types/components/kit/base/footer.d.ts +29 -0
  348. package/dist/types/components/kit/base/navbar.d.ts +54 -0
  349. package/dist/types/components/kit/base/pricing.d.ts +39 -0
  350. package/dist/types/components/kit/base/radio-group.d.ts +29 -0
  351. package/dist/types/components/kit/base/segmented-control.d.ts +23 -0
  352. package/dist/types/components/kit/base/select.d.ts +29 -0
  353. package/dist/types/components/kit/base/settings-panel.d.ts +29 -0
  354. package/dist/types/components/kit/base/sign-in.d.ts +17 -0
  355. package/dist/types/components/kit/base/slider.d.ts +27 -0
  356. package/dist/types/components/kit/base/switch.d.ts +22 -0
  357. package/dist/types/components/kit/base/tabs.d.ts +23 -0
  358. package/dist/types/components/kit/base/tooltip.d.ts +20 -0
  359. package/dist/types/components/kit/base/variants/textarea-aui-008.d.ts +23 -0
  360. package/dist/types/components/kit/button.d.ts +38 -0
  361. package/dist/types/components/kit/checkbox.d.ts +19 -0
  362. package/dist/types/components/kit/command-palette.d.ts +38 -0
  363. package/dist/types/components/kit/dialog.d.ts +21 -0
  364. package/dist/types/components/kit/dropdown-menu.d.ts +32 -0
  365. package/dist/types/components/kit/field.d.ts +19 -0
  366. package/dist/types/components/kit/footer.d.ts +29 -0
  367. package/dist/types/components/kit/input.d.ts +19 -0
  368. package/dist/types/components/kit/kbd.d.ts +26 -0
  369. package/dist/types/components/kit/motion-button.d.ts +30 -0
  370. package/dist/types/components/kit/navbar.d.ts +54 -0
  371. package/dist/types/components/kit/number-input.d.ts +20 -0
  372. package/dist/types/components/kit/pricing.d.ts +39 -0
  373. package/dist/types/components/kit/radio-group.d.ts +29 -0
  374. package/dist/types/components/kit/segmented-control.d.ts +23 -0
  375. package/dist/types/components/kit/select.d.ts +29 -0
  376. package/dist/types/components/kit/settings-panel.d.ts +29 -0
  377. package/dist/types/components/kit/sign-in.d.ts +17 -0
  378. package/dist/types/components/kit/skeleton.d.ts +20 -0
  379. package/dist/types/components/kit/slider.d.ts +27 -0
  380. package/dist/types/components/kit/spinner.d.ts +18 -0
  381. package/dist/types/components/kit/switch.d.ts +22 -0
  382. package/dist/types/components/kit/tabs.d.ts +23 -0
  383. package/dist/types/components/kit/tag-input.d.ts +16 -0
  384. package/dist/types/components/kit/textarea.d.ts +11 -0
  385. package/dist/types/components/kit/toast.d.ts +32 -0
  386. package/dist/types/components/kit/tooltip.d.ts +20 -0
  387. package/dist/types/components/kit/variants/textarea-aui-001.d.ts +13 -0
  388. package/dist/types/components/kit/variants/textarea-aui-002.d.ts +13 -0
  389. package/dist/types/components/kit/variants/textarea-aui-003.d.ts +16 -0
  390. package/dist/types/components/kit/variants/textarea-aui-004.d.ts +7 -0
  391. package/dist/types/components/kit/variants/textarea-aui-005.d.ts +8 -0
  392. package/dist/types/components/kit/variants/textarea-aui-006.d.ts +21 -0
  393. package/dist/types/components/kit/variants/textarea-aui-007.d.ts +20 -0
  394. package/dist/types/components/kit/variants/textarea-aui-008.d.ts +23 -0
  395. package/dist/types/components/lab/blocks/AddToCart.d.ts +10 -0
  396. package/dist/types/components/lab/blocks/BubbleWrap.d.ts +2 -0
  397. package/dist/types/components/lab/blocks/Candlestick.d.ts +2 -0
  398. package/dist/types/components/lab/blocks/CardCheckout.d.ts +5 -0
  399. package/dist/types/components/lab/blocks/CartDrawer.d.ts +2 -0
  400. package/dist/types/components/lab/blocks/ComboLock.d.ts +2 -0
  401. package/dist/types/components/lab/blocks/DialKnob.d.ts +2 -0
  402. package/dist/types/components/lab/blocks/ElasticString.d.ts +2 -0
  403. package/dist/types/components/lab/blocks/GravityPills.d.ts +2 -0
  404. package/dist/types/components/lab/blocks/HoldToConfirm.d.ts +6 -0
  405. package/dist/types/components/lab/blocks/InkTrail.d.ts +2 -0
  406. package/dist/types/components/lab/blocks/MorseTap.d.ts +2 -0
  407. package/dist/types/components/lab/blocks/NeedleField.d.ts +2 -0
  408. package/dist/types/components/lab/blocks/OrderBook.d.ts +2 -0
  409. package/dist/types/components/lab/blocks/PayMethods.d.ts +2 -0
  410. package/dist/types/components/lab/blocks/PaymentStatus.d.ts +2 -0
  411. package/dist/types/components/lab/blocks/PixelReveal.d.ts +2 -0
  412. package/dist/types/components/lab/blocks/PriceChart.d.ts +2 -0
  413. package/dist/types/components/lab/blocks/ScrambleText.d.ts +1 -0
  414. package/dist/types/components/lab/blocks/SnapGrid.d.ts +2 -0
  415. package/dist/types/components/lab/blocks/SplitFlap.d.ts +2 -0
  416. package/dist/types/components/lab/blocks/SpotlightGrid.d.ts +1 -0
  417. package/dist/types/components/lab/blocks/TradeTicket.d.ts +2 -0
  418. package/dist/types/components/lab/blocks/VariantPicker.d.ts +2 -0
  419. package/dist/types/packages/asta-ui/src/accordion.d.ts +2 -0
  420. package/dist/types/packages/asta-ui/src/add-to-cart.d.ts +2 -0
  421. package/dist/types/packages/asta-ui/src/avatar.d.ts +2 -0
  422. package/dist/types/packages/asta-ui/src/badge.d.ts +2 -0
  423. package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -0
  424. package/dist/types/packages/asta-ui/src/base/add-to-cart.d.ts +2 -0
  425. package/dist/types/packages/asta-ui/src/base/avatar.d.ts +2 -0
  426. package/dist/types/packages/asta-ui/src/base/badge.d.ts +2 -0
  427. package/dist/types/packages/asta-ui/src/base/bubble-wrap.d.ts +2 -0
  428. package/dist/types/packages/asta-ui/src/base/button.d.ts +2 -0
  429. package/dist/types/packages/asta-ui/src/base/candlestick.d.ts +2 -0
  430. package/dist/types/packages/asta-ui/src/base/card-checkout.d.ts +2 -0
  431. package/dist/types/packages/asta-ui/src/base/cart-drawer.d.ts +2 -0
  432. package/dist/types/packages/asta-ui/src/base/checkbox.d.ts +2 -0
  433. package/dist/types/packages/asta-ui/src/base/combo-lock.d.ts +2 -0
  434. package/dist/types/packages/asta-ui/src/base/command-palette.d.ts +2 -0
  435. package/dist/types/packages/asta-ui/src/base/dial-knob.d.ts +2 -0
  436. package/dist/types/packages/asta-ui/src/base/dialog.d.ts +2 -0
  437. package/dist/types/packages/asta-ui/src/base/dropdown-menu.d.ts +2 -0
  438. package/dist/types/packages/asta-ui/src/base/elastic-string.d.ts +2 -0
  439. package/dist/types/packages/asta-ui/src/base/field.d.ts +2 -0
  440. package/dist/types/packages/asta-ui/src/base/footer.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/base/gravity-pills.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/base/hold-to-confirm.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/base/ink-trail.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/base/input.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/base/kbd.d.ts +2 -0
  446. package/dist/types/packages/asta-ui/src/base/morse-tap.d.ts +2 -0
  447. package/dist/types/packages/asta-ui/src/base/motion-button.d.ts +2 -0
  448. package/dist/types/packages/asta-ui/src/base/navbar.d.ts +2 -0
  449. package/dist/types/packages/asta-ui/src/base/needle-field.d.ts +2 -0
  450. package/dist/types/packages/asta-ui/src/base/number-input.d.ts +2 -0
  451. package/dist/types/packages/asta-ui/src/base/order-book.d.ts +2 -0
  452. package/dist/types/packages/asta-ui/src/base/pay-methods.d.ts +2 -0
  453. package/dist/types/packages/asta-ui/src/base/payment-status.d.ts +2 -0
  454. package/dist/types/packages/asta-ui/src/base/pixel-reveal.d.ts +2 -0
  455. package/dist/types/packages/asta-ui/src/base/price-chart.d.ts +2 -0
  456. package/dist/types/packages/asta-ui/src/base/pricing.d.ts +2 -0
  457. package/dist/types/packages/asta-ui/src/base/radio-group.d.ts +2 -0
  458. package/dist/types/packages/asta-ui/src/base/scramble-text.d.ts +2 -0
  459. package/dist/types/packages/asta-ui/src/base/segmented-control.d.ts +2 -0
  460. package/dist/types/packages/asta-ui/src/base/select.d.ts +2 -0
  461. package/dist/types/packages/asta-ui/src/base/settings-panel.d.ts +2 -0
  462. package/dist/types/packages/asta-ui/src/base/sign-in.d.ts +2 -0
  463. package/dist/types/packages/asta-ui/src/base/skeleton.d.ts +2 -0
  464. package/dist/types/packages/asta-ui/src/base/slider.d.ts +2 -0
  465. package/dist/types/packages/asta-ui/src/base/snap-grid.d.ts +2 -0
  466. package/dist/types/packages/asta-ui/src/base/spinner.d.ts +2 -0
  467. package/dist/types/packages/asta-ui/src/base/split-flap.d.ts +2 -0
  468. package/dist/types/packages/asta-ui/src/base/spotlight-grid.d.ts +2 -0
  469. package/dist/types/packages/asta-ui/src/base/switch.d.ts +2 -0
  470. package/dist/types/packages/asta-ui/src/base/tabs.d.ts +2 -0
  471. package/dist/types/packages/asta-ui/src/base/tag-input.d.ts +2 -0
  472. package/dist/types/packages/asta-ui/src/base/textarea-aui-001.d.ts +2 -0
  473. package/dist/types/packages/asta-ui/src/base/textarea-aui-002.d.ts +2 -0
  474. package/dist/types/packages/asta-ui/src/base/textarea-aui-003.d.ts +2 -0
  475. package/dist/types/packages/asta-ui/src/base/textarea-aui-004.d.ts +2 -0
  476. package/dist/types/packages/asta-ui/src/base/textarea-aui-005.d.ts +2 -0
  477. package/dist/types/packages/asta-ui/src/base/textarea-aui-006.d.ts +2 -0
  478. package/dist/types/packages/asta-ui/src/base/textarea-aui-007.d.ts +2 -0
  479. package/dist/types/packages/asta-ui/src/base/textarea-aui-008.d.ts +2 -0
  480. package/dist/types/packages/asta-ui/src/base/textarea.d.ts +2 -0
  481. package/dist/types/packages/asta-ui/src/base/toast.d.ts +2 -0
  482. package/dist/types/packages/asta-ui/src/base/tooltip.d.ts +2 -0
  483. package/dist/types/packages/asta-ui/src/base/trade-ticket.d.ts +2 -0
  484. package/dist/types/packages/asta-ui/src/base/variant-picker.d.ts +2 -0
  485. package/dist/types/packages/asta-ui/src/base.d.ts +100 -0
  486. package/dist/types/packages/asta-ui/src/bubble-wrap.d.ts +2 -0
  487. package/dist/types/packages/asta-ui/src/button.d.ts +2 -0
  488. package/dist/types/packages/asta-ui/src/candlestick.d.ts +2 -0
  489. package/dist/types/packages/asta-ui/src/card-checkout.d.ts +2 -0
  490. package/dist/types/packages/asta-ui/src/cart-drawer.d.ts +2 -0
  491. package/dist/types/packages/asta-ui/src/checkbox.d.ts +2 -0
  492. package/dist/types/packages/asta-ui/src/combo-lock.d.ts +2 -0
  493. package/dist/types/packages/asta-ui/src/command-palette.d.ts +2 -0
  494. package/dist/types/packages/asta-ui/src/dial-knob.d.ts +2 -0
  495. package/dist/types/packages/asta-ui/src/dialog.d.ts +2 -0
  496. package/dist/types/packages/asta-ui/src/dropdown-menu.d.ts +2 -0
  497. package/dist/types/packages/asta-ui/src/elastic-string.d.ts +2 -0
  498. package/dist/types/packages/asta-ui/src/field.d.ts +2 -0
  499. package/dist/types/packages/asta-ui/src/footer.d.ts +2 -0
  500. package/dist/types/packages/asta-ui/src/gravity-pills.d.ts +2 -0
  501. package/dist/types/packages/asta-ui/src/hold-to-confirm.d.ts +2 -0
  502. package/dist/types/packages/asta-ui/src/index.d.ts +100 -0
  503. package/dist/types/packages/asta-ui/src/ink-trail.d.ts +2 -0
  504. package/dist/types/packages/asta-ui/src/input.d.ts +2 -0
  505. package/dist/types/packages/asta-ui/src/kbd.d.ts +2 -0
  506. package/dist/types/packages/asta-ui/src/morse-tap.d.ts +2 -0
  507. package/dist/types/packages/asta-ui/src/motion-button.d.ts +2 -0
  508. package/dist/types/packages/asta-ui/src/navbar.d.ts +2 -0
  509. package/dist/types/packages/asta-ui/src/needle-field.d.ts +2 -0
  510. package/dist/types/packages/asta-ui/src/number-input.d.ts +2 -0
  511. package/dist/types/packages/asta-ui/src/order-book.d.ts +2 -0
  512. package/dist/types/packages/asta-ui/src/pay-methods.d.ts +2 -0
  513. package/dist/types/packages/asta-ui/src/payment-status.d.ts +2 -0
  514. package/dist/types/packages/asta-ui/src/pixel-reveal.d.ts +2 -0
  515. package/dist/types/packages/asta-ui/src/price-chart.d.ts +2 -0
  516. package/dist/types/packages/asta-ui/src/pricing.d.ts +2 -0
  517. package/dist/types/packages/asta-ui/src/radio-group.d.ts +2 -0
  518. package/dist/types/packages/asta-ui/src/scramble-text.d.ts +2 -0
  519. package/dist/types/packages/asta-ui/src/segmented-control.d.ts +2 -0
  520. package/dist/types/packages/asta-ui/src/select.d.ts +2 -0
  521. package/dist/types/packages/asta-ui/src/settings-panel.d.ts +2 -0
  522. package/dist/types/packages/asta-ui/src/sign-in.d.ts +2 -0
  523. package/dist/types/packages/asta-ui/src/skeleton.d.ts +2 -0
  524. package/dist/types/packages/asta-ui/src/slider.d.ts +2 -0
  525. package/dist/types/packages/asta-ui/src/snap-grid.d.ts +2 -0
  526. package/dist/types/packages/asta-ui/src/spinner.d.ts +2 -0
  527. package/dist/types/packages/asta-ui/src/split-flap.d.ts +2 -0
  528. package/dist/types/packages/asta-ui/src/spotlight-grid.d.ts +2 -0
  529. package/dist/types/packages/asta-ui/src/switch.d.ts +2 -0
  530. package/dist/types/packages/asta-ui/src/tabs.d.ts +2 -0
  531. package/dist/types/packages/asta-ui/src/tag-input.d.ts +2 -0
  532. package/dist/types/packages/asta-ui/src/textarea-aui-001.d.ts +2 -0
  533. package/dist/types/packages/asta-ui/src/textarea-aui-002.d.ts +2 -0
  534. package/dist/types/packages/asta-ui/src/textarea-aui-003.d.ts +2 -0
  535. package/dist/types/packages/asta-ui/src/textarea-aui-004.d.ts +2 -0
  536. package/dist/types/packages/asta-ui/src/textarea-aui-005.d.ts +2 -0
  537. package/dist/types/packages/asta-ui/src/textarea-aui-006.d.ts +2 -0
  538. package/dist/types/packages/asta-ui/src/textarea-aui-007.d.ts +2 -0
  539. package/dist/types/packages/asta-ui/src/textarea-aui-008.d.ts +2 -0
  540. package/dist/types/packages/asta-ui/src/textarea.d.ts +2 -0
  541. package/dist/types/packages/asta-ui/src/toast.d.ts +2 -0
  542. package/dist/types/packages/asta-ui/src/tooltip.d.ts +2 -0
  543. package/dist/types/packages/asta-ui/src/trade-ticket.d.ts +2 -0
  544. package/dist/types/packages/asta-ui/src/variant-picker.d.ts +2 -0
  545. package/dist/variant-picker.d.ts +2 -0
  546. package/dist/variant-picker.js +7 -0
  547. package/package.json +86 -4
@@ -0,0 +1,57 @@
1
+ "use client";
2
+
3
+ // components/kit/skeleton.tsx
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ var cx = (...c) => c.filter(Boolean).join(" ");
6
+ var SHIMMER = `
7
+ @keyframes kit-shimmer { from { background-position: 150% 0 } to { background-position: -50% 0 } }
8
+ @media (prefers-reduced-motion: reduce) { .kit-skel { animation: none !important } }
9
+ `;
10
+ function Skeleton({ shape = "line", width, height, className }) {
11
+ return /* @__PURE__ */ jsx(
12
+ "span",
13
+ {
14
+ "aria-hidden": true,
15
+ className: cx(
16
+ "kit-skel block",
17
+ shape === "line" && "h-3 rounded-full",
18
+ shape === "circle" && "aspect-square shrink-0 self-start rounded-full",
19
+ shape === "block" && "rounded-[10px]",
20
+ className
21
+ ),
22
+ style: {
23
+ width,
24
+ height: height ?? (shape === "circle" ? width : void 0),
25
+ backgroundColor: "color-mix(in srgb, var(--ink) 7%, transparent)",
26
+ backgroundImage: "linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 70%, transparent) 50%, transparent 70%)",
27
+ backgroundSize: "250% 100%",
28
+ animation: "kit-shimmer 1.6s cubic-bezier(.4,0,.2,1) infinite"
29
+ },
30
+ children: /* @__PURE__ */ jsx("style", { href: "asta-skeleton", precedence: "asta", children: SHIMMER })
31
+ }
32
+ );
33
+ }
34
+ function SkeletonText({ lines = 3, className }) {
35
+ return /* @__PURE__ */ jsx("span", { className: cx("flex flex-col gap-2", className), "aria-hidden": true, children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsx(Skeleton, { width: i === lines - 1 ? "62%" : "100%" }, i)) });
36
+ }
37
+ function SkeletonCard({ className }) {
38
+ return /* @__PURE__ */ jsxs("div", { role: "status", "aria-label": "Loading", className: cx("flex w-full flex-col gap-4 rounded-xl bg-paper p-3 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]", className), children: [
39
+ /* @__PURE__ */ jsx(Skeleton, { shape: "block", className: "aspect-[16/9] w-full" }),
40
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-1", children: [
41
+ /* @__PURE__ */ jsx(Skeleton, { shape: "circle", width: 36 }),
42
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
43
+ /* @__PURE__ */ jsx(Skeleton, { width: "55%" }),
44
+ /* @__PURE__ */ jsx(Skeleton, { width: "35%", className: "!h-2.5" })
45
+ ] })
46
+ ] }),
47
+ /* @__PURE__ */ jsx(SkeletonText, { lines: 2, className: "px-1 pb-1" })
48
+ ] });
49
+ }
50
+ var skeleton_default = Skeleton;
51
+
52
+ export {
53
+ Skeleton,
54
+ SkeletonText,
55
+ SkeletonCard,
56
+ skeleton_default
57
+ };
@@ -0,0 +1,84 @@
1
+ "use client";
2
+
3
+ // components/kit/base/avatar.tsx
4
+ import { Avatar as A } from "@base-ui/react/avatar";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var SIZE = {
8
+ xs: { box: "h-6 w-6", text: "text-[10px]", dot: "h-1.5 w-1.5" },
9
+ sm: { box: "h-8 w-8", text: "text-[12px]", dot: "h-2 w-2" },
10
+ md: { box: "h-10 w-10", text: "text-[14px]", dot: "h-2.5 w-2.5" },
11
+ lg: { box: "h-12 w-12", text: "text-[16px]", dot: "h-3 w-3" },
12
+ xl: { box: "h-16 w-16", text: "text-[20px]", dot: "h-3.5 w-3.5" }
13
+ };
14
+ var STATUS = { online: "#30a46c", away: "#f5a524", busy: "#e5484d", offline: "var(--mute)" };
15
+ var FILLS = [
16
+ "bg-ink text-paper",
17
+ "bg-brand text-white",
18
+ "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
19
+ "bg-[color-mix(in_srgb,var(--brand)_14%,var(--paper))] text-brand",
20
+ "bg-[color-mix(in_srgb,var(--ink)_70%,var(--paper))] text-paper"
21
+ ];
22
+ var initials = (name) => name.split(/\s+/).filter(Boolean).slice(0, 2).map((p) => p[0].toUpperCase()).join("");
23
+ var fillFor = (name) => FILLS[[...name].reduce((n, c) => n + c.charCodeAt(0), 0) % FILLS.length];
24
+ function Avatar({ name, src, size = "md", status, shape = "circle", className }) {
25
+ const s = SIZE[size];
26
+ const round = shape === "circle" ? "rounded-full" : "rounded-[30%]";
27
+ return /* @__PURE__ */ jsxs("span", { className: cx("relative inline-flex shrink-0", s.box, className), role: "img", "aria-label": status ? `${name} (${status})` : name, children: [
28
+ /* @__PURE__ */ jsxs(A.Root, { className: cx("flex h-full w-full select-none overflow-hidden bg-paper-2 font-medium tracking-[-0.02em]", round, s.text), children: [
29
+ src && /* @__PURE__ */ jsx(A.Image, { src, alt: "", className: "h-full w-full object-cover animate-[kit-av-in_.3s_ease-out] motion-reduce:animate-none" }),
30
+ /* @__PURE__ */ jsx(A.Fallback, { delay: src ? 250 : void 0, className: cx("flex h-full w-full items-center justify-center", fillFor(name)), children: initials(name) })
31
+ ] }),
32
+ /* @__PURE__ */ jsx("style", { href: "kit-avatar", precedence: "default", children: `@keyframes kit-av-in { from { opacity: 0 } }` }),
33
+ status && /* @__PURE__ */ jsx(
34
+ "span",
35
+ {
36
+ "aria-hidden": true,
37
+ className: cx("absolute bottom-0 right-0 rounded-full shadow-[0_0_0_2px_var(--paper)]", s.dot, shape === "square" && "-bottom-0.5 -right-0.5"),
38
+ style: { background: STATUS[status] }
39
+ }
40
+ )
41
+ ] });
42
+ }
43
+ function AvatarGroup({ people, max = 4, size = "md", children }) {
44
+ const shown = people.slice(0, max);
45
+ const rest = people.length - shown.length;
46
+ const s = SIZE[size];
47
+ return /* @__PURE__ */ jsxs("div", { className: "group/av flex items-center", "aria-label": `${people.length} people`, children: [
48
+ shown.map((p, i) => /* @__PURE__ */ jsx(
49
+ "span",
50
+ {
51
+ title: p.name,
52
+ className: cx(
53
+ "relative rounded-full shadow-[0_0_0_2px_var(--paper)] transition-[margin,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)] hover:z-10 hover:-translate-y-1",
54
+ i > 0 && "-ml-2.5 group-hover/av:ml-1"
55
+ ),
56
+ children: /* @__PURE__ */ jsx(Avatar, { name: p.name, src: p.src, size })
57
+ },
58
+ p.name
59
+ )),
60
+ rest > 0 && /* @__PURE__ */ jsxs(
61
+ "span",
62
+ {
63
+ className: cx(
64
+ "relative -ml-2.5 inline-flex items-center justify-center rounded-full bg-paper-2 font-medium tabular-nums text-ink-2 shadow-[0_0_0_2px_var(--paper)] transition-[margin] duration-500 ease-[cubic-bezier(.16,1,.3,1)] group-hover/av:ml-1",
65
+ s.box,
66
+ s.text
67
+ ),
68
+ children: [
69
+ "+",
70
+ rest
71
+ ]
72
+ }
73
+ ),
74
+ children
75
+ ] });
76
+ }
77
+ var avatar_default = Avatar;
78
+
79
+ export {
80
+ initials,
81
+ Avatar,
82
+ AvatarGroup,
83
+ avatar_default
84
+ };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/NeedleField.tsx
4
+ import { useEffect, useRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function NeedleField() {
7
+ const ref = useRef(null);
8
+ useEffect(() => {
9
+ const cv = ref.current;
10
+ const css = getComputedStyle(cv);
11
+ const SIG = css.getPropertyValue("--color-signal").trim() || "#c5f82a";
12
+ const ctx = cv.getContext("2d");
13
+ let w = 0;
14
+ let h = 0;
15
+ let dpr = 1;
16
+ let raf = 0;
17
+ let visible = true;
18
+ const target = { x: 0, y: 0, active: false };
19
+ const cur = { x: 0, y: 0 };
20
+ const size = () => {
21
+ const r = cv.getBoundingClientRect();
22
+ w = r.width;
23
+ h = r.height;
24
+ dpr = Math.min(window.devicePixelRatio || 1, 2);
25
+ cv.width = Math.round(w * dpr);
26
+ cv.height = Math.round(h * dpr);
27
+ };
28
+ const draw = (t) => {
29
+ if (!target.active) {
30
+ target.x = w / 2 + Math.cos(t / 1400) * w * 0.3;
31
+ target.y = h / 2 + Math.sin(t / 1100) * h * 0.28;
32
+ }
33
+ cur.x += (target.x - cur.x) * 0.15;
34
+ cur.y += (target.y - cur.y) * 0.15;
35
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
36
+ ctx.clearRect(0, 0, w, h);
37
+ const gap = 26;
38
+ const cols = Math.floor(w / gap);
39
+ const rows = Math.floor(h / gap);
40
+ const ox = (w - (cols - 1) * gap) / 2;
41
+ const oy = (h - (rows - 1) * gap) / 2;
42
+ ctx.lineCap = "square";
43
+ for (let r = 0; r < rows; r++) {
44
+ for (let c = 0; c < cols; c++) {
45
+ const x = ox + c * gap;
46
+ const y = oy + r * gap;
47
+ const a = Math.atan2(cur.y - y, cur.x - x);
48
+ const d = Math.hypot(cur.x - x, cur.y - y);
49
+ const k = Math.max(0, 1 - d / 120);
50
+ const len = 5 + k * 6;
51
+ ctx.strokeStyle = k > 0.35 ? SIG : `rgba(233,233,228,${0.25 + k})`;
52
+ ctx.lineWidth = 1.5;
53
+ ctx.beginPath();
54
+ ctx.moveTo(x - Math.cos(a) * len, y - Math.sin(a) * len);
55
+ ctx.lineTo(x + Math.cos(a) * len, y + Math.sin(a) * len);
56
+ ctx.stroke();
57
+ }
58
+ }
59
+ if (visible) raf = requestAnimationFrame(draw);
60
+ };
61
+ const move = (e) => {
62
+ const r = cv.getBoundingClientRect();
63
+ target.x = e.clientX - r.left;
64
+ target.y = e.clientY - r.top;
65
+ target.active = true;
66
+ };
67
+ const leave = () => target.active = false;
68
+ size();
69
+ const ro = new ResizeObserver(size);
70
+ ro.observe(cv);
71
+ const io = new IntersectionObserver(([e]) => {
72
+ visible = e.isIntersecting;
73
+ cancelAnimationFrame(raf);
74
+ if (visible) raf = requestAnimationFrame(draw);
75
+ });
76
+ io.observe(cv);
77
+ cv.addEventListener("pointermove", move);
78
+ cv.addEventListener("pointerleave", leave);
79
+ return () => {
80
+ cancelAnimationFrame(raf);
81
+ ro.disconnect();
82
+ io.disconnect();
83
+ cv.removeEventListener("pointermove", move);
84
+ cv.removeEventListener("pointerleave", leave);
85
+ };
86
+ }, []);
87
+ return /* @__PURE__ */ jsx("canvas", { ref, className: "absolute inset-0 h-full w-full [touch-action:none]", "aria-label": "Needles following the pointer" });
88
+ }
89
+
90
+ export {
91
+ NeedleField
92
+ };
@@ -0,0 +1,31 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/ScrambleText.tsx
4
+ import { useRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var GLYPHS = "!<>-_\\/[]{}\u2014=+*^?#ABCDEFGHIJKLMNOPQRSTUVWXYZ01";
7
+ var WORDS = ["Strategy", "Identity", "Interface", "Motion", "Engineering"];
8
+ function Word({ text }) {
9
+ const ref = useRef(null);
10
+ const raf = useRef(0);
11
+ const run = () => {
12
+ cancelAnimationFrame(raf.current);
13
+ let frame = 0;
14
+ const total = text.length * 3 + 6;
15
+ const step = () => {
16
+ const out = text.split("").map((ch, i) => frame / 3 > i ? ch : ch === " " ? " " : GLYPHS[Math.floor(Math.random() * GLYPHS.length)]).join("");
17
+ if (ref.current) ref.current.textContent = out;
18
+ frame++;
19
+ if (frame <= total) raf.current = requestAnimationFrame(step);
20
+ };
21
+ step();
22
+ };
23
+ return /* @__PURE__ */ jsx("span", { ref, onPointerEnter: run, onFocus: run, tabIndex: 0, className: "block cursor-default py-0.5 font-mono text-xl uppercase tracking-tight text-ink transition-colors hover:text-signal outline-none focus-visible:text-signal", children: text });
24
+ }
25
+ function ScrambleText() {
26
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col items-center justify-center", children: WORDS.map((w) => /* @__PURE__ */ jsx(Word, { text: w }, w)) });
27
+ }
28
+
29
+ export {
30
+ ScrambleText
31
+ };
@@ -0,0 +1,87 @@
1
+ "use client";
2
+
3
+ // components/kit/base/button.tsx
4
+ import { useRender } from "@base-ui/react/use-render";
5
+ import { isValidElement } from "react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
+ var cx = (...c) => c.filter(Boolean).join(" ");
8
+ var BASE = "group/btn relative inline-flex shrink-0 select-none items-center [&_svg]:shrink-0 justify-center whitespace-nowrap font-medium tracking-[-0.01em] outline-none transition-[background-color,color,box-shadow,transform,opacity] duration-200 ease-out active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper disabled:pointer-events-none disabled:opacity-45 aria-disabled:pointer-events-none aria-disabled:opacity-45";
9
+ var LIFT = "shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.16),0_6px_14px_-8px_rgb(0_0_0/0.45)]";
10
+ var VARIANT = {
11
+ solid: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))]`,
12
+ accent: `bg-brand text-white ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
13
+ danger: `bg-[#e5484d] text-white ${LIFT} hover:bg-[#d13d42]`,
14
+ outline: "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent),0_1px_2px_rgb(0_0_0/0.05)] hover:bg-paper-2 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent),0_1px_2px_rgb(0_0_0/0.05)]",
15
+ soft: "bg-paper-2 text-ink hover:bg-[color-mix(in_srgb,var(--ink)_8%,var(--paper-2))]",
16
+ ghost: "text-ink-2 hover:bg-paper-2 hover:text-ink",
17
+ // Underline grows from the left on hover.
18
+ link: "!h-auto !px-0 text-ink bg-[linear-gradient(currentColor,currentColor)] bg-[length:0%_1px] bg-[position:0_100%] bg-no-repeat transition-[background-size,color] duration-300 hover:bg-[length:100%_1px] active:scale-100"
19
+ };
20
+ var SIZE = {
21
+ xs: "h-7 gap-1.5 rounded-md px-2.5 text-[12px]",
22
+ sm: "h-8 gap-1.5 rounded-md px-3 text-[13px]",
23
+ md: "h-10 gap-2 rounded-lg px-4 text-[14px]",
24
+ lg: "h-12 gap-2.5 rounded-[9px] px-5 text-[15px]"
25
+ };
26
+ var ICON_ONLY = { xs: "w-7 !px-0", sm: "w-8 !px-0", md: "w-10 !px-0", lg: "w-12 !px-0" };
27
+ function buttonClass({ variant = "solid", size = "md", shape = "rounded", iconOnly = false } = {}) {
28
+ return cx(BASE, SIZE[size], VARIANT[variant], iconOnly && ICON_ONLY[size], shape === "pill" && "!rounded-full");
29
+ }
30
+ function Spinner({ className = "" }) {
31
+ return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: cx("h-4 w-4 animate-spin", className), fill: "none", "aria-hidden": true, children: [
32
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: "0.25", strokeWidth: "2" }),
33
+ /* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
34
+ ] });
35
+ }
36
+ function Button(props) {
37
+ const { variant = "solid", size = "md", shape, loading, iconLeft, iconRight, nudge, iconOnly, kbd, asChild, className, children, ...rest } = props;
38
+ if (asChild && isValidElement(children)) {
39
+ return /* @__PURE__ */ jsx(Slotted, { element: children, props: { ...rest, className: cx(buttonClass({ variant, size, shape, iconOnly }), className) } });
40
+ }
41
+ const filled = variant === "solid" || variant === "accent" || variant === "danger";
42
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ /* @__PURE__ */ jsxs("span", { className: cx("inline-flex items-center gap-[inherit] transition-opacity duration-200 [&>svg]:h-[1.15em] [&>svg]:w-[1.15em]", loading && "opacity-0"), children: [
44
+ iconLeft && /* @__PURE__ */ jsx("span", { className: "-ml-0.5 inline-flex shrink-0 [&_svg]:h-[1.1em] [&_svg]:w-[1.1em]", children: iconLeft }),
45
+ children,
46
+ iconRight && /* @__PURE__ */ jsx(
47
+ "span",
48
+ {
49
+ className: cx(
50
+ "-mr-0.5 inline-flex shrink-0 [&_svg]:h-[1.1em] [&_svg]:w-[1.1em]",
51
+ nudge && "transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] group-hover/btn:translate-x-0.5"
52
+ ),
53
+ children: iconRight
54
+ }
55
+ ),
56
+ kbd && /* @__PURE__ */ jsx(
57
+ "kbd",
58
+ {
59
+ className: cx(
60
+ "-mr-1.5 ml-1 rounded-md px-1.5 font-sans text-[0.8em] leading-[1.6]",
61
+ filled ? "bg-white/15 text-current" : "bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] text-mute"
62
+ ),
63
+ children: kbd
64
+ }
65
+ )
66
+ ] }),
67
+ loading && /* @__PURE__ */ jsx("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, {}) })
68
+ ] });
69
+ const cls = cx(buttonClass({ variant, size, shape, iconOnly }), className);
70
+ if (rest.href !== void 0) {
71
+ const a = rest;
72
+ return /* @__PURE__ */ jsx("a", { ...a, className: cls, "aria-disabled": loading || void 0, "aria-busy": loading || void 0, children: content });
73
+ }
74
+ const b = rest;
75
+ return /* @__PURE__ */ jsx("button", { type: "button", ...b, className: cls, disabled: b.disabled || loading, "aria-busy": loading || void 0, children: content });
76
+ }
77
+ function Slotted({ element, props }) {
78
+ return useRender({ render: element, props });
79
+ }
80
+ var button_default = Button;
81
+
82
+ export {
83
+ buttonClass,
84
+ Spinner,
85
+ Button,
86
+ button_default
87
+ };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+
3
+ // components/kit/base/checkbox.tsx
4
+ import { Checkbox as C } from "@base-ui/react/checkbox";
5
+ import { useId, useState } from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var cx = (...c) => c.filter(Boolean).join(" ");
8
+ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled, label, description, id, name, className }) {
9
+ const auto = useId();
10
+ const cid = id ?? auto;
11
+ const [inner, setInner] = useState(defaultChecked);
12
+ const state = checked ?? inner;
13
+ const on = state === true;
14
+ const mixed = state === "indeterminate";
15
+ const box = /* @__PURE__ */ jsxs(
16
+ C.Root,
17
+ {
18
+ id: cid,
19
+ name,
20
+ checked: on,
21
+ indeterminate: mixed,
22
+ onCheckedChange: (v) => {
23
+ const next = mixed ? true : v;
24
+ if (checked === void 0) setInner(next);
25
+ onCheckedChange?.(next);
26
+ },
27
+ "aria-describedby": description ? `${cid}-d` : void 0,
28
+ disabled,
29
+ className: cx(
30
+ "group/cb relative grid h-[18px] w-[18px] shrink-0 place-items-center rounded-[6px] outline-none transition-[background-color,box-shadow,transform] duration-200 active:scale-90",
31
+ "focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper disabled:opacity-45",
32
+ on || mixed ? "bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_1px_2px_rgb(0_0_0/0.2)]" : "bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] hover:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_40%,transparent)]"
33
+ ),
34
+ children: [
35
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-3 w-3 text-white", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
36
+ "path",
37
+ {
38
+ d: "M3.5 8.5l3 3 6-7",
39
+ pathLength: 1,
40
+ strokeDasharray: "1",
41
+ className: "transition-[stroke-dashoffset] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
42
+ style: { strokeDashoffset: on ? 0 : 1, transitionDuration: on ? "420ms" : "120ms" }
43
+ }
44
+ ) }),
45
+ /* @__PURE__ */ jsx(
46
+ "span",
47
+ {
48
+ "aria-hidden": true,
49
+ className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-white transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", mixed ? "scale-x-100" : "scale-x-0")
50
+ }
51
+ )
52
+ ]
53
+ }
54
+ );
55
+ if (!label) return /* @__PURE__ */ jsx("span", { className, children: box });
56
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex items-start gap-3", disabled && "opacity-60", className), children: [
57
+ /* @__PURE__ */ jsx("span", { className: "pt-[1px]", children: box }),
58
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
59
+ /* @__PURE__ */ jsx("label", { htmlFor: cid, className: cx("block select-none text-[14px] leading-5 text-ink", !disabled && "cursor-pointer"), children: label }),
60
+ description && /* @__PURE__ */ jsx("span", { id: `${cid}-d`, className: "mt-0.5 block text-[13px] leading-snug text-mute", children: description })
61
+ ] })
62
+ ] });
63
+ }
64
+ var checkbox_default = Checkbox;
65
+
66
+ export {
67
+ Checkbox,
68
+ checkbox_default
69
+ };
@@ -0,0 +1,198 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-WSL4JGEA.js";
5
+
6
+ // components/kit/base/sign-in.tsx
7
+ import { useEffect, useId, useRef, useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var cx = (...c) => c.filter(Boolean).join(" ");
10
+ var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]";
11
+ var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
12
+ var CSS = `
13
+ @keyframes kit-signin-pop { from { opacity: 0; transform: scale(.92) translateY(6px) } to { opacity: 1; transform: none } }
14
+ @keyframes kit-signin-draw { from { stroke-dashoffset: 24 } to { stroke-dashoffset: 0 } }
15
+ @media (prefers-reduced-motion: reduce) { .kit-signin * { animation: none !important } }
16
+ `;
17
+ var GoogleGlyph = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M8 6.6v2.9h4.1A4.3 4.3 0 0 1 8 12.4a4.4 4.4 0 0 1 0-8.8c1.1 0 2.1.4 2.9 1.1l2-2A7.3 7.3 0 0 0 8 .7a7.3 7.3 0 1 0 0 14.6c4.2 0 7-3 7-7.1 0-.5 0-1-.1-1.5H8Z" }) });
18
+ var GitHubGlyph = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, children: /* @__PURE__ */ jsx(
19
+ "path",
20
+ {
21
+ fill: "currentColor",
22
+ d: "M8 .5a7.5 7.5 0 0 0-2.4 14.6c.4.1.5-.2.5-.4v-1.4c-2.1.5-2.5-.9-2.5-.9-.4-.9-.9-1.1-.9-1.1-.7-.5 0-.5 0-.5.8.1 1.2.8 1.2.8.7 1.2 1.8.8 2.2.6.1-.5.3-.8.5-1-1.7-.2-3.4-.8-3.4-3.7 0-.8.3-1.5.8-2-.1-.2-.3-1 .1-2 0 0 .6-.2 2.1.8a7 7 0 0 1 3.8 0c1.4-1 2.1-.8 2.1-.8.4 1 .2 1.8.1 2 .5.5.8 1.2.8 2 0 2.9-1.8 3.5-3.4 3.7.3.2.5.7.5 1.4v2.1c0 .2.1.5.5.4A7.5 7.5 0 0 0 8 .5Z"
23
+ }
24
+ ) });
25
+ function Field({ label, type, value, onChange, onBlur, error, shake, autoComplete, placeholder, end }) {
26
+ const id = useId();
27
+ const box = useRef(null);
28
+ const hasError = !!error;
29
+ useEffect(() => {
30
+ if (!hasError || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
31
+ box.current?.animate(
32
+ [{ transform: "none" }, { transform: "translateX(-6px)" }, { transform: "translateX(5px)" }, { transform: "translateX(-3px)" }, { transform: "translateX(2px)" }, { transform: "none" }],
33
+ { duration: 420, easing: "cubic-bezier(.16,1,.3,1)" }
34
+ );
35
+ }, [hasError, shake]);
36
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
37
+ /* @__PURE__ */ jsx("label", { htmlFor: id, className: "text-[13px] font-medium text-ink", children: label }),
38
+ /* @__PURE__ */ jsxs("div", { ref: box, className: "relative", children: [
39
+ /* @__PURE__ */ jsx(
40
+ "input",
41
+ {
42
+ id,
43
+ type,
44
+ value,
45
+ autoComplete,
46
+ placeholder,
47
+ onChange: (e) => onChange(e.target.value),
48
+ onBlur,
49
+ "aria-invalid": !!error || void 0,
50
+ "aria-describedby": error ? `${id}-err` : void 0,
51
+ className: cx(
52
+ "h-10 w-full rounded-lg bg-paper px-3 text-[14px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute",
53
+ !!end && "pr-11",
54
+ error ? "shadow-[inset_0_0_0_1px_#e5484d] focus-visible:ring-2 focus-visible:ring-[#e5484d]/30" : `${RING} focus-visible:ring-2 focus-visible:ring-brand/50`
55
+ )
56
+ }
57
+ ),
58
+ end && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-1 flex items-center", children: end })
59
+ ] }),
60
+ /* @__PURE__ */ jsx(
61
+ "p",
62
+ {
63
+ id: `${id}-err`,
64
+ role: error ? "alert" : void 0,
65
+ className: cx("grid text-[12.5px] text-[#e5484d] transition-[grid-template-rows,opacity] duration-300", EASE, error ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"),
66
+ children: /* @__PURE__ */ jsx("span", { className: "overflow-hidden", children: error })
67
+ }
68
+ )
69
+ ] });
70
+ }
71
+ var validEmail = (v) => /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(v.trim());
72
+ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to your workspace.", onSubmit, onSocial, className }) {
73
+ const [email, setEmail] = useState("");
74
+ const [password, setPassword] = useState("");
75
+ const [touched, setTouched] = useState({ email: false, password: false });
76
+ const [reveal, setReveal] = useState(false);
77
+ const [state, setState] = useState("idle");
78
+ const [formError, setFormError] = useState("");
79
+ const [shake, setShake] = useState(0);
80
+ const errors = {
81
+ email: !email.trim() ? "Enter your email." : !validEmail(email) ? "That doesn't look like an email address." : "",
82
+ password: !password ? "Enter your password." : password.length < 8 ? "Use at least 8 characters." : ""
83
+ };
84
+ const show = (k) => touched[k] ? errors[k] : "";
85
+ const submit = async (e) => {
86
+ e.preventDefault();
87
+ setTouched({ email: true, password: true });
88
+ setFormError("");
89
+ if (errors.email || errors.password) {
90
+ setShake((n) => n + 1);
91
+ return;
92
+ }
93
+ setState("loading");
94
+ try {
95
+ await (onSubmit?.({ email, password }) ?? new Promise((r) => setTimeout(r, 1200)));
96
+ setState("done");
97
+ } catch (err) {
98
+ setState("idle");
99
+ setFormError(err instanceof Error ? err.message : "Something went wrong. Try again.");
100
+ }
101
+ };
102
+ const reset = () => {
103
+ setEmail("");
104
+ setPassword("");
105
+ setTouched({ email: false, password: false });
106
+ setState("idle");
107
+ };
108
+ return /* @__PURE__ */ jsxs("div", { className: cx("kit-signin relative w-full max-w-[380px] overflow-hidden rounded-xl bg-paper p-6 sm:p-7", "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)]", className), children: [
109
+ /* @__PURE__ */ jsx("style", { href: "asta-sign-in", precedence: "asta", children: CSS }),
110
+ state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[380px] flex-col items-center justify-center text-center", style: { animation: "kit-signin-pop .5s cubic-bezier(.16,1,.3,1) both" }, role: "status", children: [
111
+ /* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-[#30a46c] text-white", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-7 w-7", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", strokeDasharray: "24", style: { animation: "kit-signin-draw .5s .15s cubic-bezier(.16,1,.3,1) both" } }) }) }),
112
+ /* @__PURE__ */ jsx("h3", { className: "mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink", children: "You're in" }),
113
+ /* @__PURE__ */ jsxs("p", { className: "mt-1.5 max-w-[26ch] text-[14px] leading-snug text-mute", children: [
114
+ "Signed in as ",
115
+ /* @__PURE__ */ jsx("span", { className: "text-ink", children: email }),
116
+ "."
117
+ ] }),
118
+ /* @__PURE__ */ jsx(Button, { variant: "soft", size: "sm", className: "mt-6", onClick: reset, children: "Sign out" })
119
+ ] }) : /* @__PURE__ */ jsxs("form", { noValidate: true, onSubmit: submit, className: "flex flex-col", children: [
120
+ /* @__PURE__ */ jsx("h3", { className: "text-[20px] font-medium tracking-[-0.02em] text-ink", children: title }),
121
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[14px] leading-snug text-mute", children: subtitle }),
122
+ /* @__PURE__ */ jsxs("div", { className: "mt-6 grid grid-cols-2 gap-2", children: [
123
+ /* @__PURE__ */ jsx(Button, { variant: "outline", iconLeft: /* @__PURE__ */ jsx(GoogleGlyph, {}), onClick: () => onSocial?.("google"), children: "Google" }),
124
+ /* @__PURE__ */ jsx(Button, { variant: "outline", iconLeft: /* @__PURE__ */ jsx(GitHubGlyph, {}), onClick: () => onSocial?.("github"), children: "GitHub" })
125
+ ] }),
126
+ /* @__PURE__ */ jsxs("div", { className: "my-5 flex items-center gap-3 text-[12px] text-mute", "aria-hidden": true, children: [
127
+ /* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-[color-mix(in_srgb,var(--ink)_10%,transparent)]" }),
128
+ "or",
129
+ /* @__PURE__ */ jsx("span", { className: "h-px flex-1 bg-[color-mix(in_srgb,var(--ink)_10%,transparent)]" })
130
+ ] }),
131
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
132
+ /* @__PURE__ */ jsx(
133
+ Field,
134
+ {
135
+ label: "Email",
136
+ type: "email",
137
+ autoComplete: "email",
138
+ placeholder: "you@company.com",
139
+ value: email,
140
+ onChange: setEmail,
141
+ onBlur: () => email && setTouched((t) => ({ ...t, email: true })),
142
+ error: show("email"),
143
+ shake
144
+ }
145
+ ),
146
+ /* @__PURE__ */ jsx(
147
+ Field,
148
+ {
149
+ label: "Password",
150
+ type: reveal ? "text" : "password",
151
+ autoComplete: "current-password",
152
+ placeholder: "At least 8 characters",
153
+ value: password,
154
+ onChange: setPassword,
155
+ onBlur: () => password && setTouched((t) => ({ ...t, password: true })),
156
+ error: show("password"),
157
+ shake,
158
+ end: /* @__PURE__ */ jsx(
159
+ "button",
160
+ {
161
+ type: "button",
162
+ onClick: () => setReveal((v) => !v),
163
+ "aria-label": reveal ? "Hide password" : "Show password",
164
+ "aria-pressed": reveal,
165
+ className: "flex h-8 w-8 items-center justify-center rounded-lg text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
166
+ children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": true, children: [
167
+ /* @__PURE__ */ jsx("path", { d: "M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z" }),
168
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "2" }),
169
+ /* @__PURE__ */ jsx("path", { d: "M2.5 13.5l11-11", className: cx("transition-[stroke-dashoffset] duration-300", EASE), strokeDasharray: "16", strokeDashoffset: reveal ? 16 : 0 })
170
+ ] })
171
+ }
172
+ )
173
+ }
174
+ )
175
+ ] }),
176
+ /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center justify-between text-[13px]", children: [
177
+ /* @__PURE__ */ jsxs("label", { className: "flex cursor-pointer items-center gap-2 text-ink-2", children: [
178
+ /* @__PURE__ */ jsx("input", { type: "checkbox", defaultChecked: true, className: "h-3.5 w-3.5 accent-[var(--brand)]" }),
179
+ "Remember me"
180
+ ] }),
181
+ /* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "text-brand outline-none hover:underline focus-visible:underline", children: "Forgot password?" })
182
+ ] }),
183
+ formError && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-4 rounded-lg bg-[#e5484d]/10 px-3 py-2 text-[13px] text-[#e5484d]", children: formError }),
184
+ /* @__PURE__ */ jsx(Button, { type: "submit", variant: "solid", size: "md", loading: state === "loading", className: "mt-5 w-full", children: "Sign in" }),
185
+ /* @__PURE__ */ jsxs("p", { className: "mt-4 text-center text-[13px] text-mute", children: [
186
+ "New here?",
187
+ " ",
188
+ /* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "font-medium text-ink outline-none hover:underline focus-visible:underline", children: "Create an account" })
189
+ ] })
190
+ ] })
191
+ ] });
192
+ }
193
+ var sign_in_default = SignInCard;
194
+
195
+ export {
196
+ SignInCard,
197
+ sign_in_default
198
+ };