ds-smart-ui 0.0.13 → 0.0.15

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
@@ -16,15 +16,15 @@ function Nr() {
16
16
  return ie;
17
17
  Xe = 1;
18
18
  var r = or, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function l(u, p, g) {
20
- var f, m = {}, x = null, j = null;
21
- g !== void 0 && (x = "" + g), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (j = p.ref);
19
+ function l(u, p, m) {
20
+ var f, g = {}, x = null, j = null;
21
+ m !== void 0 && (x = "" + m), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (j = p.ref);
22
22
  for (f in p)
23
- o.call(p, f) && !s.hasOwnProperty(f) && (m[f] = p[f]);
23
+ o.call(p, f) && !s.hasOwnProperty(f) && (g[f] = p[f]);
24
24
  if (u && u.defaultProps)
25
25
  for (f in p = u.defaultProps, p)
26
- m[f] === void 0 && (m[f] = p[f]);
27
- return { $$typeof: t, type: u, key: x, ref: j, props: m, _owner: c.current };
26
+ g[f] === void 0 && (g[f] = p[f]);
27
+ return { $$typeof: t, type: u, key: x, ref: j, props: g, _owner: c.current };
28
28
  }
29
29
  return ie.Fragment = n, ie.jsx = l, ie.jsxs = l, ie;
30
30
  }
@@ -41,15 +41,15 @@ var se = {};
41
41
  var He;
42
42
  function $r() {
43
43
  return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
44
- var r = or, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), F = Symbol.iterator, _ = "@@iterator";
44
+ var r = or, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), F = Symbol.iterator, C = "@@iterator";
45
45
  function S(e) {
46
46
  if (e === null || typeof e != "object")
47
47
  return null;
48
- var a = F && e[F] || e[_];
48
+ var a = F && e[F] || e[C];
49
49
  return typeof a == "function" ? a : null;
50
50
  }
51
51
  var P = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function k(e) {
52
+ function E(e) {
53
53
  {
54
54
  for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), d = 1; d < a; d++)
55
55
  i[d - 1] = arguments[d];
@@ -66,10 +66,10 @@ function $r() {
66
66
  R.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, R);
67
67
  }
68
68
  }
69
- var Q = !1, pe = !1, be = !1, ge = !1, me = !1, q;
69
+ var Q = !1, pe = !1, be = !1, me = !1, ge = !1, q;
70
70
  q = Symbol.for("react.module.reference");
71
71
  function ee(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || me || e === c || e === g || e === f || ge || e === j || Q || pe || be || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === m || e.$$typeof === l || e.$$typeof === u || e.$$typeof === p || // This needs to include all possible module reference object
72
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || ge || e === c || e === m || e === f || me || e === j || Q || pe || be || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === g || e.$$typeof === l || e.$$typeof === u || e.$$typeof === p || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
@@ -88,7 +88,7 @@ function $r() {
88
88
  function z(e) {
89
89
  if (e == null)
90
90
  return null;
91
- if (typeof e.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
92
  return e.displayName || e.name || null;
93
93
  if (typeof e == "string")
94
94
  return e;
@@ -101,7 +101,7 @@ function $r() {
101
101
  return "Profiler";
102
102
  case c:
103
103
  return "StrictMode";
104
- case g:
104
+ case m:
105
105
  return "Suspense";
106
106
  case f:
107
107
  return "SuspenseList";
@@ -116,7 +116,7 @@ function $r() {
116
116
  return w(i._context) + ".Provider";
117
117
  case p:
118
118
  return re(e, e.render, "ForwardRef");
119
- case m:
119
+ case g:
120
120
  var d = e.displayName || null;
121
121
  return d !== null ? d : z(e.type) || "Memo";
122
122
  case x: {
@@ -189,30 +189,30 @@ function $r() {
189
189
  })
190
190
  });
191
191
  }
192
- W < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ W < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var Re = P.ReactCurrentDispatcher, ke;
195
+ var Re = P.ReactCurrentDispatcher, Ee;
196
196
  function ve(e, a, i) {
197
197
  {
198
- if (ke === void 0)
198
+ if (Ee === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (y) {
202
202
  var d = y.stack.trim().match(/\n( *(at )?)/);
203
- ke = d && d[1] || "";
203
+ Ee = d && d[1] || "";
204
204
  }
205
205
  return `
206
- ` + ke + e;
206
+ ` + Ee + e;
207
207
  }
208
208
  }
209
- var Ee = !1, he;
209
+ var _e = !1, he;
210
210
  {
211
211
  var br = typeof WeakMap == "function" ? WeakMap : Map;
212
212
  he = new br();
213
213
  }
214
214
  function Fe(e, a) {
215
- if (!e || Ee)
215
+ if (!e || _e)
216
216
  return "";
217
217
  {
218
218
  var i = he.get(e);
@@ -220,7 +220,7 @@ function $r() {
220
220
  return i;
221
221
  }
222
222
  var d;
223
- Ee = !0;
223
+ _e = !0;
224
224
  var y = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var R;
@@ -261,31 +261,31 @@ function $r() {
261
261
  if (A && d && typeof A.stack == "string") {
262
262
  for (var v = A.stack.split(`
263
263
  `), O = d.stack.split(`
264
- `), C = v.length - 1, T = O.length - 1; C >= 1 && T >= 0 && v[C] !== O[T]; )
264
+ `), k = v.length - 1, T = O.length - 1; k >= 1 && T >= 0 && v[k] !== O[T]; )
265
265
  T--;
266
- for (; C >= 1 && T >= 0; C--, T--)
267
- if (v[C] !== O[T]) {
268
- if (C !== 1 || T !== 1)
266
+ for (; k >= 1 && T >= 0; k--, T--)
267
+ if (v[k] !== O[T]) {
268
+ if (k !== 1 || T !== 1)
269
269
  do
270
- if (C--, T--, T < 0 || v[C] !== O[T]) {
270
+ if (k--, T--, T < 0 || v[k] !== O[T]) {
271
271
  var I = `
272
- ` + v[C].replace(" at new ", " at ");
272
+ ` + v[k].replace(" at new ", " at ");
273
273
  return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && he.set(e, I), I;
274
274
  }
275
- while (C >= 1 && T >= 0);
275
+ while (k >= 1 && T >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- Ee = !1, Re.current = R, pr(), Error.prepareStackTrace = y;
280
+ _e = !1, Re.current = R, pr(), Error.prepareStackTrace = y;
281
281
  }
282
282
  var H = e ? e.displayName || e.name : "", B = H ? ve(H) : "";
283
283
  return typeof e == "function" && he.set(e, B), B;
284
284
  }
285
- function gr(e, a, i) {
285
+ function mr(e, a, i) {
286
286
  return Fe(e, !1);
287
287
  }
288
- function mr(e) {
288
+ function gr(e) {
289
289
  var a = e.prototype;
290
290
  return !!(a && a.isReactComponent);
291
291
  }
@@ -293,11 +293,11 @@ function $r() {
293
293
  if (e == null)
294
294
  return "";
295
295
  if (typeof e == "function")
296
- return Fe(e, mr(e));
296
+ return Fe(e, gr(e));
297
297
  if (typeof e == "string")
298
298
  return ve(e);
299
299
  switch (e) {
300
- case g:
300
+ case m:
301
301
  return ve("Suspense");
302
302
  case f:
303
303
  return ve("SuspenseList");
@@ -305,8 +305,8 @@ function $r() {
305
305
  if (typeof e == "object")
306
306
  switch (e.$$typeof) {
307
307
  case p:
308
- return gr(e.render);
309
- case m:
308
+ return mr(e.render);
309
+ case g:
310
310
  return ye(e.type, a, i);
311
311
  case x: {
312
312
  var d = e, y = d._payload, R = d._init;
@@ -338,15 +338,15 @@ function $r() {
338
338
  throw O.name = "Invariant Violation", O;
339
339
  }
340
340
  v = e[h](a, h, d, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (C) {
342
- v = C;
341
+ } catch (k) {
342
+ v = k;
343
343
  }
344
- v && !(v instanceof Error) && (xe(y), k("%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).", d || "React class", i, h, typeof v), xe(null)), v instanceof Error && !(v.message in Ve) && (Ve[v.message] = !0, xe(y), k("Failed %s type: %s", i, v.message), xe(null));
344
+ v && !(v instanceof Error) && (xe(y), E("%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).", d || "React class", i, h, typeof v), xe(null)), v instanceof Error && !(v.message in Ve) && (Ve[v.message] = !0, xe(y), E("Failed %s type: %s", i, v.message), xe(null));
345
345
  }
346
346
  }
347
347
  }
348
348
  var hr = Array.isArray;
349
- function _e(e) {
349
+ function Ce(e) {
350
350
  return hr(e);
351
351
  }
352
352
  function yr(e) {
@@ -367,15 +367,15 @@ function $r() {
367
367
  }
368
368
  function $e(e) {
369
369
  if (xr(e))
370
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), Ne(e);
370
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), Ne(e);
371
371
  }
372
372
  var ae = P.ReactCurrentOwner, wr = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
- }, Le, De, Ce;
378
- Ce = {};
377
+ }, Le, De, ke;
378
+ ke = {};
379
379
  function Rr(e) {
380
380
  if (oe.call(e, "ref")) {
381
381
  var a = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -384,7 +384,7 @@ function $r() {
384
384
  }
385
385
  return e.ref !== void 0;
386
386
  }
387
- function kr(e) {
387
+ function Er(e) {
388
388
  if (oe.call(e, "key")) {
389
389
  var a = Object.getOwnPropertyDescriptor(e, "key").get;
390
390
  if (a && a.isReactWarning)
@@ -392,16 +392,16 @@ function $r() {
392
392
  }
393
393
  return e.key !== void 0;
394
394
  }
395
- function Er(e, a) {
395
+ function _r(e, a) {
396
396
  if (typeof e.ref == "string" && ae.current && a && ae.current.stateNode !== a) {
397
397
  var i = z(ae.current.type);
398
- Ce[i] || (k('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', z(ae.current.type), e.ref), Ce[i] = !0);
398
+ ke[i] || (E('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', z(ae.current.type), e.ref), ke[i] = !0);
399
399
  }
400
400
  }
401
- function _r(e, a) {
401
+ function Cr(e, a) {
402
402
  {
403
403
  var i = function() {
404
- Le || (Le = !0, k("%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)", a));
404
+ Le || (Le = !0, E("%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)", a));
405
405
  };
406
406
  i.isReactWarning = !0, Object.defineProperty(e, "key", {
407
407
  get: i,
@@ -409,10 +409,10 @@ function $r() {
409
409
  });
410
410
  }
411
411
  }
412
- function Cr(e, a) {
412
+ function kr(e, a) {
413
413
  {
414
414
  var i = function() {
415
- De || (De = !0, k("%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)", a));
415
+ De || (De = !0, E("%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)", a));
416
416
  };
417
417
  i.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
418
  get: i,
@@ -452,17 +452,17 @@ function $r() {
452
452
  function Tr(e, a, i, d, y) {
453
453
  {
454
454
  var R, h = {}, v = null, O = null;
455
- i !== void 0 && ($e(i), v = "" + i), kr(a) && ($e(a.key), v = "" + a.key), Rr(a) && (O = a.ref, Er(a, y));
455
+ i !== void 0 && ($e(i), v = "" + i), Er(a) && ($e(a.key), v = "" + a.key), Rr(a) && (O = a.ref, _r(a, y));
456
456
  for (R in a)
457
457
  oe.call(a, R) && !wr.hasOwnProperty(R) && (h[R] = a[R]);
458
458
  if (e && e.defaultProps) {
459
- var C = e.defaultProps;
460
- for (R in C)
461
- h[R] === void 0 && (h[R] = C[R]);
459
+ var k = e.defaultProps;
460
+ for (R in k)
461
+ h[R] === void 0 && (h[R] = k[R]);
462
462
  }
463
463
  if (v || O) {
464
464
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- v && _r(h, T), O && Cr(h, T);
465
+ v && Cr(h, T), O && kr(h, T);
466
466
  }
467
467
  return Sr(e, v, O, y, d, ae.current, h);
468
468
  }
@@ -518,14 +518,14 @@ Check the top-level render call using <` + i + ">.");
518
518
  return;
519
519
  Ue[i] = !0;
520
520
  var d = "";
521
- e && e._owner && e._owner !== Se.current && (d = " It was passed a child from " + z(e._owner.type) + "."), X(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, d), X(null);
521
+ e && e._owner && e._owner !== Se.current && (d = " It was passed a child from " + z(e._owner.type) + "."), X(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, d), X(null);
522
522
  }
523
523
  }
524
524
  function Je(e, a) {
525
525
  {
526
526
  if (typeof e != "object")
527
527
  return;
528
- if (_e(e))
528
+ if (Ce(e))
529
529
  for (var i = 0; i < e.length; i++) {
530
530
  var d = e[i];
531
531
  je(d) && Be(d, a);
@@ -550,7 +550,7 @@ Check the top-level render call using <` + i + ">.");
550
550
  i = a.propTypes;
551
551
  else if (typeof a == "object" && (a.$$typeof === p || // Note: Memo only checks outer props here.
552
552
  // Inner props are checked in the reconciler.
553
- a.$$typeof === m))
553
+ a.$$typeof === g))
554
554
  i = a.propTypes;
555
555
  else
556
556
  return;
@@ -560,9 +560,9 @@ Check the top-level render call using <` + i + ">.");
560
560
  } else if (a.PropTypes !== void 0 && !Te) {
561
561
  Te = !0;
562
562
  var y = z(a);
563
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
563
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
564
564
  }
565
- typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
566
  }
567
567
  }
568
568
  function Ar(e) {
@@ -570,11 +570,11 @@ Check the top-level render call using <` + i + ">.");
570
570
  for (var a = Object.keys(e.props), i = 0; i < a.length; i++) {
571
571
  var d = a[i];
572
572
  if (d !== "children" && d !== "key") {
573
- X(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), X(null);
573
+ X(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), X(null);
574
574
  break;
575
575
  }
576
576
  }
577
- e.ref !== null && (X(e), k("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
577
+ e.ref !== null && (X(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
578
578
  }
579
579
  }
580
580
  var qe = {};
@@ -586,8 +586,8 @@ Check the top-level render call using <` + i + ">.");
586
586
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
587
587
  var O = jr();
588
588
  O ? v += O : v += Ye();
589
- var C;
590
- e === null ? C = "null" : _e(e) ? C = "array" : e !== void 0 && e.$$typeof === t ? (C = "<" + (z(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, v);
589
+ var k;
590
+ e === null ? k = "null" : Ce(e) ? k = "array" : e !== void 0 && e.$$typeof === t ? (k = "<" + (z(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, v);
591
591
  }
592
592
  var T = Tr(e, a, i, y, R);
593
593
  if (T == null)
@@ -596,12 +596,12 @@ Check the top-level render call using <` + i + ">.");
596
596
  var I = a.children;
597
597
  if (I !== void 0)
598
598
  if (d)
599
- if (_e(I)) {
599
+ if (Ce(I)) {
600
600
  for (var H = 0; H < I.length; H++)
601
601
  Je(I[H], e);
602
602
  Object.freeze && Object.freeze(I);
603
603
  } else
604
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
605
  else
606
606
  Je(I, e);
607
607
  }
@@ -611,7 +611,7 @@ Check the top-level render call using <` + i + ">.");
611
611
  }), Pe = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
612
612
  if (!qe[B + Pe]) {
613
613
  var Vr = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
614
- k(`A props object containing a "key" prop is being spread into JSX:
614
+ E(`A props object containing a "key" prop is being spread into JSX:
615
615
  let props = %s;
616
616
  <%s {...props} />
617
617
  React keys must be passed directly to JSX without using spread:
@@ -656,31 +656,31 @@ const Ze = (r) => typeof r == "boolean" ? "".concat(r) : r === 0 ? "0" : r, Qe =
656
656
  var o;
657
657
  if ((t == null ? void 0 : t.variants) == null)
658
658
  return Qe(r, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
659
- const { variants: c, defaultVariants: s } = t, l = Object.keys(c).map((g) => {
660
- const f = n == null ? void 0 : n[g], m = s == null ? void 0 : s[g];
659
+ const { variants: c, defaultVariants: s } = t, l = Object.keys(c).map((m) => {
660
+ const f = n == null ? void 0 : n[m], g = s == null ? void 0 : s[m];
661
661
  if (f === null)
662
662
  return null;
663
- const x = Ze(f) || Ze(m);
664
- return c[g][x];
665
- }), u = n && Object.entries(n).reduce((g, f) => {
666
- let [m, x] = f;
667
- return x === void 0 || (g[m] = x), g;
668
- }, {}), p = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((g, f) => {
669
- let { class: m, className: x, ...j } = f;
663
+ const x = Ze(f) || Ze(g);
664
+ return c[m][x];
665
+ }), u = n && Object.entries(n).reduce((m, f) => {
666
+ let [g, x] = f;
667
+ return x === void 0 || (m[g] = x), m;
668
+ }, {}), p = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((m, f) => {
669
+ let { class: g, className: x, ...j } = f;
670
670
  return Object.entries(j).every((F) => {
671
- let [_, S] = F;
671
+ let [C, S] = F;
672
672
  return Array.isArray(S) ? S.includes({
673
673
  ...s,
674
674
  ...u
675
- }[_]) : {
675
+ }[C]) : {
676
676
  ...s,
677
677
  ...u
678
- }[_] === S;
678
+ }[C] === S;
679
679
  }) ? [
680
- ...g,
681
- m,
680
+ ...m,
681
+ g,
682
682
  x
683
- ] : g;
683
+ ] : m;
684
684
  }, []);
685
685
  return Qe(r, l, p, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
686
686
  };
@@ -827,22 +827,22 @@ function Kr(r) {
827
827
  const t = r.separator, n = t.length === 1, o = t[0], c = t.length;
828
828
  return function(l) {
829
829
  const u = [];
830
- let p = 0, g = 0, f;
831
- for (let _ = 0; _ < l.length; _++) {
832
- let S = l[_];
830
+ let p = 0, m = 0, f;
831
+ for (let C = 0; C < l.length; C++) {
832
+ let S = l[C];
833
833
  if (p === 0) {
834
- if (S === o && (n || l.slice(_, _ + c) === t)) {
835
- u.push(l.slice(g, _)), g = _ + c;
834
+ if (S === o && (n || l.slice(C, C + c) === t)) {
835
+ u.push(l.slice(m, C)), m = C + c;
836
836
  continue;
837
837
  }
838
838
  if (S === "/") {
839
- f = _;
839
+ f = C;
840
840
  continue;
841
841
  }
842
842
  }
843
843
  S === "[" ? p++ : S === "]" && p--;
844
844
  }
845
- const m = u.length === 0 ? l : l.substring(g), x = m.startsWith(lr), j = x ? m.substring(1) : m, F = f && f > g ? f - g : void 0;
845
+ const g = u.length === 0 ? l : l.substring(m), x = g.startsWith(lr), j = x ? g.substring(1) : g, F = f && f > m ? f - m : void 0;
846
846
  return {
847
847
  modifiers: u,
848
848
  hasImportantModifier: x,
@@ -878,17 +878,17 @@ function Qr(r, t) {
878
878
  const {
879
879
  modifiers: u,
880
880
  hasImportantModifier: p,
881
- baseClassName: g,
881
+ baseClassName: m,
882
882
  maybePostfixModifierPosition: f
883
883
  } = n(l);
884
- let m = o(f ? g.substring(0, f) : g), x = !!f;
885
- if (!m) {
884
+ let g = o(f ? m.substring(0, f) : m), x = !!f;
885
+ if (!g) {
886
886
  if (!f)
887
887
  return {
888
888
  isTailwindClass: !1,
889
889
  originalClassName: l
890
890
  };
891
- if (m = o(g), !m)
891
+ if (g = o(m), !g)
892
892
  return {
893
893
  isTailwindClass: !1,
894
894
  originalClassName: l
@@ -899,7 +899,7 @@ function Qr(r, t) {
899
899
  return {
900
900
  isTailwindClass: !0,
901
901
  modifierId: p ? j + lr : j,
902
- classGroupId: m,
902
+ classGroupId: g,
903
903
  originalClassName: l,
904
904
  hasPostfixModifier: x
905
905
  };
@@ -909,9 +909,9 @@ function Qr(r, t) {
909
909
  const {
910
910
  modifierId: u,
911
911
  classGroupId: p,
912
- hasPostfixModifier: g
912
+ hasPostfixModifier: m
913
913
  } = l, f = u + p;
914
- return s.has(f) ? !1 : (s.add(f), c(p, g).forEach((m) => s.add(u + m)), !0);
914
+ return s.has(f) ? !1 : (s.add(f), c(p, m).forEach((g) => s.add(u + g)), !0);
915
915
  }).reverse().map((l) => l.originalClassName).join(" ");
916
916
  }
917
917
  function et() {
@@ -931,13 +931,13 @@ function cr(r) {
931
931
  function rt(r, ...t) {
932
932
  let n, o, c, s = l;
933
933
  function l(p) {
934
- const g = t.reduce((f, m) => m(f), r());
935
- return n = Hr(g), o = n.cache.get, c = n.cache.set, s = u, u(p);
934
+ const m = t.reduce((f, g) => g(f), r());
935
+ return n = Hr(m), o = n.cache.get, c = n.cache.set, s = u, u(p);
936
936
  }
937
937
  function u(p) {
938
- const g = o(p);
939
- if (g)
940
- return g;
938
+ const m = o(p);
939
+ if (m)
940
+ return m;
941
941
  const f = Qr(p, n);
942
942
  return c(p, f), f;
943
943
  }
@@ -945,7 +945,7 @@ function rt(r, ...t) {
945
945
  return s(et.apply(null, arguments));
946
946
  };
947
947
  }
948
- function E(r) {
948
+ function _(r) {
949
949
  const t = (n) => n[r] || [];
950
950
  return t.isThemeGetter = !0, t;
951
951
  }
@@ -954,7 +954,7 @@ function V(r) {
954
954
  return J(r) || nt.has(r) || tt.test(r);
955
955
  }
956
956
  function L(r) {
957
- return Z(r, "length", mt);
957
+ return Z(r, "length", gt);
958
958
  }
959
959
  function J(r) {
960
960
  return !!r && !Number.isNaN(Number(r));
@@ -985,7 +985,7 @@ const pt = /* @__PURE__ */ new Set(["image", "url"]);
985
985
  function bt(r) {
986
986
  return Z(r, pt, ht);
987
987
  }
988
- function gt(r) {
988
+ function mt(r) {
989
989
  return Z(r, "", vt);
990
990
  }
991
991
  function ce() {
@@ -995,7 +995,7 @@ function Z(r, t, n) {
995
995
  const o = ur.exec(r);
996
996
  return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1;
997
997
  }
998
- function mt(r) {
998
+ function gt(r) {
999
999
  return at.test(r) && !it.test(r);
1000
1000
  }
1001
1001
  function dr() {
@@ -1008,7 +1008,7 @@ function ht(r) {
1008
1008
  return lt.test(r);
1009
1009
  }
1010
1010
  function yt() {
1011
- const r = E("colors"), t = E("spacing"), n = E("blur"), o = E("brightness"), c = E("borderColor"), s = E("borderRadius"), l = E("borderSpacing"), u = E("borderWidth"), p = E("contrast"), g = E("grayscale"), f = E("hueRotate"), m = E("invert"), x = E("gap"), j = E("gradientColorStops"), F = E("gradientColorStopPositions"), _ = E("inset"), S = E("margin"), P = E("opacity"), k = E("padding"), fe = E("saturate"), Q = E("scale"), pe = E("sepia"), be = E("skew"), ge = E("space"), me = E("translate"), q = () => ["auto", "contain", "none"], ee = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", b, t], w = () => [b, t], z = () => ["", V, L], M = () => ["auto", J, b], W = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], N = () => ["", "0", b], ne = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [J, we], U = () => [J, b];
1011
+ const r = _("colors"), t = _("spacing"), n = _("blur"), o = _("brightness"), c = _("borderColor"), s = _("borderRadius"), l = _("borderSpacing"), u = _("borderWidth"), p = _("contrast"), m = _("grayscale"), f = _("hueRotate"), g = _("invert"), x = _("gap"), j = _("gradientColorStops"), F = _("gradientColorStopPositions"), C = _("inset"), S = _("margin"), P = _("opacity"), E = _("padding"), fe = _("saturate"), Q = _("scale"), pe = _("sepia"), be = _("skew"), me = _("space"), ge = _("translate"), q = () => ["auto", "contain", "none"], ee = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", b, t], w = () => [b, t], z = () => ["", V, L], M = () => ["auto", J, b], W = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], N = () => ["", "0", b], ne = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [J, we], U = () => [J, b];
1012
1012
  return {
1013
1013
  cacheSize: 500,
1014
1014
  separator: ":",
@@ -1185,63 +1185,63 @@ function yt() {
1185
1185
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1186
1186
  */
1187
1187
  inset: [{
1188
- inset: [_]
1188
+ inset: [C]
1189
1189
  }],
1190
1190
  /**
1191
1191
  * Right / Left
1192
1192
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1193
1193
  */
1194
1194
  "inset-x": [{
1195
- "inset-x": [_]
1195
+ "inset-x": [C]
1196
1196
  }],
1197
1197
  /**
1198
1198
  * Top / Bottom
1199
1199
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1200
1200
  */
1201
1201
  "inset-y": [{
1202
- "inset-y": [_]
1202
+ "inset-y": [C]
1203
1203
  }],
1204
1204
  /**
1205
1205
  * Start
1206
1206
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1207
1207
  */
1208
1208
  start: [{
1209
- start: [_]
1209
+ start: [C]
1210
1210
  }],
1211
1211
  /**
1212
1212
  * End
1213
1213
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1214
1214
  */
1215
1215
  end: [{
1216
- end: [_]
1216
+ end: [C]
1217
1217
  }],
1218
1218
  /**
1219
1219
  * Top
1220
1220
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1221
1221
  */
1222
1222
  top: [{
1223
- top: [_]
1223
+ top: [C]
1224
1224
  }],
1225
1225
  /**
1226
1226
  * Right
1227
1227
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1228
1228
  */
1229
1229
  right: [{
1230
- right: [_]
1230
+ right: [C]
1231
1231
  }],
1232
1232
  /**
1233
1233
  * Bottom
1234
1234
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1235
1235
  */
1236
1236
  bottom: [{
1237
- bottom: [_]
1237
+ bottom: [C]
1238
1238
  }],
1239
1239
  /**
1240
1240
  * Left
1241
1241
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1242
1242
  */
1243
1243
  left: [{
1244
- left: [_]
1244
+ left: [C]
1245
1245
  }],
1246
1246
  /**
1247
1247
  * Visibility
@@ -1476,63 +1476,63 @@ function yt() {
1476
1476
  * @see https://tailwindcss.com/docs/padding
1477
1477
  */
1478
1478
  p: [{
1479
- p: [k]
1479
+ p: [E]
1480
1480
  }],
1481
1481
  /**
1482
1482
  * Padding X
1483
1483
  * @see https://tailwindcss.com/docs/padding
1484
1484
  */
1485
1485
  px: [{
1486
- px: [k]
1486
+ px: [E]
1487
1487
  }],
1488
1488
  /**
1489
1489
  * Padding Y
1490
1490
  * @see https://tailwindcss.com/docs/padding
1491
1491
  */
1492
1492
  py: [{
1493
- py: [k]
1493
+ py: [E]
1494
1494
  }],
1495
1495
  /**
1496
1496
  * Padding Start
1497
1497
  * @see https://tailwindcss.com/docs/padding
1498
1498
  */
1499
1499
  ps: [{
1500
- ps: [k]
1500
+ ps: [E]
1501
1501
  }],
1502
1502
  /**
1503
1503
  * Padding End
1504
1504
  * @see https://tailwindcss.com/docs/padding
1505
1505
  */
1506
1506
  pe: [{
1507
- pe: [k]
1507
+ pe: [E]
1508
1508
  }],
1509
1509
  /**
1510
1510
  * Padding Top
1511
1511
  * @see https://tailwindcss.com/docs/padding
1512
1512
  */
1513
1513
  pt: [{
1514
- pt: [k]
1514
+ pt: [E]
1515
1515
  }],
1516
1516
  /**
1517
1517
  * Padding Right
1518
1518
  * @see https://tailwindcss.com/docs/padding
1519
1519
  */
1520
1520
  pr: [{
1521
- pr: [k]
1521
+ pr: [E]
1522
1522
  }],
1523
1523
  /**
1524
1524
  * Padding Bottom
1525
1525
  * @see https://tailwindcss.com/docs/padding
1526
1526
  */
1527
1527
  pb: [{
1528
- pb: [k]
1528
+ pb: [E]
1529
1529
  }],
1530
1530
  /**
1531
1531
  * Padding Left
1532
1532
  * @see https://tailwindcss.com/docs/padding
1533
1533
  */
1534
1534
  pl: [{
1535
- pl: [k]
1535
+ pl: [E]
1536
1536
  }],
1537
1537
  /**
1538
1538
  * Margin
@@ -1602,7 +1602,7 @@ function yt() {
1602
1602
  * @see https://tailwindcss.com/docs/space
1603
1603
  */
1604
1604
  "space-x": [{
1605
- "space-x": [ge]
1605
+ "space-x": [me]
1606
1606
  }],
1607
1607
  /**
1608
1608
  * Space Between X Reverse
@@ -1614,7 +1614,7 @@ function yt() {
1614
1614
  * @see https://tailwindcss.com/docs/space
1615
1615
  */
1616
1616
  "space-y": [{
1617
- "space-y": [ge]
1617
+ "space-y": [me]
1618
1618
  }],
1619
1619
  /**
1620
1620
  * Space Between Y Reverse
@@ -2367,7 +2367,7 @@ function yt() {
2367
2367
  * @see https://tailwindcss.com/docs/box-shadow
2368
2368
  */
2369
2369
  shadow: [{
2370
- shadow: ["", "inner", "none", D, gt]
2370
+ shadow: ["", "inner", "none", D, mt]
2371
2371
  }],
2372
2372
  /**
2373
2373
  * Box Shadow Color
@@ -2439,7 +2439,7 @@ function yt() {
2439
2439
  * @see https://tailwindcss.com/docs/grayscale
2440
2440
  */
2441
2441
  grayscale: [{
2442
- grayscale: [g]
2442
+ grayscale: [m]
2443
2443
  }],
2444
2444
  /**
2445
2445
  * Hue Rotate
@@ -2453,7 +2453,7 @@ function yt() {
2453
2453
  * @see https://tailwindcss.com/docs/invert
2454
2454
  */
2455
2455
  invert: [{
2456
- invert: [m]
2456
+ invert: [g]
2457
2457
  }],
2458
2458
  /**
2459
2459
  * Saturate
@@ -2503,7 +2503,7 @@ function yt() {
2503
2503
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2504
2504
  */
2505
2505
  "backdrop-grayscale": [{
2506
- "backdrop-grayscale": [g]
2506
+ "backdrop-grayscale": [m]
2507
2507
  }],
2508
2508
  /**
2509
2509
  * Backdrop Hue Rotate
@@ -2517,7 +2517,7 @@ function yt() {
2517
2517
  * @see https://tailwindcss.com/docs/backdrop-invert
2518
2518
  */
2519
2519
  "backdrop-invert": [{
2520
- "backdrop-invert": [m]
2520
+ "backdrop-invert": [g]
2521
2521
  }],
2522
2522
  /**
2523
2523
  * Backdrop Opacity
@@ -2660,14 +2660,14 @@ function yt() {
2660
2660
  * @see https://tailwindcss.com/docs/translate
2661
2661
  */
2662
2662
  "translate-x": [{
2663
- "translate-x": [me]
2663
+ "translate-x": [ge]
2664
2664
  }],
2665
2665
  /**
2666
2666
  * Translate Y
2667
2667
  * @see https://tailwindcss.com/docs/translate
2668
2668
  */
2669
2669
  "translate-y": [{
2670
- "translate-y": [me]
2670
+ "translate-y": [ge]
2671
2671
  }],
2672
2672
  /**
2673
2673
  * Skew X
@@ -3028,50 +3028,46 @@ function de(...r) {
3028
3028
  return xt(Dr(...r));
3029
3029
  }
3030
3030
  const tr = ze(
3031
- "inline-flex items-center justify-center text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:opacity-50 dark:focus:ring-gray-400 disabled:pointer-events-none dark:focus:ring-offset-gray-900 data-[state=open]:bg-gray-100 dark:data-[state=open]:bg-gray-800",
3031
+ "inline-flex items-center font-medium justify-center transition-colors disabled:opacity-50 disabled:pointer-events-none",
3032
3032
  {
3033
3033
  variants: {
3034
3034
  variant: {
3035
- default: "bg-gray-900 text-white hover:bg-gray-700 dark:bg-gray-50 dark:text-gray-900",
3036
- destructive: "bg-red-500 text-white hover:bg-red-600 dark:hover:bg-red-600",
3037
- outline: "bg-transparent border border-gray-200 hover:bg-gray-100 dark:border-gray-700 dark:text-gray-100",
3038
- subtle: "bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-100",
3039
- ghost: "bg-transparent dark:bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 dark:text-gray-100 dark:hover:text-gray-100 data-[state=open]:bg-transparent dark:data-[state=open]:bg-transparent",
3040
- link: "bg-transparent dark:bg-transparent underline-offset-4 hover:underline text-gray-900 dark:text-gray-300 hover:bg-transparent dark:hover:bg-transparent"
3035
+ contained: "text-g-neutral-100 bg-wms-primary-500 hover:bg-wms-primary-700",
3036
+ soft: "text-wms-primary-500 bg-wms-primary-50 hover:bg-wms-primary-100",
3037
+ outline: "text-wms-primary-500 border-2 border-wms-primary-500 hover:bg-wms-primary-50",
3038
+ transparent: "text-wms-primary-500 bg-transparent hover:bg-wms-primary-50",
3039
+ link: "text-wms-primary-500 bg-transparent underline-offset-4 hover:underline hover:bg-transparent"
3041
3040
  },
3042
3041
  size: {
3043
- default: "h-10 py-2 px-4",
3044
- tiny: "h-6 px-2 text-xs",
3045
- sm: "h-9 px-2",
3046
- md: "h-10 px-4",
3047
- lg: "h-11 px-8"
3042
+ sm: "py-1 px-4 h-8 text-sm",
3043
+ md: "py-2 px-4 h-10 text-base",
3044
+ lg: "py-2 px-4 h-12 text-lg"
3048
3045
  },
3049
- round: {
3046
+ rounded: {
3050
3047
  none: "rounded-none",
3051
- sm: "rounded-sm",
3048
+ full: "rounded-full",
3052
3049
  md: "rounded-md",
3053
- lg: "rounded-lg",
3054
- full: "rounded-full"
3050
+ lg: "rounded-lg"
3055
3051
  }
3056
3052
  },
3057
3053
  defaultVariants: {
3058
- variant: "default",
3059
- size: "default",
3060
- round: "md"
3054
+ variant: "contained",
3055
+ size: "sm",
3056
+ rounded: "full"
3061
3057
  }
3062
3058
  }
3063
3059
  ), wt = ue.forwardRef(
3064
- ({ className: r, children: t, href: n, variant: o, size: c, round: s, ...l }, u) => n ? /* @__PURE__ */ G.jsx(
3060
+ ({ className: r, children: t, href: n, variant: o, size: c, rounded: s, ...l }, u) => n ? /* @__PURE__ */ G.jsx(
3065
3061
  "a",
3066
3062
  {
3067
3063
  href: n,
3068
- className: de(tr({ variant: o, size: c, round: s, className: r })),
3064
+ className: de(tr({ variant: o, size: c, rounded: s, className: r })),
3069
3065
  children: t
3070
3066
  }
3071
3067
  ) : /* @__PURE__ */ G.jsx(
3072
3068
  "button",
3073
3069
  {
3074
- className: de(tr({ variant: o, size: c, round: s, className: r })),
3070
+ className: de(tr({ variant: o, size: c, rounded: s, className: r })),
3075
3071
  ref: u,
3076
3072
  ...l,
3077
3073
  children: t
@@ -3119,20 +3115,20 @@ const nr = ze(
3119
3115
  startIcon: l,
3120
3116
  endIcon: u,
3121
3117
  ...p
3122
- }, g) => {
3118
+ }, m) => {
3123
3119
  const f = ue.Children.count(t) === 1 && ue.isValidElement(t) && !l && !u;
3124
- let m = "";
3120
+ let g = "";
3125
3121
  if (f)
3126
3122
  switch (c) {
3127
3123
  case "md":
3128
- m = "h-10 w-10";
3124
+ g = "h-10 w-10";
3129
3125
  break;
3130
3126
  case "lg":
3131
- m = "h-12 w-12";
3127
+ g = "h-12 w-12";
3132
3128
  break;
3133
3129
  case "sm":
3134
3130
  default:
3135
- m = "h-8 w-8";
3131
+ g = "h-8 w-8";
3136
3132
  }
3137
3133
  const x = /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
3138
3134
  l,
@@ -3146,7 +3142,7 @@ const nr = ze(
3146
3142
  className: de(
3147
3143
  nr({ variant: o, size: c, rounded: s }),
3148
3144
  r,
3149
- m
3145
+ g
3150
3146
  ),
3151
3147
  children: x
3152
3148
  }
@@ -3156,9 +3152,9 @@ const nr = ze(
3156
3152
  className: de(
3157
3153
  nr({ variant: o, size: c, rounded: s }),
3158
3154
  r,
3159
- m
3155
+ g
3160
3156
  ),
3161
- ref: g,
3157
+ ref: m,
3162
3158
  ...p,
3163
3159
  children: x
3164
3160
  }
@@ -3166,7 +3162,7 @@ const nr = ze(
3166
3162
  }
3167
3163
  );
3168
3164
  Rt.displayName = "IconButton";
3169
- const kt = ze("text-body1-r", {
3165
+ const Et = ze("text-body1-r", {
3170
3166
  variants: {
3171
3167
  variant: {
3172
3168
  h1r: "text-h1-r",
@@ -3216,13 +3212,13 @@ const kt = ze("text-body1-r", {
3216
3212
  defaultVariants: {
3217
3213
  variant: "body2r"
3218
3214
  }
3219
- }), Et = ue.forwardRef(
3220
- ({ children: r, variant: t, className: n, ...o }, c) => /* @__PURE__ */ G.jsx("p", { className: de(kt({ variant: t, className: n })), ...o, children: r })
3215
+ }), _t = ue.forwardRef(
3216
+ ({ children: r, variant: t, className: n, ...o }, c) => /* @__PURE__ */ G.jsx("p", { className: de(Et({ variant: t, className: n })), ...o, children: r })
3221
3217
  );
3222
- Et.displayName = "Typography";
3218
+ _t.displayName = "Typography";
3223
3219
  export {
3224
3220
  wt as Button,
3225
3221
  Rt as IconButton,
3226
- Et as Typography
3222
+ _t as Typography
3227
3223
  };
3228
3224
  //# sourceMappingURL=index.es.js.map