@saas-ui/react 3.0.0-next.0 → 3.0.0-next.2
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 +17 -0
- package/dist/{components/accordion → accordion}/index.cjs +7 -0
- package/dist/{chunk-SD2NTPHR.js → accordion/index.js} +3 -4
- package/dist/{components/action-bar → action-bar}/index.cjs +7 -0
- package/dist/{chunk-AY7C4U2O.js → action-bar/index.js} +4 -4
- package/dist/{components/alert → alert}/index.cjs +7 -0
- package/dist/{chunk-HTQRA26F.js → alert/index.js} +3 -2
- package/dist/{chunk-YTTZX7ZE.js → app-shell/index.js} +1 -1
- package/dist/aspect-ratio/index.cjs +31 -0
- package/dist/aspect-ratio/index.d.cts +1 -0
- package/dist/aspect-ratio/index.d.ts +1 -0
- package/dist/aspect-ratio/index.js +10 -0
- package/dist/{chunk-FN7TU5F5.js → avatar/index.js} +0 -1
- package/dist/back-button/index.cjs +227 -0
- package/dist/back-button/index.d.cts +11 -0
- package/dist/back-button/index.d.ts +11 -0
- package/dist/back-button/index.js +191 -0
- package/dist/badge/index.d.cts +1 -0
- package/dist/badge/index.d.ts +1 -0
- package/dist/{chunk-R2J5USV6.js → badge/index.js} +0 -1
- package/dist/bleed/index.cjs +31 -0
- package/dist/bleed/index.d.cts +2 -0
- package/dist/bleed/index.d.ts +2 -0
- package/dist/bleed/index.js +9 -0
- package/dist/{chunk-GSWLAOIM.js → blockquote/index.js} +0 -1
- package/dist/box/index.cjs +31 -0
- package/dist/box/index.d.cts +3 -0
- package/dist/box/index.d.ts +3 -0
- package/dist/box/index.js +10 -0
- package/dist/{chunk-CRFTMIQA.js → breadcrumb/index.js} +2 -3
- package/dist/{chunk-5HVAMQYO.js → button/index.js} +1 -1
- package/dist/{chunk-7PWVK3NL.js → button-group/index.js} +1 -1
- package/dist/{chunk-7DF4NQNZ.js → card/index.js} +2 -1
- package/dist/center/index.cjs +31 -0
- package/dist/center/index.d.cts +3 -0
- package/dist/center/index.d.ts +3 -0
- package/dist/center/index.js +9 -0
- package/dist/{chunk-Z3SWPGPQ.js → checkbox/index.js} +0 -1
- package/dist/{chunk-NLMFEUVO.js → checkbox-card/index.js} +0 -1
- package/dist/{chunk-UIP2CHMU.js → checkmark/index.js} +0 -1
- package/dist/chunk-2Q6YNPRO.js +151 -0
- package/dist/chunk-4F7N63LO.js +43 -0
- package/dist/{chunk-OJZPPAT6.js → chunk-A4CVFWTP.js} +4 -3
- package/dist/{chunk-4XB7B73X.js → chunk-AX3QDODM.js} +9 -16
- package/dist/chunk-BFWNUE2X.js +15 -0
- package/dist/chunk-EZNMWDPR.js +28 -0
- package/dist/chunk-GMRF4UIJ.js +159 -0
- package/dist/chunk-HBX3KIPQ.js +135 -0
- package/dist/{chunk-3MO37LYW.js → chunk-KNFGYOLD.js} +6 -0
- package/dist/chunk-M5ROLN3M.js +8903 -0
- package/dist/chunk-V5WPZT25.js +135 -0
- package/dist/client-only/index.cjs +31 -0
- package/dist/client-only/index.d.cts +1 -0
- package/dist/client-only/index.d.ts +1 -0
- package/dist/client-only/index.js +9 -0
- package/dist/{components/clipboard → clipboard}/index.cjs +7 -0
- package/dist/clipboard/index.d.cts +28 -0
- package/dist/clipboard/index.d.ts +28 -0
- package/dist/{chunk-3EV6MKBG.js → clipboard/index.js} +17 -14
- package/dist/{components/close-button → close-button}/index.cjs +7 -0
- package/dist/close-button/index.d.cts +9 -0
- package/dist/close-button/index.d.ts +9 -0
- package/dist/{chunk-H7KPEI6P.js → close-button/index.js} +3 -5
- package/dist/code/index.d.cts +3 -0
- package/dist/code/index.d.ts +3 -0
- package/dist/{chunk-YMCOU2N5.js → code/index.js} +1 -1
- package/dist/{chunk-PEJYADAS.js → collapsible/index.js} +1 -1
- package/dist/color-picker/index.cjs +31 -0
- package/dist/color-picker/index.d.cts +1 -0
- package/dist/color-picker/index.d.ts +1 -0
- package/dist/color-picker/index.js +8 -0
- package/dist/color-swatch/index.cjs +35 -0
- package/dist/color-swatch/index.d.cts +3 -0
- package/dist/color-swatch/index.d.ts +3 -0
- package/dist/color-swatch/index.js +14 -0
- package/dist/{components/command → command}/index.d.cts +5 -1
- package/dist/{components/command → command}/index.d.ts +5 -1
- package/dist/{chunk-5ZKEXMBN.js → command/index.js} +6 -4
- package/dist/{chunk-PIQURQGB.js → container/index.js} +1 -1
- package/dist/{chunk-52XM5VXJ.js → data-list/index.js} +1 -1
- package/dist/{components/dialog → dialog}/index.cjs +7 -0
- package/dist/dialog/index.js +226 -0
- package/dist/{components/drawer → drawer}/index.cjs +7 -0
- package/dist/drawer/index.js +216 -0
- package/dist/editable/index.d.cts +3 -0
- package/dist/editable/index.d.ts +3 -0
- package/dist/{chunk-TEQVVR3W.js → editable/index.js} +1 -1
- package/dist/{chunk-NGGISORT.js → empty-state/index.js} +1 -1
- package/dist/env/index.cjs +33 -0
- package/dist/env/index.d.cts +1 -0
- package/dist/env/index.d.ts +1 -0
- package/dist/env/index.js +12 -0
- package/dist/{chunk-XX2OY7LK.js → field/index.js} +1 -1
- package/dist/fieldset/index.d.cts +4 -0
- package/dist/fieldset/index.d.ts +4 -0
- package/dist/{chunk-FPRTN3I7.js → fieldset/index.js} +1 -1
- package/dist/{components/file-upload → file-upload}/index.cjs +7 -0
- package/dist/{components/file-upload → file-upload}/index.d.cts +10 -10
- package/dist/{components/file-upload → file-upload}/index.d.ts +10 -10
- package/dist/file-upload/index.js +272 -0
- package/dist/flex/index.cjs +31 -0
- package/dist/flex/index.d.cts +1 -0
- package/dist/flex/index.d.ts +1 -0
- package/dist/flex/index.js +10 -0
- package/dist/float/index.cjs +31 -0
- package/dist/float/index.d.cts +1 -0
- package/dist/float/index.d.ts +1 -0
- package/dist/float/index.js +10 -0
- package/dist/focus-trap/index.cjs +31 -0
- package/dist/focus-trap/index.d.cts +1 -0
- package/dist/focus-trap/index.d.ts +1 -0
- package/dist/focus-trap/index.js +8 -0
- package/dist/for/index.cjs +31 -0
- package/dist/for/index.d.cts +4 -0
- package/dist/for/index.d.ts +4 -0
- package/dist/for/index.js +10 -0
- package/dist/format/index.cjs +33 -0
- package/dist/format/index.d.cts +1 -0
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +12 -0
- package/dist/grid/index.cjs +31 -0
- package/dist/grid/index.d.cts +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.js +10 -0
- package/dist/{components/grid-list → grid-list}/index.d.cts +6 -2
- package/dist/{components/grid-list → grid-list}/index.d.ts +6 -2
- package/dist/{chunk-ZUT5GZTD.js → grid-list/index.js} +2 -3
- package/dist/group/index.cjs +31 -0
- package/dist/group/index.d.cts +1 -0
- package/dist/group/index.d.ts +1 -0
- package/dist/group/index.js +10 -0
- package/dist/{components/heading → heading}/index.d.cts +2 -0
- package/dist/{components/heading → heading}/index.d.ts +2 -0
- package/dist/{chunk-HZX4AGO5.js → heading/index.js} +1 -1
- package/dist/highlight/index.cjs +31 -0
- package/dist/highlight/index.d.cts +1 -0
- package/dist/highlight/index.d.ts +1 -0
- package/dist/highlight/index.js +10 -0
- package/dist/{components/hover-card → hover-card}/index.d.cts +6 -6
- package/dist/{components/hover-card → hover-card}/index.d.ts +6 -6
- package/dist/{chunk-MZ2RY4NU.js → hover-card/index.js} +2 -3
- package/dist/{chunk-M3DJWM6D.js → icon/index.js} +1 -1
- package/dist/{components/icon-badge → icon-badge}/index.d.cts +3 -3
- package/dist/{components/icon-badge → icon-badge}/index.d.ts +3 -3
- package/dist/{chunk-NSFGACD7.js → icon-badge/index.js} +1 -1
- package/dist/icon-button/index.js +8 -0
- package/dist/icon-button-CR4hDxYi.d.cts +6 -0
- package/dist/icon-button-CR4hDxYi.d.ts +6 -0
- package/dist/{components/icons → icons}/index.cjs +9 -0
- package/dist/icons/index.d.cts +23 -0
- package/dist/icons/index.d.ts +23 -0
- package/dist/{components/icons → icons}/index.js +4 -3
- package/dist/{components/image → image}/index.d.cts +1 -0
- package/dist/{components/image → image}/index.d.ts +1 -0
- package/dist/{chunk-FD2V4Y66.js → image/index.js} +1 -1
- package/dist/index.cjs +721 -477
- package/dist/index.d.cts +1454 -99
- package/dist/index.d.ts +1454 -99
- package/dist/index.js +2727 -9084
- package/dist/{components/info-tip → info-tip}/index.cjs +7 -0
- package/dist/info-tip/index.d.cts +38 -0
- package/dist/info-tip/index.d.ts +38 -0
- package/dist/info-tip/index.js +128 -0
- package/dist/{components/input → input}/index.cjs +2 -0
- package/dist/input/index.d.cts +1 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/{chunk-5MTFSSOH.js → input/index.js} +4 -2
- package/dist/kbd/index.d.cts +3 -0
- package/dist/kbd/index.d.ts +3 -0
- package/dist/{chunk-OQU4LWZW.js → kbd/index.js} +1 -1
- package/dist/{components/link → link}/index.d.cts +2 -2
- package/dist/{components/link → link}/index.d.ts +2 -2
- package/dist/{chunk-O2WVT2BP.js → link/index.js} +15 -14
- package/dist/{chunk-C5KFNMWU.js → list/index.js} +1 -1
- package/dist/{chunk-DHFAFRZ4.js → loader/index.js} +1 -1
- package/dist/loading-overlay/index.d.cts +31 -0
- package/dist/loading-overlay/index.d.ts +31 -0
- package/dist/{chunk-BDS3APRG.js → loading-overlay/index.js} +21 -11
- package/dist/locale/index.cjs +33 -0
- package/dist/locale/index.d.cts +1 -0
- package/dist/locale/index.d.ts +1 -0
- package/dist/locale/index.js +12 -0
- package/dist/{components/mark → mark}/index.d.cts +1 -0
- package/dist/{components/mark → mark}/index.d.ts +1 -0
- package/dist/{chunk-EWCBYJA7.js → mark/index.js} +1 -1
- package/dist/{components/menu → menu}/index.cjs +7 -0
- package/dist/{chunk-UNF77J24.js → menu/index.js} +8 -7
- package/dist/{components/native-select → native-select}/index.cjs +7 -0
- package/dist/{chunk-HD7BIWDH.js → native-select/index.js} +2 -2
- package/dist/navbar/index.d.cts +21 -0
- package/dist/navbar/index.d.ts +21 -0
- package/dist/{chunk-Q6SNJJO2.js → navbar/index.js} +23 -8
- package/dist/number-input/index.cjs +67 -0
- package/dist/{components/number-input → number-input}/index.d.cts +2 -2
- package/dist/{components/number-input → number-input}/index.d.ts +2 -2
- package/dist/{chunk-IEWGZ4LU.js → number-input/index.js} +2 -2
- package/dist/page/index.cjs +196 -0
- package/dist/page/index.d.cts +50 -0
- package/dist/page/index.d.ts +50 -0
- package/dist/page/index.js +167 -0
- package/dist/{components/pagination → pagination}/index.cjs +7 -0
- package/dist/{components/pagination → pagination}/index.d.cts +10 -10
- package/dist/{components/pagination → pagination}/index.d.ts +10 -10
- package/dist/pagination/index.js +223 -0
- package/dist/{components/password-input → password-input}/index.cjs +14 -42
- package/dist/{components/password-input → password-input}/index.d.cts +3 -5
- package/dist/{components/password-input → password-input}/index.d.ts +3 -5
- package/dist/{chunk-T7XRS654.js → password-input/index.js} +4 -6
- package/dist/{components/persona → persona}/index.cjs +3 -3
- package/dist/{components/persona → persona}/index.d.cts +32 -24
- package/dist/{components/persona → persona}/index.d.ts +32 -24
- package/dist/{chunk-VJ4UOABT.js → persona/index.js} +59 -24
- package/dist/{components/pin-input → pin-input}/index.d.cts +2 -2
- package/dist/{components/pin-input → pin-input}/index.d.ts +2 -2
- package/dist/{chunk-RYKJOZ3B.js → pin-input/index.js} +1 -1
- package/dist/{components/popover → popover}/index.cjs +7 -0
- package/dist/popover/index.d.cts +37 -0
- package/dist/popover/index.d.ts +37 -0
- package/dist/popover/index.js +226 -0
- package/dist/portal/index.cjs +31 -0
- package/dist/portal/index.d.cts +3 -0
- package/dist/portal/index.d.ts +3 -0
- package/dist/portal/index.js +10 -0
- package/dist/presence/index.cjs +31 -0
- package/dist/presence/index.d.cts +1 -0
- package/dist/presence/index.d.ts +1 -0
- package/dist/presence/index.js +8 -0
- package/dist/preset.cjs +9240 -0
- package/dist/preset.d.cts +6 -0
- package/dist/preset.d.ts +6 -0
- package/dist/preset.js +11 -0
- package/dist/{chunk-6YZ76Q2W.js → progress/index.js} +1 -1
- package/dist/{chunk-7HAGRXKM.js → progress-circle/index.js} +1 -1
- package/dist/qr-code/index.cjs +31 -0
- package/dist/qr-code/index.d.cts +3 -0
- package/dist/qr-code/index.d.ts +3 -0
- package/dist/qr-code/index.js +8 -0
- package/dist/{components/radio → radio}/index.cjs +2 -4
- package/dist/radio/index.d.cts +10 -0
- package/dist/radio/index.d.ts +10 -0
- package/dist/{chunk-HKUOHPZ6.js → radio/index.js} +2 -3
- package/dist/{chunk-KRJG7H4W.js → radio-card/index.js} +2 -3
- package/dist/radio-group/index.cjs +31 -0
- package/dist/radio-group/index.d.cts +1 -0
- package/dist/radio-group/index.d.ts +1 -0
- package/dist/radio-group/index.js +8 -0
- package/dist/radiomark/index.cjs +31 -0
- package/dist/radiomark/index.d.cts +2 -0
- package/dist/radiomark/index.d.ts +2 -0
- package/dist/radiomark/index.js +10 -0
- package/dist/{chunk-HQVBJT5Y.js → rating-group/index.js} +1 -1
- package/dist/{components/search-input → search-input}/index.cjs +7 -0
- package/dist/{chunk-4IZGJDYL.js → search-input/index.js} +2 -2
- package/dist/{chunk-KFDVVTMT.js → segmented-control/index.js} +1 -1
- package/dist/{components/select → select}/index.cjs +7 -0
- package/dist/select/index.js +137 -0
- package/dist/{components/separator → separator}/index.d.cts +2 -0
- package/dist/{components/separator → separator}/index.d.ts +2 -0
- package/dist/{chunk-27OMFCPD.js → separator/index.js} +1 -1
- package/dist/show/index.cjs +31 -0
- package/dist/show/index.d.cts +1 -0
- package/dist/show/index.d.ts +1 -0
- package/dist/show/index.js +10 -0
- package/dist/sidebar/index.d.cts +90 -0
- package/dist/sidebar/index.d.ts +90 -0
- package/dist/{chunk-U23VDAWJ.js → sidebar/index.js} +4 -5
- package/dist/{components/skeleton → skeleton}/index.d.cts +3 -3
- package/dist/{components/skeleton → skeleton}/index.d.ts +3 -3
- package/dist/{chunk-UEXUCHDD.js → skeleton/index.js} +3 -3
- package/dist/skip-nav/index.cjs +33 -0
- package/dist/skip-nav/index.js +12 -0
- package/dist/skip-nav-link/index.d.cts +3 -0
- package/dist/skip-nav-link/index.d.ts +3 -0
- package/dist/{chunk-BFO2S4Y5.js → skip-nav-link/index.js} +2 -3
- package/dist/{chunk-GD2247J4.js → slider/index.js} +0 -1
- package/dist/spacer/index.cjs +31 -0
- package/dist/spacer/index.d.cts +1 -0
- package/dist/spacer/index.d.ts +1 -0
- package/dist/spacer/index.js +9 -0
- package/dist/{chunk-MK3OG2I4.js → spinner/index.js} +0 -1
- package/dist/stack/index.cjs +31 -0
- package/dist/stack/index.d.cts +1 -0
- package/dist/stack/index.d.ts +1 -0
- package/dist/stack/index.js +9 -0
- package/dist/{components/stat → stat}/index.d.cts +8 -8
- package/dist/{components/stat → stat}/index.d.ts +8 -8
- package/dist/{chunk-3RHNNKPC.js → stat/index.js} +2 -3
- package/dist/{components/status → status}/index.d.cts +2 -2
- package/dist/{components/status → status}/index.d.ts +2 -2
- package/dist/{chunk-U3EPRSD3.js → status/index.js} +1 -1
- package/dist/{components/steps → steps}/index.cjs +7 -0
- package/dist/{components/steps → steps}/index.d.cts +5 -5
- package/dist/{components/steps → steps}/index.d.ts +5 -5
- package/dist/steps/index.js +198 -0
- package/dist/{components/switch → switch}/index.d.cts +2 -2
- package/dist/{components/switch → switch}/index.d.ts +2 -2
- package/dist/{chunk-HTVSG47E.js → switch/index.js} +1 -1
- package/dist/{chunk-TH6YCBEG.js → table/index.js} +1 -1
- package/dist/{components/tabs → tabs}/index.d.cts +2 -0
- package/dist/{components/tabs → tabs}/index.d.ts +2 -0
- package/dist/{chunk-5YNHX4C7.js → tabs/index.js} +2 -3
- package/dist/{chunk-WJZED26X.js → tag/index.js} +0 -1
- package/dist/{chunk-CQD32UVJ.js → textarea/index.js} +0 -1
- package/dist/theme/tokens/colors.js +1 -2
- package/dist/{chunk-QLN2CBY6.js → timeline/index.js} +0 -1
- package/dist/{components/toaster → toaster}/index.cjs +7 -0
- package/dist/toaster/index.d.cts +235 -0
- package/dist/toaster/index.d.ts +235 -0
- package/dist/toaster/index.js +241 -0
- package/dist/toggle/index.cjs +31 -0
- package/dist/toggle/index.d.cts +3 -0
- package/dist/toggle/index.d.ts +3 -0
- package/dist/toggle/index.js +8 -0
- package/dist/{components/toggle-tip → toggle-tip}/index.cjs +7 -0
- package/dist/toggle-tip/index.d.cts +32 -0
- package/dist/toggle-tip/index.d.ts +32 -0
- package/dist/toggle-tip/index.js +263 -0
- package/dist/{components/tooltip → tooltip}/index.d.cts +2 -2
- package/dist/{components/tooltip → tooltip}/index.d.ts +2 -2
- package/dist/{chunk-7MCVXFWM.js → tooltip/index.js} +1 -1
- package/dist/typography/index.cjs +37 -0
- package/dist/typography/index.d.cts +1 -0
- package/dist/typography/index.d.ts +1 -0
- package/dist/typography/index.js +16 -0
- package/dist/visually-hidden/index.cjs +31 -0
- package/dist/visually-hidden/index.d.cts +1 -0
- package/dist/visually-hidden/index.d.ts +1 -0
- package/dist/visually-hidden/index.js +8 -0
- package/package.json +10 -4
- package/dist/chunk-2B5OZHZY.js +0 -71
- package/dist/chunk-3DGRWH7C.js +0 -101
- package/dist/chunk-77QJSEEA.js +0 -68
- package/dist/chunk-EYOHLXWQ.js +0 -64
- package/dist/chunk-HKMYYESV.js +0 -34
- package/dist/chunk-JMYI6YXR.js +0 -1
- package/dist/chunk-JPY2QZLC.js +0 -64
- package/dist/chunk-KTLWEUNW.js +0 -1
- package/dist/chunk-SXFVA6CX.js +0 -20
- package/dist/chunk-T2FPZNCP.js +0 -115
- package/dist/chunk-TWTXZ7PR.js +0 -100
- package/dist/chunk-XW747T2R.js +0 -43
- package/dist/chunk-YHQ5JGCC.js +0 -1
- package/dist/chunk-YLZEO3RK.js +0 -24
- package/dist/chunk-Z37BQ5VU.js +0 -54
- package/dist/components/accordion/index.js +0 -9
- package/dist/components/action-bar/index.js +0 -13
- package/dist/components/alert/index.js +0 -13
- package/dist/components/app-shell/index.js +0 -8
- package/dist/components/avatar/index.js +0 -11
- package/dist/components/badge/index.d.cts +0 -27
- package/dist/components/badge/index.d.ts +0 -27
- package/dist/components/badge/index.js +0 -10
- package/dist/components/blockquote/index.js +0 -8
- package/dist/components/breadcrumb/index.js +0 -8
- package/dist/components/button/index.js +0 -8
- package/dist/components/button-group/index.js +0 -8
- package/dist/components/card/index.js +0 -9
- package/dist/components/checkbox/index.js +0 -8
- package/dist/components/checkbox-card/index.js +0 -8
- package/dist/components/checkmark/index.js +0 -8
- package/dist/components/clipboard/index.d.cts +0 -28
- package/dist/components/clipboard/index.d.ts +0 -28
- package/dist/components/clipboard/index.js +0 -13
- package/dist/components/close-button/index.d.cts +0 -9
- package/dist/components/close-button/index.d.ts +0 -9
- package/dist/components/close-button/index.js +0 -12
- package/dist/components/code/index.d.cts +0 -1
- package/dist/components/code/index.d.ts +0 -1
- package/dist/components/code/index.js +0 -8
- package/dist/components/collapsible/index.js +0 -8
- package/dist/components/command/index.js +0 -9
- package/dist/components/container/index.js +0 -8
- package/dist/components/data-list/index.js +0 -10
- package/dist/components/dialog/index.js +0 -13
- package/dist/components/drawer/index.js +0 -13
- package/dist/components/editable/index.d.cts +0 -1
- package/dist/components/editable/index.d.ts +0 -1
- package/dist/components/editable/index.js +0 -8
- package/dist/components/empty-state/index.js +0 -8
- package/dist/components/field/index.js +0 -12
- package/dist/components/fieldset/index.d.cts +0 -1
- package/dist/components/fieldset/index.d.ts +0 -1
- package/dist/components/fieldset/index.js +0 -10
- package/dist/components/file-upload/index.js +0 -14
- package/dist/components/grid-list/index.js +0 -8
- package/dist/components/heading/index.js +0 -8
- package/dist/components/hover-card/index.js +0 -8
- package/dist/components/icon/index.js +0 -8
- package/dist/components/icon-badge/index.js +0 -8
- package/dist/components/icon-button/index.js +0 -9
- package/dist/components/icons/index.d.cts +0 -22
- package/dist/components/icons/index.d.ts +0 -22
- package/dist/components/image/index.js +0 -8
- package/dist/components/info-tip/index.d.cts +0 -13
- package/dist/components/info-tip/index.d.ts +0 -13
- package/dist/components/info-tip/index.js +0 -16
- package/dist/components/input/index.d.cts +0 -1
- package/dist/components/input/index.d.ts +0 -1
- package/dist/components/input/index.js +0 -14
- package/dist/components/input-group/index.cjs +0 -61
- package/dist/components/input-group/index.d.cts +0 -14
- package/dist/components/input-group/index.d.ts +0 -14
- package/dist/components/input-group/index.js +0 -9
- package/dist/components/kbd/index.d.cts +0 -1
- package/dist/components/kbd/index.d.ts +0 -1
- package/dist/components/kbd/index.js +0 -8
- package/dist/components/link/index.js +0 -9
- package/dist/components/list/index.js +0 -8
- package/dist/components/loader/index.js +0 -8
- package/dist/components/loading-overlay/index.d.cts +0 -10
- package/dist/components/loading-overlay/index.d.ts +0 -10
- package/dist/components/loading-overlay/index.js +0 -11
- package/dist/components/mark/index.js +0 -8
- package/dist/components/menu/index.js +0 -11
- package/dist/components/native-select/index.js +0 -10
- package/dist/components/navbar/index.d.cts +0 -21
- package/dist/components/navbar/index.d.ts +0 -21
- package/dist/components/navbar/index.js +0 -9
- package/dist/components/number-input/index.cjs +0 -95
- package/dist/components/number-input/index.js +0 -10
- package/dist/components/pagination/index.js +0 -11
- package/dist/components/password-input/index.js +0 -12
- package/dist/components/persona/index.js +0 -13
- package/dist/components/pin-input/index.js +0 -8
- package/dist/components/popover/index.d.cts +0 -3
- package/dist/components/popover/index.d.ts +0 -3
- package/dist/components/popover/index.js +0 -13
- package/dist/components/progress/index.js +0 -8
- package/dist/components/progress-circle/index.js +0 -8
- package/dist/components/radio/index.d.cts +0 -12
- package/dist/components/radio/index.d.ts +0 -12
- package/dist/components/radio/index.js +0 -10
- package/dist/components/radio-card/index.js +0 -8
- package/dist/components/rating-group/index.js +0 -8
- package/dist/components/search-input/index.js +0 -10
- package/dist/components/segmented-control/index.js +0 -8
- package/dist/components/select/index.js +0 -13
- package/dist/components/separator/index.js +0 -8
- package/dist/components/sidebar/index.d.cts +0 -90
- package/dist/components/sidebar/index.d.ts +0 -90
- package/dist/components/sidebar/index.js +0 -14
- package/dist/components/skeleton/index.js +0 -12
- package/dist/components/skip-nav-link/index.js +0 -10
- package/dist/components/slider/index.js +0 -8
- package/dist/components/spinner/index.js +0 -8
- package/dist/components/stat/index.js +0 -8
- package/dist/components/status/index.js +0 -8
- package/dist/components/steps/index.js +0 -10
- package/dist/components/switch/index.js +0 -8
- package/dist/components/table/index.js +0 -8
- package/dist/components/tabs/index.js +0 -14
- package/dist/components/tag/index.js +0 -8
- package/dist/components/textarea/index.js +0 -8
- package/dist/components/timeline/index.js +0 -8
- package/dist/components/toaster/index.d.cts +0 -11
- package/dist/components/toaster/index.d.ts +0 -11
- package/dist/components/toaster/index.js +0 -16
- package/dist/components/toggle-tip/index.d.cts +0 -13
- package/dist/components/toggle-tip/index.d.ts +0 -13
- package/dist/components/toggle-tip/index.js +0 -14
- package/dist/components/tooltip/index.js +0 -8
- package/dist/index-zAqswhEI.d.cts +0 -37
- package/dist/index-zAqswhEI.d.ts +0 -37
- package/dist/loading-overlay-BQ4lOS6T.d.ts +0 -23
- package/dist/loading-overlay-afP_W7ru.d.cts +0 -23
- package/dist/types-DnFoUudY.d.cts +0 -10
- package/dist/types-DnFoUudY.d.ts +0 -10
- /package/dist/{components/accordion → accordion}/index.d.cts +0 -0
- /package/dist/{components/accordion → accordion}/index.d.ts +0 -0
- /package/dist/{components/action-bar → action-bar}/index.d.cts +0 -0
- /package/dist/{components/action-bar → action-bar}/index.d.ts +0 -0
- /package/dist/{components/alert → alert}/index.d.cts +0 -0
- /package/dist/{components/alert → alert}/index.d.ts +0 -0
- /package/dist/{components/app-shell → app-shell}/index.cjs +0 -0
- /package/dist/{components/app-shell → app-shell}/index.d.cts +0 -0
- /package/dist/{components/app-shell → app-shell}/index.d.ts +0 -0
- /package/dist/{components/avatar → avatar}/index.cjs +0 -0
- /package/dist/{components/avatar → avatar}/index.d.cts +0 -0
- /package/dist/{components/avatar → avatar}/index.d.ts +0 -0
- /package/dist/{components/badge → badge}/index.cjs +0 -0
- /package/dist/{components/blockquote → blockquote}/index.cjs +0 -0
- /package/dist/{components/blockquote → blockquote}/index.d.cts +0 -0
- /package/dist/{components/blockquote → blockquote}/index.d.ts +0 -0
- /package/dist/{components/breadcrumb → breadcrumb}/index.cjs +0 -0
- /package/dist/{components/breadcrumb → breadcrumb}/index.d.cts +0 -0
- /package/dist/{components/breadcrumb → breadcrumb}/index.d.ts +0 -0
- /package/dist/{components/button → button}/index.cjs +0 -0
- /package/dist/{components/button → button}/index.d.cts +0 -0
- /package/dist/{components/button → button}/index.d.ts +0 -0
- /package/dist/{components/button-group → button-group}/index.cjs +0 -0
- /package/dist/{components/button-group → button-group}/index.d.cts +0 -0
- /package/dist/{components/button-group → button-group}/index.d.ts +0 -0
- /package/dist/{components/card → card}/index.cjs +0 -0
- /package/dist/{components/card → card}/index.d.cts +0 -0
- /package/dist/{components/card → card}/index.d.ts +0 -0
- /package/dist/{components/checkbox → checkbox}/index.cjs +0 -0
- /package/dist/{components/checkbox → checkbox}/index.d.cts +0 -0
- /package/dist/{components/checkbox → checkbox}/index.d.ts +0 -0
- /package/dist/{components/checkbox-card → checkbox-card}/index.cjs +0 -0
- /package/dist/{components/checkbox-card → checkbox-card}/index.d.cts +0 -0
- /package/dist/{components/checkbox-card → checkbox-card}/index.d.ts +0 -0
- /package/dist/{components/checkmark → checkmark}/index.cjs +0 -0
- /package/dist/{components/checkmark → checkmark}/index.d.cts +0 -0
- /package/dist/{components/checkmark → checkmark}/index.d.ts +0 -0
- /package/dist/{components/code → code}/index.cjs +0 -0
- /package/dist/{components/collapsible → collapsible}/index.cjs +0 -0
- /package/dist/{components/collapsible → collapsible}/index.d.cts +0 -0
- /package/dist/{components/collapsible → collapsible}/index.d.ts +0 -0
- /package/dist/{components/command → command}/index.cjs +0 -0
- /package/dist/{components/container → container}/index.cjs +0 -0
- /package/dist/{components/container → container}/index.d.cts +0 -0
- /package/dist/{components/container → container}/index.d.ts +0 -0
- /package/dist/{components/data-list → data-list}/index.cjs +0 -0
- /package/dist/{components/data-list → data-list}/index.d.cts +0 -0
- /package/dist/{components/data-list → data-list}/index.d.ts +0 -0
- /package/dist/{components/dialog → dialog}/index.d.cts +0 -0
- /package/dist/{components/dialog → dialog}/index.d.ts +0 -0
- /package/dist/{components/drawer → drawer}/index.d.cts +0 -0
- /package/dist/{components/drawer → drawer}/index.d.ts +0 -0
- /package/dist/{components/editable → editable}/index.cjs +0 -0
- /package/dist/{components/empty-state → empty-state}/index.cjs +0 -0
- /package/dist/{components/empty-state → empty-state}/index.d.cts +0 -0
- /package/dist/{components/empty-state → empty-state}/index.d.ts +0 -0
- /package/dist/{components/field → field}/index.cjs +0 -0
- /package/dist/{components/field → field}/index.d.cts +0 -0
- /package/dist/{components/field → field}/index.d.ts +0 -0
- /package/dist/{components/fieldset → fieldset}/index.cjs +0 -0
- /package/dist/{components/grid-list → grid-list}/index.cjs +0 -0
- /package/dist/{components/heading → heading}/index.cjs +0 -0
- /package/dist/{components/hover-card → hover-card}/index.cjs +0 -0
- /package/dist/{components/icon → icon}/index.cjs +0 -0
- /package/dist/{components/icon → icon}/index.d.cts +0 -0
- /package/dist/{components/icon → icon}/index.d.ts +0 -0
- /package/dist/{components/icon-badge → icon-badge}/index.cjs +0 -0
- /package/dist/{components/icon-button → icon-button}/index.cjs +0 -0
- /package/dist/{components/icon-button → icon-button}/index.d.cts +0 -0
- /package/dist/{components/icon-button → icon-button}/index.d.ts +0 -0
- /package/dist/{components/image → image}/index.cjs +0 -0
- /package/dist/{components/kbd → kbd}/index.cjs +0 -0
- /package/dist/{components/link → link}/index.cjs +0 -0
- /package/dist/{components/list → list}/index.cjs +0 -0
- /package/dist/{components/list → list}/index.d.cts +0 -0
- /package/dist/{components/list → list}/index.d.ts +0 -0
- /package/dist/{components/loader → loader}/index.cjs +0 -0
- /package/dist/{components/loader → loader}/index.d.cts +0 -0
- /package/dist/{components/loader → loader}/index.d.ts +0 -0
- /package/dist/{components/loading-overlay → loading-overlay}/index.cjs +0 -0
- /package/dist/{components/mark → mark}/index.cjs +0 -0
- /package/dist/{components/menu → menu}/index.d.cts +0 -0
- /package/dist/{components/menu → menu}/index.d.ts +0 -0
- /package/dist/{components/native-select → native-select}/index.d.cts +0 -0
- /package/dist/{components/native-select → native-select}/index.d.ts +0 -0
- /package/dist/{components/navbar → navbar}/index.cjs +0 -0
- /package/dist/{components/pin-input → pin-input}/index.cjs +0 -0
- /package/dist/{components/progress → progress}/index.cjs +0 -0
- /package/dist/{components/progress → progress}/index.d.cts +0 -0
- /package/dist/{components/progress → progress}/index.d.ts +0 -0
- /package/dist/{components/progress-circle → progress-circle}/index.cjs +0 -0
- /package/dist/{components/progress-circle → progress-circle}/index.d.cts +0 -0
- /package/dist/{components/progress-circle → progress-circle}/index.d.ts +0 -0
- /package/dist/{components/radio-card → radio-card}/index.cjs +0 -0
- /package/dist/{components/radio-card → radio-card}/index.d.cts +0 -0
- /package/dist/{components/radio-card → radio-card}/index.d.ts +0 -0
- /package/dist/{components/rating-group → rating-group}/index.cjs +0 -0
- /package/dist/{components/rating-group → rating-group}/index.d.cts +0 -0
- /package/dist/{components/rating-group → rating-group}/index.d.ts +0 -0
- /package/dist/{components/search-input → search-input}/index.d.cts +0 -0
- /package/dist/{components/search-input → search-input}/index.d.ts +0 -0
- /package/dist/{components/segmented-control → segmented-control}/index.cjs +0 -0
- /package/dist/{components/segmented-control → segmented-control}/index.d.cts +0 -0
- /package/dist/{components/segmented-control → segmented-control}/index.d.ts +0 -0
- /package/dist/{components/select → select}/index.d.cts +0 -0
- /package/dist/{components/select → select}/index.d.ts +0 -0
- /package/dist/{components/separator → separator}/index.cjs +0 -0
- /package/dist/{components/sidebar → sidebar}/index.cjs +0 -0
- /package/dist/{components/skeleton → skeleton}/index.cjs +0 -0
- /package/dist/{components/skip-nav-link → skip-nav}/index.d.cts +0 -0
- /package/dist/{components/skip-nav-link → skip-nav}/index.d.ts +0 -0
- /package/dist/{components/skip-nav-link → skip-nav-link}/index.cjs +0 -0
- /package/dist/{components/slider → slider}/index.cjs +0 -0
- /package/dist/{components/slider → slider}/index.d.cts +0 -0
- /package/dist/{components/slider → slider}/index.d.ts +0 -0
- /package/dist/{components/spinner → spinner}/index.cjs +0 -0
- /package/dist/{components/spinner → spinner}/index.d.cts +0 -0
- /package/dist/{components/spinner → spinner}/index.d.ts +0 -0
- /package/dist/{components/stat → stat}/index.cjs +0 -0
- /package/dist/{components/status → status}/index.cjs +0 -0
- /package/dist/{components/switch → switch}/index.cjs +0 -0
- /package/dist/{components/table → table}/index.cjs +0 -0
- /package/dist/{components/table → table}/index.d.cts +0 -0
- /package/dist/{components/table → table}/index.d.ts +0 -0
- /package/dist/{components/tabs → tabs}/index.cjs +0 -0
- /package/dist/{components/tag → tag}/index.cjs +0 -0
- /package/dist/{components/tag → tag}/index.d.cts +0 -0
- /package/dist/{components/tag → tag}/index.d.ts +0 -0
- /package/dist/{components/textarea → textarea}/index.cjs +0 -0
- /package/dist/{components/textarea → textarea}/index.d.cts +0 -0
- /package/dist/{components/textarea → textarea}/index.d.ts +0 -0
- /package/dist/{components/timeline → timeline}/index.cjs +0 -0
- /package/dist/{components/timeline → timeline}/index.d.cts +0 -0
- /package/dist/{components/timeline → timeline}/index.d.ts +0 -0
- /package/dist/{components/tooltip → tooltip}/index.cjs +0 -0
@@ -0,0 +1,167 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "../chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/page/page.tsx
|
7
|
+
var page_exports = {};
|
8
|
+
__export(page_exports, {
|
9
|
+
Body: () => PageBody,
|
10
|
+
Description: () => PageDescription,
|
11
|
+
Header: () => PageHeader,
|
12
|
+
HeaderSection: () => PageHeaderSection,
|
13
|
+
Root: () => PageRoot,
|
14
|
+
Title: () => PageTitle
|
15
|
+
});
|
16
|
+
import React2, { forwardRef as forwardRef3 } from "react";
|
17
|
+
import {
|
18
|
+
chakra as chakra2
|
19
|
+
} from "@chakra-ui/react";
|
20
|
+
|
21
|
+
// src/components/loading-overlay/loading-overlay.tsx
|
22
|
+
var loading_overlay_exports = {};
|
23
|
+
__export(loading_overlay_exports, {
|
24
|
+
Root: () => LoadingOverlayRoot,
|
25
|
+
Spinner: () => LoadingOverlaySpinner,
|
26
|
+
Text: () => LoadingOverlayText
|
27
|
+
});
|
28
|
+
import { forwardRef as forwardRef2 } from "react";
|
29
|
+
import {
|
30
|
+
Presence,
|
31
|
+
splitPresenceProps
|
32
|
+
} from "@ark-ui/react/presence";
|
33
|
+
import { chakra } from "@chakra-ui/react";
|
34
|
+
|
35
|
+
// src/components/spinner/spinner.tsx
|
36
|
+
import { forwardRef } from "react";
|
37
|
+
import { Spinner as ChakraSpinner } from "@chakra-ui/react/spinner";
|
38
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
39
|
+
var Spinner = forwardRef(
|
40
|
+
function Spinner2(props, ref) {
|
41
|
+
const { loading, children, ...rest } = props;
|
42
|
+
if (loading === false) {
|
43
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
44
|
+
}
|
45
|
+
return /* @__PURE__ */ jsx(ChakraSpinner, { ref, ...rest });
|
46
|
+
}
|
47
|
+
);
|
48
|
+
|
49
|
+
// src/components/loading-overlay/loading-overlay.context.ts
|
50
|
+
import { createSlotRecipeContext } from "@chakra-ui/react";
|
51
|
+
var {
|
52
|
+
useStyles: useLoadingOverlayStyles,
|
53
|
+
withContext,
|
54
|
+
withProvider
|
55
|
+
} = createSlotRecipeContext({
|
56
|
+
key: "suiLoadingOverlay"
|
57
|
+
});
|
58
|
+
|
59
|
+
// src/components/loading-overlay/loading-overlay.tsx
|
60
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
61
|
+
var LoadingOverlay = forwardRef2(
|
62
|
+
(props, ref) => {
|
63
|
+
const { children, loading = true, ...rest } = props;
|
64
|
+
const [presenceProps, rootProps] = splitPresenceProps(rest);
|
65
|
+
return /* @__PURE__ */ jsx2(Presence, { present: loading, ...presenceProps, asChild: true, children: /* @__PURE__ */ jsx2(chakra.div, { ref, ...rootProps, children }) });
|
66
|
+
}
|
67
|
+
);
|
68
|
+
var LoadingOverlayRoot = withProvider(
|
69
|
+
LoadingOverlay,
|
70
|
+
"root"
|
71
|
+
);
|
72
|
+
LoadingOverlayRoot.displayName = "LoadingOverlay";
|
73
|
+
var LoadingOverlaySpinner = Spinner;
|
74
|
+
var LoadingOverlayText = withContext(
|
75
|
+
"p",
|
76
|
+
"text"
|
77
|
+
);
|
78
|
+
|
79
|
+
// src/components/page/page.context.ts
|
80
|
+
import { createContext, createSlotRecipeContext as createSlotRecipeContext2 } from "@chakra-ui/react";
|
81
|
+
var {
|
82
|
+
withProvider: withProvider2,
|
83
|
+
withContext: withContext2,
|
84
|
+
useStyles: usePageStyles,
|
85
|
+
useClassNames
|
86
|
+
} = createSlotRecipeContext2({
|
87
|
+
key: "suiPage"
|
88
|
+
});
|
89
|
+
var [PageProvider, usePageContext] = createContext();
|
90
|
+
|
91
|
+
// src/components/page/page.tsx
|
92
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
93
|
+
var PageRoot = withProvider2(
|
94
|
+
forwardRef3(function PageRoot2(props, ref) {
|
95
|
+
const { loading, skeleton, children, ...containerProps } = props;
|
96
|
+
const context = {
|
97
|
+
loading,
|
98
|
+
skeleton
|
99
|
+
};
|
100
|
+
return /* @__PURE__ */ jsx3(PageProvider, { value: context, children: /* @__PURE__ */ jsx3(chakra2.main, { ref, ...containerProps, children }) });
|
101
|
+
}),
|
102
|
+
"root"
|
103
|
+
);
|
104
|
+
var PageHeader = withContext2(
|
105
|
+
forwardRef3(function PageHeader2(props, ref) {
|
106
|
+
const { nav, title, description, actions, footer, css, ...rest } = props;
|
107
|
+
const styles = usePageStyles();
|
108
|
+
const classNames = useClassNames();
|
109
|
+
let heading;
|
110
|
+
if (title || description) {
|
111
|
+
heading = /* @__PURE__ */ jsxs(
|
112
|
+
chakra2.div,
|
113
|
+
{
|
114
|
+
gridArea: "heading",
|
115
|
+
className: classNames.heading,
|
116
|
+
css: styles.heading,
|
117
|
+
children: [
|
118
|
+
typeof title === "string" ? /* @__PURE__ */ jsx3(PageTitle, { children: title }) : title,
|
119
|
+
typeof description === "string" ? /* @__PURE__ */ jsx3(PageDescription, { children: description }) : description
|
120
|
+
]
|
121
|
+
}
|
122
|
+
);
|
123
|
+
}
|
124
|
+
return /* @__PURE__ */ jsxs(chakra2.header, { ref, css, ...rest, className: props.className, children: [
|
125
|
+
React2.isValidElement(nav) ? React2.cloneElement(nav, {
|
126
|
+
gridArea: "nav"
|
127
|
+
}) : null,
|
128
|
+
heading,
|
129
|
+
React2.isValidElement(actions) ? React2.cloneElement(actions, {
|
130
|
+
gridArea: "actions"
|
131
|
+
}) : null,
|
132
|
+
React2.isValidElement(footer) ? React2.cloneElement(footer, {
|
133
|
+
gridArea: "footer"
|
134
|
+
}) : null
|
135
|
+
] });
|
136
|
+
}),
|
137
|
+
"header"
|
138
|
+
);
|
139
|
+
var PageHeaderSection = withContext2(
|
140
|
+
"div",
|
141
|
+
"section"
|
142
|
+
);
|
143
|
+
var PageTitle = withContext2(
|
144
|
+
"h2",
|
145
|
+
"title"
|
146
|
+
);
|
147
|
+
var PageDescription = withContext2(
|
148
|
+
"div",
|
149
|
+
"description"
|
150
|
+
);
|
151
|
+
var PageBody = withContext2(
|
152
|
+
forwardRef3((props, ref) => {
|
153
|
+
const { children, ...rest } = props;
|
154
|
+
const { loading, skeleton } = usePageContext();
|
155
|
+
let content = children;
|
156
|
+
if (loading) {
|
157
|
+
content = skeleton || /* @__PURE__ */ jsx3(loading_overlay_exports.Root, { children: /* @__PURE__ */ jsx3(loading_overlay_exports.Spinner, {}) });
|
158
|
+
}
|
159
|
+
return /* @__PURE__ */ jsx3(chakra2.div, { ref, ...rest, children: content });
|
160
|
+
}),
|
161
|
+
"body"
|
162
|
+
);
|
163
|
+
PageBody.displayName = "PageBody";
|
164
|
+
export {
|
165
|
+
page_exports as Page,
|
166
|
+
usePageStyles
|
167
|
+
};
|
@@ -186,6 +186,13 @@ var InfoIcon = createIcon({
|
|
186
186
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 8h.01" })
|
187
187
|
] })
|
188
188
|
});
|
189
|
+
var ArrowLeftIcon = createIcon({
|
190
|
+
displayName: "ArrowLeftIcon",
|
191
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
193
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("polyline", { points: "12 19 5 12 12 5" })
|
194
|
+
] })
|
195
|
+
});
|
189
196
|
|
190
197
|
// src/components/pagination/pagination.tsx
|
191
198
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as _ark_ui_react from '@ark-ui/react';
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
3
|
-
import * as
|
3
|
+
import * as React$1 from 'react';
|
4
4
|
import { Pagination } from '@chakra-ui/react/pagination';
|
5
5
|
import { TextProps } from '@chakra-ui/react/typography';
|
6
6
|
import { ButtonProps } from '@chakra-ui/react/button';
|
@@ -10,19 +10,19 @@ interface RootProps extends Omit<Pagination.RootProps, 'type'> {
|
|
10
10
|
size?: ButtonProps['size'];
|
11
11
|
variant?: PaginationVariant;
|
12
12
|
}
|
13
|
-
declare const Root:
|
14
|
-
declare const Ellipsis:
|
15
|
-
declare const Item:
|
16
|
-
declare const PrevButton:
|
17
|
-
declare const NextButton:
|
13
|
+
declare const Root: React$1.ForwardRefExoticComponent<RootProps & React$1.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const Ellipsis: React$1.ForwardRefExoticComponent<Pagination.EllipsisProps & React$1.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const Item: React$1.ForwardRefExoticComponent<Pagination.ItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
16
|
+
declare const PrevButton: React$1.ForwardRefExoticComponent<Pagination.PrevTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
17
|
+
declare const NextButton: React$1.ForwardRefExoticComponent<Pagination.NextTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
18
18
|
declare const Items: (props: React.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
19
19
|
interface PageTextProps extends TextProps {
|
20
20
|
format?: 'short' | 'compact' | 'long';
|
21
21
|
}
|
22
|
-
declare const PageText:
|
23
|
-
declare const PrevTrigger:
|
24
|
-
declare const NextTrigger:
|
25
|
-
declare const Context: (props: _ark_ui_react.PaginationContextProps) =>
|
22
|
+
declare const PageText: React$1.ForwardRefExoticComponent<PageTextProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
23
|
+
declare const PrevTrigger: React$1.ForwardRefExoticComponent<Pagination.PrevTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
24
|
+
declare const NextTrigger: React$1.ForwardRefExoticComponent<Pagination.NextTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
25
|
+
declare const Context: (props: _ark_ui_react.PaginationContextProps) => React$1.ReactNode;
|
26
26
|
|
27
27
|
declare const pagination_Context: typeof Context;
|
28
28
|
declare const pagination_Ellipsis: typeof Ellipsis;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as _ark_ui_react from '@ark-ui/react';
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
3
|
-
import * as
|
3
|
+
import * as React$1 from 'react';
|
4
4
|
import { Pagination } from '@chakra-ui/react/pagination';
|
5
5
|
import { TextProps } from '@chakra-ui/react/typography';
|
6
6
|
import { ButtonProps } from '@chakra-ui/react/button';
|
@@ -10,19 +10,19 @@ interface RootProps extends Omit<Pagination.RootProps, 'type'> {
|
|
10
10
|
size?: ButtonProps['size'];
|
11
11
|
variant?: PaginationVariant;
|
12
12
|
}
|
13
|
-
declare const Root:
|
14
|
-
declare const Ellipsis:
|
15
|
-
declare const Item:
|
16
|
-
declare const PrevButton:
|
17
|
-
declare const NextButton:
|
13
|
+
declare const Root: React$1.ForwardRefExoticComponent<RootProps & React$1.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const Ellipsis: React$1.ForwardRefExoticComponent<Pagination.EllipsisProps & React$1.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const Item: React$1.ForwardRefExoticComponent<Pagination.ItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
16
|
+
declare const PrevButton: React$1.ForwardRefExoticComponent<Pagination.PrevTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
17
|
+
declare const NextButton: React$1.ForwardRefExoticComponent<Pagination.NextTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
18
18
|
declare const Items: (props: React.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
19
19
|
interface PageTextProps extends TextProps {
|
20
20
|
format?: 'short' | 'compact' | 'long';
|
21
21
|
}
|
22
|
-
declare const PageText:
|
23
|
-
declare const PrevTrigger:
|
24
|
-
declare const NextTrigger:
|
25
|
-
declare const Context: (props: _ark_ui_react.PaginationContextProps) =>
|
22
|
+
declare const PageText: React$1.ForwardRefExoticComponent<PageTextProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
23
|
+
declare const PrevTrigger: React$1.ForwardRefExoticComponent<Pagination.PrevTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
24
|
+
declare const NextTrigger: React$1.ForwardRefExoticComponent<Pagination.NextTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
25
|
+
declare const Context: (props: _ark_ui_react.PaginationContextProps) => React$1.ReactNode;
|
26
26
|
|
27
27
|
declare const pagination_Context: typeof Context;
|
28
28
|
declare const pagination_Ellipsis: typeof Ellipsis;
|
@@ -0,0 +1,223 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
Button,
|
4
|
+
IconButton
|
5
|
+
} from "../chunk-A4CVFWTP.js";
|
6
|
+
import {
|
7
|
+
__export
|
8
|
+
} from "../chunk-RTMS5TJN.js";
|
9
|
+
|
10
|
+
// src/components/pagination/pagination.tsx
|
11
|
+
var pagination_exports = {};
|
12
|
+
__export(pagination_exports, {
|
13
|
+
Context: () => Context,
|
14
|
+
Ellipsis: () => Ellipsis,
|
15
|
+
Item: () => Item,
|
16
|
+
Items: () => Items,
|
17
|
+
NextButton: () => NextButton,
|
18
|
+
NextTrigger: () => NextTrigger,
|
19
|
+
PageText: () => PageText,
|
20
|
+
PrevButton: () => PrevButton,
|
21
|
+
PrevTrigger: () => PrevTrigger,
|
22
|
+
Root: () => Root
|
23
|
+
});
|
24
|
+
import { forwardRef, useMemo } from "react";
|
25
|
+
import {
|
26
|
+
Pagination as ChakraPagination,
|
27
|
+
usePaginationContext
|
28
|
+
} from "@chakra-ui/react/pagination";
|
29
|
+
import { Text } from "@chakra-ui/react/typography";
|
30
|
+
import { createContext } from "@saas-ui/core/utils";
|
31
|
+
|
32
|
+
// src/components/icons/create-icon.tsx
|
33
|
+
import { createIcon as _createIcon } from "@chakra-ui/react/icon";
|
34
|
+
var createIcon = (props) => {
|
35
|
+
return _createIcon({
|
36
|
+
viewBox: "0 0 24 24",
|
37
|
+
defaultProps: {
|
38
|
+
fill: "none",
|
39
|
+
stroke: "currentColor",
|
40
|
+
strokeWidth: "2",
|
41
|
+
strokeLinecap: "round",
|
42
|
+
strokeLinejoin: "round"
|
43
|
+
},
|
44
|
+
...props
|
45
|
+
});
|
46
|
+
};
|
47
|
+
|
48
|
+
// src/components/icons/icons.tsx
|
49
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
50
|
+
var ChevronUpIcon = createIcon({
|
51
|
+
displayName: "ChevronUpIcon",
|
52
|
+
path: /* @__PURE__ */ jsx("polyline", { points: "18 15 12 9 6 15" })
|
53
|
+
});
|
54
|
+
var ChevronDownIcon = createIcon({
|
55
|
+
displayName: "ChevronDownIcon",
|
56
|
+
path: /* @__PURE__ */ jsx("polyline", { points: "6 9 12 15 18 9" })
|
57
|
+
});
|
58
|
+
var ChevronLeftIcon = createIcon({
|
59
|
+
displayName: "ChevronLeftIcon",
|
60
|
+
path: /* @__PURE__ */ jsx("polyline", { points: "15 18 9 12 15 6" })
|
61
|
+
});
|
62
|
+
var ChevronRightIcon = createIcon({
|
63
|
+
displayName: "ChevronRightIcon",
|
64
|
+
path: /* @__PURE__ */ jsx("polyline", { points: "9 18 15 12 9 6" })
|
65
|
+
});
|
66
|
+
var HamburgerIcon = createIcon({
|
67
|
+
displayName: "ChevronDownIcon",
|
68
|
+
path: /* @__PURE__ */ jsxs("g", { fill: "none", children: [
|
69
|
+
/* @__PURE__ */ jsx("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
70
|
+
/* @__PURE__ */ jsx("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
71
|
+
/* @__PURE__ */ jsx("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
72
|
+
] })
|
73
|
+
});
|
74
|
+
var CloseIcon = createIcon({
|
75
|
+
displayName: "CloseIcon",
|
76
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
77
|
+
/* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
78
|
+
/* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
79
|
+
] })
|
80
|
+
});
|
81
|
+
var FilterIcon = createIcon({
|
82
|
+
displayName: "FilterIcon",
|
83
|
+
path: /* @__PURE__ */ jsx("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" })
|
84
|
+
});
|
85
|
+
var CalendarIcon = createIcon({
|
86
|
+
displayName: "CalendarIcon",
|
87
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
88
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
|
89
|
+
/* @__PURE__ */ jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
|
90
|
+
/* @__PURE__ */ jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
|
91
|
+
/* @__PURE__ */ jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
|
92
|
+
] })
|
93
|
+
});
|
94
|
+
var PlusIcon = createIcon({
|
95
|
+
displayName: "PlusIcon",
|
96
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
97
|
+
/* @__PURE__ */ jsx("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
98
|
+
/* @__PURE__ */ jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
99
|
+
] })
|
100
|
+
});
|
101
|
+
var MinusIcon = createIcon({
|
102
|
+
displayName: "MinusIcon",
|
103
|
+
path: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) })
|
104
|
+
});
|
105
|
+
var ViewOffIcon = createIcon({
|
106
|
+
displayName: "ViewOffIcon",
|
107
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
|
109
|
+
/* @__PURE__ */ jsx("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
110
|
+
] })
|
111
|
+
});
|
112
|
+
var ViewIcon = createIcon({
|
113
|
+
displayName: "ViewOffIcon",
|
114
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
115
|
+
/* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
|
116
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
|
117
|
+
] })
|
118
|
+
});
|
119
|
+
var SearchIcon = createIcon({
|
120
|
+
displayName: "SearchIcon",
|
121
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
122
|
+
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
123
|
+
/* @__PURE__ */ jsx("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
124
|
+
] })
|
125
|
+
});
|
126
|
+
var CheckIcon = createIcon({
|
127
|
+
displayName: "CheckIcon",
|
128
|
+
path: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" }) })
|
129
|
+
});
|
130
|
+
var EllipsisIcon = createIcon({
|
131
|
+
displayName: "EllipsisIcon",
|
132
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
133
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
|
134
|
+
/* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" }),
|
135
|
+
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" })
|
136
|
+
] })
|
137
|
+
});
|
138
|
+
var CopyIcon = createIcon({
|
139
|
+
displayName: "CopyIcon",
|
140
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
141
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
142
|
+
/* @__PURE__ */ jsx("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
143
|
+
] })
|
144
|
+
});
|
145
|
+
var InfoIcon = createIcon({
|
146
|
+
displayName: "InfoIcon",
|
147
|
+
path: /* @__PURE__ */ jsxs("g", { children: [
|
148
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
149
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16v-4" }),
|
150
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8h.01" })
|
151
|
+
] })
|
152
|
+
});
|
153
|
+
var ArrowLeftIcon = createIcon({
|
154
|
+
displayName: "ArrowLeftIcon",
|
155
|
+
path: /* @__PURE__ */ jsxs(Fragment, { children: [
|
156
|
+
/* @__PURE__ */ jsx("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
157
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 19 5 12 12 5" })
|
158
|
+
] })
|
159
|
+
});
|
160
|
+
|
161
|
+
// src/components/pagination/pagination.tsx
|
162
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
163
|
+
var [RootPropsProvider, useRootProps] = createContext({
|
164
|
+
name: "RootPropsProvider"
|
165
|
+
});
|
166
|
+
var variantMap = {
|
167
|
+
outline: { default: "ghost", ellipsis: "plain", current: "outline" },
|
168
|
+
solid: { default: "outline", ellipsis: "outline", current: "solid" },
|
169
|
+
subtle: { default: "ghost", ellipsis: "plain", current: "subtle" }
|
170
|
+
};
|
171
|
+
var Root = forwardRef(
|
172
|
+
function PaginationRoot(props, ref) {
|
173
|
+
const { size = "sm", variant = "outline", ...rest } = props;
|
174
|
+
return /* @__PURE__ */ jsx2(RootPropsProvider, { value: { size, variantMap: variantMap[variant] }, children: /* @__PURE__ */ jsx2(ChakraPagination.Root, { ref, type: "button", ...rest }) });
|
175
|
+
}
|
176
|
+
);
|
177
|
+
var Ellipsis = forwardRef(function PaginationEllipsis(props, ref) {
|
178
|
+
var _a;
|
179
|
+
const { size, variantMap: variantMap2 } = useRootProps();
|
180
|
+
return /* @__PURE__ */ jsx2(ChakraPagination.Ellipsis, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx2(Button, { as: "span", variant: variantMap2.ellipsis, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx2(EllipsisIcon, {}) }) });
|
181
|
+
});
|
182
|
+
var Item = forwardRef(
|
183
|
+
function PaginationItem(props, ref) {
|
184
|
+
const { page } = usePaginationContext();
|
185
|
+
const { size, variantMap: variantMap2 } = useRootProps();
|
186
|
+
const current = page === props.value;
|
187
|
+
const variant = current ? variantMap2.current : variantMap2.default;
|
188
|
+
return /* @__PURE__ */ jsx2(ChakraPagination.Item, { ref, ...props, asChild: true, children: /* @__PURE__ */ jsx2(Button, { variant, size, children: props.value }) });
|
189
|
+
}
|
190
|
+
);
|
191
|
+
var PrevButton = forwardRef(function PaginationPrevTrigger(props, ref) {
|
192
|
+
var _a;
|
193
|
+
const { size, variantMap: variantMap2 } = useRootProps();
|
194
|
+
return /* @__PURE__ */ jsx2(ChakraPagination.PrevTrigger, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx2(IconButton, { variant: variantMap2.default, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx2(ChevronLeftIcon, {}) }) });
|
195
|
+
});
|
196
|
+
var NextButton = forwardRef(function PaginationNextTrigger(props, ref) {
|
197
|
+
var _a;
|
198
|
+
const { size, variantMap: variantMap2 } = useRootProps();
|
199
|
+
return /* @__PURE__ */ jsx2(ChakraPagination.NextTrigger, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx2(IconButton, { variant: variantMap2.default, size, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx2(ChevronRightIcon, {}) }) });
|
200
|
+
});
|
201
|
+
var Items = (props) => {
|
202
|
+
return /* @__PURE__ */ jsx2(ChakraPagination.Context, { children: ({ pages }) => pages.map((page, index) => {
|
203
|
+
return page.type === "ellipsis" ? /* @__PURE__ */ jsx2(Ellipsis, { index, ...props }, index) : /* @__PURE__ */ jsx2(Item, { type: "page", value: page.value, ...props }, index);
|
204
|
+
}) });
|
205
|
+
};
|
206
|
+
var PageText = forwardRef(
|
207
|
+
function PaginationPageText(props, ref) {
|
208
|
+
const { format = "compact", ...rest } = props;
|
209
|
+
const { page, pages, pageRange, count } = usePaginationContext();
|
210
|
+
const content = useMemo(() => {
|
211
|
+
if (format === "short") return `${page} / ${pages.length}`;
|
212
|
+
if (format === "compact") return `${page} of ${pages.length}`;
|
213
|
+
return `${pageRange.start + 1} - ${pageRange.end} of ${count}`;
|
214
|
+
}, [format, page, pages.length, pageRange, count]);
|
215
|
+
return /* @__PURE__ */ jsx2(Text, { fontWeight: "medium", ref, ...rest, children: content });
|
216
|
+
}
|
217
|
+
);
|
218
|
+
var PrevTrigger = ChakraPagination.PrevTrigger;
|
219
|
+
var NextTrigger = ChakraPagination.NextTrigger;
|
220
|
+
var Context = ChakraPagination.Context;
|
221
|
+
export {
|
222
|
+
pagination_exports as Pagination
|
223
|
+
};
|
@@ -36,8 +36,8 @@ __export(password_input_exports, {
|
|
36
36
|
module.exports = __toCommonJS(password_input_exports);
|
37
37
|
|
38
38
|
// src/components/password-input/password-input.tsx
|
39
|
-
var
|
40
|
-
var
|
39
|
+
var import_react4 = require("react");
|
40
|
+
var import_react5 = require("@chakra-ui/react");
|
41
41
|
|
42
42
|
// ../../node_modules/react-icons/lib/iconBase.mjs
|
43
43
|
var import_react2 = __toESM(require("react"), 1);
|
@@ -208,60 +208,32 @@ var IconButton = (0, import_react3.forwardRef)(
|
|
208
208
|
}
|
209
209
|
);
|
210
210
|
|
211
|
-
// src/components/input-group/input-group.tsx
|
212
|
-
var import_react4 = require("react");
|
213
|
-
var import_group = require("@chakra-ui/react/group");
|
214
|
-
|
215
211
|
// src/components/input/index.ts
|
216
212
|
var import_input = require("@chakra-ui/react/input");
|
217
213
|
|
218
|
-
// src/components/input-group/input-group.tsx
|
219
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
220
|
-
var InputGroup = (0, import_react4.forwardRef)(
|
221
|
-
function InputGroup2(props, ref) {
|
222
|
-
const {
|
223
|
-
startElement,
|
224
|
-
startElementProps,
|
225
|
-
endElement,
|
226
|
-
endElementProps,
|
227
|
-
children,
|
228
|
-
...rest
|
229
|
-
} = props;
|
230
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_group.Group, { ref, display: "flex", ...rest, children: [
|
231
|
-
startElement && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_input.InputElement, { pointerEvents: "none", ...startElementProps, children: startElement }),
|
232
|
-
(0, import_react4.isValidElement)(children) && (0, import_react4.cloneElement)(children, {
|
233
|
-
...startElement && { ps: "calc(var(--input-height) - 6px)" },
|
234
|
-
...endElement && { pe: "calc(var(--input-height) - 6px)" },
|
235
|
-
...children.props
|
236
|
-
}),
|
237
|
-
endElement && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_input.InputElement, { placement: "end", ...endElementProps, children: endElement })
|
238
|
-
] });
|
239
|
-
}
|
240
|
-
);
|
241
|
-
|
242
214
|
// src/components/password-input/password-input.tsx
|
243
|
-
var
|
244
|
-
var PasswordInput = (0,
|
215
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
216
|
+
var PasswordInput = (0, import_react4.forwardRef)(
|
245
217
|
function PasswordInput2(props, ref) {
|
246
218
|
const {
|
247
219
|
rootProps,
|
248
220
|
defaultVisible,
|
249
221
|
visible: visibleProp,
|
250
222
|
onVisibleChange,
|
251
|
-
visibilityIcon = { on: /* @__PURE__ */ (0,
|
223
|
+
visibilityIcon = { on: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LuEye, {}), off: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LuEyeOff, {}) },
|
252
224
|
...rest
|
253
225
|
} = props;
|
254
|
-
const [visible, setVisible] = (0,
|
226
|
+
const [visible, setVisible] = (0, import_react5.useControllableState)({
|
255
227
|
value: visibleProp,
|
256
228
|
defaultValue: defaultVisible || false,
|
257
229
|
onChange: onVisibleChange
|
258
230
|
});
|
259
|
-
const inputRef = (0,
|
260
|
-
return /* @__PURE__ */ (0,
|
261
|
-
InputGroup,
|
231
|
+
const inputRef = (0, import_react4.useRef)(null);
|
232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
233
|
+
import_input.InputGroup,
|
262
234
|
{
|
263
235
|
width: "full",
|
264
|
-
endElement: /* @__PURE__ */ (0,
|
236
|
+
endElement: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
265
237
|
VisibilityTrigger,
|
266
238
|
{
|
267
239
|
disabled: rest.disabled,
|
@@ -275,11 +247,11 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
275
247
|
}
|
276
248
|
),
|
277
249
|
...rootProps,
|
278
|
-
children: /* @__PURE__ */ (0,
|
250
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
279
251
|
import_input.Input,
|
280
252
|
{
|
281
253
|
...rest,
|
282
|
-
ref: (0,
|
254
|
+
ref: (0, import_react5.mergeRefs)(ref, inputRef),
|
283
255
|
type: visible ? "text" : "password"
|
284
256
|
}
|
285
257
|
)
|
@@ -287,9 +259,9 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
287
259
|
);
|
288
260
|
}
|
289
261
|
);
|
290
|
-
var VisibilityTrigger = (0,
|
262
|
+
var VisibilityTrigger = (0, import_react4.forwardRef)(
|
291
263
|
function VisibilityTrigger2(props, ref) {
|
292
|
-
return /* @__PURE__ */ (0,
|
264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
293
265
|
IconButton,
|
294
266
|
{
|
295
267
|
tabIndex: -1,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import * as
|
2
|
-
import { InputGroupProps } from '
|
3
|
-
import { InputProps } from '@chakra-ui/react/input';
|
4
|
-
import '@chakra-ui/react/group';
|
1
|
+
import * as React$1 from 'react';
|
2
|
+
import { InputProps, InputGroupProps } from '@chakra-ui/react/input';
|
5
3
|
|
6
4
|
interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
7
5
|
rootProps?: InputGroupProps;
|
8
6
|
}
|
9
|
-
declare const PasswordInput:
|
7
|
+
declare const PasswordInput: React$1.ForwardRefExoticComponent<PasswordInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
10
8
|
interface PasswordVisibilityProps {
|
11
9
|
defaultVisible?: boolean;
|
12
10
|
visible?: boolean;
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import * as
|
2
|
-
import { InputGroupProps } from '
|
3
|
-
import { InputProps } from '@chakra-ui/react/input';
|
4
|
-
import '@chakra-ui/react/group';
|
1
|
+
import * as React$1 from 'react';
|
2
|
+
import { InputProps, InputGroupProps } from '@chakra-ui/react/input';
|
5
3
|
|
6
4
|
interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
7
5
|
rootProps?: InputGroupProps;
|
8
6
|
}
|
9
|
-
declare const PasswordInput:
|
7
|
+
declare const PasswordInput: React$1.ForwardRefExoticComponent<PasswordInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
10
8
|
interface PasswordVisibilityProps {
|
11
9
|
defaultVisible?: boolean;
|
12
10
|
visible?: boolean;
|
@@ -1,13 +1,12 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
|
+
Input,
|
3
4
|
InputGroup
|
4
|
-
} from "
|
5
|
-
import {
|
6
|
-
Input
|
7
|
-
} from "./chunk-5MTFSSOH.js";
|
5
|
+
} from "../chunk-BFWNUE2X.js";
|
8
6
|
import {
|
9
7
|
IconButton
|
10
|
-
} from "
|
8
|
+
} from "../chunk-A4CVFWTP.js";
|
9
|
+
import "../chunk-RTMS5TJN.js";
|
11
10
|
|
12
11
|
// src/components/password-input/password-input.tsx
|
13
12
|
import { forwardRef, useRef } from "react";
|
@@ -226,7 +225,6 @@ var VisibilityTrigger = forwardRef(
|
|
226
225
|
);
|
227
226
|
}
|
228
227
|
);
|
229
|
-
|
230
228
|
export {
|
231
229
|
PasswordInput
|
232
230
|
};
|