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,223 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/footer-aui-027.tsx
4
+ import { useEffect, useId, useRef, useState } from "react";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
8
+ var ring = "outline-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper";
9
+ var step = (i) => ({ "--i": i });
10
+ var DEFAULT_COLUMNS = [
11
+ {
12
+ heading: "Product",
13
+ links: [
14
+ { label: "Overview", href: "#" },
15
+ { label: "Integrations", href: "#" },
16
+ { label: "Pricing", href: "#" },
17
+ { label: "Changelog", href: "#" }
18
+ ]
19
+ },
20
+ {
21
+ heading: "Resources",
22
+ links: [
23
+ { label: "Journal", href: "#" },
24
+ { label: "Guides", href: "#" },
25
+ { label: "Customers", href: "#" },
26
+ { label: "Support", href: "#" }
27
+ ]
28
+ },
29
+ {
30
+ heading: "Social",
31
+ links: [
32
+ { label: "X", href: "#" },
33
+ { label: "LinkedIn", href: "#" },
34
+ { label: "GitHub", href: "#" }
35
+ ]
36
+ }
37
+ ];
38
+ var DEFAULT_LANGUAGES = [
39
+ { value: "en", label: "English" },
40
+ { value: "nl", label: "Nederlands" },
41
+ { value: "fr", label: "Fran\xE7ais" },
42
+ { value: "de", label: "Deutsch" }
43
+ ];
44
+ var CSS = `
45
+ @keyframes aui-f27-rise { from { opacity: 0; transform: translateY(12px) } }
46
+ .aui-f27-in { animation: aui-f27-rise .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 55ms) }
47
+ @media (prefers-reduced-motion: reduce) { .aui-f27-in { animation: none } }
48
+ `;
49
+ function Mark() {
50
+ return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-[16px] font-semibold tracking-[-0.03em] text-ink", children: [
51
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-[22px] w-[22px] text-brand", "aria-hidden": true, fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M4 20V4h4v6.5L14.5 4H20l-7 7.2L20 20h-5.4L8 13v7H4Z" }) }),
52
+ "Astabyte"
53
+ ] });
54
+ }
55
+ function CtaFooter({
56
+ title = "Ready to ship?",
57
+ description = "Astabyte turns scattered release notes into one calm timeline. Start free, bring the team when you are ready.",
58
+ primary = { label: "Get started today", href: "#" },
59
+ secondary,
60
+ brand = /* @__PURE__ */ jsx(Mark, {}),
61
+ columns = DEFAULT_COLUMNS,
62
+ languages = DEFAULT_LANGUAGES,
63
+ onLanguageChange,
64
+ image = "/lab/art/wheat.webp",
65
+ imageAlt = "Painted wheat field under a swirling sky, with dark cypress trees",
66
+ legal,
67
+ className
68
+ }) {
69
+ const art = useRef(null);
70
+ const pan = useRef(null);
71
+ const [seen, setSeen] = useState(false);
72
+ const langId = useId();
73
+ const year = (/* @__PURE__ */ new Date()).getFullYear();
74
+ useEffect(() => {
75
+ const el = art.current;
76
+ if (!el) return;
77
+ const io = new IntersectionObserver(
78
+ ([e]) => {
79
+ if (e.isIntersecting) {
80
+ setSeen(true);
81
+ io.disconnect();
82
+ }
83
+ },
84
+ { threshold: 0.15 }
85
+ );
86
+ io.observe(el);
87
+ return () => io.disconnect();
88
+ }, []);
89
+ const parallax = (e) => {
90
+ const el = pan.current;
91
+ if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
92
+ if (!e) {
93
+ el.style.transform = "";
94
+ return;
95
+ }
96
+ const r = e.currentTarget.getBoundingClientRect();
97
+ const x = (e.clientX - r.left) / r.width - 0.5;
98
+ const y = (e.clientY - r.top) / r.height - 0.5;
99
+ el.style.transform = `scale(1.04) translate(${-x * 14}px, ${-y * 6}px)`;
100
+ };
101
+ return /* @__PURE__ */ jsxs(
102
+ "footer",
103
+ {
104
+ onPointerMove: parallax,
105
+ onPointerLeave: () => parallax(null),
106
+ className: cx("@container relative isolate w-full overflow-hidden bg-paper", className),
107
+ children: [
108
+ /* @__PURE__ */ jsx(
109
+ "div",
110
+ {
111
+ "aria-hidden": true,
112
+ className: "pointer-events-none absolute inset-x-0 top-0 -z-10 h-56 bg-[radial-gradient(60%_100%_at_62%_0%,color-mix(in_srgb,var(--brand)_16%,transparent),transparent_70%)]"
113
+ }
114
+ ),
115
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-10 px-6 pt-12 @min-[720px]:grid-cols-[minmax(0,0.85fr)_minmax(0,1.6fr)] @min-[720px]:gap-10 @min-[720px]:px-10 @min-[720px]:pt-14", children: [
116
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start", children: [
117
+ /* @__PURE__ */ jsx("div", { className: "aui-f27-in", style: step(0), children: brand }),
118
+ /* @__PURE__ */ jsx("h2", { className: "aui-f27-in mt-6 font-serif text-[40px] font-normal leading-[1.02] tracking-[-0.02em] text-ink @min-[720px]:text-[46px]", style: step(1), children: title }),
119
+ description && /* @__PURE__ */ jsx("p", { className: "aui-f27-in mt-3 max-w-[34ch] text-[14px] leading-relaxed text-mute", style: step(2), children: description }),
120
+ /* @__PURE__ */ jsxs("div", { className: "aui-f27-in mt-6 flex flex-wrap gap-2", style: step(3), children: [
121
+ /* @__PURE__ */ jsxs(
122
+ "a",
123
+ {
124
+ href: primary.href,
125
+ className: cx(
126
+ "group/cta inline-flex h-10 items-center gap-2 rounded-[8px] bg-brand px-4 text-[13.5px] font-medium text-white shadow-[0_1px_2px_rgb(0_0_0/0.1),0_10px_24px_-10px_color-mix(in_srgb,var(--brand)_80%,transparent)] transition-transform duration-300 hover:-translate-y-px active:scale-[.97] motion-reduce:transition-none",
127
+ EASE,
128
+ ring
129
+ ),
130
+ children: [
131
+ primary.label,
132
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: cx("h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5 motion-reduce:transition-none", EASE), fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M3 8h10M9 4l4 4-4 4" }) })
133
+ ]
134
+ }
135
+ ),
136
+ secondary && /* @__PURE__ */ jsx(
137
+ "a",
138
+ {
139
+ href: secondary.href,
140
+ className: cx("inline-flex h-10 items-center rounded-[8px] px-4 text-[13.5px] font-medium text-ink transition-colors duration-300 hover:bg-paper-2", ring),
141
+ children: secondary.label
142
+ }
143
+ )
144
+ ] })
145
+ ] }),
146
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-5 gap-y-8 @min-[520px]:grid-cols-[repeat(3,minmax(0,1fr))_minmax(132px,auto)]", children: [
147
+ /* @__PURE__ */ jsx("nav", { "aria-label": "Footer", className: "contents", children: columns.map((c, ci) => /* @__PURE__ */ jsxs("div", { className: "aui-f27-in", style: step(2 + ci), children: [
148
+ /* @__PURE__ */ jsx("p", { className: "text-[12.5px] font-medium text-ink", children: c.heading }),
149
+ /* @__PURE__ */ jsx("ul", { className: "mt-3.5 flex flex-col gap-2.5", children: c.links.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: l.href, className: cx("group/l inline-flex items-center gap-1 rounded-[4px] text-[13px] text-mute transition-colors duration-300 hover:text-ink", ring), children: [
150
+ l.label,
151
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("-translate-x-1 text-[10px] opacity-0 transition-[transform,opacity] duration-300 group-hover/l:translate-x-0 group-hover/l:opacity-70", EASE), children: "\u2197" })
152
+ ] }) }, l.label)) })
153
+ ] }, c.heading)) }),
154
+ /* @__PURE__ */ jsxs("div", { className: "aui-f27-in", style: step(2 + columns.length), children: [
155
+ /* @__PURE__ */ jsx("label", { htmlFor: langId, className: "text-[12.5px] font-medium text-ink", children: "Language" }),
156
+ /* @__PURE__ */ jsxs("div", { className: "relative mt-3", children: [
157
+ /* @__PURE__ */ jsx(
158
+ "select",
159
+ {
160
+ id: langId,
161
+ defaultValue: languages[0]?.value,
162
+ onChange: (e) => onLanguageChange?.(e.target.value),
163
+ className: cx(
164
+ "h-9 w-full cursor-pointer appearance-none rounded-[8px] bg-paper-2 pl-3 pr-8 text-[13px] text-ink transition-shadow duration-300 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
165
+ ring
166
+ ),
167
+ children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
168
+ }
169
+ ),
170
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) })
171
+ ] })
172
+ ] })
173
+ ] })
174
+ ] }),
175
+ /* @__PURE__ */ jsx("div", { className: "aui-f27-in mt-12 flex flex-wrap justify-between gap-x-6 gap-y-2 px-6 text-[12px] text-mute @min-[720px]:px-10", style: step(7), children: legal ?? /* @__PURE__ */ jsxs(Fragment, { children: [
176
+ /* @__PURE__ */ jsxs("span", { children: [
177
+ "\xA9 ",
178
+ year,
179
+ " Astabyte All rights reserved."
180
+ ] }),
181
+ /* @__PURE__ */ jsxs("span", { className: "flex gap-5", children: [
182
+ /* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "Terms" }),
183
+ /* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "Privacy" }),
184
+ /* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "Cookies" })
185
+ ] })
186
+ ] }) }),
187
+ /* @__PURE__ */ jsx(
188
+ "div",
189
+ {
190
+ ref: art,
191
+ className: cx(
192
+ "relative -mt-6 h-[220px] overflow-hidden transition-[transform,opacity] duration-[1400ms] @min-[720px]:h-[300px] motion-reduce:transition-none",
193
+ EASE,
194
+ seen ? "translate-y-0 scale-100 opacity-100" : "translate-y-6 scale-[1.06] opacity-0"
195
+ ),
196
+ style: {
197
+ maskImage: "linear-gradient(to bottom, transparent, #000 38%)",
198
+ WebkitMaskImage: "linear-gradient(to bottom, transparent, #000 38%)"
199
+ },
200
+ children: /* @__PURE__ */ jsx(
201
+ "img",
202
+ {
203
+ ref: pan,
204
+ src: image,
205
+ alt: imageAlt,
206
+ loading: "lazy",
207
+ decoding: "async",
208
+ className: cx("h-full w-full scale-[1.04] object-cover object-[50%_70%] transition-transform duration-[1200ms] motion-reduce:transition-none", EASE)
209
+ }
210
+ )
211
+ }
212
+ ),
213
+ /* @__PURE__ */ jsx("style", { href: "asta-footer-aui-027", precedence: "asta", children: CSS })
214
+ ]
215
+ }
216
+ );
217
+ }
218
+ var footer_aui_027_default = CtaFooter;
219
+
220
+ export {
221
+ CtaFooter,
222
+ footer_aui_027_default
223
+ };
@@ -0,0 +1,107 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/switch-aui-059.tsx
4
+ import { useId, 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 aui059-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
11
+ @keyframes aui059-ring { 0% { transform: rotate(0) } 15% { transform: rotate(18deg) } 30% { transform: rotate(-14deg) } 45% { transform: rotate(10deg) } 60% { transform: rotate(-6deg) } 75% { transform: rotate(3deg) } 100% { transform: rotate(0) } }
12
+ @media (prefers-reduced-motion: reduce) { .aui059 * { animation: none !important; transition: none !important } }
13
+ `;
14
+ var rise = (i) => ({ animation: `aui059-rise .6s ${EASE} ${80 + i * 55}ms both` });
15
+ function IconSwitch({
16
+ checked,
17
+ defaultChecked = true,
18
+ onCheckedChange,
19
+ title = "Notifications",
20
+ onText = "Delivering to 3 devices",
21
+ offText = "Paused until 9:00 AM",
22
+ devices = ["MacBook", "iPhone", "Email"],
23
+ name,
24
+ className
25
+ }) {
26
+ const uid = useId();
27
+ const [inner, setInner] = useState(defaultChecked);
28
+ const [rings, setRings] = useState(0);
29
+ const on = checked ?? inner;
30
+ const toggle = () => {
31
+ const next = !on;
32
+ if (checked === void 0) setInner(next);
33
+ if (next) setRings((r) => r + 1);
34
+ onCheckedChange?.(next);
35
+ };
36
+ return /* @__PURE__ */ jsxs("div", { className: cx("aui059 relative w-full max-w-[400px] overflow-hidden rounded-[14px] bg-ink p-5 text-paper shadow-[0_1px_2px_rgb(0_0_0/0.1),0_24px_48px_-24px_rgb(0_0_0/0.55)] sm:p-6", className), children: [
37
+ /* @__PURE__ */ jsx("style", { href: "asta-aui059", precedence: "asta", children: CSS }),
38
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute -left-16 -top-20 h-56 w-56 rounded-full bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--brand)_50%,transparent),transparent)] transition-opacity duration-700", style: { opacity: on ? 0.55 : 0 } }),
39
+ /* @__PURE__ */ jsxs("div", { className: "relative flex items-center justify-between gap-4", style: rise(0), children: [
40
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
41
+ /* @__PURE__ */ jsx("p", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-paper/45", children: "Astabyte \xB7 Focus" }),
42
+ /* @__PURE__ */ jsx("label", { htmlFor: uid, className: "mt-1.5 block cursor-pointer text-[20px] font-medium leading-tight tracking-[-0.02em]", children: title }),
43
+ /* @__PURE__ */ jsx("span", { id: `${uid}-d`, className: "relative mt-1 block h-5 overflow-hidden text-[13px] text-paper/55", children: /* @__PURE__ */ jsxs("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${on ? 0 : -20}px)`, transitionTimingFunction: EASE }, children: [
44
+ /* @__PURE__ */ jsx("span", { className: "block h-5 truncate leading-5", "aria-hidden": !on, children: onText }),
45
+ /* @__PURE__ */ jsx("span", { className: "block h-5 truncate leading-5", "aria-hidden": on, children: offText })
46
+ ] }) })
47
+ ] }),
48
+ /* @__PURE__ */ jsxs(
49
+ "button",
50
+ {
51
+ id: uid,
52
+ type: "button",
53
+ role: "switch",
54
+ "aria-checked": on,
55
+ "aria-describedby": `${uid}-d`,
56
+ name,
57
+ value: on ? "on" : "off",
58
+ onClick: toggle,
59
+ className: "group/sw relative h-9 w-[64px] shrink-0 rounded-full outline-none transition-transform duration-200 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--brand)_70%,var(--paper))] focus-visible:ring-offset-2 focus-visible:ring-offset-ink",
60
+ children: [
61
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 rounded-full bg-paper/[0.12] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_10%,transparent)]" }),
62
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 rounded-full bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_0_18px_-2px_color-mix(in_srgb,var(--brand)_70%,transparent)] transition-opacity duration-300", style: { opacity: on ? 1 : 0 } }),
63
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute left-[3px] top-[3px] grid h-[30px] w-[30px] place-items-center rounded-full bg-paper text-ink shadow-[0_1px_2px_rgb(0_0_0/0.3),0_4px_10px_-2px_rgb(0_0_0/0.35)] transition-transform duration-500", style: { transform: `translateX(${on ? 28 : 0}px)`, transitionTimingFunction: SPRING }, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 20 20", className: "h-[15px] w-[15px] overflow-visible", fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", children: [
64
+ /* @__PURE__ */ jsxs("g", { style: { transformOrigin: "10px 3px", animation: rings ? `aui059-ring .8s ${EASE} 120ms both` : void 0 }, children: [
65
+ /* @__PURE__ */ jsx("path", { d: "M5 13.5V9a5 5 0 0110 0v4.5l1.5 1.5h-13z", className: "transition-opacity duration-300", style: { opacity: on ? 1 : 0.55 } }),
66
+ /* @__PURE__ */ jsx("path", { d: "M8.2 17a2 2 0 003.6 0", className: "transition-opacity duration-300", style: { opacity: on ? 1 : 0.55 } })
67
+ ] }, rings),
68
+ /* @__PURE__ */ jsx("path", { d: "M3 3l14 14", pathLength: 1, strokeDasharray: "1", className: "transition-[stroke-dashoffset]", style: { strokeDashoffset: on ? 1 : 0, transitionDuration: on ? "160ms" : "420ms", transitionDelay: on ? "0ms" : "140ms", transitionTimingFunction: EASE } })
69
+ ] }) })
70
+ ]
71
+ }
72
+ )
73
+ ] }),
74
+ /* @__PURE__ */ jsxs("div", { className: "relative mt-5 h-[58px]", style: rise(1), children: [
75
+ /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex items-center gap-3 rounded-[10px] bg-paper/[0.06] px-3 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_8%,transparent)] transition-[transform,opacity] duration-500", style: { opacity: on ? 1 : 0, transform: on ? "none" : "translateY(-6px) scale(.98)", transitionTimingFunction: EASE }, "aria-hidden": !on, children: [
76
+ /* @__PURE__ */ jsx("span", { className: "grid h-8 w-8 shrink-0 place-items-center rounded-full bg-paper/10 text-[11px] font-medium", children: "RA" }),
77
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
78
+ /* @__PURE__ */ jsxs("span", { className: "block truncate text-[13px]", children: [
79
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: "Rina Arif" }),
80
+ " ",
81
+ /* @__PURE__ */ jsx("span", { className: "text-paper/55", children: "commented on" }),
82
+ " Launch plan"
83
+ ] }),
84
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] text-paper/45", children: "\u201CLooks good, ship it after the copy pass.\u201D" })
85
+ ] }),
86
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[11px] text-paper/40", children: "2m" })
87
+ ] }),
88
+ /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex items-center gap-3 rounded-[10px] px-3 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_10%,transparent)] transition-[transform,opacity] duration-500", style: { opacity: on ? 0 : 1, transform: on ? "translateY(6px) scale(.98)" : "none", transitionTimingFunction: EASE }, "aria-hidden": on, children: [
89
+ /* @__PURE__ */ jsx("span", { className: "grid h-8 w-8 shrink-0 place-items-center rounded-full bg-paper/[0.06] text-[13px] font-medium tabular-nums", children: "3" }),
90
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 text-[13px]", children: [
91
+ /* @__PURE__ */ jsx("span", { className: "block", children: "Holding 3 notifications" }),
92
+ /* @__PURE__ */ jsx("span", { className: "block text-[12px] text-paper/45", children: "We\u2019ll deliver them when focus ends." })
93
+ ] })
94
+ ] })
95
+ ] }),
96
+ /* @__PURE__ */ jsx("ul", { className: "relative mt-4 flex flex-wrap gap-1.5", "aria-label": "Devices", style: rise(2), children: devices.map((d, i) => /* @__PURE__ */ jsxs("li", { className: "flex h-7 items-center gap-1.5 rounded-[7px] bg-paper/[0.06] px-2.5 text-[12px] transition-opacity duration-500", style: { opacity: on ? 1 : 0.4, transitionDelay: `${i * 60}ms` }, children: [
97
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "relative h-1.5 w-1.5 rounded-full bg-paper/30", children: /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-[color-mix(in_srgb,var(--brand)_60%,var(--paper))] transition-[transform,opacity] duration-500", style: { opacity: on ? 1 : 0, transform: on ? "scale(1)" : "scale(.3)", transitionDelay: `${i * 60}ms`, transitionTimingFunction: SPRING } }) }),
98
+ d
99
+ ] }, d)) })
100
+ ] });
101
+ }
102
+ var switch_aui_059_default = IconSwitch;
103
+
104
+ export {
105
+ IconSwitch,
106
+ switch_aui_059_default
107
+ };
@@ -0,0 +1,305 @@
1
+ "use client";
2
+
3
+ // components/kit/variants/sign-in-aui-019.tsx
4
+ import { useEffect, useId, useRef, useState } from "react";
5
+ import { Fragment, 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(--paper)_12%,transparent)]";
9
+ var FOCUS = "focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2 focus-visible:ring-offset-ink";
10
+ var LINK = "rounded text-[13px] font-medium text-paper/70 outline-none transition-colors hover:text-paper focus-visible:ring-2 focus-visible:ring-brand";
11
+ var CSS = `
12
+ @keyframes aui019-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
13
+ @keyframes aui019-in { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
14
+ @keyframes aui019-ridge { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }
15
+ @keyframes aui019-scan { 0% { transform: translateY(-34px); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translateY(34px); opacity: 0 } }
16
+ @keyframes aui019-ripple { 0% { opacity: .45; transform: scale(1) } 100% { opacity: 0; transform: scale(1.75) } }
17
+ @keyframes aui019-pop { from { opacity: 0; transform: scale(.6) } 70% { transform: scale(1.06) } to { opacity: 1; transform: none } }
18
+ @keyframes aui019-draw { from { stroke-dashoffset: 24 } to { stroke-dashoffset: 0 } }
19
+ @media (prefers-reduced-motion: reduce) { .aui019 * { animation: none !important; transition: none !important } }
20
+ `;
21
+ var rise = (i) => ({ animation: `aui019-rise .6s ${EASE} ${100 + i * 55}ms both` });
22
+ var validEmail = (v) => /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(v.trim());
23
+ var wait = (ms) => new Promise((r) => setTimeout(r, ms));
24
+ var Spinner = () => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "h-4 w-4 animate-spin rounded-full border-2 border-current border-r-transparent" });
25
+ var RIDGES = [
26
+ "M6.2 5.4A8.5 8.5 0 0 1 20.5 11.5",
27
+ "M3.6 9.2a8.5 8.5 0 0 0-.1 1.3v1.8",
28
+ "M7.2 19.4c-.5-1.5-.7-3.1-.7-4.9v-3.9a5.5 5.5 0 0 1 11 0v1.6",
29
+ "M9.3 21c-.6-1.9-.8-4-.8-6.3v-4a3.5 3.5 0 0 1 7 0",
30
+ "M12 10.4v4.2c0 2.4.5 4.6 1.4 6.6",
31
+ "M17.5 15.8c0 1.8-.2 3.4-.6 4.8",
32
+ "M20.5 14.4v.6"
33
+ ];
34
+ var Fingerprint = ({ className, stagger = false }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className, fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": true, children: RIDGES.map((d, i) => /* @__PURE__ */ jsx("path", { d, style: stagger ? { animation: `aui019-ridge .6s ${EASE} ${260 + i * 70}ms both`, transformOrigin: "12px 13px" } : void 0 }, d)) });
35
+ var ErrorIcon = () => /* @__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: [
36
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6.25" }),
37
+ /* @__PURE__ */ jsx("path", { d: "M8 4.8v3.6M8 11h.01" })
38
+ ] });
39
+ function shakeEl(el) {
40
+ if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
41
+ el.animate(
42
+ [{ transform: "none" }, { transform: "translateX(-6px)" }, { transform: "translateX(5px)" }, { transform: "translateX(-3px)" }, { transform: "translateX(2px)" }, { transform: "none" }],
43
+ { duration: 420, easing: EASE }
44
+ );
45
+ }
46
+ function PasskeySignIn({
47
+ brand = "Astabyte",
48
+ title = "Sign in to Astabyte",
49
+ subtitle = "One touch. No password to remember.",
50
+ device = "MacBook Pro \xB7 iCloud Keychain",
51
+ deviceMeta = "Last used 2 days ago",
52
+ onPasskey,
53
+ onPassword,
54
+ className
55
+ }) {
56
+ const id = useId();
57
+ const [mode, setMode] = useState("passkey");
58
+ const [waiting, setWaiting] = useState(false);
59
+ const [done, setDone] = useState(null);
60
+ const [passkeyError, setPasskeyError] = useState("");
61
+ const [email, setEmail] = useState("");
62
+ const [password, setPassword] = useState("");
63
+ const [errors, setErrors] = useState({ email: "", password: "", form: "" });
64
+ const alive = useRef(true);
65
+ const passkeyBtn = useRef(null);
66
+ const emailBox = useRef(null);
67
+ const passBox = useRef(null);
68
+ const emailInput = useRef(null);
69
+ const prevMode = useRef(mode);
70
+ useEffect(() => {
71
+ alive.current = true;
72
+ return () => {
73
+ alive.current = false;
74
+ };
75
+ }, []);
76
+ useEffect(() => {
77
+ if (prevMode.current === mode) return;
78
+ prevMode.current = mode;
79
+ if (mode === "password") emailInput.current?.focus({ preventScroll: true });
80
+ else passkeyBtn.current?.focus({ preventScroll: true });
81
+ }, [mode]);
82
+ const passkey = async () => {
83
+ if (waiting) return;
84
+ setWaiting(true);
85
+ setPasskeyError("");
86
+ try {
87
+ await (onPasskey ? onPasskey() : wait(2e3));
88
+ if (alive.current) setDone("with your passkey");
89
+ } catch (err) {
90
+ if (!alive.current) return;
91
+ setPasskeyError(err instanceof Error ? err.message : "That didn't work. Try again or use your password.");
92
+ shakeEl(passkeyBtn.current);
93
+ } finally {
94
+ if (alive.current) setWaiting(false);
95
+ }
96
+ };
97
+ const submit = async (e) => {
98
+ e.preventDefault();
99
+ if (waiting) return;
100
+ const next = {
101
+ email: !email.trim() ? "Enter your email." : !validEmail(email) ? "That doesn't look like an email address." : "",
102
+ password: !password ? "Enter your password." : password.length < 8 ? "Use at least 8 characters." : "",
103
+ form: ""
104
+ };
105
+ setErrors(next);
106
+ if (next.email) shakeEl(emailBox.current);
107
+ if (next.password) shakeEl(passBox.current);
108
+ if (next.email || next.password) return;
109
+ setWaiting(true);
110
+ try {
111
+ await (onPassword ? onPassword({ email: email.trim(), password }) : wait(1200));
112
+ if (alive.current) setDone(`as ${email.trim()}`);
113
+ } catch (err) {
114
+ if (!alive.current) return;
115
+ setErrors((x) => ({ ...x, form: err instanceof Error ? err.message : "Something went wrong. Try again." }));
116
+ shakeEl(passBox.current);
117
+ } finally {
118
+ if (alive.current) setWaiting(false);
119
+ }
120
+ };
121
+ const reset = () => {
122
+ setDone(null);
123
+ setPassword("");
124
+ setMode("passkey");
125
+ };
126
+ const inputCls = (err) => cx(
127
+ "h-11 w-full rounded-[9px] bg-paper/[0.06] px-3.5 text-[14.5px] text-paper outline-none transition-shadow duration-200 placeholder:text-paper/35 focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_25%,transparent)]",
128
+ err ? "shadow-[inset_0_0_0_1.5px_var(--paper)]" : RING
129
+ );
130
+ const errLine = (key, msg) => msg ? /* @__PURE__ */ jsxs("p", { id: key, role: "alert", className: "mt-1.5 flex items-center gap-1.5 text-[12.5px] text-paper", style: { animation: `aui019-in .3s ${EASE} both` }, children: [
131
+ /* @__PURE__ */ jsx(ErrorIcon, {}),
132
+ msg
133
+ ] }) : null;
134
+ return /* @__PURE__ */ jsxs(
135
+ "div",
136
+ {
137
+ className: cx(
138
+ "aui019 relative isolate w-full max-w-[380px] overflow-hidden rounded-[14px] bg-ink p-6 text-paper shadow-[0_1px_2px_rgb(0_0_0/0.1),0_30px_60px_-28px_rgb(0_0_0/0.6)] sm:p-7",
139
+ className
140
+ ),
141
+ children: [
142
+ /* @__PURE__ */ jsx("style", { href: "asta-sign-in-aui-019", precedence: "asta", children: CSS }),
143
+ /* @__PURE__ */ jsx(
144
+ "div",
145
+ {
146
+ "aria-hidden": true,
147
+ className: cx("pointer-events-none absolute inset-0 -z-10 transition-opacity duration-700", waiting ? "opacity-100" : "opacity-60"),
148
+ style: { background: "radial-gradient(80% 55% at 50% 0%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%)" }
149
+ }
150
+ ),
151
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", style: rise(0), children: [
152
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-[14px] font-semibold tracking-[-0.02em]", children: [
153
+ /* @__PURE__ */ jsx("span", { className: "flex h-7 w-7 items-center justify-center rounded-[7px] bg-paper text-ink", "aria-hidden": true, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M8 1.5 14.5 14h-3L8 7.2 4.5 14h-3L8 1.5Z" }) }) }),
154
+ brand
155
+ ] }),
156
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-[10.5px] uppercase tracking-[0.08em] text-paper/50", children: mode === "passkey" ? "Passkey" : "Password" })
157
+ ] }),
158
+ done ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[340px] flex-col items-center justify-center text-center", role: "status", children: [
159
+ /* @__PURE__ */ jsx("span", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-brand text-paper", style: { animation: `aui019-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: `aui019-draw .5s .2s ${EASE} both` } }) }) }),
160
+ /* @__PURE__ */ jsx("h3", { className: "mt-5 text-[20px] font-medium tracking-[-0.02em]", style: rise(1), children: "You're in" }),
161
+ /* @__PURE__ */ jsxs("p", { className: "mt-1.5 max-w-[28ch] break-words text-[14px] leading-snug text-paper/60", style: rise(2), children: [
162
+ "Signed in ",
163
+ done,
164
+ "."
165
+ ] }),
166
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: reset, className: cx("mt-6 h-9 rounded-[8px] px-3.5 text-[13.5px] font-medium outline-none transition-colors hover:bg-paper/10", RING, FOCUS), style: rise(3), children: "Sign out" })
167
+ ] }) : mode === "passkey" ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
168
+ /* @__PURE__ */ jsx("h3", { className: "mt-8 text-[20px] font-medium tracking-[-0.02em]", style: rise(1), children: title }),
169
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[14px] leading-snug text-paper/60", style: rise(2), children: subtitle }),
170
+ /* @__PURE__ */ jsx("div", { style: rise(3), children: /* @__PURE__ */ jsxs(
171
+ "button",
172
+ {
173
+ ref: passkeyBtn,
174
+ type: "button",
175
+ onClick: passkey,
176
+ "aria-busy": waiting || void 0,
177
+ "aria-describedby": passkeyError ? `${id}-pk-err` : void 0,
178
+ className: cx(
179
+ "group mt-6 flex w-full flex-col items-center gap-5 rounded-[12px] bg-paper/[0.05] px-5 pb-5 pt-8 outline-none transition-[background-color,transform] duration-300 hover:bg-paper/[0.08] active:scale-[.985]",
180
+ RING,
181
+ FOCUS
182
+ ),
183
+ children: [
184
+ /* @__PURE__ */ jsxs("span", { className: "relative flex h-[76px] w-[76px] items-center justify-center", children: [
185
+ waiting && /* @__PURE__ */ jsxs(Fragment, { children: [
186
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand/40", style: { animation: `aui019-ripple 1.8s ${EASE} infinite` }, "aria-hidden": true }),
187
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand/40", style: { animation: `aui019-ripple 1.8s ${EASE} .9s infinite` }, "aria-hidden": true })
188
+ ] }),
189
+ /* @__PURE__ */ jsxs(
190
+ "span",
191
+ {
192
+ className: cx(
193
+ "relative flex h-[76px] w-[76px] items-center justify-center overflow-hidden rounded-full transition-[background-color,color,transform] duration-500 group-hover:scale-[1.04]",
194
+ waiting ? "bg-brand text-paper" : "bg-paper text-ink"
195
+ ),
196
+ style: { transitionTimingFunction: EASE },
197
+ children: [
198
+ /* @__PURE__ */ jsx(Fingerprint, { className: "h-10 w-10", stagger: true }),
199
+ waiting && /* @__PURE__ */ jsx(
200
+ "span",
201
+ {
202
+ "aria-hidden": true,
203
+ className: "absolute inset-x-3 top-1/2 h-[2px] rounded-full bg-paper shadow-[0_0_12px_2px_color-mix(in_srgb,var(--paper)_70%,transparent)]",
204
+ style: { animation: `aui019-scan 1.4s ${EASE} infinite alternate` }
205
+ }
206
+ )
207
+ ]
208
+ }
209
+ )
210
+ ] }),
211
+ /* @__PURE__ */ jsxs("span", { className: "flex flex-col items-center", children: [
212
+ /* @__PURE__ */ jsx("span", { className: "text-[15.5px] font-medium tracking-[-0.01em]", children: waiting ? "Waiting for your device" : "Sign in with a passkey" }),
213
+ /* @__PURE__ */ jsx("span", { className: "mt-0.5 text-[12.5px] text-paper/55", children: waiting ? "Follow the prompt on your screen" : "Face ID, Touch ID or a security key" })
214
+ ] })
215
+ ]
216
+ }
217
+ ) }),
218
+ /* @__PURE__ */ jsx("span", { className: "sr-only", role: "status", children: waiting ? "Waiting for your passkey" : "" }),
219
+ passkeyError && /* @__PURE__ */ jsxs("p", { id: `${id}-pk-err`, role: "alert", className: "mt-3 flex items-center gap-1.5 text-[12.5px] text-paper", style: { animation: `aui019-in .3s ${EASE} both` }, children: [
220
+ /* @__PURE__ */ jsx(ErrorIcon, {}),
221
+ passkeyError
222
+ ] }),
223
+ device && /* @__PURE__ */ jsxs("div", { className: cx("mt-3 flex items-center gap-3 rounded-[10px] px-3 py-2.5", RING), style: rise(4), children: [
224
+ /* @__PURE__ */ jsx("span", { className: "flex h-7 w-7 items-center justify-center rounded-[7px] bg-paper/10", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round", children: [
225
+ /* @__PURE__ */ jsx("rect", { x: "2.5", y: "3", width: "11", height: "7.5", rx: "1" }),
226
+ /* @__PURE__ */ jsx("path", { d: "M1 13h14", strokeLinecap: "round" })
227
+ ] }) }),
228
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
229
+ /* @__PURE__ */ jsx("span", { className: "truncate text-[13px]", children: device }),
230
+ /* @__PURE__ */ jsx("span", { className: "text-[11.5px] text-paper/50", children: deviceMeta })
231
+ ] }),
232
+ /* @__PURE__ */ jsx("span", { className: "ml-auto h-1.5 w-1.5 shrink-0 rounded-full bg-brand", "aria-hidden": true })
233
+ ] }),
234
+ /* @__PURE__ */ jsxs("button", { type: "button", onClick: () => setMode("password"), disabled: waiting, className: cx(LINK, "group mt-6 inline-flex items-center gap-1.5 self-center disabled:opacity-40"), style: rise(5), children: [
235
+ "Use password instead",
236
+ /* @__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" }) })
237
+ ] })
238
+ ] }, "passkey") : /* @__PURE__ */ jsxs("form", { noValidate: true, onSubmit: submit, className: "flex flex-col", children: [
239
+ /* @__PURE__ */ jsx("h3", { className: "mt-8 text-[20px] font-medium tracking-[-0.02em]", style: rise(0), children: "Use your password" }),
240
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-[14px] leading-snug text-paper/60", style: rise(1), children: "You can add a passkey after you sign in." }),
241
+ /* @__PURE__ */ jsxs("div", { style: rise(2), children: [
242
+ /* @__PURE__ */ jsx("label", { htmlFor: `${id}-email`, className: "mt-6 block text-[13px] font-medium", children: "Email" }),
243
+ /* @__PURE__ */ jsx("div", { ref: emailBox, className: "mt-1.5", children: /* @__PURE__ */ jsx(
244
+ "input",
245
+ {
246
+ ref: emailInput,
247
+ id: `${id}-email`,
248
+ type: "email",
249
+ autoComplete: "username",
250
+ placeholder: "you@company.com",
251
+ value: email,
252
+ onChange: (e) => setEmail(e.target.value),
253
+ "aria-invalid": !!errors.email || void 0,
254
+ "aria-describedby": errors.email ? `${id}-email-err` : void 0,
255
+ className: inputCls(errors.email)
256
+ }
257
+ ) }),
258
+ errLine(`${id}-email-err`, errors.email)
259
+ ] }),
260
+ /* @__PURE__ */ jsxs("div", { style: rise(3), children: [
261
+ /* @__PURE__ */ jsx("label", { htmlFor: `${id}-pass`, className: "mt-4 block text-[13px] font-medium", children: "Password" }),
262
+ /* @__PURE__ */ jsx("div", { ref: passBox, className: "mt-1.5", children: /* @__PURE__ */ jsx(
263
+ "input",
264
+ {
265
+ id: `${id}-pass`,
266
+ type: "password",
267
+ autoComplete: "current-password",
268
+ placeholder: "At least 8 characters",
269
+ value: password,
270
+ onChange: (e) => setPassword(e.target.value),
271
+ "aria-invalid": !!(errors.password || errors.form) || void 0,
272
+ "aria-describedby": errors.password || errors.form ? `${id}-pass-err` : void 0,
273
+ className: inputCls(errors.password || errors.form)
274
+ }
275
+ ) }),
276
+ errLine(`${id}-pass-err`, errors.password || errors.form)
277
+ ] }),
278
+ /* @__PURE__ */ jsx("div", { style: rise(4), children: /* @__PURE__ */ jsxs(
279
+ "button",
280
+ {
281
+ type: "submit",
282
+ disabled: waiting,
283
+ "aria-busy": waiting || void 0,
284
+ className: cx("mt-6 inline-flex h-11 w-full items-center justify-center gap-2 rounded-[9px] bg-brand px-4 text-[14px] font-medium text-paper outline-none transition-transform duration-200 active:scale-[.985] disabled:opacity-70", FOCUS),
285
+ children: [
286
+ waiting && /* @__PURE__ */ jsx(Spinner, {}),
287
+ waiting ? "Signing in" : "Sign in"
288
+ ]
289
+ }
290
+ ) }),
291
+ /* @__PURE__ */ jsxs("button", { type: "button", onClick: () => setMode("passkey"), disabled: waiting, className: cx(LINK, "mt-5 inline-flex items-center justify-center gap-1.5 self-center disabled:opacity-40"), style: rise(5), children: [
292
+ /* @__PURE__ */ jsx(Fingerprint, { className: "h-4 w-4" }),
293
+ "Use a passkey instead"
294
+ ] })
295
+ ] }, "password")
296
+ ]
297
+ }
298
+ );
299
+ }
300
+ var sign_in_aui_019_default = PasskeySignIn;
301
+
302
+ export {
303
+ PasskeySignIn,
304
+ sign_in_aui_019_default
305
+ };