@saas-ui/react 3.0.0-alpha.30 → 3.0.0-alpha.32
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 +14 -0
- package/dist/chunk-27OMFCPD.js +8 -0
- package/dist/{chunk-VZG7EJ64.js → chunk-2B5OZHZY.js} +3 -2
- package/dist/{chunk-3JZ42NYM.js → chunk-3DGRWH7C.js} +3 -2
- package/dist/chunk-3EV6MKBG.js +60 -0
- package/dist/chunk-3RHNNKPC.js +51 -0
- package/dist/{chunk-46ISJZBS.js → chunk-4IZGJDYL.js} +1 -1
- package/dist/{chunk-4TPVIHNO.js → chunk-4XB7B73X.js} +19 -2
- package/dist/chunk-5HVAMQYO.js +8 -0
- package/dist/chunk-5MTFSSOH.js +16 -0
- package/dist/chunk-5YNHX4C7.js +16 -0
- package/dist/{chunk-UASXI64E.js → chunk-5ZKEXMBN.js} +4 -2
- package/dist/chunk-6YZ76Q2W.js +8 -0
- package/dist/{chunk-RLIAFHVM.js → chunk-77QJSEEA.js} +7 -5
- 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-32DD6PHF.js → chunk-EYOHLXWQ.js} +3 -2
- package/dist/chunk-FD2V4Y66.js +8 -0
- package/dist/{chunk-JO4WJVYO.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-S5J6REMC.js → chunk-IEWGZ4LU.js} +2 -2
- package/dist/{chunk-KE5AC3TZ.js → chunk-JPY2QZLC.js} +3 -2
- 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-NLMFEUVO.js +41 -0
- package/dist/{chunk-I2RXEKTB.js → chunk-NSFGACD7.js} +1 -1
- package/dist/{chunk-MS2ELLDY.js → chunk-OJZPPAT6.js} +1 -1
- 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-GRUMUCSL.js → chunk-T2FPZNCP.js} +13 -7
- package/dist/{chunk-K2SPPLAY.js → chunk-T7XRS654.js} +8 -7
- package/dist/chunk-TEQVVR3W.js +8 -0
- package/dist/chunk-TH6YCBEG.js +8 -0
- package/dist/{chunk-MLJN6IOJ.js → chunk-TWTXZ7PR.js} +10 -6
- package/dist/{chunk-YKSY7UOM.js → chunk-U3EPRSD3.js} +1 -1
- package/dist/chunk-UEXUCHDD.js +34 -0
- package/dist/chunk-UIP2CHMU.js +8 -0
- package/dist/{chunk-KFXNVUEZ.js → chunk-UNF77J24.js} +7 -9
- package/dist/{chunk-GWC5GCMW.js → chunk-VJ4UOABT.js} +1 -1
- package/dist/{chunk-IEWHAXXU.js → chunk-WJZED26X.js} +1 -1
- package/dist/chunk-XW747T2R.js +43 -0
- package/dist/chunk-XX2OY7LK.js +10 -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-LTVFG6UC.js → chunk-Z37BQ5VU.js} +1 -1
- 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 +1 -1
- package/dist/components/badge/index.cjs +5 -3
- package/dist/components/badge/index.d.cts +25 -1
- package/dist/components/badge/index.d.ts +25 -1
- package/dist/components/badge/index.js +5 -3
- 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 -18
- 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 +3 -2
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +4 -3
- 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 +78 -41
- 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 +4 -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 +8 -3
- package/dist/components/command/index.d.cts +2 -2
- package/dist/components/command/index.d.ts +2 -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/dialog/index.cjs +102 -64
- package/dist/components/dialog/index.d.cts +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +5 -3
- package/dist/components/drawer/index.cjs +96 -59
- package/dist/components/drawer/index.js +5 -3
- 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/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 +109 -67
- package/dist/components/file-upload/index.d.cts +4 -1
- package/dist/components/file-upload/index.d.ts +4 -1
- package/dist/components/file-upload/index.js +9 -5
- package/dist/components/grid-list/index.cjs +2 -2
- package/dist/components/grid-list/index.d.cts +2 -2
- package/dist/components/grid-list/index.d.ts +2 -2
- 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 +7 -21
- package/dist/components/icon-button/index.d.cts +1 -2
- package/dist/components/icon-button/index.d.ts +1 -2
- package/dist/components/icon-button/index.js +2 -2
- package/dist/components/icons/index.cjs +21 -2
- package/dist/components/icons/index.d.cts +3 -1
- package/dist/components/icons/index.d.ts +3 -1
- package/dist/components/icons/index.js +5 -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 +88 -85
- 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 +17 -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 +92 -54
- package/dist/components/pagination/index.d.cts +3 -1
- package/dist/components/pagination/index.d.ts +3 -1
- package/dist/components/pagination/index.js +4 -2
- package/dist/components/password-input/index.cjs +43 -15
- 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 +14 -13
- package/dist/components/persona/index.d.cts +4 -1
- package/dist/components/persona/index.d.ts +4 -1
- package/dist/components/persona/index.js +2 -2
- 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 +94 -56
- package/dist/components/popover/index.d.cts +3 -37
- package/dist/components/popover/index.d.ts +3 -37
- package/dist/components/popover/index.js +5 -3
- 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 +31 -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 +105 -67
- package/dist/components/select/index.d.cts +2 -1
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/index.js +5 -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.d.cts +1 -1
- package/dist/components/sidebar/index.d.ts +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 +3 -3
- package/dist/components/status/index.d.cts +2 -1
- package/dist/components/status/index.d.ts +2 -1
- package/dist/components/status/index.js +1 -1
- package/dist/components/steps/index.cjs +39 -23
- package/dist/components/steps/index.d.cts +1 -1
- package/dist/components/steps/index.d.ts +1 -1
- 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 +2 -0
- package/dist/components/tabs/index.d.cts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +3 -1
- package/dist/components/tag/index.cjs +6 -6
- package/dist/components/tag/index.d.cts +1 -1
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/index.js +1 -1
- 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 +108 -55
- package/dist/components/toaster/index.d.cts +1 -1
- package/dist/components/toaster/index.d.ts +1 -1
- package/dist/components/toaster/index.js +7 -3
- 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 +5835 -5173
- package/dist/index.d.cts +79 -5
- package/dist/index.d.ts +79 -5
- package/dist/index.js +4986 -4778
- package/dist/loading-overlay-BQ4lOS6T.d.ts +23 -0
- package/dist/loading-overlay-afP_W7ru.d.cts +23 -0
- package/package.json +3 -3
- package/dist/chunk-INV6RT5B.js +0 -8
- package/dist/chunk-IVLUAUU5.js +0 -10
- package/dist/chunk-NGSHWY7E.js +0 -27
- package/dist/chunk-YXGJOOMM.js +0 -19
@@ -0,0 +1,21 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
IconButton
|
4
|
+
} from "./chunk-OJZPPAT6.js";
|
5
|
+
import {
|
6
|
+
CloseIcon
|
7
|
+
} from "./chunk-4XB7B73X.js";
|
8
|
+
|
9
|
+
// src/components/close-button/close-button.tsx
|
10
|
+
import { forwardRef } from "react";
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
12
|
+
var CloseButton = forwardRef(
|
13
|
+
function CloseButton2(props, ref) {
|
14
|
+
var _a;
|
15
|
+
return /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Close", ref, ...props, children: (_a = props.children) != null ? _a : /* @__PURE__ */ jsx(CloseIcon, {}) });
|
16
|
+
}
|
17
|
+
);
|
18
|
+
|
19
|
+
export {
|
20
|
+
CloseButton
|
21
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
ChevronDownIcon
|
4
|
+
} from "./chunk-4XB7B73X.js";
|
5
|
+
|
6
|
+
// src/components/native-select/native-select.tsx
|
7
|
+
import * as React from "react";
|
8
|
+
import { NativeSelect as Select } from "@chakra-ui/react/native-select";
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
10
|
+
var NativeSelect = React.forwardRef(
|
11
|
+
function NativeSelect2(props, ref) {
|
12
|
+
const { icon = /* @__PURE__ */ jsx(ChevronDownIcon, {}), placeholder, children, ...rest } = props;
|
13
|
+
return /* @__PURE__ */ jsx(Select.Root, { ref, ...rest, children: /* @__PURE__ */ jsxs(Select.Field, { placeholder, children: [
|
14
|
+
children,
|
15
|
+
/* @__PURE__ */ jsx(Select.Indicator, { children: icon })
|
16
|
+
] }) });
|
17
|
+
}
|
18
|
+
);
|
19
|
+
|
20
|
+
export {
|
21
|
+
NativeSelect
|
22
|
+
};
|
@@ -1,8 +1,11 @@
|
|
1
1
|
'use client'
|
2
|
+
import {
|
3
|
+
InputElement
|
4
|
+
} from "./chunk-5MTFSSOH.js";
|
2
5
|
|
3
6
|
// src/components/input-group/input-group.tsx
|
4
7
|
import { cloneElement, forwardRef, isValidElement } from "react";
|
5
|
-
import { Group
|
8
|
+
import { Group } from "@chakra-ui/react/group";
|
6
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
10
|
var InputGroup = forwardRef(
|
8
11
|
function InputGroup2(props, ref) {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
// src/components/radio/radio.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { RadioGroup as ChakraRadioGroup } from "@chakra-ui/react";
|
5
|
+
import { RadioGroup as ChakraRadioGroup } from "@chakra-ui/react/radio-group";
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
7
|
var Radio = forwardRef(
|
8
8
|
function Radio2(props, ref) {
|
@@ -0,0 +1,46 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
CloseButton
|
4
|
+
} from "./chunk-H7KPEI6P.js";
|
5
|
+
|
6
|
+
// src/components/alert/alert.tsx
|
7
|
+
import { forwardRef } from "react";
|
8
|
+
import { Alert as AlertPrimitive } from "@chakra-ui/react/alert";
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
10
|
+
var Alert = forwardRef(
|
11
|
+
function Alert2(props, ref) {
|
12
|
+
const {
|
13
|
+
title,
|
14
|
+
children,
|
15
|
+
icon,
|
16
|
+
closable,
|
17
|
+
onClose,
|
18
|
+
startElement,
|
19
|
+
endElement,
|
20
|
+
...rest
|
21
|
+
} = props;
|
22
|
+
return /* @__PURE__ */ jsxs(AlertPrimitive.Root, { ref, ...rest, children: [
|
23
|
+
startElement || /* @__PURE__ */ jsx(AlertPrimitive.Indicator, { children: icon }),
|
24
|
+
children ? /* @__PURE__ */ jsxs(AlertPrimitive.Content, { children: [
|
25
|
+
/* @__PURE__ */ jsx(AlertPrimitive.Title, { children: title }),
|
26
|
+
/* @__PURE__ */ jsx(AlertPrimitive.Description, { children })
|
27
|
+
] }) : /* @__PURE__ */ jsx(AlertPrimitive.Title, { flex: "1", children: title }),
|
28
|
+
endElement,
|
29
|
+
closable && /* @__PURE__ */ jsx(
|
30
|
+
CloseButton,
|
31
|
+
{
|
32
|
+
size: "sm",
|
33
|
+
pos: "relative",
|
34
|
+
top: "-2",
|
35
|
+
insetEnd: "-2",
|
36
|
+
alignSelf: "flex-start",
|
37
|
+
onClick: onClose
|
38
|
+
}
|
39
|
+
)
|
40
|
+
] });
|
41
|
+
}
|
42
|
+
);
|
43
|
+
|
44
|
+
export {
|
45
|
+
Alert
|
46
|
+
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
'use client'
|
2
2
|
|
3
3
|
// src/components/switch/switch.tsx
|
4
|
-
import { Switch as ChakraSwitch } from "@chakra-ui/react";
|
5
4
|
import { forwardRef } from "react";
|
5
|
+
import { Switch as ChakraSwitch } from "@chakra-ui/react/switch";
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
7
|
var Switch = forwardRef(
|
8
8
|
function Switch2(props, ref) {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
InputGroup
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-HKMYYESV.js";
|
5
5
|
|
6
6
|
// src/components/number-input/number-input.tsx
|
7
7
|
import { forwardRef } from "react";
|
8
|
-
import { NumberInput as ChakraNumberInput } from "@chakra-ui/react";
|
8
|
+
import { NumberInput as ChakraNumberInput } from "@chakra-ui/react/number-input";
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
10
10
|
var NumberInput = forwardRef(
|
11
11
|
function NumberInput2(props, ref) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
CloseButton
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-H7KPEI6P.js";
|
5
5
|
import {
|
6
6
|
__export
|
7
7
|
} from "./chunk-RTMS5TJN.js";
|
@@ -22,7 +22,8 @@ __export(popover_exports, {
|
|
22
22
|
Trigger: () => Trigger
|
23
23
|
});
|
24
24
|
import * as React from "react";
|
25
|
-
import { Popover as ChakraPopover
|
25
|
+
import { Popover as ChakraPopover } from "@chakra-ui/react/popover";
|
26
|
+
import { Portal } from "@chakra-ui/react/portal";
|
26
27
|
import { jsx } from "react/jsx-runtime";
|
27
28
|
var Content = React.forwardRef(
|
28
29
|
function PopoverContent(props, ref) {
|
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
// src/components/segmented-control/segmented-control.tsx
|
4
4
|
import { forwardRef, useMemo } from "react";
|
5
|
-
import { For
|
5
|
+
import { For } from "@chakra-ui/react/for";
|
6
|
+
import { SegmentGroup } from "@chakra-ui/react/segment-group";
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
8
|
function normalize(items) {
|
8
9
|
return items.map((item) => {
|
@@ -0,0 +1,53 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "./chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/radio-card/radio-card.tsx
|
7
|
+
var radio_card_exports = {};
|
8
|
+
__export(radio_card_exports, {
|
9
|
+
Item: () => RadioCardItem,
|
10
|
+
ItemIndicator: () => RadioCardItemIndicator,
|
11
|
+
Label: () => RadioCardLabel,
|
12
|
+
Root: () => RadioCardRoot
|
13
|
+
});
|
14
|
+
import { Fragment, forwardRef } from "react";
|
15
|
+
import { RadioCard } from "@chakra-ui/react/radio-card";
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
17
|
+
var RadioCardItem = forwardRef(
|
18
|
+
function RadioCardItem2(props, ref) {
|
19
|
+
const {
|
20
|
+
inputProps,
|
21
|
+
label,
|
22
|
+
description,
|
23
|
+
addon,
|
24
|
+
icon,
|
25
|
+
indicator = /* @__PURE__ */ jsx(RadioCard.ItemIndicator, {}),
|
26
|
+
indicatorPlacement = "end",
|
27
|
+
...rest
|
28
|
+
} = props;
|
29
|
+
const hasContent = label || description || icon;
|
30
|
+
const ContentWrapper = indicator ? RadioCard.ItemContent : Fragment;
|
31
|
+
return /* @__PURE__ */ jsxs(RadioCard.Item, { ...rest, children: [
|
32
|
+
/* @__PURE__ */ jsx(RadioCard.ItemHiddenInput, { ref, ...inputProps }),
|
33
|
+
/* @__PURE__ */ jsxs(RadioCard.ItemControl, { children: [
|
34
|
+
indicatorPlacement === "start" && indicator,
|
35
|
+
hasContent && /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
36
|
+
icon,
|
37
|
+
label && /* @__PURE__ */ jsx(RadioCard.ItemText, { children: label }),
|
38
|
+
description && /* @__PURE__ */ jsx(RadioCard.ItemDescription, { children: description }),
|
39
|
+
indicatorPlacement === "inside" && indicator
|
40
|
+
] }),
|
41
|
+
indicatorPlacement === "end" && indicator
|
42
|
+
] }),
|
43
|
+
addon && /* @__PURE__ */ jsx(RadioCard.ItemAddon, { children: addon })
|
44
|
+
] });
|
45
|
+
}
|
46
|
+
);
|
47
|
+
var RadioCardRoot = RadioCard.Root;
|
48
|
+
var RadioCardLabel = RadioCard.Label;
|
49
|
+
var RadioCardItemIndicator = RadioCard.ItemIndicator;
|
50
|
+
|
51
|
+
export {
|
52
|
+
radio_card_exports
|
53
|
+
};
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
// src/components/spinner/spinner.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { Spinner as ChakraSpinner } from "@chakra-ui/react";
|
5
|
+
import { Spinner as ChakraSpinner } from "@chakra-ui/react/spinner";
|
6
6
|
import { Fragment, jsx } from "react/jsx-runtime";
|
7
7
|
var Spinner = forwardRef(
|
8
8
|
function Spinner2(props, ref) {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
__export
|
4
|
+
} from "./chunk-RTMS5TJN.js";
|
5
|
+
|
6
|
+
// src/components/hover-card/hover-card.tsx
|
7
|
+
var hover_card_exports = {};
|
8
|
+
__export(hover_card_exports, {
|
9
|
+
Arrow: () => Arrow,
|
10
|
+
Content: () => Content,
|
11
|
+
Root: () => Root,
|
12
|
+
Trigger: () => Trigger
|
13
|
+
});
|
14
|
+
import * as React from "react";
|
15
|
+
import { HoverCard } from "@chakra-ui/react/hover-card";
|
16
|
+
import { Portal } from "@chakra-ui/react/portal";
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
18
|
+
var Content = React.forwardRef(
|
19
|
+
function HoverCardContent(props, ref) {
|
20
|
+
const { portalled = true, portalRef, ...rest } = props;
|
21
|
+
return /* @__PURE__ */ jsx(Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsx(HoverCard.Positioner, { children: /* @__PURE__ */ jsx(HoverCard.Content, { ref, ...rest }) }) });
|
22
|
+
}
|
23
|
+
);
|
24
|
+
var Arrow = React.forwardRef(
|
25
|
+
function HoverCardArrow(props, ref) {
|
26
|
+
return /* @__PURE__ */ jsx(HoverCard.Arrow, { ref, ...props, children: /* @__PURE__ */ jsx(HoverCard.ArrowTip, {}) });
|
27
|
+
}
|
28
|
+
);
|
29
|
+
var Root = HoverCard.Root;
|
30
|
+
var Trigger = HoverCard.Trigger;
|
31
|
+
|
32
|
+
export {
|
33
|
+
hover_card_exports
|
34
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
'use client'
|
2
|
+
|
3
|
+
// src/components/checkbox-card/checkbox-card.tsx
|
4
|
+
import { Fragment, forwardRef } from "react";
|
5
|
+
import { CheckboxCard as ChakraCheckboxCard } from "@chakra-ui/react/checkbox-card";
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
7
|
+
var CheckboxCard = forwardRef(
|
8
|
+
function CheckboxCard2(props, ref) {
|
9
|
+
const {
|
10
|
+
inputProps,
|
11
|
+
label,
|
12
|
+
description,
|
13
|
+
icon,
|
14
|
+
addon,
|
15
|
+
indicator = /* @__PURE__ */ jsx(ChakraCheckboxCard.Indicator, {}),
|
16
|
+
indicatorPlacement = "end",
|
17
|
+
...rest
|
18
|
+
} = props;
|
19
|
+
const hasContent = label || description || icon;
|
20
|
+
const ContentWrapper = indicator ? ChakraCheckboxCard.Content : Fragment;
|
21
|
+
return /* @__PURE__ */ jsxs(ChakraCheckboxCard.Root, { ...rest, children: [
|
22
|
+
/* @__PURE__ */ jsx(ChakraCheckboxCard.HiddenInput, { ref, ...inputProps }),
|
23
|
+
/* @__PURE__ */ jsxs(ChakraCheckboxCard.Control, { children: [
|
24
|
+
indicatorPlacement === "start" && indicator,
|
25
|
+
hasContent && /* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
26
|
+
icon,
|
27
|
+
label && /* @__PURE__ */ jsx(ChakraCheckboxCard.Label, { children: label }),
|
28
|
+
description && /* @__PURE__ */ jsx(ChakraCheckboxCard.Description, { children: description }),
|
29
|
+
indicatorPlacement === "inside" && indicator
|
30
|
+
] }),
|
31
|
+
indicatorPlacement === "end" && indicator
|
32
|
+
] }),
|
33
|
+
addon && /* @__PURE__ */ jsx(ChakraCheckboxCard.Addon, { children: addon })
|
34
|
+
] });
|
35
|
+
}
|
36
|
+
);
|
37
|
+
var CheckboxCardIndicator = ChakraCheckboxCard.Indicator;
|
38
|
+
|
39
|
+
export {
|
40
|
+
CheckboxCard
|
41
|
+
};
|
@@ -6,7 +6,7 @@ import { cloneElement, isValidElement } from "react";
|
|
6
6
|
import {
|
7
7
|
chakra,
|
8
8
|
useRecipe
|
9
|
-
} from "@chakra-ui/react";
|
9
|
+
} from "@chakra-ui/react/styled-system";
|
10
10
|
import { cx } from "@saas-ui/core/utils";
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
12
12
|
var IconBadge = React.forwardRef(
|
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
// src/components/pin-input/pin-input.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import {
|
5
|
+
import { Group } from "@chakra-ui/react/group";
|
6
|
+
import { PinInput as ChakraPinInput } from "@chakra-ui/react/pin-input";
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
8
|
var PinInput = forwardRef(
|
8
9
|
function PinInput2(props, ref) {
|
@@ -0,0 +1,44 @@
|
|
1
|
+
'use client'
|
2
|
+
import {
|
3
|
+
ChevronRightIcon
|
4
|
+
} from "./chunk-4XB7B73X.js";
|
5
|
+
import {
|
6
|
+
__export
|
7
|
+
} from "./chunk-RTMS5TJN.js";
|
8
|
+
|
9
|
+
// src/components/accordion/accordion.tsx
|
10
|
+
var accordion_exports = {};
|
11
|
+
__export(accordion_exports, {
|
12
|
+
Item: () => Item,
|
13
|
+
ItemContent: () => ItemContent,
|
14
|
+
ItemTrigger: () => ItemTrigger,
|
15
|
+
Root: () => Root
|
16
|
+
});
|
17
|
+
import * as React from "react";
|
18
|
+
import { Accordion } from "@chakra-ui/react/accordion";
|
19
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
20
|
+
var ItemTrigger = React.forwardRef(function AccordionItemTrigger(props, ref) {
|
21
|
+
const {
|
22
|
+
children,
|
23
|
+
indicatorPlacement = "end",
|
24
|
+
indicatorIcon = /* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
25
|
+
...rest
|
26
|
+
} = props;
|
27
|
+
const indicator = /* @__PURE__ */ jsx(Accordion.ItemIndicator, { children: indicatorIcon });
|
28
|
+
return /* @__PURE__ */ jsxs(Accordion.ItemTrigger, { ...rest, ref, children: [
|
29
|
+
indicatorPlacement === "start" && indicator,
|
30
|
+
children,
|
31
|
+
indicatorPlacement === "end" && indicator
|
32
|
+
] });
|
33
|
+
});
|
34
|
+
var ItemContent = React.forwardRef(
|
35
|
+
function AccordionItemContent(props, ref) {
|
36
|
+
return /* @__PURE__ */ jsx(Accordion.ItemContent, { children: /* @__PURE__ */ jsx(Accordion.ItemBody, { ...props, ref }) });
|
37
|
+
}
|
38
|
+
);
|
39
|
+
var Root = Accordion.Root;
|
40
|
+
var Item = Accordion.Item;
|
41
|
+
|
42
|
+
export {
|
43
|
+
accordion_exports
|
44
|
+
};
|
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
|
6
6
|
// src/components/link/link.tsx
|
7
7
|
import React from "react";
|
8
|
-
import { Link as ChakraLink } from "@chakra-ui/react";
|
8
|
+
import { Link as ChakraLink } from "@chakra-ui/react/link";
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
10
10
|
var Link = React.forwardRef(
|
11
11
|
(props, ref) => {
|
@@ -1,7 +1,10 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
CloseButton
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-H7KPEI6P.js";
|
5
|
+
import {
|
6
|
+
Button
|
7
|
+
} from "./chunk-5HVAMQYO.js";
|
5
8
|
import {
|
6
9
|
__export
|
7
10
|
} from "./chunk-RTMS5TJN.js";
|
@@ -18,13 +21,12 @@ __export(file_upload_exports, {
|
|
18
21
|
Trigger: () => Trigger
|
19
22
|
});
|
20
23
|
import * as React from "react";
|
24
|
+
import { Span } from "@chakra-ui/react";
|
21
25
|
import {
|
22
|
-
Button,
|
23
26
|
FileUpload as ChakraFileUpload,
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
} from "@chakra-ui/react";
|
27
|
+
useFileUploadContext
|
28
|
+
} from "@chakra-ui/react/file-upload";
|
29
|
+
import { useRecipe } from "@chakra-ui/react/styled-system";
|
28
30
|
import { jsx, jsxs } from "react/jsx-runtime";
|
29
31
|
var Root = React.forwardRef(
|
30
32
|
function FileUploadRoot(props, ref) {
|
@@ -104,6 +106,10 @@ var Label = ChakraFileUpload.Label;
|
|
104
106
|
var ClearTrigger = ChakraFileUpload.ClearTrigger;
|
105
107
|
var Trigger = ChakraFileUpload.Trigger;
|
106
108
|
|
109
|
+
// src/components/file-upload/index.ts
|
110
|
+
import { useFileUploadContext as useFileUploadContext2 } from "@chakra-ui/react/file-upload";
|
111
|
+
|
107
112
|
export {
|
108
|
-
file_upload_exports
|
113
|
+
file_upload_exports,
|
114
|
+
useFileUploadContext2 as useFileUploadContext
|
109
115
|
};
|
@@ -1,16 +1,17 @@
|
|
1
1
|
'use client'
|
2
2
|
import {
|
3
3
|
InputGroup
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-HKMYYESV.js";
|
5
|
+
import {
|
6
|
+
Input
|
7
|
+
} from "./chunk-5MTFSSOH.js";
|
8
|
+
import {
|
9
|
+
IconButton
|
10
|
+
} from "./chunk-OJZPPAT6.js";
|
5
11
|
|
6
12
|
// src/components/password-input/password-input.tsx
|
7
13
|
import { forwardRef, useRef } from "react";
|
8
|
-
import {
|
9
|
-
IconButton,
|
10
|
-
Input,
|
11
|
-
mergeRefs,
|
12
|
-
useControllableState
|
13
|
-
} from "@chakra-ui/react";
|
14
|
+
import { mergeRefs, useControllableState } from "@chakra-ui/react";
|
14
15
|
|
15
16
|
// ../../node_modules/react-icons/lib/iconBase.mjs
|
16
17
|
import React2 from "react";
|
@@ -1,9 +1,15 @@
|
|
1
1
|
'use client'
|
2
|
+
import {
|
3
|
+
IconButton
|
4
|
+
} from "./chunk-OJZPPAT6.js";
|
5
|
+
import {
|
6
|
+
Button
|
7
|
+
} from "./chunk-5HVAMQYO.js";
|
2
8
|
import {
|
3
9
|
ChevronLeftIcon,
|
4
10
|
ChevronRightIcon,
|
5
11
|
EllipsisIcon
|
6
|
-
} from "./chunk-
|
12
|
+
} from "./chunk-4XB7B73X.js";
|
7
13
|
import {
|
8
14
|
__export
|
9
15
|
} from "./chunk-RTMS5TJN.js";
|
@@ -24,13 +30,11 @@ __export(pagination_exports, {
|
|
24
30
|
});
|
25
31
|
import { forwardRef, useMemo } from "react";
|
26
32
|
import {
|
27
|
-
Button,
|
28
33
|
Pagination as ChakraPagination,
|
29
|
-
IconButton,
|
30
|
-
Text,
|
31
|
-
createContext,
|
32
34
|
usePaginationContext
|
33
|
-
} from "@chakra-ui/react";
|
35
|
+
} from "@chakra-ui/react/pagination";
|
36
|
+
import { Text } from "@chakra-ui/react/typography";
|
37
|
+
import { createContext } from "@saas-ui/core/utils";
|
34
38
|
import { jsx } from "react/jsx-runtime";
|
35
39
|
var [RootPropsProvider, useRootProps] = createContext({
|
36
40
|
name: "RootPropsProvider"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
// src/components/status/status.tsx
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { Status as ChakraStatus } from "@chakra-ui/react";
|
5
|
+
import { Status as ChakraStatus } from "@chakra-ui/react/status";
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
7
7
|
var Status = forwardRef(
|
8
8
|
function Status2(props, ref) {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
'use client'
|
2
|
+
|
3
|
+
// src/components/skeleton/skeleton.tsx
|
4
|
+
import { forwardRef } from "react";
|
5
|
+
import { Circle } from "@chakra-ui/react/box";
|
6
|
+
import { Skeleton as ChakraSkeleton } from "@chakra-ui/react/skeleton";
|
7
|
+
import { Stack } from "@chakra-ui/react/stack";
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
9
|
+
var SkeletonCircle = (props) => {
|
10
|
+
const { size, ...rest } = props;
|
11
|
+
return /* @__PURE__ */ jsx(Circle, { size, asChild: true, children: /* @__PURE__ */ jsx(ChakraSkeleton, { ...rest }) });
|
12
|
+
};
|
13
|
+
var SkeletonText = forwardRef(
|
14
|
+
function SkeletonText2(props, ref) {
|
15
|
+
const { noOfLines = 3, gap, ...rest } = props;
|
16
|
+
return /* @__PURE__ */ jsx(Stack, { gap, width: "full", ref, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsx(
|
17
|
+
ChakraSkeleton,
|
18
|
+
{
|
19
|
+
height: "4",
|
20
|
+
...props,
|
21
|
+
_last: { maxW: "80%" },
|
22
|
+
...rest
|
23
|
+
},
|
24
|
+
index
|
25
|
+
)) });
|
26
|
+
}
|
27
|
+
);
|
28
|
+
var Skeleton = ChakraSkeleton;
|
29
|
+
|
30
|
+
export {
|
31
|
+
SkeletonCircle,
|
32
|
+
SkeletonText,
|
33
|
+
Skeleton
|
34
|
+
};
|