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,158 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/radio-group-aui-055.tsx
|
|
4
|
+
import { useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
8
|
+
var SPRING = "cubic-bezier(.34,1.56,.64,1)";
|
|
9
|
+
var CSS = `
|
|
10
|
+
@keyframes aui055-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
|
|
11
|
+
@keyframes aui055-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
12
|
+
@media (prefers-reduced-motion: reduce) { .aui055 * { animation: none !important; transition: none !important } }
|
|
13
|
+
`;
|
|
14
|
+
var rise = (i) => ({ animation: `aui055-rise .6s ${EASE} ${80 + i * 50}ms both` });
|
|
15
|
+
var PLANS = [
|
|
16
|
+
{ value: "solo", name: "Solo", description: "One person, unlimited docs", price: 0 },
|
|
17
|
+
{ value: "team", name: "Team", description: "Shared spaces, guests and history", price: 12, tag: "Popular" },
|
|
18
|
+
{ value: "business", name: "Business", description: "SSO, audit log, priority support", price: 28 }
|
|
19
|
+
];
|
|
20
|
+
function Roll({ value }) {
|
|
21
|
+
const chars = String(value).split("");
|
|
22
|
+
return /* @__PURE__ */ jsxs("span", { className: "inline-flex tabular-nums", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: value }),
|
|
24
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-flex", children: chars.map((ch, i) => /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.6em] overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-700", style: { transform: `translateY(${-Number(ch) * 10}%)`, transitionTimingFunction: EASE, transitionDelay: `${(chars.length - 1 - i) * 50}ms` }, children: Array.from({ length: 10 }, (_, n) => /* @__PURE__ */ jsx("span", { className: "block h-[1em] text-center leading-[1em]", children: n }, n)) }) }, chars.length - i)) })
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seats = 5, currency = "$", title = "Choose a plan", name, onContinue, className }) {
|
|
28
|
+
const uid = useId();
|
|
29
|
+
const [inner, setInner] = useState(defaultValue);
|
|
30
|
+
const current = value ?? inner;
|
|
31
|
+
const index = Math.max(0, plans.findIndex((p) => p.value === current));
|
|
32
|
+
const plan = plans[index];
|
|
33
|
+
const rows = useRef([]);
|
|
34
|
+
const list = useRef(null);
|
|
35
|
+
const drop = useRef(null);
|
|
36
|
+
const prevIndex = useRef(index);
|
|
37
|
+
const [ring, setRing] = useState(null);
|
|
38
|
+
useLayoutEffect(() => {
|
|
39
|
+
const measure = () => {
|
|
40
|
+
const el = rows.current[index];
|
|
41
|
+
if (el) setRing({ y: el.offsetTop, h: el.offsetHeight });
|
|
42
|
+
};
|
|
43
|
+
measure();
|
|
44
|
+
if (prevIndex.current !== index && drop.current && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
45
|
+
drop.current.animate([{ transform: "scale(1, 1)" }, { transform: "scale(.97, 1.14)", offset: 0.35 }, { transform: "scale(1, 1)" }], { duration: 560, easing: EASE });
|
|
46
|
+
}
|
|
47
|
+
prevIndex.current = index;
|
|
48
|
+
const ro = new ResizeObserver(measure);
|
|
49
|
+
if (list.current) ro.observe(list.current);
|
|
50
|
+
return () => ro.disconnect();
|
|
51
|
+
}, [index]);
|
|
52
|
+
const pick = (v) => {
|
|
53
|
+
if (value === void 0) setInner(v);
|
|
54
|
+
onChange?.(v);
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsxs(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: cx(
|
|
60
|
+
"aui055 w-full max-w-[440px] rounded-[14px] bg-paper p-5 sm:p-6",
|
|
61
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)]",
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx("style", { href: "asta-aui055", precedence: "asta", children: CSS }),
|
|
66
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-end justify-between", style: rise(0), children: [
|
|
67
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
68
|
+
/* @__PURE__ */ jsx("p", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-mute", children: "Astabyte \xB7 Billing" }),
|
|
69
|
+
/* @__PURE__ */ jsx("h3", { id: `${uid}-t`, className: "mt-1.5 text-[20px] font-medium leading-tight tracking-[-0.02em] text-ink", children: title })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ jsxs("p", { className: "pb-0.5 text-[12.5px] text-mute", children: [
|
|
72
|
+
seats,
|
|
73
|
+
" seats"
|
|
74
|
+
] })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { ref: list, role: "radiogroup", "aria-labelledby": `${uid}-t`, className: "relative mt-4 flex flex-col gap-2", children: [
|
|
77
|
+
ring && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 top-0 z-10 transition-transform duration-500", style: { height: ring.h, transform: `translateY(${ring.y}px)`, transitionTimingFunction: EASE }, children: /* @__PURE__ */ jsx(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
ref: drop,
|
|
81
|
+
style: { animation: `aui055-fade .5s ${EASE} 420ms both` },
|
|
82
|
+
className: "block h-full w-full rounded-[12px] shadow-[inset_0_0_0_2px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_13%,transparent),0_14px_30px_-18px_var(--brand)]"
|
|
83
|
+
}
|
|
84
|
+
) }),
|
|
85
|
+
plans.map((p, i) => {
|
|
86
|
+
const on = i === index;
|
|
87
|
+
const id = `${uid}-${p.value}`;
|
|
88
|
+
return /* @__PURE__ */ jsxs(
|
|
89
|
+
"label",
|
|
90
|
+
{
|
|
91
|
+
ref: (el) => {
|
|
92
|
+
rows.current[i] = el;
|
|
93
|
+
},
|
|
94
|
+
htmlFor: id,
|
|
95
|
+
style: rise(i + 1),
|
|
96
|
+
className: "group/plan relative flex cursor-pointer select-none items-center gap-3.5 rounded-[12px] bg-paper px-4 py-3.5 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)] transition-transform duration-200 active:scale-[0.99] has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-[3px] has-[:focus-visible]:outline-brand",
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsx("input", { id, type: "radio", name: name ?? uid, value: p.value, checked: on, onChange: () => pick(p.value), className: "sr-only" }),
|
|
99
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 rounded-[12px] bg-paper-2 opacity-0 transition-opacity duration-300 group-hover/plan:opacity-60" }),
|
|
100
|
+
/* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative grid h-[18px] w-[18px] shrink-0 place-items-center rounded-full shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_24%,transparent)]", children: [
|
|
101
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand transition-[transform,opacity] duration-300", style: { opacity: on ? 1 : 0, transform: on ? "scale(1)" : "scale(0.5)", transitionTimingFunction: SPRING } }),
|
|
102
|
+
/* @__PURE__ */ jsx("span", { className: "relative h-1.5 w-1.5 rounded-full bg-white transition-transform duration-300", style: { transform: on ? "scale(1)" : "scale(0)", transitionTimingFunction: SPRING, transitionDelay: on ? "80ms" : "0ms" } })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1", children: [
|
|
105
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
|
|
106
|
+
/* @__PURE__ */ jsx("span", { className: "text-[15px] font-medium tracking-[-0.01em] text-ink", children: p.name }),
|
|
107
|
+
p.tag && /* @__PURE__ */ jsx("span", { className: "rounded-[5px] bg-[color-mix(in_srgb,var(--brand)_10%,transparent)] px-1.5 py-[1px] text-[10.5px] font-medium tracking-[0.02em] text-brand", children: p.tag })
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ jsx("span", { className: "mt-0.5 block truncate text-[12.5px] text-mute", children: p.description })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsxs("span", { className: "relative shrink-0 text-right", children: [
|
|
112
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[22px] font-medium leading-none tracking-[-0.04em] text-ink", children: [
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "mr-px align-top text-[12px] tracking-normal text-mute", children: currency }),
|
|
114
|
+
p.price
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ jsx("span", { className: "mt-1 block text-[11px] text-mute", children: p.price ? "per seat" : "free" })
|
|
117
|
+
] })
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
p.value
|
|
121
|
+
);
|
|
122
|
+
})
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-5 flex items-center justify-between gap-4", style: rise(plans.length + 1), children: [
|
|
125
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
126
|
+
/* @__PURE__ */ jsx("p", { className: "text-[12px] text-mute", children: "Due today" }),
|
|
127
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-1 flex items-start text-[28px] font-medium leading-none tracking-[-0.04em] text-ink", children: [
|
|
128
|
+
/* @__PURE__ */ jsx("span", { className: "mr-0.5 mt-[3px] text-[13px] tracking-normal text-mute", children: currency }),
|
|
129
|
+
/* @__PURE__ */ jsx(Roll, { value: plan.price * seats })
|
|
130
|
+
] })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ jsxs(
|
|
133
|
+
"button",
|
|
134
|
+
{
|
|
135
|
+
type: "button",
|
|
136
|
+
onClick: () => onContinue?.(plan.value),
|
|
137
|
+
className: "group/cta relative inline-flex h-10 items-center gap-1.5 rounded-[8px] bg-brand pl-4 pr-3.5 text-[13.5px] font-medium text-white shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_6px_16px_-8px_var(--brand)] outline-none transition-transform duration-200 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsx("span", { children: "Continue with" }),
|
|
140
|
+
/* @__PURE__ */ jsxs("span", { className: "relative block h-5 overflow-hidden", "aria-live": "polite", children: [
|
|
141
|
+
/* @__PURE__ */ jsx("span", { className: "invisible block h-5 leading-5", children: plans.reduce((a, p) => p.name.length > a.length ? p.name : a, "") }),
|
|
142
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${-index * 20}px)`, transitionTimingFunction: EASE }, children: plans.map((p, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": i !== index, className: "block h-5 text-left leading-5", children: p.name }, p.value)) })
|
|
143
|
+
] }),
|
|
144
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3 8h9.5M8.5 4l4 4-4 4" }) })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
var radio_group_aui_055_default = PlanRadio;
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
PlanRadio,
|
|
157
|
+
radio_group_aui_055_default
|
|
158
|
+
};
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/date-picker-aui-051.tsx
|
|
4
|
+
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
8
|
+
var CSS = `
|
|
9
|
+
@keyframes aui051-pop { from { opacity: 0; transform: translateY(var(--aui051-y, -6px)) scale(.97) } }
|
|
10
|
+
@keyframes aui051-char { from { opacity: 0; transform: translateY(80%) } }
|
|
11
|
+
@keyframes aui051-row { from { opacity: 0; transform: translateX(-6px) } }
|
|
12
|
+
@keyframes aui051-next { from { opacity: 0; transform: translateX(22px) } }
|
|
13
|
+
@keyframes aui051-prev { from { opacity: 0; transform: translateX(-22px) } }
|
|
14
|
+
@keyframes aui051-dot { 0% { opacity: 0; transform: scale(.5) } 60% { opacity: 1; transform: scale(1.1) } 100% { transform: none } }
|
|
15
|
+
@media (prefers-reduced-motion: reduce) { .aui051 *, .aui051 { animation: none !important; transition: none !important } }
|
|
16
|
+
`;
|
|
17
|
+
var day0 = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
18
|
+
var addDays = (d, n) => new Date(d.getFullYear(), d.getMonth(), d.getDate() + n);
|
|
19
|
+
var month0 = (d) => new Date(d.getFullYear(), d.getMonth(), 1);
|
|
20
|
+
var addMonths = (d, n) => new Date(d.getFullYear(), d.getMonth() + n, 1);
|
|
21
|
+
var same = (a, b) => !!a && !!b && day0(a).getTime() === day0(b).getTime();
|
|
22
|
+
var key = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
23
|
+
var PRESETS = [
|
|
24
|
+
{ label: "Today", get: (t) => t },
|
|
25
|
+
{ label: "Tomorrow", get: (t) => addDays(t, 1) },
|
|
26
|
+
{ label: "This weekend", get: (t) => addDays(t, (6 - t.getDay() + 7) % 7) },
|
|
27
|
+
{ label: "Next week", get: (t) => addDays(t, (8 - t.getDay()) % 7 || 7) },
|
|
28
|
+
{ label: "In two weeks", get: (t) => addDays(t, 14) },
|
|
29
|
+
{ label: "End of month", get: (t) => new Date(t.getFullYear(), t.getMonth() + 1, 0) },
|
|
30
|
+
{ label: "No date", get: () => null }
|
|
31
|
+
];
|
|
32
|
+
function clipBox(el) {
|
|
33
|
+
for (let p = el.parentElement; p && p !== document.body; p = p.parentElement) {
|
|
34
|
+
const s = getComputedStyle(p);
|
|
35
|
+
if (/hidden|auto|scroll|clip/.test(s.overflowY + s.overflowX)) return p.getBoundingClientRect();
|
|
36
|
+
}
|
|
37
|
+
return { top: 0, bottom: window.innerHeight, left: 0, right: window.innerWidth };
|
|
38
|
+
}
|
|
39
|
+
function place(el, h) {
|
|
40
|
+
const r = el.getBoundingClientRect();
|
|
41
|
+
const c = clipBox(el);
|
|
42
|
+
const below = c.bottom - r.bottom;
|
|
43
|
+
const w = Math.min(440, c.right - c.left - 16);
|
|
44
|
+
const dx = Math.max(c.left + 8 - r.left, Math.min(0, c.right - 8 - (r.left + w)));
|
|
45
|
+
return { down: below >= h || below >= r.top - c.top, w, dx };
|
|
46
|
+
}
|
|
47
|
+
function Roll({ text }) {
|
|
48
|
+
return /* @__PURE__ */ jsx("span", { className: "inline-flex overflow-hidden whitespace-pre", "aria-hidden": true, children: [...text].map((ch, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui051-char .5s ${EASE} ${i * 18}ms both` }, children: ch }, i)) }, text);
|
|
49
|
+
}
|
|
50
|
+
function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, label = "Due", locale = "en-US", weekStartsOn = 1, defaultOpen = false, name, disabled, className }) {
|
|
51
|
+
const [today] = useState(() => day0(/* @__PURE__ */ new Date()));
|
|
52
|
+
const [inner, setInner] = useState(() => defaultValue === void 0 ? addDays(today, (8 - today.getDay()) % 7 || 7) : defaultValue);
|
|
53
|
+
const current = value !== void 0 ? value : inner;
|
|
54
|
+
const sel = current ? day0(current) : null;
|
|
55
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
56
|
+
const [down, setDown] = useState(true);
|
|
57
|
+
const [view, setView] = useState(() => month0(sel ?? today));
|
|
58
|
+
const [dir, setDir] = useState(0);
|
|
59
|
+
const [focus, setFocus] = useState(() => sel ?? today);
|
|
60
|
+
const root = useRef(null);
|
|
61
|
+
const btn = useRef(null);
|
|
62
|
+
const panel = useRef(null);
|
|
63
|
+
const grid = useRef(null);
|
|
64
|
+
const steer = useRef(false);
|
|
65
|
+
const wantFocus = useRef(false);
|
|
66
|
+
const closeT = useRef(void 0);
|
|
67
|
+
const uid = useId();
|
|
68
|
+
const fmt = useMemo(() => new Intl.DateTimeFormat(locale, { weekday: "short", month: "short", day: "numeric" }), [locale]);
|
|
69
|
+
const hintFmt = useMemo(() => new Intl.DateTimeFormat(locale, { weekday: "short", day: "numeric" }), [locale]);
|
|
70
|
+
const title = useMemo(() => new Intl.DateTimeFormat(locale, { month: "long", year: "numeric" }), [locale]);
|
|
71
|
+
const full = useMemo(() => new Intl.DateTimeFormat(locale, { weekday: "long", month: "long", day: "numeric", year: "numeric" }), [locale]);
|
|
72
|
+
const weekdays = useMemo(() => {
|
|
73
|
+
const f = new Intl.DateTimeFormat(locale, { weekday: "narrow" });
|
|
74
|
+
const l = new Intl.DateTimeFormat(locale, { weekday: "long" });
|
|
75
|
+
return Array.from({ length: 7 }, (_, i) => {
|
|
76
|
+
const d = new Date(2026, 10, 1 + (i + weekStartsOn) % 7);
|
|
77
|
+
return { s: f.format(d), l: l.format(d) };
|
|
78
|
+
});
|
|
79
|
+
}, [locale, weekStartsOn]);
|
|
80
|
+
const rel = useMemo(() => new Intl.RelativeTimeFormat(locale, { numeric: "auto" }), [locale]);
|
|
81
|
+
useEffect(() => () => clearTimeout(closeT.current), []);
|
|
82
|
+
useLayoutEffect(() => {
|
|
83
|
+
if (!open || !btn.current || !panel.current) return;
|
|
84
|
+
const { w, dx } = place(btn.current, 270);
|
|
85
|
+
panel.current.style.width = `${w}px`;
|
|
86
|
+
panel.current.style.left = `${dx}px`;
|
|
87
|
+
}, [open]);
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (!open) return;
|
|
90
|
+
const onDown = (e) => {
|
|
91
|
+
if (!root.current?.contains(e.target)) setOpen(false);
|
|
92
|
+
};
|
|
93
|
+
document.addEventListener("pointerdown", onDown);
|
|
94
|
+
return () => document.removeEventListener("pointerdown", onDown);
|
|
95
|
+
}, [open]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (!open || !wantFocus.current) return;
|
|
98
|
+
wantFocus.current = false;
|
|
99
|
+
const p = panel.current;
|
|
100
|
+
(p?.querySelector("[data-preset][aria-pressed=true]") ?? p?.querySelector("[data-preset]"))?.focus({ preventScroll: true });
|
|
101
|
+
}, [open]);
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
if (open && steer.current) grid.current?.querySelector(`[data-day="${key(focus)}"]`)?.focus({ preventScroll: true });
|
|
104
|
+
}, [open, focus, view]);
|
|
105
|
+
const show = () => {
|
|
106
|
+
if (disabled || !btn.current) return;
|
|
107
|
+
clearTimeout(closeT.current);
|
|
108
|
+
setDown(place(btn.current, 270).down);
|
|
109
|
+
setView(month0(sel ?? today));
|
|
110
|
+
setFocus(sel ?? today);
|
|
111
|
+
setDir(0);
|
|
112
|
+
steer.current = false;
|
|
113
|
+
wantFocus.current = true;
|
|
114
|
+
setOpen(true);
|
|
115
|
+
};
|
|
116
|
+
const close = (refocus = true) => {
|
|
117
|
+
clearTimeout(closeT.current);
|
|
118
|
+
setOpen(false);
|
|
119
|
+
if (refocus) btn.current?.focus({ preventScroll: true });
|
|
120
|
+
};
|
|
121
|
+
const commit = (d, linger) => {
|
|
122
|
+
if (value === void 0) setInner(d);
|
|
123
|
+
onChange?.(d);
|
|
124
|
+
if (d) {
|
|
125
|
+
if (d.getMonth() !== view.getMonth() || d.getFullYear() !== view.getFullYear()) {
|
|
126
|
+
setDir(d > view ? 1 : -1);
|
|
127
|
+
setView(month0(d));
|
|
128
|
+
}
|
|
129
|
+
setFocus(d);
|
|
130
|
+
}
|
|
131
|
+
clearTimeout(closeT.current);
|
|
132
|
+
closeT.current = setTimeout(() => close(), linger ? 420 : 160);
|
|
133
|
+
};
|
|
134
|
+
const flip = (n) => {
|
|
135
|
+
setDir(n > 0 ? 1 : -1);
|
|
136
|
+
setView((v) => addMonths(v, n));
|
|
137
|
+
};
|
|
138
|
+
const moveTo = (d) => {
|
|
139
|
+
if (d.getMonth() !== view.getMonth() || d.getFullYear() !== view.getFullYear()) {
|
|
140
|
+
setDir(d > view ? 1 : -1);
|
|
141
|
+
setView(month0(d));
|
|
142
|
+
}
|
|
143
|
+
setFocus(d);
|
|
144
|
+
};
|
|
145
|
+
const onPanelKey = (e) => {
|
|
146
|
+
if (e.key === "Escape") {
|
|
147
|
+
e.preventDefault();
|
|
148
|
+
close();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const n = Number(e.key);
|
|
152
|
+
if (n >= 1 && n <= presets.length && !e.metaKey && !e.ctrlKey) {
|
|
153
|
+
e.preventDefault();
|
|
154
|
+
commit(presets[n - 1].get(today), true);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const onPresetKey = (e) => {
|
|
158
|
+
const all = [...panel.current?.querySelectorAll("[data-preset]") ?? []];
|
|
159
|
+
const i = all.indexOf(e.currentTarget);
|
|
160
|
+
if (e.key === "ArrowDown") all[(i + 1) % all.length]?.focus();
|
|
161
|
+
else if (e.key === "ArrowUp") all[(i - 1 + all.length) % all.length]?.focus();
|
|
162
|
+
else if (e.key === "Home") all[0]?.focus();
|
|
163
|
+
else if (e.key === "End") all[all.length - 1]?.focus();
|
|
164
|
+
else return;
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
};
|
|
167
|
+
const onGridKey = (e) => {
|
|
168
|
+
steer.current = true;
|
|
169
|
+
const dow = (focus.getDay() - weekStartsOn + 7) % 7;
|
|
170
|
+
if (e.key === "ArrowRight") moveTo(addDays(focus, 1));
|
|
171
|
+
else if (e.key === "ArrowLeft") moveTo(addDays(focus, -1));
|
|
172
|
+
else if (e.key === "ArrowDown") moveTo(addDays(focus, 7));
|
|
173
|
+
else if (e.key === "ArrowUp") moveTo(addDays(focus, -7));
|
|
174
|
+
else if (e.key === "Home") moveTo(addDays(focus, -dow));
|
|
175
|
+
else if (e.key === "End") moveTo(addDays(focus, 6 - dow));
|
|
176
|
+
else if (e.key === "PageDown") moveTo(new Date(focus.getFullYear(), focus.getMonth() + 1, Math.min(focus.getDate(), 28)));
|
|
177
|
+
else if (e.key === "PageUp") moveTo(new Date(focus.getFullYear(), focus.getMonth() - 1, Math.min(focus.getDate(), 28)));
|
|
178
|
+
else if (e.key === "Enter" || e.key === " ") commit(focus, false);
|
|
179
|
+
else return;
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
};
|
|
182
|
+
const days = sel ? Math.round((sel.getTime() - today.getTime()) / 864e5) : null;
|
|
183
|
+
const relText = days === null ? "" : Math.abs(days) < 7 ? rel.format(days, "day") : rel.format(Math.round(days / 7), "week");
|
|
184
|
+
const text = sel ? fmt.format(sel) : "No date";
|
|
185
|
+
const lead = (view.getDay() - weekStartsOn + 7) % 7;
|
|
186
|
+
const cells = Array.from({ length: 42 }, (_, i) => addDays(view, i - lead));
|
|
187
|
+
const activePreset = presets.findIndex((p) => {
|
|
188
|
+
const d = p.get(today);
|
|
189
|
+
return d === null ? sel === null : same(d, sel);
|
|
190
|
+
});
|
|
191
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: cx("aui051 relative inline-block", open && "z-40", className), children: [
|
|
192
|
+
/* @__PURE__ */ jsx("style", { href: "asta-aui051", precedence: "asta", children: CSS }),
|
|
193
|
+
/* @__PURE__ */ jsxs(
|
|
194
|
+
"button",
|
|
195
|
+
{
|
|
196
|
+
ref: btn,
|
|
197
|
+
type: "button",
|
|
198
|
+
disabled,
|
|
199
|
+
"aria-haspopup": "dialog",
|
|
200
|
+
"aria-expanded": open,
|
|
201
|
+
"aria-controls": open ? `${uid}-dlg` : void 0,
|
|
202
|
+
"aria-label": `${label}: ${sel ? full.format(sel) : "no date"}`,
|
|
203
|
+
onClick: () => open ? close(false) : show(),
|
|
204
|
+
onKeyDown: (e) => {
|
|
205
|
+
if (!open && e.key === "ArrowDown") {
|
|
206
|
+
e.preventDefault();
|
|
207
|
+
show();
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
className: cx(
|
|
211
|
+
"group flex h-10 items-center gap-2.5 rounded-[9px] bg-[color-mix(in_srgb,var(--paper)_8%,var(--ink))] pl-3 pr-2.5 text-left text-paper outline-none transition-[box-shadow,transform,background-color] duration-300 active:scale-[.98] disabled:cursor-not-allowed disabled:opacity-45",
|
|
212
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_12%,transparent)] hover:bg-[color-mix(in_srgb,var(--paper)_12%,var(--ink))]",
|
|
213
|
+
"focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_30%,transparent)]",
|
|
214
|
+
open && "!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_30%,transparent)]"
|
|
215
|
+
),
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: cx("h-4 w-4 shrink-0", sel ? "text-brand" : "text-[color-mix(in_srgb,var(--paper)_50%,transparent)]"), fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": true, children: [
|
|
218
|
+
/* @__PURE__ */ jsx("rect", { x: "2.5", y: "3.5", width: "11", height: "10", rx: "2" }),
|
|
219
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 6.5h11M5.5 2v3M10.5 2v3" })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-[10.5px] uppercase tracking-[0.08em] text-[color-mix(in_srgb,var(--paper)_50%,transparent)]", children: label }),
|
|
222
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[13.5px] font-medium tabular-nums tracking-[-0.01em]", children: [
|
|
223
|
+
/* @__PURE__ */ jsx(Roll, { text }),
|
|
224
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: text })
|
|
225
|
+
] }),
|
|
226
|
+
relText && /* @__PURE__ */ jsx("span", { className: "hidden text-[12px] text-[color-mix(in_srgb,var(--paper)_50%,transparent)] sm:inline", children: relText }),
|
|
227
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5 shrink-0 text-[color-mix(in_srgb,var(--paper)_50%,transparent)] transition-transform duration-300", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) })
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: sel ? key(sel) : "" }),
|
|
232
|
+
open && /* @__PURE__ */ jsx(
|
|
233
|
+
"div",
|
|
234
|
+
{
|
|
235
|
+
ref: panel,
|
|
236
|
+
id: `${uid}-dlg`,
|
|
237
|
+
role: "dialog",
|
|
238
|
+
"aria-label": `Choose ${label.toLowerCase()} date`,
|
|
239
|
+
onKeyDown: onPanelKey,
|
|
240
|
+
onBlur: (e) => !root.current?.contains(e.relatedTarget) && setOpen(false),
|
|
241
|
+
className: cx(
|
|
242
|
+
"@container absolute left-0 z-50 w-[440px] rounded-[14px] bg-ink p-2 text-paper",
|
|
243
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_10%,transparent),0_24px_56px_-18px_rgb(0_0_0/0.55),0_4px_12px_-4px_rgb(0_0_0/0.3)]",
|
|
244
|
+
down ? "top-full mt-2 origin-top-left" : "bottom-full mb-2 origin-bottom-left [--aui051-y:6px]"
|
|
245
|
+
),
|
|
246
|
+
style: { animation: `aui051-pop .32s ${EASE} both` },
|
|
247
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 @min-[400px]:flex-row", children: [
|
|
248
|
+
/* @__PURE__ */ jsx("ul", { className: "flex shrink-0 gap-1 overflow-x-auto [scrollbar-width:none] @min-[400px]:w-[164px] @min-[400px]:flex-col @min-[400px]:gap-0.5", "aria-label": "Presets", children: presets.map((p, i) => {
|
|
249
|
+
const d = p.get(today);
|
|
250
|
+
const on = i === activePreset;
|
|
251
|
+
return /* @__PURE__ */ jsx("li", { className: "shrink-0", style: { animation: `aui051-row .4s ${EASE} ${i * 30}ms both` }, children: /* @__PURE__ */ jsxs(
|
|
252
|
+
"button",
|
|
253
|
+
{
|
|
254
|
+
type: "button",
|
|
255
|
+
"data-preset": true,
|
|
256
|
+
"aria-pressed": on,
|
|
257
|
+
onKeyDown: onPresetKey,
|
|
258
|
+
onClick: () => commit(d, true),
|
|
259
|
+
className: cx(
|
|
260
|
+
"group/p flex h-[30px] w-full items-center gap-2.5 whitespace-nowrap rounded-[8px] px-2.5 text-left text-[13px] outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-brand/70",
|
|
261
|
+
on ? "bg-brand text-white" : "text-[color-mix(in_srgb,var(--paper)_82%,transparent)] hover:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)] hover:text-paper focus-visible:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)]"
|
|
262
|
+
),
|
|
263
|
+
children: [
|
|
264
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1", children: p.label }),
|
|
265
|
+
/* @__PURE__ */ jsx("span", { className: cx("hidden font-mono text-[10.5px] tabular-nums @min-[400px]:inline", on ? "text-white/75" : "text-[color-mix(in_srgb,var(--paper)_42%,transparent)]"), children: d ? hintFmt.format(d) : "\u2014" }),
|
|
266
|
+
/* @__PURE__ */ jsx("kbd", { className: cx("hidden h-4 min-w-4 items-center justify-center rounded-[4px] px-1 font-mono text-[9.5px] @min-[400px]:flex", on ? "bg-white/20 text-white" : "bg-[color-mix(in_srgb,var(--paper)_8%,transparent)] text-[color-mix(in_srgb,var(--paper)_50%,transparent)]"), children: i + 1 })
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
) }, p.label);
|
|
270
|
+
}) }),
|
|
271
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 rounded-[10px] bg-[color-mix(in_srgb,var(--paper)_5%,transparent)] p-2", children: [
|
|
272
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-1 flex items-center justify-between pl-1.5", children: [
|
|
273
|
+
/* @__PURE__ */ jsx("p", { "aria-live": "polite", className: "text-[13px] font-medium tracking-[-0.01em]", children: title.format(view) }),
|
|
274
|
+
/* @__PURE__ */ jsx("div", { className: "flex", children: [-1, 1].map((d) => /* @__PURE__ */ jsx(
|
|
275
|
+
"button",
|
|
276
|
+
{
|
|
277
|
+
type: "button",
|
|
278
|
+
"aria-label": d === 1 ? "Next month" : "Previous month",
|
|
279
|
+
onClick: () => {
|
|
280
|
+
steer.current = false;
|
|
281
|
+
flip(d);
|
|
282
|
+
},
|
|
283
|
+
className: "flex h-7 w-7 items-center justify-center rounded-[7px] text-[color-mix(in_srgb,var(--paper)_70%,transparent)] outline-none transition-[background-color,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--paper)_10%,transparent)] hover:text-paper focus-visible:ring-2 focus-visible:ring-brand/70 active:scale-90",
|
|
284
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: d === 1 ? "m6 3.5 4.5 4.5L6 12.5" : "m10 3.5L5.5 8l4.5 4.5" }) })
|
|
285
|
+
},
|
|
286
|
+
d
|
|
287
|
+
)) })
|
|
288
|
+
] }),
|
|
289
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-7", "aria-hidden": true, children: weekdays.map((w) => /* @__PURE__ */ jsx("span", { className: "pb-1 text-center font-mono text-[10px] uppercase text-[color-mix(in_srgb,var(--paper)_40%,transparent)]", children: w.s }, w.l)) }),
|
|
290
|
+
/* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
291
|
+
"div",
|
|
292
|
+
{
|
|
293
|
+
ref: grid,
|
|
294
|
+
role: "grid",
|
|
295
|
+
"aria-label": title.format(view),
|
|
296
|
+
onKeyDown: onGridKey,
|
|
297
|
+
className: cx("grid grid-cols-7", dir === 1 && "animate-[aui051-next_.36s_cubic-bezier(.16,1,.3,1)_both]", dir === -1 && "animate-[aui051-prev_.36s_cubic-bezier(.16,1,.3,1)_both]"),
|
|
298
|
+
children: cells.map((d) => {
|
|
299
|
+
const inMonth = d.getMonth() === view.getMonth();
|
|
300
|
+
const on = same(d, sel);
|
|
301
|
+
const isToday = same(d, today);
|
|
302
|
+
const isFocus = same(d, focus);
|
|
303
|
+
return /* @__PURE__ */ jsx("div", { role: "gridcell", "aria-selected": on || void 0, className: "flex justify-center", children: /* @__PURE__ */ jsxs(
|
|
304
|
+
"button",
|
|
305
|
+
{
|
|
306
|
+
type: "button",
|
|
307
|
+
"data-day": key(d),
|
|
308
|
+
tabIndex: isFocus ? 0 : -1,
|
|
309
|
+
"aria-label": full.format(d),
|
|
310
|
+
"aria-current": isToday ? "date" : void 0,
|
|
311
|
+
onClick: () => commit(d, false),
|
|
312
|
+
onFocus: () => !isFocus && setFocus(d),
|
|
313
|
+
className: cx(
|
|
314
|
+
"relative flex h-7 w-8 items-center justify-center rounded-[7px] text-[12.5px] tabular-nums outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-brand/70",
|
|
315
|
+
on ? "font-medium text-white" : inMonth ? "text-paper hover:bg-[color-mix(in_srgb,var(--paper)_10%,transparent)]" : "text-[color-mix(in_srgb,var(--paper)_32%,transparent)] hover:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)]"
|
|
316
|
+
),
|
|
317
|
+
children: [
|
|
318
|
+
on && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 rounded-[7px] bg-brand shadow-[0_0_18px_-2px_color-mix(in_srgb,var(--brand)_75%,transparent)]", style: { animation: `aui051-dot .42s ${EASE} both` } }),
|
|
319
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: d.getDate() }),
|
|
320
|
+
isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-[3px] w-[3px] -translate-x-1/2 rounded-full", on ? "bg-white" : "bg-brand") })
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
) }, key(d));
|
|
324
|
+
})
|
|
325
|
+
},
|
|
326
|
+
key(view)
|
|
327
|
+
) })
|
|
328
|
+
] })
|
|
329
|
+
] })
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
] });
|
|
333
|
+
}
|
|
334
|
+
var date_picker_aui_051_default = PresetDatePicker;
|
|
335
|
+
|
|
336
|
+
export {
|
|
337
|
+
PresetDatePicker,
|
|
338
|
+
date_picker_aui_051_default
|
|
339
|
+
};
|