@mt-gloss/ui 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Expandable-Bvd-OyRQ.js → Expandable-B7Umnd4T.js} +2247 -2232
- package/catalog.js +2 -2
- package/index.js +457 -429
- package/lib/primitives/dashboard/MetricCard/EdgeHoverHandle.d.ts +8 -0
- package/lib/primitives/dashboard/MetricCard/StackedGroupCard.d.ts +10 -1
- package/lib/primitives/dashboard/MetricCard/useEdgeHoverResize.d.ts +11 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { N as Xt, T as Jt, O as ea, Q as ta, b2 as aa, av as ra, ad as na, Z as oa, aj as sa, K as ia, a4 as la, bl as da, P as ca, B as ua, a as ma, y as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
1
|
+
import { N as Xt, T as Jt, O as ea, Q as ta, b2 as aa, av as ra, ad as na, Z as oa, aj as sa, K as ia, a4 as la, bl as da, P as ca, B as ua, a as ma, y as ga, H as pa, be as ba, F as ha, J as fa, A as va, z as Ca, bd as ya, E as Da, D as wa, bt as Na, b as Sa, C as Ta, L as xa, o as ka, a9 as Ia, aJ as Pa, y as _a, H as Ma, F as Ra, J as Fa, A as Oa, z as Aa, E as Ea, D as La, aX as Ba, a_ as Ga, aZ as $a, aY as Ha, a$ as za, ay as Ka, am as Wa, k as Za, m as Ya, aB as qa, a7 as Va, b4 as Ua, a5 as ja, bm as Qa, Y as Xa, bD as Ja, bC as er, bE as tr, al as ar, aM as rr, b6 as nr, bI as or, n as sr, ai as ir, bx as lr, bp as dr, a0 as cr, an as ur, a2 as mr, bw as gr, G as pr, d as br, bg as hr, a6 as fr, bF as vr, aP as Cr, r as yr, v as Dr, I as wr, g as Nr, as as Sr, bJ as Tr, M as xr, w as kr, U as Ir, X as Pr, V as _r, W as Mr, ao as Rr, bc as Fr, bL as Or, bH as Ar, ak as Er, t as Lr, bn as Br, aO as Gr, af as $r, aG as Hr, ac as zr, ah as Kr, aq as Wr, aN as Zr, a8 as Yr, ap as qr, c as Vr, R as Ur, j as jr, p as Qr, aD as Xr, bu as Jr, bv as en, ae as tn, aa as an, h as rn, x as nn, b3 as on, ab as sn, bK as ln, b8 as dn, bb as cn, b9 as un, ba as mn, i as gn, b5 as pn, bk as bn, S as hn, bh as fn, bi as vn, ar as Cn, b7 as yn, bM as Dn, ag as wn, s as Nn, bG as Sn, l as Tn, f as xn, q as kn, _ as In, $ as Pn, a3 as _n, bf as Mn, bs as Rn, bz as Fn, aw as On, ax as An, aK as En, aL as Ln, az as Bn, aA as Gn, aC as $n, aR as Hn, aS as zn, bB as Kn, bA as Wn, aU as Zn, aV as Yn, at as qn, au as Vn, b1 as Un, b0 as jn, aW as Qn, aH as Xn, aI as Jn, aT as eo, aE as to, aF as ao, u as ro, by as no, bo as oo, bq as so, br as io, aQ as lo, a1 as co, e as uo, bj as mo } from "./Expandable-B7Umnd4T.js";
|
|
2
|
+
import { jsxs as R, jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import P, { useRef as F, useEffect as A, useState as M, useCallback as v, forwardRef as ge, useMemo as pe, createContext as be, useContext as he } from "react";
|
|
4
4
|
import { B as fe, U as j } from "./UIContext-C3E-k7HI.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as po, u as bo } from "./UIContext-C3E-k7HI.js";
|
|
6
6
|
import { createPortal as ve } from "react-dom";
|
|
7
|
-
import { DEFAULT_MARKET_PRESETS as fo, DEFAULT_PINNED as vo, PERIOD_OPTIONS as Co, ROLLING_OPTIONS as yo, TODAY_PRESET as Do, findPreset as wo, formatDateRange as No, formatMarketDates as So, formatTrend as To, formatValue as xo, generateMarketId as ko, getAllPresets as Io, getDateRangeForPreset as
|
|
7
|
+
import { DEFAULT_MARKET_PRESETS as fo, DEFAULT_PINNED as vo, PERIOD_OPTIONS as Co, ROLLING_OPTIONS as yo, TODAY_PRESET as Do, findPreset as wo, formatDateRange as No, formatMarketDates as So, formatTrend as To, formatValue as xo, generateMarketId as ko, getAllPresets as Io, getDateRangeForPreset as Po, getPresetLabel as _o, isInRange as Mo, isMarketActive as Ro, isSameDay as Fo, normalizePresetId as Oo, toUppercasePresetId as Ao } from "@mt-gloss/utils";
|
|
8
8
|
function st(e = {}) {
|
|
9
9
|
const { enabled: t = !0, returnTo: r } = e, a = F(null);
|
|
10
|
-
return
|
|
10
|
+
return A(() => {
|
|
11
11
|
t && (a.current = r || document.activeElement);
|
|
12
|
-
}, [t, r]),
|
|
12
|
+
}, [t, r]), A(() => () => {
|
|
13
13
|
t && a.current && setTimeout(() => {
|
|
14
14
|
a.current?.focus?.();
|
|
15
15
|
}, 0);
|
|
@@ -24,92 +24,92 @@ function it(e) {
|
|
|
24
24
|
orientation: o = "vertical",
|
|
25
25
|
enabled: s = !0,
|
|
26
26
|
isItemDisabled: d,
|
|
27
|
-
onSelect:
|
|
28
|
-
onEscape:
|
|
29
|
-
} = e, [
|
|
30
|
-
(
|
|
31
|
-
r === void 0 &&
|
|
27
|
+
onSelect: m,
|
|
28
|
+
onEscape: g
|
|
29
|
+
} = e, [y, w] = M(-1), l = r !== void 0 ? r : y, i = v(
|
|
30
|
+
(c) => {
|
|
31
|
+
r === void 0 && w(c), a?.(c);
|
|
32
32
|
},
|
|
33
33
|
[r, a]
|
|
34
|
-
),
|
|
35
|
-
(
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
let
|
|
42
|
-
return n ?
|
|
34
|
+
), f = v(() => t.map((c, D) => ({ item: c, index: D })).filter(({ item: c, index: D }) => !d?.(c, D)).map(({ index: c }) => c), [t, d]), N = v(
|
|
35
|
+
(c, D) => {
|
|
36
|
+
const h = f();
|
|
37
|
+
if (h.length === 0) return -1;
|
|
38
|
+
const I = h.indexOf(c);
|
|
39
|
+
if (I === -1)
|
|
40
|
+
return D === 1 ? h.find((E) => E > c) ?? (n ? h[0] : -1) : [...h].reverse().find((G) => G < c) ?? (n ? h[h.length - 1] : -1);
|
|
41
|
+
let x = I + D;
|
|
42
|
+
return n ? x = (x + h.length) % h.length : x = Math.max(0, Math.min(h.length - 1, x)), h[x];
|
|
43
43
|
},
|
|
44
|
-
[
|
|
45
|
-
),
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
(
|
|
44
|
+
[f, n]
|
|
45
|
+
), k = v(() => {
|
|
46
|
+
const c = f();
|
|
47
|
+
c.length > 0 && i(c[0]);
|
|
48
|
+
}, [f, i]), b = v(() => {
|
|
49
|
+
const c = f();
|
|
50
|
+
c.length > 0 && i(c[c.length - 1]);
|
|
51
|
+
}, [f, i]), S = v(() => {
|
|
52
|
+
const c = N(l, 1);
|
|
53
|
+
c !== -1 && i(c);
|
|
54
|
+
}, [l, N, i]), T = v(() => {
|
|
55
|
+
const c = N(l, -1);
|
|
56
|
+
c !== -1 && i(c);
|
|
57
|
+
}, [l, N, i]), C = v(() => {
|
|
58
|
+
i(-1);
|
|
59
|
+
}, [i]), p = v(
|
|
60
|
+
(c) => {
|
|
61
61
|
if (!s) return;
|
|
62
|
-
const { key:
|
|
63
|
-
if (
|
|
64
|
-
|
|
62
|
+
const { key: D } = c, h = D === "ArrowUp" && (o === "vertical" || o === "both"), I = D === "ArrowDown" && (o === "vertical" || o === "both"), x = D === "ArrowLeft" && (o === "horizontal" || o === "both"), E = D === "ArrowRight" && (o === "horizontal" || o === "both");
|
|
63
|
+
if (h || x) {
|
|
64
|
+
c.preventDefault(), l === -1 ? b() : T();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
|
|
67
|
+
if (I || E) {
|
|
68
|
+
c.preventDefault(), l === -1 ? k() : S();
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
|
|
71
|
+
if (D === "Home") {
|
|
72
|
+
c.preventDefault(), k();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
|
|
75
|
+
if (D === "End") {
|
|
76
|
+
c.preventDefault(), b();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if ((
|
|
80
|
-
|
|
81
|
-
const G = t[
|
|
82
|
-
d?.(G,
|
|
79
|
+
if ((D === "Enter" || D === " ") && l >= 0 && l < t.length) {
|
|
80
|
+
c.preventDefault();
|
|
81
|
+
const G = t[l];
|
|
82
|
+
d?.(G, l) || m?.(G, l);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (D === "Escape") {
|
|
86
|
+
g?.();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
[
|
|
91
91
|
s,
|
|
92
92
|
o,
|
|
93
|
-
|
|
93
|
+
l,
|
|
94
94
|
t,
|
|
95
|
+
k,
|
|
96
|
+
b,
|
|
97
|
+
S,
|
|
95
98
|
T,
|
|
96
|
-
i,
|
|
97
|
-
v,
|
|
98
|
-
N,
|
|
99
99
|
d,
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
m,
|
|
101
|
+
g
|
|
102
102
|
]
|
|
103
103
|
);
|
|
104
104
|
return {
|
|
105
|
-
focusedIndex:
|
|
106
|
-
setFocusedIndex:
|
|
107
|
-
handleKeyDown:
|
|
108
|
-
focusFirst:
|
|
109
|
-
focusLast:
|
|
110
|
-
focusNext:
|
|
111
|
-
focusPrevious:
|
|
112
|
-
resetFocus:
|
|
105
|
+
focusedIndex: l,
|
|
106
|
+
setFocusedIndex: i,
|
|
107
|
+
handleKeyDown: p,
|
|
108
|
+
focusFirst: k,
|
|
109
|
+
focusLast: b,
|
|
110
|
+
focusNext: S,
|
|
111
|
+
focusPrevious: T,
|
|
112
|
+
resetFocus: C
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
const K = (e) => {
|
|
@@ -169,11 +169,11 @@ const K = (e) => {
|
|
|
169
169
|
{ variant: "block", width: 200, height: 32, borderRadius: 8 },
|
|
170
170
|
{ variant: "block", width: "80%", height: 12, borderRadius: "4px" },
|
|
171
171
|
{ variant: "block", width: 120, height: 44, borderRadius: 22 }
|
|
172
|
-
],
|
|
172
|
+
], gt = [
|
|
173
173
|
{ variant: "text", lines: 3, lineHeight: 14, gap: 8 },
|
|
174
174
|
{ variant: "text", lines: 2, lineHeight: 16, gap: 10 },
|
|
175
175
|
{ variant: "text", lines: 5, lineHeight: 12, gap: 6 }
|
|
176
|
-
],
|
|
176
|
+
], pt = [
|
|
177
177
|
{ variant: "circle", size: 24 },
|
|
178
178
|
{ variant: "circle", size: 40 },
|
|
179
179
|
{ variant: "circle", size: 64 }
|
|
@@ -231,115 +231,117 @@ function Te({
|
|
|
231
231
|
overflowActions: o,
|
|
232
232
|
onClose: s
|
|
233
233
|
}) {
|
|
234
|
-
const [d,
|
|
234
|
+
const [d, m] = M(null), g = F(null), y = v(() => {
|
|
235
235
|
if (!t) return { ...J, top: 0, left: 0 };
|
|
236
|
-
const
|
|
236
|
+
const i = t.getBoundingClientRect();
|
|
237
237
|
return {
|
|
238
238
|
...J,
|
|
239
|
-
top:
|
|
240
|
-
left:
|
|
239
|
+
top: i.bottom + 4,
|
|
240
|
+
left: i.left
|
|
241
241
|
};
|
|
242
242
|
}, [t]);
|
|
243
|
-
if (
|
|
243
|
+
if (A(() => {
|
|
244
244
|
if (!e) return;
|
|
245
|
-
const
|
|
246
|
-
|
|
245
|
+
const i = (f) => {
|
|
246
|
+
f.key === "Escape" && s();
|
|
247
247
|
};
|
|
248
|
-
return document.addEventListener("keydown",
|
|
249
|
-
}, [e, s]),
|
|
248
|
+
return document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i);
|
|
249
|
+
}, [e, s]), A(() => {
|
|
250
250
|
if (!e) return;
|
|
251
|
-
const
|
|
252
|
-
|
|
251
|
+
const i = (f) => {
|
|
252
|
+
g.current && !g.current.contains(f.target) && s();
|
|
253
253
|
};
|
|
254
|
-
return document.addEventListener("pointerdown",
|
|
254
|
+
return document.addEventListener("pointerdown", i, !0), () => document.removeEventListener("pointerdown", i, !0);
|
|
255
255
|
}, [e, s]), !e) return null;
|
|
256
|
-
const
|
|
256
|
+
const w = o && o.length > 0, l = /* @__PURE__ */ R(
|
|
257
257
|
"div",
|
|
258
258
|
{
|
|
259
|
-
ref:
|
|
259
|
+
ref: g,
|
|
260
260
|
"data-status-chip-menu": r,
|
|
261
261
|
role: "menu",
|
|
262
262
|
"aria-label": "Status actions",
|
|
263
|
-
style:
|
|
263
|
+
style: y(),
|
|
264
264
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ u(
|
|
266
266
|
"button",
|
|
267
267
|
{
|
|
268
268
|
role: "menuitem",
|
|
269
269
|
style: Ne(d === "__primary"),
|
|
270
|
-
onMouseEnter: () =>
|
|
271
|
-
onMouseLeave: () =>
|
|
270
|
+
onMouseEnter: () => m("__primary"),
|
|
271
|
+
onMouseLeave: () => m(null),
|
|
272
272
|
onClick: () => {
|
|
273
273
|
a(r), s();
|
|
274
274
|
},
|
|
275
275
|
children: "Open in table"
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ u(
|
|
279
279
|
"button",
|
|
280
280
|
{
|
|
281
281
|
role: "menuitem",
|
|
282
282
|
style: Y(d === "__graph"),
|
|
283
|
-
onMouseEnter: () =>
|
|
284
|
-
onMouseLeave: () =>
|
|
283
|
+
onMouseEnter: () => m("__graph"),
|
|
284
|
+
onMouseLeave: () => m(null),
|
|
285
285
|
onClick: () => {
|
|
286
286
|
n(r), s();
|
|
287
287
|
},
|
|
288
288
|
children: "Show on graph"
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
w && /* @__PURE__ */ u("div", { style: Se }),
|
|
292
|
+
w && o?.map((i) => /* @__PURE__ */ u(
|
|
293
293
|
"button",
|
|
294
294
|
{
|
|
295
295
|
role: "menuitem",
|
|
296
|
-
style: Y(d ===
|
|
297
|
-
onMouseEnter: () =>
|
|
298
|
-
onMouseLeave: () =>
|
|
296
|
+
style: Y(d === i.id),
|
|
297
|
+
onMouseEnter: () => m(i.id),
|
|
298
|
+
onMouseLeave: () => m(null),
|
|
299
299
|
onClick: () => {
|
|
300
|
-
|
|
300
|
+
i.onSelect(r), s();
|
|
301
301
|
},
|
|
302
|
-
children:
|
|
302
|
+
children: i.label
|
|
303
303
|
},
|
|
304
|
-
|
|
304
|
+
i.id
|
|
305
305
|
))
|
|
306
306
|
]
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
|
-
return ve(
|
|
309
|
+
return ve(l, document.body);
|
|
310
310
|
}
|
|
311
311
|
Te.displayName = "StatusSlotChipMenu";
|
|
312
|
-
const xe =
|
|
313
|
-
function({ state: t, onPointerDown: r, onPointerUp: a,
|
|
314
|
-
const
|
|
312
|
+
const xe = ge(
|
|
313
|
+
function({ state: t, onPointerDown: r, onPointerUp: a, onPointerEnter: n, onPointerLeave: o, edge: s = "right", ariaLabel: d = "Resize card" }, m) {
|
|
314
|
+
const g = t === "handle-visible" || t === "dragging", y = (l) => {
|
|
315
315
|
try {
|
|
316
|
-
|
|
316
|
+
l.currentTarget.setPointerCapture(l.pointerId);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
|
-
r(
|
|
320
|
-
},
|
|
319
|
+
r(l);
|
|
320
|
+
}, w = (l) => {
|
|
321
321
|
try {
|
|
322
|
-
|
|
322
|
+
l.currentTarget.hasPointerCapture?.(l.pointerId) && l.currentTarget.releasePointerCapture(l.pointerId);
|
|
323
323
|
} catch {
|
|
324
324
|
}
|
|
325
|
-
a(
|
|
325
|
+
a(l);
|
|
326
326
|
};
|
|
327
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ u(
|
|
328
328
|
"button",
|
|
329
329
|
{
|
|
330
|
-
ref:
|
|
330
|
+
ref: m,
|
|
331
331
|
type: "button",
|
|
332
|
-
"aria-label":
|
|
333
|
-
"data-edge":
|
|
332
|
+
"aria-label": d,
|
|
333
|
+
"data-edge": s,
|
|
334
334
|
"data-resize-state": t,
|
|
335
335
|
className: [
|
|
336
336
|
"gloss-edge-handle",
|
|
337
|
-
`gloss-edge-handle--${
|
|
338
|
-
|
|
337
|
+
`gloss-edge-handle--${s}`,
|
|
338
|
+
g ? "gloss-edge-handle--visible" : ""
|
|
339
339
|
].filter(Boolean).join(" "),
|
|
340
|
-
onPointerDown:
|
|
341
|
-
onPointerUp:
|
|
342
|
-
|
|
340
|
+
onPointerDown: y,
|
|
341
|
+
onPointerUp: w,
|
|
342
|
+
onPointerEnter: n,
|
|
343
|
+
onPointerLeave: o,
|
|
344
|
+
tabIndex: g ? 0 : -1
|
|
343
345
|
}
|
|
344
346
|
);
|
|
345
347
|
}
|
|
@@ -351,7 +353,7 @@ function ke({
|
|
|
351
353
|
enterMs: r = 180,
|
|
352
354
|
exitMs: a = 120
|
|
353
355
|
}) {
|
|
354
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ u(
|
|
355
357
|
"div",
|
|
356
358
|
{
|
|
357
359
|
"aria-hidden": "true",
|
|
@@ -375,48 +377,74 @@ function vt({
|
|
|
375
377
|
enterMs: o = 180,
|
|
376
378
|
exitMs: s = 120
|
|
377
379
|
}) {
|
|
378
|
-
const [d,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}, [
|
|
385
|
-
(
|
|
386
|
-
|
|
380
|
+
const [d, m] = M("idle"), [g, y] = M(e), w = F(null), l = F(null), i = F("idle");
|
|
381
|
+
A(() => {
|
|
382
|
+
i.current = d;
|
|
383
|
+
}, [d]);
|
|
384
|
+
const f = 180, N = v(() => {
|
|
385
|
+
w.current && (clearTimeout(w.current), w.current = null);
|
|
386
|
+
}, []), k = v(() => {
|
|
387
|
+
m((p) => p !== "idle" ? p : (w.current = setTimeout(() => m("handle-visible"), n), "dwelling"));
|
|
388
|
+
}, [n]), b = v(() => {
|
|
389
|
+
N(), m((p) => p === "dwelling" || p === "handle-visible" ? "idle" : p);
|
|
390
|
+
}, [N]), S = v(
|
|
391
|
+
(p) => {
|
|
392
|
+
i.current === "handle-visible" && (l.current = p.clientX, i.current = "dragging", m("dragging"));
|
|
387
393
|
},
|
|
388
394
|
[]
|
|
389
|
-
),
|
|
390
|
-
(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
});
|
|
395
|
+
), T = v(
|
|
396
|
+
(p) => {
|
|
397
|
+
if (i.current !== "dragging") return;
|
|
398
|
+
const c = p.clientX - (l.current ?? p.clientX), D = Math.round(c / f), h = Math.min(3, Math.max(1, e + D)), I = h !== e;
|
|
399
|
+
if (m(I ? "committed" : "cancelled"), I) {
|
|
400
|
+
const x = h > e ? "grow" : "shrink";
|
|
401
|
+
r({ direction: x, targetColSpan: h, mode: t ? "slot-fill" : "sparkline-fidelity" });
|
|
402
|
+
} else
|
|
403
|
+
a?.();
|
|
399
404
|
},
|
|
400
405
|
[e, t, r, a]
|
|
401
|
-
),
|
|
402
|
-
|
|
403
|
-
}, [
|
|
404
|
-
return
|
|
406
|
+
), C = v(() => {
|
|
407
|
+
N(), m((p) => p === "dragging" || p === "handle-visible" ? (a?.(), "cancelled") : p);
|
|
408
|
+
}, [N, a]);
|
|
409
|
+
return A(() => {
|
|
405
410
|
if (d !== "dragging" && d !== "handle-visible") return;
|
|
406
|
-
const
|
|
407
|
-
|
|
411
|
+
const p = (c) => {
|
|
412
|
+
c.key === "Escape" && C();
|
|
413
|
+
};
|
|
414
|
+
return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
|
|
415
|
+
}, [d, C]), A(() => {
|
|
416
|
+
if (d !== "dragging") {
|
|
417
|
+
y(e);
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const p = (c) => {
|
|
421
|
+
const D = c.clientX - (l.current ?? c.clientX), h = Math.round(D / f), I = Math.min(3, Math.max(1, e + h));
|
|
422
|
+
y((x) => x === I ? x : I);
|
|
408
423
|
};
|
|
409
|
-
return window.addEventListener("
|
|
410
|
-
}, [d,
|
|
424
|
+
return window.addEventListener("pointermove", p), () => window.removeEventListener("pointermove", p);
|
|
425
|
+
}, [d, e]), A(() => () => N(), [N]), A(() => {
|
|
411
426
|
if (d !== "committed" && d !== "cancelled") return;
|
|
412
|
-
const
|
|
413
|
-
return () => clearTimeout(
|
|
427
|
+
const p = setTimeout(() => m("idle"), s);
|
|
428
|
+
return () => clearTimeout(p);
|
|
414
429
|
}, [d, s]), {
|
|
415
430
|
state: d,
|
|
416
|
-
enterEdgeZone:
|
|
417
|
-
leaveEdgeZone:
|
|
418
|
-
handleProps: {
|
|
419
|
-
|
|
431
|
+
enterEdgeZone: k,
|
|
432
|
+
leaveEdgeZone: b,
|
|
433
|
+
handleProps: {
|
|
434
|
+
onPointerDown: S,
|
|
435
|
+
onPointerUp: T,
|
|
436
|
+
// Bug E: handle continues zone presence so pointer crossing sentinel→handle
|
|
437
|
+
// doesn't collapse state. handle's pointerenter = stay in zone.
|
|
438
|
+
onPointerEnter: k,
|
|
439
|
+
onPointerLeave: b
|
|
440
|
+
},
|
|
441
|
+
previewColSpan: g,
|
|
442
|
+
ghostProps: {
|
|
443
|
+
visible: d === "dragging",
|
|
444
|
+
targetColSpan: g,
|
|
445
|
+
enterMs: o,
|
|
446
|
+
exitMs: s
|
|
447
|
+
}
|
|
420
448
|
};
|
|
421
449
|
}
|
|
422
450
|
const Ct = {
|
|
@@ -536,20 +564,20 @@ const Ct = {
|
|
|
536
564
|
variant: "standard",
|
|
537
565
|
label: "Total Revenue",
|
|
538
566
|
isLoading: !0
|
|
539
|
-
},
|
|
567
|
+
}, Pe = {
|
|
540
568
|
variant: "standard",
|
|
541
569
|
label: "Total Revenue",
|
|
542
570
|
value: 125430,
|
|
543
571
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
544
572
|
isError: !0
|
|
545
|
-
},
|
|
573
|
+
}, _e = {
|
|
546
574
|
variant: "standard",
|
|
547
575
|
label: "Total Revenue",
|
|
548
576
|
value: null,
|
|
549
577
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
550
578
|
isEmpty: !0,
|
|
551
579
|
subtitle: "No data"
|
|
552
|
-
},
|
|
580
|
+
}, Me = {
|
|
553
581
|
variant: "standard",
|
|
554
582
|
label: "Total Revenue",
|
|
555
583
|
value: 125430,
|
|
@@ -557,7 +585,7 @@ const Ct = {
|
|
|
557
585
|
trend: { value: 12.5, direction: "up" },
|
|
558
586
|
subtitle: "MTD",
|
|
559
587
|
isStale: !0
|
|
560
|
-
},
|
|
588
|
+
}, Re = {
|
|
561
589
|
variant: "sparkline",
|
|
562
590
|
label: "Daily Orders",
|
|
563
591
|
value: 847,
|
|
@@ -579,10 +607,10 @@ const Ct = {
|
|
|
579
607
|
isStale: !0
|
|
580
608
|
}, Dt = [
|
|
581
609
|
Ie,
|
|
582
|
-
_e,
|
|
583
610
|
Pe,
|
|
584
|
-
|
|
611
|
+
_e,
|
|
585
612
|
Me,
|
|
613
|
+
Re,
|
|
586
614
|
Fe
|
|
587
615
|
], wt = {
|
|
588
616
|
variant: "sparkline",
|
|
@@ -678,22 +706,22 @@ function ne({
|
|
|
678
706
|
onCreatePage: s,
|
|
679
707
|
onManagePages: d
|
|
680
708
|
}) {
|
|
681
|
-
const
|
|
682
|
-
(
|
|
683
|
-
o(
|
|
709
|
+
const m = v(
|
|
710
|
+
(l) => {
|
|
711
|
+
o(l), t();
|
|
684
712
|
},
|
|
685
713
|
[o, t]
|
|
686
|
-
),
|
|
687
|
-
(
|
|
688
|
-
(
|
|
714
|
+
), g = v(
|
|
715
|
+
(l, i) => {
|
|
716
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), m(l));
|
|
689
717
|
},
|
|
690
|
-
[
|
|
691
|
-
),
|
|
718
|
+
[m]
|
|
719
|
+
), y = v(() => {
|
|
692
720
|
s(), t();
|
|
693
|
-
}, [s, t]),
|
|
721
|
+
}, [s, t]), w = v(() => {
|
|
694
722
|
d(), t();
|
|
695
723
|
}, [d, t]);
|
|
696
|
-
return /* @__PURE__ */
|
|
724
|
+
return /* @__PURE__ */ R(
|
|
697
725
|
fe,
|
|
698
726
|
{
|
|
699
727
|
definition: {
|
|
@@ -707,55 +735,55 @@ function ne({
|
|
|
707
735
|
anchorRef: r,
|
|
708
736
|
className: "gloss-page-dropdown",
|
|
709
737
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
const
|
|
712
|
-
return /* @__PURE__ */
|
|
738
|
+
/* @__PURE__ */ u("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((l) => {
|
|
739
|
+
const i = l.id === n;
|
|
740
|
+
return /* @__PURE__ */ R(
|
|
713
741
|
"li",
|
|
714
742
|
{
|
|
715
743
|
role: "menuitemradio",
|
|
716
|
-
"aria-checked":
|
|
717
|
-
"aria-current":
|
|
744
|
+
"aria-checked": i,
|
|
745
|
+
"aria-current": i ? "page" : void 0,
|
|
718
746
|
tabIndex: 0,
|
|
719
|
-
className: `gloss-page-dropdown__item${
|
|
720
|
-
onClick: () =>
|
|
721
|
-
onKeyDown: (
|
|
747
|
+
className: `gloss-page-dropdown__item${i ? " gloss-page-dropdown__item--active" : ""}`,
|
|
748
|
+
onClick: () => m(l.id),
|
|
749
|
+
onKeyDown: (f) => g(l.id, f),
|
|
722
750
|
children: [
|
|
723
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ u(
|
|
724
752
|
"span",
|
|
725
753
|
{
|
|
726
|
-
className: `gloss-page-dropdown__dot${
|
|
754
|
+
className: `gloss-page-dropdown__dot${i ? " gloss-page-dropdown__dot--active" : ""}`
|
|
727
755
|
}
|
|
728
756
|
),
|
|
729
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ u(
|
|
730
758
|
"span",
|
|
731
759
|
{
|
|
732
|
-
className: `gloss-page-dropdown__name${
|
|
733
|
-
children:
|
|
760
|
+
className: `gloss-page-dropdown__name${l.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
761
|
+
children: l.name
|
|
734
762
|
}
|
|
735
763
|
),
|
|
736
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ u("span", { className: "gloss-page-dropdown__count", children: l.cardCount })
|
|
737
765
|
]
|
|
738
766
|
},
|
|
739
|
-
|
|
767
|
+
l.id
|
|
740
768
|
);
|
|
741
769
|
}) }),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ u("hr", { className: "gloss-page-dropdown__separator" }),
|
|
771
|
+
/* @__PURE__ */ u(
|
|
744
772
|
"button",
|
|
745
773
|
{
|
|
746
774
|
role: "menuitem",
|
|
747
775
|
className: "gloss-page-dropdown__action",
|
|
748
|
-
onClick:
|
|
776
|
+
onClick: y,
|
|
749
777
|
children: "+ New page"
|
|
750
778
|
}
|
|
751
779
|
),
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ u("hr", { className: "gloss-page-dropdown__separator" }),
|
|
781
|
+
/* @__PURE__ */ u(
|
|
754
782
|
"button",
|
|
755
783
|
{
|
|
756
784
|
role: "menuitem",
|
|
757
785
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
758
|
-
onClick:
|
|
786
|
+
onClick: w,
|
|
759
787
|
children: "Manage pages"
|
|
760
788
|
}
|
|
761
789
|
)
|
|
@@ -773,34 +801,34 @@ const Oe = function({
|
|
|
773
801
|
onManagePages: s,
|
|
774
802
|
maskRadius: d = "var(--gloss-radius-md)"
|
|
775
803
|
}) {
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
}, []),
|
|
779
|
-
|
|
780
|
-
}, []),
|
|
781
|
-
return /* @__PURE__ */
|
|
804
|
+
const m = F(null), [g, y] = M(!1), w = v(() => {
|
|
805
|
+
y((f) => !f);
|
|
806
|
+
}, []), l = v(() => {
|
|
807
|
+
y(!1);
|
|
808
|
+
}, []), i = a[t]?.id ?? "";
|
|
809
|
+
return /* @__PURE__ */ R(
|
|
782
810
|
"div",
|
|
783
811
|
{
|
|
784
812
|
className: "gloss-page-chip",
|
|
785
|
-
ref:
|
|
813
|
+
ref: m,
|
|
786
814
|
style: { position: "absolute", top: 0, right: 0 },
|
|
787
815
|
"data-page-chip": !0,
|
|
788
816
|
children: [
|
|
789
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ u(
|
|
790
818
|
"div",
|
|
791
819
|
{
|
|
792
820
|
className: "gloss-page-chip__nuzzle",
|
|
793
821
|
style: { "--_nuzzle-r": d }
|
|
794
822
|
}
|
|
795
823
|
),
|
|
796
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ R(
|
|
797
825
|
"button",
|
|
798
826
|
{
|
|
799
827
|
className: "gloss-page-chip__trigger",
|
|
800
828
|
"aria-haspopup": "menu",
|
|
801
|
-
"aria-expanded":
|
|
829
|
+
"aria-expanded": g,
|
|
802
830
|
"aria-label": `Page ${t + 1} of ${r}. Click to switch pages.`,
|
|
803
|
-
onClick:
|
|
831
|
+
onClick: w,
|
|
804
832
|
children: [
|
|
805
833
|
t + 1,
|
|
806
834
|
" / ",
|
|
@@ -808,14 +836,14 @@ const Oe = function({
|
|
|
808
836
|
]
|
|
809
837
|
}
|
|
810
838
|
),
|
|
811
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ u(
|
|
812
840
|
ne,
|
|
813
841
|
{
|
|
814
|
-
open:
|
|
815
|
-
onDismiss:
|
|
816
|
-
anchorRef:
|
|
842
|
+
open: g,
|
|
843
|
+
onDismiss: l,
|
|
844
|
+
anchorRef: m,
|
|
817
845
|
pages: a,
|
|
818
|
-
activePageId:
|
|
846
|
+
activePageId: i,
|
|
819
847
|
onPageChange: n,
|
|
820
848
|
onCreatePage: o,
|
|
821
849
|
onManagePages: s
|
|
@@ -1102,7 +1130,7 @@ function oe(e) {
|
|
|
1102
1130
|
function se(e) {
|
|
1103
1131
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1104
1132
|
}
|
|
1105
|
-
const H =
|
|
1133
|
+
const H = P.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), Pt = [
|
|
1106
1134
|
{
|
|
1107
1135
|
field: "id",
|
|
1108
1136
|
headerName: "Order",
|
|
@@ -1154,7 +1182,7 @@ const H = I.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1154
1182
|
cellClassName: "gloss-tabular-nums",
|
|
1155
1183
|
renderCell: ({ row: e }) => e.date ? se(e.date) : ""
|
|
1156
1184
|
}
|
|
1157
|
-
],
|
|
1185
|
+
], _t = [
|
|
1158
1186
|
{
|
|
1159
1187
|
field: "sku",
|
|
1160
1188
|
headerName: "Item ID",
|
|
@@ -1250,7 +1278,7 @@ const H = I.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1250
1278
|
userType: "sales-agency",
|
|
1251
1279
|
entityFilterOptions: Ae,
|
|
1252
1280
|
itemFilterOptions: Ee
|
|
1253
|
-
},
|
|
1281
|
+
}, Mt = {
|
|
1254
1282
|
...ie,
|
|
1255
1283
|
vizState: {
|
|
1256
1284
|
type: "items",
|
|
@@ -1259,7 +1287,7 @@ const H = I.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1259
1287
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1260
1288
|
timeFrame: "YTD"
|
|
1261
1289
|
}
|
|
1262
|
-
},
|
|
1290
|
+
}, Rt = {
|
|
1263
1291
|
...ie,
|
|
1264
1292
|
vizState: {
|
|
1265
1293
|
type: "orders",
|
|
@@ -1470,11 +1498,11 @@ const H = I.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1470
1498
|
{ id: "ytd", label: "YTD" },
|
|
1471
1499
|
{ id: "lytd", label: "LYTD" }
|
|
1472
1500
|
];
|
|
1473
|
-
function
|
|
1501
|
+
function O(e, t) {
|
|
1474
1502
|
return {
|
|
1475
1503
|
id: e,
|
|
1476
1504
|
colSpan: 1,
|
|
1477
|
-
content:
|
|
1505
|
+
content: P.createElement("div", {
|
|
1478
1506
|
style: {
|
|
1479
1507
|
width: "100%",
|
|
1480
1508
|
height: "100%",
|
|
@@ -1492,21 +1520,21 @@ function M(e, t) {
|
|
|
1492
1520
|
}
|
|
1493
1521
|
function te(e, t) {
|
|
1494
1522
|
return {
|
|
1495
|
-
...
|
|
1523
|
+
...O(e, t),
|
|
1496
1524
|
colSpan: 2
|
|
1497
1525
|
};
|
|
1498
1526
|
}
|
|
1499
1527
|
const zt = [
|
|
1500
|
-
|
|
1501
|
-
|
|
1528
|
+
O("total-revenue", "Total Revenue"),
|
|
1529
|
+
O("total-orders", "Total Orders"),
|
|
1502
1530
|
te("revenue-trend", "Revenue Trend (2x)"),
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1531
|
+
O("avg-order", "Avg Order Value"),
|
|
1532
|
+
O("new-customers", "New Customers"),
|
|
1533
|
+
O("top-salesperson", "Top Salesperson"),
|
|
1506
1534
|
te("order-trend", "Order Trend (2x)"),
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1535
|
+
O("repeat-rate", "Repeat Rate"),
|
|
1536
|
+
O("open-orders", "Open Orders"),
|
|
1537
|
+
O("shipped-orders", "Shipped Orders")
|
|
1510
1538
|
], Kt = {
|
|
1511
1539
|
columns: 6,
|
|
1512
1540
|
rowHeight: 120,
|
|
@@ -1530,7 +1558,7 @@ const zt = [
|
|
|
1530
1558
|
totalPages: 3
|
|
1531
1559
|
};
|
|
1532
1560
|
function Z(e) {
|
|
1533
|
-
return
|
|
1561
|
+
return P.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1534
1562
|
}
|
|
1535
1563
|
const Yt = [
|
|
1536
1564
|
{
|
|
@@ -1622,14 +1650,14 @@ function He(e) {
|
|
|
1622
1650
|
}
|
|
1623
1651
|
const ze = function(t) {
|
|
1624
1652
|
if (t.renderMode === "discrete")
|
|
1625
|
-
return /* @__PURE__ */
|
|
1653
|
+
return /* @__PURE__ */ u(
|
|
1626
1654
|
"div",
|
|
1627
1655
|
{
|
|
1628
1656
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1629
1657
|
style: { display: "contents" },
|
|
1630
1658
|
children: t.cards.map((n) => {
|
|
1631
1659
|
const o = V(n.size);
|
|
1632
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ u(
|
|
1633
1661
|
"div",
|
|
1634
1662
|
{
|
|
1635
1663
|
className: "gloss-metric-group__slot",
|
|
@@ -1645,7 +1673,7 @@ const ze = function(t) {
|
|
|
1645
1673
|
}
|
|
1646
1674
|
);
|
|
1647
1675
|
const { cards: r, composite: a } = t;
|
|
1648
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ R(
|
|
1649
1677
|
"div",
|
|
1650
1678
|
{
|
|
1651
1679
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1664,16 +1692,16 @@ const ze = function(t) {
|
|
|
1664
1692
|
"aria-label": a?.label,
|
|
1665
1693
|
tabIndex: void 0,
|
|
1666
1694
|
children: [
|
|
1667
|
-
a?.accentColor && /* @__PURE__ */
|
|
1695
|
+
a?.accentColor && /* @__PURE__ */ u(
|
|
1668
1696
|
"div",
|
|
1669
1697
|
{
|
|
1670
1698
|
className: "gloss-metric-group__accent",
|
|
1671
1699
|
style: { background: a.accentColor }
|
|
1672
1700
|
}
|
|
1673
1701
|
),
|
|
1674
|
-
a?.label && /* @__PURE__ */
|
|
1675
|
-
/* @__PURE__ */
|
|
1676
|
-
a?.trend && /* @__PURE__ */
|
|
1702
|
+
a?.label && /* @__PURE__ */ R("div", { className: "gloss-metric-group__label", children: [
|
|
1703
|
+
/* @__PURE__ */ u("span", { children: a.label }),
|
|
1704
|
+
a?.trend && /* @__PURE__ */ u(
|
|
1677
1705
|
"span",
|
|
1678
1706
|
{
|
|
1679
1707
|
className: "gloss-metric-group__trend",
|
|
@@ -1682,7 +1710,7 @@ const ze = function(t) {
|
|
|
1682
1710
|
}
|
|
1683
1711
|
)
|
|
1684
1712
|
] }),
|
|
1685
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ u(
|
|
1686
1714
|
"div",
|
|
1687
1715
|
{
|
|
1688
1716
|
className: "gloss-metric-group__slots",
|
|
@@ -1693,7 +1721,7 @@ const ze = function(t) {
|
|
|
1693
1721
|
},
|
|
1694
1722
|
children: r.map((n) => {
|
|
1695
1723
|
const o = V(n.size);
|
|
1696
|
-
return /* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ u(
|
|
1697
1725
|
"div",
|
|
1698
1726
|
{
|
|
1699
1727
|
className: "gloss-metric-group__slot--composite",
|
|
@@ -1713,7 +1741,7 @@ const ze = function(t) {
|
|
|
1713
1741
|
);
|
|
1714
1742
|
};
|
|
1715
1743
|
ze.displayName = "MetricGroupContainer";
|
|
1716
|
-
const
|
|
1744
|
+
const B = {
|
|
1717
1745
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
1718
1746
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
1719
1747
|
"gloss-inline-nudge__actions": "_gloss-inline-nudge__actions_kdk88_72",
|
|
@@ -1728,50 +1756,50 @@ function Ke({
|
|
|
1728
1756
|
anchorEl: a,
|
|
1729
1757
|
anchorSelector: n
|
|
1730
1758
|
}) {
|
|
1731
|
-
const [o, s] =
|
|
1759
|
+
const [o, s] = P.useState(null), d = P.useMemo(
|
|
1732
1760
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
1733
1761
|
[]
|
|
1734
1762
|
);
|
|
1735
|
-
|
|
1763
|
+
P.useEffect(() => {
|
|
1736
1764
|
!a && !n && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
1737
1765
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
1738
1766
|
);
|
|
1739
|
-
}, [a, n]),
|
|
1740
|
-
let
|
|
1741
|
-
if (a ?
|
|
1742
|
-
const
|
|
1767
|
+
}, [a, n]), P.useLayoutEffect(() => {
|
|
1768
|
+
let g = null;
|
|
1769
|
+
if (a ? g = a : n && (g = document.querySelector(n)), g) {
|
|
1770
|
+
const y = g.getBoundingClientRect();
|
|
1743
1771
|
s({
|
|
1744
|
-
top:
|
|
1745
|
-
left:
|
|
1772
|
+
top: y.bottom + window.scrollY + 6,
|
|
1773
|
+
left: y.left + window.scrollX
|
|
1746
1774
|
});
|
|
1747
1775
|
}
|
|
1748
1776
|
}, [a, n]);
|
|
1749
|
-
const
|
|
1750
|
-
return /* @__PURE__ */
|
|
1777
|
+
const m = o ? { top: o.top, left: o.left } : {};
|
|
1778
|
+
return /* @__PURE__ */ R(
|
|
1751
1779
|
"div",
|
|
1752
1780
|
{
|
|
1753
|
-
className:
|
|
1754
|
-
style:
|
|
1781
|
+
className: B["gloss-inline-nudge"],
|
|
1782
|
+
style: m,
|
|
1755
1783
|
role: "status",
|
|
1756
1784
|
"aria-live": "polite",
|
|
1757
1785
|
"data-reduced-motion": d ? "true" : void 0,
|
|
1758
1786
|
children: [
|
|
1759
|
-
/* @__PURE__ */
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ u("span", { className: B["gloss-inline-nudge__message"], children: e }),
|
|
1788
|
+
/* @__PURE__ */ R("div", { className: B["gloss-inline-nudge__actions"], children: [
|
|
1789
|
+
/* @__PURE__ */ u(
|
|
1762
1790
|
"button",
|
|
1763
1791
|
{
|
|
1764
1792
|
type: "button",
|
|
1765
|
-
className: `${
|
|
1793
|
+
className: `${B["gloss-inline-nudge__btn"]} ${B["gloss-inline-nudge__btn--action"]}`,
|
|
1766
1794
|
onClick: t.onClick,
|
|
1767
1795
|
children: t.label
|
|
1768
1796
|
}
|
|
1769
1797
|
),
|
|
1770
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ u(
|
|
1771
1799
|
"button",
|
|
1772
1800
|
{
|
|
1773
1801
|
type: "button",
|
|
1774
|
-
className: `${
|
|
1802
|
+
className: `${B["gloss-inline-nudge__btn"]} ${B["gloss-inline-nudge__btn--dismiss"]}`,
|
|
1775
1803
|
onClick: r,
|
|
1776
1804
|
"aria-label": "Dismiss",
|
|
1777
1805
|
children: "Dismiss"
|
|
@@ -1800,70 +1828,70 @@ function Ze({
|
|
|
1800
1828
|
max: a = 100,
|
|
1801
1829
|
disabled: n = !1
|
|
1802
1830
|
}) {
|
|
1803
|
-
const o = F(null), [s, d] =
|
|
1804
|
-
|
|
1805
|
-
const
|
|
1806
|
-
(
|
|
1831
|
+
const o = F(null), [s, d] = M(null), [m, g] = M(e), y = F(e);
|
|
1832
|
+
y.current !== e && (y.current = e, g(e));
|
|
1833
|
+
const w = pe(() => We(m, r, a), [m, r, a]), l = v(
|
|
1834
|
+
(b) => {
|
|
1807
1835
|
if (!o.current) return r;
|
|
1808
|
-
const
|
|
1809
|
-
return Math.round(
|
|
1836
|
+
const S = o.current.getBoundingClientRect(), T = Math.max(0, Math.min(1, (b - S.left) / S.width)), C = r + T * (a - r);
|
|
1837
|
+
return Math.round(C * 100) / 100;
|
|
1810
1838
|
},
|
|
1811
1839
|
[r, a]
|
|
1812
|
-
),
|
|
1813
|
-
(
|
|
1814
|
-
const
|
|
1815
|
-
n ||
|
|
1840
|
+
), i = v(
|
|
1841
|
+
(b, S) => {
|
|
1842
|
+
const T = m.find((C) => C.id === S);
|
|
1843
|
+
n || T?.disabled || (typeof b.currentTarget.setPointerCapture == "function" && b.currentTarget.setPointerCapture(b.pointerId), d(S));
|
|
1816
1844
|
},
|
|
1817
|
-
[n,
|
|
1818
|
-
),
|
|
1819
|
-
(
|
|
1845
|
+
[n, m]
|
|
1846
|
+
), f = v(
|
|
1847
|
+
(b) => {
|
|
1820
1848
|
if (!s) return;
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1823
|
-
(
|
|
1849
|
+
const S = l(b.clientX);
|
|
1850
|
+
g(
|
|
1851
|
+
(T) => T.map((C) => C.id === s ? { ...C, value: S } : C)
|
|
1824
1852
|
);
|
|
1825
1853
|
},
|
|
1826
|
-
[s,
|
|
1827
|
-
),
|
|
1828
|
-
(
|
|
1854
|
+
[s, l]
|
|
1855
|
+
), N = v(
|
|
1856
|
+
(b) => {
|
|
1829
1857
|
if (!s) return;
|
|
1830
|
-
const
|
|
1831
|
-
(
|
|
1858
|
+
const S = l(b.clientX), T = m.map(
|
|
1859
|
+
(C) => C.id === s ? { ...C, value: S } : C
|
|
1832
1860
|
);
|
|
1833
|
-
|
|
1861
|
+
g(T), d(null), t(T);
|
|
1834
1862
|
},
|
|
1835
|
-
[s,
|
|
1836
|
-
),
|
|
1837
|
-
return /* @__PURE__ */
|
|
1863
|
+
[s, l, m, t]
|
|
1864
|
+
), k = a - r || 1;
|
|
1865
|
+
return /* @__PURE__ */ u("div", { className: "gloss-threshold-ramp", "data-disabled": n || void 0, children: /* @__PURE__ */ u(
|
|
1838
1866
|
"div",
|
|
1839
1867
|
{
|
|
1840
1868
|
ref: o,
|
|
1841
1869
|
className: "gloss-threshold-ramp__track",
|
|
1842
|
-
style: { background:
|
|
1843
|
-
onPointerMove:
|
|
1844
|
-
onPointerUp:
|
|
1845
|
-
onPointerLeave:
|
|
1846
|
-
children:
|
|
1847
|
-
const
|
|
1848
|
-
return /* @__PURE__ */
|
|
1870
|
+
style: { background: w },
|
|
1871
|
+
onPointerMove: f,
|
|
1872
|
+
onPointerUp: N,
|
|
1873
|
+
onPointerLeave: N,
|
|
1874
|
+
children: m.map((b) => {
|
|
1875
|
+
const S = (b.value - r) / k * 100;
|
|
1876
|
+
return /* @__PURE__ */ u(
|
|
1849
1877
|
"span",
|
|
1850
1878
|
{
|
|
1851
1879
|
className: "gloss-threshold-ramp__stop",
|
|
1852
1880
|
style: {
|
|
1853
|
-
left: `${
|
|
1854
|
-
color: le(
|
|
1881
|
+
left: `${S}%`,
|
|
1882
|
+
color: le(b)
|
|
1855
1883
|
},
|
|
1856
|
-
"data-disabled":
|
|
1857
|
-
"data-dragging": s ===
|
|
1858
|
-
onPointerDown: (
|
|
1859
|
-
"aria-label":
|
|
1884
|
+
"data-disabled": b.disabled || void 0,
|
|
1885
|
+
"data-dragging": s === b.id || void 0,
|
|
1886
|
+
onPointerDown: (T) => i(T, b.id),
|
|
1887
|
+
"aria-label": b.label ?? `Stop at ${b.value}`,
|
|
1860
1888
|
role: "slider",
|
|
1861
|
-
"aria-valuenow":
|
|
1889
|
+
"aria-valuenow": b.value,
|
|
1862
1890
|
"aria-valuemin": r,
|
|
1863
1891
|
"aria-valuemax": a,
|
|
1864
|
-
tabIndex:
|
|
1892
|
+
tabIndex: b.disabled ? -1 : 0
|
|
1865
1893
|
},
|
|
1866
|
-
|
|
1894
|
+
b.id
|
|
1867
1895
|
);
|
|
1868
1896
|
})
|
|
1869
1897
|
}
|
|
@@ -1875,10 +1903,10 @@ function Ye() {
|
|
|
1875
1903
|
return he(de);
|
|
1876
1904
|
}
|
|
1877
1905
|
function qe({ option: e }) {
|
|
1878
|
-
const t = Ye(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n =
|
|
1906
|
+
const t = Ye(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n = v(() => {
|
|
1879
1907
|
a || t?.select(e.value);
|
|
1880
1908
|
}, [a, t, e.value]), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
1881
|
-
return /* @__PURE__ */
|
|
1909
|
+
return /* @__PURE__ */ u(
|
|
1882
1910
|
"button",
|
|
1883
1911
|
{
|
|
1884
1912
|
type: "button",
|
|
@@ -1903,22 +1931,22 @@ function Ve({
|
|
|
1903
1931
|
disabled: n = !1,
|
|
1904
1932
|
name: o
|
|
1905
1933
|
}) {
|
|
1906
|
-
const s = t !== void 0, [d,
|
|
1907
|
-
(
|
|
1908
|
-
s ||
|
|
1934
|
+
const s = t !== void 0, [d, m] = M(r), g = s ? t : d, y = v(
|
|
1935
|
+
(i) => {
|
|
1936
|
+
s || m(i), a?.(i);
|
|
1909
1937
|
},
|
|
1910
1938
|
[s, a]
|
|
1911
|
-
),
|
|
1912
|
-
(
|
|
1913
|
-
[
|
|
1914
|
-
),
|
|
1915
|
-
selectedValue:
|
|
1916
|
-
select:
|
|
1917
|
-
isSelected:
|
|
1939
|
+
), w = v(
|
|
1940
|
+
(i) => g === i,
|
|
1941
|
+
[g]
|
|
1942
|
+
), l = {
|
|
1943
|
+
selectedValue: g,
|
|
1944
|
+
select: y,
|
|
1945
|
+
isSelected: w,
|
|
1918
1946
|
groupDisabled: n,
|
|
1919
1947
|
name: o
|
|
1920
1948
|
};
|
|
1921
|
-
return /* @__PURE__ */
|
|
1949
|
+
return /* @__PURE__ */ u(de.Provider, { value: l, children: /* @__PURE__ */ u(
|
|
1922
1950
|
"div",
|
|
1923
1951
|
{
|
|
1924
1952
|
className: "gloss-preset-swatch-row",
|
|
@@ -1926,7 +1954,7 @@ function Ve({
|
|
|
1926
1954
|
"aria-label": o,
|
|
1927
1955
|
"aria-disabled": n,
|
|
1928
1956
|
"data-disabled": n || void 0,
|
|
1929
|
-
children: e.map((
|
|
1957
|
+
children: e.map((i) => /* @__PURE__ */ u(qe, { option: i }, i.value))
|
|
1930
1958
|
}
|
|
1931
1959
|
) });
|
|
1932
1960
|
}
|
|
@@ -1946,83 +1974,83 @@ function Ue(e, t, r) {
|
|
|
1946
1974
|
return a.splice(r, 0, n), a;
|
|
1947
1975
|
}
|
|
1948
1976
|
function je(e) {
|
|
1949
|
-
const [t, r] =
|
|
1950
|
-
|
|
1951
|
-
const
|
|
1952
|
-
(
|
|
1953
|
-
const
|
|
1954
|
-
let
|
|
1955
|
-
for (const
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1977
|
+
const [t, r] = M(() => e.zones), [a, n] = M(null), [o, s] = M(null), d = F(null), m = F(e.onZoneChange);
|
|
1978
|
+
m.current = e.onZoneChange;
|
|
1979
|
+
const g = v(
|
|
1980
|
+
(f) => {
|
|
1981
|
+
const N = f.active.id;
|
|
1982
|
+
let k = null, b = null;
|
|
1983
|
+
for (const S of t) {
|
|
1984
|
+
const T = S.items.find((C) => C.id === N);
|
|
1985
|
+
if (T) {
|
|
1986
|
+
k = T, b = S.zoneKey;
|
|
1959
1987
|
break;
|
|
1960
1988
|
}
|
|
1961
1989
|
}
|
|
1962
|
-
d.current =
|
|
1990
|
+
d.current = b, n(k), s(b);
|
|
1963
1991
|
},
|
|
1964
1992
|
[t]
|
|
1965
|
-
),
|
|
1966
|
-
(
|
|
1967
|
-
if (!
|
|
1993
|
+
), y = v(
|
|
1994
|
+
(f) => {
|
|
1995
|
+
if (!f.over) {
|
|
1968
1996
|
s(d.current);
|
|
1969
1997
|
return;
|
|
1970
1998
|
}
|
|
1971
|
-
const
|
|
1972
|
-
s(
|
|
1999
|
+
const N = ae(t, f.over.id);
|
|
2000
|
+
s(N);
|
|
1973
2001
|
},
|
|
1974
2002
|
[t]
|
|
1975
|
-
),
|
|
1976
|
-
(
|
|
1977
|
-
const { active:
|
|
2003
|
+
), w = v(
|
|
2004
|
+
(f) => {
|
|
2005
|
+
const { active: N, over: k } = f, b = () => {
|
|
1978
2006
|
d.current = null, n(null), s(null);
|
|
1979
2007
|
};
|
|
1980
|
-
if (!
|
|
1981
|
-
|
|
2008
|
+
if (!k) {
|
|
2009
|
+
b();
|
|
1982
2010
|
return;
|
|
1983
2011
|
}
|
|
1984
|
-
const
|
|
1985
|
-
if (!
|
|
1986
|
-
|
|
2012
|
+
const S = U(t, N.id), T = ae(t, k.id);
|
|
2013
|
+
if (!S || !T) {
|
|
2014
|
+
b();
|
|
1987
2015
|
return;
|
|
1988
2016
|
}
|
|
1989
|
-
let
|
|
1990
|
-
if (
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
...
|
|
1994
|
-
items: Ue(
|
|
2017
|
+
let C = t.map((p) => ({ ...p, items: [...p.items] }));
|
|
2018
|
+
if (S === T) {
|
|
2019
|
+
const p = C.findIndex((x) => x.zoneKey === S), c = C[p], D = c.items.findIndex((x) => x.id === N.id), h = c.items.findIndex((x) => x.id === k.id), I = h >= 0 ? h : c.items.length - 1;
|
|
2020
|
+
C[p] = {
|
|
2021
|
+
...c,
|
|
2022
|
+
items: Ue(c.items, D, I)
|
|
1995
2023
|
};
|
|
1996
2024
|
} else {
|
|
1997
|
-
const
|
|
1998
|
-
let Q =
|
|
1999
|
-
if (
|
|
2000
|
-
const _ =
|
|
2001
|
-
|
|
2025
|
+
const p = C.findIndex((_) => _.zoneKey === S), c = C.findIndex((_) => _.zoneKey === T), D = C[p], h = C[c], I = D.items.find((_) => _.id === N.id), x = D.items.filter((_) => _.id !== N.id), E = h.items.findIndex((_) => _.id === k.id), G = E >= 0 ? E : h.items.length;
|
|
2026
|
+
let Q = x, L = [...h.items];
|
|
2027
|
+
if (h.maxItems !== void 0 && L.length >= h.maxItems) {
|
|
2028
|
+
const _ = L[L.length - 1];
|
|
2029
|
+
L = L.slice(0, h.maxItems - 1), Q = [...x, _];
|
|
2002
2030
|
}
|
|
2003
|
-
const X = Math.min(G,
|
|
2004
|
-
...
|
|
2005
|
-
|
|
2006
|
-
...
|
|
2031
|
+
const X = Math.min(G, L.length), me = [
|
|
2032
|
+
...L.slice(0, X),
|
|
2033
|
+
I,
|
|
2034
|
+
...L.slice(X)
|
|
2007
2035
|
];
|
|
2008
|
-
|
|
2036
|
+
C[p] = { ...D, items: Q }, C[c] = { ...h, items: me };
|
|
2009
2037
|
}
|
|
2010
|
-
r(
|
|
2038
|
+
r(C), m.current?.(C), b();
|
|
2011
2039
|
},
|
|
2012
2040
|
[t]
|
|
2013
|
-
),
|
|
2014
|
-
(
|
|
2015
|
-
id:
|
|
2016
|
-
"data-zone-key":
|
|
2041
|
+
), l = v(
|
|
2042
|
+
(f) => ({
|
|
2043
|
+
id: f,
|
|
2044
|
+
"data-zone-key": f
|
|
2017
2045
|
}),
|
|
2018
2046
|
[]
|
|
2019
|
-
),
|
|
2020
|
-
(
|
|
2021
|
-
const
|
|
2047
|
+
), i = v(
|
|
2048
|
+
(f) => {
|
|
2049
|
+
const N = U(t, f.id) ?? "";
|
|
2022
2050
|
return {
|
|
2023
|
-
id:
|
|
2024
|
-
"data-item-id":
|
|
2025
|
-
"data-zone-key":
|
|
2051
|
+
id: f.id,
|
|
2052
|
+
"data-item-id": f.id,
|
|
2053
|
+
"data-zone-key": N
|
|
2026
2054
|
};
|
|
2027
2055
|
},
|
|
2028
2056
|
[t]
|
|
@@ -2031,11 +2059,11 @@ function je(e) {
|
|
|
2031
2059
|
zones: t,
|
|
2032
2060
|
activeZone: o,
|
|
2033
2061
|
activeItem: a,
|
|
2034
|
-
getZoneProps:
|
|
2035
|
-
getItemProps:
|
|
2036
|
-
handleDragStart:
|
|
2037
|
-
handleDragOver:
|
|
2038
|
-
handleDragEnd:
|
|
2062
|
+
getZoneProps: l,
|
|
2063
|
+
getItemProps: i,
|
|
2064
|
+
handleDragStart: g,
|
|
2065
|
+
handleDragOver: y,
|
|
2066
|
+
handleDragEnd: w
|
|
2039
2067
|
};
|
|
2040
2068
|
}
|
|
2041
2069
|
let $ = null, z = null, re = !1;
|
|
@@ -2058,16 +2086,16 @@ function Qe() {
|
|
|
2058
2086
|
})(), z);
|
|
2059
2087
|
}
|
|
2060
2088
|
function Xe(e) {
|
|
2061
|
-
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: o } = e, s = je({ zones: t, onZoneChange: r }), [d,
|
|
2062
|
-
return
|
|
2089
|
+
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: o } = e, s = je({ zones: t, onZoneChange: r }), [d, m] = P.useState($);
|
|
2090
|
+
return P.useEffect(() => {
|
|
2063
2091
|
if (d) return;
|
|
2064
|
-
let
|
|
2065
|
-
return Qe().then((
|
|
2066
|
-
|
|
2092
|
+
let g = !0;
|
|
2093
|
+
return Qe().then((y) => {
|
|
2094
|
+
g && m(y);
|
|
2067
2095
|
}), () => {
|
|
2068
|
-
|
|
2096
|
+
g = !1;
|
|
2069
2097
|
};
|
|
2070
|
-
}, [d]), d ? /* @__PURE__ */
|
|
2098
|
+
}, [d]), d ? /* @__PURE__ */ u(
|
|
2071
2099
|
ce,
|
|
2072
2100
|
{
|
|
2073
2101
|
state: s,
|
|
@@ -2076,9 +2104,9 @@ function Xe(e) {
|
|
|
2076
2104
|
renderItem: n,
|
|
2077
2105
|
renderDragOverlay: o
|
|
2078
2106
|
}
|
|
2079
|
-
) : /* @__PURE__ */
|
|
2080
|
-
const
|
|
2081
|
-
return /* @__PURE__ */
|
|
2107
|
+
) : /* @__PURE__ */ u("div", { "data-sortable-zones-passive": "true", children: s.zones.map((g) => {
|
|
2108
|
+
const y = g.items.map((w) => /* @__PURE__ */ u(P.Fragment, { children: n(w) }, w.id));
|
|
2109
|
+
return /* @__PURE__ */ u("div", { ...s.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, y) }, g.zoneKey);
|
|
2082
2110
|
}) });
|
|
2083
2111
|
}
|
|
2084
2112
|
Xe.displayName = "SortableZones";
|
|
@@ -2089,64 +2117,64 @@ function ce({
|
|
|
2089
2117
|
renderItem: a,
|
|
2090
2118
|
renderDragOverlay: n
|
|
2091
2119
|
}) {
|
|
2092
|
-
const { core: o, sortable: s, utilities: d } = t, { DndContext:
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
),
|
|
2096
|
-
return /* @__PURE__ */
|
|
2097
|
-
|
|
2120
|
+
const { core: o, sortable: s, utilities: d } = t, { DndContext: m, DragOverlay: g, useSensors: y, useSensor: w, PointerSensor: l, KeyboardSensor: i, closestCenter: f } = o, { SortableContext: N, verticalListSortingStrategy: k } = s, b = y(
|
|
2121
|
+
w(l, { activationConstraint: { distance: 5 } }),
|
|
2122
|
+
w(i)
|
|
2123
|
+
), S = m, T = g, C = N;
|
|
2124
|
+
return /* @__PURE__ */ R(
|
|
2125
|
+
S,
|
|
2098
2126
|
{
|
|
2099
|
-
sensors:
|
|
2100
|
-
collisionDetection:
|
|
2127
|
+
sensors: b,
|
|
2128
|
+
collisionDetection: f,
|
|
2101
2129
|
onDragStart: e.handleDragStart,
|
|
2102
2130
|
onDragOver: e.handleDragOver,
|
|
2103
2131
|
onDragEnd: e.handleDragEnd,
|
|
2104
2132
|
children: [
|
|
2105
|
-
e.zones.map((
|
|
2106
|
-
const
|
|
2133
|
+
e.zones.map((p) => {
|
|
2134
|
+
const c = p.items.map((h) => h.id), D = p.items.map((h) => /* @__PURE__ */ u(
|
|
2107
2135
|
ue,
|
|
2108
2136
|
{
|
|
2109
|
-
id:
|
|
2137
|
+
id: h.id,
|
|
2110
2138
|
useSortable: s.useSortable,
|
|
2111
2139
|
cssHelper: d.CSS,
|
|
2112
|
-
children: a(
|
|
2140
|
+
children: a(h)
|
|
2113
2141
|
},
|
|
2114
|
-
|
|
2142
|
+
h.id
|
|
2115
2143
|
));
|
|
2116
|
-
return /* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ u("div", { ...e.getZoneProps(p.zoneKey), children: /* @__PURE__ */ u(C, { items: c, strategy: k, children: r(p.zoneKey, p.items, D) }) }, p.zoneKey);
|
|
2117
2145
|
}),
|
|
2118
|
-
/* @__PURE__ */
|
|
2146
|
+
/* @__PURE__ */ u(T, { children: e.activeItem ? n?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
2119
2147
|
]
|
|
2120
2148
|
}
|
|
2121
2149
|
);
|
|
2122
2150
|
}
|
|
2123
2151
|
ce.displayName = "SortableZonesInner";
|
|
2124
2152
|
function ue({ id: e, useSortable: t, cssHelper: r, children: a }) {
|
|
2125
|
-
const { attributes: n, listeners: o, setNodeRef: s, transform: d, transition:
|
|
2153
|
+
const { attributes: n, listeners: o, setNodeRef: s, transform: d, transition: m, isDragging: g } = t({ id: e }), y = {
|
|
2126
2154
|
transform: r?.Transform?.toString(d) ?? void 0,
|
|
2127
|
-
transition:
|
|
2128
|
-
opacity:
|
|
2155
|
+
transition: m,
|
|
2156
|
+
opacity: g ? 0.5 : 1
|
|
2129
2157
|
};
|
|
2130
|
-
return /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ u("div", { ref: s, style: y, "data-sortable-item-id": e, ...n, ...o, children: a });
|
|
2131
2159
|
}
|
|
2132
2160
|
ue.displayName = "SortableItem";
|
|
2133
|
-
const Je =
|
|
2161
|
+
const Je = P.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2134
2162
|
const n = { ...r };
|
|
2135
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2163
|
+
return delete n.className, delete n.style, /* @__PURE__ */ u("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...n, children: /* @__PURE__ */ u(j, { region: "toolbar", density: e, children: t }) });
|
|
2136
2164
|
});
|
|
2137
2165
|
Je.displayName = "ContainerToolbar";
|
|
2138
|
-
const et =
|
|
2166
|
+
const et = P.forwardRef(({ legend: e, description: t, density: r = "default", children: a, ...n }, o) => {
|
|
2139
2167
|
const s = { ...n };
|
|
2140
|
-
return delete s.className, delete s.style, /* @__PURE__ */
|
|
2141
|
-
e && /* @__PURE__ */
|
|
2142
|
-
t && /* @__PURE__ */
|
|
2143
|
-
/* @__PURE__ */
|
|
2168
|
+
return delete s.className, delete s.style, /* @__PURE__ */ R("fieldset", { ref: o, className: "gloss-container-form-section", ...s, children: [
|
|
2169
|
+
e && /* @__PURE__ */ u("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2170
|
+
t && /* @__PURE__ */ u("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2171
|
+
/* @__PURE__ */ u(j, { region: "form-section", density: r, children: a })
|
|
2144
2172
|
] });
|
|
2145
2173
|
});
|
|
2146
2174
|
et.displayName = "ContainerFormSection";
|
|
2147
|
-
const tt =
|
|
2175
|
+
const tt = P.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2148
2176
|
const n = { ...r };
|
|
2149
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2177
|
+
return delete n.className, delete n.style, /* @__PURE__ */ u("div", { ref: a, className: "gloss-container-table", ...n, children: /* @__PURE__ */ u(j, { region: "table", density: e, children: t }) });
|
|
2150
2178
|
});
|
|
2151
2179
|
tt.displayName = "ContainerTable";
|
|
2152
2180
|
export {
|
|
@@ -2165,8 +2193,8 @@ export {
|
|
|
2165
2193
|
ca as Button,
|
|
2166
2194
|
ua as ButtonGroup,
|
|
2167
2195
|
ma as ButtonGroupContext,
|
|
2168
|
-
|
|
2169
|
-
|
|
2196
|
+
ga as Card,
|
|
2197
|
+
pa as CardActions,
|
|
2170
2198
|
ba as CardBack,
|
|
2171
2199
|
ha as CardBody,
|
|
2172
2200
|
fa as CardFooter,
|
|
@@ -2181,10 +2209,10 @@ export {
|
|
|
2181
2209
|
xa as Chip,
|
|
2182
2210
|
ka as ColorPicker,
|
|
2183
2211
|
Ia as ComparisonCard,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2212
|
+
Pa as ContactForm,
|
|
2213
|
+
_a as ContainerCard,
|
|
2214
|
+
Ma as ContainerCardActions,
|
|
2215
|
+
Ra as ContainerCardBody,
|
|
2188
2216
|
Fa as ContainerCardFooter,
|
|
2189
2217
|
Oa as ContainerCardHeader,
|
|
2190
2218
|
Aa as ContainerCardMedia,
|
|
@@ -2226,9 +2254,9 @@ export {
|
|
|
2226
2254
|
cr as Form,
|
|
2227
2255
|
ur as FormDialog,
|
|
2228
2256
|
mr as FormField,
|
|
2229
|
-
|
|
2257
|
+
gr as FusedShape,
|
|
2230
2258
|
ke as GhostPreview,
|
|
2231
|
-
|
|
2259
|
+
pr as GroupCheckbox,
|
|
2232
2260
|
br as GroupRadio,
|
|
2233
2261
|
hr as GutterActions,
|
|
2234
2262
|
fr as HighlightCard,
|
|
@@ -2244,10 +2272,10 @@ export {
|
|
|
2244
2272
|
xr as MaskPresets,
|
|
2245
2273
|
kr as MaskedInput,
|
|
2246
2274
|
Ir as Menu,
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2275
|
+
Pr as MenuDivider,
|
|
2276
|
+
_r as MenuGroup,
|
|
2277
|
+
Mr as MenuItem,
|
|
2278
|
+
Rr as MergePrompt,
|
|
2251
2279
|
Fr as MetricCard,
|
|
2252
2280
|
Or as MetricCardGrid,
|
|
2253
2281
|
ze as MetricGroupContainer,
|
|
@@ -2287,8 +2315,8 @@ export {
|
|
|
2287
2315
|
cn as SkeletonCard,
|
|
2288
2316
|
un as SkeletonChart,
|
|
2289
2317
|
mn as SkeletonTable,
|
|
2290
|
-
|
|
2291
|
-
|
|
2318
|
+
gn as Slider,
|
|
2319
|
+
pn as Sortable,
|
|
2292
2320
|
Xe as SortableZones,
|
|
2293
2321
|
bn as SparklineBg,
|
|
2294
2322
|
hn as SplitButton,
|
|
@@ -2307,12 +2335,12 @@ export {
|
|
|
2307
2335
|
xn as Toggle,
|
|
2308
2336
|
kn as Tooltip,
|
|
2309
2337
|
In as Transition,
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2338
|
+
Pn as TransitionGroup,
|
|
2339
|
+
_n as TrendCard,
|
|
2340
|
+
Mn as TrendIndicator,
|
|
2341
|
+
po as UIContext,
|
|
2314
2342
|
j as UIContextProvider,
|
|
2315
|
-
|
|
2343
|
+
Rn as UnifiedBreakdownTable,
|
|
2316
2344
|
Fn as UnifiedContextMenu,
|
|
2317
2345
|
On as addressGroupMetadata,
|
|
2318
2346
|
An as addressSchema,
|
|
@@ -2322,9 +2350,9 @@ export {
|
|
|
2322
2350
|
mt as blockSamples,
|
|
2323
2351
|
ft as cardSamples,
|
|
2324
2352
|
bt as chartSamples,
|
|
2325
|
-
|
|
2353
|
+
pt as circleSamples,
|
|
2326
2354
|
Kt as compactLayout,
|
|
2327
|
-
|
|
2355
|
+
Rt as compactState,
|
|
2328
2356
|
En as contactFormMetadata,
|
|
2329
2357
|
Ln as contactSchema,
|
|
2330
2358
|
Ft as contextMenuFixtures,
|
|
@@ -2335,12 +2363,12 @@ export {
|
|
|
2335
2363
|
$n as destructiveModalMetadata,
|
|
2336
2364
|
Hn as durations,
|
|
2337
2365
|
zn as easings,
|
|
2338
|
-
|
|
2366
|
+
_e as emptyFixture,
|
|
2339
2367
|
Ce as entityChip,
|
|
2340
2368
|
Be as entityNameActions,
|
|
2341
2369
|
ct as entityTabGroup,
|
|
2342
|
-
|
|
2343
|
-
|
|
2370
|
+
Pe as errorFixture,
|
|
2371
|
+
Mt as filteredState,
|
|
2344
2372
|
wo as findPreset,
|
|
2345
2373
|
No as formatDateRange,
|
|
2346
2374
|
So as formatMarketDates,
|
|
@@ -2350,16 +2378,16 @@ export {
|
|
|
2350
2378
|
ko as generateMarketId,
|
|
2351
2379
|
Kn as generateTabId,
|
|
2352
2380
|
Io as getAllPresets,
|
|
2353
|
-
|
|
2381
|
+
Po as getDateRangeForPreset,
|
|
2354
2382
|
Wn as getMenuActions,
|
|
2355
|
-
|
|
2383
|
+
_o as getPresetLabel,
|
|
2356
2384
|
Zn as getTransitionStyle,
|
|
2357
2385
|
zt as gridCards,
|
|
2358
2386
|
Yn as interpolate,
|
|
2359
|
-
|
|
2360
|
-
|
|
2387
|
+
Mo as isInRange,
|
|
2388
|
+
Ro as isMarketActive,
|
|
2361
2389
|
Fo as isSameDay,
|
|
2362
|
-
|
|
2390
|
+
_t as itemColumns,
|
|
2363
2391
|
It as itemRows,
|
|
2364
2392
|
Ie as loadingFixture,
|
|
2365
2393
|
qn as loginFormMetadata,
|
|
@@ -2372,7 +2400,7 @@ export {
|
|
|
2372
2400
|
qt as mixedTabs,
|
|
2373
2401
|
Oo as normalizePresetId,
|
|
2374
2402
|
$e as numericActions,
|
|
2375
|
-
|
|
2403
|
+
Pt as orderColumns,
|
|
2376
2404
|
Ge as orderIdActions,
|
|
2377
2405
|
kt as orderRows,
|
|
2378
2406
|
Yt as ordersTabs,
|
|
@@ -2394,15 +2422,15 @@ export {
|
|
|
2394
2422
|
wt as sparklineFixture,
|
|
2395
2423
|
Nt as sparklineUpFixture,
|
|
2396
2424
|
Fe as staleDonutFixture,
|
|
2397
|
-
|
|
2398
|
-
|
|
2425
|
+
Me as staleFixture,
|
|
2426
|
+
Re as staleSparklineFixture,
|
|
2399
2427
|
St as standardFixture,
|
|
2400
2428
|
xt as standardFlatFixture,
|
|
2401
2429
|
Wt as standardLayout,
|
|
2402
2430
|
Tt as standardNegativeFixture,
|
|
2403
2431
|
ye as statusChip,
|
|
2404
2432
|
ht as tableSamples,
|
|
2405
|
-
|
|
2433
|
+
gt as textSamples,
|
|
2406
2434
|
ut as timeFrameTabGroup,
|
|
2407
2435
|
Ao as toUppercasePresetId,
|
|
2408
2436
|
it as useArrowNavigation,
|