@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
package/README.md
CHANGED
|
@@ -16,15 +16,15 @@ bun add @eluan/core @eluan/tokens
|
|
|
16
16
|
## Use
|
|
17
17
|
|
|
18
18
|
```tsx
|
|
19
|
-
// Import once at the entry of your app
|
|
19
|
+
// Import once at the entry of your app.
|
|
20
|
+
// styles.css bundles every token layer — no separate @eluan/tokens/css import needed.
|
|
20
21
|
import "@eluan/core/styles.css"
|
|
21
|
-
import "@eluan/tokens/css"
|
|
22
22
|
|
|
23
23
|
import { Button, EluanProvider } from "@eluan/core"
|
|
24
24
|
|
|
25
25
|
export default function App() {
|
|
26
26
|
return (
|
|
27
|
-
<EluanProvider defaultTheme="
|
|
27
|
+
<EluanProvider defaultTheme="minimal">
|
|
28
28
|
<Button>Hello</Button>
|
|
29
29
|
</EluanProvider>
|
|
30
30
|
)
|
|
@@ -41,12 +41,42 @@ import { Button } from "@eluan/core/button"
|
|
|
41
41
|
|
|
42
42
|
See the [theming guide](https://github.com/vasfio/eluan/blob/main/docs/theming.md) for `EluanProvider` setup, `useEluanTheme()`, and how to define a custom theme via `createTheme()`.
|
|
43
43
|
|
|
44
|
+
The provider drives five independent axes — `theme`, `mode`, `spacing`, `curves`, and `typeset` — and re-exports the token helpers so you don't need a second import:
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { useEluanTheme, typeset, resolveTypesetSize } from "@eluan/core"
|
|
48
|
+
|
|
49
|
+
const { mode, setMode, typeset: pin, setTypeset } = useEluanTheme()
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Typography
|
|
53
|
+
|
|
54
|
+
Type sizes come from a fluid 12-step scale that resizes with the viewport. `Typography` applies a step's size, line height, and letter spacing together:
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
import { Typography } from "@eluan/core"
|
|
58
|
+
|
|
59
|
+
<Typography variant="display">Ships fast</Typography>
|
|
60
|
+
<Typography variant="body">Body copy, fluid between 480px and 1024px.</Typography>
|
|
61
|
+
<Typography variant="caption" tone="muted">Footnote</Typography>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
See [the typeset axis](https://github.com/vasfio/eluan/blob/main/docs/theming.md#the-typeset-axis) for the step table and the `data-typeset` pinning attribute.
|
|
65
|
+
|
|
44
66
|
## What's included
|
|
45
67
|
|
|
46
|
-
Components span layout (`Card`, `Sheet`, `Drawer`), forms (`Input`, `Select`, `Checkbox`, `RadioGroup`, `Switch`, `Slider`, etc.), data display (`Table`, `Tree View`, `
|
|
68
|
+
Components span layout (`Card`, `Sheet`, `Drawer`), typography (`Typography`), forms (`Input`, `Select`, `Checkbox`, `RadioGroup`, `Switch`, `Slider`, etc.), data display (`Table`, `Tree View`, `Calendar`), navigation (`Tabs`, `Breadcrumb`, `Command`, `NavigationDrawer`), feedback (`Toast`, `Banner`, `Progress`), and overlays (`Dialog`, `Popover`, `Tooltip`, `ContextMenu`).
|
|
47
69
|
|
|
48
70
|
Full component list: see [Storybook](https://github.com/vasfio/eluan) or the source under `src/components/`.
|
|
49
71
|
|
|
72
|
+
## Security
|
|
73
|
+
|
|
74
|
+
`RichText` emits raw, unsanitized HTML through its `onValueChange` callback
|
|
75
|
+
(`editor.getHTML()`). Before persisting that HTML or rendering it back into the
|
|
76
|
+
DOM (for example via `dangerouslySetInnerHTML`), sanitize it with a library such
|
|
77
|
+
as [DOMPurify](https://github.com/cure53/DOMPurify). Only pass trusted/sanitized
|
|
78
|
+
HTML into the `value` prop.
|
|
79
|
+
|
|
50
80
|
## License
|
|
51
81
|
|
|
52
82
|
MIT
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import * as x from "@radix-ui/react-accordion";
|
|
5
|
+
import { ChevronDown as c } from "lucide-react";
|
|
6
|
+
const w = x.Root, m = s.forwardRef(({
|
|
7
|
+
...a
|
|
8
|
+
}, e) => /* @__PURE__ */ r(x.Item, { ref: e, ...a, className: "x1c1kh8h x1q0q8m5 xso031l" }));
|
|
9
|
+
m.displayName = "AccordionItem";
|
|
10
|
+
const t = s.forwardRef(({
|
|
11
|
+
children: a,
|
|
12
|
+
...e
|
|
13
|
+
}, o) => /* @__PURE__ */ r(x.Header, { className: "x78zum5", children: /* @__PURE__ */ i(x.Trigger, { ref: o, ...e, className: "x6s0dn4 xjbqb8w xc342km x1sjp1m2 x78zum5 x98rzlu x1j29vfg xk50ysn x1qughib xrtip4p xx6bhzk xfagghw xwwtwea x1leyzdx x1j7wef4", children: [
|
|
14
|
+
a,
|
|
15
|
+
/* @__PURE__ */ r(c, { "aria-hidden": "true", className: "xwa5xuj x2lah0s xo1l8bm xkive58 x13dflua x11xpdln xwwtwea x1vfp87d" })
|
|
16
|
+
] }) }));
|
|
17
|
+
t.displayName = x.Trigger.displayName;
|
|
18
|
+
const d = s.forwardRef(({
|
|
19
|
+
children: a,
|
|
20
|
+
...e
|
|
21
|
+
}, o) => /* @__PURE__ */ r(x.Content, { ref: o, ...e, className: "xwa5xuj x1eqnyfr x1iikomf xb3r6kr xx6bhzk xfagghw xwwtwea", children: /* @__PURE__ */ r("div", { className: "x1ksxc8v x1gggh8 x1dcz4t3", children: a }) }));
|
|
22
|
+
d.displayName = x.Content.displayName;
|
|
23
|
+
export {
|
|
24
|
+
w as A,
|
|
25
|
+
d as a,
|
|
26
|
+
m as b,
|
|
27
|
+
t as c
|
|
28
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const o=require("react/jsx-runtime"),l=require("react"),m=require("@radix-ui/react-accordion"),u=require("lucide-react");function i(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(c,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return c.default=e,Object.freeze(c)}const n=i(l),t=i(m),f=t.Root,s=n.forwardRef(({...e},c)=>o.jsx(t.Item,{ref:c,...e,className:"x1c1kh8h x1q0q8m5 xso031l"}));s.displayName="AccordionItem";const x=n.forwardRef(({children:e,...c},r)=>o.jsx(t.Header,{className:"x78zum5",children:o.jsxs(t.Trigger,{ref:r,...c,className:"x6s0dn4 xjbqb8w xc342km x1sjp1m2 x78zum5 x98rzlu x1j29vfg xk50ysn x1qughib xrtip4p xx6bhzk xfagghw xwwtwea x1leyzdx x1j7wef4",children:[e,o.jsx(u.ChevronDown,{className:"xwa5xuj x2lah0s xo1l8bm xkive58 x13dflua x11xpdln xwwtwea x1vfp87d"})]})}));x.displayName=t.Trigger.displayName;const d=n.forwardRef(({children:e,...c},r)=>o.jsx(t.Content,{ref:r,...c,className:"xwa5xuj x1eqnyfr x1iikomf xb3r6kr xx6bhzk xfagghw xwwtwea",children:o.jsx("div",{className:"x1ksxc8v x1gggh8 x1dcz4t3",children:e})}));d.displayName=t.Content.displayName;exports.Accordion=f;exports.AccordionContent=d;exports.AccordionItem=s;exports.AccordionTrigger=x;
|
|
1
|
+
"use client";"use strict";const o=require("react/jsx-runtime"),l=require("react"),m=require("@radix-ui/react-accordion"),u=require("lucide-react");function i(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(c,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return c.default=e,Object.freeze(c)}const n=i(l),t=i(m),f=t.Root,s=n.forwardRef(({...e},c)=>o.jsx(t.Item,{ref:c,...e,className:"x1c1kh8h x1q0q8m5 xso031l"}));s.displayName="AccordionItem";const x=n.forwardRef(({children:e,...c},r)=>o.jsx(t.Header,{className:"x78zum5",children:o.jsxs(t.Trigger,{ref:r,...c,className:"x6s0dn4 xjbqb8w xc342km x1sjp1m2 x78zum5 x98rzlu x1j29vfg xk50ysn x1qughib xrtip4p xx6bhzk xfagghw xwwtwea x1leyzdx x1j7wef4",children:[e,o.jsx(u.ChevronDown,{"aria-hidden":"true",className:"xwa5xuj x2lah0s xo1l8bm xkive58 x13dflua x11xpdln xwwtwea x1vfp87d"})]})}));x.displayName=t.Trigger.displayName;const d=n.forwardRef(({children:e,...c},r)=>o.jsx(t.Content,{ref:r,...c,className:"xwa5xuj x1eqnyfr x1iikomf xb3r6kr xx6bhzk xfagghw xwwtwea",children:o.jsx("div",{className:"x1ksxc8v x1gggh8 x1dcz4t3",children:e})}));d.displayName=t.Content.displayName;exports.Accordion=f;exports.AccordionContent=d;exports.AccordionItem=s;exports.AccordionTrigger=x;
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./accordion-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./accordion-CwCYLCam.cjs");exports.Accordion=o.Accordion;exports.AccordionContent=o.AccordionContent;exports.AccordionItem=o.AccordionItem;exports.AccordionTrigger=o.AccordionTrigger;
|
package/dist/accordion.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const t=require("react/jsx-runtime"),u=require("react"),p=require("lucide-react"),i=require("./dropdown-menu-BtU3Yhar.cjs"),x=require("./button-Ny6OF8Un.cjs");function f(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(r,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return r.default=n,Object.freeze(r)}const s=f(u),a=s.forwardRef(({items:n,align:r="end",side:o="bottom","aria-label":c="Open actions menu"},l)=>t.jsxs(i.DropdownMenu,{children:[t.jsx(i.DropdownMenuTrigger,{asChild:!0,children:t.jsx(x.Button,{ref:l,variant:"ghost",size:"icon","aria-label":c,children:t.jsx(p.MoreHorizontal,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})}),t.jsx(i.DropdownMenuContent,{align:r,side:o,children:n.map((e,d)=>t.jsxs(i.DropdownMenuItem,{onClick:e.onClick,disabled:e.disabled,tone:e.destructive?"destructive":"default",children:[e.icon&&t.jsx("span",{className:"x6s0dn4 x78zum5 x2lah0s xkive58 x1vfp87d",children:s.isValidElement(e.icon)?s.cloneElement(e.icon,{width:"100%",height:"100%"}):e.icon}),e.label]},d))})]}));a.displayName="ActionPopover";exports.ActionPopover=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { MoreHorizontal as c } from "lucide-react";
|
|
5
|
+
import { D as p, n as u, b as h, d as m } from "./dropdown-menu-CA2MpoMo.js";
|
|
6
|
+
import { B as f } from "./button-ANAPDrvs.js";
|
|
7
|
+
const x = n.forwardRef(({
|
|
8
|
+
items: a,
|
|
9
|
+
align: i = "end",
|
|
10
|
+
side: d = "bottom",
|
|
11
|
+
"aria-label": s = "Open actions menu"
|
|
12
|
+
}, l) => /* @__PURE__ */ r(p, { children: [
|
|
13
|
+
/* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ e(f, { ref: l, variant: "ghost", size: "icon", "aria-label": s, children: /* @__PURE__ */ e(c, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) }) }),
|
|
14
|
+
/* @__PURE__ */ e(h, { align: i, side: d, children: a.map((o, t) => /* @__PURE__ */ r(m, { onClick: o.onClick, disabled: o.disabled, tone: o.destructive ? "destructive" : "default", children: [
|
|
15
|
+
o.icon && /* @__PURE__ */ e("span", { className: "x6s0dn4 x78zum5 x2lah0s xkive58 x1vfp87d", children: n.isValidElement(o.icon) ? n.cloneElement(o.icon, {
|
|
16
|
+
width: "100%",
|
|
17
|
+
height: "100%"
|
|
18
|
+
}) : o.icon }),
|
|
19
|
+
o.label
|
|
20
|
+
] }, t)) })
|
|
21
|
+
] }));
|
|
22
|
+
x.displayName = "ActionPopover";
|
|
23
|
+
export {
|
|
24
|
+
x as A
|
|
25
|
+
};
|
package/dist/action-popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-popover-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-popover-CCRZyXVl.cjs");exports.ActionPopover=e.ActionPopover;
|
package/dist/action-popover.js
CHANGED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import * as o from "@radix-ui/react-avatar";
|
|
5
|
+
import * as i from "@stylexjs/stylex";
|
|
6
|
+
import { B as d } from "./badge-D9NYZFWH.js";
|
|
7
|
+
const f = r.forwardRef((a, s) => /* @__PURE__ */ e(o.Root, { ref: s, ...a, className: "xvowokw x78zum5 x2lah0s x1h5pcsu xb3r6kr x1n2onr6 xyp5bzy" }));
|
|
8
|
+
f.displayName = o.Root.displayName;
|
|
9
|
+
const g = r.forwardRef((a, s) => /* @__PURE__ */ e(o.Image, { ref: s, ...a, className: "x1y5e3q9 x5yr21d xh8yej3" }));
|
|
10
|
+
g.displayName = o.Image.displayName;
|
|
11
|
+
const k = r.forwardRef((a, s) => /* @__PURE__ */ e(o.Fallback, { ref: s, ...a, className: "x6s0dn4 x1cqd74s xvowokw xwa5xuj x78zum5 x51wmvv xk50ysn x5yr21d xl56j7k xh8yej3" }));
|
|
12
|
+
k.displayName = o.Fallback.displayName;
|
|
13
|
+
const p = r.forwardRef(({
|
|
14
|
+
position: a = "top-right",
|
|
15
|
+
count: s,
|
|
16
|
+
max: u = 99,
|
|
17
|
+
...m
|
|
18
|
+
}, l) => {
|
|
19
|
+
const x = s !== void 0 && s > 0, c = x ? s > u ? `${u}+` : `${s}` : void 0;
|
|
20
|
+
return /* @__PURE__ */ e("span", { ref: l, ...m, ...i.props(t.badge, v[a]), children: /* @__PURE__ */ e(d, { variant: "destructive", size: x ? "default" : "microdot", children: c }) });
|
|
21
|
+
});
|
|
22
|
+
p.displayName = "AvatarBadge";
|
|
23
|
+
const n = ({
|
|
24
|
+
status: a,
|
|
25
|
+
position: s = "bottom-right"
|
|
26
|
+
}) => /* @__PURE__ */ e("span", { ...i.props(t.status, b[a], $[s]), "aria-label": a });
|
|
27
|
+
n.displayName = "AvatarStatus";
|
|
28
|
+
const y = r.forwardRef((a, s) => /* @__PURE__ */ e("div", { ref: s, ...a, className: "x3nfvp2 x1n2onr6" }));
|
|
29
|
+
y.displayName = "AvatarWithStatus";
|
|
30
|
+
const t = {
|
|
31
|
+
badge: {
|
|
32
|
+
k1xSpc: "x3nfvp2",
|
|
33
|
+
kVAEAm: "x10l6tqk",
|
|
34
|
+
kY2c9j: "x1vjfegm",
|
|
35
|
+
$$css: !0
|
|
36
|
+
},
|
|
37
|
+
badgeTopRight: {
|
|
38
|
+
k87sOh: "x13vifvy",
|
|
39
|
+
kCIrl2: "x3m8u43",
|
|
40
|
+
k3aq6I: "xd97ich",
|
|
41
|
+
$$css: !0
|
|
42
|
+
},
|
|
43
|
+
badgeBottomRight: {
|
|
44
|
+
krVfgx: "x1ey2m1c",
|
|
45
|
+
kCIrl2: "x3m8u43",
|
|
46
|
+
k3aq6I: "x4b9nf6",
|
|
47
|
+
$$css: !0
|
|
48
|
+
},
|
|
49
|
+
badgeTopLeft: {
|
|
50
|
+
k87sOh: "x13vifvy",
|
|
51
|
+
kbCHJM: "xu96u03",
|
|
52
|
+
k3aq6I: "xvase19",
|
|
53
|
+
$$css: !0
|
|
54
|
+
},
|
|
55
|
+
badgeBottomLeft: {
|
|
56
|
+
krVfgx: "x1ey2m1c",
|
|
57
|
+
kbCHJM: "xu96u03",
|
|
58
|
+
k3aq6I: "x1dtoipb",
|
|
59
|
+
$$css: !0
|
|
60
|
+
},
|
|
61
|
+
status: {
|
|
62
|
+
kaIpWk: "xvowokw",
|
|
63
|
+
kGVxlE: "xvsa30g",
|
|
64
|
+
kZKoxP: "xsxoud2",
|
|
65
|
+
kVAEAm: "x10l6tqk",
|
|
66
|
+
kzqmXN: "xjnwsfm",
|
|
67
|
+
$$css: !0
|
|
68
|
+
},
|
|
69
|
+
statusTop: {
|
|
70
|
+
k87sOh: "x13vifvy",
|
|
71
|
+
$$css: !0
|
|
72
|
+
},
|
|
73
|
+
statusBottom: {
|
|
74
|
+
krVfgx: "x1ey2m1c",
|
|
75
|
+
$$css: !0
|
|
76
|
+
},
|
|
77
|
+
statusRight: {
|
|
78
|
+
kCIrl2: "x3m8u43",
|
|
79
|
+
$$css: !0
|
|
80
|
+
},
|
|
81
|
+
statusLeft: {
|
|
82
|
+
kbCHJM: "xu96u03",
|
|
83
|
+
$$css: !0
|
|
84
|
+
},
|
|
85
|
+
statusOnline: {
|
|
86
|
+
kWkggS: "x8rh9ze",
|
|
87
|
+
$$css: !0
|
|
88
|
+
},
|
|
89
|
+
statusOffline: {
|
|
90
|
+
kWkggS: "x1cqd74s",
|
|
91
|
+
$$css: !0
|
|
92
|
+
},
|
|
93
|
+
statusBusy: {
|
|
94
|
+
kWkggS: "x3nj2cr",
|
|
95
|
+
$$css: !0
|
|
96
|
+
},
|
|
97
|
+
statusAway: {
|
|
98
|
+
kWkggS: "xy8psvg",
|
|
99
|
+
$$css: !0
|
|
100
|
+
}
|
|
101
|
+
}, v = {
|
|
102
|
+
"top-right": t.badgeTopRight,
|
|
103
|
+
"bottom-right": t.badgeBottomRight,
|
|
104
|
+
"top-left": t.badgeTopLeft,
|
|
105
|
+
"bottom-left": t.badgeBottomLeft
|
|
106
|
+
}, $ = {
|
|
107
|
+
"top-right": [t.statusTop, t.statusRight],
|
|
108
|
+
"bottom-right": [t.statusBottom, t.statusRight],
|
|
109
|
+
"top-left": [t.statusTop, t.statusLeft],
|
|
110
|
+
"bottom-left": [t.statusBottom, t.statusLeft]
|
|
111
|
+
}, b = {
|
|
112
|
+
online: t.statusOnline,
|
|
113
|
+
offline: t.statusOffline,
|
|
114
|
+
busy: t.statusBusy,
|
|
115
|
+
away: t.statusAway
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
f as A,
|
|
119
|
+
p as a,
|
|
120
|
+
k as b,
|
|
121
|
+
g as c,
|
|
122
|
+
n as d,
|
|
123
|
+
y as e
|
|
124
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const r=require("react/jsx-runtime"),y=require("react"),b=require("@radix-ui/react-avatar"),$=require("@stylexjs/stylex"),h=require("./badge-DXKWztL-.cjs");function c(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const u=c(y),o=c(b),x=c($),l=u.forwardRef((t,s)=>r.jsx(o.Root,{ref:s,...t,className:"xvowokw x78zum5 x2lah0s x1h5pcsu xb3r6kr x1n2onr6 xyp5bzy"}));l.displayName=o.Root.displayName;const d=u.forwardRef((t,s)=>r.jsx(o.Image,{ref:s,...t,className:"x1y5e3q9 x5yr21d xh8yej3"}));d.displayName=o.Image.displayName;const g=u.forwardRef((t,s)=>r.jsx(o.Fallback,{ref:s,...t,className:"x6s0dn4 x1cqd74s xvowokw xwa5xuj x78zum5 x51wmvv xk50ysn x5yr21d xl56j7k xh8yej3"}));g.displayName=o.Fallback.displayName;const m=u.forwardRef(({position:t="top-right",count:s,max:e=99,...i},p)=>{const n=s!==void 0&&s>0,v=n?s>e?`${e}+`:`${s}`:void 0;return r.jsx("span",{ref:p,...i,...x.props(a.badge,A[t]),children:r.jsx(h.Badge,{variant:"destructive",size:n?"default":"microdot",children:v})})});m.displayName="AvatarBadge";const f=({status:t,position:s="bottom-right"})=>r.jsx("span",{...x.props(a.status,w[t],j[s]),"aria-label":t});f.displayName="AvatarStatus";const k=u.forwardRef((t,s)=>r.jsx("div",{ref:s,...t,className:"x3nfvp2 x1n2onr6"}));k.displayName="AvatarWithStatus";const a={badge:{k1xSpc:"x3nfvp2",kVAEAm:"x10l6tqk",kY2c9j:"x1vjfegm",$$css:!0},badgeTopRight:{k87sOh:"x13vifvy",kCIrl2:"x3m8u43",k3aq6I:"xd97ich",$$css:!0},badgeBottomRight:{krVfgx:"x1ey2m1c",kCIrl2:"x3m8u43",k3aq6I:"x4b9nf6",$$css:!0},badgeTopLeft:{k87sOh:"x13vifvy",kbCHJM:"xu96u03",k3aq6I:"xvase19",$$css:!0},badgeBottomLeft:{krVfgx:"x1ey2m1c",kbCHJM:"xu96u03",k3aq6I:"x1dtoipb",$$css:!0},status:{kaIpWk:"xvowokw",kGVxlE:"xvsa30g",kZKoxP:"xsxoud2",kVAEAm:"x10l6tqk",kzqmXN:"xjnwsfm",$$css:!0},statusTop:{k87sOh:"x13vifvy",$$css:!0},statusBottom:{krVfgx:"x1ey2m1c",$$css:!0},statusRight:{kCIrl2:"x3m8u43",$$css:!0},statusLeft:{kbCHJM:"xu96u03",$$css:!0},statusOnline:{kWkggS:"x8rh9ze",$$css:!0},statusOffline:{kWkggS:"x1cqd74s",$$css:!0},statusBusy:{kWkggS:"x3nj2cr",$$css:!0},statusAway:{kWkggS:"xy8psvg",$$css:!0}},A={"top-right":a.badgeTopRight,"bottom-right":a.badgeBottomRight,"top-left":a.badgeTopLeft,"bottom-left":a.badgeBottomLeft},j={"top-right":[a.statusTop,a.statusRight],"bottom-right":[a.statusBottom,a.statusRight],"top-left":[a.statusTop,a.statusLeft],"bottom-left":[a.statusBottom,a.statusLeft]},w={online:a.statusOnline,offline:a.statusOffline,busy:a.statusBusy,away:a.statusAway};exports.Avatar=l;exports.AvatarBadge=m;exports.AvatarFallback=g;exports.AvatarImage=d;exports.AvatarStatus=f;exports.AvatarWithStatus=k;
|
package/dist/avatar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./avatar-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./avatar-Co-k8KqV.cjs");exports.Avatar=a.Avatar;exports.AvatarBadge=a.AvatarBadge;exports.AvatarFallback=a.AvatarFallback;exports.AvatarImage=a.AvatarImage;exports.AvatarStatus=a.AvatarStatus;exports.AvatarWithStatus=a.AvatarWithStatus;
|
package/dist/avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "@stylexjs/stylex";
|
|
4
4
|
import { X as v } from "lucide-react";
|
|
5
5
|
const t = {
|
|
@@ -49,7 +49,7 @@ const t = {
|
|
|
49
49
|
kMwMTN: "x31tm2b",
|
|
50
50
|
$$css: !0
|
|
51
51
|
},
|
|
52
|
-
|
|
52
|
+
variantCaution: {
|
|
53
53
|
kWkggS: "xmo15d4",
|
|
54
54
|
kVAM5u: "x9r1u3d",
|
|
55
55
|
kMwMTN: "xbonnel",
|
|
@@ -90,10 +90,10 @@ const t = {
|
|
|
90
90
|
destructive: t.variantDestructive,
|
|
91
91
|
outline: t.variantOutline,
|
|
92
92
|
positive: t.variantPositive,
|
|
93
|
-
|
|
93
|
+
caution: t.variantCaution,
|
|
94
94
|
informative: t.variantInformative,
|
|
95
95
|
important: t.variantImportant
|
|
96
|
-
},
|
|
96
|
+
}, d = {
|
|
97
97
|
default: t.sizeDefault,
|
|
98
98
|
microdot: t.sizeMicrodot
|
|
99
99
|
};
|
|
@@ -105,11 +105,11 @@ function M({
|
|
|
105
105
|
children: s,
|
|
106
106
|
...e
|
|
107
107
|
}) {
|
|
108
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ o("span", { ...e, ...n.props(t.root, c[k], d[a]), children: [
|
|
109
109
|
a !== "microdot" && s,
|
|
110
|
-
a !== "microdot" && (i || x) && /* @__PURE__ */ r("button", { type: "button", onClick: (
|
|
111
|
-
|
|
112
|
-
}, "aria-label": "Remove", className: "xjbqb8w xc342km x121dvvf x1heor9g x1ypdohk x1tp9seo x146viv x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg", children: /* @__PURE__ */ r(v, { className: "xwvkxvr xosxg9m" }) })
|
|
110
|
+
a !== "microdot" && (i || x) && /* @__PURE__ */ r("button", { type: "button", onClick: (u) => {
|
|
111
|
+
u.stopPropagation(), x == null || x();
|
|
112
|
+
}, "aria-label": "Remove", className: "xjbqb8w xc342km x121dvvf x1heor9g x1ypdohk x1tp9seo x146viv x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg", children: /* @__PURE__ */ r(v, { "aria-hidden": "true", className: "xwvkxvr xosxg9m" }) })
|
|
113
113
|
] });
|
|
114
114
|
}
|
|
115
115
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const i=require("react/jsx-runtime"),n=require("@stylexjs/stylex"),o=require("lucide-react");function c(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const x=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(a,e,x.get?x:{enumerable:!0,get:()=>r[e]})}}return a.default=r,Object.freeze(a)}const l=c(n),t={root:{kGNEyG:"x6s0dn4",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",k1xSpc:"x3nfvp2",k63SB2:"xo1l8bm",kIyJzY:"xx6bhzk",k1ekBW:"x1oy24xj",kAMwcw:"xwwtwea",kaRX1h:"xhlp2gg",kZs9gx:"xizkvv5",kiEn40:"x13iak60",k7shQP:"x9v5kkp",kPJHz1:"x4xl6zf",$$css:!0},variantDefault:{kWkggS:"x16e9imx",kVAM5u:"x9r1u3d",kMwMTN:"xiqjl67",$$css:!0},variantSecondary:{kWkggS:"xxajf5l",kVAM5u:"x9r1u3d",kMwMTN:"xwa5xuj",$$css:!0},variantDestructive:{kWkggS:"x186czme",kVAM5u:"x9r1u3d",kMwMTN:"x2lv0vp",$$css:!0},variantOutline:{kWkggS:"xjbqb8w",kVAM5u:"xsdfdjn",kMwMTN:"xwa5xuj",$$css:!0},variantPositive:{kWkggS:"xb41lrr",kVAM5u:"x9r1u3d",kMwMTN:"x31tm2b",$$css:!0},variantCaution:{kWkggS:"xmo15d4",kVAM5u:"x9r1u3d",kMwMTN:"xbonnel",$$css:!0},variantInformative:{kWkggS:"x1jyr6fd",kVAM5u:"x9r1u3d",kMwMTN:"xy06lox",$$css:!0},variantImportant:{kWkggS:"x112gqpl",kVAM5u:"x9r1u3d",kMwMTN:"xjz4iwm",$$css:!0},sizeDefault:{kaIpWk:"x1brvnfc",kGuDYH:"x51wmvv",kOIVth:"x10ci2pi",k8WAf4:"x14aypoh",kg3NbH:"x16ic5xr",$$css:!0},sizeMicrodot:{kaIpWk:"xvowokw",kMzoRj:"xc342km",kGVxlE:"xvsa30g",kZKoxP:"x11su2f7",kmVPX3:"x1717udv",kzqmXN:"xdo0s9d",$$css:!0}},d={default:t.variantDefault,secondary:t.variantSecondary,destructive:t.variantDestructive,outline:t.variantOutline,positive:t.variantPositive,caution:t.variantCaution,informative:t.variantInformative,important:t.variantImportant},v={default:t.sizeDefault,microdot:t.sizeMicrodot};function g({variant:r="default",size:a="default",onRemove:e,removable:x,children:s,...u}){return i.jsxs("span",{...u,...l.props(t.root,d[r],v[a]),children:[a!=="microdot"&&s,a!=="microdot"&&(x||e)&&i.jsx("button",{type:"button",onClick:k=>{k.stopPropagation(),e==null||e()},"aria-label":"Remove",className:"xjbqb8w xc342km x121dvvf x1heor9g x1ypdohk x1tp9seo x146viv x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg",children:i.jsx(o.X,{"aria-hidden":"true",className:"xwvkxvr xosxg9m"})})]})}exports.Badge=g;
|
package/dist/badge.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./badge-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./badge-DXKWztL-.cjs");exports.Badge=e.Badge;
|
package/dist/badge.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const i=require("react/jsx-runtime"),m=require("react"),p=require("@stylexjs/stylex"),v=require("lucide-react");function a(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const x=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,x.get?x:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const d=a(m),y=a(p),e={root:{kGNEyG:"x6s0dn4",k1xSpc:"x78zum5",kGuDYH:"x1eqnyfr",k63SB2:"xk50ysn",kOIVth:"xpfqfdi",k8WAf4:"x136oad8",kg3NbH:"x1wu0y3b",kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",$$css:!0},variantDefault:{kWkggS:"x1es4us3",kMwMTN:"x1jcino",$$css:!0},variantDestructive:{kWkggS:"x186czme",kVAM5u:"x1s6lupp",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"x2lv0vp",$$css:!0},variantCaution:{kWkggS:"xt9e4iy",kVAM5u:"xx0afp6",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xbonnel",$$css:!0},variantPositive:{kWkggS:"x1usg630",kVAM5u:"xwt0pdp",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"x31tm2b",$$css:!0},variantInformative:{kWkggS:"xi08xqc",kVAM5u:"xuo1nyc",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xy06lox",$$css:!0},variantNeutral:{kWkggS:"x1cqd74s",kVAM5u:"x10cbhzu",ksu8eU:"x1y0btm7",kMzoRj:"xmkeg23",kMwMTN:"xwa5xuj",$$css:!0},positionTop:{kkqhue:"x17y0mx6",kVAEAm:"xixxii4",k87sOh:"x13vifvy",kY2c9j:"xa9119d",$$css:!0},positionBottom:{krVfgx:"x1ey2m1c",kkqhue:"x17y0mx6",kVAEAm:"xixxii4",kY2c9j:"xa9119d",$$css:!0},positionInline:{kaIpWk:"x1kcekj6",kVAEAm:"x1n2onr6",$$css:!0}},f={default:e.variantDefault,destructive:e.variantDestructive,caution:e.variantCaution,positive:e.variantPositive,informative:e.variantInformative,neutral:e.variantNeutral},g={top:e.positionTop,bottom:e.positionBottom,inline:e.positionInline},o=d.forwardRef(({variant:t="informative",position:n="inline",icon:s,action:x,dismissible:r=!1,onDismiss:k,children:u,...c},l)=>i.jsxs("div",{ref:l,role:"banner",...c,...y.props(e.root,f[t],g[n]),children:[s&&i.jsx("span",{className:"x2lah0s",children:s}),i.jsx("div",{className:"x98rzlu",children:u}),x&&i.jsx("div",{className:"x2lah0s",children:x}),r&&i.jsx("button",{type:"button",onClick:k,"aria-label":"Dismiss",className:"xjbqb8w xc342km x13pslko x1heor9g x1ypdohk x2lah0s x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg xpd6547 x13iak60 x9v5kkp x4xl6zf",children:i.jsx(v.X,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})]}));o.displayName="Banner";exports.Banner=o;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as m, jsx as x } from "react/jsx-runtime";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as c from "@stylexjs/stylex";
|
|
5
5
|
import { X as p } from "lucide-react";
|
|
6
|
-
const
|
|
6
|
+
const t = {
|
|
7
7
|
root: {
|
|
8
8
|
kGNEyG: "x6s0dn4",
|
|
9
9
|
k1xSpc: "x78zum5",
|
|
@@ -29,7 +29,7 @@ const s = {
|
|
|
29
29
|
kMwMTN: "x2lv0vp",
|
|
30
30
|
$$css: !0
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
variantCaution: {
|
|
33
33
|
kWkggS: "xt9e4iy",
|
|
34
34
|
kVAM5u: "xx0afp6",
|
|
35
35
|
ksu8eU: "x1y0btm7",
|
|
@@ -37,7 +37,7 @@ const s = {
|
|
|
37
37
|
kMwMTN: "xbonnel",
|
|
38
38
|
$$css: !0
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
variantPositive: {
|
|
41
41
|
kWkggS: "x1usg630",
|
|
42
42
|
kVAM5u: "xwt0pdp",
|
|
43
43
|
ksu8eU: "x1y0btm7",
|
|
@@ -45,7 +45,7 @@ const s = {
|
|
|
45
45
|
kMwMTN: "x31tm2b",
|
|
46
46
|
$$css: !0
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
variantInformative: {
|
|
49
49
|
kWkggS: "xi08xqc",
|
|
50
50
|
kVAM5u: "xuo1nyc",
|
|
51
51
|
ksu8eU: "x1y0btm7",
|
|
@@ -81,32 +81,32 @@ const s = {
|
|
|
81
81
|
$$css: !0
|
|
82
82
|
}
|
|
83
83
|
}, v = {
|
|
84
|
-
default:
|
|
85
|
-
destructive:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
neutral:
|
|
90
|
-
},
|
|
91
|
-
top:
|
|
92
|
-
bottom:
|
|
93
|
-
inline:
|
|
94
|
-
},
|
|
95
|
-
variant:
|
|
84
|
+
default: t.variantDefault,
|
|
85
|
+
destructive: t.variantDestructive,
|
|
86
|
+
caution: t.variantCaution,
|
|
87
|
+
positive: t.variantPositive,
|
|
88
|
+
informative: t.variantInformative,
|
|
89
|
+
neutral: t.variantNeutral
|
|
90
|
+
}, y = {
|
|
91
|
+
top: t.positionTop,
|
|
92
|
+
bottom: t.positionBottom,
|
|
93
|
+
inline: t.positionInline
|
|
94
|
+
}, d = l.forwardRef(({
|
|
95
|
+
variant: i = "informative",
|
|
96
96
|
position: a = "inline",
|
|
97
|
-
icon:
|
|
98
|
-
action:
|
|
99
|
-
dismissible:
|
|
100
|
-
onDismiss:
|
|
101
|
-
children:
|
|
97
|
+
icon: e,
|
|
98
|
+
action: s,
|
|
99
|
+
dismissible: k = !1,
|
|
100
|
+
onDismiss: o,
|
|
101
|
+
children: n,
|
|
102
102
|
...r
|
|
103
|
-
}, u) => /* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
/* @__PURE__ */ x("div", { className: "x98rzlu", children:
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
}, u) => /* @__PURE__ */ m("div", { ref: u, role: "banner", ...r, ...c.props(t.root, v[i], y[a]), children: [
|
|
104
|
+
e && /* @__PURE__ */ x("span", { className: "x2lah0s", children: e }),
|
|
105
|
+
/* @__PURE__ */ x("div", { className: "x98rzlu", children: n }),
|
|
106
|
+
s && /* @__PURE__ */ x("div", { className: "x2lah0s", children: s }),
|
|
107
|
+
k && /* @__PURE__ */ x("button", { type: "button", onClick: o, "aria-label": "Dismiss", className: "xjbqb8w xc342km x13pslko x1heor9g x1ypdohk x2lah0s x197sbye x1717udv xx6bhzk x19991ni xwwtwea x1o7uuvo xhlp2gg xpd6547 x13iak60 x9v5kkp x4xl6zf", children: /* @__PURE__ */ x(p, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) })
|
|
108
108
|
] }));
|
|
109
|
-
|
|
109
|
+
d.displayName = "Banner";
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
d as B
|
|
112
112
|
};
|
package/dist/banner.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./banner-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./banner-COlEFRuK.cjs");exports.Banner=e.Banner;
|
package/dist/banner.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { Slot as
|
|
5
|
-
import { MoreHorizontal as
|
|
6
|
-
import { B as m } from "./button-
|
|
7
|
-
import { D as c, n as t, b as x, d as u } from "./dropdown-menu-
|
|
4
|
+
import { Slot as l } from "@radix-ui/react-slot";
|
|
5
|
+
import { MoreHorizontal as d, ChevronRight as i } from "lucide-react";
|
|
6
|
+
import { B as m } from "./button-ANAPDrvs.js";
|
|
7
|
+
import { D as c, n as t, b as x, d as u } from "./dropdown-menu-CA2MpoMo.js";
|
|
8
8
|
const p = s.forwardRef(({
|
|
9
9
|
...r
|
|
10
10
|
}, a) => /* @__PURE__ */ e("nav", { ref: a, "aria-label": "breadcrumb", ...r }));
|
|
@@ -20,7 +20,7 @@ b.displayName = "BreadcrumbItem";
|
|
|
20
20
|
const h = s.forwardRef(({
|
|
21
21
|
asChild: r,
|
|
22
22
|
...a
|
|
23
|
-
}, o) => /* @__PURE__ */ e(r ?
|
|
23
|
+
}, o) => /* @__PURE__ */ e(r ? l : "a", { ref: o, ...a, className: "xx6bhzk xt3l3uh xwwtwea x1leyzdx" }));
|
|
24
24
|
h.displayName = "BreadcrumbLink";
|
|
25
25
|
const w = s.forwardRef(({
|
|
26
26
|
...r
|
|
@@ -36,10 +36,10 @@ k.displayName = "BreadcrumbSeparator";
|
|
|
36
36
|
const B = ({
|
|
37
37
|
items: r = []
|
|
38
38
|
}) => r.length === 0 ? /* @__PURE__ */ n("span", { role: "presentation", "aria-hidden": "true", className: "x6s0dn4 x78zum5 xwfmp28 xl56j7k x2dhfp8", children: [
|
|
39
|
-
/* @__PURE__ */ e(
|
|
39
|
+
/* @__PURE__ */ e(d, { className: "xkive58 x1vfp87d" }),
|
|
40
40
|
/* @__PURE__ */ e("span", { className: "xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s", children: "More breadcrumbs" })
|
|
41
41
|
] }) : /* @__PURE__ */ n(c, { children: [
|
|
42
|
-
/* @__PURE__ */ e(t, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "
|
|
42
|
+
/* @__PURE__ */ e(t, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "iconXs", "aria-label": "Show more breadcrumbs", children: /* @__PURE__ */ e(d, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) }) }),
|
|
43
43
|
/* @__PURE__ */ e(x, { align: "start", children: r.map((a, o) => /* @__PURE__ */ e(u, { disabled: !a.href && !a.onClick, onClick: () => {
|
|
44
44
|
a.onClick ? a.onClick() : a.href && (window.location.href = a.href);
|
|
45
45
|
}, children: a.label }, o)) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const a=require("react/jsx-runtime"),p=require("react"),f=require("@radix-ui/react-slot"),o=require("lucide-react"),j=require("./button-
|
|
1
|
+
"use client";"use strict";const a=require("react/jsx-runtime"),p=require("react"),f=require("@radix-ui/react-slot"),o=require("lucide-react"),j=require("./button-Ny6OF8Un.cjs"),c=require("./dropdown-menu-BtU3Yhar.cjs");function B(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const n=B(p),i=n.forwardRef(({...e},r)=>a.jsx("nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";const l=n.forwardRef(({...e},r)=>a.jsx("ol",{ref:r,...e,className:"x6s0dn4 x1uuraw0 x78zum5 x1a02dak x1eqnyfr x1o29ju6 x1mzt3pk x13pp3z7"}));l.displayName="BreadcrumbList";const d=n.forwardRef(({...e},r)=>a.jsx("li",{ref:r,...e,className:"x6s0dn4 x3nfvp2 x1o29ju6"}));d.displayName="BreadcrumbItem";const u=n.forwardRef(({asChild:e,...r},s)=>{const t=e?f.Slot:"a";return a.jsx(t,{ref:s,...r,className:"xx6bhzk xt3l3uh xwwtwea x1leyzdx"})});u.displayName="BreadcrumbLink";const x=n.forwardRef(({...e},r)=>a.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",...e,className:"x1sjp1m2 xo1l8bm"}));x.displayName="BreadcrumbPage";const m=({children:e,...r})=>a.jsx("li",{role:"presentation","aria-hidden":"true",...r,children:e&&n.isValidElement(e)?n.cloneElement(e,{className:"x1us9z5t x1vty8ic"}):e??a.jsx(o.ChevronRight,{className:"x1us9z5t x1vty8ic"})});m.displayName="BreadcrumbSeparator";const b=({items:e=[]})=>e.length===0?a.jsxs("span",{role:"presentation","aria-hidden":"true",className:"x6s0dn4 x78zum5 xwfmp28 xl56j7k x2dhfp8",children:[a.jsx(o.MoreHorizontal,{className:"xkive58 x1vfp87d"}),a.jsx("span",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:"More breadcrumbs"})]}):a.jsxs(c.DropdownMenu,{children:[a.jsx(c.DropdownMenuTrigger,{asChild:!0,children:a.jsx(j.Button,{variant:"ghost",size:"iconXs","aria-label":"Show more breadcrumbs",children:a.jsx(o.MoreHorizontal,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})}),a.jsx(c.DropdownMenuContent,{align:"start",children:e.map((r,s)=>a.jsx(c.DropdownMenuItem,{disabled:!r.href&&!r.onClick,onClick:()=>{r.onClick?r.onClick():r.href&&(window.location.href=r.href)},children:r.label},s))})]});b.displayName="BreadcrumbEllipsis";exports.Breadcrumb=i;exports.BreadcrumbEllipsis=b;exports.BreadcrumbItem=d;exports.BreadcrumbLink=u;exports.BreadcrumbList=l;exports.BreadcrumbPage=x;exports.BreadcrumbSeparator=m;
|
package/dist/breadcrumb.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./breadcrumb-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./breadcrumb-D6_IoicI.cjs");exports.Breadcrumb=r.Breadcrumb;exports.BreadcrumbEllipsis=r.BreadcrumbEllipsis;exports.BreadcrumbItem=r.BreadcrumbItem;exports.BreadcrumbLink=r.BreadcrumbLink;exports.BreadcrumbList=r.BreadcrumbList;exports.BreadcrumbPage=r.BreadcrumbPage;exports.BreadcrumbSeparator=r.BreadcrumbSeparator;
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { B as e, a as s, b as c, c as m, d as b, e as d, f as u } from "./breadcrumb-
|
|
2
|
+
import { B as e, a as s, b as c, c as m, d as b, e as d, f as u } from "./breadcrumb-Czu2XwgU.js";
|
|
3
3
|
export {
|
|
4
4
|
e as Breadcrumb,
|
|
5
5
|
s as BreadcrumbEllipsis,
|