@youversion/design-system-components 0.8.1 → 0.10.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 +13 -0
- package/dist/HorizontalLoader/HorizontalLoader.d.ts +5 -3
- package/dist/HorizontalLoader/HorizontalLoader.d.ts.map +1 -1
- package/dist/List/List.d.ts +2 -2
- package/dist/ListItem/ListItem.d.ts +1 -0
- package/dist/ListItem/ListItem.d.ts.map +1 -1
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/PopoverBody/PopoverBody.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +8 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/SegmentedControl/SegmentedControlItem.d.ts +10 -0
- package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -0
- package/dist/SegmentedControl/index.d.ts +3 -0
- package/dist/SegmentedControl/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 +634 -578
- package/dist/index.umd.js +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import je from "clsx";
|
|
2
|
-
import { jsxs as y, jsx as l, Fragment as
|
|
3
|
-
import ht, { forwardRef as
|
|
2
|
+
import { jsxs as y, jsx as l, Fragment as be } from "react/jsx-runtime";
|
|
3
|
+
import ht, { forwardRef as k, createElement as V, useEffect as oe, useLayoutEffect as Qt, useRef as F, useState as U, useCallback as ye, 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,
|
|
5
|
+
var nr = Object.defineProperty, or = Object.defineProperties, ar = Object.getOwnPropertyDescriptors, we = 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
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (we)
|
|
9
|
+
for (var r of we(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]);
|
|
16
|
-
if (e != null &&
|
|
17
|
-
for (var n of
|
|
16
|
+
if (e != null && we)
|
|
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
20
|
}, dr = (e, t) => {
|
|
21
|
-
var r = e, { title: n, titleId:
|
|
22
|
-
return y("svg", sr(ir({ width:
|
|
23
|
-
}, cr =
|
|
21
|
+
var r = e, { title: n, titleId: a } = r, o = lr(r, ["title", "titleId"]);
|
|
22
|
+
return y("svg", sr(ir({ 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
|
+
}, cr = k(dr), yt = cr, wt = {
|
|
24
24
|
0: "0px",
|
|
25
25
|
px: "1px",
|
|
26
26
|
"0.25": "2px",
|
|
@@ -114,17 +114,17 @@ function $t(e) {
|
|
|
114
114
|
}
|
|
115
115
|
var We = "-";
|
|
116
116
|
function fr(e) {
|
|
117
|
-
var t = br(e), r = e.conflictingClassGroups, n = e.conflictingClassGroupModifiers,
|
|
118
|
-
function
|
|
119
|
-
var
|
|
120
|
-
return
|
|
117
|
+
var t = br(e), r = e.conflictingClassGroups, n = e.conflictingClassGroupModifiers, a = n === void 0 ? {} : n;
|
|
118
|
+
function o(s) {
|
|
119
|
+
var c = s.split(We);
|
|
120
|
+
return c[0] === "" && c.length !== 1 && c.shift(), St(c, t) || pr(s);
|
|
121
121
|
}
|
|
122
|
-
function i(s,
|
|
123
|
-
var
|
|
124
|
-
return
|
|
122
|
+
function i(s, c) {
|
|
123
|
+
var d = r[s] || [];
|
|
124
|
+
return c && a[s] ? [].concat(d, a[s]) : d;
|
|
125
125
|
}
|
|
126
126
|
return {
|
|
127
|
-
getClassGroupId:
|
|
127
|
+
getClassGroupId: o,
|
|
128
128
|
getConflictingClassGroupIds: i
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -132,14 +132,14 @@ function St(e, t) {
|
|
|
132
132
|
var i;
|
|
133
133
|
if (e.length === 0)
|
|
134
134
|
return t.classGroupId;
|
|
135
|
-
var r = e[0], n = t.nextPart.get(r),
|
|
136
|
-
if (
|
|
137
|
-
return
|
|
135
|
+
var r = e[0], n = t.nextPart.get(r), a = n ? St(e.slice(1), n) : void 0;
|
|
136
|
+
if (a)
|
|
137
|
+
return a;
|
|
138
138
|
if (t.validators.length !== 0) {
|
|
139
|
-
var
|
|
139
|
+
var o = e.join(We);
|
|
140
140
|
return (i = t.validators.find(function(s) {
|
|
141
|
-
var
|
|
142
|
-
return
|
|
141
|
+
var c = s.validator;
|
|
142
|
+
return c(o);
|
|
143
143
|
})) == null ? void 0 : i.classGroupId;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -155,33 +155,33 @@ function br(e) {
|
|
|
155
155
|
var t = e.theme, r = e.prefix, n = {
|
|
156
156
|
nextPart: /* @__PURE__ */ new Map(),
|
|
157
157
|
validators: []
|
|
158
|
-
},
|
|
159
|
-
return
|
|
160
|
-
var i =
|
|
158
|
+
}, a = mr(Object.entries(e.classGroups), r);
|
|
159
|
+
return a.forEach(function(o) {
|
|
160
|
+
var i = o[0], s = o[1];
|
|
161
161
|
Me(s, n, i, t);
|
|
162
162
|
}), n;
|
|
163
163
|
}
|
|
164
164
|
function Me(e, t, r, n) {
|
|
165
|
-
e.forEach(function(
|
|
166
|
-
if (typeof
|
|
167
|
-
var
|
|
168
|
-
|
|
165
|
+
e.forEach(function(a) {
|
|
166
|
+
if (typeof a == "string") {
|
|
167
|
+
var o = a === "" ? t : _e(t, a);
|
|
168
|
+
o.classGroupId = r;
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
|
-
if (typeof
|
|
172
|
-
if (gr(
|
|
173
|
-
Me(
|
|
171
|
+
if (typeof a == "function") {
|
|
172
|
+
if (gr(a)) {
|
|
173
|
+
Me(a(n), t, r, n);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
t.validators.push({
|
|
177
|
-
validator:
|
|
177
|
+
validator: a,
|
|
178
178
|
classGroupId: r
|
|
179
179
|
});
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
Object.entries(
|
|
183
|
-
var s = i[0],
|
|
184
|
-
Me(
|
|
182
|
+
Object.entries(a).forEach(function(i) {
|
|
183
|
+
var s = i[0], c = i[1];
|
|
184
|
+
Me(c, _e(t, s), r, n);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -199,13 +199,13 @@ function gr(e) {
|
|
|
199
199
|
}
|
|
200
200
|
function mr(e, t) {
|
|
201
201
|
return t ? e.map(function(r) {
|
|
202
|
-
var n = r[0],
|
|
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) {
|
|
204
|
-
var
|
|
205
|
-
return [t +
|
|
204
|
+
var c = s[0], d = s[1];
|
|
205
|
+
return [t + c, d];
|
|
206
206
|
})) : i;
|
|
207
207
|
});
|
|
208
|
-
return [n,
|
|
208
|
+
return [n, o];
|
|
209
209
|
}) : e;
|
|
210
210
|
}
|
|
211
211
|
function hr(e) {
|
|
@@ -217,8 +217,8 @@ function hr(e) {
|
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
var t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
220
|
-
function o
|
|
221
|
-
r.set(
|
|
220
|
+
function a(o, i) {
|
|
221
|
+
r.set(o, i), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
222
222
|
}
|
|
223
223
|
return {
|
|
224
224
|
get: function(i) {
|
|
@@ -226,32 +226,32 @@ function hr(e) {
|
|
|
226
226
|
if (s !== void 0)
|
|
227
227
|
return s;
|
|
228
228
|
if ((s = n.get(i)) !== void 0)
|
|
229
|
-
return
|
|
229
|
+
return a(i, s), s;
|
|
230
230
|
},
|
|
231
231
|
set: function(i, s) {
|
|
232
|
-
r.has(i) ? r.set(i, s) :
|
|
232
|
+
r.has(i) ? r.set(i, s) : a(i, s);
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var Ct = "!";
|
|
237
237
|
function vr(e) {
|
|
238
|
-
var t = e.separator || ":", r = t.length === 1, n = t[0],
|
|
238
|
+
var t = e.separator || ":", r = t.length === 1, n = t[0], a = t.length;
|
|
239
239
|
return function(i) {
|
|
240
|
-
for (var s = [],
|
|
240
|
+
for (var s = [], c = 0, d = 0, u, g = 0; g < i.length; g++) {
|
|
241
241
|
var v = i[g];
|
|
242
|
-
if (
|
|
243
|
-
if (v === n && (r || i.slice(g, g +
|
|
244
|
-
s.push(i.slice(
|
|
242
|
+
if (c === 0) {
|
|
243
|
+
if (v === n && (r || i.slice(g, g + a) === t)) {
|
|
244
|
+
s.push(i.slice(d, g)), d = g + a;
|
|
245
245
|
continue;
|
|
246
246
|
}
|
|
247
247
|
if (v === "/") {
|
|
248
|
-
|
|
248
|
+
u = g;
|
|
249
249
|
continue;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
v === "[" ?
|
|
252
|
+
v === "[" ? c++ : v === "]" && c--;
|
|
253
253
|
}
|
|
254
|
-
var m = s.length === 0 ? i : i.substring(
|
|
254
|
+
var m = s.length === 0 ? i : i.substring(d), p = m.startsWith(Ct), w = p ? m.substring(1) : m, x = u && u > d ? u - d : void 0;
|
|
255
255
|
return {
|
|
256
256
|
modifiers: s,
|
|
257
257
|
hasImportantModifier: p,
|
|
@@ -265,8 +265,8 @@ function xr(e) {
|
|
|
265
265
|
return e;
|
|
266
266
|
var t = [], r = [];
|
|
267
267
|
return e.forEach(function(n) {
|
|
268
|
-
var
|
|
269
|
-
|
|
268
|
+
var a = n[0] === "[";
|
|
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
272
|
function yr(e) {
|
|
@@ -278,23 +278,23 @@ function yr(e) {
|
|
|
278
278
|
}
|
|
279
279
|
var wr = /\s+/;
|
|
280
280
|
function kr(e, t) {
|
|
281
|
-
var r = t.splitModifiers, n = t.getClassGroupId,
|
|
281
|
+
var r = t.splitModifiers, n = t.getClassGroupId, a = t.getConflictingClassGroupIds, o = /* @__PURE__ */ new Set();
|
|
282
282
|
return e.trim().split(wr).map(function(i) {
|
|
283
|
-
var s = r(i),
|
|
283
|
+
var s = r(i), c = s.modifiers, d = s.hasImportantModifier, u = s.baseClassName, g = s.maybePostfixModifierPosition, v = n(g ? u.substring(0, g) : u), m = Boolean(g);
|
|
284
284
|
if (!v) {
|
|
285
285
|
if (!g)
|
|
286
286
|
return {
|
|
287
287
|
isTailwindClass: !1,
|
|
288
288
|
originalClassName: i
|
|
289
289
|
};
|
|
290
|
-
if (v = n(
|
|
290
|
+
if (v = n(u), !v)
|
|
291
291
|
return {
|
|
292
292
|
isTailwindClass: !1,
|
|
293
293
|
originalClassName: i
|
|
294
294
|
};
|
|
295
295
|
m = !1;
|
|
296
296
|
}
|
|
297
|
-
var p = xr(
|
|
297
|
+
var p = xr(c).join(":"), w = d ? p + Ct : p;
|
|
298
298
|
return {
|
|
299
299
|
isTailwindClass: !0,
|
|
300
300
|
modifierId: w,
|
|
@@ -305,9 +305,9 @@ function kr(e, t) {
|
|
|
305
305
|
}).reverse().filter(function(i) {
|
|
306
306
|
if (!i.isTailwindClass)
|
|
307
307
|
return !0;
|
|
308
|
-
var s = i.modifierId,
|
|
309
|
-
return
|
|
310
|
-
return
|
|
308
|
+
var s = i.modifierId, c = i.classGroupId, d = i.hasPostfixModifier, u = s + c;
|
|
309
|
+
return o.has(u) ? !1 : (o.add(u), a(c, d).forEach(function(g) {
|
|
310
|
+
return o.add(s + g);
|
|
311
311
|
}), !0);
|
|
312
312
|
}).reverse().map(function(i) {
|
|
313
313
|
return i.originalClassName;
|
|
@@ -316,35 +316,35 @@ function kr(e, t) {
|
|
|
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,
|
|
320
|
-
function s(
|
|
321
|
-
var
|
|
319
|
+
var n, a, o, i = s;
|
|
320
|
+
function s(d) {
|
|
321
|
+
var u = t[0], g = t.slice(1), v = g.reduce(function(m, p) {
|
|
322
322
|
return p(m);
|
|
323
|
-
},
|
|
324
|
-
return n = yr(v),
|
|
323
|
+
}, u());
|
|
324
|
+
return n = yr(v), a = n.cache.get, o = n.cache.set, i = c, c(d);
|
|
325
325
|
}
|
|
326
|
-
function d
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
329
|
-
return
|
|
330
|
-
var g = kr(
|
|
331
|
-
return
|
|
326
|
+
function c(d) {
|
|
327
|
+
var u = a(d);
|
|
328
|
+
if (u)
|
|
329
|
+
return u;
|
|
330
|
+
var g = kr(d, n);
|
|
331
|
+
return o(d, g), g;
|
|
332
332
|
}
|
|
333
333
|
return function() {
|
|
334
334
|
return i(ur.apply(null, arguments));
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function $(e) {
|
|
338
338
|
var t = function(n) {
|
|
339
339
|
return n[e] || [];
|
|
340
340
|
};
|
|
341
341
|
return t.isThemeGetter = !0, t;
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Nt = /^\[(?:([a-z-]+):)?(.+)\]$/i, $r = /^\d+\/\d+$/, Sr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Cr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Nr = /\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
344
|
function j(e) {
|
|
345
|
-
return te(e) || Sr.has(e) || $r.test(e) ||
|
|
345
|
+
return te(e) || Sr.has(e) || $r.test(e) || q(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function q(e) {
|
|
348
348
|
return ae(e, "length", Tr);
|
|
349
349
|
}
|
|
350
350
|
function Ir(e) {
|
|
@@ -356,7 +356,7 @@ function Er(e) {
|
|
|
356
356
|
function Pr(e) {
|
|
357
357
|
return ae(e, "url", zr);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function he(e) {
|
|
360
360
|
return ae(e, "number", te);
|
|
361
361
|
}
|
|
362
362
|
function te(e) {
|
|
@@ -368,24 +368,24 @@ function Lr(e) {
|
|
|
368
368
|
function ue(e) {
|
|
369
369
|
return Ze(e) || ae(e, "number", Ze);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function N(e) {
|
|
372
|
+
return Nt.test(e);
|
|
373
373
|
}
|
|
374
374
|
function fe() {
|
|
375
375
|
return !0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function _(e) {
|
|
378
|
+
return Cr.test(e);
|
|
379
379
|
}
|
|
380
380
|
function Mr(e) {
|
|
381
381
|
return ae(e, "", Rr);
|
|
382
382
|
}
|
|
383
383
|
function ae(e, t, r) {
|
|
384
|
-
var n =
|
|
384
|
+
var n = Nt.exec(e);
|
|
385
385
|
return n ? n[1] ? n[1] === t : r(n[2]) : !1;
|
|
386
386
|
}
|
|
387
387
|
function Tr(e) {
|
|
388
|
-
return
|
|
388
|
+
return Nr.test(e);
|
|
389
389
|
}
|
|
390
390
|
function Ot() {
|
|
391
391
|
return !1;
|
|
@@ -400,51 +400,51 @@ function Rr(e) {
|
|
|
400
400
|
return Or.test(e);
|
|
401
401
|
}
|
|
402
402
|
function Ke() {
|
|
403
|
-
var e =
|
|
403
|
+
var e = $("colors"), t = $("spacing"), r = $("blur"), n = $("brightness"), a = $("borderColor"), o = $("borderRadius"), i = $("borderSpacing"), s = $("borderWidth"), c = $("contrast"), d = $("grayscale"), u = $("hueRotate"), g = $("invert"), v = $("gap"), m = $("gradientColorStops"), p = $("gradientColorStopPositions"), w = $("inset"), x = $("margin"), I = $("opacity"), C = $("padding"), P = $("saturate"), S = $("scale"), h = $("sepia"), f = $("skew"), Z = $("space"), E = $("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
|
+
}, R = function() {
|
|
410
410
|
return ["", j];
|
|
411
411
|
}, L = function() {
|
|
412
|
-
return ["auto", te,
|
|
412
|
+
return ["auto", te, N];
|
|
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
|
+
}, ge = 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
|
-
return ["", "0",
|
|
423
|
-
},
|
|
422
|
+
return ["", "0", N];
|
|
423
|
+
}, me = function() {
|
|
424
424
|
return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
|
|
425
425
|
}, J = function() {
|
|
426
|
-
return [te,
|
|
426
|
+
return [te, he];
|
|
427
427
|
}, le = function() {
|
|
428
|
-
return [te,
|
|
428
|
+
return [te, N];
|
|
429
429
|
};
|
|
430
430
|
return {
|
|
431
431
|
cacheSize: 500,
|
|
432
432
|
theme: {
|
|
433
433
|
colors: [fe],
|
|
434
434
|
spacing: [j],
|
|
435
|
-
blur: ["none", "",
|
|
435
|
+
blur: ["none", "", _, q],
|
|
436
436
|
brightness: J(),
|
|
437
437
|
borderColor: [e],
|
|
438
|
-
borderRadius: ["none", "", "full",
|
|
438
|
+
borderRadius: ["none", "", "full", _, q],
|
|
439
439
|
borderSpacing: [t],
|
|
440
|
-
borderWidth:
|
|
440
|
+
borderWidth: R(),
|
|
441
441
|
contrast: J(),
|
|
442
442
|
grayscale: X(),
|
|
443
443
|
hueRotate: le(),
|
|
444
444
|
invert: X(),
|
|
445
445
|
gap: [t],
|
|
446
446
|
gradientColorStops: [e],
|
|
447
|
-
gradientColorStopPositions: [Lr,
|
|
447
|
+
gradientColorStopPositions: [Lr, q],
|
|
448
448
|
inset: A(),
|
|
449
449
|
margin: A(),
|
|
450
450
|
opacity: J(),
|
|
@@ -463,7 +463,7 @@ function Ke() {
|
|
|
463
463
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
464
464
|
*/
|
|
465
465
|
aspect: [{
|
|
466
|
-
aspect: ["auto", "square", "video",
|
|
466
|
+
aspect: ["auto", "square", "video", N]
|
|
467
467
|
}],
|
|
468
468
|
/**
|
|
469
469
|
* Container
|
|
@@ -475,21 +475,21 @@ function Ke() {
|
|
|
475
475
|
* @see https://tailwindcss.com/docs/columns
|
|
476
476
|
*/
|
|
477
477
|
columns: [{
|
|
478
|
-
columns: [
|
|
478
|
+
columns: [_]
|
|
479
479
|
}],
|
|
480
480
|
/**
|
|
481
481
|
* Break After
|
|
482
482
|
* @see https://tailwindcss.com/docs/break-after
|
|
483
483
|
*/
|
|
484
484
|
"break-after": [{
|
|
485
|
-
"break-after":
|
|
485
|
+
"break-after": me()
|
|
486
486
|
}],
|
|
487
487
|
/**
|
|
488
488
|
* Break Before
|
|
489
489
|
* @see https://tailwindcss.com/docs/break-before
|
|
490
490
|
*/
|
|
491
491
|
"break-before": [{
|
|
492
|
-
"break-before":
|
|
492
|
+
"break-before": me()
|
|
493
493
|
}],
|
|
494
494
|
/**
|
|
495
495
|
* Break Inside
|
|
@@ -548,7 +548,7 @@ function Ke() {
|
|
|
548
548
|
* @see https://tailwindcss.com/docs/object-position
|
|
549
549
|
*/
|
|
550
550
|
"object-position": [{
|
|
551
|
-
object: [].concat(ie(), [
|
|
551
|
+
object: [].concat(ie(), [N])
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Overflow
|
|
@@ -699,7 +699,7 @@ function Ke() {
|
|
|
699
699
|
* @see https://tailwindcss.com/docs/flex
|
|
700
700
|
*/
|
|
701
701
|
flex: [{
|
|
702
|
-
flex: ["1", "auto", "initial", "none",
|
|
702
|
+
flex: ["1", "auto", "initial", "none", N]
|
|
703
703
|
}],
|
|
704
704
|
/**
|
|
705
705
|
* Flex Grow
|
|
@@ -736,7 +736,7 @@ function Ke() {
|
|
|
736
736
|
"col-start-end": [{
|
|
737
737
|
col: ["auto", {
|
|
738
738
|
span: [ue]
|
|
739
|
-
},
|
|
739
|
+
}, N]
|
|
740
740
|
}],
|
|
741
741
|
/**
|
|
742
742
|
* Grid Column Start
|
|
@@ -766,7 +766,7 @@ function Ke() {
|
|
|
766
766
|
"row-start-end": [{
|
|
767
767
|
row: ["auto", {
|
|
768
768
|
span: [ue]
|
|
769
|
-
},
|
|
769
|
+
}, N]
|
|
770
770
|
}],
|
|
771
771
|
/**
|
|
772
772
|
* Grid Row Start
|
|
@@ -794,14 +794,14 @@ function Ke() {
|
|
|
794
794
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
795
795
|
*/
|
|
796
796
|
"auto-cols": [{
|
|
797
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
797
|
+
"auto-cols": ["auto", "min", "max", "fr", N]
|
|
798
798
|
}],
|
|
799
799
|
/**
|
|
800
800
|
* Grid Auto Rows
|
|
801
801
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
802
802
|
*/
|
|
803
803
|
"auto-rows": [{
|
|
804
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
804
|
+
"auto-rows": ["auto", "min", "max", "fr", N]
|
|
805
805
|
}],
|
|
806
806
|
/**
|
|
807
807
|
* Gap
|
|
@@ -893,63 +893,63 @@ function Ke() {
|
|
|
893
893
|
* @see https://tailwindcss.com/docs/padding
|
|
894
894
|
*/
|
|
895
895
|
p: [{
|
|
896
|
-
p: [
|
|
896
|
+
p: [C]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Padding X
|
|
900
900
|
* @see https://tailwindcss.com/docs/padding
|
|
901
901
|
*/
|
|
902
902
|
px: [{
|
|
903
|
-
px: [
|
|
903
|
+
px: [C]
|
|
904
904
|
}],
|
|
905
905
|
/**
|
|
906
906
|
* Padding Y
|
|
907
907
|
* @see https://tailwindcss.com/docs/padding
|
|
908
908
|
*/
|
|
909
909
|
py: [{
|
|
910
|
-
py: [
|
|
910
|
+
py: [C]
|
|
911
911
|
}],
|
|
912
912
|
/**
|
|
913
913
|
* Padding Start
|
|
914
914
|
* @see https://tailwindcss.com/docs/padding
|
|
915
915
|
*/
|
|
916
916
|
ps: [{
|
|
917
|
-
ps: [
|
|
917
|
+
ps: [C]
|
|
918
918
|
}],
|
|
919
919
|
/**
|
|
920
920
|
* Padding End
|
|
921
921
|
* @see https://tailwindcss.com/docs/padding
|
|
922
922
|
*/
|
|
923
923
|
pe: [{
|
|
924
|
-
pe: [
|
|
924
|
+
pe: [C]
|
|
925
925
|
}],
|
|
926
926
|
/**
|
|
927
927
|
* Padding Top
|
|
928
928
|
* @see https://tailwindcss.com/docs/padding
|
|
929
929
|
*/
|
|
930
930
|
pt: [{
|
|
931
|
-
pt: [
|
|
931
|
+
pt: [C]
|
|
932
932
|
}],
|
|
933
933
|
/**
|
|
934
934
|
* Padding Right
|
|
935
935
|
* @see https://tailwindcss.com/docs/padding
|
|
936
936
|
*/
|
|
937
937
|
pr: [{
|
|
938
|
-
pr: [
|
|
938
|
+
pr: [C]
|
|
939
939
|
}],
|
|
940
940
|
/**
|
|
941
941
|
* Padding Bottom
|
|
942
942
|
* @see https://tailwindcss.com/docs/padding
|
|
943
943
|
*/
|
|
944
944
|
pb: [{
|
|
945
|
-
pb: [
|
|
945
|
+
pb: [C]
|
|
946
946
|
}],
|
|
947
947
|
/**
|
|
948
948
|
* Padding Left
|
|
949
949
|
* @see https://tailwindcss.com/docs/padding
|
|
950
950
|
*/
|
|
951
951
|
pl: [{
|
|
952
|
-
pl: [
|
|
952
|
+
pl: [C]
|
|
953
953
|
}],
|
|
954
954
|
/**
|
|
955
955
|
* Margin
|
|
@@ -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: [_]
|
|
1063
|
+
}, _, q]
|
|
1064
1064
|
}],
|
|
1065
1065
|
/**
|
|
1066
1066
|
* 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", _, q]
|
|
1093
1093
|
}],
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Font Smoothing
|
|
@@ -1106,7 +1106,7 @@ function Ke() {
|
|
|
1106
1106
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1107
1107
|
*/
|
|
1108
1108
|
"font-weight": [{
|
|
1109
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
1109
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", he]
|
|
1110
1110
|
}],
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Font Family
|
|
@@ -1150,14 +1150,14 @@ function Ke() {
|
|
|
1150
1150
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1151
1151
|
*/
|
|
1152
1152
|
tracking: [{
|
|
1153
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1153
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", q]
|
|
1154
1154
|
}],
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Line Clamp
|
|
1157
1157
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1158
1158
|
*/
|
|
1159
1159
|
"line-clamp": [{
|
|
1160
|
-
"line-clamp": ["none", te,
|
|
1160
|
+
"line-clamp": ["none", te, he]
|
|
1161
1161
|
}],
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Line Height
|
|
@@ -1171,14 +1171,14 @@ function Ke() {
|
|
|
1171
1171
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1172
1172
|
*/
|
|
1173
1173
|
"list-image": [{
|
|
1174
|
-
"list-image": ["none",
|
|
1174
|
+
"list-image": ["none", N]
|
|
1175
1175
|
}],
|
|
1176
1176
|
/**
|
|
1177
1177
|
* List Style Type
|
|
1178
1178
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1179
1179
|
*/
|
|
1180
1180
|
"list-style-type": [{
|
|
1181
|
-
list: ["none", "disc", "decimal",
|
|
1181
|
+
list: ["none", "disc", "decimal", N]
|
|
1182
1182
|
}],
|
|
1183
1183
|
/**
|
|
1184
1184
|
* List Style Position
|
|
@@ -1278,7 +1278,7 @@ function Ke() {
|
|
|
1278
1278
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1279
1279
|
*/
|
|
1280
1280
|
"vertical-align": [{
|
|
1281
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1281
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", q]
|
|
1282
1282
|
}],
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Whitespace
|
|
@@ -1306,7 +1306,7 @@ function Ke() {
|
|
|
1306
1306
|
* @see https://tailwindcss.com/docs/content
|
|
1307
1307
|
*/
|
|
1308
1308
|
content: [{
|
|
1309
|
-
content: ["none",
|
|
1309
|
+
content: ["none", N]
|
|
1310
1310
|
}],
|
|
1311
1311
|
// Backgrounds
|
|
1312
1312
|
/**
|
|
@@ -1425,105 +1425,105 @@ function Ke() {
|
|
|
1425
1425
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1426
1426
|
*/
|
|
1427
1427
|
rounded: [{
|
|
1428
|
-
rounded: [
|
|
1428
|
+
rounded: [o]
|
|
1429
1429
|
}],
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Border Radius Start
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1433
1433
|
*/
|
|
1434
1434
|
"rounded-s": [{
|
|
1435
|
-
"rounded-s": [
|
|
1435
|
+
"rounded-s": [o]
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Border Radius End
|
|
1439
1439
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1440
1440
|
*/
|
|
1441
1441
|
"rounded-e": [{
|
|
1442
|
-
"rounded-e": [
|
|
1442
|
+
"rounded-e": [o]
|
|
1443
1443
|
}],
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Border Radius Top
|
|
1446
1446
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1447
1447
|
*/
|
|
1448
1448
|
"rounded-t": [{
|
|
1449
|
-
"rounded-t": [
|
|
1449
|
+
"rounded-t": [o]
|
|
1450
1450
|
}],
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Border Radius Right
|
|
1453
1453
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1454
1454
|
*/
|
|
1455
1455
|
"rounded-r": [{
|
|
1456
|
-
"rounded-r": [
|
|
1456
|
+
"rounded-r": [o]
|
|
1457
1457
|
}],
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Border Radius Bottom
|
|
1460
1460
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1461
1461
|
*/
|
|
1462
1462
|
"rounded-b": [{
|
|
1463
|
-
"rounded-b": [
|
|
1463
|
+
"rounded-b": [o]
|
|
1464
1464
|
}],
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Border Radius Left
|
|
1467
1467
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1468
1468
|
*/
|
|
1469
1469
|
"rounded-l": [{
|
|
1470
|
-
"rounded-l": [
|
|
1470
|
+
"rounded-l": [o]
|
|
1471
1471
|
}],
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Border Radius Start Start
|
|
1474
1474
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1475
1475
|
*/
|
|
1476
1476
|
"rounded-ss": [{
|
|
1477
|
-
"rounded-ss": [
|
|
1477
|
+
"rounded-ss": [o]
|
|
1478
1478
|
}],
|
|
1479
1479
|
/**
|
|
1480
1480
|
* Border Radius Start End
|
|
1481
1481
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1482
1482
|
*/
|
|
1483
1483
|
"rounded-se": [{
|
|
1484
|
-
"rounded-se": [
|
|
1484
|
+
"rounded-se": [o]
|
|
1485
1485
|
}],
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Border Radius End End
|
|
1488
1488
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1489
1489
|
*/
|
|
1490
1490
|
"rounded-ee": [{
|
|
1491
|
-
"rounded-ee": [
|
|
1491
|
+
"rounded-ee": [o]
|
|
1492
1492
|
}],
|
|
1493
1493
|
/**
|
|
1494
1494
|
* Border Radius End Start
|
|
1495
1495
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1496
1496
|
*/
|
|
1497
1497
|
"rounded-es": [{
|
|
1498
|
-
"rounded-es": [
|
|
1498
|
+
"rounded-es": [o]
|
|
1499
1499
|
}],
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Border Radius Top Left
|
|
1502
1502
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1503
1503
|
*/
|
|
1504
1504
|
"rounded-tl": [{
|
|
1505
|
-
"rounded-tl": [
|
|
1505
|
+
"rounded-tl": [o]
|
|
1506
1506
|
}],
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Border Radius Top Right
|
|
1509
1509
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1510
1510
|
*/
|
|
1511
1511
|
"rounded-tr": [{
|
|
1512
|
-
"rounded-tr": [
|
|
1512
|
+
"rounded-tr": [o]
|
|
1513
1513
|
}],
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Border Radius Bottom Right
|
|
1516
1516
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1517
1517
|
*/
|
|
1518
1518
|
"rounded-br": [{
|
|
1519
|
-
"rounded-br": [
|
|
1519
|
+
"rounded-br": [o]
|
|
1520
1520
|
}],
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Border Radius Bottom Left
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1524
1524
|
*/
|
|
1525
1525
|
"rounded-bl": [{
|
|
1526
|
-
"rounded-bl": [
|
|
1526
|
+
"rounded-bl": [o]
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Border Width
|
|
@@ -1645,56 +1645,56 @@ function Ke() {
|
|
|
1645
1645
|
* @see https://tailwindcss.com/docs/border-color
|
|
1646
1646
|
*/
|
|
1647
1647
|
"border-color": [{
|
|
1648
|
-
border: [
|
|
1648
|
+
border: [a]
|
|
1649
1649
|
}],
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Border Color X
|
|
1652
1652
|
* @see https://tailwindcss.com/docs/border-color
|
|
1653
1653
|
*/
|
|
1654
1654
|
"border-color-x": [{
|
|
1655
|
-
"border-x": [
|
|
1655
|
+
"border-x": [a]
|
|
1656
1656
|
}],
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Border Color Y
|
|
1659
1659
|
* @see https://tailwindcss.com/docs/border-color
|
|
1660
1660
|
*/
|
|
1661
1661
|
"border-color-y": [{
|
|
1662
|
-
"border-y": [
|
|
1662
|
+
"border-y": [a]
|
|
1663
1663
|
}],
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Border Color Top
|
|
1666
1666
|
* @see https://tailwindcss.com/docs/border-color
|
|
1667
1667
|
*/
|
|
1668
1668
|
"border-color-t": [{
|
|
1669
|
-
"border-t": [
|
|
1669
|
+
"border-t": [a]
|
|
1670
1670
|
}],
|
|
1671
1671
|
/**
|
|
1672
1672
|
* Border Color Right
|
|
1673
1673
|
* @see https://tailwindcss.com/docs/border-color
|
|
1674
1674
|
*/
|
|
1675
1675
|
"border-color-r": [{
|
|
1676
|
-
"border-r": [
|
|
1676
|
+
"border-r": [a]
|
|
1677
1677
|
}],
|
|
1678
1678
|
/**
|
|
1679
1679
|
* Border Color Bottom
|
|
1680
1680
|
* @see https://tailwindcss.com/docs/border-color
|
|
1681
1681
|
*/
|
|
1682
1682
|
"border-color-b": [{
|
|
1683
|
-
"border-b": [
|
|
1683
|
+
"border-b": [a]
|
|
1684
1684
|
}],
|
|
1685
1685
|
/**
|
|
1686
1686
|
* Border Color Left
|
|
1687
1687
|
* @see https://tailwindcss.com/docs/border-color
|
|
1688
1688
|
*/
|
|
1689
1689
|
"border-color-l": [{
|
|
1690
|
-
"border-l": [
|
|
1690
|
+
"border-l": [a]
|
|
1691
1691
|
}],
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Divide Color
|
|
1694
1694
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1695
1695
|
*/
|
|
1696
1696
|
"divide-color": [{
|
|
1697
|
-
divide: [
|
|
1697
|
+
divide: [a]
|
|
1698
1698
|
}],
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Outline Style
|
|
@@ -1729,7 +1729,7 @@ function Ke() {
|
|
|
1729
1729
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1730
1730
|
*/
|
|
1731
1731
|
"ring-w": [{
|
|
1732
|
-
ring:
|
|
1732
|
+
ring: R()
|
|
1733
1733
|
}],
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Ring Width Inset
|
|
@@ -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", _, Mr]
|
|
1774
1774
|
}],
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Box Shadow Color
|
|
@@ -1791,14 +1791,14 @@ function Ke() {
|
|
|
1791
1791
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1792
1792
|
*/
|
|
1793
1793
|
"mix-blend": [{
|
|
1794
|
-
"mix-blend":
|
|
1794
|
+
"mix-blend": ge()
|
|
1795
1795
|
}],
|
|
1796
1796
|
/**
|
|
1797
1797
|
* Background Blend Mode
|
|
1798
1798
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1799
1799
|
*/
|
|
1800
1800
|
"bg-blend": [{
|
|
1801
|
-
"bg-blend":
|
|
1801
|
+
"bg-blend": ge()
|
|
1802
1802
|
}],
|
|
1803
1803
|
// Filters
|
|
1804
1804
|
/**
|
|
@@ -1828,28 +1828,28 @@ function Ke() {
|
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/contrast
|
|
1829
1829
|
*/
|
|
1830
1830
|
contrast: [{
|
|
1831
|
-
contrast: [
|
|
1831
|
+
contrast: [c]
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Drop Shadow
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1836
1836
|
*/
|
|
1837
1837
|
"drop-shadow": [{
|
|
1838
|
-
"drop-shadow": ["", "none",
|
|
1838
|
+
"drop-shadow": ["", "none", _, N]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Grayscale
|
|
1842
1842
|
* @see https://tailwindcss.com/docs/grayscale
|
|
1843
1843
|
*/
|
|
1844
1844
|
grayscale: [{
|
|
1845
|
-
grayscale: [
|
|
1845
|
+
grayscale: [d]
|
|
1846
1846
|
}],
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Hue Rotate
|
|
1849
1849
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1850
1850
|
*/
|
|
1851
1851
|
"hue-rotate": [{
|
|
1852
|
-
"hue-rotate": [
|
|
1852
|
+
"hue-rotate": [u]
|
|
1853
1853
|
}],
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Invert
|
|
@@ -1899,21 +1899,21 @@ function Ke() {
|
|
|
1899
1899
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
1900
1900
|
*/
|
|
1901
1901
|
"backdrop-contrast": [{
|
|
1902
|
-
"backdrop-contrast": [
|
|
1902
|
+
"backdrop-contrast": [c]
|
|
1903
1903
|
}],
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Backdrop Grayscale
|
|
1906
1906
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
1907
1907
|
*/
|
|
1908
1908
|
"backdrop-grayscale": [{
|
|
1909
|
-
"backdrop-grayscale": [
|
|
1909
|
+
"backdrop-grayscale": [d]
|
|
1910
1910
|
}],
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Backdrop Hue Rotate
|
|
1913
1913
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1914
1914
|
*/
|
|
1915
1915
|
"backdrop-hue-rotate": [{
|
|
1916
|
-
"backdrop-hue-rotate": [
|
|
1916
|
+
"backdrop-hue-rotate": [u]
|
|
1917
1917
|
}],
|
|
1918
1918
|
/**
|
|
1919
1919
|
* Backdrop Invert
|
|
@@ -1992,7 +1992,7 @@ function Ke() {
|
|
|
1992
1992
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1993
1993
|
*/
|
|
1994
1994
|
transition: [{
|
|
1995
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1995
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
|
|
1996
1996
|
}],
|
|
1997
1997
|
/**
|
|
1998
1998
|
* Transition Duration
|
|
@@ -2006,7 +2006,7 @@ function Ke() {
|
|
|
2006
2006
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2007
2007
|
*/
|
|
2008
2008
|
ease: [{
|
|
2009
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2009
|
+
ease: ["linear", "in", "out", "in-out", N]
|
|
2010
2010
|
}],
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Transition Delay
|
|
@@ -2020,7 +2020,7 @@ function Ke() {
|
|
|
2020
2020
|
* @see https://tailwindcss.com/docs/animation
|
|
2021
2021
|
*/
|
|
2022
2022
|
animate: [{
|
|
2023
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2023
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", N]
|
|
2024
2024
|
}],
|
|
2025
2025
|
// Transforms
|
|
2026
2026
|
/**
|
|
@@ -2056,7 +2056,7 @@ function Ke() {
|
|
|
2056
2056
|
* @see https://tailwindcss.com/docs/rotate
|
|
2057
2057
|
*/
|
|
2058
2058
|
rotate: [{
|
|
2059
|
-
rotate: [ue,
|
|
2059
|
+
rotate: [ue, N]
|
|
2060
2060
|
}],
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Translate X
|
|
@@ -2077,21 +2077,21 @@ function Ke() {
|
|
|
2077
2077
|
* @see https://tailwindcss.com/docs/skew
|
|
2078
2078
|
*/
|
|
2079
2079
|
"skew-x": [{
|
|
2080
|
-
"skew-x": [
|
|
2080
|
+
"skew-x": [f]
|
|
2081
2081
|
}],
|
|
2082
2082
|
/**
|
|
2083
2083
|
* Skew Y
|
|
2084
2084
|
* @see https://tailwindcss.com/docs/skew
|
|
2085
2085
|
*/
|
|
2086
2086
|
"skew-y": [{
|
|
2087
|
-
"skew-y": [
|
|
2087
|
+
"skew-y": [f]
|
|
2088
2088
|
}],
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Transform Origin
|
|
2091
2091
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2092
2092
|
*/
|
|
2093
2093
|
"transform-origin": [{
|
|
2094
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2094
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
|
|
2095
2095
|
}],
|
|
2096
2096
|
// Interactivity
|
|
2097
2097
|
/**
|
|
@@ -2111,7 +2111,7 @@ function Ke() {
|
|
|
2111
2111
|
* @see https://tailwindcss.com/docs/cursor
|
|
2112
2112
|
*/
|
|
2113
2113
|
cursor: [{
|
|
2114
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2114
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N]
|
|
2115
2115
|
}],
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Caret Color
|
|
@@ -2316,7 +2316,7 @@ function Ke() {
|
|
|
2316
2316
|
* @see https://tailwindcss.com/docs/will-change
|
|
2317
2317
|
*/
|
|
2318
2318
|
"will-change": [{
|
|
2319
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2319
|
+
"will-change": ["auto", "scroll", "contents", "transform", N]
|
|
2320
2320
|
}],
|
|
2321
2321
|
// SVG
|
|
2322
2322
|
/**
|
|
@@ -2331,7 +2331,7 @@ function Ke() {
|
|
|
2331
2331
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2332
2332
|
*/
|
|
2333
2333
|
"stroke-w": [{
|
|
2334
|
-
stroke: [j,
|
|
2334
|
+
stroke: [j, he]
|
|
2335
2335
|
}],
|
|
2336
2336
|
/**
|
|
2337
2337
|
* Stroke
|
|
@@ -2425,23 +2425,23 @@ 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), B = 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
|
-
mlb: [{ mlb:
|
|
2438
|
-
mli: [{ mli:
|
|
2439
|
-
pbe: [{ pbe:
|
|
2440
|
-
pbs: [{ pbs:
|
|
2441
|
-
pie: [{ pie:
|
|
2442
|
-
pis: [{ pis:
|
|
2443
|
-
plb: [{ plb:
|
|
2444
|
-
pli: [{ pli:
|
|
2433
|
+
mbe: [{ mbe: B }],
|
|
2434
|
+
mbs: [{ mbs: B }],
|
|
2435
|
+
mie: [{ mie: B }],
|
|
2436
|
+
mis: [{ mis: B }],
|
|
2437
|
+
mlb: [{ mlb: B }],
|
|
2438
|
+
mli: [{ mli: B }],
|
|
2439
|
+
pbe: [{ pbe: B }],
|
|
2440
|
+
pbs: [{ pbs: B }],
|
|
2441
|
+
pie: [{ pie: B }],
|
|
2442
|
+
pis: [{ pis: B }],
|
|
2443
|
+
plb: [{ plb: B }],
|
|
2444
|
+
pli: [{ pli: B }]
|
|
2445
2445
|
},
|
|
2446
2446
|
conflictingClassGroups: {
|
|
2447
2447
|
m: ["mie", "mis", "mbe", "mbs", "mlb", "mli"],
|
|
@@ -2482,13 +2482,13 @@ const Pe = (e) => {
|
|
|
2482
2482
|
borderColor: t,
|
|
2483
2483
|
borderRadius: r,
|
|
2484
2484
|
borderWidth: n,
|
|
2485
|
-
className:
|
|
2486
|
-
component:
|
|
2485
|
+
className: a,
|
|
2486
|
+
component: o = "div",
|
|
2487
2487
|
color: i,
|
|
2488
2488
|
elevation: s = 0,
|
|
2489
|
-
height:
|
|
2490
|
-
margin:
|
|
2491
|
-
padding:
|
|
2489
|
+
height: c,
|
|
2490
|
+
margin: d,
|
|
2491
|
+
padding: u,
|
|
2492
2492
|
width: g,
|
|
2493
2493
|
...v
|
|
2494
2494
|
}, m) => {
|
|
@@ -2499,26 +2499,26 @@ const Pe = (e) => {
|
|
|
2499
2499
|
4: "shadow-light-4 dark:shadow-dark-4",
|
|
2500
2500
|
8: "shadow-light-8 dark:shadow-dark-8",
|
|
2501
2501
|
12: "shadow-light-12 dark:shadow-dark-12"
|
|
2502
|
-
}, w = Pe(i), x = Pe(e), I = Pe(t),
|
|
2502
|
+
}, w = Pe(i), x = Pe(e), I = Pe(t), C = Xe(u), P = Xe(d), S = b(
|
|
2503
2503
|
r,
|
|
2504
2504
|
n,
|
|
2505
2505
|
p[s],
|
|
2506
2506
|
P,
|
|
2507
|
-
|
|
2507
|
+
C,
|
|
2508
2508
|
w,
|
|
2509
2509
|
x,
|
|
2510
2510
|
I,
|
|
2511
2511
|
g,
|
|
2512
|
-
|
|
2513
|
-
|
|
2512
|
+
c,
|
|
2513
|
+
a
|
|
2514
2514
|
);
|
|
2515
|
-
return V(
|
|
2515
|
+
return V(o, {
|
|
2516
2516
|
className: S,
|
|
2517
2517
|
...v,
|
|
2518
2518
|
ref: m
|
|
2519
2519
|
});
|
|
2520
|
-
},
|
|
2521
|
-
|
|
2520
|
+
}, z = k(_r);
|
|
2521
|
+
z.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);
|
|
@@ -2535,27 +2535,27 @@ const Zr = ({
|
|
|
2535
2535
|
disabled: t,
|
|
2536
2536
|
endIcon: r,
|
|
2537
2537
|
error: n,
|
|
2538
|
-
hint:
|
|
2539
|
-
label:
|
|
2538
|
+
hint: a,
|
|
2539
|
+
label: o,
|
|
2540
2540
|
name: i,
|
|
2541
2541
|
onChange: s,
|
|
2542
|
-
placeholder:
|
|
2543
|
-
startIcon:
|
|
2544
|
-
value:
|
|
2542
|
+
placeholder: c,
|
|
2543
|
+
startIcon: d,
|
|
2544
|
+
value: u,
|
|
2545
2545
|
...g
|
|
2546
2546
|
}, v) => {
|
|
2547
|
-
const m = F(null), p = Ge({ forwardedRef: v, innerRef: m }), [w, x] =
|
|
2547
|
+
const m = F(null), p = Ge({ forwardedRef: v, innerRef: m }), [w, x] = U(Boolean(u)), [I, C] = U(!1);
|
|
2548
2548
|
oe(() => {
|
|
2549
|
-
var
|
|
2550
|
-
x(Boolean((
|
|
2551
|
-
}, [
|
|
2552
|
-
const P = (
|
|
2549
|
+
var f;
|
|
2550
|
+
x(Boolean((f = p == null ? void 0 : p.current) == null ? void 0 : f.value) || Boolean(u || c));
|
|
2551
|
+
}, [u, c, p]);
|
|
2552
|
+
const P = (f) => {
|
|
2553
2553
|
var Z;
|
|
2554
|
-
x(Boolean((Z = p == null ? void 0 : p.current) == null ? void 0 : Z.value) || Boolean(
|
|
2554
|
+
x(Boolean((Z = p == null ? void 0 : p.current) == null ? void 0 : Z.value) || Boolean(u || c)), s && s(f);
|
|
2555
2555
|
}, S = () => {
|
|
2556
|
-
t || !p.current || (p.current.focus(),
|
|
2556
|
+
t || !p.current || (p.current.focus(), C(!0));
|
|
2557
2557
|
}, h = () => {
|
|
2558
|
-
|
|
2558
|
+
C(!1);
|
|
2559
2559
|
};
|
|
2560
2560
|
return /* @__PURE__ */ y("div", { className: b(["flex items-start flex-col gap-0.5", e]), children: [
|
|
2561
2561
|
/* @__PURE__ */ y(
|
|
@@ -2569,37 +2569,37 @@ const Zr = ({
|
|
|
2569
2569
|
onClick: S,
|
|
2570
2570
|
onFocus: S,
|
|
2571
2571
|
children: [
|
|
2572
|
-
|
|
2572
|
+
d ? /* @__PURE__ */ l("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: d }) : null,
|
|
2573
2573
|
/* @__PURE__ */ y("span", { className: "relative flex flex-1 overflow-hidden", children: [
|
|
2574
2574
|
/* @__PURE__ */ l(
|
|
2575
2575
|
"input",
|
|
2576
2576
|
{
|
|
2577
2577
|
className: b([
|
|
2578
2578
|
"self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",
|
|
2579
|
-
|
|
2579
|
+
d ? "pis-1" : "pis-2",
|
|
2580
2580
|
r ? "pie-1" : "pie-2",
|
|
2581
|
-
|
|
2581
|
+
o ? "pbs-3 pbe-1" : "pbs-2 pbe-2"
|
|
2582
2582
|
]),
|
|
2583
2583
|
disabled: t,
|
|
2584
2584
|
id: i,
|
|
2585
2585
|
onBlur: h,
|
|
2586
2586
|
onChange: P,
|
|
2587
|
-
placeholder:
|
|
2587
|
+
placeholder: c,
|
|
2588
2588
|
ref: p,
|
|
2589
|
-
value:
|
|
2589
|
+
value: u,
|
|
2590
2590
|
...g
|
|
2591
2591
|
}
|
|
2592
2592
|
),
|
|
2593
|
-
|
|
2593
|
+
o ? /* @__PURE__ */ l(
|
|
2594
2594
|
"label",
|
|
2595
2595
|
{
|
|
2596
2596
|
className: b(
|
|
2597
2597
|
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
|
|
2598
|
-
|
|
2598
|
+
d ? "inline-start-1" : "inline-start-2",
|
|
2599
2599
|
I || w ? "text-13 -translate-y-1.5" : "text-16"
|
|
2600
2600
|
),
|
|
2601
2601
|
htmlFor: i,
|
|
2602
|
-
children:
|
|
2602
|
+
children: o
|
|
2603
2603
|
}
|
|
2604
2604
|
) : null
|
|
2605
2605
|
] }),
|
|
@@ -2607,12 +2607,12 @@ const Zr = ({
|
|
|
2607
2607
|
]
|
|
2608
2608
|
}
|
|
2609
2609
|
),
|
|
2610
|
-
n ||
|
|
2610
|
+
n || a ? /* @__PURE__ */ y("div", { className: "flex flex-col", children: [
|
|
2611
2611
|
n ? /* @__PURE__ */ l("span", { className: "text-alert dark:text-alert-dark", children: n }) : null,
|
|
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
|
-
}, Et =
|
|
2615
|
+
}, Et = k(Zr);
|
|
2616
2616
|
Et.displayName = "Input";
|
|
2617
2617
|
const Kr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
|
|
2618
2618
|
"ul",
|
|
@@ -2622,10 +2622,10 @@ const Kr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ l(
|
|
|
2622
2622
|
...r,
|
|
2623
2623
|
children: e
|
|
2624
2624
|
}
|
|
2625
|
-
), Pt =
|
|
2625
|
+
), Pt = k(Kr);
|
|
2626
2626
|
Pt.displayName = "List";
|
|
2627
|
-
const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ...
|
|
2628
|
-
const
|
|
2627
|
+
const Xr = ({ children: e, className: t, disabled: r, divider: n, key: a, onClick: o, ...i }, s) => {
|
|
2628
|
+
const c = (d) => {
|
|
2629
2629
|
o && (d.code === "Enter" || d.key === " ") && o();
|
|
2630
2630
|
};
|
|
2631
2631
|
return /* @__PURE__ */ l(
|
|
@@ -2636,8 +2636,8 @@ const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ..
|
|
|
2636
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,
|
|
2637
2637
|
t
|
|
2638
2638
|
]),
|
|
2639
|
-
ref:
|
|
2640
|
-
...
|
|
2639
|
+
ref: s,
|
|
2640
|
+
...i,
|
|
2641
2641
|
children: /* @__PURE__ */ l(
|
|
2642
2642
|
"div",
|
|
2643
2643
|
{
|
|
@@ -2647,49 +2647,50 @@ const Xr = ({ children: e, className: t, disabled: r, divider: n, onClick: o, ..
|
|
|
2647
2647
|
r ? "pointer-events-none" : ""
|
|
2648
2648
|
]),
|
|
2649
2649
|
onClick: o,
|
|
2650
|
-
onKeyUp:
|
|
2650
|
+
onKeyUp: c,
|
|
2651
2651
|
onTouchEnd: o,
|
|
2652
2652
|
tabIndex: o ? 0 : void 0,
|
|
2653
2653
|
children: e
|
|
2654
2654
|
}
|
|
2655
2655
|
)
|
|
2656
|
-
}
|
|
2656
|
+
},
|
|
2657
|
+
a
|
|
2657
2658
|
);
|
|
2658
|
-
}, Te =
|
|
2659
|
+
}, Te = k(Xr);
|
|
2659
2660
|
Te.displayName = "ListItem";
|
|
2660
2661
|
const Jr = ({
|
|
2661
2662
|
label: e,
|
|
2662
2663
|
name: t,
|
|
2663
2664
|
options: r,
|
|
2664
2665
|
disabled: n = !1,
|
|
2665
|
-
error:
|
|
2666
|
-
hint:
|
|
2666
|
+
error: a,
|
|
2667
|
+
hint: o,
|
|
2667
2668
|
noOptionsText: i,
|
|
2668
2669
|
onChange: s,
|
|
2669
|
-
onSelect:
|
|
2670
|
-
value:
|
|
2671
|
-
...
|
|
2670
|
+
onSelect: c,
|
|
2671
|
+
value: d,
|
|
2672
|
+
...u
|
|
2672
2673
|
}, g) => {
|
|
2673
|
-
const v = F(null), [m, p] =
|
|
2674
|
+
const v = F(null), [m, p] = U(d), [w, x] = U(!1), I = (h) => {
|
|
2674
2675
|
w || x(!0), !h.length && m && p(null), s(h);
|
|
2675
|
-
},
|
|
2676
|
-
|
|
2677
|
-
}, P =
|
|
2676
|
+
}, C = (h) => {
|
|
2677
|
+
c(h), s(h.label), p(h.label), x(!1);
|
|
2678
|
+
}, P = ye(
|
|
2678
2679
|
(h) => {
|
|
2679
|
-
v.current && !v.current.contains(h.target) && (!m &&
|
|
2680
|
+
v.current && !v.current.contains(h.target) && (!m && d && s(""), m && d && s(m), x(!1));
|
|
2680
2681
|
},
|
|
2681
|
-
[s, m,
|
|
2682
|
-
), S = re(() => r.filter((h) => h.label.toLowerCase().includes(
|
|
2682
|
+
[s, m, d]
|
|
2683
|
+
), S = re(() => r.filter((h) => h.label.toLowerCase().includes(d.toLowerCase())) ?? [], [r, d]);
|
|
2683
2684
|
return oe(() => (document.addEventListener("click", P, !0), () => {
|
|
2684
2685
|
document.removeEventListener("click", P, !0);
|
|
2685
|
-
}), [P]), /* @__PURE__ */ y(
|
|
2686
|
+
}), [P]), /* @__PURE__ */ y(z, { className: "relative", ref: v, children: [
|
|
2686
2687
|
/* @__PURE__ */ l(
|
|
2687
2688
|
Et,
|
|
2688
2689
|
{
|
|
2689
2690
|
disabled: n,
|
|
2690
2691
|
endIcon: /* @__PURE__ */ l(yt, { size: "24" }),
|
|
2691
|
-
error:
|
|
2692
|
-
hint:
|
|
2692
|
+
error: a,
|
|
2693
|
+
hint: o,
|
|
2693
2694
|
label: e,
|
|
2694
2695
|
name: t ?? e,
|
|
2695
2696
|
onChange: (h) => {
|
|
@@ -2697,13 +2698,13 @@ const Jr = ({
|
|
|
2697
2698
|
},
|
|
2698
2699
|
onFocus: () => x(!0),
|
|
2699
2700
|
ref: g,
|
|
2700
|
-
value:
|
|
2701
|
-
...
|
|
2701
|
+
value: d ?? "",
|
|
2702
|
+
...u
|
|
2702
2703
|
}
|
|
2703
2704
|
),
|
|
2704
|
-
w ? /* @__PURE__ */ l(
|
|
2705
|
+
w ? /* @__PURE__ */ l(z, { 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, f) => /* @__PURE__ */ l(Te, { onClick: () => C(h), children: h.label }, `${h.value}-${f}`)) : /* @__PURE__ */ l(Te, { children: i }, "no-options") }) }) : null
|
|
2705
2706
|
] });
|
|
2706
|
-
}, Qr =
|
|
2707
|
+
}, Qr = k(Jr);
|
|
2707
2708
|
Qr.displayName = "AutocompleteSelect";
|
|
2708
2709
|
const Je = {
|
|
2709
2710
|
base: "font-bold",
|
|
@@ -2713,7 +2714,7 @@ const Je = {
|
|
|
2713
2714
|
lg: "text-28 md:text-33 leading-comfy",
|
|
2714
2715
|
xl: "text-33 md:text-40 leading-comfy",
|
|
2715
2716
|
xxl: "text-33 md:text-57 leading-comfy"
|
|
2716
|
-
},
|
|
2717
|
+
}, xe = {
|
|
2717
2718
|
base: "font-medium leading-default",
|
|
2718
2719
|
default: "text-16 md:text-19",
|
|
2719
2720
|
xs: "text-11",
|
|
@@ -2722,7 +2723,7 @@ const Je = {
|
|
|
2722
2723
|
lg: "text-19",
|
|
2723
2724
|
xl: "text-23 md:text-28 tracking-tight"
|
|
2724
2725
|
}, Le = {
|
|
2725
|
-
...
|
|
2726
|
+
...xe,
|
|
2726
2727
|
base: "font-regular leading-loose",
|
|
2727
2728
|
xl: "text-23 md:text-28"
|
|
2728
2729
|
}, Qe = {
|
|
@@ -2757,7 +2758,7 @@ const Je = {
|
|
|
2757
2758
|
case "headline":
|
|
2758
2759
|
return b(Je.base, Je[e]);
|
|
2759
2760
|
case "label":
|
|
2760
|
-
return b(
|
|
2761
|
+
return b(xe.base, e ? xe[e] : xe.default);
|
|
2761
2762
|
case "paragraph":
|
|
2762
2763
|
return b(Le.base, e ? Le[e] : Le.default);
|
|
2763
2764
|
case "eyebrow":
|
|
@@ -2776,74 +2777,74 @@ const Je = {
|
|
|
2776
2777
|
}, Mt = {
|
|
2777
2778
|
primary: "font-aktiv-grotesk",
|
|
2778
2779
|
secondary: "font-untitled-serif"
|
|
2779
|
-
}, Yr = ({ className: e, component: t = "p", children: r, font: n = "primary", size:
|
|
2780
|
-
const
|
|
2780
|
+
}, Yr = ({ className: e, component: t = "p", children: r, font: n = "primary", size: a, variant: o, ...i }, s) => {
|
|
2781
|
+
const c = "text-text-light dark:text-text-dark", d = Mt[n], u = Lt({ size: a, variant: o });
|
|
2781
2782
|
return /* @__PURE__ */ l(
|
|
2782
|
-
|
|
2783
|
+
z,
|
|
2783
2784
|
{
|
|
2784
|
-
className: b(
|
|
2785
|
+
className: b(c, u, d, e),
|
|
2785
2786
|
component: t,
|
|
2786
2787
|
ref: s,
|
|
2787
2788
|
...i,
|
|
2788
2789
|
children: r
|
|
2789
2790
|
}
|
|
2790
2791
|
);
|
|
2791
|
-
}, D =
|
|
2792
|
+
}, D = k(Yr);
|
|
2792
2793
|
D.displayName = "Text";
|
|
2793
2794
|
const en = ({
|
|
2794
2795
|
children: e,
|
|
2795
2796
|
component: t = "a",
|
|
2796
2797
|
className: r,
|
|
2797
2798
|
disabled: n,
|
|
2798
|
-
active:
|
|
2799
|
-
...
|
|
2799
|
+
active: a,
|
|
2800
|
+
...o
|
|
2800
2801
|
}) => /* @__PURE__ */ l(
|
|
2801
2802
|
D,
|
|
2802
2803
|
{
|
|
2803
2804
|
className: b([
|
|
2804
2805
|
"font-bold text-gray-50 leading-default whitespace-nowrap",
|
|
2805
|
-
|
|
2806
|
+
a ? "underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose" : "text-13",
|
|
2806
2807
|
n ? "cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark" : "",
|
|
2807
2808
|
r
|
|
2808
2809
|
]),
|
|
2809
2810
|
component: t,
|
|
2810
|
-
...
|
|
2811
|
+
...o,
|
|
2811
2812
|
children: e
|
|
2812
2813
|
}
|
|
2813
2814
|
);
|
|
2814
2815
|
en.displayName = "Breadcrumb";
|
|
2815
|
-
var tn = Object.defineProperty, rn = Object.defineProperties, nn = Object.getOwnPropertyDescriptors,
|
|
2816
|
+
var tn = Object.defineProperty, rn = Object.defineProperties, nn = Object.getOwnPropertyDescriptors, ke = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, on = (e, t) => {
|
|
2816
2817
|
for (var r in t || (t = {}))
|
|
2817
2818
|
Tt.call(t, r) && nt(e, r, t[r]);
|
|
2818
|
-
if (
|
|
2819
|
-
for (var r of
|
|
2819
|
+
if (ke)
|
|
2820
|
+
for (var r of ke(t))
|
|
2820
2821
|
zt.call(t, r) && nt(e, r, t[r]);
|
|
2821
2822
|
return e;
|
|
2822
2823
|
}, an = (e, t) => rn(e, nn(t)), sn = (e, t) => {
|
|
2823
2824
|
var r = {};
|
|
2824
2825
|
for (var n in e)
|
|
2825
2826
|
Tt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2826
|
-
if (e != null &&
|
|
2827
|
-
for (var n of
|
|
2827
|
+
if (e != null && ke)
|
|
2828
|
+
for (var n of ke(e))
|
|
2828
2829
|
t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
|
|
2829
2830
|
return r;
|
|
2830
2831
|
}, ln = (e, t) => {
|
|
2831
|
-
var r = e, { title: n, titleId:
|
|
2832
|
-
return y("svg", an(on({ width:
|
|
2833
|
-
}, dn =
|
|
2832
|
+
var r = e, { title: n, titleId: a } = r, o = sn(r, ["title", "titleId"]);
|
|
2833
|
+
return y("svg", an(on({ 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" })] }));
|
|
2834
|
+
}, dn = k(ln), cn = dn;
|
|
2834
2835
|
const un = ({ children: e, className: t, ...r }, n) => {
|
|
2835
|
-
const
|
|
2836
|
+
const a = Yt.toArray(e), o = a.findIndex((i) => {
|
|
2836
2837
|
var s;
|
|
2837
2838
|
return er(i) ? (s = i == null ? void 0 : i.props) == null ? void 0 : s.active : !1;
|
|
2838
2839
|
});
|
|
2839
|
-
return /* @__PURE__ */ l("div", { className: b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180", t]), ref: n, ...r, children:
|
|
2840
|
+
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__ */ y("div", { className: "flex items-center", children: [
|
|
2840
2841
|
s ? /* @__PURE__ */ l(
|
|
2841
2842
|
cn,
|
|
2842
2843
|
{
|
|
2843
2844
|
className: b([
|
|
2844
2845
|
"mx-1",
|
|
2845
|
-
s >
|
|
2846
|
-
s <=
|
|
2846
|
+
s > o && "text-gray-15",
|
|
2847
|
+
s <= o && "text-gray-25"
|
|
2847
2848
|
]),
|
|
2848
2849
|
size: "15"
|
|
2849
2850
|
}
|
|
@@ -2852,15 +2853,15 @@ const un = ({ children: e, className: t, ...r }, n) => {
|
|
|
2852
2853
|
...i.props,
|
|
2853
2854
|
className: b([
|
|
2854
2855
|
i.props.className ?? "",
|
|
2855
|
-
s <
|
|
2856
|
-
s >
|
|
2856
|
+
s < o ? "bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer" : "px-0.5",
|
|
2857
|
+
s > o && "[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium",
|
|
2857
2858
|
"rtl:rotate-180"
|
|
2858
2859
|
])
|
|
2859
2860
|
}) : i
|
|
2860
2861
|
] }, `${s}-${i.toString()}`)) });
|
|
2861
|
-
}, fn =
|
|
2862
|
+
}, fn = k(un);
|
|
2862
2863
|
fn.displayName = "Breadcrumbs";
|
|
2863
|
-
const
|
|
2864
|
+
const ia = {
|
|
2864
2865
|
lg: "lg",
|
|
2865
2866
|
md: "md",
|
|
2866
2867
|
sm: "sm",
|
|
@@ -2893,7 +2894,7 @@ const na = {
|
|
|
2893
2894
|
xs: "rounded-3 text-11 px-2 py-1"
|
|
2894
2895
|
};
|
|
2895
2896
|
}
|
|
2896
|
-
},
|
|
2897
|
+
}, $e = {
|
|
2897
2898
|
lg: 30,
|
|
2898
2899
|
md: 24,
|
|
2899
2900
|
sm: 18,
|
|
@@ -2916,31 +2917,31 @@ const na = {
|
|
|
2916
2917
|
children: t,
|
|
2917
2918
|
disabled: r,
|
|
2918
2919
|
icon: n,
|
|
2919
|
-
iconAction:
|
|
2920
|
-
iconPosition:
|
|
2920
|
+
iconAction: a,
|
|
2921
|
+
iconPosition: o,
|
|
2921
2922
|
size: i = "md",
|
|
2922
2923
|
type: s = "button",
|
|
2923
|
-
variant:
|
|
2924
|
-
...
|
|
2925
|
-
},
|
|
2926
|
-
const g = Rt(n !== void 0 ?
|
|
2927
|
-
return /* @__PURE__ */ y("button", { className: v, disabled: r, ref:
|
|
2928
|
-
|
|
2924
|
+
variant: c = "primary",
|
|
2925
|
+
...d
|
|
2926
|
+
}, u) => {
|
|
2927
|
+
const g = Rt(n !== void 0 ? o : void 0), v = b(Bt, Ee[c], g[i], e);
|
|
2928
|
+
return /* @__PURE__ */ y("button", { className: v, disabled: r, ref: u, type: s, ...d, children: [
|
|
2929
|
+
o === "start" && n !== void 0 ? V(n, {
|
|
2929
2930
|
className: "mie-0.5",
|
|
2930
|
-
onClick:
|
|
2931
|
-
size:
|
|
2931
|
+
onClick: a ?? void 0,
|
|
2932
|
+
size: $e[i]
|
|
2932
2933
|
}) : null,
|
|
2933
2934
|
/* @__PURE__ */ l("span", { className: "truncate", children: t }),
|
|
2934
|
-
|
|
2935
|
+
o === "end" && n !== void 0 ? V(n, {
|
|
2935
2936
|
className: "mis-0.5",
|
|
2936
|
-
onClick:
|
|
2937
|
-
size:
|
|
2937
|
+
onClick: a ?? void 0,
|
|
2938
|
+
size: $e[i]
|
|
2938
2939
|
}) : null
|
|
2939
2940
|
] });
|
|
2940
|
-
},
|
|
2941
|
-
|
|
2942
|
-
const bn = ({ error: e, className: t, label: r, disabled: n, name:
|
|
2943
|
-
const s = tr(),
|
|
2941
|
+
}, Se = k(pn);
|
|
2942
|
+
Se.displayName = "Button";
|
|
2943
|
+
const bn = ({ error: e, className: t, label: r, disabled: n, name: a, ...o }, i) => {
|
|
2944
|
+
const s = tr(), c = re(() => `checkbox-label-${s}`, [s]);
|
|
2944
2945
|
return /* @__PURE__ */ y(
|
|
2945
2946
|
"div",
|
|
2946
2947
|
{
|
|
@@ -2952,42 +2953,42 @@ const bn = ({ error: e, className: t, label: r, disabled: n, name: o, ...a }, i)
|
|
|
2952
2953
|
/* @__PURE__ */ l(
|
|
2953
2954
|
"input",
|
|
2954
2955
|
{
|
|
2955
|
-
"aria-labelledby":
|
|
2956
|
+
"aria-labelledby": c,
|
|
2956
2957
|
className: "w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",
|
|
2957
2958
|
disabled: n,
|
|
2958
|
-
id:
|
|
2959
|
-
name:
|
|
2959
|
+
id: a,
|
|
2960
|
+
name: a,
|
|
2960
2961
|
ref: i,
|
|
2961
2962
|
type: "checkbox",
|
|
2962
|
-
...
|
|
2963
|
+
...o
|
|
2963
2964
|
}
|
|
2964
2965
|
),
|
|
2965
|
-
r ? /* @__PURE__ */ l("div", { className: "peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark", children: /* @__PURE__ */ l("label", { htmlFor:
|
|
2966
|
+
r ? /* @__PURE__ */ l("div", { className: "peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark", children: /* @__PURE__ */ l("label", { htmlFor: a, id: c, children: r }) }) : null,
|
|
2966
2967
|
e ? /* @__PURE__ */ l("div", { className: "text-alert-light dark:text-alert-dark text-13", children: e }) : null
|
|
2967
2968
|
]
|
|
2968
2969
|
}
|
|
2969
2970
|
);
|
|
2970
|
-
}, gn =
|
|
2971
|
+
}, gn = k(bn);
|
|
2971
2972
|
gn.displayName = "Checkbox";
|
|
2972
|
-
var mn = Object.defineProperty, hn = Object.defineProperties, vn = Object.getOwnPropertyDescriptors,
|
|
2973
|
+
var mn = Object.defineProperty, hn = Object.defineProperties, vn = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, At = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xn = (e, t) => {
|
|
2973
2974
|
for (var r in t || (t = {}))
|
|
2974
2975
|
jt.call(t, r) && ot(e, r, t[r]);
|
|
2975
|
-
if (
|
|
2976
|
-
for (var r of
|
|
2976
|
+
if (Ce)
|
|
2977
|
+
for (var r of Ce(t))
|
|
2977
2978
|
At.call(t, r) && ot(e, r, t[r]);
|
|
2978
2979
|
return e;
|
|
2979
2980
|
}, yn = (e, t) => hn(e, vn(t)), wn = (e, t) => {
|
|
2980
2981
|
var r = {};
|
|
2981
2982
|
for (var n in e)
|
|
2982
2983
|
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2983
|
-
if (e != null &&
|
|
2984
|
-
for (var n of
|
|
2984
|
+
if (e != null && Ce)
|
|
2985
|
+
for (var n of Ce(e))
|
|
2985
2986
|
t.indexOf(n) < 0 && At.call(e, n) && (r[n] = e[n]);
|
|
2986
2987
|
return r;
|
|
2987
2988
|
}, kn = (e, t) => {
|
|
2988
|
-
var r = e, { title: n, titleId:
|
|
2989
|
-
return y("svg", yn(xn({ width:
|
|
2990
|
-
}, $n =
|
|
2989
|
+
var r = e, { title: n, titleId: a } = r, o = wn(r, ["title", "titleId"]);
|
|
2990
|
+
return y("svg", yn(xn({ 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" })] }));
|
|
2991
|
+
}, $n = k(kn), Sn = $n;
|
|
2991
2992
|
const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
2992
2993
|
const r = F(null);
|
|
2993
2994
|
return oe(() => {
|
|
@@ -2995,25 +2996,25 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
2995
2996
|
const n = r.current.querySelectorAll(
|
|
2996
2997
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2997
2998
|
);
|
|
2998
|
-
let
|
|
2999
|
-
const
|
|
3000
|
-
if (
|
|
3001
|
-
if (
|
|
3002
|
-
if (document.activeElement ===
|
|
3003
|
-
|
|
2999
|
+
let a = document.activeElement;
|
|
3000
|
+
const o = n[0], i = n[n.length - 1], s = (u) => {
|
|
3001
|
+
if (u.key === "Tab") {
|
|
3002
|
+
if (u.shiftKey) {
|
|
3003
|
+
if (document.activeElement === o)
|
|
3004
|
+
u.preventDefault(), i.focus(), a = i;
|
|
3004
3005
|
else
|
|
3005
3006
|
for (let g = 0; g < n.length; g++)
|
|
3006
3007
|
if (n[g] === document.activeElement) {
|
|
3007
|
-
|
|
3008
|
+
a = n[g - 1];
|
|
3008
3009
|
break;
|
|
3009
3010
|
}
|
|
3010
|
-
} else if (!
|
|
3011
|
+
} else if (!u.shiftKey) {
|
|
3011
3012
|
if (document.activeElement === i)
|
|
3012
|
-
|
|
3013
|
+
u.preventDefault(), o.focus(), a = o;
|
|
3013
3014
|
else
|
|
3014
3015
|
for (let g = 0; g < n.length; g++)
|
|
3015
3016
|
if (n[g] === document.activeElement) {
|
|
3016
|
-
|
|
3017
|
+
a = n[g + 1];
|
|
3017
3018
|
break;
|
|
3018
3019
|
}
|
|
3019
3020
|
}
|
|
@@ -3021,67 +3022,67 @@ const Wt = ({ children: e, autoFocus: t = !0 }) => {
|
|
|
3021
3022
|
};
|
|
3022
3023
|
t && (() => {
|
|
3023
3024
|
if (r.current) {
|
|
3024
|
-
const
|
|
3025
|
+
const u = r.current.querySelector(
|
|
3025
3026
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3026
3027
|
);
|
|
3027
|
-
|
|
3028
|
+
u && u.focus();
|
|
3028
3029
|
}
|
|
3029
3030
|
})();
|
|
3030
|
-
const
|
|
3031
|
-
r.current && !r.current.contains(
|
|
3031
|
+
const d = (u) => {
|
|
3032
|
+
r.current && !r.current.contains(u.target) && a.focus();
|
|
3032
3033
|
};
|
|
3033
|
-
return document.addEventListener("keydown", s), document.addEventListener("click",
|
|
3034
|
-
document.removeEventListener("keydown", s), document.removeEventListener("click",
|
|
3034
|
+
return document.addEventListener("keydown", s), document.addEventListener("click", d), () => {
|
|
3035
|
+
document.removeEventListener("keydown", s), document.removeEventListener("click", d);
|
|
3035
3036
|
};
|
|
3036
3037
|
}
|
|
3037
3038
|
}, [t]), /* @__PURE__ */ l("div", { ref: r, children: e });
|
|
3038
|
-
},
|
|
3039
|
+
}, Cn = ({ children: e, className: t, disabled: r, type: n = "button", variant: a = "borderless", ...o }, i) => /* @__PURE__ */ l(
|
|
3039
3040
|
"button",
|
|
3040
3041
|
{
|
|
3041
3042
|
className: b([
|
|
3042
3043
|
"rounded-full inline-flex justify-center items-center p-1",
|
|
3043
3044
|
t,
|
|
3044
|
-
Ee[
|
|
3045
|
+
Ee[a],
|
|
3045
3046
|
r ? "pointer-events-none" : ""
|
|
3046
3047
|
]),
|
|
3047
3048
|
disabled: r,
|
|
3048
3049
|
ref: i,
|
|
3049
3050
|
type: n,
|
|
3050
|
-
...
|
|
3051
|
+
...o,
|
|
3051
3052
|
children: e
|
|
3052
3053
|
}
|
|
3053
|
-
), Gt =
|
|
3054
|
+
), Gt = k(Cn);
|
|
3054
3055
|
Gt.displayName = "IconButton";
|
|
3055
|
-
const
|
|
3056
|
+
const Nn = {
|
|
3056
3057
|
1: "h1",
|
|
3057
3058
|
2: "h2",
|
|
3058
3059
|
3: "h3",
|
|
3059
3060
|
4: "h4"
|
|
3060
|
-
}, On = ({ className: e, children: t, font: r = "primary", level: n = 1, size:
|
|
3061
|
-
const
|
|
3061
|
+
}, On = ({ className: e, children: t, font: r = "primary", level: n = 1, size: a, variant: o, ...i }, s) => {
|
|
3062
|
+
const c = "text-text-light dark:text-text-dark", d = Mt[r], u = Lt({ size: a, variant: o });
|
|
3062
3063
|
return /* @__PURE__ */ l(
|
|
3063
|
-
|
|
3064
|
+
z,
|
|
3064
3065
|
{
|
|
3065
|
-
className: b(
|
|
3066
|
-
component:
|
|
3066
|
+
className: b(c, u, d, e),
|
|
3067
|
+
component: Nn[n],
|
|
3067
3068
|
ref: s,
|
|
3068
3069
|
...i,
|
|
3069
3070
|
children: t
|
|
3070
3071
|
}
|
|
3071
3072
|
);
|
|
3072
|
-
}, Dt =
|
|
3073
|
+
}, Dt = k(On);
|
|
3073
3074
|
Dt.displayName = "Heading";
|
|
3074
3075
|
const In = ({
|
|
3075
3076
|
autoFocus: e = !0,
|
|
3076
3077
|
children: t,
|
|
3077
3078
|
className: r,
|
|
3078
3079
|
confirmationButtons: n,
|
|
3079
|
-
dialogType:
|
|
3080
|
-
heading:
|
|
3080
|
+
dialogType: a = "confirmation",
|
|
3081
|
+
heading: o,
|
|
3081
3082
|
isDismissableOnOutsideClick: i = !0,
|
|
3082
3083
|
onClose: s,
|
|
3083
|
-
...
|
|
3084
|
-
},
|
|
3084
|
+
...c
|
|
3085
|
+
}, d) => (qr(), /* @__PURE__ */ y("div", { className: "flex items-center justify-center w-full h-full z-20 absolute inset-0", children: [
|
|
3085
3086
|
/* @__PURE__ */ l(
|
|
3086
3087
|
"div",
|
|
3087
3088
|
{
|
|
@@ -3096,14 +3097,14 @@ const In = ({
|
|
|
3096
3097
|
{
|
|
3097
3098
|
className: b(
|
|
3098
3099
|
" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",
|
|
3099
|
-
|
|
3100
|
+
a === "confirmation" ? "max-w-[400px]" : "max-w-[700px]",
|
|
3100
3101
|
r
|
|
3101
3102
|
),
|
|
3102
3103
|
open: !0,
|
|
3103
|
-
ref:
|
|
3104
|
-
...
|
|
3104
|
+
ref: d,
|
|
3105
|
+
...c,
|
|
3105
3106
|
children: [
|
|
3106
|
-
|
|
3107
|
+
a === "modal" ? /* @__PURE__ */ l(
|
|
3107
3108
|
Gt,
|
|
3108
3109
|
{
|
|
3109
3110
|
className: "absolute inline-end-2 block-start-2",
|
|
@@ -3112,39 +3113,43 @@ const In = ({
|
|
|
3112
3113
|
children: /* @__PURE__ */ l(Sn, {})
|
|
3113
3114
|
}
|
|
3114
3115
|
) : null,
|
|
3115
|
-
/* @__PURE__ */ l("div", { children:
|
|
3116
|
+
/* @__PURE__ */ l("div", { children: o ? /* @__PURE__ */ l(Dt, { className: "pbe-1", size: "md", variant: "headline", children: o }) : null }),
|
|
3116
3117
|
/* @__PURE__ */ l("div", { children: t }),
|
|
3117
3118
|
/* @__PURE__ */ l("div", { className: "w-full flex justify-end items-center pbs-2", children: n == null ? void 0 : n.map(({ label: g, ...v }, m) => (
|
|
3118
3119
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
3119
|
-
/* @__PURE__ */ l(
|
|
3120
|
+
/* @__PURE__ */ l(Se, { "aria-label": g, size: "sm", variant: "all_caps", ...v, children: g }, `${g}${m}`)
|
|
3120
3121
|
)) })
|
|
3121
3122
|
]
|
|
3122
3123
|
}
|
|
3123
3124
|
) })
|
|
3124
|
-
] })), En =
|
|
3125
|
+
] })), En = k(In);
|
|
3125
3126
|
En.displayName = "Dialog";
|
|
3126
|
-
const
|
|
3127
|
-
|
|
3128
|
-
{
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3127
|
+
const sa = ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { ...t, className: b("w-full border-gray-15 dark:border-gray-30 border-standard", e) });
|
|
3128
|
+
function la({ className: e, height: t, progress: r }) {
|
|
3129
|
+
return /* @__PURE__ */ l("div", { className: b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`, e]), children: /* @__PURE__ */ l(
|
|
3130
|
+
"div",
|
|
3131
|
+
{
|
|
3132
|
+
className: `bg-blue-30 h-${t} ease-in-out duration-300`,
|
|
3133
|
+
style: {
|
|
3134
|
+
transitionProperty: "width",
|
|
3135
|
+
width: `${r}%`
|
|
3136
|
+
}
|
|
3133
3137
|
}
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3138
|
+
) });
|
|
3139
|
+
}
|
|
3140
|
+
const Pn = ({ className: e, children: t, component: r = "a", variant: n = "borderless", ...a }, o) => V(
|
|
3136
3141
|
r,
|
|
3137
3142
|
{
|
|
3138
|
-
...
|
|
3143
|
+
...a,
|
|
3139
3144
|
className: b([
|
|
3140
3145
|
"rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",
|
|
3141
3146
|
Ee[n],
|
|
3142
3147
|
e
|
|
3143
3148
|
]),
|
|
3144
|
-
ref:
|
|
3149
|
+
ref: o
|
|
3145
3150
|
},
|
|
3146
3151
|
t
|
|
3147
|
-
), Ln =
|
|
3152
|
+
), Ln = k(Pn);
|
|
3148
3153
|
Ln.displayName = "IconLinkButton";
|
|
3149
3154
|
var Mn = Object.defineProperty, Tn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, Ne = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, Ht = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rn = (e, t) => {
|
|
3150
3155
|
for (var r in t || (t = {}))
|
|
@@ -3162,79 +3167,79 @@ var Mn = Object.defineProperty, Tn = Object.defineProperties, zn = Object.getOwn
|
|
|
3162
3167
|
t.indexOf(n) < 0 && Ht.call(e, n) && (r[n] = e[n]);
|
|
3163
3168
|
return r;
|
|
3164
3169
|
}, An = (e, t) => {
|
|
3165
|
-
var r = e, { title: n, titleId:
|
|
3166
|
-
return y("svg", Bn(Rn({ width:
|
|
3167
|
-
}, Wn =
|
|
3170
|
+
var r = e, { title: n, titleId: a } = r, o = jn(r, ["title", "titleId"]);
|
|
3171
|
+
return y("svg", Bn(Rn({ 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" })] }));
|
|
3172
|
+
}, Wn = k(An), Gn = Wn, Dn = Object.defineProperty, Fn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Oe = 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) => {
|
|
3168
3173
|
for (var r in t || (t = {}))
|
|
3169
3174
|
Vt.call(t, r) && it(e, r, t[r]);
|
|
3170
|
-
if (
|
|
3171
|
-
for (var r of
|
|
3175
|
+
if (Oe)
|
|
3176
|
+
for (var r of Oe(t))
|
|
3172
3177
|
Ut.call(t, r) && it(e, r, t[r]);
|
|
3173
3178
|
return e;
|
|
3174
3179
|
}, Un = (e, t) => Fn(e, Hn(t)), _n = (e, t) => {
|
|
3175
3180
|
var r = {};
|
|
3176
3181
|
for (var n in e)
|
|
3177
3182
|
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3178
|
-
if (e != null &&
|
|
3179
|
-
for (var n of
|
|
3183
|
+
if (e != null && Oe)
|
|
3184
|
+
for (var n of Oe(e))
|
|
3180
3185
|
t.indexOf(n) < 0 && Ut.call(e, n) && (r[n] = e[n]);
|
|
3181
3186
|
return r;
|
|
3182
3187
|
}, qn = (e, t) => {
|
|
3183
|
-
var r = e, { title: n, titleId:
|
|
3184
|
-
return y("svg", Un(Vn({ width:
|
|
3185
|
-
}, Zn =
|
|
3188
|
+
var r = e, { title: n, titleId: a } = r, o = _n(r, ["title", "titleId"]);
|
|
3189
|
+
return y("svg", Un(Vn({ 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" })] }));
|
|
3190
|
+
}, Zn = k(qn), Kn = Zn, Xn = Object.defineProperty, Jn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, Ie = 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) => {
|
|
3186
3191
|
for (var r in t || (t = {}))
|
|
3187
3192
|
_t.call(t, r) && st(e, r, t[r]);
|
|
3188
|
-
if (
|
|
3189
|
-
for (var r of
|
|
3193
|
+
if (Ie)
|
|
3194
|
+
for (var r of Ie(t))
|
|
3190
3195
|
qt.call(t, r) && st(e, r, t[r]);
|
|
3191
3196
|
return e;
|
|
3192
3197
|
}, eo = (e, t) => Jn(e, Qn(t)), to = (e, t) => {
|
|
3193
3198
|
var r = {};
|
|
3194
3199
|
for (var n in e)
|
|
3195
3200
|
_t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3196
|
-
if (e != null &&
|
|
3197
|
-
for (var n of
|
|
3201
|
+
if (e != null && Ie)
|
|
3202
|
+
for (var n of Ie(e))
|
|
3198
3203
|
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3199
3204
|
return r;
|
|
3200
3205
|
}, ro = (e, t) => {
|
|
3201
|
-
var r = e, { title: n, titleId:
|
|
3202
|
-
return y("svg", eo(Yn({ width:
|
|
3203
|
-
}, no =
|
|
3206
|
+
var r = e, { title: n, titleId: a } = r, o = to(r, ["title", "titleId"]);
|
|
3207
|
+
return y("svg", eo(Yn({ 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" }) })] }));
|
|
3208
|
+
}, no = k(ro), oo = no;
|
|
3204
3209
|
const ao = ({
|
|
3205
3210
|
acceptedFileTypes: e = ["image/*"],
|
|
3206
3211
|
changeImageButtonLabel: t = "Change",
|
|
3207
3212
|
chooseImageButtonLabel: r = "Choose Image",
|
|
3208
3213
|
className: n,
|
|
3209
|
-
disabled:
|
|
3210
|
-
dismissCallback:
|
|
3214
|
+
disabled: a = !1,
|
|
3215
|
+
dismissCallback: o,
|
|
3211
3216
|
dismissImageAriaLabel: i = "Remove Image",
|
|
3212
3217
|
error: s = "",
|
|
3213
|
-
fileMaxKbSizeError:
|
|
3214
|
-
fileMaxSizeError:
|
|
3215
|
-
fileMinSizeError:
|
|
3216
|
-
fileRatioError: g = (E) => `${E} must have a ratio of, ${
|
|
3218
|
+
fileMaxKbSizeError: c = (E, K) => `${E} is too big to upload, the maximum size is ${K}kb. Please try again.`,
|
|
3219
|
+
fileMaxSizeError: d = (E) => `${E} is too large to upload. The maximum dimensions are ${f == null ? void 0 : f.maxWidth}x${f == null ? void 0 : f.maxHeight}. Please try again.`,
|
|
3220
|
+
fileMinSizeError: u = (E) => `${E} is too small to upload. The minimum dimensions are ${f == null ? void 0 : f.minWidth}x${f == null ? void 0 : f.minHeight}. Please try again.`,
|
|
3221
|
+
fileRatioError: g = (E) => `${E} must have a ratio of, ${f == null ? void 0 : f.imageRatio}. Please try again.`,
|
|
3217
3222
|
fileCallback: v,
|
|
3218
3223
|
hero: m = !1,
|
|
3219
3224
|
hint: p,
|
|
3220
3225
|
imageWidth: w = 160,
|
|
3221
3226
|
imageSrc: x,
|
|
3222
3227
|
label: I = "Upload Image",
|
|
3223
|
-
name:
|
|
3228
|
+
name: C = "imageUpload",
|
|
3224
3229
|
onBlur: P,
|
|
3225
3230
|
preProcessing: S,
|
|
3226
3231
|
shape: h = "circle",
|
|
3227
|
-
validation:
|
|
3232
|
+
validation: f
|
|
3228
3233
|
}, Z) => {
|
|
3229
|
-
const E = F(null), K = Ge({ forwardedRef: Z, innerRef: E }), [O, A] =
|
|
3234
|
+
const E = F(null), K = Ge({ forwardedRef: Z, innerRef: E }), [O, A] = U(void 0), [R, L] = U(x ? "resolved" : "idle"), [ie, W] = U(s), ge = () => E != null && E.current ? E.current.click() : void 0, se = re(() => O && R !== "rejected" ? (L("resolved"), O.imageSrc) : x && R === "resolved" ? (L("resolved"), x) : null, [O, x, R]), X = re(() => {
|
|
3230
3235
|
const G = () => {
|
|
3231
|
-
|
|
3236
|
+
o && o(x), A(void 0), L("idle");
|
|
3232
3237
|
};
|
|
3233
|
-
switch (
|
|
3238
|
+
switch (R) {
|
|
3234
3239
|
case "pending":
|
|
3235
|
-
return /* @__PURE__ */ l(
|
|
3240
|
+
return /* @__PURE__ */ l(z, { className: "animate-spin", children: /* @__PURE__ */ l(oo, { className: "text-info-light dark:text-info-dark", "data-testid": "loading spinner", size: "32" }) });
|
|
3236
3241
|
case "resolved":
|
|
3237
|
-
return /* @__PURE__ */ y(
|
|
3242
|
+
return /* @__PURE__ */ y(be, { children: [
|
|
3238
3243
|
/* @__PURE__ */ l(
|
|
3239
3244
|
"img",
|
|
3240
3245
|
{
|
|
@@ -3251,8 +3256,8 @@ const ao = ({
|
|
|
3251
3256
|
width: w
|
|
3252
3257
|
}
|
|
3253
3258
|
),
|
|
3254
|
-
|
|
3255
|
-
|
|
3259
|
+
a ? null : /* @__PURE__ */ l(
|
|
3260
|
+
Se,
|
|
3256
3261
|
{
|
|
3257
3262
|
"aria-label": i,
|
|
3258
3263
|
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",
|
|
@@ -3263,35 +3268,35 @@ const ao = ({
|
|
|
3263
3268
|
)
|
|
3264
3269
|
] });
|
|
3265
3270
|
default:
|
|
3266
|
-
return /* @__PURE__ */ l(
|
|
3271
|
+
return /* @__PURE__ */ l(z, { className: "gray-10 dark:gray-30", children: /* @__PURE__ */ l(Kn, { "data-testid": "placeholder image", size: "32" }) });
|
|
3267
3272
|
}
|
|
3268
3273
|
}, [
|
|
3269
|
-
o,
|
|
3270
3274
|
a,
|
|
3275
|
+
o,
|
|
3271
3276
|
i,
|
|
3272
3277
|
m,
|
|
3273
3278
|
O == null ? void 0 : O.id,
|
|
3274
3279
|
O == null ? void 0 : O.imageSrc,
|
|
3275
3280
|
x,
|
|
3276
|
-
|
|
3281
|
+
R,
|
|
3277
3282
|
w,
|
|
3278
3283
|
se,
|
|
3279
3284
|
h
|
|
3280
|
-
]),
|
|
3285
|
+
]), me = ({ file: G, imageUrl: Q }) => new Promise((Y, ee) => {
|
|
3281
3286
|
var He;
|
|
3282
|
-
const T = new Image(), ce = (He =
|
|
3287
|
+
const T = new Image(), ce = (He = f == null ? void 0 : f.imageRatio) == null ? void 0 : He.split("/");
|
|
3283
3288
|
T.onload = async () => {
|
|
3284
|
-
if (
|
|
3285
|
-
if (
|
|
3289
|
+
if (f)
|
|
3290
|
+
if (f != null && f.maxByteSize && G.size > f.maxByteSize) {
|
|
3286
3291
|
A(void 0), L("rejected");
|
|
3287
|
-
const Jt =
|
|
3292
|
+
const Jt = c(G.name, Math.round(f.maxByteSize / 1e3));
|
|
3288
3293
|
return W(Jt), ee(!1);
|
|
3289
3294
|
} else {
|
|
3290
|
-
if (
|
|
3291
|
-
return A(void 0), L("rejected"), W(
|
|
3292
|
-
if (
|
|
3293
|
-
return A(void 0), L("rejected"), W(
|
|
3294
|
-
if (
|
|
3295
|
+
if (f != null && f.minWidth && T.width < (f == null ? void 0 : f.minWidth) || f != null && f.minHeight && T.height < (f == null ? void 0 : f.minHeight))
|
|
3296
|
+
return A(void 0), L("rejected"), W(u(G.name)), ee(!1);
|
|
3297
|
+
if (f != null && f.maxHeight && T.height > (f == null ? void 0 : f.maxHeight) || f != null && f.maxWidth && T.width > (f == null ? void 0 : f.maxWidth))
|
|
3298
|
+
return A(void 0), L("rejected"), W(d(G.name)), ee(!1);
|
|
3299
|
+
if (f != null && f.imageRatio && (ce == null ? void 0 : ce.length) === 2 && parseInt(ce[0]) / parseInt(ce[1]) !== T.width / T.height)
|
|
3295
3300
|
return A(void 0), L("rejected"), W(g(G.name)), ee(!1);
|
|
3296
3301
|
}
|
|
3297
3302
|
return w = T.width, typeof v == "function" && (console.log("Callback"), await v(G, T)), W(""), Y(!0);
|
|
@@ -3302,7 +3307,7 @@ const ao = ({
|
|
|
3302
3307
|
if (Q) {
|
|
3303
3308
|
const Y = Q[0], ee = URL.createObjectURL(Y);
|
|
3304
3309
|
let T = !0;
|
|
3305
|
-
L("pending"), S && await S(Y), T = await
|
|
3310
|
+
L("pending"), S && await S(Y), T = await me({
|
|
3306
3311
|
file: Y,
|
|
3307
3312
|
imageUrl: ee
|
|
3308
3313
|
}), T && (A({ file: Y, id: Y.name, imageSrc: ee }), L("resolved"));
|
|
@@ -3313,30 +3318,30 @@ const ao = ({
|
|
|
3313
3318
|
}
|
|
3314
3319
|
}, le = b([h === "circle" && !m ? "rounded-full aspect-square" : ""]), M = b([h === "square" && !m ? "aspect-square rounded-1" : ""]), Kt = b([
|
|
3315
3320
|
h === "unset" && !m ? "rounded-1" : "",
|
|
3316
|
-
h === "unset" &&
|
|
3317
|
-
h === "unset" &&
|
|
3321
|
+
h === "unset" && R !== "idle" && !m ? "aspect-auto" : "",
|
|
3322
|
+
h === "unset" && R !== "resolved" && !m ? "aspect-square" : ""
|
|
3318
3323
|
]), Xt = b([m ? "rounded-1 aspect-video" : ""]);
|
|
3319
|
-
return /* @__PURE__ */ y(
|
|
3324
|
+
return /* @__PURE__ */ y(z, { className: b([n]), children: [
|
|
3320
3325
|
/* @__PURE__ */ y(
|
|
3321
|
-
|
|
3326
|
+
z,
|
|
3322
3327
|
{
|
|
3323
3328
|
className: b([
|
|
3324
3329
|
"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",
|
|
3325
3330
|
,
|
|
3326
3331
|
ie ? "border-alert-light dark:border-alert-dark" : "border-tertiary-light dark:border-tertiary-dark",
|
|
3327
|
-
|
|
3332
|
+
a ? "select-none bg-gray-10 dark:bg-gray-40 pointer-events-none" : ""
|
|
3328
3333
|
]),
|
|
3329
3334
|
children: [
|
|
3330
|
-
/* @__PURE__ */ l(D, { className: "pbe-1.5 text-text-muted-light dark:text-text-muted-dark", children: /* @__PURE__ */ l("label", { htmlFor:
|
|
3331
|
-
/* @__PURE__ */ y(
|
|
3335
|
+
/* @__PURE__ */ l(D, { className: "pbe-1.5 text-text-muted-light dark:text-text-muted-dark", children: /* @__PURE__ */ l("label", { htmlFor: C, children: I }) }),
|
|
3336
|
+
/* @__PURE__ */ y(z, { className: "flex relative flex-wrap justify-center md:justify-start", children: [
|
|
3332
3337
|
/* @__PURE__ */ l(
|
|
3333
|
-
|
|
3338
|
+
z,
|
|
3334
3339
|
{
|
|
3335
3340
|
className: b([
|
|
3336
3341
|
"flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
|
|
3337
3342
|
m ? "w-full" : "md:w-1/2 w-4/5",
|
|
3338
|
-
|
|
3339
|
-
|
|
3343
|
+
a ? "border-small border-solid border-tertiary-light" : "",
|
|
3344
|
+
R !== "resolved" ? "bg-gray-10 dark:bg-gray-3" : "",
|
|
3340
3345
|
le,
|
|
3341
3346
|
M,
|
|
3342
3347
|
Kt,
|
|
@@ -3346,17 +3351,17 @@ const ao = ({
|
|
|
3346
3351
|
}
|
|
3347
3352
|
),
|
|
3348
3353
|
/* @__PURE__ */ l(
|
|
3349
|
-
|
|
3354
|
+
Se,
|
|
3350
3355
|
{
|
|
3351
3356
|
className: b([
|
|
3352
3357
|
"my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",
|
|
3353
3358
|
m ? "!mbs-2" : ""
|
|
3354
3359
|
]),
|
|
3355
|
-
disabled:
|
|
3356
|
-
onClick:
|
|
3360
|
+
disabled: a,
|
|
3361
|
+
onClick: ge,
|
|
3357
3362
|
size: "sm",
|
|
3358
3363
|
variant: "stroked",
|
|
3359
|
-
children:
|
|
3364
|
+
children: R === "resolved" ? t : r
|
|
3360
3365
|
}
|
|
3361
3366
|
),
|
|
3362
3367
|
/* @__PURE__ */ l(
|
|
@@ -3364,9 +3369,9 @@ const ao = ({
|
|
|
3364
3369
|
{
|
|
3365
3370
|
accept: e.toString(),
|
|
3366
3371
|
className: "hidden",
|
|
3367
|
-
disabled:
|
|
3368
|
-
id:
|
|
3369
|
-
name:
|
|
3372
|
+
disabled: a,
|
|
3373
|
+
id: C,
|
|
3374
|
+
name: C,
|
|
3370
3375
|
onBlur: P,
|
|
3371
3376
|
onChange: J,
|
|
3372
3377
|
ref: K,
|
|
@@ -3382,71 +3387,71 @@ const ao = ({
|
|
|
3382
3387
|
ie ? /* @__PURE__ */ l(D, { className: "dark:!text-alert-dark !text-alert-light text-13", children: ie }) : null,
|
|
3383
3388
|
p ? /* @__PURE__ */ l(D, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: p }) : null
|
|
3384
3389
|
] });
|
|
3385
|
-
}, io =
|
|
3390
|
+
}, io = k(ao);
|
|
3386
3391
|
io.displayName = "ImageUpload";
|
|
3387
3392
|
const so = ({
|
|
3388
3393
|
className: e,
|
|
3389
3394
|
children: t,
|
|
3390
3395
|
component: r = "a",
|
|
3391
3396
|
icon: n,
|
|
3392
|
-
iconPosition:
|
|
3393
|
-
variant:
|
|
3397
|
+
iconPosition: a,
|
|
3398
|
+
variant: o = "primary",
|
|
3394
3399
|
size: i = "md",
|
|
3395
3400
|
...s
|
|
3396
|
-
},
|
|
3397
|
-
const
|
|
3401
|
+
}, c) => {
|
|
3402
|
+
const d = Rt(n !== void 0 ? a : void 0);
|
|
3398
3403
|
return /* @__PURE__ */ y(({ children: g }) => V(
|
|
3399
3404
|
r,
|
|
3400
3405
|
{
|
|
3401
3406
|
...s,
|
|
3402
3407
|
className: b([
|
|
3403
3408
|
Bt,
|
|
3404
|
-
Ee[
|
|
3405
|
-
|
|
3409
|
+
Ee[o],
|
|
3410
|
+
d[i],
|
|
3406
3411
|
"no-underline cursor-pointer",
|
|
3407
3412
|
e
|
|
3408
3413
|
]),
|
|
3409
|
-
ref:
|
|
3414
|
+
ref: c
|
|
3410
3415
|
},
|
|
3411
3416
|
g
|
|
3412
3417
|
), { children: [
|
|
3413
|
-
|
|
3418
|
+
a === "start" && n !== void 0 ? V(n, {
|
|
3414
3419
|
className: "mie-0.5 flex-shrink-0",
|
|
3415
|
-
size:
|
|
3420
|
+
size: $e[i]
|
|
3416
3421
|
}) : null,
|
|
3417
3422
|
V("span", { className: "truncate" }, t),
|
|
3418
|
-
|
|
3423
|
+
a === "end" && n !== void 0 ? V(n, {
|
|
3419
3424
|
className: "mis-0.5 flex-shrink-0",
|
|
3420
|
-
size:
|
|
3425
|
+
size: $e[i]
|
|
3421
3426
|
}) : null
|
|
3422
3427
|
] });
|
|
3423
|
-
}, lo =
|
|
3428
|
+
}, lo = k(so);
|
|
3424
3429
|
lo.displayName = "LinkButton";
|
|
3425
|
-
function
|
|
3430
|
+
function da({ children: e, className: t, position: r }) {
|
|
3426
3431
|
let n = "";
|
|
3427
3432
|
return r && (r === "start" ? n = "order-first" : n = "order-last"), /* @__PURE__ */ l("div", { className: b("flex gap-1", n, t), children: e });
|
|
3428
3433
|
}
|
|
3429
|
-
function
|
|
3434
|
+
function ca({ children: e, className: t }) {
|
|
3430
3435
|
return /* @__PURE__ */ l("div", { className: b("flex-grow", t), children: e });
|
|
3431
3436
|
}
|
|
3432
|
-
const
|
|
3437
|
+
const ua = ({
|
|
3433
3438
|
children: e,
|
|
3434
3439
|
className: t,
|
|
3435
3440
|
endText: r,
|
|
3436
3441
|
endTextProps: n,
|
|
3437
|
-
size:
|
|
3438
|
-
subHeadline:
|
|
3442
|
+
size: a = "sm",
|
|
3443
|
+
subHeadline: o,
|
|
3439
3444
|
subHeadlineProps: i
|
|
3440
3445
|
}) => /* @__PURE__ */ y("div", { className: b(["flex items-center justify-between break-words", t]), children: [
|
|
3441
3446
|
/* @__PURE__ */ y("div", { className: "flex flex-col", children: [
|
|
3442
|
-
/* @__PURE__ */ l(D, { size:
|
|
3443
|
-
|
|
3447
|
+
/* @__PURE__ */ l(D, { size: a, variant: "label", children: e }),
|
|
3448
|
+
o ? (
|
|
3444
3449
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
3445
|
-
/* @__PURE__ */ l(D, { ...i, children:
|
|
3450
|
+
/* @__PURE__ */ l(D, { ...i, children: o })
|
|
3446
3451
|
) : null
|
|
3447
3452
|
] }),
|
|
3448
3453
|
r ? /* @__PURE__ */ l(D, { ...n, children: r }) : null
|
|
3449
|
-
] }),
|
|
3454
|
+
] }), fa = ({ children: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(["relative", t]), ...r, children: e }), co = typeof window < "u" ? ht.useLayoutEffect : () => {
|
|
3450
3455
|
};
|
|
3451
3456
|
let pe = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Set();
|
|
3452
3457
|
function dt() {
|
|
@@ -3458,8 +3463,8 @@ function dt() {
|
|
|
3458
3463
|
}, t = (r) => {
|
|
3459
3464
|
let n = pe.get(r.target);
|
|
3460
3465
|
if (n && (n.delete(r.propertyName), n.size === 0 && (r.target.removeEventListener("transitioncancel", t), pe.delete(r.target)), pe.size === 0)) {
|
|
3461
|
-
for (let
|
|
3462
|
-
|
|
3466
|
+
for (let a of lt)
|
|
3467
|
+
a();
|
|
3463
3468
|
lt.clear();
|
|
3464
3469
|
}
|
|
3465
3470
|
};
|
|
@@ -3523,14 +3528,14 @@ function vo(e) {
|
|
|
3523
3528
|
return () => {
|
|
3524
3529
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
3525
3530
|
};
|
|
3526
|
-
}, []),
|
|
3531
|
+
}, []), ye((r) => {
|
|
3527
3532
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
3528
3533
|
t.current.isFocused = !0;
|
|
3529
|
-
let n = r.target,
|
|
3534
|
+
let n = r.target, a = (o) => {
|
|
3530
3535
|
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",
|
|
3536
|
+
t.current.isFocused = !1, n.disabled && ((s = (i = t.current).onBlur) === null || s === void 0 || s.call(i, new ho("blur", o))), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
3532
3537
|
};
|
|
3533
|
-
n.addEventListener("focusout",
|
|
3538
|
+
n.addEventListener("focusout", a, {
|
|
3534
3539
|
once: !0
|
|
3535
3540
|
}), t.current.observer = new MutationObserver(() => {
|
|
3536
3541
|
t.current.isFocused && n.disabled && (t.current.observer.disconnect(), n.dispatchEvent(new FocusEvent("blur")), n.dispatchEvent(new FocusEvent("focusout", {
|
|
@@ -3578,19 +3583,19 @@ function ft() {
|
|
|
3578
3583
|
}
|
|
3579
3584
|
typeof document < "u" && (document.readyState !== "loading" ? ft() : document.addEventListener("DOMContentLoaded", ft));
|
|
3580
3585
|
function So(e) {
|
|
3581
|
-
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange:
|
|
3586
|
+
let { isDisabled: t, onBlurWithin: r, onFocusWithin: n, onFocusWithinChange: a } = e, o = F({
|
|
3582
3587
|
isFocusWithin: !1
|
|
3583
|
-
}), i =
|
|
3584
|
-
|
|
3588
|
+
}), i = ye((d) => {
|
|
3589
|
+
o.current.isFocusWithin && !d.currentTarget.contains(d.relatedTarget) && (o.current.isFocusWithin = !1, r && r(d), a && a(!1));
|
|
3585
3590
|
}, [
|
|
3586
3591
|
r,
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
]), s = vo(i),
|
|
3590
|
-
!
|
|
3592
|
+
a,
|
|
3593
|
+
o
|
|
3594
|
+
]), s = vo(i), c = ye((d) => {
|
|
3595
|
+
!o.current.isFocusWithin && document.activeElement === d.target && (n && n(d), a && a(!0), o.current.isFocusWithin = !0, s(d));
|
|
3591
3596
|
}, [
|
|
3592
3597
|
n,
|
|
3593
|
-
|
|
3598
|
+
a,
|
|
3594
3599
|
s
|
|
3595
3600
|
]);
|
|
3596
3601
|
return t ? {
|
|
@@ -3600,39 +3605,39 @@ function So(e) {
|
|
|
3600
3605
|
}
|
|
3601
3606
|
} : {
|
|
3602
3607
|
focusWithinProps: {
|
|
3603
|
-
onFocus:
|
|
3608
|
+
onFocus: c,
|
|
3604
3609
|
onBlur: i
|
|
3605
3610
|
}
|
|
3606
3611
|
};
|
|
3607
3612
|
}
|
|
3608
|
-
function
|
|
3609
|
-
let { ref: t, onInteractOutside: r, isDisabled: n, onInteractOutsideStart:
|
|
3613
|
+
function Co(e) {
|
|
3614
|
+
let { ref: t, onInteractOutside: r, isDisabled: n, onInteractOutsideStart: a } = e, i = F({
|
|
3610
3615
|
isPointerDown: !1,
|
|
3611
3616
|
ignoreEmulatedMouseEvents: !1,
|
|
3612
3617
|
onInteractOutside: r,
|
|
3613
|
-
onInteractOutsideStart:
|
|
3618
|
+
onInteractOutsideStart: a
|
|
3614
3619
|
}).current;
|
|
3615
|
-
i.onInteractOutside = r, i.onInteractOutsideStart =
|
|
3620
|
+
i.onInteractOutside = r, i.onInteractOutsideStart = a, oe(() => {
|
|
3616
3621
|
if (n)
|
|
3617
3622
|
return;
|
|
3618
|
-
let s = (
|
|
3619
|
-
|
|
3623
|
+
let s = (c) => {
|
|
3624
|
+
ve(c, t) && i.onInteractOutside && (i.onInteractOutsideStart && i.onInteractOutsideStart(c), i.isPointerDown = !0);
|
|
3620
3625
|
};
|
|
3621
3626
|
if (typeof PointerEvent < "u") {
|
|
3622
|
-
let
|
|
3623
|
-
i.isPointerDown && i.onInteractOutside &&
|
|
3627
|
+
let c = (d) => {
|
|
3628
|
+
i.isPointerDown && i.onInteractOutside && ve(d, t) && i.onInteractOutside(d), i.isPointerDown = !1;
|
|
3624
3629
|
};
|
|
3625
|
-
return document.addEventListener("pointerdown", s, !0), document.addEventListener("pointerup",
|
|
3626
|
-
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("pointerup",
|
|
3630
|
+
return document.addEventListener("pointerdown", s, !0), document.addEventListener("pointerup", c, !0), () => {
|
|
3631
|
+
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("pointerup", c, !0);
|
|
3627
3632
|
};
|
|
3628
3633
|
} else {
|
|
3629
|
-
let
|
|
3630
|
-
i.ignoreEmulatedMouseEvents ? i.ignoreEmulatedMouseEvents = !1 : i.isPointerDown && i.onInteractOutside &&
|
|
3631
|
-
},
|
|
3632
|
-
i.ignoreEmulatedMouseEvents = !0, i.onInteractOutside && i.isPointerDown &&
|
|
3634
|
+
let c = (u) => {
|
|
3635
|
+
i.ignoreEmulatedMouseEvents ? i.ignoreEmulatedMouseEvents = !1 : i.isPointerDown && i.onInteractOutside && ve(u, t) && i.onInteractOutside(u), i.isPointerDown = !1;
|
|
3636
|
+
}, d = (u) => {
|
|
3637
|
+
i.ignoreEmulatedMouseEvents = !0, i.onInteractOutside && i.isPointerDown && ve(u, t) && i.onInteractOutside(u), i.isPointerDown = !1;
|
|
3633
3638
|
};
|
|
3634
|
-
return document.addEventListener("mousedown", s, !0), document.addEventListener("mouseup",
|
|
3635
|
-
document.removeEventListener("mousedown", s, !0), document.removeEventListener("mouseup",
|
|
3639
|
+
return document.addEventListener("mousedown", s, !0), document.addEventListener("mouseup", c, !0), document.addEventListener("touchstart", s, !0), document.addEventListener("touchend", d, !0), () => {
|
|
3640
|
+
document.removeEventListener("mousedown", s, !0), document.removeEventListener("mouseup", c, !0), document.removeEventListener("touchstart", s, !0), document.removeEventListener("touchend", d, !0);
|
|
3636
3641
|
};
|
|
3637
3642
|
}
|
|
3638
3643
|
}, [
|
|
@@ -3641,7 +3646,7 @@ function No(e) {
|
|
|
3641
3646
|
n
|
|
3642
3647
|
]);
|
|
3643
3648
|
}
|
|
3644
|
-
function
|
|
3649
|
+
function ve(e, t) {
|
|
3645
3650
|
if (e.button > 0)
|
|
3646
3651
|
return !1;
|
|
3647
3652
|
if (e.target) {
|
|
@@ -3651,7 +3656,7 @@ function he(e, t) {
|
|
|
3651
3656
|
}
|
|
3652
3657
|
return t.current && !t.current.contains(e.target);
|
|
3653
3658
|
}
|
|
3654
|
-
let
|
|
3659
|
+
let No = null;
|
|
3655
3660
|
function Zt(e, t) {
|
|
3656
3661
|
return t.some((r) => r.contains(e));
|
|
3657
3662
|
}
|
|
@@ -3664,7 +3669,7 @@ function Oo(e, t = null) {
|
|
|
3664
3669
|
return !1;
|
|
3665
3670
|
}
|
|
3666
3671
|
function Io(e) {
|
|
3667
|
-
return Oo(e,
|
|
3672
|
+
return Oo(e, No);
|
|
3668
3673
|
}
|
|
3669
3674
|
class Fe {
|
|
3670
3675
|
get size() {
|
|
@@ -3674,10 +3679,10 @@ class Fe {
|
|
|
3674
3679
|
return this.fastMap.get(t);
|
|
3675
3680
|
}
|
|
3676
3681
|
addTreeNode(t, r, n) {
|
|
3677
|
-
let
|
|
3682
|
+
let a = this.fastMap.get(r ?? null), o = new pt({
|
|
3678
3683
|
scopeRef: t
|
|
3679
3684
|
});
|
|
3680
|
-
|
|
3685
|
+
a.addChild(o), o.parent = a, this.fastMap.set(t, o), n && (o.nodeToRestore = n);
|
|
3681
3686
|
}
|
|
3682
3687
|
addNode(t) {
|
|
3683
3688
|
this.fastMap.set(t.scopeRef, t);
|
|
@@ -3686,10 +3691,10 @@ class Fe {
|
|
|
3686
3691
|
if (t === null)
|
|
3687
3692
|
return;
|
|
3688
3693
|
let r = this.fastMap.get(t), n = r.parent;
|
|
3689
|
-
for (let
|
|
3690
|
-
|
|
3691
|
-
let
|
|
3692
|
-
n.removeChild(r),
|
|
3694
|
+
for (let o of this.traverse())
|
|
3695
|
+
o !== r && r.nodeToRestore && o.nodeToRestore && r.scopeRef.current && Zt(o.nodeToRestore, r.scopeRef.current) && (o.nodeToRestore = r.nodeToRestore);
|
|
3696
|
+
let a = r.children;
|
|
3697
|
+
n.removeChild(r), a.size > 0 && a.forEach((o) => n.addChild(o)), this.fastMap.delete(r.scopeRef);
|
|
3693
3698
|
}
|
|
3694
3699
|
// Pre Order Depth First
|
|
3695
3700
|
*traverse(t = this.root) {
|
|
@@ -3723,27 +3728,27 @@ class pt {
|
|
|
3723
3728
|
let bt = new Fe();
|
|
3724
3729
|
const H = [];
|
|
3725
3730
|
function Eo(e, t) {
|
|
3726
|
-
let { onClose: r, shouldCloseOnBlur: n, isOpen:
|
|
3727
|
-
oe(() => (
|
|
3731
|
+
let { onClose: r, shouldCloseOnBlur: n, isOpen: a, isDismissable: o = !1, isKeyboardDismissDisabled: i = !1, shouldCloseOnInteractOutside: s } = e;
|
|
3732
|
+
oe(() => (a && H.push(t), () => {
|
|
3728
3733
|
let p = H.indexOf(t);
|
|
3729
3734
|
p >= 0 && H.splice(p, 1);
|
|
3730
3735
|
}), [
|
|
3731
|
-
|
|
3736
|
+
a,
|
|
3732
3737
|
t
|
|
3733
3738
|
]);
|
|
3734
|
-
let
|
|
3739
|
+
let c = () => {
|
|
3735
3740
|
H[H.length - 1] === t && r && r();
|
|
3736
|
-
},
|
|
3741
|
+
}, d = (p) => {
|
|
3737
3742
|
(!s || s(p.target)) && H[H.length - 1] === t && (p.stopPropagation(), p.preventDefault());
|
|
3738
|
-
},
|
|
3739
|
-
(!s || s(p.target)) && (H[H.length - 1] === t && (p.stopPropagation(), p.preventDefault()),
|
|
3743
|
+
}, u = (p) => {
|
|
3744
|
+
(!s || s(p.target)) && (H[H.length - 1] === t && (p.stopPropagation(), p.preventDefault()), c());
|
|
3740
3745
|
}, g = (p) => {
|
|
3741
|
-
p.key === "Escape" && !i && (p.stopPropagation(), p.preventDefault(),
|
|
3746
|
+
p.key === "Escape" && !i && (p.stopPropagation(), p.preventDefault(), c());
|
|
3742
3747
|
};
|
|
3743
|
-
|
|
3748
|
+
Co({
|
|
3744
3749
|
ref: t,
|
|
3745
|
-
onInteractOutside:
|
|
3746
|
-
onInteractOutsideStart:
|
|
3750
|
+
onInteractOutside: o ? u : null,
|
|
3751
|
+
onInteractOutsideStart: d
|
|
3747
3752
|
});
|
|
3748
3753
|
let { focusWithinProps: v } = So({
|
|
3749
3754
|
isDisabled: !n,
|
|
@@ -3764,79 +3769,79 @@ function Eo(e, t) {
|
|
|
3764
3769
|
};
|
|
3765
3770
|
}
|
|
3766
3771
|
const Po = ({ align: e, children: t, className: r, ...n }) => {
|
|
3767
|
-
const
|
|
3768
|
-
const { horizontal:
|
|
3772
|
+
const a = re(() => {
|
|
3773
|
+
const { horizontal: o, vertical: i } = e, s = {
|
|
3769
3774
|
center: "left-1/2",
|
|
3770
3775
|
end: "inline-end-0",
|
|
3771
3776
|
start: "inline-start-0"
|
|
3772
|
-
},
|
|
3777
|
+
}, c = {
|
|
3773
3778
|
bottom: "",
|
|
3774
3779
|
top: "bottom-full"
|
|
3775
3780
|
};
|
|
3776
|
-
return `${s[
|
|
3781
|
+
return `${s[o]} ${c[i]}`;
|
|
3777
3782
|
}, [e]);
|
|
3778
3783
|
return /* @__PURE__ */ l(
|
|
3779
3784
|
"div",
|
|
3780
3785
|
{
|
|
3781
3786
|
className: b([
|
|
3782
3787
|
"absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",
|
|
3783
|
-
|
|
3788
|
+
a,
|
|
3784
3789
|
r
|
|
3785
3790
|
]),
|
|
3786
3791
|
...n,
|
|
3787
3792
|
children: t
|
|
3788
3793
|
}
|
|
3789
3794
|
);
|
|
3790
|
-
}, Lo = ({ open: e, children: t }) => /* @__PURE__ */ l(
|
|
3795
|
+
}, Lo = ({ open: e, children: t }) => /* @__PURE__ */ l(be, { children: e ? t : null }), pa = ({
|
|
3791
3796
|
align: e = { horizontal: "start", vertical: "bottom" },
|
|
3792
3797
|
autoFocus: t = !0,
|
|
3793
3798
|
children: r,
|
|
3794
3799
|
className: n,
|
|
3795
|
-
isDismissible:
|
|
3796
|
-
isOpen:
|
|
3800
|
+
isDismissible: a,
|
|
3801
|
+
isOpen: o,
|
|
3797
3802
|
onClose: i,
|
|
3798
3803
|
...s
|
|
3799
3804
|
}) => {
|
|
3800
|
-
const
|
|
3805
|
+
const c = F(null), { overlayProps: d } = Eo(
|
|
3801
3806
|
{
|
|
3802
|
-
isDismissable:
|
|
3803
|
-
isKeyboardDismissDisabled: !
|
|
3804
|
-
isOpen:
|
|
3807
|
+
isDismissable: a,
|
|
3808
|
+
isKeyboardDismissDisabled: !a,
|
|
3809
|
+
isOpen: o,
|
|
3805
3810
|
onClose: i
|
|
3806
3811
|
},
|
|
3807
|
-
|
|
3812
|
+
c
|
|
3808
3813
|
);
|
|
3809
|
-
return /* @__PURE__ */ l(Lo, { open:
|
|
3814
|
+
return /* @__PURE__ */ l(Lo, { open: o, children: /* @__PURE__ */ l(Wt, { autoFocus: t, children: /* @__PURE__ */ l(
|
|
3810
3815
|
Po,
|
|
3811
3816
|
{
|
|
3812
3817
|
align: e,
|
|
3813
3818
|
className: n,
|
|
3814
3819
|
onClose: i,
|
|
3815
3820
|
...s,
|
|
3816
|
-
children: /* @__PURE__ */ l("div", { ref:
|
|
3821
|
+
children: /* @__PURE__ */ l("div", { ref: c, ...d, onClick: i, children: r })
|
|
3817
3822
|
}
|
|
3818
3823
|
) }) });
|
|
3819
|
-
},
|
|
3820
|
-
const
|
|
3824
|
+
}, ba = ({ onToggle: e, children: t, className: r, disabled: n }) => {
|
|
3825
|
+
const a = (s) => {
|
|
3821
3826
|
s.preventDefault(), s.stopPropagation(), e();
|
|
3822
|
-
},
|
|
3827
|
+
}, o = F(null), i = rr(t, {
|
|
3823
3828
|
className: r,
|
|
3824
3829
|
disabled: n,
|
|
3825
|
-
onClick:
|
|
3826
|
-
ref:
|
|
3830
|
+
onClick: a,
|
|
3831
|
+
ref: o
|
|
3827
3832
|
});
|
|
3828
|
-
return /* @__PURE__ */ l(
|
|
3833
|
+
return /* @__PURE__ */ l(be, { children: i });
|
|
3829
3834
|
}, Mo = (e, t) => {
|
|
3830
|
-
const { children: r, error: n, hint:
|
|
3835
|
+
const { children: r, error: n, hint: a, label: o } = e;
|
|
3831
3836
|
return /* @__PURE__ */ y("div", { ...e, className: "flex-col rounded-0.5 w-fit", ref: t, children: [
|
|
3832
|
-
/* @__PURE__ */ l("label", { children:
|
|
3837
|
+
/* @__PURE__ */ l("label", { children: o }),
|
|
3833
3838
|
n ? /* @__PURE__ */ l("p", { className: "text-alert-light dark:text-alert-dark text-13", children: n }) : null,
|
|
3834
|
-
|
|
3839
|
+
a ? /* @__PURE__ */ l("p", { className: "text-13 text-gray-25 dark:text-gray-20", children: a }) : null,
|
|
3835
3840
|
r
|
|
3836
3841
|
] });
|
|
3837
|
-
}, To =
|
|
3842
|
+
}, To = k(Mo);
|
|
3838
3843
|
To.displayName = "Radio Set";
|
|
3839
|
-
const zo = ({ children: e, disabled: t, name: r, value: n, ...
|
|
3844
|
+
const zo = ({ children: e, disabled: t, name: r, value: n, ...a }, o) => /* @__PURE__ */ y("div", { className: "flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark", children: [
|
|
3840
3845
|
/* @__PURE__ */ l(
|
|
3841
3846
|
"input",
|
|
3842
3847
|
{
|
|
@@ -3844,8 +3849,8 @@ const zo = ({ children: e, disabled: t, name: r, value: n, ...o }, a) => /* @__P
|
|
|
3844
3849
|
disabled: t,
|
|
3845
3850
|
id: r,
|
|
3846
3851
|
name: r,
|
|
3847
|
-
ref:
|
|
3848
|
-
...
|
|
3852
|
+
ref: o,
|
|
3853
|
+
...a,
|
|
3849
3854
|
type: "radio",
|
|
3850
3855
|
value: n
|
|
3851
3856
|
}
|
|
@@ -3858,55 +3863,104 @@ const zo = ({ children: e, disabled: t, name: r, value: n, ...o }, a) => /* @__P
|
|
|
3858
3863
|
children: e
|
|
3859
3864
|
}
|
|
3860
3865
|
)
|
|
3861
|
-
] }), Ro =
|
|
3866
|
+
] }), Ro = k(zo);
|
|
3862
3867
|
Ro.displayName = "RadioSetItem";
|
|
3863
|
-
|
|
3864
|
-
|
|
3868
|
+
function Bo({ className: e, onChange: t = () => {
|
|
3869
|
+
}, values: r, ...n }, a) {
|
|
3870
|
+
const [o, i] = U(0), s = o > 0 ? o - 1 : 0, c = (d) => {
|
|
3871
|
+
i(d), t(d);
|
|
3872
|
+
};
|
|
3873
|
+
return /* @__PURE__ */ l(
|
|
3874
|
+
z,
|
|
3875
|
+
{
|
|
3876
|
+
...n,
|
|
3877
|
+
className: `inline-flex overflow-hidden border-x-small border-solid rounded-1 text-gray-40 dark:text-white border-tertiary-light dark:border-tertiary-dark ${e}`,
|
|
3878
|
+
ref: a,
|
|
3879
|
+
children: r.map((d, u) => /* @__PURE__ */ l(
|
|
3880
|
+
Ao,
|
|
3881
|
+
{
|
|
3882
|
+
activeIndex: o,
|
|
3883
|
+
currentIndex: u,
|
|
3884
|
+
onSelectedValue: c,
|
|
3885
|
+
prevIndex: s,
|
|
3886
|
+
value: d
|
|
3887
|
+
}
|
|
3888
|
+
))
|
|
3889
|
+
}
|
|
3890
|
+
);
|
|
3891
|
+
}
|
|
3892
|
+
const jo = k(Bo);
|
|
3893
|
+
jo.displayName = "SegmentedControl";
|
|
3894
|
+
function Ao({
|
|
3895
|
+
activeIndex: e,
|
|
3896
|
+
currentIndex: t,
|
|
3897
|
+
onSelectedValue: r,
|
|
3898
|
+
prevIndex: n,
|
|
3899
|
+
value: a
|
|
3900
|
+
}) {
|
|
3901
|
+
return /* @__PURE__ */ y(be, { children: [
|
|
3902
|
+
/* @__PURE__ */ l(
|
|
3903
|
+
"button",
|
|
3904
|
+
{
|
|
3905
|
+
className: b(
|
|
3906
|
+
`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark
|
|
3907
|
+
${t === e ? " bg-gray-40 dark:bg-white text-white dark:text-gray-40" : ""}
|
|
3908
|
+
`
|
|
3909
|
+
),
|
|
3910
|
+
onClick: t !== e ? () => r(t) : void 0,
|
|
3911
|
+
children: a
|
|
3912
|
+
}
|
|
3913
|
+
),
|
|
3914
|
+
n === t || e === t ? null : /* @__PURE__ */ l("span", { className: "inline-block w-px bg-tertiary-light dark:bg-tertiary-dark" })
|
|
3915
|
+
] });
|
|
3916
|
+
}
|
|
3917
|
+
const ga = ({ ...e }) => /* @__PURE__ */ l("option", { ...e }), Wo = "_select_1dwiy_1";
|
|
3918
|
+
const Go = "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", Do = "border-alert-light dark:border-alert-dark", Fo = "border-tertiary-light dark:border-tertiary-dark", Be = "text-text-muted-light dark:text-text-muted-dark", gt = b(
|
|
3865
3919
|
Be,
|
|
3866
3920
|
"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"
|
|
3867
|
-
),
|
|
3921
|
+
), Ho = "-translate-y-1 opacity-100", Vo = "text-overlay-text dark:text-text-dark", Uo = "!pbs-3 !pbe-1", _o = "absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark", qo = ({ children: e, className: t, disabled: r = !1, error: n, hint: a, label: o, name: i, onChange: s, value: c, ...d }, u) => {
|
|
3868
3922
|
var P;
|
|
3869
|
-
const g = b(
|
|
3923
|
+
const g = b(Wo, Go), v = F(null), m = Ge({ forwardedRef: u, innerRef: v }), [p, w] = U(Boolean(c || ((P = m == null ? void 0 : m.current) == null ? void 0 : P.value)));
|
|
3870
3924
|
oe(() => {
|
|
3871
3925
|
var S;
|
|
3872
|
-
w(Boolean(((S = m == null ? void 0 : m.current) == null ? void 0 : S.value) ||
|
|
3873
|
-
}, [
|
|
3926
|
+
w(Boolean(((S = m == null ? void 0 : m.current) == null ? void 0 : S.value) || c));
|
|
3927
|
+
}, [c, m]);
|
|
3874
3928
|
const x = re(() => {
|
|
3875
|
-
const S = b(g,
|
|
3929
|
+
const S = b(g, Vo, o ? Uo : null), h = b(g, Be);
|
|
3876
3930
|
return p ? S : h;
|
|
3877
|
-
}, [g, p,
|
|
3878
|
-
const S = b(gt,
|
|
3931
|
+
}, [g, p, o]), I = re(() => {
|
|
3932
|
+
const S = b(gt, Ho), h = b(gt);
|
|
3879
3933
|
return p ? S : h;
|
|
3880
|
-
}, [p]),
|
|
3934
|
+
}, [p]), C = (S) => {
|
|
3881
3935
|
var h;
|
|
3882
|
-
w(Boolean(((h = m == null ? void 0 : m.current) == null ? void 0 : h.value) ||
|
|
3936
|
+
w(Boolean(((h = m == null ? void 0 : m.current) == null ? void 0 : h.value) || c)), s && s(S);
|
|
3883
3937
|
};
|
|
3884
3938
|
return /* @__PURE__ */ y("div", { className: b(t), children: [
|
|
3885
3939
|
/* @__PURE__ */ y("div", { className: "relative w-full border-none", children: [
|
|
3886
3940
|
/* @__PURE__ */ l(
|
|
3887
3941
|
"select",
|
|
3888
3942
|
{
|
|
3889
|
-
...
|
|
3890
|
-
className: b([x, n ?
|
|
3943
|
+
...d,
|
|
3944
|
+
className: b([x, n ? Do : Fo]),
|
|
3891
3945
|
disabled: r,
|
|
3892
3946
|
id: i,
|
|
3893
3947
|
name: i,
|
|
3894
|
-
onChange:
|
|
3948
|
+
onChange: C,
|
|
3895
3949
|
ref: m,
|
|
3896
|
-
value:
|
|
3950
|
+
value: c,
|
|
3897
3951
|
children: e
|
|
3898
3952
|
}
|
|
3899
3953
|
),
|
|
3900
|
-
/* @__PURE__ */ l("label", { className: I, htmlFor: i, children:
|
|
3901
|
-
/* @__PURE__ */ l("div", { className:
|
|
3954
|
+
/* @__PURE__ */ l("label", { className: I, htmlFor: i, children: o }),
|
|
3955
|
+
/* @__PURE__ */ l("div", { className: _o, children: /* @__PURE__ */ l(yt, { size: "24" }) })
|
|
3902
3956
|
] }),
|
|
3903
|
-
n ||
|
|
3957
|
+
n || a ? /* @__PURE__ */ y("div", { className: "mbs-0.5", children: [
|
|
3904
3958
|
n ? /* @__PURE__ */ l("p", { className: "text-alert-light dark:text-alert-dark text-13 m-0", children: n }) : null,
|
|
3905
|
-
|
|
3959
|
+
a ? /* @__PURE__ */ l("p", { className: b(Be, "text-13 m-0"), children: a }) : null
|
|
3906
3960
|
] }) : null
|
|
3907
3961
|
] });
|
|
3908
|
-
},
|
|
3909
|
-
function
|
|
3962
|
+
}, ma = k(qo);
|
|
3963
|
+
function ha({ active: e, children: t, component: r = "a", className: n, href: a }) {
|
|
3910
3964
|
return /* @__PURE__ */ l(
|
|
3911
3965
|
D,
|
|
3912
3966
|
{
|
|
@@ -3916,63 +3970,63 @@ function ba({ active: e, children: t, component: r = "a", className: n, href: o
|
|
|
3916
3970
|
n
|
|
3917
3971
|
),
|
|
3918
3972
|
component: r,
|
|
3919
|
-
href:
|
|
3973
|
+
href: a,
|
|
3920
3974
|
children: t
|
|
3921
3975
|
}
|
|
3922
3976
|
);
|
|
3923
3977
|
}
|
|
3924
|
-
const
|
|
3978
|
+
const Zo = {
|
|
3925
3979
|
caution: "bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",
|
|
3926
3980
|
default: "bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",
|
|
3927
3981
|
error: "bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",
|
|
3928
3982
|
info: "bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",
|
|
3929
3983
|
secondary: "bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",
|
|
3930
3984
|
success: "bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"
|
|
3931
|
-
},
|
|
3985
|
+
}, Ko = {
|
|
3932
3986
|
lg: "text-16 w-fit rounded-0.5 plb-0.5 pli-1",
|
|
3933
3987
|
sm: "text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"
|
|
3934
|
-
},
|
|
3935
|
-
const
|
|
3936
|
-
return /* @__PURE__ */ l(
|
|
3937
|
-
},
|
|
3938
|
-
inputIcon:
|
|
3939
|
-
},
|
|
3988
|
+
}, va = ({ message: e, variant: t = "default", size: r = "sm", className: n }) => {
|
|
3989
|
+
const a = Zo[t], o = Ko[r];
|
|
3990
|
+
return /* @__PURE__ */ l(z, { className: b(a, o, n), children: /* @__PURE__ */ l(D, { children: e }) });
|
|
3991
|
+
}, Xo = "_inputIcon_1pzdd_1", Jo = {
|
|
3992
|
+
inputIcon: Xo
|
|
3993
|
+
}, Qo = ({ className: e, error: t, name: r, ...n }, a) => /* @__PURE__ */ y(be, { children: [
|
|
3940
3994
|
/* @__PURE__ */ l(
|
|
3941
3995
|
"input",
|
|
3942
3996
|
{
|
|
3943
3997
|
className: b([
|
|
3944
3998
|
"rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",
|
|
3945
|
-
|
|
3999
|
+
Jo.inputIcon,
|
|
3946
4000
|
e
|
|
3947
4001
|
]),
|
|
3948
4002
|
id: r,
|
|
3949
4003
|
name: r,
|
|
3950
|
-
ref:
|
|
4004
|
+
ref: a,
|
|
3951
4005
|
role: "textbox",
|
|
3952
4006
|
type: "time",
|
|
3953
4007
|
...n
|
|
3954
4008
|
}
|
|
3955
4009
|
),
|
|
3956
4010
|
t ? /* @__PURE__ */ l("div", { className: "text-alert-light dark:text-alert-dark text-13", children: t }) : null
|
|
3957
|
-
] }),
|
|
3958
|
-
|
|
3959
|
-
const
|
|
3960
|
-
tooltipWrapper:
|
|
3961
|
-
tooltipContent:
|
|
3962
|
-
},
|
|
4011
|
+
] }), Yo = k(Qo);
|
|
4012
|
+
Yo.displayName = "TimePicker";
|
|
4013
|
+
const ea = "_tooltipWrapper_qu88w_1", ta = "_tooltipContent_qu88w_18", mt = {
|
|
4014
|
+
tooltipWrapper: ea,
|
|
4015
|
+
tooltipContent: ta
|
|
4016
|
+
}, xa = ({ content: e, className: t, ...r }) => /* @__PURE__ */ l("div", { className: b(mt.tooltipWrapper, t), ...r, children: /* @__PURE__ */ l("span", { className: mt.tooltipContent, children: e }) });
|
|
3963
4017
|
export {
|
|
3964
4018
|
Qr as AutocompleteSelect,
|
|
3965
|
-
|
|
4019
|
+
z as Box,
|
|
3966
4020
|
en as Breadcrumb,
|
|
3967
4021
|
fn as Breadcrumbs,
|
|
3968
|
-
|
|
4022
|
+
Se as Button,
|
|
3969
4023
|
pn as ButtonComponent,
|
|
3970
4024
|
gn as Checkbox,
|
|
3971
4025
|
En as Dialog,
|
|
3972
|
-
|
|
4026
|
+
sa as Divider,
|
|
3973
4027
|
Wt as FocusTrap,
|
|
3974
4028
|
Dt as Heading,
|
|
3975
|
-
|
|
4029
|
+
la as HorizontalLoader,
|
|
3976
4030
|
Gt as IconButton,
|
|
3977
4031
|
Ln as IconLinkButton,
|
|
3978
4032
|
io as ImageUpload,
|
|
@@ -3981,26 +4035,28 @@ export {
|
|
|
3981
4035
|
so as LinkButtonComponent,
|
|
3982
4036
|
Pt as List,
|
|
3983
4037
|
Te as ListItem,
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
4038
|
+
da as ListItemActions,
|
|
4039
|
+
ca as ListItemContent,
|
|
4040
|
+
ua as ListItemText,
|
|
4041
|
+
ga as Option,
|
|
4042
|
+
fa as Popover,
|
|
4043
|
+
pa as PopoverBody,
|
|
4044
|
+
ba as PopoverTrigger,
|
|
3991
4045
|
To as RadioSet,
|
|
3992
4046
|
Ro as RadioSetItem,
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
4047
|
+
jo as SegmentedControl,
|
|
4048
|
+
Ao as SegmentedControlItem,
|
|
4049
|
+
ma as Select,
|
|
4050
|
+
ha as Tab,
|
|
4051
|
+
va as Tag,
|
|
3996
4052
|
D as Text,
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4053
|
+
Yo as TimePicker,
|
|
4054
|
+
xa as Tooltip,
|
|
4055
|
+
ia as buttonSizeOptions,
|
|
4000
4056
|
b as cn,
|
|
4001
4057
|
Bt as defaultButtonClasses,
|
|
4002
4058
|
Rt as determineSizeClasses,
|
|
4003
|
-
|
|
4059
|
+
$e as iconSizes,
|
|
4004
4060
|
Ge as useCombinedRefs,
|
|
4005
4061
|
qr as useLockBodyScroll,
|
|
4006
4062
|
Ee as variantClasses
|