@mt-gloss/ui 0.0.27 → 0.0.28

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,9 +1,9 @@
1
1
  import { jsxs as d, jsx as e, Fragment as je } from "react/jsx-runtime";
2
- import q, { useId as Le, useState as O, useCallback as S, createContext as Ut, useContext as Xt, useRef as se, useEffect as oe, useMemo as ee, useSyncExternalStore as as, useReducer as ss, forwardRef as os, useImperativeHandle as is } from "react";
2
+ import q, { useId as Le, useState as O, useCallback as S, createContext as Yt, useContext as Ut, useRef as se, useEffect as oe, useMemo as ee, useSyncExternalStore as as, useReducer as ss, forwardRef as os, useImperativeHandle as is } from "react";
3
3
  import { S as J, E as Xe, C as B, h as ls, R as Se, k as cs, l as ds, m as us, aj as ms, P as ps, s as fs, ac as gs, ak as ve, Q as hs, V as qn, W as Zn, X as bs, Y as ys, _ as vs, $ as _s, a0 as xs, a1 as Ns, a4 as Ss, a5 as Cs, a6 as ws, ab as ks, a7 as Ds, a8 as Is, O as Ts, N as Es, i as Ms, j as Ps, a2 as Bs, a3 as Rs, n as zs, t as As, y as $s, v as Fs, U as bt, z as Os, A as Ls, w as Hs, D as Ws, x as Gs, ah as Vs, ai as js, F as Ks, G as Ys, H as Us, I as Xs, J as qs, K as Zs, L as Js, M as Qs, c as he, ad as Ht, e as Jn, d as kt, g as qe, Z as Qn, B as eo, af as to, b as ea, T as Ae, ae as ro, ag as _n } from "./UIContext-C3E-k7HI.js";
4
- import { formatTrend as no, isStatusModeEnabled as ao, formatValue as lr, getValueFontSize as xn, getDateRangeForPreset as Ve, formatDateRangeSmart as mt, isInRange as so, isSameDay as er, formatMarketDates as oo, DEFAULT_MARKET_PRESETS as tr, isMarketActive as xt, detectPreset as rr, getDateRangeDisplayInfo as $t, toUppercasePresetId as nr, generateMarketId as io, ROLLING_OPTIONS as Nr, PERIOD_OPTIONS as Sr } from "@mt-gloss/utils";
4
+ import { formatTrend as no, isStatusModeEnabled as ao, formatValue as ir, getValueFontSize as xn, getDateRangeForPreset as Ve, formatDateRangeSmart as mt, isInRange as so, isSameDay as Qt, formatMarketDates as oo, DEFAULT_MARKET_PRESETS as er, isMarketActive as xt, detectPreset as tr, getDateRangeDisplayInfo as $t, toUppercasePresetId as rr, generateMarketId as io, ROLLING_OPTIONS as Nr, PERIOD_OPTIONS as Sr } from "@mt-gloss/utils";
5
5
  import { useGridApiRef as lo, DataGridPro as co } from "@mui/x-data-grid-pro";
6
- import { Chip as Wt, Tooltip as ft, MenuItem as Gt, Menu as uo, Box as ae, Popper as mo, Paper as po, MenuList as fo, ListItemText as go, IconButton as Ue, Select as Nn, Typography as Ie, Divider as ho, Button as rt, Collapse as bo, Popover as yo, Dialog as vo, DialogTitle as _o, DialogContent as xo, TextField as ar, DialogActions as No, Tabs as So, Tab as Co } from "@mui/material";
6
+ import { Chip as Wt, Tooltip as ft, MenuItem as Gt, Menu as uo, Box as ae, Popper as mo, Paper as po, MenuList as fo, ListItemText as go, IconButton as Ue, Select as Nn, Typography as Ie, Divider as ho, Button as rt, Collapse as bo, Popover as yo, Dialog as vo, DialogTitle as _o, DialogContent as xo, TextField as nr, DialogActions as No, Tabs as So, Tab as Co } from "@mui/material";
7
7
  import wo from "@mui/icons-material/Person";
8
8
  import ko from "@mui/icons-material/Business";
9
9
  import Do from "@mui/icons-material/BarChart";
@@ -24,7 +24,7 @@ import Lo from "@mui/icons-material/LocalOffer";
24
24
  import Ho from "@mui/icons-material/AttachMoney";
25
25
  import ta from "@mui/icons-material/OpenInNew";
26
26
  import Sn from "@mui/icons-material/CalendarToday";
27
- import cr from "@mui/icons-material/ExpandMore";
27
+ import lr from "@mui/icons-material/ExpandMore";
28
28
  import Br from "@mui/icons-material/Place";
29
29
  import Ft from "@mui/icons-material/Add";
30
30
  import Dt from "@mui/icons-material/Check";
@@ -238,9 +238,9 @@ const Di = {
238
238
  }
239
239
  );
240
240
  it.displayName = "PresetCheckbox";
241
- const la = Ut(null);
241
+ const la = Yt(null);
242
242
  function Ei() {
243
- return Xt(la);
243
+ return Ut(la);
244
244
  }
245
245
  function Mi({
246
246
  value: r,
@@ -335,7 +335,7 @@ const Bi = {
335
335
  }, zi = {
336
336
  trackBg: B.BgSurface,
337
337
  dotColor: B.BrandPrimary
338
- }, ur = q.forwardRef(
338
+ }, dr = q.forwardRef(
339
339
  (r, t) => {
340
340
  const {
341
341
  variant: n = "default",
@@ -387,10 +387,10 @@ const Bi = {
387
387
  ] });
388
388
  }
389
389
  );
390
- ur.displayName = "PresetRadio";
391
- const ca = Ut(null);
390
+ dr.displayName = "PresetRadio";
391
+ const ca = Yt(null);
392
392
  function Ai() {
393
- return Xt(ca);
393
+ return Ut(ca);
394
394
  }
395
395
  function $i({
396
396
  value: r,
@@ -434,7 +434,7 @@ function $i({
434
434
  m && /* @__PURE__ */ e("span", { className: "gloss-radio-group__required", children: " *" })
435
435
  ] }),
436
436
  /* @__PURE__ */ e("div", { className: "gloss-radio-group__items", role: "radiogroup", "aria-required": m, children: a ? a.map((k) => /* @__PURE__ */ e(
437
- ur,
437
+ dr,
438
438
  {
439
439
  name: f,
440
440
  value: String(k.value),
@@ -456,7 +456,7 @@ const Fi = q.forwardRef(
456
456
  ({ value: r, ...t }, n) => {
457
457
  const a = Ai();
458
458
  return a ? /* @__PURE__ */ e(
459
- ur,
459
+ dr,
460
460
  {
461
461
  ref: n,
462
462
  name: a.groupProps.name,
@@ -468,7 +468,7 @@ const Fi = q.forwardRef(
468
468
  disabled: a.groupProps.disabled || t.disabled,
469
469
  ...t
470
470
  }
471
- ) : /* @__PURE__ */ e(ur, { ref: n, value: r, name: "", ...t });
471
+ ) : /* @__PURE__ */ e(dr, { ref: n, value: r, name: "", ...t });
472
472
  }
473
473
  );
474
474
  Fi.displayName = "GroupRadio";
@@ -1355,7 +1355,7 @@ const yl = [
1355
1355
  "#000000",
1356
1356
  "#6b7280",
1357
1357
  "#ffffff"
1358
- ], sr = (r) => {
1358
+ ], ar = (r) => {
1359
1359
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
1360
1360
  return t ? { r: parseInt(t[1], 16), g: parseInt(t[2], 16), b: parseInt(t[3], 16) } : null;
1361
1361
  }, fa = (r, t, n) => `#${[r, t, n].map((a) => a.toString(16).padStart(2, "0")).join("")}`, vl = (r, t, n) => {
@@ -1396,19 +1396,19 @@ const yl = [
1396
1396
  helperText: p,
1397
1397
  id: f,
1398
1398
  name: y
1399
- } = r, b = Le(), _ = f || b, v = se(null), [h, C] = O(!1), [T, w] = O(s), k = a !== void 0, I = k ? a : T, g = sr(I) || { r: 59, g: 130, b: 246 }, E = S((L, P, H) => {
1399
+ } = r, b = Le(), _ = f || b, v = se(null), [h, C] = O(!1), [T, w] = O(s), k = a !== void 0, I = k ? a : T, g = ar(I) || { r: 59, g: 130, b: 246 }, E = S((L, P, H) => {
1400
1400
  const Y = Pn(L, P, H, o);
1401
1401
  k || w(Y), i?.(Y);
1402
1402
  }, [o, k, i]), x = S((L) => {
1403
- const P = sr(L);
1403
+ const P = ar(L);
1404
1404
  P && E(P.r, P.g, P.b);
1405
1405
  }, [E]), D = S((L) => {
1406
- const P = sr(L.target.value);
1406
+ const P = ar(L.target.value);
1407
1407
  P && E(P.r, P.g, P.b);
1408
1408
  }, [E]), N = S((L) => {
1409
1409
  const P = L.target.value;
1410
1410
  k || w(P);
1411
- const H = sr(P);
1411
+ const H = ar(P);
1412
1412
  H && i?.(Pn(H.r, H.g, H.b, o));
1413
1413
  }, [o, k, i]);
1414
1414
  oe(() => {
@@ -1986,7 +1986,7 @@ function It(r) {
1986
1986
  return /* @__PURE__ */ e(zs, { definition: m, className: p, children: l });
1987
1987
  }
1988
1988
  It.displayName = "PresetSelect";
1989
- const Ul = Ut("md"), Xl = {
1989
+ const Ul = Yt("md"), Xl = {
1990
1990
  elevated: {
1991
1991
  bg: B.BgSurface,
1992
1992
  border: "none",
@@ -2583,9 +2583,9 @@ function Cc({ children: r }) {
2583
2583
  return /* @__PURE__ */ e("div", { className: "gloss-preset-transition-group", children: r });
2584
2584
  }
2585
2585
  Cc.displayName = "TransitionGroup";
2586
- const va = Ut(null);
2586
+ const va = Yt(null);
2587
2587
  function wc() {
2588
- const r = Xt(va);
2588
+ const r = Ut(va);
2589
2589
  if (!r)
2590
2590
  throw new Error("useFormContext must be used within a Form component");
2591
2591
  return r;
@@ -2754,7 +2754,7 @@ const _a = q.memo(({
2754
2754
  );
2755
2755
  });
2756
2756
  _a.displayName = "FilterChip";
2757
- const dr = q.memo(({
2757
+ const cr = q.memo(({
2758
2758
  group: r,
2759
2759
  activeId: t,
2760
2760
  onSelect: n,
@@ -2865,7 +2865,7 @@ const dr = q.memo(({
2865
2865
  }
2866
2866
  );
2867
2867
  });
2868
- dr.displayName = "TabGroup";
2868
+ cr.displayName = "TabGroup";
2869
2869
  const Ic = (r) => {
2870
2870
  switch (r.variant) {
2871
2871
  case "block": {
@@ -3164,7 +3164,7 @@ const Rn = {
3164
3164
  );
3165
3165
  };
3166
3166
  Ar.displayName = "TrendIndicator";
3167
- const Kt = ({ data: r, color: t, isStale: n }) => {
3167
+ const fr = ({ data: r, color: t, isStale: n }) => {
3168
3168
  const s = "sparkbg-" + Le().replace(/:/g, ""), i = t || "#4f46e5", o = ee(() => {
3169
3169
  if (!r || r.length < 2) return null;
3170
3170
  const c = 300, l = 55, u = 2, m = Math.min(...r), f = Math.max(...r) - m || 1, b = r.map((v, h) => ({
@@ -3182,9 +3182,20 @@ const Kt = ({ data: r, color: t, isStale: n }) => {
3182
3182
  preserveAspectRatio: "none",
3183
3183
  style: {
3184
3184
  position: "absolute",
3185
- bottom: 0,
3186
- left: 0,
3187
- right: 0,
3185
+ // quick-260418-k7k-fix-1 (post-mortem of k7k regression):
3186
+ // CardShell's FRONT-face BaseBox has padding 10px 12px 8px. Absolute
3187
+ // children position against the PADDING-BOX edges, so the previous
3188
+ // left:0 / right:0 / bottom:0 anchored SparklineBg 12px inside the
3189
+ // card left/right and 8px above the card bottom — leaving the
3190
+ // "gap to card edge" users saw. Negative offsets here cancel the
3191
+ // BaseBox padding exactly, so SparklineBg reaches CardShell's
3192
+ // outer edges uniformly across ALL consumers (1×1 MetricCard,
3193
+ // StackedGroupCard, StatusModeCard). This replaces the k7k wrapper
3194
+ // approach, which interfered with SparklineBg's own positioning
3195
+ // by introducing a new containing block.
3196
+ bottom: -8,
3197
+ left: -12,
3198
+ right: -12,
3188
3199
  zIndex: 1,
3189
3200
  display: "block",
3190
3201
  pointerEvents: "none",
@@ -3214,7 +3225,7 @@ const Kt = ({ data: r, color: t, isStale: n }) => {
3214
3225
  }
3215
3226
  ) : null;
3216
3227
  };
3217
- Kt.displayName = "SparklineBg";
3228
+ fr.displayName = "SparklineBg";
3218
3229
  const xa = ({ data: r, color: t, isStale: n }) => {
3219
3230
  const a = t || "#4f46e5", s = ee(() => {
3220
3231
  if (!r || r.length < 1) return null;
@@ -3450,7 +3461,7 @@ function wa(r) {
3450
3461
  children: [
3451
3462
  /* @__PURE__ */ e("span", { className: "gloss-metric-card__label", children: l.label }),
3452
3463
  /* @__PURE__ */ e("span", { children: String(l.value) }),
3453
- m != null && m.length > 0 ? /* @__PURE__ */ e(Kt, { data: [...m], color: l.accentColor }) : null
3464
+ m != null && m.length > 0 ? /* @__PURE__ */ e(fr, { data: [...m], color: l.accentColor }) : null
3454
3465
  ]
3455
3466
  },
3456
3467
  l.id
@@ -3533,7 +3544,7 @@ const Ir = {
3533
3544
  colSpan: l = 1,
3534
3545
  isStale: u,
3535
3546
  thresholdBreach: m = "none"
3536
- } = t, p = n === "sparkline" || n === "bars" || n === "donut" ? t.accentColor ?? "#4f46e5" : "#4f46e5", f = n === "highlight" ? t.highlightColor : void 0, y = n === "sparkline" ? t.sparklineData : void 0, b = n === "bars" ? t.barData : void 0, _ = n === "donut" ? t.donutValue : 0, v = n === "donut" ? t.donutMax ?? 100 : 100, h = n === "object-arrow" ? t.objectArrowValue : 0, C = n === "object-arrow" ? t.objectArrowMax : 100, T = n === "arrow" ? t.arrowDirection : void 0, w = n === "versus" ? t.versusData : void 0, k = n === "segmented" ? t.segments : void 0, I = (f ? Bc[f] : void 0) || f, g = ee(() => lr(s, {
3547
+ } = t, p = n === "sparkline" || n === "bars" || n === "donut" ? t.accentColor ?? "#4f46e5" : "#4f46e5", f = n === "highlight" ? t.highlightColor : void 0, y = n === "sparkline" ? t.sparklineData : void 0, b = n === "bars" ? t.barData : void 0, _ = n === "donut" ? t.donutValue : 0, v = n === "donut" ? t.donutMax ?? 100 : 100, h = n === "object-arrow" ? t.objectArrowValue : 0, C = n === "object-arrow" ? t.objectArrowMax : 100, T = n === "arrow" ? t.arrowDirection : void 0, w = n === "versus" ? t.versusData : void 0, k = n === "segmented" ? t.segments : void 0, I = (f ? Bc[f] : void 0) || f, g = ee(() => ir(s, {
3537
3548
  prefix: i?.prefix || "",
3538
3549
  suffix: i?.suffix || "",
3539
3550
  abbreviated: i?.abbreviated
@@ -3583,11 +3594,11 @@ const Ir = {
3583
3594
  );
3584
3595
  }, H = () => {
3585
3596
  if (!w) return null;
3586
- const M = lr(w.current, {
3597
+ const M = ir(w.current, {
3587
3598
  prefix: i?.prefix || "",
3588
3599
  suffix: i?.suffix || "",
3589
3600
  abbreviated: i?.abbreviated
3590
- }), W = lr(w.prior, {
3601
+ }), W = ir(w.prior, {
3591
3602
  prefix: i?.prefix || "",
3592
3603
  suffix: i?.suffix || "",
3593
3604
  abbreviated: i?.abbreviated
@@ -3720,22 +3731,7 @@ const Ir = {
3720
3731
  }
3721
3732
  }
3722
3733
  ),
3723
- n === "sparkline" && /* @__PURE__ */ e(
3724
- "div",
3725
- {
3726
- "aria-hidden": "true",
3727
- style: {
3728
- position: "absolute",
3729
- top: -10,
3730
- left: -12,
3731
- bottom: -8,
3732
- right: -12,
3733
- zIndex: 1,
3734
- pointerEvents: "none"
3735
- },
3736
- children: /* @__PURE__ */ e(Kt, { data: y, color: p, isStale: u })
3737
- }
3738
- ),
3734
+ n === "sparkline" && /* @__PURE__ */ e(fr, { data: y, color: p, isStale: u }),
3739
3735
  n === "bars" && /* @__PURE__ */ e(xa, { data: b, color: p, isStale: u }),
3740
3736
  /* @__PURE__ */ e(
3741
3737
  he,
@@ -3953,12 +3949,12 @@ const Ke = {
3953
3949
  // UI-SPEC §Motion Prescription: prefers-reduced-motion target duration
3954
3950
  REDUCED_MOTION_MS: 10
3955
3951
  };
3956
- function Yt(r, t) {
3952
+ function Kt(r, t) {
3957
3953
  return (t ? Ke.REDUCED_MOTION_MS : r) / 1e3;
3958
3954
  }
3959
3955
  function Oc(r) {
3960
3956
  const t = {
3961
- duration: Yt(Ke.BORDER_RADIUS_MS, r),
3957
+ duration: Kt(Ke.BORDER_RADIUS_MS, r),
3962
3958
  ease: "easeOut"
3963
3959
  };
3964
3960
  return {
@@ -3979,7 +3975,7 @@ function Lc(r) {
3979
3975
  scaleY: 1,
3980
3976
  y: 0,
3981
3977
  transition: {
3982
- duration: Yt(Ke.MENU_OPEN_MS, r),
3978
+ duration: Kt(Ke.MENU_OPEN_MS, r),
3983
3979
  ease: "easeOut"
3984
3980
  }
3985
3981
  },
@@ -3987,7 +3983,7 @@ function Lc(r) {
3987
3983
  opacity: 0,
3988
3984
  scaleY: 0.9,
3989
3985
  transition: {
3990
- duration: Yt(Ke.MENU_CLOSE_MS, r),
3986
+ duration: Kt(Ke.MENU_CLOSE_MS, r),
3991
3987
  ease: "easeIn"
3992
3988
  }
3993
3989
  }
@@ -4000,7 +3996,7 @@ function Hc(r) {
4000
3996
  opacity: 1,
4001
3997
  scale: 1,
4002
3998
  transition: {
4003
- duration: Yt(Ke.ICON_INGRESS_MS, r),
3999
+ duration: Kt(Ke.ICON_INGRESS_MS, r),
4004
4000
  ease: "easeOut"
4005
4001
  }
4006
4002
  },
@@ -4008,7 +4004,7 @@ function Hc(r) {
4008
4004
  opacity: 0,
4009
4005
  scale: 0.9,
4010
4006
  transition: {
4011
- duration: Yt(Ke.ICON_EGRESS_MS, r),
4007
+ duration: Kt(Ke.ICON_EGRESS_MS, r),
4012
4008
  ease: "easeIn"
4013
4009
  }
4014
4010
  }
@@ -4877,7 +4873,7 @@ const sd = function(t) {
4877
4873
  },
4878
4874
  [x, g]
4879
4875
  ), N = !!y || !!v, R = !!b || !!v, z = se(null), { capacity: L } = Ca(z), P = f != null ? ad(f) : L, H = ee(() => o.map((M, W) => {
4880
- const j = i.find((K) => K.timeframe === M) || i[W], G = j?.value ?? null, $ = lr(G, { prefix: a, suffix: s, abbreviated: !0 });
4876
+ const j = i.find((K) => K.timeframe === M) || i[W], G = j?.value ?? null, $ = ir(G, { prefix: a, suffix: s, abbreviated: !0 });
4881
4877
  return {
4882
4878
  timeframe: M,
4883
4879
  formatted: $,
@@ -4993,26 +4989,13 @@ const sd = function(t) {
4993
4989
  })
4994
4990
  }
4995
4991
  ),
4996
- V && V.length >= 2 && (_ === "bleed" ? /* @__PURE__ */ e(
4997
- "div",
4998
- {
4999
- "aria-hidden": "true",
5000
- style: {
5001
- position: "absolute",
5002
- // These negative offsets match CardShell's default inner
5003
- // padding (10px 12px 8px per Phase 10.5 polish). If a consumer
5004
- // overrides CardShell padding, the visual may slightly offset —
5005
- // acceptable because the sparkline is a background affordance.
5006
- top: -10,
5007
- left: -12,
5008
- bottom: -8,
5009
- right: -12,
5010
- zIndex: 1,
5011
- pointerEvents: "none"
5012
- },
5013
- children: /* @__PURE__ */ e(Kt, { data: V, color: l, isStale: p })
5014
- }
5015
- ) : /* @__PURE__ */ e(Kt, { data: V, color: l, isStale: p }))
4992
+ V && V.length >= 2 && /* k7k-fix-1 post-mortem: SparklineBg's own inline styles now bleed
4993
+ to CardShell's outer edges uniformly (see SparklineBg.tsx). The
4994
+ sparklineInset='bleed' prop is now a no-op — the wrapper branch
4995
+ was introducing a new containing block that interfered with
4996
+ SparklineBg's own positioning. Retaining the prop signature
4997
+ for back-compat (consumers still pass it in reptime). */
4998
+ /* @__PURE__ */ e(fr, { data: V, color: l, isStale: p })
5016
4999
  ]
5017
5000
  }
5018
5001
  )
@@ -5104,7 +5087,7 @@ function ld(r) {
5104
5087
  setOpenSection: l
5105
5088
  };
5106
5089
  }
5107
- const gr = Ut(null);
5090
+ const gr = Yt(null);
5108
5091
  gr.displayName = "FlipAndStageContext";
5109
5092
  function Qm({ children: r }) {
5110
5093
  const t = ld(), n = ee(
@@ -5127,13 +5110,13 @@ function Qm({ children: r }) {
5127
5110
  return /* @__PURE__ */ e(gr.Provider, { value: n, children: r });
5128
5111
  }
5129
5112
  function ep() {
5130
- const r = Xt(gr);
5113
+ const r = Ut(gr);
5131
5114
  if (r === null)
5132
5115
  throw new Error("useFlipAndStageContext must be inside FlipAndStageProvider");
5133
5116
  return r;
5134
5117
  }
5135
5118
  function cd() {
5136
- return Xt(gr);
5119
+ return Ut(gr);
5137
5120
  }
5138
5121
  const dd = {
5139
5122
  /** Delay before flip animation begins (ms). */
@@ -5530,7 +5513,7 @@ const Ia = q.memo(({
5530
5513
  datePickerSlot: _
5531
5514
  }) => /* @__PURE__ */ d(kt, { definition: { direction: "horizontal", align: "center" }, className: "gloss-chart-control-bar__row-1", children: [
5532
5515
  /* @__PURE__ */ e(he, { style: { marginRight: 10 }, children: /* @__PURE__ */ e(
5533
- dr,
5516
+ cr,
5534
5517
  {
5535
5518
  group: t,
5536
5519
  activeId: r.metric,
@@ -5539,7 +5522,7 @@ const Ia = q.memo(({
5539
5522
  }
5540
5523
  ) }),
5541
5524
  /* @__PURE__ */ e(he, { style: { marginRight: 6 }, children: /* @__PURE__ */ e(
5542
- dr,
5525
+ cr,
5543
5526
  {
5544
5527
  group: n,
5545
5528
  activeId: r.entity,
@@ -5551,7 +5534,7 @@ const Ia = q.memo(({
5551
5534
  }
5552
5535
  ) }),
5553
5536
  b && /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(
5554
- dr,
5537
+ cr,
5555
5538
  {
5556
5539
  group: a,
5557
5540
  activeId: r.dimension,
@@ -5865,7 +5848,7 @@ const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5865
5848
  ) })
5866
5849
  ] }) }));
5867
5850
  Ta.displayName = "Row2FilterTray";
5868
- const or = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", wd = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", kd = "0.25s cubic-bezier(0.4, 0, 1, 1)", Hr = q.memo(({
5851
+ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", wd = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", kd = "0.25s cubic-bezier(0.4, 0, 1, 1)", Hr = q.memo(({
5869
5852
  pillLeft: r,
5870
5853
  pillWidth: t,
5871
5854
  pillTop: n,
@@ -5893,7 +5876,7 @@ const or = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5893
5876
  height: l ? o - n + 1 : a,
5894
5877
  background: "#fff",
5895
5878
  borderRadius: l ? "8px 8px 0 0" : "8px",
5896
- transition: `${or}, height ${l ? wd : kd}, border-radius 0.15s ease`
5879
+ transition: `${sr}, height ${l ? wd : kd}, border-radius 0.15s ease`
5897
5880
  } }),
5898
5881
  l && /* @__PURE__ */ e("div", { style: {
5899
5882
  position: "absolute",
@@ -5903,7 +5886,7 @@ const or = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5903
5886
  height: c,
5904
5887
  background: "#fff",
5905
5888
  borderRadius: `${y ? 8 : 0}px ${b ? 8 : 0}px 8px 8px`,
5906
- transition: or
5889
+ transition: sr
5907
5890
  } }),
5908
5891
  l && /* @__PURE__ */ e("div", { style: {
5909
5892
  position: "absolute",
@@ -5913,7 +5896,7 @@ const or = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5913
5896
  height: 8,
5914
5897
  background: "#fff",
5915
5898
  opacity: y ? 1 : 0,
5916
- transition: `${or}, opacity 0.15s ease`,
5899
+ transition: `${sr}, opacity 0.15s ease`,
5917
5900
  WebkitMaskImage: `radial-gradient(circle 8px at 0% 0%, transparent ${8 - 0.5}px, black ${8 + 0.5}px)`,
5918
5901
  maskImage: `radial-gradient(circle 8px at 0% 0%, transparent ${8 - 0.5}px, black ${8 + 0.5}px)`
5919
5902
  } }),
@@ -5925,7 +5908,7 @@ const or = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5925
5908
  height: 8,
5926
5909
  background: "#fff",
5927
5910
  opacity: b ? 1 : 0,
5928
- transition: `${or}, opacity 0.15s ease`,
5911
+ transition: `${sr}, opacity 0.15s ease`,
5929
5912
  WebkitMaskImage: `radial-gradient(circle 8px at 100% 0%, transparent ${8 - 0.5}px, black ${8 + 0.5}px)`,
5930
5913
  maskImage: `radial-gradient(circle 8px at 100% 0%, transparent ${8 - 0.5}px, black ${8 + 0.5}px)`
5931
5914
  } })
@@ -6807,7 +6790,7 @@ const Wr = ({
6807
6790
  label: y?.label,
6808
6791
  onClick: C,
6809
6792
  deleteIcon: /* @__PURE__ */ e(
6810
- cr,
6793
+ lr,
6811
6794
  {
6812
6795
  sx: {
6813
6796
  transform: m ? "rotate(180deg)" : "none",
@@ -7015,14 +6998,14 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7015
6998
  if (!r) return !1;
7016
6999
  const K = v || t;
7017
7000
  return K ? so($, r, K) : !1;
7018
- }, [r, t, v]), P = S(($) => !$ || !r ? !1 : er($, r), [r]), H = S(($) => {
7001
+ }, [r, t, v]), P = S(($) => !$ || !r ? !1 : Qt($, r), [r]), H = S(($) => {
7019
7002
  if (!$) return !1;
7020
7003
  const K = v || t;
7021
- return K ? er($, K) : !1;
7004
+ return K ? Qt($, K) : !1;
7022
7005
  }, [t, v]), Y = S(($) => {
7023
7006
  if (!$ || !r) return !1;
7024
7007
  const K = v || t;
7025
- return K ? er(r, K) && P($) : P($);
7008
+ return K ? Qt(r, K) && P($) : P($);
7026
7009
  }, [r, t, v, P]), V = S(($) => $ ? !!(p && $ > p) : !1, [p]), M = S(($) => {
7027
7010
  const K = new Date(T, w, $);
7028
7011
  b ? (C.current = !0, r && K < r ? n(K, r) : n(r, K), _(!1), h(null)) : (C.current = !0, n(K, null), _(!0));
@@ -7044,7 +7027,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7044
7027
  );
7045
7028
  const K = /* @__PURE__ */ new Date();
7046
7029
  for (let Z = 1; Z <= k; Z++) {
7047
- const U = new Date(T, w, Z), X = L(U), te = P(U), pe = H(U), ce = Y(U), be = V(U), de = R(U), ne = er(U, K), ge = ["mini-calendar__day"];
7030
+ const U = new Date(T, w, Z), X = L(U), te = P(U), pe = H(U), ce = Y(U), be = V(U), de = R(U), ne = Qt(U, K), ge = ["mini-calendar__day"];
7048
7031
  be ? (ge.push("mini-calendar__day--disabled"), pe ? ge.push("mini-calendar__day--disabled-end") : X && ge.push("mini-calendar__day--disabled-in-range"), de && ge.push("mini-calendar__day--market")) : (ce ? ge.push("mini-calendar__day--single") : te ? ge.push("mini-calendar__day--start") : pe ? ge.push("mini-calendar__day--end") : X && ge.push("mini-calendar__day--in-range"), (ce || te || pe || X) && (u === "secondary" ? ge.push("mini-calendar__day--secondary") : u === "tertiary" && ge.push("mini-calendar__day--tertiary")), ne && !te && !pe && !ce && ge.push("mini-calendar__day--today"), de && ge.push("mini-calendar__day--market"));
7049
7032
  const Me = /* @__PURE__ */ e(
7050
7033
  ae,
@@ -7327,14 +7310,14 @@ const Od = {
7327
7310
  }), [u]), C = se(null), [T, w] = O(null), [k, I] = O("calendar"), [g, E] = O(null), [x, D] = O(null), N = se(null), [R, z] = O(() => h.lastPreset || "mtd"), [L, P] = O(null), [H, Y] = O(null), [V, M] = O(null), [W, j] = O(null), [G, $] = O(null), [K, Z] = O(() => n ? _ ?? h.compareEnabled ?? !1 : !1), U = _ ?? K, X = S((A) => {
7328
7311
  Z(A), v?.(A);
7329
7312
  }, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de, ne] = O(null), [ge, Me] = O(null), [Ce, we] = O(null), [Ye, Te] = O(null), [me, _e] = O(null), [Ge, Ne] = O(null), [ie, xe] = O(null), [Fe, He] = O(null), [ke, Be] = O(null), [yt, Re] = O(null), [lt, Ze] = O(null), [Pe, vt] = O(1), [rn, ct] = O(!1), [Wa, Ga] = O(void 0), ze = V !== null ? V : R, Tt = V !== null ? W : L, dt = V !== null ? G : H, st = Ce !== null ? Ce : ce, Et = Ce !== null ? Ye : de, Mt = Ce !== null ? me : ge, ot = ke !== null ? ke : Ge, Pt = ke !== null ? yt : ie, Bt = ke !== null ? lt : Fe, nn = V !== null && (V !== R || W !== L || G !== H), [fe, hr] = O(() => {
7330
- const A = p || tr, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7313
+ const A = p || er, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7331
7314
  ...ue,
7332
7315
  active: xt(ue)
7333
7316
  }));
7334
7317
  return [...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime());
7335
7318
  });
7336
7319
  oe(() => {
7337
- const A = p || tr, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7320
+ const A = p || er, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7338
7321
  ...ue,
7339
7322
  active: xt(ue)
7340
7323
  }));
@@ -7352,8 +7335,8 @@ const Od = {
7352
7335
  return fe.forEach((re) => {
7353
7336
  re.startDate > A ? Q.push(re) : F.push(re);
7354
7337
  }), { pastAndCurrentEvents: F, futureEvents: Q };
7355
- }, [fe]), { defaultMarketEvents: an, customRanges: sn, futureDefaultEvents: Zt, futureCustomRanges: on } = ee(() => {
7356
- const A = p || tr, F = new Set(A.map((Q) => Q.id));
7338
+ }, [fe]), { defaultMarketEvents: an, customRanges: sn, futureDefaultEvents: qt, futureCustomRanges: on } = ee(() => {
7339
+ const A = p || er, F = new Set(A.map((Q) => Q.id));
7357
7340
  return {
7358
7341
  defaultMarketEvents: br.filter((Q) => !Q.isCustom && F.has(Q.id)),
7359
7342
  customRanges: br.filter((Q) => Q.isCustom || !F.has(Q.id)),
@@ -7392,7 +7375,7 @@ const Od = {
7392
7375
  $e.setHours(0, 0, 0, 0), F.getTime() === ue.getTime() && Q.getTime() === $e.getTime() && (re = h.lastPreset);
7393
7376
  }
7394
7377
  if (!re) {
7395
- const le = rr(et.start, et.end, A, fe);
7378
+ const le = tr(et.start, et.end, A, fe);
7396
7379
  re = le ? le.id : null;
7397
7380
  }
7398
7381
  re ? (z(re), P(null), Y(null)) : (z("custom"), P(et.start), Y(et.end)), M(null), j(null), $(null);
@@ -7488,8 +7471,8 @@ const Od = {
7488
7471
  M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(Ge), Re(ie), Ze(Fe))), w(A.currentTarget);
7489
7472
  }, [R, L, H, U, Pe, ce, de, ge, Ge, ie, Fe]), dn = S((A, F, Q) => {
7490
7473
  const re = [A, F];
7491
- Q && (re.shortcutId = nr(Q)), t(re);
7492
- }, [t]), Jt = S((A, F, Q) => {
7474
+ Q && (re.shortcutId = rr(Q)), t(re);
7475
+ }, [t]), Zt = S((A, F, Q) => {
7493
7476
  if (A === "custom" && F && Q)
7494
7477
  return [F, Q];
7495
7478
  const re = fe.find(($e) => $e.id === A);
@@ -7499,22 +7482,22 @@ const Od = {
7499
7482
  return [le, ue];
7500
7483
  }, [fe]), tt = S((A) => {
7501
7484
  m && m({ ...h, ...A });
7502
- }, [m, h]), Qt = S(() => {
7485
+ }, [m, h]), Jt = S(() => {
7503
7486
  if (V === null) return;
7504
7487
  z(V), P(W), Y(G);
7505
- const A = Jt(V, W, G);
7488
+ const A = Zt(V, W, G);
7506
7489
  if (U && Pe >= 2 && Ce !== null) {
7507
7490
  be(Ce), ne(Ye), Me(me);
7508
- const F = Jt(Ce, Ye, me), Q = {
7491
+ const F = Zt(Ce, Ye, me), Q = {
7509
7492
  rangeA: A,
7510
7493
  rangeB: F,
7511
- shortcutId: nr(V),
7512
- shortcutIdB: nr(Ce)
7494
+ shortcutId: rr(V),
7495
+ shortcutIdB: rr(Ce)
7513
7496
  };
7514
7497
  if (Pe >= 3 && ke !== null) {
7515
7498
  Ne(ke), xe(yt), He(lt);
7516
- const re = Jt(ke, yt, lt);
7517
- Q.rangeC = re, Q.shortcutIdC = nr(ke), tt({
7499
+ const re = Zt(ke, yt, lt);
7500
+ Q.rangeC = re, Q.shortcutIdC = rr(ke), tt({
7518
7501
  lastPreset: V,
7519
7502
  compareEnabled: !0,
7520
7503
  rangeCount: Pe,
@@ -7538,9 +7521,9 @@ const Od = {
7538
7521
  lastPresetB: null,
7539
7522
  lastPresetC: null
7540
7523
  }), dn(A[0], A[1], V);
7541
- }, [V, W, G, U, Pe, Ce, Ye, me, ke, yt, lt, Jt, t, dn, tt]), Ua = S(() => {
7542
- o || (nn && Qt(), M(null), j(null), $(null), we(null), Te(null), _e(null), Be(null), Re(null), Ze(null), D(null), w(null));
7543
- }, [o, nn, Qt]), un = S(() => {
7524
+ }, [V, W, G, U, Pe, Ce, Ye, me, ke, yt, lt, Zt, t, dn, tt]), Ua = S(() => {
7525
+ o || (nn && Jt(), M(null), j(null), $(null), we(null), Te(null), _e(null), Be(null), Re(null), Ze(null), D(null), w(null));
7526
+ }, [o, nn, Jt]), un = S(() => {
7544
7527
  o || (M(null), j(null), $(null), we(null), Te(null), _e(null), Be(null), Re(null), Ze(null), D(null), w(null));
7545
7528
  }, [o]), mn = S(() => {
7546
7529
  if (Pe >= 3) return;
@@ -7570,20 +7553,20 @@ const Od = {
7570
7553
  if (U && te === "C")
7571
7554
  if (Re(A), F) {
7572
7555
  Ze(F);
7573
- const Q = rr(A, F, /* @__PURE__ */ new Date(), fe);
7556
+ const Q = tr(A, F, /* @__PURE__ */ new Date(), fe);
7574
7557
  Q ? (Be(Q.id), Re(null), Ze(null)) : Be("custom");
7575
7558
  } else
7576
7559
  Be("custom"), Ze(null);
7577
7560
  else if (U && te === "B")
7578
7561
  if (Te(A), F) {
7579
7562
  _e(F);
7580
- const Q = rr(A, F, /* @__PURE__ */ new Date(), fe);
7563
+ const Q = tr(A, F, /* @__PURE__ */ new Date(), fe);
7581
7564
  Q ? (we(Q.id), Te(null), _e(null)) : we("custom");
7582
7565
  } else
7583
7566
  we("custom"), _e(null);
7584
7567
  else if (j(A), F) {
7585
7568
  $(F);
7586
- const Q = rr(A, F, /* @__PURE__ */ new Date(), fe);
7569
+ const Q = tr(A, F, /* @__PURE__ */ new Date(), fe);
7587
7570
  Q ? (M(Q.id), j(null), $(null)) : M("custom");
7588
7571
  } else
7589
7572
  M("custom"), $(null);
@@ -7594,8 +7577,8 @@ const Od = {
7594
7577
  D(null);
7595
7578
  }, 150);
7596
7579
  }, []), hn = S(() => {
7597
- Qt(), M(null), j(null), $(null), w(null);
7598
- }, [Qt]), Za = S(() => {
7580
+ Jt(), M(null), j(null), $(null), w(null);
7581
+ }, [Jt]), Za = S(() => {
7599
7582
  let A;
7600
7583
  if (ze === "custom" && dt)
7601
7584
  A = dt;
@@ -7643,7 +7626,7 @@ const Od = {
7643
7626
  return;
7644
7627
  }
7645
7628
  g.isCustom && b?.(g.id);
7646
- const A = p || tr;
7629
+ const A = p || er;
7647
7630
  hr((F) => {
7648
7631
  const Q = F.filter((le) => le.id !== g.id), re = A.find((le) => le.id === g.id);
7649
7632
  return re && !g.isCustom ? [...Q, { ...re, active: xt(re) }].sort((le, ue) => le.startDate.getTime() - ue.startDate.getTime()) : Q;
@@ -7725,7 +7708,7 @@ const Od = {
7725
7708
  size: "small",
7726
7709
  startIcon: /* @__PURE__ */ e(Sn, { sx: { fontSize: 14, color: ut ? "white" : "rgba(79, 70, 229, 1)" } }),
7727
7710
  endIcon: /* @__PURE__ */ e(
7728
- cr,
7711
+ lr,
7729
7712
  {
7730
7713
  sx: {
7731
7714
  fontSize: 16,
@@ -7978,7 +7961,7 @@ const Od = {
7978
7961
  },
7979
7962
  F.id
7980
7963
  )),
7981
- Zt.length > 0 && /* @__PURE__ */ d(je, { children: [
7964
+ qt.length > 0 && /* @__PURE__ */ d(je, { children: [
7982
7965
  /* @__PURE__ */ e(
7983
7966
  rt,
7984
7967
  {
@@ -7986,7 +7969,7 @@ const Od = {
7986
7969
  size: "small",
7987
7970
  onClick: () => Va(!Rt),
7988
7971
  endIcon: /* @__PURE__ */ e(
7989
- cr,
7972
+ lr,
7990
7973
  {
7991
7974
  sx: {
7992
7975
  transform: Rt ? "rotate(180deg)" : "none",
@@ -8005,10 +7988,10 @@ const Od = {
8005
7988
  bgcolor: "action.hover"
8006
7989
  }
8007
7990
  },
8008
- children: Rt ? "Hide Upcoming Events" : `Show ${Zt.length} Upcoming Event${Zt.length > 1 ? "s" : ""}`
7991
+ children: Rt ? "Hide Upcoming Events" : `Show ${qt.length} Upcoming Event${qt.length > 1 ? "s" : ""}`
8009
7992
  }
8010
7993
  ),
8011
- Rt && Zt.map((F) => /* @__PURE__ */ e(
7994
+ Rt && qt.map((F) => /* @__PURE__ */ e(
8012
7995
  Ot,
8013
7996
  {
8014
7997
  preset: F,
@@ -8083,7 +8066,7 @@ const Od = {
8083
8066
  children: [
8084
8067
  /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8085
8068
  /* @__PURE__ */ e(
8086
- cr,
8069
+ lr,
8087
8070
  {
8088
8071
  className: `hybrid-date-picker__footer-drawer-trigger-icon ${rn ? "hybrid-date-picker__footer-drawer-trigger-icon--expanded" : ""}`,
8089
8072
  sx: { fontSize: 18, color: "text.secondary" }
@@ -8380,7 +8363,7 @@ const Od = {
8380
8363
  /* @__PURE__ */ d(ae, { className: "market-edit-modal__field", children: [
8381
8364
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Name" }),
8382
8365
  /* @__PURE__ */ e(
8383
- ar,
8366
+ nr,
8384
8367
  {
8385
8368
  fullWidth: !0,
8386
8369
  size: "small",
@@ -8395,7 +8378,7 @@ const Od = {
8395
8378
  /* @__PURE__ */ d(ae, { children: [
8396
8379
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Start Date" }),
8397
8380
  /* @__PURE__ */ e(
8398
- ar,
8381
+ nr,
8399
8382
  {
8400
8383
  fullWidth: !0,
8401
8384
  size: "small",
@@ -8409,7 +8392,7 @@ const Od = {
8409
8392
  /* @__PURE__ */ d(ae, { children: [
8410
8393
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "End Date" }),
8411
8394
  /* @__PURE__ */ e(
8412
- ar,
8395
+ nr,
8413
8396
  {
8414
8397
  fullWidth: !0,
8415
8398
  size: "small",
@@ -8424,7 +8407,7 @@ const Od = {
8424
8407
  /* @__PURE__ */ d(ae, { className: "market-edit-modal__field", sx: { mt: 2 }, children: [
8425
8408
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Location" }),
8426
8409
  /* @__PURE__ */ e(
8427
- ar,
8410
+ nr,
8428
8411
  {
8429
8412
  fullWidth: !0,
8430
8413
  size: "small",
@@ -8647,7 +8630,7 @@ const Mr = [
8647
8630
  a
8648
8631
  ] })
8649
8632
  ] }) });
8650
- }, ir = (r) => r && typeof r == "object" && "rangeA" in r, Hd = ({
8633
+ }, or = (r) => r && typeof r == "object" && "rangeA" in r, Hd = ({
8651
8634
  value: r,
8652
8635
  onChange: t,
8653
8636
  preferences: n,
@@ -8664,7 +8647,7 @@ const Mr = [
8664
8647
  activePresetId: y,
8665
8648
  onPresetChange: b
8666
8649
  }) => {
8667
- const _ = o !== void 0, [v, h] = O(!1), [C, T] = O(!1), [w, k] = O(i ?? !1), I = n?.pinnedPreset || "MTD", [g, E] = O(() => n?.lastPreset?.toUpperCase() || "MTD"), [x, D] = O(null), N = ee(() => ir(r) ? r.rangeA : r, [r]), R = ee(() => ir(r) ? r.rangeB : null, [r]), z = S((G) => {
8650
+ const _ = o !== void 0, [v, h] = O(!1), [C, T] = O(!1), [w, k] = O(i ?? !1), I = n?.pinnedPreset || "MTD", [g, E] = O(() => n?.lastPreset?.toUpperCase() || "MTD"), [x, D] = O(null), N = ee(() => or(r) ? r.rangeA : r, [r]), R = ee(() => or(r) ? r.rangeB : null, [r]), z = S((G) => {
8668
8651
  const $ = G || "MTD";
8669
8652
  a && n && a({ ...n, pinnedPreset: $.toLowerCase() });
8670
8653
  const K = Mr.find((Z) => Z.id === $ && !Z.disabled);
@@ -8679,7 +8662,7 @@ const Mr = [
8679
8662
  }
8680
8663
  }, [w, R, t, a, n]);
8681
8664
  oe(() => {
8682
- _ && k(ir(r));
8665
+ _ && k(or(r));
8683
8666
  }, [_, r]), oe(() => {
8684
8667
  i !== void 0 && k(i);
8685
8668
  }, [i]);
@@ -8792,7 +8775,7 @@ const Mr = [
8792
8775
  }
8793
8776
  }), [R, Y, M, x]);
8794
8777
  if (f === "simple-selector") {
8795
- const G = ir(r) ? r.rangeA : r;
8778
+ const G = or(r) ? r.rangeA : r;
8796
8779
  return /* @__PURE__ */ e(
8797
8780
  Ma,
8798
8781
  {
@@ -9808,7 +9791,7 @@ const lu = [
9808
9791
  if (!r) return "weak";
9809
9792
  const a = t.filter((s) => s.validate(r)).length / t.length;
9810
9793
  return a < 0.4 ? "weak" : a < 0.6 ? "fair" : a < 0.8 ? "good" : "strong";
9811
- }, mr = q.forwardRef(
9794
+ }, ur = q.forwardRef(
9812
9795
  ({
9813
9796
  showToggle: r = !0,
9814
9797
  showStrength: t = !1,
@@ -9945,7 +9928,7 @@ const lu = [
9945
9928
  ] });
9946
9929
  }
9947
9930
  );
9948
- mr.displayName = "PasswordInput";
9931
+ ur.displayName = "PasswordInput";
9949
9932
  const uu = q.forwardRef(
9950
9933
  ({
9951
9934
  value: r,
@@ -11567,7 +11550,7 @@ function op({
11567
11550
  )
11568
11551
  ] }),
11569
11552
  /* @__PURE__ */ e(
11570
- mr,
11553
+ ur,
11571
11554
  {
11572
11555
  showToggle: !0,
11573
11556
  placeholder: "Enter your password",
@@ -11914,7 +11897,7 @@ const zu = (r) => {
11914
11897
  a && (i *= 2, i > 9 && (i -= 9)), n += i, a = !a;
11915
11898
  }
11916
11899
  return n % 10 === 0;
11917
- }, pr = ye.object({
11900
+ }, mr = ye.object({
11918
11901
  cardNumber: ye.string().min(13, "Card number is too short").refine((r) => zu(r), "Invalid card number"),
11919
11902
  expiryDate: ye.string().regex(/^(0[1-9]|1[0-2])\s?\/\s?\d{2}$/, "Invalid expiry date (MM/YY)").refine((r) => {
11920
11903
  const [t, n] = r.split("/").map((i) => parseInt(i.trim(), 10)), a = /* @__PURE__ */ new Date();
@@ -12010,7 +11993,7 @@ function cp({
12010
11993
  cardholderName: m.cardholderName ?? ""
12011
11994
  }), [h, C] = O({}), [T, w] = O({}), k = ee(() => a ? `${n} ${a}` : n, [n, a]), I = S((N, R) => {
12012
11995
  try {
12013
- pr.shape[N].parse(R), C((L) => ({ ...L, [N]: void 0 }));
11996
+ mr.shape[N].parse(R), C((L) => ({ ...L, [N]: void 0 }));
12014
11997
  } catch (z) {
12015
11998
  z instanceof ye.ZodError && C((L) => ({ ...L, [N]: z.issues[0]?.message }));
12016
11999
  }
@@ -12030,7 +12013,7 @@ function cp({
12030
12013
  f(new FormData(N.currentTarget));
12031
12014
  return;
12032
12015
  }
12033
- const R = pr.safeParse(_);
12016
+ const R = mr.safeParse(_);
12034
12017
  if (!R.success) {
12035
12018
  const z = {};
12036
12019
  R.error.issues.forEach((L) => {
@@ -12355,7 +12338,7 @@ function up({
12355
12338
  /* @__PURE__ */ d("div", { className: "gloss-registration-form__field", children: [
12356
12339
  /* @__PURE__ */ e("label", { className: "gloss-registration-form__label", children: "Password" }),
12357
12340
  /* @__PURE__ */ e(
12358
- mr,
12341
+ ur,
12359
12342
  {
12360
12343
  showToggle: !0,
12361
12344
  showStrength: !0,
@@ -12375,7 +12358,7 @@ function up({
12375
12358
  /* @__PURE__ */ d("div", { className: "gloss-registration-form__field", children: [
12376
12359
  /* @__PURE__ */ e("label", { className: "gloss-registration-form__label", children: "Confirm Password" }),
12377
12360
  /* @__PURE__ */ e(
12378
- mr,
12361
+ ur,
12379
12362
  {
12380
12363
  showToggle: !0,
12381
12364
  placeholder: "Confirm your password",
@@ -12627,7 +12610,7 @@ function pp({
12627
12610
  }
12628
12611
  const Au = ye.object({
12629
12612
  paymentMethod: ye.enum(["credit_card", "debit_card", "bank_transfer"]),
12630
- card: pr.optional(),
12613
+ card: mr.optional(),
12631
12614
  billingAddress: Gr,
12632
12615
  savePaymentMethod: ye.boolean().optional()
12633
12616
  }).refine(
@@ -12699,7 +12682,7 @@ function gp({
12699
12682
  s.savePaymentMethod ?? !1
12700
12683
  ), [w, k] = O(), I = se(null), g = m === "credit_card" || m === "debit_card", E = S((z, L) => {
12701
12684
  try {
12702
- pr.shape[z].parse(L), _((H) => ({ ...H, [z]: void 0 }));
12685
+ mr.shape[z].parse(L), _((H) => ({ ...H, [z]: void 0 }));
12703
12686
  } catch (P) {
12704
12687
  P instanceof ye.ZodError && _((H) => ({ ...H, [z]: P.issues[0]?.message }));
12705
12688
  }
@@ -13356,13 +13339,13 @@ const Gu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a
13356
13339
  );
13357
13340
  });
13358
13341
  Gu.displayName = "ContainerPanel";
13359
- function qt(...r) {
13342
+ function Xt(...r) {
13360
13343
  return (t) => {
13361
13344
  for (const n of r)
13362
13345
  typeof n == "function" ? n(t) : n && typeof n == "object" && (n.current = t);
13363
13346
  };
13364
13347
  }
13365
- function fr(r, t) {
13348
+ function pr(r, t) {
13366
13349
  if (!(!r && !t))
13367
13350
  return r ? t ? (n) => {
13368
13351
  r(n), t(n);
@@ -13376,12 +13359,12 @@ const Vu = q.forwardRef(
13376
13359
  t || r?.(u);
13377
13360
  }, l = i.props;
13378
13361
  return q.cloneElement(i, {
13379
- onClick: fr(l.onClick, c),
13380
- onKeyDown: fr(l.onKeyDown, o),
13362
+ onClick: pr(l.onClick, c),
13363
+ onKeyDown: pr(l.onKeyDown, o),
13381
13364
  tabIndex: l.tabIndex ?? (t ? -1 : 0),
13382
13365
  role: l.role ?? n,
13383
13366
  "aria-disabled": t || void 0,
13384
- ref: qt(s, i.ref)
13367
+ ref: Xt(s, i.ref)
13385
13368
  });
13386
13369
  }
13387
13370
  );
@@ -13393,8 +13376,8 @@ const ju = q.forwardRef(
13393
13376
  }, [n, t, r]), l = S((p) => {
13394
13377
  n || (p.key === "Enter" || p.key === " ") && (p.preventDefault(), t?.(!r, p));
13395
13378
  }, [n, t, r]), u = o.props, m = q.cloneElement(o, {
13396
- onClick: fr(u.onClick, c),
13397
- onKeyDown: fr(u.onKeyDown, l),
13379
+ onClick: pr(u.onClick, c),
13380
+ onKeyDown: pr(u.onKeyDown, l),
13398
13381
  tabIndex: u.tabIndex ?? (n ? -1 : 0),
13399
13382
  role: u.role ?? "option",
13400
13383
  "aria-selected": r,
@@ -13406,7 +13389,7 @@ const ju = q.forwardRef(
13406
13389
  r && "gloss-selectable--selected",
13407
13390
  n && "gloss-selectable--disabled"
13408
13391
  ].filter(Boolean).join(" ") || void 0,
13409
- ref: qt(i, o.ref)
13392
+ ref: Xt(i, o.ref)
13410
13393
  });
13411
13394
  return a ? /* @__PURE__ */ d("div", { className: "gloss-selectable__wrapper", children: [
13412
13395
  /* @__PURE__ */ e(
@@ -13447,7 +13430,7 @@ const Ku = q.forwardRef(
13447
13430
  clearTimeout(f), document.removeEventListener("mousedown", p);
13448
13431
  };
13449
13432
  }, [s, n, r]);
13450
- const u = qt(
13433
+ const u = Xt(
13451
13434
  o,
13452
13435
  l,
13453
13436
  c.ref
@@ -13493,7 +13476,7 @@ const Yu = q.forwardRef(
13493
13476
  ({ id: r, disabled: t = !1, children: n }, a) => {
13494
13477
  const s = q.Children.only(n);
13495
13478
  return tn ? /* @__PURE__ */ e(Ha, { id: r, disabled: t, outerRef: a, children: s }) : q.cloneElement(s, {
13496
- ref: qt(a, s.ref)
13479
+ ref: Xt(a, s.ref)
13497
13480
  });
13498
13481
  }
13499
13482
  );
@@ -13511,7 +13494,7 @@ function Ha({ id: r, disabled: t, outerRef: n, children: a }) {
13511
13494
  transition: l ?? void 0,
13512
13495
  opacity: u ? 0.5 : void 0,
13513
13496
  cursor: t ? void 0 : "grab"
13514
- }, p = qt(
13497
+ }, p = Xt(
13515
13498
  n,
13516
13499
  o,
13517
13500
  a.ref
@@ -13600,7 +13583,7 @@ export {
13600
13583
  Gr as aB,
13601
13584
  cp as aC,
13602
13585
  lp as aD,
13603
- pr as aE,
13586
+ mr as aE,
13604
13587
  bp as aF,
13605
13588
  hp as aG,
13606
13589
  up as aH,
@@ -13632,7 +13615,7 @@ export {
13632
13615
  Pa as ag,
13633
13616
  iu as ah,
13634
13617
  Ba as ai,
13635
- mr as aj,
13618
+ ur as aj,
13636
13619
  uu as ak,
13637
13620
  fu as al,
13638
13621
  Ra as am,
@@ -13654,8 +13637,8 @@ export {
13654
13637
  Qr as b1,
13655
13638
  en as b2,
13656
13639
  Gu as b3,
13657
- qt as b4,
13658
- fr as b5,
13640
+ Xt as b4,
13641
+ pr as b5,
13659
13642
  Vu as b6,
13660
13643
  ju as b7,
13661
13644
  Ku as b8,
@@ -13682,7 +13665,7 @@ export {
13682
13665
  Oa as bT,
13683
13666
  Ur as bU,
13684
13667
  Uu as ba,
13685
- dr as bb,
13668
+ cr as bb,
13686
13669
  Ic as bc,
13687
13670
  Tc as bd,
13688
13671
  Ec as be,
@@ -13694,7 +13677,7 @@ export {
13694
13677
  sd as bk,
13695
13678
  wa as bl,
13696
13679
  Ac as bm,
13697
- Kt as bn,
13680
+ fr as bn,
13698
13681
  xa as bo,
13699
13682
  Na as bp,
13700
13683
  Sa as bq,
@@ -13707,7 +13690,7 @@ export {
13707
13690
  Td as bx,
13708
13691
  Ia as by,
13709
13692
  Ta as bz,
13710
- ur as c,
13693
+ dr as c,
13711
13694
  Fi as d,
13712
13695
  Ai as e,
13713
13696
  Hi as f,
package/catalog.js CHANGED
@@ -1,5 +1,5 @@
1
- import { y as I, N, A as B, F as x, J as D, z as F, D as A, E as M, H as v, O as R, Q as H, T as W, a$ as _, U as k, b0 as z, b1 as E, b2 as L, V as $, W as G, X as O } from "./Expandable-Ct-LM6zt.js";
2
- import { a3 as Ne, b6 as Be, az as xe, ah as De, Z as Fe, an as Ae, bS as Me, K as ve, a8 as Re, bo as He, P as We, B as _e, bi as ke, bh as ze, bx as Ee, b as Le, C as $e, L as Ge, o as Oe, ad as we, aN as Ve, aC as Xe, aq as je, k as Ue, m as Ze, aF as qe, ab as Je, b8 as Ke, a9 as Qe, bp as Ye, Y as ea, ap as aa, aQ as sa, ba as ta, n as ra, am as oa, a0 as ia, ar as na, a2 as la, aa as da, bJ as ca, aT as ga, r as ma, I as pa, g as ua, aw as ba, M as fa, w as ha, as as ya, bg as Sa, bP as Ta, ao as Pa, t as Ca, bq as Ia, aS as Na, b3 as Ba, aj as xa, aK as Da, ag as Fa, al as Aa, au as Ma, bU as va, aR as Ra, bT as Ha, ac as Wa, c as _a, R as ka, j as za, p as Ea, aH as La, ai as $a, ae as Ga, h as Oa, x as wa, b7 as Va, af as Xa, bc as ja, bf as Ua, bd as Za, be as qa, i as Ja, b9 as Ka, bn as Qa, S as Ya, bk as es, av as as, bb as ss, bQ as ts, ak as rs, bR as os, s as is, bK as ns, l as ls, f as ds, q as cs, _ as gs, a7 as ms, bj as ps, bw as us, bD as bs, aB as fs, a6 as hs, aP as ys, aE as Ss, ay as Ts, aM as Ps, aJ as Cs, a1 as Is, bm as Ns } from "./Expandable-Ct-LM6zt.js";
1
+ import { y as I, N, A as B, F as x, J as D, z as F, D as A, E as M, H as v, O as R, Q as H, T as W, a$ as _, U as k, b0 as z, b1 as E, b2 as L, V as $, W as G, X as O } from "./Expandable-B3wGOLwZ.js";
2
+ import { a3 as Ne, b6 as Be, az as xe, ah as De, Z as Fe, an as Ae, bS as Me, K as ve, a8 as Re, bo as He, P as We, B as _e, bi as ke, bh as ze, bx as Ee, b as Le, C as $e, L as Ge, o as Oe, ad as we, aN as Ve, aC as Xe, aq as je, k as Ue, m as Ze, aF as qe, ab as Je, b8 as Ke, a9 as Qe, bp as Ye, Y as ea, ap as aa, aQ as sa, ba as ta, n as ra, am as oa, a0 as ia, ar as na, a2 as la, aa as da, bJ as ca, aT as ga, r as ma, I as pa, g as ua, aw as ba, M as fa, w as ha, as as ya, bg as Sa, bP as Ta, ao as Pa, t as Ca, bq as Ia, aS as Na, b3 as Ba, aj as xa, aK as Da, ag as Fa, al as Aa, au as Ma, bU as va, aR as Ra, bT as Ha, ac as Wa, c as _a, R as ka, j as za, p as Ea, aH as La, ai as $a, ae as Ga, h as Oa, x as wa, b7 as Va, af as Xa, bc as ja, bf as Ua, bd as Za, be as qa, i as Ja, b9 as Ka, bn as Qa, S as Ya, bk as es, av as as, bb as ss, bQ as ts, ak as rs, bR as os, s as is, bK as ns, l as ls, f as ds, q as cs, _ as gs, a7 as ms, bj as ps, bw as us, bD as bs, aB as fs, a6 as hs, aP as ys, aE as Ss, ay as Ts, aM as Ps, aJ as Cs, a1 as Is, bm as Ns } from "./Expandable-B3wGOLwZ.js";
3
3
  import { jsx as c, jsxs as T } from "react/jsx-runtime";
4
4
  import { C as e, T as a, ae as w, S as s, E as u, R as m, e as V, Z as X } from "./UIContext-C3E-k7HI.js";
5
5
  import { B as j, a as U, e as Z, c as q, d as J, b as K } from "./BaseAsyncButton-nFOdhiBv.js";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { N as Na, T as Sa, O as ka, Q as xa, a3 as Ta, b6 as Ia, az as Ra, ah as _a, Z as Ma, an as Pa, K as Fa, a8 as Ea, bo as Oa, P as Aa, B as La, a as $a, y as Ba, H as Ka, bi as Ga, F as Ha, J as za, A as Va, z as Wa, bh as Za, E as Ua, D as Ya, bx as qa, b as ja, C as Qa, L as Xa, o as Ja, ad as en, aN as tn, y as an, H as nn, F as rn, J as on, A as sn, z as ln, E as dn, D as cn, a$ as un, b2 as mn, b1 as pn, b0 as gn, b3 as bn, aC as fn, a5 as hn, a4 as vn, aq as yn, k as wn, m as Cn, aF as Dn, ab as Nn, b8 as Sn, a9 as kn, bp as xn, Y as Tn, bH as In, bG as Rn, bI as _n, ap as Mn, aQ as Pn, ba as Fn, bM as En, bv as On, n as An, am as Ln, bB as $n, bs as Bn, a0 as Kn, ar as Gn, a2 as Hn, bA as zn, G as Vn, d as Wn, aa as Zn, bJ as Un, aT as Yn, r as qn, v as jn, I as Qn, g as Xn, aw as Jn, bN as er, M as tr, w as ar, U as nr, X as rr, V as or, W as sr, as as ir, bg as lr, bP as dr, bL as cr, ao as ur, t as mr, bq as pr, aS as gr, aj as br, aK as fr, ag as hr, al as vr, au as yr, aR as wr, ac as Cr, at as Dr, c as Nr, R as Sr, j as kr, p as xr, aH as Tr, by as Ir, bz as Rr, ai as _r, ae as Mr, h as Pr, x as Fr, b7 as Er, af as Or, bO as Ar, bc as Lr, bf as $r, bd as Br, be as Kr, i as Gr, b9 as Hr, bn as zr, S as Vr, bk as Wr, bl as Zr, av as Ur, bb as Yr, bQ as qr, ak as jr, s as Qr, bK as Xr, l as Jr, f as eo, q as to, _ as ao, $ as no, a7 as ro, bj as oo, bw as so, bD as io, aA as lo, aB as co, a6 as uo, aO as mo, aP as po, aD as go, aE as bo, aG as fo, aV as ho, aW as vo, bF as yo, bE as wo, aY as Co, aZ as Do, ax as No, ay as So, b5 as ko, b4 as xo, a_ as To, aL as Io, aM as Ro, aX as _o, aI as Mo, aJ as Po, u as Fo, bC as Eo, br as Oo, bt as Ao, bu as Lo, aU as $o, a1 as Bo, e as Ko, bm as Go } from "./Expandable-Ct-LM6zt.js";
1
+ import { N as Na, T as Sa, O as ka, Q as xa, a3 as Ta, b6 as Ia, az as Ra, ah as _a, Z as Ma, an as Pa, K as Fa, a8 as Ea, bo as Oa, P as Aa, B as La, a as $a, y as Ba, H as Ka, bi as Ga, F as Ha, J as za, A as Va, z as Wa, bh as Za, E as Ua, D as Ya, bx as qa, b as ja, C as Qa, L as Xa, o as Ja, ad as en, aN as tn, y as an, H as nn, F as rn, J as on, A as sn, z as ln, E as dn, D as cn, a$ as un, b2 as mn, b1 as pn, b0 as gn, b3 as bn, aC as fn, a5 as hn, a4 as vn, aq as yn, k as wn, m as Cn, aF as Dn, ab as Nn, b8 as Sn, a9 as kn, bp as xn, Y as Tn, bH as In, bG as Rn, bI as _n, ap as Mn, aQ as Pn, ba as Fn, bM as En, bv as On, n as An, am as Ln, bB as $n, bs as Bn, a0 as Kn, ar as Gn, a2 as Hn, bA as zn, G as Vn, d as Wn, aa as Zn, bJ as Un, aT as Yn, r as qn, v as jn, I as Qn, g as Xn, aw as Jn, bN as er, M as tr, w as ar, U as nr, X as rr, V as or, W as sr, as as ir, bg as lr, bP as dr, bL as cr, ao as ur, t as mr, bq as pr, aS as gr, aj as br, aK as fr, ag as hr, al as vr, au as yr, aR as wr, ac as Cr, at as Dr, c as Nr, R as Sr, j as kr, p as xr, aH as Tr, by as Ir, bz as Rr, ai as _r, ae as Mr, h as Pr, x as Fr, b7 as Er, af as Or, bO as Ar, bc as Lr, bf as $r, bd as Br, be as Kr, i as Gr, b9 as Hr, bn as zr, S as Vr, bk as Wr, bl as Zr, av as Ur, bb as Yr, bQ as qr, ak as jr, s as Qr, bK as Xr, l as Jr, f as eo, q as to, _ as ao, $ as no, a7 as ro, bj as oo, bw as so, bD as io, aA as lo, aB as co, a6 as uo, aO as mo, aP as po, aD as go, aE as bo, aG as fo, aV as ho, aW as vo, bF as yo, bE as wo, aY as Co, aZ as Do, ax as No, ay as So, b5 as ko, b4 as xo, a_ as To, aL as Io, aM as Ro, aX as _o, aI as Mo, aJ as Po, u as Fo, bC as Eo, br as Oo, bt as Ao, bu as Lo, aU as $o, a1 as Bo, e as Ko, bm as Go } from "./Expandable-B3wGOLwZ.js";
2
2
  import { jsxs as O, jsx as g } from "react/jsx-runtime";
3
3
  import F, { useRef as M, useEffect as P, useState as E, useCallback as y, forwardRef as ve, useMemo as ee, createContext as ye, useContext as we } from "react";
4
4
  import { B as Ce, U as te } from "./UIContext-C3E-k7HI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"