sy-ui-lib 1.0.53 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as z4 from "react";
2
- import O, { createContext as c5, useContext as d5, useCallback as g1, useRef as t1, useLayoutEffect as a4, useState as $, useEffect as J, useMemo as H2, memo as a9, Children as u5, createElement as L3 } from "react";
2
+ import O, { createContext as c5, useContext as d5, useCallback as g1, useRef as t1, useLayoutEffect as a4, useState as $, useEffect as Q, useMemo as H2, memo as a9, Children as u5, createElement as L3 } from "react";
3
3
  import { createPortal as C9 } from "react-dom";
4
4
  function c9(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -3034,7 +3034,7 @@ function l0(e, n) {
3034
3034
  // initialMonth is always computed from props.month if provided
3035
3035
  e.month ? o : void 0
3036
3036
  );
3037
- J(() => {
3037
+ Q(() => {
3038
3038
  const b = F3(e, r, s, n);
3039
3039
  C(b);
3040
3040
  }, [e.timeZone]);
@@ -3287,18 +3287,18 @@ function g0(e) {
3287
3287
  to: n.selected.to ? P1(n.selected.to, r) : n.selected.to
3288
3288
  }), n.disabled !== void 0 && (n.disabled = b4(n.disabled, r)), n.hidden !== void 0 && (n.hidden = b4(n.hidden, r)), n.modifiers)) {
3289
3289
  const U = {};
3290
- Object.keys(n.modifiers).forEach((Q) => {
3290
+ Object.keys(n.modifiers).forEach((J) => {
3291
3291
  var T;
3292
- U[Q] = b4((T = n.modifiers) == null ? void 0 : T[Q], r);
3292
+ U[J] = b4((T = n.modifiers) == null ? void 0 : T[J], r);
3293
3293
  }), n.modifiers = U;
3294
3294
  }
3295
3295
  const { components: s, formatters: i, labels: l, dateLib: o, locale: a, classNames: C } = H2(() => {
3296
- const U = { ...b9, ...n.locale }, Q = n.broadcastCalendar ? 1 : n.weekStartsOn, T = n.noonSafe && n.timeZone ? U8(n.timeZone, {
3297
- weekStartsOn: Q,
3296
+ const U = { ...b9, ...n.locale }, J = n.broadcastCalendar ? 1 : n.weekStartsOn, T = n.noonSafe && n.timeZone ? U8(n.timeZone, {
3297
+ weekStartsOn: J,
3298
3298
  locale: U
3299
3299
  }) : void 0, e1 = n.dateLib && T ? { ...T, ...n.dateLib } : n.dateLib ?? T, b1 = new E1({
3300
3300
  locale: U,
3301
- weekStartsOn: Q,
3301
+ weekStartsOn: J,
3302
3302
  firstWeekContainsDate: n.firstWeekContainsDate,
3303
3303
  useAdditionalWeekYearTokens: n.useAdditionalWeekYearTokens,
3304
3304
  useAdditionalDayOfYearTokens: n.useAdditionalDayOfYearTokens,
@@ -3334,13 +3334,13 @@ function g0(e) {
3334
3334
  n1 && (H(n1), M == null || M(n1));
3335
3335
  }, [n1, H, M]), B1 = g1(() => {
3336
3336
  a1 && (H(a1), j == null || j(a1));
3337
- }, [H, a1, j]), E2 = g1((U, Q) => (T) => {
3338
- T.preventDefault(), T.stopPropagation(), p1(U), !Q.disabled && (A == null || A(U.date, Q, T), p == null || p(U.date, Q, T));
3339
- }, [A, p, p1]), r1 = g1((U, Q) => (T) => {
3340
- p1(U), x == null || x(U.date, Q, T);
3341
- }, [x, p1]), f1 = g1((U, Q) => (T) => {
3342
- R(), h == null || h(U.date, Q, T);
3343
- }, [R, h]), F1 = g1((U, Q) => (T) => {
3337
+ }, [H, a1, j]), E2 = g1((U, J) => (T) => {
3338
+ T.preventDefault(), T.stopPropagation(), p1(U), !J.disabled && (A == null || A(U.date, J, T), p == null || p(U.date, J, T));
3339
+ }, [A, p, p1]), r1 = g1((U, J) => (T) => {
3340
+ p1(U), x == null || x(U.date, J, T);
3341
+ }, [x, p1]), f1 = g1((U, J) => (T) => {
3342
+ R(), h == null || h(U.date, J, T);
3343
+ }, [R, h]), F1 = g1((U, J) => (T) => {
3344
3344
  const e1 = {
3345
3345
  ArrowLeft: [
3346
3346
  T.shiftKey ? "month" : "day",
@@ -3362,16 +3362,16 @@ function g0(e) {
3362
3362
  const [b1, X] = e1[T.key];
3363
3363
  v1(b1, X);
3364
3364
  }
3365
- m == null || m(U.date, Q, T);
3366
- }, [v1, m, n.dir]), W1 = g1((U, Q) => (T) => {
3367
- g == null || g(U.date, Q, T);
3368
- }, [g]), j2 = g1((U, Q) => (T) => {
3369
- L == null || L(U.date, Q, T);
3370
- }, [L]), D2 = g1((U) => (Q) => {
3371
- const T = Number(Q.target.value), e1 = o.setMonth(o.startOfMonth(U), T);
3365
+ m == null || m(U.date, J, T);
3366
+ }, [v1, m, n.dir]), W1 = g1((U, J) => (T) => {
3367
+ g == null || g(U.date, J, T);
3368
+ }, [g]), j2 = g1((U, J) => (T) => {
3369
+ L == null || L(U.date, J, T);
3370
+ }, [L]), D2 = g1((U) => (J) => {
3371
+ const T = Number(J.target.value), e1 = o.setMonth(o.startOfMonth(U), T);
3372
3372
  H(e1);
3373
- }, [o, H]), L2 = g1((U) => (Q) => {
3374
- const T = Number(Q.target.value), e1 = o.setYear(o.startOfMonth(U), T);
3373
+ }, [o, H]), L2 = g1((U) => (J) => {
3374
+ const T = Number(J.target.value), e1 = o.setYear(o.startOfMonth(U), T);
3375
3375
  H(e1);
3376
3376
  }, [o, H]), { className: N, style: q } = H2(() => ({
3377
3377
  className: [C[B.Root], n.className].filter(Boolean).join(" "),
@@ -3409,23 +3409,23 @@ function g0(e) {
3409
3409
  s.Months,
3410
3410
  { className: C[B.Months], style: v == null ? void 0 : v[B.Months] },
3411
3411
  !n.hideNavigation && !f && O.createElement(s.Nav, { "data-animated-nav": n.animate ? "true" : void 0, className: C[B.Nav], style: v == null ? void 0 : v[B.Nav], "aria-label": R1(), onPreviousClick: u2, onNextClick: B1, previousMonth: n1, nextMonth: a1 }),
3412
- K.map((U, Q) => O.createElement(
3412
+ K.map((U, J) => O.createElement(
3413
3413
  s.Month,
3414
3414
  {
3415
3415
  "data-animated-month": n.animate ? "true" : void 0,
3416
3416
  className: C[B.Month],
3417
3417
  style: v == null ? void 0 : v[B.Month],
3418
3418
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
3419
- key: Q,
3420
- displayIndex: Q,
3419
+ key: J,
3420
+ displayIndex: J,
3421
3421
  calendarMonth: U
3422
3422
  },
3423
- f === "around" && !n.hideNavigation && Q === 0 && O.createElement(
3423
+ f === "around" && !n.hideNavigation && J === 0 && O.createElement(
3424
3424
  s.PreviousMonthButton,
3425
3425
  { type: "button", className: C[B.PreviousMonthButton], tabIndex: n1 ? void 0 : -1, "aria-disabled": n1 ? void 0 : !0, "aria-label": _2(n1), onClick: u2, "data-animated-button": n.animate ? "true" : void 0 },
3426
3426
  O.createElement(s.Chevron, { disabled: n1 ? void 0 : !0, className: C[B.Chevron], orientation: n.dir === "rtl" ? "right" : "left" })
3427
3427
  ),
3428
- O.createElement(s.MonthCaption, { "data-animated-caption": n.animate ? "true" : void 0, className: C[B.MonthCaption], style: v == null ? void 0 : v[B.MonthCaption], calendarMonth: U, displayIndex: Q }, c != null && c.startsWith("dropdown") ? O.createElement(
3428
+ O.createElement(s.MonthCaption, { "data-animated-caption": n.animate ? "true" : void 0, className: C[B.MonthCaption], style: v == null ? void 0 : v[B.MonthCaption], calendarMonth: U, displayIndex: J }, c != null && c.startsWith("dropdown") ? O.createElement(
3429
3429
  s.DropdownNav,
3430
3430
  { className: C[B.Dropdowns], style: v == null ? void 0 : v[B.Dropdowns] },
3431
3431
  (() => {
@@ -3445,12 +3445,12 @@ function g0(e) {
3445
3445
  wordWrap: "normal"
3446
3446
  } }, y(U.date, o.options, o))
3447
3447
  ) : O.createElement(s.CaptionLabel, { className: C[B.CaptionLabel], role: "status", "aria-live": "polite" }, y(U.date, o.options, o))),
3448
- f === "around" && !n.hideNavigation && Q === u - 1 && O.createElement(
3448
+ f === "around" && !n.hideNavigation && J === u - 1 && O.createElement(
3449
3449
  s.NextMonthButton,
3450
3450
  { type: "button", className: C[B.NextMonthButton], tabIndex: a1 ? void 0 : -1, "aria-disabled": a1 ? void 0 : !0, "aria-label": C2(a1), onClick: B1, "data-animated-button": n.animate ? "true" : void 0 },
3451
3451
  O.createElement(s.Chevron, { disabled: a1 ? void 0 : !0, className: C[B.Chevron], orientation: n.dir === "rtl" ? "left" : "right" })
3452
3452
  ),
3453
- Q === u - 1 && f === "after" && !n.hideNavigation && O.createElement(s.Nav, { "data-animated-nav": n.animate ? "true" : void 0, className: C[B.Nav], style: v == null ? void 0 : v[B.Nav], "aria-label": R1(), onPreviousClick: u2, onNextClick: B1, previousMonth: n1, nextMonth: a1 }),
3453
+ J === u - 1 && f === "after" && !n.hideNavigation && O.createElement(s.Nav, { "data-animated-nav": n.animate ? "true" : void 0, className: C[B.Nav], style: v == null ? void 0 : v[B.Nav], "aria-label": R1(), onPreviousClick: u2, onNextClick: B1, previousMonth: n1, nextMonth: a1 }),
3454
3454
  O.createElement(
3455
3455
  s.MonthGrid,
3456
3456
  { role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": C1(U.date, o.options, o) || void 0, className: C[B.MonthGrid], style: v == null ? void 0 : v[B.MonthGrid] },
@@ -3504,9 +3504,9 @@ const ut = ({
3504
3504
  ), m = t1(null), g = g1((V) => {
3505
3505
  m.current && !m.current.contains(V.target) && x(null);
3506
3506
  }, []);
3507
- J(() => (document.addEventListener("click", g), () => {
3507
+ Q(() => (document.addEventListener("click", g), () => {
3508
3508
  document.removeEventListener("click", g);
3509
- }), [g]), J(() => {
3509
+ }), [g]), Q(() => {
3510
3510
  if (!u) return;
3511
3511
  const V = /* @__PURE__ */ new Date();
3512
3512
  if (n === "single" && !r && (l == null || l(V)), n === "range") {
@@ -3546,7 +3546,7 @@ const ut = ({
3546
3546
  }
3547
3547
  return !1;
3548
3548
  };
3549
- J(() => {
3549
+ Q(() => {
3550
3550
  const V = () => {
3551
3551
  p && x(null);
3552
3552
  };
@@ -3665,7 +3665,7 @@ const ut = ({
3665
3665
  } = e, [C, c] = $(!1), d = t1(null), f = g1((b) => {
3666
3666
  d.current && !d.current.contains(b.target) && c(!1);
3667
3667
  }, []);
3668
- J(() => (document.addEventListener("mousedown", f), () => {
3668
+ Q(() => (document.addEventListener("mousedown", f), () => {
3669
3669
  document.removeEventListener("mousedown", f);
3670
3670
  }), [f]);
3671
3671
  const u = (b) => {
@@ -9957,7 +9957,7 @@ const ut = ({
9957
9957
  };
9958
9958
  function N1() {
9959
9959
  const [e, n] = $(window.innerWidth < 768);
9960
- return J(() => {
9960
+ return Q(() => {
9961
9961
  const r = () => {
9962
9962
  n(window.innerWidth < 768);
9963
9963
  };
@@ -9974,14 +9974,20 @@ const ht = (e) => {
9974
9974
  enableBackdropClick: o = !0,
9975
9975
  showCancelIcon: a = !0
9976
9976
  } = e, { isMobile: C } = N1();
9977
- J(() => {
9977
+ Q(() => {
9978
9978
  const h = (p) => {
9979
9979
  p.key === "Escape" && s();
9980
9980
  };
9981
9981
  return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
9982
- }, [s]);
9982
+ }, [s]), Q(() => {
9983
+ if (!n || typeof document > "u") return;
9984
+ const h = document.body.style.overflow, p = document.documentElement.style.overflow;
9985
+ return document.body.style.overflow = "hidden", document.documentElement.style.overflow = "hidden", () => {
9986
+ document.body.style.overflow = h, document.documentElement.style.overflow = p;
9987
+ };
9988
+ }, [n]);
9983
9989
  const c = "fixed inset-0 z-level-7 flex items-center justify-center bg-black/50", d = "bg-white shadow-lg rounded-2xl", f = "flex items-center justify-between gap-4 md:gap-8 bg-primary text-white rounded-t-2xl px-6 py-4", u = "flex justify-end gap-2 lg:gap-7 mx-6 mb-4";
9984
- return typeof window < "u" && (document.body.style.overflow = n ? "hidden" : ""), n ? /* @__PURE__ */ t.jsx(
9990
+ return n ? /* @__PURE__ */ t.jsx(
9985
9991
  "div",
9986
9992
  {
9987
9993
  className: c,
@@ -12588,7 +12594,7 @@ const ht = (e) => {
12588
12594
  }
12589
12595
  }) => {
12590
12596
  const [a, C] = $(""), [c, d] = $(""), [f, u] = $(!1), [h, p] = $(!1), [x, m] = $("none");
12591
- J(() => {
12597
+ Q(() => {
12592
12598
  const j = g(a, c);
12593
12599
  m(j), o == null || o(a, c, j === "success");
12594
12600
  }, [a, c, o]);
@@ -12680,7 +12686,7 @@ const ht = (e) => {
12680
12686
  defaultValue: o,
12681
12687
  ...a
12682
12688
  } = e, [C, c] = $(o ?? ""), d = `flex justify-between items-center gap-1 bg-white border border-brightgray rounded-lg ${k4[r].size} ${s ? "w-full" : k4[r].width}`, f = "w-full text-xs text-smokyblack font-normal leading-4 tracking-tight outline-none border-none focus:outline-none focus:border-none";
12683
- return J(() => {
12689
+ return Q(() => {
12684
12690
  const u = setTimeout(() => {
12685
12691
  i(C);
12686
12692
  }, l);
@@ -14656,9 +14662,9 @@ const r2 = (e, n = {}) => {
14656
14662
  getCoreRowModel: p7(),
14657
14663
  getPaginationRowModel: g7()
14658
14664
  });
14659
- J(() => {
14665
+ Q(() => {
14660
14666
  a(p);
14661
- }, [p, a]), J(() => {
14667
+ }, [p, a]), Q(() => {
14662
14668
  if (n) {
14663
14669
  const y = {};
14664
14670
  for (const k of n)
@@ -14771,7 +14777,7 @@ const r2 = (e, n = {}) => {
14771
14777
  title: l = "",
14772
14778
  layout: o = "landscape"
14773
14779
  } = e, { isMobile: a } = N1(), [C, c] = $(i), d = t1(null);
14774
- J(() => {
14780
+ Q(() => {
14775
14781
  const u = d.current;
14776
14782
  u && u.scrollIntoView({
14777
14783
  behavior: "auto",
@@ -14904,7 +14910,7 @@ const r2 = (e, n = {}) => {
14904
14910
  );
14905
14911
  }, Lt = (e) => {
14906
14912
  const { title: n = "", duration: r, onComplete: s } = e, [i, l] = $(r ?? null), [o, a] = $(!0);
14907
- return J(() => {
14913
+ return Q(() => {
14908
14914
  if (!r) return;
14909
14915
  if (i !== null && i <= 0) {
14910
14916
  a(!1), s == null || s();
@@ -14993,7 +14999,7 @@ const r2 = (e, n = {}) => {
14993
14999
  ), u = g1((y) => {
14994
15000
  d.current && !d.current.contains(y.target) && c(!1);
14995
15001
  }, []);
14996
- J(() => (document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u)), [u]);
15002
+ Q(() => (document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u)), [u]);
14997
15003
  const h = () => c((y) => !y), p = (y) => i.some((k) => k.value === y.value), x = (y) => {
14998
15004
  const k = a && y.value === "all", _ = f.filter(
14999
15005
  (Z) => Z.value !== "all"
@@ -15143,7 +15149,7 @@ const F4 = {
15143
15149
  type: i = "info",
15144
15150
  onClose: l
15145
15151
  } = e, { isMobile: o } = N1(), [a, C] = $(!1);
15146
- return J(() => {
15152
+ return Q(() => {
15147
15153
  const d = setTimeout(() => C(!0), 10), f = setTimeout(() => {
15148
15154
  C(!1), setTimeout(l, 300);
15149
15155
  }, r);
@@ -15203,7 +15209,7 @@ const F4 = {
15203
15209
  return ((e = crypto == null ? void 0 : crypto.randomUUID) == null ? void 0 : e.call(crypto)) || Math.random().toString(36).slice(2);
15204
15210
  }, Vt = () => {
15205
15211
  const [e, n] = $([]);
15206
- J(() => {
15212
+ Q(() => {
15207
15213
  y7((l) => {
15208
15214
  const o = { ...l, id: H7() };
15209
15215
  n((a) => [...a, o]);
@@ -15409,7 +15415,7 @@ const F4 = {
15409
15415
  scrollSpeed: r = 100,
15410
15416
  defaultTitle: s = "No upcoming events. Stay tuned!"
15411
15417
  } = e, i = t1(null), l = t1(null);
15412
- return J(() => {
15418
+ return Q(() => {
15413
15419
  const o = i.current, a = l.current;
15414
15420
  if (o && a) {
15415
15421
  o.style.cursor = "pointer";
@@ -15532,7 +15538,7 @@ const F4 = {
15532
15538
  "aria-expanded": f,
15533
15539
  "aria-controls": "user-bet-slip-panel",
15534
15540
  disabled: !d,
15535
- className: "w-full text-left disabled:cursor-default flex items-center justify-between gap-1 bg-primary rounded-t-lg px-2 py-2",
15541
+ className: `w-full text-left disabled:cursor-default flex items-center justify-between gap-1 bg-primary ${f ? "rounded-t-lg" : "rounded-lg"} px-2 py-2`,
15536
15542
  children: [
15537
15543
  /* @__PURE__ */ t.jsx(
15538
15544
  w,
@@ -15665,7 +15671,7 @@ const F4 = {
15665
15671
  const [a, C] = $(0), c = t1(null), [d, f] = $(!1), u = g1(() => {
15666
15672
  C((h) => h === e.length - 1 ? i ? 0 : h : h + 1);
15667
15673
  }, [e.length, i]);
15668
- return J(() => {
15674
+ return Q(() => {
15669
15675
  if (l && d) return;
15670
15676
  function h() {
15671
15677
  u(), c.current = setTimeout(h, s);
@@ -15741,13 +15747,13 @@ const F4 = {
15741
15747
  border: "border-watermelonRed"
15742
15748
  }
15743
15749
  }, x = ["Yes", "Back", "Even", "Odd"].includes(e) ? "Back" : "Lay", { primaryBg: m, secondaryBg: g, border: L } = h[x], [j, M] = $(l), [b, v] = $(o);
15744
- J(() => {
15750
+ Q(() => {
15745
15751
  M(l), v(o);
15746
15752
  }, [l, o]);
15747
15753
  const y = t1(u);
15748
- J(() => {
15754
+ Q(() => {
15749
15755
  y.current = u;
15750
- }, [u]), J(() => {
15756
+ }, [u]), Q(() => {
15751
15757
  y.current({ stake: j, odds: b });
15752
15758
  }, [j, b]);
15753
15759
  const k = (S) => /* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(w, { variant: "caption", text: S }) }, S), _ = (S) => {
@@ -15920,7 +15926,7 @@ const F4 = {
15920
15926
  md: "px-4 py-2.5",
15921
15927
  lg: "px-6 py-3.5"
15922
15928
  }, [m, g] = i.split("-"), [L, j] = $(!1), M = r4.find((Z) => Z.code === m) || r4[0], b = t1(null);
15923
- J(() => {
15929
+ Q(() => {
15924
15930
  const Z = (V) => {
15925
15931
  b.current && !b.current.contains(V.target) && j(!1);
15926
15932
  };
@@ -16512,13 +16518,13 @@ const F4 = {
16512
16518
  border: "border-peachyPink"
16513
16519
  }
16514
16520
  }, g = ["Yes", "Back", "Even", "Odd"].includes(r) ? "Back" : "Lay", { primaryBg: L, tertiaryBg: j, secondaryBg: M, border: b } = x[g], [v, y] = $(a), [k, _] = $(C);
16515
- J(() => {
16521
+ Q(() => {
16516
16522
  y(a), _(C);
16517
16523
  }, [a, C]);
16518
16524
  const S = t1(p);
16519
- J(() => {
16525
+ Q(() => {
16520
16526
  S.current = p;
16521
- }, [p]), J(() => {
16527
+ }, [p]), Q(() => {
16522
16528
  S.current({ stake: v, odds: k });
16523
16529
  }, [v, k]);
16524
16530
  const Z = (V) => {
@@ -16888,7 +16894,7 @@ const F4 = {
16888
16894
  acceptBestOdds: !(p || x)
16889
16895
  // If the chosen index is not the best available odds, set acceptBestOdds to true
16890
16896
  }, [g, L] = $(!1), j = t1(l == null ? void 0 : l.odds);
16891
- return J(() => {
16897
+ return Q(() => {
16892
16898
  if (j.current !== (l == null ? void 0 : l.odds)) {
16893
16899
  L(!0);
16894
16900
  const M = setTimeout(() => {
@@ -18491,7 +18497,7 @@ function Se(e) {
18491
18497
  }
18492
18498
  }
18493
18499
  }, [r, s, l, a]), p = u5.only(n);
18494
- J(function() {
18500
+ Q(function() {
18495
18501
  h();
18496
18502
  function m() {
18497
18503
  h();
@@ -18547,7 +18553,7 @@ function c4(e) {
18547
18553
  var n = s5(e), r = e.value || e.placeholder, s = Oe(r, n);
18548
18554
  return s === null ? null : (e.style.width = "".concat(s, "px"), s);
18549
18555
  }
18550
- var j3 = typeof document < "u", Ee = j3 ? a4 : J, De = j3 && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), Fe = j3 && /Firefox/.test(navigator.userAgent);
18556
+ var j3 = typeof document < "u", Ee = j3 ? a4 : Q, De = j3 && /(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent), Fe = j3 && /Firefox/.test(navigator.userAgent);
18551
18557
  function Pe(e) {
18552
18558
  var n = e.target;
18553
18559
  De ? requestAnimationFrame(function() {
@@ -18878,9 +18884,9 @@ function nt(e, n, r) {
18878
18884
  var o4 = Te({ useGrouping: !1 });
18879
18885
  function rt(e) {
18880
18886
  var n = e.amPmAriaLabel, r = e.autoFocus, s = e.className, i = e.disabled, l = e.format, o = e.hourAriaLabel, a = e.hourPlaceholder, C = e.isClockOpen, c = C === void 0 ? null : C, d = e.locale, f = e.maxDetail, u = f === void 0 ? "minute" : f, h = e.maxTime, p = e.minTime, x = e.minuteAriaLabel, m = e.minutePlaceholder, g = e.name, L = g === void 0 ? "time" : g, j = e.nativeInputAriaLabel, M = e.onChange, b = e.onInvalidChange, v = e.required, y = e.secondAriaLabel, k = e.secondPlaceholder, _ = e.value, S = $(null), Z = S[0], V = S[1], D = $(null), W = D[0], E = D[1], K = $(null), w1 = K[0], L1 = K[1], n1 = $(null), a1 = n1[0], H = n1[1], P = $(null), z = P[0], A = P[1], m1 = t1(null), R = t1(null), F = t1(null), u1 = t1(null), v1 = t1(null), p1 = $(c), I1 = p1[0], x1 = p1[1], C1 = t1(void 0);
18881
- J(function() {
18887
+ Q(function() {
18882
18888
  x1(c);
18883
- }, [c]), J(function() {
18889
+ }, [c]), Q(function() {
18884
18890
  var N = _;
18885
18891
  N ? (V(V2(Z1(N))[1]), E(Z1(N).toString()), L1(n2(N).toString()), H(g2(N).toString()), A(N)) : (V(null), E(null), L1(null), H(null), A(null));
18886
18892
  }, [
@@ -18946,7 +18952,7 @@ function rt(e) {
18946
18952
  if (s2) {
18947
18953
  var U = s1.value;
18948
18954
  if (Number(U) * 10 > Number(s2) || U.length >= s2.length) {
18949
- var Q = "nextElementSibling", T = o9(s1, Q);
18955
+ var J = "nextElementSibling", T = o9(s1, J);
18950
18956
  G4(T);
18951
18957
  }
18952
18958
  }
@@ -18982,9 +18988,9 @@ function rt(e) {
18982
18988
  return M1.validity.valid;
18983
18989
  });
18984
18990
  if (s2 && U) {
18985
- var Q = Number(c1.hour24 || c1.hour12 && c1.amPm && r9(c1.hour12, c1.amPm) || 0), T = Number(c1.minute || 0), e1 = Number(c1.second || 0), b1 = function(M1) {
18991
+ var J = Number(c1.hour24 || c1.hour12 && c1.amPm && r9(c1.hour12, c1.amPm) || 0), T = Number(c1.minute || 0), e1 = Number(c1.second || 0), b1 = function(M1) {
18986
18992
  return "0".concat(M1).slice(-2);
18987
- }, X = "".concat(b1(Q), ":").concat(b1(T), ":").concat(b1(e1)), g4 = _2(X);
18993
+ }, X = "".concat(b1(J), ":").concat(b1(T), ":").concat(b1(e1)), g4 = _2(X);
18988
18994
  M(g4, !1);
18989
18995
  return;
18990
18996
  }
@@ -19146,7 +19152,7 @@ var m2 = function() {
19146
19152
  }, lt = t.jsxs("svg", m2({}, a5, { className: "".concat(S1, "__clock-button__icon ").concat(S1, "__button__icon"), fill: "none", children: [t.jsx("circle", { cx: "9.5", cy: "9.5", r: "7.5" }), t.jsx("path", { d: "M9.5 4.5 v5 h4" })] })), ot = t.jsxs("svg", m2({}, a5, { className: "".concat(S1, "__clear-button__icon ").concat(S1, "__button__icon"), children: [t.jsx("line", { x1: "4", x2: "15", y1: "4", y2: "15" }), t.jsx("line", { x1: "15", x2: "4", y1: "4", y2: "15" })] }));
19147
19153
  function at(e) {
19148
19154
  var n = e.amPmAriaLabel, r = e.autoFocus, s = e.className, i = e.clearAriaLabel, l = e.clearIcon, o = l === void 0 ? ot : l, a = e.clockAriaLabel, C = e.clockIcon, c = C === void 0 ? lt : C, d = e.closeClock, f = d === void 0 ? !0 : d, u = e["data-testid"], h = e.hourAriaLabel, p = e.hourPlaceholder, x = e.disableClock, m = e.disabled, g = e.format, L = e.id, j = e.isOpen, M = j === void 0 ? null : j, b = e.locale, v = e.maxTime, y = e.maxDetail, k = y === void 0 ? "minute" : y, _ = e.minTime, S = e.minuteAriaLabel, Z = e.minutePlaceholder, V = e.name, D = V === void 0 ? "time" : V, W = e.nativeInputAriaLabel, E = e.onClockClose, K = e.onClockOpen, w1 = e.onChange, L1 = e.onFocus, n1 = e.onInvalidChange, a1 = e.openClockOnFocus, H = a1 === void 0 ? !0 : a1, P = e.required, z = e.value, A = e.secondAriaLabel, m1 = e.secondPlaceholder, R = e.shouldCloseClock, F = e.shouldOpenClock, u1 = st(e, ["amPmAriaLabel", "autoFocus", "className", "clearAriaLabel", "clearIcon", "clockAriaLabel", "clockIcon", "closeClock", "data-testid", "hourAriaLabel", "hourPlaceholder", "disableClock", "disabled", "format", "id", "isOpen", "locale", "maxTime", "maxDetail", "minTime", "minuteAriaLabel", "minutePlaceholder", "name", "nativeInputAriaLabel", "onClockClose", "onClockOpen", "onChange", "onFocus", "onInvalidChange", "openClockOnFocus", "required", "value", "secondAriaLabel", "secondPlaceholder", "shouldCloseClock", "shouldOpenClock"]), v1 = $(M), p1 = v1[0], I1 = v1[1], x1 = t1(null), C1 = t1(null);
19149
- J(function() {
19155
+ Q(function() {
19150
19156
  I1(M);
19151
19157
  }, [M]);
19152
19158
  function X1(r1) {
@@ -19184,7 +19190,7 @@ function at(e) {
19184
19190
  r1 ? document.addEventListener(f1, d2) : document.removeEventListener(f1, d2);
19185
19191
  }), r1 ? document.addEventListener("keydown", c2) : document.removeEventListener("keydown", c2);
19186
19192
  }, [p1, d2, c2]);
19187
- J(function() {
19193
+ Q(function() {
19188
19194
  return Q1(), function() {
19189
19195
  Q1(!1);
19190
19196
  };
@@ -19240,9 +19246,9 @@ const qt = (e) => {
19240
19246
  fullWidth: i,
19241
19247
  errorMessage: l = "Invalid time range. Start time must be earlier than end time."
19242
19248
  } = e, [o, a] = $(!1), [C, c] = $(null), [d, f] = $(null), [u, h] = $(n), [p, x] = $(!1), m = t1(null);
19243
- J(() => {
19249
+ Q(() => {
19244
19250
  c((s == null ? void 0 : s.from) ?? null), f((s == null ? void 0 : s.to) ?? null), !(s != null && s.from) && !(s != null && s.to) && h(n);
19245
- }, [s, n]), J(() => {
19251
+ }, [s, n]), Q(() => {
19246
19252
  const v = (y) => {
19247
19253
  m.current && !m.current.contains(y.target) && a(!1);
19248
19254
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sy-ui-lib",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",