@mt-gloss/ui 0.1.152 → 0.1.154

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.
@@ -5,7 +5,7 @@ import { S as X, E as Ze, C as E, e as Zn, R as Ce, h as qn, i as Jn, j as Qn, a
5
5
  import { easings as nt, durations as st } from "@mt-gloss/tokens";
6
6
  import { formatValue as js, isInRange as Ks, isSameDay as er, formatMarketDates as Ys, DEFAULT_MARKET_PRESETS as tr, isMarketActive as kt, getDateRangeForPreset as Xe, detectPreset as rr, getDateRangeDisplayInfo as Ot, formatDateRangeSmart as yt, toUppercasePresetId as ar, generateMarketId as Us, ROLLING_OPTIONS as pa, PERIOD_OPTIONS as ga } from "@mt-gloss/utils";
7
7
  import { B as be, b as Xs, a as Zs } from "./BaseText-Dxbk1JJa.js";
8
- import { u as qs, a as Js, b as Qs, M as dt } from "./TimeframeQuickBar-I9Io0v7_.js";
8
+ import { u as qs, a as Js, b as Qs, M as dt } from "./TimeframeQuickBar-CHl409rH.js";
9
9
  import { useGridApiRef as eo, DataGridPro as to } from "@mui/x-data-grid-pro";
10
10
  import { Chip as Hr, Tooltip as xt, MenuItem as dr, Menu as ro, Box as de, IconButton as et, Select as fa, Typography as De, Button as at, Collapse as ao, Popover as no, Dialog as so, DialogTitle as oo, DialogContent as lo, TextField as nr, DialogActions as io, Tabs as co, Tab as uo } from "@mui/material";
11
11
  import mo from "@mui/icons-material/Person";
@@ -6176,8 +6176,11 @@ function Nd({
6176
6176
  sx: {
6177
6177
  "& .MuiPaper-root": {
6178
6178
  borderRadius: "var(--radius-lg)",
6179
- border: "var(--card-border)",
6180
- boxShadow: "var(--shadow-md)",
6179
+ // Overlay elevation: a step above card-level (--card-border / --shadow-md) so the
6180
+ // open menu reads as floating and visibly associates with its launching row. A
6181
+ // little extra shadow + a slightly darker hairline outline.
6182
+ border: "1px solid rgba(0, 0, 0, 0.12)",
6183
+ boxShadow: "0 6px 16px -4px rgb(0 0 0 / 0.12), 0 2px 6px -2px rgb(0 0 0 / 0.08)",
6181
6184
  minWidth: 200
6182
6185
  },
6183
6186
  "& .MuiMenuItem-root": {
@@ -1,24 +1,24 @@
1
- import { jsxs as h, jsx as e, Fragment as K } from "react/jsx-runtime";
2
- import { useId as me, useMemo as O, useState as ge, useRef as W, useCallback as C, useEffect as pe } from "react";
3
- import { formatTrend as xe, isStatusModeEnabled as ye, pickMetricTier as be, getValueFontSize as Y, hexToRgba as q, formatValue as Q, getDateRangeForPreset as ve, formatDateRangeSmart as ke, ROLLING_OPTIONS as we, PERIOD_OPTIONS as Se } from "@mt-gloss/utils";
4
- import { B as N, a as D, b as Ce } from "./BaseText-Dxbk1JJa.js";
5
- import { Box as B, Chip as X, Popper as Ie, Paper as ze, MenuList as Me, MenuItem as Re, ListItemText as Te, IconButton as Le, Tooltip as Ne, Divider as De } from "@mui/material";
6
- import Be from "@mui/icons-material/ExpandMore";
7
- import We from "@mui/icons-material/Star";
8
- import Oe from "@mui/icons-material/StarBorder";
9
- import _e from "@mui/icons-material/Check";
1
+ import { jsxs as u, jsx as e, Fragment as J } from "react/jsx-runtime";
2
+ import { useId as me, useMemo as O, useState as ge, useRef as B, useCallback as C, useEffect as pe } from "react";
3
+ import { formatTrend as ye, pickMetricTier as xe, getValueFontSize as Y, hexToRgba as q, formatValue as Q, getDateRangeForPreset as be, formatDateRangeSmart as ve, ROLLING_OPTIONS as ke, PERIOD_OPTIONS as Se } from "@mt-gloss/utils";
4
+ import { B as N, a as R, b as we } from "./BaseText-Dxbk1JJa.js";
5
+ import { Box as D, Chip as K, Popper as Ce, Paper as Ie, MenuList as ze, MenuItem as Me, ListItemText as _e, IconButton as Te, Tooltip as Le, Divider as Ne } from "@mui/material";
6
+ import Re from "@mui/icons-material/ExpandMore";
7
+ import De from "@mui/icons-material/Star";
8
+ import Be from "@mui/icons-material/StarBorder";
9
+ import Oe from "@mui/icons-material/Check";
10
10
  const Z = {
11
11
  up: { color: "#10b981", bg: "rgba(16,185,129,0.07)" },
12
12
  down: { color: "#ef4444", bg: "rgba(239,68,68,0.07)" },
13
13
  flat: { color: "#6b7280", bg: "rgba(107,114,128,0.07)" }
14
- }, J = {
14
+ }, X = {
15
15
  up: "▲",
16
16
  down: "▼",
17
17
  flat: "▶"
18
18
  }, j = function({ value: o, direction: t }) {
19
19
  if (o == null) return null;
20
- const { text: d, direction: f } = xe(o), l = t || f, { color: r, bg: s } = Z[l] || Z.flat, n = J[l] || J.flat;
21
- return /* @__PURE__ */ h(
20
+ const { text: d, direction: f } = ye(o), l = t || f, { color: r, bg: s } = Z[l] || Z.flat, n = X[l] || X.flat;
21
+ return /* @__PURE__ */ u(
22
22
  "span",
23
23
  {
24
24
  style: {
@@ -42,16 +42,16 @@ const Z = {
42
42
  );
43
43
  };
44
44
  j.displayName = "TrendIndicator";
45
- const A = ({ data: i, color: o, isStale: t }) => {
45
+ const F = ({ data: i, color: o, isStale: t }) => {
46
46
  const f = "sparkbg-" + me().replace(/:/g, ""), l = o || "#4f46e5", r = O(() => {
47
47
  if (!i || i.length < 2) return null;
48
- const s = 300, n = 55, a = 2, c = Math.min(...i), m = Math.max(...i) - c || 1, p = i.map((y, S) => ({
49
- x: S / (i.length - 1) * s,
50
- y: a + (1 - (y - c) / m) * (n - a * 2)
51
- })).map((y, S) => `${S === 0 ? "M" : "L"}${y.x},${y.y}`).join(" "), w = `${p} L${s},${n} L0,${n}Z`;
52
- return { line: p, area: w, w: s, h: n };
48
+ const s = 300, n = 55, a = 2, c = Math.min(...i), m = Math.max(...i) - c || 1, p = i.map((x, w) => ({
49
+ x: w / (i.length - 1) * s,
50
+ y: a + (1 - (x - c) / m) * (n - a * 2)
51
+ })).map((x, w) => `${w === 0 ? "M" : "L"}${x.x},${x.y}`).join(" "), S = `${p} L${s},${n} L0,${n}Z`;
52
+ return { line: p, area: S, w: s, h: n };
53
53
  }, [i]);
54
- return r ? /* @__PURE__ */ h(
54
+ return r ? /* @__PURE__ */ u(
55
55
  "svg",
56
56
  {
57
57
  height: 55,
@@ -81,7 +81,7 @@ const A = ({ data: i, color: o, isStale: t }) => {
81
81
  transition: t ? "transform 400ms ease-out" : "transform 500ms ease-in-out"
82
82
  },
83
83
  children: [
84
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ h("linearGradient", { id: f, x1: "0", y1: "0", x2: "0", y2: "1", children: [
84
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ u("linearGradient", { id: f, x1: "0", y1: "0", x2: "0", y2: "1", children: [
85
85
  /* @__PURE__ */ e("stop", { offset: "0%", stopColor: l, stopOpacity: "0.09" }),
86
86
  /* @__PURE__ */ e("stop", { offset: "100%", stopColor: l, stopOpacity: "0.01" })
87
87
  ] }) }),
@@ -102,18 +102,18 @@ const A = ({ data: i, color: o, isStale: t }) => {
102
102
  }
103
103
  ) : null;
104
104
  };
105
- A.displayName = "SparklineBg";
105
+ F.displayName = "SparklineBg";
106
106
  const ee = ({ data: i, color: o, isStale: t }) => {
107
107
  const d = o || "#4f46e5", f = O(() => {
108
108
  if (!i || i.length < 1) return null;
109
109
  const l = 300, r = 50, s = r * 0.82, n = i.length, a = l / (n * 4), c = a * 3, m = Math.max(...i) || 1;
110
- return i.map((x, p) => {
111
- const w = x / m, y = Math.max(w * s, 2);
110
+ return i.map((y, p) => {
111
+ const S = y / m, x = Math.max(S * s, 2);
112
112
  return {
113
113
  x: p * (c + a),
114
- y: r - y,
114
+ y: r - x,
115
115
  width: c,
116
- height: y,
116
+ height: x,
117
117
  isLast: p === n - 1
118
118
  };
119
119
  });
@@ -156,7 +156,7 @@ const ee = ({ data: i, color: o, isStale: t }) => {
156
156
  ee.displayName = "BarsBg";
157
157
  const te = ({ value: i = 0, max: o = 100, color: t = "#4f46e5", colSpan: d = 1, isStale: f }) => {
158
158
  const l = d >= 2 ? 40 : 34, r = 3.5, s = (l - r) / 2, n = 2 * Math.PI * s, a = f ? 0 : Math.min(Math.max(i / (o || 1), 0), 1), c = n * (1 - a);
159
- return /* @__PURE__ */ h(
159
+ return /* @__PURE__ */ u(
160
160
  "svg",
161
161
  {
162
162
  width: l,
@@ -198,8 +198,8 @@ const te = ({ value: i = 0, max: o = 100, color: t = "#4f46e5", colSpan: d = 1,
198
198
  };
199
199
  te.displayName = "DonutChart";
200
200
  const re = ({ value: i = 0, max: o = 100, trendValue: t = 0, color: d = "#6b7280", colSpan: f = 1, isStale: l }) => {
201
- const r = f >= 2 ? 44 : 36, s = 3.5, n = (r - s) / 2, a = 2 * Math.PI * n, c = l ? 0 : Math.min(Math.max(i / (o || 1), 0), 1), u = a * (1 - c), m = f >= 2 ? 11 : 9, x = `${Math.round(Math.abs(t))}%`;
202
- return /* @__PURE__ */ h(
201
+ const r = f >= 2 ? 44 : 36, s = 3.5, n = (r - s) / 2, a = 2 * Math.PI * n, c = l ? 0 : Math.min(Math.max(i / (o || 1), 0), 1), h = a * (1 - c), m = f >= 2 ? 11 : 9, y = `${Math.round(Math.abs(t))}%`;
202
+ return /* @__PURE__ */ u(
203
203
  "div",
204
204
  {
205
205
  style: {
@@ -213,7 +213,7 @@ const re = ({ value: i = 0, max: o = 100, trendValue: t = 0, color: d = "#6b7280
213
213
  marginRight: 8
214
214
  },
215
215
  children: [
216
- /* @__PURE__ */ h(
216
+ /* @__PURE__ */ u(
217
217
  "svg",
218
218
  {
219
219
  width: r,
@@ -243,7 +243,7 @@ const re = ({ value: i = 0, max: o = 100, trendValue: t = 0, color: d = "#6b7280
243
243
  stroke: d,
244
244
  strokeWidth: s,
245
245
  strokeDasharray: a,
246
- strokeDashoffset: u,
246
+ strokeDashoffset: h,
247
247
  strokeLinecap: "round",
248
248
  transform: `rotate(-90 ${r / 2} ${r / 2})`,
249
249
  style: { transition: "stroke-dashoffset 0.4s ease" }
@@ -267,7 +267,7 @@ const re = ({ value: i = 0, max: o = 100, trendValue: t = 0, color: d = "#6b7280
267
267
  lineHeight: 1,
268
268
  pointerEvents: "none"
269
269
  },
270
- children: x
270
+ children: y
271
271
  }
272
272
  )
273
273
  ]
@@ -275,23 +275,23 @@ const re = ({ value: i = 0, max: o = 100, trendValue: t = 0, color: d = "#6b7280
275
275
  );
276
276
  };
277
277
  re.displayName = "ObjectArrow";
278
- const $e = { slot3: 200, slot5: 380 };
279
- function Ee(i, o) {
280
- const t = $e, d = 150, [f, l] = ge(1), r = W(null), s = W(null), n = C(() => {
278
+ const We = { slot3: 200, slot5: 380 };
279
+ function $e(i, o) {
280
+ const t = We, d = 150, [f, l] = ge(1), r = B(null), s = B(null), n = C(() => {
281
281
  const c = r.current;
282
282
  if (c == null) return;
283
- const u = c < t.slot3 ? 1 : c < t.slot5 ? 3 : 5;
284
- l((m) => m === u ? m : u), r.current = null, s.current && (clearTimeout(s.current), s.current = null);
283
+ const h = c < t.slot3 ? 1 : c < t.slot5 ? 3 : 5;
284
+ l((m) => m === h ? m : h), r.current = null, s.current && (clearTimeout(s.current), s.current = null);
285
285
  }, [t.slot3, t.slot5]);
286
286
  pe(() => {
287
287
  const c = i.current;
288
288
  if (!c || typeof ResizeObserver > "u") return;
289
- const u = new ResizeObserver((m) => {
290
- const x = m[0]?.contentRect.width ?? 0;
291
- r.current = x, s.current && clearTimeout(s.current), s.current = setTimeout(n, d);
289
+ const h = new ResizeObserver((m) => {
290
+ const y = m[0]?.contentRect.width ?? 0;
291
+ r.current = y, s.current && clearTimeout(s.current), s.current = setTimeout(n, d);
292
292
  });
293
- return u.observe(c), () => {
294
- u.disconnect(), s.current && clearTimeout(s.current);
293
+ return h.observe(c), () => {
294
+ h.disconnect(), s.current && clearTimeout(s.current);
295
295
  };
296
296
  }, [i, n, d]);
297
297
  const a = C(() => {
@@ -299,23 +299,26 @@ function Ee(i, o) {
299
299
  }, [n]);
300
300
  return { capacity: f, onPointerUp: a };
301
301
  }
302
+ function Ee() {
303
+ return typeof globalThis < "u" && globalThis.__GLOSS_FLAGS__?.v1_1_status_mode === !0 ? !0 : typeof process < "u" && process.env ? process.env.NEXT_PUBLIC_V1_1_STATUS_MODE === "true" : !1;
304
+ }
302
305
  function ie(i) {
303
- const { onStatusSlotClick: o } = i, t = W(null), d = ye(), { capacity: f, onPointerUp: l } = Ee(t), r = i.maxSlots ?? f, s = i.statuses.slice(0, r);
306
+ const { onStatusSlotClick: o } = i, t = B(null), d = Ee(), { capacity: f, onPointerUp: l } = $e(t), r = i.maxSlots ?? f, s = i.statuses.slice(0, r);
304
307
  if (!d) {
305
308
  const n = i.statuses[0];
306
- return /* @__PURE__ */ h(
309
+ return /* @__PURE__ */ u(
307
310
  N,
308
311
  {
309
312
  definition: { display: "flex", direction: "column" },
310
313
  className: "gloss-status-card gloss-status-card--flag-off",
311
314
  children: [
312
- /* @__PURE__ */ e(D, { className: "gloss-metric-card__label", children: i.label }),
313
- n != null ? /* @__PURE__ */ e(D, { children: String(n.value) }) : null
315
+ /* @__PURE__ */ e(R, { className: "gloss-metric-card__label", children: i.label }),
316
+ n != null ? /* @__PURE__ */ e(R, { children: String(n.value) }) : null
314
317
  ]
315
318
  }
316
319
  );
317
320
  }
318
- return /* @__PURE__ */ h(
321
+ return /* @__PURE__ */ u(
319
322
  "div",
320
323
  {
321
324
  ref: t,
@@ -324,13 +327,13 @@ function ie(i) {
324
327
  "data-status-capacity": r,
325
328
  onPointerUp: l,
326
329
  children: [
327
- /* @__PURE__ */ e(D, { className: "gloss-metric-card__label", children: i.label }),
330
+ /* @__PURE__ */ e(R, { className: "gloss-metric-card__label", children: i.label }),
328
331
  /* @__PURE__ */ e("div", { className: "gloss-status-slots", "data-status-slot-count": s.length, children: s.map((n, a) => {
329
- const c = i.sparklinePerStatus?.[n.id], u = n.id === i.activeStatusId;
330
- return /* @__PURE__ */ h(
332
+ const c = i.sparklinePerStatus?.[n.id], h = n.id === i.activeStatusId;
333
+ return /* @__PURE__ */ u(
331
334
  "div",
332
335
  {
333
- className: `gloss-status-slots__slot${u ? " gloss-status-slots__slot--active" : ""}`,
336
+ className: `gloss-status-slots__slot${h ? " gloss-status-slots__slot--active" : ""}`,
334
337
  "data-status-slot-id": n.id,
335
338
  "data-status-slot-index": a,
336
339
  onClick: o ? (m) => o(n.id, m.currentTarget) : void 0,
@@ -338,7 +341,7 @@ function ie(i) {
338
341
  children: [
339
342
  /* @__PURE__ */ e("span", { className: "gloss-metric-card__label", children: n.label }),
340
343
  /* @__PURE__ */ e("span", { children: String(n.value) }),
341
- c != null && c.length > 0 ? /* @__PURE__ */ e(A, { data: [...c], color: n.accentColor }) : null
344
+ c != null && c.length > 0 ? /* @__PURE__ */ e(F, { data: [...c], color: n.accentColor }) : null
342
345
  ]
343
346
  },
344
347
  n.id
@@ -359,7 +362,7 @@ const E = {
359
362
  up: "var(--color-positive)",
360
363
  down: "var(--color-negative)",
361
364
  flat: "var(--color-text-secondary)"
362
- }, He = {
365
+ }, Ae = {
363
366
  positive: "#10b981",
364
367
  // Used with hexToRgba() for tinted overlays -- must stay hex
365
368
  negative: "#ef4444",
@@ -368,7 +371,7 @@ const E = {
368
371
  // Used with hexToRgba() for tinted overlays -- must stay hex
369
372
  neutral: "#6b7280"
370
373
  // Used with hexToRgba() for tinted overlays -- must stay hex
371
- }, Ae = () => /* @__PURE__ */ h(
374
+ }, Fe = () => /* @__PURE__ */ u(
372
375
  "svg",
373
376
  {
374
377
  "aria-label": "Warning threshold breached",
@@ -394,7 +397,7 @@ const E = {
394
397
  /* @__PURE__ */ e("circle", { cx: "7", cy: "10.5", r: "0.7", fill: "currentColor" })
395
398
  ]
396
399
  }
397
- ), Fe = () => /* @__PURE__ */ h(
400
+ ), He = () => /* @__PURE__ */ u(
398
401
  "svg",
399
402
  {
400
403
  "aria-label": "Critical threshold breached",
@@ -421,12 +424,12 @@ const E = {
421
424
  subtitle: n,
422
425
  colSpan: a = 1,
423
426
  isStale: c,
424
- thresholdBreach: u = "none"
425
- } = o, m = t === "sparkline" || t === "bars" || t === "donut" ? o.accentColor ?? "#4f46e5" : "#4f46e5", x = t === "highlight" ? o.highlightColor : void 0, p = t === "sparkline" ? o.sparklineData : void 0, w = t === "bars" ? o.barData : void 0, y = t === "donut" ? o.donutValue : 0, S = t === "donut" ? o.donutMax ?? 100 : 100, T = t === "object-arrow" ? o.objectArrowValue : 0, _ = t === "object-arrow" ? o.objectArrowMax : 100, $ = t === "arrow" ? o.arrowDirection : void 0, I = t === "versus" ? o.versusData : void 0, z = t === "segmented" ? o.segments : void 0, b = (t === "highlight" && o.tintCondition ? je(
427
+ thresholdBreach: h = "none"
428
+ } = o, m = t === "sparkline" || t === "bars" || t === "donut" ? o.accentColor ?? "#4f46e5" : "#4f46e5", y = t === "highlight" ? o.highlightColor : void 0, p = t === "sparkline" ? o.sparklineData : void 0, S = t === "bars" ? o.barData : void 0, x = t === "donut" ? o.donutValue : 0, w = t === "donut" ? o.donutMax ?? 100 : 100, T = t === "object-arrow" ? o.objectArrowValue : 0, W = t === "object-arrow" ? o.objectArrowMax : 100, $ = t === "arrow" ? o.arrowDirection : void 0, I = t === "versus" ? o.versusData : void 0, z = t === "segmented" ? o.segments : void 0, b = (t === "highlight" && o.tintCondition ? je(
426
429
  typeof o.value == "number" ? o.value : null,
427
430
  o.tintCondition
428
- ) : void 0) ?? x, k = (b ? He[b] : void 0) || b, { formatted: L, tier: ne, length: oe } = O(
429
- () => t === "status-mode" ? { formatted: "", tier: 0, length: 0 } : be(l, {
431
+ ) : void 0) ?? y, k = (b ? Ae[b] : void 0) || b, { formatted: L, tier: ne, length: oe } = O(
432
+ () => t === "status-mode" ? { formatted: "", tier: 0, length: 0 } : xe(l, {
430
433
  prefix: r?.prefix || "",
431
434
  suffix: r?.suffix || "",
432
435
  abbreviated: r?.abbreviated
@@ -435,7 +438,7 @@ const E = {
435
438
  );
436
439
  if (o.variant === "status-mode")
437
440
  return /* @__PURE__ */ e(ie, { ...o });
438
- const R = { display: L, full: L, length: oe }, le = Y(R.length, a), se = s?.direction && E[s.direction] || E.flat, F = c ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", P = {
441
+ const _ = { display: L, full: L, length: oe }, le = Y(_.length, a), se = s?.direction && E[s.direction] || E.flat, H = c ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", P = {
439
442
  fontWeight: 700,
440
443
  letterSpacing: "-0.03em",
441
444
  color: t === "highlight" ? k : "rgba(0,0,0,0.87)",
@@ -491,9 +494,9 @@ const E = {
491
494
  prefix: r?.prefix || "",
492
495
  suffix: r?.suffix || "",
493
496
  abbreviated: r?.abbreviated
494
- }), U = Y(v.length, a), ue = Math.max(U - 4, 14);
495
- return /* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: 12, flex: 1 }, children: [
496
- /* @__PURE__ */ h("div", { style: { display: "flex", flexDirection: "column" }, children: [
497
+ }), U = Y(v.length, a), he = Math.max(U - 4, 14);
498
+ return /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: 12, flex: 1 }, children: [
499
+ /* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column" }, children: [
497
500
  /* @__PURE__ */ e(
498
501
  "span",
499
502
  {
@@ -511,19 +514,19 @@ const E = {
511
514
  /* @__PURE__ */ e("span", { style: { fontSize: 10, color: "rgba(0,0,0,0.35)", marginTop: 2 }, children: I.currentLabel })
512
515
  ] }),
513
516
  /* @__PURE__ */ e(
514
- Ce,
517
+ we,
515
518
  {
516
519
  definition: { orientation: "vertical", color: "rgba(0,0,0,0.08)" },
517
520
  style: { flexShrink: 0 }
518
521
  }
519
522
  ),
520
- /* @__PURE__ */ h("div", { style: { display: "flex", flexDirection: "column" }, children: [
523
+ /* @__PURE__ */ u("div", { style: { display: "flex", flexDirection: "column" }, children: [
521
524
  /* @__PURE__ */ e(
522
525
  "span",
523
526
  {
524
527
  style: {
525
528
  fontWeight: 700,
526
- fontSize: ue,
529
+ fontSize: he,
527
530
  letterSpacing: "-0.03em",
528
531
  color: "rgba(0,0,0,0.5)",
529
532
  lineHeight: 1.1
@@ -535,7 +538,7 @@ const E = {
535
538
  /* @__PURE__ */ e("span", { style: { fontSize: 10, color: "rgba(0,0,0,0.35)", marginTop: 2 }, children: I.priorLabel })
536
539
  ] })
537
540
  ] });
538
- }, fe = () => !z || z.length === 0 ? null : /* @__PURE__ */ h("div", { style: { zIndex: 2, position: "relative" }, children: [
541
+ }, fe = () => !z || z.length === 0 ? null : /* @__PURE__ */ u("div", { style: { zIndex: 2, position: "relative" }, children: [
539
542
  /* @__PURE__ */ e(
540
543
  "div",
541
544
  {
@@ -568,7 +571,7 @@ const E = {
568
571
  flexWrap: "wrap",
569
572
  marginTop: 4
570
573
  },
571
- children: z.map((v, M) => /* @__PURE__ */ h(
574
+ children: z.map((v, M) => /* @__PURE__ */ u(
572
575
  "div",
573
576
  {
574
577
  style: {
@@ -596,16 +599,16 @@ const E = {
596
599
  ))
597
600
  }
598
601
  )
599
- ] }), he = [
602
+ ] }), ue = [
600
603
  "gloss-threshold-overlay",
601
- u === "warn" ? "gloss-threshold-warn" : "",
602
- u === "critical" ? "gloss-threshold-critical" : "",
603
- u === "critical" ? "gloss-threshold-pulse" : ""
604
+ h === "warn" ? "gloss-threshold-warn" : "",
605
+ h === "critical" ? "gloss-threshold-critical" : "",
606
+ h === "critical" ? "gloss-threshold-pulse" : ""
604
607
  ].filter(Boolean).join(" ");
605
- return /* @__PURE__ */ h(K, { children: [
606
- u !== "none" && /* @__PURE__ */ e("div", { className: he }),
607
- u === "warn" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--warn", children: /* @__PURE__ */ e(Ae, {}) }),
608
- u === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(Fe, {}) }),
608
+ return /* @__PURE__ */ u(J, { children: [
609
+ h !== "none" && /* @__PURE__ */ e("div", { className: ue }),
610
+ h === "warn" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--warn", children: /* @__PURE__ */ e(Fe, {}) }),
611
+ h === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(He, {}) }),
609
612
  t === "highlight" && k && /* @__PURE__ */ e(
610
613
  "div",
611
614
  {
@@ -620,33 +623,33 @@ const E = {
620
623
  }
621
624
  }
622
625
  ),
623
- t === "sparkline" && /* @__PURE__ */ e(A, { data: p, color: m, isStale: c }),
624
- t === "bars" && /* @__PURE__ */ e(ee, { data: w, color: m, isStale: c }),
625
- /* @__PURE__ */ h(
626
+ t === "sparkline" && /* @__PURE__ */ e(F, { data: p, color: m, isStale: c }),
627
+ t === "bars" && /* @__PURE__ */ e(ee, { data: S, color: m, isStale: c }),
628
+ /* @__PURE__ */ u(
626
629
  N,
627
630
  {
628
631
  className: "gloss-metric-card__zone-a",
629
632
  "data-tier": ne,
630
633
  style: { height: 28, flexShrink: 0, zIndex: 2, position: "relative", display: "flex", alignItems: "center" },
631
634
  children: [
632
- /* @__PURE__ */ e(D, { className: "gloss-metric-card__label", children: d }),
635
+ /* @__PURE__ */ e(R, { className: "gloss-metric-card__label", children: d }),
633
636
  f
634
637
  ]
635
638
  }
636
639
  ),
637
- /* @__PURE__ */ h(
640
+ /* @__PURE__ */ u(
638
641
  N,
639
642
  {
640
643
  definition: { display: "flex", align: "center" },
641
- className: `gloss-metric-card__zone-b ${F}`,
644
+ className: `gloss-metric-card__zone-b ${H}`,
642
645
  style: { flex: 1, zIndex: 2, position: "relative", minHeight: 0 },
643
646
  children: [
644
- t === "donut" && /* @__PURE__ */ e(te, { value: y, max: S, color: m, colSpan: a, isStale: c }),
647
+ t === "donut" && /* @__PURE__ */ e(te, { value: x, max: w, color: m, colSpan: a, isStale: c }),
645
648
  t === "object-arrow" && /* @__PURE__ */ e(
646
649
  re,
647
650
  {
648
651
  value: T,
649
- max: _,
652
+ max: W,
650
653
  trendValue: s?.value,
651
654
  color: se,
652
655
  colSpan: a,
@@ -654,17 +657,17 @@ const E = {
654
657
  }
655
658
  ),
656
659
  t === "arrow" && ce(),
657
- t !== "versus" && t !== "segmented" && /* @__PURE__ */ e("span", { style: P, title: R.full, children: R.display }),
660
+ t !== "versus" && t !== "segmented" && /* @__PURE__ */ e("span", { style: P, title: _.full, children: _.display }),
658
661
  t === "versus" && de(),
659
- t === "segmented" && /* @__PURE__ */ e("span", { style: P, title: R.full, children: R.display })
662
+ t === "segmented" && /* @__PURE__ */ e("span", { style: P, title: _.full, children: _.display })
660
663
  ]
661
664
  }
662
665
  ),
663
- /* @__PURE__ */ h(
666
+ /* @__PURE__ */ u(
664
667
  N,
665
668
  {
666
669
  definition: { display: "flex", justify: "between", align: "center" },
667
- className: `gloss-metric-card__zone-c ${F}`,
670
+ className: `gloss-metric-card__zone-c ${H}`,
668
671
  style: { minHeight: 18, flexShrink: 0, zIndex: 2, position: "relative" },
669
672
  children: [
670
673
  /* @__PURE__ */ e("span", { style: ae, children: n }),
@@ -683,7 +686,7 @@ const E = {
683
686
  ] });
684
687
  };
685
688
  Pe.displayName = "MetricCard";
686
- const H = ({
689
+ const A = ({
687
690
  groupId: i,
688
691
  options: o,
689
692
  selectedId: t,
@@ -695,55 +698,55 @@ const H = ({
695
698
  onOpenChange: n,
696
699
  disableHover: a = !1
697
700
  }) => {
698
- const c = W(null), u = s, m = o.find((g) => g.id === t), x = !!m, p = m || o.find((g) => g.id === l) || o.find((g) => g.id === d) || o[0], w = O(() => {
701
+ const c = B(null), h = s, m = o.find((g) => g.id === t), y = !!m, p = m || o.find((g) => g.id === l) || o.find((g) => g.id === d) || o[0], S = O(() => {
699
702
  if (!p || !["7d", "30d", "60d", "90d", "mtd", "qtd", "ytd", "lytd"].includes(p.id))
700
703
  return "";
701
- const { start: b, end: k } = ve(p.id);
702
- return ke(b, k, /* @__PURE__ */ new Date());
703
- }, [p]), y = C(() => {
704
+ const { start: b, end: k } = be(p.id);
705
+ return ve(b, k, /* @__PURE__ */ new Date());
706
+ }, [p]), x = C(() => {
704
707
  a || n && n(i, !0);
705
- }, [i, n, a]), S = C(() => {
708
+ }, [i, n, a]), w = C(() => {
706
709
  a || n && n(i, !1);
707
710
  }, [i, n, a]), T = C(() => {
708
711
  n && n(i, !1);
709
- }, [i, n]), _ = C(() => {
710
- n && n(i, !u);
711
- }, [i, u, n]), $ = C((g) => {
712
+ }, [i, n]), W = C(() => {
713
+ n && n(i, !h);
714
+ }, [i, h, n]), $ = C((g) => {
712
715
  f(g), T();
713
716
  }, [f, T]), I = C((g, b) => {
714
717
  g.stopPropagation(), r && r(b);
715
- }, [r]), z = /* @__PURE__ */ h(
716
- B,
718
+ }, [r]), z = /* @__PURE__ */ u(
719
+ D,
717
720
  {
718
721
  ref: c,
719
- onMouseEnter: y,
720
- onMouseLeave: S,
722
+ onMouseEnter: x,
723
+ onMouseLeave: w,
721
724
  sx: { position: "relative", display: "inline-flex" },
722
725
  children: [
723
726
  /* @__PURE__ */ e(
724
- X,
727
+ K,
725
728
  {
726
- label: /* @__PURE__ */ h(B, { sx: { display: "inline-flex", alignItems: "center", gap: "2px" }, children: [
729
+ label: /* @__PURE__ */ u(D, { sx: { display: "inline-flex", alignItems: "center", gap: "2px" }, children: [
727
730
  p?.label,
728
731
  /* @__PURE__ */ e(
729
- Be,
732
+ Re,
730
733
  {
731
734
  sx: {
732
735
  fontSize: 16,
733
- color: x ? "primary.main" : "action.active",
734
- transform: u ? "rotate(180deg)" : "none",
736
+ color: y ? "primary.main" : "action.active",
737
+ transform: h ? "rotate(180deg)" : "none",
735
738
  transition: "transform 200ms"
736
739
  }
737
740
  }
738
741
  )
739
742
  ] }),
740
- onClick: _,
743
+ onClick: W,
741
744
  variant: "outlined",
742
- color: x ? "primary" : "default",
745
+ color: y ? "primary" : "default",
743
746
  size: "small",
744
747
  sx: {
745
748
  cursor: "pointer",
746
- fontWeight: x ? 600 : 400,
749
+ fontWeight: y ? 600 : 400,
747
750
  "&:hover": {
748
751
  borderColor: "primary.main"
749
752
  }
@@ -751,27 +754,27 @@ const H = ({
751
754
  }
752
755
  ),
753
756
  /* @__PURE__ */ e(
754
- Ie,
757
+ Ce,
755
758
  {
756
- open: u,
759
+ open: h,
757
760
  anchorEl: c.current,
758
761
  placement: "bottom-start",
759
762
  sx: { zIndex: 1300 },
760
763
  children: /* @__PURE__ */ e(
761
- ze,
764
+ Ie,
762
765
  {
763
766
  elevation: 8,
764
- onMouseEnter: y,
765
- onMouseLeave: S,
767
+ onMouseEnter: x,
768
+ onMouseLeave: w,
766
769
  sx: {
767
770
  minWidth: 120,
768
771
  mt: 0.5,
769
772
  py: 0.5
770
773
  },
771
- children: /* @__PURE__ */ e(Me, { dense: !0, children: o.map((g) => {
774
+ children: /* @__PURE__ */ e(ze, { dense: !0, children: o.map((g) => {
772
775
  const b = t === g.id, k = l === g.id;
773
- return /* @__PURE__ */ h(
774
- Re,
776
+ return /* @__PURE__ */ u(
777
+ Me,
775
778
  {
776
779
  onClick: () => $(g.id),
777
780
  selected: b,
@@ -784,10 +787,10 @@ const H = ({
784
787
  minHeight: 36
785
788
  },
786
789
  children: [
787
- /* @__PURE__ */ h(B, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
788
- b && /* @__PURE__ */ e(_e, { fontSize: "small", color: "primary", sx: { fontSize: 14 } }),
790
+ /* @__PURE__ */ u(D, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
791
+ b && /* @__PURE__ */ e(Oe, { fontSize: "small", color: "primary", sx: { fontSize: 14 } }),
789
792
  /* @__PURE__ */ e(
790
- Te,
793
+ _e,
791
794
  {
792
795
  primary: g.label,
793
796
  primaryTypographyProps: {
@@ -799,7 +802,7 @@ const H = ({
799
802
  )
800
803
  ] }),
801
804
  /* @__PURE__ */ e(
802
- Le,
805
+ Te,
803
806
  {
804
807
  size: "small",
805
808
  onClick: (L) => I(L, g.id),
@@ -812,7 +815,7 @@ const H = ({
812
815
  }
813
816
  },
814
817
  title: k ? "Unpin as default" : "Set as default",
815
- children: k ? /* @__PURE__ */ e(We, { fontSize: "small", color: "warning", sx: { fontSize: 14 } }) : /* @__PURE__ */ e(Oe, { fontSize: "small", sx: { fontSize: 14 } })
818
+ children: k ? /* @__PURE__ */ e(De, { fontSize: "small", color: "warning", sx: { fontSize: 14 } }) : /* @__PURE__ */ e(Be, { fontSize: "small", sx: { fontSize: 14 } })
816
819
  }
817
820
  )
818
821
  ]
@@ -827,10 +830,10 @@ const H = ({
827
830
  ]
828
831
  }
829
832
  );
830
- return w ? /* @__PURE__ */ e(
831
- Ne,
833
+ return S ? /* @__PURE__ */ e(
834
+ Le,
832
835
  {
833
- title: w,
836
+ title: S,
834
837
  placement: "top-start",
835
838
  slotProps: {
836
839
  popper: {
@@ -841,7 +844,7 @@ const H = ({
841
844
  }
842
845
  ) : z;
843
846
  };
844
- H.displayName = "ExpandableChip";
847
+ A.displayName = "ExpandableChip";
845
848
  function Ve({
846
849
  selectedPreset: i,
847
850
  onSelect: o,
@@ -854,9 +857,9 @@ function Ve({
854
857
  calendarEntry: n
855
858
  }) {
856
859
  const a = i === "today";
857
- return /* @__PURE__ */ h(B, { className: "hybrid-date-picker__quick-bar", children: [
860
+ return /* @__PURE__ */ u(D, { className: "hybrid-date-picker__quick-bar", children: [
858
861
  /* @__PURE__ */ e(
859
- X,
862
+ K,
860
863
  {
861
864
  label: "Today",
862
865
  size: "small",
@@ -870,10 +873,10 @@ function Ve({
870
873
  }
871
874
  ),
872
875
  /* @__PURE__ */ e(
873
- H,
876
+ A,
874
877
  {
875
878
  groupId: "rolling",
876
- options: we,
879
+ options: ke,
877
880
  selectedId: i,
878
881
  defaultId: t,
879
882
  onSelect: o,
@@ -885,7 +888,7 @@ function Ve({
885
888
  }
886
889
  ),
887
890
  /* @__PURE__ */ e(
888
- H,
891
+ A,
889
892
  {
890
893
  groupId: "period",
891
894
  options: Se,
@@ -899,8 +902,8 @@ function Ve({
899
902
  disableHover: r
900
903
  }
901
904
  ),
902
- s && /* @__PURE__ */ h(K, { children: [
903
- /* @__PURE__ */ e(De, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5 } }),
905
+ s && /* @__PURE__ */ u(J, { children: [
906
+ /* @__PURE__ */ e(Ne, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5 } }),
904
907
  n
905
908
  ] })
906
909
  ] });
@@ -909,13 +912,13 @@ Ve.displayName = "TimeframeQuickBar";
909
912
  export {
910
913
  ee as B,
911
914
  te as D,
912
- H as E,
915
+ A as E,
913
916
  Pe as M,
914
917
  re as O,
915
918
  ie as S,
916
919
  j as T,
917
- A as a,
920
+ F as a,
918
921
  Ve as b,
919
922
  je as e,
920
- Ee as u
923
+ $e as u
921
924
  };
package/catalog.js CHANGED
@@ -1,10 +1,10 @@
1
- import { A as I, Q as N, E as B, J as x, L as D, D as F, F as A, H as M, K as v, T as R, U as _, V as H, aX as W, W as k, aY as z, aZ as L, a_ as E, X as G, Y as $, Z as O } from "./Expandable-KDhjReJP.js";
2
- import { a5 as Be, b2 as xe, aA as De, aj as Fe, $ as Ae, ap as Me, bG as ve, N as Re, aa as _e, P as He, B as We, bc as ke, C as ze, bk as Le, b as Ee, c as Ge, O as $e, q as Oe, af as we, aO as Ve, aD as Xe, as as je, m as Ze, o as Ue, aG as qe, ad as Ke, b4 as Qe, ab as Ye, _ as Je, ar as ea, aR as aa, b6 as sa, p as ta, ao as ra, a2 as oa, at as ia, a4 as na, ac as la, bw as da, aU as ca, t as ma, I as ga, i as pa, ax as ua, M as ba, y as fa, au as ha, bB as Ta, aq as ya, w as Sa, aT as Pa, a$ as Ca, al as Ia, aL as Na, ai as Ba, an as xa, av as Da, bI as Fa, aS as Aa, bH as Ma, ae as va, e as Ra, R as _a, l as Ha, r as Wa, aI as ka, ak as za, ag as La, j as Ea, z as Ga, b3 as $a, ah as Oa, b8 as wa, bb as Va, b9 as Xa, ba as ja, k as Za, b5 as Ua, S as qa, bd as Ka, aw as Qa, b7 as Ya, bC as Ja, am as es, bF as as, v as ss, bx as ts, n as rs, h as os, s as is, a0 as ns, a9 as ls, bj as ds, bq as cs, aC as ms, a8 as gs, aQ as ps, aF as us, az as bs, aN as fs, aK as hs, a3 as Ts } from "./Expandable-KDhjReJP.js";
1
+ import { A as I, Q as N, E as B, J as x, L as D, D as F, F as A, H as M, K as v, T as R, U as _, V as H, aX as W, W as k, aY as z, aZ as L, a_ as E, X as G, Y as $, Z as O } from "./Expandable-DDbKbPoO.js";
2
+ import { a5 as Be, b2 as xe, aA as De, aj as Fe, $ as Ae, ap as Me, bG as ve, N as Re, aa as _e, P as He, B as We, bc as ke, C as ze, bk as Le, b as Ee, c as Ge, O as $e, q as Oe, af as we, aO as Ve, aD as Xe, as as je, m as Ze, o as Ue, aG as qe, ad as Ke, b4 as Qe, ab as Ye, _ as Je, ar as ea, aR as aa, b6 as sa, p as ta, ao as ra, a2 as oa, at as ia, a4 as na, ac as la, bw as da, aU as ca, t as ma, I as ga, i as pa, ax as ua, M as ba, y as fa, au as ha, bB as Ta, aq as ya, w as Sa, aT as Pa, a$ as Ca, al as Ia, aL as Na, ai as Ba, an as xa, av as Da, bI as Fa, aS as Aa, bH as Ma, ae as va, e as Ra, R as _a, l as Ha, r as Wa, aI as ka, ak as za, ag as La, j as Ea, z as Ga, b3 as $a, ah as Oa, b8 as wa, bb as Va, b9 as Xa, ba as ja, k as Za, b5 as Ua, S as qa, bd as Ka, aw as Qa, b7 as Ya, bC as Ja, am as es, bF as as, v as ss, bx as ts, n as rs, h as os, s as is, a0 as ns, a9 as ls, bj as ds, bq as cs, aC as ms, a8 as gs, aQ as ps, aF as us, az as bs, aN as fs, aK as hs, a3 as Ts } from "./Expandable-DDbKbPoO.js";
3
3
  import { jsx as c, jsxs as S } from "react/jsx-runtime";
4
4
  import { C as e, T as a, aa as w, S as s, E as u, R as g, Z as V } from "./UIContext-CGQI_KJk.js";
5
5
  import { B as X, a as j, e as Z, c as U, d as q, b as K } from "./BaseAsyncButton-CJlY7Uik.js";
6
6
  import { b as Q } from "./BaseText-Dxbk1JJa.js";
7
- import { B as Ss, D as Ps, M as Cs, O as Is, a as Ns, T as Bs } from "./TimeframeQuickBar-I9Io0v7_.js";
7
+ import { B as Ss, D as Ps, M as Cs, O as Is, a as Ns, T as Bs } from "./TimeframeQuickBar-CHl409rH.js";
8
8
  import { formatDateRange as Ds, resolveEvent as Fs, resolvePreset as As, smartDateFormat as Ms } from "@mt-gloss/utils/dateInterpretation";
9
9
  const Y = {
10
10
  page: {
@@ -5,7 +5,7 @@ import * as B from "react";
5
5
  import k, { useState as x, useRef as q, createContext as be, useContext as ve, useMemo as ce, useEffect as z, useCallback as R, useLayoutEffect as Re } from "react";
6
6
  import { SPIN_COMMIT_REDUCED as $e, SPIN_COMMIT_FULL as Fe } from "@mt-gloss/motion";
7
7
  import { useMotionValue as de, animate as V, motion as ze } from "framer-motion";
8
- import { b as He, M as ue } from "./TimeframeQuickBar-I9Io0v7_.js";
8
+ import { b as He, M as ue } from "./TimeframeQuickBar-CHl409rH.js";
9
9
  import { useSensors as Ue, useSensor as pe, PointerSensor as Be, KeyboardSensor as Ve, DndContext as Ye, closestCenter as Ke } from "@dnd-kit/core";
10
10
  import { sortableKeyboardCoordinates as qe, SortableContext as Ge, horizontalListSortingStrategy as Qe, arrayMove as We, useSortable as je } from "@dnd-kit/sortable";
11
11
  import { CSS as Ze } from "@dnd-kit/utilities";
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { s as U, g as ke, u as ze } from "./COMMITS-BI1gFcrd.js";
2
2
  import { H as cr, N as dr, C as ur, e as mr, P as pr, k as gr, S as hr, c as fr, j as br, i as vr, h as yr, p as _r, a as wr, r as Cr, d as Nr, f as kr, b as Sr } from "./COMMITS-BI1gFcrd.js";
3
- import { u as Ge, C as He } from "./Expandable-KDhjReJP.js";
4
- import { Q as xr, V as Tr, T as Rr, U as Mr, a5 as Pr, b2 as Ar, aA as Er, aj as Fr, $ as Ir, ap as Lr, N as Or, aa as $r, P as Br, B as zr, a as Gr, A as Hr, K as Wr, bc as Vr, J as Kr, L as jr, E as Ur, D as qr, H as Yr, F as Qr, bk as Xr, b as Jr, c as Zr, O as es, q as ts, af as as, aO as ns, A as rs, K as ss, J as is, L as ls, E as os, D as cs, H as ds, F as us, aX as ms, a_ as ps, aZ as gs, aY as hs, a$ as fs, aD as bs, a7 as vs, a6 as ys, as as _s, m as ws, o as Cs, aG as Ns, ad as ks, b4 as Ss, ab as Ds, _ as xs, bu as Ts, bt as Rs, bv as Ms, ar as Ps, aR as As, b6 as Es, bi as Fs, p as Is, ao as Ls, bo as Os, bf as $s, a2 as Bs, at as zs, a4 as Gs, bn as Hs, bD as Ws, G as Vs, f as Ks, ac as js, bw as Us, aU as qs, t as Ys, x as Qs, I as Xs, i as Js, ax as Zs, bz as ei, M as ti, y as ai, W as ni, Z as ri, X as si, Y as ii, au as li, bB as oi, by as ci, aq as di, w as ui, aT as mi, al as pi, aL as gi, ai as hi, an as fi, av as bi, aS as vi, ae as yi, e as _i, R as wi, l as Ci, r as Ni, aI as ki, bl as Si, bm as Di, ak as xi, ag as Ti, j as Ri, z as Mi, b3 as Pi, ah as Ai, bA as Ei, b8 as Fi, bb as Ii, b9 as Li, ba as Oi, k as $i, b5 as Bi, S as zi, bd as Gi, aw as Hi, b7 as Wi, bC as Vi, am as Ki, v as ji, bx as Ui, n as qi, h as Yi, s as Qi, a0 as Xi, a1 as Ji, a9 as Zi, bj as el, bq as tl, aB as al, aC as nl, a8 as rl, aP as sl, aQ as il, aE as ll, aF as ol, aH as cl, bs as dl, br as ul, ay as ml, az as pl, b1 as gl, b0 as hl, aM as fl, aN as bl, aW as vl, aJ as yl, aK as _l, d as wl, bp as Cl, be as Nl, bg as kl, bh as Sl, aV as Dl, a3 as xl, bE as Tl, g as Rl } from "./Expandable-KDhjReJP.js";
3
+ import { u as Ge, C as He } from "./Expandable-DDbKbPoO.js";
4
+ import { Q as xr, V as Tr, T as Rr, U as Mr, a5 as Pr, b2 as Ar, aA as Er, aj as Fr, $ as Ir, ap as Lr, N as Or, aa as $r, P as Br, B as zr, a as Gr, A as Hr, K as Wr, bc as Vr, J as Kr, L as jr, E as Ur, D as qr, H as Yr, F as Qr, bk as Xr, b as Jr, c as Zr, O as es, q as ts, af as as, aO as ns, A as rs, K as ss, J as is, L as ls, E as os, D as cs, H as ds, F as us, aX as ms, a_ as ps, aZ as gs, aY as hs, a$ as fs, aD as bs, a7 as vs, a6 as ys, as as _s, m as ws, o as Cs, aG as Ns, ad as ks, b4 as Ss, ab as Ds, _ as xs, bu as Ts, bt as Rs, bv as Ms, ar as Ps, aR as As, b6 as Es, bi as Fs, p as Is, ao as Ls, bo as Os, bf as $s, a2 as Bs, at as zs, a4 as Gs, bn as Hs, bD as Ws, G as Vs, f as Ks, ac as js, bw as Us, aU as qs, t as Ys, x as Qs, I as Xs, i as Js, ax as Zs, bz as ei, M as ti, y as ai, W as ni, Z as ri, X as si, Y as ii, au as li, bB as oi, by as ci, aq as di, w as ui, aT as mi, al as pi, aL as gi, ai as hi, an as fi, av as bi, aS as vi, ae as yi, e as _i, R as wi, l as Ci, r as Ni, aI as ki, bl as Si, bm as Di, ak as xi, ag as Ti, j as Ri, z as Mi, b3 as Pi, ah as Ai, bA as Ei, b8 as Fi, bb as Ii, b9 as Li, ba as Oi, k as $i, b5 as Bi, S as zi, bd as Gi, aw as Hi, b7 as Wi, bC as Vi, am as Ki, v as ji, bx as Ui, n as qi, h as Yi, s as Qi, a0 as Xi, a1 as Ji, a9 as Zi, bj as el, bq as tl, aB as al, aC as nl, a8 as rl, aP as sl, aQ as il, aE as ll, aF as ol, aH as cl, bs as dl, br as ul, ay as ml, az as pl, b1 as gl, b0 as hl, aM as fl, aN as bl, aW as vl, aJ as yl, aK as _l, d as wl, bp as Cl, be as Nl, bg as kl, bh as Sl, aV as Dl, a3 as xl, bE as Tl, g as Rl } from "./Expandable-DDbKbPoO.js";
5
5
  import { jsxs as f, jsx as a, Fragment as I } from "react/jsx-runtime";
6
6
  import * as O from "react";
7
7
  import V, { useRef as M, useEffect as E, useState as A, useCallback as C, useId as Se, useMemo as de, useLayoutEffect as De, createContext as We, useContext as Ve } from "react";
@@ -14,7 +14,7 @@ import { lerpHex as qe } from "@mt-gloss/utils";
14
14
  import { DEFAULT_MARKET_PRESETS as Ll, DEFAULT_PINNED as Ol, PERIOD_OPTIONS as $l, ROLLING_OPTIONS as Bl, TODAY_PRESET as zl, findPreset as Gl, formatDateRange as Hl, formatMarketDates as Wl, formatTrend as Vl, formatValue as Kl, generateMarketId as jl, getAllPresets as Ul, getDateRangeForPreset as ql, getPresetLabel as Yl, getTransitionStyle as Ql, interpolate as Xl, isInRange as Jl, isMarketActive as Zl, isSameDay as eo, normalizePresetId as to, parseNumericValue as ao, toUppercasePresetId as no } from "@mt-gloss/utils";
15
15
  import { B as Ye, U as ue } from "./UIContext-CGQI_KJk.js";
16
16
  import { a as so, u as io } from "./UIContext-CGQI_KJk.js";
17
- import { B as oo, D as co, E as uo, M as mo, O as po, a as go, S as ho, b as fo, T as bo, e as vo } from "./TimeframeQuickBar-I9Io0v7_.js";
17
+ import { B as oo, D as co, E as uo, M as mo, O as po, a as go, S as ho, b as fo, T as bo, e as vo } from "./TimeframeQuickBar-CHl409rH.js";
18
18
  import Qe from "@mui/icons-material/AccessTime";
19
19
  import Xe from "@mui/icons-material/Tune";
20
20
  import Je from "@mui/icons-material/ViewColumn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.1.152",
3
+ "version": "0.1.154",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"