design-system-silkhaus 4.0.0-beta.color-names.4 → 4.0.0-beta.color-names.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as s, a as t, b as n, D as p, M as r, f as e } from "../index-cVxmO35M.js";
1
+ import { B as s, a as t, b as n, D as p, M as r, f as e } from "../index-CS40ZeSb.js";
2
2
  export {
3
3
  s as Button,
4
4
  t as ButtonsGroupSelector,
@@ -0,0 +1,65 @@
1
+ export default {
2
+ meta: {
3
+ type: 'problem',
4
+ docs: {
5
+ description: 'Disallow hardcoded color values like hex, rgb, rgba, hsl, hsla',
6
+ recommended: false,
7
+ },
8
+ messages: {
9
+ hardcodedColor:
10
+ "Do not use hardcoded color value: '{{ color }}'. Use a tailwind class with design token name instead",
11
+ },
12
+ schema: [],
13
+ },
14
+
15
+ create(context) {
16
+ const COLOR_REGEX = new RegExp(
17
+ /#(?:[0-9a-fA-F]{3,8})\b|(rgb|hsl)a?\(\s*\d+\s*,\s*\d+%?\s*,\s*\d+%?(?:\s*,\s*(?:\d+(?:\.\d+)?|\.\d+))?\s*\)/,
18
+ 'i',
19
+ );
20
+
21
+ function reportIfHardcodedColor(node, value) {
22
+ const match = value.match(COLOR_REGEX);
23
+ if (match) {
24
+ context.report({
25
+ node,
26
+ messageId: 'hardcodedColor',
27
+ data: {
28
+ color: match[0],
29
+ },
30
+ });
31
+ }
32
+ }
33
+
34
+ return {
35
+ Literal(node) {
36
+ if (typeof node.value === 'string') {
37
+ reportIfHardcodedColor(node, node.value);
38
+ }
39
+ },
40
+
41
+ JSXAttribute(node) {
42
+ if (node.name && ['class', 'className', 'style'].includes(node.name.name) && node.value) {
43
+ if (node.value.type === 'Literal' && typeof node.value.value === 'string') {
44
+ reportIfHardcodedColor(node.value, node.value.value);
45
+ }
46
+
47
+ if (
48
+ node.value.type === 'JSXExpressionContainer' &&
49
+ node.value.expression &&
50
+ node.value.expression.type === 'Literal' &&
51
+ typeof node.value.expression.value === 'string'
52
+ ) {
53
+ reportIfHardcodedColor(node.value.expression, node.value.expression.value);
54
+ }
55
+ }
56
+ },
57
+
58
+ TemplateLiteral(node) {
59
+ node.quasis.forEach((quasi) => {
60
+ reportIfHardcodedColor(quasi, quasi.value.cooked || '');
61
+ });
62
+ },
63
+ };
64
+ },
65
+ };
@@ -95,8 +95,8 @@ function xo() {
95
95
  {
96
96
  var O = x.ReactDebugCurrentFrame, Y = O.getStackAddendum();
97
97
  Y !== "" && (b += "%s", T = T.concat([Y]));
98
- var K = T.map(function(B) {
99
- return String(B);
98
+ var K = T.map(function(I) {
99
+ return String(I);
100
100
  });
101
101
  K.unshift("Warning: " + b), Function.prototype.apply.call(console[s], console, K);
102
102
  }
@@ -155,10 +155,10 @@ function xo() {
155
155
  var O = s.displayName || null;
156
156
  return O !== null ? O : q(s.type) || "Memo";
157
157
  case p: {
158
- var Y = s, K = Y._payload, B = Y._init;
158
+ var Y = s, K = Y._payload, I = Y._init;
159
159
  try {
160
- return q(B(K));
161
- } catch (I) {
160
+ return q(I(K));
161
+ } catch (B) {
162
162
  return null;
163
163
  }
164
164
  }
@@ -262,27 +262,27 @@ function xo() {
262
262
  K = se.current, se.current = null, rt();
263
263
  try {
264
264
  if (b) {
265
- var B = function() {
265
+ var I = function() {
266
266
  throw Error();
267
267
  };
268
- if (Object.defineProperty(B.prototype, "props", {
268
+ if (Object.defineProperty(I.prototype, "props", {
269
269
  set: function() {
270
270
  throw Error();
271
271
  }
272
272
  }), typeof Reflect == "object" && Reflect.construct) {
273
273
  try {
274
- Reflect.construct(B, []);
274
+ Reflect.construct(I, []);
275
275
  } catch (ne) {
276
276
  O = ne;
277
277
  }
278
- Reflect.construct(s, [], B);
278
+ Reflect.construct(s, [], I);
279
279
  } else {
280
280
  try {
281
- B.call();
281
+ I.call();
282
282
  } catch (ne) {
283
283
  O = ne;
284
284
  }
285
- s.call(B.prototype);
285
+ s.call(I.prototype);
286
286
  }
287
287
  } else {
288
288
  try {
@@ -294,17 +294,17 @@ function xo() {
294
294
  }
295
295
  } catch (ne) {
296
296
  if (ne && O && typeof ne.stack == "string") {
297
- for (var I = ne.stack.split(`
297
+ for (var B = ne.stack.split(`
298
298
  `), te = O.stack.split(`
299
- `), Q = I.length - 1, ee = te.length - 1; Q >= 1 && ee >= 0 && I[Q] !== te[ee]; )
299
+ `), Q = B.length - 1, ee = te.length - 1; Q >= 1 && ee >= 0 && B[Q] !== te[ee]; )
300
300
  ee--;
301
301
  for (; Q >= 1 && ee >= 0; Q--, ee--)
302
- if (I[Q] !== te[ee]) {
302
+ if (B[Q] !== te[ee]) {
303
303
  if (Q !== 1 || ee !== 1)
304
304
  do
305
- if (Q--, ee--, ee < 0 || I[Q] !== te[ee]) {
305
+ if (Q--, ee--, ee < 0 || B[Q] !== te[ee]) {
306
306
  var ce = `
307
- ` + I[Q].replace(" at new ", " at ");
307
+ ` + B[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);
@@ -347,7 +347,7 @@ function xo() {
347
347
  var O = s, Y = O._payload, K = O._init;
348
348
  try {
349
349
  return ot(K(Y), b, T);
350
- } catch (B) {
350
+ } catch (I) {
351
351
  }
352
352
  }
353
353
  }
@@ -364,19 +364,19 @@ function xo() {
364
364
  function Vn(s, b, T, O, Y) {
365
365
  {
366
366
  var K = Function.call.bind($e);
367
- for (var B in s)
368
- if (K(s, B)) {
369
- var I = void 0;
367
+ for (var I in s)
368
+ if (K(s, I)) {
369
+ var B = void 0;
370
370
  try {
371
- if (typeof s[B] != "function") {
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`.");
371
+ if (typeof s[I] != "function") {
372
+ var te = Error((O || "React class") + ": " + T + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[I] + "`.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
- I = s[B](b, B, O, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
375
+ B = s[I](b, I, O, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
376
376
  } catch (Q) {
377
- I = Q;
377
+ B = Q;
378
378
  }
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));
379
+ B && !(B 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, I, typeof B), it(null)), B instanceof Error && !(B.message in ir) && (ir[B.message] = !0, it(Y), w("Failed %s type: %s", T, B.message), it(null));
380
380
  }
381
381
  }
382
382
  }
@@ -451,51 +451,51 @@ function xo() {
451
451
  });
452
452
  }
453
453
  }
454
- var eo = function(s, b, T, O, Y, K, B) {
455
- var I = {
454
+ var eo = function(s, b, T, O, Y, K, I) {
455
+ var B = {
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
459
459
  type: s,
460
460
  key: b,
461
461
  ref: T,
462
- props: B,
462
+ props: I,
463
463
  // Record the component responsible for creating this element.
464
464
  _owner: K
465
465
  };
466
- return I._store = {}, Object.defineProperty(I._store, "validated", {
466
+ return B._store = {}, Object.defineProperty(B._store, "validated", {
467
467
  configurable: !1,
468
468
  enumerable: !1,
469
469
  writable: !0,
470
470
  value: !1
471
- }), Object.defineProperty(I, "_self", {
471
+ }), Object.defineProperty(B, "_self", {
472
472
  configurable: !1,
473
473
  enumerable: !1,
474
474
  writable: !1,
475
475
  value: O
476
- }), Object.defineProperty(I, "_source", {
476
+ }), Object.defineProperty(B, "_source", {
477
477
  configurable: !1,
478
478
  enumerable: !1,
479
479
  writable: !1,
480
480
  value: Y
481
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
481
+ }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
482
482
  };
483
483
  function to(s, b, T, O, Y) {
484
484
  {
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));
485
+ var K, I = {}, B = null, te = null;
486
+ T !== void 0 && (sr(T), B = "" + T), Xn(b) && (sr(b.key), B = "" + b.key), Kn(b) && (te = b.ref, Jn(b, Y));
487
487
  for (K in b)
488
- $e.call(b, K) && !Yn.hasOwnProperty(K) && (B[K] = b[K]);
488
+ $e.call(b, K) && !Yn.hasOwnProperty(K) && (I[K] = b[K]);
489
489
  if (s && s.defaultProps) {
490
490
  var Q = s.defaultProps;
491
491
  for (K in Q)
492
- B[K] === void 0 && (B[K] = Q[K]);
492
+ I[K] === void 0 && (I[K] = Q[K]);
493
493
  }
494
- if (I || te) {
494
+ if (B || te) {
495
495
  var ee = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
496
- I && Zn(B, ee), te && Qn(B, ee);
496
+ B && Zn(I, ee), te && Qn(I, ee);
497
497
  }
498
- return eo(s, I, te, Y, O, cr.current, B);
498
+ return eo(s, B, te, Y, O, cr.current, I);
499
499
  }
500
500
  }
501
501
  var Rt = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
@@ -566,8 +566,8 @@ Check the top-level render call using <` + T + ">.");
566
566
  else if (s) {
567
567
  var Y = y(s);
568
568
  if (typeof Y == "function" && Y !== s.entries)
569
- for (var K = Y.call(s), B; !(B = K.next()).done; )
570
- St(B.value) && hr(B.value, b);
569
+ for (var K = Y.call(s), I; !(I = K.next()).done; )
570
+ St(I.value) && hr(I.value, b);
571
571
  }
572
572
  }
573
573
  }
@@ -611,19 +611,19 @@ Check the top-level render call using <` + T + ">.");
611
611
  var vr = {};
612
612
  function br(s, b, T, O, Y, K) {
613
613
  {
614
- var B = U(s);
615
- if (!B) {
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.");
614
+ var I = U(s);
615
+ if (!I) {
616
+ var B = "";
617
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (B += " 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 ? I += te : I += gr();
619
+ te ? B += te : B += 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") + " />", 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);
621
+ s === null ? Q = "null" : wt(s) ? Q = "array" : s !== void 0 && s.$$typeof === t ? (Q = "<" + (q(s.type) || "Unknown") + " />", B = " 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, B);
622
622
  }
623
623
  var ee = to(s, b, T, Y, K);
624
624
  if (ee == null)
625
625
  return ee;
626
- if (B) {
626
+ if (I) {
627
627
  var ce = b.children;
628
628
  if (ce !== void 0)
629
629
  if (O)
@@ -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
- It(i, n, a, t);
711
+ Bt(i, n, a, t);
712
712
  }), n;
713
- }, It = (e, t, r, n) => {
713
+ }, Bt = (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
- It(o(n), t, r, n);
722
+ Bt(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
- It(i, Tr(t, a), r, n);
732
+ Bt(i, Tr(t, a), r, n);
733
733
  });
734
734
  });
735
735
  }, Tr = (e, t) => {
@@ -864,7 +864,7 @@ const Zr = (e) => {
864
864
  e[n] && (t = Zr(e[n])) && (r && (r += " "), r += t);
865
865
  return r;
866
866
  };
867
- function Bt(e, ...t) {
867
+ function It(e, ...t) {
868
868
  let r, n, o, a = i;
869
869
  function i(c) {
870
870
  const u = t.reduce((f, m) => m(f), e());
@@ -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)), 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) => {
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) => Ie(e, "length", Uo), Oe = (e) => !!e && !Number.isNaN(Number(e)), kt = (e) => Ie(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Bo = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), j = (e) => Qr.test(e), we = (e) => Ao.test(e), Io = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Do = (e) => Ie(e, Io, en), No = (e) => Ie(e, "position", en), $o = /* @__PURE__ */ new Set(["image", "url"]), Vo = (e) => Ie(e, $o, Yo), Go = (e) => Ie(e, "", qo), qe = () => !0, Ie = (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) => (
@@ -912,7 +912,7 @@ const Z = (e) => {
912
912
  invert: N(),
913
913
  gap: H(),
914
914
  gradientColorStops: [e],
915
- gradientColorStopPositions: [Io, ye],
915
+ gradientColorStopPositions: [Bo, ye],
916
916
  inset: V(),
917
917
  margin: V(),
918
918
  opacity: F(),
@@ -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(Dt, e, ...t) : Bt(() => Ko(Dt(), e), ...t), ct = /* @__PURE__ */ Bt(Dt), Cr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
2950
+ }, Zo = (e, ...t) => typeof e == "function" ? It(Dt, e, ...t) : It(() => Ko(Dt(), e), ...t), ct = /* @__PURE__ */ It(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"}`,
@@ -3905,7 +3905,10 @@ const Qa = (e, t = "AED") => {
3905
3905
  }) : "";
3906
3906
  return `${t} ${n}`;
3907
3907
  }, kr = {
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
+ primary: (
3909
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
3910
+ "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"
3911
+ ),
3909
3912
  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",
3910
3913
  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",
3911
3914
  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",
@@ -3913,7 +3916,10 @@ const Qa = (e, t = "AED") => {
3913
3916
  large: "ds-py-3 ds-px-8 ds_MediumBodyEmphasized",
3914
3917
  empty: ""
3915
3918
  }, ei = {
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)]",
3919
+ primary: (
3920
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
3921
+ "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)]"
3922
+ ),
3917
3923
  secondary: "ds-rounded-sm ds-border ds-bg-Background-accentPrimary-5 ds-text-accentPrimary-100 ds-border-2 ds-border-Background-accentPrimary-100",
3918
3924
  tertiary: "ds-text-Text-secondary ds-rounded-sm ds-bg-Fills-quaternary",
3919
3925
  quaternary: "ds-rounded-sm ds-bg-Background-accentPrimary-100 ds-text-Text-textPrimaryInverse",
@@ -4173,7 +4179,7 @@ function $t(e) {
4173
4179
  }
4174
4180
  return t;
4175
4181
  }
4176
- function Ie(e, t) {
4182
+ function Be(e, t) {
4177
4183
  if (!e || !t)
4178
4184
  return !1;
4179
4185
  const r = t.getRootNode == null ? void 0 : t.getRootNode();
@@ -4683,7 +4689,7 @@ function Zt(e, t) {
4683
4689
  };
4684
4690
  });
4685
4691
  }
4686
- const Ii = function(e) {
4692
+ const Bi = function(e) {
4687
4693
  return e === void 0 && (e = {}), {
4688
4694
  name: "flip",
4689
4695
  options: e,
@@ -4771,7 +4777,7 @@ const Ii = function(e) {
4771
4777
  }
4772
4778
  };
4773
4779
  };
4774
- function Bi(e, t) {
4780
+ function Ii(e, t) {
4775
4781
  return he(this, null, function* () {
4776
4782
  const {
4777
4783
  placement: r,
@@ -4812,7 +4818,7 @@ const Di = function(e) {
4812
4818
  y: i,
4813
4819
  placement: l,
4814
4820
  middlewareData: c
4815
- } = r, u = yield Bi(r, e);
4821
+ } = r, u = yield Ii(r, e);
4816
4822
  return l === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
4817
4823
  x: a + u.x,
4818
4824
  y: i + u.y,
@@ -5264,7 +5270,7 @@ function ia(e, t, r, n) {
5264
5270
  }), m == null || m(), (x = d) == null || x.disconnect(), d = null, c && cancelAnimationFrame(g);
5265
5271
  };
5266
5272
  }
5267
- const aa = Di, la = Ni, sa = Ii, ca = $i, ua = (e, t, r) => {
5273
+ const aa = Di, la = Ni, sa = Bi, ca = $i, ua = (e, t, r) => {
5268
5274
  const n = /* @__PURE__ */ new Map(), o = P({
5269
5275
  platform: na
5270
5276
  }, r), a = $(P({}, o.platform), {
@@ -5499,7 +5505,7 @@ function Mt(e) {
5499
5505
  t.current = e;
5500
5506
  }), t;
5501
5507
  }
5502
- const Ir = /* @__PURE__ */ tt("safe-polygon");
5508
+ const Br = /* @__PURE__ */ tt("safe-polygon");
5503
5509
  function Ht(e, t, r) {
5504
5510
  return r && !Ke(r) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t];
5505
5511
  }
@@ -5554,7 +5560,7 @@ function el(e, t) {
5554
5560
  }), H = Re(() => {
5555
5561
  if (D.current) {
5556
5562
  const k = Ee(i.floating).body;
5557
- k.style.pointerEvents = "", k.removeAttribute(Ir), D.current = !1;
5563
+ k.style.pointerEvents = "", k.removeAttribute(Br), D.current = !1;
5558
5564
  }
5559
5565
  });
5560
5566
  v.useEffect(() => {
@@ -5589,7 +5595,7 @@ function el(e, t) {
5589
5595
  };
5590
5596
  return;
5591
5597
  }
5592
- (w.current === "touch" ? !Ie(i.floating, W.relatedTarget) : !0) && U(W);
5598
+ (w.current === "touch" ? !Be(i.floating, W.relatedTarget) : !0) && U(W);
5593
5599
  }
5594
5600
  function M(W) {
5595
5601
  k() || o.current.floatingContext && (h.current == null || h.current($(P({}, o.current.floatingContext), {
@@ -5615,7 +5621,7 @@ function el(e, t) {
5615
5621
  var k;
5616
5622
  if (l && r && (k = h.current) != null && k.__options.blockPointerEvents && J()) {
5617
5623
  const L = Ee(i.floating).body;
5618
- L.setAttribute(Ir, ""), L.style.pointerEvents = "none", D.current = !0;
5624
+ L.setAttribute(Br, ""), L.style.pointerEvents = "none", D.current = !0;
5619
5625
  const M = i.floating;
5620
5626
  if (X(i.domReference) && M) {
5621
5627
  var C;
@@ -5698,7 +5704,7 @@ function Ca() {
5698
5704
  }
5699
5705
  function At(e, t) {
5700
5706
  const r = t || e.currentTarget, n = e.relatedTarget;
5701
- return !n || !Ie(r, n);
5707
+ return !n || !Be(r, n);
5702
5708
  }
5703
5709
  function ka(e) {
5704
5710
  yn(e, zn()).forEach((r) => {
@@ -5725,13 +5731,13 @@ const Ln = {
5725
5731
  left: 0
5726
5732
  };
5727
5733
  let Pa;
5728
- function Br(e) {
5734
+ function Ir(e) {
5729
5735
  e.key === "Tab" && (e.target, clearTimeout(Pa));
5730
5736
  }
5731
5737
  const Dr = /* @__PURE__ */ v.forwardRef(function(t, r) {
5732
5738
  const [n, o] = v.useState();
5733
- fe(() => (dn() && o("button"), document.addEventListener("keydown", Br), () => {
5734
- document.removeEventListener("keydown", Br);
5739
+ fe(() => (dn() && o("button"), document.addEventListener("keydown", Ir), () => {
5740
+ document.removeEventListener("keydown", Ir);
5735
5741
  }), []);
5736
5742
  const a = {
5737
5743
  ref: r,
@@ -5961,9 +5967,9 @@ function Oa(e, t) {
5961
5967
  F = re;
5962
5968
  }
5963
5969
  if (W.length && X(M) && !ui(M) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
5964
- !Ie(M, o.floating) && // If the target root element contains none of the markers, then the
5970
+ !Be(M, o.floating) && // If the target root element contains none of the markers, then the
5965
5971
  // element was injected after the floating element rendered.
5966
- Array.from(W).every((re) => !Ie(F, re)))
5972
+ Array.from(W).every((re) => !Be(F, re)))
5967
5973
  return;
5968
5974
  if (ae(M) && q) {
5969
5975
  const re = M.clientWidth > 0 && M.scrollWidth > M.clientWidth, se = M.clientHeight > 0 && M.scrollHeight > M.clientHeight;
@@ -6128,7 +6134,7 @@ function Fa(e) {
6128
6134
  elements: x
6129
6135
  }), [d, y, x, w]);
6130
6136
  }
6131
- function Ia(e, t) {
6137
+ function Ba(e, t) {
6132
6138
  t === void 0 && (t = {});
6133
6139
  const {
6134
6140
  open: r,
@@ -6192,7 +6198,7 @@ function Ia(e, t) {
6192
6198
  f.current = window.setTimeout(() => {
6193
6199
  var x;
6194
6200
  const w = $t(i.domReference ? i.domReference.ownerDocument : document);
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");
6201
+ !g && w === i.domReference || Be((x = a.current.floatingContext) == null ? void 0 : x.refs.floating.current, w) || Be(i.domReference, w) || y || n(!1, h, "focus");
6196
6202
  });
6197
6203
  }
6198
6204
  }), [a, i.domReference, n, c]);
@@ -6235,7 +6241,7 @@ function jt(e, t, r) {
6235
6241
  l[f] = m;
6236
6242
  }), l), {}));
6237
6243
  }
6238
- function Ba(e) {
6244
+ function Ia(e) {
6239
6245
  e === void 0 && (e = []);
6240
6246
  const t = e.map((l) => l == null ? void 0 : l.reference), r = e.map((l) => l == null ? void 0 : l.floating), n = e.map((l) => l == null ? void 0 : l.item), o = v.useCallback(
6241
6247
  (l) => jt(l, e, "reference"),
@@ -6370,7 +6376,8 @@ const $a = {
6370
6376
  {
6371
6377
  className: oe(
6372
6378
  "modal-animated-backdrop",
6373
- m && "ds-bg-[rgba(255,255,255,0.24)] ds-backdrop-blur-[12px]"
6379
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6380
+ m && "ds-bg-[RGBA(255,255,255,0.24)] ds-backdrop-blur-[12px]"
6374
6381
  ),
6375
6382
  onClick: f ? n : void 0
6376
6383
  }
@@ -6460,11 +6467,23 @@ const qr = ({ children: e, size: t = "small" }) => /* @__PURE__ */ R.jsx(
6460
6467
  children: e
6461
6468
  }
6462
6469
  ), Ga = {
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"
6470
+ primary: (
6471
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6472
+ "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"
6473
+ ),
6474
+ secondary: (
6475
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6476
+ "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"
6477
+ )
6465
6478
  }, Ua = {
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"
6479
+ primary: (
6480
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6481
+ "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"
6482
+ ),
6483
+ secondary: (
6484
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6485
+ "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"
6486
+ )
6468
6487
  }, vt = Fe.forwardRef(
6469
6488
  (d, p) => {
6470
6489
  var g = d, {
@@ -6622,7 +6641,7 @@ const Wn = ({
6622
6641
  adjustHeight: a = !0,
6623
6642
  adjustWidth: i = !0,
6624
6643
  options: l,
6625
- getSelectedValueDisplayText: c = Bn,
6644
+ getSelectedValueDisplayText: c = In,
6626
6645
  placeholder: u,
6627
6646
  value: f,
6628
6647
  isMultiSelect: m,
@@ -6649,7 +6668,7 @@ const Wn = ({
6649
6668
  ],
6650
6669
  whileElementsMounted: ia,
6651
6670
  placement: e
6652
- }), A = _a(z), D = Ia(z), G = Oa(z), J = Na(z), { getReferenceProps: U, getFloatingProps: V } = Ba([A, D, G, J]);
6671
+ }), A = _a(z), D = Ba(z), G = Oa(z), J = Na(z), { getReferenceProps: U, getFloatingProps: V } = Ia([A, D, G, J]);
6653
6672
  return t || (t = /* @__PURE__ */ R.jsx(
6654
6673
  Fn,
6655
6674
  {
@@ -6679,7 +6698,7 @@ const Wn = ({
6679
6698
  i && "ds-overflow-x-auto"
6680
6699
  ),
6681
6700
  children: /* @__PURE__ */ R.jsx(
6682
- In,
6701
+ Bn,
6683
6702
  {
6684
6703
  isMultiSelect: m,
6685
6704
  options: l,
@@ -6699,7 +6718,7 @@ const On = ({
6699
6718
  triggerContainerClassName: t,
6700
6719
  disabled: r,
6701
6720
  onOpenChange: n,
6702
- getSelectedValueDisplayText: o = Bn,
6721
+ getSelectedValueDisplayText: o = In,
6703
6722
  placeholder: a,
6704
6723
  value: i,
6705
6724
  options: l,
@@ -6746,7 +6765,7 @@ const On = ({
6746
6765
  closeButtonLabel: f,
6747
6766
  isMultiSelect: c,
6748
6767
  children: /* @__PURE__ */ R.jsx(
6749
- In,
6768
+ Bn,
6750
6769
  {
6751
6770
  isMultiSelect: c,
6752
6771
  options: l,
@@ -6801,7 +6820,7 @@ const Fn = ({
6801
6820
  children: n
6802
6821
  }
6803
6822
  );
6804
- }, In = ({
6823
+ }, Bn = ({
6805
6824
  options: e,
6806
6825
  isMultiSelect: t,
6807
6826
  value: r,
@@ -6835,6 +6854,7 @@ const Fn = ({
6835
6854
  {
6836
6855
  onClick: t.disabled ? void 0 : e,
6837
6856
  className: oe(
6857
+ // eslint-disable-next-line tailwind/no-hardcoded-colors -- TODO: use tailwind classes with design system tokens instead of hardcoded colors
6838
6858
  "ds-group ds-flex ds-min-h-[72px] ds-cursor-pointer ds-items-center ds-gap-4 ds-rounded ds-px-4 ds-py-2 ds-text-mediumSubHeadEmphasized hover:ds-bg-[#F6F8FC] ds-tablet:ds-min-h-[auto] ds-tablet:ds-gap-2 ds-tablet:ds-px-2 ds-desktop:ds-text-mediumFootnoteEmphasized",
6839
6859
  !n && "ds-transition-[padding] ds-duration-300 hover:ds-px-4"
6840
6860
  ),
@@ -6867,7 +6887,7 @@ const Fn = ({
6867
6887
  )
6868
6888
  ]
6869
6889
  }
6870
- ), nr = (e, t) => Array.isArray(e) ? t.filter((r) => e.includes(r.value)) : t.find((r) => r.value === e), Bn = (e) => Array.isArray(e) ? e.map((t) => t.label).join(", ") : e.label;
6890
+ ), nr = (e, t) => Array.isArray(e) ? t.filter((r) => e.includes(r.value)) : t.find((r) => r.value === e), In = (e) => Array.isArray(e) ? e.map((t) => t.label).join(", ") : e.label;
6871
6891
  export {
6872
6892
  Hn as A,
6873
6893
  vt as B,
@@ -6885,11 +6905,11 @@ export {
6885
6905
  oe as e,
6886
6906
  nr as f,
6887
6907
  el as g,
6888
- Ia as h,
6908
+ Ba as h,
6889
6909
  Oa as i,
6890
6910
  R as j,
6891
6911
  Na as k,
6892
- Ba as l,
6912
+ Ia as l,
6893
6913
  ia as m,
6894
6914
  ma as n,
6895
6915
  fa as o,