@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
@@ -33,7 +33,7 @@ var persona_exports = {};
|
|
33
33
|
__export(persona_exports, {
|
34
34
|
Persona: () => Persona,
|
35
35
|
PersonaAvatar: () => PersonaAvatar2,
|
36
|
-
|
36
|
+
defaultPersonaPresenceOptions: () => defaultPersonaPresenceOptions
|
37
37
|
});
|
38
38
|
module.exports = __toCommonJS(persona_exports);
|
39
39
|
|
@@ -217,7 +217,7 @@ var PersonaAvatar2 = React2.forwardRef(function PersonaAvatar3(props, ref) {
|
|
217
217
|
});
|
218
218
|
|
219
219
|
// src/components/persona/presence.ts
|
220
|
-
var
|
220
|
+
var defaultPersonaPresenceOptions = {
|
221
221
|
online: {
|
222
222
|
label: "Online",
|
223
223
|
color: "presence.online"
|
@@ -243,5 +243,5 @@ var defaultPresenceOptions = {
|
|
243
243
|
0 && (module.exports = {
|
244
244
|
Persona,
|
245
245
|
PersonaAvatar,
|
246
|
-
|
246
|
+
defaultPersonaPresenceOptions
|
247
247
|
});
|
@@ -1,13 +1,21 @@
|
|
1
|
-
import * as
|
2
|
-
import
|
1
|
+
import * as React$1 from 'react';
|
2
|
+
import React__default from 'react';
|
3
3
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
4
|
-
import { HTMLChakraProps, SlotRecipeProps
|
5
|
-
import {
|
4
|
+
import { ImageProps as ImageProps$1, HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
5
|
+
import { Avatar } from '@chakra-ui/react/avatar';
|
6
6
|
import { RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
7
|
-
import '@chakra-ui/react/avatar';
|
8
|
-
import '@chakra-ui/react/group';
|
9
7
|
|
10
|
-
|
8
|
+
type ImageProps = React.ImgHTMLAttributes<HTMLImageElement>;
|
9
|
+
interface AvatarProps extends Avatar.RootProps {
|
10
|
+
name?: string;
|
11
|
+
src?: string;
|
12
|
+
srcSet?: string;
|
13
|
+
loading?: ImageProps['loading'];
|
14
|
+
icon?: React.ReactElement;
|
15
|
+
fallback?: React.ReactNode;
|
16
|
+
}
|
17
|
+
|
18
|
+
declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"details" | "label" | "avatar" | "root" | "presence" | "secondaryLabel" | "tertiaryLabel", {
|
11
19
|
size: {
|
12
20
|
'2xs': {
|
13
21
|
details: {
|
@@ -111,12 +119,12 @@ declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence
|
|
111
119
|
}>;
|
112
120
|
type PersonaVariantProps = RecipeVariantProps<typeof personaSlotRecipe>;
|
113
121
|
|
114
|
-
type
|
115
|
-
interface
|
122
|
+
type PersonaPresence = 'online' | 'offline' | 'busy' | 'dnd' | 'away';
|
123
|
+
interface PersonaPresenceConfig {
|
116
124
|
label: string;
|
117
125
|
color: string;
|
118
126
|
}
|
119
|
-
type
|
127
|
+
type PersonaPresenceOptions<P extends string = PersonaPresence> = Record<P, PersonaPresenceConfig>;
|
120
128
|
/**
|
121
129
|
* The presence configuration object.
|
122
130
|
*
|
@@ -130,7 +138,7 @@ type PresenceOptions<P extends string = Presence> = Record<P, PresenceConfig>;
|
|
130
138
|
*
|
131
139
|
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
132
140
|
*/
|
133
|
-
declare const
|
141
|
+
declare const defaultPersonaPresenceOptions: PersonaPresenceOptions;
|
134
142
|
|
135
143
|
interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'>, PersonaVariantProps {
|
136
144
|
/**
|
@@ -140,7 +148,7 @@ interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiP
|
|
140
148
|
/**
|
141
149
|
* The presence status of the person
|
142
150
|
*/
|
143
|
-
presence?:
|
151
|
+
presence?: PersonaPresence;
|
144
152
|
}
|
145
153
|
interface PersonaAvatarOptions {
|
146
154
|
/**
|
@@ -154,9 +162,9 @@ interface PersonaAvatarOptions {
|
|
154
162
|
interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarProps {
|
155
163
|
src?: string;
|
156
164
|
srcSet?: string;
|
157
|
-
loading?: ImageProps['loading'];
|
158
|
-
icon?:
|
159
|
-
fallback?:
|
165
|
+
loading?: ImageProps$1['loading'];
|
166
|
+
icon?: React__default.ReactElement;
|
167
|
+
fallback?: React__default.ReactNode;
|
160
168
|
getInitials?: (name?: string | null) => string | null;
|
161
169
|
}
|
162
170
|
|
@@ -179,11 +187,11 @@ interface PersonaOptions {
|
|
179
187
|
* - dnd
|
180
188
|
* - away
|
181
189
|
*/
|
182
|
-
presence?:
|
190
|
+
presence?: PersonaPresence;
|
183
191
|
/**
|
184
192
|
* The icon shown in the AvatarBadge
|
185
193
|
*/
|
186
|
-
presenceIcon?:
|
194
|
+
presenceIcon?: React$1.ReactNode;
|
187
195
|
/**
|
188
196
|
* Indicates that a person is out of office. Changes the presence badge style.
|
189
197
|
*/
|
@@ -191,32 +199,32 @@ interface PersonaOptions {
|
|
191
199
|
/**
|
192
200
|
* Primary label of the persona, defaults to the name
|
193
201
|
*/
|
194
|
-
label?:
|
202
|
+
label?: React$1.ReactNode;
|
195
203
|
/**
|
196
204
|
* Secondary label, usually the role of the person
|
197
205
|
* Only visible from md size and up.
|
198
206
|
*/
|
199
|
-
secondaryLabel?:
|
207
|
+
secondaryLabel?: React$1.ReactNode;
|
200
208
|
/**
|
201
209
|
* Tertiary label, usually the status of the person.
|
202
210
|
* Only visible from lg size and up.
|
203
211
|
*/
|
204
|
-
tertiaryLabel?:
|
212
|
+
tertiaryLabel?: React$1.ReactNode;
|
205
213
|
/**
|
206
214
|
* Hide the persona details next to the avatar.
|
207
215
|
*/
|
208
216
|
hideDetails?: boolean;
|
209
217
|
}
|
210
|
-
interface PersonaProps extends PersonaOptions, Omit<PersonaAvatarProps$1, 'size'>, PersonaRootProps, PersonaVariantProps {
|
218
|
+
interface PersonaProps extends PersonaOptions, Omit<PersonaAvatarProps$1, 'size'>, Omit<PersonaRootProps, 'presence'>, PersonaVariantProps {
|
211
219
|
}
|
212
220
|
/**
|
213
221
|
* The wrapper component that handles default composition.
|
214
222
|
*
|
215
223
|
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
216
224
|
*/
|
217
|
-
declare const Persona:
|
225
|
+
declare const Persona: React$1.ForwardRefExoticComponent<PersonaProps & React$1.RefAttributes<HTMLDivElement>>;
|
218
226
|
interface PersonaAvatarProps extends Omit<PersonaProps, 'hideDetails' | 'label' | 'secondaryLabel' | 'tertiaryLabel' | 'children'> {
|
219
227
|
}
|
220
|
-
declare const PersonaAvatar:
|
228
|
+
declare const PersonaAvatar: React$1.ForwardRefExoticComponent<PersonaAvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
221
229
|
|
222
|
-
export { Persona, PersonaAvatar, type PersonaAvatarProps, type
|
230
|
+
export { Persona, PersonaAvatar, type PersonaAvatarProps, type PersonaPresence, type PersonaPresenceConfig, type PersonaProps, defaultPersonaPresenceOptions };
|
@@ -1,13 +1,21 @@
|
|
1
|
-
import * as
|
2
|
-
import
|
1
|
+
import * as React$1 from 'react';
|
2
|
+
import React__default from 'react';
|
3
3
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
4
|
-
import { HTMLChakraProps, SlotRecipeProps
|
5
|
-
import {
|
4
|
+
import { ImageProps as ImageProps$1, HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react';
|
5
|
+
import { Avatar } from '@chakra-ui/react/avatar';
|
6
6
|
import { RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
7
|
-
import '@chakra-ui/react/avatar';
|
8
|
-
import '@chakra-ui/react/group';
|
9
7
|
|
10
|
-
|
8
|
+
type ImageProps = React.ImgHTMLAttributes<HTMLImageElement>;
|
9
|
+
interface AvatarProps extends Avatar.RootProps {
|
10
|
+
name?: string;
|
11
|
+
src?: string;
|
12
|
+
srcSet?: string;
|
13
|
+
loading?: ImageProps['loading'];
|
14
|
+
icon?: React.ReactElement;
|
15
|
+
fallback?: React.ReactNode;
|
16
|
+
}
|
17
|
+
|
18
|
+
declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"details" | "label" | "avatar" | "root" | "presence" | "secondaryLabel" | "tertiaryLabel", {
|
11
19
|
size: {
|
12
20
|
'2xs': {
|
13
21
|
details: {
|
@@ -111,12 +119,12 @@ declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence
|
|
111
119
|
}>;
|
112
120
|
type PersonaVariantProps = RecipeVariantProps<typeof personaSlotRecipe>;
|
113
121
|
|
114
|
-
type
|
115
|
-
interface
|
122
|
+
type PersonaPresence = 'online' | 'offline' | 'busy' | 'dnd' | 'away';
|
123
|
+
interface PersonaPresenceConfig {
|
116
124
|
label: string;
|
117
125
|
color: string;
|
118
126
|
}
|
119
|
-
type
|
127
|
+
type PersonaPresenceOptions<P extends string = PersonaPresence> = Record<P, PersonaPresenceConfig>;
|
120
128
|
/**
|
121
129
|
* The presence configuration object.
|
122
130
|
*
|
@@ -130,7 +138,7 @@ type PresenceOptions<P extends string = Presence> = Record<P, PresenceConfig>;
|
|
130
138
|
*
|
131
139
|
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
132
140
|
*/
|
133
|
-
declare const
|
141
|
+
declare const defaultPersonaPresenceOptions: PersonaPresenceOptions;
|
134
142
|
|
135
143
|
interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'>, PersonaVariantProps {
|
136
144
|
/**
|
@@ -140,7 +148,7 @@ interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiP
|
|
140
148
|
/**
|
141
149
|
* The presence status of the person
|
142
150
|
*/
|
143
|
-
presence?:
|
151
|
+
presence?: PersonaPresence;
|
144
152
|
}
|
145
153
|
interface PersonaAvatarOptions {
|
146
154
|
/**
|
@@ -154,9 +162,9 @@ interface PersonaAvatarOptions {
|
|
154
162
|
interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarProps {
|
155
163
|
src?: string;
|
156
164
|
srcSet?: string;
|
157
|
-
loading?: ImageProps['loading'];
|
158
|
-
icon?:
|
159
|
-
fallback?:
|
165
|
+
loading?: ImageProps$1['loading'];
|
166
|
+
icon?: React__default.ReactElement;
|
167
|
+
fallback?: React__default.ReactNode;
|
160
168
|
getInitials?: (name?: string | null) => string | null;
|
161
169
|
}
|
162
170
|
|
@@ -179,11 +187,11 @@ interface PersonaOptions {
|
|
179
187
|
* - dnd
|
180
188
|
* - away
|
181
189
|
*/
|
182
|
-
presence?:
|
190
|
+
presence?: PersonaPresence;
|
183
191
|
/**
|
184
192
|
* The icon shown in the AvatarBadge
|
185
193
|
*/
|
186
|
-
presenceIcon?:
|
194
|
+
presenceIcon?: React$1.ReactNode;
|
187
195
|
/**
|
188
196
|
* Indicates that a person is out of office. Changes the presence badge style.
|
189
197
|
*/
|
@@ -191,32 +199,32 @@ interface PersonaOptions {
|
|
191
199
|
/**
|
192
200
|
* Primary label of the persona, defaults to the name
|
193
201
|
*/
|
194
|
-
label?:
|
202
|
+
label?: React$1.ReactNode;
|
195
203
|
/**
|
196
204
|
* Secondary label, usually the role of the person
|
197
205
|
* Only visible from md size and up.
|
198
206
|
*/
|
199
|
-
secondaryLabel?:
|
207
|
+
secondaryLabel?: React$1.ReactNode;
|
200
208
|
/**
|
201
209
|
* Tertiary label, usually the status of the person.
|
202
210
|
* Only visible from lg size and up.
|
203
211
|
*/
|
204
|
-
tertiaryLabel?:
|
212
|
+
tertiaryLabel?: React$1.ReactNode;
|
205
213
|
/**
|
206
214
|
* Hide the persona details next to the avatar.
|
207
215
|
*/
|
208
216
|
hideDetails?: boolean;
|
209
217
|
}
|
210
|
-
interface PersonaProps extends PersonaOptions, Omit<PersonaAvatarProps$1, 'size'>, PersonaRootProps, PersonaVariantProps {
|
218
|
+
interface PersonaProps extends PersonaOptions, Omit<PersonaAvatarProps$1, 'size'>, Omit<PersonaRootProps, 'presence'>, PersonaVariantProps {
|
211
219
|
}
|
212
220
|
/**
|
213
221
|
* The wrapper component that handles default composition.
|
214
222
|
*
|
215
223
|
* @see Docs https://saas-ui.dev/docs/components/data-display/persona
|
216
224
|
*/
|
217
|
-
declare const Persona:
|
225
|
+
declare const Persona: React$1.ForwardRefExoticComponent<PersonaProps & React$1.RefAttributes<HTMLDivElement>>;
|
218
226
|
interface PersonaAvatarProps extends Omit<PersonaProps, 'hideDetails' | 'label' | 'secondaryLabel' | 'tertiaryLabel' | 'children'> {
|
219
227
|
}
|
220
|
-
declare const PersonaAvatar:
|
228
|
+
declare const PersonaAvatar: React$1.ForwardRefExoticComponent<PersonaAvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
221
229
|
|
222
|
-
export { Persona, PersonaAvatar, type PersonaAvatarProps, type
|
230
|
+
export { Persona, PersonaAvatar, type PersonaAvatarProps, type PersonaPresence, type PersonaPresenceConfig, type PersonaProps, defaultPersonaPresenceOptions };
|
@@ -1,18 +1,54 @@
|
|
1
1
|
'use client'
|
2
|
-
import
|
3
|
-
Avatar
|
4
|
-
} from "./chunk-FN7TU5F5.js";
|
2
|
+
import "../chunk-RTMS5TJN.js";
|
5
3
|
|
6
4
|
// src/components/persona/persona.tsx
|
7
5
|
import * as React2 from "react";
|
8
6
|
|
9
7
|
// src/components/persona/persona-primitive.tsx
|
10
|
-
import { forwardRef } from "react";
|
8
|
+
import { forwardRef as forwardRef2 } from "react";
|
11
9
|
import {
|
12
10
|
chakra
|
13
11
|
} from "@chakra-ui/react";
|
14
12
|
import { dataAttr } from "@saas-ui/core/utils";
|
15
13
|
|
14
|
+
// src/components/avatar/avatar.tsx
|
15
|
+
import { forwardRef } from "react";
|
16
|
+
import { Avatar as ChakraAvatar } from "@chakra-ui/react/avatar";
|
17
|
+
import { Group } from "@chakra-ui/react/group";
|
18
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
19
|
+
var Avatar = forwardRef(
|
20
|
+
function Avatar2(props, ref) {
|
21
|
+
const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
|
22
|
+
return /* @__PURE__ */ jsxs(ChakraAvatar.Root, { ref, ...rest, children: [
|
23
|
+
/* @__PURE__ */ jsx(AvatarFallback, { name, icon, children: fallback }),
|
24
|
+
/* @__PURE__ */ jsx(ChakraAvatar.Image, { src, srcSet, loading }),
|
25
|
+
children
|
26
|
+
] });
|
27
|
+
}
|
28
|
+
);
|
29
|
+
var AvatarFallback = forwardRef(
|
30
|
+
function AvatarFallback2(props, ref) {
|
31
|
+
const { name, icon, children, ...rest } = props;
|
32
|
+
return /* @__PURE__ */ jsxs(ChakraAvatar.Fallback, { ref, ...rest, children: [
|
33
|
+
children,
|
34
|
+
name != null && children == null && /* @__PURE__ */ jsx(Fragment, { children: getInitials(name) }),
|
35
|
+
name == null && children == null && /* @__PURE__ */ jsx(ChakraAvatar.Icon, { asChild: !!icon, children: icon })
|
36
|
+
] });
|
37
|
+
}
|
38
|
+
);
|
39
|
+
function getInitials(name) {
|
40
|
+
const names = name.trim().split(" ");
|
41
|
+
const firstName = names[0] != null ? names[0] : "";
|
42
|
+
const lastName = names.length > 1 ? names[names.length - 1] : "";
|
43
|
+
return firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
|
44
|
+
}
|
45
|
+
var AvatarGroup = forwardRef(
|
46
|
+
function AvatarGroup2(props, ref) {
|
47
|
+
const { size, variant, borderless, ...rest } = props;
|
48
|
+
return /* @__PURE__ */ jsx(ChakraAvatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ jsx(Group, { gap: "0", spaceX: "-3", ref, ...rest }) });
|
49
|
+
}
|
50
|
+
);
|
51
|
+
|
16
52
|
// src/components/persona/persona.context.ts
|
17
53
|
import { createSlotRecipeContext } from "@chakra-ui/react";
|
18
54
|
var {
|
@@ -24,11 +60,11 @@ var {
|
|
24
60
|
});
|
25
61
|
|
26
62
|
// src/components/persona/persona-primitive.tsx
|
27
|
-
import { jsx } from "react/jsx-runtime";
|
63
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
28
64
|
var PersonaRoot = withProvider(
|
29
|
-
|
65
|
+
forwardRef2((props, ref) => {
|
30
66
|
const { outOfOffice, presence, ...rest } = props;
|
31
|
-
return /* @__PURE__ */
|
67
|
+
return /* @__PURE__ */ jsx2(
|
32
68
|
chakra.div,
|
33
69
|
{
|
34
70
|
ref,
|
@@ -46,11 +82,11 @@ var PersonaRoot = withProvider(
|
|
46
82
|
}),
|
47
83
|
"root"
|
48
84
|
);
|
49
|
-
var PersonaAvatar =
|
85
|
+
var PersonaAvatar = forwardRef2(
|
50
86
|
(props, ref) => {
|
51
87
|
const {
|
52
88
|
name,
|
53
|
-
getInitials = (name2) => name2 == null ? void 0 : name2[0],
|
89
|
+
getInitials: getInitials2 = (name2) => name2 == null ? void 0 : name2[0],
|
54
90
|
icon,
|
55
91
|
loading,
|
56
92
|
onError,
|
@@ -59,7 +95,7 @@ var PersonaAvatar = forwardRef(
|
|
59
95
|
children,
|
60
96
|
...rest
|
61
97
|
} = props;
|
62
|
-
return /* @__PURE__ */
|
98
|
+
return /* @__PURE__ */ jsx2(Avatar, { ref, ...rest, children });
|
63
99
|
}
|
64
100
|
);
|
65
101
|
var PersonaPresenceBadge = withContext("span", "presence");
|
@@ -82,7 +118,7 @@ var PersonaTertiaryLabel = withContext(
|
|
82
118
|
);
|
83
119
|
|
84
120
|
// src/components/persona/persona.tsx
|
85
|
-
import { jsx as
|
121
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
86
122
|
var Persona = React2.forwardRef(
|
87
123
|
(props, ref) => {
|
88
124
|
const {
|
@@ -97,7 +133,7 @@ var Persona = React2.forwardRef(
|
|
97
133
|
hideDetails,
|
98
134
|
children,
|
99
135
|
/** Avatar props */
|
100
|
-
getInitials,
|
136
|
+
getInitials: getInitials2,
|
101
137
|
icon,
|
102
138
|
loading,
|
103
139
|
onError,
|
@@ -106,7 +142,7 @@ var Persona = React2.forwardRef(
|
|
106
142
|
fallback,
|
107
143
|
...rest
|
108
144
|
} = props;
|
109
|
-
return /* @__PURE__ */
|
145
|
+
return /* @__PURE__ */ jsxs2(
|
110
146
|
PersonaRoot,
|
111
147
|
{
|
112
148
|
ref,
|
@@ -115,25 +151,25 @@ var Persona = React2.forwardRef(
|
|
115
151
|
size,
|
116
152
|
...rest,
|
117
153
|
children: [
|
118
|
-
/* @__PURE__ */
|
154
|
+
/* @__PURE__ */ jsx3(
|
119
155
|
PersonaAvatar,
|
120
156
|
{
|
121
157
|
name,
|
122
158
|
size,
|
123
|
-
getInitials,
|
159
|
+
getInitials: getInitials2,
|
124
160
|
icon,
|
125
161
|
loading,
|
126
162
|
onError,
|
127
163
|
src,
|
128
164
|
srcSet,
|
129
165
|
fallback,
|
130
|
-
children: presence ? /* @__PURE__ */
|
166
|
+
children: presence ? /* @__PURE__ */ jsx3(PersonaPresenceBadge, { children: presenceIcon }) : null
|
131
167
|
}
|
132
168
|
),
|
133
|
-
!hideDetails && /* @__PURE__ */
|
134
|
-
/* @__PURE__ */
|
135
|
-
secondaryLabel && /* @__PURE__ */
|
136
|
-
tertiaryLabel && /* @__PURE__ */
|
169
|
+
!hideDetails && /* @__PURE__ */ jsxs2(PersonaDetails, { children: [
|
170
|
+
/* @__PURE__ */ jsx3(PersonaLabel, { children: label || name }),
|
171
|
+
secondaryLabel && /* @__PURE__ */ jsx3(PersonaSecondaryLabel, { children: secondaryLabel }),
|
172
|
+
tertiaryLabel && /* @__PURE__ */ jsx3(PersonaTertiaryLabel, { children: tertiaryLabel }),
|
137
173
|
children
|
138
174
|
] })
|
139
175
|
]
|
@@ -143,11 +179,11 @@ var Persona = React2.forwardRef(
|
|
143
179
|
);
|
144
180
|
Persona.displayName = "Persona";
|
145
181
|
var PersonaAvatar2 = React2.forwardRef(function PersonaAvatar3(props, ref) {
|
146
|
-
return /* @__PURE__ */
|
182
|
+
return /* @__PURE__ */ jsx3(Persona, { ref, ...props, hideDetails: true });
|
147
183
|
});
|
148
184
|
|
149
185
|
// src/components/persona/presence.ts
|
150
|
-
var
|
186
|
+
var defaultPersonaPresenceOptions = {
|
151
187
|
online: {
|
152
188
|
label: "Online",
|
153
189
|
color: "presence.online"
|
@@ -169,9 +205,8 @@ var defaultPresenceOptions = {
|
|
169
205
|
color: "presence.away"
|
170
206
|
}
|
171
207
|
};
|
172
|
-
|
173
208
|
export {
|
174
209
|
Persona,
|
175
210
|
PersonaAvatar2 as PersonaAvatar,
|
176
|
-
|
211
|
+
defaultPersonaPresenceOptions
|
177
212
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as
|
1
|
+
import * as React$1 from 'react';
|
2
2
|
import { PinInput as PinInput$1 } from '@chakra-ui/react/pin-input';
|
3
3
|
|
4
4
|
interface PinInputProps extends PinInput$1.RootProps {
|
@@ -7,6 +7,6 @@ interface PinInputProps extends PinInput$1.RootProps {
|
|
7
7
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
8
8
|
attached?: boolean;
|
9
9
|
}
|
10
|
-
declare const PinInput:
|
10
|
+
declare const PinInput: React$1.ForwardRefExoticComponent<PinInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
11
11
|
|
12
12
|
export { PinInput, type PinInputProps };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as
|
1
|
+
import * as React$1 from 'react';
|
2
2
|
import { PinInput as PinInput$1 } from '@chakra-ui/react/pin-input';
|
3
3
|
|
4
4
|
interface PinInputProps extends PinInput$1.RootProps {
|
@@ -7,6 +7,6 @@ interface PinInputProps extends PinInput$1.RootProps {
|
|
7
7
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
8
8
|
attached?: boolean;
|
9
9
|
}
|
10
|
-
declare const PinInput:
|
10
|
+
declare const PinInput: React$1.ForwardRefExoticComponent<PinInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
11
11
|
|
12
12
|
export { PinInput, type PinInputProps };
|
@@ -201,6 +201,13 @@ var InfoIcon = createIcon({
|
|
201
201
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 8h.01" })
|
202
202
|
] })
|
203
203
|
});
|
204
|
+
var ArrowLeftIcon = createIcon({
|
205
|
+
displayName: "ArrowLeftIcon",
|
206
|
+
path: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
207
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
208
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("polyline", { points: "12 19 5 12 12 5" })
|
209
|
+
] })
|
210
|
+
});
|
204
211
|
|
205
212
|
// src/components/close-button/close-button.tsx
|
206
213
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Popover } from '@chakra-ui/react/popover';
|
3
|
+
|
4
|
+
interface ContentProps extends Popover.ContentProps {
|
5
|
+
portalled?: boolean;
|
6
|
+
portalRef?: React.RefObject<HTMLElement>;
|
7
|
+
}
|
8
|
+
declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const Arrow: React.ForwardRefExoticComponent<Popover.ArrowProps & React.RefAttributes<HTMLDivElement>>;
|
10
|
+
declare const CloseButton: React.ForwardRefExoticComponent<Popover.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
11
|
+
declare const CloseTrigger: React.ForwardRefExoticComponent<Popover.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
12
|
+
declare const Title: React.ForwardRefExoticComponent<Popover.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
13
|
+
declare const Description: React.ForwardRefExoticComponent<Popover.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const Footer: React.ForwardRefExoticComponent<Popover.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const Header: React.ForwardRefExoticComponent<Popover.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
declare const Root: React.FC<Popover.RootProps>;
|
17
|
+
declare const Body: React.ForwardRefExoticComponent<Popover.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const Trigger: React.ForwardRefExoticComponent<Popover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
19
|
+
type RootProps = Popover.RootProps;
|
20
|
+
|
21
|
+
declare const popover_Arrow: typeof Arrow;
|
22
|
+
declare const popover_Body: typeof Body;
|
23
|
+
declare const popover_CloseButton: typeof CloseButton;
|
24
|
+
declare const popover_CloseTrigger: typeof CloseTrigger;
|
25
|
+
declare const popover_Content: typeof Content;
|
26
|
+
declare const popover_Description: typeof Description;
|
27
|
+
declare const popover_Footer: typeof Footer;
|
28
|
+
declare const popover_Header: typeof Header;
|
29
|
+
declare const popover_Root: typeof Root;
|
30
|
+
type popover_RootProps = RootProps;
|
31
|
+
declare const popover_Title: typeof Title;
|
32
|
+
declare const popover_Trigger: typeof Trigger;
|
33
|
+
declare namespace popover {
|
34
|
+
export { popover_Arrow as Arrow, popover_Body as Body, popover_CloseButton as CloseButton, popover_CloseTrigger as CloseTrigger, popover_Content as Content, popover_Description as Description, popover_Footer as Footer, popover_Header as Header, popover_Root as Root, type popover_RootProps as RootProps, popover_Title as Title, popover_Trigger as Trigger };
|
35
|
+
}
|
36
|
+
|
37
|
+
export { popover as Popover };
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Popover } from '@chakra-ui/react/popover';
|
3
|
+
|
4
|
+
interface ContentProps extends Popover.ContentProps {
|
5
|
+
portalled?: boolean;
|
6
|
+
portalRef?: React.RefObject<HTMLElement>;
|
7
|
+
}
|
8
|
+
declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const Arrow: React.ForwardRefExoticComponent<Popover.ArrowProps & React.RefAttributes<HTMLDivElement>>;
|
10
|
+
declare const CloseButton: React.ForwardRefExoticComponent<Popover.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
11
|
+
declare const CloseTrigger: React.ForwardRefExoticComponent<Popover.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
12
|
+
declare const Title: React.ForwardRefExoticComponent<Popover.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
13
|
+
declare const Description: React.ForwardRefExoticComponent<Popover.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const Footer: React.ForwardRefExoticComponent<Popover.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const Header: React.ForwardRefExoticComponent<Popover.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
declare const Root: React.FC<Popover.RootProps>;
|
17
|
+
declare const Body: React.ForwardRefExoticComponent<Popover.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const Trigger: React.ForwardRefExoticComponent<Popover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
19
|
+
type RootProps = Popover.RootProps;
|
20
|
+
|
21
|
+
declare const popover_Arrow: typeof Arrow;
|
22
|
+
declare const popover_Body: typeof Body;
|
23
|
+
declare const popover_CloseButton: typeof CloseButton;
|
24
|
+
declare const popover_CloseTrigger: typeof CloseTrigger;
|
25
|
+
declare const popover_Content: typeof Content;
|
26
|
+
declare const popover_Description: typeof Description;
|
27
|
+
declare const popover_Footer: typeof Footer;
|
28
|
+
declare const popover_Header: typeof Header;
|
29
|
+
declare const popover_Root: typeof Root;
|
30
|
+
type popover_RootProps = RootProps;
|
31
|
+
declare const popover_Title: typeof Title;
|
32
|
+
declare const popover_Trigger: typeof Trigger;
|
33
|
+
declare namespace popover {
|
34
|
+
export { popover_Arrow as Arrow, popover_Body as Body, popover_CloseButton as CloseButton, popover_CloseTrigger as CloseTrigger, popover_Content as Content, popover_Description as Description, popover_Footer as Footer, popover_Header as Header, popover_Root as Root, type popover_RootProps as RootProps, popover_Title as Title, popover_Trigger as Trigger };
|
35
|
+
}
|
36
|
+
|
37
|
+
export { popover as Popover };
|