@eluan/core 0.6.0 → 0.7.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 +14 -8
- package/bin/eluan.mjs +75 -0
- package/bin/lib/check.mjs +271 -0
- package/bin/lib/skill.mjs +123 -0
- package/dist/{action-popover-DrHKPGqw.cjs → action-popover-Bt7U0g8y.cjs} +1 -1
- package/dist/{action-popover-NkXDAHJT.js → action-popover-jEeycwXM.js} +2 -2
- package/dist/action-popover.cjs +1 -1
- package/dist/action-popover.js +1 -1
- package/dist/{avatar-kDEa0rjF.js → avatar-C1LUOzjw.js} +1 -1
- package/dist/{avatar-B-t3ctR4.cjs → avatar-SwIO4oyt.cjs} +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge-BLInSFM-.cjs +1 -0
- package/dist/{badge-BLZ8V-KC.js → badge-Bj7i1Xf5.js} +12 -10
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{banner-DzSp5WfQ.js → banner-BqEziMp4.js} +3 -4
- package/dist/{banner-CNdwDPqA.cjs → banner-C8OECYHz.cjs} +1 -1
- package/dist/banner.cjs +1 -1
- package/dist/banner.js +1 -1
- package/dist/{breadcrumb-BuxXkm6O.cjs → breadcrumb-BGH_YhOZ.cjs} +1 -1
- package/dist/{breadcrumb-C6qj-tDx.js → breadcrumb-BVXSOA4Z.js} +2 -2
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-BUHQOcAo.cjs +1 -0
- package/dist/{button-DNSNShUc.js → button-fCYiYUPE.js} +52 -45
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-DS5821-k.cjs → calendar-2s_jGUBa.cjs} +10 -10
- package/dist/{calendar-BA2tSwZD.js → calendar-BN9BkjO_.js} +18 -18
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card-CfSvhkGH.js +81 -0
- package/dist/card-DlP39QSZ.cjs +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{carousel-Bb7jpzep.js → carousel-BO6KUdP8.js} +1 -1
- package/dist/{carousel-4AERgboz.cjs → carousel-dypuabh8.cjs} +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{code-block-C9u140Ob.js → code-block-CAXUOKNI.js} +10 -10
- package/dist/{code-block-_dFw7Su1.cjs → code-block-Co8uGXiG.cjs} +2 -2
- package/dist/code-block.cjs +1 -1
- package/dist/code-block.js +1 -1
- package/dist/command-C50Jkuv7.js +132 -0
- package/dist/command-DqNgPVsf.cjs +9 -0
- package/dist/command.cjs +1 -1
- package/dist/command.js +1 -1
- package/dist/components/card.d.ts +7 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/table.d.ts +8 -4
- package/dist/components/typography.d.ts +2 -2
- package/dist/{context-menu-Bd6m1RYU.js → context-menu-CTyczUjx.js} +34 -34
- package/dist/context-menu-oQ6xMN6t.cjs +1 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{credit-card-input-DppPJBne.cjs → credit-card-input-C6oNQBAl.cjs} +1 -1
- package/dist/{credit-card-input-9VPlzvDm.js → credit-card-input-aYftFdRo.js} +1 -1
- package/dist/credit-card-input.cjs +1 -1
- package/dist/credit-card-input.js +1 -1
- package/dist/{date-picker-M5hLx_1s.js → date-picker-DK-G61Nn.js} +3 -3
- package/dist/{date-picker-hE7cDg2B.cjs → date-picker-D_aU_P3A.cjs} +1 -1
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/{datetime-picker-BeRUPJ7s.cjs → datetime-picker-897BvwxW.cjs} +1 -1
- package/dist/{datetime-picker-CIqBZYMH.js → datetime-picker-CECtSobs.js} +4 -4
- package/dist/datetime-picker.cjs +1 -1
- package/dist/datetime-picker.js +1 -1
- package/dist/decimal-input-B7IHYVXP.cjs +1 -0
- package/dist/decimal-input-ohejnbQg.js +177 -0
- package/dist/decimal-input.cjs +1 -1
- package/dist/decimal-input.js +1 -1
- package/dist/dialog-DIGW7qln.cjs +1 -0
- package/dist/{dialog-Bsfviqvy.js → dialog-DVhnZFqE.js} +23 -23
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-BV2rX_ow.cjs +1 -0
- package/dist/dropdown-menu-C6NPtU9J.js +115 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/{email-input-DIiY9Q3S.js → email-input-CRd87a_c.js} +1 -1
- package/dist/{email-input-CehmtNUq.cjs → email-input-Dvj1xSzJ.cjs} +1 -1
- package/dist/email-input.cjs +1 -1
- package/dist/email-input.js +1 -1
- package/dist/{fieldset-5V8wx-KE.js → fieldset-BxINrO_H.js} +6 -6
- package/dist/fieldset-C6cahGeV.cjs +1 -0
- package/dist/fieldset.cjs +1 -1
- package/dist/fieldset.js +1 -1
- package/dist/file-input-BzYcnore.cjs +1 -0
- package/dist/{file-input-B_aBgxmT.js → file-input-Ch16hNA1.js} +55 -55
- package/dist/file-input.cjs +1 -1
- package/dist/file-input.js +1 -1
- package/dist/{footer-fovIsy-0.cjs → footer-B-fRLhqP.cjs} +1 -1
- package/dist/{footer-jWaFq3qk.js → footer-BiiV6-ZD.js} +1 -1
- package/dist/footer.cjs +1 -1
- package/dist/footer.js +1 -1
- package/dist/header-CvhqGcuo.cjs +1 -0
- package/dist/{header-Dnf8AnIx.js → header-DwvyTpRi.js} +22 -22
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/hover-card-BQpzaazK.js +21 -0
- package/dist/{hover-card-C5KsTSZR.cjs → hover-card-V5A1HzEu.cjs} +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +490 -484
- package/dist/input-Dtr0tlf7.cjs +1 -0
- package/dist/{input-CPb9yVU5.js → input-Zs45H33i.js} +32 -29
- package/dist/input-otp-D-T32R3O.cjs +1 -0
- package/dist/input-otp-DwdX6VlR.js +95 -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/{menubar-F1_bhmku.js → menubar-CodcV4b7.js} +28 -28
- package/dist/menubar-bOYi1jKo.cjs +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-CVxkWW29.js → multi-select-ChfbxrG3.js} +27 -27
- package/dist/multi-select-D573XqUT.cjs +1 -0
- package/dist/multi-select.cjs +1 -1
- package/dist/multi-select.js +1 -1
- package/dist/navigation-drawer-C7YYtBXz.js +198 -0
- package/dist/navigation-drawer-Cu2q1NMn.cjs +1 -0
- package/dist/navigation-drawer.cjs +1 -1
- package/dist/navigation-drawer.js +1 -1
- package/dist/{navigation-menu-BjA-PdMY.js → navigation-menu-BEp603xA.js} +16 -16
- package/dist/{navigation-menu-BtpLfxHN.cjs → navigation-menu-tw5cD7mL.cjs} +2 -2
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/number-input-C1RS-p2C.js +66 -0
- package/dist/number-input-N3-IvxZT.cjs +1 -0
- package/dist/number-input.cjs +1 -1
- package/dist/number-input.js +1 -1
- package/dist/{pagination-yKmFlFMR.cjs → pagination-C6e9oVes.cjs} +1 -1
- package/dist/{pagination-D2tjMpVU.js → pagination-XlaE-Plb.js} +31 -31
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.js +1 -1
- package/dist/{password-input-ljwdGCO6.js → password-input-CR6FT6Rh.js} +2 -2
- package/dist/{password-input-CmHubHuU.cjs → password-input-CZ19HPZd.cjs} +1 -1
- package/dist/password-input.cjs +1 -1
- package/dist/password-input.js +1 -1
- package/dist/{phone-input-B8VksCer.cjs → phone-input-BZhkLmI6.cjs} +1 -1
- package/dist/{phone-input-qTL6K8rT.js → phone-input-CT9W87M7.js} +2 -2
- package/dist/phone-input.cjs +1 -1
- package/dist/phone-input.js +1 -1
- package/dist/popover-CE0n5BQv.cjs +1 -0
- package/dist/popover-CguR4kP7.js +70 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/{progress-ChFf9bIq.js → progress-BpUNvswZ.js} +8 -7
- package/dist/progress-DSy_jRee.cjs +1 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/providers/create-theme.d.ts +1 -1
- package/dist/providers/eluan-provider.d.ts +8 -6
- package/dist/{rich-text-DImwK9hN.js → rich-text-CuAa5WkV.js} +21 -21
- package/dist/{rich-text-DzHLeG7W.cjs → rich-text-p7H-0qE7.cjs} +2 -2
- package/dist/rich-text.cjs +1 -1
- package/dist/rich-text.js +1 -1
- package/dist/{search-input-Dgr9kT1a.js → search-input-CxKLBmii.js} +53 -53
- package/dist/{search-input-BKTjebg7.cjs → search-input-XmoL2YjY.cjs} +1 -1
- package/dist/search-input.cjs +1 -1
- package/dist/search-input.js +1 -1
- package/dist/select-BCDam7PR.cjs +1 -0
- package/dist/select-QgjG43ye.js +119 -0
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/sheet-BxNmBMti.cjs +1 -0
- package/dist/{sheet-uiyHNKEw.js → sheet-D0hVuH9a.js} +2 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/slider-Cv7uIp4z.js +16 -0
- package/dist/slider-Dci7KGjg.cjs +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles.css +260 -120
- package/dist/switch-DQ4R-gjR.cjs +1 -0
- package/dist/switch-WaESqUuN.js +9 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/table-YKEWGYnI.js +149 -0
- package/dist/table-zbkgP43L.cjs +1 -0
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-TV4_2wi1.js → tabs-BwNIi7Dl.js} +7 -7
- package/dist/tabs-DItFd2o9.cjs +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea-BWAPWDRt.js +8 -0
- package/dist/textarea-CniUTipL.cjs +1 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/time-input-CeJVQKWO.js +195 -0
- package/dist/time-input-eVFFYo10.cjs +1 -0
- package/dist/time-input.cjs +1 -1
- package/dist/time-input.js +1 -1
- package/dist/{toast-BK0ulAzi.cjs → toast-84RpQJtn.cjs} +1 -1
- package/dist/{toast-hI3pdZ2X.js → toast-BGKaAZwf.js} +1 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-Bx3q15Pu.js → toggle-CxHqX2-V.js} +10 -10
- package/dist/toggle-DrJJAflI.cjs +1 -0
- package/dist/toggle-group-DvoxSJMq.cjs +1 -0
- package/dist/{toggle-group-LaZmOMx_.js → toggle-group-k-kiBnEe.js} +17 -17
- 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/{tooltip-DZqn4wKl.js → tooltip-1Biy6A0m.js} +3 -3
- package/dist/{tooltip-faf1dIXp.cjs → tooltip-DIerl2vz.cjs} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-view-DRmm6oL6.js → tree-view-Bswh2RGr.js} +38 -38
- package/dist/tree-view-DDX9QjzF.cjs +1 -0
- package/dist/tree-view.cjs +1 -1
- package/dist/tree-view.js +1 -1
- package/package.json +6 -2
- package/skills/eluan/DESIGN.md +171 -169
- package/skills/eluan/SKILL.md +47 -11
- package/skills/eluan/components/banner.md +2 -2
- package/skills/eluan/components/breadcrumb.md +1 -1
- package/skills/eluan/components/card.md +9 -8
- package/skills/eluan/components/code-block.md +1 -1
- package/skills/eluan/components/context-menu.md +1 -1
- package/skills/eluan/components/drawer.md +1 -1
- package/skills/eluan/components/dropdown-menu.md +1 -1
- package/skills/eluan/components/grid.md +4 -4
- package/skills/eluan/components/header.md +4 -4
- package/skills/eluan/components/input.md +2 -2
- package/skills/eluan/components/menubar.md +2 -2
- package/skills/eluan/components/navigation-drawer.md +8 -8
- package/skills/eluan/components/navigation-menu.md +1 -1
- package/skills/eluan/components/row.md +2 -2
- package/skills/eluan/components/segmented-control.md +1 -1
- package/skills/eluan/components/separator.md +2 -2
- package/skills/eluan/components/skeleton.md +1 -1
- package/skills/eluan/components/slider.md +1 -1
- package/skills/eluan/components/stack.md +1 -1
- package/skills/eluan/components/stepper.md +3 -3
- package/skills/eluan/components/table.md +7 -7
- package/skills/eluan/components/tabs.md +1 -1
- package/skills/eluan/components/toast.md +2 -2
- package/skills/eluan/components/typography.md +12 -9
- package/skills/eluan/foundations/colour.md +99 -94
- package/skills/eluan/foundations/elevation.md +44 -15
- package/skills/eluan/foundations/iconography.md +4 -4
- package/skills/eluan/foundations/look.md +135 -0
- package/skills/eluan/foundations/radius.md +32 -20
- package/skills/eluan/foundations/spacing.md +19 -19
- package/skills/eluan/foundations/theming.md +48 -33
- package/skills/eluan/foundations/typography.md +49 -43
- package/skills/eluan/patterns/app-shell.md +222 -0
- package/skills/eluan/patterns/dashboard.md +249 -0
- package/skills/eluan/patterns/empty-states.md +20 -26
- package/skills/eluan/patterns/navigation.md +5 -4
- package/skills/eluan/patterns/page-layout.md +104 -20
- package/dist/badge-D1A0Tc79.cjs +0 -1
- package/dist/button--_WI-fM6.cjs +0 -1
- package/dist/card-BNdR5aDa.cjs +0 -1
- package/dist/card-BSgN7WSe.js +0 -70
- package/dist/command-D02vvta9.cjs +0 -9
- package/dist/command-sUMAxm8S.js +0 -132
- package/dist/context-menu-1WehRCpR.cjs +0 -1
- package/dist/decimal-input-Bg2BPKIr.js +0 -177
- package/dist/decimal-input-CkTEjo2J.cjs +0 -1
- package/dist/dialog-DRAoumvB.cjs +0 -1
- package/dist/dropdown-menu-_h_fqgvS.cjs +0 -1
- package/dist/dropdown-menu-p0NkOoTP.js +0 -115
- package/dist/fieldset-C3aAINhi.cjs +0 -1
- package/dist/file-input-D62FEnKg.cjs +0 -1
- package/dist/header-DzItWqW4.cjs +0 -1
- package/dist/hover-card-C_FCzE41.js +0 -21
- package/dist/input-BcjL2oxv.cjs +0 -1
- package/dist/input-otp-BhJ3ERrY.cjs +0 -1
- package/dist/input-otp-CTvJztkH.js +0 -95
- package/dist/menubar-CKWQEl7c.cjs +0 -1
- package/dist/multi-select-DBFINH3F.cjs +0 -1
- package/dist/navigation-drawer-BCBFtLEq.cjs +0 -1
- package/dist/navigation-drawer-BMyHXhhX.js +0 -198
- package/dist/number-input-Cm9YPBOX.js +0 -66
- package/dist/number-input-Dr9MbuRV.cjs +0 -1
- package/dist/popover-DPc4rRsR.js +0 -70
- package/dist/popover-Db6VOysz.cjs +0 -1
- package/dist/progress-BpdmBGaX.cjs +0 -1
- package/dist/select-Cdh991T-.cjs +0 -1
- package/dist/select-Dp5AJ6I-.js +0 -119
- package/dist/sheet-CkXjinUG.cjs +0 -1
- package/dist/slider-BQmbh0Nl.js +0 -16
- package/dist/slider-DK2yk-YK.cjs +0 -1
- package/dist/switch-C2OPCq5Z.cjs +0 -1
- package/dist/switch-CXBWUZcq.js +0 -9
- package/dist/table-DopzfXYj.js +0 -101
- package/dist/table-xNu_KUaU.cjs +0 -1
- package/dist/tabs-D8p6Tr5i.cjs +0 -1
- package/dist/textarea-BnpQmE74.cjs +0 -1
- package/dist/textarea-CJRmnazN.js +0 -8
- package/dist/time-input-A603mEFQ.js +0 -195
- package/dist/time-input-qxljhdEb.cjs +0 -1
- package/dist/toggle-Z3t4jPdv.cjs +0 -1
- package/dist/toggle-group-BZIW4wJp.cjs +0 -1
- package/dist/tree-view-DVQyRQDg.cjs +0 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { Slot as z, Slottable as k } from "@radix-ui/react-slot";
|
|
5
|
+
import { Menu as j, ChevronRight as q, ChevronLeft as D } from "lucide-react";
|
|
6
|
+
import { B as y } from "./button-fCYiYUPE.js";
|
|
7
|
+
import { S as M, i as S, b as C, h as O } from "./sheet-D0hVuH9a.js";
|
|
8
|
+
import { u as E } from "./use-controllable-state-COlF-tdU.js";
|
|
9
|
+
const N = s.createContext({
|
|
10
|
+
collapsed: !1,
|
|
11
|
+
setCollapsed: () => {
|
|
12
|
+
},
|
|
13
|
+
isMobile: !1,
|
|
14
|
+
mobileOpen: !1,
|
|
15
|
+
setMobileOpen: () => {
|
|
16
|
+
}
|
|
17
|
+
}), f = () => {
|
|
18
|
+
const e = s.useContext(N);
|
|
19
|
+
if (!e)
|
|
20
|
+
throw new Error("useNavigationDrawer must be used within a NavigationDrawerProvider");
|
|
21
|
+
return e;
|
|
22
|
+
}, R = ({
|
|
23
|
+
children: e,
|
|
24
|
+
defaultCollapsed: r = !1,
|
|
25
|
+
mobileOpen: i,
|
|
26
|
+
defaultMobileOpen: x = !1,
|
|
27
|
+
onMobileOpenChange: l
|
|
28
|
+
}) => {
|
|
29
|
+
const [t, n] = s.useState(r), [d, w] = s.useState(!1), [v, m] = E({
|
|
30
|
+
value: i,
|
|
31
|
+
defaultValue: x,
|
|
32
|
+
onChange: l
|
|
33
|
+
});
|
|
34
|
+
s.useEffect(() => {
|
|
35
|
+
const c = () => w(window.innerWidth < 768);
|
|
36
|
+
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
37
|
+
}, []);
|
|
38
|
+
const p = s.useMemo(() => ({
|
|
39
|
+
collapsed: t,
|
|
40
|
+
setCollapsed: n,
|
|
41
|
+
isMobile: d,
|
|
42
|
+
mobileOpen: d && v,
|
|
43
|
+
setMobileOpen: m
|
|
44
|
+
}), [t, d, v, m]);
|
|
45
|
+
return /* @__PURE__ */ a(N.Provider, { value: p, children: e });
|
|
46
|
+
}, b = s.forwardRef(({
|
|
47
|
+
children: e,
|
|
48
|
+
...r
|
|
49
|
+
}, i) => {
|
|
50
|
+
const {
|
|
51
|
+
collapsed: x,
|
|
52
|
+
isMobile: l,
|
|
53
|
+
mobileOpen: t,
|
|
54
|
+
setMobileOpen: n
|
|
55
|
+
} = f();
|
|
56
|
+
return l ? /* @__PURE__ */ o(M, { open: t, onOpenChange: n, children: [
|
|
57
|
+
/* @__PURE__ */ a("div", { className: "xtmw667 xixxii4 x1nxzj52 xf5e64p xa41o0o", children: /* @__PURE__ */ a(S, { asChild: !0, children: /* @__PURE__ */ o(y, { variant: "ghost", size: "icon", children: [
|
|
58
|
+
/* @__PURE__ */ a(j, { "aria-hidden": "true", className: "xybwzzh x1gtyvus" }),
|
|
59
|
+
/* @__PURE__ */ a("span", { className: "xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s", children: "Open navigation" })
|
|
60
|
+
] }) }) }),
|
|
61
|
+
/* @__PURE__ */ o(C, { side: "left", layout: "navigationDrawer", children: [
|
|
62
|
+
/* @__PURE__ */ a("div", { className: "xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s", children: /* @__PURE__ */ a(O, { children: "Navigation menu" }) }),
|
|
63
|
+
/* @__PURE__ */ a("nav", { className: "x78zum5 xdt5ytf x5yr21d", children: e })
|
|
64
|
+
] })
|
|
65
|
+
] }) : /* @__PURE__ */ a("aside", { ref: i, "data-collapsed": x, ...r, ...{
|
|
66
|
+
0: {
|
|
67
|
+
className: "x1q2rbfr x78zum5 xdt5ytf x5yr21d x1d8287x xxrbq2n xwwtwea x1jch2nu"
|
|
68
|
+
},
|
|
69
|
+
1: {
|
|
70
|
+
className: "x1q2rbfr x78zum5 xdt5ytf x5yr21d x1d8287x xxrbq2n xwwtwea x17plpj3"
|
|
71
|
+
}
|
|
72
|
+
}[!!x << 0], children: e });
|
|
73
|
+
});
|
|
74
|
+
b.displayName = "NavigationDrawer";
|
|
75
|
+
const L = s.forwardRef(({
|
|
76
|
+
children: e,
|
|
77
|
+
...r
|
|
78
|
+
}, i) => {
|
|
79
|
+
const {
|
|
80
|
+
collapsed: x
|
|
81
|
+
} = f();
|
|
82
|
+
return /* @__PURE__ */ a("div", { ref: i, ...r, ...{
|
|
83
|
+
0: {
|
|
84
|
+
className: "x6s0dn4 x78zum5 xlev6zl x1co5670"
|
|
85
|
+
},
|
|
86
|
+
1: {
|
|
87
|
+
className: "x6s0dn4 x78zum5 xlev6zl x16pzmsl"
|
|
88
|
+
}
|
|
89
|
+
}[!!x << 0], children: !x && e });
|
|
90
|
+
});
|
|
91
|
+
L.displayName = "NavigationDrawerHeader";
|
|
92
|
+
const T = s.forwardRef((e, r) => /* @__PURE__ */ a("div", { ref: r, ...e, className: "x98rzlu x1odjw0f x11omchh xsal60d x185mbhu x1erryur xpxk2xe xv2lhpe x1l28vdp xegry7s x156huuk xlmp1jo x1s8a2r1" }));
|
|
93
|
+
T.displayName = "NavigationDrawerContent";
|
|
94
|
+
const I = s.forwardRef((e, r) => /* @__PURE__ */ a("div", { ref: r, ...e, className: "x11omchh" }));
|
|
95
|
+
I.displayName = "NavigationDrawerFooter";
|
|
96
|
+
const g = s.forwardRef(({
|
|
97
|
+
onClick: e,
|
|
98
|
+
...r
|
|
99
|
+
}, i) => {
|
|
100
|
+
const {
|
|
101
|
+
collapsed: x,
|
|
102
|
+
setCollapsed: l,
|
|
103
|
+
isMobile: t
|
|
104
|
+
} = f();
|
|
105
|
+
return t ? null : /* @__PURE__ */ a(y, { ref: i, variant: "ghost", size: "iconSm", "aria-label": x ? "Expand navigation" : "Collapse navigation", onClick: (n) => {
|
|
106
|
+
l(!x), e == null || e(n);
|
|
107
|
+
}, ...r, children: x ? /* @__PURE__ */ a(q, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) : /* @__PURE__ */ a(D, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) });
|
|
108
|
+
});
|
|
109
|
+
g.displayName = "NavigationDrawerToggle";
|
|
110
|
+
const P = s.forwardRef(({
|
|
111
|
+
icon: e,
|
|
112
|
+
active: r,
|
|
113
|
+
asChild: i,
|
|
114
|
+
children: x,
|
|
115
|
+
onClick: l,
|
|
116
|
+
...t
|
|
117
|
+
}, n) => {
|
|
118
|
+
const {
|
|
119
|
+
collapsed: d,
|
|
120
|
+
isMobile: w,
|
|
121
|
+
setMobileOpen: v
|
|
122
|
+
} = f(), m = (u) => {
|
|
123
|
+
l == null || l(u), w && v(!1);
|
|
124
|
+
}, p = (u) => d ? null : /* @__PURE__ */ a("span", { className: "xb3r6kr xlyipyv xuxw1ft", children: u }), c = e ? /* @__PURE__ */ a("span", { className: "x6s0dn4 x78zum5 x2lah0s xkive58 xl56j7k x1vfp87d", children: s.isValidElement(e) ? s.cloneElement(e, {
|
|
125
|
+
width: "100%",
|
|
126
|
+
height: "100%"
|
|
127
|
+
}) : e }) : null, h = {
|
|
128
|
+
0: {
|
|
129
|
+
className: "x6s0dn4 x1c6t507 x1uuraw0 x78zum5 x1eqnyfr xo1l8bm x1e094fc x2bf1bm xilykff xxyr57j x16pzmsl xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3wwfir x1leyzdx x3uv6rr xi5y0ii"
|
|
130
|
+
},
|
|
131
|
+
2: {
|
|
132
|
+
className: "x6s0dn4 x1c6t507 x78zum5 x1eqnyfr x1e094fc x2bf1bm xilykff xxyr57j x16pzmsl xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3uv6rr xi5y0ii x1n4d3k6 x1bqjvcl x1sjp1m2 xk50ysn x1ldlpc5 x1leyzdx"
|
|
133
|
+
},
|
|
134
|
+
1: {
|
|
135
|
+
className: "x6s0dn4 x1c6t507 x1uuraw0 x78zum5 x1eqnyfr xo1l8bm x1e094fc x2bf1bm xilykff xxyr57j xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3wwfir x1leyzdx x3uv6rr xi5y0ii xl56j7k xnjsko4 x7lq6p2"
|
|
136
|
+
},
|
|
137
|
+
3: {
|
|
138
|
+
className: "x6s0dn4 x1c6t507 x78zum5 x1eqnyfr x1e094fc x2bf1bm xilykff xxyr57j xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3uv6rr xi5y0ii x1n4d3k6 x1bqjvcl x1sjp1m2 xk50ysn x1ldlpc5 x1leyzdx xl56j7k xnjsko4 x7lq6p2"
|
|
139
|
+
}
|
|
140
|
+
}[!!r << 1 | !!d << 0];
|
|
141
|
+
if (i) {
|
|
142
|
+
const u = s.isValidElement(x) ? s.cloneElement(x, void 0, p(x.props.children)) : x;
|
|
143
|
+
return /* @__PURE__ */ o(z, { ref: n, ...h, ...t, onClick: m, children: [
|
|
144
|
+
c,
|
|
145
|
+
/* @__PURE__ */ a(k, { children: u })
|
|
146
|
+
] });
|
|
147
|
+
}
|
|
148
|
+
return /* @__PURE__ */ o("a", { ref: n, ...h, ...t, onClick: m, children: [
|
|
149
|
+
c,
|
|
150
|
+
p(x)
|
|
151
|
+
] });
|
|
152
|
+
});
|
|
153
|
+
P.displayName = "NavigationDrawerItem";
|
|
154
|
+
const V = s.forwardRef(({
|
|
155
|
+
label: e,
|
|
156
|
+
children: r,
|
|
157
|
+
...i
|
|
158
|
+
}, x) => {
|
|
159
|
+
const {
|
|
160
|
+
collapsed: l
|
|
161
|
+
} = f();
|
|
162
|
+
return /* @__PURE__ */ o("div", { ref: x, ...i, className: "x136oad8", children: [
|
|
163
|
+
e && /* @__PURE__ */ a("h4", { ...{
|
|
164
|
+
0: {
|
|
165
|
+
className: "x1uuraw0 x51wmvv x1s688f x1ghz6dp x1ojbapb x16pzmsl"
|
|
166
|
+
},
|
|
167
|
+
1: {
|
|
168
|
+
className: "x1uuraw0 x51wmvv x1s688f x1ghz6dp x1ojbapb x16pzmsl xg01cxk"
|
|
169
|
+
}
|
|
170
|
+
}[!!l << 0], children: e }),
|
|
171
|
+
/* @__PURE__ */ a("div", { className: "x78zum5 xdt5ytf x1o29ju6", children: r })
|
|
172
|
+
] });
|
|
173
|
+
});
|
|
174
|
+
V.displayName = "NavigationDrawerGroup";
|
|
175
|
+
const B = ({
|
|
176
|
+
children: e,
|
|
177
|
+
sidebar: r,
|
|
178
|
+
...i
|
|
179
|
+
}) => /* @__PURE__ */ a(R, { ...i, children: /* @__PURE__ */ o("div", { className: "x1q5rci xu49v3h x78zum5 x5yr21d", children: [
|
|
180
|
+
/* @__PURE__ */ a(b, { children: r }),
|
|
181
|
+
/* @__PURE__ */ o("div", { className: "x78zum5 x98rzlu xdt5ytf xeuugli", children: [
|
|
182
|
+
/* @__PURE__ */ a("div", { className: "x6s0dn4 x78zum5 xlev6zl x1wu0y3b", children: /* @__PURE__ */ a(g, {}) }),
|
|
183
|
+
/* @__PURE__ */ a("div", { className: "x98rzlu xysyzu8", children: e })
|
|
184
|
+
] })
|
|
185
|
+
] }) });
|
|
186
|
+
B.displayName = "NavigationDrawerLayout";
|
|
187
|
+
export {
|
|
188
|
+
b as N,
|
|
189
|
+
T as a,
|
|
190
|
+
I as b,
|
|
191
|
+
V as c,
|
|
192
|
+
L as d,
|
|
193
|
+
P as e,
|
|
194
|
+
B as f,
|
|
195
|
+
R as g,
|
|
196
|
+
g as h,
|
|
197
|
+
f as u
|
|
198
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const a=require("react/jsx-runtime"),R=require("react"),g=require("@radix-ui/react-slot"),N=require("lucide-react"),b=require("./button-BUHQOcAo.cjs"),f=require("./sheet-BxNmBMti.cjs"),E=require("./use-controllable-state-D1HvlFwL.cjs");function L(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const x=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,x.get?x:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const t=L(R),z=t.createContext({collapsed:!1,setCollapsed:()=>{},isMobile:!1,mobileOpen:!1,setMobileOpen:()=>{}}),c=()=>{const e=t.useContext(z);if(!e)throw new Error("useNavigationDrawer must be used within a NavigationDrawerProvider");return e},k=({children:e,defaultCollapsed:r=!1,mobileOpen:s,defaultMobileOpen:x=!1,onMobileOpenChange:i})=>{const[n,l]=t.useState(r),[o,p]=t.useState(!1),[v,u]=E.useControllableState({value:s,defaultValue:x,onChange:i});t.useEffect(()=>{const d=()=>p(window.innerWidth<768);return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const w=t.useMemo(()=>({collapsed:n,setCollapsed:l,isMobile:o,mobileOpen:o&&v,setMobileOpen:u}),[n,o,v,u]);return a.jsx(z.Provider,{value:w,children:e})},h=t.forwardRef(({children:e,...r},s)=>{const{collapsed:x,isMobile:i,mobileOpen:n,setMobileOpen:l}=c();return i?a.jsxs(f.Sheet,{open:n,onOpenChange:l,children:[a.jsx("div",{className:"xtmw667 xixxii4 x1nxzj52 xf5e64p xa41o0o",children:a.jsx(f.SheetTrigger,{asChild:!0,children:a.jsxs(b.Button,{variant:"ghost",size:"icon",children:[a.jsx(N.Menu,{"aria-hidden":"true",className:"xybwzzh x1gtyvus"}),a.jsx("span",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:"Open navigation"})]})})}),a.jsxs(f.SheetContent,{side:"left",layout:"navigationDrawer",children:[a.jsx("div",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:a.jsx(f.SheetTitle,{children:"Navigation menu"})}),a.jsx("nav",{className:"x78zum5 xdt5ytf x5yr21d",children:e})]})]}):a.jsx("aside",{ref:s,"data-collapsed":x,...r,...{0:{className:"x1q2rbfr x78zum5 xdt5ytf x5yr21d x1d8287x xxrbq2n xwwtwea x1jch2nu"},1:{className:"x1q2rbfr x78zum5 xdt5ytf x5yr21d x1d8287x xxrbq2n xwwtwea x17plpj3"}}[!!x<<0],children:e})});h.displayName="NavigationDrawer";const D=t.forwardRef(({children:e,...r},s)=>{const{collapsed:x}=c();return a.jsx("div",{ref:s,...r,...{0:{className:"x6s0dn4 x78zum5 xlev6zl x1co5670"},1:{className:"x6s0dn4 x78zum5 xlev6zl x16pzmsl"}}[!!x<<0],children:!x&&e})});D.displayName="NavigationDrawerHeader";const q=t.forwardRef((e,r)=>a.jsx("div",{ref:r,...e,className:"x98rzlu x1odjw0f x11omchh xsal60d x185mbhu x1erryur xpxk2xe xv2lhpe x1l28vdp xegry7s x156huuk xlmp1jo x1s8a2r1"}));q.displayName="NavigationDrawerContent";const O=t.forwardRef((e,r)=>a.jsx("div",{ref:r,...e,className:"x11omchh"}));O.displayName="NavigationDrawerFooter";const y=t.forwardRef(({onClick:e,...r},s)=>{const{collapsed:x,setCollapsed:i,isMobile:n}=c();return n?null:a.jsx(b.Button,{ref:s,variant:"ghost",size:"iconSm","aria-label":x?"Expand navigation":"Collapse navigation",onClick:l=>{i(!x),e==null||e(l)},...r,children:x?a.jsx(N.ChevronRight,{"aria-hidden":"true",className:"xkive58 x1vfp87d"}):a.jsx(N.ChevronLeft,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})});y.displayName="NavigationDrawerToggle";const S=t.forwardRef(({icon:e,active:r,asChild:s,children:x,onClick:i,...n},l)=>{const{collapsed:o,isMobile:p,setMobileOpen:v}=c(),u=m=>{i==null||i(m),p&&v(!1)},w=m=>o?null:a.jsx("span",{className:"xb3r6kr xlyipyv xuxw1ft",children:m}),d=e?a.jsx("span",{className:"x6s0dn4 x78zum5 x2lah0s xkive58 xl56j7k x1vfp87d",children:t.isValidElement(e)?t.cloneElement(e,{width:"100%",height:"100%"}):e}):null,j={0:{className:"x6s0dn4 x1c6t507 x1uuraw0 x78zum5 x1eqnyfr xo1l8bm x1e094fc x2bf1bm xilykff xxyr57j x16pzmsl xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3wwfir x1leyzdx x3uv6rr xi5y0ii"},2:{className:"x6s0dn4 x1c6t507 x78zum5 x1eqnyfr x1e094fc x2bf1bm xilykff xxyr57j x16pzmsl xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3uv6rr xi5y0ii x1n4d3k6 x1bqjvcl x1sjp1m2 xk50ysn x1ldlpc5 x1leyzdx"},1:{className:"x6s0dn4 x1c6t507 x1uuraw0 x78zum5 x1eqnyfr xo1l8bm x1e094fc x2bf1bm xilykff xxyr57j xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3wwfir x1leyzdx x3uv6rr xi5y0ii xl56j7k xnjsko4 x7lq6p2"},3:{className:"x6s0dn4 x1c6t507 x78zum5 x1eqnyfr x1e094fc x2bf1bm xilykff xxyr57j xkrqix3 xx6bhzk x1yyhn7k xwwtwea x3uv6rr xi5y0ii x1n4d3k6 x1bqjvcl x1sjp1m2 xk50ysn x1ldlpc5 x1leyzdx xl56j7k xnjsko4 x7lq6p2"}}[!!r<<1|!!o<<0];if(s){const m=t.isValidElement(x)?t.cloneElement(x,void 0,w(x.props.children)):x;return a.jsxs(g.Slot,{ref:l,...j,...n,onClick:u,children:[d,a.jsx(g.Slottable,{children:m})]})}return a.jsxs("a",{ref:l,...j,...n,onClick:u,children:[d,w(x)]})});S.displayName="NavigationDrawerItem";const C=t.forwardRef(({label:e,children:r,...s},x)=>{const{collapsed:i}=c();return a.jsxs("div",{ref:x,...s,className:"x136oad8",children:[e&&a.jsx("h4",{...{0:{className:"x1uuraw0 x51wmvv x1s688f x1ghz6dp x1ojbapb x16pzmsl"},1:{className:"x1uuraw0 x51wmvv x1s688f x1ghz6dp x1ojbapb x16pzmsl xg01cxk"}}[!!i<<0],children:e}),a.jsx("div",{className:"x78zum5 xdt5ytf x1o29ju6",children:r})]})});C.displayName="NavigationDrawerGroup";const M=({children:e,sidebar:r,...s})=>a.jsx(k,{...s,children:a.jsxs("div",{className:"x1q5rci xu49v3h x78zum5 x5yr21d",children:[a.jsx(h,{children:r}),a.jsxs("div",{className:"x78zum5 x98rzlu xdt5ytf xeuugli",children:[a.jsx("div",{className:"x6s0dn4 x78zum5 xlev6zl x1wu0y3b",children:a.jsx(y,{})}),a.jsx("div",{className:"x98rzlu xysyzu8",children:e})]})]})});M.displayName="NavigationDrawerLayout";exports.NavigationDrawer=h;exports.NavigationDrawerContent=q;exports.NavigationDrawerFooter=O;exports.NavigationDrawerGroup=C;exports.NavigationDrawerHeader=D;exports.NavigationDrawerItem=S;exports.NavigationDrawerLayout=M;exports.NavigationDrawerProvider=k;exports.NavigationDrawerToggle=y;exports.useNavigationDrawer=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./navigation-drawer-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./navigation-drawer-Cu2q1NMn.cjs");exports.NavigationDrawer=a.NavigationDrawer;exports.NavigationDrawerContent=a.NavigationDrawerContent;exports.NavigationDrawerFooter=a.NavigationDrawerFooter;exports.NavigationDrawerGroup=a.NavigationDrawerGroup;exports.NavigationDrawerHeader=a.NavigationDrawerHeader;exports.NavigationDrawerItem=a.NavigationDrawerItem;exports.NavigationDrawerLayout=a.NavigationDrawerLayout;exports.NavigationDrawerProvider=a.NavigationDrawerProvider;exports.NavigationDrawerToggle=a.NavigationDrawerToggle;exports.useNavigationDrawer=a.useNavigationDrawer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { N as e, a as i, b as o, c as t, d as g, e as n, f as s, g as v, h as N, u as w } from "./navigation-drawer-
|
|
2
|
+
import { N as e, a as i, b as o, c as t, d as g, e as n, f as s, g as v, h as N, u as w } from "./navigation-drawer-C7YYtBXz.js";
|
|
3
3
|
export {
|
|
4
4
|
e as NavigationDrawer,
|
|
5
5
|
i as NavigationDrawerContent,
|
|
@@ -13,46 +13,46 @@ const l = `
|
|
|
13
13
|
}, i) => /* @__PURE__ */ t(x.Root, { ref: i, ...e, className: "x6s0dn4 x78zum5 x845mor xl56j7k x1t8xbu x1n2onr6 x1n327nk", children: [
|
|
14
14
|
/* @__PURE__ */ s("style", { children: l }),
|
|
15
15
|
a,
|
|
16
|
-
/* @__PURE__ */ s(
|
|
16
|
+
/* @__PURE__ */ s(r, {})
|
|
17
17
|
] }));
|
|
18
18
|
d.displayName = x.Root.displayName;
|
|
19
19
|
const c = n.forwardRef(({
|
|
20
20
|
...a
|
|
21
21
|
}, e) => /* @__PURE__ */ s(x.List, { ref: e, ...a, className: "x6s0dn4 x78zum5 x845mor x1o29ju6 xl56j7k xe8uvvx x1ghz6dp x1717udv" }));
|
|
22
22
|
c.displayName = x.List.displayName;
|
|
23
|
-
const N = x.Item, f = () => "x6s0dn4 x1dyo0bm
|
|
23
|
+
const N = x.Item, f = () => "x6s0dn4 x1dyo0bm x1c6t507 x3nfvp2 x1eqnyfr xk50ysn x1h5pcsu xl56j7k xrtip4p x16pzmsl xx6bhzk xs2xxs2 xwwtwea xezivpi x3wwfir x1leyzdx xg8umi8 x1i4teta xhlp2gg xvp245x x1qg2s8m xaqnwrm x1og64oa xerqhm1", p = n.forwardRef(({
|
|
24
24
|
children: a,
|
|
25
25
|
...e
|
|
26
26
|
}, i) => {
|
|
27
|
-
const
|
|
27
|
+
const o = {
|
|
28
28
|
className: "xkive58 xeg409m xx6bhzk x11xpdln xwwtwea x1vfp87d"
|
|
29
29
|
};
|
|
30
|
-
return /* @__PURE__ */ t(x.Trigger, { ref: i, ...e, className: "x6s0dn4 x1dyo0bm
|
|
30
|
+
return /* @__PURE__ */ t(x.Trigger, { ref: i, ...e, className: "x6s0dn4 x1dyo0bm x1c6t507 x3nfvp2 x1eqnyfr xk50ysn x1h5pcsu xl56j7k xrtip4p x16pzmsl xx6bhzk xs2xxs2 xwwtwea xezivpi x3wwfir x1leyzdx xg8umi8 x1i4teta xhlp2gg xvp245x x1qg2s8m xaqnwrm x1og64oa xerqhm1", children: [
|
|
31
31
|
a,
|
|
32
|
-
/* @__PURE__ */ s(m, { "aria-hidden": "true", className: `${
|
|
32
|
+
/* @__PURE__ */ s(m, { "aria-hidden": "true", className: `${o.className} eluan-navmenu-chevron`, style: o.style })
|
|
33
33
|
] });
|
|
34
34
|
});
|
|
35
35
|
p.displayName = x.Trigger.displayName;
|
|
36
|
-
const
|
|
36
|
+
const g = n.forwardRef(({
|
|
37
37
|
...a
|
|
38
38
|
}, e) => /* @__PURE__ */ s(x.Content, { ref: e, ...a, className: "xu96u03 xasx5ux x13vifvy xh8yej3 xsyqjbm xowshl7" }));
|
|
39
|
-
|
|
40
|
-
const w = x.Link,
|
|
39
|
+
g.displayName = x.Content.displayName;
|
|
40
|
+
const w = x.Link, r = n.forwardRef(({
|
|
41
41
|
...a
|
|
42
|
-
}, e) => /* @__PURE__ */ s("div", { className: "x78zum5 x1nhvcw1 xu96u03 x10l6tqk xdsb8wn", children: /* @__PURE__ */ s(x.Viewport, { ref: e, ...a, className: "x1dyo0bm xsdfdjn
|
|
43
|
-
|
|
44
|
-
const
|
|
42
|
+
}, e) => /* @__PURE__ */ s("div", { className: "x78zum5 x1nhvcw1 xu96u03 x10l6tqk xdsb8wn", children: /* @__PURE__ */ s(x.Viewport, { ref: e, ...a, className: "x1dyo0bm xsdfdjn x9nsp9x x1y0btm7 xmkeg23 x1n8cjvk xa18zv3 xeyyg3g x6ixs0r xb3r6kr x1n2onr6 x1dp6rp6 xh8yej3 x1qkdwoa" }) }));
|
|
43
|
+
r.displayName = x.Viewport.displayName;
|
|
44
|
+
const u = n.forwardRef(({
|
|
45
45
|
...a
|
|
46
|
-
}, e) => /* @__PURE__ */ s(x.Indicator, { ref: e, ...a, className: "xuk3077 x78zum5 xhl8ny5 xl56j7k xb3r6kr xdsb8wn x1vjfegm", children: /* @__PURE__ */ s("div", { className: "x1cqd74s x20okip
|
|
47
|
-
|
|
46
|
+
}, e) => /* @__PURE__ */ s(x.Indicator, { ref: e, ...a, className: "xuk3077 x78zum5 xhl8ny5 xl56j7k xb3r6kr xdsb8wn x1vjfegm", children: /* @__PURE__ */ s("div", { className: "x1cqd74s x20okip x1bo7fzd xl7j9bc x1n2onr6 xgnilib x1158fpu x1y64zhs" }) }));
|
|
47
|
+
u.displayName = x.Indicator.displayName;
|
|
48
48
|
export {
|
|
49
49
|
d as N,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
g as a,
|
|
51
|
+
u as b,
|
|
52
52
|
N as c,
|
|
53
53
|
w as d,
|
|
54
54
|
c as e,
|
|
55
55
|
p as f,
|
|
56
|
-
|
|
56
|
+
r as g,
|
|
57
57
|
f as n
|
|
58
58
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";"use strict";const x=require("react/jsx-runtime"),g=require("react"),
|
|
1
|
+
"use client";"use strict";const x=require("react/jsx-runtime"),g=require("react"),p=require("@radix-ui/react-navigation-menu"),v=require("lucide-react");function r(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=r(g),a=r(p),N=`
|
|
2
2
|
[data-state="open"] > .eluan-navmenu-chevron {
|
|
3
3
|
transform: rotate(180deg);
|
|
4
4
|
}
|
|
5
|
-
`,c=t.forwardRef(({children:e,...n},i)=>x.jsxs(a.Root,{ref:i,...n,className:"x6s0dn4 x78zum5 x845mor xl56j7k x1t8xbu x1n2onr6 x1n327nk",children:[x.jsx("style",{children:N}),e,x.jsx(
|
|
5
|
+
`,c=t.forwardRef(({children:e,...n},i)=>x.jsxs(a.Root,{ref:i,...n,className:"x6s0dn4 x78zum5 x845mor xl56j7k x1t8xbu x1n2onr6 x1n327nk",children:[x.jsx("style",{children:N}),e,x.jsx(o,{})]}));c.displayName=a.Root.displayName;const l=t.forwardRef(({...e},n)=>x.jsx(a.List,{ref:n,...e,className:"x6s0dn4 x78zum5 x845mor x1o29ju6 xl56j7k xe8uvvx x1ghz6dp x1717udv"}));l.displayName=a.List.displayName;const y=a.Item,f=()=>"x6s0dn4 x1dyo0bm x1c6t507 x3nfvp2 x1eqnyfr xk50ysn x1h5pcsu xl56j7k xrtip4p x16pzmsl xx6bhzk xs2xxs2 xwwtwea xezivpi x3wwfir x1leyzdx xg8umi8 x1i4teta xhlp2gg xvp245x x1qg2s8m xaqnwrm x1og64oa xerqhm1",u=t.forwardRef(({children:e,...n},i)=>{const s={className:"xkive58 xeg409m xx6bhzk x11xpdln xwwtwea x1vfp87d"};return x.jsxs(a.Trigger,{ref:i,...n,className:"x6s0dn4 x1dyo0bm x1c6t507 x3nfvp2 x1eqnyfr xk50ysn x1h5pcsu xl56j7k xrtip4p x16pzmsl xx6bhzk xs2xxs2 xwwtwea xezivpi x3wwfir x1leyzdx xg8umi8 x1i4teta xhlp2gg xvp245x x1qg2s8m xaqnwrm x1og64oa xerqhm1",children:[e,x.jsx(v.ChevronDown,{"aria-hidden":"true",className:`${s.className} eluan-navmenu-chevron`,style:s.style})]})});u.displayName=a.Trigger.displayName;const m=t.forwardRef(({...e},n)=>x.jsx(a.Content,{ref:n,...e,className:"xu96u03 xasx5ux x13vifvy xh8yej3 xsyqjbm xowshl7"}));m.displayName=a.Content.displayName;const w=a.Link,o=t.forwardRef(({...e},n)=>x.jsx("div",{className:"x78zum5 x1nhvcw1 xu96u03 x10l6tqk xdsb8wn",children:x.jsx(a.Viewport,{ref:n,...e,className:"x1dyo0bm xsdfdjn x9nsp9x x1y0btm7 xmkeg23 x1n8cjvk xa18zv3 xeyyg3g x6ixs0r xb3r6kr x1n2onr6 x1dp6rp6 xh8yej3 x1qkdwoa"})}));o.displayName=a.Viewport.displayName;const d=t.forwardRef(({...e},n)=>x.jsx(a.Indicator,{ref:n,...e,className:"xuk3077 x78zum5 xhl8ny5 xl56j7k xb3r6kr xdsb8wn x1vjfegm",children:x.jsx("div",{className:"x1cqd74s x20okip x1bo7fzd xl7j9bc x1n2onr6 xgnilib x1158fpu x1y64zhs"})}));d.displayName=a.Indicator.displayName;exports.NavigationMenu=c;exports.NavigationMenuContent=m;exports.NavigationMenuIndicator=d;exports.NavigationMenuItem=y;exports.NavigationMenuLink=w;exports.NavigationMenuList=l;exports.NavigationMenuTrigger=u;exports.NavigationMenuViewport=o;exports.navigationMenuTriggerStyle=f;
|
package/dist/navigation-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./navigation-menu-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./navigation-menu-tw5cD7mL.cjs");exports.NavigationMenu=i.NavigationMenu;exports.NavigationMenuContent=i.NavigationMenuContent;exports.NavigationMenuIndicator=i.NavigationMenuIndicator;exports.NavigationMenuItem=i.NavigationMenuItem;exports.NavigationMenuLink=i.NavigationMenuLink;exports.NavigationMenuList=i.NavigationMenuList;exports.NavigationMenuTrigger=i.NavigationMenuTrigger;exports.NavigationMenuViewport=i.NavigationMenuViewport;exports.navigationMenuTriggerStyle=i.navigationMenuTriggerStyle;
|
package/dist/navigation-menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { N as n, a as e, b as t, c as g, d as o, e as s, f as u, g as v, n as M } from "./navigation-menu-
|
|
2
|
+
import { N as n, a as e, b as t, c as g, d as o, e as s, f as u, g as v, n as M } from "./navigation-menu-BEp603xA.js";
|
|
3
3
|
export {
|
|
4
4
|
n as NavigationMenu,
|
|
5
5
|
e as NavigationMenuContent,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as A } from "react/jsx-runtime";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { Minus as B, Plus as K } from "lucide-react";
|
|
5
|
+
import { I as N } from "./input-Zs45H33i.js";
|
|
6
|
+
const M = p.forwardRef(({
|
|
7
|
+
value: c,
|
|
8
|
+
onValueChange: r,
|
|
9
|
+
min: o,
|
|
10
|
+
max: i,
|
|
11
|
+
step: a = 1,
|
|
12
|
+
showControls: z = !0,
|
|
13
|
+
allowNegative: I = !0,
|
|
14
|
+
clampOnBlur: D = !0,
|
|
15
|
+
disabled: u,
|
|
16
|
+
...l
|
|
17
|
+
}, f) => {
|
|
18
|
+
const [x, d] = p.useState(c !== void 0 ? c.toString() : "");
|
|
19
|
+
p.useEffect(() => {
|
|
20
|
+
c !== void 0 && d(c.toString());
|
|
21
|
+
}, [c]);
|
|
22
|
+
const m = (t) => {
|
|
23
|
+
let e = t;
|
|
24
|
+
return o !== void 0 && e < o && (e = o), i !== void 0 && e > i && (e = i), e;
|
|
25
|
+
}, s = (t) => {
|
|
26
|
+
if (t === "" || t === "-") return;
|
|
27
|
+
const e = parseFloat(t);
|
|
28
|
+
return isNaN(e) ? void 0 : e;
|
|
29
|
+
}, w = (t) => {
|
|
30
|
+
let e = t.target.value;
|
|
31
|
+
if (I || (e = e.replace(/-/g, "")), !/^-?\d*\.?\d*$/.test(e))
|
|
32
|
+
return;
|
|
33
|
+
d(e);
|
|
34
|
+
const j = s(e);
|
|
35
|
+
r == null || r(j);
|
|
36
|
+
}, y = () => {
|
|
37
|
+
const t = s(x);
|
|
38
|
+
if (t !== void 0 && D) {
|
|
39
|
+
const e = m(t);
|
|
40
|
+
d(e.toString()), r == null || r(e);
|
|
41
|
+
}
|
|
42
|
+
}, v = () => {
|
|
43
|
+
const t = s(x) ?? 0, e = m(t + a);
|
|
44
|
+
d(e.toString()), r == null || r(e);
|
|
45
|
+
}, b = () => {
|
|
46
|
+
const t = s(x) ?? 0, e = m(t - a);
|
|
47
|
+
d(e.toString()), r == null || r(e);
|
|
48
|
+
}, k = (t) => {
|
|
49
|
+
t.key === "ArrowUp" ? (t.preventDefault(), v()) : t.key === "ArrowDown" && (t.preventDefault(), b());
|
|
50
|
+
}, S = () => {
|
|
51
|
+
const t = s(x) ?? 0;
|
|
52
|
+
return o === void 0 || t > o;
|
|
53
|
+
}, q = () => {
|
|
54
|
+
const t = s(x) ?? 0;
|
|
55
|
+
return i === void 0 || t < i;
|
|
56
|
+
};
|
|
57
|
+
return z ? /* @__PURE__ */ A("div", { className: "x78zum5", children: [
|
|
58
|
+
/* @__PURE__ */ n("button", { type: "button", "aria-label": "Decrease", className: "x6s0dn4 xucfsk5 x7xvpo5 x1y0btm7 xmkeg23 x1yvyprb x1uuraw0 x78zum5 x1h5pcsu xl56j7k xx6bhzk x1qsmvhx xwwtwea xyp5bzy x3wwfir x1leyzdx x1qg2s8m x1s07b3s xaqnwrm xgfja2r x10kefbs x16g0hrh", onClick: b, disabled: !S() || u, tabIndex: -1, children: /* @__PURE__ */ n(B, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) }),
|
|
59
|
+
/* @__PURE__ */ n(N, { type: "text", inputMode: "decimal", attachment: "middle", textAlign: "center", textStyle: "mono", ref: f, value: x, onChange: w, onBlur: y, onKeyDown: k, disabled: u, ...l }),
|
|
60
|
+
/* @__PURE__ */ n("button", { type: "button", "aria-label": "Increase", className: "x6s0dn4 xucfsk5 x7xvpo5 x1y0btm7 xmkeg23 x1yvyprb x1uuraw0 x78zum5 x1h5pcsu xl56j7k xx6bhzk x1qsmvhx xwwtwea xyp5bzy x3wwfir x1leyzdx x1qg2s8m x1s07b3s xaqnwrm xyj58a3 xywaodx x1gw04aq", onClick: v, disabled: !q() || u, tabIndex: -1, children: /* @__PURE__ */ n(K, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) })
|
|
61
|
+
] }) : /* @__PURE__ */ n(N, { type: "text", inputMode: "decimal", textStyle: "mono", ref: f, value: x, onChange: w, onBlur: y, onKeyDown: k, disabled: u, ...l });
|
|
62
|
+
});
|
|
63
|
+
M.displayName = "NumberInput";
|
|
64
|
+
export {
|
|
65
|
+
M as N
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const i=require("react/jsx-runtime"),g=require("react"),k=require("lucide-react"),N=require("./input-Dtr0tlf7.cjs");function M(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(r,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return r.default=n,Object.freeze(r)}const l=M(g),q=l.forwardRef(({value:n,onValueChange:r,min:c,max:s,step:p=1,showControls:z=!0,allowNegative:D=!0,clampOnBlur:I=!0,disabled:d,...m},f)=>{const[x,u]=l.useState(n!==void 0?n.toString():"");l.useEffect(()=>{n!==void 0&&u(n.toString())},[n]);const a=t=>{let e=t;return c!==void 0&&e<c&&(e=c),s!==void 0&&e>s&&(e=s),e},o=t=>{if(t===""||t==="-")return;const e=parseFloat(t);return isNaN(e)?void 0:e},y=t=>{let e=t.target.value;if(D||(e=e.replace(/-/g,"")),!/^-?\d*\.?\d*$/.test(e))return;u(e);const R=o(e);r==null||r(R)},b=()=>{const t=o(x);if(t!==void 0&&I){const e=a(t);u(e.toString()),r==null||r(e)}},w=()=>{const t=o(x)??0,e=a(t+p);u(e.toString()),r==null||r(e)},v=()=>{const t=o(x)??0,e=a(t-p);u(e.toString()),r==null||r(e)},j=t=>{t.key==="ArrowUp"?(t.preventDefault(),w()):t.key==="ArrowDown"&&(t.preventDefault(),v())},S=()=>{const t=o(x)??0;return c===void 0||t>c},O=()=>{const t=o(x)??0;return s===void 0||t<s};return z?i.jsxs("div",{className:"x78zum5",children:[i.jsx("button",{type:"button","aria-label":"Decrease",className:"x6s0dn4 xucfsk5 x7xvpo5 x1y0btm7 xmkeg23 x1yvyprb x1uuraw0 x78zum5 x1h5pcsu xl56j7k xx6bhzk x1qsmvhx xwwtwea xyp5bzy x3wwfir x1leyzdx x1qg2s8m x1s07b3s xaqnwrm xgfja2r x10kefbs x16g0hrh",onClick:v,disabled:!S()||d,tabIndex:-1,children:i.jsx(k.Minus,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})}),i.jsx(N.Input,{type:"text",inputMode:"decimal",attachment:"middle",textAlign:"center",textStyle:"mono",ref:f,value:x,onChange:y,onBlur:b,onKeyDown:j,disabled:d,...m}),i.jsx("button",{type:"button","aria-label":"Increase",className:"x6s0dn4 xucfsk5 x7xvpo5 x1y0btm7 xmkeg23 x1yvyprb x1uuraw0 x78zum5 x1h5pcsu xl56j7k xx6bhzk x1qsmvhx xwwtwea xyp5bzy x3wwfir x1leyzdx x1qg2s8m x1s07b3s xaqnwrm xyj58a3 xywaodx x1gw04aq",onClick:w,disabled:!O()||d,tabIndex:-1,children:i.jsx(k.Plus,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})]}):i.jsx(N.Input,{type:"text",inputMode:"decimal",textStyle:"mono",ref:f,value:x,onChange:y,onBlur:b,onKeyDown:j,disabled:d,...m})});q.displayName="NumberInput";exports.NumberInput=q;
|
package/dist/number-input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./number-input-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./number-input-N3-IvxZT.cjs");exports.NumberInput=e.NumberInput;
|
package/dist/number-input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const n=require("react/jsx-runtime"),j=require("react"),f=require("@stylexjs/stylex"),o=require("lucide-react"),
|
|
1
|
+
"use client";"use strict";const n=require("react/jsx-runtime"),j=require("react"),f=require("@stylexjs/stylex"),o=require("lucide-react"),h=require("./button-BUHQOcAo.cjs"),x=require("./dropdown-menu-BV2rX_ow.cjs");function c(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const u=c(j),z=c(f),l=({...e})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",...e,className:"x78zum5 xl56j7k xvueqy4 xh8yej3"});l.displayName="Pagination";const k=u.forwardRef(({...e},i)=>n.jsx("ul",{ref:i,...e,className:"x6s0dn4 x78zum5 x1q0g3np x1o29ju6"}));k.displayName="PaginationContent";const d=u.forwardRef(({...e},i)=>n.jsx("li",{ref:i,...e}));d.displayName="PaginationItem";const r=({edge:e,isActive:i,size:a="icon",...s})=>n.jsx("a",{"aria-current":i?"page":void 0,...s,...z.props(t.base,v[a],i?t.active:t.inactive,e&&t.edge)});r.displayName="PaginationLink";const g=e=>n.jsxs(r,{"aria-label":"Go to previous page",edge:!0,size:"default",...e,children:[n.jsx(o.ChevronLeft,{"aria-hidden":"true",className:"xkive58 x1vfp87d"}),n.jsx("span",{children:"Previous"})]});g.displayName="PaginationPrevious";const p=e=>n.jsxs(r,{"aria-label":"Go to next page",edge:!0,size:"default",...e,children:[n.jsx("span",{children:"Next"}),n.jsx(o.ChevronRight,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})]});p.displayName="PaginationNext";const m=({pages:e,onPageClick:i})=>!e||e.length===0?n.jsxs("span",{"aria-hidden":!0,className:"x6s0dn4 x1uuraw0 x78zum5 x1h5pcsu xl56j7k xyp5bzy",children:[n.jsx(o.MoreHorizontal,{className:"xkive58 x1vfp87d"}),n.jsx("span",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:"More pages"})]}):n.jsxs(x.DropdownMenu,{children:[n.jsx(x.DropdownMenuTrigger,{asChild:!0,children:n.jsx(h.Button,{variant:"ghost",size:"icon","aria-label":"Show more pages",children:n.jsx(o.MoreHorizontal,{"aria-hidden":"true",className:"xkive58 x1vfp87d"})})}),n.jsx(x.DropdownMenuContent,{align:"center",children:e.map(a=>n.jsxs(x.DropdownMenuItem,{onClick:()=>i==null?void 0:i(a),children:["Page ",a]},a))})]});m.displayName="PaginationEllipsis";const t={base:{kGNEyG:"x6s0dn4",kMzoRj:"xc342km",ksu8eU:"x1y0btm7",kVAM5u:"x9r1u3d",kaIpWk:"x1c6t507",kB7OPa:"x9f619",k1xSpc:"x3nfvp2",kGuDYH:"x1eqnyfr",k63SB2:"xo1l8bm",kOIVth:"x10ci2pi",kjj79g:"xl56j7k",kMnn75:"xkrqix3",kIyJzY:"xx6bhzk",k1ekBW:"xfagghw",kAMwcw:"xwwtwea",khDVqt:"xuxw1ft",kZs9gx:"xue4uem",kiEn40:"x13iak60",k7shQP:"x9v5kkp",kPJHz1:"x4xl6zf",$$css:!0},active:{kWkggS:"x11gjnpk",kVAM5u:"xnyxj8h",kMzoRj:"xmkeg23",kMwMTN:"xcgq616",$$css:!0},inactive:{kWkggS:"xjbqb8w",kMwMTN:"x1sjp1m2",kGzVvX:"x3wwfir",kDPRdz:"x1tcazb1",$$css:!0},edge:{kOIVth:"x1o29ju6",kE3dHu:"xo4myec",$$css:!0},sizeDefault:{kZKoxP:"x1h5pcsu",k8WAf4:"xrtip4p",kg3NbH:"x16pzmsl",$$css:!0},sizeSm:{kaIpWk:"x1c6t507",kGuDYH:"x51wmvv",kZKoxP:"x1k4gd0d",kg3NbH:"x1wu0y3b",$$css:!0},sizeLg:{kaIpWk:"x1c6t507",kGuDYH:"x1j29vfg",kZKoxP:"xlev6zl",kg3NbH:"x1oh0jwc",$$css:!0},sizeIcon:{kZKoxP:"x1h5pcsu",kzqmXN:"xyp5bzy",$$css:!0}},v={default:t.sizeDefault,sm:t.sizeSm,lg:t.sizeLg,icon:t.sizeIcon};exports.Pagination=l;exports.PaginationContent=k;exports.PaginationEllipsis=m;exports.PaginationItem=d;exports.PaginationLink=r;exports.PaginationNext=p;exports.PaginationPrevious=g;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as r from "react";
|
|
4
4
|
import * as l from "@stylexjs/stylex";
|
|
5
|
-
import { MoreHorizontal as
|
|
6
|
-
import { B as d } from "./button-
|
|
7
|
-
import { D as p, n as m, b as g, d as
|
|
8
|
-
const
|
|
5
|
+
import { MoreHorizontal as o, ChevronRight as c, ChevronLeft as u } from "lucide-react";
|
|
6
|
+
import { B as d } from "./button-fCYiYUPE.js";
|
|
7
|
+
import { D as p, n as m, b as g, d as h } from "./dropdown-menu-C6NPtU9J.js";
|
|
8
|
+
const f = ({
|
|
9
9
|
...a
|
|
10
10
|
}) => /* @__PURE__ */ e("nav", { role: "navigation", "aria-label": "pagination", ...a, className: "x78zum5 xl56j7k xvueqy4 xh8yej3" });
|
|
11
|
-
|
|
12
|
-
const
|
|
11
|
+
f.displayName = "Pagination";
|
|
12
|
+
const z = r.forwardRef(({
|
|
13
13
|
...a
|
|
14
14
|
}, i) => /* @__PURE__ */ e("ul", { ref: i, ...a, className: "x6s0dn4 x78zum5 x1q0g3np x1o29ju6" }));
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
z.displayName = "PaginationContent";
|
|
16
|
+
const v = r.forwardRef(({
|
|
17
17
|
...a
|
|
18
18
|
}, i) => /* @__PURE__ */ e("li", { ref: i, ...a }));
|
|
19
|
-
|
|
19
|
+
v.displayName = "PaginationItem";
|
|
20
20
|
const x = ({
|
|
21
21
|
edge: a,
|
|
22
22
|
isActive: i,
|
|
@@ -24,37 +24,37 @@ const x = ({
|
|
|
24
24
|
...k
|
|
25
25
|
}) => /* @__PURE__ */ e("a", { "aria-current": i ? "page" : void 0, ...k, ...l.props(n.base, P[s], i ? n.active : n.inactive, a && n.edge) });
|
|
26
26
|
x.displayName = "PaginationLink";
|
|
27
|
-
const
|
|
27
|
+
const N = (a) => /* @__PURE__ */ t(x, { "aria-label": "Go to previous page", edge: !0, size: "default", ...a, children: [
|
|
28
28
|
/* @__PURE__ */ e(u, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }),
|
|
29
29
|
/* @__PURE__ */ e("span", { children: "Previous" })
|
|
30
30
|
] });
|
|
31
|
-
|
|
32
|
-
const
|
|
31
|
+
N.displayName = "PaginationPrevious";
|
|
32
|
+
const w = (a) => /* @__PURE__ */ t(x, { "aria-label": "Go to next page", edge: !0, size: "default", ...a, children: [
|
|
33
33
|
/* @__PURE__ */ e("span", { children: "Next" }),
|
|
34
34
|
/* @__PURE__ */ e(c, { "aria-hidden": "true", className: "xkive58 x1vfp87d" })
|
|
35
35
|
] });
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
w.displayName = "PaginationNext";
|
|
37
|
+
const y = ({
|
|
38
38
|
pages: a,
|
|
39
39
|
onPageClick: i
|
|
40
40
|
}) => !a || a.length === 0 ? /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "x6s0dn4 x1uuraw0 x78zum5 x1h5pcsu xl56j7k xyp5bzy", children: [
|
|
41
|
-
/* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ e(o, { className: "xkive58 x1vfp87d" }),
|
|
42
42
|
/* @__PURE__ */ e("span", { className: "xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s", children: "More pages" })
|
|
43
43
|
] }) : /* @__PURE__ */ t(p, { children: [
|
|
44
|
-
/* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(d, { variant: "ghost", size: "icon", "aria-label": "Show more pages", children: /* @__PURE__ */ e(
|
|
45
|
-
/* @__PURE__ */ e(g, { align: "center", children: a.map((s) => /* @__PURE__ */ t(
|
|
44
|
+
/* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(d, { variant: "ghost", size: "icon", "aria-label": "Show more pages", children: /* @__PURE__ */ e(o, { "aria-hidden": "true", className: "xkive58 x1vfp87d" }) }) }),
|
|
45
|
+
/* @__PURE__ */ e(g, { align: "center", children: a.map((s) => /* @__PURE__ */ t(h, { onClick: () => i == null ? void 0 : i(s), children: [
|
|
46
46
|
"Page ",
|
|
47
47
|
s
|
|
48
48
|
] }, s)) })
|
|
49
49
|
] });
|
|
50
|
-
|
|
50
|
+
y.displayName = "PaginationEllipsis";
|
|
51
51
|
const n = {
|
|
52
52
|
base: {
|
|
53
53
|
kGNEyG: "x6s0dn4",
|
|
54
54
|
kMzoRj: "xc342km",
|
|
55
55
|
ksu8eU: "x1y0btm7",
|
|
56
56
|
kVAM5u: "x9r1u3d",
|
|
57
|
-
kaIpWk: "
|
|
57
|
+
kaIpWk: "x1c6t507",
|
|
58
58
|
kB7OPa: "x9f619",
|
|
59
59
|
k1xSpc: "x3nfvp2",
|
|
60
60
|
kGuDYH: "x1eqnyfr",
|
|
@@ -73,10 +73,10 @@ const n = {
|
|
|
73
73
|
$$css: !0
|
|
74
74
|
},
|
|
75
75
|
active: {
|
|
76
|
-
kWkggS: "
|
|
77
|
-
kVAM5u: "
|
|
76
|
+
kWkggS: "x11gjnpk",
|
|
77
|
+
kVAM5u: "xnyxj8h",
|
|
78
78
|
kMzoRj: "xmkeg23",
|
|
79
|
-
kMwMTN: "
|
|
79
|
+
kMwMTN: "xcgq616",
|
|
80
80
|
$$css: !0
|
|
81
81
|
},
|
|
82
82
|
inactive: {
|
|
@@ -98,14 +98,14 @@ const n = {
|
|
|
98
98
|
$$css: !0
|
|
99
99
|
},
|
|
100
100
|
sizeSm: {
|
|
101
|
-
kaIpWk: "
|
|
101
|
+
kaIpWk: "x1c6t507",
|
|
102
102
|
kGuDYH: "x51wmvv",
|
|
103
103
|
kZKoxP: "x1k4gd0d",
|
|
104
104
|
kg3NbH: "x1wu0y3b",
|
|
105
105
|
$$css: !0
|
|
106
106
|
},
|
|
107
107
|
sizeLg: {
|
|
108
|
-
kaIpWk: "
|
|
108
|
+
kaIpWk: "x1c6t507",
|
|
109
109
|
kGuDYH: "x1j29vfg",
|
|
110
110
|
kZKoxP: "xlev6zl",
|
|
111
111
|
kg3NbH: "x1oh0jwc",
|
|
@@ -123,11 +123,11 @@ const n = {
|
|
|
123
123
|
icon: n.sizeIcon
|
|
124
124
|
};
|
|
125
125
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
f as P,
|
|
127
|
+
z as a,
|
|
128
|
+
y as b,
|
|
129
|
+
v as c,
|
|
130
130
|
x as d,
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
w as e,
|
|
132
|
+
N as f
|
|
133
133
|
};
|
package/dist/pagination.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./pagination-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./pagination-C6e9oVes.cjs");exports.Pagination=i.Pagination;exports.PaginationContent=i.PaginationContent;exports.PaginationEllipsis=i.PaginationEllipsis;exports.PaginationItem=i.PaginationItem;exports.PaginationLink=i.PaginationLink;exports.PaginationNext=i.PaginationNext;exports.PaginationPrevious=i.PaginationPrevious;
|
package/dist/pagination.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import * as h from "react";
|
|
4
4
|
import { Check as z, X as L } from "lucide-react";
|
|
5
|
-
import { I as y } from "./input-
|
|
6
|
-
import { P } from "./progress-
|
|
5
|
+
import { I as y } from "./input-Zs45H33i.js";
|
|
6
|
+
import { P } from "./progress-BpUNvswZ.js";
|
|
7
7
|
function S(e, c = {}) {
|
|
8
8
|
const {
|
|
9
9
|
minLength: l = 8,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";const s=require("react/jsx-runtime"),y=require("react"),v=require("lucide-react"),L=require("./input-
|
|
1
|
+
"use client";"use strict";const s=require("react/jsx-runtime"),y=require("react"),v=require("lucide-react"),L=require("./input-Dtr0tlf7.cjs"),O=require("./progress-DSy_jRee.cjs");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const c in e)if(c!=="default"){const a=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(t,c,a.get?a:{enumerable:!0,get:()=>e[c]})}}return t.default=e,Object.freeze(t)}const p=P(y);function S(e,t={}){const{minLength:c=8,requireUppercase:a=!0,requireLowercase:o=!0,requireNumbers:d=!0,requireSpecialChars:r=!0}=t,u={length:e.length>=c,uppercase:!a||/[A-Z]/.test(e),lowercase:!o||/[a-z]/.test(e),numbers:!d||/[0-9]/.test(e),specialChars:!r||/[!@#$%^&*(),.?":{}|<>]/.test(e)},i=Object.values(u).filter(Boolean).length,x=Object.keys(u).length;return{score:i/x,checks:u}}const n=({passed:e,children:t})=>s.jsxs("li",{className:"x6s0dn4 x78zum5 x1o29ju6",children:[e?s.jsx(v.Check,{"aria-hidden":"true",className:"xwvkxvr xosxg9m x31tm2b"}):s.jsx(v.X,{"aria-hidden":"true",className:"xwvkxvr xosxg9m x1uuraw0"}),s.jsxs("span",{...{0:{className:"x1uuraw0"},1:{className:"x31tm2b"}}[!!e<<0],children:[t,s.jsx("span",{className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:e?" (met)":" (not met)"})]})]}),k=p.forwardRef(({showStrengthIndicator:e=!1,strengthRequirements:t={},onStrengthChange:c,onChange:a,...o},d)=>{const[r,u]=p.useState(null),[i,x]=p.useState("none"),{minLength:q=8,requireUppercase:b=!0,requireLowercase:N=!0,requireNumbers:w=!0,requireSpecialChars:g=!0}=t,z=h=>{const j=h.target.value;if(e&&j){const m=S(j,t);u(m);let l;m.score<.4?l="weak":m.score<.8?l="medium":l="strong",x(l),c==null||c(l)}else u(null),x("none");a==null||a(h)},f=()=>r?r.score<.4?"Weak":r.score<.8?"Medium":"Strong":"";return s.jsxs("div",{className:"x78zum5 xdt5ytf xpfqfdi",children:[s.jsx("div",{role:"status","aria-live":"polite",className:"xc342km xzpqnlu xjm9jq1 xkdpibf xb3r6kr x1717udv x10l6tqk xuxw1ft x1i1rx1s",children:e&&r?`Password strength: ${f()}`:""}),s.jsx(L.Input,{type:"password",ref:d,onChange:z,...o}),e&&r&&s.jsxs("div",{className:"x78zum5 xdt5ytf xpfqfdi",children:[s.jsxs("div",{className:"x6s0dn4 x78zum5 xpfqfdi",children:[s.jsx(O.Progress,{value:r.score*100,size:"sm",tone:i==="none"?"default":i}),s.jsx("span",{className:"x1uuraw0 x51wmvv x1hxoosp",children:f()})]}),s.jsxs("ul",{className:"xrvj5dj x51wmvv x10ci2pi xnby9oq x3ct3a4 x1ghz6dp x1717udv",children:[s.jsxs(n,{passed:r.checks.length,children:[q,"+ characters"]}),b&&s.jsx(n,{passed:r.checks.uppercase,children:"Uppercase letter"}),N&&s.jsx(n,{passed:r.checks.lowercase,children:"Lowercase letter"}),w&&s.jsx(n,{passed:r.checks.numbers,children:"Number"}),g&&s.jsx(n,{passed:r.checks.specialChars,children:"Special character"})]})]})]})});k.displayName="PasswordInput";exports.PasswordInput=k;
|
package/dist/password-input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./password-input-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./password-input-CZ19HPZd.cjs");exports.PasswordInput=e.PasswordInput;
|
package/dist/password-input.js
CHANGED