@clasing/ui 2.1.0 → 2.1.1
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/{badge-Ds17GJH4.js → badge-Cprh3bik.js} +24 -32
- package/dist/badge-Da_xHgvC.cjs +1 -0
- package/dist/button-B4yT3Gcz.cjs +1 -0
- package/dist/button-CUrfGF3Y.js +232 -0
- package/dist/{card-Dj2wgH-P.cjs → card-COFAc2zN.cjs} +1 -1
- package/dist/{card-BNTyYiyA.js → card-CbF9kVVs.js} +1 -1
- package/dist/chip-B7Mqq278.js +89 -0
- package/dist/chip-BG4NEZUv.cjs +1 -0
- package/dist/command-CrtCQpi_.cjs +1 -0
- package/dist/{command-CGUB58ej.js → command-ev4m9IoQ.js} +18 -24
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +24 -30
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +3 -3
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.d.ts +3 -4
- package/dist/components/alert.es.js +38 -39
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +2 -6
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.d.ts +2 -4
- package/dist/components/blocks/interactive-card.es.js +65 -80
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +19 -16
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +22 -22
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +4 -13
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +33 -54
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +1 -1
- package/dist/components/chart.es.js +1 -1
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +6 -6
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +1 -10
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +42 -48
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +40 -46
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +16 -16
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.d.ts +2 -6
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +66 -72
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +77 -96
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +10 -11
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +77 -79
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +1 -1
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +3 -3
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +47 -53
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +29 -29
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +2 -6
- package/dist/components/textarea.es.js +28 -36
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-CEttcpWT.js → dialog-CXbzQHxn.js} +9 -9
- package/dist/dialog-DHZARK1o.cjs +1 -0
- package/dist/index-9HRzXEQf.cjs +6 -0
- package/dist/{index-DBpnlzOP.js → index-D5lmpham.js} +677 -664
- package/dist/{index-CwXB7YIx.js → index-DN28Pf0m.js} +1 -1
- package/dist/{index-BVmT9wZC.cjs → index-ECyCsPX0.cjs} +1 -1
- package/dist/input-C144z_Is.cjs +1 -0
- package/dist/{input-B5HLfVv0.js → input-fvzEG6zH.js} +33 -47
- package/dist/{label-eHraXPfy.cjs → label-D3iN3bzS.cjs} +1 -1
- package/dist/{label-Bp4qkqFq.js → label-DDxTPxHk.js} +1 -1
- package/dist/{popover-Dvf9oQaX.js → popover-BdDS9aoy.js} +1 -1
- package/dist/{popover-DifOajI4.cjs → popover-CeOAAwBQ.cjs} +1 -1
- package/dist/{scroll-area-CJpVshOm.cjs → scroll-area-D74XszlE.cjs} +1 -1
- package/dist/{scroll-area-Dj0Szbw6.js → scroll-area-oS6ZJIMN.js} +1 -1
- package/dist/{toggle-owj9AHVO.js → toggle-BNzrNg1r.js} +2 -2
- package/dist/{toggle-CJLDdFRo.cjs → toggle-CtoQhQby.cjs} +1 -1
- package/dist/{tooltip-C9FWg102.cjs → tooltip-BccdAn4x.cjs} +1 -1
- package/dist/{tooltip-CGSL9pFZ.js → tooltip-rv-jVOxy.js} +1 -1
- package/package.json +352 -357
- package/dist/badge-oQqEF2X5.cjs +0 -1
- package/dist/button-B-JHlR-n.cjs +0 -1
- package/dist/button-ozL8afps.js +0 -573
- package/dist/chip-CK2VBBsV.js +0 -126
- package/dist/chip-DVKpteyL.cjs +0 -1
- package/dist/command-CHisYTN-.cjs +0 -1
- package/dist/components/icon-component.cjs.js +0 -1
- package/dist/components/icon-component.d.ts +0 -12
- package/dist/components/icon-component.es.js +0 -4
- package/dist/dialog-Chh5qAxR.cjs +0 -1
- package/dist/entries/icon-component.d.ts +0 -2
- package/dist/icon-component-DGImZz3K.js +0 -49
- package/dist/icon-component-DTlgy__B.cjs +0 -1
- package/dist/index-DSjHHn1r.cjs +0 -22
- package/dist/input-BqT_fuUN.cjs +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { C as S } from "../../chip-
|
|
3
|
-
import { L as
|
|
4
|
-
|
|
1
|
+
import { j as a, c as f, a as y } from "../../index-D5lmpham.js";
|
|
2
|
+
import { C as S } from "../../chip-B7Mqq278.js";
|
|
3
|
+
import { L as p } from "../../label-DDxTPxHk.js";
|
|
4
|
+
import { CheckIcon as A } from "@phosphor-icons/react";
|
|
5
|
+
const w = ({
|
|
5
6
|
id: v,
|
|
6
7
|
label: m,
|
|
7
8
|
options: x,
|
|
@@ -17,27 +18,29 @@ const L = ({
|
|
|
17
18
|
const t = r, j = (e) => {
|
|
18
19
|
if (!u)
|
|
19
20
|
return i(e.value), e.value;
|
|
20
|
-
let
|
|
21
|
-
return
|
|
21
|
+
let l = [];
|
|
22
|
+
return l = Array.isArray(t) ? t.includes(e.value) ? t.filter((N) => N !== e.value) : [...t, e.value] : [e.value], i(l), l;
|
|
22
23
|
}, C = (e) => u && Array.isArray(r) ? r.includes(e.value) : r === e.value;
|
|
23
|
-
return x.length === 0 ? null : /* @__PURE__ */
|
|
24
|
-
m && /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
const
|
|
27
|
-
return /* @__PURE__ */
|
|
24
|
+
return x.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: f("flex flex-col gap-3", d), children: [
|
|
25
|
+
m && /* @__PURE__ */ a.jsx(p, { htmlFor: v, className: f({ "text-neutral-700": n }), children: m }),
|
|
26
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex flex-wrap gap-2", children: x.map((e) => {
|
|
27
|
+
const l = C(e);
|
|
28
|
+
return /* @__PURE__ */ a.jsxs(
|
|
28
29
|
S,
|
|
29
30
|
{
|
|
30
|
-
intent:
|
|
31
|
-
iconLeft: a ? "IconCheck" : void 0,
|
|
31
|
+
intent: l ? "selected" : "unselected",
|
|
32
32
|
onClick: () => j(e),
|
|
33
33
|
className: "py-1",
|
|
34
34
|
disabled: n,
|
|
35
|
-
children:
|
|
35
|
+
children: [
|
|
36
|
+
l && /* @__PURE__ */ a.jsx(A, {}),
|
|
37
|
+
e.label
|
|
38
|
+
]
|
|
36
39
|
},
|
|
37
40
|
e.label
|
|
38
41
|
);
|
|
39
42
|
}) }),
|
|
40
|
-
s && c ? /* @__PURE__ */
|
|
43
|
+
s && c ? /* @__PURE__ */ a.jsx("span", { className: "text-error-main label-md -mt-1", children: s }) : /* @__PURE__ */ a.jsx(
|
|
41
44
|
"span",
|
|
42
45
|
{
|
|
43
46
|
className: y("label-md -mt-1", {
|
|
@@ -52,5 +55,5 @@ const L = ({
|
|
|
52
55
|
] });
|
|
53
56
|
};
|
|
54
57
|
export {
|
|
55
|
-
|
|
58
|
+
w as SelectableChips
|
|
56
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-9HRzXEQf.cjs"),i=require("@radix-ui/react-slot"),s=require("@phosphor-icons/react");function o({...e}){return r.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:r.cn("text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 wrap-break-word sm:gap-2.5",e),...t})}function u({className:e,...t}){return r.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:r.cn("inline-flex items-center gap-1.5",e),...t})}function m({asChild:e,className:t,...a}){const n=e?i.Slot:"a";return r.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:r.cn("hover:text-foreground transition-colors",t),...a})}function l({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r.cn("text-foreground font-semibold",e),...t})}function d({children:e,className:t,...a}){return r.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:r.cn("[&>svg]:size-3.5",t),...a,children:e??r.jsxRuntimeExports.jsx(s.CaretRightIcon,{})})}function x({className:e,...t}){return r.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:r.cn("flex size-9 items-center justify-center [&>svg]:size-3.5",e),...t,children:[r.jsxRuntimeExports.jsx(s.DotsThreeIcon,{}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb=o;exports.BreadcrumbEllipsis=x;exports.BreadcrumbItem=u;exports.BreadcrumbLink=m;exports.BreadcrumbList=c;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=d;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { j as a, c as t } from "../index-
|
|
2
|
-
import { Slot as
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
1
|
+
import { j as a, c as t } from "../index-D5lmpham.js";
|
|
2
|
+
import { Slot as o } from "@radix-ui/react-slot";
|
|
3
|
+
import { DotsThreeIcon as i, CaretRightIcon as c } from "@phosphor-icons/react";
|
|
4
|
+
function d({ ...r }) {
|
|
5
5
|
return /* @__PURE__ */ a.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function b({ className: r, ...e }) {
|
|
8
8
|
return /* @__PURE__ */ a.jsx(
|
|
9
9
|
"ol",
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "breadcrumb-list",
|
|
12
12
|
className: t(
|
|
13
|
-
"text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 break-
|
|
13
|
+
"text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 wrap-break-word sm:gap-2.5",
|
|
14
14
|
r
|
|
15
15
|
),
|
|
16
16
|
...e
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function p({ className: r, ...e }) {
|
|
21
21
|
return /* @__PURE__ */ a.jsx(
|
|
22
22
|
"li",
|
|
23
23
|
{
|
|
@@ -27,14 +27,14 @@ function b({ className: r, ...e }) {
|
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function x({
|
|
31
31
|
asChild: r,
|
|
32
32
|
className: e,
|
|
33
33
|
...s
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const n = r ? o : "a";
|
|
36
36
|
return /* @__PURE__ */ a.jsx(
|
|
37
|
-
|
|
37
|
+
n,
|
|
38
38
|
{
|
|
39
39
|
"data-slot": "breadcrumb-link",
|
|
40
40
|
className: t("hover:text-foreground transition-colors", e),
|
|
@@ -42,7 +42,7 @@ function p({
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function f({ className: r, ...e }) {
|
|
46
46
|
return /* @__PURE__ */ a.jsx(
|
|
47
47
|
"span",
|
|
48
48
|
{
|
|
@@ -55,7 +55,7 @@ function x({ className: r, ...e }) {
|
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function g({
|
|
59
59
|
children: r,
|
|
60
60
|
className: e,
|
|
61
61
|
...s
|
|
@@ -68,11 +68,11 @@ function f({
|
|
|
68
68
|
"aria-hidden": "true",
|
|
69
69
|
className: t("[&>svg]:size-3.5", e),
|
|
70
70
|
...s,
|
|
71
|
-
children: r ?? /* @__PURE__ */ a.jsx(
|
|
71
|
+
children: r ?? /* @__PURE__ */ a.jsx(c, {})
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function j({
|
|
76
76
|
className: r,
|
|
77
77
|
...e
|
|
78
78
|
}) {
|
|
@@ -88,18 +88,18 @@ function g({
|
|
|
88
88
|
),
|
|
89
89
|
...e,
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */ a.jsx(
|
|
91
|
+
/* @__PURE__ */ a.jsx(i, {}),
|
|
92
92
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "More" })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
d as Breadcrumb,
|
|
99
|
+
j as BreadcrumbEllipsis,
|
|
100
|
+
p as BreadcrumbItem,
|
|
101
|
+
x as BreadcrumbLink,
|
|
102
|
+
b as BreadcrumbList,
|
|
103
|
+
f as BreadcrumbPage,
|
|
104
|
+
g as BreadcrumbSeparator
|
|
105
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-B4yT3Gcz.cjs");exports.Button=t.Button;exports.buttonActiveStyles=t.buttonActiveStyles;exports.buttonLoadingStyles=t.buttonLoadingStyles;exports.buttonStyles=t.buttonStyles;
|
|
@@ -1,39 +1,30 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TablerIconName } from './icon-component';
|
|
4
3
|
export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonStyles> {
|
|
5
4
|
asChild?: boolean;
|
|
6
|
-
|
|
7
|
-
name: TablerIconName;
|
|
8
|
-
stroke?: string;
|
|
9
|
-
} | TablerIconName;
|
|
10
|
-
iconText?: string;
|
|
11
|
-
iconPosition?: 'left' | 'right' | 'only';
|
|
5
|
+
iconOnly?: boolean;
|
|
12
6
|
isLoading?: boolean;
|
|
13
7
|
isActive?: boolean;
|
|
14
8
|
tooltip?: React.ReactNode;
|
|
15
9
|
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
16
10
|
}
|
|
17
11
|
declare const buttonStyles: (props?: ({
|
|
18
|
-
variant?: "link" | "
|
|
12
|
+
variant?: "link" | "primary" | "secondary" | "inverse" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
19
13
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
20
14
|
rounded?: "default" | "full" | null | undefined;
|
|
21
15
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
22
|
-
iconPosition?: "right" | "left" | "only" | null | undefined;
|
|
23
16
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
24
17
|
declare const buttonLoadingStyles: (props?: ({
|
|
25
|
-
variant?: "link" | "
|
|
18
|
+
variant?: "link" | "primary" | "secondary" | "inverse" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
26
19
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
27
20
|
rounded?: "default" | "full" | null | undefined;
|
|
28
21
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
29
|
-
iconPosition?: "right" | "left" | "only" | null | undefined;
|
|
30
22
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
31
23
|
declare const buttonActiveStyles: (props?: ({
|
|
32
|
-
variant?: "link" | "
|
|
24
|
+
variant?: "link" | "primary" | "secondary" | "inverse" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
33
25
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
34
26
|
rounded?: "default" | "full" | null | undefined;
|
|
35
27
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
36
|
-
iconPosition?: "right" | "left" | "only" | null | undefined;
|
|
37
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
38
29
|
declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
30
|
export { Button, buttonActiveStyles, buttonLoadingStyles, buttonStyles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),b=require("react"),g=require("react-day-picker"),m=require("../button-B4yT3Gcz.cjs"),i=require("@phosphor-icons/react");function y(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const d=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(a,r,d.get?d:{enumerable:!0,get:()=>n[r]})}}return a.default=n,Object.freeze(a)}const f=y(b);function h({className:n,classNames:a,showOutsideDays:r=!0,captionLayout:d="label",buttonVariant:c="inverse",formatters:l,components:p,...x}){const t=g.getDefaultClassNames();return e.jsxRuntimeExports.jsx(g.DayPicker,{showOutsideDays:r,className:e.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] 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`,n),captionLayout:d,formatters:{formatMonthDropdown:o=>o.toLocaleString("default",{month:"short"}),...l},classNames:{root:e.cn("w-fit",t.root),months:e.cn("flex gap-4 flex-col md:flex-row relative",t.months),month:e.cn("flex flex-col w-full gap-4",t.month),nav:e.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",t.nav),button_previous:e.cn(m.buttonStyles({size:"sm",variant:c}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_previous),button_next:e.cn(m.buttonStyles({size:"sm",variant:c}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_next),month_caption:e.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",t.month_caption),dropdowns:e.cn("w-full flex items-center paragraph-sm font-medium justify-center h-(--cell-size) gap-1.5",t.dropdowns),dropdown_root:e.cn("relative has-focus:border-ring border border-input has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",t.dropdown_root),dropdown:e.cn("absolute bg-popover inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",d==="label"?"paragraph-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 paragraph-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("select-none w-(--cell-size)",t.week_number_header),week_number:e.cn("text-[0.8rem] select-none text-muted-foreground",t.week_number),day:e.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",t.day),range_start:e.cn("rounded-l-md bg-accent",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("rounded-r-md bg-accent",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...a},components:{Root:({className:o,rootRef:s,...u})=>e.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:s,className:e.cn(o),...u}),Chevron:({className:o,orientation:s,...u})=>s==="left"?e.jsxRuntimeExports.jsx(i.CaretLeftIcon,{...u}):s==="right"?e.jsxRuntimeExports.jsx(i.CaretRightIcon,{...u}):e.jsxRuntimeExports.jsx(i.CaretDownIcon,{...u}),DayButton:_,WeekNumber:({children:o,...s})=>e.jsxRuntimeExports.jsx("td",{...s,children:e.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:o})}),...p},...x})}function _({className:n,day:a,modifiers:r,...d}){const c=g.getDefaultClassNames(),l=f.useRef(null);return f.useEffect(()=>{r.focused&&l.current?.focus()},[r.focused]),e.jsxRuntimeExports.jsx(m.Button,{ref:l,variant:"inverse",size:"xs","data-day":a.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:e.cn("data-[selected-single=true]:bg-secondary data-[selected-single=true]:text-secondary-foreground data-[range-middle=true]:bg-blue-050 data-[range-start=true]:bg-secondary data-[range-start=true]:text-secondary-foreground data-[range-end=true]:bg-secondary data-[range-end=true]:text-secondary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground data-[selected-single=true]:hover:bg-secondary/80 data-[selected-single=true]:hover:text-secondary-foreground data-[range-start=true]:hover:bg-secondary/80 data-[range-end=true]:hover:bg-secondary/80 [&>span]:paragraph-xs flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 rounded-md p-1 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-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-middle=true]:text-blue-800 data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:opacity-70",c.day,n),...d})}exports.Calendar=h;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { getDefaultClassNames as
|
|
4
|
-
import { c as
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
1
|
+
import { j as r, c as e } from "../index-D5lmpham.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { getDefaultClassNames as f, DayPicker as b } from "react-day-picker";
|
|
4
|
+
import { c as m, B as y } from "../button-CUrfGF3Y.js";
|
|
5
|
+
import { CaretLeftIcon as h, CaretRightIcon as w, CaretDownIcon as _ } from "@phosphor-icons/react";
|
|
6
|
+
function C({
|
|
7
7
|
className: c,
|
|
8
|
-
classNames:
|
|
8
|
+
classNames: g,
|
|
9
9
|
showOutsideDays: a = !0,
|
|
10
10
|
captionLayout: s = "label",
|
|
11
11
|
buttonVariant: l = "inverse",
|
|
12
12
|
formatters: u,
|
|
13
|
-
components:
|
|
14
|
-
...
|
|
13
|
+
components: p,
|
|
14
|
+
...x
|
|
15
15
|
}) {
|
|
16
|
-
const t =
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
16
|
+
const t = f();
|
|
17
|
+
return /* @__PURE__ */ r.jsx(
|
|
18
|
+
b,
|
|
19
19
|
{
|
|
20
20
|
showOutsideDays: a,
|
|
21
21
|
className: e(
|
|
22
|
-
"bg-background group/calendar p-3 [--cell-size:--spacing(8)]
|
|
22
|
+
"bg-background group/calendar p-3 [--cell-size:--spacing(8)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",
|
|
23
23
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
24
24
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
25
25
|
c
|
|
26
26
|
),
|
|
27
27
|
captionLayout: s,
|
|
28
28
|
formatters: {
|
|
29
|
-
formatMonthDropdown: (
|
|
29
|
+
formatMonthDropdown: (n) => n.toLocaleString("default", { month: "short" }),
|
|
30
30
|
...u
|
|
31
31
|
},
|
|
32
32
|
classNames: {
|
|
@@ -41,12 +41,12 @@ function j({
|
|
|
41
41
|
t.nav
|
|
42
42
|
),
|
|
43
43
|
button_previous: e(
|
|
44
|
-
|
|
44
|
+
m({ size: "sm", variant: l }),
|
|
45
45
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
46
46
|
t.button_previous
|
|
47
47
|
),
|
|
48
48
|
button_next: e(
|
|
49
|
-
|
|
49
|
+
m({ size: "sm", variant: l }),
|
|
50
50
|
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
51
51
|
t.button_next
|
|
52
52
|
),
|
|
@@ -109,68 +109,47 @@ function j({
|
|
|
109
109
|
t.disabled
|
|
110
110
|
),
|
|
111
111
|
hidden: e("invisible", t.hidden),
|
|
112
|
-
...
|
|
112
|
+
...g
|
|
113
113
|
},
|
|
114
114
|
components: {
|
|
115
115
|
Root: ({
|
|
116
|
-
className:
|
|
116
|
+
className: n,
|
|
117
117
|
rootRef: d,
|
|
118
118
|
...o
|
|
119
|
-
}) => /* @__PURE__ */
|
|
119
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
122
|
"data-slot": "calendar",
|
|
123
123
|
ref: d,
|
|
124
|
-
className: e(
|
|
124
|
+
className: e(n),
|
|
125
125
|
...o
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
Chevron: ({ className:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
className: e("size-4", r),
|
|
133
|
-
...o
|
|
134
|
-
}
|
|
135
|
-
) : d === "right" ? /* @__PURE__ */ n.jsx(
|
|
136
|
-
g,
|
|
137
|
-
{
|
|
138
|
-
iconName: "IconChevronRight",
|
|
139
|
-
className: e("size-4", r),
|
|
140
|
-
...o
|
|
141
|
-
}
|
|
142
|
-
) : /* @__PURE__ */ n.jsx(
|
|
143
|
-
g,
|
|
144
|
-
{
|
|
145
|
-
iconName: "IconChevronDown",
|
|
146
|
-
className: e("size-4", r),
|
|
147
|
-
...o
|
|
148
|
-
}
|
|
149
|
-
),
|
|
150
|
-
DayButton: _,
|
|
151
|
-
WeekNumber: ({ children: r, ...d }) => /* @__PURE__ */ n.jsx("td", { ...d, children: /* @__PURE__ */ n.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: r }) }),
|
|
152
|
-
...x
|
|
128
|
+
Chevron: ({ className: n, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ r.jsx(h, { ...o }) : d === "right" ? /* @__PURE__ */ r.jsx(w, { ...o }) : /* @__PURE__ */ r.jsx(_, { ...o }),
|
|
129
|
+
DayButton: v,
|
|
130
|
+
WeekNumber: ({ children: n, ...d }) => /* @__PURE__ */ r.jsx("td", { ...d, children: /* @__PURE__ */ r.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: n }) }),
|
|
131
|
+
...p
|
|
153
132
|
},
|
|
154
|
-
...
|
|
133
|
+
...x
|
|
155
134
|
}
|
|
156
135
|
);
|
|
157
136
|
}
|
|
158
|
-
function
|
|
137
|
+
function v({
|
|
159
138
|
className: c,
|
|
160
|
-
day:
|
|
139
|
+
day: g,
|
|
161
140
|
modifiers: a,
|
|
162
141
|
...s
|
|
163
142
|
}) {
|
|
164
|
-
const l =
|
|
165
|
-
return
|
|
143
|
+
const l = f(), u = i.useRef(null);
|
|
144
|
+
return i.useEffect(() => {
|
|
166
145
|
a.focused && u.current?.focus();
|
|
167
|
-
}, [a.focused]), /* @__PURE__ */
|
|
146
|
+
}, [a.focused]), /* @__PURE__ */ r.jsx(
|
|
168
147
|
y,
|
|
169
148
|
{
|
|
170
149
|
ref: u,
|
|
171
150
|
variant: "inverse",
|
|
172
|
-
size: "
|
|
173
|
-
"data-day":
|
|
151
|
+
size: "xs",
|
|
152
|
+
"data-day": g.date.toLocaleDateString(),
|
|
174
153
|
"data-selected-single": a.selected && !a.range_start && !a.range_end && !a.range_middle,
|
|
175
154
|
"data-range-start": a.range_start,
|
|
176
155
|
"data-range-end": a.range_end,
|
|
@@ -185,5 +164,5 @@ function _({
|
|
|
185
164
|
);
|
|
186
165
|
}
|
|
187
166
|
export {
|
|
188
|
-
|
|
167
|
+
C as Calendar
|
|
189
168
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../card-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../card-COFAc2zN.cjs");exports.Card=r.Card;exports.CardAction=r.CardAction;exports.CardContent=r.CardContent;exports.CardDescription=r.CardDescription;exports.CardFooter=r.CardFooter;exports.CardHeader=r.CardHeader;exports.CardTitle=r.CardTitle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),L=require("react"),P=require("recharts");function E(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>s[n]})}}return t.default=s,Object.freeze(t)}const f=E(L),v=E(P),S={light:"",dark:".dark"},_=f.createContext(null);function k(){const s=f.useContext(_);if(!s)throw new Error("useChart must be used within a <ChartContainer />");return s}function T({id:s,className:t,children:n,config:r,...a}){const l=f.useId(),c=`chart-${s||l.replace(/:/g,"")}`;return e.jsxRuntimeExports.jsx(_.Provider,{value:{config:r},children:e.jsxRuntimeExports.jsxs("div",{"data-slot":"chart","data-chart":c,className:e.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 paragraph-xs flex aspect-video justify-center [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...a,children:[e.jsxRuntimeExports.jsx(y,{id:c,config:r}),e.jsxRuntimeExports.jsx(v.ResponsiveContainer,{children:n})]})})}const y=({id:s,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?e.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(S).map(([r,a])=>`
|
|
2
2
|
${a} [data-chart=${s}] {
|
|
3
3
|
${n.map(([l,c])=>{const i=c.theme?.[r]||c.color;return i?` --color-${l}: ${i};`:null}).join(`
|
|
4
4
|
`)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index-9HRzXEQf.cjs"),c=require("@radix-ui/react-checkbox"),a=require("@phosphor-icons/react");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=s(c);function d({className:e,...t}){return i.jsxRuntimeExports.jsx(n.Root,{"data-slot":"checkbox",className:i.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border transition-[color,background-color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsxRuntimeExports.jsx(a.CheckIcon,{className:"size-3.5"})})})}exports.Checkbox=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as e, c as a } from "../index-
|
|
1
|
+
import { j as e, c as a } from "../index-D5lmpham.js";
|
|
2
2
|
import * as r from "@radix-ui/react-checkbox";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { CheckIcon as o } from "@phosphor-icons/react";
|
|
4
|
+
function d({
|
|
5
5
|
className: i,
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
@@ -10,7 +10,7 @@ function c({
|
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "checkbox",
|
|
12
12
|
className: a(
|
|
13
|
-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
13
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-secondary data-[state=checked]:text-secondary-foreground dark:data-[state=checked]:bg-secondary data-[state=checked]:border-secondary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border transition-[color,background-color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
14
|
i
|
|
15
15
|
),
|
|
16
16
|
...t,
|
|
@@ -19,12 +19,12 @@ function c({
|
|
|
19
19
|
{
|
|
20
20
|
"data-slot": "checkbox-indicator",
|
|
21
21
|
className: "flex items-center justify-center text-current transition-none",
|
|
22
|
-
children: /* @__PURE__ */ e.jsx(o, {
|
|
22
|
+
children: /* @__PURE__ */ e.jsx(o, { className: "size-3.5" })
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
d as Checkbox
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chip-BG4NEZUv.cjs");exports.Chip=e.ChipComponent;exports.chipStyles=e.chipStyles;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TablerIconName } from './icon-component';
|
|
4
3
|
export interface IChipProps extends VariantProps<typeof chipStyles> {
|
|
5
|
-
iconLeft?: {
|
|
6
|
-
name: TablerIconName;
|
|
7
|
-
stroke?: string;
|
|
8
|
-
} | TablerIconName;
|
|
9
|
-
iconRight?: {
|
|
10
|
-
name: TablerIconName;
|
|
11
|
-
stroke?: string;
|
|
12
|
-
} | TablerIconName;
|
|
13
4
|
notification?: boolean;
|
|
14
5
|
onClick?: () => void;
|
|
15
6
|
disabled?: boolean;
|
|
@@ -17,7 +8,7 @@ export interface IChipProps extends VariantProps<typeof chipStyles> {
|
|
|
17
8
|
children?: React.ReactNode;
|
|
18
9
|
}
|
|
19
10
|
declare const chipStyles: (props?: ({
|
|
20
|
-
intent?: "
|
|
11
|
+
intent?: "error" | "selected" | "unselected" | null | undefined;
|
|
21
12
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
22
13
|
weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
|
|
23
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-9HRzXEQf.cjs"),s=require("@radix-ui/react-collapsible");function n(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const l=n(s);function r({...t}){return a.jsxRuntimeExports.jsx(l.Root,{"data-slot":"collapsible",...t})}function d({...t}){return a.jsxRuntimeExports.jsx(l.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(l.CollapsibleContent,{"data-slot":"collapsible-content",className:a.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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",t),...e})}exports.Collapsible=r;exports.CollapsibleContent=c;exports.CollapsibleTrigger=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../command-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../command-CrtCQpi_.cjs");exports.Command=m.Command;exports.CommandDialog=m.CommandDialog;exports.CommandEmpty=m.CommandEmpty;exports.CommandGroup=m.CommandGroup;exports.CommandInput=m.CommandInput;exports.CommandItem=m.CommandItem;exports.CommandList=m.CommandList;exports.CommandSeparator=m.CommandSeparator;exports.CommandShortcut=m.CommandShortcut;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, a as d, b as n, c as s, d as C, e as t, f as r, g as p, h as e } from "../command-
|
|
1
|
+
import { C as o, a as d, b as n, c as s, d as C, e as t, f as r, g as p, h as e } from "../command-ev4m9IoQ.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Command,
|
|
4
4
|
d as CommandDialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-9HRzXEQf.cjs"),i=require("@radix-ui/react-context-menu"),r=require("@phosphor-icons/react");function u(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const o=u(i);function d({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"context-menu",...t})}function c({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function p({...t}){return e.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function f({className:t,inset:n,children:a,...s}){return e.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:e.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground paragraph-sm flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[a,e.jsxRuntimeExports.jsx(r.CaretRightIcon,{className:"ml-auto"})]})}function g({className:t,...n}){return e.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:e.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function b({className:t,collisionPadding:n=24,...a}){return e.jsxRuntimeExports.jsx(o.Portal,{children:e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"context-menu-content",className:e.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...a})})}function v({className:t,inset:n,variant:a="default",...s}){return e.jsxRuntimeExports.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":a,className:e.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive! [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s})}function j({className:t,children:n,checked:a,...s}){return e.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:e.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",t),checked:a,...s,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(r.CheckIcon,{className:"size-4"})})}),n]})}function h({className:t,children:n,...a}){return e.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:e.cn("focus:bg-accent focus:text-accent-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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",t),...a,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(r.CircleIcon,{weight:"fill",className:"size-2 fill-current"})})}),n]})}function C({className:t,inset:n,...a}){return e.jsxRuntimeExports.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:e.cn("text-foreground paragraph-sm px-2 py-1.5 font-semibold data-inset:pl-8",t),...a})}function M({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"context-menu-separator",className:e.cn("bg-border -mx-1 my-1 h-px",t),...n})}function R({className:t,...n}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:e.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",t),...n})}exports.ContextMenu=d;exports.ContextMenuCheckboxItem=j;exports.ContextMenuContent=b;exports.ContextMenuGroup=x;exports.ContextMenuItem=v;exports.ContextMenuLabel=C;exports.ContextMenuPortal=l;exports.ContextMenuRadioGroup=p;exports.ContextMenuRadioItem=h;exports.ContextMenuSeparator=M;exports.ContextMenuShortcut=R;exports.ContextMenuSub=m;exports.ContextMenuSubContent=g;exports.ContextMenuSubTrigger=f;exports.ContextMenuTrigger=c;
|