@eluan/core 0.1.0 → 0.4.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/README.md +34 -4
- package/dist/accordion-BzmUN-cN.js +28 -0
- package/dist/{accordion-BbMxlj3j.cjs → accordion-CwCYLCam.cjs} +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/action-popover-CCRZyXVl.cjs +1 -0
- package/dist/action-popover-DUJjIthU.js +25 -0
- package/dist/action-popover.cjs +1 -1
- package/dist/action-popover.js +1 -1
- package/dist/avatar-CS5f1irF.js +124 -0
- package/dist/avatar-Co-k8KqV.cjs +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/{badge-BZli5zpU.js → badge-D9NYZFWH.js} +8 -8
- package/dist/badge-DXKWztL-.cjs +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/banner-COlEFRuK.cjs +1 -0
- package/dist/{banner-CqgXXNRv.js → banner-CyYFLZXw.js} +30 -30
- package/dist/banner.cjs +1 -1
- package/dist/banner.js +1 -1
- package/dist/{breadcrumb-BPB6FOAt.js → breadcrumb-Czu2XwgU.js} +7 -7
- package/dist/{breadcrumb-CUJua1hE.cjs → breadcrumb-D6_IoicI.cjs} +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{button-nntae7sN.js → button-ANAPDrvs.js} +43 -33
- package/dist/button-Ny6OF8Un.cjs +1 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar-BUPsr0be.js +315 -0
- package/dist/calendar-Dd-Ud2zz.cjs +76 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{card-80y0WWWV.js → card-BC_4C3ns.js} +7 -7
- package/dist/{card-D57HaBr_.cjs → card-C88--zB4.cjs} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel-BfL7oy_q.cjs +1 -0
- package/dist/carousel-DuP0hvF-.js +174 -0
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{checkbox-CR6mntVh.js → checkbox-Bi0Kmuut.js} +1 -1
- package/dist/{checkbox-Cx5qbEn4.cjs → checkbox-M8DmWKiC.cjs} +1 -1
- package/dist/checkbox-group-CQMEJnhD.js +86 -0
- package/dist/checkbox-group-KBwPhjmW.cjs +1 -0
- package/dist/checkbox-group.cjs +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-BXOzo8zX.js → code-block-C9u140Ob.js} +404 -383
- package/dist/code-block-_dFw7Su1.cjs +2 -0
- package/dist/code-block.cjs +1 -1
- package/dist/code-block.js +1 -1
- package/dist/command-C3oAkkaa.cjs +9 -0
- package/dist/command-D1iTMmyh.js +132 -0
- package/dist/command.cjs +1 -1
- package/dist/command.js +1 -1
- package/dist/components/accordion.d.ts +4 -3
- package/dist/components/aspect-ratio.d.ts +1 -1
- package/dist/components/avatar.d.ts +11 -4
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/banner.d.ts +1 -1
- package/dist/components/breadcrumb.d.ts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/card.d.ts +2 -2
- package/dist/components/carousel.d.ts +11 -3
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/collapsible.d.ts +7 -3
- package/dist/components/command.d.ts +18 -5
- package/dist/components/context-menu.d.ts +16 -6
- package/dist/components/credit-card-input.d.ts +3 -3
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/datetime-picker.d.ts +1 -1
- package/dist/components/decimal-input.d.ts +1 -1
- package/dist/components/dialog.d.ts +8 -4
- package/dist/components/drawer.d.ts +28 -12
- package/dist/components/dropdown-menu.d.ts +17 -6
- package/dist/components/fieldset.d.ts +2 -2
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/footer.d.ts +2 -0
- package/dist/components/form-label.d.ts +1 -0
- package/dist/components/header.d.ts +18 -1
- package/dist/components/hover-card.d.ts +2 -1
- package/dist/components/input-otp.d.ts +1 -1
- package/dist/components/menubar.d.ts +18 -8
- package/dist/components/multi-select.d.ts +3 -1
- package/dist/components/navigation-drawer.d.ts +4 -1
- package/dist/components/navigation-menu.d.ts +7 -6
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/pagination.d.ts +5 -5
- package/dist/components/phone-input.d.ts +1 -1
- package/dist/components/popover.d.ts +4 -0
- package/dist/components/progress.d.ts +4 -0
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/rich-text.d.ts +16 -2
- package/dist/components/scroll-area.d.ts +2 -2
- package/dist/components/search-input.d.ts +2 -2
- package/dist/components/segmented-control.d.ts +12 -0
- package/dist/components/select.d.ts +14 -4
- package/dist/components/separator.d.ts +3 -0
- package/dist/components/sheet.d.ts +9 -4
- package/dist/components/skeleton.d.ts +7 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/table.d.ts +14 -4
- package/dist/components/tabs.d.ts +3 -3
- package/dist/components/time-input.d.ts +8 -2
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toggle-group.d.ts +5 -4
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/tooltip.d.ts +2 -1
- package/dist/components/typography.d.ts +37 -0
- package/dist/compose-refs-BjfKuXXE.cjs +1 -0
- package/dist/compose-refs-E-AHfjCW.js +13 -0
- package/dist/{context-menu-Da5JJFgE.js → context-menu-BFvleIE-.js} +13 -13
- package/dist/context-menu-BZobMAds.cjs +1 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/credit-card-input-CUqA9CX3.cjs +1 -0
- package/dist/{credit-card-input-YutN_krQ.js → credit-card-input-DN-8vaFj.js} +130 -85
- package/dist/credit-card-input.cjs +1 -1
- package/dist/credit-card-input.js +1 -1
- package/dist/date-picker-CISIHHyU.js +55 -0
- package/dist/date-picker-K5GcZ_Li.cjs +1 -0
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/datetime-picker-CP_fhCA-.cjs +1 -0
- package/dist/datetime-picker-zTrUj815.js +67 -0
- package/dist/datetime-picker.cjs +1 -1
- package/dist/datetime-picker.js +1 -1
- package/dist/decimal-input-BLmifKF2.cjs +1 -0
- package/dist/{decimal-input-BAGAfAp7.js → decimal-input-yTk35W_5.js} +41 -41
- package/dist/decimal-input.cjs +1 -1
- package/dist/decimal-input.js +1 -1
- package/dist/dialog-B8uNe51F.cjs +1 -0
- package/dist/dialog-BVe6-J_z.js +59 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/drawer-91wrQ_5e.js +171 -0
- package/dist/drawer-DP-v9j83.cjs +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.js +2 -3
- package/dist/dropdown-menu-BtU3Yhar.cjs +1 -0
- package/dist/{dropdown-menu-BRhqJFtK.js → dropdown-menu-CA2MpoMo.js} +24 -24
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/email-input-DFI4h_KN.cjs +1 -0
- package/dist/email-input-pX0hlYV3.js +29 -0
- package/dist/email-input.cjs +1 -1
- package/dist/email-input.js +1 -1
- package/dist/file-input-B_aBgxmT.js +189 -0
- package/dist/file-input-D62FEnKg.cjs +1 -0
- package/dist/file-input.cjs +1 -1
- package/dist/file-input.js +1 -1
- package/dist/footer-B3KUIwXW.js +137 -0
- package/dist/footer-DB0_-IwN.cjs +1 -0
- package/dist/footer.cjs +1 -1
- package/dist/footer.js +1 -1
- package/dist/form-label-Cqs0By3P.cjs +1 -0
- package/dist/form-label-DTxFDQDK.js +49 -0
- package/dist/form-label.cjs +1 -1
- package/dist/form-label.js +1 -1
- package/dist/header-BqNWcy93.js +101 -0
- package/dist/header-Dg6y6pKR.cjs +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hover-card-BN7Ew2Y1.js +16 -0
- package/dist/hover-card-Dft-08Ha.cjs +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +789 -461
- package/dist/inject-stylesheet-BK5pOlkI.js +9 -0
- package/dist/inject-stylesheet-j6SkUo-d.cjs +1 -0
- package/dist/input-BrGJn-D9.cjs +1 -0
- package/dist/{input-CFzV2DMn.js → input-Cccufiqn.js} +21 -21
- package/dist/input-otp-BWPRKJ4m.js +95 -0
- package/dist/input-otp-BYEy4XaO.cjs +1 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/media-DBscX0uU.js +158 -0
- package/dist/media-YR5gOT0c.cjs +1 -0
- package/dist/media.cjs +1 -1
- package/dist/media.js +1 -1
- package/dist/menubar-B82Hp9r0.cjs +1 -0
- package/dist/{menubar-Du-kLZh6.js → menubar-DMZxna8-.js} +22 -22
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +1 -1
- package/dist/multi-select-BM4Zxa3I.js +76 -0
- package/dist/multi-select-FXNBRmwx.cjs +1 -0
- package/dist/multi-select.cjs +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/navigation-drawer-C99JVOby.js +171 -0
- package/dist/navigation-drawer-CVxS6X5J.cjs +1 -0
- package/dist/navigation-drawer.cjs +1 -1
- package/dist/navigation-drawer.js +1 -1
- package/dist/navigation-menu-BjA-PdMY.js +58 -0
- package/dist/navigation-menu-BtpLfxHN.cjs +5 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/number-input-Bc7jUsu-.cjs +1 -0
- package/dist/number-input-vICbRc2y.js +66 -0
- package/dist/number-input.cjs +1 -1
- package/dist/number-input.js +1 -1
- package/dist/pagination-CVZk8eCM.cjs +1 -0
- package/dist/pagination-DhGezNeG.js +133 -0
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-input-B9V45d3Q.js +90 -0
- package/dist/password-input-BwnlHPbX.cjs +1 -0
- package/dist/password-input.cjs +1 -1
- package/dist/password-input.js +1 -1
- package/dist/phone-input-COi21JIl.js +51 -0
- package/dist/phone-input-DXkhw_4A.cjs +1 -0
- package/dist/phone-input.cjs +1 -1
- package/dist/phone-input.js +1 -1
- package/dist/{popover-DQgrg789.js → popover-B_Kfx06V.js} +15 -15
- package/dist/popover-DJ5e6lwh.cjs +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/providers/create-theme.d.ts +2 -2
- package/dist/providers/eluan-provider.d.ts +18 -4
- package/dist/radio-group-C--1neiq.cjs +1 -0
- package/dist/radio-group-CNMPZx_2.js +12 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-CuJJFeUV.js +198 -0
- package/dist/rich-text-uAtn5CZk.cjs +73 -0
- package/dist/rich-text.cjs +1 -1
- package/dist/rich-text.js +1 -1
- package/dist/scroll-area-C8W9ZfZU.cjs +1 -0
- package/dist/{scroll-area-CEjpWCN2.js → scroll-area-D5PVICPR.js} +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/search-input-BRf6r110.cjs +1 -0
- package/dist/search-input-DrO3-p4h.js +194 -0
- package/dist/search-input.cjs +1 -1
- package/dist/search-input.js +1 -1
- package/dist/{select-DikwRWF5.js → select-3GU6G3YF.js} +37 -37
- package/dist/select-CGLm4HTg.cjs +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{separator-DWK3Xd7q.cjs → separator-CBuhe8MC.cjs} +1 -1
- package/dist/{separator-DISe3E9K.js → separator-DSnHDXVK.js} +5 -3
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-BX5CahuG.cjs +1 -0
- package/dist/{sheet-BQy30PDl.js → sheet-C8A5eehq.js} +9 -9
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/skeleton-CkBeschm.cjs +1 -0
- package/dist/skeleton-vHQIKF2a.js +41 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider-CZQBAXup.js +16 -0
- package/dist/slider-DdEOapYP.cjs +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-BidrZmnV.js → spinner-Bw6sQrNk.js} +2 -2
- package/dist/spinner-Cp218GAN.cjs +1 -0
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.js +1 -1
- package/dist/{stepper-C7g_AewR.js → stepper-BtlKiHtd.js} +27 -27
- package/dist/stepper-D5nDwJUz.cjs +1 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +376 -297
- package/dist/switch-C7EBLT5H.js +9 -0
- package/dist/{switch-Bi_OIsAH.cjs → switch-KzBijHMJ.cjs} +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs-Bpm29QTI.cjs +1 -0
- package/dist/{tabs-D-T4lTOx.js → tabs-DNkc9RO6.js} +4 -4
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/time-input-BPoFvoeM.js +195 -0
- package/dist/time-input-DR2snTgB.cjs +1 -0
- package/dist/time-input.cjs +1 -1
- package/dist/time-input.js +1 -1
- package/dist/{toggle-BUmAdWrJ.cjs → toggle-Bvh1v32T.cjs} +1 -1
- package/dist/{toggle--M_Xcph3.js → toggle-Dv1VZ5Le.js} +15 -15
- package/dist/{toggle-group-CSWEdWiB.js → toggle-group-DE8BPZih.js} +21 -28
- package/dist/toggle-group-SyHMwO90.cjs +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tree-view-B6pPS7dg.cjs +1 -0
- package/dist/tree-view-BE4eOyRw.js +92 -0
- package/dist/tree-view.cjs +1 -1
- package/dist/tree-view.js +1 -1
- package/dist/use-controllable-state-COlF-tdU.js +23 -0
- package/dist/use-controllable-state-D1HvlFwL.cjs +1 -0
- package/dist/utils/compose-refs.d.ts +15 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/inject-stylesheet.d.ts +7 -0
- package/dist/utils/use-controllable-state.d.ts +19 -0
- package/package.json +13 -15
- package/dist/accordion-CXia5iw_.js +0 -28
- package/dist/action-popover-Cbn19EbH.cjs +0 -1
- package/dist/action-popover-eGNn1j7S.js +0 -22
- package/dist/avatar-BsiJB5zR.js +0 -134
- package/dist/avatar-Caw6wXQN.cjs +0 -1
- package/dist/badge-CnJpMnon.cjs +0 -1
- package/dist/banner-D64jTKV8.cjs +0 -1
- package/dist/button-CT6_HUIx.cjs +0 -1
- package/dist/calendar-BzinprHi.js +0 -272
- package/dist/calendar-DyIe52PQ.cjs +0 -66
- package/dist/carousel-D8FSc_tM.cjs +0 -1
- package/dist/carousel-UUulZiGR.js +0 -125
- package/dist/checkbox-group-B-mimaCX.js +0 -81
- package/dist/checkbox-group-iKPfMVTu.cjs +0 -1
- package/dist/code-block-CH0gswm8.cjs +0 -2
- package/dist/command-BWY863DY.cjs +0 -1
- package/dist/command-ButF6joJ.js +0 -99
- package/dist/components/header-navigation.d.ts +0 -18
- package/dist/components/timeline.d.ts +0 -34
- package/dist/context-menu-DQh1EvFX.cjs +0 -1
- package/dist/credit-card-input-BRv7r_Z_.cjs +0 -1
- package/dist/date-picker-DYsE7_v0.cjs +0 -1
- package/dist/date-picker-ioqGlU1x.js +0 -55
- package/dist/datetime-picker-BGa-aOfq.cjs +0 -1
- package/dist/datetime-picker-CRVKsoKc.js +0 -98
- package/dist/decimal-input-CtAZp5ka.cjs +0 -1
- package/dist/dialog-DAY0non_.js +0 -59
- package/dist/dialog-DaO5_1FE.cjs +0 -1
- package/dist/drawer-ChIEo1Vx.js +0 -161
- package/dist/drawer-DMmAzv-6.cjs +0 -1
- package/dist/dropdown-menu-CxRQEecr.cjs +0 -1
- package/dist/email-input-CiqmwAYT.cjs +0 -1
- package/dist/email-input-ZRXJoKUn.js +0 -29
- package/dist/file-input-BGTrB0cs.cjs +0 -1
- package/dist/file-input-BLs5K_r2.js +0 -227
- package/dist/footer-OvNxNb2K.cjs +0 -1
- package/dist/footer-hjSI-aUh.js +0 -117
- package/dist/form-label-5f53LEry.cjs +0 -1
- package/dist/form-label-Yt_CRHVE.js +0 -42
- package/dist/header-navigation-Kx7h7lMv.cjs +0 -1
- package/dist/header-navigation-_klqI2OP.js +0 -145
- package/dist/header-navigation.cjs +0 -1
- package/dist/header-navigation.d.ts +0 -1
- package/dist/header-navigation.js +0 -5
- package/dist/hover-card-B1c-blFU.js +0 -15
- package/dist/hover-card-DIvfJrUP.cjs +0 -1
- package/dist/input-CtFmiB4z.cjs +0 -1
- package/dist/input-otp-DK9DLJkj.cjs +0 -1
- package/dist/input-otp-aX3qLlEW.js +0 -88
- package/dist/media-CNlM4uDT.cjs +0 -1
- package/dist/media-ChW2bsnq.js +0 -158
- package/dist/menubar-BYX0L59g.cjs +0 -1
- package/dist/multi-select-C3VuEz8X.js +0 -70
- package/dist/multi-select-_DYPhuhp.cjs +0 -1
- package/dist/navigation-drawer-D--FbZEd.js +0 -155
- package/dist/navigation-drawer-WGKTRBl_.cjs +0 -1
- package/dist/navigation-menu-Cp5Qt84b.cjs +0 -1
- package/dist/navigation-menu-yQHp8kq5.js +0 -49
- package/dist/number-input-BdkF_YEo.js +0 -66
- package/dist/number-input-emzdVMCg.cjs +0 -1
- package/dist/pagination-BiEchkN6.cjs +0 -1
- package/dist/pagination-CohVWKa8.js +0 -136
- package/dist/password-input-CnkiwWVo.cjs +0 -1
- package/dist/password-input-DCg5E__k.js +0 -86
- package/dist/phone-input-Brm07Ltw.cjs +0 -1
- package/dist/phone-input-DFq6toxM.js +0 -51
- package/dist/popover-5z1it-o9.cjs +0 -1
- package/dist/radio-group-DMocn_bO.cjs +0 -1
- package/dist/radio-group-dLbtpuHm.js +0 -12
- package/dist/rich-text-B6Ogqw5B.cjs +0 -73
- package/dist/rich-text-DjthjUyA.js +0 -192
- package/dist/scroll-area-DZbd7b5b.cjs +0 -1
- package/dist/search-input-Dme1Kg69.cjs +0 -1
- package/dist/search-input-Dy6kVsR6.js +0 -193
- package/dist/select-VTNCKmzK.cjs +0 -1
- package/dist/sheet-DSAi4Blo.cjs +0 -1
- package/dist/skeleton-BPOckSeF.js +0 -8
- package/dist/skeleton-yXCPli60.cjs +0 -1
- package/dist/slider-Bjxl7b91.cjs +0 -1
- package/dist/slider-DXZyL3ev.js +0 -16
- package/dist/spinner-_aMavekm.cjs +0 -1
- package/dist/stepper-BtepQViL.cjs +0 -1
- package/dist/switch-wMC6HqKA.js +0 -9
- package/dist/tabs-BLFvzL-o.cjs +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/time-input-Dhhuxwh1.cjs +0 -1
- package/dist/time-input-DpukiDy9.js +0 -148
- package/dist/timeline-1iqp4rUU.js +0 -215
- package/dist/timeline-Dpeps0L2.cjs +0 -1
- package/dist/timeline.cjs +0 -1
- package/dist/timeline.d.ts +0 -1
- package/dist/timeline.js +0 -16
- package/dist/toggle-group-CUL20lLE.cjs +0 -1
- package/dist/tree-view-BuhJmfCg.js +0 -84
- package/dist/tree-view-DsrzJV2W.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as m, jsxs as U } from "react/jsx-runtime";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
const
|
|
4
|
+
const O = {
|
|
5
5
|
USD: {
|
|
6
6
|
code: "USD",
|
|
7
7
|
symbol: "$",
|
|
@@ -73,65 +73,65 @@ function F(e, x, c, n) {
|
|
|
73
73
|
const t = e.toFixed(x).split(".");
|
|
74
74
|
return t[0] = t[0].replace(/\B(?=(\d{3})+(?!\d))/g, c), t.join(n);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Q(e, x, c) {
|
|
77
77
|
if (!e) return;
|
|
78
78
|
const n = e.replace(new RegExp(`\\${x}`, "g"), "").replace(c, "."), t = parseFloat(n);
|
|
79
79
|
return isNaN(t) ? void 0 : t;
|
|
80
80
|
}
|
|
81
81
|
const y = s.forwardRef(({
|
|
82
82
|
value: e,
|
|
83
|
-
|
|
83
|
+
onValueChange: x,
|
|
84
84
|
decimals: c = 2,
|
|
85
85
|
min: n,
|
|
86
86
|
max: t,
|
|
87
87
|
prefix: I,
|
|
88
88
|
suffix: W,
|
|
89
89
|
currency: N,
|
|
90
|
-
unit:
|
|
90
|
+
unit: p,
|
|
91
91
|
unitPosition: j = "prefix",
|
|
92
|
-
thousandsSeparator:
|
|
92
|
+
thousandsSeparator: d = ",",
|
|
93
93
|
decimalSeparator: f = ".",
|
|
94
94
|
allowNegative: z = !1,
|
|
95
95
|
disabled: B,
|
|
96
96
|
...E
|
|
97
97
|
}, $) => {
|
|
98
|
-
const
|
|
98
|
+
const o = N ? O[N] : void 0, a = (o == null ? void 0 : o.decimals) ?? c, h = I ?? ((o == null ? void 0 : o.symbol) && o.symbol), b = W ?? (p && j === "suffix" ? p : void 0), g = p && j === "prefix" ? p : void 0, [A, u] = s.useState(""), [D, q] = s.useState(!1);
|
|
99
99
|
s.useEffect(() => {
|
|
100
|
-
e !== void 0 && !D &&
|
|
101
|
-
}, [e, a,
|
|
102
|
-
const Y = (
|
|
103
|
-
let i =
|
|
104
|
-
const
|
|
105
|
-
i = i.replace(
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
i = i.replace(/-/g, ""),
|
|
100
|
+
e !== void 0 && !D && u(F(e, a, d, f));
|
|
101
|
+
}, [e, a, d, f, D]);
|
|
102
|
+
const Y = (M) => {
|
|
103
|
+
let i = M.target.value;
|
|
104
|
+
const S = z ? new RegExp(`[^0-9\\${f}-]`, "g") : new RegExp(`[^0-9\\${f}]`, "g");
|
|
105
|
+
i = i.replace(S, "");
|
|
106
|
+
const r = i.split(f);
|
|
107
|
+
if (r.length > 2 && (i = r[0] + f + r.slice(1).join("")), z) {
|
|
108
|
+
const l = i.startsWith("-");
|
|
109
|
+
i = i.replace(/-/g, ""), l && (i = "-" + i);
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
const P =
|
|
111
|
+
r.length === 2 && r[1].length > a && (i = r[0] + f + r[1].slice(0, a)), u(i);
|
|
112
|
+
const P = Q(i, d, f);
|
|
113
113
|
if (P !== void 0) {
|
|
114
|
-
let
|
|
115
|
-
n !== void 0 &&
|
|
114
|
+
let l = P;
|
|
115
|
+
n !== void 0 && l < n && (l = n), t !== void 0 && l > t && (l = t), x == null || x(l);
|
|
116
116
|
} else
|
|
117
117
|
x == null || x(void 0);
|
|
118
118
|
}, C = () => {
|
|
119
|
-
q(!0), e !== void 0 &&
|
|
119
|
+
q(!0), e !== void 0 && u(e.toString().replace(".", f));
|
|
120
120
|
}, J = () => {
|
|
121
|
-
q(!1), e !== void 0 &&
|
|
122
|
-
}, w = s.useRef(null), v = s.useRef(null), [K, L] = s.useState(0), [
|
|
121
|
+
q(!1), e !== void 0 && u(F(e, a, d, f));
|
|
122
|
+
}, w = s.useRef(null), v = s.useRef(null), [K, L] = s.useState(0), [G, H] = s.useState(0), k = !!(h || g), R = !!b;
|
|
123
123
|
return s.useEffect(() => {
|
|
124
124
|
w.current && L(w.current.offsetWidth);
|
|
125
125
|
}, [h, g]), s.useEffect(() => {
|
|
126
|
-
v.current &&
|
|
126
|
+
v.current && H(v.current.offsetWidth);
|
|
127
127
|
}, [b]), /* @__PURE__ */ U("div", { className: "x6s0dn4 x78zum5 x1n2onr6", children: [
|
|
128
128
|
k && /* @__PURE__ */ U("span", { ref: w, className: "x1uuraw0 x1eqnyfr x47corl x10l6tqk xuxw1ft x1pw0i0", children: [
|
|
129
129
|
h,
|
|
130
130
|
g
|
|
131
131
|
] }),
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ m("input", { type: "text", inputMode: "decimal", style: {
|
|
133
133
|
paddingLeft: k ? `calc(${K}px + var(--spacing-xl))` : void 0,
|
|
134
|
-
paddingRight: R ? `calc(${
|
|
134
|
+
paddingRight: R ? `calc(${G}px + var(--spacing-xl))` : void 0
|
|
135
135
|
}, ...{
|
|
136
136
|
0: {
|
|
137
137
|
className: "x1dyo0bm x1suburk x1brvnfc x1y0btm7 xmkeg23 x1sjp1m2 x78zum5 xpw0y0u x1eqnyfr x1h5pcsu xrtip4p x1hr2gdg xx6bhzk x1oy24xj xwwtwea xh8yej3 x1ha2oyl x113pfim x9hpe06 x13iak60 x9v5kkp x4xl6zf xvp245x x1qg2s8m x1s07b3s"
|
|
@@ -146,32 +146,32 @@ const y = s.forwardRef(({
|
|
|
146
146
|
className: "x1dyo0bm x1suburk x1brvnfc x1y0btm7 xmkeg23 x1sjp1m2 x78zum5 xpw0y0u x1eqnyfr x1h5pcsu xrtip4p x1hr2gdg xx6bhzk x1oy24xj xwwtwea xh8yej3 x1ha2oyl x113pfim x9hpe06 x13iak60 x9v5kkp x4xl6zf xvp245x x1qg2s8m x1s07b3s xnir7hg xwh9tth"
|
|
147
147
|
}
|
|
148
148
|
}[!k << 1 | !R << 0], ref: $, value: A, onChange: Y, onFocus: C, onBlur: J, disabled: B, ...E }),
|
|
149
|
-
R && /* @__PURE__ */
|
|
149
|
+
R && /* @__PURE__ */ m("span", { ref: v, className: "x1uuraw0 x1eqnyfr x47corl x10l6tqk xuxw1ft x1tf8o7u", children: b })
|
|
150
150
|
] });
|
|
151
151
|
});
|
|
152
152
|
y.displayName = "DecimalInput";
|
|
153
|
-
const
|
|
153
|
+
const T = s.forwardRef(({
|
|
154
154
|
currency: e,
|
|
155
155
|
...x
|
|
156
|
-
}, c) => /* @__PURE__ */
|
|
157
|
-
|
|
158
|
-
const
|
|
156
|
+
}, c) => /* @__PURE__ */ m(y, { ref: c, currency: e, ...x }));
|
|
157
|
+
T.displayName = "CurrencyInput";
|
|
158
|
+
const X = s.forwardRef(({
|
|
159
159
|
min: e = 0,
|
|
160
160
|
max: x = 100,
|
|
161
161
|
decimals: c = 1,
|
|
162
162
|
...n
|
|
163
|
-
}, t) => /* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
const
|
|
163
|
+
}, t) => /* @__PURE__ */ m(y, { ref: t, suffix: "%", min: e, max: x, decimals: c, ...n }));
|
|
164
|
+
X.displayName = "PercentageInput";
|
|
165
|
+
const Z = s.forwardRef(({
|
|
166
166
|
unit: e,
|
|
167
167
|
unitPosition: x = "suffix",
|
|
168
168
|
...c
|
|
169
|
-
}, n) => /* @__PURE__ */
|
|
170
|
-
|
|
169
|
+
}, n) => /* @__PURE__ */ m(y, { ref: n, unit: e, unitPosition: x, ...c }));
|
|
170
|
+
Z.displayName = "UnitInput";
|
|
171
171
|
export {
|
|
172
|
-
|
|
172
|
+
T as C,
|
|
173
173
|
y as D,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
X as P,
|
|
175
|
+
Z as U,
|
|
176
|
+
O as c
|
|
177
177
|
};
|
package/dist/decimal-input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./decimal-input-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./decimal-input-BLmifKF2.cjs");exports.CurrencyInput=e.CurrencyInput;exports.DecimalInput=e.DecimalInput;exports.PercentageInput=e.PercentageInput;exports.UnitInput=e.UnitInput;exports.currencies=e.currencies;
|
package/dist/decimal-input.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const i=require("react/jsx-runtime"),f=require("react"),p=require("@radix-ui/react-dialog"),D=require("lucide-react");function r(e){const x=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(x,l,o.get?o:{enumerable:!0,get:()=>e[l]})}}return x.default=e,Object.freeze(x)}const s=r(f),a=r(p),y=a.Root,j=a.Trigger,n=a.Portal,k=a.Close,t=s.forwardRef(({...e},x)=>i.jsx(a.Overlay,{ref:x,...e,className:"x4d4nk8 x10a8y8t x1us6l5c xixxii4 xa9119d"}));t.displayName=a.Overlay.displayName;const c=s.forwardRef(({children:e,layout:x="default",...l},o)=>i.jsxs(n,{children:[i.jsx(t,{}),i.jsxs(a.Content,{ref:o,...l,...{0:{className:"x1dyo0bm xsdfdjn x1y0btm7 xmkeg23 x9nsp9x xalsa2k xrvj5dj x1e094fc x1nrll8i x6ymgno xasx5ux xixxii4 xwa60dl x11lhmoz x13dflua x49ey7b xa9119d"},1:{className:"x1dyo0bm xsdfdjn x1y0btm7 xmkeg23 x9nsp9x xalsa2k xrvj5dj x1e094fc x1nrll8i x6ymgno xixxii4 xwa60dl x11lhmoz x13dflua x49ey7b xa9119d xb3r6kr x1717udv"}}[(x==="command")<<0],children:[e,x!=="command"&&i.jsxs(a.Close,{className:"xjbqb8w xc342km x1kcekj6 x1heor9g x1ks1olk x1717udv x10l6tqk x1tf8o7u x1aa4kt3 xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg x9hpe06 x13iak60 x9v5kkp x4xl6zf xaqnwrm xerqhm1 x17easvy",children:[i.jsx(D.X,{"aria-hidden":"true",className:"xkive58 x1vfp87d"}),i.jsx("span",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:"Close"})]})]})]}));c.displayName=a.Content.displayName;const d=({...e})=>i.jsx("div",{...e,className:"x78zum5 xdt5ytf x10ci2pi x2b8uid xgzz9xu"});d.displayName="DialogHeader";const m=({...e})=>i.jsx("div",{...e,className:"x78zum5 x3ieub6 x10ci2pi x2kc0e2 xl6ahjf"});m.displayName="DialogFooter";const g=s.forwardRef(({...e},x)=>i.jsx(a.Title,{ref:x,...e,className:"xylgur7 xc7cgfe x1s688f x12oo3zp xo5v014"}));g.displayName=a.Title.displayName;const u=s.forwardRef(({...e},x)=>i.jsx(a.Description,{ref:x,...e,className:"x1uuraw0 x1eqnyfr"}));u.displayName=a.Description.displayName;exports.Dialog=y;exports.DialogClose=k;exports.DialogContent=c;exports.DialogDescription=u;exports.DialogFooter=m;exports.DialogHeader=d;exports.DialogOverlay=t;exports.DialogPortal=n;exports.DialogTitle=g;exports.DialogTrigger=j;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import * as i from "react";
|
|
4
|
+
import * as x from "@radix-ui/react-dialog";
|
|
5
|
+
import { X as m } from "lucide-react";
|
|
6
|
+
const u = x.Root, N = x.Trigger, t = x.Portal, v = x.Close, o = i.forwardRef(({
|
|
7
|
+
...a
|
|
8
|
+
}, e) => /* @__PURE__ */ s(x.Overlay, { ref: e, ...a, className: "x4d4nk8 x10a8y8t x1us6l5c xixxii4 xa9119d" }));
|
|
9
|
+
o.displayName = x.Overlay.displayName;
|
|
10
|
+
const c = i.forwardRef(({
|
|
11
|
+
children: a,
|
|
12
|
+
layout: e = "default",
|
|
13
|
+
...r
|
|
14
|
+
}, d) => /* @__PURE__ */ l(t, { children: [
|
|
15
|
+
/* @__PURE__ */ s(o, {}),
|
|
16
|
+
/* @__PURE__ */ l(x.Content, { ref: d, ...r, ...{
|
|
17
|
+
0: {
|
|
18
|
+
className: "x1dyo0bm xsdfdjn x1y0btm7 xmkeg23 x9nsp9x xalsa2k xrvj5dj x1e094fc x1nrll8i x6ymgno xasx5ux xixxii4 xwa60dl x11lhmoz x13dflua x49ey7b xa9119d"
|
|
19
|
+
},
|
|
20
|
+
1: {
|
|
21
|
+
className: "x1dyo0bm xsdfdjn x1y0btm7 xmkeg23 x9nsp9x xalsa2k xrvj5dj x1e094fc x1nrll8i x6ymgno xixxii4 xwa60dl x11lhmoz x13dflua x49ey7b xa9119d xb3r6kr x1717udv"
|
|
22
|
+
}
|
|
23
|
+
}[(e === "command") << 0], children: [
|
|
24
|
+
a,
|
|
25
|
+
e !== "command" && /* @__PURE__ */ l(x.Close, { className: "xjbqb8w xc342km x1kcekj6 x1heor9g x1ks1olk x1717udv x10l6tqk x1tf8o7u x1aa4kt3 xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg x9hpe06 x13iak60 x9v5kkp x4xl6zf xaqnwrm xerqhm1 x17easvy", children: [
|
|
26
|
+
/* @__PURE__ */ s(m, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }),
|
|
27
|
+
/* @__PURE__ */ s("span", { className: "xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s", children: "Close" })
|
|
28
|
+
] })
|
|
29
|
+
] })
|
|
30
|
+
] }));
|
|
31
|
+
c.displayName = x.Content.displayName;
|
|
32
|
+
const n = ({
|
|
33
|
+
...a
|
|
34
|
+
}) => /* @__PURE__ */ s("div", { ...a, className: "x78zum5 xdt5ytf x10ci2pi x2b8uid xgzz9xu" });
|
|
35
|
+
n.displayName = "DialogHeader";
|
|
36
|
+
const f = ({
|
|
37
|
+
...a
|
|
38
|
+
}) => /* @__PURE__ */ s("div", { ...a, className: "x78zum5 x3ieub6 x10ci2pi x2kc0e2 xl6ahjf" });
|
|
39
|
+
f.displayName = "DialogFooter";
|
|
40
|
+
const p = i.forwardRef(({
|
|
41
|
+
...a
|
|
42
|
+
}, e) => /* @__PURE__ */ s(x.Title, { ref: e, ...a, className: "xylgur7 xc7cgfe x1s688f x12oo3zp xo5v014" }));
|
|
43
|
+
p.displayName = x.Title.displayName;
|
|
44
|
+
const g = i.forwardRef(({
|
|
45
|
+
...a
|
|
46
|
+
}, e) => /* @__PURE__ */ s(x.Description, { ref: e, ...a, className: "x1uuraw0 x1eqnyfr" }));
|
|
47
|
+
g.displayName = x.Description.displayName;
|
|
48
|
+
export {
|
|
49
|
+
u as D,
|
|
50
|
+
v as a,
|
|
51
|
+
c as b,
|
|
52
|
+
g as c,
|
|
53
|
+
f as d,
|
|
54
|
+
n as e,
|
|
55
|
+
o as f,
|
|
56
|
+
t as g,
|
|
57
|
+
p as h,
|
|
58
|
+
N as i
|
|
59
|
+
};
|
package/dist/dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dialog-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dialog-B8uNe51F.cjs");exports.Dialog=o.Dialog;exports.DialogClose=o.DialogClose;exports.DialogContent=o.DialogContent;exports.DialogDescription=o.DialogDescription;exports.DialogFooter=o.DialogFooter;exports.DialogHeader=o.DialogHeader;exports.DialogOverlay=o.DialogOverlay;exports.DialogPortal=o.DialogPortal;exports.DialogTitle=o.DialogTitle;exports.DialogTrigger=o.DialogTrigger;
|
package/dist/dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { D as i, a as l, b as e, c as g, d as s, e as D, f as r, g as t, h as n, i as c } from "./dialog-
|
|
2
|
+
import { D as i, a as l, b as e, c as g, d as s, e as D, f as r, g as t, h as n, i as c } from "./dialog-BVe6-J_z.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Dialog,
|
|
5
5
|
l as DialogClose,
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { Slot as D } from "@radix-ui/react-slot";
|
|
5
|
+
import * as k from "@stylexjs/stylex";
|
|
6
|
+
import { u as b } from "./use-controllable-state-COlF-tdU.js";
|
|
7
|
+
const g = n.createContext(void 0);
|
|
8
|
+
function m() {
|
|
9
|
+
const e = n.useContext(g);
|
|
10
|
+
if (!e)
|
|
11
|
+
throw new Error("Drawer components must be used within a Drawer");
|
|
12
|
+
return e;
|
|
13
|
+
}
|
|
14
|
+
const l = {
|
|
15
|
+
panel: {
|
|
16
|
+
kWkggS: "x1dyo0bm",
|
|
17
|
+
kVAM5u: "xsdfdjn",
|
|
18
|
+
ksu8eU: "x1y0btm7",
|
|
19
|
+
kEafiO: "x972fbf",
|
|
20
|
+
kt9PQ7: "x1qhh985",
|
|
21
|
+
kmuXW: "x2lah0s",
|
|
22
|
+
kZKoxP: "x5yr21d",
|
|
23
|
+
kVQacm: "xb3r6kr",
|
|
24
|
+
kIyJzY: "x1d8287x",
|
|
25
|
+
k1ekBW: "xxrbq2n",
|
|
26
|
+
kAMwcw: "xwwtwea",
|
|
27
|
+
$$css: !0
|
|
28
|
+
},
|
|
29
|
+
panelLeft: {
|
|
30
|
+
kZ1KPB: "xyj58a3",
|
|
31
|
+
kWqL5O: "xs1s249",
|
|
32
|
+
kayTVb: "x1clqncf",
|
|
33
|
+
$$css: !0
|
|
34
|
+
},
|
|
35
|
+
panelRight: {
|
|
36
|
+
kZ1KPB: "xe0pwq",
|
|
37
|
+
kWqL5O: "xgfja2r",
|
|
38
|
+
kayTVb: "x9ek82g",
|
|
39
|
+
$$css: !0
|
|
40
|
+
},
|
|
41
|
+
panelClosed: {
|
|
42
|
+
kZ1KPB: "xyj58a3",
|
|
43
|
+
kWqL5O: "xgfja2r",
|
|
44
|
+
kzqmXN: "xnalus7",
|
|
45
|
+
$$css: !0
|
|
46
|
+
},
|
|
47
|
+
inner: {
|
|
48
|
+
k1xSpc: "x78zum5",
|
|
49
|
+
kXwgrk: "xdt5ytf",
|
|
50
|
+
kZKoxP: "x5yr21d",
|
|
51
|
+
$$css: !0
|
|
52
|
+
},
|
|
53
|
+
innerClosed: {
|
|
54
|
+
k33iCy: "xlshs6z",
|
|
55
|
+
$$css: !0
|
|
56
|
+
}
|
|
57
|
+
}, h = {
|
|
58
|
+
width: (e) => [{
|
|
59
|
+
kzqmXN: e != null ? "x5lhr3w" : e,
|
|
60
|
+
$$css: !0
|
|
61
|
+
}, {
|
|
62
|
+
"--x-width": ((r) => typeof r == "number" ? r + "px" : r ?? void 0)(e)
|
|
63
|
+
}]
|
|
64
|
+
};
|
|
65
|
+
function N(e) {
|
|
66
|
+
return e == null ? "320px" : typeof e == "number" ? `${e}px` : e;
|
|
67
|
+
}
|
|
68
|
+
function T({
|
|
69
|
+
children: e,
|
|
70
|
+
open: r,
|
|
71
|
+
defaultOpen: c = !1,
|
|
72
|
+
onOpenChange: u
|
|
73
|
+
}) {
|
|
74
|
+
const [s, t] = b({
|
|
75
|
+
value: r,
|
|
76
|
+
defaultValue: c,
|
|
77
|
+
onChange: u
|
|
78
|
+
}), i = n.useMemo(() => ({
|
|
79
|
+
open: s,
|
|
80
|
+
onOpenChange: t
|
|
81
|
+
}), [s, t]);
|
|
82
|
+
return /* @__PURE__ */ o(g.Provider, { value: i, children: e });
|
|
83
|
+
}
|
|
84
|
+
const C = n.forwardRef(({
|
|
85
|
+
...e
|
|
86
|
+
}, r) => /* @__PURE__ */ o("div", { ref: r, ...e, className: "x78zum5 x1q0g3np x5yr21d xh8yej3" }));
|
|
87
|
+
C.displayName = "DrawerLayout";
|
|
88
|
+
const $ = n.forwardRef(({
|
|
89
|
+
asChild: e = !1,
|
|
90
|
+
onClick: r,
|
|
91
|
+
...c
|
|
92
|
+
}, u) => {
|
|
93
|
+
const {
|
|
94
|
+
open: s,
|
|
95
|
+
onOpenChange: t
|
|
96
|
+
} = m();
|
|
97
|
+
return /* @__PURE__ */ o(e ? D : "button", { ref: u, type: e ? void 0 : "button", "aria-expanded": s, onClick: (f) => {
|
|
98
|
+
t(!s), r == null || r(f);
|
|
99
|
+
}, ...c });
|
|
100
|
+
});
|
|
101
|
+
$.displayName = "DrawerTrigger";
|
|
102
|
+
const R = n.forwardRef(({
|
|
103
|
+
asChild: e = !1,
|
|
104
|
+
onClick: r,
|
|
105
|
+
...c
|
|
106
|
+
}, u) => {
|
|
107
|
+
const {
|
|
108
|
+
onOpenChange: s
|
|
109
|
+
} = m();
|
|
110
|
+
return /* @__PURE__ */ o(e ? D : "button", { ref: u, type: e ? void 0 : "button", onClick: (i) => {
|
|
111
|
+
s(!1), r == null || r(i);
|
|
112
|
+
}, ...c });
|
|
113
|
+
});
|
|
114
|
+
R.displayName = "DrawerClose";
|
|
115
|
+
const q = n.forwardRef(({
|
|
116
|
+
side: e = "right",
|
|
117
|
+
width: r,
|
|
118
|
+
children: c,
|
|
119
|
+
...u
|
|
120
|
+
}, s) => {
|
|
121
|
+
const {
|
|
122
|
+
open: t,
|
|
123
|
+
onOpenChange: i
|
|
124
|
+
} = m(), f = N(r), p = n.useRef(null), v = n.useCallback((a) => {
|
|
125
|
+
p.current = a, typeof s == "function" ? s(a) : s && (s.current = a);
|
|
126
|
+
}, [s]), w = n.useRef(null), x = n.useRef(t);
|
|
127
|
+
return n.useEffect(() => {
|
|
128
|
+
var a, d;
|
|
129
|
+
if (t && !x.current)
|
|
130
|
+
w.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
131
|
+
else if (!t && x.current) {
|
|
132
|
+
const y = document.activeElement;
|
|
133
|
+
p.current && y instanceof Node && p.current.contains(y) && ((d = (a = w.current) == null ? void 0 : a.focus) == null || d.call(a));
|
|
134
|
+
}
|
|
135
|
+
x.current = t;
|
|
136
|
+
}, [t]), n.useEffect(() => {
|
|
137
|
+
if (!t) return;
|
|
138
|
+
const a = (d) => {
|
|
139
|
+
d.key === "Escape" && i(!1);
|
|
140
|
+
};
|
|
141
|
+
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
142
|
+
}, [t, i]), /* @__PURE__ */ o("div", { ref: v, "data-state": t ? "open" : "closed", "aria-hidden": !t, ...u, ...k.props(l.panel, e === "left" ? l.panelLeft : l.panelRight, t ? h.width(f) : l.panelClosed), children: /* @__PURE__ */ o("div", { ...k.props(l.inner, h.width(f), !t && l.innerClosed), children: c }) });
|
|
143
|
+
});
|
|
144
|
+
q.displayName = "DrawerContent";
|
|
145
|
+
const E = ({
|
|
146
|
+
...e
|
|
147
|
+
}) => /* @__PURE__ */ o("div", { ...e, className: "x78zum5 xdt5ytf x10ci2pi x11omchh" });
|
|
148
|
+
E.displayName = "DrawerHeader";
|
|
149
|
+
const L = ({
|
|
150
|
+
...e
|
|
151
|
+
}) => /* @__PURE__ */ o("div", { ...e, className: "x78zum5 xdt5ytf x10ci2pi xr1yuqi x11omchh" });
|
|
152
|
+
L.displayName = "DrawerFooter";
|
|
153
|
+
const O = n.forwardRef(({
|
|
154
|
+
...e
|
|
155
|
+
}, r) => /* @__PURE__ */ o("h2", { ref: r, ...e, className: "xa18zv3 xylgur7 xc7cgfe x1s688f" }));
|
|
156
|
+
O.displayName = "DrawerTitle";
|
|
157
|
+
const z = n.forwardRef(({
|
|
158
|
+
...e
|
|
159
|
+
}, r) => /* @__PURE__ */ o("p", { ref: r, ...e, className: "xwa5xuj x1eqnyfr" }));
|
|
160
|
+
z.displayName = "DrawerDescription";
|
|
161
|
+
export {
|
|
162
|
+
T as D,
|
|
163
|
+
R as a,
|
|
164
|
+
q as b,
|
|
165
|
+
z as c,
|
|
166
|
+
L as d,
|
|
167
|
+
E as e,
|
|
168
|
+
C as f,
|
|
169
|
+
O as g,
|
|
170
|
+
$ as h
|
|
171
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const u=require("react/jsx-runtime"),L=require("react"),g=require("@radix-ui/react-slot"),z=require("@stylexjs/stylex"),S=require("./use-controllable-state-D1HvlFwL.cjs");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=h(L),D=h(z),b=n.createContext(void 0);function w(){const e=n.useContext(b);if(!e)throw new Error("Drawer components must be used within a Drawer");return e}const l={panel:{kWkggS:"x1dyo0bm",kVAM5u:"xsdfdjn",ksu8eU:"x1y0btm7",kEafiO:"x972fbf",kt9PQ7:"x1qhh985",kmuXW:"x2lah0s",kZKoxP:"x5yr21d",kVQacm:"xb3r6kr",kIyJzY:"x1d8287x",k1ekBW:"xxrbq2n",kAMwcw:"xwwtwea",$$css:!0},panelLeft:{kZ1KPB:"xyj58a3",kWqL5O:"xs1s249",kayTVb:"x1clqncf",$$css:!0},panelRight:{kZ1KPB:"xe0pwq",kWqL5O:"xgfja2r",kayTVb:"x9ek82g",$$css:!0},panelClosed:{kZ1KPB:"xyj58a3",kWqL5O:"xgfja2r",kzqmXN:"xnalus7",$$css:!0},inner:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kZKoxP:"x5yr21d",$$css:!0},innerClosed:{k33iCy:"xlshs6z",$$css:!0}},k={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function T(e){return e==null?"320px":typeof e=="number"?`${e}px`:e}function P({children:e,open:t,defaultOpen:a=!1,onOpenChange:c}){const[s,r]=S.useControllableState({value:t,defaultValue:a,onChange:c}),i=n.useMemo(()=>({open:s,onOpenChange:r}),[s,r]);return u.jsx(b.Provider,{value:i,children:e})}const j=n.forwardRef(({...e},t)=>u.jsx("div",{ref:t,...e,className:"x78zum5 x1q0g3np x5yr21d xh8yej3"}));j.displayName="DrawerLayout";const v=n.forwardRef(({asChild:e=!1,onClick:t,...a},c)=>{const{open:s,onOpenChange:r}=w(),i=e?g.Slot:"button";return u.jsx(i,{ref:c,type:e?void 0:"button","aria-expanded":s,onClick:x=>{r(!s),t==null||t(x)},...a})});v.displayName="DrawerTrigger";const q=n.forwardRef(({asChild:e=!1,onClick:t,...a},c)=>{const{onOpenChange:s}=w(),r=e?g.Slot:"button";return u.jsx(r,{ref:c,type:e?void 0:"button",onClick:i=>{s(!1),t==null||t(i)},...a})});q.displayName="DrawerClose";const N=n.forwardRef(({side:e="right",width:t,children:a,...c},s)=>{const{open:r,onOpenChange:i}=w(),x=T(t),f=n.useRef(null),E=n.useCallback(o=>{f.current=o,typeof s=="function"?s(o):s&&(s.current=o)},[s]),m=n.useRef(null),p=n.useRef(r);return n.useEffect(()=>{var o,d;if(r&&!p.current)m.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else if(!r&&p.current){const y=document.activeElement;f.current&&y instanceof Node&&f.current.contains(y)&&((d=(o=m.current)==null?void 0:o.focus)==null||d.call(o))}p.current=r},[r]),n.useEffect(()=>{if(!r)return;const o=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[r,i]),u.jsx("div",{ref:E,"data-state":r?"open":"closed","aria-hidden":!r,...c,...D.props(l.panel,e==="left"?l.panelLeft:l.panelRight,r?k.width(x):l.panelClosed),children:u.jsx("div",{...D.props(l.inner,k.width(x),!r&&l.innerClosed),children:a})})});N.displayName="DrawerContent";const C=({...e})=>u.jsx("div",{...e,className:"x78zum5 xdt5ytf x10ci2pi x11omchh"});C.displayName="DrawerHeader";const R=({...e})=>u.jsx("div",{...e,className:"x78zum5 xdt5ytf x10ci2pi xr1yuqi x11omchh"});R.displayName="DrawerFooter";const O=n.forwardRef(({...e},t)=>u.jsx("h2",{ref:t,...e,className:"xa18zv3 xylgur7 xc7cgfe x1s688f"}));O.displayName="DrawerTitle";const $=n.forwardRef(({...e},t)=>u.jsx("p",{ref:t,...e,className:"xwa5xuj x1eqnyfr"}));$.displayName="DrawerDescription";exports.Drawer=P;exports.DrawerClose=q;exports.DrawerContent=N;exports.DrawerDescription=$;exports.DrawerFooter=R;exports.DrawerHeader=C;exports.DrawerLayout=j;exports.DrawerTitle=O;exports.DrawerTrigger=v;
|
package/dist/drawer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./drawer-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./drawer-DP-v9j83.cjs");exports.Drawer=r.Drawer;exports.DrawerClose=r.DrawerClose;exports.DrawerContent=r.DrawerContent;exports.DrawerDescription=r.DrawerDescription;exports.DrawerFooter=r.DrawerFooter;exports.DrawerHeader=r.DrawerHeader;exports.DrawerLayout=r.DrawerLayout;exports.DrawerTitle=r.DrawerTitle;exports.DrawerTrigger=r.DrawerTrigger;
|
package/dist/drawer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { D as e, a as s, b as D, c as w, d as o, e as t, f as i, g as
|
|
2
|
+
import { D as e, a as s, b as D, c as w, d as o, e as t, f as i, g as n, h as c } from "./drawer-91wrQ_5e.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Drawer,
|
|
5
5
|
s as DrawerClose,
|
|
@@ -7,8 +7,7 @@ export {
|
|
|
7
7
|
w as DrawerDescription,
|
|
8
8
|
o as DrawerFooter,
|
|
9
9
|
t as DrawerHeader,
|
|
10
|
-
i as
|
|
11
|
-
l as DrawerPortal,
|
|
10
|
+
i as DrawerLayout,
|
|
12
11
|
n as DrawerTitle,
|
|
13
12
|
c as DrawerTrigger
|
|
14
13
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const n=require("react/jsx-runtime"),k=require("react"),f=require("@radix-ui/react-dropdown-menu"),s=require("lucide-react");function d(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const a=d(k),x=d(f),y=x.Root,g=x.Trigger,j=x.Group,q=x.Portal,h=x.Sub,N=x.RadioGroup,u=a.forwardRef(({inset:e,children:o,...r},t)=>n.jsxs(x.SubTrigger,{ref:t,...r,...{0:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x10ci2pi xerqhm1"},1:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x10ci2pi xerqhm1 x1lvzo9m"}}[!!e<<0],children:[o,n.jsx(s.ChevronRight,{"aria-hidden":"true",className:"x8x9d4c"})]}));u.displayName=x.SubTrigger.displayName;const m=a.forwardRef(({...e},o)=>n.jsx(x.SubContent,{ref:o,...e,className:"x1dyo0bm xsdfdjn x1brvnfc x1y0btm7 xmkeg23 xa18zv3 xzhy1st xb3r6kr x2k5h2x x1vl8k5d xa9119d x14lkljl xn6uytu xmf2o4l x1jd37z9 xalsa2k"}));m.displayName=x.SubContent.displayName;const i=a.forwardRef(({sideOffset:e=4,...o},r)=>n.jsx(x.Portal,{children:n.jsx(x.Content,{ref:r,sideOffset:e,...o,className:"x1dyo0bm xsdfdjn x1brvnfc x1y0btm7 xmkeg23 x1g5awrf xa18zv3 xzhy1st xb3r6kr x2k5h2x x1vl8k5d xa9119d x14lkljl xn6uytu xmf2o4l x1jd37z9"})}));i.displayName=x.Content.displayName;const l=a.forwardRef(({inset:e,tone:o="default",...r},t)=>n.jsx(x.Item,{ref:t,...r,...{0:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v xpfqfdi xx6bhzk xs2xxs2 xwwtwea"},2:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1xttv3l x14e3mrv x7gqb9v xpfqfdi xx6bhzk xs2xxs2 xwwtwea x2lv0vp xo7ktl4"},1:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v xpfqfdi xx6bhzk xs2xxs2 xwwtwea x1lvzo9m"},3:{className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1xttv3l x14e3mrv x7gqb9v xpfqfdi xx6bhzk xs2xxs2 xwwtwea x2lv0vp xo7ktl4 x1lvzo9m"}}[(o==="destructive")<<1|!!e<<0]}));l.displayName=x.Item.displayName;const p=a.forwardRef(({children:e,checked:o,...r},t)=>n.jsxs(x.CheckboxItem,{ref:t,checked:o,...r,className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x1qughib xx6bhzk xs2xxs2 xwwtwea x3wwfir xsr13ir",children:[e,n.jsx("span",{"aria-hidden":!0,...{0:{className:"x6s0dn4 xjbqb8w x1suburk x13pslko x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k xx6bhzk x1okb17s xwwtwea x1vfp87d"},1:{className:"x6s0dn4 x13pslko x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k xx6bhzk x1okb17s xwwtwea x1vfp87d x11tn5dx xcaibub x1vmo3ik"}}[(o===!0)<<0],children:o===!0&&n.jsx(s.Check,{"aria-hidden":"true",className:"x1vmo3ik xwvkxvr xosxg9m",strokeWidth:3})})]}));p.displayName=x.CheckboxItem.displayName;const c=a.forwardRef(({children:e,...o},r)=>n.jsxs(x.RadioItem,{ref:r,...o,className:"x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x1qughib x3wwfir",children:[e,n.jsx("span",{"aria-hidden":!0,className:"x6s0dn4 xjbqb8w x1suburk xvowokw x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k x1n2onr6 x1vfp87d",children:n.jsx(x.ItemIndicator,{children:n.jsx("span",{className:"x6s0dn4 x11tn5dx xcaibub xvowokw x1y0btm7 xmkeg23 x9f619 x78zum5 xkive58 xl56j7k x1nrll8i x10l6tqk xwa60dl x11lhmoz x1vfp87d",children:n.jsx("span",{className:"x1gu80qv xvowokw x5pwsuf x15uyvzi"})})})})]}));c.displayName=x.RadioItem.displayName;const w=a.forwardRef(({inset:e,...o},r)=>n.jsx(x.Label,{ref:r,...o,...{0:{className:"x1eqnyfr x1s688f xrtip4p x1wu0y3b"},1:{className:"x1eqnyfr x1s688f xrtip4p x1wu0y3b x1lvzo9m"}}[!!e<<0]}));w.displayName=x.Label.displayName;const b=a.forwardRef(({...e},o)=>n.jsx(x.Separator,{ref:o,...e,className:"x1cqd74s xjm9jq1 x16jkv7s xg8r2gc"}));b.displayName=x.Separator.displayName;const v=({...e})=>n.jsx("span",{...e,className:"x51wmvv x1dor1uw x8x9d4c x197sbye"});v.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=p;exports.DropdownMenuContent=i;exports.DropdownMenuGroup=j;exports.DropdownMenuItem=l;exports.DropdownMenuLabel=w;exports.DropdownMenuPortal=q;exports.DropdownMenuRadioGroup=N;exports.DropdownMenuRadioItem=c;exports.DropdownMenuSeparator=b;exports.DropdownMenuShortcut=v;exports.DropdownMenuSub=h;exports.DropdownMenuSubContent=m;exports.DropdownMenuSubTrigger=u;exports.DropdownMenuTrigger=g;
|
|
@@ -3,7 +3,7 @@ import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
import * as x from "@radix-ui/react-dropdown-menu";
|
|
5
5
|
import { Check as m, ChevronRight as d } from "lucide-react";
|
|
6
|
-
const g = x.Root,
|
|
6
|
+
const g = x.Root, q = x.Trigger, h = x.Group, N = x.Portal, z = x.Sub, j = x.RadioGroup, l = o.forwardRef(({
|
|
7
7
|
inset: e,
|
|
8
8
|
children: a,
|
|
9
9
|
...r
|
|
@@ -16,19 +16,19 @@ const g = x.Root, h = x.Trigger, q = x.Group, N = x.Portal, z = x.Sub, j = x.Rad
|
|
|
16
16
|
}
|
|
17
17
|
}[!!e << 0], children: [
|
|
18
18
|
a,
|
|
19
|
-
/* @__PURE__ */ s(d, { className: "x8x9d4c" })
|
|
19
|
+
/* @__PURE__ */ s(d, { "aria-hidden": "true", className: "x8x9d4c" })
|
|
20
20
|
] }));
|
|
21
21
|
l.displayName = x.SubTrigger.displayName;
|
|
22
22
|
const i = o.forwardRef(({
|
|
23
23
|
...e
|
|
24
24
|
}, a) => /* @__PURE__ */ s(x.SubContent, { ref: a, ...e, className: "x1dyo0bm xsdfdjn x1brvnfc x1y0btm7 xmkeg23 xa18zv3 xzhy1st xb3r6kr x2k5h2x x1vl8k5d xa9119d x14lkljl xn6uytu xmf2o4l x1jd37z9 xalsa2k" }));
|
|
25
25
|
i.displayName = x.SubContent.displayName;
|
|
26
|
-
const
|
|
26
|
+
const u = o.forwardRef(({
|
|
27
27
|
sideOffset: e = 4,
|
|
28
28
|
...a
|
|
29
29
|
}, r) => /* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ s(x.Content, { ref: r, sideOffset: e, ...a, className: "x1dyo0bm xsdfdjn x1brvnfc x1y0btm7 xmkeg23 x1g5awrf xa18zv3 xzhy1st xb3r6kr x2k5h2x x1vl8k5d xa9119d x14lkljl xn6uytu xmf2o4l x1jd37z9" }) }));
|
|
30
|
-
|
|
31
|
-
const
|
|
30
|
+
u.displayName = x.Content.displayName;
|
|
31
|
+
const p = o.forwardRef(({
|
|
32
32
|
inset: e,
|
|
33
33
|
tone: a = "default",
|
|
34
34
|
...r
|
|
@@ -46,31 +46,31 @@ const u = o.forwardRef(({
|
|
|
46
46
|
className: "x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1xttv3l x14e3mrv x7gqb9v xpfqfdi xx6bhzk xs2xxs2 xwwtwea x2lv0vp xo7ktl4 x1lvzo9m"
|
|
47
47
|
}
|
|
48
48
|
}[(a === "destructive") << 1 | !!e << 0] }));
|
|
49
|
-
|
|
50
|
-
const
|
|
49
|
+
p.displayName = x.Item.displayName;
|
|
50
|
+
const w = o.forwardRef(({
|
|
51
51
|
children: e,
|
|
52
52
|
checked: a,
|
|
53
53
|
...r
|
|
54
54
|
}, t) => /* @__PURE__ */ n(x.CheckboxItem, { ref: t, checked: a, ...r, className: "x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x1qughib xx6bhzk xs2xxs2 xwwtwea x3wwfir xsr13ir", children: [
|
|
55
55
|
e,
|
|
56
|
-
/* @__PURE__ */ s("span", { ...{
|
|
56
|
+
/* @__PURE__ */ s("span", { "aria-hidden": !0, ...{
|
|
57
57
|
0: {
|
|
58
|
-
className: "x6s0dn4 x1suburk
|
|
58
|
+
className: "x6s0dn4 xjbqb8w x1suburk x13pslko x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k xx6bhzk x1okb17s xwwtwea x1vfp87d"
|
|
59
59
|
},
|
|
60
60
|
1: {
|
|
61
|
-
className: "x6s0dn4
|
|
61
|
+
className: "x6s0dn4 x13pslko x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k xx6bhzk x1okb17s xwwtwea x1vfp87d x11tn5dx xcaibub x1vmo3ik"
|
|
62
62
|
}
|
|
63
|
-
}[
|
|
63
|
+
}[(a === !0) << 0], children: a === !0 && /* @__PURE__ */ s(m, { "aria-hidden": "true", className: "x1vmo3ik xwvkxvr xosxg9m", strokeWidth: 3 }) })
|
|
64
64
|
] }));
|
|
65
|
-
|
|
66
|
-
const
|
|
65
|
+
w.displayName = x.CheckboxItem.displayName;
|
|
66
|
+
const c = o.forwardRef(({
|
|
67
67
|
children: e,
|
|
68
68
|
...a
|
|
69
69
|
}, r) => /* @__PURE__ */ n(x.RadioItem, { ref: r, ...a, className: "x6s0dn4 x1kcekj6 xt0e3qv x78zum5 x1eqnyfr x1t137rt x136oad8 x1wu0y3b x1n2onr6 x87ps6o xg8umi8 x1i4teta x1xttv3l x14e3mrv x7gqb9v x1qughib x3wwfir", children: [
|
|
70
70
|
e,
|
|
71
|
-
/* @__PURE__ */ s("span", { className: "x6s0dn4 x1suburk xvowokw x1y0btm7 xmkeg23 x78zum5 x2lah0s xkive58 xl56j7k
|
|
71
|
+
/* @__PURE__ */ s("span", { "aria-hidden": !0, className: "x6s0dn4 xjbqb8w x1suburk xvowokw x1y0btm7 xmkeg23 x9f619 x78zum5 x2lah0s xkive58 xl56j7k x1n2onr6 x1vfp87d", children: /* @__PURE__ */ s(x.ItemIndicator, { children: /* @__PURE__ */ s("span", { className: "x6s0dn4 x11tn5dx xcaibub xvowokw x1y0btm7 xmkeg23 x9f619 x78zum5 xkive58 xl56j7k x1nrll8i x10l6tqk xwa60dl x11lhmoz x1vfp87d", children: /* @__PURE__ */ s("span", { className: "x1gu80qv xvowokw x5pwsuf x15uyvzi" }) }) }) })
|
|
72
72
|
] }));
|
|
73
|
-
|
|
73
|
+
c.displayName = x.RadioItem.displayName;
|
|
74
74
|
const v = o.forwardRef(({
|
|
75
75
|
inset: e,
|
|
76
76
|
...a
|
|
@@ -83,28 +83,28 @@ const v = o.forwardRef(({
|
|
|
83
83
|
}
|
|
84
84
|
}[!!e << 0] }));
|
|
85
85
|
v.displayName = x.Label.displayName;
|
|
86
|
-
const
|
|
86
|
+
const b = o.forwardRef(({
|
|
87
87
|
...e
|
|
88
88
|
}, a) => /* @__PURE__ */ s(x.Separator, { ref: a, ...e, className: "x1cqd74s xjm9jq1 x16jkv7s xg8r2gc" }));
|
|
89
|
-
|
|
89
|
+
b.displayName = x.Separator.displayName;
|
|
90
90
|
const k = ({
|
|
91
91
|
...e
|
|
92
92
|
}) => /* @__PURE__ */ s("span", { ...e, className: "x51wmvv x1dor1uw x8x9d4c x197sbye" });
|
|
93
93
|
k.displayName = "DropdownMenuShortcut";
|
|
94
94
|
export {
|
|
95
95
|
g as D,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
w as a,
|
|
97
|
+
u as b,
|
|
98
|
+
h as c,
|
|
99
|
+
p as d,
|
|
100
100
|
v as e,
|
|
101
101
|
N as f,
|
|
102
102
|
j as g,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
c as h,
|
|
104
|
+
b as i,
|
|
105
105
|
k as j,
|
|
106
106
|
z as k,
|
|
107
107
|
i as l,
|
|
108
108
|
l as m,
|
|
109
|
-
|
|
109
|
+
q as n
|
|
110
110
|
};
|
package/dist/dropdown-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dropdown-menu-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dropdown-menu-BtU3Yhar.cjs");exports.DropdownMenu=o.DropdownMenu;exports.DropdownMenuCheckboxItem=o.DropdownMenuCheckboxItem;exports.DropdownMenuContent=o.DropdownMenuContent;exports.DropdownMenuGroup=o.DropdownMenuGroup;exports.DropdownMenuItem=o.DropdownMenuItem;exports.DropdownMenuLabel=o.DropdownMenuLabel;exports.DropdownMenuPortal=o.DropdownMenuPortal;exports.DropdownMenuRadioGroup=o.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=o.DropdownMenuRadioItem;exports.DropdownMenuSeparator=o.DropdownMenuSeparator;exports.DropdownMenuShortcut=o.DropdownMenuShortcut;exports.DropdownMenuSub=o.DropdownMenuSub;exports.DropdownMenuSubContent=o.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=o.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=o.DropdownMenuTrigger;
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { D as e, a as r, b as a, c as u, d as p, e as d, f as s, g as D, h as w, i as M, j as t, k as b, l as i, m as g, n as m } from "./dropdown-menu-
|
|
2
|
+
import { D as e, a as r, b as a, c as u, d as p, e as d, f as s, g as D, h as w, i as M, j as t, k as b, l as i, m as g, n as m } from "./dropdown-menu-CA2MpoMo.js";
|
|
3
3
|
export {
|
|
4
4
|
e as DropdownMenu,
|
|
5
5
|
r as DropdownMenuCheckboxItem,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const l=require("react/jsx-runtime"),y=require("react"),d=require("lucide-react"),O=require("./input-BrGJn-D9.cjs");function S(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,c.get?c:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const i=S(y),k=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,m=i.forwardRef(({showValidation:s=!1,onValidationChange:e,onChange:t,onBlur:c,...v},o)=>{const[u,a]=i.useState(null),[x,j]=i.useState(!1),b=r=>{const p=r.target.value;if(p){const n=k.test(p);a(n),e==null||e(n)}else a(null),e==null||e(!1);t==null||t(r)},I=r=>{j(!0),c==null||c(r)},f=s&&x&&u!==null,R=f?u?l.jsx(d.CheckCircle2,{"aria-hidden":"true",className:"xkive58 x1vfp87d x31tm2b"}):l.jsx(d.AlertCircle,{"aria-hidden":"true",className:"xkive58 x1vfp87d x2lv0vp"}):void 0;return l.jsx(O.Input,{type:"email",ref:o,onChange:b,onBlur:I,trailing:R,validationTone:f?u?"positive":"destructive":"none",...v})});m.displayName="EmailInput";exports.EmailInput=m;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { CheckCircle2 as E, AlertCircle as N } from "lucide-react";
|
|
5
|
+
import { I as R } from "./input-Cccufiqn.js";
|
|
6
|
+
const S = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, T = u.forwardRef(({
|
|
7
|
+
showValidation: f = !1,
|
|
8
|
+
onValidationChange: s,
|
|
9
|
+
onChange: e,
|
|
10
|
+
onBlur: c,
|
|
11
|
+
...a
|
|
12
|
+
}, d) => {
|
|
13
|
+
const [r, m] = u.useState(null), [x, I] = u.useState(!1), o = (t) => {
|
|
14
|
+
const p = t.target.value;
|
|
15
|
+
if (p) {
|
|
16
|
+
const v = S.test(p);
|
|
17
|
+
m(v), s == null || s(v);
|
|
18
|
+
} else
|
|
19
|
+
m(null), s == null || s(!1);
|
|
20
|
+
e == null || e(t);
|
|
21
|
+
}, k = (t) => {
|
|
22
|
+
I(!0), c == null || c(t);
|
|
23
|
+
}, i = f && x && r !== null;
|
|
24
|
+
return /* @__PURE__ */ l(R, { type: "email", ref: d, onChange: o, onBlur: k, trailing: i ? r ? /* @__PURE__ */ l(E, { "aria-hidden": "true", className: "xkive58 x1vfp87d x31tm2b" }) : /* @__PURE__ */ l(N, { "aria-hidden": "true", className: "xkive58 x1vfp87d x2lv0vp" }) : void 0, validationTone: i ? r ? "positive" : "destructive" : "none", ...a });
|
|
25
|
+
});
|
|
26
|
+
T.displayName = "EmailInput";
|
|
27
|
+
export {
|
|
28
|
+
T as E
|
|
29
|
+
};
|
package/dist/email-input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./email-input-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./email-input-DFI4h_KN.cjs");exports.EmailInput=e.EmailInput;
|
package/dist/email-input.js
CHANGED