@mt-gloss/ui 0.0.15 → 0.0.16
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-BXdTP6Nb.js → Expandable-Bvd-OyRQ.js} +1180 -1179
- package/catalog.js +2 -2
- package/index.js +770 -734
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/types.d.ts +11 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +5 -3
- package/package.json +1 -1
- package/ui.css +1 -1
package/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { N as
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
import { B as
|
|
5
|
-
import { a as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { DEFAULT_MARKET_PRESETS as
|
|
8
|
-
function
|
|
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 fa, J as ha, 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 _a, y as Ra, H as Ma, F as Pa, 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 fr, a6 as hr, 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 _r, V as Rr, W as Mr, ao as Pr, 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 fn, bh as hn, 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 _n, a3 as Rn, bf as Mn, bs as Pn, 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-Bvd-OyRQ.js";
|
|
2
|
+
import { jsxs as R, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import I, { useRef as F, useEffect as B, useState as M, useCallback as f, forwardRef as ge, useMemo as pe, createContext as be, useContext as fe } from "react";
|
|
4
|
+
import { B as he, U as j } from "./UIContext-C3E-k7HI.js";
|
|
5
|
+
import { a as po, u as bo } from "./UIContext-C3E-k7HI.js";
|
|
6
|
+
import { createPortal as ve } from "react-dom";
|
|
7
|
+
import { DEFAULT_MARKET_PRESETS as ho, 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 _o, getPresetLabel as Ro, isInRange as Mo, isMarketActive as Po, isSameDay as Fo, normalizePresetId as Oo, toUppercasePresetId as Ao } from "@mt-gloss/utils";
|
|
8
|
+
function st(e = {}) {
|
|
9
9
|
const { enabled: t = !0, returnTo: r } = e, a = F(null);
|
|
10
|
-
return
|
|
10
|
+
return B(() => {
|
|
11
11
|
t && (a.current = r || document.activeElement);
|
|
12
|
-
}, [t, r]),
|
|
12
|
+
}, [t, r]), B(() => () => {
|
|
13
13
|
t && a.current && setTimeout(() => {
|
|
14
14
|
a.current?.focus?.();
|
|
15
15
|
}, 0);
|
|
16
16
|
}, [t]), a;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function it(e) {
|
|
19
19
|
const {
|
|
20
20
|
items: t,
|
|
21
21
|
activeIndex: r,
|
|
@@ -23,132 +23,132 @@ function ut(e) {
|
|
|
23
23
|
loop: n = !0,
|
|
24
24
|
orientation: o = "vertical",
|
|
25
25
|
enabled: s = !0,
|
|
26
|
-
isItemDisabled:
|
|
26
|
+
isItemDisabled: d,
|
|
27
27
|
onSelect: m,
|
|
28
|
-
onEscape:
|
|
29
|
-
} = e, [
|
|
30
|
-
(
|
|
31
|
-
r === void 0 &&
|
|
28
|
+
onEscape: g
|
|
29
|
+
} = e, [y, D] = M(-1), p = r !== void 0 ? r : y, l = f(
|
|
30
|
+
(u) => {
|
|
31
|
+
r === void 0 && D(u), a?.(u);
|
|
32
32
|
},
|
|
33
33
|
[r, a]
|
|
34
|
-
),
|
|
35
|
-
(
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const O =
|
|
34
|
+
), b = f(() => t.map((u, w) => ({ item: u, index: w })).filter(({ item: u, index: w }) => !d?.(u, w)).map(({ index: u }) => u), [t, d]), S = f(
|
|
35
|
+
(u, w) => {
|
|
36
|
+
const v = b();
|
|
37
|
+
if (v.length === 0) return -1;
|
|
38
|
+
const O = v.indexOf(u);
|
|
39
39
|
if (O === -1)
|
|
40
|
-
return
|
|
41
|
-
let
|
|
42
|
-
return n ?
|
|
40
|
+
return w === 1 ? v.find((E) => E > u) ?? (n ? v[0] : -1) : [...v].reverse().find((G) => G < u) ?? (n ? v[v.length - 1] : -1);
|
|
41
|
+
let k = O + w;
|
|
42
|
+
return n ? k = (k + v.length) % v.length : k = Math.max(0, Math.min(v.length - 1, k)), v[k];
|
|
43
43
|
},
|
|
44
|
-
[
|
|
45
|
-
),
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
}, [
|
|
44
|
+
[b, n]
|
|
45
|
+
), T = f(() => {
|
|
46
|
+
const u = b();
|
|
47
|
+
u.length > 0 && l(u[0]);
|
|
48
|
+
}, [b, l]), i = f(() => {
|
|
49
|
+
const u = b();
|
|
50
|
+
u.length > 0 && l(u[u.length - 1]);
|
|
51
|
+
}, [b, l]), h = f(() => {
|
|
52
|
+
const u = S(p, 1);
|
|
53
|
+
u !== -1 && l(u);
|
|
54
|
+
}, [p, S, l]), N = f(() => {
|
|
55
|
+
const u = S(p, -1);
|
|
56
|
+
u !== -1 && l(u);
|
|
57
|
+
}, [p, S, l]), C = f(() => {
|
|
58
58
|
l(-1);
|
|
59
|
-
}, [l]),
|
|
60
|
-
(
|
|
59
|
+
}, [l]), x = f(
|
|
60
|
+
(u) => {
|
|
61
61
|
if (!s) return;
|
|
62
|
-
const { key:
|
|
63
|
-
if (
|
|
64
|
-
|
|
62
|
+
const { key: w } = u, v = w === "ArrowUp" && (o === "vertical" || o === "both"), O = w === "ArrowDown" && (o === "vertical" || o === "both"), k = w === "ArrowLeft" && (o === "horizontal" || o === "both"), E = w === "ArrowRight" && (o === "horizontal" || o === "both");
|
|
63
|
+
if (v || k) {
|
|
64
|
+
u.preventDefault(), p === -1 ? i() : N();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
if (O || E) {
|
|
68
|
-
|
|
68
|
+
u.preventDefault(), p === -1 ? T() : h();
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
if (
|
|
72
|
-
|
|
71
|
+
if (w === "Home") {
|
|
72
|
+
u.preventDefault(), T();
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
|
|
75
|
+
if (w === "End") {
|
|
76
|
+
u.preventDefault(), i();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if ((
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
79
|
+
if ((w === "Enter" || w === " ") && p >= 0 && p < t.length) {
|
|
80
|
+
u.preventDefault();
|
|
81
|
+
const G = t[p];
|
|
82
|
+
d?.(G, p) || m?.(G, p);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (w === "Escape") {
|
|
86
|
+
g?.();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
[
|
|
91
91
|
s,
|
|
92
92
|
o,
|
|
93
|
-
|
|
93
|
+
p,
|
|
94
94
|
t,
|
|
95
|
-
|
|
95
|
+
T,
|
|
96
96
|
i,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
h,
|
|
98
|
+
N,
|
|
99
|
+
d,
|
|
100
100
|
m,
|
|
101
|
-
|
|
101
|
+
g
|
|
102
102
|
]
|
|
103
103
|
);
|
|
104
104
|
return {
|
|
105
|
-
focusedIndex:
|
|
105
|
+
focusedIndex: p,
|
|
106
106
|
setFocusedIndex: l,
|
|
107
|
-
handleKeyDown:
|
|
108
|
-
focusFirst:
|
|
107
|
+
handleKeyDown: x,
|
|
108
|
+
focusFirst: T,
|
|
109
109
|
focusLast: i,
|
|
110
|
-
focusNext:
|
|
111
|
-
focusPrevious:
|
|
112
|
-
resetFocus:
|
|
110
|
+
focusNext: h,
|
|
111
|
+
focusPrevious: N,
|
|
112
|
+
resetFocus: C
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
const
|
|
116
|
-
},
|
|
115
|
+
const K = (e) => {
|
|
116
|
+
}, Ce = {
|
|
117
117
|
id: "entity-filter-1",
|
|
118
118
|
label: "Customer: Acme Corp",
|
|
119
119
|
field: "customer",
|
|
120
120
|
value: "acme-corp-123",
|
|
121
|
-
onRemove:
|
|
122
|
-
},
|
|
121
|
+
onRemove: K
|
|
122
|
+
}, ye = {
|
|
123
123
|
id: "status-filter-1",
|
|
124
124
|
label: "Status: Open",
|
|
125
125
|
field: "status",
|
|
126
126
|
value: "open",
|
|
127
|
-
onRemove:
|
|
128
|
-
},
|
|
127
|
+
onRemove: K
|
|
128
|
+
}, De = {
|
|
129
129
|
id: "date-filter-1",
|
|
130
130
|
label: "Date: Mar 1 - Mar 15",
|
|
131
131
|
field: "dateRange",
|
|
132
132
|
value: "2026-03-01..2026-03-15",
|
|
133
|
-
onRemove:
|
|
134
|
-
},
|
|
133
|
+
onRemove: K
|
|
134
|
+
}, we = {
|
|
135
135
|
id: "mfg-filter-1",
|
|
136
136
|
label: "Manufacturer: Widget Co",
|
|
137
137
|
field: "manufacturer",
|
|
138
138
|
value: "widget-co-456",
|
|
139
|
-
onRemove:
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
],
|
|
139
|
+
onRemove: K
|
|
140
|
+
}, lt = [
|
|
141
|
+
Ce,
|
|
142
|
+
ye,
|
|
143
|
+
De,
|
|
144
|
+
we
|
|
145
|
+
], dt = {
|
|
146
146
|
id: "metric-toggle",
|
|
147
147
|
tabs: [
|
|
148
148
|
{ id: "$", label: "$", mono: !0 },
|
|
149
149
|
{ id: "#", label: "#", mono: !0 }
|
|
150
150
|
]
|
|
151
|
-
},
|
|
151
|
+
}, ct = {
|
|
152
152
|
id: "entity-type",
|
|
153
153
|
tabs: [
|
|
154
154
|
{ id: "orders", label: "Orders" },
|
|
@@ -156,7 +156,7 @@ const H = (e) => {
|
|
|
156
156
|
{ id: "customers", label: "Customers" },
|
|
157
157
|
{ id: "manufacturers", label: "Manufacturers" }
|
|
158
158
|
]
|
|
159
|
-
},
|
|
159
|
+
}, ut = {
|
|
160
160
|
id: "time-frame",
|
|
161
161
|
tabs: [
|
|
162
162
|
{ id: "MTD", label: "MTD" },
|
|
@@ -164,30 +164,30 @@ const H = (e) => {
|
|
|
164
164
|
{ id: "YTD", label: "YTD" },
|
|
165
165
|
{ id: "LYTD", label: "LYTD" }
|
|
166
166
|
]
|
|
167
|
-
},
|
|
167
|
+
}, mt = [
|
|
168
168
|
{ variant: "block", width: "100%", height: 16 },
|
|
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 }
|
|
180
|
-
],
|
|
180
|
+
], bt = [
|
|
181
181
|
{ bars: 10, maxHeight: 120 },
|
|
182
182
|
{ bars: 5, maxHeight: 80 }
|
|
183
|
-
],
|
|
183
|
+
], ft = [
|
|
184
184
|
{ rows: 5, columns: 3, hasCheckbox: !1, rowHeight: 44 },
|
|
185
185
|
{ rows: 8, columns: 5, hasCheckbox: !0, rowHeight: 44 }
|
|
186
|
-
],
|
|
186
|
+
], ht = [
|
|
187
187
|
{ variant: "value", colSpan: 1 },
|
|
188
188
|
{ variant: "trend", colSpan: 2 },
|
|
189
189
|
{ variant: "target", colSpan: 1 }
|
|
190
|
-
],
|
|
190
|
+
], J = {
|
|
191
191
|
position: "fixed",
|
|
192
192
|
zIndex: 9999,
|
|
193
193
|
background: "rgba(255,255,255,0.92)",
|
|
@@ -199,7 +199,7 @@ const H = (e) => {
|
|
|
199
199
|
minWidth: 148,
|
|
200
200
|
paddingTop: 4,
|
|
201
201
|
paddingBottom: 4
|
|
202
|
-
},
|
|
202
|
+
}, Y = (e) => ({
|
|
203
203
|
padding: "6px 12px",
|
|
204
204
|
fontSize: 12,
|
|
205
205
|
lineHeight: 1.4,
|
|
@@ -213,16 +213,16 @@ const H = (e) => {
|
|
|
213
213
|
width: "100%",
|
|
214
214
|
textAlign: "left",
|
|
215
215
|
border: "none"
|
|
216
|
-
}),
|
|
217
|
-
...
|
|
216
|
+
}), Ne = (e) => ({
|
|
217
|
+
...Y(e),
|
|
218
218
|
color: e ? "#4338ca" : "#4f46e5",
|
|
219
219
|
fontWeight: 600
|
|
220
|
-
}),
|
|
220
|
+
}), Se = {
|
|
221
221
|
height: 1,
|
|
222
222
|
background: "rgba(0,0,0,0.06)",
|
|
223
223
|
margin: "3px 10px"
|
|
224
224
|
};
|
|
225
|
-
function
|
|
225
|
+
function Te({
|
|
226
226
|
open: e,
|
|
227
227
|
anchorEl: t,
|
|
228
228
|
statusId: r,
|
|
@@ -231,42 +231,42 @@ function Re({
|
|
|
231
231
|
overflowActions: o,
|
|
232
232
|
onClose: s
|
|
233
233
|
}) {
|
|
234
|
-
const [
|
|
235
|
-
if (!t) return { ...
|
|
234
|
+
const [d, m] = M(null), g = F(null), y = f(() => {
|
|
235
|
+
if (!t) return { ...J, top: 0, left: 0 };
|
|
236
236
|
const l = t.getBoundingClientRect();
|
|
237
237
|
return {
|
|
238
|
-
...
|
|
238
|
+
...J,
|
|
239
239
|
top: l.bottom + 4,
|
|
240
240
|
left: l.left
|
|
241
241
|
};
|
|
242
242
|
}, [t]);
|
|
243
|
-
if (
|
|
243
|
+
if (B(() => {
|
|
244
244
|
if (!e) return;
|
|
245
|
-
const l = (
|
|
246
|
-
|
|
245
|
+
const l = (b) => {
|
|
246
|
+
b.key === "Escape" && s();
|
|
247
247
|
};
|
|
248
248
|
return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
|
|
249
|
-
}, [e, s]),
|
|
249
|
+
}, [e, s]), B(() => {
|
|
250
250
|
if (!e) return;
|
|
251
|
-
const l = (
|
|
252
|
-
|
|
251
|
+
const l = (b) => {
|
|
252
|
+
g.current && !g.current.contains(b.target) && s();
|
|
253
253
|
};
|
|
254
254
|
return document.addEventListener("pointerdown", l, !0), () => document.removeEventListener("pointerdown", l, !0);
|
|
255
255
|
}, [e, s]), !e) return null;
|
|
256
|
-
const
|
|
256
|
+
const D = o && o.length > 0, p = /* @__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__ */ c(
|
|
266
266
|
"button",
|
|
267
267
|
{
|
|
268
268
|
role: "menuitem",
|
|
269
|
-
style:
|
|
269
|
+
style: Ne(d === "__primary"),
|
|
270
270
|
onMouseEnter: () => m("__primary"),
|
|
271
271
|
onMouseLeave: () => m(null),
|
|
272
272
|
onClick: () => {
|
|
@@ -275,11 +275,11 @@ function Re({
|
|
|
275
275
|
children: "Open in table"
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ c(
|
|
279
279
|
"button",
|
|
280
280
|
{
|
|
281
281
|
role: "menuitem",
|
|
282
|
-
style:
|
|
282
|
+
style: Y(d === "__graph"),
|
|
283
283
|
onMouseEnter: () => m("__graph"),
|
|
284
284
|
onMouseLeave: () => m(null),
|
|
285
285
|
onClick: () => {
|
|
@@ -288,12 +288,12 @@ function Re({
|
|
|
288
288
|
children: "Show on graph"
|
|
289
289
|
}
|
|
290
290
|
),
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
D && /* @__PURE__ */ c("div", { style: Se }),
|
|
292
|
+
D && o?.map((l) => /* @__PURE__ */ c(
|
|
293
293
|
"button",
|
|
294
294
|
{
|
|
295
295
|
role: "menuitem",
|
|
296
|
-
style:
|
|
296
|
+
style: Y(d === l.id),
|
|
297
297
|
onMouseEnter: () => m(l.id),
|
|
298
298
|
onMouseLeave: () => m(null),
|
|
299
299
|
onClick: () => {
|
|
@@ -306,13 +306,13 @@ function Re({
|
|
|
306
306
|
]
|
|
307
307
|
}
|
|
308
308
|
);
|
|
309
|
-
return
|
|
309
|
+
return ve(p, document.body);
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
const
|
|
311
|
+
Te.displayName = "StatusSlotChipMenu";
|
|
312
|
+
const xe = ge(
|
|
313
313
|
function({ state: t, onPointerDown: r, onPointerUp: a, edge: n = "right", ariaLabel: o = "Resize card" }, s) {
|
|
314
|
-
const
|
|
315
|
-
return /* @__PURE__ */
|
|
314
|
+
const d = t === "handle-visible" || t === "dragging";
|
|
315
|
+
return /* @__PURE__ */ c(
|
|
316
316
|
"button",
|
|
317
317
|
{
|
|
318
318
|
ref: s,
|
|
@@ -323,23 +323,23 @@ const Me = ve(
|
|
|
323
323
|
className: [
|
|
324
324
|
"gloss-edge-handle",
|
|
325
325
|
`gloss-edge-handle--${n}`,
|
|
326
|
-
|
|
326
|
+
d ? "gloss-edge-handle--visible" : ""
|
|
327
327
|
].filter(Boolean).join(" "),
|
|
328
328
|
onPointerDown: r,
|
|
329
329
|
onPointerUp: a,
|
|
330
|
-
tabIndex:
|
|
330
|
+
tabIndex: d ? 0 : -1
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
333
|
}
|
|
334
334
|
);
|
|
335
|
-
|
|
336
|
-
function
|
|
335
|
+
xe.displayName = "EdgeHoverHandle";
|
|
336
|
+
function ke({
|
|
337
337
|
visible: e,
|
|
338
338
|
targetColSpan: t,
|
|
339
339
|
enterMs: r = 180,
|
|
340
340
|
exitMs: a = 120
|
|
341
341
|
}) {
|
|
342
|
-
return /* @__PURE__ */
|
|
342
|
+
return /* @__PURE__ */ c(
|
|
343
343
|
"div",
|
|
344
344
|
{
|
|
345
345
|
"aria-hidden": "true",
|
|
@@ -353,8 +353,8 @@ function Pe({
|
|
|
353
353
|
}
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
|
-
|
|
357
|
-
function
|
|
356
|
+
ke.displayName = "GhostPreview";
|
|
357
|
+
function vt({
|
|
358
358
|
currentColSpan: e,
|
|
359
359
|
stackable: t,
|
|
360
360
|
onResize: r,
|
|
@@ -363,47 +363,51 @@ function wt({
|
|
|
363
363
|
enterMs: o = 180,
|
|
364
364
|
exitMs: s = 120
|
|
365
365
|
}) {
|
|
366
|
-
const [
|
|
367
|
-
|
|
368
|
-
}, []),
|
|
369
|
-
m((i) => i !== "idle" ? i : (
|
|
370
|
-
}, [n]), l =
|
|
371
|
-
|
|
372
|
-
}, [
|
|
366
|
+
const [d, m] = M("idle"), g = F(null), y = F(null), D = f(() => {
|
|
367
|
+
g.current && (clearTimeout(g.current), g.current = null);
|
|
368
|
+
}, []), p = f(() => {
|
|
369
|
+
m((i) => i !== "idle" ? i : (g.current = setTimeout(() => m("handle-visible"), n), "dwelling"));
|
|
370
|
+
}, [n]), l = f(() => {
|
|
371
|
+
D(), m((i) => i === "dwelling" || i === "handle-visible" ? "idle" : i);
|
|
372
|
+
}, [D]), b = f(
|
|
373
373
|
(i) => {
|
|
374
|
-
m((
|
|
374
|
+
m((h) => h !== "handle-visible" ? h : (y.current = i.clientX, "dragging"));
|
|
375
375
|
},
|
|
376
376
|
[]
|
|
377
|
-
), S =
|
|
377
|
+
), S = f(
|
|
378
378
|
(i) => {
|
|
379
|
-
m((
|
|
380
|
-
if (
|
|
381
|
-
const
|
|
382
|
-
if (
|
|
379
|
+
m((h) => {
|
|
380
|
+
if (h !== "dragging") return h;
|
|
381
|
+
const N = i.clientX - (y.current ?? i.clientX), x = Math.round(N / 180), u = Math.min(3, Math.max(1, e + x));
|
|
382
|
+
if (u === e)
|
|
383
383
|
return a?.(), "cancelled";
|
|
384
|
-
const
|
|
385
|
-
return r({ direction:
|
|
384
|
+
const w = u > e ? "grow" : "shrink";
|
|
385
|
+
return r({ direction: w, targetColSpan: u, mode: t ? "slot-fill" : "sparkline-fidelity" }), "committed";
|
|
386
386
|
});
|
|
387
387
|
},
|
|
388
388
|
[e, t, r, a]
|
|
389
|
-
),
|
|
390
|
-
|
|
391
|
-
}, [
|
|
392
|
-
return
|
|
393
|
-
if (
|
|
394
|
-
const i = (
|
|
395
|
-
|
|
389
|
+
), T = f(() => {
|
|
390
|
+
D(), m((i) => i === "dragging" || i === "handle-visible" ? (a?.(), "cancelled") : i);
|
|
391
|
+
}, [D, a]);
|
|
392
|
+
return B(() => {
|
|
393
|
+
if (d !== "dragging" && d !== "handle-visible") return;
|
|
394
|
+
const i = (h) => {
|
|
395
|
+
h.key === "Escape" && T();
|
|
396
396
|
};
|
|
397
397
|
return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
|
|
398
|
-
}, [
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
}, [d, T]), B(() => () => D(), [D]), B(() => {
|
|
399
|
+
if (d !== "committed" && d !== "cancelled") return;
|
|
400
|
+
const i = setTimeout(() => m("idle"), s);
|
|
401
|
+
return () => clearTimeout(i);
|
|
402
|
+
}, [d, s]), {
|
|
403
|
+
state: d,
|
|
404
|
+
enterEdgeZone: p,
|
|
401
405
|
leaveEdgeZone: l,
|
|
402
|
-
handleProps: { onPointerDown:
|
|
403
|
-
ghostProps: { visible:
|
|
406
|
+
handleProps: { onPointerDown: b, onPointerUp: S },
|
|
407
|
+
ghostProps: { visible: d === "dragging", enterMs: o, exitMs: s }
|
|
404
408
|
};
|
|
405
409
|
}
|
|
406
|
-
const
|
|
410
|
+
const Ct = {
|
|
407
411
|
/** Delay before flip animation begins (ms). */
|
|
408
412
|
flipStart: 50,
|
|
409
413
|
/** Duration of panel extrude animation (ms). */
|
|
@@ -412,7 +416,7 @@ const Nt = {
|
|
|
412
416
|
settle: 100,
|
|
413
417
|
/** Total choreography duration (ms). */
|
|
414
418
|
total: 350
|
|
415
|
-
},
|
|
419
|
+
}, yt = [
|
|
416
420
|
// 1. Standard: Total Revenue
|
|
417
421
|
{
|
|
418
422
|
variant: "standard",
|
|
@@ -516,24 +520,24 @@ const Nt = {
|
|
|
516
520
|
{ value: 9, color: "#6b7280", label: "Other" }
|
|
517
521
|
]
|
|
518
522
|
}
|
|
519
|
-
],
|
|
523
|
+
], Ie = {
|
|
520
524
|
variant: "standard",
|
|
521
525
|
label: "Total Revenue",
|
|
522
526
|
isLoading: !0
|
|
523
|
-
},
|
|
527
|
+
}, _e = {
|
|
524
528
|
variant: "standard",
|
|
525
529
|
label: "Total Revenue",
|
|
526
530
|
value: 125430,
|
|
527
531
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
528
532
|
isError: !0
|
|
529
|
-
},
|
|
533
|
+
}, Re = {
|
|
530
534
|
variant: "standard",
|
|
531
535
|
label: "Total Revenue",
|
|
532
536
|
value: null,
|
|
533
537
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
534
538
|
isEmpty: !0,
|
|
535
539
|
subtitle: "No data"
|
|
536
|
-
},
|
|
540
|
+
}, Me = {
|
|
537
541
|
variant: "standard",
|
|
538
542
|
label: "Total Revenue",
|
|
539
543
|
value: 125430,
|
|
@@ -541,7 +545,7 @@ const Nt = {
|
|
|
541
545
|
trend: { value: 12.5, direction: "up" },
|
|
542
546
|
subtitle: "MTD",
|
|
543
547
|
isStale: !0
|
|
544
|
-
},
|
|
548
|
+
}, Pe = {
|
|
545
549
|
variant: "sparkline",
|
|
546
550
|
label: "Daily Orders",
|
|
547
551
|
value: 847,
|
|
@@ -550,7 +554,7 @@ const Nt = {
|
|
|
550
554
|
sparklineData: [42, 38, 51, 47, 55, 60, 58, 63, 57, 62, 68, 71, 65, 59],
|
|
551
555
|
accentColor: "#6366f1",
|
|
552
556
|
isStale: !0
|
|
553
|
-
},
|
|
557
|
+
}, Fe = {
|
|
554
558
|
variant: "donut",
|
|
555
559
|
label: "Order Fill Rate",
|
|
556
560
|
value: 78,
|
|
@@ -561,14 +565,14 @@ const Nt = {
|
|
|
561
565
|
donutMax: 100,
|
|
562
566
|
accentColor: "#10b981",
|
|
563
567
|
isStale: !0
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
],
|
|
568
|
+
}, Dt = [
|
|
569
|
+
Ie,
|
|
570
|
+
_e,
|
|
571
|
+
Re,
|
|
572
|
+
Me,
|
|
573
|
+
Pe,
|
|
574
|
+
Fe
|
|
575
|
+
], wt = {
|
|
572
576
|
variant: "sparkline",
|
|
573
577
|
label: "Daily Orders",
|
|
574
578
|
value: 847,
|
|
@@ -591,7 +595,7 @@ const Nt = {
|
|
|
591
595
|
59
|
|
592
596
|
],
|
|
593
597
|
accentColor: "#6366f1"
|
|
594
|
-
},
|
|
598
|
+
}, Nt = {
|
|
595
599
|
variant: "sparkline",
|
|
596
600
|
label: "New Customers",
|
|
597
601
|
value: 23,
|
|
@@ -630,21 +634,21 @@ const Nt = {
|
|
|
630
634
|
19
|
|
631
635
|
],
|
|
632
636
|
accentColor: "#10b981"
|
|
633
|
-
},
|
|
637
|
+
}, St = {
|
|
634
638
|
variant: "standard",
|
|
635
639
|
label: "Total Revenue",
|
|
636
640
|
value: 125430,
|
|
637
641
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
638
642
|
trend: { value: 12.5, direction: "up" },
|
|
639
643
|
subtitle: "MTD"
|
|
640
|
-
},
|
|
644
|
+
}, Tt = {
|
|
641
645
|
variant: "standard",
|
|
642
646
|
label: "Returns",
|
|
643
647
|
value: 3280,
|
|
644
648
|
valueFormat: { prefix: "$", abbreviated: !0 },
|
|
645
649
|
trend: { value: -8.3, direction: "down" },
|
|
646
650
|
subtitle: "MTD"
|
|
647
|
-
},
|
|
651
|
+
}, xt = {
|
|
648
652
|
variant: "standard",
|
|
649
653
|
label: "Avg Order Value",
|
|
650
654
|
value: 487,
|
|
@@ -660,25 +664,25 @@ function ne({
|
|
|
660
664
|
activePageId: n,
|
|
661
665
|
onPageChange: o,
|
|
662
666
|
onCreatePage: s,
|
|
663
|
-
onManagePages:
|
|
667
|
+
onManagePages: d
|
|
664
668
|
}) {
|
|
665
|
-
const m =
|
|
666
|
-
(
|
|
667
|
-
o(
|
|
669
|
+
const m = f(
|
|
670
|
+
(p) => {
|
|
671
|
+
o(p), t();
|
|
668
672
|
},
|
|
669
673
|
[o, t]
|
|
670
|
-
),
|
|
671
|
-
(
|
|
672
|
-
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m(
|
|
674
|
+
), g = f(
|
|
675
|
+
(p, l) => {
|
|
676
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m(p));
|
|
673
677
|
},
|
|
674
678
|
[m]
|
|
675
|
-
),
|
|
679
|
+
), y = f(() => {
|
|
676
680
|
s(), t();
|
|
677
|
-
}, [s, t]),
|
|
678
|
-
|
|
679
|
-
}, [
|
|
680
|
-
return /* @__PURE__ */
|
|
681
|
-
|
|
681
|
+
}, [s, t]), D = f(() => {
|
|
682
|
+
d(), t();
|
|
683
|
+
}, [d, t]);
|
|
684
|
+
return /* @__PURE__ */ R(
|
|
685
|
+
he,
|
|
682
686
|
{
|
|
683
687
|
definition: {
|
|
684
688
|
placement: "bottom-end",
|
|
@@ -691,9 +695,9 @@ function ne({
|
|
|
691
695
|
anchorRef: r,
|
|
692
696
|
className: "gloss-page-dropdown",
|
|
693
697
|
children: [
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
const l =
|
|
696
|
-
return /* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ c("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((p) => {
|
|
699
|
+
const l = p.id === n;
|
|
700
|
+
return /* @__PURE__ */ R(
|
|
697
701
|
"li",
|
|
698
702
|
{
|
|
699
703
|
role: "menuitemradio",
|
|
@@ -701,45 +705,45 @@ function ne({
|
|
|
701
705
|
"aria-current": l ? "page" : void 0,
|
|
702
706
|
tabIndex: 0,
|
|
703
707
|
className: `gloss-page-dropdown__item${l ? " gloss-page-dropdown__item--active" : ""}`,
|
|
704
|
-
onClick: () => m(
|
|
705
|
-
onKeyDown: (
|
|
708
|
+
onClick: () => m(p.id),
|
|
709
|
+
onKeyDown: (b) => g(p.id, b),
|
|
706
710
|
children: [
|
|
707
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ c(
|
|
708
712
|
"span",
|
|
709
713
|
{
|
|
710
714
|
className: `gloss-page-dropdown__dot${l ? " gloss-page-dropdown__dot--active" : ""}`
|
|
711
715
|
}
|
|
712
716
|
),
|
|
713
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ c(
|
|
714
718
|
"span",
|
|
715
719
|
{
|
|
716
|
-
className: `gloss-page-dropdown__name${
|
|
717
|
-
children:
|
|
720
|
+
className: `gloss-page-dropdown__name${p.named ? "" : " gloss-page-dropdown__name--unnamed"}`,
|
|
721
|
+
children: p.name
|
|
718
722
|
}
|
|
719
723
|
),
|
|
720
|
-
/* @__PURE__ */
|
|
724
|
+
/* @__PURE__ */ c("span", { className: "gloss-page-dropdown__count", children: p.cardCount })
|
|
721
725
|
]
|
|
722
726
|
},
|
|
723
|
-
|
|
727
|
+
p.id
|
|
724
728
|
);
|
|
725
729
|
}) }),
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ c("hr", { className: "gloss-page-dropdown__separator" }),
|
|
731
|
+
/* @__PURE__ */ c(
|
|
728
732
|
"button",
|
|
729
733
|
{
|
|
730
734
|
role: "menuitem",
|
|
731
735
|
className: "gloss-page-dropdown__action",
|
|
732
|
-
onClick:
|
|
736
|
+
onClick: y,
|
|
733
737
|
children: "+ New page"
|
|
734
738
|
}
|
|
735
739
|
),
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
/* @__PURE__ */
|
|
740
|
+
/* @__PURE__ */ c("hr", { className: "gloss-page-dropdown__separator" }),
|
|
741
|
+
/* @__PURE__ */ c(
|
|
738
742
|
"button",
|
|
739
743
|
{
|
|
740
744
|
role: "menuitem",
|
|
741
745
|
className: "gloss-page-dropdown__action gloss-page-dropdown__action--muted",
|
|
742
|
-
onClick:
|
|
746
|
+
onClick: D,
|
|
743
747
|
children: "Manage pages"
|
|
744
748
|
}
|
|
745
749
|
)
|
|
@@ -748,21 +752,21 @@ function ne({
|
|
|
748
752
|
);
|
|
749
753
|
}
|
|
750
754
|
ne.displayName = "PageDropdown";
|
|
751
|
-
const
|
|
755
|
+
const Oe = function({
|
|
752
756
|
currentIndex: t,
|
|
753
757
|
total: r,
|
|
754
758
|
pages: a,
|
|
755
759
|
onPageChange: n,
|
|
756
760
|
onCreatePage: o,
|
|
757
761
|
onManagePages: s,
|
|
758
|
-
maskRadius:
|
|
762
|
+
maskRadius: d = "var(--gloss-radius-md)"
|
|
759
763
|
}) {
|
|
760
|
-
const m = F(null), [
|
|
761
|
-
|
|
762
|
-
}, []),
|
|
763
|
-
|
|
764
|
+
const m = F(null), [g, y] = M(!1), D = f(() => {
|
|
765
|
+
y((b) => !b);
|
|
766
|
+
}, []), p = f(() => {
|
|
767
|
+
y(!1);
|
|
764
768
|
}, []), l = a[t]?.id ?? "";
|
|
765
|
-
return /* @__PURE__ */
|
|
769
|
+
return /* @__PURE__ */ R(
|
|
766
770
|
"div",
|
|
767
771
|
{
|
|
768
772
|
className: "gloss-page-chip",
|
|
@@ -770,21 +774,21 @@ const Ge = function({
|
|
|
770
774
|
style: { position: "absolute", top: 0, right: 0 },
|
|
771
775
|
"data-page-chip": !0,
|
|
772
776
|
children: [
|
|
773
|
-
/* @__PURE__ */
|
|
777
|
+
/* @__PURE__ */ c(
|
|
774
778
|
"div",
|
|
775
779
|
{
|
|
776
780
|
className: "gloss-page-chip__nuzzle",
|
|
777
|
-
style: { "--_nuzzle-r":
|
|
781
|
+
style: { "--_nuzzle-r": d }
|
|
778
782
|
}
|
|
779
783
|
),
|
|
780
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ R(
|
|
781
785
|
"button",
|
|
782
786
|
{
|
|
783
787
|
className: "gloss-page-chip__trigger",
|
|
784
788
|
"aria-haspopup": "menu",
|
|
785
|
-
"aria-expanded":
|
|
789
|
+
"aria-expanded": g,
|
|
786
790
|
"aria-label": `Page ${t + 1} of ${r}. Click to switch pages.`,
|
|
787
|
-
onClick:
|
|
791
|
+
onClick: D,
|
|
788
792
|
children: [
|
|
789
793
|
t + 1,
|
|
790
794
|
" / ",
|
|
@@ -792,11 +796,11 @@ const Ge = function({
|
|
|
792
796
|
]
|
|
793
797
|
}
|
|
794
798
|
),
|
|
795
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ c(
|
|
796
800
|
ne,
|
|
797
801
|
{
|
|
798
|
-
open:
|
|
799
|
-
onDismiss:
|
|
802
|
+
open: g,
|
|
803
|
+
onDismiss: p,
|
|
800
804
|
anchorRef: m,
|
|
801
805
|
pages: a,
|
|
802
806
|
activePageId: l,
|
|
@@ -809,8 +813,8 @@ const Ge = function({
|
|
|
809
813
|
}
|
|
810
814
|
);
|
|
811
815
|
};
|
|
812
|
-
|
|
813
|
-
const
|
|
816
|
+
Oe.displayName = "PageChip";
|
|
817
|
+
const kt = [
|
|
814
818
|
{
|
|
815
819
|
id: "ORD-1001",
|
|
816
820
|
orderNumber: "ORD-1001",
|
|
@@ -943,7 +947,7 @@ const Mt = [
|
|
|
943
947
|
date: "2026-03-01",
|
|
944
948
|
skuCount: 9
|
|
945
949
|
}
|
|
946
|
-
],
|
|
950
|
+
], It = [
|
|
947
951
|
{
|
|
948
952
|
id: "ITEM-001",
|
|
949
953
|
sku: "PB-4520",
|
|
@@ -1077,7 +1081,7 @@ const Mt = [
|
|
|
1077
1081
|
lastDate: "2026-03-01"
|
|
1078
1082
|
}
|
|
1079
1083
|
];
|
|
1080
|
-
function
|
|
1084
|
+
function q(e) {
|
|
1081
1085
|
return "$" + e.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
1082
1086
|
}
|
|
1083
1087
|
function oe(e) {
|
|
@@ -1086,7 +1090,7 @@ function oe(e) {
|
|
|
1086
1090
|
function se(e) {
|
|
1087
1091
|
return new Date(e).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" });
|
|
1088
1092
|
}
|
|
1089
|
-
const
|
|
1093
|
+
const H = I.createElement("span", { style: { color: "var(--color-text-muted)" } }, "—"), _t = [
|
|
1090
1094
|
{
|
|
1091
1095
|
field: "id",
|
|
1092
1096
|
headerName: "Order",
|
|
@@ -1116,7 +1120,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1116
1120
|
align: "right",
|
|
1117
1121
|
headerAlign: "right",
|
|
1118
1122
|
cellClassName: "gloss-tabular-nums",
|
|
1119
|
-
renderCell: ({ row: e }) => e.skuCount ? oe(e.skuCount) :
|
|
1123
|
+
renderCell: ({ row: e }) => e.skuCount ? oe(e.skuCount) : H
|
|
1120
1124
|
},
|
|
1121
1125
|
{
|
|
1122
1126
|
field: "total",
|
|
@@ -1126,7 +1130,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1126
1130
|
align: "right",
|
|
1127
1131
|
headerAlign: "right",
|
|
1128
1132
|
cellClassName: "gloss-tabular-nums",
|
|
1129
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1133
|
+
renderCell: ({ row: e }) => e.total ? q(e.total) : H
|
|
1130
1134
|
},
|
|
1131
1135
|
{
|
|
1132
1136
|
field: "date",
|
|
@@ -1138,7 +1142,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1138
1142
|
cellClassName: "gloss-tabular-nums",
|
|
1139
1143
|
renderCell: ({ row: e }) => e.date ? se(e.date) : ""
|
|
1140
1144
|
}
|
|
1141
|
-
],
|
|
1145
|
+
], Rt = [
|
|
1142
1146
|
{
|
|
1143
1147
|
field: "sku",
|
|
1144
1148
|
headerName: "Item ID",
|
|
@@ -1170,7 +1174,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1170
1174
|
align: "right",
|
|
1171
1175
|
headerAlign: "right",
|
|
1172
1176
|
cellClassName: "gloss-tabular-nums",
|
|
1173
|
-
renderCell: ({ row: e }) => e.price ?
|
|
1177
|
+
renderCell: ({ row: e }) => e.price ? q(e.price) : H
|
|
1174
1178
|
},
|
|
1175
1179
|
{
|
|
1176
1180
|
field: "quantity",
|
|
@@ -1180,7 +1184,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1180
1184
|
align: "right",
|
|
1181
1185
|
headerAlign: "right",
|
|
1182
1186
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1183
|
-
renderCell: ({ row: e }) => e.quantity ? oe(e.quantity) :
|
|
1187
|
+
renderCell: ({ row: e }) => e.quantity ? oe(e.quantity) : H
|
|
1184
1188
|
},
|
|
1185
1189
|
{
|
|
1186
1190
|
field: "total",
|
|
@@ -1190,7 +1194,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1190
1194
|
align: "right",
|
|
1191
1195
|
headerAlign: "right",
|
|
1192
1196
|
cellClassName: "gloss-tabular-nums gloss-drillable",
|
|
1193
|
-
renderCell: ({ row: e }) => e.total ?
|
|
1197
|
+
renderCell: ({ row: e }) => e.total ? q(e.total) : H
|
|
1194
1198
|
},
|
|
1195
1199
|
{
|
|
1196
1200
|
field: "lastDate",
|
|
@@ -1202,21 +1206,21 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1202
1206
|
cellClassName: "gloss-tabular-nums",
|
|
1203
1207
|
renderCell: ({ row: e }) => e.lastDate ? se(e.lastDate) : ""
|
|
1204
1208
|
}
|
|
1205
|
-
],
|
|
1209
|
+
], Ae = [
|
|
1206
1210
|
{ id: "c-001", label: "ABC Home Goods" },
|
|
1207
1211
|
{ id: "c-002", label: "Riverside Retail" },
|
|
1208
1212
|
{ id: "c-003", label: "Mountain View Store" },
|
|
1209
1213
|
{ id: "c-004", label: "Downtown Decor" },
|
|
1210
1214
|
{ id: "c-005", label: "Pacific Coast Imports" }
|
|
1211
|
-
],
|
|
1215
|
+
], Ee = [
|
|
1212
1216
|
{ id: "i-001", label: "Classic Linen Throw Pillow" },
|
|
1213
1217
|
{ id: "i-002", label: "Coastal Wave Candle Set" },
|
|
1214
1218
|
{ id: "i-003", label: "Walnut Console Table" },
|
|
1215
1219
|
{ id: "i-004", label: "Hand-Blown Glass Vase" },
|
|
1216
1220
|
{ id: "i-005", label: "Velvet Accent Cushion" }
|
|
1217
|
-
],
|
|
1218
|
-
},
|
|
1219
|
-
},
|
|
1221
|
+
], W = (e) => {
|
|
1222
|
+
}, Le = (e) => {
|
|
1223
|
+
}, ee = (e, t) => {
|
|
1220
1224
|
}, ie = {
|
|
1221
1225
|
vizState: {
|
|
1222
1226
|
type: "orders",
|
|
@@ -1225,16 +1229,16 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1225
1229
|
byItem: { id: null, name: null },
|
|
1226
1230
|
timeFrame: "MTD"
|
|
1227
1231
|
},
|
|
1228
|
-
onTypeChange:
|
|
1229
|
-
onQuantChange:
|
|
1230
|
-
onEntityTypeChange:
|
|
1231
|
-
onEntitySelect:
|
|
1232
|
-
onItemSelect:
|
|
1233
|
-
onTimeFrameChange:
|
|
1232
|
+
onTypeChange: W,
|
|
1233
|
+
onQuantChange: Le,
|
|
1234
|
+
onEntityTypeChange: W,
|
|
1235
|
+
onEntitySelect: ee,
|
|
1236
|
+
onItemSelect: ee,
|
|
1237
|
+
onTimeFrameChange: W,
|
|
1234
1238
|
userType: "sales-agency",
|
|
1235
|
-
entityFilterOptions:
|
|
1236
|
-
itemFilterOptions:
|
|
1237
|
-
},
|
|
1239
|
+
entityFilterOptions: Ae,
|
|
1240
|
+
itemFilterOptions: Ee
|
|
1241
|
+
}, Mt = {
|
|
1238
1242
|
...ie,
|
|
1239
1243
|
vizState: {
|
|
1240
1244
|
type: "items",
|
|
@@ -1243,7 +1247,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1243
1247
|
byItem: { id: "i-003", name: "Walnut Console Table" },
|
|
1244
1248
|
timeFrame: "YTD"
|
|
1245
1249
|
}
|
|
1246
|
-
},
|
|
1250
|
+
}, Pt = {
|
|
1247
1251
|
...ie,
|
|
1248
1252
|
vizState: {
|
|
1249
1253
|
type: "orders",
|
|
@@ -1256,7 +1260,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1256
1260
|
entityFilterOptions: [
|
|
1257
1261
|
{ id: "customers", label: "Customers" }
|
|
1258
1262
|
]
|
|
1259
|
-
},
|
|
1263
|
+
}, Be = [
|
|
1260
1264
|
{
|
|
1261
1265
|
id: "recent-orders",
|
|
1262
1266
|
label: "Recent Orders",
|
|
@@ -1302,7 +1306,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1302
1306
|
routeKey: "customer.profile",
|
|
1303
1307
|
subtitle: "Opens in RepTime"
|
|
1304
1308
|
}
|
|
1305
|
-
],
|
|
1309
|
+
], Ge = [
|
|
1306
1310
|
{
|
|
1307
1311
|
id: "order-items",
|
|
1308
1312
|
label: "Items in Order",
|
|
@@ -1331,7 +1335,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1331
1335
|
cellKinds: ["orderId"],
|
|
1332
1336
|
graphType: "timeline"
|
|
1333
1337
|
}
|
|
1334
|
-
],
|
|
1338
|
+
], $e = [
|
|
1335
1339
|
{
|
|
1336
1340
|
id: "graph-metric",
|
|
1337
1341
|
label: "Graph This Metric",
|
|
@@ -1359,14 +1363,14 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1359
1363
|
cellKinds: ["numeric"],
|
|
1360
1364
|
tabType: "orders"
|
|
1361
1365
|
}
|
|
1362
|
-
],
|
|
1363
|
-
entityName:
|
|
1364
|
-
orderId:
|
|
1365
|
-
numeric:
|
|
1366
|
-
},
|
|
1366
|
+
], Ft = {
|
|
1367
|
+
entityName: Be,
|
|
1368
|
+
orderId: Ge,
|
|
1369
|
+
numeric: $e
|
|
1370
|
+
}, Ot = [
|
|
1367
1371
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), (/* @__PURE__ */ new Date()).getDate() - 29),
|
|
1368
1372
|
/* @__PURE__ */ new Date()
|
|
1369
|
-
],
|
|
1373
|
+
], At = {
|
|
1370
1374
|
rangeA: [
|
|
1371
1375
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1),
|
|
1372
1376
|
/* @__PURE__ */ new Date()
|
|
@@ -1379,7 +1383,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1379
1383
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 2, 1),
|
|
1380
1384
|
new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() - 1, 0)
|
|
1381
1385
|
]
|
|
1382
|
-
},
|
|
1386
|
+
}, Et = {
|
|
1383
1387
|
version: 4,
|
|
1384
1388
|
lastPreset: "mtd",
|
|
1385
1389
|
pinnedPreset: "mtd",
|
|
@@ -1387,7 +1391,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1387
1391
|
rangeCount: 1,
|
|
1388
1392
|
lastPresetB: null,
|
|
1389
1393
|
lastPresetC: null
|
|
1390
|
-
},
|
|
1394
|
+
}, Lt = [
|
|
1391
1395
|
{
|
|
1392
1396
|
id: "atlanta-jan",
|
|
1393
1397
|
label: "Atlanta Market",
|
|
@@ -1409,7 +1413,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1409
1413
|
endDate: new Date(2026, 3, 22),
|
|
1410
1414
|
location: "Chicago, IL"
|
|
1411
1415
|
}
|
|
1412
|
-
],
|
|
1416
|
+
], Bt = [
|
|
1413
1417
|
{
|
|
1414
1418
|
id: "custom-regional-1",
|
|
1415
1419
|
label: "Southeast Regional Expo",
|
|
@@ -1426,7 +1430,7 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1426
1430
|
location: "Portland, OR",
|
|
1427
1431
|
isCustom: !0
|
|
1428
1432
|
}
|
|
1429
|
-
],
|
|
1433
|
+
], Gt = [
|
|
1430
1434
|
{
|
|
1431
1435
|
id: "atlanta-jan",
|
|
1432
1436
|
label: "Atlanta Market",
|
|
@@ -1443,12 +1447,12 @@ const z = R.createElement("span", { style: { color: "var(--color-text-muted)" }
|
|
|
1443
1447
|
location: "New York, NY",
|
|
1444
1448
|
active: !0
|
|
1445
1449
|
}
|
|
1446
|
-
],
|
|
1450
|
+
], $t = [
|
|
1447
1451
|
{ id: "7d", label: "7D" },
|
|
1448
1452
|
{ id: "30d", label: "30D" },
|
|
1449
1453
|
{ id: "60d", label: "60D" },
|
|
1450
1454
|
{ id: "90d", label: "90D" }
|
|
1451
|
-
],
|
|
1455
|
+
], Ht = [
|
|
1452
1456
|
{ id: "mtd", label: "MTD" },
|
|
1453
1457
|
{ id: "qtd", label: "QTD" },
|
|
1454
1458
|
{ id: "ytd", label: "YTD" },
|
|
@@ -1458,7 +1462,7 @@ function P(e, t) {
|
|
|
1458
1462
|
return {
|
|
1459
1463
|
id: e,
|
|
1460
1464
|
colSpan: 1,
|
|
1461
|
-
content:
|
|
1465
|
+
content: I.createElement("div", {
|
|
1462
1466
|
style: {
|
|
1463
1467
|
width: "100%",
|
|
1464
1468
|
height: "100%",
|
|
@@ -1474,38 +1478,38 @@ function P(e, t) {
|
|
|
1474
1478
|
}, t)
|
|
1475
1479
|
};
|
|
1476
1480
|
}
|
|
1477
|
-
function
|
|
1481
|
+
function te(e, t) {
|
|
1478
1482
|
return {
|
|
1479
1483
|
...P(e, t),
|
|
1480
1484
|
colSpan: 2
|
|
1481
1485
|
};
|
|
1482
1486
|
}
|
|
1483
|
-
const
|
|
1487
|
+
const zt = [
|
|
1484
1488
|
P("total-revenue", "Total Revenue"),
|
|
1485
1489
|
P("total-orders", "Total Orders"),
|
|
1486
|
-
|
|
1490
|
+
te("revenue-trend", "Revenue Trend (2x)"),
|
|
1487
1491
|
P("avg-order", "Avg Order Value"),
|
|
1488
1492
|
P("new-customers", "New Customers"),
|
|
1489
1493
|
P("top-salesperson", "Top Salesperson"),
|
|
1490
|
-
|
|
1494
|
+
te("order-trend", "Order Trend (2x)"),
|
|
1491
1495
|
P("repeat-rate", "Repeat Rate"),
|
|
1492
1496
|
P("open-orders", "Open Orders"),
|
|
1493
1497
|
P("shipped-orders", "Shipped Orders")
|
|
1494
|
-
],
|
|
1498
|
+
], Kt = {
|
|
1495
1499
|
columns: 6,
|
|
1496
1500
|
rowHeight: 120,
|
|
1497
1501
|
gap: 15,
|
|
1498
1502
|
maxRows: 3,
|
|
1499
1503
|
currentPage: 0,
|
|
1500
1504
|
totalPages: 1
|
|
1501
|
-
},
|
|
1505
|
+
}, Wt = {
|
|
1502
1506
|
columns: 9,
|
|
1503
1507
|
rowHeight: 120,
|
|
1504
1508
|
gap: 15,
|
|
1505
1509
|
maxRows: 3,
|
|
1506
1510
|
currentPage: 0,
|
|
1507
1511
|
totalPages: 2
|
|
1508
|
-
},
|
|
1512
|
+
}, Zt = {
|
|
1509
1513
|
columns: 12,
|
|
1510
1514
|
rowHeight: 120,
|
|
1511
1515
|
gap: 15,
|
|
@@ -1513,15 +1517,15 @@ const Yt = [
|
|
|
1513
1517
|
currentPage: 0,
|
|
1514
1518
|
totalPages: 3
|
|
1515
1519
|
};
|
|
1516
|
-
function
|
|
1517
|
-
return
|
|
1520
|
+
function Z(e) {
|
|
1521
|
+
return I.createElement("span", { style: { fontSize: 14 } }, e);
|
|
1518
1522
|
}
|
|
1519
|
-
const
|
|
1523
|
+
const Yt = [
|
|
1520
1524
|
{
|
|
1521
1525
|
id: "all-orders",
|
|
1522
1526
|
type: "orders",
|
|
1523
1527
|
name: "All Orders",
|
|
1524
|
-
icon:
|
|
1528
|
+
icon: Z("📋"),
|
|
1525
1529
|
closable: !1,
|
|
1526
1530
|
autoCreated: !0
|
|
1527
1531
|
},
|
|
@@ -1529,17 +1533,17 @@ const jt = [
|
|
|
1529
1533
|
id: "open-orders",
|
|
1530
1534
|
type: "orders",
|
|
1531
1535
|
name: "Open Orders",
|
|
1532
|
-
icon:
|
|
1536
|
+
icon: Z("📦"),
|
|
1533
1537
|
closable: !0
|
|
1534
1538
|
},
|
|
1535
1539
|
{
|
|
1536
1540
|
id: "shipped-orders",
|
|
1537
1541
|
type: "orders",
|
|
1538
1542
|
name: "Shipped Orders",
|
|
1539
|
-
icon:
|
|
1543
|
+
icon: Z("🚚"),
|
|
1540
1544
|
closable: !0
|
|
1541
1545
|
}
|
|
1542
|
-
],
|
|
1546
|
+
], qt = [
|
|
1543
1547
|
{
|
|
1544
1548
|
id: "orders-main",
|
|
1545
1549
|
type: "orders",
|
|
@@ -1565,7 +1569,7 @@ const jt = [
|
|
|
1565
1569
|
name: "Customers",
|
|
1566
1570
|
closable: !0
|
|
1567
1571
|
}
|
|
1568
|
-
],
|
|
1572
|
+
], Vt = [
|
|
1569
1573
|
{
|
|
1570
1574
|
id: "only-tab",
|
|
1571
1575
|
type: "orders",
|
|
@@ -1573,7 +1577,7 @@ const jt = [
|
|
|
1573
1577
|
closable: !1,
|
|
1574
1578
|
autoCreated: !0
|
|
1575
1579
|
}
|
|
1576
|
-
],
|
|
1580
|
+
], Ut = [
|
|
1577
1581
|
{ id: "tab-1", type: "orders", name: "All Orders", closable: !1, autoCreated: !0 },
|
|
1578
1582
|
{ id: "tab-2", type: "orders", name: "Open Orders", closable: !0 },
|
|
1579
1583
|
{ id: "tab-3", type: "orders", name: "Shipped Orders", closable: !0 },
|
|
@@ -1585,7 +1589,7 @@ const jt = [
|
|
|
1585
1589
|
{ id: "tab-9", type: "order-items", name: "Order #12345", closable: !0 },
|
|
1586
1590
|
{ id: "tab-10", type: "orders", name: "Recent 30D", closable: !0 }
|
|
1587
1591
|
];
|
|
1588
|
-
function
|
|
1592
|
+
function V(e) {
|
|
1589
1593
|
switch (e) {
|
|
1590
1594
|
case "wide":
|
|
1591
1595
|
return { cols: 2, rows: 1 };
|
|
@@ -1596,24 +1600,24 @@ function Y(e) {
|
|
|
1596
1600
|
return { cols: 1, rows: 1 };
|
|
1597
1601
|
}
|
|
1598
1602
|
}
|
|
1599
|
-
function
|
|
1603
|
+
function He(e) {
|
|
1600
1604
|
let t = 0;
|
|
1601
1605
|
for (const a of e) {
|
|
1602
|
-
const n =
|
|
1606
|
+
const n = V(a.size), o = a.gridPosition.col + n.cols - 1;
|
|
1603
1607
|
o > t && (t = o);
|
|
1604
1608
|
}
|
|
1605
1609
|
return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
|
|
1606
1610
|
}
|
|
1607
|
-
const
|
|
1611
|
+
const ze = function(t) {
|
|
1608
1612
|
if (t.renderMode === "discrete")
|
|
1609
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ c(
|
|
1610
1614
|
"div",
|
|
1611
1615
|
{
|
|
1612
1616
|
className: "gloss-metric-group gloss-metric-group--discrete",
|
|
1613
1617
|
style: { display: "contents" },
|
|
1614
1618
|
children: t.cards.map((n) => {
|
|
1615
|
-
const o =
|
|
1616
|
-
return /* @__PURE__ */
|
|
1619
|
+
const o = V(n.size);
|
|
1620
|
+
return /* @__PURE__ */ c(
|
|
1617
1621
|
"div",
|
|
1618
1622
|
{
|
|
1619
1623
|
className: "gloss-metric-group__slot",
|
|
@@ -1629,7 +1633,7 @@ const qe = function(t) {
|
|
|
1629
1633
|
}
|
|
1630
1634
|
);
|
|
1631
1635
|
const { cards: r, composite: a } = t;
|
|
1632
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ R(
|
|
1633
1637
|
"div",
|
|
1634
1638
|
{
|
|
1635
1639
|
className: "gloss-metric-group gloss-metric-group--composite",
|
|
@@ -1648,16 +1652,16 @@ const qe = function(t) {
|
|
|
1648
1652
|
"aria-label": a?.label,
|
|
1649
1653
|
tabIndex: void 0,
|
|
1650
1654
|
children: [
|
|
1651
|
-
a?.accentColor && /* @__PURE__ */
|
|
1655
|
+
a?.accentColor && /* @__PURE__ */ c(
|
|
1652
1656
|
"div",
|
|
1653
1657
|
{
|
|
1654
1658
|
className: "gloss-metric-group__accent",
|
|
1655
1659
|
style: { background: a.accentColor }
|
|
1656
1660
|
}
|
|
1657
1661
|
),
|
|
1658
|
-
a?.label && /* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1660
|
-
a?.trend && /* @__PURE__ */
|
|
1662
|
+
a?.label && /* @__PURE__ */ R("div", { className: "gloss-metric-group__label", children: [
|
|
1663
|
+
/* @__PURE__ */ c("span", { children: a.label }),
|
|
1664
|
+
a?.trend && /* @__PURE__ */ c(
|
|
1661
1665
|
"span",
|
|
1662
1666
|
{
|
|
1663
1667
|
className: "gloss-metric-group__trend",
|
|
@@ -1666,18 +1670,18 @@ const qe = function(t) {
|
|
|
1666
1670
|
}
|
|
1667
1671
|
)
|
|
1668
1672
|
] }),
|
|
1669
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ c(
|
|
1670
1674
|
"div",
|
|
1671
1675
|
{
|
|
1672
1676
|
className: "gloss-metric-group__slots",
|
|
1673
1677
|
style: {
|
|
1674
1678
|
display: "grid",
|
|
1675
1679
|
gap: "var(--gloss-spacing-2, 8px)",
|
|
1676
|
-
gridTemplateColumns:
|
|
1680
|
+
gridTemplateColumns: He(r)
|
|
1677
1681
|
},
|
|
1678
1682
|
children: r.map((n) => {
|
|
1679
|
-
const o =
|
|
1680
|
-
return /* @__PURE__ */
|
|
1683
|
+
const o = V(n.size);
|
|
1684
|
+
return /* @__PURE__ */ c(
|
|
1681
1685
|
"div",
|
|
1682
1686
|
{
|
|
1683
1687
|
className: "gloss-metric-group__slot--composite",
|
|
@@ -1696,7 +1700,7 @@ const qe = function(t) {
|
|
|
1696
1700
|
}
|
|
1697
1701
|
);
|
|
1698
1702
|
};
|
|
1699
|
-
|
|
1703
|
+
ze.displayName = "MetricGroupContainer";
|
|
1700
1704
|
const L = {
|
|
1701
1705
|
"gloss-inline-nudge": "_gloss-inline-nudge_kdk88_34",
|
|
1702
1706
|
"gloss-inline-nudge__message": "_gloss-inline-nudge__message_kdk88_65",
|
|
@@ -1705,44 +1709,44 @@ const L = {
|
|
|
1705
1709
|
"gloss-inline-nudge__btn--action": "_gloss-inline-nudge__btn--action_kdk88_88",
|
|
1706
1710
|
"gloss-inline-nudge__btn--dismiss": "_gloss-inline-nudge__btn--dismiss_kdk88_96"
|
|
1707
1711
|
};
|
|
1708
|
-
function
|
|
1712
|
+
function Ke({
|
|
1709
1713
|
message: e,
|
|
1710
1714
|
primaryAction: t,
|
|
1711
1715
|
onDismiss: r,
|
|
1712
1716
|
anchorEl: a,
|
|
1713
1717
|
anchorSelector: n
|
|
1714
1718
|
}) {
|
|
1715
|
-
const [o, s] =
|
|
1719
|
+
const [o, s] = I.useState(null), d = I.useMemo(
|
|
1716
1720
|
() => typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1,
|
|
1717
1721
|
[]
|
|
1718
1722
|
);
|
|
1719
|
-
|
|
1723
|
+
I.useEffect(() => {
|
|
1720
1724
|
!a && !n && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
|
|
1721
1725
|
"[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
|
|
1722
1726
|
);
|
|
1723
|
-
}, [a, n]),
|
|
1724
|
-
let
|
|
1725
|
-
if (a ?
|
|
1726
|
-
const
|
|
1727
|
+
}, [a, n]), I.useLayoutEffect(() => {
|
|
1728
|
+
let g = null;
|
|
1729
|
+
if (a ? g = a : n && (g = document.querySelector(n)), g) {
|
|
1730
|
+
const y = g.getBoundingClientRect();
|
|
1727
1731
|
s({
|
|
1728
|
-
top:
|
|
1729
|
-
left:
|
|
1732
|
+
top: y.bottom + window.scrollY + 6,
|
|
1733
|
+
left: y.left + window.scrollX
|
|
1730
1734
|
});
|
|
1731
1735
|
}
|
|
1732
1736
|
}, [a, n]);
|
|
1733
1737
|
const m = o ? { top: o.top, left: o.left } : {};
|
|
1734
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ R(
|
|
1735
1739
|
"div",
|
|
1736
1740
|
{
|
|
1737
1741
|
className: L["gloss-inline-nudge"],
|
|
1738
1742
|
style: m,
|
|
1739
1743
|
role: "status",
|
|
1740
1744
|
"aria-live": "polite",
|
|
1741
|
-
"data-reduced-motion":
|
|
1745
|
+
"data-reduced-motion": d ? "true" : void 0,
|
|
1742
1746
|
children: [
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
/* @__PURE__ */
|
|
1745
|
-
/* @__PURE__ */
|
|
1747
|
+
/* @__PURE__ */ c("span", { className: L["gloss-inline-nudge__message"], children: e }),
|
|
1748
|
+
/* @__PURE__ */ R("div", { className: L["gloss-inline-nudge__actions"], children: [
|
|
1749
|
+
/* @__PURE__ */ c(
|
|
1746
1750
|
"button",
|
|
1747
1751
|
{
|
|
1748
1752
|
type: "button",
|
|
@@ -1751,7 +1755,7 @@ function Ve({
|
|
|
1751
1755
|
children: t.label
|
|
1752
1756
|
}
|
|
1753
1757
|
),
|
|
1754
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ c(
|
|
1755
1759
|
"button",
|
|
1756
1760
|
{
|
|
1757
1761
|
type: "button",
|
|
@@ -1766,80 +1770,80 @@ function Ve({
|
|
|
1766
1770
|
}
|
|
1767
1771
|
);
|
|
1768
1772
|
}
|
|
1769
|
-
|
|
1773
|
+
Ke.displayName = "InlineNudge";
|
|
1770
1774
|
function le(e) {
|
|
1771
1775
|
return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
1772
1776
|
}
|
|
1773
|
-
function
|
|
1774
|
-
const a = r - t || 1, o = [...e].sort((s,
|
|
1775
|
-
const
|
|
1776
|
-
return `${le(s)} ${
|
|
1777
|
+
function We(e, t, r) {
|
|
1778
|
+
const a = r - t || 1, o = [...e].sort((s, d) => s.value - d.value).map((s) => {
|
|
1779
|
+
const d = (s.value - t) / a * 100;
|
|
1780
|
+
return `${le(s)} ${d.toFixed(2)}%`;
|
|
1777
1781
|
});
|
|
1778
1782
|
return o.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : o.length === 1 ? `linear-gradient(to right, ${o[0]}, ${o[0]})` : `linear-gradient(to right, ${o.join(", ")})`;
|
|
1779
1783
|
}
|
|
1780
|
-
function
|
|
1784
|
+
function Ze({
|
|
1781
1785
|
stops: e,
|
|
1782
1786
|
onChange: t,
|
|
1783
1787
|
min: r = 0,
|
|
1784
1788
|
max: a = 100,
|
|
1785
1789
|
disabled: n = !1
|
|
1786
1790
|
}) {
|
|
1787
|
-
const o = F(null), [s,
|
|
1788
|
-
|
|
1789
|
-
const
|
|
1791
|
+
const o = F(null), [s, d] = M(null), [m, g] = M(e), y = F(e);
|
|
1792
|
+
y.current !== e && (y.current = e, g(e));
|
|
1793
|
+
const D = pe(() => We(m, r, a), [m, r, a]), p = f(
|
|
1790
1794
|
(i) => {
|
|
1791
1795
|
if (!o.current) return r;
|
|
1792
|
-
const
|
|
1793
|
-
return Math.round(
|
|
1796
|
+
const h = o.current.getBoundingClientRect(), N = Math.max(0, Math.min(1, (i - h.left) / h.width)), C = r + N * (a - r);
|
|
1797
|
+
return Math.round(C * 100) / 100;
|
|
1794
1798
|
},
|
|
1795
1799
|
[r, a]
|
|
1796
|
-
), l =
|
|
1797
|
-
(i,
|
|
1798
|
-
const
|
|
1799
|
-
n ||
|
|
1800
|
+
), l = f(
|
|
1801
|
+
(i, h) => {
|
|
1802
|
+
const N = m.find((C) => C.id === h);
|
|
1803
|
+
n || N?.disabled || (typeof i.currentTarget.setPointerCapture == "function" && i.currentTarget.setPointerCapture(i.pointerId), d(h));
|
|
1800
1804
|
},
|
|
1801
1805
|
[n, m]
|
|
1802
|
-
),
|
|
1806
|
+
), b = f(
|
|
1803
1807
|
(i) => {
|
|
1804
1808
|
if (!s) return;
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1807
|
-
(
|
|
1809
|
+
const h = p(i.clientX);
|
|
1810
|
+
g(
|
|
1811
|
+
(N) => N.map((C) => C.id === s ? { ...C, value: h } : C)
|
|
1808
1812
|
);
|
|
1809
1813
|
},
|
|
1810
|
-
[s,
|
|
1811
|
-
), S =
|
|
1814
|
+
[s, p]
|
|
1815
|
+
), S = f(
|
|
1812
1816
|
(i) => {
|
|
1813
1817
|
if (!s) return;
|
|
1814
|
-
const
|
|
1815
|
-
(
|
|
1818
|
+
const h = p(i.clientX), N = m.map(
|
|
1819
|
+
(C) => C.id === s ? { ...C, value: h } : C
|
|
1816
1820
|
);
|
|
1817
|
-
|
|
1821
|
+
g(N), d(null), t(N);
|
|
1818
1822
|
},
|
|
1819
|
-
[s,
|
|
1820
|
-
),
|
|
1821
|
-
return /* @__PURE__ */
|
|
1823
|
+
[s, p, m, t]
|
|
1824
|
+
), T = a - r || 1;
|
|
1825
|
+
return /* @__PURE__ */ c("div", { className: "gloss-threshold-ramp", "data-disabled": n || void 0, children: /* @__PURE__ */ c(
|
|
1822
1826
|
"div",
|
|
1823
1827
|
{
|
|
1824
1828
|
ref: o,
|
|
1825
1829
|
className: "gloss-threshold-ramp__track",
|
|
1826
|
-
style: { background:
|
|
1827
|
-
onPointerMove:
|
|
1830
|
+
style: { background: D },
|
|
1831
|
+
onPointerMove: b,
|
|
1828
1832
|
onPointerUp: S,
|
|
1829
1833
|
onPointerLeave: S,
|
|
1830
1834
|
children: m.map((i) => {
|
|
1831
|
-
const
|
|
1832
|
-
return /* @__PURE__ */
|
|
1835
|
+
const h = (i.value - r) / T * 100;
|
|
1836
|
+
return /* @__PURE__ */ c(
|
|
1833
1837
|
"span",
|
|
1834
1838
|
{
|
|
1835
1839
|
className: "gloss-threshold-ramp__stop",
|
|
1836
1840
|
style: {
|
|
1837
|
-
left: `${
|
|
1841
|
+
left: `${h}%`,
|
|
1838
1842
|
color: le(i)
|
|
1839
1843
|
},
|
|
1840
1844
|
"data-disabled": i.disabled || void 0,
|
|
1841
1845
|
"data-dragging": s === i.id || void 0,
|
|
1842
|
-
onPointerDown: (
|
|
1846
|
+
onPointerDown: (N) => l(N, i.id),
|
|
1843
1847
|
"aria-label": i.label ?? `Stop at ${i.value}`,
|
|
1844
1848
|
role: "slider",
|
|
1845
1849
|
"aria-valuenow": i.value,
|
|
@@ -1853,16 +1857,16 @@ function je({
|
|
|
1853
1857
|
}
|
|
1854
1858
|
) });
|
|
1855
1859
|
}
|
|
1856
|
-
|
|
1857
|
-
const de =
|
|
1858
|
-
function
|
|
1859
|
-
return
|
|
1860
|
+
Ze.displayName = "ThresholdRamp";
|
|
1861
|
+
const de = be(null);
|
|
1862
|
+
function Ye() {
|
|
1863
|
+
return fe(de);
|
|
1860
1864
|
}
|
|
1861
|
-
function
|
|
1862
|
-
const t =
|
|
1865
|
+
function qe({ option: e }) {
|
|
1866
|
+
const t = Ye(), r = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, n = f(() => {
|
|
1863
1867
|
a || t?.select(e.value);
|
|
1864
1868
|
}, [a, t, e.value]), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
|
|
1865
|
-
return /* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ c(
|
|
1866
1870
|
"button",
|
|
1867
1871
|
{
|
|
1868
1872
|
type: "button",
|
|
@@ -1879,7 +1883,7 @@ function Xe({ option: e }) {
|
|
|
1879
1883
|
}
|
|
1880
1884
|
);
|
|
1881
1885
|
}
|
|
1882
|
-
function
|
|
1886
|
+
function Ve({
|
|
1883
1887
|
swatches: e,
|
|
1884
1888
|
value: t,
|
|
1885
1889
|
defaultValue: r,
|
|
@@ -1887,22 +1891,22 @@ function Je({
|
|
|
1887
1891
|
disabled: n = !1,
|
|
1888
1892
|
name: o
|
|
1889
1893
|
}) {
|
|
1890
|
-
const s = t !== void 0, [
|
|
1894
|
+
const s = t !== void 0, [d, m] = M(r), g = s ? t : d, y = f(
|
|
1891
1895
|
(l) => {
|
|
1892
1896
|
s || m(l), a?.(l);
|
|
1893
1897
|
},
|
|
1894
1898
|
[s, a]
|
|
1895
|
-
),
|
|
1896
|
-
(l) =>
|
|
1897
|
-
[
|
|
1898
|
-
),
|
|
1899
|
-
selectedValue:
|
|
1900
|
-
select:
|
|
1901
|
-
isSelected:
|
|
1899
|
+
), D = f(
|
|
1900
|
+
(l) => g === l,
|
|
1901
|
+
[g]
|
|
1902
|
+
), p = {
|
|
1903
|
+
selectedValue: g,
|
|
1904
|
+
select: y,
|
|
1905
|
+
isSelected: D,
|
|
1902
1906
|
groupDisabled: n,
|
|
1903
1907
|
name: o
|
|
1904
1908
|
};
|
|
1905
|
-
return /* @__PURE__ */
|
|
1909
|
+
return /* @__PURE__ */ c(de.Provider, { value: p, children: /* @__PURE__ */ c(
|
|
1906
1910
|
"div",
|
|
1907
1911
|
{
|
|
1908
1912
|
className: "gloss-preset-swatch-row",
|
|
@@ -1910,102 +1914,102 @@ function Je({
|
|
|
1910
1914
|
"aria-label": o,
|
|
1911
1915
|
"aria-disabled": n,
|
|
1912
1916
|
"data-disabled": n || void 0,
|
|
1913
|
-
children: e.map((l) => /* @__PURE__ */
|
|
1917
|
+
children: e.map((l) => /* @__PURE__ */ c(qe, { option: l }, l.value))
|
|
1914
1918
|
}
|
|
1915
1919
|
) });
|
|
1916
1920
|
}
|
|
1917
|
-
|
|
1918
|
-
function
|
|
1921
|
+
Ve.displayName = "PresetSwatchRow";
|
|
1922
|
+
function U(e, t) {
|
|
1919
1923
|
for (const r of e)
|
|
1920
1924
|
if (r.items.some((a) => a.id === t))
|
|
1921
1925
|
return r.zoneKey;
|
|
1922
1926
|
return null;
|
|
1923
1927
|
}
|
|
1924
|
-
function
|
|
1928
|
+
function ae(e, t) {
|
|
1925
1929
|
const r = e.find((a) => a.zoneKey === t);
|
|
1926
|
-
return r ? r.zoneKey :
|
|
1930
|
+
return r ? r.zoneKey : U(e, t);
|
|
1927
1931
|
}
|
|
1928
|
-
function
|
|
1932
|
+
function Ue(e, t, r) {
|
|
1929
1933
|
const a = [...e], [n] = a.splice(t, 1);
|
|
1930
1934
|
return a.splice(r, 0, n), a;
|
|
1931
1935
|
}
|
|
1932
|
-
function
|
|
1933
|
-
const [t, r] = M(() => e.zones), [a, n] = M(null), [o, s] = M(null),
|
|
1936
|
+
function je(e) {
|
|
1937
|
+
const [t, r] = M(() => e.zones), [a, n] = M(null), [o, s] = M(null), d = F(null), m = F(e.onZoneChange);
|
|
1934
1938
|
m.current = e.onZoneChange;
|
|
1935
|
-
const
|
|
1936
|
-
(
|
|
1937
|
-
const S =
|
|
1938
|
-
let
|
|
1939
|
-
for (const
|
|
1940
|
-
const
|
|
1941
|
-
if (
|
|
1942
|
-
|
|
1939
|
+
const g = f(
|
|
1940
|
+
(b) => {
|
|
1941
|
+
const S = b.active.id;
|
|
1942
|
+
let T = null, i = null;
|
|
1943
|
+
for (const h of t) {
|
|
1944
|
+
const N = h.items.find((C) => C.id === S);
|
|
1945
|
+
if (N) {
|
|
1946
|
+
T = N, i = h.zoneKey;
|
|
1943
1947
|
break;
|
|
1944
1948
|
}
|
|
1945
1949
|
}
|
|
1946
|
-
|
|
1950
|
+
d.current = i, n(T), s(i);
|
|
1947
1951
|
},
|
|
1948
1952
|
[t]
|
|
1949
|
-
),
|
|
1950
|
-
(
|
|
1951
|
-
if (!
|
|
1952
|
-
s(
|
|
1953
|
+
), y = f(
|
|
1954
|
+
(b) => {
|
|
1955
|
+
if (!b.over) {
|
|
1956
|
+
s(d.current);
|
|
1953
1957
|
return;
|
|
1954
1958
|
}
|
|
1955
|
-
const S =
|
|
1959
|
+
const S = ae(t, b.over.id);
|
|
1956
1960
|
s(S);
|
|
1957
1961
|
},
|
|
1958
1962
|
[t]
|
|
1959
|
-
),
|
|
1960
|
-
(
|
|
1961
|
-
const { active: S, over:
|
|
1962
|
-
|
|
1963
|
+
), D = f(
|
|
1964
|
+
(b) => {
|
|
1965
|
+
const { active: S, over: T } = b, i = () => {
|
|
1966
|
+
d.current = null, n(null), s(null);
|
|
1963
1967
|
};
|
|
1964
|
-
if (!
|
|
1968
|
+
if (!T) {
|
|
1965
1969
|
i();
|
|
1966
1970
|
return;
|
|
1967
1971
|
}
|
|
1968
|
-
const
|
|
1969
|
-
if (!
|
|
1972
|
+
const h = U(t, S.id), N = ae(t, T.id);
|
|
1973
|
+
if (!h || !N) {
|
|
1970
1974
|
i();
|
|
1971
1975
|
return;
|
|
1972
1976
|
}
|
|
1973
|
-
let
|
|
1974
|
-
if (
|
|
1975
|
-
const
|
|
1976
|
-
|
|
1977
|
-
...
|
|
1978
|
-
items:
|
|
1977
|
+
let C = t.map((x) => ({ ...x, items: [...x.items] }));
|
|
1978
|
+
if (h === N) {
|
|
1979
|
+
const x = C.findIndex((k) => k.zoneKey === h), u = C[x], w = u.items.findIndex((k) => k.id === S.id), v = u.items.findIndex((k) => k.id === T.id), O = v >= 0 ? v : u.items.length - 1;
|
|
1980
|
+
C[x] = {
|
|
1981
|
+
...u,
|
|
1982
|
+
items: Ue(u.items, w, O)
|
|
1979
1983
|
};
|
|
1980
1984
|
} else {
|
|
1981
|
-
const
|
|
1982
|
-
let
|
|
1983
|
-
if (
|
|
1984
|
-
const
|
|
1985
|
-
A = A.slice(0,
|
|
1985
|
+
const x = C.findIndex((_) => _.zoneKey === h), u = C.findIndex((_) => _.zoneKey === N), w = C[x], v = C[u], O = w.items.find((_) => _.id === S.id), k = w.items.filter((_) => _.id !== S.id), E = v.items.findIndex((_) => _.id === T.id), G = E >= 0 ? E : v.items.length;
|
|
1986
|
+
let Q = k, A = [...v.items];
|
|
1987
|
+
if (v.maxItems !== void 0 && A.length >= v.maxItems) {
|
|
1988
|
+
const _ = A[A.length - 1];
|
|
1989
|
+
A = A.slice(0, v.maxItems - 1), Q = [...k, _];
|
|
1986
1990
|
}
|
|
1987
|
-
const
|
|
1988
|
-
...A.slice(0,
|
|
1991
|
+
const X = Math.min(G, A.length), me = [
|
|
1992
|
+
...A.slice(0, X),
|
|
1989
1993
|
O,
|
|
1990
|
-
...A.slice(
|
|
1994
|
+
...A.slice(X)
|
|
1991
1995
|
];
|
|
1992
|
-
|
|
1996
|
+
C[x] = { ...w, items: Q }, C[u] = { ...v, items: me };
|
|
1993
1997
|
}
|
|
1994
|
-
r(
|
|
1998
|
+
r(C), m.current?.(C), i();
|
|
1995
1999
|
},
|
|
1996
2000
|
[t]
|
|
1997
|
-
),
|
|
1998
|
-
(
|
|
1999
|
-
id:
|
|
2000
|
-
"data-zone-key":
|
|
2001
|
+
), p = f(
|
|
2002
|
+
(b) => ({
|
|
2003
|
+
id: b,
|
|
2004
|
+
"data-zone-key": b
|
|
2001
2005
|
}),
|
|
2002
2006
|
[]
|
|
2003
|
-
), l =
|
|
2004
|
-
(
|
|
2005
|
-
const S =
|
|
2007
|
+
), l = f(
|
|
2008
|
+
(b) => {
|
|
2009
|
+
const S = U(t, b.id) ?? "";
|
|
2006
2010
|
return {
|
|
2007
|
-
id:
|
|
2008
|
-
"data-item-id":
|
|
2011
|
+
id: b.id,
|
|
2012
|
+
"data-item-id": b.id,
|
|
2009
2013
|
"data-zone-key": S
|
|
2010
2014
|
};
|
|
2011
2015
|
},
|
|
@@ -2015,360 +2019,392 @@ function tt(e) {
|
|
|
2015
2019
|
zones: t,
|
|
2016
2020
|
activeZone: o,
|
|
2017
2021
|
activeItem: a,
|
|
2018
|
-
getZoneProps:
|
|
2022
|
+
getZoneProps: p,
|
|
2019
2023
|
getItemProps: l,
|
|
2020
|
-
handleDragStart:
|
|
2021
|
-
handleDragOver:
|
|
2022
|
-
handleDragEnd:
|
|
2024
|
+
handleDragStart: g,
|
|
2025
|
+
handleDragOver: y,
|
|
2026
|
+
handleDragEnd: D
|
|
2023
2027
|
};
|
|
2024
2028
|
}
|
|
2025
|
-
let
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2029
|
+
let $ = null, z = null, re = !1;
|
|
2030
|
+
function Qe() {
|
|
2031
|
+
return $ ? Promise.resolve($) : re ? Promise.resolve(null) : z || (z = (async () => {
|
|
2032
|
+
try {
|
|
2033
|
+
const [e, t, r] = await Promise.all([
|
|
2034
|
+
import("@dnd-kit/core"),
|
|
2035
|
+
import("@dnd-kit/sortable"),
|
|
2036
|
+
import("@dnd-kit/utilities").catch(() => ({}))
|
|
2037
|
+
]);
|
|
2038
|
+
return $ = {
|
|
2039
|
+
core: e,
|
|
2040
|
+
sortable: t,
|
|
2041
|
+
utilities: r
|
|
2042
|
+
}, $;
|
|
2043
|
+
} catch {
|
|
2044
|
+
return re = !0, null;
|
|
2045
|
+
}
|
|
2046
|
+
})(), z);
|
|
2035
2047
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: o } = e, s =
|
|
2038
|
-
return
|
|
2039
|
-
|
|
2048
|
+
function Xe(e) {
|
|
2049
|
+
const { zones: t, onZoneChange: r, renderZone: a, renderItem: n, renderDragOverlay: o } = e, s = je({ zones: t, onZoneChange: r }), [d, m] = I.useState($);
|
|
2050
|
+
return I.useEffect(() => {
|
|
2051
|
+
if (d) return;
|
|
2052
|
+
let g = !0;
|
|
2053
|
+
return Qe().then((y) => {
|
|
2054
|
+
g && m(y);
|
|
2055
|
+
}), () => {
|
|
2056
|
+
g = !1;
|
|
2057
|
+
};
|
|
2058
|
+
}, [d]), d ? /* @__PURE__ */ c(
|
|
2059
|
+
ce,
|
|
2040
2060
|
{
|
|
2041
2061
|
state: s,
|
|
2062
|
+
modules: d,
|
|
2042
2063
|
renderZone: a,
|
|
2043
2064
|
renderItem: n,
|
|
2044
2065
|
renderDragOverlay: o
|
|
2045
2066
|
}
|
|
2046
|
-
)
|
|
2067
|
+
) : /* @__PURE__ */ c("div", { "data-sortable-zones-passive": "true", children: s.zones.map((g) => {
|
|
2068
|
+
const y = g.items.map((D) => /* @__PURE__ */ c(I.Fragment, { children: n(D) }, D.id));
|
|
2069
|
+
return /* @__PURE__ */ c("div", { ...s.getZoneProps(g.zoneKey), children: a(g.zoneKey, g.items, y) }, g.zoneKey);
|
|
2070
|
+
}) });
|
|
2047
2071
|
}
|
|
2048
|
-
|
|
2049
|
-
function
|
|
2072
|
+
Xe.displayName = "SortableZones";
|
|
2073
|
+
function ce({
|
|
2050
2074
|
state: e,
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2075
|
+
modules: t,
|
|
2076
|
+
renderZone: r,
|
|
2077
|
+
renderItem: a,
|
|
2078
|
+
renderDragOverlay: n
|
|
2054
2079
|
}) {
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
),
|
|
2059
|
-
return /* @__PURE__ */
|
|
2060
|
-
|
|
2080
|
+
const { core: o, sortable: s, utilities: d } = t, { DndContext: m, DragOverlay: g, useSensors: y, useSensor: D, PointerSensor: p, KeyboardSensor: l, closestCenter: b } = o, { SortableContext: S, verticalListSortingStrategy: T } = s, i = y(
|
|
2081
|
+
D(p, { activationConstraint: { distance: 5 } }),
|
|
2082
|
+
D(l)
|
|
2083
|
+
), h = m, N = g, C = S;
|
|
2084
|
+
return /* @__PURE__ */ R(
|
|
2085
|
+
h,
|
|
2061
2086
|
{
|
|
2062
|
-
sensors:
|
|
2063
|
-
collisionDetection:
|
|
2087
|
+
sensors: i,
|
|
2088
|
+
collisionDetection: b,
|
|
2064
2089
|
onDragStart: e.handleDragStart,
|
|
2065
2090
|
onDragOver: e.handleDragOver,
|
|
2066
2091
|
onDragEnd: e.handleDragEnd,
|
|
2067
2092
|
children: [
|
|
2068
|
-
e.zones.map((
|
|
2069
|
-
const
|
|
2070
|
-
|
|
2071
|
-
u,
|
|
2093
|
+
e.zones.map((x) => {
|
|
2094
|
+
const u = x.items.map((v) => v.id), w = x.items.map((v) => /* @__PURE__ */ c(
|
|
2095
|
+
ue,
|
|
2072
2096
|
{
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2097
|
+
id: v.id,
|
|
2098
|
+
useSortable: s.useSortable,
|
|
2099
|
+
cssHelper: d.CSS,
|
|
2100
|
+
children: a(v)
|
|
2101
|
+
},
|
|
2102
|
+
v.id
|
|
2103
|
+
));
|
|
2104
|
+
return /* @__PURE__ */ c("div", { ...e.getZoneProps(x.zoneKey), children: /* @__PURE__ */ c(C, { items: u, strategy: T, children: r(x.zoneKey, x.items, w) }) }, x.zoneKey);
|
|
2078
2105
|
}),
|
|
2079
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ c(N, { children: e.activeItem ? n?.(e.activeItem) ?? a(e.activeItem) : null })
|
|
2080
2107
|
]
|
|
2081
2108
|
}
|
|
2082
2109
|
);
|
|
2083
2110
|
}
|
|
2084
|
-
|
|
2085
|
-
|
|
2111
|
+
ce.displayName = "SortableZonesInner";
|
|
2112
|
+
function ue({ id: e, useSortable: t, cssHelper: r, children: a }) {
|
|
2113
|
+
const { attributes: n, listeners: o, setNodeRef: s, transform: d, transition: m, isDragging: g } = t({ id: e }), y = {
|
|
2114
|
+
transform: r?.Transform?.toString(d) ?? void 0,
|
|
2115
|
+
transition: m,
|
|
2116
|
+
opacity: g ? 0.5 : 1
|
|
2117
|
+
};
|
|
2118
|
+
return /* @__PURE__ */ c("div", { ref: s, style: y, "data-sortable-item-id": e, ...n, ...o, children: a });
|
|
2119
|
+
}
|
|
2120
|
+
ue.displayName = "SortableItem";
|
|
2121
|
+
const Je = I.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2086
2122
|
const n = { ...r };
|
|
2087
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2123
|
+
return delete n.className, delete n.style, /* @__PURE__ */ c("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...n, children: /* @__PURE__ */ c(j, { region: "toolbar", density: e, children: t }) });
|
|
2088
2124
|
});
|
|
2089
|
-
|
|
2090
|
-
const
|
|
2125
|
+
Je.displayName = "ContainerToolbar";
|
|
2126
|
+
const et = I.forwardRef(({ legend: e, description: t, density: r = "default", children: a, ...n }, o) => {
|
|
2091
2127
|
const s = { ...n };
|
|
2092
|
-
return delete s.className, delete s.style, /* @__PURE__ */
|
|
2093
|
-
e && /* @__PURE__ */
|
|
2094
|
-
t && /* @__PURE__ */
|
|
2095
|
-
/* @__PURE__ */
|
|
2128
|
+
return delete s.className, delete s.style, /* @__PURE__ */ R("fieldset", { ref: o, className: "gloss-container-form-section", ...s, children: [
|
|
2129
|
+
e && /* @__PURE__ */ c("legend", { className: "gloss-container-form-section__legend", children: e }),
|
|
2130
|
+
t && /* @__PURE__ */ c("p", { className: "gloss-container-form-section__description", children: t }),
|
|
2131
|
+
/* @__PURE__ */ c(j, { region: "form-section", density: r, children: a })
|
|
2096
2132
|
] });
|
|
2097
2133
|
});
|
|
2098
|
-
|
|
2099
|
-
const
|
|
2134
|
+
et.displayName = "ContainerFormSection";
|
|
2135
|
+
const tt = I.forwardRef(({ density: e = "compact", children: t, ...r }, a) => {
|
|
2100
2136
|
const n = { ...r };
|
|
2101
|
-
return delete n.className, delete n.style, /* @__PURE__ */
|
|
2137
|
+
return delete n.className, delete n.style, /* @__PURE__ */ c("div", { ref: a, className: "gloss-container-table", ...n, children: /* @__PURE__ */ c(j, { region: "table", density: e, children: t }) });
|
|
2102
2138
|
});
|
|
2103
|
-
|
|
2139
|
+
tt.displayName = "ContainerTable";
|
|
2104
2140
|
export {
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2141
|
+
Xt as Accordion,
|
|
2142
|
+
Jt as AccordionContent,
|
|
2143
|
+
ea as AccordionItem,
|
|
2144
|
+
ta as AccordionTrigger,
|
|
2145
|
+
aa as Actionable,
|
|
2146
|
+
ra as AddressGroup,
|
|
2147
|
+
na as AddressSelect,
|
|
2148
|
+
oa as AsyncLoader,
|
|
2149
|
+
sa as Autocomplete,
|
|
2150
|
+
ia as Badge,
|
|
2151
|
+
la as BarChartCard,
|
|
2152
|
+
da as BarsBg,
|
|
2153
|
+
ca as Button,
|
|
2154
|
+
ua as ButtonGroup,
|
|
2155
|
+
ma as ButtonGroupContext,
|
|
2156
|
+
ga as Card,
|
|
2157
|
+
pa as CardActions,
|
|
2158
|
+
ba as CardBack,
|
|
2159
|
+
fa as CardBody,
|
|
2160
|
+
ha as CardFooter,
|
|
2161
|
+
va as CardHeader,
|
|
2162
|
+
Ca as CardMedia,
|
|
2163
|
+
ya as CardShell,
|
|
2164
|
+
Da as CardSubtitle,
|
|
2165
|
+
wa as CardTitle,
|
|
2166
|
+
Na as ChartControlBar,
|
|
2167
|
+
Sa as Checkbox,
|
|
2168
|
+
Ta as CheckboxGroup,
|
|
2169
|
+
xa as Chip,
|
|
2170
|
+
ka as ColorPicker,
|
|
2171
|
+
Ia as ComparisonCard,
|
|
2172
|
+
_a as ContactForm,
|
|
2173
|
+
Ra as ContainerCard,
|
|
2174
|
+
Ma as ContainerCardActions,
|
|
2175
|
+
Pa as ContainerCardBody,
|
|
2176
|
+
Fa as ContainerCardFooter,
|
|
2177
|
+
Oa as ContainerCardHeader,
|
|
2178
|
+
Aa as ContainerCardMedia,
|
|
2179
|
+
Ea as ContainerCardSubtitle,
|
|
2180
|
+
La as ContainerCardTitle,
|
|
2181
|
+
Ba as ContainerDialog,
|
|
2182
|
+
Ga as ContainerDialogActions,
|
|
2183
|
+
$a as ContainerDialogBody,
|
|
2184
|
+
Ha as ContainerDialogHeader,
|
|
2185
|
+
et as ContainerFormSection,
|
|
2186
|
+
za as ContainerPanel,
|
|
2187
|
+
tt as ContainerTable,
|
|
2188
|
+
Je as ContainerToolbar,
|
|
2189
|
+
Ka as CreditCardForm,
|
|
2190
|
+
ho as DEFAULT_MARKET_PRESETS,
|
|
2191
|
+
vo as DEFAULT_PINNED,
|
|
2192
|
+
Wa as DataTable,
|
|
2193
|
+
Za as DatePicker,
|
|
2194
|
+
Ya as DateRangePicker,
|
|
2195
|
+
qa as DestructiveModal,
|
|
2196
|
+
Va as DirectionCard,
|
|
2197
|
+
Ua as Dismissible,
|
|
2198
|
+
ja as DistributionCard,
|
|
2199
|
+
Qa as DonutChart,
|
|
2200
|
+
Xa as Dropdown,
|
|
2201
|
+
Ja as ENTITY_FILTER_KEYS,
|
|
2202
|
+
er as ENTITY_PROFILE_ROUTES,
|
|
2203
|
+
tr as ENTITY_TYPE_PLURAL,
|
|
2204
|
+
xe as EdgeHoverHandle,
|
|
2205
|
+
ar as EntityPicker,
|
|
2206
|
+
rr as EntitySearchPanel,
|
|
2207
|
+
nr as Expandable,
|
|
2208
|
+
or as ExpandableChip,
|
|
2209
|
+
Ct as FLIP_AND_STAGE_TIMINGS,
|
|
2210
|
+
sr as FileUpload,
|
|
2211
|
+
ir as FilterChip,
|
|
2212
|
+
lr as FilterInput,
|
|
2213
|
+
dr as FlipAndStageProvider,
|
|
2214
|
+
cr as Form,
|
|
2215
|
+
ur as FormDialog,
|
|
2216
|
+
mr as FormField,
|
|
2217
|
+
gr as FusedShape,
|
|
2218
|
+
ke as GhostPreview,
|
|
2219
|
+
pr as GroupCheckbox,
|
|
2220
|
+
br as GroupRadio,
|
|
2221
|
+
fr as GutterActions,
|
|
2222
|
+
hr as HighlightCard,
|
|
2223
|
+
vr as HybridDatePicker,
|
|
2224
|
+
Cr as ImportWizard,
|
|
2225
|
+
Ke as InlineNudge,
|
|
2226
|
+
yr as Input,
|
|
2227
|
+
Dr as InputAddon,
|
|
2228
|
+
wr as InputGroup,
|
|
2229
|
+
Nr as Link,
|
|
2230
|
+
Sr as LoginForm,
|
|
2231
|
+
Tr as MarketPresetRow,
|
|
2232
|
+
xr as MaskPresets,
|
|
2233
|
+
kr as MaskedInput,
|
|
2234
|
+
Ir as Menu,
|
|
2235
|
+
_r as MenuDivider,
|
|
2236
|
+
Rr as MenuGroup,
|
|
2237
|
+
Mr as MenuItem,
|
|
2238
|
+
Pr as MergePrompt,
|
|
2239
|
+
Fr as MetricCard,
|
|
2240
|
+
Or as MetricCardGrid,
|
|
2241
|
+
ze as MetricGroupContainer,
|
|
2242
|
+
Ar as MiniCalendar,
|
|
2243
|
+
Er as MultiSelect,
|
|
2244
|
+
Lr as NumberInput,
|
|
2245
|
+
Br as ObjectArrow,
|
|
2246
|
+
Gr as OrderFilterBar,
|
|
2247
|
+
Co as PERIOD_OPTIONS,
|
|
2248
|
+
Oe as PageChip,
|
|
2213
2249
|
ne as PageDropdown,
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2250
|
+
$r as PasswordInput,
|
|
2251
|
+
Hr as PaymentForm,
|
|
2252
|
+
zr as PaymentMethodSelect,
|
|
2253
|
+
Kr as PhoneInput,
|
|
2254
|
+
Wr as PinToMetric,
|
|
2255
|
+
Ve as PresetSwatchRow,
|
|
2256
|
+
Zr as ProfileCard,
|
|
2257
|
+
Yr as ProgressCard,
|
|
2258
|
+
qr as QuickConfigPanel,
|
|
2259
|
+
yo as ROLLING_OPTIONS,
|
|
2260
|
+
Vr as Radio,
|
|
2261
|
+
Ur as RadioGroup,
|
|
2262
|
+
jr as RangeSlider,
|
|
2263
|
+
Qr as Rating,
|
|
2264
|
+
Xr as RegistrationForm,
|
|
2265
|
+
Jr as Row1Controls,
|
|
2266
|
+
en as Row2FilterTray,
|
|
2267
|
+
tn as SearchInput,
|
|
2268
|
+
an as SegmentCard,
|
|
2269
|
+
rn as SegmentedControl,
|
|
2270
|
+
nn as Select,
|
|
2271
|
+
on as Selectable,
|
|
2272
|
+
sn as SimpleMetricCard,
|
|
2273
|
+
ln as SimpleSelector,
|
|
2274
|
+
dn as Skeleton,
|
|
2275
|
+
cn as SkeletonCard,
|
|
2276
|
+
un as SkeletonChart,
|
|
2277
|
+
mn as SkeletonTable,
|
|
2278
|
+
gn as Slider,
|
|
2279
|
+
pn as Sortable,
|
|
2280
|
+
Xe as SortableZones,
|
|
2281
|
+
bn as SparklineBg,
|
|
2282
|
+
fn as SplitButton,
|
|
2283
|
+
hn as StackedGroupCard,
|
|
2284
|
+
vn as StatusModeCard,
|
|
2285
|
+
Te as StatusSlotChipMenu,
|
|
2286
|
+
Cn as Stepper,
|
|
2287
|
+
Do as TODAY_PRESET,
|
|
2288
|
+
yn as TabGroup,
|
|
2289
|
+
Dn as TabbedDataView,
|
|
2290
|
+
wn as TagInput,
|
|
2291
|
+
Nn as Textarea,
|
|
2292
|
+
Ze as ThresholdRamp,
|
|
2293
|
+
Sn as TimeFrame,
|
|
2294
|
+
Tn as TimePicker,
|
|
2295
|
+
xn as Toggle,
|
|
2296
|
+
kn as Tooltip,
|
|
2297
|
+
In as Transition,
|
|
2298
|
+
_n as TransitionGroup,
|
|
2299
|
+
Rn as TrendCard,
|
|
2300
|
+
Mn as TrendIndicator,
|
|
2301
|
+
po as UIContext,
|
|
2302
|
+
j as UIContextProvider,
|
|
2303
|
+
Pn as UnifiedBreakdownTable,
|
|
2304
|
+
Fn as UnifiedContextMenu,
|
|
2305
|
+
On as addressGroupMetadata,
|
|
2306
|
+
An as addressSchema,
|
|
2307
|
+
lt as allChips,
|
|
2308
|
+
Dt as allStateFixtures,
|
|
2309
|
+
yt as allVariantFixtures,
|
|
2310
|
+
mt as blockSamples,
|
|
2311
|
+
ht as cardSamples,
|
|
2312
|
+
bt as chartSamples,
|
|
2313
|
+
pt as circleSamples,
|
|
2314
|
+
Kt as compactLayout,
|
|
2315
|
+
Pt as compactState,
|
|
2316
|
+
En as contactFormMetadata,
|
|
2317
|
+
Ln as contactSchema,
|
|
2318
|
+
Ft as contextMenuFixtures,
|
|
2319
|
+
Bn as creditCardFormMetadata,
|
|
2320
|
+
Gn as creditCardSchema,
|
|
2321
|
+
De as dateChip,
|
|
2286
2322
|
ie as defaultControlBarState,
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2323
|
+
$n as destructiveModalMetadata,
|
|
2324
|
+
Hn as durations,
|
|
2325
|
+
zn as easings,
|
|
2326
|
+
Re as emptyFixture,
|
|
2327
|
+
Ce as entityChip,
|
|
2328
|
+
Be as entityNameActions,
|
|
2329
|
+
ct as entityTabGroup,
|
|
2330
|
+
_e as errorFixture,
|
|
2331
|
+
Mt as filteredState,
|
|
2332
|
+
wo as findPreset,
|
|
2333
|
+
No as formatDateRange,
|
|
2334
|
+
So as formatMarketDates,
|
|
2335
|
+
To as formatTrend,
|
|
2336
|
+
xo as formatValue,
|
|
2337
|
+
Zt as fullLayout,
|
|
2338
|
+
ko as generateMarketId,
|
|
2339
|
+
Kn as generateTabId,
|
|
2340
|
+
Io as getAllPresets,
|
|
2341
|
+
_o as getDateRangeForPreset,
|
|
2342
|
+
Wn as getMenuActions,
|
|
2343
|
+
Ro as getPresetLabel,
|
|
2344
|
+
Zn as getTransitionStyle,
|
|
2345
|
+
zt as gridCards,
|
|
2346
|
+
Yn as interpolate,
|
|
2347
|
+
Mo as isInRange,
|
|
2348
|
+
Po as isMarketActive,
|
|
2349
|
+
Fo as isSameDay,
|
|
2350
|
+
Rt as itemColumns,
|
|
2351
|
+
It as itemRows,
|
|
2352
|
+
Ie as loadingFixture,
|
|
2353
|
+
qn as loginFormMetadata,
|
|
2354
|
+
Vn as loginSchema,
|
|
2355
|
+
we as manufacturerChip,
|
|
2356
|
+
Ut as manyTabs,
|
|
2357
|
+
Un as mergeHandlers,
|
|
2358
|
+
jn as mergeRefs,
|
|
2359
|
+
dt as metricTabGroup,
|
|
2360
|
+
qt as mixedTabs,
|
|
2361
|
+
Oo as normalizePresetId,
|
|
2362
|
+
$e as numericActions,
|
|
2363
|
+
_t as orderColumns,
|
|
2364
|
+
Ge as orderIdActions,
|
|
2365
|
+
kt as orderRows,
|
|
2366
|
+
Yt as ordersTabs,
|
|
2367
|
+
Qn as parseNumericValue,
|
|
2368
|
+
Xn as paymentFormMetadata,
|
|
2369
|
+
Jn as paymentSchema,
|
|
2370
|
+
eo as presets,
|
|
2371
|
+
to as registrationFormMetadata,
|
|
2372
|
+
ao as registrationSchema,
|
|
2373
|
+
At as sampleCompareRanges,
|
|
2374
|
+
Bt as sampleCustomMarkets,
|
|
2375
|
+
Ot as sampleDateRange,
|
|
2376
|
+
Gt as sampleMarketPresetData,
|
|
2377
|
+
Lt as sampleMarkets,
|
|
2378
|
+
Ht as samplePeriodPresets,
|
|
2379
|
+
Et as samplePreferences,
|
|
2380
|
+
$t as samplePresets,
|
|
2381
|
+
Vt as singleTab,
|
|
2382
|
+
wt as sparklineFixture,
|
|
2383
|
+
Nt as sparklineUpFixture,
|
|
2384
|
+
Fe as staleDonutFixture,
|
|
2385
|
+
Me as staleFixture,
|
|
2386
|
+
Pe as staleSparklineFixture,
|
|
2387
|
+
St as standardFixture,
|
|
2388
|
+
xt as standardFlatFixture,
|
|
2389
|
+
Wt as standardLayout,
|
|
2390
|
+
Tt as standardNegativeFixture,
|
|
2391
|
+
ye as statusChip,
|
|
2392
|
+
ft as tableSamples,
|
|
2393
|
+
gt as textSamples,
|
|
2394
|
+
ut as timeFrameTabGroup,
|
|
2395
|
+
Ao as toUppercasePresetId,
|
|
2396
|
+
it as useArrowNavigation,
|
|
2397
|
+
ro as useCheckboxGroupContext,
|
|
2398
|
+
vt as useEdgeHoverResize,
|
|
2399
|
+
no as useFilterLayout,
|
|
2400
|
+
oo as useFlipAndStage,
|
|
2401
|
+
so as useFlipAndStageContext,
|
|
2402
|
+
io as useFlipAndStageContextOptional,
|
|
2403
|
+
st as useFocusReturn,
|
|
2404
|
+
lo as useFocusTrap,
|
|
2405
|
+
co as useFormContext,
|
|
2406
|
+
uo as useRadioGroupContext,
|
|
2407
|
+
mo as useSlideOutReveal,
|
|
2408
|
+
je as useSortableZones,
|
|
2409
|
+
bo as useUIContext
|
|
2374
2410
|
};
|