laif-ds 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -3
- package/dist/_virtual/index.js +2 -7
- package/dist/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +7 -2
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -5
- package/dist/components/ui/app-sidebar.js +113 -98
- package/dist/components/ui/data-table.js +26 -26
- package/dist/components/ui/date-picker.js +24 -24
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/multiple-selector.js +80 -79
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/index.d.ts +2 -9
- 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/recharts/es6/util/ReactUtils.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 +1 -1
- package/dist/dist/components/ui/checkbox.js +0 -32
- package/dist/dist/components/ui/scroll-area.js +0 -61
- package/dist/dist/components/ui/table.js +0 -87
- package/dist/dist/lib/utils.js +0 -9
- package/dist/dist/node_modules/@radix-ui/number/dist/index.js +0 -7
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -10
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -136
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -30
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -56
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -72
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +0 -534
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -14
- package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -33
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -9
- package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -28
- package/dist/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -41
- package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -28
- package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -21
- package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -13
- package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -20
- package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2732
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Command as
|
|
2
|
+
import { jsx as d, jsxs as V, Fragment as U } from "react/jsx-runtime";
|
|
3
|
+
import { Command as de, useCommandState as ue } from "../../node_modules/cmdk/dist/index.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { useEffect as L, forwardRef as
|
|
5
|
+
import { useEffect as L, forwardRef as fe } from "react";
|
|
6
6
|
import { Badge as ae } from "./badge.js";
|
|
7
7
|
import { CommandItem as K, Command as oe, CommandList as ce, CommandGroup as ve } from "./command.js";
|
|
8
8
|
import { cn as g } from "../../lib/utils.js";
|
|
9
9
|
import { Label as be } from "./label.js";
|
|
10
10
|
import Y from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
11
11
|
function me(i, l) {
|
|
12
|
-
const [
|
|
12
|
+
const [u, b] = a.useState(i);
|
|
13
13
|
return L(() => {
|
|
14
14
|
const o = setTimeout(() => b(i), l);
|
|
15
15
|
return () => {
|
|
16
16
|
clearTimeout(o);
|
|
17
17
|
};
|
|
18
|
-
}, [i, l]),
|
|
18
|
+
}, [i, l]), u;
|
|
19
19
|
}
|
|
20
20
|
function z(i, l) {
|
|
21
21
|
if (i.length === 0)
|
|
@@ -24,28 +24,28 @@ function z(i, l) {
|
|
|
24
24
|
return {
|
|
25
25
|
"": i
|
|
26
26
|
};
|
|
27
|
-
const
|
|
27
|
+
const u = {};
|
|
28
28
|
return i.forEach((b) => {
|
|
29
29
|
const o = b[l] || "";
|
|
30
|
-
|
|
31
|
-
}),
|
|
30
|
+
u[o] || (u[o] = []), u[o].push(b);
|
|
31
|
+
}), u;
|
|
32
32
|
}
|
|
33
33
|
function ge(i, l) {
|
|
34
|
-
const
|
|
35
|
-
for (const [b, o] of Object.entries(
|
|
36
|
-
|
|
37
|
-
return
|
|
34
|
+
const u = JSON.parse(JSON.stringify(i));
|
|
35
|
+
for (const [b, o] of Object.entries(u))
|
|
36
|
+
u[b] = o.filter((C) => !l.find((v) => v.value === C.value));
|
|
37
|
+
return u;
|
|
38
38
|
}
|
|
39
39
|
function we(i, l) {
|
|
40
|
-
for (const [,
|
|
41
|
-
if (
|
|
40
|
+
for (const [, u] of Object.entries(i))
|
|
41
|
+
if (u.some((b) => l.find((o) => o.value === b.value)))
|
|
42
42
|
return !0;
|
|
43
43
|
return !1;
|
|
44
44
|
}
|
|
45
|
-
const Z =
|
|
45
|
+
const Z = fe(({ className: i, ...l }, u) => ue((o) => o.filtered.count === 0) ? /* @__PURE__ */ d(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
|
-
ref:
|
|
48
|
+
ref: u,
|
|
49
49
|
className: g("py-6 text-center text-sm", i),
|
|
50
50
|
"cmdk-empty": "",
|
|
51
51
|
role: "presentation",
|
|
@@ -57,7 +57,7 @@ const xe = a.forwardRef(
|
|
|
57
57
|
({
|
|
58
58
|
value: i,
|
|
59
59
|
onChange: l,
|
|
60
|
-
placeholder:
|
|
60
|
+
placeholder: u,
|
|
61
61
|
defaultOptions: b = [],
|
|
62
62
|
options: o,
|
|
63
63
|
delay: C,
|
|
@@ -66,10 +66,10 @@ const xe = a.forwardRef(
|
|
|
66
66
|
loadingIndicator: W,
|
|
67
67
|
emptyIndicator: F,
|
|
68
68
|
maxSelected: X = Number.MAX_SAFE_INTEGER,
|
|
69
|
-
onMaxSelected:
|
|
69
|
+
onMaxSelected: E,
|
|
70
70
|
hidePlaceholderWhenSelected: H,
|
|
71
|
-
disabled:
|
|
72
|
-
groupBy:
|
|
71
|
+
disabled: w,
|
|
72
|
+
groupBy: x,
|
|
73
73
|
className: B,
|
|
74
74
|
badgeClassName: S,
|
|
75
75
|
selectFirstItem: p = !0,
|
|
@@ -80,9 +80,9 @@ const xe = a.forwardRef(
|
|
|
80
80
|
hideClearAllButton: P = !1,
|
|
81
81
|
label: M
|
|
82
82
|
}, ee) => {
|
|
83
|
-
const c = a.useRef(null), [
|
|
84
|
-
z(b,
|
|
85
|
-
), [m, R] = a.useState(""),
|
|
83
|
+
const c = a.useRef(null), [h, G] = a.useState(!1), [te, $] = a.useState(!1), [q, Q] = a.useState(!1), _ = a.useRef(null), [r, O] = a.useState(i || []), [N, A] = a.useState(
|
|
84
|
+
z(b, x)
|
|
85
|
+
), [m, R] = a.useState(""), y = me(m, C || 500);
|
|
86
86
|
a.useImperativeHandle(
|
|
87
87
|
ee,
|
|
88
88
|
() => ({
|
|
@@ -96,11 +96,11 @@ const xe = a.forwardRef(
|
|
|
96
96
|
}),
|
|
97
97
|
[r]
|
|
98
98
|
);
|
|
99
|
-
const
|
|
99
|
+
const k = (e) => {
|
|
100
100
|
_.current && !_.current.contains(e.target) && c.current && !c.current.contains(e.target) && (G(!1), c.current.blur());
|
|
101
101
|
}, J = a.useCallback(
|
|
102
102
|
(e) => {
|
|
103
|
-
const t = r.filter((
|
|
103
|
+
const t = r.filter((f) => f.value !== e.value);
|
|
104
104
|
O(t), l == null || l(t);
|
|
105
105
|
},
|
|
106
106
|
[l, r]
|
|
@@ -113,38 +113,38 @@ const xe = a.forwardRef(
|
|
|
113
113
|
);
|
|
114
114
|
L(() => {
|
|
115
115
|
if (typeof document < "u")
|
|
116
|
-
return
|
|
117
|
-
document.removeEventListener("mousedown",
|
|
116
|
+
return h ? (document.addEventListener("mousedown", k), document.addEventListener("touchend", k)) : (document.removeEventListener("mousedown", k), document.removeEventListener("touchend", k)), () => {
|
|
117
|
+
document.removeEventListener("mousedown", k), document.removeEventListener("touchend", k);
|
|
118
118
|
};
|
|
119
|
-
}, [
|
|
119
|
+
}, [h, k]), L(() => {
|
|
120
120
|
i && O(i);
|
|
121
121
|
}, [i]), L(() => {
|
|
122
122
|
if (!o || v)
|
|
123
123
|
return;
|
|
124
|
-
const e = z(o || [],
|
|
125
|
-
JSON.stringify(e) !== JSON.stringify(
|
|
126
|
-
}, [b, o,
|
|
124
|
+
const e = z(o || [], x);
|
|
125
|
+
JSON.stringify(e) !== JSON.stringify(N) && A(e);
|
|
126
|
+
}, [b, o, x, v, N]), L(() => {
|
|
127
127
|
const e = () => {
|
|
128
|
-
const
|
|
129
|
-
A(z(
|
|
128
|
+
const f = I == null ? void 0 : I(y);
|
|
129
|
+
A(z(f || [], x));
|
|
130
130
|
};
|
|
131
131
|
(async () => {
|
|
132
|
-
!I || !
|
|
132
|
+
!I || !h || (T && e(), y && e());
|
|
133
133
|
})();
|
|
134
|
-
}, [
|
|
134
|
+
}, [y, x, h, T]), L(() => {
|
|
135
135
|
const e = async () => {
|
|
136
136
|
Q(!0);
|
|
137
|
-
const
|
|
138
|
-
A(z(
|
|
137
|
+
const f = await (v == null ? void 0 : v(y));
|
|
138
|
+
A(z(f || [], x)), Q(!1);
|
|
139
139
|
};
|
|
140
140
|
(async () => {
|
|
141
|
-
!v || !
|
|
141
|
+
!v || !h || (T && await e(), y && await e());
|
|
142
142
|
})();
|
|
143
|
-
}, [
|
|
143
|
+
}, [y, x, h, T]);
|
|
144
144
|
const le = () => {
|
|
145
|
-
if (!D || we(
|
|
145
|
+
if (!D || we(N, [{ value: m, label: m }]) || r.find((t) => t.value === m))
|
|
146
146
|
return;
|
|
147
|
-
const e = /* @__PURE__ */
|
|
147
|
+
const e = /* @__PURE__ */ d(
|
|
148
148
|
K,
|
|
149
149
|
{
|
|
150
150
|
value: m,
|
|
@@ -154,24 +154,24 @@ const xe = a.forwardRef(
|
|
|
154
154
|
},
|
|
155
155
|
onSelect: (t) => {
|
|
156
156
|
if (r.length >= X) {
|
|
157
|
-
|
|
157
|
+
E == null || E(r.length);
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
160
|
R("");
|
|
161
|
-
const
|
|
162
|
-
O(
|
|
161
|
+
const f = [...r, { value: t, label: t }];
|
|
162
|
+
O(f), l == null || l(f);
|
|
163
163
|
},
|
|
164
164
|
children: `Create "${m}"`
|
|
165
165
|
}
|
|
166
166
|
);
|
|
167
|
-
if (!v && m.length > 0 || v &&
|
|
167
|
+
if (!v && m.length > 0 || v && y.length > 0 && !q)
|
|
168
168
|
return e;
|
|
169
169
|
}, ne = a.useCallback(() => {
|
|
170
170
|
if (F)
|
|
171
|
-
return v && !D && Object.keys(
|
|
172
|
-
}, [D, F, v,
|
|
173
|
-
() => ge(
|
|
174
|
-
[
|
|
171
|
+
return v && !D && Object.keys(N).length === 0 ? /* @__PURE__ */ d(K, { value: "-", disabled: !0, children: F }) : /* @__PURE__ */ d(Z, { children: F });
|
|
172
|
+
}, [D, F, v, N]), se = a.useMemo(
|
|
173
|
+
() => ge(N, r),
|
|
174
|
+
[N, r]
|
|
175
175
|
), ie = a.useCallback(() => {
|
|
176
176
|
if (n != null && n.filter)
|
|
177
177
|
return n.filter;
|
|
@@ -179,7 +179,7 @@ const xe = a.forwardRef(
|
|
|
179
179
|
return (e, t) => e.toLowerCase().includes(t.toLowerCase()) ? 1 : -1;
|
|
180
180
|
}, [D, n == null ? void 0 : n.filter]);
|
|
181
181
|
return /* @__PURE__ */ V("div", { className: "flex flex-col space-y-1.5", children: [
|
|
182
|
-
M && /* @__PURE__ */
|
|
182
|
+
M && /* @__PURE__ */ d(be, { children: M }),
|
|
183
183
|
/* @__PURE__ */ V(
|
|
184
184
|
oe,
|
|
185
185
|
{
|
|
@@ -189,24 +189,25 @@ const xe = a.forwardRef(
|
|
|
189
189
|
var t;
|
|
190
190
|
re(e), (t = n == null ? void 0 : n.onKeyDown) == null || t.call(n, e);
|
|
191
191
|
},
|
|
192
|
-
className: g("h-auto overflow-visible bg-transparent", n == null ? void 0 : n.className),
|
|
192
|
+
className: g("h-auto overflow-visible bg-transparent shadow-sm", n == null ? void 0 : n.className),
|
|
193
193
|
shouldFilter: (n == null ? void 0 : n.shouldFilter) !== void 0 ? n.shouldFilter : !v,
|
|
194
194
|
filter: ie(),
|
|
195
195
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ d(
|
|
197
197
|
"div",
|
|
198
198
|
{
|
|
199
199
|
className: g(
|
|
200
|
-
"min-h-10 rounded-md border border-d-input text-base ring-offset-d-background focus-within:ring-
|
|
200
|
+
"min-h-10 rounded-md border border-d-input text-base ring-offset-d-background focus-within:ring-1 focus-within:ring-d-ring md:text-sm",
|
|
201
201
|
{
|
|
202
202
|
"px-3 py-2": r.length !== 0,
|
|
203
|
-
"cursor-text": !
|
|
203
|
+
"cursor-text": !w && r.length !== 0,
|
|
204
|
+
"disabled:cursor-not-allowed disabled:opacity-50": w
|
|
204
205
|
},
|
|
205
206
|
B
|
|
206
207
|
),
|
|
207
208
|
onClick: () => {
|
|
208
209
|
var e;
|
|
209
|
-
|
|
210
|
+
w || (e = c == null ? void 0 : c.current) == null || e.focus();
|
|
210
211
|
},
|
|
211
212
|
children: /* @__PURE__ */ V("div", { className: "relative flex flex-wrap gap-1", children: [
|
|
212
213
|
r.map((e) => /* @__PURE__ */ V(
|
|
@@ -218,16 +219,16 @@ const xe = a.forwardRef(
|
|
|
218
219
|
S
|
|
219
220
|
),
|
|
220
221
|
"data-fixed": e.fixed,
|
|
221
|
-
"data-disabled":
|
|
222
|
+
"data-disabled": w || void 0,
|
|
222
223
|
children: [
|
|
223
224
|
e.label,
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ d(
|
|
225
226
|
"button",
|
|
226
227
|
{
|
|
227
228
|
type: "button",
|
|
228
229
|
className: g(
|
|
229
|
-
"ml-1 rounded-full text-d-secondary-foreground outline-none ring-offset-d-background focus:ring-
|
|
230
|
-
(
|
|
230
|
+
"ml-1 rounded-full text-d-secondary-foreground outline-none ring-offset-d-background focus:ring-1 focus:ring-d-ring focus:ring-offset-2",
|
|
231
|
+
(w || e.fixed) && "hidden"
|
|
231
232
|
),
|
|
232
233
|
onKeyDown: (t) => {
|
|
233
234
|
t.key === "Enter" && J(e);
|
|
@@ -236,20 +237,20 @@ const xe = a.forwardRef(
|
|
|
236
237
|
t.preventDefault(), t.stopPropagation();
|
|
237
238
|
},
|
|
238
239
|
onClick: () => J(e),
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ d(Y, { className: "h-3 w-3 text-d-secondary-foreground hover:text-d-foreground" })
|
|
240
241
|
}
|
|
241
242
|
)
|
|
242
243
|
]
|
|
243
244
|
},
|
|
244
245
|
e.value
|
|
245
246
|
)),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
247
|
+
/* @__PURE__ */ d(
|
|
248
|
+
de.Input,
|
|
248
249
|
{
|
|
249
250
|
...s,
|
|
250
251
|
ref: c,
|
|
251
252
|
value: m,
|
|
252
|
-
disabled:
|
|
253
|
+
disabled: w,
|
|
253
254
|
onValueChange: (e) => {
|
|
254
255
|
var t;
|
|
255
256
|
R(e), (t = s == null ? void 0 : s.onValueChange) == null || t.call(s, e);
|
|
@@ -262,9 +263,9 @@ const xe = a.forwardRef(
|
|
|
262
263
|
var t;
|
|
263
264
|
G(!0), (t = s == null ? void 0 : s.onFocus) == null || t.call(s, e);
|
|
264
265
|
},
|
|
265
|
-
placeholder: H && r.length !== 0 ? "" :
|
|
266
|
+
placeholder: H && r.length !== 0 ? "" : u,
|
|
266
267
|
className: g(
|
|
267
|
-
"flex-1 bg-transparent outline-none placeholder:text-d-
|
|
268
|
+
"flex-1 bg-transparent outline-none placeholder:text-d-muted-foreground",
|
|
268
269
|
{
|
|
269
270
|
"w-full": H,
|
|
270
271
|
"px-3 py-2": r.length === 0,
|
|
@@ -274,24 +275,24 @@ const xe = a.forwardRef(
|
|
|
274
275
|
)
|
|
275
276
|
}
|
|
276
277
|
),
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ d(
|
|
278
279
|
"div",
|
|
279
280
|
{
|
|
280
281
|
className: g(
|
|
281
282
|
"absolute right-0 top-0 flex items-center justify-center rounded-full bg-d-secondary/20 hover:bg-d-secondary/30 p-1 cursor-pointer z-20 border",
|
|
282
|
-
(P ||
|
|
283
|
+
(P || w || r.length < 1 || r.filter((e) => e.fixed).length === r.length) && "hidden"
|
|
283
284
|
),
|
|
284
285
|
onClick: () => {
|
|
285
286
|
O(r.filter((e) => e.fixed)), l == null || l(r.filter((e) => e.fixed));
|
|
286
287
|
},
|
|
287
288
|
"aria-label": "Clear selection",
|
|
288
|
-
children: /* @__PURE__ */
|
|
289
|
+
children: /* @__PURE__ */ d(Y, { size: 12, className: "text-d-foreground" })
|
|
289
290
|
}
|
|
290
291
|
)
|
|
291
292
|
] })
|
|
292
293
|
}
|
|
293
294
|
),
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ d("div", { className: "relative", children: h && /* @__PURE__ */ d(
|
|
295
296
|
ce,
|
|
296
297
|
{
|
|
297
298
|
className: "absolute top-1 z-10 w-full rounded-md border bg-d-popover text-d-popover-foreground shadow-md outline-none animate-in",
|
|
@@ -305,34 +306,34 @@ const xe = a.forwardRef(
|
|
|
305
306
|
var e;
|
|
306
307
|
(e = c == null ? void 0 : c.current) == null || e.focus();
|
|
307
308
|
},
|
|
308
|
-
children: q ? /* @__PURE__ */
|
|
309
|
+
children: q ? /* @__PURE__ */ d(U, { children: W }) : /* @__PURE__ */ V(U, { children: [
|
|
309
310
|
ne(),
|
|
310
311
|
le(),
|
|
311
|
-
!p && /* @__PURE__ */
|
|
312
|
-
Object.entries(se).map(([e, t]) => /* @__PURE__ */
|
|
312
|
+
!p && /* @__PURE__ */ d(K, { value: "-", className: "hidden" }),
|
|
313
|
+
Object.entries(se).map(([e, t]) => /* @__PURE__ */ d(ve, { heading: e, className: "h-full overflow-auto", children: /* @__PURE__ */ d(U, { children: t.map((f) => /* @__PURE__ */ d(
|
|
313
314
|
K,
|
|
314
315
|
{
|
|
315
|
-
value:
|
|
316
|
-
disabled:
|
|
316
|
+
value: f.label,
|
|
317
|
+
disabled: f.disable,
|
|
317
318
|
onMouseDown: (j) => {
|
|
318
319
|
j.preventDefault(), j.stopPropagation();
|
|
319
320
|
},
|
|
320
321
|
onSelect: () => {
|
|
321
322
|
if (r.length >= X) {
|
|
322
|
-
|
|
323
|
+
E == null || E(r.length);
|
|
323
324
|
return;
|
|
324
325
|
}
|
|
325
326
|
R("");
|
|
326
|
-
const j = [...r,
|
|
327
|
+
const j = [...r, f];
|
|
327
328
|
O(j), l == null || l(j);
|
|
328
329
|
},
|
|
329
330
|
className: g(
|
|
330
331
|
"cursor-pointer",
|
|
331
|
-
|
|
332
|
+
f.disable && "cursor-default text-d-secondary-foreground"
|
|
332
333
|
),
|
|
333
|
-
children:
|
|
334
|
+
children: f.label
|
|
334
335
|
},
|
|
335
|
-
|
|
336
|
+
f.value
|
|
336
337
|
)) }) }, e))
|
|
337
338
|
] })
|
|
338
339
|
}
|
|
@@ -353,7 +353,7 @@ const ue = I(
|
|
|
353
353
|
variants: {
|
|
354
354
|
variant: {
|
|
355
355
|
default: "hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground",
|
|
356
|
-
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--d-sidebar-border))] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--d-sidebar-accent))]"
|
|
356
|
+
outline: "bg-d-background shadow-[0_0_0_1px_hsl(var(--d-sidebar-border))] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--d-sidebar-accent))]"
|
|
357
357
|
},
|
|
358
358
|
size: {
|
|
359
359
|
default: "h-8 text-sm",
|
package/dist/index.d.ts
CHANGED
|
@@ -123,24 +123,17 @@ declare const alertVariants: (props?: ({
|
|
|
123
123
|
|
|
124
124
|
declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
|
|
125
125
|
|
|
126
|
-
export declare function AppSidebar({ navigation, versions, defaultVersion, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
|
|
126
|
+
export declare function AppSidebar({ navigation, navigationFooter, versions, defaultVersion, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
|
|
127
127
|
|
|
128
128
|
declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar> {
|
|
129
129
|
navigation: NavGroup[];
|
|
130
|
+
navigationFooter?: NavGroup[];
|
|
130
131
|
versions?: string[];
|
|
131
132
|
defaultVersion?: string;
|
|
132
133
|
headerContent?: React_2.ReactNode;
|
|
133
134
|
footerContent?: React_2.ReactNode;
|
|
134
135
|
showRail?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Componente Link personalizzato da utilizzare al posto del tag <a>
|
|
137
|
-
* Può essere il componente Link di Next.js o qualsiasi altro router
|
|
138
|
-
*/
|
|
139
136
|
linkComponent?: React_2.ComponentType<any>;
|
|
140
|
-
/**
|
|
141
|
-
* Proprietà aggiuntive da passare al componente Link
|
|
142
|
-
* Ad esempio, per Next.js potrebbe essere { legacyBehavior: true }
|
|
143
|
-
*/
|
|
144
137
|
linkProps?: Record<string, any>;
|
|
145
138
|
}
|
|
146
139
|
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index3.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __module as e } from "../../_virtual/
|
|
2
|
+
import { __module as e } from "../../_virtual/index2.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.production.min.js";
|
|
4
4
|
import { __require as o } from "./cjs/react-is.development.js";
|
|
5
5
|
var r;
|
|
@@ -5,7 +5,7 @@ import "../../../../_virtual/isString.js";
|
|
|
5
5
|
import f from "../../../../_virtual/isFunction.js";
|
|
6
6
|
import s from "../../../../_virtual/isObject.js";
|
|
7
7
|
import { isValidElement as d } from "react";
|
|
8
|
-
import "../../../../_virtual/
|
|
8
|
+
import "../../../../_virtual/index.js";
|
|
9
9
|
import { SVGElementPropKeys as m, EventKeys as p, FilteredElementKeyMap as o } from "./types.js";
|
|
10
10
|
var h = function(i) {
|
|
11
11
|
return typeof i == "string" ? i : i ? i.displayName || i.name || "Component" : "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index4.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "tailwindcss";@import "tw-animate-css";@import "./gantt.css";:root{--d-radius:
|
|
1
|
+
@import "tailwindcss";@import "tw-animate-css";@import "./gantt.css";:root{--d-radius:6px;--d-background:#fafafa;--d-foreground:#2e2e2e;--d-card:#fafafa;--d-card-foreground:#2e2e2e;--d-popover:#fafafa;--d-popover-foreground:#2e2e2e;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#f5f5f5;--d-secondary-foreground:#2e2e2e;--d-muted:#e0e0e0;--d-muted-foreground:#7a7a7a;--d-accent:#e0e0e0;--d-accent-foreground:#2e2e2e;--d-destructive:#ec2842;--d-destructive-foreground:#85202d;--d-border:#e0e0e0;--d-input:#e0e0e0;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#f5f5f5;--d-sidebar-foreground:#2e2e2e;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#e0e0e066;--d-sidebar-accent-foreground:#2e2e2e;--d-sidebar-border:#e0e0e0;--d-sidebar-ring:#64c2d1}.dark{--d-radius:6px;--d-background:#1f1f1f;--d-foreground:#e0e0e0;--d-card:#1f1f1f;--d-card-foreground:#e0e0e0;--d-popover:#1f1f1f;--d-popover-foreground:#e0e0e0;--d-primary:#64c2d1;--d-primary-foreground:#1f1f1f;--d-secondary:#2e2e2e;--d-secondary-foreground:#e0e0e0;--d-muted:#474747;--d-muted-foreground:#7a7a7a;--d-accent:#474747;--d-accent-foreground:#e0e0e0;--d-destructive:#85202d;--d-destructive-foreground:#e0e0e0;--d-border:#2e2e2e;--d-input:#2e2e2e;--d-ring:#64c2d1;--d-chart-1:#64c2d1;--d-chart-2:#39f283;--d-chart-3:orange;--d-chart-4:orange;--d-chart-5:#eb576a;--d-sidebar:#141414;--d-sidebar-foreground:#e0e0e0;--d-sidebar-primary:#64c2d1;--d-sidebar-primary-foreground:#1f1f1f;--d-sidebar-accent:#47474766;--d-sidebar-accent-foreground:#e0e0e0;--d-sidebar-border:#2e2e2e;--d-sidebar-ring:#64c2d1}.tangerine{--d-background:oklch(0.26 0.03 262.67);--d-foreground:oklch(0.92 0 0);--d-card:oklch(0.31 0.03 268.64);--d-card-foreground:oklch(0.92 0 0);--d-popover:oklch(0.29 0.02 268.40);--d-popover-foreground:oklch(0.92 0 0);--d-primary:oklch(0.64 0.17 36.44);--d-primary-foreground:oklch(1.00 0 0);--d-secondary:oklch(0.31 0.03 266.71);--d-secondary-foreground:oklch(0.92 0 0);--d-muted:oklch(0.31 0.03 266.71);--d-muted-foreground:oklch(0.72 0 0);--d-accent:oklch(0.34 0.06 267.59);--d-accent-foreground:oklch(0.88 0.06 254.13);--d-destructive:oklch(0.64 0.21 25.33);--d-destructive-foreground:oklch(1.00 0 0);--d-border:oklch(0.38 0.03 269.73);--d-input:oklch(0.38 0.03 269.73);--d-ring:oklch(0.64 0.17 36.44);--d-chart-1:oklch(0.72 0.06 248.68);--d-chart-2:oklch(0.77 0.09 34.19);--d-chart-3:oklch(0.58 0.08 254.16);--d-chart-4:oklch(0.50 0.08 259.49);--d-chart-5:oklch(0.42 0.10 264.03);--d-sidebar:oklch(0.31 0.03 267.74);--d-sidebar-foreground:oklch(0.92 0 0);--d-sidebar-primary:oklch(0.64 0.17 36.44);--d-sidebar-primary-foreground:oklch(1.00 0 0);--d-sidebar-accent:oklch(0.34 0.06 267.59);--d-sidebar-accent-foreground:oklch(0.88 0.06 254.13);--d-sidebar-border:oklch(0.38 0.03 269.73);--d-sidebar-ring:oklch(0.64 0.17 36.44);--d-font-sans:Inter,sans-serif;--d-font-serif:Source Serif 4,serif;--d-font-mono:JetBrains Mono,monospace;--d-radius:0.75rem;--d-shadow-2xs:0px 1px 3px 0px #0000000d;--d-shadow-xs:0px 1px 3px 0px #0000000d;--d-shadow-sm:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow-md:0px 1px 3px 0px #0000001a,0px 2px 4px -1px #0000001a;--d-shadow-lg:0px 1px 3px 0px #0000001a,0px 4px 6px -1px #0000001a;--d-shadow-xl:0px 1px 3px 0px #0000001a,0px 8px 10px -1px #0000001a;--d-shadow-2xl:0px 1px 3px 0px #00000040}.claymorphism{--d-background:#1e1b18;--d-foreground:#e2e8f0;--d-card:#2c2825;--d-card-foreground:#e2e8f0;--d-popover:#2c2825;--d-popover-foreground:#e2e8f0;--d-primary:#818cf8;--d-primary-foreground:#1e1b18;--d-secondary:#3a3633;--d-secondary-foreground:#d1d5db;--d-muted:#2c2825;--d-muted-foreground:#9ca3af;--d-accent:#484441;--d-accent-foreground:#d1d5db;--d-destructive:#ef4444;--d-destructive-foreground:#1e1b18;--d-border:#3a3633;--d-input:#3a3633;--d-ring:#818cf8;--d-chart-1:#818cf8;--d-chart-2:#6366f1;--d-chart-3:#4f46e5;--d-chart-4:#4338ca;--d-chart-5:#3730a3;--d-sidebar:#3a3633;--d-sidebar-foreground:#e2e8f0;--d-sidebar-primary:#818cf8;--d-sidebar-primary-foreground:#1e1b18;--d-sidebar-accent:#484441;--d-sidebar-accent-foreground:#d1d5db;--d-sidebar-border:#3a3633;--d-sidebar-ring:#818cf8;--d-font-sans:Plus Jakarta Sans,sans-serif;--d-font-serif:Lora,serif;--d-font-mono:Roboto Mono,monospace;--d-radius:1.25rem;--d-shadow-2xs:2px 2px 10px 4px #00000017;--d-shadow-xs:2px 2px 10px 4px #00000017;--d-shadow-sm:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow-md:2px 2px 10px 4px #0000002e,2px 2px 4px 3px #0000002e;--d-shadow-lg:2px 2px 10px 4px #0000002e,2px 4px 6px 3px #0000002e;--d-shadow-xl:2px 2px 10px 4px #0000002e,2px 8px 10px 3px #0000002e;--d-shadow-2xl:2px 2px 10px 4px #00000073}@theme inline{--radius-d-sm:calc(var(--d-radius) - 4px);--radius-d-md:calc(var(--d-radius) - 2px);--radius-d-lg:var(--d-radius);--radius-d-xl:calc(var(--d-radius) + 4px);--color-d-background:var(--d-background);--color-d-foreground:var(--d-foreground);--color-d-card:var(--d-card);--color-d-card-foreground:var(--d-card-foreground);--color-d-popover:var(--d-popover);--color-d-popover-foreground:var(--d-popover-foreground);--color-d-primary:var(--d-primary);--color-d-primary-foreground:var(--d-primary-foreground);--color-d-secondary:var(--d-secondary);--color-d-secondary-foreground:var(--d-secondary-foreground);--color-d-muted:var(--d-muted);--color-d-muted-foreground:var(--d-muted-foreground);--color-d-accent:var(--d-accent);--color-d-accent-foreground:var(--d-accent-foreground);--color-d-destructive:var(--d-destructive);--color-d-border:var(--d-border);--color-d-input:var(--d-input);--color-d-ring:var(--d-ring);--color-d-chart-1:var(--d-chart-1);--color-d-chart-2:var(--d-chart-2);--color-d-chart-3:var(--d-chart-3);--color-d-chart-4:var(--d-chart-4);--color-d-chart-5:var(--d-chart-5);--color-d-sidebar:var(--d-sidebar);--color-d-sidebar-foreground:var(--d-sidebar-foreground);--color-d-sidebar-primary:var(--d-sidebar-primary);--color-d-sidebar-primary-foreground:var(--d-sidebar-primary-foreground);--color-d-sidebar-accent:var(--d-sidebar-accent);--color-d-sidebar-accent-foreground:var(--d-sidebar-accent-foreground);--color-d-sidebar-border:var(--d-sidebar-border);--color-d-sidebar-ring:var(--d-sidebar-ring)}*{border-color:var(--d-border);outline-color:color-mix(in oklab,var(--d-ring) 50%,#0000)}body{background-color:var(--d-background);color:var(--d-foreground)}
|