@youversion/design-system-components 0.13.5 → 0.14.0
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/LoadingSpinner/LoadingSpinner.d.ts +55 -0
- package/dist/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
- package/dist/LoadingSpinner/index.d.ts +2 -0
- package/dist/LoadingSpinner/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +187 -173
- package/dist/index.umd.js +2 -2
- 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 v, jsx as l, Fragment as be } from "react/jsx-runtime";
|
|
3
|
-
import ht, { forwardRef as w, createElement as U, useEffect as oe, useLayoutEffect as
|
|
3
|
+
import ht, { forwardRef as w, createElement as U, useEffect as oe, useLayoutEffect as Yt, useRef as A, useState as _, useImperativeHandle as er, useCallback as ye, useMemo as re, Children as tr, isValidElement as rr, useId as nr, cloneElement as or } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var ar = Object.defineProperty, ir = Object.defineProperties, sr = Object.getOwnPropertyDescriptors, we = Object.getOwnPropertySymbols, vt = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable, Ve = (e, t, r) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lr = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
vt.call(t, r) && Ve(e, r, t[r]);
|
|
8
8
|
if (we)
|
|
9
9
|
for (var r of we(t))
|
|
10
10
|
xt.call(t, r) && Ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, dr = (e, t) => ir(e, sr(t)), cr = (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]);
|
|
@@ -17,10 +17,10 @@ var or = Object.defineProperty, ar = Object.defineProperties, ir = Object.getOwn
|
|
|
17
17
|
for (var n of we(e))
|
|
18
18
|
t.indexOf(n) < 0 && xt.call(e, n) && (r[n] = e[n]);
|
|
19
19
|
return r;
|
|
20
|
-
},
|
|
21
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
22
|
-
return v("svg", lr(
|
|
23
|
-
},
|
|
20
|
+
}, ur = (e, t) => {
|
|
21
|
+
var r = e, { title: n, titleId: a } = r, o = cr(r, ["title", "titleId"]);
|
|
22
|
+
return v("svg", dr(lr({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, 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
|
+
}, fr = w(ur), yt = fr, wt = {
|
|
24
24
|
0: "0px",
|
|
25
25
|
px: "1px",
|
|
26
26
|
"0.25": "2px",
|
|
@@ -100,7 +100,7 @@ var or = Object.defineProperty, ar = Object.defineProperties, ir = Object.getOwn
|
|
|
100
100
|
loose: 1.5
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
function
|
|
103
|
+
function pr() {
|
|
104
104
|
for (var e = 0, t, r, n = ""; e < arguments.length; )
|
|
105
105
|
(t = arguments[e++]) && (r = $t(t)) && (n && (n += " "), n += r);
|
|
106
106
|
return n;
|
|
@@ -113,11 +113,11 @@ function $t(e) {
|
|
|
113
113
|
return r;
|
|
114
114
|
}
|
|
115
115
|
var We = "-";
|
|
116
|
-
function
|
|
117
|
-
var t =
|
|
116
|
+
function br(e) {
|
|
117
|
+
var t = mr(e), r = e.conflictingClassGroups, n = e.conflictingClassGroupModifiers, a = n === void 0 ? {} : n;
|
|
118
118
|
function o(s) {
|
|
119
119
|
var d = s.split(We);
|
|
120
|
-
return d[0] === "" && d.length !== 1 && d.shift(), St(d, t) ||
|
|
120
|
+
return d[0] === "" && d.length !== 1 && d.shift(), St(d, t) || gr(s);
|
|
121
121
|
}
|
|
122
122
|
function i(s, d) {
|
|
123
123
|
var c = r[s] || [];
|
|
@@ -144,18 +144,18 @@ function St(e, t) {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
var Ue = /^\[(.+)\]$/;
|
|
147
|
-
function
|
|
147
|
+
function gr(e) {
|
|
148
148
|
if (Ue.test(e)) {
|
|
149
149
|
var t = Ue.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
150
150
|
if (r)
|
|
151
151
|
return "arbitrary.." + r;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function mr(e) {
|
|
155
155
|
var t = e.theme, r = e.prefix, n = {
|
|
156
156
|
nextPart: /* @__PURE__ */ new Map(),
|
|
157
157
|
validators: []
|
|
158
|
-
}, a =
|
|
158
|
+
}, a = vr(Object.entries(e.classGroups), r);
|
|
159
159
|
return a.forEach(function(o) {
|
|
160
160
|
var i = o[0], s = o[1];
|
|
161
161
|
Me(s, n, i, t);
|
|
@@ -169,7 +169,7 @@ function Me(e, t, r, n) {
|
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
if (typeof a == "function") {
|
|
172
|
-
if (
|
|
172
|
+
if (hr(a)) {
|
|
173
173
|
Me(a(n), t, r, n);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
@@ -194,10 +194,10 @@ function _e(e, t) {
|
|
|
194
194
|
}), r = r.nextPart.get(n);
|
|
195
195
|
}), r;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function hr(e) {
|
|
198
198
|
return e.isThemeGetter;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function vr(e, t) {
|
|
201
201
|
return t ? e.map(function(r) {
|
|
202
202
|
var n = r[0], a = r[1], o = a.map(function(i) {
|
|
203
203
|
return typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(function(s) {
|
|
@@ -208,7 +208,7 @@ function hr(e, t) {
|
|
|
208
208
|
return [n, o];
|
|
209
209
|
}) : e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function xr(e) {
|
|
212
212
|
if (e < 1)
|
|
213
213
|
return {
|
|
214
214
|
get: function() {
|
|
@@ -234,7 +234,7 @@ function vr(e) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
var Nt = "!";
|
|
237
|
-
function
|
|
237
|
+
function yr(e) {
|
|
238
238
|
var t = e.separator || ":", r = t.length === 1, n = t[0], a = t.length;
|
|
239
239
|
return function(i) {
|
|
240
240
|
for (var s = [], d = 0, c = 0, f, g = 0; g < i.length; g++) {
|
|
@@ -260,7 +260,7 @@ function xr(e) {
|
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function wr(e) {
|
|
264
264
|
if (e.length <= 1)
|
|
265
265
|
return e;
|
|
266
266
|
var t = [], r = [];
|
|
@@ -269,17 +269,17 @@ function yr(e) {
|
|
|
269
269
|
a ? (t.push.apply(t, r.sort().concat([n])), r = []) : r.push(n);
|
|
270
270
|
}), t.push.apply(t, r.sort()), t;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function kr(e) {
|
|
273
273
|
return {
|
|
274
|
-
cache:
|
|
275
|
-
splitModifiers:
|
|
276
|
-
...
|
|
274
|
+
cache: xr(e.cacheSize),
|
|
275
|
+
splitModifiers: yr(e),
|
|
276
|
+
...br(e)
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
279
|
+
var $r = /\s+/;
|
|
280
|
+
function Sr(e, t) {
|
|
281
281
|
var r = t.splitModifiers, n = t.getClassGroupId, a = t.getConflictingClassGroupIds, o = /* @__PURE__ */ new Set();
|
|
282
|
-
return e.trim().split(
|
|
282
|
+
return e.trim().split($r).map(function(i) {
|
|
283
283
|
var s = r(i), d = s.modifiers, c = s.hasImportantModifier, f = s.baseClassName, g = s.maybePostfixModifierPosition, h = n(g ? f.substring(0, g) : f), m = Boolean(g);
|
|
284
284
|
if (!h) {
|
|
285
285
|
if (!g)
|
|
@@ -294,7 +294,7 @@ function $r(e, t) {
|
|
|
294
294
|
};
|
|
295
295
|
m = !1;
|
|
296
296
|
}
|
|
297
|
-
var p =
|
|
297
|
+
var p = wr(d).join(":"), x = c ? p + Nt : p;
|
|
298
298
|
return {
|
|
299
299
|
isTailwindClass: !0,
|
|
300
300
|
modifierId: x,
|
|
@@ -321,17 +321,17 @@ function qe() {
|
|
|
321
321
|
var f = t[0], g = t.slice(1), h = g.reduce(function(m, p) {
|
|
322
322
|
return p(m);
|
|
323
323
|
}, f());
|
|
324
|
-
return n =
|
|
324
|
+
return n = kr(h), a = n.cache.get, o = n.cache.set, i = d, d(c);
|
|
325
325
|
}
|
|
326
326
|
function d(c) {
|
|
327
327
|
var f = a(c);
|
|
328
328
|
if (f)
|
|
329
329
|
return f;
|
|
330
|
-
var g =
|
|
330
|
+
var g = Sr(c, n);
|
|
331
331
|
return o(c, g), g;
|
|
332
332
|
}
|
|
333
333
|
return function() {
|
|
334
|
-
return i(
|
|
334
|
+
return i(pr.apply(null, arguments));
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function $(e) {
|
|
@@ -340,21 +340,21 @@ function $(e) {
|
|
|
340
340
|
};
|
|
341
341
|
return t.isThemeGetter = !0, t;
|
|
342
342
|
}
|
|
343
|
-
var Ct = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
343
|
+
var Ct = /^\[(?:([a-z-]+):)?(.+)\]$/i, Nr = /^\d+\/\d+$/, Cr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Or = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Er = /\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$/, Ir = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
344
344
|
function j(e) {
|
|
345
|
-
return te(e) ||
|
|
345
|
+
return te(e) || Cr.has(e) || Nr.test(e) || Z(e);
|
|
346
346
|
}
|
|
347
347
|
function Z(e) {
|
|
348
|
-
return ae(e, "length",
|
|
348
|
+
return ae(e, "length", Rr);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Pr(e) {
|
|
351
351
|
return ae(e, "size", Ot);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Lr(e) {
|
|
354
354
|
return ae(e, "position", Ot);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
return ae(e, "url",
|
|
356
|
+
function Mr(e) {
|
|
357
|
+
return ae(e, "url", Br);
|
|
358
358
|
}
|
|
359
359
|
function he(e) {
|
|
360
360
|
return ae(e, "number", te);
|
|
@@ -362,7 +362,7 @@ function he(e) {
|
|
|
362
362
|
function te(e) {
|
|
363
363
|
return !Number.isNaN(Number(e));
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Tr(e) {
|
|
366
366
|
return e.endsWith("%") && te(e.slice(0, -1));
|
|
367
367
|
}
|
|
368
368
|
function ue(e) {
|
|
@@ -375,29 +375,29 @@ function fe() {
|
|
|
375
375
|
return !0;
|
|
376
376
|
}
|
|
377
377
|
function q(e) {
|
|
378
|
-
return
|
|
378
|
+
return Or.test(e);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return ae(e, "",
|
|
380
|
+
function zr(e) {
|
|
381
|
+
return ae(e, "", jr);
|
|
382
382
|
}
|
|
383
383
|
function ae(e, t, r) {
|
|
384
384
|
var n = Ct.exec(e);
|
|
385
385
|
return n ? n[1] ? n[1] === t : r(n[2]) : !1;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function Rr(e) {
|
|
388
|
+
return Er.test(e);
|
|
389
389
|
}
|
|
390
390
|
function Ot() {
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Br(e) {
|
|
394
394
|
return e.startsWith("url(");
|
|
395
395
|
}
|
|
396
396
|
function Ze(e) {
|
|
397
397
|
return Number.isInteger(Number(e));
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
399
|
+
function jr(e) {
|
|
400
|
+
return Ir.test(e);
|
|
401
401
|
}
|
|
402
402
|
function Ke() {
|
|
403
403
|
var e = $("colors"), t = $("spacing"), r = $("blur"), n = $("brightness"), a = $("borderColor"), o = $("borderRadius"), i = $("borderSpacing"), s = $("borderWidth"), d = $("contrast"), c = $("grayscale"), f = $("hueRotate"), g = $("invert"), h = $("gap"), m = $("gradientColorStops"), p = $("gradientColorStopPositions"), x = $("inset"), y = $("margin"), C = $("opacity"), N = $("padding"), T = $("saturate"), S = $("scale"), k = $("sepia"), u = $("skew"), H = $("space"), P = $("translate"), K = function() {
|
|
@@ -444,7 +444,7 @@ function Ke() {
|
|
|
444
444
|
invert: X(),
|
|
445
445
|
gap: [t],
|
|
446
446
|
gradientColorStops: [e],
|
|
447
|
-
gradientColorStopPositions: [
|
|
447
|
+
gradientColorStopPositions: [Tr, Z],
|
|
448
448
|
inset: W(),
|
|
449
449
|
margin: W(),
|
|
450
450
|
opacity: J(),
|
|
@@ -1343,7 +1343,7 @@ function Ke() {
|
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/background-position
|
|
1344
1344
|
*/
|
|
1345
1345
|
"bg-position": [{
|
|
1346
|
-
bg: [].concat(ie(), [
|
|
1346
|
+
bg: [].concat(ie(), [Lr])
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Background Repeat
|
|
@@ -1359,7 +1359,7 @@ function Ke() {
|
|
|
1359
1359
|
* @see https://tailwindcss.com/docs/background-size
|
|
1360
1360
|
*/
|
|
1361
1361
|
"bg-size": [{
|
|
1362
|
-
bg: ["auto", "cover", "contain",
|
|
1362
|
+
bg: ["auto", "cover", "contain", Pr]
|
|
1363
1363
|
}],
|
|
1364
1364
|
/**
|
|
1365
1365
|
* Background Image
|
|
@@ -1368,7 +1368,7 @@ function Ke() {
|
|
|
1368
1368
|
"bg-image": [{
|
|
1369
1369
|
bg: ["none", {
|
|
1370
1370
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1371
|
-
},
|
|
1371
|
+
}, Mr]
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Background 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", q,
|
|
1773
|
+
shadow: ["", "inner", "none", q, zr]
|
|
1774
1774
|
}],
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Box Shadow Color
|
|
@@ -2394,14 +2394,14 @@ function Ke() {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Ar(e, t) {
|
|
2398
2398
|
for (var r in t)
|
|
2399
2399
|
Et(e, r, t[r]);
|
|
2400
2400
|
return e;
|
|
2401
2401
|
}
|
|
2402
|
-
var
|
|
2402
|
+
var Wr = Object.prototype.hasOwnProperty, Gr = /* @__PURE__ */ new Set(["string", "number", "boolean"]);
|
|
2403
2403
|
function Et(e, t, r) {
|
|
2404
|
-
if (!
|
|
2404
|
+
if (!Wr.call(e, t) || Gr.has(typeof r) || r === null) {
|
|
2405
2405
|
e[t] = r;
|
|
2406
2406
|
return;
|
|
2407
2407
|
}
|
|
@@ -2418,18 +2418,18 @@ function Et(e, t, r) {
|
|
|
2418
2418
|
Et(e[t], n, r[n]);
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2421
|
+
function Dr(e) {
|
|
2422
2422
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
2423
2423
|
r[n - 1] = arguments[n];
|
|
2424
2424
|
return typeof e == "function" ? qe.apply(void 0, [Ke, e].concat(r)) : qe.apply(void 0, [function() {
|
|
2425
|
-
return
|
|
2425
|
+
return Ar(Ke(), e);
|
|
2426
2426
|
}].concat(r));
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2428
|
+
const Fr = Object.keys(Ae.fontSize), Hr = Object.keys(Ae.fontWeight), Vr = Object.keys(Ae.lineHeight), B = Object.keys(wt), Ur = Object.keys(kt.borderWidth), _r = Object.keys(kt.borderRadius), qr = Dr({
|
|
2429
2429
|
classGroups: {
|
|
2430
|
-
"font-size": [{ text:
|
|
2431
|
-
"font-weight": [{ font:
|
|
2432
|
-
leading: [{ leading:
|
|
2430
|
+
"font-size": [{ text: Fr }],
|
|
2431
|
+
"font-weight": [{ font: Hr }],
|
|
2432
|
+
leading: [{ leading: Vr }],
|
|
2433
2433
|
mbe: [{ mbe: B }],
|
|
2434
2434
|
mbs: [{ mbs: B }],
|
|
2435
2435
|
mie: [{ mie: B }],
|
|
@@ -2456,12 +2456,12 @@ const Dr = Object.keys(Ae.fontSize), Fr = Object.keys(Ae.fontWeight), Hr = Objec
|
|
|
2456
2456
|
py: ["pbe", "pbs", "plb"]
|
|
2457
2457
|
},
|
|
2458
2458
|
theme: {
|
|
2459
|
-
borderRadius:
|
|
2460
|
-
borderWidth:
|
|
2459
|
+
borderRadius: _r,
|
|
2460
|
+
borderWidth: Ur
|
|
2461
2461
|
}
|
|
2462
2462
|
});
|
|
2463
2463
|
function b(...e) {
|
|
2464
|
-
return
|
|
2464
|
+
return qr(je(e));
|
|
2465
2465
|
}
|
|
2466
2466
|
const Pe = (e) => {
|
|
2467
2467
|
if (e) {
|
|
@@ -2477,7 +2477,7 @@ const Pe = (e) => {
|
|
|
2477
2477
|
if (typeof e == "string")
|
|
2478
2478
|
return e;
|
|
2479
2479
|
}
|
|
2480
|
-
},
|
|
2480
|
+
}, Zr = ({
|
|
2481
2481
|
background: e,
|
|
2482
2482
|
borderColor: t,
|
|
2483
2483
|
borderRadius: r,
|
|
@@ -2517,20 +2517,20 @@ const Pe = (e) => {
|
|
|
2517
2517
|
...h,
|
|
2518
2518
|
ref: m
|
|
2519
2519
|
});
|
|
2520
|
-
}, I = w(
|
|
2520
|
+
}, I = w(Zr);
|
|
2521
2521
|
I.displayName = "Box";
|
|
2522
2522
|
const Ge = ({ innerRef: e, forwardedRef: t }) => (oe(() => {
|
|
2523
2523
|
[e, t].forEach((r) => {
|
|
2524
2524
|
r && (typeof r == "function" ? r(e.current || null) : r.current = e.current || null);
|
|
2525
2525
|
});
|
|
2526
2526
|
}, [e, t]), e);
|
|
2527
|
-
function
|
|
2528
|
-
|
|
2527
|
+
function Kr() {
|
|
2528
|
+
Yt(() => {
|
|
2529
2529
|
const e = window.getComputedStyle(document.body).overflow;
|
|
2530
2530
|
return document.body.style.overflow = "hidden", () => document.body.style.overflow = e;
|
|
2531
2531
|
}, []);
|
|
2532
2532
|
}
|
|
2533
|
-
const
|
|
2533
|
+
const Xr = ({
|
|
2534
2534
|
className: e,
|
|
2535
2535
|
disabled: t,
|
|
2536
2536
|
endIcon: r,
|
|
@@ -2612,9 +2612,9 @@ const Kr = ({
|
|
|
2612
2612
|
a ? /* @__PURE__ */ l("span", { className: "text-text-muted-light dark:text-text-muted-dark text-13 leading-default", children: a }) : null
|
|
2613
2613
|
] }) : null
|
|
2614
2614
|
] });
|
|
2615
|
-
}, It = w(
|
|
2615
|
+
}, It = w(Xr);
|
|
2616
2616
|
It.displayName = "Input";
|
|
2617
|
-
const
|
|
2617
|
+
const Jr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
|
|
2618
2618
|
"ul",
|
|
2619
2619
|
{
|
|
2620
2620
|
className: b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5", t]),
|
|
@@ -2622,9 +2622,9 @@ const Xr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
|
|
|
2622
2622
|
...r,
|
|
2623
2623
|
children: e
|
|
2624
2624
|
}
|
|
2625
|
-
), Pt = w(
|
|
2625
|
+
), Pt = w(Jr);
|
|
2626
2626
|
Pt.displayName = "List";
|
|
2627
|
-
const
|
|
2627
|
+
const Qr = ({ children: e, className: t, disabled: r, divider: n, key: a, onClick: o, ...i }, s) => {
|
|
2628
2628
|
const d = (c) => {
|
|
2629
2629
|
o && (c.code === "Enter" || c.key === " ") && o();
|
|
2630
2630
|
};
|
|
@@ -2656,9 +2656,9 @@ const Jr = ({ children: e, className: t, disabled: r, divider: n, key: a, onClic
|
|
|
2656
2656
|
},
|
|
2657
2657
|
a
|
|
2658
2658
|
);
|
|
2659
|
-
}, Te = w(
|
|
2659
|
+
}, Te = w(Qr);
|
|
2660
2660
|
Te.displayName = "ListItem";
|
|
2661
|
-
const
|
|
2661
|
+
const Yr = ({
|
|
2662
2662
|
label: e,
|
|
2663
2663
|
name: t,
|
|
2664
2664
|
options: r,
|
|
@@ -2672,7 +2672,7 @@ const Qr = ({
|
|
|
2672
2672
|
...f
|
|
2673
2673
|
}, g) => {
|
|
2674
2674
|
const h = A(null), m = A(null), [p, x] = _(c), [y, C] = _(!1);
|
|
2675
|
-
|
|
2675
|
+
er(
|
|
2676
2676
|
g,
|
|
2677
2677
|
() => ({
|
|
2678
2678
|
clearSelection() {
|
|
@@ -2715,8 +2715,8 @@ const Qr = ({
|
|
|
2715
2715
|
),
|
|
2716
2716
|
y ? /* @__PURE__ */ l(I, { className: "absolute top-[calc(100%+1px)] w-full z-50", children: /* @__PURE__ */ l(Pt, { className: "max-h-[300px] overflow-y-auto", children: k.length ? k.map((u, H) => /* @__PURE__ */ l(Te, { onClick: () => T(u), children: u.label }, `${u.value}-${H}`)) : /* @__PURE__ */ l(Te, { children: i }, "no-options") }) }) : null
|
|
2717
2717
|
] });
|
|
2718
|
-
},
|
|
2719
|
-
|
|
2718
|
+
}, en = w(Yr);
|
|
2719
|
+
en.displayName = "AutocompleteSelect";
|
|
2720
2720
|
const Je = {
|
|
2721
2721
|
base: "font-bold",
|
|
2722
2722
|
xs: "text-16 md:text-19 leading-default",
|
|
@@ -2788,7 +2788,7 @@ const Je = {
|
|
|
2788
2788
|
}, Mt = {
|
|
2789
2789
|
primary: "font-aktiv-grotesk",
|
|
2790
2790
|
secondary: "font-untitled-serif"
|
|
2791
|
-
},
|
|
2791
|
+
}, tn = ({ className: e, component: t = "p", children: r, font: n = "primary", size: a, variant: o, ...i }, s) => {
|
|
2792
2792
|
const d = "text-text-light dark:text-text-dark", c = Mt[n], f = Lt({ size: a, variant: o });
|
|
2793
2793
|
return /* @__PURE__ */ l(
|
|
2794
2794
|
I,
|
|
@@ -2800,9 +2800,9 @@ const Je = {
|
|
|
2800
2800
|
children: r
|
|
2801
2801
|
}
|
|
2802
2802
|
);
|
|
2803
|
-
}, F = w(
|
|
2803
|
+
}, F = w(tn);
|
|
2804
2804
|
F.displayName = "Text";
|
|
2805
|
-
const
|
|
2805
|
+
const rn = ({
|
|
2806
2806
|
children: e,
|
|
2807
2807
|
component: t = "a",
|
|
2808
2808
|
className: r,
|
|
@@ -2823,15 +2823,15 @@ const tn = ({
|
|
|
2823
2823
|
children: e
|
|
2824
2824
|
}
|
|
2825
2825
|
);
|
|
2826
|
-
|
|
2827
|
-
var
|
|
2826
|
+
rn.displayName = "Breadcrumb";
|
|
2827
|
+
var nn = Object.defineProperty, on = Object.defineProperties, an = Object.getOwnPropertyDescriptors, ke = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, sn = (e, t) => {
|
|
2828
2828
|
for (var r in t || (t = {}))
|
|
2829
2829
|
Tt.call(t, r) && nt(e, r, t[r]);
|
|
2830
2830
|
if (ke)
|
|
2831
2831
|
for (var r of ke(t))
|
|
2832
2832
|
zt.call(t, r) && nt(e, r, t[r]);
|
|
2833
2833
|
return e;
|
|
2834
|
-
},
|
|
2834
|
+
}, ln = (e, t) => on(e, an(t)), dn = (e, t) => {
|
|
2835
2835
|
var r = {};
|
|
2836
2836
|
for (var n in e)
|
|
2837
2837
|
Tt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -2839,18 +2839,18 @@ var rn = Object.defineProperty, nn = Object.defineProperties, on = Object.getOwn
|
|
|
2839
2839
|
for (var n of ke(e))
|
|
2840
2840
|
t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
|
|
2841
2841
|
return r;
|
|
2842
|
-
},
|
|
2843
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
2844
|
-
return v("svg", sn(
|
|
2845
|
-
},
|
|
2846
|
-
const
|
|
2847
|
-
const a =
|
|
2842
|
+
}, cn = (e, t) => {
|
|
2843
|
+
var r = e, { title: n, titleId: a } = r, o = dn(r, ["title", "titleId"]);
|
|
2844
|
+
return v("svg", ln(sn({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, 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" })] }));
|
|
2845
|
+
}, un = w(cn), fn = un;
|
|
2846
|
+
const pn = ({ children: e, className: t, ...r }, n) => {
|
|
2847
|
+
const a = tr.toArray(e), o = a.findIndex((i) => {
|
|
2848
2848
|
var s;
|
|
2849
|
-
return
|
|
2849
|
+
return rr(i) ? (s = i == null ? void 0 : i.props) == null ? void 0 : s.active : !1;
|
|
2850
2850
|
});
|
|
2851
2851
|
return /* @__PURE__ */ l("div", { className: b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children: a.map((i, s) => /* @__PURE__ */ v("div", { className: "flex items-center", children: [
|
|
2852
2852
|
s ? /* @__PURE__ */ l(
|
|
2853
|
-
|
|
2853
|
+
fn,
|
|
2854
2854
|
{
|
|
2855
2855
|
className: b([
|
|
2856
2856
|
"mx-1",
|
|
@@ -2870,8 +2870,8 @@ const fn = ({ children: e, className: t, ...r }, n) => {
|
|
|
2870
2870
|
])
|
|
2871
2871
|
}) : i
|
|
2872
2872
|
] }, `${s}-${i.toString()}`)) });
|
|
2873
|
-
},
|
|
2874
|
-
|
|
2873
|
+
}, bn = w(pn);
|
|
2874
|
+
bn.displayName = "Breadcrumbs";
|
|
2875
2875
|
const da = {
|
|
2876
2876
|
lg: "lg",
|
|
2877
2877
|
md: "md",
|
|
@@ -2923,7 +2923,7 @@ const da = {
|
|
|
2923
2923
|
"risk:stroked": "bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",
|
|
2924
2924
|
secondary: "bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",
|
|
2925
2925
|
stroked: "bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"
|
|
2926
|
-
},
|
|
2926
|
+
}, gn = ({
|
|
2927
2927
|
className: e,
|
|
2928
2928
|
children: t,
|
|
2929
2929
|
disabled: r,
|
|
@@ -2949,10 +2949,10 @@ const da = {
|
|
|
2949
2949
|
size: $e[i]
|
|
2950
2950
|
}) : null
|
|
2951
2951
|
] });
|
|
2952
|
-
}, Se = w(
|
|
2952
|
+
}, Se = w(gn);
|
|
2953
2953
|
Se.displayName = "Button";
|
|
2954
|
-
const
|
|
2955
|
-
const s =
|
|
2954
|
+
const mn = ({ error: e, className: t, label: r, disabled: n, name: a, ...o }, i) => {
|
|
2955
|
+
const s = nr(), d = re(() => `checkbox-label-${s}`, [s]);
|
|
2956
2956
|
return /* @__PURE__ */ v(
|
|
2957
2957
|
"div",
|
|
2958
2958
|
{
|
|
@@ -2979,16 +2979,16 @@ const gn = ({ error: e, className: t, label: r, disabled: n, name: a, ...o }, i)
|
|
|
2979
2979
|
]
|
|
2980
2980
|
}
|
|
2981
2981
|
);
|
|
2982
|
-
},
|
|
2983
|
-
|
|
2984
|
-
var
|
|
2982
|
+
}, hn = w(mn);
|
|
2983
|
+
hn.displayName = "Checkbox";
|
|
2984
|
+
var vn = Object.defineProperty, xn = Object.defineProperties, yn = Object.getOwnPropertyDescriptors, Ne = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wn = (e, t) => {
|
|
2985
2985
|
for (var r in t || (t = {}))
|
|
2986
2986
|
jt.call(t, r) && ot(e, r, t[r]);
|
|
2987
2987
|
if (Ne)
|
|
2988
2988
|
for (var r of Ne(t))
|
|
2989
2989
|
At.call(t, r) && ot(e, r, t[r]);
|
|
2990
2990
|
return e;
|
|
2991
|
-
},
|
|
2991
|
+
}, kn = (e, t) => xn(e, yn(t)), $n = (e, t) => {
|
|
2992
2992
|
var r = {};
|
|
2993
2993
|
for (var n in e)
|
|
2994
2994
|
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -2996,10 +2996,10 @@ var hn = Object.defineProperty, vn = Object.defineProperties, xn = Object.getOwn
|
|
|
2996
2996
|
for (var n of Ne(e))
|
|
2997
2997
|
t.indexOf(n) < 0 && At.call(e, n) && (r[n] = e[n]);
|
|
2998
2998
|
return r;
|
|
2999
|
-
},
|
|
3000
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
3001
|
-
return v("svg", wn(
|
|
3002
|
-
},
|
|
2999
|
+
}, Sn = (e, t) => {
|
|
3000
|
+
var r = e, { title: n, titleId: a } = r, o = $n(r, ["title", "titleId"]);
|
|
3001
|
+
return v("svg", kn(wn({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, 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" })] }));
|
|
3002
|
+
}, Nn = w(Sn), Cn = Nn;
|
|
3003
3003
|
const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
3004
3004
|
const r = A(null);
|
|
3005
3005
|
return oe(() => {
|
|
@@ -3047,7 +3047,7 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3047
3047
|
};
|
|
3048
3048
|
}
|
|
3049
3049
|
}, [t]), /* @__PURE__ */ l("div", { ref: r, children: e });
|
|
3050
|
-
},
|
|
3050
|
+
}, On = ({ children: e, className: t, disabled: r, type: n = "button", variant: a = "borderless", ...o }, i) => /* @__PURE__ */ l(
|
|
3051
3051
|
"button",
|
|
3052
3052
|
{
|
|
3053
3053
|
className: b([
|
|
@@ -3062,28 +3062,28 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3062
3062
|
...o,
|
|
3063
3063
|
children: e
|
|
3064
3064
|
}
|
|
3065
|
-
), Gt = w(
|
|
3065
|
+
), Gt = w(On);
|
|
3066
3066
|
Gt.displayName = "IconButton";
|
|
3067
|
-
const
|
|
3067
|
+
const En = {
|
|
3068
3068
|
1: "h1",
|
|
3069
3069
|
2: "h2",
|
|
3070
3070
|
3: "h3",
|
|
3071
3071
|
4: "h4"
|
|
3072
|
-
},
|
|
3072
|
+
}, In = ({ className: e, children: t, font: r = "primary", level: n = 1, size: a, variant: o, ...i }, s) => {
|
|
3073
3073
|
const d = "text-text-light dark:text-text-dark", c = Mt[r], f = Lt({ size: a, variant: o });
|
|
3074
3074
|
return /* @__PURE__ */ l(
|
|
3075
3075
|
I,
|
|
3076
3076
|
{
|
|
3077
3077
|
className: b(d, f, c, e),
|
|
3078
|
-
component:
|
|
3078
|
+
component: En[n],
|
|
3079
3079
|
ref: s,
|
|
3080
3080
|
...i,
|
|
3081
3081
|
children: t
|
|
3082
3082
|
}
|
|
3083
3083
|
);
|
|
3084
|
-
}, Dt = w(
|
|
3084
|
+
}, Dt = w(In);
|
|
3085
3085
|
Dt.displayName = "Heading";
|
|
3086
|
-
const
|
|
3086
|
+
const Pn = ({
|
|
3087
3087
|
autoFocus: e = !0,
|
|
3088
3088
|
children: t,
|
|
3089
3089
|
className: r,
|
|
@@ -3093,7 +3093,7 @@ const In = ({
|
|
|
3093
3093
|
isDismissableOnOutsideClick: i = !0,
|
|
3094
3094
|
onClose: s,
|
|
3095
3095
|
...d
|
|
3096
|
-
}, c) => (
|
|
3096
|
+
}, c) => (Kr(), /* @__PURE__ */ v("div", { className: "flex items-center justify-center w-full h-full z-20 absolute inset-0", children: [
|
|
3097
3097
|
/* @__PURE__ */ l(
|
|
3098
3098
|
"div",
|
|
3099
3099
|
{
|
|
@@ -3121,7 +3121,7 @@ const In = ({
|
|
|
3121
3121
|
className: "absolute inline-end-2 block-start-2",
|
|
3122
3122
|
"data-testid": "close-modal-button",
|
|
3123
3123
|
onClick: s,
|
|
3124
|
-
children: /* @__PURE__ */ l(
|
|
3124
|
+
children: /* @__PURE__ */ l(Cn, {})
|
|
3125
3125
|
}
|
|
3126
3126
|
) : null,
|
|
3127
3127
|
/* @__PURE__ */ l("div", { children: o ? /* @__PURE__ */ l(Dt, { className: "pbe-1", size: "md", variant: "headline", children: o }) : null }),
|
|
@@ -3133,8 +3133,8 @@ const In = ({
|
|
|
3133
3133
|
]
|
|
3134
3134
|
}
|
|
3135
3135
|
) })
|
|
3136
|
-
] })),
|
|
3137
|
-
|
|
3136
|
+
] })), Ln = w(Pn);
|
|
3137
|
+
Ln.displayName = "Dialog";
|
|
3138
3138
|
const ca = ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { ...t, className: b("w-full border-gray-15 dark:border-gray-30 border-standard", e) });
|
|
3139
3139
|
function ua({ className: e, height: t, progress: r }) {
|
|
3140
3140
|
return /* @__PURE__ */ l("div", { className: b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`, e]), children: /* @__PURE__ */ l(
|
|
@@ -3148,7 +3148,7 @@ function ua({ className: e, height: t, progress: r }) {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
) });
|
|
3150
3150
|
}
|
|
3151
|
-
const
|
|
3151
|
+
const Mn = ({ className: e, children: t, component: r = "a", variant: n = "borderless", ...a }, o) => U(
|
|
3152
3152
|
r,
|
|
3153
3153
|
{
|
|
3154
3154
|
...a,
|
|
@@ -3160,16 +3160,16 @@ const Ln = ({ className: e, children: t, component: r = "a", variant: n = "borde
|
|
|
3160
3160
|
ref: o
|
|
3161
3161
|
},
|
|
3162
3162
|
t
|
|
3163
|
-
),
|
|
3164
|
-
|
|
3165
|
-
var
|
|
3163
|
+
), Tn = w(Mn);
|
|
3164
|
+
Tn.displayName = "IconLinkButton";
|
|
3165
|
+
var zn = Object.defineProperty, Rn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, Ht = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
|
|
3166
3166
|
for (var r in t || (t = {}))
|
|
3167
3167
|
Ft.call(t, r) && at(e, r, t[r]);
|
|
3168
3168
|
if (Ce)
|
|
3169
3169
|
for (var r of Ce(t))
|
|
3170
3170
|
Ht.call(t, r) && at(e, r, t[r]);
|
|
3171
3171
|
return e;
|
|
3172
|
-
},
|
|
3172
|
+
}, An = (e, t) => Rn(e, Bn(t)), Wn = (e, t) => {
|
|
3173
3173
|
var r = {};
|
|
3174
3174
|
for (var n in e)
|
|
3175
3175
|
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3177,17 +3177,17 @@ var Tn = Object.defineProperty, zn = Object.defineProperties, Rn = Object.getOwn
|
|
|
3177
3177
|
for (var n of Ce(e))
|
|
3178
3178
|
t.indexOf(n) < 0 && Ht.call(e, n) && (r[n] = e[n]);
|
|
3179
3179
|
return r;
|
|
3180
|
-
},
|
|
3181
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
3182
|
-
return v("svg", jn(
|
|
3183
|
-
},
|
|
3180
|
+
}, Gn = (e, t) => {
|
|
3181
|
+
var r = e, { title: n, titleId: a } = r, o = Wn(r, ["title", "titleId"]);
|
|
3182
|
+
return v("svg", An(jn({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, 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" })] }));
|
|
3183
|
+
}, Dn = w(Gn), Fn = Dn, Hn = Object.defineProperty, Vn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _n = (e, t) => {
|
|
3184
3184
|
for (var r in t || (t = {}))
|
|
3185
3185
|
Vt.call(t, r) && it(e, r, t[r]);
|
|
3186
3186
|
if (Oe)
|
|
3187
3187
|
for (var r of Oe(t))
|
|
3188
3188
|
Ut.call(t, r) && it(e, r, t[r]);
|
|
3189
3189
|
return e;
|
|
3190
|
-
},
|
|
3190
|
+
}, qn = (e, t) => Vn(e, Un(t)), Zn = (e, t) => {
|
|
3191
3191
|
var r = {};
|
|
3192
3192
|
for (var n in e)
|
|
3193
3193
|
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3195,17 +3195,17 @@ var Tn = Object.defineProperty, zn = Object.defineProperties, Rn = Object.getOwn
|
|
|
3195
3195
|
for (var n of Oe(e))
|
|
3196
3196
|
t.indexOf(n) < 0 && Ut.call(e, n) && (r[n] = e[n]);
|
|
3197
3197
|
return r;
|
|
3198
|
-
},
|
|
3199
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
3200
|
-
return v("svg", _n(
|
|
3201
|
-
},
|
|
3198
|
+
}, Kn = (e, t) => {
|
|
3199
|
+
var r = e, { title: n, titleId: a } = r, o = Zn(r, ["title", "titleId"]);
|
|
3200
|
+
return v("svg", qn(_n({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, 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" })] }));
|
|
3201
|
+
}, Xn = w(Kn), Jn = Xn, Qn = Object.defineProperty, Yn = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Ee = Object.getOwnPropertySymbols, _t = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, to = (e, t) => {
|
|
3202
3202
|
for (var r in t || (t = {}))
|
|
3203
3203
|
_t.call(t, r) && st(e, r, t[r]);
|
|
3204
3204
|
if (Ee)
|
|
3205
3205
|
for (var r of Ee(t))
|
|
3206
3206
|
qt.call(t, r) && st(e, r, t[r]);
|
|
3207
3207
|
return e;
|
|
3208
|
-
},
|
|
3208
|
+
}, ro = (e, t) => Yn(e, eo(t)), no = (e, t) => {
|
|
3209
3209
|
var r = {};
|
|
3210
3210
|
for (var n in e)
|
|
3211
3211
|
_t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -3213,10 +3213,10 @@ var Tn = Object.defineProperty, zn = Object.defineProperties, Rn = Object.getOwn
|
|
|
3213
3213
|
for (var n of Ee(e))
|
|
3214
3214
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3215
3215
|
return r;
|
|
3216
|
-
},
|
|
3217
|
-
var r = e, { title: n, titleId: a } = r, o =
|
|
3218
|
-
return v("svg", to(
|
|
3219
|
-
},
|
|
3216
|
+
}, oo = (e, t) => {
|
|
3217
|
+
var r = e, { title: n, titleId: a } = r, o = no(r, ["title", "titleId"]);
|
|
3218
|
+
return v("svg", ro(to({ width: o.size || "24", height: o.size || "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: t, "aria-labelledby": a }, o), { children: [n ? l("title", { id: a, children: n }) : null, l("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z", fill: "currentColor", children: l("animateTransform", { attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 12 12", to: "360 12 12", dur: o.dur, repeatCount: "indefinite" }) })] }));
|
|
3219
|
+
}, ao = w(oo), Zt = ao;
|
|
3220
3220
|
const io = ({
|
|
3221
3221
|
acceptedFileTypes: e = ["image/*"],
|
|
3222
3222
|
changeImageButtonLabel: t = "Change",
|
|
@@ -3248,7 +3248,7 @@ const io = ({
|
|
|
3248
3248
|
};
|
|
3249
3249
|
switch (R) {
|
|
3250
3250
|
case "pending":
|
|
3251
|
-
return /* @__PURE__ */ l(I, { className: "animate-spin", children: /* @__PURE__ */ l(
|
|
3251
|
+
return /* @__PURE__ */ l(I, { className: "animate-spin", children: /* @__PURE__ */ l(Zt, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
|
|
3252
3252
|
case "resolved":
|
|
3253
3253
|
return /* @__PURE__ */ v(be, { children: [
|
|
3254
3254
|
/* @__PURE__ */ l(
|
|
@@ -3274,12 +3274,12 @@ const io = ({
|
|
|
3274
3274
|
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",
|
|
3275
3275
|
"data-testid": "remove image",
|
|
3276
3276
|
onClick: D,
|
|
3277
|
-
children: /* @__PURE__ */ l(
|
|
3277
|
+
children: /* @__PURE__ */ l(Fn, {})
|
|
3278
3278
|
}
|
|
3279
3279
|
)
|
|
3280
3280
|
] });
|
|
3281
3281
|
default:
|
|
3282
|
-
return /* @__PURE__ */ l(I, { className: "gray-10 dark:gray-30", children: /* @__PURE__ */ l(
|
|
3282
|
+
return /* @__PURE__ */ l(I, { className: "gray-10 dark:gray-30", children: /* @__PURE__ */ l(Jn, { "data-testid": "placeholder image", size: "32" }) });
|
|
3283
3283
|
}
|
|
3284
3284
|
}, [
|
|
3285
3285
|
a,
|
|
@@ -3300,8 +3300,8 @@ const io = ({
|
|
|
3300
3300
|
if (u)
|
|
3301
3301
|
if (u != null && u.maxByteSize && D.size > u.maxByteSize) {
|
|
3302
3302
|
W(void 0), L("rejected");
|
|
3303
|
-
const
|
|
3304
|
-
return G(
|
|
3303
|
+
const Qt = d(D.name, Math.round(u.maxByteSize / 1e3));
|
|
3304
|
+
return G(Qt), ee(!1);
|
|
3305
3305
|
} else {
|
|
3306
3306
|
if (u != null && u.minWidth && z.width < (u == null ? void 0 : u.minWidth) || u != null && u.minHeight && z.height < (u == null ? void 0 : u.minHeight))
|
|
3307
3307
|
return W(void 0), L("rejected"), G(f(D.name)), ee(!1);
|
|
@@ -3327,11 +3327,11 @@ const io = ({
|
|
|
3327
3327
|
if (Q instanceof Error)
|
|
3328
3328
|
throw Q;
|
|
3329
3329
|
}
|
|
3330
|
-
}, le = b([k === "circle" && !m ? "rounded-full aspect-square" : ""]), M = b([k === "square" && !m ? "aspect-square rounded-1" : ""]),
|
|
3330
|
+
}, le = b([k === "circle" && !m ? "rounded-full aspect-square" : ""]), M = b([k === "square" && !m ? "aspect-square rounded-1" : ""]), Xt = b([
|
|
3331
3331
|
k === "unset" && !m ? "rounded-1" : "",
|
|
3332
3332
|
k === "unset" && R !== "idle" && !m ? "aspect-auto" : "",
|
|
3333
3333
|
k === "unset" && R !== "resolved" && !m ? "aspect-square" : ""
|
|
3334
|
-
]),
|
|
3334
|
+
]), Jt = b([m ? "rounded-1 aspect-video" : ""]);
|
|
3335
3335
|
return /* @__PURE__ */ v(I, { className: b([n]), children: [
|
|
3336
3336
|
/* @__PURE__ */ v(
|
|
3337
3337
|
I,
|
|
@@ -3355,8 +3355,8 @@ const io = ({
|
|
|
3355
3355
|
R !== "resolved" ? "bg-gray-10 dark:bg-gray-3" : "",
|
|
3356
3356
|
le,
|
|
3357
3357
|
M,
|
|
3358
|
-
|
|
3359
|
-
|
|
3358
|
+
Xt,
|
|
3359
|
+
Jt
|
|
3360
3360
|
]),
|
|
3361
3361
|
children: X
|
|
3362
3362
|
}
|
|
@@ -3462,7 +3462,20 @@ const ba = ({
|
|
|
3462
3462
|
) : null
|
|
3463
3463
|
] }),
|
|
3464
3464
|
r ? /* @__PURE__ */ l(F, { ...n, children: r }) : null
|
|
3465
|
-
] })
|
|
3465
|
+
] });
|
|
3466
|
+
function ga({
|
|
3467
|
+
"aria-label": e = "Loading…",
|
|
3468
|
+
duration: t = 0.9,
|
|
3469
|
+
iconSize: r = "40px",
|
|
3470
|
+
className: n,
|
|
3471
|
+
color: a = "text-gray-15",
|
|
3472
|
+
height: o = "h-full",
|
|
3473
|
+
width: i = "w-full",
|
|
3474
|
+
iconProps: s = {}
|
|
3475
|
+
}) {
|
|
3476
|
+
return /* @__PURE__ */ l(I, { "aria-label": e, className: b(["items-center flex justify-center", a, o, i, n]), children: /* @__PURE__ */ l(Zt, { ...s, dur: `${t}s`, height: r, width: r }) });
|
|
3477
|
+
}
|
|
3478
|
+
const ma = ({ children: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(["relative", t]), ...r, children: e }), uo = typeof window < "u" ? ht.useLayoutEffect : () => {
|
|
3466
3479
|
};
|
|
3467
3480
|
let pe = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Set();
|
|
3468
3481
|
function dt() {
|
|
@@ -3668,14 +3681,14 @@ function ve(e, t) {
|
|
|
3668
3681
|
return t.current && !t.current.contains(e.target);
|
|
3669
3682
|
}
|
|
3670
3683
|
let Oo = null;
|
|
3671
|
-
function
|
|
3684
|
+
function Kt(e, t) {
|
|
3672
3685
|
return t.some((r) => r.contains(e));
|
|
3673
3686
|
}
|
|
3674
3687
|
function Eo(e, t = null) {
|
|
3675
3688
|
if (e instanceof Element && e.closest("[data-react-aria-top-layer]"))
|
|
3676
3689
|
return !0;
|
|
3677
3690
|
for (let { scopeRef: r } of bt.traverse(bt.getTreeNode(t)))
|
|
3678
|
-
if (
|
|
3691
|
+
if (Kt(e, r.current))
|
|
3679
3692
|
return !0;
|
|
3680
3693
|
return !1;
|
|
3681
3694
|
}
|
|
@@ -3703,7 +3716,7 @@ class Fe {
|
|
|
3703
3716
|
return;
|
|
3704
3717
|
let r = this.fastMap.get(t), n = r.parent;
|
|
3705
3718
|
for (let o of this.traverse())
|
|
3706
|
-
o !== r && r.nodeToRestore && o.nodeToRestore && r.scopeRef.current &&
|
|
3719
|
+
o !== r && r.nodeToRestore && o.nodeToRestore && r.scopeRef.current && Kt(o.nodeToRestore, r.scopeRef.current) && (o.nodeToRestore = r.nodeToRestore);
|
|
3707
3720
|
let a = r.children;
|
|
3708
3721
|
n.removeChild(r), a.size > 0 && a.forEach((o) => n.addChild(o)), this.fastMap.delete(r.scopeRef);
|
|
3709
3722
|
}
|
|
@@ -3803,7 +3816,7 @@ const Lo = ({ align: e, children: t, className: r, ...n }) => {
|
|
|
3803
3816
|
children: t
|
|
3804
3817
|
}
|
|
3805
3818
|
);
|
|
3806
|
-
}, Mo = ({ open: e, children: t }) => /* @__PURE__ */ l(be, { children: e ? t : null }),
|
|
3819
|
+
}, Mo = ({ open: e, children: t }) => /* @__PURE__ */ l(be, { children: e ? t : null }), ha = ({
|
|
3807
3820
|
align: e = { horizontal: "start", vertical: "bottom" },
|
|
3808
3821
|
autoFocus: t = !0,
|
|
3809
3822
|
children: r,
|
|
@@ -3832,10 +3845,10 @@ const Lo = ({ align: e, children: t, className: r, ...n }) => {
|
|
|
3832
3845
|
children: /* @__PURE__ */ l("div", { ref: d, ...c, onClick: i, children: r })
|
|
3833
3846
|
}
|
|
3834
3847
|
) }) });
|
|
3835
|
-
},
|
|
3848
|
+
}, va = ({ onToggle: e, children: t, className: r, disabled: n }) => {
|
|
3836
3849
|
const a = (s) => {
|
|
3837
3850
|
s.preventDefault(), s.stopPropagation(), e();
|
|
3838
|
-
}, o = A(null), i =
|
|
3851
|
+
}, o = A(null), i = or(t, {
|
|
3839
3852
|
className: r,
|
|
3840
3853
|
disabled: n,
|
|
3841
3854
|
onClick: a,
|
|
@@ -3929,7 +3942,7 @@ function Wo({
|
|
|
3929
3942
|
a === t || e === t || r === t ? null : /* @__PURE__ */ l("span", { className: "inline-block w-px bg-tertiary-light dark:bg-tertiary-dark" })
|
|
3930
3943
|
] });
|
|
3931
3944
|
}
|
|
3932
|
-
const
|
|
3945
|
+
const xa = ({ ...e }) => /* @__PURE__ */ l("option", { ...e }), Go = "_select_1dwiy_1";
|
|
3933
3946
|
const Do = "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", Fo = "border-alert-light dark:border-alert-dark", Ho = "border-tertiary-light dark:border-tertiary-dark", Be = "text-text-muted-light dark:text-text-muted-dark", gt = b(
|
|
3934
3947
|
Be,
|
|
3935
3948
|
"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
|
|
@@ -3974,7 +3987,7 @@ const Do = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
3974
3987
|
a ? /* @__PURE__ */ l("p", { className: b(Be, "text-13 m-0"), children: a }) : null
|
|
3975
3988
|
] }) : null
|
|
3976
3989
|
] });
|
|
3977
|
-
},
|
|
3990
|
+
}, ya = w(Zo);
|
|
3978
3991
|
function Ko({
|
|
3979
3992
|
checked: e,
|
|
3980
3993
|
disabled: t,
|
|
@@ -4012,7 +4025,7 @@ function Ko({
|
|
|
4012
4025
|
}
|
|
4013
4026
|
const Xo = w(Ko);
|
|
4014
4027
|
Xo.displayName = "Switch";
|
|
4015
|
-
function
|
|
4028
|
+
function wa({ active: e, children: t, component: r = "a", className: n, href: a }) {
|
|
4016
4029
|
return /* @__PURE__ */ l(
|
|
4017
4030
|
F,
|
|
4018
4031
|
{
|
|
@@ -4037,7 +4050,7 @@ const Jo = {
|
|
|
4037
4050
|
}, Qo = {
|
|
4038
4051
|
lg: "text-16 w-fit rounded-0.5 plb-0.5 pli-1",
|
|
4039
4052
|
sm: "text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"
|
|
4040
|
-
},
|
|
4053
|
+
}, ka = ({ message: e, variant: t = "default", size: r = "sm", className: n }) => {
|
|
4041
4054
|
const a = Jo[t], o = Qo[r];
|
|
4042
4055
|
return /* @__PURE__ */ l(I, { className: b(a, o, n), children: /* @__PURE__ */ l(F, { children: e }) });
|
|
4043
4056
|
}, Yo = "_inputIcon_1pzdd_1", ea = {
|
|
@@ -4065,22 +4078,22 @@ ra.displayName = "TimePicker";
|
|
|
4065
4078
|
const na = "_tooltipWrapper_qu88w_1", oa = "_tooltipContent_qu88w_18", mt = {
|
|
4066
4079
|
tooltipWrapper: na,
|
|
4067
4080
|
tooltipContent: oa
|
|
4068
|
-
},
|
|
4081
|
+
}, $a = ({ content: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(mt.tooltipWrapper, t), ...r, children: /* @__PURE__ */ l("span", { className: mt.tooltipContent, children: e }) });
|
|
4069
4082
|
export {
|
|
4070
|
-
|
|
4083
|
+
en as AutocompleteSelect,
|
|
4071
4084
|
I as Box,
|
|
4072
|
-
|
|
4073
|
-
|
|
4085
|
+
rn as Breadcrumb,
|
|
4086
|
+
bn as Breadcrumbs,
|
|
4074
4087
|
Se as Button,
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4088
|
+
gn as ButtonComponent,
|
|
4089
|
+
hn as Checkbox,
|
|
4090
|
+
Ln as Dialog,
|
|
4078
4091
|
ca as Divider,
|
|
4079
4092
|
Wt as FocusTrap,
|
|
4080
4093
|
Dt as Heading,
|
|
4081
4094
|
ua as HorizontalLoader,
|
|
4082
4095
|
Gt as IconButton,
|
|
4083
|
-
|
|
4096
|
+
Tn as IconLinkButton,
|
|
4084
4097
|
so as ImageUpload,
|
|
4085
4098
|
It as Input,
|
|
4086
4099
|
co as LinkButton,
|
|
@@ -4090,27 +4103,28 @@ export {
|
|
|
4090
4103
|
fa as ListItemActions,
|
|
4091
4104
|
pa as ListItemContent,
|
|
4092
4105
|
ba as ListItemText,
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
ma as
|
|
4096
|
-
ha as
|
|
4106
|
+
ga as LoadingSpinner,
|
|
4107
|
+
xa as Option,
|
|
4108
|
+
ma as Popover,
|
|
4109
|
+
ha as PopoverBody,
|
|
4110
|
+
va as PopoverTrigger,
|
|
4097
4111
|
zo as RadioSet,
|
|
4098
4112
|
Bo as RadioSetItem,
|
|
4099
4113
|
Ao as SegmentedControl,
|
|
4100
4114
|
Wo as SegmentedControlItem,
|
|
4101
|
-
|
|
4115
|
+
ya as Select,
|
|
4102
4116
|
Xo as Switch,
|
|
4103
|
-
|
|
4104
|
-
|
|
4117
|
+
wa as Tab,
|
|
4118
|
+
ka as Tag,
|
|
4105
4119
|
F as Text,
|
|
4106
4120
|
ra as TimePicker,
|
|
4107
|
-
|
|
4121
|
+
$a as Tooltip,
|
|
4108
4122
|
da as buttonSizeOptions,
|
|
4109
4123
|
b as cn,
|
|
4110
4124
|
Bt as defaultButtonClasses,
|
|
4111
4125
|
Rt as determineSizeClasses,
|
|
4112
4126
|
$e as iconSizes,
|
|
4113
4127
|
Ge as useCombinedRefs,
|
|
4114
|
-
|
|
4128
|
+
Kr as useLockBodyScroll,
|
|
4115
4129
|
Ie as variantClasses
|
|
4116
4130
|
};
|