@graphty/compact-mantine 0.9.31 → 0.9.33
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/README.md +7 -7
- package/dist/index.cjs +94 -65
- package/dist/index.d.cts +18 -13
- package/dist/index.d.ts +18 -13
- package/dist/index.js +826 -772
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DEFAULT_THEME as
|
|
2
|
-
import Ye, { createElement as uo, useContext as mt, useMemo as be, createContext as It, useCallback as se, useId as Pe, useRef as Y, useEffect as we, useState as he, isValidElement as
|
|
1
|
+
import { DEFAULT_THEME as xa, CloseButton as zr, ActionIconGroup as Ci, ActionIcon as qe, Button as va, ColorSwatch as wa, RangeSlider as Ei, Radio as zi, Slider as Ii, Switch as ya, Checkbox as Ir, SegmentedControl as Lr, Kbd as ka, Card as Li, Indicator as Pi, ThemeIcon as Oi, Avatar as sn, Pill as Ri, Badge as Mi, Text as Kt, RingProgress as Di, Progress as gr, Loader as Hi, VisuallyHidden as nt, InputClearButton as Bi, Combobox as Ht, JsonInput as Fi, FileInput as Vi, PillsInput as Ui, TagsInput as Gi, MultiSelect as qi, Autocomplete as Wi, PasswordInput as ji, Textarea as Yi, NativeSelect as Ki, Select as Pr, NumberInput as Xi, TextInput as Vt, InputWrapper as Ji, Tabs as io, Stepper as Zi, Pagination as Qi, NavLink as _i, Burger as $i, Anchor as ec, ScrollArea as Or, Notification as Sa, Drawer as ln, Modal as dn, HoverCard as tc, Popover as oc, Tooltip as dt, Menu as Re, mergeMantineTheme as rc, createTheme as nc, parseColor as co, HueSlider as ac, AlphaSlider as ic, convertHsvaTo as Ta, isColorValid as cc, Box as R, useDirection as sc, useMantineTheme as Aa, UnstyledButton as ut, Table as Ot, useInputWrapperContext as lc, useCombobox as dc, Input as uc, Portal as mc, useComputedColorScheme as pc, rem as $t } from "@mantine/core";
|
|
2
|
+
import Ye, { createElement as uo, useContext as mt, useMemo as be, createContext as It, useCallback as se, useId as Pe, useRef as Y, useEffect as we, useState as he, isValidElement as Na, cloneElement as Rr, forwardRef as Qe, useInsertionEffect as hc, useLayoutEffect as mo, useImperativeHandle as fc } from "react";
|
|
3
3
|
import { jsxs as x, jsx as o, Fragment as Z } from "react/jsx-runtime";
|
|
4
|
-
import { useMove as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { useTable as
|
|
7
|
-
import { useVirtualizer as
|
|
4
|
+
import { useMove as bc, clampUseMovePosition as gc, useUncontrolled as ye, useIsomorphicEffect as xc, useId as ho, useMergedRef as vc, useHover as wc, useMediaQuery as Ca, useElementSize as yc } from "@mantine/hooks";
|
|
5
|
+
import { createPortal as kc, flushSync as Sc } from "react-dom";
|
|
6
|
+
import { useTable as Tc, functionalUpdate as ko, tableFeatures as Ac, rowSortingFeature as Nc, rowSelectionFeature as Cc, globalFilteringFeature as Ec, columnVisibilityFeature as zc, columnOrderingFeature as Ic, columnFilteringFeature as Lc, createSortedRowModel as Pc, createFilteredRowModel as Oc } from "@tanstack/react-table";
|
|
7
|
+
import { useVirtualizer as Ea } from "@tanstack/react-virtual";
|
|
8
8
|
const L = {
|
|
9
9
|
/** the width of the panel column every row is laid out in (241 with its 1px edge) */
|
|
10
10
|
WIDTH: 240,
|
|
@@ -101,11 +101,11 @@ const L = {
|
|
|
101
101
|
ACCENT_GRAPHIC: "var(--cm-graphic-brand)",
|
|
102
102
|
/** the white label on the danger, success and inverse fills, which no accent changes */
|
|
103
103
|
ON_SOLID: "var(--cm-text-onsolid)",
|
|
104
|
-
/** warning (#ffcd29 / #f3c11b) */
|
|
104
|
+
/** a warning fill, dot or glyph (#ffcd29 / #f3c11b); text uses WARNING_TEXT */
|
|
105
105
|
WARNING: "var(--cm-bg-warning)",
|
|
106
|
-
/** success (#14ae5c / #198f51) */
|
|
106
|
+
/** a success fill or dot (#14ae5c / #198f51); text and glyphs use SUCCESS_TEXT */
|
|
107
107
|
SUCCESS: "var(--cm-bg-success)",
|
|
108
|
-
/** danger (#f24822 / #e03e1a) */
|
|
108
|
+
/** a danger fill, dot or glyph (#f24822 / #e03e1a); text uses DANGER_TEXT */
|
|
109
109
|
DANGER: "var(--cm-bg-danger)",
|
|
110
110
|
/** a row, tab or tool under the pointer (#f5f5f5 / #383838) */
|
|
111
111
|
HOVER: "var(--cm-bg-hover)",
|
|
@@ -119,6 +119,12 @@ const L = {
|
|
|
119
119
|
SELECTED_HOVER: "var(--cm-bg-selected-hover)",
|
|
120
120
|
/** the children of a selected item (#f2f9ff / #32394d) */
|
|
121
121
|
SELECTED_SECONDARY: "var(--cm-bg-selected-secondary)",
|
|
122
|
+
/** danger text: an error message, a destructive verb (#dc3412 / #fca397; #c4381c light in the AA mode). DANGER is a fill */
|
|
123
|
+
DANGER_TEXT: "var(--cm-text-danger)",
|
|
124
|
+
/** warning text (#a65900 / #f7d15f). WARNING is a fill */
|
|
125
|
+
WARNING_TEXT: "var(--cm-text-warning)",
|
|
126
|
+
/** success text and glyphs: a passed check's tick (#008043 / #79d297). SUCCESS is a fill */
|
|
127
|
+
SUCCESS_TEXT: "var(--cm-text-success)",
|
|
122
128
|
/** links and brand text (#007be5 / #7cc4f8) */
|
|
123
129
|
BRAND_TEXT: "var(--cm-text-brand)",
|
|
124
130
|
/** tertiary glyphs (#0000004d / #ffffff66) */
|
|
@@ -129,15 +135,15 @@ const L = {
|
|
|
129
135
|
TRANSLUCENT: "var(--cm-border-translucent)",
|
|
130
136
|
/** a stronger translucent edge: checkbox, switch track (#00000033 / #ffffff33) */
|
|
131
137
|
TRANSLUCENT_STRONG: "var(--cm-border-translucent-strong)",
|
|
132
|
-
/** the
|
|
138
|
+
/** the menu surface: inside a menu it follows the page (#fff / #1e1e1e), elsewhere #1e1e1e */
|
|
133
139
|
MENU: "var(--cm-bg-menu)",
|
|
134
|
-
/** text on the menu
|
|
140
|
+
/** text on the menu: inside a menu #000000e5 / #fff, elsewhere #fff */
|
|
135
141
|
ON_MENU: "var(--cm-text-menu)",
|
|
136
|
-
/** secondary text on the menu
|
|
142
|
+
/** secondary text on the menu, shortcuts: inside a menu #0000008c / #ffffffb2, elsewhere #ffffffb2 */
|
|
137
143
|
ON_MENU_SECONDARY: "var(--cm-text-menu-secondary)",
|
|
138
144
|
/** component (purple) text (#8638e5 / #d1a8ff) */
|
|
139
145
|
COMPONENT: "var(--cm-text-component)"
|
|
140
|
-
},
|
|
146
|
+
}, Rc = [
|
|
141
147
|
"#ffffff",
|
|
142
148
|
"#b3b3b3",
|
|
143
149
|
"#8c8c8c",
|
|
@@ -148,7 +154,7 @@ const L = {
|
|
|
148
154
|
"#2c2c2c",
|
|
149
155
|
"#1e1e1e",
|
|
150
156
|
"#111111"
|
|
151
|
-
],
|
|
157
|
+
], Mc = [
|
|
152
158
|
"#e5f4ff",
|
|
153
159
|
"#bde3ff",
|
|
154
160
|
"#80caff",
|
|
@@ -159,7 +165,7 @@ const L = {
|
|
|
159
165
|
"#007be5",
|
|
160
166
|
"#0c8ce9",
|
|
161
167
|
"#0a6dc2"
|
|
162
|
-
],
|
|
168
|
+
], Dc = [
|
|
163
169
|
"#f1fbd3",
|
|
164
170
|
"#e2f7a8",
|
|
165
171
|
"#d3f47c",
|
|
@@ -170,13 +176,13 @@ const L = {
|
|
|
170
176
|
"#588300",
|
|
171
177
|
"#c4f23a",
|
|
172
178
|
"#aedf10"
|
|
173
|
-
],
|
|
174
|
-
...
|
|
175
|
-
dark:
|
|
176
|
-
brand:
|
|
177
|
-
graphty:
|
|
179
|
+
], Hc = {
|
|
180
|
+
...xa.colors,
|
|
181
|
+
dark: Rc,
|
|
182
|
+
brand: Mc,
|
|
183
|
+
graphty: Dc
|
|
178
184
|
};
|
|
179
|
-
function
|
|
185
|
+
function Bc() {
|
|
180
186
|
return /* @__PURE__ */ x(
|
|
181
187
|
"svg",
|
|
182
188
|
{
|
|
@@ -194,7 +200,7 @@ function Hc() {
|
|
|
194
200
|
}
|
|
195
201
|
);
|
|
196
202
|
}
|
|
197
|
-
function
|
|
203
|
+
function Fc() {
|
|
198
204
|
return /* @__PURE__ */ o("svg", { className: "cm-close-glyph", viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ o(
|
|
199
205
|
"path",
|
|
200
206
|
{
|
|
@@ -205,7 +211,7 @@ function Bc() {
|
|
|
205
211
|
}
|
|
206
212
|
) });
|
|
207
213
|
}
|
|
208
|
-
const
|
|
214
|
+
const Vc = {
|
|
209
215
|
compactSize: "sm",
|
|
210
216
|
sizes: {
|
|
211
217
|
xs: { "--button-height": "20px", "--button-fz": "11px", "--button-padding-x": "6px" },
|
|
@@ -214,7 +220,7 @@ const Fc = {
|
|
|
214
220
|
lg: { "--button-height": "36px", "--button-fz": "13px", "--button-padding-x": "16px" },
|
|
215
221
|
xl: { "--button-height": "44px", "--button-fz": "15px", "--button-padding-x": "20px" }
|
|
216
222
|
}
|
|
217
|
-
},
|
|
223
|
+
}, Uc = {
|
|
218
224
|
compactSize: "sm",
|
|
219
225
|
sizes: {
|
|
220
226
|
xs: { "--ai-size": "18px" },
|
|
@@ -223,7 +229,7 @@ const Fc = {
|
|
|
223
229
|
lg: { "--ai-size": "36px" },
|
|
224
230
|
xl: { "--ai-size": "44px" }
|
|
225
231
|
}
|
|
226
|
-
},
|
|
232
|
+
}, Gc = {
|
|
227
233
|
compactSize: "sm",
|
|
228
234
|
sizes: {
|
|
229
235
|
xs: { "--cb-size": "16px", "--cb-icon-size": "10px" },
|
|
@@ -232,7 +238,7 @@ const Fc = {
|
|
|
232
238
|
lg: { "--cb-size": "36px", "--cb-icon-size": "14px" },
|
|
233
239
|
xl: { "--cb-size": "44px", "--cb-icon-size": "16px" }
|
|
234
240
|
}
|
|
235
|
-
}, rt = "transparent", te = (e) => `var(--cm-${e})`,
|
|
241
|
+
}, rt = "transparent", te = (e) => `var(--cm-${e})`, xr = {
|
|
236
242
|
bg: rt,
|
|
237
243
|
hover: te("bg-transparent-hover"),
|
|
238
244
|
pressed: te("bg-transparent-pressed"),
|
|
@@ -241,7 +247,7 @@ const Fc = {
|
|
|
241
247
|
outline: rt,
|
|
242
248
|
shortcut: te("text-secondary"),
|
|
243
249
|
disabled: "text"
|
|
244
|
-
},
|
|
250
|
+
}, un = { ...xr, outline: te("border-translucent"), disabled: "outline" };
|
|
245
251
|
function So(e, t = te("text-onsolid"), r = te("text-onsolid-secondary")) {
|
|
246
252
|
return {
|
|
247
253
|
bg: te(e),
|
|
@@ -254,17 +260,17 @@ function So(e, t = te("text-onsolid"), r = te("text-onsolid-secondary")) {
|
|
|
254
260
|
disabled: "solid"
|
|
255
261
|
};
|
|
256
262
|
}
|
|
257
|
-
const
|
|
263
|
+
const qc = `light-dark(${te("text-onsolid-secondary")}, ${te("text-oninverse")})`, mn = {
|
|
258
264
|
// The accent fill takes the accent's own label ink (dark on the graphty lime).
|
|
259
265
|
filled: So("bg-brand", te("text-onbrand"), te("text-onbrand-secondary")),
|
|
260
266
|
danger: So("bg-danger"),
|
|
261
267
|
success: So("bg-success"),
|
|
262
|
-
inverse: { ...So("bg-inverse", te("text-oninverse"),
|
|
263
|
-
default:
|
|
264
|
-
outline:
|
|
265
|
-
subtle:
|
|
268
|
+
inverse: { ...So("bg-inverse", te("text-oninverse"), qc) },
|
|
269
|
+
default: un,
|
|
270
|
+
outline: un,
|
|
271
|
+
subtle: xr,
|
|
266
272
|
"danger-outline": {
|
|
267
|
-
...
|
|
273
|
+
...xr,
|
|
268
274
|
color: te("text-danger"),
|
|
269
275
|
pressedColor: te("text-danger"),
|
|
270
276
|
outline: te("border-danger"),
|
|
@@ -281,28 +287,28 @@ const Gc = `light-dark(${te("text-onsolid-secondary")}, ${te("text-oninverse")})
|
|
|
281
287
|
shortcut: te("text-onselected"),
|
|
282
288
|
disabled: "text"
|
|
283
289
|
}
|
|
284
|
-
},
|
|
285
|
-
function
|
|
290
|
+
}, Wc = /* @__PURE__ */ new Set(["danger", "danger-outline", "inverse", "success", "default", "outline", "subtle"]);
|
|
291
|
+
function za(e, t) {
|
|
286
292
|
return e == null || e === t || e === "brand";
|
|
287
293
|
}
|
|
288
|
-
function
|
|
294
|
+
function jc(e, t, r) {
|
|
289
295
|
const n = e ?? "filled";
|
|
290
296
|
if (n === "filled" && t === "red")
|
|
291
|
-
return
|
|
292
|
-
const a =
|
|
297
|
+
return mn.danger;
|
|
298
|
+
const a = mn[n];
|
|
293
299
|
if (a)
|
|
294
|
-
return
|
|
300
|
+
return Wc.has(n) || za(t, r) ? a : void 0;
|
|
295
301
|
}
|
|
296
|
-
const
|
|
302
|
+
const Yc = {
|
|
297
303
|
solid: { bg: te("bg-disabled"), color: te("text-ondisabled"), outline: rt },
|
|
298
304
|
outline: { bg: rt, color: te("text-disabled"), outline: te("border-disabled") },
|
|
299
305
|
text: { bg: rt, color: te("text-disabled"), outline: rt }
|
|
300
306
|
};
|
|
301
|
-
function
|
|
302
|
-
const n =
|
|
307
|
+
function Kc(e, t, r) {
|
|
308
|
+
const n = jc(e, t, r);
|
|
303
309
|
if (!n)
|
|
304
310
|
return {};
|
|
305
|
-
const a =
|
|
311
|
+
const a = Yc[n.disabled];
|
|
306
312
|
return {
|
|
307
313
|
"--button-bg": n.bg,
|
|
308
314
|
"--button-hover": n.hover,
|
|
@@ -318,16 +324,16 @@ function Yc(e, t, r) {
|
|
|
318
324
|
"--cm-btn-disabled-outline": a.outline
|
|
319
325
|
};
|
|
320
326
|
}
|
|
321
|
-
const
|
|
327
|
+
const pn = {
|
|
322
328
|
bg: rt,
|
|
323
329
|
hover: te("bg-transparent-hover"),
|
|
324
330
|
pressed: te("bg-transparent-pressed"),
|
|
325
331
|
color: te("icon"),
|
|
326
332
|
outline: rt
|
|
327
|
-
},
|
|
328
|
-
subtle:
|
|
333
|
+
}, Xc = {
|
|
334
|
+
subtle: pn,
|
|
329
335
|
// Disabled takes the disabled edge, as the secondary text button does (btn-secondary-md-disabled).
|
|
330
|
-
default: { ...
|
|
336
|
+
default: { ...pn, outline: te("border-translucent"), disabledOutline: te("border-disabled") },
|
|
331
337
|
light: {
|
|
332
338
|
bg: te("bg-selected"),
|
|
333
339
|
hover: te("bg-selected-hover"),
|
|
@@ -352,10 +358,10 @@ const un = {
|
|
|
352
358
|
outline: rt,
|
|
353
359
|
disabledBg: te("bg-secondary")
|
|
354
360
|
}
|
|
355
|
-
},
|
|
356
|
-
function
|
|
357
|
-
const n = e ?? "subtle", a =
|
|
358
|
-
return !a || !(
|
|
361
|
+
}, Jc = /* @__PURE__ */ new Set(["gray", "dark"]);
|
|
362
|
+
function Zc(e, t, r) {
|
|
363
|
+
const n = e ?? "subtle", a = Xc[n], c = n === "subtle" || n === "default" || n === "joined";
|
|
364
|
+
return !a || !(za(t, r) || c && Jc.has(String(t))) ? {} : {
|
|
359
365
|
"--ai-bg": a.bg,
|
|
360
366
|
"--ai-hover": a.hover,
|
|
361
367
|
"--ai-color": a.color,
|
|
@@ -372,11 +378,11 @@ function ge(e, t) {
|
|
|
372
378
|
const r = t == null ? e.compactSize : String(t);
|
|
373
379
|
return e.sizes[r] ?? e.sizes[e.compactSize];
|
|
374
380
|
}
|
|
375
|
-
const
|
|
376
|
-
Button:
|
|
381
|
+
const Qc = {
|
|
382
|
+
Button: va.extend({
|
|
377
383
|
defaultProps: {
|
|
378
384
|
size: "sm",
|
|
379
|
-
loaderProps: { size: 16, children: uo(
|
|
385
|
+
loaderProps: { size: 16, children: uo(Bc) }
|
|
380
386
|
},
|
|
381
387
|
classNames: {
|
|
382
388
|
root: "cm-button",
|
|
@@ -387,8 +393,8 @@ const Zc = {
|
|
|
387
393
|
},
|
|
388
394
|
vars: (e, t) => ({
|
|
389
395
|
root: {
|
|
390
|
-
...ge(
|
|
391
|
-
...
|
|
396
|
+
...ge(Vc, t == null ? void 0 : t.size),
|
|
397
|
+
...Kc(t == null ? void 0 : t.variant, t == null ? void 0 : t.color, e == null ? void 0 : e.primaryColor)
|
|
392
398
|
}
|
|
393
399
|
})
|
|
394
400
|
}),
|
|
@@ -404,55 +410,55 @@ const Zc = {
|
|
|
404
410
|
},
|
|
405
411
|
vars: (e, t) => ({
|
|
406
412
|
root: {
|
|
407
|
-
...ge(
|
|
408
|
-
...
|
|
413
|
+
...ge(Uc, t == null ? void 0 : t.size),
|
|
414
|
+
...Zc(t == null ? void 0 : t.variant, t == null ? void 0 : t.color, e == null ? void 0 : e.primaryColor)
|
|
409
415
|
}
|
|
410
416
|
})
|
|
411
417
|
}),
|
|
412
|
-
ActionIconGroup:
|
|
418
|
+
ActionIconGroup: Ci.extend({
|
|
413
419
|
classNames: { group: "cm-ai-group" }
|
|
414
420
|
}),
|
|
415
|
-
CloseButton:
|
|
421
|
+
CloseButton: zr.extend({
|
|
416
422
|
defaultProps: {
|
|
417
423
|
size: "sm",
|
|
418
|
-
icon: uo(
|
|
424
|
+
icon: uo(Fc)
|
|
419
425
|
},
|
|
420
426
|
classNames: { root: "cm-close-button" },
|
|
421
427
|
vars: (e, t) => ({
|
|
422
|
-
root: ge(
|
|
428
|
+
root: ge(Gc, t == null ? void 0 : t.size)
|
|
423
429
|
})
|
|
424
430
|
})
|
|
425
|
-
},
|
|
431
|
+
}, _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
426
432
|
__proto__: null,
|
|
427
|
-
buttonComponentExtensions:
|
|
428
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
433
|
+
buttonComponentExtensions: Qc
|
|
434
|
+
}, Symbol.toStringTag, { value: "Module" })), hn = {
|
|
429
435
|
slider: "cm-color-slider",
|
|
430
436
|
sliderOverlay: "cm-color-slider-track",
|
|
431
437
|
thumb: "cm-color-thumb"
|
|
432
438
|
};
|
|
433
|
-
function
|
|
439
|
+
function $c(e) {
|
|
434
440
|
const t = e.variant === "field", r = {};
|
|
435
441
|
return (t || e.size === void 0) && (r["--cs-size"] = t ? "14px" : "16px"), (t || e.radius === void 0) && (r["--cs-radius"] = t ? "2px" : "20%"), r;
|
|
436
442
|
}
|
|
437
|
-
const
|
|
438
|
-
ColorSwatch:
|
|
443
|
+
const es = {
|
|
444
|
+
ColorSwatch: wa.extend({
|
|
439
445
|
classNames: {
|
|
440
446
|
root: "cm-chit",
|
|
441
447
|
alphaOverlay: "cm-chit-alpha",
|
|
442
448
|
shadowOverlay: "cm-chit-shadow"
|
|
443
449
|
},
|
|
444
|
-
vars: (e, t) => ({ root:
|
|
450
|
+
vars: (e, t) => ({ root: $c(t) })
|
|
445
451
|
}),
|
|
446
452
|
// HueSlider and AlphaSlider are plain forwardRef components (no `.extend`); useProps still
|
|
447
453
|
// reads their defaultProps from the theme by name.
|
|
448
|
-
HueSlider: { defaultProps: { classNames:
|
|
449
|
-
AlphaSlider: { defaultProps: { classNames:
|
|
450
|
-
},
|
|
454
|
+
HueSlider: { defaultProps: { classNames: hn } },
|
|
455
|
+
AlphaSlider: { defaultProps: { classNames: hn } }
|
|
456
|
+
}, ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
451
457
|
__proto__: null,
|
|
452
|
-
colorComponentExtensions:
|
|
453
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
454
|
-
function
|
|
455
|
-
const r = e === !0, n = r ?
|
|
458
|
+
colorComponentExtensions: es
|
|
459
|
+
}, Symbol.toStringTag, { value: "Module" })), fn = "M5 8.5L7.5 11L11.5 5", os = "M5 8H11", rs = "M5 8H10.5";
|
|
460
|
+
function ns({ indeterminate: e, ...t }) {
|
|
461
|
+
const r = e === !0, n = r ? os : fn, a = r ? "crispEdges" : "geometricPrecision";
|
|
456
462
|
return /* @__PURE__ */ x("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", "data-glyph": r ? "dash" : "check", ...t, children: [
|
|
457
463
|
/* @__PURE__ */ o(
|
|
458
464
|
"path",
|
|
@@ -469,7 +475,7 @@ function rs({ indeterminate: e, ...t }) {
|
|
|
469
475
|
"path",
|
|
470
476
|
{
|
|
471
477
|
className: "cm-checkbox-glyph",
|
|
472
|
-
d: r ?
|
|
478
|
+
d: r ? rs : fn,
|
|
473
479
|
pathLength: 12,
|
|
474
480
|
strokeLinecap: "round",
|
|
475
481
|
strokeLinejoin: "round",
|
|
@@ -479,18 +485,18 @@ function rs({ indeterminate: e, ...t }) {
|
|
|
479
485
|
] });
|
|
480
486
|
}
|
|
481
487
|
const Oo = /* @__PURE__ */ new WeakSet();
|
|
482
|
-
function
|
|
488
|
+
function as(e) {
|
|
483
489
|
const t = e.currentTarget;
|
|
484
490
|
Oo.delete(t), !(e.button !== 0 || t.matches(":disabled, [data-disabled]")) && (t.click(), Oo.add(t));
|
|
485
491
|
}
|
|
486
|
-
function
|
|
492
|
+
function is(e) {
|
|
487
493
|
Oo.delete(e.currentTarget) && e.stopPropagation();
|
|
488
494
|
}
|
|
489
|
-
function
|
|
495
|
+
function bn(e) {
|
|
490
496
|
Oo.delete(e.currentTarget);
|
|
491
497
|
}
|
|
492
498
|
const Ro = /* @__PURE__ */ new WeakMap();
|
|
493
|
-
function
|
|
499
|
+
function cs(e) {
|
|
494
500
|
const t = e.currentTarget;
|
|
495
501
|
if (Ro.delete(t), e.button !== 0 || !(e.target instanceof Element))
|
|
496
502
|
return;
|
|
@@ -500,11 +506,11 @@ function is(e) {
|
|
|
500
506
|
const a = t.ownerDocument.getElementById(n);
|
|
501
507
|
a instanceof HTMLInputElement && a.type === "radio" && !a.disabled && !a.checked && (a.click(), Ro.set(t, r));
|
|
502
508
|
}
|
|
503
|
-
function
|
|
509
|
+
function ss(e) {
|
|
504
510
|
const t = Ro.get(e.currentTarget);
|
|
505
511
|
Ro.delete(e.currentTarget), t && e.target instanceof Node && t.contains(e.target) && e.preventDefault();
|
|
506
512
|
}
|
|
507
|
-
const
|
|
513
|
+
const ls = {
|
|
508
514
|
compactSize: "sm",
|
|
509
515
|
sizes: {
|
|
510
516
|
xs: {
|
|
@@ -543,7 +549,7 @@ const ss = {
|
|
|
543
549
|
"--switch-label-font-size": "11px"
|
|
544
550
|
}
|
|
545
551
|
}
|
|
546
|
-
},
|
|
552
|
+
}, ds = {
|
|
547
553
|
compactSize: "sm",
|
|
548
554
|
sizes: {
|
|
549
555
|
xs: { "--checkbox-size": "12px" },
|
|
@@ -552,7 +558,7 @@ const ss = {
|
|
|
552
558
|
lg: { "--checkbox-size": "24px" },
|
|
553
559
|
xl: { "--checkbox-size": "28px" }
|
|
554
560
|
}
|
|
555
|
-
},
|
|
561
|
+
}, us = {
|
|
556
562
|
compactSize: "sm",
|
|
557
563
|
sizes: {
|
|
558
564
|
xs: { "--radio-size": "12px", "--radio-icon-size": "4px" },
|
|
@@ -561,7 +567,7 @@ const ss = {
|
|
|
561
567
|
lg: { "--radio-size": "24px", "--radio-icon-size": "10px" },
|
|
562
568
|
xl: { "--radio-size": "28px", "--radio-icon-size": "12px" }
|
|
563
569
|
}
|
|
564
|
-
},
|
|
570
|
+
}, gn = {
|
|
565
571
|
compactSize: "sm",
|
|
566
572
|
sizes: {
|
|
567
573
|
xs: { "--slider-size": "6px", "--slider-thumb-size": "10px" },
|
|
@@ -570,7 +576,7 @@ const ss = {
|
|
|
570
576
|
lg: { "--slider-size": "12px", "--slider-thumb-size": "20px" },
|
|
571
577
|
xl: { "--slider-size": "16px", "--slider-thumb-size": "24px" }
|
|
572
578
|
}
|
|
573
|
-
},
|
|
579
|
+
}, ms = {
|
|
574
580
|
compactSize: "sm",
|
|
575
581
|
sizes: {
|
|
576
582
|
xs: { "--sc-font-size": "9px", "--sc-padding": "0 6px" },
|
|
@@ -579,7 +585,7 @@ const ss = {
|
|
|
579
585
|
lg: { "--sc-font-size": "15px", "--sc-padding": "0 12px" },
|
|
580
586
|
xl: { "--sc-font-size": "17px", "--sc-padding": "0 16px" }
|
|
581
587
|
}
|
|
582
|
-
},
|
|
588
|
+
}, ps = {
|
|
583
589
|
root: "cm-checkbox",
|
|
584
590
|
body: "cm-checkbox-body",
|
|
585
591
|
inner: "cm-checkbox-inner",
|
|
@@ -588,7 +594,7 @@ const ss = {
|
|
|
588
594
|
label: "cm-checkbox-label",
|
|
589
595
|
description: "cm-control-description",
|
|
590
596
|
error: "cm-control-error"
|
|
591
|
-
},
|
|
597
|
+
}, hs = {
|
|
592
598
|
root: "cm-radio",
|
|
593
599
|
body: "cm-radio-body",
|
|
594
600
|
inner: "cm-radio-inner",
|
|
@@ -597,7 +603,7 @@ const ss = {
|
|
|
597
603
|
label: "cm-radio-label",
|
|
598
604
|
description: "cm-control-description",
|
|
599
605
|
error: "cm-control-error"
|
|
600
|
-
},
|
|
606
|
+
}, fs = {
|
|
601
607
|
root: "cm-switch",
|
|
602
608
|
body: "cm-switch-body",
|
|
603
609
|
input: "cm-switch-input",
|
|
@@ -607,88 +613,88 @@ const ss = {
|
|
|
607
613
|
label: "cm-switch-label",
|
|
608
614
|
description: "cm-control-description",
|
|
609
615
|
error: "cm-control-error"
|
|
610
|
-
},
|
|
616
|
+
}, xn = {
|
|
611
617
|
root: "cm-slider",
|
|
612
618
|
track: "cm-slider-track",
|
|
613
619
|
bar: "cm-slider-bar",
|
|
614
620
|
thumb: "cm-slider-thumb",
|
|
615
621
|
mark: "cm-slider-mark",
|
|
616
622
|
markLabel: "cm-slider-mark-label"
|
|
617
|
-
},
|
|
623
|
+
}, bs = {
|
|
618
624
|
root: "cm-sc",
|
|
619
625
|
control: "cm-sc-control",
|
|
620
626
|
input: "cm-sc-input",
|
|
621
627
|
label: "cm-sc-label",
|
|
622
628
|
innerLabel: "cm-sc-inner",
|
|
623
629
|
indicator: "cm-sc-indicator"
|
|
624
|
-
},
|
|
625
|
-
SegmentedControl:
|
|
630
|
+
}, gs = {
|
|
631
|
+
SegmentedControl: Lr.extend({
|
|
626
632
|
defaultProps: {
|
|
627
633
|
size: "sm",
|
|
628
634
|
withItemsBorders: !1,
|
|
629
635
|
// The selected face is drawn on the option itself, so it jumps in one frame; the
|
|
630
636
|
// floating indicator is hidden by the stylesheet and must not animate either.
|
|
631
637
|
transitionDuration: 0,
|
|
632
|
-
onMouseDown:
|
|
633
|
-
onClickCapture:
|
|
638
|
+
onMouseDown: cs,
|
|
639
|
+
onClickCapture: ss
|
|
634
640
|
},
|
|
635
641
|
vars: (e, t) => ({
|
|
636
|
-
root: ge(
|
|
642
|
+
root: ge(ms, t == null ? void 0 : t.size)
|
|
637
643
|
}),
|
|
638
|
-
classNames:
|
|
644
|
+
classNames: bs
|
|
639
645
|
}),
|
|
640
|
-
Checkbox:
|
|
646
|
+
Checkbox: Ir.extend({
|
|
641
647
|
defaultProps: {
|
|
642
648
|
size: "sm",
|
|
643
|
-
icon:
|
|
649
|
+
icon: ns
|
|
644
650
|
},
|
|
645
651
|
vars: (e, t) => ({
|
|
646
|
-
root: ge(
|
|
652
|
+
root: ge(ds, t == null ? void 0 : t.size)
|
|
647
653
|
}),
|
|
648
|
-
classNames:
|
|
654
|
+
classNames: ps
|
|
649
655
|
}),
|
|
650
|
-
Switch:
|
|
656
|
+
Switch: ya.extend({
|
|
651
657
|
defaultProps: {
|
|
652
658
|
size: "sm",
|
|
653
659
|
// Figma's knob is a plain white pill; Mantine's inner dot is not drawn.
|
|
654
660
|
withThumbIndicator: !1
|
|
655
661
|
},
|
|
656
662
|
vars: (e, t) => ({
|
|
657
|
-
root: ge(
|
|
663
|
+
root: ge(ls, t == null ? void 0 : t.size)
|
|
658
664
|
}),
|
|
659
|
-
classNames:
|
|
665
|
+
classNames: fs
|
|
660
666
|
}),
|
|
661
|
-
Slider:
|
|
667
|
+
Slider: Ii.extend({
|
|
662
668
|
defaultProps: {
|
|
663
669
|
size: "sm"
|
|
664
670
|
},
|
|
665
671
|
vars: (e, t) => ({
|
|
666
|
-
root: ge(
|
|
672
|
+
root: ge(gn, t == null ? void 0 : t.size)
|
|
667
673
|
}),
|
|
668
|
-
classNames:
|
|
674
|
+
classNames: xn
|
|
669
675
|
}),
|
|
670
|
-
Radio:
|
|
676
|
+
Radio: zi.extend({
|
|
671
677
|
defaultProps: {
|
|
672
678
|
size: "sm"
|
|
673
679
|
},
|
|
674
680
|
vars: (e, t) => ({
|
|
675
|
-
root: ge(
|
|
681
|
+
root: ge(us, t == null ? void 0 : t.size)
|
|
676
682
|
}),
|
|
677
|
-
classNames:
|
|
683
|
+
classNames: hs
|
|
678
684
|
}),
|
|
679
|
-
RangeSlider:
|
|
685
|
+
RangeSlider: Ei.extend({
|
|
680
686
|
defaultProps: {
|
|
681
687
|
size: "sm"
|
|
682
688
|
},
|
|
683
689
|
vars: (e, t) => ({
|
|
684
|
-
root: ge(
|
|
690
|
+
root: ge(gn, t == null ? void 0 : t.size)
|
|
685
691
|
}),
|
|
686
|
-
classNames:
|
|
692
|
+
classNames: xn
|
|
687
693
|
})
|
|
688
|
-
},
|
|
694
|
+
}, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
689
695
|
__proto__: null,
|
|
690
|
-
controlComponentExtensions:
|
|
691
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
696
|
+
controlComponentExtensions: gs
|
|
697
|
+
}, Symbol.toStringTag, { value: "Module" })), vs = {
|
|
692
698
|
compactSize: "sm",
|
|
693
699
|
sizes: {
|
|
694
700
|
xs: { "--badge-height": "14px", "--badge-fz": "9px", "--badge-padding-x": "3px", "--badge-lh": "14px" },
|
|
@@ -697,7 +703,7 @@ const ss = {
|
|
|
697
703
|
lg: { "--badge-height": "24px", "--badge-fz": "13px", "--badge-padding-x": "8px", "--badge-lh": "24px" },
|
|
698
704
|
xl: { "--badge-height": "28px", "--badge-fz": "15px", "--badge-padding-x": "10px", "--badge-lh": "28px" }
|
|
699
705
|
}
|
|
700
|
-
},
|
|
706
|
+
}, ws = {
|
|
701
707
|
compactSize: "sm",
|
|
702
708
|
sizes: {
|
|
703
709
|
xs: { "--avatar-size": "16px" },
|
|
@@ -706,7 +712,7 @@ const ss = {
|
|
|
706
712
|
lg: { "--avatar-size": "40px" },
|
|
707
713
|
xl: { "--avatar-size": "48px" }
|
|
708
714
|
}
|
|
709
|
-
},
|
|
715
|
+
}, ys = {
|
|
710
716
|
compactSize: "sm",
|
|
711
717
|
sizes: {
|
|
712
718
|
xs: { "--ti-size": "16px" },
|
|
@@ -715,7 +721,7 @@ const ss = {
|
|
|
715
721
|
lg: { "--ti-size": "40px" },
|
|
716
722
|
xl: { "--ti-size": "48px" }
|
|
717
723
|
}
|
|
718
|
-
},
|
|
724
|
+
}, ks = {
|
|
719
725
|
compactSize: "sm",
|
|
720
726
|
sizes: {
|
|
721
727
|
xs: { "--indicator-size": "7px" },
|
|
@@ -724,7 +730,7 @@ const ss = {
|
|
|
724
730
|
lg: { "--indicator-size": "13px" },
|
|
725
731
|
xl: { "--indicator-size": "15px" }
|
|
726
732
|
}
|
|
727
|
-
},
|
|
733
|
+
}, Ss = {
|
|
728
734
|
compactSize: "sm",
|
|
729
735
|
sizes: {
|
|
730
736
|
xs: { "--kbd-fz": "9px", "--kbd-lh": "14px", "--kbd-height": "21px", "--kbd-min-width": "22px" },
|
|
@@ -733,7 +739,7 @@ const ss = {
|
|
|
733
739
|
lg: { "--kbd-fz": "16px", "--kbd-lh": "26px", "--kbd-height": "35px", "--kbd-min-width": "36px" },
|
|
734
740
|
xl: { "--kbd-fz": "20px", "--kbd-lh": "30px", "--kbd-height": "41px", "--kbd-min-width": "42px" }
|
|
735
741
|
}
|
|
736
|
-
},
|
|
742
|
+
}, Ts = {
|
|
737
743
|
compactSize: "sm",
|
|
738
744
|
sizes: {
|
|
739
745
|
xs: { "--pill-height": "16px", "--pill-fz": "9px" },
|
|
@@ -746,7 +752,7 @@ const ss = {
|
|
|
746
752
|
function U(e, t, r) {
|
|
747
753
|
return { light: e, dark: t, figma: r };
|
|
748
754
|
}
|
|
749
|
-
const
|
|
755
|
+
const As = {
|
|
750
756
|
bg: U("#ffffff", "#2c2c2c", "--color-bg"),
|
|
751
757
|
"bg-secondary": U("#f5f5f5", "#383838", "--color-bg-secondary"),
|
|
752
758
|
"bg-hover": U("#f5f5f5", "#383838", "--color-bg-hover"),
|
|
@@ -792,9 +798,24 @@ const Ts = {
|
|
|
792
798
|
"text-oninverse": U("#ffffffe5", "#000000e5", "--color-text-oninverse"),
|
|
793
799
|
"text-component": U("#8638e5", "#d1a8ff", "--color-text-component"),
|
|
794
800
|
"text-danger": U("#dc3412", "#fca397", "--color-text-danger"),
|
|
801
|
+
// Warning text. Figma has no warning text variable: these are darkened / lightened from its
|
|
802
|
+
// warning fill to meet 4.5:1 on the panel and on a field in both schemes.
|
|
803
|
+
"text-warning": U("#a65900", "#f7d15f"),
|
|
804
|
+
// Success text and glyphs. The success fill (#14ae5c) is 2.90:1 on the light panel; these meet
|
|
805
|
+
// 4.5:1 on the panel and on a field in both schemes (Figma's success-pressed fill in light).
|
|
806
|
+
"text-success": U("#008043", "#79d297"),
|
|
795
807
|
"text-menu": U("#ffffff", "#ffffff", "--color-text-menu"),
|
|
796
808
|
"text-menu-secondary": U("#ffffffb2", "#ffffffb2", "--color-text-menu-secondary"),
|
|
797
809
|
"text-menu-disabled": U("#ffffff66", "#ffffff66", "--color-text-menu-disabled"),
|
|
810
|
+
// The menu that follows the page's scheme (cm-menu-surface): a light surface with dark ink
|
|
811
|
+
// in the light app, Figma's dark menu in the dark app. The `-menu` tokens above stay the
|
|
812
|
+
// always-dark values the inverse menu, the tooltip and the toast draw with. The secondary ink
|
|
813
|
+
// is the AA value (4.74:1 on white; Figma's #00000080 is 3.95:1).
|
|
814
|
+
"bg-menu-page": U("#ffffff", "#1e1e1e"),
|
|
815
|
+
"text-menu-page": U("#000000e5", "#ffffff"),
|
|
816
|
+
"text-menu-page-secondary": U("#0000008c", "#ffffffb2"),
|
|
817
|
+
"text-menu-page-disabled": U("#0000004d", "#ffffff66"),
|
|
818
|
+
"border-menu-page": U("#e6e6e6", "#383838"),
|
|
798
819
|
icon: U("#000000e5", "#ffffff", "--color-icon"),
|
|
799
820
|
"icon-secondary": U("#00000080", "#ffffffb2", "--color-icon-secondary"),
|
|
800
821
|
"icon-tertiary": U("#0000004d", "#ffffff66", "--color-icon-tertiary"),
|
|
@@ -833,7 +854,7 @@ const Ts = {
|
|
|
833
854
|
"text-onselected": U("var(--cm-text-brand)", "var(--cm-text-brand)"),
|
|
834
855
|
/** an accent graphic that must be seen against the panel (a dot, a meter's fill, a stroke) */
|
|
835
856
|
"graphic-brand": U("var(--cm-bg-brand)", "var(--cm-bg-brand)")
|
|
836
|
-
}, ve = (e) => `var(--mantine-primary-color-${e})`, bt = (e, t, r) => `color-mix(in srgb, ${e} ${t}%, ${r})`,
|
|
857
|
+
}, ve = (e) => `var(--mantine-primary-color-${e})`, bt = (e, t, r) => `color-mix(in srgb, ${e} ${t}%, ${r})`, Ns = {
|
|
837
858
|
"bg-brand": { light: ve(6), dark: ve(8) },
|
|
838
859
|
"bg-brand-hover": { light: ve(7), dark: ve(9) },
|
|
839
860
|
"bg-brand-pressed": { light: bt(ve(7), 85, "#000000"), dark: bt(ve(9), 85, "#000000") },
|
|
@@ -847,7 +868,7 @@ const Ts = {
|
|
|
847
868
|
"border-selected": { light: ve(6), dark: ve(8) },
|
|
848
869
|
"border-selected-strong": { light: ve(7), dark: ve(4) },
|
|
849
870
|
"text-highlight": { light: bt(ve(6), 40, "transparent"), dark: bt(ve(6), 40, "transparent") }
|
|
850
|
-
},
|
|
871
|
+
}, Cs = {
|
|
851
872
|
"bg-brand": { light: "#97c800", dark: "#c4f23a" },
|
|
852
873
|
"bg-brand-hover": { light: "#86b200", dark: "#aedf10" },
|
|
853
874
|
"bg-brand-pressed": { light: "#7aa600", dark: "#94be0e" },
|
|
@@ -865,7 +886,7 @@ const Ts = {
|
|
|
865
886
|
"border-selected": { light: "#588300", dark: "#c4f23a" },
|
|
866
887
|
"border-selected-strong": { light: "#588300", dark: "#c4f23a" },
|
|
867
888
|
"text-highlight": { light: "#c4f23a99", dark: "#c4f23a66" }
|
|
868
|
-
},
|
|
889
|
+
}, Es = {
|
|
869
890
|
// Owner's list.
|
|
870
891
|
"text-secondary": { light: "#0000008c", dark: "#ffffffb2" },
|
|
871
892
|
"icon-secondary": { light: "#0000008c", dark: "#ffffffb2" },
|
|
@@ -881,9 +902,12 @@ const Ts = {
|
|
|
881
902
|
"bg-brand-pressed": { light: "#105cad", dark: "#105cad" },
|
|
882
903
|
"text-brand": { light: "#0768cf", dark: "#7cc4f8" },
|
|
883
904
|
"icon-brand": { light: "#0768cf", dark: "#7cc4f8" },
|
|
905
|
+
// Figma's #dc3412 is 4.24:1 on a field or hover ground (#f5f5f5); #c4381c, the palette's next
|
|
906
|
+
// darker red, is 4.90:1 there.
|
|
907
|
+
"text-danger": { light: "#c4381c", dark: "#fca397" },
|
|
884
908
|
"bg-danger": { light: "#bd2915", dark: "#963323" },
|
|
885
909
|
"bg-success": { light: "#008043", dark: "#0a5c35" }
|
|
886
|
-
},
|
|
910
|
+
}, Mr = {
|
|
887
911
|
100: {
|
|
888
912
|
light: ["0 0 .5px rgba(0,0,0,.3)", "0 1px 3px rgba(0,0,0,.15)"],
|
|
889
913
|
dark: [
|
|
@@ -929,21 +953,21 @@ const Ts = {
|
|
|
929
953
|
"inset 0 0 .5px rgba(255,255,255,.35)"
|
|
930
954
|
]
|
|
931
955
|
}
|
|
932
|
-
},
|
|
933
|
-
function
|
|
934
|
-
const { light: t, dark: r } =
|
|
935
|
-
|
|
956
|
+
}, zs = "0 1px 3px rgba(0,0,0,.4), inset 0 0 .5px rgba(255,255,255,.3), inset 0 .5px 0 rgba(255,255,255,.1), 0 0 .5px rgba(0,0,0,.5)", Is = /rgba\([^)]*\)/;
|
|
957
|
+
function Ia(e) {
|
|
958
|
+
const { light: t, dark: r } = Mr[e], n = (a, c) => a.replace(
|
|
959
|
+
Is,
|
|
936
960
|
(s) => c === "light" ? `light-dark(${s}, transparent)` : `light-dark(transparent, ${s})`
|
|
937
961
|
);
|
|
938
962
|
return [...t.map((a) => n(a, "light")), ...r.map((a) => n(a, "dark"))].join(", ");
|
|
939
963
|
}
|
|
940
|
-
const
|
|
964
|
+
const Ls = {
|
|
941
965
|
"duration-sm": "100ms",
|
|
942
966
|
"duration-md": "200ms",
|
|
943
967
|
"ease-out": "ease-out",
|
|
944
968
|
"ease-in-out": "cubic-bezier(.645,.045,.355,1)",
|
|
945
969
|
"ease-loading": "cubic-bezier(.65,0,.35,1)"
|
|
946
|
-
},
|
|
970
|
+
}, vr = '"Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif', La = '"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace', ro = {
|
|
947
971
|
body: { fontSize: 11, lineHeight: 16, fontWeight: 450, letterSpacing: "0.055px" },
|
|
948
972
|
bodyStrong: { fontSize: 11, lineHeight: 16, fontWeight: 550, letterSpacing: "0.055px" },
|
|
949
973
|
headingSmall: { fontSize: 13, lineHeight: 22, fontWeight: 550, letterSpacing: "-0.032px" },
|
|
@@ -961,90 +985,90 @@ function q(e) {
|
|
|
961
985
|
const t = ro[e];
|
|
962
986
|
return `font-size: ${t.fontSize}px; line-height: ${t.lineHeight}px; font-weight: ${t.fontWeight}; letter-spacing: ${t.letterSpacing};`;
|
|
963
987
|
}
|
|
964
|
-
const
|
|
988
|
+
const Ps = {
|
|
965
989
|
xs: "9px",
|
|
966
990
|
sm: "11px",
|
|
967
991
|
md: "13px",
|
|
968
992
|
lg: "15px",
|
|
969
993
|
xl: "24px"
|
|
970
|
-
},
|
|
994
|
+
}, Os = {
|
|
971
995
|
xs: "14px",
|
|
972
996
|
sm: "16px",
|
|
973
997
|
md: "22px",
|
|
974
998
|
lg: "25px",
|
|
975
999
|
xl: "32px"
|
|
976
|
-
},
|
|
1000
|
+
}, Rs = {
|
|
977
1001
|
xs: "4px",
|
|
978
1002
|
sm: "8px",
|
|
979
1003
|
md: "8px",
|
|
980
1004
|
lg: "12px",
|
|
981
1005
|
xl: "16px"
|
|
982
|
-
},
|
|
1006
|
+
}, Ms = {
|
|
983
1007
|
xs: "2px",
|
|
984
1008
|
sm: "5px",
|
|
985
1009
|
md: "5px",
|
|
986
1010
|
lg: "13px",
|
|
987
1011
|
xl: "13px"
|
|
988
|
-
},
|
|
1012
|
+
}, Ds = {
|
|
989
1013
|
xs: "var(--cm-elevation-100)",
|
|
990
1014
|
sm: "var(--cm-elevation-200)",
|
|
991
1015
|
md: "var(--cm-elevation-300)",
|
|
992
1016
|
lg: "var(--cm-elevation-400)",
|
|
993
1017
|
xl: "var(--cm-elevation-500)"
|
|
994
1018
|
};
|
|
995
|
-
function
|
|
1019
|
+
function Hs() {
|
|
996
1020
|
const e = [];
|
|
997
|
-
for (const [t, r] of Object.entries(
|
|
1021
|
+
for (const [t, r] of Object.entries(As))
|
|
998
1022
|
e.push(`--cm-${t}: ${Vo(r)};`);
|
|
999
|
-
for (const t of Object.keys(
|
|
1000
|
-
e.push(`--cm-elevation-${t}: ${
|
|
1001
|
-
e.push(`--cm-elevation-toast: ${
|
|
1002
|
-
for (const [t, r] of Object.entries(
|
|
1023
|
+
for (const t of Object.keys(Mr))
|
|
1024
|
+
e.push(`--cm-elevation-${t}: ${Ia(t)};`);
|
|
1025
|
+
e.push(`--cm-elevation-toast: ${zs};`);
|
|
1026
|
+
for (const [t, r] of Object.entries(Ls))
|
|
1003
1027
|
e.push(`--cm-${t}: ${r};`);
|
|
1004
|
-
return e.push(`--cm-font-family: ${
|
|
1005
|
-
`);
|
|
1006
|
-
}
|
|
1007
|
-
function Hs() {
|
|
1008
|
-
return Object.entries(Cs).map(([e, t]) => `--cm-${e}: ${Vo(t)};`).join(`
|
|
1028
|
+
return e.push(`--cm-font-family: ${vr};`, `--cm-font-family-mono: ${La};`), e.join(`
|
|
1009
1029
|
`);
|
|
1010
1030
|
}
|
|
1011
1031
|
function Bs() {
|
|
1012
|
-
return Object.entries(
|
|
1032
|
+
return Object.entries(Es).map(([e, t]) => `--cm-${e}: ${Vo(t)};`).join(`
|
|
1013
1033
|
`);
|
|
1014
1034
|
}
|
|
1015
1035
|
function Fs() {
|
|
1016
1036
|
return Object.entries(Ns).map(([e, t]) => `--cm-${e}: ${Vo(t)};`).join(`
|
|
1017
1037
|
`);
|
|
1018
1038
|
}
|
|
1039
|
+
function Vs() {
|
|
1040
|
+
return Object.entries(Cs).map(([e, t]) => `--cm-${e}: ${Vo(t)};`).join(`
|
|
1041
|
+
`);
|
|
1042
|
+
}
|
|
1019
1043
|
function Vo({ light: e, dark: t }) {
|
|
1020
1044
|
return e === t ? e : `light-dark(${e}, ${t})`;
|
|
1021
1045
|
}
|
|
1022
|
-
const
|
|
1046
|
+
const Us = {
|
|
1023
1047
|
outline: { "--badge-bg": "transparent", "--badge-color": "var(--cm-text)" },
|
|
1024
1048
|
filled: { "--badge-bg": "var(--cm-bg-brand)", "--badge-color": "var(--cm-text-onbrand)" },
|
|
1025
1049
|
light: { "--badge-bg": "var(--cm-bg-selected)", "--badge-color": "var(--cm-text-onselected)" }
|
|
1026
|
-
},
|
|
1050
|
+
}, Gs = {
|
|
1027
1051
|
sm: { "--cm-text-fw": String(ro.body.fontWeight), "--cm-text-ls": ro.body.letterSpacing },
|
|
1028
1052
|
xs: { "--cm-text-fw": String(ro.caption.fontWeight), "--cm-text-ls": ro.caption.letterSpacing }
|
|
1029
|
-
},
|
|
1053
|
+
}, qs = {
|
|
1030
1054
|
filled: { "--ti-bg": "var(--cm-bg-brand)", "--ti-color": "var(--cm-text-onbrand)" },
|
|
1031
1055
|
light: { "--ti-bg": "var(--cm-bg-selected)", "--ti-color": "var(--cm-icon-brand)" }
|
|
1032
|
-
},
|
|
1056
|
+
}, Ws = {
|
|
1033
1057
|
// Text reads the theme's fontSizes / lineHeights (9/14, 11/16, 13/22, 15/25, 24/32). At sm and
|
|
1034
1058
|
// xs it also takes the body and caption roles' 450 weight and letter-spacing (the rule is in
|
|
1035
1059
|
// ../css/shell.css.ts); Mantine's own Text is weight normal.
|
|
1036
1060
|
Text: Kt.extend({
|
|
1037
1061
|
classNames: { root: "cm-text" },
|
|
1038
|
-
vars: (e, t) => ({ root:
|
|
1062
|
+
vars: (e, t) => ({ root: Gs[String(t == null ? void 0 : t.size)] ?? {} })
|
|
1039
1063
|
}),
|
|
1040
|
-
Badge:
|
|
1064
|
+
Badge: Mi.extend({
|
|
1041
1065
|
defaultProps: { size: "sm", variant: "outline" },
|
|
1042
1066
|
classNames: { root: "cm-badge" },
|
|
1043
1067
|
vars: (e, t) => ({
|
|
1044
1068
|
root: {
|
|
1045
|
-
...ge(
|
|
1069
|
+
...ge(vs, t == null ? void 0 : t.size),
|
|
1046
1070
|
...(t == null ? void 0 : t.radius) === void 0 ? { "--badge-radius": "5px" } : {},
|
|
1047
|
-
...t != null && t.color ? {} : { ...
|
|
1071
|
+
...t != null && t.color ? {} : { ...Us[(t == null ? void 0 : t.variant) ?? "outline"], "--badge-bd": "0 solid transparent" }
|
|
1048
1072
|
}
|
|
1049
1073
|
})
|
|
1050
1074
|
}),
|
|
@@ -1057,7 +1081,7 @@ const Vs = {
|
|
|
1057
1081
|
// context or the pill's value, and MultiSelect and TagsInput never pass removeButtonProps, so
|
|
1058
1082
|
// their pills all share it. Name a Pill of your own after its value:
|
|
1059
1083
|
// `removeButtonProps={{ "aria-label": `Remove ${tag}` }}`.
|
|
1060
|
-
Pill:
|
|
1084
|
+
Pill: Ri.extend({
|
|
1061
1085
|
defaultProps: {
|
|
1062
1086
|
size: "sm",
|
|
1063
1087
|
removeButtonProps: { "aria-label": "Remove", tabIndex: 0, "aria-hidden": !1 },
|
|
@@ -1066,39 +1090,39 @@ const Vs = {
|
|
|
1066
1090
|
classNames: { root: "cm-pill" },
|
|
1067
1091
|
vars: (e, t) => ({
|
|
1068
1092
|
root: {
|
|
1069
|
-
...ge(
|
|
1093
|
+
...ge(Ts, t == null ? void 0 : t.size),
|
|
1070
1094
|
...(t == null ? void 0 : t.radius) === void 0 ? { "--pill-radius": "5px" } : {}
|
|
1071
1095
|
}
|
|
1072
1096
|
})
|
|
1073
1097
|
}),
|
|
1074
|
-
Avatar:
|
|
1098
|
+
Avatar: sn.extend({
|
|
1075
1099
|
defaultProps: { size: "sm", variant: "filled" },
|
|
1076
1100
|
classNames: { root: "cm-avatar", placeholder: "cm-avatar-placeholder" },
|
|
1077
1101
|
vars: (e, t) => ({
|
|
1078
|
-
root: ge(
|
|
1102
|
+
root: ge(ws, t == null ? void 0 : t.size)
|
|
1079
1103
|
})
|
|
1080
1104
|
}),
|
|
1081
1105
|
// A 2px ring around each avatar and a 21px step (hm/header-right-default #39, #49).
|
|
1082
|
-
AvatarGroup:
|
|
1106
|
+
AvatarGroup: sn.Group.extend({
|
|
1083
1107
|
defaultProps: { spacing: "7px" }
|
|
1084
1108
|
}),
|
|
1085
|
-
ThemeIcon:
|
|
1109
|
+
ThemeIcon: Oi.extend({
|
|
1086
1110
|
defaultProps: { size: "sm" },
|
|
1087
1111
|
classNames: { root: "cm-theme-icon" },
|
|
1088
1112
|
vars: (e, t) => ({
|
|
1089
1113
|
root: {
|
|
1090
|
-
...ge(
|
|
1114
|
+
...ge(ys, t == null ? void 0 : t.size),
|
|
1091
1115
|
...(t == null ? void 0 : t.radius) === void 0 ? { "--ti-radius": "5px" } : {},
|
|
1092
|
-
...t != null && t.color ? {} :
|
|
1116
|
+
...t != null && t.color ? {} : qs[(t == null ? void 0 : t.variant) ?? "filled"] ?? {}
|
|
1093
1117
|
}
|
|
1094
1118
|
})
|
|
1095
1119
|
}),
|
|
1096
|
-
Indicator:
|
|
1120
|
+
Indicator: Pi.extend({
|
|
1097
1121
|
defaultProps: { size: "sm", withBorder: !0 },
|
|
1098
1122
|
classNames: { indicator: "cm-indicator" },
|
|
1099
1123
|
vars: (e, t) => ({
|
|
1100
1124
|
root: {
|
|
1101
|
-
...ge(
|
|
1125
|
+
...ge(ks, t == null ? void 0 : t.size),
|
|
1102
1126
|
...(t == null ? void 0 : t.radius) === void 0 ? { "--indicator-radius": "100%" } : {},
|
|
1103
1127
|
...t != null && t.color ? {} : {
|
|
1104
1128
|
"--indicator-color": "var(--cm-bg-brand)",
|
|
@@ -1110,21 +1134,21 @@ const Vs = {
|
|
|
1110
1134
|
// Figma's library card (C55; ls/panel-assets #114): padding 8, a transparent 1px edge,
|
|
1111
1135
|
// radius 5, no fill, no shadow. `radius="lg"` (13) is the promo card. A card rendered as a link or button
|
|
1112
1136
|
// hovers and rings (../css/shell.css.ts).
|
|
1113
|
-
Card:
|
|
1137
|
+
Card: Li.extend({
|
|
1114
1138
|
defaultProps: { padding: 8, radius: "sm", withBorder: !0 },
|
|
1115
1139
|
classNames: { root: "cm-card" }
|
|
1116
1140
|
}),
|
|
1117
|
-
Kbd:
|
|
1141
|
+
Kbd: ka.extend({
|
|
1118
1142
|
defaultProps: { size: "sm" },
|
|
1119
1143
|
classNames: { root: "cm-kbd" },
|
|
1120
1144
|
vars: (e, t) => ({
|
|
1121
|
-
root: ge(
|
|
1145
|
+
root: ge(Ss, t == null ? void 0 : t.size)
|
|
1122
1146
|
})
|
|
1123
1147
|
})
|
|
1124
|
-
},
|
|
1148
|
+
}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1125
1149
|
__proto__: null,
|
|
1126
|
-
displayComponentExtensions:
|
|
1127
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1150
|
+
displayComponentExtensions: Ws
|
|
1151
|
+
}, Symbol.toStringTag, { value: "Module" })), Ys = {
|
|
1128
1152
|
compactSize: "sm",
|
|
1129
1153
|
sizes: {
|
|
1130
1154
|
xs: { "--loader-size": "14px" },
|
|
@@ -1133,7 +1157,7 @@ const Vs = {
|
|
|
1133
1157
|
lg: { "--loader-size": "30px" },
|
|
1134
1158
|
xl: { "--loader-size": "38px" }
|
|
1135
1159
|
}
|
|
1136
|
-
},
|
|
1160
|
+
}, Ks = {
|
|
1137
1161
|
compactSize: "sm",
|
|
1138
1162
|
sizes: {
|
|
1139
1163
|
xs: { "--progress-size": "2px" },
|
|
@@ -1142,54 +1166,54 @@ const Vs = {
|
|
|
1142
1166
|
lg: { "--progress-size": "8px" },
|
|
1143
1167
|
xl: { "--progress-size": "10px" }
|
|
1144
1168
|
}
|
|
1145
|
-
},
|
|
1169
|
+
}, Xs = {
|
|
1146
1170
|
label: {
|
|
1147
1171
|
fontSize: 9
|
|
1148
1172
|
}
|
|
1149
|
-
},
|
|
1173
|
+
}, Js = "9999px", Zs = { root: "cm-loader" }, Qs = {
|
|
1150
1174
|
root: "cm-progress",
|
|
1151
1175
|
section: "cm-progress-section",
|
|
1152
1176
|
label: "cm-progress-label"
|
|
1153
|
-
},
|
|
1177
|
+
}, _s = {
|
|
1154
1178
|
root: "cm-ring-progress",
|
|
1155
1179
|
curve: "cm-ring-curve",
|
|
1156
1180
|
label: "cm-ring-progress-label"
|
|
1157
|
-
},
|
|
1158
|
-
Loader:
|
|
1181
|
+
}, $s = {
|
|
1182
|
+
Loader: Hi.extend({
|
|
1159
1183
|
defaultProps: {
|
|
1160
1184
|
size: "sm"
|
|
1161
1185
|
},
|
|
1162
1186
|
vars: (e, t) => ({
|
|
1163
|
-
root: ge(
|
|
1187
|
+
root: ge(Ys, t == null ? void 0 : t.size)
|
|
1164
1188
|
}),
|
|
1165
|
-
classNames:
|
|
1189
|
+
classNames: Zs
|
|
1166
1190
|
}),
|
|
1167
|
-
Progress:
|
|
1191
|
+
Progress: gr.extend({
|
|
1168
1192
|
defaultProps: {
|
|
1169
1193
|
size: "sm"
|
|
1170
1194
|
},
|
|
1171
1195
|
vars: (e, t) => ({
|
|
1172
1196
|
root: {
|
|
1173
|
-
...ge(
|
|
1197
|
+
...ge(Ks, t == null ? void 0 : t.size),
|
|
1174
1198
|
// Round unless the caller asks for a radius of their own.
|
|
1175
|
-
...(t == null ? void 0 : t.radius) === void 0 && { "--progress-radius":
|
|
1199
|
+
...(t == null ? void 0 : t.radius) === void 0 && { "--progress-radius": Js }
|
|
1176
1200
|
}
|
|
1177
1201
|
}),
|
|
1178
|
-
styles:
|
|
1179
|
-
classNames:
|
|
1202
|
+
styles: Xs,
|
|
1203
|
+
classNames: Qs
|
|
1180
1204
|
}),
|
|
1181
1205
|
// Note: RingProgress uses numeric size directly in SVG calculations,
|
|
1182
1206
|
// so we can't use CSS variables or string size prop.
|
|
1183
1207
|
// Use size={48} in components for compact-equivalent sizing.
|
|
1184
|
-
RingProgress:
|
|
1208
|
+
RingProgress: Di.extend({
|
|
1185
1209
|
// No defaultProps - RingProgress requires numeric size
|
|
1186
1210
|
// Use size={48} in your components for compact sizing
|
|
1187
|
-
classNames:
|
|
1211
|
+
classNames: _s
|
|
1188
1212
|
})
|
|
1189
|
-
},
|
|
1213
|
+
}, el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1190
1214
|
__proto__: null,
|
|
1191
|
-
feedbackComponentExtensions:
|
|
1192
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1215
|
+
feedbackComponentExtensions: $s
|
|
1216
|
+
}, Symbol.toStringTag, { value: "Module" })), vn = 1e3, Xt = 1100, tl = Xt + 100, ol = 0, rl = 0, nl = [
|
|
1193
1217
|
"sizeSmallest",
|
|
1194
1218
|
"sizeLargest",
|
|
1195
1219
|
"width",
|
|
@@ -1198,7 +1222,7 @@ const Vs = {
|
|
|
1198
1222
|
"scaleSqrt",
|
|
1199
1223
|
"scaleLinear",
|
|
1200
1224
|
"scaleLog"
|
|
1201
|
-
],
|
|
1225
|
+
], al = ["N", "E", "W", "D", "K"], th = [
|
|
1202
1226
|
"chevronDown",
|
|
1203
1227
|
"chevronRight",
|
|
1204
1228
|
"chevronLeft",
|
|
@@ -1243,20 +1267,20 @@ const Vs = {
|
|
|
1243
1267
|
"text",
|
|
1244
1268
|
"component",
|
|
1245
1269
|
"group"
|
|
1246
|
-
],
|
|
1270
|
+
], Pa = {
|
|
1247
1271
|
viewBox: "0 0 16 16",
|
|
1248
1272
|
fill: "none",
|
|
1249
1273
|
stroke: "currentColor",
|
|
1250
1274
|
strokeLinecap: "round",
|
|
1251
1275
|
strokeLinejoin: "round"
|
|
1252
1276
|
};
|
|
1253
|
-
function
|
|
1277
|
+
function Oa(e) {
|
|
1254
1278
|
return 16 / e;
|
|
1255
1279
|
}
|
|
1256
1280
|
const Ze = {
|
|
1257
1281
|
fill: "currentColor",
|
|
1258
1282
|
stroke: "none"
|
|
1259
|
-
},
|
|
1283
|
+
}, il = {
|
|
1260
1284
|
sizeSmallest: (e) => /* @__PURE__ */ x(Z, { children: [
|
|
1261
1285
|
/* @__PURE__ */ o("circle", { cx: "3", cy: "11.25", r: "1.75", ...e ? Ze : {} }),
|
|
1262
1286
|
/* @__PURE__ */ o("circle", { cx: "10.25", cy: "9.25", r: "3.75", ...e ? Ze : {} })
|
|
@@ -1284,7 +1308,7 @@ const Ze = {
|
|
|
1284
1308
|
scaleSqrt: () => /* @__PURE__ */ o("path", { d: "M2.5 13.5C4.5 5 8 2.5 13.5 2.5" }),
|
|
1285
1309
|
scaleLinear: () => /* @__PURE__ */ o("line", { x1: "2.5", y1: "13.5", x2: "13.5", y2: "2.5" }),
|
|
1286
1310
|
scaleLog: () => /* @__PURE__ */ o("path", { d: "M2.5 13.5C8 13.5 11.5 11 13.5 2.5" })
|
|
1287
|
-
},
|
|
1311
|
+
}, cl = {
|
|
1288
1312
|
chevronDown: /* @__PURE__ */ o("polyline", { points: "4,6 8,10 12,6" }),
|
|
1289
1313
|
chevronRight: /* @__PURE__ */ o("polyline", { points: "6,4 10,8 6,12" }),
|
|
1290
1314
|
chevronLeft: /* @__PURE__ */ o("polyline", { points: "10,4 6,8 10,12" }),
|
|
@@ -1453,14 +1477,14 @@ function Zt({ name: e, filled: t = !1, size: r = L.GLYPH }) {
|
|
|
1453
1477
|
{
|
|
1454
1478
|
width: r,
|
|
1455
1479
|
height: r,
|
|
1456
|
-
...
|
|
1457
|
-
strokeWidth:
|
|
1480
|
+
...Pa,
|
|
1481
|
+
strokeWidth: Oa(r),
|
|
1458
1482
|
"aria-hidden": "true",
|
|
1459
1483
|
focusable: "false",
|
|
1460
1484
|
"data-glyph": e,
|
|
1461
1485
|
"data-filled": t ? "true" : "false",
|
|
1462
1486
|
style: { flex: "0 0 auto", display: "block" },
|
|
1463
|
-
children:
|
|
1487
|
+
children: il[e](t)
|
|
1464
1488
|
}
|
|
1465
1489
|
);
|
|
1466
1490
|
}
|
|
@@ -1470,28 +1494,28 @@ function xe({ name: e, size: t = L.GLYPH }) {
|
|
|
1470
1494
|
{
|
|
1471
1495
|
width: t,
|
|
1472
1496
|
height: t,
|
|
1473
|
-
...
|
|
1474
|
-
strokeWidth:
|
|
1497
|
+
...Pa,
|
|
1498
|
+
strokeWidth: Oa(t),
|
|
1475
1499
|
"aria-hidden": "true",
|
|
1476
1500
|
focusable: "false",
|
|
1477
1501
|
"data-glyph": e,
|
|
1478
1502
|
style: { flex: "0 0 auto", display: "block" },
|
|
1479
|
-
children:
|
|
1503
|
+
children: cl[e]
|
|
1480
1504
|
}
|
|
1481
1505
|
);
|
|
1482
1506
|
}
|
|
1483
|
-
function Oa(e) {
|
|
1484
|
-
return typeof e == "string" && rl.includes(e);
|
|
1485
|
-
}
|
|
1486
1507
|
function Ra(e) {
|
|
1487
1508
|
return typeof e == "string" && nl.includes(e);
|
|
1488
1509
|
}
|
|
1489
|
-
|
|
1510
|
+
function Ma(e) {
|
|
1511
|
+
return typeof e == "string" && al.includes(e);
|
|
1512
|
+
}
|
|
1513
|
+
const Da = 8, sl = 2 * Da, Mo = 4, so = 6;
|
|
1490
1514
|
function Uo(e) {
|
|
1491
1515
|
const { reference: t } = e.elements;
|
|
1492
1516
|
return t instanceof Element ? { anchor: (t.closest(".cm-input-wrapper") ?? t).getBoundingClientRect(), reference: t.getBoundingClientRect() } : null;
|
|
1493
1517
|
}
|
|
1494
|
-
function
|
|
1518
|
+
function Ha(e) {
|
|
1495
1519
|
const { floating: t } = e.elements, r = Uo(e), n = getComputedStyle(t).direction === "rtl", a = t.querySelector("[data-checked]") ?? t.querySelector('[aria-selected="true"]');
|
|
1496
1520
|
if (!r)
|
|
1497
1521
|
return { mainAxis: Mo, alignmentAxis: 0 };
|
|
@@ -1499,19 +1523,19 @@ function Da(e) {
|
|
|
1499
1523
|
if (!a)
|
|
1500
1524
|
return t.style.maxHeight = "", { mainAxis: c.bottom - s.bottom + Mo, alignmentAxis: i(0) };
|
|
1501
1525
|
const d = c.top - (a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop), l = t.ownerDocument.documentElement.clientHeight - so, u = c.top >= so && c.bottom <= l, p = u ? Math.max(d, so) : d, h = Math.min(d + t.scrollHeight, l);
|
|
1502
|
-
return t.style.maxHeight = u ? `${String(h - p)}px` : "", t.scrollTop = p - d, { mainAxis: p - s.bottom, alignmentAxis: i(
|
|
1526
|
+
return t.style.maxHeight = u ? `${String(h - p)}px` : "", t.scrollTop = p - d, { mainAxis: p - s.bottom, alignmentAxis: i(Da) };
|
|
1503
1527
|
}
|
|
1504
|
-
function
|
|
1528
|
+
function Ba(e) {
|
|
1505
1529
|
var r;
|
|
1506
1530
|
const t = ((r = Uo(e)) == null ? void 0 : r.anchor.width) ?? e.rects.reference.width;
|
|
1507
|
-
e.elements.floating.style.minWidth = `${String(t +
|
|
1531
|
+
e.elements.floating.style.minWidth = `${String(t + sl)}px`;
|
|
1508
1532
|
}
|
|
1509
|
-
function
|
|
1533
|
+
function Fa(e) {
|
|
1510
1534
|
var r;
|
|
1511
1535
|
const t = ((r = Uo(e)) == null ? void 0 : r.anchor.width) ?? e.rects.reference.width;
|
|
1512
1536
|
e.elements.floating.style.minWidth = `${String(t)}px`;
|
|
1513
1537
|
}
|
|
1514
|
-
function
|
|
1538
|
+
function Va(e) {
|
|
1515
1539
|
const t = Uo(e);
|
|
1516
1540
|
if (!t)
|
|
1517
1541
|
return { mainAxis: Mo, alignmentAxis: 0 };
|
|
@@ -1521,31 +1545,31 @@ function Fa(e) {
|
|
|
1521
1545
|
alignmentAxis: a ? n.right - r.right : r.left - n.left
|
|
1522
1546
|
};
|
|
1523
1547
|
}
|
|
1524
|
-
const
|
|
1548
|
+
const ll = {
|
|
1525
1549
|
fn: (e) => ({ x: e.x, y: e.y })
|
|
1526
1550
|
};
|
|
1527
|
-
function
|
|
1551
|
+
function Dr() {
|
|
1528
1552
|
return {
|
|
1529
1553
|
position: "bottom-start",
|
|
1530
|
-
offset:
|
|
1554
|
+
offset: Ha,
|
|
1531
1555
|
middlewares: {
|
|
1532
1556
|
flip: !1,
|
|
1533
1557
|
// Clamp on both axes, with no limiter: Mantine's default limitShift keeps a list touching
|
|
1534
1558
|
// its trigger's edge, which would stop a list that opens over its trigger from being
|
|
1535
1559
|
// pulled back inside the viewport.
|
|
1536
|
-
shift: { crossAxis: !0, padding: so, limiter:
|
|
1537
|
-
size: { apply:
|
|
1560
|
+
shift: { crossAxis: !0, padding: so, limiter: ll },
|
|
1561
|
+
size: { apply: Ba }
|
|
1538
1562
|
},
|
|
1539
1563
|
width: "max-content",
|
|
1540
1564
|
transitionProps: { duration: 0 },
|
|
1541
1565
|
zIndex: Xt
|
|
1542
1566
|
};
|
|
1543
1567
|
}
|
|
1544
|
-
function
|
|
1568
|
+
function dl() {
|
|
1545
1569
|
return {
|
|
1546
1570
|
position: "bottom-start",
|
|
1547
|
-
offset:
|
|
1548
|
-
middlewares: { flip: !0, shift: { padding: so }, size: { apply:
|
|
1571
|
+
offset: Va,
|
|
1572
|
+
middlewares: { flip: !0, shift: { padding: so }, size: { apply: Fa } },
|
|
1549
1573
|
width: "max-content",
|
|
1550
1574
|
transitionProps: { duration: 0 },
|
|
1551
1575
|
zIndex: Xt
|
|
@@ -1555,14 +1579,14 @@ function Zo(e) {
|
|
|
1555
1579
|
const { reference: t } = e.elements;
|
|
1556
1580
|
return t instanceof Element && t.closest(".cm-select") !== null;
|
|
1557
1581
|
}
|
|
1558
|
-
function
|
|
1559
|
-
const e =
|
|
1582
|
+
function ul() {
|
|
1583
|
+
const e = Dr(), t = (r) => {
|
|
1560
1584
|
const n = !Zo(r);
|
|
1561
1585
|
return { mainAxis: n, crossAxis: n };
|
|
1562
1586
|
};
|
|
1563
1587
|
return {
|
|
1564
1588
|
...e,
|
|
1565
|
-
offset: ((r) => Zo(r) ?
|
|
1589
|
+
offset: ((r) => Zo(r) ? Ha(r) : Va(r)),
|
|
1566
1590
|
middlewares: {
|
|
1567
1591
|
...e.middlewares,
|
|
1568
1592
|
// floating-ui derives a middleware's options from a function of its state; Mantine
|
|
@@ -1570,26 +1594,26 @@ function dl() {
|
|
|
1570
1594
|
flip: t,
|
|
1571
1595
|
size: {
|
|
1572
1596
|
apply: (r) => {
|
|
1573
|
-
Zo(r) ?
|
|
1597
|
+
Zo(r) ? Ba(r) : Fa(r);
|
|
1574
1598
|
}
|
|
1575
1599
|
}
|
|
1576
1600
|
}
|
|
1577
1601
|
};
|
|
1578
1602
|
}
|
|
1579
|
-
const
|
|
1580
|
-
let
|
|
1581
|
-
function
|
|
1582
|
-
if (
|
|
1603
|
+
const wn = "data-cm-modality";
|
|
1604
|
+
let yn = !1;
|
|
1605
|
+
function kn() {
|
|
1606
|
+
if (yn || typeof document > "u")
|
|
1583
1607
|
return;
|
|
1584
|
-
|
|
1608
|
+
yn = !0;
|
|
1585
1609
|
const e = document.documentElement, t = (r) => (n) => {
|
|
1586
|
-
n.isTrusted && e.getAttribute(
|
|
1610
|
+
n.isTrusted && e.getAttribute(wn) !== r && e.setAttribute(wn, r);
|
|
1587
1611
|
};
|
|
1588
1612
|
document.addEventListener("pointerdown", t("pointer"), !0), document.addEventListener("keydown", t("keyboard"), !0);
|
|
1589
1613
|
}
|
|
1590
|
-
const
|
|
1591
|
-
let
|
|
1592
|
-
function
|
|
1614
|
+
const ml = 500;
|
|
1615
|
+
let Sn = !1;
|
|
1616
|
+
function Tn(e) {
|
|
1593
1617
|
if (!(e instanceof HTMLInputElement) || !e.readOnly || e.dataset.expanded === void 0 || !e.closest(".cm-input-wrapper"))
|
|
1594
1618
|
return null;
|
|
1595
1619
|
const t = e.getAttribute("aria-controls");
|
|
@@ -1605,10 +1629,10 @@ function Qo(e, t, r) {
|
|
|
1605
1629
|
e.dispatchEvent(new KeyboardEvent("keydown", { key: u, code: u, bubbles: !0 }));
|
|
1606
1630
|
}
|
|
1607
1631
|
}
|
|
1608
|
-
function
|
|
1609
|
-
if (
|
|
1632
|
+
function pl() {
|
|
1633
|
+
if (Sn || typeof document > "u")
|
|
1610
1634
|
return;
|
|
1611
|
-
|
|
1635
|
+
Sn = !0;
|
|
1612
1636
|
let e = "", t = 0, r = null;
|
|
1613
1637
|
const n = (c) => {
|
|
1614
1638
|
const s = c.target;
|
|
@@ -1616,7 +1640,7 @@ function ml() {
|
|
|
1616
1640
|
}, a = (c) => {
|
|
1617
1641
|
const s = c.target;
|
|
1618
1642
|
!c.isTrusted || s !== r || (r = null, globalThis.setTimeout(() => {
|
|
1619
|
-
const i =
|
|
1643
|
+
const i = Tn(s);
|
|
1620
1644
|
if (!i || !(s instanceof HTMLInputElement) || s.hasAttribute("aria-activedescendant"))
|
|
1621
1645
|
return;
|
|
1622
1646
|
const d = i.querySelector("[data-combobox-option][data-combobox-active]");
|
|
@@ -1629,7 +1653,7 @@ function ml() {
|
|
|
1629
1653
|
document.addEventListener("keydown", n, !0), document.addEventListener("click", n, !0), document.addEventListener("keydown", a), document.addEventListener("click", a), document.addEventListener(
|
|
1630
1654
|
"keydown",
|
|
1631
1655
|
(c) => {
|
|
1632
|
-
const s =
|
|
1656
|
+
const s = Tn(c.target), i = c.target;
|
|
1633
1657
|
if (!s || c.ctrlKey || c.metaKey || c.altKey)
|
|
1634
1658
|
return;
|
|
1635
1659
|
const d = [...s.querySelectorAll("[data-combobox-option]")].filter(
|
|
@@ -1645,7 +1669,7 @@ function ml() {
|
|
|
1645
1669
|
return;
|
|
1646
1670
|
c.preventDefault();
|
|
1647
1671
|
const l = c.timeStamp;
|
|
1648
|
-
e = l - t >
|
|
1672
|
+
e = l - t > ml ? c.key : e + c.key, t = l;
|
|
1649
1673
|
const u = d.findIndex((v) => v.dataset.comboboxSelected !== void 0), p = e.length > 1 && e === e[0].repeat(e.length), h = (p ? e[0] : e).toLocaleLowerCase(), g = e.length === 1 || p ? u + 1 : Math.max(u, 0), k = d.length;
|
|
1650
1674
|
for (let v = 0; v < k; v++) {
|
|
1651
1675
|
const N = d[(g + v) % k];
|
|
@@ -1658,23 +1682,23 @@ function ml() {
|
|
|
1658
1682
|
!0
|
|
1659
1683
|
);
|
|
1660
1684
|
}
|
|
1661
|
-
function
|
|
1685
|
+
function Ua() {
|
|
1662
1686
|
return /* @__PURE__ */ o("span", { className: "cm-menu-row-check", "aria-hidden": "true", children: /* @__PURE__ */ o(xe, { name: "check", size: 16 }) });
|
|
1663
1687
|
}
|
|
1664
|
-
function
|
|
1688
|
+
function Ga({
|
|
1665
1689
|
option: e
|
|
1666
1690
|
}) {
|
|
1667
1691
|
return /* @__PURE__ */ x(Z, { children: [
|
|
1668
|
-
/* @__PURE__ */ o(
|
|
1692
|
+
/* @__PURE__ */ o(Ua, {}),
|
|
1669
1693
|
/* @__PURE__ */ o("span", { className: "cm-listbox-label", children: e.label ?? e.value })
|
|
1670
1694
|
] });
|
|
1671
1695
|
}
|
|
1672
|
-
function
|
|
1696
|
+
function Hr() {
|
|
1673
1697
|
return /* @__PURE__ */ o("span", { className: "cm-field-caret", "aria-hidden": "true", children: /* @__PURE__ */ o(xe, { name: "caretDown", size: 10 }) });
|
|
1674
1698
|
}
|
|
1675
|
-
const
|
|
1699
|
+
const hl = {
|
|
1676
1700
|
"--menu-item-fz": "11px"
|
|
1677
|
-
},
|
|
1701
|
+
}, _o = {
|
|
1678
1702
|
dropdown: "cm-menu-surface cm-menu",
|
|
1679
1703
|
item: "cm-menu-row cm-menu-item",
|
|
1680
1704
|
itemLabel: "cm-menu-item-label",
|
|
@@ -1692,10 +1716,10 @@ const bl = {
|
|
|
1692
1716
|
flip: !0,
|
|
1693
1717
|
shift: { padding: Do },
|
|
1694
1718
|
size: { padding: Do, apply: fl }
|
|
1695
|
-
}, gl = { mainAxis: 4, alignmentAxis: -8 }, jt = { duration: 0 },
|
|
1719
|
+
}, gl = { mainAxis: 4, alignmentAxis: -8 }, jt = { duration: 0 }, wr = 1e3, Ho = 300, qa = 8.5, Wa = 6, xl = Wa - qa / 2, vl = {
|
|
1696
1720
|
tooltip: "cm-tooltip",
|
|
1697
1721
|
arrow: "cm-tooltip-arrow"
|
|
1698
|
-
},
|
|
1722
|
+
}, An = {
|
|
1699
1723
|
dropdown: "cm-popover-surface cm-popover",
|
|
1700
1724
|
arrow: "cm-popover-arrow"
|
|
1701
1725
|
}, wl = {
|
|
@@ -1719,31 +1743,31 @@ const bl = {
|
|
|
1719
1743
|
scrollbar: "cm-scroll-scrollbar",
|
|
1720
1744
|
thumb: "cm-scroll-thumb",
|
|
1721
1745
|
corner: "cm-scroll-corner"
|
|
1722
|
-
}, Sl = 10, Tl = /* @__PURE__ */ new Set(["Shift", "Control", "Alt", "AltGraph", "Meta", "CapsLock", "Fn", "OS"]), Al = /* @__PURE__ */ new Set(["cm-overlay-mount", "cm-tooltip-mount"]),
|
|
1723
|
-
let
|
|
1724
|
-
function
|
|
1746
|
+
}, Sl = 10, Tl = /* @__PURE__ */ new Set(["Shift", "Control", "Alt", "AltGraph", "Meta", "CapsLock", "Fn", "OS"]), Al = /* @__PURE__ */ new Set(["cm-overlay-mount", "cm-tooltip-mount"]), Nn = 24, Nl = 4;
|
|
1747
|
+
let Cn = !1, yr = 0, kr = 0;
|
|
1748
|
+
function ja(e) {
|
|
1725
1749
|
return Array.from(document.querySelectorAll(".cm-tooltip")).some(
|
|
1726
1750
|
(t) => t !== e && t.dataset.cmSeen !== void 0 && t.dataset.cmHeld === void 0 && t.dataset.cmDismissed === void 0
|
|
1727
1751
|
);
|
|
1728
1752
|
}
|
|
1729
|
-
function
|
|
1753
|
+
function Ya(e) {
|
|
1730
1754
|
return e.id ? document.querySelector(`[aria-describedby~="${CSS.escape(e.id)}"]`) : null;
|
|
1731
1755
|
}
|
|
1732
1756
|
function To() {
|
|
1733
|
-
|
|
1757
|
+
ja() && (yr = performance.now() + Ho);
|
|
1734
1758
|
for (const e of document.querySelectorAll(".cm-tooltip")) {
|
|
1735
|
-
const t =
|
|
1759
|
+
const t = Ya(e);
|
|
1736
1760
|
t && (t.matches(":hover") || t === document.activeElement) && (e.dataset.cmDismissed = "");
|
|
1737
1761
|
}
|
|
1738
1762
|
}
|
|
1739
1763
|
function Cl(e) {
|
|
1740
|
-
const t =
|
|
1741
|
-
return !t || t !== document.activeElement || t.matches(":hover") ? !1 : !(
|
|
1764
|
+
const t = Ya(e);
|
|
1765
|
+
return !t || t !== document.activeElement || t.matches(":hover") ? !1 : !(kr >= yr - Ho && kr < yr) && !ja(e);
|
|
1742
1766
|
}
|
|
1743
1767
|
function El(e) {
|
|
1744
1768
|
Cl(e) && (e.dataset.cmHeld = "", globalThis.setTimeout(() => {
|
|
1745
1769
|
delete e.dataset.cmHeld;
|
|
1746
|
-
},
|
|
1770
|
+
}, wr)), e.dataset.cmSeen = "";
|
|
1747
1771
|
}
|
|
1748
1772
|
function zl(e) {
|
|
1749
1773
|
return Array.from(e.querySelectorAll('[role^="menuitem"]')).filter(
|
|
@@ -1766,22 +1790,22 @@ function Il(e) {
|
|
|
1766
1790
|
}
|
|
1767
1791
|
}
|
|
1768
1792
|
}
|
|
1769
|
-
function
|
|
1793
|
+
function Sr(e) {
|
|
1770
1794
|
const t = e.scrollTop > 0, r = e.scrollTop + e.clientHeight < e.scrollHeight - 1;
|
|
1771
1795
|
e.toggleAttribute("data-cm-scroll-up", t), e.toggleAttribute("data-cm-scroll-down", r);
|
|
1772
1796
|
}
|
|
1773
1797
|
const Jt = typeof ResizeObserver > "u" ? null : new ResizeObserver((e) => {
|
|
1774
1798
|
for (const { target: t } of e)
|
|
1775
|
-
t.isConnected ?
|
|
1799
|
+
t.isConnected ? Sr(t) : Jt == null || Jt.unobserve(t);
|
|
1776
1800
|
});
|
|
1777
1801
|
let xt = null;
|
|
1778
|
-
function
|
|
1802
|
+
function Br() {
|
|
1779
1803
|
xt && (cancelAnimationFrame(xt.frame), xt = null);
|
|
1780
1804
|
}
|
|
1781
|
-
function
|
|
1805
|
+
function En(e, t) {
|
|
1782
1806
|
if ((xt == null ? void 0 : xt.menu) === e && xt.direction === t)
|
|
1783
1807
|
return;
|
|
1784
|
-
|
|
1808
|
+
Br();
|
|
1785
1809
|
const r = () => {
|
|
1786
1810
|
xt && (e.scrollTop += t * Nl, xt.frame = requestAnimationFrame(r));
|
|
1787
1811
|
};
|
|
@@ -1791,26 +1815,26 @@ function Ll(e) {
|
|
|
1791
1815
|
const t = e.target instanceof Element ? e.target.closest(".cm-menu") : null;
|
|
1792
1816
|
if (t) {
|
|
1793
1817
|
const r = t.getBoundingClientRect();
|
|
1794
|
-
if (t.dataset.cmScrollUp !== void 0 && e.clientY < r.top +
|
|
1795
|
-
|
|
1818
|
+
if (t.dataset.cmScrollUp !== void 0 && e.clientY < r.top + Nn) {
|
|
1819
|
+
En(t, -1);
|
|
1796
1820
|
return;
|
|
1797
1821
|
}
|
|
1798
|
-
if (t.dataset.cmScrollDown !== void 0 && e.clientY > r.bottom -
|
|
1799
|
-
|
|
1822
|
+
if (t.dataset.cmScrollDown !== void 0 && e.clientY > r.bottom - Nn) {
|
|
1823
|
+
En(t, 1);
|
|
1800
1824
|
return;
|
|
1801
1825
|
}
|
|
1802
1826
|
}
|
|
1803
|
-
|
|
1827
|
+
Br();
|
|
1804
1828
|
}
|
|
1805
|
-
function
|
|
1806
|
-
if (
|
|
1829
|
+
function Tr() {
|
|
1830
|
+
if (Cn || typeof document > "u")
|
|
1807
1831
|
return;
|
|
1808
|
-
|
|
1832
|
+
Cn = !0;
|
|
1809
1833
|
const e = { capture: !0, passive: !0 };
|
|
1810
1834
|
document.addEventListener("pointerdown", To, e), document.addEventListener("wheel", To, e), document.addEventListener(
|
|
1811
1835
|
"focusin",
|
|
1812
1836
|
() => {
|
|
1813
|
-
|
|
1837
|
+
kr = performance.now();
|
|
1814
1838
|
},
|
|
1815
1839
|
e
|
|
1816
1840
|
), document.addEventListener(
|
|
@@ -1820,15 +1844,15 @@ function Sr() {
|
|
|
1820
1844
|
},
|
|
1821
1845
|
e
|
|
1822
1846
|
), document.addEventListener("mouseout", (t) => {
|
|
1823
|
-
t.relatedTarget || (To(),
|
|
1847
|
+
t.relatedTarget || (To(), Br());
|
|
1824
1848
|
}), document.addEventListener("keydown", Il), document.addEventListener("pointermove", Ll, { passive: !0 }), document.addEventListener(
|
|
1825
1849
|
"scroll",
|
|
1826
1850
|
(t) => {
|
|
1827
|
-
t.target instanceof HTMLElement && t.target.classList.contains("cm-menu") &&
|
|
1851
|
+
t.target instanceof HTMLElement && t.target.classList.contains("cm-menu") && Sr(t.target);
|
|
1828
1852
|
},
|
|
1829
1853
|
e
|
|
1830
1854
|
), document.addEventListener("animationstart", (t) => {
|
|
1831
|
-
!Al.has(t.animationName) || !(t.target instanceof HTMLElement) || (t.target.classList.contains("cm-tooltip") ? El(t.target) : t.target.classList.contains("cm-menu") && (
|
|
1855
|
+
!Al.has(t.animationName) || !(t.target instanceof HTMLElement) || (t.target.classList.contains("cm-tooltip") ? El(t.target) : t.target.classList.contains("cm-menu") && (Sr(t.target), Jt == null || Jt.observe(t.target)));
|
|
1832
1856
|
});
|
|
1833
1857
|
}
|
|
1834
1858
|
function eo(e, t, r) {
|
|
@@ -1856,7 +1880,7 @@ const Rt = {
|
|
|
1856
1880
|
lg: eo("36px", "15px", "25px"),
|
|
1857
1881
|
xl: eo("44px", "24px", "32px")
|
|
1858
1882
|
}
|
|
1859
|
-
},
|
|
1883
|
+
}, zn = {
|
|
1860
1884
|
compactSize: "sm",
|
|
1861
1885
|
sizes: {
|
|
1862
1886
|
xs: vt("48px", "4px", "11px", "16px"),
|
|
@@ -1865,7 +1889,7 @@ const Rt = {
|
|
|
1865
1889
|
lg: vt("72px", "6px", "15px", "25px"),
|
|
1866
1890
|
xl: vt("88px", "8px", "24px", "32px")
|
|
1867
1891
|
}
|
|
1868
|
-
},
|
|
1892
|
+
}, $o = {
|
|
1869
1893
|
compactSize: "sm",
|
|
1870
1894
|
sizes: {
|
|
1871
1895
|
xs: vt("20px", "0px", "11px", "16px"),
|
|
@@ -1884,10 +1908,10 @@ const Rt = {
|
|
|
1884
1908
|
xl: { "--cb-size": "32px", "--cb-icon-size": "20px", "--cb-radius": "5px" }
|
|
1885
1909
|
}
|
|
1886
1910
|
};
|
|
1887
|
-
function
|
|
1911
|
+
function In(e) {
|
|
1888
1912
|
return /\bcolou?r\b/i.test(e) ? e : `${e} color`;
|
|
1889
1913
|
}
|
|
1890
|
-
const
|
|
1914
|
+
const Ka = {
|
|
1891
1915
|
mixed: "Mixed",
|
|
1892
1916
|
fieldBound: "Bound to a data attribute",
|
|
1893
1917
|
fieldPending: "Set but not yet applied",
|
|
@@ -1905,8 +1929,8 @@ const Ya = {
|
|
|
1905
1929
|
resetToDefault: (e) => `Reset ${e} to default`,
|
|
1906
1930
|
colorSwatch: "Pick color",
|
|
1907
1931
|
colorHexValue: "Color hex value",
|
|
1908
|
-
pickColor: (e) => `Pick ${
|
|
1909
|
-
colorValue: (e) =>
|
|
1932
|
+
pickColor: (e) => `Pick ${In(e)}`,
|
|
1933
|
+
colorValue: (e) => In(e),
|
|
1910
1934
|
colorOpacity: (e) => `${e} opacity`,
|
|
1911
1935
|
opacity: "Opacity",
|
|
1912
1936
|
colorPanelTitle: "Color",
|
|
@@ -1958,25 +1982,25 @@ const Ya = {
|
|
|
1958
1982
|
return `${e}th`;
|
|
1959
1983
|
}
|
|
1960
1984
|
}
|
|
1961
|
-
}, Ol = "en",
|
|
1985
|
+
}, Ol = "en", Ar = It(Ka), Nr = It(void 0);
|
|
1962
1986
|
function Rl(e) {
|
|
1963
1987
|
return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language : Ol;
|
|
1964
1988
|
}
|
|
1965
1989
|
function oh({ labels: e, locale: t, children: r }) {
|
|
1966
|
-
const n = mt(
|
|
1967
|
-
return /* @__PURE__ */ o(
|
|
1990
|
+
const n = mt(Ar), a = mt(Nr), c = be(() => ({ ...n, ...e }), [n, e]), s = t ?? a;
|
|
1991
|
+
return /* @__PURE__ */ o(Nr.Provider, { value: s, children: /* @__PURE__ */ o(Ar.Provider, { value: c, children: r }) });
|
|
1968
1992
|
}
|
|
1969
1993
|
function ze() {
|
|
1970
|
-
return mt(
|
|
1994
|
+
return mt(Ar);
|
|
1971
1995
|
}
|
|
1972
1996
|
function fo() {
|
|
1973
|
-
const e = mt(
|
|
1997
|
+
const e = mt(Nr);
|
|
1974
1998
|
return Rl(e);
|
|
1975
1999
|
}
|
|
1976
|
-
const Ml = 1234.5, Dl = "9876543210", Hl = 9876543210, Bl = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Fl = "−", Vl = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu,
|
|
2000
|
+
const Ml = 1234.5, Dl = "9876543210", Hl = 9876543210, Bl = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Fl = "−", Vl = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu, Ln = /* @__PURE__ */ new Map();
|
|
1977
2001
|
function Ul(e) {
|
|
1978
2002
|
var d, l;
|
|
1979
|
-
const t =
|
|
2003
|
+
const t = Ln.get(e);
|
|
1980
2004
|
if (t !== void 0)
|
|
1981
2005
|
return t;
|
|
1982
2006
|
const r = new Intl.NumberFormat(e).formatToParts(Ml), n = ((d = r.find((u) => u.type === "decimal")) == null ? void 0 : d.value) ?? ".", a = ((l = r.find((u) => u.type === "group")) == null ? void 0 : l.value) ?? "", c = /* @__PURE__ */ new Map();
|
|
@@ -1987,7 +2011,7 @@ function Ul(e) {
|
|
|
1987
2011
|
c.set(u, Dl[p]);
|
|
1988
2012
|
});
|
|
1989
2013
|
const i = { decimal: n, digits: c, group: a };
|
|
1990
|
-
return
|
|
2014
|
+
return Ln.set(e, i), i;
|
|
1991
2015
|
}
|
|
1992
2016
|
function Gl(e, t) {
|
|
1993
2017
|
const r = Ul(t);
|
|
@@ -2082,7 +2106,7 @@ const Zl = {
|
|
|
2082
2106
|
group: "cm-listbox-group",
|
|
2083
2107
|
groupLabel: "cm-listbox-group-label",
|
|
2084
2108
|
empty: "cm-listbox-empty"
|
|
2085
|
-
},
|
|
2109
|
+
}, Pn = {
|
|
2086
2110
|
dropdown: "cm-menu-surface cm-menu cm-listbox cm-listbox-multi",
|
|
2087
2111
|
pill: "cm-input-pill",
|
|
2088
2112
|
pillsList: "cm-input-pills",
|
|
@@ -2096,22 +2120,22 @@ function Ao(e, t = "", r = {}) {
|
|
|
2096
2120
|
...r
|
|
2097
2121
|
});
|
|
2098
2122
|
}
|
|
2099
|
-
const
|
|
2100
|
-
comboboxProps:
|
|
2123
|
+
const er = uo(Hr), Ql = {
|
|
2124
|
+
comboboxProps: Dr(),
|
|
2101
2125
|
withScrollArea: !1,
|
|
2102
|
-
renderOption:
|
|
2103
|
-
},
|
|
2104
|
-
comboboxProps:
|
|
2126
|
+
renderOption: Ga
|
|
2127
|
+
}, tr = {
|
|
2128
|
+
comboboxProps: dl(),
|
|
2105
2129
|
withScrollArea: !1,
|
|
2106
|
-
renderOption:
|
|
2130
|
+
renderOption: Ga
|
|
2107
2131
|
};
|
|
2108
2132
|
function No(e, t) {
|
|
2109
|
-
return
|
|
2133
|
+
return Tr(), { root: {}, wrapper: ge(e, t) };
|
|
2110
2134
|
}
|
|
2111
2135
|
const _l = {
|
|
2112
2136
|
// Every field's wrapper is also styled under this name (Mantine's useStyles names it
|
|
2113
2137
|
// ["InputWrapper", "Select"]), so this one entry themes the label of every field.
|
|
2114
|
-
InputWrapper:
|
|
2138
|
+
InputWrapper: Ji.extend({ classNames: Jl }),
|
|
2115
2139
|
TextInput: Vt.extend({
|
|
2116
2140
|
defaultProps: { size: "sm", variant: "filled" },
|
|
2117
2141
|
vars: (e, t) => ({ root: {}, wrapper: ge(Rt, t == null ? void 0 : t.size) }),
|
|
@@ -2119,7 +2143,7 @@ const _l = {
|
|
|
2119
2143
|
}),
|
|
2120
2144
|
// No stepper chevrons (spec 6.1): ArrowUp / ArrowDown still step. `hideControls={false}`
|
|
2121
2145
|
// brings Mantine's steppers back for a caller who asks.
|
|
2122
|
-
NumberInput:
|
|
2146
|
+
NumberInput: Xi.extend({
|
|
2123
2147
|
defaultProps: { size: "sm", variant: "filled", hideControls: !0 },
|
|
2124
2148
|
vars: (e, t) => ({
|
|
2125
2149
|
root: {},
|
|
@@ -2130,23 +2154,23 @@ const _l = {
|
|
|
2130
2154
|
}),
|
|
2131
2155
|
// The APG combobox: role="combobox" plus aria-expanded (from ComboboxTarget below), so a
|
|
2132
2156
|
// screen reader hears the list open and the highlight move (aria-activedescendant).
|
|
2133
|
-
Select:
|
|
2157
|
+
Select: Pr.extend({
|
|
2134
2158
|
defaultProps: {
|
|
2135
2159
|
size: "sm",
|
|
2136
2160
|
variant: "outlined",
|
|
2137
|
-
rightSection:
|
|
2161
|
+
rightSection: er,
|
|
2138
2162
|
role: "combobox",
|
|
2139
2163
|
...Ql
|
|
2140
2164
|
},
|
|
2141
|
-
vars: (e, t) => (
|
|
2165
|
+
vars: (e, t) => (kn(), pl(), No(Rt, t == null ? void 0 : t.size)),
|
|
2142
2166
|
classNames: Ao("outlined", "cm-select")
|
|
2143
2167
|
}),
|
|
2144
|
-
NativeSelect:
|
|
2145
|
-
defaultProps: { size: "sm", variant: "outlined", rightSection:
|
|
2146
|
-
vars: (e, t) => (
|
|
2168
|
+
NativeSelect: Ki.extend({
|
|
2169
|
+
defaultProps: { size: "sm", variant: "outlined", rightSection: er },
|
|
2170
|
+
vars: (e, t) => (kn(), { root: {}, wrapper: ge(Rt, t == null ? void 0 : t.size) }),
|
|
2147
2171
|
classNames: kt("outlined", "cm-select")
|
|
2148
2172
|
}),
|
|
2149
|
-
Textarea:
|
|
2173
|
+
Textarea: Yi.extend({
|
|
2150
2174
|
defaultProps: { size: "sm", variant: "filled" },
|
|
2151
2175
|
// An autosize field's floor is its minRows lines, not the size's fixed 56px: a one-line
|
|
2152
2176
|
// composer is 4 + 16 + 4 = 24, the panel's control height, and grows a line at a time.
|
|
@@ -2155,7 +2179,7 @@ const _l = {
|
|
|
2155
2179
|
vars: (e, t) => ({
|
|
2156
2180
|
root: {},
|
|
2157
2181
|
wrapper: {
|
|
2158
|
-
...ge(
|
|
2182
|
+
...ge(zn, t == null ? void 0 : t.size),
|
|
2159
2183
|
...t != null && t.autosize || (t == null ? void 0 : t.minRows) !== void 0 || (t == null ? void 0 : t.maxRows) !== void 0 ? {
|
|
2160
2184
|
"--input-height": `calc(${t.minRows ?? 1} * var(--input-line-height) + 2 * var(--input-padding-y))`
|
|
2161
2185
|
} : {}
|
|
@@ -2163,7 +2187,7 @@ const _l = {
|
|
|
2163
2187
|
}),
|
|
2164
2188
|
classNames: kt("filled")
|
|
2165
2189
|
}),
|
|
2166
|
-
PasswordInput:
|
|
2190
|
+
PasswordInput: ji.extend({
|
|
2167
2191
|
defaultProps: {
|
|
2168
2192
|
size: "sm",
|
|
2169
2193
|
variant: "filled",
|
|
@@ -2183,27 +2207,27 @@ const _l = {
|
|
|
2183
2207
|
visibilityToggle: "cm-input-toggle"
|
|
2184
2208
|
})
|
|
2185
2209
|
}),
|
|
2186
|
-
Autocomplete:
|
|
2187
|
-
defaultProps: { size: "sm", variant: "filled", role: "combobox", ...
|
|
2210
|
+
Autocomplete: Wi.extend({
|
|
2211
|
+
defaultProps: { size: "sm", variant: "filled", role: "combobox", ...tr },
|
|
2188
2212
|
vars: (e, t) => No(Rt, t == null ? void 0 : t.size),
|
|
2189
2213
|
classNames: Ao("filled")
|
|
2190
2214
|
}),
|
|
2191
|
-
MultiSelect:
|
|
2192
|
-
defaultProps: { size: "sm", variant: "filled", rightSection:
|
|
2193
|
-
vars: (e, t) => No(
|
|
2194
|
-
classNames: Ao("filled", "cm-pills-field",
|
|
2215
|
+
MultiSelect: qi.extend({
|
|
2216
|
+
defaultProps: { size: "sm", variant: "filled", rightSection: er, ...tr },
|
|
2217
|
+
vars: (e, t) => No($o, t == null ? void 0 : t.size),
|
|
2218
|
+
classNames: Ao("filled", "cm-pills-field", Pn)
|
|
2195
2219
|
}),
|
|
2196
|
-
TagsInput:
|
|
2197
|
-
defaultProps: { size: "sm", variant: "filled", ...
|
|
2198
|
-
vars: (e, t) => No(
|
|
2199
|
-
classNames: Ao("filled", "cm-pills-field",
|
|
2220
|
+
TagsInput: Gi.extend({
|
|
2221
|
+
defaultProps: { size: "sm", variant: "filled", ...tr },
|
|
2222
|
+
vars: (e, t) => No($o, t == null ? void 0 : t.size),
|
|
2223
|
+
classNames: Ao("filled", "cm-pills-field", Pn)
|
|
2200
2224
|
}),
|
|
2201
|
-
PillsInput:
|
|
2225
|
+
PillsInput: Ui.extend({
|
|
2202
2226
|
defaultProps: { size: "sm", variant: "filled" },
|
|
2203
|
-
vars: (e, t) => ({ root: {}, wrapper: ge(
|
|
2227
|
+
vars: (e, t) => ({ root: {}, wrapper: ge($o, t == null ? void 0 : t.size) }),
|
|
2204
2228
|
classNames: kt("filled", "cm-pills-field")
|
|
2205
2229
|
}),
|
|
2206
|
-
FileInput:
|
|
2230
|
+
FileInput: Vi.extend({
|
|
2207
2231
|
defaultProps: { size: "sm", variant: "filled" },
|
|
2208
2232
|
vars: (e, t) => ({ root: {}, wrapper: ge(Rt, t == null ? void 0 : t.size) }),
|
|
2209
2233
|
classNames: (e, t) => ({
|
|
@@ -2211,7 +2235,7 @@ const _l = {
|
|
|
2211
2235
|
placeholder: "cm-input-placeholder"
|
|
2212
2236
|
})
|
|
2213
2237
|
}),
|
|
2214
|
-
JsonInput:
|
|
2238
|
+
JsonInput: Fi.extend({
|
|
2215
2239
|
defaultProps: { size: "sm", variant: "filled" },
|
|
2216
2240
|
// An autosize field's floor is its minRows lines, not the size's fixed 56px: a one-line
|
|
2217
2241
|
// composer is 4 + 16 + 4 = 24, the panel's control height, and grows a line at a time.
|
|
@@ -2220,7 +2244,7 @@ const _l = {
|
|
|
2220
2244
|
vars: (e, t) => ({
|
|
2221
2245
|
root: {},
|
|
2222
2246
|
wrapper: {
|
|
2223
|
-
...ge(
|
|
2247
|
+
...ge(zn, t == null ? void 0 : t.size),
|
|
2224
2248
|
...t != null && t.autosize || (t == null ? void 0 : t.minRows) !== void 0 || (t == null ? void 0 : t.maxRows) !== void 0 ? {
|
|
2225
2249
|
"--input-height": `calc(${t.minRows ?? 1} * var(--input-line-height) + 2 * var(--input-padding-y))`
|
|
2226
2250
|
} : {}
|
|
@@ -2233,13 +2257,13 @@ const _l = {
|
|
|
2233
2257
|
// Mantine replaces a field's whole comboboxProps default with the caller's object, and only
|
|
2234
2258
|
// the Combobox underneath merges key by key (listboxComboboxProps).
|
|
2235
2259
|
Combobox: Ht.extend({
|
|
2236
|
-
defaultProps: { ...
|
|
2260
|
+
defaultProps: { ...ul() }
|
|
2237
2261
|
}),
|
|
2238
2262
|
ComboboxTarget: Ht.Target.extend({
|
|
2239
2263
|
defaultProps: { withExpandedAttribute: !0 }
|
|
2240
2264
|
}),
|
|
2241
2265
|
// The clear (x) of a field: a CloseButton, 16px in the 24px trailing slot (spec 6.2).
|
|
2242
|
-
InputClearButton:
|
|
2266
|
+
InputClearButton: Bi.extend({
|
|
2243
2267
|
defaultProps: { size: "xs" },
|
|
2244
2268
|
vars: (e, t) => ({ root: ge(Pl, t == null ? void 0 : t.size) }),
|
|
2245
2269
|
classNames: { root: "cm-input-clear cm-focus-outside" }
|
|
@@ -2315,10 +2339,10 @@ const rd = {
|
|
|
2315
2339
|
tabSection: "cm-tab-section",
|
|
2316
2340
|
panel: "cm-tabs-panel"
|
|
2317
2341
|
}, md = {
|
|
2318
|
-
onMouseDown:
|
|
2319
|
-
onClickCapture:
|
|
2320
|
-
onMouseLeave:
|
|
2321
|
-
onKeyDown:
|
|
2342
|
+
onMouseDown: as,
|
|
2343
|
+
onClickCapture: is,
|
|
2344
|
+
onMouseLeave: bn,
|
|
2345
|
+
onKeyDown: bn,
|
|
2322
2346
|
renderRoot: od
|
|
2323
2347
|
}, pd = {
|
|
2324
2348
|
first: "First page",
|
|
@@ -2326,14 +2350,14 @@ const rd = {
|
|
|
2326
2350
|
next: "Next page",
|
|
2327
2351
|
last: "Last page"
|
|
2328
2352
|
}, hd = {
|
|
2329
|
-
Anchor:
|
|
2353
|
+
Anchor: ec.extend({
|
|
2330
2354
|
defaultProps: {
|
|
2331
2355
|
size: "sm",
|
|
2332
2356
|
underline: "never"
|
|
2333
2357
|
},
|
|
2334
2358
|
classNames: id
|
|
2335
2359
|
}),
|
|
2336
|
-
Burger:
|
|
2360
|
+
Burger: $i.extend({
|
|
2337
2361
|
defaultProps: {
|
|
2338
2362
|
size: "sm"
|
|
2339
2363
|
},
|
|
@@ -2342,10 +2366,10 @@ const rd = {
|
|
|
2342
2366
|
}),
|
|
2343
2367
|
classNames: cd
|
|
2344
2368
|
}),
|
|
2345
|
-
NavLink:
|
|
2369
|
+
NavLink: _i.extend({
|
|
2346
2370
|
classNames: sd
|
|
2347
2371
|
}),
|
|
2348
|
-
Pagination:
|
|
2372
|
+
Pagination: Qi.extend({
|
|
2349
2373
|
defaultProps: {
|
|
2350
2374
|
size: "sm",
|
|
2351
2375
|
// Mantine draws the previous, next, first and last controls as bare chevrons with
|
|
@@ -2358,7 +2382,7 @@ const rd = {
|
|
|
2358
2382
|
}),
|
|
2359
2383
|
classNames: ld
|
|
2360
2384
|
}),
|
|
2361
|
-
Stepper:
|
|
2385
|
+
Stepper: Zi.extend({
|
|
2362
2386
|
defaultProps: {
|
|
2363
2387
|
size: "sm"
|
|
2364
2388
|
},
|
|
@@ -2397,10 +2421,11 @@ const rd = {
|
|
|
2397
2421
|
transitionProps: jt,
|
|
2398
2422
|
middlewares: bl
|
|
2399
2423
|
},
|
|
2400
|
-
|
|
2424
|
+
// variant="inverse" keeps Figma's always-dark menu in both schemes (cm-menu-inverse).
|
|
2425
|
+
classNames: (e, t) => t.variant === "inverse" ? { ..._o, dropdown: `${_o.dropdown} cm-menu-inverse` } : _o,
|
|
2401
2426
|
// vars runs on every render: the first one installs the document-level type-ahead and
|
|
2402
2427
|
// scroll chevrons (idempotent; see overlayBehavior.ts).
|
|
2403
|
-
vars: () => (
|
|
2428
|
+
vars: () => (Tr(), { dropdown: hl })
|
|
2404
2429
|
}),
|
|
2405
2430
|
// Submenus open and close with no delay, 4px beside the parent menu, first row level with
|
|
2406
2431
|
// the parent row. They render inside the parent dropdown, whose height clamp makes it a
|
|
@@ -2427,12 +2452,12 @@ const rd = {
|
|
|
2427
2452
|
}),
|
|
2428
2453
|
Tooltip: dt.extend({
|
|
2429
2454
|
defaultProps: {
|
|
2430
|
-
zIndex:
|
|
2455
|
+
zIndex: tl,
|
|
2431
2456
|
position: "bottom",
|
|
2432
2457
|
offset: xl,
|
|
2433
2458
|
withArrow: !0,
|
|
2434
|
-
arrowSize:
|
|
2435
|
-
openDelay:
|
|
2459
|
+
arrowSize: qa,
|
|
2460
|
+
openDelay: wr,
|
|
2436
2461
|
closeDelay: Ho,
|
|
2437
2462
|
transitionProps: jt,
|
|
2438
2463
|
events: { hover: !0, focus: !0, touch: !1 },
|
|
@@ -2441,30 +2466,30 @@ const rd = {
|
|
|
2441
2466
|
classNames: vl,
|
|
2442
2467
|
// vars runs on every render: the first one installs the instant dismiss and the focus
|
|
2443
2468
|
// delay (idempotent; see overlayBehavior.ts).
|
|
2444
|
-
vars: () => (
|
|
2469
|
+
vars: () => (Tr(), { tooltip: {} })
|
|
2445
2470
|
}),
|
|
2446
2471
|
TooltipGroup: dt.Group.extend({
|
|
2447
2472
|
defaultProps: {
|
|
2448
|
-
openDelay:
|
|
2473
|
+
openDelay: wr,
|
|
2449
2474
|
closeDelay: Ho
|
|
2450
2475
|
}
|
|
2451
2476
|
}),
|
|
2452
|
-
Popover:
|
|
2477
|
+
Popover: oc.extend({
|
|
2453
2478
|
defaultProps: {
|
|
2454
2479
|
zIndex: Xt,
|
|
2455
2480
|
transitionProps: jt
|
|
2456
2481
|
},
|
|
2457
|
-
classNames:
|
|
2482
|
+
classNames: An
|
|
2458
2483
|
}),
|
|
2459
|
-
HoverCard:
|
|
2484
|
+
HoverCard: tc.extend({
|
|
2460
2485
|
defaultProps: {
|
|
2461
2486
|
zIndex: Xt,
|
|
2462
2487
|
transitionProps: jt
|
|
2463
2488
|
},
|
|
2464
|
-
classNames:
|
|
2489
|
+
classNames: An
|
|
2465
2490
|
}),
|
|
2466
2491
|
// Frame sizes sm 320 / md 480 / lg 760 live on cm-modal as Mantine's --modal-size-* vars.
|
|
2467
|
-
Modal:
|
|
2492
|
+
Modal: dn.extend({
|
|
2468
2493
|
defaultProps: {
|
|
2469
2494
|
centered: !0,
|
|
2470
2495
|
withOverlay: !1,
|
|
@@ -2478,20 +2503,20 @@ const rd = {
|
|
|
2478
2503
|
// Mantine draws the title bar as a <header>. Inside a dialog that is a banner landmark,
|
|
2479
2504
|
// a second one beside the page's own (axe: landmark-no-duplicate-banner). The dialog is
|
|
2480
2505
|
// already named by its title, so the bar drops the landmark role and is a plain container.
|
|
2481
|
-
ModalHeader:
|
|
2482
|
-
Drawer:
|
|
2506
|
+
ModalHeader: dn.Header.extend({ defaultProps: { role: "none" } }),
|
|
2507
|
+
Drawer: ln.extend({
|
|
2483
2508
|
defaultProps: {
|
|
2484
2509
|
closeButtonProps: { "aria-label": "Close" }
|
|
2485
2510
|
}
|
|
2486
2511
|
}),
|
|
2487
|
-
DrawerHeader:
|
|
2488
|
-
Notification:
|
|
2512
|
+
DrawerHeader: ln.Header.extend({ defaultProps: { role: "none" } }),
|
|
2513
|
+
Notification: Sa.extend({
|
|
2489
2514
|
defaultProps: {
|
|
2490
2515
|
closeButtonProps: { iconSize: 10 }
|
|
2491
2516
|
},
|
|
2492
2517
|
classNames: yl
|
|
2493
2518
|
}),
|
|
2494
|
-
ScrollArea:
|
|
2519
|
+
ScrollArea: Or.extend({
|
|
2495
2520
|
defaultProps: {
|
|
2496
2521
|
type: "hover",
|
|
2497
2522
|
scrollHideDelay: 0,
|
|
@@ -2502,11 +2527,11 @@ const rd = {
|
|
|
2502
2527
|
}, gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2503
2528
|
__proto__: null,
|
|
2504
2529
|
overlayComponentExtensions: bd
|
|
2505
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2530
|
+
}, Symbol.toStringTag, { value: "Module" })), On = /* @__PURE__ */ Object.assign({ "./buttons.ts": _c, "./color.ts": ts, "./controls.ts": xs, "./display.ts": js, "./feedback.ts": el, "./inputs.ts": $l, "./navigation.ts": fd, "./overlays.ts": gd });
|
|
2506
2531
|
function xd() {
|
|
2507
2532
|
const e = {}, t = {};
|
|
2508
|
-
for (const r of Object.keys(
|
|
2509
|
-
for (const [n, a] of Object.entries(
|
|
2533
|
+
for (const r of Object.keys(On).sort())
|
|
2534
|
+
for (const [n, a] of Object.entries(On[r]))
|
|
2510
2535
|
if (n.endsWith("ComponentExtensions"))
|
|
2511
2536
|
for (const [c, s] of Object.entries(a)) {
|
|
2512
2537
|
if (c in t)
|
|
@@ -2523,18 +2548,18 @@ const vd = xd(), wd = "data:font/woff2;base64,d09GMgABAAAAALyAABUAAAAB4CAAALwFAA
|
|
|
2523
2548
|
--cm-field-shadow-hover: inset 0 0 0 1px var(--cm-field-edge-hover);
|
|
2524
2549
|
--cm-field-border: var(--cm-field-edge);
|
|
2525
2550
|
--mantine-color-dimmed: var(--cm-text-secondary) !important;`;
|
|
2526
|
-
function
|
|
2551
|
+
function Fr(e) {
|
|
2527
2552
|
return `${e} {
|
|
2528
|
-
${
|
|
2553
|
+
${Bs()}
|
|
2529
2554
|
${Sd}
|
|
2530
2555
|
}`;
|
|
2531
2556
|
}
|
|
2532
|
-
function
|
|
2557
|
+
function Vr(e) {
|
|
2533
2558
|
return `${e} {
|
|
2534
|
-
${
|
|
2559
|
+
${Vs()}
|
|
2535
2560
|
}`;
|
|
2536
2561
|
}
|
|
2537
|
-
const
|
|
2562
|
+
const Ur = "--cm-row-ink: var(--cm-text-onbrand); --cm-row-ink-secondary: var(--cm-text-onbrand-secondary);", Ut = "--cm-row-ink: initial; --cm-row-ink-secondary: initial;", Td = ".cm-focus-outside, .cm-focus-flush, .cm-focus-inside, .cm-focus-inside-2, .cm-focus-double", Ad = `
|
|
2538
2563
|
@font-face {
|
|
2539
2564
|
font-family: "Inter Variable";
|
|
2540
2565
|
font-style: normal;
|
|
@@ -2546,21 +2571,21 @@ const Fr = "--cm-row-ink: var(--cm-text-onbrand); --cm-row-ink-secondary: var(--
|
|
|
2546
2571
|
|
|
2547
2572
|
:root,
|
|
2548
2573
|
:host {
|
|
2549
|
-
${
|
|
2574
|
+
${Hs()}
|
|
2550
2575
|
${kd}
|
|
2551
2576
|
}
|
|
2552
2577
|
|
|
2553
|
-
${
|
|
2578
|
+
${Fr(':root[data-cm-contrast="high"]')}
|
|
2554
2579
|
|
|
2555
2580
|
/* A theme whose primaryColor is not "brand" (global-styles.ts sets the attribute): the accent
|
|
2556
2581
|
tokens follow the primary palette. After the AA block, so a custom accent wins there too. */
|
|
2557
2582
|
:root[data-cm-accent] {
|
|
2558
|
-
${
|
|
2583
|
+
${Fs()}
|
|
2559
2584
|
}
|
|
2560
2585
|
|
|
2561
2586
|
/* The graphty brand accent (createCompactTheme({ accent: "graphty" })): fixed brand values, so
|
|
2562
2587
|
after the derived block above. */
|
|
2563
|
-
${
|
|
2588
|
+
${Vr(':root[data-cm-accent="graphty"]')}
|
|
2564
2589
|
|
|
2565
2590
|
/* Reduced motion: the few things that move (spec 2.8: a checkbox tick, a switch knob, a hover
|
|
2566
2591
|
color, the help button's ring, the loading fade) change in one frame. Every such transition
|
|
@@ -2688,17 +2713,40 @@ ${Td} {
|
|
|
2688
2713
|
.cm-field ::placeholder { color: var(--cm-text-tertiary); opacity: 1; }
|
|
2689
2714
|
.cm-field ::selection { background-color: var(--cm-text-highlight); }
|
|
2690
2715
|
|
|
2691
|
-
/* The
|
|
2692
|
-
|
|
2716
|
+
/* The menu surface (spec 6.5, 8.1): menus, list boxes and context menus follow the page's
|
|
2717
|
+
scheme. Every rule inside reads the menu tokens (--cm-bg-menu, --cm-text-menu, ...), which on
|
|
2718
|
+
their own are the always-dark values; this surface points them at the page-following set, so a
|
|
2719
|
+
light app gets a light menu with dark ink and a dark app the dark menu. The highlights are the
|
|
2720
|
+
brand's and the danger fill's darker steps in each scheme, so the white row text and shortcut
|
|
2721
|
+
on them meet 4.5:1 and the pill meets 3:1 against the surface.
|
|
2722
|
+
|
|
2723
|
+
The class cm-menu-inverse keeps Figma's always-dark menu in both schemes (a Menu adds it for
|
|
2724
|
+
variant="inverse"; any other dropdown, a Select's or a Combobox's, takes it through
|
|
2725
|
+
classNames={{ dropdown: "cm-menu-inverse" }}): the surface resolves dark and the
|
|
2726
|
+
menu tokens and highlights keep their Figma values. Only its shadow follows the page. */
|
|
2693
2727
|
.cm-menu-surface {
|
|
2728
|
+
--cm-menu-shadow: var(--cm-elevation-400);
|
|
2694
2729
|
background-color: var(--cm-bg-menu);
|
|
2695
2730
|
color: var(--cm-text-menu);
|
|
2696
2731
|
border: 0;
|
|
2697
2732
|
border-radius: 13px;
|
|
2698
|
-
box-shadow: var(--cm-
|
|
2733
|
+
box-shadow: var(--cm-menu-shadow);
|
|
2699
2734
|
padding: 8px 0;
|
|
2700
2735
|
}
|
|
2701
|
-
.cm-menu-surface
|
|
2736
|
+
.cm-menu-surface:not(.cm-menu-inverse) {
|
|
2737
|
+
--cm-bg-menu: var(--cm-bg-menu-page);
|
|
2738
|
+
--cm-text-menu: var(--cm-text-menu-page);
|
|
2739
|
+
--cm-text-menu-secondary: var(--cm-text-menu-page-secondary);
|
|
2740
|
+
--cm-text-menu-disabled: var(--cm-text-menu-page-disabled);
|
|
2741
|
+
--cm-border-menu: var(--cm-border-menu-page);
|
|
2742
|
+
--cm-bg-brand: light-dark(var(--cm-bg-brand-pressed), var(--cm-bg-brand-hover));
|
|
2743
|
+
--cm-bg-danger: light-dark(var(--cm-bg-danger-pressed), var(--cm-bg-danger-hover));
|
|
2744
|
+
--cm-text-onbrand-secondary: var(--cm-text-onbrand);
|
|
2745
|
+
}
|
|
2746
|
+
.cm-menu-surface.cm-menu-inverse { color-scheme: dark; }
|
|
2747
|
+
:where([data-mantine-color-scheme="light"]) .cm-menu-surface.cm-menu-inverse {
|
|
2748
|
+
--cm-menu-shadow: ${Mr[400].light.join(", ")};
|
|
2749
|
+
}
|
|
2702
2750
|
|
|
2703
2751
|
/* A menu or listbox row: 24 tall, text 16px from the menu edge, the highlight an inner pill
|
|
2704
2752
|
inset 8px each side. Only one row is ever filled: a selected row gives its highlight up while
|
|
@@ -2733,7 +2781,7 @@ ${Td} {
|
|
|
2733
2781
|
.cm-menu-row:hover,
|
|
2734
2782
|
.cm-menu-row[data-hovered],
|
|
2735
2783
|
.cm-menu-row[data-combobox-selected],
|
|
2736
|
-
.cm-menu-row[aria-selected="true"] { ${
|
|
2784
|
+
.cm-menu-row[aria-selected="true"] { ${Ur} }
|
|
2737
2785
|
.cm-menu-surface:has(.cm-menu-row:hover) .cm-menu-row[aria-selected="true"]:not(:hover)::before {
|
|
2738
2786
|
background: transparent;
|
|
2739
2787
|
}
|
|
@@ -2768,12 +2816,12 @@ ${Td} {
|
|
|
2768
2816
|
}
|
|
2769
2817
|
`, Nd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2770
2818
|
__proto__: null,
|
|
2771
|
-
ROW_LIT:
|
|
2819
|
+
ROW_LIT: Ur,
|
|
2772
2820
|
ROW_UNLIT: Ut,
|
|
2773
2821
|
default: Ad,
|
|
2774
|
-
graphtyAccentBlock:
|
|
2775
|
-
highContrastBlock:
|
|
2776
|
-
}, Symbol.toStringTag, { value: "Module" })), Yt = ':is(:hover, [data-state="hover"])', Ct = ':is(:active, [data-state="press"])', Et = ':is(:focus-visible, [data-state="focus"])', ot = ":not(:disabled, [data-disabled], [data-loading])", Mt = ":is(:disabled, [data-disabled]):not([data-loading])",
|
|
2822
|
+
graphtyAccentBlock: Vr,
|
|
2823
|
+
highContrastBlock: Fr
|
|
2824
|
+
}, Symbol.toStringTag, { value: "Module" })), Yt = ':is(:hover, [data-state="hover"])', Ct = ':is(:active, [data-state="press"])', Et = ':is(:focus-visible, [data-state="focus"])', ot = ":not(:disabled, [data-disabled], [data-loading])", Mt = ":is(:disabled, [data-disabled]):not([data-loading])", Rn = ':is([data-variant="default"], [data-variant="outline"], [data-variant="danger-outline"])', or = ':is([data-variant="default"], [aria-haspopup]:not([aria-haspopup="false"]))', rr = ':is([aria-expanded="true"], [aria-pressed="true"])', to = '.cm-ai-group > .cm-action-icon:is([data-variant="subtle"], [data-variant="default"], [data-variant="joined"])', Cd = `
|
|
2777
2825
|
/* ---------- Button (4.1) ---------- */
|
|
2778
2826
|
.cm-button {
|
|
2779
2827
|
display: inline-flex;
|
|
@@ -2795,6 +2843,9 @@ ${Td} {
|
|
|
2795
2843
|
outline-offset: -1px;
|
|
2796
2844
|
}
|
|
2797
2845
|
.cm-button:where([data-block]) { display: flex; }
|
|
2846
|
+
/* A full-width button never grows past its width: a label too long for it ends in an ellipsis. */
|
|
2847
|
+
.cm-button:where([data-block]) .cm-button-inner { flex: 1; min-width: 0; }
|
|
2848
|
+
.cm-button:where([data-block]) .cm-button-label { display: block; height: auto; min-width: 0; text-overflow: ellipsis; }
|
|
2798
2849
|
.cm-button:where([data-with-left-section], [data-with-right-section]) { padding: 0; }
|
|
2799
2850
|
.cm-button-inner { transition: opacity var(--cm-duration-md) var(--cm-ease-loading); }
|
|
2800
2851
|
/* The label carries the inset, so the button reports padding 0 (C7). */
|
|
@@ -2839,11 +2890,11 @@ ${Td} {
|
|
|
2839
2890
|
outline: 1px solid transparent;
|
|
2840
2891
|
outline-offset: 1px;
|
|
2841
2892
|
}
|
|
2842
|
-
.cm-button${
|
|
2893
|
+
.cm-button${Rn}${Et} {
|
|
2843
2894
|
outline: 1px solid var(--cm-btn-outline, transparent);
|
|
2844
2895
|
outline-offset: -1px;
|
|
2845
2896
|
}
|
|
2846
|
-
.cm-button${
|
|
2897
|
+
.cm-button${Rn}${Et}::before { outline-color: var(--cm-border-selected); }
|
|
2847
2898
|
.cm-button${Mt} {
|
|
2848
2899
|
background: var(--cm-btn-disabled-bg, var(--mantine-color-disabled));
|
|
2849
2900
|
color: var(--cm-btn-disabled-color, var(--mantine-color-disabled-color));
|
|
@@ -2886,7 +2937,7 @@ ${Td} {
|
|
|
2886
2937
|
outline: 1px solid var(--cm-border-selected);
|
|
2887
2938
|
outline-offset: 1px;
|
|
2888
2939
|
}
|
|
2889
|
-
.cm-action-icon${
|
|
2940
|
+
.cm-action-icon${or}::before {
|
|
2890
2941
|
content: "";
|
|
2891
2942
|
position: absolute;
|
|
2892
2943
|
inset: 0;
|
|
@@ -2895,18 +2946,18 @@ ${Td} {
|
|
|
2895
2946
|
outline: 1px solid transparent;
|
|
2896
2947
|
outline-offset: 1px;
|
|
2897
2948
|
}
|
|
2898
|
-
.cm-action-icon${
|
|
2949
|
+
.cm-action-icon${or}${Et} {
|
|
2899
2950
|
outline: 1px solid var(--cm-ai-outline, transparent);
|
|
2900
2951
|
outline-offset: -1px;
|
|
2901
2952
|
}
|
|
2902
|
-
.cm-action-icon${
|
|
2953
|
+
.cm-action-icon${or}${Et}::before { outline-color: var(--cm-border-selected); }
|
|
2903
2954
|
/* Open (aria-expanded) and toggled on (aria-pressed): selected ground, brand glyph. */
|
|
2904
|
-
.cm-action-icon${
|
|
2955
|
+
.cm-action-icon${rr}:not(:disabled, [data-disabled]) {
|
|
2905
2956
|
background-color: var(--cm-bg-selected);
|
|
2906
2957
|
color: var(--cm-icon-brand);
|
|
2907
2958
|
}
|
|
2908
|
-
.cm-action-icon${
|
|
2909
|
-
.cm-action-icon${
|
|
2959
|
+
.cm-action-icon${rr}${Yt}${ot} { background-color: var(--cm-bg-selected-secondary); }
|
|
2960
|
+
.cm-action-icon${rr}${Ct}${ot} { background-color: var(--cm-bg-selected); }
|
|
2910
2961
|
.cm-action-icon${Mt} {
|
|
2911
2962
|
background: var(--cm-ai-disabled-bg, transparent);
|
|
2912
2963
|
color: var(--cm-ai-disabled-color, var(--cm-icon-disabled));
|
|
@@ -3919,7 +3970,7 @@ ${to}${Et} {
|
|
|
3919
3970
|
color: var(--cm-text-disabled);
|
|
3920
3971
|
}
|
|
3921
3972
|
|
|
3922
|
-
/* ---- The
|
|
3973
|
+
/* ---- The listbox (spec 6.5): the menu surface, following the page's scheme ---- */
|
|
3923
3974
|
/* The surface restated at two classes: a Combobox dropdown is a Mantine Popover dropdown, so it
|
|
3924
3975
|
also receives the Popover's theme classes (the light popover), which must not win here. */
|
|
3925
3976
|
.cm-listbox.cm-menu-surface {
|
|
@@ -3938,7 +3989,7 @@ ${to}${Et} {
|
|
|
3938
3989
|
border-radius: 13px;
|
|
3939
3990
|
background-color: var(--cm-bg-menu);
|
|
3940
3991
|
color: var(--cm-text-menu);
|
|
3941
|
-
box-shadow: var(--cm-
|
|
3992
|
+
box-shadow: var(--cm-menu-shadow);
|
|
3942
3993
|
}
|
|
3943
3994
|
.cm-listbox .cm-listbox-option {
|
|
3944
3995
|
gap: 4px;
|
|
@@ -4314,12 +4365,12 @@ ${to}${Et} {
|
|
|
4314
4365
|
__proto__: null,
|
|
4315
4366
|
default: Rd
|
|
4316
4367
|
}, Symbol.toStringTag, { value: "Module" })), Dd = `
|
|
4317
|
-
/* ---------------------------------------------------------------- 8.1
|
|
4368
|
+
/* ---------------------------------------------------------------- 8.1 menu */
|
|
4318
4369
|
|
|
4319
|
-
/* The dropdown: the foundation's cm-menu-surface (
|
|
4320
|
-
page's scheme, padding 8 0
|
|
4321
|
-
viewport clamp, whose max-height the Menu's size middleware
|
|
4322
|
-
hidden, as in Figma. */
|
|
4370
|
+
/* The dropdown: the foundation's cm-menu-surface (the page's scheme, or always dark with
|
|
4371
|
+
cm-menu-inverse; radius 13, elevation 400 from the page's scheme, padding 8 0) plus the
|
|
4372
|
+
menu's own width floor and the viewport clamp, whose max-height the Menu's size middleware
|
|
4373
|
+
writes. The native scrollbar is hidden, as in Figma. */
|
|
4323
4374
|
.cm-menu {
|
|
4324
4375
|
min-width: 152px;
|
|
4325
4376
|
overflow-y: auto;
|
|
@@ -4328,8 +4379,8 @@ ${to}${Et} {
|
|
|
4328
4379
|
.cm-menu::-webkit-scrollbar { display: none; }
|
|
4329
4380
|
|
|
4330
4381
|
/* Figma's scroll chevron rows: 24 tall, the menu's fill, a 5 x 3 chevron (the register's
|
|
4331
|
-
chevronUp / chevronDown polyline drawn in a 10px box; white
|
|
4332
|
-
|
|
4382
|
+
chevronUp / chevronDown polyline drawn in a 10px box; white on a dark menu, the menu's dark ink
|
|
4383
|
+
on a light one). src/components/overlays/overlayBehavior.ts sets data-cm-scroll-up / -down on a
|
|
4333
4384
|
clamped menu for each end it can still scroll towards, and scrolls it while one is hovered.
|
|
4334
4385
|
The rows are sticky pseudo elements laid over the first and last visible rows. */
|
|
4335
4386
|
.cm-menu[data-cm-scroll-up]::before,
|
|
@@ -4353,6 +4404,12 @@ ${to}${Et} {
|
|
|
4353
4404
|
margin-bottom: -8px;
|
|
4354
4405
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='4,6 8,10 12,6' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
|
|
4355
4406
|
}
|
|
4407
|
+
:where([data-mantine-color-scheme="light"]) .cm-menu:not(.cm-menu-inverse)[data-cm-scroll-up]::before {
|
|
4408
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='4,10 8,6 12,10' fill='none' stroke='%23000' stroke-opacity='.9' stroke-width='1.6'/%3E%3C/svg%3E");
|
|
4409
|
+
}
|
|
4410
|
+
:where([data-mantine-color-scheme="light"]) .cm-menu:not(.cm-menu-inverse)[data-cm-scroll-down]::after {
|
|
4411
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='4,6 8,10 12,6' fill='none' stroke='%23000' stroke-opacity='.9' stroke-width='1.6'/%3E%3C/svg%3E");
|
|
4412
|
+
}
|
|
4356
4413
|
|
|
4357
4414
|
/* A mount hook: overlayBehavior.ts listens for these animations' animationstart to see a
|
|
4358
4415
|
menu or tooltip appear, without observing the whole page. */
|
|
@@ -4365,15 +4422,12 @@ ${to}${Et} {
|
|
|
4365
4422
|
.cm-tooltip { animation: cm-tooltip-mount 1ms; }
|
|
4366
4423
|
.cm-tooltip:not([data-cm-seen]) { visibility: hidden; }
|
|
4367
4424
|
|
|
4368
|
-
/* A submenu is rendered inside its parent's dropdown, so the foundation's "children are dark"
|
|
4369
|
-
rule reaches it and would resolve its shadow dark in the light app. Its shadow follows the
|
|
4370
|
-
page like every other menu's. */
|
|
4371
|
-
:where([data-mantine-color-scheme="light"]) .cm-menu-surface > .cm-menu-surface { color-scheme: light; }
|
|
4372
4425
|
/* Menu.Sub draws its dropdown through a Popover, so the dropdown also carries the popover's
|
|
4373
|
-
classes (cm-popover-surface, cm-popover). The menu's
|
|
4426
|
+
classes (cm-popover-surface, cm-popover). The menu's surface, and its page shadow, win. */
|
|
4374
4427
|
.cm-menu-surface.cm-popover-surface {
|
|
4375
4428
|
background-color: var(--cm-bg-menu);
|
|
4376
4429
|
color: var(--cm-text-menu);
|
|
4430
|
+
box-shadow: var(--cm-menu-shadow);
|
|
4377
4431
|
padding: 8px 0;
|
|
4378
4432
|
}
|
|
4379
4433
|
|
|
@@ -4430,7 +4484,7 @@ ${to}${Et} {
|
|
|
4430
4484
|
background: var(--cm-bg-brand);
|
|
4431
4485
|
}
|
|
4432
4486
|
.cm-menu-item:focus,
|
|
4433
|
-
.cm-menu-item[aria-expanded="true"] { ${
|
|
4487
|
+
.cm-menu-item[aria-expanded="true"] { ${Ur} }
|
|
4434
4488
|
.cm-menu:has(> .cm-menu-item:hover) > .cm-menu-item:focus:not(:hover, [aria-expanded="true"])::before {
|
|
4435
4489
|
background: transparent;
|
|
4436
4490
|
}
|
|
@@ -4446,7 +4500,7 @@ ${to}${Et} {
|
|
|
4446
4500
|
|
|
4447
4501
|
/* Danger rows (color="red"): Mantine writes the color into the row's inline --menu-item-color;
|
|
4448
4502
|
the danger slots replace the menu's. ponytail: keyed on the inline style Mantine writes for
|
|
4449
|
-
color="red"; any other color keeps the menu's
|
|
4503
|
+
color="red"; any other color keeps the menu's ink. */
|
|
4450
4504
|
.cm-menu-item[style*="--mantine-color-red"] { color: var(--cm-text-danger); }
|
|
4451
4505
|
.cm-menu-item[style*="--mantine-color-red"]:is(:hover, :focus, [data-hovered])::before { background: var(--cm-bg-danger); }
|
|
4452
4506
|
.cm-menu-item[style*="--mantine-color-red"]:is(:hover, :focus, [data-hovered]) {
|
|
@@ -5411,7 +5465,7 @@ ${to}${Et} {
|
|
|
5411
5465
|
`, Fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5412
5466
|
__proto__: null,
|
|
5413
5467
|
default: Bd
|
|
5414
|
-
}, Symbol.toStringTag, { value: "Module" })), Co =
|
|
5468
|
+
}, Symbol.toStringTag, { value: "Module" })), Co = Ia("200").replace("0 0 .5px", "0 0 1px"), Eo = "light-dark(#000000, #ffffff)", Vd = `
|
|
5415
5469
|
/* ---- Card (C55; ls/panel-assets, ls/assets-component-tile-hover / -focus) --------------------- */
|
|
5416
5470
|
.cm-card {
|
|
5417
5471
|
background: transparent;
|
|
@@ -6763,32 +6817,32 @@ ${to}${Et} {
|
|
|
6763
6817
|
`, qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6764
6818
|
__proto__: null,
|
|
6765
6819
|
default: Gd
|
|
6766
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6767
|
-
`),
|
|
6820
|
+
}, Symbol.toStringTag, { value: "Module" })), Mn = /* @__PURE__ */ Object.assign({ "./css/00-foundation.css.ts": Nd, "./css/buttons.css.ts": Ed, "./css/chrome.css.ts": Id, "./css/color.css.ts": Od, "./css/inputs.css.ts": Md, "./css/overlays.css.ts": Hd, "./css/selection.css.ts": Fd, "./css/shell.css.ts": Ud, "./css/tree.css.ts": qd }), Wd = Object.keys(Mn).sort().map((e) => Mn[e].default).join(`
|
|
6821
|
+
`), Dn = "data-compact-mantine", Hn = "data-cm-contrast", nr = "data-cm-accent";
|
|
6768
6822
|
function jd(e = {}) {
|
|
6769
6823
|
const t = e.highContrast ? `
|
|
6770
|
-
${
|
|
6771
|
-
${
|
|
6824
|
+
${Fr(":root, :host")}` : "", r = e.accent === "graphty" ? `
|
|
6825
|
+
${Vr(":root, :host")}` : "";
|
|
6772
6826
|
return `${Wd}${t}${r}`;
|
|
6773
6827
|
}
|
|
6774
6828
|
let yt = null;
|
|
6775
6829
|
function qo(e = {}) {
|
|
6776
6830
|
if (typeof document > "u")
|
|
6777
6831
|
return;
|
|
6778
|
-
yt != null && yt.isConnected || (yt = document.head.querySelector(`style[${
|
|
6832
|
+
yt != null && yt.isConnected || (yt = document.head.querySelector(`style[${Dn}]`), yt || (yt = document.createElement("style"), yt.setAttribute(Dn, ""), yt.textContent = jd(), document.head.appendChild(yt)));
|
|
6779
6833
|
const t = e.highContrast ? "high" : "figma", r = document.documentElement;
|
|
6780
|
-
r.getAttribute(
|
|
6834
|
+
r.getAttribute(Hn) !== t && r.setAttribute(Hn, t);
|
|
6781
6835
|
}
|
|
6782
6836
|
function Yd(e) {
|
|
6783
6837
|
if (typeof document > "u")
|
|
6784
6838
|
return;
|
|
6785
6839
|
const t = document.documentElement;
|
|
6786
6840
|
if (e === "brand") {
|
|
6787
|
-
t.removeAttribute(
|
|
6841
|
+
t.removeAttribute(nr);
|
|
6788
6842
|
return;
|
|
6789
6843
|
}
|
|
6790
6844
|
const r = e === "graphty" ? "graphty" : "";
|
|
6791
|
-
t.getAttribute(
|
|
6845
|
+
t.getAttribute(nr) !== r && t.setAttribute(nr, r);
|
|
6792
6846
|
}
|
|
6793
6847
|
function Kd(e, t) {
|
|
6794
6848
|
const r = {};
|
|
@@ -6806,21 +6860,21 @@ function Xd(e) {
|
|
|
6806
6860
|
}
|
|
6807
6861
|
function Jd(e = {}) {
|
|
6808
6862
|
const t = { highContrast: e.highContrast ?? !1, accent: e.accent ?? "figma" };
|
|
6809
|
-
return qo(t),
|
|
6810
|
-
colors:
|
|
6863
|
+
return qo(t), nc({
|
|
6864
|
+
colors: Hc,
|
|
6811
6865
|
primaryColor: t.accent === "graphty" ? "graphty" : "brand",
|
|
6812
6866
|
primaryShade: { light: 6, dark: 8 },
|
|
6813
6867
|
white: "#ffffff",
|
|
6814
6868
|
black: "#000000",
|
|
6815
|
-
fontFamily:
|
|
6816
|
-
fontFamilyMonospace:
|
|
6817
|
-
headings: { fontFamily:
|
|
6818
|
-
fontSizes:
|
|
6819
|
-
lineHeights:
|
|
6820
|
-
spacing:
|
|
6821
|
-
radius:
|
|
6869
|
+
fontFamily: vr,
|
|
6870
|
+
fontFamilyMonospace: La,
|
|
6871
|
+
headings: { fontFamily: vr, fontWeight: "550" },
|
|
6872
|
+
fontSizes: Ps,
|
|
6873
|
+
lineHeights: Os,
|
|
6874
|
+
spacing: Rs,
|
|
6875
|
+
radius: Ms,
|
|
6822
6876
|
defaultRadius: "sm",
|
|
6823
|
-
shadows:
|
|
6877
|
+
shadows: Ds,
|
|
6824
6878
|
fontSmoothing: !0,
|
|
6825
6879
|
cursorType: "default",
|
|
6826
6880
|
// The ring is this package's own 1px one (the cm-focus-* classes, spec 2.7); Mantine's
|
|
@@ -6835,7 +6889,7 @@ function Jd(e = {}) {
|
|
|
6835
6889
|
components: Kd(vd, t)
|
|
6836
6890
|
});
|
|
6837
6891
|
}
|
|
6838
|
-
const Zd = Jd(), rh =
|
|
6892
|
+
const Zd = Jd(), rh = rc(xa, Zd), Qd = [
|
|
6839
6893
|
"#5B8FF9FF",
|
|
6840
6894
|
"#FF6B6BFF",
|
|
6841
6895
|
"#61D095FF",
|
|
@@ -6846,21 +6900,21 @@ const Zd = Jd(), rh = oc(ba, Zd), Qd = [
|
|
|
6846
6900
|
"#61D09580",
|
|
6847
6901
|
"#F7B73180",
|
|
6848
6902
|
"#9B59B680"
|
|
6849
|
-
], _d = "#888888",
|
|
6850
|
-
function
|
|
6851
|
-
return Math.round(Number.parseInt(e, 16) /
|
|
6903
|
+
], _d = "#888888", Xa = 255, Ja = 100;
|
|
6904
|
+
function Za(e) {
|
|
6905
|
+
return Math.round(Number.parseInt(e, 16) / Xa * Ja);
|
|
6852
6906
|
}
|
|
6853
|
-
function
|
|
6854
|
-
return Math.round(e /
|
|
6907
|
+
function Gr(e) {
|
|
6908
|
+
return Math.round(e / Ja * Xa).toString(16).padStart(2, "0");
|
|
6855
6909
|
}
|
|
6856
6910
|
function nh(e) {
|
|
6857
6911
|
let t = e.replace("#", "");
|
|
6858
6912
|
t.length === 3 ? t = `${t.split("").map((c) => c + c).join("")}ff` : t.length === 4 ? t = t.split("").map((c) => c + c).join("") : t.length === 6 && (t = `${t}ff`);
|
|
6859
|
-
const r = `#${t.slice(0, 6)}`, n = t.slice(6, 8), a =
|
|
6913
|
+
const r = `#${t.slice(0, 6)}`, n = t.slice(6, 8), a = Za(n);
|
|
6860
6914
|
return { hex: r, opacity: a };
|
|
6861
6915
|
}
|
|
6862
6916
|
function ah(e, t) {
|
|
6863
|
-
const r = e.replace("#", ""), n =
|
|
6917
|
+
const r = e.replace("#", ""), n = Gr(t);
|
|
6864
6918
|
return `#${r}${n}`;
|
|
6865
6919
|
}
|
|
6866
6920
|
function $d(e) {
|
|
@@ -6912,10 +6966,10 @@ function St(e) {
|
|
|
6912
6966
|
process.env.NODE_ENV === "production" || e === void 0 || t.current !== e && (t.current = e, console.warn(e));
|
|
6913
6967
|
}, [e]);
|
|
6914
6968
|
}
|
|
6915
|
-
function
|
|
6969
|
+
function qr({ color: e, variant: t }) {
|
|
6916
6970
|
const r = wt(e) ?? "#000000FF", n = r.slice(0, 7), a = !r.endsWith("FF");
|
|
6917
6971
|
return /* @__PURE__ */ o(
|
|
6918
|
-
|
|
6972
|
+
wa,
|
|
6919
6973
|
{
|
|
6920
6974
|
component: "span",
|
|
6921
6975
|
color: n,
|
|
@@ -6934,10 +6988,10 @@ function go(e) {
|
|
|
6934
6988
|
return e.currentTarget.dataset.cmReverting === "true";
|
|
6935
6989
|
}
|
|
6936
6990
|
const nu = 0, au = 100, iu = 0.5, cu = 10;
|
|
6937
|
-
function
|
|
6991
|
+
function ar(e) {
|
|
6938
6992
|
return Math.min(au, Math.max(nu, e));
|
|
6939
6993
|
}
|
|
6940
|
-
function
|
|
6994
|
+
function Qa({
|
|
6941
6995
|
value: e,
|
|
6942
6996
|
onCommit: t,
|
|
6943
6997
|
ariaLabel: r,
|
|
@@ -6958,7 +7012,7 @@ function Za({
|
|
|
6958
7012
|
h(l.format(e));
|
|
6959
7013
|
return;
|
|
6960
7014
|
}
|
|
6961
|
-
const E =
|
|
7015
|
+
const E = ar(z);
|
|
6962
7016
|
h(l.format(E)), E !== e && t(E, m);
|
|
6963
7017
|
}, N = (m) => {
|
|
6964
7018
|
if (m.key === "Enter") {
|
|
@@ -6973,7 +7027,7 @@ function Za({
|
|
|
6973
7027
|
}
|
|
6974
7028
|
if (m.key === "ArrowUp" || m.key === "ArrowDown") {
|
|
6975
7029
|
m.preventDefault();
|
|
6976
|
-
const z = (m.shiftKey ? cu : 1) * (m.key === "ArrowUp" ? 1 : -1), E = u(p), C =
|
|
7030
|
+
const z = (m.shiftKey ? cu : 1) * (m.key === "ArrowUp" ? 1 : -1), E = u(p), C = ar(Math.round((Number.isNaN(E) ? e : E) + z));
|
|
6977
7031
|
h(l.format(C)), C !== e && t(C, m);
|
|
6978
7032
|
}
|
|
6979
7033
|
}, f = (m) => {
|
|
@@ -6983,7 +7037,7 @@ function Za({
|
|
|
6983
7037
|
a || m.button > 0 || (m.preventDefault(), (z = k.current) == null || z.focus({ preventScroll: !0 }), "setPointerCapture" in m.currentTarget && m.currentTarget.setPointerCapture(m.pointerId), g.current = { startX: m.clientX, start: e, last: e }, f("ew-resize"));
|
|
6984
7038
|
}, T = (m) => {
|
|
6985
7039
|
const z = g.current;
|
|
6986
|
-
z !== null && (z.last =
|
|
7040
|
+
z !== null && (z.last = ar(Math.round(z.start + (m.clientX - z.startX) * iu)), h(l.format(z.last)));
|
|
6987
7041
|
}, A = (m) => {
|
|
6988
7042
|
const z = g.current;
|
|
6989
7043
|
z !== null && (g.current = null, f(""), z.last !== e && t(z.last, m));
|
|
@@ -7051,10 +7105,10 @@ function gt(e, t) {
|
|
|
7051
7105
|
return Math.min(t, Math.max(0, e));
|
|
7052
7106
|
}
|
|
7053
7107
|
function Dt(e) {
|
|
7054
|
-
return
|
|
7108
|
+
return Ta("hexa", e).toUpperCase();
|
|
7055
7109
|
}
|
|
7056
7110
|
function zo(e, t) {
|
|
7057
|
-
return t === "hex" ? Dt(e).slice(1, 7) : t === "hsb" ? [e.h, e.s, e.v].map((n) => Math.round(n)).join(", ") : (
|
|
7111
|
+
return t === "hex" ? Dt(e).slice(1, 7) : t === "hsb" ? [e.h, e.s, e.v].map((n) => Math.round(n)).join(", ") : (Ta(t, e).match(/[\d.]+/g) ?? []).map((n) => Math.round(Number(n))).join(", ");
|
|
7058
7112
|
}
|
|
7059
7113
|
function du(e, t, r) {
|
|
7060
7114
|
if (t === "hex") {
|
|
@@ -7070,9 +7124,9 @@ function du(e, t, r) {
|
|
|
7070
7124
|
if (t === "hsb")
|
|
7071
7125
|
return { h: gt(n[0], 360), s: gt(n[1], 100), v: gt(n[2], 100), a: r };
|
|
7072
7126
|
const a = t === "rgb" ? `rgb(${gt(n[0], 255)}, ${gt(n[1], 255)}, ${gt(n[2], 255)})` : `hsl(${gt(n[0], 360)}, ${gt(n[1], 100)}%, ${gt(n[2], 100)}%)`;
|
|
7073
|
-
return
|
|
7127
|
+
return cc(a) ? { ...co(a), a: r } : void 0;
|
|
7074
7128
|
}
|
|
7075
|
-
function
|
|
7129
|
+
function Bn(e, t, r) {
|
|
7076
7130
|
return (n) => {
|
|
7077
7131
|
const a = e === 1 ? 0.01 : 1, c = a * (n.shiftKey ? 10 : 1), s = {
|
|
7078
7132
|
ArrowRight: t + c,
|
|
@@ -7097,7 +7151,7 @@ function mu() {
|
|
|
7097
7151
|
/* @__PURE__ */ o("path", { d: "M4.5 4.5h2v7h-2zM7.5 4.5h1.5v7H7.5zM10 4.5h1v7h-1z", fill: "currentColor", opacity: "0.8" })
|
|
7098
7152
|
] });
|
|
7099
7153
|
}
|
|
7100
|
-
function
|
|
7154
|
+
function _a({
|
|
7101
7155
|
value: e,
|
|
7102
7156
|
onChange: t,
|
|
7103
7157
|
onChangeEnd: r,
|
|
@@ -7131,7 +7185,7 @@ function Qa({
|
|
|
7131
7185
|
h(S), g.current = S;
|
|
7132
7186
|
const W = y(n ? I : `${I.slice(0, 7)}FF`);
|
|
7133
7187
|
t(W), r == null || r(W);
|
|
7134
|
-
}, { ref: z } =
|
|
7188
|
+
}, { ref: z } = bc(
|
|
7135
7189
|
({ x: O, y: I }) => {
|
|
7136
7190
|
T({ ...g.current, s: O * 100, v: (1 - I) * 100 });
|
|
7137
7191
|
},
|
|
@@ -7146,7 +7200,7 @@ function Qa({
|
|
|
7146
7200
|
if (W === void 0)
|
|
7147
7201
|
return;
|
|
7148
7202
|
O.preventDefault();
|
|
7149
|
-
const { current: P } = g, D =
|
|
7203
|
+
const { current: P } = g, D = gc({ x: (P.s + W[0]) / 100, y: (P.v + W[1]) / 100 });
|
|
7150
7204
|
T({ ...P, s: D.x * 100, v: D.y * 100 }), A();
|
|
7151
7205
|
}, C = () => {
|
|
7152
7206
|
const O = du(N, k, g.current.a);
|
|
@@ -7157,13 +7211,13 @@ function Qa({
|
|
|
7157
7211
|
Dt(O) !== Dt(g.current) && (T(O), A());
|
|
7158
7212
|
}, H = typeof window > "u" ? void 0 : window.EyeDropper, j = () => {
|
|
7159
7213
|
H !== void 0 && new H().open().then((O) => {
|
|
7160
|
-
m(`${O.sRGBHex}${
|
|
7214
|
+
m(`${O.sRGBHex}${Gr(g.current.a * 100)}`);
|
|
7161
7215
|
}).catch(() => {
|
|
7162
7216
|
});
|
|
7163
7217
|
}, $ = Dt(p).slice(0, 7), M = Math.round(p.a * 100), ne = s !== void 0 && i === "gradient";
|
|
7164
7218
|
return /* @__PURE__ */ x("div", { className: "cm-color-picker", "data-testid": "color-picker-panel", children: [
|
|
7165
7219
|
s !== void 0 && /* @__PURE__ */ o("div", { className: "cm-color-picker-types", children: /* @__PURE__ */ o(
|
|
7166
|
-
|
|
7220
|
+
Lr,
|
|
7167
7221
|
{
|
|
7168
7222
|
variant: "loose",
|
|
7169
7223
|
"aria-label": u.paintType,
|
|
@@ -7226,7 +7280,7 @@ function Qa({
|
|
|
7226
7280
|
) }),
|
|
7227
7281
|
/* @__PURE__ */ x("div", { className: "cm-color-picker-slider-stack", children: [
|
|
7228
7282
|
/* @__PURE__ */ o(
|
|
7229
|
-
|
|
7283
|
+
ac,
|
|
7230
7284
|
{
|
|
7231
7285
|
"aria-label": u.hue,
|
|
7232
7286
|
"data-testid": "color-picker-hue",
|
|
@@ -7235,13 +7289,13 @@ function Qa({
|
|
|
7235
7289
|
T({ ...g.current, h: O });
|
|
7236
7290
|
},
|
|
7237
7291
|
onChangeEnd: A,
|
|
7238
|
-
onKeyDownCapture:
|
|
7292
|
+
onKeyDownCapture: Bn(360, Math.round(p.h), (O) => {
|
|
7239
7293
|
T({ ...g.current, h: O }), A();
|
|
7240
7294
|
})
|
|
7241
7295
|
}
|
|
7242
7296
|
),
|
|
7243
7297
|
n && /* @__PURE__ */ o(
|
|
7244
|
-
|
|
7298
|
+
ic,
|
|
7245
7299
|
{
|
|
7246
7300
|
"aria-label": u.opacity,
|
|
7247
7301
|
"data-testid": "color-picker-alpha",
|
|
@@ -7252,7 +7306,7 @@ function Qa({
|
|
|
7252
7306
|
T({ ...g.current, a: O });
|
|
7253
7307
|
},
|
|
7254
7308
|
onChangeEnd: A,
|
|
7255
|
-
onKeyDownCapture:
|
|
7309
|
+
onKeyDownCapture: Bn(1, p.a, (O) => {
|
|
7256
7310
|
T({ ...g.current, a: O }), A();
|
|
7257
7311
|
})
|
|
7258
7312
|
}
|
|
@@ -7261,7 +7315,7 @@ function Qa({
|
|
|
7261
7315
|
] }),
|
|
7262
7316
|
/* @__PURE__ */ x("div", { className: "cm-color-picker-values", children: [
|
|
7263
7317
|
/* @__PURE__ */ o(
|
|
7264
|
-
|
|
7318
|
+
Pr,
|
|
7265
7319
|
{
|
|
7266
7320
|
className: "cm-color-picker-format",
|
|
7267
7321
|
"aria-label": u.format,
|
|
@@ -7302,7 +7356,7 @@ function Qa({
|
|
|
7302
7356
|
}
|
|
7303
7357
|
),
|
|
7304
7358
|
n && /* @__PURE__ */ o(
|
|
7305
|
-
|
|
7359
|
+
Qa,
|
|
7306
7360
|
{
|
|
7307
7361
|
value: M,
|
|
7308
7362
|
ariaLabel: u.opacity,
|
|
@@ -7324,25 +7378,25 @@ function Qa({
|
|
|
7324
7378
|
onClick: () => {
|
|
7325
7379
|
m(O);
|
|
7326
7380
|
},
|
|
7327
|
-
children: /* @__PURE__ */ o(
|
|
7381
|
+
children: /* @__PURE__ */ o(qr, { color: O })
|
|
7328
7382
|
},
|
|
7329
7383
|
`${String(I)}-${O}`
|
|
7330
7384
|
)) })
|
|
7331
7385
|
] })
|
|
7332
7386
|
] });
|
|
7333
7387
|
}
|
|
7334
|
-
const
|
|
7388
|
+
const $a = It(null);
|
|
7335
7389
|
function pu() {
|
|
7336
|
-
return mt(
|
|
7390
|
+
return mt($a);
|
|
7337
7391
|
}
|
|
7338
7392
|
function hu({ children: e }) {
|
|
7339
7393
|
const t = Y(null), r = be(() => ({ anchorRef: t }), []);
|
|
7340
|
-
if (!
|
|
7394
|
+
if (!Na(e))
|
|
7341
7395
|
throw new Error("PopoutAnchor requires a single valid React element as its child");
|
|
7342
|
-
const a =
|
|
7396
|
+
const a = Rr(e, {
|
|
7343
7397
|
ref: t
|
|
7344
7398
|
});
|
|
7345
|
-
return /* @__PURE__ */ o(
|
|
7399
|
+
return /* @__PURE__ */ o($a.Provider, { value: r, children: a });
|
|
7346
7400
|
}
|
|
7347
7401
|
function fu({ children: e }) {
|
|
7348
7402
|
return /* @__PURE__ */ o(R, { className: "cm-popout-content", children: e });
|
|
@@ -7390,37 +7444,37 @@ function xu(e, t = !0) {
|
|
|
7390
7444
|
};
|
|
7391
7445
|
}, [e, t]);
|
|
7392
7446
|
}
|
|
7393
|
-
const
|
|
7447
|
+
const ei = It(null);
|
|
7394
7448
|
function ih({ id: e, children: t }) {
|
|
7395
|
-
return /* @__PURE__ */ o(
|
|
7449
|
+
return /* @__PURE__ */ o(ei.Provider, { value: e, children: t });
|
|
7396
7450
|
}
|
|
7397
7451
|
function vu() {
|
|
7398
|
-
return mt(
|
|
7452
|
+
return mt(ei);
|
|
7399
7453
|
}
|
|
7400
|
-
const
|
|
7454
|
+
const Wr = It(null), jr = It(null);
|
|
7401
7455
|
function jo() {
|
|
7402
|
-
const e = mt(
|
|
7456
|
+
const e = mt(Wr);
|
|
7403
7457
|
if (!e)
|
|
7404
7458
|
throw new Error("usePopoutContext must be used within a Popout component");
|
|
7405
7459
|
return e;
|
|
7406
7460
|
}
|
|
7407
|
-
function ei() {
|
|
7408
|
-
return mt(Gr);
|
|
7409
|
-
}
|
|
7410
7461
|
function ti() {
|
|
7411
|
-
|
|
7462
|
+
return mt(Wr);
|
|
7463
|
+
}
|
|
7464
|
+
function oi() {
|
|
7465
|
+
const e = mt(jr);
|
|
7412
7466
|
if (!e)
|
|
7413
7467
|
throw new Error("usePopoutManagerContext must be used within a PopoutManager");
|
|
7414
7468
|
return e;
|
|
7415
7469
|
}
|
|
7416
7470
|
function wu() {
|
|
7417
|
-
return mt(
|
|
7471
|
+
return mt(jr);
|
|
7418
7472
|
}
|
|
7419
7473
|
function ch() {
|
|
7420
|
-
const { closeAll: e, hasOpenPopouts: t } =
|
|
7474
|
+
const { closeAll: e, hasOpenPopouts: t } = oi();
|
|
7421
7475
|
return be(() => ({ closeAll: e, hasOpenPopouts: t }), [e, t]);
|
|
7422
7476
|
}
|
|
7423
|
-
function
|
|
7477
|
+
function ri({
|
|
7424
7478
|
children: e,
|
|
7425
7479
|
parentId: t = null,
|
|
7426
7480
|
opened: r,
|
|
@@ -7472,7 +7526,7 @@ function oi({
|
|
|
7472
7526
|
}),
|
|
7473
7527
|
[s, l, g, k, v, t, d, c]
|
|
7474
7528
|
);
|
|
7475
|
-
return /* @__PURE__ */ o(
|
|
7529
|
+
return /* @__PURE__ */ o(Wr.Provider, { value: N, children: e });
|
|
7476
7530
|
}
|
|
7477
7531
|
function yu({ children: e }) {
|
|
7478
7532
|
const [t, r] = he(null), n = Y([]), a = Y(/* @__PURE__ */ new Map()), c = Y(/* @__PURE__ */ new Map()), s = Y(/* @__PURE__ */ new Map()), i = Y(/* @__PURE__ */ new Set()), [d, l] = he(0), u = se(
|
|
@@ -7534,7 +7588,7 @@ function yu({ children: e }) {
|
|
|
7534
7588
|
n.current = n.current.filter((S) => S !== I), a.current.delete(I), c.current.delete(I), s.current.delete(I), i.current.delete(I), l((S) => S + 1);
|
|
7535
7589
|
}, []), f = se((I) => {
|
|
7536
7590
|
const S = n.current.indexOf(I);
|
|
7537
|
-
return S >= 0 ?
|
|
7591
|
+
return S >= 0 ? vn + S : vn;
|
|
7538
7592
|
}, []), y = se((I) => {
|
|
7539
7593
|
const S = n.current, W = S.indexOf(I);
|
|
7540
7594
|
W === -1 || W === S.length - 1 || (n.current = [...S.filter((P) => P !== I), I], l((P) => P + 1));
|
|
@@ -7627,13 +7681,13 @@ function yu({ children: e }) {
|
|
|
7627
7681
|
A
|
|
7628
7682
|
]
|
|
7629
7683
|
);
|
|
7630
|
-
return /* @__PURE__ */ x(
|
|
7684
|
+
return /* @__PURE__ */ x(jr.Provider, { value: O, children: [
|
|
7631
7685
|
e,
|
|
7632
7686
|
/* @__PURE__ */ o("div", { ref: r, "data-popout-portal-container": !0, style: { display: "contents" } })
|
|
7633
7687
|
] });
|
|
7634
7688
|
}
|
|
7635
7689
|
function At() {
|
|
7636
|
-
return
|
|
7690
|
+
return sc().dir;
|
|
7637
7691
|
}
|
|
7638
7692
|
function tt(e) {
|
|
7639
7693
|
return e === "rtl";
|
|
@@ -7647,7 +7701,7 @@ function Su(e, t, r) {
|
|
|
7647
7701
|
function Tu(e) {
|
|
7648
7702
|
return tt(e) ? { transform: "scaleX(-1)" } : {};
|
|
7649
7703
|
}
|
|
7650
|
-
const
|
|
7704
|
+
const Fn = 3;
|
|
7651
7705
|
function Au(e) {
|
|
7652
7706
|
const { isOpen: t, onPress: r, onDragStart: n, onDrag: a, onDragEnd: c } = e, [s, i] = he({ left: 0, top: 0 }), d = Y(!1), l = Y(!1), u = Y(!1), p = Y({
|
|
7653
7707
|
x: 0,
|
|
@@ -7682,7 +7736,7 @@ function Au(e) {
|
|
|
7682
7736
|
return;
|
|
7683
7737
|
const T = y.clientX - p.current.x, A = y.clientY - p.current.y;
|
|
7684
7738
|
if (!l.current) {
|
|
7685
|
-
if (!(Math.abs(T) >=
|
|
7739
|
+
if (!(Math.abs(T) >= Fn || Math.abs(A) >= Fn))
|
|
7686
7740
|
return;
|
|
7687
7741
|
l.current = !0, n == null || n(y);
|
|
7688
7742
|
}
|
|
@@ -7759,7 +7813,7 @@ function Nu({
|
|
|
7759
7813
|
] }),
|
|
7760
7814
|
n.length > 0 ? /* @__PURE__ */ o("div", { className: "cm-popout-actions", children: n.map((h) => /* @__PURE__ */ o(qe, { variant: "subtle", onClick: h.onClick, "aria-label": h.label, children: h.icon }, h.id)) }) : null,
|
|
7761
7815
|
/* @__PURE__ */ o(
|
|
7762
|
-
|
|
7816
|
+
zr,
|
|
7763
7817
|
{
|
|
7764
7818
|
"data-testid": "popout-header-close",
|
|
7765
7819
|
className: "cm-popout-close",
|
|
@@ -7769,10 +7823,10 @@ function Nu({
|
|
|
7769
7823
|
)
|
|
7770
7824
|
] });
|
|
7771
7825
|
}
|
|
7772
|
-
function
|
|
7826
|
+
function Vn(e, t = document) {
|
|
7773
7827
|
return e === null ? null : t.querySelector(`[data-popout-id="${e}"]`);
|
|
7774
7828
|
}
|
|
7775
|
-
function
|
|
7829
|
+
function Un(e, t, r) {
|
|
7776
7830
|
const { trigger: n, parent: a, panel: c } = r;
|
|
7777
7831
|
if (e !== void 0) {
|
|
7778
7832
|
if (typeof e == "object")
|
|
@@ -7795,7 +7849,7 @@ function Fn(e, t, r) {
|
|
|
7795
7849
|
function Cu(e, t) {
|
|
7796
7850
|
return e === "start" ? tt(t) ? "right" : "left" : e === "end" ? tt(t) ? "left" : "right" : e;
|
|
7797
7851
|
}
|
|
7798
|
-
function Eu(e, t, r =
|
|
7852
|
+
function Eu(e, t, r = ol, n = {}) {
|
|
7799
7853
|
const {
|
|
7800
7854
|
placement: a = "left",
|
|
7801
7855
|
alignment: c = "start",
|
|
@@ -7806,16 +7860,16 @@ function Eu(e, t, r = tl, n = {}) {
|
|
|
7806
7860
|
let l, u;
|
|
7807
7861
|
switch (a) {
|
|
7808
7862
|
case "left":
|
|
7809
|
-
l = e.left - t - r, u =
|
|
7863
|
+
l = e.left - t - r, u = Gn(i, c, s);
|
|
7810
7864
|
break;
|
|
7811
7865
|
case "right":
|
|
7812
|
-
l = e.right + r, u =
|
|
7866
|
+
l = e.right + r, u = Gn(i, c, s);
|
|
7813
7867
|
break;
|
|
7814
7868
|
case "top":
|
|
7815
|
-
l =
|
|
7869
|
+
l = qn(i, c, t, d), u = e.top - s - r;
|
|
7816
7870
|
break;
|
|
7817
7871
|
case "bottom":
|
|
7818
|
-
l =
|
|
7872
|
+
l = qn(i, c, t, d), u = e.bottom + r;
|
|
7819
7873
|
break;
|
|
7820
7874
|
default: {
|
|
7821
7875
|
const p = a;
|
|
@@ -7824,7 +7878,7 @@ function Eu(e, t, r = tl, n = {}) {
|
|
|
7824
7878
|
}
|
|
7825
7879
|
return { left: l, top: u };
|
|
7826
7880
|
}
|
|
7827
|
-
function
|
|
7881
|
+
function Gn(e, t, r) {
|
|
7828
7882
|
switch (t) {
|
|
7829
7883
|
case "start":
|
|
7830
7884
|
return e.top;
|
|
@@ -7838,7 +7892,7 @@ function Vn(e, t, r) {
|
|
|
7838
7892
|
}
|
|
7839
7893
|
}
|
|
7840
7894
|
}
|
|
7841
|
-
function
|
|
7895
|
+
function qn(e, t, r, n) {
|
|
7842
7896
|
switch (t) {
|
|
7843
7897
|
case "start":
|
|
7844
7898
|
return tt(n) ? e.right - r : e.left;
|
|
@@ -7886,7 +7940,7 @@ function Ou(e) {
|
|
|
7886
7940
|
onDragStart: g,
|
|
7887
7941
|
onDrag: k,
|
|
7888
7942
|
onDragEnd: v
|
|
7889
|
-
} = e, { isOpen: N, close: f, triggerRef: y, id: T, parentId: A, region: m, exclusive: z = !0 } = jo(), { getZIndex: E, portalContainer: C, register: H, unregister: j, bringToFront: $, closeDescendants: M } =
|
|
7943
|
+
} = e, { isOpen: N, close: f, triggerRef: y, id: T, parentId: A, region: m, exclusive: z = !0 } = jo(), { getZIndex: E, portalContainer: C, register: H, unregister: j, bringToFront: $, closeDescendants: M } = oi(), ne = pu(), O = At(), I = Pe(), S = `popout-panel-${T}`, W = `popout-title-${I}`, P = `popout-tabs-${I}`, [D, ee] = he(null), re = Y(!1), J = Y(null), X = Y(null), de = se(() => {
|
|
7890
7944
|
$(T);
|
|
7891
7945
|
}, [$, T]), { dragTriggerProps: le, dragOffset: Ae, resetDragOffset: We, hasDragged: K, consumeDragClick: me } = Au({
|
|
7892
7946
|
isOpen: N,
|
|
@@ -7894,7 +7948,7 @@ function Ou(e) {
|
|
|
7894
7948
|
onDragStart: g,
|
|
7895
7949
|
onDrag: k,
|
|
7896
7950
|
onDragEnd: v
|
|
7897
|
-
}), Se = (n == null ? void 0 : n.variant) === "tabs", fe = (n == null ? void 0 : n.variant) === "tabs" ? n : null, Ie = (fe == null ? void 0 : fe.defaultTab) ?? ((at = fe == null ? void 0 : fe.tabs[0]) == null ? void 0 : at.id), [Ne, F] = he(Ie), b = u ?? (A === null ? 0 :
|
|
7951
|
+
}), Se = (n == null ? void 0 : n.variant) === "tabs", fe = (n == null ? void 0 : n.variant) === "tabs" ? n : null, Ie = (fe == null ? void 0 : fe.defaultTab) ?? ((at = fe == null ? void 0 : fe.tabs[0]) == null ? void 0 : at.id), [Ne, F] = he(Ie), b = u ?? (A === null ? 0 : rl), V = se(
|
|
7898
7952
|
(ae, pe) => {
|
|
7899
7953
|
var Ee;
|
|
7900
7954
|
F(ae), (Ee = fe == null ? void 0 : fe.onTabChange) == null || Ee.call(fe, ae, pe);
|
|
@@ -7923,12 +7977,12 @@ function Ou(e) {
|
|
|
7923
7977
|
const Ce = se(() => {
|
|
7924
7978
|
const ae = {
|
|
7925
7979
|
trigger: y.current,
|
|
7926
|
-
parent:
|
|
7980
|
+
parent: Vn(A),
|
|
7927
7981
|
panel: (ne == null ? void 0 : ne.anchorRef.current) ?? null
|
|
7928
7982
|
};
|
|
7929
7983
|
return {
|
|
7930
|
-
inline:
|
|
7931
|
-
block:
|
|
7984
|
+
inline: Un(s, "x", ae),
|
|
7985
|
+
block: Un(i, "y", ae)
|
|
7932
7986
|
};
|
|
7933
7987
|
}, [y, A, ne, s, i]), Ue = se(() => {
|
|
7934
7988
|
var ht;
|
|
@@ -7948,7 +8002,7 @@ function Ou(e) {
|
|
|
7948
8002
|
}
|
|
7949
8003
|
Xe.left = (Xe.left - He.x) / He.scaleX, Xe.top = (Xe.top - He.y) / He.scaleY, ee((ce) => (ce == null ? void 0 : ce.left) === Xe.left && ce.top === Xe.top ? ce : Xe);
|
|
7950
8004
|
}, [Ce, t, r, d, l, b, O]);
|
|
7951
|
-
if (
|
|
8005
|
+
if (xc(() => {
|
|
7952
8006
|
if (!N) {
|
|
7953
8007
|
ee(null);
|
|
7954
8008
|
return;
|
|
@@ -7962,9 +8016,9 @@ function Ou(e) {
|
|
|
7962
8016
|
var Be;
|
|
7963
8017
|
ae === 0 && ((Be = J.current) == null || Be.setAttribute("data-cm-repositioning", ""), ae = requestAnimationFrame(() => {
|
|
7964
8018
|
var Fe;
|
|
7965
|
-
ae = 0,
|
|
8019
|
+
ae = 0, Sc(Ue), (Fe = J.current) == null || Fe.removeAttribute("data-cm-repositioning");
|
|
7966
8020
|
}));
|
|
7967
|
-
}, Ee = new ResizeObserver(pe), De = new MutationObserver(pe), { inline: Le, block: He } = Ce(), it = K ?
|
|
8021
|
+
}, Ee = new ResizeObserver(pe), De = new MutationObserver(pe), { inline: Le, block: He } = Ce(), it = K ? Vn(A) : null;
|
|
7968
8022
|
for (const Be of new Set([Le, He].filter((Fe) => Fe !== null)))
|
|
7969
8023
|
K && Be !== it || (Ee.observe(Be), De.observe(Be, { attributes: !0, attributeFilter: ["style", "class"] }));
|
|
7970
8024
|
const Ge = typeof document < "u" ? document.fonts : void 0;
|
|
@@ -8048,7 +8102,7 @@ function Ou(e) {
|
|
|
8048
8102
|
]
|
|
8049
8103
|
}
|
|
8050
8104
|
);
|
|
8051
|
-
return
|
|
8105
|
+
return kc(
|
|
8052
8106
|
/* @__PURE__ */ x(Z, { children: [
|
|
8053
8107
|
/* @__PURE__ */ o("div", { ref: X, "aria-hidden": "true", style: { position: "fixed", left: 0, top: 0 } }),
|
|
8054
8108
|
Nt
|
|
@@ -8067,10 +8121,10 @@ function Ru({ children: e, action: t = "toggle" }) {
|
|
|
8067
8121
|
},
|
|
8068
8122
|
[t, r, n]
|
|
8069
8123
|
);
|
|
8070
|
-
if (!
|
|
8124
|
+
if (!Na(e))
|
|
8071
8125
|
throw new Error("PopoutTrigger requires a single valid React element as its child");
|
|
8072
8126
|
const d = `popout-panel-${s}`, l = e;
|
|
8073
|
-
return
|
|
8127
|
+
return Rr(l, {
|
|
8074
8128
|
onClick: (u) => {
|
|
8075
8129
|
var p, h;
|
|
8076
8130
|
(h = (p = l.props).onClick) == null || h.call(p, u), i(u);
|
|
@@ -8085,8 +8139,8 @@ function Ru({ children: e, action: t = "toggle" }) {
|
|
|
8085
8139
|
});
|
|
8086
8140
|
}
|
|
8087
8141
|
function Mu({ children: e, opened: t, defaultOpened: r, onOpenChange: n }) {
|
|
8088
|
-
const a =
|
|
8089
|
-
return /* @__PURE__ */ o(
|
|
8142
|
+
const a = ti(), c = (a == null ? void 0 : a.id) ?? null;
|
|
8143
|
+
return /* @__PURE__ */ o(ri, { parentId: c, opened: t, defaultOpened: r, onOpenChange: n, children: e });
|
|
8090
8144
|
}
|
|
8091
8145
|
const lo = Object.assign(Mu, {
|
|
8092
8146
|
Trigger: Ru,
|
|
@@ -8111,7 +8165,7 @@ const lo = Object.assign(Mu, {
|
|
|
8111
8165
|
function Du({ children: e }) {
|
|
8112
8166
|
return /* @__PURE__ */ o(yu, { children: e });
|
|
8113
8167
|
}
|
|
8114
|
-
const Hu = L.BODY, Bu = 100,
|
|
8168
|
+
const Hu = L.BODY, Bu = 100, Wn = 9, ir = 7;
|
|
8115
8169
|
function lh({
|
|
8116
8170
|
color: e,
|
|
8117
8171
|
defaultColor: t,
|
|
@@ -8150,16 +8204,16 @@ function lh({
|
|
|
8150
8204
|
S(O(M));
|
|
8151
8205
|
}, [M]);
|
|
8152
8206
|
const W = (X) => {
|
|
8153
|
-
const de = X.length ===
|
|
8207
|
+
const de = X.length === Wn, le = X.slice(0, ir).toUpperCase(), Ae = de && d, We = Ae ? Za(X.slice(ir, Wn)) : E;
|
|
8154
8208
|
z(le), Ae && C(We), s == null || s(le, We);
|
|
8155
8209
|
}, P = (X) => {
|
|
8156
|
-
const de = I.trim().replace("#", ""), le = de.length === 3 || de.length === 6 ? wt(de) : void 0, Ae = le == null ? void 0 : le.slice(0,
|
|
8210
|
+
const de = I.trim().replace("#", ""), le = de.length === 3 || de.length === 6 ? wt(de) : void 0, Ae = le == null ? void 0 : le.slice(0, ir);
|
|
8157
8211
|
Ae !== void 0 && Ae !== M.toUpperCase() ? (z(Ae, X), s == null || s(Ae, E, X)) : S(O(M));
|
|
8158
8212
|
}, D = (X, de) => {
|
|
8159
8213
|
C(X, de), s == null || s(m, X, de);
|
|
8160
8214
|
}, ee = (X) => {
|
|
8161
8215
|
z(void 0, X), d && C(void 0, X), s == null || s(void 0, d ? void 0 : E, X);
|
|
8162
|
-
}, re = `${M}${
|
|
8216
|
+
}, re = `${M}${Gr(ne)}`.toUpperCase(), J = /* @__PURE__ */ x(
|
|
8163
8217
|
"div",
|
|
8164
8218
|
{
|
|
8165
8219
|
className: "cm-paint",
|
|
@@ -8185,7 +8239,7 @@ function lh({
|
|
|
8185
8239
|
disabled: l,
|
|
8186
8240
|
"aria-label": i === void 0 ? f.colorSwatch : f.pickColor(i),
|
|
8187
8241
|
"aria-describedby": T.describedBy,
|
|
8188
|
-
children: /* @__PURE__ */ o(
|
|
8242
|
+
children: /* @__PURE__ */ o(qr, { color: d ? re : M, variant: "field" })
|
|
8189
8243
|
}
|
|
8190
8244
|
) }),
|
|
8191
8245
|
/* @__PURE__ */ o(
|
|
@@ -8194,7 +8248,7 @@ function lh({
|
|
|
8194
8248
|
width: L.POPOVER_WIDTH,
|
|
8195
8249
|
header: { variant: "title", title: i ?? f.colorPanelTitle },
|
|
8196
8250
|
children: /* @__PURE__ */ o(
|
|
8197
|
-
|
|
8251
|
+
_a,
|
|
8198
8252
|
{
|
|
8199
8253
|
value: re,
|
|
8200
8254
|
onChange: W,
|
|
@@ -8235,7 +8289,7 @@ function lh({
|
|
|
8235
8289
|
}
|
|
8236
8290
|
),
|
|
8237
8291
|
d && /* @__PURE__ */ o(
|
|
8238
|
-
|
|
8292
|
+
Qa,
|
|
8239
8293
|
{
|
|
8240
8294
|
value: ne,
|
|
8241
8295
|
onCommit: D,
|
|
@@ -8283,8 +8337,8 @@ function lh({
|
|
|
8283
8337
|
);
|
|
8284
8338
|
}
|
|
8285
8339
|
function Oe() {
|
|
8286
|
-
const e =
|
|
8287
|
-
|
|
8340
|
+
const e = Aa().other.compact, t = e !== void 0, r = (e == null ? void 0 : e.highContrast) ?? !1;
|
|
8341
|
+
hc(() => {
|
|
8288
8342
|
t && qo({ highContrast: r });
|
|
8289
8343
|
}, [t, r]);
|
|
8290
8344
|
}
|
|
@@ -8317,10 +8371,10 @@ function dh({ label: e, actions: t, children: r }) {
|
|
|
8317
8371
|
/* @__PURE__ */ o(R, { "data-testid": "control-group-content", children: r })
|
|
8318
8372
|
] });
|
|
8319
8373
|
}
|
|
8320
|
-
function
|
|
8374
|
+
function ni({ open: e, rtl: t }) {
|
|
8321
8375
|
return e ? /* @__PURE__ */ o(xe, { name: "caretDown", size: L.CHEVRON }) : /* @__PURE__ */ o("span", { "data-caret": "closed", style: { display: "inline-flex", transform: t ? "scaleX(-1)" : void 0 }, children: /* @__PURE__ */ o(xe, { name: "caretRight", size: L.CHEVRON }) });
|
|
8322
8376
|
}
|
|
8323
|
-
const
|
|
8377
|
+
const jn = L.POPOVER_WIDTH, Fu = 4;
|
|
8324
8378
|
function Vu({ name: e, bubbleId: t }) {
|
|
8325
8379
|
const { isOpen: r, open: n, close: a } = jo();
|
|
8326
8380
|
return (
|
|
@@ -8351,8 +8405,8 @@ function Uu({
|
|
|
8351
8405
|
onOpenChange: a
|
|
8352
8406
|
}) {
|
|
8353
8407
|
var p;
|
|
8354
|
-
const c = ze(), s = Pe(), i = wu() !== null, d = ((p =
|
|
8355
|
-
|
|
8408
|
+
const c = ze(), s = Pe(), i = wu() !== null, d = ((p = ti()) == null ? void 0 : p.id) ?? null, l = c.about(t), u = /* @__PURE__ */ x(
|
|
8409
|
+
ri,
|
|
8356
8410
|
{
|
|
8357
8411
|
parentId: d,
|
|
8358
8412
|
opened: r,
|
|
@@ -8364,7 +8418,7 @@ function Uu({
|
|
|
8364
8418
|
/* @__PURE__ */ o(
|
|
8365
8419
|
lo.Panel,
|
|
8366
8420
|
{
|
|
8367
|
-
width:
|
|
8421
|
+
width: jn,
|
|
8368
8422
|
label: l,
|
|
8369
8423
|
placement: "bottom",
|
|
8370
8424
|
alignment: "start",
|
|
@@ -8372,7 +8426,7 @@ function Uu({
|
|
|
8372
8426
|
anchorX: "trigger",
|
|
8373
8427
|
anchorY: "trigger",
|
|
8374
8428
|
manageFocus: !1,
|
|
8375
|
-
children: /* @__PURE__ */ o(R, { id: s, w:
|
|
8429
|
+
children: /* @__PURE__ */ o(R, { id: s, w: jn, className: "cm-info-bubble", children: e })
|
|
8376
8430
|
}
|
|
8377
8431
|
)
|
|
8378
8432
|
]
|
|
@@ -8527,7 +8581,7 @@ function mh(e) {
|
|
|
8527
8581
|
"aria-describedby": j ? T : void 0,
|
|
8528
8582
|
onClick: $,
|
|
8529
8583
|
children: [
|
|
8530
|
-
/* @__PURE__ */ o(R, { "data-testid": "control-section-chevron-slot", className: "cm-section-chevron", children: /* @__PURE__ */ o(
|
|
8584
|
+
/* @__PURE__ */ o(R, { "data-testid": "control-section-chevron-slot", className: "cm-section-chevron", children: /* @__PURE__ */ o(ni, { open: A, rtl: tt(v) }) }),
|
|
8531
8585
|
O,
|
|
8532
8586
|
j && /* @__PURE__ */ o(
|
|
8533
8587
|
R,
|
|
@@ -8607,8 +8661,8 @@ function mh(e) {
|
|
|
8607
8661
|
function po(e) {
|
|
8608
8662
|
if ("key" in e)
|
|
8609
8663
|
return { source: "keyboard" };
|
|
8610
|
-
const t = e.nativeEvent;
|
|
8611
|
-
return
|
|
8664
|
+
const t = e.nativeEvent, r = "pointerType" in t ? t.pointerType : "";
|
|
8665
|
+
return { source: t.detail > 0 || r !== "" ? "pointer" : "keyboard" };
|
|
8612
8666
|
}
|
|
8613
8667
|
function Wu(e) {
|
|
8614
8668
|
const t = ze();
|
|
@@ -8654,7 +8708,7 @@ function Ku(e, t, r) {
|
|
|
8654
8708
|
const n = Math.min(t, r), a = Math.max(t, r);
|
|
8655
8709
|
return e.slice(n, a + 1);
|
|
8656
8710
|
}
|
|
8657
|
-
function
|
|
8711
|
+
function Cr(e, t) {
|
|
8658
8712
|
const r = new Set(e), n = [];
|
|
8659
8713
|
for (const a of r)
|
|
8660
8714
|
t.includes(a) || n.push(a);
|
|
@@ -8671,48 +8725,48 @@ function Xu(e) {
|
|
|
8671
8725
|
const d = a === void 0 ? -1 : t.indexOf(a);
|
|
8672
8726
|
if (c.extend && d !== -1) {
|
|
8673
8727
|
const l = Ku(t, d, r);
|
|
8674
|
-
return { selected: c.toggle ?
|
|
8728
|
+
return { selected: c.toggle ? Cr([...n, ...l], t) : l, anchor: a };
|
|
8675
8729
|
}
|
|
8676
8730
|
if (c.toggle) {
|
|
8677
8731
|
const l = new Set(n);
|
|
8678
|
-
return l.has(i) ? l.delete(i) : l.add(i), { selected:
|
|
8732
|
+
return l.has(i) ? l.delete(i) : l.add(i), { selected: Cr(l, t), anchor: i };
|
|
8679
8733
|
}
|
|
8680
8734
|
return { selected: [i], anchor: i };
|
|
8681
8735
|
}
|
|
8682
8736
|
function Ju(e, t, r) {
|
|
8683
|
-
return r !== "multiple" ? { selected: [...t], anchor: void 0 } : { selected:
|
|
8737
|
+
return r !== "multiple" ? { selected: [...t], anchor: void 0 } : { selected: Cr([...t, ...e], e), anchor: e[0] };
|
|
8684
8738
|
}
|
|
8685
|
-
function
|
|
8739
|
+
function Yn(e, t) {
|
|
8686
8740
|
return e == null ? "" : typeof e == "string" ? e : typeof e == "number" ? Number.isFinite(e) ? t.number.format(e) : "" : typeof e == "boolean" ? e ? t.yes : t.no : Number.isNaN(e.getTime()) ? "" : t.date.format(e);
|
|
8687
8741
|
}
|
|
8688
|
-
function
|
|
8742
|
+
function Kn(e) {
|
|
8689
8743
|
return e == null ? !0 : typeof e == "number" ? !Number.isFinite(e) : e instanceof Date && Number.isNaN(e.getTime());
|
|
8690
8744
|
}
|
|
8691
8745
|
function Zu(e, t) {
|
|
8692
8746
|
return e === t ? 0 : e ? 1 : -1;
|
|
8693
8747
|
}
|
|
8694
8748
|
function Qu(e, t, r) {
|
|
8695
|
-
const n =
|
|
8749
|
+
const n = Kn(e), a = Kn(t);
|
|
8696
8750
|
return n || a ? n && a ? 0 : n ? -1 : 1 : typeof e == "number" && typeof t == "number" ? e - t : typeof e == "boolean" && typeof t == "boolean" ? Zu(e, t) : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : r.compare(String(e), String(t));
|
|
8697
8751
|
}
|
|
8698
|
-
const _u =
|
|
8699
|
-
columnFilteringFeature:
|
|
8700
|
-
columnOrderingFeature:
|
|
8701
|
-
columnVisibilityFeature:
|
|
8702
|
-
filteredRowModel:
|
|
8703
|
-
globalFilteringFeature:
|
|
8704
|
-
rowSelectionFeature:
|
|
8705
|
-
rowSortingFeature:
|
|
8706
|
-
sortedRowModel:
|
|
8707
|
-
}), $u = 320, em = 8,
|
|
8708
|
-
function
|
|
8752
|
+
const _u = Ac({
|
|
8753
|
+
columnFilteringFeature: Lc,
|
|
8754
|
+
columnOrderingFeature: Ic,
|
|
8755
|
+
columnVisibilityFeature: zc,
|
|
8756
|
+
filteredRowModel: Oc(),
|
|
8757
|
+
globalFilteringFeature: Ec,
|
|
8758
|
+
rowSelectionFeature: Cc,
|
|
8759
|
+
rowSortingFeature: Nc,
|
|
8760
|
+
sortedRowModel: Pc()
|
|
8761
|
+
}), $u = 320, em = 8, Xn = L.ROW_PITCH, Lo = 1, cr = [], tm = [];
|
|
8762
|
+
function Jn(e) {
|
|
8709
8763
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
8710
8764
|
}
|
|
8711
|
-
function
|
|
8765
|
+
function Zn(e, t) {
|
|
8712
8766
|
return e == null || e === !1 ? t : /* @__PURE__ */ o(dt, { label: e, children: t });
|
|
8713
8767
|
}
|
|
8714
8768
|
function om(e, t) {
|
|
8715
|
-
var
|
|
8769
|
+
var nn, an, cn;
|
|
8716
8770
|
Oe();
|
|
8717
8771
|
const {
|
|
8718
8772
|
data: r,
|
|
@@ -8725,8 +8779,8 @@ function om(e, t) {
|
|
|
8725
8779
|
labelledBy: l,
|
|
8726
8780
|
labels: u,
|
|
8727
8781
|
height: p = $u,
|
|
8728
|
-
rowHeight: h =
|
|
8729
|
-
headerHeight: g =
|
|
8782
|
+
rowHeight: h = Xn,
|
|
8783
|
+
headerHeight: g = Xn,
|
|
8730
8784
|
overscan: k = em,
|
|
8731
8785
|
selectionMode: v = "multiple",
|
|
8732
8786
|
selectedIds: N,
|
|
@@ -8757,7 +8811,7 @@ function om(e, t) {
|
|
|
8757
8811
|
), [me, Se] = ye({
|
|
8758
8812
|
value: N,
|
|
8759
8813
|
defaultValue: f,
|
|
8760
|
-
finalValue:
|
|
8814
|
+
finalValue: cr,
|
|
8761
8815
|
onChange: (w, B) => {
|
|
8762
8816
|
y == null || y([...w], B);
|
|
8763
8817
|
}
|
|
@@ -8771,14 +8825,14 @@ function om(e, t) {
|
|
|
8771
8825
|
}), [Ne, F] = ye({
|
|
8772
8826
|
value: z,
|
|
8773
8827
|
defaultValue: E,
|
|
8774
|
-
finalValue:
|
|
8828
|
+
finalValue: cr,
|
|
8775
8829
|
onChange: (w, B) => {
|
|
8776
8830
|
C == null || C([...w], B);
|
|
8777
8831
|
}
|
|
8778
8832
|
}), [b, V] = ye({
|
|
8779
8833
|
value: H,
|
|
8780
8834
|
defaultValue: j,
|
|
8781
|
-
finalValue:
|
|
8835
|
+
finalValue: cr,
|
|
8782
8836
|
onChange: (w, B) => {
|
|
8783
8837
|
$ == null || $([...w], B);
|
|
8784
8838
|
}
|
|
@@ -8830,7 +8884,7 @@ function om(e, t) {
|
|
|
8830
8884
|
for (const B of me)
|
|
8831
8885
|
w[B] = !0;
|
|
8832
8886
|
return w;
|
|
8833
|
-
}, [me]), pe = be(() => [...b], [b]), Ee = Y(void 0), De = n !== void 0, Le = De ? a : 0, He =
|
|
8887
|
+
}, [me]), pe = be(() => [...b], [b]), Ee = Y(void 0), De = n !== void 0, Le = De ? a : 0, He = Tc({
|
|
8834
8888
|
features: _u,
|
|
8835
8889
|
data: Me,
|
|
8836
8890
|
columns: _e,
|
|
@@ -8848,7 +8902,7 @@ function om(e, t) {
|
|
|
8848
8902
|
if (!(ue != null && ue.columnIds.includes(B)))
|
|
8849
8903
|
return !1;
|
|
8850
8904
|
const ke = Q.get(B);
|
|
8851
|
-
return ke === void 0 ? !1 :
|
|
8905
|
+
return ke === void 0 ? !1 : Yn(ke.value(w.original), K).toLocaleLowerCase(de).includes(ue.query);
|
|
8852
8906
|
},
|
|
8853
8907
|
state: {
|
|
8854
8908
|
sorting: at,
|
|
@@ -8880,18 +8934,18 @@ function om(e, t) {
|
|
|
8880
8934
|
}, Fe = [
|
|
8881
8935
|
...Ge.filter((w) => Be(w.id)),
|
|
8882
8936
|
...Ge.filter((w) => !Be(w.id))
|
|
8883
|
-
], Ke = n ?? it.length, pt = Fe.length, Xe = be(() => it.map((w) => w.id), [it]), ht = Y(null), ce = Y(null), Ve =
|
|
8937
|
+
], Ke = n ?? it.length, pt = Fe.length, Xe = be(() => it.map((w) => w.id), [it]), ht = Y(null), ce = Y(null), Ve = Ea({
|
|
8884
8938
|
count: Ke,
|
|
8885
8939
|
getScrollElement: () => ht.current,
|
|
8886
8940
|
estimateSize: () => h,
|
|
8887
8941
|
gap: Lo,
|
|
8888
8942
|
getItemKey: (w) => Xe[w - Le] ?? w,
|
|
8889
8943
|
overscan: k
|
|
8890
|
-
}), ct = Ve.getVirtualItems(), Qt = ((
|
|
8944
|
+
}), ct = Ve.getVirtualItems(), Qt = ((nn = ct[0]) == null ? void 0 : nn.index) ?? 0, _t = (((an = ct.at(-1)) == null ? void 0 : an.index) ?? -1) + 1;
|
|
8891
8945
|
we(() => {
|
|
8892
8946
|
c == null || c(Qt, _t);
|
|
8893
8947
|
}, [Qt, _t]);
|
|
8894
|
-
const [
|
|
8948
|
+
const [Jr, qt] = he({ row: je, column: 0 }), [yi, Zr] = he(null), et = be(() => Yu(Jr, { rowCount: Ke, columnCount: pt }), [Jr, Ke, pt]), Yo = Y(!1), Ko = Y(void 0), Qr = (w) => {
|
|
8895
8949
|
w.row >= 0 && Ve.scrollToIndex(w.row), Yo.current = !0, qt((B) => Io(B, w) ? B : w);
|
|
8896
8950
|
};
|
|
8897
8951
|
mo(() => {
|
|
@@ -8901,10 +8955,10 @@ function om(e, t) {
|
|
|
8901
8955
|
const w = `[data-grid-row="${et.row}"][data-grid-column="${et.column}"]`, B = (G = ce.current) == null ? void 0 : G.querySelector(w);
|
|
8902
8956
|
B instanceof HTMLElement && (Yo.current = !1, B.focus());
|
|
8903
8957
|
});
|
|
8904
|
-
const
|
|
8958
|
+
const _r = (w, B) => {
|
|
8905
8959
|
Ko.current = w.anchor, !(w.selected.length === me.length && w.selected.every((ue, ke) => ue === me[ke])) && Se(w.selected, B);
|
|
8906
8960
|
}, vo = (w, B, G) => {
|
|
8907
|
-
|
|
8961
|
+
_r(
|
|
8908
8962
|
Xu({
|
|
8909
8963
|
ids: Xe,
|
|
8910
8964
|
index: w - Le,
|
|
@@ -8915,39 +8969,39 @@ function om(e, t) {
|
|
|
8915
8969
|
}),
|
|
8916
8970
|
G
|
|
8917
8971
|
);
|
|
8918
|
-
},
|
|
8972
|
+
}, $r = (w, B, G) => {
|
|
8919
8973
|
const ue = it[w - Le];
|
|
8920
8974
|
ue !== void 0 && (S == null || S(ue.original, B, G));
|
|
8921
|
-
},
|
|
8975
|
+
}, ki = (w, B) => {
|
|
8922
8976
|
w.getCanSort() && (Ee.current = B, w.toggleSorting(void 0, B.shiftKey && w.getCanMultiSort()), Ee.current = void 0);
|
|
8923
|
-
},
|
|
8977
|
+
}, Si = () => {
|
|
8924
8978
|
var G;
|
|
8925
8979
|
const w = ((G = ht.current) == null ? void 0 : G.clientHeight) ?? 0, B = Math.floor((w === 0 ? h * 10 : w) / h);
|
|
8926
8980
|
return Math.max(1, B - 1);
|
|
8927
|
-
},
|
|
8981
|
+
}, Ti = (w) => {
|
|
8928
8982
|
var Je, Pt;
|
|
8929
8983
|
if (!(w.target instanceof Node) || ((Je = ce.current) == null ? void 0 : Je.contains(w.target)) !== !0)
|
|
8930
8984
|
return;
|
|
8931
8985
|
const B = et.row === je ? Fe[et.column] : void 0;
|
|
8932
8986
|
if (B !== void 0 && ((Pt = Q.get(B.id)) == null ? void 0 : Pt.menu) !== void 0 && (w.altKey && w.key === "ArrowDown" || w.shiftKey && w.key === "F10" || w.key === "ContextMenu")) {
|
|
8933
|
-
w.preventDefault(), w.stopPropagation(),
|
|
8987
|
+
w.preventDefault(), w.stopPropagation(), Zr(B.id);
|
|
8934
8988
|
return;
|
|
8935
8989
|
}
|
|
8936
8990
|
const G = v === "multiple", ue = w.ctrlKey || w.metaKey;
|
|
8937
8991
|
if (G && ue && (w.key === "a" || w.key === "A")) {
|
|
8938
|
-
w.preventDefault(),
|
|
8992
|
+
w.preventDefault(), _r(Ju(Xe, me, v), w);
|
|
8939
8993
|
return;
|
|
8940
8994
|
}
|
|
8941
8995
|
if (et.row >= 0 && (w.key === " " || w.key === "Enter")) {
|
|
8942
|
-
w.preventDefault(), w.key === " " ? vo(et.row, { extend: w.shiftKey, toggle: !w.shiftKey }, w) : (vo(et.row, { extend: !1, toggle: !1 }, w),
|
|
8996
|
+
w.preventDefault(), w.key === " " ? vo(et.row, { extend: w.shiftKey, toggle: !w.shiftKey }, w) : (vo(et.row, { extend: !1, toggle: !1 }, w), $r(et.row, w, { source: "keyboard" }));
|
|
8943
8997
|
return;
|
|
8944
8998
|
}
|
|
8945
|
-
const ke = ju(et, w.key, { rowCount: Ke, columnCount: pt, pageSize:
|
|
8999
|
+
const ke = ju(et, w.key, { rowCount: Ke, columnCount: pt, pageSize: Si() }, X, {
|
|
8946
9000
|
jumpToEnd: ue
|
|
8947
9001
|
});
|
|
8948
|
-
ke !== void 0 && (w.preventDefault(),
|
|
9002
|
+
ke !== void 0 && (w.preventDefault(), Qr(ke), G && w.shiftKey && ke.row >= 0 && ke.row !== et.row && vo(ke.row, { extend: !0, toggle: !1 }, w));
|
|
8949
9003
|
};
|
|
8950
|
-
|
|
9004
|
+
fc(
|
|
8951
9005
|
t,
|
|
8952
9006
|
() => ({
|
|
8953
9007
|
scrollToRow: (w) => {
|
|
@@ -8967,7 +9021,7 @@ function om(e, t) {
|
|
|
8967
9021
|
}),
|
|
8968
9022
|
[He, Ve, Ke, Se]
|
|
8969
9023
|
);
|
|
8970
|
-
const
|
|
9024
|
+
const Ai = Fe.reduce(
|
|
8971
9025
|
(w, B) => {
|
|
8972
9026
|
var G;
|
|
8973
9027
|
return w + (((G = Q.get(B.id)) == null ? void 0 : G.width) ?? L.FIELD);
|
|
@@ -8979,17 +9033,17 @@ function om(e, t) {
|
|
|
8979
9033
|
for (const B of Fe) {
|
|
8980
9034
|
if (!Be(B.id))
|
|
8981
9035
|
break;
|
|
8982
|
-
Xo.push(w), w += (((
|
|
9036
|
+
Xo.push(w), w += (((cn = Q.get(B.id)) == null ? void 0 : cn.width) ?? L.FIELD) + Lo;
|
|
8983
9037
|
}
|
|
8984
9038
|
}
|
|
8985
|
-
const
|
|
9039
|
+
const en = (w, B) => {
|
|
8986
9040
|
const G = (w == null ? void 0 : w.width) ?? L.FIELD, ue = B < Xo.length ? { position: "sticky", insetInlineStart: Xo[B], zIndex: 1 } : {};
|
|
8987
9041
|
return {
|
|
8988
9042
|
flex: B === pt - 1 ? `1 1 ${String(G)}px` : `0 0 ${String(G)}px`,
|
|
8989
9043
|
justifyContent: (w == null ? void 0 : w.align) === "end" ? "flex-end" : "flex-start",
|
|
8990
9044
|
...ue
|
|
8991
9045
|
};
|
|
8992
|
-
},
|
|
9046
|
+
}, tn = v !== "none", on = n ?? r.length, rn = J.rowsShown(le.format(Ke), le.format(on)), Ni = () => re !== void 0 ? re : on === 0 ? J.noRows : J.noMatchingRows;
|
|
8993
9047
|
return /* @__PURE__ */ x(
|
|
8994
9048
|
R,
|
|
8995
9049
|
{
|
|
@@ -9036,13 +9090,13 @@ function om(e, t) {
|
|
|
9036
9090
|
"aria-hidden": "true",
|
|
9037
9091
|
dir: "auto",
|
|
9038
9092
|
className: "cm-dt-count",
|
|
9039
|
-
children:
|
|
9093
|
+
children: rn
|
|
9040
9094
|
}
|
|
9041
9095
|
)
|
|
9042
9096
|
] }),
|
|
9043
9097
|
/* @__PURE__ */ x(nt, { role: "status", "aria-live": "polite", dir: "auto", "data-testid": "data-table-status", children: [
|
|
9044
|
-
|
|
9045
|
-
|
|
9098
|
+
rn,
|
|
9099
|
+
tn && me.length > 0 ? ` ${J.rowsSelected(le.format(me.length))}` : ""
|
|
9046
9100
|
] }),
|
|
9047
9101
|
/* @__PURE__ */ x(R, { ref: ht, "data-testid": "data-table-viewport", className: "cm-dt-viewport", style: { height: p }, children: [
|
|
9048
9102
|
/* @__PURE__ */ x(
|
|
@@ -9055,14 +9109,14 @@ function om(e, t) {
|
|
|
9055
9109
|
"aria-rowcount": Ke + 1,
|
|
9056
9110
|
"aria-colcount": pt,
|
|
9057
9111
|
"aria-multiselectable": v === "multiple" ? !0 : void 0,
|
|
9058
|
-
onKeyDown:
|
|
9112
|
+
onKeyDown: Ti,
|
|
9059
9113
|
stickyHeader: !0,
|
|
9060
9114
|
tabularNums: !0,
|
|
9061
9115
|
withRowBorders: !1,
|
|
9062
9116
|
horizontalSpacing: 0,
|
|
9063
9117
|
verticalSpacing: 0,
|
|
9064
9118
|
className: "cm-dt-table",
|
|
9065
|
-
style: { minWidth:
|
|
9119
|
+
style: { minWidth: Ai + Lo * (pt + 1) },
|
|
9066
9120
|
children: [
|
|
9067
9121
|
/* @__PURE__ */ o(Ot.Thead, { className: "cm-dt-head", children: /* @__PURE__ */ o(Ot.Tr, { role: "row", "aria-rowindex": 1, className: "cm-dt-row", style: { height: g }, children: Fe.map((w, B) => {
|
|
9068
9122
|
const G = Q.get(w.id), ue = w.getCanSort(), ke = w.getIsSorted(), Je = et.row === je && et.column === B, Pt = ke === !1 ? -1 : w.getSortIndex(), wo = Je ? 0 : -1, Wt = (G == null ? void 0 : G.menu) !== void 0 && G.menu !== null, yo = /* @__PURE__ */ x(Z, { children: [
|
|
@@ -9097,7 +9151,7 @@ function om(e, t) {
|
|
|
9097
9151
|
{
|
|
9098
9152
|
className: "cm-sort-caret",
|
|
9099
9153
|
"data-testid": "data-table-sort-glyph",
|
|
9100
|
-
"data-direction":
|
|
9154
|
+
"data-direction": Jn(ke),
|
|
9101
9155
|
"aria-hidden": "true",
|
|
9102
9156
|
children: /* @__PURE__ */ o(xe, { name: "caretDown", size: L.CHEVRON })
|
|
9103
9157
|
}
|
|
@@ -9123,7 +9177,7 @@ function om(e, t) {
|
|
|
9123
9177
|
scope: "col",
|
|
9124
9178
|
"data-testid": "data-table-header",
|
|
9125
9179
|
"aria-colindex": B + 1,
|
|
9126
|
-
"aria-sort": ue ?
|
|
9180
|
+
"aria-sort": ue ? Jn(ke) : void 0,
|
|
9127
9181
|
"data-grid-row": ue ? void 0 : je,
|
|
9128
9182
|
"data-grid-column": ue ? void 0 : B,
|
|
9129
9183
|
tabIndex: ue ? void 0 : wo,
|
|
@@ -9134,9 +9188,9 @@ function om(e, t) {
|
|
|
9134
9188
|
(ft) => Io(ft, { row: je, column: B }) ? ft : { row: je, column: B }
|
|
9135
9189
|
);
|
|
9136
9190
|
},
|
|
9137
|
-
style: { ...
|
|
9191
|
+
style: { ...en(G, B), gap: L.GUTTER / 2 },
|
|
9138
9192
|
children: [
|
|
9139
|
-
ue ?
|
|
9193
|
+
ue ? Zn(
|
|
9140
9194
|
G == null ? void 0 : G.headerTooltip,
|
|
9141
9195
|
// A cell holding one control puts
|
|
9142
9196
|
// the tab stop on the control, so a
|
|
@@ -9152,7 +9206,7 @@ function om(e, t) {
|
|
|
9152
9206
|
"data-grid-column": B,
|
|
9153
9207
|
tabIndex: wo,
|
|
9154
9208
|
onClick: (ft) => {
|
|
9155
|
-
qt({ row: je, column: B }),
|
|
9209
|
+
qt({ row: je, column: B }), ki(w, ft);
|
|
9156
9210
|
},
|
|
9157
9211
|
onFocus: () => {
|
|
9158
9212
|
qt(
|
|
@@ -9169,11 +9223,11 @@ function om(e, t) {
|
|
|
9169
9223
|
Wt && /* @__PURE__ */ x(
|
|
9170
9224
|
Re,
|
|
9171
9225
|
{
|
|
9172
|
-
opened:
|
|
9226
|
+
opened: yi === w.id,
|
|
9173
9227
|
onChange: (ft) => {
|
|
9174
|
-
|
|
9228
|
+
Zr(ft ? w.id : null);
|
|
9175
9229
|
const Jo = document.activeElement;
|
|
9176
|
-
!ft && (Jo === null || Jo === document.body || Jo.closest('[role="menu"]') !== null) &&
|
|
9230
|
+
!ft && (Jo === null || Jo === document.body || Jo.closest('[role="menu"]') !== null) && Qr({ row: je, column: B });
|
|
9177
9231
|
},
|
|
9178
9232
|
returnFocus: !1,
|
|
9179
9233
|
position: "bottom-end",
|
|
@@ -9184,7 +9238,7 @@ function om(e, t) {
|
|
|
9184
9238
|
variant: "subtle",
|
|
9185
9239
|
size: L.CONTROL_HEIGHT,
|
|
9186
9240
|
tabIndex: -1,
|
|
9187
|
-
"aria-label": (J.columnMenu ??
|
|
9241
|
+
"aria-label": (J.columnMenu ?? Ka.columnMenu)(
|
|
9188
9242
|
(G == null ? void 0 : G.header) ?? w.id
|
|
9189
9243
|
),
|
|
9190
9244
|
"data-testid": "data-table-header-menu",
|
|
@@ -9200,7 +9254,7 @@ function om(e, t) {
|
|
|
9200
9254
|
},
|
|
9201
9255
|
w.id
|
|
9202
9256
|
);
|
|
9203
|
-
return ue ? st : /* @__PURE__ */ o(Ye.Fragment, { children:
|
|
9257
|
+
return ue ? st : /* @__PURE__ */ o(Ye.Fragment, { children: Zn(G == null ? void 0 : G.headerTooltip, st) }, w.id);
|
|
9204
9258
|
}) }) }),
|
|
9205
9259
|
/* @__PURE__ */ o(Ot.Tbody, { style: { display: "block", position: "relative", height: Ve.getTotalSize() }, children: ct.map((w) => {
|
|
9206
9260
|
const B = it[w.index - Le];
|
|
@@ -9215,7 +9269,7 @@ function om(e, t) {
|
|
|
9215
9269
|
"data-index": w.index,
|
|
9216
9270
|
"data-selected": G ? "true" : void 0,
|
|
9217
9271
|
"aria-rowindex": w.index + 2,
|
|
9218
|
-
"aria-selected":
|
|
9272
|
+
"aria-selected": tn ? G : void 0,
|
|
9219
9273
|
onDoubleClick: (ue) => {
|
|
9220
9274
|
W == null || W(B.original, ue);
|
|
9221
9275
|
},
|
|
@@ -9232,7 +9286,7 @@ function om(e, t) {
|
|
|
9232
9286
|
transform: `translateY(${String(w.start)}px)`
|
|
9233
9287
|
},
|
|
9234
9288
|
children: Fe.map((ue, ke) => {
|
|
9235
|
-
const Je = Q.get(ue.id), Pt = et.row === w.index && et.column === ke, wo = Je == null ? void 0 : Je.value(B.original), Wt =
|
|
9289
|
+
const Je = Q.get(ue.id), Pt = et.row === w.index && et.column === ke, wo = Je == null ? void 0 : Je.value(B.original), Wt = Yn(wo, K), yo = (Je == null ? void 0 : Je.cell) === void 0 ? /* @__PURE__ */ o("span", { className: "cm-dt-text", dir: "auto", children: Wt }) : Je.cell(B.original);
|
|
9236
9290
|
return /* @__PURE__ */ o(
|
|
9237
9291
|
Ot.Td,
|
|
9238
9292
|
{
|
|
@@ -9257,9 +9311,9 @@ function om(e, t) {
|
|
|
9257
9311
|
toggle: st.metaKey || st.ctrlKey
|
|
9258
9312
|
},
|
|
9259
9313
|
st
|
|
9260
|
-
),
|
|
9314
|
+
), $r(w.index, st, po(st));
|
|
9261
9315
|
},
|
|
9262
|
-
style:
|
|
9316
|
+
style: en(Je, ke),
|
|
9263
9317
|
children: yo
|
|
9264
9318
|
},
|
|
9265
9319
|
ue.id
|
|
@@ -9272,7 +9326,7 @@ function om(e, t) {
|
|
|
9272
9326
|
]
|
|
9273
9327
|
}
|
|
9274
9328
|
),
|
|
9275
|
-
Ke === 0 && /* @__PURE__ */ o(R, { "data-testid": "data-table-empty", className: "cm-dt-empty", children:
|
|
9329
|
+
Ke === 0 && /* @__PURE__ */ o(R, { "data-testid": "data-table-empty", className: "cm-dt-empty", children: Ni() })
|
|
9276
9330
|
] })
|
|
9277
9331
|
]
|
|
9278
9332
|
}
|
|
@@ -9292,14 +9346,14 @@ function Bo(e, t) {
|
|
|
9292
9346
|
function nm() {
|
|
9293
9347
|
return [Bo(0, "#6366F1"), Bo(1, "#06B6D4")];
|
|
9294
9348
|
}
|
|
9295
|
-
const am = 2, im = 5, lt = 100, oo = 360, cm = 90,
|
|
9349
|
+
const am = 2, im = 5, lt = 100, oo = 360, cm = 90, ai = 10, sm = {
|
|
9296
9350
|
flip: "Flip gradient",
|
|
9297
9351
|
rotate: "Rotate gradient 90 degrees"
|
|
9298
9352
|
};
|
|
9299
|
-
function
|
|
9353
|
+
function sr(e) {
|
|
9300
9354
|
return Math.min(lt, Math.max(0, e));
|
|
9301
9355
|
}
|
|
9302
|
-
function
|
|
9356
|
+
function Qn({
|
|
9303
9357
|
value: e,
|
|
9304
9358
|
format: t,
|
|
9305
9359
|
normalize: r,
|
|
@@ -9360,7 +9414,7 @@ function Jn({
|
|
|
9360
9414
|
});
|
|
9361
9415
|
else if (v.key === "ArrowUp" || v.key === "ArrowDown") {
|
|
9362
9416
|
v.preventDefault();
|
|
9363
|
-
const N = (v.shiftKey ?
|
|
9417
|
+
const N = (v.shiftKey ? ai : 1) * (v.key === "ArrowUp" ? 1 : -1);
|
|
9364
9418
|
g(e + N, v);
|
|
9365
9419
|
}
|
|
9366
9420
|
}
|
|
@@ -9488,7 +9542,7 @@ function hh({
|
|
|
9488
9542
|
b !== void 0 && b.length > 0 && b[Math.min(F, b.length - 1)].focus();
|
|
9489
9543
|
}, [f]);
|
|
9490
9544
|
const ne = (F) => p.percent(g.format(F)), O = (F) => p.degrees(g.format(F)), I = (F, b) => C.current.map(
|
|
9491
|
-
(V, oe) => oe === F ? { ...V, offset:
|
|
9545
|
+
(V, oe) => oe === F ? { ...V, offset: sr(b) / lt } : V
|
|
9492
9546
|
), S = (F, b) => {
|
|
9493
9547
|
s == null || s(), y(F, b), C.current = F, i == null || i(F, T);
|
|
9494
9548
|
}, W = (F) => {
|
|
@@ -9507,7 +9561,7 @@ function hh({
|
|
|
9507
9561
|
const b = F.currentTarget.getBoundingClientRect();
|
|
9508
9562
|
if (b.width === 0)
|
|
9509
9563
|
return;
|
|
9510
|
-
const V = Math.round(
|
|
9564
|
+
const V = Math.round(sr((F.clientX - b.left) / b.width * lt)) / lt, oe = [...f].sort((Me, _e) => Me.offset - _e.offset), _ = oe.find((Me) => Me.offset >= V) ?? oe[oe.length - 1], Q = [...oe].reverse().find((Me) => Me.offset <= V) ?? oe[0], ie = _.offset - Q.offset, Ce = ie > 0 ? ou(Q.color, _.color, (V - Q.offset) / ie) : Q.color, Ue = Bo(V, Ce);
|
|
9511
9565
|
z(Ue.id), y(
|
|
9512
9566
|
[...f, Ue].sort((Me, _e) => Me.offset - _e.offset),
|
|
9513
9567
|
F
|
|
@@ -9526,7 +9580,7 @@ function hh({
|
|
|
9526
9580
|
}, J = () => {
|
|
9527
9581
|
j.current !== null && (j.current = null, i == null || i(C.current, T));
|
|
9528
9582
|
}, X = (F, b) => {
|
|
9529
|
-
const V = f[F].offset * lt, oe = b.shiftKey ?
|
|
9583
|
+
const V = f[F].offset * lt, oe = b.shiftKey ? ai : 1, _ = {
|
|
9530
9584
|
ArrowRight: V + oe,
|
|
9531
9585
|
ArrowUp: V + oe,
|
|
9532
9586
|
ArrowLeft: V - oe,
|
|
@@ -9577,7 +9631,7 @@ function hh({
|
|
|
9577
9631
|
}
|
|
9578
9632
|
),
|
|
9579
9633
|
/* @__PURE__ */ o(
|
|
9580
|
-
|
|
9634
|
+
Qn,
|
|
9581
9635
|
{
|
|
9582
9636
|
className: "cm-field cm-gradient-angle",
|
|
9583
9637
|
role: "spinbutton",
|
|
@@ -9667,7 +9721,7 @@ function hh({
|
|
|
9667
9721
|
)
|
|
9668
9722
|
] }),
|
|
9669
9723
|
E !== void 0 && /* @__PURE__ */ o(
|
|
9670
|
-
|
|
9724
|
+
_a,
|
|
9671
9725
|
{
|
|
9672
9726
|
value: E.color,
|
|
9673
9727
|
withAlpha: !1,
|
|
@@ -9706,14 +9760,14 @@ function hh({
|
|
|
9706
9760
|
},
|
|
9707
9761
|
children: [
|
|
9708
9762
|
/* @__PURE__ */ o(
|
|
9709
|
-
|
|
9763
|
+
Qn,
|
|
9710
9764
|
{
|
|
9711
9765
|
className: "cm-field cm-gradient-position",
|
|
9712
9766
|
ariaLabel: p.colorStopPosition(V),
|
|
9713
9767
|
testId: "gradient-editor-stop-position",
|
|
9714
9768
|
value: Math.round(F.offset * lt),
|
|
9715
9769
|
format: ne,
|
|
9716
|
-
normalize: (_) => Math.round(
|
|
9770
|
+
normalize: (_) => Math.round(sr(_)),
|
|
9717
9771
|
onCommit: (_, Q) => {
|
|
9718
9772
|
S(I(b, _), Q);
|
|
9719
9773
|
}
|
|
@@ -9731,7 +9785,7 @@ function hh({
|
|
|
9731
9785
|
onClick: () => {
|
|
9732
9786
|
z(F.id);
|
|
9733
9787
|
},
|
|
9734
|
-
children: /* @__PURE__ */ o(
|
|
9788
|
+
children: /* @__PURE__ */ o(qr, { color: F.color, variant: "field" })
|
|
9735
9789
|
}
|
|
9736
9790
|
),
|
|
9737
9791
|
/* @__PURE__ */ o(
|
|
@@ -9773,18 +9827,18 @@ function mm({
|
|
|
9773
9827
|
...r
|
|
9774
9828
|
}) {
|
|
9775
9829
|
return /* @__PURE__ */ o(
|
|
9776
|
-
|
|
9830
|
+
Or,
|
|
9777
9831
|
{
|
|
9778
9832
|
...r,
|
|
9779
9833
|
viewportProps: e ? { tabIndex: 0, ...t } : t
|
|
9780
9834
|
}
|
|
9781
9835
|
);
|
|
9782
9836
|
}
|
|
9783
|
-
const fh = Object.assign(mm, { Autosize:
|
|
9837
|
+
const fh = Object.assign(mm, { Autosize: Or.Autosize });
|
|
9784
9838
|
function bh(e) {
|
|
9785
|
-
const t =
|
|
9839
|
+
const t = lc();
|
|
9786
9840
|
return /* @__PURE__ */ o(
|
|
9787
|
-
|
|
9841
|
+
Lr,
|
|
9788
9842
|
{
|
|
9789
9843
|
"aria-labelledby": t == null ? void 0 : t.labelId,
|
|
9790
9844
|
"aria-describedby": t == null ? void 0 : t.describedBy,
|
|
@@ -9792,7 +9846,7 @@ function bh(e) {
|
|
|
9792
9846
|
}
|
|
9793
9847
|
);
|
|
9794
9848
|
}
|
|
9795
|
-
const
|
|
9849
|
+
const lr = 4, pm = `${String(L.TOGGLE_PITCH)}px`;
|
|
9796
9850
|
function gh({
|
|
9797
9851
|
label: e,
|
|
9798
9852
|
checked: t,
|
|
@@ -9839,7 +9893,7 @@ function gh({
|
|
|
9839
9893
|
disabledReason: c,
|
|
9840
9894
|
extraDescriptions: s ? [f] : void 0
|
|
9841
9895
|
}), T = /* @__PURE__ */ o(
|
|
9842
|
-
|
|
9896
|
+
Ir,
|
|
9843
9897
|
{
|
|
9844
9898
|
variant: "neutral",
|
|
9845
9899
|
"data-testid": "toggle-with-content-checkbox",
|
|
@@ -9863,13 +9917,13 @@ function gh({
|
|
|
9863
9917
|
"data-checked": g ? "true" : "false",
|
|
9864
9918
|
"data-disabled": a ? "true" : void 0,
|
|
9865
9919
|
"data-bound": s ? "true" : void 0,
|
|
9866
|
-
style: { display: "flex", flexDirection: "column", gap:
|
|
9920
|
+
style: { display: "flex", flexDirection: "column", gap: lr },
|
|
9867
9921
|
children: [
|
|
9868
9922
|
s ? /* @__PURE__ */ x(
|
|
9869
9923
|
R,
|
|
9870
9924
|
{
|
|
9871
9925
|
"data-testid": "toggle-with-content-row",
|
|
9872
|
-
style: { display: "flex", alignItems: "center", gap:
|
|
9926
|
+
style: { display: "flex", alignItems: "center", gap: lr },
|
|
9873
9927
|
children: [
|
|
9874
9928
|
T,
|
|
9875
9929
|
/* @__PURE__ */ o(
|
|
@@ -9898,7 +9952,7 @@ function gh({
|
|
|
9898
9952
|
style: {
|
|
9899
9953
|
display: "flex",
|
|
9900
9954
|
flexDirection: "column",
|
|
9901
|
-
gap:
|
|
9955
|
+
gap: lr,
|
|
9902
9956
|
// Logical, so the revealed controls indent from the
|
|
9903
9957
|
// edge the reader starts at in both directions.
|
|
9904
9958
|
paddingInlineStart: L.GUTTER
|
|
@@ -9970,7 +10024,7 @@ function xh({
|
|
|
9970
10024
|
);
|
|
9971
10025
|
}
|
|
9972
10026
|
let ao = null;
|
|
9973
|
-
const
|
|
10027
|
+
const _n = () => {
|
|
9974
10028
|
ao = null;
|
|
9975
10029
|
}, vh = Qe(function({
|
|
9976
10030
|
checked: t,
|
|
@@ -9989,7 +10043,7 @@ const Zn = () => {
|
|
|
9989
10043
|
...k
|
|
9990
10044
|
}, v) {
|
|
9991
10045
|
const [N, f] = ye({ value: t, defaultValue: r, finalValue: !1, onChange: n }), y = Y(!1), T = (E) => {
|
|
9992
|
-
p == null || p(E), !(E.button !== 0 || l) && (y.current = !0, E.currentTarget.hasPointerCapture(E.pointerId) && E.currentTarget.releasePointerCapture(E.pointerId), ao = !N, globalThis.addEventListener("pointerup",
|
|
10046
|
+
p == null || p(E), !(E.button !== 0 || l) && (y.current = !0, E.currentTarget.hasPointerCapture(E.pointerId) && E.currentTarget.releasePointerCapture(E.pointerId), ao = !N, globalThis.addEventListener("pointerup", _n, { once: !0 }), globalThis.addEventListener("pointercancel", _n, { once: !0 }), f(!N));
|
|
9993
10047
|
}, A = (E) => {
|
|
9994
10048
|
h == null || h(E), !(ao === null || (E.buttons & 1) === 0 || l || N === ao) && f(ao);
|
|
9995
10049
|
}, m = (E) => {
|
|
@@ -10015,12 +10069,12 @@ const Zn = () => {
|
|
|
10015
10069
|
}
|
|
10016
10070
|
);
|
|
10017
10071
|
return d ? /* @__PURE__ */ o(dt, { label: a, children: z }) : z;
|
|
10018
|
-
}),
|
|
10072
|
+
}), dr = /* @__PURE__ */ new Set(["+", "-", "*", "/", "(", ")"]);
|
|
10019
10073
|
function hm(e, t = Number) {
|
|
10020
10074
|
const r = [];
|
|
10021
10075
|
let n = "";
|
|
10022
10076
|
for (const l of e)
|
|
10023
|
-
|
|
10077
|
+
dr.has(l) || /\s/.test(l) ? (n && (r.push(n), n = ""), dr.has(l) && r.push(l)) : n += l;
|
|
10024
10078
|
if (n && r.push(n), r.length === 0)
|
|
10025
10079
|
return null;
|
|
10026
10080
|
let a = 0;
|
|
@@ -10036,7 +10090,7 @@ function hm(e, t = Number) {
|
|
|
10036
10090
|
const p = d();
|
|
10037
10091
|
return r[a++] !== ")" && c(), p;
|
|
10038
10092
|
}
|
|
10039
|
-
if (l === void 0 ||
|
|
10093
|
+
if (l === void 0 || dr.has(l))
|
|
10040
10094
|
return c();
|
|
10041
10095
|
const u = t(l);
|
|
10042
10096
|
return Number.isNaN(u) ? c() : u;
|
|
@@ -10066,15 +10120,15 @@ function bm(e, t, r) {
|
|
|
10066
10120
|
return t !== void 0 && n < t && (n = t), r !== void 0 && n > r && (n = r), n;
|
|
10067
10121
|
}
|
|
10068
10122
|
const gm = 0.5;
|
|
10069
|
-
function
|
|
10123
|
+
function ur(e) {
|
|
10070
10124
|
for (const t of [document.documentElement, document.body])
|
|
10071
10125
|
t.style.cursor = e ? "ew-resize" : "";
|
|
10072
10126
|
}
|
|
10073
|
-
function
|
|
10127
|
+
function ii(e, t, r) {
|
|
10074
10128
|
const n = Y(!1), a = Y(!1), c = Y(0), s = Y(0), i = Y(r);
|
|
10075
10129
|
if (i.current = r, we(
|
|
10076
10130
|
() => () => {
|
|
10077
|
-
a.current &&
|
|
10131
|
+
a.current && ur(!1);
|
|
10078
10132
|
},
|
|
10079
10133
|
[]
|
|
10080
10134
|
), !e)
|
|
@@ -10082,7 +10136,7 @@ function ai(e, t, r) {
|
|
|
10082
10136
|
const d = (l) => {
|
|
10083
10137
|
var u, p, h;
|
|
10084
10138
|
if (n.current && (n.current = !1, a.current)) {
|
|
10085
|
-
a.current = !1,
|
|
10139
|
+
a.current = !1, ur(!1), (p = (u = i.current).onEnd) == null || p.call(u, l);
|
|
10086
10140
|
const g = (h = l.currentTarget.closest(".cm-input-wrapper")) == null ? void 0 : h.querySelector("input");
|
|
10087
10141
|
g && !g.disabled && (g.focus({ preventScroll: !0 }), requestAnimationFrame(() => {
|
|
10088
10142
|
g.select();
|
|
@@ -10107,7 +10161,7 @@ function ai(e, t, r) {
|
|
|
10107
10161
|
const u = l.clientX - s.current;
|
|
10108
10162
|
if (u === 0)
|
|
10109
10163
|
return;
|
|
10110
|
-
s.current = l.clientX, a.current || (a.current = !0,
|
|
10164
|
+
s.current = l.clientX, a.current || (a.current = !0, ur(!0), (g = (h = i.current).onStart) == null || g.call(h, l));
|
|
10111
10165
|
const p = t ? -1 : 1;
|
|
10112
10166
|
(v = (k = i.current).onMove) == null || v.call(k, p * u, p * (l.clientX - c.current), l);
|
|
10113
10167
|
},
|
|
@@ -10116,7 +10170,7 @@ function ai(e, t, r) {
|
|
|
10116
10170
|
onLostPointerCapture: d
|
|
10117
10171
|
};
|
|
10118
10172
|
}
|
|
10119
|
-
function
|
|
10173
|
+
function ci(e) {
|
|
10120
10174
|
const { value: t, display: r, onCommit: n, parse: a, suffix: c, min: s, max: i, step: d = 1, decimalScale: l, locked: u = !1 } = e, p = e.format ?? String, [h, g] = he(null), k = Y(null), v = (C) => {
|
|
10121
10175
|
k.current = C, g(C);
|
|
10122
10176
|
}, N = Y(!1), f = Y(0), y = Y(null), T = (C) => {
|
|
@@ -10190,7 +10244,7 @@ function ii(e) {
|
|
|
10190
10244
|
}
|
|
10191
10245
|
}, editing: h !== null };
|
|
10192
10246
|
}
|
|
10193
|
-
function
|
|
10247
|
+
function $n(e) {
|
|
10194
10248
|
return "separator" in e;
|
|
10195
10249
|
}
|
|
10196
10250
|
const wh = Qe(function(t, r) {
|
|
@@ -10213,7 +10267,7 @@ const wh = Qe(function(t, r) {
|
|
|
10213
10267
|
openLabel: y = "Open list",
|
|
10214
10268
|
className: T,
|
|
10215
10269
|
style: A
|
|
10216
|
-
} = t, m = Go(), z = At(), [E, C] = ye({ value: a, defaultValue: c, finalValue: "", onChange: s }), [H, j] = he(null), [$, M] = he(void 0), ne = Y(null), O =
|
|
10270
|
+
} = t, m = Go(), z = At(), [E, C] = ye({ value: a, defaultValue: c, finalValue: "", onChange: s }), [H, j] = he(null), [$, M] = he(void 0), ne = Y(null), O = vc(r, ne), I = ho(), S = dc({
|
|
10217
10271
|
onDropdownOpen: () => {
|
|
10218
10272
|
requestAnimationFrame(() => {
|
|
10219
10273
|
S.getSelectedOptionIndex() === -1 && S.selectActiveOption(), M(W());
|
|
@@ -10225,7 +10279,7 @@ const wh = Qe(function(t, r) {
|
|
|
10225
10279
|
}), W = () => {
|
|
10226
10280
|
var K;
|
|
10227
10281
|
return ((K = document.querySelector(`[id="${I}"] [data-combobox-selected]`)) == null ? void 0 : K.id) || void 0;
|
|
10228
|
-
}, P = String(E), D = d && P !== "" ? m(P) : Number.NaN, ee =
|
|
10282
|
+
}, P = String(E), D = d && P !== "" ? m(P) : Number.NaN, ee = ci({
|
|
10229
10283
|
value: Number.isNaN(D) ? null : D,
|
|
10230
10284
|
display: P,
|
|
10231
10285
|
onCommit: (K, me) => {
|
|
@@ -10236,7 +10290,7 @@ const wh = Qe(function(t, r) {
|
|
|
10236
10290
|
max: u,
|
|
10237
10291
|
step: p,
|
|
10238
10292
|
locked: N
|
|
10239
|
-
}), re =
|
|
10293
|
+
}), re = ii(d && g !== void 0 && !N, tt(z), ee.scrub), J = (K, me) => {
|
|
10240
10294
|
const Se = d ? m(K) : K;
|
|
10241
10295
|
S.closeDropdown(), j(null), !(typeof Se == "number" && Number.isNaN(Se)) && Se !== E && C(Se, me);
|
|
10242
10296
|
}, X = (K) => {
|
|
@@ -10249,7 +10303,7 @@ const wh = Qe(function(t, r) {
|
|
|
10249
10303
|
ArrowUp: Se(() => S.selectPreviousOption()),
|
|
10250
10304
|
Home: () => S.selectFirstOption(),
|
|
10251
10305
|
End: () => {
|
|
10252
|
-
S.selectOption(i.filter((Ne) =>
|
|
10306
|
+
S.selectOption(i.filter((Ne) => !$n(Ne)).length - 1);
|
|
10253
10307
|
}
|
|
10254
10308
|
}[K.key];
|
|
10255
10309
|
return Ie ? (K.preventDefault(), Ie(), M(W()), !0) : K.key === "Enter" ? (K.preventDefault(), S.getSelectedOptionIndex() !== -1 ? S.clickSelectedOption() : S.closeDropdown(), !0) : K.key === "Escape" ? (K.preventDefault(), K.stopPropagation(), S.closeDropdown(), !0) : !1;
|
|
@@ -10293,7 +10347,7 @@ const wh = Qe(function(t, r) {
|
|
|
10293
10347
|
var K;
|
|
10294
10348
|
(K = ne.current) == null || K.focus(), S.toggleDropdown();
|
|
10295
10349
|
},
|
|
10296
|
-
children: /* @__PURE__ */ o(
|
|
10350
|
+
children: /* @__PURE__ */ o(Hr, {})
|
|
10297
10351
|
}
|
|
10298
10352
|
)
|
|
10299
10353
|
] });
|
|
@@ -10304,7 +10358,7 @@ const wh = Qe(function(t, r) {
|
|
|
10304
10358
|
onOptionSubmit: (K) => {
|
|
10305
10359
|
J(K);
|
|
10306
10360
|
},
|
|
10307
|
-
...
|
|
10361
|
+
...Dr(),
|
|
10308
10362
|
keepMounted: !1,
|
|
10309
10363
|
disabled: N,
|
|
10310
10364
|
children: [
|
|
@@ -10335,7 +10389,7 @@ const wh = Qe(function(t, r) {
|
|
|
10335
10389
|
}
|
|
10336
10390
|
) }),
|
|
10337
10391
|
/* @__PURE__ */ o(Ht.Dropdown, { className: "cm-menu-surface cm-menu cm-listbox", children: /* @__PURE__ */ o(Ht.Options, { id: I, "aria-label": n, children: i.map(
|
|
10338
|
-
(K, me) =>
|
|
10392
|
+
(K, me) => $n(K) ? /* @__PURE__ */ o("hr", { className: "cm-listbox-separator" }, `separator-${String(me)}`) : /* @__PURE__ */ x(
|
|
10339
10393
|
Ht.Option,
|
|
10340
10394
|
{
|
|
10341
10395
|
value: K.value,
|
|
@@ -10345,7 +10399,7 @@ const wh = Qe(function(t, r) {
|
|
|
10345
10399
|
"data-checked": K.value === P || void 0,
|
|
10346
10400
|
className: "cm-menu-row cm-listbox-option",
|
|
10347
10401
|
children: [
|
|
10348
|
-
/* @__PURE__ */ o(
|
|
10402
|
+
/* @__PURE__ */ o(Ua, {}),
|
|
10349
10403
|
/* @__PURE__ */ o("span", { className: "cm-listbox-label", children: K.label ?? K.value })
|
|
10350
10404
|
]
|
|
10351
10405
|
},
|
|
@@ -10414,7 +10468,7 @@ const wh = Qe(function(t, r) {
|
|
|
10414
10468
|
leftSection: /* @__PURE__ */ o("span", { className: "cm-search-icon", "aria-hidden": "true", children: /* @__PURE__ */ o(xe, { name: "search", size: xm }) }),
|
|
10415
10469
|
leftSectionPointerEvents: "none",
|
|
10416
10470
|
rightSection: T !== "" && !v ? /* @__PURE__ */ o(
|
|
10417
|
-
|
|
10471
|
+
uc.ClearButton,
|
|
10418
10472
|
{
|
|
10419
10473
|
"aria-label": d ?? y.clearSearch,
|
|
10420
10474
|
onMouseDown: (M) => {
|
|
@@ -10539,7 +10593,7 @@ ${r}`, A = n === void 0 ? null : /* @__PURE__ */ o(
|
|
|
10539
10593
|
}
|
|
10540
10594
|
);
|
|
10541
10595
|
}
|
|
10542
|
-
const
|
|
10596
|
+
const ea = { x: 3, y: -5 }, km = 500;
|
|
10543
10597
|
function Sh({ target: e, children: t, onChange: r, ...n }) {
|
|
10544
10598
|
const [a, c] = he(null), s = Y({ x: 0, y: 0 }), i = Y(null), d = Y(-1 / 0), l = Y(null), u = a !== null, p = (f, y) => {
|
|
10545
10599
|
i.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, s.current = { x: f, y }, c({ x: f, y }), r == null || r(!0);
|
|
@@ -10560,7 +10614,7 @@ function Sh({ target: e, children: t, onChange: r, ...n }) {
|
|
|
10560
10614
|
}, [u, a]);
|
|
10561
10615
|
const g = (f) => {
|
|
10562
10616
|
var y, T;
|
|
10563
|
-
(T = (y = e.props).onContextMenu) == null || T.call(y, f), !f.defaultPrevented && (f.preventDefault(), !(performance.now() - d.current < km) && p(f.clientX +
|
|
10617
|
+
(T = (y = e.props).onContextMenu) == null || T.call(y, f), !f.defaultPrevented && (f.preventDefault(), !(performance.now() - d.current < km) && p(f.clientX + ea.x, f.clientY + ea.y));
|
|
10564
10618
|
}, k = (f) => {
|
|
10565
10619
|
var y, T;
|
|
10566
10620
|
if ((T = (y = e.props).onKeyDown) == null || T.call(y, f), !f.defaultPrevented && (f.shiftKey && f.key === "F10" || f.key === "ContextMenu")) {
|
|
@@ -10570,7 +10624,7 @@ function Sh({ target: e, children: t, onChange: r, ...n }) {
|
|
|
10570
10624
|
}
|
|
10571
10625
|
}, { x: v, y: N } = a ?? s.current;
|
|
10572
10626
|
return /* @__PURE__ */ x(Z, { children: [
|
|
10573
|
-
|
|
10627
|
+
Rr(e, { onContextMenu: g, onKeyDown: k }),
|
|
10574
10628
|
/* @__PURE__ */ x(
|
|
10575
10629
|
Re,
|
|
10576
10630
|
{
|
|
@@ -10619,7 +10673,7 @@ function Ah({ className: e, ...t }) {
|
|
|
10619
10673
|
}
|
|
10620
10674
|
const Sm = Qe(function({ message: t, icon: r, action: n, withCloseButton: a = !1, onClose: c, closeLabel: s = "Dismiss", ...i }, d) {
|
|
10621
10675
|
return /* @__PURE__ */ x(
|
|
10622
|
-
|
|
10676
|
+
Sa,
|
|
10623
10677
|
{
|
|
10624
10678
|
ref: d,
|
|
10625
10679
|
role: "group",
|
|
@@ -10633,7 +10687,7 @@ const Sm = Qe(function({ message: t, icon: r, action: n, withCloseButton: a = !1
|
|
|
10633
10687
|
r,
|
|
10634
10688
|
t
|
|
10635
10689
|
] }),
|
|
10636
|
-
n ? /* @__PURE__ */ o(
|
|
10690
|
+
n ? /* @__PURE__ */ o(va, { variant: "default", className: "cm-toast-action", onClick: n.onClick, children: n.label }) : null
|
|
10637
10691
|
]
|
|
10638
10692
|
}
|
|
10639
10693
|
);
|
|
@@ -10649,7 +10703,7 @@ function Cm(e) {
|
|
|
10649
10703
|
function Em(e) {
|
|
10650
10704
|
return typeof e == "object" && e !== null && "message" in e;
|
|
10651
10705
|
}
|
|
10652
|
-
const
|
|
10706
|
+
const si = It(null);
|
|
10653
10707
|
function Nh({ children: e, bottom: t = 76, zIndex: r }) {
|
|
10654
10708
|
const [n, a] = he(null), c = Y(void 0), s = Y(0), i = se(() => {
|
|
10655
10709
|
clearTimeout(c.current), a(null);
|
|
@@ -10672,15 +10726,15 @@ function Nh({ children: e, bottom: t = 76, zIndex: r }) {
|
|
|
10672
10726
|
let u = null;
|
|
10673
10727
|
if (n) {
|
|
10674
10728
|
const { key: p, duration: h, ...g } = n;
|
|
10675
|
-
u = /* @__PURE__ */ o(
|
|
10729
|
+
u = /* @__PURE__ */ o(mc, { children: /* @__PURE__ */ o("div", { className: "cm-toast-layer", style: { bottom: t, zIndex: r }, children: /* @__PURE__ */ o(Sm, { ...g, onClose: i }, p) }) });
|
|
10676
10730
|
}
|
|
10677
|
-
return /* @__PURE__ */ x(
|
|
10731
|
+
return /* @__PURE__ */ x(si.Provider, { value: l, children: [
|
|
10678
10732
|
e,
|
|
10679
10733
|
u
|
|
10680
10734
|
] });
|
|
10681
10735
|
}
|
|
10682
10736
|
function Ch() {
|
|
10683
|
-
const e = mt(
|
|
10737
|
+
const e = mt(si);
|
|
10684
10738
|
if (!e)
|
|
10685
10739
|
throw new Error("useToast must be used inside a ToastProvider");
|
|
10686
10740
|
return e;
|
|
@@ -10691,7 +10745,7 @@ function Eh({ label: e, shortcut: t }) {
|
|
|
10691
10745
|
/* @__PURE__ */ o("span", { className: "cm-tooltip-shortcut", children: t })
|
|
10692
10746
|
] });
|
|
10693
10747
|
}
|
|
10694
|
-
const zm = ["top", "middle", "bottom"], Im = ["left", "center", "right"],
|
|
10748
|
+
const zm = ["top", "middle", "bottom"], Im = ["left", "center", "right"], mr = zm.flatMap(
|
|
10695
10749
|
(e) => Im.map((t) => `${e}-${t}`)
|
|
10696
10750
|
), Lm = {
|
|
10697
10751
|
"top-left": "Align top left",
|
|
@@ -10725,7 +10779,7 @@ function zh({
|
|
|
10725
10779
|
if (s || g === void 0 || h.altKey || h.ctrlKey || h.metaKey)
|
|
10726
10780
|
return;
|
|
10727
10781
|
h.preventDefault();
|
|
10728
|
-
const k =
|
|
10782
|
+
const k = mr.indexOf(l), v = Math.min(2, Math.max(0, Math.floor(k / 3) + g[0])), N = Math.min(2, Math.max(0, k % 3 + g[1])), f = mr[v * 3 + N];
|
|
10729
10783
|
f !== l && u(f, h), (T = (y = h.currentTarget.closest(".cm-align")) == null ? void 0 : y.querySelector(`input[value="${f}"]`)) == null || T.focus();
|
|
10730
10784
|
};
|
|
10731
10785
|
return /* @__PURE__ */ o(
|
|
@@ -10738,7 +10792,7 @@ function zh({
|
|
|
10738
10792
|
"data-direction": n,
|
|
10739
10793
|
"data-disabled": s || void 0,
|
|
10740
10794
|
"data-testid": "alignment-matrix",
|
|
10741
|
-
children: /* @__PURE__ */ o("div", { className: "cm-align-grid", children:
|
|
10795
|
+
children: /* @__PURE__ */ o("div", { className: "cm-align-grid", children: mr.map((h, g) => {
|
|
10742
10796
|
const k = h === l, v = (c == null ? void 0 : c[h]) ?? Lm[h], N = Om[n === "vertical" ? g % 3 : Math.floor(g / 3)];
|
|
10743
10797
|
return /* @__PURE__ */ x(
|
|
10744
10798
|
"div",
|
|
@@ -10872,7 +10926,7 @@ const Ih = Qe(function({
|
|
|
10872
10926
|
}
|
|
10873
10927
|
);
|
|
10874
10928
|
});
|
|
10875
|
-
function
|
|
10929
|
+
function li({
|
|
10876
10930
|
value: e,
|
|
10877
10931
|
onCommit: t,
|
|
10878
10932
|
onCancel: r,
|
|
@@ -11086,7 +11140,7 @@ function Lh({
|
|
|
11086
11140
|
selected: a === "group" && z,
|
|
11087
11141
|
tabIndex: m.id === f ? 0 : -1,
|
|
11088
11142
|
nameSlot: h === m.id ? /* @__PURE__ */ o(
|
|
11089
|
-
|
|
11143
|
+
li,
|
|
11090
11144
|
{
|
|
11091
11145
|
value: m.name,
|
|
11092
11146
|
label: i,
|
|
@@ -11208,7 +11262,7 @@ function Gm(e, t, r, n) {
|
|
|
11208
11262
|
return null;
|
|
11209
11263
|
return c.parentId === i && c.posInSet - 1 < d && (d -= 1), c.parentId === i && c.posInSet - 1 === d ? null : { move: { id: t, parentId: i, index: d }, boxRow: l, line: u };
|
|
11210
11264
|
}
|
|
11211
|
-
function
|
|
11265
|
+
function di(e) {
|
|
11212
11266
|
return 16 + 24 * (e - 1);
|
|
11213
11267
|
}
|
|
11214
11268
|
function Oh(e, t) {
|
|
@@ -11225,7 +11279,7 @@ function Oh(e, t) {
|
|
|
11225
11279
|
function qm(e, t, r) {
|
|
11226
11280
|
return e.map((n) => n.id === t ? { ...n, name: r } : n.children ? { ...n, children: qm(n.children, t, r) } : n);
|
|
11227
11281
|
}
|
|
11228
|
-
const Wm = 200, jm = 500, Ym = 10,
|
|
11282
|
+
const Wm = 200, jm = 500, Ym = 10, ta = ".cm-tree-actions :is(button, a[href], input, select, textarea, [tabindex]):not(:disabled)", Km = Qe(function({
|
|
11229
11283
|
name: t,
|
|
11230
11284
|
label: r,
|
|
11231
11285
|
icon: n,
|
|
@@ -11286,7 +11340,7 @@ const Wm = 200, jm = 500, Ym = 10, $n = ".cm-tree-actions :is(button, a[href], i
|
|
|
11286
11340
|
},
|
|
11287
11341
|
...j,
|
|
11288
11342
|
children: [
|
|
11289
|
-
/* @__PURE__ */ o("span", { className: "cm-tree-indent", style: { width:
|
|
11343
|
+
/* @__PURE__ */ o("span", { className: "cm-tree-indent", style: { width: di(a) - 16 } }),
|
|
11290
11344
|
/* @__PURE__ */ o("span", { className: "cm-tree-caret", "aria-hidden": "true", "data-testid": "tree-caret", children: c && /* @__PURE__ */ o(xe, { name: s ? "caretDown" : "caretRight", size: L.CHEVRON }) }),
|
|
11291
11345
|
/* @__PURE__ */ o("span", { className: "cm-tree-icon", "aria-hidden": "true", children: n }),
|
|
11292
11346
|
O && /* @__PURE__ */ o("span", { className: "cm-tree-swatch", "aria-hidden": "true", "data-testid": "tree-swatch", children: N }),
|
|
@@ -11352,7 +11406,7 @@ function Rh({
|
|
|
11352
11406
|
onChange: (b) => {
|
|
11353
11407
|
i == null || i([...b]);
|
|
11354
11408
|
}
|
|
11355
|
-
}), T = be(() => new Set(f), [f]), A = be(() => new Set(v), [v]), m = be(() => Fm(e, T), [e, T]), z = be(() => Um(m, A), [m, A]), E = be(() => new Map(m.map((b, V) => [b.node.id, V])), [m]), [C, H] = he(null), [j, $] = he(null), [M, ne] = he(null), O = Y(null), I = Y(null), S = Y(!1), W = Y({ text: "", at: 0 }), P = Y(null), D = m.length > Wm, ee =
|
|
11409
|
+
}), T = be(() => new Set(f), [f]), A = be(() => new Set(v), [v]), m = be(() => Fm(e, T), [e, T]), z = be(() => Um(m, A), [m, A]), E = be(() => new Map(m.map((b, V) => [b.node.id, V])), [m]), [C, H] = he(null), [j, $] = he(null), [M, ne] = he(null), O = Y(null), I = Y(null), S = Y(!1), W = Y({ text: "", at: 0 }), P = Y(null), D = m.length > Wm, ee = Ea({
|
|
11356
11410
|
count: D ? m.length : 0,
|
|
11357
11411
|
getScrollElement: () => P.current,
|
|
11358
11412
|
estimateSize: () => L.DATA_PITCH,
|
|
@@ -11360,7 +11414,7 @@ function Rh({
|
|
|
11360
11414
|
}), re = (C !== null && E.has(C) ? C : null) ?? ((Ne = m.find((b) => A.has(b.node.id))) == null ? void 0 : Ne.node.id) ?? ((F = m[0]) == null ? void 0 : F.node.id) ?? null;
|
|
11361
11415
|
mo(() => {
|
|
11362
11416
|
var b;
|
|
11363
|
-
(b = P.current) == null || b.querySelectorAll(
|
|
11417
|
+
(b = P.current) == null || b.querySelectorAll(ta).forEach((V) => {
|
|
11364
11418
|
V.tabIndex = -1;
|
|
11365
11419
|
});
|
|
11366
11420
|
}), mo(() => {
|
|
@@ -11388,7 +11442,7 @@ function Rh({
|
|
|
11388
11442
|
m.slice(Math.min(_, Q), Math.max(_, Q) + 1).map((ie) => ie.node.id),
|
|
11389
11443
|
oe
|
|
11390
11444
|
);
|
|
11391
|
-
}, le = (b) => b.shiftKey ? "range" : b.metaKey || b.ctrlKey ? "toggle" : "replace", Ae = (b) => b === null ? [] : [...b.querySelectorAll(
|
|
11445
|
+
}, le = (b) => b.shiftKey ? "range" : b.metaKey || b.ctrlKey ? "toggle" : "replace", Ae = (b) => b === null ? [] : [...b.querySelectorAll(ta)], We = (b, V) => {
|
|
11392
11446
|
var ie, Ce;
|
|
11393
11447
|
const oe = Ae(V), _ = oe.indexOf(b.target), Q = E.get(V.dataset.id ?? "");
|
|
11394
11448
|
if (!(_ === -1 || Q === void 0 || b.defaultPrevented || b.altKey)) {
|
|
@@ -11506,7 +11560,7 @@ function Rh({
|
|
|
11506
11560
|
style: oe,
|
|
11507
11561
|
draggable: u !== void 0 && !Q,
|
|
11508
11562
|
nameSlot: Q ? /* @__PURE__ */ o(
|
|
11509
|
-
|
|
11563
|
+
li,
|
|
11510
11564
|
{
|
|
11511
11565
|
value: b.node.name,
|
|
11512
11566
|
label: g,
|
|
@@ -11604,7 +11658,7 @@ function Rh({
|
|
|
11604
11658
|
{
|
|
11605
11659
|
className: "cm-tree-drop-line",
|
|
11606
11660
|
"data-testid": "tree-drop-line",
|
|
11607
|
-
style: { top: M.line.boundary * Ie - 1, insetInlineStart:
|
|
11661
|
+
style: { top: M.line.boundary * Ie - 1, insetInlineStart: di(M.line.level) }
|
|
11608
11662
|
}
|
|
11609
11663
|
)
|
|
11610
11664
|
]
|
|
@@ -11614,7 +11668,7 @@ function Rh({
|
|
|
11614
11668
|
);
|
|
11615
11669
|
}
|
|
11616
11670
|
const Xm = 'button, input[type="radio"], [role="radio"]';
|
|
11617
|
-
function
|
|
11671
|
+
function Yr(e) {
|
|
11618
11672
|
const t = Y(null), r = Y(null), n = () => {
|
|
11619
11673
|
var i;
|
|
11620
11674
|
return Array.from(((i = t.current) == null ? void 0 : i.querySelectorAll(Xm)) ?? []).filter(
|
|
@@ -11651,7 +11705,7 @@ function Wr(e) {
|
|
|
11651
11705
|
} };
|
|
11652
11706
|
}
|
|
11653
11707
|
function Gt() {
|
|
11654
|
-
const e =
|
|
11708
|
+
const e = Aa();
|
|
11655
11709
|
qo(e.other.compact);
|
|
11656
11710
|
}
|
|
11657
11711
|
function Jm() {
|
|
@@ -11690,7 +11744,7 @@ function Mh({ label: e, children: t, menuProps: r, className: n, ...a }) {
|
|
|
11690
11744
|
}
|
|
11691
11745
|
) : d(i);
|
|
11692
11746
|
}
|
|
11693
|
-
function
|
|
11747
|
+
function Kr({
|
|
11694
11748
|
label: e,
|
|
11695
11749
|
shortcut: t
|
|
11696
11750
|
}) {
|
|
@@ -11705,7 +11759,7 @@ const Zm = Qe(function({ label: t, icon: r, shortcut: n, selected: a, tooltipPos
|
|
|
11705
11759
|
return /* @__PURE__ */ o(
|
|
11706
11760
|
dt,
|
|
11707
11761
|
{
|
|
11708
|
-
label: /* @__PURE__ */ o(
|
|
11762
|
+
label: /* @__PURE__ */ o(Kr, { label: p ? `${t}. ${s}` : t, shortcut: n }),
|
|
11709
11763
|
position: c,
|
|
11710
11764
|
children: /* @__PURE__ */ o(
|
|
11711
11765
|
ut,
|
|
@@ -11726,7 +11780,7 @@ const Zm = Qe(function({ label: t, icon: r, shortcut: n, selected: a, tooltipPos
|
|
|
11726
11780
|
}), Qm = 500;
|
|
11727
11781
|
function _m({ footer: e, children: t, className: r, onKeyDown: n, onFocus: a, ...c }) {
|
|
11728
11782
|
Gt();
|
|
11729
|
-
const s = ze(), i =
|
|
11783
|
+
const s = ze(), i = Yr("vertical");
|
|
11730
11784
|
return /* @__PURE__ */ x(
|
|
11731
11785
|
R,
|
|
11732
11786
|
{
|
|
@@ -11757,9 +11811,9 @@ const Dh = Object.assign(_m, { Separator: $m }), Hh = Qe(function({ icon: t, lab
|
|
|
11757
11811
|
return /* @__PURE__ */ o(
|
|
11758
11812
|
dt,
|
|
11759
11813
|
{
|
|
11760
|
-
label: /* @__PURE__ */ o(
|
|
11814
|
+
label: /* @__PURE__ */ o(Kr, { label: r, shortcut: n }),
|
|
11761
11815
|
position: "right",
|
|
11762
|
-
offset: { mainAxis:
|
|
11816
|
+
offset: { mainAxis: Wa, crossAxis: -8 },
|
|
11763
11817
|
openDelay: Qm,
|
|
11764
11818
|
withArrow: !0,
|
|
11765
11819
|
disabled: d,
|
|
@@ -11894,7 +11948,7 @@ function Bh({
|
|
|
11894
11948
|
}
|
|
11895
11949
|
),
|
|
11896
11950
|
A !== "" || i ? /* @__PURE__ */ o("span", { className: "cm-qa-search-action", children: A === "" ? i : /* @__PURE__ */ o(
|
|
11897
|
-
|
|
11951
|
+
zr,
|
|
11898
11952
|
{
|
|
11899
11953
|
"aria-label": N.clearSearch,
|
|
11900
11954
|
onMouseDown: (S) => {
|
|
@@ -11987,7 +12041,7 @@ function rp({
|
|
|
11987
12041
|
...c
|
|
11988
12042
|
}) {
|
|
11989
12043
|
Gt();
|
|
11990
|
-
const s =
|
|
12044
|
+
const s = Yr("horizontal");
|
|
11991
12045
|
return /* @__PURE__ */ o(
|
|
11992
12046
|
R,
|
|
11993
12047
|
{
|
|
@@ -12148,7 +12202,7 @@ function Vh({
|
|
|
12148
12202
|
z.description ? /* @__PURE__ */ o("span", { className: "cm-sheet-row-description", children: z.description }) : null
|
|
12149
12203
|
] }),
|
|
12150
12204
|
/* @__PURE__ */ o("span", { className: "cm-sheet-keys", children: z.keys.map((C, H) => /* @__PURE__ */ o(
|
|
12151
|
-
|
|
12205
|
+
ka,
|
|
12152
12206
|
{
|
|
12153
12207
|
size: N ? "md" : void 0,
|
|
12154
12208
|
mod: { active: z.highlighted },
|
|
@@ -12177,7 +12231,7 @@ function ip({
|
|
|
12177
12231
|
...c
|
|
12178
12232
|
}) {
|
|
12179
12233
|
Gt();
|
|
12180
|
-
const s = ze(), i =
|
|
12234
|
+
const s = ze(), i = Yr("horizontal");
|
|
12181
12235
|
return /* @__PURE__ */ o(
|
|
12182
12236
|
R,
|
|
12183
12237
|
{
|
|
@@ -12250,7 +12304,7 @@ function Gh({
|
|
|
12250
12304
|
onClose: N,
|
|
12251
12305
|
classNames: { dropdown: "cm-menu-surface", item: "cm-menu-row cm-tool-flyout-row" },
|
|
12252
12306
|
children: [
|
|
12253
|
-
/* @__PURE__ */ o(dt, { label: /* @__PURE__ */ o(
|
|
12307
|
+
/* @__PURE__ */ o(dt, { label: /* @__PURE__ */ o(Kr, { label: e }), position: "top", children: /* @__PURE__ */ o(Re.Target, { children: /* @__PURE__ */ o(
|
|
12254
12308
|
ut,
|
|
12255
12309
|
{
|
|
12256
12310
|
...c,
|
|
@@ -12282,14 +12336,14 @@ function Gh({
|
|
|
12282
12336
|
)
|
|
12283
12337
|
] });
|
|
12284
12338
|
}
|
|
12285
|
-
function
|
|
12339
|
+
function ui(e, t) {
|
|
12286
12340
|
return e !== void 0 ? e : t === void 0 ? "off" : "polite";
|
|
12287
12341
|
}
|
|
12288
12342
|
function zt(e, t) {
|
|
12289
|
-
const r =
|
|
12343
|
+
const r = ui(e, t);
|
|
12290
12344
|
return r === "off" ? { "aria-busy": t } : { "aria-live": r, "aria-atomic": !0, "aria-busy": t };
|
|
12291
12345
|
}
|
|
12292
|
-
const
|
|
12346
|
+
const pr = 4, lp = "(hover: none)";
|
|
12293
12347
|
function dp(e) {
|
|
12294
12348
|
if (typeof e == "string")
|
|
12295
12349
|
return e;
|
|
@@ -12311,7 +12365,7 @@ function qh(e) {
|
|
|
12311
12365
|
onClick: u,
|
|
12312
12366
|
onFocus: p,
|
|
12313
12367
|
onBlur: h
|
|
12314
|
-
} = e, g = zt(a, n), { hovered: k, ref: v } =
|
|
12368
|
+
} = e, g = zt(a, n), { hovered: k, ref: v } = wc(), N = Ca(lp) ?? !1, [f, y] = he(!1), T = Pe(), A = f || (i ?? (d === "always" || k || N)), m = c !== void 0 || s !== void 0, z = dp(t), E = r !== void 0 && r !== z, C = r ?? z, H = m && t !== void 0, j = E ? /* @__PURE__ */ x(Z, { children: [
|
|
12315
12369
|
/* @__PURE__ */ o("span", { "aria-hidden": "true", children: t }),
|
|
12316
12370
|
/* @__PURE__ */ o(nt, { "data-testid": "action-row-state-full", children: r })
|
|
12317
12371
|
] }) : t;
|
|
@@ -12402,7 +12456,7 @@ function qh(e) {
|
|
|
12402
12456
|
marginInlineStart: "auto",
|
|
12403
12457
|
display: "flex",
|
|
12404
12458
|
alignItems: "center",
|
|
12405
|
-
gap:
|
|
12459
|
+
gap: pr
|
|
12406
12460
|
},
|
|
12407
12461
|
children: [
|
|
12408
12462
|
c !== void 0 && /* @__PURE__ */ o(
|
|
@@ -12415,7 +12469,7 @@ function qh(e) {
|
|
|
12415
12469
|
flex: "0 0 auto",
|
|
12416
12470
|
display: "flex",
|
|
12417
12471
|
alignItems: "center",
|
|
12418
|
-
gap:
|
|
12472
|
+
gap: pr,
|
|
12419
12473
|
// Hidden with opacity and never by unmounting:
|
|
12420
12474
|
// the controls have to stay focusable. Pointer
|
|
12421
12475
|
// events are withdrawn with the ink so that an
|
|
@@ -12436,7 +12490,7 @@ function qh(e) {
|
|
|
12436
12490
|
flex: "0 0 auto",
|
|
12437
12491
|
display: "flex",
|
|
12438
12492
|
alignItems: "center",
|
|
12439
|
-
gap:
|
|
12493
|
+
gap: pr
|
|
12440
12494
|
},
|
|
12441
12495
|
children: s
|
|
12442
12496
|
}
|
|
@@ -12529,7 +12583,7 @@ function jh({
|
|
|
12529
12583
|
c !== void 0 && u && // Redundant to a screen reader: the position of this column in a
|
|
12530
12584
|
// multi-column sort is drawn for the eye, and every column
|
|
12531
12585
|
// announces its own direction through aria-sort.
|
|
12532
|
-
/* @__PURE__ */ o("span", { "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ o(
|
|
12586
|
+
/* @__PURE__ */ o("span", { "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ o(mi, { children: d.format(c) }) }),
|
|
12533
12587
|
u && // The 5 x 3 caret; ascending is the same drawing turned over, which
|
|
12534
12588
|
// means the same thing whichever way the text runs.
|
|
12535
12589
|
/* @__PURE__ */ o("span", { className: "cm-sort-caret", "data-testid": "data-row-header-sort-glyph", "data-direction": s, children: /* @__PURE__ */ o(xe, { name: "caretDown", size: L.CHEVRON }) })
|
|
@@ -12562,10 +12616,10 @@ function jh({
|
|
|
12562
12616
|
}
|
|
12563
12617
|
);
|
|
12564
12618
|
}
|
|
12565
|
-
function
|
|
12619
|
+
function mi({ children: e }) {
|
|
12566
12620
|
return Oe(), /* @__PURE__ */ o("span", { className: "cm-rank-chip", "data-testid": "rank-chip", children: e });
|
|
12567
12621
|
}
|
|
12568
|
-
const
|
|
12622
|
+
const oa = 2, up = 1, mp = 16, pp = 2, hp = 1, fp = 1, bp = 64, pi = 4, ra = pi / 2, hi = 4, Bt = 100, gp = 1, fi = "var(--cm-icon-secondary)", Er = 100;
|
|
12569
12623
|
function Fo({ children: e, end: t, id: r }) {
|
|
12570
12624
|
return /* @__PURE__ */ o(
|
|
12571
12625
|
R,
|
|
@@ -12583,7 +12637,7 @@ function Fo({ children: e, end: t, id: r }) {
|
|
|
12583
12637
|
}
|
|
12584
12638
|
);
|
|
12585
12639
|
}
|
|
12586
|
-
function
|
|
12640
|
+
function bi() {
|
|
12587
12641
|
return /* @__PURE__ */ o(
|
|
12588
12642
|
R,
|
|
12589
12643
|
{
|
|
@@ -12596,7 +12650,7 @@ function fi() {
|
|
|
12596
12650
|
}
|
|
12597
12651
|
);
|
|
12598
12652
|
}
|
|
12599
|
-
function
|
|
12653
|
+
function gi({ caption: e, rows: t, testId: r }) {
|
|
12600
12654
|
return /* @__PURE__ */ x(nt, { component: "table", "data-testid": r, children: [
|
|
12601
12655
|
e !== void 0 && /* @__PURE__ */ o("caption", { children: e }),
|
|
12602
12656
|
/* @__PURE__ */ o("tbody", { children: t.map((n) => /* @__PURE__ */ x("tr", { children: [
|
|
@@ -12617,7 +12671,7 @@ function xp(e, t) {
|
|
|
12617
12671
|
return `${l},${u}`;
|
|
12618
12672
|
}).join(" ");
|
|
12619
12673
|
}
|
|
12620
|
-
function
|
|
12674
|
+
function xi() {
|
|
12621
12675
|
const e = Pe(), t = `${e}min`, r = `${e}max`;
|
|
12622
12676
|
return { min: t, max: r, describedBy: `${t} ${r}` };
|
|
12623
12677
|
}
|
|
@@ -12631,7 +12685,7 @@ function Yh({
|
|
|
12631
12685
|
trailing: s
|
|
12632
12686
|
}) {
|
|
12633
12687
|
Oe();
|
|
12634
|
-
const i = Lt(), d =
|
|
12688
|
+
const i = Lt(), d = xi(), l = e.reduce((p, h) => Math.max(p, h.count, 0), 0), u = e.map((p, h) => ({
|
|
12635
12689
|
id: `${p.label}-${String(h)}`,
|
|
12636
12690
|
header: p.label,
|
|
12637
12691
|
// The raw count, not the clamped one the bar draws: the table is the
|
|
@@ -12664,7 +12718,7 @@ function Yh({
|
|
|
12664
12718
|
height: "100%",
|
|
12665
12719
|
display: "flex",
|
|
12666
12720
|
flexDirection: "column",
|
|
12667
|
-
gap:
|
|
12721
|
+
gap: oa
|
|
12668
12722
|
},
|
|
12669
12723
|
children: [
|
|
12670
12724
|
/* @__PURE__ */ x(
|
|
@@ -12680,7 +12734,7 @@ function Yh({
|
|
|
12680
12734
|
minHeight: 0,
|
|
12681
12735
|
display: "flex",
|
|
12682
12736
|
flexDirection: "column",
|
|
12683
|
-
gap:
|
|
12737
|
+
gap: oa
|
|
12684
12738
|
},
|
|
12685
12739
|
children: [
|
|
12686
12740
|
/* @__PURE__ */ o(
|
|
@@ -12695,7 +12749,7 @@ function Yh({
|
|
|
12695
12749
|
gap: pp
|
|
12696
12750
|
},
|
|
12697
12751
|
children: e.map((p, h) => {
|
|
12698
|
-
const g = Math.max(0, p.count), k = l === 0 ? 0 : g / l *
|
|
12752
|
+
const g = Math.max(0, p.count), k = l === 0 ? 0 : g / l * Er, v = p.highlighted === !0;
|
|
12699
12753
|
return /* @__PURE__ */ o(
|
|
12700
12754
|
R,
|
|
12701
12755
|
{
|
|
@@ -12708,7 +12762,7 @@ function Yh({
|
|
|
12708
12762
|
minWidth: 0,
|
|
12709
12763
|
height: `${String(k)}%`,
|
|
12710
12764
|
minHeight: g > 0 ? fp : 0,
|
|
12711
|
-
background: v ? Te.ACCENT_GRAPHIC :
|
|
12765
|
+
background: v ? Te.ACCENT_GRAPHIC : fi,
|
|
12712
12766
|
borderRadius: hp
|
|
12713
12767
|
}
|
|
12714
12768
|
},
|
|
@@ -12717,7 +12771,7 @@ function Yh({
|
|
|
12717
12771
|
})
|
|
12718
12772
|
}
|
|
12719
12773
|
),
|
|
12720
|
-
/* @__PURE__ */ o(
|
|
12774
|
+
/* @__PURE__ */ o(bi, {})
|
|
12721
12775
|
]
|
|
12722
12776
|
}
|
|
12723
12777
|
),
|
|
@@ -12731,7 +12785,7 @@ function Yh({
|
|
|
12731
12785
|
display: "flex",
|
|
12732
12786
|
alignItems: "center",
|
|
12733
12787
|
justifyContent: "space-between",
|
|
12734
|
-
gap:
|
|
12788
|
+
gap: hi
|
|
12735
12789
|
},
|
|
12736
12790
|
children: [
|
|
12737
12791
|
/* @__PURE__ */ o(Fo, { end: "min", id: d.min, children: r }),
|
|
@@ -12742,7 +12796,7 @@ function Yh({
|
|
|
12742
12796
|
]
|
|
12743
12797
|
}
|
|
12744
12798
|
),
|
|
12745
|
-
/* @__PURE__ */ o(
|
|
12799
|
+
/* @__PURE__ */ o(gi, { caption: t, rows: u, testId: "histogram-values" }),
|
|
12746
12800
|
xo(s) && /* @__PURE__ */ o(Tt, { children: s })
|
|
12747
12801
|
]
|
|
12748
12802
|
}
|
|
@@ -12758,7 +12812,7 @@ function Kh({
|
|
|
12758
12812
|
trailing: s
|
|
12759
12813
|
}) {
|
|
12760
12814
|
Oe();
|
|
12761
|
-
const i = At(), d = Lt(), l =
|
|
12815
|
+
const i = At(), d = Lt(), l = xi(), u = xp(e, i), p = e.map((h, g) => ({
|
|
12762
12816
|
id: `point-${String(g)}`,
|
|
12763
12817
|
// Positions count from one, the way a reader counts them, and are
|
|
12764
12818
|
// formatted for the locale so a series longer than a thousand points
|
|
@@ -12788,7 +12842,7 @@ function Kh({
|
|
|
12788
12842
|
minWidth: 0,
|
|
12789
12843
|
display: "flex",
|
|
12790
12844
|
alignItems: "center",
|
|
12791
|
-
gap:
|
|
12845
|
+
gap: hi
|
|
12792
12846
|
},
|
|
12793
12847
|
children: [
|
|
12794
12848
|
/* @__PURE__ */ o(Fo, { end: "min", id: l.min, children: r }),
|
|
@@ -12806,7 +12860,7 @@ function Kh({
|
|
|
12806
12860
|
display: "flex",
|
|
12807
12861
|
flexDirection: "column",
|
|
12808
12862
|
// The line; the rule it stands on draws its own ink.
|
|
12809
|
-
color:
|
|
12863
|
+
color: fi
|
|
12810
12864
|
},
|
|
12811
12865
|
children: [
|
|
12812
12866
|
/* @__PURE__ */ o(
|
|
@@ -12829,7 +12883,7 @@ function Kh({
|
|
|
12829
12883
|
children: u !== null && /* @__PURE__ */ o("polyline", { points: u, vectorEffect: "non-scaling-stroke" })
|
|
12830
12884
|
}
|
|
12831
12885
|
),
|
|
12832
|
-
/* @__PURE__ */ o(
|
|
12886
|
+
/* @__PURE__ */ o(bi, {})
|
|
12833
12887
|
]
|
|
12834
12888
|
}
|
|
12835
12889
|
),
|
|
@@ -12837,7 +12891,7 @@ function Kh({
|
|
|
12837
12891
|
]
|
|
12838
12892
|
}
|
|
12839
12893
|
),
|
|
12840
|
-
/* @__PURE__ */ o(
|
|
12894
|
+
/* @__PURE__ */ o(gi, { caption: t, rows: p, testId: "sparkline-values" }),
|
|
12841
12895
|
xo(s) && /* @__PURE__ */ o(Tt, { children: s })
|
|
12842
12896
|
]
|
|
12843
12897
|
}
|
|
@@ -12857,7 +12911,7 @@ function Xh({
|
|
|
12857
12911
|
onBlur: u
|
|
12858
12912
|
}) {
|
|
12859
12913
|
Oe();
|
|
12860
|
-
const p = ze(), h = ql(), g = Pe(), k = s, v = k !== void 0, N = Math.min(
|
|
12914
|
+
const p = ze(), h = ql(), g = Pe(), k = s, v = k !== void 0, N = Math.min(Er, Math.max(0, t)), f = p.percentile(h(Math.round(N))), y = (A) => {
|
|
12861
12915
|
k !== void 0 && k(A, po(A));
|
|
12862
12916
|
}, T = (A) => {
|
|
12863
12917
|
k !== void 0 && (A.key === "Enter" || A.key === " ") && (A.preventDefault(), k(A, po(A)));
|
|
@@ -12903,20 +12957,20 @@ function Xh({
|
|
|
12903
12957
|
}
|
|
12904
12958
|
),
|
|
12905
12959
|
/* @__PURE__ */ o(
|
|
12906
|
-
|
|
12960
|
+
gr.Root,
|
|
12907
12961
|
{
|
|
12908
12962
|
"data-testid": "metric-row-bar",
|
|
12909
12963
|
role: "progressbar",
|
|
12910
12964
|
"aria-labelledby": g,
|
|
12911
12965
|
"aria-valuemin": 0,
|
|
12912
|
-
"aria-valuemax":
|
|
12966
|
+
"aria-valuemax": Er,
|
|
12913
12967
|
"aria-valuenow": N,
|
|
12914
12968
|
"aria-valuetext": f,
|
|
12915
12969
|
title: f,
|
|
12916
|
-
size:
|
|
12970
|
+
size: pi,
|
|
12917
12971
|
style: {
|
|
12918
12972
|
flex: `0 0 ${String(bp)}px`,
|
|
12919
|
-
borderRadius:
|
|
12973
|
+
borderRadius: ra,
|
|
12920
12974
|
// The track is the field surface rather than the raised one.
|
|
12921
12975
|
// Measured against this library's own palette, the accent
|
|
12922
12976
|
// fill reads 4.46:1 (dark) and 4.51:1 (light) on the field
|
|
@@ -12927,13 +12981,13 @@ function Xh({
|
|
|
12927
12981
|
background: Te.SURFACE
|
|
12928
12982
|
},
|
|
12929
12983
|
children: /* @__PURE__ */ o(
|
|
12930
|
-
|
|
12984
|
+
gr.Section,
|
|
12931
12985
|
{
|
|
12932
12986
|
"data-testid": "metric-row-fill",
|
|
12933
12987
|
value: N,
|
|
12934
12988
|
withAria: !1,
|
|
12935
12989
|
color: Te.ACCENT_GRAPHIC,
|
|
12936
|
-
style: { borderRadius:
|
|
12990
|
+
style: { borderRadius: ra }
|
|
12937
12991
|
}
|
|
12938
12992
|
)
|
|
12939
12993
|
}
|
|
@@ -12948,19 +13002,19 @@ function Xh({
|
|
|
12948
13002
|
children: r
|
|
12949
13003
|
}
|
|
12950
13004
|
),
|
|
12951
|
-
n !== void 0 && /* @__PURE__ */ o(
|
|
13005
|
+
n !== void 0 && /* @__PURE__ */ o(mi, { children: n })
|
|
12952
13006
|
]
|
|
12953
13007
|
}
|
|
12954
13008
|
);
|
|
12955
13009
|
}
|
|
12956
|
-
const
|
|
12957
|
-
function
|
|
12958
|
-
return /* @__PURE__ */ o(
|
|
13010
|
+
const vi = It(!1);
|
|
13011
|
+
function na({ showLabels: e = !1, children: t }) {
|
|
13012
|
+
return /* @__PURE__ */ o(vi.Provider, { value: e, children: t });
|
|
12959
13013
|
}
|
|
12960
|
-
function
|
|
12961
|
-
return mt(
|
|
13014
|
+
function Xr() {
|
|
13015
|
+
return mt(vi);
|
|
12962
13016
|
}
|
|
12963
|
-
const
|
|
13017
|
+
const aa = 8, vp = 2, wi = 1, wp = 2, yp = 3;
|
|
12964
13018
|
function kp(e) {
|
|
12965
13019
|
if (e.fullValue !== void 0)
|
|
12966
13020
|
return e.fullValue;
|
|
@@ -12972,8 +13026,8 @@ function kp(e) {
|
|
|
12972
13026
|
function Sp({ segment: e, grow: t, index: r }) {
|
|
12973
13027
|
const { glyph: n, value: a, unit: c, mono: s = !1 } = e;
|
|
12974
13028
|
let i = null;
|
|
12975
|
-
|
|
12976
|
-
const d = kp(e), l = e.fullValue !== void 0, u = r > 0 ?
|
|
13029
|
+
Ra(n) ? i = /* @__PURE__ */ o(Zt, { name: n }) : Ma(n) ? i = /* @__PURE__ */ o(R, { component: "span", "data-letter": n, children: n }) : n != null && (i = n);
|
|
13030
|
+
const d = kp(e), l = e.fullValue !== void 0, u = r > 0 ? wi : 0;
|
|
12977
13031
|
return /* @__PURE__ */ x(
|
|
12978
13032
|
R,
|
|
12979
13033
|
{
|
|
@@ -12989,8 +13043,8 @@ function Sp({ segment: e, grow: t, index: r }) {
|
|
|
12989
13043
|
height: L.CONTROL_HEIGHT,
|
|
12990
13044
|
paddingBlock: 0,
|
|
12991
13045
|
// The seam before a later segment is its first pixel of inset.
|
|
12992
|
-
paddingInlineStart: i === null ?
|
|
12993
|
-
paddingInlineEnd:
|
|
13046
|
+
paddingInlineStart: i === null ? aa - u : 0,
|
|
13047
|
+
paddingInlineEnd: aa
|
|
12994
13048
|
},
|
|
12995
13049
|
children: [
|
|
12996
13050
|
i !== null && /* @__PURE__ */ o(
|
|
@@ -13071,9 +13125,9 @@ function Jh({
|
|
|
13071
13125
|
onBlur: d
|
|
13072
13126
|
}) {
|
|
13073
13127
|
Oe();
|
|
13074
|
-
const l =
|
|
13128
|
+
const l = Xr(), u = Ye.useId(), p = t.filter((z) => z.grow === !0).length;
|
|
13075
13129
|
St(Tp(e, t.length)), St(Ap(e, p));
|
|
13076
|
-
const h = t.findIndex((z) => z.grow === !0), g = h === -1 ? 0 : h, k = s !== void 0, v =
|
|
13130
|
+
const h = t.findIndex((z) => z.grow === !0), g = h === -1 ? 0 : h, k = s !== void 0, v = ui(c, a) !== "off", N = k || v, f = k ? void 0 : u, y = N ? void 0 : u, T = N || l, A = {
|
|
13077
13131
|
display: "flex",
|
|
13078
13132
|
alignItems: "center",
|
|
13079
13133
|
boxSizing: "border-box",
|
|
@@ -13098,7 +13152,7 @@ function Jh({
|
|
|
13098
13152
|
className: "cm-compound-seam",
|
|
13099
13153
|
style: {
|
|
13100
13154
|
flex: "0 0 auto",
|
|
13101
|
-
width:
|
|
13155
|
+
width: wi,
|
|
13102
13156
|
height: L.CONTROL_HEIGHT
|
|
13103
13157
|
}
|
|
13104
13158
|
}
|
|
@@ -13177,7 +13231,7 @@ function Jh({
|
|
|
13177
13231
|
}
|
|
13178
13232
|
);
|
|
13179
13233
|
}
|
|
13180
|
-
const Np = L.VALUE_INSET - L.GLYPH_SLOT,
|
|
13234
|
+
const Np = L.VALUE_INSET - L.GLYPH_SLOT, ia = 8, Cp = "Use arrow keys to change the value", ca = 4, sa = 4, Ep = L.VALUE_INSET + L.LABEL_COLUMN, la = {
|
|
13181
13235
|
position: "absolute",
|
|
13182
13236
|
width: 1,
|
|
13183
13237
|
height: 1,
|
|
@@ -13222,7 +13276,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13222
13276
|
className: S,
|
|
13223
13277
|
onKeyDown: W,
|
|
13224
13278
|
...P
|
|
13225
|
-
} = t, D =
|
|
13279
|
+
} = t, D = Xr(), ee = ze(), re = Go(), J = At(), X = Ca("(pointer: coarse)"), { ref: de, width: le } = yc(), [Ae, We] = ye({
|
|
13226
13280
|
value: s === null ? "" : s,
|
|
13227
13281
|
defaultValue: i,
|
|
13228
13282
|
finalValue: "",
|
|
@@ -13240,7 +13294,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13240
13294
|
disabled: H,
|
|
13241
13295
|
disabledReason: j,
|
|
13242
13296
|
extraDescriptions: V
|
|
13243
|
-
}), { description: ie } = Q, Ce = K === "number", Ue = m !== void 0 || z !== void 0 || E !== void 0, Me = Ce && z === void 0 && !fe, _e = (Ue || Me) && !H && !X, Nt = F ? "" : Ie, at = Ie === "" || g ? Number.NaN : re(Ie), $e =
|
|
13297
|
+
}), { description: ie } = Q, Ce = K === "number", Ue = m !== void 0 || z !== void 0 || E !== void 0, Me = Ce && z === void 0 && !fe, _e = (Ue || Me) && !H && !X, Nt = F ? "" : Ie, at = Ie === "" || g ? Number.NaN : re(Ie), $e = ci({
|
|
13244
13298
|
value: Number.isNaN(at) ? null : at,
|
|
13245
13299
|
display: Nt,
|
|
13246
13300
|
onCommit: (ce, Ve) => {
|
|
@@ -13252,7 +13306,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13252
13306
|
step: y,
|
|
13253
13307
|
decimalScale: T,
|
|
13254
13308
|
locked: H || fe
|
|
13255
|
-
}), ae =
|
|
13309
|
+
}), ae = ii(_e, tt(J), {
|
|
13256
13310
|
onStart: (ce) => {
|
|
13257
13311
|
var Ve, ct;
|
|
13258
13312
|
m == null || m(ce), Me && ((ct = (Ve = $e.scrub).onStart) == null || ct.call(Ve, ce));
|
|
@@ -13273,7 +13327,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13273
13327
|
We(ce, Ve);
|
|
13274
13328
|
};
|
|
13275
13329
|
let Le = null;
|
|
13276
|
-
|
|
13330
|
+
Ra(a) ? Le = /* @__PURE__ */ o(Zt, { name: a, filled: h }) : Ma(a) ? Le = /* @__PURE__ */ o(
|
|
13277
13331
|
R,
|
|
13278
13332
|
{
|
|
13279
13333
|
component: "span",
|
|
@@ -13312,8 +13366,8 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13312
13366
|
// side of the glyph.
|
|
13313
13367
|
insetInlineStart: 0,
|
|
13314
13368
|
bottom: 0,
|
|
13315
|
-
width:
|
|
13316
|
-
height:
|
|
13369
|
+
width: sa,
|
|
13370
|
+
height: sa,
|
|
13317
13371
|
background: Te.ACCENT_GRAPHIC
|
|
13318
13372
|
}
|
|
13319
13373
|
}
|
|
@@ -13330,7 +13384,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13330
13384
|
style: {
|
|
13331
13385
|
flex: "1 1 auto",
|
|
13332
13386
|
minWidth: 0,
|
|
13333
|
-
marginInlineStart:
|
|
13387
|
+
marginInlineStart: ca,
|
|
13334
13388
|
fontSize: "var(--mantine-font-size-sm)",
|
|
13335
13389
|
lineHeight: 1,
|
|
13336
13390
|
color: Te.CHROME,
|
|
@@ -13350,7 +13404,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13350
13404
|
style: {
|
|
13351
13405
|
flex: "0 0 auto",
|
|
13352
13406
|
lineHeight: 1,
|
|
13353
|
-
paddingInlineEnd: me ? 0 :
|
|
13407
|
+
paddingInlineEnd: me ? 0 : ia
|
|
13354
13408
|
},
|
|
13355
13409
|
children: /* @__PURE__ */ o("span", { ref: de, style: { display: "inline-block" }, children: u })
|
|
13356
13410
|
}
|
|
@@ -13367,12 +13421,12 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13367
13421
|
justifyContent: "center",
|
|
13368
13422
|
width: L.GLYPH_SLOT
|
|
13369
13423
|
},
|
|
13370
|
-
children: /* @__PURE__ */ o(
|
|
13424
|
+
children: /* @__PURE__ */ o(Hr, {})
|
|
13371
13425
|
}
|
|
13372
13426
|
)
|
|
13373
13427
|
] }) : void 0;
|
|
13374
|
-
let Fe = Ge ?
|
|
13375
|
-
Fe += me ? L.GLYPH_SLOT :
|
|
13428
|
+
let Fe = Ge ? ca : 0;
|
|
13429
|
+
Fe += me ? L.GLYPH_SLOT : ia;
|
|
13376
13430
|
let Ke;
|
|
13377
13431
|
Ge && le > 0 ? Ke = Math.ceil(le) + Fe : Ge ? Ke = `calc(${String(u.length)}ch + ${String(Fe)}px)` : me && (Ke = Fe);
|
|
13378
13432
|
const pt = _e ? "auto" : "none", ht = {
|
|
@@ -13435,8 +13489,8 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13435
13489
|
// drawn at all, but it is always in the accessibility tree: this is
|
|
13436
13490
|
// a real label element, so the field's name comes from a label and
|
|
13437
13491
|
// its value comes from the input, and neither hides the other.
|
|
13438
|
-
label:
|
|
13439
|
-
description:
|
|
13492
|
+
label: la,
|
|
13493
|
+
description: la
|
|
13440
13494
|
},
|
|
13441
13495
|
wrapperProps: {
|
|
13442
13496
|
// The tooltip sits on the field's outer element rather than on the
|
|
@@ -13472,7 +13526,7 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13472
13526
|
);
|
|
13473
13527
|
}
|
|
13474
13528
|
return Se ? /* @__PURE__ */ o(
|
|
13475
|
-
|
|
13529
|
+
Pr,
|
|
13476
13530
|
{
|
|
13477
13531
|
...ht,
|
|
13478
13532
|
data: l,
|
|
@@ -13492,18 +13546,18 @@ const Np = L.VALUE_INSET - L.GLYPH_SLOT, na = 8, Cp = "Use arrow keys to change
|
|
|
13492
13546
|
}
|
|
13493
13547
|
);
|
|
13494
13548
|
}
|
|
13495
|
-
), Ip = 2, Lp = L.BODY + L.TRAIL_GAP,
|
|
13549
|
+
), Ip = 2, Lp = L.BODY + L.TRAIL_GAP, da = (L.CAPTION_ROW - L.CONTROL_HEIGHT - 14) / 3;
|
|
13496
13550
|
function Pp(e) {
|
|
13497
13551
|
return Ye.Children.toArray(e).flatMap((t) => Ye.isValidElement(t) && t.type === Ye.Fragment ? Ye.Children.toArray(t.props.children) : [t]);
|
|
13498
13552
|
}
|
|
13499
|
-
function
|
|
13553
|
+
function ua(e, t) {
|
|
13500
13554
|
return Ye.isValidElement(e) && e.key !== null ? e.key : `field-row-${String(t)}`;
|
|
13501
13555
|
}
|
|
13502
|
-
function
|
|
13556
|
+
function hr(e) {
|
|
13503
13557
|
if (Ye.isValidElement(e) && typeof e.props.label == "string")
|
|
13504
13558
|
return e.props.label;
|
|
13505
13559
|
}
|
|
13506
|
-
function
|
|
13560
|
+
function fr(e) {
|
|
13507
13561
|
return Ye.isValidElement(e) && e.type === zp ? Ye.cloneElement(e, { width: "fill" }) : e;
|
|
13508
13562
|
}
|
|
13509
13563
|
const Zh = Qe(function({
|
|
@@ -13518,7 +13572,7 @@ const Zh = Qe(function({
|
|
|
13518
13572
|
...l
|
|
13519
13573
|
}, u) {
|
|
13520
13574
|
Oe();
|
|
13521
|
-
const p =
|
|
13575
|
+
const p = Xr(), h = Pp(t), g = h.length, k = g === 1 ? "field" : "fields";
|
|
13522
13576
|
St(
|
|
13523
13577
|
g === 0 || g > Ip ? `FieldRow was given ${String(g)} ${k}, and it holds one field, or two side by side. A row with none is an empty 32px gap, and a third field has nowhere to go in the 240px panel the row is measured for. Put the extra fields on rows of their own.` : void 0
|
|
13524
13578
|
);
|
|
@@ -13540,7 +13594,7 @@ const Zh = Qe(function({
|
|
|
13540
13594
|
...s
|
|
13541
13595
|
},
|
|
13542
13596
|
children: h.map((C, H) => {
|
|
13543
|
-
const j =
|
|
13597
|
+
const j = hr(C);
|
|
13544
13598
|
return /* @__PURE__ */ x(
|
|
13545
13599
|
R,
|
|
13546
13600
|
{
|
|
@@ -13587,13 +13641,13 @@ const Zh = Qe(function({
|
|
|
13587
13641
|
marginInlineStart: L.GUTTER,
|
|
13588
13642
|
marginInlineEnd: L.TRAIL_GAP
|
|
13589
13643
|
},
|
|
13590
|
-
children: /* @__PURE__ */ o(
|
|
13644
|
+
children: /* @__PURE__ */ o(na, { showLabels: !1, children: fr(C) })
|
|
13591
13645
|
}
|
|
13592
13646
|
),
|
|
13593
13647
|
/* @__PURE__ */ o(Tt, { children: H === 0 ? r : null })
|
|
13594
13648
|
]
|
|
13595
13649
|
},
|
|
13596
|
-
|
|
13650
|
+
ua(C, H)
|
|
13597
13651
|
);
|
|
13598
13652
|
})
|
|
13599
13653
|
}
|
|
@@ -13618,7 +13672,7 @@ const Zh = Qe(function({
|
|
|
13618
13672
|
alignItems: T ? "flex-end" : "center",
|
|
13619
13673
|
boxSizing: "border-box",
|
|
13620
13674
|
height: T ? L.CAPTION_ROW : L.ROW_PITCH,
|
|
13621
|
-
paddingBlockEnd: T ?
|
|
13675
|
+
paddingBlockEnd: T ? da : void 0,
|
|
13622
13676
|
...s
|
|
13623
13677
|
},
|
|
13624
13678
|
children: [
|
|
@@ -13631,7 +13685,7 @@ const Zh = Qe(function({
|
|
|
13631
13685
|
display: "flex",
|
|
13632
13686
|
flexDirection: T ? "column" : void 0,
|
|
13633
13687
|
alignItems: T ? "stretch" : "center",
|
|
13634
|
-
gap: T ?
|
|
13688
|
+
gap: T ? da : void 0,
|
|
13635
13689
|
flex: `0 0 ${String(z)}px`,
|
|
13636
13690
|
minWidth: 0,
|
|
13637
13691
|
// Logical, not marginLeft/marginRight. See the note at
|
|
@@ -13649,35 +13703,35 @@ const Zh = Qe(function({
|
|
|
13649
13703
|
"aria-hidden": "true",
|
|
13650
13704
|
"data-testid": "field-row-caption",
|
|
13651
13705
|
className: "cm-caption",
|
|
13652
|
-
title:
|
|
13653
|
-
children:
|
|
13706
|
+
title: hr(C),
|
|
13707
|
+
children: hr(C)
|
|
13654
13708
|
}
|
|
13655
13709
|
),
|
|
13656
|
-
/* @__PURE__ */ o(
|
|
13657
|
-
] }) :
|
|
13710
|
+
/* @__PURE__ */ o(na, { showLabels: !1, children: fr(C) })
|
|
13711
|
+
] }) : fr(C)
|
|
13658
13712
|
},
|
|
13659
|
-
|
|
13713
|
+
ua(C, H)
|
|
13660
13714
|
)),
|
|
13661
13715
|
/* @__PURE__ */ o(Tt, { children: r })
|
|
13662
13716
|
]
|
|
13663
13717
|
}
|
|
13664
13718
|
);
|
|
13665
|
-
}), Po = 16,
|
|
13719
|
+
}), Po = 16, ma = 4, Op = 20, pa = 220, ha = 2, fa = new RegExp("\\p{Sentence_Terminal}", "u"), Rp = /[.!?]/u, ba = /\s/u;
|
|
13666
13720
|
function Mp(e) {
|
|
13667
13721
|
const t = Array.from(e);
|
|
13668
13722
|
let r = 0, n = 0, a = 0;
|
|
13669
13723
|
for (; n < t.length; ) {
|
|
13670
|
-
if (!
|
|
13724
|
+
if (!fa.test(t[n])) {
|
|
13671
13725
|
n += 1;
|
|
13672
13726
|
continue;
|
|
13673
13727
|
}
|
|
13674
13728
|
let s = n;
|
|
13675
|
-
for (; s + 1 < t.length &&
|
|
13729
|
+
for (; s + 1 < t.length && fa.test(t[s + 1]); )
|
|
13676
13730
|
s += 1;
|
|
13677
13731
|
const i = t[s + 1], d = Rp.test(t[s]);
|
|
13678
|
-
n = s + 1, (!d || i === void 0 ||
|
|
13732
|
+
n = s + 1, (!d || i === void 0 || ba.test(i)) && (r += 1, a = n);
|
|
13679
13733
|
}
|
|
13680
|
-
return t.slice(a).some((s) => !
|
|
13734
|
+
return t.slice(a).some((s) => !ba.test(s)) ? r + 1 : r;
|
|
13681
13735
|
}
|
|
13682
13736
|
function Dp(e) {
|
|
13683
13737
|
return Array.from(e).length;
|
|
@@ -13686,11 +13740,11 @@ function Hp(e, t) {
|
|
|
13686
13740
|
if (e !== "reading" || typeof t != "string")
|
|
13687
13741
|
return;
|
|
13688
13742
|
const r = Dp(t);
|
|
13689
|
-
if (r >
|
|
13690
|
-
return `ProseBlock was given a reading of ${String(r)} characters, and a reading is at most ${String(
|
|
13743
|
+
if (r > pa)
|
|
13744
|
+
return `ProseBlock was given a reading of ${String(r)} characters, and a reading is at most ${String(pa)} characters. Shorten it, or it has stopped being a reading and become an explanation.`;
|
|
13691
13745
|
const n = Mp(t);
|
|
13692
|
-
if (n >
|
|
13693
|
-
return `ProseBlock was given a reading of ${String(n)} sentences, and a reading is at most ${String(
|
|
13746
|
+
if (n > ha)
|
|
13747
|
+
return `ProseBlock was given a reading of ${String(n)} sentences, and a reading is at most ${String(ha)} sentences. Delete any sentence that repeats what is already on screen, and move the rest into an InfoCircle.`;
|
|
13694
13748
|
}
|
|
13695
13749
|
function Bp(e, t) {
|
|
13696
13750
|
if (!(t === void 0 || e === "runRecord"))
|
|
@@ -13712,7 +13766,7 @@ function Qh({ variant: e, children: t, onDetails: r, busy: n, live: a }) {
|
|
|
13712
13766
|
style: {
|
|
13713
13767
|
display: "flex",
|
|
13714
13768
|
alignItems: "flex-start",
|
|
13715
|
-
gap:
|
|
13769
|
+
gap: ma
|
|
13716
13770
|
},
|
|
13717
13771
|
children: [
|
|
13718
13772
|
/* @__PURE__ */ o(nt, { component: "span", id: d, children: c.departure }),
|
|
@@ -13745,7 +13799,7 @@ function Qh({ variant: e, children: t, onDetails: r, busy: n, live: a }) {
|
|
|
13745
13799
|
style: {
|
|
13746
13800
|
display: "flex",
|
|
13747
13801
|
alignItems: "center",
|
|
13748
|
-
gap:
|
|
13802
|
+
gap: ma,
|
|
13749
13803
|
blockSize: Op
|
|
13750
13804
|
},
|
|
13751
13805
|
children: [
|
|
@@ -13788,18 +13842,18 @@ function Qh({ variant: e, children: t, onDetails: r, busy: n, live: a }) {
|
|
|
13788
13842
|
color: "var(--cm-icon-secondary)",
|
|
13789
13843
|
cursor: "pointer"
|
|
13790
13844
|
},
|
|
13791
|
-
children: /* @__PURE__ */ o(
|
|
13845
|
+
children: /* @__PURE__ */ o(ni, { open: !1, rtl: tt(s) })
|
|
13792
13846
|
}
|
|
13793
13847
|
)
|
|
13794
13848
|
]
|
|
13795
13849
|
}
|
|
13796
13850
|
);
|
|
13797
13851
|
}
|
|
13798
|
-
const
|
|
13852
|
+
const br = 4, Fp = 4, Vp = `polygon(0 calc(100% - ${Fp}px), 100% 0, 100% 100%, 0 100%)`, Up = 96, Gp = `linear-gradient(to right, ${Te.SURFACE}, ${Te.ACCENT_GRAPHIC})`, qp = {
|
|
13799
13853
|
sqrt: "scaleSqrt",
|
|
13800
13854
|
linear: "scaleLinear",
|
|
13801
13855
|
log: "scaleLog"
|
|
13802
|
-
},
|
|
13856
|
+
}, ga = {
|
|
13803
13857
|
flex: "0 0 auto",
|
|
13804
13858
|
whiteSpace: "nowrap"
|
|
13805
13859
|
}, Wp = "var(--cm-icon-secondary)";
|
|
@@ -13851,7 +13905,7 @@ function _h({
|
|
|
13851
13905
|
style: {
|
|
13852
13906
|
display: "flex",
|
|
13853
13907
|
alignItems: "center",
|
|
13854
|
-
gap:
|
|
13908
|
+
gap: br,
|
|
13855
13909
|
height: L.ROW_PITCH
|
|
13856
13910
|
},
|
|
13857
13911
|
children: [
|
|
@@ -13867,11 +13921,11 @@ function _h({
|
|
|
13867
13921
|
minWidth: 0,
|
|
13868
13922
|
display: "flex",
|
|
13869
13923
|
alignItems: "center",
|
|
13870
|
-
gap:
|
|
13924
|
+
gap: br
|
|
13871
13925
|
},
|
|
13872
13926
|
children: [
|
|
13873
13927
|
r !== void 0 && /* @__PURE__ */ o(nt, { "data-testid": "ramp-row-a11y-label", id: N, children: r }),
|
|
13874
|
-
/* @__PURE__ */ o(Kt, { span: !0, id: f, "data-testid": "ramp-row-min", className: "cm-chart-text", style:
|
|
13928
|
+
/* @__PURE__ */ o(Kt, { span: !0, id: f, "data-testid": "ramp-row-min", className: "cm-chart-text", style: ga, children: e }),
|
|
13875
13929
|
/* @__PURE__ */ o(
|
|
13876
13930
|
R,
|
|
13877
13931
|
{
|
|
@@ -13891,7 +13945,7 @@ function _h({
|
|
|
13891
13945
|
}
|
|
13892
13946
|
}
|
|
13893
13947
|
),
|
|
13894
|
-
/* @__PURE__ */ o(Kt, { span: !0, id: y, "data-testid": "ramp-row-max", className: "cm-chart-text", style:
|
|
13948
|
+
/* @__PURE__ */ o(Kt, { span: !0, id: y, "data-testid": "ramp-row-max", className: "cm-chart-text", style: ga, children: t }),
|
|
13895
13949
|
v !== void 0 && /* @__PURE__ */ o(nt, { "data-testid": "ramp-row-a11y-scale", id: T, children: v })
|
|
13896
13950
|
]
|
|
13897
13951
|
}
|
|
@@ -13902,7 +13956,7 @@ function _h({
|
|
|
13902
13956
|
style: {
|
|
13903
13957
|
flex: "0 0 auto",
|
|
13904
13958
|
display: "flex",
|
|
13905
|
-
marginInlineStart: L.TRAIL_GAP -
|
|
13959
|
+
marginInlineStart: L.TRAIL_GAP - br
|
|
13906
13960
|
},
|
|
13907
13961
|
children: /* @__PURE__ */ o(Tt, { children: z })
|
|
13908
13962
|
}
|
|
@@ -13991,7 +14045,7 @@ function $h({
|
|
|
13991
14045
|
},
|
|
13992
14046
|
children: [
|
|
13993
14047
|
a === "switch" ? /* @__PURE__ */ o(
|
|
13994
|
-
|
|
14048
|
+
ya,
|
|
13995
14049
|
{
|
|
13996
14050
|
"data-testid": "toggle-row-control",
|
|
13997
14051
|
label: e,
|
|
@@ -14007,7 +14061,7 @@ function $h({
|
|
|
14007
14061
|
styles: y
|
|
14008
14062
|
}
|
|
14009
14063
|
) : /* @__PURE__ */ o(
|
|
14010
|
-
|
|
14064
|
+
Ir,
|
|
14011
14065
|
{
|
|
14012
14066
|
variant: "neutral",
|
|
14013
14067
|
"data-testid": "toggle-row-control",
|
|
@@ -14052,7 +14106,7 @@ function ef({ children: e, label: t, labelledBy: r }) {
|
|
|
14052
14106
|
);
|
|
14053
14107
|
}
|
|
14054
14108
|
function tf(e = "dark") {
|
|
14055
|
-
return
|
|
14109
|
+
return pc(e);
|
|
14056
14110
|
}
|
|
14057
14111
|
const of = {
|
|
14058
14112
|
xs: $t(4),
|
|
@@ -14071,12 +14125,12 @@ const of = {
|
|
|
14071
14125
|
SECTION_GAP: 4
|
|
14072
14126
|
};
|
|
14073
14127
|
export {
|
|
14074
|
-
|
|
14128
|
+
mr as ALIGNMENT_MATRIX_VALUES,
|
|
14075
14129
|
qh as ActionRow,
|
|
14076
14130
|
Gu as AdvancedButton,
|
|
14077
14131
|
zh as AlignmentMatrix,
|
|
14078
14132
|
rf as COMPACT_SIZING,
|
|
14079
|
-
|
|
14133
|
+
_a as ColorPickerPanel,
|
|
14080
14134
|
wh as ComboInput,
|
|
14081
14135
|
lh as CompactColorInput,
|
|
14082
14136
|
Jh as CompoundRow,
|
|
@@ -14087,32 +14141,32 @@ export {
|
|
|
14087
14141
|
Wh as DataRow,
|
|
14088
14142
|
jh as DataRowHeader,
|
|
14089
14143
|
ph as DataTable,
|
|
14090
|
-
|
|
14091
|
-
|
|
14144
|
+
nl as FIELD_GLYPH_NAMES,
|
|
14145
|
+
al as FIELD_LETTERS,
|
|
14092
14146
|
Zt as FieldGlyph,
|
|
14093
14147
|
Zh as FieldRow,
|
|
14094
14148
|
hh as GradientEditor,
|
|
14095
14149
|
Mh as HelpButton,
|
|
14096
14150
|
Yh as HistogramRow,
|
|
14097
14151
|
Uu as InfoCircle,
|
|
14098
|
-
|
|
14152
|
+
li as InlineRename,
|
|
14099
14153
|
oh as LabelsProvider,
|
|
14100
14154
|
of as MANTINE_SPACING,
|
|
14101
|
-
|
|
14102
|
-
|
|
14155
|
+
Xa as MAX_ALPHA_HEX,
|
|
14156
|
+
Ja as MAX_OPACITY_PERCENT,
|
|
14103
14157
|
Th as MenuCheckItem,
|
|
14104
14158
|
Xh as MetricRow,
|
|
14105
14159
|
Ah as ModalFooter,
|
|
14106
14160
|
Dh as NavRail,
|
|
14107
14161
|
L as PANEL_GRID,
|
|
14108
14162
|
Te as PANEL_INK,
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14163
|
+
ol as POPOUT_GAP,
|
|
14164
|
+
rl as POPOUT_NESTED_GAP,
|
|
14165
|
+
vn as POPOUT_Z_INDEX_BASE,
|
|
14112
14166
|
Lh as PageList,
|
|
14113
14167
|
Hm as PageRow,
|
|
14114
14168
|
zp as PanelField,
|
|
14115
|
-
|
|
14169
|
+
na as PanelLabelsProvider,
|
|
14116
14170
|
lo as Popout,
|
|
14117
14171
|
sh as PopoutButton,
|
|
14118
14172
|
Du as PopoutManager,
|
|
@@ -14121,7 +14175,7 @@ export {
|
|
|
14121
14175
|
Bh as QuickActions,
|
|
14122
14176
|
Hh as RailButton,
|
|
14123
14177
|
_h as RampRow,
|
|
14124
|
-
|
|
14178
|
+
mi as RankChip,
|
|
14125
14179
|
uh as ResetButton,
|
|
14126
14180
|
Ih as ResizeHandle,
|
|
14127
14181
|
Ph as ResultRow,
|
|
@@ -14149,29 +14203,29 @@ export {
|
|
|
14149
14203
|
th as UI_GLYPH_NAMES,
|
|
14150
14204
|
xe as UiGlyph,
|
|
14151
14205
|
kh as VariablePill,
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14206
|
+
Mc as compactBrandColors,
|
|
14207
|
+
Hc as compactColors,
|
|
14208
|
+
Rc as compactDarkColors,
|
|
14155
14209
|
jd as compactGlobalCss,
|
|
14156
|
-
|
|
14210
|
+
Dc as compactGraphtyColors,
|
|
14157
14211
|
rh as compactTheme,
|
|
14158
14212
|
Zd as compactThemeOverride,
|
|
14159
14213
|
Bo as createColorStop,
|
|
14160
14214
|
Jd as createCompactTheme,
|
|
14161
14215
|
nm as createDefaultGradientStops,
|
|
14162
|
-
|
|
14216
|
+
Ka as defaultLabels,
|
|
14163
14217
|
qo as ensureCompactStyles,
|
|
14164
14218
|
po as getActivationMeta,
|
|
14165
|
-
|
|
14166
|
-
|
|
14219
|
+
Ra as isFieldGlyphName,
|
|
14220
|
+
Ma as isFieldLetter,
|
|
14167
14221
|
tu as isLightColor,
|
|
14168
14222
|
tt as isRtl,
|
|
14169
14223
|
$d as isValidHex,
|
|
14170
14224
|
ou as mixHex,
|
|
14171
14225
|
Oh as moveTreeItem,
|
|
14172
14226
|
wt as normalizeHexa,
|
|
14173
|
-
|
|
14174
|
-
|
|
14227
|
+
Gr as opacityToAlphaHex,
|
|
14228
|
+
Za as parseAlphaFromHexa,
|
|
14175
14229
|
nh as parseHexaColor,
|
|
14176
14230
|
Gl as parseLocaleNumber,
|
|
14177
14231
|
qm as renameTreeItem,
|
|
@@ -14184,7 +14238,7 @@ export {
|
|
|
14184
14238
|
Lt as useNumberFormatter,
|
|
14185
14239
|
Go as useNumberParser,
|
|
14186
14240
|
ql as useOrdinalFormatter,
|
|
14187
|
-
|
|
14241
|
+
Xr as usePanelLabels,
|
|
14188
14242
|
ch as usePopoutManager,
|
|
14189
14243
|
vu as usePopoutRegion,
|
|
14190
14244
|
Ch as useToast
|