@gv-tech/ui-web 2.29.1 → 2.29.3
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/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
package/dist/button-group.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./separator.cjs");let t=require("cn"),n=require("radix-ui"),r=require("react/jsx-runtime");var i=(0,require("class-variance-authority").cva)(`group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!`}},defaultVariants:{orientation:`horizontal`}});function a({className:e,orientation:n,...a}){return(0,r.jsx)(`fieldset`,{"data-slot":`button-group`,"data-orientation":n,className:(0,t.cn)(i({orientation:n}),e),...a})}function o({className:e,asChild:i=!1,...a}){let o=i?n.Slot.Root:`div`;return(0,r.jsx)(o,{className:(0,t.cn)(`bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,e),...a})}function s({className:n,orientation:i=`vertical`,...a}){return(0,r.jsx)(e.Separator,{"data-slot":`button-group-separator`,orientation:i,className:(0,t.cn)(`bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto`,n),...a})}exports.ButtonGroup=a,exports.ButtonGroupSeparator=s,exports.ButtonGroupText=o,exports.buttonGroupVariants=i;
|
package/dist/button-group.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "
|
|
4
|
-
import {
|
|
2
|
+
import { Separator as e } from "./separator.mjs";
|
|
3
|
+
import { cn as t } from "cn";
|
|
4
|
+
import { Slot as n } from "radix-ui";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
import { cva as i } from "class-variance-authority";
|
|
7
|
-
|
|
7
|
+
// src/button-group.tsx
|
|
8
8
|
var a = i("group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
9
9
|
variants: { orientation: {
|
|
10
10
|
horizontal: "[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg!",
|
|
@@ -12,27 +12,27 @@ var a = i("group/button-group flex w-fit items-stretch *:focus-visible:relative
|
|
|
12
12
|
} },
|
|
13
13
|
defaultVariants: { orientation: "horizontal" }
|
|
14
14
|
});
|
|
15
|
-
function o({ className:
|
|
15
|
+
function o({ className: e, orientation: n, ...i }) {
|
|
16
16
|
return /* @__PURE__ */ r("fieldset", {
|
|
17
17
|
"data-slot": "button-group",
|
|
18
18
|
"data-orientation": n,
|
|
19
|
-
className:
|
|
19
|
+
className: t(a({ orientation: n }), e),
|
|
20
20
|
...i
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function s({ className:
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
function s({ className: e, asChild: i = !1, ...a }) {
|
|
24
|
+
let o = i ? n.Root : "div";
|
|
25
|
+
return /* @__PURE__ */ r(o, {
|
|
26
|
+
className: t("bg-muted flex items-center gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
26
27
|
...a
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
function c({ className:
|
|
30
|
-
return /* @__PURE__ */ r(
|
|
30
|
+
function c({ className: n, orientation: i = "vertical", ...a }) {
|
|
31
|
+
return /* @__PURE__ */ r(e, {
|
|
31
32
|
"data-slot": "button-group-separator",
|
|
32
33
|
orientation: i,
|
|
33
|
-
className:
|
|
34
|
+
className: t("bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto", n),
|
|
34
35
|
...a
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
//#endregion
|
|
38
38
|
export { o as ButtonGroup, c as ButtonGroupSeparator, s as ButtonGroupText, a as buttonGroupVariants };
|
package/dist/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("radix-ui"),r=require("react");r=e.t(r);let i=require("react/jsx-runtime");var a=(0,require("class-variance-authority").cva)(`group/button focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground aria-expanded:bg-secondary aria-expanded:text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function o({className:e,variant:r=`default`,size:o=`default`,asChild:s=!1,...c}){let l=s?n.Slot.Root:`button`;return(0,i.jsx)(l,{"data-slot":`button`,"data-variant":r,"data-size":o,className:(0,t.cn)(a({variant:r,size:o,className:e})),...c})}exports.Button=o,exports.buttonVariants=a;
|
package/dist/button.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "
|
|
2
|
+
import { cn as e } from "cn";
|
|
3
|
+
import { Slot as t } from "radix-ui";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
6
|
import { cva as r } from "class-variance-authority";
|
|
7
|
-
|
|
7
|
+
// src/button.tsx
|
|
8
8
|
var i = r("group/button focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:ring-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -32,7 +32,8 @@ var i = r("group/button focus-visible:border-ring focus-visible:ring-ring/50 ari
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
function a({ className: r, variant: a = "default", size: o = "default", asChild: s = !1, ...c }) {
|
|
35
|
-
|
|
35
|
+
let l = s ? t.Root : "button";
|
|
36
|
+
return /* @__PURE__ */ n(l, {
|
|
36
37
|
"data-slot": "button",
|
|
37
38
|
"data-variant": a,
|
|
38
39
|
"data-size": o,
|
|
@@ -44,5 +45,4 @@ function a({ className: r, variant: a = "default", size: o = "default", asChild:
|
|
|
44
45
|
...c
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
//#endregion
|
|
48
48
|
export { a as Button, i as buttonVariants };
|
package/dist/calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime"),o=require("react-day-picker");function s({className:e,classNames:i,showOutsideDays:s=!0,captionLayout:l=`label`,buttonVariant:u=`ghost`,locale:d,formatters:f,components:p,...m}){let h=(0,o.getDefaultClassNames)();return(0,a.jsx)(o.DayPicker,{showOutsideDays:s,className:(0,n.cn)(`group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:l,locale:d,formatters:{formatMonthDropdown:e=>e.toLocaleString(d?.code,{month:`short`}),...f},classNames:{root:(0,n.cn)(`w-fit`,h.root),months:(0,n.cn)(`relative flex flex-col gap-4 md:flex-row`,h.months),month:(0,n.cn)(`flex w-full flex-col gap-4`,h.month),nav:(0,n.cn)(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,h.nav),button_previous:(0,n.cn)(t.buttonVariants({variant:u}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,h.button_previous),button_next:(0,n.cn)(t.buttonVariants({variant:u}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,h.button_next),month_caption:(0,n.cn)(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,h.month_caption),dropdowns:(0,n.cn)(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,h.dropdowns),dropdown_root:(0,n.cn)(`relative rounded-(--cell-radius)`,h.dropdown_root),dropdown:(0,n.cn)(`bg-popover absolute inset-0 opacity-0`,h.dropdown),caption_label:(0,n.cn)(`font-medium select-none`,l===`label`?`text-sm`:`[&>svg]:text-muted-foreground flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5`,h.caption_label),month_grid:(0,n.cn)(`w-full border-collapse`,h.month_grid),weekdays:(0,n.cn)(`flex`,h.weekdays),weekday:(0,n.cn)(`text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none`,h.weekday),week:(0,n.cn)(`mt-2 flex w-full`,h.week),week_number_header:(0,n.cn)(`w-(--cell-size) select-none`,h.week_number_header),week_number:(0,n.cn)(`text-muted-foreground text-[0.8rem] select-none`,h.week_number),day:(0,n.cn)(`group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)`,m.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)`:`[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)`,h.day),range_start:(0,n.cn)(`bg-muted after:bg-muted relative isolate z-0 rounded-s-(--cell-radius) after:absolute after:inset-y-0 after:end-0 after:w-4`,h.range_start),range_middle:(0,n.cn)(`rounded-none`,h.range_middle),range_end:(0,n.cn)(`bg-muted after:bg-muted relative isolate z-0 rounded-e-(--cell-radius) after:absolute after:inset-y-0 after:start-0 after:w-4`,h.range_end),today:(0,n.cn)(`bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none`,h.today),outside:(0,n.cn)(`text-muted-foreground aria-selected:text-muted-foreground`,h.outside),disabled:(0,n.cn)(`text-muted-foreground opacity-50`,h.disabled),hidden:(0,n.cn)(`invisible`,h.hidden),...i},components:{Root:({className:e,rootRef:t,...r})=>(0,a.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:(0,n.cn)(e),...r}),Chevron:({className:e,orientation:t,...i})=>t===`left`?(0,a.jsx)(r.ChevronLeftIcon,{className:(0,n.cn)(`size-4 rtl:rotate-180`,e),...i}):t===`right`?(0,a.jsx)(r.ChevronRightIcon,{className:(0,n.cn)(`size-4 rtl:rotate-180`,e),...i}):(0,a.jsx)(r.ChevronDownIcon,{className:(0,n.cn)(`size-4`,e),...i}),DayButton:({...e})=>(0,a.jsx)(c,{locale:d,...e}),WeekNumber:({children:e,...t})=>(0,a.jsx)(`td`,{...t,children:(0,a.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...p},...m})}function c({className:e,day:r,modifiers:s,locale:c,...l}){let u=(0,o.getDefaultClassNames)(),d=i.useRef(null);return i.useEffect(()=>{s.focused&&d.current?.focus()},[s.focused]),(0,a.jsx)(t.Button,{ref:d,variant:`ghost`,size:`icon`,"data-day":r.date.toLocaleDateString(c?.code),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:(0,n.cn)(`group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70`,u.day,e),...l})}exports.Calendar=s,exports.CalendarDayButton=c;
|
package/dist/calendar.mjs
CHANGED
|
@@ -1,4 +1,99 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { Button as e, buttonVariants as t } from "./button.mjs";
|
|
4
|
+
import { cn as n } from "cn";
|
|
5
|
+
import { ChevronDownIcon as r, ChevronLeftIcon as i, ChevronRightIcon as a } from "lucide-react";
|
|
6
|
+
import * as o from "react";
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
+
import { DayPicker as c, getDefaultClassNames as l } from "react-day-picker";
|
|
9
|
+
// src/calendar.tsx
|
|
10
|
+
function u({ className: e, classNames: o, showOutsideDays: u = !0, captionLayout: f = "label", buttonVariant: p = "ghost", locale: m, formatters: h, components: g, ..._ }) {
|
|
11
|
+
let v = l();
|
|
12
|
+
return /* @__PURE__ */ s(c, {
|
|
13
|
+
showOutsideDays: u,
|
|
14
|
+
className: n("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
15
|
+
captionLayout: f,
|
|
16
|
+
locale: m,
|
|
17
|
+
formatters: {
|
|
18
|
+
formatMonthDropdown: (e) => e.toLocaleString(m?.code, { month: "short" }),
|
|
19
|
+
...h
|
|
20
|
+
},
|
|
21
|
+
classNames: {
|
|
22
|
+
root: n("w-fit", v.root),
|
|
23
|
+
months: n("relative flex flex-col gap-4 md:flex-row", v.months),
|
|
24
|
+
month: n("flex w-full flex-col gap-4", v.month),
|
|
25
|
+
nav: n("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", v.nav),
|
|
26
|
+
button_previous: n(t({ variant: p }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_previous),
|
|
27
|
+
button_next: n(t({ variant: p }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", v.button_next),
|
|
28
|
+
month_caption: n("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", v.month_caption),
|
|
29
|
+
dropdowns: n("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", v.dropdowns),
|
|
30
|
+
dropdown_root: n("relative rounded-(--cell-radius)", v.dropdown_root),
|
|
31
|
+
dropdown: n("bg-popover absolute inset-0 opacity-0", v.dropdown),
|
|
32
|
+
caption_label: n("font-medium select-none", f === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5", v.caption_label),
|
|
33
|
+
month_grid: n("w-full border-collapse", v.month_grid),
|
|
34
|
+
weekdays: n("flex", v.weekdays),
|
|
35
|
+
weekday: n("text-muted-foreground flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal select-none", v.weekday),
|
|
36
|
+
week: n("mt-2 flex w-full", v.week),
|
|
37
|
+
week_number_header: n("w-(--cell-size) select-none", v.week_number_header),
|
|
38
|
+
week_number: n("text-muted-foreground text-[0.8rem] select-none", v.week_number),
|
|
39
|
+
day: n("group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)", _.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)", v.day),
|
|
40
|
+
range_start: n("bg-muted after:bg-muted relative isolate z-0 rounded-s-(--cell-radius) after:absolute after:inset-y-0 after:end-0 after:w-4", v.range_start),
|
|
41
|
+
range_middle: n("rounded-none", v.range_middle),
|
|
42
|
+
range_end: n("bg-muted after:bg-muted relative isolate z-0 rounded-e-(--cell-radius) after:absolute after:inset-y-0 after:start-0 after:w-4", v.range_end),
|
|
43
|
+
today: n("bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none", v.today),
|
|
44
|
+
outside: n("text-muted-foreground aria-selected:text-muted-foreground", v.outside),
|
|
45
|
+
disabled: n("text-muted-foreground opacity-50", v.disabled),
|
|
46
|
+
hidden: n("invisible", v.hidden),
|
|
47
|
+
...o
|
|
48
|
+
},
|
|
49
|
+
components: {
|
|
50
|
+
Root: ({ className: e, rootRef: t, ...r }) => /* @__PURE__ */ s("div", {
|
|
51
|
+
"data-slot": "calendar",
|
|
52
|
+
ref: t,
|
|
53
|
+
className: n(e),
|
|
54
|
+
...r
|
|
55
|
+
}),
|
|
56
|
+
Chevron: ({ className: e, orientation: t, ...o }) => t === "left" ? /* @__PURE__ */ s(i, {
|
|
57
|
+
className: n("size-4 rtl:rotate-180", e),
|
|
58
|
+
...o
|
|
59
|
+
}) : t === "right" ? /* @__PURE__ */ s(a, {
|
|
60
|
+
className: n("size-4 rtl:rotate-180", e),
|
|
61
|
+
...o
|
|
62
|
+
}) : /* @__PURE__ */ s(r, {
|
|
63
|
+
className: n("size-4", e),
|
|
64
|
+
...o
|
|
65
|
+
}),
|
|
66
|
+
DayButton: ({ ...e }) => /* @__PURE__ */ s(d, {
|
|
67
|
+
locale: m,
|
|
68
|
+
...e
|
|
69
|
+
}),
|
|
70
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ s("td", {
|
|
71
|
+
...t,
|
|
72
|
+
children: /* @__PURE__ */ s("div", {
|
|
73
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
74
|
+
children: e
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
...g
|
|
78
|
+
},
|
|
79
|
+
..._
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function d({ className: t, day: r, modifiers: i, locale: a, ...c }) {
|
|
83
|
+
let u = l(), d = o.useRef(null);
|
|
84
|
+
return o.useEffect(() => {
|
|
85
|
+
i.focused && d.current?.focus();
|
|
86
|
+
}, [i.focused]), /* @__PURE__ */ s(e, {
|
|
87
|
+
ref: d,
|
|
88
|
+
variant: "ghost",
|
|
89
|
+
size: "icon",
|
|
90
|
+
"data-day": r.date.toLocaleDateString(a?.code),
|
|
91
|
+
"data-selected-single": i.selected && !i.range_start && !i.range_end && !i.range_middle,
|
|
92
|
+
"data-range-start": i.range_start,
|
|
93
|
+
"data-range-end": i.range_end,
|
|
94
|
+
"data-range-middle": i.range_middle,
|
|
95
|
+
className: n("group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", u.day, t),
|
|
96
|
+
...c
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export { u as Calendar, d as CalendarDayButton };
|
package/dist/card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("react");n=e.t(n);let r=require("react/jsx-runtime");function i({className:e,size:n=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`card`,"data-size":n,className:(0,t.cn)(`group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...i})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:(0,t.cn)(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...n})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:(0,t.cn)(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:(0,t.cn)(`text-muted-foreground text-sm`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:(0,t.cn)(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:(0,t.cn)(`px-(--card-spacing)`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:(0,t.cn)(`bg-muted/50 flex items-center rounded-b-xl border-t p-(--card-spacing)`,e),...n})}exports.Card=i,exports.CardAction=c,exports.CardContent=l,exports.CardDescription=s,exports.CardFooter=u,exports.CardHeader=a,exports.CardTitle=o;
|
package/dist/card.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn as e } from "cn";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/card.tsx
|
|
6
6
|
function n({ className: n, size: r = "default", ...i }) {
|
|
7
7
|
return /* @__PURE__ */ t("div", {
|
|
8
8
|
"data-slot": "card",
|
|
@@ -53,5 +53,4 @@ function c({ className: n, ...r }) {
|
|
|
53
53
|
...r
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { n as Card, o as CardAction, s as CardContent, a as CardDescription, c as CardFooter, r as CardHeader, i as CardTitle };
|
package/dist/carousel.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime"),o=require("embla-carousel-react");o=e.t(o);var s=i.createContext(null);function c(){let e=i.useContext(s);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function l({orientation:e=`horizontal`,opts:t,setApi:r,plugins:c,className:l,children:u,...d}){let[f,p]=(0,o.default)({...t,axis:e===`horizontal`?`x`:`y`},c),[m,h]=i.useState(!1),[g,_]=i.useState(!1),v=i.useCallback(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=i.useCallback(()=>{p?.scrollPrev()},[p]),b=i.useCallback(()=>{p?.scrollNext()},[p]),x=i.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),y()):e.key===`ArrowRight`&&(e.preventDefault(),b())},[y,b]);return i.useEffect(()=>{p&&r&&r(p)},[p,r]),i.useEffect(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,a.jsx)(s.Provider,{value:{carouselRef:f,api:p,opts:t,orientation:e||(t?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,a.jsx)(`section`,{onKeyDownCapture:x,className:(0,n.cn)(`relative`,l),"aria-roledescription":`carousel`,"data-slot":`carousel`,...d,children:u})})}function u({className:e,...t}){let{carouselRef:r,orientation:i}=c();return(0,a.jsx)(`div`,{ref:r,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,a.jsx)(`div`,{className:(0,n.cn)(`flex`,i===`horizontal`?`-ms-4`:`-mt-4 flex-col`,e),...t})})}function d({className:e,...t}){let{orientation:r}=c();return(0,a.jsx)(`fieldset`,{"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:(0,n.cn)(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`ps-4`:`pt-4`,e),...t})}function f({className:e,variant:i=`outline`,size:o=`icon-sm`,...s}){let{orientation:l,scrollPrev:u,canScrollPrev:d}=c();return(0,a.jsxs)(t.Button,{"data-slot":`carousel-previous`,variant:i,size:o,className:(0,n.cn)(`absolute touch-manipulation rounded-full`,l===`horizontal`?`inset-y-0 -start-12 my-auto`:`start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2`,e),disabled:!d,onClick:u,...s,children:[(0,a.jsx)(r.ChevronLeftIcon,{className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function p({className:e,variant:i=`outline`,size:o=`icon-sm`,...s}){let{orientation:l,scrollNext:u,canScrollNext:d}=c();return(0,a.jsxs)(t.Button,{"data-slot":`carousel-next`,variant:i,size:o,className:(0,n.cn)(`absolute touch-manipulation rounded-full`,l===`horizontal`?`inset-y-0 -end-12 my-auto`:`start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2`,e),disabled:!d,onClick:u,...s,children:[(0,a.jsx)(r.ChevronRightIcon,{className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}exports.Carousel=l,exports.CarouselContent=u,exports.CarouselItem=d,exports.CarouselNext=p,exports.CarouselPrevious=f,exports.useCarousel=c;
|
package/dist/carousel.mjs
CHANGED
|
@@ -1,3 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Button as e } from "./button.mjs";
|
|
3
|
+
import { cn as t } from "cn";
|
|
4
|
+
import { ChevronLeftIcon as n, ChevronRightIcon as r } from "lucide-react";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
import s from "embla-carousel-react";
|
|
8
|
+
// src/carousel.tsx
|
|
9
|
+
var c = i.createContext(null);
|
|
10
|
+
function l() {
|
|
11
|
+
let e = i.useContext(c);
|
|
12
|
+
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
13
|
+
return e;
|
|
14
|
+
}
|
|
15
|
+
function u({ orientation: e = "horizontal", opts: n, setApi: r, plugins: o, className: l, children: u, ...d }) {
|
|
16
|
+
let [f, p] = s({
|
|
17
|
+
...n,
|
|
18
|
+
axis: e === "horizontal" ? "x" : "y"
|
|
19
|
+
}, o), [m, h] = i.useState(!1), [g, _] = i.useState(!1), v = i.useCallback((e) => {
|
|
20
|
+
e && (h(e.canScrollPrev()), _(e.canScrollNext()));
|
|
21
|
+
}, []), y = i.useCallback(() => {
|
|
22
|
+
p?.scrollPrev();
|
|
23
|
+
}, [p]), b = i.useCallback(() => {
|
|
24
|
+
p?.scrollNext();
|
|
25
|
+
}, [p]), x = i.useCallback((e) => {
|
|
26
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), y()) : e.key === "ArrowRight" && (e.preventDefault(), b());
|
|
27
|
+
}, [y, b]);
|
|
28
|
+
return i.useEffect(() => {
|
|
29
|
+
p && r && r(p);
|
|
30
|
+
}, [p, r]), i.useEffect(() => {
|
|
31
|
+
if (p) return v(p), p.on("reInit", v), p.on("select", v), () => {
|
|
32
|
+
p?.off("select", v);
|
|
33
|
+
};
|
|
34
|
+
}, [p, v]), /* @__PURE__ */ a(c.Provider, {
|
|
35
|
+
value: {
|
|
36
|
+
carouselRef: f,
|
|
37
|
+
api: p,
|
|
38
|
+
opts: n,
|
|
39
|
+
orientation: e || (n?.axis === "y" ? "vertical" : "horizontal"),
|
|
40
|
+
scrollPrev: y,
|
|
41
|
+
scrollNext: b,
|
|
42
|
+
canScrollPrev: m,
|
|
43
|
+
canScrollNext: g
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ a("section", {
|
|
46
|
+
onKeyDownCapture: x,
|
|
47
|
+
className: t("relative", l),
|
|
48
|
+
"aria-roledescription": "carousel",
|
|
49
|
+
"data-slot": "carousel",
|
|
50
|
+
...d,
|
|
51
|
+
children: u
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function d({ className: e, ...n }) {
|
|
56
|
+
let { carouselRef: r, orientation: i } = l();
|
|
57
|
+
return /* @__PURE__ */ a("div", {
|
|
58
|
+
ref: r,
|
|
59
|
+
className: "overflow-hidden",
|
|
60
|
+
"data-slot": "carousel-content",
|
|
61
|
+
children: /* @__PURE__ */ a("div", {
|
|
62
|
+
className: t("flex", i === "horizontal" ? "-ms-4" : "-mt-4 flex-col", e),
|
|
63
|
+
...n
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function f({ className: e, ...n }) {
|
|
68
|
+
let { orientation: r } = l();
|
|
69
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
70
|
+
"aria-roledescription": "slide",
|
|
71
|
+
"data-slot": "carousel-item",
|
|
72
|
+
className: t("min-w-0 shrink-0 grow-0 basis-full", r === "horizontal" ? "ps-4" : "pt-4", e),
|
|
73
|
+
...n
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function p({ className: r, variant: i = "outline", size: s = "icon-sm", ...c }) {
|
|
77
|
+
let { orientation: u, scrollPrev: d, canScrollPrev: f } = l();
|
|
78
|
+
return /* @__PURE__ */ o(e, {
|
|
79
|
+
"data-slot": "carousel-previous",
|
|
80
|
+
variant: i,
|
|
81
|
+
size: s,
|
|
82
|
+
className: t("absolute touch-manipulation rounded-full", u === "horizontal" ? "inset-y-0 -start-12 my-auto" : "start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2", r),
|
|
83
|
+
disabled: !f,
|
|
84
|
+
onClick: d,
|
|
85
|
+
...c,
|
|
86
|
+
children: [/* @__PURE__ */ a(n, { className: "rtl:rotate-180" }), /* @__PURE__ */ a("span", {
|
|
87
|
+
className: "sr-only",
|
|
88
|
+
children: "Previous slide"
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function m({ className: n, variant: i = "outline", size: s = "icon-sm", ...c }) {
|
|
93
|
+
let { orientation: u, scrollNext: d, canScrollNext: f } = l();
|
|
94
|
+
return /* @__PURE__ */ o(e, {
|
|
95
|
+
"data-slot": "carousel-next",
|
|
96
|
+
variant: i,
|
|
97
|
+
size: s,
|
|
98
|
+
className: t("absolute touch-manipulation rounded-full", u === "horizontal" ? "inset-y-0 -end-12 my-auto" : "start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2", n),
|
|
99
|
+
disabled: !f,
|
|
100
|
+
onClick: d,
|
|
101
|
+
...c,
|
|
102
|
+
children: [/* @__PURE__ */ a(r, { className: "rtl:rotate-180" }), /* @__PURE__ */ a("span", {
|
|
103
|
+
className: "sr-only",
|
|
104
|
+
children: "Next slide"
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
export { u as Carousel, d as CarouselContent, f as CarouselItem, m as CarouselNext, p as CarouselPrevious, l as useCarousel };
|
package/dist/chart.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("react");n=e.t(n);let r=require("react/jsx-runtime"),i=require("recharts");i=e.t(i);var a={light:``,dark:`.dark`},o={width:320,height:200},s=n.createContext(null);function c(){let e=n.useContext(s);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function l({id:e,className:a,children:c,config:l,initialDimension:d=o,...f}){let p=n.useId(),m=`chart-${e??p.replace(/:/g,``)}`;return(0,r.jsx)(s.Provider,{value:{config:l},children:(0,r.jsxs)(`div`,{"data-slot":`chart`,"data-chart":m,className:(0,t.cn)(`[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,a),...f,children:[(0,r.jsx)(u,{id:m,config:l}),(0,r.jsx)(i.ResponsiveContainer,{initialDimension:d,children:c})]})})}var u=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme??e.color);return n.length?(0,r.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(a).map(([t,r])=>`
|
|
2
2
|
${r} [data-chart=${e}] {
|
|
3
3
|
${n.map(([e,n])=>{let r=n.theme?.[t]??n.color;return r?` --color-${e}: ${r};`:null}).join(`
|
|
4
4
|
`)}
|
|
5
5
|
}
|
|
6
6
|
`).join(`
|
|
7
|
-
`)}}):null},d=i.Tooltip;function f({active:e,payload:i,className:a,indicator:o=`dot`,hideLabel:s=!1,hideIndicator:l=!1,label:u,labelFormatter:d,labelClassName:f,formatter:p,color:m,nameKey:g,labelKey:_}){let{config:v}=c(),y=n.useMemo(()=>{if(s||!i?.length)return null;let[e]=i,n
|
|
7
|
+
`)}}):null},d=i.Tooltip;function f({active:e,payload:i,className:a,indicator:o=`dot`,hideLabel:s=!1,hideIndicator:l=!1,label:u,labelFormatter:d,labelClassName:f,formatter:p,color:m,nameKey:g,labelKey:_}){let{config:v}=c(),y=n.useMemo(()=>{if(s||!i?.length)return null;let[e]=i,n=`${_??e?.dataKey??e?.name??`value`}`,a=h(v,e,n),o=!_&&typeof u==`string`?v[u]?.label??u:a?.label;return d?(0,r.jsx)(`div`,{className:(0,t.cn)(`font-medium`,f),children:d(o,i)}):o?(0,r.jsx)(`div`,{className:(0,t.cn)(`font-medium`,f),children:o}):null},[u,d,i,s,f,v,_]);if(!e||!i?.length)return null;let b=i.length===1&&o!==`dot`;return(0,r.jsxs)(`div`,{className:(0,t.cn)(`border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl`,a),children:[b?null:y,(0,r.jsx)(`div`,{className:`grid gap-1.5`,children:i.filter(e=>e.type!==`none`).map((e,n)=>{let i=`${g??e.name??e.dataKey??`value`}`,a=h(v,e,i),s=m??e.payload?.fill??e.color;return(0,r.jsx)(`div`,{className:(0,t.cn)(`[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5`,o===`dot`&&`items-center`),children:p&&e?.value!==void 0&&e.name?p(e.value,e.name,e,n,e.payload):(0,r.jsxs)(r.Fragment,{children:[a?.icon?(0,r.jsx)(a.icon,{}):!l&&(0,r.jsx)(`div`,{className:(0,t.cn)(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":o===`dot`,"w-1":o===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":o===`dashed`,"my-0.5":b&&o===`dashed`}),style:{"--color-bg":s,"--color-border":s}}),(0,r.jsxs)(`div`,{className:(0,t.cn)(`flex flex-1 justify-between leading-none`,b?`items-end`:`items-center`),children:[(0,r.jsxs)(`div`,{className:`grid gap-1.5`,children:[b?y:null,(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:a?.label??e.name})]}),e.value!=null&&(0,r.jsx)(`span`,{className:`text-foreground font-mono font-medium tabular-nums`,children:typeof e.value==`number`?e.value.toLocaleString():String(e.value)})]})]})},n)})})]})}var p=i.Legend;function m({className:e,hideIcon:n=!1,payload:i,verticalAlign:a=`bottom`,nameKey:o}){let{config:s}=c();return i?.length?(0,r.jsx)(`div`,{className:(0,t.cn)(`flex items-center justify-center gap-4`,a===`top`?`pb-3`:`pt-3`,e),children:i.filter(e=>e.type!==`none`).map((e,i)=>{let a=`${o??e.dataKey??`value`}`,c=h(s,e,a);return(0,r.jsxs)(`div`,{className:(0,t.cn)(`[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3`),children:[c?.icon&&!n?(0,r.jsx)(c.icon,{}):(0,r.jsx)(`div`,{className:`h-2 w-2 shrink-0 rounded-[2px]`,style:{backgroundColor:e.color}}),c?.label]},i)})}):null}function h(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}exports.ChartContainer=l,exports.ChartLegend=p,exports.ChartLegendContent=m,exports.ChartStyle=u,exports.ChartTooltip=d,exports.ChartTooltipContent=f;
|
package/dist/chart.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { cn as e } from "cn";
|
|
4
4
|
import * as t from "react";
|
|
5
5
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import * as a from "recharts";
|
|
7
|
-
|
|
7
|
+
// src/chart.tsx
|
|
8
8
|
var o = {
|
|
9
9
|
light: "",
|
|
10
10
|
dark: ".dark"
|
|
@@ -50,13 +50,13 @@ ${n.map(([e, n]) => {
|
|
|
50
50
|
function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabel: u = !1, hideIndicator: d = !1, label: f, labelFormatter: p, labelClassName: m, formatter: h, color: _, nameKey: v, labelKey: y }) {
|
|
51
51
|
let { config: b } = l(), x = t.useMemo(() => {
|
|
52
52
|
if (u || !o?.length) return null;
|
|
53
|
-
let [t] = o, n =
|
|
53
|
+
let [t] = o, n = `${y ?? t?.dataKey ?? t?.name ?? "value"}`, i = g(b, t, n), a = !y && typeof f == "string" ? b[f]?.label ?? f : i?.label;
|
|
54
54
|
return p ? /* @__PURE__ */ r("div", {
|
|
55
55
|
className: e("font-medium", m),
|
|
56
|
-
children: p(
|
|
57
|
-
}) :
|
|
56
|
+
children: p(a, o)
|
|
57
|
+
}) : a ? /* @__PURE__ */ r("div", {
|
|
58
58
|
className: e("font-medium", m),
|
|
59
|
-
children:
|
|
59
|
+
children: a
|
|
60
60
|
}) : null;
|
|
61
61
|
}, [
|
|
62
62
|
f,
|
|
@@ -74,10 +74,10 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
74
74
|
children: [S ? null : x, /* @__PURE__ */ r("div", {
|
|
75
75
|
className: "grid gap-1.5",
|
|
76
76
|
children: o.filter((e) => e.type !== "none").map((t, a) => {
|
|
77
|
-
let o =
|
|
77
|
+
let o = `${v ?? t.name ?? t.dataKey ?? "value"}`, s = g(b, t, o), l = _ ?? t.payload?.fill ?? t.color;
|
|
78
78
|
return /* @__PURE__ */ r("div", {
|
|
79
79
|
className: e("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", c === "dot" && "items-center"),
|
|
80
|
-
children: h && t?.value !== void 0 && t.name ? h(t.value, t.name, t, a, t.payload) : /* @__PURE__ */ i(n, { children: [
|
|
80
|
+
children: h && t?.value !== void 0 && t.name ? h(t.value, t.name, t, a, t.payload) : /* @__PURE__ */ i(n, { children: [s?.icon ? /* @__PURE__ */ r(s.icon, {}) : !d && /* @__PURE__ */ r("div", {
|
|
81
81
|
className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
82
82
|
"h-2.5 w-2.5": c === "dot",
|
|
83
83
|
"w-1": c === "line",
|
|
@@ -85,8 +85,8 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
85
85
|
"my-0.5": S && c === "dashed"
|
|
86
86
|
}),
|
|
87
87
|
style: {
|
|
88
|
-
"--color-bg":
|
|
89
|
-
"--color-border":
|
|
88
|
+
"--color-bg": l,
|
|
89
|
+
"--color-border": l
|
|
90
90
|
}
|
|
91
91
|
}), /* @__PURE__ */ i("div", {
|
|
92
92
|
className: e("flex flex-1 justify-between leading-none", S ? "items-end" : "items-center"),
|
|
@@ -94,7 +94,7 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
94
94
|
className: "grid gap-1.5",
|
|
95
95
|
children: [S ? x : null, /* @__PURE__ */ r("span", {
|
|
96
96
|
className: "text-muted-foreground",
|
|
97
|
-
children:
|
|
97
|
+
children: s?.label ?? t.name
|
|
98
98
|
})]
|
|
99
99
|
}), t.value != null && /* @__PURE__ */ r("span", {
|
|
100
100
|
className: "text-foreground font-mono font-medium tabular-nums",
|
|
@@ -112,13 +112,13 @@ function h({ className: t, hideIcon: n = !1, payload: a, verticalAlign: o = "bot
|
|
|
112
112
|
return a?.length ? /* @__PURE__ */ r("div", {
|
|
113
113
|
className: e("flex items-center justify-center gap-4", o === "top" ? "pb-3" : "pt-3", t),
|
|
114
114
|
children: a.filter((e) => e.type !== "none").map((t, a) => {
|
|
115
|
-
let o =
|
|
115
|
+
let o = `${s ?? t.dataKey ?? "value"}`, l = g(c, t, o);
|
|
116
116
|
return /* @__PURE__ */ i("div", {
|
|
117
117
|
className: e("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
118
|
-
children: [
|
|
118
|
+
children: [l?.icon && !n ? /* @__PURE__ */ r(l.icon, {}) : /* @__PURE__ */ r("div", {
|
|
119
119
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
120
120
|
style: { backgroundColor: t.color }
|
|
121
|
-
}),
|
|
121
|
+
}), l?.label]
|
|
122
122
|
}, a);
|
|
123
123
|
})
|
|
124
124
|
}) : null;
|
|
@@ -128,5 +128,4 @@ function g(e, t, n) {
|
|
|
128
128
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
129
129
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
130
130
|
}
|
|
131
|
-
//#endregion
|
|
132
131
|
export { u as ChartContainer, m as ChartLegend, h as ChartLegendContent, d as ChartStyle, f as ChartTooltip, p as ChartTooltipContent };
|
package/dist/checkbox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("lucide-react"),r=require("radix-ui"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime");function o({className:e,...i}){return(0,a.jsx)(r.Checkbox.Root,{"data-slot":`checkbox`,className:(0,t.cn)(`peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,e),...i,children:(0,a.jsx)(r.Checkbox.Indicator,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,a.jsx)(n.CheckIcon,{})})})}exports.Checkbox=o;
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { cn as e } from "cn";
|
|
3
|
+
import { CheckIcon as t } from "lucide-react";
|
|
4
|
+
import { Checkbox as n } from "radix-ui";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
|
+
// src/checkbox.tsx
|
|
8
|
+
function i({ className: i, ...a }) {
|
|
9
|
+
return /* @__PURE__ */ r(n.Root, {
|
|
10
|
+
"data-slot": "checkbox",
|
|
11
|
+
className: e("peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3", i),
|
|
12
|
+
...a,
|
|
13
|
+
children: /* @__PURE__ */ r(n.Indicator, {
|
|
14
|
+
"data-slot": "checkbox-indicator",
|
|
15
|
+
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
16
|
+
children: /* @__PURE__ */ r(t, {})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export { i as Checkbox };
|
package/dist/collapsible.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("radix-ui"),t=require("react/jsx-runtime");function n({...n}){return(0,t.jsx)(e.Collapsible.Root,{"data-slot":`collapsible`,...n})}function r({...n}){return(0,t.jsx)(e.Collapsible.CollapsibleTrigger,{"data-slot":`collapsible-trigger`,...n})}function i({...n}){return(0,t.jsx)(e.Collapsible.CollapsibleContent,{"data-slot":`collapsible-content`,...n})}exports.Collapsible=n,exports.CollapsibleContent=i,exports.CollapsibleTrigger=r;
|
package/dist/collapsible.mjs
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
3
|
+
import { Collapsible as e } from "radix-ui";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
// src/collapsible.tsx
|
|
6
|
+
function n({ ...n }) {
|
|
7
|
+
return /* @__PURE__ */ t(e.Root, {
|
|
8
8
|
"data-slot": "collapsible",
|
|
9
|
-
...
|
|
9
|
+
...n
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
12
|
+
function r({ ...n }) {
|
|
13
|
+
return /* @__PURE__ */ t(e.CollapsibleTrigger, {
|
|
14
14
|
"data-slot": "collapsible-trigger",
|
|
15
|
-
...
|
|
15
|
+
...n
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
function i({ ...n }) {
|
|
19
|
+
return /* @__PURE__ */ t(e.CollapsibleContent, {
|
|
20
20
|
"data-slot": "collapsible-content",
|
|
21
|
-
...
|
|
21
|
+
...n
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
export { i as Collapsible, o as CollapsibleContent, a as CollapsibleTrigger };
|
|
24
|
+
export { n as Collapsible, i as CollapsibleContent, r as CollapsibleTrigger };
|
package/dist/combobox.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs"),n=require("./input-group.cjs");let r=require("cn"),i=require("lucide-react"),a=require("react");a=e.t(a);let o=require("react/jsx-runtime"),s=require("@base-ui/react");var c=s.Combobox.Root;function l({...e}){return(0,o.jsx)(s.Combobox.Value,{"data-slot":`combobox-value`,...e})}function u({className:e,children:t,...n}){return(0,o.jsxs)(s.Combobox.Trigger,{"data-slot":`combobox-trigger`,className:(0,r.cn)(`[&_svg:not([class*='size-'])]:size-4`,e),...n,children:[t,(0,o.jsx)(i.ChevronDownIcon,{className:`text-muted-foreground pointer-events-none size-4`})]})}function d({className:e,...t}){return(0,o.jsx)(s.Combobox.Clear,{"data-slot":`combobox-clear`,render:(0,o.jsx)(n.InputGroupButton,{variant:`ghost`,size:`icon-xs`}),className:(0,r.cn)(e),...t,children:(0,o.jsx)(i.XIcon,{className:`pointer-events-none`})})}function f({className:e,children:t,disabled:i=!1,showTrigger:a=!0,showClear:c=!1,...l}){return(0,o.jsxs)(n.InputGroup,{className:(0,r.cn)(`w-auto`,e),children:[(0,o.jsx)(s.Combobox.Input,{render:(0,o.jsx)(n.InputGroupInput,{disabled:i}),...l}),(0,o.jsxs)(n.InputGroupAddon,{align:`inline-end`,children:[a&&(0,o.jsx)(n.InputGroupButton,{size:`icon-xs`,variant:`ghost`,asChild:!0,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:i,children:(0,o.jsx)(u,{})}),c&&(0,o.jsx)(d,{disabled:i})]}),t]})}function p({className:e,side:t=`bottom`,sideOffset:n=6,align:i=`start`,alignOffset:a=0,anchor:c,...l}){return(0,o.jsx)(s.Combobox.Portal,{children:(0,o.jsx)(s.Combobox.Positioner,{side:t,sideOffset:n,align:i,alignOffset:a,anchor:c,className:`isolate z-50`,children:(0,o.jsx)(s.Combobox.Popup,{"data-slot":`combobox-content`,"data-chips":!!c,className:(0,r.cn)(`group/combobox-content bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg shadow-md ring-1 duration-100 data-[chips=true]:min-w-(--anchor-width) *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none`,e),...l})})})}function m({className:e,...t}){return(0,o.jsx)(s.Combobox.List,{"data-slot":`combobox-list`,className:(0,r.cn)(`no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0`,e),...t})}function h({className:e,children:t,...n}){return(0,o.jsxs)(s.Combobox.Item,{"data-slot":`combobox-item`,className:(0,r.cn)(`data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[t,(0,o.jsx)(s.Combobox.ItemIndicator,{render:(0,o.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex size-4 items-center justify-center`}),children:(0,o.jsx)(i.CheckIcon,{className:`pointer-events-none`})})]})}function g({className:e,...t}){return(0,o.jsx)(s.Combobox.Group,{"data-slot":`combobox-group`,className:(0,r.cn)(e),...t})}function _({className:e,...t}){return(0,o.jsx)(s.Combobox.GroupLabel,{"data-slot":`combobox-label`,className:(0,r.cn)(`text-muted-foreground px-2 py-1.5 text-xs`,e),...t})}function v({...e}){return(0,o.jsx)(s.Combobox.Collection,{"data-slot":`combobox-collection`,...e})}function y({className:e,...t}){return(0,o.jsx)(s.Combobox.Empty,{"data-slot":`combobox-empty`,className:(0,r.cn)(`text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex`,e),...t})}function b({className:e,...t}){return(0,o.jsx)(s.Combobox.Separator,{"data-slot":`combobox-separator`,className:(0,r.cn)(`bg-border -mx-1 my-1 h-px`,e),...t})}function x({className:e,...t}){return(0,o.jsx)(s.Combobox.Chips,{"data-slot":`combobox-chips`,className:(0,r.cn)(`border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1`,e),...t})}function S({className:e,children:n,showRemove:a=!0,...c}){return(0,o.jsxs)(s.Combobox.Chip,{"data-slot":`combobox-chip`,className:(0,r.cn)(`bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pe-0`,e),...c,children:[n,a&&(0,o.jsx)(s.Combobox.ChipRemove,{render:(0,o.jsx)(t.Button,{variant:`ghost`,size:`icon-xs`}),className:`-ms-1 opacity-50 hover:opacity-100`,"data-slot":`combobox-chip-remove`,children:(0,o.jsx)(i.XIcon,{className:`pointer-events-none`})})]})}function C({className:e,...t}){return(0,o.jsx)(s.Combobox.Input,{"data-slot":`combobox-chip-input`,className:(0,r.cn)(`min-w-16 flex-1 outline-none`,e),...t})}function w(){return a.useRef(null)}exports.Combobox=c,exports.ComboboxChip=S,exports.ComboboxChips=x,exports.ComboboxChipsInput=C,exports.ComboboxCollection=v,exports.ComboboxContent=p,exports.ComboboxEmpty=y,exports.ComboboxGroup=g,exports.ComboboxInput=f,exports.ComboboxItem=h,exports.ComboboxLabel=_,exports.ComboboxList=m,exports.ComboboxSeparator=b,exports.ComboboxTrigger=u,exports.ComboboxValue=l,exports.useComboboxAnchor=w;
|