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.
- package/dist/accordion.js +1 -1
- package/dist/base/card-checkout.js +1 -1
- package/dist/base/checkbox-aui-052.d.ts +2 -0
- package/dist/base/checkbox-aui-052.js +9 -0
- package/dist/base/checkbox-aui-053.d.ts +2 -0
- package/dist/base/checkbox-aui-053.js +9 -0
- package/dist/base/checkbox-aui-054.d.ts +2 -0
- package/dist/base/checkbox-aui-054.js +9 -0
- package/dist/base/combobox-aui-046.d.ts +2 -0
- package/dist/base/combobox-aui-046.js +9 -0
- package/dist/base/combobox-aui-047.d.ts +2 -0
- package/dist/base/combobox-aui-047.js +9 -0
- package/dist/base/date-picker-aui-050.d.ts +2 -0
- package/dist/base/date-picker-aui-050.js +9 -0
- package/dist/base/date-picker-aui-051.d.ts +2 -0
- package/dist/base/date-picker-aui-051.js +9 -0
- package/dist/base/footer-aui-025.d.ts +2 -0
- package/dist/base/footer-aui-025.js +9 -0
- package/dist/base/footer-aui-026.d.ts +2 -0
- package/dist/base/footer-aui-026.js +9 -0
- package/dist/base/footer-aui-027.d.ts +2 -0
- package/dist/base/footer-aui-027.js +9 -0
- package/dist/base/footer-aui-028.d.ts +2 -0
- package/dist/base/footer-aui-028.js +9 -0
- package/dist/base/input-aui-029.d.ts +2 -0
- package/dist/base/input-aui-029.js +9 -0
- package/dist/base/input-aui-030.d.ts +2 -0
- package/dist/base/input-aui-030.js +9 -0
- package/dist/base/input-aui-031.d.ts +2 -0
- package/dist/base/input-aui-031.js +9 -0
- package/dist/base/input-aui-032.d.ts +2 -0
- package/dist/base/input-aui-032.js +11 -0
- package/dist/base/input-aui-033.d.ts +2 -0
- package/dist/base/input-aui-033.js +11 -0
- package/dist/base/input-aui-034.d.ts +2 -0
- package/dist/base/input-aui-034.js +9 -0
- package/dist/base/navbar-aui-009.d.ts +2 -0
- package/dist/base/navbar-aui-009.js +9 -0
- package/dist/base/navbar-aui-010.d.ts +2 -0
- package/dist/base/navbar-aui-010.js +9 -0
- package/dist/base/navbar-aui-011.d.ts +2 -0
- package/dist/base/navbar-aui-011.js +9 -0
- package/dist/base/navbar-aui-012.d.ts +2 -0
- package/dist/base/navbar-aui-012.js +9 -0
- package/dist/base/navbar-aui-013.d.ts +2 -0
- package/dist/base/navbar-aui-013.js +9 -0
- package/dist/base/navbar-aui-014.d.ts +2 -0
- package/dist/base/navbar-aui-014.js +9 -0
- package/dist/base/now-playing.js +1 -1
- package/dist/base/otp-input-aui-041.d.ts +2 -0
- package/dist/base/otp-input-aui-041.js +9 -0
- package/dist/base/otp-input-aui-042.d.ts +2 -0
- package/dist/base/otp-input-aui-042.js +9 -0
- package/dist/base/password-input-aui-039.d.ts +2 -0
- package/dist/base/password-input-aui-039.js +9 -0
- package/dist/base/password-input-aui-040.d.ts +2 -0
- package/dist/base/password-input-aui-040.js +11 -0
- package/dist/base/payment-received.js +1 -1
- package/dist/base/pricing-aui-021.d.ts +2 -0
- package/dist/base/pricing-aui-021.js +9 -0
- package/dist/base/pricing-aui-022.d.ts +2 -0
- package/dist/base/pricing-aui-022.js +9 -0
- package/dist/base/pricing-aui-023.d.ts +2 -0
- package/dist/base/pricing-aui-023.js +9 -0
- package/dist/base/pricing-aui-024.d.ts +2 -0
- package/dist/base/pricing-aui-024.js +9 -0
- package/dist/base/radio-group-aui-055.d.ts +2 -0
- package/dist/base/radio-group-aui-055.js +9 -0
- package/dist/base/radio-group-aui-056.d.ts +2 -0
- package/dist/base/radio-group-aui-056.js +9 -0
- package/dist/base/radio-group-aui-057.d.ts +2 -0
- package/dist/base/radio-group-aui-057.js +9 -0
- package/dist/base/select-aui-043.d.ts +2 -0
- package/dist/base/select-aui-043.js +9 -0
- package/dist/base/select-aui-044.d.ts +2 -0
- package/dist/base/select-aui-044.js +9 -0
- package/dist/base/select-aui-045.d.ts +2 -0
- package/dist/base/select-aui-045.js +9 -0
- package/dist/base/sign-in-aui-015.d.ts +2 -0
- package/dist/base/sign-in-aui-015.js +9 -0
- package/dist/base/sign-in-aui-016.d.ts +2 -0
- package/dist/base/sign-in-aui-016.js +9 -0
- package/dist/base/sign-in-aui-017.d.ts +2 -0
- package/dist/base/sign-in-aui-017.js +9 -0
- package/dist/base/sign-in-aui-018.d.ts +2 -0
- package/dist/base/sign-in-aui-018.js +9 -0
- package/dist/base/sign-in-aui-019.d.ts +2 -0
- package/dist/base/sign-in-aui-019.js +9 -0
- package/dist/base/sign-in-aui-020.d.ts +2 -0
- package/dist/base/sign-in-aui-020.js +9 -0
- package/dist/base/slider-aui-061.d.ts +2 -0
- package/dist/base/slider-aui-061.js +9 -0
- package/dist/base/slider-aui-062.d.ts +2 -0
- package/dist/base/slider-aui-062.js +9 -0
- package/dist/base/slider-aui-063.d.ts +2 -0
- package/dist/base/slider-aui-063.js +9 -0
- package/dist/base/spinner.js +1 -1
- package/dist/base/switch-aui-058.d.ts +2 -0
- package/dist/base/switch-aui-058.js +9 -0
- package/dist/base/switch-aui-059.d.ts +2 -0
- package/dist/base/switch-aui-059.js +9 -0
- package/dist/base/switch-aui-060.d.ts +2 -0
- package/dist/base/switch-aui-060.js +9 -0
- package/dist/base/tag-input-aui-048.d.ts +2 -0
- package/dist/base/tag-input-aui-048.js +9 -0
- package/dist/base/tag-input-aui-049.d.ts +2 -0
- package/dist/base/tag-input-aui-049.js +9 -0
- package/dist/base/textarea-aui-035.d.ts +2 -0
- package/dist/base/textarea-aui-035.js +9 -0
- package/dist/base/textarea-aui-036.d.ts +2 -0
- package/dist/base/textarea-aui-036.js +9 -0
- package/dist/base/textarea-aui-037.d.ts +2 -0
- package/dist/base/textarea-aui-037.js +9 -0
- package/dist/base/textarea-aui-038.d.ts +2 -0
- package/dist/base/textarea-aui-038.js +11 -0
- package/dist/base.js +360 -22
- package/dist/card-checkout.js +1 -1
- package/dist/checkbox-aui-052.d.ts +2 -0
- package/dist/checkbox-aui-052.js +9 -0
- package/dist/checkbox-aui-053.d.ts +2 -0
- package/dist/checkbox-aui-053.js +9 -0
- package/dist/checkbox-aui-054.d.ts +2 -0
- package/dist/checkbox-aui-054.js +9 -0
- package/dist/chunk-2LSUWI2Z.js +180 -0
- package/dist/chunk-2SQQFICY.js +493 -0
- package/dist/chunk-3XMVXIOF.js +267 -0
- package/dist/chunk-4YNUJFTL.js +165 -0
- package/dist/chunk-5OHHGQV6.js +175 -0
- package/dist/chunk-5TMFFW3Y.js +149 -0
- package/dist/{chunk-QJXPS55V.js → chunk-5TSQZY34.js} +1 -1
- package/dist/chunk-5U4H2CXC.js +308 -0
- package/dist/chunk-5WGDQ62P.js +122 -0
- package/dist/chunk-6B6NTRMC.js +293 -0
- package/dist/chunk-6NNHSXFD.js +539 -0
- package/dist/chunk-746WX2DF.js +480 -0
- package/dist/chunk-7GKCX4IE.js +636 -0
- package/dist/chunk-7SNVRPED.js +223 -0
- package/dist/chunk-ANZANDQM.js +107 -0
- package/dist/chunk-BGVAXPHD.js +305 -0
- package/dist/chunk-BIYNJDPD.js +158 -0
- package/dist/chunk-BV5HEXB5.js +339 -0
- package/dist/chunk-CDQNLDO6.js +156 -0
- package/dist/chunk-CZCZB5YP.js +142 -0
- package/dist/chunk-D6LGKFZH.js +140 -0
- package/dist/chunk-EKPTPTKK.js +93 -0
- package/dist/chunk-EVCUN45S.js +167 -0
- package/dist/chunk-F526V5BA.js +254 -0
- package/dist/chunk-FGQPCDXI.js +136 -0
- package/dist/chunk-GERWW3CA.js +311 -0
- package/dist/chunk-GJ3R6IZL.js +232 -0
- package/dist/chunk-HVFB44HO.js +219 -0
- package/dist/chunk-I2WXKWTQ.js +151 -0
- package/dist/chunk-J6GK2V2C.js +252 -0
- package/dist/chunk-JVTDNOHQ.js +173 -0
- package/dist/chunk-K5PWBSVO.js +200 -0
- package/dist/chunk-KQCXQY5K.js +155 -0
- package/dist/chunk-KXWC2UHE.js +308 -0
- package/dist/chunk-LPTY5WXM.js +231 -0
- package/dist/chunk-MDI73RL6.js +245 -0
- package/dist/chunk-MUDW65ZT.js +220 -0
- package/dist/chunk-NICNFGHT.js +138 -0
- package/dist/chunk-NZRQL3SA.js +201 -0
- package/dist/chunk-OFYGJUKP.js +278 -0
- package/dist/{chunk-NDBLIYMX.js → chunk-OKCSTMX3.js} +2 -2
- package/dist/chunk-P37H477M.js +236 -0
- package/dist/chunk-P3USWDWR.js +331 -0
- package/dist/chunk-QSLS3ENY.js +469 -0
- package/dist/chunk-QYI7LQBQ.js +208 -0
- package/dist/chunk-RRHQBGRO.js +327 -0
- package/dist/chunk-U6N7CZYN.js +305 -0
- package/dist/{chunk-2OGTIQVU.js → chunk-UEOEWP7L.js} +1 -1
- package/dist/chunk-UMDVPRJW.js +117 -0
- package/dist/{chunk-BP3LXM3X.js → chunk-UTGEGGSE.js} +1 -1
- package/dist/chunk-VPZP6TCT.js +155 -0
- package/dist/chunk-VVAL2JZJ.js +332 -0
- package/dist/chunk-VWYHP4SB.js +154 -0
- package/dist/chunk-W7RITVDV.js +182 -0
- package/dist/chunk-WNPMHOXE.js +136 -0
- package/dist/chunk-WSTQ6WZO.js +193 -0
- package/dist/chunk-WTNNS7AX.js +362 -0
- package/dist/{chunk-AS6RA64I.js → chunk-XTP6ITUJ.js} +3 -1
- package/dist/chunk-Z5GNX2S3.js +171 -0
- package/dist/chunk-ZBF2UYXP.js +225 -0
- package/dist/combobox-aui-046.d.ts +2 -0
- package/dist/combobox-aui-046.js +9 -0
- package/dist/combobox-aui-047.d.ts +2 -0
- package/dist/combobox-aui-047.js +9 -0
- package/dist/date-picker-aui-050.d.ts +2 -0
- package/dist/date-picker-aui-050.js +9 -0
- package/dist/date-picker-aui-051.d.ts +2 -0
- package/dist/date-picker-aui-051.js +9 -0
- package/dist/footer-aui-025.d.ts +2 -0
- package/dist/footer-aui-025.js +9 -0
- package/dist/footer-aui-026.d.ts +2 -0
- package/dist/footer-aui-026.js +9 -0
- package/dist/footer-aui-027.d.ts +2 -0
- package/dist/footer-aui-027.js +9 -0
- package/dist/footer-aui-028.d.ts +2 -0
- package/dist/footer-aui-028.js +9 -0
- package/dist/index.js +361 -23
- package/dist/input-aui-029.d.ts +2 -0
- package/dist/input-aui-029.js +9 -0
- package/dist/input-aui-030.d.ts +2 -0
- package/dist/input-aui-030.js +9 -0
- package/dist/input-aui-031.d.ts +2 -0
- package/dist/input-aui-031.js +9 -0
- package/dist/input-aui-032.d.ts +2 -0
- package/dist/input-aui-032.js +11 -0
- package/dist/input-aui-033.d.ts +2 -0
- package/dist/input-aui-033.js +11 -0
- package/dist/input-aui-034.d.ts +2 -0
- package/dist/input-aui-034.js +9 -0
- package/dist/navbar-aui-009.d.ts +2 -0
- package/dist/navbar-aui-009.js +9 -0
- package/dist/navbar-aui-010.d.ts +2 -0
- package/dist/navbar-aui-010.js +9 -0
- package/dist/navbar-aui-011.d.ts +2 -0
- package/dist/navbar-aui-011.js +9 -0
- package/dist/navbar-aui-012.d.ts +2 -0
- package/dist/navbar-aui-012.js +9 -0
- package/dist/navbar-aui-013.d.ts +2 -0
- package/dist/navbar-aui-013.js +9 -0
- package/dist/navbar-aui-014.d.ts +2 -0
- package/dist/navbar-aui-014.js +9 -0
- package/dist/now-playing.js +1 -1
- package/dist/otp-input-aui-041.d.ts +2 -0
- package/dist/otp-input-aui-041.js +9 -0
- package/dist/otp-input-aui-042.d.ts +2 -0
- package/dist/otp-input-aui-042.js +9 -0
- package/dist/password-input-aui-039.d.ts +2 -0
- package/dist/password-input-aui-039.js +9 -0
- package/dist/password-input-aui-040.d.ts +2 -0
- package/dist/password-input-aui-040.js +11 -0
- package/dist/payment-received.js +1 -1
- package/dist/pricing-aui-021.d.ts +2 -0
- package/dist/pricing-aui-021.js +9 -0
- package/dist/pricing-aui-022.d.ts +2 -0
- package/dist/pricing-aui-022.js +9 -0
- package/dist/pricing-aui-023.d.ts +2 -0
- package/dist/pricing-aui-023.js +9 -0
- package/dist/pricing-aui-024.d.ts +2 -0
- package/dist/pricing-aui-024.js +9 -0
- package/dist/radio-group-aui-055.d.ts +2 -0
- package/dist/radio-group-aui-055.js +9 -0
- package/dist/radio-group-aui-056.d.ts +2 -0
- package/dist/radio-group-aui-056.js +9 -0
- package/dist/radio-group-aui-057.d.ts +2 -0
- package/dist/radio-group-aui-057.js +9 -0
- package/dist/select-aui-043.d.ts +2 -0
- package/dist/select-aui-043.js +9 -0
- package/dist/select-aui-044.d.ts +2 -0
- package/dist/select-aui-044.js +9 -0
- package/dist/select-aui-045.d.ts +2 -0
- package/dist/select-aui-045.js +9 -0
- package/dist/sign-in-aui-015.d.ts +2 -0
- package/dist/sign-in-aui-015.js +9 -0
- package/dist/sign-in-aui-016.d.ts +2 -0
- package/dist/sign-in-aui-016.js +9 -0
- package/dist/sign-in-aui-017.d.ts +2 -0
- package/dist/sign-in-aui-017.js +9 -0
- package/dist/sign-in-aui-018.d.ts +2 -0
- package/dist/sign-in-aui-018.js +9 -0
- package/dist/sign-in-aui-019.d.ts +2 -0
- package/dist/sign-in-aui-019.js +9 -0
- package/dist/sign-in-aui-020.d.ts +2 -0
- package/dist/sign-in-aui-020.js +9 -0
- package/dist/slider-aui-061.d.ts +2 -0
- package/dist/slider-aui-061.js +9 -0
- package/dist/slider-aui-062.d.ts +2 -0
- package/dist/slider-aui-062.js +9 -0
- package/dist/slider-aui-063.d.ts +2 -0
- package/dist/slider-aui-063.js +9 -0
- package/dist/spinner.js +1 -1
- package/dist/switch-aui-058.d.ts +2 -0
- package/dist/switch-aui-058.js +9 -0
- package/dist/switch-aui-059.d.ts +2 -0
- package/dist/switch-aui-059.js +9 -0
- package/dist/switch-aui-060.d.ts +2 -0
- package/dist/switch-aui-060.js +9 -0
- package/dist/tag-input-aui-048.d.ts +2 -0
- package/dist/tag-input-aui-048.js +9 -0
- package/dist/tag-input-aui-049.d.ts +2 -0
- package/dist/tag-input-aui-049.js +9 -0
- package/dist/textarea-aui-035.d.ts +2 -0
- package/dist/textarea-aui-035.js +9 -0
- package/dist/textarea-aui-036.d.ts +2 -0
- package/dist/textarea-aui-036.js +9 -0
- package/dist/textarea-aui-037.d.ts +2 -0
- package/dist/textarea-aui-037.js +9 -0
- package/dist/textarea-aui-038.d.ts +2 -0
- package/dist/textarea-aui-038.js +11 -0
- package/dist/types/components/kit/variants/checkbox-aui-052.d.ts +29 -0
- package/dist/types/components/kit/variants/checkbox-aui-053.d.ts +24 -0
- package/dist/types/components/kit/variants/checkbox-aui-054.d.ts +33 -0
- package/dist/types/components/kit/variants/combobox-aui-046.d.ts +23 -0
- package/dist/types/components/kit/variants/combobox-aui-047.d.ts +24 -0
- package/dist/types/components/kit/variants/date-picker-aui-050.d.ts +26 -0
- package/dist/types/components/kit/variants/date-picker-aui-051.d.ts +23 -0
- package/dist/types/components/kit/variants/footer-aui-025.d.ts +22 -0
- package/dist/types/components/kit/variants/footer-aui-026.d.ts +21 -0
- package/dist/types/components/kit/variants/footer-aui-027.d.ts +36 -0
- package/dist/types/components/kit/variants/footer-aui-028.d.ts +34 -0
- package/dist/types/components/kit/variants/input-aui-029.d.ts +21 -0
- package/dist/types/components/kit/variants/input-aui-030.d.ts +29 -0
- package/dist/types/components/kit/variants/input-aui-031.d.ts +24 -0
- package/dist/types/components/kit/variants/input-aui-032.d.ts +36 -0
- package/dist/types/components/kit/variants/input-aui-033.d.ts +23 -0
- package/dist/types/components/kit/variants/input-aui-034.d.ts +29 -0
- package/dist/types/components/kit/variants/navbar-aui-009.d.ts +62 -0
- package/dist/types/components/kit/variants/navbar-aui-010.d.ts +30 -0
- package/dist/types/components/kit/variants/navbar-aui-011.d.ts +65 -0
- package/dist/types/components/kit/variants/navbar-aui-012.d.ts +50 -0
- package/dist/types/components/kit/variants/navbar-aui-013.d.ts +70 -0
- package/dist/types/components/kit/variants/navbar-aui-014.d.ts +31 -0
- package/dist/types/components/kit/variants/otp-input-aui-041.d.ts +20 -0
- package/dist/types/components/kit/variants/otp-input-aui-042.d.ts +23 -0
- package/dist/types/components/kit/variants/password-input-aui-039.d.ts +16 -0
- package/dist/types/components/kit/variants/password-input-aui-040.d.ts +24 -0
- package/dist/types/components/kit/variants/pricing-aui-021.d.ts +30 -0
- package/dist/types/components/kit/variants/pricing-aui-022.d.ts +34 -0
- package/dist/types/components/kit/variants/pricing-aui-023.d.ts +26 -0
- package/dist/types/components/kit/variants/pricing-aui-024.d.ts +29 -0
- package/dist/types/components/kit/variants/radio-group-aui-055.d.ts +27 -0
- package/dist/types/components/kit/variants/radio-group-aui-056.d.ts +28 -0
- package/dist/types/components/kit/variants/radio-group-aui-057.d.ts +26 -0
- package/dist/types/components/kit/variants/select-aui-043.d.ts +29 -0
- package/dist/types/components/kit/variants/select-aui-044.d.ts +24 -0
- package/dist/types/components/kit/variants/select-aui-045.d.ts +29 -0
- package/dist/types/components/kit/variants/sign-in-aui-015.d.ts +21 -0
- package/dist/types/components/kit/variants/sign-in-aui-016.d.ts +28 -0
- package/dist/types/components/kit/variants/sign-in-aui-017.d.ts +21 -0
- package/dist/types/components/kit/variants/sign-in-aui-018.d.ts +22 -0
- package/dist/types/components/kit/variants/sign-in-aui-019.d.ts +22 -0
- package/dist/types/components/kit/variants/sign-in-aui-020.d.ts +27 -0
- package/dist/types/components/kit/variants/slider-aui-061.d.ts +20 -0
- package/dist/types/components/kit/variants/slider-aui-062.d.ts +24 -0
- package/dist/types/components/kit/variants/slider-aui-063.d.ts +17 -0
- package/dist/types/components/kit/variants/switch-aui-058.d.ts +24 -0
- package/dist/types/components/kit/variants/switch-aui-059.d.ts +20 -0
- package/dist/types/components/kit/variants/switch-aui-060.d.ts +15 -0
- package/dist/types/components/kit/variants/tag-input-aui-048.d.ts +16 -0
- package/dist/types/components/kit/variants/tag-input-aui-049.d.ts +15 -0
- package/dist/types/components/kit/variants/textarea-aui-035.d.ts +19 -0
- package/dist/types/components/kit/variants/textarea-aui-036.d.ts +23 -0
- package/dist/types/components/kit/variants/textarea-aui-037.d.ts +30 -0
- package/dist/types/components/kit/variants/textarea-aui-038.d.ts +28 -0
- package/dist/types/packages/asta-ui/src/base/checkbox-aui-052.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/checkbox-aui-053.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/checkbox-aui-054.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/combobox-aui-046.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/combobox-aui-047.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/date-picker-aui-050.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/date-picker-aui-051.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-025.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-026.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-027.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-028.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-029.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-030.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-031.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-032.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-033.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input-aui-034.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-009.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-010.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-011.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-012.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-013.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-014.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/otp-input-aui-041.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/otp-input-aui-042.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/password-input-aui-039.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/password-input-aui-040.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-021.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-022.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-023.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-024.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/radio-group-aui-055.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/radio-group-aui-056.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/radio-group-aui-057.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/select-aui-043.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/select-aui-044.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/select-aui-045.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-015.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-016.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-017.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-018.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-019.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-020.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/slider-aui-061.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/slider-aui-062.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/slider-aui-063.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/switch-aui-058.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/switch-aui-059.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/switch-aui-060.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tag-input-aui-048.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tag-input-aui-049.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-035.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-036.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-037.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-038.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +110 -0
- package/dist/types/packages/asta-ui/src/checkbox-aui-052.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/checkbox-aui-053.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/checkbox-aui-054.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/combobox-aui-046.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/combobox-aui-047.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/date-picker-aui-050.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/date-picker-aui-051.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-025.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-026.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-027.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-028.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +110 -0
- package/dist/types/packages/asta-ui/src/input-aui-029.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input-aui-030.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input-aui-031.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input-aui-032.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input-aui-033.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input-aui-034.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-009.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-010.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-011.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-012.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-013.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-014.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/otp-input-aui-041.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/otp-input-aui-042.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/password-input-aui-039.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/password-input-aui-040.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-021.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-022.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-023.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-024.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/radio-group-aui-055.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/radio-group-aui-056.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/radio-group-aui-057.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/select-aui-043.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/select-aui-044.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/select-aui-045.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-015.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-016.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-017.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-018.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-019.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-020.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/slider-aui-061.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/slider-aui-062.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/slider-aui-063.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/switch-aui-058.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/switch-aui-059.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/switch-aui-060.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tag-input-aui-048.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tag-input-aui-049.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-035.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-036.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-037.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-038.d.ts +2 -0
- 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
|
+
};
|