@saas-ui/react 3.0.0-alpha.9 → 3.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +215 -38
- package/dist/chunk-27OMFCPD.js +8 -0
- package/dist/{chunk-6LOMIKR5.js → chunk-2B5OZHZY.js} +5 -3
- package/dist/{chunk-S3CQW7GD.js → chunk-3DGRWH7C.js} +3 -2
- package/dist/chunk-3EV6MKBG.js +60 -0
- package/dist/{chunk-IFYV7NUJ.js → chunk-3MO37LYW.js} +3 -3
- package/dist/chunk-3RHNNKPC.js +51 -0
- package/dist/{chunk-LIYUBUOP.js → chunk-4IZGJDYL.js} +1 -1
- package/dist/{chunk-VDXTEASE.js → chunk-4XB7B73X.js} +28 -2
- package/dist/chunk-52XM5VXJ.js +9 -0
- package/dist/chunk-5HVAMQYO.js +8 -0
- package/dist/chunk-5MTFSSOH.js +16 -0
- package/dist/chunk-5YNHX4C7.js +16 -0
- package/dist/{chunk-4TR3AOMG.js → chunk-5ZKEXMBN.js} +15 -12
- package/dist/chunk-6YZ76Q2W.js +8 -0
- package/dist/chunk-77QJSEEA.js +68 -0
- package/dist/chunk-7DF4NQNZ.js +8 -0
- package/dist/chunk-7HAGRXKM.js +8 -0
- package/dist/{chunk-QSNSWCTM.js → chunk-7MCVXFWM.js} +2 -1
- package/dist/chunk-7PWVK3NL.js +8 -0
- package/dist/chunk-AY7C4U2O.js +39 -0
- package/dist/{chunk-7VSTNV2B.js → chunk-BDS3APRG.js} +9 -6
- package/dist/chunk-BFO2S4Y5.js +12 -0
- package/dist/chunk-C5KFNMWU.js +8 -0
- package/dist/chunk-CQD32UVJ.js +8 -0
- package/dist/{chunk-TT4C5VXB.js → chunk-CRFTMIQA.js} +10 -10
- package/dist/chunk-DHFAFRZ4.js +8 -0
- package/dist/chunk-EWCBYJA7.js +8 -0
- package/dist/chunk-EYOHLXWQ.js +64 -0
- package/dist/chunk-FD2V4Y66.js +8 -0
- package/dist/{chunk-UCQ3LZIE.js → chunk-FN7TU5F5.js} +2 -1
- package/dist/chunk-FPRTN3I7.js +9 -0
- package/dist/chunk-GD2247J4.js +37 -0
- package/dist/chunk-GSWLAOIM.js +24 -0
- package/dist/chunk-H7KPEI6P.js +21 -0
- package/dist/chunk-HD7BIWDH.js +22 -0
- package/dist/{chunk-PKI6YH2V.js → chunk-HKMYYESV.js} +4 -1
- package/dist/{chunk-WYLMBMAH.js → chunk-HKUOHPZ6.js} +1 -1
- package/dist/chunk-HQVBJT5Y.js +8 -0
- package/dist/chunk-HTQRA26F.js +46 -0
- package/dist/{chunk-SA3OGTOO.js → chunk-HTVSG47E.js} +1 -1
- package/dist/chunk-HZX4AGO5.js +8 -0
- package/dist/{chunk-ULAJ3JEO.js → chunk-IEWGZ4LU.js} +11 -3
- package/dist/chunk-JMYI6YXR.js +1 -0
- package/dist/chunk-JPY2QZLC.js +64 -0
- package/dist/{chunk-SKXSBAOS.js → chunk-KFDVVTMT.js} +2 -1
- package/dist/chunk-KRJG7H4W.js +53 -0
- package/dist/chunk-M3DJWM6D.js +8 -0
- package/dist/{chunk-32JGENDB.js → chunk-MK3OG2I4.js} +1 -1
- package/dist/chunk-MZ2RY4NU.js +34 -0
- package/dist/{chunk-FJFNGSPL.js → chunk-NGGISORT.js} +12 -6
- package/dist/chunk-NLMFEUVO.js +41 -0
- package/dist/{chunk-I2RXEKTB.js → chunk-NSFGACD7.js} +1 -1
- package/dist/chunk-OJZPPAT6.js +26 -0
- package/dist/chunk-OQU4LWZW.js +8 -0
- package/dist/chunk-PEJYADAS.js +8 -0
- package/dist/chunk-PIQURQGB.js +8 -0
- package/dist/chunk-QLN2CBY6.js +8 -0
- package/dist/chunk-R2J5USV6.js +12 -0
- package/dist/{chunk-2EUACKRH.js → chunk-RYKJOZ3B.js} +2 -1
- package/dist/chunk-SD2NTPHR.js +44 -0
- package/dist/{chunk-TZBAM4AD.js → chunk-SXFVA6CX.js} +1 -1
- package/dist/chunk-T2FPZNCP.js +115 -0
- package/dist/{chunk-CD2JUFI2.js → chunk-T7XRS654.js} +10 -9
- package/dist/chunk-TEQVVR3W.js +8 -0
- package/dist/chunk-TH6YCBEG.js +8 -0
- package/dist/chunk-TWTXZ7PR.js +100 -0
- package/dist/{chunk-DPMEXCSG.js → chunk-U23VDAWJ.js} +8 -2
- package/dist/chunk-U3EPRSD3.js +20 -0
- package/dist/chunk-UEXUCHDD.js +34 -0
- package/dist/chunk-UIP2CHMU.js +8 -0
- package/dist/{chunk-JGHXJ3PI.js → chunk-UNF77J24.js} +6 -8
- package/dist/{chunk-M7FOBCOV.js → chunk-VJ4UOABT.js} +12 -19
- package/dist/chunk-WJZED26X.js +28 -0
- package/dist/chunk-XW747T2R.js +43 -0
- package/dist/chunk-XX2OY7LK.js +10 -0
- package/dist/chunk-YHQ5JGCC.js +1 -0
- package/dist/chunk-YLZEO3RK.js +24 -0
- package/dist/chunk-YMCOU2N5.js +8 -0
- package/dist/{chunk-6ZNR6N2K.js → chunk-YTTZX7ZE.js} +1 -1
- package/dist/chunk-Z37BQ5VU.js +54 -0
- package/dist/{chunk-L356FPLY.js → chunk-Z3SWPGPQ.js} +1 -1
- package/dist/{chunk-NSD5HRIP.js → chunk-ZUT5GZTD.js} +1 -1
- package/dist/components/accordion/index.cjs +197 -0
- package/dist/components/accordion/index.d.cts +29 -0
- package/dist/components/accordion/index.d.ts +29 -0
- package/dist/components/accordion/index.js +9 -0
- package/dist/components/action-bar/index.cjs +217 -0
- package/dist/components/action-bar/index.d.cts +33 -0
- package/dist/components/action-bar/index.d.ts +33 -0
- package/dist/components/action-bar/index.js +13 -0
- package/dist/components/alert/index.cjs +227 -0
- package/dist/components/alert/index.d.cts +14 -0
- package/dist/components/alert/index.d.ts +14 -0
- package/dist/components/alert/index.js +13 -0
- package/dist/components/app-shell/index.cjs +2 -2
- package/dist/components/app-shell/index.d.cts +1 -1
- package/dist/components/app-shell/index.d.ts +1 -1
- package/dist/components/app-shell/index.js +1 -1
- package/dist/components/avatar/index.cjs +7 -6
- package/dist/components/avatar/index.d.cts +3 -1
- package/dist/components/avatar/index.d.ts +3 -1
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/badge/index.cjs +33 -0
- package/dist/components/badge/index.d.cts +27 -0
- package/dist/components/badge/index.d.ts +27 -0
- package/dist/components/badge/index.js +10 -0
- package/dist/components/blockquote/index.cjs +59 -0
- package/dist/components/blockquote/index.d.cts +12 -0
- package/dist/components/blockquote/index.d.ts +12 -0
- package/dist/components/blockquote/index.js +8 -0
- package/dist/components/breadcrumb/index.cjs +13 -13
- package/dist/components/breadcrumb/index.d.cts +13 -7
- package/dist/components/breadcrumb/index.d.ts +13 -7
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.cjs +2 -36
- package/dist/components/button/index.d.cts +1 -12
- package/dist/components/button/index.d.ts +1 -12
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.cjs +31 -0
- package/dist/components/button-group/index.d.cts +1 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.js +8 -0
- package/dist/components/card/index.cjs +32 -0
- package/dist/components/card/index.d.cts +1 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +9 -0
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.d.cts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-card/index.cjs +66 -0
- package/dist/components/checkbox-card/index.d.cts +15 -0
- package/dist/components/checkbox-card/index.d.ts +15 -0
- package/dist/components/checkbox-card/index.js +8 -0
- package/dist/components/checkmark/index.cjs +31 -0
- package/dist/components/checkmark/index.d.cts +1 -0
- package/dist/components/checkmark/index.d.ts +1 -0
- package/dist/components/checkmark/index.js +8 -0
- package/dist/components/clipboard/index.cjs +227 -0
- package/dist/components/clipboard/index.d.cts +28 -0
- package/dist/components/clipboard/index.d.ts +28 -0
- package/dist/components/clipboard/index.js +13 -0
- package/dist/components/close-button/index.cjs +82 -37
- package/dist/components/close-button/index.d.cts +3 -2
- package/dist/components/close-button/index.d.ts +3 -2
- package/dist/components/close-button/index.js +5 -2
- package/dist/components/code/index.cjs +31 -0
- package/dist/components/code/index.d.cts +1 -0
- package/dist/components/code/index.d.ts +1 -0
- package/dist/components/code/index.js +8 -0
- package/dist/components/collapsible/index.cjs +31 -0
- package/dist/components/collapsible/index.d.cts +1 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +8 -0
- package/dist/components/command/index.cjs +18 -13
- package/dist/components/command/index.d.cts +28 -2
- package/dist/components/command/index.d.ts +28 -2
- package/dist/components/command/index.js +2 -1
- package/dist/components/container/index.cjs +31 -0
- package/dist/components/container/index.d.cts +1 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +8 -0
- package/dist/components/data-list/index.cjs +33 -0
- package/dist/components/data-list/index.d.cts +1 -0
- package/dist/components/data-list/index.d.ts +1 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/dialog/index.cjs +127 -89
- package/dist/components/dialog/index.d.cts +36 -17
- package/dist/components/dialog/index.d.ts +36 -17
- package/dist/components/dialog/index.js +8 -5
- package/dist/components/drawer/index.cjs +123 -87
- package/dist/components/drawer/index.d.cts +33 -17
- package/dist/components/drawer/index.d.ts +33 -17
- package/dist/components/drawer/index.js +8 -5
- package/dist/components/editable/index.cjs +31 -0
- package/dist/components/editable/index.d.cts +1 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +8 -0
- package/dist/components/empty-state/index.cjs +12 -10
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/field/index.cjs +35 -0
- package/dist/components/field/index.d.cts +1 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +12 -0
- package/dist/components/fieldset/index.cjs +33 -0
- package/dist/components/fieldset/index.d.cts +1 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/file-upload/index.cjs +296 -0
- package/dist/components/file-upload/index.d.cts +46 -0
- package/dist/components/file-upload/index.d.ts +46 -0
- package/dist/components/file-upload/index.js +14 -0
- package/dist/components/grid-list/index.cjs +2 -2
- package/dist/components/grid-list/index.d.cts +67 -5
- package/dist/components/grid-list/index.d.ts +67 -5
- package/dist/components/grid-list/index.js +1 -1
- package/dist/components/heading/index.cjs +31 -0
- package/dist/components/heading/index.d.cts +1 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +8 -0
- package/dist/components/hover-card/index.cjs +66 -0
- package/dist/components/hover-card/index.d.cts +21 -0
- package/dist/components/hover-card/index.d.ts +21 -0
- package/dist/components/hover-card/index.js +8 -0
- package/dist/components/icon/index.cjs +31 -0
- package/dist/components/icon/index.d.cts +1 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/index.js +8 -0
- package/dist/components/icon-badge/index.cjs +3 -3
- package/dist/components/icon-badge/index.d.cts +1 -1
- package/dist/components/icon-badge/index.d.ts +1 -1
- package/dist/components/icon-badge/index.js +1 -1
- package/dist/components/icon-button/index.cjs +53 -0
- package/dist/components/icon-button/index.d.cts +8 -0
- package/dist/components/icon-button/index.d.ts +8 -0
- package/dist/components/icon-button/index.js +9 -0
- package/dist/components/icons/index.cjs +31 -2
- package/dist/components/icons/index.d.cts +4 -1
- package/dist/components/icons/index.d.ts +4 -1
- package/dist/components/icons/index.js +7 -1
- package/dist/components/image/index.cjs +31 -0
- package/dist/components/image/index.d.cts +1 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +8 -0
- package/dist/components/info-tip/index.cjs +299 -0
- package/dist/components/info-tip/index.d.cts +13 -0
- package/dist/components/info-tip/index.d.ts +13 -0
- package/dist/components/info-tip/index.js +16 -0
- package/dist/components/input/index.cjs +37 -0
- package/dist/components/input/index.d.cts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +14 -0
- package/dist/components/input-group/index.cjs +9 -4
- package/dist/components/input-group/index.d.cts +3 -2
- package/dist/components/input-group/index.d.ts +3 -2
- package/dist/components/input-group/index.js +2 -1
- package/dist/components/kbd/index.cjs +31 -0
- package/dist/components/kbd/index.d.cts +1 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +8 -0
- package/dist/components/link/index.cjs +2 -2
- package/dist/components/link/index.d.cts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +31 -0
- package/dist/components/list/index.d.cts +1 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +8 -0
- package/dist/components/loader/index.cjs +31 -0
- package/dist/components/loader/index.d.cts +1 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader/index.js +8 -0
- package/dist/components/loading-overlay/index.cjs +12 -9
- package/dist/components/loading-overlay/index.d.cts +6 -22
- package/dist/components/loading-overlay/index.d.ts +6 -22
- package/dist/components/loading-overlay/index.js +2 -2
- package/dist/components/mark/index.cjs +31 -0
- package/dist/components/mark/index.d.cts +1 -0
- package/dist/components/mark/index.d.ts +1 -0
- package/dist/components/mark/index.js +8 -0
- package/dist/components/menu/index.cjs +92 -99
- package/dist/components/menu/index.d.cts +2 -1
- package/dist/components/menu/index.d.ts +2 -1
- package/dist/components/menu/index.js +3 -3
- package/dist/components/native-select/index.cjs +178 -0
- package/dist/components/native-select/index.d.cts +10 -0
- package/dist/components/native-select/index.d.ts +10 -0
- package/dist/components/native-select/index.js +10 -0
- package/dist/components/number-input/index.cjs +25 -12
- package/dist/components/number-input/index.d.cts +1 -1
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.js +3 -2
- package/dist/components/pagination/index.cjs +253 -0
- package/dist/components/pagination/index.d.cts +43 -0
- package/dist/components/pagination/index.d.ts +43 -0
- package/dist/components/pagination/index.js +11 -0
- package/dist/components/password-input/index.cjs +45 -17
- package/dist/components/password-input/index.d.cts +4 -2
- package/dist/components/password-input/index.d.ts +4 -2
- package/dist/components/password-input/index.js +5 -2
- package/dist/components/persona/index.cjs +63 -34
- package/dist/components/persona/index.d.cts +113 -4
- package/dist/components/persona/index.d.ts +113 -4
- package/dist/components/persona/index.js +2 -1
- package/dist/components/pin-input/index.cjs +5 -4
- package/dist/components/pin-input/index.d.cts +1 -1
- package/dist/components/pin-input/index.d.ts +1 -1
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/popover/index.cjs +252 -0
- package/dist/components/popover/index.d.cts +3 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.js +13 -0
- package/dist/components/progress/index.cjs +31 -0
- package/dist/components/progress/index.d.cts +1 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +8 -0
- package/dist/components/progress-circle/index.cjs +31 -0
- package/dist/components/progress-circle/index.d.cts +1 -0
- package/dist/components/progress-circle/index.d.ts +1 -0
- package/dist/components/progress-circle/index.js +8 -0
- package/dist/components/radio/index.cjs +6 -6
- package/dist/components/radio/index.d.cts +1 -1
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-card/index.cjs +75 -0
- package/dist/components/radio-card/index.d.cts +31 -0
- package/dist/components/radio-card/index.d.ts +31 -0
- package/dist/components/radio-card/index.js +8 -0
- package/dist/components/rating-group/index.cjs +31 -0
- package/dist/components/rating-group/index.d.cts +1 -0
- package/dist/components/rating-group/index.d.ts +1 -0
- package/dist/components/rating-group/index.js +8 -0
- package/dist/components/search-input/index.cjs +39 -16
- package/dist/components/search-input/index.js +2 -2
- package/dist/components/segmented-control/index.cjs +8 -7
- package/dist/components/segmented-control/index.d.cts +1 -1
- package/dist/components/segmented-control/index.d.ts +1 -1
- package/dist/components/segmented-control/index.js +1 -1
- package/dist/components/select/index.cjs +109 -63
- package/dist/components/select/index.d.cts +2 -1
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/index.js +6 -3
- package/dist/components/separator/index.cjs +31 -0
- package/dist/components/separator/index.d.cts +1 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +8 -0
- package/dist/components/sidebar/index.cjs +8 -2
- package/dist/components/sidebar/index.d.cts +9 -5
- package/dist/components/sidebar/index.d.ts +9 -5
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/skeleton/index.cjs +61 -0
- package/dist/components/skeleton/index.d.cts +17 -0
- package/dist/components/skeleton/index.d.ts +17 -0
- package/dist/components/skeleton/index.js +12 -0
- package/dist/components/skip-nav-link/index.cjs +33 -0
- package/dist/components/skip-nav-link/index.d.cts +1 -0
- package/dist/components/skip-nav-link/index.d.ts +1 -0
- package/dist/components/skip-nav-link/index.js +10 -0
- package/dist/components/slider/index.cjs +62 -0
- package/dist/components/slider/index.d.cts +13 -0
- package/dist/components/slider/index.d.ts +13 -0
- package/dist/components/slider/index.js +8 -0
- package/dist/components/spinner/index.cjs +2 -2
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.cjs +83 -0
- package/dist/components/stat/index.d.cts +29 -0
- package/dist/components/stat/index.d.ts +29 -0
- package/dist/components/stat/index.js +8 -0
- package/dist/components/status/index.cjs +45 -0
- package/dist/components/status/index.d.cts +18 -0
- package/dist/components/status/index.d.ts +18 -0
- package/dist/components/status/index.js +8 -0
- package/dist/components/steps/index.cjs +48 -23
- package/dist/components/steps/index.d.cts +2 -2
- package/dist/components/steps/index.d.ts +2 -2
- package/dist/components/steps/index.js +2 -2
- package/dist/components/switch/index.cjs +9 -9
- package/dist/components/switch/index.d.cts +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/table/index.cjs +31 -0
- package/dist/components/table/index.d.cts +1 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +8 -0
- package/dist/components/tabs/index.cjs +37 -0
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +14 -0
- package/dist/components/tag/index.cjs +53 -0
- package/dist/components/tag/index.d.cts +12 -0
- package/dist/components/tag/index.d.ts +12 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/components/textarea/index.cjs +31 -0
- package/dist/components/textarea/index.d.cts +1 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +8 -0
- package/dist/components/timeline/index.cjs +31 -0
- package/dist/components/timeline/index.d.cts +1 -0
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/timeline/index.js +8 -0
- package/dist/components/toaster/index.cjs +215 -12
- package/dist/components/toaster/index.d.cts +6 -5
- package/dist/components/toaster/index.d.ts +6 -5
- package/dist/components/toaster/index.js +7 -1
- package/dist/components/toggle-tip/index.cjs +289 -0
- package/dist/components/toggle-tip/index.d.cts +13 -0
- package/dist/components/toggle-tip/index.d.ts +13 -0
- package/dist/components/toggle-tip/index.js +14 -0
- package/dist/components/tooltip/index.cjs +6 -5
- package/dist/components/tooltip/index.d.cts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/index-zAqswhEI.d.cts +37 -0
- package/dist/index-zAqswhEI.d.ts +37 -0
- package/dist/index.cjs +4112 -2663
- package/dist/index.d.cts +89 -6
- package/dist/index.d.ts +89 -6
- package/dist/index.js +2684 -1960
- package/dist/loading-overlay-BQ4lOS6T.d.ts +23 -0
- package/dist/loading-overlay-afP_W7ru.d.cts +23 -0
- package/dist/theme/tokens/colors.cjs +3 -3
- package/dist/theme/tokens/colors.js +1 -1
- package/dist/types-DnFoUudY.d.cts +10 -0
- package/dist/types-DnFoUudY.d.ts +10 -0
- package/package.json +7 -7
- package/dist/chunk-BCNPBZZK.js +0 -45
- package/dist/chunk-CB52LBJK.js +0 -71
- package/dist/chunk-FZW2DYK3.js +0 -19
- package/dist/chunk-H6TFEHY4.js +0 -63
- package/dist/chunk-HELHPHIQ.js +0 -35
@@ -0,0 +1,43 @@
|
|
1
|
+
import * as _ark_ui_react from '@ark-ui/react';
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
3
|
+
import * as react from 'react';
|
4
|
+
import { Pagination } from '@chakra-ui/react/pagination';
|
5
|
+
import { TextProps } from '@chakra-ui/react/typography';
|
6
|
+
import { ButtonProps } from '@chakra-ui/react/button';
|
7
|
+
|
8
|
+
type PaginationVariant = 'outline' | 'solid' | 'subtle';
|
9
|
+
interface RootProps extends Omit<Pagination.RootProps, 'type'> {
|
10
|
+
size?: ButtonProps['size'];
|
11
|
+
variant?: PaginationVariant;
|
12
|
+
}
|
13
|
+
declare const Root: react.ForwardRefExoticComponent<RootProps & react.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const Ellipsis: react.ForwardRefExoticComponent<Pagination.EllipsisProps & react.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const Item: react.ForwardRefExoticComponent<Pagination.ItemProps & react.RefAttributes<HTMLButtonElement>>;
|
16
|
+
declare const PrevButton: react.ForwardRefExoticComponent<Pagination.PrevTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
17
|
+
declare const NextButton: react.ForwardRefExoticComponent<Pagination.NextTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
18
|
+
declare const Items: (props: React.HTMLAttributes<HTMLElement>) => react_jsx_runtime.JSX.Element;
|
19
|
+
interface PageTextProps extends TextProps {
|
20
|
+
format?: 'short' | 'compact' | 'long';
|
21
|
+
}
|
22
|
+
declare const PageText: react.ForwardRefExoticComponent<PageTextProps & react.RefAttributes<HTMLParagraphElement>>;
|
23
|
+
declare const PrevTrigger: react.ForwardRefExoticComponent<Pagination.PrevTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
24
|
+
declare const NextTrigger: react.ForwardRefExoticComponent<Pagination.NextTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
25
|
+
declare const Context: (props: _ark_ui_react.PaginationContextProps) => react.ReactNode;
|
26
|
+
|
27
|
+
declare const pagination_Context: typeof Context;
|
28
|
+
declare const pagination_Ellipsis: typeof Ellipsis;
|
29
|
+
declare const pagination_Item: typeof Item;
|
30
|
+
declare const pagination_Items: typeof Items;
|
31
|
+
declare const pagination_NextButton: typeof NextButton;
|
32
|
+
declare const pagination_NextTrigger: typeof NextTrigger;
|
33
|
+
declare const pagination_PageText: typeof PageText;
|
34
|
+
type pagination_PageTextProps = PageTextProps;
|
35
|
+
declare const pagination_PrevButton: typeof PrevButton;
|
36
|
+
declare const pagination_PrevTrigger: typeof PrevTrigger;
|
37
|
+
declare const pagination_Root: typeof Root;
|
38
|
+
type pagination_RootProps = RootProps;
|
39
|
+
declare namespace pagination {
|
40
|
+
export { pagination_Context as Context, pagination_Ellipsis as Ellipsis, pagination_Item as Item, pagination_Items as Items, pagination_NextButton as NextButton, pagination_NextTrigger as NextTrigger, pagination_PageText as PageText, type pagination_PageTextProps as PageTextProps, pagination_PrevButton as PrevButton, pagination_PrevTrigger as PrevTrigger, pagination_Root as Root, type pagination_RootProps as RootProps };
|
41
|
+
}
|
42
|
+
|
43
|
+
export { pagination as Pagination };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
pagination_exports
|
4
|
+
} from "../../chunk-TWTXZ7PR.js";
|
5
|
+
import "../../chunk-OJZPPAT6.js";
|
6
|
+
import "../../chunk-5HVAMQYO.js";
|
7
|
+
import "../../chunk-4XB7B73X.js";
|
8
|
+
import "../../chunk-RTMS5TJN.js";
|
9
|
+
export {
|
10
|
+
pagination_exports as Pagination
|
11
|
+
};
|
@@ -179,17 +179,45 @@ function IconBase(props) {
|
|
179
179
|
|
180
180
|
// ../../node_modules/react-icons/lu/index.mjs
|
181
181
|
function LuEyeOff(props) {
|
182
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "
|
182
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }, "child": [] }, { "tag": "path", "attr": { "d": "M14.084 14.158a3 3 0 0 1-4.242-4.242" }, "child": [] }, { "tag": "path", "attr": { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }, "child": [] }, { "tag": "path", "attr": { "d": "m2 2 20 20" }, "child": [] }] })(props);
|
183
183
|
}
|
184
184
|
function LuEye(props) {
|
185
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2
|
185
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "path", "attr": { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }, "child": [] }, { "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }] })(props);
|
186
186
|
}
|
187
187
|
|
188
|
-
// src/components/
|
188
|
+
// src/components/icon-button/icon-button.tsx
|
189
189
|
var import_react3 = require("react");
|
190
|
-
|
190
|
+
|
191
|
+
// src/components/button/index.ts
|
192
|
+
var import_button = require("@chakra-ui/react/button");
|
193
|
+
|
194
|
+
// src/components/icon-button/icon-button.tsx
|
191
195
|
var import_jsx_runtime = require("react/jsx-runtime");
|
192
|
-
var
|
196
|
+
var IconButton = (0, import_react3.forwardRef)(
|
197
|
+
function IconButton2(props, ref) {
|
198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
199
|
+
import_button.Button,
|
200
|
+
{
|
201
|
+
px: "0",
|
202
|
+
py: "0",
|
203
|
+
_icon: { fontSize: "1.2em" },
|
204
|
+
ref,
|
205
|
+
...props
|
206
|
+
}
|
207
|
+
);
|
208
|
+
}
|
209
|
+
);
|
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
|
+
// src/components/input/index.ts
|
216
|
+
var import_input = require("@chakra-ui/react/input");
|
217
|
+
|
218
|
+
// src/components/input-group/input-group.tsx
|
219
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
220
|
+
var InputGroup = (0, import_react4.forwardRef)(
|
193
221
|
function InputGroup2(props, ref) {
|
194
222
|
const {
|
195
223
|
startElement,
|
@@ -199,20 +227,20 @@ var InputGroup = (0, import_react3.forwardRef)(
|
|
199
227
|
children,
|
200
228
|
...rest
|
201
229
|
} = props;
|
202
|
-
return /* @__PURE__ */ (0,
|
203
|
-
startElement && /* @__PURE__ */ (0,
|
204
|
-
(0,
|
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, {
|
205
233
|
...startElement && { ps: "calc(var(--input-height) - 6px)" },
|
206
234
|
...endElement && { pe: "calc(var(--input-height) - 6px)" },
|
207
235
|
...children.props
|
208
236
|
}),
|
209
|
-
endElement && /* @__PURE__ */ (0,
|
237
|
+
endElement && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_input.InputElement, { placement: "end", ...endElementProps, children: endElement })
|
210
238
|
] });
|
211
239
|
}
|
212
240
|
);
|
213
241
|
|
214
242
|
// src/components/password-input/password-input.tsx
|
215
|
-
var
|
243
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
216
244
|
var PasswordInput = (0, import_react5.forwardRef)(
|
217
245
|
function PasswordInput2(props, ref) {
|
218
246
|
const {
|
@@ -220,7 +248,7 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
220
248
|
defaultVisible,
|
221
249
|
visible: visibleProp,
|
222
250
|
onVisibleChange,
|
223
|
-
visibilityIcon = { on: /* @__PURE__ */ (0,
|
251
|
+
visibilityIcon = { on: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(LuEye, {}), off: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(LuEyeOff, {}) },
|
224
252
|
...rest
|
225
253
|
} = props;
|
226
254
|
const [visible, setVisible] = (0, import_react6.useControllableState)({
|
@@ -229,11 +257,11 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
229
257
|
onChange: onVisibleChange
|
230
258
|
});
|
231
259
|
const inputRef = (0, import_react5.useRef)(null);
|
232
|
-
return /* @__PURE__ */ (0,
|
260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
233
261
|
InputGroup,
|
234
262
|
{
|
235
263
|
width: "full",
|
236
|
-
endElement: /* @__PURE__ */ (0,
|
264
|
+
endElement: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
237
265
|
VisibilityTrigger,
|
238
266
|
{
|
239
267
|
disabled: rest.disabled,
|
@@ -247,8 +275,8 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
247
275
|
}
|
248
276
|
),
|
249
277
|
...rootProps,
|
250
|
-
children: /* @__PURE__ */ (0,
|
251
|
-
|
278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
279
|
+
import_input.Input,
|
252
280
|
{
|
253
281
|
...rest,
|
254
282
|
ref: (0, import_react6.mergeRefs)(ref, inputRef),
|
@@ -261,8 +289,8 @@ var PasswordInput = (0, import_react5.forwardRef)(
|
|
261
289
|
);
|
262
290
|
var VisibilityTrigger = (0, import_react5.forwardRef)(
|
263
291
|
function VisibilityTrigger2(props, ref) {
|
264
|
-
return /* @__PURE__ */ (0,
|
265
|
-
|
292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
293
|
+
IconButton,
|
266
294
|
{
|
267
295
|
tabIndex: -1,
|
268
296
|
ref,
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { InputGroupProps } from '../input-group/index.cjs';
|
3
|
+
import { InputProps } from '@chakra-ui/react/input';
|
4
|
+
import '@chakra-ui/react/group';
|
3
5
|
|
4
6
|
interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
5
|
-
rootProps?:
|
7
|
+
rootProps?: InputGroupProps;
|
6
8
|
}
|
7
9
|
declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
|
8
10
|
interface PasswordVisibilityProps {
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import {
|
2
|
+
import { InputGroupProps } from '../input-group/index.js';
|
3
|
+
import { InputProps } from '@chakra-ui/react/input';
|
4
|
+
import '@chakra-ui/react/group';
|
3
5
|
|
4
6
|
interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
5
|
-
rootProps?:
|
7
|
+
rootProps?: InputGroupProps;
|
6
8
|
}
|
7
9
|
declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
|
8
10
|
interface PasswordVisibilityProps {
|
@@ -1,8 +1,11 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
PasswordInput
|
4
|
-
} from "../../chunk-
|
5
|
-
import "../../chunk-
|
4
|
+
} from "../../chunk-T7XRS654.js";
|
5
|
+
import "../../chunk-HKMYYESV.js";
|
6
|
+
import "../../chunk-5MTFSSOH.js";
|
7
|
+
import "../../chunk-OJZPPAT6.js";
|
8
|
+
import "../../chunk-5HVAMQYO.js";
|
6
9
|
import "../../chunk-RTMS5TJN.js";
|
7
10
|
export {
|
8
11
|
PasswordInput
|
@@ -41,27 +41,65 @@ module.exports = __toCommonJS(persona_exports);
|
|
41
41
|
var React2 = __toESM(require("react"), 1);
|
42
42
|
|
43
43
|
// src/components/persona/persona-primitive.tsx
|
44
|
-
var
|
45
|
-
var
|
44
|
+
var import_react3 = require("react");
|
45
|
+
var import_react4 = require("@chakra-ui/react");
|
46
46
|
var import_utils = require("@saas-ui/core/utils");
|
47
47
|
|
48
|
+
// src/components/avatar/avatar.tsx
|
49
|
+
var import_react = require("react");
|
50
|
+
var import_avatar = require("@chakra-ui/react/avatar");
|
51
|
+
var import_group = require("@chakra-ui/react/group");
|
52
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
53
|
+
var Avatar = (0, import_react.forwardRef)(
|
54
|
+
function Avatar2(props, ref) {
|
55
|
+
const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_avatar.Avatar.Root, { ref, ...rest, children: [
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarFallback, { name, icon, children: fallback }),
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_avatar.Avatar.Image, { src, srcSet, loading }),
|
59
|
+
children
|
60
|
+
] });
|
61
|
+
}
|
62
|
+
);
|
63
|
+
var AvatarFallback = (0, import_react.forwardRef)(
|
64
|
+
function AvatarFallback2(props, ref) {
|
65
|
+
const { name, icon, children, ...rest } = props;
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_avatar.Avatar.Fallback, { ref, ...rest, children: [
|
67
|
+
children,
|
68
|
+
name != null && children == null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: getInitials(name) }),
|
69
|
+
name == null && children == null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_avatar.Avatar.Icon, { asChild: !!icon, children: icon })
|
70
|
+
] });
|
71
|
+
}
|
72
|
+
);
|
73
|
+
function getInitials(name) {
|
74
|
+
const names = name.trim().split(" ");
|
75
|
+
const firstName = names[0] != null ? names[0] : "";
|
76
|
+
const lastName = names.length > 1 ? names[names.length - 1] : "";
|
77
|
+
return firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
|
78
|
+
}
|
79
|
+
var AvatarGroup = (0, import_react.forwardRef)(
|
80
|
+
function AvatarGroup2(props, ref) {
|
81
|
+
const { size, variant, borderless, ...rest } = props;
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_avatar.Avatar.PropsProvider, { value: { size, variant, borderless }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_group.Group, { gap: "0", spaceX: "-3", ref, ...rest }) });
|
83
|
+
}
|
84
|
+
);
|
85
|
+
|
48
86
|
// src/components/persona/persona.context.ts
|
49
|
-
var
|
87
|
+
var import_react2 = require("@chakra-ui/react");
|
50
88
|
var {
|
51
89
|
useStyles: usePersonaStyles,
|
52
90
|
withProvider,
|
53
91
|
withContext
|
54
|
-
} = (0,
|
92
|
+
} = (0, import_react2.createSlotRecipeContext)({
|
55
93
|
key: "suiPersona"
|
56
94
|
});
|
57
95
|
|
58
96
|
// src/components/persona/persona-primitive.tsx
|
59
|
-
var
|
97
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
60
98
|
var PersonaRoot = withProvider(
|
61
|
-
(0,
|
99
|
+
(0, import_react3.forwardRef)((props, ref) => {
|
62
100
|
const { outOfOffice, presence, ...rest } = props;
|
63
|
-
return /* @__PURE__ */ (0,
|
64
|
-
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
102
|
+
import_react4.chakra.div,
|
65
103
|
{
|
66
104
|
ref,
|
67
105
|
...rest,
|
@@ -78,11 +116,11 @@ var PersonaRoot = withProvider(
|
|
78
116
|
}),
|
79
117
|
"root"
|
80
118
|
);
|
81
|
-
var PersonaAvatar = (0,
|
119
|
+
var PersonaAvatar = (0, import_react3.forwardRef)(
|
82
120
|
(props, ref) => {
|
83
121
|
const {
|
84
122
|
name,
|
85
|
-
getInitials = (name2) => name2 == null ? void 0 : name2[0],
|
123
|
+
getInitials: getInitials2 = (name2) => name2 == null ? void 0 : name2[0],
|
86
124
|
icon,
|
87
125
|
loading,
|
88
126
|
onError,
|
@@ -91,19 +129,7 @@ var PersonaAvatar = (0, import_react2.forwardRef)(
|
|
91
129
|
children,
|
92
130
|
...rest
|
93
131
|
} = props;
|
94
|
-
return /* @__PURE__ */ (0,
|
95
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react3.Avatar.Fallback, { children: getInitials(name) }),
|
96
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
97
|
-
import_react3.Avatar.Image,
|
98
|
-
{
|
99
|
-
src,
|
100
|
-
srcSet,
|
101
|
-
loading,
|
102
|
-
onError
|
103
|
-
}
|
104
|
-
),
|
105
|
-
children
|
106
|
-
] });
|
132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Avatar, { ref, ...rest, children });
|
107
133
|
}
|
108
134
|
);
|
109
135
|
var PersonaPresenceBadge = withContext("span", "presence");
|
@@ -126,7 +152,7 @@ var PersonaTertiaryLabel = withContext(
|
|
126
152
|
);
|
127
153
|
|
128
154
|
// src/components/persona/persona.tsx
|
129
|
-
var
|
155
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
130
156
|
var Persona = React2.forwardRef(
|
131
157
|
(props, ref) => {
|
132
158
|
const {
|
@@ -141,40 +167,43 @@ var Persona = React2.forwardRef(
|
|
141
167
|
hideDetails,
|
142
168
|
children,
|
143
169
|
/** Avatar props */
|
144
|
-
getInitials,
|
170
|
+
getInitials: getInitials2,
|
145
171
|
icon,
|
146
172
|
loading,
|
147
173
|
onError,
|
148
174
|
src,
|
149
175
|
srcSet,
|
176
|
+
fallback,
|
150
177
|
...rest
|
151
178
|
} = props;
|
152
|
-
return /* @__PURE__ */ (0,
|
179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
153
180
|
PersonaRoot,
|
154
181
|
{
|
155
182
|
ref,
|
156
183
|
outOfOffice: isOutOfOffice,
|
157
184
|
presence,
|
185
|
+
size,
|
158
186
|
...rest,
|
159
187
|
children: [
|
160
|
-
/* @__PURE__ */ (0,
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
161
189
|
PersonaAvatar,
|
162
190
|
{
|
163
191
|
name,
|
164
192
|
size,
|
165
|
-
getInitials,
|
193
|
+
getInitials: getInitials2,
|
166
194
|
icon,
|
167
195
|
loading,
|
168
196
|
onError,
|
169
197
|
src,
|
170
198
|
srcSet,
|
171
|
-
|
199
|
+
fallback,
|
200
|
+
children: presence ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
|
172
201
|
}
|
173
202
|
),
|
174
|
-
!hideDetails && /* @__PURE__ */ (0,
|
175
|
-
/* @__PURE__ */ (0,
|
176
|
-
secondaryLabel && /* @__PURE__ */ (0,
|
177
|
-
tertiaryLabel && /* @__PURE__ */ (0,
|
203
|
+
!hideDetails && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PersonaDetails, { children: [
|
204
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaLabel, { children: label || name }),
|
205
|
+
secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaSecondaryLabel, { children: secondaryLabel }),
|
206
|
+
tertiaryLabel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonaTertiaryLabel, { children: tertiaryLabel }),
|
178
207
|
children
|
179
208
|
] })
|
180
209
|
]
|
@@ -184,7 +213,7 @@ var Persona = React2.forwardRef(
|
|
184
213
|
);
|
185
214
|
Persona.displayName = "Persona";
|
186
215
|
var PersonaAvatar2 = React2.forwardRef(function PersonaAvatar3(props, ref) {
|
187
|
-
return /* @__PURE__ */ (0,
|
216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Persona, { ref, ...props, hideDetails: true });
|
188
217
|
});
|
189
218
|
|
190
219
|
// src/components/persona/presence.ts
|
@@ -1,6 +1,115 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import react__default from 'react';
|
3
|
-
import
|
3
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
4
|
+
import { HTMLChakraProps, SlotRecipeProps, ImageProps } from '@chakra-ui/react';
|
5
|
+
import { AvatarProps } from '../avatar/index.cjs';
|
6
|
+
import { RecipeVariantProps } from '@chakra-ui/react/styled-system';
|
7
|
+
import '@chakra-ui/react/avatar';
|
8
|
+
import '@chakra-ui/react/group';
|
9
|
+
|
10
|
+
declare const personaSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"presence" | "root" | "label" | "avatar" | "details" | "secondaryLabel" | "tertiaryLabel", {
|
11
|
+
size: {
|
12
|
+
'2xs': {
|
13
|
+
details: {
|
14
|
+
ms: number;
|
15
|
+
};
|
16
|
+
label: {
|
17
|
+
fontSize: "xs";
|
18
|
+
};
|
19
|
+
secondaryLabel: {
|
20
|
+
display: "none";
|
21
|
+
};
|
22
|
+
tertiaryLabel: {
|
23
|
+
display: "none";
|
24
|
+
};
|
25
|
+
};
|
26
|
+
xs: {
|
27
|
+
details: {
|
28
|
+
ms: number;
|
29
|
+
};
|
30
|
+
label: {
|
31
|
+
fontSize: "xs";
|
32
|
+
};
|
33
|
+
secondaryLabel: {
|
34
|
+
display: "none";
|
35
|
+
};
|
36
|
+
tertiaryLabel: {
|
37
|
+
display: "none";
|
38
|
+
};
|
39
|
+
};
|
40
|
+
sm: {
|
41
|
+
details: {
|
42
|
+
ms: number;
|
43
|
+
};
|
44
|
+
label: {
|
45
|
+
fontSize: "sm";
|
46
|
+
};
|
47
|
+
secondaryLabel: {
|
48
|
+
fontSize: "xs";
|
49
|
+
};
|
50
|
+
tertiaryLabel: {
|
51
|
+
display: "none";
|
52
|
+
};
|
53
|
+
};
|
54
|
+
md: {
|
55
|
+
details: {
|
56
|
+
ms: number;
|
57
|
+
};
|
58
|
+
label: {
|
59
|
+
fontSize: "sm";
|
60
|
+
};
|
61
|
+
secondaryLabel: {
|
62
|
+
fontSize: "xs";
|
63
|
+
};
|
64
|
+
tertiaryLabel: {
|
65
|
+
display: "none";
|
66
|
+
};
|
67
|
+
};
|
68
|
+
lg: {
|
69
|
+
details: {
|
70
|
+
ms: number;
|
71
|
+
};
|
72
|
+
label: {
|
73
|
+
fontSize: "md";
|
74
|
+
};
|
75
|
+
secondaryLabel: {
|
76
|
+
fontSize: "sm";
|
77
|
+
};
|
78
|
+
tertiaryLabel: {
|
79
|
+
fontSize: "sm";
|
80
|
+
};
|
81
|
+
};
|
82
|
+
xl: {
|
83
|
+
details: {
|
84
|
+
ms: number;
|
85
|
+
};
|
86
|
+
label: {
|
87
|
+
fontSize: "lg";
|
88
|
+
};
|
89
|
+
secondaryLabel: {
|
90
|
+
fontSize: "md";
|
91
|
+
};
|
92
|
+
tertiaryLabel: {
|
93
|
+
fontSize: "md";
|
94
|
+
};
|
95
|
+
};
|
96
|
+
'2xl': {
|
97
|
+
details: {
|
98
|
+
ms: number;
|
99
|
+
};
|
100
|
+
label: {
|
101
|
+
fontSize: "xl";
|
102
|
+
};
|
103
|
+
secondaryLabel: {
|
104
|
+
fontSize: "lg";
|
105
|
+
};
|
106
|
+
tertiaryLabel: {
|
107
|
+
fontSize: "lg";
|
108
|
+
};
|
109
|
+
};
|
110
|
+
};
|
111
|
+
}>;
|
112
|
+
type PersonaVariantProps = RecipeVariantProps<typeof personaSlotRecipe>;
|
4
113
|
|
5
114
|
type Presence = 'online' | 'offline' | 'busy' | 'dnd' | 'away';
|
6
115
|
interface PresenceConfig {
|
@@ -23,7 +132,7 @@ type PresenceOptions<P extends string = Presence> = Record<P, PresenceConfig>;
|
|
23
132
|
*/
|
24
133
|
declare const defaultPresenceOptions: PresenceOptions;
|
25
134
|
|
26
|
-
interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'
|
135
|
+
interface PersonaRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiPersona'>, PersonaVariantProps {
|
27
136
|
/**
|
28
137
|
* Indicates that a person is out of office. Changes the presence badge style.
|
29
138
|
*/
|
@@ -42,7 +151,7 @@ interface PersonaAvatarOptions {
|
|
42
151
|
*/
|
43
152
|
name?: string;
|
44
153
|
}
|
45
|
-
interface PersonaAvatarProps$1 extends PersonaAvatarOptions,
|
154
|
+
interface PersonaAvatarProps$1 extends PersonaAvatarOptions, AvatarProps {
|
46
155
|
src?: string;
|
47
156
|
srcSet?: string;
|
48
157
|
loading?: ImageProps['loading'];
|
@@ -98,7 +207,7 @@ interface PersonaOptions {
|
|
98
207
|
*/
|
99
208
|
hideDetails?: boolean;
|
100
209
|
}
|
101
|
-
interface PersonaProps extends PersonaOptions, PersonaAvatarProps$1, PersonaRootProps {
|
210
|
+
interface PersonaProps extends PersonaOptions, Omit<PersonaAvatarProps$1, 'size'>, PersonaRootProps, PersonaVariantProps {
|
102
211
|
}
|
103
212
|
/**
|
104
213
|
* The wrapper component that handles default composition.
|