laif-ds 0.2.36 → 0.2.38
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/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +4 -4
- package/dist/components/ui/accordion.js +5 -5
- package/dist/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/breadcrumb.js +4 -4
- package/dist/components/ui/calendar.js +44 -44
- package/dist/components/ui/context-menu.js +13 -13
- package/dist/components/ui/date-picker.js +62 -54
- package/dist/components/ui/dialog.js +4 -4
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/input.js +138 -110
- package/dist/components/ui/menubar.js +14 -14
- package/dist/components/ui/popover.js +4 -4
- package/dist/components/ui/select.js +13 -13
- package/dist/components/ui/sheet.js +5 -5
- package/dist/components/ui/tabs.js +4 -4
- package/dist/index.d.ts +28 -6
- package/dist/index.js +144 -144
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +14 -14
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/vaul/dist/index.js +3 -3
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Label as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { cva as
|
|
6
|
-
import * as
|
|
7
|
-
import { Icon as
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { Label as ee } from "./label.js";
|
|
4
|
+
import { cn as n } from "../../lib/utils.js";
|
|
5
|
+
import { cva as R } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
6
|
+
import * as r from "react";
|
|
7
|
+
import { Icon as N } from "./icon.js";
|
|
8
|
+
import { Typo as se } from "./typo.js";
|
|
9
|
+
const te = R(
|
|
10
|
+
n(
|
|
11
|
+
"flex w-full items-center gap-2 rounded-md bg-d-input border border-d-border/50 px-3 transition-all duration-200",
|
|
12
|
+
"focus-within:border-d-ring focus-within:border-1",
|
|
13
|
+
"aria-[invalid=true]:ring-d-destructive/20 aria-[invalid=true]:border-d-destructive"
|
|
14
|
+
),
|
|
10
15
|
{
|
|
11
16
|
variants: {
|
|
12
17
|
size: {
|
|
@@ -19,8 +24,8 @@ const q = j(
|
|
|
19
24
|
size: "default"
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
|
-
),
|
|
23
|
-
|
|
27
|
+
), re = R(
|
|
28
|
+
n(
|
|
24
29
|
"shadow-none flex-1 min-w-0 bg-transparent outline-none border-0 p-0 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
25
30
|
"file:text-d-foreground file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
26
31
|
"placeholder:text-d-muted-foreground",
|
|
@@ -39,152 +44,175 @@ const q = j(
|
|
|
39
44
|
size: "default"
|
|
40
45
|
}
|
|
41
46
|
}
|
|
42
|
-
),
|
|
47
|
+
), f = {
|
|
43
48
|
show: "Mostra password",
|
|
44
49
|
hide: "Nascondi password"
|
|
45
|
-
},
|
|
50
|
+
}, ce = r.forwardRef(
|
|
46
51
|
({
|
|
47
|
-
className:
|
|
48
|
-
type:
|
|
52
|
+
className: W,
|
|
53
|
+
type: m,
|
|
49
54
|
label: k,
|
|
50
|
-
labelClassName:
|
|
51
|
-
id:
|
|
52
|
-
iconLeft:
|
|
53
|
-
iconRight:
|
|
55
|
+
labelClassName: D,
|
|
56
|
+
id: G,
|
|
57
|
+
iconLeft: b,
|
|
58
|
+
iconRight: v,
|
|
54
59
|
startContent: S,
|
|
55
|
-
endContent:
|
|
56
|
-
size:
|
|
57
|
-
disabled:
|
|
58
|
-
required:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"aria-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
|
|
60
|
+
endContent: T,
|
|
61
|
+
size: p,
|
|
62
|
+
disabled: d,
|
|
63
|
+
required: E,
|
|
64
|
+
onBlur: C,
|
|
65
|
+
onChange: O,
|
|
66
|
+
onInvalid: P,
|
|
67
|
+
"aria-invalid": _,
|
|
68
|
+
"aria-describedby": F,
|
|
69
|
+
showValidMessage: B = !1,
|
|
70
|
+
showValidityMessage: L = !1,
|
|
71
|
+
validityI18n: e,
|
|
72
|
+
...H
|
|
73
|
+
}, $) => {
|
|
74
|
+
const [c, J] = r.useState(!1), [g, M] = r.useState(!0), [K, U] = r.useState(!1), [j, V] = r.useState(""), Q = r.useId(), x = G ?? Q, z = `${x}-validity`, h = r.useRef(null), w = m === "password", X = w ? c ? "text" : "password" : m, A = _ ?? (!g && K ? !0 : void 0), Y = [F, L && z].filter(Boolean).join(" ").trim() || void 0;
|
|
75
|
+
r.useImperativeHandle($, () => h.current);
|
|
76
|
+
const Z = r.useCallback(
|
|
77
|
+
(t) => {
|
|
78
|
+
if (d) return;
|
|
79
|
+
const s = t.target;
|
|
80
|
+
if (s.tagName === "INPUT" || s.tagName === "BUTTON") return;
|
|
81
|
+
const a = h.current;
|
|
82
|
+
a && (a.focus(), !w && m !== "file" && a.select());
|
|
83
|
+
},
|
|
84
|
+
[d, w, m]
|
|
85
|
+
), l = r.useCallback(
|
|
86
|
+
(t) => {
|
|
87
|
+
const s = t.validity, a = t.validationMessage !== "" ? t.validationMessage : "✓";
|
|
88
|
+
if (s.valid)
|
|
89
|
+
return {
|
|
90
|
+
isValid: !0,
|
|
91
|
+
message: B ? e?.valid ?? a : ""
|
|
92
|
+
};
|
|
93
|
+
if (!e)
|
|
94
|
+
return { isValid: !1, message: a };
|
|
95
|
+
let o = a;
|
|
96
|
+
return s.valueMissing && e.valueMissing ? o = e.valueMissing : s.typeMismatch && e.typeMismatch ? o = e.typeMismatch : s.patternMismatch && e.patternMismatch ? o = e.patternMismatch : s.tooLong && e.tooLong ? o = e.tooLong : s.tooShort && e.tooShort ? o = e.tooShort : s.rangeUnderflow && e.rangeUnderflow ? o = e.rangeUnderflow : s.rangeOverflow && e.rangeOverflow ? o = e.rangeOverflow : s.badInput && e.badInput ? o = e.badInput : s.stepMismatch && e.stepMismatch ? o = e.stepMismatch : s.customError && e.customError && (o = e.customError), { isValid: !1, message: o };
|
|
76
97
|
},
|
|
77
|
-
[
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
|
|
98
|
+
[B, e]
|
|
99
|
+
);
|
|
100
|
+
r.useEffect(() => {
|
|
101
|
+
if (h.current) {
|
|
102
|
+
const { isValid: t, message: s } = l(h.current);
|
|
103
|
+
M(t), V(s);
|
|
104
|
+
}
|
|
105
|
+
}, [l]);
|
|
106
|
+
const q = r.useCallback(
|
|
107
|
+
(t) => {
|
|
108
|
+
U(!0);
|
|
109
|
+
const { isValid: s, message: a } = l(t.currentTarget);
|
|
110
|
+
M(s), V(a), O?.(t);
|
|
81
111
|
},
|
|
82
|
-
[
|
|
83
|
-
),
|
|
84
|
-
(
|
|
85
|
-
|
|
112
|
+
[O, l]
|
|
113
|
+
), y = r.useCallback(
|
|
114
|
+
(t) => {
|
|
115
|
+
U(!0), C?.(t);
|
|
86
116
|
},
|
|
87
|
-
[
|
|
88
|
-
),
|
|
89
|
-
(
|
|
90
|
-
|
|
117
|
+
[C, l]
|
|
118
|
+
), I = r.useCallback(
|
|
119
|
+
(t) => {
|
|
120
|
+
const { isValid: s, message: a } = l(t.currentTarget);
|
|
121
|
+
M(s), V(a), P?.(t);
|
|
91
122
|
},
|
|
92
|
-
[
|
|
123
|
+
[P, l]
|
|
93
124
|
);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const e = u.current;
|
|
97
|
-
e && (m(e.validity.valid), p(e.validationMessage));
|
|
98
|
-
}
|
|
99
|
-
}, [y.value]);
|
|
100
|
-
const h = (F || (N === !0 || N === "true")) && (!!b || !_), X = w && h, O = N ?? (h ? !0 : void 0), Y = [D, h ? V : void 0].filter(Boolean).join(" ").trim() || void 0;
|
|
101
|
-
return /* @__PURE__ */ i("div", { className: o("flex flex-col gap-1.5", L), children: [
|
|
102
|
-
k && /* @__PURE__ */ i(Z, { htmlFor: c, className: o("gap-0.5", R), children: [
|
|
125
|
+
return /* @__PURE__ */ u("div", { className: n("flex flex-col gap-1.5", W), children: [
|
|
126
|
+
k && /* @__PURE__ */ u(ee, { htmlFor: x, className: n("gap-0.5", D), children: [
|
|
103
127
|
k,
|
|
104
|
-
|
|
128
|
+
E && g && /* @__PURE__ */ i("div", { children: "*" }),
|
|
129
|
+
!g && /* @__PURE__ */ i("div", { className: "text-d-destructive", children: "*" })
|
|
105
130
|
] }),
|
|
106
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ u(
|
|
107
132
|
"div",
|
|
108
133
|
{
|
|
109
|
-
className:
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
a ? "cursor-not-allowed opacity-50" : "cursor-text"
|
|
134
|
+
className: n(
|
|
135
|
+
te({ size: p }),
|
|
136
|
+
d ? "cursor-not-allowed opacity-50" : "cursor-text"
|
|
113
137
|
),
|
|
114
|
-
"aria-invalid":
|
|
115
|
-
onClick:
|
|
138
|
+
"aria-invalid": A,
|
|
139
|
+
onClick: Z,
|
|
116
140
|
children: [
|
|
117
|
-
(
|
|
118
|
-
|
|
141
|
+
(b || S) && /* @__PURE__ */ u("div", { className: "text-d-muted-foreground flex shrink-0 items-center gap-2", children: [
|
|
142
|
+
b && /* @__PURE__ */ i(N, { name: b, size: p === "lg" ? "sm" : "xs" }),
|
|
119
143
|
S
|
|
120
144
|
] }),
|
|
121
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ i(
|
|
122
146
|
"input",
|
|
123
147
|
{
|
|
124
|
-
id:
|
|
125
|
-
type:
|
|
148
|
+
id: x,
|
|
149
|
+
type: X,
|
|
126
150
|
"data-slot": "input",
|
|
127
|
-
className:
|
|
128
|
-
ref:
|
|
129
|
-
disabled:
|
|
130
|
-
onChange:
|
|
131
|
-
onBlur:
|
|
132
|
-
onInvalid:
|
|
133
|
-
"aria-invalid":
|
|
151
|
+
className: n(re({ size: p })),
|
|
152
|
+
ref: h,
|
|
153
|
+
disabled: d,
|
|
154
|
+
onChange: q,
|
|
155
|
+
onBlur: y,
|
|
156
|
+
onInvalid: I,
|
|
157
|
+
"aria-invalid": A,
|
|
134
158
|
"aria-describedby": Y,
|
|
135
|
-
required:
|
|
136
|
-
|
|
159
|
+
required: E,
|
|
160
|
+
step: m === "number" ? "any" : void 0,
|
|
161
|
+
...H
|
|
137
162
|
}
|
|
138
163
|
),
|
|
139
|
-
|
|
164
|
+
w ? /* @__PURE__ */ u(
|
|
140
165
|
"button",
|
|
141
166
|
{
|
|
142
167
|
type: "button",
|
|
143
|
-
onClick: (
|
|
144
|
-
|
|
168
|
+
onClick: (t) => {
|
|
169
|
+
t.stopPropagation(), t.preventDefault(), J((s) => !s);
|
|
145
170
|
},
|
|
146
|
-
className:
|
|
171
|
+
className: n(
|
|
147
172
|
"text-d-muted-foreground flex shrink-0 cursor-pointer items-center",
|
|
148
|
-
|
|
173
|
+
d && "cursor-not-allowed"
|
|
149
174
|
),
|
|
150
|
-
"aria-label":
|
|
151
|
-
"aria-pressed":
|
|
152
|
-
"aria-controls":
|
|
153
|
-
title:
|
|
154
|
-
disabled:
|
|
175
|
+
"aria-label": c ? f.hide : f.show,
|
|
176
|
+
"aria-pressed": c,
|
|
177
|
+
"aria-controls": x,
|
|
178
|
+
title: c ? f.hide : f.show,
|
|
179
|
+
disabled: d,
|
|
155
180
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
|
|
181
|
+
/* @__PURE__ */ i(
|
|
182
|
+
N,
|
|
158
183
|
{
|
|
159
|
-
name:
|
|
160
|
-
size:
|
|
184
|
+
name: c ? "EyeOff" : "Eye",
|
|
185
|
+
size: p === "lg" ? "sm" : "xs"
|
|
161
186
|
}
|
|
162
187
|
),
|
|
163
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ i("span", { className: "sr-only", children: c ? f.hide : f.show })
|
|
164
189
|
]
|
|
165
190
|
}
|
|
166
|
-
) : (
|
|
167
|
-
|
|
168
|
-
|
|
191
|
+
) : (v || T) && /* @__PURE__ */ u("div", { className: "text-d-muted-foreground flex shrink-0 items-center gap-2", children: [
|
|
192
|
+
T,
|
|
193
|
+
v && /* @__PURE__ */ i(N, { name: v, size: p === "lg" ? "sm" : "xs" })
|
|
169
194
|
] })
|
|
170
195
|
]
|
|
171
196
|
}
|
|
172
197
|
),
|
|
173
|
-
|
|
174
|
-
|
|
198
|
+
L && j.length > 0 && /* @__PURE__ */ i(
|
|
199
|
+
se,
|
|
175
200
|
{
|
|
176
|
-
|
|
177
|
-
|
|
201
|
+
variant: "caption",
|
|
202
|
+
id: z,
|
|
203
|
+
role: g ? "status" : "alert",
|
|
178
204
|
"aria-live": "polite",
|
|
179
|
-
className:
|
|
180
|
-
|
|
205
|
+
className: n(
|
|
206
|
+
"max-w-full min-w-0 text-wrap",
|
|
207
|
+
g ? "text-d-success" : "text-d-destructive"
|
|
208
|
+
),
|
|
209
|
+
children: j
|
|
181
210
|
}
|
|
182
211
|
)
|
|
183
212
|
] });
|
|
184
213
|
}
|
|
185
214
|
);
|
|
186
|
-
te.displayName = "Input";
|
|
187
215
|
export {
|
|
188
|
-
|
|
189
|
-
|
|
216
|
+
ce as Input,
|
|
217
|
+
re as inputVariants
|
|
190
218
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as u,
|
|
3
|
+
import { Root as u, CheckboxItem as c, ItemIndicator as d, Content as l, Group as m, Item as b, Label as f, Menu as p, Portal as g, RadioGroup as x, RadioItem as v, Separator as h, Sub as M, SubContent as z, SubTrigger as N, Trigger as y } from "../../node_modules/@radix-ui/react-menubar/dist/index.js";
|
|
4
4
|
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
import I from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
6
|
import S from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
@@ -24,29 +24,29 @@ function L({
|
|
|
24
24
|
function P({
|
|
25
25
|
...e
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */ a(
|
|
27
|
+
return /* @__PURE__ */ a(p, { "data-slot": "menubar-menu", ...e });
|
|
28
28
|
}
|
|
29
29
|
function q({
|
|
30
30
|
...e
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ a(
|
|
32
|
+
return /* @__PURE__ */ a(m, { "data-slot": "menubar-group", ...e });
|
|
33
33
|
}
|
|
34
34
|
function k({
|
|
35
35
|
...e
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */ a(
|
|
37
|
+
return /* @__PURE__ */ a(g, { "data-slot": "menubar-portal", ...e });
|
|
38
38
|
}
|
|
39
39
|
function A({
|
|
40
40
|
...e
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ a(
|
|
42
|
+
return /* @__PURE__ */ a(x, { "data-slot": "menubar-radio-group", ...e });
|
|
43
43
|
}
|
|
44
44
|
function B({
|
|
45
45
|
className: e,
|
|
46
46
|
...t
|
|
47
47
|
}) {
|
|
48
48
|
return /* @__PURE__ */ a(
|
|
49
|
-
|
|
49
|
+
y,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "menubar-trigger",
|
|
52
52
|
className: r(
|
|
@@ -65,7 +65,7 @@ function D({
|
|
|
65
65
|
...i
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
68
|
-
|
|
68
|
+
l,
|
|
69
69
|
{
|
|
70
70
|
"data-slot": "menubar-content",
|
|
71
71
|
align: t,
|
|
@@ -106,7 +106,7 @@ function F({
|
|
|
106
106
|
...o
|
|
107
107
|
}) {
|
|
108
108
|
return /* @__PURE__ */ s(
|
|
109
|
-
|
|
109
|
+
c,
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "menubar-checkbox-item",
|
|
112
112
|
className: r(
|
|
@@ -128,7 +128,7 @@ function H({
|
|
|
128
128
|
...n
|
|
129
129
|
}) {
|
|
130
130
|
return /* @__PURE__ */ s(
|
|
131
|
-
|
|
131
|
+
v,
|
|
132
132
|
{
|
|
133
133
|
"data-slot": "menubar-radio-item",
|
|
134
134
|
className: r(
|
|
@@ -149,7 +149,7 @@ function J({
|
|
|
149
149
|
...n
|
|
150
150
|
}) {
|
|
151
151
|
return /* @__PURE__ */ a(
|
|
152
|
-
|
|
152
|
+
f,
|
|
153
153
|
{
|
|
154
154
|
"data-slot": "menubar-label",
|
|
155
155
|
"data-inset": t,
|
|
@@ -166,7 +166,7 @@ function K({
|
|
|
166
166
|
...t
|
|
167
167
|
}) {
|
|
168
168
|
return /* @__PURE__ */ a(
|
|
169
|
-
|
|
169
|
+
h,
|
|
170
170
|
{
|
|
171
171
|
"data-slot": "menubar-separator",
|
|
172
172
|
className: r("bg-d-border -mx-1 my-1 h-px", e),
|
|
@@ -193,7 +193,7 @@ function O({
|
|
|
193
193
|
function Q({
|
|
194
194
|
...e
|
|
195
195
|
}) {
|
|
196
|
-
return /* @__PURE__ */ a(
|
|
196
|
+
return /* @__PURE__ */ a(M, { "data-slot": "menubar-sub", ...e });
|
|
197
197
|
}
|
|
198
198
|
function U({
|
|
199
199
|
className: e,
|
|
@@ -202,7 +202,7 @@ function U({
|
|
|
202
202
|
...o
|
|
203
203
|
}) {
|
|
204
204
|
return /* @__PURE__ */ s(
|
|
205
|
-
|
|
205
|
+
N,
|
|
206
206
|
{
|
|
207
207
|
"data-slot": "menubar-sub-trigger",
|
|
208
208
|
"data-inset": t,
|
|
@@ -223,7 +223,7 @@ function V({
|
|
|
223
223
|
...t
|
|
224
224
|
}) {
|
|
225
225
|
return /* @__PURE__ */ a(
|
|
226
|
-
|
|
226
|
+
z,
|
|
227
227
|
{
|
|
228
228
|
"data-slot": "menubar-sub-content",
|
|
229
229
|
className: r(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Root as n,
|
|
3
|
+
import { Root as n, Portal as i, Content as s, Trigger as p } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
4
|
import { cn as m } from "../../lib/utils.js";
|
|
5
5
|
function u({
|
|
6
6
|
...o
|
|
@@ -10,7 +10,7 @@ function u({
|
|
|
10
10
|
function g({
|
|
11
11
|
...o
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
13
|
+
return /* @__PURE__ */ t(p, { "data-slot": "popover-trigger", ...o });
|
|
14
14
|
}
|
|
15
15
|
function v({
|
|
16
16
|
className: o,
|
|
@@ -19,8 +19,8 @@ function v({
|
|
|
19
19
|
container: a,
|
|
20
20
|
...d
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */ t(
|
|
23
|
-
|
|
22
|
+
return /* @__PURE__ */ t(i, { container: a, children: /* @__PURE__ */ t(
|
|
23
|
+
s,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "popover-content",
|
|
26
26
|
align: e,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Root as p,
|
|
3
|
+
import { Root as p, Portal as f, Content as g, Viewport as x, Group as h, Item as v, ItemIndicator as b, ItemText as y, Label as S, Separator as z, Trigger as w, Icon as N, Value as C, ScrollUpButton as I, ScrollDownButton as _ } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
4
|
import * as c from "react";
|
|
5
5
|
import { Label as j } from "./label.js";
|
|
6
6
|
import { cn as o } from "../../lib/utils.js";
|
|
7
|
-
import u from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
8
7
|
import k from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
8
|
+
import u from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
9
9
|
import B from "../../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
10
10
|
function q({
|
|
11
11
|
size: t = "default",
|
|
@@ -24,12 +24,12 @@ const m = c.createContext({ size: "default" }), L = () => c.useContext(m);
|
|
|
24
24
|
function A({
|
|
25
25
|
...t
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */ e(
|
|
27
|
+
return /* @__PURE__ */ e(h, { "data-slot": "select-group", ...t });
|
|
28
28
|
}
|
|
29
29
|
function E({
|
|
30
30
|
...t
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ e(
|
|
32
|
+
return /* @__PURE__ */ e(C, { "data-slot": "select-value", ...t });
|
|
33
33
|
}
|
|
34
34
|
function H({
|
|
35
35
|
className: t,
|
|
@@ -39,7 +39,7 @@ function H({
|
|
|
39
39
|
}) {
|
|
40
40
|
const { size: d, id: n } = L(), l = a || d;
|
|
41
41
|
return /* @__PURE__ */ i(
|
|
42
|
-
|
|
42
|
+
w,
|
|
43
43
|
{
|
|
44
44
|
id: n,
|
|
45
45
|
"data-slot": "select-trigger",
|
|
@@ -62,7 +62,7 @@ function H({
|
|
|
62
62
|
...r,
|
|
63
63
|
children: [
|
|
64
64
|
s,
|
|
65
|
-
/* @__PURE__ */ e(
|
|
65
|
+
/* @__PURE__ */ e(N, { asChild: !0, children: /* @__PURE__ */ e(u, { className: "size-4 opacity-50" }) })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -73,8 +73,8 @@ function J({
|
|
|
73
73
|
position: s = "popper",
|
|
74
74
|
...r
|
|
75
75
|
}) {
|
|
76
|
-
return /* @__PURE__ */ e(
|
|
77
|
-
|
|
76
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ i(
|
|
77
|
+
g,
|
|
78
78
|
{
|
|
79
79
|
"data-slot": "select-content",
|
|
80
80
|
className: o(
|
|
@@ -87,7 +87,7 @@ function J({
|
|
|
87
87
|
children: [
|
|
88
88
|
/* @__PURE__ */ e(D, {}),
|
|
89
89
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
x,
|
|
91
91
|
{
|
|
92
92
|
className: o(
|
|
93
93
|
"p-1",
|
|
@@ -123,7 +123,7 @@ function M({
|
|
|
123
123
|
...s
|
|
124
124
|
}) {
|
|
125
125
|
return /* @__PURE__ */ i(
|
|
126
|
-
|
|
126
|
+
v,
|
|
127
127
|
{
|
|
128
128
|
"data-slot": "select-item",
|
|
129
129
|
className: o(
|
|
@@ -132,8 +132,8 @@ function M({
|
|
|
132
132
|
),
|
|
133
133
|
...s,
|
|
134
134
|
children: [
|
|
135
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
135
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(k, { className: "size-4" }) }) }),
|
|
136
|
+
/* @__PURE__ */ e(y, { children: a })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
);
|
|
@@ -143,7 +143,7 @@ function O({
|
|
|
143
143
|
...a
|
|
144
144
|
}) {
|
|
145
145
|
return /* @__PURE__ */ e(
|
|
146
|
-
|
|
146
|
+
z,
|
|
147
147
|
{
|
|
148
148
|
"data-slot": "select-separator",
|
|
149
149
|
className: o(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as d,
|
|
3
|
+
import { Root as d, Content as i, Close as l, Description as c, Title as f, Trigger as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
6
|
function v({ ...t }) {
|
|
@@ -9,7 +9,7 @@ function v({ ...t }) {
|
|
|
9
9
|
function w({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(u, { "data-slot": "sheet-trigger", ...t });
|
|
13
13
|
}
|
|
14
14
|
function g({
|
|
15
15
|
...t
|
|
@@ -41,7 +41,7 @@ function C({
|
|
|
41
41
|
return /* @__PURE__ */ s(g, { children: [
|
|
42
42
|
/* @__PURE__ */ o(b, {}),
|
|
43
43
|
/* @__PURE__ */ s(
|
|
44
|
-
|
|
44
|
+
i,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "sheet-content",
|
|
47
47
|
className: a(
|
|
@@ -55,7 +55,7 @@ function C({
|
|
|
55
55
|
...n,
|
|
56
56
|
children: [
|
|
57
57
|
e,
|
|
58
|
-
/* @__PURE__ */ s(
|
|
58
|
+
/* @__PURE__ */ s(l, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
59
59
|
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
60
60
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
61
61
|
] })
|
|
@@ -102,7 +102,7 @@ function j({
|
|
|
102
102
|
...e
|
|
103
103
|
}) {
|
|
104
104
|
return /* @__PURE__ */ o(
|
|
105
|
-
|
|
105
|
+
c,
|
|
106
106
|
{
|
|
107
107
|
"data-slot": "sheet-description",
|
|
108
108
|
className: a("text-d-secondary-foreground text-sm", t),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as o,
|
|
3
|
+
import { Root as o, Content as i, List as r, Trigger as a } from "../../node_modules/@radix-ui/react-tabs/dist/index.js";
|
|
4
4
|
import { cn as n } from "../../lib/utils.js";
|
|
5
5
|
function u({
|
|
6
6
|
className: e,
|
|
@@ -20,7 +20,7 @@ function f({
|
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ s(
|
|
23
|
-
|
|
23
|
+
r,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "tabs-list",
|
|
26
26
|
className: n(
|
|
@@ -36,7 +36,7 @@ function b({
|
|
|
36
36
|
...t
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ s(
|
|
39
|
-
|
|
39
|
+
a,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "tabs-trigger",
|
|
42
42
|
className: n(
|
|
@@ -52,7 +52,7 @@ function g({
|
|
|
52
52
|
...t
|
|
53
53
|
}) {
|
|
54
54
|
return /* @__PURE__ */ s(
|
|
55
|
-
|
|
55
|
+
i,
|
|
56
56
|
{
|
|
57
57
|
"data-slot": "tabs-content",
|
|
58
58
|
className: n("flex-1 outline-none", e),
|