cekat-ui 1.2.5 → 1.2.6
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/components/TabBrowser/tabbrowser.types.d.ts +9 -0
- package/dist/index.es.js +555 -537
- package/dist/index.umd.js +1 -1
- package/dist/style.css +22 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,36 +2,36 @@ import * as o from "react";
|
|
|
2
2
|
import m, { forwardRef as xt, createElement as he, useId as vt, useState as yt } from "react";
|
|
3
3
|
import { createPortal as wt } from "react-dom";
|
|
4
4
|
function He(e) {
|
|
5
|
-
var s,
|
|
6
|
-
if (typeof e == "string" || typeof e == "number")
|
|
5
|
+
var s, r, t = "";
|
|
6
|
+
if (typeof e == "string" || typeof e == "number") t += e;
|
|
7
7
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
8
8
|
var n = e.length;
|
|
9
|
-
for (s = 0; s < n; s++) e[s] && (
|
|
10
|
-
} else for (
|
|
11
|
-
return
|
|
9
|
+
for (s = 0; s < n; s++) e[s] && (r = He(e[s])) && (t && (t += " "), t += r);
|
|
10
|
+
} else for (r in e) e[r] && (t && (t += " "), t += r);
|
|
11
|
+
return t;
|
|
12
12
|
}
|
|
13
13
|
function f() {
|
|
14
|
-
for (var e, s,
|
|
15
|
-
return
|
|
14
|
+
for (var e, s, r = 0, t = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (s = He(e)) && (t && (t += " "), t += s);
|
|
15
|
+
return t;
|
|
16
16
|
}
|
|
17
17
|
const kt = (e, s) => {
|
|
18
|
-
const
|
|
19
|
-
for (let
|
|
20
|
-
t
|
|
21
|
-
for (let
|
|
22
|
-
|
|
23
|
-
return
|
|
18
|
+
const r = new Array(e.length + s.length);
|
|
19
|
+
for (let t = 0; t < e.length; t++)
|
|
20
|
+
r[t] = e[t];
|
|
21
|
+
for (let t = 0; t < s.length; t++)
|
|
22
|
+
r[e.length + t] = s[t];
|
|
23
|
+
return r;
|
|
24
24
|
}, Et = (e, s) => ({
|
|
25
25
|
classGroupId: e,
|
|
26
26
|
validator: s
|
|
27
|
-
}), Ue = (e = /* @__PURE__ */ new Map(), s = null,
|
|
27
|
+
}), Ue = (e = /* @__PURE__ */ new Map(), s = null, r) => ({
|
|
28
28
|
nextPart: e,
|
|
29
29
|
validators: s,
|
|
30
|
-
classGroupId:
|
|
30
|
+
classGroupId: r
|
|
31
31
|
}), pe = "-", Le = [], Nt = "arbitrary..", Ct = (e) => {
|
|
32
32
|
const s = zt(e), {
|
|
33
|
-
conflictingClassGroups:
|
|
34
|
-
conflictingClassGroupModifiers:
|
|
33
|
+
conflictingClassGroups: r,
|
|
34
|
+
conflictingClassGroupModifiers: t
|
|
35
35
|
} = e;
|
|
36
36
|
return {
|
|
37
37
|
getClassGroupId: (l) => {
|
|
@@ -42,85 +42,85 @@ const kt = (e, s) => {
|
|
|
42
42
|
},
|
|
43
43
|
getConflictingClassGroupIds: (l, i) => {
|
|
44
44
|
if (i) {
|
|
45
|
-
const d =
|
|
45
|
+
const d = t[l], c = r[l];
|
|
46
46
|
return d ? c ? kt(c, d) : d : c || Le;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return r[l] || Le;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
}, Xe = (e, s,
|
|
51
|
+
}, Xe = (e, s, r) => {
|
|
52
52
|
if (e.length - s === 0)
|
|
53
|
-
return
|
|
54
|
-
const n = e[s], a =
|
|
53
|
+
return r.classGroupId;
|
|
54
|
+
const n = e[s], a = r.nextPart.get(n);
|
|
55
55
|
if (a) {
|
|
56
56
|
const c = Xe(e, s + 1, a);
|
|
57
57
|
if (c) return c;
|
|
58
58
|
}
|
|
59
|
-
const l =
|
|
59
|
+
const l = r.validators;
|
|
60
60
|
if (l === null)
|
|
61
61
|
return;
|
|
62
62
|
const i = s === 0 ? e.join(pe) : e.slice(s).join(pe), d = l.length;
|
|
63
63
|
for (let c = 0; c < d; c++) {
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
return
|
|
64
|
+
const p = l[c];
|
|
65
|
+
if (p.validator(i))
|
|
66
|
+
return p.classGroupId;
|
|
67
67
|
}
|
|
68
68
|
}, St = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
69
|
-
const s = e.slice(1, -1),
|
|
70
|
-
return
|
|
69
|
+
const s = e.slice(1, -1), r = s.indexOf(":"), t = s.slice(0, r);
|
|
70
|
+
return t ? Nt + t : void 0;
|
|
71
71
|
})(), zt = (e) => {
|
|
72
72
|
const {
|
|
73
73
|
theme: s,
|
|
74
|
-
classGroups:
|
|
74
|
+
classGroups: r
|
|
75
75
|
} = e;
|
|
76
|
-
return Lt(
|
|
76
|
+
return Lt(r, s);
|
|
77
77
|
}, Lt = (e, s) => {
|
|
78
|
-
const
|
|
79
|
-
for (const
|
|
80
|
-
const n = e[
|
|
81
|
-
ke(n,
|
|
78
|
+
const r = Ue();
|
|
79
|
+
for (const t in e) {
|
|
80
|
+
const n = e[t];
|
|
81
|
+
ke(n, r, t, s);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
84
|
-
}, ke = (e, s,
|
|
83
|
+
return r;
|
|
84
|
+
}, ke = (e, s, r, t) => {
|
|
85
85
|
const n = e.length;
|
|
86
86
|
for (let a = 0; a < n; a++) {
|
|
87
87
|
const l = e[a];
|
|
88
|
-
Tt(l, s,
|
|
88
|
+
Tt(l, s, r, t);
|
|
89
89
|
}
|
|
90
|
-
}, Tt = (e, s,
|
|
90
|
+
}, Tt = (e, s, r, t) => {
|
|
91
91
|
if (typeof e == "string") {
|
|
92
|
-
Bt(e, s,
|
|
92
|
+
Bt(e, s, r);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
if (typeof e == "function") {
|
|
96
|
-
It(e, s,
|
|
96
|
+
It(e, s, r, t);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
At(e, s,
|
|
100
|
-
}, Bt = (e, s,
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
}, It = (e, s,
|
|
99
|
+
At(e, s, r, t);
|
|
100
|
+
}, Bt = (e, s, r) => {
|
|
101
|
+
const t = e === "" ? s : Ke(s, e);
|
|
102
|
+
t.classGroupId = r;
|
|
103
|
+
}, It = (e, s, r, t) => {
|
|
104
104
|
if (Rt(e)) {
|
|
105
|
-
ke(e(
|
|
105
|
+
ke(e(t), s, r, t);
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
s.validators === null && (s.validators = []), s.validators.push(Et(
|
|
109
|
-
}, At = (e, s,
|
|
108
|
+
s.validators === null && (s.validators = []), s.validators.push(Et(r, e));
|
|
109
|
+
}, At = (e, s, r, t) => {
|
|
110
110
|
const n = Object.entries(e), a = n.length;
|
|
111
111
|
for (let l = 0; l < a; l++) {
|
|
112
112
|
const [i, d] = n[l];
|
|
113
|
-
ke(d, Ke(s, i),
|
|
113
|
+
ke(d, Ke(s, i), r, t);
|
|
114
114
|
}
|
|
115
115
|
}, Ke = (e, s) => {
|
|
116
|
-
let
|
|
117
|
-
const
|
|
116
|
+
let r = e;
|
|
117
|
+
const t = s.split(pe), n = t.length;
|
|
118
118
|
for (let a = 0; a < n; a++) {
|
|
119
|
-
const l =
|
|
120
|
-
let i =
|
|
121
|
-
i || (i = Ue(),
|
|
119
|
+
const l = t[a];
|
|
120
|
+
let i = r.nextPart.get(l);
|
|
121
|
+
i || (i = Ue(), r.nextPart.set(l, i)), r = i;
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return r;
|
|
124
124
|
}, Rt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Vt = (e) => {
|
|
125
125
|
if (e < 1)
|
|
126
126
|
return {
|
|
@@ -129,87 +129,87 @@ const kt = (e, s) => {
|
|
|
129
129
|
set: () => {
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
let s = 0,
|
|
132
|
+
let s = 0, r = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
133
133
|
const n = (a, l) => {
|
|
134
|
-
|
|
134
|
+
r[a] = l, s++, s > e && (s = 0, t = r, r = /* @__PURE__ */ Object.create(null));
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
get(a) {
|
|
138
|
-
let l =
|
|
138
|
+
let l = r[a];
|
|
139
139
|
if (l !== void 0)
|
|
140
140
|
return l;
|
|
141
|
-
if ((l =
|
|
141
|
+
if ((l = t[a]) !== void 0)
|
|
142
142
|
return n(a, l), l;
|
|
143
143
|
},
|
|
144
144
|
set(a, l) {
|
|
145
|
-
a in
|
|
145
|
+
a in r ? r[a] = l : n(a, l);
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
|
-
}, we = "!", Te = ":", $t = [], Be = (e, s,
|
|
148
|
+
}, we = "!", Te = ":", $t = [], Be = (e, s, r, t, n) => ({
|
|
149
149
|
modifiers: e,
|
|
150
150
|
hasImportantModifier: s,
|
|
151
|
-
baseClassName:
|
|
152
|
-
maybePostfixModifierPosition:
|
|
151
|
+
baseClassName: r,
|
|
152
|
+
maybePostfixModifierPosition: t,
|
|
153
153
|
isExternal: n
|
|
154
154
|
}), Ot = (e) => {
|
|
155
155
|
const {
|
|
156
156
|
prefix: s,
|
|
157
|
-
experimentalParseClassName:
|
|
157
|
+
experimentalParseClassName: r
|
|
158
158
|
} = e;
|
|
159
|
-
let
|
|
159
|
+
let t = (n) => {
|
|
160
160
|
const a = [];
|
|
161
161
|
let l = 0, i = 0, d = 0, c;
|
|
162
|
-
const
|
|
163
|
-
for (let E = 0; E <
|
|
164
|
-
const
|
|
162
|
+
const p = n.length;
|
|
163
|
+
for (let E = 0; E < p; E++) {
|
|
164
|
+
const C = n[E];
|
|
165
165
|
if (l === 0 && i === 0) {
|
|
166
|
-
if (
|
|
166
|
+
if (C === Te) {
|
|
167
167
|
a.push(n.slice(d, E)), d = E + 1;
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
|
-
if (
|
|
170
|
+
if (C === "/") {
|
|
171
171
|
c = E;
|
|
172
172
|
continue;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
C === "[" ? l++ : C === "]" ? l-- : C === "(" ? i++ : C === ")" && i--;
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
let x =
|
|
179
|
-
|
|
177
|
+
const g = a.length === 0 ? n : n.slice(d);
|
|
178
|
+
let x = g, w = !1;
|
|
179
|
+
g.endsWith(we) ? (x = g.slice(0, -1), w = !0) : (
|
|
180
180
|
/**
|
|
181
181
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
182
182
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
183
183
|
*/
|
|
184
|
-
|
|
184
|
+
g.startsWith(we) && (x = g.slice(1), w = !0)
|
|
185
185
|
);
|
|
186
|
-
const
|
|
187
|
-
return Be(a, w, x,
|
|
186
|
+
const z = c && c > d ? c - d : void 0;
|
|
187
|
+
return Be(a, w, x, z);
|
|
188
188
|
};
|
|
189
189
|
if (s) {
|
|
190
|
-
const n = s + Te, a =
|
|
191
|
-
|
|
190
|
+
const n = s + Te, a = t;
|
|
191
|
+
t = (l) => l.startsWith(n) ? a(l.slice(n.length)) : Be($t, !1, l, void 0, !0);
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
194
|
-
const n =
|
|
195
|
-
|
|
193
|
+
if (r) {
|
|
194
|
+
const n = t;
|
|
195
|
+
t = (a) => r({
|
|
196
196
|
className: a,
|
|
197
197
|
parseClassName: n
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
return
|
|
200
|
+
return t;
|
|
201
201
|
}, Mt = (e) => {
|
|
202
202
|
const s = /* @__PURE__ */ new Map();
|
|
203
|
-
return e.orderSensitiveModifiers.forEach((
|
|
204
|
-
s.set(
|
|
205
|
-
}), (
|
|
206
|
-
const
|
|
203
|
+
return e.orderSensitiveModifiers.forEach((r, t) => {
|
|
204
|
+
s.set(r, 1e6 + t);
|
|
205
|
+
}), (r) => {
|
|
206
|
+
const t = [];
|
|
207
207
|
let n = [];
|
|
208
|
-
for (let a = 0; a <
|
|
209
|
-
const l =
|
|
210
|
-
i || d ? (n.length > 0 && (n.sort(),
|
|
208
|
+
for (let a = 0; a < r.length; a++) {
|
|
209
|
+
const l = r[a], i = l[0] === "[", d = s.has(l);
|
|
210
|
+
i || d ? (n.length > 0 && (n.sort(), t.push(...n), n = []), t.push(l)) : n.push(l);
|
|
211
211
|
}
|
|
212
|
-
return n.length > 0 && (n.sort(),
|
|
212
|
+
return n.length > 0 && (n.sort(), t.push(...n)), t;
|
|
213
213
|
};
|
|
214
214
|
}, _t = (e) => ({
|
|
215
215
|
cache: Vt(e.cacheSize),
|
|
@@ -218,104 +218,104 @@ const kt = (e, s) => {
|
|
|
218
218
|
postfixLookupClassGroupIds: jt(e),
|
|
219
219
|
...Ct(e)
|
|
220
220
|
}), jt = (e) => {
|
|
221
|
-
const s = /* @__PURE__ */ Object.create(null),
|
|
222
|
-
if (
|
|
223
|
-
for (let
|
|
224
|
-
s[t
|
|
221
|
+
const s = /* @__PURE__ */ Object.create(null), r = e.postfixLookupClassGroups;
|
|
222
|
+
if (r)
|
|
223
|
+
for (let t = 0; t < r.length; t++)
|
|
224
|
+
s[r[t]] = !0;
|
|
225
225
|
return s;
|
|
226
226
|
}, Wt = /\s+/, Pt = (e, s) => {
|
|
227
227
|
const {
|
|
228
|
-
parseClassName:
|
|
229
|
-
getClassGroupId:
|
|
228
|
+
parseClassName: r,
|
|
229
|
+
getClassGroupId: t,
|
|
230
230
|
getConflictingClassGroupIds: n,
|
|
231
231
|
sortModifiers: a,
|
|
232
232
|
postfixLookupClassGroupIds: l
|
|
233
233
|
} = s, i = [], d = e.trim().split(Wt);
|
|
234
234
|
let c = "";
|
|
235
|
-
for (let
|
|
236
|
-
const
|
|
235
|
+
for (let p = d.length - 1; p >= 0; p -= 1) {
|
|
236
|
+
const g = d[p], {
|
|
237
237
|
isExternal: x,
|
|
238
238
|
modifiers: w,
|
|
239
|
-
hasImportantModifier:
|
|
239
|
+
hasImportantModifier: z,
|
|
240
240
|
baseClassName: E,
|
|
241
|
-
maybePostfixModifierPosition:
|
|
242
|
-
} =
|
|
241
|
+
maybePostfixModifierPosition: C
|
|
242
|
+
} = r(g);
|
|
243
243
|
if (x) {
|
|
244
|
-
c =
|
|
244
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
245
245
|
continue;
|
|
246
246
|
}
|
|
247
|
-
let N = !!
|
|
247
|
+
let N = !!C, k;
|
|
248
248
|
if (N) {
|
|
249
|
-
const I = E.substring(0,
|
|
250
|
-
k =
|
|
251
|
-
const b = k && l[k] ?
|
|
249
|
+
const I = E.substring(0, C);
|
|
250
|
+
k = t(I);
|
|
251
|
+
const b = k && l[k] ? t(E) : void 0;
|
|
252
252
|
b && b !== k && (k = b, N = !1);
|
|
253
253
|
} else
|
|
254
|
-
k =
|
|
254
|
+
k = t(E);
|
|
255
255
|
if (!k) {
|
|
256
256
|
if (!N) {
|
|
257
|
-
c =
|
|
257
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
258
258
|
continue;
|
|
259
259
|
}
|
|
260
|
-
if (k =
|
|
261
|
-
c =
|
|
260
|
+
if (k = t(E), !k) {
|
|
261
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
264
|
N = !1;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const S = w.length === 0 ? "" : w.length === 1 ? w[0] : a(w).join(":"), L = z ? S + we : S, R = L + k;
|
|
267
267
|
if (i.indexOf(R) > -1)
|
|
268
268
|
continue;
|
|
269
269
|
i.push(R);
|
|
270
270
|
const B = n(k, N);
|
|
271
271
|
for (let I = 0; I < B.length; ++I) {
|
|
272
272
|
const b = B[I];
|
|
273
|
-
i.push(
|
|
273
|
+
i.push(L + b);
|
|
274
274
|
}
|
|
275
|
-
c =
|
|
275
|
+
c = g + (c.length > 0 ? " " + c : c);
|
|
276
276
|
}
|
|
277
277
|
return c;
|
|
278
278
|
}, Gt = (...e) => {
|
|
279
|
-
let s = 0,
|
|
279
|
+
let s = 0, r, t, n = "";
|
|
280
280
|
for (; s < e.length; )
|
|
281
|
-
(
|
|
281
|
+
(r = e[s++]) && (t = qe(r)) && (n && (n += " "), n += t);
|
|
282
282
|
return n;
|
|
283
283
|
}, qe = (e) => {
|
|
284
284
|
if (typeof e == "string")
|
|
285
285
|
return e;
|
|
286
|
-
let s,
|
|
287
|
-
for (let
|
|
288
|
-
e[
|
|
289
|
-
return
|
|
286
|
+
let s, r = "";
|
|
287
|
+
for (let t = 0; t < e.length; t++)
|
|
288
|
+
e[t] && (s = qe(e[t])) && (r && (r += " "), r += s);
|
|
289
|
+
return r;
|
|
290
290
|
}, Dt = (e, ...s) => {
|
|
291
|
-
let
|
|
291
|
+
let r, t, n, a;
|
|
292
292
|
const l = (d) => {
|
|
293
|
-
const c = s.reduce((
|
|
294
|
-
return
|
|
293
|
+
const c = s.reduce((p, g) => g(p), e());
|
|
294
|
+
return r = _t(c), t = r.cache.get, n = r.cache.set, a = i, i(d);
|
|
295
295
|
}, i = (d) => {
|
|
296
|
-
const c =
|
|
296
|
+
const c = t(d);
|
|
297
297
|
if (c)
|
|
298
298
|
return c;
|
|
299
|
-
const
|
|
300
|
-
return n(d,
|
|
299
|
+
const p = Pt(d, r);
|
|
300
|
+
return n(d, p), p;
|
|
301
301
|
};
|
|
302
302
|
return a = l, (...d) => a(Gt(...d));
|
|
303
303
|
}, Ft = [], V = (e) => {
|
|
304
|
-
const s = (
|
|
304
|
+
const s = (r) => r[e] || Ft;
|
|
305
305
|
return s.isThemeGetter = !0, s;
|
|
306
306
|
}, Ze = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ht = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ut = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Ht.test(e), T = (e) => !!e && !Number.isNaN(Number(e)), G = (e) => !!e && Number.isInteger(Number(e)), xe = (e) => e.endsWith("%") && T(e.slice(0, -1)), H = (e) => Ut.test(e), Qe = () => !0, Yt = (e) => (
|
|
307
307
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
308
308
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
309
309
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
310
310
|
Xt.test(e) && !Kt.test(e)
|
|
311
|
-
), Ee = () => !1, Qt = (e) => qt.test(e), Jt = (e) => Zt.test(e), er = (e) => !v(e) && !y(e), tr = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), rr = (e) => q(e, tt, Ee), v = (e) => Ze.test(e), Y = (e) => q(e, rt, Yt), Ie = (e) => q(e, dr, T), sr = (e) => q(e, ot, Qe), or = (e) => q(e, st, Ee), Ae = (e) => q(e, Je, Ee), ar = (e) => q(e, et, Jt), de = (e) => q(e, at, Qt), y = (e) => Ye.test(e), re = (e) => Q(e, rt), nr = (e) => Q(e, st), Re = (e) => Q(e, Je), lr = (e) => Q(e, tt), ir = (e) => Q(e, et), ue = (e) => Q(e, at, !0), cr = (e) => Q(e, ot, !0), q = (e, s,
|
|
312
|
-
const
|
|
313
|
-
return
|
|
314
|
-
}, Q = (e, s,
|
|
315
|
-
const
|
|
316
|
-
return
|
|
311
|
+
), Ee = () => !1, Qt = (e) => qt.test(e), Jt = (e) => Zt.test(e), er = (e) => !v(e) && !y(e), tr = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), rr = (e) => q(e, tt, Ee), v = (e) => Ze.test(e), Y = (e) => q(e, rt, Yt), Ie = (e) => q(e, dr, T), sr = (e) => q(e, ot, Qe), or = (e) => q(e, st, Ee), Ae = (e) => q(e, Je, Ee), ar = (e) => q(e, et, Jt), de = (e) => q(e, at, Qt), y = (e) => Ye.test(e), re = (e) => Q(e, rt), nr = (e) => Q(e, st), Re = (e) => Q(e, Je), lr = (e) => Q(e, tt), ir = (e) => Q(e, et), ue = (e) => Q(e, at, !0), cr = (e) => Q(e, ot, !0), q = (e, s, r) => {
|
|
312
|
+
const t = Ze.exec(e);
|
|
313
|
+
return t ? t[1] ? s(t[1]) : r(t[2]) : !1;
|
|
314
|
+
}, Q = (e, s, r = !1) => {
|
|
315
|
+
const t = Ye.exec(e);
|
|
316
|
+
return t ? t[1] ? s(t[1]) : r : !1;
|
|
317
317
|
}, Je = (e) => e === "position" || e === "percentage", et = (e) => e === "image" || e === "url", tt = (e) => e === "length" || e === "size" || e === "bg-size", rt = (e) => e === "length", dr = (e) => e === "number", st = (e) => e === "family-name", ot = (e) => e === "number" || e === "weight", at = (e) => e === "shadow", ur = () => {
|
|
318
|
-
const e = V("color"), s = V("font"),
|
|
318
|
+
const e = V("color"), s = V("font"), r = V("text"), t = V("font-weight"), n = V("tracking"), a = V("leading"), l = V("breakpoint"), i = V("container"), d = V("spacing"), c = V("radius"), p = V("shadow"), g = V("inset-shadow"), x = V("text-shadow"), w = V("drop-shadow"), z = V("blur"), E = V("perspective"), C = V("aspect"), N = V("ease"), k = V("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
|
|
319
319
|
"center",
|
|
320
320
|
"top",
|
|
321
321
|
"bottom",
|
|
@@ -333,9 +333,9 @@ const kt = (e, s) => {
|
|
|
333
333
|
"bottom-left",
|
|
334
334
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
335
335
|
"left-bottom"
|
|
336
|
-
], R = () => [...
|
|
336
|
+
], R = () => [...L(), y, v], B = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], b = () => [y, v, d], A = () => [K, "full", "auto", ...b()], P = () => [G, "none", "subgrid", y, v], D = () => ["auto", {
|
|
337
337
|
span: ["full", G, y, v]
|
|
338
|
-
}, G, y, v], O = () => [G, "auto", y, v], U = () => ["auto", "min", "max", "fr", y, v], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], j = () => ["auto", ...b()], F = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], J = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], te = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], u = () => [e, y, v], W = () => [...
|
|
338
|
+
}, G, y, v], O = () => [G, "auto", y, v], U = () => ["auto", "min", "max", "fr", y, v], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], j = () => ["auto", ...b()], F = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], J = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], te = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], u = () => [e, y, v], W = () => [...L(), Re, Ae, {
|
|
339
339
|
position: [y, v]
|
|
340
340
|
}], ae = () => ["no-repeat", {
|
|
341
341
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -353,7 +353,7 @@ const kt = (e, s) => {
|
|
|
353
353
|
// Deprecated since Tailwind CSS v4.0.0
|
|
354
354
|
"",
|
|
355
355
|
"none",
|
|
356
|
-
|
|
356
|
+
z,
|
|
357
357
|
y,
|
|
358
358
|
v
|
|
359
359
|
], le = () => ["none", T, y, v], ie = () => ["none", T, y, v], be = () => [T, y, v], ce = () => [K, "full", ...b()];
|
|
@@ -389,7 +389,7 @@ const kt = (e, s) => {
|
|
|
389
389
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
390
390
|
*/
|
|
391
391
|
aspect: [{
|
|
392
|
-
aspect: ["auto", "square", K, v, y,
|
|
392
|
+
aspect: ["auto", "square", K, v, y, C]
|
|
393
393
|
}],
|
|
394
394
|
/**
|
|
395
395
|
* Container
|
|
@@ -421,14 +421,14 @@ const kt = (e, s) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/break-after
|
|
422
422
|
*/
|
|
423
423
|
"break-after": [{
|
|
424
|
-
"break-after":
|
|
424
|
+
"break-after": S()
|
|
425
425
|
}],
|
|
426
426
|
/**
|
|
427
427
|
* Break Before
|
|
428
428
|
* @see https://tailwindcss.com/docs/break-before
|
|
429
429
|
*/
|
|
430
430
|
"break-before": [{
|
|
431
|
-
"break-before":
|
|
431
|
+
"break-before": S()
|
|
432
432
|
}],
|
|
433
433
|
/**
|
|
434
434
|
* Break Inside
|
|
@@ -1157,7 +1157,7 @@ const kt = (e, s) => {
|
|
|
1157
1157
|
* @see https://tailwindcss.com/docs/font-size
|
|
1158
1158
|
*/
|
|
1159
1159
|
"font-size": [{
|
|
1160
|
-
text: ["base",
|
|
1160
|
+
text: ["base", r, re, Y]
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Font Smoothing
|
|
@@ -1174,7 +1174,7 @@ const kt = (e, s) => {
|
|
|
1174
1174
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1175
1175
|
*/
|
|
1176
1176
|
"font-weight": [{
|
|
1177
|
-
font: [
|
|
1177
|
+
font: [t, cr, sr]
|
|
1178
1178
|
}],
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Font Stretch
|
|
@@ -1855,7 +1855,7 @@ const kt = (e, s) => {
|
|
|
1855
1855
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1856
1856
|
"",
|
|
1857
1857
|
"none",
|
|
1858
|
-
|
|
1858
|
+
p,
|
|
1859
1859
|
ue,
|
|
1860
1860
|
de
|
|
1861
1861
|
]
|
|
@@ -1872,7 +1872,7 @@ const kt = (e, s) => {
|
|
|
1872
1872
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1873
1873
|
*/
|
|
1874
1874
|
"inset-shadow": [{
|
|
1875
|
-
"inset-shadow": ["none",
|
|
1875
|
+
"inset-shadow": ["none", g, ue, de]
|
|
1876
1876
|
}],
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Inset Box Shadow Color
|
|
@@ -2099,7 +2099,7 @@ const kt = (e, s) => {
|
|
|
2099
2099
|
}]
|
|
2100
2100
|
}],
|
|
2101
2101
|
"mask-image-radial-pos": [{
|
|
2102
|
-
"mask-radial-at":
|
|
2102
|
+
"mask-radial-at": L()
|
|
2103
2103
|
}],
|
|
2104
2104
|
"mask-image-conic-pos": [{
|
|
2105
2105
|
"mask-conic": [T]
|
|
@@ -3003,35 +3003,35 @@ const kt = (e, s) => {
|
|
|
3003
3003
|
function pr(...e) {
|
|
3004
3004
|
return mr(f(e));
|
|
3005
3005
|
}
|
|
3006
|
-
const Ve = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = f, h = (e, s) => (
|
|
3007
|
-
var
|
|
3008
|
-
if (s?.variants == null) return $e(e,
|
|
3006
|
+
const Ve = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = f, h = (e, s) => (r) => {
|
|
3007
|
+
var t;
|
|
3008
|
+
if (s?.variants == null) return $e(e, r?.class, r?.className);
|
|
3009
3009
|
const { variants: n, defaultVariants: a } = s, l = Object.keys(n).map((c) => {
|
|
3010
|
-
const
|
|
3011
|
-
if (
|
|
3012
|
-
const x = Ve(
|
|
3010
|
+
const p = r?.[c], g = a?.[c];
|
|
3011
|
+
if (p === null) return null;
|
|
3012
|
+
const x = Ve(p) || Ve(g);
|
|
3013
3013
|
return n[c][x];
|
|
3014
|
-
}), i =
|
|
3015
|
-
let [
|
|
3016
|
-
return x === void 0 || (c[
|
|
3017
|
-
}, {}), d = s == null || (
|
|
3018
|
-
let { class:
|
|
3019
|
-
return Object.entries(w).every((
|
|
3020
|
-
let [E,
|
|
3021
|
-
return Array.isArray(
|
|
3014
|
+
}), i = r && Object.entries(r).reduce((c, p) => {
|
|
3015
|
+
let [g, x] = p;
|
|
3016
|
+
return x === void 0 || (c[g] = x), c;
|
|
3017
|
+
}, {}), d = s == null || (t = s.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((c, p) => {
|
|
3018
|
+
let { class: g, className: x, ...w } = p;
|
|
3019
|
+
return Object.entries(w).every((z) => {
|
|
3020
|
+
let [E, C] = z;
|
|
3021
|
+
return Array.isArray(C) ? C.includes({
|
|
3022
3022
|
...a,
|
|
3023
3023
|
...i
|
|
3024
3024
|
}[E]) : {
|
|
3025
3025
|
...a,
|
|
3026
3026
|
...i
|
|
3027
|
-
}[E] ===
|
|
3027
|
+
}[E] === C;
|
|
3028
3028
|
}) ? [
|
|
3029
3029
|
...c,
|
|
3030
|
-
|
|
3030
|
+
g,
|
|
3031
3031
|
x
|
|
3032
3032
|
] : c;
|
|
3033
3033
|
}, []);
|
|
3034
|
-
return $e(e, l, d,
|
|
3034
|
+
return $e(e, l, d, r?.class, r?.className);
|
|
3035
3035
|
}, gr = h(
|
|
3036
3036
|
[
|
|
3037
3037
|
"inline-flex items-center justify-center font-bold",
|
|
@@ -3188,11 +3188,11 @@ const Ve = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = f, h
|
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
3190
|
), nt = m.forwardRef(
|
|
3191
|
-
({ children: e, className: s, tone:
|
|
3191
|
+
({ children: e, className: s, tone: r, variant: t, size: n, iconOnly: a, ...l }, i) => /* @__PURE__ */ m.createElement(
|
|
3192
3192
|
"button",
|
|
3193
3193
|
{
|
|
3194
3194
|
ref: i,
|
|
3195
|
-
className: pr(gr({ tone:
|
|
3195
|
+
className: pr(gr({ tone: r, variant: t, size: n, iconOnly: a }), s),
|
|
3196
3196
|
...l
|
|
3197
3197
|
},
|
|
3198
3198
|
e
|
|
@@ -3256,15 +3256,15 @@ const hr = h(
|
|
|
3256
3256
|
({
|
|
3257
3257
|
id: e,
|
|
3258
3258
|
checked: s,
|
|
3259
|
-
indeterminate:
|
|
3260
|
-
disabled:
|
|
3259
|
+
indeterminate: r = !1,
|
|
3260
|
+
disabled: t,
|
|
3261
3261
|
size: n = "md",
|
|
3262
3262
|
onCheckedChange: a,
|
|
3263
3263
|
className: l
|
|
3264
3264
|
}, i) => {
|
|
3265
3265
|
const d = () => {
|
|
3266
|
-
|
|
3267
|
-
}, c = xr[n],
|
|
3266
|
+
t || a?.(!s);
|
|
3267
|
+
}, c = xr[n], p = t ? "text-white/80" : "text-current";
|
|
3268
3268
|
return /* @__PURE__ */ o.createElement(
|
|
3269
3269
|
"button",
|
|
3270
3270
|
{
|
|
@@ -3272,22 +3272,22 @@ const hr = h(
|
|
|
3272
3272
|
ref: i,
|
|
3273
3273
|
type: "button",
|
|
3274
3274
|
role: "checkbox",
|
|
3275
|
-
"aria-checked":
|
|
3276
|
-
disabled:
|
|
3275
|
+
"aria-checked": r ? "mixed" : s,
|
|
3276
|
+
disabled: t,
|
|
3277
3277
|
onClick: d,
|
|
3278
3278
|
className: f(
|
|
3279
|
-
hr({ size: n, checked: s, disabled:
|
|
3279
|
+
hr({ size: n, checked: s, disabled: t }),
|
|
3280
3280
|
l
|
|
3281
3281
|
)
|
|
3282
3282
|
},
|
|
3283
|
-
s && !
|
|
3283
|
+
s && !r && /* @__PURE__ */ o.createElement(
|
|
3284
3284
|
"svg",
|
|
3285
3285
|
{
|
|
3286
3286
|
width: c.width,
|
|
3287
3287
|
height: c.height,
|
|
3288
3288
|
viewBox: "0 0 14 10",
|
|
3289
3289
|
fill: "none",
|
|
3290
|
-
className:
|
|
3290
|
+
className: p
|
|
3291
3291
|
},
|
|
3292
3292
|
/* @__PURE__ */ o.createElement(
|
|
3293
3293
|
"path",
|
|
@@ -3300,11 +3300,11 @@ const hr = h(
|
|
|
3300
3300
|
}
|
|
3301
3301
|
)
|
|
3302
3302
|
),
|
|
3303
|
-
|
|
3303
|
+
r && /* @__PURE__ */ o.createElement(
|
|
3304
3304
|
"span",
|
|
3305
3305
|
{
|
|
3306
3306
|
className: f(
|
|
3307
|
-
|
|
3307
|
+
p,
|
|
3308
3308
|
"bg-current rounded-sm",
|
|
3309
3309
|
n === "sm" && "h-0.5 w-3",
|
|
3310
3310
|
(n === "md" || n === "lg") && "h-0.5 w-4"
|
|
@@ -3318,19 +3318,19 @@ vr.displayName = "Checkbox";
|
|
|
3318
3318
|
const lt = o.createContext(null), oa = ({
|
|
3319
3319
|
value: e,
|
|
3320
3320
|
defaultValue: s,
|
|
3321
|
-
onValueChange:
|
|
3322
|
-
children:
|
|
3321
|
+
onValueChange: r,
|
|
3322
|
+
children: t,
|
|
3323
3323
|
className: n
|
|
3324
3324
|
}) => {
|
|
3325
3325
|
const [a, l] = o.useState(s), i = e ?? a, d = (c) => {
|
|
3326
|
-
l(c),
|
|
3326
|
+
l(c), r?.(c);
|
|
3327
3327
|
};
|
|
3328
3328
|
return /* @__PURE__ */ o.createElement(
|
|
3329
3329
|
lt.Provider,
|
|
3330
3330
|
{
|
|
3331
3331
|
value: { value: i, onValueChange: d }
|
|
3332
3332
|
},
|
|
3333
|
-
/* @__PURE__ */ o.createElement("div", { role: "radiogroup", className: n },
|
|
3333
|
+
/* @__PURE__ */ o.createElement("div", { role: "radiogroup", className: n }, t)
|
|
3334
3334
|
);
|
|
3335
3335
|
}, yr = () => {
|
|
3336
3336
|
const e = o.useContext(lt);
|
|
@@ -3402,7 +3402,7 @@ const lt = o.createContext(null), oa = ({
|
|
|
3402
3402
|
checked: !1
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
3405
|
-
), Er = o.forwardRef(({ id: e, value: s, disabled:
|
|
3405
|
+
), Er = o.forwardRef(({ id: e, value: s, disabled: r, size: t = "md", className: n }, a) => {
|
|
3406
3406
|
const { value: l, onValueChange: i } = yr(), d = l === s;
|
|
3407
3407
|
return /* @__PURE__ */ o.createElement(
|
|
3408
3408
|
"button",
|
|
@@ -3412,12 +3412,12 @@ const lt = o.createContext(null), oa = ({
|
|
|
3412
3412
|
type: "button",
|
|
3413
3413
|
role: "radio",
|
|
3414
3414
|
"aria-checked": d,
|
|
3415
|
-
disabled:
|
|
3415
|
+
disabled: r,
|
|
3416
3416
|
onClick: () => {
|
|
3417
|
-
|
|
3417
|
+
r || i?.(s);
|
|
3418
3418
|
},
|
|
3419
3419
|
className: f(
|
|
3420
|
-
wr({ size:
|
|
3420
|
+
wr({ size: t, checked: d, disabled: r }),
|
|
3421
3421
|
n
|
|
3422
3422
|
)
|
|
3423
3423
|
},
|
|
@@ -3425,7 +3425,7 @@ const lt = o.createContext(null), oa = ({
|
|
|
3425
3425
|
"span",
|
|
3426
3426
|
{
|
|
3427
3427
|
className: kr({
|
|
3428
|
-
size:
|
|
3428
|
+
size: t,
|
|
3429
3429
|
checked: d
|
|
3430
3430
|
})
|
|
3431
3431
|
}
|
|
@@ -3522,8 +3522,8 @@ const Nr = h(
|
|
|
3522
3522
|
({
|
|
3523
3523
|
checked: e = !1,
|
|
3524
3524
|
size: s = "md",
|
|
3525
|
-
variant:
|
|
3526
|
-
disabled:
|
|
3525
|
+
variant: r = "default",
|
|
3526
|
+
disabled: t,
|
|
3527
3527
|
onCheckedChange: n,
|
|
3528
3528
|
className: a
|
|
3529
3529
|
}, l) => /* @__PURE__ */ o.createElement(
|
|
@@ -3533,12 +3533,12 @@ const Nr = h(
|
|
|
3533
3533
|
type: "button",
|
|
3534
3534
|
role: "switch",
|
|
3535
3535
|
"aria-checked": e,
|
|
3536
|
-
disabled:
|
|
3536
|
+
disabled: t,
|
|
3537
3537
|
onClick: () => {
|
|
3538
|
-
|
|
3538
|
+
t || n?.(!e);
|
|
3539
3539
|
},
|
|
3540
3540
|
className: f(
|
|
3541
|
-
Nr({ size: s, checked: e, disabled:
|
|
3541
|
+
Nr({ size: s, checked: e, disabled: t, variant: r }),
|
|
3542
3542
|
a
|
|
3543
3543
|
)
|
|
3544
3544
|
},
|
|
@@ -3547,7 +3547,7 @@ const Nr = h(
|
|
|
3547
3547
|
{
|
|
3548
3548
|
className: Cr({
|
|
3549
3549
|
size: s,
|
|
3550
|
-
disabled:
|
|
3550
|
+
disabled: t
|
|
3551
3551
|
})
|
|
3552
3552
|
}
|
|
3553
3553
|
)
|
|
@@ -3607,51 +3607,51 @@ const zr = h(
|
|
|
3607
3607
|
}), me = 12, Br = ({
|
|
3608
3608
|
content: e,
|
|
3609
3609
|
supportingText: s,
|
|
3610
|
-
side:
|
|
3611
|
-
open:
|
|
3610
|
+
side: r = "top",
|
|
3611
|
+
open: t,
|
|
3612
3612
|
defaultOpen: n = !1,
|
|
3613
3613
|
disabled: a = !1,
|
|
3614
3614
|
delay: l = 0,
|
|
3615
3615
|
className: i,
|
|
3616
3616
|
children: d
|
|
3617
3617
|
}) => {
|
|
3618
|
-
const [c,
|
|
3619
|
-
const
|
|
3620
|
-
if (!
|
|
3621
|
-
const
|
|
3622
|
-
switch (
|
|
3618
|
+
const [c, p] = o.useState(n), [g, x] = o.useState(null), w = t ?? c, z = o.useRef(null), E = o.useRef(null), C = o.useCallback(() => {
|
|
3619
|
+
const S = z.current;
|
|
3620
|
+
if (!S) return null;
|
|
3621
|
+
const L = S.getBoundingClientRect();
|
|
3622
|
+
switch (r) {
|
|
3623
3623
|
case "top":
|
|
3624
|
-
return { top:
|
|
3624
|
+
return { top: L.top - me, left: L.left + L.width / 2 };
|
|
3625
3625
|
case "bottom":
|
|
3626
|
-
return { top:
|
|
3626
|
+
return { top: L.bottom + me, left: L.left + L.width / 2 };
|
|
3627
3627
|
case "left":
|
|
3628
|
-
return { top:
|
|
3628
|
+
return { top: L.top + L.height / 2, left: L.left - me };
|
|
3629
3629
|
default:
|
|
3630
|
-
return { top:
|
|
3630
|
+
return { top: L.top + L.height / 2, left: L.right + me };
|
|
3631
3631
|
}
|
|
3632
|
-
}, [
|
|
3633
|
-
if (a || !
|
|
3634
|
-
const
|
|
3635
|
-
x(
|
|
3632
|
+
}, [r]), N = () => {
|
|
3633
|
+
if (a || !z.current) return;
|
|
3634
|
+
const S = () => {
|
|
3635
|
+
x(C()), p(!0);
|
|
3636
3636
|
};
|
|
3637
|
-
l > 0 ? E.current = window.setTimeout(
|
|
3637
|
+
l > 0 ? E.current = window.setTimeout(S, l) : S();
|
|
3638
3638
|
};
|
|
3639
3639
|
o.useEffect(() => {
|
|
3640
|
-
if (!w || !
|
|
3641
|
-
const
|
|
3642
|
-
|
|
3643
|
-
const
|
|
3644
|
-
return
|
|
3645
|
-
|
|
3640
|
+
if (!w || !z.current) return;
|
|
3641
|
+
const S = () => x(C());
|
|
3642
|
+
S();
|
|
3643
|
+
const L = new ResizeObserver(S);
|
|
3644
|
+
return L.observe(z.current), window.addEventListener("scroll", S, !0), window.addEventListener("resize", S), () => {
|
|
3645
|
+
L.disconnect(), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S);
|
|
3646
3646
|
};
|
|
3647
|
-
}, [w,
|
|
3647
|
+
}, [w, C]);
|
|
3648
3648
|
const k = () => {
|
|
3649
|
-
E.current && (clearTimeout(E.current), E.current = null),
|
|
3649
|
+
E.current && (clearTimeout(E.current), E.current = null), p(!1);
|
|
3650
3650
|
};
|
|
3651
3651
|
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(
|
|
3652
3652
|
"span",
|
|
3653
3653
|
{
|
|
3654
|
-
ref:
|
|
3654
|
+
ref: z,
|
|
3655
3655
|
className: "inline-flex",
|
|
3656
3656
|
onMouseEnter: N,
|
|
3657
3657
|
onMouseLeave: k,
|
|
@@ -3660,16 +3660,16 @@ const zr = h(
|
|
|
3660
3660
|
tabIndex: 0
|
|
3661
3661
|
},
|
|
3662
3662
|
d
|
|
3663
|
-
), w &&
|
|
3663
|
+
), w && g && wt(
|
|
3664
3664
|
/* @__PURE__ */ o.createElement(
|
|
3665
3665
|
"div",
|
|
3666
3666
|
{
|
|
3667
3667
|
role: "tooltip",
|
|
3668
3668
|
className: "fixed z-[9999] pointer-events-none",
|
|
3669
3669
|
style: {
|
|
3670
|
-
top:
|
|
3671
|
-
left:
|
|
3672
|
-
transform:
|
|
3670
|
+
top: g.top,
|
|
3671
|
+
left: g.left,
|
|
3672
|
+
transform: r === "top" ? "translate(-50%, -100%)" : r === "bottom" ? "translate(-50%, 0)" : r === "left" ? "translate(-100%, -50%)" : "translate(0, -50%)"
|
|
3673
3673
|
}
|
|
3674
3674
|
},
|
|
3675
3675
|
/* @__PURE__ */ o.createElement(
|
|
@@ -3677,7 +3677,7 @@ const zr = h(
|
|
|
3677
3677
|
{
|
|
3678
3678
|
className: f(
|
|
3679
3679
|
zr({
|
|
3680
|
-
side:
|
|
3680
|
+
side: r,
|
|
3681
3681
|
hasSupportingText: !!s
|
|
3682
3682
|
}),
|
|
3683
3683
|
i
|
|
@@ -3685,7 +3685,7 @@ const zr = h(
|
|
|
3685
3685
|
},
|
|
3686
3686
|
e,
|
|
3687
3687
|
s && /* @__PURE__ */ o.createElement("p", { className: Lr }, s),
|
|
3688
|
-
/* @__PURE__ */ o.createElement("span", { className: Tr({ side:
|
|
3688
|
+
/* @__PURE__ */ o.createElement("span", { className: Tr({ side: r }) })
|
|
3689
3689
|
)
|
|
3690
3690
|
),
|
|
3691
3691
|
document.body
|
|
@@ -3824,32 +3824,32 @@ const Ir = {
|
|
|
3824
3824
|
}
|
|
3825
3825
|
}
|
|
3826
3826
|
), Vr = "shrink-0 rounded-[3px] bg-light-100 px-1 text-light-800", $r = "shrink-0 rounded-[3px] p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", it = /^#([0-9a-f]{6})$/i, ct = (e) => it.test(e.trim()), dt = (e, s) => {
|
|
3827
|
-
const
|
|
3828
|
-
if (!
|
|
3829
|
-
const
|
|
3827
|
+
const r = it.exec(e.trim());
|
|
3828
|
+
if (!r) return;
|
|
3829
|
+
const t = parseInt(r[1], 16), n = t >> 16 & 255, a = t >> 8 & 255, l = t & 255;
|
|
3830
3830
|
return `rgba(${n}, ${a}, ${l}, ${s})`;
|
|
3831
3831
|
}, ut = ({
|
|
3832
3832
|
children: e,
|
|
3833
3833
|
size: s = "sm",
|
|
3834
|
-
shape:
|
|
3835
|
-
icon:
|
|
3834
|
+
shape: r = "rounded",
|
|
3835
|
+
icon: t,
|
|
3836
3836
|
checked: n,
|
|
3837
3837
|
onCheckedChange: a,
|
|
3838
3838
|
onClose: l,
|
|
3839
3839
|
count: i,
|
|
3840
3840
|
disabled: d = !1,
|
|
3841
3841
|
className: c,
|
|
3842
|
-
color:
|
|
3843
|
-
customColor:
|
|
3842
|
+
color: p = "gray",
|
|
3843
|
+
customColor: g
|
|
3844
3844
|
}) => {
|
|
3845
|
-
const x = a !== void 0, w = n !== void 0 || !!
|
|
3846
|
-
borderColor:
|
|
3847
|
-
backgroundColor: dt(
|
|
3848
|
-
color:
|
|
3845
|
+
const x = a !== void 0, w = n !== void 0 || !!t, z = !!l || i !== void 0, E = Ir[p], C = !!(g && ct(g)), N = C ? {
|
|
3846
|
+
borderColor: g,
|
|
3847
|
+
backgroundColor: dt(g, 0.12),
|
|
3848
|
+
color: g
|
|
3849
3849
|
} : void 0, k = () => {
|
|
3850
3850
|
d || a?.(!n);
|
|
3851
|
-
},
|
|
3852
|
-
!x || d || (
|
|
3851
|
+
}, S = (L) => {
|
|
3852
|
+
!x || d || (L.key === "Enter" || L.key === " ") && (L.preventDefault(), k());
|
|
3853
3853
|
};
|
|
3854
3854
|
return /* @__PURE__ */ o.createElement(
|
|
3855
3855
|
"div",
|
|
@@ -3859,20 +3859,20 @@ const Ir = {
|
|
|
3859
3859
|
"aria-disabled": d || void 0,
|
|
3860
3860
|
tabIndex: x && !d ? 0 : void 0,
|
|
3861
3861
|
onClick: x ? k : void 0,
|
|
3862
|
-
onKeyDown:
|
|
3862
|
+
onKeyDown: S,
|
|
3863
3863
|
style: N,
|
|
3864
3864
|
className: f(
|
|
3865
3865
|
Ar({
|
|
3866
3866
|
size: s,
|
|
3867
|
-
shape:
|
|
3867
|
+
shape: r,
|
|
3868
3868
|
hasLeading: w,
|
|
3869
|
-
hasTrailing:
|
|
3869
|
+
hasTrailing: z,
|
|
3870
3870
|
interactive: x,
|
|
3871
3871
|
disabled: d
|
|
3872
3872
|
}),
|
|
3873
|
-
!
|
|
3874
|
-
!
|
|
3875
|
-
!
|
|
3873
|
+
!C && E.bg,
|
|
3874
|
+
!C && E.border,
|
|
3875
|
+
!C && E.text,
|
|
3876
3876
|
c
|
|
3877
3877
|
)
|
|
3878
3878
|
},
|
|
@@ -3881,9 +3881,9 @@ const Ir = {
|
|
|
3881
3881
|
{
|
|
3882
3882
|
className: f(
|
|
3883
3883
|
Rr({ checked: n }),
|
|
3884
|
-
!n && !
|
|
3884
|
+
!n && !C && E.border
|
|
3885
3885
|
),
|
|
3886
|
-
style: !n &&
|
|
3886
|
+
style: !n && C ? { borderColor: g } : void 0
|
|
3887
3887
|
},
|
|
3888
3888
|
n && /* @__PURE__ */ o.createElement(
|
|
3889
3889
|
"svg",
|
|
@@ -3904,7 +3904,7 @@ const Ir = {
|
|
|
3904
3904
|
)
|
|
3905
3905
|
)
|
|
3906
3906
|
),
|
|
3907
|
-
|
|
3907
|
+
t,
|
|
3908
3908
|
/* @__PURE__ */ o.createElement("span", { className: "whitespace-nowrap" }, e),
|
|
3909
3909
|
i !== void 0 && /* @__PURE__ */ o.createElement("span", { className: Vr }, i),
|
|
3910
3910
|
l && /* @__PURE__ */ o.createElement(
|
|
@@ -3913,8 +3913,8 @@ const Ir = {
|
|
|
3913
3913
|
type: "button",
|
|
3914
3914
|
"aria-label": "Remove",
|
|
3915
3915
|
disabled: d,
|
|
3916
|
-
onClick: (
|
|
3917
|
-
|
|
3916
|
+
onClick: (L) => {
|
|
3917
|
+
L.stopPropagation(), l();
|
|
3918
3918
|
},
|
|
3919
3919
|
className: $r
|
|
3920
3920
|
},
|
|
@@ -4144,26 +4144,26 @@ const Or = {
|
|
|
4144
4144
|
), _r = "size-4 shrink-0 rounded border bg-white", jr = "shrink-0 rounded p-0.5 hover:bg-black/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400", Wr = ({
|
|
4145
4145
|
children: e,
|
|
4146
4146
|
size: s = "sm",
|
|
4147
|
-
shape:
|
|
4148
|
-
variant:
|
|
4147
|
+
shape: r = "pill",
|
|
4148
|
+
variant: t = "solid",
|
|
4149
4149
|
color: n = "brand",
|
|
4150
4150
|
customColor: a,
|
|
4151
4151
|
modern: l = !1,
|
|
4152
4152
|
icon: i,
|
|
4153
4153
|
trailingIcon: d,
|
|
4154
4154
|
checked: c,
|
|
4155
|
-
onCheckedChange:
|
|
4156
|
-
onClose:
|
|
4155
|
+
onCheckedChange: p,
|
|
4156
|
+
onClose: g,
|
|
4157
4157
|
iconOnly: x = !1,
|
|
4158
4158
|
disabled: w = !1,
|
|
4159
|
-
className:
|
|
4159
|
+
className: z
|
|
4160
4160
|
}) => {
|
|
4161
|
-
const E =
|
|
4161
|
+
const E = p !== void 0, C = c !== void 0 || !!i, N = !!g || !!d, k = Or[n], S = !!(a && ct(a)), L = S ? {
|
|
4162
4162
|
borderColor: a,
|
|
4163
4163
|
color: a,
|
|
4164
|
-
backgroundColor:
|
|
4164
|
+
backgroundColor: t === "outline" ? "transparent" : dt(a, 0.1)
|
|
4165
4165
|
} : void 0, R = () => {
|
|
4166
|
-
w ||
|
|
4166
|
+
w || p?.(!c);
|
|
4167
4167
|
}, B = (I) => {
|
|
4168
4168
|
!E || w || (I.key === "Enter" || I.key === " ") && (I.preventDefault(), R());
|
|
4169
4169
|
};
|
|
@@ -4176,20 +4176,20 @@ const Or = {
|
|
|
4176
4176
|
tabIndex: E && !w ? 0 : void 0,
|
|
4177
4177
|
onClick: E ? R : void 0,
|
|
4178
4178
|
onKeyDown: B,
|
|
4179
|
-
style:
|
|
4179
|
+
style: L,
|
|
4180
4180
|
className: f(
|
|
4181
4181
|
Mr({
|
|
4182
4182
|
size: s,
|
|
4183
|
-
shape:
|
|
4183
|
+
shape: r,
|
|
4184
4184
|
modern: l,
|
|
4185
|
-
hasLeading:
|
|
4185
|
+
hasLeading: C,
|
|
4186
4186
|
hasTrailing: N,
|
|
4187
4187
|
iconOnly: x,
|
|
4188
4188
|
interactive: E,
|
|
4189
4189
|
disabled: w
|
|
4190
4190
|
}),
|
|
4191
|
-
!
|
|
4192
|
-
|
|
4191
|
+
!S && (t === "outline" ? f("bg-transparent", k.outlineBorder, k.outlineText) : f(k.solidBg, k.solidBorder, k.solidText)),
|
|
4192
|
+
z
|
|
4193
4193
|
)
|
|
4194
4194
|
},
|
|
4195
4195
|
c !== void 0 && /* @__PURE__ */ o.createElement(
|
|
@@ -4197,9 +4197,9 @@ const Or = {
|
|
|
4197
4197
|
{
|
|
4198
4198
|
className: f(
|
|
4199
4199
|
_r,
|
|
4200
|
-
c ? "bg-primary-500 border-primary-500" : !
|
|
4200
|
+
c ? "bg-primary-500 border-primary-500" : !S && k.solidBorder
|
|
4201
4201
|
),
|
|
4202
|
-
style: !c &&
|
|
4202
|
+
style: !c && S ? { borderColor: a } : void 0
|
|
4203
4203
|
},
|
|
4204
4204
|
c && /* @__PURE__ */ o.createElement("svg", { viewBox: "0 0 14 10", fill: "none", className: "size-full text-white" }, /* @__PURE__ */ o.createElement(
|
|
4205
4205
|
"path",
|
|
@@ -4215,14 +4215,14 @@ const Or = {
|
|
|
4215
4215
|
i,
|
|
4216
4216
|
!x && /* @__PURE__ */ o.createElement("span", { className: "whitespace-nowrap" }, e),
|
|
4217
4217
|
d,
|
|
4218
|
-
|
|
4218
|
+
g && /* @__PURE__ */ o.createElement(
|
|
4219
4219
|
"button",
|
|
4220
4220
|
{
|
|
4221
4221
|
type: "button",
|
|
4222
4222
|
"aria-label": "Remove",
|
|
4223
4223
|
disabled: w,
|
|
4224
4224
|
onClick: (I) => {
|
|
4225
|
-
I.stopPropagation(),
|
|
4225
|
+
I.stopPropagation(), g();
|
|
4226
4226
|
},
|
|
4227
4227
|
className: jr
|
|
4228
4228
|
},
|
|
@@ -4291,31 +4291,31 @@ const Pr = {
|
|
|
4291
4291
|
}, Dr = ({
|
|
4292
4292
|
badgeLabel: e,
|
|
4293
4293
|
children: s,
|
|
4294
|
-
size:
|
|
4295
|
-
theme:
|
|
4294
|
+
size: r = "md",
|
|
4295
|
+
theme: t = "light",
|
|
4296
4296
|
color: n = "brand",
|
|
4297
4297
|
badgePosition: a = "leading",
|
|
4298
4298
|
icon: l,
|
|
4299
4299
|
onClick: i,
|
|
4300
4300
|
className: d
|
|
4301
4301
|
}) => {
|
|
4302
|
-
const c = Pr[n],
|
|
4302
|
+
const c = Pr[n], p = Gr[r], g = t === "modern", x = t === "outline", w = f(
|
|
4303
4303
|
"inline-flex items-center border transition-colors duration-150",
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4304
|
+
p.gap,
|
|
4305
|
+
p.outerPad[a],
|
|
4306
|
+
g ? "rounded-lg bg-light-50 border-light-200 shadow-xs" : x ? f("rounded-full bg-white border-[1.5px]", c.border500) : f("rounded-full", c.bg50, c.border200, c.hoverBg100),
|
|
4307
4307
|
i && "cursor-pointer",
|
|
4308
4308
|
d
|
|
4309
|
-
),
|
|
4309
|
+
), z = f(
|
|
4310
4310
|
"inline-flex shrink-0 items-center gap-1 border font-medium whitespace-nowrap",
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4311
|
+
p.chipPad,
|
|
4312
|
+
p.text,
|
|
4313
|
+
g ? "rounded-md bg-white border-light-200 text-light-800" : x ? f("rounded-full bg-white border-[1.5px]", c.border500, c.text500) : f("rounded-full bg-white", c.border200, c.text500)
|
|
4314
4314
|
), E = f(
|
|
4315
4315
|
"inline-flex items-center gap-1 font-medium",
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
),
|
|
4316
|
+
p.text,
|
|
4317
|
+
g ? "text-light-800" : c.text500
|
|
4318
|
+
), C = /* @__PURE__ */ o.createElement("span", { className: z }, g && /* @__PURE__ */ o.createElement("span", { className: "size-2 shrink-0 rounded-full bg-light-400" }), e);
|
|
4319
4319
|
return /* @__PURE__ */ o.createElement(
|
|
4320
4320
|
"div",
|
|
4321
4321
|
{
|
|
@@ -4324,14 +4324,14 @@ const Pr = {
|
|
|
4324
4324
|
onClick: i,
|
|
4325
4325
|
className: w
|
|
4326
4326
|
},
|
|
4327
|
-
a === "leading" &&
|
|
4327
|
+
a === "leading" && C,
|
|
4328
4328
|
/* @__PURE__ */ o.createElement("span", { className: E }, s, l),
|
|
4329
|
-
a === "trailing" &&
|
|
4329
|
+
a === "trailing" && C
|
|
4330
4330
|
);
|
|
4331
4331
|
};
|
|
4332
4332
|
Dr.displayName = "BadgeGroup";
|
|
4333
4333
|
const Fr = ({ size: e }) => {
|
|
4334
|
-
const s = e * 0.09,
|
|
4334
|
+
const s = e * 0.09, r = (e - s) / 2, t = 2 * Math.PI * r;
|
|
4335
4335
|
return /* @__PURE__ */ o.createElement(
|
|
4336
4336
|
"svg",
|
|
4337
4337
|
{
|
|
@@ -4346,7 +4346,7 @@ const Fr = ({ size: e }) => {
|
|
|
4346
4346
|
{
|
|
4347
4347
|
cx: e / 2,
|
|
4348
4348
|
cy: e / 2,
|
|
4349
|
-
r
|
|
4349
|
+
r,
|
|
4350
4350
|
strokeWidth: s,
|
|
4351
4351
|
className: "stroke-light-100"
|
|
4352
4352
|
}
|
|
@@ -4356,16 +4356,16 @@ const Fr = ({ size: e }) => {
|
|
|
4356
4356
|
{
|
|
4357
4357
|
cx: e / 2,
|
|
4358
4358
|
cy: e / 2,
|
|
4359
|
-
r
|
|
4359
|
+
r,
|
|
4360
4360
|
strokeWidth: s,
|
|
4361
4361
|
strokeLinecap: "round",
|
|
4362
|
-
strokeDasharray: `${
|
|
4362
|
+
strokeDasharray: `${t * 0.25} ${t}`,
|
|
4363
4363
|
className: "stroke-primary-600"
|
|
4364
4364
|
}
|
|
4365
4365
|
)
|
|
4366
4366
|
);
|
|
4367
4367
|
}, Hr = ({ size: e }) => {
|
|
4368
|
-
const s = o.useId(),
|
|
4368
|
+
const s = o.useId(), r = e * 0.125, t = (e - r) / 2, n = 2 * Math.PI * t;
|
|
4369
4369
|
return /* @__PURE__ */ o.createElement(
|
|
4370
4370
|
"svg",
|
|
4371
4371
|
{
|
|
@@ -4381,8 +4381,8 @@ const Fr = ({ size: e }) => {
|
|
|
4381
4381
|
{
|
|
4382
4382
|
cx: e / 2,
|
|
4383
4383
|
cy: e / 2,
|
|
4384
|
-
r,
|
|
4385
|
-
strokeWidth:
|
|
4384
|
+
r: t,
|
|
4385
|
+
strokeWidth: r,
|
|
4386
4386
|
className: "stroke-light-100"
|
|
4387
4387
|
}
|
|
4388
4388
|
),
|
|
@@ -4391,8 +4391,8 @@ const Fr = ({ size: e }) => {
|
|
|
4391
4391
|
{
|
|
4392
4392
|
cx: e / 2,
|
|
4393
4393
|
cy: e / 2,
|
|
4394
|
-
r,
|
|
4395
|
-
strokeWidth:
|
|
4394
|
+
r: t,
|
|
4395
|
+
strokeWidth: r,
|
|
4396
4396
|
strokeLinecap: "round",
|
|
4397
4397
|
stroke: `url(#${s})`,
|
|
4398
4398
|
strokeDasharray: `${n * 0.75} ${n}`
|
|
@@ -4400,7 +4400,7 @@ const Fr = ({ size: e }) => {
|
|
|
4400
4400
|
)
|
|
4401
4401
|
);
|
|
4402
4402
|
}, Ur = ({ size: e }) => {
|
|
4403
|
-
const
|
|
4403
|
+
const r = Math.max(e * 0.1, 3), t = (e - r) / 2;
|
|
4404
4404
|
return /* @__PURE__ */ o.createElement(
|
|
4405
4405
|
"div",
|
|
4406
4406
|
{
|
|
@@ -4415,12 +4415,12 @@ const Fr = ({ size: e }) => {
|
|
|
4415
4415
|
key: a,
|
|
4416
4416
|
className: "absolute rounded-full bg-primary-600 top-1/2 left-1/2",
|
|
4417
4417
|
style: {
|
|
4418
|
-
width:
|
|
4419
|
-
height:
|
|
4418
|
+
width: r,
|
|
4419
|
+
height: r,
|
|
4420
4420
|
opacity: i,
|
|
4421
|
-
marginTop: -
|
|
4422
|
-
marginLeft: -
|
|
4423
|
-
transform: `rotate(${l}deg) translate(${
|
|
4421
|
+
marginTop: -r / 2,
|
|
4422
|
+
marginLeft: -r / 2,
|
|
4423
|
+
transform: `rotate(${l}deg) translate(${t}px) rotate(${-l}deg)`
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
);
|
|
@@ -4434,8 +4434,8 @@ const Fr = ({ size: e }) => {
|
|
|
4434
4434
|
}, Kr = ({
|
|
4435
4435
|
size: e = "sm",
|
|
4436
4436
|
style: s = "line-simple",
|
|
4437
|
-
supportingText:
|
|
4438
|
-
label:
|
|
4437
|
+
supportingText: r = !0,
|
|
4438
|
+
label: t = "Loading...",
|
|
4439
4439
|
className: n
|
|
4440
4440
|
}) => {
|
|
4441
4441
|
const { box: a, gapClass: l, textClass: i } = Xr[e];
|
|
@@ -4443,13 +4443,13 @@ const Fr = ({ size: e }) => {
|
|
|
4443
4443
|
"div",
|
|
4444
4444
|
{
|
|
4445
4445
|
role: "status",
|
|
4446
|
-
"aria-label": typeof
|
|
4446
|
+
"aria-label": typeof t == "string" ? t : "Loading",
|
|
4447
4447
|
className: f("inline-flex flex-col items-center", l, n)
|
|
4448
4448
|
},
|
|
4449
4449
|
s === "line-simple" && /* @__PURE__ */ o.createElement(Fr, { size: a }),
|
|
4450
4450
|
s === "line-spinner" && /* @__PURE__ */ o.createElement(Hr, { size: a }),
|
|
4451
4451
|
s === "dot-circle" && /* @__PURE__ */ o.createElement(Ur, { size: a }),
|
|
4452
|
-
|
|
4452
|
+
r && /* @__PURE__ */ o.createElement(
|
|
4453
4453
|
"p",
|
|
4454
4454
|
{
|
|
4455
4455
|
className: f(
|
|
@@ -4457,7 +4457,7 @@ const Fr = ({ size: e }) => {
|
|
|
4457
4457
|
i
|
|
4458
4458
|
)
|
|
4459
4459
|
},
|
|
4460
|
-
|
|
4460
|
+
t
|
|
4461
4461
|
)
|
|
4462
4462
|
);
|
|
4463
4463
|
};
|
|
@@ -4499,14 +4499,14 @@ const mt = ({
|
|
|
4499
4499
|
}, Zr = "#17B26A", ge = ({
|
|
4500
4500
|
src: e,
|
|
4501
4501
|
alt: s,
|
|
4502
|
-
initials:
|
|
4503
|
-
size:
|
|
4502
|
+
initials: r,
|
|
4503
|
+
size: t = "md",
|
|
4504
4504
|
status: n = "none",
|
|
4505
4505
|
statusIcon: a,
|
|
4506
4506
|
contrastBorder: l = !0,
|
|
4507
4507
|
className: i
|
|
4508
4508
|
}) => {
|
|
4509
|
-
const { box: d, borderWidth: c, statusSize:
|
|
4509
|
+
const { box: d, borderWidth: c, statusSize: p, badgeSize: g, textClass: x } = qr[t], w = e ? "image" : r !== void 0 ? "initials" : "placeholder";
|
|
4510
4510
|
return /* @__PURE__ */ o.createElement(
|
|
4511
4511
|
"div",
|
|
4512
4512
|
{
|
|
@@ -4536,7 +4536,7 @@ const mt = ({
|
|
|
4536
4536
|
x
|
|
4537
4537
|
)
|
|
4538
4538
|
},
|
|
4539
|
-
|
|
4539
|
+
r
|
|
4540
4540
|
),
|
|
4541
4541
|
l && /* @__PURE__ */ o.createElement(
|
|
4542
4542
|
"div",
|
|
@@ -4550,8 +4550,8 @@ const mt = ({
|
|
|
4550
4550
|
{
|
|
4551
4551
|
className: "absolute bottom-0 right-0 rounded-full border-[1.5px] border-white",
|
|
4552
4552
|
style: {
|
|
4553
|
-
width:
|
|
4554
|
-
height:
|
|
4553
|
+
width: p,
|
|
4554
|
+
height: p,
|
|
4555
4555
|
backgroundColor: Zr
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
@@ -4560,7 +4560,7 @@ const mt = ({
|
|
|
4560
4560
|
"div",
|
|
4561
4561
|
{
|
|
4562
4562
|
className: "absolute bottom-0 right-0 flex items-center justify-center overflow-hidden rounded-full border-[1.5px] border-white bg-white",
|
|
4563
|
-
style: { width:
|
|
4563
|
+
style: { width: g, height: g }
|
|
4564
4564
|
},
|
|
4565
4565
|
a
|
|
4566
4566
|
),
|
|
@@ -4568,7 +4568,7 @@ const mt = ({
|
|
|
4568
4568
|
"div",
|
|
4569
4569
|
{
|
|
4570
4570
|
className: "absolute bottom-0 right-0",
|
|
4571
|
-
style: { width:
|
|
4571
|
+
style: { width: g, height: g }
|
|
4572
4572
|
},
|
|
4573
4573
|
/* @__PURE__ */ o.createElement(pt, { className: "size-full" })
|
|
4574
4574
|
)
|
|
@@ -4582,26 +4582,26 @@ const Yr = {
|
|
|
4582
4582
|
}, Qr = ({
|
|
4583
4583
|
avatars: e,
|
|
4584
4584
|
max: s,
|
|
4585
|
-
size:
|
|
4586
|
-
onAdd:
|
|
4585
|
+
size: r = "xs",
|
|
4586
|
+
onAdd: t,
|
|
4587
4587
|
className: n
|
|
4588
4588
|
}) => {
|
|
4589
|
-
const { box: a, overlap: l, contrastBorderWidth: i, textClass: d } = Yr[
|
|
4590
|
-
return /* @__PURE__ */ o.createElement("div", { className: f("inline-flex items-start gap-2", n) }, /* @__PURE__ */ o.createElement("div", { className: "flex items-start" }, c.map((
|
|
4589
|
+
const { box: a, overlap: l, contrastBorderWidth: i, textClass: d } = Yr[r], c = s ? e.slice(0, s) : e, p = s && e.length > s ? e.length - s : 0;
|
|
4590
|
+
return /* @__PURE__ */ o.createElement("div", { className: f("inline-flex items-start gap-2", n) }, /* @__PURE__ */ o.createElement("div", { className: "flex items-start" }, c.map((g, x) => /* @__PURE__ */ o.createElement(
|
|
4591
4591
|
"div",
|
|
4592
4592
|
{
|
|
4593
4593
|
key: x,
|
|
4594
4594
|
className: "relative shrink-0 overflow-hidden rounded-full border-[1.5px] border-white",
|
|
4595
4595
|
style: { width: a, height: a, marginRight: l }
|
|
4596
4596
|
},
|
|
4597
|
-
|
|
4597
|
+
g.src ? /* @__PURE__ */ o.createElement(
|
|
4598
4598
|
"img",
|
|
4599
4599
|
{
|
|
4600
|
-
src:
|
|
4601
|
-
alt:
|
|
4600
|
+
src: g.src,
|
|
4601
|
+
alt: g.alt ?? "",
|
|
4602
4602
|
className: "size-full object-cover"
|
|
4603
4603
|
}
|
|
4604
|
-
) : /* @__PURE__ */ o.createElement("div", { className: "flex size-full items-center justify-center bg-light-50 font-semibold text-light-500" },
|
|
4604
|
+
) : /* @__PURE__ */ o.createElement("div", { className: "flex size-full items-center justify-center bg-light-50 font-semibold text-light-500" }, g.initials),
|
|
4605
4605
|
/* @__PURE__ */ o.createElement(
|
|
4606
4606
|
"div",
|
|
4607
4607
|
{
|
|
@@ -4609,18 +4609,18 @@ const Yr = {
|
|
|
4609
4609
|
style: { borderWidth: i, borderStyle: "solid" }
|
|
4610
4610
|
}
|
|
4611
4611
|
)
|
|
4612
|
-
)),
|
|
4612
|
+
)), p > 0 && /* @__PURE__ */ o.createElement(
|
|
4613
4613
|
"div",
|
|
4614
4614
|
{
|
|
4615
4615
|
className: "relative flex shrink-0 items-center justify-center rounded-full border-2 border-white bg-light-100",
|
|
4616
4616
|
style: { width: a, height: a }
|
|
4617
4617
|
},
|
|
4618
|
-
/* @__PURE__ */ o.createElement("span", { className: f("font-semibold text-light-600", d) }, "+",
|
|
4619
|
-
)),
|
|
4618
|
+
/* @__PURE__ */ o.createElement("span", { className: f("font-semibold text-light-600", d) }, "+", p)
|
|
4619
|
+
)), t && /* @__PURE__ */ o.createElement(
|
|
4620
4620
|
"button",
|
|
4621
4621
|
{
|
|
4622
4622
|
type: "button",
|
|
4623
|
-
onClick:
|
|
4623
|
+
onClick: t,
|
|
4624
4624
|
"aria-label": "Add",
|
|
4625
4625
|
className: "flex shrink-0 items-center justify-center rounded-full border border-dashed border-light-300 bg-white text-light-500 hover:bg-light-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2",
|
|
4626
4626
|
style: { width: a, height: a }
|
|
@@ -4655,8 +4655,8 @@ const Jr = {
|
|
|
4655
4655
|
}, es = ({
|
|
4656
4656
|
name: e,
|
|
4657
4657
|
subtitle: s,
|
|
4658
|
-
src:
|
|
4659
|
-
initials:
|
|
4658
|
+
src: r,
|
|
4659
|
+
initials: t,
|
|
4660
4660
|
size: n = "xs",
|
|
4661
4661
|
status: a = "none",
|
|
4662
4662
|
statusIcon: l,
|
|
@@ -4666,8 +4666,8 @@ const Jr = {
|
|
|
4666
4666
|
return /* @__PURE__ */ o.createElement("div", { className: f("inline-flex items-center gap-2", i) }, /* @__PURE__ */ o.createElement(
|
|
4667
4667
|
ge,
|
|
4668
4668
|
{
|
|
4669
|
-
src:
|
|
4670
|
-
initials:
|
|
4669
|
+
src: r,
|
|
4670
|
+
initials: t,
|
|
4671
4671
|
size: n,
|
|
4672
4672
|
status: a,
|
|
4673
4673
|
statusIcon: l
|
|
@@ -4706,8 +4706,8 @@ const ts = {
|
|
|
4706
4706
|
}, rs = ({
|
|
4707
4707
|
src: e,
|
|
4708
4708
|
alt: s,
|
|
4709
|
-
initials:
|
|
4710
|
-
size:
|
|
4709
|
+
initials: r,
|
|
4710
|
+
size: t = "sm",
|
|
4711
4711
|
verified: n = !0,
|
|
4712
4712
|
contrastBorder: a = !0,
|
|
4713
4713
|
className: l
|
|
@@ -4716,11 +4716,11 @@ const ts = {
|
|
|
4716
4716
|
box: i,
|
|
4717
4717
|
ringWidth: d,
|
|
4718
4718
|
shadowClass: c,
|
|
4719
|
-
iconSize:
|
|
4720
|
-
textClass:
|
|
4719
|
+
iconSize: p,
|
|
4720
|
+
textClass: g,
|
|
4721
4721
|
verifiedSize: x,
|
|
4722
4722
|
verifiedOffset: w
|
|
4723
|
-
} = ts[
|
|
4723
|
+
} = ts[t], z = e ? "image" : r !== void 0 ? "initials" : "placeholder";
|
|
4724
4724
|
return /* @__PURE__ */ o.createElement(
|
|
4725
4725
|
"div",
|
|
4726
4726
|
{
|
|
@@ -4733,11 +4733,11 @@ const ts = {
|
|
|
4733
4733
|
className: f(
|
|
4734
4734
|
"absolute inset-0 overflow-hidden rounded-full border-white",
|
|
4735
4735
|
c,
|
|
4736
|
-
|
|
4736
|
+
z !== "image" && "bg-light-100"
|
|
4737
4737
|
),
|
|
4738
4738
|
style: { borderWidth: d, borderStyle: "solid" }
|
|
4739
4739
|
},
|
|
4740
|
-
|
|
4740
|
+
z === "image" && /* @__PURE__ */ o.createElement(
|
|
4741
4741
|
"img",
|
|
4742
4742
|
{
|
|
4743
4743
|
src: e,
|
|
@@ -4746,22 +4746,22 @@ const ts = {
|
|
|
4746
4746
|
}
|
|
4747
4747
|
),
|
|
4748
4748
|
a && /* @__PURE__ */ o.createElement("div", { className: "pointer-events-none absolute inset-0 rounded-full border border-black/[0.08]" }),
|
|
4749
|
-
|
|
4749
|
+
z === "placeholder" && /* @__PURE__ */ o.createElement("div", { className: "absolute inset-0 flex items-center justify-center" }, /* @__PURE__ */ o.createElement(
|
|
4750
4750
|
mt,
|
|
4751
4751
|
{
|
|
4752
4752
|
className: "text-light-300",
|
|
4753
|
-
style: { width:
|
|
4753
|
+
style: { width: p, height: p }
|
|
4754
4754
|
}
|
|
4755
4755
|
)),
|
|
4756
|
-
|
|
4756
|
+
z === "initials" && /* @__PURE__ */ o.createElement(
|
|
4757
4757
|
"div",
|
|
4758
4758
|
{
|
|
4759
4759
|
className: f(
|
|
4760
4760
|
"absolute inset-0 flex items-center justify-center font-semibold text-light-500",
|
|
4761
|
-
|
|
4761
|
+
g
|
|
4762
4762
|
)
|
|
4763
4763
|
},
|
|
4764
|
-
|
|
4764
|
+
r
|
|
4765
4765
|
)
|
|
4766
4766
|
),
|
|
4767
4767
|
n && /* @__PURE__ */ o.createElement(
|
|
@@ -4841,8 +4841,8 @@ const ss = {
|
|
|
4841
4841
|
}, is = ({
|
|
4842
4842
|
children: e,
|
|
4843
4843
|
variant: s = "button-primary",
|
|
4844
|
-
size:
|
|
4845
|
-
active:
|
|
4844
|
+
size: r = "sm",
|
|
4845
|
+
active: t = !1,
|
|
4846
4846
|
fullWidth: n = !1,
|
|
4847
4847
|
count: a,
|
|
4848
4848
|
disabled: l = !1,
|
|
@@ -4855,15 +4855,15 @@ const ss = {
|
|
|
4855
4855
|
{
|
|
4856
4856
|
type: "button",
|
|
4857
4857
|
role: "tab",
|
|
4858
|
-
"aria-selected":
|
|
4858
|
+
"aria-selected": t,
|
|
4859
4859
|
disabled: l,
|
|
4860
4860
|
onClick: i,
|
|
4861
4861
|
className: f(
|
|
4862
4862
|
"inline-flex items-center justify-center font-semibold transition-colors duration-150",
|
|
4863
|
-
ss[s][
|
|
4863
|
+
ss[s][r],
|
|
4864
4864
|
os[s],
|
|
4865
|
-
|
|
4866
|
-
!
|
|
4865
|
+
t ? c.active : c.inactive,
|
|
4866
|
+
!t && !l && c.hoverInactive,
|
|
4867
4867
|
c.hasFocusRing && "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white",
|
|
4868
4868
|
n && "w-full",
|
|
4869
4869
|
l ? "cursor-not-allowed opacity-60" : "cursor-pointer",
|
|
@@ -4878,8 +4878,8 @@ is.displayName = "Tab";
|
|
|
4878
4878
|
const cs = ({
|
|
4879
4879
|
children: e,
|
|
4880
4880
|
variant: s = "button-primary",
|
|
4881
|
-
orientation:
|
|
4882
|
-
boxed:
|
|
4881
|
+
orientation: r = "horizontal",
|
|
4882
|
+
boxed: t = !1,
|
|
4883
4883
|
className: n
|
|
4884
4884
|
}) => {
|
|
4885
4885
|
const { gapClass: a, hasHairline: l } = ls[s];
|
|
@@ -4887,13 +4887,13 @@ const cs = ({
|
|
|
4887
4887
|
"div",
|
|
4888
4888
|
{
|
|
4889
4889
|
role: "tablist",
|
|
4890
|
-
"aria-orientation":
|
|
4890
|
+
"aria-orientation": r,
|
|
4891
4891
|
className: f(
|
|
4892
4892
|
"inline-flex",
|
|
4893
|
-
|
|
4893
|
+
r === "vertical" ? "flex-col items-stretch" : "flex-row items-center",
|
|
4894
4894
|
a,
|
|
4895
|
-
|
|
4896
|
-
l &&
|
|
4895
|
+
t && "rounded-lg border border-light-200 bg-light-50 p-1",
|
|
4896
|
+
l && r === "horizontal" && !t && "border-b border-light-200",
|
|
4897
4897
|
n
|
|
4898
4898
|
)
|
|
4899
4899
|
},
|
|
@@ -4903,36 +4903,50 @@ const cs = ({
|
|
|
4903
4903
|
cs.displayName = "TabList";
|
|
4904
4904
|
const gt = 9, ee = 1, ds = 30;
|
|
4905
4905
|
function ft(e) {
|
|
4906
|
-
const s = gt,
|
|
4906
|
+
const s = gt, r = ee - e, t = r ? `calc(100% - ${r}px)` : "100%", n = `calc(100% - ${s + 1}px)`, a = `calc(100% - ${s}px)`;
|
|
4907
4907
|
return `shape(${[
|
|
4908
4908
|
`from ${-e}px 100%`,
|
|
4909
|
-
...
|
|
4910
|
-
`curve to ${s}px ${n} with ${s}px ${
|
|
4909
|
+
...r ? [`vline to ${t}`] : [],
|
|
4910
|
+
`curve to ${s}px ${n} with ${s}px ${t}`,
|
|
4911
4911
|
`vline to ${s - e}px`,
|
|
4912
4912
|
`curve to ${2 * s - e}px 0 with ${s}px 0`,
|
|
4913
4913
|
`hline to calc(100% - ${2 * s - e}px)`,
|
|
4914
4914
|
`curve to ${a} ${s - e}px with ${a} 0`,
|
|
4915
4915
|
`vline to ${n}`,
|
|
4916
|
-
`curve to ${e ? `calc(100% + ${e}px)` : "100%"} ${
|
|
4917
|
-
...
|
|
4916
|
+
`curve to ${e ? `calc(100% + ${e}px)` : "100%"} ${t} with ${a} ${t}`,
|
|
4917
|
+
...r ? ["vline to 100%"] : []
|
|
4918
4918
|
].join(", ")})`;
|
|
4919
4919
|
}
|
|
4920
4920
|
const us = ft(0), ms = ft(ee), ps = {
|
|
4921
4921
|
default: { box: "h-12 shrink-0", padX: ds },
|
|
4922
4922
|
"max-width": { box: "h-9 min-w-px flex-1", padX: gt }
|
|
4923
4923
|
}, gs = { clipPath: us, paddingInline: `${ee}px` }, fs = { paddingInline: `${ee}px` }, bs = o.forwardRef(
|
|
4924
|
-
({
|
|
4925
|
-
|
|
4924
|
+
({
|
|
4925
|
+
active: e = !1,
|
|
4926
|
+
type: s = "default",
|
|
4927
|
+
disabled: r = !1,
|
|
4928
|
+
unstyled: t = !1,
|
|
4929
|
+
iconLeft: n,
|
|
4930
|
+
trailing: a,
|
|
4931
|
+
tooltip: l,
|
|
4932
|
+
children: i,
|
|
4933
|
+
className: d,
|
|
4934
|
+
style: c,
|
|
4935
|
+
contentClassName: p,
|
|
4936
|
+
contentStyle: g,
|
|
4937
|
+
...x
|
|
4938
|
+
}, w) => {
|
|
4939
|
+
const z = !r && !e, { box: E, padX: C } = ps[s], N = e ? { clipPath: ms, paddingInline: `${C - ee}px` } : { paddingInline: `${C - ee}px` };
|
|
4926
4940
|
return /* @__PURE__ */ o.createElement(
|
|
4927
4941
|
"button",
|
|
4928
4942
|
{
|
|
4929
|
-
ref:
|
|
4930
|
-
title:
|
|
4931
|
-
...
|
|
4943
|
+
ref: w,
|
|
4944
|
+
title: l,
|
|
4945
|
+
...x,
|
|
4932
4946
|
type: "button",
|
|
4933
4947
|
role: "tab",
|
|
4934
4948
|
"aria-selected": e,
|
|
4935
|
-
disabled:
|
|
4949
|
+
disabled: r,
|
|
4936
4950
|
className: f(
|
|
4937
4951
|
// A *definite* height, not `h-full max-h-12`: the fill sizes itself off this, and
|
|
4938
4952
|
// a percentage can only resolve against a definite one. Left indefinite, the fill
|
|
@@ -4941,16 +4955,18 @@ const us = ft(0), ms = ft(ee), ps = {
|
|
|
4941
4955
|
//
|
|
4942
4956
|
// Padded 1px top, 0 bottom: the bottom edge stays open so it can merge into the
|
|
4943
4957
|
// divider line. `-mb-px` then drops the active tab onto that line.
|
|
4944
|
-
"group relative flex
|
|
4945
|
-
|
|
4946
|
-
t &&
|
|
4947
|
-
|
|
4958
|
+
"group relative flex transition-colors duration-150 focus-visible:outline-none",
|
|
4959
|
+
!t && "rounded-t-lg pt-px",
|
|
4960
|
+
!t && E,
|
|
4961
|
+
r && "cursor-not-allowed opacity-60",
|
|
4962
|
+
z && "cursor-pointer",
|
|
4948
4963
|
// An active tab already *has* an outline, so focus recolors that rather than
|
|
4949
4964
|
// stacking a ring outside the flares — which the clip-path would swallow.
|
|
4950
|
-
e && "-mb-px
|
|
4951
|
-
|
|
4965
|
+
!t && e && "-mb-px bg-light-200 focus-visible:bg-primary-400",
|
|
4966
|
+
e && "cursor-default",
|
|
4967
|
+
d
|
|
4952
4968
|
),
|
|
4953
|
-
style: { ...e ? gs : fs, ...
|
|
4969
|
+
style: t ? c : { ...e ? gs : fs, ...c }
|
|
4954
4970
|
},
|
|
4955
4971
|
/* @__PURE__ */ o.createElement(
|
|
4956
4972
|
"span",
|
|
@@ -4958,29 +4974,31 @@ const us = ft(0), ms = ft(ee), ps = {
|
|
|
4958
4974
|
className: f(
|
|
4959
4975
|
// No vertical padding: the height comes from the button above, and `items-center`
|
|
4960
4976
|
// centers the label in it. Padding here would push the fill past that height.
|
|
4961
|
-
"flex h-full w-full items-center justify-center gap-1 whitespace-nowrap
|
|
4977
|
+
"flex h-full w-full items-center justify-center gap-1 whitespace-nowrap text-caption-sm",
|
|
4978
|
+
!t && "rounded-t-lg",
|
|
4962
4979
|
// Unselected tabs carry no fill of their own — they read as part of the surface
|
|
4963
4980
|
// behind the row, which is what makes the selected one look lifted out of it.
|
|
4964
|
-
e ? "bg-white font-bold text-light-800" : "font-medium leading-4 text-light-600",
|
|
4965
|
-
|
|
4981
|
+
!t && (e ? "bg-white font-bold text-light-800" : "font-medium leading-4 text-light-600"),
|
|
4982
|
+
!t && z && "group-hover:bg-light-100 group-hover:text-light-800",
|
|
4966
4983
|
// No hairline to recolor here, so an inactive tab takes the ring instead — on
|
|
4967
4984
|
// the fill, which is the layer that actually paints. Rounding the bottom
|
|
4968
4985
|
// corners closes it into a pill.
|
|
4969
|
-
|
|
4986
|
+
!t && z && "group-focus-visible:rounded-b-lg group-focus-visible:ring-2 group-focus-visible:ring-primary-400 group-focus-visible:ring-offset-2",
|
|
4987
|
+
p
|
|
4970
4988
|
),
|
|
4971
|
-
style:
|
|
4989
|
+
style: t ? g : { ...N, ...g }
|
|
4972
4990
|
},
|
|
4973
|
-
|
|
4974
|
-
/* @__PURE__ */ o.createElement("span", { className: "overflow-hidden text-ellipsis" },
|
|
4975
|
-
|
|
4991
|
+
n && /* @__PURE__ */ o.createElement("span", { className: "shrink-0" }, n),
|
|
4992
|
+
/* @__PURE__ */ o.createElement("span", { className: "overflow-hidden text-ellipsis" }, i),
|
|
4993
|
+
a
|
|
4976
4994
|
)
|
|
4977
4995
|
);
|
|
4978
4996
|
}
|
|
4979
4997
|
);
|
|
4980
4998
|
bs.displayName = "TabBrowser";
|
|
4981
|
-
const hs = ({ children: e, separators: s = !1, trailingSlot:
|
|
4999
|
+
const hs = ({ children: e, separators: s = !1, trailingSlot: r, className: t }) => {
|
|
4982
5000
|
const n = o.Children.toArray(e);
|
|
4983
|
-
return /* @__PURE__ */ o.createElement("div", { className: f("flex items-end",
|
|
5001
|
+
return /* @__PURE__ */ o.createElement("div", { className: f("flex items-end", t) }, /* @__PURE__ */ o.createElement("div", { role: "tablist", className: "flex min-w-0 flex-1 items-end" }, n.map((a, l) => /* @__PURE__ */ o.createElement(o.Fragment, { key: l }, a, s && l < n.length - 1 && /* @__PURE__ */ o.createElement("span", { "aria-hidden": !0, className: "mb-3 h-5 w-px shrink-0 self-end bg-light-200" })))), r);
|
|
4984
5002
|
};
|
|
4985
5003
|
hs.displayName = "TabBrowserBar";
|
|
4986
5004
|
const xs = h("flex flex-col gap-1 w-full", {
|
|
@@ -5159,50 +5177,50 @@ const xs = h("flex flex-col gap-1 w-full", {
|
|
|
5159
5177
|
// 20px (caption-lg) + 8 + 2 = 30px
|
|
5160
5178
|
md: "h-[34px]"
|
|
5161
5179
|
// 24px (body-sm) + 8 + 2 = 34px
|
|
5162
|
-
}, Ls = ({ size: e, error: s, disabled:
|
|
5180
|
+
}, Ls = ({ size: e, error: s, disabled: r }) => f(
|
|
5163
5181
|
"flex items-center w-full gap-2 rounded-lg border bg-white px-2 transition-[border-color,border-width]",
|
|
5164
5182
|
zs[e],
|
|
5165
5183
|
s ? "border-error-200 focus-within:border-2 focus-within:border-error-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
|
|
5166
|
-
|
|
5184
|
+
r && "bg-light-100 text-light-400 cursor-not-allowed"
|
|
5167
5185
|
), Ts = ({ error: e }) => f("flex items-center gap-1 text-caption-sm font-semibold", e ? "" : "text-light-800"), Bs = "flex flex-col w-full max-w-[320px]", se = m.forwardRef(function({
|
|
5168
5186
|
label: s,
|
|
5169
|
-
required:
|
|
5170
|
-
hint:
|
|
5187
|
+
required: r,
|
|
5188
|
+
hint: t,
|
|
5171
5189
|
rightIcon: n,
|
|
5172
5190
|
size: a = "md",
|
|
5173
5191
|
error: l = !1,
|
|
5174
5192
|
disabled: i = !1,
|
|
5175
5193
|
compact: d = !1,
|
|
5176
5194
|
hideCalendarIcon: c = !1,
|
|
5177
|
-
type:
|
|
5178
|
-
prefix:
|
|
5195
|
+
type: p,
|
|
5196
|
+
prefix: g,
|
|
5179
5197
|
suffix: x,
|
|
5180
5198
|
leadingAddon: w,
|
|
5181
|
-
leadingDropdown:
|
|
5199
|
+
leadingDropdown: z,
|
|
5182
5200
|
trailingDropdown: E,
|
|
5183
|
-
trailingButton:
|
|
5201
|
+
trailingButton: C,
|
|
5184
5202
|
maxLength: N,
|
|
5185
5203
|
value: k,
|
|
5186
|
-
className:
|
|
5187
|
-
wrapperClassName:
|
|
5204
|
+
className: S,
|
|
5205
|
+
wrapperClassName: L,
|
|
5188
5206
|
...R
|
|
5189
5207
|
}, B) {
|
|
5190
|
-
const I = !!(w ||
|
|
5208
|
+
const I = !!(w || C), b = /* @__PURE__ */ m.createElement(m.Fragment, null, z && /* @__PURE__ */ m.createElement(
|
|
5191
5209
|
"button",
|
|
5192
5210
|
{
|
|
5193
5211
|
type: "button",
|
|
5194
|
-
onClick:
|
|
5195
|
-
disabled:
|
|
5212
|
+
onClick: z.onClick,
|
|
5213
|
+
disabled: z.disabled || i,
|
|
5196
5214
|
className: Oe({ size: a })
|
|
5197
5215
|
},
|
|
5198
|
-
/* @__PURE__ */ m.createElement("span", null,
|
|
5216
|
+
/* @__PURE__ */ m.createElement("span", null, z.value),
|
|
5199
5217
|
/* @__PURE__ */ m.createElement(Me, { className: "size-5 text-light-500" })
|
|
5200
|
-
),
|
|
5218
|
+
), g && /* @__PURE__ */ m.createElement("div", { className: "flex items-center" }, g), /* @__PURE__ */ m.createElement(
|
|
5201
5219
|
"input",
|
|
5202
5220
|
{
|
|
5203
5221
|
...R,
|
|
5204
5222
|
ref: B,
|
|
5205
|
-
type:
|
|
5223
|
+
type: p,
|
|
5206
5224
|
disabled: i,
|
|
5207
5225
|
maxLength: N,
|
|
5208
5226
|
value: k,
|
|
@@ -5210,8 +5228,8 @@ const xs = h("flex flex-col gap-1 w-full", {
|
|
|
5210
5228
|
ws({ size: a, error: l }),
|
|
5211
5229
|
"h-full",
|
|
5212
5230
|
c && "[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-clear-button]:hidden",
|
|
5213
|
-
|
|
5214
|
-
|
|
5231
|
+
p === "date" && "[&::-webkit-datetime-edit]:p-0 [&::-webkit-datetime-edit-fields-wrapper]:p-0",
|
|
5232
|
+
S
|
|
5215
5233
|
)
|
|
5216
5234
|
}
|
|
5217
5235
|
), (n || x) && /* @__PURE__ */ m.createElement("div", { className: "flex h-full items-center gap-2" }, n && /* @__PURE__ */ m.createElement("div", { className: "flex h-full items-center pb-0.5 text-light-400 hover:text-light-600" }, n), x && /* @__PURE__ */ m.createElement("div", { className: "flex h-full items-center gap-1 leading-none text-light-700" }, x)), E && /* @__PURE__ */ m.createElement(
|
|
@@ -5225,17 +5243,17 @@ const xs = h("flex flex-col gap-1 w-full", {
|
|
|
5225
5243
|
/* @__PURE__ */ m.createElement("span", null, E.value),
|
|
5226
5244
|
/* @__PURE__ */ m.createElement(Me, { className: "size-5 text-light-500" })
|
|
5227
5245
|
));
|
|
5228
|
-
return /* @__PURE__ */ m.createElement("div", { className: f(d ? Bs : xs({ size: a }),
|
|
5246
|
+
return /* @__PURE__ */ m.createElement("div", { className: f(d ? Bs : xs({ size: a }), L) }, s && /* @__PURE__ */ m.createElement("label", { className: d ? Ts({ error: l }) : vs({ error: l }) }, s, r && /* @__PURE__ */ m.createElement("span", { className: "text-error-400" }, "*")), I ? /* @__PURE__ */ m.createElement("div", { className: Es({ size: a, error: l, disabled: i }) }, w && /* @__PURE__ */ m.createElement("div", { className: Cs({ size: a }) }, w), /* @__PURE__ */ m.createElement("div", { className: Ns({ size: a, disabled: i }) }, b), C && /* @__PURE__ */ m.createElement(
|
|
5229
5247
|
"button",
|
|
5230
5248
|
{
|
|
5231
5249
|
type: "button",
|
|
5232
|
-
onClick:
|
|
5233
|
-
disabled:
|
|
5250
|
+
onClick: C.onClick,
|
|
5251
|
+
disabled: C.disabled || i,
|
|
5234
5252
|
className: Ss({ size: a })
|
|
5235
5253
|
},
|
|
5236
|
-
|
|
5237
|
-
/* @__PURE__ */ m.createElement("span", null,
|
|
5238
|
-
)) : /* @__PURE__ */ m.createElement("div", { className: d ? Ls({ size: a, error: l, disabled: i }) : ys({ size: a, error: l, disabled: i }) }, b), N && typeof k == "string" && /* @__PURE__ */ m.createElement("div", { className: "text-right text-xs text-light-400" }, k.length, "/", N),
|
|
5254
|
+
C.icon,
|
|
5255
|
+
/* @__PURE__ */ m.createElement("span", null, C.label)
|
|
5256
|
+
)) : /* @__PURE__ */ m.createElement("div", { className: d ? Ls({ size: a, error: l, disabled: i }) : ys({ size: a, error: l, disabled: i }) }, b), N && typeof k == "string" && /* @__PURE__ */ m.createElement("div", { className: "text-right text-xs text-light-400" }, k.length, "/", N), t && /* @__PURE__ */ m.createElement("p", { className: ks({ error: l }) }, t));
|
|
5239
5257
|
});
|
|
5240
5258
|
function Is({ children: e }) {
|
|
5241
5259
|
return /* @__PURE__ */ React.createElement("div", { className: "flex items-center text-light-500" }, e);
|
|
@@ -5264,9 +5282,9 @@ var Rs = {
|
|
|
5264
5282
|
stroke: "none"
|
|
5265
5283
|
}
|
|
5266
5284
|
};
|
|
5267
|
-
const oe = (e, s,
|
|
5285
|
+
const oe = (e, s, r, t) => {
|
|
5268
5286
|
const n = xt(
|
|
5269
|
-
({ color: a = "currentColor", size: l = 24, stroke: i = 2, title: d, className: c, children:
|
|
5287
|
+
({ color: a = "currentColor", size: l = 24, stroke: i = 2, title: d, className: c, children: p, ...g }, x) => he(
|
|
5270
5288
|
"svg",
|
|
5271
5289
|
{
|
|
5272
5290
|
ref: x,
|
|
@@ -5276,16 +5294,16 @@ const oe = (e, s, t, r) => {
|
|
|
5276
5294
|
className: ["tabler-icon", `tabler-icon-${s}`, c].join(" "),
|
|
5277
5295
|
strokeWidth: i,
|
|
5278
5296
|
stroke: a,
|
|
5279
|
-
...
|
|
5297
|
+
...g
|
|
5280
5298
|
},
|
|
5281
5299
|
[
|
|
5282
5300
|
d && he("title", { key: "svg-title" }, d),
|
|
5283
|
-
...
|
|
5284
|
-
...Array.isArray(
|
|
5301
|
+
...t.map(([w, z]) => he(w, z)),
|
|
5302
|
+
...Array.isArray(p) ? p : [p]
|
|
5285
5303
|
]
|
|
5286
5304
|
)
|
|
5287
5305
|
);
|
|
5288
|
-
return n.displayName = `${
|
|
5306
|
+
return n.displayName = `${r}`, n;
|
|
5289
5307
|
};
|
|
5290
5308
|
const Vs = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], _e = oe("outline", "alert-circle", "AlertCircle", Vs);
|
|
5291
5309
|
const $s = [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]], bt = oe("outline", "chevron-down", "ChevronDown", $s);
|
|
@@ -5295,32 +5313,32 @@ const js = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l1
|
|
|
5295
5313
|
function aa({
|
|
5296
5314
|
size: e = "md",
|
|
5297
5315
|
label: s,
|
|
5298
|
-
required:
|
|
5299
|
-
hint:
|
|
5316
|
+
required: r,
|
|
5317
|
+
hint: t,
|
|
5300
5318
|
error: n,
|
|
5301
5319
|
disabled: a,
|
|
5302
5320
|
placeholder: l = "+1 (555) 000-0000",
|
|
5303
5321
|
rightIcon: i,
|
|
5304
5322
|
value: d,
|
|
5305
5323
|
onChange: c,
|
|
5306
|
-
className:
|
|
5307
|
-
wrapperClassName:
|
|
5324
|
+
className: p,
|
|
5325
|
+
wrapperClassName: g
|
|
5308
5326
|
}) {
|
|
5309
5327
|
return /* @__PURE__ */ m.createElement(
|
|
5310
5328
|
se,
|
|
5311
5329
|
{
|
|
5312
5330
|
size: e,
|
|
5313
5331
|
label: s,
|
|
5314
|
-
required:
|
|
5315
|
-
hint:
|
|
5332
|
+
required: r,
|
|
5333
|
+
hint: t,
|
|
5316
5334
|
error: n,
|
|
5317
5335
|
disabled: a,
|
|
5318
5336
|
placeholder: l,
|
|
5319
5337
|
rightIcon: i,
|
|
5320
5338
|
value: d,
|
|
5321
5339
|
onChange: c,
|
|
5322
|
-
className:
|
|
5323
|
-
wrapperClassName:
|
|
5340
|
+
className: p,
|
|
5341
|
+
wrapperClassName: g,
|
|
5324
5342
|
prefix: /* @__PURE__ */ m.createElement("div", { className: "flex items-center gap-1 pr-2 text-sm text-light-700" }, /* @__PURE__ */ m.createElement("span", null, "US"), /* @__PURE__ */ m.createElement(bt, { size: 14 }))
|
|
5325
5343
|
}
|
|
5326
5344
|
);
|
|
@@ -5328,16 +5346,16 @@ function aa({
|
|
|
5328
5346
|
function na({
|
|
5329
5347
|
size: e = "md",
|
|
5330
5348
|
label: s,
|
|
5331
|
-
required:
|
|
5332
|
-
hint:
|
|
5349
|
+
required: r,
|
|
5350
|
+
hint: t,
|
|
5333
5351
|
error: n,
|
|
5334
5352
|
disabled: a,
|
|
5335
5353
|
value: l,
|
|
5336
5354
|
placeholder: i = "1,000.00",
|
|
5337
5355
|
currency: d = "USD",
|
|
5338
5356
|
onCurrencyChange: c,
|
|
5339
|
-
rightIcon:
|
|
5340
|
-
onChange:
|
|
5357
|
+
rightIcon: p,
|
|
5358
|
+
onChange: g,
|
|
5341
5359
|
className: x,
|
|
5342
5360
|
wrapperClassName: w
|
|
5343
5361
|
}) {
|
|
@@ -5346,14 +5364,14 @@ function na({
|
|
|
5346
5364
|
{
|
|
5347
5365
|
size: e,
|
|
5348
5366
|
label: s,
|
|
5349
|
-
required:
|
|
5350
|
-
hint:
|
|
5367
|
+
required: r,
|
|
5368
|
+
hint: t,
|
|
5351
5369
|
error: n,
|
|
5352
5370
|
disabled: a,
|
|
5353
5371
|
value: l,
|
|
5354
5372
|
placeholder: i,
|
|
5355
|
-
rightIcon:
|
|
5356
|
-
onChange:
|
|
5373
|
+
rightIcon: p,
|
|
5374
|
+
onChange: g,
|
|
5357
5375
|
className: x,
|
|
5358
5376
|
wrapperClassName: w,
|
|
5359
5377
|
prefix: /* @__PURE__ */ m.createElement("span", { className: "select-none text-sm text-light-700" }, "$"),
|
|
@@ -5374,16 +5392,16 @@ function na({
|
|
|
5374
5392
|
function la({
|
|
5375
5393
|
size: e = "md",
|
|
5376
5394
|
label: s,
|
|
5377
|
-
required:
|
|
5378
|
-
hint:
|
|
5395
|
+
required: r,
|
|
5396
|
+
hint: t,
|
|
5379
5397
|
disabled: n,
|
|
5380
5398
|
error: a,
|
|
5381
5399
|
className: l,
|
|
5382
5400
|
wrapperClassName: i,
|
|
5383
5401
|
value: d,
|
|
5384
5402
|
maxLength: c,
|
|
5385
|
-
placeholder:
|
|
5386
|
-
onChange:
|
|
5403
|
+
placeholder: p,
|
|
5404
|
+
onChange: g
|
|
5387
5405
|
}) {
|
|
5388
5406
|
const x = d.length > c, w = a || x;
|
|
5389
5407
|
return /* @__PURE__ */ m.createElement(
|
|
@@ -5391,15 +5409,15 @@ function la({
|
|
|
5391
5409
|
{
|
|
5392
5410
|
size: e,
|
|
5393
5411
|
label: s,
|
|
5394
|
-
required:
|
|
5412
|
+
required: r,
|
|
5395
5413
|
disabled: n,
|
|
5396
5414
|
error: w,
|
|
5397
5415
|
value: d,
|
|
5398
|
-
placeholder:
|
|
5399
|
-
onChange:
|
|
5416
|
+
placeholder: p,
|
|
5417
|
+
onChange: g,
|
|
5400
5418
|
className: l,
|
|
5401
5419
|
wrapperClassName: i,
|
|
5402
|
-
hint:
|
|
5420
|
+
hint: t,
|
|
5403
5421
|
suffix: /* @__PURE__ */ m.createElement(
|
|
5404
5422
|
"span",
|
|
5405
5423
|
{
|
|
@@ -5418,16 +5436,16 @@ function la({
|
|
|
5418
5436
|
function ia({
|
|
5419
5437
|
size: e = "md",
|
|
5420
5438
|
label: s = "Card number",
|
|
5421
|
-
required:
|
|
5422
|
-
hint:
|
|
5439
|
+
required: r,
|
|
5440
|
+
hint: t,
|
|
5423
5441
|
error: n,
|
|
5424
5442
|
disabled: a,
|
|
5425
5443
|
placeholder: l = "Card number",
|
|
5426
5444
|
value: i,
|
|
5427
5445
|
onChange: d,
|
|
5428
5446
|
rightIcon: c,
|
|
5429
|
-
prefix:
|
|
5430
|
-
className:
|
|
5447
|
+
prefix: p,
|
|
5448
|
+
className: g,
|
|
5431
5449
|
wrapperClassName: x
|
|
5432
5450
|
}) {
|
|
5433
5451
|
return /* @__PURE__ */ m.createElement(
|
|
@@ -5435,17 +5453,17 @@ function ia({
|
|
|
5435
5453
|
{
|
|
5436
5454
|
size: e,
|
|
5437
5455
|
label: s,
|
|
5438
|
-
required:
|
|
5439
|
-
hint:
|
|
5456
|
+
required: r,
|
|
5457
|
+
hint: t,
|
|
5440
5458
|
error: n,
|
|
5441
5459
|
disabled: a,
|
|
5442
5460
|
placeholder: l,
|
|
5443
5461
|
value: i,
|
|
5444
5462
|
onChange: d,
|
|
5445
5463
|
rightIcon: c,
|
|
5446
|
-
className:
|
|
5464
|
+
className: g,
|
|
5447
5465
|
wrapperClassName: x,
|
|
5448
|
-
prefix:
|
|
5466
|
+
prefix: p ?? /* @__PURE__ */ m.createElement(
|
|
5449
5467
|
"img",
|
|
5450
5468
|
{
|
|
5451
5469
|
src: "/stories/assets/mastercard.png",
|
|
@@ -5533,33 +5551,33 @@ const Ps = "flex flex-col gap-1 w-full", Gs = h("flex items-center gap-1 font-bo
|
|
|
5533
5551
|
({
|
|
5534
5552
|
label: e,
|
|
5535
5553
|
required: s,
|
|
5536
|
-
hint:
|
|
5537
|
-
helpIcon:
|
|
5554
|
+
hint: r,
|
|
5555
|
+
helpIcon: t,
|
|
5538
5556
|
error: n = !1,
|
|
5539
5557
|
disabled: a = !1,
|
|
5540
5558
|
resizable: l = !0,
|
|
5541
5559
|
compact: i = !1,
|
|
5542
5560
|
rows: d,
|
|
5543
5561
|
style: c,
|
|
5544
|
-
className:
|
|
5545
|
-
wrapperClassName:
|
|
5562
|
+
className: p,
|
|
5563
|
+
wrapperClassName: g,
|
|
5546
5564
|
...x
|
|
5547
5565
|
}, w) => {
|
|
5548
|
-
const
|
|
5549
|
-
return /* @__PURE__ */ o.createElement("div", { className: f(i ? qs : Ps,
|
|
5566
|
+
const z = d ? { minHeight: `${d * 20}px` } : void 0;
|
|
5567
|
+
return /* @__PURE__ */ o.createElement("div", { className: f(i ? qs : Ps, g) }, e && /* @__PURE__ */ o.createElement("label", { className: i ? Xs({ error: n }) : Gs({ error: n }) }, e, s && /* @__PURE__ */ o.createElement("span", { className: "text-error-400" }, "*"), t), /* @__PURE__ */ o.createElement("div", { className: i ? Us({ error: n, disabled: a }) : Ds({ error: n, disabled: a }) }, /* @__PURE__ */ o.createElement(
|
|
5550
5568
|
"textarea",
|
|
5551
5569
|
{
|
|
5552
5570
|
ref: w,
|
|
5553
5571
|
disabled: a,
|
|
5554
5572
|
rows: d,
|
|
5555
|
-
style: { ...
|
|
5573
|
+
style: { ...z, ...c },
|
|
5556
5574
|
className: f(
|
|
5557
5575
|
i ? Ks(l && !a) : Fs({ resizable: l && !a }),
|
|
5558
|
-
|
|
5576
|
+
p
|
|
5559
5577
|
),
|
|
5560
5578
|
...x
|
|
5561
5579
|
}
|
|
5562
|
-
)),
|
|
5580
|
+
)), r && /* @__PURE__ */ o.createElement("p", { className: Hs({ error: n }) }, r));
|
|
5563
5581
|
}
|
|
5564
5582
|
);
|
|
5565
5583
|
Zs.displayName = "Textarea";
|
|
@@ -5608,25 +5626,25 @@ const Ys = h("flex w-[320px] flex-col gap-1"), Qs = h("flex items-center gap-1 t
|
|
|
5608
5626
|
function ca({
|
|
5609
5627
|
size: e = "md",
|
|
5610
5628
|
label: s,
|
|
5611
|
-
required:
|
|
5612
|
-
hint:
|
|
5629
|
+
required: r,
|
|
5630
|
+
hint: t,
|
|
5613
5631
|
error: n = !1,
|
|
5614
5632
|
disabled: a = !1,
|
|
5615
5633
|
placeholder: l = "Add items",
|
|
5616
5634
|
rightIcon: i,
|
|
5617
5635
|
className: d,
|
|
5618
5636
|
wrapperClassName: c,
|
|
5619
|
-
options:
|
|
5620
|
-
value:
|
|
5637
|
+
options: p,
|
|
5638
|
+
value: g = [],
|
|
5621
5639
|
onChange: x
|
|
5622
5640
|
}) {
|
|
5623
|
-
const w = vt(), [
|
|
5624
|
-
const
|
|
5625
|
-
|
|
5641
|
+
const w = vt(), [z, E] = yt(""), C = (k) => {
|
|
5642
|
+
const S = p.find((L) => L.label === k);
|
|
5643
|
+
S && (g.some((L) => L.id === S.id) || (x?.([...g, S]), E("")));
|
|
5626
5644
|
}, N = (k) => {
|
|
5627
|
-
x?.(
|
|
5645
|
+
x?.(g.filter((S) => S.id !== k));
|
|
5628
5646
|
};
|
|
5629
|
-
return /* @__PURE__ */ m.createElement("div", { className: f(Ys(), c) }, s && /* @__PURE__ */ m.createElement("label", { className: Qs({ error: n }) }, s,
|
|
5647
|
+
return /* @__PURE__ */ m.createElement("div", { className: f(Ys(), c) }, s && /* @__PURE__ */ m.createElement("label", { className: Qs({ error: n }) }, s, r && /* @__PURE__ */ m.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ m.createElement("div", { className: Js({ size: e, error: n, disabled: a }) }, /* @__PURE__ */ m.createElement("div", { className: eo() }, g.map((k) => /* @__PURE__ */ m.createElement("span", { key: k.id, className: to() }, k.avatar && /* @__PURE__ */ m.createElement(
|
|
5630
5648
|
"img",
|
|
5631
5649
|
{
|
|
5632
5650
|
src: k.avatar,
|
|
@@ -5645,15 +5663,15 @@ function ca({
|
|
|
5645
5663
|
"input",
|
|
5646
5664
|
{
|
|
5647
5665
|
list: w,
|
|
5648
|
-
value:
|
|
5666
|
+
value: z,
|
|
5649
5667
|
onChange: (k) => {
|
|
5650
|
-
E(k.target.value),
|
|
5668
|
+
E(k.target.value), C(k.target.value);
|
|
5651
5669
|
},
|
|
5652
|
-
placeholder:
|
|
5670
|
+
placeholder: g.length === 0 ? l : "",
|
|
5653
5671
|
disabled: a,
|
|
5654
5672
|
className: f(ro({ disabled: a }), d)
|
|
5655
5673
|
}
|
|
5656
|
-
), /* @__PURE__ */ m.createElement("datalist", { id: w },
|
|
5674
|
+
), /* @__PURE__ */ m.createElement("datalist", { id: w }, p.map((k) => /* @__PURE__ */ m.createElement("option", { key: k.id, value: k.label })))), i && /* @__PURE__ */ m.createElement("div", { className: "ml-2 flex shrink-0 items-center text-light-400" }, i)), t && /* @__PURE__ */ m.createElement("p", { className: so({ error: n }) }, t));
|
|
5657
5675
|
}
|
|
5658
5676
|
const oo = h("flex w-[320px] flex-col gap-1"), ao = h("flex items-center gap-1 font-bold text-sm", {
|
|
5659
5677
|
variants: {
|
|
@@ -5717,27 +5735,27 @@ const oo = h("flex w-[320px] flex-col gap-1"), ao = h("flex items-center gap-1 f
|
|
|
5717
5735
|
function da({
|
|
5718
5736
|
size: e = "md",
|
|
5719
5737
|
label: s,
|
|
5720
|
-
required:
|
|
5721
|
-
hint:
|
|
5738
|
+
required: r,
|
|
5739
|
+
hint: t,
|
|
5722
5740
|
error: n = !1,
|
|
5723
5741
|
disabled: a = !1,
|
|
5724
5742
|
placeholder: l = "www.cekat.ai",
|
|
5725
5743
|
value: i,
|
|
5726
5744
|
rightIcon: d,
|
|
5727
5745
|
onChange: c,
|
|
5728
|
-
className:
|
|
5729
|
-
wrapperClassName:
|
|
5746
|
+
className: p,
|
|
5747
|
+
wrapperClassName: g
|
|
5730
5748
|
}) {
|
|
5731
|
-
return /* @__PURE__ */ m.createElement("div", { className: f(oo(),
|
|
5749
|
+
return /* @__PURE__ */ m.createElement("div", { className: f(oo(), g) }, s && /* @__PURE__ */ m.createElement("label", { className: ao({ error: n }) }, s, r && /* @__PURE__ */ m.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ m.createElement("div", { className: no({ error: n, disabled: a }) }, /* @__PURE__ */ m.createElement("div", { className: lo({ size: e }) }, "http://"), /* @__PURE__ */ m.createElement("div", { className: io }), /* @__PURE__ */ m.createElement("div", { className: co({ size: e, error: n, disabled: a }) }, /* @__PURE__ */ m.createElement(
|
|
5732
5750
|
"input",
|
|
5733
5751
|
{
|
|
5734
5752
|
value: i,
|
|
5735
5753
|
onChange: c,
|
|
5736
5754
|
placeholder: l,
|
|
5737
5755
|
disabled: a,
|
|
5738
|
-
className: f(uo({ disabled: a }),
|
|
5756
|
+
className: f(uo({ disabled: a }), p)
|
|
5739
5757
|
}
|
|
5740
|
-
), d && /* @__PURE__ */ m.createElement("div", { className: "flex items-center text-light-400" }, d))),
|
|
5758
|
+
), d && /* @__PURE__ */ m.createElement("div", { className: "flex items-center text-light-400" }, d))), t && /* @__PURE__ */ m.createElement("p", { className: mo({ error: n }) }, t));
|
|
5741
5759
|
}
|
|
5742
5760
|
const po = h("flex w-[320px] flex-col gap-1"), go = h("flex items-center gap-1 font-bold text-sm", {
|
|
5743
5761
|
variants: {
|
|
@@ -5804,28 +5822,28 @@ const po = h("flex w-[320px] flex-col gap-1"), go = h("flex items-center gap-1 f
|
|
|
5804
5822
|
function ua({
|
|
5805
5823
|
size: e = "md",
|
|
5806
5824
|
label: s,
|
|
5807
|
-
required:
|
|
5808
|
-
hint:
|
|
5825
|
+
required: r,
|
|
5826
|
+
hint: t,
|
|
5809
5827
|
error: n = !1,
|
|
5810
5828
|
disabled: a = !1,
|
|
5811
5829
|
placeholder: l = "www.cekat.ai",
|
|
5812
5830
|
value: i,
|
|
5813
5831
|
rightIcon: d,
|
|
5814
5832
|
suffix: c,
|
|
5815
|
-
onChange:
|
|
5816
|
-
className:
|
|
5833
|
+
onChange: p,
|
|
5834
|
+
className: g,
|
|
5817
5835
|
wrapperClassName: x
|
|
5818
5836
|
}) {
|
|
5819
|
-
return /* @__PURE__ */ m.createElement("div", { className: f(po(), x) }, s && /* @__PURE__ */ m.createElement("label", { className: go({ error: n }) }, s,
|
|
5837
|
+
return /* @__PURE__ */ m.createElement("div", { className: f(po(), x) }, s && /* @__PURE__ */ m.createElement("label", { className: go({ error: n }) }, s, r && /* @__PURE__ */ m.createElement("span", { className: "text-error-400" }, "*")), /* @__PURE__ */ m.createElement("div", { className: fo({ disabled: a }) }, /* @__PURE__ */ m.createElement("div", { className: bo({ size: e, error: n, disabled: a }) }, /* @__PURE__ */ m.createElement(
|
|
5820
5838
|
"input",
|
|
5821
5839
|
{
|
|
5822
5840
|
value: i,
|
|
5823
|
-
onChange:
|
|
5841
|
+
onChange: p,
|
|
5824
5842
|
placeholder: l,
|
|
5825
5843
|
disabled: a,
|
|
5826
|
-
className: f(vo({ disabled: a }),
|
|
5844
|
+
className: f(vo({ disabled: a }), g)
|
|
5827
5845
|
}
|
|
5828
|
-
), d && /* @__PURE__ */ m.createElement("div", { className: "text-light-400" }, d)), /* @__PURE__ */ m.createElement("div", { className: ho({ error: n }) }), /* @__PURE__ */ m.createElement("div", { className: xo({ size: e, disabled: a }) }, c)),
|
|
5846
|
+
), d && /* @__PURE__ */ m.createElement("div", { className: "text-light-400" }, d)), /* @__PURE__ */ m.createElement("div", { className: ho({ error: n }) }), /* @__PURE__ */ m.createElement("div", { className: xo({ size: e, disabled: a }) }, c)), t && /* @__PURE__ */ m.createElement("p", { className: yo({ error: n }) }, t));
|
|
5829
5847
|
}
|
|
5830
5848
|
const wo = h("flex w-full flex-col gap-1"), ko = h(
|
|
5831
5849
|
"flex items-center gap-1 text-sm font-bold text-light-800"
|
|
@@ -5927,36 +5945,36 @@ const wo = h("flex w-full flex-col gap-1"), ko = h(
|
|
|
5927
5945
|
xs: "h-7",
|
|
5928
5946
|
sm: "h-[30px]",
|
|
5929
5947
|
md: "h-[34px]"
|
|
5930
|
-
}, Ge = ({ size: e, open: s, disabled:
|
|
5948
|
+
}, Ge = ({ size: e, open: s, disabled: r }) => f(
|
|
5931
5949
|
"flex w-full items-center gap-2 rounded-lg border bg-white px-2 text-left transition-[border-color,border-width]",
|
|
5932
5950
|
Lo[e],
|
|
5933
5951
|
To[e],
|
|
5934
5952
|
s ? "border-2 border-primary-500" : "border-light-200 focus-within:border-2 focus-within:border-primary-500",
|
|
5935
|
-
|
|
5953
|
+
r ? "cursor-not-allowed bg-light-100" : "cursor-pointer"
|
|
5936
5954
|
), Bo = () => "flex items-center gap-1 text-caption-sm font-semibold text-light-800", Io = "flex w-full max-w-[320px] flex-col";
|
|
5937
5955
|
function ma({
|
|
5938
5956
|
size: e = "md",
|
|
5939
5957
|
type: s = "default",
|
|
5940
|
-
label:
|
|
5941
|
-
required:
|
|
5958
|
+
label: r,
|
|
5959
|
+
required: t,
|
|
5942
5960
|
helpIcon: n,
|
|
5943
5961
|
hint: a,
|
|
5944
5962
|
placeholder: l = "Select option",
|
|
5945
5963
|
disabled: i = !1,
|
|
5946
5964
|
compact: d = !1,
|
|
5947
5965
|
leadingIcon: c,
|
|
5948
|
-
options:
|
|
5949
|
-
value:
|
|
5966
|
+
options: p,
|
|
5967
|
+
value: g = null,
|
|
5950
5968
|
onChange: x,
|
|
5951
5969
|
values: w = [],
|
|
5952
|
-
onValuesChange:
|
|
5970
|
+
onValuesChange: z,
|
|
5953
5971
|
className: E,
|
|
5954
|
-
wrapperClassName:
|
|
5972
|
+
wrapperClassName: C
|
|
5955
5973
|
}) {
|
|
5956
|
-
const [N, k] = o.useState(!1), [
|
|
5957
|
-
(u) => `${u.label} ${u.supportingText ?? ""}`.toLowerCase().includes(
|
|
5958
|
-
) :
|
|
5959
|
-
k(!1),
|
|
5974
|
+
const [N, k] = o.useState(!1), [S, L] = o.useState(""), R = o.useRef(null), B = o.useRef(null), I = s === "tags", b = s === "search" || I, A = p.find((u) => u.id === g) ?? null, P = p.filter((u) => w.includes(u.id)), D = S ? p.filter(
|
|
5975
|
+
(u) => `${u.label} ${u.supportingText ?? ""}`.toLowerCase().includes(S.toLowerCase())
|
|
5976
|
+
) : p, O = () => {
|
|
5977
|
+
k(!1), L("");
|
|
5960
5978
|
};
|
|
5961
5979
|
o.useEffect(() => {
|
|
5962
5980
|
if (!N) return;
|
|
@@ -5970,15 +5988,15 @@ function ma({
|
|
|
5970
5988
|
const U = () => {
|
|
5971
5989
|
i || (N ? O() : k(!0));
|
|
5972
5990
|
}, Z = (u) => {
|
|
5973
|
-
u.disabled || (I ? (
|
|
5991
|
+
u.disabled || (I ? (z?.(
|
|
5974
5992
|
w.includes(u.id) ? w.filter((W) => W !== u.id) : [...w, u.id]
|
|
5975
|
-
),
|
|
5993
|
+
), L(""), B.current?.focus()) : (x?.(u), O()));
|
|
5976
5994
|
}, X = (u) => {
|
|
5977
5995
|
if (u.key === "Enter") {
|
|
5978
5996
|
u.preventDefault();
|
|
5979
5997
|
const W = D.find((ae) => !ae.disabled);
|
|
5980
5998
|
N && W && Z(W);
|
|
5981
|
-
} else u.key === "Backspace" && I && !
|
|
5999
|
+
} else u.key === "Backspace" && I && !S && w.length ? z?.(w.slice(0, -1)) : N || k(!0);
|
|
5982
6000
|
}, j = (u) => u.avatar ? /* @__PURE__ */ o.createElement(
|
|
5983
6001
|
"img",
|
|
5984
6002
|
{
|
|
@@ -6022,7 +6040,7 @@ function ma({
|
|
|
6022
6040
|
},
|
|
6023
6041
|
A.label
|
|
6024
6042
|
), A.supportingText && /* @__PURE__ */ o.createElement("span", { className: i ? "text-light-400" : "text-light-700" }, A.supportingText)) : /* @__PURE__ */ o.createElement("span", { className: i ? "text-light-400" : "text-light-500" }, l), te = N && /* @__PURE__ */ o.createElement("div", { role: "listbox", className: Eo({ size: e }) }, D.length === 0 && /* @__PURE__ */ o.createElement("div", { className: f(We({ size: e }), "mx-1 w-auto text-light-500 hover:bg-transparent") }, "No options found"), D.map((u) => {
|
|
6025
|
-
const W = I ? w.includes(u.id) : u.id ===
|
|
6043
|
+
const W = I ? w.includes(u.id) : u.id === g;
|
|
6026
6044
|
return /* @__PURE__ */ o.createElement("div", { key: u.id, className: "px-1 py-0.5" }, /* @__PURE__ */ o.createElement(
|
|
6027
6045
|
"button",
|
|
6028
6046
|
{
|
|
@@ -6053,7 +6071,7 @@ function ma({
|
|
|
6053
6071
|
W && /* @__PURE__ */ o.createElement(zo, { className: "ml-auto size-5 shrink-0 text-primary-500" })
|
|
6054
6072
|
));
|
|
6055
6073
|
}));
|
|
6056
|
-
return /* @__PURE__ */ o.createElement("div", { ref: R, className: f(d ? Io : wo(),
|
|
6074
|
+
return /* @__PURE__ */ o.createElement("div", { ref: R, className: f(d ? Io : wo(), C) }, r && /* @__PURE__ */ o.createElement("label", { className: d ? Bo() : ko() }, r, t && /* @__PURE__ */ o.createElement("span", { className: "text-error-400" }, "*"), n), /* @__PURE__ */ o.createElement(
|
|
6057
6075
|
"div",
|
|
6058
6076
|
{
|
|
6059
6077
|
className: "relative",
|
|
@@ -6120,11 +6138,11 @@ function ma({
|
|
|
6120
6138
|
"input",
|
|
6121
6139
|
{
|
|
6122
6140
|
ref: B,
|
|
6123
|
-
value:
|
|
6141
|
+
value: S,
|
|
6124
6142
|
disabled: i,
|
|
6125
6143
|
placeholder: I && P.length > 0 ? "" : l,
|
|
6126
6144
|
onChange: (u) => {
|
|
6127
|
-
|
|
6145
|
+
L(u.target.value), N || k(!0);
|
|
6128
6146
|
},
|
|
6129
6147
|
onKeyDown: X,
|
|
6130
6148
|
className: "min-w-8 flex-1 bg-transparent text-light-900 outline-none placeholder:text-light-500 disabled:cursor-not-allowed disabled:placeholder:text-light-400"
|
|
@@ -6235,37 +6253,37 @@ const Ao = h(
|
|
|
6235
6253
|
function pa({
|
|
6236
6254
|
trigger: e = "button",
|
|
6237
6255
|
label: s = "Account",
|
|
6238
|
-
icon:
|
|
6239
|
-
avatarSrc:
|
|
6256
|
+
icon: r,
|
|
6257
|
+
avatarSrc: t,
|
|
6240
6258
|
avatarInitials: n,
|
|
6241
6259
|
header: a,
|
|
6242
6260
|
items: l,
|
|
6243
6261
|
open: i,
|
|
6244
6262
|
defaultOpen: d = !1,
|
|
6245
6263
|
onOpenChange: c,
|
|
6246
|
-
disabled:
|
|
6247
|
-
align:
|
|
6264
|
+
disabled: p = !1,
|
|
6265
|
+
align: g = "end",
|
|
6248
6266
|
className: x,
|
|
6249
6267
|
menuClassName: w
|
|
6250
6268
|
}) {
|
|
6251
|
-
const [
|
|
6252
|
-
|
|
6269
|
+
const [z, E] = o.useState(d), C = i !== void 0, N = C ? i : z, k = o.useRef(null), S = (B) => {
|
|
6270
|
+
C || E(B), c?.(B);
|
|
6253
6271
|
};
|
|
6254
6272
|
o.useEffect(() => {
|
|
6255
6273
|
if (!N) return;
|
|
6256
6274
|
const B = (b) => {
|
|
6257
|
-
k.current?.contains(b.target) ||
|
|
6275
|
+
k.current?.contains(b.target) || S(!1);
|
|
6258
6276
|
}, I = (b) => {
|
|
6259
|
-
b.key === "Escape" &&
|
|
6277
|
+
b.key === "Escape" && S(!1);
|
|
6260
6278
|
};
|
|
6261
6279
|
return document.addEventListener("mousedown", B), document.addEventListener("keydown", I), () => {
|
|
6262
6280
|
document.removeEventListener("mousedown", B), document.removeEventListener("keydown", I);
|
|
6263
6281
|
};
|
|
6264
6282
|
}, [N]);
|
|
6265
|
-
const
|
|
6266
|
-
|
|
6283
|
+
const L = () => {
|
|
6284
|
+
p || S(!N);
|
|
6267
6285
|
}, R = (B) => {
|
|
6268
|
-
B.disabled || (B.onClick?.(),
|
|
6286
|
+
B.disabled || (B.onClick?.(), S(!1));
|
|
6269
6287
|
};
|
|
6270
6288
|
return /* @__PURE__ */ o.createElement("div", { ref: k, className: f("relative inline-block", x) }, e === "button" && /* @__PURE__ */ o.createElement(
|
|
6271
6289
|
"button",
|
|
@@ -6273,9 +6291,9 @@ function pa({
|
|
|
6273
6291
|
type: "button",
|
|
6274
6292
|
"aria-haspopup": "menu",
|
|
6275
6293
|
"aria-expanded": N,
|
|
6276
|
-
disabled:
|
|
6277
|
-
onClick:
|
|
6278
|
-
className: Ao({ open: N, disabled:
|
|
6294
|
+
disabled: p,
|
|
6295
|
+
onClick: L,
|
|
6296
|
+
className: Ao({ open: N, disabled: p })
|
|
6279
6297
|
},
|
|
6280
6298
|
/* @__PURE__ */ o.createElement("span", null, s),
|
|
6281
6299
|
N ? /* @__PURE__ */ o.createElement(Go, { className: "size-[18px]" }) : /* @__PURE__ */ o.createElement(Po, { className: "size-[18px]" })
|
|
@@ -6286,11 +6304,11 @@ function pa({
|
|
|
6286
6304
|
"aria-haspopup": "menu",
|
|
6287
6305
|
"aria-expanded": N,
|
|
6288
6306
|
"aria-label": s,
|
|
6289
|
-
disabled:
|
|
6290
|
-
onClick:
|
|
6291
|
-
className: Ro({ disabled:
|
|
6307
|
+
disabled: p,
|
|
6308
|
+
onClick: L,
|
|
6309
|
+
className: Ro({ disabled: p })
|
|
6292
6310
|
},
|
|
6293
|
-
|
|
6311
|
+
r ?? /* @__PURE__ */ o.createElement(Do, { className: "size-5" })
|
|
6294
6312
|
), e === "avatar" && /* @__PURE__ */ o.createElement(
|
|
6295
6313
|
"button",
|
|
6296
6314
|
{
|
|
@@ -6298,18 +6316,18 @@ function pa({
|
|
|
6298
6316
|
"aria-haspopup": "menu",
|
|
6299
6317
|
"aria-expanded": N,
|
|
6300
6318
|
"aria-label": s,
|
|
6301
|
-
disabled:
|
|
6302
|
-
onClick:
|
|
6303
|
-
className: Vo({ open: N, disabled:
|
|
6319
|
+
disabled: p,
|
|
6320
|
+
onClick: L,
|
|
6321
|
+
className: Vo({ open: N, disabled: p })
|
|
6304
6322
|
},
|
|
6305
|
-
/* @__PURE__ */ o.createElement(ge, { src:
|
|
6323
|
+
/* @__PURE__ */ o.createElement(ge, { src: t, initials: n, size: "md", status: "online" })
|
|
6306
6324
|
), N && /* @__PURE__ */ o.createElement(
|
|
6307
6325
|
"div",
|
|
6308
6326
|
{
|
|
6309
6327
|
role: "menu",
|
|
6310
6328
|
className: f(
|
|
6311
6329
|
$o(),
|
|
6312
|
-
|
|
6330
|
+
g === "end" ? "right-0" : "left-0",
|
|
6313
6331
|
w
|
|
6314
6332
|
)
|
|
6315
6333
|
},
|
|
@@ -6525,22 +6543,22 @@ const De = h("relative", {
|
|
|
6525
6543
|
}, ta = ({
|
|
6526
6544
|
title: e,
|
|
6527
6545
|
description: s,
|
|
6528
|
-
color:
|
|
6529
|
-
layout:
|
|
6546
|
+
color: r = "default",
|
|
6547
|
+
layout: t = "floating",
|
|
6530
6548
|
background: n = "white",
|
|
6531
6549
|
icon: a,
|
|
6532
6550
|
iconVariant: l = "featured",
|
|
6533
6551
|
showIcon: i = !0,
|
|
6534
6552
|
primaryAction: d,
|
|
6535
6553
|
secondaryAction: c,
|
|
6536
|
-
actionVariant:
|
|
6537
|
-
actions:
|
|
6554
|
+
actionVariant: p,
|
|
6555
|
+
actions: g,
|
|
6538
6556
|
onClose: x,
|
|
6539
6557
|
closeLabel: w = "Close",
|
|
6540
|
-
className:
|
|
6558
|
+
className: z,
|
|
6541
6559
|
...E
|
|
6542
6560
|
}) => {
|
|
6543
|
-
const
|
|
6561
|
+
const C = ea[r], N = t === "floating" ? 16 : 20, k = p ?? (t === "floating" ? "link" : "button"), S = Fo[r], L = n === "light", R = L ? f(S.surface, S.border) : Ho, B = (O, U) => O ? k === "link" ? /* @__PURE__ */ m.createElement(
|
|
6544
6562
|
"button",
|
|
6545
6563
|
{
|
|
6546
6564
|
type: "button",
|
|
@@ -6554,59 +6572,59 @@ const De = h("relative", {
|
|
|
6554
6572
|
size: "sm",
|
|
6555
6573
|
variant: U === "primary" ? "solid" : "outline",
|
|
6556
6574
|
onClick: O.onClick,
|
|
6557
|
-
className:
|
|
6575
|
+
className: t === "full-width" ? "w-full sm:w-auto" : void 0
|
|
6558
6576
|
},
|
|
6559
6577
|
O.label
|
|
6560
|
-
) : null, b = !!(
|
|
6578
|
+
) : null, b = !!(g || d || c) ? /* @__PURE__ */ m.createElement(
|
|
6561
6579
|
"div",
|
|
6562
6580
|
{
|
|
6563
6581
|
className: Yo({
|
|
6564
|
-
layout:
|
|
6582
|
+
layout: t,
|
|
6565
6583
|
actionVariant: k
|
|
6566
6584
|
})
|
|
6567
6585
|
},
|
|
6568
|
-
|
|
6569
|
-
) : null, A = i && (a ||
|
|
6586
|
+
g ?? /* @__PURE__ */ m.createElement(m.Fragment, null, B(c, "secondary"), B(d, "primary"))
|
|
6587
|
+
) : null, A = i && (a || C) ? /* @__PURE__ */ m.createElement(
|
|
6570
6588
|
"div",
|
|
6571
6589
|
{
|
|
6572
6590
|
className: f(
|
|
6573
6591
|
Xo({
|
|
6574
|
-
layout:
|
|
6592
|
+
layout: t,
|
|
6575
6593
|
variant: l,
|
|
6576
|
-
shape:
|
|
6594
|
+
shape: r === "default" ? "square" : "circle"
|
|
6577
6595
|
}),
|
|
6578
|
-
|
|
6579
|
-
l === "featured" && (
|
|
6596
|
+
S.iconText,
|
|
6597
|
+
l === "featured" && (L ? S.iconSurfaceOnLight : S.iconSurface)
|
|
6580
6598
|
)
|
|
6581
6599
|
},
|
|
6582
|
-
a ?? /* @__PURE__ */ m.createElement(
|
|
6600
|
+
a ?? /* @__PURE__ */ m.createElement(C, { size: N, stroke: 2 })
|
|
6583
6601
|
) : null, P = x ? /* @__PURE__ */ m.createElement(
|
|
6584
6602
|
"button",
|
|
6585
6603
|
{
|
|
6586
6604
|
type: "button",
|
|
6587
6605
|
"aria-label": w,
|
|
6588
6606
|
onClick: x,
|
|
6589
|
-
className: Jo({ layout:
|
|
6607
|
+
className: Jo({ layout: t })
|
|
6590
6608
|
},
|
|
6591
6609
|
/* @__PURE__ */ m.createElement(Ws, { size: 16, stroke: 2 })
|
|
6592
|
-
) : null, D = /* @__PURE__ */ m.createElement("div", { className: Ko({ layout:
|
|
6593
|
-
return
|
|
6610
|
+
) : null, D = /* @__PURE__ */ m.createElement("div", { className: Ko({ layout: t, closable: !!x }) }, /* @__PURE__ */ m.createElement("p", { className: qo }, e), s && /* @__PURE__ */ m.createElement("p", { className: Zo }, s));
|
|
6611
|
+
return t === "full-width" ? /* @__PURE__ */ m.createElement(
|
|
6594
6612
|
"div",
|
|
6595
6613
|
{
|
|
6596
6614
|
role: "alert",
|
|
6597
|
-
className: f(De({ layout:
|
|
6615
|
+
className: f(De({ layout: t }), R, z),
|
|
6598
6616
|
...E
|
|
6599
6617
|
},
|
|
6600
|
-
/* @__PURE__ */ m.createElement("div", { className: Uo }, /* @__PURE__ */ m.createElement("div", { className: Fe({ layout:
|
|
6618
|
+
/* @__PURE__ */ m.createElement("div", { className: Uo }, /* @__PURE__ */ m.createElement("div", { className: Fe({ layout: t }) }, A, D), (b || P) && /* @__PURE__ */ m.createElement("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2" }, b, P))
|
|
6601
6619
|
) : /* @__PURE__ */ m.createElement(
|
|
6602
6620
|
"div",
|
|
6603
6621
|
{
|
|
6604
6622
|
role: "alert",
|
|
6605
|
-
className: f(De({ layout:
|
|
6623
|
+
className: f(De({ layout: t }), R, z),
|
|
6606
6624
|
...E
|
|
6607
6625
|
},
|
|
6608
6626
|
A,
|
|
6609
|
-
/* @__PURE__ */ m.createElement("div", { className: Fe({ layout:
|
|
6627
|
+
/* @__PURE__ */ m.createElement("div", { className: Fe({ layout: t }) }, D, b),
|
|
6610
6628
|
P
|
|
6611
6629
|
);
|
|
6612
6630
|
};
|