design-system-next 2.3.0 → 2.3.1

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.
@@ -825,7 +825,7 @@ function oo(e, t, r, n) {
825
825
  $.status === "pending" && ($.status = "aborted");
826
826
  }), f = [];
827
827
  }
828
- function j($, D, F) {
828
+ function j($, D, Y) {
829
829
  const O = D !== "success";
830
830
  switch (f = f.filter((x) => x !== $), u) {
831
831
  case "pending":
@@ -838,11 +838,11 @@ function oo(e, t, r, n) {
838
838
  return;
839
839
  }
840
840
  if (D === "abort") {
841
- p = F, m();
841
+ p = Y, m();
842
842
  return;
843
843
  }
844
844
  if (O) {
845
- p = F, f.length || (o.length ? w() : m());
845
+ p = Y, f.length || (o.length ? w() : m());
846
846
  return;
847
847
  }
848
848
  if (h(), b(), !e.random) {
@@ -850,7 +850,7 @@ function oo(e, t, r, n) {
850
850
  x !== -1 && x !== e.index && (e.index = x);
851
851
  }
852
852
  u = "completed", M.forEach((x) => {
853
- x(F);
853
+ x(Y);
854
854
  });
855
855
  }
856
856
  function w() {
@@ -871,8 +871,8 @@ function oo(e, t, r, n) {
871
871
  const D = {
872
872
  status: "pending",
873
873
  resource: $,
874
- callback: (F, O) => {
875
- j(D, F, O);
874
+ callback: (Y, O) => {
875
+ j(D, Y, O);
876
876
  }
877
877
  };
878
878
  f.push(D), d++, c = setTimeout(w, e.rotate), r($, t, D.callback);
@@ -1819,8 +1819,8 @@ function si(e, t = {}) {
1819
1819
  return m && b;
1820
1820
  }, h = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), N = (C, v) => {
1821
1821
  var m, b, j, w, $, D;
1822
- const F = (m = C.dataTransfer) == null ? void 0 : m.items;
1823
- if (i = (b = F && M(F)) != null ? b : !1, p && C.preventDefault(), !h() && !i) {
1822
+ const Y = (m = C.dataTransfer) == null ? void 0 : m.items;
1823
+ if (i = (b = Y && M(Y)) != null ? b : !1, p && C.preventDefault(), !h() && !i) {
1824
1824
  C.dataTransfer && (C.dataTransfer.dropEffect = "none");
1825
1825
  return;
1826
1826
  }
@@ -1997,7 +1997,7 @@ function li(e, t = {}) {
1997
1997
  N(void 0, D);
1998
1998
  }
1999
1999
  });
2000
- function N(D, F) {
2000
+ function N(D, Y) {
2001
2001
  var O, x, S, k;
2002
2002
  if (!d)
2003
2003
  return;
@@ -2005,7 +2005,7 @@ function li(e, t = {}) {
2005
2005
  if (!re)
2006
2006
  return;
2007
2007
  (S = re instanceof Document ? d.document.body : re) == null || S.scrollTo({
2008
- top: (O = $e(F)) != null ? O : h.value,
2008
+ top: (O = $e(Y)) != null ? O : h.value,
2009
2009
  left: (x = $e(D)) != null ? x : M.value,
2010
2010
  behavior: $e(u)
2011
2011
  });
@@ -2025,22 +2025,22 @@ function li(e, t = {}) {
2025
2025
  }), b = (D) => {
2026
2026
  C.value && (C.value = !1, m.left = !1, m.right = !1, m.top = !1, m.bottom = !1, s(D));
2027
2027
  }, j = Zn(b, r + n), w = (D) => {
2028
- var F;
2028
+ var Y;
2029
2029
  if (!d)
2030
2030
  return;
2031
- const O = ((F = D == null ? void 0 : D.document) == null ? void 0 : F.documentElement) || (D == null ? void 0 : D.documentElement) || ze(D), { display: x, flexDirection: S, direction: k } = getComputedStyle(O), re = k === "rtl" ? -1 : 1, Q = O.scrollLeft;
2031
+ const O = ((Y = D == null ? void 0 : D.document) == null ? void 0 : Y.documentElement) || (D == null ? void 0 : D.documentElement) || ze(D), { display: x, flexDirection: S, direction: k } = getComputedStyle(O), re = k === "rtl" ? -1 : 1, Q = O.scrollLeft;
2032
2032
  m.left = Q < c.value, m.right = Q > c.value;
2033
2033
  const R = Math.abs(Q * re) <= (o.left || 0), P = Math.abs(Q * re) + O.clientWidth >= O.scrollWidth - (o.right || 0) - br;
2034
2034
  x === "flex" && S === "row-reverse" ? (v.left = P, v.right = R) : (v.left = R, v.right = P), c.value = Q;
2035
2035
  let V = O.scrollTop;
2036
2036
  D === d.document && !V && (V = d.document.body.scrollTop), m.top = V < f.value, m.bottom = V > f.value;
2037
- const Y = Math.abs(V) <= (o.top || 0), W = Math.abs(V) + O.clientHeight >= O.scrollHeight - (o.bottom || 0) - br;
2038
- x === "flex" && S === "column-reverse" ? (v.top = W, v.bottom = Y) : (v.top = Y, v.bottom = W), f.value = V;
2037
+ const F = Math.abs(V) <= (o.top || 0), W = Math.abs(V) + O.clientHeight >= O.scrollHeight - (o.bottom || 0) - br;
2038
+ x === "flex" && S === "column-reverse" ? (v.top = W, v.bottom = F) : (v.top = F, v.bottom = W), f.value = V;
2039
2039
  }, $ = (D) => {
2040
- var F;
2040
+ var Y;
2041
2041
  if (!d)
2042
2042
  return;
2043
- const O = (F = D.target.documentElement) != null ? F : D.target;
2043
+ const O = (Y = D.target.documentElement) != null ? Y : D.target;
2044
2044
  w(O), C.value = !0, j(D), a(D);
2045
2045
  };
2046
2046
  return me(
@@ -2431,13 +2431,13 @@ const di = (e, t) => {
2431
2431
  "spr-border-dashed": e.status === "pending",
2432
2432
  "spr-border-solid spr-border-color-danger-base": e.status === "error",
2433
2433
  "spr-border-solid": !e.status || e.status !== "pending" && e.status !== "error"
2434
- }), C = _("spr-text-color-strong spr-body-xs-regular-medium", {
2434
+ }), C = _("spr-text-color-strong spr-body-sm-regular-medium", {
2435
2435
  "spr-text-color-danger-base": e.status === "error"
2436
- }), v = _("spr-text-color-strong spr-body-xs-regular", {
2436
+ }), v = _("spr-text-color-strong spr-body-sm-regular", {
2437
2437
  "spr-text-color-danger-base": e.status === "error"
2438
- }), m = _("spr-text-color-strong spr-body-xs-regular", {
2438
+ }), m = _("spr-text-color-strong spr-body-sm-regular", {
2439
2439
  "spr-text-color-danger-base": e.status === "error",
2440
- "spr-text-color-strong spr-body-xs-regular-medium": r.includes(e.type)
2440
+ "spr-text-color-strong spr-body-sm-regular-medium": r.includes(e.type)
2441
2441
  }), b = _(h, c.value, N);
2442
2442
  return {
2443
2443
  titleClasses: C,
@@ -3306,7 +3306,7 @@ const p1 = (e) => ({
3306
3306
  }, M = Qt(s), h = Rt(M), N = await o.getDimensions(d), C = M === "y", v = C ? "top" : "left", m = C ? "bottom" : "right", b = C ? "clientHeight" : "clientWidth", j = a.reference[h] + a.reference[M] - f[M] - a.floating[h], w = f[M] - a.reference[M], $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d));
3307
3307
  let D = $ ? $[b] : 0;
3308
3308
  (!D || !await (o.isElement == null ? void 0 : o.isElement($))) && (D = i.floating[b] || a.floating[h]);
3309
- const F = j / 2 - w / 2, O = D / 2 - N[h] / 2 - 1, x = G2(c[v], O), S = G2(c[m], O), k = x, re = D - N[h] - S, Q = D / 2 - N[h] / 2 + F, R = Mt(k, Q, re), P = !u.arrow && Qe(s) != null && Q !== R && a.reference[h] / 2 - (Q < k ? x : S) - N[h] / 2 < 0, V = P ? Q < k ? Q - k : Q - re : 0;
3309
+ const Y = j / 2 - w / 2, O = D / 2 - N[h] / 2 - 1, x = G2(c[v], O), S = G2(c[m], O), k = x, re = D - N[h] - S, Q = D / 2 - N[h] / 2 + Y, R = Mt(k, Q, re), P = !u.arrow && Qe(s) != null && Q !== R && a.reference[h] / 2 - (Q < k ? x : S) - N[h] / 2 < 0, V = P ? Q < k ? Q - k : Q - re : 0;
3310
3310
  return {
3311
3311
  [M]: f[M] + V,
3312
3312
  data: {
@@ -3417,11 +3417,11 @@ const f1 = function(e) {
3417
3417
  return {};
3418
3418
  const v = Ke(s), m = N2(i), b = Ke(i) === i, j = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), w = f || (b || !N ? [A0(i)] : i1(i)), $ = h !== "none";
3419
3419
  !f && $ && w.push(...d1(i, N, h, j));
3420
- const D = [i, ...w], F = await Q0(t, C), O = [];
3420
+ const D = [i, ...w], Y = await Q0(t, C), O = [];
3421
3421
  let x = ((n = a.flip) == null ? void 0 : n.overflows) || [];
3422
- if (p && O.push(F[v]), c) {
3422
+ if (p && O.push(Y[v]), c) {
3423
3423
  const Q = qn(s, o, j);
3424
- O.push(F[Q[0]], F[Q[1]]);
3424
+ O.push(Y[Q[0]], Y[Q[1]]);
3425
3425
  }
3426
3426
  if (x = [...x, {
3427
3427
  placement: s,
@@ -3439,20 +3439,20 @@ const f1 = function(e) {
3439
3439
  placement: R
3440
3440
  }
3441
3441
  };
3442
- let P = (k = x.filter((V) => V.overflows[0] <= 0).sort((V, Y) => V.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : k.placement;
3442
+ let P = (k = x.filter((V) => V.overflows[0] <= 0).sort((V, F) => V.overflows[1] - F.overflows[1])[0]) == null ? void 0 : k.placement;
3443
3443
  if (!P)
3444
3444
  switch (M) {
3445
3445
  case "bestFit": {
3446
3446
  var re;
3447
- const V = (re = x.filter((Y) => {
3447
+ const V = (re = x.filter((F) => {
3448
3448
  if ($) {
3449
- const W = N2(Y.placement);
3449
+ const W = N2(F.placement);
3450
3450
  return W === m || // Create a bias to the `y` side axis due to horizontal
3451
3451
  // reading directions favoring greater width.
3452
3452
  W === "y";
3453
3453
  }
3454
3454
  return !0;
3455
- }).map((Y) => [Y.placement, Y.overflows.filter((W) => W > 0).reduce((W, ae) => W + ae, 0)]).sort((Y, W) => Y[1] - W[1])[0]) == null ? void 0 : re[0];
3455
+ }).map((F) => [F.placement, F.overflows.filter((W) => W > 0).reduce((W, ae) => W + ae, 0)]).sort((F, W) => F[1] - W[1])[0]) == null ? void 0 : re[0];
3456
3456
  V && (P = V);
3457
3457
  break;
3458
3458
  }
@@ -3598,14 +3598,14 @@ const M1 = function(e) {
3598
3598
  let C, v;
3599
3599
  c === "top" || c === "bottom" ? (C = c, v = f === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = c, C = f === "end" ? "top" : "bottom");
3600
3600
  const m = N - p.top - p.bottom, b = h - p.left - p.right, j = G2(N - p[C], m), w = G2(h - p[v], b), $ = !t.middlewareData.shift;
3601
- let D = j, F = w;
3602
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = b), (n = t.middlewareData.shift) != null && n.enabled.y && (D = m), $ && !f) {
3601
+ let D = j, Y = w;
3602
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (Y = b), (n = t.middlewareData.shift) != null && n.enabled.y && (D = m), $ && !f) {
3603
3603
  const x = f2(p.left, 0), S = f2(p.right, 0), k = f2(p.top, 0), re = f2(p.bottom, 0);
3604
- M ? F = h - 2 * (x !== 0 || S !== 0 ? x + S : f2(p.left, p.right)) : D = N - 2 * (k !== 0 || re !== 0 ? k + re : f2(p.top, p.bottom));
3604
+ M ? Y = h - 2 * (x !== 0 || S !== 0 ? x + S : f2(p.left, p.right)) : D = N - 2 * (k !== 0 || re !== 0 ? k + re : f2(p.top, p.bottom));
3605
3605
  }
3606
3606
  await u({
3607
3607
  ...t,
3608
- availableWidth: F,
3608
+ availableWidth: Y,
3609
3609
  availableHeight: D
3610
3610
  });
3611
3611
  const O = await o.getDimensions(i.floating);
@@ -5285,12 +5285,12 @@ function q1() {
5285
5285
  var V = String(Q);
5286
5286
  return !V || V.length >= R ? Q : "" + Array(R + 1 - V.length).join(P) + Q;
5287
5287
  }, j = { s: b, z: function(Q) {
5288
- var R = -Q.utcOffset(), P = Math.abs(R), V = Math.floor(P / 60), Y = P % 60;
5289
- return (R <= 0 ? "+" : "-") + b(V, 2, "0") + ":" + b(Y, 2, "0");
5288
+ var R = -Q.utcOffset(), P = Math.abs(R), V = Math.floor(P / 60), F = P % 60;
5289
+ return (R <= 0 ? "+" : "-") + b(V, 2, "0") + ":" + b(F, 2, "0");
5290
5290
  }, m: function Q(R, P) {
5291
5291
  if (R.date() < P.date()) return -Q(P, R);
5292
- var V = 12 * (P.year() - R.year()) + (P.month() - R.month()), Y = R.clone().add(V, c), W = P - Y < 0, ae = R.clone().add(V + (W ? -1 : 1), c);
5293
- return +(-(V + (P - Y) / (W ? Y - ae : ae - Y)) || 0);
5292
+ var V = 12 * (P.year() - R.year()) + (P.month() - R.month()), F = R.clone().add(V, c), W = P - F < 0, ae = R.clone().add(V + (W ? -1 : 1), c);
5293
+ return +(-(V + (P - F) / (W ? F - ae : ae - F)) || 0);
5294
5294
  }, a: function(Q) {
5295
5295
  return Q < 0 ? Math.ceil(Q) || 0 : Math.floor(Q);
5296
5296
  }, p: function(Q) {
@@ -5299,27 +5299,27 @@ function q1() {
5299
5299
  return Q === void 0;
5300
5300
  } }, w = "en", $ = {};
5301
5301
  $[w] = m;
5302
- var D = "$isDayjsObject", F = function(Q) {
5302
+ var D = "$isDayjsObject", Y = function(Q) {
5303
5303
  return Q instanceof k || !(!Q || !Q[D]);
5304
5304
  }, O = function Q(R, P, V) {
5305
- var Y;
5305
+ var F;
5306
5306
  if (!R) return w;
5307
5307
  if (typeof R == "string") {
5308
5308
  var W = R.toLowerCase();
5309
- $[W] && (Y = W), P && ($[W] = P, Y = W);
5309
+ $[W] && (F = W), P && ($[W] = P, F = W);
5310
5310
  var ae = R.split("-");
5311
- if (!Y && ae.length > 1) return Q(ae[0]);
5311
+ if (!F && ae.length > 1) return Q(ae[0]);
5312
5312
  } else {
5313
5313
  var ie = R.name;
5314
- $[ie] = R, Y = ie;
5314
+ $[ie] = R, F = ie;
5315
5315
  }
5316
- return !V && Y && (w = Y), Y || !V && w;
5316
+ return !V && F && (w = F), F || !V && w;
5317
5317
  }, x = function(Q, R) {
5318
- if (F(Q)) return Q.clone();
5318
+ if (Y(Q)) return Q.clone();
5319
5319
  var P = typeof R == "object" ? R : {};
5320
5320
  return P.date = Q, P.args = arguments, new k(P);
5321
5321
  }, S = j;
5322
- S.l = O, S.i = F, S.w = function(Q, R) {
5322
+ S.l = O, S.i = Y, S.w = function(Q, R) {
5323
5323
  return x(Q, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
5324
5324
  };
5325
5325
  var k = function() {
@@ -5329,18 +5329,18 @@ function q1() {
5329
5329
  var R = Q.prototype;
5330
5330
  return R.parse = function(P) {
5331
5331
  this.$d = function(V) {
5332
- var Y = V.date, W = V.utc;
5333
- if (Y === null) return /* @__PURE__ */ new Date(NaN);
5334
- if (S.u(Y)) return /* @__PURE__ */ new Date();
5335
- if (Y instanceof Date) return new Date(Y);
5336
- if (typeof Y == "string" && !/Z$/i.test(Y)) {
5337
- var ae = Y.match(C);
5332
+ var F = V.date, W = V.utc;
5333
+ if (F === null) return /* @__PURE__ */ new Date(NaN);
5334
+ if (S.u(F)) return /* @__PURE__ */ new Date();
5335
+ if (F instanceof Date) return new Date(F);
5336
+ if (typeof F == "string" && !/Z$/i.test(F)) {
5337
+ var ae = F.match(C);
5338
5338
  if (ae) {
5339
5339
  var ie = ae[2] - 1 || 0, fe = (ae[7] || "0").substring(0, 3);
5340
5340
  return W ? new Date(Date.UTC(ae[1], ie, ae[3] || 1, ae[4] || 0, ae[5] || 0, ae[6] || 0, fe)) : new Date(ae[1], ie, ae[3] || 1, ae[4] || 0, ae[5] || 0, ae[6] || 0, fe);
5341
5341
  }
5342
5342
  }
5343
- return new Date(Y);
5343
+ return new Date(F);
5344
5344
  }(P), this.init();
5345
5345
  }, R.init = function() {
5346
5346
  var P = this.$d;
@@ -5350,24 +5350,24 @@ function q1() {
5350
5350
  }, R.isValid = function() {
5351
5351
  return this.$d.toString() !== N;
5352
5352
  }, R.isSame = function(P, V) {
5353
- var Y = x(P);
5354
- return this.startOf(V) <= Y && Y <= this.endOf(V);
5353
+ var F = x(P);
5354
+ return this.startOf(V) <= F && F <= this.endOf(V);
5355
5355
  }, R.isAfter = function(P, V) {
5356
5356
  return x(P) < this.startOf(V);
5357
5357
  }, R.isBefore = function(P, V) {
5358
5358
  return this.endOf(V) < x(P);
5359
- }, R.$g = function(P, V, Y) {
5360
- return S.u(P) ? this[V] : this.set(Y, P);
5359
+ }, R.$g = function(P, V, F) {
5360
+ return S.u(P) ? this[V] : this.set(F, P);
5361
5361
  }, R.unix = function() {
5362
5362
  return Math.floor(this.valueOf() / 1e3);
5363
5363
  }, R.valueOf = function() {
5364
5364
  return this.$d.getTime();
5365
5365
  }, R.startOf = function(P, V) {
5366
- var Y = this, W = !!S.u(V) || V, ae = S.p(P), ie = function(ve, se) {
5367
- var E = S.w(Y.$u ? Date.UTC(Y.$y, se, ve) : new Date(Y.$y, se, ve), Y);
5366
+ var F = this, W = !!S.u(V) || V, ae = S.p(P), ie = function(ve, se) {
5367
+ var E = S.w(F.$u ? Date.UTC(F.$y, se, ve) : new Date(F.$y, se, ve), F);
5368
5368
  return W ? E : E.endOf(d);
5369
5369
  }, fe = function(ve, se) {
5370
- return S.w(Y.toDate()[ve].apply(Y.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), Y);
5370
+ return S.w(F.toDate()[ve].apply(F.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), F);
5371
5371
  }, q = this.$W, ne = this.$M, de = this.$D, Me = "set" + (this.$u ? "UTC" : "");
5372
5372
  switch (ae) {
5373
5373
  case M:
@@ -5392,7 +5392,7 @@ function q1() {
5392
5392
  }, R.endOf = function(P) {
5393
5393
  return this.startOf(P, !1);
5394
5394
  }, R.$set = function(P, V) {
5395
- var Y, W = S.p(P), ae = "set" + (this.$u ? "UTC" : ""), ie = (Y = {}, Y[d] = ae + "Date", Y[h] = ae + "Date", Y[c] = ae + "Month", Y[M] = ae + "FullYear", Y[u] = ae + "Hours", Y[i] = ae + "Minutes", Y[o] = ae + "Seconds", Y[a] = ae + "Milliseconds", Y)[W], fe = W === d ? this.$D + (V - this.$W) : V;
5395
+ var F, W = S.p(P), ae = "set" + (this.$u ? "UTC" : ""), ie = (F = {}, F[d] = ae + "Date", F[h] = ae + "Date", F[c] = ae + "Month", F[M] = ae + "FullYear", F[u] = ae + "Hours", F[i] = ae + "Minutes", F[o] = ae + "Seconds", F[a] = ae + "Milliseconds", F)[W], fe = W === d ? this.$D + (V - this.$W) : V;
5396
5396
  if (W === c || W === M) {
5397
5397
  var q = this.clone().set(h, 1);
5398
5398
  q.$d[ie](fe), q.init(), this.$d = q.set(h, Math.min(this.$D, q.daysInMonth())).$d;
@@ -5403,7 +5403,7 @@ function q1() {
5403
5403
  }, R.get = function(P) {
5404
5404
  return this[S.p(P)]();
5405
5405
  }, R.add = function(P, V) {
5406
- var Y, W = this;
5406
+ var F, W = this;
5407
5407
  P = Number(P);
5408
5408
  var ae = S.p(V), ie = function(ne) {
5409
5409
  var de = x(W);
@@ -5413,14 +5413,14 @@ function q1() {
5413
5413
  if (ae === M) return this.set(M, this.$y + P);
5414
5414
  if (ae === d) return ie(1);
5415
5415
  if (ae === p) return ie(7);
5416
- var fe = (Y = {}, Y[i] = n, Y[u] = s, Y[o] = r, Y)[ae] || 1, q = this.$d.getTime() + P * fe;
5416
+ var fe = (F = {}, F[i] = n, F[u] = s, F[o] = r, F)[ae] || 1, q = this.$d.getTime() + P * fe;
5417
5417
  return S.w(q, this);
5418
5418
  }, R.subtract = function(P, V) {
5419
5419
  return this.add(-1 * P, V);
5420
5420
  }, R.format = function(P) {
5421
- var V = this, Y = this.$locale();
5422
- if (!this.isValid()) return Y.invalidDate || N;
5423
- var W = P || "YYYY-MM-DDTHH:mm:ssZ", ae = S.z(this), ie = this.$H, fe = this.$m, q = this.$M, ne = Y.weekdays, de = Y.months, Me = Y.meridiem, ge = function(se, E, Oe, Je) {
5421
+ var V = this, F = this.$locale();
5422
+ if (!this.isValid()) return F.invalidDate || N;
5423
+ var W = P || "YYYY-MM-DDTHH:mm:ssZ", ae = S.z(this), ie = this.$H, fe = this.$m, q = this.$M, ne = F.weekdays, de = F.months, Me = F.meridiem, ge = function(se, E, Oe, Je) {
5424
5424
  return se && (se[E] || se(V, W)) || Oe[E].slice(0, Je);
5425
5425
  }, Ae = function(se) {
5426
5426
  return S.s(ie % 12 || 12, se, "0");
@@ -5440,7 +5440,7 @@ function q1() {
5440
5440
  case "MM":
5441
5441
  return S.s(q + 1, 2, "0");
5442
5442
  case "MMM":
5443
- return ge(Y.monthsShort, q, de, 3);
5443
+ return ge(F.monthsShort, q, de, 3);
5444
5444
  case "MMMM":
5445
5445
  return ge(de, q);
5446
5446
  case "D":
@@ -5450,9 +5450,9 @@ function q1() {
5450
5450
  case "d":
5451
5451
  return String(V.$W);
5452
5452
  case "dd":
5453
- return ge(Y.weekdaysMin, V.$W, ne, 2);
5453
+ return ge(F.weekdaysMin, V.$W, ne, 2);
5454
5454
  case "ddd":
5455
- return ge(Y.weekdaysShort, V.$W, ne, 3);
5455
+ return ge(F.weekdaysShort, V.$W, ne, 3);
5456
5456
  case "dddd":
5457
5457
  return ne[V.$W];
5458
5458
  case "H":
@@ -5485,7 +5485,7 @@ function q1() {
5485
5485
  });
5486
5486
  }, R.utcOffset = function() {
5487
5487
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5488
- }, R.diff = function(P, V, Y) {
5488
+ }, R.diff = function(P, V, F) {
5489
5489
  var W, ae = this, ie = S.p(V), fe = x(P), q = (fe.utcOffset() - this.utcOffset()) * n, ne = this - fe, de = function() {
5490
5490
  return S.m(ae, fe);
5491
5491
  };
@@ -5517,15 +5517,15 @@ function q1() {
5517
5517
  default:
5518
5518
  W = ne;
5519
5519
  }
5520
- return Y ? W : S.a(W);
5520
+ return F ? W : S.a(W);
5521
5521
  }, R.daysInMonth = function() {
5522
5522
  return this.endOf(c).$D;
5523
5523
  }, R.$locale = function() {
5524
5524
  return $[this.$L];
5525
5525
  }, R.locale = function(P, V) {
5526
5526
  if (!P) return this.$L;
5527
- var Y = this.clone(), W = O(P, V, !0);
5528
- return W && (Y.$L = W), Y;
5527
+ var F = this.clone(), W = O(P, V, !0);
5528
+ return W && (F.$L = W), F;
5529
5529
  }, R.clone = function() {
5530
5530
  return S.w(this.$d, this);
5531
5531
  }, R.toDate = function() {
@@ -5544,7 +5544,7 @@ function q1() {
5544
5544
  };
5545
5545
  }), x.extend = function(Q, R) {
5546
5546
  return Q.$i || (Q(R, k, x), Q.$i = !0), x;
5547
- }, x.locale = O, x.isDayjs = F, x.unix = function(Q) {
5547
+ }, x.locale = O, x.isDayjs = Y, x.unix = function(Q) {
5548
5548
  return x(1e3 * Q);
5549
5549
  }, x.en = $[w], x.Ls = $, x.p = {}, x;
5550
5550
  });
@@ -5656,7 +5656,7 @@ const dl = (e, t) => {
5656
5656
  fullText: le().month(H).format("MMMM"),
5657
5657
  monthValue: H
5658
5658
  }))
5659
- ), w = Z(""), $ = Z(""), D = Z(""), F = Z([]), O = Z({
5659
+ ), w = Z(""), $ = Z(""), D = Z(""), Y = Z([]), O = Z({
5660
5660
  selectedMonth: le().month(),
5661
5661
  selectedYear: Number(o.value),
5662
5662
  calendarDays: []
@@ -5693,7 +5693,7 @@ const dl = (e, t) => {
5693
5693
  return (ce = b.value.find((Ne) => Ne.text.toLowerCase() === K.toLowerCase())) == null ? void 0 : ce.dayValue;
5694
5694
  });
5695
5695
  return W(L) ? !1 : !!H.includes(L.date.getDay());
5696
- }, P = (L) => L.date.toDateString() === m.value.format("ddd MMM DD YYYY"), V = (L) => !L.inactive && !ie(L), Y = (L) => !!(L.inactive && !ie(L)), W = (L) => {
5696
+ }, P = (L) => L.date.toDateString() === m.value.format("ddd MMM DD YYYY"), V = (L) => !L.inactive && !ie(L), F = (L) => !!(L.inactive && !ie(L)), W = (L) => {
5697
5697
  var K;
5698
5698
  const H = (K = n0("text", w.value)) == null ? void 0 : K.monthValue;
5699
5699
  return $.value && !w.value && !D.value && !ie(L) ? L.date.getDate() === Number($.value) && !L.inactive : $.value && w && !D.value && !ie(L) ? L.date.getDate() === Number($.value) && L.date.getMonth() === H && !L.inactive : $.value && w.value && D.value && !ie(L) ? L.date.getDate() === Number($.value) && L.date.getMonth() === H && L.date.getFullYear().toString() === D.value && !L.inactive : !1;
@@ -5760,13 +5760,13 @@ const dl = (e, t) => {
5760
5760
  return !1;
5761
5761
  }, ve = (L) => {
5762
5762
  const H = le(L.date, "MM-DD-YYYY"), K = H.format("MM"), ce = H.format("DD"), Ne = H.format("YYYY");
5763
- w.value = K, $.value = ce, D.value = Ne, O.value.selectedMonth = L.date.getMonth(), O.value.selectedYear = L.date.getFullYear(), L2(), k(), z2(), a0(), F.value = [], t("getDateErrors", F.value), setTimeout(() => {
5763
+ w.value = K, $.value = ce, D.value = Ne, O.value.selectedMonth = L.date.getMonth(), O.value.selectedYear = L.date.getFullYear(), L2(), k(), z2(), a0(), Y.value = [], t("getDateErrors", Y.value), setTimeout(() => {
5764
5764
  C.value = !1;
5765
5765
  }, 100);
5766
5766
  }, se = (L) => {
5767
5767
  v.value = "tab-calendar";
5768
5768
  const H = L.monthValue + 1, K = H < 10 ? `0${H}` : `${H}`;
5769
- w.value = K, O.value.selectedMonth = L.monthValue, L2(), k(), z2(), F.value = [], t("getDateErrors", F.value);
5769
+ w.value = K, O.value.selectedMonth = L.monthValue, L2(), k(), z2(), Y.value = [], t("getDateErrors", Y.value);
5770
5770
  }, E = Z({
5771
5771
  currentPage: 0,
5772
5772
  itemsPerPage: 12,
@@ -5785,7 +5785,7 @@ const dl = (e, t) => {
5785
5785
  }, Hs = () => {
5786
5786
  (E.value.currentPage + 1) * E.value.itemsPerPage < E.value.yearsArray.length && E.value.currentPage++;
5787
5787
  }, Zs = z(() => E.value.currentPage === 0), Gs = z(() => (E.value.currentPage + 1) * E.value.itemsPerPage >= E.value.yearsArray.length), Ws = (L) => {
5788
- v.value = "tab-calendar", D.value = L, O.value.selectedYear = Number(L), L2(), k(), z2(), F.value = [], t("getDateErrors", F.value);
5788
+ v.value = "tab-calendar", D.value = L, O.value.selectedYear = Number(L), L2(), k(), z2(), Y.value = [], t("getDateErrors", Y.value);
5789
5789
  }, Ks = z(() => n.value || s.value), or = (L) => {
5790
5790
  var H, K;
5791
5791
  switch (L) {
@@ -5814,11 +5814,11 @@ const dl = (e, t) => {
5814
5814
  ), Js = (L) => _(c.value.datePickerInputClasses, `spr-w-[${L}] spr-min-w-[${L}]`), Xs = (L) => _("spr-cursor-pointer", {
5815
5815
  "spr-background-color-pressed !spr-shadow-button": v.value === L
5816
5816
  }), qs = () => {
5817
- w.value = w.value.replace(/[^A-Za-z0-9\s]/g, "").toLocaleUpperCase(), F.value = [], t("getDateErrors", F.value), L2(), s0(), a0();
5817
+ w.value = w.value.replace(/[^A-Za-z0-9\s]/g, "").toLocaleUpperCase(), Y.value = [], t("getDateErrors", Y.value), L2(), s0(), a0();
5818
5818
  }, ea = () => {
5819
- $.value = $.value.replace(/[^0-9]/g, ""), F.value = [], t("getDateErrors", F.value), s0(), a0();
5819
+ $.value = $.value.replace(/[^0-9]/g, ""), Y.value = [], t("getDateErrors", Y.value), s0(), a0();
5820
5820
  }, ta = () => {
5821
- D.value = D.value.replace(/[^0-9]/g, ""), F.value = [], t("getDateErrors", F.value), s0(), a0();
5821
+ D.value = D.value.replace(/[^0-9]/g, ""), Y.value = [], t("getDateErrors", Y.value), s0(), a0();
5822
5822
  }, L2 = () => {
5823
5823
  if (w.value.length >= 2)
5824
5824
  if (!isNaN(Number(w.value)) && !isNaN(parseFloat(w.value))) {
@@ -5835,15 +5835,15 @@ const dl = (e, t) => {
5835
5835
  if (w.value && $.value && D.value) {
5836
5836
  const H = `${w.value}-${$.value}-${D.value}`, K = le(H, "MM-DD-YYYY").isValid(), ce = Number(D.value) >= i.value.min && Number(D.value) <= i.value.max;
5837
5837
  if (K && ce) {
5838
- F.value = F.value.filter((De) => De.title !== "Invalid Date");
5838
+ Y.value = Y.value.filter((De) => De.title !== "Invalid Date");
5839
5839
  const Ne = (L = n0("text", w.value)) == null ? void 0 : L.monthValue;
5840
5840
  O.value.selectedMonth = Number(Ne), O.value.selectedYear = Number(D.value), k(), z2();
5841
- } else if (!F.value.some((De) => De.title === "Invalid Date")) {
5841
+ } else if (!Y.value.some((De) => De.title === "Invalid Date")) {
5842
5842
  let De;
5843
- ce ? De = "Invalid Date Format. Please use MM/DD/YYYY" : De = `Year must be between ${i.value.min} and ${i.value.max}.`, F.value.push({
5843
+ ce ? De = "Invalid Date Format. Please use MM/DD/YYYY" : De = `Year must be between ${i.value.min} and ${i.value.max}.`, Y.value.push({
5844
5844
  title: "Invalid Date",
5845
5845
  message: De
5846
- }), C.value = !1, t("getDateErrors", F.value), console.error(`Invalid Date: "${H}". ${De}`);
5846
+ }), C.value = !1, t("getDateErrors", Y.value), console.error(`Invalid Date: "${H}". ${De}`);
5847
5847
  }
5848
5848
  }
5849
5849
  }, 500), ra = (L) => {
@@ -5943,7 +5943,7 @@ const dl = (e, t) => {
5943
5943
  dateInput: $,
5944
5944
  monthInput: w,
5945
5945
  yearInput: D,
5946
- datePickerErrors: F,
5946
+ datePickerErrors: Y,
5947
5947
  calendarTabPageData: O,
5948
5948
  calendarTabIsMinMonth: x,
5949
5949
  calendarTabIsMaxMonth: S,
@@ -5952,7 +5952,7 @@ const dl = (e, t) => {
5952
5952
  calendarTabIsRestDay: R,
5953
5953
  calendarTabIsTodayIndicator: P,
5954
5954
  calendarTabIsActiveMonthDates: V,
5955
- calendarTabIsInactiveMonthDates: Y,
5955
+ calendarTabIsInactiveMonthDates: F,
5956
5956
  calendarTabIsSelectedDate: W,
5957
5957
  calendarTabIsUnSelectedDate: ae,
5958
5958
  calendarTabIsDateIsDisabled: ie,
@@ -6029,7 +6029,7 @@ const dl = (e, t) => {
6029
6029
  calendarTabIsTodayIndicator: w,
6030
6030
  calendarTabIsActiveMonthDates: $,
6031
6031
  calendarTabIsInactiveMonthDates: D,
6032
- calendarTabIsSelectedDate: F,
6032
+ calendarTabIsSelectedDate: Y,
6033
6033
  calendarTabIsUnSelectedDate: O,
6034
6034
  calendarTabIsDateIsDisabled: x,
6035
6035
  calendarTabHandleDateInput: S,
@@ -6039,7 +6039,7 @@ const dl = (e, t) => {
6039
6039
  calendarTabPrevMonth: R,
6040
6040
  calendarTabNextMonth: P,
6041
6041
  monthTabHandleSelectedMonth: V,
6042
- yearTabCurrentYearPage: Y,
6042
+ yearTabCurrentYearPage: F,
6043
6043
  yearTabGoToPreviousPage: W,
6044
6044
  yearTabGoToNextPage: ae,
6045
6045
  yearTabIsPreviousButtonDisabled: ie,
@@ -6178,7 +6178,7 @@ const dl = (e, t) => {
6178
6178
  // Inactive Month Dates (Past/Future)
6179
6179
  "spr-text-color-disabled": l(D)(E),
6180
6180
  // Selected Date
6181
- "spr-background-color-brand-base active:spr-background-color-brand-pressed spr-text-color-inverted-strong spr-cursor-pointer spr-text-white-50 active:spr-scale-95": l(F)(E),
6181
+ "spr-background-color-brand-base active:spr-background-color-brand-pressed spr-text-color-inverted-strong spr-cursor-pointer spr-text-white-50 active:spr-scale-95": l(Y)(E),
6182
6182
  // Unselected Date
6183
6183
  "hover:spr-background-color-hover spr-border-color-weak active:spr-background-color-pressed spr-cursor-pointer spr-border spr-border-solid active:spr-scale-95": l(O)(E),
6184
6184
  // Disabled Dates
@@ -6210,7 +6210,7 @@ const dl = (e, t) => {
6210
6210
  ], 10, xl))), 128))
6211
6211
  ])) : T("", !0),
6212
6212
  l(p) === "tab-years" ? (g(), y("div", jl, [
6213
- (g(!0), y(te, null, ue(l(Y), (E, Oe) => (g(), y("div", {
6213
+ (g(!0), y(te, null, ue(l(F), (E, Oe) => (g(), y("div", {
6214
6214
  key: Oe,
6215
6215
  class: A([
6216
6216
  l(s).yearsTabItemsBaseClasses,
@@ -6465,8 +6465,8 @@ const dl = (e, t) => {
6465
6465
  f.value = !1;
6466
6466
  }, 10));
6467
6467
  }, D = (O) => {
6468
- F(O) && (f.value = !1);
6469
- }, F = (O) => {
6468
+ Y(O) && (f.value = !1);
6469
+ }, Y = (O) => {
6470
6470
  let x = c.value;
6471
6471
  return O.forEach((S) => {
6472
6472
  var k;
@@ -7529,7 +7529,7 @@ const dl = (e, t) => {
7529
7529
  }, Symbol.toStringTag, { value: "Module" })), o4 = (e, t) => {
7530
7530
  const { options: r, filterMenu: n, filterData: s, loading: a, filterable: o, filling: i, deselected: u, hasSearchApi: d } = ye(e), p = Ee(e, "modelValue", t), c = Z(!1), f = Ee(e, "search", t), M = Ee(e, "searchFilter", t), h = Z(""), N = Z(""), C = Z(!1), v = Z(!1), m = Z({}), b = Z({}), j = Z(`filter-${le().valueOf()}-${Math.floor(Math.random() * 1e3)}`), w = Z(
7531
7531
  n.value
7532
- ), $ = Z([]), D = Z(null), F = Z([]), O = Z(""), x = z(() => {
7532
+ ), $ = Z([]), D = Z(null), Y = Z([]), O = Z(""), x = z(() => {
7533
7533
  var de;
7534
7534
  if (i.value) return r.value;
7535
7535
  const q = d.value ? "" : h.value.toLowerCase();
@@ -7552,7 +7552,7 @@ const dl = (e, t) => {
7552
7552
  Yt(D, () => {
7553
7553
  c.value = !1;
7554
7554
  });
7555
- const Y = () => {
7555
+ const F = () => {
7556
7556
  var q;
7557
7557
  (q = r.value) != null && q.length && x.value.forEach((ne, de) => {
7558
7558
  x.value[de].isSelected = !0;
@@ -7602,7 +7602,7 @@ const dl = (e, t) => {
7602
7602
  q !== ne && (f.value = q);
7603
7603
  }), he(N, (q, ne) => {
7604
7604
  q !== ne && (M.value = q);
7605
- }), Ct(() => F.value[0], ie, { distance: 10 }), Ct(D, ie, { distance: 10 });
7605
+ }), Ct(() => Y.value[0], ie, { distance: 10 }), Ct(D, ie, { distance: 10 });
7606
7606
  const fe = z(() => {
7607
7607
  const q = _("spr-relative spr-inline-block spr-w-full"), ne = _(
7608
7608
  "spr-border-color-weak spr-border spr-border-x-0 spr-border-t-0 spr-border-solid spr-p-size-spacing-2xs",
@@ -7643,8 +7643,8 @@ const dl = (e, t) => {
7643
7643
  filterClass: fe,
7644
7644
  uniqueId: j,
7645
7645
  filterOptionRef: D,
7646
- filterMenuOptionList: F,
7647
- selectAllOptions: Y,
7646
+ filterMenuOptionList: Y,
7647
+ selectAllOptions: F,
7648
7648
  getMappedFilterData: Q,
7649
7649
  saveSelectedFilter: W,
7650
7650
  getSelectedItemPerFilterMenu: V,
@@ -7734,7 +7734,7 @@ const dl = (e, t) => {
7734
7734
  }, c4 = { class: "spr-space-x-size-spacing-3xs spr-space-y-size-spacing-3xs" }, p4 = ["onClick"], g4 = { class: "spr-p-size-spacing-2xs" }, f4 = {
7735
7735
  key: 0,
7736
7736
  class: "spr-space-x-2 spr-space-y-2 spr-p-size-spacing-2xs"
7737
- }, h4 = ["id"], C4 = { class: "spr-flex spr-w-full spr-flex-row spr-items-center spr-justify-items-start spr-gap-size-spacing-3xs" }, M4 = { class: "spr-body-sm-regular" }, y4 = { class: "spr-body-xs-regular spr-text-color-supporting" }, m4 = { key: 1 }, v4 = /* @__PURE__ */ oe({
7737
+ }, h4 = ["id"], C4 = ["onClick"], M4 = { class: "spr-body-sm-regular" }, y4 = { class: "spr-body-xs-regular spr-text-color-supporting" }, m4 = { key: 1 }, v4 = /* @__PURE__ */ oe({
7738
7738
  __name: "filter",
7739
7739
  props: i4,
7740
7740
  emits: l4,
@@ -7760,17 +7760,18 @@ const dl = (e, t) => {
7760
7760
  } = o4(r, n);
7761
7761
  return (w, $) => (g(), G(l(Le), {
7762
7762
  shown: l(s),
7763
- "onUpdate:shown": $[4] || ($[4] = (D) => Ce(s) ? s.value = D : null),
7763
+ "onUpdate:shown": $[5] || ($[5] = (D) => Ce(s) ? s.value = D : null),
7764
7764
  "aria-id": "filter-option-wrapper",
7765
7765
  distance: "4",
7766
7766
  placement: "bottom",
7767
- triggers: ["click"],
7767
+ triggers: [],
7768
+ "popper-hide-triggers": [],
7768
7769
  container: `#${l(M)}`,
7770
+ "auto-hide": !1,
7769
7771
  style: _e({
7770
7772
  width: r.width,
7771
7773
  position: "relative"
7772
- }),
7773
- "auto-hide": !1
7774
+ })
7774
7775
  }, {
7775
7776
  popper: B(() => [
7776
7777
  I("div", {
@@ -7790,7 +7791,7 @@ const dl = (e, t) => {
7790
7791
  ]),
7791
7792
  U(l(Le), {
7792
7793
  shown: l(o),
7793
- "onUpdate:shown": $[3] || ($[3] = (D) => Ce(o) ? o.value = D : null),
7794
+ "onUpdate:shown": $[4] || ($[4] = (D) => Ce(o) ? o.value = D : null),
7794
7795
  "aria-id": "filter-menu-wrapper",
7795
7796
  distance: "4",
7796
7797
  placement: "right-start",
@@ -7804,10 +7805,10 @@ const dl = (e, t) => {
7804
7805
  I("div", {
7805
7806
  class: A(l(f).PopperHeaderClasses)
7806
7807
  }, [
7807
- $[5] || ($[5] = Se(" Add Filter ")),
7808
+ $[6] || ($[6] = Se(" Add Filter ")),
7808
7809
  I("span", {
7809
7810
  class: "spr-cursor-pointer",
7810
- onClick: $[1] || ($[1] = (D) => o.value = !1)
7811
+ onClick: $[2] || ($[2] = (D) => o.value = !1)
7811
7812
  }, [
7812
7813
  U(l(X), { icon: "ph:x" })
7813
7814
  ])
@@ -7818,7 +7819,7 @@ const dl = (e, t) => {
7818
7819
  (g(!0), y(te, null, ue(w.filterMenu, (D) => (g(), G(l(Le), {
7819
7820
  key: D.field,
7820
7821
  shown: l(c)[D.field].isFilterVisible,
7821
- "onUpdate:shown": (F) => l(c)[D.field].isFilterVisible = F,
7822
+ "onUpdate:shown": (Y) => l(c)[D.field].isFilterVisible = Y,
7822
7823
  "aria-id": "filter-menu-wrapper",
7823
7824
  placement: "right-start",
7824
7825
  triggers: ["click"],
@@ -7831,10 +7832,10 @@ const dl = (e, t) => {
7831
7832
  I("div", {
7832
7833
  class: A(l(f).PopperHeaderClasses)
7833
7834
  }, [
7834
- $[6] || ($[6] = Se(" Add Filter ")),
7835
+ $[7] || ($[7] = Se(" Add Filter ")),
7835
7836
  I("span", {
7836
7837
  class: "spr-cursor-pointer",
7837
- onClick: (F) => l(c)[D.field].isFilterVisible = !1
7838
+ onClick: (Y) => l(c)[D.field].isFilterVisible = !1
7838
7839
  }, [
7839
7840
  U(l(X), { icon: "ph:x" })
7840
7841
  ], 8, p4)
@@ -7842,7 +7843,7 @@ const dl = (e, t) => {
7842
7843
  I("div", g4, [
7843
7844
  U(Ye, {
7844
7845
  modelValue: l(p),
7845
- "onUpdate:modelValue": $[2] || ($[2] = (F) => Ce(p) ? p.value = F : null),
7846
+ "onUpdate:modelValue": $[3] || ($[3] = (Y) => Ce(p) ? p.value = Y : null),
7846
7847
  type: "text",
7847
7848
  placeholder: "Select Employees"
7848
7849
  }, {
@@ -7853,12 +7854,12 @@ const dl = (e, t) => {
7853
7854
  }, 8, ["modelValue"])
7854
7855
  ]),
7855
7856
  l(u).length > 0 ? (g(), y("div", f4, [
7856
- (g(!0), y(te, null, ue(l(u), (F, O) => (g(), G(F2, {
7857
+ (g(!0), y(te, null, ue(l(u), (Y, O) => (g(), G(F2, {
7857
7858
  key: O,
7858
- label: F.text,
7859
+ label: Y.text,
7859
7860
  active: !0,
7860
7861
  closable: "",
7861
- onClose: (x) => l(j)(F.value)
7862
+ onClose: (x) => l(j)(Y.value)
7862
7863
  }, null, 8, ["label", "onClose"]))), 128))
7863
7864
  ])) : T("", !0),
7864
7865
  l(d).length > 0 ? (g(), y("div", {
@@ -7869,8 +7870,8 @@ const dl = (e, t) => {
7869
7870
  ref: N,
7870
7871
  class: "spr-max-h-[264px] spr-space-y-size-spacing-6xs spr-overflow-auto spr-p-size-spacing-2xs"
7871
7872
  }, [
7872
- (g(!0), y(te, null, ue(l(d), (F, O) => (g(), y("div", {
7873
- key: F.value,
7873
+ (g(!0), y(te, null, ue(l(d), (Y, O) => (g(), y("div", {
7874
+ key: Y.value,
7874
7875
  class: A([
7875
7876
  l(f).filterListClasses,
7876
7877
  { "spr-background-color-multiple-active": l(d)[O].isSelected }
@@ -7890,9 +7891,9 @@ const dl = (e, t) => {
7890
7891
  class: A(l(f).LoadingStateClasses)
7891
7892
  }, [
7892
7893
  r.loading ? ee(w.$slots, "loading", { key: 0 }, () => [
7893
- $[7] || ($[7] = Se(" loading... "))
7894
+ $[8] || ($[8] = Se(" loading... "))
7894
7895
  ]) : ee(w.$slots, "empty", { key: 1 }, () => [
7895
- $[8] || ($[8] = Se(" No Result Found! "))
7896
+ $[9] || ($[9] = Se(" No Result Found! "))
7896
7897
  ])
7897
7898
  ], 2)),
7898
7899
  I("div", {
@@ -7901,9 +7902,9 @@ const dl = (e, t) => {
7901
7902
  U(be, {
7902
7903
  variant: "secondary",
7903
7904
  size: "small",
7904
- onClick: (F) => l(c)[D.field].isFilterVisible = !1
7905
+ onClick: (Y) => l(c)[D.field].isFilterVisible = !1
7905
7906
  }, {
7906
- default: B(() => $[9] || ($[9] = [
7907
+ default: B(() => $[10] || ($[10] = [
7907
7908
  Se(" Cancel ")
7908
7909
  ])),
7909
7910
  _: 2
@@ -7911,9 +7912,9 @@ const dl = (e, t) => {
7911
7912
  U(be, {
7912
7913
  size: "small",
7913
7914
  tone: "success",
7914
- onClick: (F) => l(m)(D.field)
7915
+ onClick: (Y) => l(m)(D.field)
7915
7916
  }, {
7916
- default: B(() => $[10] || ($[10] = [
7917
+ default: B(() => $[11] || ($[11] = [
7917
7918
  Se(" Save ")
7918
7919
  ])),
7919
7920
  _: 2
@@ -7929,7 +7930,7 @@ const dl = (e, t) => {
7929
7930
  "badge-text": l(b)(D.field).toString(),
7930
7931
  "badge-variant": "danger",
7931
7932
  icon: "ph:funnel-simple",
7932
- onClick: (F) => l(v)(D.field)
7933
+ onClick: (Y) => l(v)(D.field)
7933
7934
  }, null, 8, ["active", "label", "badge", "badge-text", "onClick"])
7934
7935
  ]),
7935
7936
  _: 2
@@ -7957,7 +7958,7 @@ const dl = (e, t) => {
7957
7958
  size: "small",
7958
7959
  onClick: l(C)
7959
7960
  }, {
7960
- default: B(() => $[11] || ($[11] = [
7961
+ default: B(() => $[12] || ($[12] = [
7961
7962
  Se("Select All")
7962
7963
  ])),
7963
7964
  _: 1
@@ -7969,34 +7970,37 @@ const dl = (e, t) => {
7969
7970
  ref: h,
7970
7971
  class: "spr-max-h-[264px] spr-space-y-size-spacing-6xs spr-overflow-auto spr-p-size-spacing-3xs"
7971
7972
  }, [
7972
- (g(!0), y(te, null, ue(l(i), (D, F) => (g(), y("div", {
7973
+ (g(!0), y(te, null, ue(l(i), (D, Y) => (g(), y("div", {
7973
7974
  key: D.value,
7974
7975
  class: A([
7975
7976
  l(f).filterListClasses,
7976
7977
  {
7977
- "spr-background-color-multiple-active": l(i)[F].isSelected
7978
+ "spr-background-color-multiple-active": l(i)[Y].isSelected
7978
7979
  }
7979
7980
  ])
7980
7981
  }, [
7981
- I("div", C4, [
7982
+ I("div", {
7983
+ class: "spr-flex spr-w-full spr-flex-row spr-items-center spr-justify-items-start spr-gap-size-spacing-3xs",
7984
+ onClick: (O) => l(i)[Y].isSelected = !l(i)[Y].isSelected
7985
+ }, [
7982
7986
  U(v2, {
7983
- modelValue: l(i)[F].isSelected,
7984
- "onUpdate:modelValue": (O) => l(i)[F].isSelected = O,
7985
- checked: l(i)[F].isSelected
7987
+ modelValue: l(i)[Y].isSelected,
7988
+ "onUpdate:modelValue": (O) => l(i)[Y].isSelected = O,
7989
+ checked: l(i)[Y].isSelected
7986
7990
  }, null, 8, ["modelValue", "onUpdate:modelValue", "checked"]),
7987
7991
  r.hasAvatar ? (g(), G(F0, {
7988
7992
  key: 0,
7989
7993
  size: "md",
7990
7994
  alt: "User Avatar",
7991
- src: l(i)[F].avatar,
7992
- variant: l(i)[F].avatar ? "image" : "initial",
7993
- initial: l(i)[F].text
7995
+ src: l(i)[Y].avatar,
7996
+ variant: l(i)[Y].avatar ? "image" : "initial",
7997
+ initial: l(i)[Y].text
7994
7998
  }, null, 8, ["src", "variant", "initial"])) : T("", !0),
7995
7999
  I("div", null, [
7996
- I("div", M4, J(l(i)[F].text), 1),
7997
- I("div", y4, J(l(i)[F].subtext), 1)
8000
+ I("div", M4, J(l(i)[Y].text), 1),
8001
+ I("div", y4, J(l(i)[Y].subtext), 1)
7998
8002
  ])
7999
- ])
8003
+ ], 8, C4)
8000
8004
  ], 2))), 128))
8001
8005
  ], 512)) : (g(), y("div", m4, [
8002
8006
  w.filling ? ee(w.$slots, "loading-state", { key: 0 }, () => [
@@ -8016,7 +8020,8 @@ const dl = (e, t) => {
8016
8020
  style: _e({
8017
8021
  width: r.width,
8018
8022
  position: "relative"
8019
- })
8023
+ }),
8024
+ onClick: $[1] || ($[1] = (D) => s.value = !0)
8020
8025
  }, [
8021
8026
  ee(w.$slots, "default", {}, () => [
8022
8027
  U(Ye, {
@@ -12022,7 +12027,7 @@ const Wc = ["white", "dark", "gray", "green"], Kc = [
12022
12027
  "hover:spr-background-color-hover": r.activeNav.submenu !== $.title,
12023
12028
  "active:spr-background-color-pressed": !0
12024
12029
  }),
12025
- onClick: (F) => l(u)(
12030
+ onClick: (Y) => l(u)(
12026
12031
  $,
12027
12032
  h.title,
12028
12033
  m.title,
@@ -12202,7 +12207,7 @@ const Wc = ["white", "dark", "gray", "green"], Kc = [
12202
12207
  "hover:spr-background-color-hover": r.activeNav.submenu !== $.title,
12203
12208
  "active:spr-background-color-pressed": !0
12204
12209
  }),
12205
- onClick: (F) => l(u)(
12210
+ onClick: (Y) => l(u)(
12206
12211
  $,
12207
12212
  h.title,
12208
12213
  m.title,
@@ -13750,13 +13755,13 @@ function Ot(e, t, r = {}, n, s, a) {
13750
13755
  after: P,
13751
13756
  onError: V
13752
13757
  });
13753
- let Y;
13758
+ let F;
13754
13759
  try {
13755
- Y = x.apply(this && this.$id === e ? this : D, re);
13760
+ F = x.apply(this && this.$id === e ? this : D, re);
13756
13761
  } catch (W) {
13757
13762
  throw x2(R, W), W;
13758
13763
  }
13759
- return Y instanceof Promise ? Y.then((W) => (x2(Q, W), W)).catch((W) => (x2(R, W), Promise.reject(W))) : (x2(Q, Y), Y);
13764
+ return F instanceof Promise ? F.then((W) => (x2(Q, W), W)).catch((W) => (x2(R, W), Promise.reject(W))) : (x2(Q, F), F);
13760
13765
  };
13761
13766
  return k[An] = !0, k[it] = S, k;
13762
13767
  }, w = /* @__PURE__ */ C2({
@@ -14373,13 +14378,10 @@ const L5 = (e) => ({
14373
14378
  next: () => !0
14374
14379
  }, i8 = (e, t) => {
14375
14380
  const { selectedRowCount: r, currentPage: n, totalItems: s, bordered: a } = ye(e), o = z(() => {
14376
- const v = _(
14377
- "spr-p-size-spacing-xs spr-flex spr-justify-between spr-bg-white-50 spr-h-max",
14378
- {
14379
- "spr-border spr-border-solid spr-border-color-weak": a.value,
14380
- "spr-border-x-0 spr-border-t spr-border-b-0 spr-border-solid spr-border-color-weak": !a.value
14381
- }
14382
- ), m = _("spr-w-[120px] spr-font-bold spr-h-full spr-space-x-2"), b = _("spr-mt-0.5 spr-pl-1 spr-text-mushroom-950"), j = _("spr-flex spr-justify-between spr-items-center spr-space-x-4"), w = _("spr-font-main spr-text-color-base"), $ = _("spr-flex spr-space-x-2"), D = _("spr-rounded-border-radius-md"), F = _("!spr-w-max");
14381
+ const v = _("spr-p-size-spacing-xs spr-flex spr-justify-between spr-bg-white-50 spr-h-max", {
14382
+ "spr-border spr-border-solid spr-border-color-weak": a.value,
14383
+ "spr-border-x-0 spr-border-t spr-border-b-0 spr-border-solid spr-border-color-weak": !a.value
14384
+ }), m = _("spr-w-[120px] spr-h-full spr-space-x-2"), b = _("spr-mt-0.5 spr-pl-1 spr-text-mushroom-950"), j = _("spr-flex spr-justify-between spr-items-center spr-space-x-4"), w = _("spr-text-color-base spr-body-sm-regular"), $ = _("spr-flex spr-space-x-2"), D = _("spr-rounded-border-radius-md"), Y = _("!spr-w-max");
14383
14385
  return {
14384
14386
  baseClass: v,
14385
14387
  dropdownInputFieldClass: m,
@@ -14388,7 +14390,7 @@ const L5 = (e) => ({
14388
14390
  inputFieldIconClass: b,
14389
14391
  navigationContainerClass: $,
14390
14392
  navigationButtonClass: D,
14391
- dropdownClass: F
14393
+ dropdownClass: Y
14392
14394
  };
14393
14395
  }), i = Z(e.dropdownSelection), u = z(() => {
14394
14396
  const v = (n.value - 1) * r.value + 1, m = Math.min(n.value * r.value, s.value);
@@ -14604,10 +14606,10 @@ const L5 = (e) => ({
14604
14606
  () => e.tableActions.search || e.tableActions.filter || e.tableActions.option
14605
14607
  ), w = (k, re) => {
14606
14608
  e.isRowClickable && t("onRowClick", k, re);
14607
- }, $ = z(() => i.value ? "large" : "small"), D = (k) => typeof k == "string" ? k.toLowerCase() : typeof k == "object" && !Array.isArray(k) && k !== null ? k.title.toLowerCase() : Array.isArray(k) && k.length > 0 ? k[0].title.toLowerCase() : "", F = z(() => {
14609
+ }, $ = z(() => i.value ? "large" : "small"), D = (k) => typeof k == "string" ? k.toLowerCase() : typeof k == "object" && !Array.isArray(k) && k !== null ? k.title.toLowerCase() : Array.isArray(k) && k.length > 0 ? k[0].title.toLowerCase() : "", Y = z(() => {
14608
14610
  const k = _(
14609
14611
  "spr-border-color-weak spr-w-full spr-overflow-hidden spr-rounded-border-radius-lg spr-border spr-border-solid spr-table-wrapper spr-relative spr-h-max"
14610
- ), re = _("spr-absolute spr-w-full spr-bottom-0 spr-left-0", {
14612
+ ), re = _("spr-w-full spr-bottom-0 spr-left-0", {
14611
14613
  "spr-background-color-surface": e.variant === "surface",
14612
14614
  "spr-background-color": e.variant === "white"
14613
14615
  }), Q = _({
@@ -14623,7 +14625,7 @@ const L5 = (e) => ({
14623
14625
  Q
14624
14626
  ), P = "spr-flex spr-flex-row spr-items-center spr-gap-size-spacing-5xs", V = _({
14625
14627
  "spr-px-size-spacing-sm spr-py-size-spacing-xs": !!r.default
14626
- }), Y = "spr-border-color-weak spr-w-full spr-border spr-border-solid", W = "spr-background-color-surface spr-text-color-strong spr-font-size-100 spr-font-line-height-100 spr-font-letter-spacing-normal spr-uppercase", ae = _("hover:spr-background-color-hover spr-min-h-[60px]", {
14628
+ }), F = "spr-border-color-weak spr-w-full spr-border spr-border-solid", W = "spr-background-color-surface spr-text-color-strong spr-font-size-100 spr-font-line-height-100 spr-font-letter-spacing-normal spr-uppercase", ae = _("hover:spr-background-color-hover spr-min-h-[60px]", {
14627
14629
  "spr-cursor-pointer": e.isRowClickable
14628
14630
  }), ie = "spr-border-color-weak spr-overflow-hidden spr-border-x-0 spr-border-b spr-border-t-0 spr-border-solid spr-p-3", fe = "spr-border-color-weak spr-overflow-hidden spr-border-x-0 spr-border-b spr-border-t-0 spr-border-solid spr-p-3", q = _("spr-h-full"), ne = _({
14629
14631
  "spr-overflow-y-auto spr-h-[calc(85vh-150px)] md:spr-h-[calc(75vh-150px)] sm:spr-h-[calc(70vh-150px)]": i.value && r.footer,
@@ -14646,7 +14648,7 @@ const L5 = (e) => ({
14646
14648
  headerClasses: R,
14647
14649
  tableWrapperClasses: k,
14648
14650
  defaultSlotClasses: V,
14649
- tableHeaderActionsClasses: Y,
14651
+ tableHeaderActionsClasses: F,
14650
14652
  headerNameClass: P,
14651
14653
  tableCellSlotClasses: W,
14652
14654
  multiselectRowClass: Me,
@@ -14688,7 +14690,7 @@ const L5 = (e) => ({
14688
14690
  getHeaderCount: m,
14689
14691
  hasTableActions: j,
14690
14692
  searchField: c,
14691
- getTableClasses: F,
14693
+ getTableClasses: Y,
14692
14694
  getEmptyStateSize: $,
14693
14695
  selectAll: M,
14694
14696
  selectedData: h,
@@ -14881,14 +14883,14 @@ const L5 = (e) => ({
14881
14883
  ])) : T("", !0),
14882
14884
  I("div", null, [
14883
14885
  Array.isArray(l(a)[w][$.field].title) ? (g(), y("div", D8, [
14884
- (g(!0), y(te, null, ue(l(a)[w][$.field].title, (F, O) => (g(), y("div", { key: O }, [
14886
+ (g(!0), y(te, null, ue(l(a)[w][$.field].title, (Y, O) => (g(), y("div", { key: O }, [
14885
14887
  $.hasLozengeTitle ? (g(), y("div", I8, [
14886
14888
  U(zt, {
14887
- cell: F
14889
+ cell: Y
14888
14890
  }, null, 8, ["cell"])
14889
14891
  ])) : $.hasChipTitle ? (g(), y("div", A8, [
14890
14892
  U(Lt, {
14891
- cell: F
14893
+ cell: Y
14892
14894
  }, null, 8, ["cell"])
14893
14895
  ])) : T("", !0)
14894
14896
  ]))), 128))
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-next",
3
3
  "private": false,
4
- "version": "2.3.0",
4
+ "version": "2.3.1",
5
5
  "main": "./dist/design-system-next.js",
6
6
  "module": "./dist/design-system-next.js",
7
7
  "repository": {
@@ -80,17 +80,17 @@ export const useCalendarCell = (props: CalendarCellPropTypes, emit: SetupContext
80
80
  'spr-border-solid': !props.status || (props.status !== 'pending' && props.status !== 'error'),
81
81
  });
82
82
 
83
- const titleClasses = classNames('spr-text-color-strong spr-body-xs-regular-medium', {
83
+ const titleClasses = classNames('spr-text-color-strong spr-body-sm-regular-medium', {
84
84
  'spr-text-color-danger-base': props.status === 'error',
85
85
  });
86
86
 
87
- const descriptionClasses = classNames('spr-text-color-strong spr-body-xs-regular', {
87
+ const descriptionClasses = classNames('spr-text-color-strong spr-body-sm-regular', {
88
88
  'spr-text-color-danger-base': props.status === 'error',
89
89
  });
90
90
 
91
- const getTypeLabelClassess = classNames('spr-text-color-strong spr-body-xs-regular', {
91
+ const getTypeLabelClassess = classNames('spr-text-color-strong spr-body-sm-regular', {
92
92
  'spr-text-color-danger-base': props.status === 'error',
93
- 'spr-text-color-strong spr-body-xs-regular-medium': offlineStatus.includes(props.type),
93
+ 'spr-text-color-strong spr-body-sm-regular-medium': offlineStatus.includes(props.type),
94
94
  });
95
95
 
96
96
  const getMainClasses = classNames(calendarCellWrapper, getCellClasses.value, statusCellClasses);
@@ -86,6 +86,6 @@ const {
86
86
  handleSelectedLadderizedItem,
87
87
  dropdownValue,
88
88
  removeCurrentLevelInBackLabel,
89
- isLadderizedSearch
89
+ isLadderizedSearch,
90
90
  } = useDropdown(props, emit);
91
91
  </script>
@@ -4,13 +4,14 @@
4
4
  aria-id="filter-option-wrapper"
5
5
  distance="4"
6
6
  placement="bottom"
7
- :triggers="['click']"
7
+ :triggers="[]"
8
+ :popper-hide-triggers="[]"
8
9
  :container="`#${uniqueId}`"
10
+ :auto-hide="false"
9
11
  :style="{
10
12
  width: props.width,
11
13
  position: 'relative',
12
14
  }"
13
- :auto-hide="false"
14
15
  >
15
16
  <span
16
17
  :id="uniqueId"
@@ -18,6 +19,7 @@
18
19
  width: props.width,
19
20
  position: 'relative',
20
21
  }"
22
+ @click="isFilterOpen = true"
21
23
  >
22
24
  <slot>
23
25
  <spr-input v-model="searchValue" type="text" :placeholder="placeholder" :label="label" :disabled="disabled">
@@ -184,6 +186,7 @@
184
186
  >
185
187
  <div
186
188
  class="spr-flex spr-w-full spr-flex-row spr-items-center spr-justify-items-start spr-gap-size-spacing-3xs"
189
+ @click="getFiltereredOption[key].isSelected = !getFiltereredOption[key].isSelected"
187
190
  >
188
191
  <spr-checkbox
189
192
  v-model="getFiltereredOption[key].isSelected"
@@ -24,17 +24,14 @@ export const useTablePagination = (
24
24
  const { selectedRowCount, currentPage, totalItems, bordered } = toRefs(props);
25
25
 
26
26
  const paginationClasses: ComputedRef<TablePaginationClasses> = computed(() => {
27
- const baseClass = classNames(
28
- 'spr-p-size-spacing-xs spr-flex spr-justify-between spr-bg-white-50 spr-h-max',
29
- {
30
- 'spr-border spr-border-solid spr-border-color-weak': bordered.value,
31
- 'spr-border-x-0 spr-border-t spr-border-b-0 spr-border-solid spr-border-color-weak': !bordered.value,
32
- },
33
- );
34
- const dropdownInputFieldClass = classNames('spr-w-[120px] spr-font-bold spr-h-full spr-space-x-2');
27
+ const baseClass = classNames('spr-p-size-spacing-xs spr-flex spr-justify-between spr-bg-white-50 spr-h-max', {
28
+ 'spr-border spr-border-solid spr-border-color-weak': bordered.value,
29
+ 'spr-border-x-0 spr-border-t spr-border-b-0 spr-border-solid spr-border-color-weak': !bordered.value,
30
+ });
31
+ const dropdownInputFieldClass = classNames('spr-w-[120px] spr-h-full spr-space-x-2');
35
32
  const inputFieldIconClass = classNames('spr-mt-0.5 spr-pl-1 spr-text-mushroom-950');
36
33
  const rightSideClass = classNames('spr-flex spr-justify-between spr-items-center spr-space-x-4');
37
- const computeRowRangeClass = classNames('spr-font-main spr-text-color-base');
34
+ const computeRowRangeClass = classNames('spr-text-color-base spr-body-sm-regular');
38
35
  const navigationContainerClass = classNames('spr-flex spr-space-x-2');
39
36
  const navigationButtonClass = classNames('spr-rounded-border-radius-md');
40
37
  const dropdownClass = classNames('!spr-w-max');
@@ -76,7 +76,7 @@ export const useTable = (props: TablePropTypes, emit: SetupContext<TableEmitType
76
76
  const tableWrapperClasses = classNames(
77
77
  'spr-border-color-weak spr-w-full spr-overflow-hidden spr-rounded-border-radius-lg spr-border spr-border-solid spr-table-wrapper spr-relative spr-h-max',
78
78
  );
79
- const tableFooterClasses = classNames('spr-absolute spr-w-full spr-bottom-0 spr-left-0', {
79
+ const tableFooterClasses = classNames('spr-w-full spr-bottom-0 spr-left-0', {
80
80
  'spr-background-color-surface': props.variant === 'surface',
81
81
  'spr-background-color': props.variant === 'white',
82
82
  });