asta-ui 0.3.0 → 0.5.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 (459) hide show
  1. package/dist/accordion.js +1 -1
  2. package/dist/base/card-checkout.js +1 -1
  3. package/dist/base/checkbox-aui-052.d.ts +2 -0
  4. package/dist/base/checkbox-aui-052.js +9 -0
  5. package/dist/base/checkbox-aui-053.d.ts +2 -0
  6. package/dist/base/checkbox-aui-053.js +9 -0
  7. package/dist/base/checkbox-aui-054.d.ts +2 -0
  8. package/dist/base/checkbox-aui-054.js +9 -0
  9. package/dist/base/combobox-aui-046.d.ts +2 -0
  10. package/dist/base/combobox-aui-046.js +9 -0
  11. package/dist/base/combobox-aui-047.d.ts +2 -0
  12. package/dist/base/combobox-aui-047.js +9 -0
  13. package/dist/base/date-picker-aui-050.d.ts +2 -0
  14. package/dist/base/date-picker-aui-050.js +9 -0
  15. package/dist/base/date-picker-aui-051.d.ts +2 -0
  16. package/dist/base/date-picker-aui-051.js +9 -0
  17. package/dist/base/footer-aui-025.d.ts +2 -0
  18. package/dist/base/footer-aui-025.js +9 -0
  19. package/dist/base/footer-aui-026.d.ts +2 -0
  20. package/dist/base/footer-aui-026.js +9 -0
  21. package/dist/base/footer-aui-027.d.ts +2 -0
  22. package/dist/base/footer-aui-027.js +9 -0
  23. package/dist/base/footer-aui-028.d.ts +2 -0
  24. package/dist/base/footer-aui-028.js +9 -0
  25. package/dist/base/input-aui-029.d.ts +2 -0
  26. package/dist/base/input-aui-029.js +9 -0
  27. package/dist/base/input-aui-030.d.ts +2 -0
  28. package/dist/base/input-aui-030.js +9 -0
  29. package/dist/base/input-aui-031.d.ts +2 -0
  30. package/dist/base/input-aui-031.js +9 -0
  31. package/dist/base/input-aui-032.d.ts +2 -0
  32. package/dist/base/input-aui-032.js +11 -0
  33. package/dist/base/input-aui-033.d.ts +2 -0
  34. package/dist/base/input-aui-033.js +11 -0
  35. package/dist/base/input-aui-034.d.ts +2 -0
  36. package/dist/base/input-aui-034.js +9 -0
  37. package/dist/base/navbar-aui-009.d.ts +2 -0
  38. package/dist/base/navbar-aui-009.js +9 -0
  39. package/dist/base/navbar-aui-010.d.ts +2 -0
  40. package/dist/base/navbar-aui-010.js +9 -0
  41. package/dist/base/navbar-aui-011.d.ts +2 -0
  42. package/dist/base/navbar-aui-011.js +9 -0
  43. package/dist/base/navbar-aui-012.d.ts +2 -0
  44. package/dist/base/navbar-aui-012.js +9 -0
  45. package/dist/base/navbar-aui-013.d.ts +2 -0
  46. package/dist/base/navbar-aui-013.js +9 -0
  47. package/dist/base/navbar-aui-014.d.ts +2 -0
  48. package/dist/base/navbar-aui-014.js +9 -0
  49. package/dist/base/now-playing.js +1 -1
  50. package/dist/base/otp-input-aui-041.d.ts +2 -0
  51. package/dist/base/otp-input-aui-041.js +9 -0
  52. package/dist/base/otp-input-aui-042.d.ts +2 -0
  53. package/dist/base/otp-input-aui-042.js +9 -0
  54. package/dist/base/password-input-aui-039.d.ts +2 -0
  55. package/dist/base/password-input-aui-039.js +9 -0
  56. package/dist/base/password-input-aui-040.d.ts +2 -0
  57. package/dist/base/password-input-aui-040.js +11 -0
  58. package/dist/base/payment-received.js +1 -1
  59. package/dist/base/pricing-aui-021.d.ts +2 -0
  60. package/dist/base/pricing-aui-021.js +9 -0
  61. package/dist/base/pricing-aui-022.d.ts +2 -0
  62. package/dist/base/pricing-aui-022.js +9 -0
  63. package/dist/base/pricing-aui-023.d.ts +2 -0
  64. package/dist/base/pricing-aui-023.js +9 -0
  65. package/dist/base/pricing-aui-024.d.ts +2 -0
  66. package/dist/base/pricing-aui-024.js +9 -0
  67. package/dist/base/radio-group-aui-055.d.ts +2 -0
  68. package/dist/base/radio-group-aui-055.js +9 -0
  69. package/dist/base/radio-group-aui-056.d.ts +2 -0
  70. package/dist/base/radio-group-aui-056.js +9 -0
  71. package/dist/base/radio-group-aui-057.d.ts +2 -0
  72. package/dist/base/radio-group-aui-057.js +9 -0
  73. package/dist/base/select-aui-043.d.ts +2 -0
  74. package/dist/base/select-aui-043.js +9 -0
  75. package/dist/base/select-aui-044.d.ts +2 -0
  76. package/dist/base/select-aui-044.js +9 -0
  77. package/dist/base/select-aui-045.d.ts +2 -0
  78. package/dist/base/select-aui-045.js +9 -0
  79. package/dist/base/sign-in-aui-015.d.ts +2 -0
  80. package/dist/base/sign-in-aui-015.js +9 -0
  81. package/dist/base/sign-in-aui-016.d.ts +2 -0
  82. package/dist/base/sign-in-aui-016.js +9 -0
  83. package/dist/base/sign-in-aui-017.d.ts +2 -0
  84. package/dist/base/sign-in-aui-017.js +9 -0
  85. package/dist/base/sign-in-aui-018.d.ts +2 -0
  86. package/dist/base/sign-in-aui-018.js +9 -0
  87. package/dist/base/sign-in-aui-019.d.ts +2 -0
  88. package/dist/base/sign-in-aui-019.js +9 -0
  89. package/dist/base/sign-in-aui-020.d.ts +2 -0
  90. package/dist/base/sign-in-aui-020.js +9 -0
  91. package/dist/base/slider-aui-061.d.ts +2 -0
  92. package/dist/base/slider-aui-061.js +9 -0
  93. package/dist/base/slider-aui-062.d.ts +2 -0
  94. package/dist/base/slider-aui-062.js +9 -0
  95. package/dist/base/slider-aui-063.d.ts +2 -0
  96. package/dist/base/slider-aui-063.js +9 -0
  97. package/dist/base/spinner.js +1 -1
  98. package/dist/base/switch-aui-058.d.ts +2 -0
  99. package/dist/base/switch-aui-058.js +9 -0
  100. package/dist/base/switch-aui-059.d.ts +2 -0
  101. package/dist/base/switch-aui-059.js +9 -0
  102. package/dist/base/switch-aui-060.d.ts +2 -0
  103. package/dist/base/switch-aui-060.js +9 -0
  104. package/dist/base/tag-input-aui-048.d.ts +2 -0
  105. package/dist/base/tag-input-aui-048.js +9 -0
  106. package/dist/base/tag-input-aui-049.d.ts +2 -0
  107. package/dist/base/tag-input-aui-049.js +9 -0
  108. package/dist/base/textarea-aui-035.d.ts +2 -0
  109. package/dist/base/textarea-aui-035.js +9 -0
  110. package/dist/base/textarea-aui-036.d.ts +2 -0
  111. package/dist/base/textarea-aui-036.js +9 -0
  112. package/dist/base/textarea-aui-037.d.ts +2 -0
  113. package/dist/base/textarea-aui-037.js +9 -0
  114. package/dist/base/textarea-aui-038.d.ts +2 -0
  115. package/dist/base/textarea-aui-038.js +11 -0
  116. package/dist/base.js +360 -22
  117. package/dist/card-checkout.js +1 -1
  118. package/dist/checkbox-aui-052.d.ts +2 -0
  119. package/dist/checkbox-aui-052.js +9 -0
  120. package/dist/checkbox-aui-053.d.ts +2 -0
  121. package/dist/checkbox-aui-053.js +9 -0
  122. package/dist/checkbox-aui-054.d.ts +2 -0
  123. package/dist/checkbox-aui-054.js +9 -0
  124. package/dist/chunk-2LSUWI2Z.js +180 -0
  125. package/dist/chunk-2SQQFICY.js +493 -0
  126. package/dist/chunk-3XMVXIOF.js +267 -0
  127. package/dist/chunk-4YNUJFTL.js +165 -0
  128. package/dist/chunk-5OHHGQV6.js +175 -0
  129. package/dist/chunk-5TMFFW3Y.js +149 -0
  130. package/dist/{chunk-QJXPS55V.js → chunk-5TSQZY34.js} +1 -1
  131. package/dist/chunk-5U4H2CXC.js +308 -0
  132. package/dist/chunk-5WGDQ62P.js +122 -0
  133. package/dist/chunk-6B6NTRMC.js +293 -0
  134. package/dist/chunk-6NNHSXFD.js +539 -0
  135. package/dist/chunk-746WX2DF.js +480 -0
  136. package/dist/chunk-7GKCX4IE.js +636 -0
  137. package/dist/chunk-7SNVRPED.js +223 -0
  138. package/dist/chunk-ANZANDQM.js +107 -0
  139. package/dist/chunk-BGVAXPHD.js +305 -0
  140. package/dist/chunk-BIYNJDPD.js +158 -0
  141. package/dist/chunk-BV5HEXB5.js +339 -0
  142. package/dist/chunk-CDQNLDO6.js +156 -0
  143. package/dist/chunk-CZCZB5YP.js +142 -0
  144. package/dist/chunk-D6LGKFZH.js +140 -0
  145. package/dist/chunk-EKPTPTKK.js +93 -0
  146. package/dist/chunk-EVCUN45S.js +167 -0
  147. package/dist/chunk-F526V5BA.js +254 -0
  148. package/dist/chunk-FGQPCDXI.js +136 -0
  149. package/dist/chunk-GERWW3CA.js +311 -0
  150. package/dist/chunk-GJ3R6IZL.js +232 -0
  151. package/dist/chunk-HVFB44HO.js +219 -0
  152. package/dist/chunk-I2WXKWTQ.js +151 -0
  153. package/dist/chunk-J6GK2V2C.js +252 -0
  154. package/dist/chunk-JVTDNOHQ.js +173 -0
  155. package/dist/chunk-K5PWBSVO.js +200 -0
  156. package/dist/chunk-KQCXQY5K.js +155 -0
  157. package/dist/chunk-KXWC2UHE.js +308 -0
  158. package/dist/chunk-LPTY5WXM.js +231 -0
  159. package/dist/chunk-MDI73RL6.js +245 -0
  160. package/dist/chunk-MUDW65ZT.js +220 -0
  161. package/dist/chunk-NICNFGHT.js +138 -0
  162. package/dist/chunk-NZRQL3SA.js +201 -0
  163. package/dist/chunk-OFYGJUKP.js +278 -0
  164. package/dist/{chunk-NDBLIYMX.js → chunk-OKCSTMX3.js} +2 -2
  165. package/dist/chunk-P37H477M.js +236 -0
  166. package/dist/chunk-P3USWDWR.js +331 -0
  167. package/dist/chunk-QSLS3ENY.js +469 -0
  168. package/dist/chunk-QYI7LQBQ.js +208 -0
  169. package/dist/chunk-RRHQBGRO.js +327 -0
  170. package/dist/chunk-U6N7CZYN.js +305 -0
  171. package/dist/{chunk-2OGTIQVU.js → chunk-UEOEWP7L.js} +1 -1
  172. package/dist/chunk-UMDVPRJW.js +117 -0
  173. package/dist/{chunk-BP3LXM3X.js → chunk-UTGEGGSE.js} +1 -1
  174. package/dist/chunk-VPZP6TCT.js +155 -0
  175. package/dist/chunk-VVAL2JZJ.js +332 -0
  176. package/dist/chunk-VWYHP4SB.js +154 -0
  177. package/dist/chunk-W7RITVDV.js +182 -0
  178. package/dist/chunk-WNPMHOXE.js +136 -0
  179. package/dist/chunk-WSTQ6WZO.js +193 -0
  180. package/dist/chunk-WTNNS7AX.js +362 -0
  181. package/dist/{chunk-AS6RA64I.js → chunk-XTP6ITUJ.js} +3 -1
  182. package/dist/chunk-Z5GNX2S3.js +171 -0
  183. package/dist/chunk-ZBF2UYXP.js +225 -0
  184. package/dist/combobox-aui-046.d.ts +2 -0
  185. package/dist/combobox-aui-046.js +9 -0
  186. package/dist/combobox-aui-047.d.ts +2 -0
  187. package/dist/combobox-aui-047.js +9 -0
  188. package/dist/date-picker-aui-050.d.ts +2 -0
  189. package/dist/date-picker-aui-050.js +9 -0
  190. package/dist/date-picker-aui-051.d.ts +2 -0
  191. package/dist/date-picker-aui-051.js +9 -0
  192. package/dist/footer-aui-025.d.ts +2 -0
  193. package/dist/footer-aui-025.js +9 -0
  194. package/dist/footer-aui-026.d.ts +2 -0
  195. package/dist/footer-aui-026.js +9 -0
  196. package/dist/footer-aui-027.d.ts +2 -0
  197. package/dist/footer-aui-027.js +9 -0
  198. package/dist/footer-aui-028.d.ts +2 -0
  199. package/dist/footer-aui-028.js +9 -0
  200. package/dist/index.js +361 -23
  201. package/dist/input-aui-029.d.ts +2 -0
  202. package/dist/input-aui-029.js +9 -0
  203. package/dist/input-aui-030.d.ts +2 -0
  204. package/dist/input-aui-030.js +9 -0
  205. package/dist/input-aui-031.d.ts +2 -0
  206. package/dist/input-aui-031.js +9 -0
  207. package/dist/input-aui-032.d.ts +2 -0
  208. package/dist/input-aui-032.js +11 -0
  209. package/dist/input-aui-033.d.ts +2 -0
  210. package/dist/input-aui-033.js +11 -0
  211. package/dist/input-aui-034.d.ts +2 -0
  212. package/dist/input-aui-034.js +9 -0
  213. package/dist/navbar-aui-009.d.ts +2 -0
  214. package/dist/navbar-aui-009.js +9 -0
  215. package/dist/navbar-aui-010.d.ts +2 -0
  216. package/dist/navbar-aui-010.js +9 -0
  217. package/dist/navbar-aui-011.d.ts +2 -0
  218. package/dist/navbar-aui-011.js +9 -0
  219. package/dist/navbar-aui-012.d.ts +2 -0
  220. package/dist/navbar-aui-012.js +9 -0
  221. package/dist/navbar-aui-013.d.ts +2 -0
  222. package/dist/navbar-aui-013.js +9 -0
  223. package/dist/navbar-aui-014.d.ts +2 -0
  224. package/dist/navbar-aui-014.js +9 -0
  225. package/dist/now-playing.js +1 -1
  226. package/dist/otp-input-aui-041.d.ts +2 -0
  227. package/dist/otp-input-aui-041.js +9 -0
  228. package/dist/otp-input-aui-042.d.ts +2 -0
  229. package/dist/otp-input-aui-042.js +9 -0
  230. package/dist/password-input-aui-039.d.ts +2 -0
  231. package/dist/password-input-aui-039.js +9 -0
  232. package/dist/password-input-aui-040.d.ts +2 -0
  233. package/dist/password-input-aui-040.js +11 -0
  234. package/dist/payment-received.js +1 -1
  235. package/dist/pricing-aui-021.d.ts +2 -0
  236. package/dist/pricing-aui-021.js +9 -0
  237. package/dist/pricing-aui-022.d.ts +2 -0
  238. package/dist/pricing-aui-022.js +9 -0
  239. package/dist/pricing-aui-023.d.ts +2 -0
  240. package/dist/pricing-aui-023.js +9 -0
  241. package/dist/pricing-aui-024.d.ts +2 -0
  242. package/dist/pricing-aui-024.js +9 -0
  243. package/dist/radio-group-aui-055.d.ts +2 -0
  244. package/dist/radio-group-aui-055.js +9 -0
  245. package/dist/radio-group-aui-056.d.ts +2 -0
  246. package/dist/radio-group-aui-056.js +9 -0
  247. package/dist/radio-group-aui-057.d.ts +2 -0
  248. package/dist/radio-group-aui-057.js +9 -0
  249. package/dist/select-aui-043.d.ts +2 -0
  250. package/dist/select-aui-043.js +9 -0
  251. package/dist/select-aui-044.d.ts +2 -0
  252. package/dist/select-aui-044.js +9 -0
  253. package/dist/select-aui-045.d.ts +2 -0
  254. package/dist/select-aui-045.js +9 -0
  255. package/dist/sign-in-aui-015.d.ts +2 -0
  256. package/dist/sign-in-aui-015.js +9 -0
  257. package/dist/sign-in-aui-016.d.ts +2 -0
  258. package/dist/sign-in-aui-016.js +9 -0
  259. package/dist/sign-in-aui-017.d.ts +2 -0
  260. package/dist/sign-in-aui-017.js +9 -0
  261. package/dist/sign-in-aui-018.d.ts +2 -0
  262. package/dist/sign-in-aui-018.js +9 -0
  263. package/dist/sign-in-aui-019.d.ts +2 -0
  264. package/dist/sign-in-aui-019.js +9 -0
  265. package/dist/sign-in-aui-020.d.ts +2 -0
  266. package/dist/sign-in-aui-020.js +9 -0
  267. package/dist/slider-aui-061.d.ts +2 -0
  268. package/dist/slider-aui-061.js +9 -0
  269. package/dist/slider-aui-062.d.ts +2 -0
  270. package/dist/slider-aui-062.js +9 -0
  271. package/dist/slider-aui-063.d.ts +2 -0
  272. package/dist/slider-aui-063.js +9 -0
  273. package/dist/spinner.js +1 -1
  274. package/dist/switch-aui-058.d.ts +2 -0
  275. package/dist/switch-aui-058.js +9 -0
  276. package/dist/switch-aui-059.d.ts +2 -0
  277. package/dist/switch-aui-059.js +9 -0
  278. package/dist/switch-aui-060.d.ts +2 -0
  279. package/dist/switch-aui-060.js +9 -0
  280. package/dist/tag-input-aui-048.d.ts +2 -0
  281. package/dist/tag-input-aui-048.js +9 -0
  282. package/dist/tag-input-aui-049.d.ts +2 -0
  283. package/dist/tag-input-aui-049.js +9 -0
  284. package/dist/textarea-aui-035.d.ts +2 -0
  285. package/dist/textarea-aui-035.js +9 -0
  286. package/dist/textarea-aui-036.d.ts +2 -0
  287. package/dist/textarea-aui-036.js +9 -0
  288. package/dist/textarea-aui-037.d.ts +2 -0
  289. package/dist/textarea-aui-037.js +9 -0
  290. package/dist/textarea-aui-038.d.ts +2 -0
  291. package/dist/textarea-aui-038.js +11 -0
  292. package/dist/types/components/kit/variants/checkbox-aui-052.d.ts +29 -0
  293. package/dist/types/components/kit/variants/checkbox-aui-053.d.ts +24 -0
  294. package/dist/types/components/kit/variants/checkbox-aui-054.d.ts +33 -0
  295. package/dist/types/components/kit/variants/combobox-aui-046.d.ts +23 -0
  296. package/dist/types/components/kit/variants/combobox-aui-047.d.ts +24 -0
  297. package/dist/types/components/kit/variants/date-picker-aui-050.d.ts +26 -0
  298. package/dist/types/components/kit/variants/date-picker-aui-051.d.ts +23 -0
  299. package/dist/types/components/kit/variants/footer-aui-025.d.ts +22 -0
  300. package/dist/types/components/kit/variants/footer-aui-026.d.ts +21 -0
  301. package/dist/types/components/kit/variants/footer-aui-027.d.ts +36 -0
  302. package/dist/types/components/kit/variants/footer-aui-028.d.ts +34 -0
  303. package/dist/types/components/kit/variants/input-aui-029.d.ts +21 -0
  304. package/dist/types/components/kit/variants/input-aui-030.d.ts +29 -0
  305. package/dist/types/components/kit/variants/input-aui-031.d.ts +24 -0
  306. package/dist/types/components/kit/variants/input-aui-032.d.ts +36 -0
  307. package/dist/types/components/kit/variants/input-aui-033.d.ts +23 -0
  308. package/dist/types/components/kit/variants/input-aui-034.d.ts +29 -0
  309. package/dist/types/components/kit/variants/navbar-aui-009.d.ts +62 -0
  310. package/dist/types/components/kit/variants/navbar-aui-010.d.ts +30 -0
  311. package/dist/types/components/kit/variants/navbar-aui-011.d.ts +65 -0
  312. package/dist/types/components/kit/variants/navbar-aui-012.d.ts +50 -0
  313. package/dist/types/components/kit/variants/navbar-aui-013.d.ts +70 -0
  314. package/dist/types/components/kit/variants/navbar-aui-014.d.ts +31 -0
  315. package/dist/types/components/kit/variants/otp-input-aui-041.d.ts +20 -0
  316. package/dist/types/components/kit/variants/otp-input-aui-042.d.ts +23 -0
  317. package/dist/types/components/kit/variants/password-input-aui-039.d.ts +16 -0
  318. package/dist/types/components/kit/variants/password-input-aui-040.d.ts +24 -0
  319. package/dist/types/components/kit/variants/pricing-aui-021.d.ts +30 -0
  320. package/dist/types/components/kit/variants/pricing-aui-022.d.ts +34 -0
  321. package/dist/types/components/kit/variants/pricing-aui-023.d.ts +26 -0
  322. package/dist/types/components/kit/variants/pricing-aui-024.d.ts +29 -0
  323. package/dist/types/components/kit/variants/radio-group-aui-055.d.ts +27 -0
  324. package/dist/types/components/kit/variants/radio-group-aui-056.d.ts +28 -0
  325. package/dist/types/components/kit/variants/radio-group-aui-057.d.ts +26 -0
  326. package/dist/types/components/kit/variants/select-aui-043.d.ts +29 -0
  327. package/dist/types/components/kit/variants/select-aui-044.d.ts +24 -0
  328. package/dist/types/components/kit/variants/select-aui-045.d.ts +29 -0
  329. package/dist/types/components/kit/variants/sign-in-aui-015.d.ts +21 -0
  330. package/dist/types/components/kit/variants/sign-in-aui-016.d.ts +28 -0
  331. package/dist/types/components/kit/variants/sign-in-aui-017.d.ts +21 -0
  332. package/dist/types/components/kit/variants/sign-in-aui-018.d.ts +22 -0
  333. package/dist/types/components/kit/variants/sign-in-aui-019.d.ts +22 -0
  334. package/dist/types/components/kit/variants/sign-in-aui-020.d.ts +27 -0
  335. package/dist/types/components/kit/variants/slider-aui-061.d.ts +20 -0
  336. package/dist/types/components/kit/variants/slider-aui-062.d.ts +24 -0
  337. package/dist/types/components/kit/variants/slider-aui-063.d.ts +17 -0
  338. package/dist/types/components/kit/variants/switch-aui-058.d.ts +24 -0
  339. package/dist/types/components/kit/variants/switch-aui-059.d.ts +20 -0
  340. package/dist/types/components/kit/variants/switch-aui-060.d.ts +15 -0
  341. package/dist/types/components/kit/variants/tag-input-aui-048.d.ts +16 -0
  342. package/dist/types/components/kit/variants/tag-input-aui-049.d.ts +15 -0
  343. package/dist/types/components/kit/variants/textarea-aui-035.d.ts +19 -0
  344. package/dist/types/components/kit/variants/textarea-aui-036.d.ts +23 -0
  345. package/dist/types/components/kit/variants/textarea-aui-037.d.ts +30 -0
  346. package/dist/types/components/kit/variants/textarea-aui-038.d.ts +28 -0
  347. package/dist/types/packages/asta-ui/src/base/checkbox-aui-052.d.ts +2 -0
  348. package/dist/types/packages/asta-ui/src/base/checkbox-aui-053.d.ts +2 -0
  349. package/dist/types/packages/asta-ui/src/base/checkbox-aui-054.d.ts +2 -0
  350. package/dist/types/packages/asta-ui/src/base/combobox-aui-046.d.ts +2 -0
  351. package/dist/types/packages/asta-ui/src/base/combobox-aui-047.d.ts +2 -0
  352. package/dist/types/packages/asta-ui/src/base/date-picker-aui-050.d.ts +2 -0
  353. package/dist/types/packages/asta-ui/src/base/date-picker-aui-051.d.ts +2 -0
  354. package/dist/types/packages/asta-ui/src/base/footer-aui-025.d.ts +2 -0
  355. package/dist/types/packages/asta-ui/src/base/footer-aui-026.d.ts +2 -0
  356. package/dist/types/packages/asta-ui/src/base/footer-aui-027.d.ts +2 -0
  357. package/dist/types/packages/asta-ui/src/base/footer-aui-028.d.ts +2 -0
  358. package/dist/types/packages/asta-ui/src/base/input-aui-029.d.ts +2 -0
  359. package/dist/types/packages/asta-ui/src/base/input-aui-030.d.ts +2 -0
  360. package/dist/types/packages/asta-ui/src/base/input-aui-031.d.ts +2 -0
  361. package/dist/types/packages/asta-ui/src/base/input-aui-032.d.ts +2 -0
  362. package/dist/types/packages/asta-ui/src/base/input-aui-033.d.ts +2 -0
  363. package/dist/types/packages/asta-ui/src/base/input-aui-034.d.ts +2 -0
  364. package/dist/types/packages/asta-ui/src/base/navbar-aui-009.d.ts +2 -0
  365. package/dist/types/packages/asta-ui/src/base/navbar-aui-010.d.ts +2 -0
  366. package/dist/types/packages/asta-ui/src/base/navbar-aui-011.d.ts +2 -0
  367. package/dist/types/packages/asta-ui/src/base/navbar-aui-012.d.ts +2 -0
  368. package/dist/types/packages/asta-ui/src/base/navbar-aui-013.d.ts +2 -0
  369. package/dist/types/packages/asta-ui/src/base/navbar-aui-014.d.ts +2 -0
  370. package/dist/types/packages/asta-ui/src/base/otp-input-aui-041.d.ts +2 -0
  371. package/dist/types/packages/asta-ui/src/base/otp-input-aui-042.d.ts +2 -0
  372. package/dist/types/packages/asta-ui/src/base/password-input-aui-039.d.ts +2 -0
  373. package/dist/types/packages/asta-ui/src/base/password-input-aui-040.d.ts +2 -0
  374. package/dist/types/packages/asta-ui/src/base/pricing-aui-021.d.ts +2 -0
  375. package/dist/types/packages/asta-ui/src/base/pricing-aui-022.d.ts +2 -0
  376. package/dist/types/packages/asta-ui/src/base/pricing-aui-023.d.ts +2 -0
  377. package/dist/types/packages/asta-ui/src/base/pricing-aui-024.d.ts +2 -0
  378. package/dist/types/packages/asta-ui/src/base/radio-group-aui-055.d.ts +2 -0
  379. package/dist/types/packages/asta-ui/src/base/radio-group-aui-056.d.ts +2 -0
  380. package/dist/types/packages/asta-ui/src/base/radio-group-aui-057.d.ts +2 -0
  381. package/dist/types/packages/asta-ui/src/base/select-aui-043.d.ts +2 -0
  382. package/dist/types/packages/asta-ui/src/base/select-aui-044.d.ts +2 -0
  383. package/dist/types/packages/asta-ui/src/base/select-aui-045.d.ts +2 -0
  384. package/dist/types/packages/asta-ui/src/base/sign-in-aui-015.d.ts +2 -0
  385. package/dist/types/packages/asta-ui/src/base/sign-in-aui-016.d.ts +2 -0
  386. package/dist/types/packages/asta-ui/src/base/sign-in-aui-017.d.ts +2 -0
  387. package/dist/types/packages/asta-ui/src/base/sign-in-aui-018.d.ts +2 -0
  388. package/dist/types/packages/asta-ui/src/base/sign-in-aui-019.d.ts +2 -0
  389. package/dist/types/packages/asta-ui/src/base/sign-in-aui-020.d.ts +2 -0
  390. package/dist/types/packages/asta-ui/src/base/slider-aui-061.d.ts +2 -0
  391. package/dist/types/packages/asta-ui/src/base/slider-aui-062.d.ts +2 -0
  392. package/dist/types/packages/asta-ui/src/base/slider-aui-063.d.ts +2 -0
  393. package/dist/types/packages/asta-ui/src/base/switch-aui-058.d.ts +2 -0
  394. package/dist/types/packages/asta-ui/src/base/switch-aui-059.d.ts +2 -0
  395. package/dist/types/packages/asta-ui/src/base/switch-aui-060.d.ts +2 -0
  396. package/dist/types/packages/asta-ui/src/base/tag-input-aui-048.d.ts +2 -0
  397. package/dist/types/packages/asta-ui/src/base/tag-input-aui-049.d.ts +2 -0
  398. package/dist/types/packages/asta-ui/src/base/textarea-aui-035.d.ts +2 -0
  399. package/dist/types/packages/asta-ui/src/base/textarea-aui-036.d.ts +2 -0
  400. package/dist/types/packages/asta-ui/src/base/textarea-aui-037.d.ts +2 -0
  401. package/dist/types/packages/asta-ui/src/base/textarea-aui-038.d.ts +2 -0
  402. package/dist/types/packages/asta-ui/src/base.d.ts +110 -0
  403. package/dist/types/packages/asta-ui/src/checkbox-aui-052.d.ts +2 -0
  404. package/dist/types/packages/asta-ui/src/checkbox-aui-053.d.ts +2 -0
  405. package/dist/types/packages/asta-ui/src/checkbox-aui-054.d.ts +2 -0
  406. package/dist/types/packages/asta-ui/src/combobox-aui-046.d.ts +2 -0
  407. package/dist/types/packages/asta-ui/src/combobox-aui-047.d.ts +2 -0
  408. package/dist/types/packages/asta-ui/src/date-picker-aui-050.d.ts +2 -0
  409. package/dist/types/packages/asta-ui/src/date-picker-aui-051.d.ts +2 -0
  410. package/dist/types/packages/asta-ui/src/footer-aui-025.d.ts +2 -0
  411. package/dist/types/packages/asta-ui/src/footer-aui-026.d.ts +2 -0
  412. package/dist/types/packages/asta-ui/src/footer-aui-027.d.ts +2 -0
  413. package/dist/types/packages/asta-ui/src/footer-aui-028.d.ts +2 -0
  414. package/dist/types/packages/asta-ui/src/index.d.ts +110 -0
  415. package/dist/types/packages/asta-ui/src/input-aui-029.d.ts +2 -0
  416. package/dist/types/packages/asta-ui/src/input-aui-030.d.ts +2 -0
  417. package/dist/types/packages/asta-ui/src/input-aui-031.d.ts +2 -0
  418. package/dist/types/packages/asta-ui/src/input-aui-032.d.ts +2 -0
  419. package/dist/types/packages/asta-ui/src/input-aui-033.d.ts +2 -0
  420. package/dist/types/packages/asta-ui/src/input-aui-034.d.ts +2 -0
  421. package/dist/types/packages/asta-ui/src/navbar-aui-009.d.ts +2 -0
  422. package/dist/types/packages/asta-ui/src/navbar-aui-010.d.ts +2 -0
  423. package/dist/types/packages/asta-ui/src/navbar-aui-011.d.ts +2 -0
  424. package/dist/types/packages/asta-ui/src/navbar-aui-012.d.ts +2 -0
  425. package/dist/types/packages/asta-ui/src/navbar-aui-013.d.ts +2 -0
  426. package/dist/types/packages/asta-ui/src/navbar-aui-014.d.ts +2 -0
  427. package/dist/types/packages/asta-ui/src/otp-input-aui-041.d.ts +2 -0
  428. package/dist/types/packages/asta-ui/src/otp-input-aui-042.d.ts +2 -0
  429. package/dist/types/packages/asta-ui/src/password-input-aui-039.d.ts +2 -0
  430. package/dist/types/packages/asta-ui/src/password-input-aui-040.d.ts +2 -0
  431. package/dist/types/packages/asta-ui/src/pricing-aui-021.d.ts +2 -0
  432. package/dist/types/packages/asta-ui/src/pricing-aui-022.d.ts +2 -0
  433. package/dist/types/packages/asta-ui/src/pricing-aui-023.d.ts +2 -0
  434. package/dist/types/packages/asta-ui/src/pricing-aui-024.d.ts +2 -0
  435. package/dist/types/packages/asta-ui/src/radio-group-aui-055.d.ts +2 -0
  436. package/dist/types/packages/asta-ui/src/radio-group-aui-056.d.ts +2 -0
  437. package/dist/types/packages/asta-ui/src/radio-group-aui-057.d.ts +2 -0
  438. package/dist/types/packages/asta-ui/src/select-aui-043.d.ts +2 -0
  439. package/dist/types/packages/asta-ui/src/select-aui-044.d.ts +2 -0
  440. package/dist/types/packages/asta-ui/src/select-aui-045.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/sign-in-aui-015.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/sign-in-aui-016.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/sign-in-aui-017.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/sign-in-aui-018.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/sign-in-aui-019.d.ts +2 -0
  446. package/dist/types/packages/asta-ui/src/sign-in-aui-020.d.ts +2 -0
  447. package/dist/types/packages/asta-ui/src/slider-aui-061.d.ts +2 -0
  448. package/dist/types/packages/asta-ui/src/slider-aui-062.d.ts +2 -0
  449. package/dist/types/packages/asta-ui/src/slider-aui-063.d.ts +2 -0
  450. package/dist/types/packages/asta-ui/src/switch-aui-058.d.ts +2 -0
  451. package/dist/types/packages/asta-ui/src/switch-aui-059.d.ts +2 -0
  452. package/dist/types/packages/asta-ui/src/switch-aui-060.d.ts +2 -0
  453. package/dist/types/packages/asta-ui/src/tag-input-aui-048.d.ts +2 -0
  454. package/dist/types/packages/asta-ui/src/tag-input-aui-049.d.ts +2 -0
  455. package/dist/types/packages/asta-ui/src/textarea-aui-035.d.ts +2 -0
  456. package/dist/types/packages/asta-ui/src/textarea-aui-036.d.ts +2 -0
  457. package/dist/types/packages/asta-ui/src/textarea-aui-037.d.ts +2 -0
  458. package/dist/types/packages/asta-ui/src/textarea-aui-038.d.ts +2 -0
  459. package/package.json +1 -1
@@ -0,0 +1,362 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/sign-in-aui-020.tsx
4
+ import { useEffect, useId, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var EASE = "cubic-bezier(.16,1,.3,1)";
8
+ var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)]";
9
+ var CARD = "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)]";
10
+ var FOCUS = "focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper";
11
+ var LINE = 16;
12
+ var CSS = `
13
+ @keyframes aui020-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
14
+ @keyframes aui020-in { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
15
+ @keyframes aui020-letter { from { opacity: 0; transform: translateY(6px) scale(.8) } to { opacity: 1; transform: none } }
16
+ @keyframes aui020-pop { from { opacity: 0; transform: scale(.6) } 70% { transform: scale(1.06) } to { opacity: 1; transform: none } }
17
+ @keyframes aui020-draw { from { stroke-dashoffset: 24 } to { stroke-dashoffset: 0 } }
18
+ @media (prefers-reduced-motion: reduce) { .aui020 * { animation: none !important; transition: none !important } }
19
+ `;
20
+ var rise = (i) => ({ animation: `aui020-rise .6s ${EASE} ${100 + i * 55}ms both` });
21
+ var validEmail = (v) => /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(v.trim());
22
+ var wait = (ms) => new Promise((r) => setTimeout(r, ms));
23
+ var Spinner = () => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-r-transparent" });
24
+ var RULES = [
25
+ { label: "8+ characters", test: (p) => p.length >= 8 },
26
+ { label: "Upper and lower case", test: (p) => /[a-z]/.test(p) && /[A-Z]/.test(p) },
27
+ { label: "A number", test: (p) => /\d/.test(p) },
28
+ { label: "A symbol", test: (p) => /[^A-Za-z0-9]/.test(p) }
29
+ ];
30
+ var LEVELS = ["Too weak", "Weak", "Fair", "Good", "Strong"];
31
+ function useShake(active, key) {
32
+ const ref = useRef(null);
33
+ useEffect(() => {
34
+ if (!active || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
35
+ ref.current?.animate(
36
+ [{ transform: "none" }, { transform: "translateX(-6px)" }, { transform: "translateX(5px)" }, { transform: "translateX(-3px)" }, { transform: "translateX(2px)" }, { transform: "none" }],
37
+ { duration: 420, easing: EASE }
38
+ );
39
+ }, [active, key]);
40
+ return ref;
41
+ }
42
+ var ErrorText = ({ id, children }) => /* @__PURE__ */ jsxs("p", { id, role: "alert", className: "flex items-center gap-1.5 text-[12.5px] text-ink", style: { animation: `aui020-in .3s ${EASE} both` }, children: [
43
+ /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: [
44
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6.25" }),
45
+ /* @__PURE__ */ jsx("path", { d: "M8 4.8v3.6M8 11h.01" })
46
+ ] }),
47
+ children
48
+ ] });
49
+ function Field({ label, type, value, onChange, onBlur, error, shake, autoComplete, placeholder, describedBy, start, end, children }) {
50
+ const id = useId();
51
+ const box = useShake(!!error, shake);
52
+ const described = [error ? `${id}-err` : "", describedBy ?? ""].filter(Boolean).join(" ") || void 0;
53
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
54
+ /* @__PURE__ */ jsx("label", { htmlFor: id, className: "text-[13px] font-medium text-ink", children: label }),
55
+ /* @__PURE__ */ jsxs("div", { ref: box, className: "relative", children: [
56
+ start && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-y-0 left-1.5 flex items-center", children: start }),
57
+ /* @__PURE__ */ jsx(
58
+ "input",
59
+ {
60
+ id,
61
+ type,
62
+ value,
63
+ autoComplete,
64
+ placeholder,
65
+ onChange: (e) => onChange(e.target.value),
66
+ onBlur,
67
+ "aria-invalid": !!error || void 0,
68
+ "aria-describedby": described,
69
+ className: cx(
70
+ "h-11 w-full rounded-[9px] bg-paper px-3.5 text-[14.5px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_14%,transparent)]",
71
+ !!start && "pl-11",
72
+ !!end && "pr-11",
73
+ error ? "shadow-[inset_0_0_0_1.5px_var(--ink)]" : RING
74
+ )
75
+ }
76
+ ),
77
+ end && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-1 flex items-center", children: end })
78
+ ] }),
79
+ children,
80
+ error && /* @__PURE__ */ jsx(ErrorText, { id: `${id}-err`, children: error })
81
+ ] });
82
+ }
83
+ function LiveAvatar({ name }) {
84
+ const letters = name.trim().split(/\s+/).filter(Boolean).slice(0, 2).map((p) => p[0].toUpperCase());
85
+ return /* @__PURE__ */ jsx(
86
+ "span",
87
+ {
88
+ className: cx(
89
+ "flex h-8 w-8 items-center justify-center rounded-full text-[11.5px] font-semibold transition-colors duration-300",
90
+ letters.length ? "bg-brand text-paper" : "bg-paper-2 text-mute"
91
+ ),
92
+ "aria-hidden": true,
93
+ children: letters.length ? letters.map((l, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui020-letter .35s ${EASE} both` }, children: l }, `${i}-${l}`)) : /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": true, children: [
94
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "5.5", r: "2.5" }),
95
+ /* @__PURE__ */ jsx("path", { d: "M3 13.5c.8-2.3 2.7-3.5 5-3.5s4.2 1.2 5 3.5" })
96
+ ] })
97
+ }
98
+ );
99
+ }
100
+ function SignUpCard({
101
+ brand = "Astabyte",
102
+ title = "Create your account",
103
+ subtitle = "14 days free. No card needed.",
104
+ minStrength = 3,
105
+ termsHref = "#",
106
+ defaults,
107
+ onSubmit,
108
+ className
109
+ }) {
110
+ const id = useId();
111
+ const [name, setName] = useState(defaults?.name ?? "");
112
+ const [email, setEmail] = useState(defaults?.email ?? "");
113
+ const [password, setPassword] = useState(defaults?.password ?? "");
114
+ const [terms, setTerms] = useState(false);
115
+ const [reveal, setReveal] = useState(false);
116
+ const [touched, setTouched] = useState({ name: false, email: false, password: false, terms: false });
117
+ const [state, setState] = useState("idle");
118
+ const [formError, setFormError] = useState("");
119
+ const [shake, setShake] = useState(0);
120
+ const alive = useRef(true);
121
+ useEffect(() => {
122
+ alive.current = true;
123
+ return () => {
124
+ alive.current = false;
125
+ };
126
+ }, []);
127
+ const passed = RULES.map((r) => r.test(password));
128
+ const score = passed.filter(Boolean).length;
129
+ const level = password ? score : 0;
130
+ const errors = {
131
+ name: !name.trim() ? "Enter your name." : "",
132
+ email: !email.trim() ? "Enter your email." : !validEmail(email) ? "That doesn't look like an email address." : "",
133
+ password: !password ? "Choose a password." : score < minStrength || !passed[0] ? "Make it a little stronger." : "",
134
+ terms: terms ? "" : "Accept the terms to continue."
135
+ };
136
+ const show = (k) => touched[k] ? errors[k] : "";
137
+ const termsBox = useShake(!!show("terms"), shake);
138
+ const submit = async (e) => {
139
+ e.preventDefault();
140
+ if (state === "loading") return;
141
+ setTouched({ name: true, email: true, password: true, terms: true });
142
+ setFormError("");
143
+ if (errors.name || errors.email || errors.password || errors.terms) {
144
+ setShake((n) => n + 1);
145
+ return;
146
+ }
147
+ setState("loading");
148
+ try {
149
+ await (onSubmit ? onSubmit({ name: name.trim(), email: email.trim(), password }) : wait(1300));
150
+ if (alive.current) setState("done");
151
+ } catch (err) {
152
+ if (!alive.current) return;
153
+ setState("idle");
154
+ setFormError(err instanceof Error ? err.message : "Something went wrong. Try again.");
155
+ }
156
+ };
157
+ const reset = () => {
158
+ setName("");
159
+ setEmail("");
160
+ setPassword("");
161
+ setTerms(false);
162
+ setTouched({ name: false, email: false, password: false, terms: false });
163
+ setState("idle");
164
+ };
165
+ return /* @__PURE__ */ jsxs("div", { className: cx("aui020 relative w-full max-w-[420px] overflow-hidden rounded-[14px] bg-paper", CARD, className), children: [
166
+ /* @__PURE__ */ jsx("style", { href: "asta-sign-in-aui-020", precedence: "asta", children: CSS }),
167
+ state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[520px] flex-col items-center justify-center p-7 text-center", role: "status", children: [
168
+ /* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-ink text-paper", style: { animation: `aui020-pop .55s ${EASE} both` }, 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: `aui020-draw .5s .2s ${EASE} both` } }) }) }),
169
+ /* @__PURE__ */ jsxs("h3", { className: "mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink", style: rise(1), children: [
170
+ "Welcome to ",
171
+ brand,
172
+ ", ",
173
+ name.trim().split(" ")[0]
174
+ ] }),
175
+ /* @__PURE__ */ jsxs("p", { className: "mt-1.5 max-w-[30ch] text-[14px] leading-snug text-mute", style: rise(2), children: [
176
+ "Confirm your email to finish. We sent a link to ",
177
+ /* @__PURE__ */ jsx("span", { className: "break-all text-ink", children: email.trim() }),
178
+ "."
179
+ ] }),
180
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: reset, className: cx("mt-6 h-9 rounded-[8px] px-3.5 text-[13.5px] font-medium text-ink outline-none transition-colors hover:bg-paper-2", RING, FOCUS), style: rise(3), children: "Start over" })
181
+ ] }) : /* @__PURE__ */ jsxs("form", { noValidate: true, onSubmit: submit, className: "flex flex-col p-6 sm:p-7", children: [
182
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
183
+ /* @__PURE__ */ jsxs("div", { children: [
184
+ /* @__PURE__ */ jsx("h3", { className: "text-[20px] font-medium tracking-[-0.02em] text-ink", style: rise(0), children: title }),
185
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[14px] leading-snug text-mute", style: rise(1), children: subtitle })
186
+ ] }),
187
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-[10.5px] uppercase tracking-[0.08em] text-mute", style: rise(0), children: brand })
188
+ ] }),
189
+ /* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-col gap-4", children: [
190
+ /* @__PURE__ */ jsx("div", { style: rise(2), children: /* @__PURE__ */ jsx(
191
+ Field,
192
+ {
193
+ label: "Full name",
194
+ type: "text",
195
+ autoComplete: "name",
196
+ placeholder: "Maya Lindqvist",
197
+ value: name,
198
+ onChange: setName,
199
+ onBlur: () => name && setTouched((t) => ({ ...t, name: true })),
200
+ error: show("name"),
201
+ shake,
202
+ start: /* @__PURE__ */ jsx(LiveAvatar, { name })
203
+ }
204
+ ) }),
205
+ /* @__PURE__ */ jsx("div", { style: rise(3), children: /* @__PURE__ */ jsx(
206
+ Field,
207
+ {
208
+ label: "Work email",
209
+ type: "email",
210
+ autoComplete: "email",
211
+ placeholder: "you@company.com",
212
+ value: email,
213
+ onChange: setEmail,
214
+ onBlur: () => email && setTouched((t) => ({ ...t, email: true })),
215
+ error: show("email"),
216
+ shake
217
+ }
218
+ ) }),
219
+ /* @__PURE__ */ jsx("div", { style: rise(4), children: /* @__PURE__ */ jsxs(
220
+ Field,
221
+ {
222
+ label: "Password",
223
+ type: reveal ? "text" : "password",
224
+ autoComplete: "new-password",
225
+ placeholder: "Make it hard to guess",
226
+ value: password,
227
+ onChange: setPassword,
228
+ onBlur: () => password && setTouched((t) => ({ ...t, password: true })),
229
+ error: show("password"),
230
+ shake,
231
+ describedBy: `${id}-rules`,
232
+ end: /* @__PURE__ */ jsx(
233
+ "button",
234
+ {
235
+ type: "button",
236
+ onClick: () => setReveal((v) => !v),
237
+ "aria-label": reveal ? "Hide password" : "Show password",
238
+ "aria-pressed": reveal,
239
+ className: "flex h-9 w-9 items-center justify-center rounded-[8px] text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
240
+ 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: [
241
+ /* @__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" }),
242
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "2" }),
243
+ !reveal && /* @__PURE__ */ jsx("path", { d: "M2.5 13.5l11-11" })
244
+ ] })
245
+ }
246
+ ),
247
+ children: [
248
+ /* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-center gap-3", children: [
249
+ /* @__PURE__ */ jsx("div", { className: "grid flex-1 grid-cols-4 gap-1.5", "aria-hidden": true, children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx("span", { className: "relative h-[5px] overflow-hidden rounded-full bg-paper-2", children: /* @__PURE__ */ jsx(
250
+ "span",
251
+ {
252
+ className: cx("absolute inset-0 origin-left rounded-full transition-[transform,opacity,background-color] duration-500", score === 4 ? "bg-brand" : "bg-ink"),
253
+ style: { transform: `scaleX(${i < level ? 1 : 0})`, opacity: i < level ? 1 : 0, transitionTimingFunction: EASE, transitionDelay: `${(i < level ? i : 3 - i) * 50}ms` }
254
+ }
255
+ ) }, i)) }),
256
+ /* @__PURE__ */ jsxs("span", { className: "relative w-[64px] overflow-hidden text-right text-[12px] font-medium", style: { height: LINE }, "aria-live": "polite", children: [
257
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: password ? `Password strength: ${LEVELS[score]}` : "" }),
258
+ /* @__PURE__ */ jsx(
259
+ "span",
260
+ {
261
+ "aria-hidden": true,
262
+ className: cx("absolute inset-x-0 top-0 flex flex-col transition-[transform,opacity] duration-500", password ? "opacity-100" : "opacity-0", score === 4 ? "text-brand" : "text-ink"),
263
+ style: { transform: `translateY(${-level * LINE}px)`, transitionTimingFunction: EASE },
264
+ children: LEVELS.map((l) => /* @__PURE__ */ jsx("span", { className: "block", style: { height: LINE, lineHeight: `${LINE}px` }, children: l }, l))
265
+ }
266
+ )
267
+ ] })
268
+ ] }),
269
+ /* @__PURE__ */ jsx("ul", { id: `${id}-rules`, className: "mt-2 grid grid-cols-2 gap-x-3 gap-y-1.5", "aria-label": "Password rules", children: RULES.map((r, i) => /* @__PURE__ */ jsxs("li", { className: cx("flex items-center gap-2 text-[12.5px] transition-colors duration-300", passed[i] ? "text-ink" : "text-mute"), children: [
270
+ /* @__PURE__ */ jsx("span", { className: "relative flex h-4 w-4 shrink-0 items-center justify-center rounded-full shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_20%,transparent)]", "aria-hidden": true, children: /* @__PURE__ */ jsx(
271
+ "span",
272
+ {
273
+ className: "absolute inset-0 flex items-center justify-center rounded-full bg-ink text-paper transition-[transform,opacity] duration-300",
274
+ style: { transform: `scale(${passed[i] ? 1 : 0.3})`, opacity: passed[i] ? 1 : 0, transitionTimingFunction: EASE },
275
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 12 12", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m3 6.2 2 2L9 4" }) })
276
+ }
277
+ ) }),
278
+ r.label,
279
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: passed[i] ? "(done)" : "(missing)" })
280
+ ] }, r.label)) })
281
+ ]
282
+ }
283
+ ) })
284
+ ] }),
285
+ /* @__PURE__ */ jsxs("div", { ref: termsBox, className: "mt-5", style: rise(5), children: [
286
+ /* @__PURE__ */ jsxs("label", { className: "group flex cursor-pointer items-start gap-2.5 text-[13px] leading-snug text-mute", children: [
287
+ /* @__PURE__ */ jsxs("span", { className: "relative mt-px flex h-[18px] w-[18px] shrink-0", children: [
288
+ /* @__PURE__ */ jsx(
289
+ "input",
290
+ {
291
+ type: "checkbox",
292
+ checked: terms,
293
+ onChange: (e) => setTerms(e.target.checked),
294
+ "aria-invalid": !!show("terms") || void 0,
295
+ "aria-describedby": show("terms") ? `${id}-terms-err` : void 0,
296
+ className: cx(
297
+ "peer h-[18px] w-[18px] cursor-pointer appearance-none rounded-[5px] bg-paper outline-none transition-[background-color,box-shadow,transform] duration-200 checked:bg-ink active:scale-90 focus-visible:ring-2 focus-visible:ring-brand/50",
298
+ show("terms") ? "shadow-[inset_0_0_0_1.5px_var(--ink)]" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_28%,transparent)] group-hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_50%,transparent)]"
299
+ )
300
+ }
301
+ ),
302
+ /* @__PURE__ */ jsx(
303
+ "svg",
304
+ {
305
+ viewBox: "0 0 12 12",
306
+ className: "pointer-events-none absolute inset-0 m-auto h-3 w-3 scale-50 text-paper opacity-0 transition-[transform,opacity] duration-300 peer-checked:scale-100 peer-checked:opacity-100",
307
+ style: { transitionTimingFunction: EASE },
308
+ fill: "none",
309
+ stroke: "currentColor",
310
+ strokeWidth: "2",
311
+ strokeLinecap: "round",
312
+ strokeLinejoin: "round",
313
+ "aria-hidden": true,
314
+ children: /* @__PURE__ */ jsx("path", { d: "m3 6.2 2 2L9 4" })
315
+ }
316
+ )
317
+ ] }),
318
+ /* @__PURE__ */ jsxs("span", { children: [
319
+ "I agree to the",
320
+ " ",
321
+ /* @__PURE__ */ jsx("a", { href: termsHref, onClick: (e) => termsHref === "#" && e.preventDefault(), className: "rounded font-medium text-ink outline-none hover:underline focus-visible:ring-2 focus-visible:ring-brand/50", children: "Terms" }),
322
+ " ",
323
+ "and",
324
+ " ",
325
+ /* @__PURE__ */ jsx("a", { href: termsHref, onClick: (e) => termsHref === "#" && e.preventDefault(), className: "rounded font-medium text-ink outline-none hover:underline focus-visible:ring-2 focus-visible:ring-brand/50", children: "Privacy Policy" }),
326
+ "."
327
+ ] })
328
+ ] }),
329
+ show("terms") && /* @__PURE__ */ jsx("div", { className: "mt-1.5 pl-[28px]", children: /* @__PURE__ */ jsx(ErrorText, { id: `${id}-terms-err`, children: show("terms") }) })
330
+ ] }),
331
+ formError && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(ErrorText, { id: `${id}-form-err`, children: formError }) }),
332
+ /* @__PURE__ */ jsx("div", { style: rise(6), children: /* @__PURE__ */ jsxs(
333
+ "button",
334
+ {
335
+ type: "submit",
336
+ disabled: state === "loading",
337
+ "aria-busy": state === "loading" || void 0,
338
+ className: cx(
339
+ "group mt-5 inline-flex h-11 w-full items-center justify-center gap-2 rounded-[9px] bg-ink px-4 text-[14px] font-medium text-paper outline-none transition-transform duration-200 active:scale-[.985] disabled:cursor-progress",
340
+ FOCUS
341
+ ),
342
+ children: [
343
+ state === "loading" && /* @__PURE__ */ jsx(Spinner, {}),
344
+ state === "loading" ? "Creating your account" : "Create account",
345
+ state !== "loading" && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3 8h10M9 4l4 4-4 4" }) })
346
+ ]
347
+ }
348
+ ) }),
349
+ /* @__PURE__ */ jsxs("p", { className: "mt-4 text-center text-[13px] text-mute", style: rise(7), children: [
350
+ "Already have an account?",
351
+ " ",
352
+ /* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "rounded font-medium text-brand outline-none hover:underline focus-visible:ring-2 focus-visible:ring-brand/50", children: "Sign in" })
353
+ ] })
354
+ ] })
355
+ ] });
356
+ }
357
+ var sign_in_aui_020_default = SignUpCard;
358
+
359
+ export {
360
+ SignUpCard,
361
+ sign_in_aui_020_default
362
+ };
@@ -4,7 +4,9 @@
4
4
  import { Accordion as A } from "radix-ui";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var cx = (...c) => c.filter(Boolean).join(" ");
7
- var KEYFRAMES = `@keyframes kit-acc-down { from { height: 0; opacity: 0 } to { height: var(--radix-accordion-content-height); opacity: 1 } }
7
+ var KEYFRAMES = `/* perf-ok */
8
+ @keyframes kit-acc-down { from { height: 0; opacity: 0 } to { height: var(--radix-accordion-content-height); opacity: 1 } }
9
+ /* perf-ok */
8
10
  @keyframes kit-acc-up { from { height: var(--radix-accordion-content-height); opacity: 1 } to { height: 0; opacity: 0 } }`;
9
11
  function Accordion({ items, type = "single", defaultOpen = [], className }) {
10
12
  const body = items.map((it) => /* @__PURE__ */ jsxs(
@@ -0,0 +1,171 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/slider-aui-062.tsx
4
+ import { useId, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var EASE = "cubic-bezier(.16,1,.3,1)";
8
+ var SPRING = "cubic-bezier(.34,1.56,.64,1)";
9
+ var CSS = `
10
+ @keyframes aui062-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
11
+ @media (prefers-reduced-motion: reduce) { .aui062 * { animation: none !important; transition: none !important } }
12
+ `;
13
+ var rise = (i) => ({ animation: `aui062-rise .6s ${EASE} ${80 + i * 55}ms both` });
14
+ var HALF = 12;
15
+ var STEPS = [
16
+ { label: "50 GB", price: 4, note: "30 days of version history" },
17
+ { label: "100 GB", price: 6, note: "30 days of version history" },
18
+ { label: "250 GB", price: 10, note: "90 days of version history" },
19
+ { label: "500 GB", price: 16, note: "90 days of version history" },
20
+ { label: "1 TB", price: 24, note: "One year of version history" },
21
+ { label: "2 TB", price: 40, note: "One year of history and legal hold" }
22
+ ];
23
+ function Roll({ value }) {
24
+ const chars = String(value).split("");
25
+ return /* @__PURE__ */ jsx("span", { className: "inline-flex tabular-nums", "aria-hidden": true, children: chars.map((ch, i) => /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.6em] overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${-Number(ch) * 10}%)`, transitionTimingFunction: EASE, transitionDelay: `${(chars.length - 1 - i) * 40}ms` }, children: Array.from({ length: 10 }, (_, n) => /* @__PURE__ */ jsx("span", { className: "block h-[1em] text-center leading-[1em]", children: n }, n)) }) }, chars.length - i)) });
26
+ }
27
+ function StepSlider({ steps = STEPS, value, defaultValue = 3, onValueChange, label = "Storage", currency = "$", disabled, name, className }) {
28
+ const uid = useId();
29
+ const last = steps.length - 1;
30
+ const [inner, setInner] = useState(defaultValue);
31
+ const index = Math.min(last, Math.max(0, value ?? inner));
32
+ const [pos, setPos] = useState(null);
33
+ const track = useRef(null);
34
+ const thumb = useRef(null);
35
+ const box = useRef(null);
36
+ const p = pos ?? index;
37
+ const near = Math.round(p);
38
+ const k = last ? p / last : 0;
39
+ const step = steps[near];
40
+ const set = (i) => {
41
+ const n = Math.min(last, Math.max(0, i));
42
+ if (n === index) return;
43
+ if (value === void 0) setInner(n);
44
+ onValueChange?.(n);
45
+ };
46
+ const fromX = (x) => {
47
+ const b = box.current;
48
+ if (!b) return index;
49
+ return Math.min(1, Math.max(0, (x - b.left) / b.width)) * last;
50
+ };
51
+ const down = (e) => {
52
+ if (disabled || !track.current) return;
53
+ const r = track.current.getBoundingClientRect();
54
+ box.current = { left: r.left + HALF, width: r.width - HALF * 2 };
55
+ e.currentTarget.setPointerCapture(e.pointerId);
56
+ const f = fromX(e.clientX);
57
+ setPos(f);
58
+ set(Math.round(f));
59
+ thumb.current?.focus({ preventScroll: true });
60
+ };
61
+ const move = (e) => {
62
+ if (pos === null) return;
63
+ const f = fromX(e.clientX);
64
+ setPos(f);
65
+ set(Math.round(f));
66
+ };
67
+ const up = () => {
68
+ if (pos === null) return;
69
+ set(Math.round(pos));
70
+ setPos(null);
71
+ };
72
+ const key = (e) => {
73
+ const map = { ArrowRight: index + 1, ArrowUp: index + 1, ArrowLeft: index - 1, ArrowDown: index - 1, Home: 0, End: last, PageUp: index + 2, PageDown: index - 2 };
74
+ if (!(e.key in map)) return;
75
+ e.preventDefault();
76
+ set(map[e.key]);
77
+ };
78
+ const motion = pos !== null ? "none" : `transform 520ms ${SPRING}`;
79
+ return /* @__PURE__ */ jsxs(
80
+ "div",
81
+ {
82
+ className: cx(
83
+ "aui062 w-full max-w-[460px] rounded-[14px] bg-paper p-5 sm:p-6",
84
+ "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)]",
85
+ disabled && "opacity-60",
86
+ className
87
+ ),
88
+ children: [
89
+ /* @__PURE__ */ jsx("style", { href: "asta-aui062", precedence: "asta", children: CSS }),
90
+ /* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between gap-4", style: rise(0), children: [
91
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
92
+ /* @__PURE__ */ jsxs("p", { id: `${uid}-l`, className: "font-mono text-[11px] uppercase tracking-[0.08em] text-mute", children: [
93
+ "Astabyte Drive \xB7 ",
94
+ label
95
+ ] }),
96
+ /* @__PURE__ */ jsx("span", { className: "relative mt-2 block h-[40px] overflow-hidden text-[36px] font-medium tracking-[-0.045em] text-ink", "aria-live": "polite", children: /* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${-near * 40}px)`, transitionTimingFunction: EASE }, children: steps.map((s, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": i !== near, className: "block h-[40px] whitespace-nowrap leading-[40px]", children: s.label }, s.label)) }) })
97
+ ] }),
98
+ /* @__PURE__ */ jsxs("p", { className: "shrink-0 pb-1 text-right", children: [
99
+ /* @__PURE__ */ jsxs("span", { className: "flex items-start justify-end text-[22px] font-medium leading-none tracking-[-0.03em] text-ink", children: [
100
+ /* @__PURE__ */ jsx("span", { className: "mr-0.5 mt-[2px] text-[12px] tracking-normal text-mute", children: currency }),
101
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: step.price }),
102
+ /* @__PURE__ */ jsx(Roll, { value: step.price })
103
+ ] }),
104
+ /* @__PURE__ */ jsx("span", { className: "mt-1 block text-[11.5px] text-mute", children: "per month" })
105
+ ] })
106
+ ] }),
107
+ /* @__PURE__ */ jsx("p", { className: "mt-1 h-5 text-[13px] text-mute", style: rise(1), children: /* @__PURE__ */ jsx("span", { className: "block", style: { animation: `aui062-rise .4s ${EASE} both` }, children: step.note }, near) }),
108
+ /* @__PURE__ */ jsxs("div", { className: "relative mt-6 select-none", style: rise(2), children: [
109
+ /* @__PURE__ */ jsxs("div", { ref: track, onPointerDown: down, onPointerMove: move, onPointerUp: up, onPointerCancel: up, className: cx("relative flex h-7 touch-none items-center", disabled ? "pointer-events-none" : "cursor-pointer"), children: [
110
+ /* @__PURE__ */ jsx("div", { className: "relative h-2 w-full overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_9%,transparent)]", children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0", style: { left: HALF, right: HALF, transform: `translateX(${k * 100}%)`, transition: motion }, children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-full w-[4000px] bg-brand" }) }) }),
111
+ /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0", style: { left: HALF, right: HALF }, children: steps.map((s, i) => /* @__PURE__ */ jsxs("span", { className: "absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full", style: { left: `${i / last * 100}%` }, children: [
112
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]" }),
113
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-white transition-opacity duration-200", style: { opacity: i <= p ? 0.9 : 0 } })
114
+ ] }, s.label)) }),
115
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-y-0", style: { left: HALF, right: HALF, transform: `translateX(${k * 100}%)`, transition: motion }, children: /* @__PURE__ */ jsxs(
116
+ "div",
117
+ {
118
+ ref: thumb,
119
+ role: "slider",
120
+ tabIndex: disabled ? -1 : 0,
121
+ "aria-labelledby": `${uid}-l`,
122
+ "aria-valuemin": 0,
123
+ "aria-valuemax": last,
124
+ "aria-valuenow": index,
125
+ "aria-valuetext": `${steps[index].label}, ${currency}${steps[index].price} per month`,
126
+ "aria-disabled": disabled || void 0,
127
+ onKeyDown: key,
128
+ className: "group/th pointer-events-auto absolute left-0 top-1/2 h-6 w-6 -translate-x-1/2 -translate-y-1/2 rounded-full outline-none",
129
+ children: [
130
+ /* @__PURE__ */ jsx(
131
+ "span",
132
+ {
133
+ className: "absolute inset-0 rounded-[8px] bg-white shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_1px_3px_rgb(0_0_0/0.2),0_6px_14px_-4px_rgb(0_0_0/0.25)] transition-transform duration-300 group-focus-visible/th:shadow-[0_0_0_4px_color-mix(in_srgb,var(--brand)_30%,transparent),0_1px_3px_rgb(0_0_0/0.2)]",
134
+ style: { transform: pos !== null ? "scale(1.1) rotate(45deg)" : "rotate(45deg)", transitionTimingFunction: SPRING }
135
+ }
136
+ ),
137
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 grid place-items-center", children: /* @__PURE__ */ jsxs("span", { className: "flex gap-[3px]", children: [
138
+ /* @__PURE__ */ jsx("span", { className: "h-2 w-px bg-[color-mix(in_srgb,var(--ink)_35%,transparent)]" }),
139
+ /* @__PURE__ */ jsx("span", { className: "h-2 w-px bg-[color-mix(in_srgb,var(--ink)_35%,transparent)]" })
140
+ ] }) })
141
+ ]
142
+ }
143
+ ) })
144
+ ] }),
145
+ name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: steps[index].label }),
146
+ /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "relative mt-2 h-4", style: { marginLeft: HALF, marginRight: HALF }, children: steps.map((s, i) => {
147
+ const on = i === near;
148
+ return /* @__PURE__ */ jsx(
149
+ "button",
150
+ {
151
+ type: "button",
152
+ tabIndex: -1,
153
+ onClick: () => set(i),
154
+ className: cx("absolute top-0 whitespace-nowrap text-[11px] tabular-nums transition-[transform,opacity,color] duration-300", on ? "font-medium text-ink" : "text-mute hover:text-ink"),
155
+ style: { left: `${i / last * 100}%`, transform: `translateX(-50%) translateY(${on ? -2 : 0}px) scale(${on ? 1.08 : 1})`, transitionTimingFunction: EASE },
156
+ children: s.label
157
+ },
158
+ s.label
159
+ );
160
+ }) })
161
+ ] })
162
+ ]
163
+ }
164
+ );
165
+ }
166
+ var slider_aui_062_default = StepSlider;
167
+
168
+ export {
169
+ StepSlider,
170
+ slider_aui_062_default
171
+ };