design-system-silkhaus 4.0.0-beta.color-names.2 → 4.0.0-beta.color-names.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +1 -1
- package/dist/{index-dmbSCZ1I.js → index-cVxmO35M.js} +149 -148
- package/dist/index.js +114 -114
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +2 -1
- package/package.json +1 -1
|
@@ -101,10 +101,10 @@ function xo() {
|
|
|
101
101
|
K.unshift("Warning: " + b), Function.prototype.apply.call(console[s], console, K);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
var E = !1, z = !1, A = !1,
|
|
104
|
+
var E = !1, z = !1, A = !1, D = !1, G = !1, J;
|
|
105
105
|
J = Symbol.for("react.module.reference");
|
|
106
106
|
function U(s) {
|
|
107
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || G || s === o || s === u || s === f ||
|
|
107
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || G || s === o || s === u || s === f || D || s === d || E || z || A || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === m || s.$$typeof === i || s.$$typeof === l || s.$$typeof === c || // This needs to include all possible module reference object
|
|
108
108
|
// types supported by any Flight configuration anywhere since
|
|
109
109
|
// we don't know which Flight build this will end up being used
|
|
110
110
|
// with.
|
|
@@ -158,21 +158,21 @@ function xo() {
|
|
|
158
158
|
var Y = s, K = Y._payload, B = Y._init;
|
|
159
159
|
try {
|
|
160
160
|
return q(B(K));
|
|
161
|
-
} catch (
|
|
161
|
+
} catch (I) {
|
|
162
162
|
return null;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
var _ = Object.assign, k = 0, C, L, M,
|
|
168
|
+
var _ = Object.assign, k = 0, C, L, M, N, W, F, xe;
|
|
169
169
|
function Pe() {
|
|
170
170
|
}
|
|
171
171
|
Pe.__reactDisabledLog = !0;
|
|
172
172
|
function rt() {
|
|
173
173
|
{
|
|
174
174
|
if (k === 0) {
|
|
175
|
-
C = console.log, L = console.info, M = console.warn,
|
|
175
|
+
C = console.log, L = console.info, M = console.warn, N = console.error, W = console.group, F = console.groupCollapsed, xe = console.groupEnd;
|
|
176
176
|
var s = {
|
|
177
177
|
configurable: !0,
|
|
178
178
|
enumerable: !0,
|
|
@@ -211,7 +211,7 @@ function xo() {
|
|
|
211
211
|
value: M
|
|
212
212
|
}),
|
|
213
213
|
error: _({}, s, {
|
|
214
|
-
value:
|
|
214
|
+
value: N
|
|
215
215
|
}),
|
|
216
216
|
group: _({}, s, {
|
|
217
217
|
value: W
|
|
@@ -228,7 +228,7 @@ function xo() {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
var se = x.ReactCurrentDispatcher, ge;
|
|
231
|
-
function
|
|
231
|
+
function Ne(s, b, T) {
|
|
232
232
|
{
|
|
233
233
|
if (ge === void 0)
|
|
234
234
|
try {
|
|
@@ -243,8 +243,8 @@ function xo() {
|
|
|
243
243
|
}
|
|
244
244
|
var yt = !1, nt;
|
|
245
245
|
{
|
|
246
|
-
var
|
|
247
|
-
nt = new
|
|
246
|
+
var Dn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
247
|
+
nt = new Dn();
|
|
248
248
|
}
|
|
249
249
|
function or(s, b) {
|
|
250
250
|
if (!s || yt)
|
|
@@ -294,17 +294,17 @@ function xo() {
|
|
|
294
294
|
}
|
|
295
295
|
} catch (ne) {
|
|
296
296
|
if (ne && O && typeof ne.stack == "string") {
|
|
297
|
-
for (var
|
|
297
|
+
for (var I = ne.stack.split(`
|
|
298
298
|
`), te = O.stack.split(`
|
|
299
|
-
`), Q =
|
|
299
|
+
`), Q = I.length - 1, ee = te.length - 1; Q >= 1 && ee >= 0 && I[Q] !== te[ee]; )
|
|
300
300
|
ee--;
|
|
301
301
|
for (; Q >= 1 && ee >= 0; Q--, ee--)
|
|
302
|
-
if (
|
|
302
|
+
if (I[Q] !== te[ee]) {
|
|
303
303
|
if (Q !== 1 || ee !== 1)
|
|
304
304
|
do
|
|
305
|
-
if (Q--, ee--, ee < 0 ||
|
|
305
|
+
if (Q--, ee--, ee < 0 || I[Q] !== te[ee]) {
|
|
306
306
|
var ce = `
|
|
307
|
-
` +
|
|
307
|
+
` + I[Q].replace(" at new ", " at ");
|
|
308
308
|
return s.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", s.displayName)), typeof s == "function" && nt.set(s, ce), ce;
|
|
309
309
|
}
|
|
310
310
|
while (Q >= 1 && ee >= 0);
|
|
@@ -314,10 +314,10 @@ function xo() {
|
|
|
314
314
|
} finally {
|
|
315
315
|
yt = !1, se.current = K, re(), Error.prepareStackTrace = Y;
|
|
316
316
|
}
|
|
317
|
-
var Ae = s ? s.displayName || s.name : "", Le = Ae ?
|
|
317
|
+
var Ae = s ? s.displayName || s.name : "", Le = Ae ? Ne(Ae) : "";
|
|
318
318
|
return typeof s == "function" && nt.set(s, Le), Le;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Nn(s, b, T) {
|
|
321
321
|
return or(s, !1);
|
|
322
322
|
}
|
|
323
323
|
function $n(s) {
|
|
@@ -330,17 +330,17 @@ function xo() {
|
|
|
330
330
|
if (typeof s == "function")
|
|
331
331
|
return or(s, $n(s));
|
|
332
332
|
if (typeof s == "string")
|
|
333
|
-
return
|
|
333
|
+
return Ne(s);
|
|
334
334
|
switch (s) {
|
|
335
335
|
case u:
|
|
336
|
-
return
|
|
336
|
+
return Ne("Suspense");
|
|
337
337
|
case f:
|
|
338
|
-
return
|
|
338
|
+
return Ne("SuspenseList");
|
|
339
339
|
}
|
|
340
340
|
if (typeof s == "object")
|
|
341
341
|
switch (s.$$typeof) {
|
|
342
342
|
case c:
|
|
343
|
-
return
|
|
343
|
+
return Nn(s.render);
|
|
344
344
|
case m:
|
|
345
345
|
return ot(s.type, b, T);
|
|
346
346
|
case p: {
|
|
@@ -366,17 +366,17 @@ function xo() {
|
|
|
366
366
|
var K = Function.call.bind($e);
|
|
367
367
|
for (var B in s)
|
|
368
368
|
if (K(s, B)) {
|
|
369
|
-
var
|
|
369
|
+
var I = void 0;
|
|
370
370
|
try {
|
|
371
371
|
if (typeof s[B] != "function") {
|
|
372
372
|
var te = Error((O || "React class") + ": " + T + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
373
373
|
throw te.name = "Invariant Violation", te;
|
|
374
374
|
}
|
|
375
|
-
|
|
375
|
+
I = s[B](b, B, O, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
376
376
|
} catch (Q) {
|
|
377
|
-
|
|
377
|
+
I = Q;
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
I && !(I instanceof Error) && (it(Y), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", T, B, typeof I), it(null)), I instanceof Error && !(I.message in ir) && (ir[I.message] = !0, it(Y), w("Failed %s type: %s", T, I.message), it(null));
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
@@ -452,7 +452,7 @@ function xo() {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
var eo = function(s, b, T, O, Y, K, B) {
|
|
455
|
-
var
|
|
455
|
+
var I = {
|
|
456
456
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
457
|
$$typeof: t,
|
|
458
458
|
// Built-in properties that belong on the element
|
|
@@ -463,27 +463,27 @@ function xo() {
|
|
|
463
463
|
// Record the component responsible for creating this element.
|
|
464
464
|
_owner: K
|
|
465
465
|
};
|
|
466
|
-
return
|
|
466
|
+
return I._store = {}, Object.defineProperty(I._store, "validated", {
|
|
467
467
|
configurable: !1,
|
|
468
468
|
enumerable: !1,
|
|
469
469
|
writable: !0,
|
|
470
470
|
value: !1
|
|
471
|
-
}), Object.defineProperty(
|
|
471
|
+
}), Object.defineProperty(I, "_self", {
|
|
472
472
|
configurable: !1,
|
|
473
473
|
enumerable: !1,
|
|
474
474
|
writable: !1,
|
|
475
475
|
value: O
|
|
476
|
-
}), Object.defineProperty(
|
|
476
|
+
}), Object.defineProperty(I, "_source", {
|
|
477
477
|
configurable: !1,
|
|
478
478
|
enumerable: !1,
|
|
479
479
|
writable: !1,
|
|
480
480
|
value: Y
|
|
481
|
-
}), Object.freeze && (Object.freeze(
|
|
481
|
+
}), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
|
|
482
482
|
};
|
|
483
483
|
function to(s, b, T, O, Y) {
|
|
484
484
|
{
|
|
485
|
-
var K, B = {},
|
|
486
|
-
T !== void 0 && (sr(T),
|
|
485
|
+
var K, B = {}, I = null, te = null;
|
|
486
|
+
T !== void 0 && (sr(T), I = "" + T), Xn(b) && (sr(b.key), I = "" + b.key), Kn(b) && (te = b.ref, Jn(b, Y));
|
|
487
487
|
for (K in b)
|
|
488
488
|
$e.call(b, K) && !Yn.hasOwnProperty(K) && (B[K] = b[K]);
|
|
489
489
|
if (s && s.defaultProps) {
|
|
@@ -491,11 +491,11 @@ function xo() {
|
|
|
491
491
|
for (K in Q)
|
|
492
492
|
B[K] === void 0 && (B[K] = Q[K]);
|
|
493
493
|
}
|
|
494
|
-
if (
|
|
494
|
+
if (I || te) {
|
|
495
495
|
var ee = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
496
|
-
|
|
496
|
+
I && Zn(B, ee), te && Qn(B, ee);
|
|
497
497
|
}
|
|
498
|
-
return eo(s,
|
|
498
|
+
return eo(s, I, te, Y, O, cr.current, B);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
var Rt = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
|
|
@@ -613,12 +613,12 @@ Check the top-level render call using <` + T + ">.");
|
|
|
613
613
|
{
|
|
614
614
|
var B = U(s);
|
|
615
615
|
if (!B) {
|
|
616
|
-
var
|
|
617
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
616
|
+
var I = "";
|
|
617
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
618
|
var te = ro();
|
|
619
|
-
te ?
|
|
619
|
+
te ? I += te : I += gr();
|
|
620
620
|
var Q;
|
|
621
|
-
s === null ? Q = "null" : wt(s) ? Q = "array" : s !== void 0 && s.$$typeof === t ? (Q = "<" + (q(s.type) || "Unknown") + " />",
|
|
621
|
+
s === null ? Q = "null" : wt(s) ? Q = "array" : s !== void 0 && s.$$typeof === t ? (Q = "<" + (q(s.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, I);
|
|
622
622
|
}
|
|
623
623
|
var ee = to(s, b, T, Y, K);
|
|
624
624
|
if (ee == null)
|
|
@@ -708,9 +708,9 @@ const Kt = "-", yo = (e) => {
|
|
|
708
708
|
validators: []
|
|
709
709
|
};
|
|
710
710
|
return So(Object.entries(e.classGroups), r).forEach(([a, i]) => {
|
|
711
|
-
|
|
711
|
+
It(i, n, a, t);
|
|
712
712
|
}), n;
|
|
713
|
-
},
|
|
713
|
+
}, It = (e, t, r, n) => {
|
|
714
714
|
e.forEach((o) => {
|
|
715
715
|
if (typeof o == "string") {
|
|
716
716
|
const a = o === "" ? t : Tr(t, o);
|
|
@@ -719,7 +719,7 @@ const Kt = "-", yo = (e) => {
|
|
|
719
719
|
}
|
|
720
720
|
if (typeof o == "function") {
|
|
721
721
|
if (Eo(o)) {
|
|
722
|
-
|
|
722
|
+
It(o(n), t, r, n);
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
725
|
t.validators.push({
|
|
@@ -729,7 +729,7 @@ const Kt = "-", yo = (e) => {
|
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
731
|
Object.entries(o).forEach(([a, i]) => {
|
|
732
|
-
|
|
732
|
+
It(i, Tr(t, a), r, n);
|
|
733
733
|
});
|
|
734
734
|
});
|
|
735
735
|
}, Tr = (e, t) => {
|
|
@@ -884,7 +884,7 @@ function Bt(e, ...t) {
|
|
|
884
884
|
const Z = (e) => {
|
|
885
885
|
const t = (r) => r[e] || [];
|
|
886
886
|
return t.isThemeGetter = !0, t;
|
|
887
|
-
}, Qr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ho = /^\d+\/\d+$/, _o = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ao = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, jo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (e) => Oe(e) || _o.has(e) || Ho.test(e), ye = (e) => Be(e, "length", Uo), Oe = (e) => !!e && !Number.isNaN(Number(e)), kt = (e) => Be(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)),
|
|
887
|
+
}, Qr = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ho = /^\d+\/\d+$/, _o = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ao = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, jo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (e) => Oe(e) || _o.has(e) || Ho.test(e), ye = (e) => Be(e, "length", Uo), Oe = (e) => !!e && !Number.isNaN(Number(e)), kt = (e) => Be(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), j = (e) => Qr.test(e), we = (e) => Ao.test(e), Bo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Do = (e) => Be(e, Bo, en), No = (e) => Be(e, "position", en), $o = /* @__PURE__ */ new Set(["image", "url"]), Vo = (e) => Be(e, $o, Yo), Go = (e) => Be(e, "", qo), qe = () => !0, Be = (e, t, r) => {
|
|
888
888
|
const n = Qr.exec(e);
|
|
889
889
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
890
890
|
}, Uo = (e) => (
|
|
@@ -892,8 +892,8 @@ const Z = (e) => {
|
|
|
892
892
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
893
893
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
894
894
|
Wo.test(e) && !Oo.test(e)
|
|
895
|
-
), en = () => !1, qo = (e) => jo.test(e), Yo = (e) => Fo.test(e),
|
|
896
|
-
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"), o = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), l = Z("borderWidth"), c = Z("contrast"), u = Z("grayscale"), f = Z("hueRotate"), m = Z("invert"), p = Z("gap"), d = Z("gradientColorStops"), g = Z("gradientColorStopPositions"), h = Z("inset"), y = Z("margin"), x = Z("opacity"), w = Z("padding"), S = Z("saturate"), E = Z("scale"), z = Z("sepia"), A = Z("skew"),
|
|
895
|
+
), en = () => !1, qo = (e) => jo.test(e), Yo = (e) => Fo.test(e), Dt = () => {
|
|
896
|
+
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), n = Z("brightness"), o = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), l = Z("borderWidth"), c = Z("contrast"), u = Z("grayscale"), f = Z("hueRotate"), m = Z("invert"), p = Z("gap"), d = Z("gradientColorStops"), g = Z("gradientColorStopPositions"), h = Z("inset"), y = Z("margin"), x = Z("opacity"), w = Z("padding"), S = Z("saturate"), E = Z("scale"), z = Z("sepia"), A = Z("skew"), D = Z("space"), G = Z("translate"), J = () => ["auto", "contain", "none"], U = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", j, t], H = () => [j, t], q = () => ["", pe, ye], _ = () => ["auto", Oe, j], k = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], N = () => ["", "0", j], W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Oe, j];
|
|
897
897
|
return {
|
|
898
898
|
cacheSize: 500,
|
|
899
899
|
separator: ":",
|
|
@@ -907,19 +907,19 @@ const Z = (e) => {
|
|
|
907
907
|
borderSpacing: H(),
|
|
908
908
|
borderWidth: q(),
|
|
909
909
|
contrast: F(),
|
|
910
|
-
grayscale:
|
|
910
|
+
grayscale: N(),
|
|
911
911
|
hueRotate: F(),
|
|
912
|
-
invert:
|
|
912
|
+
invert: N(),
|
|
913
913
|
gap: H(),
|
|
914
914
|
gradientColorStops: [e],
|
|
915
|
-
gradientColorStopPositions: [
|
|
915
|
+
gradientColorStopPositions: [Io, ye],
|
|
916
916
|
inset: V(),
|
|
917
917
|
margin: V(),
|
|
918
918
|
opacity: F(),
|
|
919
919
|
padding: H(),
|
|
920
920
|
saturate: F(),
|
|
921
921
|
scale: F(),
|
|
922
|
-
sepia:
|
|
922
|
+
sepia: N(),
|
|
923
923
|
skew: F(),
|
|
924
924
|
space: H(),
|
|
925
925
|
translate: H()
|
|
@@ -1174,14 +1174,14 @@ const Z = (e) => {
|
|
|
1174
1174
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1175
1175
|
*/
|
|
1176
1176
|
grow: [{
|
|
1177
|
-
grow:
|
|
1177
|
+
grow: N()
|
|
1178
1178
|
}],
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Flex Shrink
|
|
1181
1181
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1182
1182
|
*/
|
|
1183
1183
|
shrink: [{
|
|
1184
|
-
shrink:
|
|
1184
|
+
shrink: N()
|
|
1185
1185
|
}],
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Order
|
|
@@ -1487,7 +1487,7 @@ const Z = (e) => {
|
|
|
1487
1487
|
* @see https://tailwindcss.com/docs/space
|
|
1488
1488
|
*/
|
|
1489
1489
|
"space-x": [{
|
|
1490
|
-
"space-x": [
|
|
1490
|
+
"space-x": [D]
|
|
1491
1491
|
}],
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Space Between X Reverse
|
|
@@ -1499,7 +1499,7 @@ const Z = (e) => {
|
|
|
1499
1499
|
* @see https://tailwindcss.com/docs/space
|
|
1500
1500
|
*/
|
|
1501
1501
|
"space-y": [{
|
|
1502
|
-
"space-y": [
|
|
1502
|
+
"space-y": [D]
|
|
1503
1503
|
}],
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Space Between Y Reverse
|
|
@@ -1825,7 +1825,7 @@ const Z = (e) => {
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/background-position
|
|
1826
1826
|
*/
|
|
1827
1827
|
"bg-position": [{
|
|
1828
|
-
bg: [...k(),
|
|
1828
|
+
bg: [...k(), No]
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Background Repeat
|
|
@@ -1841,7 +1841,7 @@ const Z = (e) => {
|
|
|
1841
1841
|
* @see https://tailwindcss.com/docs/background-size
|
|
1842
1842
|
*/
|
|
1843
1843
|
"bg-size": [{
|
|
1844
|
-
bg: ["auto", "cover", "contain",
|
|
1844
|
+
bg: ["auto", "cover", "contain", Do]
|
|
1845
1845
|
}],
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Background Image
|
|
@@ -2947,7 +2947,7 @@ const Z = (e) => {
|
|
|
2947
2947
|
const n = t[r];
|
|
2948
2948
|
n !== void 0 && (e[r] = (e[r] || []).concat(n));
|
|
2949
2949
|
}
|
|
2950
|
-
}, Zo = (e, ...t) => typeof e == "function" ? Bt(
|
|
2950
|
+
}, Zo = (e, ...t) => typeof e == "function" ? Bt(Dt, e, ...t) : Bt(() => Ko(Dt(), e), ...t), ct = /* @__PURE__ */ Bt(Dt), Cr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
2951
2951
|
"div",
|
|
2952
2952
|
{
|
|
2953
2953
|
className: `ds-flex ds-items-center ds-justify-center ${t === "small" ? "ds-h-5 ds-w-5" : "ds-h-6 ds-w-6"}`,
|
|
@@ -3793,11 +3793,12 @@ const ut = {
|
|
|
3793
3793
|
secondaryDark: "var(--text-secondary-dark)",
|
|
3794
3794
|
textTertiaryDark: "var(--text-tertiary-dark)",
|
|
3795
3795
|
textSecondaryPlusDark: "var(--text-secondary-plus-dark)",
|
|
3796
|
-
|
|
3796
|
+
textPrimaryInverse: "var(--text-primary-inverse)"
|
|
3797
3797
|
},
|
|
3798
3798
|
Background: {
|
|
3799
3799
|
primary: "var(--background-primary)",
|
|
3800
3800
|
secondary: "var(--background-secondary)",
|
|
3801
|
+
primaryInverse: "var(--background-primary-inverse)",
|
|
3801
3802
|
accentEggplant: {
|
|
3802
3803
|
100: "var(--accent-eggplant-100)",
|
|
3803
3804
|
//deprecated
|
|
@@ -3904,18 +3905,18 @@ const Qa = (e, t = "AED") => {
|
|
|
3904
3905
|
}) : "";
|
|
3905
3906
|
return `${t} ${n}`;
|
|
3906
3907
|
}, kr = {
|
|
3907
|
-
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-
|
|
3908
|
+
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-rounded-sm hover:ds-text-Text-textPrimaryInverse hover:ds-bg-Background-accentPrimary-highlight active:ds-bg-Background-accentPrimary-darkened focus:ds-rounded-none focus:ds-bg-Background-accentPrimary-100 focus:ds-border focus:ds-border-Fills-inversePrimary focus:ds-shadow-[0px_0px_0px_1px_rgba(109,54,169,1)] disabled:focus:ds-shadow-none disabled:ds-bg-Background-accentPrimary-20",
|
|
3908
3909
|
secondary: "ds-text-Background-accentPrimary-100 ds-rounded-sm ds-border ds-border-Fills-secondary hover:ds-text-Background-accentPrimary-100 hover:ds-border hover:ds-bg-Background-accentPrimary-5 hover:ds-border-Fills-primary active:ds-text-Background-accentPrimary-100 active:ds-border active:ds-border-Fills-Background-accentPrimary-100 active:ds-bg-Background-accentPrimary-5 focus:ds-bg-Background-accentPrimary-5 focus:ds-bg-Background-accentPrimary-5 focus:ds-text-accentPrimary-100 focus:ds-border-2 focus:ds-border-Background-accentPrimary-100 disabled:ds-border disabled:ds-border-Fills-tertiary disabled:ds-text-Text-tertiary disabled:ds-bg-transparent",
|
|
3909
3910
|
tertiary: "ds-text-Text-secondary ds-rounded-sm hover:ds-bg-Fills-quinary active:ds-bg-Fills-quinary focus:ds-bg-Fills-quaternary disabled:ds-text-Fills-quaternary disabled:ds-bg-Fills-quinary",
|
|
3910
|
-
quaternary: "ds-text-accentPrimary-100 ds-rounded-sm hover:ds-bg-Background-accentPrimary-5 active:ds-bg-Background-accentPrimary-5 active:ds-text-accentPrimary-50 focus:ds-bg-Background-accentPrimary-100 focus:ds-text-Text-
|
|
3911
|
+
quaternary: "ds-text-accentPrimary-100 ds-rounded-sm hover:ds-bg-Background-accentPrimary-5 active:ds-bg-Background-accentPrimary-5 active:ds-text-accentPrimary-50 focus:ds-bg-Background-accentPrimary-100 focus:ds-text-Text-textPrimaryInverse disabled:ds-text-Background-accentPrimary-20",
|
|
3911
3912
|
small: "ds-py-1.5 ds-px-8 ds_SmallBodyEmphasized",
|
|
3912
3913
|
large: "ds-py-3 ds-px-8 ds_MediumBodyEmphasized",
|
|
3913
3914
|
empty: ""
|
|
3914
3915
|
}, ei = {
|
|
3915
|
-
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-
|
|
3916
|
+
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-rounded-none ds-border ds-border-Fills-inversePrimary ds-shadow-[0px_0px_0px_1px_rgba(109,54,169,1)]",
|
|
3916
3917
|
secondary: "ds-rounded-sm ds-border ds-bg-Background-accentPrimary-5 ds-text-accentPrimary-100 ds-border-2 ds-border-Background-accentPrimary-100",
|
|
3917
3918
|
tertiary: "ds-text-Text-secondary ds-rounded-sm ds-bg-Fills-quaternary",
|
|
3918
|
-
quaternary: "ds-rounded-sm ds-bg-Background-accentPrimary-100 ds-text-Text-
|
|
3919
|
+
quaternary: "ds-rounded-sm ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse",
|
|
3919
3920
|
empty: "ds-rounded-sm ds-bg-none"
|
|
3920
3921
|
}, an = Fe.forwardRef(
|
|
3921
3922
|
(g, d) => {
|
|
@@ -4032,7 +4033,7 @@ const ti = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4032
4033
|
{
|
|
4033
4034
|
width: "16",
|
|
4034
4035
|
height: "16",
|
|
4035
|
-
fill: "
|
|
4036
|
+
fill: "var(--fills-inverse-primary)"
|
|
4036
4037
|
}
|
|
4037
4038
|
) }) })
|
|
4038
4039
|
]
|
|
@@ -4059,13 +4060,13 @@ const ti = ({ className: e }) => /* @__PURE__ */ R.jsxs(
|
|
|
4059
4060
|
{
|
|
4060
4061
|
width: "16",
|
|
4061
4062
|
height: "16",
|
|
4062
|
-
fill: "
|
|
4063
|
+
fill: "var(--fills-inverse-primary)"
|
|
4063
4064
|
}
|
|
4064
4065
|
) }) })
|
|
4065
4066
|
]
|
|
4066
4067
|
}
|
|
4067
4068
|
);
|
|
4068
|
-
function
|
|
4069
|
+
function De(e) {
|
|
4069
4070
|
return ln(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4070
4071
|
}
|
|
4071
4072
|
function ie(e) {
|
|
@@ -4085,7 +4086,7 @@ function X(e) {
|
|
|
4085
4086
|
function ae(e) {
|
|
4086
4087
|
return e instanceof HTMLElement || e instanceof ie(e).HTMLElement;
|
|
4087
4088
|
}
|
|
4088
|
-
function
|
|
4089
|
+
function Nt(e) {
|
|
4089
4090
|
return typeof ShadowRoot == "undefined" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
|
|
4090
4091
|
}
|
|
4091
4092
|
function Ze(e) {
|
|
@@ -4098,7 +4099,7 @@ function Ze(e) {
|
|
|
4098
4099
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(o);
|
|
4099
4100
|
}
|
|
4100
4101
|
function oi(e) {
|
|
4101
|
-
return ["table", "td", "th"].includes(
|
|
4102
|
+
return ["table", "td", "th"].includes(De(e));
|
|
4102
4103
|
}
|
|
4103
4104
|
function bt(e) {
|
|
4104
4105
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -4128,7 +4129,7 @@ function Jt() {
|
|
|
4128
4129
|
return typeof CSS == "undefined" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4129
4130
|
}
|
|
4130
4131
|
function Ce(e) {
|
|
4131
|
-
return ["html", "body", "#document"].includes(
|
|
4132
|
+
return ["html", "body", "#document"].includes(De(e));
|
|
4132
4133
|
}
|
|
4133
4134
|
function de(e) {
|
|
4134
4135
|
return ie(e).getComputedStyle(e);
|
|
@@ -4143,16 +4144,16 @@ function xt(e) {
|
|
|
4143
4144
|
};
|
|
4144
4145
|
}
|
|
4145
4146
|
function ve(e) {
|
|
4146
|
-
if (
|
|
4147
|
+
if (De(e) === "html")
|
|
4147
4148
|
return e;
|
|
4148
4149
|
const t = (
|
|
4149
4150
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
4150
4151
|
e.assignedSlot || // DOM Element detected.
|
|
4151
4152
|
e.parentNode || // ShadowRoot detected.
|
|
4152
|
-
|
|
4153
|
+
Nt(e) && e.host || // Fallback.
|
|
4153
4154
|
be(e)
|
|
4154
4155
|
);
|
|
4155
|
-
return
|
|
4156
|
+
return Nt(t) ? t.host : t;
|
|
4156
4157
|
}
|
|
4157
4158
|
function sn(e) {
|
|
4158
4159
|
const t = ve(e);
|
|
@@ -4172,13 +4173,13 @@ function $t(e) {
|
|
|
4172
4173
|
}
|
|
4173
4174
|
return t;
|
|
4174
4175
|
}
|
|
4175
|
-
function
|
|
4176
|
+
function Ie(e, t) {
|
|
4176
4177
|
if (!e || !t)
|
|
4177
4178
|
return !1;
|
|
4178
4179
|
const r = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
4179
4180
|
if (e.contains(t))
|
|
4180
4181
|
return !0;
|
|
4181
|
-
if (r &&
|
|
4182
|
+
if (r && Nt(r)) {
|
|
4182
4183
|
let n = t;
|
|
4183
4184
|
for (; n; ) {
|
|
4184
4185
|
if (e === n)
|
|
@@ -4682,7 +4683,7 @@ function Zt(e, t) {
|
|
|
4682
4683
|
};
|
|
4683
4684
|
});
|
|
4684
4685
|
}
|
|
4685
|
-
const
|
|
4686
|
+
const Ii = function(e) {
|
|
4686
4687
|
return e === void 0 && (e = {}), {
|
|
4687
4688
|
name: "flip",
|
|
4688
4689
|
options: e,
|
|
@@ -4713,8 +4714,8 @@ const Di = function(e) {
|
|
|
4713
4714
|
]);
|
|
4714
4715
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
4715
4716
|
return {};
|
|
4716
|
-
const w = ze(a), S = Me(c), E = ze(c) === c, z = yield u.isRTL == null ? void 0 : u.isRTL(f.floating), A = d || (E || !y ? [ft(c)] : hi(c)),
|
|
4717
|
-
!d &&
|
|
4717
|
+
const w = ze(a), S = Me(c), E = ze(c) === c, z = yield u.isRTL == null ? void 0 : u.isRTL(f.floating), A = d || (E || !y ? [ft(c)] : hi(c)), D = h !== "none";
|
|
4718
|
+
!d && D && A.push(...vi(c, y, h, z));
|
|
4718
4719
|
const G = [c, ...A], J = yield Zt(r, x), U = [];
|
|
4719
4720
|
let V = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
4720
4721
|
if (m && U.push(J[w]), p) {
|
|
@@ -4737,13 +4738,13 @@ const Di = function(e) {
|
|
|
4737
4738
|
placement: L
|
|
4738
4739
|
}
|
|
4739
4740
|
};
|
|
4740
|
-
let M = (q = V.filter((
|
|
4741
|
+
let M = (q = V.filter((N) => N.overflows[0] <= 0).sort((N, W) => N.overflows[1] - W.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
4741
4742
|
if (!M)
|
|
4742
4743
|
switch (g) {
|
|
4743
4744
|
case "bestFit": {
|
|
4744
4745
|
var _;
|
|
4745
|
-
const
|
|
4746
|
-
if (
|
|
4746
|
+
const N = (_ = V.filter((W) => {
|
|
4747
|
+
if (D) {
|
|
4747
4748
|
const F = Me(W.placement);
|
|
4748
4749
|
return F === S || // Create a bias to the `y` side axis due to horizontal
|
|
4749
4750
|
// reading directions favoring greater width.
|
|
@@ -4751,7 +4752,7 @@ const Di = function(e) {
|
|
|
4751
4752
|
}
|
|
4752
4753
|
return !0;
|
|
4753
4754
|
}).map((W) => [W.placement, W.overflows.filter((F) => F > 0).reduce((F, xe) => F + xe, 0)]).sort((W, F) => W[1] - F[1])[0]) == null ? void 0 : _[0];
|
|
4754
|
-
|
|
4755
|
+
N && (M = N);
|
|
4755
4756
|
break;
|
|
4756
4757
|
}
|
|
4757
4758
|
case "initialPlacement":
|
|
@@ -4799,7 +4800,7 @@ function Bi(e, t) {
|
|
|
4799
4800
|
};
|
|
4800
4801
|
});
|
|
4801
4802
|
}
|
|
4802
|
-
const
|
|
4803
|
+
const Di = function(e) {
|
|
4803
4804
|
return e === void 0 && (e = 0), {
|
|
4804
4805
|
name: "offset",
|
|
4805
4806
|
options: e,
|
|
@@ -4822,7 +4823,7 @@ const Ni = function(e) {
|
|
|
4822
4823
|
});
|
|
4823
4824
|
}
|
|
4824
4825
|
};
|
|
4825
|
-
},
|
|
4826
|
+
}, Ni = function(e) {
|
|
4826
4827
|
return e === void 0 && (e = {}), {
|
|
4827
4828
|
name: "shift",
|
|
4828
4829
|
options: e,
|
|
@@ -4900,13 +4901,13 @@ const Ni = function(e) {
|
|
|
4900
4901
|
let h, y;
|
|
4901
4902
|
f === "top" || f === "bottom" ? (h = f, y = m === ((yield a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = f, h = m === "end" ? "top" : "bottom");
|
|
4902
4903
|
const x = g - u.top - u.bottom, w = d - u.left - u.right, S = Se(g - u[h], x), E = Se(d - u[y], w), z = !r.middlewareData.shift;
|
|
4903
|
-
let A = S,
|
|
4904
|
-
if (p ?
|
|
4904
|
+
let A = S, D = E;
|
|
4905
|
+
if (p ? D = m || z ? Se(E, w) : w : A = m || z ? Se(S, x) : x, z && !m) {
|
|
4905
4906
|
const U = le(u.left, 0), V = le(u.right, 0), H = le(u.top, 0), q = le(u.bottom, 0);
|
|
4906
|
-
p ?
|
|
4907
|
+
p ? D = d - 2 * (U !== 0 || V !== 0 ? U + V : le(u.left, u.right)) : A = g - 2 * (H !== 0 || q !== 0 ? H + q : le(u.top, u.bottom));
|
|
4907
4908
|
}
|
|
4908
4909
|
yield l($(P({}, r), {
|
|
4909
|
-
availableWidth:
|
|
4910
|
+
availableWidth: D,
|
|
4910
4911
|
availableHeight: A
|
|
4911
4912
|
}));
|
|
4912
4913
|
const G = yield a.getDimensions(i.floating);
|
|
@@ -4995,7 +4996,7 @@ function Ui(e) {
|
|
|
4995
4996
|
scrollTop: 0
|
|
4996
4997
|
}, u = ke(1);
|
|
4997
4998
|
const f = ke(0), m = ae(n);
|
|
4998
|
-
if ((m || !m && !a) && ((
|
|
4999
|
+
if ((m || !m && !a) && ((De(n) !== "body" || Ze(i)) && (c = xt(n)), ae(n))) {
|
|
4999
5000
|
const p = He(n);
|
|
5000
5001
|
u = je(n), f.x = p.x + n.clientLeft, f.y = p.y + n.clientTop;
|
|
5001
5002
|
}
|
|
@@ -5072,7 +5073,7 @@ function Ji(e, t) {
|
|
|
5072
5073
|
const r = t.get(e);
|
|
5073
5074
|
if (r)
|
|
5074
5075
|
return r;
|
|
5075
|
-
let n = Te(e, [], !1).filter((l) => X(l) &&
|
|
5076
|
+
let n = Te(e, [], !1).filter((l) => X(l) && De(l) !== "body"), o = null;
|
|
5076
5077
|
const a = de(e).position === "fixed";
|
|
5077
5078
|
let i = a ? ve(e) : e;
|
|
5078
5079
|
for (; X(i) && !Ce(i); ) {
|
|
@@ -5117,7 +5118,7 @@ function ea(e, t, r) {
|
|
|
5117
5118
|
};
|
|
5118
5119
|
const c = ke(0);
|
|
5119
5120
|
if (n || !n && !a)
|
|
5120
|
-
if ((
|
|
5121
|
+
if ((De(t) !== "body" || Ze(o)) && (l = xt(t)), n) {
|
|
5121
5122
|
const m = He(t, !0, a, t);
|
|
5122
5123
|
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
5123
5124
|
} else o && (c.x = En(o));
|
|
@@ -5263,7 +5264,7 @@ function ia(e, t, r, n) {
|
|
|
5263
5264
|
}), m == null || m(), (x = d) == null || x.disconnect(), d = null, c && cancelAnimationFrame(g);
|
|
5264
5265
|
};
|
|
5265
5266
|
}
|
|
5266
|
-
const aa =
|
|
5267
|
+
const aa = Di, la = Ni, sa = Ii, ca = $i, ua = (e, t, r) => {
|
|
5267
5268
|
const n = /* @__PURE__ */ new Map(), o = P({
|
|
5268
5269
|
platform: na
|
|
5269
5270
|
}, r), a = $(P({}, o.platform), {
|
|
@@ -5343,21 +5344,21 @@ function da(e) {
|
|
|
5343
5344
|
const [g, h] = v.useState(null), [y, x] = v.useState(null), w = v.useCallback((L) => {
|
|
5344
5345
|
L !== A.current && (A.current = L, h(L));
|
|
5345
5346
|
}, []), S = v.useCallback((L) => {
|
|
5346
|
-
L !==
|
|
5347
|
-
}, []), E = a || g, z = i || y, A = v.useRef(null),
|
|
5348
|
-
if (!A.current || !
|
|
5347
|
+
L !== D.current && (D.current = L, x(L));
|
|
5348
|
+
}, []), E = a || g, z = i || y, A = v.useRef(null), D = v.useRef(null), G = v.useRef(f), J = c != null, U = Or(c), V = Or(o), H = v.useCallback(() => {
|
|
5349
|
+
if (!A.current || !D.current)
|
|
5349
5350
|
return;
|
|
5350
5351
|
const L = {
|
|
5351
5352
|
placement: t,
|
|
5352
5353
|
strategy: r,
|
|
5353
5354
|
middleware: p
|
|
5354
5355
|
};
|
|
5355
|
-
V.current && (L.platform = V.current), ua(A.current,
|
|
5356
|
-
const
|
|
5356
|
+
V.current && (L.platform = V.current), ua(A.current, D.current, L).then((M) => {
|
|
5357
|
+
const N = $(P({}, M), {
|
|
5357
5358
|
isPositioned: !0
|
|
5358
5359
|
});
|
|
5359
|
-
q.current && !pt(G.current,
|
|
5360
|
-
m(
|
|
5360
|
+
q.current && !pt(G.current, N) && (G.current = N, Kr.flushSync(() => {
|
|
5361
|
+
m(N);
|
|
5361
5362
|
}));
|
|
5362
5363
|
});
|
|
5363
5364
|
}, [p, t, r, V]);
|
|
@@ -5370,7 +5371,7 @@ function da(e) {
|
|
|
5370
5371
|
st(() => (q.current = !0, () => {
|
|
5371
5372
|
q.current = !1;
|
|
5372
5373
|
}), []), st(() => {
|
|
5373
|
-
if (E && (A.current = E), z && (
|
|
5374
|
+
if (E && (A.current = E), z && (D.current = z), E && z) {
|
|
5374
5375
|
if (U.current)
|
|
5375
5376
|
return U.current(E, z, H);
|
|
5376
5377
|
H();
|
|
@@ -5378,7 +5379,7 @@ function da(e) {
|
|
|
5378
5379
|
}, [E, z, H, U, J]);
|
|
5379
5380
|
const _ = v.useMemo(() => ({
|
|
5380
5381
|
reference: A,
|
|
5381
|
-
floating:
|
|
5382
|
+
floating: D,
|
|
5382
5383
|
setReference: w,
|
|
5383
5384
|
setFloating: S
|
|
5384
5385
|
}), [w, S]), k = v.useMemo(() => ({
|
|
@@ -5392,15 +5393,15 @@ function da(e) {
|
|
|
5392
5393
|
};
|
|
5393
5394
|
if (!k.floating)
|
|
5394
5395
|
return L;
|
|
5395
|
-
const M = Wr(k.floating, f.x),
|
|
5396
|
+
const M = Wr(k.floating, f.x), N = Wr(k.floating, f.y);
|
|
5396
5397
|
return l ? P($(P({}, L), {
|
|
5397
|
-
transform: "translate(" + M + "px, " +
|
|
5398
|
+
transform: "translate(" + M + "px, " + N + "px)"
|
|
5398
5399
|
}), Cn(k.floating) >= 1.5 && {
|
|
5399
5400
|
willChange: "transform"
|
|
5400
5401
|
}) : {
|
|
5401
5402
|
position: r,
|
|
5402
5403
|
left: M,
|
|
5403
|
-
top:
|
|
5404
|
+
top: N
|
|
5404
5405
|
};
|
|
5405
5406
|
}, [r, l, k.floating, f.x, f.y]);
|
|
5406
5407
|
return v.useMemo(() => $(P({}, f), {
|
|
@@ -5498,7 +5499,7 @@ function Mt(e) {
|
|
|
5498
5499
|
t.current = e;
|
|
5499
5500
|
}), t;
|
|
5500
5501
|
}
|
|
5501
|
-
const
|
|
5502
|
+
const Ir = /* @__PURE__ */ tt("safe-polygon");
|
|
5502
5503
|
function Ht(e, t, r) {
|
|
5503
5504
|
return r && !Ke(r) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
|
|
5504
5505
|
}
|
|
@@ -5517,7 +5518,7 @@ function el(e, t) {
|
|
|
5517
5518
|
mouseOnly: f = !1,
|
|
5518
5519
|
restMs: m = 0,
|
|
5519
5520
|
move: p = !0
|
|
5520
|
-
} = t, d = rr(), g = tr(), h = Mt(u), y = Mt(c), x = Mt(r), w = v.useRef(), S = v.useRef(-1), E = v.useRef(), z = v.useRef(-1), A = v.useRef(!0),
|
|
5521
|
+
} = t, d = rr(), g = tr(), h = Mt(u), y = Mt(c), x = Mt(r), w = v.useRef(), S = v.useRef(-1), E = v.useRef(), z = v.useRef(-1), A = v.useRef(!0), D = v.useRef(!1), G = v.useRef(() => {
|
|
5521
5522
|
}), J = v.useCallback(() => {
|
|
5522
5523
|
var k;
|
|
5523
5524
|
const C = (k = o.current.openEvent) == null ? void 0 : k.type;
|
|
@@ -5551,9 +5552,9 @@ function el(e, t) {
|
|
|
5551
5552
|
}, [y, n]), V = Re(() => {
|
|
5552
5553
|
G.current(), E.current = void 0;
|
|
5553
5554
|
}), H = Re(() => {
|
|
5554
|
-
if (
|
|
5555
|
+
if (D.current) {
|
|
5555
5556
|
const k = Ee(i.floating).body;
|
|
5556
|
-
k.style.pointerEvents = "", k.removeAttribute(
|
|
5557
|
+
k.style.pointerEvents = "", k.removeAttribute(Ir), D.current = !1;
|
|
5557
5558
|
}
|
|
5558
5559
|
});
|
|
5559
5560
|
v.useEffect(() => {
|
|
@@ -5588,7 +5589,7 @@ function el(e, t) {
|
|
|
5588
5589
|
};
|
|
5589
5590
|
return;
|
|
5590
5591
|
}
|
|
5591
|
-
(w.current === "touch" ? !
|
|
5592
|
+
(w.current === "touch" ? !Ie(i.floating, W.relatedTarget) : !0) && U(W);
|
|
5592
5593
|
}
|
|
5593
5594
|
function M(W) {
|
|
5594
5595
|
k() || o.current.floatingContext && (h.current == null || h.current($(P({}, o.current.floatingContext), {
|
|
@@ -5601,9 +5602,9 @@ function el(e, t) {
|
|
|
5601
5602
|
}))(W));
|
|
5602
5603
|
}
|
|
5603
5604
|
if (X(i.domReference)) {
|
|
5604
|
-
var
|
|
5605
|
+
var N;
|
|
5605
5606
|
const W = i.domReference;
|
|
5606
|
-
return r && W.addEventListener("mouseleave", M), (
|
|
5607
|
+
return r && W.addEventListener("mouseleave", M), (N = i.floating) == null || N.addEventListener("mouseleave", M), p && W.addEventListener("mousemove", C, {
|
|
5607
5608
|
once: !0
|
|
5608
5609
|
}), W.addEventListener("mouseenter", C), W.addEventListener("mouseleave", L), () => {
|
|
5609
5610
|
var F;
|
|
@@ -5614,13 +5615,13 @@ function el(e, t) {
|
|
|
5614
5615
|
var k;
|
|
5615
5616
|
if (l && r && (k = h.current) != null && k.__options.blockPointerEvents && J()) {
|
|
5616
5617
|
const L = Ee(i.floating).body;
|
|
5617
|
-
L.setAttribute(
|
|
5618
|
+
L.setAttribute(Ir, ""), L.style.pointerEvents = "none", D.current = !0;
|
|
5618
5619
|
const M = i.floating;
|
|
5619
5620
|
if (X(i.domReference) && M) {
|
|
5620
5621
|
var C;
|
|
5621
|
-
const
|
|
5622
|
-
return W && (W.style.pointerEvents = ""),
|
|
5623
|
-
|
|
5622
|
+
const N = i.domReference, W = d == null || (C = d.nodesRef.current.find((F) => F.id === g)) == null || (C = C.context) == null ? void 0 : C.elements.floating;
|
|
5623
|
+
return W && (W.style.pointerEvents = ""), N.style.pointerEvents = "auto", M.style.pointerEvents = "auto", () => {
|
|
5624
|
+
N.style.pointerEvents = "", M.style.pointerEvents = "";
|
|
5624
5625
|
};
|
|
5625
5626
|
}
|
|
5626
5627
|
}
|
|
@@ -5697,7 +5698,7 @@ function Ca() {
|
|
|
5697
5698
|
}
|
|
5698
5699
|
function At(e, t) {
|
|
5699
5700
|
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
5700
|
-
return !n || !
|
|
5701
|
+
return !n || !Ie(r, n);
|
|
5701
5702
|
}
|
|
5702
5703
|
function ka(e) {
|
|
5703
5704
|
yn(e, zn()).forEach((r) => {
|
|
@@ -5727,7 +5728,7 @@ let Pa;
|
|
|
5727
5728
|
function Br(e) {
|
|
5728
5729
|
e.key === "Tab" && (e.target, clearTimeout(Pa));
|
|
5729
5730
|
}
|
|
5730
|
-
const
|
|
5731
|
+
const Dr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
5731
5732
|
const [n, o] = v.useState();
|
|
5732
5733
|
fe(() => (dn() && o("button"), document.addEventListener("keydown", Br), () => {
|
|
5733
5734
|
document.removeEventListener("keydown", Br);
|
|
@@ -5742,7 +5743,7 @@ const Nr = /* @__PURE__ */ v.forwardRef(function(t, r) {
|
|
|
5742
5743
|
style: Ln
|
|
5743
5744
|
};
|
|
5744
5745
|
return /* @__PURE__ */ v.createElement("span", Ut({}, t, a));
|
|
5745
|
-
}), Mn = /* @__PURE__ */ v.createContext(null),
|
|
5746
|
+
}), Mn = /* @__PURE__ */ v.createContext(null), Nr = /* @__PURE__ */ tt("portal");
|
|
5746
5747
|
function La(e) {
|
|
5747
5748
|
e === void 0 && (e = {});
|
|
5748
5749
|
const {
|
|
@@ -5758,7 +5759,7 @@ function La(e) {
|
|
|
5758
5759
|
const c = t ? document.getElementById(t) : null;
|
|
5759
5760
|
if (!c) return;
|
|
5760
5761
|
const u = document.createElement("div");
|
|
5761
|
-
u.id = n, u.setAttribute(
|
|
5762
|
+
u.id = n, u.setAttribute(Nr, ""), c.appendChild(u), l.current = u, i(u);
|
|
5762
5763
|
}, [t, n]), fe(() => {
|
|
5763
5764
|
if (!n || l.current) return;
|
|
5764
5765
|
let c = r || (o == null ? void 0 : o.portalNode);
|
|
@@ -5766,7 +5767,7 @@ function La(e) {
|
|
|
5766
5767
|
let u = null;
|
|
5767
5768
|
t && (u = document.createElement("div"), u.id = t, c.appendChild(u));
|
|
5768
5769
|
const f = document.createElement("div");
|
|
5769
|
-
f.id = n, f.setAttribute(
|
|
5770
|
+
f.id = n, f.setAttribute(Nr, ""), c = u || c, c.appendChild(f), l.current = f, i(f);
|
|
5770
5771
|
}, [t, r, n, o]), a;
|
|
5771
5772
|
}
|
|
5772
5773
|
function Ma(e) {
|
|
@@ -5804,7 +5805,7 @@ function Ma(e) {
|
|
|
5804
5805
|
portalNode: a,
|
|
5805
5806
|
setFocusManagerState: l
|
|
5806
5807
|
}), [o, a])
|
|
5807
|
-
}, p && a && /* @__PURE__ */ v.createElement(
|
|
5808
|
+
}, p && a && /* @__PURE__ */ v.createElement(Dr, {
|
|
5808
5809
|
"data-type": "outside",
|
|
5809
5810
|
ref: c,
|
|
5810
5811
|
onFocus: (d) => {
|
|
@@ -5819,7 +5820,7 @@ function Ma(e) {
|
|
|
5819
5820
|
}), p && a && /* @__PURE__ */ v.createElement("span", {
|
|
5820
5821
|
"aria-owns": a.id,
|
|
5821
5822
|
style: Ln
|
|
5822
|
-
}), a && /* @__PURE__ */ Kr.createPortal(t, a), p && a && /* @__PURE__ */ v.createElement(
|
|
5823
|
+
}), a && /* @__PURE__ */ Kr.createPortal(t, a), p && a && /* @__PURE__ */ v.createElement(Dr, {
|
|
5823
5824
|
"data-type": "outside",
|
|
5824
5825
|
ref: u,
|
|
5825
5826
|
onFocus: (d) => {
|
|
@@ -5919,7 +5920,7 @@ function Oa(e, t) {
|
|
|
5919
5920
|
outsidePress: z
|
|
5920
5921
|
} = Gr(d), {
|
|
5921
5922
|
escapeKey: A,
|
|
5922
|
-
outsidePress:
|
|
5923
|
+
outsidePress: D
|
|
5923
5924
|
} = Gr(g), G = Re((_) => {
|
|
5924
5925
|
var k;
|
|
5925
5926
|
if (!r || !i || !l || _.key !== "Escape")
|
|
@@ -5927,9 +5928,9 @@ function Oa(e, t) {
|
|
|
5927
5928
|
const C = (k = a.current.floatingContext) == null ? void 0 : k.nodeId, L = h ? _t(h.nodesRef.current, C) : [];
|
|
5928
5929
|
if (!E && (_.stopPropagation(), L.length > 0)) {
|
|
5929
5930
|
let M = !0;
|
|
5930
|
-
if (L.forEach((
|
|
5931
|
+
if (L.forEach((N) => {
|
|
5931
5932
|
var W;
|
|
5932
|
-
if ((W =
|
|
5933
|
+
if ((W = N.context) != null && W.open && !N.context.dataRef.current.__escapeKeyBubbles) {
|
|
5933
5934
|
M = !1;
|
|
5934
5935
|
return;
|
|
5935
5936
|
}
|
|
@@ -5951,7 +5952,7 @@ function Oa(e, t) {
|
|
|
5951
5952
|
const L = S.current;
|
|
5952
5953
|
if (S.current = !1, u === "click" && L || C || typeof x == "function" && !x(_))
|
|
5953
5954
|
return;
|
|
5954
|
-
const M = We(_),
|
|
5955
|
+
const M = We(_), N = "[" + tt("inert") + "]", W = Ee(o.floating).querySelectorAll(N);
|
|
5955
5956
|
let F = X(M) ? M : null;
|
|
5956
5957
|
for (; F && !Ce(F); ) {
|
|
5957
5958
|
const re = ve(F);
|
|
@@ -5960,9 +5961,9 @@ function Oa(e, t) {
|
|
|
5960
5961
|
F = re;
|
|
5961
5962
|
}
|
|
5962
5963
|
if (W.length && X(M) && !ui(M) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
5963
|
-
!
|
|
5964
|
+
!Ie(M, o.floating) && // If the target root element contains none of the markers, then the
|
|
5964
5965
|
// element was injected after the floating element rendered.
|
|
5965
|
-
Array.from(W).every((re) => !
|
|
5966
|
+
Array.from(W).every((re) => !Ie(F, re)))
|
|
5966
5967
|
return;
|
|
5967
5968
|
if (ae(M) && q) {
|
|
5968
5969
|
const re = M.clientWidth > 0 && M.scrollWidth > M.clientWidth, se = M.clientHeight > 0 && M.scrollHeight > M.clientHeight;
|
|
@@ -6005,7 +6006,7 @@ function Oa(e, t) {
|
|
|
6005
6006
|
n(!1, L, "ancestor-scroll");
|
|
6006
6007
|
}
|
|
6007
6008
|
const k = Ee(o.floating);
|
|
6008
|
-
l && k.addEventListener("keydown", A ? J : G, A), x && k.addEventListener(u,
|
|
6009
|
+
l && k.addEventListener("keydown", A ? J : G, A), x && k.addEventListener(u, D ? V : U, D);
|
|
6009
6010
|
let C = [];
|
|
6010
6011
|
return p && (X(o.domReference) && (C = Te(o.domReference)), X(o.floating) && (C = C.concat(Te(o.floating))), !X(o.reference) && o.reference && o.reference.contextElement && (C = C.concat(Te(o.reference.contextElement)))), C = C.filter((L) => {
|
|
6011
6012
|
var M;
|
|
@@ -6015,11 +6016,11 @@ function Oa(e, t) {
|
|
|
6015
6016
|
passive: !0
|
|
6016
6017
|
});
|
|
6017
6018
|
}), () => {
|
|
6018
|
-
l && k.removeEventListener("keydown", A ? J : G, A), x && k.removeEventListener(u,
|
|
6019
|
+
l && k.removeEventListener("keydown", A ? J : G, A), x && k.removeEventListener(u, D ? V : U, D), C.forEach((L) => {
|
|
6019
6020
|
L.removeEventListener("scroll", _);
|
|
6020
6021
|
});
|
|
6021
6022
|
};
|
|
6022
|
-
}, [a, o, l, x, u, r, n, p, i, E, z, G, A, J, U,
|
|
6023
|
+
}, [a, o, l, x, u, r, n, p, i, E, z, G, A, J, U, D, V]), v.useEffect(() => {
|
|
6023
6024
|
w.current = !1;
|
|
6024
6025
|
}, [x, u]);
|
|
6025
6026
|
const H = v.useMemo(() => ({
|
|
@@ -6127,7 +6128,7 @@ function Fa(e) {
|
|
|
6127
6128
|
elements: x
|
|
6128
6129
|
}), [d, y, x, w]);
|
|
6129
6130
|
}
|
|
6130
|
-
function
|
|
6131
|
+
function Ia(e, t) {
|
|
6131
6132
|
t === void 0 && (t = {});
|
|
6132
6133
|
const {
|
|
6133
6134
|
open: r,
|
|
@@ -6191,7 +6192,7 @@ function Da(e, t) {
|
|
|
6191
6192
|
f.current = window.setTimeout(() => {
|
|
6192
6193
|
var x;
|
|
6193
6194
|
const w = $t(i.domReference ? i.domReference.ownerDocument : document);
|
|
6194
|
-
!g && w === i.domReference ||
|
|
6195
|
+
!g && w === i.domReference || Ie((x = a.current.floatingContext) == null ? void 0 : x.refs.floating.current, w) || Ie(i.domReference, w) || y || n(!1, h, "focus");
|
|
6195
6196
|
});
|
|
6196
6197
|
}
|
|
6197
6198
|
}), [a, i.domReference, n, c]);
|
|
@@ -6255,8 +6256,8 @@ function Ba(e) {
|
|
|
6255
6256
|
getItemProps: i
|
|
6256
6257
|
}), [o, a, i]);
|
|
6257
6258
|
}
|
|
6258
|
-
const
|
|
6259
|
-
function
|
|
6259
|
+
const Da = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
6260
|
+
function Na(e, t) {
|
|
6260
6261
|
var r;
|
|
6261
6262
|
t === void 0 && (t = {});
|
|
6262
6263
|
const {
|
|
@@ -6265,7 +6266,7 @@ function Ia(e, t) {
|
|
|
6265
6266
|
} = e, {
|
|
6266
6267
|
enabled: a = !0,
|
|
6267
6268
|
role: i = "dialog"
|
|
6268
|
-
} = t, l = (r =
|
|
6269
|
+
} = t, l = (r = Da.get(i)) != null ? r : i, c = er(), f = tr() != null, m = v.useMemo(() => l === "tooltip" || i === "label" ? {
|
|
6269
6270
|
["aria-" + (i === "label" ? "labelledby" : "describedby")]: n ? o : void 0
|
|
6270
6271
|
} : P(P(P(P(P({
|
|
6271
6272
|
"aria-expanded": n ? "true" : "false",
|
|
@@ -6441,7 +6442,7 @@ const _n = Number(
|
|
|
6441
6442
|
"div",
|
|
6442
6443
|
{
|
|
6443
6444
|
className: oe(
|
|
6444
|
-
"ds-relative ds-size-5 ds-flex-shrink-0 ds-rounded ds-border ds-border-Fills-tertiary ds-bg-Text-
|
|
6445
|
+
"ds-relative ds-size-5 ds-flex-shrink-0 ds-rounded ds-border ds-border-Fills-tertiary ds-bg-Text-textPrimaryInverse ds-shadow-[inset_0_2px_2px_0_var(--fills-quaternary),inset_0_0_2px_0_var(--fills-quaternary)] after:ds-absolute after:ds-left-[7px] after:ds-top-[3px] after:ds-hidden after:ds-h-[10px] after:ds-w-[5px] after:ds-rotate-45 after:ds-border-b-[2px] after:ds-border-r-[2px] after:ds-border-Fills-inversePrimary after:ds-content-['']",
|
|
6445
6446
|
t && "ds-bg-accentPrimary-100 after:ds-block"
|
|
6446
6447
|
)
|
|
6447
6448
|
}
|
|
@@ -6459,11 +6460,11 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
|
|
|
6459
6460
|
children: e
|
|
6460
6461
|
}
|
|
6461
6462
|
), Ga = {
|
|
6462
|
-
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-
|
|
6463
|
-
secondary: "ds-bg-
|
|
6463
|
+
primary: "ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-rounded-sm hover:ds-text-Text-textPrimaryInverse hover:ds-bg-Background-accentPrimary-highlight hover:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-bg-Background-accentPrimary-darkened focus:ds-bg-Background-accentPrimary-100 focus:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] disabled:focus:ds-shadow-none disabled:ds-bg-Background-accentPrimary-20 ds-text-mediumFootnoteEmphasized",
|
|
6464
|
+
secondary: "ds-bg-Background-primary ds-text-Text-primary ds-rounded-sm ds-border ds-border-Fills-tertiary hover:ds-bg-[#F6F8FC] hover:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] active:ds-bg-[#F6F8FC] active:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] focus:ds-bg-[#F6F8FC] focus:ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] disabled:ds-border disabled:ds-border-Fills-tertiary disabled:ds-text-Text-tertiary disabled:ds-bg-transparent ds-text-mediumFootnoteEmphasized"
|
|
6464
6465
|
}, Ua = {
|
|
6465
|
-
primary: "ds-rounded-sm ds-border ds-text-
|
|
6466
|
-
secondary: "ds-rounded-sm ds-bg-Background-accentPrimary-100 ds-text-Text-
|
|
6466
|
+
primary: "ds-rounded-sm ds-border ds-text-Text-primary ds-border-Fills-tertiary ds-bg-[#F6F8FC] ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] ds-text-mediumFootnoteEmphasized",
|
|
6467
|
+
secondary: "ds-rounded-sm ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse ds-shadow-[0px_1px_4px_0px_rgba(0,0,0,0.16)] ds-text-mediumFootnoteEmphasized"
|
|
6467
6468
|
}, vt = Fe.forwardRef(
|
|
6468
6469
|
(d, p) => {
|
|
6469
6470
|
var g = d, {
|
|
@@ -6559,8 +6560,8 @@ const qa = Yt(
|
|
|
6559
6560
|
}, [r]);
|
|
6560
6561
|
const x = (E, z) => {
|
|
6561
6562
|
z.currentTarget.blur();
|
|
6562
|
-
const A = [...d],
|
|
6563
|
-
|
|
6563
|
+
const A = [...d], D = A.findIndex((G) => G.value === E.value);
|
|
6564
|
+
D !== -1 ? A.length > 1 ? (A.splice(D, 1), y("")) : y(u) : (A.push(E), y("")), g(A), o(A);
|
|
6564
6565
|
}, w = (E, z) => {
|
|
6565
6566
|
z.currentTarget.blur();
|
|
6566
6567
|
const A = [E];
|
|
@@ -6648,7 +6649,7 @@ const Wn = ({
|
|
|
6648
6649
|
],
|
|
6649
6650
|
whileElementsMounted: ia,
|
|
6650
6651
|
placement: e
|
|
6651
|
-
}), A = _a(z),
|
|
6652
|
+
}), A = _a(z), D = Ia(z), G = Oa(z), J = Na(z), { getReferenceProps: U, getFloatingProps: V } = Ba([A, D, G, J]);
|
|
6652
6653
|
return t || (t = /* @__PURE__ */ R.jsx(
|
|
6653
6654
|
Fn,
|
|
6654
6655
|
{
|
|
@@ -6673,12 +6674,12 @@ const Wn = ({
|
|
|
6673
6674
|
style: E
|
|
6674
6675
|
}, V()), {
|
|
6675
6676
|
className: oe(
|
|
6676
|
-
"ds-z-[29999] ds-flex ds-min-w-[200px] ds-flex-col ds-gap-1 ds-rounded ds-bg-
|
|
6677
|
+
"ds-z-[29999] ds-flex ds-min-w-[200px] ds-flex-col ds-gap-1 ds-rounded ds-bg-Background-primary ds-p-2 ds-shadow-md",
|
|
6677
6678
|
a && "ds-overflow-y-auto",
|
|
6678
6679
|
i && "ds-overflow-x-auto"
|
|
6679
6680
|
),
|
|
6680
6681
|
children: /* @__PURE__ */ R.jsx(
|
|
6681
|
-
|
|
6682
|
+
In,
|
|
6682
6683
|
{
|
|
6683
6684
|
isMultiSelect: m,
|
|
6684
6685
|
options: l,
|
|
@@ -6745,7 +6746,7 @@ const On = ({
|
|
|
6745
6746
|
closeButtonLabel: f,
|
|
6746
6747
|
isMultiSelect: c,
|
|
6747
6748
|
children: /* @__PURE__ */ R.jsx(
|
|
6748
|
-
|
|
6749
|
+
In,
|
|
6749
6750
|
{
|
|
6750
6751
|
isMultiSelect: c,
|
|
6751
6752
|
options: l,
|
|
@@ -6762,7 +6763,7 @@ const On = ({
|
|
|
6762
6763
|
] });
|
|
6763
6764
|
};
|
|
6764
6765
|
On.displayName = "MobileDropdown";
|
|
6765
|
-
const jn = ({ onClose: e, closeButtonLabel: t, children: r, isMultiSelect: n }) => /* @__PURE__ */ R.jsxs("div", { className: "ds-mb-0 ds-flex ds-max-h-dvh ds-w-full ds-flex-col ds-bg-
|
|
6766
|
+
const jn = ({ onClose: e, closeButtonLabel: t, children: r, isMultiSelect: n }) => /* @__PURE__ */ R.jsxs("div", { className: "ds-mb-0 ds-flex ds-max-h-dvh ds-w-full ds-flex-col ds-bg-Background-primary", children: [
|
|
6766
6767
|
/* @__PURE__ */ R.jsxs("div", { className: "ds-flex ds-shrink-0 ds-items-center ds-justify-between ds-px-8 ds-py-4", children: [
|
|
6767
6768
|
/* @__PURE__ */ R.jsx(
|
|
6768
6769
|
"div",
|
|
@@ -6800,7 +6801,7 @@ const Fn = ({
|
|
|
6800
6801
|
children: n
|
|
6801
6802
|
}
|
|
6802
6803
|
);
|
|
6803
|
-
},
|
|
6804
|
+
}, In = ({
|
|
6804
6805
|
options: e,
|
|
6805
6806
|
isMultiSelect: t,
|
|
6806
6807
|
value: r,
|
|
@@ -6884,10 +6885,10 @@ export {
|
|
|
6884
6885
|
oe as e,
|
|
6885
6886
|
nr as f,
|
|
6886
6887
|
el as g,
|
|
6887
|
-
|
|
6888
|
+
Ia as h,
|
|
6888
6889
|
Oa as i,
|
|
6889
6890
|
R as j,
|
|
6890
|
-
|
|
6891
|
+
Na as k,
|
|
6891
6892
|
Ba as l,
|
|
6892
6893
|
ia as m,
|
|
6893
6894
|
ma as n,
|