@saas-ui/react 3.0.0-alpha.8 → 3.0.0-next.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/CHANGELOG.md +219 -36
- package/dist/chunk-27OMFCPD.js +8 -0
- package/dist/{chunk-6LOMIKR5.js → chunk-2B5OZHZY.js} +5 -3
- package/dist/{chunk-S3CQW7GD.js → chunk-3DGRWH7C.js} +3 -2
- package/dist/chunk-3EV6MKBG.js +60 -0
- package/dist/{chunk-IFYV7NUJ.js → chunk-3MO37LYW.js} +3 -3
- package/dist/chunk-3RHNNKPC.js +51 -0
- package/dist/{chunk-LIYUBUOP.js → chunk-4IZGJDYL.js} +1 -1
- package/dist/{chunk-VDXTEASE.js → chunk-4XB7B73X.js} +28 -2
- package/dist/chunk-52XM5VXJ.js +9 -0
- package/dist/chunk-5HVAMQYO.js +8 -0
- package/dist/chunk-5MTFSSOH.js +16 -0
- package/dist/chunk-5YNHX4C7.js +16 -0
- package/dist/{chunk-4TR3AOMG.js → chunk-5ZKEXMBN.js} +15 -12
- package/dist/chunk-6YZ76Q2W.js +8 -0
- package/dist/chunk-77QJSEEA.js +68 -0
- package/dist/chunk-7DF4NQNZ.js +8 -0
- package/dist/chunk-7HAGRXKM.js +8 -0
- package/dist/{chunk-QSNSWCTM.js → chunk-7MCVXFWM.js} +2 -1
- package/dist/chunk-7PWVK3NL.js +8 -0
- package/dist/chunk-AY7C4U2O.js +39 -0
- package/dist/{chunk-7VSTNV2B.js → chunk-BDS3APRG.js} +9 -6
- package/dist/chunk-BFO2S4Y5.js +12 -0
- package/dist/chunk-C5KFNMWU.js +8 -0
- package/dist/chunk-CQD32UVJ.js +8 -0
- package/dist/{chunk-TT4C5VXB.js → chunk-CRFTMIQA.js} +10 -10
- package/dist/chunk-DHFAFRZ4.js +8 -0
- package/dist/chunk-EWCBYJA7.js +8 -0
- package/dist/chunk-EYOHLXWQ.js +64 -0
- package/dist/chunk-FD2V4Y66.js +8 -0
- package/dist/{chunk-UCQ3LZIE.js → chunk-FN7TU5F5.js} +2 -1
- package/dist/chunk-FPRTN3I7.js +9 -0
- package/dist/chunk-GD2247J4.js +37 -0
- package/dist/chunk-GSWLAOIM.js +24 -0
- package/dist/chunk-H7KPEI6P.js +21 -0
- package/dist/chunk-HD7BIWDH.js +22 -0
- package/dist/{chunk-PKI6YH2V.js → chunk-HKMYYESV.js} +4 -1
- package/dist/{chunk-WYLMBMAH.js → chunk-HKUOHPZ6.js} +1 -1
- package/dist/chunk-HQVBJT5Y.js +8 -0
- package/dist/chunk-HTQRA26F.js +46 -0
- package/dist/{chunk-SA3OGTOO.js → chunk-HTVSG47E.js} +1 -1
- package/dist/chunk-HZX4AGO5.js +8 -0
- package/dist/{chunk-ULAJ3JEO.js → chunk-IEWGZ4LU.js} +11 -3
- package/dist/chunk-JMYI6YXR.js +1 -0
- package/dist/chunk-JPY2QZLC.js +64 -0
- package/dist/{chunk-SKXSBAOS.js → chunk-KFDVVTMT.js} +2 -1
- package/dist/chunk-KRJG7H4W.js +53 -0
- package/dist/chunk-M3DJWM6D.js +8 -0
- package/dist/{chunk-32JGENDB.js → chunk-MK3OG2I4.js} +1 -1
- package/dist/chunk-MZ2RY4NU.js +34 -0
- package/dist/{chunk-FJFNGSPL.js → chunk-NGGISORT.js} +12 -6
- package/dist/chunk-NLMFEUVO.js +41 -0
- package/dist/{chunk-I2RXEKTB.js → chunk-NSFGACD7.js} +1 -1
- package/dist/{chunk-BFA5FCA2.js → chunk-O2WVT2BP.js} +1 -16
- package/dist/chunk-OJZPPAT6.js +26 -0
- package/dist/chunk-OQU4LWZW.js +8 -0
- package/dist/chunk-PEJYADAS.js +8 -0
- package/dist/chunk-PIQURQGB.js +8 -0
- package/dist/{chunk-3Z2C27LI.js → chunk-Q6SNJJO2.js} +14 -2
- package/dist/chunk-QLN2CBY6.js +8 -0
- package/dist/chunk-R2J5USV6.js +12 -0
- package/dist/{chunk-2EUACKRH.js → chunk-RYKJOZ3B.js} +2 -1
- package/dist/chunk-SD2NTPHR.js +44 -0
- package/dist/chunk-SXFVA6CX.js +20 -0
- package/dist/chunk-T2FPZNCP.js +115 -0
- package/dist/{chunk-CD2JUFI2.js → chunk-T7XRS654.js} +10 -9
- package/dist/chunk-TEQVVR3W.js +8 -0
- package/dist/chunk-TH6YCBEG.js +8 -0
- package/dist/chunk-TWTXZ7PR.js +100 -0
- package/dist/{chunk-DPMEXCSG.js → chunk-U23VDAWJ.js} +8 -2
- package/dist/chunk-U3EPRSD3.js +20 -0
- package/dist/chunk-UEXUCHDD.js +34 -0
- package/dist/chunk-UIP2CHMU.js +8 -0
- package/dist/{chunk-JGHXJ3PI.js → chunk-UNF77J24.js} +6 -8
- package/dist/{chunk-M7FOBCOV.js → chunk-VJ4UOABT.js} +12 -19
- package/dist/chunk-WJZED26X.js +28 -0
- package/dist/chunk-XW747T2R.js +43 -0
- package/dist/chunk-XX2OY7LK.js +10 -0
- package/dist/chunk-YHQ5JGCC.js +1 -0
- package/dist/chunk-YLZEO3RK.js +24 -0
- package/dist/chunk-YMCOU2N5.js +8 -0
- package/dist/{chunk-6ZNR6N2K.js → chunk-YTTZX7ZE.js} +1 -1
- package/dist/chunk-Z37BQ5VU.js +54 -0
- package/dist/{chunk-L356FPLY.js → chunk-Z3SWPGPQ.js} +1 -1
- package/dist/{chunk-NSD5HRIP.js → chunk-ZUT5GZTD.js} +1 -1
- package/dist/components/accordion/index.cjs +197 -0
- package/dist/components/accordion/index.d.cts +29 -0
- package/dist/components/accordion/index.d.ts +29 -0
- package/dist/components/accordion/index.js +9 -0
- package/dist/components/action-bar/index.cjs +217 -0
- package/dist/components/action-bar/index.d.cts +33 -0
- package/dist/components/action-bar/index.d.ts +33 -0
- package/dist/components/action-bar/index.js +13 -0
- package/dist/components/alert/index.cjs +227 -0
- package/dist/components/alert/index.d.cts +14 -0
- package/dist/components/alert/index.d.ts +14 -0
- package/dist/components/alert/index.js +13 -0
- package/dist/components/app-shell/index.cjs +2 -2
- package/dist/components/app-shell/index.d.cts +1 -1
- package/dist/components/app-shell/index.d.ts +1 -1
- package/dist/components/app-shell/index.js +1 -1
- package/dist/components/avatar/index.cjs +7 -6
- package/dist/components/avatar/index.d.cts +3 -1
- package/dist/components/avatar/index.d.ts +3 -1
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/badge/index.cjs +33 -0
- package/dist/components/badge/index.d.cts +27 -0
- package/dist/components/badge/index.d.ts +27 -0
- package/dist/components/badge/index.js +10 -0
- package/dist/components/blockquote/index.cjs +59 -0
- package/dist/components/blockquote/index.d.cts +12 -0
- package/dist/components/blockquote/index.d.ts +12 -0
- package/dist/components/blockquote/index.js +8 -0
- package/dist/components/breadcrumb/index.cjs +13 -13
- package/dist/components/breadcrumb/index.d.cts +13 -7
- package/dist/components/breadcrumb/index.d.ts +13 -7
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.cjs +2 -36
- package/dist/components/button/index.d.cts +1 -12
- package/dist/components/button/index.d.ts +1 -12
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.cjs +31 -0
- package/dist/components/button-group/index.d.cts +1 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.js +8 -0
- package/dist/components/card/index.cjs +32 -0
- package/dist/components/card/index.d.cts +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +9 -0
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.d.cts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-card/index.cjs +66 -0
- package/dist/components/checkbox-card/index.d.cts +15 -0
- package/dist/components/checkbox-card/index.d.ts +15 -0
- package/dist/components/checkbox-card/index.js +8 -0
- package/dist/components/checkmark/index.cjs +31 -0
- package/dist/components/checkmark/index.d.cts +1 -0
- package/dist/components/checkmark/index.d.ts +1 -0
- package/dist/components/checkmark/index.js +8 -0
- package/dist/components/clipboard/index.cjs +227 -0
- package/dist/components/clipboard/index.d.cts +28 -0
- package/dist/components/clipboard/index.d.ts +28 -0
- package/dist/components/clipboard/index.js +13 -0
- package/dist/components/close-button/index.cjs +82 -37
- package/dist/components/close-button/index.d.cts +3 -2
- package/dist/components/close-button/index.d.ts +3 -2
- package/dist/components/close-button/index.js +5 -2
- package/dist/components/code/index.cjs +31 -0
- package/dist/components/code/index.d.cts +1 -0
- package/dist/components/code/index.d.ts +1 -0
- package/dist/components/code/index.js +8 -0
- package/dist/components/collapsible/index.cjs +31 -0
- package/dist/components/collapsible/index.d.cts +1 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +8 -0
- package/dist/components/command/index.cjs +18 -13
- package/dist/components/command/index.d.cts +28 -2
- package/dist/components/command/index.d.ts +28 -2
- package/dist/components/command/index.js +2 -1
- package/dist/components/container/index.cjs +31 -0
- package/dist/components/container/index.d.cts +1 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +8 -0
- package/dist/components/data-list/index.cjs +33 -0
- package/dist/components/data-list/index.d.cts +1 -0
- package/dist/components/data-list/index.d.ts +1 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/dialog/index.cjs +127 -89
- package/dist/components/dialog/index.d.cts +36 -17
- package/dist/components/dialog/index.d.ts +36 -17
- package/dist/components/dialog/index.js +8 -5
- package/dist/components/drawer/index.cjs +123 -87
- package/dist/components/drawer/index.d.cts +33 -17
- package/dist/components/drawer/index.d.ts +33 -17
- package/dist/components/drawer/index.js +8 -5
- package/dist/components/editable/index.cjs +31 -0
- package/dist/components/editable/index.d.cts +1 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +8 -0
- package/dist/components/empty-state/index.cjs +12 -10
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/field/index.cjs +35 -0
- package/dist/components/field/index.d.cts +1 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +12 -0
- package/dist/components/fieldset/index.cjs +33 -0
- package/dist/components/fieldset/index.d.cts +1 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/file-upload/index.cjs +296 -0
- package/dist/components/file-upload/index.d.cts +46 -0
- package/dist/components/file-upload/index.d.ts +46 -0
- package/dist/components/file-upload/index.js +14 -0
- package/dist/components/grid-list/index.cjs +2 -2
- package/dist/components/grid-list/index.d.cts +67 -5
- package/dist/components/grid-list/index.d.ts +67 -5
- package/dist/components/grid-list/index.js +1 -1
- package/dist/components/heading/index.cjs +31 -0
- package/dist/components/heading/index.d.cts +1 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +8 -0
- package/dist/components/hover-card/index.cjs +66 -0
- package/dist/components/hover-card/index.d.cts +21 -0
- package/dist/components/hover-card/index.d.ts +21 -0
- package/dist/components/hover-card/index.js +8 -0
- package/dist/components/icon/index.cjs +31 -0
- package/dist/components/icon/index.d.cts +1 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/index.js +8 -0
- package/dist/components/icon-badge/index.cjs +3 -3
- package/dist/components/icon-badge/index.d.cts +1 -1
- package/dist/components/icon-badge/index.d.ts +1 -1
- package/dist/components/icon-badge/index.js +1 -1
- package/dist/components/icon-button/index.cjs +53 -0
- package/dist/components/icon-button/index.d.cts +8 -0
- package/dist/components/icon-button/index.d.ts +8 -0
- package/dist/components/icon-button/index.js +9 -0
- package/dist/components/icons/index.cjs +31 -2
- package/dist/components/icons/index.d.cts +4 -1
- package/dist/components/icons/index.d.ts +4 -1
- package/dist/components/icons/index.js +7 -1
- package/dist/components/image/index.cjs +31 -0
- package/dist/components/image/index.d.cts +1 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +8 -0
- package/dist/components/info-tip/index.cjs +299 -0
- package/dist/components/info-tip/index.d.cts +13 -0
- package/dist/components/info-tip/index.d.ts +13 -0
- package/dist/components/info-tip/index.js +16 -0
- package/dist/components/input/index.cjs +37 -0
- package/dist/components/input/index.d.cts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +14 -0
- package/dist/components/input-group/index.cjs +9 -4
- package/dist/components/input-group/index.d.cts +3 -2
- package/dist/components/input-group/index.d.ts +3 -2
- package/dist/components/input-group/index.js +2 -1
- package/dist/components/kbd/index.cjs +31 -0
- package/dist/components/kbd/index.d.cts +1 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +8 -0
- package/dist/components/link/index.cjs +2 -2
- package/dist/components/link/index.d.cts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +2 -1
- package/dist/components/list/index.cjs +31 -0
- package/dist/components/list/index.d.cts +1 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +8 -0
- package/dist/components/loader/index.cjs +31 -0
- package/dist/components/loader/index.d.cts +1 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/index.js +8 -0
- package/dist/components/loading-overlay/index.cjs +12 -9
- package/dist/components/loading-overlay/index.d.cts +6 -22
- package/dist/components/loading-overlay/index.d.ts +6 -22
- package/dist/components/loading-overlay/index.js +2 -2
- package/dist/components/mark/index.cjs +31 -0
- package/dist/components/mark/index.d.cts +1 -0
- package/dist/components/mark/index.d.ts +1 -0
- package/dist/components/mark/index.js +8 -0
- package/dist/components/menu/index.cjs +92 -99
- package/dist/components/menu/index.d.cts +2 -1
- package/dist/components/menu/index.d.ts +2 -1
- package/dist/components/menu/index.js +3 -3
- package/dist/components/native-select/index.cjs +178 -0
- package/dist/components/native-select/index.d.cts +10 -0
- package/dist/components/native-select/index.d.ts +10 -0
- package/dist/components/native-select/index.js +10 -0
- package/dist/components/navbar/index.cjs +42 -4
- package/dist/components/navbar/index.d.cts +4 -1
- package/dist/components/navbar/index.d.ts +4 -1
- package/dist/components/navbar/index.js +2 -1
- package/dist/components/number-input/index.cjs +25 -12
- package/dist/components/number-input/index.d.cts +1 -1
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.js +3 -2
- package/dist/components/pagination/index.cjs +253 -0
- package/dist/components/pagination/index.d.cts +43 -0
- package/dist/components/pagination/index.d.ts +43 -0
- package/dist/components/pagination/index.js +11 -0
- package/dist/components/password-input/index.cjs +45 -17
- package/dist/components/password-input/index.d.cts +4 -2
- package/dist/components/password-input/index.d.ts +4 -2
- package/dist/components/password-input/index.js +5 -2
- package/dist/components/persona/index.cjs +63 -34
- package/dist/components/persona/index.d.cts +113 -4
- package/dist/components/persona/index.d.ts +113 -4
- package/dist/components/persona/index.js +2 -1
- package/dist/components/pin-input/index.cjs +5 -4
- package/dist/components/pin-input/index.d.cts +1 -1
- package/dist/components/pin-input/index.d.ts +1 -1
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/popover/index.cjs +252 -0
- package/dist/components/popover/index.d.cts +3 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.js +13 -0
- package/dist/components/progress/index.cjs +31 -0
- package/dist/components/progress/index.d.cts +1 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +8 -0
- package/dist/components/progress-circle/index.cjs +31 -0
- package/dist/components/progress-circle/index.d.cts +1 -0
- package/dist/components/progress-circle/index.d.ts +1 -0
- package/dist/components/progress-circle/index.js +8 -0
- package/dist/components/radio/index.cjs +6 -6
- package/dist/components/radio/index.d.cts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-card/index.cjs +75 -0
- package/dist/components/radio-card/index.d.cts +31 -0
- package/dist/components/radio-card/index.d.ts +31 -0
- package/dist/components/radio-card/index.js +8 -0
- package/dist/components/rating-group/index.cjs +31 -0
- package/dist/components/rating-group/index.d.cts +1 -0
- package/dist/components/rating-group/index.d.ts +1 -0
- package/dist/components/rating-group/index.js +8 -0
- package/dist/components/search-input/index.cjs +39 -16
- package/dist/components/search-input/index.js +2 -2
- package/dist/components/segmented-control/index.cjs +8 -7
- package/dist/components/segmented-control/index.d.cts +1 -1
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/components/select/index.cjs +109 -63
- package/dist/components/select/index.d.cts +2 -1
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/index.js +6 -3
- package/dist/components/separator/index.cjs +31 -0
- package/dist/components/separator/index.d.cts +1 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +8 -0
- package/dist/components/sidebar/index.cjs +8 -2
- package/dist/components/sidebar/index.d.cts +9 -5
- package/dist/components/sidebar/index.d.ts +9 -5
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton/index.cjs +61 -0
- package/dist/components/skeleton/index.d.cts +17 -0
- package/dist/components/skeleton/index.d.ts +17 -0
- package/dist/components/skeleton/index.js +12 -0
- package/dist/components/skip-nav-link/index.cjs +33 -0
- package/dist/components/skip-nav-link/index.d.cts +1 -0
- package/dist/components/skip-nav-link/index.d.ts +1 -0
- package/dist/components/skip-nav-link/index.js +10 -0
- package/dist/components/slider/index.cjs +62 -0
- package/dist/components/slider/index.d.cts +13 -0
- package/dist/components/slider/index.d.ts +13 -0
- package/dist/components/slider/index.js +8 -0
- package/dist/components/spinner/index.cjs +2 -2
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.cjs +83 -0
- package/dist/components/stat/index.d.cts +29 -0
- package/dist/components/stat/index.d.ts +29 -0
- package/dist/components/stat/index.js +8 -0
- package/dist/components/status/index.cjs +45 -0
- package/dist/components/status/index.d.cts +18 -0
- package/dist/components/status/index.d.ts +18 -0
- package/dist/components/status/index.js +8 -0
- package/dist/components/steps/index.cjs +48 -23
- package/dist/components/steps/index.d.cts +2 -2
- package/dist/components/steps/index.d.ts +2 -2
- package/dist/components/steps/index.js +2 -2
- package/dist/components/switch/index.cjs +9 -9
- package/dist/components/switch/index.d.cts +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/table/index.cjs +31 -0
- package/dist/components/table/index.d.cts +1 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +8 -0
- package/dist/components/tabs/index.cjs +37 -0
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +14 -0
- package/dist/components/tag/index.cjs +53 -0
- package/dist/components/tag/index.d.cts +12 -0
- package/dist/components/tag/index.d.ts +12 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/components/textarea/index.cjs +31 -0
- package/dist/components/textarea/index.d.cts +1 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +8 -0
- package/dist/components/timeline/index.cjs +31 -0
- package/dist/components/timeline/index.d.cts +1 -0
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/timeline/index.js +8 -0
- package/dist/components/toaster/index.cjs +215 -12
- package/dist/components/toaster/index.d.cts +6 -5
- package/dist/components/toaster/index.d.ts +6 -5
- package/dist/components/toaster/index.js +7 -1
- package/dist/components/toggle-tip/index.cjs +289 -0
- package/dist/components/toggle-tip/index.d.cts +13 -0
- package/dist/components/toggle-tip/index.d.ts +13 -0
- package/dist/components/toggle-tip/index.js +14 -0
- package/dist/components/tooltip/index.cjs +6 -5
- package/dist/components/tooltip/index.d.cts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/index-zAqswhEI.d.cts +37 -0
- package/dist/index-zAqswhEI.d.ts +37 -0
- package/dist/index.cjs +4118 -2660
- package/dist/index.d.cts +89 -6
- package/dist/index.d.ts +89 -6
- package/dist/index.js +2686 -1960
- package/dist/loading-overlay-BQ4lOS6T.d.ts +23 -0
- package/dist/loading-overlay-afP_W7ru.d.cts +23 -0
- package/dist/theme/tokens/colors.cjs +3 -3
- package/dist/theme/tokens/colors.js +1 -1
- package/dist/types-DnFoUudY.d.cts +10 -0
- package/dist/types-DnFoUudY.d.ts +10 -0
- package/package.json +7 -7
- package/dist/chunk-BCNPBZZK.js +0 -45
- package/dist/chunk-CB52LBJK.js +0 -71
- package/dist/chunk-FZW2DYK3.js +0 -19
- package/dist/chunk-H6TFEHY4.js +0 -63
- package/dist/chunk-HELHPHIQ.js +0 -35
@@ -0,0 +1,64 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
CloseButton
|
4
|
+
} from "./chunk-H7KPEI6P.js";
|
5
|
+
import {
|
6
|
+
__export
|
7
|
+
} from "./chunk-RTMS5TJN.js";
|
8
|
+
|
9
|
+
// src/components/popover/popover.tsx
|
10
|
+
var popover_exports = {};
|
11
|
+
__export(popover_exports, {
|
12
|
+
Arrow: () => Arrow,
|
13
|
+
Body: () => Body,
|
14
|
+
CloseButton: () => CloseButton2,
|
15
|
+
CloseTrigger: () => CloseTrigger,
|
16
|
+
Content: () => Content,
|
17
|
+
Description: () => Description,
|
18
|
+
Footer: () => Footer,
|
19
|
+
Header: () => Header,
|
20
|
+
Root: () => Root,
|
21
|
+
Title: () => Title,
|
22
|
+
Trigger: () => Trigger
|
23
|
+
});
|
24
|
+
import * as React from "react";
|
25
|
+
import { Popover as ChakraPopover } from "@chakra-ui/react/popover";
|
26
|
+
import { Portal } from "@chakra-ui/react/portal";
|
27
|
+
import { jsx } from "react/jsx-runtime";
|
28
|
+
var Content = React.forwardRef(
|
29
|
+
function PopoverContent(props, ref) {
|
30
|
+
const { portalled = true, portalRef, ...rest } = props;
|
31
|
+
return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(ChakraPopover.Positioner, { children: /* @__PURE__ */ jsx(ChakraPopover.Content, { ref, ...rest }) }) });
|
32
|
+
}
|
33
|
+
);
|
34
|
+
var Arrow = React.forwardRef(
|
35
|
+
function PopoverArrow(props, ref) {
|
36
|
+
return /* @__PURE__ */ jsx(ChakraPopover.Arrow, { ...props, ref, children: /* @__PURE__ */ jsx(ChakraPopover.ArrowTip, {}) });
|
37
|
+
}
|
38
|
+
);
|
39
|
+
var CloseButton2 = React.forwardRef(function PopoverCloseTrigger(props, ref) {
|
40
|
+
return /* @__PURE__ */ jsx(
|
41
|
+
ChakraPopover.CloseTrigger,
|
42
|
+
{
|
43
|
+
position: "absolute",
|
44
|
+
top: "1",
|
45
|
+
insetEnd: "1",
|
46
|
+
...props,
|
47
|
+
asChild: true,
|
48
|
+
ref,
|
49
|
+
children: /* @__PURE__ */ jsx(CloseButton, { size: "sm" })
|
50
|
+
}
|
51
|
+
);
|
52
|
+
});
|
53
|
+
var CloseTrigger = ChakraPopover.CloseTrigger;
|
54
|
+
var Title = ChakraPopover.Title;
|
55
|
+
var Description = ChakraPopover.Description;
|
56
|
+
var Footer = ChakraPopover.Footer;
|
57
|
+
var Header = ChakraPopover.Header;
|
58
|
+
var Root = ChakraPopover.Root;
|
59
|
+
var Body = ChakraPopover.Body;
|
60
|
+
var Trigger = ChakraPopover.Trigger;
|
61
|
+
|
62
|
+
export {
|
63
|
+
popover_exports
|
64
|
+
};
|
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
// src/components/segmented-control/segmented-control.tsx
|
4
4
|
import { forwardRef, useMemo } from "react";
|
5
|
-
import { For
|
5
|
+
import { For } from "@chakra-ui/react/for";
|
6
|
+
import { SegmentGroup } from "@chakra-ui/react/segment-group";
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
8
|
function normalize(items) {
|
8
9
|
return items.map((item) => {
|
@@ -0,0 +1,53 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "./chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/radio-card/radio-card.tsx
|
7
|
+
var radio_card_exports = {};
|
8
|
+
__export(radio_card_exports, {
|
9
|
+
Item: () => RadioCardItem,
|
10
|
+
ItemIndicator: () => RadioCardItemIndicator,
|
11
|
+
Label: () => RadioCardLabel,
|
12
|
+
Root: () => RadioCardRoot
|
13
|
+
});
|
14
|
+
import { Fragment, forwardRef } from "react";
|
15
|
+
import { RadioCard } from "@chakra-ui/react/radio-card";
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
17
|
+
var RadioCardItem = forwardRef(
|
18
|
+
function RadioCardItem2(props, ref) {
|
19
|
+
const {
|
20
|
+
inputProps,
|
21
|
+
label,
|
22
|
+
description,
|
23
|
+
addon,
|
24
|
+
icon,
|
25
|
+
indicator = /* @__PURE__ */ jsx(RadioCard.ItemIndicator, {}),
|
26
|
+
indicatorPlacement = "end",
|
27
|
+
...rest
|
28
|
+
} = props;
|
29
|
+
const hasContent = label || description || icon;
|
30
|
+
const ContentWrapper = indicator ? RadioCard.ItemContent : Fragment;
|
31
|
+
return /* @__PURE__ */ jsxs(RadioCard.Item, { ...rest, children: [
|
32
|
+
/* @__PURE__ */ jsx(RadioCard.ItemHiddenInput, { ref, ...inputProps }),
|
33
|
+
/* @__PURE__ */ jsxs(RadioCard.ItemControl, { children: [
|
34
|
+
indicatorPlacement === "start" && indicator,
|
35
|
+
hasContent && /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
36
|
+
icon,
|
37
|
+
label && /* @__PURE__ */ jsx(RadioCard.ItemText, { children: label }),
|
38
|
+
description && /* @__PURE__ */ jsx(RadioCard.ItemDescription, { children: description }),
|
39
|
+
indicatorPlacement === "inside" && indicator
|
40
|
+
] }),
|
41
|
+
indicatorPlacement === "end" && indicator
|
42
|
+
] }),
|
43
|
+
addon && /* @__PURE__ */ jsx(RadioCard.ItemAddon, { children: addon })
|
44
|
+
] });
|
45
|
+
}
|
46
|
+
);
|
47
|
+
var RadioCardRoot = RadioCard.Root;
|
48
|
+
var RadioCardLabel = RadioCard.Label;
|
49
|
+
var RadioCardItemIndicator = RadioCard.ItemIndicator;
|
50
|
+
|
51
|
+
export {
|
52
|
+
radio_card_exports
|
53
|
+
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
// src/components/spinner/spinner.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { Spinner as ChakraSpinner } from "@chakra-ui/react";
|
5
|
+
import { Spinner as ChakraSpinner } from "@chakra-ui/react/spinner";
|
6
6
|
import { Fragment, jsx } from "react/jsx-runtime";
|
7
7
|
var Spinner = forwardRef(
|
8
8
|
function Spinner2(props, ref) {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "./chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/hover-card/hover-card.tsx
|
7
|
+
var hover_card_exports = {};
|
8
|
+
__export(hover_card_exports, {
|
9
|
+
Arrow: () => Arrow,
|
10
|
+
Content: () => Content,
|
11
|
+
Root: () => Root,
|
12
|
+
Trigger: () => Trigger
|
13
|
+
});
|
14
|
+
import * as React from "react";
|
15
|
+
import { HoverCard } from "@chakra-ui/react/hover-card";
|
16
|
+
import { Portal } from "@chakra-ui/react/portal";
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
18
|
+
var Content = React.forwardRef(
|
19
|
+
function HoverCardContent(props, ref) {
|
20
|
+
const { portalled = true, portalRef, ...rest } = props;
|
21
|
+
return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(HoverCard.Positioner, { children: /* @__PURE__ */ jsx(HoverCard.Content, { ref, ...rest }) }) });
|
22
|
+
}
|
23
|
+
);
|
24
|
+
var Arrow = React.forwardRef(
|
25
|
+
function HoverCardArrow(props, ref) {
|
26
|
+
return /* @__PURE__ */ jsx(HoverCard.Arrow, { ref, ...props, children: /* @__PURE__ */ jsx(HoverCard.ArrowTip, {}) });
|
27
|
+
}
|
28
|
+
);
|
29
|
+
var Root = HoverCard.Root;
|
30
|
+
var Trigger = HoverCard.Trigger;
|
31
|
+
|
32
|
+
export {
|
33
|
+
hover_card_exports
|
34
|
+
};
|
@@ -1,19 +1,25 @@
|
|
1
1
|
'use client'
|
2
2
|
|
3
3
|
// src/components/empty-state/empty-state.tsx
|
4
|
-
import { EmptyState as ChakraEmptyState, VStack } from "@chakra-ui/react";
|
5
4
|
import { forwardRef } from "react";
|
5
|
+
import {
|
6
|
+
Box,
|
7
|
+
EmptyState as ChakraEmptyState,
|
8
|
+
useEmptyStateStyles
|
9
|
+
} from "@chakra-ui/react";
|
6
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
11
|
+
var EmptyStateActions = (props) => {
|
12
|
+
const { actions } = useEmptyStateStyles();
|
13
|
+
return /* @__PURE__ */ jsx(Box, { ...props, css: [actions, props.css] });
|
14
|
+
};
|
7
15
|
var EmptyState = forwardRef(
|
8
16
|
function EmptyState2(props, ref) {
|
9
17
|
const { title, description, icon, children, ...rest } = props;
|
10
18
|
return /* @__PURE__ */ jsx(ChakraEmptyState.Root, { ref, ...rest, children: /* @__PURE__ */ jsxs(ChakraEmptyState.Content, { children: [
|
11
19
|
icon && /* @__PURE__ */ jsx(ChakraEmptyState.Indicator, { children: icon }),
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
] }) : /* @__PURE__ */ jsx(ChakraEmptyState.Title, { children: title }),
|
16
|
-
children
|
20
|
+
/* @__PURE__ */ jsx(ChakraEmptyState.Title, { children: title }),
|
21
|
+
description ? /* @__PURE__ */ jsx(ChakraEmptyState.Description, { children: description }) : null,
|
22
|
+
/* @__PURE__ */ jsx(EmptyStateActions, { children })
|
17
23
|
] }) });
|
18
24
|
}
|
19
25
|
);
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use client'
|
2
|
+
|
3
|
+
// src/components/checkbox-card/checkbox-card.tsx
|
4
|
+
import { Fragment, forwardRef } from "react";
|
5
|
+
import { CheckboxCard as ChakraCheckboxCard } from "@chakra-ui/react/checkbox-card";
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
7
|
+
var CheckboxCard = forwardRef(
|
8
|
+
function CheckboxCard2(props, ref) {
|
9
|
+
const {
|
10
|
+
inputProps,
|
11
|
+
label,
|
12
|
+
description,
|
13
|
+
icon,
|
14
|
+
addon,
|
15
|
+
indicator = /* @__PURE__ */ jsx(ChakraCheckboxCard.Indicator, {}),
|
16
|
+
indicatorPlacement = "end",
|
17
|
+
...rest
|
18
|
+
} = props;
|
19
|
+
const hasContent = label || description || icon;
|
20
|
+
const ContentWrapper = indicator ? ChakraCheckboxCard.Content : Fragment;
|
21
|
+
return /* @__PURE__ */ jsxs(ChakraCheckboxCard.Root, { ...rest, children: [
|
22
|
+
/* @__PURE__ */ jsx(ChakraCheckboxCard.HiddenInput, { ref, ...inputProps }),
|
23
|
+
/* @__PURE__ */ jsxs(ChakraCheckboxCard.Control, { children: [
|
24
|
+
indicatorPlacement === "start" && indicator,
|
25
|
+
hasContent && /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
26
|
+
icon,
|
27
|
+
label && /* @__PURE__ */ jsx(ChakraCheckboxCard.Label, { children: label }),
|
28
|
+
description && /* @__PURE__ */ jsx(ChakraCheckboxCard.Description, { children: description }),
|
29
|
+
indicatorPlacement === "inside" && indicator
|
30
|
+
] }),
|
31
|
+
indicatorPlacement === "end" && indicator
|
32
|
+
] }),
|
33
|
+
addon && /* @__PURE__ */ jsx(ChakraCheckboxCard.Addon, { children: addon })
|
34
|
+
] });
|
35
|
+
}
|
36
|
+
);
|
37
|
+
var CheckboxCardIndicator = ChakraCheckboxCard.Indicator;
|
38
|
+
|
39
|
+
export {
|
40
|
+
CheckboxCard
|
41
|
+
};
|
@@ -6,7 +6,7 @@ import { cloneElement, isValidElement } from "react";
|
|
6
6
|
import {
|
7
7
|
chakra,
|
8
8
|
useRecipe
|
9
|
-
} from "@chakra-ui/react";
|
9
|
+
} from "@chakra-ui/react/styled-system";
|
10
10
|
import { cx } from "@saas-ui/core/utils";
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
12
12
|
var IconBadge = React.forwardRef(
|
@@ -1,9 +1,5 @@
|
|
1
1
|
'use client'
|
2
2
|
|
3
|
-
// src/components/link/link.tsx
|
4
|
-
import React2 from "react";
|
5
|
-
import { Link as ChakraLink } from "@chakra-ui/react";
|
6
|
-
|
7
3
|
// src/provider/sui-provider.tsx
|
8
4
|
import * as React from "react";
|
9
5
|
import { ChakraProvider } from "@chakra-ui/react";
|
@@ -31,20 +27,9 @@ function useLink() {
|
|
31
27
|
return chakra.a;
|
32
28
|
}
|
33
29
|
|
34
|
-
// src/components/link/link.tsx
|
35
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
36
|
-
var Link = React2.forwardRef(
|
37
|
-
(props, ref) => {
|
38
|
-
const LinkComponent = useLink();
|
39
|
-
return /* @__PURE__ */ jsx2(ChakraLink, { asChild: true, children: /* @__PURE__ */ jsx2(LinkComponent, { ref, ...props }) });
|
40
|
-
}
|
41
|
-
);
|
42
|
-
Link.displayName = "Link";
|
43
|
-
|
44
30
|
export {
|
45
31
|
SuiContext,
|
46
32
|
SuiProvider,
|
47
33
|
useSui,
|
48
|
-
useLink
|
49
|
-
Link
|
34
|
+
useLink
|
50
35
|
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
Button
|
4
|
+
} from "./chunk-5HVAMQYO.js";
|
5
|
+
|
6
|
+
// src/components/icon-button/icon-button.tsx
|
7
|
+
import { forwardRef } from "react";
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
9
|
+
var IconButton = forwardRef(
|
10
|
+
function IconButton2(props, ref) {
|
11
|
+
return /* @__PURE__ */ jsx(
|
12
|
+
Button,
|
13
|
+
{
|
14
|
+
px: "0",
|
15
|
+
py: "0",
|
16
|
+
_icon: { fontSize: "1.2em" },
|
17
|
+
ref,
|
18
|
+
...props
|
19
|
+
}
|
20
|
+
);
|
21
|
+
}
|
22
|
+
);
|
23
|
+
|
24
|
+
export {
|
25
|
+
IconButton
|
26
|
+
};
|
@@ -1,4 +1,7 @@
|
|
1
1
|
'use client'
|
2
|
+
import {
|
3
|
+
useLink
|
4
|
+
} from "./chunk-O2WVT2BP.js";
|
2
5
|
import {
|
3
6
|
__export
|
4
7
|
} from "./chunk-RTMS5TJN.js";
|
@@ -12,6 +15,7 @@ __export(navbar_exports, {
|
|
12
15
|
Link: () => NavbarLink,
|
13
16
|
Root: () => NavbarRoot
|
14
17
|
});
|
18
|
+
import { forwardRef } from "react";
|
15
19
|
import { Navbar } from "@saas-ui/core/navbar";
|
16
20
|
|
17
21
|
// src/components/navbar/navbar.context.ts
|
@@ -25,6 +29,7 @@ var {
|
|
25
29
|
});
|
26
30
|
|
27
31
|
// src/components/navbar/navbar.tsx
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
28
33
|
var NavbarRoot = withProvider(
|
29
34
|
Navbar.Root,
|
30
35
|
"root"
|
@@ -42,8 +47,15 @@ var NavbarItem = withContext(
|
|
42
47
|
"item"
|
43
48
|
);
|
44
49
|
var NavbarLink = withContext(
|
45
|
-
|
46
|
-
|
50
|
+
forwardRef((props, ref) => {
|
51
|
+
const Link = useLink();
|
52
|
+
const { active, ...rest } = props;
|
53
|
+
return /* @__PURE__ */ jsx(Navbar.Link, { asChild: true, ...rest, ref, children: /* @__PURE__ */ jsx(Link, { "data-active": active ? "" : void 0, ...props }) });
|
54
|
+
}),
|
55
|
+
"link",
|
56
|
+
{
|
57
|
+
forwardAsChild: true
|
58
|
+
}
|
47
59
|
);
|
48
60
|
|
49
61
|
export {
|
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
// src/components/pin-input/pin-input.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import {
|
5
|
+
import { Group } from "@chakra-ui/react/group";
|
6
|
+
import { PinInput as ChakraPinInput } from "@chakra-ui/react/pin-input";
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
8
|
var PinInput = forwardRef(
|
8
9
|
function PinInput2(props, ref) {
|
@@ -0,0 +1,44 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
ChevronRightIcon
|
4
|
+
} from "./chunk-4XB7B73X.js";
|
5
|
+
import {
|
6
|
+
__export
|
7
|
+
} from "./chunk-RTMS5TJN.js";
|
8
|
+
|
9
|
+
// src/components/accordion/accordion.tsx
|
10
|
+
var accordion_exports = {};
|
11
|
+
__export(accordion_exports, {
|
12
|
+
Item: () => Item,
|
13
|
+
ItemContent: () => ItemContent,
|
14
|
+
ItemTrigger: () => ItemTrigger,
|
15
|
+
Root: () => Root
|
16
|
+
});
|
17
|
+
import * as React from "react";
|
18
|
+
import { Accordion } from "@chakra-ui/react/accordion";
|
19
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
20
|
+
var ItemTrigger = React.forwardRef(function AccordionItemTrigger(props, ref) {
|
21
|
+
const {
|
22
|
+
children,
|
23
|
+
indicatorPlacement = "end",
|
24
|
+
indicatorIcon = /* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
25
|
+
...rest
|
26
|
+
} = props;
|
27
|
+
const indicator = /* @__PURE__ */ jsx(Accordion.ItemIndicator, { children: indicatorIcon });
|
28
|
+
return /* @__PURE__ */ jsxs(Accordion.ItemTrigger, { ...rest, ref, children: [
|
29
|
+
indicatorPlacement === "start" && indicator,
|
30
|
+
children,
|
31
|
+
indicatorPlacement === "end" && indicator
|
32
|
+
] });
|
33
|
+
});
|
34
|
+
var ItemContent = React.forwardRef(
|
35
|
+
function AccordionItemContent(props, ref) {
|
36
|
+
return /* @__PURE__ */ jsx(Accordion.ItemContent, { children: /* @__PURE__ */ jsx(Accordion.ItemBody, { ...props, ref }) });
|
37
|
+
}
|
38
|
+
);
|
39
|
+
var Root = Accordion.Root;
|
40
|
+
var Item = Accordion.Item;
|
41
|
+
|
42
|
+
export {
|
43
|
+
accordion_exports
|
44
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
useLink
|
4
|
+
} from "./chunk-O2WVT2BP.js";
|
5
|
+
|
6
|
+
// src/components/link/link.tsx
|
7
|
+
import React from "react";
|
8
|
+
import { Link as ChakraLink } from "@chakra-ui/react/link";
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
10
|
+
var Link = React.forwardRef(
|
11
|
+
(props, ref) => {
|
12
|
+
const LinkComponent = useLink();
|
13
|
+
return /* @__PURE__ */ jsx(ChakraLink, { asChild: true, children: /* @__PURE__ */ jsx(LinkComponent, { ref, ...props }) });
|
14
|
+
}
|
15
|
+
);
|
16
|
+
Link.displayName = "Link";
|
17
|
+
|
18
|
+
export {
|
19
|
+
Link
|
20
|
+
};
|
@@ -0,0 +1,115 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
CloseButton
|
4
|
+
} from "./chunk-H7KPEI6P.js";
|
5
|
+
import {
|
6
|
+
Button
|
7
|
+
} from "./chunk-5HVAMQYO.js";
|
8
|
+
import {
|
9
|
+
__export
|
10
|
+
} from "./chunk-RTMS5TJN.js";
|
11
|
+
|
12
|
+
// src/components/file-upload/file-upload.tsx
|
13
|
+
var file_upload_exports = {};
|
14
|
+
__export(file_upload_exports, {
|
15
|
+
ClearTrigger: () => ClearTrigger,
|
16
|
+
Dropzone: () => Dropzone,
|
17
|
+
Input: () => Input,
|
18
|
+
Label: () => Label,
|
19
|
+
List: () => List,
|
20
|
+
Root: () => Root,
|
21
|
+
Trigger: () => Trigger
|
22
|
+
});
|
23
|
+
import * as React from "react";
|
24
|
+
import { Span } from "@chakra-ui/react";
|
25
|
+
import {
|
26
|
+
FileUpload as ChakraFileUpload,
|
27
|
+
useFileUploadContext
|
28
|
+
} from "@chakra-ui/react/file-upload";
|
29
|
+
import { useRecipe } from "@chakra-ui/react/styled-system";
|
30
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
31
|
+
var Root = React.forwardRef(
|
32
|
+
function FileUploadRoot(props, ref) {
|
33
|
+
const { children, inputProps, ...rest } = props;
|
34
|
+
return /* @__PURE__ */ jsxs(ChakraFileUpload.Root, { ...rest, children: [
|
35
|
+
/* @__PURE__ */ jsx(ChakraFileUpload.HiddenInput, { ref, ...inputProps }),
|
36
|
+
children
|
37
|
+
] });
|
38
|
+
}
|
39
|
+
);
|
40
|
+
var Dropzone = React.forwardRef(
|
41
|
+
function FileUploadDropzone(props, ref) {
|
42
|
+
const { children, ...rest } = props;
|
43
|
+
return /* @__PURE__ */ jsx(ChakraFileUpload.Dropzone, { ref, ...rest, children: /* @__PURE__ */ jsx(ChakraFileUpload.DropzoneContent, { children }) });
|
44
|
+
}
|
45
|
+
);
|
46
|
+
var Item = React.forwardRef(
|
47
|
+
function FileUploadItem(props, ref) {
|
48
|
+
const { file, showSize, icon, clearable } = props;
|
49
|
+
return /* @__PURE__ */ jsxs(ChakraFileUpload.Item, { file, ref, children: [
|
50
|
+
/* @__PURE__ */ jsx(ChakraFileUpload.ItemPreview, { children: icon }),
|
51
|
+
showSize ? /* @__PURE__ */ jsxs(ChakraFileUpload.ItemContent, { children: [
|
52
|
+
/* @__PURE__ */ jsx(ChakraFileUpload.ItemName, {}),
|
53
|
+
/* @__PURE__ */ jsx(ChakraFileUpload.ItemSizeText, {})
|
54
|
+
] }) : /* @__PURE__ */ jsx(ChakraFileUpload.ItemName, { flex: "1" }),
|
55
|
+
clearable && /* @__PURE__ */ jsx(ChakraFileUpload.ItemDeleteTrigger, { asChild: true, children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) })
|
56
|
+
] });
|
57
|
+
}
|
58
|
+
);
|
59
|
+
var List = React.forwardRef(
|
60
|
+
function FileUploadList(props, ref) {
|
61
|
+
const { showSize, clearable, files, ...rest } = props;
|
62
|
+
const fileUpload = useFileUploadContext();
|
63
|
+
const acceptedFiles = files != null ? files : fileUpload.acceptedFiles;
|
64
|
+
if (acceptedFiles.length === 0) return null;
|
65
|
+
return /* @__PURE__ */ jsx(ChakraFileUpload.ItemGroup, { ref, ...rest, children: acceptedFiles.map((file) => /* @__PURE__ */ jsx(
|
66
|
+
Item,
|
67
|
+
{
|
68
|
+
file,
|
69
|
+
showSize,
|
70
|
+
clearable
|
71
|
+
},
|
72
|
+
file.name
|
73
|
+
)) });
|
74
|
+
}
|
75
|
+
);
|
76
|
+
var Input = React.forwardRef(
|
77
|
+
function FileInput(props, ref) {
|
78
|
+
const inputRecipe = useRecipe({ key: "input" });
|
79
|
+
const [recipeProps, restProps] = inputRecipe.splitVariantProps(props);
|
80
|
+
const { placeholder = "Select file(s)", ...rest } = restProps;
|
81
|
+
return /* @__PURE__ */ jsx(ChakraFileUpload.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
82
|
+
Button,
|
83
|
+
{
|
84
|
+
unstyled: true,
|
85
|
+
py: "0",
|
86
|
+
ref,
|
87
|
+
...rest,
|
88
|
+
css: [inputRecipe(recipeProps), props.css],
|
89
|
+
children: /* @__PURE__ */ jsx(ChakraFileUpload.Context, { children: ({ acceptedFiles }) => {
|
90
|
+
if (acceptedFiles.length === 1) {
|
91
|
+
return /* @__PURE__ */ jsx("span", { children: acceptedFiles[0].name });
|
92
|
+
}
|
93
|
+
if (acceptedFiles.length > 1) {
|
94
|
+
return /* @__PURE__ */ jsxs("span", { children: [
|
95
|
+
acceptedFiles.length,
|
96
|
+
" files"
|
97
|
+
] });
|
98
|
+
}
|
99
|
+
return /* @__PURE__ */ jsx(Span, { color: "fg.subtle", children: placeholder });
|
100
|
+
} })
|
101
|
+
}
|
102
|
+
) });
|
103
|
+
}
|
104
|
+
);
|
105
|
+
var Label = ChakraFileUpload.Label;
|
106
|
+
var ClearTrigger = ChakraFileUpload.ClearTrigger;
|
107
|
+
var Trigger = ChakraFileUpload.Trigger;
|
108
|
+
|
109
|
+
// src/components/file-upload/index.ts
|
110
|
+
import { useFileUploadContext as useFileUploadContext2 } from "@chakra-ui/react/file-upload";
|
111
|
+
|
112
|
+
export {
|
113
|
+
file_upload_exports,
|
114
|
+
useFileUploadContext2 as useFileUploadContext
|
115
|
+
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
InputGroup
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-HKMYYESV.js";
|
5
|
+
import {
|
6
|
+
Input
|
7
|
+
} from "./chunk-5MTFSSOH.js";
|
8
|
+
import {
|
9
|
+
IconButton
|
10
|
+
} from "./chunk-OJZPPAT6.js";
|
5
11
|
|
6
12
|
// src/components/password-input/password-input.tsx
|
7
13
|
import { forwardRef, useRef } from "react";
|
8
|
-
import {
|
9
|
-
IconButton,
|
10
|
-
Input,
|
11
|
-
mergeRefs,
|
12
|
-
useControllableState
|
13
|
-
} from "@chakra-ui/react";
|
14
|
+
import { mergeRefs, useControllableState } from "@chakra-ui/react";
|
14
15
|
|
15
16
|
// ../../node_modules/react-icons/lib/iconBase.mjs
|
16
17
|
import React2 from "react";
|
@@ -152,10 +153,10 @@ function IconBase(props) {
|
|
152
153
|
|
153
154
|
// ../../node_modules/react-icons/lu/index.mjs
|
154
155
|
function LuEyeOff(props) {
|
155
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "
|
156
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, "child": [] }, { "tag": "path", "attr": { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, "child": [] }, { "tag": "path", "attr": { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, "child": [] }, { "tag": "path", "attr": { "d": "m2 2 20 20" }, "child": [] }] })(props);
|
156
157
|
}
|
157
158
|
function LuEye(props) {
|
158
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2
|
159
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, "child": [] }, { "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }] })(props);
|
159
160
|
}
|
160
161
|
|
161
162
|
// src/components/password-input/password-input.tsx
|