@takecasper/acuity-design-system 1.6.0 → 1.6.2

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/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./assets/index.css";
2
- import fr from "react";
2
+ import fr, { useRef as Qr, useEffect as et } from "react";
3
3
  var Oe = { exports: {} }, ue = {};
4
4
  /**
5
5
  * @license React
@@ -11,7 +11,7 @@ var Oe = { exports: {} }, ue = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var rr;
14
- function Kr() {
14
+ function rt() {
15
15
  if (rr)
16
16
  return ue;
17
17
  rr = 1;
@@ -39,7 +39,7 @@ var fe = {};
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
41
  var tr;
42
- function Xr() {
42
+ function tt() {
43
43
  return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
44
44
  var e = fr, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), P = Symbol.iterator, M = "@@iterator";
45
45
  function R(t) {
@@ -85,7 +85,7 @@ function Xr() {
85
85
  function k(t) {
86
86
  return t.displayName || "Context";
87
87
  }
88
- function $(t) {
88
+ function V(t) {
89
89
  if (t == null)
90
90
  return null;
91
91
  if (typeof t.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
@@ -118,11 +118,11 @@ function Xr() {
118
118
  return ae(t, t.render, "ForwardRef");
119
119
  case m:
120
120
  var p = t.displayName || null;
121
- return p !== null ? p : $(t.type) || "Memo";
121
+ return p !== null ? p : V(t.type) || "Memo";
122
122
  case j: {
123
123
  var v = t, w = v._payload, x = v._init;
124
124
  try {
125
- return $(x(w));
125
+ return V(x(w));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -130,14 +130,14 @@ function Xr() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var T = Object.assign, N = 0, z, le, K, H, ce, F, Z;
133
+ var T = Object.assign, N = 0, z, le, K, F, ce, H, Z;
134
134
  function Ne() {
135
135
  }
136
136
  Ne.__reactDisabledLog = !0;
137
- function Mr() {
137
+ function Rr() {
138
138
  {
139
139
  if (N === 0) {
140
- z = console.log, le = console.info, K = console.warn, H = console.error, ce = console.group, F = console.groupCollapsed, Z = console.groupEnd;
140
+ z = console.log, le = console.info, K = console.warn, F = console.error, ce = console.group, H = console.groupCollapsed, Z = console.groupEnd;
141
141
  var t = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
@@ -157,7 +157,7 @@ function Xr() {
157
157
  N++;
158
158
  }
159
159
  }
160
- function Er() {
160
+ function Wr() {
161
161
  {
162
162
  if (N--, N === 0) {
163
163
  var t = {
@@ -176,13 +176,13 @@ function Xr() {
176
176
  value: K
177
177
  }),
178
178
  error: T({}, t, {
179
- value: H
179
+ value: F
180
180
  }),
181
181
  group: T({}, t, {
182
182
  value: ce
183
183
  }),
184
184
  groupCollapsed: T({}, t, {
185
- value: F
185
+ value: H
186
186
  }),
187
187
  groupEnd: T({}, t, {
188
188
  value: Z
@@ -208,10 +208,10 @@ function Xr() {
208
208
  }
209
209
  var _e = !1, we;
210
210
  {
211
- var Rr = typeof WeakMap == "function" ? WeakMap : Map;
212
- we = new Rr();
211
+ var _r = typeof WeakMap == "function" ? WeakMap : Map;
212
+ we = new _r();
213
213
  }
214
- function He(t, l) {
214
+ function Fe(t, l) {
215
215
  if (!t || _e)
216
216
  return "";
217
217
  {
@@ -224,7 +224,7 @@ function Xr() {
224
224
  var v = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var w;
227
- w = Re.current, Re.current = null, Mr();
227
+ w = Re.current, Re.current = null, Rr();
228
228
  try {
229
229
  if (l) {
230
230
  var x = function() {
@@ -260,14 +260,14 @@ function Xr() {
260
260
  } catch (I) {
261
261
  if (I && p && typeof I.stack == "string") {
262
262
  for (var b = I.stack.split(`
263
- `), V = p.stack.split(`
264
- `), E = b.length - 1, W = V.length - 1; E >= 1 && W >= 0 && b[E] !== V[W]; )
263
+ `), $ = p.stack.split(`
264
+ `), E = b.length - 1, W = $.length - 1; E >= 1 && W >= 0 && b[E] !== $[W]; )
265
265
  W--;
266
266
  for (; E >= 1 && W >= 0; E--, W--)
267
- if (b[E] !== V[W]) {
267
+ if (b[E] !== $[W]) {
268
268
  if (E !== 1 || W !== 1)
269
269
  do
270
- if (E--, W--, W < 0 || b[E] !== V[W]) {
270
+ if (E--, W--, W < 0 || b[E] !== $[W]) {
271
271
  var A = `
272
272
  ` + b[E].replace(" at new ", " at ");
273
273
  return t.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", t.displayName)), typeof t == "function" && we.set(t, A), A;
@@ -277,15 +277,15 @@ function Xr() {
277
277
  }
278
278
  }
279
279
  } finally {
280
- _e = !1, Re.current = w, Er(), Error.prepareStackTrace = v;
280
+ _e = !1, Re.current = w, Wr(), Error.prepareStackTrace = v;
281
281
  }
282
282
  var Q = t ? t.displayName || t.name : "", er = Q ? ke(Q) : "";
283
283
  return typeof t == "function" && we.set(t, er), er;
284
284
  }
285
- function Wr(t, l, d) {
286
- return He(t, !1);
285
+ function Sr(t, l, d) {
286
+ return Fe(t, !1);
287
287
  }
288
- function _r(t) {
288
+ function $r(t) {
289
289
  var l = t.prototype;
290
290
  return !!(l && l.isReactComponent);
291
291
  }
@@ -293,7 +293,7 @@ function Xr() {
293
293
  if (t == null)
294
294
  return "";
295
295
  if (typeof t == "function")
296
- return He(t, _r(t));
296
+ return Fe(t, $r(t));
297
297
  if (typeof t == "string")
298
298
  return ke(t);
299
299
  switch (t) {
@@ -305,7 +305,7 @@ function Xr() {
305
305
  if (typeof t == "object")
306
306
  switch (t.$$typeof) {
307
307
  case h:
308
- return Wr(t.render);
308
+ return Sr(t.render);
309
309
  case m:
310
310
  return je(t.type, l, d);
311
311
  case j: {
@@ -318,7 +318,7 @@ function Xr() {
318
318
  }
319
319
  return "";
320
320
  }
321
- var ye = Object.prototype.hasOwnProperty, Fe = {}, De = S.ReactDebugCurrentFrame;
321
+ var ye = Object.prototype.hasOwnProperty, He = {}, De = S.ReactDebugCurrentFrame;
322
322
  function Le(t) {
323
323
  if (t) {
324
324
  var l = t._owner, d = je(t.type, t._source, l ? l.type : null);
@@ -326,7 +326,7 @@ function Xr() {
326
326
  } else
327
327
  De.setExtraStackFrame(null);
328
328
  }
329
- function Sr(t, l, d, p, v) {
329
+ function Vr(t, l, d, p, v) {
330
330
  {
331
331
  var w = Function.call.bind(ye);
332
332
  for (var x in t)
@@ -334,28 +334,28 @@ function Xr() {
334
334
  var b = void 0;
335
335
  try {
336
336
  if (typeof t[x] != "function") {
337
- var V = Error((p || "React class") + ": " + d + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw V.name = "Invariant Violation", V;
337
+ var $ = Error((p || "React class") + ": " + d + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw $.name = "Invariant Violation", $;
339
339
  }
340
340
  b = t[x](l, x, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
341
  } catch (E) {
342
342
  b = E;
343
343
  }
344
- b && !(b instanceof Error) && (Le(v), y("%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).", p || "React class", d, x, typeof b), Le(null)), b instanceof Error && !(b.message in Fe) && (Fe[b.message] = !0, Le(v), y("Failed %s type: %s", d, b.message), Le(null));
344
+ b && !(b instanceof Error) && (Le(v), y("%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).", p || "React class", d, x, typeof b), Le(null)), b instanceof Error && !(b.message in He) && (He[b.message] = !0, Le(v), y("Failed %s type: %s", d, b.message), Le(null));
345
345
  }
346
346
  }
347
347
  }
348
- var Vr = Array.isArray;
348
+ var Tr = Array.isArray;
349
349
  function Se(t) {
350
- return Vr(t);
350
+ return Tr(t);
351
351
  }
352
- function $r(t) {
352
+ function Ar(t) {
353
353
  {
354
354
  var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && t[Symbol.toStringTag] || t.constructor.name || "Object";
355
355
  return d;
356
356
  }
357
357
  }
358
- function Tr(t) {
358
+ function Pr(t) {
359
359
  try {
360
360
  return Ge(t), !1;
361
361
  } catch {
@@ -366,17 +366,17 @@ function Xr() {
366
366
  return "" + t;
367
367
  }
368
368
  function ze(t) {
369
- if (Tr(t))
370
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $r(t)), Ge(t);
369
+ if (Pr(t))
370
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ar(t)), Ge(t);
371
371
  }
372
- var de = S.ReactCurrentOwner, Ar = {
372
+ var de = S.ReactCurrentOwner, Or = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
- }, Ze, Ue, Ve;
378
- Ve = {};
379
- function Pr(t) {
377
+ }, Ze, Ue, $e;
378
+ $e = {};
379
+ function Ir(t) {
380
380
  if (ye.call(t, "ref")) {
381
381
  var l = Object.getOwnPropertyDescriptor(t, "ref").get;
382
382
  if (l && l.isReactWarning)
@@ -384,7 +384,7 @@ function Xr() {
384
384
  }
385
385
  return t.ref !== void 0;
386
386
  }
387
- function Or(t) {
387
+ function Br(t) {
388
388
  if (ye.call(t, "key")) {
389
389
  var l = Object.getOwnPropertyDescriptor(t, "key").get;
390
390
  if (l && l.isReactWarning)
@@ -392,13 +392,13 @@ function Xr() {
392
392
  }
393
393
  return t.key !== void 0;
394
394
  }
395
- function Ir(t, l) {
395
+ function Nr(t, l) {
396
396
  if (typeof t.ref == "string" && de.current && l && de.current.stateNode !== l) {
397
- var d = $(de.current.type);
398
- Ve[d] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(de.current.type), t.ref), Ve[d] = !0);
397
+ var d = V(de.current.type);
398
+ $e[d] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(de.current.type), t.ref), $e[d] = !0);
399
399
  }
400
400
  }
401
- function Br(t, l) {
401
+ function Fr(t, l) {
402
402
  {
403
403
  var d = function() {
404
404
  Ze || (Ze = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
@@ -409,7 +409,7 @@ function Xr() {
409
409
  });
410
410
  }
411
411
  }
412
- function Nr(t, l) {
412
+ function Hr(t, l) {
413
413
  {
414
414
  var d = function() {
415
415
  Ue || (Ue = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
@@ -420,7 +420,7 @@ function Xr() {
420
420
  });
421
421
  }
422
422
  }
423
- var Hr = function(t, l, d, p, v, w, x) {
423
+ var Dr = function(t, l, d, p, v, w, x) {
424
424
  var b = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: a,
@@ -449,25 +449,25 @@ function Xr() {
449
449
  value: v
450
450
  }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
451
451
  };
452
- function Fr(t, l, d, p, v) {
452
+ function Gr(t, l, d, p, v) {
453
453
  {
454
- var w, x = {}, b = null, V = null;
455
- d !== void 0 && (ze(d), b = "" + d), Or(l) && (ze(l.key), b = "" + l.key), Pr(l) && (V = l.ref, Ir(l, v));
454
+ var w, x = {}, b = null, $ = null;
455
+ d !== void 0 && (ze(d), b = "" + d), Br(l) && (ze(l.key), b = "" + l.key), Ir(l) && ($ = l.ref, Nr(l, v));
456
456
  for (w in l)
457
- ye.call(l, w) && !Ar.hasOwnProperty(w) && (x[w] = l[w]);
457
+ ye.call(l, w) && !Or.hasOwnProperty(w) && (x[w] = l[w]);
458
458
  if (t && t.defaultProps) {
459
459
  var E = t.defaultProps;
460
460
  for (w in E)
461
461
  x[w] === void 0 && (x[w] = E[w]);
462
462
  }
463
- if (b || V) {
463
+ if (b || $) {
464
464
  var W = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
465
- b && Br(x, W), V && Nr(x, W);
465
+ b && Fr(x, W), $ && Hr(x, W);
466
466
  }
467
- return Hr(t, b, V, v, p, de.current, x);
467
+ return Dr(t, b, $, v, p, de.current, x);
468
468
  }
469
469
  }
470
- var $e = S.ReactCurrentOwner, Ye = S.ReactDebugCurrentFrame;
470
+ var Ve = S.ReactCurrentOwner, Ye = S.ReactDebugCurrentFrame;
471
471
  function X(t) {
472
472
  if (t) {
473
473
  var l = t._owner, d = je(t.type, t._source, l ? l.type : null);
@@ -482,8 +482,8 @@ function Xr() {
482
482
  }
483
483
  function qe() {
484
484
  {
485
- if ($e.current) {
486
- var t = $($e.current.type);
485
+ if (Ve.current) {
486
+ var t = V(Ve.current.type);
487
487
  if (t)
488
488
  return `
489
489
 
@@ -492,7 +492,7 @@ Check the render method of \`` + t + "`.";
492
492
  return "";
493
493
  }
494
494
  }
495
- function Dr(t) {
495
+ function zr(t) {
496
496
  {
497
497
  if (t !== void 0) {
498
498
  var l = t.fileName.replace(/^.*[\\\/]/, ""), d = t.lineNumber;
@@ -504,7 +504,7 @@ Check your code at ` + l + ":" + d + ".";
504
504
  }
505
505
  }
506
506
  var Je = {};
507
- function Gr(t) {
507
+ function Zr(t) {
508
508
  {
509
509
  var l = qe();
510
510
  if (!l) {
@@ -521,12 +521,12 @@ Check the top-level render call using <` + d + ">.");
521
521
  if (!t._store || t._store.validated || t.key != null)
522
522
  return;
523
523
  t._store.validated = !0;
524
- var d = Gr(l);
524
+ var d = Zr(l);
525
525
  if (Je[d])
526
526
  return;
527
527
  Je[d] = !0;
528
528
  var p = "";
529
- t && t._owner && t._owner !== $e.current && (p = " It was passed a child from " + $(t._owner.type) + "."), X(t), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), X(null);
529
+ t && t._owner && t._owner !== Ve.current && (p = " It was passed a child from " + V(t._owner.type) + "."), X(t), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), X(null);
530
530
  }
531
531
  }
532
532
  function Xe(t, l) {
@@ -548,7 +548,7 @@ Check the top-level render call using <` + d + ">.");
548
548
  }
549
549
  }
550
550
  }
551
- function zr(t) {
551
+ function Ur(t) {
552
552
  {
553
553
  var l = t.type;
554
554
  if (l == null || typeof l == "string")
@@ -563,17 +563,17 @@ Check the top-level render call using <` + d + ">.");
563
563
  else
564
564
  return;
565
565
  if (d) {
566
- var p = $(l);
567
- Sr(d, t.props, "prop", p, t);
566
+ var p = V(l);
567
+ Vr(d, t.props, "prop", p, t);
568
568
  } else if (l.PropTypes !== void 0 && !Te) {
569
569
  Te = !0;
570
- var v = $(l);
570
+ var v = V(l);
571
571
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
572
572
  }
573
573
  typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
574
  }
575
575
  }
576
- function Zr(t) {
576
+ function Yr(t) {
577
577
  {
578
578
  for (var l = Object.keys(t.props), d = 0; d < l.length; d++) {
579
579
  var p = l[d];
@@ -591,12 +591,12 @@ Check the top-level render call using <` + d + ">.");
591
591
  if (!x) {
592
592
  var b = "";
593
593
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).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.");
594
- var V = Dr(v);
595
- V ? b += V : b += qe();
594
+ var $ = zr(v);
595
+ $ ? b += $ : b += qe();
596
596
  var E;
597
- t === null ? E = "null" : Se(t) ? E = "array" : t !== void 0 && t.$$typeof === a ? (E = "<" + ($(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : E = typeof t, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, b);
597
+ t === null ? E = "null" : Se(t) ? E = "array" : t !== void 0 && t.$$typeof === a ? (E = "<" + (V(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : E = typeof t, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, b);
598
598
  }
599
- var W = Fr(t, l, d, v, w);
599
+ var W = Gr(t, l, d, v, w);
600
600
  if (W == null)
601
601
  return W;
602
602
  if (x) {
@@ -612,71 +612,22 @@ Check the top-level render call using <` + d + ">.");
612
612
  else
613
613
  Xe(A, t);
614
614
  }
615
- return t === r ? Zr(W) : zr(W), W;
615
+ return t === r ? Yr(W) : Ur(W), W;
616
616
  }
617
617
  }
618
- function Ur(t, l, d) {
618
+ function qr(t, l, d) {
619
619
  return Qe(t, l, d, !0);
620
620
  }
621
- function Yr(t, l, d) {
621
+ function Jr(t, l, d) {
622
622
  return Qe(t, l, d, !1);
623
623
  }
624
- var qr = Yr, Jr = Ur;
625
- fe.Fragment = r, fe.jsx = qr, fe.jsxs = Jr;
624
+ var Kr = Jr, Xr = qr;
625
+ fe.Fragment = r, fe.jsx = Kr, fe.jsxs = Xr;
626
626
  }()), fe;
627
627
  }
628
- process.env.NODE_ENV === "production" ? Oe.exports = Kr() : Oe.exports = Xr();
628
+ process.env.NODE_ENV === "production" ? Oe.exports = rt() : Oe.exports = tt();
629
629
  var o = Oe.exports;
630
- function hr(e) {
631
- var a, i, r = "";
632
- if (typeof e == "string" || typeof e == "number")
633
- r += e;
634
- else if (typeof e == "object")
635
- if (Array.isArray(e))
636
- for (a = 0; a < e.length; a++)
637
- e[a] && (i = hr(e[a])) && (r && (r += " "), r += i);
638
- else
639
- for (a in e)
640
- e[a] && (r && (r += " "), r += a);
641
- return r;
642
- }
643
- function Qr() {
644
- for (var e, a, i = 0, r = ""; i < arguments.length; )
645
- (e = arguments[i++]) && (a = hr(e)) && (r && (r += " "), r += a);
646
- return r;
647
- }
648
- const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr = Qr, O = (e, a) => (i) => {
649
- var r;
650
- if ((a == null ? void 0 : a.variants) == null)
651
- return nr(e, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
652
- const { variants: s, defaultVariants: n } = a, c = Object.keys(s).map((g) => {
653
- const f = i == null ? void 0 : i[g], m = n == null ? void 0 : n[g];
654
- if (f === null)
655
- return null;
656
- const j = or(f) || or(m);
657
- return s[g][j];
658
- }), u = i && Object.entries(i).reduce((g, f) => {
659
- let [m, j] = f;
660
- return j === void 0 || (g[m] = j), g;
661
- }, {}), h = a == null || (r = a.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((g, f) => {
662
- let { class: m, className: j, ..._ } = f;
663
- return Object.entries(_).every((P) => {
664
- let [M, R] = P;
665
- return Array.isArray(R) ? R.includes({
666
- ...n,
667
- ...u
668
- }[M]) : {
669
- ...n,
670
- ...u
671
- }[M] === R;
672
- }) ? [
673
- ...g,
674
- m,
675
- j
676
- ] : g;
677
- }, []);
678
- return nr(e, c, h, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
679
- }, et = ({
630
+ const ot = ({
680
631
  width: e = "24",
681
632
  height: a = "24",
682
633
  className: i = "",
@@ -741,7 +692,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
741
692
  ]
742
693
  }
743
694
  );
744
- }, pr = et, rt = ({
695
+ }, hr = ot, nt = ({
745
696
  width: e = "24",
746
697
  height: a = "24",
747
698
  className: i = "",
@@ -786,7 +737,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
786
737
  ]
787
738
  }
788
739
  );
789
- }, gr = rt, tt = ({
740
+ }, pr = nt, st = ({
790
741
  width: e = "24",
791
742
  height: a = "24",
792
743
  className: i = "",
@@ -847,7 +798,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
847
798
  ]
848
799
  }
849
800
  );
850
- }, Cr = tt, ot = ({
801
+ }, gr = st, it = ({
851
802
  width: e = "24",
852
803
  height: a = "24",
853
804
  className: i = "",
@@ -892,7 +843,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
892
843
  ]
893
844
  }
894
845
  );
895
- }, br = ot, nt = ({
846
+ }, Cr = it, at = ({
896
847
  width: e = "24",
897
848
  height: a = "24",
898
849
  className: i = "",
@@ -937,7 +888,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
937
888
  ]
938
889
  }
939
890
  );
940
- }, xr = nt, st = ({
891
+ }, br = at, lt = ({
941
892
  width: e = "24",
942
893
  height: a = "24",
943
894
  className: i = "",
@@ -1002,7 +953,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1002
953
  ]
1003
954
  }
1004
955
  );
1005
- }, it = st, at = ({
956
+ }, ct = lt, dt = ({
1006
957
  width: e = "24",
1007
958
  height: a = "24",
1008
959
  className: i = "",
@@ -1047,7 +998,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1047
998
  ]
1048
999
  }
1049
1000
  );
1050
- }, lt = at, ct = ({
1001
+ }, ut = dt, ft = ({
1051
1002
  width: e = "24",
1052
1003
  height: a = "24",
1053
1004
  className: i = "",
@@ -1102,7 +1053,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1102
1053
  ]
1103
1054
  }
1104
1055
  );
1105
- }, dt = ct, ut = ({
1056
+ }, ht = ft, pt = ({
1106
1057
  width: e = "24",
1107
1058
  height: a = "24",
1108
1059
  className: i = "",
@@ -1201,7 +1152,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1201
1152
  ]
1202
1153
  }
1203
1154
  );
1204
- }, ft = ut, ht = ({
1155
+ }, gt = pt, Ct = ({
1205
1156
  width: e = "24",
1206
1157
  height: a = "24",
1207
1158
  className: i = "",
@@ -1261,7 +1212,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1261
1212
  ]
1262
1213
  }
1263
1214
  );
1264
- }, pt = ht, gt = ({
1215
+ }, bt = Ct, xt = ({
1265
1216
  width: e = "24",
1266
1217
  height: a = "24",
1267
1218
  className: i = "",
@@ -1296,7 +1247,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1296
1247
  ]
1297
1248
  }
1298
1249
  );
1299
- }, Ct = gt, bt = ({
1250
+ }, mt = xt, vt = ({
1300
1251
  width: e = "24",
1301
1252
  height: a = "24",
1302
1253
  className: i = "",
@@ -1341,7 +1292,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1341
1292
  ]
1342
1293
  }
1343
1294
  );
1344
- }, xt = bt, mt = ({
1295
+ }, kt = vt, wt = ({
1345
1296
  width: e = "24",
1346
1297
  height: a = "24",
1347
1298
  className: i = "",
@@ -1388,7 +1339,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1388
1339
  ]
1389
1340
  }
1390
1341
  );
1391
- }, vt = mt, kt = ({
1342
+ }, jt = wt, yt = ({
1392
1343
  width: e = "24",
1393
1344
  height: a = "24",
1394
1345
  className: i = "",
@@ -1462,7 +1413,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1462
1413
  ]
1463
1414
  }
1464
1415
  );
1465
- }, wt = kt, jt = ({
1416
+ }, Lt = yt, Mt = ({
1466
1417
  width: e = "24",
1467
1418
  height: a = "24",
1468
1419
  className: i = "",
@@ -1497,7 +1448,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1497
1448
  ]
1498
1449
  }
1499
1450
  );
1500
- }, yt = jt, Lt = ({
1451
+ }, Et = Mt, Rt = ({
1501
1452
  width: e = "24",
1502
1453
  height: a = "24",
1503
1454
  className: i = "",
@@ -1658,7 +1609,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1658
1609
  ]
1659
1610
  }
1660
1611
  );
1661
- }, Mt = Lt, Et = ({
1612
+ }, Wt = Rt, _t = ({
1662
1613
  width: e = "24",
1663
1614
  height: a = "24",
1664
1615
  className: i = "",
@@ -1713,7 +1664,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1713
1664
  ]
1714
1665
  }
1715
1666
  );
1716
- }, Rt = Et, Wt = ({
1667
+ }, St = _t, $t = ({
1717
1668
  width: e = "24",
1718
1669
  height: a = "24",
1719
1670
  className: i = "",
@@ -1812,7 +1763,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1812
1763
  ]
1813
1764
  }
1814
1765
  );
1815
- }, _t = Wt, St = ({
1766
+ }, Vt = $t, Tt = ({
1816
1767
  width: e = "24",
1817
1768
  height: a = "24",
1818
1769
  className: i = "",
@@ -1857,7 +1808,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1857
1808
  ]
1858
1809
  }
1859
1810
  );
1860
- }, Vt = St, $t = ({
1811
+ }, At = Tt, Pt = ({
1861
1812
  width: e = "24",
1862
1813
  height: a = "24",
1863
1814
  className: i = "",
@@ -1902,7 +1853,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1902
1853
  ]
1903
1854
  }
1904
1855
  );
1905
- }, Tt = $t, At = ({ width: e = "24", height: a = "24", className: i = "", title: r = "" }) => {
1856
+ }, Ot = Pt, It = ({ width: e = "24", height: a = "24", className: i = "", title: r = "" }) => {
1906
1857
  const s = !(r && r.length > 0);
1907
1858
  return /* @__PURE__ */ o.jsxs(
1908
1859
  "svg",
@@ -1930,7 +1881,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1930
1881
  ]
1931
1882
  }
1932
1883
  );
1933
- }, Pt = At, Ot = ({
1884
+ }, Bt = It, Nt = ({
1934
1885
  width: e = "24",
1935
1886
  height: a = "24",
1936
1887
  className: i = "",
@@ -1985,7 +1936,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
1985
1936
  ]
1986
1937
  }
1987
1938
  );
1988
- }, It = Ot, Bt = ({
1939
+ }, Ft = Nt, Ht = ({
1989
1940
  width: e = "24",
1990
1941
  height: a = "24",
1991
1942
  className: i = "",
@@ -2040,7 +1991,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
2040
1991
  ]
2041
1992
  }
2042
1993
  );
2043
- }, Nt = Bt, Ht = ({
1994
+ }, Dt = Ht, Gt = ({
2044
1995
  width: e = "24",
2045
1996
  height: a = "24",
2046
1997
  className: i = "",
@@ -2119,111 +2070,65 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
2119
2070
  ]
2120
2071
  }
2121
2072
  );
2122
- }, Ft = Ht, Dt = ({
2123
- size: e = "small",
2124
- name: a,
2125
- hasIndicator: i = !1,
2126
- className: r,
2127
- altText: s
2128
- }) => {
2129
- const n = {
2130
- small: {
2131
- width: "16",
2132
- height: "16"
2133
- },
2134
- medium: {
2135
- width: "24",
2136
- height: "24"
2137
- }
2138
- }, c = {
2139
- settings: /* @__PURE__ */ o.jsx(Ct, { ...n[e], className: r, title: s }),
2140
- questionCircle: /* @__PURE__ */ o.jsx(pt, { ...n[e], className: r, title: s }),
2141
- notifications: /* @__PURE__ */ o.jsx(dt, { ...n[e], className: r, title: s }),
2142
- flag: /* @__PURE__ */ o.jsx(lt, { ...n[e], className: r, title: s }),
2143
- edit: /* @__PURE__ */ o.jsx(it, { ...n[e], className: r, title: s }),
2144
- infoCircle: /* @__PURE__ */ o.jsx(pr, { ...n[e], className: r, title: s }),
2145
- delete: /* @__PURE__ */ o.jsx(wt, { ...n[e], className: r, title: s }),
2146
- resourceCenter: /* @__PURE__ */ o.jsx(Tt, { ...n[e], className: r, title: s }),
2147
- search: /* @__PURE__ */ o.jsx(Vt, { ...n[e], className: r, title: s }),
2148
- error: /* @__PURE__ */ o.jsx(br, { ...n[e], className: r, title: s }),
2149
- warning: /* @__PURE__ */ o.jsx(Cr, { ...n[e], className: r, title: s }),
2150
- dropdown: /* @__PURE__ */ o.jsx(yt, { ...n[e], className: r, title: s }),
2151
- calendar: /* @__PURE__ */ o.jsx(Mt, { ...n[e], className: r, title: s }),
2152
- bookmark: /* @__PURE__ */ o.jsx(Rt, { ...n[e], className: r, title: s }),
2153
- menu: /* @__PURE__ */ o.jsx(Pt, { ...n[e], className: r, title: s }),
2154
- add: /* @__PURE__ */ o.jsx(It, { ...n[e], className: r, title: s }),
2155
- exclude: /* @__PURE__ */ o.jsx(vt, { ...n[e], className: r, title: s }),
2156
- email: /* @__PURE__ */ o.jsx(xt, { ...n[e], className: r, title: s }),
2157
- close: /* @__PURE__ */ o.jsx(xr, { ...n[e], className: r, title: s }),
2158
- checkCircle: /* @__PURE__ */ o.jsx(gr, { ...n[e], className: r, title: s }),
2159
- linkNewTab: /* @__PURE__ */ o.jsx(Nt, { ...n[e], className: r, title: s })
2160
- }, u = {
2161
- notifications: /* @__PURE__ */ o.jsx(
2162
- ft,
2163
- {
2164
- ...n[e],
2165
- className: r,
2166
- title: s
2167
- }
2168
- ),
2169
- resourceCenter: /* @__PURE__ */ o.jsx(
2170
- Ft,
2171
- {
2172
- ...n[e],
2173
- className: r,
2174
- title: s
2175
- }
2176
- ),
2177
- bookmark: /* @__PURE__ */ o.jsx(_t, { ...n[e], className: r, title: s }),
2178
- settings: c.settings,
2179
- questionCircle: c.questionCircle,
2180
- flag: c.flag,
2181
- edit: c.edit,
2182
- delete: c.delete,
2183
- search: c.search,
2184
- error: c.error,
2185
- warning: c.warning,
2186
- dropdown: c.dropdown,
2187
- calendar: c.calendar,
2188
- infoCircle: c.infoCircle,
2189
- menu: c.menu,
2190
- add: c.add,
2191
- exclude: c.exclude,
2192
- email: c.email,
2193
- close: c.close,
2194
- checkCircle: c.checkCircle,
2195
- linkNewTab: c.linkNewTab
2196
- };
2197
- return i ? u[a] : c[a];
2198
- }, ge = Dt;
2199
- function mr(e) {
2073
+ }, zt = Gt;
2074
+ function xr(e) {
2200
2075
  var a, i, r = "";
2201
2076
  if (typeof e == "string" || typeof e == "number")
2202
2077
  r += e;
2203
2078
  else if (typeof e == "object")
2204
- if (Array.isArray(e)) {
2205
- var s = e.length;
2206
- for (a = 0; a < s; a++)
2207
- e[a] && (i = mr(e[a])) && (r && (r += " "), r += i);
2208
- } else
2209
- for (i in e)
2210
- e[i] && (r && (r += " "), r += i);
2079
+ if (Array.isArray(e))
2080
+ for (a = 0; a < e.length; a++)
2081
+ e[a] && (i = xr(e[a])) && (r && (r += " "), r += i);
2082
+ else
2083
+ for (a in e)
2084
+ e[a] && (r && (r += " "), r += a);
2211
2085
  return r;
2212
2086
  }
2213
- function Gt() {
2214
- for (var e, a, i = 0, r = "", s = arguments.length; i < s; i++)
2215
- (e = arguments[i]) && (a = mr(e)) && (r && (r += " "), r += a);
2087
+ function Zt() {
2088
+ for (var e, a, i = 0, r = ""; i < arguments.length; )
2089
+ (e = arguments[i++]) && (a = xr(e)) && (r && (r += " "), r += a);
2216
2090
  return r;
2217
2091
  }
2218
- const Be = "-";
2219
- function zt(e) {
2220
- const a = Ut(e), {
2092
+ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr = Zt, O = (e, a) => (i) => {
2093
+ var r;
2094
+ if ((a == null ? void 0 : a.variants) == null)
2095
+ return nr(e, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
2096
+ const { variants: s, defaultVariants: n } = a, c = Object.keys(s).map((g) => {
2097
+ const f = i == null ? void 0 : i[g], m = n == null ? void 0 : n[g];
2098
+ if (f === null)
2099
+ return null;
2100
+ const j = or(f) || or(m);
2101
+ return s[g][j];
2102
+ }), u = i && Object.entries(i).reduce((g, f) => {
2103
+ let [m, j] = f;
2104
+ return j === void 0 || (g[m] = j), g;
2105
+ }, {}), h = a == null || (r = a.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((g, f) => {
2106
+ let { class: m, className: j, ..._ } = f;
2107
+ return Object.entries(_).every((P) => {
2108
+ let [M, R] = P;
2109
+ return Array.isArray(R) ? R.includes({
2110
+ ...n,
2111
+ ...u
2112
+ }[M]) : {
2113
+ ...n,
2114
+ ...u
2115
+ }[M] === R;
2116
+ }) ? [
2117
+ ...g,
2118
+ m,
2119
+ j
2120
+ ] : g;
2121
+ }, []);
2122
+ return nr(e, c, h, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
2123
+ }, Be = "-";
2124
+ function Ut(e) {
2125
+ const a = qt(e), {
2221
2126
  conflictingClassGroups: i,
2222
2127
  conflictingClassGroupModifiers: r
2223
2128
  } = e;
2224
2129
  function s(c) {
2225
2130
  const u = c.split(Be);
2226
- return u[0] === "" && u.length !== 1 && u.shift(), vr(u, a) || Zt(c);
2131
+ return u[0] === "" && u.length !== 1 && u.shift(), mr(u, a) || Yt(c);
2227
2132
  }
2228
2133
  function n(c, u) {
2229
2134
  const h = i[c] || [];
@@ -2234,11 +2139,11 @@ function zt(e) {
2234
2139
  getConflictingClassGroupIds: n
2235
2140
  };
2236
2141
  }
2237
- function vr(e, a) {
2142
+ function mr(e, a) {
2238
2143
  var c;
2239
2144
  if (e.length === 0)
2240
2145
  return a.classGroupId;
2241
- const i = e[0], r = a.nextPart.get(i), s = r ? vr(e.slice(1), r) : void 0;
2146
+ const i = e[0], r = a.nextPart.get(i), s = r ? mr(e.slice(1), r) : void 0;
2242
2147
  if (s)
2243
2148
  return s;
2244
2149
  if (a.validators.length === 0)
@@ -2249,14 +2154,14 @@ function vr(e, a) {
2249
2154
  }) => u(n))) == null ? void 0 : c.classGroupId;
2250
2155
  }
2251
2156
  const sr = /^\[(.+)\]$/;
2252
- function Zt(e) {
2157
+ function Yt(e) {
2253
2158
  if (sr.test(e)) {
2254
2159
  const a = sr.exec(e)[1], i = a == null ? void 0 : a.substring(0, a.indexOf(":"));
2255
2160
  if (i)
2256
2161
  return "arbitrary.." + i;
2257
2162
  }
2258
2163
  }
2259
- function Ut(e) {
2164
+ function qt(e) {
2260
2165
  const {
2261
2166
  theme: a,
2262
2167
  prefix: i
@@ -2264,7 +2169,7 @@ function Ut(e) {
2264
2169
  nextPart: /* @__PURE__ */ new Map(),
2265
2170
  validators: []
2266
2171
  };
2267
- return qt(Object.entries(e.classGroups), i).forEach(([n, c]) => {
2172
+ return Kt(Object.entries(e.classGroups), i).forEach(([n, c]) => {
2268
2173
  Ie(c, r, n, a);
2269
2174
  }), r;
2270
2175
  }
@@ -2276,7 +2181,7 @@ function Ie(e, a, i, r) {
2276
2181
  return;
2277
2182
  }
2278
2183
  if (typeof s == "function") {
2279
- if (Yt(s)) {
2184
+ if (Jt(s)) {
2280
2185
  Ie(s(r), a, i, r);
2281
2186
  return;
2282
2187
  }
@@ -2300,16 +2205,16 @@ function ir(e, a) {
2300
2205
  }), i = i.nextPart.get(r);
2301
2206
  }), i;
2302
2207
  }
2303
- function Yt(e) {
2208
+ function Jt(e) {
2304
2209
  return e.isThemeGetter;
2305
2210
  }
2306
- function qt(e, a) {
2211
+ function Kt(e, a) {
2307
2212
  return a ? e.map(([i, r]) => {
2308
2213
  const s = r.map((n) => typeof n == "string" ? a + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([c, u]) => [a + c, u])) : n);
2309
2214
  return [i, s];
2310
2215
  }) : e;
2311
2216
  }
2312
- function Jt(e) {
2217
+ function Xt(e) {
2313
2218
  if (e < 1)
2314
2219
  return {
2315
2220
  get: () => {
@@ -2334,8 +2239,8 @@ function Jt(e) {
2334
2239
  }
2335
2240
  };
2336
2241
  }
2337
- const kr = "!";
2338
- function Kt(e) {
2242
+ const vr = "!";
2243
+ function Qt(e) {
2339
2244
  const a = e.separator, i = a.length === 1, r = a[0], s = a.length;
2340
2245
  return function(c) {
2341
2246
  const u = [];
@@ -2354,7 +2259,7 @@ function Kt(e) {
2354
2259
  }
2355
2260
  R === "[" ? h++ : R === "]" && h--;
2356
2261
  }
2357
- const m = u.length === 0 ? c : c.substring(g), j = m.startsWith(kr), _ = j ? m.substring(1) : m, P = f && f > g ? f - g : void 0;
2262
+ const m = u.length === 0 ? c : c.substring(g), j = m.startsWith(vr), _ = j ? m.substring(1) : m, P = f && f > g ? f - g : void 0;
2358
2263
  return {
2359
2264
  modifiers: u,
2360
2265
  hasImportantModifier: j,
@@ -2363,7 +2268,7 @@ function Kt(e) {
2363
2268
  };
2364
2269
  };
2365
2270
  }
2366
- function Xt(e) {
2271
+ function e1(e) {
2367
2272
  if (e.length <= 1)
2368
2273
  return e;
2369
2274
  const a = [];
@@ -2372,21 +2277,21 @@ function Xt(e) {
2372
2277
  r[0] === "[" ? (a.push(...i.sort(), r), i = []) : i.push(r);
2373
2278
  }), a.push(...i.sort()), a;
2374
2279
  }
2375
- function Qt(e) {
2280
+ function r1(e) {
2376
2281
  return {
2377
- cache: Jt(e.cacheSize),
2378
- splitModifiers: Kt(e),
2379
- ...zt(e)
2282
+ cache: Xt(e.cacheSize),
2283
+ splitModifiers: Qt(e),
2284
+ ...Ut(e)
2380
2285
  };
2381
2286
  }
2382
- const e1 = /\s+/;
2383
- function r1(e, a) {
2287
+ const t1 = /\s+/;
2288
+ function o1(e, a) {
2384
2289
  const {
2385
2290
  splitModifiers: i,
2386
2291
  getClassGroupId: r,
2387
2292
  getConflictingClassGroupIds: s
2388
2293
  } = a, n = /* @__PURE__ */ new Set();
2389
- return e.trim().split(e1).map((c) => {
2294
+ return e.trim().split(t1).map((c) => {
2390
2295
  const {
2391
2296
  modifiers: u,
2392
2297
  hasImportantModifier: h,
@@ -2407,10 +2312,10 @@ function r1(e, a) {
2407
2312
  };
2408
2313
  j = !1;
2409
2314
  }
2410
- const _ = Xt(u).join(":");
2315
+ const _ = e1(u).join(":");
2411
2316
  return {
2412
2317
  isTailwindClass: !0,
2413
- modifierId: h ? _ + kr : _,
2318
+ modifierId: h ? _ + vr : _,
2414
2319
  classGroupId: m,
2415
2320
  originalClassName: c,
2416
2321
  hasPostfixModifier: j
@@ -2426,47 +2331,47 @@ function r1(e, a) {
2426
2331
  return n.has(f) ? !1 : (n.add(f), s(h, g).forEach((m) => n.add(u + m)), !0);
2427
2332
  }).reverse().map((c) => c.originalClassName).join(" ");
2428
2333
  }
2429
- function t1() {
2334
+ function n1() {
2430
2335
  let e = 0, a, i, r = "";
2431
2336
  for (; e < arguments.length; )
2432
- (a = arguments[e++]) && (i = wr(a)) && (r && (r += " "), r += i);
2337
+ (a = arguments[e++]) && (i = kr(a)) && (r && (r += " "), r += i);
2433
2338
  return r;
2434
2339
  }
2435
- function wr(e) {
2340
+ function kr(e) {
2436
2341
  if (typeof e == "string")
2437
2342
  return e;
2438
2343
  let a, i = "";
2439
2344
  for (let r = 0; r < e.length; r++)
2440
- e[r] && (a = wr(e[r])) && (i && (i += " "), i += a);
2345
+ e[r] && (a = kr(e[r])) && (i && (i += " "), i += a);
2441
2346
  return i;
2442
2347
  }
2443
- function o1(e, ...a) {
2348
+ function s1(e, ...a) {
2444
2349
  let i, r, s, n = c;
2445
2350
  function c(h) {
2446
2351
  const g = a.reduce((f, m) => m(f), e());
2447
- return i = Qt(g), r = i.cache.get, s = i.cache.set, n = u, u(h);
2352
+ return i = r1(g), r = i.cache.get, s = i.cache.set, n = u, u(h);
2448
2353
  }
2449
2354
  function u(h) {
2450
2355
  const g = r(h);
2451
2356
  if (g)
2452
2357
  return g;
2453
- const f = r1(h, i);
2358
+ const f = o1(h, i);
2454
2359
  return s(h, f), f;
2455
2360
  }
2456
2361
  return function() {
2457
- return n(t1.apply(null, arguments));
2362
+ return n(n1.apply(null, arguments));
2458
2363
  };
2459
2364
  }
2460
2365
  function L(e) {
2461
2366
  const a = (i) => i[e] || [];
2462
2367
  return a.isThemeGetter = !0, a;
2463
2368
  }
2464
- const jr = /^\[(?:([a-z-]+):)?(.+)\]$/i, n1 = /^\d+\/\d+$/, s1 = /* @__PURE__ */ new Set(["px", "full", "screen"]), i1 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, a1 = /\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$/, l1 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, c1 = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, d1 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
2369
+ const wr = /^\[(?:([a-z-]+):)?(.+)\]$/i, i1 = /^\d+\/\d+$/, a1 = /* @__PURE__ */ new Set(["px", "full", "screen"]), l1 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, c1 = /\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$/, d1 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, u1 = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, f1 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
2465
2370
  function B(e) {
2466
- return U(e) || s1.has(e) || n1.test(e);
2371
+ return U(e) || a1.has(e) || i1.test(e);
2467
2372
  }
2468
2373
  function D(e) {
2469
- return re(e, "length", x1);
2374
+ return re(e, "length", v1);
2470
2375
  }
2471
2376
  function U(e) {
2472
2377
  return !!e && !Number.isNaN(Number(e));
@@ -2477,50 +2382,50 @@ function Me(e) {
2477
2382
  function he(e) {
2478
2383
  return !!e && Number.isInteger(Number(e));
2479
2384
  }
2480
- function u1(e) {
2385
+ function h1(e) {
2481
2386
  return e.endsWith("%") && U(e.slice(0, -1));
2482
2387
  }
2483
2388
  function C(e) {
2484
- return jr.test(e);
2389
+ return wr.test(e);
2485
2390
  }
2486
2391
  function G(e) {
2487
- return i1.test(e);
2392
+ return l1.test(e);
2488
2393
  }
2489
- const f1 = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
2490
- function h1(e) {
2491
- return re(e, f1, yr);
2394
+ const p1 = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
2395
+ function g1(e) {
2396
+ return re(e, p1, jr);
2492
2397
  }
2493
- function p1(e) {
2494
- return re(e, "position", yr);
2495
- }
2496
- const g1 = /* @__PURE__ */ new Set(["image", "url"]);
2497
2398
  function C1(e) {
2498
- return re(e, g1, v1);
2399
+ return re(e, "position", jr);
2400
+ }
2401
+ const b1 = /* @__PURE__ */ new Set(["image", "url"]);
2402
+ function x1(e) {
2403
+ return re(e, b1, w1);
2499
2404
  }
2500
- function b1(e) {
2501
- return re(e, "", m1);
2405
+ function m1(e) {
2406
+ return re(e, "", k1);
2502
2407
  }
2503
2408
  function pe() {
2504
2409
  return !0;
2505
2410
  }
2506
2411
  function re(e, a, i) {
2507
- const r = jr.exec(e);
2412
+ const r = wr.exec(e);
2508
2413
  return r ? r[1] ? typeof a == "string" ? r[1] === a : a.has(r[1]) : i(r[2]) : !1;
2509
2414
  }
2510
- function x1(e) {
2511
- return a1.test(e) && !l1.test(e);
2415
+ function v1(e) {
2416
+ return c1.test(e) && !d1.test(e);
2512
2417
  }
2513
- function yr() {
2418
+ function jr() {
2514
2419
  return !1;
2515
2420
  }
2516
- function m1(e) {
2517
- return c1.test(e);
2421
+ function k1(e) {
2422
+ return u1.test(e);
2518
2423
  }
2519
- function v1(e) {
2520
- return d1.test(e);
2424
+ function w1(e) {
2425
+ return f1.test(e);
2521
2426
  }
2522
- function k1() {
2523
- const e = L("colors"), a = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), n = L("borderRadius"), c = L("borderSpacing"), u = L("borderWidth"), h = L("contrast"), g = L("grayscale"), f = L("hueRotate"), m = L("invert"), j = L("gap"), _ = L("gradientColorStops"), P = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), Ce = L("saturate"), se = L("scale"), be = L("sepia"), xe = L("skew"), me = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ie = () => ["auto", "hidden", "clip", "visible", "scroll"], ae = () => ["auto", C, a], k = () => [C, a], $ = () => ["", B, D], T = () => ["auto", U, C], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", C], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [U, Me], Z = () => [U, C];
2427
+ function j1() {
2428
+ const e = L("colors"), a = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), n = L("borderRadius"), c = L("borderSpacing"), u = L("borderWidth"), h = L("contrast"), g = L("grayscale"), f = L("hueRotate"), m = L("invert"), j = L("gap"), _ = L("gradientColorStops"), P = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), Ce = L("saturate"), se = L("scale"), be = L("sepia"), xe = L("skew"), me = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ie = () => ["auto", "hidden", "clip", "visible", "scroll"], ae = () => ["auto", C, a], k = () => [C, a], V = () => ["", B, D], T = () => ["auto", U, C], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], F = () => ["", "0", C], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [U, Me], Z = () => [U, C];
2524
2429
  return {
2525
2430
  cacheSize: 500,
2526
2431
  separator: ":",
@@ -2528,25 +2433,25 @@ function k1() {
2528
2433
  colors: [pe],
2529
2434
  spacing: [B, D],
2530
2435
  blur: ["none", "", G, C],
2531
- brightness: F(),
2436
+ brightness: H(),
2532
2437
  borderColor: [e],
2533
2438
  borderRadius: ["none", "", "full", G, C],
2534
2439
  borderSpacing: k(),
2535
- borderWidth: $(),
2536
- contrast: F(),
2537
- grayscale: H(),
2440
+ borderWidth: V(),
2441
+ contrast: H(),
2442
+ grayscale: F(),
2538
2443
  hueRotate: Z(),
2539
- invert: H(),
2444
+ invert: F(),
2540
2445
  gap: k(),
2541
2446
  gradientColorStops: [e],
2542
- gradientColorStopPositions: [u1, D],
2447
+ gradientColorStopPositions: [h1, D],
2543
2448
  inset: ae(),
2544
2449
  margin: ae(),
2545
- opacity: F(),
2450
+ opacity: H(),
2546
2451
  padding: k(),
2547
- saturate: F(),
2548
- scale: F(),
2549
- sepia: H(),
2452
+ saturate: H(),
2453
+ scale: H(),
2454
+ sepia: F(),
2550
2455
  skew: Z(),
2551
2456
  space: k(),
2552
2457
  translate: k()
@@ -2801,14 +2706,14 @@ function k1() {
2801
2706
  * @see https://tailwindcss.com/docs/flex-grow
2802
2707
  */
2803
2708
  grow: [{
2804
- grow: H()
2709
+ grow: F()
2805
2710
  }],
2806
2711
  /**
2807
2712
  * Flex Shrink
2808
2713
  * @see https://tailwindcss.com/docs/flex-shrink
2809
2714
  */
2810
2715
  shrink: [{
2811
- shrink: H()
2716
+ shrink: F()
2812
2717
  }],
2813
2718
  /**
2814
2719
  * Order
@@ -3452,7 +3357,7 @@ function k1() {
3452
3357
  * @see https://tailwindcss.com/docs/background-position
3453
3358
  */
3454
3359
  "bg-position": [{
3455
- bg: [...N(), p1]
3360
+ bg: [...N(), C1]
3456
3361
  }],
3457
3362
  /**
3458
3363
  * Background Repeat
@@ -3468,7 +3373,7 @@ function k1() {
3468
3373
  * @see https://tailwindcss.com/docs/background-size
3469
3374
  */
3470
3375
  "bg-size": [{
3471
- bg: ["auto", "cover", "contain", h1]
3376
+ bg: ["auto", "cover", "contain", g1]
3472
3377
  }],
3473
3378
  /**
3474
3379
  * Background Image
@@ -3477,7 +3382,7 @@ function k1() {
3477
3382
  "bg-image": [{
3478
3383
  bg: ["none", {
3479
3384
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3480
- }, C1]
3385
+ }, x1]
3481
3386
  }],
3482
3387
  /**
3483
3388
  * Background Color
@@ -3838,7 +3743,7 @@ function k1() {
3838
3743
  * @see https://tailwindcss.com/docs/ring-width
3839
3744
  */
3840
3745
  "ring-w": [{
3841
- ring: $()
3746
+ ring: V()
3842
3747
  }],
3843
3748
  /**
3844
3749
  * Ring Width Inset
@@ -3879,7 +3784,7 @@ function k1() {
3879
3784
  * @see https://tailwindcss.com/docs/box-shadow
3880
3785
  */
3881
3786
  shadow: [{
3882
- shadow: ["", "inner", "none", G, b1]
3787
+ shadow: ["", "inner", "none", G, m1]
3883
3788
  }],
3884
3789
  /**
3885
3790
  * Box Shadow Color
@@ -4535,7 +4440,198 @@ function k1() {
4535
4440
  }
4536
4441
  };
4537
4442
  }
4538
- const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4443
+ const Y = /* @__PURE__ */ s1(j1);
4444
+ function y1() {
4445
+ return Math.floor(Math.random() * 1e7);
4446
+ }
4447
+ const L1 = O(
4448
+ [
4449
+ "flex",
4450
+ "w-full",
4451
+ "flex-row",
4452
+ "justify-between",
4453
+ "rounded",
4454
+ "px-4",
4455
+ "py-4",
4456
+ "font-sans"
4457
+ ],
4458
+ {
4459
+ variants: {
4460
+ variant: {
4461
+ success: ["bg-success-green-lightest", "text-success-green-darkest"],
4462
+ info: ["bg-information-blue-lightest", "text-information-blue-darkest"],
4463
+ warning: ["bg-warning-yellow-lightest", "text-neutrals-darker"],
4464
+ error: ["bg-danger-red-lightest", "text-danger-red-darkest"]
4465
+ }
4466
+ }
4467
+ }
4468
+ ), M1 = (e) => Y(L1(e)), E1 = O("", {
4469
+ variants: {
4470
+ variant: {
4471
+ success: "text-success-green-dark",
4472
+ info: "text-information-blue-dark",
4473
+ warning: "text-warning-yellow-darkest",
4474
+ error: "text-danger-red-dark"
4475
+ }
4476
+ }
4477
+ }), ar = (e) => Y(E1(e)), R1 = O("", {
4478
+ variants: {
4479
+ variant: {
4480
+ success: ["text-success-green-darkest", "stroke-success-green-darkest"],
4481
+ info: ["text-information-blue-darkest", "stroke-information-blue-darkest"],
4482
+ warning: ["text-neutrals-darker", "stroke-neutrals-darker"],
4483
+ error: ["text-danger-red-darkest", "stroke-danger-red-darkest"]
4484
+ }
4485
+ }
4486
+ }), ee = (e) => Y(R1(e)), W1 = ({
4487
+ variant: e = "info",
4488
+ isDismissible: a = !0,
4489
+ showIcon: i = !0,
4490
+ titleSize: r = "large",
4491
+ title: s = "",
4492
+ description: n = "",
4493
+ content: c = void 0,
4494
+ closeAriaLabel: u = "Close button",
4495
+ id: h = "alert_" + y1().toString(),
4496
+ handleClose: g
4497
+ }) => {
4498
+ const f = {
4499
+ success: /* @__PURE__ */ o.jsx(pr, { className: ee({ variant: e }) }),
4500
+ info: /* @__PURE__ */ o.jsx(hr, { className: ee({ variant: e }) }),
4501
+ warning: /* @__PURE__ */ o.jsx(gr, { className: ee({ variant: e }) }),
4502
+ error: /* @__PURE__ */ o.jsx(Cr, { className: ee({ variant: e }) })
4503
+ };
4504
+ return /* @__PURE__ */ o.jsxs("div", { id: h, className: M1({ variant: e }), children: [
4505
+ /* @__PURE__ */ o.jsxs("div", { className: "flex flex-row", children: [
4506
+ i && /* @__PURE__ */ o.jsx(
4507
+ "div",
4508
+ {
4509
+ className: `flex pr-2 ${r === "large" && s !== "" && "h-[1.75rem] items-center"}`,
4510
+ children: f[e]
4511
+ }
4512
+ ),
4513
+ /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-3", children: [
4514
+ /* @__PURE__ */ o.jsxs(
4515
+ "div",
4516
+ {
4517
+ className: `${r === "large" ? "flex-col" : "flex-row"} flex gap-3`,
4518
+ children: [
4519
+ r !== "none" && s !== "" && /* @__PURE__ */ o.jsx("h1", { className: r === "large" ? "text-xl font-semibold" : "hidden", children: s }),
4520
+ /* @__PURE__ */ o.jsxs("div", { className: ar({ variant: e }), children: [
4521
+ /* @__PURE__ */ o.jsx(
4522
+ "span",
4523
+ {
4524
+ className: `${ee({ variant: e })} ${r === "small" && s !== "" ? "pr-2 text-base font-semibold" : "hidden"}`,
4525
+ children: s
4526
+ }
4527
+ ),
4528
+ n
4529
+ ] })
4530
+ ]
4531
+ }
4532
+ ),
4533
+ c && /* @__PURE__ */ o.jsx("div", { className: ar({ variant: e }), children: c })
4534
+ ] })
4535
+ ] }),
4536
+ a === !0 && /* @__PURE__ */ o.jsx("button", { className: "h-5", onClick: g, "aria-label": u, children: /* @__PURE__ */ o.jsx(br, { width: "1rem", height: "1rem", className: ee({ variant: e }) }) })
4537
+ ] });
4538
+ }, J1 = W1, _1 = ({
4539
+ size: e = "small",
4540
+ name: a,
4541
+ hasIndicator: i = !1,
4542
+ className: r,
4543
+ altText: s
4544
+ }) => {
4545
+ const n = {
4546
+ small: {
4547
+ width: "16",
4548
+ height: "16"
4549
+ },
4550
+ medium: {
4551
+ width: "24",
4552
+ height: "24"
4553
+ }
4554
+ }, c = {
4555
+ settings: /* @__PURE__ */ o.jsx(mt, { ...n[e], className: r, title: s }),
4556
+ questionCircle: /* @__PURE__ */ o.jsx(bt, { ...n[e], className: r, title: s }),
4557
+ notifications: /* @__PURE__ */ o.jsx(ht, { ...n[e], className: r, title: s }),
4558
+ flag: /* @__PURE__ */ o.jsx(ut, { ...n[e], className: r, title: s }),
4559
+ edit: /* @__PURE__ */ o.jsx(ct, { ...n[e], className: r, title: s }),
4560
+ infoCircle: /* @__PURE__ */ o.jsx(hr, { ...n[e], className: r, title: s }),
4561
+ delete: /* @__PURE__ */ o.jsx(Lt, { ...n[e], className: r, title: s }),
4562
+ resourceCenter: /* @__PURE__ */ o.jsx(Ot, { ...n[e], className: r, title: s }),
4563
+ search: /* @__PURE__ */ o.jsx(At, { ...n[e], className: r, title: s }),
4564
+ error: /* @__PURE__ */ o.jsx(Cr, { ...n[e], className: r, title: s }),
4565
+ warning: /* @__PURE__ */ o.jsx(gr, { ...n[e], className: r, title: s }),
4566
+ dropdown: /* @__PURE__ */ o.jsx(Et, { ...n[e], className: r, title: s }),
4567
+ calendar: /* @__PURE__ */ o.jsx(Wt, { ...n[e], className: r, title: s }),
4568
+ bookmark: /* @__PURE__ */ o.jsx(St, { ...n[e], className: r, title: s }),
4569
+ menu: /* @__PURE__ */ o.jsx(Bt, { ...n[e], className: r, title: s }),
4570
+ add: /* @__PURE__ */ o.jsx(Ft, { ...n[e], className: r, title: s }),
4571
+ exclude: /* @__PURE__ */ o.jsx(jt, { ...n[e], className: r, title: s }),
4572
+ email: /* @__PURE__ */ o.jsx(kt, { ...n[e], className: r, title: s }),
4573
+ close: /* @__PURE__ */ o.jsx(br, { ...n[e], className: r, title: s }),
4574
+ checkCircle: /* @__PURE__ */ o.jsx(pr, { ...n[e], className: r, title: s }),
4575
+ linkNewTab: /* @__PURE__ */ o.jsx(Dt, { ...n[e], className: r, title: s })
4576
+ }, u = {
4577
+ notifications: /* @__PURE__ */ o.jsx(
4578
+ gt,
4579
+ {
4580
+ ...n[e],
4581
+ className: r,
4582
+ title: s
4583
+ }
4584
+ ),
4585
+ resourceCenter: /* @__PURE__ */ o.jsx(
4586
+ zt,
4587
+ {
4588
+ ...n[e],
4589
+ className: r,
4590
+ title: s
4591
+ }
4592
+ ),
4593
+ bookmark: /* @__PURE__ */ o.jsx(Vt, { ...n[e], className: r, title: s }),
4594
+ settings: c.settings,
4595
+ questionCircle: c.questionCircle,
4596
+ flag: c.flag,
4597
+ edit: c.edit,
4598
+ delete: c.delete,
4599
+ search: c.search,
4600
+ error: c.error,
4601
+ warning: c.warning,
4602
+ dropdown: c.dropdown,
4603
+ calendar: c.calendar,
4604
+ infoCircle: c.infoCircle,
4605
+ menu: c.menu,
4606
+ add: c.add,
4607
+ exclude: c.exclude,
4608
+ email: c.email,
4609
+ close: c.close,
4610
+ checkCircle: c.checkCircle,
4611
+ linkNewTab: c.linkNewTab
4612
+ }, h = i ? u[a] : c[a];
4613
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: h });
4614
+ }, ge = _1;
4615
+ function yr(e) {
4616
+ var a, i, r = "";
4617
+ if (typeof e == "string" || typeof e == "number")
4618
+ r += e;
4619
+ else if (typeof e == "object")
4620
+ if (Array.isArray(e)) {
4621
+ var s = e.length;
4622
+ for (a = 0; a < s; a++)
4623
+ e[a] && (i = yr(e[a])) && (r && (r += " "), r += i);
4624
+ } else
4625
+ for (i in e)
4626
+ e[i] && (r && (r += " "), r += i);
4627
+ return r;
4628
+ }
4629
+ function S1() {
4630
+ for (var e, a, i = 0, r = "", s = arguments.length; i < s; i++)
4631
+ (e = arguments[i]) && (a = yr(e)) && (r && (r += " "), r += a);
4632
+ return r;
4633
+ }
4634
+ const lr = (...e) => Y(S1(...e)), Pe = [
4539
4635
  "disabled:bg-neutrals-lighter",
4540
4636
  "disabled:text-neutrals-dark",
4541
4637
  "disabled:border-neutrals-light",
@@ -4545,7 +4641,7 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4545
4641
  "disabled:text-neutrals-dark",
4546
4642
  "disabled:border-neutrals-lighter",
4547
4643
  "disabled:cursor-not-allowed"
4548
- ], lr = [
4644
+ ], cr = [
4549
4645
  "p-[0.75rem]",
4550
4646
  "text-neutrals-black",
4551
4647
  "bg-neutrals-white",
@@ -4558,7 +4654,7 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4558
4654
  "focus-visible:border-neutrals-dark",
4559
4655
  "focus-visible:ring-neutrals-black",
4560
4656
  ...Lr
4561
- ], cr = O(
4657
+ ], dr = O(
4562
4658
  [
4563
4659
  "rounded",
4564
4660
  "text-base",
@@ -4642,12 +4738,12 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4642
4738
  "focus-visible:ring-neutrals-black",
4643
4739
  ...Lr
4644
4740
  ],
4645
- icon: ["relative", "group", ...lr],
4646
- "icon-no-label": [...lr]
4741
+ icon: ["relative", "group", ...cr],
4742
+ "icon-no-label": [...cr]
4647
4743
  }
4648
4744
  }
4649
4745
  }
4650
- ), w1 = ({
4746
+ ), $1 = ({
4651
4747
  variant: e = "primary",
4652
4748
  text: a,
4653
4749
  label: i = "",
@@ -4664,7 +4760,7 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4664
4760
  {
4665
4761
  disabled: r,
4666
4762
  onClick: n,
4667
- className: ar(cr({ variant: e }), s),
4763
+ className: lr(dr({ variant: e }), s),
4668
4764
  "aria-label": i,
4669
4765
  ...f,
4670
4766
  children: [
@@ -4693,7 +4789,7 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4693
4789
  {
4694
4790
  disabled: r,
4695
4791
  onClick: n,
4696
- className: ar(cr({ variant: e }), s),
4792
+ className: lr(dr({ variant: e }), s),
4697
4793
  "aria-label": i,
4698
4794
  ...f,
4699
4795
  children: e === "icon-no-label" ? /* @__PURE__ */ o.jsx(
@@ -4729,16 +4825,89 @@ const Y = /* @__PURE__ */ o1(k1), ar = (...e) => Y(Gt(...e)), Pe = [
4729
4825
  )
4730
4826
  ] })
4731
4827
  }
4732
- ) }), U1 = w1, q = "large", te = "medium", oe = "small", ne = "extra-large", dr = "h1", j1 = "h2", y1 = "h3", L1 = "div";
4733
- function M1(e) {
4828
+ ) }), K1 = $1, V1 = ({
4829
+ bodyContent: e = void 0,
4830
+ iconName: a = void 0,
4831
+ title: i = "",
4832
+ footerContent: r = void 0
4833
+ }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-start gap-6 rounded-lg border border-neutrals-light p-5", children: [
4834
+ i && /* @__PURE__ */ o.jsxs("div", { className: "flex flex-row items-center gap-3", children: [
4835
+ a && /* @__PURE__ */ o.jsx(
4836
+ ge,
4837
+ {
4838
+ size: "medium",
4839
+ name: a,
4840
+ className: "text-neutrals-darker",
4841
+ hasIndicator: !1,
4842
+ altText: a
4843
+ }
4844
+ ),
4845
+ /* @__PURE__ */ o.jsx(Z1, { size: "small", text: i, hasMarginBottom: !1 })
4846
+ ] }),
4847
+ e && /* @__PURE__ */ o.jsx("div", { className: "text-base", children: e }),
4848
+ r && /* @__PURE__ */ o.jsx("div", { children: r })
4849
+ ] }), X1 = V1, T1 = O(["h-4", "w-4", "focus:ring-acuity-blue", "border-neutrals"], {
4850
+ variants: {
4851
+ disabled: {
4852
+ false: [
4853
+ "text-acuity-blue",
4854
+ "bg-neutrals-white",
4855
+ "hover:border-acuity-blue",
4856
+ "hover:bg-acuity-blue-lightest",
4857
+ "hover:text-acuity-blue-dark",
4858
+ "active:border-acuity-blue-darkest",
4859
+ "active:bg-acuity-blue-darkest",
4860
+ "active:text-acuity-blue-darkest",
4861
+ "cursor-pointer"
4862
+ ],
4863
+ true: ["text-neutrals", "bg-neutrals-lighter"]
4864
+ }
4865
+ }
4866
+ }), Mr = (e) => Y(T1(e)), A1 = O(["font-base", "ml-2", "text-base"], {
4867
+ variants: {
4868
+ disabled: {
4869
+ false: "cursor-pointer",
4870
+ true: "text-neutrals"
4871
+ }
4872
+ }
4873
+ }), Er = (e) => Y(A1(e)), P1 = ({
4874
+ id: e = "",
4875
+ label: a = "",
4876
+ name: i = "",
4877
+ checked: r = !1,
4878
+ disabled: s = !1,
4879
+ indeterminate: n = !1,
4880
+ ...c
4881
+ }) => {
4882
+ const u = Qr(null);
4883
+ return et(() => {
4884
+ u.current && (u.current.indeterminate = n);
4885
+ }, [n, u]), /* @__PURE__ */ o.jsxs("div", { className: "flex h-4 items-center", children: [
4886
+ /* @__PURE__ */ o.jsx(
4887
+ "input",
4888
+ {
4889
+ id: e,
4890
+ name: i,
4891
+ disabled: s,
4892
+ type: "checkbox",
4893
+ className: `${Mr({ disabled: s })} rounded`,
4894
+ checked: r,
4895
+ ref: u,
4896
+ ...c
4897
+ }
4898
+ ),
4899
+ /* @__PURE__ */ o.jsx("label", { htmlFor: e, className: Er({ disabled: s }), children: a })
4900
+ ] });
4901
+ }, Q1 = P1, q = "large", te = "medium", oe = "small", ne = "extra-large", ur = "h1", O1 = "h2", I1 = "h3", B1 = "div";
4902
+ function N1(e) {
4734
4903
  return {
4735
- [q]: dr,
4736
- [te]: j1,
4737
- [oe]: y1,
4738
- [ne]: L1
4739
- }[e] || dr;
4904
+ [q]: ur,
4905
+ [te]: O1,
4906
+ [oe]: I1,
4907
+ [ne]: B1
4908
+ }[e] || ur;
4740
4909
  }
4741
- const E1 = O("", {
4910
+ const F1 = O("", {
4742
4911
  variants: {
4743
4912
  size: {
4744
4913
  [oe]: "mb-3",
@@ -4756,7 +4925,7 @@ const E1 = O("", {
4756
4925
  [ne]: "text-4xl font-semibold"
4757
4926
  }
4758
4927
  }
4759
- }), R1 = O("mt-0 font-bold text-neutrals-dark", {
4928
+ }), H1 = O("mt-0 font-bold text-neutrals-dark", {
4760
4929
  variants: {
4761
4930
  size: {
4762
4931
  [oe]: "mb-1 text-sm",
@@ -4765,7 +4934,7 @@ const E1 = O("", {
4765
4934
  [ne]: "mb-3 text-base"
4766
4935
  }
4767
4936
  }
4768
- }), W1 = O("mb-0 text-neutrals-dark", {
4937
+ }), D1 = O("mb-0 text-neutrals-dark", {
4769
4938
  variants: {
4770
4939
  size: {
4771
4940
  [oe]: "mt-1 text-base",
@@ -4774,7 +4943,7 @@ const E1 = O("", {
4774
4943
  [ne]: "mt-3 text-base"
4775
4944
  }
4776
4945
  }
4777
- }), _1 = O("text-neutrals-light", {
4946
+ }), G1 = O("text-neutrals-light", {
4778
4947
  variants: {
4779
4948
  size: {
4780
4949
  [oe]: "mt-2",
@@ -4783,7 +4952,7 @@ const E1 = O("", {
4783
4952
  [ne]: "mt-3"
4784
4953
  }
4785
4954
  }
4786
- }), S1 = ({
4955
+ }), z1 = ({
4787
4956
  size: e = q,
4788
4957
  className: a = "",
4789
4958
  text: i = "",
@@ -4794,7 +4963,7 @@ const E1 = O("", {
4794
4963
  headingTag: u,
4795
4964
  ...h
4796
4965
  }) => {
4797
- const g = r ? /* @__PURE__ */ o.jsx("p", { className: R1({ size: e }), children: r }) : null, f = s ? /* @__PURE__ */ o.jsx("p", { className: W1({ size: e }), children: s }) : null, m = n ? /* @__PURE__ */ o.jsx("hr", { className: _1({ size: e }) }) : null, j = c ? E1({ size: e }) : "", _ = {
4966
+ const g = r ? /* @__PURE__ */ o.jsx("p", { className: H1({ size: e }), children: r }) : null, f = s ? /* @__PURE__ */ o.jsx("p", { className: D1({ size: e }), children: s }) : null, m = n ? /* @__PURE__ */ o.jsx("hr", { className: G1({ size: e }) }) : null, j = c ? F1({ size: e }) : "", _ = {
4798
4967
  div: /* @__PURE__ */ o.jsx("div", { className: Ee({ size: e }), children: i }),
4799
4968
  h3: /* @__PURE__ */ o.jsx("h3", { className: Ee({ size: e }), children: i }),
4800
4969
  h2: /* @__PURE__ */ o.jsx("h2", { className: Ee({ size: e }), children: i }),
@@ -4802,179 +4971,31 @@ const E1 = O("", {
4802
4971
  };
4803
4972
  return /* @__PURE__ */ o.jsxs("div", { className: Y(j, a), ...h, children: [
4804
4973
  g,
4805
- _[u || M1(e)],
4974
+ _[u || N1(e)],
4806
4975
  f,
4807
4976
  m
4808
4977
  ] });
4809
- }, V1 = S1;
4810
- function $1() {
4811
- return Math.floor(Math.random() * 1e7);
4812
- }
4813
- const T1 = O(
4814
- [
4815
- "flex",
4816
- "w-full",
4817
- "flex-row",
4818
- "justify-between",
4819
- "rounded",
4820
- "px-4",
4821
- "py-4",
4822
- "font-sans"
4823
- ],
4824
- {
4825
- variants: {
4826
- variant: {
4827
- success: ["bg-success-green-lightest", "text-success-green-darkest"],
4828
- info: ["bg-information-blue-lightest", "text-information-blue-darkest"],
4829
- warning: ["bg-warning-yellow-lightest", "text-neutrals-darker"],
4830
- error: ["bg-danger-red-lightest", "text-danger-red-darkest"]
4831
- }
4832
- }
4833
- }
4834
- ), A1 = (e) => Y(T1(e)), P1 = O("", {
4835
- variants: {
4836
- variant: {
4837
- success: "text-success-green-dark",
4838
- info: "text-information-blue-dark",
4839
- warning: "text-warning-yellow-darkest",
4840
- error: "text-danger-red-dark"
4841
- }
4842
- }
4843
- }), ur = (e) => Y(P1(e)), O1 = O("", {
4844
- variants: {
4845
- variant: {
4846
- success: ["text-success-green-darkest", "stroke-success-green-darkest"],
4847
- info: ["text-information-blue-darkest", "stroke-information-blue-darkest"],
4848
- warning: ["text-neutrals-darker", "stroke-neutrals-darker"],
4849
- error: ["text-danger-red-darkest", "stroke-danger-red-darkest"]
4850
- }
4851
- }
4852
- }), ee = (e) => Y(O1(e)), I1 = ({
4853
- variant: e = "info",
4854
- isDismissible: a = !0,
4855
- showIcon: i = !0,
4856
- titleSize: r = "large",
4857
- title: s = "",
4858
- description: n = "",
4859
- content: c = void 0,
4860
- closeAriaLabel: u = "Close button",
4861
- id: h = "alert_" + $1().toString(),
4862
- handleClose: g
4863
- }) => {
4864
- const f = {
4865
- success: /* @__PURE__ */ o.jsx(gr, { className: ee({ variant: e }) }),
4866
- info: /* @__PURE__ */ o.jsx(pr, { className: ee({ variant: e }) }),
4867
- warning: /* @__PURE__ */ o.jsx(Cr, { className: ee({ variant: e }) }),
4868
- error: /* @__PURE__ */ o.jsx(br, { className: ee({ variant: e }) })
4869
- };
4870
- return /* @__PURE__ */ o.jsxs("div", { id: h, className: A1({ variant: e }), children: [
4871
- /* @__PURE__ */ o.jsxs("div", { className: "flex flex-row", children: [
4872
- i && /* @__PURE__ */ o.jsx(
4873
- "div",
4874
- {
4875
- className: `flex pr-2 ${r === "large" && s !== "" && "h-[1.75rem] items-center"}`,
4876
- children: f[e]
4877
- }
4878
- ),
4879
- /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-3", children: [
4880
- /* @__PURE__ */ o.jsxs(
4881
- "div",
4882
- {
4883
- className: `${r === "large" ? "flex-col" : "flex-row"} flex gap-3`,
4884
- children: [
4885
- r !== "none" && s !== "" && /* @__PURE__ */ o.jsx("h1", { className: r === "large" ? "text-xl font-semibold" : "hidden", children: s }),
4886
- /* @__PURE__ */ o.jsxs("div", { className: ur({ variant: e }), children: [
4887
- /* @__PURE__ */ o.jsx(
4888
- "span",
4889
- {
4890
- className: `${ee({ variant: e })} ${r === "small" && s !== "" ? "pr-2 text-base font-semibold" : "hidden"}`,
4891
- children: s
4892
- }
4893
- ),
4894
- n
4895
- ] })
4896
- ]
4897
- }
4898
- ),
4899
- c && /* @__PURE__ */ o.jsx("div", { className: ur({ variant: e }), children: c })
4900
- ] })
4901
- ] }),
4902
- a === !0 && /* @__PURE__ */ o.jsx("button", { className: "h-5", onClick: g, "aria-label": u, children: /* @__PURE__ */ o.jsx(xr, { width: "1rem", height: "1rem", className: ee({ variant: e }) }) })
4903
- ] });
4904
- }, Y1 = I1, B1 = ({
4905
- bodyContent: e = void 0,
4906
- iconName: a = void 0,
4907
- title: i = "",
4908
- footerContent: r = void 0
4909
- }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-start gap-3 rounded-lg border border-neutrals-light p-5", children: [
4910
- i && /* @__PURE__ */ o.jsxs("div", { className: "flex flex-row items-center gap-3", children: [
4911
- a && /* @__PURE__ */ o.jsx(
4912
- ge,
4913
- {
4914
- size: "medium",
4915
- name: a,
4916
- className: "text-neutrals-darker",
4917
- hasIndicator: !1,
4918
- altText: a
4919
- }
4920
- ),
4921
- /* @__PURE__ */ o.jsx(V1, { size: "small", text: i, hasMarginBottom: !1 })
4922
- ] }),
4923
- e && /* @__PURE__ */ o.jsx("div", { className: "text-base", children: e }),
4924
- r && /* @__PURE__ */ o.jsx("div", { children: r })
4925
- ] }), q1 = B1, N1 = O(["h-4", "w-4", "focus:ring-acuity-blue", "border-neutrals"], {
4926
- variants: {
4927
- disabled: {
4928
- false: [
4929
- "text-acuity-blue",
4930
- "bg-neutrals-white",
4931
- "hover:border-acuity-blue",
4932
- "hover:bg-acuity-blue-lightest",
4933
- "hover:text-acuity-blue-dark",
4934
- "active:border-acuity-blue-darkest",
4935
- "active:bg-acuity-blue-darkest",
4936
- "active:text-acuity-blue-darkest",
4937
- "cursor-pointer"
4938
- ],
4939
- true: ["text-neutrals", "bg-neutrals-lighter"]
4940
- }
4941
- }
4942
- }), H1 = (e) => Y(N1(e)), F1 = O(["font-base", "ml-2", "text-base"], {
4943
- variants: {
4944
- disabled: {
4945
- false: "cursor-pointer",
4946
- true: "text-neutrals"
4947
- }
4948
- }
4949
- }), D1 = (e) => Y(F1(e)), G1 = ({
4950
- label: e = "",
4951
- name: a = "",
4952
- id: i = "",
4953
- disabled: r = !1,
4954
- handleChange: s = () => {
4955
- },
4956
- ...n
4957
- }) => /* @__PURE__ */ o.jsxs("div", { className: "flex h-4 items-center", children: [
4978
+ }, Z1 = z1, U1 = ({ label: e = "", name: a, id: i, disabled: r = !1, ...s }) => /* @__PURE__ */ o.jsxs("div", { className: "flex h-4 items-center", children: [
4958
4979
  /* @__PURE__ */ o.jsx(
4959
4980
  "input",
4960
4981
  {
4961
4982
  id: i,
4962
4983
  name: a,
4963
4984
  type: "radio",
4964
- className: H1({ disabled: r }),
4965
- onChange: s,
4985
+ className: Mr({ disabled: r }),
4966
4986
  disabled: r,
4967
- ...n
4987
+ ...s
4968
4988
  }
4969
4989
  ),
4970
- /* @__PURE__ */ o.jsx("label", { htmlFor: i, className: D1({ disabled: r }), children: e })
4971
- ] }), J1 = G1;
4990
+ /* @__PURE__ */ o.jsx("label", { htmlFor: i, className: Er({ disabled: r }), children: e })
4991
+ ] }), eo = U1;
4972
4992
  export {
4973
- Y1 as Alert,
4974
- U1 as Button,
4975
- q1 as Card,
4976
- V1 as Heading,
4993
+ J1 as Alert,
4994
+ K1 as Button,
4995
+ X1 as Card,
4996
+ Q1 as Checkbox,
4997
+ Z1 as Heading,
4977
4998
  ge as Icon,
4978
- J1 as Radio
4999
+ eo as Radio
4979
5000
  };
4980
5001
  //# sourceMappingURL=index.es.js.map