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,469 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/navbar-aui-011.tsx
|
|
4
|
+
import { Fragment, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { Fragment as Fragment2, 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 TW_EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
9
|
+
var FOCUS = "outline-none focus-visible:ring-2 focus-visible:ring-brand/60";
|
|
10
|
+
var HATCH = "bg-[repeating-linear-gradient(135deg,color-mix(in_srgb,var(--paper)_5%,transparent)_0_1px,transparent_1px_7px)]";
|
|
11
|
+
var CSS = `
|
|
12
|
+
@keyframes aui-011-letter { from { opacity: 0; transform: translateY(70%) rotate(6deg); } }
|
|
13
|
+
@keyframes aui-011-rise { from { opacity: 0; transform: translateY(6px); } }
|
|
14
|
+
@keyframes aui-011-drop { from { opacity: 0; transform: translateY(-8px); } }
|
|
15
|
+
@keyframes aui-011-vp-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
|
|
16
|
+
@keyframes aui-011-vp-out { to { opacity: 0; transform: translateY(-4px) scale(.96); } }
|
|
17
|
+
@keyframes aui-011-from-l { from { opacity: 0; transform: translateX(-28px); } }
|
|
18
|
+
@keyframes aui-011-from-r { from { opacity: 0; transform: translateX(28px); } }
|
|
19
|
+
@keyframes aui-011-to-l { to { opacity: 0; transform: translateX(-28px); } }
|
|
20
|
+
@keyframes aui-011-to-r { to { opacity: 0; transform: translateX(28px); } }
|
|
21
|
+
.aui-011-l { display: inline-block; animation: aui-011-letter .8s ${EASE} both; animation-delay: calc(120ms + var(--i, 0) * 45ms); }
|
|
22
|
+
.aui-011-in { animation: aui-011-rise .55s ${EASE} both; animation-delay: calc(var(--i, 0) * 50ms); }
|
|
23
|
+
.aui-011-sheet { animation: aui-011-drop .4s ${EASE} both; }
|
|
24
|
+
.aui-011-vp { transform-origin: top center; }
|
|
25
|
+
.aui-011-vp[data-state=open] { animation: aui-011-vp-in .26s ${EASE}; }
|
|
26
|
+
.aui-011-vp[data-state=closed] { animation: aui-011-vp-out .16s ease-in forwards; }
|
|
27
|
+
.aui-011-c[data-motion=from-start] { animation: aui-011-from-l .3s ${EASE}; }
|
|
28
|
+
.aui-011-c[data-motion=from-end] { animation: aui-011-from-r .3s ${EASE}; }
|
|
29
|
+
.aui-011-c[data-motion=to-start] { animation: aui-011-to-l .3s ${EASE} forwards; }
|
|
30
|
+
.aui-011-c[data-motion=to-end] { animation: aui-011-to-r .3s ${EASE} forwards; }
|
|
31
|
+
.aui-011-t { animation: aui-011-rise .45s ${EASE} both; animation-delay: calc(40ms + var(--i, 0) * 40ms); }
|
|
32
|
+
@media (prefers-reduced-motion: reduce) { .aui-011-m, .aui-011-m * { animation: none !important; transition-duration: 0s !important; } .aui-011-vp[data-state=closed] { visibility: hidden; } }
|
|
33
|
+
`;
|
|
34
|
+
var at = (n) => ({ "--i": n });
|
|
35
|
+
var PATHS = {
|
|
36
|
+
vase: "M6.5 2.5h3M7 2.5v2C4.5 6 4 8.5 4.5 11c.4 1.7 1.8 2.5 3.5 2.5s3.1-.8 3.5-2.5c.5-2.5 0-5-2.5-6.5v-2",
|
|
37
|
+
bowl: "M2.5 7h11c-.4 3.3-2.6 5.5-5.5 5.5S2.9 10.3 2.5 7ZM6 13.5h4",
|
|
38
|
+
jug: "M5 3h5l-.5 2c1.8 1.4 2 4.5 1.2 6.5-.4 1.2-1.5 2-2.7 2s-2.3-.8-2.7-2C4.5 9.5 4.7 6.4 6.5 5L5 3ZM11 6.5c1.8 0 2.4 2.6.4 3.4",
|
|
39
|
+
plate: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 10.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",
|
|
40
|
+
cup: "M3.5 5h7v4.5a3.5 3.5 0 0 1-7 0ZM10.5 6.5h1a1.75 1.75 0 0 1 0 3.5h-1.2",
|
|
41
|
+
gift: "M2.5 6h11v2.5h-11ZM3.5 8.5h9v5h-9ZM8 6v7.5M8 6C6.5 3 4.5 3.5 5 5.2M8 6c1.5-3 3.5-2.5 3 -.8",
|
|
42
|
+
pin: "M8 14s4.5-4 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 10 8 14 8 14ZM8 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",
|
|
43
|
+
brush: "M13 3 7.5 8.5M7.5 8.5c-1-1-3-.5-3.2 1.6-.2 1.6-.8 2.4-1.8 2.9 2.5.6 5.3-.3 5.6-2.3",
|
|
44
|
+
leaf: "M3 13c0-6 3.5-9.5 10-10 0 6.5-3.5 10-10 10ZM3 13l5-5",
|
|
45
|
+
box: "M2.5 5 8 2.5 13.5 5v6L8 13.5 2.5 11ZM2.5 5 8 7.5 13.5 5M8 7.5v6",
|
|
46
|
+
undo: "M5.5 4 2.5 7l3 3M2.5 7h7a4 4 0 0 1 0 8H7",
|
|
47
|
+
mail: "M2.5 4h11v8h-11ZM2.5 4.5 8 9l5.5-4.5"
|
|
48
|
+
};
|
|
49
|
+
var Glyph = ({ name, className = "h-3.5 w-3.5" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className, fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: PATHS[name] }) });
|
|
50
|
+
var Badge = ({ icon, size = "h-7 w-7" }) => /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[7px] bg-paper/[.06] text-paper shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_12%,transparent)]", size), children: /* @__PURE__ */ jsx(Glyph, { name: icon }) });
|
|
51
|
+
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5", className), fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 4 4 4-4 4" }) });
|
|
52
|
+
var LEFT = [
|
|
53
|
+
{
|
|
54
|
+
label: "Shop",
|
|
55
|
+
menu: {
|
|
56
|
+
type: "grid",
|
|
57
|
+
items: [
|
|
58
|
+
{ title: "Vases", description: "Tall forms, matte glazes", href: "#", icon: "vase" },
|
|
59
|
+
{ title: "Bowls", description: "Breakfast to serving", href: "#", icon: "bowl" },
|
|
60
|
+
{ title: "Jugs", description: "Pour without a drip", href: "#", icon: "jug" },
|
|
61
|
+
{ title: "Plates", description: "Sets of two and four", href: "#", icon: "plate" },
|
|
62
|
+
{ title: "Cups", description: "Espresso to mug", href: "#", icon: "cup" },
|
|
63
|
+
{ title: "Gift cards", description: "Sent by email, never expire", href: "#", icon: "gift" }
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "Studio",
|
|
69
|
+
menu: {
|
|
70
|
+
type: "columns",
|
|
71
|
+
columns: [
|
|
72
|
+
{
|
|
73
|
+
heading: "Visit",
|
|
74
|
+
items: [
|
|
75
|
+
{ title: "The studio", description: "Two people, one kiln, Porto", href: "#", icon: "pin" },
|
|
76
|
+
{ title: "Workshops", description: "Saturdays, six seats", href: "#", icon: "brush" },
|
|
77
|
+
{ title: "Care guide", description: "Keep the glaze bright", href: "#", icon: "leaf" }
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
heading: "Help",
|
|
82
|
+
items: [
|
|
83
|
+
{ title: "Shipping", description: "Packed by hand in a week", href: "#", icon: "box" },
|
|
84
|
+
{ title: "Returns", description: "30 days, no questions", href: "#", icon: "undo" },
|
|
85
|
+
{ title: "Contact", description: "We reply the same day", href: "#", icon: "mail" }
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
cta: { title: "Autumn collection", description: "14 pieces, fired twice.", label: "Shop the drop", href: "#" }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
var RIGHT = [
|
|
94
|
+
{ label: "Journal", href: "#" },
|
|
95
|
+
{ label: "Stores", href: "#" }
|
|
96
|
+
];
|
|
97
|
+
var tile = cx(
|
|
98
|
+
"group/t relative flex flex-col overflow-hidden rounded-[6px] p-3.5 transition-[opacity,box-shadow] duration-300",
|
|
99
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_9%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_20%,transparent)]",
|
|
100
|
+
"group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
|
|
101
|
+
FOCUS
|
|
102
|
+
);
|
|
103
|
+
function Panel({ menu }) {
|
|
104
|
+
if (menu.type === "grid")
|
|
105
|
+
return /* @__PURE__ */ jsx("div", { className: "group/m grid w-[min(600px,calc(100cqw-24px))] grid-cols-3 gap-2 p-2", children: menu.items.map((it, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("a", { href: it.href, style: at(n), className: cx(tile, HATCH, "aui-011-t h-[118px] justify-between"), children: [
|
|
106
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 bg-linear-to-b from-transparent from-40% to-[color-mix(in_srgb,var(--brand)_22%,transparent)] opacity-0 transition-opacity duration-500 group-hover/t:opacity-100" }),
|
|
107
|
+
it.icon && /* @__PURE__ */ jsx("span", { className: cx("relative transition-transform duration-500 group-hover/t:-translate-y-0.5 group-hover/t:text-brand", TW_EASE), children: /* @__PURE__ */ jsx(Badge, { icon: it.icon, size: "h-8 w-8" }) }),
|
|
108
|
+
/* @__PURE__ */ jsxs("span", { className: "relative", children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-[14px] font-medium text-paper", children: [
|
|
110
|
+
it.title,
|
|
111
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("-translate-x-0.5 text-paper/40 transition-[translate,color] duration-300 group-hover/t:translate-x-0 group-hover/t:text-paper", TW_EASE) })
|
|
112
|
+
] }),
|
|
113
|
+
it.description && /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-[12px] text-paper/55", children: it.description })
|
|
114
|
+
] })
|
|
115
|
+
] }) }, it.title)) });
|
|
116
|
+
return /* @__PURE__ */ jsxs("div", { className: "group/m grid w-[min(620px,calc(100cqw-24px))] grid-cols-[1fr_1fr_180px] gap-2 p-2", children: [
|
|
117
|
+
menu.columns.map((c, ci) => /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-0.5 pt-1.5", children: [
|
|
118
|
+
/* @__PURE__ */ jsx("span", { className: "mb-1 px-2.5 font-mono text-[10.5px] uppercase tracking-[0.08em] text-paper/45", children: c.heading }),
|
|
119
|
+
c.items.map((it, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
120
|
+
"a",
|
|
121
|
+
{
|
|
122
|
+
href: it.href,
|
|
123
|
+
style: at(ci * 3 + n),
|
|
124
|
+
className: cx(
|
|
125
|
+
"aui-011-t flex items-center gap-2.5 rounded-[8px] px-2.5 py-2 transition-[background-color,opacity] duration-200 hover:bg-paper/[.07] group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
|
|
126
|
+
FOCUS
|
|
127
|
+
),
|
|
128
|
+
children: [
|
|
129
|
+
it.icon && /* @__PURE__ */ jsx(Badge, { icon: it.icon }),
|
|
130
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
131
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium leading-tight text-paper", children: it.title }),
|
|
132
|
+
it.description && /* @__PURE__ */ jsx("span", { className: "truncate text-[12px] leading-snug text-paper/55", children: it.description })
|
|
133
|
+
] })
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
) }, it.title))
|
|
137
|
+
] }, c.heading)),
|
|
138
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
139
|
+
"a",
|
|
140
|
+
{
|
|
141
|
+
href: menu.cta.href,
|
|
142
|
+
style: at(6),
|
|
143
|
+
className: cx(
|
|
144
|
+
"aui-011-t group/t relative flex min-h-[176px] flex-col justify-end overflow-hidden rounded-[6px] bg-brand p-4 text-white transition-opacity duration-300 group-has-[a:hover]/m:opacity-75 hover:!opacity-100",
|
|
145
|
+
FOCUS
|
|
146
|
+
),
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-6 -top-4 text-white/25 transition-transform duration-700 group-hover/t:-translate-y-1 group-hover/t:rotate-6", TW_EASE), children: /* @__PURE__ */ jsx(Glyph, { name: "vase", className: "h-28 w-28" }) }),
|
|
149
|
+
/* @__PURE__ */ jsx("span", { className: "relative block text-[15px] font-medium leading-tight tracking-[-0.02em]", children: menu.cta.title }),
|
|
150
|
+
/* @__PURE__ */ jsx("span", { className: "relative mt-1 block text-[12.5px] text-white/75", children: menu.cta.description }),
|
|
151
|
+
/* @__PURE__ */ jsxs("span", { className: "relative mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
|
|
152
|
+
menu.cta.label,
|
|
153
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/t:translate-x-0.5", TW_EASE) })
|
|
154
|
+
] })
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
) })
|
|
158
|
+
] });
|
|
159
|
+
}
|
|
160
|
+
var flat = (m) => m.type === "grid" ? m.items : m.columns.flatMap((c) => c.items);
|
|
161
|
+
function useMega(labels, root, openOnMount, delay = 700) {
|
|
162
|
+
const [m, setM] = useState({ value: "", last: "", dir: "" });
|
|
163
|
+
const timer = useRef(void 0);
|
|
164
|
+
const hoverAt = useRef(0);
|
|
165
|
+
const current = useRef("");
|
|
166
|
+
const wasOpen = useRef(false);
|
|
167
|
+
const panelRef = useRef(null);
|
|
168
|
+
const innerRef = useRef(null);
|
|
169
|
+
const triggers = useRef(/* @__PURE__ */ new Map());
|
|
170
|
+
const open = (v) => {
|
|
171
|
+
clearTimeout(timer.current);
|
|
172
|
+
setM((p) => p.value === v ? p : { value: v, last: v, dir: p.value ? labels.indexOf(v) > labels.indexOf(p.value) ? "from-end" : "from-start" : "" });
|
|
173
|
+
};
|
|
174
|
+
const close = useCallback((focus = false) => {
|
|
175
|
+
clearTimeout(timer.current);
|
|
176
|
+
if (focus) triggers.current.get(current.current)?.focus();
|
|
177
|
+
setM((p) => p.value ? { ...p, value: "", dir: "" } : p);
|
|
178
|
+
}, []);
|
|
179
|
+
const later = () => {
|
|
180
|
+
clearTimeout(timer.current);
|
|
181
|
+
timer.current = setTimeout(() => close(), 150);
|
|
182
|
+
};
|
|
183
|
+
const cancel = () => clearTimeout(timer.current);
|
|
184
|
+
useEffect(() => {
|
|
185
|
+
current.current = m.value;
|
|
186
|
+
if (!m.value) return;
|
|
187
|
+
const down = (e) => !root.current?.contains(e.target) && close();
|
|
188
|
+
const key = (e) => e.key === "Escape" && close(true);
|
|
189
|
+
const focus = (e) => !root.current?.contains(e.target) && close();
|
|
190
|
+
document.addEventListener("pointerdown", down);
|
|
191
|
+
document.addEventListener("keydown", key);
|
|
192
|
+
document.addEventListener("focusin", focus);
|
|
193
|
+
return () => {
|
|
194
|
+
document.removeEventListener("pointerdown", down);
|
|
195
|
+
document.removeEventListener("keydown", key);
|
|
196
|
+
document.removeEventListener("focusin", focus);
|
|
197
|
+
};
|
|
198
|
+
}, [m.value, root, close]);
|
|
199
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
200
|
+
useEffect(() => {
|
|
201
|
+
if (!openOnMount) return;
|
|
202
|
+
const t = setTimeout(() => setM({ value: openOnMount, last: openOnMount, dir: "" }), delay);
|
|
203
|
+
return () => clearTimeout(t);
|
|
204
|
+
}, [openOnMount, delay]);
|
|
205
|
+
useLayoutEffect(() => {
|
|
206
|
+
const box = panelRef.current;
|
|
207
|
+
const el = innerRef.current?.firstElementChild;
|
|
208
|
+
if (!box || !el || !m.value) {
|
|
209
|
+
wasOpen.current = false;
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const fit = (instant) => {
|
|
213
|
+
if (instant) box.style.transition = "none";
|
|
214
|
+
box.style.width = `${el.offsetWidth}px`;
|
|
215
|
+
box.style.height = `${el.offsetHeight}px`;
|
|
216
|
+
if (instant) {
|
|
217
|
+
void box.offsetWidth;
|
|
218
|
+
box.style.transition = "";
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
fit(!wasOpen.current);
|
|
222
|
+
wasOpen.current = true;
|
|
223
|
+
const ro = new ResizeObserver(() => fit(true));
|
|
224
|
+
ro.observe(el);
|
|
225
|
+
return () => ro.disconnect();
|
|
226
|
+
}, [m.value]);
|
|
227
|
+
const register = (label) => (el) => {
|
|
228
|
+
if (el) triggers.current.set(label, el);
|
|
229
|
+
else triggers.current.delete(label);
|
|
230
|
+
};
|
|
231
|
+
const enter = (label, mouse) => {
|
|
232
|
+
if (!mouse) return;
|
|
233
|
+
if (current.current !== label) hoverAt.current = Date.now();
|
|
234
|
+
open(label);
|
|
235
|
+
};
|
|
236
|
+
const click = (label) => m.value === label && Date.now() - hoverAt.current > 400 ? close() : open(label);
|
|
237
|
+
const focusFirst = () => requestAnimationFrame(() => panelRef.current?.querySelector("a")?.focus());
|
|
238
|
+
const triggerKeys = (label, e) => {
|
|
239
|
+
if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey && m.value === label) {
|
|
240
|
+
e.preventDefault();
|
|
241
|
+
open(label);
|
|
242
|
+
focusFirst();
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const panelKeys = (e) => {
|
|
246
|
+
const first = panelRef.current?.querySelector("a");
|
|
247
|
+
if (e.key === "Tab" && e.shiftKey && e.target === first) {
|
|
248
|
+
e.preventDefault();
|
|
249
|
+
triggers.current.get(current.current)?.focus();
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
const ended = (e) => {
|
|
253
|
+
if (e.target === e.currentTarget) setM((p) => p.value ? p : { ...p, last: "" });
|
|
254
|
+
};
|
|
255
|
+
return { m, panelRef, innerRef, close, later, cancel, register, enter, click, triggerKeys, panelKeys, ended };
|
|
256
|
+
}
|
|
257
|
+
function CenteredNavbar({
|
|
258
|
+
wordmark = "Astabyte",
|
|
259
|
+
brandHref = "/",
|
|
260
|
+
left = LEFT,
|
|
261
|
+
right = RIGHT,
|
|
262
|
+
secondary = { label: "Sign in", href: "#" },
|
|
263
|
+
cta = { label: "Bag \xB7 2", href: "#" },
|
|
264
|
+
active,
|
|
265
|
+
openOnMount,
|
|
266
|
+
className
|
|
267
|
+
}) {
|
|
268
|
+
const [sheet, setSheet] = useState(false);
|
|
269
|
+
const [section, setSection] = useState(null);
|
|
270
|
+
const root = useRef(null);
|
|
271
|
+
const { panelRef: megaPanel, innerRef: megaInner, ...mega } = useMega(left.map((x) => x.label), root, openOnMount, 900);
|
|
272
|
+
const value = mega.m.value;
|
|
273
|
+
const lastMenu = left.find((x) => x.label === mega.m.last)?.menu;
|
|
274
|
+
const mark = useRef(null);
|
|
275
|
+
const burger = useRef(null);
|
|
276
|
+
const id = useId();
|
|
277
|
+
const close = useCallback((focus) => {
|
|
278
|
+
setSheet(false);
|
|
279
|
+
if (focus) burger.current?.focus();
|
|
280
|
+
}, []);
|
|
281
|
+
useEffect(() => {
|
|
282
|
+
if (!sheet) return;
|
|
283
|
+
const down = (e) => !root.current?.contains(e.target) && close(false);
|
|
284
|
+
const key = (e) => e.key === "Escape" && close(true);
|
|
285
|
+
document.addEventListener("pointerdown", down);
|
|
286
|
+
document.addEventListener("keydown", key);
|
|
287
|
+
return () => {
|
|
288
|
+
document.removeEventListener("pointerdown", down);
|
|
289
|
+
document.removeEventListener("keydown", key);
|
|
290
|
+
};
|
|
291
|
+
}, [sheet, close]);
|
|
292
|
+
const ripple = (x) => {
|
|
293
|
+
const el = mark.current;
|
|
294
|
+
if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
295
|
+
for (const s of el.querySelectorAll("[data-l]")) {
|
|
296
|
+
if (x === null) {
|
|
297
|
+
s.style.transform = "";
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
const r = s.getBoundingClientRect();
|
|
301
|
+
const k = Math.max(0, 1 - Math.abs(x - (r.left + r.width / 2)) / (r.width * 2.4));
|
|
302
|
+
s.style.transform = `translateY(${-k * 24}%)`;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const pill = (on) => cx(
|
|
306
|
+
"group/p flex h-8 items-center gap-1 rounded-lg px-2.5 text-[14px] font-medium transition-colors duration-200 hover:bg-paper/[.08] hover:text-paper aria-expanded:bg-paper/[.08] aria-expanded:text-paper",
|
|
307
|
+
FOCUS,
|
|
308
|
+
on ? "text-paper" : "text-paper/65"
|
|
309
|
+
);
|
|
310
|
+
const dot = /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "ml-0.5 h-1 w-1 rounded-full bg-brand" });
|
|
311
|
+
return /* @__PURE__ */ jsxs("header", { ref: root, className: cx("aui-011-m @container sticky top-0 z-30 w-full bg-ink text-paper shadow-[0_1px_0_color-mix(in_srgb,var(--paper)_10%,transparent)]", className), children: [
|
|
312
|
+
/* @__PURE__ */ jsx("style", { href: "asta-navbar-aui-011", precedence: "asta", children: CSS }),
|
|
313
|
+
/* @__PURE__ */ jsxs("div", { className: "relative mx-auto grid h-14 max-w-[1120px] grid-cols-[1fr_auto_1fr] items-center gap-3 px-4", children: [
|
|
314
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
315
|
+
/* @__PURE__ */ jsxs(
|
|
316
|
+
"button",
|
|
317
|
+
{
|
|
318
|
+
ref: burger,
|
|
319
|
+
type: "button",
|
|
320
|
+
"aria-label": sheet ? "Close menu" : "Open menu",
|
|
321
|
+
"aria-expanded": sheet,
|
|
322
|
+
"aria-controls": id,
|
|
323
|
+
onClick: () => setSheet((v) => !v),
|
|
324
|
+
className: cx("relative -ml-1 flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-paper/10 @min-[640px]:hidden", FOCUS),
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-paper transition-transform duration-500", TW_EASE, sheet ? "rotate-45" : "-translate-y-[3.5px]") }),
|
|
327
|
+
/* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-paper transition-transform duration-500", TW_EASE, sheet ? "-rotate-45" : "translate-y-[3.5px]") })
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
),
|
|
331
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": "Shop", className: "hidden @min-[640px]:block", children: /* @__PURE__ */ jsx("ul", { className: "-ml-2.5 flex items-center gap-px", children: left.map((it, n) => /* @__PURE__ */ jsx("li", { className: "aui-011-in", style: at(n), children: it.menu ? /* @__PURE__ */ jsx(Fragment2, { children: /* @__PURE__ */ jsxs(
|
|
332
|
+
"button",
|
|
333
|
+
{
|
|
334
|
+
ref: mega.register(it.label),
|
|
335
|
+
type: "button",
|
|
336
|
+
"aria-expanded": value === it.label,
|
|
337
|
+
"aria-controls": `${id}-m${n}`,
|
|
338
|
+
onPointerEnter: (e) => mega.enter(it.label, e.pointerType === "mouse"),
|
|
339
|
+
onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
|
|
340
|
+
onClick: () => mega.click(it.label),
|
|
341
|
+
onKeyDown: (e) => mega.triggerKeys(it.label, e),
|
|
342
|
+
className: cx(pill(active === n), "pr-2"),
|
|
343
|
+
children: [
|
|
344
|
+
it.label,
|
|
345
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("rotate-90 text-paper/40 transition-transform duration-300 group-aria-expanded/p:-rotate-90", TW_EASE) })
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
) }) : /* @__PURE__ */ jsxs("a", { href: it.href, "aria-current": active === n ? "page" : void 0, className: pill(active === n), children: [
|
|
349
|
+
it.label,
|
|
350
|
+
active === n && dot
|
|
351
|
+
] }) }, it.label)) }) }),
|
|
352
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 top-full z-40 hidden justify-center pt-1.5 @min-[640px]:flex", children: mega.m.last && /* @__PURE__ */ jsx(
|
|
353
|
+
"div",
|
|
354
|
+
{
|
|
355
|
+
ref: megaPanel,
|
|
356
|
+
"data-state": value ? "open" : "closed",
|
|
357
|
+
onPointerEnter: mega.cancel,
|
|
358
|
+
onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
|
|
359
|
+
onClick: (e) => e.target.closest("a") && mega.close(),
|
|
360
|
+
onKeyDown: mega.panelKeys,
|
|
361
|
+
onAnimationEnd: mega.ended,
|
|
362
|
+
className: cx(
|
|
363
|
+
"aui-011-vp pointer-events-auto relative overflow-hidden rounded-[8px] bg-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_12%,transparent),0_20px_44px_-14px_rgb(0_0_0/0.55)]",
|
|
364
|
+
"transition-[width,height] duration-300 data-[state=closed]:pointer-events-none",
|
|
365
|
+
TW_EASE
|
|
366
|
+
),
|
|
367
|
+
children: /* @__PURE__ */ jsx("div", { ref: megaInner, id: `${id}-m${left.findIndex((x) => x.label === mega.m.last)}`, "data-motion": mega.m.dir || void 0, className: "aui-011-c absolute left-0 top-0", children: lastMenu && /* @__PURE__ */ jsx(Panel, { menu: lastMenu }) }, mega.m.last)
|
|
368
|
+
}
|
|
369
|
+
) })
|
|
370
|
+
] }),
|
|
371
|
+
/* @__PURE__ */ jsxs(
|
|
372
|
+
"a",
|
|
373
|
+
{
|
|
374
|
+
ref: mark,
|
|
375
|
+
href: brandHref,
|
|
376
|
+
"aria-label": wordmark,
|
|
377
|
+
onPointerMove: (e) => e.pointerType === "mouse" && ripple(e.clientX),
|
|
378
|
+
onPointerLeave: () => ripple(null),
|
|
379
|
+
className: cx("flex select-none items-end overflow-hidden rounded-md px-1 pb-0.5 pt-1 text-[20px] font-semibold leading-none tracking-[-0.06em]", FOCUS),
|
|
380
|
+
children: [
|
|
381
|
+
wordmark.split("").map((c, n) => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "aui-011-l", style: at(n), children: /* @__PURE__ */ jsx("span", { "data-l": true, className: cx("inline-block transition-transform duration-500", TW_EASE), children: c === " " ? " " : c }) }, n)),
|
|
382
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "aui-011-l mb-[2px] ml-0.5 h-[5px] w-[5px] rounded-full bg-brand", style: at(wordmark.length) })
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-1.5", children: [
|
|
387
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": "More", className: "mr-auto hidden @min-[640px]:block", children: /* @__PURE__ */ jsx("ul", { className: "flex items-center gap-px", children: right.map((l, n) => /* @__PURE__ */ jsx("li", { className: "aui-011-in", style: at(left.length + n + 2), children: /* @__PURE__ */ jsxs("a", { href: l.href, "aria-current": active === left.length + n ? "page" : void 0, className: pill(active === left.length + n), children: [
|
|
388
|
+
l.label,
|
|
389
|
+
active === left.length + n && dot
|
|
390
|
+
] }) }, l.label)) }) }),
|
|
391
|
+
secondary && /* @__PURE__ */ jsx(
|
|
392
|
+
"a",
|
|
393
|
+
{
|
|
394
|
+
href: secondary.href,
|
|
395
|
+
style: at(left.length + right.length + 2),
|
|
396
|
+
className: cx("aui-011-in hidden h-8 items-center rounded-lg px-3 text-[13px] font-medium text-paper/65 transition-colors hover:bg-paper/[.08] hover:text-paper @min-[860px]:inline-flex", FOCUS),
|
|
397
|
+
children: secondary.label
|
|
398
|
+
}
|
|
399
|
+
),
|
|
400
|
+
/* @__PURE__ */ jsxs(
|
|
401
|
+
"a",
|
|
402
|
+
{
|
|
403
|
+
href: cta.href,
|
|
404
|
+
style: at(left.length + right.length + 3),
|
|
405
|
+
className: cx(
|
|
406
|
+
"aui-011-in group/cta inline-flex h-8 items-center gap-1 rounded-lg bg-paper pl-3 pr-2.5 text-[13px] font-medium text-ink transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97]",
|
|
407
|
+
TW_EASE,
|
|
408
|
+
FOCUS
|
|
409
|
+
),
|
|
410
|
+
children: [
|
|
411
|
+
cta.label,
|
|
412
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/cta:translate-x-0.5", TW_EASE) })
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
)
|
|
416
|
+
] })
|
|
417
|
+
] }),
|
|
418
|
+
sheet && /* @__PURE__ */ jsxs("nav", { id, "aria-label": "Main", className: "aui-011-sheet absolute inset-x-0 top-full max-h-[70vh] overflow-y-auto bg-ink pb-4 shadow-[0_24px_40px_-24px_rgb(0_0_0/0.6)] @min-[640px]:hidden", children: [
|
|
419
|
+
left.map(
|
|
420
|
+
(it, n) => it.menu ? /* @__PURE__ */ jsxs("div", { className: "aui-011-in shadow-[0_1px_0_color-mix(in_srgb,var(--paper)_9%,transparent)]", style: at(n), children: [
|
|
421
|
+
/* @__PURE__ */ jsxs(
|
|
422
|
+
"button",
|
|
423
|
+
{
|
|
424
|
+
type: "button",
|
|
425
|
+
"aria-expanded": section === it.label,
|
|
426
|
+
onClick: () => setSection((s) => s === it.label ? null : it.label),
|
|
427
|
+
className: cx("flex h-12 w-full items-center justify-between px-4 text-[16px] font-medium", FOCUS),
|
|
428
|
+
children: [
|
|
429
|
+
it.label,
|
|
430
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("text-paper/45 transition-transform duration-300", TW_EASE, section === it.label ? "-rotate-90" : "rotate-90") })
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
),
|
|
434
|
+
/* @__PURE__ */ jsx("div", { className: cx("grid transition-[grid-template-rows] duration-500", TW_EASE, section === it.label ? "grid-rows-[1fr]" : "grid-rows-[0fr]"), children: /* @__PURE__ */ jsxs("ul", { className: "overflow-hidden px-2", inert: section !== it.label || void 0, children: [
|
|
435
|
+
flat(it.menu).map((t) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: t.href, onClick: () => close(false), className: cx("flex items-center gap-3 rounded-[8px] px-2 py-2 hover:bg-paper/[.07]", FOCUS), children: [
|
|
436
|
+
t.icon && /* @__PURE__ */ jsx(Badge, { icon: t.icon }),
|
|
437
|
+
/* @__PURE__ */ jsxs("span", { className: "flex flex-col", children: [
|
|
438
|
+
/* @__PURE__ */ jsx("span", { className: "text-[14px] font-medium", children: t.title }),
|
|
439
|
+
t.description && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-paper/55", children: t.description })
|
|
440
|
+
] })
|
|
441
|
+
] }) }, t.title)),
|
|
442
|
+
/* @__PURE__ */ jsx("li", { "aria-hidden": true, className: "h-2" })
|
|
443
|
+
] }) })
|
|
444
|
+
] }, it.label) : /* @__PURE__ */ jsx("a", { href: it.href, onClick: () => close(false), style: at(n), className: cx("aui-011-in flex h-12 items-center px-4 text-[16px] font-medium shadow-[0_1px_0_color-mix(in_srgb,var(--paper)_9%,transparent)]", FOCUS), children: it.label }, it.label)
|
|
445
|
+
),
|
|
446
|
+
right.map((l, n) => /* @__PURE__ */ jsxs(
|
|
447
|
+
"a",
|
|
448
|
+
{
|
|
449
|
+
href: l.href,
|
|
450
|
+
onClick: () => close(false),
|
|
451
|
+
style: at(left.length + n),
|
|
452
|
+
className: cx("aui-011-in flex h-12 items-center justify-between px-4 text-[16px] font-medium shadow-[0_1px_0_color-mix(in_srgb,var(--paper)_9%,transparent)]", FOCUS),
|
|
453
|
+
children: [
|
|
454
|
+
l.label,
|
|
455
|
+
active === left.length + n && /* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 rounded-full bg-brand" })
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
l.label
|
|
459
|
+
)),
|
|
460
|
+
secondary && /* @__PURE__ */ jsx("div", { className: "aui-011-in mt-4 px-4", style: at(left.length + right.length), children: /* @__PURE__ */ jsx("a", { href: secondary.href, className: cx("flex h-10 items-center justify-center rounded-lg bg-paper/[.08] text-[14px] font-medium", FOCUS), children: secondary.label }) })
|
|
461
|
+
] })
|
|
462
|
+
] });
|
|
463
|
+
}
|
|
464
|
+
var navbar_aui_011_default = CenteredNavbar;
|
|
465
|
+
|
|
466
|
+
export {
|
|
467
|
+
CenteredNavbar,
|
|
468
|
+
navbar_aui_011_default
|
|
469
|
+
};
|