@kvell-group/ui 1.6.7 → 1.6.9
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/assets/Button.css +1 -1
- package/dist/components/Button/Button.js +353 -346
- package/package.json +1 -1
package/README.md
CHANGED
|
Binary file
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_17bsd_1{background-color:green;border-radius:12px}._inner_17bsd_6{background-color:red}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as f, jsxs as j, Fragment as
|
|
2
|
-
import { r as
|
|
3
|
-
import { useState as Q, useRef as M, useEffect as z, useId as
|
|
4
|
-
import
|
|
5
|
-
import '../../assets/Button.css';function
|
|
6
|
-
return t.replace(/[A-Z]/g, (
|
|
1
|
+
import { jsx as f, jsxs as j, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { r as R, u as k, h as er, i as or, j as ar, l as ir, k as tt, a as sr, p as dt, m as cr, n as pr, o as mr } from "../../MantineThemeProvider-CyD9KzqB.js";
|
|
3
|
+
import { useState as Q, useRef as M, useEffect as z, useId as ur, forwardRef as P } from "react";
|
|
4
|
+
import lr from "react-dom";
|
|
5
|
+
import '../../assets/Button.css';function fr(t) {
|
|
6
|
+
return t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
return Object.keys(t).reduce((
|
|
8
|
+
function rt(t) {
|
|
9
|
+
return Object.keys(t).reduce((r, n) => (t[n] !== void 0 && (r[n] = t[n]), r), {});
|
|
10
10
|
}
|
|
11
11
|
function yt(t) {
|
|
12
12
|
if (typeof t == "number")
|
|
@@ -14,14 +14,14 @@ function yt(t) {
|
|
|
14
14
|
if (typeof t == "string") {
|
|
15
15
|
if (t.startsWith("calc(") || t.startsWith("var(") || t.includes(" ") && t.trim() !== "")
|
|
16
16
|
return !0;
|
|
17
|
-
const
|
|
18
|
-
return t.trim().split(/\s+/).every((e) =>
|
|
17
|
+
const r = /^[+-]?[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|%)?$/;
|
|
18
|
+
return t.trim().split(/\s+/).every((e) => r.test(e));
|
|
19
19
|
}
|
|
20
20
|
return !1;
|
|
21
21
|
}
|
|
22
|
-
function A(t,
|
|
22
|
+
function A(t, r = "size", n = !0) {
|
|
23
23
|
if (t !== void 0)
|
|
24
|
-
return yt(t) ?
|
|
24
|
+
return yt(t) ? n ? R(t) : t : `var(--${r}-${t})`;
|
|
25
25
|
}
|
|
26
26
|
function gt(t) {
|
|
27
27
|
return t === void 0 ? "var(--mantine-radius-default)" : A(t, "mantine-radius");
|
|
@@ -29,153 +29,153 @@ function gt(t) {
|
|
|
29
29
|
function G(t) {
|
|
30
30
|
return A(t, "mantine-font-size");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function dr(t, r) {
|
|
33
33
|
try {
|
|
34
|
-
return t.addEventListener("change",
|
|
34
|
+
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
35
35
|
} catch {
|
|
36
|
-
return t.addListener(
|
|
36
|
+
return t.addListener(r), () => t.removeListener(r);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function yr(t, r) {
|
|
40
40
|
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function gr(t, r, { getInitialValueInEffect: n } = {
|
|
43
43
|
getInitialValueInEffect: !0
|
|
44
44
|
}) {
|
|
45
45
|
const [e, o] = Q(
|
|
46
|
-
|
|
46
|
+
n ? r : yr(t)
|
|
47
47
|
), a = M(null);
|
|
48
48
|
return z(() => {
|
|
49
49
|
if ("matchMedia" in window)
|
|
50
|
-
return a.current = window.matchMedia(t), o(a.current.matches),
|
|
50
|
+
return a.current = window.matchMedia(t), o(a.current.matches), dr(a.current, (i) => o(i.matches));
|
|
51
51
|
}, [t]), e;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const
|
|
53
|
+
function hr(t, r) {
|
|
54
|
+
const n = M(!1);
|
|
55
55
|
z(
|
|
56
56
|
() => () => {
|
|
57
|
-
|
|
57
|
+
n.current = !1;
|
|
58
58
|
},
|
|
59
59
|
[]
|
|
60
60
|
), z(() => {
|
|
61
|
-
if (
|
|
61
|
+
if (n.current)
|
|
62
62
|
return t();
|
|
63
|
-
|
|
64
|
-
},
|
|
63
|
+
n.current = !0;
|
|
64
|
+
}, r);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function br(t, r) {
|
|
67
|
+
return gr("(prefers-reduced-motion: reduce)", t, r);
|
|
68
68
|
}
|
|
69
69
|
function ht(t) {
|
|
70
|
-
var
|
|
70
|
+
var r, n, e = "";
|
|
71
71
|
if (typeof t == "string" || typeof t == "number") e += t;
|
|
72
72
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
73
73
|
var o = t.length;
|
|
74
|
-
for (
|
|
75
|
-
} else for (
|
|
74
|
+
for (r = 0; r < o; r++) t[r] && (n = ht(t[r])) && (e && (e += " "), e += n);
|
|
75
|
+
} else for (n in t) t[n] && (e && (e += " "), e += n);
|
|
76
76
|
return e;
|
|
77
77
|
}
|
|
78
78
|
function L() {
|
|
79
|
-
for (var t,
|
|
79
|
+
for (var t, r, n = 0, e = "", o = arguments.length; n < o; n++) (t = arguments[n]) && (r = ht(t)) && (e && (e += " "), e += r);
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
function
|
|
84
|
-
const
|
|
85
|
-
return t.forEach((
|
|
86
|
-
Object.entries(
|
|
87
|
-
|
|
82
|
+
const Sr = {};
|
|
83
|
+
function vr(t) {
|
|
84
|
+
const r = {};
|
|
85
|
+
return t.forEach((n) => {
|
|
86
|
+
Object.entries(n).forEach(([e, o]) => {
|
|
87
|
+
r[e] ? r[e] = L(r[e], o) : r[e] = o;
|
|
88
88
|
});
|
|
89
|
-
}),
|
|
89
|
+
}), r;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const a = (Array.isArray(
|
|
93
|
-
(i) => typeof i == "function" ? i(t,
|
|
91
|
+
function nt({ theme: t, classNames: r, props: n, stylesCtx: e }) {
|
|
92
|
+
const a = (Array.isArray(r) ? r : [r]).map(
|
|
93
|
+
(i) => typeof i == "function" ? i(t, n, e) : i || Sr
|
|
94
94
|
);
|
|
95
|
-
return
|
|
95
|
+
return vr(a);
|
|
96
96
|
}
|
|
97
|
-
function K({ theme: t, styles:
|
|
98
|
-
return (Array.isArray(
|
|
97
|
+
function K({ theme: t, styles: r, props: n, stylesCtx: e }) {
|
|
98
|
+
return (Array.isArray(r) ? r : [r]).reduce((a, i) => typeof i == "function" ? { ...a, ...i(t, n, e) } : { ...a, ...i }, {});
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const Nr = {
|
|
101
101
|
always: "mantine-focus-always",
|
|
102
102
|
auto: "mantine-focus-auto",
|
|
103
103
|
never: "mantine-focus-never"
|
|
104
104
|
};
|
|
105
|
-
function
|
|
105
|
+
function xr({ theme: t, options: r, unstyled: n }) {
|
|
106
106
|
return L(
|
|
107
|
-
(
|
|
108
|
-
(
|
|
107
|
+
(r == null ? void 0 : r.focusable) && !n && (t.focusClassName || Nr[t.focusRing]),
|
|
108
|
+
(r == null ? void 0 : r.active) && !n && t.activeClassName
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function wr({
|
|
112
112
|
selector: t,
|
|
113
|
-
stylesCtx:
|
|
114
|
-
options:
|
|
113
|
+
stylesCtx: r,
|
|
114
|
+
options: n,
|
|
115
115
|
props: e,
|
|
116
116
|
theme: o
|
|
117
117
|
}) {
|
|
118
|
-
return
|
|
118
|
+
return nt({
|
|
119
119
|
theme: o,
|
|
120
|
-
classNames:
|
|
121
|
-
props: (
|
|
122
|
-
stylesCtx:
|
|
120
|
+
classNames: n == null ? void 0 : n.classNames,
|
|
121
|
+
props: (n == null ? void 0 : n.props) || e,
|
|
122
|
+
stylesCtx: r
|
|
123
123
|
})[t];
|
|
124
124
|
}
|
|
125
125
|
function ct({
|
|
126
126
|
selector: t,
|
|
127
|
-
stylesCtx:
|
|
128
|
-
theme:
|
|
127
|
+
stylesCtx: r,
|
|
128
|
+
theme: n,
|
|
129
129
|
classNames: e,
|
|
130
130
|
props: o
|
|
131
131
|
}) {
|
|
132
|
-
return
|
|
132
|
+
return nt({ theme: n, classNames: e, props: o, stylesCtx: r })[t];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return t ===
|
|
134
|
+
function $r({ rootSelector: t, selector: r, className: n }) {
|
|
135
|
+
return t === r ? n : void 0;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function Tr({ selector: t, classes: r, unstyled: n }) {
|
|
138
|
+
return n ? void 0 : r[t];
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function _r({
|
|
141
141
|
themeName: t,
|
|
142
|
-
classNamesPrefix:
|
|
143
|
-
selector:
|
|
142
|
+
classNamesPrefix: r,
|
|
143
|
+
selector: n,
|
|
144
144
|
withStaticClass: e
|
|
145
145
|
}) {
|
|
146
|
-
return e === !1 ? [] : t.map((o) => `${
|
|
146
|
+
return e === !1 ? [] : t.map((o) => `${r}-${o}-${n}`);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Rr({
|
|
149
149
|
themeName: t,
|
|
150
|
-
theme:
|
|
151
|
-
selector:
|
|
150
|
+
theme: r,
|
|
151
|
+
selector: n,
|
|
152
152
|
props: e,
|
|
153
153
|
stylesCtx: o
|
|
154
154
|
}) {
|
|
155
155
|
return t.map(
|
|
156
156
|
(a) => {
|
|
157
157
|
var i, s;
|
|
158
|
-
return (s =
|
|
159
|
-
theme:
|
|
160
|
-
classNames: (i =
|
|
158
|
+
return (s = nt({
|
|
159
|
+
theme: r,
|
|
160
|
+
classNames: (i = r.components[a]) == null ? void 0 : i.classNames,
|
|
161
161
|
props: e,
|
|
162
162
|
stylesCtx: o
|
|
163
|
-
})) == null ? void 0 : s[
|
|
163
|
+
})) == null ? void 0 : s[n];
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Pr({
|
|
168
168
|
options: t,
|
|
169
|
-
classes:
|
|
170
|
-
selector:
|
|
169
|
+
classes: r,
|
|
170
|
+
selector: n,
|
|
171
171
|
unstyled: e
|
|
172
172
|
}) {
|
|
173
|
-
return t != null && t.variant && !e ?
|
|
173
|
+
return t != null && t.variant && !e ? r[`${n}--${t.variant}`] : void 0;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Cr({
|
|
176
176
|
theme: t,
|
|
177
|
-
options:
|
|
178
|
-
themeName:
|
|
177
|
+
options: r,
|
|
178
|
+
themeName: n,
|
|
179
179
|
selector: e,
|
|
180
180
|
classNamesPrefix: o,
|
|
181
181
|
classNames: a,
|
|
@@ -190,57 +190,57 @@ function Bn({
|
|
|
190
190
|
transformedStyles: d
|
|
191
191
|
}) {
|
|
192
192
|
return L(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
xr({ theme: t, options: r, unstyled: s || g }),
|
|
194
|
+
Rr({ theme: t, themeName: n, selector: e, props: m, stylesCtx: u }),
|
|
195
|
+
Pr({ options: r, classes: i, selector: e, unstyled: s }),
|
|
196
196
|
ct({ selector: e, stylesCtx: u, theme: t, classNames: a, props: m }),
|
|
197
197
|
ct({ selector: e, stylesCtx: u, theme: t, classNames: d, props: m }),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
l && !g &&
|
|
202
|
-
themeName:
|
|
198
|
+
wr({ selector: e, stylesCtx: u, options: r, props: m, theme: t }),
|
|
199
|
+
$r({ rootSelector: c, selector: e, className: p }),
|
|
200
|
+
Tr({ selector: e, classes: i, unstyled: s || g }),
|
|
201
|
+
l && !g && _r({
|
|
202
|
+
themeName: n,
|
|
203
203
|
classNamesPrefix: o,
|
|
204
204
|
selector: e,
|
|
205
|
-
withStaticClass:
|
|
205
|
+
withStaticClass: r == null ? void 0 : r.withStaticClass
|
|
206
206
|
}),
|
|
207
|
-
|
|
207
|
+
r == null ? void 0 : r.className
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Br({
|
|
211
211
|
theme: t,
|
|
212
|
-
themeName:
|
|
213
|
-
props:
|
|
212
|
+
themeName: r,
|
|
213
|
+
props: n,
|
|
214
214
|
stylesCtx: e,
|
|
215
215
|
selector: o
|
|
216
216
|
}) {
|
|
217
|
-
return
|
|
217
|
+
return r.map(
|
|
218
218
|
(a) => {
|
|
219
219
|
var i;
|
|
220
220
|
return K({
|
|
221
221
|
theme: t,
|
|
222
222
|
styles: (i = t.components[a]) == null ? void 0 : i.styles,
|
|
223
|
-
props:
|
|
223
|
+
props: n,
|
|
224
224
|
stylesCtx: e
|
|
225
225
|
})[o];
|
|
226
226
|
}
|
|
227
227
|
).reduce((a, i) => ({ ...a, ...i }), {});
|
|
228
228
|
}
|
|
229
|
-
function Z({ style: t, theme:
|
|
229
|
+
function Z({ style: t, theme: r }) {
|
|
230
230
|
return Array.isArray(t) ? [...t].reduce(
|
|
231
|
-
(
|
|
231
|
+
(n, e) => ({ ...n, ...Z({ style: e, theme: r }) }),
|
|
232
232
|
{}
|
|
233
|
-
) : typeof t == "function" ? t(
|
|
233
|
+
) : typeof t == "function" ? t(r) : t ?? {};
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
return t.reduce((
|
|
237
|
-
|
|
238
|
-
}),
|
|
235
|
+
function Ar(t) {
|
|
236
|
+
return t.reduce((r, n) => (n && Object.keys(n).forEach((e) => {
|
|
237
|
+
r[e] = { ...r[e], ...rt(n[e]) };
|
|
238
|
+
}), r), {});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Or({
|
|
241
241
|
vars: t,
|
|
242
|
-
varsResolver:
|
|
243
|
-
theme:
|
|
242
|
+
varsResolver: r,
|
|
243
|
+
theme: n,
|
|
244
244
|
props: e,
|
|
245
245
|
stylesCtx: o,
|
|
246
246
|
selector: a,
|
|
@@ -248,19 +248,19 @@ function Ln({
|
|
|
248
248
|
headless: s
|
|
249
249
|
}) {
|
|
250
250
|
var p;
|
|
251
|
-
return (p =
|
|
252
|
-
s ? {} :
|
|
251
|
+
return (p = Ar([
|
|
252
|
+
s ? {} : r == null ? void 0 : r(n, e, o),
|
|
253
253
|
...i.map((c) => {
|
|
254
254
|
var m, u, l;
|
|
255
|
-
return (l = (u = (m =
|
|
255
|
+
return (l = (u = (m = n.components) == null ? void 0 : m[c]) == null ? void 0 : u.vars) == null ? void 0 : l.call(u, n, e, o);
|
|
256
256
|
}),
|
|
257
|
-
t == null ? void 0 : t(
|
|
257
|
+
t == null ? void 0 : t(n, e, o)
|
|
258
258
|
])) == null ? void 0 : p[a];
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Lr({
|
|
261
261
|
theme: t,
|
|
262
|
-
themeName:
|
|
263
|
-
selector:
|
|
262
|
+
themeName: r,
|
|
263
|
+
selector: n,
|
|
264
264
|
options: e,
|
|
265
265
|
props: o,
|
|
266
266
|
stylesCtx: a,
|
|
@@ -273,26 +273,26 @@ function Yn({
|
|
|
273
273
|
withStylesTransform: l
|
|
274
274
|
}) {
|
|
275
275
|
return {
|
|
276
|
-
...!l &&
|
|
277
|
-
...!l && K({ theme: t, styles: s, props: o, stylesCtx: a })[
|
|
278
|
-
...!l && K({ theme: t, styles: e == null ? void 0 : e.styles, props: (e == null ? void 0 : e.props) || o, stylesCtx: a })[
|
|
279
|
-
...
|
|
280
|
-
...i ===
|
|
276
|
+
...!l && Br({ theme: t, themeName: r, props: o, stylesCtx: a, selector: n }),
|
|
277
|
+
...!l && K({ theme: t, styles: s, props: o, stylesCtx: a })[n],
|
|
278
|
+
...!l && K({ theme: t, styles: e == null ? void 0 : e.styles, props: (e == null ? void 0 : e.props) || o, stylesCtx: a })[n],
|
|
279
|
+
...Or({ theme: t, props: o, stylesCtx: a, vars: c, varsResolver: m, selector: n, themeName: r, headless: u }),
|
|
280
|
+
...i === n ? Z({ style: p, theme: t }) : null,
|
|
281
281
|
...Z({ style: e == null ? void 0 : e.style, theme: t })
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Yr({ props: t, stylesCtx: r, themeName: n }) {
|
|
285
285
|
var i;
|
|
286
|
-
const e = k(), o = (i =
|
|
286
|
+
const e = k(), o = (i = er()) == null ? void 0 : i();
|
|
287
287
|
return {
|
|
288
288
|
getTransformedStyles: (s) => o ? [
|
|
289
289
|
...s.map(
|
|
290
|
-
(c) => o(c, { props: t, theme: e, ctx:
|
|
290
|
+
(c) => o(c, { props: t, theme: e, ctx: r })
|
|
291
291
|
),
|
|
292
|
-
...
|
|
292
|
+
...n.map(
|
|
293
293
|
(c) => {
|
|
294
294
|
var m;
|
|
295
|
-
return o((m = e.components[c]) == null ? void 0 : m.styles, { props: t, theme: e, ctx:
|
|
295
|
+
return o((m = e.components[c]) == null ? void 0 : m.styles, { props: t, theme: e, ctx: r });
|
|
296
296
|
}
|
|
297
297
|
)
|
|
298
298
|
].filter(Boolean) : [],
|
|
@@ -301,8 +301,8 @@ function En({ props: t, stylesCtx: n, themeName: r }) {
|
|
|
301
301
|
}
|
|
302
302
|
function F({
|
|
303
303
|
name: t,
|
|
304
|
-
classes:
|
|
305
|
-
props:
|
|
304
|
+
classes: r,
|
|
305
|
+
props: n,
|
|
306
306
|
stylesCtx: e,
|
|
307
307
|
className: o,
|
|
308
308
|
style: a,
|
|
@@ -313,35 +313,35 @@ function F({
|
|
|
313
313
|
vars: m,
|
|
314
314
|
varsResolver: u
|
|
315
315
|
}) {
|
|
316
|
-
const l = k(), g =
|
|
317
|
-
props:
|
|
316
|
+
const l = k(), g = or(), d = ar(), b = ir(), h = (Array.isArray(t) ? t : [t]).filter((S) => S), { withStylesTransform: x, getTransformedStyles: _ } = Yr({
|
|
317
|
+
props: n,
|
|
318
318
|
stylesCtx: e,
|
|
319
319
|
themeName: h
|
|
320
320
|
});
|
|
321
321
|
return (S, N) => ({
|
|
322
|
-
className:
|
|
322
|
+
className: Cr({
|
|
323
323
|
theme: l,
|
|
324
324
|
options: N,
|
|
325
325
|
themeName: h,
|
|
326
326
|
selector: S,
|
|
327
327
|
classNamesPrefix: g,
|
|
328
328
|
classNames: p,
|
|
329
|
-
classes:
|
|
329
|
+
classes: r,
|
|
330
330
|
unstyled: s,
|
|
331
331
|
className: o,
|
|
332
332
|
rootSelector: i,
|
|
333
|
-
props:
|
|
333
|
+
props: n,
|
|
334
334
|
stylesCtx: e,
|
|
335
335
|
withStaticClasses: d,
|
|
336
336
|
headless: b,
|
|
337
|
-
transformedStyles:
|
|
337
|
+
transformedStyles: _([N == null ? void 0 : N.styles, c])
|
|
338
338
|
}),
|
|
339
|
-
style:
|
|
339
|
+
style: Lr({
|
|
340
340
|
theme: l,
|
|
341
341
|
themeName: h,
|
|
342
342
|
selector: S,
|
|
343
343
|
options: N,
|
|
344
|
-
props:
|
|
344
|
+
props: n,
|
|
345
345
|
stylesCtx: e,
|
|
346
346
|
rootSelector: i,
|
|
347
347
|
styles: c,
|
|
@@ -353,38 +353,38 @@ function F({
|
|
|
353
353
|
})
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
function O(t,
|
|
356
|
+
function O(t, r, n) {
|
|
357
357
|
var i;
|
|
358
358
|
const e = k(), o = (i = e.components[t]) == null ? void 0 : i.defaultProps, a = typeof o == "function" ? o(e) : o;
|
|
359
|
-
return { ...
|
|
359
|
+
return { ...r, ...a, ...rt(n) };
|
|
360
360
|
}
|
|
361
361
|
function X(t) {
|
|
362
362
|
return tt(t).reduce(
|
|
363
|
-
(
|
|
363
|
+
(r, n) => t[n] !== void 0 ? `${r}${fr(n)}:${t[n]};` : r,
|
|
364
364
|
""
|
|
365
365
|
).trim();
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
const o =
|
|
367
|
+
function Er({ selector: t, styles: r, media: n, container: e }) {
|
|
368
|
+
const o = r ? X(r) : "", a = Array.isArray(n) ? n.map((s) => `@media${s.query}{${t}{${X(s.styles)}}}`) : [], i = Array.isArray(e) ? e.map(
|
|
369
369
|
(s) => `@container ${s.query}{${t}{${X(s.styles)}}}`
|
|
370
370
|
) : [];
|
|
371
371
|
return `${o ? `${t}{${o}}` : ""}${a.join("")}${i.join("")}`.trim();
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
const
|
|
373
|
+
function Mr(t) {
|
|
374
|
+
const r = sr();
|
|
375
375
|
return /* @__PURE__ */ f(
|
|
376
376
|
"style",
|
|
377
377
|
{
|
|
378
378
|
"data-mantine-styles": "inline",
|
|
379
|
-
nonce:
|
|
380
|
-
dangerouslySetInnerHTML: { __html:
|
|
379
|
+
nonce: r == null ? void 0 : r(),
|
|
380
|
+
dangerouslySetInnerHTML: { __html: Er(t) }
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function jr(t) {
|
|
385
385
|
const {
|
|
386
|
-
m:
|
|
387
|
-
mx:
|
|
386
|
+
m: r,
|
|
387
|
+
mx: n,
|
|
388
388
|
my: e,
|
|
389
389
|
mt: o,
|
|
390
390
|
mb: a,
|
|
@@ -400,7 +400,7 @@ function kn(t) {
|
|
|
400
400
|
pl: b,
|
|
401
401
|
pr: h,
|
|
402
402
|
pe: x,
|
|
403
|
-
ps:
|
|
403
|
+
ps: _,
|
|
404
404
|
bd: S,
|
|
405
405
|
bg: N,
|
|
406
406
|
c: C,
|
|
@@ -429,19 +429,19 @@ function kn(t) {
|
|
|
429
429
|
left: Ht,
|
|
430
430
|
bottom: Vt,
|
|
431
431
|
right: Xt,
|
|
432
|
-
inset:
|
|
433
|
-
display:
|
|
432
|
+
inset: Ut,
|
|
433
|
+
display: qt,
|
|
434
434
|
flex: Qt,
|
|
435
435
|
hiddenFrom: Kt,
|
|
436
436
|
visibleFrom: Zt,
|
|
437
437
|
lightHidden: Jt,
|
|
438
|
-
darkHidden:
|
|
439
|
-
sx:
|
|
440
|
-
...
|
|
438
|
+
darkHidden: tr,
|
|
439
|
+
sx: rr,
|
|
440
|
+
...nr
|
|
441
441
|
} = t;
|
|
442
|
-
return { styleProps:
|
|
443
|
-
m:
|
|
444
|
-
mx:
|
|
442
|
+
return { styleProps: rt({
|
|
443
|
+
m: r,
|
|
444
|
+
mx: n,
|
|
445
445
|
my: e,
|
|
446
446
|
mt: o,
|
|
447
447
|
mb: a,
|
|
@@ -457,7 +457,7 @@ function kn(t) {
|
|
|
457
457
|
pl: b,
|
|
458
458
|
pr: h,
|
|
459
459
|
pe: x,
|
|
460
|
-
ps:
|
|
460
|
+
ps: _,
|
|
461
461
|
bd: S,
|
|
462
462
|
bg: N,
|
|
463
463
|
c: C,
|
|
@@ -486,17 +486,17 @@ function kn(t) {
|
|
|
486
486
|
left: Ht,
|
|
487
487
|
bottom: Vt,
|
|
488
488
|
right: Xt,
|
|
489
|
-
inset:
|
|
490
|
-
display:
|
|
489
|
+
inset: Ut,
|
|
490
|
+
display: qt,
|
|
491
491
|
flex: Qt,
|
|
492
492
|
hiddenFrom: Kt,
|
|
493
493
|
visibleFrom: Zt,
|
|
494
494
|
lightHidden: Jt,
|
|
495
|
-
darkHidden:
|
|
496
|
-
sx:
|
|
497
|
-
}), rest:
|
|
495
|
+
darkHidden: tr,
|
|
496
|
+
sx: rr
|
|
497
|
+
}), rest: nr };
|
|
498
498
|
}
|
|
499
|
-
const
|
|
499
|
+
const kr = {
|
|
500
500
|
m: { type: "spacing", property: "margin" },
|
|
501
501
|
mt: { type: "spacing", property: "marginTop" },
|
|
502
502
|
mb: { type: "spacing", property: "marginBottom" },
|
|
@@ -547,21 +547,21 @@ const Fn = {
|
|
|
547
547
|
display: { type: "identity", property: "display" },
|
|
548
548
|
flex: { type: "identity", property: "flex" }
|
|
549
549
|
};
|
|
550
|
-
function et(t,
|
|
551
|
-
const
|
|
552
|
-
return
|
|
550
|
+
function et(t, r) {
|
|
551
|
+
const n = dt({ color: t, theme: r });
|
|
552
|
+
return n.color === "dimmed" ? "var(--mantine-color-dimmed)" : n.color === "bright" ? "var(--mantine-color-bright)" : n.variable ? `var(${n.variable})` : n.color;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
const
|
|
556
|
-
return
|
|
554
|
+
function Fr(t, r) {
|
|
555
|
+
const n = dt({ color: t, theme: r });
|
|
556
|
+
return n.isThemeColor && n.shade === void 0 ? `var(--mantine-color-${n.color}-text)` : et(t, r);
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Ir(t, r) {
|
|
559
559
|
if (typeof t == "number")
|
|
560
|
-
return
|
|
560
|
+
return R(t);
|
|
561
561
|
if (typeof t == "string") {
|
|
562
|
-
const [
|
|
563
|
-
let a = `${
|
|
564
|
-
return e && (a += ` ${e}`), o.length > 0 && (a += ` ${et(o.join(" "),
|
|
562
|
+
const [n, e, ...o] = t.split(" ").filter((i) => i.trim() !== "");
|
|
563
|
+
let a = `${R(n)}`;
|
|
564
|
+
return e && (a += ` ${e}`), o.length > 0 && (a += ` ${et(o.join(" "), r)}`), a.trim();
|
|
565
565
|
}
|
|
566
566
|
return t;
|
|
567
567
|
}
|
|
@@ -572,96 +572,96 @@ const pt = {
|
|
|
572
572
|
heading: "var(--mantine-font-family-headings)",
|
|
573
573
|
headings: "var(--mantine-font-family-headings)"
|
|
574
574
|
};
|
|
575
|
-
function
|
|
575
|
+
function Wr(t) {
|
|
576
576
|
return typeof t == "string" && t in pt ? pt[t] : t;
|
|
577
577
|
}
|
|
578
|
-
const
|
|
579
|
-
function
|
|
580
|
-
return typeof t == "string" && t in
|
|
578
|
+
const zr = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
579
|
+
function Gr(t, r) {
|
|
580
|
+
return typeof t == "string" && t in r.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && zr.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" ? R(t) : typeof t == "string" ? R(t) : t;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Dr(t) {
|
|
583
583
|
return t;
|
|
584
584
|
}
|
|
585
|
-
const
|
|
586
|
-
function
|
|
587
|
-
return typeof t == "string" && t in
|
|
585
|
+
const Hr = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
586
|
+
function Vr(t, r) {
|
|
587
|
+
return typeof t == "string" && t in r.lineHeights ? `var(--mantine-line-height-${t})` : typeof t == "string" && Hr.includes(t) ? `var(--mantine-${t}-line-height)` : t;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
return typeof t == "number" ?
|
|
589
|
+
function Xr(t) {
|
|
590
|
+
return typeof t == "number" ? R(t) : t;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Ur(t, r) {
|
|
593
593
|
if (typeof t == "number")
|
|
594
|
-
return
|
|
594
|
+
return R(t);
|
|
595
595
|
if (typeof t == "string") {
|
|
596
|
-
const
|
|
597
|
-
if (!(
|
|
598
|
-
return
|
|
599
|
-
const e = `--mantine-spacing-${
|
|
596
|
+
const n = t.replace("-", "");
|
|
597
|
+
if (!(n in r.spacing))
|
|
598
|
+
return R(t);
|
|
599
|
+
const e = `--mantine-spacing-${n}`;
|
|
600
600
|
return t.startsWith("-") ? `calc(var(${e}) * -1)` : `var(${e})`;
|
|
601
601
|
}
|
|
602
602
|
return t;
|
|
603
603
|
}
|
|
604
|
-
const
|
|
604
|
+
const U = {
|
|
605
605
|
color: et,
|
|
606
|
-
textColor:
|
|
607
|
-
fontSize:
|
|
608
|
-
spacing:
|
|
609
|
-
identity:
|
|
610
|
-
size:
|
|
611
|
-
lineHeight:
|
|
612
|
-
fontFamily:
|
|
613
|
-
border:
|
|
606
|
+
textColor: Fr,
|
|
607
|
+
fontSize: Gr,
|
|
608
|
+
spacing: Ur,
|
|
609
|
+
identity: Dr,
|
|
610
|
+
size: Xr,
|
|
611
|
+
lineHeight: Vr,
|
|
612
|
+
fontFamily: Wr,
|
|
613
|
+
border: Ir
|
|
614
614
|
};
|
|
615
615
|
function mt(t) {
|
|
616
616
|
return t.replace("(min-width: ", "").replace("em)", "");
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function qr({
|
|
619
619
|
media: t,
|
|
620
|
-
...
|
|
620
|
+
...r
|
|
621
621
|
}) {
|
|
622
622
|
const e = Object.keys(t).sort((o, a) => Number(mt(o)) - Number(mt(a))).map((o) => ({ query: o, styles: t[o] }));
|
|
623
|
-
return { ...
|
|
623
|
+
return { ...r, media: e };
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Qr(t) {
|
|
626
626
|
if (typeof t != "object" || t === null)
|
|
627
627
|
return !1;
|
|
628
|
-
const
|
|
629
|
-
return !(
|
|
628
|
+
const r = Object.keys(t);
|
|
629
|
+
return !(r.length === 1 && r[0] === "base");
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Kr(t) {
|
|
632
632
|
return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
return typeof t == "object" && t !== null ? tt(t).filter((
|
|
634
|
+
function Zr(t) {
|
|
635
|
+
return typeof t == "object" && t !== null ? tt(t).filter((r) => r !== "base") : [];
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return typeof t == "object" && t !== null &&
|
|
637
|
+
function Jr(t, r) {
|
|
638
|
+
return typeof t == "object" && t !== null && r in t ? t[r] : t;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function tn({
|
|
641
641
|
styleProps: t,
|
|
642
|
-
data:
|
|
643
|
-
theme:
|
|
642
|
+
data: r,
|
|
643
|
+
theme: n
|
|
644
644
|
}) {
|
|
645
|
-
return
|
|
645
|
+
return qr(
|
|
646
646
|
tt(t).reduce(
|
|
647
647
|
(e, o) => {
|
|
648
648
|
if (o === "hiddenFrom" || o === "visibleFrom" || o === "sx")
|
|
649
649
|
return e;
|
|
650
|
-
const a =
|
|
651
|
-
if (!
|
|
650
|
+
const a = r[o], i = Array.isArray(a.property) ? a.property : [a.property], s = Kr(t[o]);
|
|
651
|
+
if (!Qr(t[o]))
|
|
652
652
|
return i.forEach((c) => {
|
|
653
|
-
e.inlineStyles[c] =
|
|
653
|
+
e.inlineStyles[c] = U[a.type](s, n);
|
|
654
654
|
}), e;
|
|
655
655
|
e.hasResponsiveStyles = !0;
|
|
656
|
-
const p =
|
|
656
|
+
const p = Zr(t[o]);
|
|
657
657
|
return i.forEach((c) => {
|
|
658
|
-
s && (e.styles[c] =
|
|
659
|
-
const u = `(min-width: ${
|
|
658
|
+
s && (e.styles[c] = U[a.type](s, n)), p.forEach((m) => {
|
|
659
|
+
const u = `(min-width: ${n.breakpoints[m]})`;
|
|
660
660
|
e.media[u] = {
|
|
661
661
|
...e.media[u],
|
|
662
|
-
[c]:
|
|
663
|
-
|
|
664
|
-
|
|
662
|
+
[c]: U[a.type](
|
|
663
|
+
Jr(t[o], m),
|
|
664
|
+
n
|
|
665
665
|
)
|
|
666
666
|
};
|
|
667
667
|
});
|
|
@@ -676,44 +676,44 @@ function nr({
|
|
|
676
676
|
)
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return `__m__-${
|
|
679
|
+
function rn() {
|
|
680
|
+
return `__m__-${ur().replace(/:/g, "")}`;
|
|
681
681
|
}
|
|
682
682
|
function bt(t) {
|
|
683
683
|
return t.startsWith("data-") ? t : `data-${t}`;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return Object.keys(t).reduce((
|
|
687
|
-
const e = t[
|
|
688
|
-
return e === void 0 || e === "" || e === !1 || e === null || (
|
|
685
|
+
function nn(t) {
|
|
686
|
+
return Object.keys(t).reduce((r, n) => {
|
|
687
|
+
const e = t[n];
|
|
688
|
+
return e === void 0 || e === "" || e === !1 || e === null || (r[bt(n)] = t[n]), r;
|
|
689
689
|
}, {});
|
|
690
690
|
}
|
|
691
691
|
function St(t) {
|
|
692
692
|
return t ? typeof t == "string" ? { [bt(t)]: !0 } : Array.isArray(t) ? [...t].reduce(
|
|
693
|
-
(
|
|
693
|
+
(r, n) => ({ ...r, ...St(n) }),
|
|
694
694
|
{}
|
|
695
|
-
) :
|
|
695
|
+
) : nn(t) : null;
|
|
696
696
|
}
|
|
697
|
-
function J(t,
|
|
697
|
+
function J(t, r) {
|
|
698
698
|
return Array.isArray(t) ? [...t].reduce(
|
|
699
|
-
(
|
|
699
|
+
(n, e) => ({ ...n, ...J(e, r) }),
|
|
700
700
|
{}
|
|
701
|
-
) : typeof t == "function" ? t(
|
|
701
|
+
) : typeof t == "function" ? t(r) : t ?? {};
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function en({
|
|
704
704
|
theme: t,
|
|
705
|
-
style:
|
|
706
|
-
vars:
|
|
705
|
+
style: r,
|
|
706
|
+
vars: n,
|
|
707
707
|
styleProps: e
|
|
708
708
|
}) {
|
|
709
|
-
const o = J(
|
|
709
|
+
const o = J(r, t), a = J(n, t);
|
|
710
710
|
return { ...o, ...a, ...e };
|
|
711
711
|
}
|
|
712
|
-
const vt =
|
|
712
|
+
const vt = P(
|
|
713
713
|
({
|
|
714
714
|
component: t,
|
|
715
|
-
style:
|
|
716
|
-
__vars:
|
|
715
|
+
style: r,
|
|
716
|
+
__vars: n,
|
|
717
717
|
className: e,
|
|
718
718
|
variant: o,
|
|
719
719
|
mod: a,
|
|
@@ -727,16 +727,16 @@ const vt = _(
|
|
|
727
727
|
...g
|
|
728
728
|
}, d) => {
|
|
729
729
|
var v;
|
|
730
|
-
const b = k(), h = t || "div", { styleProps: x, rest:
|
|
730
|
+
const b = k(), h = t || "div", { styleProps: x, rest: _ } = jr(g), S = cr(), N = (v = S == null ? void 0 : S()) == null ? void 0 : v(x.sx), C = rn(), y = tn({
|
|
731
731
|
styleProps: x,
|
|
732
732
|
theme: b,
|
|
733
|
-
data:
|
|
733
|
+
data: kr
|
|
734
734
|
}), w = {
|
|
735
735
|
ref: d,
|
|
736
|
-
style:
|
|
736
|
+
style: en({
|
|
737
737
|
theme: b,
|
|
738
|
-
style:
|
|
739
|
-
vars:
|
|
738
|
+
style: r,
|
|
739
|
+
vars: n,
|
|
740
740
|
styleProps: y.inlineStyles
|
|
741
741
|
}),
|
|
742
742
|
className: L(e, N, {
|
|
@@ -750,11 +750,11 @@ const vt = _(
|
|
|
750
750
|
"data-size": yt(i) ? void 0 : i || void 0,
|
|
751
751
|
size: l,
|
|
752
752
|
...St(a),
|
|
753
|
-
...
|
|
753
|
+
..._
|
|
754
754
|
};
|
|
755
|
-
return /* @__PURE__ */ j(
|
|
755
|
+
return /* @__PURE__ */ j(q, { children: [
|
|
756
756
|
y.hasResponsiveStyles && /* @__PURE__ */ f(
|
|
757
|
-
|
|
757
|
+
Mr,
|
|
758
758
|
{
|
|
759
759
|
selector: `.${C}`,
|
|
760
760
|
styles: y.styles,
|
|
@@ -771,25 +771,25 @@ function Nt(t) {
|
|
|
771
771
|
return t;
|
|
772
772
|
}
|
|
773
773
|
function ot(t) {
|
|
774
|
-
const
|
|
775
|
-
return
|
|
776
|
-
const e =
|
|
777
|
-
return e.extend =
|
|
778
|
-
},
|
|
774
|
+
const r = P(t);
|
|
775
|
+
return r.extend = Nt, r.withProps = (n) => {
|
|
776
|
+
const e = P((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
|
|
777
|
+
return e.extend = r.extend, e.displayName = `WithProps(${r.displayName})`, e;
|
|
778
|
+
}, r;
|
|
779
779
|
}
|
|
780
780
|
function xt(t) {
|
|
781
|
-
const
|
|
782
|
-
return
|
|
783
|
-
const e =
|
|
784
|
-
return e.extend =
|
|
785
|
-
},
|
|
781
|
+
const r = P(t);
|
|
782
|
+
return r.withProps = (n) => {
|
|
783
|
+
const e = P((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
|
|
784
|
+
return e.extend = r.extend, e.displayName = `WithProps(${r.displayName})`, e;
|
|
785
|
+
}, r.extend = Nt, r;
|
|
786
786
|
}
|
|
787
787
|
var wt = { root: "m_87cf2631" };
|
|
788
|
-
const
|
|
788
|
+
const on = {
|
|
789
789
|
__staticSelector: "UnstyledButton"
|
|
790
790
|
}, at = xt(
|
|
791
|
-
(t,
|
|
792
|
-
const
|
|
791
|
+
(t, r) => {
|
|
792
|
+
const n = O("UnstyledButton", on, t), {
|
|
793
793
|
className: e,
|
|
794
794
|
component: o = "button",
|
|
795
795
|
__staticSelector: a,
|
|
@@ -798,9 +798,9 @@ const ar = {
|
|
|
798
798
|
styles: p,
|
|
799
799
|
style: c,
|
|
800
800
|
...m
|
|
801
|
-
} =
|
|
801
|
+
} = n, u = F({
|
|
802
802
|
name: a,
|
|
803
|
-
props:
|
|
803
|
+
props: n,
|
|
804
804
|
classes: wt,
|
|
805
805
|
className: e,
|
|
806
806
|
style: c,
|
|
@@ -813,7 +813,7 @@ const ar = {
|
|
|
813
813
|
{
|
|
814
814
|
...u("root", { focusable: !0 }),
|
|
815
815
|
component: o,
|
|
816
|
-
ref:
|
|
816
|
+
ref: r,
|
|
817
817
|
type: o === "button" ? "button" : void 0,
|
|
818
818
|
...m
|
|
819
819
|
}
|
|
@@ -946,34 +946,34 @@ const E = (t) => ({
|
|
|
946
946
|
"pre-exiting": "out",
|
|
947
947
|
"pre-entering": "out"
|
|
948
948
|
};
|
|
949
|
-
function
|
|
949
|
+
function an({
|
|
950
950
|
transition: t,
|
|
951
|
-
state:
|
|
952
|
-
duration:
|
|
951
|
+
state: r,
|
|
952
|
+
duration: n,
|
|
953
953
|
timingFunction: e
|
|
954
954
|
}) {
|
|
955
955
|
const o = {
|
|
956
956
|
WebkitBackfaceVisibility: "hidden",
|
|
957
957
|
willChange: "transform, opacity",
|
|
958
|
-
transitionDuration: `${
|
|
958
|
+
transitionDuration: `${n}ms`,
|
|
959
959
|
transitionTimingFunction: e
|
|
960
960
|
};
|
|
961
961
|
return typeof t == "string" ? t in W ? {
|
|
962
962
|
transitionProperty: W[t].transitionProperty,
|
|
963
963
|
...o,
|
|
964
964
|
...W[t].common,
|
|
965
|
-
...W[t][ut[
|
|
965
|
+
...W[t][ut[r]]
|
|
966
966
|
} : {} : {
|
|
967
967
|
transitionProperty: t.transitionProperty,
|
|
968
968
|
...o,
|
|
969
969
|
...t.common,
|
|
970
|
-
...t[ut[
|
|
970
|
+
...t[ut[r]]
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function sn({
|
|
974
974
|
duration: t,
|
|
975
|
-
exitDuration:
|
|
976
|
-
timingFunction:
|
|
975
|
+
exitDuration: r,
|
|
976
|
+
timingFunction: n,
|
|
977
977
|
mounted: e,
|
|
978
978
|
onEnter: o,
|
|
979
979
|
onExit: a,
|
|
@@ -982,12 +982,12 @@ function sr({
|
|
|
982
982
|
enterDelay: p,
|
|
983
983
|
exitDelay: c
|
|
984
984
|
}) {
|
|
985
|
-
const m = k(), u =
|
|
985
|
+
const m = k(), u = br(), l = m.respectReducedMotion ? u : !1, [g, d] = Q(l ? 0 : t), [b, h] = Q(e ? "entered" : "exited"), x = M(-1), _ = M(-1), S = M(-1), N = (y) => {
|
|
986
986
|
const w = y ? o : a, v = y ? i : s;
|
|
987
987
|
window.clearTimeout(x.current);
|
|
988
|
-
const B = l ? 0 : y ? t :
|
|
988
|
+
const B = l ? 0 : y ? t : r;
|
|
989
989
|
d(B), B === 0 ? (typeof w == "function" && w(), typeof v == "function" && v(), h(y ? "entered" : "exited")) : S.current = requestAnimationFrame(() => {
|
|
990
|
-
|
|
990
|
+
lr.flushSync(() => {
|
|
991
991
|
h(y ? "pre-entering" : "pre-exiting");
|
|
992
992
|
}), S.current = requestAnimationFrame(() => {
|
|
993
993
|
typeof w == "function" && w(), h(y ? "entering" : "exiting"), x.current = window.setTimeout(() => {
|
|
@@ -996,18 +996,18 @@ function sr({
|
|
|
996
996
|
});
|
|
997
997
|
});
|
|
998
998
|
}, C = (y) => {
|
|
999
|
-
if (window.clearTimeout(
|
|
999
|
+
if (window.clearTimeout(_.current), typeof (y ? p : c) != "number") {
|
|
1000
1000
|
N(y);
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
1003
|
-
|
|
1003
|
+
_.current = window.setTimeout(
|
|
1004
1004
|
() => {
|
|
1005
1005
|
N(y);
|
|
1006
1006
|
},
|
|
1007
1007
|
y ? p : c
|
|
1008
1008
|
);
|
|
1009
1009
|
};
|
|
1010
|
-
return
|
|
1010
|
+
return hr(() => {
|
|
1011
1011
|
C(e);
|
|
1012
1012
|
}, [e]), z(
|
|
1013
1013
|
() => () => {
|
|
@@ -1017,14 +1017,14 @@ function sr({
|
|
|
1017
1017
|
), {
|
|
1018
1018
|
transitionDuration: g,
|
|
1019
1019
|
transitionStatus: b,
|
|
1020
|
-
transitionTimingFunction:
|
|
1020
|
+
transitionTimingFunction: n || "ease"
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
1023
|
function $t({
|
|
1024
1024
|
keepMounted: t,
|
|
1025
|
-
transition:
|
|
1026
|
-
duration:
|
|
1027
|
-
exitDuration: e =
|
|
1025
|
+
transition: r = "fade",
|
|
1026
|
+
duration: n = 250,
|
|
1027
|
+
exitDuration: e = n,
|
|
1028
1028
|
mounted: o,
|
|
1029
1029
|
children: a,
|
|
1030
1030
|
timingFunction: i = "ease",
|
|
@@ -1035,10 +1035,10 @@ function $t({
|
|
|
1035
1035
|
enterDelay: u,
|
|
1036
1036
|
exitDelay: l
|
|
1037
1037
|
}) {
|
|
1038
|
-
const g =
|
|
1038
|
+
const g = pr(), { transitionDuration: d, transitionStatus: b, transitionTimingFunction: h } = sn({
|
|
1039
1039
|
mounted: o,
|
|
1040
1040
|
exitDuration: e,
|
|
1041
|
-
duration:
|
|
1041
|
+
duration: n,
|
|
1042
1042
|
timingFunction: i,
|
|
1043
1043
|
onExit: s,
|
|
1044
1044
|
onEntered: p,
|
|
@@ -1047,9 +1047,9 @@ function $t({
|
|
|
1047
1047
|
enterDelay: u,
|
|
1048
1048
|
exitDelay: l
|
|
1049
1049
|
});
|
|
1050
|
-
return d === 0 || g === "test" ? o ? /* @__PURE__ */ f(
|
|
1051
|
-
|
|
1052
|
-
transition:
|
|
1050
|
+
return d === 0 || g === "test" ? o ? /* @__PURE__ */ f(q, { children: a({}) }) : t ? a({ display: "none" }) : null : b === "exited" ? t ? a({ display: "none" }) : null : /* @__PURE__ */ f(q, { children: a(
|
|
1051
|
+
an({
|
|
1052
|
+
transition: r,
|
|
1053
1053
|
duration: d,
|
|
1054
1054
|
state: b,
|
|
1055
1055
|
timingFunction: h
|
|
@@ -1058,34 +1058,34 @@ function $t({
|
|
|
1058
1058
|
}
|
|
1059
1059
|
$t.displayName = "@mantine/core/Transition";
|
|
1060
1060
|
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" };
|
|
1061
|
-
const Tt =
|
|
1061
|
+
const Tt = P(({ className: t, ...r }, n) => /* @__PURE__ */ j($, { component: "span", className: L(T.barsLoader, t), ...r, ref: n, children: [
|
|
1062
1062
|
/* @__PURE__ */ f("span", { className: T.bar }),
|
|
1063
1063
|
/* @__PURE__ */ f("span", { className: T.bar }),
|
|
1064
1064
|
/* @__PURE__ */ f("span", { className: T.bar })
|
|
1065
1065
|
] }));
|
|
1066
1066
|
Tt.displayName = "@mantine/core/Bars";
|
|
1067
|
-
const
|
|
1067
|
+
const _t = P(({ className: t, ...r }, n) => /* @__PURE__ */ j($, { component: "span", className: L(T.dotsLoader, t), ...r, ref: n, children: [
|
|
1068
1068
|
/* @__PURE__ */ f("span", { className: T.dot }),
|
|
1069
1069
|
/* @__PURE__ */ f("span", { className: T.dot }),
|
|
1070
1070
|
/* @__PURE__ */ f("span", { className: T.dot })
|
|
1071
1071
|
] }));
|
|
1072
|
-
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
const
|
|
1072
|
+
_t.displayName = "@mantine/core/Dots";
|
|
1073
|
+
const Rt = P(({ className: t, ...r }, n) => /* @__PURE__ */ f($, { component: "span", className: L(T.ovalLoader, t), ...r, ref: n }));
|
|
1074
|
+
Rt.displayName = "@mantine/core/Oval";
|
|
1075
|
+
const Pt = {
|
|
1076
1076
|
bars: Tt,
|
|
1077
|
-
oval:
|
|
1078
|
-
dots:
|
|
1079
|
-
},
|
|
1080
|
-
loaders:
|
|
1077
|
+
oval: Rt,
|
|
1078
|
+
dots: _t
|
|
1079
|
+
}, cn = {
|
|
1080
|
+
loaders: Pt,
|
|
1081
1081
|
type: "oval"
|
|
1082
|
-
},
|
|
1082
|
+
}, pn = (t, { size: r, color: n }) => ({
|
|
1083
1083
|
root: {
|
|
1084
|
-
"--loader-size": A(
|
|
1085
|
-
"--loader-color":
|
|
1084
|
+
"--loader-size": A(r, "loader-size"),
|
|
1085
|
+
"--loader-color": n ? mr(n, t) : void 0
|
|
1086
1086
|
}
|
|
1087
|
-
}), D = ot((t,
|
|
1088
|
-
const
|
|
1087
|
+
}), D = ot((t, r) => {
|
|
1088
|
+
const n = O("Loader", cn, t), {
|
|
1089
1089
|
size: e,
|
|
1090
1090
|
color: o,
|
|
1091
1091
|
type: a,
|
|
@@ -1099,9 +1099,9 @@ const _t = {
|
|
|
1099
1099
|
variant: g,
|
|
1100
1100
|
children: d,
|
|
1101
1101
|
...b
|
|
1102
|
-
} =
|
|
1102
|
+
} = n, h = F({
|
|
1103
1103
|
name: "Loader",
|
|
1104
|
-
props:
|
|
1104
|
+
props: n,
|
|
1105
1105
|
classes: T,
|
|
1106
1106
|
className: s,
|
|
1107
1107
|
style: p,
|
|
@@ -1109,13 +1109,13 @@ const _t = {
|
|
|
1109
1109
|
styles: m,
|
|
1110
1110
|
unstyled: u,
|
|
1111
1111
|
vars: i,
|
|
1112
|
-
varsResolver:
|
|
1112
|
+
varsResolver: pn
|
|
1113
1113
|
});
|
|
1114
|
-
return d ? /* @__PURE__ */ f($, { ...h("root"), ref:
|
|
1114
|
+
return d ? /* @__PURE__ */ f($, { ...h("root"), ref: r, ...b, children: d }) : /* @__PURE__ */ f(
|
|
1115
1115
|
$,
|
|
1116
1116
|
{
|
|
1117
1117
|
...h("root"),
|
|
1118
|
-
ref:
|
|
1118
|
+
ref: r,
|
|
1119
1119
|
component: l[a],
|
|
1120
1120
|
variant: g,
|
|
1121
1121
|
size: e,
|
|
@@ -1123,16 +1123,16 @@ const _t = {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
);
|
|
1125
1125
|
});
|
|
1126
|
-
D.defaultLoaders =
|
|
1126
|
+
D.defaultLoaders = Pt;
|
|
1127
1127
|
D.classes = T;
|
|
1128
1128
|
D.displayName = "@mantine/core/Loader";
|
|
1129
1129
|
var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
1130
1130
|
const lt = {
|
|
1131
1131
|
orientation: "horizontal"
|
|
1132
|
-
},
|
|
1133
|
-
group: { "--button-border-width":
|
|
1134
|
-
}), it = ot((t,
|
|
1135
|
-
const
|
|
1132
|
+
}, mn = (t, { borderWidth: r }) => ({
|
|
1133
|
+
group: { "--button-border-width": R(r) }
|
|
1134
|
+
}), it = ot((t, r) => {
|
|
1135
|
+
const n = O("ButtonGroup", lt, t), {
|
|
1136
1136
|
className: e,
|
|
1137
1137
|
style: o,
|
|
1138
1138
|
classNames: a,
|
|
@@ -1146,7 +1146,7 @@ const lt = {
|
|
|
1146
1146
|
...g
|
|
1147
1147
|
} = O("ButtonGroup", lt, t), d = F({
|
|
1148
1148
|
name: "ButtonGroup",
|
|
1149
|
-
props:
|
|
1149
|
+
props: n,
|
|
1150
1150
|
classes: Y,
|
|
1151
1151
|
className: e,
|
|
1152
1152
|
style: o,
|
|
@@ -1154,14 +1154,14 @@ const lt = {
|
|
|
1154
1154
|
styles: i,
|
|
1155
1155
|
unstyled: s,
|
|
1156
1156
|
vars: c,
|
|
1157
|
-
varsResolver:
|
|
1157
|
+
varsResolver: mn,
|
|
1158
1158
|
rootSelector: "group"
|
|
1159
1159
|
});
|
|
1160
1160
|
return /* @__PURE__ */ f(
|
|
1161
1161
|
$,
|
|
1162
1162
|
{
|
|
1163
1163
|
...d("group"),
|
|
1164
|
-
ref:
|
|
1164
|
+
ref: r,
|
|
1165
1165
|
variant: u,
|
|
1166
1166
|
mod: [{ "data-orientation": p }, l],
|
|
1167
1167
|
role: "group",
|
|
@@ -1171,9 +1171,9 @@ const lt = {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
it.classes = Y;
|
|
1173
1173
|
it.displayName = "@mantine/core/ButtonGroup";
|
|
1174
|
-
const ft = {},
|
|
1174
|
+
const ft = {}, un = (t, { radius: r, color: n, gradient: e, variant: o, autoContrast: a, size: i }) => {
|
|
1175
1175
|
const s = t.variantColorResolver({
|
|
1176
|
-
color:
|
|
1176
|
+
color: n || t.primaryColor,
|
|
1177
1177
|
theme: t,
|
|
1178
1178
|
gradient: e,
|
|
1179
1179
|
variant: o || "filled",
|
|
@@ -1184,14 +1184,14 @@ const ft = {}, ur = (t, { radius: n, color: r, gradient: e, variant: o, autoCont
|
|
|
1184
1184
|
"--section-height": A(i, "section-height"),
|
|
1185
1185
|
"--section-padding-x": A(i, "section-padding-x"),
|
|
1186
1186
|
"--section-fz": i != null && i.includes("compact") ? G(i.replace("compact-", "")) : G(i),
|
|
1187
|
-
"--section-radius":
|
|
1188
|
-
"--section-bg":
|
|
1187
|
+
"--section-radius": r === void 0 ? void 0 : gt(r),
|
|
1188
|
+
"--section-bg": n || o ? s.background : void 0,
|
|
1189
1189
|
"--section-color": s.color,
|
|
1190
|
-
"--section-bd":
|
|
1190
|
+
"--section-bd": n || o ? s.border : void 0
|
|
1191
1191
|
}
|
|
1192
1192
|
};
|
|
1193
|
-
}, st = ot((t,
|
|
1194
|
-
const
|
|
1193
|
+
}, st = ot((t, r) => {
|
|
1194
|
+
const n = O("ButtonGroupSection", ft, t), {
|
|
1195
1195
|
className: e,
|
|
1196
1196
|
style: o,
|
|
1197
1197
|
classNames: a,
|
|
@@ -1205,7 +1205,7 @@ const ft = {}, ur = (t, { radius: n, color: r, gradient: e, variant: o, autoCont
|
|
|
1205
1205
|
...g
|
|
1206
1206
|
} = O("ButtonGroupSection", ft, t), d = F({
|
|
1207
1207
|
name: "ButtonGroupSection",
|
|
1208
|
-
props:
|
|
1208
|
+
props: n,
|
|
1209
1209
|
classes: Y,
|
|
1210
1210
|
className: e,
|
|
1211
1211
|
style: o,
|
|
@@ -1213,21 +1213,21 @@ const ft = {}, ur = (t, { radius: n, color: r, gradient: e, variant: o, autoCont
|
|
|
1213
1213
|
styles: i,
|
|
1214
1214
|
unstyled: s,
|
|
1215
1215
|
vars: p,
|
|
1216
|
-
varsResolver:
|
|
1216
|
+
varsResolver: un,
|
|
1217
1217
|
rootSelector: "groupSection"
|
|
1218
1218
|
});
|
|
1219
|
-
return /* @__PURE__ */ f($, { ...d("groupSection"), ref:
|
|
1219
|
+
return /* @__PURE__ */ f($, { ...d("groupSection"), ref: r, variant: c, ...g });
|
|
1220
1220
|
});
|
|
1221
1221
|
st.classes = Y;
|
|
1222
1222
|
st.displayName = "@mantine/core/ButtonGroupSection";
|
|
1223
|
-
const
|
|
1224
|
-
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${
|
|
1223
|
+
const ln = {
|
|
1224
|
+
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${R(1)}))` },
|
|
1225
1225
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
1226
1226
|
common: { transformOrigin: "center" },
|
|
1227
1227
|
transitionProperty: "transform, opacity"
|
|
1228
|
-
},
|
|
1228
|
+
}, fn = {}, dn = (t, { radius: r, color: n, gradient: e, variant: o, size: a, justify: i, autoContrast: s }) => {
|
|
1229
1229
|
const p = t.variantColorResolver({
|
|
1230
|
-
color:
|
|
1230
|
+
color: n || t.primaryColor,
|
|
1231
1231
|
theme: t,
|
|
1232
1232
|
gradient: e,
|
|
1233
1233
|
variant: o || "filled",
|
|
@@ -1239,16 +1239,16 @@ const lr = {
|
|
|
1239
1239
|
"--button-height": A(a, "button-height"),
|
|
1240
1240
|
"--button-padding-x": A(a, "button-padding-x"),
|
|
1241
1241
|
"--button-fz": a != null && a.includes("compact") ? G(a.replace("compact-", "")) : G(a),
|
|
1242
|
-
"--button-radius":
|
|
1243
|
-
"--button-bg":
|
|
1244
|
-
"--button-hover":
|
|
1242
|
+
"--button-radius": r === void 0 ? void 0 : gt(r),
|
|
1243
|
+
"--button-bg": n || o ? p.background : void 0,
|
|
1244
|
+
"--button-hover": n || o ? p.hover : void 0,
|
|
1245
1245
|
"--button-color": p.color,
|
|
1246
|
-
"--button-bd":
|
|
1247
|
-
"--button-hover-color":
|
|
1246
|
+
"--button-bd": n || o ? p.border : void 0,
|
|
1247
|
+
"--button-hover-color": n || o ? p.hoverColor : void 0
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
|
-
}, I = xt((t,
|
|
1251
|
-
const
|
|
1250
|
+
}, I = xt((t, r) => {
|
|
1251
|
+
const n = O("Button", fn, t), {
|
|
1252
1252
|
style: e,
|
|
1253
1253
|
vars: o,
|
|
1254
1254
|
className: a,
|
|
@@ -1264,28 +1264,28 @@ const lr = {
|
|
|
1264
1264
|
loaderProps: b,
|
|
1265
1265
|
gradient: h,
|
|
1266
1266
|
classNames: x,
|
|
1267
|
-
styles:
|
|
1267
|
+
styles: _,
|
|
1268
1268
|
unstyled: S,
|
|
1269
1269
|
"data-disabled": N,
|
|
1270
1270
|
autoContrast: C,
|
|
1271
1271
|
mod: y,
|
|
1272
1272
|
...w
|
|
1273
|
-
} =
|
|
1273
|
+
} = n, v = F({
|
|
1274
1274
|
name: "Button",
|
|
1275
|
-
props:
|
|
1275
|
+
props: n,
|
|
1276
1276
|
classes: Y,
|
|
1277
1277
|
className: a,
|
|
1278
1278
|
style: e,
|
|
1279
1279
|
classNames: x,
|
|
1280
|
-
styles:
|
|
1280
|
+
styles: _,
|
|
1281
1281
|
unstyled: S,
|
|
1282
1282
|
vars: o,
|
|
1283
|
-
varsResolver:
|
|
1283
|
+
varsResolver: dn
|
|
1284
1284
|
}), B = !!c, H = !!m;
|
|
1285
1285
|
return /* @__PURE__ */ j(
|
|
1286
1286
|
at,
|
|
1287
1287
|
{
|
|
1288
|
-
ref:
|
|
1288
|
+
ref: r,
|
|
1289
1289
|
...v("root", { active: !s && !d && !N }),
|
|
1290
1290
|
unstyled: S,
|
|
1291
1291
|
variant: l,
|
|
@@ -1302,7 +1302,7 @@ const lr = {
|
|
|
1302
1302
|
],
|
|
1303
1303
|
...w,
|
|
1304
1304
|
children: [
|
|
1305
|
-
/* @__PURE__ */ f($t, { mounted: !!d, transition:
|
|
1305
|
+
/* @__PURE__ */ f($t, { mounted: !!d, transition: ln, duration: 150, children: (V) => /* @__PURE__ */ f($, { component: "span", ...v("loader", { style: V }), "aria-hidden": !0, children: /* @__PURE__ */ f(
|
|
1306
1306
|
D,
|
|
1307
1307
|
{
|
|
1308
1308
|
color: "var(--button-color)",
|
|
@@ -1323,9 +1323,16 @@ I.classes = Y;
|
|
|
1323
1323
|
I.displayName = "@mantine/core/Button";
|
|
1324
1324
|
I.Group = it;
|
|
1325
1325
|
I.GroupSection = st;
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1328
|
-
|
|
1326
|
+
const yn = "_root_17bsd_1", gn = "_inner_17bsd_6", hn = {
|
|
1327
|
+
root: yn,
|
|
1328
|
+
inner: gn
|
|
1329
|
+
}, wn = (t) => /* @__PURE__ */ f(
|
|
1330
|
+
I,
|
|
1331
|
+
{
|
|
1332
|
+
...t,
|
|
1333
|
+
classNames: hn
|
|
1334
|
+
}
|
|
1335
|
+
);
|
|
1329
1336
|
export {
|
|
1330
|
-
|
|
1337
|
+
wn as Button
|
|
1331
1338
|
};
|