@youversion/design-system-components 0.8.0 → 0.8.1
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/CHANGELOG.md +6 -0
- package/dist/index.es.js +322 -314
- package/dist/index.umd.js +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import je from "clsx";
|
|
2
2
|
import { jsxs as y, jsx as l, Fragment as Ie } from "react/jsx-runtime";
|
|
3
|
-
import ht, { forwardRef as $, createElement as
|
|
3
|
+
import ht, { forwardRef as $, createElement as V, useEffect as oe, useLayoutEffect as Qt, useRef as F, useState as q, useCallback as xe, useMemo as re, Children as Yt, isValidElement as er, useId as tr, cloneElement as rr } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
var nr = Object.defineProperty, or = Object.defineProperties, ar = Object.getOwnPropertyDescriptors, ye = Object.getOwnPropertySymbols, vt = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable, Ve = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
5
|
+
var nr = Object.defineProperty, or = Object.defineProperties, ar = Object.getOwnPropertyDescriptors, ye = Object.getOwnPropertySymbols, vt = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable, Ve = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ir = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
vt.call(t, r) && Ve(e, r, t[r]);
|
|
8
8
|
if (ye)
|
|
9
9
|
for (var r of ye(t))
|
|
10
10
|
xt.call(t, r) && Ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, sr = (e, t) => or(e, ar(t)), lr = (e, t) => {
|
|
13
13
|
var r = {};
|
|
14
14
|
for (var n in e)
|
|
15
15
|
vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -19,7 +19,7 @@ var nr = Object.defineProperty, or = Object.defineProperties, ar = Object.getOwn
|
|
|
19
19
|
return r;
|
|
20
20
|
}, dr = (e, t) => {
|
|
21
21
|
var r = e, { title: n, titleId: o } = r, a = lr(r, ["title", "titleId"]);
|
|
22
|
-
return y("svg", ir(
|
|
22
|
+
return y("svg", sr(ir({ width: a.size || "24", height: a.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": o }, a), { children: [n ? l("title", { id: o, children: n }) : null, l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z", fill: "currentColor" })] }));
|
|
23
23
|
}, cr = $(dr), yt = cr, wt = {
|
|
24
24
|
0: "0px",
|
|
25
25
|
px: "1px",
|
|
@@ -115,21 +115,21 @@ function $t(e) {
|
|
|
115
115
|
var We = "-";
|
|
116
116
|
function fr(e) {
|
|
117
117
|
var t = br(e), r = e.conflictingClassGroups, n = e.conflictingClassGroupModifiers, o = n === void 0 ? {} : n;
|
|
118
|
-
function a(
|
|
119
|
-
var d =
|
|
120
|
-
return d[0] === "" && d.length !== 1 && d.shift(), St(d, t) || pr(
|
|
118
|
+
function a(s) {
|
|
119
|
+
var d = s.split(We);
|
|
120
|
+
return d[0] === "" && d.length !== 1 && d.shift(), St(d, t) || pr(s);
|
|
121
121
|
}
|
|
122
|
-
function s
|
|
123
|
-
var c = r[
|
|
124
|
-
return d && o[
|
|
122
|
+
function i(s, d) {
|
|
123
|
+
var c = r[s] || [];
|
|
124
|
+
return d && o[s] ? [].concat(c, o[s]) : c;
|
|
125
125
|
}
|
|
126
126
|
return {
|
|
127
127
|
getClassGroupId: a,
|
|
128
|
-
getConflictingClassGroupIds:
|
|
128
|
+
getConflictingClassGroupIds: i
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
function St(e, t) {
|
|
132
|
-
var
|
|
132
|
+
var i;
|
|
133
133
|
if (e.length === 0)
|
|
134
134
|
return t.classGroupId;
|
|
135
135
|
var r = e[0], n = t.nextPart.get(r), o = n ? St(e.slice(1), n) : void 0;
|
|
@@ -137,10 +137,10 @@ function St(e, t) {
|
|
|
137
137
|
return o;
|
|
138
138
|
if (t.validators.length !== 0) {
|
|
139
139
|
var a = e.join(We);
|
|
140
|
-
return (
|
|
141
|
-
var d =
|
|
140
|
+
return (i = t.validators.find(function(s) {
|
|
141
|
+
var d = s.validator;
|
|
142
142
|
return d(a);
|
|
143
|
-
})) == null ? void 0 :
|
|
143
|
+
})) == null ? void 0 : i.classGroupId;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
var Ue = /^\[(.+)\]$/;
|
|
@@ -157,8 +157,8 @@ function br(e) {
|
|
|
157
157
|
validators: []
|
|
158
158
|
}, o = mr(Object.entries(e.classGroups), r);
|
|
159
159
|
return o.forEach(function(a) {
|
|
160
|
-
var
|
|
161
|
-
Me(
|
|
160
|
+
var i = a[0], s = a[1];
|
|
161
|
+
Me(s, n, i, t);
|
|
162
162
|
}), n;
|
|
163
163
|
}
|
|
164
164
|
function Me(e, t, r, n) {
|
|
@@ -179,9 +179,9 @@ function Me(e, t, r, n) {
|
|
|
179
179
|
});
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
Object.entries(o).forEach(function(
|
|
183
|
-
var
|
|
184
|
-
Me(d, _e(t,
|
|
182
|
+
Object.entries(o).forEach(function(i) {
|
|
183
|
+
var s = i[0], d = i[1];
|
|
184
|
+
Me(d, _e(t, s), r, n);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -199,11 +199,11 @@ function gr(e) {
|
|
|
199
199
|
}
|
|
200
200
|
function mr(e, t) {
|
|
201
201
|
return t ? e.map(function(r) {
|
|
202
|
-
var n = r[0], o = r[1], a = o.map(function(
|
|
203
|
-
return typeof
|
|
204
|
-
var d =
|
|
202
|
+
var n = r[0], o = r[1], a = o.map(function(i) {
|
|
203
|
+
return typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(function(s) {
|
|
204
|
+
var d = s[0], c = s[1];
|
|
205
205
|
return [t + d, c];
|
|
206
|
-
})) :
|
|
206
|
+
})) : i;
|
|
207
207
|
});
|
|
208
208
|
return [n, a];
|
|
209
209
|
}) : e;
|
|
@@ -217,31 +217,31 @@ function hr(e) {
|
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
var t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
220
|
-
function o(a,
|
|
221
|
-
r.set(a,
|
|
220
|
+
function o(a, i) {
|
|
221
|
+
r.set(a, i), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
222
222
|
}
|
|
223
223
|
return {
|
|
224
|
-
get: function(
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
228
|
-
if ((
|
|
229
|
-
return o(
|
|
224
|
+
get: function(i) {
|
|
225
|
+
var s = r.get(i);
|
|
226
|
+
if (s !== void 0)
|
|
227
|
+
return s;
|
|
228
|
+
if ((s = n.get(i)) !== void 0)
|
|
229
|
+
return o(i, s), s;
|
|
230
230
|
},
|
|
231
|
-
set: function(
|
|
232
|
-
r.has(
|
|
231
|
+
set: function(i, s) {
|
|
232
|
+
r.has(i) ? r.set(i, s) : o(i, s);
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
var Nt = "!";
|
|
237
237
|
function vr(e) {
|
|
238
238
|
var t = e.separator || ":", r = t.length === 1, n = t[0], o = t.length;
|
|
239
|
-
return function(
|
|
240
|
-
for (var
|
|
241
|
-
var v =
|
|
239
|
+
return function(i) {
|
|
240
|
+
for (var s = [], d = 0, c = 0, f, g = 0; g < i.length; g++) {
|
|
241
|
+
var v = i[g];
|
|
242
242
|
if (d === 0) {
|
|
243
|
-
if (v === n && (r ||
|
|
244
|
-
|
|
243
|
+
if (v === n && (r || i.slice(g, g + o) === t)) {
|
|
244
|
+
s.push(i.slice(c, g)), c = g + o;
|
|
245
245
|
continue;
|
|
246
246
|
}
|
|
247
247
|
if (v === "/") {
|
|
@@ -251,9 +251,9 @@ function vr(e) {
|
|
|
251
251
|
}
|
|
252
252
|
v === "[" ? d++ : v === "]" && d--;
|
|
253
253
|
}
|
|
254
|
-
var m =
|
|
254
|
+
var m = s.length === 0 ? i : i.substring(c), p = m.startsWith(Nt), w = p ? m.substring(1) : m, x = f && f > c ? f - c : void 0;
|
|
255
255
|
return {
|
|
256
|
-
modifiers:
|
|
256
|
+
modifiers: s,
|
|
257
257
|
hasImportantModifier: p,
|
|
258
258
|
baseClassName: w,
|
|
259
259
|
maybePostfixModifierPosition: x
|
|
@@ -279,18 +279,18 @@ function yr(e) {
|
|
|
279
279
|
var wr = /\s+/;
|
|
280
280
|
function kr(e, t) {
|
|
281
281
|
var r = t.splitModifiers, n = t.getClassGroupId, o = t.getConflictingClassGroupIds, a = /* @__PURE__ */ new Set();
|
|
282
|
-
return e.trim().split(wr).map(function(
|
|
283
|
-
var
|
|
282
|
+
return e.trim().split(wr).map(function(i) {
|
|
283
|
+
var s = r(i), d = s.modifiers, c = s.hasImportantModifier, f = s.baseClassName, g = s.maybePostfixModifierPosition, v = n(g ? f.substring(0, g) : f), m = Boolean(g);
|
|
284
284
|
if (!v) {
|
|
285
285
|
if (!g)
|
|
286
286
|
return {
|
|
287
287
|
isTailwindClass: !1,
|
|
288
|
-
originalClassName:
|
|
288
|
+
originalClassName: i
|
|
289
289
|
};
|
|
290
290
|
if (v = n(f), !v)
|
|
291
291
|
return {
|
|
292
292
|
isTailwindClass: !1,
|
|
293
|
-
originalClassName:
|
|
293
|
+
originalClassName: i
|
|
294
294
|
};
|
|
295
295
|
m = !1;
|
|
296
296
|
}
|
|
@@ -299,29 +299,29 @@ function kr(e, t) {
|
|
|
299
299
|
isTailwindClass: !0,
|
|
300
300
|
modifierId: w,
|
|
301
301
|
classGroupId: v,
|
|
302
|
-
originalClassName:
|
|
302
|
+
originalClassName: i,
|
|
303
303
|
hasPostfixModifier: m
|
|
304
304
|
};
|
|
305
|
-
}).reverse().filter(function(
|
|
306
|
-
if (!
|
|
305
|
+
}).reverse().filter(function(i) {
|
|
306
|
+
if (!i.isTailwindClass)
|
|
307
307
|
return !0;
|
|
308
|
-
var
|
|
308
|
+
var s = i.modifierId, d = i.classGroupId, c = i.hasPostfixModifier, f = s + d;
|
|
309
309
|
return a.has(f) ? !1 : (a.add(f), o(d, c).forEach(function(g) {
|
|
310
|
-
return a.add(
|
|
310
|
+
return a.add(s + g);
|
|
311
311
|
}), !0);
|
|
312
|
-
}).reverse().map(function(
|
|
313
|
-
return
|
|
312
|
+
}).reverse().map(function(i) {
|
|
313
|
+
return i.originalClassName;
|
|
314
314
|
}).join(" ");
|
|
315
315
|
}
|
|
316
316
|
function qe() {
|
|
317
317
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
318
318
|
t[r] = arguments[r];
|
|
319
|
-
var n, o, a,
|
|
320
|
-
function
|
|
319
|
+
var n, o, a, i = s;
|
|
320
|
+
function s(c) {
|
|
321
321
|
var f = t[0], g = t.slice(1), v = g.reduce(function(m, p) {
|
|
322
322
|
return p(m);
|
|
323
323
|
}, f());
|
|
324
|
-
return n = yr(v), o = n.cache.get, a = n.cache.set,
|
|
324
|
+
return n = yr(v), o = n.cache.get, a = n.cache.set, i = d, d(c);
|
|
325
325
|
}
|
|
326
326
|
function d(c) {
|
|
327
327
|
var f = o(c);
|
|
@@ -331,7 +331,7 @@ function qe() {
|
|
|
331
331
|
return a(c, g), g;
|
|
332
332
|
}
|
|
333
333
|
return function() {
|
|
334
|
-
return
|
|
334
|
+
return i(ur.apply(null, arguments));
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function k(e) {
|
|
@@ -341,7 +341,7 @@ function k(e) {
|
|
|
341
341
|
return t.isThemeGetter = !0, t;
|
|
342
342
|
}
|
|
343
343
|
var Ct = /^\[(?:([a-z-]+):)?(.+)\]$/i, $r = /^\d+\/\d+$/, Sr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Nr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Cr = /\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))|^0$/, Or = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
344
|
-
function
|
|
344
|
+
function j(e) {
|
|
345
345
|
return te(e) || Sr.has(e) || $r.test(e) || _(e);
|
|
346
346
|
}
|
|
347
347
|
function _(e) {
|
|
@@ -374,7 +374,7 @@ function C(e) {
|
|
|
374
374
|
function fe() {
|
|
375
375
|
return !0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function U(e) {
|
|
378
378
|
return Nr.test(e);
|
|
379
379
|
}
|
|
380
380
|
function Mr(e) {
|
|
@@ -400,23 +400,23 @@ function Rr(e) {
|
|
|
400
400
|
return Or.test(e);
|
|
401
401
|
}
|
|
402
402
|
function Ke() {
|
|
403
|
-
var e = k("colors"), t = k("spacing"), r = k("blur"), n = k("brightness"), o = k("borderColor"), a = k("borderRadius"),
|
|
403
|
+
var e = k("colors"), t = k("spacing"), r = k("blur"), n = k("brightness"), o = k("borderColor"), a = k("borderRadius"), i = k("borderSpacing"), s = k("borderWidth"), d = k("contrast"), c = k("grayscale"), f = k("hueRotate"), g = k("invert"), v = k("gap"), m = k("gradientColorStops"), p = k("gradientColorStopPositions"), w = k("inset"), x = k("margin"), I = k("opacity"), N = k("padding"), P = k("saturate"), S = k("scale"), h = k("sepia"), u = k("skew"), Z = k("space"), E = k("translate"), K = function() {
|
|
404
404
|
return ["auto", "contain", "none"];
|
|
405
405
|
}, O = function() {
|
|
406
406
|
return ["auto", "hidden", "clip", "visible", "scroll"];
|
|
407
|
-
},
|
|
407
|
+
}, A = function() {
|
|
408
408
|
return ["auto", t];
|
|
409
409
|
}, z = function() {
|
|
410
|
-
return ["",
|
|
410
|
+
return ["", j];
|
|
411
411
|
}, L = function() {
|
|
412
412
|
return ["auto", te, C];
|
|
413
|
-
},
|
|
413
|
+
}, ie = function() {
|
|
414
414
|
return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
|
|
415
|
-
},
|
|
415
|
+
}, W = function() {
|
|
416
416
|
return ["solid", "dashed", "dotted", "double", "none"];
|
|
417
417
|
}, be = function() {
|
|
418
418
|
return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"];
|
|
419
|
-
},
|
|
419
|
+
}, se = function() {
|
|
420
420
|
return ["start", "end", "center", "between", "around", "evenly", "stretch"];
|
|
421
421
|
}, X = function() {
|
|
422
422
|
return ["", "0", C];
|
|
@@ -431,11 +431,11 @@ function Ke() {
|
|
|
431
431
|
cacheSize: 500,
|
|
432
432
|
theme: {
|
|
433
433
|
colors: [fe],
|
|
434
|
-
spacing: [
|
|
435
|
-
blur: ["none", "",
|
|
434
|
+
spacing: [j],
|
|
435
|
+
blur: ["none", "", U, _],
|
|
436
436
|
brightness: J(),
|
|
437
437
|
borderColor: [e],
|
|
438
|
-
borderRadius: ["none", "", "full",
|
|
438
|
+
borderRadius: ["none", "", "full", U, _],
|
|
439
439
|
borderSpacing: [t],
|
|
440
440
|
borderWidth: z(),
|
|
441
441
|
contrast: J(),
|
|
@@ -445,8 +445,8 @@ function Ke() {
|
|
|
445
445
|
gap: [t],
|
|
446
446
|
gradientColorStops: [e],
|
|
447
447
|
gradientColorStopPositions: [Lr, _],
|
|
448
|
-
inset:
|
|
449
|
-
margin:
|
|
448
|
+
inset: A(),
|
|
449
|
+
margin: A(),
|
|
450
450
|
opacity: J(),
|
|
451
451
|
padding: [t],
|
|
452
452
|
saturate: J(),
|
|
@@ -475,7 +475,7 @@ function Ke() {
|
|
|
475
475
|
* @see https://tailwindcss.com/docs/columns
|
|
476
476
|
*/
|
|
477
477
|
columns: [{
|
|
478
|
-
columns: [
|
|
478
|
+
columns: [U]
|
|
479
479
|
}],
|
|
480
480
|
/**
|
|
481
481
|
* Break After
|
|
@@ -548,7 +548,7 @@ function Ke() {
|
|
|
548
548
|
* @see https://tailwindcss.com/docs/object-position
|
|
549
549
|
*/
|
|
550
550
|
"object-position": [{
|
|
551
|
-
object: [].concat(
|
|
551
|
+
object: [].concat(ie(), [C])
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Overflow
|
|
@@ -678,7 +678,7 @@ function Ke() {
|
|
|
678
678
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
679
679
|
*/
|
|
680
680
|
basis: [{
|
|
681
|
-
basis:
|
|
681
|
+
basis: A()
|
|
682
682
|
}],
|
|
683
683
|
/**
|
|
684
684
|
* Flex Direction
|
|
@@ -829,7 +829,7 @@ function Ke() {
|
|
|
829
829
|
* @see https://tailwindcss.com/docs/justify-content
|
|
830
830
|
*/
|
|
831
831
|
"justify-content": [{
|
|
832
|
-
justify: ["normal"].concat(
|
|
832
|
+
justify: ["normal"].concat(se())
|
|
833
833
|
}],
|
|
834
834
|
/**
|
|
835
835
|
* Justify Items
|
|
@@ -850,7 +850,7 @@ function Ke() {
|
|
|
850
850
|
* @see https://tailwindcss.com/docs/align-content
|
|
851
851
|
*/
|
|
852
852
|
"align-content": [{
|
|
853
|
-
content: ["normal"].concat(
|
|
853
|
+
content: ["normal"].concat(se(), ["baseline"])
|
|
854
854
|
}],
|
|
855
855
|
/**
|
|
856
856
|
* Align Items
|
|
@@ -871,7 +871,7 @@ function Ke() {
|
|
|
871
871
|
* @see https://tailwindcss.com/docs/place-content
|
|
872
872
|
*/
|
|
873
873
|
"place-content": [{
|
|
874
|
-
"place-content": [].concat(
|
|
874
|
+
"place-content": [].concat(se(), ["baseline"])
|
|
875
875
|
}],
|
|
876
876
|
/**
|
|
877
877
|
* Place Items
|
|
@@ -1051,7 +1051,7 @@ function Ke() {
|
|
|
1051
1051
|
* @see https://tailwindcss.com/docs/min-width
|
|
1052
1052
|
*/
|
|
1053
1053
|
"min-w": [{
|
|
1054
|
-
"min-w": ["min", "max", "fit",
|
|
1054
|
+
"min-w": ["min", "max", "fit", j]
|
|
1055
1055
|
}],
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Max-Width
|
|
@@ -1059,8 +1059,8 @@ function Ke() {
|
|
|
1059
1059
|
*/
|
|
1060
1060
|
"max-w": [{
|
|
1061
1061
|
"max-w": ["0", "none", "full", "min", "max", "fit", "prose", {
|
|
1062
|
-
screen: [
|
|
1063
|
-
},
|
|
1062
|
+
screen: [U]
|
|
1063
|
+
}, U, _]
|
|
1064
1064
|
}],
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Height
|
|
@@ -1074,7 +1074,7 @@ function Ke() {
|
|
|
1074
1074
|
* @see https://tailwindcss.com/docs/min-height
|
|
1075
1075
|
*/
|
|
1076
1076
|
"min-h": [{
|
|
1077
|
-
"min-h": ["min", "max", "fit",
|
|
1077
|
+
"min-h": ["min", "max", "fit", j]
|
|
1078
1078
|
}],
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Max-Height
|
|
@@ -1089,7 +1089,7 @@ function Ke() {
|
|
|
1089
1089
|
* @see https://tailwindcss.com/docs/font-size
|
|
1090
1090
|
*/
|
|
1091
1091
|
"font-size": [{
|
|
1092
|
-
text: ["base",
|
|
1092
|
+
text: ["base", U, _]
|
|
1093
1093
|
}],
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Font Smoothing
|
|
@@ -1164,7 +1164,7 @@ function Ke() {
|
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/line-height
|
|
1165
1165
|
*/
|
|
1166
1166
|
leading: [{
|
|
1167
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
1167
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", j]
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* List Style Image
|
|
@@ -1233,21 +1233,21 @@ function Ke() {
|
|
|
1233
1233
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1234
1234
|
*/
|
|
1235
1235
|
"text-decoration-style": [{
|
|
1236
|
-
decoration: [].concat(
|
|
1236
|
+
decoration: [].concat(W(), ["wavy"])
|
|
1237
1237
|
}],
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Text Decoration Thickness
|
|
1240
1240
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1241
1241
|
*/
|
|
1242
1242
|
"text-decoration-thickness": [{
|
|
1243
|
-
decoration: ["auto", "from-font",
|
|
1243
|
+
decoration: ["auto", "from-font", j]
|
|
1244
1244
|
}],
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Text Underline Offset
|
|
1247
1247
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1248
1248
|
*/
|
|
1249
1249
|
"underline-offset": [{
|
|
1250
|
-
"underline-offset": ["auto",
|
|
1250
|
+
"underline-offset": ["auto", j]
|
|
1251
1251
|
}],
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Text Decoration Color
|
|
@@ -1343,7 +1343,7 @@ function Ke() {
|
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/background-position
|
|
1344
1344
|
*/
|
|
1345
1345
|
"bg-position": [{
|
|
1346
|
-
bg: [].concat(
|
|
1346
|
+
bg: [].concat(ie(), [Er])
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Background Repeat
|
|
@@ -1530,63 +1530,63 @@ function Ke() {
|
|
|
1530
1530
|
* @see https://tailwindcss.com/docs/border-width
|
|
1531
1531
|
*/
|
|
1532
1532
|
"border-w": [{
|
|
1533
|
-
border: [
|
|
1533
|
+
border: [s]
|
|
1534
1534
|
}],
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Border Width X
|
|
1537
1537
|
* @see https://tailwindcss.com/docs/border-width
|
|
1538
1538
|
*/
|
|
1539
1539
|
"border-w-x": [{
|
|
1540
|
-
"border-x": [
|
|
1540
|
+
"border-x": [s]
|
|
1541
1541
|
}],
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Border Width Y
|
|
1544
1544
|
* @see https://tailwindcss.com/docs/border-width
|
|
1545
1545
|
*/
|
|
1546
1546
|
"border-w-y": [{
|
|
1547
|
-
"border-y": [
|
|
1547
|
+
"border-y": [s]
|
|
1548
1548
|
}],
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Border Width Start
|
|
1551
1551
|
* @see https://tailwindcss.com/docs/border-width
|
|
1552
1552
|
*/
|
|
1553
1553
|
"border-w-s": [{
|
|
1554
|
-
"border-s": [
|
|
1554
|
+
"border-s": [s]
|
|
1555
1555
|
}],
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Border Width End
|
|
1558
1558
|
* @see https://tailwindcss.com/docs/border-width
|
|
1559
1559
|
*/
|
|
1560
1560
|
"border-w-e": [{
|
|
1561
|
-
"border-e": [
|
|
1561
|
+
"border-e": [s]
|
|
1562
1562
|
}],
|
|
1563
1563
|
/**
|
|
1564
1564
|
* Border Width Top
|
|
1565
1565
|
* @see https://tailwindcss.com/docs/border-width
|
|
1566
1566
|
*/
|
|
1567
1567
|
"border-w-t": [{
|
|
1568
|
-
"border-t": [
|
|
1568
|
+
"border-t": [s]
|
|
1569
1569
|
}],
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Border Width Right
|
|
1572
1572
|
* @see https://tailwindcss.com/docs/border-width
|
|
1573
1573
|
*/
|
|
1574
1574
|
"border-w-r": [{
|
|
1575
|
-
"border-r": [
|
|
1575
|
+
"border-r": [s]
|
|
1576
1576
|
}],
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Border Width Bottom
|
|
1579
1579
|
* @see https://tailwindcss.com/docs/border-width
|
|
1580
1580
|
*/
|
|
1581
1581
|
"border-w-b": [{
|
|
1582
|
-
"border-b": [
|
|
1582
|
+
"border-b": [s]
|
|
1583
1583
|
}],
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Border Width Left
|
|
1586
1586
|
* @see https://tailwindcss.com/docs/border-width
|
|
1587
1587
|
*/
|
|
1588
1588
|
"border-w-l": [{
|
|
1589
|
-
"border-l": [
|
|
1589
|
+
"border-l": [s]
|
|
1590
1590
|
}],
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Border Opacity
|
|
@@ -1600,14 +1600,14 @@ function Ke() {
|
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/border-style
|
|
1601
1601
|
*/
|
|
1602
1602
|
"border-style": [{
|
|
1603
|
-
border: [].concat(
|
|
1603
|
+
border: [].concat(W(), ["hidden"])
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Divide Width X
|
|
1607
1607
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1608
1608
|
*/
|
|
1609
1609
|
"divide-x": [{
|
|
1610
|
-
"divide-x": [
|
|
1610
|
+
"divide-x": [s]
|
|
1611
1611
|
}],
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Divide Width X Reverse
|
|
@@ -1619,7 +1619,7 @@ function Ke() {
|
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/divide-width
|
|
1620
1620
|
*/
|
|
1621
1621
|
"divide-y": [{
|
|
1622
|
-
"divide-y": [
|
|
1622
|
+
"divide-y": [s]
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Divide Width Y Reverse
|
|
@@ -1638,7 +1638,7 @@ function Ke() {
|
|
|
1638
1638
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1639
1639
|
*/
|
|
1640
1640
|
"divide-style": [{
|
|
1641
|
-
divide:
|
|
1641
|
+
divide: W()
|
|
1642
1642
|
}],
|
|
1643
1643
|
/**
|
|
1644
1644
|
* Border Color
|
|
@@ -1701,21 +1701,21 @@ function Ke() {
|
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1702
1702
|
*/
|
|
1703
1703
|
"outline-style": [{
|
|
1704
|
-
outline: [""].concat(
|
|
1704
|
+
outline: [""].concat(W())
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Outline Offset
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1709
1709
|
*/
|
|
1710
1710
|
"outline-offset": [{
|
|
1711
|
-
"outline-offset": [
|
|
1711
|
+
"outline-offset": [j]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Outline Width
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1716
1716
|
*/
|
|
1717
1717
|
"outline-w": [{
|
|
1718
|
-
outline: [
|
|
1718
|
+
outline: [j]
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Outline Color
|
|
@@ -1755,7 +1755,7 @@ function Ke() {
|
|
|
1755
1755
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1756
1756
|
*/
|
|
1757
1757
|
"ring-offset-w": [{
|
|
1758
|
-
"ring-offset": [
|
|
1758
|
+
"ring-offset": [j]
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Ring Offset Color
|
|
@@ -1770,7 +1770,7 @@ function Ke() {
|
|
|
1770
1770
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1771
1771
|
*/
|
|
1772
1772
|
shadow: [{
|
|
1773
|
-
shadow: ["", "inner", "none",
|
|
1773
|
+
shadow: ["", "inner", "none", U, Mr]
|
|
1774
1774
|
}],
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Box Shadow Color
|
|
@@ -1835,7 +1835,7 @@ function Ke() {
|
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1836
1836
|
*/
|
|
1837
1837
|
"drop-shadow": [{
|
|
1838
|
-
"drop-shadow": ["", "none",
|
|
1838
|
+
"drop-shadow": ["", "none", U, C]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Grayscale
|
|
@@ -1956,21 +1956,21 @@ function Ke() {
|
|
|
1956
1956
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1957
1957
|
*/
|
|
1958
1958
|
"border-spacing": [{
|
|
1959
|
-
"border-spacing": [
|
|
1959
|
+
"border-spacing": [i]
|
|
1960
1960
|
}],
|
|
1961
1961
|
/**
|
|
1962
1962
|
* Border Spacing X
|
|
1963
1963
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1964
1964
|
*/
|
|
1965
1965
|
"border-spacing-x": [{
|
|
1966
|
-
"border-spacing-x": [
|
|
1966
|
+
"border-spacing-x": [i]
|
|
1967
1967
|
}],
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Border Spacing Y
|
|
1970
1970
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1971
1971
|
*/
|
|
1972
1972
|
"border-spacing-y": [{
|
|
1973
|
-
"border-spacing-y": [
|
|
1973
|
+
"border-spacing-y": [i]
|
|
1974
1974
|
}],
|
|
1975
1975
|
/**
|
|
1976
1976
|
* Table Layout
|
|
@@ -2331,7 +2331,7 @@ function Ke() {
|
|
|
2331
2331
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2332
2332
|
*/
|
|
2333
2333
|
"stroke-w": [{
|
|
2334
|
-
stroke: [
|
|
2334
|
+
stroke: [j, me]
|
|
2335
2335
|
}],
|
|
2336
2336
|
/**
|
|
2337
2337
|
* Stroke
|
|
@@ -2425,27 +2425,35 @@ function Wr(e) {
|
|
|
2425
2425
|
return Br(Ke(), e);
|
|
2426
2426
|
}].concat(r));
|
|
2427
2427
|
}
|
|
2428
|
-
const Gr = Object.keys(Ae.fontSize), Dr = Object.keys(Ae.fontWeight), Fr = Object.keys(Ae.lineHeight),
|
|
2428
|
+
const Gr = Object.keys(Ae.fontSize), Dr = Object.keys(Ae.fontWeight), Fr = Object.keys(Ae.lineHeight), R = Object.keys(wt), Hr = Object.keys(kt.borderWidth), Vr = Object.keys(kt.borderRadius), Ur = Wr({
|
|
2429
2429
|
classGroups: {
|
|
2430
2430
|
"font-size": [{ text: Gr }],
|
|
2431
2431
|
"font-weight": [{ font: Dr }],
|
|
2432
2432
|
leading: [{ leading: Fr }],
|
|
2433
|
-
mbe: [{ mbe:
|
|
2434
|
-
mbs: [{ mbs:
|
|
2435
|
-
mie: [{ mie:
|
|
2436
|
-
mis: [{ mis:
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2433
|
+
mbe: [{ mbe: R }],
|
|
2434
|
+
mbs: [{ mbs: R }],
|
|
2435
|
+
mie: [{ mie: R }],
|
|
2436
|
+
mis: [{ mis: R }],
|
|
2437
|
+
mlb: [{ mlb: R }],
|
|
2438
|
+
mli: [{ mli: R }],
|
|
2439
|
+
pbe: [{ pbe: R }],
|
|
2440
|
+
pbs: [{ pbs: R }],
|
|
2441
|
+
pie: [{ pie: R }],
|
|
2442
|
+
pis: [{ pis: R }],
|
|
2443
|
+
plb: [{ plb: R }],
|
|
2444
|
+
pli: [{ pli: R }]
|
|
2441
2445
|
},
|
|
2442
2446
|
conflictingClassGroups: {
|
|
2443
|
-
m: ["mie", "mis", "mbe", "mbs"],
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2447
|
+
m: ["mie", "mis", "mbe", "mbs", "mlb", "mli"],
|
|
2448
|
+
mlb: ["mbe", "mbs"],
|
|
2449
|
+
mli: ["mie", "mis"],
|
|
2450
|
+
mx: ["mie", "mis", "mli"],
|
|
2451
|
+
my: ["mbe", "mbs", "mlb"],
|
|
2452
|
+
p: ["pie", "pis", "pbe", "pbs", "plb", "pli"],
|
|
2453
|
+
plb: ["pbe", "pbs"],
|
|
2454
|
+
pli: ["pie", "pis"],
|
|
2455
|
+
px: ["pie", "pis", "pli"],
|
|
2456
|
+
py: ["pbe", "pbs", "plb"]
|
|
2449
2457
|
},
|
|
2450
2458
|
theme: {
|
|
2451
2459
|
borderRadius: Vr,
|
|
@@ -2476,8 +2484,8 @@ const Pe = (e) => {
|
|
|
2476
2484
|
borderWidth: n,
|
|
2477
2485
|
className: o,
|
|
2478
2486
|
component: a = "div",
|
|
2479
|
-
color:
|
|
2480
|
-
elevation:
|
|
2487
|
+
color: i,
|
|
2488
|
+
elevation: s = 0,
|
|
2481
2489
|
height: d,
|
|
2482
2490
|
margin: c,
|
|
2483
2491
|
padding: f,
|
|
@@ -2491,10 +2499,10 @@ const Pe = (e) => {
|
|
|
2491
2499
|
4: "shadow-light-4 dark:shadow-dark-4",
|
|
2492
2500
|
8: "shadow-light-8 dark:shadow-dark-8",
|
|
2493
2501
|
12: "shadow-light-12 dark:shadow-dark-12"
|
|
2494
|
-
}, w = Pe(
|
|
2502
|
+
}, w = Pe(i), x = Pe(e), I = Pe(t), N = Xe(f), P = Xe(c), S = b(
|
|
2495
2503
|
r,
|
|
2496
2504
|
n,
|
|
2497
|
-
p[
|
|
2505
|
+
p[s],
|
|
2498
2506
|
P,
|
|
2499
2507
|
N,
|
|
2500
2508
|
w,
|
|
@@ -2504,13 +2512,13 @@ const Pe = (e) => {
|
|
|
2504
2512
|
d,
|
|
2505
2513
|
o
|
|
2506
2514
|
);
|
|
2507
|
-
return
|
|
2515
|
+
return V(a, {
|
|
2508
2516
|
className: S,
|
|
2509
2517
|
...v,
|
|
2510
2518
|
ref: m
|
|
2511
2519
|
});
|
|
2512
|
-
},
|
|
2513
|
-
|
|
2520
|
+
}, B = $(_r);
|
|
2521
|
+
B.displayName = "Box";
|
|
2514
2522
|
const Ge = ({ innerRef: e, forwardedRef: t }) => (oe(() => {
|
|
2515
2523
|
[e, t].forEach((r) => {
|
|
2516
2524
|
r && (typeof r == "function" ? r(e.current || null) : r.current = e.current || null);
|
|
@@ -2529,21 +2537,21 @@ const Zr = ({
|
|
|
2529
2537
|
error: n,
|
|
2530
2538
|
hint: o,
|
|
2531
2539
|
label: a,
|
|
2532
|
-
name:
|
|
2533
|
-
onChange:
|
|
2540
|
+
name: i,
|
|
2541
|
+
onChange: s,
|
|
2534
2542
|
placeholder: d,
|
|
2535
2543
|
startIcon: c,
|
|
2536
2544
|
value: f,
|
|
2537
2545
|
...g
|
|
2538
2546
|
}, v) => {
|
|
2539
|
-
const m =
|
|
2547
|
+
const m = F(null), p = Ge({ forwardedRef: v, innerRef: m }), [w, x] = q(Boolean(f)), [I, N] = q(!1);
|
|
2540
2548
|
oe(() => {
|
|
2541
2549
|
var u;
|
|
2542
2550
|
x(Boolean((u = p == null ? void 0 : p.current) == null ? void 0 : u.value) || Boolean(f || d));
|
|
2543
2551
|
}, [f, d, p]);
|
|
2544
2552
|
const P = (u) => {
|
|
2545
2553
|
var Z;
|
|
2546
|
-
x(Boolean((Z = p == null ? void 0 : p.current) == null ? void 0 : Z.value) || Boolean(f || d)),
|
|
2554
|
+
x(Boolean((Z = p == null ? void 0 : p.current) == null ? void 0 : Z.value) || Boolean(f || d)), s && s(u);
|
|
2547
2555
|
}, S = () => {
|
|
2548
2556
|
t || !p.current || (p.current.focus(), N(!0));
|
|
2549
2557
|
}, h = () => {
|
|
@@ -2573,7 +2581,7 @@ const Zr = ({
|
|
|
2573
2581
|
a ? "pbs-3 pbe-1" : "pbs-2 pbe-2"
|
|
2574
2582
|
]),
|
|
2575
2583
|
disabled: t,
|
|
2576
|
-
id:
|
|
2584
|
+
id: i,
|
|
2577
2585
|
onBlur: h,
|
|
2578
2586
|
onChange: P,
|
|
2579
2587
|
placeholder: d,
|
|
@@ -2590,7 +2598,7 @@ const Zr = ({
|
|
|
2590
2598
|
c ? "inline-start-1" : "inline-start-2",
|
|
2591
2599
|
I || w ? "text-13 -translate-y-1.5" : "text-16"
|
|
2592
2600
|
),
|
|
2593
|
-
htmlFor:
|
|
2601
|
+
htmlFor: i,
|
|
2594
2602
|
children: a
|
|
2595
2603
|
}
|
|
2596
2604
|
) : null
|
|
@@ -2616,8 +2624,8 @@ const Kr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
|
|
|
2616
2624
|
}
|
|
2617
2625
|
), Pt = $(Kr);
|
|
2618
2626
|
Pt.displayName = "List";
|
|
2619
|
-
const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ...a },
|
|
2620
|
-
const
|
|
2627
|
+
const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ...a }, i) => {
|
|
2628
|
+
const s = (d) => {
|
|
2621
2629
|
o && (d.code === "Enter" || d.key === " ") && o();
|
|
2622
2630
|
};
|
|
2623
2631
|
return /* @__PURE__ */ l(
|
|
@@ -2628,7 +2636,7 @@ const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ..
|
|
|
2628
2636
|
n ? "after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px" : null,
|
|
2629
2637
|
t
|
|
2630
2638
|
]),
|
|
2631
|
-
ref:
|
|
2639
|
+
ref: i,
|
|
2632
2640
|
...a,
|
|
2633
2641
|
children: /* @__PURE__ */ l(
|
|
2634
2642
|
"div",
|
|
@@ -2639,7 +2647,7 @@ const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ..
|
|
|
2639
2647
|
r ? "pointer-events-none" : ""
|
|
2640
2648
|
]),
|
|
2641
2649
|
onClick: o,
|
|
2642
|
-
onKeyUp:
|
|
2650
|
+
onKeyUp: s,
|
|
2643
2651
|
onTouchEnd: o,
|
|
2644
2652
|
tabIndex: o ? 0 : void 0,
|
|
2645
2653
|
children: e
|
|
@@ -2656,25 +2664,25 @@ const Jr = ({
|
|
|
2656
2664
|
disabled: n = !1,
|
|
2657
2665
|
error: o,
|
|
2658
2666
|
hint: a,
|
|
2659
|
-
noOptionsText:
|
|
2660
|
-
onChange:
|
|
2667
|
+
noOptionsText: i,
|
|
2668
|
+
onChange: s,
|
|
2661
2669
|
onSelect: d,
|
|
2662
2670
|
value: c,
|
|
2663
2671
|
...f
|
|
2664
2672
|
}, g) => {
|
|
2665
|
-
const v =
|
|
2666
|
-
w || x(!0), !h.length && m && p(null),
|
|
2673
|
+
const v = F(null), [m, p] = q(c), [w, x] = q(!1), I = (h) => {
|
|
2674
|
+
w || x(!0), !h.length && m && p(null), s(h);
|
|
2667
2675
|
}, N = (h) => {
|
|
2668
|
-
d(h),
|
|
2676
|
+
d(h), s(h.label), p(h.label), x(!1);
|
|
2669
2677
|
}, P = xe(
|
|
2670
2678
|
(h) => {
|
|
2671
|
-
v.current && !v.current.contains(h.target) && (!m && c &&
|
|
2679
|
+
v.current && !v.current.contains(h.target) && (!m && c && s(""), m && c && s(m), x(!1));
|
|
2672
2680
|
},
|
|
2673
|
-
[
|
|
2681
|
+
[s, m, c]
|
|
2674
2682
|
), S = re(() => r.filter((h) => h.label.toLowerCase().includes(c.toLowerCase())) ?? [], [r, c]);
|
|
2675
2683
|
return oe(() => (document.addEventListener("click", P, !0), () => {
|
|
2676
2684
|
document.removeEventListener("click", P, !0);
|
|
2677
|
-
}), [P]), /* @__PURE__ */ y(
|
|
2685
|
+
}), [P]), /* @__PURE__ */ y(B, { className: "relative", ref: v, children: [
|
|
2678
2686
|
/* @__PURE__ */ l(
|
|
2679
2687
|
Et,
|
|
2680
2688
|
{
|
|
@@ -2693,7 +2701,7 @@ const Jr = ({
|
|
|
2693
2701
|
...f
|
|
2694
2702
|
}
|
|
2695
2703
|
),
|
|
2696
|
-
w ? /* @__PURE__ */ l(
|
|
2704
|
+
w ? /* @__PURE__ */ l(B, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ l(Pt, { className: "max-h-[300px] overflow-y-auto", children: S.length ? S.map((h, u) => /* @__PURE__ */ l(Te, { onClick: () => N(h), children: h.label }, `${h.value}-${u}`)) : /* @__PURE__ */ l(Te, { children: i }) }) }) : null
|
|
2697
2705
|
] });
|
|
2698
2706
|
}, Qr = $(Jr);
|
|
2699
2707
|
Qr.displayName = "AutocompleteSelect";
|
|
@@ -2768,20 +2776,20 @@ const Je = {
|
|
|
2768
2776
|
}, Mt = {
|
|
2769
2777
|
primary: "font-aktiv-grotesk",
|
|
2770
2778
|
secondary: "font-untitled-serif"
|
|
2771
|
-
}, Yr = ({ className: e, component: t = "p", children: r, font: n = "primary", size: o, variant: a, ...
|
|
2779
|
+
}, Yr = ({ className: e, component: t = "p", children: r, font: n = "primary", size: o, variant: a, ...i }, s) => {
|
|
2772
2780
|
const d = "text-text-light dark:text-text-dark", c = Mt[n], f = Lt({ size: o, variant: a });
|
|
2773
2781
|
return /* @__PURE__ */ l(
|
|
2774
|
-
|
|
2782
|
+
B,
|
|
2775
2783
|
{
|
|
2776
2784
|
className: b(d, f, c, e),
|
|
2777
2785
|
component: t,
|
|
2778
|
-
ref:
|
|
2779
|
-
...
|
|
2786
|
+
ref: s,
|
|
2787
|
+
...i,
|
|
2780
2788
|
children: r
|
|
2781
2789
|
}
|
|
2782
2790
|
);
|
|
2783
|
-
},
|
|
2784
|
-
|
|
2791
|
+
}, D = $(Yr);
|
|
2792
|
+
D.displayName = "Text";
|
|
2785
2793
|
const en = ({
|
|
2786
2794
|
children: e,
|
|
2787
2795
|
component: t = "a",
|
|
@@ -2790,7 +2798,7 @@ const en = ({
|
|
|
2790
2798
|
active: o,
|
|
2791
2799
|
...a
|
|
2792
2800
|
}) => /* @__PURE__ */ l(
|
|
2793
|
-
|
|
2801
|
+
D,
|
|
2794
2802
|
{
|
|
2795
2803
|
className: b([
|
|
2796
2804
|
"font-bold text-gray-50 leading-default whitespace-nowrap",
|
|
@@ -2824,32 +2832,32 @@ var tn = Object.defineProperty, rn = Object.defineProperties, nn = Object.getOwn
|
|
|
2824
2832
|
return y("svg", an(on({ width: a.size || "24", height: a.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": o }, a), { children: [n ? l("title", { id: o, children: n }) : null, l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z", fill: "currentColor" })] }));
|
|
2825
2833
|
}, dn = $(ln), cn = dn;
|
|
2826
2834
|
const un = ({ children: e, className: t, ...r }, n) => {
|
|
2827
|
-
const o = Yt.toArray(e), a = o.findIndex((
|
|
2828
|
-
var
|
|
2829
|
-
return er(
|
|
2835
|
+
const o = Yt.toArray(e), a = o.findIndex((i) => {
|
|
2836
|
+
var s;
|
|
2837
|
+
return er(i) ? (s = i == null ? void 0 : i.props) == null ? void 0 : s.active : !1;
|
|
2830
2838
|
});
|
|
2831
|
-
return /* @__PURE__ */ l("div", { className: b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children: o.map((
|
|
2832
|
-
|
|
2839
|
+
return /* @__PURE__ */ l("div", { className: b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children: o.map((i, s) => /* @__PURE__ */ y("div", { className: "flex items-center", children: [
|
|
2840
|
+
s ? /* @__PURE__ */ l(
|
|
2833
2841
|
cn,
|
|
2834
2842
|
{
|
|
2835
2843
|
className: b([
|
|
2836
2844
|
"mx-1",
|
|
2837
|
-
|
|
2838
|
-
|
|
2845
|
+
s > a && "text-gray-15",
|
|
2846
|
+
s <= a && "text-gray-25"
|
|
2839
2847
|
]),
|
|
2840
2848
|
size: "15"
|
|
2841
2849
|
}
|
|
2842
2850
|
) : null,
|
|
2843
|
-
typeof
|
|
2844
|
-
...
|
|
2851
|
+
typeof i == "object" && "type" in i ? V(i.type, {
|
|
2852
|
+
...i.props,
|
|
2845
2853
|
className: b([
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2854
|
+
i.props.className ?? "",
|
|
2855
|
+
s < a ? "bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer" : "px-0.5",
|
|
2856
|
+
s > a && "[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium",
|
|
2849
2857
|
"rtl:rotate-180"
|
|
2850
2858
|
])
|
|
2851
|
-
}) :
|
|
2852
|
-
] }, `${
|
|
2859
|
+
}) : i
|
|
2860
|
+
] }, `${s}-${i.toString()}`)) });
|
|
2853
2861
|
}, fn = $(un);
|
|
2854
2862
|
fn.displayName = "Breadcrumbs";
|
|
2855
2863
|
const na = {
|
|
@@ -2910,29 +2918,29 @@ const na = {
|
|
|
2910
2918
|
icon: n,
|
|
2911
2919
|
iconAction: o,
|
|
2912
2920
|
iconPosition: a,
|
|
2913
|
-
size:
|
|
2914
|
-
type:
|
|
2921
|
+
size: i = "md",
|
|
2922
|
+
type: s = "button",
|
|
2915
2923
|
variant: d = "primary",
|
|
2916
2924
|
...c
|
|
2917
2925
|
}, f) => {
|
|
2918
|
-
const g = Rt(n !== void 0 ? a : void 0), v = b(Bt, Ee[d], g[
|
|
2919
|
-
return /* @__PURE__ */ y("button", { className: v, disabled: r, ref: f, type:
|
|
2920
|
-
a === "start" && n !== void 0 ?
|
|
2926
|
+
const g = Rt(n !== void 0 ? a : void 0), v = b(Bt, Ee[d], g[i], e);
|
|
2927
|
+
return /* @__PURE__ */ y("button", { className: v, disabled: r, ref: f, type: s, ...c, children: [
|
|
2928
|
+
a === "start" && n !== void 0 ? V(n, {
|
|
2921
2929
|
className: "mie-0.5",
|
|
2922
2930
|
onClick: o ?? void 0,
|
|
2923
|
-
size: ke[
|
|
2931
|
+
size: ke[i]
|
|
2924
2932
|
}) : null,
|
|
2925
2933
|
/* @__PURE__ */ l("span", { className: "truncate", children: t }),
|
|
2926
|
-
a === "end" && n !== void 0 ?
|
|
2934
|
+
a === "end" && n !== void 0 ? V(n, {
|
|
2927
2935
|
className: "mis-0.5",
|
|
2928
2936
|
onClick: o ?? void 0,
|
|
2929
|
-
size: ke[
|
|
2937
|
+
size: ke[i]
|
|
2930
2938
|
}) : null
|
|
2931
2939
|
] });
|
|
2932
2940
|
}, $e = $(pn);
|
|
2933
2941
|
$e.displayName = "Button";
|
|
2934
|
-
const bn = ({ error: e, className: t, label: r, disabled: n, name: o, ...a },
|
|
2935
|
-
const
|
|
2942
|
+
const bn = ({ error: e, className: t, label: r, disabled: n, name: o, ...a }, i) => {
|
|
2943
|
+
const s = tr(), d = re(() => `checkbox-label-${s}`, [s]);
|
|
2936
2944
|
return /* @__PURE__ */ y(
|
|
2937
2945
|
"div",
|
|
2938
2946
|
{
|
|
@@ -2949,7 +2957,7 @@ const bn = ({ error: e, className: t, label: r, disabled: n, name: o, ...a }, s)
|
|
|
2949
2957
|
disabled: n,
|
|
2950
2958
|
id: o,
|
|
2951
2959
|
name: o,
|
|
2952
|
-
ref:
|
|
2960
|
+
ref: i,
|
|
2953
2961
|
type: "checkbox",
|
|
2954
2962
|
...a
|
|
2955
2963
|
}
|
|
@@ -2981,18 +2989,18 @@ var mn = Object.defineProperty, hn = Object.defineProperties, vn = Object.getOwn
|
|
|
2981
2989
|
return y("svg", yn(xn({ width: a.size || "24", height: a.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": o }, a), { children: [n ? l("title", { id: o, children: n }) : null, l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z", fill: "currentColor" })] }));
|
|
2982
2990
|
}, $n = $(kn), Sn = $n;
|
|
2983
2991
|
const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
2984
|
-
const r =
|
|
2992
|
+
const r = F(null);
|
|
2985
2993
|
return oe(() => {
|
|
2986
2994
|
if (r.current) {
|
|
2987
2995
|
const n = r.current.querySelectorAll(
|
|
2988
2996
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2989
2997
|
);
|
|
2990
2998
|
let o = document.activeElement;
|
|
2991
|
-
const a = n[0],
|
|
2999
|
+
const a = n[0], i = n[n.length - 1], s = (f) => {
|
|
2992
3000
|
if (f.key === "Tab") {
|
|
2993
3001
|
if (f.shiftKey) {
|
|
2994
3002
|
if (document.activeElement === a)
|
|
2995
|
-
f.preventDefault(),
|
|
3003
|
+
f.preventDefault(), i.focus(), o = i;
|
|
2996
3004
|
else
|
|
2997
3005
|
for (let g = 0; g < n.length; g++)
|
|
2998
3006
|
if (n[g] === document.activeElement) {
|
|
@@ -3000,7 +3008,7 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3000
3008
|
break;
|
|
3001
3009
|
}
|
|
3002
3010
|
} else if (!f.shiftKey) {
|
|
3003
|
-
if (document.activeElement ===
|
|
3011
|
+
if (document.activeElement === i)
|
|
3004
3012
|
f.preventDefault(), a.focus(), o = a;
|
|
3005
3013
|
else
|
|
3006
3014
|
for (let g = 0; g < n.length; g++)
|
|
@@ -3022,12 +3030,12 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3022
3030
|
const c = (f) => {
|
|
3023
3031
|
r.current && !r.current.contains(f.target) && o.focus();
|
|
3024
3032
|
};
|
|
3025
|
-
return document.addEventListener("keydown",
|
|
3026
|
-
document.removeEventListener("keydown",
|
|
3033
|
+
return document.addEventListener("keydown", s), document.addEventListener("click", c), () => {
|
|
3034
|
+
document.removeEventListener("keydown", s), document.removeEventListener("click", c);
|
|
3027
3035
|
};
|
|
3028
3036
|
}
|
|
3029
3037
|
}, [t]), /* @__PURE__ */ l("div", { ref: r, children: e });
|
|
3030
|
-
}, Nn = ({ children: e, className: t, disabled: r, type: n = "button", variant: o = "borderless", ...a },
|
|
3038
|
+
}, Nn = ({ children: e, className: t, disabled: r, type: n = "button", variant: o = "borderless", ...a }, i) => /* @__PURE__ */ l(
|
|
3031
3039
|
"button",
|
|
3032
3040
|
{
|
|
3033
3041
|
className: b([
|
|
@@ -3037,7 +3045,7 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3037
3045
|
r ? "pointer-events-none" : ""
|
|
3038
3046
|
]),
|
|
3039
3047
|
disabled: r,
|
|
3040
|
-
ref:
|
|
3048
|
+
ref: i,
|
|
3041
3049
|
type: n,
|
|
3042
3050
|
...a,
|
|
3043
3051
|
children: e
|
|
@@ -3049,15 +3057,15 @@ const Cn = {
|
|
|
3049
3057
|
2: "h2",
|
|
3050
3058
|
3: "h3",
|
|
3051
3059
|
4: "h4"
|
|
3052
|
-
}, On = ({ className: e, children: t, font: r = "primary", level: n = 1, size: o, variant: a, ...
|
|
3060
|
+
}, On = ({ className: e, children: t, font: r = "primary", level: n = 1, size: o, variant: a, ...i }, s) => {
|
|
3053
3061
|
const d = "text-text-light dark:text-text-dark", c = Mt[r], f = Lt({ size: o, variant: a });
|
|
3054
3062
|
return /* @__PURE__ */ l(
|
|
3055
|
-
|
|
3063
|
+
B,
|
|
3056
3064
|
{
|
|
3057
3065
|
className: b(d, f, c, e),
|
|
3058
3066
|
component: Cn[n],
|
|
3059
|
-
ref:
|
|
3060
|
-
...
|
|
3067
|
+
ref: s,
|
|
3068
|
+
...i,
|
|
3061
3069
|
children: t
|
|
3062
3070
|
}
|
|
3063
3071
|
);
|
|
@@ -3070,8 +3078,8 @@ const In = ({
|
|
|
3070
3078
|
confirmationButtons: n,
|
|
3071
3079
|
dialogType: o = "confirmation",
|
|
3072
3080
|
heading: a,
|
|
3073
|
-
isDismissableOnOutsideClick:
|
|
3074
|
-
onClose:
|
|
3081
|
+
isDismissableOnOutsideClick: i = !0,
|
|
3082
|
+
onClose: s,
|
|
3075
3083
|
...d
|
|
3076
3084
|
}, c) => (qr(), /* @__PURE__ */ y("div", { className: "flex items-center justify-center w-full h-full z-20 absolute inset-0", children: [
|
|
3077
3085
|
/* @__PURE__ */ l(
|
|
@@ -3080,7 +3088,7 @@ const In = ({
|
|
|
3080
3088
|
className: "absolute inset-0 bg-overlay-light dark:bg-overlay-dark",
|
|
3081
3089
|
"data-testid": "dialog-overlay",
|
|
3082
3090
|
id: "overlay",
|
|
3083
|
-
onClick:
|
|
3091
|
+
onClick: i ? s : void 0
|
|
3084
3092
|
}
|
|
3085
3093
|
),
|
|
3086
3094
|
/* @__PURE__ */ l(Wt, { autoFocus: e, children: /* @__PURE__ */ y(
|
|
@@ -3100,7 +3108,7 @@ const In = ({
|
|
|
3100
3108
|
{
|
|
3101
3109
|
className: "absolute inline-end-2 block-start-2",
|
|
3102
3110
|
"data-testid": "close-modal-button",
|
|
3103
|
-
onClick:
|
|
3111
|
+
onClick: s,
|
|
3104
3112
|
children: /* @__PURE__ */ l(Sn, {})
|
|
3105
3113
|
}
|
|
3106
3114
|
) : null,
|
|
@@ -3124,7 +3132,7 @@ const oa = ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { ...t, className
|
|
|
3124
3132
|
width: `${t}%`
|
|
3125
3133
|
}
|
|
3126
3134
|
}
|
|
3127
|
-
) }), Pn = ({ className: e, children: t, component: r = "a", variant: n = "borderless", ...o }, a) =>
|
|
3135
|
+
) }), Pn = ({ className: e, children: t, component: r = "a", variant: n = "borderless", ...o }, a) => V(
|
|
3128
3136
|
r,
|
|
3129
3137
|
{
|
|
3130
3138
|
...o,
|
|
@@ -3156,12 +3164,12 @@ var Mn = Object.defineProperty, Tn = Object.defineProperties, zn = Object.getOwn
|
|
|
3156
3164
|
}, An = (e, t) => {
|
|
3157
3165
|
var r = e, { title: n, titleId: o } = r, a = jn(r, ["title", "titleId"]);
|
|
3158
3166
|
return y("svg", Bn(Rn({ width: a.size || "24", height: a.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": o }, a), { children: [n ? l("title", { id: o, children: n }) : null, l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z", fill: "currentColor" })] }));
|
|
3159
|
-
}, Wn = $(An), Gn = Wn, Dn = Object.defineProperty, Fn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable,
|
|
3167
|
+
}, Wn = $(An), Gn = Wn, Dn = Object.defineProperty, Fn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vn = (e, t) => {
|
|
3160
3168
|
for (var r in t || (t = {}))
|
|
3161
|
-
Vt.call(t, r) &&
|
|
3169
|
+
Vt.call(t, r) && it(e, r, t[r]);
|
|
3162
3170
|
if (Ce)
|
|
3163
3171
|
for (var r of Ce(t))
|
|
3164
|
-
Ut.call(t, r) &&
|
|
3172
|
+
Ut.call(t, r) && it(e, r, t[r]);
|
|
3165
3173
|
return e;
|
|
3166
3174
|
}, Un = (e, t) => Fn(e, Hn(t)), _n = (e, t) => {
|
|
3167
3175
|
var r = {};
|
|
@@ -3174,12 +3182,12 @@ var Mn = Object.defineProperty, Tn = Object.defineProperties, zn = Object.getOwn
|
|
|
3174
3182
|
}, qn = (e, t) => {
|
|
3175
3183
|
var r = e, { title: n, titleId: o } = r, a = _n(r, ["title", "titleId"]);
|
|
3176
3184
|
return y("svg", Un(Vn({ width: a.size || "24", height: a.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": o }, a), { children: [n ? l("title", { id: o, children: n }) : null, l("path", { d: "M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z", fill: "currentColor" }), l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z", fill: "currentColor" }), l("path", { d: "M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z", fill: "currentColor" })] }));
|
|
3177
|
-
}, Zn = $(qn), Kn = Zn, Xn = Object.defineProperty, Jn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, _t = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable,
|
|
3185
|
+
}, Zn = $(qn), Kn = Zn, Xn = Object.defineProperty, Jn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, _t = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3178
3186
|
for (var r in t || (t = {}))
|
|
3179
|
-
_t.call(t, r) &&
|
|
3187
|
+
_t.call(t, r) && st(e, r, t[r]);
|
|
3180
3188
|
if (Oe)
|
|
3181
3189
|
for (var r of Oe(t))
|
|
3182
|
-
qt.call(t, r) &&
|
|
3190
|
+
qt.call(t, r) && st(e, r, t[r]);
|
|
3183
3191
|
return e;
|
|
3184
3192
|
}, eo = (e, t) => Jn(e, Qn(t)), to = (e, t) => {
|
|
3185
3193
|
var r = {};
|
|
@@ -3200,8 +3208,8 @@ const ao = ({
|
|
|
3200
3208
|
className: n,
|
|
3201
3209
|
disabled: o = !1,
|
|
3202
3210
|
dismissCallback: a,
|
|
3203
|
-
dismissImageAriaLabel:
|
|
3204
|
-
error:
|
|
3211
|
+
dismissImageAriaLabel: i = "Remove Image",
|
|
3212
|
+
error: s = "",
|
|
3205
3213
|
fileMaxKbSizeError: d = (E, K) => `${E} is too big to upload, the maximum size is ${K}kb. Please try again.`,
|
|
3206
3214
|
fileMaxSizeError: c = (E) => `${E} is too large to upload. The maximum dimensions are ${u == null ? void 0 : u.maxWidth}x${u == null ? void 0 : u.maxHeight}. Please try again.`,
|
|
3207
3215
|
fileMinSizeError: f = (E) => `${E} is too small to upload. The minimum dimensions are ${u == null ? void 0 : u.minWidth}x${u == null ? void 0 : u.minHeight}. Please try again.`,
|
|
@@ -3218,13 +3226,13 @@ const ao = ({
|
|
|
3218
3226
|
shape: h = "circle",
|
|
3219
3227
|
validation: u
|
|
3220
3228
|
}, Z) => {
|
|
3221
|
-
const E =
|
|
3222
|
-
const
|
|
3223
|
-
a && a(x),
|
|
3229
|
+
const E = F(null), K = Ge({ forwardedRef: Z, innerRef: E }), [O, A] = q(void 0), [z, L] = q(x ? "resolved" : "idle"), [ie, W] = q(s), be = () => E != null && E.current ? E.current.click() : void 0, se = re(() => O && z !== "rejected" ? (L("resolved"), O.imageSrc) : x && z === "resolved" ? (L("resolved"), x) : null, [O, x, z]), X = re(() => {
|
|
3230
|
+
const G = () => {
|
|
3231
|
+
a && a(x), A(void 0), L("idle");
|
|
3224
3232
|
};
|
|
3225
3233
|
switch (z) {
|
|
3226
3234
|
case "pending":
|
|
3227
|
-
return /* @__PURE__ */ l(
|
|
3235
|
+
return /* @__PURE__ */ l(B, { className: "animate-spin", children: /* @__PURE__ */ l(oo, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
|
|
3228
3236
|
case "resolved":
|
|
3229
3237
|
return /* @__PURE__ */ y(Ie, { children: [
|
|
3230
3238
|
/* @__PURE__ */ l(
|
|
@@ -3239,65 +3247,65 @@ const ao = ({
|
|
|
3239
3247
|
h === "unset" && !m ? "!aspect-auto" : ""
|
|
3240
3248
|
]),
|
|
3241
3249
|
onLoad: () => O != null && O.imageSrc ? URL.revokeObjectURL(O.imageSrc) : void 0,
|
|
3242
|
-
src:
|
|
3250
|
+
src: se || void 0,
|
|
3243
3251
|
width: w
|
|
3244
3252
|
}
|
|
3245
3253
|
),
|
|
3246
3254
|
o ? null : /* @__PURE__ */ l(
|
|
3247
3255
|
$e,
|
|
3248
3256
|
{
|
|
3249
|
-
"aria-label":
|
|
3257
|
+
"aria-label": i,
|
|
3250
3258
|
className: "absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1",
|
|
3251
3259
|
"data-testid": "remove image",
|
|
3252
|
-
onClick:
|
|
3260
|
+
onClick: G,
|
|
3253
3261
|
children: /* @__PURE__ */ l(Gn, {})
|
|
3254
3262
|
}
|
|
3255
3263
|
)
|
|
3256
3264
|
] });
|
|
3257
3265
|
default:
|
|
3258
|
-
return /* @__PURE__ */ l(
|
|
3266
|
+
return /* @__PURE__ */ l(B, { className: "gray-10 dark:gray-30", children: /* @__PURE__ */ l(Kn, { "data-testid": "placeholder image", size: "32" }) });
|
|
3259
3267
|
}
|
|
3260
3268
|
}, [
|
|
3261
3269
|
o,
|
|
3262
3270
|
a,
|
|
3263
|
-
|
|
3271
|
+
i,
|
|
3264
3272
|
m,
|
|
3265
3273
|
O == null ? void 0 : O.id,
|
|
3266
3274
|
O == null ? void 0 : O.imageSrc,
|
|
3267
3275
|
x,
|
|
3268
3276
|
z,
|
|
3269
3277
|
w,
|
|
3270
|
-
|
|
3278
|
+
se,
|
|
3271
3279
|
h
|
|
3272
|
-
]), ge = ({ file:
|
|
3280
|
+
]), ge = ({ file: G, imageUrl: Q }) => new Promise((Y, ee) => {
|
|
3273
3281
|
var He;
|
|
3274
3282
|
const T = new Image(), ce = (He = u == null ? void 0 : u.imageRatio) == null ? void 0 : He.split("/");
|
|
3275
3283
|
T.onload = async () => {
|
|
3276
3284
|
if (u)
|
|
3277
|
-
if (u != null && u.maxByteSize &&
|
|
3278
|
-
|
|
3279
|
-
const Jt = d(
|
|
3280
|
-
return
|
|
3285
|
+
if (u != null && u.maxByteSize && G.size > u.maxByteSize) {
|
|
3286
|
+
A(void 0), L("rejected");
|
|
3287
|
+
const Jt = d(G.name, Math.round(u.maxByteSize / 1e3));
|
|
3288
|
+
return W(Jt), ee(!1);
|
|
3281
3289
|
} else {
|
|
3282
3290
|
if (u != null && u.minWidth && T.width < (u == null ? void 0 : u.minWidth) || u != null && u.minHeight && T.height < (u == null ? void 0 : u.minHeight))
|
|
3283
|
-
return
|
|
3291
|
+
return A(void 0), L("rejected"), W(f(G.name)), ee(!1);
|
|
3284
3292
|
if (u != null && u.maxHeight && T.height > (u == null ? void 0 : u.maxHeight) || u != null && u.maxWidth && T.width > (u == null ? void 0 : u.maxWidth))
|
|
3285
|
-
return
|
|
3293
|
+
return A(void 0), L("rejected"), W(c(G.name)), ee(!1);
|
|
3286
3294
|
if (u != null && u.imageRatio && (ce == null ? void 0 : ce.length) === 2 && parseInt(ce[0]) / parseInt(ce[1]) !== T.width / T.height)
|
|
3287
|
-
return
|
|
3295
|
+
return A(void 0), L("rejected"), W(g(G.name)), ee(!1);
|
|
3288
3296
|
}
|
|
3289
|
-
return w = T.width, typeof v == "function" && (console.log("Callback"), await v(
|
|
3297
|
+
return w = T.width, typeof v == "function" && (console.log("Callback"), await v(G, T)), W(""), Y(!0);
|
|
3290
3298
|
}, T.src = Q;
|
|
3291
|
-
}), J = async (
|
|
3299
|
+
}), J = async (G) => {
|
|
3292
3300
|
try {
|
|
3293
|
-
const { files: Q } =
|
|
3301
|
+
const { files: Q } = G.target;
|
|
3294
3302
|
if (Q) {
|
|
3295
3303
|
const Y = Q[0], ee = URL.createObjectURL(Y);
|
|
3296
3304
|
let T = !0;
|
|
3297
3305
|
L("pending"), S && await S(Y), T = await ge({
|
|
3298
3306
|
file: Y,
|
|
3299
3307
|
imageUrl: ee
|
|
3300
|
-
}), T && (
|
|
3308
|
+
}), T && (A({ file: Y, id: Y.name, imageSrc: ee }), L("resolved"));
|
|
3301
3309
|
}
|
|
3302
3310
|
} catch (Q) {
|
|
3303
3311
|
if (Q instanceof Error)
|
|
@@ -3308,21 +3316,21 @@ const ao = ({
|
|
|
3308
3316
|
h === "unset" && z !== "idle" && !m ? "aspect-auto" : "",
|
|
3309
3317
|
h === "unset" && z !== "resolved" && !m ? "aspect-square" : ""
|
|
3310
3318
|
]), Xt = b([m ? "rounded-1 aspect-video" : ""]);
|
|
3311
|
-
return /* @__PURE__ */ y(
|
|
3319
|
+
return /* @__PURE__ */ y(B, { className: b([n]), children: [
|
|
3312
3320
|
/* @__PURE__ */ y(
|
|
3313
|
-
|
|
3321
|
+
B,
|
|
3314
3322
|
{
|
|
3315
3323
|
className: b([
|
|
3316
3324
|
"relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",
|
|
3317
3325
|
,
|
|
3318
|
-
|
|
3326
|
+
ie ? "border-alert-light dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark",
|
|
3319
3327
|
o ? "select-none bg-gray-10 dark:bg-gray-40 pointer-events-none" : ""
|
|
3320
3328
|
]),
|
|
3321
3329
|
children: [
|
|
3322
|
-
/* @__PURE__ */ l(
|
|
3323
|
-
/* @__PURE__ */ y(
|
|
3330
|
+
/* @__PURE__ */ l(D, { className: "pbe-1.5 text-text-muted-light dark:text-text-muted-dark", children: /* @__PURE__ */ l("label", { htmlFor: N, children: I }) }),
|
|
3331
|
+
/* @__PURE__ */ y(B, { className: "flex relative flex-wrap justify-center md:justify-start", children: [
|
|
3324
3332
|
/* @__PURE__ */ l(
|
|
3325
|
-
|
|
3333
|
+
B,
|
|
3326
3334
|
{
|
|
3327
3335
|
className: b([
|
|
3328
3336
|
"flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
|
|
@@ -3371,30 +3379,30 @@ const ao = ({
|
|
|
3371
3379
|
]
|
|
3372
3380
|
}
|
|
3373
3381
|
),
|
|
3374
|
-
|
|
3375
|
-
p ? /* @__PURE__ */ l(
|
|
3382
|
+
ie ? /* @__PURE__ */ l(D, { className: "dark:!text-alert-dark !text-alert-light text-13", children: ie }) : null,
|
|
3383
|
+
p ? /* @__PURE__ */ l(D, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: p }) : null
|
|
3376
3384
|
] });
|
|
3377
|
-
},
|
|
3378
|
-
|
|
3379
|
-
const
|
|
3385
|
+
}, io = $(ao);
|
|
3386
|
+
io.displayName = "ImageUpload";
|
|
3387
|
+
const so = ({
|
|
3380
3388
|
className: e,
|
|
3381
3389
|
children: t,
|
|
3382
3390
|
component: r = "a",
|
|
3383
3391
|
icon: n,
|
|
3384
3392
|
iconPosition: o,
|
|
3385
3393
|
variant: a = "primary",
|
|
3386
|
-
size:
|
|
3387
|
-
...
|
|
3394
|
+
size: i = "md",
|
|
3395
|
+
...s
|
|
3388
3396
|
}, d) => {
|
|
3389
3397
|
const c = Rt(n !== void 0 ? o : void 0);
|
|
3390
|
-
return /* @__PURE__ */ y(({ children: g }) =>
|
|
3398
|
+
return /* @__PURE__ */ y(({ children: g }) => V(
|
|
3391
3399
|
r,
|
|
3392
3400
|
{
|
|
3393
|
-
...
|
|
3401
|
+
...s,
|
|
3394
3402
|
className: b([
|
|
3395
3403
|
Bt,
|
|
3396
3404
|
Ee[a],
|
|
3397
|
-
c[
|
|
3405
|
+
c[i],
|
|
3398
3406
|
"no-underline cursor-pointer",
|
|
3399
3407
|
e
|
|
3400
3408
|
]),
|
|
@@ -3402,23 +3410,23 @@ const io = ({
|
|
|
3402
3410
|
},
|
|
3403
3411
|
g
|
|
3404
3412
|
), { children: [
|
|
3405
|
-
o === "start" && n !== void 0 ?
|
|
3413
|
+
o === "start" && n !== void 0 ? V(n, {
|
|
3406
3414
|
className: "mie-0.5 flex-shrink-0",
|
|
3407
|
-
size: ke[
|
|
3415
|
+
size: ke[i]
|
|
3408
3416
|
}) : null,
|
|
3409
|
-
|
|
3410
|
-
o === "end" && n !== void 0 ?
|
|
3417
|
+
V("span", { className: "truncate" }, t),
|
|
3418
|
+
o === "end" && n !== void 0 ? V(n, {
|
|
3411
3419
|
className: "mis-0.5 flex-shrink-0",
|
|
3412
|
-
size: ke[
|
|
3420
|
+
size: ke[i]
|
|
3413
3421
|
}) : null
|
|
3414
3422
|
] });
|
|
3415
|
-
}, lo = $(
|
|
3423
|
+
}, lo = $(so);
|
|
3416
3424
|
lo.displayName = "LinkButton";
|
|
3417
|
-
function
|
|
3425
|
+
function ia({ children: e, className: t, position: r }) {
|
|
3418
3426
|
let n = "";
|
|
3419
3427
|
return r && (r === "start" ? n = "order-first" : n = "order-last"), /* @__PURE__ */ l("div", { className: b("flex gap-1", n, t), children: e });
|
|
3420
3428
|
}
|
|
3421
|
-
function
|
|
3429
|
+
function sa({ children: e, className: t }) {
|
|
3422
3430
|
return /* @__PURE__ */ l("div", { className: b("flex-grow", t), children: e });
|
|
3423
3431
|
}
|
|
3424
3432
|
const la = ({
|
|
@@ -3428,16 +3436,16 @@ const la = ({
|
|
|
3428
3436
|
endTextProps: n,
|
|
3429
3437
|
size: o = "sm",
|
|
3430
3438
|
subHeadline: a,
|
|
3431
|
-
subHeadlineProps:
|
|
3439
|
+
subHeadlineProps: i
|
|
3432
3440
|
}) => /* @__PURE__ */ y("div", { className: b(["flex items-center justify-between break-words", t]), children: [
|
|
3433
3441
|
/* @__PURE__ */ y("div", { className: "flex flex-col", children: [
|
|
3434
|
-
/* @__PURE__ */ l(
|
|
3442
|
+
/* @__PURE__ */ l(D, { size: o, variant: "label", children: e }),
|
|
3435
3443
|
a ? (
|
|
3436
3444
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
3437
|
-
/* @__PURE__ */ l(
|
|
3445
|
+
/* @__PURE__ */ l(D, { ...i, children: a })
|
|
3438
3446
|
) : null
|
|
3439
3447
|
] }),
|
|
3440
|
-
r ? /* @__PURE__ */ l(
|
|
3448
|
+
r ? /* @__PURE__ */ l(D, { ...n, children: r }) : null
|
|
3441
3449
|
] }), da = ({ children: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(["relative", t]), ...r, children: e }), co = typeof window < "u" ? ht.useLayoutEffect : () => {
|
|
3442
3450
|
};
|
|
3443
3451
|
let pe = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Set();
|
|
@@ -3505,7 +3513,7 @@ class ho {
|
|
|
3505
3513
|
}
|
|
3506
3514
|
}
|
|
3507
3515
|
function vo(e) {
|
|
3508
|
-
let t =
|
|
3516
|
+
let t = F({
|
|
3509
3517
|
isFocused: !1,
|
|
3510
3518
|
onBlur: e,
|
|
3511
3519
|
observer: null
|
|
@@ -3519,8 +3527,8 @@ function vo(e) {
|
|
|
3519
3527
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
3520
3528
|
t.current.isFocused = !0;
|
|
3521
3529
|
let n = r.target, o = (a) => {
|
|
3522
|
-
var
|
|
3523
|
-
t.current.isFocused = !1, n.disabled && ((
|
|
3530
|
+
var i, s;
|
|
3531
|
+
t.current.isFocused = !1, n.disabled && ((s = (i = t.current).onBlur) === null || s === void 0 || s.call(i, new ho("blur", a))), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
3524
3532
|
};
|
|
3525
3533
|
n.addEventListener("focusout", o, {
|
|
3526
3534
|
once: !0
|
|
@@ -3570,20 +3578,20 @@ function ft() {
|
|
|
3570
3578
|
}
|
|
3571
3579
|
typeof document < "u" && (document.readyState !== "loading" ? ft() : document.addEventListener("DOMContentLoaded", ft));
|
|
3572
3580
|
function So(e) {
|
|
3573
|
-
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: o } = e, a =
|
|
3581
|
+
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: o } = e, a = F({
|
|
3574
3582
|
isFocusWithin: !1
|
|
3575
|
-
}),
|
|
3583
|
+
}), i = xe((c) => {
|
|
3576
3584
|
a.current.isFocusWithin && !c.currentTarget.contains(c.relatedTarget) && (a.current.isFocusWithin = !1, r && r(c), o && o(!1));
|
|
3577
3585
|
}, [
|
|
3578
3586
|
r,
|
|
3579
3587
|
o,
|
|
3580
3588
|
a
|
|
3581
|
-
]),
|
|
3582
|
-
!a.current.isFocusWithin && document.activeElement === c.target && (n && n(c), o && o(!0), a.current.isFocusWithin = !0,
|
|
3589
|
+
]), s = vo(i), d = xe((c) => {
|
|
3590
|
+
!a.current.isFocusWithin && document.activeElement === c.target && (n && n(c), o && o(!0), a.current.isFocusWithin = !0, s(c));
|
|
3583
3591
|
}, [
|
|
3584
3592
|
n,
|
|
3585
3593
|
o,
|
|
3586
|
-
|
|
3594
|
+
s
|
|
3587
3595
|
]);
|
|
3588
3596
|
return t ? {
|
|
3589
3597
|
focusWithinProps: {
|
|
@@ -3593,43 +3601,43 @@ function So(e) {
|
|
|
3593
3601
|
} : {
|
|
3594
3602
|
focusWithinProps: {
|
|
3595
3603
|
onFocus: d,
|
|
3596
|
-
onBlur:
|
|
3604
|
+
onBlur: i
|
|
3597
3605
|
}
|
|
3598
3606
|
};
|
|
3599
3607
|
}
|
|
3600
3608
|
function No(e) {
|
|
3601
|
-
let { ref: t, onInteractOutside: r, isDisabled: n, onInteractOutsideStart: o } = e,
|
|
3609
|
+
let { ref: t, onInteractOutside: r, isDisabled: n, onInteractOutsideStart: o } = e, i = F({
|
|
3602
3610
|
isPointerDown: !1,
|
|
3603
3611
|
ignoreEmulatedMouseEvents: !1,
|
|
3604
3612
|
onInteractOutside: r,
|
|
3605
3613
|
onInteractOutsideStart: o
|
|
3606
3614
|
}).current;
|
|
3607
|
-
|
|
3615
|
+
i.onInteractOutside = r, i.onInteractOutsideStart = o, oe(() => {
|
|
3608
3616
|
if (n)
|
|
3609
3617
|
return;
|
|
3610
|
-
let
|
|
3611
|
-
he(d, t) &&
|
|
3618
|
+
let s = (d) => {
|
|
3619
|
+
he(d, t) && i.onInteractOutside && (i.onInteractOutsideStart && i.onInteractOutsideStart(d), i.isPointerDown = !0);
|
|
3612
3620
|
};
|
|
3613
3621
|
if (typeof PointerEvent < "u") {
|
|
3614
3622
|
let d = (c) => {
|
|
3615
|
-
|
|
3623
|
+
i.isPointerDown && i.onInteractOutside && he(c, t) && i.onInteractOutside(c), i.isPointerDown = !1;
|
|
3616
3624
|
};
|
|
3617
|
-
return document.addEventListener("pointerdown",
|
|
3618
|
-
document.removeEventListener("pointerdown",
|
|
3625
|
+
return document.addEventListener("pointerdown", s, !0), document.addEventListener("pointerup", d, !0), () => {
|
|
3626
|
+
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("pointerup", d, !0);
|
|
3619
3627
|
};
|
|
3620
3628
|
} else {
|
|
3621
3629
|
let d = (f) => {
|
|
3622
|
-
|
|
3630
|
+
i.ignoreEmulatedMouseEvents ? i.ignoreEmulatedMouseEvents = !1 : i.isPointerDown && i.onInteractOutside && he(f, t) && i.onInteractOutside(f), i.isPointerDown = !1;
|
|
3623
3631
|
}, c = (f) => {
|
|
3624
|
-
|
|
3632
|
+
i.ignoreEmulatedMouseEvents = !0, i.onInteractOutside && i.isPointerDown && he(f, t) && i.onInteractOutside(f), i.isPointerDown = !1;
|
|
3625
3633
|
};
|
|
3626
|
-
return document.addEventListener("mousedown",
|
|
3627
|
-
document.removeEventListener("mousedown",
|
|
3634
|
+
return document.addEventListener("mousedown", s, !0), document.addEventListener("mouseup", d, !0), document.addEventListener("touchstart", s, !0), document.addEventListener("touchend", c, !0), () => {
|
|
3635
|
+
document.removeEventListener("mousedown", s, !0), document.removeEventListener("mouseup", d, !0), document.removeEventListener("touchstart", s, !0), document.removeEventListener("touchend", c, !0);
|
|
3628
3636
|
};
|
|
3629
3637
|
}
|
|
3630
3638
|
}, [
|
|
3631
3639
|
t,
|
|
3632
|
-
|
|
3640
|
+
i,
|
|
3633
3641
|
n
|
|
3634
3642
|
]);
|
|
3635
3643
|
}
|
|
@@ -3713,24 +3721,24 @@ class pt {
|
|
|
3713
3721
|
}
|
|
3714
3722
|
}
|
|
3715
3723
|
let bt = new Fe();
|
|
3716
|
-
const
|
|
3724
|
+
const H = [];
|
|
3717
3725
|
function Eo(e, t) {
|
|
3718
|
-
let { onClose: r, shouldCloseOnBlur: n, isOpen: o, isDismissable: a = !1, isKeyboardDismissDisabled:
|
|
3719
|
-
oe(() => (o &&
|
|
3720
|
-
let p =
|
|
3721
|
-
p >= 0 &&
|
|
3726
|
+
let { onClose: r, shouldCloseOnBlur: n, isOpen: o, isDismissable: a = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: s } = e;
|
|
3727
|
+
oe(() => (o && H.push(t), () => {
|
|
3728
|
+
let p = H.indexOf(t);
|
|
3729
|
+
p >= 0 && H.splice(p, 1);
|
|
3722
3730
|
}), [
|
|
3723
3731
|
o,
|
|
3724
3732
|
t
|
|
3725
3733
|
]);
|
|
3726
3734
|
let d = () => {
|
|
3727
|
-
|
|
3735
|
+
H[H.length - 1] === t && r && r();
|
|
3728
3736
|
}, c = (p) => {
|
|
3729
|
-
(!
|
|
3737
|
+
(!s || s(p.target)) && H[H.length - 1] === t && (p.stopPropagation(), p.preventDefault());
|
|
3730
3738
|
}, f = (p) => {
|
|
3731
|
-
(!
|
|
3739
|
+
(!s || s(p.target)) && (H[H.length - 1] === t && (p.stopPropagation(), p.preventDefault()), d());
|
|
3732
3740
|
}, g = (p) => {
|
|
3733
|
-
p.key === "Escape" && !
|
|
3741
|
+
p.key === "Escape" && !i && (p.stopPropagation(), p.preventDefault(), d());
|
|
3734
3742
|
};
|
|
3735
3743
|
No({
|
|
3736
3744
|
ref: t,
|
|
@@ -3740,7 +3748,7 @@ function Eo(e, t) {
|
|
|
3740
3748
|
let { focusWithinProps: v } = So({
|
|
3741
3749
|
isDisabled: !n,
|
|
3742
3750
|
onBlurWithin: (p) => {
|
|
3743
|
-
p.relatedTarget && Io(p.relatedTarget) || (!
|
|
3751
|
+
p.relatedTarget && Io(p.relatedTarget) || (!s || s(p.relatedTarget)) && r();
|
|
3744
3752
|
}
|
|
3745
3753
|
}), m = (p) => {
|
|
3746
3754
|
p.target === p.currentTarget && p.preventDefault();
|
|
@@ -3757,7 +3765,7 @@ function Eo(e, t) {
|
|
|
3757
3765
|
}
|
|
3758
3766
|
const Po = ({ align: e, children: t, className: r, ...n }) => {
|
|
3759
3767
|
const o = re(() => {
|
|
3760
|
-
const { horizontal: a, vertical:
|
|
3768
|
+
const { horizontal: a, vertical: i } = e, s = {
|
|
3761
3769
|
center: "left-1/2",
|
|
3762
3770
|
end: "inline-end-0",
|
|
3763
3771
|
start: "inline-start-0"
|
|
@@ -3765,7 +3773,7 @@ const Po = ({ align: e, children: t, className: r, ...n }) => {
|
|
|
3765
3773
|
bottom: "",
|
|
3766
3774
|
top: "bottom-full"
|
|
3767
3775
|
};
|
|
3768
|
-
return `${
|
|
3776
|
+
return `${s[a]} ${d[i]}`;
|
|
3769
3777
|
}, [e]);
|
|
3770
3778
|
return /* @__PURE__ */ l(
|
|
3771
3779
|
"div",
|
|
@@ -3786,15 +3794,15 @@ const Po = ({ align: e, children: t, className: r, ...n }) => {
|
|
|
3786
3794
|
className: n,
|
|
3787
3795
|
isDismissible: o,
|
|
3788
3796
|
isOpen: a,
|
|
3789
|
-
onClose:
|
|
3790
|
-
...
|
|
3797
|
+
onClose: i,
|
|
3798
|
+
...s
|
|
3791
3799
|
}) => {
|
|
3792
|
-
const d =
|
|
3800
|
+
const d = F(null), { overlayProps: c } = Eo(
|
|
3793
3801
|
{
|
|
3794
3802
|
isDismissable: o,
|
|
3795
3803
|
isKeyboardDismissDisabled: !o,
|
|
3796
3804
|
isOpen: a,
|
|
3797
|
-
onClose:
|
|
3805
|
+
onClose: i
|
|
3798
3806
|
},
|
|
3799
3807
|
d
|
|
3800
3808
|
);
|
|
@@ -3803,21 +3811,21 @@ const Po = ({ align: e, children: t, className: r, ...n }) => {
|
|
|
3803
3811
|
{
|
|
3804
3812
|
align: e,
|
|
3805
3813
|
className: n,
|
|
3806
|
-
onClose:
|
|
3807
|
-
...
|
|
3808
|
-
children: /* @__PURE__ */ l("div", { ref: d, ...c, onClick:
|
|
3814
|
+
onClose: i,
|
|
3815
|
+
...s,
|
|
3816
|
+
children: /* @__PURE__ */ l("div", { ref: d, ...c, onClick: i, children: r })
|
|
3809
3817
|
}
|
|
3810
3818
|
) }) });
|
|
3811
3819
|
}, ua = ({ onToggle: e, children: t, className: r, disabled: n }) => {
|
|
3812
|
-
const o = (
|
|
3813
|
-
|
|
3814
|
-
}, a =
|
|
3820
|
+
const o = (s) => {
|
|
3821
|
+
s.preventDefault(), s.stopPropagation(), e();
|
|
3822
|
+
}, a = F(null), i = rr(t, {
|
|
3815
3823
|
className: r,
|
|
3816
3824
|
disabled: n,
|
|
3817
3825
|
onClick: o,
|
|
3818
3826
|
ref: a
|
|
3819
3827
|
});
|
|
3820
|
-
return /* @__PURE__ */ l(Ie, { children:
|
|
3828
|
+
return /* @__PURE__ */ l(Ie, { children: i });
|
|
3821
3829
|
}, Mo = (e, t) => {
|
|
3822
3830
|
const { children: r, error: n, hint: o, label: a } = e;
|
|
3823
3831
|
return /* @__PURE__ */ y("div", { ...e, className: "flex-col rounded-0.5 w-fit", ref: t, children: [
|
|
@@ -3856,9 +3864,9 @@ const fa = ({ ...e }) => /* @__PURE__ */ l("option", { ...e }), Bo = "_select_1d
|
|
|
3856
3864
|
const jo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0", Ao = "border-alert-light dark:border-alert-dark", Wo = "border-tertiary-light dark:border-tertiary-dark", Be = "text-text-muted-light dark:text-text-muted-dark", gt = b(
|
|
3857
3865
|
Be,
|
|
3858
3866
|
"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
|
|
3859
|
-
), Go = "-translate-y-1 opacity-100", Do = "text-overlay-text dark:text-text-dark", Fo = "!pbs-3 !pbe-1", Ho = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", Vo = ({ children: e, className: t, disabled: r = !1, error: n, hint: o, label: a, name:
|
|
3867
|
+
), Go = "-translate-y-1 opacity-100", Do = "text-overlay-text dark:text-text-dark", Fo = "!pbs-3 !pbe-1", Ho = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", Vo = ({ children: e, className: t, disabled: r = !1, error: n, hint: o, label: a, name: i, onChange: s, value: d, ...c }, f) => {
|
|
3860
3868
|
var P;
|
|
3861
|
-
const g = b(Bo, jo), v =
|
|
3869
|
+
const g = b(Bo, jo), v = F(null), m = Ge({ forwardedRef: f, innerRef: v }), [p, w] = q(Boolean(d || ((P = m == null ? void 0 : m.current) == null ? void 0 : P.value)));
|
|
3862
3870
|
oe(() => {
|
|
3863
3871
|
var S;
|
|
3864
3872
|
w(Boolean(((S = m == null ? void 0 : m.current) == null ? void 0 : S.value) || d));
|
|
@@ -3871,7 +3879,7 @@ const jo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
3871
3879
|
return p ? S : h;
|
|
3872
3880
|
}, [p]), N = (S) => {
|
|
3873
3881
|
var h;
|
|
3874
|
-
w(Boolean(((h = m == null ? void 0 : m.current) == null ? void 0 : h.value) || d)),
|
|
3882
|
+
w(Boolean(((h = m == null ? void 0 : m.current) == null ? void 0 : h.value) || d)), s && s(S);
|
|
3875
3883
|
};
|
|
3876
3884
|
return /* @__PURE__ */ y("div", { className: b(t), children: [
|
|
3877
3885
|
/* @__PURE__ */ y("div", { className: "relative w-full border-none", children: [
|
|
@@ -3881,15 +3889,15 @@ const jo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
3881
3889
|
...c,
|
|
3882
3890
|
className: b([x, n ? Ao : Wo]),
|
|
3883
3891
|
disabled: r,
|
|
3884
|
-
id:
|
|
3885
|
-
name:
|
|
3892
|
+
id: i,
|
|
3893
|
+
name: i,
|
|
3886
3894
|
onChange: N,
|
|
3887
3895
|
ref: m,
|
|
3888
3896
|
value: d,
|
|
3889
3897
|
children: e
|
|
3890
3898
|
}
|
|
3891
3899
|
),
|
|
3892
|
-
/* @__PURE__ */ l("label", { className: I, htmlFor:
|
|
3900
|
+
/* @__PURE__ */ l("label", { className: I, htmlFor: i, children: a }),
|
|
3893
3901
|
/* @__PURE__ */ l("div", { className: Ho, children: /* @__PURE__ */ l(yt, { size: "24" }) })
|
|
3894
3902
|
] }),
|
|
3895
3903
|
n || o ? /* @__PURE__ */ y("div", { className: "mbs-0.5", children: [
|
|
@@ -3900,7 +3908,7 @@ const jo = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
3900
3908
|
}, pa = $(Vo);
|
|
3901
3909
|
function ba({ active: e, children: t, component: r = "a", className: n, href: o }) {
|
|
3902
3910
|
return /* @__PURE__ */ l(
|
|
3903
|
-
|
|
3911
|
+
D,
|
|
3904
3912
|
{
|
|
3905
3913
|
className: b(
|
|
3906
3914
|
"text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",
|
|
@@ -3925,7 +3933,7 @@ const Uo = {
|
|
|
3925
3933
|
sm: "text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"
|
|
3926
3934
|
}, ga = ({ message: e, variant: t = "default", size: r = "sm", className: n }) => {
|
|
3927
3935
|
const o = Uo[t], a = _o[r];
|
|
3928
|
-
return /* @__PURE__ */ l(
|
|
3936
|
+
return /* @__PURE__ */ l(B, { className: b(o, a, n), children: /* @__PURE__ */ l(D, { children: e }) });
|
|
3929
3937
|
}, qo = "_inputIcon_1pzdd_1", Zo = {
|
|
3930
3938
|
inputIcon: qo
|
|
3931
3939
|
}, Ko = ({ className: e, error: t, name: r, ...n }, o) => /* @__PURE__ */ y(Ie, { children: [
|
|
@@ -3954,7 +3962,7 @@ const Jo = "_tooltipWrapper_qu88w_1", Qo = "_tooltipContent_qu88w_18", mt = {
|
|
|
3954
3962
|
}, ma = ({ content: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(mt.tooltipWrapper, t), ...r, children: /* @__PURE__ */ l("span", { className: mt.tooltipContent, children: e }) });
|
|
3955
3963
|
export {
|
|
3956
3964
|
Qr as AutocompleteSelect,
|
|
3957
|
-
|
|
3965
|
+
B as Box,
|
|
3958
3966
|
en as Breadcrumb,
|
|
3959
3967
|
fn as Breadcrumbs,
|
|
3960
3968
|
$e as Button,
|
|
@@ -3967,14 +3975,14 @@ export {
|
|
|
3967
3975
|
aa as HorizontalLoader,
|
|
3968
3976
|
Gt as IconButton,
|
|
3969
3977
|
Ln as IconLinkButton,
|
|
3970
|
-
|
|
3978
|
+
io as ImageUpload,
|
|
3971
3979
|
Et as Input,
|
|
3972
3980
|
lo as LinkButton,
|
|
3973
|
-
|
|
3981
|
+
so as LinkButtonComponent,
|
|
3974
3982
|
Pt as List,
|
|
3975
3983
|
Te as ListItem,
|
|
3976
|
-
|
|
3977
|
-
|
|
3984
|
+
ia as ListItemActions,
|
|
3985
|
+
sa as ListItemContent,
|
|
3978
3986
|
la as ListItemText,
|
|
3979
3987
|
fa as Option,
|
|
3980
3988
|
da as Popover,
|
|
@@ -3985,7 +3993,7 @@ export {
|
|
|
3985
3993
|
pa as Select,
|
|
3986
3994
|
ba as Tab,
|
|
3987
3995
|
ga as Tag,
|
|
3988
|
-
|
|
3996
|
+
D as Text,
|
|
3989
3997
|
Xo as TimePicker,
|
|
3990
3998
|
ma as Tooltip,
|
|
3991
3999
|
na as buttonSizeOptions,
|