laif-ds 0.1.15 → 0.1.16
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/app-sidebar.js +35 -22
- package/dist/components/ui/async-select.js +119 -104
- package/dist/components/ui/card.js +48 -29
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/multiple-selector.js +111 -111
- package/dist/index.d.ts +9 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
a as default
|
|
5
8
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
-
var t = r();
|
|
5
|
-
const x = /* @__PURE__ */ e(t);
|
|
2
|
+
var e = { exports: {} };
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __module
|
|
8
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
-
var s = e();
|
|
5
|
-
const o = /* @__PURE__ */ r(s);
|
|
2
|
+
var e = {};
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __exports
|
|
8
5
|
};
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/classnames/index.js";
|
|
4
|
+
var s = e();
|
|
5
|
+
const o = /* @__PURE__ */ r(s);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
o as default
|
|
5
8
|
};
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Sidebar as
|
|
4
|
-
import { Icon as
|
|
5
|
-
function
|
|
6
|
-
navigation:
|
|
7
|
-
versions:
|
|
8
|
-
defaultVersion:
|
|
9
|
-
headerContent:
|
|
10
|
-
footerContent:
|
|
11
|
-
showRail:
|
|
12
|
-
...
|
|
3
|
+
import { Sidebar as o, SidebarHeader as u, SidebarContent as S, SidebarGroup as b, SidebarGroupLabel as p, SidebarGroupContent as m, SidebarMenu as f, SidebarMenuItem as x, SidebarMenuButton as M, SidebarMenuSub as N, SidebarMenuSubItem as v, SidebarMenuSubButton as A, SidebarRail as C } from "./sidebar.js";
|
|
4
|
+
import { Icon as d } from "./icon.js";
|
|
5
|
+
function H({
|
|
6
|
+
navigation: c,
|
|
7
|
+
versions: G,
|
|
8
|
+
defaultVersion: j,
|
|
9
|
+
headerContent: l,
|
|
10
|
+
footerContent: t,
|
|
11
|
+
showRail: s = !0,
|
|
12
|
+
...h
|
|
13
13
|
}) {
|
|
14
|
-
return /* @__PURE__ */ n(
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
19
|
-
i.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
return /* @__PURE__ */ n(o, { ...h, children: [
|
|
15
|
+
l && /* @__PURE__ */ e(u, { children: l }),
|
|
16
|
+
/* @__PURE__ */ e(S, { children: c.map((a) => /* @__PURE__ */ n(b, { children: [
|
|
17
|
+
/* @__PURE__ */ e(p, { children: a.title }),
|
|
18
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(f, { children: a.items.map((i) => /* @__PURE__ */ n(x, { children: [
|
|
19
|
+
/* @__PURE__ */ e(M, { asChild: !0, isActive: i.isActive, children: /* @__PURE__ */ n("a", { href: i.url, className: "flex items-center gap-2", children: [
|
|
20
|
+
i.iconName && /* @__PURE__ */ e(d, { name: i.iconName, size: "sm" }),
|
|
21
|
+
/* @__PURE__ */ e("span", { children: i.title })
|
|
22
|
+
] }) }),
|
|
23
|
+
i.subItems && i.subItems.length > 0 && /* @__PURE__ */ e(N, { children: i.subItems.map((r) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
24
|
+
A,
|
|
25
|
+
{
|
|
26
|
+
asChild: !0,
|
|
27
|
+
isActive: r.isActive,
|
|
28
|
+
children: /* @__PURE__ */ n("a", { href: r.url, className: "flex items-center gap-2", children: [
|
|
29
|
+
r.iconName && /* @__PURE__ */ e(d, { name: r.iconName, size: "xs" }),
|
|
30
|
+
/* @__PURE__ */ e("span", { children: r.title })
|
|
31
|
+
] })
|
|
32
|
+
}
|
|
33
|
+
) }, r.title)) })
|
|
34
|
+
] }, i.title)) }) })
|
|
35
|
+
] }, a.title)) }),
|
|
36
|
+
t,
|
|
37
|
+
s && /* @__PURE__ */ e(C, {})
|
|
25
38
|
] });
|
|
26
39
|
}
|
|
27
40
|
export {
|
|
28
|
-
|
|
41
|
+
H as AppSidebar
|
|
29
42
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useDebounce as
|
|
6
|
-
import { cva as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { Label as
|
|
10
|
-
import { Command as
|
|
11
|
-
import { Popover as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
2
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as V from "react";
|
|
4
|
+
import { useState as r, useEffect as g, useCallback as F } from "react";
|
|
5
|
+
import { useDebounce as ee } from "../../hooks/use-debounce.js";
|
|
6
|
+
import { cva as te } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
7
|
+
import { cn as D } from "../../lib/utils.js";
|
|
8
|
+
import { Button as se } from "./button.js";
|
|
9
|
+
import { Label as ne } from "./label.js";
|
|
10
|
+
import { Command as oe, CommandInput as re, CommandList as ae, CommandEmpty as ie, CommandGroup as M, CommandItem as $ } from "./command.js";
|
|
11
|
+
import { Popover as le, PopoverTrigger as ce, PopoverContent as de } from "./popover.js";
|
|
12
|
+
import me from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
13
|
+
import fe from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js";
|
|
14
|
+
import pe from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
15
|
+
import ue from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
16
|
+
const he = te(
|
|
16
17
|
"justify-between",
|
|
17
18
|
{
|
|
18
19
|
variants: {
|
|
@@ -27,148 +28,162 @@ const pe = ee(
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
|
-
function
|
|
31
|
-
fetcher:
|
|
31
|
+
function Oe({
|
|
32
|
+
fetcher: l,
|
|
32
33
|
preload: d,
|
|
33
|
-
filterFn:
|
|
34
|
+
filterFn: x,
|
|
34
35
|
renderOption: A,
|
|
35
36
|
getOptionValue: i,
|
|
36
37
|
getDisplayValue: B,
|
|
37
38
|
notFound: G,
|
|
38
|
-
loadingSkeleton:
|
|
39
|
-
label:
|
|
40
|
-
labelClassName:
|
|
41
|
-
placeholder:
|
|
39
|
+
loadingSkeleton: R,
|
|
40
|
+
label: c,
|
|
41
|
+
labelClassName: U,
|
|
42
|
+
placeholder: X = "Select...",
|
|
42
43
|
value: a,
|
|
43
|
-
onChange:
|
|
44
|
-
disabled:
|
|
45
|
-
width:
|
|
44
|
+
onChange: m,
|
|
45
|
+
disabled: j = !1,
|
|
46
|
+
width: E = "200px",
|
|
46
47
|
className: q,
|
|
47
48
|
triggerClassName: H,
|
|
48
49
|
noResultsMessage: J,
|
|
49
|
-
clearable:
|
|
50
|
+
clearable: v = !0,
|
|
50
51
|
size: K
|
|
51
52
|
}) {
|
|
52
|
-
const [
|
|
53
|
-
|
|
54
|
-
Q(!0),
|
|
55
|
-
}, [a]),
|
|
56
|
-
if (a &&
|
|
57
|
-
const
|
|
58
|
-
|
|
53
|
+
const [f, Q] = r(!1), [O, N] = r(!1), [o, p] = r([]), [w, u] = r(!1), [C, h] = r(null), [S, b] = r(a), [z, L] = r(null), [T, W] = r(""), y = ee(T, d ? 0 : 300), [k, P] = r([]);
|
|
54
|
+
g(() => {
|
|
55
|
+
Q(!0), b(a);
|
|
56
|
+
}, [a]), g(() => {
|
|
57
|
+
if (a && o.length > 0) {
|
|
58
|
+
const t = o.find((s) => i(s) === a);
|
|
59
|
+
t && L(t);
|
|
59
60
|
}
|
|
60
|
-
}, [a,
|
|
61
|
-
|
|
61
|
+
}, [a, o, i]), g(() => {
|
|
62
|
+
f || (async () => {
|
|
62
63
|
try {
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
} catch (
|
|
67
|
-
h(
|
|
64
|
+
u(!0), h(null);
|
|
65
|
+
const s = await l(a);
|
|
66
|
+
P(s), p(s);
|
|
67
|
+
} catch (s) {
|
|
68
|
+
h(s instanceof Error ? s.message : "Failed to fetch options");
|
|
68
69
|
} finally {
|
|
69
|
-
|
|
70
|
+
u(!1);
|
|
70
71
|
}
|
|
71
72
|
})();
|
|
72
|
-
}, [
|
|
73
|
-
const
|
|
73
|
+
}, [f, l, a]), g(() => {
|
|
74
|
+
const t = async () => {
|
|
74
75
|
try {
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
} catch (
|
|
79
|
-
h(
|
|
76
|
+
u(!0), h(null);
|
|
77
|
+
const s = await l(y);
|
|
78
|
+
P(s), p(s);
|
|
79
|
+
} catch (s) {
|
|
80
|
+
h(s instanceof Error ? s.message : "Failed to fetch options");
|
|
80
81
|
} finally {
|
|
81
|
-
|
|
82
|
+
u(!1);
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
|
|
85
|
-
}, [
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
}, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
f && d ? d && p(y ? k.filter((s) => x ? x(s, y) : !0) : k) : t();
|
|
86
|
+
}, [l, y, f, d, x]);
|
|
87
|
+
const Y = F((t) => {
|
|
88
|
+
const s = v && t === S ? "" : t;
|
|
89
|
+
b(s), L(o.find((_) => i(_) === s) || null), m(s), N(!1);
|
|
90
|
+
}, [S, m, v, o, i]), Z = F((t) => {
|
|
91
|
+
t.stopPropagation(), t.preventDefault(), b(""), L(null), m(""), N(!1);
|
|
92
|
+
}, [m]), I = V.useId();
|
|
93
|
+
return /* @__PURE__ */ n("div", { className: "space-y-1.5", children: [
|
|
94
|
+
c && /* @__PURE__ */ e(
|
|
95
|
+
ne,
|
|
93
96
|
{
|
|
94
|
-
htmlFor:
|
|
95
|
-
className:
|
|
96
|
-
children:
|
|
97
|
+
htmlFor: I,
|
|
98
|
+
className: U,
|
|
99
|
+
children: c
|
|
97
100
|
}
|
|
98
101
|
),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
102
|
+
/* @__PURE__ */ n(le, { open: O, onOpenChange: N, children: [
|
|
103
|
+
/* @__PURE__ */ e(ce, { asChild: !0, children: /* @__PURE__ */ e(
|
|
104
|
+
se,
|
|
102
105
|
{
|
|
103
|
-
id:
|
|
106
|
+
id: I,
|
|
104
107
|
variant: "outline",
|
|
105
108
|
role: "combobox",
|
|
106
|
-
"aria-expanded":
|
|
107
|
-
className:
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
"aria-expanded": O,
|
|
110
|
+
className: D(
|
|
111
|
+
he({ size: K }),
|
|
112
|
+
j && "opacity-50 cursor-not-allowed",
|
|
110
113
|
H
|
|
111
114
|
),
|
|
112
|
-
style: { width:
|
|
113
|
-
disabled:
|
|
114
|
-
children: [
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
|
|
115
|
+
style: { width: E },
|
|
116
|
+
disabled: j,
|
|
117
|
+
children: /* @__PURE__ */ n("div", { className: "flex-1 flex items-center justify-between overflow-hidden", children: [
|
|
118
|
+
z ? /* @__PURE__ */ e("div", { className: "truncate", children: B(z) }) : /* @__PURE__ */ e("span", { className: "text-d-secondary-foreground hover:text-d-foreground", children: X }),
|
|
119
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
120
|
+
v && z && /* @__PURE__ */ e(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
className: "flex items-center justify-center rounded-full bg-d-secondary/20 hover:bg-d-secondary/30 p-1 cursor-pointer z-20 border",
|
|
124
|
+
onClick: Z,
|
|
125
|
+
onMouseDown: (t) => t.preventDefault(),
|
|
126
|
+
"aria-label": "Clear selection",
|
|
127
|
+
children: /* @__PURE__ */ e(me, { size: 12, className: "text-d-foreground" })
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ e(fe, { className: "opacity-50", size: 10 })
|
|
131
|
+
] })
|
|
132
|
+
] })
|
|
118
133
|
}
|
|
119
134
|
) }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
|
|
135
|
+
/* @__PURE__ */ e(de, { style: { width: E }, className: D("p-0", q), children: /* @__PURE__ */ n(oe, { shouldFilter: !1, children: [
|
|
136
|
+
/* @__PURE__ */ n("div", { className: "relative border-b w-full", children: [
|
|
137
|
+
/* @__PURE__ */ e(
|
|
138
|
+
re,
|
|
124
139
|
{
|
|
125
|
-
placeholder: `Search ${typeof
|
|
126
|
-
value:
|
|
127
|
-
onValueChange: (
|
|
128
|
-
W(
|
|
140
|
+
placeholder: `Search ${typeof c == "string" ? c.toLowerCase() : "options"}...`,
|
|
141
|
+
value: T,
|
|
142
|
+
onValueChange: (t) => {
|
|
143
|
+
W(t);
|
|
129
144
|
}
|
|
130
145
|
}
|
|
131
146
|
),
|
|
132
|
-
|
|
147
|
+
w && o.length > 0 && /* @__PURE__ */ e("div", { className: "absolute right-2 top-1/2 transform -translate-y-1/2 flex items-center", children: /* @__PURE__ */ e(pe, { className: "h-4 w-4 animate-spin" }) })
|
|
133
148
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
!
|
|
138
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ n(ae, { children: [
|
|
150
|
+
C && /* @__PURE__ */ e("div", { className: "p-3 text-d-destructive text-center", children: C }),
|
|
151
|
+
w && o.length === 0 && (R || /* @__PURE__ */ e(ye, {})),
|
|
152
|
+
!w && !C && o.length === 0 && (G || /* @__PURE__ */ e(ie, { children: J ?? `No ${typeof c == "string" ? c.toLowerCase() : "options"} found.` })),
|
|
153
|
+
/* @__PURE__ */ e(M, { children: o.map((t) => /* @__PURE__ */ n(
|
|
139
154
|
$,
|
|
140
155
|
{
|
|
141
|
-
value: i(
|
|
142
|
-
onSelect:
|
|
156
|
+
value: i(t),
|
|
157
|
+
onSelect: Y,
|
|
143
158
|
children: [
|
|
144
|
-
A(
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
159
|
+
A(t),
|
|
160
|
+
/* @__PURE__ */ e(
|
|
161
|
+
ue,
|
|
147
162
|
{
|
|
148
|
-
className:
|
|
163
|
+
className: D(
|
|
149
164
|
"ml-auto h-3 w-3",
|
|
150
|
-
|
|
165
|
+
S === i(t) ? "opacity-100" : "opacity-0"
|
|
151
166
|
)
|
|
152
167
|
}
|
|
153
168
|
)
|
|
154
169
|
]
|
|
155
170
|
},
|
|
156
|
-
i(
|
|
171
|
+
i(t)
|
|
157
172
|
)) })
|
|
158
173
|
] })
|
|
159
174
|
] }) })
|
|
160
175
|
] })
|
|
161
176
|
] });
|
|
162
177
|
}
|
|
163
|
-
function
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
178
|
+
function ye() {
|
|
179
|
+
return /* @__PURE__ */ e(M, { children: [1, 2, 3].map((l) => /* @__PURE__ */ e($, { disabled: !0, children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full", children: [
|
|
180
|
+
/* @__PURE__ */ e("div", { className: "h-6 w-6 rounded-full animate-pulse bg-d-secondary" }),
|
|
181
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col flex-1 gap-1", children: [
|
|
182
|
+
/* @__PURE__ */ e("div", { className: "h-4 w-24 animate-pulse bg-d-secondary rounded" }),
|
|
183
|
+
/* @__PURE__ */ e("div", { className: "h-3 w-16 animate-pulse bg-d-secondary rounded" })
|
|
169
184
|
] })
|
|
170
|
-
] }) },
|
|
185
|
+
] }) }, l)) });
|
|
171
186
|
}
|
|
172
187
|
export {
|
|
173
|
-
|
|
188
|
+
Oe as AsyncSelect
|
|
174
189
|
};
|
|
@@ -1,84 +1,103 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
sm:
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { cn as o } from "../../lib/utils.js";
|
|
5
|
+
const s = n.createContext({ size: "default" }), d = {
|
|
6
|
+
sm: {
|
|
7
|
+
py: "py-3",
|
|
8
|
+
px: "px-3",
|
|
9
|
+
gap: "gap-4"
|
|
10
|
+
},
|
|
11
|
+
default: {
|
|
12
|
+
py: "py-6",
|
|
13
|
+
px: "px-6",
|
|
14
|
+
gap: "gap-6"
|
|
15
|
+
},
|
|
16
|
+
lg: {
|
|
17
|
+
py: "py-8",
|
|
18
|
+
px: "px-8",
|
|
19
|
+
gap: "gap-8"
|
|
20
|
+
},
|
|
21
|
+
none: {
|
|
22
|
+
py: "",
|
|
23
|
+
px: "",
|
|
24
|
+
gap: ""
|
|
25
|
+
}
|
|
9
26
|
};
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ r(
|
|
27
|
+
function l({ className: a, size: t = "default", ...e }) {
|
|
28
|
+
return /* @__PURE__ */ r(s.Provider, { value: { size: t }, children: /* @__PURE__ */ r(
|
|
12
29
|
"div",
|
|
13
30
|
{
|
|
14
31
|
"data-slot": "card",
|
|
15
|
-
className:
|
|
16
|
-
`bg-d-card text-d-card-foreground flex flex-col rounded-xl border shadow-sm ${
|
|
32
|
+
className: o(
|
|
33
|
+
`bg-d-card text-d-card-foreground flex flex-col rounded-xl border shadow-sm ${d[t].py} ${d[t].gap}`,
|
|
17
34
|
a
|
|
18
35
|
),
|
|
19
|
-
...
|
|
36
|
+
...e
|
|
20
37
|
}
|
|
21
38
|
) });
|
|
22
39
|
}
|
|
23
|
-
function
|
|
24
|
-
const { size:
|
|
40
|
+
function u({ className: a, ...t }) {
|
|
41
|
+
const { size: e } = n.useContext(s);
|
|
25
42
|
return /* @__PURE__ */ r(
|
|
26
43
|
"div",
|
|
27
44
|
{
|
|
28
45
|
"data-slot": "card-header",
|
|
29
|
-
className:
|
|
30
|
-
`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 ${
|
|
46
|
+
className: o(
|
|
47
|
+
`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 ${d[e].px} has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,
|
|
31
48
|
a
|
|
32
49
|
),
|
|
33
50
|
...t
|
|
34
51
|
}
|
|
35
52
|
);
|
|
36
53
|
}
|
|
37
|
-
function
|
|
54
|
+
function x({ className: a, ...t }) {
|
|
38
55
|
return /* @__PURE__ */ r(
|
|
39
56
|
"div",
|
|
40
57
|
{
|
|
41
58
|
"data-slot": "card-title",
|
|
42
|
-
className:
|
|
59
|
+
className: o("leading-none font-semibold", a),
|
|
43
60
|
...t
|
|
44
61
|
}
|
|
45
62
|
);
|
|
46
63
|
}
|
|
47
|
-
function
|
|
64
|
+
function f({ className: a, ...t }) {
|
|
48
65
|
return /* @__PURE__ */ r(
|
|
49
66
|
"div",
|
|
50
67
|
{
|
|
51
68
|
"data-slot": "card-description",
|
|
52
|
-
className:
|
|
69
|
+
className: o("text-d-secondary-foreground text-sm", a),
|
|
53
70
|
...t
|
|
54
71
|
}
|
|
55
72
|
);
|
|
56
73
|
}
|
|
57
|
-
function
|
|
74
|
+
function m({ className: a, ...t }) {
|
|
75
|
+
const { size: e } = n.useContext(s);
|
|
58
76
|
return /* @__PURE__ */ r(
|
|
59
77
|
"div",
|
|
60
78
|
{
|
|
61
79
|
"data-slot": "card-content",
|
|
62
|
-
className: e
|
|
80
|
+
className: o(d[e].px, a),
|
|
63
81
|
...t
|
|
64
82
|
}
|
|
65
83
|
);
|
|
66
84
|
}
|
|
67
|
-
function
|
|
85
|
+
function g({ className: a, ...t }) {
|
|
86
|
+
const { size: e } = n.useContext(s);
|
|
68
87
|
return /* @__PURE__ */ r(
|
|
69
88
|
"div",
|
|
70
89
|
{
|
|
71
90
|
"data-slot": "card-footer",
|
|
72
|
-
className:
|
|
91
|
+
className: o(`flex items-center ${d[e].px} [.border-t]:pt-6`, a),
|
|
73
92
|
...t
|
|
74
93
|
}
|
|
75
94
|
);
|
|
76
95
|
}
|
|
77
96
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
97
|
+
l as Card,
|
|
98
|
+
m as CardContent,
|
|
99
|
+
f as CardDescription,
|
|
100
|
+
g as CardFooter,
|
|
101
|
+
u as CardHeader,
|
|
102
|
+
x as CardTitle
|
|
84
103
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
|
|
4
|
-
import A from "../../../../../_virtual/
|
|
4
|
+
import A from "../../../../../_virtual/index6.js";
|
|
5
5
|
import B from "../../../../../_virtual/debounce.js";
|
|
6
6
|
import { GanttContext as F } from "../Gantt/GanttContext.js";
|
|
7
7
|
import { transformData as O } from "../../utils/transformData.js";
|