stp-ui-kit 0.0.48 → 0.0.50

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as d, jsxs as z, Fragment as So } from "react/jsx-runtime";
2
2
  import p, { useState as Et, useEffect as $e, forwardRef as Ge, createElement as _e, useRef as oe, createContext as To, useContext as Io, useId as Eo } from "react";
3
- import jo, { createPortal as Ao } from "react-dom";
4
- import { createRoot as Bo } from "react-dom/client";
3
+ import Ao, { createPortal as Bo } from "react-dom";
4
+ import { createRoot as jo } from "react-dom/client";
5
5
  var zo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function We(t) {
7
7
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -98,7 +98,7 @@ var Xe = { exports: {} };
98
98
  (function(o, n) {
99
99
  t.exports = n();
100
100
  })(zo, function() {
101
- var o = 1e3, n = 6e4, a = 36e5, r = "millisecond", l = "second", f = "minute", m = "hour", u = "day", y = "week", s = "month", D = "quarter", A = "year", M = "date", P = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, et = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
101
+ var o = 1e3, n = 6e4, a = 36e5, r = "millisecond", l = "second", f = "minute", m = "hour", u = "day", y = "week", s = "month", D = "quarter", B = "year", M = "date", P = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, et = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
102
102
  var h = ["th", "st", "nd", "rd"], c = C % 100;
103
103
  return "[" + C + (h[(c - 20) % 10] || h[c] || h[0]) + "]";
104
104
  } }, G = function(C, h, c) {
@@ -114,7 +114,7 @@ var Xe = { exports: {} };
114
114
  }, a: function(C) {
115
115
  return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
116
116
  }, p: function(C) {
117
- return { M: s, y: A, w: y, d: u, D: M, h: m, m: f, s: l, ms: r, Q: D }[C] || String(C || "").toLowerCase().replace(/s$/, "");
117
+ return { M: s, y: B, w: y, d: u, D: M, h: m, m: f, s: l, ms: r, Q: D }[C] || String(C || "").toLowerCase().replace(/s$/, "");
118
118
  }, u: function(C) {
119
119
  return C === void 0;
120
120
  } }, F = "en", q = {};
@@ -190,7 +190,7 @@ var Xe = { exports: {} };
190
190
  return T.w(i.toDate()[K].apply(i.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), i);
191
191
  }, v = this.$W, I = this.$M, Y = this.$D, O = "set" + (this.$u ? "UTC" : "");
192
192
  switch (N) {
193
- case A:
193
+ case B:
194
194
  return x ? k(1, 0) : k(31, 11);
195
195
  case s:
196
196
  return x ? k(1, I) : k(0, I + 1);
@@ -212,8 +212,8 @@ var Xe = { exports: {} };
212
212
  }, h.endOf = function(c) {
213
213
  return this.startOf(c, !1);
214
214
  }, h.$set = function(c, g) {
215
- var i, x = T.p(c), N = "set" + (this.$u ? "UTC" : ""), k = (i = {}, i[u] = N + "Date", i[M] = N + "Date", i[s] = N + "Month", i[A] = N + "FullYear", i[m] = N + "Hours", i[f] = N + "Minutes", i[l] = N + "Seconds", i[r] = N + "Milliseconds", i)[x], S = x === u ? this.$D + (g - this.$W) : g;
216
- if (x === s || x === A) {
215
+ var i, x = T.p(c), N = "set" + (this.$u ? "UTC" : ""), k = (i = {}, i[u] = N + "Date", i[M] = N + "Date", i[s] = N + "Month", i[B] = N + "FullYear", i[m] = N + "Hours", i[f] = N + "Minutes", i[l] = N + "Seconds", i[r] = N + "Milliseconds", i)[x], S = x === u ? this.$D + (g - this.$W) : g;
216
+ if (x === s || x === B) {
217
217
  var v = this.clone().set(M, 1);
218
218
  v.$d[k](S), v.init(), this.$d = v.set(M, Math.min(this.$D, v.daysInMonth())).$d;
219
219
  } else k && this.$d[k](S);
@@ -230,7 +230,7 @@ var Xe = { exports: {} };
230
230
  return T.w(Y.date(Y.date() + Math.round(I * c)), x);
231
231
  };
232
232
  if (N === s) return this.set(s, this.$M + c);
233
- if (N === A) return this.set(A, this.$y + c);
233
+ if (N === B) return this.set(B, this.$y + c);
234
234
  if (N === u) return k(1);
235
235
  if (N === y) return k(7);
236
236
  var S = (i = {}, i[f] = n, i[m] = a, i[l] = o, i)[N] || 1, v = this.$d.getTime() + c * S;
@@ -310,7 +310,7 @@ var Xe = { exports: {} };
310
310
  return T.m(N, S);
311
311
  };
312
312
  switch (k) {
313
- case A:
313
+ case B:
314
314
  x = Y() / 12;
315
315
  break;
316
316
  case s:
@@ -358,7 +358,7 @@ var Xe = { exports: {} };
358
358
  return this.$d.toUTCString();
359
359
  }, C;
360
360
  }(), ot = W.prototype;
361
- return H.prototype = ot, [["$ms", r], ["$s", l], ["$m", f], ["$H", m], ["$W", u], ["$M", s], ["$y", A], ["$D", M]].forEach(function(C) {
361
+ return H.prototype = ot, [["$ms", r], ["$s", l], ["$m", f], ["$H", m], ["$W", u], ["$M", s], ["$y", B], ["$D", M]].forEach(function(C) {
362
362
  ot[C[1]] = function(h) {
363
363
  return this.$g(h, C[0], C[1]);
364
364
  };
@@ -389,20 +389,20 @@ const Zo = /* @__PURE__ */ We(Ko), Jo = (t) => {
389
389
  seconds: 0
390
390
  });
391
391
  $e(() => {
392
- const D = new Date(n), A = (w) => ({
392
+ const D = new Date(n), B = (w) => ({
393
393
  days: Math.floor(w / (1e3 * 60 * 60 * 24)),
394
394
  hours: Math.floor(w / (1e3 * 60 * 60) % 24),
395
395
  minutes: Math.floor(w / (1e3 * 60) % 60),
396
396
  seconds: Math.floor(w / 1e3 % 60)
397
397
  }), M = () => {
398
398
  const w = Date.now(), L = D.getTime() - w;
399
- L <= 0 ? (m(!0), y({ days: 0, hours: 0, minutes: 0, seconds: 0 })) : y(A(L));
399
+ L <= 0 ? (m(!0), y({ days: 0, hours: 0, minutes: 0, seconds: 0 })) : y(B(L));
400
400
  };
401
401
  M();
402
402
  const P = setInterval(M, 1e3);
403
403
  return () => clearInterval(P);
404
404
  }, [n]);
405
- const s = (D, A) => /* @__PURE__ */ z("div", { className: Ct.timerCell, children: [
405
+ const s = (D, B) => /* @__PURE__ */ z("div", { className: Ct.timerCell, children: [
406
406
  /* @__PURE__ */ d(
407
407
  st,
408
408
  {
@@ -411,7 +411,7 @@ const Zo = /* @__PURE__ */ We(Ko), Jo = (t) => {
411
411
  children: D
412
412
  }
413
413
  ),
414
- A
414
+ B
415
415
  ] });
416
416
  return /* @__PURE__ */ z(
417
417
  "div",
@@ -579,7 +579,7 @@ const un = Ge(
579
579
  * This source code is licensed under the ISC license.
580
580
  * See the LICENSE file in the root directory of this source tree.
581
581
  */
582
- const jt = (t, e) => {
582
+ const At = (t, e) => {
583
583
  const o = Ge(
584
584
  ({ className: n, ...a }, r) => _e(un, {
585
585
  ref: r,
@@ -603,21 +603,21 @@ const jt = (t, e) => {
603
603
  const mn = [
604
604
  ["path", { d: "M18 6 7 17l-5-5", key: "116fxf" }],
605
605
  ["path", { d: "m22 10-7.5 7.5L13 16", key: "ke71qq" }]
606
- ], fn = jt("check-check", mn);
606
+ ], fn = At("check-check", mn);
607
607
  /**
608
608
  * @license lucide-react v0.511.0 - ISC
609
609
  *
610
610
  * This source code is licensed under the ISC license.
611
611
  * See the LICENSE file in the root directory of this source tree.
612
612
  */
613
- const pn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ze = jt("chevron-down", pn);
613
+ const pn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ze = At("chevron-down", pn);
614
614
  /**
615
615
  * @license lucide-react v0.511.0 - ISC
616
616
  *
617
617
  * This source code is licensed under the ISC license.
618
618
  * See the LICENSE file in the root directory of this source tree.
619
619
  */
620
- const hn = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Je = jt("chevron-up", hn);
620
+ const hn = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Je = At("chevron-up", hn);
621
621
  /**
622
622
  * @license lucide-react v0.511.0 - ISC
623
623
  *
@@ -628,7 +628,7 @@ const gn = [
628
628
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
629
629
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
630
630
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
631
- ], Qe = jt("circle-alert", gn);
631
+ ], Qe = At("circle-alert", gn);
632
632
  /**
633
633
  * @license lucide-react v0.511.0 - ISC
634
634
  *
@@ -645,7 +645,7 @@ const bn = [
645
645
  key: "1fd625"
646
646
  }
647
647
  ]
648
- ], to = jt("octagon-alert", bn);
648
+ ], to = At("octagon-alert", bn);
649
649
  /**
650
650
  * @license lucide-react v0.511.0 - ISC
651
651
  *
@@ -662,7 +662,7 @@ const _n = [
662
662
  ],
663
663
  ["path", { d: "M12 9v4", key: "juzpu7" }],
664
664
  ["path", { d: "M12 17h.01", key: "p32p05" }]
665
- ], eo = jt("triangle-alert", _n);
665
+ ], eo = At("triangle-alert", _n);
666
666
  /**
667
667
  * @license lucide-react v0.511.0 - ISC
668
668
  *
@@ -672,7 +672,7 @@ const _n = [
672
672
  const yn = [
673
673
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
674
674
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
675
- ], ne = jt("x", yn), vn = "_message_yijnh_29", Le = {
675
+ ], ne = At("x", yn), vn = "_message_yijnh_29", Le = {
676
676
  message: vn
677
677
  }, Ce = ({ children: t }) => /* @__PURE__ */ z("div", { className: E(Le.message), children: [
678
678
  /* @__PURE__ */ d(
@@ -683,7 +683,7 @@ const yn = [
683
683
  }
684
684
  ),
685
685
  t
686
- ] }), wn = "_formItem_8j2ip_29", xn = "_labelContainer_8j2ip_42", kn = "_disabled_8j2ip_48", $n = "_message_8j2ip_55", Cn = "_checkbox_8j2ip_59", Nn = "_error_8j2ip_97", bt = {
686
+ ] }), wn = "_formItem_2v5p8_29", xn = "_labelContainer_2v5p8_41", kn = "_disabled_2v5p8_48", $n = "_message_2v5p8_55", Cn = "_checkbox_2v5p8_59", Nn = "_error_2v5p8_97", bt = {
687
687
  formItem: wn,
688
688
  labelContainer: xn,
689
689
  disabled: kn,
@@ -697,22 +697,33 @@ const yn = [
697
697
  disabled: n,
698
698
  className: a,
699
699
  indeterminate: r,
700
- ...l
700
+ onChange: l,
701
+ ...f
701
702
  }) => {
702
- const f = oe(null);
703
- return $e(() => {
704
- f.current && (f.current.indeterminate = !!r);
705
- }, [r]), /* @__PURE__ */ z("div", { className: bt.formItem, children: [
703
+ const m = oe(null);
704
+ $e(() => {
705
+ m.current && (m.current.indeterminate = !!r);
706
+ }, [r]);
707
+ const u = () => {
708
+ if (m.current && !n) {
709
+ const y = {
710
+ target: m.current
711
+ };
712
+ l == null || l(y);
713
+ }
714
+ };
715
+ return /* @__PURE__ */ z("div", { className: bt.formItem, children: [
706
716
  /* @__PURE__ */ d(
707
717
  "input",
708
718
  {
709
- ref: f,
719
+ ref: m,
710
720
  type: "checkbox",
711
721
  className: E(a, bt.checkbox, {
712
722
  [bt.error]: !!e
713
723
  }),
714
724
  disabled: n,
715
- ...l
725
+ onChange: l,
726
+ ...f
716
727
  }
717
728
  ),
718
729
  /* @__PURE__ */ z("div", { className: bt.labelContainer, children: [
@@ -722,6 +733,7 @@ const yn = [
722
733
  className: E(bt.label, {
723
734
  [bt.disabled]: n
724
735
  }),
736
+ onClick: u,
725
737
  children: t
726
738
  }
727
739
  ),
@@ -734,7 +746,7 @@ const yn = [
734
746
  children: e ? /* @__PURE__ */ d(Ce, { children: e }) : o
735
747
  }
736
748
  ),
737
- o && /* @__PURE__ */ d(
749
+ o && !e && /* @__PURE__ */ d(
738
750
  "div",
739
751
  {
740
752
  className: E(bt.message, {
@@ -745,15 +757,15 @@ const yn = [
745
757
  )
746
758
  ] })
747
759
  ] });
748
- }, Mn = "_navigationItem_1epug_29", Sn = "_container_1epug_45", Tn = "_IconContainer_1epug_51", In = "_ParentLine_1epug_57", En = "_secondaryIcon_1epug_69", jn = "_active_1epug_80", An = "_collapsed_1epug_88", Bn = "_label_1epug_92", xt = {
760
+ }, Mn = "_navigationItem_1epug_29", Sn = "_container_1epug_45", Tn = "_IconContainer_1epug_51", In = "_ParentLine_1epug_57", En = "_secondaryIcon_1epug_69", An = "_active_1epug_80", Bn = "_collapsed_1epug_88", jn = "_label_1epug_92", xt = {
749
761
  navigationItem: Mn,
750
762
  container: Sn,
751
763
  IconContainer: Tn,
752
764
  ParentLine: In,
753
765
  secondaryIcon: En,
754
- active: jn,
755
- collapsed: An,
756
- label: Bn
766
+ active: An,
767
+ collapsed: Bn,
768
+ label: jn
757
769
  }, ae = ({
758
770
  icon: t,
759
771
  label: e,
@@ -1005,14 +1017,14 @@ const yn = [
1005
1017
  src: t,
1006
1018
  alt: o
1007
1019
  }
1008
- ), At = Kn;
1009
- At.Title = Zn;
1010
- At.Context = Jn;
1011
- At.Content = Qn;
1012
- At.ButtonContent = ts;
1013
- At.PrimaryButton = es;
1014
- At.SecondaryButton = os;
1015
- At.Image = ns;
1020
+ ), Bt = Kn;
1021
+ Bt.Title = Zn;
1022
+ Bt.Context = Jn;
1023
+ Bt.Content = Qn;
1024
+ Bt.ButtonContent = ts;
1025
+ Bt.PrimaryButton = es;
1026
+ Bt.SecondaryButton = os;
1027
+ Bt.Image = ns;
1016
1028
  const ss = "_formItem_4e017_29", rs = "_critical_4e017_36", as = "_message_4e017_40", is = "_error_4e017_46", ls = "_label_4e017_50", cs = "_disabled_4e017_53", ds = "_readOnly_4e017_56", us = "_input_4e017_60", vt = {
1017
1029
  "shadow-0": "_shadow-0_4e017_1",
1018
1030
  "shadow-100": "_shadow-100_4e017_5",
@@ -1200,7 +1212,7 @@ const ps = "_btn_vv6xf_29", hs = "_small_vv6xf_42", gs = "_medium_vv6xf_45", bs
1200
1212
  onChange: y,
1201
1213
  onFocus: s,
1202
1214
  ...D
1203
- }, A) => {
1215
+ }, B) => {
1204
1216
  const M = (w) => {
1205
1217
  m && !new RegExp(m).test(w.target.value) ? w.target.setCustomValidity("Неверный формат") : w.target.setCustomValidity(""), y == null || y(w);
1206
1218
  }, P = (w) => {
@@ -1223,7 +1235,7 @@ const ps = "_btn_vv6xf_29", hs = "_small_vv6xf_42", gs = "_medium_vv6xf_45", bs
1223
1235
  children: /* @__PURE__ */ d(
1224
1236
  "input",
1225
1237
  {
1226
- ref: A,
1238
+ ref: B,
1227
1239
  className: E(pt.input, f),
1228
1240
  disabled: r,
1229
1241
  readOnly: l,
@@ -1245,7 +1257,7 @@ function Is(t) {
1245
1257
  const Es = (t) => {
1246
1258
  switch (t) {
1247
1259
  case "success":
1248
- return Bs;
1260
+ return js;
1249
1261
  case "info":
1250
1262
  return Ds;
1251
1263
  case "warning":
@@ -1255,7 +1267,7 @@ const Es = (t) => {
1255
1267
  default:
1256
1268
  return null;
1257
1269
  }
1258
- }, js = Array(12).fill(0), As = ({ visible: t, className: e }) => /* @__PURE__ */ p.createElement("div", {
1270
+ }, As = Array(12).fill(0), Bs = ({ visible: t, className: e }) => /* @__PURE__ */ p.createElement("div", {
1259
1271
  className: [
1260
1272
  "sonner-loading-wrapper",
1261
1273
  e
@@ -1263,10 +1275,10 @@ const Es = (t) => {
1263
1275
  "data-visible": t
1264
1276
  }, /* @__PURE__ */ p.createElement("div", {
1265
1277
  className: "sonner-spinner"
1266
- }, js.map((o, n) => /* @__PURE__ */ p.createElement("div", {
1278
+ }, As.map((o, n) => /* @__PURE__ */ p.createElement("div", {
1267
1279
  className: "sonner-loading-bar",
1268
1280
  key: `spinner-bar-${n}`
1269
- })))), Bs = /* @__PURE__ */ p.createElement("svg", {
1281
+ })))), js = /* @__PURE__ */ p.createElement("svg", {
1270
1282
  xmlns: "http://www.w3.org/2000/svg",
1271
1283
  viewBox: "0 0 20 20",
1272
1284
  fill: "currentColor",
@@ -1462,14 +1474,14 @@ class Ps {
1462
1474
  u
1463
1475
  ], o.error !== void 0) {
1464
1476
  r = !1;
1465
- const y = typeof o.error == "function" ? await o.error(u) : o.error, s = typeof o.description == "function" ? await o.description(u) : o.description, A = typeof y == "object" && !p.isValidElement(y) ? y : {
1477
+ const y = typeof o.error == "function" ? await o.error(u) : o.error, s = typeof o.description == "function" ? await o.description(u) : o.description, B = typeof y == "object" && !p.isValidElement(y) ? y : {
1466
1478
  message: y
1467
1479
  };
1468
1480
  this.create({
1469
1481
  id: n,
1470
1482
  type: "error",
1471
1483
  description: s,
1472
- ...A
1484
+ ...B
1473
1485
  });
1474
1486
  }
1475
1487
  }).finally(() => {
@@ -1525,25 +1537,25 @@ function Qs(t) {
1525
1537
  }
1526
1538
  const tr = (t) => {
1527
1539
  var e, o, n, a, r, l, f, m, u;
1528
- const { invert: y, toast: s, unstyled: D, interacting: A, setHeights: M, visibleToasts: P, heights: w, index: L, toasts: et, expanded: G, removeToast: J, defaultRichColors: F, closeButton: q, style: lt, cancelButtonStyle: $, actionButtonStyle: U, className: H = "", descriptionClassName: T = "", duration: W, position: ot, gap: C, expandByDefault: h, classNames: c, icons: g, closeButtonAriaLabel: i = "Close toast" } = t, [x, N] = p.useState(null), [k, S] = p.useState(null), [v, I] = p.useState(!1), [Y, O] = p.useState(!1), [R, nt] = p.useState(!1), [K, V] = p.useState(!1), [rt, ct] = p.useState(!1), [zt, ie] = p.useState(0), [bo, Te] = p.useState(0), qt = p.useRef(s.duration || W || Pe), Ie = p.useRef(null), wt = p.useRef(null), _o = L === 0, yo = L + 1 <= P, dt = s.type, Dt = s.dismissible !== !1, vo = s.className || "", wo = s.descriptionClassName || "", Ut = p.useMemo(() => w.findIndex((j) => j.toastId === s.id) || 0, [
1540
+ const { invert: y, toast: s, unstyled: D, interacting: B, setHeights: M, visibleToasts: P, heights: w, index: L, toasts: et, expanded: G, removeToast: J, defaultRichColors: F, closeButton: q, style: lt, cancelButtonStyle: $, actionButtonStyle: U, className: H = "", descriptionClassName: T = "", duration: W, position: ot, gap: C, expandByDefault: h, classNames: c, icons: g, closeButtonAriaLabel: i = "Close toast" } = t, [x, N] = p.useState(null), [k, S] = p.useState(null), [v, I] = p.useState(!1), [Y, O] = p.useState(!1), [R, nt] = p.useState(!1), [K, V] = p.useState(!1), [rt, ct] = p.useState(!1), [zt, ie] = p.useState(0), [bo, Te] = p.useState(0), qt = p.useRef(s.duration || W || Pe), Ie = p.useRef(null), wt = p.useRef(null), _o = L === 0, yo = L + 1 <= P, dt = s.type, Dt = s.dismissible !== !1, vo = s.className || "", wo = s.descriptionClassName || "", Ut = p.useMemo(() => w.findIndex((A) => A.toastId === s.id) || 0, [
1529
1541
  w,
1530
1542
  s.id
1531
1543
  ]), xo = p.useMemo(() => {
1532
- var j;
1533
- return (j = s.closeButton) != null ? j : q;
1544
+ var A;
1545
+ return (A = s.closeButton) != null ? A : q;
1534
1546
  }, [
1535
1547
  s.closeButton,
1536
1548
  q
1537
1549
  ]), Ee = p.useMemo(() => s.duration || W || Pe, [
1538
1550
  s.duration,
1539
1551
  W
1540
- ]), le = p.useRef(0), Ot = p.useRef(0), je = p.useRef(0), Rt = p.useRef(null), [ko, $o] = ot.split("-"), Ae = p.useMemo(() => w.reduce((j, Z, tt) => tt >= Ut ? j : j + Z.height, 0), [
1552
+ ]), le = p.useRef(0), Ot = p.useRef(0), Ae = p.useRef(0), Rt = p.useRef(null), [ko, $o] = ot.split("-"), Be = p.useMemo(() => w.reduce((A, Z, tt) => tt >= Ut ? A : A + Z.height, 0), [
1541
1553
  w,
1542
1554
  Ut
1543
- ]), Be = Ls(), Co = s.invert || y, ce = dt === "loading";
1544
- Ot.current = p.useMemo(() => Ut * C + Ae, [
1555
+ ]), je = Ls(), Co = s.invert || y, ce = dt === "loading";
1556
+ Ot.current = p.useMemo(() => Ut * C + Be, [
1545
1557
  Ut,
1546
- Ae
1558
+ Be
1547
1559
  ]), p.useEffect(() => {
1548
1560
  qt.current = Ee;
1549
1561
  }, [
@@ -1551,9 +1563,9 @@ const tr = (t) => {
1551
1563
  ]), p.useEffect(() => {
1552
1564
  I(!0);
1553
1565
  }, []), p.useEffect(() => {
1554
- const j = wt.current;
1555
- if (j) {
1556
- const Z = j.getBoundingClientRect().height;
1566
+ const A = wt.current;
1567
+ if (A) {
1568
+ const Z = A.getBoundingClientRect().height;
1557
1569
  return Te(Z), M((tt) => [
1558
1570
  {
1559
1571
  toastId: s.id,
@@ -1568,10 +1580,10 @@ const tr = (t) => {
1568
1580
  s.id
1569
1581
  ]), p.useLayoutEffect(() => {
1570
1582
  if (!v) return;
1571
- const j = wt.current, Z = j.style.height;
1572
- j.style.height = "auto";
1573
- const tt = j.getBoundingClientRect().height;
1574
- j.style.height = Z, Te(tt), M((ut) => ut.find((Q) => Q.toastId === s.id) ? ut.map((Q) => Q.toastId === s.id ? {
1583
+ const A = wt.current, Z = A.style.height;
1584
+ A.style.height = "auto";
1585
+ const tt = A.getBoundingClientRect().height;
1586
+ A.style.height = Z, Te(tt), M((ut) => ut.find((Q) => Q.toastId === s.id) ? ut.map((Q) => Q.toastId === s.id ? {
1575
1587
  ...Q,
1576
1588
  height: tt
1577
1589
  } : Q) : [
@@ -1593,7 +1605,7 @@ const tr = (t) => {
1593
1605
  s.cancel
1594
1606
  ]);
1595
1607
  const $t = p.useCallback(() => {
1596
- O(!0), ie(Ot.current), M((j) => j.filter((Z) => Z.toastId !== s.id)), setTimeout(() => {
1608
+ O(!0), ie(Ot.current), M((A) => A.filter((Z) => Z.toastId !== s.id)), setTimeout(() => {
1597
1609
  J(s);
1598
1610
  }, Js);
1599
1611
  }, [
@@ -1604,24 +1616,24 @@ const tr = (t) => {
1604
1616
  ]);
1605
1617
  p.useEffect(() => {
1606
1618
  if (s.promise && dt === "loading" || s.duration === 1 / 0 || s.type === "loading") return;
1607
- let j;
1608
- return G || A || Be ? (() => {
1609
- if (je.current < le.current) {
1619
+ let A;
1620
+ return G || B || je ? (() => {
1621
+ if (Ae.current < le.current) {
1610
1622
  const ut = (/* @__PURE__ */ new Date()).getTime() - le.current;
1611
1623
  qt.current = qt.current - ut;
1612
1624
  }
1613
- je.current = (/* @__PURE__ */ new Date()).getTime();
1625
+ Ae.current = (/* @__PURE__ */ new Date()).getTime();
1614
1626
  })() : (() => {
1615
- qt.current !== 1 / 0 && (le.current = (/* @__PURE__ */ new Date()).getTime(), j = setTimeout(() => {
1627
+ qt.current !== 1 / 0 && (le.current = (/* @__PURE__ */ new Date()).getTime(), A = setTimeout(() => {
1616
1628
  s.onAutoClose == null || s.onAutoClose.call(s, s), $t();
1617
1629
  }, qt.current));
1618
- })(), () => clearTimeout(j);
1630
+ })(), () => clearTimeout(A);
1619
1631
  }, [
1620
1632
  G,
1621
- A,
1633
+ B,
1622
1634
  s,
1623
1635
  dt,
1624
- Be,
1636
+ je,
1625
1637
  $t
1626
1638
  ]), p.useEffect(() => {
1627
1639
  s.delete && ($t(), s.onDismiss == null || s.onDismiss.call(s, s));
@@ -1630,7 +1642,7 @@ const tr = (t) => {
1630
1642
  s.delete
1631
1643
  ]);
1632
1644
  function No() {
1633
- var j;
1645
+ var A;
1634
1646
  if (g != null && g.loading) {
1635
1647
  var Z;
1636
1648
  return /* @__PURE__ */ p.createElement("div", {
@@ -1638,8 +1650,8 @@ const tr = (t) => {
1638
1650
  "data-visible": dt === "loading"
1639
1651
  }, g.loading);
1640
1652
  }
1641
- return /* @__PURE__ */ p.createElement(As, {
1642
- className: _t(c == null ? void 0 : c.loader, s == null || (j = s.classNames) == null ? void 0 : j.loader),
1653
+ return /* @__PURE__ */ p.createElement(Bs, {
1654
+ className: _t(c == null ? void 0 : c.loader, s == null || (A = s.classNames) == null ? void 0 : A.loader),
1643
1655
  visible: dt === "loading"
1644
1656
  });
1645
1657
  }
@@ -1680,17 +1692,17 @@ const tr = (t) => {
1680
1692
  onDragEnd: () => {
1681
1693
  nt(!1), N(null), Rt.current = null;
1682
1694
  },
1683
- onPointerDown: (j) => {
1684
- ce || !Dt || (Ie.current = /* @__PURE__ */ new Date(), ie(Ot.current), j.target.setPointerCapture(j.pointerId), j.target.tagName !== "BUTTON" && (nt(!0), Rt.current = {
1685
- x: j.clientX,
1686
- y: j.clientY
1695
+ onPointerDown: (A) => {
1696
+ ce || !Dt || (Ie.current = /* @__PURE__ */ new Date(), ie(Ot.current), A.target.setPointerCapture(A.pointerId), A.target.tagName !== "BUTTON" && (nt(!0), Rt.current = {
1697
+ x: A.clientX,
1698
+ y: A.clientY
1687
1699
  }));
1688
1700
  },
1689
1701
  onPointerUp: () => {
1690
- var j, Z, tt;
1702
+ var A, Z, tt;
1691
1703
  if (K || !Dt) return;
1692
1704
  Rt.current = null;
1693
- const ut = Number(((j = wt.current) == null ? void 0 : j.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Xt = Number(((Z = wt.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Q = (/* @__PURE__ */ new Date()).getTime() - ((tt = Ie.current) == null ? void 0 : tt.getTime()), mt = x === "x" ? ut : Xt, Kt = Math.abs(mt) / Q;
1705
+ const ut = Number(((A = wt.current) == null ? void 0 : A.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Xt = Number(((Z = wt.current) == null ? void 0 : Z.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), Q = (/* @__PURE__ */ new Date()).getTime() - ((tt = Ie.current) == null ? void 0 : tt.getTime()), mt = x === "x" ? ut : Xt, Kt = Math.abs(mt) / Q;
1694
1706
  if (Math.abs(mt) >= Zs || Kt > 0.11) {
1695
1707
  ie(Ot.current), s.onDismiss == null || s.onDismiss.call(s, s), S(x === "x" ? ut > 0 ? "right" : "left" : Xt > 0 ? "down" : "up"), $t(), V(!0);
1696
1708
  return;
@@ -1700,10 +1712,10 @@ const tr = (t) => {
1700
1712
  }
1701
1713
  ct(!1), nt(!1), N(null);
1702
1714
  },
1703
- onPointerMove: (j) => {
1715
+ onPointerMove: (A) => {
1704
1716
  var Z, tt, ut;
1705
1717
  if (!Rt.current || !Dt || ((Z = window.getSelection()) == null ? void 0 : Z.toString().length) > 0) return;
1706
- const Q = j.clientY - Rt.current.y, mt = j.clientX - Rt.current.x;
1718
+ const Q = A.clientY - Rt.current.y, mt = A.clientX - Rt.current.x;
1707
1719
  var Kt;
1708
1720
  const ht = (Kt = t.swipeDirections) != null ? Kt : Qs(ot);
1709
1721
  !x && (Math.abs(mt) > 1 || Math.abs(Q) > 1) && N(Math.abs(mt) > Math.abs(Q) ? "x" : "y");
@@ -1754,16 +1766,16 @@ const tr = (t) => {
1754
1766
  "data-button": !0,
1755
1767
  "data-cancel": !0,
1756
1768
  style: s.cancelButtonStyle || $,
1757
- onClick: (j) => {
1758
- Qt(s.cancel) && Dt && (s.cancel.onClick == null || s.cancel.onClick.call(s.cancel, j), $t());
1769
+ onClick: (A) => {
1770
+ Qt(s.cancel) && Dt && (s.cancel.onClick == null || s.cancel.onClick.call(s.cancel, A), $t());
1759
1771
  },
1760
1772
  className: _t(c == null ? void 0 : c.cancelButton, s == null || (m = s.classNames) == null ? void 0 : m.cancelButton)
1761
1773
  }, s.cancel.label) : null, /* @__PURE__ */ p.isValidElement(s.action) ? s.action : s.action && Qt(s.action) ? /* @__PURE__ */ p.createElement("button", {
1762
1774
  "data-button": !0,
1763
1775
  "data-action": !0,
1764
1776
  style: s.actionButtonStyle || U,
1765
- onClick: (j) => {
1766
- Qt(s.action) && (s.action.onClick == null || s.action.onClick.call(s.action, j), !j.defaultPrevented && $t());
1777
+ onClick: (A) => {
1778
+ Qt(s.action) && (s.action.onClick == null || s.action.onClick.call(s.action, A), !A.defaultPrevented && $t());
1767
1779
  },
1768
1780
  className: _t(c == null ? void 0 : c.actionButton, s == null || (u = s.classNames) == null ? void 0 : u.actionButton)
1769
1781
  }, s.action.label) : null);
@@ -1804,7 +1816,7 @@ const or = /* @__PURE__ */ p.forwardRef(function(e, o) {
1804
1816
  const { invert: n, position: a = "bottom-right", hotkey: r = [
1805
1817
  "altKey",
1806
1818
  "KeyT"
1807
- ], expand: l, closeButton: f, className: m, offset: u, mobileOffset: y, theme: s = "light", richColors: D, duration: A, style: M, visibleToasts: P = Gs, toastOptions: w, dir: L = He(), gap: et = Ks, icons: G, containerAriaLabel: J = "Notifications" } = e, [F, q] = p.useState([]), lt = p.useMemo(() => Array.from(new Set([
1819
+ ], expand: l, closeButton: f, className: m, offset: u, mobileOffset: y, theme: s = "light", richColors: D, duration: B, style: M, visibleToasts: P = Gs, toastOptions: w, dir: L = He(), gap: et = Ks, icons: G, containerAriaLabel: J = "Notifications" } = e, [F, q] = p.useState([]), lt = p.useMemo(() => Array.from(new Set([
1808
1820
  a
1809
1821
  ].concat(F.filter((k) => k.position).map((k) => k.position)))), [
1810
1822
  F,
@@ -1826,7 +1838,7 @@ const or = /* @__PURE__ */ p.forwardRef(function(e, o) {
1826
1838
  return;
1827
1839
  }
1828
1840
  setTimeout(() => {
1829
- jo.flushSync(() => {
1841
+ Ao.flushSync(() => {
1830
1842
  q((S) => {
1831
1843
  const v = S.findIndex((I) => I.id === k.id);
1832
1844
  return v !== -1 ? [
@@ -1947,7 +1959,7 @@ const or = /* @__PURE__ */ p.forwardRef(function(e, o) {
1947
1959
  index: R,
1948
1960
  toast: O,
1949
1961
  defaultRichColors: D,
1950
- duration: (nt = w == null ? void 0 : w.duration) != null ? nt : A,
1962
+ duration: (nt = w == null ? void 0 : w.duration) != null ? nt : B,
1951
1963
  className: w == null ? void 0 : w.className,
1952
1964
  descriptionClassName: w == null ? void 0 : w.descriptionClassName,
1953
1965
  invert: n,
@@ -2072,7 +2084,7 @@ const or = /* @__PURE__ */ p.forwardRef(function(e, o) {
2072
2084
  }) => {
2073
2085
  if (!t) return null;
2074
2086
  const f = ft[`tone-${r}`] || "";
2075
- return Ao(
2087
+ return Bo(
2076
2088
  /* @__PURE__ */ d(
2077
2089
  "div",
2078
2090
  {
@@ -2138,7 +2150,7 @@ ve.Section = kr;
2138
2150
  function ue(t) {
2139
2151
  const e = document.createElement("div");
2140
2152
  document.body.appendChild(e);
2141
- const o = Bo(e), n = () => {
2153
+ const o = jo(e), n = () => {
2142
2154
  o.unmount(), e.remove();
2143
2155
  }, a = () => {
2144
2156
  var l;
@@ -2205,12 +2217,12 @@ const ri = {
2205
2217
  className: fe.progress,
2206
2218
  style: { width: `${t}%` }
2207
2219
  }
2208
- ) }) }), Ir = "_formItem_1nli3_29", Er = "_labelContainer_1nli3_42", jr = "_disabled_1nli3_48", Ar = "_inputContainer_1nli3_55", Br = "_error_1nli3_82", zr = "_message_1nli3_96", Dr = "_radio_1nli3_100", yt = {
2220
+ ) }) }), Ir = "_formItem_5stdw_29", Er = "_labelContainer_5stdw_41", Ar = "_disabled_5stdw_48", Br = "_inputContainer_5stdw_55", jr = "_error_5stdw_82", zr = "_message_5stdw_96", Dr = "_radio_5stdw_100", yt = {
2209
2221
  formItem: Ir,
2210
2222
  labelContainer: Er,
2211
- disabled: jr,
2212
- inputContainer: Ar,
2213
- error: Br,
2223
+ disabled: Ar,
2224
+ inputContainer: Br,
2225
+ error: jr,
2214
2226
  message: zr,
2215
2227
  radio: Dr
2216
2228
  }, li = ({
@@ -2220,48 +2232,64 @@ const ri = {
2220
2232
  disabled: n,
2221
2233
  className: a,
2222
2234
  name: r,
2223
- ...l
2224
- }) => /* @__PURE__ */ z("div", { className: yt.formItem, children: [
2225
- /* @__PURE__ */ d(
2226
- "input",
2227
- {
2228
- type: "radio",
2229
- className: E(a, yt.inputContainer, yt.radio),
2230
- disabled: n,
2231
- name: r,
2232
- ...l
2235
+ onChange: l,
2236
+ ...f
2237
+ }) => {
2238
+ const m = () => {
2239
+ if (l) {
2240
+ const u = {
2241
+ target: {
2242
+ name: r,
2243
+ value: f.value || ""
2244
+ }
2245
+ };
2246
+ l(u);
2233
2247
  }
2234
- ),
2235
- /* @__PURE__ */ z("div", { className: yt.labelContainer, children: [
2248
+ };
2249
+ return /* @__PURE__ */ z("div", { className: yt.formItem, children: [
2236
2250
  /* @__PURE__ */ d(
2237
- "div",
2238
- {
2239
- className: E(yt.label, {
2240
- [yt.disabled]: n
2241
- }),
2242
- children: t
2243
- }
2244
- ),
2245
- e && /* @__PURE__ */ d(
2246
- "div",
2251
+ "input",
2247
2252
  {
2248
- className: E(yt.message, {
2249
- [yt.error]: !!e
2250
- }),
2251
- children: e ? /* @__PURE__ */ d(Ce, { children: e }) : o
2253
+ type: "radio",
2254
+ className: E(a, yt.inputContainer, yt.radio),
2255
+ disabled: n,
2256
+ name: r,
2257
+ onChange: l,
2258
+ ...f
2252
2259
  }
2253
2260
  ),
2254
- o && /* @__PURE__ */ d(
2255
- "div",
2256
- {
2257
- className: E(yt.message, {
2258
- [yt.error]: !!e
2259
- }),
2260
- children: o
2261
- }
2262
- )
2263
- ] })
2264
- ] }), Or = "_container_1sj7i_29", Rr = "_notMobile_1sj7i_38", Lr = "_mobile_1sj7i_47", pe = {
2261
+ /* @__PURE__ */ z("div", { className: yt.labelContainer, children: [
2262
+ /* @__PURE__ */ d(
2263
+ "div",
2264
+ {
2265
+ className: E(yt.label, {
2266
+ [yt.disabled]: n
2267
+ }),
2268
+ onClick: m,
2269
+ children: t
2270
+ }
2271
+ ),
2272
+ e && /* @__PURE__ */ d(
2273
+ "div",
2274
+ {
2275
+ className: E(yt.message, {
2276
+ [yt.error]: !!e
2277
+ }),
2278
+ children: e ? /* @__PURE__ */ d(Ce, { children: e }) : o
2279
+ }
2280
+ ),
2281
+ o && !e && /* @__PURE__ */ d(
2282
+ "div",
2283
+ {
2284
+ className: E(yt.message, {
2285
+ [yt.error]: !!e
2286
+ }),
2287
+ children: o
2288
+ }
2289
+ )
2290
+ ] })
2291
+ ] });
2292
+ }, Or = "_container_1sj7i_29", Rr = "_notMobile_1sj7i_38", Lr = "_mobile_1sj7i_47", pe = {
2265
2293
  container: Or,
2266
2294
  notMobile: Rr,
2267
2295
  mobile: Lr
@@ -2465,12 +2493,12 @@ const Se = "-", Kr = (t) => {
2465
2493
  }
2466
2494
  P === "[" ? l++ : P === "]" ? l-- : P === "(" ? f++ : P === ")" && f--;
2467
2495
  }
2468
- const y = r.length === 0 ? a : a.substring(m), s = na(y), D = s !== y, A = u && u > m ? u - m : void 0;
2496
+ const y = r.length === 0 ? a : a.substring(m), s = na(y), D = s !== y, B = u && u > m ? u - m : void 0;
2469
2497
  return {
2470
2498
  modifiers: r,
2471
2499
  hasImportantModifier: D,
2472
2500
  baseClassName: s,
2473
- maybePostfixModifierPosition: A
2501
+ maybePostfixModifierPosition: B
2474
2502
  };
2475
2503
  };
2476
2504
  if (e) {
@@ -2519,7 +2547,7 @@ const Se = "-", Kr = (t) => {
2519
2547
  const y = f[u], {
2520
2548
  isExternal: s,
2521
2549
  modifiers: D,
2522
- hasImportantModifier: A,
2550
+ hasImportantModifier: B,
2523
2551
  baseClassName: M,
2524
2552
  maybePostfixModifierPosition: P
2525
2553
  } = o(y);
@@ -2539,7 +2567,7 @@ const Se = "-", Kr = (t) => {
2539
2567
  }
2540
2568
  w = !1;
2541
2569
  }
2542
- const et = r(D).join(":"), G = A ? et + xe : et, J = G + L;
2570
+ const et = r(D).join(":"), G = B ? et + xe : et, J = G + L;
2543
2571
  if (l.includes(J))
2544
2572
  continue;
2545
2573
  l.push(J);
@@ -2586,19 +2614,19 @@ function ca(t, ...e) {
2586
2614
  const X = (t) => {
2587
2615
  const e = (o) => o[t] || [];
2588
2616
  return e.isThemeGetter = !0, e;
2589
- }, lo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, co = /^\((?:(\w[\w-]*):)?(.+)\)$/i, da = /^\d+\/\d+$/, ua = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ma = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, fa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, pa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ha = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ht = (t) => da.test(t), B = (t) => !!t && !Number.isNaN(Number(t)), Nt = (t) => !!t && Number.isInteger(Number(t)), he = (t) => t.endsWith("%") && B(t.slice(0, -1)), kt = (t) => ua.test(t), ga = () => !0, ba = (t) => (
2617
+ }, lo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, co = /^\((?:(\w[\w-]*):)?(.+)\)$/i, da = /^\d+\/\d+$/, ua = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ma = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, fa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, pa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ha = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ht = (t) => da.test(t), j = (t) => !!t && !Number.isNaN(Number(t)), Nt = (t) => !!t && Number.isInteger(Number(t)), he = (t) => t.endsWith("%") && j(t.slice(0, -1)), kt = (t) => ua.test(t), ga = () => !0, ba = (t) => (
2590
2618
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2591
2619
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2592
2620
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2593
2621
  ma.test(t) && !fa.test(t)
2594
- ), uo = () => !1, _a = (t) => pa.test(t), ya = (t) => ha.test(t), va = (t) => !b(t) && !_(t), wa = (t) => Yt(t, po, uo), b = (t) => lo.test(t), Tt = (t) => Yt(t, ho, ba), ge = (t) => Yt(t, Na, B), Ve = (t) => Yt(t, mo, uo), xa = (t) => Yt(t, fo, ya), te = (t) => Yt(t, go, _a), _ = (t) => co.test(t), Wt = (t) => Vt(t, ho), ka = (t) => Vt(t, Ma), qe = (t) => Vt(t, mo), $a = (t) => Vt(t, po), Ca = (t) => Vt(t, fo), ee = (t) => Vt(t, go, !0), Yt = (t, e, o) => {
2622
+ ), uo = () => !1, _a = (t) => pa.test(t), ya = (t) => ha.test(t), va = (t) => !b(t) && !_(t), wa = (t) => Yt(t, po, uo), b = (t) => lo.test(t), Tt = (t) => Yt(t, ho, ba), ge = (t) => Yt(t, Na, j), Ve = (t) => Yt(t, mo, uo), xa = (t) => Yt(t, fo, ya), te = (t) => Yt(t, go, _a), _ = (t) => co.test(t), Wt = (t) => Vt(t, ho), ka = (t) => Vt(t, Ma), qe = (t) => Vt(t, mo), $a = (t) => Vt(t, po), Ca = (t) => Vt(t, fo), ee = (t) => Vt(t, go, !0), Yt = (t, e, o) => {
2595
2623
  const n = lo.exec(t);
2596
2624
  return n ? n[1] ? e(n[1]) : o(n[2]) : !1;
2597
2625
  }, Vt = (t, e, o = !1) => {
2598
2626
  const n = co.exec(t);
2599
2627
  return n ? n[1] ? e(n[1]) : o : !1;
2600
2628
  }, mo = (t) => t === "position" || t === "percentage", fo = (t) => t === "image" || t === "url", po = (t) => t === "length" || t === "size" || t === "bg-size", ho = (t) => t === "length", Na = (t) => t === "number", Ma = (t) => t === "family-name", go = (t) => t === "shadow", Sa = () => {
2601
- const t = X("color"), e = X("font"), o = X("text"), n = X("font-weight"), a = X("tracking"), r = X("leading"), l = X("breakpoint"), f = X("container"), m = X("spacing"), u = X("radius"), y = X("shadow"), s = X("inset-shadow"), D = X("text-shadow"), A = X("drop-shadow"), M = X("blur"), P = X("perspective"), w = X("aspect"), L = X("ease"), et = X("animate"), G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], J = () => [
2629
+ const t = X("color"), e = X("font"), o = X("text"), n = X("font-weight"), a = X("tracking"), r = X("leading"), l = X("breakpoint"), f = X("container"), m = X("spacing"), u = X("radius"), y = X("shadow"), s = X("inset-shadow"), D = X("text-shadow"), B = X("drop-shadow"), M = X("blur"), P = X("perspective"), w = X("aspect"), L = X("ease"), et = X("animate"), G = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], J = () => [
2602
2630
  "center",
2603
2631
  "top",
2604
2632
  "bottom",
@@ -2632,14 +2660,14 @@ const X = (t) => {
2632
2660
  u,
2633
2661
  _,
2634
2662
  b
2635
- ], I = () => ["", B, Wt, Tt], Y = () => ["solid", "dashed", "dotted", "double"], O = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [B, he, qe, Ve], nt = () => [
2663
+ ], I = () => ["", j, Wt, Tt], Y = () => ["solid", "dashed", "dotted", "double"], O = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [j, he, qe, Ve], nt = () => [
2636
2664
  // Deprecated since Tailwind CSS v4.0.0
2637
2665
  "",
2638
2666
  "none",
2639
2667
  M,
2640
2668
  _,
2641
2669
  b
2642
- ], K = () => ["none", B, _, b], V = () => ["none", B, _, b], rt = () => [B, _, b], ct = () => [Ht, "full", ...$()];
2670
+ ], K = () => ["none", j, _, b], V = () => ["none", j, _, b], rt = () => [j, _, b], ct = () => [Ht, "full", ...$()];
2643
2671
  return {
2644
2672
  cacheSize: 500,
2645
2673
  theme: {
@@ -2658,7 +2686,7 @@ const X = (t) => {
2658
2686
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
2659
2687
  radius: [kt],
2660
2688
  shadow: [kt],
2661
- spacing: ["px", B],
2689
+ spacing: ["px", j],
2662
2690
  text: [kt],
2663
2691
  "text-shadow": [kt],
2664
2692
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -2685,7 +2713,7 @@ const X = (t) => {
2685
2713
  * @see https://tailwindcss.com/docs/columns
2686
2714
  */
2687
2715
  columns: [{
2688
- columns: [B, b, _, f]
2716
+ columns: [j, b, _, f]
2689
2717
  }],
2690
2718
  /**
2691
2719
  * Break After
@@ -2916,21 +2944,21 @@ const X = (t) => {
2916
2944
  * @see https://tailwindcss.com/docs/flex
2917
2945
  */
2918
2946
  flex: [{
2919
- flex: [B, Ht, "auto", "initial", "none", b]
2947
+ flex: [j, Ht, "auto", "initial", "none", b]
2920
2948
  }],
2921
2949
  /**
2922
2950
  * Flex Grow
2923
2951
  * @see https://tailwindcss.com/docs/flex-grow
2924
2952
  */
2925
2953
  grow: [{
2926
- grow: ["", B, _, b]
2954
+ grow: ["", j, _, b]
2927
2955
  }],
2928
2956
  /**
2929
2957
  * Flex Shrink
2930
2958
  * @see https://tailwindcss.com/docs/flex-shrink
2931
2959
  */
2932
2960
  shrink: [{
2933
- shrink: ["", B, _, b]
2961
+ shrink: ["", j, _, b]
2934
2962
  }],
2935
2963
  /**
2936
2964
  * Order
@@ -3407,7 +3435,7 @@ const X = (t) => {
3407
3435
  * @see https://tailwindcss.com/docs/line-clamp
3408
3436
  */
3409
3437
  "line-clamp": [{
3410
- "line-clamp": [B, "none", _, ge]
3438
+ "line-clamp": [j, "none", _, ge]
3411
3439
  }],
3412
3440
  /**
3413
3441
  * Line Height
@@ -3480,7 +3508,7 @@ const X = (t) => {
3480
3508
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3481
3509
  */
3482
3510
  "text-decoration-thickness": [{
3483
- decoration: [B, "from-font", "auto", _, Tt]
3511
+ decoration: [j, "from-font", "auto", _, Tt]
3484
3512
  }],
3485
3513
  /**
3486
3514
  * Text Decoration Color
@@ -3494,7 +3522,7 @@ const X = (t) => {
3494
3522
  * @see https://tailwindcss.com/docs/text-underline-offset
3495
3523
  */
3496
3524
  "underline-offset": [{
3497
- "underline-offset": [B, "auto", _, b]
3525
+ "underline-offset": [j, "auto", _, b]
3498
3526
  }],
3499
3527
  /**
3500
3528
  * Text Transform
@@ -3960,14 +3988,14 @@ const X = (t) => {
3960
3988
  * @see https://tailwindcss.com/docs/outline-offset
3961
3989
  */
3962
3990
  "outline-offset": [{
3963
- "outline-offset": [B, _, b]
3991
+ "outline-offset": [j, _, b]
3964
3992
  }],
3965
3993
  /**
3966
3994
  * Outline Width
3967
3995
  * @see https://tailwindcss.com/docs/outline-width
3968
3996
  */
3969
3997
  "outline-w": [{
3970
- outline: ["", B, Wt, Tt]
3998
+ outline: ["", j, Wt, Tt]
3971
3999
  }],
3972
4000
  /**
3973
4001
  * Outline Color
@@ -4042,7 +4070,7 @@ const X = (t) => {
4042
4070
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4043
4071
  */
4044
4072
  "ring-offset-w": [{
4045
- "ring-offset": [B, Tt]
4073
+ "ring-offset": [j, Tt]
4046
4074
  }],
4047
4075
  /**
4048
4076
  * Ring Offset Color
@@ -4086,7 +4114,7 @@ const X = (t) => {
4086
4114
  * @see https://tailwindcss.com/docs/opacity
4087
4115
  */
4088
4116
  opacity: [{
4089
- opacity: [B, _, b]
4117
+ opacity: [j, _, b]
4090
4118
  }],
4091
4119
  /**
4092
4120
  * Mix Blend Mode
@@ -4121,7 +4149,7 @@ const X = (t) => {
4121
4149
  * @see https://tailwindcss.com/docs/mask-image
4122
4150
  */
4123
4151
  "mask-image-linear-pos": [{
4124
- "mask-linear": [B]
4152
+ "mask-linear": [j]
4125
4153
  }],
4126
4154
  "mask-image-linear-from-pos": [{
4127
4155
  "mask-linear-from": R()
@@ -4235,7 +4263,7 @@ const X = (t) => {
4235
4263
  "mask-radial-at": J()
4236
4264
  }],
4237
4265
  "mask-image-conic-pos": [{
4238
- "mask-conic": [B]
4266
+ "mask-conic": [j]
4239
4267
  }],
4240
4268
  "mask-image-conic-from-pos": [{
4241
4269
  "mask-conic-from": R()
@@ -4326,14 +4354,14 @@ const X = (t) => {
4326
4354
  * @see https://tailwindcss.com/docs/brightness
4327
4355
  */
4328
4356
  brightness: [{
4329
- brightness: [B, _, b]
4357
+ brightness: [j, _, b]
4330
4358
  }],
4331
4359
  /**
4332
4360
  * Contrast
4333
4361
  * @see https://tailwindcss.com/docs/contrast
4334
4362
  */
4335
4363
  contrast: [{
4336
- contrast: [B, _, b]
4364
+ contrast: [j, _, b]
4337
4365
  }],
4338
4366
  /**
4339
4367
  * Drop Shadow
@@ -4344,7 +4372,7 @@ const X = (t) => {
4344
4372
  // Deprecated since Tailwind CSS v4.0.0
4345
4373
  "",
4346
4374
  "none",
4347
- A,
4375
+ B,
4348
4376
  ee,
4349
4377
  te
4350
4378
  ]
@@ -4361,35 +4389,35 @@ const X = (t) => {
4361
4389
  * @see https://tailwindcss.com/docs/grayscale
4362
4390
  */
4363
4391
  grayscale: [{
4364
- grayscale: ["", B, _, b]
4392
+ grayscale: ["", j, _, b]
4365
4393
  }],
4366
4394
  /**
4367
4395
  * Hue Rotate
4368
4396
  * @see https://tailwindcss.com/docs/hue-rotate
4369
4397
  */
4370
4398
  "hue-rotate": [{
4371
- "hue-rotate": [B, _, b]
4399
+ "hue-rotate": [j, _, b]
4372
4400
  }],
4373
4401
  /**
4374
4402
  * Invert
4375
4403
  * @see https://tailwindcss.com/docs/invert
4376
4404
  */
4377
4405
  invert: [{
4378
- invert: ["", B, _, b]
4406
+ invert: ["", j, _, b]
4379
4407
  }],
4380
4408
  /**
4381
4409
  * Saturate
4382
4410
  * @see https://tailwindcss.com/docs/saturate
4383
4411
  */
4384
4412
  saturate: [{
4385
- saturate: [B, _, b]
4413
+ saturate: [j, _, b]
4386
4414
  }],
4387
4415
  /**
4388
4416
  * Sepia
4389
4417
  * @see https://tailwindcss.com/docs/sepia
4390
4418
  */
4391
4419
  sepia: [{
4392
- sepia: ["", B, _, b]
4420
+ sepia: ["", j, _, b]
4393
4421
  }],
4394
4422
  /**
4395
4423
  * Backdrop Filter
@@ -4416,56 +4444,56 @@ const X = (t) => {
4416
4444
  * @see https://tailwindcss.com/docs/backdrop-brightness
4417
4445
  */
4418
4446
  "backdrop-brightness": [{
4419
- "backdrop-brightness": [B, _, b]
4447
+ "backdrop-brightness": [j, _, b]
4420
4448
  }],
4421
4449
  /**
4422
4450
  * Backdrop Contrast
4423
4451
  * @see https://tailwindcss.com/docs/backdrop-contrast
4424
4452
  */
4425
4453
  "backdrop-contrast": [{
4426
- "backdrop-contrast": [B, _, b]
4454
+ "backdrop-contrast": [j, _, b]
4427
4455
  }],
4428
4456
  /**
4429
4457
  * Backdrop Grayscale
4430
4458
  * @see https://tailwindcss.com/docs/backdrop-grayscale
4431
4459
  */
4432
4460
  "backdrop-grayscale": [{
4433
- "backdrop-grayscale": ["", B, _, b]
4461
+ "backdrop-grayscale": ["", j, _, b]
4434
4462
  }],
4435
4463
  /**
4436
4464
  * Backdrop Hue Rotate
4437
4465
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
4438
4466
  */
4439
4467
  "backdrop-hue-rotate": [{
4440
- "backdrop-hue-rotate": [B, _, b]
4468
+ "backdrop-hue-rotate": [j, _, b]
4441
4469
  }],
4442
4470
  /**
4443
4471
  * Backdrop Invert
4444
4472
  * @see https://tailwindcss.com/docs/backdrop-invert
4445
4473
  */
4446
4474
  "backdrop-invert": [{
4447
- "backdrop-invert": ["", B, _, b]
4475
+ "backdrop-invert": ["", j, _, b]
4448
4476
  }],
4449
4477
  /**
4450
4478
  * Backdrop Opacity
4451
4479
  * @see https://tailwindcss.com/docs/backdrop-opacity
4452
4480
  */
4453
4481
  "backdrop-opacity": [{
4454
- "backdrop-opacity": [B, _, b]
4482
+ "backdrop-opacity": [j, _, b]
4455
4483
  }],
4456
4484
  /**
4457
4485
  * Backdrop Saturate
4458
4486
  * @see https://tailwindcss.com/docs/backdrop-saturate
4459
4487
  */
4460
4488
  "backdrop-saturate": [{
4461
- "backdrop-saturate": [B, _, b]
4489
+ "backdrop-saturate": [j, _, b]
4462
4490
  }],
4463
4491
  /**
4464
4492
  * Backdrop Sepia
4465
4493
  * @see https://tailwindcss.com/docs/backdrop-sepia
4466
4494
  */
4467
4495
  "backdrop-sepia": [{
4468
- "backdrop-sepia": ["", B, _, b]
4496
+ "backdrop-sepia": ["", j, _, b]
4469
4497
  }],
4470
4498
  // --------------
4471
4499
  // --- Tables ---
@@ -4534,7 +4562,7 @@ const X = (t) => {
4534
4562
  * @see https://tailwindcss.com/docs/transition-duration
4535
4563
  */
4536
4564
  duration: [{
4537
- duration: [B, "initial", _, b]
4565
+ duration: [j, "initial", _, b]
4538
4566
  }],
4539
4567
  /**
4540
4568
  * Transition Timing Function
@@ -4548,7 +4576,7 @@ const X = (t) => {
4548
4576
  * @see https://tailwindcss.com/docs/transition-delay
4549
4577
  */
4550
4578
  delay: [{
4551
- delay: [B, _, b]
4579
+ delay: [j, _, b]
4552
4580
  }],
4553
4581
  /**
4554
4582
  * Animation
@@ -4992,7 +5020,7 @@ const X = (t) => {
4992
5020
  * @see https://tailwindcss.com/docs/stroke-width
4993
5021
  */
4994
5022
  "stroke-w": [{
4995
- stroke: [B, Wt, Tt, ge]
5023
+ stroke: [j, Wt, Tt, ge]
4996
5024
  }],
4997
5025
  /**
4998
5026
  * Stroke
@@ -5068,7 +5096,7 @@ const X = (t) => {
5068
5096
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
5069
5097
  };
5070
5098
  }, Ta = /* @__PURE__ */ ca(Sa);
5071
- function Bt(...t) {
5099
+ function jt(...t) {
5072
5100
  return Ta(Xr(t));
5073
5101
  }
5074
5102
  function Ia({ className: t, ...e }) {
@@ -5081,7 +5109,7 @@ function Ia({ className: t, ...e }) {
5081
5109
  "table",
5082
5110
  {
5083
5111
  "data-slot": "table",
5084
- className: Bt("w-full caption-bottom", t),
5112
+ className: jt("w-full caption-bottom", t),
5085
5113
  ...e
5086
5114
  }
5087
5115
  )
@@ -5093,27 +5121,27 @@ function Ea({ className: t, ...e }) {
5093
5121
  "thead",
5094
5122
  {
5095
5123
  "data-slot": "table-header",
5096
- className: Bt("[&_tr]:border-b", t),
5124
+ className: jt("[&_tr]:border-b", t),
5097
5125
  ...e
5098
5126
  }
5099
5127
  );
5100
5128
  }
5101
- function ja({ className: t, ...e }) {
5129
+ function Aa({ className: t, ...e }) {
5102
5130
  return /* @__PURE__ */ d(
5103
5131
  "tbody",
5104
5132
  {
5105
5133
  "data-slot": "table-body",
5106
- className: Bt("[&_tr:last-child]:border-0", t),
5134
+ className: jt("[&_tr:last-child]:border-0", t),
5107
5135
  ...e
5108
5136
  }
5109
5137
  );
5110
5138
  }
5111
- function Aa({ className: t, ...e }) {
5139
+ function Ba({ className: t, ...e }) {
5112
5140
  return /* @__PURE__ */ d(
5113
5141
  "tr",
5114
5142
  {
5115
5143
  "data-slot": "table-row",
5116
- className: Bt(
5144
+ className: jt(
5117
5145
  "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
5118
5146
  t
5119
5147
  ),
@@ -5121,12 +5149,12 @@ function Aa({ className: t, ...e }) {
5121
5149
  }
5122
5150
  );
5123
5151
  }
5124
- function Ba({ className: t, ...e }) {
5152
+ function ja({ className: t, ...e }) {
5125
5153
  return /* @__PURE__ */ d(
5126
5154
  "th",
5127
5155
  {
5128
5156
  "data-slot": "table-head",
5129
- className: Bt(
5157
+ className: jt(
5130
5158
  "text-left align-middle font-medium whitespace-nowrap",
5131
5159
  t
5132
5160
  ),
@@ -5138,7 +5166,7 @@ function za({ className: t, ...e }) {
5138
5166
  return /* @__PURE__ */ d(
5139
5167
  "td",
5140
5168
  {
5141
- className: Bt("whitespace-nowrap ", t),
5169
+ className: jt("whitespace-nowrap ", t),
5142
5170
  ...e
5143
5171
  }
5144
5172
  );
@@ -5151,7 +5179,7 @@ function Da({
5151
5179
  "caption",
5152
5180
  {
5153
5181
  "data-slot": "table-caption",
5154
- className: Bt("text-muted-foreground mt-4 text-sm", t),
5182
+ className: jt("text-muted-foreground mt-4 text-sm", t),
5155
5183
  ...e
5156
5184
  }
5157
5185
  );
@@ -5163,7 +5191,7 @@ const ui = (t) => /* @__PURE__ */ d(
5163
5191
  className: E(t.className)
5164
5192
  }
5165
5193
  ), mi = (t) => /* @__PURE__ */ d(
5166
- ja,
5194
+ Aa,
5167
5195
  {
5168
5196
  ...t,
5169
5197
  className: E(t.className, "custom-table-body")
@@ -5214,7 +5242,7 @@ const pi = (t) => /* @__PURE__ */ d(
5214
5242
  "custom-table-header"
5215
5243
  );
5216
5244
  return /* @__PURE__ */ d(
5217
- Ba,
5245
+ ja,
5218
5246
  {
5219
5247
  ...a,
5220
5248
  className: r,
@@ -5223,7 +5251,7 @@ const pi = (t) => /* @__PURE__ */ d(
5223
5251
  }
5224
5252
  );
5225
5253
  }, gi = (t) => /* @__PURE__ */ d(
5226
- Aa,
5254
+ Ba,
5227
5255
  {
5228
5256
  ...t,
5229
5257
  className: E(
@@ -5258,7 +5286,7 @@ const pi = (t) => /* @__PURE__ */ d(
5258
5286
  className: f,
5259
5287
  tooltipClassName: m
5260
5288
  }) => {
5261
- const [u, y] = Et(!1), [s, D] = Et(n), A = oe(null), M = oe(!1), P = oe(null), w = t !== void 0 ? t : u, L = r === "hover" || r === "both", et = r === "click" || r === "both", G = Eo(), J = be[`tooltip-position-${s}`] || "", F = E(be.tooltipWrapper, f), q = E(
5289
+ const [u, y] = Et(!1), [s, D] = Et(n), B = oe(null), M = oe(!1), P = oe(null), w = t !== void 0 ? t : u, L = r === "hover" || r === "both", et = r === "click" || r === "both", G = Eo(), J = be[`tooltip-position-${s}`] || "", F = E(be.tooltipWrapper, f), q = E(
5262
5290
  be.tooltip,
5263
5291
  J,
5264
5292
  m
@@ -5269,7 +5297,7 @@ const pi = (t) => /* @__PURE__ */ d(
5269
5297
  ref: P,
5270
5298
  className: F,
5271
5299
  onMouseEnter: () => {
5272
- !L || t !== void 0 || (A.current && clearTimeout(A.current), A.current = window.setTimeout(() => {
5300
+ !L || t !== void 0 || (B.current && clearTimeout(B.current), B.current = window.setTimeout(() => {
5273
5301
  if (n === "mostSpace" && P.current) {
5274
5302
  const T = P.current.getBoundingClientRect(), W = T.top, ot = window.innerHeight - T.bottom;
5275
5303
  D(ot >= W ? "below" : "above");
@@ -5279,7 +5307,7 @@ const pi = (t) => /* @__PURE__ */ d(
5279
5307
  }, o));
5280
5308
  },
5281
5309
  onMouseLeave: () => {
5282
- !L || t !== void 0 || (A.current && clearTimeout(A.current), A.current = window.setTimeout(() => {
5310
+ !L || t !== void 0 || (B.current && clearTimeout(B.current), B.current = window.setTimeout(() => {
5283
5311
  M.current || y(!1);
5284
5312
  }, 50));
5285
5313
  },
@@ -5376,7 +5404,7 @@ const pi = (t) => /* @__PURE__ */ d(
5376
5404
  defaultValue: y,
5377
5405
  rows: s = 4,
5378
5406
  ...D
5379
- }, A) => {
5407
+ }, B) => {
5380
5408
  const M = u !== void 0, [P, w] = Et(
5381
5409
  (y == null ? void 0 : y.toString()) || ""
5382
5410
  );
@@ -5400,7 +5428,7 @@ const pi = (t) => /* @__PURE__ */ d(
5400
5428
  children: /* @__PURE__ */ d(
5401
5429
  "textarea",
5402
5430
  {
5403
- ref: A,
5431
+ ref: B,
5404
5432
  className: E(pt.input, f),
5405
5433
  disabled: r,
5406
5434
  readOnly: l,
@@ -5423,7 +5451,7 @@ export {
5423
5451
  ei as Collapse,
5424
5452
  oi as CourseCollapse,
5425
5453
  ni as CustomToaster,
5426
- At as Empty,
5454
+ Bt as Empty,
5427
5455
  Me as FormItem,
5428
5456
  se as IconButton,
5429
5457
  Ce as InlineError,