@graphty/compact-mantine 0.8.5 → 0.8.7
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/LICENSE +21 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +409 -404
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DEFAULT_THEME as lo, CloseButton as co, ActionIcon as Pe, Button as
|
|
1
|
+
import { DEFAULT_THEME as lo, CloseButton as co, ActionIcon as Pe, Button as Ko, RangeSlider as Xo, Radio as qo, Slider as ln, Switch as uo, Checkbox as gn, SegmentedControl as mn, Kbd as Zo, Indicator as Jo, ThemeIcon as Qo, Avatar as ei, Pill as ti, Badge as po, Text as De, RingProgress as ni, Progress as cn, Loader as oi, InputClearButton as ii, JsonInput as ri, FileInput as ai, PillsInput as si, TagsInput as li, MultiSelect as ci, Autocomplete as di, PasswordInput as ui, Textarea as pi, Select as xn, NumberInput as $t, TextInput as Bt, Tabs as fi, Stepper as hi, Pagination as gi, NavLink as mi, Burger as xi, Anchor as bi, HoverCard as vi, Popover as yi, Tooltip as wi, Menu as Si, mergeMantineTheme as Ei, createTheme as Ii, Box as h, useDirection as Ti, Group as qe, VisuallyHidden as Te, Paper as zi, ColorSwatch as Ci, ColorPicker as Pi, Divider as bn, Stack as Et, UnstyledButton as Je, Collapse as Ri, Accordion as Lt, Table as rt, useComputedColorScheme as Ai, rem as wt } from "@mantine/core";
|
|
2
2
|
import { jsx as n, jsxs as S, Fragment as q } from "react/jsx-runtime";
|
|
3
|
-
import { useUncontrolled as ae, useIsomorphicEffect as
|
|
4
|
-
import Ie, { useContext as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { useTable as
|
|
7
|
-
import { useVirtualizer as
|
|
3
|
+
import { useUncontrolled as ae, useIsomorphicEffect as Li, useHover as fo, useMediaQuery as ho } from "@mantine/hooks";
|
|
4
|
+
import Ie, { useContext as _e, useMemo as Z, createContext as lt, useCallback as F, useId as ue, useRef as X, isValidElement as go, cloneElement as mo, useEffect as Ee, useState as Oe, forwardRef as Ut, useLayoutEffect as Oi, useImperativeHandle as _i } from "react";
|
|
5
|
+
import { createPortal as Hi } from "react-dom";
|
|
6
|
+
import { useTable as Ni, functionalUpdate as Ot, tableFeatures as Di, rowSortingFeature as ki, rowSelectionFeature as Gi, globalFilteringFeature as Mi, columnVisibilityFeature as Fi, columnOrderingFeature as Vi, columnFilteringFeature as $i, createSortedRowModel as Bi, createFilteredRowModel as Ui } from "@tanstack/react-table";
|
|
7
|
+
import { useVirtualizer as Wi } from "@tanstack/react-virtual";
|
|
8
8
|
const c = {
|
|
9
9
|
/** the width of the panel column every row is laid out in */
|
|
10
10
|
WIDTH: 280,
|
|
@@ -214,7 +214,7 @@ const c = {
|
|
|
214
214
|
SUCCESS: "var(--mantine-color-green-6)",
|
|
215
215
|
/** danger (#fa5252) */
|
|
216
216
|
DANGER: "var(--mantine-color-red-6)"
|
|
217
|
-
},
|
|
217
|
+
}, Yi = [
|
|
218
218
|
"#d5d7da",
|
|
219
219
|
// 0 - lightest (light mode text)
|
|
220
220
|
"#a3a8b1",
|
|
@@ -235,10 +235,10 @@ const c = {
|
|
|
235
235
|
// 8
|
|
236
236
|
"#0d1117"
|
|
237
237
|
// 9 - darkest (main background)
|
|
238
|
-
],
|
|
238
|
+
], ji = {
|
|
239
239
|
...lo.colors,
|
|
240
|
-
dark:
|
|
241
|
-
},
|
|
240
|
+
dark: Yi
|
|
241
|
+
}, Ki = {
|
|
242
242
|
compactSize: "sm",
|
|
243
243
|
sizes: {
|
|
244
244
|
xs: { "--button-height": "20px", "--button-fz": "10px", "--button-padding-x": "6px" },
|
|
@@ -247,7 +247,7 @@ const c = {
|
|
|
247
247
|
lg: { "--button-height": "36px", "--button-fz": "15px", "--button-padding-x": "16px" },
|
|
248
248
|
xl: { "--button-height": "44px", "--button-fz": "17px", "--button-padding-x": "20px" }
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, Xi = {
|
|
251
251
|
compactSize: "sm",
|
|
252
252
|
sizes: {
|
|
253
253
|
xs: { "--ai-size": "18px" },
|
|
@@ -257,7 +257,7 @@ const c = {
|
|
|
257
257
|
xl: { "--ai-size": "44px" }
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
function
|
|
260
|
+
function qi(e) {
|
|
261
261
|
return e === "light" ? { "--ai-bd": "1px solid var(--ai-color)" } : {};
|
|
262
262
|
}
|
|
263
263
|
const xo = {
|
|
@@ -274,13 +274,13 @@ function B(e, t) {
|
|
|
274
274
|
const i = t == null ? e.compactSize : String(t);
|
|
275
275
|
return e.sizes[i] ?? e.sizes[e.compactSize];
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
Button:
|
|
277
|
+
const Zi = {
|
|
278
|
+
Button: Ko.extend({
|
|
279
279
|
defaultProps: {
|
|
280
280
|
size: "sm"
|
|
281
281
|
},
|
|
282
282
|
vars: (e, t) => ({
|
|
283
|
-
root: B(
|
|
283
|
+
root: B(Ki, t == null ? void 0 : t.size)
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
286
|
ActionIcon: Pe.extend({
|
|
@@ -290,8 +290,8 @@ const qi = {
|
|
|
290
290
|
},
|
|
291
291
|
vars: (e, t) => ({
|
|
292
292
|
root: {
|
|
293
|
-
...B(
|
|
294
|
-
...
|
|
293
|
+
...B(Xi, t == null ? void 0 : t.size),
|
|
294
|
+
...qi(t == null ? void 0 : t.variant)
|
|
295
295
|
}
|
|
296
296
|
})
|
|
297
297
|
}),
|
|
@@ -303,7 +303,7 @@ const qi = {
|
|
|
303
303
|
root: B(xo, t == null ? void 0 : t.size)
|
|
304
304
|
})
|
|
305
305
|
})
|
|
306
|
-
},
|
|
306
|
+
}, Ji = {
|
|
307
307
|
compactSize: "sm",
|
|
308
308
|
sizes: {
|
|
309
309
|
xs: {
|
|
@@ -342,7 +342,7 @@ const qi = {
|
|
|
342
342
|
"--switch-label-font-size": "11px"
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
},
|
|
345
|
+
}, Qi = {
|
|
346
346
|
compactSize: "sm",
|
|
347
347
|
sizes: {
|
|
348
348
|
xs: { "--checkbox-size": "12px" },
|
|
@@ -351,7 +351,7 @@ const qi = {
|
|
|
351
351
|
lg: { "--checkbox-size": "24px" },
|
|
352
352
|
xl: { "--checkbox-size": "28px" }
|
|
353
353
|
}
|
|
354
|
-
},
|
|
354
|
+
}, er = {
|
|
355
355
|
compactSize: "sm",
|
|
356
356
|
sizes: {
|
|
357
357
|
xs: { "--radio-size": "12px", "--radio-icon-size": "5px" },
|
|
@@ -369,7 +369,7 @@ const qi = {
|
|
|
369
369
|
lg: { "--slider-size": "8px", "--slider-thumb-size": "20px" },
|
|
370
370
|
xl: { "--slider-size": "10px", "--slider-thumb-size": "24px" }
|
|
371
371
|
}
|
|
372
|
-
},
|
|
372
|
+
}, tr = {
|
|
373
373
|
compactSize: "sm",
|
|
374
374
|
sizes: {
|
|
375
375
|
xs: { "--sc-font-size": "9px", "--sc-padding": "2px 6px" },
|
|
@@ -378,27 +378,27 @@ const qi = {
|
|
|
378
378
|
lg: { "--sc-font-size": "14px", "--sc-padding": "8px 12px" },
|
|
379
379
|
xl: { "--sc-font-size": "16px", "--sc-padding": "10px 16px" }
|
|
380
380
|
}
|
|
381
|
-
}, tr = {
|
|
382
|
-
backgroundColor: "transparent"
|
|
383
381
|
}, nr = {
|
|
382
|
+
backgroundColor: "transparent"
|
|
383
|
+
}, or = {
|
|
384
384
|
backgroundColor: "light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-6))"
|
|
385
385
|
}, Kt = {
|
|
386
386
|
fontSize: 11
|
|
387
387
|
}, Cn = {
|
|
388
388
|
fontSize: 10,
|
|
389
389
|
marginTop: 2
|
|
390
|
-
},
|
|
390
|
+
}, ir = {
|
|
391
391
|
SegmentedControl: mn.extend({
|
|
392
392
|
defaultProps: {
|
|
393
393
|
size: "sm",
|
|
394
394
|
withItemsBorders: !1
|
|
395
395
|
},
|
|
396
396
|
vars: (e, t) => ({
|
|
397
|
-
root: B(
|
|
397
|
+
root: B(tr, t == null ? void 0 : t.size)
|
|
398
398
|
}),
|
|
399
399
|
styles: {
|
|
400
|
-
root:
|
|
401
|
-
indicator:
|
|
400
|
+
root: nr,
|
|
401
|
+
indicator: or
|
|
402
402
|
}
|
|
403
403
|
}),
|
|
404
404
|
Checkbox: gn.extend({
|
|
@@ -406,7 +406,7 @@ const qi = {
|
|
|
406
406
|
size: "sm"
|
|
407
407
|
},
|
|
408
408
|
vars: (e, t) => ({
|
|
409
|
-
root: B(
|
|
409
|
+
root: B(Qi, t == null ? void 0 : t.size)
|
|
410
410
|
}),
|
|
411
411
|
styles: {
|
|
412
412
|
label: Kt
|
|
@@ -417,7 +417,7 @@ const qi = {
|
|
|
417
417
|
size: "sm"
|
|
418
418
|
},
|
|
419
419
|
vars: (e, t) => ({
|
|
420
|
-
root: B(
|
|
420
|
+
root: B(Ji, t == null ? void 0 : t.size)
|
|
421
421
|
}),
|
|
422
422
|
styles: {
|
|
423
423
|
label: Kt
|
|
@@ -434,18 +434,18 @@ const qi = {
|
|
|
434
434
|
markLabel: Cn
|
|
435
435
|
}
|
|
436
436
|
}),
|
|
437
|
-
Radio:
|
|
437
|
+
Radio: qo.extend({
|
|
438
438
|
defaultProps: {
|
|
439
439
|
size: "sm"
|
|
440
440
|
},
|
|
441
441
|
vars: (e, t) => ({
|
|
442
|
-
root: B(
|
|
442
|
+
root: B(er, t == null ? void 0 : t.size)
|
|
443
443
|
}),
|
|
444
444
|
styles: {
|
|
445
445
|
label: Kt
|
|
446
446
|
}
|
|
447
447
|
}),
|
|
448
|
-
RangeSlider:
|
|
448
|
+
RangeSlider: Xo.extend({
|
|
449
449
|
defaultProps: {
|
|
450
450
|
size: "sm"
|
|
451
451
|
},
|
|
@@ -456,7 +456,7 @@ const qi = {
|
|
|
456
456
|
markLabel: Cn
|
|
457
457
|
}
|
|
458
458
|
})
|
|
459
|
-
},
|
|
459
|
+
}, rr = {
|
|
460
460
|
compactSize: "sm",
|
|
461
461
|
sizes: {
|
|
462
462
|
xs: { "--badge-height": "12px", "--badge-fz": "8px", "--badge-padding-x": "3px" },
|
|
@@ -465,7 +465,7 @@ const qi = {
|
|
|
465
465
|
lg: { "--badge-height": "22px", "--badge-fz": "13px", "--badge-padding-x": "8px" },
|
|
466
466
|
xl: { "--badge-height": "26px", "--badge-fz": "15px", "--badge-padding-x": "10px" }
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, ar = {
|
|
469
469
|
compactSize: "sm",
|
|
470
470
|
sizes: {
|
|
471
471
|
xs: { "--avatar-size": "18px" },
|
|
@@ -474,7 +474,7 @@ const qi = {
|
|
|
474
474
|
lg: { "--avatar-size": "36px" },
|
|
475
475
|
xl: { "--avatar-size": "44px" }
|
|
476
476
|
}
|
|
477
|
-
},
|
|
477
|
+
}, sr = {
|
|
478
478
|
compactSize: "sm",
|
|
479
479
|
sizes: {
|
|
480
480
|
xs: { "--ti-size": "18px" },
|
|
@@ -483,7 +483,7 @@ const qi = {
|
|
|
483
483
|
lg: { "--ti-size": "36px" },
|
|
484
484
|
xl: { "--ti-size": "44px" }
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, lr = {
|
|
487
487
|
compactSize: "sm",
|
|
488
488
|
sizes: {
|
|
489
489
|
xs: { "--indicator-size": "6px" },
|
|
@@ -492,7 +492,7 @@ const qi = {
|
|
|
492
492
|
lg: { "--indicator-size": "12px" },
|
|
493
493
|
xl: { "--indicator-size": "14px" }
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, cr = {
|
|
496
496
|
compactSize: "sm",
|
|
497
497
|
sizes: {
|
|
498
498
|
xs: { "--kbd-fz": "9px", "--kbd-padding": "1px 3px" },
|
|
@@ -501,7 +501,7 @@ const qi = {
|
|
|
501
501
|
lg: { "--kbd-fz": "14px", "--kbd-padding": "4px 8px" },
|
|
502
502
|
xl: { "--kbd-fz": "16px", "--kbd-padding": "5px 10px" }
|
|
503
503
|
}
|
|
504
|
-
},
|
|
504
|
+
}, dr = {
|
|
505
505
|
compactSize: "sm",
|
|
506
506
|
sizes: {
|
|
507
507
|
xs: { "--pill-height": "14px", "--pill-fz": "9px" },
|
|
@@ -510,7 +510,7 @@ const qi = {
|
|
|
510
510
|
lg: { "--pill-height": "24px", "--pill-fz": "14px" },
|
|
511
511
|
xl: { "--pill-height": "28px", "--pill-fz": "16px" }
|
|
512
512
|
}
|
|
513
|
-
},
|
|
513
|
+
}, ur = {
|
|
514
514
|
Text: De.extend({
|
|
515
515
|
// Text does NOT set a default size or vars - it uses the global fontSizes
|
|
516
516
|
// from the theme (compactFontSizes) which are already set correctly.
|
|
@@ -521,50 +521,50 @@ const qi = {
|
|
|
521
521
|
size: "sm"
|
|
522
522
|
},
|
|
523
523
|
vars: (e, t) => ({
|
|
524
|
-
root: B(
|
|
524
|
+
root: B(rr, t == null ? void 0 : t.size)
|
|
525
525
|
})
|
|
526
526
|
}),
|
|
527
|
-
Pill:
|
|
527
|
+
Pill: ti.extend({
|
|
528
528
|
defaultProps: {
|
|
529
529
|
size: "sm"
|
|
530
530
|
},
|
|
531
531
|
vars: (e, t) => ({
|
|
532
|
-
root: B(
|
|
532
|
+
root: B(dr, t == null ? void 0 : t.size)
|
|
533
533
|
})
|
|
534
534
|
}),
|
|
535
|
-
Avatar:
|
|
535
|
+
Avatar: ei.extend({
|
|
536
536
|
defaultProps: {
|
|
537
537
|
size: "sm"
|
|
538
538
|
},
|
|
539
539
|
vars: (e, t) => ({
|
|
540
|
-
root: B(
|
|
540
|
+
root: B(ar, t == null ? void 0 : t.size)
|
|
541
541
|
})
|
|
542
542
|
}),
|
|
543
|
-
ThemeIcon:
|
|
543
|
+
ThemeIcon: Qo.extend({
|
|
544
544
|
defaultProps: {
|
|
545
545
|
size: "sm"
|
|
546
546
|
},
|
|
547
547
|
vars: (e, t) => ({
|
|
548
|
-
root: B(
|
|
548
|
+
root: B(sr, t == null ? void 0 : t.size)
|
|
549
549
|
})
|
|
550
550
|
}),
|
|
551
|
-
Indicator:
|
|
551
|
+
Indicator: Jo.extend({
|
|
552
552
|
defaultProps: {
|
|
553
553
|
size: "sm"
|
|
554
554
|
},
|
|
555
555
|
vars: (e, t) => ({
|
|
556
|
-
root: B(
|
|
556
|
+
root: B(lr, t == null ? void 0 : t.size)
|
|
557
557
|
})
|
|
558
558
|
}),
|
|
559
|
-
Kbd:
|
|
559
|
+
Kbd: Zo.extend({
|
|
560
560
|
defaultProps: {
|
|
561
561
|
size: "sm"
|
|
562
562
|
},
|
|
563
563
|
vars: (e, t) => ({
|
|
564
|
-
root: B(
|
|
564
|
+
root: B(cr, t == null ? void 0 : t.size)
|
|
565
565
|
})
|
|
566
566
|
})
|
|
567
|
-
},
|
|
567
|
+
}, pr = {
|
|
568
568
|
compactSize: "sm",
|
|
569
569
|
sizes: {
|
|
570
570
|
xs: { "--loader-size": "14px" },
|
|
@@ -573,7 +573,7 @@ const qi = {
|
|
|
573
573
|
lg: { "--loader-size": "30px" },
|
|
574
574
|
xl: { "--loader-size": "38px" }
|
|
575
575
|
}
|
|
576
|
-
},
|
|
576
|
+
}, fr = {
|
|
577
577
|
compactSize: "sm",
|
|
578
578
|
sizes: {
|
|
579
579
|
xs: { "--progress-size": "2px" },
|
|
@@ -582,17 +582,17 @@ const qi = {
|
|
|
582
582
|
lg: { "--progress-size": "8px" },
|
|
583
583
|
xl: { "--progress-size": "10px" }
|
|
584
584
|
}
|
|
585
|
-
},
|
|
585
|
+
}, hr = {
|
|
586
586
|
label: {
|
|
587
587
|
fontSize: 9
|
|
588
588
|
}
|
|
589
|
-
},
|
|
590
|
-
Loader:
|
|
589
|
+
}, gr = {
|
|
590
|
+
Loader: oi.extend({
|
|
591
591
|
defaultProps: {
|
|
592
592
|
size: "sm"
|
|
593
593
|
},
|
|
594
594
|
vars: (e, t) => ({
|
|
595
|
-
root: B(
|
|
595
|
+
root: B(pr, t == null ? void 0 : t.size)
|
|
596
596
|
})
|
|
597
597
|
}),
|
|
598
598
|
Progress: cn.extend({
|
|
@@ -600,18 +600,18 @@ const qi = {
|
|
|
600
600
|
size: "sm"
|
|
601
601
|
},
|
|
602
602
|
vars: (e, t) => ({
|
|
603
|
-
root: B(
|
|
603
|
+
root: B(fr, t == null ? void 0 : t.size)
|
|
604
604
|
}),
|
|
605
|
-
styles:
|
|
605
|
+
styles: hr
|
|
606
606
|
}),
|
|
607
607
|
// Note: RingProgress uses numeric size directly in SVG calculations,
|
|
608
608
|
// so we can't use CSS variables or string size prop.
|
|
609
609
|
// Use size={48} in components for compact-equivalent sizing.
|
|
610
|
-
RingProgress:
|
|
610
|
+
RingProgress: ni.extend({
|
|
611
611
|
// No defaultProps - RingProgress requires numeric size
|
|
612
612
|
// Use size={48} in your components for compact sizing
|
|
613
613
|
})
|
|
614
|
-
}, Pn = 1e3, Xe = 1100,
|
|
614
|
+
}, Pn = 1e3, Xe = 1100, mr = 8, xr = 4, bo = "light-dark(var(--mantine-primary-color-filled), var(--mantine-primary-color-5))", Wt = {
|
|
615
615
|
"--input-height": "24px",
|
|
616
616
|
"--input-size": "24px",
|
|
617
617
|
// For components that use this variable
|
|
@@ -657,7 +657,7 @@ const qi = {
|
|
|
657
657
|
}, Rn = {
|
|
658
658
|
label: gt,
|
|
659
659
|
input: vn
|
|
660
|
-
},
|
|
660
|
+
}, _t = {
|
|
661
661
|
dropdown: {
|
|
662
662
|
padding: 4,
|
|
663
663
|
border: "none",
|
|
@@ -731,7 +731,7 @@ const St = {
|
|
|
731
731
|
lg: Ht("15px"),
|
|
732
732
|
xl: Ht("17px")
|
|
733
733
|
}
|
|
734
|
-
},
|
|
734
|
+
}, br = {
|
|
735
735
|
compactSize: "sm",
|
|
736
736
|
sizes: {
|
|
737
737
|
xs: { ...Ce("20px", "10px"), "--input-right-section-width": "20px" },
|
|
@@ -740,7 +740,7 @@ const St = {
|
|
|
740
740
|
lg: { ...Ce("36px", "15px"), "--input-right-section-width": "36px" },
|
|
741
741
|
xl: { ...Ce("44px", "17px"), "--input-right-section-width": "44px" }
|
|
742
742
|
}
|
|
743
|
-
},
|
|
743
|
+
}, vr = {
|
|
744
744
|
compactSize: "sm",
|
|
745
745
|
sizes: {
|
|
746
746
|
xs: { "--ni-chevron-size": "8px" },
|
|
@@ -749,7 +749,7 @@ const St = {
|
|
|
749
749
|
lg: { "--ni-chevron-size": "14px" },
|
|
750
750
|
xl: { "--ni-chevron-size": "16px" }
|
|
751
751
|
}
|
|
752
|
-
},
|
|
752
|
+
}, yr = {
|
|
753
753
|
compactSize: "sm",
|
|
754
754
|
sizes: {
|
|
755
755
|
xs: { ...Ce("20px", "10px"), "--combobox-chevron-size": "10px" },
|
|
@@ -758,7 +758,7 @@ const St = {
|
|
|
758
758
|
lg: { ...Ce("36px", "15px"), "--combobox-chevron-size": "16px" },
|
|
759
759
|
xl: { ...Ce("44px", "17px"), "--combobox-chevron-size": "18px" }
|
|
760
760
|
}
|
|
761
|
-
},
|
|
761
|
+
}, wr = {
|
|
762
762
|
TextInput: Bt.extend({
|
|
763
763
|
defaultProps: {
|
|
764
764
|
size: "sm",
|
|
@@ -777,8 +777,8 @@ const St = {
|
|
|
777
777
|
},
|
|
778
778
|
vars: (e, t) => ({
|
|
779
779
|
root: {},
|
|
780
|
-
wrapper: B(
|
|
781
|
-
controls: B(
|
|
780
|
+
wrapper: B(br, t == null ? void 0 : t.size),
|
|
781
|
+
controls: B(vr, t == null ? void 0 : t.size)
|
|
782
782
|
}),
|
|
783
783
|
styles: {
|
|
784
784
|
label: gt,
|
|
@@ -800,10 +800,10 @@ const St = {
|
|
|
800
800
|
}),
|
|
801
801
|
styles: {
|
|
802
802
|
...ht,
|
|
803
|
-
...
|
|
803
|
+
..._t
|
|
804
804
|
}
|
|
805
805
|
}),
|
|
806
|
-
Textarea:
|
|
806
|
+
Textarea: pi.extend({
|
|
807
807
|
defaultProps: {
|
|
808
808
|
size: "sm",
|
|
809
809
|
variant: "filled"
|
|
@@ -814,7 +814,7 @@ const St = {
|
|
|
814
814
|
}),
|
|
815
815
|
styles: Rn
|
|
816
816
|
}),
|
|
817
|
-
PasswordInput:
|
|
817
|
+
PasswordInput: ui.extend({
|
|
818
818
|
defaultProps: {
|
|
819
819
|
size: "sm",
|
|
820
820
|
variant: "filled"
|
|
@@ -833,7 +833,7 @@ const St = {
|
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
}),
|
|
836
|
-
Autocomplete:
|
|
836
|
+
Autocomplete: di.extend({
|
|
837
837
|
defaultProps: {
|
|
838
838
|
size: "sm",
|
|
839
839
|
variant: "filled",
|
|
@@ -845,10 +845,10 @@ const St = {
|
|
|
845
845
|
}),
|
|
846
846
|
styles: {
|
|
847
847
|
...ht,
|
|
848
|
-
...
|
|
848
|
+
..._t
|
|
849
849
|
}
|
|
850
850
|
}),
|
|
851
|
-
MultiSelect:
|
|
851
|
+
MultiSelect: ci.extend({
|
|
852
852
|
defaultProps: {
|
|
853
853
|
size: "sm",
|
|
854
854
|
variant: "filled",
|
|
@@ -856,11 +856,11 @@ const St = {
|
|
|
856
856
|
},
|
|
857
857
|
vars: (e, t) => ({
|
|
858
858
|
root: {},
|
|
859
|
-
wrapper: B(
|
|
859
|
+
wrapper: B(yr, t == null ? void 0 : t.size)
|
|
860
860
|
}),
|
|
861
861
|
styles: {
|
|
862
862
|
label: gt,
|
|
863
|
-
...
|
|
863
|
+
..._t,
|
|
864
864
|
...Xt,
|
|
865
865
|
inputField: {
|
|
866
866
|
minWidth: 60,
|
|
@@ -868,7 +868,7 @@ const St = {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
}),
|
|
871
|
-
TagsInput:
|
|
871
|
+
TagsInput: li.extend({
|
|
872
872
|
defaultProps: {
|
|
873
873
|
size: "sm",
|
|
874
874
|
variant: "filled",
|
|
@@ -880,7 +880,7 @@ const St = {
|
|
|
880
880
|
}),
|
|
881
881
|
styles: {
|
|
882
882
|
label: gt,
|
|
883
|
-
...
|
|
883
|
+
..._t,
|
|
884
884
|
...Xt,
|
|
885
885
|
inputField: {
|
|
886
886
|
minWidth: 30,
|
|
@@ -888,7 +888,7 @@ const St = {
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
}),
|
|
891
|
-
PillsInput:
|
|
891
|
+
PillsInput: si.extend({
|
|
892
892
|
defaultProps: {
|
|
893
893
|
size: "sm",
|
|
894
894
|
variant: "filled"
|
|
@@ -902,7 +902,7 @@ const St = {
|
|
|
902
902
|
...Xt
|
|
903
903
|
}
|
|
904
904
|
}),
|
|
905
|
-
FileInput:
|
|
905
|
+
FileInput: ai.extend({
|
|
906
906
|
defaultProps: {
|
|
907
907
|
size: "sm",
|
|
908
908
|
variant: "filled"
|
|
@@ -913,7 +913,7 @@ const St = {
|
|
|
913
913
|
}),
|
|
914
914
|
styles: ht
|
|
915
915
|
}),
|
|
916
|
-
JsonInput:
|
|
916
|
+
JsonInput: ri.extend({
|
|
917
917
|
defaultProps: {
|
|
918
918
|
size: "sm",
|
|
919
919
|
variant: "filled"
|
|
@@ -928,7 +928,7 @@ const St = {
|
|
|
928
928
|
// from the same --cb-size / --cb-icon-size pair, so it shares
|
|
929
929
|
// compactCloseButtonScale rather than repeating its numbers. Both default to
|
|
930
930
|
// xs, that scale's compact entry.
|
|
931
|
-
InputClearButton:
|
|
931
|
+
InputClearButton: ii.extend({
|
|
932
932
|
defaultProps: {
|
|
933
933
|
size: "xs"
|
|
934
934
|
},
|
|
@@ -936,7 +936,7 @@ const St = {
|
|
|
936
936
|
root: B(xo, t == null ? void 0 : t.size)
|
|
937
937
|
})
|
|
938
938
|
})
|
|
939
|
-
},
|
|
939
|
+
}, Sr = {
|
|
940
940
|
compactSize: "sm",
|
|
941
941
|
sizes: {
|
|
942
942
|
xs: { "--pagination-control-size": "20px", "--pagination-control-fz": "10px" },
|
|
@@ -945,7 +945,7 @@ const St = {
|
|
|
945
945
|
lg: { "--pagination-control-size": "36px", "--pagination-control-fz": "15px" },
|
|
946
946
|
xl: { "--pagination-control-size": "44px", "--pagination-control-fz": "17px" }
|
|
947
947
|
}
|
|
948
|
-
},
|
|
948
|
+
}, Er = {
|
|
949
949
|
compactSize: "sm",
|
|
950
950
|
sizes: {
|
|
951
951
|
xs: { "--stepper-icon-size": "20px", "--stepper-fz": "10px", "--stepper-spacing": "6px" },
|
|
@@ -954,7 +954,7 @@ const St = {
|
|
|
954
954
|
lg: { "--stepper-icon-size": "36px", "--stepper-fz": "15px", "--stepper-spacing": "16px" },
|
|
955
955
|
xl: { "--stepper-icon-size": "44px", "--stepper-fz": "17px", "--stepper-spacing": "20px" }
|
|
956
956
|
}
|
|
957
|
-
},
|
|
957
|
+
}, Ir = {
|
|
958
958
|
compactSize: "sm",
|
|
959
959
|
sizes: {
|
|
960
960
|
xs: { "--burger-size": "14px", "--burger-line-size": "2px" },
|
|
@@ -963,11 +963,11 @@ const St = {
|
|
|
963
963
|
lg: { "--burger-size": "30px", "--burger-line-size": "3px" },
|
|
964
964
|
xl: { "--burger-size": "38px", "--burger-line-size": "4px" }
|
|
965
965
|
}
|
|
966
|
-
},
|
|
966
|
+
}, Tr = {
|
|
967
967
|
root: {
|
|
968
968
|
fontSize: 11
|
|
969
969
|
}
|
|
970
|
-
},
|
|
970
|
+
}, zr = {
|
|
971
971
|
root: {
|
|
972
972
|
fontSize: 11,
|
|
973
973
|
minHeight: 28
|
|
@@ -975,116 +975,116 @@ const St = {
|
|
|
975
975
|
label: {
|
|
976
976
|
fontSize: 11
|
|
977
977
|
}
|
|
978
|
-
},
|
|
978
|
+
}, Cr = {
|
|
979
979
|
tab: {
|
|
980
980
|
fontSize: 11,
|
|
981
981
|
padding: "6px 10px"
|
|
982
982
|
}
|
|
983
|
-
},
|
|
984
|
-
Anchor:
|
|
983
|
+
}, Pr = {
|
|
984
|
+
Anchor: bi.extend({
|
|
985
985
|
defaultProps: {
|
|
986
986
|
size: "sm"
|
|
987
987
|
},
|
|
988
|
-
styles:
|
|
988
|
+
styles: Tr
|
|
989
989
|
}),
|
|
990
|
-
Burger:
|
|
990
|
+
Burger: xi.extend({
|
|
991
991
|
defaultProps: {
|
|
992
992
|
size: "sm"
|
|
993
993
|
},
|
|
994
994
|
vars: (e, t) => ({
|
|
995
|
-
root: B(
|
|
995
|
+
root: B(Ir, t == null ? void 0 : t.size)
|
|
996
996
|
})
|
|
997
997
|
}),
|
|
998
|
-
NavLink:
|
|
998
|
+
NavLink: mi.extend({
|
|
999
999
|
// NavLink does not have a size prop, only styles for compact appearance
|
|
1000
|
-
styles:
|
|
1000
|
+
styles: zr
|
|
1001
1001
|
}),
|
|
1002
|
-
Pagination:
|
|
1002
|
+
Pagination: gi.extend({
|
|
1003
1003
|
defaultProps: {
|
|
1004
1004
|
size: "sm"
|
|
1005
1005
|
},
|
|
1006
1006
|
vars: (e, t) => ({
|
|
1007
|
-
root: B(
|
|
1007
|
+
root: B(Sr, t == null ? void 0 : t.size)
|
|
1008
1008
|
})
|
|
1009
1009
|
}),
|
|
1010
|
-
Stepper:
|
|
1010
|
+
Stepper: hi.extend({
|
|
1011
1011
|
defaultProps: {
|
|
1012
1012
|
size: "sm"
|
|
1013
1013
|
},
|
|
1014
1014
|
vars: (e, t) => ({
|
|
1015
|
-
root: B(
|
|
1015
|
+
root: B(Er, t == null ? void 0 : t.size)
|
|
1016
1016
|
})
|
|
1017
1017
|
}),
|
|
1018
|
-
Tabs:
|
|
1018
|
+
Tabs: fi.extend({
|
|
1019
1019
|
// Tabs does not have a size prop, only styles for compact appearance
|
|
1020
|
-
styles:
|
|
1020
|
+
styles: Cr
|
|
1021
1021
|
})
|
|
1022
|
-
}, Pr = {
|
|
1023
|
-
"--menu-item-fz": "11px"
|
|
1024
1022
|
}, Rr = {
|
|
1023
|
+
"--menu-item-fz": "11px"
|
|
1024
|
+
}, Ar = {
|
|
1025
1025
|
tooltip: {
|
|
1026
1026
|
fontSize: 11,
|
|
1027
1027
|
padding: "4px 8px"
|
|
1028
1028
|
}
|
|
1029
|
-
},
|
|
1029
|
+
}, Lr = {
|
|
1030
1030
|
dropdown: {
|
|
1031
1031
|
padding: 8
|
|
1032
1032
|
}
|
|
1033
|
-
},
|
|
1033
|
+
}, Or = {
|
|
1034
1034
|
dropdown: {
|
|
1035
1035
|
padding: 8
|
|
1036
1036
|
}
|
|
1037
1037
|
}, _r = {
|
|
1038
|
-
Menu:
|
|
1038
|
+
Menu: Si.extend({
|
|
1039
1039
|
defaultProps: {
|
|
1040
1040
|
zIndex: Xe
|
|
1041
1041
|
},
|
|
1042
1042
|
vars: () => ({
|
|
1043
|
-
dropdown:
|
|
1043
|
+
dropdown: Rr
|
|
1044
1044
|
})
|
|
1045
1045
|
}),
|
|
1046
|
-
Tooltip:
|
|
1046
|
+
Tooltip: wi.extend({
|
|
1047
1047
|
defaultProps: {
|
|
1048
1048
|
zIndex: Xe
|
|
1049
1049
|
},
|
|
1050
|
-
styles:
|
|
1050
|
+
styles: Ar
|
|
1051
1051
|
}),
|
|
1052
|
-
Popover:
|
|
1052
|
+
Popover: yi.extend({
|
|
1053
1053
|
defaultProps: {
|
|
1054
1054
|
zIndex: Xe
|
|
1055
1055
|
},
|
|
1056
|
-
styles:
|
|
1056
|
+
styles: Lr
|
|
1057
1057
|
}),
|
|
1058
|
-
HoverCard:
|
|
1058
|
+
HoverCard: vi.extend({
|
|
1059
1059
|
defaultProps: {
|
|
1060
1060
|
zIndex: Xe
|
|
1061
1061
|
},
|
|
1062
|
-
styles:
|
|
1062
|
+
styles: Or
|
|
1063
1063
|
})
|
|
1064
|
-
},
|
|
1064
|
+
}, Hr = {
|
|
1065
1065
|
xs: "10px",
|
|
1066
1066
|
sm: "11px",
|
|
1067
1067
|
// Our compact default
|
|
1068
1068
|
md: "13px",
|
|
1069
1069
|
lg: "14px",
|
|
1070
1070
|
xl: "16px"
|
|
1071
|
-
},
|
|
1071
|
+
}, Nr = {
|
|
1072
1072
|
xs: "4px",
|
|
1073
1073
|
sm: "6px",
|
|
1074
1074
|
md: "8px",
|
|
1075
1075
|
lg: "12px",
|
|
1076
1076
|
xl: "16px"
|
|
1077
|
-
},
|
|
1077
|
+
}, Dr = {
|
|
1078
1078
|
xs: "2px",
|
|
1079
1079
|
sm: "4px",
|
|
1080
1080
|
md: "6px",
|
|
1081
1081
|
lg: "8px",
|
|
1082
1082
|
xl: "12px"
|
|
1083
|
-
},
|
|
1084
|
-
colors:
|
|
1085
|
-
fontSizes:
|
|
1086
|
-
spacing:
|
|
1087
|
-
radius:
|
|
1083
|
+
}, kr = Ii({
|
|
1084
|
+
colors: ji,
|
|
1085
|
+
fontSizes: Hr,
|
|
1086
|
+
spacing: Nr,
|
|
1087
|
+
radius: Dr,
|
|
1088
1088
|
// Keyboard focus is always visible; pointer focus is not. `auto` resolves to
|
|
1089
1089
|
// Mantine's `:focus-visible` rule, so a mouse click on a control leaves the
|
|
1090
1090
|
// dense surface unmarked while Tab paints a 2px ring -- WCAG 2.4.7 without
|
|
@@ -1100,15 +1100,15 @@ const St = {
|
|
|
1100
1100
|
// Spread all component extensions into the theme
|
|
1101
1101
|
// Each extension object provides compact size support for a category of components
|
|
1102
1102
|
components: {
|
|
1103
|
-
...
|
|
1104
|
-
...
|
|
1105
|
-
...
|
|
1106
|
-
...
|
|
1107
|
-
...
|
|
1108
|
-
...
|
|
1103
|
+
...wr,
|
|
1104
|
+
...Zi,
|
|
1105
|
+
...ir,
|
|
1106
|
+
...ur,
|
|
1107
|
+
...gr,
|
|
1108
|
+
...Pr,
|
|
1109
1109
|
..._r
|
|
1110
1110
|
}
|
|
1111
|
-
}),
|
|
1111
|
+
}), Ol = Ei(lo, kr), Gr = [
|
|
1112
1112
|
"#5B8FF9FF",
|
|
1113
1113
|
"#FF6B6BFF",
|
|
1114
1114
|
"#61D095FF",
|
|
@@ -1119,7 +1119,7 @@ const St = {
|
|
|
1119
1119
|
"#61D09580",
|
|
1120
1120
|
"#F7B73180",
|
|
1121
1121
|
"#9B59B680"
|
|
1122
|
-
], qt = "#888888",
|
|
1122
|
+
], qt = "#888888", Mr = {
|
|
1123
1123
|
mixed: "Mixed",
|
|
1124
1124
|
fieldBound: "Bound to a data attribute",
|
|
1125
1125
|
fieldPending: "Set but not yet applied",
|
|
@@ -1175,39 +1175,39 @@ const St = {
|
|
|
1175
1175
|
return `${e}th`;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
},
|
|
1179
|
-
function
|
|
1180
|
-
return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language :
|
|
1178
|
+
}, Fr = "en", dn = lt(Mr), un = lt(void 0);
|
|
1179
|
+
function Vr(e) {
|
|
1180
|
+
return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language : Fr;
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
const o =
|
|
1182
|
+
function _l({ labels: e, locale: t, children: i }) {
|
|
1183
|
+
const o = _e(dn), r = _e(un), a = Z(() => ({ ...o, ...e }), [o, e]), s = t ?? r;
|
|
1184
1184
|
return /* @__PURE__ */ n(un.Provider, { value: s, children: /* @__PURE__ */ n(dn.Provider, { value: a, children: i }) });
|
|
1185
1185
|
}
|
|
1186
1186
|
function fe() {
|
|
1187
|
-
return
|
|
1187
|
+
return _e(dn);
|
|
1188
1188
|
}
|
|
1189
1189
|
function ct() {
|
|
1190
|
-
const e =
|
|
1191
|
-
return
|
|
1190
|
+
const e = _e(un);
|
|
1191
|
+
return Vr(e);
|
|
1192
1192
|
}
|
|
1193
|
-
const
|
|
1194
|
-
function
|
|
1193
|
+
const $r = 1234.5, Br = "9876543210", Ur = 9876543210, Wr = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Yr = "−", jr = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu, An = /* @__PURE__ */ new Map();
|
|
1194
|
+
function Kr(e) {
|
|
1195
1195
|
var u, d;
|
|
1196
1196
|
const t = An.get(e);
|
|
1197
1197
|
if (t !== void 0)
|
|
1198
1198
|
return t;
|
|
1199
|
-
const i = new Intl.NumberFormat(e).formatToParts(
|
|
1199
|
+
const i = new Intl.NumberFormat(e).formatToParts($r), o = ((u = i.find((f) => f.type === "decimal")) == null ? void 0 : u.value) ?? ".", r = ((d = i.find((f) => f.type === "group")) == null ? void 0 : d.value) ?? "", a = /* @__PURE__ */ new Map();
|
|
1200
1200
|
for (const f of "0123456789")
|
|
1201
1201
|
a.set(f, f);
|
|
1202
|
-
const s = new Intl.NumberFormat(e, { useGrouping: !1 }).format(
|
|
1202
|
+
const s = new Intl.NumberFormat(e, { useGrouping: !1 }).format(Ur);
|
|
1203
1203
|
Array.from(s).forEach((f, g) => {
|
|
1204
|
-
a.set(f,
|
|
1204
|
+
a.set(f, Br[g]);
|
|
1205
1205
|
});
|
|
1206
1206
|
const p = { decimal: o, digits: a, group: r };
|
|
1207
1207
|
return An.set(e, p), p;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
const i =
|
|
1209
|
+
function Xr(e, t) {
|
|
1210
|
+
const i = Kr(t);
|
|
1211
1211
|
let o = "";
|
|
1212
1212
|
for (const a of e.trim()) {
|
|
1213
1213
|
const s = i.digits.get(a);
|
|
@@ -1219,8 +1219,8 @@ function Kr(e, t) {
|
|
|
1219
1219
|
o += ".";
|
|
1220
1220
|
continue;
|
|
1221
1221
|
}
|
|
1222
|
-
if (!(a === i.group ||
|
|
1223
|
-
if (a === "-" || a ===
|
|
1222
|
+
if (!(a === i.group || Wr.has(a))) {
|
|
1223
|
+
if (a === "-" || a === Yr) {
|
|
1224
1224
|
o += "-";
|
|
1225
1225
|
continue;
|
|
1226
1226
|
}
|
|
@@ -1235,29 +1235,29 @@ function Kr(e, t) {
|
|
|
1235
1235
|
break;
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
const r =
|
|
1238
|
+
const r = jr.exec(o);
|
|
1239
1239
|
return r === null ? Number.NaN : Number(r[0]);
|
|
1240
1240
|
}
|
|
1241
1241
|
function bt(e) {
|
|
1242
1242
|
const t = ct(), i = JSON.stringify(e ?? {});
|
|
1243
1243
|
return Z(() => new Intl.NumberFormat(t, e), [t, i]);
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function qr() {
|
|
1246
1246
|
const e = ct(), t = fe(), i = bt(), o = Z(() => new Intl.PluralRules(e, { type: "ordinal" }), [e]);
|
|
1247
1247
|
return F(
|
|
1248
1248
|
(r) => t.ordinal(i.format(r), o.select(r)),
|
|
1249
1249
|
[t, i, o]
|
|
1250
1250
|
);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function Zr(e) {
|
|
1253
1253
|
const t = ct(), i = JSON.stringify(e ?? {});
|
|
1254
1254
|
return Z(() => new Intl.Collator(t, e), [t, i]);
|
|
1255
1255
|
}
|
|
1256
1256
|
function yo() {
|
|
1257
1257
|
const e = ct();
|
|
1258
|
-
return F((t) =>
|
|
1258
|
+
return F((t) => Xr(t, e), [e]);
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1260
|
+
const Jr = [
|
|
1261
1261
|
"sizeSmallest",
|
|
1262
1262
|
"sizeLargest",
|
|
1263
1263
|
"width",
|
|
@@ -1266,7 +1266,7 @@ const Zr = [
|
|
|
1266
1266
|
"scaleSqrt",
|
|
1267
1267
|
"scaleLinear",
|
|
1268
1268
|
"scaleLog"
|
|
1269
|
-
],
|
|
1269
|
+
], Qr = ["N", "E", "W", "D", "K"], Hl = [
|
|
1270
1270
|
"chevronDown",
|
|
1271
1271
|
"chevronRight",
|
|
1272
1272
|
"chevronLeft",
|
|
@@ -1293,7 +1293,7 @@ const Zr = [
|
|
|
1293
1293
|
}, $e = {
|
|
1294
1294
|
fill: "currentColor",
|
|
1295
1295
|
stroke: "none"
|
|
1296
|
-
},
|
|
1296
|
+
}, ea = {
|
|
1297
1297
|
sizeSmallest: (e) => /* @__PURE__ */ S(q, { children: [
|
|
1298
1298
|
/* @__PURE__ */ n("circle", { cx: "5", cy: "11", r: "2.5", ...e ? $e : {} }),
|
|
1299
1299
|
/* @__PURE__ */ n("circle", { cx: "10.5", cy: "6.5", r: "4", ...e ? $e : {} })
|
|
@@ -1321,7 +1321,7 @@ const Zr = [
|
|
|
1321
1321
|
scaleSqrt: () => /* @__PURE__ */ n("path", { d: "M2.5 13.5C4.5 5 8 2.5 13.5 2.5" }),
|
|
1322
1322
|
scaleLinear: () => /* @__PURE__ */ n("line", { x1: "2.5", y1: "13.5", x2: "13.5", y2: "2.5" }),
|
|
1323
1323
|
scaleLog: () => /* @__PURE__ */ n("path", { d: "M2.5 13.5C8 13.5 11.5 11 13.5 2.5" })
|
|
1324
|
-
},
|
|
1324
|
+
}, ta = {
|
|
1325
1325
|
chevronDown: /* @__PURE__ */ n("polyline", { points: "4,6 8,10 12,6" }),
|
|
1326
1326
|
chevronRight: /* @__PURE__ */ n("polyline", { points: "6,4 10,8 6,12" }),
|
|
1327
1327
|
chevronLeft: /* @__PURE__ */ n("polyline", { points: "10,4 6,8 10,12" }),
|
|
@@ -1393,7 +1393,7 @@ function xt({ name: e, filled: t = !1, size: i = c.GLYPH }) {
|
|
|
1393
1393
|
"data-glyph": e,
|
|
1394
1394
|
"data-filled": t ? "true" : "false",
|
|
1395
1395
|
style: { flex: "0 0 auto", display: "block" },
|
|
1396
|
-
children:
|
|
1396
|
+
children: ea[e](t)
|
|
1397
1397
|
}
|
|
1398
1398
|
);
|
|
1399
1399
|
}
|
|
@@ -1408,15 +1408,15 @@ function pe({ name: e, size: t = c.GLYPH }) {
|
|
|
1408
1408
|
focusable: "false",
|
|
1409
1409
|
"data-glyph": e,
|
|
1410
1410
|
style: { flex: "0 0 auto", display: "block" },
|
|
1411
|
-
children:
|
|
1411
|
+
children: ta[e]
|
|
1412
1412
|
}
|
|
1413
1413
|
);
|
|
1414
1414
|
}
|
|
1415
1415
|
function So(e) {
|
|
1416
|
-
return typeof e == "string" &&
|
|
1416
|
+
return typeof e == "string" && Jr.includes(e);
|
|
1417
1417
|
}
|
|
1418
1418
|
function Eo(e) {
|
|
1419
|
-
return typeof e == "string" &&
|
|
1419
|
+
return typeof e == "string" && Qr.includes(e);
|
|
1420
1420
|
}
|
|
1421
1421
|
const Io = 255, To = 100;
|
|
1422
1422
|
function zo(e) {
|
|
@@ -1449,7 +1449,7 @@ const Ft = {
|
|
|
1449
1449
|
whiteSpace: "nowrap",
|
|
1450
1450
|
border: 0
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1452
|
+
function na(e, t) {
|
|
1453
1453
|
const i = e === void 0 ? "" : e.trim();
|
|
1454
1454
|
return i === "" ? t : `${/[.!?]$/u.test(i) ? i : `${i}.`} ${t}`;
|
|
1455
1455
|
}
|
|
@@ -1466,16 +1466,16 @@ function vt({
|
|
|
1466
1466
|
s !== void 0 && p.push(s);
|
|
1467
1467
|
const u = p.length > 0 ? p.join(". ") : void 0;
|
|
1468
1468
|
return {
|
|
1469
|
-
title: s === void 0 ? t :
|
|
1469
|
+
title: s === void 0 ? t : na(t ?? e, s),
|
|
1470
1470
|
description: u,
|
|
1471
1471
|
describedBy: u === void 0 ? void 0 : a
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
1474
|
const Po = lt(null);
|
|
1475
|
-
function
|
|
1476
|
-
return
|
|
1475
|
+
function oa() {
|
|
1476
|
+
return _e(Po);
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function ia({ children: e }) {
|
|
1479
1479
|
const t = X(null);
|
|
1480
1480
|
if (!go(e))
|
|
1481
1481
|
throw new Error("PopoutAnchor requires a single valid React element as its child");
|
|
@@ -1484,10 +1484,10 @@ function oa({ children: e }) {
|
|
|
1484
1484
|
});
|
|
1485
1485
|
return /* @__PURE__ */ n(Po.Provider, { value: { anchorRef: t }, children: o });
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function ra({ children: e }) {
|
|
1488
1488
|
return /* @__PURE__ */ n(h, { p: "sm", children: e });
|
|
1489
1489
|
}
|
|
1490
|
-
const
|
|
1490
|
+
const aa = [
|
|
1491
1491
|
// Mantine portal containers
|
|
1492
1492
|
"[data-portal]",
|
|
1493
1493
|
// Combobox/Select dropdowns
|
|
@@ -1505,20 +1505,20 @@ const ra = [
|
|
|
1505
1505
|
// Modal (just in case)
|
|
1506
1506
|
"[data-modal]"
|
|
1507
1507
|
].join(", ");
|
|
1508
|
-
function
|
|
1508
|
+
function sa(e, t = !0) {
|
|
1509
1509
|
Ee(() => {
|
|
1510
1510
|
if (!t)
|
|
1511
1511
|
return;
|
|
1512
1512
|
const i = (o) => {
|
|
1513
1513
|
const r = o.target;
|
|
1514
|
-
r.closest('[role="dialog"]') || r.closest("[data-popout-trigger]") || r.closest("[data-popout-portal-container]") || r.closest(
|
|
1514
|
+
r.closest('[role="dialog"]') || r.closest("[data-popout-trigger]") || r.closest("[data-popout-portal-container]") || r.closest(aa) || e();
|
|
1515
1515
|
};
|
|
1516
1516
|
return document.addEventListener("mousedown", i), () => {
|
|
1517
1517
|
document.removeEventListener("mousedown", i);
|
|
1518
1518
|
};
|
|
1519
1519
|
}, [e, t]);
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function la(e, t = !0) {
|
|
1522
1522
|
Ee(() => {
|
|
1523
1523
|
if (!t)
|
|
1524
1524
|
return;
|
|
@@ -1534,27 +1534,31 @@ const Ro = lt(null);
|
|
|
1534
1534
|
function Gl({ id: e, children: t }) {
|
|
1535
1535
|
return /* @__PURE__ */ n(Ro.Provider, { value: e, children: t });
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1537
|
+
function ca() {
|
|
1538
|
+
return _e(Ro);
|
|
1539
1539
|
}
|
|
1540
1540
|
const yn = lt(null), wn = lt(null);
|
|
1541
1541
|
function Yt() {
|
|
1542
|
-
const e =
|
|
1542
|
+
const e = _e(yn);
|
|
1543
1543
|
if (!e)
|
|
1544
1544
|
throw new Error("usePopoutContext must be used within a Popout component");
|
|
1545
1545
|
return e;
|
|
1546
1546
|
}
|
|
1547
|
-
function ca() {
|
|
1548
|
-
return Oe(yn);
|
|
1549
|
-
}
|
|
1550
1547
|
function da() {
|
|
1551
|
-
|
|
1548
|
+
return _e(yn);
|
|
1549
|
+
}
|
|
1550
|
+
function Ao() {
|
|
1551
|
+
const e = _e(wn);
|
|
1552
1552
|
if (!e)
|
|
1553
1553
|
throw new Error("usePopoutManagerContext must be used within a PopoutManager");
|
|
1554
1554
|
return e;
|
|
1555
1555
|
}
|
|
1556
1556
|
function ua() {
|
|
1557
|
-
return
|
|
1557
|
+
return _e(wn);
|
|
1558
|
+
}
|
|
1559
|
+
function Ml() {
|
|
1560
|
+
const { closeAll: e, hasOpenPopouts: t } = Ao();
|
|
1561
|
+
return Z(() => ({ closeAll: e, hasOpenPopouts: t }), [e, t]);
|
|
1558
1562
|
}
|
|
1559
1563
|
function pa({
|
|
1560
1564
|
children: e,
|
|
@@ -1563,7 +1567,7 @@ function pa({
|
|
|
1563
1567
|
defaultOpened: o,
|
|
1564
1568
|
onOpenChange: r
|
|
1565
1569
|
}) {
|
|
1566
|
-
const a = ue(), s = X(null), p =
|
|
1570
|
+
const a = ue(), s = X(null), p = ca(), [u, d] = ae({
|
|
1567
1571
|
value: i,
|
|
1568
1572
|
defaultValue: o,
|
|
1569
1573
|
finalValue: !1,
|
|
@@ -1612,7 +1616,7 @@ function pa({
|
|
|
1612
1616
|
return /* @__PURE__ */ n(yn.Provider, { value: C, children: e });
|
|
1613
1617
|
}
|
|
1614
1618
|
function fa({ children: e }) {
|
|
1615
|
-
const [t, i] =
|
|
1619
|
+
const [t, i] = Oe(null), o = X([]), r = X(/* @__PURE__ */ new Map()), a = X(/* @__PURE__ */ new Map()), s = X(/* @__PURE__ */ new Map()), [p, u] = Oe(0), d = F(
|
|
1616
1620
|
(b, w, N) => (a.current.get(b) ?? null) !== w ? !1 : w !== null ? !0 : (s.current.get(b) ?? null) === N,
|
|
1617
1621
|
[]
|
|
1618
1622
|
), f = F((b, w) => o.current.filter((N) => d(N, b, w)), [d]), g = F((b) => {
|
|
@@ -1689,15 +1693,15 @@ function fa({ children: e }) {
|
|
|
1689
1693
|
const G = r.current.get(N);
|
|
1690
1694
|
G == null || G();
|
|
1691
1695
|
}
|
|
1692
|
-
}, [R]),
|
|
1696
|
+
}, [R]), O = F((b) => {
|
|
1693
1697
|
L(b);
|
|
1694
1698
|
const w = r.current.get(b);
|
|
1695
1699
|
w == null || w();
|
|
1696
1700
|
}, [L]), k = F((b, w) => {
|
|
1697
1701
|
const N = s.current.get(b) ?? null;
|
|
1698
1702
|
for (const G of o.current)
|
|
1699
|
-
G !== b && d(G, w, N) &&
|
|
1700
|
-
}, [
|
|
1703
|
+
G !== b && d(G, w, N) && O(G);
|
|
1704
|
+
}, [O, d]), W = F(() => {
|
|
1701
1705
|
const b = o.current;
|
|
1702
1706
|
if (b.length === 0)
|
|
1703
1707
|
return;
|
|
@@ -1709,10 +1713,10 @@ function fa({ children: e }) {
|
|
|
1709
1713
|
const N = r.current.get(w);
|
|
1710
1714
|
N == null || N();
|
|
1711
1715
|
}
|
|
1712
|
-
}, []), D = F(() => o.current.length > 0, []), [Y, A] =
|
|
1716
|
+
}, []), D = F(() => o.current.length > 0, []), [Y, A] = Oe(!1);
|
|
1713
1717
|
Ee(() => {
|
|
1714
1718
|
A(o.current.length > 0);
|
|
1715
|
-
}, [p]),
|
|
1719
|
+
}, [p]), la(W, Y), sa(V, Y);
|
|
1716
1720
|
const H = Z(
|
|
1717
1721
|
() => ({
|
|
1718
1722
|
register: z,
|
|
@@ -1724,13 +1728,13 @@ function fa({ children: e }) {
|
|
|
1724
1728
|
closeFocused: W,
|
|
1725
1729
|
closeAll: V,
|
|
1726
1730
|
hasOpenPopouts: D,
|
|
1727
|
-
closeWithDescendants:
|
|
1731
|
+
closeWithDescendants: O,
|
|
1728
1732
|
closeDescendants: L,
|
|
1729
1733
|
closeSiblings: k,
|
|
1730
1734
|
getParentId: E,
|
|
1731
1735
|
isAncestor: y
|
|
1732
1736
|
}),
|
|
1733
|
-
[z, C, T, P, t, p, W, V, D,
|
|
1737
|
+
[z, C, T, P, t, p, W, V, D, O, L, k, E, y]
|
|
1734
1738
|
);
|
|
1735
1739
|
return /* @__PURE__ */ S(wn.Provider, { value: H, children: [
|
|
1736
1740
|
e,
|
|
@@ -1738,7 +1742,7 @@ function fa({ children: e }) {
|
|
|
1738
1742
|
] });
|
|
1739
1743
|
}
|
|
1740
1744
|
function Qe() {
|
|
1741
|
-
return
|
|
1745
|
+
return Ti().dir;
|
|
1742
1746
|
}
|
|
1743
1747
|
function ze(e) {
|
|
1744
1748
|
return e === "rtl";
|
|
@@ -1760,7 +1764,7 @@ function xa(e) {
|
|
|
1760
1764
|
onDragStart: o,
|
|
1761
1765
|
onDrag: r,
|
|
1762
1766
|
onDragEnd: a
|
|
1763
|
-
} = e, [s, p] =
|
|
1767
|
+
} = e, [s, p] = Oe({ left: 0, top: 0 }), u = X(!1), d = X(!1), f = X(!1), g = X({
|
|
1764
1768
|
x: 0,
|
|
1765
1769
|
y: 0,
|
|
1766
1770
|
offsetLeft: 0,
|
|
@@ -1905,7 +1909,7 @@ function ba({
|
|
|
1905
1909
|
function va(e, t = document) {
|
|
1906
1910
|
return e === null ? null : t.querySelector(`[data-popout-id="${e}"]`);
|
|
1907
1911
|
}
|
|
1908
|
-
function
|
|
1912
|
+
function On(e, t, i) {
|
|
1909
1913
|
const { trigger: o, parent: r, panel: a } = i;
|
|
1910
1914
|
if (e !== void 0) {
|
|
1911
1915
|
if (typeof e == "object")
|
|
@@ -1928,7 +1932,7 @@ function _n(e, t, i) {
|
|
|
1928
1932
|
function ya(e, t) {
|
|
1929
1933
|
return e === "start" ? ze(t) ? "right" : "left" : e === "end" ? ze(t) ? "left" : "right" : e;
|
|
1930
1934
|
}
|
|
1931
|
-
function wa(e, t, i =
|
|
1935
|
+
function wa(e, t, i = mr, o = {}) {
|
|
1932
1936
|
const {
|
|
1933
1937
|
placement: r = "left",
|
|
1934
1938
|
alignment: a = "start",
|
|
@@ -1939,10 +1943,10 @@ function wa(e, t, i = gr, o = {}) {
|
|
|
1939
1943
|
let d, f;
|
|
1940
1944
|
switch (r) {
|
|
1941
1945
|
case "left":
|
|
1942
|
-
d = e.left - t - i, f =
|
|
1946
|
+
d = e.left - t - i, f = _n(p, a, s);
|
|
1943
1947
|
break;
|
|
1944
1948
|
case "right":
|
|
1945
|
-
d = e.right + i, f =
|
|
1949
|
+
d = e.right + i, f = _n(p, a, s);
|
|
1946
1950
|
break;
|
|
1947
1951
|
case "top":
|
|
1948
1952
|
d = Hn(p, a, t, u), f = e.top - s - i;
|
|
@@ -1957,7 +1961,7 @@ function wa(e, t, i = gr, o = {}) {
|
|
|
1957
1961
|
}
|
|
1958
1962
|
return { left: d, top: f };
|
|
1959
1963
|
}
|
|
1960
|
-
function
|
|
1964
|
+
function _n(e, t, i) {
|
|
1961
1965
|
switch (t) {
|
|
1962
1966
|
case "start":
|
|
1963
1967
|
return e.top;
|
|
@@ -2011,14 +2015,14 @@ function Sa(e) {
|
|
|
2011
2015
|
parentId: R,
|
|
2012
2016
|
region: L
|
|
2013
2017
|
} = Yt(), {
|
|
2014
|
-
getZIndex:
|
|
2018
|
+
getZIndex: O,
|
|
2015
2019
|
portalContainer: k,
|
|
2016
2020
|
register: W,
|
|
2017
2021
|
unregister: V,
|
|
2018
2022
|
bringToFront: D,
|
|
2019
2023
|
zIndexVersion: Y,
|
|
2020
2024
|
closeDescendants: A
|
|
2021
|
-
} =
|
|
2025
|
+
} = Ao(), H = oa(), b = Qe(), w = ue(), N = `popout-panel-${y}`, G = `popout-title-${w}`, [J, Q] = Oe(null), ve = X(!1), ne = X(null), de = F(() => {
|
|
2022
2026
|
D(y);
|
|
2023
2027
|
}, [D, y]), {
|
|
2024
2028
|
dragTriggerProps: re,
|
|
@@ -2032,7 +2036,7 @@ function Sa(e) {
|
|
|
2032
2036
|
onDragStart: v,
|
|
2033
2037
|
onDrag: z,
|
|
2034
2038
|
onDragEnd: C
|
|
2035
|
-
}), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] =
|
|
2039
|
+
}), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] = Oe(be), dt = f ?? (R === null ? 0 : xr), tt = F(
|
|
2036
2040
|
($, oe) => {
|
|
2037
2041
|
var ie;
|
|
2038
2042
|
Ue($), (ie = ee == null ? void 0 : ee.onTabChange) == null || ie.call(ee, $, oe);
|
|
@@ -2065,8 +2069,8 @@ function Sa(e) {
|
|
|
2065
2069
|
panel: (H == null ? void 0 : H.anchorRef.current) ?? null
|
|
2066
2070
|
};
|
|
2067
2071
|
return {
|
|
2068
|
-
inline:
|
|
2069
|
-
block:
|
|
2072
|
+
inline: On(s, "x", $),
|
|
2073
|
+
block: On(p, "y", $)
|
|
2070
2074
|
};
|
|
2071
2075
|
}, [E, R, H, s, p]), Ye = F(() => {
|
|
2072
2076
|
var ft;
|
|
@@ -2087,7 +2091,7 @@ function Sa(e) {
|
|
|
2087
2091
|
);
|
|
2088
2092
|
Q((Ke) => Ke && Ke.left === he.left && Ke.top === he.top ? Ke : he);
|
|
2089
2093
|
}, [We, t, i, u, d, dt, b]);
|
|
2090
|
-
if (
|
|
2094
|
+
if (Li(() => {
|
|
2091
2095
|
if (!T) {
|
|
2092
2096
|
Q(null);
|
|
2093
2097
|
return;
|
|
@@ -2129,11 +2133,11 @@ function Sa(e) {
|
|
|
2129
2133
|
ve.current = T;
|
|
2130
2134
|
}, [T]), !T || !k)
|
|
2131
2135
|
return null;
|
|
2132
|
-
const nt =
|
|
2136
|
+
const nt = O(y), ut = {
|
|
2133
2137
|
left: ((J == null ? void 0 : J.left) ?? 0) + j.left,
|
|
2134
2138
|
top: ((J == null ? void 0 : J.top) ?? 0) + j.top
|
|
2135
2139
|
}, Me = /* @__PURE__ */ S(
|
|
2136
|
-
|
|
2140
|
+
zi,
|
|
2137
2141
|
{
|
|
2138
2142
|
ref: ne,
|
|
2139
2143
|
id: N,
|
|
@@ -2184,7 +2188,7 @@ function Sa(e) {
|
|
|
2184
2188
|
]
|
|
2185
2189
|
}
|
|
2186
2190
|
);
|
|
2187
|
-
return
|
|
2191
|
+
return Hi(Me, k);
|
|
2188
2192
|
}
|
|
2189
2193
|
function Ea({ children: e, action: t = "toggle" }) {
|
|
2190
2194
|
const {
|
|
@@ -2226,7 +2230,7 @@ function Ia({
|
|
|
2226
2230
|
defaultOpened: i,
|
|
2227
2231
|
onOpenChange: o
|
|
2228
2232
|
}) {
|
|
2229
|
-
const r =
|
|
2233
|
+
const r = da(), a = (r == null ? void 0 : r.id) ?? null;
|
|
2230
2234
|
return /* @__PURE__ */ n(
|
|
2231
2235
|
pa,
|
|
2232
2236
|
{
|
|
@@ -2241,9 +2245,9 @@ function Ia({
|
|
|
2241
2245
|
const st = Object.assign(Ia, {
|
|
2242
2246
|
Trigger: Ea,
|
|
2243
2247
|
Panel: Sa,
|
|
2244
|
-
Content:
|
|
2245
|
-
Anchor:
|
|
2246
|
-
}),
|
|
2248
|
+
Content: ra,
|
|
2249
|
+
Anchor: ia
|
|
2250
|
+
}), Fl = Ut(
|
|
2247
2251
|
function({ icon: t, size: i = "xs", ...o }, r) {
|
|
2248
2252
|
const { isOpen: a } = Yt();
|
|
2249
2253
|
return /* @__PURE__ */ n(
|
|
@@ -2273,14 +2277,14 @@ function Jt(e) {
|
|
|
2273
2277
|
borderEndEndRadius: i
|
|
2274
2278
|
};
|
|
2275
2279
|
}
|
|
2276
|
-
function
|
|
2280
|
+
function Oa() {
|
|
2277
2281
|
const e = ct();
|
|
2278
2282
|
return Z(() => {
|
|
2279
2283
|
var i;
|
|
2280
2284
|
return ((i = new Intl.NumberFormat(e).formatToParts(La).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
|
|
2281
2285
|
}, [e]);
|
|
2282
2286
|
}
|
|
2283
|
-
function
|
|
2287
|
+
function _a({
|
|
2284
2288
|
color: e,
|
|
2285
2289
|
defaultColor: t,
|
|
2286
2290
|
opacity: i,
|
|
@@ -2295,7 +2299,7 @@ function Oa({
|
|
|
2295
2299
|
onFocus: g,
|
|
2296
2300
|
onBlur: m
|
|
2297
2301
|
}) {
|
|
2298
|
-
const v = fe(), z = yo(), C =
|
|
2302
|
+
const v = fe(), z = yo(), C = Oa(), T = ue(), P = vt({ name: p, disabled: d, disabledReason: f }), [E, y] = ae({
|
|
2299
2303
|
value: e,
|
|
2300
2304
|
defaultValue: void 0,
|
|
2301
2305
|
finalValue: void 0,
|
|
@@ -2305,7 +2309,7 @@ function Oa({
|
|
|
2305
2309
|
defaultValue: void 0,
|
|
2306
2310
|
finalValue: void 0,
|
|
2307
2311
|
onChange: a
|
|
2308
|
-
}),
|
|
2312
|
+
}), O = E === void 0, k = R === void 0, W = O && (!u || k), V = E ?? t, D = R ?? o, [Y, A] = Oe(V.replace("#", "").toUpperCase()), [H, b] = Oe(D);
|
|
2309
2313
|
Ee(() => {
|
|
2310
2314
|
A(V.replace("#", "").toUpperCase());
|
|
2311
2315
|
}, [V]), Ee(() => {
|
|
@@ -2360,7 +2364,7 @@ function Oa({
|
|
|
2360
2364
|
"aria-label": v.colorSwatch,
|
|
2361
2365
|
"aria-describedby": P.describedBy,
|
|
2362
2366
|
children: /* @__PURE__ */ n(
|
|
2363
|
-
|
|
2367
|
+
Ci,
|
|
2364
2368
|
{
|
|
2365
2369
|
color: V,
|
|
2366
2370
|
size: c.GLYPH,
|
|
@@ -2379,12 +2383,12 @@ function Oa({
|
|
|
2379
2383
|
alignment: "start",
|
|
2380
2384
|
gap: Nn,
|
|
2381
2385
|
children: /* @__PURE__ */ n(st.Content, { children: /* @__PURE__ */ n(
|
|
2382
|
-
|
|
2386
|
+
Pi,
|
|
2383
2387
|
{
|
|
2384
2388
|
format: "hexa",
|
|
2385
2389
|
value: N(),
|
|
2386
2390
|
onChange: w,
|
|
2387
|
-
swatches: [...
|
|
2391
|
+
swatches: [...Gr]
|
|
2388
2392
|
}
|
|
2389
2393
|
) })
|
|
2390
2394
|
}
|
|
@@ -2401,14 +2405,14 @@ function Oa({
|
|
|
2401
2405
|
onFocus: g,
|
|
2402
2406
|
onBlur: J,
|
|
2403
2407
|
"aria-label": v.colorHexValue,
|
|
2404
|
-
"data-is-default":
|
|
2408
|
+
"data-is-default": O ? "true" : "false",
|
|
2405
2409
|
w: Ca,
|
|
2406
2410
|
styles: {
|
|
2407
2411
|
input: {
|
|
2408
2412
|
...Jt(de),
|
|
2409
2413
|
fontFamily: "monospace",
|
|
2410
2414
|
textTransform: "uppercase",
|
|
2411
|
-
...
|
|
2415
|
+
...O ? {
|
|
2412
2416
|
fontStyle: "italic",
|
|
2413
2417
|
color: x.CHROME
|
|
2414
2418
|
} : {}
|
|
@@ -2501,7 +2505,7 @@ function Oa({
|
|
|
2501
2505
|
);
|
|
2502
2506
|
}
|
|
2503
2507
|
const Dt = c.GUTTER, Fn = 4, Ha = 1, Na = 1.2, Da = "calc(-1 * var(--mantine-spacing-sm) - 1px)";
|
|
2504
|
-
function
|
|
2508
|
+
function Vl({ label: e, actions: t, children: i, bleed: o = !1 }) {
|
|
2505
2509
|
const r = ue(), a = t != null;
|
|
2506
2510
|
return /* @__PURE__ */ S(h, { "data-testid": "control-group", role: "group", "aria-labelledby": r, children: [
|
|
2507
2511
|
/* @__PURE__ */ n(
|
|
@@ -2706,7 +2710,7 @@ const Fa = Ut(
|
|
|
2706
2710
|
);
|
|
2707
2711
|
}
|
|
2708
2712
|
), Qt = 4, Va = 1, $n = 6, $a = 12, Ba = 1.2;
|
|
2709
|
-
function
|
|
2713
|
+
function $l(e) {
|
|
2710
2714
|
const {
|
|
2711
2715
|
label: t,
|
|
2712
2716
|
technicalName: i,
|
|
@@ -2730,7 +2734,7 @@ function Vl(e) {
|
|
|
2730
2734
|
);
|
|
2731
2735
|
const L = (H) => {
|
|
2732
2736
|
E(!P, H);
|
|
2733
|
-
},
|
|
2737
|
+
}, O = P ? m.collapseSection(t) : m.expandSection(t), k = m.addToSection(t), W = ze(v) ? "chevronLeft" : "chevronRight", V = {
|
|
2734
2738
|
flex: "0 0 auto",
|
|
2735
2739
|
width: c.GLYPH_SLOT,
|
|
2736
2740
|
height: c.GLYPH_SLOT,
|
|
@@ -2824,7 +2828,7 @@ function Vl(e) {
|
|
|
2824
2828
|
{
|
|
2825
2829
|
type: "button",
|
|
2826
2830
|
"data-testid": "control-section-toggle",
|
|
2827
|
-
"aria-label":
|
|
2831
|
+
"aria-label": O,
|
|
2828
2832
|
"aria-expanded": P,
|
|
2829
2833
|
"aria-controls": C,
|
|
2830
2834
|
onClick: L,
|
|
@@ -2887,7 +2891,7 @@ function Vl(e) {
|
|
|
2887
2891
|
}
|
|
2888
2892
|
),
|
|
2889
2893
|
R && /* @__PURE__ */ n(h, { id: T, "data-testid": "control-section-description", hidden: !0, children: d }),
|
|
2890
|
-
y && /* @__PURE__ */ n(
|
|
2894
|
+
y && /* @__PURE__ */ n(Ri, { id: C, in: P, children: /* @__PURE__ */ n(
|
|
2891
2895
|
h,
|
|
2892
2896
|
{
|
|
2893
2897
|
"data-testid": "control-section-content",
|
|
@@ -2904,7 +2908,7 @@ function Vl(e) {
|
|
|
2904
2908
|
);
|
|
2905
2909
|
}
|
|
2906
2910
|
const en = "control-sub-group", Bn = 4, Ua = 10, Wa = 1.2;
|
|
2907
|
-
function
|
|
2911
|
+
function Bl(e) {
|
|
2908
2912
|
const { label: t, opened: i, defaultOpened: o, onOpenChange: r, children: a } = e, s = fe(), p = Qe(), u = X(void 0), [d, f] = ae({
|
|
2909
2913
|
value: i,
|
|
2910
2914
|
defaultValue: o,
|
|
@@ -3089,15 +3093,15 @@ function Ja(e, t, i) {
|
|
|
3089
3093
|
const o = Wn(e), r = Wn(t);
|
|
3090
3094
|
return o || r ? o && r ? 0 : o ? -1 : 1 : typeof e == "number" && typeof t == "number" ? e - t : typeof e == "boolean" && typeof t == "boolean" ? e === t ? 0 : e ? 1 : -1 : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : i.compare(String(e), String(t));
|
|
3091
3095
|
}
|
|
3092
|
-
const Qa =
|
|
3093
|
-
columnFilteringFeature:
|
|
3094
|
-
columnOrderingFeature:
|
|
3095
|
-
columnVisibilityFeature:
|
|
3096
|
-
filteredRowModel:
|
|
3097
|
-
globalFilteringFeature:
|
|
3098
|
-
rowSelectionFeature:
|
|
3099
|
-
rowSortingFeature:
|
|
3100
|
-
sortedRowModel:
|
|
3096
|
+
const Qa = Di({
|
|
3097
|
+
columnFilteringFeature: $i,
|
|
3098
|
+
columnOrderingFeature: Vi,
|
|
3099
|
+
columnVisibilityFeature: Fi,
|
|
3100
|
+
filteredRowModel: Ui(),
|
|
3101
|
+
globalFilteringFeature: Mi,
|
|
3102
|
+
rowSelectionFeature: Gi,
|
|
3103
|
+
rowSortingFeature: ki,
|
|
3104
|
+
sortedRowModel: Bi()
|
|
3101
3105
|
}), es = 320, ts = 8, ns = 12, os = 1.2, is = "var(--mantine-primary-color-light)", Yn = "mantine-focus-auto", tn = [], rs = [];
|
|
3102
3106
|
function jn(e) {
|
|
3103
3107
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
@@ -3127,7 +3131,7 @@ function ss(e, t) {
|
|
|
3127
3131
|
hiddenColumns: y,
|
|
3128
3132
|
defaultHiddenColumns: R,
|
|
3129
3133
|
onHiddenColumnsChange: L,
|
|
3130
|
-
columnOrder:
|
|
3134
|
+
columnOrder: O,
|
|
3131
3135
|
defaultColumnOrder: k,
|
|
3132
3136
|
onColumnOrderChange: W,
|
|
3133
3137
|
filter: V,
|
|
@@ -3140,7 +3144,7 @@ function ss(e, t) {
|
|
|
3140
3144
|
onFocus: N,
|
|
3141
3145
|
onBlur: G,
|
|
3142
3146
|
empty: J
|
|
3143
|
-
} = e, Q = Ya(p), ve = Qe(), ne = ct(), de = bt(), re =
|
|
3147
|
+
} = e, Q = Ya(p), ve = Qe(), ne = ct(), de = bt(), re = Zr({ numeric: !0, sensitivity: "variant" }), j = Z(() => new Intl.DateTimeFormat(ne), [ne]), se = Z(
|
|
3144
3148
|
() => ({ number: de, date: j, yes: Q.yes, no: Q.no }),
|
|
3145
3149
|
[de, j, Q.yes, Q.no]
|
|
3146
3150
|
), [K, ye] = ae({
|
|
@@ -3165,7 +3169,7 @@ function ss(e, t) {
|
|
|
3165
3169
|
L == null || L([...l], I);
|
|
3166
3170
|
}
|
|
3167
3171
|
}), [Ue, dt] = ae({
|
|
3168
|
-
value:
|
|
3172
|
+
value: O,
|
|
3169
3173
|
defaultValue: k,
|
|
3170
3174
|
finalValue: tn,
|
|
3171
3175
|
onChange: (l, I) => {
|
|
@@ -3203,7 +3207,7 @@ function ss(e, t) {
|
|
|
3203
3207
|
// accented word after every unaccented one. This one reads the
|
|
3204
3208
|
// value through the column's own accessor and compares it with
|
|
3205
3209
|
// the collator for the active locale.
|
|
3206
|
-
sortFn: (I,
|
|
3210
|
+
sortFn: (I, _) => Ja(l.value(I.original), l.value(_.original), re)
|
|
3207
3211
|
})),
|
|
3208
3212
|
[o, re]
|
|
3209
3213
|
), ut = JSON.stringify(we), pt = Z(
|
|
@@ -3219,7 +3223,7 @@ function ss(e, t) {
|
|
|
3219
3223
|
for (const I of K)
|
|
3220
3224
|
l[I] = !0;
|
|
3221
3225
|
return l;
|
|
3222
|
-
}, [K]), it = Z(() => [...Ue], [Ue]), Ae = X(void 0), $ =
|
|
3226
|
+
}, [K]), it = Z(() => [...Ue], [Ue]), Ae = X(void 0), $ = Ni({
|
|
3223
3227
|
features: Qa,
|
|
3224
3228
|
data: Ye,
|
|
3225
3229
|
columns: nt,
|
|
@@ -3230,8 +3234,8 @@ function ss(e, t) {
|
|
|
3230
3234
|
// actually looks in is decided per row below, from the visible set that
|
|
3231
3235
|
// travels with the query.
|
|
3232
3236
|
getColumnCanGlobalFilter: () => !0,
|
|
3233
|
-
globalFilterFn: (l, I,
|
|
3234
|
-
const U =
|
|
3237
|
+
globalFilterFn: (l, I, _) => {
|
|
3238
|
+
const U = _;
|
|
3235
3239
|
if (U === void 0 || !U.columnIds.includes(I))
|
|
3236
3240
|
return !1;
|
|
3237
3241
|
const te = Re.get(I);
|
|
@@ -3245,41 +3249,41 @@ function ss(e, t) {
|
|
|
3245
3249
|
globalFilter: We
|
|
3246
3250
|
},
|
|
3247
3251
|
onSortingChange: (l) => {
|
|
3248
|
-
const I =
|
|
3252
|
+
const I = Ot(l, pt);
|
|
3249
3253
|
ee(
|
|
3250
|
-
I.map((
|
|
3254
|
+
I.map((_) => ({ id: _.id, desc: _.desc })),
|
|
3251
3255
|
Ae.current
|
|
3252
3256
|
);
|
|
3253
3257
|
},
|
|
3254
3258
|
onColumnVisibilityChange: (l) => {
|
|
3255
|
-
const I =
|
|
3256
|
-
et(Object.keys(I).filter((
|
|
3259
|
+
const I = Ot(l, ot);
|
|
3260
|
+
et(Object.keys(I).filter((_) => !I[_]));
|
|
3257
3261
|
},
|
|
3258
3262
|
onColumnOrderChange: (l) => {
|
|
3259
|
-
dt(
|
|
3263
|
+
dt(Ot(l, it));
|
|
3260
3264
|
},
|
|
3261
3265
|
onRowSelectionChange: (l) => {
|
|
3262
|
-
ye(Object.keys(
|
|
3266
|
+
ye(Object.keys(Ot(l, Me)));
|
|
3263
3267
|
}
|
|
3264
|
-
}), { rows: oe } = $.getRowModel(), ie = $.getVisibleLeafColumns(), le = oe.length, me = ie.length, Le = Z(() => oe.map((l) => l.id), [oe]), M = X(null), ce = X(null), Ne =
|
|
3268
|
+
}), { rows: oe } = $.getRowModel(), ie = $.getVisibleLeafColumns(), le = oe.length, me = ie.length, Le = Z(() => oe.map((l) => l.id), [oe]), M = X(null), ce = X(null), Ne = Wi({
|
|
3265
3269
|
count: le,
|
|
3266
3270
|
getScrollElement: () => M.current,
|
|
3267
3271
|
estimateSize: () => d,
|
|
3268
3272
|
getItemKey: (l) => Le[l] ?? l,
|
|
3269
3273
|
overscan: g
|
|
3270
|
-
}), [zt, je] =
|
|
3274
|
+
}), [zt, je] = Oe({ row: xe, column: 0 }), he = Z(() => Ka(zt, { rowCount: le, columnCount: me }), [zt, le, me]), ft = X(!1), Ke = X(void 0), $o = (l) => {
|
|
3271
3275
|
l.row >= 0 && Ne.scrollToIndex(l.row), ft.current = !0, je((I) => kt(I, l) ? I : l);
|
|
3272
3276
|
};
|
|
3273
|
-
|
|
3274
|
-
var
|
|
3277
|
+
Oi(() => {
|
|
3278
|
+
var _;
|
|
3275
3279
|
if (!ft.current)
|
|
3276
3280
|
return;
|
|
3277
|
-
const l = `[data-grid-row="${he.row}"][data-grid-column="${he.column}"]`, I = (
|
|
3281
|
+
const l = `[data-grid-row="${he.row}"][data-grid-column="${he.column}"]`, I = (_ = ce.current) == null ? void 0 : _.querySelector(l);
|
|
3278
3282
|
I instanceof HTMLElement && (ft.current = !1, I.focus());
|
|
3279
3283
|
});
|
|
3280
3284
|
const Sn = (l, I) => {
|
|
3281
3285
|
Ke.current = l.anchor, !(l.selected.length === K.length && l.selected.every((U, te) => U === K[te])) && ye(l.selected, I);
|
|
3282
|
-
}, Ct = (l, I,
|
|
3286
|
+
}, Ct = (l, I, _) => {
|
|
3283
3287
|
Sn(
|
|
3284
3288
|
qa({
|
|
3285
3289
|
ids: Le,
|
|
@@ -3289,20 +3293,20 @@ function ss(e, t) {
|
|
|
3289
3293
|
modifiers: I,
|
|
3290
3294
|
mode: m
|
|
3291
3295
|
}),
|
|
3292
|
-
|
|
3296
|
+
_
|
|
3293
3297
|
);
|
|
3294
|
-
}, En = (l, I,
|
|
3298
|
+
}, En = (l, I, _) => {
|
|
3295
3299
|
const U = oe[l];
|
|
3296
|
-
U !== void 0 && (H == null || H(U.original, I,
|
|
3297
|
-
},
|
|
3300
|
+
U !== void 0 && (H == null || H(U.original, I, _));
|
|
3301
|
+
}, Bo = (l, I) => {
|
|
3298
3302
|
l.getCanSort() && (Ae.current = I, l.toggleSorting(void 0, I.shiftKey && l.getCanMultiSort()), Ae.current = void 0);
|
|
3299
|
-
},
|
|
3300
|
-
var
|
|
3301
|
-
const l = ((
|
|
3303
|
+
}, Uo = () => {
|
|
3304
|
+
var _;
|
|
3305
|
+
const l = ((_ = M.current) == null ? void 0 : _.clientHeight) ?? 0, I = Math.floor((l === 0 ? d * 10 : l) / d);
|
|
3302
3306
|
return Math.max(1, I - 1);
|
|
3303
|
-
},
|
|
3304
|
-
const I = m === "multiple",
|
|
3305
|
-
if (I &&
|
|
3307
|
+
}, Wo = (l) => {
|
|
3308
|
+
const I = m === "multiple", _ = l.ctrlKey || l.metaKey;
|
|
3309
|
+
if (I && _ && (l.key === "a" || l.key === "A")) {
|
|
3306
3310
|
l.preventDefault(), Sn(Za(Le, K, m), l);
|
|
3307
3311
|
return;
|
|
3308
3312
|
}
|
|
@@ -3313,11 +3317,11 @@ function ss(e, t) {
|
|
|
3313
3317
|
const U = ja(
|
|
3314
3318
|
he,
|
|
3315
3319
|
l.key,
|
|
3316
|
-
{ rowCount: le, columnCount: me, pageSize:
|
|
3320
|
+
{ rowCount: le, columnCount: me, pageSize: Uo() },
|
|
3317
3321
|
ve,
|
|
3318
|
-
{ jumpToEnd:
|
|
3322
|
+
{ jumpToEnd: _ }
|
|
3319
3323
|
);
|
|
3320
|
-
U !== void 0 && (l.preventDefault(),
|
|
3324
|
+
U !== void 0 && (l.preventDefault(), $o(U), I && l.shiftKey && U.row >= 0 && U.row !== he.row && Ct(U.row, { extend: !0, toggle: !1 }, l));
|
|
3321
3325
|
};
|
|
3322
3326
|
_i(
|
|
3323
3327
|
t,
|
|
@@ -3326,12 +3330,12 @@ function ss(e, t) {
|
|
|
3326
3330
|
l >= 0 && l < le && Ne.scrollToIndex(l);
|
|
3327
3331
|
},
|
|
3328
3332
|
setColumnHidden: (l, I) => {
|
|
3329
|
-
var
|
|
3330
|
-
(
|
|
3333
|
+
var _;
|
|
3334
|
+
(_ = $.getColumn(l)) == null || _.toggleVisibility(!I);
|
|
3331
3335
|
},
|
|
3332
3336
|
moveColumn: (l, I) => {
|
|
3333
|
-
const
|
|
3334
|
-
U !== -1 && (
|
|
3337
|
+
const _ = $.getAllLeafColumns().map((te) => te.id), U = _.indexOf(l);
|
|
3338
|
+
U !== -1 && (_.splice(U, 1), _.splice(as(I, 0, _.length), 0, l), $.setColumnOrder(_));
|
|
3335
3339
|
},
|
|
3336
3340
|
clearSelection: () => {
|
|
3337
3341
|
Ke.current = void 0, ye([]);
|
|
@@ -3339,16 +3343,16 @@ function ss(e, t) {
|
|
|
3339
3343
|
}),
|
|
3340
3344
|
[$, Ne, le, ye]
|
|
3341
3345
|
);
|
|
3342
|
-
const
|
|
3346
|
+
const Yo = ie.reduce(
|
|
3343
3347
|
(l, I) => {
|
|
3344
|
-
var
|
|
3345
|
-
return l + (((
|
|
3348
|
+
var _;
|
|
3349
|
+
return l + (((_ = Re.get(I.id)) == null ? void 0 : _.width) ?? c.FIELD);
|
|
3346
3350
|
},
|
|
3347
3351
|
0
|
|
3348
3352
|
), In = (l, I) => {
|
|
3349
|
-
const
|
|
3353
|
+
const _ = (l == null ? void 0 : l.width) ?? c.FIELD;
|
|
3350
3354
|
return {
|
|
3351
|
-
flex: I === me - 1 ? `1 1 ${String(
|
|
3355
|
+
flex: I === me - 1 ? `1 1 ${String(_)}px` : `0 0 ${String(_)}px`,
|
|
3352
3356
|
minWidth: 0,
|
|
3353
3357
|
boxSizing: "border-box",
|
|
3354
3358
|
display: "flex",
|
|
@@ -3362,7 +3366,7 @@ function ss(e, t) {
|
|
|
3362
3366
|
whiteSpace: "nowrap",
|
|
3363
3367
|
textOverflow: "ellipsis"
|
|
3364
3368
|
};
|
|
3365
|
-
}, Pt = m !== "none", Tn = Q.rowsShown(de.format(le), de.format(i.length)),
|
|
3369
|
+
}, Pt = m !== "none", Tn = Q.rowsShown(de.format(le), de.format(i.length)), jo = () => J !== void 0 ? J : i.length === 0 ? Q.noRows : Q.noMatchingRows;
|
|
3366
3370
|
return /* @__PURE__ */ S(
|
|
3367
3371
|
h,
|
|
3368
3372
|
{
|
|
@@ -3452,7 +3456,7 @@ function ss(e, t) {
|
|
|
3452
3456
|
"aria-rowcount": le + 1,
|
|
3453
3457
|
"aria-colcount": me,
|
|
3454
3458
|
"aria-multiselectable": m === "multiple" ? !0 : void 0,
|
|
3455
|
-
onKeyDown:
|
|
3459
|
+
onKeyDown: Wo,
|
|
3456
3460
|
stickyHeader: !0,
|
|
3457
3461
|
tabularNums: !0,
|
|
3458
3462
|
withRowBorders: !1,
|
|
@@ -3463,7 +3467,7 @@ function ss(e, t) {
|
|
|
3463
3467
|
style: {
|
|
3464
3468
|
display: "grid",
|
|
3465
3469
|
width: "100%",
|
|
3466
|
-
minWidth:
|
|
3470
|
+
minWidth: Yo,
|
|
3467
3471
|
fontSize: ns,
|
|
3468
3472
|
lineHeight: os
|
|
3469
3473
|
},
|
|
@@ -3486,14 +3490,14 @@ function ss(e, t) {
|
|
|
3486
3490
|
"aria-rowindex": 1,
|
|
3487
3491
|
style: { display: "flex", width: "100%", height: f },
|
|
3488
3492
|
children: ie.map((l, I) => {
|
|
3489
|
-
const
|
|
3493
|
+
const _ = Re.get(l.id), U = l.getCanSort(), te = l.getIsSorted(), Se = he.row === xe && he.column === I, Rt = te === !1 ? -1 : l.getSortIndex(), At = Se ? 0 : -1, yt = /* @__PURE__ */ S(q, { children: [
|
|
3490
3494
|
/* @__PURE__ */ n(
|
|
3491
3495
|
h,
|
|
3492
3496
|
{
|
|
3493
3497
|
component: "span",
|
|
3494
3498
|
"data-testid": "data-table-header-label",
|
|
3495
3499
|
dir: "auto",
|
|
3496
|
-
title:
|
|
3500
|
+
title: _ == null ? void 0 : _.header,
|
|
3497
3501
|
style: {
|
|
3498
3502
|
flex: "0 1 auto",
|
|
3499
3503
|
minWidth: 0,
|
|
@@ -3502,7 +3506,7 @@ function ss(e, t) {
|
|
|
3502
3506
|
whiteSpace: "nowrap",
|
|
3503
3507
|
color: te === !1 ? void 0 : x.VALUE
|
|
3504
3508
|
},
|
|
3505
|
-
children: (
|
|
3509
|
+
children: (_ == null ? void 0 : _.header) ?? l.id
|
|
3506
3510
|
}
|
|
3507
3511
|
),
|
|
3508
3512
|
te !== !1 && /* @__PURE__ */ n(
|
|
@@ -3563,7 +3567,7 @@ function ss(e, t) {
|
|
|
3563
3567
|
);
|
|
3564
3568
|
},
|
|
3565
3569
|
style: {
|
|
3566
|
-
...In(
|
|
3570
|
+
...In(_, I),
|
|
3567
3571
|
gap: c.GUTTER / 2,
|
|
3568
3572
|
height: f,
|
|
3569
3573
|
fontSize: "var(--mantine-font-size-sm)",
|
|
@@ -3586,7 +3590,7 @@ function ss(e, t) {
|
|
|
3586
3590
|
"data-grid-column": I,
|
|
3587
3591
|
tabIndex: At,
|
|
3588
3592
|
onClick: (Fe) => {
|
|
3589
|
-
je({ row: xe, column: I }),
|
|
3593
|
+
je({ row: xe, column: I }), Bo(l, Fe);
|
|
3590
3594
|
},
|
|
3591
3595
|
onFocus: () => {
|
|
3592
3596
|
je(
|
|
@@ -3597,7 +3601,7 @@ function ss(e, t) {
|
|
|
3597
3601
|
display: "flex",
|
|
3598
3602
|
alignItems: "center",
|
|
3599
3603
|
gap: c.GUTTER / 2,
|
|
3600
|
-
justifyContent: (
|
|
3604
|
+
justifyContent: (_ == null ? void 0 : _.align) === "end" ? "flex-end" : "flex-start",
|
|
3601
3605
|
flex: "1 1 auto",
|
|
3602
3606
|
minWidth: 0,
|
|
3603
3607
|
height: "100%",
|
|
@@ -3632,16 +3636,16 @@ function ss(e, t) {
|
|
|
3632
3636
|
const I = oe[l.index];
|
|
3633
3637
|
if (I === void 0)
|
|
3634
3638
|
return null;
|
|
3635
|
-
const
|
|
3639
|
+
const _ = K.includes(I.id);
|
|
3636
3640
|
return /* @__PURE__ */ n(
|
|
3637
3641
|
rt.Tr,
|
|
3638
3642
|
{
|
|
3639
3643
|
role: "row",
|
|
3640
3644
|
"data-testid": "data-table-row",
|
|
3641
3645
|
"data-index": l.index,
|
|
3642
|
-
"data-selected":
|
|
3646
|
+
"data-selected": _ ? "true" : void 0,
|
|
3643
3647
|
"aria-rowindex": l.index + 2,
|
|
3644
|
-
"aria-selected": Pt ?
|
|
3648
|
+
"aria-selected": Pt ? _ : void 0,
|
|
3645
3649
|
onDoubleClick: (U) => {
|
|
3646
3650
|
b == null || b(I.original, U);
|
|
3647
3651
|
},
|
|
@@ -3656,7 +3660,7 @@ function ss(e, t) {
|
|
|
3656
3660
|
width: "100%",
|
|
3657
3661
|
height: d,
|
|
3658
3662
|
transform: `translateY(${String(l.start)}px)`,
|
|
3659
|
-
background:
|
|
3663
|
+
background: _ ? is : void 0,
|
|
3660
3664
|
cursor: Pt ? "pointer" : void 0
|
|
3661
3665
|
},
|
|
3662
3666
|
children: ie.map((U, te) => {
|
|
@@ -3727,7 +3731,7 @@ function ss(e, t) {
|
|
|
3727
3731
|
fontSize: "var(--mantine-font-size-sm)",
|
|
3728
3732
|
color: x.CHROME
|
|
3729
3733
|
},
|
|
3730
|
-
children:
|
|
3734
|
+
children: jo()
|
|
3731
3735
|
}
|
|
3732
3736
|
)
|
|
3733
3737
|
]
|
|
@@ -3737,7 +3741,7 @@ function ss(e, t) {
|
|
|
3737
3741
|
}
|
|
3738
3742
|
);
|
|
3739
3743
|
}
|
|
3740
|
-
const
|
|
3744
|
+
const Ul = Ie.forwardRef(ss);
|
|
3741
3745
|
function ls() {
|
|
3742
3746
|
return crypto.randomUUID().slice(0, 8);
|
|
3743
3747
|
}
|
|
@@ -3752,7 +3756,7 @@ function cs() {
|
|
|
3752
3756
|
return [fn(0, "#6366F1"), fn(1, "#06B6D4")];
|
|
3753
3757
|
}
|
|
3754
3758
|
const ds = 2, us = 5, ps = 80, fs = 0, nn = 100, on = 0, hs = 360, gs = [0, 90, 180, 270, 360];
|
|
3755
|
-
function
|
|
3759
|
+
function Wl({
|
|
3756
3760
|
stops: e,
|
|
3757
3761
|
defaultStops: t,
|
|
3758
3762
|
direction: i,
|
|
@@ -3782,7 +3786,7 @@ function Ul({
|
|
|
3782
3786
|
y.current || (y.current = !0, s == null || s(A));
|
|
3783
3787
|
}, L = (A, H) => {
|
|
3784
3788
|
y.current = !1, p == null || p(A, H);
|
|
3785
|
-
},
|
|
3789
|
+
}, O = (A, H) => C.map((b, w) => w === A ? { ...b, color: H } : b), k = (A, H) => C.map((b, w) => w === A ? { ...b, offset: H / nn } : b), W = (A) => {
|
|
3786
3790
|
if (C.length >= d)
|
|
3787
3791
|
return;
|
|
3788
3792
|
const H = C[C.length - 1], b = H === void 0 ? 0.5 : (H.offset + 1) / 2, w = [...C, fn(b, qt)];
|
|
@@ -3814,12 +3818,12 @@ function Ul({
|
|
|
3814
3818
|
const b = g.format(H + 1);
|
|
3815
3819
|
return /* @__PURE__ */ S(qe, { "data-testid": "gradient-editor-stop", gap: "xs", align: "flex-end", wrap: "nowrap", children: [
|
|
3816
3820
|
/* @__PURE__ */ n(
|
|
3817
|
-
|
|
3821
|
+
_a,
|
|
3818
3822
|
{
|
|
3819
3823
|
color: A.color,
|
|
3820
3824
|
defaultColor: qt,
|
|
3821
3825
|
onColorChange: (w, N) => {
|
|
3822
|
-
T(
|
|
3826
|
+
T(O(H, w ?? qt), N);
|
|
3823
3827
|
},
|
|
3824
3828
|
showOpacity: !1
|
|
3825
3829
|
}
|
|
@@ -3904,7 +3908,7 @@ function vs() {
|
|
|
3904
3908
|
return ((i = new Intl.NumberFormat(e).formatToParts(bs).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
|
|
3905
3909
|
}, [e]);
|
|
3906
3910
|
}
|
|
3907
|
-
function
|
|
3911
|
+
function Yl({
|
|
3908
3912
|
label: e,
|
|
3909
3913
|
value: t,
|
|
3910
3914
|
defaultValue: i,
|
|
@@ -3925,14 +3929,14 @@ function Wl({
|
|
|
3925
3929
|
defaultValue: void 0,
|
|
3926
3930
|
finalValue: void 0,
|
|
3927
3931
|
onChange: o
|
|
3928
|
-
}), R = E === void 0, L = E ?? i, [
|
|
3932
|
+
}), R = E === void 0, L = E ?? i, [O, k] = Oe(L), W = X(!1);
|
|
3929
3933
|
Ee(() => {
|
|
3930
3934
|
W.current || k(E ?? i), W.current = !1;
|
|
3931
3935
|
}, [E, i]);
|
|
3932
3936
|
const V = (A) => {
|
|
3933
3937
|
W.current = !0, k(A);
|
|
3934
3938
|
}, D = (A) => {
|
|
3935
|
-
const H = typeof
|
|
3939
|
+
const H = typeof O == "string" ? T(O) : O;
|
|
3936
3940
|
if (Number.isNaN(H)) {
|
|
3937
3941
|
k(E ?? i), v == null || v(A);
|
|
3938
3942
|
return;
|
|
@@ -3958,7 +3962,7 @@ function Wl({
|
|
|
3958
3962
|
"data-testid": "style-number-input-field",
|
|
3959
3963
|
label: e,
|
|
3960
3964
|
description: C.description,
|
|
3961
|
-
value:
|
|
3965
|
+
value: O,
|
|
3962
3966
|
onChange: V,
|
|
3963
3967
|
onFocus: m,
|
|
3964
3968
|
onBlur: D,
|
|
@@ -4004,7 +4008,7 @@ function Wl({
|
|
|
4004
4008
|
);
|
|
4005
4009
|
}
|
|
4006
4010
|
const ys = 4, ws = 2;
|
|
4007
|
-
function
|
|
4011
|
+
function jl({
|
|
4008
4012
|
label: e,
|
|
4009
4013
|
value: t,
|
|
4010
4014
|
defaultValue: i,
|
|
@@ -4084,7 +4088,7 @@ function Yl({
|
|
|
4084
4088
|
);
|
|
4085
4089
|
}
|
|
4086
4090
|
const Gt = 4, Ss = `${String(c.TOGGLE_PITCH)}px`;
|
|
4087
|
-
function
|
|
4091
|
+
function Kl({
|
|
4088
4092
|
label: e,
|
|
4089
4093
|
checked: t,
|
|
4090
4094
|
defaultChecked: i,
|
|
@@ -4197,11 +4201,11 @@ function jl({
|
|
|
4197
4201
|
}
|
|
4198
4202
|
);
|
|
4199
4203
|
}
|
|
4200
|
-
function
|
|
4204
|
+
function Lo(e, t) {
|
|
4201
4205
|
return e !== void 0 ? e : t === void 0 ? "off" : "polite";
|
|
4202
4206
|
}
|
|
4203
4207
|
function Ze(e, t) {
|
|
4204
|
-
const i =
|
|
4208
|
+
const i = Lo(e, t);
|
|
4205
4209
|
return i === "off" ? { "aria-busy": t } : { "aria-live": i, "aria-atomic": !0, "aria-busy": t };
|
|
4206
4210
|
}
|
|
4207
4211
|
const rn = 4, Es = "(hover: none)";
|
|
@@ -4211,7 +4215,7 @@ function Is(e) {
|
|
|
4211
4215
|
if (typeof e == "number")
|
|
4212
4216
|
return String(e);
|
|
4213
4217
|
}
|
|
4214
|
-
function
|
|
4218
|
+
function Xl(e) {
|
|
4215
4219
|
const {
|
|
4216
4220
|
state: t,
|
|
4217
4221
|
stateTitle: i,
|
|
@@ -4224,7 +4228,7 @@ function Kl(e) {
|
|
|
4224
4228
|
onClick: d,
|
|
4225
4229
|
onFocus: f,
|
|
4226
4230
|
onBlur: g
|
|
4227
|
-
} = e, m = Ze(r, o), { hovered: v, ref: z } = fo(), C = ho(Es) ?? !1, [T, P] =
|
|
4231
|
+
} = e, m = Ze(r, o), { hovered: v, ref: z } = fo(), C = ho(Es) ?? !1, [T, P] = Oe(!1), E = ue(), y = T || (p ?? (v || C)), R = a !== void 0 || s !== void 0, L = Is(t), O = i !== void 0 && i !== L, k = i ?? L, W = R && t !== void 0, V = O ? /* @__PURE__ */ S(q, { children: [
|
|
4228
4232
|
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: t }),
|
|
4229
4233
|
/* @__PURE__ */ n(Te, { "data-testid": "action-row-state-full", children: i })
|
|
4230
4234
|
] }) : t;
|
|
@@ -4359,8 +4363,8 @@ function Kl(e) {
|
|
|
4359
4363
|
}
|
|
4360
4364
|
);
|
|
4361
4365
|
}
|
|
4362
|
-
const
|
|
4363
|
-
function
|
|
4366
|
+
const Oo = c.GUTTER, Ts = 12, _o = 1.2, zs = 20, Cs = 500, Ps = "var(--mantine-primary-color-light)";
|
|
4367
|
+
function ql({
|
|
4364
4368
|
name: e,
|
|
4365
4369
|
value: t,
|
|
4366
4370
|
icon: i,
|
|
@@ -4377,8 +4381,8 @@ function Xl({
|
|
|
4377
4381
|
const { hovered: m, ref: v } = fo(), z = s !== void 0, C = i != null, T = t != null, P = Tt(g), E = r === "option", y = E ? o : void 0, R = !E && o ? !0 : void 0, L = (V) => {
|
|
4378
4382
|
s == null || s(V, It(V));
|
|
4379
4383
|
};
|
|
4380
|
-
let
|
|
4381
|
-
o ?
|
|
4384
|
+
let O = "transparent";
|
|
4385
|
+
o ? O = Ps : z && m && (O = x.SURFACE);
|
|
4382
4386
|
const k = /* @__PURE__ */ S(q, { children: [
|
|
4383
4387
|
C && /* @__PURE__ */ n(
|
|
4384
4388
|
h,
|
|
@@ -4454,9 +4458,9 @@ function Xl({
|
|
|
4454
4458
|
boxSizing: "border-box",
|
|
4455
4459
|
width: "100%",
|
|
4456
4460
|
height: c.DATA_PITCH,
|
|
4457
|
-
paddingInline:
|
|
4461
|
+
paddingInline: Oo,
|
|
4458
4462
|
borderRadius: "var(--mantine-radius-sm)",
|
|
4459
|
-
background:
|
|
4463
|
+
background: O,
|
|
4460
4464
|
color: x.VALUE,
|
|
4461
4465
|
fontSize: Ts,
|
|
4462
4466
|
lineHeight: _o
|
|
@@ -4496,7 +4500,7 @@ function Xl({
|
|
|
4496
4500
|
}
|
|
4497
4501
|
);
|
|
4498
4502
|
}
|
|
4499
|
-
function
|
|
4503
|
+
function Zl({
|
|
4500
4504
|
label: e,
|
|
4501
4505
|
unit: t,
|
|
4502
4506
|
sortDirection: i,
|
|
@@ -4541,7 +4545,7 @@ function ql({
|
|
|
4541
4545
|
a !== void 0 && f && // Redundant to a screen reader: the position of this column in a
|
|
4542
4546
|
// multi-column sort is drawn for the eye, and every column
|
|
4543
4547
|
// announces its own direction through aria-sort.
|
|
4544
|
-
/* @__PURE__ */ n(h, { component: "span", "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ n(
|
|
4548
|
+
/* @__PURE__ */ n(h, { component: "span", "aria-hidden": "true", style: { flex: "0 0 auto", display: "flex" }, children: /* @__PURE__ */ n(Ho, { children: u.format(a) }) }),
|
|
4545
4549
|
f && /* @__PURE__ */ n(
|
|
4546
4550
|
h,
|
|
4547
4551
|
{
|
|
@@ -4576,7 +4580,7 @@ function ql({
|
|
|
4576
4580
|
boxSizing: "border-box",
|
|
4577
4581
|
width: "100%",
|
|
4578
4582
|
height: zs,
|
|
4579
|
-
paddingInline:
|
|
4583
|
+
paddingInline: Oo,
|
|
4580
4584
|
fontSize: "var(--mantine-font-size-sm)",
|
|
4581
4585
|
lineHeight: _o,
|
|
4582
4586
|
color: x.CHROME
|
|
@@ -4606,7 +4610,7 @@ function ql({
|
|
|
4606
4610
|
}
|
|
4607
4611
|
);
|
|
4608
4612
|
}
|
|
4609
|
-
function
|
|
4613
|
+
function Ho({ children: e }) {
|
|
4610
4614
|
return /* @__PURE__ */ n(
|
|
4611
4615
|
po,
|
|
4612
4616
|
{
|
|
@@ -4624,7 +4628,7 @@ function Oo({ children: e }) {
|
|
|
4624
4628
|
}
|
|
4625
4629
|
);
|
|
4626
4630
|
}
|
|
4627
|
-
const Kn = 2, Rs = 1, As = 13, Ls = 2,
|
|
4631
|
+
const Kn = 2, Rs = 1, As = 13, Ls = 2, Os = 1, _s = 1, Hs = 64, No = 4, Xn = No / 2, Do = 4, Ns = 12, at = 100, Ds = 1.5, hn = 100;
|
|
4628
4632
|
function Vt({ children: e, end: t, id: i }) {
|
|
4629
4633
|
return /* @__PURE__ */ n(
|
|
4630
4634
|
h,
|
|
@@ -4644,7 +4648,7 @@ function Vt({ children: e, end: t, id: i }) {
|
|
|
4644
4648
|
}
|
|
4645
4649
|
);
|
|
4646
4650
|
}
|
|
4647
|
-
function
|
|
4651
|
+
function ko() {
|
|
4648
4652
|
return /* @__PURE__ */ n(
|
|
4649
4653
|
h,
|
|
4650
4654
|
{
|
|
@@ -4657,7 +4661,7 @@ function Do() {
|
|
|
4657
4661
|
}
|
|
4658
4662
|
);
|
|
4659
4663
|
}
|
|
4660
|
-
function
|
|
4664
|
+
function Go({ caption: e, rows: t, testId: i }) {
|
|
4661
4665
|
return /* @__PURE__ */ S(Te, { component: "table", "data-testid": i, children: [
|
|
4662
4666
|
e !== void 0 && /* @__PURE__ */ n("caption", { children: e }),
|
|
4663
4667
|
/* @__PURE__ */ n("tbody", { children: t.map((o) => /* @__PURE__ */ S("tr", { children: [
|
|
@@ -4678,11 +4682,11 @@ function ks(e, t) {
|
|
|
4678
4682
|
return `${d},${f}`;
|
|
4679
4683
|
}).join(" ");
|
|
4680
4684
|
}
|
|
4681
|
-
function
|
|
4685
|
+
function Mo() {
|
|
4682
4686
|
const e = ue(), t = `${e}min`, i = `${e}max`;
|
|
4683
4687
|
return { min: t, max: i, describedBy: `${t} ${i}` };
|
|
4684
4688
|
}
|
|
4685
|
-
function
|
|
4689
|
+
function Jl({
|
|
4686
4690
|
bins: e,
|
|
4687
4691
|
label: t,
|
|
4688
4692
|
minLabel: i,
|
|
@@ -4691,7 +4695,7 @@ function Zl({
|
|
|
4691
4695
|
live: a,
|
|
4692
4696
|
trailing: s
|
|
4693
4697
|
}) {
|
|
4694
|
-
const p = bt(), u =
|
|
4698
|
+
const p = bt(), u = Mo(), d = e.reduce((g, m) => Math.max(g, m.count, 0), 0), f = e.map((g, m) => ({
|
|
4695
4699
|
id: `${g.label}-${String(m)}`,
|
|
4696
4700
|
header: g.label,
|
|
4697
4701
|
// The raw count, not the clamped one the bar draws: the table is the
|
|
@@ -4767,9 +4771,9 @@ function Zl({
|
|
|
4767
4771
|
flex: "1 1 0",
|
|
4768
4772
|
minWidth: 0,
|
|
4769
4773
|
height: `${String(z)}%`,
|
|
4770
|
-
minHeight: v > 0 ?
|
|
4774
|
+
minHeight: v > 0 ? _s : 0,
|
|
4771
4775
|
background: C ? x.ACCENT : x.BORDER,
|
|
4772
|
-
borderRadius:
|
|
4776
|
+
borderRadius: Os
|
|
4773
4777
|
}
|
|
4774
4778
|
},
|
|
4775
4779
|
`${g.label}-${String(m)}`
|
|
@@ -4777,7 +4781,7 @@ function Zl({
|
|
|
4777
4781
|
})
|
|
4778
4782
|
}
|
|
4779
4783
|
),
|
|
4780
|
-
/* @__PURE__ */ n(
|
|
4784
|
+
/* @__PURE__ */ n(ko, {})
|
|
4781
4785
|
]
|
|
4782
4786
|
}
|
|
4783
4787
|
),
|
|
@@ -4791,7 +4795,7 @@ function Zl({
|
|
|
4791
4795
|
display: "flex",
|
|
4792
4796
|
alignItems: "center",
|
|
4793
4797
|
justifyContent: "space-between",
|
|
4794
|
-
gap:
|
|
4798
|
+
gap: Do
|
|
4795
4799
|
},
|
|
4796
4800
|
children: [
|
|
4797
4801
|
/* @__PURE__ */ n(Vt, { end: "min", id: u.min, children: i }),
|
|
@@ -4802,13 +4806,13 @@ function Zl({
|
|
|
4802
4806
|
]
|
|
4803
4807
|
}
|
|
4804
4808
|
),
|
|
4805
|
-
/* @__PURE__ */ n(
|
|
4809
|
+
/* @__PURE__ */ n(Go, { caption: t, rows: f, testId: "histogram-values" }),
|
|
4806
4810
|
Tt(s) && /* @__PURE__ */ n(ke, { children: s })
|
|
4807
4811
|
]
|
|
4808
4812
|
}
|
|
4809
4813
|
);
|
|
4810
4814
|
}
|
|
4811
|
-
function
|
|
4815
|
+
function Ql({
|
|
4812
4816
|
values: e,
|
|
4813
4817
|
label: t,
|
|
4814
4818
|
minLabel: i,
|
|
@@ -4817,7 +4821,7 @@ function Jl({
|
|
|
4817
4821
|
live: a,
|
|
4818
4822
|
trailing: s
|
|
4819
4823
|
}) {
|
|
4820
|
-
const p = Qe(), u = bt(), d =
|
|
4824
|
+
const p = Qe(), u = bt(), d = Mo(), f = ks(e, p), g = e.map((m, v) => ({
|
|
4821
4825
|
id: `point-${String(v)}`,
|
|
4822
4826
|
// Positions count from one, the way a reader counts them, and are
|
|
4823
4827
|
// formatted for the locale so a series longer than a thousand points
|
|
@@ -4847,7 +4851,7 @@ function Jl({
|
|
|
4847
4851
|
minWidth: 0,
|
|
4848
4852
|
display: "flex",
|
|
4849
4853
|
alignItems: "center",
|
|
4850
|
-
gap:
|
|
4854
|
+
gap: Do
|
|
4851
4855
|
},
|
|
4852
4856
|
children: [
|
|
4853
4857
|
/* @__PURE__ */ n(Vt, { end: "min", id: d.min, children: i }),
|
|
@@ -4888,7 +4892,7 @@ function Jl({
|
|
|
4888
4892
|
children: f !== null && /* @__PURE__ */ n("polyline", { points: f, vectorEffect: "non-scaling-stroke" })
|
|
4889
4893
|
}
|
|
4890
4894
|
),
|
|
4891
|
-
/* @__PURE__ */ n(
|
|
4895
|
+
/* @__PURE__ */ n(ko, {})
|
|
4892
4896
|
]
|
|
4893
4897
|
}
|
|
4894
4898
|
),
|
|
@@ -4896,13 +4900,13 @@ function Jl({
|
|
|
4896
4900
|
]
|
|
4897
4901
|
}
|
|
4898
4902
|
),
|
|
4899
|
-
/* @__PURE__ */ n(
|
|
4903
|
+
/* @__PURE__ */ n(Go, { caption: t, rows: g, testId: "sparkline-values" }),
|
|
4900
4904
|
Tt(s) && /* @__PURE__ */ n(ke, { children: s })
|
|
4901
4905
|
]
|
|
4902
4906
|
}
|
|
4903
4907
|
);
|
|
4904
4908
|
}
|
|
4905
|
-
function
|
|
4909
|
+
function ec({
|
|
4906
4910
|
name: e,
|
|
4907
4911
|
percentile: t,
|
|
4908
4912
|
value: i,
|
|
@@ -4915,7 +4919,7 @@ function Ql({
|
|
|
4915
4919
|
onFocus: d,
|
|
4916
4920
|
onBlur: f
|
|
4917
4921
|
}) {
|
|
4918
|
-
const g = fe(), m =
|
|
4922
|
+
const g = fe(), m = qr(), v = ue(), z = s, C = z !== void 0, T = Math.min(hn, Math.max(0, t)), P = g.percentile(m(Math.round(T))), E = (R) => {
|
|
4919
4923
|
z !== void 0 && z(R, It(R));
|
|
4920
4924
|
}, y = (R) => {
|
|
4921
4925
|
z !== void 0 && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), z(R, It(R)));
|
|
@@ -4972,7 +4976,7 @@ function Ql({
|
|
|
4972
4976
|
"aria-valuenow": T,
|
|
4973
4977
|
"aria-valuetext": P,
|
|
4974
4978
|
title: P,
|
|
4975
|
-
size:
|
|
4979
|
+
size: No,
|
|
4976
4980
|
style: {
|
|
4977
4981
|
flex: `0 0 ${String(Hs)}px`,
|
|
4978
4982
|
borderRadius: Xn,
|
|
@@ -5014,17 +5018,17 @@ function Ql({
|
|
|
5014
5018
|
children: i
|
|
5015
5019
|
}
|
|
5016
5020
|
),
|
|
5017
|
-
o !== void 0 && /* @__PURE__ */ n(
|
|
5021
|
+
o !== void 0 && /* @__PURE__ */ n(Ho, { children: o })
|
|
5018
5022
|
]
|
|
5019
5023
|
}
|
|
5020
5024
|
);
|
|
5021
5025
|
}
|
|
5022
|
-
const
|
|
5026
|
+
const Fo = lt(!1);
|
|
5023
5027
|
function Gs({ showLabels: e = !1, children: t }) {
|
|
5024
|
-
return /* @__PURE__ */ n(
|
|
5028
|
+
return /* @__PURE__ */ n(Fo.Provider, { value: e, children: t });
|
|
5025
5029
|
}
|
|
5026
5030
|
function jt() {
|
|
5027
|
-
return
|
|
5031
|
+
return _e(Fo);
|
|
5028
5032
|
}
|
|
5029
5033
|
const Ms = c.VALUE_INSET - c.GLYPH_SLOT, Fs = 2, Vs = 1, $s = 2, Bs = 3;
|
|
5030
5034
|
function Us(e) {
|
|
@@ -5139,7 +5143,7 @@ function js(e, t) {
|
|
|
5139
5143
|
if (t !== 1)
|
|
5140
5144
|
return `CompoundRow "${e}" was given ${String(t)} segments that set grow, and exactly one should. The segment that sets grow takes the box's leftover width and should be the main value, with the rest sized to their content. Using the first segment that sets it, or the leading segment when none does.`;
|
|
5141
5145
|
}
|
|
5142
|
-
function
|
|
5146
|
+
function tc({
|
|
5143
5147
|
label: e,
|
|
5144
5148
|
segments: t,
|
|
5145
5149
|
width: i = c.BODY,
|
|
@@ -5150,9 +5154,9 @@ function ec({
|
|
|
5150
5154
|
onFocus: p,
|
|
5151
5155
|
onBlur: u
|
|
5152
5156
|
}) {
|
|
5153
|
-
const d = jt(), f = Ie.useId(), g = t.filter((
|
|
5157
|
+
const d = jt(), f = Ie.useId(), g = t.filter((O) => O.grow === !0).length;
|
|
5154
5158
|
Be(Ys(e, t.length)), Be(js(e, g));
|
|
5155
|
-
const m = t.findIndex((
|
|
5159
|
+
const m = t.findIndex((O) => O.grow === !0), v = m === -1 ? 0 : m, z = s !== void 0, C = Lo(a, r) !== "off", T = z || C, P = z ? void 0 : f, E = T ? void 0 : f, y = T || d, R = {
|
|
5156
5160
|
display: "flex",
|
|
5157
5161
|
alignItems: "center",
|
|
5158
5162
|
boxSizing: "border-box",
|
|
@@ -5169,7 +5173,7 @@ function ec({
|
|
|
5169
5173
|
cursor: z ? "pointer" : void 0
|
|
5170
5174
|
}, L = /* @__PURE__ */ S(q, { children: [
|
|
5171
5175
|
T && /* @__PURE__ */ n(Te, { id: P, children: e }),
|
|
5172
|
-
t.map((
|
|
5176
|
+
t.map((O, k) => /* @__PURE__ */ S(Ie.Fragment, { children: [
|
|
5173
5177
|
k > 0 && /* @__PURE__ */ n(
|
|
5174
5178
|
h,
|
|
5175
5179
|
{
|
|
@@ -5182,7 +5186,7 @@ function ec({
|
|
|
5182
5186
|
}
|
|
5183
5187
|
}
|
|
5184
5188
|
),
|
|
5185
|
-
/* @__PURE__ */ n(Ws, { segment:
|
|
5189
|
+
/* @__PURE__ */ n(Ws, { segment: O, grow: k === v, index: k })
|
|
5186
5190
|
] }, k))
|
|
5187
5191
|
] });
|
|
5188
5192
|
return /* @__PURE__ */ S(
|
|
@@ -5287,7 +5291,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
|
|
|
5287
5291
|
onScrubStart: y,
|
|
5288
5292
|
onScrub: R,
|
|
5289
5293
|
onScrubEnd: L,
|
|
5290
|
-
onClick:
|
|
5294
|
+
onClick: O,
|
|
5291
5295
|
disabled: k = !1,
|
|
5292
5296
|
readOnly: W,
|
|
5293
5297
|
boundDescription: V,
|
|
@@ -5323,9 +5327,9 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
|
|
|
5323
5327
|
}, nt = (M) => {
|
|
5324
5328
|
Re.current && (Re.current = !1, He.current && (He.current = !1, L == null || L(M)));
|
|
5325
5329
|
}, ut = (M) => {
|
|
5326
|
-
k ||
|
|
5330
|
+
k || O == null || O(M);
|
|
5327
5331
|
}, pt = (M) => {
|
|
5328
|
-
b == null || b(M), !(
|
|
5332
|
+
b == null || b(M), !(O === void 0 || k || M.defaultPrevented) && (j || (M.key === "Enter" || M.key === " " && se) && (M.preventDefault(), O(M)));
|
|
5329
5333
|
}, ot = (M, ce) => {
|
|
5330
5334
|
ne(M, ce);
|
|
5331
5335
|
};
|
|
@@ -5572,7 +5576,7 @@ function Qs(e) {
|
|
|
5572
5576
|
function Qn(e) {
|
|
5573
5577
|
return Ie.isValidElement(e) && e.type === Xs ? Ie.cloneElement(e, { width: "fill" }) : e;
|
|
5574
5578
|
}
|
|
5575
|
-
const
|
|
5579
|
+
const nc = Ut(function({
|
|
5576
5580
|
children: t,
|
|
5577
5581
|
trailing: i,
|
|
5578
5582
|
groupLabel: o,
|
|
@@ -5603,7 +5607,7 @@ const tc = Ut(function({
|
|
|
5603
5607
|
flexDirection: "column",
|
|
5604
5608
|
...a
|
|
5605
5609
|
},
|
|
5606
|
-
children: g.map((L,
|
|
5610
|
+
children: g.map((L, O) => {
|
|
5607
5611
|
const k = Qs(L);
|
|
5608
5612
|
return /* @__PURE__ */ S(
|
|
5609
5613
|
h,
|
|
@@ -5656,10 +5660,10 @@ const tc = Ut(function({
|
|
|
5656
5660
|
children: /* @__PURE__ */ n(Gs, { showLabels: !1, children: Qn(L) })
|
|
5657
5661
|
}
|
|
5658
5662
|
),
|
|
5659
|
-
/* @__PURE__ */ n(ke, { children:
|
|
5663
|
+
/* @__PURE__ */ n(ke, { children: O === 0 ? i : null })
|
|
5660
5664
|
]
|
|
5661
5665
|
},
|
|
5662
|
-
Jn(L,
|
|
5666
|
+
Jn(L, O)
|
|
5663
5667
|
);
|
|
5664
5668
|
})
|
|
5665
5669
|
}
|
|
@@ -5685,7 +5689,7 @@ const tc = Ut(function({
|
|
|
5685
5689
|
...a
|
|
5686
5690
|
},
|
|
5687
5691
|
children: [
|
|
5688
|
-
g.map((L,
|
|
5692
|
+
g.map((L, O) => /* @__PURE__ */ n(
|
|
5689
5693
|
h,
|
|
5690
5694
|
{
|
|
5691
5695
|
"data-testid": "field-row-slot",
|
|
@@ -5699,22 +5703,22 @@ const tc = Ut(function({
|
|
|
5699
5703
|
// the top of this file: a physical gutter escapes the
|
|
5700
5704
|
// pair under dir="rtl" and a physical trail gap lands
|
|
5701
5705
|
// inside it.
|
|
5702
|
-
marginInlineStart:
|
|
5703
|
-
marginInlineEnd:
|
|
5706
|
+
marginInlineStart: O === 0 ? void 0 : c.GUTTER,
|
|
5707
|
+
marginInlineEnd: O === m - 1 ? R : void 0
|
|
5704
5708
|
},
|
|
5705
5709
|
children: Qn(L)
|
|
5706
5710
|
},
|
|
5707
|
-
Jn(L,
|
|
5711
|
+
Jn(L, O)
|
|
5708
5712
|
)),
|
|
5709
5713
|
/* @__PURE__ */ n(ke, { children: i })
|
|
5710
5714
|
]
|
|
5711
5715
|
}
|
|
5712
5716
|
);
|
|
5713
|
-
}), el = 2, tl = 6,
|
|
5717
|
+
}), el = 2, tl = 6, Vo = 1, nl = c.CONTROL_HEIGHT - Vo * 2, ol = 2, eo = 3, il = 4, rl = 6, al = c.GLYPH, sl = 3;
|
|
5714
5718
|
function ll(e, t) {
|
|
5715
5719
|
return t ? x.DISABLED : e ? x.ON_SELECTED : x.CHROME;
|
|
5716
5720
|
}
|
|
5717
|
-
function
|
|
5721
|
+
function oc(e) {
|
|
5718
5722
|
const {
|
|
5719
5723
|
options: t,
|
|
5720
5724
|
value: i,
|
|
@@ -5739,7 +5743,7 @@ function nc(e) {
|
|
|
5739
5743
|
Be(
|
|
5740
5744
|
T < el || T > tl ? `IconGroupRow was given ${String(T)} ${T === 1 ? "option" : "options"}, and it holds two to six drawable ones. One option is a statement rather than a choice and belongs in a field, and more than six stop reading as a set of drawings -- use a select instead. Rendering them anyway.` : void 0
|
|
5741
5745
|
);
|
|
5742
|
-
const
|
|
5746
|
+
const O = g ?? (T <= sl ? c.FIELD : c.BODY), k = O === "fill", W = (D) => {
|
|
5743
5747
|
var b;
|
|
5744
5748
|
if (u || D.key !== "Home" && D.key !== "End")
|
|
5745
5749
|
return;
|
|
@@ -5861,10 +5865,10 @@ function nc(e) {
|
|
|
5861
5865
|
root: {
|
|
5862
5866
|
boxSizing: "border-box",
|
|
5863
5867
|
flex: k ? "1 1 auto" : "0 0 auto",
|
|
5864
|
-
width: k ? "100%" :
|
|
5868
|
+
width: k ? "100%" : O,
|
|
5865
5869
|
minWidth: 0,
|
|
5866
5870
|
height: c.CONTROL_HEIGHT,
|
|
5867
|
-
padding:
|
|
5871
|
+
padding: Vo,
|
|
5868
5872
|
gap: ol,
|
|
5869
5873
|
backgroundColor: x.SURFACE,
|
|
5870
5874
|
// Mantine hides the track's overflow, which would crop
|
|
@@ -5948,7 +5952,7 @@ function ml(e, t) {
|
|
|
5948
5952
|
if (!(t === void 0 || e === "runRecord"))
|
|
5949
5953
|
return `ProseBlock was given onDetails on the "${e}" shape, and it belongs to "runRecord". A reading and a departure line carry no chevron, so the handler is ignored.`;
|
|
5950
5954
|
}
|
|
5951
|
-
function
|
|
5955
|
+
function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
|
|
5952
5956
|
const a = fe(), s = Qe(), p = ue();
|
|
5953
5957
|
Be(gl(e, t)), Be(ml(e, i));
|
|
5954
5958
|
const u = Ze(r, o);
|
|
@@ -6086,7 +6090,7 @@ const sn = 4, xl = 4, bl = `polygon(0 calc(100% - ${xl}px), 100% 0, 100% 100%, 0
|
|
|
6086
6090
|
color: x.CHROME,
|
|
6087
6091
|
whiteSpace: "nowrap"
|
|
6088
6092
|
};
|
|
6089
|
-
function
|
|
6093
|
+
function rc({
|
|
6090
6094
|
min: e,
|
|
6091
6095
|
max: t,
|
|
6092
6096
|
label: i,
|
|
@@ -6123,7 +6127,7 @@ function ic({
|
|
|
6123
6127
|
children: /* @__PURE__ */ n(xt, { name: z })
|
|
6124
6128
|
}
|
|
6125
6129
|
) : L = /* @__PURE__ */ n(Fa, { label: C, icon: /* @__PURE__ */ n(xt, { name: z }), onClick: u }));
|
|
6126
|
-
const
|
|
6130
|
+
const O = Tt(d) ? d : L;
|
|
6127
6131
|
return /* @__PURE__ */ S(
|
|
6128
6132
|
h,
|
|
6129
6133
|
{
|
|
@@ -6186,7 +6190,7 @@ function ic({
|
|
|
6186
6190
|
display: "flex",
|
|
6187
6191
|
marginInlineStart: c.TRAIL_GAP - sn
|
|
6188
6192
|
},
|
|
6189
|
-
children: /* @__PURE__ */ n(ke, { children:
|
|
6193
|
+
children: /* @__PURE__ */ n(ke, { children: O })
|
|
6190
6194
|
}
|
|
6191
6195
|
)
|
|
6192
6196
|
]
|
|
@@ -6194,7 +6198,7 @@ function ic({
|
|
|
6194
6198
|
);
|
|
6195
6199
|
}
|
|
6196
6200
|
const Sl = 4, El = `${String(c.TOGGLE_PITCH)}px`, Il = 2;
|
|
6197
|
-
function
|
|
6201
|
+
function ac({
|
|
6198
6202
|
label: e,
|
|
6199
6203
|
checked: t,
|
|
6200
6204
|
defaultChecked: i,
|
|
@@ -6303,7 +6307,7 @@ function rc({
|
|
|
6303
6307
|
}
|
|
6304
6308
|
);
|
|
6305
6309
|
}
|
|
6306
|
-
function
|
|
6310
|
+
function sc({ children: e, label: t, labelledBy: i }) {
|
|
6307
6311
|
const o = Ie.Children.toArray(e).length;
|
|
6308
6312
|
return Be(
|
|
6309
6313
|
o < Il ? `ToggleRowGroup was given ${String(o)} ${o === 1 ? "row" : "rows"}, and it holds two or more. A single checkbox on a row of its own interrupts a column of rows to say one bit: put it in the trailing slot of the row it modifies, or make it one tile of a group of icon buttons. Rendering it anyway.` : void 0
|
|
@@ -6323,16 +6327,16 @@ function ac({ children: e, label: t, labelledBy: i }) {
|
|
|
6323
6327
|
}
|
|
6324
6328
|
);
|
|
6325
6329
|
}
|
|
6326
|
-
function
|
|
6327
|
-
return
|
|
6330
|
+
function lc(e = "dark") {
|
|
6331
|
+
return Ai(e);
|
|
6328
6332
|
}
|
|
6329
|
-
const
|
|
6333
|
+
const cc = {
|
|
6330
6334
|
xs: wt(4),
|
|
6331
6335
|
sm: wt(8),
|
|
6332
6336
|
md: wt(16),
|
|
6333
6337
|
lg: wt(24),
|
|
6334
6338
|
xl: wt(32)
|
|
6335
|
-
},
|
|
6339
|
+
}, dc = {
|
|
6336
6340
|
/** Standard compact component height (inputs, buttons, icons) in pixels */
|
|
6337
6341
|
HEIGHT: 24,
|
|
6338
6342
|
/** Standard compact font size in pixels */
|
|
@@ -6343,62 +6347,62 @@ const lc = {
|
|
|
6343
6347
|
SECTION_GAP: 4
|
|
6344
6348
|
};
|
|
6345
6349
|
export {
|
|
6346
|
-
|
|
6350
|
+
Xl as ActionRow,
|
|
6347
6351
|
Fa as AdvancedButton,
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6352
|
+
dc as COMPACT_SIZING,
|
|
6353
|
+
_a as CompactColorInput,
|
|
6354
|
+
tc as CompoundRow,
|
|
6355
|
+
Vl as ControlGroup,
|
|
6356
|
+
$l as ControlSection,
|
|
6357
|
+
Bl as ControlSubGroup,
|
|
6354
6358
|
qt as DEFAULT_GRADIENT_STOP_COLOR,
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6359
|
+
ql as DataRow,
|
|
6360
|
+
Zl as DataRowHeader,
|
|
6361
|
+
Ul as DataTable,
|
|
6362
|
+
Jr as FIELD_GLYPH_NAMES,
|
|
6363
|
+
Qr as FIELD_LETTERS,
|
|
6360
6364
|
xt as FieldGlyph,
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
+
nc as FieldRow,
|
|
6366
|
+
Wl as GradientEditor,
|
|
6367
|
+
Jl as HistogramRow,
|
|
6368
|
+
oc as IconGroupRow,
|
|
6365
6369
|
Ma as InfoCircle,
|
|
6366
|
-
|
|
6367
|
-
|
|
6370
|
+
_l as LabelsProvider,
|
|
6371
|
+
cc as MANTINE_SPACING,
|
|
6368
6372
|
Io as MAX_ALPHA_HEX,
|
|
6369
6373
|
To as MAX_OPACITY_PERCENT,
|
|
6370
|
-
|
|
6374
|
+
ec as MetricRow,
|
|
6371
6375
|
c as PANEL_GRID,
|
|
6372
6376
|
x as PANEL_INK,
|
|
6373
|
-
|
|
6374
|
-
|
|
6377
|
+
mr as POPOUT_GAP,
|
|
6378
|
+
xr as POPOUT_NESTED_GAP,
|
|
6375
6379
|
Pn as POPOUT_Z_INDEX_BASE,
|
|
6376
6380
|
Xs as PanelField,
|
|
6377
6381
|
Gs as PanelLabelsProvider,
|
|
6378
6382
|
st as Popout,
|
|
6379
|
-
|
|
6383
|
+
Fl as PopoutButton,
|
|
6380
6384
|
Ta as PopoutManager,
|
|
6381
6385
|
Gl as PopoutRegion,
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
|
|
6386
|
+
ic as ProseBlock,
|
|
6387
|
+
rc as RampRow,
|
|
6388
|
+
Ho as RankChip,
|
|
6389
|
+
Gr as SWATCH_COLORS_HEXA,
|
|
6390
|
+
Ql as SparklineRow,
|
|
6391
|
+
Yl as StyleNumberInput,
|
|
6392
|
+
jl as StyleSelect,
|
|
6393
|
+
ac as ToggleRow,
|
|
6394
|
+
sc as ToggleRowGroup,
|
|
6395
|
+
Kl as ToggleWithContent,
|
|
6392
6396
|
ke as TrailingSlot,
|
|
6393
6397
|
Hl as UI_GLYPH_NAMES,
|
|
6394
6398
|
pe as UiGlyph,
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
+
ji as compactColors,
|
|
6400
|
+
Yi as compactDarkColors,
|
|
6401
|
+
Ol as compactTheme,
|
|
6402
|
+
kr as compactThemeOverride,
|
|
6399
6403
|
fn as createColorStop,
|
|
6400
6404
|
cs as createDefaultGradientStops,
|
|
6401
|
-
|
|
6405
|
+
Mr as defaultLabels,
|
|
6402
6406
|
It as getActivationMeta,
|
|
6403
6407
|
So as isFieldGlyphName,
|
|
6404
6408
|
Eo as isFieldLetter,
|
|
@@ -6407,16 +6411,17 @@ export {
|
|
|
6407
6411
|
Co as opacityToAlphaHex,
|
|
6408
6412
|
zo as parseAlphaFromHexa,
|
|
6409
6413
|
Nl as parseHexaColor,
|
|
6410
|
-
|
|
6414
|
+
Xr as parseLocaleNumber,
|
|
6411
6415
|
Dl as toHexaColor,
|
|
6412
|
-
|
|
6413
|
-
|
|
6416
|
+
lc as useActualColorScheme,
|
|
6417
|
+
Zr as useCollator,
|
|
6414
6418
|
Qe as useDirection,
|
|
6415
6419
|
fe as useLabels,
|
|
6416
6420
|
ct as useLocale,
|
|
6417
6421
|
bt as useNumberFormatter,
|
|
6418
6422
|
yo as useNumberParser,
|
|
6419
|
-
|
|
6423
|
+
qr as useOrdinalFormatter,
|
|
6420
6424
|
jt as usePanelLabels,
|
|
6421
|
-
|
|
6425
|
+
Ml as usePopoutManager,
|
|
6426
|
+
ca as usePopoutRegion
|
|
6422
6427
|
};
|