@mantine-vue/core 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/cjs/index.cjs +485 -855
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +387 -774
- package/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/cjs/index.cjs
CHANGED
|
@@ -1,34 +1,130 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __exportAll = (all, no_symbols) => {
|
|
8
|
-
let target = {};
|
|
9
|
-
for (var name in all) __defProp(target, name, {
|
|
10
|
-
get: all[name],
|
|
11
|
-
enumerable: true
|
|
12
|
-
});
|
|
13
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
18
|
-
key = keys[i];
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
-
get: ((k) => from[k]).bind(null, key),
|
|
21
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
-
//#endregion
|
|
28
2
|
let vue = require("vue");
|
|
29
|
-
let _mantine_vue_utils = require("@mantine-vue/utils");
|
|
30
3
|
let _mantine_vue_hooks = require("@mantine-vue/hooks");
|
|
31
4
|
let _floating_ui_vue = require("@floating-ui/vue");
|
|
5
|
+
//#region ../utils/esm/index.mjs
|
|
6
|
+
function keys(object) {
|
|
7
|
+
return Object.keys(object);
|
|
8
|
+
}
|
|
9
|
+
function noop() {}
|
|
10
|
+
function isPrimitive(value) {
|
|
11
|
+
return value === null || typeof value !== "object" && typeof value !== "function";
|
|
12
|
+
}
|
|
13
|
+
function isPlainObject(value) {
|
|
14
|
+
if (value === null || typeof value !== "object") return false;
|
|
15
|
+
const prototype = Object.getPrototypeOf(value);
|
|
16
|
+
return prototype === Object.prototype || prototype === null;
|
|
17
|
+
}
|
|
18
|
+
function deepMerge(target, source) {
|
|
19
|
+
const result = { ...target };
|
|
20
|
+
keys(source).forEach((key) => {
|
|
21
|
+
const sourceValue = source[key];
|
|
22
|
+
const targetValue = result[key];
|
|
23
|
+
if (isPlainObject(targetValue) && isPlainObject(sourceValue)) result[key] = deepMerge(targetValue, sourceValue);
|
|
24
|
+
else if (sourceValue !== void 0) result[key] = sourceValue;
|
|
25
|
+
});
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
function camelToKebabCase(value) {
|
|
29
|
+
return value.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
30
|
+
}
|
|
31
|
+
function filterProps(props) {
|
|
32
|
+
return keys(props).reduce((acc, key) => {
|
|
33
|
+
if (props[key] !== void 0) acc[key] = props[key];
|
|
34
|
+
return acc;
|
|
35
|
+
}, {});
|
|
36
|
+
}
|
|
37
|
+
function isNumberLike(value) {
|
|
38
|
+
if (typeof value === "number") return true;
|
|
39
|
+
if (typeof value === "string") {
|
|
40
|
+
if (value.startsWith("calc(") || value.startsWith("var(") || value.includes(" ") && value.trim() !== "") return true;
|
|
41
|
+
const cssUnitsRegex = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
|
|
42
|
+
return value.trim().split(/\s+/).every((val) => cssUnitsRegex.test(val));
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
function rem(value) {
|
|
47
|
+
if (typeof value === "number") return `${value / 16}rem`;
|
|
48
|
+
if (typeof value === "string") {
|
|
49
|
+
if (value.includes("calc(") || value.includes("var(")) return value;
|
|
50
|
+
if (value.endsWith("px")) return `${Number(value.replace("px", "")) / 16}rem`;
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
function em(value) {
|
|
56
|
+
if (typeof value === "number") return `${value / 16}em`;
|
|
57
|
+
if (typeof value === "string" && value.endsWith("px")) return `${Number(value.replace("px", "")) / 16}em`;
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
function px(value) {
|
|
61
|
+
if (typeof value === "number") return value;
|
|
62
|
+
if (typeof value === "string") {
|
|
63
|
+
if (value.endsWith("rem") || value.endsWith("em")) return Number(value.replace("rem", "").replace("em", "")) * 16;
|
|
64
|
+
if (value.endsWith("px")) return Number(value.replace("px", ""));
|
|
65
|
+
}
|
|
66
|
+
return Number(value) || 0;
|
|
67
|
+
}
|
|
68
|
+
function getSize(size, prefix = "size", convertToRem = true) {
|
|
69
|
+
if (size === void 0) return;
|
|
70
|
+
return isNumberLike(size) ? convertToRem ? rem(size) : String(size) : `var(--${prefix}-${size})`;
|
|
71
|
+
}
|
|
72
|
+
var getSpacing = (size) => getSize(size, "mantine-spacing");
|
|
73
|
+
var getRadius = (size) => size === void 0 ? "var(--mantine-radius-default)" : getSize(size, "mantine-radius");
|
|
74
|
+
var getShadow = (size) => size ? getSize(size, "mantine-shadow", false) : void 0;
|
|
75
|
+
var getFontSize = (size) => getSize(size, "mantine-font-size");
|
|
76
|
+
var getLineHeight = (size) => getSize(size, "mantine-line-height", false);
|
|
77
|
+
function getBreakpointValue(value) {
|
|
78
|
+
if (typeof value === "number") return value;
|
|
79
|
+
if (value.endsWith("px")) return Number(value.replace("px", ""));
|
|
80
|
+
if (value.endsWith("em") || value.endsWith("rem")) return Number(value.replace("em", "").replace("rem", "")) * 16;
|
|
81
|
+
return Number(value);
|
|
82
|
+
}
|
|
83
|
+
function getSortedBreakpoints(breakpoints) {
|
|
84
|
+
return keys(breakpoints).map((breakpoint) => ({
|
|
85
|
+
breakpoint,
|
|
86
|
+
px: getBreakpointValue(breakpoints[breakpoint])
|
|
87
|
+
})).sort((a, b) => a.px - b.px);
|
|
88
|
+
}
|
|
89
|
+
function getBaseValue(value) {
|
|
90
|
+
if (isPlainObject(value)) return value.base;
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
function getDefaultZIndex(level) {
|
|
94
|
+
return {
|
|
95
|
+
app: 100,
|
|
96
|
+
modal: 200,
|
|
97
|
+
popover: 300,
|
|
98
|
+
overlay: 400,
|
|
99
|
+
max: 9999
|
|
100
|
+
}[level];
|
|
101
|
+
}
|
|
102
|
+
function memoize(fn) {
|
|
103
|
+
const cache = /* @__PURE__ */ new Map();
|
|
104
|
+
return (...args) => {
|
|
105
|
+
const key = JSON.stringify(args);
|
|
106
|
+
if (cache.has(key)) return cache.get(key);
|
|
107
|
+
const result = fn(...args);
|
|
108
|
+
cache.set(key, result);
|
|
109
|
+
return result;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function findClosestNumber(value, values) {
|
|
113
|
+
return values.reduce((closest, current) => Math.abs(current - value) < Math.abs(closest - value) ? current : closest);
|
|
114
|
+
}
|
|
115
|
+
function createEventHandler(...handlers) {
|
|
116
|
+
return (event) => {
|
|
117
|
+
handlers.forEach((handler) => handler?.(event));
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function getSafeId(uid, errorMessage) {
|
|
121
|
+
return (staticId) => {
|
|
122
|
+
if (typeof staticId === "string") return staticId;
|
|
123
|
+
if (uid === "") throw new Error(errorMessage);
|
|
124
|
+
return uid;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
32
128
|
//#region src/core/utils/index.ts
|
|
33
129
|
function createSafeInjectionContext(errorMessage) {
|
|
34
130
|
const key = Symbol(errorMessage);
|
|
@@ -350,20 +446,20 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
350
446
|
background: `var(--mantine-color-${color}-filled)`,
|
|
351
447
|
hover: `var(--mantine-color-${color}-filled-hover)`,
|
|
352
448
|
color: textColor,
|
|
353
|
-
border: `${
|
|
449
|
+
border: `${rem(1)} solid transparent`
|
|
354
450
|
};
|
|
355
451
|
return {
|
|
356
452
|
background: `var(--mantine-color-${parsed.color}-${parsed.shade})`,
|
|
357
453
|
hover: `var(--mantine-color-${parsed.color}-${parsed.shade === 9 ? 8 : parsed.shade + 1})`,
|
|
358
454
|
color: textColor,
|
|
359
|
-
border: `${
|
|
455
|
+
border: `${rem(1)} solid transparent`
|
|
360
456
|
};
|
|
361
457
|
}
|
|
362
458
|
return {
|
|
363
459
|
background: color,
|
|
364
460
|
hover: darken(color, .1),
|
|
365
461
|
color: textColor,
|
|
366
|
-
border: `${
|
|
462
|
+
border: `${rem(1)} solid transparent`
|
|
367
463
|
};
|
|
368
464
|
}
|
|
369
465
|
if (variant === "light") {
|
|
@@ -372,21 +468,21 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
372
468
|
background: `var(--mantine-color-${color}-light)`,
|
|
373
469
|
hover: `var(--mantine-color-${color}-light-hover)`,
|
|
374
470
|
color: `var(--mantine-color-${color}-light-color)`,
|
|
375
|
-
border: `${
|
|
471
|
+
border: `${rem(1)} solid transparent`
|
|
376
472
|
};
|
|
377
473
|
const parsedColor = theme.colors[parsed.color][parsed.shade];
|
|
378
474
|
return {
|
|
379
475
|
background: parsedColor,
|
|
380
476
|
hover: darken(parsedColor, .1),
|
|
381
477
|
color: `var(--mantine-color-${parsed.color}-light-color)`,
|
|
382
|
-
border: `${
|
|
478
|
+
border: `${rem(1)} solid transparent`
|
|
383
479
|
};
|
|
384
480
|
}
|
|
385
481
|
return {
|
|
386
482
|
background: rgba(color, .1),
|
|
387
483
|
hover: rgba(color, .12),
|
|
388
484
|
color,
|
|
389
|
-
border: `${
|
|
485
|
+
border: `${rem(1)} solid transparent`
|
|
390
486
|
};
|
|
391
487
|
}
|
|
392
488
|
if (variant === "outline") {
|
|
@@ -395,20 +491,20 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
395
491
|
background: "transparent",
|
|
396
492
|
hover: `var(--mantine-color-${color}-outline-hover)`,
|
|
397
493
|
color: `var(--mantine-color-${color}-outline)`,
|
|
398
|
-
border: `${
|
|
494
|
+
border: `${rem(1)} solid var(--mantine-color-${color}-outline)`
|
|
399
495
|
};
|
|
400
496
|
return {
|
|
401
497
|
background: "transparent",
|
|
402
498
|
hover: rgba(theme.colors[parsed.color][parsed.shade], .05),
|
|
403
499
|
color: `var(--mantine-color-${parsed.color}-${parsed.shade})`,
|
|
404
|
-
border: `${
|
|
500
|
+
border: `${rem(1)} solid var(--mantine-color-${parsed.color}-${parsed.shade})`
|
|
405
501
|
};
|
|
406
502
|
}
|
|
407
503
|
return {
|
|
408
504
|
background: "transparent",
|
|
409
505
|
hover: rgba(color, .05),
|
|
410
506
|
color,
|
|
411
|
-
border: `${
|
|
507
|
+
border: `${rem(1)} solid ${color}`
|
|
412
508
|
};
|
|
413
509
|
}
|
|
414
510
|
if (variant === "subtle") {
|
|
@@ -417,21 +513,21 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
417
513
|
background: "transparent",
|
|
418
514
|
hover: `var(--mantine-color-${color}-light-hover)`,
|
|
419
515
|
color: `var(--mantine-color-${color}-light-color)`,
|
|
420
|
-
border: `${
|
|
516
|
+
border: `${rem(1)} solid transparent`
|
|
421
517
|
};
|
|
422
518
|
const parsedColor = theme.colors[parsed.color][parsed.shade];
|
|
423
519
|
return {
|
|
424
520
|
background: "transparent",
|
|
425
521
|
hover: rgba(parsedColor, .12),
|
|
426
522
|
color: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,
|
|
427
|
-
border: `${
|
|
523
|
+
border: `${rem(1)} solid transparent`
|
|
428
524
|
};
|
|
429
525
|
}
|
|
430
526
|
return {
|
|
431
527
|
background: "transparent",
|
|
432
528
|
hover: rgba(color, .12),
|
|
433
529
|
color,
|
|
434
|
-
border: `${
|
|
530
|
+
border: `${rem(1)} solid transparent`
|
|
435
531
|
};
|
|
436
532
|
}
|
|
437
533
|
if (variant === "transparent") {
|
|
@@ -440,20 +536,20 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
440
536
|
background: "transparent",
|
|
441
537
|
hover: "transparent",
|
|
442
538
|
color: `var(--mantine-color-${color}-light-color)`,
|
|
443
|
-
border: `${
|
|
539
|
+
border: `${rem(1)} solid transparent`
|
|
444
540
|
};
|
|
445
541
|
return {
|
|
446
542
|
background: "transparent",
|
|
447
543
|
hover: "transparent",
|
|
448
544
|
color: `var(--mantine-color-${parsed.color}-${Math.min(parsed.shade, 6)})`,
|
|
449
|
-
border: `${
|
|
545
|
+
border: `${rem(1)} solid transparent`
|
|
450
546
|
};
|
|
451
547
|
}
|
|
452
548
|
return {
|
|
453
549
|
background: "transparent",
|
|
454
550
|
hover: "transparent",
|
|
455
551
|
color,
|
|
456
|
-
border: `${
|
|
552
|
+
border: `${rem(1)} solid transparent`
|
|
457
553
|
};
|
|
458
554
|
}
|
|
459
555
|
if (variant === "white") {
|
|
@@ -462,20 +558,20 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
462
558
|
background: "var(--mantine-color-white)",
|
|
463
559
|
hover: darken(theme.white, .01),
|
|
464
560
|
color: `var(--mantine-color-${color}-filled)`,
|
|
465
|
-
border: `${
|
|
561
|
+
border: `${rem(1)} solid transparent`
|
|
466
562
|
};
|
|
467
563
|
return {
|
|
468
564
|
background: "var(--mantine-color-white)",
|
|
469
565
|
hover: darken(theme.white, .01),
|
|
470
566
|
color: `var(--mantine-color-${parsed.color}-${parsed.shade})`,
|
|
471
|
-
border: `${
|
|
567
|
+
border: `${rem(1)} solid transparent`
|
|
472
568
|
};
|
|
473
569
|
}
|
|
474
570
|
return {
|
|
475
571
|
background: "var(--mantine-color-white)",
|
|
476
572
|
hover: darken(theme.white, .01),
|
|
477
573
|
color,
|
|
478
|
-
border: `${
|
|
574
|
+
border: `${rem(1)} solid transparent`
|
|
479
575
|
};
|
|
480
576
|
}
|
|
481
577
|
if (variant === "gradient") return {
|
|
@@ -488,7 +584,7 @@ var defaultVariantColorsResolver = ({ color, theme, variant, gradient, autoContr
|
|
|
488
584
|
background: "var(--mantine-color-default)",
|
|
489
585
|
hover: "var(--mantine-color-default-hover)",
|
|
490
586
|
color: "var(--mantine-color-default-color)",
|
|
491
|
-
border: `${
|
|
587
|
+
border: `${rem(1)} solid var(--mantine-color-default-border)`
|
|
492
588
|
};
|
|
493
589
|
return {};
|
|
494
590
|
};
|
|
@@ -700,37 +796,37 @@ var DEFAULT_THEME = {
|
|
|
700
796
|
textWrap: "wrap",
|
|
701
797
|
sizes: {
|
|
702
798
|
h1: {
|
|
703
|
-
fontSize:
|
|
799
|
+
fontSize: rem(34),
|
|
704
800
|
lineHeight: "1.3"
|
|
705
801
|
},
|
|
706
802
|
h2: {
|
|
707
|
-
fontSize:
|
|
803
|
+
fontSize: rem(26),
|
|
708
804
|
lineHeight: "1.35"
|
|
709
805
|
},
|
|
710
806
|
h3: {
|
|
711
|
-
fontSize:
|
|
807
|
+
fontSize: rem(22),
|
|
712
808
|
lineHeight: "1.4"
|
|
713
809
|
},
|
|
714
810
|
h4: {
|
|
715
|
-
fontSize:
|
|
811
|
+
fontSize: rem(18),
|
|
716
812
|
lineHeight: "1.45"
|
|
717
813
|
},
|
|
718
814
|
h5: {
|
|
719
|
-
fontSize:
|
|
815
|
+
fontSize: rem(16),
|
|
720
816
|
lineHeight: "1.5"
|
|
721
817
|
},
|
|
722
818
|
h6: {
|
|
723
|
-
fontSize:
|
|
819
|
+
fontSize: rem(14),
|
|
724
820
|
lineHeight: "1.5"
|
|
725
821
|
}
|
|
726
822
|
}
|
|
727
823
|
},
|
|
728
824
|
fontSizes: {
|
|
729
|
-
xs:
|
|
730
|
-
sm:
|
|
731
|
-
md:
|
|
732
|
-
lg:
|
|
733
|
-
xl:
|
|
825
|
+
xs: rem(12),
|
|
826
|
+
sm: rem(14),
|
|
827
|
+
md: rem(16),
|
|
828
|
+
lg: rem(18),
|
|
829
|
+
xl: rem(20)
|
|
734
830
|
},
|
|
735
831
|
lineHeights: {
|
|
736
832
|
xs: "1.4",
|
|
@@ -745,18 +841,18 @@ var DEFAULT_THEME = {
|
|
|
745
841
|
bold: "700"
|
|
746
842
|
},
|
|
747
843
|
radius: {
|
|
748
|
-
xs:
|
|
749
|
-
sm:
|
|
750
|
-
md:
|
|
751
|
-
lg:
|
|
752
|
-
xl:
|
|
844
|
+
xs: rem(2),
|
|
845
|
+
sm: rem(4),
|
|
846
|
+
md: rem(8),
|
|
847
|
+
lg: rem(16),
|
|
848
|
+
xl: rem(32)
|
|
753
849
|
},
|
|
754
850
|
spacing: {
|
|
755
|
-
xs:
|
|
756
|
-
sm:
|
|
757
|
-
md:
|
|
758
|
-
lg:
|
|
759
|
-
xl:
|
|
851
|
+
xs: rem(10),
|
|
852
|
+
sm: rem(12),
|
|
853
|
+
md: rem(16),
|
|
854
|
+
lg: rem(20),
|
|
855
|
+
xl: rem(32)
|
|
760
856
|
},
|
|
761
857
|
breakpoints: {
|
|
762
858
|
xs: "36em",
|
|
@@ -766,11 +862,11 @@ var DEFAULT_THEME = {
|
|
|
766
862
|
xl: "88em"
|
|
767
863
|
},
|
|
768
864
|
shadows: {
|
|
769
|
-
xs: `0 ${
|
|
770
|
-
sm: `0 ${
|
|
771
|
-
md: `0 ${
|
|
772
|
-
lg: `0 ${
|
|
773
|
-
xl: `0 ${
|
|
865
|
+
xs: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), 0 ${rem(1)} ${rem(2)} rgba(0, 0, 0, 0.1)`,
|
|
866
|
+
sm: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(10)} ${rem(15)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(7)} ${rem(7)} ${rem(-5)}`,
|
|
867
|
+
md: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(20)} ${rem(25)} ${rem(-5)}, rgba(0, 0, 0, 0.04) 0 ${rem(10)} ${rem(10)} ${rem(-5)}`,
|
|
868
|
+
lg: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(28)} ${rem(23)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(12)} ${rem(12)} ${rem(-7)}`,
|
|
869
|
+
xl: `0 ${rem(1)} ${rem(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${rem(36)} ${rem(28)} ${rem(-7)}, rgba(0, 0, 0, 0.04) 0 ${rem(17)} ${rem(17)} ${rem(-7)}`
|
|
774
870
|
},
|
|
775
871
|
other: {},
|
|
776
872
|
components: {}
|
|
@@ -794,7 +890,7 @@ function mergeMantineTheme(currentTheme, themeOverride) {
|
|
|
794
890
|
validateMantineTheme(currentTheme);
|
|
795
891
|
return currentTheme;
|
|
796
892
|
}
|
|
797
|
-
const result =
|
|
893
|
+
const result = deepMerge(currentTheme, themeOverride);
|
|
798
894
|
if (themeOverride.fontFamily && !themeOverride.headings?.fontFamily) result.headings = {
|
|
799
895
|
...result.headings,
|
|
800
896
|
fontFamily: themeOverride.fontFamily
|
|
@@ -805,7 +901,7 @@ function mergeMantineTheme(currentTheme, themeOverride) {
|
|
|
805
901
|
//#endregion
|
|
806
902
|
//#region src/core/MantineProvider/css-variables.ts
|
|
807
903
|
function assignSizeVariables(variables, sizes, name) {
|
|
808
|
-
|
|
904
|
+
keys(sizes).forEach((size) => {
|
|
809
905
|
variables[`--mantine-${name}-${size}`] = sizes[size];
|
|
810
906
|
});
|
|
811
907
|
}
|
|
@@ -840,7 +936,7 @@ function getCSSColorVariables({ theme, color, colorScheme, name = color, withCol
|
|
|
840
936
|
}
|
|
841
937
|
var defaultCssVariablesResolver = (theme) => {
|
|
842
938
|
const lightPrimaryShade = getPrimaryShade(theme, "light");
|
|
843
|
-
const defaultRadius = String(theme.defaultRadius) in theme.radius ? theme.radius[String(theme.defaultRadius)] :
|
|
939
|
+
const defaultRadius = String(theme.defaultRadius) in theme.radius ? theme.radius[String(theme.defaultRadius)] : rem(theme.defaultRadius);
|
|
844
940
|
const result = {
|
|
845
941
|
variables: {
|
|
846
942
|
"--mantine-z-index-app": "100",
|
|
@@ -914,7 +1010,7 @@ var defaultCssVariablesResolver = (theme) => {
|
|
|
914
1010
|
theme.colors[theme.primaryColor].forEach((_, index) => {
|
|
915
1011
|
result.variables[`--mantine-primary-color-${index}`] = `var(--mantine-color-${theme.primaryColor}-${index})`;
|
|
916
1012
|
});
|
|
917
|
-
|
|
1013
|
+
keys(theme.colors).forEach((color) => {
|
|
918
1014
|
const value = theme.colors[color];
|
|
919
1015
|
if (isVirtualColor(value)) {
|
|
920
1016
|
Object.assign(result.light, getCSSColorVariables({
|
|
@@ -947,7 +1043,7 @@ var defaultCssVariablesResolver = (theme) => {
|
|
|
947
1043
|
withColorValues: false
|
|
948
1044
|
}));
|
|
949
1045
|
});
|
|
950
|
-
|
|
1046
|
+
keys(theme.headings.sizes).forEach((heading) => {
|
|
951
1047
|
const value = theme.headings.sizes[heading];
|
|
952
1048
|
result.variables[`--mantine-${heading}-font-size`] = value.fontSize;
|
|
953
1049
|
result.variables[`--mantine-${heading}-line-height`] = value.lineHeight;
|
|
@@ -960,13 +1056,13 @@ function getMergedVariables({ theme, generator }) {
|
|
|
960
1056
|
if (!generator) return defaultVariables;
|
|
961
1057
|
const generatedVariables = generator(theme);
|
|
962
1058
|
return {
|
|
963
|
-
variables:
|
|
964
|
-
light:
|
|
965
|
-
dark:
|
|
1059
|
+
variables: deepMerge(defaultVariables.variables, generatedVariables.variables || {}),
|
|
1060
|
+
light: deepMerge(defaultVariables.light || {}, generatedVariables.light || {}),
|
|
1061
|
+
dark: deepMerge(defaultVariables.dark || {}, generatedVariables.dark || {})
|
|
966
1062
|
};
|
|
967
1063
|
}
|
|
968
1064
|
function cssVariablesObjectToString(variables) {
|
|
969
|
-
return
|
|
1065
|
+
return keys(variables).filter((variable) => variables[variable] !== void 0).map((variable) => `${variable}: ${variables[variable]};`).join("\n");
|
|
970
1066
|
}
|
|
971
1067
|
function convertCssVariables(input, selector = ":root") {
|
|
972
1068
|
const blocks = [`${selector}{${cssVariablesObjectToString(input.variables)}}`];
|
|
@@ -1233,10 +1329,10 @@ var MantineClasses = (0, vue.defineComponent)({
|
|
|
1233
1329
|
name: "MantineClasses",
|
|
1234
1330
|
setup() {
|
|
1235
1331
|
const theme = useMantineTheme();
|
|
1236
|
-
const classes = (0, vue.computed)(() =>
|
|
1332
|
+
const classes = (0, vue.computed)(() => keys(theme.value.breakpoints).reduce((acc, breakpoint) => {
|
|
1237
1333
|
const isPxBreakpoint = theme.value.breakpoints[breakpoint].includes("px");
|
|
1238
|
-
const pxValue =
|
|
1239
|
-
return `${acc}@media (max-width: ${isPxBreakpoint ? `${pxValue - .1}px` :
|
|
1334
|
+
const pxValue = px(theme.value.breakpoints[breakpoint]);
|
|
1335
|
+
return `${acc}@media (max-width: ${isPxBreakpoint ? `${pxValue - .1}px` : em(pxValue - .1)}) {.mantine-visible-from-${breakpoint} {display: none !important;}}@media (min-width: ${isPxBreakpoint ? `${pxValue}px` : em(pxValue)}) {.mantine-hidden-from-${breakpoint} {display: none !important;}}`;
|
|
1240
1336
|
}, ""));
|
|
1241
1337
|
return () => (0, vue.h)("style", {
|
|
1242
1338
|
"data-mantine-styles": "classes",
|
|
@@ -1251,7 +1347,7 @@ function useProps(component, defaultProps, props) {
|
|
|
1251
1347
|
const resolvedProps = (0, vue.computed)(() => ({
|
|
1252
1348
|
...defaultProps,
|
|
1253
1349
|
...theme.value.components[component]?.defaultProps,
|
|
1254
|
-
...
|
|
1350
|
+
...filterProps(props)
|
|
1255
1351
|
}));
|
|
1256
1352
|
return new Proxy({}, {
|
|
1257
1353
|
get(_, key) {
|
|
@@ -1279,7 +1375,7 @@ function mergeVars(sources) {
|
|
|
1279
1375
|
if (current) Object.keys(current).forEach((key) => {
|
|
1280
1376
|
acc[key] = {
|
|
1281
1377
|
...acc[key],
|
|
1282
|
-
...
|
|
1378
|
+
...filterProps(current[key] ?? {})
|
|
1283
1379
|
};
|
|
1284
1380
|
});
|
|
1285
1381
|
return acc;
|
|
@@ -1480,7 +1576,7 @@ function colorResolver(value, theme, text) {
|
|
|
1480
1576
|
function resolveValue(value, type, theme) {
|
|
1481
1577
|
if (value === void 0) return void 0;
|
|
1482
1578
|
if (type === "identity") return value;
|
|
1483
|
-
if (type === "size") return typeof value === "number" ?
|
|
1579
|
+
if (type === "size") return typeof value === "number" ? rem(value) : value;
|
|
1484
1580
|
if (type === "color") return colorResolver(value, theme, false);
|
|
1485
1581
|
if (type === "textColor") return colorResolver(value, theme, true);
|
|
1486
1582
|
if (type === "fontFamily") return typeof value === "string" ? {
|
|
@@ -1493,13 +1589,13 @@ function resolveValue(value, type, theme) {
|
|
|
1493
1589
|
if (type === "fontSize") {
|
|
1494
1590
|
if (typeof value === "string" && value in theme.fontSizes) return `var(--mantine-font-size-${value})`;
|
|
1495
1591
|
if (typeof value === "string" && /^h[1-6]$/.test(value)) return `var(--mantine-${value}-font-size)`;
|
|
1496
|
-
return
|
|
1592
|
+
return rem(value);
|
|
1497
1593
|
}
|
|
1498
1594
|
if (type === "lineHeight") {
|
|
1499
1595
|
if (typeof value === "string" && value in theme.lineHeights) return `var(--mantine-line-height-${value})`;
|
|
1500
1596
|
return typeof value === "string" && /^h[1-6]$/.test(value) ? `var(--mantine-${value}-line-height)` : value;
|
|
1501
1597
|
}
|
|
1502
|
-
if (type === "radius") return typeof value === "string" && value in theme.radius ? `var(--mantine-radius-${value})` :
|
|
1598
|
+
if (type === "radius") return typeof value === "string" && value in theme.radius ? `var(--mantine-radius-${value})` : rem(value);
|
|
1503
1599
|
if (type === "spacing") {
|
|
1504
1600
|
if (typeof value === "string") {
|
|
1505
1601
|
const key = value.replace("-", "");
|
|
@@ -1508,14 +1604,14 @@ function resolveValue(value, type, theme) {
|
|
|
1508
1604
|
return value.startsWith("-") ? `calc(var(${variable}) * -1)` : `var(${variable})`;
|
|
1509
1605
|
}
|
|
1510
1606
|
}
|
|
1511
|
-
return
|
|
1607
|
+
return rem(value);
|
|
1512
1608
|
}
|
|
1513
1609
|
if (type === "border") {
|
|
1514
|
-
if (typeof value === "number") return
|
|
1610
|
+
if (typeof value === "number") return rem(value);
|
|
1515
1611
|
if (typeof value !== "string") return value;
|
|
1516
1612
|
const [size, style, ...color] = value.split(" ").filter(Boolean);
|
|
1517
1613
|
return [
|
|
1518
|
-
|
|
1614
|
+
rem(size),
|
|
1519
1615
|
style,
|
|
1520
1616
|
color.length ? colorResolver(color.join(" "), theme, false) : null
|
|
1521
1617
|
].filter(Boolean).join(" ");
|
|
@@ -1529,7 +1625,7 @@ function parseStyleProps({ styleProps, theme, data }) {
|
|
|
1529
1625
|
Object.entries(styleProps).forEach(([prop, value]) => {
|
|
1530
1626
|
const propData = data[prop];
|
|
1531
1627
|
if (!propData || value === void 0) return;
|
|
1532
|
-
const cssProperty =
|
|
1628
|
+
const cssProperty = camelToKebabCase(propData.property);
|
|
1533
1629
|
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
1534
1630
|
if (Object.keys(value).filter((breakpoint) => breakpoint !== "base").length === 0) {
|
|
1535
1631
|
const resolved = resolveValue(value.base, propData.type, theme);
|
|
@@ -1543,7 +1639,7 @@ function parseStyleProps({ styleProps, theme, data }) {
|
|
|
1543
1639
|
styles[cssProperty] = resolved;
|
|
1544
1640
|
return;
|
|
1545
1641
|
}
|
|
1546
|
-
const query = `(min-width: ${
|
|
1642
|
+
const query = `(min-width: ${getBreakpointValue(theme.breakpoints[breakpoint] ?? breakpoint) / 16}em)`;
|
|
1547
1643
|
media[query] = media[query] ?? {};
|
|
1548
1644
|
media[query][cssProperty] = resolved;
|
|
1549
1645
|
});
|
|
@@ -1556,7 +1652,7 @@ function parseStyleProps({ styleProps, theme, data }) {
|
|
|
1556
1652
|
inlineStyles,
|
|
1557
1653
|
styles,
|
|
1558
1654
|
media: Object.fromEntries(Object.entries(media).sort(([a], [b]) => {
|
|
1559
|
-
return
|
|
1655
|
+
return getBreakpointValue(a.replace("(min-width:", "").replace(")", "").trim()) - getBreakpointValue(b.replace("(min-width:", "").replace(")", "").trim());
|
|
1560
1656
|
})),
|
|
1561
1657
|
hasResponsiveStyles: Object.keys(styles).length > 0 || Object.keys(media).length > 0
|
|
1562
1658
|
};
|
|
@@ -1811,7 +1907,7 @@ function isVueComponent(component) {
|
|
|
1811
1907
|
function modToAttributes(mod) {
|
|
1812
1908
|
return (Array.isArray(mod) ? mod : [mod]).reduce((acc, item) => {
|
|
1813
1909
|
Object.entries(item ?? {}).forEach(([key, value]) => {
|
|
1814
|
-
if (value !== false && value !== void 0 && value !== null) acc[`data-${
|
|
1910
|
+
if (value !== false && value !== void 0 && value !== null) acc[`data-${camelToKebabCase(key)}`] = value;
|
|
1815
1911
|
});
|
|
1816
1912
|
return acc;
|
|
1817
1913
|
}, {});
|
|
@@ -1976,8 +2072,8 @@ var Box = (0, vue.defineComponent)({
|
|
|
1976
2072
|
size: props.__size,
|
|
1977
2073
|
class: className,
|
|
1978
2074
|
"data-variant": attrs["data-variant"] ?? props.variant,
|
|
1979
|
-
"data-size": attrs["data-size"] ?? (
|
|
1980
|
-
style: [
|
|
2075
|
+
"data-size": attrs["data-size"] ?? (isNumberLike(props.size) ? void 0 : props.size),
|
|
2076
|
+
style: [filterProps(parsed.inlineStyles), attrs.style],
|
|
1981
2077
|
ref: elementRef
|
|
1982
2078
|
}, isVueComponent(props.component) && children ? { default: children } : children?.());
|
|
1983
2079
|
if (!parsed.hasResponsiveStyles) return node;
|
|
@@ -2046,81 +2142,6 @@ var DirectionProvider = (0, vue.defineComponent)({
|
|
|
2046
2142
|
return () => slots.default?.();
|
|
2047
2143
|
}
|
|
2048
2144
|
});
|
|
2049
|
-
//#endregion
|
|
2050
|
-
//#region src/core/index.ts
|
|
2051
|
-
var core_exports = /* @__PURE__ */ __exportAll({
|
|
2052
|
-
Box: () => Box,
|
|
2053
|
-
DEFAULT_COLORS: () => DEFAULT_COLORS,
|
|
2054
|
-
DEFAULT_THEME: () => DEFAULT_THEME,
|
|
2055
|
-
DirectionContextKey: () => DirectionContextKey,
|
|
2056
|
-
DirectionProvider: () => DirectionProvider,
|
|
2057
|
-
HeadlessMantineProvider: () => HeadlessMantineProvider,
|
|
2058
|
-
INVALID_PRIMARY_COLOR_ERROR: () => INVALID_PRIMARY_COLOR_ERROR,
|
|
2059
|
-
INVALID_PRIMARY_SHADE_ERROR: () => INVALID_PRIMARY_SHADE_ERROR,
|
|
2060
|
-
InlineStyles: () => InlineStyles,
|
|
2061
|
-
MantineClasses: () => MantineClasses,
|
|
2062
|
-
MantineContextKey: () => MantineContextKey,
|
|
2063
|
-
MantineCssVariables: () => MantineCssVariables,
|
|
2064
|
-
MantineProvider: () => MantineProvider,
|
|
2065
|
-
MantineThemeKey: () => MantineThemeKey,
|
|
2066
|
-
MantineThemeProvider: () => MantineThemeProvider,
|
|
2067
|
-
STYLE_PROPS_DATA: () => STYLE_PROPS_DATA,
|
|
2068
|
-
alpha: () => alpha,
|
|
2069
|
-
colorsTuple: () => colorsTuple,
|
|
2070
|
-
convertCssVariables: () => convertCssVariables,
|
|
2071
|
-
createProviderColorScheme: () => createProviderColorScheme,
|
|
2072
|
-
createSafeContext: () => createSafeContext,
|
|
2073
|
-
createSafeInjectionContext: () => createSafeInjectionContext,
|
|
2074
|
-
createVarsResolver: () => createVarsResolver,
|
|
2075
|
-
cssVariablesObjectToString: () => cssVariablesObjectToString,
|
|
2076
|
-
darken: () => darken,
|
|
2077
|
-
defaultCssVariablesResolver: () => defaultCssVariablesResolver,
|
|
2078
|
-
defaultVariantColorsResolver: () => defaultVariantColorsResolver,
|
|
2079
|
-
factory: () => factory,
|
|
2080
|
-
getAutoContrastValue: () => getAutoContrastValue,
|
|
2081
|
-
getContrastColor: () => getContrastColor,
|
|
2082
|
-
getGradient: () => getGradient,
|
|
2083
|
-
getMergedVariables: () => getMergedVariables,
|
|
2084
|
-
getPrimaryContrastColor: () => getPrimaryContrastColor,
|
|
2085
|
-
getPrimaryShade: () => getPrimaryShade,
|
|
2086
|
-
getThemeColor: () => getThemeColor,
|
|
2087
|
-
hashStyleProps: () => hashStyleProps,
|
|
2088
|
-
isLightColor: () => isLightColor,
|
|
2089
|
-
isVirtualColor: () => isVirtualColor,
|
|
2090
|
-
lighten: () => lighten,
|
|
2091
|
-
luminance: () => luminance,
|
|
2092
|
-
mergeMantineTheme: () => mergeMantineTheme,
|
|
2093
|
-
parseStyleProps: () => parseStyleProps,
|
|
2094
|
-
parseThemeColor: () => parseThemeColor,
|
|
2095
|
-
polymorphicFactory: () => factory,
|
|
2096
|
-
polymorphicProps: () => polymorphicProps,
|
|
2097
|
-
provideMantineContext: () => provideMantineContext,
|
|
2098
|
-
provideMantineTheme: () => provideMantineTheme,
|
|
2099
|
-
renderPolymorphic: () => renderPolymorphic,
|
|
2100
|
-
resolveColorScheme: () => resolveColorScheme,
|
|
2101
|
-
rgba: () => rgba,
|
|
2102
|
-
toRgba: () => toRgba,
|
|
2103
|
-
useComputedColorScheme: () => useComputedColorScheme,
|
|
2104
|
-
useDirection: () => useDirection,
|
|
2105
|
-
useForwardedRef: () => useForwardedRef,
|
|
2106
|
-
useMantineClassNamesPrefix: () => useMantineClassNamesPrefix,
|
|
2107
|
-
useMantineColorScheme: () => useMantineColorScheme,
|
|
2108
|
-
useMantineContext: () => useMantineContext,
|
|
2109
|
-
useMantineCssVariablesResolver: () => useMantineCssVariablesResolver,
|
|
2110
|
-
useMantineDeduplicateInlineStyles: () => useMantineDeduplicateInlineStyles,
|
|
2111
|
-
useMantineEnv: () => useMantineEnv,
|
|
2112
|
-
useMantineIsHeadless: () => useMantineIsHeadless,
|
|
2113
|
-
useMantineStyleNonce: () => useMantineStyleNonce,
|
|
2114
|
-
useMantineTheme: () => useMantineTheme,
|
|
2115
|
-
useMantineWithStaticClasses: () => useMantineWithStaticClasses,
|
|
2116
|
-
useProps: () => useProps,
|
|
2117
|
-
useRandomClassName: () => useRandomClassName,
|
|
2118
|
-
useSafeMantineTheme: () => useSafeMantineTheme,
|
|
2119
|
-
useStyles: () => useStyles,
|
|
2120
|
-
validateMantineTheme: () => validateMantineTheme,
|
|
2121
|
-
virtualColor: () => virtualColor,
|
|
2122
|
-
withBoxProps: () => withBoxProps
|
|
2123
|
-
});
|
|
2124
2145
|
var VisuallyHidden_module_default = { root: "_root_5rq9d_1" };
|
|
2125
2146
|
//#endregion
|
|
2126
2147
|
//#region src/components/VisuallyHidden/VisuallyHidden.ts
|
|
@@ -2382,8 +2403,8 @@ var Paper_module_default = { root: "_root_1it4e_1" };
|
|
|
2382
2403
|
//#endregion
|
|
2383
2404
|
//#region src/components/Paper/Paper.ts
|
|
2384
2405
|
var varsResolver$92 = createVarsResolver((_, { radius, shadow }) => ({ root: {
|
|
2385
|
-
"--paper-radius": radius === void 0 ? void 0 :
|
|
2386
|
-
"--paper-shadow":
|
|
2406
|
+
"--paper-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
2407
|
+
"--paper-shadow": getShadow(shadow)
|
|
2387
2408
|
} }));
|
|
2388
2409
|
var Paper = withBoxProps((0, vue.defineComponent)({
|
|
2389
2410
|
name: "Paper",
|
|
@@ -2448,11 +2469,11 @@ var Paper = withBoxProps((0, vue.defineComponent)({
|
|
|
2448
2469
|
var Overlay_module_default = { root: "_root_qjtu2_1" };
|
|
2449
2470
|
//#endregion
|
|
2450
2471
|
//#region src/components/Overlay/Overlay.ts
|
|
2451
|
-
var defaultProps$57 = { zIndex:
|
|
2472
|
+
var defaultProps$57 = { zIndex: getDefaultZIndex("modal") };
|
|
2452
2473
|
var varsResolver$91 = createVarsResolver((_, { gradient, color, backgroundOpacity, blur, radius, zIndex }) => ({ root: {
|
|
2453
2474
|
"--overlay-bg": gradient || (color !== void 0 || backgroundOpacity !== void 0) && rgba(color || "#000", backgroundOpacity ?? .6) || void 0,
|
|
2454
|
-
"--overlay-filter": blur ? `blur(${
|
|
2455
|
-
"--overlay-radius": radius === void 0 ? void 0 :
|
|
2475
|
+
"--overlay-filter": blur ? `blur(${rem(blur)})` : void 0,
|
|
2476
|
+
"--overlay-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
2456
2477
|
"--overlay-z-index": zIndex?.toString()
|
|
2457
2478
|
} }));
|
|
2458
2479
|
var Overlay = withBoxProps((0, vue.defineComponent)({
|
|
@@ -2600,7 +2621,7 @@ var defaultProps$56 = {
|
|
|
2600
2621
|
size: "md"
|
|
2601
2622
|
};
|
|
2602
2623
|
var varsResolver$90 = createVarsResolver((theme, { size, color }) => ({ root: {
|
|
2603
|
-
"--loader-size":
|
|
2624
|
+
"--loader-size": getSize(size, "loader-size"),
|
|
2604
2625
|
"--loader-color": color ? getThemeColor(color, theme) : void 0
|
|
2605
2626
|
} }));
|
|
2606
2627
|
var Loader = withBoxProps((0, vue.defineComponent)({
|
|
@@ -2723,7 +2744,7 @@ var Container_module_default = { root: "_root_1nxsn_1" };
|
|
|
2723
2744
|
//#endregion
|
|
2724
2745
|
//#region src/components/Container/Container.ts
|
|
2725
2746
|
var defaultProps$55 = { strategy: "block" };
|
|
2726
|
-
var varsResolver$89 = createVarsResolver((_, { size, fluid }) => ({ root: { "--container-size": fluid ? void 0 :
|
|
2747
|
+
var varsResolver$89 = createVarsResolver((_, { size, fluid }) => ({ root: { "--container-size": fluid ? void 0 : getSize(size, "container-size") } }));
|
|
2727
2748
|
var Container = withBoxProps((0, vue.defineComponent)({
|
|
2728
2749
|
name: "Container",
|
|
2729
2750
|
inheritAttrs: false,
|
|
@@ -2841,7 +2862,7 @@ var defaultProps$54 = {
|
|
|
2841
2862
|
var varsResolver$87 = createVarsResolver((theme, { color, variant, size }) => ({ root: {
|
|
2842
2863
|
"--divider-color": color ? getThemeColor(color, theme) : void 0,
|
|
2843
2864
|
"--divider-border-style": variant,
|
|
2844
|
-
"--divider-size":
|
|
2865
|
+
"--divider-size": getSize(size, "divider-size")
|
|
2845
2866
|
} }));
|
|
2846
2867
|
var Divider = withBoxProps((0, vue.defineComponent)({
|
|
2847
2868
|
name: "Divider",
|
|
@@ -2931,8 +2952,8 @@ function getTextTruncate(truncate) {
|
|
|
2931
2952
|
}
|
|
2932
2953
|
var defaultProps$53 = { inherit: false };
|
|
2933
2954
|
var varsResolver$86 = createVarsResolver((theme, { variant, lineClamp, gradient, size, textWrap }) => ({ root: {
|
|
2934
|
-
"--text-fz":
|
|
2935
|
-
"--text-lh":
|
|
2955
|
+
"--text-fz": getFontSize(size),
|
|
2956
|
+
"--text-lh": getLineHeight(size),
|
|
2936
2957
|
"--text-gradient": variant === "gradient" ? getGradient(gradient, theme) : void 0,
|
|
2937
2958
|
"--text-line-clamp": typeof lineClamp === "number" ? lineClamp.toString() : void 0,
|
|
2938
2959
|
"--text-text-wrap": textWrap
|
|
@@ -3113,7 +3134,7 @@ function getTitleSize(order, size) {
|
|
|
3113
3134
|
lineHeight: `var(--mantine-h${order}-line-height)`
|
|
3114
3135
|
};
|
|
3115
3136
|
return {
|
|
3116
|
-
fontSize:
|
|
3137
|
+
fontSize: rem(titleSize),
|
|
3117
3138
|
fontWeight: `var(--mantine-h${order}-font-weight)`,
|
|
3118
3139
|
lineHeight: `var(--mantine-h${order}-line-height)`
|
|
3119
3140
|
};
|
|
@@ -3261,7 +3282,7 @@ var Code = withBoxProps((0, vue.defineComponent)({
|
|
|
3261
3282
|
var Kbd_module_default = { root: "_root_wjfmb_1" };
|
|
3262
3283
|
//#endregion
|
|
3263
3284
|
//#region src/components/Kbd/Kbd.ts
|
|
3264
|
-
var varsResolver$83 = createVarsResolver((_, { size }) => ({ root: { "--kbd-fz":
|
|
3285
|
+
var varsResolver$83 = createVarsResolver((_, { size }) => ({ root: { "--kbd-fz": getSize(size, "kbd-fz") } }));
|
|
3265
3286
|
var Kbd = withBoxProps((0, vue.defineComponent)({
|
|
3266
3287
|
name: "Kbd",
|
|
3267
3288
|
inheritAttrs: false,
|
|
@@ -3383,7 +3404,7 @@ var Image_module_default = { root: "_root_2axku_1" };
|
|
|
3383
3404
|
//#endregion
|
|
3384
3405
|
//#region src/components/Image/Image.ts
|
|
3385
3406
|
var varsResolver$81 = createVarsResolver((_, { radius, fit }) => ({ root: {
|
|
3386
|
-
"--image-radius": radius === void 0 ? void 0 :
|
|
3407
|
+
"--image-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
3387
3408
|
"--image-object-fit": fit
|
|
3388
3409
|
} }));
|
|
3389
3410
|
var Image = withBoxProps((0, vue.defineComponent)({
|
|
@@ -3458,7 +3479,7 @@ var Image = withBoxProps((0, vue.defineComponent)({
|
|
|
3458
3479
|
var BackgroundImage_module_default = { root: "_root_ow7nr_1" };
|
|
3459
3480
|
//#endregion
|
|
3460
3481
|
//#region src/components/BackgroundImage/BackgroundImage.ts
|
|
3461
|
-
var varsResolver$80 = createVarsResolver((_, { radius }) => ({ root: { "--bi-radius": radius === void 0 ? void 0 :
|
|
3482
|
+
var varsResolver$80 = createVarsResolver((_, { radius }) => ({ root: { "--bi-radius": radius === void 0 ? void 0 : getRadius(radius) } }));
|
|
3462
3483
|
var BackgroundImage = withBoxProps((0, vue.defineComponent)({
|
|
3463
3484
|
name: "BackgroundImage",
|
|
3464
3485
|
inheritAttrs: false,
|
|
@@ -3516,9 +3537,9 @@ var defaultProps$49 = {
|
|
|
3516
3537
|
animate: true
|
|
3517
3538
|
};
|
|
3518
3539
|
var varsResolver$79 = createVarsResolver((_, { width, height, radius, circle }) => ({ root: {
|
|
3519
|
-
"--skeleton-height":
|
|
3520
|
-
"--skeleton-width": circle ?
|
|
3521
|
-
"--skeleton-radius": circle ? "1000px" : radius === void 0 ? void 0 :
|
|
3540
|
+
"--skeleton-height": rem(height),
|
|
3541
|
+
"--skeleton-width": circle ? rem(height) : rem(width),
|
|
3542
|
+
"--skeleton-radius": circle ? "1000px" : radius === void 0 ? void 0 : getRadius(radius)
|
|
3522
3543
|
} }));
|
|
3523
3544
|
var Skeleton = withBoxProps((0, vue.defineComponent)({
|
|
3524
3545
|
name: "Skeleton",
|
|
@@ -3591,8 +3612,8 @@ var ColorSwatch_module_default = {
|
|
|
3591
3612
|
//#region src/components/ColorSwatch/ColorSwatch.ts
|
|
3592
3613
|
var defaultProps$48 = { withShadow: true };
|
|
3593
3614
|
var varsResolver$78 = createVarsResolver((_, { radius, size }) => ({ root: {
|
|
3594
|
-
"--cs-radius": radius === void 0 ? void 0 :
|
|
3595
|
-
"--cs-size":
|
|
3615
|
+
"--cs-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
3616
|
+
"--cs-size": rem(size)
|
|
3596
3617
|
} }));
|
|
3597
3618
|
var ColorSwatch = withBoxProps((0, vue.defineComponent)({
|
|
3598
3619
|
name: "ColorSwatch",
|
|
@@ -3664,8 +3685,8 @@ var defaultProps$47 = {
|
|
|
3664
3685
|
withLabel: true
|
|
3665
3686
|
};
|
|
3666
3687
|
var varsResolver$77 = createVarsResolver((_, { size, thumbSize }) => ({ root: {
|
|
3667
|
-
"--slider-size": size === void 0 ? void 0 :
|
|
3668
|
-
"--thumb-size": thumbSize === void 0 ? void 0 :
|
|
3688
|
+
"--slider-size": size === void 0 ? void 0 : rem(size),
|
|
3689
|
+
"--thumb-size": thumbSize === void 0 ? void 0 : rem(thumbSize)
|
|
3669
3690
|
} }));
|
|
3670
3691
|
var AngleSlider = withBoxProps((0, vue.defineComponent)({
|
|
3671
3692
|
name: "AngleSlider",
|
|
@@ -3763,7 +3784,7 @@ var AngleSlider = withBoxProps((0, vue.defineComponent)({
|
|
|
3763
3784
|
});
|
|
3764
3785
|
const update = (nextValue) => {
|
|
3765
3786
|
if (!rootRef.value || props.disabled) return;
|
|
3766
|
-
setValue(props.restrictToMarks && Array.isArray(props.marks) ?
|
|
3787
|
+
setValue(props.restrictToMarks && Array.isArray(props.marks) ? findClosestNumber(nextValue, props.marks.map((mark) => mark.value)) : nextValue);
|
|
3767
3788
|
};
|
|
3768
3789
|
const radialMove = (0, _mantine_vue_hooks.useRadialMove)(update, {
|
|
3769
3790
|
step: props.step,
|
|
@@ -3789,7 +3810,7 @@ var AngleSlider = withBoxProps((0, vue.defineComponent)({
|
|
|
3789
3810
|
radialMove.ref(element);
|
|
3790
3811
|
};
|
|
3791
3812
|
const setKeyboardValue = (nextValue) => {
|
|
3792
|
-
const resolved = props.restrictToMarks && Array.isArray(props.marks) ?
|
|
3813
|
+
const resolved = props.restrictToMarks && Array.isArray(props.marks) ? findClosestNumber(nextValue, props.marks.map((mark) => mark.value)) : nextValue;
|
|
3793
3814
|
setValue(resolved);
|
|
3794
3815
|
props.onChangeEnd?.(resolved);
|
|
3795
3816
|
};
|
|
@@ -3812,8 +3833,8 @@ var AngleSlider = withBoxProps((0, vue.defineComponent)({
|
|
|
3812
3833
|
const currentIndex = markValues.indexOf(value.value);
|
|
3813
3834
|
if (currentIndex !== -1) if (event.key === "ArrowLeft" || event.key === "ArrowDown") nextValue = markValues[currentIndex === 0 ? markValues.length - 1 : currentIndex - 1];
|
|
3814
3835
|
else if (event.key === "ArrowRight" || event.key === "ArrowUp") nextValue = markValues[currentIndex === markValues.length - 1 ? 0 : currentIndex + 1];
|
|
3815
|
-
else nextValue =
|
|
3816
|
-
else nextValue =
|
|
3836
|
+
else nextValue = findClosestNumber(nextValue, markValues);
|
|
3837
|
+
else nextValue = findClosestNumber(nextValue, markValues);
|
|
3817
3838
|
}
|
|
3818
3839
|
setKeyboardValue(nextValue);
|
|
3819
3840
|
};
|
|
@@ -3874,10 +3895,10 @@ var varsResolver$76 = createVarsResolver((theme, { radius, color, gradient, vari
|
|
|
3874
3895
|
autoContrast
|
|
3875
3896
|
});
|
|
3876
3897
|
return { root: {
|
|
3877
|
-
"--badge-height":
|
|
3878
|
-
"--badge-padding-x":
|
|
3879
|
-
"--badge-fz":
|
|
3880
|
-
"--badge-radius": circle || radius === void 0 ? void 0 :
|
|
3898
|
+
"--badge-height": getSize(size, "badge-height"),
|
|
3899
|
+
"--badge-padding-x": getSize(size, "badge-padding-x"),
|
|
3900
|
+
"--badge-fz": getSize(size, "badge-fz"),
|
|
3901
|
+
"--badge-radius": circle || radius === void 0 ? void 0 : getRadius(radius),
|
|
3881
3902
|
"--badge-bg": color || variant ? colors.background : void 0,
|
|
3882
3903
|
"--badge-color": color || variant ? colors.color : void 0,
|
|
3883
3904
|
"--badge-bd": color || variant ? colors.border : void 0,
|
|
@@ -4004,8 +4025,8 @@ var varsResolver$75 = createVarsResolver((theme, { size, radius, variant, gradie
|
|
|
4004
4025
|
autoContrast
|
|
4005
4026
|
});
|
|
4006
4027
|
return { root: {
|
|
4007
|
-
"--ti-size":
|
|
4008
|
-
"--ti-radius": radius === void 0 ? void 0 :
|
|
4028
|
+
"--ti-size": getSize(size, "ti-size"),
|
|
4029
|
+
"--ti-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
4009
4030
|
"--ti-bg": color || variant ? colors.background : void 0,
|
|
4010
4031
|
"--ti-color": color || variant ? colors.color : void 0,
|
|
4011
4032
|
"--ti-bd": color || variant ? colors.border : void 0
|
|
@@ -4495,7 +4516,7 @@ var ActionIcon_module_default = {
|
|
|
4495
4516
|
//#endregion
|
|
4496
4517
|
//#region src/components/ActionIcon/ActionIconGroup/ActionIconGroup.ts
|
|
4497
4518
|
var defaultProps$46 = { orientation: "horizontal" };
|
|
4498
|
-
var varsResolver$74 = createVarsResolver((_, { borderWidth }) => ({ group: { "--ai-border-width":
|
|
4519
|
+
var varsResolver$74 = createVarsResolver((_, { borderWidth }) => ({ group: { "--ai-border-width": rem(borderWidth) } }));
|
|
4499
4520
|
var ActionIconGroup = withBoxProps((0, vue.defineComponent)({
|
|
4500
4521
|
name: "ActionIconGroup",
|
|
4501
4522
|
inheritAttrs: false,
|
|
@@ -4555,10 +4576,10 @@ var varsResolver$73 = createVarsResolver((theme, { radius, color, gradient, vari
|
|
|
4555
4576
|
autoContrast
|
|
4556
4577
|
});
|
|
4557
4578
|
return { groupSection: {
|
|
4558
|
-
"--section-height":
|
|
4559
|
-
"--section-padding-x":
|
|
4560
|
-
"--section-fz":
|
|
4561
|
-
"--section-radius": radius === void 0 ? void 0 :
|
|
4579
|
+
"--section-height": getSize(size, "section-height"),
|
|
4580
|
+
"--section-padding-x": getSize(size, "section-padding-x"),
|
|
4581
|
+
"--section-fz": getFontSize(size),
|
|
4582
|
+
"--section-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
4562
4583
|
"--section-bg": color || variant ? colors.background : void 0,
|
|
4563
4584
|
"--section-color": colors.color,
|
|
4564
4585
|
"--section-bd": color || variant ? colors.border : void 0
|
|
@@ -4635,8 +4656,8 @@ var varsResolver$72 = createVarsResolver((theme, { size, radius, variant, gradie
|
|
|
4635
4656
|
autoContrast
|
|
4636
4657
|
});
|
|
4637
4658
|
return { root: {
|
|
4638
|
-
"--ai-size":
|
|
4639
|
-
"--ai-radius": radius === void 0 ? void 0 :
|
|
4659
|
+
"--ai-size": getSize(size, "ai-size"),
|
|
4660
|
+
"--ai-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
4640
4661
|
"--ai-bg": color || variant ? colors.background : void 0,
|
|
4641
4662
|
"--ai-hover": color || variant ? colors.hover : void 0,
|
|
4642
4663
|
"--ai-hover-color": color || variant ? colors.hoverColor : void 0,
|
|
@@ -4783,9 +4804,9 @@ var CloseButton_module_default = { root: "_root_uv1i7_1" };
|
|
|
4783
4804
|
//#region src/components/CloseButton/CloseButton.ts
|
|
4784
4805
|
var defaultProps$45 = { variant: "subtle" };
|
|
4785
4806
|
var varsResolver$71 = createVarsResolver((_, { size, radius, iconSize }) => ({ root: {
|
|
4786
|
-
"--cb-size":
|
|
4787
|
-
"--cb-radius": radius === void 0 ? void 0 :
|
|
4788
|
-
"--cb-icon-size":
|
|
4807
|
+
"--cb-size": getSize(size, "cb-size"),
|
|
4808
|
+
"--cb-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
4809
|
+
"--cb-icon-size": rem(iconSize)
|
|
4789
4810
|
} }));
|
|
4790
4811
|
var CloseButton = (0, vue.defineComponent)({
|
|
4791
4812
|
name: "CloseButton",
|
|
@@ -4872,7 +4893,7 @@ var Button_module_default = {
|
|
|
4872
4893
|
//#endregion
|
|
4873
4894
|
//#region src/components/Button/ButtonGroup/ButtonGroup.ts
|
|
4874
4895
|
var defaultProps$44 = { orientation: "horizontal" };
|
|
4875
|
-
var varsResolver$70 = createVarsResolver((_, { borderWidth }) => ({ group: { "--button-border-width":
|
|
4896
|
+
var varsResolver$70 = createVarsResolver((_, { borderWidth }) => ({ group: { "--button-border-width": rem(borderWidth) } }));
|
|
4876
4897
|
var ButtonGroup = withBoxProps((0, vue.defineComponent)({
|
|
4877
4898
|
name: "ButtonGroup",
|
|
4878
4899
|
inheritAttrs: false,
|
|
@@ -4933,10 +4954,10 @@ var varsResolver$69 = createVarsResolver((theme, { radius, color, gradient, vari
|
|
|
4933
4954
|
});
|
|
4934
4955
|
const compactSize = typeof size === "string" && size.includes("compact-") ? size.replace("compact-", "") : size;
|
|
4935
4956
|
return { groupSection: {
|
|
4936
|
-
"--section-height":
|
|
4937
|
-
"--section-padding-x":
|
|
4938
|
-
"--section-fz":
|
|
4939
|
-
"--section-radius": radius === void 0 ? void 0 :
|
|
4957
|
+
"--section-height": getSize(size, "section-height"),
|
|
4958
|
+
"--section-padding-x": getSize(size, "section-padding-x"),
|
|
4959
|
+
"--section-fz": getFontSize(compactSize),
|
|
4960
|
+
"--section-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
4940
4961
|
"--section-bg": color || variant ? colors.background : void 0,
|
|
4941
4962
|
"--section-color": colors.color,
|
|
4942
4963
|
"--section-bd": color || variant ? colors.border : void 0
|
|
@@ -5007,7 +5028,7 @@ var ButtonGroupSection = withBoxProps((0, vue.defineComponent)({
|
|
|
5007
5028
|
var loaderTransition = {
|
|
5008
5029
|
in: {
|
|
5009
5030
|
opacity: 1,
|
|
5010
|
-
transform: `translate(-50%, calc(-50% + ${
|
|
5031
|
+
transform: `translate(-50%, calc(-50% + ${rem(1)}))`
|
|
5011
5032
|
},
|
|
5012
5033
|
out: {
|
|
5013
5034
|
opacity: 0,
|
|
@@ -5027,10 +5048,10 @@ var varsResolver$68 = createVarsResolver((theme, { radius, color, gradient, vari
|
|
|
5027
5048
|
const compactSize = typeof size === "string" && size.includes("compact-") ? size.replace("compact-", "") : size;
|
|
5028
5049
|
return { root: {
|
|
5029
5050
|
"--button-justify": justify,
|
|
5030
|
-
"--button-height":
|
|
5031
|
-
"--button-padding-x":
|
|
5032
|
-
"--button-fz":
|
|
5033
|
-
"--button-radius": radius === void 0 ? void 0 :
|
|
5051
|
+
"--button-height": getSize(size, "button-height"),
|
|
5052
|
+
"--button-padding-x": getSize(size, "button-padding-x"),
|
|
5053
|
+
"--button-fz": getFontSize(compactSize),
|
|
5054
|
+
"--button-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
5034
5055
|
"--button-bg": color || variant ? colors.background : void 0,
|
|
5035
5056
|
"--button-hover": color || variant ? colors.hover : void 0,
|
|
5036
5057
|
"--button-color": colors.color,
|
|
@@ -5224,8 +5245,8 @@ var Burger_module_default = {
|
|
|
5224
5245
|
//#region src/components/Burger/Burger.ts
|
|
5225
5246
|
var varsResolver$67 = createVarsResolver((theme, { color, size, lineSize, transitionDuration, transitionTimingFunction }) => ({ root: {
|
|
5226
5247
|
"--burger-color": color ? getThemeColor(color, theme) : void 0,
|
|
5227
|
-
"--burger-size":
|
|
5228
|
-
"--burger-line-size": lineSize ?
|
|
5248
|
+
"--burger-size": getSize(size, "burger-size"),
|
|
5249
|
+
"--burger-line-size": lineSize ? rem(lineSize) : void 0,
|
|
5229
5250
|
"--burger-transition-duration": transitionDuration === void 0 ? void 0 : `${transitionDuration}ms`,
|
|
5230
5251
|
"--burger-transition-timing-function": transitionTimingFunction
|
|
5231
5252
|
} }));
|
|
@@ -5431,7 +5452,7 @@ var defaultProps$41 = {
|
|
|
5431
5452
|
duration: 0
|
|
5432
5453
|
},
|
|
5433
5454
|
overlayProps: { backgroundOpacity: .75 },
|
|
5434
|
-
zIndex:
|
|
5455
|
+
zIndex: getDefaultZIndex("overlay")
|
|
5435
5456
|
};
|
|
5436
5457
|
var varsResolver$66 = createVarsResolver((_, { zIndex }) => ({ root: { "--lo-z-index": zIndex?.toString() } }));
|
|
5437
5458
|
var LoadingOverlay = withBoxProps((0, vue.defineComponent)({
|
|
@@ -5618,7 +5639,7 @@ var Card_module_default = {
|
|
|
5618
5639
|
//#endregion
|
|
5619
5640
|
//#region src/components/Card/Card.ts
|
|
5620
5641
|
var defaultProps$40 = { orientation: "vertical" };
|
|
5621
|
-
var varsResolver$65 = createVarsResolver((_, { padding }) => ({ root: { "--card-padding":
|
|
5642
|
+
var varsResolver$65 = createVarsResolver((_, { padding }) => ({ root: { "--card-padding": getSpacing(padding) } }));
|
|
5622
5643
|
function isCardSection(child) {
|
|
5623
5644
|
return child.type === CardSection || typeof child.type === "object" && child.type.name === "CardSection";
|
|
5624
5645
|
}
|
|
@@ -5717,7 +5738,7 @@ var varsResolver$64 = createVarsResolver((theme, { radius, color, variant, autoC
|
|
|
5717
5738
|
autoContrast
|
|
5718
5739
|
});
|
|
5719
5740
|
return { root: {
|
|
5720
|
-
"--alert-radius": radius === void 0 ? void 0 :
|
|
5741
|
+
"--alert-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
5721
5742
|
"--alert-bg": color || variant ? colors.background : void 0,
|
|
5722
5743
|
"--alert-color": colors.color,
|
|
5723
5744
|
"--alert-bd": color || variant ? colors.border : void 0
|
|
@@ -5876,8 +5897,8 @@ var varsResolver$63 = createVarsResolver((theme, { color, iconSize, radius, text
|
|
|
5876
5897
|
}).value, .07),
|
|
5877
5898
|
"--bq-bg-dark": rgba(darkParsed.value, .06),
|
|
5878
5899
|
"--bq-bd": getThemeColor(color, theme),
|
|
5879
|
-
"--bq-icon-size":
|
|
5880
|
-
"--bq-radius":
|
|
5900
|
+
"--bq-icon-size": rem(iconSize),
|
|
5901
|
+
"--bq-radius": getRadius(radius),
|
|
5881
5902
|
"--bq-text-wrap": textWrap
|
|
5882
5903
|
} };
|
|
5883
5904
|
});
|
|
@@ -5970,7 +5991,7 @@ var Breadcrumbs_module_default = {
|
|
|
5970
5991
|
//#endregion
|
|
5971
5992
|
//#region src/components/Breadcrumbs/Breadcrumbs.ts
|
|
5972
5993
|
var defaultProps$38 = { separator: "/" };
|
|
5973
|
-
var varsResolver$62 = createVarsResolver((_, { separatorMargin }) => ({ root: { "--bc-separator-margin":
|
|
5994
|
+
var varsResolver$62 = createVarsResolver((_, { separatorMargin }) => ({ root: { "--bc-separator-margin": getSpacing(separatorMargin) } }));
|
|
5974
5995
|
function renderContent$10(content) {
|
|
5975
5996
|
return typeof content === "function" ? content() : content;
|
|
5976
5997
|
}
|
|
@@ -6106,9 +6127,9 @@ var List_module_default = {
|
|
|
6106
6127
|
//#region src/components/List/List.ts
|
|
6107
6128
|
var defaultProps$37 = { type: "unordered" };
|
|
6108
6129
|
var varsResolver$61 = createVarsResolver((_, { size, spacing }) => ({ root: {
|
|
6109
|
-
"--list-fz":
|
|
6110
|
-
"--list-lh":
|
|
6111
|
-
"--list-spacing":
|
|
6130
|
+
"--list-fz": getFontSize(size),
|
|
6131
|
+
"--list-lh": getLineHeight(size),
|
|
6132
|
+
"--list-spacing": getSpacing(spacing)
|
|
6112
6133
|
} }));
|
|
6113
6134
|
var ListBase = (0, vue.defineComponent)({
|
|
6114
6135
|
name: "List",
|
|
@@ -6221,7 +6242,7 @@ function getPositionVariables(position = "top-end", offset = 0) {
|
|
|
6221
6242
|
const offsetY = typeof offset === "number" ? offset : offset.y;
|
|
6222
6243
|
const [side, placement] = position.split("-");
|
|
6223
6244
|
if (side === "top") {
|
|
6224
|
-
variables["--indicator-top"] =
|
|
6245
|
+
variables["--indicator-top"] = rem(offsetY);
|
|
6225
6246
|
variables["--indicator-translate-y"] = "-50%";
|
|
6226
6247
|
}
|
|
6227
6248
|
if (side === "middle") {
|
|
@@ -6229,11 +6250,11 @@ function getPositionVariables(position = "top-end", offset = 0) {
|
|
|
6229
6250
|
variables["--indicator-translate-y"] = "-50%";
|
|
6230
6251
|
}
|
|
6231
6252
|
if (side === "bottom") {
|
|
6232
|
-
variables["--indicator-bottom"] =
|
|
6253
|
+
variables["--indicator-bottom"] = rem(offsetY);
|
|
6233
6254
|
variables["--indicator-translate-y"] = "50%";
|
|
6234
6255
|
}
|
|
6235
6256
|
if (placement === "start") {
|
|
6236
|
-
variables["--indicator-left"] =
|
|
6257
|
+
variables["--indicator-left"] = rem(offsetX);
|
|
6237
6258
|
variables["--indicator-translate-x"] = "-50%";
|
|
6238
6259
|
}
|
|
6239
6260
|
if (placement === "center") {
|
|
@@ -6241,7 +6262,7 @@ function getPositionVariables(position = "top-end", offset = 0) {
|
|
|
6241
6262
|
variables["--indicator-translate-x"] = "-50%";
|
|
6242
6263
|
}
|
|
6243
6264
|
if (placement === "end") {
|
|
6244
|
-
variables["--indicator-right"] =
|
|
6265
|
+
variables["--indicator-right"] = rem(offsetX);
|
|
6245
6266
|
variables["--indicator-translate-x"] = "50%";
|
|
6246
6267
|
}
|
|
6247
6268
|
return variables;
|
|
@@ -6266,8 +6287,8 @@ var varsResolver$60 = createVarsResolver((theme, { color, position, offset, size
|
|
|
6266
6287
|
theme,
|
|
6267
6288
|
autoContrast
|
|
6268
6289
|
}) : void 0,
|
|
6269
|
-
"--indicator-size":
|
|
6270
|
-
"--indicator-radius": radius === void 0 ? void 0 :
|
|
6290
|
+
"--indicator-size": rem(size),
|
|
6291
|
+
"--indicator-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
6271
6292
|
"--indicator-z-index": zIndex?.toString(),
|
|
6272
6293
|
...getPositionVariables(position, offset)
|
|
6273
6294
|
} }));
|
|
@@ -6395,7 +6416,7 @@ var AvatarGroupContextKey = Symbol("AvatarGroupContext");
|
|
|
6395
6416
|
function useAvatarGroupContext() {
|
|
6396
6417
|
return (0, vue.inject)(AvatarGroupContextKey, { withinGroup: false });
|
|
6397
6418
|
}
|
|
6398
|
-
var varsResolver$59 = createVarsResolver((_, { spacing }) => ({ group: { "--ag-spacing":
|
|
6419
|
+
var varsResolver$59 = createVarsResolver((_, { spacing }) => ({ group: { "--ag-spacing": getSpacing(spacing) } }));
|
|
6399
6420
|
var AvatarGroup = withBoxProps((0, vue.defineComponent)({
|
|
6400
6421
|
name: "AvatarGroup",
|
|
6401
6422
|
inheritAttrs: false,
|
|
@@ -6506,8 +6527,8 @@ var varsResolver$58 = createVarsResolver((theme, { size, radius, variant, gradie
|
|
|
6506
6527
|
autoContrast
|
|
6507
6528
|
});
|
|
6508
6529
|
return { root: {
|
|
6509
|
-
"--avatar-size":
|
|
6510
|
-
"--avatar-radius": radius === void 0 ? void 0 :
|
|
6530
|
+
"--avatar-size": getSize(size, "avatar-size"),
|
|
6531
|
+
"--avatar-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
6511
6532
|
"--avatar-bg": resolvedColor || variant ? colors.background : void 0,
|
|
6512
6533
|
"--avatar-color": resolvedColor || variant ? colors.color : void 0,
|
|
6513
6534
|
"--avatar-bd": resolvedColor || variant ? colors.border : void 0
|
|
@@ -6629,7 +6650,7 @@ var Avatar = withBoxProps(Object.assign(AvatarBase, { Group: AvatarGroup }));
|
|
|
6629
6650
|
//#region src/components/SimpleGrid/SimpleGridVariables.ts
|
|
6630
6651
|
function getMinColWidthValue(value) {
|
|
6631
6652
|
if (value === void 0) return;
|
|
6632
|
-
return typeof value === "number" ?
|
|
6653
|
+
return typeof value === "number" ? rem(value) : value;
|
|
6633
6654
|
}
|
|
6634
6655
|
function isObject$2(value) {
|
|
6635
6656
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -6672,21 +6693,21 @@ var SimpleGridMediaVariables = (0, vue.defineComponent)({
|
|
|
6672
6693
|
return () => {
|
|
6673
6694
|
const verticalSpacing = props.verticalSpacing === void 0 ? props.spacing : props.verticalSpacing;
|
|
6674
6695
|
const useAutoColumns = props.minColWidth !== void 0;
|
|
6675
|
-
const baseStyles =
|
|
6676
|
-
"--sg-spacing-x":
|
|
6677
|
-
"--sg-spacing-y":
|
|
6696
|
+
const baseStyles = filterProps({
|
|
6697
|
+
"--sg-spacing-x": getSpacing(getBaseValue(props.spacing)),
|
|
6698
|
+
"--sg-spacing-y": getSpacing(getBaseValue(verticalSpacing)),
|
|
6678
6699
|
"--sg-auto-rows": props.autoRows,
|
|
6679
|
-
...useAutoColumns ? { "--sg-min-col-width": getMinColWidthValue(props.minColWidth) } : { "--sg-cols":
|
|
6700
|
+
...useAutoColumns ? { "--sg-min-col-width": getMinColWidthValue(props.minColWidth) } : { "--sg-cols": getBaseValue(props.cols)?.toString() }
|
|
6680
6701
|
});
|
|
6681
|
-
const queries =
|
|
6702
|
+
const queries = keys(theme.value.breakpoints).reduce((acc, breakpoint) => {
|
|
6682
6703
|
acc[breakpoint] = acc[breakpoint] ?? {};
|
|
6683
|
-
if (isObject$2(props.spacing) && props.spacing[breakpoint] !== void 0) acc[breakpoint]["--sg-spacing-x"] =
|
|
6684
|
-
if (isObject$2(verticalSpacing) && verticalSpacing[breakpoint] !== void 0) acc[breakpoint]["--sg-spacing-y"] =
|
|
6704
|
+
if (isObject$2(props.spacing) && props.spacing[breakpoint] !== void 0) acc[breakpoint]["--sg-spacing-x"] = getSpacing(props.spacing[breakpoint]);
|
|
6705
|
+
if (isObject$2(verticalSpacing) && verticalSpacing[breakpoint] !== void 0) acc[breakpoint]["--sg-spacing-y"] = getSpacing(verticalSpacing[breakpoint]);
|
|
6685
6706
|
if (!useAutoColumns && isObject$2(props.cols) && props.cols[breakpoint] !== void 0) acc[breakpoint]["--sg-cols"] = props.cols[breakpoint];
|
|
6686
6707
|
return acc;
|
|
6687
6708
|
}, {});
|
|
6688
|
-
const media =
|
|
6689
|
-
if (
|
|
6709
|
+
const media = getSortedBreakpoints(theme.value.breakpoints).reduce((acc, item) => {
|
|
6710
|
+
if (keys(queries[item.breakpoint] ?? {}).length > 0) acc[`(min-width: ${theme.value.breakpoints[item.breakpoint]})`] = queries[item.breakpoint];
|
|
6690
6711
|
return acc;
|
|
6691
6712
|
}, {});
|
|
6692
6713
|
return (0, vue.h)(InlineStyles, {
|
|
@@ -6698,10 +6719,10 @@ var SimpleGridMediaVariables = (0, vue.defineComponent)({
|
|
|
6698
6719
|
}
|
|
6699
6720
|
});
|
|
6700
6721
|
function getBreakpoints(values) {
|
|
6701
|
-
return isObject$2(values) ?
|
|
6722
|
+
return isObject$2(values) ? keys(values).filter((breakpoint) => breakpoint !== "base") : [];
|
|
6702
6723
|
}
|
|
6703
6724
|
function sortBreakpoints(breakpoints) {
|
|
6704
|
-
return breakpoints.sort((a, b) =>
|
|
6725
|
+
return breakpoints.sort((a, b) => px(a) - px(b));
|
|
6705
6726
|
}
|
|
6706
6727
|
var SimpleGridContainerVariables = (0, vue.defineComponent)({
|
|
6707
6728
|
name: "SimpleGridContainerVariables",
|
|
@@ -6740,11 +6761,11 @@ var SimpleGridContainerVariables = (0, vue.defineComponent)({
|
|
|
6740
6761
|
return () => {
|
|
6741
6762
|
const verticalSpacing = props.verticalSpacing === void 0 ? props.spacing : props.verticalSpacing;
|
|
6742
6763
|
const useAutoColumns = props.minColWidth !== void 0;
|
|
6743
|
-
const baseStyles =
|
|
6744
|
-
"--sg-spacing-x":
|
|
6745
|
-
"--sg-spacing-y":
|
|
6764
|
+
const baseStyles = filterProps({
|
|
6765
|
+
"--sg-spacing-x": getSpacing(getBaseValue(props.spacing)),
|
|
6766
|
+
"--sg-spacing-y": getSpacing(getBaseValue(verticalSpacing)),
|
|
6746
6767
|
"--sg-auto-rows": props.autoRows,
|
|
6747
|
-
...useAutoColumns ? { "--sg-min-col-width": getMinColWidthValue(props.minColWidth) } : { "--sg-cols":
|
|
6768
|
+
...useAutoColumns ? { "--sg-min-col-width": getMinColWidthValue(props.minColWidth) } : { "--sg-cols": getBaseValue(props.cols)?.toString() }
|
|
6748
6769
|
});
|
|
6749
6770
|
const container = sortBreakpoints(Array.from(new Set([
|
|
6750
6771
|
...getBreakpoints(props.spacing),
|
|
@@ -6752,8 +6773,8 @@ var SimpleGridContainerVariables = (0, vue.defineComponent)({
|
|
|
6752
6773
|
...useAutoColumns ? [] : getBreakpoints(props.cols)
|
|
6753
6774
|
]))).reduce((acc, breakpoint) => {
|
|
6754
6775
|
acc[`simple-grid (min-width: ${breakpoint})`] = {};
|
|
6755
|
-
if (isObject$2(props.spacing) && props.spacing[breakpoint] !== void 0) acc[`simple-grid (min-width: ${breakpoint})`]["--sg-spacing-x"] =
|
|
6756
|
-
if (isObject$2(verticalSpacing) && verticalSpacing[breakpoint] !== void 0) acc[`simple-grid (min-width: ${breakpoint})`]["--sg-spacing-y"] =
|
|
6776
|
+
if (isObject$2(props.spacing) && props.spacing[breakpoint] !== void 0) acc[`simple-grid (min-width: ${breakpoint})`]["--sg-spacing-x"] = getSpacing(props.spacing[breakpoint]);
|
|
6777
|
+
if (isObject$2(verticalSpacing) && verticalSpacing[breakpoint] !== void 0) acc[`simple-grid (min-width: ${breakpoint})`]["--sg-spacing-y"] = getSpacing(verticalSpacing[breakpoint]);
|
|
6757
6778
|
if (!useAutoColumns && isObject$2(props.cols) && props.cols[breakpoint] !== void 0) acc[`simple-grid (min-width: ${breakpoint})`]["--sg-cols"] = props.cols[breakpoint];
|
|
6758
6779
|
return acc;
|
|
6759
6780
|
}, {});
|
|
@@ -6926,11 +6947,11 @@ var GridColVariables = (0, vue.defineComponent)({
|
|
|
6926
6947
|
const ctx = useGridContext();
|
|
6927
6948
|
return () => {
|
|
6928
6949
|
const breakpoints = ctx.breakpoints || theme.value.breakpoints;
|
|
6929
|
-
const baseSpan =
|
|
6930
|
-
const baseOrder =
|
|
6931
|
-
const baseOffset =
|
|
6932
|
-
const baseAlign =
|
|
6933
|
-
const baseStyles =
|
|
6950
|
+
const baseSpan = getBaseValue(props.span) ?? 12;
|
|
6951
|
+
const baseOrder = getBaseValue(props.order);
|
|
6952
|
+
const baseOffset = getBaseValue(props.offset);
|
|
6953
|
+
const baseAlign = getBaseValue(props.align);
|
|
6954
|
+
const baseStyles = filterProps({
|
|
6934
6955
|
"--col-order": baseOrder?.toString(),
|
|
6935
6956
|
"--col-flex-grow": getColumnFlexGrow(baseSpan, ctx.grow),
|
|
6936
6957
|
"--col-flex-basis": getColumnFlexBasis(baseSpan, ctx.columns),
|
|
@@ -6939,7 +6960,7 @@ var GridColVariables = (0, vue.defineComponent)({
|
|
|
6939
6960
|
"--col-offset": getColumnOffset(baseOffset, ctx.columns),
|
|
6940
6961
|
"--col-align-self": baseAlign
|
|
6941
6962
|
});
|
|
6942
|
-
const queries =
|
|
6963
|
+
const queries = keys(breakpoints).reduce((acc, breakpoint) => {
|
|
6943
6964
|
acc[breakpoint] = {};
|
|
6944
6965
|
if (isObject$1(props.order) && props.order[breakpoint] !== void 0) acc[breakpoint]["--col-order"] = props.order[breakpoint]?.toString();
|
|
6945
6966
|
if (isObject$1(props.span) && props.span[breakpoint] !== void 0) {
|
|
@@ -6953,8 +6974,8 @@ var GridColVariables = (0, vue.defineComponent)({
|
|
|
6953
6974
|
if (isObject$1(props.align) && props.align[breakpoint] !== void 0) acc[breakpoint]["--col-align-self"] = props.align[breakpoint];
|
|
6954
6975
|
return acc;
|
|
6955
6976
|
}, {});
|
|
6956
|
-
const values =
|
|
6957
|
-
if (
|
|
6977
|
+
const values = getSortedBreakpoints(breakpoints).reduce((acc, item) => {
|
|
6978
|
+
if (keys(queries[item.breakpoint] ?? {}).length > 0) {
|
|
6958
6979
|
const query = ctx.type === "container" ? `mantine-grid (min-width: ${breakpoints[item.breakpoint]})` : `(min-width: ${breakpoints[item.breakpoint]})`;
|
|
6959
6980
|
acc[query] = queries[item.breakpoint];
|
|
6960
6981
|
}
|
|
@@ -7077,20 +7098,20 @@ var GridVariables = (0, vue.defineComponent)({
|
|
|
7077
7098
|
const theme = useMantineTheme();
|
|
7078
7099
|
return () => {
|
|
7079
7100
|
const breakpoints = props.breakpoints || theme.value.breakpoints;
|
|
7080
|
-
const baseStyles =
|
|
7081
|
-
"--grid-gap":
|
|
7082
|
-
"--grid-row-gap":
|
|
7083
|
-
"--grid-column-gap":
|
|
7101
|
+
const baseStyles = filterProps({
|
|
7102
|
+
"--grid-gap": getSpacing(getBaseValue(props.gap)),
|
|
7103
|
+
"--grid-row-gap": getSpacing(getBaseValue(props.rowGap)),
|
|
7104
|
+
"--grid-column-gap": getSpacing(getBaseValue(props.columnGap))
|
|
7084
7105
|
});
|
|
7085
|
-
const queries =
|
|
7106
|
+
const queries = keys(breakpoints).reduce((acc, breakpoint) => {
|
|
7086
7107
|
acc[breakpoint] = {};
|
|
7087
|
-
if (isObject(props.gap) && props.gap[breakpoint] !== void 0) acc[breakpoint]["--grid-gap"] =
|
|
7088
|
-
if (isObject(props.rowGap) && props.rowGap[breakpoint] !== void 0) acc[breakpoint]["--grid-row-gap"] =
|
|
7089
|
-
if (isObject(props.columnGap) && props.columnGap[breakpoint] !== void 0) acc[breakpoint]["--grid-column-gap"] =
|
|
7108
|
+
if (isObject(props.gap) && props.gap[breakpoint] !== void 0) acc[breakpoint]["--grid-gap"] = getSpacing(props.gap[breakpoint]);
|
|
7109
|
+
if (isObject(props.rowGap) && props.rowGap[breakpoint] !== void 0) acc[breakpoint]["--grid-row-gap"] = getSpacing(props.rowGap[breakpoint]);
|
|
7110
|
+
if (isObject(props.columnGap) && props.columnGap[breakpoint] !== void 0) acc[breakpoint]["--grid-column-gap"] = getSpacing(props.columnGap[breakpoint]);
|
|
7090
7111
|
return acc;
|
|
7091
7112
|
}, {});
|
|
7092
|
-
const values =
|
|
7093
|
-
if (
|
|
7113
|
+
const values = getSortedBreakpoints(breakpoints).reduce((acc, item) => {
|
|
7114
|
+
if (keys(queries[item.breakpoint] ?? {}).length > 0) {
|
|
7094
7115
|
const query = props.type === "container" ? `mantine-grid (min-width: ${breakpoints[item.breakpoint]})` : `(min-width: ${breakpoints[item.breakpoint]})`;
|
|
7095
7116
|
acc[query] = queries[item.breakpoint];
|
|
7096
7117
|
}
|
|
@@ -8004,7 +8025,7 @@ var varsResolver$56 = createVarsResolver((_, { scrollbarSize, overscrollBehavior
|
|
|
8004
8025
|
else if (scrollbars === "y") overrideOverscrollBehavior = `auto ${overscrollBehavior}`;
|
|
8005
8026
|
}
|
|
8006
8027
|
return { root: {
|
|
8007
|
-
"--scrollarea-scrollbar-size":
|
|
8028
|
+
"--scrollarea-scrollbar-size": rem(scrollbarSize),
|
|
8008
8029
|
"--scrollarea-over-scroll-behavior": overrideOverscrollBehavior
|
|
8009
8030
|
} };
|
|
8010
8031
|
});
|
|
@@ -8293,8 +8314,8 @@ var AccordionChevron = (0, vue.defineComponent)({
|
|
|
8293
8314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8294
8315
|
...attrs,
|
|
8295
8316
|
style: [{
|
|
8296
|
-
width:
|
|
8297
|
-
height:
|
|
8317
|
+
width: rem(props.size),
|
|
8318
|
+
height: rem(props.size),
|
|
8298
8319
|
display: "block"
|
|
8299
8320
|
}, attrs.style]
|
|
8300
8321
|
}, (0, vue.h)("path", {
|
|
@@ -8576,7 +8597,7 @@ var defaultProps$30 = {
|
|
|
8576
8597
|
chevronSize: "auto",
|
|
8577
8598
|
chevronIconSize: 16
|
|
8578
8599
|
};
|
|
8579
|
-
function getSafeId$
|
|
8600
|
+
function getSafeId$2(prefix) {
|
|
8580
8601
|
return (value) => {
|
|
8581
8602
|
if (typeof value !== "string" || value.length === 0) throw new Error(VALUE_ERROR$1);
|
|
8582
8603
|
return `${prefix}-${value}`;
|
|
@@ -8587,8 +8608,8 @@ function renderContent$7(content) {
|
|
|
8587
8608
|
}
|
|
8588
8609
|
var varsResolver$55 = createVarsResolver((_, { transitionDuration, chevronSize, radius }) => ({ root: {
|
|
8589
8610
|
"--accordion-transition-duration": transitionDuration === void 0 ? void 0 : `${transitionDuration}ms`,
|
|
8590
|
-
"--accordion-chevron-size": chevronSize === void 0 ? void 0 :
|
|
8591
|
-
"--accordion-radius": radius === void 0 ? void 0 :
|
|
8611
|
+
"--accordion-chevron-size": chevronSize === void 0 ? void 0 : rem(chevronSize),
|
|
8612
|
+
"--accordion-radius": radius === void 0 ? void 0 : getRadius(radius)
|
|
8592
8613
|
} }));
|
|
8593
8614
|
var AccordionBase = (0, vue.defineComponent)({
|
|
8594
8615
|
name: "Accordion",
|
|
@@ -8729,10 +8750,10 @@ var AccordionBase = (0, vue.defineComponent)({
|
|
|
8729
8750
|
onChange: handleItemChange,
|
|
8730
8751
|
isItemActive,
|
|
8731
8752
|
get getControlId() {
|
|
8732
|
-
return getSafeId$
|
|
8753
|
+
return getSafeId$2(`${uid.value}-control`);
|
|
8733
8754
|
},
|
|
8734
8755
|
get getRegionId() {
|
|
8735
|
-
return getSafeId$
|
|
8756
|
+
return getSafeId$2(`${uid.value}-panel`);
|
|
8736
8757
|
},
|
|
8737
8758
|
getStyles,
|
|
8738
8759
|
get variant() {
|
|
@@ -8779,7 +8800,7 @@ var defaultProps$29 = {
|
|
|
8779
8800
|
draggable: true
|
|
8780
8801
|
};
|
|
8781
8802
|
var varsResolver$54 = createVarsResolver((theme, { controlSize, edgeGradientColor }) => ({ root: {
|
|
8782
|
-
"--scroller-control-size": controlSize === void 0 ? void 0 :
|
|
8803
|
+
"--scroller-control-size": controlSize === void 0 ? void 0 : rem(controlSize),
|
|
8783
8804
|
"--scroller-background-color": edgeGradientColor ? getThemeColor(edgeGradientColor, theme) : void 0
|
|
8784
8805
|
} }));
|
|
8785
8806
|
function renderContent$6(content) {
|
|
@@ -9023,8 +9044,8 @@ var TableDataRenderer = (0, vue.defineComponent)({
|
|
|
9023
9044
|
//#region src/components/Table/TableScrollContainer.ts
|
|
9024
9045
|
var defaultProps$28 = { type: "scrollarea" };
|
|
9025
9046
|
var varsResolver$53 = createVarsResolver((_, { minWidth, maxHeight, type }) => ({ scrollContainer: {
|
|
9026
|
-
"--table-min-width":
|
|
9027
|
-
"--table-max-height":
|
|
9047
|
+
"--table-min-width": rem(minWidth),
|
|
9048
|
+
"--table-max-height": rem(maxHeight),
|
|
9028
9049
|
"--table-overflow": type === "native" ? "auto" : void 0
|
|
9029
9050
|
} }));
|
|
9030
9051
|
var TableScrollContainer = withBoxProps((0, vue.defineComponent)({
|
|
@@ -9110,12 +9131,12 @@ var defaultProps$27 = {
|
|
|
9110
9131
|
var varsResolver$52 = createVarsResolver((theme, { layout, captionSide, horizontalSpacing, verticalSpacing, borderColor, stripedColor, highlightOnHoverColor, striped, highlightOnHover, stickyHeaderOffset, stickyHeader }) => ({ table: {
|
|
9111
9132
|
"--table-layout": layout,
|
|
9112
9133
|
"--table-caption-side": captionSide,
|
|
9113
|
-
"--table-horizontal-spacing":
|
|
9114
|
-
"--table-vertical-spacing":
|
|
9134
|
+
"--table-horizontal-spacing": getSpacing(horizontalSpacing),
|
|
9135
|
+
"--table-vertical-spacing": getSpacing(verticalSpacing),
|
|
9115
9136
|
"--table-border-color": borderColor ? getThemeColor(borderColor, theme) : void 0,
|
|
9116
9137
|
"--table-striped-color": striped && stripedColor ? getThemeColor(stripedColor, theme) : void 0,
|
|
9117
9138
|
"--table-highlight-on-hover-color": highlightOnHover && highlightOnHoverColor ? getThemeColor(highlightOnHoverColor, theme) : void 0,
|
|
9118
|
-
"--table-sticky-header-offset": stickyHeader ?
|
|
9139
|
+
"--table-sticky-header-offset": stickyHeader ? rem(stickyHeaderOffset) : void 0
|
|
9119
9140
|
} }));
|
|
9120
9141
|
var TableBase = (0, vue.defineComponent)({
|
|
9121
9142
|
name: "Table",
|
|
@@ -9331,8 +9352,8 @@ Object.assign(ProgressLabel, { classes: Progress_module_default });
|
|
|
9331
9352
|
//#endregion
|
|
9332
9353
|
//#region src/components/Progress/ProgressRoot/ProgressRoot.ts
|
|
9333
9354
|
var varsResolver$51 = createVarsResolver((_, { size, radius, transitionDuration }) => ({ root: {
|
|
9334
|
-
"--progress-size":
|
|
9335
|
-
"--progress-radius": radius === void 0 ? void 0 :
|
|
9355
|
+
"--progress-size": getSize(size, "progress-size"),
|
|
9356
|
+
"--progress-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
9336
9357
|
"--progress-transition-duration": typeof transitionDuration === "number" ? `${transitionDuration}ms` : void 0
|
|
9337
9358
|
} }));
|
|
9338
9359
|
var ProgressRoot = withBoxProps((0, vue.defineComponent)({
|
|
@@ -9728,8 +9749,8 @@ function getClampedThickness(thickness, size) {
|
|
|
9728
9749
|
}
|
|
9729
9750
|
var varsResolver$50 = createVarsResolver((_, { size, thickness, transitionDuration, startAngle }) => ({
|
|
9730
9751
|
root: {
|
|
9731
|
-
"--rp-size":
|
|
9732
|
-
"--rp-label-offset":
|
|
9752
|
+
"--rp-size": rem(size),
|
|
9753
|
+
"--rp-label-offset": rem((thickness ?? defaultProps$25.thickness) * 2),
|
|
9733
9754
|
"--rp-transition-duration": transitionDuration ? `${transitionDuration}ms` : void 0
|
|
9734
9755
|
},
|
|
9735
9756
|
svg: { "--rp-start-angle": `${startAngle}deg` }
|
|
@@ -10346,7 +10367,7 @@ var TimelineItem = withBoxProps((0, vue.defineComponent)({
|
|
|
10346
10367
|
...ctx.getStyles("item", {
|
|
10347
10368
|
...stylesApiProps,
|
|
10348
10369
|
style: {
|
|
10349
|
-
"--tli-radius": props.radius !== void 0 ?
|
|
10370
|
+
"--tli-radius": props.radius !== void 0 ? getRadius(props.radius) : void 0,
|
|
10350
10371
|
"--tli-color": props.color ? getThemeColor(props.color, theme.value) : void 0,
|
|
10351
10372
|
"--tli-border-style": props.lineVariant || void 0,
|
|
10352
10373
|
...props.style,
|
|
@@ -10372,9 +10393,9 @@ var defaultProps$23 = {
|
|
|
10372
10393
|
align: "left"
|
|
10373
10394
|
};
|
|
10374
10395
|
var varsResolver$48 = createVarsResolver((theme, { bulletSize, lineWidth, radius, color, autoContrast }) => ({ root: {
|
|
10375
|
-
"--tl-bullet-size":
|
|
10376
|
-
"--tl-line-width":
|
|
10377
|
-
"--tl-radius": radius === void 0 ? void 0 :
|
|
10396
|
+
"--tl-bullet-size": rem(bulletSize),
|
|
10397
|
+
"--tl-line-width": rem(lineWidth),
|
|
10398
|
+
"--tl-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
10378
10399
|
"--tl-color": color ? getThemeColor(color, theme) : void 0,
|
|
10379
10400
|
"--tl-icon-color": getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
10380
10401
|
color,
|
|
@@ -10731,7 +10752,7 @@ var varsResolver$47 = createVarsResolver((theme, { filledSegmentColor, emptySegm
|
|
|
10731
10752
|
fillDirection
|
|
10732
10753
|
}),
|
|
10733
10754
|
"--scp-transition-duration": transitionDuration ? `${transitionDuration}ms` : void 0,
|
|
10734
|
-
"--scp-thickness":
|
|
10755
|
+
"--scp-thickness": rem(thickness)
|
|
10735
10756
|
} }));
|
|
10736
10757
|
var SemiCircleProgress = withBoxProps((0, vue.defineComponent)({
|
|
10737
10758
|
name: "SemiCircleProgress",
|
|
@@ -10993,7 +11014,7 @@ var Spoiler = withBoxProps((0, vue.defineComponent)({
|
|
|
10993
11014
|
"aria-label": ariaLabel,
|
|
10994
11015
|
...getStyles("control")
|
|
10995
11016
|
}, () => renderContent(currentLabel)) : null, (0, vue.h)("div", {
|
|
10996
|
-
...getStyles("content", { style: { maxHeight: !show.value ?
|
|
11017
|
+
...getStyles("content", { style: { maxHeight: !show.value ? rem(maxHeight) : height.value ? rem(height.value) : void 0 } }),
|
|
10997
11018
|
"data-reduce-motion": "",
|
|
10998
11019
|
role: "region",
|
|
10999
11020
|
id: regionId
|
|
@@ -11012,7 +11033,7 @@ var Fieldset_module_default = {
|
|
|
11012
11033
|
//#endregion
|
|
11013
11034
|
//#region src/components/Fieldset/Fieldset.ts
|
|
11014
11035
|
var defaultProps$19 = { variant: "default" };
|
|
11015
|
-
var varsResolver$45 = createVarsResolver((_, { radius }) => ({ root: { "--fieldset-radius": radius === void 0 ? void 0 :
|
|
11036
|
+
var varsResolver$45 = createVarsResolver((_, { radius }) => ({ root: { "--fieldset-radius": radius === void 0 ? void 0 : getRadius(radius) } }));
|
|
11016
11037
|
var Fieldset = withBoxProps((0, vue.defineComponent)({
|
|
11017
11038
|
name: "Fieldset",
|
|
11018
11039
|
inheritAttrs: false,
|
|
@@ -11269,7 +11290,7 @@ var Input_module_default = {
|
|
|
11269
11290
|
};
|
|
11270
11291
|
//#endregion
|
|
11271
11292
|
//#region src/components/Input/InputDescription/InputDescription.ts
|
|
11272
|
-
var varsResolver$44 = createVarsResolver((_, { size }) => ({ description: { "--input-description-size": size === void 0 ? void 0 : `calc(${
|
|
11293
|
+
var varsResolver$44 = createVarsResolver((_, { size }) => ({ description: { "--input-description-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` } }));
|
|
11273
11294
|
var InputDescription = withBoxProps((0, vue.defineComponent)({
|
|
11274
11295
|
name: "InputDescription",
|
|
11275
11296
|
inheritAttrs: false,
|
|
@@ -11333,7 +11354,7 @@ Object.assign(InputDescription, {
|
|
|
11333
11354
|
});
|
|
11334
11355
|
//#endregion
|
|
11335
11356
|
//#region src/components/Input/InputError/InputError.ts
|
|
11336
|
-
var varsResolver$43 = createVarsResolver((_, { size }) => ({ error: { "--input-error-size": size === void 0 ? void 0 : `calc(${
|
|
11357
|
+
var varsResolver$43 = createVarsResolver((_, { size }) => ({ error: { "--input-error-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` } }));
|
|
11337
11358
|
var InputError = withBoxProps((0, vue.defineComponent)({
|
|
11338
11359
|
name: "InputError",
|
|
11339
11360
|
inheritAttrs: false,
|
|
@@ -11398,7 +11419,7 @@ Object.assign(InputError, {
|
|
|
11398
11419
|
//#endregion
|
|
11399
11420
|
//#region src/components/Input/InputLabel/InputLabel.ts
|
|
11400
11421
|
var varsResolver$42 = createVarsResolver((_, { size }) => ({ label: {
|
|
11401
|
-
"--input-label-size":
|
|
11422
|
+
"--input-label-size": getFontSize(size),
|
|
11402
11423
|
"--input-asterisk-color": void 0
|
|
11403
11424
|
} }));
|
|
11404
11425
|
var InputLabel = withBoxProps((0, vue.defineComponent)({
|
|
@@ -11558,11 +11579,11 @@ var defaultOrder = [
|
|
|
11558
11579
|
];
|
|
11559
11580
|
var varsResolver$41 = createVarsResolver((_, { size }) => ({
|
|
11560
11581
|
label: {
|
|
11561
|
-
"--input-label-size":
|
|
11582
|
+
"--input-label-size": getFontSize(size),
|
|
11562
11583
|
"--input-asterisk-color": void 0
|
|
11563
11584
|
},
|
|
11564
|
-
error: { "--input-error-size": size === void 0 ? void 0 : `calc(${
|
|
11565
|
-
description: { "--input-description-size": size === void 0 ? void 0 : `calc(${
|
|
11585
|
+
error: { "--input-error-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` },
|
|
11586
|
+
description: { "--input-description-size": size === void 0 ? void 0 : `calc(${getFontSize(size)} - ${rem(2)})` }
|
|
11566
11587
|
}));
|
|
11567
11588
|
function renderContent$4(content) {
|
|
11568
11589
|
return typeof content === "function" ? content() : content;
|
|
@@ -11778,12 +11799,12 @@ Object.assign(InputWrapper, {
|
|
|
11778
11799
|
var varsResolver$40 = createVarsResolver((_, props, ctx) => ({ wrapper: {
|
|
11779
11800
|
"--input-margin-top": ctx.offsetTop ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
|
|
11780
11801
|
"--input-margin-bottom": ctx.offsetBottom ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
|
|
11781
|
-
"--input-height":
|
|
11782
|
-
"--input-fz":
|
|
11783
|
-
"--input-radius": props.radius === void 0 ? void 0 :
|
|
11784
|
-
"--input-left-section-width": props.leftSectionWidth !== void 0 ?
|
|
11785
|
-
"--input-right-section-width": props.rightSectionWidth !== void 0 ?
|
|
11786
|
-
"--input-padding-y": props.multiline ?
|
|
11802
|
+
"--input-height": getSize(props.size, "input-height"),
|
|
11803
|
+
"--input-fz": getFontSize(props.size),
|
|
11804
|
+
"--input-radius": props.radius === void 0 ? void 0 : getRadius(props.radius),
|
|
11805
|
+
"--input-left-section-width": props.leftSectionWidth !== void 0 ? rem(props.leftSectionWidth) : void 0,
|
|
11806
|
+
"--input-right-section-width": props.rightSectionWidth !== void 0 ? rem(props.rightSectionWidth) : void 0,
|
|
11807
|
+
"--input-padding-y": props.multiline ? getSize(props.size, "input-padding-y") : void 0,
|
|
11787
11808
|
"--input-left-section-pointer-events": props.leftSectionPointerEvents,
|
|
11788
11809
|
"--input-right-section-pointer-events": props.rightSectionPointerEvents
|
|
11789
11810
|
} }));
|
|
@@ -12637,7 +12658,7 @@ var Notification_module_default = {
|
|
|
12637
12658
|
//#region src/components/Notification/Notification.ts
|
|
12638
12659
|
var defaultProps$18 = { withCloseButton: true };
|
|
12639
12660
|
var varsResolver$39 = createVarsResolver((theme, { radius, color }) => ({ root: {
|
|
12640
|
-
"--notification-radius": radius === void 0 ? void 0 :
|
|
12661
|
+
"--notification-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
12641
12662
|
"--notification-color": color ? getThemeColor(color, theme) : void 0
|
|
12642
12663
|
} }));
|
|
12643
12664
|
var Notification = withBoxProps((0, vue.defineComponent)({
|
|
@@ -12913,7 +12934,7 @@ var leadingDecimalZeroPattern = /^(0\.0*|-0(\.0*)?)$/;
|
|
|
12913
12934
|
var leadingZerosPattern = /^-?0\d+(\.\d+)?\.?$/;
|
|
12914
12935
|
var trailingZerosPattern = /\.\d*0$/;
|
|
12915
12936
|
var trailingDecimalSeparatorPattern = /^-?\d+\.$/;
|
|
12916
|
-
var varsResolver$38 = createVarsResolver((_, { size }) => ({ controls: { "--ni-chevron-size":
|
|
12937
|
+
var varsResolver$38 = createVarsResolver((_, { size }) => ({ controls: { "--ni-chevron-size": getSize(size, "ni-chevron-size") } }));
|
|
12917
12938
|
function clamp$3(value, min, max) {
|
|
12918
12939
|
return Math.min(max ?? value, Math.max(min ?? value, value));
|
|
12919
12940
|
}
|
|
@@ -13491,7 +13512,7 @@ function filterFalsyChildren(children) {
|
|
|
13491
13512
|
}
|
|
13492
13513
|
var varsResolver$37 = createVarsResolver((_, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({ root: {
|
|
13493
13514
|
"--group-child-width": grow && preventGrowOverflow ? childWidth : void 0,
|
|
13494
|
-
"--group-gap":
|
|
13515
|
+
"--group-gap": getSpacing(gap),
|
|
13495
13516
|
"--group-align": align,
|
|
13496
13517
|
"--group-justify": justify,
|
|
13497
13518
|
"--group-wrap": wrap
|
|
@@ -13557,7 +13578,7 @@ var Group = withBoxProps((0, vue.defineComponent)({
|
|
|
13557
13578
|
return () => {
|
|
13558
13579
|
const children = filterFalsyChildren(slots.default?.() ?? []);
|
|
13559
13580
|
const childrenCount = Math.max(children.length, 1);
|
|
13560
|
-
const resolvedGap =
|
|
13581
|
+
const resolvedGap = getSpacing(props.gap ?? "md");
|
|
13561
13582
|
stylesCtx.childWidth = `calc(${100 / childrenCount}% - (${resolvedGap} - ${resolvedGap} / ${childrenCount}))`;
|
|
13562
13583
|
return (0, vue.h)(Box, {
|
|
13563
13584
|
...attrs,
|
|
@@ -13601,7 +13622,7 @@ var defaultProps$16 = {
|
|
|
13601
13622
|
ariaLabel: "PinInput",
|
|
13602
13623
|
size: "sm"
|
|
13603
13624
|
};
|
|
13604
|
-
var varsResolver$36 = createVarsResolver((_, { size }) => ({ root: { "--pin-input-size":
|
|
13625
|
+
var varsResolver$36 = createVarsResolver((_, { size }) => ({ root: { "--pin-input-size": getSize(size ?? "sm", "pin-input-size") } }));
|
|
13605
13626
|
function getInputElement(node) {
|
|
13606
13627
|
const element = node?.$el ?? node;
|
|
13607
13628
|
if (!element) return null;
|
|
@@ -14185,7 +14206,7 @@ var varsResolver$35 = createVarsResolver((theme, { variant, color, childrenOffse
|
|
|
14185
14206
|
"--nl-hover": color || variant ? colors.hover : void 0,
|
|
14186
14207
|
"--nl-color": color || variant ? colors.color : void 0
|
|
14187
14208
|
},
|
|
14188
|
-
children: { "--nl-offset":
|
|
14209
|
+
children: { "--nl-offset": getSpacing(childrenOffset) }
|
|
14189
14210
|
};
|
|
14190
14211
|
});
|
|
14191
14212
|
function renderContent$2(content) {
|
|
@@ -14415,7 +14436,7 @@ var defaultProps$14 = {
|
|
|
14415
14436
|
};
|
|
14416
14437
|
var varsResolver$34 = createVarsResolver((_, { duration, gap, repeat, fadeEdgeColor, fadeEdgeSize }) => ({ root: {
|
|
14417
14438
|
"--marquee-duration": `${duration}ms`,
|
|
14418
|
-
"--marquee-gap":
|
|
14439
|
+
"--marquee-gap": getSpacing(gap),
|
|
14419
14440
|
"--marquee-repeat": (repeat ?? 4).toString(),
|
|
14420
14441
|
"--marquee-fade-color": fadeEdgeColor,
|
|
14421
14442
|
"--marquee-fade-size": fadeEdgeSize
|
|
@@ -14528,15 +14549,15 @@ var defaultProps$13 = {
|
|
|
14528
14549
|
bottom: 0,
|
|
14529
14550
|
right: 0
|
|
14530
14551
|
},
|
|
14531
|
-
zIndex:
|
|
14552
|
+
zIndex: getDefaultZIndex("modal"),
|
|
14532
14553
|
withinPortal: true
|
|
14533
14554
|
};
|
|
14534
14555
|
var varsResolver$33 = createVarsResolver((_, { zIndex, position }) => ({ root: {
|
|
14535
14556
|
"--affix-z-index": zIndex?.toString(),
|
|
14536
|
-
"--affix-top":
|
|
14537
|
-
"--affix-left":
|
|
14538
|
-
"--affix-bottom":
|
|
14539
|
-
"--affix-right":
|
|
14557
|
+
"--affix-top": getSpacing(position?.top),
|
|
14558
|
+
"--affix-left": getSpacing(position?.left),
|
|
14559
|
+
"--affix-bottom": getSpacing(position?.bottom),
|
|
14560
|
+
"--affix-right": getSpacing(position?.right)
|
|
14540
14561
|
} }));
|
|
14541
14562
|
var Affix = withBoxProps((0, vue.defineComponent)({
|
|
14542
14563
|
name: "Affix",
|
|
@@ -14624,7 +14645,7 @@ var defaultProps$12 = {
|
|
|
14624
14645
|
right: 30
|
|
14625
14646
|
}
|
|
14626
14647
|
};
|
|
14627
|
-
var varsResolver$32 = createVarsResolver((_, { size }) => ({ root: { "--dialog-size":
|
|
14648
|
+
var varsResolver$32 = createVarsResolver((_, { size }) => ({ root: { "--dialog-size": getSize(size, "dialog-size") } }));
|
|
14628
14649
|
var Dialog = (0, vue.defineComponent)({
|
|
14629
14650
|
name: "Dialog",
|
|
14630
14651
|
inheritAttrs: false,
|
|
@@ -14915,7 +14936,7 @@ var defaultProps$11 = {
|
|
|
14915
14936
|
color: "yellow"
|
|
14916
14937
|
};
|
|
14917
14938
|
var varsResolver$31 = createVarsResolver((theme, { size, color }) => ({ root: {
|
|
14918
|
-
"--rating-size":
|
|
14939
|
+
"--rating-size": getSize(size, "rating-size"),
|
|
14919
14940
|
"--rating-color": getThemeColor(color, theme)
|
|
14920
14941
|
} }));
|
|
14921
14942
|
var Rating = withBoxProps((0, vue.defineComponent)({
|
|
@@ -15333,7 +15354,7 @@ var SegmentedControl_module_default = {
|
|
|
15333
15354
|
//#endregion
|
|
15334
15355
|
//#region src/components/SegmentedControl/SegmentedControl.ts
|
|
15335
15356
|
var varsResolver$29 = createVarsResolver((theme, { radius, color, transitionDuration, size, transitionTimingFunction, autoContrast }) => ({ root: {
|
|
15336
|
-
"--sc-radius": radius === void 0 ? void 0 :
|
|
15357
|
+
"--sc-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
15337
15358
|
"--sc-color": color ? getThemeColor(color, theme) : void 0,
|
|
15338
15359
|
"--sc-label-color": color ? getContrastColor({
|
|
15339
15360
|
color,
|
|
@@ -15343,11 +15364,11 @@ var varsResolver$29 = createVarsResolver((theme, { radius, color, transitionDura
|
|
|
15343
15364
|
"--sc-shadow": color ? void 0 : "var(--mantine-shadow-xs)",
|
|
15344
15365
|
"--sc-transition-duration": transitionDuration === void 0 ? void 0 : `${transitionDuration}ms`,
|
|
15345
15366
|
"--sc-transition-timing-function": transitionTimingFunction,
|
|
15346
|
-
"--sc-padding":
|
|
15347
|
-
"--sc-font-size":
|
|
15367
|
+
"--sc-padding": getSize(size, "sc-padding"),
|
|
15368
|
+
"--sc-font-size": getFontSize(size)
|
|
15348
15369
|
} }));
|
|
15349
15370
|
function normalizeData(data) {
|
|
15350
|
-
return data.map((item) =>
|
|
15371
|
+
return data.map((item) => isPrimitive(item) ? {
|
|
15351
15372
|
label: String(item),
|
|
15352
15373
|
value: item
|
|
15353
15374
|
} : item);
|
|
@@ -15789,9 +15810,9 @@ var defaultProps$10 = {
|
|
|
15789
15810
|
layout: "default"
|
|
15790
15811
|
};
|
|
15791
15812
|
var varsResolver$28 = createVarsResolver((theme, { size, radius, color, autoContrast }) => ({ root: {
|
|
15792
|
-
"--pagination-control-radius": radius === void 0 ? void 0 :
|
|
15793
|
-
"--pagination-control-size":
|
|
15794
|
-
"--pagination-control-fz":
|
|
15813
|
+
"--pagination-control-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
15814
|
+
"--pagination-control-size": getSize(size, "pagination-control-size"),
|
|
15815
|
+
"--pagination-control-fz": getFontSize(size),
|
|
15795
15816
|
"--pagination-active-bg": color ? getThemeColor(color, theme) : void 0,
|
|
15796
15817
|
"--pagination-active-color": getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
15797
15818
|
color,
|
|
@@ -16380,14 +16401,14 @@ var defaultProps$8 = {
|
|
|
16380
16401
|
variant: "default",
|
|
16381
16402
|
placement: "left"
|
|
16382
16403
|
};
|
|
16383
|
-
function getSafeId(prefix) {
|
|
16404
|
+
function getSafeId$1(prefix) {
|
|
16384
16405
|
return (value) => {
|
|
16385
16406
|
if (typeof value !== "string" || value.length === 0) throw new Error(VALUE_ERROR);
|
|
16386
16407
|
return `${prefix}-${value}`;
|
|
16387
16408
|
};
|
|
16388
16409
|
}
|
|
16389
16410
|
var varsResolver$27 = createVarsResolver((theme, { radius, color, autoContrast }) => ({ root: {
|
|
16390
|
-
"--tabs-radius":
|
|
16411
|
+
"--tabs-radius": getRadius(radius),
|
|
16391
16412
|
"--tabs-color": getThemeColor(color, theme),
|
|
16392
16413
|
"--tabs-text-color": getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
16393
16414
|
color,
|
|
@@ -16548,8 +16569,8 @@ var TabsBase = (0, vue.defineComponent)({
|
|
|
16548
16569
|
return currentTab.value;
|
|
16549
16570
|
},
|
|
16550
16571
|
onChange: setCurrentTab,
|
|
16551
|
-
getTabId: getSafeId(`${uid.value}-tab`),
|
|
16552
|
-
getPanelId: getSafeId(`${uid.value}-panel`)
|
|
16572
|
+
getTabId: getSafeId$1(`${uid.value}-tab`),
|
|
16573
|
+
getPanelId: getSafeId$1(`${uid.value}-panel`)
|
|
16553
16574
|
});
|
|
16554
16575
|
return () => (0, vue.h)(Box, {
|
|
16555
16576
|
...attrs,
|
|
@@ -17001,8 +17022,8 @@ var PasswordInput_module_default = {
|
|
|
17001
17022
|
//#endregion
|
|
17002
17023
|
//#region src/components/PasswordInput/PasswordInput.ts
|
|
17003
17024
|
var varsResolver$26 = createVarsResolver((_, { size }) => ({ root: {
|
|
17004
|
-
"--psi-icon-size":
|
|
17005
|
-
"--psi-button-size":
|
|
17025
|
+
"--psi-icon-size": getSize(size, "psi-icon-size"),
|
|
17026
|
+
"--psi-button-size": getSize(size, "psi-button-size")
|
|
17006
17027
|
} }));
|
|
17007
17028
|
var mergedClasses$3 = {
|
|
17008
17029
|
...Input_module_default,
|
|
@@ -17426,8 +17447,8 @@ var InlineInput = (0, vue.defineComponent)({
|
|
|
17426
17447
|
...getStyles("root", {
|
|
17427
17448
|
className: attrs.class,
|
|
17428
17449
|
style: {
|
|
17429
|
-
"--label-fz":
|
|
17430
|
-
"--label-lh":
|
|
17450
|
+
"--label-fz": getFontSize(props.size),
|
|
17451
|
+
"--label-lh": getSize(props.size, "label-lh"),
|
|
17431
17452
|
...attrs.style
|
|
17432
17453
|
}
|
|
17433
17454
|
}),
|
|
@@ -17499,8 +17520,8 @@ var CheckIcon = (0, vue.defineComponent)({
|
|
|
17499
17520
|
"aria-hidden": true,
|
|
17500
17521
|
...attrs,
|
|
17501
17522
|
style: props.size !== void 0 ? [{
|
|
17502
|
-
width:
|
|
17503
|
-
height:
|
|
17523
|
+
width: rem(props.size),
|
|
17524
|
+
height: rem(props.size),
|
|
17504
17525
|
display: "block"
|
|
17505
17526
|
}, attrs.style] : attrs.style
|
|
17506
17527
|
}, (0, vue.h)("path", {
|
|
@@ -17695,7 +17716,7 @@ var CheckboxCardContextKey = Symbol("CheckboxCardContext");
|
|
|
17695
17716
|
function useCheckboxCardContext() {
|
|
17696
17717
|
return (0, vue.inject)(CheckboxCardContextKey, null);
|
|
17697
17718
|
}
|
|
17698
|
-
var varsResolver$25 = createVarsResolver((_, { radius }) => ({ card: { "--card-radius":
|
|
17719
|
+
var varsResolver$25 = createVarsResolver((_, { radius }) => ({ card: { "--card-radius": getRadius(radius) } }));
|
|
17699
17720
|
var CheckboxCard = withBoxProps((0, vue.defineComponent)({
|
|
17700
17721
|
name: "CheckboxCard",
|
|
17701
17722
|
inheritAttrs: false,
|
|
@@ -17801,8 +17822,8 @@ var CheckboxIndicator_module_default = {
|
|
|
17801
17822
|
//#endregion
|
|
17802
17823
|
//#region src/components/Checkbox/CheckboxIndicator/CheckboxIndicator.ts
|
|
17803
17824
|
var varsResolver$24 = createVarsResolver((theme, { radius, color, size, iconColor, autoContrast }) => ({ indicator: {
|
|
17804
|
-
"--checkbox-size":
|
|
17805
|
-
"--checkbox-radius": radius === void 0 ? void 0 :
|
|
17825
|
+
"--checkbox-size": getSize(size, "checkbox-size"),
|
|
17826
|
+
"--checkbox-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
17806
17827
|
"--checkbox-color": getThemeColor(color, theme),
|
|
17807
17828
|
"--checkbox-icon-color": iconColor ? getThemeColor(iconColor, theme) : getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
17808
17829
|
color,
|
|
@@ -17928,8 +17949,8 @@ var mergedClasses$2 = {
|
|
|
17928
17949
|
...Checkbox_module_default
|
|
17929
17950
|
};
|
|
17930
17951
|
var varsResolver$23 = createVarsResolver((theme, { radius, color, size, iconColor, autoContrast }) => ({ root: {
|
|
17931
|
-
"--checkbox-size":
|
|
17932
|
-
"--checkbox-radius": radius === void 0 ? void 0 :
|
|
17952
|
+
"--checkbox-size": getSize(size, "checkbox-size"),
|
|
17953
|
+
"--checkbox-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
17933
17954
|
"--checkbox-color": getThemeColor(color, theme),
|
|
17934
17955
|
"--checkbox-icon-color": iconColor ? getThemeColor(iconColor, theme) : getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
17935
17956
|
color,
|
|
@@ -18214,17 +18235,17 @@ var varsResolver$22 = createVarsResolver((theme, { size, radius, variant, color,
|
|
|
18214
18235
|
autoContrast
|
|
18215
18236
|
});
|
|
18216
18237
|
return { root: {
|
|
18217
|
-
"--chip-fz":
|
|
18218
|
-
"--chip-size":
|
|
18219
|
-
"--chip-radius": radius === void 0 ? void 0 :
|
|
18220
|
-
"--chip-checked-padding":
|
|
18221
|
-
"--chip-padding":
|
|
18222
|
-
"--chip-icon-size":
|
|
18238
|
+
"--chip-fz": getFontSize(size),
|
|
18239
|
+
"--chip-size": getSize(size, "chip-size"),
|
|
18240
|
+
"--chip-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
18241
|
+
"--chip-checked-padding": getSize(size, "chip-checked-padding"),
|
|
18242
|
+
"--chip-padding": getSize(size, "chip-padding"),
|
|
18243
|
+
"--chip-icon-size": getSize(size, "chip-icon-size"),
|
|
18223
18244
|
"--chip-bg": color || variant ? colors.background : void 0,
|
|
18224
18245
|
"--chip-hover": color || variant ? colors.hover : void 0,
|
|
18225
18246
|
"--chip-color": color || variant ? colors.color : void 0,
|
|
18226
18247
|
"--chip-bd": color || variant ? colors.border : void 0,
|
|
18227
|
-
"--chip-spacing":
|
|
18248
|
+
"--chip-spacing": getSize(size, "chip-spacing")
|
|
18228
18249
|
} };
|
|
18229
18250
|
});
|
|
18230
18251
|
function callHandler$5(handler, event) {
|
|
@@ -18421,7 +18442,7 @@ var PillGroupContextKey = Symbol("PillGroupContext");
|
|
|
18421
18442
|
function usePillGroupContext() {
|
|
18422
18443
|
return (0, vue.inject)(PillGroupContextKey, null);
|
|
18423
18444
|
}
|
|
18424
|
-
var varsResolver$21 = createVarsResolver((_, { gap }, ctx) => ({ group: { "--pg-gap": gap !== void 0 ?
|
|
18445
|
+
var varsResolver$21 = createVarsResolver((_, { gap }, ctx) => ({ group: { "--pg-gap": gap !== void 0 ? getSize(gap) : getSize(ctx.size, "pg-gap") } }));
|
|
18425
18446
|
var PillGroup = withBoxProps((0, vue.defineComponent)({
|
|
18426
18447
|
name: "PillGroup",
|
|
18427
18448
|
inheritAttrs: false,
|
|
@@ -18500,9 +18521,9 @@ Object.assign(PillGroup, {
|
|
|
18500
18521
|
//#endregion
|
|
18501
18522
|
//#region src/components/Pill/Pill.ts
|
|
18502
18523
|
var varsResolver$20 = createVarsResolver((_, { radius }, ctx) => ({ root: {
|
|
18503
|
-
"--pill-fz":
|
|
18504
|
-
"--pill-height":
|
|
18505
|
-
"--pill-radius": radius === void 0 ? void 0 :
|
|
18524
|
+
"--pill-fz": getSize(ctx.size, "pill-fz"),
|
|
18525
|
+
"--pill-height": getSize(ctx.size, "pill-height"),
|
|
18526
|
+
"--pill-radius": radius === void 0 ? void 0 : getRadius(radius)
|
|
18506
18527
|
} }));
|
|
18507
18528
|
function callHandler$4(handler, event) {
|
|
18508
18529
|
if (Array.isArray(handler)) handler.forEach((item) => item?.(event));
|
|
@@ -19016,7 +19037,7 @@ var RadioCardContextKey = Symbol("RadioCardContext");
|
|
|
19016
19037
|
function useRadioCardContext() {
|
|
19017
19038
|
return (0, vue.inject)(RadioCardContextKey, null);
|
|
19018
19039
|
}
|
|
19019
|
-
var varsResolver$19 = createVarsResolver((_, { radius }) => ({ card: { "--card-radius":
|
|
19040
|
+
var varsResolver$19 = createVarsResolver((_, { radius }) => ({ card: { "--card-radius": getRadius(radius) } }));
|
|
19020
19041
|
function callHandler$3(handler, event) {
|
|
19021
19042
|
if (Array.isArray(handler)) handler.forEach((item) => item?.(event));
|
|
19022
19043
|
else handler?.(event);
|
|
@@ -19141,10 +19162,10 @@ var RadioIndicator_module_default = {
|
|
|
19141
19162
|
//#endregion
|
|
19142
19163
|
//#region src/components/Radio/RadioIndicator/RadioIndicator.ts
|
|
19143
19164
|
var varsResolver$18 = createVarsResolver((theme, { radius, color, size, iconColor, autoContrast }) => ({ indicator: {
|
|
19144
|
-
"--radio-size":
|
|
19145
|
-
"--radio-radius": radius === void 0 ? void 0 :
|
|
19165
|
+
"--radio-size": getSize(size, "radio-size"),
|
|
19166
|
+
"--radio-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
19146
19167
|
"--radio-color": getThemeColor(color, theme),
|
|
19147
|
-
"--radio-icon-size": typeof size === "number" ? `calc(${
|
|
19168
|
+
"--radio-icon-size": typeof size === "number" ? `calc(${getSize(size, "radio-size")} * 0.4)` : getSize(size, "radio-icon-size"),
|
|
19148
19169
|
"--radio-icon-color": iconColor ? getThemeColor(iconColor, theme) : getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
19149
19170
|
color,
|
|
19150
19171
|
theme,
|
|
@@ -19261,15 +19282,15 @@ var mergedClasses$1 = {
|
|
|
19261
19282
|
...Radio_module_default
|
|
19262
19283
|
};
|
|
19263
19284
|
var varsResolver$17 = createVarsResolver((theme, { size, radius, color, iconColor, autoContrast }) => ({ root: {
|
|
19264
|
-
"--radio-size":
|
|
19265
|
-
"--radio-radius": radius === void 0 ? void 0 :
|
|
19285
|
+
"--radio-size": getSize(size, "radio-size"),
|
|
19286
|
+
"--radio-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
19266
19287
|
"--radio-color": getThemeColor(color, theme),
|
|
19267
19288
|
"--radio-icon-color": iconColor ? getThemeColor(iconColor, theme) : getAutoContrastValue(autoContrast, theme) ? getContrastColor({
|
|
19268
19289
|
color,
|
|
19269
19290
|
theme,
|
|
19270
19291
|
autoContrast
|
|
19271
19292
|
}) : void 0,
|
|
19272
|
-
"--radio-icon-size":
|
|
19293
|
+
"--radio-icon-size": getSize(size, "radio-icon-size")
|
|
19273
19294
|
} }));
|
|
19274
19295
|
function callHandler$2(handler, event) {
|
|
19275
19296
|
if (Array.isArray(handler)) handler.forEach((item) => item?.(event));
|
|
@@ -19633,12 +19654,12 @@ var mergedClasses = {
|
|
|
19633
19654
|
...Switch_module_default
|
|
19634
19655
|
};
|
|
19635
19656
|
var varsResolver$16 = createVarsResolver((theme, { radius, color, size }) => ({ root: {
|
|
19636
|
-
"--switch-radius": radius === void 0 ? void 0 :
|
|
19637
|
-
"--switch-height":
|
|
19638
|
-
"--switch-width":
|
|
19639
|
-
"--switch-thumb-size":
|
|
19640
|
-
"--switch-label-font-size":
|
|
19641
|
-
"--switch-track-label-padding":
|
|
19657
|
+
"--switch-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
19658
|
+
"--switch-height": getSize(size, "switch-height"),
|
|
19659
|
+
"--switch-width": getSize(size, "switch-width"),
|
|
19660
|
+
"--switch-thumb-size": getSize(size, "switch-thumb-size"),
|
|
19661
|
+
"--switch-label-font-size": getSize(size, "switch-label-font-size"),
|
|
19662
|
+
"--switch-track-label-padding": getSize(size, "switch-track-label-padding"),
|
|
19642
19663
|
"--switch-color": color ? getThemeColor(color, theme) : void 0
|
|
19643
19664
|
} }));
|
|
19644
19665
|
function renderContent(content) {
|
|
@@ -20017,7 +20038,7 @@ var Flex = withBoxProps((0, vue.defineComponent)({
|
|
|
20017
20038
|
...attrs,
|
|
20018
20039
|
...getStyles("root", {
|
|
20019
20040
|
className: parsedStyleProps.hasResponsiveStyles ? responsiveClassName : void 0,
|
|
20020
|
-
style:
|
|
20041
|
+
style: filterProps(parsedStyleProps.inlineStyles)
|
|
20021
20042
|
})
|
|
20022
20043
|
}, () => slots.default?.())];
|
|
20023
20044
|
};
|
|
@@ -20032,7 +20053,7 @@ var defaultProps$7 = {
|
|
|
20032
20053
|
justify: "flex-start"
|
|
20033
20054
|
};
|
|
20034
20055
|
var varsResolver$15 = createVarsResolver((_, { gap, align, justify }) => ({ root: {
|
|
20035
|
-
"--stack-gap":
|
|
20056
|
+
"--stack-gap": getSpacing(gap),
|
|
20036
20057
|
"--stack-align": align,
|
|
20037
20058
|
"--stack-justify": justify
|
|
20038
20059
|
} }));
|
|
@@ -20328,11 +20349,11 @@ var varsResolver$14 = createVarsResolver((theme, { color, iconSize, size, conten
|
|
|
20328
20349
|
theme,
|
|
20329
20350
|
autoContrast
|
|
20330
20351
|
}) : void 0,
|
|
20331
|
-
"--stepper-icon-size": iconSize === void 0 ?
|
|
20332
|
-
"--stepper-content-padding":
|
|
20333
|
-
"--stepper-radius": radius === void 0 ? void 0 :
|
|
20334
|
-
"--stepper-fz":
|
|
20335
|
-
"--stepper-spacing":
|
|
20352
|
+
"--stepper-icon-size": iconSize === void 0 ? getSize(size, "stepper-icon-size") : rem(iconSize),
|
|
20353
|
+
"--stepper-content-padding": getSpacing(contentPadding),
|
|
20354
|
+
"--stepper-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
20355
|
+
"--stepper-fz": getFontSize(size),
|
|
20356
|
+
"--stepper-spacing": getSpacing(size)
|
|
20336
20357
|
} }));
|
|
20337
20358
|
function getSlotContent(vnode) {
|
|
20338
20359
|
const children = vnode?.children;
|
|
@@ -20595,7 +20616,7 @@ var defaultProps$4 = {
|
|
|
20595
20616
|
maxRows: 1,
|
|
20596
20617
|
maxVisibleItems: Infinity
|
|
20597
20618
|
};
|
|
20598
|
-
var varsResolver$13 = createVarsResolver((_, { gap }) => ({ root: { "--ol-gap":
|
|
20619
|
+
var varsResolver$13 = createVarsResolver((_, { gap }) => ({ root: { "--ol-gap": getSpacing(gap) } }));
|
|
20599
20620
|
function getDataSignature(data, getItemKey) {
|
|
20600
20621
|
return data.map((item, index) => getItemKey ? getItemKey(item, index) : item !== null && (typeof item === "object" || typeof item === "function") ? index : String(item)).join(" ");
|
|
20601
20622
|
}
|
|
@@ -20809,9 +20830,9 @@ var varsResolver$12 = createVarsResolver((theme, { color, size, variant, autoCon
|
|
|
20809
20830
|
return { root: {
|
|
20810
20831
|
"--toc-bg": variant !== "none" ? colors.background : void 0,
|
|
20811
20832
|
"--toc-color": variant !== "none" ? colors.color : void 0,
|
|
20812
|
-
"--toc-size":
|
|
20813
|
-
"--toc-depth-offset":
|
|
20814
|
-
"--toc-radius":
|
|
20833
|
+
"--toc-size": getFontSize(size),
|
|
20834
|
+
"--toc-depth-offset": rem(depthOffset),
|
|
20835
|
+
"--toc-radius": getRadius(radius)
|
|
20815
20836
|
} };
|
|
20816
20837
|
});
|
|
20817
20838
|
var TableOfContents = withBoxProps((0, vue.defineComponent)({
|
|
@@ -20946,7 +20967,7 @@ var FloatingWindow_module_default = { root: "_root_kejg3_1" };
|
|
|
20946
20967
|
var defaultProps$2 = {
|
|
20947
20968
|
constrainToViewport: true,
|
|
20948
20969
|
withinPortal: true,
|
|
20949
|
-
zIndex:
|
|
20970
|
+
zIndex: getDefaultZIndex("overlay")
|
|
20950
20971
|
};
|
|
20951
20972
|
var FloatingWindow = (0, vue.defineComponent)({
|
|
20952
20973
|
name: "FloatingWindow",
|
|
@@ -21448,10 +21469,10 @@ var defaultProps$1 = {
|
|
|
21448
21469
|
orientation: "horizontal"
|
|
21449
21470
|
};
|
|
21450
21471
|
var varsResolver$11 = createVarsResolver((theme, { size, color, thumbSize, radius }) => ({ root: {
|
|
21451
|
-
"--slider-size":
|
|
21472
|
+
"--slider-size": getSize(size, "slider-size"),
|
|
21452
21473
|
"--slider-color": color ? getThemeColor(color, theme) : void 0,
|
|
21453
|
-
"--slider-radius": radius === void 0 ? void 0 :
|
|
21454
|
-
"--slider-thumb-size": thumbSize !== void 0 ?
|
|
21474
|
+
"--slider-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
21475
|
+
"--slider-thumb-size": thumbSize !== void 0 ? rem(thumbSize) : "calc(var(--slider-size) * 2)"
|
|
21455
21476
|
} }));
|
|
21456
21477
|
var Slider = withBoxProps((0, vue.defineComponent)({
|
|
21457
21478
|
name: "Slider",
|
|
@@ -21741,10 +21762,10 @@ var defaults$5 = {
|
|
|
21741
21762
|
orientation: "horizontal"
|
|
21742
21763
|
};
|
|
21743
21764
|
var varsResolver$10 = createVarsResolver((theme, { size, color, thumbSize, radius }) => ({ root: {
|
|
21744
|
-
"--slider-size":
|
|
21765
|
+
"--slider-size": getSize(size, "slider-size"),
|
|
21745
21766
|
"--slider-color": color ? getThemeColor(color, theme) : void 0,
|
|
21746
|
-
"--slider-radius":
|
|
21747
|
-
"--slider-thumb-size": thumbSize !== void 0 ?
|
|
21767
|
+
"--slider-radius": getRadius(radius),
|
|
21768
|
+
"--slider-thumb-size": thumbSize !== void 0 ? rem(thumbSize) : "calc(var(--slider-size) * 2)"
|
|
21748
21769
|
} }));
|
|
21749
21770
|
var RangeSlider = (0, vue.defineComponent)({
|
|
21750
21771
|
name: "RangeSlider",
|
|
@@ -22471,10 +22492,10 @@ var AlphaSlider = (0, vue.defineComponent)({
|
|
|
22471
22492
|
overlays: [
|
|
22472
22493
|
{
|
|
22473
22494
|
backgroundImage: "linear-gradient(45deg,var(--slider-checkers) 25%,transparent 25%),linear-gradient(-45deg,var(--slider-checkers) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--slider-checkers) 75%)",
|
|
22474
|
-
backgroundSize: `${
|
|
22495
|
+
backgroundSize: `${rem(8)} ${rem(8)}`
|
|
22475
22496
|
},
|
|
22476
22497
|
{ backgroundImage: `linear-gradient(90deg, transparent, ${props.color})` },
|
|
22477
|
-
{ boxShadow: `rgba(0,0,0,.1) 0 0 0 ${
|
|
22498
|
+
{ boxShadow: `rgba(0,0,0,.1) 0 0 0 ${rem(1)} inset` }
|
|
22478
22499
|
]
|
|
22479
22500
|
});
|
|
22480
22501
|
}
|
|
@@ -22524,7 +22545,7 @@ var HueSlider = (0, vue.defineComponent)({
|
|
|
22524
22545
|
thumbColor: `hsl(${props.value}, 100%, 50%)`,
|
|
22525
22546
|
round: true,
|
|
22526
22547
|
"data-hue": "",
|
|
22527
|
-
overlays: [{ backgroundImage: "linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))" }, { boxShadow: `rgba(0,0,0,.1) 0 0 0 ${
|
|
22548
|
+
overlays: [{ backgroundImage: "linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))" }, { boxShadow: `rgba(0,0,0,.1) 0 0 0 ${rem(1)} inset, rgba(0,0,0,.15) 0 0 ${rem(4)} inset` }]
|
|
22528
22549
|
});
|
|
22529
22550
|
}
|
|
22530
22551
|
});
|
|
@@ -22708,12 +22729,12 @@ var defaults$4 = {
|
|
|
22708
22729
|
__staticSelector: "ColorPicker"
|
|
22709
22730
|
};
|
|
22710
22731
|
var varsResolver$9 = createVarsResolver((_, { size, swatchesPerRow }) => ({ wrapper: {
|
|
22711
|
-
"--cp-preview-size":
|
|
22712
|
-
"--cp-width":
|
|
22713
|
-
"--cp-body-spacing":
|
|
22732
|
+
"--cp-preview-size": getSize(size, "cp-preview-size"),
|
|
22733
|
+
"--cp-width": getSize(size, "cp-width"),
|
|
22734
|
+
"--cp-body-spacing": getSpacing(size),
|
|
22714
22735
|
"--cp-swatch-size": `${100 / swatchesPerRow}%`,
|
|
22715
|
-
"--cp-thumb-size":
|
|
22716
|
-
"--cp-saturation-height":
|
|
22736
|
+
"--cp-thumb-size": getSize(size, "cp-thumb-size"),
|
|
22737
|
+
"--cp-saturation-height": getSize(size, "cp-saturation-height")
|
|
22717
22738
|
} }));
|
|
22718
22739
|
var ColorPicker = (0, vue.defineComponent)({
|
|
22719
22740
|
name: "ColorPicker",
|
|
@@ -23039,10 +23060,10 @@ var AppShellMain = withBoxProps(Object.assign((0, vue.defineComponent)({
|
|
|
23039
23060
|
//#endregion
|
|
23040
23061
|
//#region src/components/AppShell/AppShellMediaStyles/get-variables.ts
|
|
23041
23062
|
var isResponsive = (value) => Boolean(value && typeof value === "object");
|
|
23042
|
-
var size$1 = (value) => value === void 0 ? void 0 :
|
|
23043
|
-
var paddingValue = (value) => Number(value) === 0 ? "0px" :
|
|
23063
|
+
var size$1 = (value) => value === void 0 ? void 0 : rem(value);
|
|
23064
|
+
var paddingValue = (value) => Number(value) === 0 ? "0px" : getSpacing(value);
|
|
23044
23065
|
function breakpointPx(value, theme) {
|
|
23045
|
-
return typeof value === "string" && value in theme.breakpoints ?
|
|
23066
|
+
return typeof value === "string" && value in theme.breakpoints ? getBreakpointValue(theme.breakpoints[value]) : getBreakpointValue(value);
|
|
23046
23067
|
}
|
|
23047
23068
|
function media(styles, query, values) {
|
|
23048
23069
|
styles[query] = {
|
|
@@ -23054,7 +23075,7 @@ function responsive(value, property, base, min, theme, transform = size$1) {
|
|
|
23054
23075
|
if (isResponsive(value)) {
|
|
23055
23076
|
if (value.base !== void 0) base[property] = transform(value.base);
|
|
23056
23077
|
Object.entries(value).forEach(([key, item]) => {
|
|
23057
|
-
if (key !== "base" && item !== void 0) media(min, `(min-width: ${
|
|
23078
|
+
if (key !== "base" && item !== void 0) media(min, `(min-width: ${em(breakpointPx(key, theme))})`, { [property]: transform(item) });
|
|
23058
23079
|
});
|
|
23059
23080
|
} else if (value !== void 0) base[property] = transform(value);
|
|
23060
23081
|
}
|
|
@@ -23086,8 +23107,8 @@ function getVariables({ navbar, aside, header, footer, padding, theme, mode }) {
|
|
|
23086
23107
|
responsive(config.width, "--app-shell-navbar-offset", baseStyles, minMediaStyles, theme);
|
|
23087
23108
|
if (mode === "static") responsive(config.width, "--app-shell-navbar-grid-width", baseStyles, minMediaStyles, theme);
|
|
23088
23109
|
const bp = breakpointPx(config.breakpoint, theme);
|
|
23089
|
-
const minQuery = `(min-width: ${
|
|
23090
|
-
const maxQuery = `(max-width: ${
|
|
23110
|
+
const minQuery = `(min-width: ${em(bp)})`;
|
|
23111
|
+
const maxQuery = `(max-width: ${em(bp - .1)})`;
|
|
23091
23112
|
if (!config.collapsed?.mobile) media(maxMediaStyles, maxQuery, {
|
|
23092
23113
|
"--app-shell-navbar-offset": "0px",
|
|
23093
23114
|
"--app-shell-navbar-width": "100%",
|
|
@@ -23121,8 +23142,8 @@ function getVariables({ navbar, aside, header, footer, padding, theme, mode }) {
|
|
|
23121
23142
|
responsive(config.width, "--app-shell-aside-width", baseStyles, minMediaStyles, theme);
|
|
23122
23143
|
responsive(config.width, "--app-shell-aside-offset", baseStyles, minMediaStyles, theme);
|
|
23123
23144
|
const bp = breakpointPx(config.breakpoint, theme);
|
|
23124
|
-
const minQuery = `(min-width: ${
|
|
23125
|
-
const maxQuery = `(max-width: ${
|
|
23145
|
+
const minQuery = `(min-width: ${em(bp)})`;
|
|
23146
|
+
const maxQuery = `(max-width: ${em(bp - .1)})`;
|
|
23126
23147
|
if (!config.collapsed?.mobile) media(maxMediaStyles, maxQuery, mode === "fixed" ? {
|
|
23127
23148
|
"--app-shell-aside-width": "100%",
|
|
23128
23149
|
"--app-shell-aside-offset": "0px"
|
|
@@ -23274,7 +23295,7 @@ var defaults$3 = {
|
|
|
23274
23295
|
padding: 0,
|
|
23275
23296
|
transitionDuration: 200,
|
|
23276
23297
|
transitionTimingFunction: "ease",
|
|
23277
|
-
zIndex:
|
|
23298
|
+
zIndex: getDefaultZIndex("app"),
|
|
23278
23299
|
mode: "fixed",
|
|
23279
23300
|
offsetScrollbars: true
|
|
23280
23301
|
};
|
|
@@ -24276,7 +24297,7 @@ var defaultProps = {
|
|
|
24276
24297
|
shiftStep: 10
|
|
24277
24298
|
};
|
|
24278
24299
|
var varsResolver$7 = createVarsResolver((theme, { lineSize, handleColor }) => ({ root: {
|
|
24279
|
-
"--splitter-line-size":
|
|
24300
|
+
"--splitter-line-size": rem(lineSize),
|
|
24280
24301
|
"--splitter-handle-color": handleColor ? getThemeColor(handleColor, theme) : void 0
|
|
24281
24302
|
} }));
|
|
24282
24303
|
function flattenChildren(children) {
|
|
@@ -25078,7 +25099,7 @@ var Tree_module_default = {
|
|
|
25078
25099
|
function getFlatValues(data) {
|
|
25079
25100
|
return data.flatMap((node) => [node.value, ...node.children ? getFlatValues(node.children) : []]);
|
|
25080
25101
|
}
|
|
25081
|
-
var varsResolver$6 = createVarsResolver((_, { levelOffset }) => ({ root: { "--level-offset":
|
|
25102
|
+
var varsResolver$6 = createVarsResolver((_, { levelOffset }) => ({ root: { "--level-offset": getSpacing(levelOffset) } }));
|
|
25082
25103
|
var Tree = withBoxProps((0, vue.defineComponent)({
|
|
25083
25104
|
name: "Tree",
|
|
25084
25105
|
inheritAttrs: false,
|
|
@@ -25756,9 +25777,9 @@ var ModalBase = withBoxProps((0, vue.defineComponent)({
|
|
|
25756
25777
|
...attrs,
|
|
25757
25778
|
id: modal.id.value || fallbackId.value,
|
|
25758
25779
|
style: [{
|
|
25759
|
-
"--mb-z-index": String(props.zIndex ??
|
|
25760
|
-
"--mb-shadow":
|
|
25761
|
-
"--mb-padding":
|
|
25780
|
+
"--mb-z-index": String(props.zIndex ?? getDefaultZIndex("modal")),
|
|
25781
|
+
"--mb-shadow": getShadow(props.shadow),
|
|
25782
|
+
"--mb-padding": getSpacing(props.padding)
|
|
25762
25783
|
}, attrs.style]
|
|
25763
25784
|
}, () => slots.default?.()));
|
|
25764
25785
|
}
|
|
@@ -25961,10 +25982,10 @@ var Modal_module_default = {
|
|
|
25961
25982
|
//#region src/components/Modal/Modal.ts
|
|
25962
25983
|
var [provideModalContext, useModalContext] = createSafeContext("Modal component was not found in tree");
|
|
25963
25984
|
var varsResolver$5 = createVarsResolver((_, props) => ({ root: {
|
|
25964
|
-
"--modal-size":
|
|
25965
|
-
"--modal-radius": props.radius == null ? void 0 :
|
|
25966
|
-
"--modal-y-offset":
|
|
25967
|
-
"--modal-x-offset":
|
|
25985
|
+
"--modal-size": getSize(props.size, "modal-size"),
|
|
25986
|
+
"--modal-radius": props.radius == null ? void 0 : rem(props.radius),
|
|
25987
|
+
"--modal-y-offset": rem(props.yOffset),
|
|
25988
|
+
"--modal-x-offset": rem(props.xOffset)
|
|
25968
25989
|
} }));
|
|
25969
25990
|
var ModalRoot = (0, vue.defineComponent)({
|
|
25970
25991
|
name: "ModalRoot",
|
|
@@ -26152,7 +26173,7 @@ var DrawerStack = (0, vue.defineComponent)({
|
|
|
26152
26173
|
name: "DrawerStack",
|
|
26153
26174
|
setup(_, { slots }) {
|
|
26154
26175
|
const stack = (0, vue.ref)([]);
|
|
26155
|
-
const maxZIndex = (0, vue.ref)(
|
|
26176
|
+
const maxZIndex = (0, vue.ref)(getDefaultZIndex("modal"));
|
|
26156
26177
|
(0, vue.provide)(DrawerStackContextKey, (0, vue.reactive)({
|
|
26157
26178
|
get stack() {
|
|
26158
26179
|
return stack.value;
|
|
@@ -26213,12 +26234,12 @@ function useDrawersStack(drawers) {
|
|
|
26213
26234
|
};
|
|
26214
26235
|
}
|
|
26215
26236
|
var varsResolver$4 = createVarsResolver((_, props) => ({ root: {
|
|
26216
|
-
"--drawer-size":
|
|
26237
|
+
"--drawer-size": getSize(props.size, "drawer-size"),
|
|
26217
26238
|
"--drawer-flex": props.position === "top" || props.position === "bottom" ? "0 0 calc(100% - var(--drawer-offset) * 2)" : void 0,
|
|
26218
26239
|
"--drawer-height": props.position === "left" || props.position === "right" ? void 0 : "var(--drawer-size)",
|
|
26219
26240
|
"--drawer-align": props.position === "top" ? "flex-start" : props.position === "bottom" ? "flex-end" : void 0,
|
|
26220
26241
|
"--drawer-justify": props.position === "right" ? "flex-end" : void 0,
|
|
26221
|
-
"--drawer-offset":
|
|
26242
|
+
"--drawer-offset": rem(props.offset)
|
|
26222
26243
|
} }));
|
|
26223
26244
|
var transitions = {
|
|
26224
26245
|
top: "slide-down",
|
|
@@ -26390,7 +26411,7 @@ var DrawerBaseComponent = (0, vue.defineComponent)({
|
|
|
26390
26411
|
setup(props, { attrs, slots }) {
|
|
26391
26412
|
const stackCtx = useDrawerStackContext();
|
|
26392
26413
|
(0, vue.watch)(() => props.opened, (opened) => {
|
|
26393
|
-
if (stackCtx && props.stackId) if (opened) stackCtx.addModal(props.stackId, typeof props.zIndex === "number" ? props.zIndex :
|
|
26414
|
+
if (stackCtx && props.stackId) if (opened) stackCtx.addModal(props.stackId, typeof props.zIndex === "number" ? props.zIndex : getDefaultZIndex("modal"));
|
|
26394
26415
|
else stackCtx.removeModal(props.stackId);
|
|
26395
26416
|
}, { immediate: true });
|
|
26396
26417
|
const resolvedZIndex = (0, vue.computed)(() => {
|
|
@@ -26734,7 +26755,7 @@ var defaults$2 = {
|
|
|
26734
26755
|
withRoles: true,
|
|
26735
26756
|
returnFocus: false,
|
|
26736
26757
|
keepMounted: false,
|
|
26737
|
-
zIndex:
|
|
26758
|
+
zIndex: getDefaultZIndex("popover"),
|
|
26738
26759
|
floatingStrategy: "absolute",
|
|
26739
26760
|
transitionProps: {
|
|
26740
26761
|
transition: "fade",
|
|
@@ -26742,8 +26763,8 @@ var defaults$2 = {
|
|
|
26742
26763
|
}
|
|
26743
26764
|
};
|
|
26744
26765
|
var varsResolver$3 = createVarsResolver((_, props) => ({ dropdown: {
|
|
26745
|
-
"--popover-radius": props.radius === void 0 ? void 0 :
|
|
26746
|
-
"--popover-shadow":
|
|
26766
|
+
"--popover-radius": props.radius === void 0 ? void 0 : getRadius(props.radius),
|
|
26767
|
+
"--popover-shadow": getShadow(props.shadow)
|
|
26747
26768
|
} }));
|
|
26748
26769
|
function one$3(slots, name) {
|
|
26749
26770
|
const children = slots.default?.().filter((child) => typeof child.type !== "symbol") ?? [];
|
|
@@ -26884,7 +26905,7 @@ var PopoverDropdown = (0, vue.defineComponent)({
|
|
|
26884
26905
|
zIndex: ctx.zIndex,
|
|
26885
26906
|
top: `${ctx.y}px`,
|
|
26886
26907
|
left: `${ctx.x}px`,
|
|
26887
|
-
width: ctx.width === "target" ? ctx.targetWidth === void 0 ? void 0 : `${ctx.targetWidth}px` :
|
|
26908
|
+
width: ctx.width === "target" ? ctx.targetWidth === void 0 ? void 0 : `${ctx.targetWidth}px` : rem(ctx.width)
|
|
26888
26909
|
},
|
|
26889
26910
|
attrs.style
|
|
26890
26911
|
]
|
|
@@ -27189,7 +27210,7 @@ var PopoverBase = (0, vue.defineComponent)({
|
|
|
27189
27210
|
return props.width ?? "max-content";
|
|
27190
27211
|
},
|
|
27191
27212
|
get zIndex() {
|
|
27192
|
-
return props.zIndex ??
|
|
27213
|
+
return props.zIndex ?? getDefaultZIndex("popover");
|
|
27193
27214
|
},
|
|
27194
27215
|
get floatingStrategy() {
|
|
27195
27216
|
return props.floatingStrategy ?? "absolute";
|
|
@@ -27242,10 +27263,10 @@ var defaults$1 = {
|
|
|
27242
27263
|
withinPortal: true,
|
|
27243
27264
|
offset: 10,
|
|
27244
27265
|
position: "right",
|
|
27245
|
-
zIndex:
|
|
27266
|
+
zIndex: getDefaultZIndex("popover")
|
|
27246
27267
|
};
|
|
27247
27268
|
var varsResolver$2 = createVarsResolver((theme, props) => ({ tooltip: {
|
|
27248
|
-
"--tooltip-radius": props.radius === void 0 ? void 0 :
|
|
27269
|
+
"--tooltip-radius": props.radius === void 0 ? void 0 : getRadius(props.radius),
|
|
27249
27270
|
"--tooltip-bg": props.color ? getThemeColor(props.color, theme) : void 0,
|
|
27250
27271
|
"--tooltip-color": props.color ? "var(--mantine-color-white)" : void 0
|
|
27251
27272
|
} }));
|
|
@@ -27477,7 +27498,7 @@ var defaults = {
|
|
|
27477
27498
|
focus: false,
|
|
27478
27499
|
touch: false
|
|
27479
27500
|
},
|
|
27480
|
-
zIndex:
|
|
27501
|
+
zIndex: getDefaultZIndex("popover"),
|
|
27481
27502
|
middlewares: {
|
|
27482
27503
|
flip: true,
|
|
27483
27504
|
shift: true,
|
|
@@ -27493,7 +27514,7 @@ var varsResolver$1 = createVarsResolver((theme, props) => {
|
|
|
27493
27514
|
variant: props.variant || "filled"
|
|
27494
27515
|
});
|
|
27495
27516
|
return { tooltip: {
|
|
27496
|
-
"--tooltip-radius": props.radius === void 0 ? void 0 :
|
|
27517
|
+
"--tooltip-radius": props.radius === void 0 ? void 0 : getRadius(props.radius),
|
|
27497
27518
|
"--tooltip-bg": props.color ? colors.background : void 0,
|
|
27498
27519
|
"--tooltip-color": props.color ? colors.color : void 0
|
|
27499
27520
|
} };
|
|
@@ -28789,17 +28810,17 @@ function useComboboxTargetProps(input) {
|
|
|
28789
28810
|
//#region src/components/Combobox/Combobox.ts
|
|
28790
28811
|
var varsResolver = createVarsResolver((_, props) => ({
|
|
28791
28812
|
options: {
|
|
28792
|
-
"--combobox-option-fz":
|
|
28793
|
-
"--combobox-option-padding":
|
|
28813
|
+
"--combobox-option-fz": getFontSize(props.size),
|
|
28814
|
+
"--combobox-option-padding": getSize(props.size, "combobox-option-padding")
|
|
28794
28815
|
},
|
|
28795
28816
|
dropdown: {
|
|
28796
|
-
"--combobox-padding": props.dropdownPadding === void 0 ? void 0 :
|
|
28797
|
-
"--combobox-option-fz":
|
|
28798
|
-
"--combobox-option-padding":
|
|
28817
|
+
"--combobox-padding": props.dropdownPadding === void 0 ? void 0 : rem(props.dropdownPadding),
|
|
28818
|
+
"--combobox-option-fz": getFontSize(props.size),
|
|
28819
|
+
"--combobox-option-padding": getSize(props.size, "combobox-option-padding")
|
|
28799
28820
|
}
|
|
28800
28821
|
}));
|
|
28801
28822
|
var chevronVarsResolver = createVarsResolver((theme, props) => ({ chevron: {
|
|
28802
|
-
"--combobox-chevron-size":
|
|
28823
|
+
"--combobox-chevron-size": getSize(props.size, "combobox-chevron-size"),
|
|
28803
28824
|
"--combobox-chevron-color": props.color ? getThemeColor(props.color, theme) : void 0
|
|
28804
28825
|
} }));
|
|
28805
28826
|
function childrenOne(slots, name) {
|
|
@@ -31184,413 +31205,6 @@ Object.assign(TreeSelect, { classes: {
|
|
|
31184
31205
|
...Combobox.classes,
|
|
31185
31206
|
...TreeSelect_module_default
|
|
31186
31207
|
} });
|
|
31187
|
-
__reExport(/* @__PURE__ */ __exportAll({
|
|
31188
|
-
Accordion: () => Accordion,
|
|
31189
|
-
AccordionChevron: () => AccordionChevron,
|
|
31190
|
-
AccordionControl: () => AccordionControl,
|
|
31191
|
-
AccordionItem: () => AccordionItem,
|
|
31192
|
-
AccordionPanel: () => AccordionPanel,
|
|
31193
|
-
ActionIcon: () => ActionIcon,
|
|
31194
|
-
ActionIconGroup: () => ActionIconGroup,
|
|
31195
|
-
ActionIconGroupSection: () => ActionIconGroupSection,
|
|
31196
|
-
Affix: () => Affix,
|
|
31197
|
-
Alert: () => Alert,
|
|
31198
|
-
AlphaSlider: () => AlphaSlider,
|
|
31199
|
-
Anchor: () => Anchor,
|
|
31200
|
-
AngleSlider: () => AngleSlider,
|
|
31201
|
-
AppShell: () => AppShell,
|
|
31202
|
-
AppShellAside: () => AppShellAside,
|
|
31203
|
-
AppShellFooter: () => AppShellFooter,
|
|
31204
|
-
AppShellHeader: () => AppShellHeader,
|
|
31205
|
-
AppShellMain: () => AppShellMain,
|
|
31206
|
-
AppShellNavbar: () => AppShellNavbar,
|
|
31207
|
-
AppShellSection: () => AppShellSection,
|
|
31208
|
-
AspectRatio: () => AspectRatio,
|
|
31209
|
-
Autocomplete: () => Autocomplete,
|
|
31210
|
-
Avatar: () => Avatar,
|
|
31211
|
-
AvatarGroup: () => AvatarGroup,
|
|
31212
|
-
AvatarGroupContextKey: () => AvatarGroupContextKey,
|
|
31213
|
-
BackgroundImage: () => BackgroundImage,
|
|
31214
|
-
Badge: () => Badge,
|
|
31215
|
-
Bars: () => Bars,
|
|
31216
|
-
Blockquote: () => Blockquote,
|
|
31217
|
-
Box: () => Box,
|
|
31218
|
-
Breadcrumbs: () => Breadcrumbs,
|
|
31219
|
-
Burger: () => Burger,
|
|
31220
|
-
Button: () => Button,
|
|
31221
|
-
ButtonGroup: () => ButtonGroup,
|
|
31222
|
-
ButtonGroupSection: () => ButtonGroupSection,
|
|
31223
|
-
Card: () => Card,
|
|
31224
|
-
CardSection: () => CardSection,
|
|
31225
|
-
Center: () => Center,
|
|
31226
|
-
CheckIcon: () => CheckIcon,
|
|
31227
|
-
Checkbox: () => Checkbox,
|
|
31228
|
-
CheckboxCard: () => CheckboxCard,
|
|
31229
|
-
CheckboxGroup: () => CheckboxGroup,
|
|
31230
|
-
CheckboxIcon: () => CheckboxIcon,
|
|
31231
|
-
CheckboxIndicator: () => CheckboxIndicator,
|
|
31232
|
-
Chip: () => Chip,
|
|
31233
|
-
ChipGroup: () => ChipGroup,
|
|
31234
|
-
CloseButton: () => CloseButton,
|
|
31235
|
-
CloseIcon: () => CloseIcon,
|
|
31236
|
-
Code: () => Code,
|
|
31237
|
-
Collapse: () => Collapse,
|
|
31238
|
-
ColorInput: () => ColorInput,
|
|
31239
|
-
ColorPicker: () => ColorPicker,
|
|
31240
|
-
ColorSlider: () => ColorSlider,
|
|
31241
|
-
ColorSwatch: () => ColorSwatch,
|
|
31242
|
-
Combobox: () => Combobox,
|
|
31243
|
-
ComboboxChevron: () => ComboboxChevron,
|
|
31244
|
-
ComboboxClearButton: () => ComboboxClearButton,
|
|
31245
|
-
ComboboxDropdown: () => ComboboxDropdown,
|
|
31246
|
-
ComboboxDropdownTarget: () => ComboboxDropdownTarget,
|
|
31247
|
-
ComboboxEmpty: () => ComboboxEmpty,
|
|
31248
|
-
ComboboxEventsTarget: () => ComboboxEventsTarget,
|
|
31249
|
-
ComboboxFooter: () => ComboboxFooter,
|
|
31250
|
-
ComboboxGroup: () => ComboboxGroup,
|
|
31251
|
-
ComboboxHeader: () => ComboboxHeader,
|
|
31252
|
-
ComboboxHiddenInput: () => ComboboxHiddenInput,
|
|
31253
|
-
ComboboxOption: () => ComboboxOption,
|
|
31254
|
-
ComboboxOptions: () => ComboboxOptions,
|
|
31255
|
-
ComboboxSearch: () => ComboboxSearch,
|
|
31256
|
-
ComboboxTarget: () => ComboboxTarget,
|
|
31257
|
-
Container: () => Container,
|
|
31258
|
-
CopyButton: () => CopyButton,
|
|
31259
|
-
DEFAULT_COLORS: () => DEFAULT_COLORS,
|
|
31260
|
-
DEFAULT_THEME: () => DEFAULT_THEME,
|
|
31261
|
-
Dialog: () => Dialog,
|
|
31262
|
-
DirectionContextKey: () => DirectionContextKey,
|
|
31263
|
-
DirectionProvider: () => DirectionProvider,
|
|
31264
|
-
Divider: () => Divider,
|
|
31265
|
-
Dots: () => Dots,
|
|
31266
|
-
Drawer: () => Drawer,
|
|
31267
|
-
DrawerBody: () => DrawerBody,
|
|
31268
|
-
DrawerCloseButton: () => DrawerCloseButton,
|
|
31269
|
-
DrawerContent: () => DrawerContent,
|
|
31270
|
-
DrawerHeader: () => DrawerHeader,
|
|
31271
|
-
DrawerOverlay: () => DrawerOverlay,
|
|
31272
|
-
DrawerRoot: () => DrawerRoot,
|
|
31273
|
-
DrawerStack: () => DrawerStack,
|
|
31274
|
-
DrawerTitle: () => DrawerTitle,
|
|
31275
|
-
FLEX_STYLE_PROPS_DATA: () => FLEX_STYLE_PROPS_DATA,
|
|
31276
|
-
Fieldset: () => Fieldset,
|
|
31277
|
-
FileButton: () => FileButton,
|
|
31278
|
-
FileInput: () => FileInput,
|
|
31279
|
-
FlatTreeNode: () => FlatTreeNode,
|
|
31280
|
-
Flex: () => Flex,
|
|
31281
|
-
FloatingIndicator: () => FloatingIndicator,
|
|
31282
|
-
FloatingWindow: () => FloatingWindow,
|
|
31283
|
-
FocusTrap: () => FocusTrap,
|
|
31284
|
-
FocusTrapInitialFocus: () => FocusTrapInitialFocus,
|
|
31285
|
-
Grid: () => Grid,
|
|
31286
|
-
GridCol: () => GridCol,
|
|
31287
|
-
Group: () => Group,
|
|
31288
|
-
HeadlessMantineProvider: () => HeadlessMantineProvider,
|
|
31289
|
-
Highlight: () => Highlight,
|
|
31290
|
-
HoverCard: () => HoverCard,
|
|
31291
|
-
HoverCardDropdown: () => HoverCardDropdown,
|
|
31292
|
-
HoverCardGroup: () => HoverCardGroup,
|
|
31293
|
-
HoverCardTarget: () => HoverCardTarget,
|
|
31294
|
-
HueSlider: () => HueSlider,
|
|
31295
|
-
INVALID_PRIMARY_COLOR_ERROR: () => INVALID_PRIMARY_COLOR_ERROR,
|
|
31296
|
-
INVALID_PRIMARY_SHADE_ERROR: () => INVALID_PRIMARY_SHADE_ERROR,
|
|
31297
|
-
Image: () => Image,
|
|
31298
|
-
Indicator: () => Indicator,
|
|
31299
|
-
InlineStyles: () => InlineStyles,
|
|
31300
|
-
Input: () => Input,
|
|
31301
|
-
InputBase: () => InputBase,
|
|
31302
|
-
InputClearButton: () => InputClearButton,
|
|
31303
|
-
InputClearSection: () => InputClearSection,
|
|
31304
|
-
InputDescription: () => InputDescription,
|
|
31305
|
-
InputError: () => InputError,
|
|
31306
|
-
InputLabel: () => InputLabel,
|
|
31307
|
-
InputPlaceholder: () => InputPlaceholder,
|
|
31308
|
-
InputWrapper: () => InputWrapper,
|
|
31309
|
-
JsonInput: () => JsonInput,
|
|
31310
|
-
Kbd: () => Kbd,
|
|
31311
|
-
List: () => List,
|
|
31312
|
-
ListItem: () => ListItem,
|
|
31313
|
-
Loader: () => Loader,
|
|
31314
|
-
LoadingOverlay: () => LoadingOverlay,
|
|
31315
|
-
MantineClasses: () => MantineClasses,
|
|
31316
|
-
MantineContextKey: () => MantineContextKey,
|
|
31317
|
-
MantineCssVariables: () => MantineCssVariables,
|
|
31318
|
-
MantineProvider: () => MantineProvider,
|
|
31319
|
-
MantineThemeKey: () => MantineThemeKey,
|
|
31320
|
-
MantineThemeProvider: () => MantineThemeProvider,
|
|
31321
|
-
Mark: () => Mark,
|
|
31322
|
-
Marquee: () => Marquee,
|
|
31323
|
-
MaskInput: () => MaskInput,
|
|
31324
|
-
Menu: () => Menu,
|
|
31325
|
-
MenuCheckboxGroup: () => MenuCheckboxGroup,
|
|
31326
|
-
MenuCheckboxItem: () => MenuCheckboxItem,
|
|
31327
|
-
MenuContextMenu: () => MenuContextMenu,
|
|
31328
|
-
MenuDivider: () => MenuDivider,
|
|
31329
|
-
MenuDropdown: () => MenuDropdown,
|
|
31330
|
-
MenuItem: () => MenuItem,
|
|
31331
|
-
MenuLabel: () => MenuLabel,
|
|
31332
|
-
MenuRadioGroup: () => MenuRadioGroup,
|
|
31333
|
-
MenuRadioItem: () => MenuRadioItem,
|
|
31334
|
-
MenuSearch: () => MenuSearch,
|
|
31335
|
-
MenuSub: () => MenuSub,
|
|
31336
|
-
MenuSubDropdown: () => MenuSubDropdown,
|
|
31337
|
-
MenuSubItem: () => MenuSubItem,
|
|
31338
|
-
MenuSubTarget: () => MenuSubTarget,
|
|
31339
|
-
MenuTarget: () => MenuTarget,
|
|
31340
|
-
Modal: () => Modal,
|
|
31341
|
-
ModalBase: () => ModalBase,
|
|
31342
|
-
ModalBaseBody: () => ModalBaseBody,
|
|
31343
|
-
ModalBaseCloseButton: () => ModalBaseCloseButton,
|
|
31344
|
-
ModalBaseContent: () => ModalBaseContent,
|
|
31345
|
-
ModalBaseHeader: () => ModalBaseHeader,
|
|
31346
|
-
ModalBaseOverlay: () => ModalBaseOverlay,
|
|
31347
|
-
ModalBaseTitle: () => ModalBaseTitle,
|
|
31348
|
-
ModalBody: () => ModalBody,
|
|
31349
|
-
ModalCloseButton: () => ModalCloseButton,
|
|
31350
|
-
ModalContent: () => ModalContent,
|
|
31351
|
-
ModalHeader: () => ModalHeader,
|
|
31352
|
-
ModalOverlay: () => ModalOverlay,
|
|
31353
|
-
ModalRoot: () => ModalRoot,
|
|
31354
|
-
ModalTitle: () => ModalTitle,
|
|
31355
|
-
MultiSelect: () => MultiSelect,
|
|
31356
|
-
NativeScrollArea: () => NativeScrollArea,
|
|
31357
|
-
NativeSelect: () => NativeSelect,
|
|
31358
|
-
NativeSelectOption: () => NativeSelectOption,
|
|
31359
|
-
NavLink: () => NavLink,
|
|
31360
|
-
Notification: () => Notification,
|
|
31361
|
-
NumberFormatter: () => NumberFormatter,
|
|
31362
|
-
NumberInput: () => NumberInput,
|
|
31363
|
-
NumberInputChevron: () => NumberInputChevron,
|
|
31364
|
-
OptionalPortal: () => OptionalPortal,
|
|
31365
|
-
OptionsDropdown: () => OptionsDropdown,
|
|
31366
|
-
Oval: () => Oval,
|
|
31367
|
-
OverflowList: () => OverflowList,
|
|
31368
|
-
Overlay: () => Overlay,
|
|
31369
|
-
Pagination: () => Pagination,
|
|
31370
|
-
PaginationControl: () => PaginationControl,
|
|
31371
|
-
PaginationDots: () => PaginationDots,
|
|
31372
|
-
PaginationFirst: () => PaginationFirst,
|
|
31373
|
-
PaginationItems: () => PaginationItems,
|
|
31374
|
-
PaginationItemsGroup: () => PaginationItemsGroup,
|
|
31375
|
-
PaginationLabel: () => PaginationLabel,
|
|
31376
|
-
PaginationLast: () => PaginationLast,
|
|
31377
|
-
PaginationNext: () => PaginationNext,
|
|
31378
|
-
PaginationPrevious: () => PaginationPrevious,
|
|
31379
|
-
PaginationRoot: () => PaginationRoot,
|
|
31380
|
-
Paper: () => Paper,
|
|
31381
|
-
PasswordInput: () => PasswordInput,
|
|
31382
|
-
PasswordToggleIcon: () => PasswordToggleIcon,
|
|
31383
|
-
Pill: () => Pill,
|
|
31384
|
-
PillGroup: () => PillGroup,
|
|
31385
|
-
PillsInput: () => PillsInput,
|
|
31386
|
-
PillsInputField: () => PillsInputField,
|
|
31387
|
-
PinInput: () => PinInput,
|
|
31388
|
-
Popover: () => Popover,
|
|
31389
|
-
PopoverContextMenu: () => PopoverContextMenu,
|
|
31390
|
-
PopoverDropdown: () => PopoverDropdown,
|
|
31391
|
-
PopoverTarget: () => PopoverTarget,
|
|
31392
|
-
Portal: () => Portal,
|
|
31393
|
-
Progress: () => Progress,
|
|
31394
|
-
ProgressLabel: () => ProgressLabel,
|
|
31395
|
-
ProgressRoot: () => ProgressRoot,
|
|
31396
|
-
ProgressSection: () => ProgressSection,
|
|
31397
|
-
Radio: () => Radio,
|
|
31398
|
-
RadioCard: () => RadioCard,
|
|
31399
|
-
RadioGroup: () => RadioGroup,
|
|
31400
|
-
RadioIcon: () => RadioIcon,
|
|
31401
|
-
RadioIndicator: () => RadioIndicator,
|
|
31402
|
-
RangeSlider: () => RangeSlider,
|
|
31403
|
-
Rating: () => Rating,
|
|
31404
|
-
RingProgress: () => RingProgress,
|
|
31405
|
-
RollingNumber: () => RollingNumber,
|
|
31406
|
-
STYLE_PROPS_DATA: () => STYLE_PROPS_DATA,
|
|
31407
|
-
ScrollArea: () => ScrollArea,
|
|
31408
|
-
ScrollAreaAutosize: () => ScrollAreaAutosize,
|
|
31409
|
-
Scroller: () => Scroller,
|
|
31410
|
-
SegmentedControl: () => SegmentedControl,
|
|
31411
|
-
Select: () => Select,
|
|
31412
|
-
SemiCircleProgress: () => SemiCircleProgress,
|
|
31413
|
-
SimpleGrid: () => SimpleGrid,
|
|
31414
|
-
Skeleton: () => Skeleton,
|
|
31415
|
-
Slider: () => Slider,
|
|
31416
|
-
Space: () => Space,
|
|
31417
|
-
Splitter: () => Splitter,
|
|
31418
|
-
SplitterPane: () => SplitterPane,
|
|
31419
|
-
Spoiler: () => Spoiler,
|
|
31420
|
-
Stack: () => Stack,
|
|
31421
|
-
Stepper: () => Stepper,
|
|
31422
|
-
StepperCompleted: () => StepperCompleted,
|
|
31423
|
-
StepperStep: () => StepperStep,
|
|
31424
|
-
Switch: () => Switch,
|
|
31425
|
-
SwitchGroup: () => SwitchGroup,
|
|
31426
|
-
Table: () => Table,
|
|
31427
|
-
TableCaption: () => TableCaption,
|
|
31428
|
-
TableDataRenderer: () => TableDataRenderer,
|
|
31429
|
-
TableOfContents: () => TableOfContents,
|
|
31430
|
-
TableScrollContainer: () => TableScrollContainer,
|
|
31431
|
-
TableTbody: () => TableTbody,
|
|
31432
|
-
TableTd: () => TableTd,
|
|
31433
|
-
TableTfoot: () => TableTfoot,
|
|
31434
|
-
TableTh: () => TableTh,
|
|
31435
|
-
TableThead: () => TableThead,
|
|
31436
|
-
TableTr: () => TableTr,
|
|
31437
|
-
Tabs: () => Tabs,
|
|
31438
|
-
TabsList: () => TabsList,
|
|
31439
|
-
TabsPanel: () => TabsPanel,
|
|
31440
|
-
TabsTab: () => TabsTab,
|
|
31441
|
-
TagsInput: () => TagsInput,
|
|
31442
|
-
Text: () => Text,
|
|
31443
|
-
TextInput: () => TextInput,
|
|
31444
|
-
Textarea: () => Textarea,
|
|
31445
|
-
ThemeIcon: () => ThemeIcon,
|
|
31446
|
-
Timeline: () => Timeline,
|
|
31447
|
-
TimelineItem: () => TimelineItem,
|
|
31448
|
-
Title: () => Title,
|
|
31449
|
-
Tooltip: () => Tooltip,
|
|
31450
|
-
TooltipFloating: () => TooltipFloating,
|
|
31451
|
-
TooltipGroup: () => TooltipGroup,
|
|
31452
|
-
Transition: () => Transition,
|
|
31453
|
-
Tree: () => Tree,
|
|
31454
|
-
TreeSelect: () => TreeSelect,
|
|
31455
|
-
TreeSelectOption: () => TreeSelectOption,
|
|
31456
|
-
Typography: () => Typography,
|
|
31457
|
-
UnstyledButton: () => UnstyledButton,
|
|
31458
|
-
VisuallyHidden: () => VisuallyHidden,
|
|
31459
|
-
alpha: () => alpha,
|
|
31460
|
-
buildValue: () => buildValue,
|
|
31461
|
-
colorsTuple: () => colorsTuple,
|
|
31462
|
-
convertCssVariables: () => convertCssVariables,
|
|
31463
|
-
convertHsvaTo: () => convertHsvaTo,
|
|
31464
|
-
createProviderColorScheme: () => createProviderColorScheme,
|
|
31465
|
-
createSafeContext: () => createSafeContext,
|
|
31466
|
-
createSafeInjectionContext: () => createSafeInjectionContext,
|
|
31467
|
-
createVarsResolver: () => createVarsResolver,
|
|
31468
|
-
cssVariablesObjectToString: () => cssVariablesObjectToString,
|
|
31469
|
-
darken: () => darken,
|
|
31470
|
-
defaultCssVariablesResolver: () => defaultCssVariablesResolver,
|
|
31471
|
-
defaultLoaders: () => defaultLoaders,
|
|
31472
|
-
defaultOptionsFilter: () => defaultOptionsFilter,
|
|
31473
|
-
defaultTreeNodeFilter: () => defaultTreeNodeFilter,
|
|
31474
|
-
defaultVariantColorsResolver: () => defaultVariantColorsResolver,
|
|
31475
|
-
factory: () => factory,
|
|
31476
|
-
filterTreeData: () => filterTreeData,
|
|
31477
|
-
flattenTreeData: () => flattenTreeData,
|
|
31478
|
-
foldAccents: () => foldAccents,
|
|
31479
|
-
formatNumber: () => formatNumber,
|
|
31480
|
-
getAppShellVariables: () => getVariables,
|
|
31481
|
-
getAutoContrastValue: () => getAutoContrastValue,
|
|
31482
|
-
getContrastColor: () => getContrastColor,
|
|
31483
|
-
getDigitParts: () => getDigitParts,
|
|
31484
|
-
getGradient: () => getGradient,
|
|
31485
|
-
getInitials: () => getInitials,
|
|
31486
|
-
getInitialsColor: () => getInitialsColor,
|
|
31487
|
-
getMarkColor: () => getMarkColor,
|
|
31488
|
-
getMergedVariables: () => getMergedVariables,
|
|
31489
|
-
getOptionsLockup: () => getOptionsLockup,
|
|
31490
|
-
getParsedComboboxData: () => getParsedComboboxData,
|
|
31491
|
-
getParsedNativeSelectData: () => getParsedNativeSelectData,
|
|
31492
|
-
getPositionVariables: () => getPositionVariables,
|
|
31493
|
-
getPrimaryContrastColor: () => getPrimaryContrastColor,
|
|
31494
|
-
getPrimaryShade: () => getPrimaryShade,
|
|
31495
|
-
getRenderSlots: () => getRenderSlots,
|
|
31496
|
-
getRenderSlotsFromValues: () => getRenderSlotsFromValues,
|
|
31497
|
-
getSplittedTags: () => getSplittedTags,
|
|
31498
|
-
getThemeColor: () => getThemeColor,
|
|
31499
|
-
getTitleSize: () => getTitleSize,
|
|
31500
|
-
getTreeExpandedState: () => getTreeExpandedState,
|
|
31501
|
-
hashStyleProps: () => hashStyleProps,
|
|
31502
|
-
highlighter: () => highlighter,
|
|
31503
|
-
hsvaToHex: () => hsvaToHex,
|
|
31504
|
-
hsvaToHexa: () => hsvaToHexa,
|
|
31505
|
-
hsvaToHsl: () => hsvaToHsl,
|
|
31506
|
-
hsvaToRgba: () => hsvaToRgba,
|
|
31507
|
-
hsvaToRgbaObject: () => hsvaToRgbaObject,
|
|
31508
|
-
isColorValid: () => isColorValid,
|
|
31509
|
-
isEmptyComboboxData: () => isEmptyComboboxData,
|
|
31510
|
-
isLightColor: () => isLightColor,
|
|
31511
|
-
isOptionsGroup: () => isOptionsGroup,
|
|
31512
|
-
isVirtualColor: () => isVirtualColor,
|
|
31513
|
-
lighten: () => lighten,
|
|
31514
|
-
luminance: () => luminance,
|
|
31515
|
-
mergeAsyncChildren: () => mergeAsyncChildren,
|
|
31516
|
-
mergeMantineTheme: () => mergeMantineTheme,
|
|
31517
|
-
movePill: () => movePill,
|
|
31518
|
-
moveTreeNode: () => moveTreeNode,
|
|
31519
|
-
parseColor: () => parseColor,
|
|
31520
|
-
parseHex: () => parseHex,
|
|
31521
|
-
parseHexa: () => parseHexa,
|
|
31522
|
-
parseHsla: () => parseHsla,
|
|
31523
|
-
parseHue: () => parseHue,
|
|
31524
|
-
parseRgba: () => parseRgba,
|
|
31525
|
-
parseStyleProps: () => parseStyleProps,
|
|
31526
|
-
parseThemeColor: () => parseThemeColor,
|
|
31527
|
-
polymorphicFactory: () => factory,
|
|
31528
|
-
polymorphicProps: () => polymorphicProps,
|
|
31529
|
-
provideGridContext: () => provideGridContext,
|
|
31530
|
-
provideListContext: () => provideListContext,
|
|
31531
|
-
provideMantineContext: () => provideMantineContext,
|
|
31532
|
-
provideMantineTheme: () => provideMantineTheme,
|
|
31533
|
-
providePillsInputContext: () => providePillsInputContext,
|
|
31534
|
-
renderPolymorphic: () => renderPolymorphic,
|
|
31535
|
-
resolveColorScheme: () => resolveColorScheme,
|
|
31536
|
-
rgba: () => rgba,
|
|
31537
|
-
round: () => round,
|
|
31538
|
-
toRgba: () => toRgba,
|
|
31539
|
-
useAccordionContext: () => useAccordionContext,
|
|
31540
|
-
useAccordionItemContext: () => useAccordionItemContext,
|
|
31541
|
-
useAppShellContext: () => useAppShellContext,
|
|
31542
|
-
useAvatarGroupContext: () => useAvatarGroupContext,
|
|
31543
|
-
useCheckboxCardContext: () => useCheckboxCardContext,
|
|
31544
|
-
useCheckboxGroupContext: () => useCheckboxGroupContext,
|
|
31545
|
-
useChipGroupContext: () => useChipGroupContext,
|
|
31546
|
-
useCombobox: () => useCombobox,
|
|
31547
|
-
useComboboxContext: () => useComboboxContext,
|
|
31548
|
-
useComboboxTargetProps: () => useComboboxTargetProps,
|
|
31549
|
-
useComputedColorScheme: () => useComputedColorScheme,
|
|
31550
|
-
useDirection: () => useDirection,
|
|
31551
|
-
useDrawersStack: () => useDrawersStack,
|
|
31552
|
-
useFloatingIndicator: () => useFloatingIndicator,
|
|
31553
|
-
useForwardedRef: () => useForwardedRef,
|
|
31554
|
-
useGridContext: () => useGridContext,
|
|
31555
|
-
useHoverCardContext: () => useHoverCardContext,
|
|
31556
|
-
useInputContext: () => useInputContext,
|
|
31557
|
-
useInputWrapperContext: () => useInputWrapperContext,
|
|
31558
|
-
useListContext: () => useListContext,
|
|
31559
|
-
useMantineClassNamesPrefix: () => useMantineClassNamesPrefix,
|
|
31560
|
-
useMantineColorScheme: () => useMantineColorScheme,
|
|
31561
|
-
useMantineContext: () => useMantineContext,
|
|
31562
|
-
useMantineCssVariablesResolver: () => useMantineCssVariablesResolver,
|
|
31563
|
-
useMantineDeduplicateInlineStyles: () => useMantineDeduplicateInlineStyles,
|
|
31564
|
-
useMantineEnv: () => useMantineEnv,
|
|
31565
|
-
useMantineIsHeadless: () => useMantineIsHeadless,
|
|
31566
|
-
useMantineStyleNonce: () => useMantineStyleNonce,
|
|
31567
|
-
useMantineTheme: () => useMantineTheme,
|
|
31568
|
-
useMantineWithStaticClasses: () => useMantineWithStaticClasses,
|
|
31569
|
-
useMenuContext: () => useMenuContext,
|
|
31570
|
-
usePaginationContext: () => usePaginationContext,
|
|
31571
|
-
usePillGroupContext: () => usePillGroupContext,
|
|
31572
|
-
usePillsInputContext: () => usePillsInputContext,
|
|
31573
|
-
usePillsReorder: () => usePillsReorder,
|
|
31574
|
-
useProgressContext: () => useProgressContext,
|
|
31575
|
-
useProps: () => useProps,
|
|
31576
|
-
useRadioCardContext: () => useRadioCardContext,
|
|
31577
|
-
useRadioGroupContext: () => useRadioGroupContext,
|
|
31578
|
-
useRandomClassName: () => useRandomClassName,
|
|
31579
|
-
useSafeMantineTheme: () => useSafeMantineTheme,
|
|
31580
|
-
useScrollAreaContext: () => useScrollAreaContext,
|
|
31581
|
-
useSplitterContext: () => useSplitterContext,
|
|
31582
|
-
useStepperContext: () => useStepperContext,
|
|
31583
|
-
useStyles: () => useStyles,
|
|
31584
|
-
useSwitchGroupContext: () => useSwitchGroupContext,
|
|
31585
|
-
useTabsContext: () => useTabsContext,
|
|
31586
|
-
useTree: () => useTree,
|
|
31587
|
-
useVirtualizedCombobox: () => useVirtualizedCombobox,
|
|
31588
|
-
validateJson: () => validateJson,
|
|
31589
|
-
validateMantineTheme: () => validateMantineTheme,
|
|
31590
|
-
validateOptions: () => validateOptions,
|
|
31591
|
-
virtualColor: () => virtualColor,
|
|
31592
|
-
withBoxProps: () => withBoxProps
|
|
31593
|
-
}), core_exports);
|
|
31594
31208
|
//#endregion
|
|
31595
31209
|
exports.Accordion = Accordion;
|
|
31596
31210
|
exports.AccordionChevron = AccordionChevron;
|
|
@@ -31865,32 +31479,43 @@ exports.UnstyledButton = UnstyledButton;
|
|
|
31865
31479
|
exports.VisuallyHidden = VisuallyHidden;
|
|
31866
31480
|
exports.alpha = alpha;
|
|
31867
31481
|
exports.buildValue = buildValue;
|
|
31482
|
+
exports.camelToKebabCase = camelToKebabCase;
|
|
31868
31483
|
exports.colorsTuple = colorsTuple;
|
|
31869
31484
|
exports.convertCssVariables = convertCssVariables;
|
|
31870
31485
|
exports.convertHsvaTo = convertHsvaTo;
|
|
31486
|
+
exports.createEventHandler = createEventHandler;
|
|
31871
31487
|
exports.createProviderColorScheme = createProviderColorScheme;
|
|
31872
31488
|
exports.createSafeContext = createSafeContext;
|
|
31873
31489
|
exports.createSafeInjectionContext = createSafeInjectionContext;
|
|
31874
31490
|
exports.createVarsResolver = createVarsResolver;
|
|
31875
31491
|
exports.cssVariablesObjectToString = cssVariablesObjectToString;
|
|
31876
31492
|
exports.darken = darken;
|
|
31493
|
+
exports.deepMerge = deepMerge;
|
|
31877
31494
|
exports.defaultCssVariablesResolver = defaultCssVariablesResolver;
|
|
31878
31495
|
exports.defaultLoaders = defaultLoaders;
|
|
31879
31496
|
exports.defaultOptionsFilter = defaultOptionsFilter;
|
|
31880
31497
|
exports.defaultTreeNodeFilter = defaultTreeNodeFilter;
|
|
31881
31498
|
exports.defaultVariantColorsResolver = defaultVariantColorsResolver;
|
|
31499
|
+
exports.em = em;
|
|
31882
31500
|
exports.factory = factory;
|
|
31501
|
+
exports.filterProps = filterProps;
|
|
31883
31502
|
exports.filterTreeData = filterTreeData;
|
|
31503
|
+
exports.findClosestNumber = findClosestNumber;
|
|
31884
31504
|
exports.flattenTreeData = flattenTreeData;
|
|
31885
31505
|
exports.foldAccents = foldAccents;
|
|
31886
31506
|
exports.formatNumber = formatNumber;
|
|
31887
31507
|
exports.getAppShellVariables = getVariables;
|
|
31888
31508
|
exports.getAutoContrastValue = getAutoContrastValue;
|
|
31509
|
+
exports.getBaseValue = getBaseValue;
|
|
31510
|
+
exports.getBreakpointValue = getBreakpointValue;
|
|
31889
31511
|
exports.getContrastColor = getContrastColor;
|
|
31512
|
+
exports.getDefaultZIndex = getDefaultZIndex;
|
|
31890
31513
|
exports.getDigitParts = getDigitParts;
|
|
31514
|
+
exports.getFontSize = getFontSize;
|
|
31891
31515
|
exports.getGradient = getGradient;
|
|
31892
31516
|
exports.getInitials = getInitials;
|
|
31893
31517
|
exports.getInitialsColor = getInitialsColor;
|
|
31518
|
+
exports.getLineHeight = getLineHeight;
|
|
31894
31519
|
exports.getMarkColor = getMarkColor;
|
|
31895
31520
|
exports.getMergedVariables = getMergedVariables;
|
|
31896
31521
|
exports.getOptionsLockup = getOptionsLockup;
|
|
@@ -31899,8 +31524,14 @@ exports.getParsedNativeSelectData = getParsedNativeSelectData;
|
|
|
31899
31524
|
exports.getPositionVariables = getPositionVariables;
|
|
31900
31525
|
exports.getPrimaryContrastColor = getPrimaryContrastColor;
|
|
31901
31526
|
exports.getPrimaryShade = getPrimaryShade;
|
|
31527
|
+
exports.getRadius = getRadius;
|
|
31902
31528
|
exports.getRenderSlots = getRenderSlots;
|
|
31903
31529
|
exports.getRenderSlotsFromValues = getRenderSlotsFromValues;
|
|
31530
|
+
exports.getSafeId = getSafeId;
|
|
31531
|
+
exports.getShadow = getShadow;
|
|
31532
|
+
exports.getSize = getSize;
|
|
31533
|
+
exports.getSortedBreakpoints = getSortedBreakpoints;
|
|
31534
|
+
exports.getSpacing = getSpacing;
|
|
31904
31535
|
exports.getSplittedTags = getSplittedTags;
|
|
31905
31536
|
exports.getThemeColor = getThemeColor;
|
|
31906
31537
|
exports.getTitleSize = getTitleSize;
|
|
@@ -31915,14 +31546,19 @@ exports.hsvaToRgbaObject = hsvaToRgbaObject;
|
|
|
31915
31546
|
exports.isColorValid = isColorValid;
|
|
31916
31547
|
exports.isEmptyComboboxData = isEmptyComboboxData;
|
|
31917
31548
|
exports.isLightColor = isLightColor;
|
|
31549
|
+
exports.isNumberLike = isNumberLike;
|
|
31918
31550
|
exports.isOptionsGroup = isOptionsGroup;
|
|
31551
|
+
exports.isPrimitive = isPrimitive;
|
|
31919
31552
|
exports.isVirtualColor = isVirtualColor;
|
|
31553
|
+
exports.keys = keys;
|
|
31920
31554
|
exports.lighten = lighten;
|
|
31921
31555
|
exports.luminance = luminance;
|
|
31556
|
+
exports.memoize = memoize;
|
|
31922
31557
|
exports.mergeAsyncChildren = mergeAsyncChildren;
|
|
31923
31558
|
exports.mergeMantineTheme = mergeMantineTheme;
|
|
31924
31559
|
exports.movePill = movePill;
|
|
31925
31560
|
exports.moveTreeNode = moveTreeNode;
|
|
31561
|
+
exports.noop = noop;
|
|
31926
31562
|
exports.parseColor = parseColor;
|
|
31927
31563
|
exports.parseHex = parseHex;
|
|
31928
31564
|
exports.parseHexa = parseHexa;
|
|
@@ -31938,6 +31574,8 @@ exports.provideListContext = provideListContext;
|
|
|
31938
31574
|
exports.provideMantineContext = provideMantineContext;
|
|
31939
31575
|
exports.provideMantineTheme = provideMantineTheme;
|
|
31940
31576
|
exports.providePillsInputContext = providePillsInputContext;
|
|
31577
|
+
exports.px = px;
|
|
31578
|
+
exports.rem = rem;
|
|
31941
31579
|
exports.renderPolymorphic = renderPolymorphic;
|
|
31942
31580
|
exports.resolveColorScheme = resolveColorScheme;
|
|
31943
31581
|
exports.rgba = rgba;
|
|
@@ -31997,13 +31635,5 @@ exports.validateMantineTheme = validateMantineTheme;
|
|
|
31997
31635
|
exports.validateOptions = validateOptions;
|
|
31998
31636
|
exports.virtualColor = virtualColor;
|
|
31999
31637
|
exports.withBoxProps = withBoxProps;
|
|
32000
|
-
Object.keys(_mantine_vue_utils).forEach(function(k) {
|
|
32001
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
32002
|
-
enumerable: true,
|
|
32003
|
-
get: function() {
|
|
32004
|
-
return _mantine_vue_utils[k];
|
|
32005
|
-
}
|
|
32006
|
-
});
|
|
32007
|
-
});
|
|
32008
31638
|
|
|
32009
31639
|
//# sourceMappingURL=index.cjs.map
|