@dito-uai/components 5.0.0-alpha2 → 5.0.0-alpha3
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/index.cjs +52 -1503
- package/dist/index.d.ts +23 -2020
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1465
- package/dist/ui/accordion.d.ts +8 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/input.d.ts +195 -9
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/search.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,1519 +1,68 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var Z = require('react');
|
|
4
4
|
var reactSlot = require('@radix-ui/react-slot');
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var clsx = require('clsx');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var K = require('@radix-ui/react-toggle-group');
|
|
9
|
+
var te = require('@radix-ui/react-progress');
|
|
10
|
+
var C = require('@radix-ui/react-accordion');
|
|
11
11
|
var icons = require('@dito-uai/icons');
|
|
12
12
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
13
13
|
var reactCheckbox = require('@radix-ui/react-checkbox');
|
|
14
|
-
var
|
|
14
|
+
var z = require('@radix-ui/react-radio-group');
|
|
15
15
|
var lucideReact = require('lucide-react');
|
|
16
16
|
|
|
17
17
|
function _interopNamespace(e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
if (e && e.__esModule) return e;
|
|
19
|
+
var n = Object.create(null);
|
|
20
|
+
if (e) {
|
|
21
|
+
Object.keys(e).forEach(function (k) {
|
|
22
|
+
if (k !== 'default') {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return e[k]; }
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n.default = e;
|
|
32
|
+
return Object.freeze(n);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
35
|
+
var Z__namespace = /*#__PURE__*/_interopNamespace(Z);
|
|
36
|
+
var K__namespace = /*#__PURE__*/_interopNamespace(K);
|
|
37
|
+
var te__namespace = /*#__PURE__*/_interopNamespace(te);
|
|
38
|
+
var C__namespace = /*#__PURE__*/_interopNamespace(C);
|
|
39
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
40
40
|
|
|
41
|
-
// src/ui/avatar.tsx
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var x = (e, o) => JSON.stringify(e) === JSON.stringify(o);
|
|
47
|
-
function i(e, o) {
|
|
48
|
-
e.forEach(function(r) {
|
|
49
|
-
Array.isArray(r) ? i(r, o) : o.push(r);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function y(e) {
|
|
53
|
-
let o = [];
|
|
54
|
-
return i(e, o), o;
|
|
55
|
-
}
|
|
56
|
-
var a = (...e) => y(e).filter(Boolean);
|
|
57
|
-
var p = (e, o) => {
|
|
58
|
-
let r = {}, c = Object.keys(e), f = Object.keys(o);
|
|
59
|
-
for (let t of c) if (f.includes(t)) {
|
|
60
|
-
let s = e[t], n = o[t];
|
|
61
|
-
typeof s == "object" && typeof n == "object" ? r[t] = p(s, n) : Array.isArray(s) || Array.isArray(n) ? r[t] = a(n, s) : r[t] = n + " " + s;
|
|
62
|
-
} else r[t] = e[t];
|
|
63
|
-
for (let t of f) c.includes(t) || (r[t] = o[t]);
|
|
64
|
-
return r;
|
|
65
|
-
};
|
|
66
|
-
var g = (e) => !e || typeof e != "string" ? e : e.replace(/\s+/g, " ").trim();
|
|
67
|
-
var ie = { twMerge: true, twMergeConfig: {}, responsiveVariants: false };
|
|
68
|
-
var _ = (s) => s || void 0;
|
|
69
|
-
var M = (...s) => _(y(s).filter(Boolean).join(" "));
|
|
70
|
-
var R = null;
|
|
71
|
-
var v = {};
|
|
72
|
-
var q = false;
|
|
73
|
-
var j = (...s) => (b$1) => b$1.twMerge ? ((!R || q) && (q = false, R = u(v) ? tailwindMerge.twMerge : tailwindMerge.extendTailwindMerge({ ...v, extend: { theme: v.theme, classGroups: v.classGroups, conflictingClassGroupModifiers: v.conflictingClassGroupModifiers, conflictingClassGroups: v.conflictingClassGroups, ...v.extend } })), _(R(M(s)))) : M(s);
|
|
74
|
-
var Z = (s, b) => {
|
|
75
|
-
for (let e in b) s.hasOwnProperty(e) ? s[e] = M(s[e], b[e]) : s[e] = b[e];
|
|
76
|
-
return s;
|
|
77
|
-
};
|
|
78
|
-
var ce = (s, b$1) => {
|
|
79
|
-
let { extend: e = null, slots: N = {}, variants: F = {}, compoundVariants: U = [], compoundSlots: C = [], defaultVariants: W = {} } = s, m = { ...ie, ...b$1 }, S = e != null && e.base ? M(e.base, s == null ? void 0 : s.base) : s == null ? void 0 : s.base, g$1 = e != null && e.variants && !u(e.variants) ? p(F, e.variants) : F, A = e != null && e.defaultVariants && !u(e.defaultVariants) ? { ...e.defaultVariants, ...W } : W;
|
|
80
|
-
!u(m.twMergeConfig) && !x(m.twMergeConfig, v) && (q = true, v = m.twMergeConfig);
|
|
81
|
-
let O = u(e == null ? void 0 : e.slots), $ = u(N) ? {} : { base: M(s == null ? void 0 : s.base, O && (e == null ? void 0 : e.base)), ...N }, w = O ? $ : Z({ ...e == null ? void 0 : e.slots }, u($) ? { base: s == null ? void 0 : s.base } : $), h$1 = u(e == null ? void 0 : e.compoundVariants) ? U : a(e == null ? void 0 : e.compoundVariants, U), V = (f) => {
|
|
82
|
-
if (u(g$1) && u(N) && O) return j(S, f == null ? void 0 : f.class, f == null ? void 0 : f.className)(m);
|
|
83
|
-
if (h$1 && !Array.isArray(h$1)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof h$1}`);
|
|
84
|
-
if (C && !Array.isArray(C)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof C}`);
|
|
85
|
-
let K = (t, n, a2 = [], i2) => {
|
|
86
|
-
let r = a2;
|
|
87
|
-
if (typeof n == "string") r = r.concat(g(n).split(" ").map((o) => `${t}:${o}`));
|
|
88
|
-
else if (Array.isArray(n)) r = r.concat(n.reduce((o, c) => o.concat(`${t}:${c}`), []));
|
|
89
|
-
else if (typeof n == "object" && typeof i2 == "string") {
|
|
90
|
-
for (let o in n) if (n.hasOwnProperty(o) && o === i2) {
|
|
91
|
-
let c = n[o];
|
|
92
|
-
if (c && typeof c == "string") {
|
|
93
|
-
let l2 = g(c);
|
|
94
|
-
r[i2] ? r[i2] = r[i2].concat(l2.split(" ").map((u2) => `${t}:${u2}`)) : r[i2] = l2.split(" ").map((u2) => `${t}:${u2}`);
|
|
95
|
-
} else Array.isArray(c) && c.length > 0 && (r[i2] = c.reduce((l2, u2) => l2.concat(`${t}:${u2}`), []));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return r;
|
|
99
|
-
}, z = (t, n = g$1, a$1 = null, i2 = null) => {
|
|
100
|
-
var J;
|
|
101
|
-
let r = n[t];
|
|
102
|
-
if (!r || u(r)) return null;
|
|
103
|
-
let o = (J = i2 == null ? void 0 : i2[t]) != null ? J : f == null ? void 0 : f[t];
|
|
104
|
-
if (o === null) return null;
|
|
105
|
-
let c = l(o), l2 = Array.isArray(m.responsiveVariants) && m.responsiveVariants.length > 0 || m.responsiveVariants === true, u2 = A == null ? void 0 : A[t], d = [];
|
|
106
|
-
if (typeof c == "object" && l2) for (let [T, L] of Object.entries(c)) {
|
|
107
|
-
let ne = r[L];
|
|
108
|
-
if (T === "initial") {
|
|
109
|
-
u2 = L;
|
|
110
|
-
continue;
|
|
111
|
-
}
|
|
112
|
-
Array.isArray(m.responsiveVariants) && !m.responsiveVariants.includes(T) || (d = K(T, ne, d, a$1));
|
|
113
|
-
}
|
|
114
|
-
let ae = c != null && typeof c != "object" ? c : l(u2), k = r[ae || "false"];
|
|
115
|
-
return typeof d == "object" && typeof a$1 == "string" && d[a$1] ? Z(d, k) : d.length > 0 ? (d.push(k), d) : k;
|
|
116
|
-
}, P = () => g$1 ? Object.keys(g$1).map((t) => z(t, g$1)) : null, p2 = (t, n) => {
|
|
117
|
-
if (!g$1 || typeof g$1 != "object") return null;
|
|
118
|
-
let a2 = new Array();
|
|
119
|
-
for (let i2 in g$1) {
|
|
120
|
-
let r = z(i2, g$1, t, n), o = t === "base" && typeof r == "string" ? r : r && r[t];
|
|
121
|
-
o && (a2[a2.length] = o);
|
|
122
|
-
}
|
|
123
|
-
return a2;
|
|
124
|
-
}, D = {};
|
|
125
|
-
for (let t in f) f[t] !== void 0 && (D[t] = f[t]);
|
|
126
|
-
let H = (t, n) => {
|
|
127
|
-
var i2;
|
|
128
|
-
let a2 = typeof (f == null ? void 0 : f[t]) == "object" ? { [t]: (i2 = f[t]) == null ? void 0 : i2.initial } : {};
|
|
129
|
-
return { ...A, ...D, ...a2, ...n };
|
|
130
|
-
}, I = (t = [], n) => {
|
|
131
|
-
let a2 = [];
|
|
132
|
-
for (let { class: i2, className: r, ...o } of t) {
|
|
133
|
-
let c = true;
|
|
134
|
-
for (let [l2, u2] of Object.entries(o)) {
|
|
135
|
-
let d = H(l2, n);
|
|
136
|
-
if (Array.isArray(u2)) {
|
|
137
|
-
if (!u2.includes(d[l2])) {
|
|
138
|
-
c = false;
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
} else if (d[l2] !== u2) {
|
|
142
|
-
c = false;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
c && (i2 && a2.push(i2), r && a2.push(r));
|
|
147
|
-
}
|
|
148
|
-
return a2;
|
|
149
|
-
}, ee = (t) => {
|
|
150
|
-
let n = I(h$1, t);
|
|
151
|
-
if (!Array.isArray(n)) return n;
|
|
152
|
-
let a2 = {};
|
|
153
|
-
for (let i2 of n) if (typeof i2 == "string" && (a2.base = j(a2.base, i2)(m)), typeof i2 == "object") for (let [r, o] of Object.entries(i2)) a2[r] = j(a2[r], o)(m);
|
|
154
|
-
return a2;
|
|
155
|
-
}, te = (t) => {
|
|
156
|
-
if (C.length < 1) return null;
|
|
157
|
-
let n = {};
|
|
158
|
-
for (let { slots: a2 = [], class: i2, className: r, ...o } of C) {
|
|
159
|
-
if (!u(o)) {
|
|
160
|
-
let c = true;
|
|
161
|
-
for (let l2 of Object.keys(o)) {
|
|
162
|
-
let u2 = H(l2, t)[l2];
|
|
163
|
-
if (u2 === void 0 || (Array.isArray(o[l2]) ? !o[l2].includes(u2) : o[l2] !== u2)) {
|
|
164
|
-
c = false;
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
if (!c) continue;
|
|
169
|
-
}
|
|
170
|
-
for (let c of a2) n[c] = n[c] || [], n[c].push([i2, r]);
|
|
171
|
-
}
|
|
172
|
-
return n;
|
|
173
|
-
};
|
|
174
|
-
if (!u(N) || !O) {
|
|
175
|
-
let t = {};
|
|
176
|
-
if (typeof w == "object" && !u(w)) for (let n of Object.keys(w)) t[n] = (a2) => {
|
|
177
|
-
var i2, r;
|
|
178
|
-
return j(w[n], p2(n, a2), ((i2 = ee(a2)) != null ? i2 : [])[n], ((r = te(a2)) != null ? r : [])[n], a2 == null ? void 0 : a2.class, a2 == null ? void 0 : a2.className)(m);
|
|
179
|
-
};
|
|
180
|
-
return t;
|
|
181
|
-
}
|
|
182
|
-
return j(S, P(), I(h$1), f == null ? void 0 : f.class, f == null ? void 0 : f.className)(m);
|
|
183
|
-
}, x2 = () => {
|
|
184
|
-
if (!(!g$1 || typeof g$1 != "object")) return Object.keys(g$1);
|
|
185
|
-
};
|
|
186
|
-
return V.variantKeys = x2(), V.extend = e, V.base = S, V.slots = w, V.variants = g$1, V.defaultVariants = A, V.compoundSlots = C, V.compoundVariants = h$1, V;
|
|
187
|
-
};
|
|
188
|
-
var avatarVariants = ce({
|
|
189
|
-
base: "flex items-center justify-center rounded-full",
|
|
190
|
-
variants: {
|
|
191
|
-
color: { default: "bg-neutral-100", indigo: "bg-indigo-600" },
|
|
192
|
-
type: {
|
|
193
|
-
icon: "[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",
|
|
194
|
-
capitals: "font-semibold text-neutral-500",
|
|
195
|
-
image: "[&_img]:rounded-full"
|
|
196
|
-
},
|
|
197
|
-
size: {
|
|
198
|
-
small: "size-4",
|
|
199
|
-
medium: "size-5",
|
|
200
|
-
large: "size-7"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
compoundVariants: [
|
|
204
|
-
{
|
|
205
|
-
size: "large",
|
|
206
|
-
type: ["capitals", "icon"],
|
|
207
|
-
className: "text-xl [&_svg]:size-5"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
size: "medium",
|
|
211
|
-
type: ["capitals", "icon"],
|
|
212
|
-
className: "text-lg [&_svg]:size-3"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
size: "small",
|
|
216
|
-
type: ["capitals", "icon"],
|
|
217
|
-
className: "text-base [&_svg]:size-2"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
color: "indigo",
|
|
221
|
-
type: ["capitals", "icon"],
|
|
222
|
-
className: "text-white [&_path]:fill-white [&_svg]:fill-white"
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
defaultVariants: {
|
|
226
|
-
color: "default"
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
var Avatar = React4__namespace.default.forwardRef(
|
|
230
|
-
({ className, color, type, size, children, asChild, ...props }, forwardedRef) => {
|
|
231
|
-
const Comp = asChild ? reactSlot.Slot : "div";
|
|
232
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
233
|
-
Comp,
|
|
234
|
-
{
|
|
235
|
-
className: avatarVariants({ color, type, size, className }),
|
|
236
|
-
ref: forwardedRef,
|
|
237
|
-
...props,
|
|
238
|
-
children
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
Avatar.displayName = "Avatar";
|
|
244
|
-
var avatar_default = Avatar;
|
|
245
|
-
function cn(...inputs) {
|
|
246
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
247
|
-
}
|
|
248
|
-
var TextVariants = ce({
|
|
249
|
-
base: "",
|
|
250
|
-
variants: {
|
|
251
|
-
size: {
|
|
252
|
-
H1: "text-3xl",
|
|
253
|
-
H2: "text-2xl",
|
|
254
|
-
H3: "text-xl",
|
|
255
|
-
large: "text-lg",
|
|
256
|
-
base: "text-base",
|
|
257
|
-
small: "text-sm",
|
|
258
|
-
overline: "text-xs uppercase"
|
|
259
|
-
},
|
|
260
|
-
weight: {
|
|
261
|
-
normal: "font-normal",
|
|
262
|
-
medium: "font-medium",
|
|
263
|
-
semibold: "font-semibold"
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
defaultVariants: {
|
|
267
|
-
size: "base",
|
|
268
|
-
weight: "normal"
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
var Text = ({ className, size, weight, children, ...props }) => {
|
|
272
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(TextVariants({ size, weight, className })), ...props, children });
|
|
273
|
-
};
|
|
274
|
-
Text.displayName = "Text";
|
|
275
|
-
var text_default = Text;
|
|
276
|
-
var badgeVariants = ce({
|
|
277
|
-
base: "flex items-center justify-center rounded-full",
|
|
278
|
-
variants: {
|
|
279
|
-
contrast: { true: "", false: "" },
|
|
280
|
-
status: {
|
|
281
|
-
info: "bg-notification-information-100 text-notification-information-600",
|
|
282
|
-
attention: "bg-notification-warning-100 text-notification-warning-900",
|
|
283
|
-
white: "text-notification-information-600 bg-white"
|
|
284
|
-
},
|
|
285
|
-
size: {
|
|
286
|
-
small: "h-2",
|
|
287
|
-
normal: "h-3"
|
|
288
|
-
},
|
|
289
|
-
type: {
|
|
290
|
-
pill: "w-fit px-1",
|
|
291
|
-
dot: ""
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
compoundVariants: [
|
|
295
|
-
{
|
|
296
|
-
status: "info",
|
|
297
|
-
contrast: true,
|
|
298
|
-
class: "bg-notification-information-600 text-white"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
status: "attention",
|
|
302
|
-
contrast: true,
|
|
303
|
-
class: "bg-notification-warning-600"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
type: "dot",
|
|
307
|
-
size: "small",
|
|
308
|
-
class: "w-2"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
type: "dot",
|
|
312
|
-
size: "normal",
|
|
313
|
-
class: "w-3"
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
defaultVariants: {
|
|
317
|
-
status: "info",
|
|
318
|
-
size: "normal",
|
|
319
|
-
type: "pill"
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
var Badge = React4__namespace.default.forwardRef(
|
|
323
|
-
({ className, status, size, type, contrast, children, asChild, ...props }, ref) => {
|
|
324
|
-
const Comp = asChild ? reactSlot.Slot : "span";
|
|
325
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
326
|
-
Comp,
|
|
327
|
-
{
|
|
328
|
-
className: badgeVariants({ status, size, type, contrast, className }),
|
|
329
|
-
ref,
|
|
330
|
-
...props,
|
|
331
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "overline", weight: "semibold", children })
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
Badge.displayName = "Badge";
|
|
337
|
-
var badge_default = Badge;
|
|
338
|
-
var buttonVariants = ce({
|
|
339
|
-
variants: {
|
|
340
|
-
appearance: {
|
|
341
|
-
primary: {
|
|
342
|
-
container: "bg-primary hover:bg-green-900 ",
|
|
343
|
-
text: "text-white",
|
|
344
|
-
icon: "fill-white [&_path]:fill-white"
|
|
345
|
-
},
|
|
346
|
-
secondary: {
|
|
347
|
-
container: "border border-green-600 bg-white hover:bg-green-100 ",
|
|
348
|
-
text: "text-green-600",
|
|
349
|
-
icon: "fill-green-600 [&_path]:fill-green-600"
|
|
350
|
-
},
|
|
351
|
-
tertiary: {
|
|
352
|
-
container: "border border-indigo-600 bg-white hover:bg-indigo-100 ",
|
|
353
|
-
text: "text-indigo-600",
|
|
354
|
-
icon: "fill-indigo-600 [&_path]:fill-indigo-600"
|
|
355
|
-
},
|
|
356
|
-
danger: {
|
|
357
|
-
container: "border-notification-critical-600 hover:bg-notification-critical-600 group/danger border bg-white",
|
|
358
|
-
text: "text-notification-critical-600 group-hover/danger:text-white",
|
|
359
|
-
icon: "fill-notification-critical-600 [&_path]:fill-notification-critical-600 group-hover/danger:fill-white group-hover/danger:[&_path]:fill-white"
|
|
360
|
-
},
|
|
361
|
-
link: {
|
|
362
|
-
container: "bg-white hover:bg-green-100 ",
|
|
363
|
-
text: "text-green-600",
|
|
364
|
-
icon: "fill-green-600 [&_path]:fill-green-600"
|
|
365
|
-
},
|
|
366
|
-
table: {
|
|
367
|
-
container: "bg-white hover:bg-neutral-100 ",
|
|
368
|
-
text: "text-neutral-400",
|
|
369
|
-
icon: "fill-neutral-400 [&_path]:fill-neutral-400"
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
size: {
|
|
373
|
-
medium: {
|
|
374
|
-
container: "h-5",
|
|
375
|
-
icon: "text-base"
|
|
376
|
-
},
|
|
377
|
-
small: {
|
|
378
|
-
container: "h-4",
|
|
379
|
-
text: "mx-1 text-sm",
|
|
380
|
-
icon: "group-data-[has-text=true]:ml-0"
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
disabled: {
|
|
384
|
-
true: {
|
|
385
|
-
container: "pointer-events-none cursor-not-allowed border-neutral-200 bg-neutral-100",
|
|
386
|
-
text: "text-neutral-300",
|
|
387
|
-
icon: "fill-neutral-300 [&_path]:fill-neutral-300"
|
|
388
|
-
},
|
|
389
|
-
false: ""
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
slots: {
|
|
393
|
-
container: "group inline-flex items-center justify-center rounded-md p-1 focus:outline-none focus:ring-0 data-[has-icon=true]:gap-1",
|
|
394
|
-
icon: "size-3 group-data-[has-text=true]:ml-1",
|
|
395
|
-
text: "mx-2 group-data-[has-icon=true]:ml-0"
|
|
396
|
-
},
|
|
397
|
-
defaultVariants: {
|
|
398
|
-
appearance: "primary",
|
|
399
|
-
size: "medium"
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
var Button = React4__namespace.default.forwardRef(
|
|
403
|
-
({
|
|
404
|
-
className,
|
|
405
|
-
appearance,
|
|
406
|
-
size,
|
|
407
|
-
disabled,
|
|
408
|
-
children,
|
|
409
|
-
asChild,
|
|
410
|
-
icon: Icon,
|
|
411
|
-
...props
|
|
412
|
-
}, ref) => {
|
|
413
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
414
|
-
const slots = buttonVariants({ appearance, size, disabled, className });
|
|
415
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
416
|
-
Comp,
|
|
417
|
-
{
|
|
418
|
-
"data-has-icon": !!Icon,
|
|
419
|
-
"data-has-text": !!children,
|
|
420
|
-
className: slots.container(),
|
|
421
|
-
ref,
|
|
422
|
-
...props,
|
|
423
|
-
children: [
|
|
424
|
-
Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: slots.icon() }),
|
|
425
|
-
children && /* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "base", weight: "medium", className: slots.text(), children })
|
|
426
|
-
]
|
|
427
|
-
}
|
|
428
|
-
);
|
|
429
|
-
}
|
|
430
|
-
);
|
|
431
|
-
Button.displayName = "Button";
|
|
432
|
-
var button_default = Button;
|
|
433
|
-
var cardVariants = ce({
|
|
434
|
-
base: "flex w-full border border-gray-200 bg-white p-2",
|
|
435
|
-
variants: {
|
|
436
|
-
variant: {
|
|
437
|
-
default: "rounded-m",
|
|
438
|
-
big: "rounded-x",
|
|
439
|
-
small: "rounded-s"
|
|
440
|
-
},
|
|
441
|
-
direction: {
|
|
442
|
-
col: "flex-col",
|
|
443
|
-
row: "flex-row"
|
|
444
|
-
},
|
|
445
|
-
padding: {
|
|
446
|
-
none: "p-0",
|
|
447
|
-
small: "p-1",
|
|
448
|
-
medium: "p-2",
|
|
449
|
-
big: "p-3"
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
defaultVariants: {
|
|
453
|
-
variant: "default",
|
|
454
|
-
direction: "col",
|
|
455
|
-
padding: "none"
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
var Card = ({
|
|
459
|
-
className,
|
|
460
|
-
variant,
|
|
461
|
-
direction,
|
|
462
|
-
padding,
|
|
463
|
-
children,
|
|
464
|
-
...props
|
|
465
|
-
}) => {
|
|
466
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
467
|
-
"div",
|
|
468
|
-
{
|
|
469
|
-
className: cn(cardVariants({ variant, direction, padding, className })),
|
|
470
|
-
...props,
|
|
471
|
-
children
|
|
472
|
-
}
|
|
473
|
-
);
|
|
474
|
-
};
|
|
475
|
-
Card.displayName = "Card";
|
|
476
|
-
var card_default = Card;
|
|
477
|
-
var scopeVariants = ce({
|
|
478
|
-
variants: {
|
|
479
|
-
variant: {
|
|
480
|
-
default: "",
|
|
481
|
-
light: "",
|
|
482
|
-
green: "",
|
|
483
|
-
red: ""
|
|
484
|
-
},
|
|
485
|
-
size: {
|
|
486
|
-
default: {
|
|
487
|
-
container: "h-5"
|
|
488
|
-
},
|
|
489
|
-
small: {
|
|
490
|
-
container: "h-4",
|
|
491
|
-
text: "text-sm"
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
disabled: {
|
|
495
|
-
true: {
|
|
496
|
-
container: "cursor-initial border-neutral-200 bg-neutral-100 text-neutral-300",
|
|
497
|
-
icon: "[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"
|
|
498
|
-
},
|
|
499
|
-
false: {
|
|
500
|
-
container: "border-neutral-200 text-neutral-500 hover:bg-neutral-100",
|
|
501
|
-
icon: "[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500"
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
compoundVariants: [
|
|
506
|
-
{
|
|
507
|
-
disabled: false,
|
|
508
|
-
variant: "default",
|
|
509
|
-
class: {
|
|
510
|
-
container: "data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-600",
|
|
511
|
-
text: "group-data-[state=on]:text-white",
|
|
512
|
-
icon: "group-data-[state=on]:fill-white [&_path]:group-data-[state=on]:fill-white"
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
disabled: false,
|
|
517
|
-
variant: "light",
|
|
518
|
-
class: {
|
|
519
|
-
container: "data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-100",
|
|
520
|
-
text: "group-data-[state=on]:text-indigo-600",
|
|
521
|
-
icon: "group-data-[state=on]:fill-indigo-600 [&_path]:group-data-[state=on]:fill-indigo-600"
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
disabled: false,
|
|
526
|
-
variant: "green",
|
|
527
|
-
class: {
|
|
528
|
-
container: "data-[state=on]:border-notification-success-600 data-[state=on]:bg-notification-success-100",
|
|
529
|
-
text: "group-data-[state=on]:text-notification-success-600",
|
|
530
|
-
icon: "group-data-[state=on]:fill-notification-success-600 [&_path]:group-data-[state=on]:fill-notification-success-600"
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
disabled: false,
|
|
535
|
-
variant: "red",
|
|
536
|
-
class: {
|
|
537
|
-
container: "data-[state=on]:border-notification-critical-600 data-[state=on]:bg-notification-critical-100",
|
|
538
|
-
text: "group-data-[state=on]:text-notification-critical-600",
|
|
539
|
-
icon: "group-data-[state=on]:fill-notification-critical-600 [&_path]:group-data-[state=on]:fill-notification-critical-600"
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
],
|
|
543
|
-
slots: {
|
|
544
|
-
container: "first:rounded-ss-m first:rounded-es-m last:rounded-se-m last:rounded-ee-m group flex items-center gap-1 border px-2 [&:nth-child(n+2)]:data-[state=off]:border-l-0",
|
|
545
|
-
icon: "size-3",
|
|
546
|
-
text: ""
|
|
547
|
-
},
|
|
548
|
-
defaultVariants: {
|
|
549
|
-
disabled: false,
|
|
550
|
-
variant: "default",
|
|
551
|
-
size: "default"
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
var ScopeGroupContext = React4__namespace.default.createContext({
|
|
555
|
-
variant: "default",
|
|
556
|
-
size: "default",
|
|
557
|
-
disabled: false
|
|
558
|
-
});
|
|
559
|
-
var Group = React4__namespace.default.forwardRef(({ className, variant, children, size, disabled, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
560
|
-
ToggleGroupPrimitive__namespace.Root,
|
|
561
|
-
{
|
|
562
|
-
ref,
|
|
563
|
-
className: cn("flex items-center justify-center gap-0", className),
|
|
564
|
-
...props,
|
|
565
|
-
type: "single",
|
|
566
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
567
|
-
ScopeGroupContext.Provider,
|
|
568
|
-
{
|
|
569
|
-
value: {
|
|
570
|
-
variant,
|
|
571
|
-
size,
|
|
572
|
-
disabled
|
|
573
|
-
},
|
|
574
|
-
children
|
|
575
|
-
}
|
|
576
|
-
)
|
|
577
|
-
}
|
|
578
|
-
));
|
|
579
|
-
Group.displayName = "ScopeGroup";
|
|
580
|
-
var Item2 = React4__namespace.default.forwardRef(({ className, variant, size, icon: Icon, text, disabled, ...props }, ref) => {
|
|
581
|
-
const context = React4__namespace.default.useContext(ScopeGroupContext);
|
|
582
|
-
const slots = scopeVariants({
|
|
583
|
-
variant: context.variant || variant,
|
|
584
|
-
size: context.size || size,
|
|
585
|
-
disabled: context.disabled || disabled
|
|
586
|
-
});
|
|
587
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
588
|
-
ToggleGroupPrimitive__namespace.Item,
|
|
589
|
-
{
|
|
590
|
-
ref,
|
|
591
|
-
className: cn(slots.container(), className),
|
|
592
|
-
disabled,
|
|
593
|
-
...props,
|
|
594
|
-
children: [
|
|
595
|
-
Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: slots.icon() }),
|
|
596
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "base", weight: "normal", className: slots.text(), children: text })
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
);
|
|
600
|
-
});
|
|
601
|
-
Item2.displayName = "ScopeItem";
|
|
602
|
-
var Scope = {
|
|
603
|
-
Group,
|
|
604
|
-
Item: Item2
|
|
605
|
-
};
|
|
606
|
-
var scope_default = Scope;
|
|
607
|
-
var ProgressBar = ({
|
|
608
|
-
value,
|
|
609
|
-
className,
|
|
610
|
-
barBg,
|
|
611
|
-
progressBg
|
|
612
|
-
}) => {
|
|
613
|
-
const translateClass = `-translate-x-[(-${100 - (value || 0)}%])`;
|
|
614
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
615
|
-
RadixProgress.Root,
|
|
616
|
-
{
|
|
617
|
-
className: cn(
|
|
618
|
-
className,
|
|
619
|
-
barBg,
|
|
620
|
-
"relative w-full overflow-hidden rounded-full "
|
|
621
|
-
),
|
|
622
|
-
value,
|
|
623
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
624
|
-
RadixProgress.Indicator,
|
|
625
|
-
{
|
|
626
|
-
className: cn(
|
|
627
|
-
className,
|
|
628
|
-
"w-full flex-1 rounded-full",
|
|
629
|
-
translateClass,
|
|
630
|
-
progressBg
|
|
631
|
-
)
|
|
632
|
-
}
|
|
633
|
-
)
|
|
634
|
-
}
|
|
635
|
-
);
|
|
636
|
-
};
|
|
637
|
-
var progress_bar_default = ProgressBar;
|
|
638
|
-
var inputVariants = ce({
|
|
639
|
-
variants: {
|
|
640
|
-
disabled: {
|
|
641
|
-
true: {
|
|
642
|
-
input: "cursor-not-allowed bg-neutral-100 text-neutral-400",
|
|
643
|
-
prefixIcon: "fill-neutral-300 [&_path]:fill-neutral-300",
|
|
644
|
-
suffixIcon: "fill-neutral-300 [&_path]:fill-neutral-300"
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
invalid: {
|
|
648
|
-
true: {
|
|
649
|
-
input: "border-notification-critical-600 focus:border-notification-critical-600"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
size: {
|
|
653
|
-
medium: {
|
|
654
|
-
prefixIcon: "top-1",
|
|
655
|
-
suffixIcon: "top-1",
|
|
656
|
-
input: "h-5"
|
|
657
|
-
},
|
|
658
|
-
small: {
|
|
659
|
-
prefixIcon: "top-0.5",
|
|
660
|
-
suffixIcon: "top-0.5",
|
|
661
|
-
input: "h-4"
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
slots: {
|
|
666
|
-
prefixIcon: "absolute left-1 top-1 size-3",
|
|
667
|
-
input: "rounded-m flex w-full border border-neutral-200 p-1 text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400 focus:border-indigo-600 focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed data-[has-prefix-icon=true]:pl-5 data-[has-suffix-icon=true]:pr-5",
|
|
668
|
-
suffixIcon: "absolute right-1 top-1 size-3"
|
|
669
|
-
},
|
|
670
|
-
defaultVariants: {
|
|
671
|
-
size: "medium"
|
|
672
|
-
}
|
|
673
|
-
});
|
|
674
|
-
var Input = React4__namespace.default.forwardRef(
|
|
675
|
-
({
|
|
676
|
-
className,
|
|
677
|
-
prefixIcon: PreffixIcon,
|
|
678
|
-
suffixIcon: SuffixIcon,
|
|
679
|
-
disabled,
|
|
680
|
-
invalid,
|
|
681
|
-
size,
|
|
682
|
-
...props
|
|
683
|
-
}, ref) => {
|
|
684
|
-
const slots = inputVariants();
|
|
685
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
686
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: slots.prefixIcon({ invalid, size }), children: PreffixIcon && /* @__PURE__ */ jsxRuntime.jsx(PreffixIcon, {}) }),
|
|
687
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
688
|
-
"input",
|
|
689
|
-
{
|
|
690
|
-
disabled,
|
|
691
|
-
"data-has-prefix-icon": !!PreffixIcon,
|
|
692
|
-
"data-has-suffix-icon": !!SuffixIcon,
|
|
693
|
-
className: cn(slots.input({ disabled, invalid, size }), className),
|
|
694
|
-
ref,
|
|
695
|
-
...props
|
|
696
|
-
}
|
|
697
|
-
),
|
|
698
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: slots.suffixIcon({ invalid, size }), children: SuffixIcon && /* @__PURE__ */ jsxRuntime.jsx(SuffixIcon, {}) })
|
|
699
|
-
] });
|
|
700
|
-
}
|
|
701
|
-
);
|
|
702
|
-
Input.displayName = "Input";
|
|
703
|
-
var input_default = Input;
|
|
704
|
-
var Textarea = React4__namespace.forwardRef(
|
|
705
|
-
({ className, disabled, invalid, ...props }, ref) => {
|
|
706
|
-
const { input } = inputVariants();
|
|
707
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
-
"textarea",
|
|
709
|
-
{
|
|
710
|
-
className: cn("min-h-9", className, input({ disabled, invalid })),
|
|
711
|
-
ref,
|
|
712
|
-
...props
|
|
713
|
-
}
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
|
-
);
|
|
717
|
-
Textarea.displayName = "Textarea";
|
|
718
|
-
var textarea_default = Textarea;
|
|
719
|
-
var Sheet = ({
|
|
720
|
-
title,
|
|
721
|
-
children,
|
|
722
|
-
isVisible,
|
|
723
|
-
CloseIcon,
|
|
724
|
-
maxWidth,
|
|
725
|
-
onClose
|
|
726
|
-
}) => {
|
|
727
|
-
const [isOpen, setOpen] = React4.useState(isVisible);
|
|
728
|
-
React4.useEffect(() => setOpen(isVisible), [isVisible]);
|
|
729
|
-
const handleClose = (confirm) => {
|
|
730
|
-
setOpen(false);
|
|
731
|
-
if (onClose) onClose(confirm);
|
|
732
|
-
};
|
|
733
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
734
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
735
|
-
"div",
|
|
736
|
-
{
|
|
737
|
-
className: cn(
|
|
738
|
-
"fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",
|
|
739
|
-
!isOpen ? "hidden" : void 0
|
|
740
|
-
)
|
|
741
|
-
}
|
|
742
|
-
),
|
|
743
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
744
|
-
"div",
|
|
745
|
-
{
|
|
746
|
-
className: cn(
|
|
747
|
-
"shadow-big fixed right-0 top-0 z-40 h-screen overflow-y-auto overflow-x-hidden rounded-l-lg bg-white transition-transform dark:bg-gray-800",
|
|
748
|
-
maxWidth ? `max-w=[${maxWidth}]` : "max-w-3/4",
|
|
749
|
-
!isOpen ? "translate-x-full" : void 0
|
|
750
|
-
),
|
|
751
|
-
tabIndex: -1,
|
|
752
|
-
"aria-labelledby": "drawer-label",
|
|
753
|
-
children: [
|
|
754
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
755
|
-
"div",
|
|
756
|
-
{
|
|
757
|
-
id: "drawer-label",
|
|
758
|
-
className: cn(
|
|
759
|
-
" mb-2 flex items-center justify-between border-b-2 border-slate-100 p-2 text-base font-semibold text-gray-500 dark:text-gray-400"
|
|
760
|
-
),
|
|
761
|
-
children: [
|
|
762
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "H3", weight: "semibold", className: "text-navy-600", children: title }),
|
|
763
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
764
|
-
"button",
|
|
765
|
-
{
|
|
766
|
-
type: "button",
|
|
767
|
-
"data-drawer-hide": "drawer-example",
|
|
768
|
-
"aria-controls": "drawer-example",
|
|
769
|
-
className: cn(
|
|
770
|
-
"b-0 ml-2 flex size-9 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
|
|
771
|
-
),
|
|
772
|
-
onClick: () => handleClose,
|
|
773
|
-
children: [
|
|
774
|
-
CloseIcon ? /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
775
|
-
"svg",
|
|
776
|
-
{
|
|
777
|
-
width: "24",
|
|
778
|
-
height: "24",
|
|
779
|
-
viewBox: "0 0 24 24",
|
|
780
|
-
fill: "none",
|
|
781
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
782
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
783
|
-
"path",
|
|
784
|
-
{
|
|
785
|
-
"fill-rule": "evenodd",
|
|
786
|
-
"clip-rule": "evenodd",
|
|
787
|
-
d: "M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",
|
|
788
|
-
fill: "#8D95A7"
|
|
789
|
-
}
|
|
790
|
-
)
|
|
791
|
-
}
|
|
792
|
-
),
|
|
793
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close menu" })
|
|
794
|
-
]
|
|
795
|
-
}
|
|
796
|
-
)
|
|
797
|
-
]
|
|
798
|
-
}
|
|
799
|
-
),
|
|
800
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(" relative h-full p-2"), children })
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
)
|
|
804
|
-
] });
|
|
805
|
-
};
|
|
806
|
-
Sheet.displayName = "Sheet";
|
|
807
|
-
var sheets_default = Sheet;
|
|
808
|
-
var toggleVariants = ce({
|
|
809
|
-
base: "after:start-0.25 after:top-0.25 peer relative mr-1 h-3 w-5 rounded-full bg-neutral-200 after:absolute after:size-[20px] after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-green-600 peer-checked:after:translate-x-2 peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-0",
|
|
810
|
-
variants: {
|
|
811
|
-
disabled: {
|
|
812
|
-
true: "cursor-not-allowed bg-neutral-100 after:border-neutral-100 peer-checked:bg-green-100 peer-checked:after:border-green-100"
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
});
|
|
816
|
-
var Toggle = React4.forwardRef(
|
|
817
|
-
({ className, name, disabled, children, ...props }, ref) => {
|
|
818
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
819
|
-
"label",
|
|
820
|
-
{
|
|
821
|
-
className: cn("inline-flex cursor-pointer items-center", className),
|
|
822
|
-
children: [
|
|
823
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
824
|
-
"input",
|
|
825
|
-
{
|
|
826
|
-
...props,
|
|
827
|
-
ref,
|
|
828
|
-
type: "checkbox",
|
|
829
|
-
className: cn("peer sr-only"),
|
|
830
|
-
name,
|
|
831
|
-
disabled
|
|
832
|
-
}
|
|
833
|
-
),
|
|
834
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: toggleVariants({ disabled }) }),
|
|
835
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { children })
|
|
836
|
-
]
|
|
837
|
-
}
|
|
838
|
-
);
|
|
839
|
-
}
|
|
840
|
-
);
|
|
841
|
-
Toggle.displayName = "Toggle";
|
|
842
|
-
var toggle_default = Toggle;
|
|
843
|
-
var Accordion = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
844
|
-
AccordionPrimitive__namespace.Root,
|
|
845
|
-
{
|
|
846
|
-
ref,
|
|
847
|
-
className: cn(
|
|
848
|
-
"[&>:first-child>h3>button]:rounded-t-m [&>:last-child>h3[data-state=closed]>button]:rounded-b-m",
|
|
849
|
-
className
|
|
850
|
-
),
|
|
851
|
-
...props
|
|
852
|
-
}
|
|
853
|
-
));
|
|
854
|
-
var AccordionItem = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
855
|
-
AccordionPrimitive__namespace.Item,
|
|
856
|
-
{
|
|
857
|
-
ref,
|
|
858
|
-
className: cn(
|
|
859
|
-
"first:rounded-t-m last:rounded-b-m border border-t-0 first:border-t",
|
|
860
|
-
className
|
|
861
|
-
),
|
|
862
|
-
...props
|
|
863
|
-
}
|
|
864
|
-
));
|
|
865
|
-
AccordionItem.displayName = "AccordionItem";
|
|
866
|
-
var AccordionTrigger = React4__namespace.forwardRef(({ className, children, triggerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
867
|
-
AccordionPrimitive__namespace.Trigger,
|
|
868
|
-
{
|
|
869
|
-
ref,
|
|
870
|
-
className: cn(
|
|
871
|
-
"flex h-7 w-full items-center p-1 transition-all hover:bg-neutral-100 [&[data-disabled]]:cursor-not-allowed [&[data-disabled]]:bg-neutral-200 [&[data-disabled]]:text-neutral-400 [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:border-b",
|
|
872
|
-
triggerClassName
|
|
873
|
-
),
|
|
874
|
-
...props,
|
|
875
|
-
children: [
|
|
876
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full", className), children }),
|
|
877
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineChevronDown, { className: "size-3 transition-transform duration-200" })
|
|
878
|
-
]
|
|
879
|
-
}
|
|
880
|
-
) }));
|
|
881
|
-
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
882
|
-
var AccordionContent = React4__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
883
|
-
AccordionPrimitive__namespace.Content,
|
|
884
|
-
{
|
|
885
|
-
ref,
|
|
886
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden transition-all",
|
|
887
|
-
...props,
|
|
888
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(className), children })
|
|
889
|
-
}
|
|
890
|
-
));
|
|
891
|
-
AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
|
|
892
|
-
var AccordionWithStatics = Accordion;
|
|
893
|
-
AccordionWithStatics.Item = AccordionItem;
|
|
894
|
-
AccordionWithStatics.Trigger = AccordionTrigger;
|
|
895
|
-
AccordionWithStatics.Content = AccordionContent;
|
|
896
|
-
var accordion_default = AccordionWithStatics;
|
|
897
|
-
var indicatorVariants = ce({
|
|
898
|
-
base: "text-medium flex h-3 items-center justify-center rounded-sm border border-neutral-200 px-1 py-0.5 [&_svg]:-ml-0.5 [&_svg]:w-2",
|
|
899
|
-
variants: {
|
|
900
|
-
status: {
|
|
901
|
-
positive: "text-notification-success-600 [&_svg]:fill-notification-success-600",
|
|
902
|
-
negative: "text-notification-critical-600 [&_svg]:fill-notification-critical-600",
|
|
903
|
-
neutral: "text-notification-warning-900 [&_svg]:fill-notification-warning-900",
|
|
904
|
-
info: "border-indigo-600 text-indigo-600"
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
});
|
|
908
|
-
var Indicator2 = React4__namespace.default.forwardRef(
|
|
909
|
-
({ className, status, value, icon, ...props }, ref) => {
|
|
910
|
-
const Icon = {
|
|
911
|
-
positive: /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineArrowUp, {}),
|
|
912
|
-
negative: /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineArrowDown, {}),
|
|
913
|
-
neutral: /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineMinus, {})
|
|
914
|
-
};
|
|
915
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
916
|
-
"div",
|
|
917
|
-
{
|
|
918
|
-
className: indicatorVariants({ status, className }),
|
|
919
|
-
ref,
|
|
920
|
-
...props,
|
|
921
|
-
children: [
|
|
922
|
-
icon && Icon[icon],
|
|
923
|
-
/* @__PURE__ */ jsxRuntime.jsxs(text_default, { size: "overline", weight: "semibold", children: [
|
|
924
|
-
value,
|
|
925
|
-
"%"
|
|
926
|
-
] })
|
|
927
|
-
]
|
|
928
|
-
}
|
|
929
|
-
);
|
|
930
|
-
}
|
|
931
|
-
);
|
|
932
|
-
var indicator_default = Indicator2;
|
|
933
|
-
var DropdownContent = ({
|
|
934
|
-
options,
|
|
935
|
-
selected,
|
|
936
|
-
onChange,
|
|
937
|
-
className
|
|
938
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(reactDropdownMenu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
939
|
-
reactDropdownMenu.Content,
|
|
940
|
-
{
|
|
941
|
-
align: "start",
|
|
942
|
-
className: cn(
|
|
943
|
-
"shadow-down data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 rounded-md border bg-white p-1",
|
|
944
|
-
className
|
|
945
|
-
),
|
|
946
|
-
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
947
|
-
reactDropdownMenu.Item,
|
|
948
|
-
{
|
|
949
|
-
"data-selected": selected === option.value,
|
|
950
|
-
className: "relative flex cursor-pointer select-none rounded-sm\n px-2 py-1 text-base font-normal text-neutral-500 outline-none\n transition-colors focus:bg-indigo-100 focus:text-indigo-600 \n data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600",
|
|
951
|
-
onClick: () => onChange && onChange(option.value),
|
|
952
|
-
children: option.text
|
|
953
|
-
}
|
|
954
|
-
))
|
|
955
|
-
}
|
|
956
|
-
) });
|
|
957
|
-
var statusVariants = ce({
|
|
958
|
-
base: "text-medium flex items-center justify-center rounded-sm px-1 py-0.5",
|
|
959
|
-
variants: {
|
|
960
|
-
status: {
|
|
961
|
-
success: [
|
|
962
|
-
"bg-notification-success-100",
|
|
963
|
-
"text-notification-success-600",
|
|
964
|
-
"[&_svg]:fill-notification-success-600 [&_span:nth-child(1)]:bg-notification-success-600"
|
|
965
|
-
],
|
|
966
|
-
attention: [
|
|
967
|
-
"bg-notification-warning-100",
|
|
968
|
-
"text-notification-warning-900",
|
|
969
|
-
"[&_svg]:fill-notification-warning-900 [&_span:nth-child(1)]:bg-notification-warning-900"
|
|
970
|
-
],
|
|
971
|
-
info: [
|
|
972
|
-
"bg-notification-information-100",
|
|
973
|
-
"text-notification-information-600",
|
|
974
|
-
"[&_svg]:fill-notification-information-600 [&_span:nth-child(1)]:bg-notification-information-600"
|
|
975
|
-
],
|
|
976
|
-
error: [
|
|
977
|
-
"bg-notification-critical-100",
|
|
978
|
-
"text-notification-critical-900",
|
|
979
|
-
"[&_svg]:fill-notification-critical-900 [&_span:nth-child(1)]:bg-notification-critical-900"
|
|
980
|
-
],
|
|
981
|
-
disabled: [
|
|
982
|
-
"bg-neutral-200 ",
|
|
983
|
-
"text-neutral-500",
|
|
984
|
-
"[&_span:nth-child(1)]:bg-neutral-500 [&_svg]:fill-neutral-500"
|
|
985
|
-
]
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
});
|
|
989
|
-
var Selected = ({ text }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-0.5", children: [
|
|
990
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-0.75 h-0.75 rounded-full bg-neutral-500" }),
|
|
991
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "overline", weight: "semibold", className: "select-none", children: text })
|
|
992
|
-
] });
|
|
993
|
-
var StatusSimple = React4__namespace.default.forwardRef(
|
|
994
|
-
({ className, status, text, ...props }, ref) => {
|
|
995
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
996
|
-
"div",
|
|
997
|
-
{
|
|
998
|
-
className: statusVariants({ status, className }),
|
|
999
|
-
ref,
|
|
1000
|
-
...props,
|
|
1001
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Selected, { text })
|
|
1002
|
-
}
|
|
1003
|
-
);
|
|
1004
|
-
}
|
|
1005
|
-
);
|
|
1006
|
-
var StatusMenu = React4__namespace.default.forwardRef(
|
|
1007
|
-
({ className, status, options, value, onChange, ...props }, ref) => {
|
|
1008
|
-
const selected = options.find((op) => op.value === value);
|
|
1009
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1010
|
-
"div",
|
|
1011
|
-
{
|
|
1012
|
-
className: statusVariants({ status: selected == null ? void 0 : selected.status, className }),
|
|
1013
|
-
ref,
|
|
1014
|
-
...props,
|
|
1015
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(reactDropdownMenu.Root, { children: [
|
|
1016
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactDropdownMenu.Trigger, { className: "flex items-center gap-0.5 outline-none", children: [
|
|
1017
|
-
/* @__PURE__ */ jsxRuntime.jsx(Selected, { text: (selected == null ? void 0 : selected.text) || "" }),
|
|
1018
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineChevronDown, { "data-status": status, className: "-mr-0.5 size-2" })
|
|
1019
|
-
] }),
|
|
1020
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1021
|
-
DropdownContent,
|
|
1022
|
-
{
|
|
1023
|
-
selected: selected == null ? void 0 : selected.value,
|
|
1024
|
-
options,
|
|
1025
|
-
onChange,
|
|
1026
|
-
className: "-ml-1 mt-0.5"
|
|
1027
|
-
}
|
|
1028
|
-
)
|
|
1029
|
-
] })
|
|
1030
|
-
}
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
);
|
|
1034
|
-
var Status = {
|
|
1035
|
-
Menu: StatusMenu,
|
|
1036
|
-
...StatusSimple
|
|
1037
|
-
};
|
|
1038
|
-
var status_default = Status;
|
|
1039
|
-
var progressVariants = ce({
|
|
1040
|
-
base: "text-midnight-blue-600",
|
|
1041
|
-
variants: {
|
|
1042
|
-
bg: {
|
|
1043
|
-
indigo: "bg-midnight-blue-100",
|
|
1044
|
-
white: "bg-white to-white"
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
var Indicator3 = React4__namespace.default.forwardRef(
|
|
1049
|
-
({ className, bg, value, withBar, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1050
|
-
"div",
|
|
1051
|
-
{
|
|
1052
|
-
className: cn(
|
|
1053
|
-
progressVariants({ bg, className }),
|
|
1054
|
-
"flex h-3 flex-col items-center justify-center rounded-full px-1"
|
|
1055
|
-
),
|
|
1056
|
-
ref,
|
|
1057
|
-
...props,
|
|
1058
|
-
children: [
|
|
1059
|
-
/* @__PURE__ */ jsxRuntime.jsxs(text_default, { size: "overline", weight: "medium", children: [
|
|
1060
|
-
value,
|
|
1061
|
-
"%"
|
|
1062
|
-
] }),
|
|
1063
|
-
withBar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1064
|
-
progress_bar_default,
|
|
1065
|
-
{
|
|
1066
|
-
barBg: bg === "indigo" ? "bg-white" : "bg-midnight-blue-100",
|
|
1067
|
-
progressBg: "bg-midnight-blue-600",
|
|
1068
|
-
value,
|
|
1069
|
-
className: "h-0.25 mb-0.5"
|
|
1070
|
-
}
|
|
1071
|
-
)
|
|
1072
|
-
]
|
|
1073
|
-
}
|
|
1074
|
-
)
|
|
1075
|
-
);
|
|
1076
|
-
var Circle = React4__namespace.default.forwardRef(
|
|
1077
|
-
({ className, bg, value, Icon, ...props }, ref) => {
|
|
1078
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1079
|
-
RadixProgress__namespace.Root,
|
|
1080
|
-
{
|
|
1081
|
-
ref,
|
|
1082
|
-
className: cn(
|
|
1083
|
-
progressVariants({ bg }),
|
|
1084
|
-
`text-midnight-blue-600 [&_svg]:fill-midnight-blue-600 [&_path]:fill-midnight-blue-600 relative flex size-6 items-center justify-center rounded-full`,
|
|
1085
|
-
`bg-[conic-gradient(var(--tw-gradient-stops))] from-midnight-blue-600 to-midnight-blue-100 p-0.5`,
|
|
1086
|
-
className
|
|
1087
|
-
),
|
|
1088
|
-
...props,
|
|
1089
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1090
|
-
"div",
|
|
1091
|
-
{
|
|
1092
|
-
className: cn(
|
|
1093
|
-
progressVariants({ bg }),
|
|
1094
|
-
"flex size-full items-center justify-center rounded-full"
|
|
1095
|
-
),
|
|
1096
|
-
children: Icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-3" }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-end", children: [
|
|
1097
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { weight: "medium", children: value }),
|
|
1098
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "overline", weight: "medium", children: "%" })
|
|
1099
|
-
] })
|
|
1100
|
-
}
|
|
1101
|
-
)
|
|
1102
|
-
}
|
|
1103
|
-
);
|
|
1104
|
-
}
|
|
1105
|
-
);
|
|
1106
|
-
var Expanded = React4__namespace.default.forwardRef(
|
|
1107
|
-
({ className, bg, value, text, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1108
|
-
"div",
|
|
1109
|
-
{
|
|
1110
|
-
"data-bg": bg,
|
|
1111
|
-
className: cn(
|
|
1112
|
-
progressVariants({ bg, className }),
|
|
1113
|
-
`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
1114
|
-
p-2 data-[bg=white]:border`
|
|
1115
|
-
),
|
|
1116
|
-
ref,
|
|
1117
|
-
...props,
|
|
1118
|
-
children: [
|
|
1119
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-1", children: [
|
|
1120
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { weight: "normal", children: text }),
|
|
1121
|
-
/* @__PURE__ */ jsxRuntime.jsx(Indicator3, { value, bg: bg === "white" ? "indigo" : "white" })
|
|
1122
|
-
] }),
|
|
1123
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1124
|
-
progress_bar_default,
|
|
1125
|
-
{
|
|
1126
|
-
barBg: bg === "indigo" ? "bg-white" : "bg-midnight-blue-100",
|
|
1127
|
-
progressBg: "bg-midnight-blue-600",
|
|
1128
|
-
value,
|
|
1129
|
-
className: "h-1"
|
|
1130
|
-
}
|
|
1131
|
-
)
|
|
1132
|
-
]
|
|
1133
|
-
}
|
|
1134
|
-
)
|
|
1135
|
-
);
|
|
1136
|
-
var Progress = {
|
|
1137
|
-
Indicator: Indicator3,
|
|
1138
|
-
Circle,
|
|
1139
|
-
Expanded
|
|
1140
|
-
};
|
|
1141
|
-
var progress_default = Progress;
|
|
1142
|
-
var chipsVariants = ce({
|
|
1143
|
-
variants: {
|
|
1144
|
-
size: {
|
|
1145
|
-
small: {
|
|
1146
|
-
container: "h-3",
|
|
1147
|
-
icon: "size-2"
|
|
1148
|
-
},
|
|
1149
|
-
medium: {
|
|
1150
|
-
container: "h-4",
|
|
1151
|
-
icon: "size-3"
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
border: {
|
|
1155
|
-
true: {
|
|
1156
|
-
container: "border border-neutral-200 text-neutral-500",
|
|
1157
|
-
icon: "fill-neutral-400 [&_path]:fill-neutral-400"
|
|
1158
|
-
},
|
|
1159
|
-
false: {
|
|
1160
|
-
container: "bg-indigo-100 text-indigo-600",
|
|
1161
|
-
icon: "fill-indigo-600 [&_path]:fill-indigo-600"
|
|
1162
|
-
}
|
|
1163
|
-
},
|
|
1164
|
-
active: {
|
|
1165
|
-
true: {
|
|
1166
|
-
container: "bg-indigo-600 text-white hover:bg-indigo-900",
|
|
1167
|
-
icon: "fill-white [&_path]:fill-white"
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
|
-
slots: {
|
|
1172
|
-
container: "group flex items-center rounded-full px-1 hover:border-0 hover:bg-indigo-600 hover:font-medium hover:text-white",
|
|
1173
|
-
icon: "group-hover:[&_path]:fill-white group-hover:[&_svg]:fill-white"
|
|
1174
|
-
},
|
|
1175
|
-
defaultVariants: {
|
|
1176
|
-
size: "medium",
|
|
1177
|
-
border: false,
|
|
1178
|
-
active: false
|
|
1179
|
-
}
|
|
1180
|
-
});
|
|
1181
|
-
var Chips = React4__namespace.default.forwardRef(
|
|
1182
|
-
({
|
|
1183
|
-
className,
|
|
1184
|
-
size,
|
|
1185
|
-
icon: Icon,
|
|
1186
|
-
text,
|
|
1187
|
-
asChild,
|
|
1188
|
-
value,
|
|
1189
|
-
border,
|
|
1190
|
-
active,
|
|
1191
|
-
onClose,
|
|
1192
|
-
...props
|
|
1193
|
-
}, ref) => {
|
|
1194
|
-
const Comp = asChild ? reactSlot.Slot : "div";
|
|
1195
|
-
const slots = chipsVariants();
|
|
1196
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1197
|
-
Comp,
|
|
1198
|
-
{
|
|
1199
|
-
className: slots.container({ size, border, active, className }),
|
|
1200
|
-
ref,
|
|
1201
|
-
...props,
|
|
1202
|
-
children: [
|
|
1203
|
-
Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: slots.icon({ size, border, active }) }),
|
|
1204
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "base", weight: "normal", className: "mx-1", children: text }),
|
|
1205
|
-
onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1206
|
-
icons.IconOutlineClose,
|
|
1207
|
-
{
|
|
1208
|
-
onClick: () => onClose(value),
|
|
1209
|
-
className: cn(
|
|
1210
|
-
slots.icon({ size, border, active }),
|
|
1211
|
-
"cursor-pointer"
|
|
1212
|
-
)
|
|
1213
|
-
}
|
|
1214
|
-
)
|
|
1215
|
-
]
|
|
1216
|
-
}
|
|
1217
|
-
);
|
|
1218
|
-
}
|
|
1219
|
-
);
|
|
1220
|
-
Chips.displayName = "Chips";
|
|
1221
|
-
var chips_default = Chips;
|
|
1222
|
-
var labelVariants = ce({
|
|
1223
|
-
base: "text-navy-600 text-base font-medium",
|
|
1224
|
-
variants: {
|
|
1225
|
-
invalid: {
|
|
1226
|
-
true: "text-notification-critical-600"
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
});
|
|
1230
|
-
var Label = ({
|
|
1231
|
-
className,
|
|
1232
|
-
text,
|
|
1233
|
-
suffix: Suffix,
|
|
1234
|
-
invalid,
|
|
1235
|
-
htmlFor,
|
|
1236
|
-
...props
|
|
1237
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1238
|
-
"div",
|
|
1239
|
-
{
|
|
1240
|
-
className: cn("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2", className),
|
|
1241
|
-
...props,
|
|
1242
|
-
children: [
|
|
1243
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: labelVariants({ invalid }), htmlFor, children: text }),
|
|
1244
|
-
Suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, {})
|
|
1245
|
-
]
|
|
1246
|
-
}
|
|
1247
|
-
);
|
|
1248
|
-
Label.displayName = "Label";
|
|
1249
|
-
var label_default = Label;
|
|
1250
|
-
var inputDescriptionVariants = ce({
|
|
1251
|
-
variants: {
|
|
1252
|
-
invalid: {
|
|
1253
|
-
true: {
|
|
1254
|
-
text: "text-notification-critical-600"
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
},
|
|
1258
|
-
slots: {
|
|
1259
|
-
text: "text-sm text-neutral-500",
|
|
1260
|
-
counter: "py-0.25 flex h-[20px] items-center rounded-full bg-neutral-100 px-0.5 text-neutral-500"
|
|
1261
|
-
}
|
|
1262
|
-
});
|
|
1263
|
-
var InputDescription = ({
|
|
1264
|
-
className,
|
|
1265
|
-
text,
|
|
1266
|
-
counter,
|
|
1267
|
-
maxLength,
|
|
1268
|
-
invalid,
|
|
1269
|
-
valueLength,
|
|
1270
|
-
...props
|
|
1271
|
-
}) => {
|
|
1272
|
-
const slots = inputDescriptionVariants();
|
|
1273
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mt-0.5 flex justify-between", className), ...props, children: [
|
|
1274
|
-
text && /* @__PURE__ */ jsxRuntime.jsx("span", { className: slots.text({ invalid }), children: text }),
|
|
1275
|
-
counter && maxLength && /* @__PURE__ */ jsxRuntime.jsx("div", { className: slots.counter(), children: /* @__PURE__ */ jsxRuntime.jsxs(text_default, { size: "overline", weight: "semibold", children: [
|
|
1276
|
-
valueLength || 0,
|
|
1277
|
-
"/",
|
|
1278
|
-
maxLength
|
|
1279
|
-
] }) })
|
|
1280
|
-
] });
|
|
1281
|
-
};
|
|
1282
|
-
InputDescription.displayName = "InputDescription";
|
|
1283
|
-
var input_description_default = InputDescription;
|
|
1284
|
-
var FormItem = ({
|
|
1285
|
-
id,
|
|
1286
|
-
className,
|
|
1287
|
-
label,
|
|
1288
|
-
description,
|
|
1289
|
-
errorMessage,
|
|
1290
|
-
invalid,
|
|
1291
|
-
children,
|
|
1292
|
-
disabled,
|
|
1293
|
-
value,
|
|
1294
|
-
maxLength,
|
|
1295
|
-
...props
|
|
1296
|
-
}) => {
|
|
1297
|
-
const descriptionText = errorMessage || description.text;
|
|
1298
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col", className), ...props, children: [
|
|
1299
|
-
/* @__PURE__ */ jsxRuntime.jsx(label_default, { ...label, invalid, htmlFor: id }),
|
|
1300
|
-
React4__namespace.default.cloneElement(children, {
|
|
1301
|
-
id,
|
|
1302
|
-
invalid,
|
|
1303
|
-
disabled,
|
|
1304
|
-
value
|
|
1305
|
-
}),
|
|
1306
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1307
|
-
input_description_default,
|
|
1308
|
-
{
|
|
1309
|
-
...description,
|
|
1310
|
-
text: descriptionText,
|
|
1311
|
-
invalid,
|
|
1312
|
-
maxLength,
|
|
1313
|
-
valueLength: value == null ? void 0 : value.length
|
|
1314
|
-
}
|
|
1315
|
-
)
|
|
1316
|
-
] });
|
|
1317
|
-
};
|
|
1318
|
-
var form_item_default = FormItem;
|
|
1319
|
-
var checkboxVariants = ce({
|
|
1320
|
-
variants: {
|
|
1321
|
-
checked: {
|
|
1322
|
-
false: {
|
|
1323
|
-
checkbox: "hover:border-primary border-neutral-400 bg-white hover:bg-green-100"
|
|
1324
|
-
},
|
|
1325
|
-
indeterminate: {}
|
|
1326
|
-
},
|
|
1327
|
-
disabled: {
|
|
1328
|
-
true: {
|
|
1329
|
-
checkbox: "disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100",
|
|
1330
|
-
icon: "fill-neutral-300 [&_path]:fill-neutral-300 [&_rect]:fill-neutral-300"
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
},
|
|
1334
|
-
slots: {
|
|
1335
|
-
checkbox: "bg-primary border-primary focus-visible:rind-0 peer size-[20px] shrink-0 rounded-md border-2 text-white focus-visible:outline-none",
|
|
1336
|
-
icon: "size-2 fill-white [&_path]:fill-white [&_rect]:fill-white"
|
|
1337
|
-
}
|
|
1338
|
-
});
|
|
1339
|
-
var Checkbox = React4__namespace.default.forwardRef(({ className, checked, defaultChecked, disabled, ...props }, ref) => {
|
|
1340
|
-
const slots = checkboxVariants();
|
|
1341
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-3 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1342
|
-
reactCheckbox.Root,
|
|
1343
|
-
{
|
|
1344
|
-
ref,
|
|
1345
|
-
className: cn(slots.checkbox({ checked, disabled }), className),
|
|
1346
|
-
checked,
|
|
1347
|
-
defaultChecked,
|
|
1348
|
-
disabled,
|
|
1349
|
-
...props,
|
|
1350
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "-ml-0.5 -mt-0.5 flex size-3 items-center justify-center", children: [
|
|
1351
|
-
(checked === "indeterminate" || defaultChecked === "indeterminate") && /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineLine, { className: slots.icon({ disabled }) }),
|
|
1352
|
-
(checked === true || defaultChecked === true) && /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineCheck, { className: slots.icon({ disabled }) })
|
|
1353
|
-
] })
|
|
1354
|
-
}
|
|
1355
|
-
) });
|
|
1356
|
-
});
|
|
1357
|
-
Checkbox.displayName = reactCheckbox.Root.displayName;
|
|
1358
|
-
var checkbox_default = Checkbox;
|
|
1359
|
-
var Group2 = React4__namespace.default.forwardRef(({ className, disabled, ...props }, ref) => {
|
|
1360
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
|
-
RadioGroupPrimitive__namespace.Root,
|
|
1362
|
-
{
|
|
1363
|
-
className: cn("grid gap-1", className),
|
|
1364
|
-
disabled,
|
|
1365
|
-
...props,
|
|
1366
|
-
ref
|
|
1367
|
-
}
|
|
1368
|
-
);
|
|
1369
|
-
});
|
|
1370
|
-
Group2.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
1371
|
-
var Item6 = React4__namespace.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1372
|
-
RadioGroupPrimitive__namespace.Item,
|
|
1373
|
-
{
|
|
1374
|
-
ref,
|
|
1375
|
-
className: cn(
|
|
1376
|
-
"group aspect-square size-[20px] rounded-full border-2 border-neutral-400 bg-white hover:border-green-600 hover:bg-green-100 focus:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100 [&:not(:disabled)]:data-[state=checked]:border-green-600",
|
|
1377
|
-
className
|
|
1378
|
-
),
|
|
1379
|
-
...props,
|
|
1380
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className: "text-primary flex items-center justify-center group-disabled:text-neutral-300", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "fill-primary size-[12px] group-disabled:fill-neutral-300" }) })
|
|
1381
|
-
}
|
|
1382
|
-
));
|
|
1383
|
-
Item6.displayName = RadioGroupPrimitive__namespace.Item.displayName;
|
|
1384
|
-
var Radio = {
|
|
1385
|
-
Group: Group2,
|
|
1386
|
-
Item: Item6
|
|
1387
|
-
};
|
|
1388
|
-
var radio_default = Radio;
|
|
1389
|
-
var searchVariants = ce({
|
|
1390
|
-
base: "flex items-center justify-center rounded-full",
|
|
1391
|
-
variants: {
|
|
1392
|
-
size: {
|
|
1393
|
-
small: {
|
|
1394
|
-
trigger: "my-0.5",
|
|
1395
|
-
dropdown: "mt-0.5"
|
|
1396
|
-
},
|
|
1397
|
-
medium: {
|
|
1398
|
-
trigger: "my-1",
|
|
1399
|
-
dropdown: "mt-1"
|
|
1400
|
-
}
|
|
1401
|
-
},
|
|
1402
|
-
disabled: {
|
|
1403
|
-
true: {
|
|
1404
|
-
container: "cursor-not-allowed border-neutral-200",
|
|
1405
|
-
input: "bg-white text-neutral-300",
|
|
1406
|
-
trigger: "cursor-not-allowed text-neutral-300 [&_path]:fill-neutral-300"
|
|
1407
|
-
},
|
|
1408
|
-
false: {
|
|
1409
|
-
container: "focus-within:border-indigo-600 hover:border-indigo-600"
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
},
|
|
1413
|
-
slots: {
|
|
1414
|
-
input: "data-[scope=false]hover:bg-indigo-100 pointer-events-auto border-0 bg-white pr-5",
|
|
1415
|
-
trigger: "br-neutral-100 border-r-1 flex w-fit items-center gap-0.5 border border-y-0 border-l-0 border-neutral-100 bg-white pl-2 pr-1 text-indigo-600 focus-visible:outline-none [&_svg]:fill-indigo-600",
|
|
1416
|
-
dropdown: "",
|
|
1417
|
-
container: "rounded-m flex border border-neutral-200 "
|
|
1418
|
-
},
|
|
1419
|
-
defaultVariants: {
|
|
1420
|
-
size: "medium"
|
|
1421
|
-
}
|
|
1422
|
-
});
|
|
1423
|
-
var Search = React4__namespace.forwardRef(
|
|
1424
|
-
({ className, disabled, invalid, size, value, onChange, scope, ...props }, ref) => {
|
|
1425
|
-
const slotsInput = inputVariants();
|
|
1426
|
-
const slotsSearch = searchVariants();
|
|
1427
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: slotsSearch.container({ disabled }), children: [
|
|
1428
|
-
scope && /* @__PURE__ */ jsxRuntime.jsx(ScopeSelect, { disabled, scope, size }),
|
|
1429
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "peer relative", children: [
|
|
1430
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1431
|
-
"input",
|
|
1432
|
-
{
|
|
1433
|
-
value,
|
|
1434
|
-
onChange,
|
|
1435
|
-
disabled,
|
|
1436
|
-
"data-scoped": !!scope,
|
|
1437
|
-
className: cn(
|
|
1438
|
-
slotsInput.input({ disabled, invalid, size }),
|
|
1439
|
-
slotsSearch.input(),
|
|
1440
|
-
className
|
|
1441
|
-
),
|
|
1442
|
-
ref,
|
|
1443
|
-
...props
|
|
1444
|
-
}
|
|
1445
|
-
),
|
|
1446
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1447
|
-
"div",
|
|
1448
|
-
{
|
|
1449
|
-
"data-hasValue": !!value,
|
|
1450
|
-
className: `data-[hasValue=true]:cursor-pointer ${slotsInput.suffixIcon({ size, disabled })}`,
|
|
1451
|
-
children: value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1452
|
-
icons.IconOutlineClose,
|
|
1453
|
-
{
|
|
1454
|
-
onClick: () => onChange && onChange({
|
|
1455
|
-
target: { value: "" }
|
|
1456
|
-
})
|
|
1457
|
-
}
|
|
1458
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineSearch, {})
|
|
1459
|
-
}
|
|
1460
|
-
)
|
|
1461
|
-
] })
|
|
1462
|
-
] });
|
|
1463
|
-
}
|
|
1464
|
-
);
|
|
1465
|
-
var ScopeSelect = ({
|
|
1466
|
-
scope: { selected, options, onChange },
|
|
1467
|
-
disabled,
|
|
1468
|
-
size
|
|
1469
|
-
}) => {
|
|
1470
|
-
const selectedOption = options.find(({ value }) => value === selected);
|
|
1471
|
-
const slotsSearch = searchVariants();
|
|
1472
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactDropdownMenu.Root, { children: [
|
|
1473
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1474
|
-
reactDropdownMenu.Trigger,
|
|
1475
|
-
{
|
|
1476
|
-
className: slotsSearch.trigger({ size, disabled }),
|
|
1477
|
-
disabled,
|
|
1478
|
-
children: [
|
|
1479
|
-
/* @__PURE__ */ jsxRuntime.jsx(text_default, { size: "small", weight: "medium", children: selectedOption == null ? void 0 : selectedOption.text }),
|
|
1480
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.IconOutlineChevronDown, { className: "-mr-0.5 size-3" })
|
|
1481
|
-
]
|
|
1482
|
-
}
|
|
1483
|
-
),
|
|
1484
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1485
|
-
DropdownContent,
|
|
1486
|
-
{
|
|
1487
|
-
selected,
|
|
1488
|
-
options,
|
|
1489
|
-
onChange,
|
|
1490
|
-
className: slotsSearch.dropdown({ size })
|
|
1491
|
-
}
|
|
1492
|
-
)
|
|
1493
|
-
] });
|
|
1494
|
-
};
|
|
1495
|
-
Search.displayName = "Search";
|
|
1496
|
-
var search_default = Search;
|
|
41
|
+
var st=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,N=t=>!t||typeof t!="object"||Object.keys(t).length===0,Vt=(t,o)=>JSON.stringify(t)===JSON.stringify(o);function At(t,o){t.forEach(function(e){Array.isArray(e)?At(e,o):o.push(e);});}function lt(t){let o=[];return At(t,o),o}var ct=(...t)=>lt(t).filter(Boolean),pt=(t,o)=>{let e={},r=Object.keys(t),i=Object.keys(o);for(let a of r)if(i.includes(a)){let n=t[a],l=o[a];typeof n=="object"&&typeof l=="object"?e[a]=pt(n,l):Array.isArray(n)||Array.isArray(l)?e[a]=ct(l,n):e[a]=l+" "+n;}else e[a]=t[a];for(let a of i)r.includes(a)||(e[a]=o[a]);return e},dt=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();var Ve={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Mt=t=>t||void 0,j=(...t)=>Mt(lt(t).filter(Boolean).join(" ")),ft=null,A={},mt=!1,B=(...t)=>o=>o.twMerge?((!ft||mt)&&(mt=!1,ft=N(A)?tailwindMerge.twMerge:tailwindMerge.extendTailwindMerge({...A,extend:{theme:A.theme,classGroups:A.classGroups,conflictingClassGroupModifiers:A.conflictingClassGroupModifiers,conflictingClassGroups:A.conflictingClassGroups,...A.extend}})),Mt(ft(j(t)))):j(t),It=(t,o)=>{for(let e in o)t.hasOwnProperty(e)?t[e]=j(t[e],o[e]):t[e]=o[e];return t},f=(t,o)=>{let{extend:e=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:n=[],defaultVariants:l={}}=t,c={...Ve,...o},P=e!=null&&e.base?j(e.base,t==null?void 0:t.base):t==null?void 0:t.base,h=e!=null&&e.variants&&!N(e.variants)?pt(i,e.variants):i,M=e!=null&&e.defaultVariants&&!N(e.defaultVariants)?{...e.defaultVariants,...l}:l;!N(c.twMergeConfig)&&!Vt(c.twMergeConfig,A)&&(mt=!0,A=c.twMergeConfig);let L=N(e==null?void 0:e.slots),it=N(r)?{}:{base:j(t==null?void 0:t.base,L&&(e==null?void 0:e.base)),...r},k=L?it:It({...e==null?void 0:e.slots},N(it)?{base:t==null?void 0:t.base}:it),G=N(e==null?void 0:e.compoundVariants)?a:ct(e==null?void 0:e.compoundVariants,a),V=R=>{if(N(h)&&N(r)&&L)return B(P,R==null?void 0:R.class,R==null?void 0:R.className)(c);if(G&&!Array.isArray(G))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof G}`);if(n&&!Array.isArray(n))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof n}`);let xe=(p,m,d=[],g)=>{let u=d;if(typeof m=="string")u=u.concat(dt(m).split(" ").map(x=>`${p}:${x}`));else if(Array.isArray(m))u=u.concat(m.reduce((x,y)=>x.concat(`${p}:${y}`),[]));else if(typeof m=="object"&&typeof g=="string"){for(let x in m)if(m.hasOwnProperty(x)&&x===g){let y=m[x];if(y&&typeof y=="string"){let w=dt(y);u[g]?u[g]=u[g].concat(w.split(" ").map(T=>`${p}:${T}`)):u[g]=w.split(" ").map(T=>`${p}:${T}`);}else Array.isArray(y)&&y.length>0&&(u[g]=y.reduce((w,T)=>w.concat(`${p}:${T}`),[]));}}return u},Pt=(p,m=h,d=null,g=null)=>{var u;let x=m[p];if(!x||N(x))return null;let y=(u=g==null?void 0:g[p])!=null?u:R==null?void 0:R[p];if(y===null)return null;let w=st(y),T=Array.isArray(c.responsiveVariants)&&c.responsiveVariants.length>0||c.responsiveVariants===!0,O=M==null?void 0:M[p],E=[];if(typeof w=="object"&&T)for(let[nt,Ct]of Object.entries(w)){let Te=x[Ct];if(nt==="initial"){O=Ct;continue}Array.isArray(c.responsiveVariants)&&!c.responsiveVariants.includes(nt)||(E=xe(nt,Te,E,d));}let Re=w!=null&&typeof w!="object"?w:st(O),at=x[Re||"false"];return typeof E=="object"&&typeof d=="string"&&E[d]?It(E,at):E.length>0?(E.push(at),E):at},he=()=>h?Object.keys(h).map(p=>Pt(p,h)):null,ye=(p,m)=>{if(!h||typeof h!="object")return null;let d=new Array;for(let g in h){let u=Pt(g,h,p,m),x=p==="base"&&typeof u=="string"?u:u&&u[p];x&&(d[d.length]=x);}return d},Rt={};for(let p in R)R[p]!==void 0&&(Rt[p]=R[p]);let Tt=(p,m)=>{var d;let g=typeof(R==null?void 0:R[p])=="object"?{[p]:(d=R[p])==null?void 0:d.initial}:{};return {...M,...Rt,...g,...m}},Nt=(p=[],m)=>{let d=[];for(let{class:g,className:u,...x}of p){let y=!0;for(let[w,T]of Object.entries(x)){let O=Tt(w,m);if(Array.isArray(T)){if(!T.includes(O[w])){y=!1;break}}else if(O[w]!==T){y=!1;break}}y&&(g&&d.push(g),u&&d.push(u));}return d},we=p=>{let m=Nt(G,p);if(!Array.isArray(m))return m;let d={};for(let g of m)if(typeof g=="string"&&(d.base=B(d.base,g)(c)),typeof g=="object")for(let[u,x]of Object.entries(g))d[u]=B(d[u],x)(c);return d},Pe=p=>{if(n.length<1)return null;let m={};for(let{slots:d=[],class:g,className:u,...x}of n){if(!N(x)){let y=!0;for(let w of Object.keys(x)){let T=Tt(w,p)[w];if(T===void 0||(Array.isArray(x[w])?!x[w].includes(T):x[w]!==T)){y=!1;break}}if(!y)continue}for(let y of d)m[y]=m[y]||[],m[y].push([g,u]);}return m};if(!N(r)||!L){let p={};if(typeof k=="object"&&!N(k))for(let m of Object.keys(k))p[m]=d=>{var g,u;return B(k[m],ye(m,d),((g=we(d))!=null?g:[])[m],((u=Pe(d))!=null?u:[])[m],d==null?void 0:d.class,d==null?void 0:d.className)(c)};return p}return B(P,he(),Nt(G),R==null?void 0:R.class,R==null?void 0:R.className)(c)},ve=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return V.variantKeys=ve(),V.extend=e,V.base=P,V.slots=k,V.variants=h,V.defaultVariants=M,V.compoundSlots=n,V.compoundVariants=G,V};var Me=f({base:"flex items-center justify-center rounded-full",variants:{color:{default:"bg-neutral-100",indigo:"bg-indigo-600"},type:{icon:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500",capitals:"font-semibold text-neutral-500",image:"[&_img]:rounded-full"},size:{small:"size-4",medium:"size-5",large:"size-7"}},compoundVariants:[{size:"large",type:["capitals","icon"],className:"text-xl [&_svg]:size-5"},{size:"medium",type:["capitals","icon"],className:"text-lg [&_svg]:size-3"},{size:"small",type:["capitals","icon"],className:"text-base [&_svg]:size-2"},{color:"indigo",type:["capitals","icon"],className:"text-white [&_path]:fill-white [&_svg]:fill-white"}],defaultVariants:{color:"default"}}),Lt=Z__namespace.default.forwardRef(({className:t,color:o,type:e,size:r,children:i,asChild:a,...n},l)=>jsxRuntime.jsx(a?reactSlot.Slot:"div",{className:Me({color:o,type:e,size:r,className:t}),ref:l,...n,children:i}));Lt.displayName="Avatar";var Le=Lt;function s(...t){return tailwindMerge.twMerge(clsx.clsx(t))}var Se=f({base:"",variants:{size:{H1:"text-3xl",H2:"text-2xl",H3:"text-xl",large:"text-lg",base:"text-base",small:"text-sm",overline:"text-xs uppercase"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold"}},defaultVariants:{size:"base",weight:"normal"}}),Et=({className:t,size:o,weight:e,children:r,...i})=>jsxRuntime.jsx("span",{className:s(Se({size:o,weight:e,className:t})),...i,children:r});Et.displayName="Text";var v=Et;var ke=f({base:"flex items-center justify-center rounded-full",variants:{contrast:{true:"",false:""},status:{info:"bg-notification-information-100 text-notification-information-600",attention:"bg-notification-warning-100 text-notification-warning-900",white:"text-notification-information-600 bg-white"},size:{small:"h-2",normal:"h-3"},type:{pill:"w-fit px-1",dot:""}},compoundVariants:[{status:"info",contrast:!0,class:"bg-notification-information-600 text-white"},{status:"attention",contrast:!0,class:"bg-notification-warning-600"},{type:"dot",size:"small",class:"w-2"},{type:"dot",size:"normal",class:"w-3"}],defaultVariants:{status:"info",size:"normal",type:"pill"}}),zt=Z__namespace.default.forwardRef(({className:t,status:o,size:e,type:r,contrast:i,children:a,asChild:n,...l},c)=>jsxRuntime.jsx(n?reactSlot.Slot:"span",{className:ke({status:o,size:e,type:r,contrast:i,className:t}),ref:c,...l,children:jsxRuntime.jsx(v,{size:"overline",weight:"semibold",children:a})}));zt.displayName="Badge";var Oe=zt;var Fe=f({variants:{appearance:{primary:{container:"bg-primary hover:bg-green-900 ",text:"text-white",icon:"fill-white [&_path]:fill-white"},secondary:{container:"border border-green-600 bg-white hover:bg-green-100 ",text:"text-green-600",icon:"fill-green-600 [&_path]:fill-green-600"},tertiary:{container:"border border-indigo-600 bg-white hover:bg-indigo-100 ",text:"text-indigo-600",icon:"fill-indigo-600 [&_path]:fill-indigo-600"},danger:{container:"border-notification-critical-600 hover:bg-notification-critical-600 group/danger border bg-white",text:"text-notification-critical-600 group-hover/danger:text-white",icon:"fill-notification-critical-600 [&_path]:fill-notification-critical-600 group-hover/danger:fill-white group-hover/danger:[&_path]:fill-white"},link:{container:"bg-white hover:bg-green-100 ",text:"text-green-600",icon:"fill-green-600 [&_path]:fill-green-600"},table:{container:"bg-white hover:bg-neutral-100 ",text:"text-neutral-400",icon:"fill-neutral-400 [&_path]:fill-neutral-400"}},size:{medium:{container:"h-5",icon:"text-base"},small:{container:"h-4",text:"mx-1 text-sm",icon:"group-data-[has-text=true]:ml-0"}},disabled:{true:{container:"pointer-events-none cursor-not-allowed border-neutral-200 bg-neutral-100",text:"text-neutral-300",icon:"fill-neutral-300 [&_path]:fill-neutral-300"},false:""}},slots:{container:"group inline-flex items-center justify-center rounded-md p-1 focus:outline-none focus:ring-0 data-[has-icon=true]:gap-1",icon:"size-3 group-data-[has-text=true]:ml-1",text:"mx-2 group-data-[has-icon=true]:ml-0"},defaultVariants:{appearance:"primary",size:"medium"}}),_t=Z__namespace.default.forwardRef(({className:t,appearance:o,size:e,disabled:r,children:i,asChild:a,icon:n,...l},c)=>{let P=a?reactSlot.Slot:"button",h=Fe({appearance:o,size:e,disabled:r,className:t});return jsxRuntime.jsxs(P,{"data-has-icon":!!n,"data-has-text":!!i,className:h.container(),ref:c,...l,children:[n&&jsxRuntime.jsx(n,{className:h.icon()}),i&&jsxRuntime.jsx(v,{size:"base",weight:"medium",className:h.text(),children:i})]})});_t.displayName="Button";var We=_t;var Je=f({base:"flex w-full border border-gray-200 bg-white p-2",variants:{variant:{default:"rounded-m",big:"rounded-x",small:"rounded-s"},direction:{col:"flex-col",row:"flex-row"},padding:{none:"p-0",small:"p-1",medium:"p-2",big:"p-3"}},defaultVariants:{variant:"default",direction:"col",padding:"none"}}),Dt=({className:t,variant:o,direction:e,padding:r,children:i,...a})=>jsxRuntime.jsx("div",{className:s(Je({variant:o,direction:e,padding:r,className:t})),...a,children:i});Dt.displayName="Card";var Ze=Dt;var Ke=f({variants:{variant:{default:"",light:"",green:"",red:""},size:{default:{container:"h-5"},small:{container:"h-4",text:"text-sm"}},disabled:{true:{container:"cursor-initial border-neutral-200 bg-neutral-100 text-neutral-300",icon:"[&_path]:fill-neutral-300 [&_svg]:fill-neutral-300"},false:{container:"border-neutral-200 text-neutral-500 hover:bg-neutral-100",icon:"[&_path]:fill-neutral-500 [&_svg]:fill-neutral-500"}}},compoundVariants:[{disabled:!1,variant:"default",class:{container:"data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-600",text:"group-data-[state=on]:text-white",icon:"group-data-[state=on]:fill-white [&_path]:group-data-[state=on]:fill-white"}},{disabled:!1,variant:"light",class:{container:"data-[state=on]:border-indigo-600 data-[state=on]:bg-indigo-100",text:"group-data-[state=on]:text-indigo-600",icon:"group-data-[state=on]:fill-indigo-600 [&_path]:group-data-[state=on]:fill-indigo-600"}},{disabled:!1,variant:"green",class:{container:"data-[state=on]:border-notification-success-600 data-[state=on]:bg-notification-success-100",text:"group-data-[state=on]:text-notification-success-600",icon:"group-data-[state=on]:fill-notification-success-600 [&_path]:group-data-[state=on]:fill-notification-success-600"}},{disabled:!1,variant:"red",class:{container:"data-[state=on]:border-notification-critical-600 data-[state=on]:bg-notification-critical-100",text:"group-data-[state=on]:text-notification-critical-600",icon:"group-data-[state=on]:fill-notification-critical-600 [&_path]:group-data-[state=on]:fill-notification-critical-600"}}],slots:{container:"first:rounded-ss-m first:rounded-es-m last:rounded-se-m last:rounded-ee-m group flex items-center gap-1 border px-2 [&:nth-child(n+2)]:data-[state=off]:border-l-0",icon:"size-3",text:""},defaultVariants:{disabled:!1,variant:"default",size:"default"}}),Gt=Z__namespace.default.createContext({variant:"default",size:"default",disabled:!1}),kt=Z__namespace.default.forwardRef(({className:t,variant:o,children:e,size:r,disabled:i,...a},n)=>jsxRuntime.jsx(K__namespace.Root,{ref:n,className:s("flex items-center justify-center gap-0",t),...a,type:"single",children:jsxRuntime.jsx(Gt.Provider,{value:{variant:o,size:r,disabled:i},children:e})}));kt.displayName="ScopeGroup";var Ot=Z__namespace.default.forwardRef(({className:t,variant:o,size:e,icon:r,text:i,disabled:a,...n},l)=>{let c=Z__namespace.default.useContext(Gt),P=Ke({variant:c.variant||o,size:c.size||e,disabled:c.disabled||a});return jsxRuntime.jsxs(K__namespace.Item,{ref:l,className:s(P.container(),t),disabled:a,...n,children:[r&&jsxRuntime.jsx(r,{className:P.icon()}),jsxRuntime.jsx(v,{size:"base",weight:"normal",className:P.text(),children:i})]})});Ot.displayName="ScopeItem";var Ue={Group:kt,Item:Ot},Qe=Ue;var eo=({value:t,className:o,barBg:e,progressBg:r})=>{let i=`-translate-x-[(-${100-(t||0)}%])`;return jsxRuntime.jsx(te.Root,{className:s(o,e,"relative w-full overflow-hidden rounded-full "),value:t,children:jsxRuntime.jsx(te.Indicator,{className:s(o,"w-full flex-1 rounded-full",i,r)})})},U=eo;var W=f({variants:{disabled:{true:{input:"cursor-not-allowed bg-neutral-100 text-neutral-400",prefixIcon:"fill-neutral-300 [&_path]:fill-neutral-300",suffixIcon:"fill-neutral-300 [&_path]:fill-neutral-300"}},invalid:{true:{input:"border-notification-critical-600 focus:border-notification-critical-600"}},size:{medium:{prefixIcon:"top-1",suffixIcon:"top-1",input:"h-5"},small:{prefixIcon:"top-0.5",suffixIcon:"top-0.5",input:"h-4"}}},slots:{prefixIcon:"absolute left-1 top-1 size-3",input:"rounded-m flex w-full border border-neutral-200 p-1 text-base text-indigo-600 placeholder:font-light placeholder:text-neutral-400 focus:border-indigo-600 focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed data-[has-prefix-icon=true]:pl-5 data-[has-suffix-icon=true]:pr-5",suffixIcon:"absolute right-1 top-1 size-3"},defaultVariants:{size:"medium"}}),jt=Z__namespace.default.forwardRef(({className:t,prefixIcon:o,suffixIcon:e,disabled:r,invalid:i,size:a,...n},l)=>{let c=W();return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("div",{className:c.prefixIcon({invalid:i,size:a}),children:o&&jsxRuntime.jsx(o,{})}),jsxRuntime.jsx("input",{disabled:r,"data-has-prefix-icon":!!o,"data-has-suffix-icon":!!e,className:s(c.input({disabled:r,invalid:i,size:a}),t),ref:l,...n}),jsxRuntime.jsx("div",{className:c.suffixIcon({invalid:i,size:a}),children:e&&jsxRuntime.jsx(e,{})})]})});jt.displayName="Input";var ro=jt;var Wt=Z__namespace.forwardRef(({className:t,disabled:o,invalid:e,...r},i)=>{let{input:a}=W();return jsxRuntime.jsx("textarea",{className:s("min-h-9",t,a({disabled:o,invalid:e})),ref:i,...r})});Wt.displayName="Textarea";var ao=Wt;var $t=({title:t,children:o,isVisible:e,CloseIcon:r,maxWidth:i,onClose:a})=>{let[n,l]=Z.useState(e);Z.useEffect(()=>l(e),[e]);let c=P=>{l(!1),a&&a(P);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:s("fixed left-0 top-0 z-30 h-screen w-screen bg-black opacity-50",n?void 0:"hidden")}),jsxRuntime.jsxs("div",{className:s("shadow-big fixed right-0 top-0 z-40 h-screen overflow-y-auto overflow-x-hidden rounded-l-lg bg-white transition-transform dark:bg-gray-800",i?`max-w=[${i}]`:"max-w-3/4",n?void 0:"translate-x-full"),tabIndex:-1,"aria-labelledby":"drawer-label",children:[jsxRuntime.jsxs("div",{id:"drawer-label",className:s(" mb-2 flex items-center justify-between border-b-2 border-slate-100 p-2 text-base font-semibold text-gray-500 dark:text-gray-400"),children:[jsxRuntime.jsx(v,{size:"H3",weight:"semibold",className:"text-navy-600",children:t}),jsxRuntime.jsxs("button",{type:"button","data-drawer-hide":"drawer-example","aria-controls":"drawer-example",className:s("b-0 ml-2 flex size-9 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"),onClick:()=>c,children:[r?jsxRuntime.jsx(r,{}):jsxRuntime.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.70711 18.7071L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071ZM17.2929 18.7071L13.8201 15.2343C13.4296 14.8438 13.4296 14.2106 13.8201 13.8201C14.2106 13.4296 14.8438 13.4296 15.2343 13.8201L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071Z",fill:"#8D95A7"})}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close menu"})]})]}),jsxRuntime.jsx("div",{className:s(" relative h-full p-2"),children:o})]})]})};$t.displayName="Sheet";var co=$t;var mo=f({base:"after:start-0.25 after:top-0.25 peer relative mr-1 h-3 w-5 rounded-full bg-neutral-200 after:absolute after:size-[20px] after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-green-600 peer-checked:after:translate-x-2 peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-0",variants:{disabled:{true:"cursor-not-allowed bg-neutral-100 after:border-neutral-100 peer-checked:bg-green-100 peer-checked:after:border-green-100"}}}),Jt=Z.forwardRef(({className:t,name:o,disabled:e,children:r,...i},a)=>jsxRuntime.jsxs("label",{className:s("inline-flex cursor-pointer items-center",t),children:[jsxRuntime.jsx("input",{...i,ref:a,type:"checkbox",className:s("peer sr-only"),name:o,disabled:e}),jsxRuntime.jsx("span",{className:mo({disabled:e})}),jsxRuntime.jsx(v,{children:r})]}));Jt.displayName="Toggle";var uo=Jt;var vo=Z__namespace.forwardRef(({className:t,...o},e)=>jsxRuntime.jsx(C__namespace.Root,{ref:e,className:s("[&>:first-child>h3>button]:rounded-t-m [&>:last-child>h3[data-state=closed]>button]:rounded-b-m",t),...o})),Zt=Z__namespace.forwardRef(({className:t,...o},e)=>jsxRuntime.jsx(C__namespace.Item,{ref:e,className:s("first:rounded-t-m last:rounded-b-m border border-t-0 first:border-t",t),...o}));Zt.displayName="AccordionItem";var qt=Z__namespace.forwardRef(({className:t,children:o,triggerClassName:e,...r},i)=>jsxRuntime.jsx(C__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(C__namespace.Trigger,{ref:i,className:s("flex h-7 w-full items-center p-1 transition-all hover:bg-neutral-100 [&[data-disabled]]:cursor-not-allowed [&[data-disabled]]:bg-neutral-200 [&[data-disabled]]:text-neutral-400 [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:border-b",e),...r,children:[jsxRuntime.jsx("div",{className:s("w-full",t),children:o}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:"size-3 transition-transform duration-200"})]})}));qt.displayName=C__namespace.Trigger.displayName;var Kt=Z__namespace.forwardRef(({className:t,children:o,...e},r)=>jsxRuntime.jsx(C__namespace.Content,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden transition-all",...e,children:jsxRuntime.jsx("div",{className:s(t),children:o})}));Kt.displayName=C__namespace.Content.displayName;var X=vo;X.Item=Zt;X.Trigger=qt;X.Content=Kt;var xo=X;var To=f({base:"text-medium flex h-3 items-center justify-center rounded-sm border border-neutral-200 px-1 py-0.5 [&_svg]:-ml-0.5 [&_svg]:w-2",variants:{status:{positive:"text-notification-success-600 [&_svg]:fill-notification-success-600",negative:"text-notification-critical-600 [&_svg]:fill-notification-critical-600",neutral:"text-notification-warning-900 [&_svg]:fill-notification-warning-900",info:"border-indigo-600 text-indigo-600"}}}),No=Z__namespace.default.forwardRef(({className:t,status:o,value:e,icon:r,...i},a)=>{let n={positive:jsxRuntime.jsx(icons.IconOutlineArrowUp,{}),negative:jsxRuntime.jsx(icons.IconOutlineArrowDown,{}),neutral:jsxRuntime.jsx(icons.IconOutlineMinus,{})};return jsxRuntime.jsxs("div",{className:To({status:o,className:t}),ref:a,...i,children:[r&&n[r],jsxRuntime.jsxs(v,{size:"overline",weight:"semibold",children:[e,"%"]})]})}),Co=No;var Y=({options:t,selected:o,onChange:e,className:r})=>jsxRuntime.jsx(reactDropdownMenu.Portal,{children:jsxRuntime.jsx(reactDropdownMenu.Content,{align:"start",className:s("shadow-down data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 rounded-md border bg-white p-1",r),children:t.map(i=>jsxRuntime.jsx(reactDropdownMenu.Item,{"data-selected":o===i.value,className:`relative flex cursor-pointer select-none rounded-sm
|
|
42
|
+
px-2 py-1 text-base font-normal text-neutral-500 outline-none
|
|
43
|
+
transition-colors focus:bg-indigo-100 focus:text-indigo-600
|
|
44
|
+
data-[selected=true]:bg-indigo-100 data-[selected=true]:font-medium data-[selected=true]:text-indigo-600`,onClick:()=>e&&e(i.value),children:i.text}))})});var Xt=f({base:"text-medium flex items-center justify-center rounded-sm px-1 py-0.5",variants:{status:{success:["bg-notification-success-100","text-notification-success-600","[&_svg]:fill-notification-success-600 [&_span:nth-child(1)]:bg-notification-success-600"],attention:["bg-notification-warning-100","text-notification-warning-900","[&_svg]:fill-notification-warning-900 [&_span:nth-child(1)]:bg-notification-warning-900"],info:["bg-notification-information-100","text-notification-information-600","[&_svg]:fill-notification-information-600 [&_span:nth-child(1)]:bg-notification-information-600"],error:["bg-notification-critical-100","text-notification-critical-900","[&_svg]:fill-notification-critical-900 [&_span:nth-child(1)]:bg-notification-critical-900"],disabled:["bg-neutral-200 ","text-neutral-500","[&_span:nth-child(1)]:bg-neutral-500 [&_svg]:fill-neutral-500"]}}}),Yt=({text:t})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-0.5",children:[jsxRuntime.jsx("span",{className:"w-0.75 h-0.75 rounded-full bg-neutral-500"}),jsxRuntime.jsx(v,{size:"overline",weight:"semibold",className:"select-none",children:t})]}),Ho=Z__namespace.default.forwardRef(({className:t,status:o,text:e,...r},i)=>jsxRuntime.jsx("div",{className:Xt({status:o,className:t}),ref:i,...r,children:jsxRuntime.jsx(Yt,{text:e})})),zo=Z__namespace.default.forwardRef(({className:t,status:o,options:e,value:r,onChange:i,...a},n)=>{let l=e.find(c=>c.value===r);return jsxRuntime.jsx("div",{className:Xt({status:l==null?void 0:l.status,className:t}),ref:n,...a,children:jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:"flex items-center gap-0.5 outline-none",children:[jsxRuntime.jsx(Yt,{text:(l==null?void 0:l.text)||""}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{"data-status":o,className:"-mr-0.5 size-2"})]}),jsxRuntime.jsx(Y,{selected:l==null?void 0:l.value,options:e,onChange:i,className:"-ml-1 mt-0.5"})]})})}),So={Menu:zo,...Ho},_o=So;var tt=f({base:"text-midnight-blue-600",variants:{bg:{indigo:"bg-midnight-blue-100",white:"bg-white to-white"}}}),ee=Z__namespace.default.forwardRef(({className:t,bg:o,value:e,withBar:r,...i},a)=>jsxRuntime.jsxs("div",{className:s(tt({bg:o,className:t}),"flex h-3 flex-col items-center justify-center rounded-full px-1"),ref:a,...i,children:[jsxRuntime.jsxs(v,{size:"overline",weight:"medium",children:[e,"%"]}),r&&jsxRuntime.jsx(U,{barBg:o==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-0.25 mb-0.5"})]})),Do=Z__namespace.default.forwardRef(({className:t,bg:o,value:e,Icon:r,...i},a)=>jsxRuntime.jsx(te__namespace.Root,{ref:a,className:s(tt({bg:o}),"text-midnight-blue-600 [&_svg]:fill-midnight-blue-600 [&_path]:fill-midnight-blue-600 relative flex size-6 items-center justify-center rounded-full","bg-[conic-gradient(var(--tw-gradient-stops))] from-midnight-blue-600 to-midnight-blue-100 p-0.5",t),...i,children:jsxRuntime.jsx("div",{className:s(tt({bg:o}),"flex size-full items-center justify-center rounded-full"),children:r?jsxRuntime.jsx(r,{className:"size-3"}):jsxRuntime.jsxs("div",{className:"flex items-end",children:[jsxRuntime.jsx(v,{weight:"medium",children:e}),jsxRuntime.jsx(v,{size:"overline",weight:"medium",children:"%"})]})})})),Go=Z__namespace.default.forwardRef(({className:t,bg:o,value:e,text:r,...i},a)=>jsxRuntime.jsxs("div",{"data-bg":o,className:s(tt({bg:o,className:t}),`rounded-m data-[bg=white]:border-midnight-blue-600 flex w-full flex-col items-center justify-center gap-1
|
|
45
|
+
p-2 data-[bg=white]:border`),ref:a,...i,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1",children:[jsxRuntime.jsx(v,{weight:"normal",children:r}),jsxRuntime.jsx(ee,{value:e,bg:o==="white"?"indigo":"white"})]}),jsxRuntime.jsx(U,{barBg:o==="indigo"?"bg-white":"bg-midnight-blue-100",progressBg:"bg-midnight-blue-600",value:e,className:"h-1"})]})),ko={Indicator:ee,Circle:Do,Expanded:Go},Oo=ko;var Wo=f({variants:{size:{small:{container:"h-3",icon:"size-2"},medium:{container:"h-4",icon:"size-3"}},border:{true:{container:"border border-neutral-200 text-neutral-500",icon:"fill-neutral-400 [&_path]:fill-neutral-400"},false:{container:"bg-indigo-100 text-indigo-600",icon:"fill-indigo-600 [&_path]:fill-indigo-600"}},active:{true:{container:"bg-indigo-600 text-white hover:bg-indigo-900",icon:"fill-white [&_path]:fill-white"}}},slots:{container:"group flex items-center rounded-full px-1 hover:border-0 hover:bg-indigo-600 hover:font-medium hover:text-white",icon:"group-hover:[&_path]:fill-white group-hover:[&_svg]:fill-white"},defaultVariants:{size:"medium",border:!1,active:!1}}),oe=Z__namespace.default.forwardRef(({className:t,size:o,icon:e,text:r,asChild:i,value:a,border:n,active:l,onClose:c,...P},h)=>{let M=i?reactSlot.Slot:"div",L=Wo();return jsxRuntime.jsxs(M,{className:L.container({size:o,border:n,active:l,className:t}),ref:h,...P,children:[e&&jsxRuntime.jsx(e,{className:L.icon({size:o,border:n,active:l})}),jsxRuntime.jsx(v,{size:"base",weight:"normal",className:"mx-1",children:r}),c&&jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>c(a),className:s(L.icon({size:o,border:n,active:l}),"cursor-pointer")})]})});oe.displayName="Chips";var $o=oe;var Zo=f({base:"text-navy-600 text-base font-medium",variants:{invalid:{true:"text-notification-critical-600"}}}),ie=({className:t,text:o,suffix:e,invalid:r,htmlFor:i,...a})=>jsxRuntime.jsxs("div",{className:s("mb-0.5 flex items-center gap-0.5 [&_svg]:w-2",t),...a,children:[jsxRuntime.jsx("label",{className:Zo({invalid:r}),htmlFor:i,children:o}),e&&jsxRuntime.jsx(e,{})]});ie.displayName="Label";var yt=ie;var Ko=f({variants:{invalid:{true:{text:"text-notification-critical-600"}}},slots:{text:"text-sm text-neutral-500",counter:"py-0.25 flex h-[20px] items-center rounded-full bg-neutral-100 px-0.5 text-neutral-500"}}),se=({className:t,text:o,counter:e,maxLength:r,invalid:i,valueLength:a,...n})=>{let l=Ko();return jsxRuntime.jsxs("div",{className:s("mt-0.5 flex justify-between",t),...n,children:[o&&jsxRuntime.jsx("span",{className:l.text({invalid:i}),children:o}),e&&r&&jsxRuntime.jsx("div",{className:l.counter(),children:jsxRuntime.jsxs(v,{size:"overline",weight:"semibold",children:[a||0,"/",r]})})]})};se.displayName="InputDescription";var wt=se;var Qo=({id:t,className:o,label:e,description:r,errorMessage:i,invalid:a,children:n,disabled:l,value:c,maxLength:P,...h})=>{let M=i||r.text;return jsxRuntime.jsxs("div",{className:s("flex flex-col",o),...h,children:[jsxRuntime.jsx(yt,{...e,invalid:a,htmlFor:t}),Z__namespace.default.cloneElement(n,{id:t,invalid:a,disabled:l,value:c}),jsxRuntime.jsx(wt,{...r,text:M,invalid:a,maxLength:P,valueLength:c==null?void 0:c.length})]})},Xo=Qo;var rr=f({variants:{checked:{false:{checkbox:"hover:border-primary border-neutral-400 bg-white hover:bg-green-100"},indeterminate:{}},disabled:{true:{checkbox:"disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100",icon:"fill-neutral-300 [&_path]:fill-neutral-300 [&_rect]:fill-neutral-300"}}},slots:{checkbox:"bg-primary border-primary focus-visible:rind-0 peer size-[20px] shrink-0 rounded-md border-2 text-white focus-visible:outline-none",icon:"size-2 fill-white [&_path]:fill-white [&_rect]:fill-white"}}),pe=Z__namespace.default.forwardRef(({className:t,checked:o,defaultChecked:e,disabled:r,...i},a)=>{let n=rr();return jsxRuntime.jsx("div",{className:"flex size-3 items-center justify-center",children:jsxRuntime.jsx(reactCheckbox.Root,{ref:a,className:s(n.checkbox({checked:o,disabled:r}),t),checked:o,defaultChecked:e,disabled:r,...i,children:jsxRuntime.jsxs("div",{className:"-ml-0.5 -mt-0.5 flex size-3 items-center justify-center",children:[(o==="indeterminate"||e==="indeterminate")&&jsxRuntime.jsx(icons.IconOutlineLine,{className:n.icon({disabled:r})}),(o===!0||e===!0)&&jsxRuntime.jsx(icons.IconOutlineCheck,{className:n.icon({disabled:r})})]})})})});pe.displayName=reactCheckbox.Root.displayName;var ir=pe;var fe=Z__namespace.default.forwardRef(({className:t,disabled:o,...e},r)=>jsxRuntime.jsx(z__namespace.Root,{className:s("grid gap-1",t),disabled:o,...e,ref:r}));fe.displayName=z__namespace.Root.displayName;var me=Z__namespace.default.forwardRef(({className:t,...o},e)=>jsxRuntime.jsx(z__namespace.Item,{ref:e,className:s("group aspect-square size-[20px] rounded-full border-2 border-neutral-400 bg-white hover:border-green-600 hover:bg-green-100 focus:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-100 [&:not(:disabled)]:data-[state=checked]:border-green-600",t),...o,children:jsxRuntime.jsx(z__namespace.Indicator,{className:"text-primary flex items-center justify-center group-disabled:text-neutral-300",children:jsxRuntime.jsx(lucideReact.Circle,{className:"fill-primary size-[12px] group-disabled:fill-neutral-300"})})}));me.displayName=z__namespace.Item.displayName;var sr={Group:fe,Item:me},lr=sr;var ge=f({base:"flex items-center justify-center rounded-full",variants:{size:{small:{trigger:"my-0.5",dropdown:"mt-0.5"},medium:{trigger:"my-1",dropdown:"mt-1"}},disabled:{true:{container:"cursor-not-allowed border-neutral-200",input:"bg-white text-neutral-300",trigger:"cursor-not-allowed text-neutral-300 [&_path]:fill-neutral-300"},false:{container:"focus-within:border-indigo-600 hover:border-indigo-600"}}},slots:{input:"data-[scope=false]hover:bg-indigo-100 pointer-events-auto border-0 bg-white pr-5",trigger:"br-neutral-100 border-r-1 flex w-fit items-center gap-0.5 border border-y-0 border-l-0 border-neutral-100 bg-white pl-2 pr-1 text-indigo-600 focus-visible:outline-none [&_svg]:fill-indigo-600",dropdown:"",container:"rounded-m flex border border-neutral-200 "},defaultVariants:{size:"medium"}}),be=Z__namespace.forwardRef(({className:t,disabled:o,invalid:e,size:r,value:i,onChange:a,scope:n,...l},c)=>{let P=W(),h=ge();return jsxRuntime.jsxs("div",{className:h.container({disabled:o}),children:[n&&jsxRuntime.jsx(ur,{disabled:o,scope:n,size:r}),jsxRuntime.jsxs("div",{className:"peer relative",children:[jsxRuntime.jsx("input",{value:i,onChange:a,disabled:o,"data-scoped":!!n,className:s(P.input({disabled:o,invalid:e,size:r}),h.input(),t),ref:c,...l}),jsxRuntime.jsx("div",{"data-hasValue":!!i,className:`data-[hasValue=true]:cursor-pointer ${P.suffixIcon({size:r,disabled:o})}`,children:i?jsxRuntime.jsx(icons.IconOutlineClose,{onClick:()=>a&&a({target:{value:""}})}):jsxRuntime.jsx(icons.IconOutlineSearch,{})})]})]})}),ur=({scope:{selected:t,options:o,onChange:e},disabled:r,size:i})=>{let a=o.find(({value:l})=>l===t),n=ge();return jsxRuntime.jsxs(reactDropdownMenu.Root,{children:[jsxRuntime.jsxs(reactDropdownMenu.Trigger,{className:n.trigger({size:i,disabled:r}),disabled:r,children:[jsxRuntime.jsx(v,{size:"small",weight:"medium",children:a==null?void 0:a.text}),jsxRuntime.jsx(icons.IconOutlineChevronDown,{className:"-mr-0.5 size-3"})]}),jsxRuntime.jsx(Y,{selected:t,options:o,onChange:e,className:n.dropdown({size:i})})]})};be.displayName="Search";var gr=be;
|
|
1497
46
|
|
|
1498
|
-
exports.Accordion =
|
|
1499
|
-
exports.Avatar =
|
|
1500
|
-
exports.Badge =
|
|
1501
|
-
exports.Button =
|
|
1502
|
-
exports.Card =
|
|
1503
|
-
exports.Checkbox =
|
|
1504
|
-
exports.Chips =
|
|
1505
|
-
exports.FormItem =
|
|
1506
|
-
exports.Indicator =
|
|
1507
|
-
exports.Input =
|
|
1508
|
-
exports.InputDescription =
|
|
1509
|
-
exports.Label =
|
|
1510
|
-
exports.Progress =
|
|
1511
|
-
exports.ProgressBar =
|
|
1512
|
-
exports.Radio =
|
|
1513
|
-
exports.Scope =
|
|
1514
|
-
exports.Search =
|
|
1515
|
-
exports.Sheet =
|
|
1516
|
-
exports.Status =
|
|
1517
|
-
exports.Text =
|
|
1518
|
-
exports.Textarea =
|
|
1519
|
-
exports.Toggle =
|
|
47
|
+
exports.Accordion = xo;
|
|
48
|
+
exports.Avatar = Le;
|
|
49
|
+
exports.Badge = Oe;
|
|
50
|
+
exports.Button = We;
|
|
51
|
+
exports.Card = Ze;
|
|
52
|
+
exports.Checkbox = ir;
|
|
53
|
+
exports.Chips = $o;
|
|
54
|
+
exports.FormItem = Xo;
|
|
55
|
+
exports.Indicator = Co;
|
|
56
|
+
exports.Input = ro;
|
|
57
|
+
exports.InputDescription = wt;
|
|
58
|
+
exports.Label = yt;
|
|
59
|
+
exports.Progress = Oo;
|
|
60
|
+
exports.ProgressBar = U;
|
|
61
|
+
exports.Radio = lr;
|
|
62
|
+
exports.Scope = Qe;
|
|
63
|
+
exports.Search = gr;
|
|
64
|
+
exports.Sheet = co;
|
|
65
|
+
exports.Status = _o;
|
|
66
|
+
exports.Text = v;
|
|
67
|
+
exports.Textarea = ao;
|
|
68
|
+
exports.Toggle = uo;
|