@kvell-group/ui 1.4.2 → 1.6.0
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 +0 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +327 -288
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as p, jsxs as z, Fragment as pr } from "react/jsx-runtime";
|
|
2
|
-
import { useState as tr, useRef as
|
|
2
|
+
import { useState as tr, useRef as W, useEffect as A, useLayoutEffect as Wt, createContext as Dr, useContext as $r, useMemo as zt, useCallback as Lr, useId as Yt, forwardRef as _ } from "react";
|
|
3
3
|
import Gt from "react-dom";
|
|
4
4
|
import './assets/main.css';function M(r) {
|
|
5
5
|
return Object.keys(r);
|
|
@@ -94,15 +94,15 @@ function Kt(r, t, { getInitialValueInEffect: e } = {
|
|
|
94
94
|
}) {
|
|
95
95
|
const [n, a] = tr(
|
|
96
96
|
e ? t : Qt(r)
|
|
97
|
-
), o =
|
|
97
|
+
), o = W(null);
|
|
98
98
|
return A(() => {
|
|
99
99
|
if ("matchMedia" in window)
|
|
100
100
|
return o.current = window.matchMedia(r), a(o.current.matches), qt(o.current, (i) => a(i.matches));
|
|
101
101
|
}, [r]), n;
|
|
102
102
|
}
|
|
103
|
-
const Qr = typeof document < "u" ?
|
|
103
|
+
const Qr = typeof document < "u" ? Wt : A;
|
|
104
104
|
function Zt(r, t) {
|
|
105
|
-
const e =
|
|
105
|
+
const e = W(!1);
|
|
106
106
|
A(
|
|
107
107
|
() => () => {
|
|
108
108
|
e.current = !1;
|
|
@@ -126,7 +126,7 @@ function Kr(r) {
|
|
|
126
126
|
} else for (e in r) r[e] && (n && (n += " "), n += e);
|
|
127
127
|
return n;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function B() {
|
|
130
130
|
for (var r, t, e = 0, n = "", a = arguments.length; e < a; e++) (r = arguments[e]) && (t = Kr(r)) && (n && (n += " "), n += t);
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
@@ -135,7 +135,7 @@ function tn(r) {
|
|
|
135
135
|
const t = {};
|
|
136
136
|
return r.forEach((e) => {
|
|
137
137
|
Object.entries(e).forEach(([n, a]) => {
|
|
138
|
-
t[n] ? t[n] =
|
|
138
|
+
t[n] ? t[n] = B(t[n], a) : t[n] = a;
|
|
139
139
|
});
|
|
140
140
|
}), t;
|
|
141
141
|
}
|
|
@@ -145,46 +145,46 @@ function wr({ theme: r, classNames: t, props: e, stylesCtx: n }) {
|
|
|
145
145
|
);
|
|
146
146
|
return tn(o);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function gr({ theme: r, styles: t, props: e, stylesCtx: n }) {
|
|
149
149
|
return (Array.isArray(t) ? t : [t]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(r, e, n) } : { ...o, ...i }, {});
|
|
150
150
|
}
|
|
151
151
|
const Zr = Dr(null);
|
|
152
|
-
function
|
|
152
|
+
function P() {
|
|
153
153
|
const r = $r(Zr);
|
|
154
154
|
if (!r)
|
|
155
155
|
throw new Error("[@mantine/core] MantineProvider was not found in tree");
|
|
156
156
|
return r;
|
|
157
157
|
}
|
|
158
158
|
function nn() {
|
|
159
|
-
return
|
|
159
|
+
return P().cssVariablesResolver;
|
|
160
160
|
}
|
|
161
161
|
function en() {
|
|
162
|
-
return
|
|
162
|
+
return P().classNamesPrefix;
|
|
163
163
|
}
|
|
164
164
|
function Cr() {
|
|
165
|
-
return
|
|
165
|
+
return P().getStyleNonce;
|
|
166
166
|
}
|
|
167
167
|
function on() {
|
|
168
|
-
return
|
|
168
|
+
return P().withStaticClasses;
|
|
169
169
|
}
|
|
170
170
|
function an() {
|
|
171
|
-
return
|
|
171
|
+
return P().headless;
|
|
172
172
|
}
|
|
173
173
|
function sn() {
|
|
174
174
|
var r;
|
|
175
|
-
return (r =
|
|
175
|
+
return (r = P().stylesTransform) == null ? void 0 : r.sx;
|
|
176
176
|
}
|
|
177
177
|
function cn() {
|
|
178
178
|
var r;
|
|
179
|
-
return (r =
|
|
179
|
+
return (r = P().stylesTransform) == null ? void 0 : r.styles;
|
|
180
180
|
}
|
|
181
181
|
function ln() {
|
|
182
|
-
return
|
|
182
|
+
return P().env || "default";
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function dn(r) {
|
|
185
185
|
return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function fn(r) {
|
|
188
188
|
let t = r.replace("#", "");
|
|
189
189
|
if (t.length === 3) {
|
|
190
190
|
const i = t.split("");
|
|
@@ -227,17 +227,17 @@ function mn(r) {
|
|
|
227
227
|
b: 0,
|
|
228
228
|
a: 1
|
|
229
229
|
};
|
|
230
|
-
const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60,
|
|
231
|
-
let
|
|
232
|
-
return l >= 0 && l < 1 ? (
|
|
233
|
-
r: Math.round((
|
|
230
|
+
const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60, d = s * (1 - Math.abs(l % 2 - 1)), u = o - s / 2;
|
|
231
|
+
let f, m, g;
|
|
232
|
+
return l >= 0 && l < 1 ? (f = s, m = d, g = 0) : l >= 1 && l < 2 ? (f = d, m = s, g = 0) : l >= 2 && l < 3 ? (f = 0, m = s, g = d) : l >= 3 && l < 4 ? (f = 0, m = d, g = s) : l >= 4 && l < 5 ? (f = d, m = 0, g = s) : (f = s, m = 0, g = d), {
|
|
233
|
+
r: Math.round((f + u) * 255),
|
|
234
234
|
g: Math.round((m + u) * 255),
|
|
235
|
-
b: Math.round((
|
|
235
|
+
b: Math.round((g + u) * 255),
|
|
236
236
|
a: i || 1
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
function xr(r) {
|
|
240
|
-
return
|
|
240
|
+
return dn(r) ? fn(r) : r.startsWith("rgb") ? un(r) : r.startsWith("hsl") ? mn(r) : {
|
|
241
241
|
r: 0,
|
|
242
242
|
g: 0,
|
|
243
243
|
b: 0,
|
|
@@ -260,14 +260,14 @@ function pn(r) {
|
|
|
260
260
|
const t = r.match(/oklch\((.*?)%\s/);
|
|
261
261
|
return t ? parseFloat(t[1]) : null;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function gn(r) {
|
|
264
264
|
if (r.startsWith("oklch("))
|
|
265
265
|
return (pn(r) || 0) / 100;
|
|
266
|
-
const { r: t, g: e, b: n } = xr(r), a = t / 255, o = e / 255, i = n / 255, s = cr(a), l = cr(o),
|
|
267
|
-
return 0.2126 * s + 0.7152 * l + 0.0722 *
|
|
266
|
+
const { r: t, g: e, b: n } = xr(r), a = t / 255, o = e / 255, i = n / 255, s = cr(a), l = cr(o), d = cr(i);
|
|
267
|
+
return 0.2126 * s + 0.7152 * l + 0.0722 * d;
|
|
268
268
|
}
|
|
269
269
|
function G(r, t = 0.179) {
|
|
270
|
-
return r.startsWith("var(") ? !1 :
|
|
270
|
+
return r.startsWith("var(") ? !1 : gn(r) > t;
|
|
271
271
|
}
|
|
272
272
|
function q({
|
|
273
273
|
color: r,
|
|
@@ -335,7 +335,7 @@ function q({
|
|
|
335
335
|
variable: void 0
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function yr(r, t) {
|
|
339
339
|
const e = q({ color: r || t.primaryColor, theme: t });
|
|
340
340
|
return e.variable ? `var(${e.variable})` : r;
|
|
341
341
|
}
|
|
@@ -344,7 +344,7 @@ function Ar(r, t) {
|
|
|
344
344
|
from: (r == null ? void 0 : r.from) || t.defaultGradient.from,
|
|
345
345
|
to: (r == null ? void 0 : r.to) || t.defaultGradient.to,
|
|
346
346
|
deg: (r == null ? void 0 : r.deg) ?? t.defaultGradient.deg ?? 0
|
|
347
|
-
}, n =
|
|
347
|
+
}, n = yr(e.from, t), a = yr(e.to, t);
|
|
348
348
|
return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
|
|
349
349
|
}
|
|
350
350
|
function R(r, t) {
|
|
@@ -359,7 +359,7 @@ function R(r, t) {
|
|
|
359
359
|
const { r: e, g: n, b: a } = xr(r);
|
|
360
360
|
return `rgba(${e}, ${n}, ${a}, ${t})`;
|
|
361
361
|
}
|
|
362
|
-
const j = R,
|
|
362
|
+
const j = R, yn = ({
|
|
363
363
|
color: r,
|
|
364
364
|
theme: t,
|
|
365
365
|
variant: e,
|
|
@@ -670,7 +670,7 @@ const j = R, gn = ({
|
|
|
670
670
|
colors: bn,
|
|
671
671
|
primaryShade: { light: 6, dark: 8 },
|
|
672
672
|
primaryColor: "blue",
|
|
673
|
-
variantColorResolver:
|
|
673
|
+
variantColorResolver: yn,
|
|
674
674
|
autoContrast: !1,
|
|
675
675
|
luminanceThreshold: 0.3,
|
|
676
676
|
fontFamily: Or,
|
|
@@ -747,7 +747,7 @@ const j = R, gn = ({
|
|
|
747
747
|
other: {},
|
|
748
748
|
components: {}
|
|
749
749
|
};
|
|
750
|
-
function
|
|
750
|
+
function Ir(r) {
|
|
751
751
|
return r === "auto" || r === "dark" || r === "light";
|
|
752
752
|
}
|
|
753
753
|
function hn({
|
|
@@ -760,7 +760,7 @@ function hn({
|
|
|
760
760
|
return e;
|
|
761
761
|
try {
|
|
762
762
|
const n = window.localStorage.getItem(r);
|
|
763
|
-
return
|
|
763
|
+
return Ir(n) ? n : e;
|
|
764
764
|
} catch {
|
|
765
765
|
return e;
|
|
766
766
|
}
|
|
@@ -777,7 +777,7 @@ function hn({
|
|
|
777
777
|
},
|
|
778
778
|
subscribe: (e) => {
|
|
779
779
|
t = (n) => {
|
|
780
|
-
n.storageArea === window.localStorage && n.key === r &&
|
|
780
|
+
n.storageArea === window.localStorage && n.key === r && Ir(n.newValue) && e(n.newValue);
|
|
781
781
|
}, window.addEventListener("storage", t);
|
|
782
782
|
},
|
|
783
783
|
unsubscribe: () => {
|
|
@@ -788,7 +788,7 @@ function hn({
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",
|
|
791
|
+
const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", Br = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
|
|
792
792
|
function lr(r) {
|
|
793
793
|
return r < 0 || r > 9 ? !1 : parseInt(r.toString(), 10) === r;
|
|
794
794
|
}
|
|
@@ -796,9 +796,9 @@ function Vr(r) {
|
|
|
796
796
|
if (!(r.primaryColor in r.colors))
|
|
797
797
|
throw new Error($n);
|
|
798
798
|
if (typeof r.primaryShade == "object" && (!lr(r.primaryShade.dark) || !lr(r.primaryShade.light)))
|
|
799
|
-
throw new Error(
|
|
799
|
+
throw new Error(Br);
|
|
800
800
|
if (typeof r.primaryShade == "number" && !lr(r.primaryShade))
|
|
801
|
-
throw new Error(
|
|
801
|
+
throw new Error(Br);
|
|
802
802
|
}
|
|
803
803
|
function vn(r, t) {
|
|
804
804
|
var n;
|
|
@@ -842,14 +842,14 @@ function wn() {
|
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function dr(r) {
|
|
846
846
|
return Object.entries(r).map(([t, e]) => `${t}: ${e};`).join("");
|
|
847
847
|
}
|
|
848
848
|
function D(r, t) {
|
|
849
849
|
return (Array.isArray(r) ? r : [r]).reduce((n, a) => `${a}{${n}}`, t);
|
|
850
850
|
}
|
|
851
851
|
function Cn(r, t) {
|
|
852
|
-
const e =
|
|
852
|
+
const e = dr(r.variables), n = e ? D(t, e) : "", a = dr(r.dark), o = dr(r.light), i = a ? D(t === ":host" ? `${t}([data-mantine-color-scheme="dark"])` : `${t}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(t === ":host" ? `${t}([data-mantine-color-scheme="light"])` : `${t}[data-mantine-color-scheme="light"]`, o) : "";
|
|
853
853
|
return `${n}${i}${s}`;
|
|
854
854
|
}
|
|
855
855
|
function xn({ color: r, theme: t, autoContrast: e }) {
|
|
@@ -1045,7 +1045,7 @@ function Nn({ theme: r, generator: t }) {
|
|
|
1045
1045
|
const e = rt(r), n = t == null ? void 0 : t(r);
|
|
1046
1046
|
return n ? vr(e, n) : e;
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1048
|
+
const fr = rt(kr);
|
|
1049
1049
|
function Tn(r) {
|
|
1050
1050
|
const t = {
|
|
1051
1051
|
variables: {},
|
|
@@ -1053,11 +1053,11 @@ function Tn(r) {
|
|
|
1053
1053
|
dark: {}
|
|
1054
1054
|
};
|
|
1055
1055
|
return M(r.variables).forEach((e) => {
|
|
1056
|
-
|
|
1056
|
+
fr.variables[e] !== r.variables[e] && (t.variables[e] = r.variables[e]);
|
|
1057
1057
|
}), M(r.light).forEach((e) => {
|
|
1058
|
-
|
|
1058
|
+
fr.light[e] !== r.light[e] && (t.light[e] = r.light[e]);
|
|
1059
1059
|
}), M(r.dark).forEach((e) => {
|
|
1060
|
-
|
|
1060
|
+
fr.dark[e] !== r.dark[e] && (t.dark[e] = r.dark[e]);
|
|
1061
1061
|
}), t;
|
|
1062
1062
|
}
|
|
1063
1063
|
function Mn(r) {
|
|
@@ -1089,43 +1089,43 @@ function Rn() {
|
|
|
1089
1089
|
t.length > 1 && typeof t[0] == "string" && t[0].toLowerCase().includes("extra attributes from the server") && typeof t[1] == "string" && t[1].toLowerCase().includes("data-mantine-color-scheme") || r(...t);
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function H(r, t) {
|
|
1093
1093
|
var a, o;
|
|
1094
1094
|
const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = r !== "auto" ? r : e ? "dark" : "light";
|
|
1095
1095
|
(o = t()) == null || o.setAttribute("data-mantine-color-scheme", n);
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function _n({
|
|
1098
1098
|
manager: r,
|
|
1099
1099
|
defaultColorScheme: t,
|
|
1100
1100
|
getRootElement: e,
|
|
1101
1101
|
forceColorScheme: n
|
|
1102
1102
|
}) {
|
|
1103
|
-
const a =
|
|
1103
|
+
const a = W(null), [o, i] = tr(() => r.get(t)), s = n || o, l = Lr(
|
|
1104
1104
|
(u) => {
|
|
1105
|
-
n || (
|
|
1105
|
+
n || (H(u, e), i(u), r.set(u));
|
|
1106
1106
|
},
|
|
1107
1107
|
[r.set, s, n]
|
|
1108
|
-
),
|
|
1109
|
-
i(t),
|
|
1108
|
+
), d = Lr(() => {
|
|
1109
|
+
i(t), H(t, e), r.clear();
|
|
1110
1110
|
}, [r.clear, t]);
|
|
1111
1111
|
return A(() => (r.subscribe(l), r.unsubscribe), [r.subscribe, r.unsubscribe]), Qr(() => {
|
|
1112
|
-
|
|
1112
|
+
H(r.get(t), e);
|
|
1113
1113
|
}, []), A(() => {
|
|
1114
|
-
var
|
|
1114
|
+
var f;
|
|
1115
1115
|
if (n)
|
|
1116
|
-
return
|
|
1116
|
+
return H(n, e), () => {
|
|
1117
1117
|
};
|
|
1118
|
-
n === void 0 &&
|
|
1118
|
+
n === void 0 && H(o, e), typeof window < "u" && "matchMedia" in window && (a.current = window.matchMedia("(prefers-color-scheme: dark)"));
|
|
1119
1119
|
const u = (m) => {
|
|
1120
|
-
o === "auto" &&
|
|
1120
|
+
o === "auto" && H(m.matches ? "dark" : "light", e);
|
|
1121
1121
|
};
|
|
1122
|
-
return (
|
|
1122
|
+
return (f = a.current) == null || f.addEventListener("change", u), () => {
|
|
1123
1123
|
var m;
|
|
1124
1124
|
return (m = a.current) == null ? void 0 : m.removeEventListener("change", u);
|
|
1125
1125
|
};
|
|
1126
|
-
}, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme:
|
|
1126
|
+
}, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: d };
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function Pn({
|
|
1129
1129
|
respectReducedMotion: r,
|
|
1130
1130
|
getRootElement: t
|
|
1131
1131
|
}) {
|
|
@@ -1145,23 +1145,23 @@ function nt({
|
|
|
1145
1145
|
withCssVariables: i = !0,
|
|
1146
1146
|
cssVariablesSelector: s = ":root",
|
|
1147
1147
|
classNamesPrefix: l = "mantine",
|
|
1148
|
-
colorSchemeManager:
|
|
1148
|
+
colorSchemeManager: d = hn(),
|
|
1149
1149
|
defaultColorScheme: u = "light",
|
|
1150
|
-
getRootElement:
|
|
1150
|
+
getRootElement: f = () => document.documentElement,
|
|
1151
1151
|
cssVariablesResolver: m,
|
|
1152
|
-
forceColorScheme:
|
|
1153
|
-
stylesTransform:
|
|
1152
|
+
forceColorScheme: g,
|
|
1153
|
+
stylesTransform: y,
|
|
1154
1154
|
env: $
|
|
1155
1155
|
}) {
|
|
1156
|
-
const { colorScheme: h, setColorScheme: C, clearColorScheme: x } =
|
|
1156
|
+
const { colorScheme: h, setColorScheme: C, clearColorScheme: x } = _n({
|
|
1157
1157
|
defaultColorScheme: u,
|
|
1158
|
-
forceColorScheme:
|
|
1159
|
-
manager:
|
|
1160
|
-
getRootElement:
|
|
1158
|
+
forceColorScheme: g,
|
|
1159
|
+
manager: d,
|
|
1160
|
+
getRootElement: f
|
|
1161
1161
|
});
|
|
1162
|
-
return
|
|
1162
|
+
return Pn({
|
|
1163
1163
|
respectReducedMotion: (r == null ? void 0 : r.respectReducedMotion) || !1,
|
|
1164
|
-
getRootElement:
|
|
1164
|
+
getRootElement: f
|
|
1165
1165
|
}), /* @__PURE__ */ p(
|
|
1166
1166
|
Zr.Provider,
|
|
1167
1167
|
{
|
|
@@ -1169,13 +1169,13 @@ function nt({
|
|
|
1169
1169
|
colorScheme: h,
|
|
1170
1170
|
setColorScheme: C,
|
|
1171
1171
|
clearColorScheme: x,
|
|
1172
|
-
getRootElement:
|
|
1172
|
+
getRootElement: f,
|
|
1173
1173
|
classNamesPrefix: l,
|
|
1174
1174
|
getStyleNonce: e,
|
|
1175
1175
|
cssVariablesResolver: m,
|
|
1176
1176
|
cssVariablesSelector: s,
|
|
1177
1177
|
withStaticClasses: n,
|
|
1178
|
-
stylesTransform:
|
|
1178
|
+
stylesTransform: y,
|
|
1179
1179
|
env: $
|
|
1180
1180
|
},
|
|
1181
1181
|
children: /* @__PURE__ */ z(Jr, { theme: r, children: [
|
|
@@ -1199,7 +1199,7 @@ const Ln = {
|
|
|
1199
1199
|
never: "mantine-focus-never"
|
|
1200
1200
|
};
|
|
1201
1201
|
function En({ theme: r, options: t, unstyled: e }) {
|
|
1202
|
-
return
|
|
1202
|
+
return B(
|
|
1203
1203
|
(t == null ? void 0 : t.focusable) && !e && (r.focusClassName || Ln[r.focusRing]),
|
|
1204
1204
|
(t == null ? void 0 : t.active) && !e && r.activeClassName
|
|
1205
1205
|
);
|
|
@@ -1230,10 +1230,10 @@ function Fr({
|
|
|
1230
1230
|
function On({ rootSelector: r, selector: t, className: e }) {
|
|
1231
1231
|
return r === t ? e : void 0;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function In({ selector: r, classes: t, unstyled: e }) {
|
|
1234
1234
|
return e ? void 0 : t[r];
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Bn({
|
|
1237
1237
|
themeName: r,
|
|
1238
1238
|
classNamesPrefix: t,
|
|
1239
1239
|
selector: e,
|
|
@@ -1278,23 +1278,23 @@ function Fn({
|
|
|
1278
1278
|
classes: i,
|
|
1279
1279
|
unstyled: s,
|
|
1280
1280
|
className: l,
|
|
1281
|
-
rootSelector:
|
|
1281
|
+
rootSelector: d,
|
|
1282
1282
|
props: u,
|
|
1283
|
-
stylesCtx:
|
|
1283
|
+
stylesCtx: f,
|
|
1284
1284
|
withStaticClasses: m,
|
|
1285
|
-
headless:
|
|
1286
|
-
transformedStyles:
|
|
1285
|
+
headless: g,
|
|
1286
|
+
transformedStyles: y
|
|
1287
1287
|
}) {
|
|
1288
|
-
return
|
|
1289
|
-
En({ theme: r, options: t, unstyled: s ||
|
|
1290
|
-
Vn({ theme: r, themeName: e, selector: n, props: u, stylesCtx:
|
|
1288
|
+
return B(
|
|
1289
|
+
En({ theme: r, options: t, unstyled: s || g }),
|
|
1290
|
+
Vn({ theme: r, themeName: e, selector: n, props: u, stylesCtx: f }),
|
|
1291
1291
|
jn({ options: t, classes: i, selector: n, unstyled: s }),
|
|
1292
|
-
Fr({ selector: n, stylesCtx:
|
|
1293
|
-
Fr({ selector: n, stylesCtx:
|
|
1294
|
-
An({ selector: n, stylesCtx:
|
|
1295
|
-
On({ rootSelector:
|
|
1296
|
-
|
|
1297
|
-
m && !
|
|
1292
|
+
Fr({ selector: n, stylesCtx: f, theme: r, classNames: o, props: u }),
|
|
1293
|
+
Fr({ selector: n, stylesCtx: f, theme: r, classNames: y, props: u }),
|
|
1294
|
+
An({ selector: n, stylesCtx: f, options: t, props: u, theme: r }),
|
|
1295
|
+
On({ rootSelector: d, selector: n, className: l }),
|
|
1296
|
+
In({ selector: n, classes: i, unstyled: s || g }),
|
|
1297
|
+
m && !g && Bn({
|
|
1298
1298
|
themeName: e,
|
|
1299
1299
|
classNamesPrefix: a,
|
|
1300
1300
|
selector: n,
|
|
@@ -1303,7 +1303,7 @@ function Fn({
|
|
|
1303
1303
|
t == null ? void 0 : t.className
|
|
1304
1304
|
);
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Hn({
|
|
1307
1307
|
theme: r,
|
|
1308
1308
|
themeName: t,
|
|
1309
1309
|
props: e,
|
|
@@ -1313,7 +1313,7 @@ function Wn({
|
|
|
1313
1313
|
return t.map(
|
|
1314
1314
|
(o) => {
|
|
1315
1315
|
var i;
|
|
1316
|
-
return
|
|
1316
|
+
return gr({
|
|
1317
1317
|
theme: r,
|
|
1318
1318
|
styles: (i = r.components[o]) == null ? void 0 : i.styles,
|
|
1319
1319
|
props: e,
|
|
@@ -1328,7 +1328,7 @@ function br({ style: r, theme: t }) {
|
|
|
1328
1328
|
{}
|
|
1329
1329
|
) : typeof r == "function" ? r(t) : r ?? {};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Wn(r) {
|
|
1332
1332
|
return r.reduce((t, e) => (e && Object.keys(e).forEach((n) => {
|
|
1333
1333
|
t[n] = { ...t[n], ...Sr(e[n]) };
|
|
1334
1334
|
}), t), {});
|
|
@@ -1344,11 +1344,11 @@ function zn({
|
|
|
1344
1344
|
headless: s
|
|
1345
1345
|
}) {
|
|
1346
1346
|
var l;
|
|
1347
|
-
return (l =
|
|
1347
|
+
return (l = Wn([
|
|
1348
1348
|
s ? {} : t == null ? void 0 : t(e, n, a),
|
|
1349
|
-
...i.map((
|
|
1350
|
-
var u,
|
|
1351
|
-
return (m = (
|
|
1349
|
+
...i.map((d) => {
|
|
1350
|
+
var u, f, m;
|
|
1351
|
+
return (m = (f = (u = e.components) == null ? void 0 : u[d]) == null ? void 0 : f.vars) == null ? void 0 : m.call(f, e, n, a);
|
|
1352
1352
|
}),
|
|
1353
1353
|
r == null ? void 0 : r(e, n, a)
|
|
1354
1354
|
])) == null ? void 0 : l[o];
|
|
@@ -1363,16 +1363,16 @@ function Yn({
|
|
|
1363
1363
|
rootSelector: i,
|
|
1364
1364
|
styles: s,
|
|
1365
1365
|
style: l,
|
|
1366
|
-
vars:
|
|
1366
|
+
vars: d,
|
|
1367
1367
|
varsResolver: u,
|
|
1368
|
-
headless:
|
|
1368
|
+
headless: f,
|
|
1369
1369
|
withStylesTransform: m
|
|
1370
1370
|
}) {
|
|
1371
1371
|
return {
|
|
1372
|
-
...!m &&
|
|
1373
|
-
...!m &&
|
|
1374
|
-
...!m &&
|
|
1375
|
-
...zn({ theme: r, props: a, stylesCtx: o, vars:
|
|
1372
|
+
...!m && Hn({ theme: r, themeName: t, props: a, stylesCtx: o, selector: e }),
|
|
1373
|
+
...!m && gr({ theme: r, styles: s, props: a, stylesCtx: o })[e],
|
|
1374
|
+
...!m && gr({ theme: r, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
|
|
1375
|
+
...zn({ theme: r, props: a, stylesCtx: o, vars: d, varsResolver: u, selector: e, themeName: t, headless: f }),
|
|
1376
1376
|
...i === e ? br({ style: l, theme: r }) : null,
|
|
1377
1377
|
...br({ style: n == null ? void 0 : n.style, theme: r })
|
|
1378
1378
|
};
|
|
@@ -1383,12 +1383,12 @@ function Gn({ props: r, stylesCtx: t, themeName: e }) {
|
|
|
1383
1383
|
return {
|
|
1384
1384
|
getTransformedStyles: (s) => a ? [
|
|
1385
1385
|
...s.map(
|
|
1386
|
-
(
|
|
1386
|
+
(d) => a(d, { props: r, theme: n, ctx: t })
|
|
1387
1387
|
),
|
|
1388
1388
|
...e.map(
|
|
1389
|
-
(
|
|
1389
|
+
(d) => {
|
|
1390
1390
|
var u;
|
|
1391
|
-
return a((u = n.components[
|
|
1391
|
+
return a((u = n.components[d]) == null ? void 0 : u.styles, { props: r, theme: n, ctx: t });
|
|
1392
1392
|
}
|
|
1393
1393
|
)
|
|
1394
1394
|
].filter(Boolean) : [],
|
|
@@ -1405,11 +1405,11 @@ function Q({
|
|
|
1405
1405
|
rootSelector: i = "root",
|
|
1406
1406
|
unstyled: s,
|
|
1407
1407
|
classNames: l,
|
|
1408
|
-
styles:
|
|
1408
|
+
styles: d,
|
|
1409
1409
|
vars: u,
|
|
1410
|
-
varsResolver:
|
|
1410
|
+
varsResolver: f
|
|
1411
1411
|
}) {
|
|
1412
|
-
const m = V(),
|
|
1412
|
+
const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(r) ? r : [r]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
|
|
1413
1413
|
props: e,
|
|
1414
1414
|
stylesCtx: n,
|
|
1415
1415
|
themeName: h
|
|
@@ -1420,7 +1420,7 @@ function Q({
|
|
|
1420
1420
|
options: w,
|
|
1421
1421
|
themeName: h,
|
|
1422
1422
|
selector: v,
|
|
1423
|
-
classNamesPrefix:
|
|
1423
|
+
classNamesPrefix: g,
|
|
1424
1424
|
classNames: l,
|
|
1425
1425
|
classes: t,
|
|
1426
1426
|
unstyled: s,
|
|
@@ -1428,9 +1428,9 @@ function Q({
|
|
|
1428
1428
|
rootSelector: i,
|
|
1429
1429
|
props: e,
|
|
1430
1430
|
stylesCtx: n,
|
|
1431
|
-
withStaticClasses:
|
|
1431
|
+
withStaticClasses: y,
|
|
1432
1432
|
headless: $,
|
|
1433
|
-
transformedStyles: x([w == null ? void 0 : w.styles,
|
|
1433
|
+
transformedStyles: x([w == null ? void 0 : w.styles, d])
|
|
1434
1434
|
}),
|
|
1435
1435
|
style: Yn({
|
|
1436
1436
|
theme: m,
|
|
@@ -1440,44 +1440,81 @@ function Q({
|
|
|
1440
1440
|
props: e,
|
|
1441
1441
|
stylesCtx: n,
|
|
1442
1442
|
rootSelector: i,
|
|
1443
|
-
styles:
|
|
1443
|
+
styles: d,
|
|
1444
1444
|
style: o,
|
|
1445
1445
|
vars: u,
|
|
1446
|
-
varsResolver:
|
|
1446
|
+
varsResolver: f,
|
|
1447
1447
|
headless: $,
|
|
1448
1448
|
withStylesTransform: C
|
|
1449
1449
|
})
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
|
-
|
|
1452
|
+
const Dn = ({
|
|
1453
|
+
defaultColorScheme: r,
|
|
1454
|
+
localStorageKey: t,
|
|
1455
|
+
forceColorScheme: e
|
|
1456
|
+
}) => e ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${e}');` : `try {
|
|
1457
|
+
var _colorScheme = window.localStorage.getItem("${t}");
|
|
1458
|
+
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${r}";
|
|
1459
|
+
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1460
|
+
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
1461
|
+
} catch (e) {}
|
|
1462
|
+
`;
|
|
1463
|
+
function _e({
|
|
1464
|
+
defaultColorScheme: r = "light",
|
|
1465
|
+
localStorageKey: t = "mantine-color-scheme-value",
|
|
1466
|
+
forceColorScheme: e,
|
|
1467
|
+
...n
|
|
1468
|
+
}) {
|
|
1469
|
+
const a = ["light", "dark", "auto"].includes(r) ? r : "light";
|
|
1470
|
+
return /* @__PURE__ */ p(
|
|
1471
|
+
"script",
|
|
1472
|
+
{
|
|
1473
|
+
...n,
|
|
1474
|
+
"data-mantine-script": !0,
|
|
1475
|
+
dangerouslySetInnerHTML: {
|
|
1476
|
+
__html: Dn({
|
|
1477
|
+
defaultColorScheme: a,
|
|
1478
|
+
localStorageKey: t,
|
|
1479
|
+
forceColorScheme: e
|
|
1480
|
+
})
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1485
|
+
function I(r, t, e) {
|
|
1453
1486
|
var i;
|
|
1454
1487
|
const n = V(), a = (i = n.components[r]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
|
|
1455
1488
|
return { ...t, ...o, ...Sr(e) };
|
|
1456
1489
|
}
|
|
1490
|
+
const Pe = {
|
|
1491
|
+
suppressHydrationWarning: !0,
|
|
1492
|
+
"data-mantine-color-scheme": "light"
|
|
1493
|
+
};
|
|
1457
1494
|
function ur(r) {
|
|
1458
1495
|
return M(r).reduce(
|
|
1459
1496
|
(t, e) => r[e] !== void 0 ? `${t}${Dt(e)}:${r[e]};` : t,
|
|
1460
1497
|
""
|
|
1461
1498
|
).trim();
|
|
1462
1499
|
}
|
|
1463
|
-
function
|
|
1500
|
+
function Xn({ selector: r, styles: t, media: e, container: n }) {
|
|
1464
1501
|
const a = t ? ur(t) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${r}{${ur(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
|
|
1465
1502
|
(s) => `@container ${s.query}{${r}{${ur(s.styles)}}}`
|
|
1466
1503
|
) : [];
|
|
1467
1504
|
return `${a ? `${r}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
|
|
1468
1505
|
}
|
|
1469
|
-
function
|
|
1506
|
+
function Un(r) {
|
|
1470
1507
|
const t = Cr();
|
|
1471
1508
|
return /* @__PURE__ */ p(
|
|
1472
1509
|
"style",
|
|
1473
1510
|
{
|
|
1474
1511
|
"data-mantine-styles": "inline",
|
|
1475
1512
|
nonce: t == null ? void 0 : t(),
|
|
1476
|
-
dangerouslySetInnerHTML: { __html:
|
|
1513
|
+
dangerouslySetInnerHTML: { __html: Xn(r) }
|
|
1477
1514
|
}
|
|
1478
1515
|
);
|
|
1479
1516
|
}
|
|
1480
|
-
function
|
|
1517
|
+
function qn(r) {
|
|
1481
1518
|
const {
|
|
1482
1519
|
m: t,
|
|
1483
1520
|
mx: e,
|
|
@@ -1487,12 +1524,12 @@ function Un(r) {
|
|
|
1487
1524
|
ml: i,
|
|
1488
1525
|
mr: s,
|
|
1489
1526
|
me: l,
|
|
1490
|
-
ms:
|
|
1527
|
+
ms: d,
|
|
1491
1528
|
p: u,
|
|
1492
|
-
px:
|
|
1529
|
+
px: f,
|
|
1493
1530
|
py: m,
|
|
1494
|
-
pt:
|
|
1495
|
-
pb:
|
|
1531
|
+
pt: g,
|
|
1532
|
+
pb: y,
|
|
1496
1533
|
pl: $,
|
|
1497
1534
|
pr: h,
|
|
1498
1535
|
pe: C,
|
|
@@ -1507,8 +1544,8 @@ function Un(r) {
|
|
|
1507
1544
|
lts: or,
|
|
1508
1545
|
ta: ar,
|
|
1509
1546
|
lh: pt,
|
|
1510
|
-
fs:
|
|
1511
|
-
tt:
|
|
1547
|
+
fs: gt,
|
|
1548
|
+
tt: yt,
|
|
1512
1549
|
td: bt,
|
|
1513
1550
|
w: ht,
|
|
1514
1551
|
miw: $t,
|
|
@@ -1522,18 +1559,18 @@ function Un(r) {
|
|
|
1522
1559
|
bga: Tt,
|
|
1523
1560
|
pos: Mt,
|
|
1524
1561
|
top: Rt,
|
|
1525
|
-
left:
|
|
1526
|
-
bottom:
|
|
1562
|
+
left: _t,
|
|
1563
|
+
bottom: Pt,
|
|
1527
1564
|
right: Lt,
|
|
1528
1565
|
inset: Et,
|
|
1529
1566
|
display: At,
|
|
1530
1567
|
flex: Ot,
|
|
1531
|
-
hiddenFrom:
|
|
1532
|
-
visibleFrom:
|
|
1568
|
+
hiddenFrom: It,
|
|
1569
|
+
visibleFrom: Bt,
|
|
1533
1570
|
lightHidden: Vt,
|
|
1534
1571
|
darkHidden: jt,
|
|
1535
1572
|
sx: Ft,
|
|
1536
|
-
...
|
|
1573
|
+
...Ht
|
|
1537
1574
|
} = r;
|
|
1538
1575
|
return { styleProps: Sr({
|
|
1539
1576
|
m: t,
|
|
@@ -1544,12 +1581,12 @@ function Un(r) {
|
|
|
1544
1581
|
ml: i,
|
|
1545
1582
|
mr: s,
|
|
1546
1583
|
me: l,
|
|
1547
|
-
ms:
|
|
1584
|
+
ms: d,
|
|
1548
1585
|
p: u,
|
|
1549
|
-
px:
|
|
1586
|
+
px: f,
|
|
1550
1587
|
py: m,
|
|
1551
|
-
pt:
|
|
1552
|
-
pb:
|
|
1588
|
+
pt: g,
|
|
1589
|
+
pb: y,
|
|
1553
1590
|
pl: $,
|
|
1554
1591
|
pr: h,
|
|
1555
1592
|
pe: C,
|
|
@@ -1564,8 +1601,8 @@ function Un(r) {
|
|
|
1564
1601
|
lts: or,
|
|
1565
1602
|
ta: ar,
|
|
1566
1603
|
lh: pt,
|
|
1567
|
-
fs:
|
|
1568
|
-
tt:
|
|
1604
|
+
fs: gt,
|
|
1605
|
+
tt: yt,
|
|
1569
1606
|
td: bt,
|
|
1570
1607
|
w: ht,
|
|
1571
1608
|
miw: $t,
|
|
@@ -1579,20 +1616,20 @@ function Un(r) {
|
|
|
1579
1616
|
bga: Tt,
|
|
1580
1617
|
pos: Mt,
|
|
1581
1618
|
top: Rt,
|
|
1582
|
-
left:
|
|
1583
|
-
bottom:
|
|
1619
|
+
left: _t,
|
|
1620
|
+
bottom: Pt,
|
|
1584
1621
|
right: Lt,
|
|
1585
1622
|
inset: Et,
|
|
1586
1623
|
display: At,
|
|
1587
1624
|
flex: Ot,
|
|
1588
|
-
hiddenFrom:
|
|
1589
|
-
visibleFrom:
|
|
1625
|
+
hiddenFrom: It,
|
|
1626
|
+
visibleFrom: Bt,
|
|
1590
1627
|
lightHidden: Vt,
|
|
1591
1628
|
darkHidden: jt,
|
|
1592
1629
|
sx: Ft
|
|
1593
|
-
}), rest:
|
|
1630
|
+
}), rest: Ht };
|
|
1594
1631
|
}
|
|
1595
|
-
const
|
|
1632
|
+
const Qn = {
|
|
1596
1633
|
m: { type: "spacing", property: "margin" },
|
|
1597
1634
|
mt: { type: "spacing", property: "marginTop" },
|
|
1598
1635
|
mb: { type: "spacing", property: "marginBottom" },
|
|
@@ -1647,11 +1684,11 @@ function Tr(r, t) {
|
|
|
1647
1684
|
const e = q({ color: r, theme: t });
|
|
1648
1685
|
return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
|
|
1649
1686
|
}
|
|
1650
|
-
function
|
|
1687
|
+
function Kn(r, t) {
|
|
1651
1688
|
const e = q({ color: r, theme: t });
|
|
1652
1689
|
return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tr(r, t);
|
|
1653
1690
|
}
|
|
1654
|
-
function
|
|
1691
|
+
function Zn(r, t) {
|
|
1655
1692
|
if (typeof r == "number")
|
|
1656
1693
|
return c(r);
|
|
1657
1694
|
if (typeof r == "string") {
|
|
@@ -1661,31 +1698,31 @@ function Kn(r, t) {
|
|
|
1661
1698
|
}
|
|
1662
1699
|
return r;
|
|
1663
1700
|
}
|
|
1664
|
-
const
|
|
1701
|
+
const Hr = {
|
|
1665
1702
|
text: "var(--mantine-font-family)",
|
|
1666
1703
|
mono: "var(--mantine-font-family-monospace)",
|
|
1667
1704
|
monospace: "var(--mantine-font-family-monospace)",
|
|
1668
1705
|
heading: "var(--mantine-font-family-headings)",
|
|
1669
1706
|
headings: "var(--mantine-font-family-headings)"
|
|
1670
1707
|
};
|
|
1671
|
-
function
|
|
1672
|
-
return typeof r == "string" && r in
|
|
1708
|
+
function Jn(r) {
|
|
1709
|
+
return typeof r == "string" && r in Hr ? Hr[r] : r;
|
|
1673
1710
|
}
|
|
1674
|
-
const
|
|
1675
|
-
function
|
|
1676
|
-
return typeof r == "string" && r in t.fontSizes ? `var(--mantine-font-size-${r})` : typeof r == "string" &&
|
|
1711
|
+
const re = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
1712
|
+
function te(r, t) {
|
|
1713
|
+
return typeof r == "string" && r in t.fontSizes ? `var(--mantine-font-size-${r})` : typeof r == "string" && re.includes(r) ? `var(--mantine-${r}-font-size)` : typeof r == "number" || typeof r == "string" ? c(r) : r;
|
|
1677
1714
|
}
|
|
1678
|
-
function
|
|
1715
|
+
function ne(r) {
|
|
1679
1716
|
return r;
|
|
1680
1717
|
}
|
|
1681
|
-
const
|
|
1682
|
-
function
|
|
1683
|
-
return typeof r == "string" && r in t.lineHeights ? `var(--mantine-line-height-${r})` : typeof r == "string" &&
|
|
1718
|
+
const ee = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
1719
|
+
function oe(r, t) {
|
|
1720
|
+
return typeof r == "string" && r in t.lineHeights ? `var(--mantine-line-height-${r})` : typeof r == "string" && ee.includes(r) ? `var(--mantine-${r}-line-height)` : r;
|
|
1684
1721
|
}
|
|
1685
|
-
function
|
|
1722
|
+
function ae(r) {
|
|
1686
1723
|
return typeof r == "number" ? c(r) : r;
|
|
1687
1724
|
}
|
|
1688
|
-
function
|
|
1725
|
+
function ie(r, t) {
|
|
1689
1726
|
if (typeof r == "number")
|
|
1690
1727
|
return c(r);
|
|
1691
1728
|
if (typeof r == "string") {
|
|
@@ -1699,63 +1736,63 @@ function ae(r, t) {
|
|
|
1699
1736
|
}
|
|
1700
1737
|
const mr = {
|
|
1701
1738
|
color: Tr,
|
|
1702
|
-
textColor:
|
|
1703
|
-
fontSize:
|
|
1704
|
-
spacing:
|
|
1705
|
-
identity:
|
|
1706
|
-
size:
|
|
1707
|
-
lineHeight:
|
|
1708
|
-
fontFamily:
|
|
1709
|
-
border:
|
|
1739
|
+
textColor: Kn,
|
|
1740
|
+
fontSize: te,
|
|
1741
|
+
spacing: ie,
|
|
1742
|
+
identity: ne,
|
|
1743
|
+
size: ae,
|
|
1744
|
+
lineHeight: oe,
|
|
1745
|
+
fontFamily: Jn,
|
|
1746
|
+
border: Zn
|
|
1710
1747
|
};
|
|
1711
|
-
function
|
|
1748
|
+
function Wr(r) {
|
|
1712
1749
|
return r.replace("(min-width: ", "").replace("em)", "");
|
|
1713
1750
|
}
|
|
1714
|
-
function
|
|
1751
|
+
function se({
|
|
1715
1752
|
media: r,
|
|
1716
1753
|
...t
|
|
1717
1754
|
}) {
|
|
1718
|
-
const n = Object.keys(r).sort((a, o) => Number(
|
|
1755
|
+
const n = Object.keys(r).sort((a, o) => Number(Wr(a)) - Number(Wr(o))).map((a) => ({ query: a, styles: r[a] }));
|
|
1719
1756
|
return { ...t, media: n };
|
|
1720
1757
|
}
|
|
1721
|
-
function
|
|
1758
|
+
function ce(r) {
|
|
1722
1759
|
if (typeof r != "object" || r === null)
|
|
1723
1760
|
return !1;
|
|
1724
1761
|
const t = Object.keys(r);
|
|
1725
1762
|
return !(t.length === 1 && t[0] === "base");
|
|
1726
1763
|
}
|
|
1727
|
-
function
|
|
1764
|
+
function le(r) {
|
|
1728
1765
|
return typeof r == "object" && r !== null ? "base" in r ? r.base : void 0 : r;
|
|
1729
1766
|
}
|
|
1730
|
-
function
|
|
1767
|
+
function de(r) {
|
|
1731
1768
|
return typeof r == "object" && r !== null ? M(r).filter((t) => t !== "base") : [];
|
|
1732
1769
|
}
|
|
1733
1770
|
function fe(r, t) {
|
|
1734
1771
|
return typeof r == "object" && r !== null && t in r ? r[t] : r;
|
|
1735
1772
|
}
|
|
1736
|
-
function
|
|
1773
|
+
function ue({
|
|
1737
1774
|
styleProps: r,
|
|
1738
1775
|
data: t,
|
|
1739
1776
|
theme: e
|
|
1740
1777
|
}) {
|
|
1741
|
-
return
|
|
1778
|
+
return se(
|
|
1742
1779
|
M(r).reduce(
|
|
1743
1780
|
(n, a) => {
|
|
1744
1781
|
if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
|
|
1745
1782
|
return n;
|
|
1746
|
-
const o = t[a], i = Array.isArray(o.property) ? o.property : [o.property], s =
|
|
1747
|
-
if (!
|
|
1748
|
-
return i.forEach((
|
|
1749
|
-
n.inlineStyles[
|
|
1783
|
+
const o = t[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(r[a]);
|
|
1784
|
+
if (!ce(r[a]))
|
|
1785
|
+
return i.forEach((d) => {
|
|
1786
|
+
n.inlineStyles[d] = mr[o.type](s, e);
|
|
1750
1787
|
}), n;
|
|
1751
1788
|
n.hasResponsiveStyles = !0;
|
|
1752
|
-
const l =
|
|
1753
|
-
return i.forEach((
|
|
1754
|
-
s && (n.styles[
|
|
1755
|
-
const
|
|
1756
|
-
n.media[
|
|
1757
|
-
...n.media[
|
|
1758
|
-
[
|
|
1789
|
+
const l = de(r[a]);
|
|
1790
|
+
return i.forEach((d) => {
|
|
1791
|
+
s && (n.styles[d] = mr[o.type](s, e)), l.forEach((u) => {
|
|
1792
|
+
const f = `(min-width: ${e.breakpoints[u]})`;
|
|
1793
|
+
n.media[f] = {
|
|
1794
|
+
...n.media[f],
|
|
1795
|
+
[d]: mr[o.type](
|
|
1759
1796
|
fe(r[a], u),
|
|
1760
1797
|
e
|
|
1761
1798
|
)
|
|
@@ -1772,13 +1809,13 @@ function de({
|
|
|
1772
1809
|
)
|
|
1773
1810
|
);
|
|
1774
1811
|
}
|
|
1775
|
-
function
|
|
1812
|
+
function me() {
|
|
1776
1813
|
return `__m__-${Yt().replace(/:/g, "")}`;
|
|
1777
1814
|
}
|
|
1778
1815
|
function et(r) {
|
|
1779
1816
|
return r.startsWith("data-") ? r : `data-${r}`;
|
|
1780
1817
|
}
|
|
1781
|
-
function
|
|
1818
|
+
function pe(r) {
|
|
1782
1819
|
return Object.keys(r).reduce((t, e) => {
|
|
1783
1820
|
const n = r[e];
|
|
1784
1821
|
return n === void 0 || n === "" || n === !1 || n === null || (t[et(e)] = r[e]), t;
|
|
@@ -1788,7 +1825,7 @@ function ot(r) {
|
|
|
1788
1825
|
return r ? typeof r == "string" ? { [et(r)]: !0 } : Array.isArray(r) ? [...r].reduce(
|
|
1789
1826
|
(t, e) => ({ ...t, ...ot(e) }),
|
|
1790
1827
|
{}
|
|
1791
|
-
) :
|
|
1828
|
+
) : pe(r) : null;
|
|
1792
1829
|
}
|
|
1793
1830
|
function hr(r, t) {
|
|
1794
1831
|
return Array.isArray(r) ? [...r].reduce(
|
|
@@ -1796,7 +1833,7 @@ function hr(r, t) {
|
|
|
1796
1833
|
{}
|
|
1797
1834
|
) : typeof r == "function" ? r(t) : r ?? {};
|
|
1798
1835
|
}
|
|
1799
|
-
function
|
|
1836
|
+
function ge({
|
|
1800
1837
|
theme: r,
|
|
1801
1838
|
style: t,
|
|
1802
1839
|
vars: e,
|
|
@@ -1805,7 +1842,7 @@ function pe({
|
|
|
1805
1842
|
const a = hr(t, r), o = hr(e, r);
|
|
1806
1843
|
return { ...a, ...o, ...n };
|
|
1807
1844
|
}
|
|
1808
|
-
const at =
|
|
1845
|
+
const at = _(
|
|
1809
1846
|
({
|
|
1810
1847
|
component: r,
|
|
1811
1848
|
style: t,
|
|
@@ -1816,28 +1853,28 @@ const at = P(
|
|
|
1816
1853
|
size: i,
|
|
1817
1854
|
hiddenFrom: s,
|
|
1818
1855
|
visibleFrom: l,
|
|
1819
|
-
lightHidden:
|
|
1856
|
+
lightHidden: d,
|
|
1820
1857
|
darkHidden: u,
|
|
1821
|
-
renderRoot:
|
|
1858
|
+
renderRoot: f,
|
|
1822
1859
|
__size: m,
|
|
1823
|
-
...
|
|
1824
|
-
},
|
|
1860
|
+
...g
|
|
1861
|
+
}, y) => {
|
|
1825
1862
|
var S;
|
|
1826
|
-
const $ = V(), h = r || "div", { styleProps: C, rest: x } =
|
|
1863
|
+
const $ = V(), h = r || "div", { styleProps: C, rest: x } = qn(g), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = me(), b = ue({
|
|
1827
1864
|
styleProps: C,
|
|
1828
1865
|
theme: $,
|
|
1829
|
-
data:
|
|
1866
|
+
data: Qn
|
|
1830
1867
|
}), k = {
|
|
1831
|
-
ref:
|
|
1832
|
-
style:
|
|
1868
|
+
ref: y,
|
|
1869
|
+
style: ge({
|
|
1833
1870
|
theme: $,
|
|
1834
1871
|
style: t,
|
|
1835
1872
|
vars: e,
|
|
1836
1873
|
styleProps: b.inlineStyles
|
|
1837
1874
|
}),
|
|
1838
|
-
className:
|
|
1875
|
+
className: B(n, w, {
|
|
1839
1876
|
[L]: b.hasResponsiveStyles,
|
|
1840
|
-
"mantine-light-hidden":
|
|
1877
|
+
"mantine-light-hidden": d,
|
|
1841
1878
|
"mantine-dark-hidden": u,
|
|
1842
1879
|
[`mantine-hidden-from-${s}`]: s,
|
|
1843
1880
|
[`mantine-visible-from-${l}`]: l
|
|
@@ -1850,14 +1887,14 @@ const at = P(
|
|
|
1850
1887
|
};
|
|
1851
1888
|
return /* @__PURE__ */ z(pr, { children: [
|
|
1852
1889
|
b.hasResponsiveStyles && /* @__PURE__ */ p(
|
|
1853
|
-
|
|
1890
|
+
Un,
|
|
1854
1891
|
{
|
|
1855
1892
|
selector: `.${L}`,
|
|
1856
1893
|
styles: b.styles,
|
|
1857
1894
|
media: b.media
|
|
1858
1895
|
}
|
|
1859
1896
|
),
|
|
1860
|
-
typeof
|
|
1897
|
+
typeof f == "function" ? f(k) : /* @__PURE__ */ p(h, { ...k })
|
|
1861
1898
|
] });
|
|
1862
1899
|
}
|
|
1863
1900
|
);
|
|
@@ -1867,16 +1904,16 @@ function it(r) {
|
|
|
1867
1904
|
return r;
|
|
1868
1905
|
}
|
|
1869
1906
|
function Mr(r) {
|
|
1870
|
-
const t =
|
|
1907
|
+
const t = _(r);
|
|
1871
1908
|
return t.extend = it, t.withProps = (e) => {
|
|
1872
|
-
const n =
|
|
1909
|
+
const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
|
|
1873
1910
|
return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
|
|
1874
1911
|
}, t;
|
|
1875
1912
|
}
|
|
1876
1913
|
function st(r) {
|
|
1877
|
-
const t =
|
|
1914
|
+
const t = _(r);
|
|
1878
1915
|
return t.withProps = (e) => {
|
|
1879
|
-
const n =
|
|
1916
|
+
const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
|
|
1880
1917
|
return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
|
|
1881
1918
|
}, t.extend = it, t;
|
|
1882
1919
|
}
|
|
@@ -1885,21 +1922,21 @@ const ye = {
|
|
|
1885
1922
|
__staticSelector: "UnstyledButton"
|
|
1886
1923
|
}, Rr = st(
|
|
1887
1924
|
(r, t) => {
|
|
1888
|
-
const e =
|
|
1925
|
+
const e = I("UnstyledButton", ye, r), {
|
|
1889
1926
|
className: n,
|
|
1890
1927
|
component: a = "button",
|
|
1891
1928
|
__staticSelector: o,
|
|
1892
1929
|
unstyled: i,
|
|
1893
1930
|
classNames: s,
|
|
1894
1931
|
styles: l,
|
|
1895
|
-
style:
|
|
1932
|
+
style: d,
|
|
1896
1933
|
...u
|
|
1897
|
-
} = e,
|
|
1934
|
+
} = e, f = Q({
|
|
1898
1935
|
name: o,
|
|
1899
1936
|
props: e,
|
|
1900
1937
|
classes: ct,
|
|
1901
1938
|
className: n,
|
|
1902
|
-
style:
|
|
1939
|
+
style: d,
|
|
1903
1940
|
classNames: s,
|
|
1904
1941
|
styles: l,
|
|
1905
1942
|
unstyled: i
|
|
@@ -1907,7 +1944,7 @@ const ye = {
|
|
|
1907
1944
|
return /* @__PURE__ */ p(
|
|
1908
1945
|
N,
|
|
1909
1946
|
{
|
|
1910
|
-
...
|
|
1947
|
+
...f("root", { focusable: !0 }),
|
|
1911
1948
|
component: a,
|
|
1912
1949
|
ref: t,
|
|
1913
1950
|
type: a === "button" ? "button" : void 0,
|
|
@@ -2042,7 +2079,7 @@ const X = (r) => ({
|
|
|
2042
2079
|
"pre-exiting": "out",
|
|
2043
2080
|
"pre-entering": "out"
|
|
2044
2081
|
};
|
|
2045
|
-
function
|
|
2082
|
+
function be({
|
|
2046
2083
|
transition: r,
|
|
2047
2084
|
state: t,
|
|
2048
2085
|
duration: e,
|
|
@@ -2066,7 +2103,7 @@ function ge({
|
|
|
2066
2103
|
...r[zr[t]]
|
|
2067
2104
|
};
|
|
2068
2105
|
}
|
|
2069
|
-
function
|
|
2106
|
+
function he({
|
|
2070
2107
|
duration: r,
|
|
2071
2108
|
exitDuration: t,
|
|
2072
2109
|
timingFunction: e,
|
|
@@ -2076,13 +2113,13 @@ function be({
|
|
|
2076
2113
|
onEntered: i,
|
|
2077
2114
|
onExited: s,
|
|
2078
2115
|
enterDelay: l,
|
|
2079
|
-
exitDelay:
|
|
2116
|
+
exitDelay: d
|
|
2080
2117
|
}) {
|
|
2081
|
-
const u = V(),
|
|
2118
|
+
const u = V(), f = Jt(), m = u.respectReducedMotion ? f : !1, [g, y] = tr(m ? 0 : r), [$, h] = tr(n ? "entered" : "exited"), C = W(-1), x = W(-1), v = W(-1), w = (b) => {
|
|
2082
2119
|
const k = b ? a : o, S = b ? i : s;
|
|
2083
2120
|
window.clearTimeout(C.current);
|
|
2084
2121
|
const E = m ? 0 : b ? r : t;
|
|
2085
|
-
|
|
2122
|
+
y(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
|
|
2086
2123
|
Gt.flushSync(() => {
|
|
2087
2124
|
h(b ? "pre-entering" : "pre-exiting");
|
|
2088
2125
|
}), v.current = requestAnimationFrame(() => {
|
|
@@ -2092,7 +2129,7 @@ function be({
|
|
|
2092
2129
|
});
|
|
2093
2130
|
});
|
|
2094
2131
|
}, L = (b) => {
|
|
2095
|
-
if (window.clearTimeout(x.current), typeof (b ? l :
|
|
2132
|
+
if (window.clearTimeout(x.current), typeof (b ? l : d) != "number") {
|
|
2096
2133
|
w(b);
|
|
2097
2134
|
return;
|
|
2098
2135
|
}
|
|
@@ -2100,7 +2137,7 @@ function be({
|
|
|
2100
2137
|
() => {
|
|
2101
2138
|
w(b);
|
|
2102
2139
|
},
|
|
2103
|
-
b ? l :
|
|
2140
|
+
b ? l : d
|
|
2104
2141
|
);
|
|
2105
2142
|
};
|
|
2106
2143
|
return Zt(() => {
|
|
@@ -2111,7 +2148,7 @@ function be({
|
|
|
2111
2148
|
},
|
|
2112
2149
|
[]
|
|
2113
2150
|
), {
|
|
2114
|
-
transitionDuration:
|
|
2151
|
+
transitionDuration: g,
|
|
2115
2152
|
transitionStatus: $,
|
|
2116
2153
|
transitionTimingFunction: e || "ease"
|
|
2117
2154
|
};
|
|
@@ -2126,27 +2163,27 @@ function lt({
|
|
|
2126
2163
|
timingFunction: i = "ease",
|
|
2127
2164
|
onExit: s,
|
|
2128
2165
|
onEntered: l,
|
|
2129
|
-
onEnter:
|
|
2166
|
+
onEnter: d,
|
|
2130
2167
|
onExited: u,
|
|
2131
|
-
enterDelay:
|
|
2168
|
+
enterDelay: f,
|
|
2132
2169
|
exitDelay: m
|
|
2133
2170
|
}) {
|
|
2134
|
-
const
|
|
2171
|
+
const g = ln(), { transitionDuration: y, transitionStatus: $, transitionTimingFunction: h } = he({
|
|
2135
2172
|
mounted: a,
|
|
2136
2173
|
exitDuration: n,
|
|
2137
2174
|
duration: e,
|
|
2138
2175
|
timingFunction: i,
|
|
2139
2176
|
onExit: s,
|
|
2140
2177
|
onEntered: l,
|
|
2141
|
-
onEnter:
|
|
2178
|
+
onEnter: d,
|
|
2142
2179
|
onExited: u,
|
|
2143
|
-
enterDelay:
|
|
2180
|
+
enterDelay: f,
|
|
2144
2181
|
exitDelay: m
|
|
2145
2182
|
});
|
|
2146
|
-
return
|
|
2147
|
-
|
|
2183
|
+
return y === 0 || g === "test" ? a ? /* @__PURE__ */ p(pr, { children: o({}) }) : r ? o({ display: "none" }) : null : $ === "exited" ? r ? o({ display: "none" }) : null : /* @__PURE__ */ p(pr, { children: o(
|
|
2184
|
+
be({
|
|
2148
2185
|
transition: t,
|
|
2149
|
-
duration:
|
|
2186
|
+
duration: y,
|
|
2150
2187
|
state: $,
|
|
2151
2188
|
timingFunction: h
|
|
2152
2189
|
})
|
|
@@ -2154,46 +2191,46 @@ function lt({
|
|
|
2154
2191
|
}
|
|
2155
2192
|
lt.displayName = "@mantine/core/Transition";
|
|
2156
2193
|
var T = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
|
|
2157
|
-
const
|
|
2194
|
+
const dt = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.barsLoader, r), ...t, ref: e, children: [
|
|
2158
2195
|
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2159
2196
|
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2160
2197
|
/* @__PURE__ */ p("span", { className: T.bar })
|
|
2161
2198
|
] }));
|
|
2162
|
-
|
|
2163
|
-
const
|
|
2199
|
+
dt.displayName = "@mantine/core/Bars";
|
|
2200
|
+
const ft = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.dotsLoader, r), ...t, ref: e, children: [
|
|
2164
2201
|
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2165
2202
|
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2166
2203
|
/* @__PURE__ */ p("span", { className: T.dot })
|
|
2167
2204
|
] }));
|
|
2168
|
-
|
|
2169
|
-
const ut =
|
|
2205
|
+
ft.displayName = "@mantine/core/Dots";
|
|
2206
|
+
const ut = _(({ className: r, ...t }, e) => /* @__PURE__ */ p(N, { component: "span", className: B(T.ovalLoader, r), ...t, ref: e }));
|
|
2170
2207
|
ut.displayName = "@mantine/core/Oval";
|
|
2171
2208
|
const mt = {
|
|
2172
|
-
bars:
|
|
2209
|
+
bars: dt,
|
|
2173
2210
|
oval: ut,
|
|
2174
|
-
dots:
|
|
2175
|
-
},
|
|
2211
|
+
dots: ft
|
|
2212
|
+
}, $e = {
|
|
2176
2213
|
loaders: mt,
|
|
2177
2214
|
type: "oval"
|
|
2178
|
-
},
|
|
2215
|
+
}, ve = (r, { size: t, color: e }) => ({
|
|
2179
2216
|
root: {
|
|
2180
2217
|
"--loader-size": O(t, "loader-size"),
|
|
2181
|
-
"--loader-color": e ?
|
|
2218
|
+
"--loader-color": e ? yr(e, r) : void 0
|
|
2182
2219
|
}
|
|
2183
2220
|
}), er = Mr((r, t) => {
|
|
2184
|
-
const e =
|
|
2221
|
+
const e = I("Loader", $e, r), {
|
|
2185
2222
|
size: n,
|
|
2186
2223
|
color: a,
|
|
2187
2224
|
type: o,
|
|
2188
2225
|
vars: i,
|
|
2189
2226
|
className: s,
|
|
2190
2227
|
style: l,
|
|
2191
|
-
classNames:
|
|
2228
|
+
classNames: d,
|
|
2192
2229
|
styles: u,
|
|
2193
|
-
unstyled:
|
|
2230
|
+
unstyled: f,
|
|
2194
2231
|
loaders: m,
|
|
2195
|
-
variant:
|
|
2196
|
-
children:
|
|
2232
|
+
variant: g,
|
|
2233
|
+
children: y,
|
|
2197
2234
|
...$
|
|
2198
2235
|
} = e, h = Q({
|
|
2199
2236
|
name: "Loader",
|
|
@@ -2201,19 +2238,19 @@ const mt = {
|
|
|
2201
2238
|
classes: T,
|
|
2202
2239
|
className: s,
|
|
2203
2240
|
style: l,
|
|
2204
|
-
classNames:
|
|
2241
|
+
classNames: d,
|
|
2205
2242
|
styles: u,
|
|
2206
|
-
unstyled:
|
|
2243
|
+
unstyled: f,
|
|
2207
2244
|
vars: i,
|
|
2208
|
-
varsResolver:
|
|
2245
|
+
varsResolver: ve
|
|
2209
2246
|
});
|
|
2210
|
-
return
|
|
2247
|
+
return y ? /* @__PURE__ */ p(N, { ...h("root"), ref: t, ...$, children: y }) : /* @__PURE__ */ p(
|
|
2211
2248
|
N,
|
|
2212
2249
|
{
|
|
2213
2250
|
...h("root"),
|
|
2214
2251
|
ref: t,
|
|
2215
2252
|
component: m[o],
|
|
2216
|
-
variant:
|
|
2253
|
+
variant: g,
|
|
2217
2254
|
size: n,
|
|
2218
2255
|
...$
|
|
2219
2256
|
}
|
|
@@ -2225,22 +2262,22 @@ er.displayName = "@mantine/core/Loader";
|
|
|
2225
2262
|
var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
2226
2263
|
const Yr = {
|
|
2227
2264
|
orientation: "horizontal"
|
|
2228
|
-
},
|
|
2265
|
+
}, Se = (r, { borderWidth: t }) => ({
|
|
2229
2266
|
group: { "--button-border-width": c(t) }
|
|
2230
|
-
}),
|
|
2231
|
-
const e =
|
|
2267
|
+
}), _r = Mr((r, t) => {
|
|
2268
|
+
const e = I("ButtonGroup", Yr, r), {
|
|
2232
2269
|
className: n,
|
|
2233
2270
|
style: a,
|
|
2234
2271
|
classNames: o,
|
|
2235
2272
|
styles: i,
|
|
2236
2273
|
unstyled: s,
|
|
2237
2274
|
orientation: l,
|
|
2238
|
-
vars:
|
|
2275
|
+
vars: d,
|
|
2239
2276
|
borderWidth: u,
|
|
2240
|
-
variant:
|
|
2277
|
+
variant: f,
|
|
2241
2278
|
mod: m,
|
|
2242
|
-
...
|
|
2243
|
-
} =
|
|
2279
|
+
...g
|
|
2280
|
+
} = I("ButtonGroup", Yr, r), y = Q({
|
|
2244
2281
|
name: "ButtonGroup",
|
|
2245
2282
|
props: e,
|
|
2246
2283
|
classes: Y,
|
|
@@ -2249,25 +2286,25 @@ const Yr = {
|
|
|
2249
2286
|
classNames: o,
|
|
2250
2287
|
styles: i,
|
|
2251
2288
|
unstyled: s,
|
|
2252
|
-
vars:
|
|
2253
|
-
varsResolver:
|
|
2289
|
+
vars: d,
|
|
2290
|
+
varsResolver: Se,
|
|
2254
2291
|
rootSelector: "group"
|
|
2255
2292
|
});
|
|
2256
2293
|
return /* @__PURE__ */ p(
|
|
2257
2294
|
N,
|
|
2258
2295
|
{
|
|
2259
|
-
...
|
|
2296
|
+
...y("group"),
|
|
2260
2297
|
ref: t,
|
|
2261
|
-
variant:
|
|
2298
|
+
variant: f,
|
|
2262
2299
|
mod: [{ "data-orientation": l }, m],
|
|
2263
2300
|
role: "group",
|
|
2264
|
-
...
|
|
2301
|
+
...g
|
|
2265
2302
|
}
|
|
2266
2303
|
);
|
|
2267
2304
|
});
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
const Gr = {},
|
|
2305
|
+
_r.classes = Y;
|
|
2306
|
+
_r.displayName = "@mantine/core/ButtonGroup";
|
|
2307
|
+
const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
|
|
2271
2308
|
const s = r.variantColorResolver({
|
|
2272
2309
|
color: e || r.primaryColor,
|
|
2273
2310
|
theme: r,
|
|
@@ -2286,20 +2323,20 @@ const Gr = {}, Se = (r, { radius: t, color: e, gradient: n, variant: a, autoCont
|
|
|
2286
2323
|
"--section-bd": e || a ? s.border : void 0
|
|
2287
2324
|
}
|
|
2288
2325
|
};
|
|
2289
|
-
},
|
|
2290
|
-
const e =
|
|
2326
|
+
}, Pr = Mr((r, t) => {
|
|
2327
|
+
const e = I("ButtonGroupSection", Gr, r), {
|
|
2291
2328
|
className: n,
|
|
2292
2329
|
style: a,
|
|
2293
2330
|
classNames: o,
|
|
2294
2331
|
styles: i,
|
|
2295
2332
|
unstyled: s,
|
|
2296
2333
|
vars: l,
|
|
2297
|
-
variant:
|
|
2334
|
+
variant: d,
|
|
2298
2335
|
gradient: u,
|
|
2299
|
-
radius:
|
|
2336
|
+
radius: f,
|
|
2300
2337
|
autoContrast: m,
|
|
2301
|
-
...
|
|
2302
|
-
} =
|
|
2338
|
+
...g
|
|
2339
|
+
} = I("ButtonGroupSection", Gr, r), y = Q({
|
|
2303
2340
|
name: "ButtonGroupSection",
|
|
2304
2341
|
props: e,
|
|
2305
2342
|
classes: Y,
|
|
@@ -2309,19 +2346,19 @@ const Gr = {}, Se = (r, { radius: t, color: e, gradient: n, variant: a, autoCont
|
|
|
2309
2346
|
styles: i,
|
|
2310
2347
|
unstyled: s,
|
|
2311
2348
|
vars: l,
|
|
2312
|
-
varsResolver:
|
|
2349
|
+
varsResolver: we,
|
|
2313
2350
|
rootSelector: "groupSection"
|
|
2314
2351
|
});
|
|
2315
|
-
return /* @__PURE__ */ p(N, { ...
|
|
2352
|
+
return /* @__PURE__ */ p(N, { ...y("groupSection"), ref: t, variant: d, ...g });
|
|
2316
2353
|
});
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
const
|
|
2354
|
+
Pr.classes = Y;
|
|
2355
|
+
Pr.displayName = "@mantine/core/ButtonGroupSection";
|
|
2356
|
+
const Ce = {
|
|
2320
2357
|
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
|
|
2321
2358
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
2322
2359
|
common: { transformOrigin: "center" },
|
|
2323
2360
|
transitionProperty: "transform, opacity"
|
|
2324
|
-
},
|
|
2361
|
+
}, xe = {}, ke = (r, { radius: t, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
|
|
2325
2362
|
const l = r.variantColorResolver({
|
|
2326
2363
|
color: e || r.primaryColor,
|
|
2327
2364
|
theme: r,
|
|
@@ -2344,19 +2381,19 @@ const we = {
|
|
|
2344
2381
|
}
|
|
2345
2382
|
};
|
|
2346
2383
|
}, K = st((r, t) => {
|
|
2347
|
-
const e =
|
|
2384
|
+
const e = I("Button", xe, r), {
|
|
2348
2385
|
style: n,
|
|
2349
2386
|
vars: a,
|
|
2350
2387
|
className: o,
|
|
2351
2388
|
color: i,
|
|
2352
2389
|
disabled: s,
|
|
2353
2390
|
children: l,
|
|
2354
|
-
leftSection:
|
|
2391
|
+
leftSection: d,
|
|
2355
2392
|
rightSection: u,
|
|
2356
|
-
fullWidth:
|
|
2393
|
+
fullWidth: f,
|
|
2357
2394
|
variant: m,
|
|
2358
|
-
radius:
|
|
2359
|
-
loading:
|
|
2395
|
+
radius: g,
|
|
2396
|
+
loading: y,
|
|
2360
2397
|
loaderProps: $,
|
|
2361
2398
|
gradient: h,
|
|
2362
2399
|
classNames: C,
|
|
@@ -2376,21 +2413,21 @@ const we = {
|
|
|
2376
2413
|
styles: x,
|
|
2377
2414
|
unstyled: v,
|
|
2378
2415
|
vars: a,
|
|
2379
|
-
varsResolver:
|
|
2380
|
-
}), E = !!
|
|
2416
|
+
varsResolver: ke
|
|
2417
|
+
}), E = !!d, or = !!u;
|
|
2381
2418
|
return /* @__PURE__ */ z(
|
|
2382
2419
|
Rr,
|
|
2383
2420
|
{
|
|
2384
2421
|
ref: t,
|
|
2385
|
-
...S("root", { active: !s && !
|
|
2422
|
+
...S("root", { active: !s && !y && !w }),
|
|
2386
2423
|
unstyled: v,
|
|
2387
2424
|
variant: m,
|
|
2388
|
-
disabled: s ||
|
|
2425
|
+
disabled: s || y,
|
|
2389
2426
|
mod: [
|
|
2390
2427
|
{
|
|
2391
2428
|
disabled: s || w,
|
|
2392
|
-
loading:
|
|
2393
|
-
block:
|
|
2429
|
+
loading: y,
|
|
2430
|
+
block: f,
|
|
2394
2431
|
"with-left-section": E,
|
|
2395
2432
|
"with-right-section": or
|
|
2396
2433
|
},
|
|
@@ -2398,7 +2435,7 @@ const we = {
|
|
|
2398
2435
|
],
|
|
2399
2436
|
...k,
|
|
2400
2437
|
children: [
|
|
2401
|
-
/* @__PURE__ */ p(lt, { mounted: !!
|
|
2438
|
+
/* @__PURE__ */ p(lt, { mounted: !!y, transition: Ce, duration: 150, children: (ar) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: ar }), "aria-hidden": !0, children: /* @__PURE__ */ p(
|
|
2402
2439
|
er,
|
|
2403
2440
|
{
|
|
2404
2441
|
color: "var(--button-color)",
|
|
@@ -2407,8 +2444,8 @@ const we = {
|
|
|
2407
2444
|
}
|
|
2408
2445
|
) }) }),
|
|
2409
2446
|
/* @__PURE__ */ z("span", { ...S("inner"), children: [
|
|
2410
|
-
|
|
2411
|
-
/* @__PURE__ */ p(N, { component: "span", mod: { loading:
|
|
2447
|
+
d && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "left" }, children: d }),
|
|
2448
|
+
/* @__PURE__ */ p(N, { component: "span", mod: { loading: y }, ...S("label"), children: l }),
|
|
2412
2449
|
u && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "right" }, children: u })
|
|
2413
2450
|
] })
|
|
2414
2451
|
]
|
|
@@ -2417,13 +2454,15 @@ const we = {
|
|
|
2417
2454
|
});
|
|
2418
2455
|
K.classes = Y;
|
|
2419
2456
|
K.displayName = "@mantine/core/Button";
|
|
2420
|
-
K.Group =
|
|
2421
|
-
K.GroupSection =
|
|
2422
|
-
function
|
|
2457
|
+
K.Group = _r;
|
|
2458
|
+
K.GroupSection = Pr;
|
|
2459
|
+
function Le({ children: r }) {
|
|
2423
2460
|
return /* @__PURE__ */ p(nt, { children: r });
|
|
2424
2461
|
}
|
|
2425
|
-
const
|
|
2462
|
+
const Ee = (r) => /* @__PURE__ */ p(K, { ...r });
|
|
2426
2463
|
export {
|
|
2427
|
-
|
|
2428
|
-
|
|
2464
|
+
_e as ColorSchemeScript,
|
|
2465
|
+
Le as MantineProvider,
|
|
2466
|
+
Ee as TestButton,
|
|
2467
|
+
Pe as mantineHtmlProps
|
|
2429
2468
|
};
|