@vlrc-fe/components 1.0.9 → 1.0.11
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/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/index100.js +30 -17
- package/dist/index101.cjs +1 -1
- package/dist/index102.js +35 -19
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +29 -19
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +98 -55
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +86 -48
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +12 -6
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +23 -16
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +205 -120
- package/dist/index109.cjs +1 -1
- package/dist/index11.js +105 -53
- package/dist/index113.js +12 -6
- package/dist/index114.cjs +1 -1
- package/dist/index115.js +18 -10
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +82 -41
- package/dist/index117.cjs +1 -1
- package/dist/index118.js +42 -21
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +12 -6
- package/dist/index12.cjs +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index121.js +18 -12
- package/dist/index122.cjs +1 -1
- package/dist/index123.js +42 -28
- package/dist/index124.cjs +1 -1
- package/dist/index126.js +86 -57
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +30 -17
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +42 -27
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +31 -18
- package/dist/index130.cjs +1 -1
- package/dist/index132.js +50 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +28 -14
- package/dist/index134.cjs +1 -1
- package/dist/index135.js +147 -99
- package/dist/index136.cjs +1 -1
- package/dist/index138.js +242 -170
- package/dist/index139.cjs +1 -1
- package/dist/index14.js +9 -5
- package/dist/index141.js +21 -10
- package/dist/index142.cjs +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index18.js +32 -16
- package/dist/index186.js +57 -44
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +56 -48
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +16 -12
- package/dist/index189.cjs +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index191.js +36 -23
- package/dist/index192.cjs +1 -1
- package/dist/index197.js +18 -15
- package/dist/index198.cjs +1 -1
- package/dist/index20.js +79 -41
- package/dist/index200.js +49 -33
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +20 -11
- package/dist/index202.cjs +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +30 -23
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +75 -39
- package/dist/index23.cjs +1 -1
- package/dist/index26.js +39 -28
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +20 -12
- package/dist/index28.cjs +1 -1
- package/dist/index33.js +23 -13
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +87 -49
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +86 -45
- package/dist/index36.cjs +1 -1
- package/dist/index4.js +49 -26
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +34 -18
- package/dist/index6.cjs +1 -1
- package/dist/index75.js +142 -77
- package/dist/index76.cjs +1 -1
- package/dist/index77.js +96 -49
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +137 -77
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -7
- package/dist/index80.cjs +1 -1
- package/dist/index81.js +130 -63
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +201 -158
- package/dist/index83.cjs +1 -1
- package/dist/index84.js +97 -59
- package/dist/index85.cjs +1 -1
- package/dist/index86.js +17 -10
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +13 -7
- package/dist/index88.cjs +1 -1
- package/dist/index89.js +54 -28
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +94 -53
- package/dist/index91.cjs +1 -1
- package/dist/index92.js +156 -89
- package/dist/index93.cjs +1 -1
- package/dist/index96.js +89 -47
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +78 -43
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +27 -17
- package/dist/index99.cjs +1 -1
- package/package.json +1 -1
package/dist/index35.js
CHANGED
|
@@ -4,16 +4,22 @@ import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader a
|
|
|
4
4
|
import { SearchIcon as o } from "lucide-react";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { c as l } from "react/compiler-runtime";
|
|
8
|
+
import { Command as u } from "cmdk";
|
|
8
9
|
//#region src/ui/command.tsx
|
|
9
|
-
function
|
|
10
|
-
|
|
10
|
+
function d(t) {
|
|
11
|
+
let n = l(8), r, i;
|
|
12
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
13
|
+
let a;
|
|
14
|
+
n[3] === r ? a = n[4] : (a = e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", r), n[3] = r, n[4] = a);
|
|
15
|
+
let o;
|
|
16
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s(u, {
|
|
11
17
|
"data-slot": "command",
|
|
12
|
-
className:
|
|
13
|
-
...
|
|
14
|
-
});
|
|
18
|
+
className: a,
|
|
19
|
+
...i
|
|
20
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
15
21
|
}
|
|
16
|
-
function
|
|
22
|
+
function f({ title: o = "Command Palette", description: l = "Search for a command to run...", children: u, className: f, showCloseButton: p = !0, ...m }) {
|
|
17
23
|
return /* @__PURE__ */ c(t, {
|
|
18
24
|
...m,
|
|
19
25
|
children: [/* @__PURE__ */ c(i, {
|
|
@@ -22,65 +28,100 @@ function d({ title: o = "Command Palette", description: l = "Search for a comman
|
|
|
22
28
|
}), /* @__PURE__ */ s(n, {
|
|
23
29
|
className: e("overflow-hidden p-0", f),
|
|
24
30
|
showCloseButton: p,
|
|
25
|
-
children: /* @__PURE__ */ s(
|
|
31
|
+
children: /* @__PURE__ */ s(d, {
|
|
26
32
|
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
27
|
-
children:
|
|
33
|
+
children: u
|
|
28
34
|
})
|
|
29
35
|
})]
|
|
30
36
|
});
|
|
31
37
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
38
|
+
function p(t) {
|
|
39
|
+
let n = l(9), r, i;
|
|
40
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
41
|
+
let a;
|
|
42
|
+
n[3] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ s(o, { className: "size-4 shrink-0 opacity-50" }), n[3] = a) : a = n[3];
|
|
43
|
+
let d;
|
|
44
|
+
n[4] === r ? d = n[5] : (d = e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", r), n[4] = r, n[5] = d);
|
|
45
|
+
let f;
|
|
46
|
+
return n[6] !== i || n[7] !== d ? (f = /* @__PURE__ */ c("div", {
|
|
34
47
|
"data-slot": "command-input-wrapper",
|
|
35
48
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
36
|
-
children: [
|
|
49
|
+
children: [a, /* @__PURE__ */ s(u.Input, {
|
|
37
50
|
"data-slot": "command-input",
|
|
38
|
-
className:
|
|
39
|
-
...
|
|
51
|
+
className: d,
|
|
52
|
+
...i
|
|
40
53
|
})]
|
|
41
|
-
});
|
|
54
|
+
}), n[6] = i, n[7] = d, n[8] = f) : f = n[8], f;
|
|
42
55
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
56
|
+
function m(t) {
|
|
57
|
+
let n = l(8), r, i;
|
|
58
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
59
|
+
let a;
|
|
60
|
+
n[3] === r ? a = n[4] : (a = e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", r), n[3] = r, n[4] = a);
|
|
61
|
+
let o;
|
|
62
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s(u.List, {
|
|
45
63
|
"data-slot": "command-list",
|
|
46
|
-
className:
|
|
47
|
-
...
|
|
48
|
-
});
|
|
64
|
+
className: a,
|
|
65
|
+
...i
|
|
66
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
49
67
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
68
|
+
function h(e) {
|
|
69
|
+
let t = l(4), n;
|
|
70
|
+
t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
|
|
71
|
+
let r;
|
|
72
|
+
return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ s(u.Empty, {
|
|
52
73
|
"data-slot": "command-empty",
|
|
53
74
|
className: "py-6 text-center text-sm",
|
|
54
|
-
...
|
|
55
|
-
});
|
|
75
|
+
...n
|
|
76
|
+
}), t[2] = n, t[3] = r), r;
|
|
56
77
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
78
|
+
function g(t) {
|
|
79
|
+
let n = l(8), r, i;
|
|
80
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
81
|
+
let a;
|
|
82
|
+
n[3] === r ? a = n[4] : (a = e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", r), n[3] = r, n[4] = a);
|
|
83
|
+
let o;
|
|
84
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s(u.Group, {
|
|
59
85
|
"data-slot": "command-group",
|
|
60
|
-
className:
|
|
61
|
-
...
|
|
62
|
-
});
|
|
86
|
+
className: a,
|
|
87
|
+
...i
|
|
88
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
63
89
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
90
|
+
function _(t) {
|
|
91
|
+
let n = l(8), r, i;
|
|
92
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
93
|
+
let a;
|
|
94
|
+
n[3] === r ? a = n[4] : (a = e("bg-border -mx-1 h-px", r), n[3] = r, n[4] = a);
|
|
95
|
+
let o;
|
|
96
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s(u.Separator, {
|
|
66
97
|
"data-slot": "command-separator",
|
|
67
|
-
className:
|
|
68
|
-
...
|
|
69
|
-
});
|
|
98
|
+
className: a,
|
|
99
|
+
...i
|
|
100
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
70
101
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
102
|
+
function v(t) {
|
|
103
|
+
let n = l(8), r, i;
|
|
104
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
105
|
+
let a;
|
|
106
|
+
n[3] === r ? a = n[4] : (a = e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r), n[3] = r, n[4] = a);
|
|
107
|
+
let o;
|
|
108
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s(u.Item, {
|
|
73
109
|
"data-slot": "command-item",
|
|
74
|
-
className:
|
|
75
|
-
...
|
|
76
|
-
});
|
|
110
|
+
className: a,
|
|
111
|
+
...i
|
|
112
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
77
113
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
114
|
+
function y(t) {
|
|
115
|
+
let n = l(8), r, i;
|
|
116
|
+
n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
|
|
117
|
+
let a;
|
|
118
|
+
n[3] === r ? a = n[4] : (a = e("text-muted-foreground ml-auto text-xs tracking-widest", r), n[3] = r, n[4] = a);
|
|
119
|
+
let o;
|
|
120
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ s("span", {
|
|
80
121
|
"data-slot": "command-shortcut",
|
|
81
|
-
className:
|
|
82
|
-
...
|
|
83
|
-
});
|
|
122
|
+
className: a,
|
|
123
|
+
...i
|
|
124
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
84
125
|
}
|
|
85
126
|
//#endregion
|
|
86
|
-
export {
|
|
127
|
+
export { d as Command, f as CommandDialog, h as CommandEmpty, g as CommandGroup, p as CommandInput, v as CommandItem, m as CommandList, _ as CommandSeparator, y as CommandShortcut };
|
package/dist/index36.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index35.cjs");let r=require("lucide-react"),i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("cmdk");function
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index35.cjs");let r=require("lucide-react"),i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react/compiler-runtime"),s=require("cmdk");function c(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let c;n[3]===r?c=n[4]:(c=t.cn(`bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md`,r),n[3]=r,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=(0,a.jsx)(s.Command,{"data-slot":`command`,className:c,...i}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function l({title:e=`Command Palette`,description:r=`Search for a command to run...`,children:i,className:o,showCloseButton:s=!0,...l}){return(0,a.jsxs)(n.Dialog,{...l,children:[(0,a.jsxs)(n.DialogHeader,{className:`sr-only`,children:[(0,a.jsx)(n.DialogTitle,{children:e}),(0,a.jsx)(n.DialogDescription,{children:r})]}),(0,a.jsx)(n.DialogContent,{className:t.cn(`overflow-hidden p-0`,o),showCloseButton:s,children:(0,a.jsx)(c,{className:`[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:i})})]})}function u(e){let n=(0,o.c)(9),i,c;n[0]===e?(i=n[1],c=n[2]):({className:i,...c}=e,n[0]=e,n[1]=i,n[2]=c);let l;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,a.jsx)(r.SearchIcon,{className:`size-4 shrink-0 opacity-50`}),n[3]=l):l=n[3];let u;n[4]===i?u=n[5]:(u=t.cn(`placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,i),n[4]=i,n[5]=u);let d;return n[6]!==c||n[7]!==u?(d=(0,a.jsxs)(`div`,{"data-slot":`command-input-wrapper`,className:`flex h-9 items-center gap-2 border-b px-3`,children:[l,(0,a.jsx)(s.Command.Input,{"data-slot":`command-input`,className:u,...c})]}),n[6]=c,n[7]=u,n[8]=d):d=n[8],d}function d(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let c;n[3]===r?c=n[4]:(c=t.cn(`max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto`,r),n[3]=r,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=(0,a.jsx)(s.Command.List,{"data-slot":`command-list`,className:c,...i}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function f(e){let t=(0,o.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,a.jsx)(s.Command.Empty,{"data-slot":`command-empty`,className:`py-6 text-center text-sm`,...n}),t[2]=n,t[3]=r),r}function p(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let c;n[3]===r?c=n[4]:(c=t.cn(`text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium`,r),n[3]=r,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=(0,a.jsx)(s.Command.Group,{"data-slot":`command-group`,className:c,...i}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function m(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let c;n[3]===r?c=n[4]:(c=t.cn(`bg-border -mx-1 h-px`,r),n[3]=r,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=(0,a.jsx)(s.Command.Separator,{"data-slot":`command-separator`,className:c,...i}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function h(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let c;n[3]===r?c=n[4]:(c=t.cn(`data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),n[3]=r,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=(0,a.jsx)(s.Command.Item,{"data-slot":`command-item`,className:c,...i}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function g(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let s;n[3]===r?s=n[4]:(s=t.cn(`text-muted-foreground ml-auto text-xs tracking-widest`,r),n[3]=r,n[4]=s);let c;return n[5]!==i||n[6]!==s?(c=(0,a.jsx)(`span`,{"data-slot":`command-shortcut`,className:s,...i}),n[5]=i,n[6]=s,n[7]=c):c=n[7],c}exports.Command=c,exports.CommandDialog=l,exports.CommandEmpty=f,exports.CommandGroup=p,exports.CommandInput=u,exports.CommandItem=h,exports.CommandList=d,exports.CommandSeparator=m,exports.CommandShortcut=g;
|
package/dist/index4.js
CHANGED
|
@@ -2,42 +2,65 @@ import { cn as e } from "./index3.js";
|
|
|
2
2
|
import { ChevronDownIcon as t } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
5
|
+
import { c as i } from "react/compiler-runtime";
|
|
6
|
+
import * as a from "@radix-ui/react-accordion";
|
|
6
7
|
//#region src/ui/accordion.tsx
|
|
7
|
-
function
|
|
8
|
-
|
|
8
|
+
function o(e) {
|
|
9
|
+
let t = i(4), r;
|
|
10
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
11
|
+
let o;
|
|
12
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ n(a.Root, {
|
|
9
13
|
"data-slot": "accordion",
|
|
10
|
-
...
|
|
11
|
-
});
|
|
14
|
+
...r
|
|
15
|
+
}), t[2] = r, t[3] = o), o;
|
|
12
16
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
17
|
+
function s(t) {
|
|
18
|
+
let r = i(8), o, s;
|
|
19
|
+
r[0] === t ? (o = r[1], s = r[2]) : ({className: o, ...s} = t, r[0] = t, r[1] = o, r[2] = s);
|
|
20
|
+
let c;
|
|
21
|
+
r[3] === o ? c = r[4] : (c = e("border-b last:border-b-0", o), r[3] = o, r[4] = c);
|
|
22
|
+
let l;
|
|
23
|
+
return r[5] !== s || r[6] !== c ? (l = /* @__PURE__ */ n(a.Item, {
|
|
15
24
|
"data-slot": "accordion-item",
|
|
16
|
-
className:
|
|
17
|
-
...
|
|
18
|
-
});
|
|
25
|
+
className: c,
|
|
26
|
+
...s
|
|
27
|
+
}), r[5] = s, r[6] = c, r[7] = l) : l = r[7], l;
|
|
19
28
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
29
|
+
function c(o) {
|
|
30
|
+
let s = i(11), c, l, u;
|
|
31
|
+
s[0] === o ? (c = s[1], l = s[2], u = s[3]) : ({className: l, children: c, ...u} = o, s[0] = o, s[1] = c, s[2] = l, s[3] = u);
|
|
32
|
+
let d;
|
|
33
|
+
s[4] === l ? d = s[5] : (d = e("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", l), s[4] = l, s[5] = d);
|
|
34
|
+
let f;
|
|
35
|
+
s[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ n(t, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" }), s[6] = f) : f = s[6];
|
|
36
|
+
let p;
|
|
37
|
+
return s[7] !== c || s[8] !== u || s[9] !== d ? (p = /* @__PURE__ */ n(a.Header, {
|
|
22
38
|
className: "flex",
|
|
23
|
-
children: /* @__PURE__ */ r(
|
|
39
|
+
children: /* @__PURE__ */ r(a.Trigger, {
|
|
24
40
|
"data-slot": "accordion-trigger",
|
|
25
|
-
className:
|
|
26
|
-
...
|
|
27
|
-
children: [
|
|
41
|
+
className: d,
|
|
42
|
+
...u,
|
|
43
|
+
children: [c, f]
|
|
28
44
|
})
|
|
29
|
-
});
|
|
45
|
+
}), s[7] = c, s[8] = u, s[9] = d, s[10] = p) : p = s[10], p;
|
|
30
46
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
47
|
+
function l(t) {
|
|
48
|
+
let r = i(12), o, s, c;
|
|
49
|
+
r[0] === t ? (o = r[1], s = r[2], c = r[3]) : ({className: s, children: o, ...c} = t, r[0] = t, r[1] = o, r[2] = s, r[3] = c);
|
|
50
|
+
let l;
|
|
51
|
+
r[4] === s ? l = r[5] : (l = e("pt-0 pb-4", s), r[4] = s, r[5] = l);
|
|
52
|
+
let u;
|
|
53
|
+
r[6] !== o || r[7] !== l ? (u = /* @__PURE__ */ n("div", {
|
|
54
|
+
className: l,
|
|
55
|
+
children: o
|
|
56
|
+
}), r[6] = o, r[7] = l, r[8] = u) : u = r[8];
|
|
57
|
+
let d;
|
|
58
|
+
return r[9] !== c || r[10] !== u ? (d = /* @__PURE__ */ n(a.Content, {
|
|
33
59
|
"data-slot": "accordion-content",
|
|
34
60
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
35
|
-
...
|
|
36
|
-
children:
|
|
37
|
-
|
|
38
|
-
children: r
|
|
39
|
-
})
|
|
40
|
-
});
|
|
61
|
+
...c,
|
|
62
|
+
children: u
|
|
63
|
+
}), r[9] = c, r[10] = u, r[11] = d) : d = r[11], d;
|
|
41
64
|
}
|
|
42
65
|
//#endregion
|
|
43
|
-
export {
|
|
66
|
+
export { o as Accordion, l as AccordionContent, s as AccordionItem, c as AccordionTrigger };
|
package/dist/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-accordion");
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("@radix-ui/react-accordion");o=e.__toESM(o,1);function s(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Root,{"data-slot":`accordion`,...n}),t[2]=n,t[3]=r),r}function c(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`border-b last:border-b-0`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.Item,{"data-slot":`accordion-item`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}function l(e){let r=(0,a.c)(11),s,c,l;r[0]===e?(s=r[1],c=r[2],l=r[3]):({className:c,children:s,...l}=e,r[0]=e,r[1]=s,r[2]=c,r[3]=l);let u;r[4]===c?u=r[5]:(u=t.cn(`focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180`,c),r[4]=c,r[5]=u);let d;r[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,i.jsx)(n.ChevronDownIcon,{className:`text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200`}),r[6]=d):d=r[6];let f;return r[7]!==s||r[8]!==l||r[9]!==u?(f=(0,i.jsx)(o.Header,{className:`flex`,children:(0,i.jsxs)(o.Trigger,{"data-slot":`accordion-trigger`,className:u,...l,children:[s,d]})}),r[7]=s,r[8]=l,r[9]=u,r[10]=f):f=r[10],f}function u(e){let n=(0,a.c)(12),r,s,c;n[0]===e?(r=n[1],s=n[2],c=n[3]):({className:s,children:r,...c}=e,n[0]=e,n[1]=r,n[2]=s,n[3]=c);let l;n[4]===s?l=n[5]:(l=t.cn(`pt-0 pb-4`,s),n[4]=s,n[5]=l);let u;n[6]!==r||n[7]!==l?(u=(0,i.jsx)(`div`,{className:l,children:r}),n[6]=r,n[7]=l,n[8]=u):u=n[8];let d;return n[9]!==c||n[10]!==u?(d=(0,i.jsx)(o.Content,{"data-slot":`accordion-content`,className:`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm`,...c,children:u}),n[9]=c,n[10]=u,n[11]=d):d=n[11],d}exports.Accordion=s,exports.AccordionContent=u,exports.AccordionItem=c,exports.AccordionTrigger=l;
|
package/dist/index5.js
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
import { cn as e } from "./index3.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { c as n } from "react/compiler-runtime";
|
|
5
|
+
import { cva as r } from "class-variance-authority";
|
|
5
6
|
//#region src/ui/alert.tsx
|
|
6
|
-
var
|
|
7
|
+
var i = r("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
7
8
|
variants: { variant: {
|
|
8
9
|
default: "bg-card text-card-foreground",
|
|
9
10
|
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
10
11
|
} },
|
|
11
12
|
defaultVariants: { variant: "default" }
|
|
12
13
|
});
|
|
13
|
-
function
|
|
14
|
-
|
|
14
|
+
function a(r) {
|
|
15
|
+
let a = n(10), o, s, c;
|
|
16
|
+
a[0] === r ? (o = a[1], s = a[2], c = a[3]) : ({className: o, variant: c, ...s} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c);
|
|
17
|
+
let l;
|
|
18
|
+
a[4] !== o || a[5] !== c ? (l = e(i({ variant: c }), o), a[4] = o, a[5] = c, a[6] = l) : l = a[6];
|
|
19
|
+
let u;
|
|
20
|
+
return a[7] !== s || a[8] !== l ? (u = /* @__PURE__ */ t("div", {
|
|
15
21
|
"data-slot": "alert",
|
|
16
22
|
role: "alert",
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
19
|
-
});
|
|
23
|
+
className: l,
|
|
24
|
+
...s
|
|
25
|
+
}), a[7] = s, a[8] = l, a[9] = u) : u = a[9], u;
|
|
20
26
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
27
|
+
function o(r) {
|
|
28
|
+
let i = n(8), a, o;
|
|
29
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
30
|
+
let s;
|
|
31
|
+
i[3] === a ? s = i[4] : (s = e("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", a), i[3] = a, i[4] = s);
|
|
32
|
+
let c;
|
|
33
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
23
34
|
"data-slot": "alert-title",
|
|
24
|
-
className:
|
|
25
|
-
...
|
|
26
|
-
});
|
|
35
|
+
className: s,
|
|
36
|
+
...o
|
|
37
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
27
38
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
39
|
+
function s(r) {
|
|
40
|
+
let i = n(8), a, o;
|
|
41
|
+
i[0] === r ? (a = i[1], o = i[2]) : ({className: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
|
|
42
|
+
let s;
|
|
43
|
+
i[3] === a ? s = i[4] : (s = e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", a), i[3] = a, i[4] = s);
|
|
44
|
+
let c;
|
|
45
|
+
return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ t("div", {
|
|
30
46
|
"data-slot": "alert-description",
|
|
31
|
-
className:
|
|
32
|
-
...
|
|
33
|
-
});
|
|
47
|
+
className: s,
|
|
48
|
+
...o
|
|
49
|
+
}), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
|
|
34
50
|
}
|
|
35
51
|
//#endregion
|
|
36
|
-
export {
|
|
52
|
+
export { a as Alert, s as AlertDescription, o as AlertTitle };
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react/compiler-runtime");var a=(0,require("class-variance-authority").cva)(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90`}},defaultVariants:{variant:`default`}});function o(e){let n=(0,i.c)(10),o,s,c;n[0]===e?(o=n[1],s=n[2],c=n[3]):({className:o,variant:c,...s}=e,n[0]=e,n[1]=o,n[2]=s,n[3]=c);let l;n[4]!==o||n[5]!==c?(l=t.cn(a({variant:c}),o),n[4]=o,n[5]=c,n[6]=l):l=n[6];let u;return n[7]!==s||n[8]!==l?(u=(0,r.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:l,...s}),n[7]=s,n[8]=l,n[9]=u):u=n[9],u}function s(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`alert-title`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(e){let n=(0,i.c)(8),a,o;n[0]===e?(a=n[1],o=n[2]):({className:a,...o}=e,n[0]=e,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=t.cn(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`alert-description`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}exports.Alert=o,exports.AlertDescription=c,exports.AlertTitle=s;
|