@kvell-group/ui 1.7.0 → 1.8.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/{MantineThemeProvider-CyD9KzqB.js → MantineThemeProvider-kHsOfZUW.js} +14 -13
- package/dist/Text-B8e4XllM.js +80 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/TypographyBodySMedium.css +1 -0
- package/dist/assets/TypographyCaptionLMedium.css +1 -0
- package/dist/components/Button/Button.js +362 -1104
- package/dist/components/MainProvider/MantineProvider.js +1 -1
- package/dist/components/Typography/TypographyBodySMedium.d.ts +2 -0
- package/dist/components/Typography/TypographyBodySMedium.js +14 -0
- package/dist/components/Typography/TypographyCaptionLMedium.d.ts +2 -0
- package/dist/components/Typography/TypographyCaptionLMedium.js +14 -0
- package/dist/components/Typography/types.d.ts +5 -0
- package/dist/components/Typography/types.js +1 -0
- package/dist/components/theme.js +74 -18
- package/dist/main.d.ts +1 -0
- package/dist/main.js +5 -3
- package/dist/polymorphic-factory-DUeudAZR.js +767 -0
- package/package.json +3 -1
|
@@ -1,832 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
function rt(t) {
|
|
9
|
-
return Object.keys(t).reduce((r, n) => (t[n] !== void 0 && (r[n] = t[n]), r), {});
|
|
10
|
-
}
|
|
11
|
-
function yt(t) {
|
|
12
|
-
if (typeof t == "number")
|
|
13
|
-
return !0;
|
|
14
|
-
if (typeof t == "string") {
|
|
15
|
-
if (t.startsWith("calc(") || t.startsWith("var(") || t.includes(" ") && t.trim() !== "")
|
|
16
|
-
return !0;
|
|
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
|
-
}
|
|
20
|
-
return !1;
|
|
21
|
-
}
|
|
22
|
-
function A(t, r = "size", n = !0) {
|
|
23
|
-
if (t !== void 0)
|
|
24
|
-
return yt(t) ? n ? R(t) : t : `var(--${r}-${t})`;
|
|
25
|
-
}
|
|
26
|
-
function gt(t) {
|
|
27
|
-
return t === void 0 ? "var(--mantine-radius-default)" : A(t, "mantine-radius");
|
|
28
|
-
}
|
|
29
|
-
function G(t) {
|
|
30
|
-
return A(t, "mantine-font-size");
|
|
31
|
-
}
|
|
32
|
-
function dr(t, r) {
|
|
1
|
+
import { jsx as c, Fragment as J, jsxs as X } from "react/jsx-runtime";
|
|
2
|
+
import { u as lt, j as pt, g as dt, r as z } from "../../MantineThemeProvider-kHsOfZUW.js";
|
|
3
|
+
import { useState as V, useRef as Y, useEffect as D, forwardRef as j } from "react";
|
|
4
|
+
import { p as tt, u as P, a as $, B as y, d as I, f as M, c as E, e as L, h as ot, b as k } from "../../polymorphic-factory-DUeudAZR.js";
|
|
5
|
+
import ut from "react-dom";
|
|
6
|
+
import '../../assets/Button.css';function ft(t, o) {
|
|
33
7
|
try {
|
|
34
|
-
return t.addEventListener("change",
|
|
8
|
+
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
35
9
|
} catch {
|
|
36
|
-
return t.addListener(
|
|
10
|
+
return t.addListener(o), () => t.removeListener(o);
|
|
37
11
|
}
|
|
38
12
|
}
|
|
39
|
-
function
|
|
13
|
+
function yt(t, o) {
|
|
40
14
|
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
41
15
|
}
|
|
42
|
-
function
|
|
16
|
+
function gt(t, o, { getInitialValueInEffect: n } = {
|
|
43
17
|
getInitialValueInEffect: !0
|
|
44
18
|
}) {
|
|
45
|
-
const [
|
|
46
|
-
n ?
|
|
47
|
-
),
|
|
48
|
-
return
|
|
19
|
+
const [s, r] = V(
|
|
20
|
+
n ? o : yt(t)
|
|
21
|
+
), e = Y(null);
|
|
22
|
+
return D(() => {
|
|
49
23
|
if ("matchMedia" in window)
|
|
50
|
-
return
|
|
51
|
-
}, [t]),
|
|
24
|
+
return e.current = window.matchMedia(t), r(e.current.matches), ft(e.current, (a) => r(a.matches));
|
|
25
|
+
}, [t]), s;
|
|
52
26
|
}
|
|
53
|
-
function
|
|
54
|
-
const n =
|
|
55
|
-
|
|
27
|
+
function bt(t, o) {
|
|
28
|
+
const n = Y(!1);
|
|
29
|
+
D(
|
|
56
30
|
() => () => {
|
|
57
31
|
n.current = !1;
|
|
58
32
|
},
|
|
59
33
|
[]
|
|
60
|
-
),
|
|
34
|
+
), D(() => {
|
|
61
35
|
if (n.current)
|
|
62
36
|
return t();
|
|
63
37
|
n.current = !0;
|
|
64
|
-
},
|
|
65
|
-
}
|
|
66
|
-
function hr(t, r) {
|
|
67
|
-
return gr("(prefers-reduced-motion: reduce)", t, r);
|
|
68
|
-
}
|
|
69
|
-
function bt(t) {
|
|
70
|
-
var r, n, e = "";
|
|
71
|
-
if (typeof t == "string" || typeof t == "number") e += t;
|
|
72
|
-
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
73
|
-
var o = t.length;
|
|
74
|
-
for (r = 0; r < o; r++) t[r] && (n = bt(t[r])) && (e && (e += " "), e += n);
|
|
75
|
-
} else for (n in t) t[n] && (e && (e += " "), e += n);
|
|
76
|
-
return e;
|
|
77
|
-
}
|
|
78
|
-
function L() {
|
|
79
|
-
for (var t, r, n = 0, e = "", o = arguments.length; n < o; n++) (t = arguments[n]) && (r = bt(t)) && (e && (e += " "), e += r);
|
|
80
|
-
return e;
|
|
81
|
-
}
|
|
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
|
-
});
|
|
89
|
-
}), r;
|
|
90
|
-
}
|
|
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
|
-
);
|
|
95
|
-
return vr(a);
|
|
96
|
-
}
|
|
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
|
-
}
|
|
100
|
-
const Nr = {
|
|
101
|
-
always: "mantine-focus-always",
|
|
102
|
-
auto: "mantine-focus-auto",
|
|
103
|
-
never: "mantine-focus-never"
|
|
104
|
-
};
|
|
105
|
-
function wr({ theme: t, options: r, unstyled: n }) {
|
|
106
|
-
return L(
|
|
107
|
-
(r == null ? void 0 : r.focusable) && !n && (t.focusClassName || Nr[t.focusRing]),
|
|
108
|
-
(r == null ? void 0 : r.active) && !n && t.activeClassName
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
function xr({
|
|
112
|
-
selector: t,
|
|
113
|
-
stylesCtx: r,
|
|
114
|
-
options: n,
|
|
115
|
-
props: e,
|
|
116
|
-
theme: o
|
|
117
|
-
}) {
|
|
118
|
-
return nt({
|
|
119
|
-
theme: o,
|
|
120
|
-
classNames: n == null ? void 0 : n.classNames,
|
|
121
|
-
props: (n == null ? void 0 : n.props) || e,
|
|
122
|
-
stylesCtx: r
|
|
123
|
-
})[t];
|
|
124
|
-
}
|
|
125
|
-
function ct({
|
|
126
|
-
selector: t,
|
|
127
|
-
stylesCtx: r,
|
|
128
|
-
theme: n,
|
|
129
|
-
classNames: e,
|
|
130
|
-
props: o
|
|
131
|
-
}) {
|
|
132
|
-
return nt({ theme: n, classNames: e, props: o, stylesCtx: r })[t];
|
|
133
|
-
}
|
|
134
|
-
function $r({ rootSelector: t, selector: r, className: n }) {
|
|
135
|
-
return t === r ? n : void 0;
|
|
136
|
-
}
|
|
137
|
-
function _r({ selector: t, classes: r, unstyled: n }) {
|
|
138
|
-
return n ? void 0 : r[t];
|
|
139
|
-
}
|
|
140
|
-
function Tr({
|
|
141
|
-
themeName: t,
|
|
142
|
-
classNamesPrefix: r,
|
|
143
|
-
selector: n,
|
|
144
|
-
withStaticClass: e
|
|
145
|
-
}) {
|
|
146
|
-
return e === !1 ? [] : t.map((o) => `${r}-${o}-${n}`);
|
|
147
|
-
}
|
|
148
|
-
function Rr({
|
|
149
|
-
themeName: t,
|
|
150
|
-
theme: r,
|
|
151
|
-
selector: n,
|
|
152
|
-
props: e,
|
|
153
|
-
stylesCtx: o
|
|
154
|
-
}) {
|
|
155
|
-
return t.map(
|
|
156
|
-
(a) => {
|
|
157
|
-
var i, s;
|
|
158
|
-
return (s = nt({
|
|
159
|
-
theme: r,
|
|
160
|
-
classNames: (i = r.components[a]) == null ? void 0 : i.classNames,
|
|
161
|
-
props: e,
|
|
162
|
-
stylesCtx: o
|
|
163
|
-
})) == null ? void 0 : s[n];
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
function Pr({
|
|
168
|
-
options: t,
|
|
169
|
-
classes: r,
|
|
170
|
-
selector: n,
|
|
171
|
-
unstyled: e
|
|
172
|
-
}) {
|
|
173
|
-
return t != null && t.variant && !e ? r[`${n}--${t.variant}`] : void 0;
|
|
174
|
-
}
|
|
175
|
-
function Cr({
|
|
176
|
-
theme: t,
|
|
177
|
-
options: r,
|
|
178
|
-
themeName: n,
|
|
179
|
-
selector: e,
|
|
180
|
-
classNamesPrefix: o,
|
|
181
|
-
classNames: a,
|
|
182
|
-
classes: i,
|
|
183
|
-
unstyled: s,
|
|
184
|
-
className: p,
|
|
185
|
-
rootSelector: c,
|
|
186
|
-
props: m,
|
|
187
|
-
stylesCtx: u,
|
|
188
|
-
withStaticClasses: l,
|
|
189
|
-
headless: g,
|
|
190
|
-
transformedStyles: d
|
|
191
|
-
}) {
|
|
192
|
-
return L(
|
|
193
|
-
wr({ 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
|
-
ct({ selector: e, stylesCtx: u, theme: t, classNames: a, props: m }),
|
|
197
|
-
ct({ selector: e, stylesCtx: u, theme: t, classNames: d, props: m }),
|
|
198
|
-
xr({ selector: e, stylesCtx: u, options: r, props: m, theme: t }),
|
|
199
|
-
$r({ rootSelector: c, selector: e, className: p }),
|
|
200
|
-
_r({ selector: e, classes: i, unstyled: s || g }),
|
|
201
|
-
l && !g && Tr({
|
|
202
|
-
themeName: n,
|
|
203
|
-
classNamesPrefix: o,
|
|
204
|
-
selector: e,
|
|
205
|
-
withStaticClass: r == null ? void 0 : r.withStaticClass
|
|
206
|
-
}),
|
|
207
|
-
r == null ? void 0 : r.className
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
function Br({
|
|
211
|
-
theme: t,
|
|
212
|
-
themeName: r,
|
|
213
|
-
props: n,
|
|
214
|
-
stylesCtx: e,
|
|
215
|
-
selector: o
|
|
216
|
-
}) {
|
|
217
|
-
return r.map(
|
|
218
|
-
(a) => {
|
|
219
|
-
var i;
|
|
220
|
-
return K({
|
|
221
|
-
theme: t,
|
|
222
|
-
styles: (i = t.components[a]) == null ? void 0 : i.styles,
|
|
223
|
-
props: n,
|
|
224
|
-
stylesCtx: e
|
|
225
|
-
})[o];
|
|
226
|
-
}
|
|
227
|
-
).reduce((a, i) => ({ ...a, ...i }), {});
|
|
228
|
-
}
|
|
229
|
-
function Z({ style: t, theme: r }) {
|
|
230
|
-
return Array.isArray(t) ? [...t].reduce(
|
|
231
|
-
(n, e) => ({ ...n, ...Z({ style: e, theme: r }) }),
|
|
232
|
-
{}
|
|
233
|
-
) : typeof t == "function" ? t(r) : t ?? {};
|
|
234
|
-
}
|
|
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
|
-
}
|
|
240
|
-
function Or({
|
|
241
|
-
vars: t,
|
|
242
|
-
varsResolver: r,
|
|
243
|
-
theme: n,
|
|
244
|
-
props: e,
|
|
245
|
-
stylesCtx: o,
|
|
246
|
-
selector: a,
|
|
247
|
-
themeName: i,
|
|
248
|
-
headless: s
|
|
249
|
-
}) {
|
|
250
|
-
var p;
|
|
251
|
-
return (p = Ar([
|
|
252
|
-
s ? {} : r == null ? void 0 : r(n, e, o),
|
|
253
|
-
...i.map((c) => {
|
|
254
|
-
var m, u, l;
|
|
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
|
-
}),
|
|
257
|
-
t == null ? void 0 : t(n, e, o)
|
|
258
|
-
])) == null ? void 0 : p[a];
|
|
259
|
-
}
|
|
260
|
-
function Lr({
|
|
261
|
-
theme: t,
|
|
262
|
-
themeName: r,
|
|
263
|
-
selector: n,
|
|
264
|
-
options: e,
|
|
265
|
-
props: o,
|
|
266
|
-
stylesCtx: a,
|
|
267
|
-
rootSelector: i,
|
|
268
|
-
styles: s,
|
|
269
|
-
style: p,
|
|
270
|
-
vars: c,
|
|
271
|
-
varsResolver: m,
|
|
272
|
-
headless: u,
|
|
273
|
-
withStylesTransform: l
|
|
274
|
-
}) {
|
|
275
|
-
return {
|
|
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
|
-
...Z({ style: e == null ? void 0 : e.style, theme: t })
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
function Yr({ props: t, stylesCtx: r, themeName: n }) {
|
|
285
|
-
var i;
|
|
286
|
-
const e = k(), o = (i = er()) == null ? void 0 : i();
|
|
287
|
-
return {
|
|
288
|
-
getTransformedStyles: (s) => o ? [
|
|
289
|
-
...s.map(
|
|
290
|
-
(c) => o(c, { props: t, theme: e, ctx: r })
|
|
291
|
-
),
|
|
292
|
-
...n.map(
|
|
293
|
-
(c) => {
|
|
294
|
-
var m;
|
|
295
|
-
return o((m = e.components[c]) == null ? void 0 : m.styles, { props: t, theme: e, ctx: r });
|
|
296
|
-
}
|
|
297
|
-
)
|
|
298
|
-
].filter(Boolean) : [],
|
|
299
|
-
withStylesTransform: !!o
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
function z({
|
|
303
|
-
name: t,
|
|
304
|
-
classes: r,
|
|
305
|
-
props: n,
|
|
306
|
-
stylesCtx: e,
|
|
307
|
-
className: o,
|
|
308
|
-
style: a,
|
|
309
|
-
rootSelector: i = "root",
|
|
310
|
-
unstyled: s,
|
|
311
|
-
classNames: p,
|
|
312
|
-
styles: c,
|
|
313
|
-
vars: m,
|
|
314
|
-
varsResolver: u
|
|
315
|
-
}) {
|
|
316
|
-
const l = k(), g = or(), d = ar(), h = ir(), b = (Array.isArray(t) ? t : [t]).filter((S) => S), { withStylesTransform: w, getTransformedStyles: T } = Yr({
|
|
317
|
-
props: n,
|
|
318
|
-
stylesCtx: e,
|
|
319
|
-
themeName: b
|
|
320
|
-
});
|
|
321
|
-
return (S, N) => ({
|
|
322
|
-
className: Cr({
|
|
323
|
-
theme: l,
|
|
324
|
-
options: N,
|
|
325
|
-
themeName: b,
|
|
326
|
-
selector: S,
|
|
327
|
-
classNamesPrefix: g,
|
|
328
|
-
classNames: p,
|
|
329
|
-
classes: r,
|
|
330
|
-
unstyled: s,
|
|
331
|
-
className: o,
|
|
332
|
-
rootSelector: i,
|
|
333
|
-
props: n,
|
|
334
|
-
stylesCtx: e,
|
|
335
|
-
withStaticClasses: d,
|
|
336
|
-
headless: h,
|
|
337
|
-
transformedStyles: T([N == null ? void 0 : N.styles, c])
|
|
338
|
-
}),
|
|
339
|
-
style: Lr({
|
|
340
|
-
theme: l,
|
|
341
|
-
themeName: b,
|
|
342
|
-
selector: S,
|
|
343
|
-
options: N,
|
|
344
|
-
props: n,
|
|
345
|
-
stylesCtx: e,
|
|
346
|
-
rootSelector: i,
|
|
347
|
-
styles: c,
|
|
348
|
-
style: a,
|
|
349
|
-
vars: m,
|
|
350
|
-
varsResolver: u,
|
|
351
|
-
headless: h,
|
|
352
|
-
withStylesTransform: w
|
|
353
|
-
})
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
function O(t, r, n) {
|
|
357
|
-
var i;
|
|
358
|
-
const e = k(), o = (i = e.components[t]) == null ? void 0 : i.defaultProps, a = typeof o == "function" ? o(e) : o;
|
|
359
|
-
return { ...r, ...a, ...rt(n) };
|
|
360
|
-
}
|
|
361
|
-
function X(t) {
|
|
362
|
-
return tt(t).reduce(
|
|
363
|
-
(r, n) => t[n] !== void 0 ? `${r}${fr(n)}:${t[n]};` : r,
|
|
364
|
-
""
|
|
365
|
-
).trim();
|
|
366
|
-
}
|
|
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
|
-
(s) => `@container ${s.query}{${t}{${X(s.styles)}}}`
|
|
370
|
-
) : [];
|
|
371
|
-
return `${o ? `${t}{${o}}` : ""}${a.join("")}${i.join("")}`.trim();
|
|
372
|
-
}
|
|
373
|
-
function Mr(t) {
|
|
374
|
-
const r = sr();
|
|
375
|
-
return /* @__PURE__ */ f(
|
|
376
|
-
"style",
|
|
377
|
-
{
|
|
378
|
-
"data-mantine-styles": "inline",
|
|
379
|
-
nonce: r == null ? void 0 : r(),
|
|
380
|
-
dangerouslySetInnerHTML: { __html: Er(t) }
|
|
381
|
-
}
|
|
382
|
-
);
|
|
383
|
-
}
|
|
384
|
-
function jr(t) {
|
|
385
|
-
const {
|
|
386
|
-
m: r,
|
|
387
|
-
mx: n,
|
|
388
|
-
my: e,
|
|
389
|
-
mt: o,
|
|
390
|
-
mb: a,
|
|
391
|
-
ml: i,
|
|
392
|
-
mr: s,
|
|
393
|
-
me: p,
|
|
394
|
-
ms: c,
|
|
395
|
-
p: m,
|
|
396
|
-
px: u,
|
|
397
|
-
py: l,
|
|
398
|
-
pt: g,
|
|
399
|
-
pb: d,
|
|
400
|
-
pl: h,
|
|
401
|
-
pr: b,
|
|
402
|
-
pe: w,
|
|
403
|
-
ps: T,
|
|
404
|
-
bd: S,
|
|
405
|
-
bg: N,
|
|
406
|
-
c: C,
|
|
407
|
-
opacity: y,
|
|
408
|
-
ff: x,
|
|
409
|
-
fz: v,
|
|
410
|
-
fw: B,
|
|
411
|
-
lts: H,
|
|
412
|
-
ta: V,
|
|
413
|
-
lh: Ct,
|
|
414
|
-
fs: Bt,
|
|
415
|
-
tt: At,
|
|
416
|
-
td: Ot,
|
|
417
|
-
w: Lt,
|
|
418
|
-
miw: Yt,
|
|
419
|
-
maw: Et,
|
|
420
|
-
h: Mt,
|
|
421
|
-
mih: jt,
|
|
422
|
-
mah: kt,
|
|
423
|
-
bgsz: zt,
|
|
424
|
-
bgp: Ft,
|
|
425
|
-
bgr: It,
|
|
426
|
-
bga: Wt,
|
|
427
|
-
pos: Gt,
|
|
428
|
-
top: Dt,
|
|
429
|
-
left: Ht,
|
|
430
|
-
bottom: Vt,
|
|
431
|
-
right: Xt,
|
|
432
|
-
inset: Ut,
|
|
433
|
-
display: qt,
|
|
434
|
-
flex: Qt,
|
|
435
|
-
hiddenFrom: Kt,
|
|
436
|
-
visibleFrom: Zt,
|
|
437
|
-
lightHidden: Jt,
|
|
438
|
-
darkHidden: tr,
|
|
439
|
-
sx: rr,
|
|
440
|
-
...nr
|
|
441
|
-
} = t;
|
|
442
|
-
return { styleProps: rt({
|
|
443
|
-
m: r,
|
|
444
|
-
mx: n,
|
|
445
|
-
my: e,
|
|
446
|
-
mt: o,
|
|
447
|
-
mb: a,
|
|
448
|
-
ml: i,
|
|
449
|
-
mr: s,
|
|
450
|
-
me: p,
|
|
451
|
-
ms: c,
|
|
452
|
-
p: m,
|
|
453
|
-
px: u,
|
|
454
|
-
py: l,
|
|
455
|
-
pt: g,
|
|
456
|
-
pb: d,
|
|
457
|
-
pl: h,
|
|
458
|
-
pr: b,
|
|
459
|
-
pe: w,
|
|
460
|
-
ps: T,
|
|
461
|
-
bd: S,
|
|
462
|
-
bg: N,
|
|
463
|
-
c: C,
|
|
464
|
-
opacity: y,
|
|
465
|
-
ff: x,
|
|
466
|
-
fz: v,
|
|
467
|
-
fw: B,
|
|
468
|
-
lts: H,
|
|
469
|
-
ta: V,
|
|
470
|
-
lh: Ct,
|
|
471
|
-
fs: Bt,
|
|
472
|
-
tt: At,
|
|
473
|
-
td: Ot,
|
|
474
|
-
w: Lt,
|
|
475
|
-
miw: Yt,
|
|
476
|
-
maw: Et,
|
|
477
|
-
h: Mt,
|
|
478
|
-
mih: jt,
|
|
479
|
-
mah: kt,
|
|
480
|
-
bgsz: zt,
|
|
481
|
-
bgp: Ft,
|
|
482
|
-
bgr: It,
|
|
483
|
-
bga: Wt,
|
|
484
|
-
pos: Gt,
|
|
485
|
-
top: Dt,
|
|
486
|
-
left: Ht,
|
|
487
|
-
bottom: Vt,
|
|
488
|
-
right: Xt,
|
|
489
|
-
inset: Ut,
|
|
490
|
-
display: qt,
|
|
491
|
-
flex: Qt,
|
|
492
|
-
hiddenFrom: Kt,
|
|
493
|
-
visibleFrom: Zt,
|
|
494
|
-
lightHidden: Jt,
|
|
495
|
-
darkHidden: tr,
|
|
496
|
-
sx: rr
|
|
497
|
-
}), rest: nr };
|
|
498
|
-
}
|
|
499
|
-
const kr = {
|
|
500
|
-
m: { type: "spacing", property: "margin" },
|
|
501
|
-
mt: { type: "spacing", property: "marginTop" },
|
|
502
|
-
mb: { type: "spacing", property: "marginBottom" },
|
|
503
|
-
ml: { type: "spacing", property: "marginLeft" },
|
|
504
|
-
mr: { type: "spacing", property: "marginRight" },
|
|
505
|
-
ms: { type: "spacing", property: "marginInlineStart" },
|
|
506
|
-
me: { type: "spacing", property: "marginInlineEnd" },
|
|
507
|
-
mx: { type: "spacing", property: "marginInline" },
|
|
508
|
-
my: { type: "spacing", property: "marginBlock" },
|
|
509
|
-
p: { type: "spacing", property: "padding" },
|
|
510
|
-
pt: { type: "spacing", property: "paddingTop" },
|
|
511
|
-
pb: { type: "spacing", property: "paddingBottom" },
|
|
512
|
-
pl: { type: "spacing", property: "paddingLeft" },
|
|
513
|
-
pr: { type: "spacing", property: "paddingRight" },
|
|
514
|
-
ps: { type: "spacing", property: "paddingInlineStart" },
|
|
515
|
-
pe: { type: "spacing", property: "paddingInlineEnd" },
|
|
516
|
-
px: { type: "spacing", property: "paddingInline" },
|
|
517
|
-
py: { type: "spacing", property: "paddingBlock" },
|
|
518
|
-
bd: { type: "border", property: "border" },
|
|
519
|
-
bg: { type: "color", property: "background" },
|
|
520
|
-
c: { type: "textColor", property: "color" },
|
|
521
|
-
opacity: { type: "identity", property: "opacity" },
|
|
522
|
-
ff: { type: "fontFamily", property: "fontFamily" },
|
|
523
|
-
fz: { type: "fontSize", property: "fontSize" },
|
|
524
|
-
fw: { type: "identity", property: "fontWeight" },
|
|
525
|
-
lts: { type: "size", property: "letterSpacing" },
|
|
526
|
-
ta: { type: "identity", property: "textAlign" },
|
|
527
|
-
lh: { type: "lineHeight", property: "lineHeight" },
|
|
528
|
-
fs: { type: "identity", property: "fontStyle" },
|
|
529
|
-
tt: { type: "identity", property: "textTransform" },
|
|
530
|
-
td: { type: "identity", property: "textDecoration" },
|
|
531
|
-
w: { type: "spacing", property: "width" },
|
|
532
|
-
miw: { type: "spacing", property: "minWidth" },
|
|
533
|
-
maw: { type: "spacing", property: "maxWidth" },
|
|
534
|
-
h: { type: "spacing", property: "height" },
|
|
535
|
-
mih: { type: "spacing", property: "minHeight" },
|
|
536
|
-
mah: { type: "spacing", property: "maxHeight" },
|
|
537
|
-
bgsz: { type: "size", property: "backgroundSize" },
|
|
538
|
-
bgp: { type: "identity", property: "backgroundPosition" },
|
|
539
|
-
bgr: { type: "identity", property: "backgroundRepeat" },
|
|
540
|
-
bga: { type: "identity", property: "backgroundAttachment" },
|
|
541
|
-
pos: { type: "identity", property: "position" },
|
|
542
|
-
top: { type: "size", property: "top" },
|
|
543
|
-
left: { type: "size", property: "left" },
|
|
544
|
-
bottom: { type: "size", property: "bottom" },
|
|
545
|
-
right: { type: "size", property: "right" },
|
|
546
|
-
inset: { type: "size", property: "inset" },
|
|
547
|
-
display: { type: "identity", property: "display" },
|
|
548
|
-
flex: { type: "identity", property: "flex" }
|
|
549
|
-
};
|
|
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
|
-
}
|
|
554
|
-
function zr(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
|
-
}
|
|
558
|
-
function Fr(t, r) {
|
|
559
|
-
if (typeof t == "number")
|
|
560
|
-
return R(t);
|
|
561
|
-
if (typeof t == "string") {
|
|
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
|
-
}
|
|
566
|
-
return t;
|
|
567
|
-
}
|
|
568
|
-
const pt = {
|
|
569
|
-
text: "var(--mantine-font-family)",
|
|
570
|
-
mono: "var(--mantine-font-family-monospace)",
|
|
571
|
-
monospace: "var(--mantine-font-family-monospace)",
|
|
572
|
-
heading: "var(--mantine-font-family-headings)",
|
|
573
|
-
headings: "var(--mantine-font-family-headings)"
|
|
574
|
-
};
|
|
575
|
-
function Ir(t) {
|
|
576
|
-
return typeof t == "string" && t in pt ? pt[t] : t;
|
|
577
|
-
}
|
|
578
|
-
const Wr = ["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" && Wr.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" ? R(t) : typeof t == "string" ? R(t) : t;
|
|
581
|
-
}
|
|
582
|
-
function Dr(t) {
|
|
583
|
-
return t;
|
|
38
|
+
}, o);
|
|
584
39
|
}
|
|
585
|
-
|
|
586
|
-
|
|
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;
|
|
40
|
+
function ht(t, o) {
|
|
41
|
+
return gt("(prefers-reduced-motion: reduce)", t, o);
|
|
588
42
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
function Ur(t, r) {
|
|
593
|
-
if (typeof t == "number")
|
|
594
|
-
return R(t);
|
|
595
|
-
if (typeof t == "string") {
|
|
596
|
-
const n = t.replace("-", "");
|
|
597
|
-
if (!(n in r.spacing))
|
|
598
|
-
return R(t);
|
|
599
|
-
const e = `--mantine-spacing-${n}`;
|
|
600
|
-
return t.startsWith("-") ? `calc(var(${e}) * -1)` : `var(${e})`;
|
|
601
|
-
}
|
|
602
|
-
return t;
|
|
603
|
-
}
|
|
604
|
-
const U = {
|
|
605
|
-
color: et,
|
|
606
|
-
textColor: zr,
|
|
607
|
-
fontSize: Gr,
|
|
608
|
-
spacing: Ur,
|
|
609
|
-
identity: Dr,
|
|
610
|
-
size: Xr,
|
|
611
|
-
lineHeight: Vr,
|
|
612
|
-
fontFamily: Ir,
|
|
613
|
-
border: Fr
|
|
614
|
-
};
|
|
615
|
-
function mt(t) {
|
|
616
|
-
return t.replace("(min-width: ", "").replace("em)", "");
|
|
617
|
-
}
|
|
618
|
-
function qr({
|
|
619
|
-
media: t,
|
|
620
|
-
...r
|
|
621
|
-
}) {
|
|
622
|
-
const e = Object.keys(t).sort((o, a) => Number(mt(o)) - Number(mt(a))).map((o) => ({ query: o, styles: t[o] }));
|
|
623
|
-
return { ...r, media: e };
|
|
624
|
-
}
|
|
625
|
-
function Qr(t) {
|
|
626
|
-
if (typeof t != "object" || t === null)
|
|
627
|
-
return !1;
|
|
628
|
-
const r = Object.keys(t);
|
|
629
|
-
return !(r.length === 1 && r[0] === "base");
|
|
630
|
-
}
|
|
631
|
-
function Kr(t) {
|
|
632
|
-
return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
|
|
633
|
-
}
|
|
634
|
-
function Zr(t) {
|
|
635
|
-
return typeof t == "object" && t !== null ? tt(t).filter((r) => r !== "base") : [];
|
|
636
|
-
}
|
|
637
|
-
function Jr(t, r) {
|
|
638
|
-
return typeof t == "object" && t !== null && r in t ? t[r] : t;
|
|
639
|
-
}
|
|
640
|
-
function tn({
|
|
641
|
-
styleProps: t,
|
|
642
|
-
data: r,
|
|
643
|
-
theme: n
|
|
644
|
-
}) {
|
|
645
|
-
return qr(
|
|
646
|
-
tt(t).reduce(
|
|
647
|
-
(e, o) => {
|
|
648
|
-
if (o === "hiddenFrom" || o === "visibleFrom" || o === "sx")
|
|
649
|
-
return e;
|
|
650
|
-
const a = r[o], i = Array.isArray(a.property) ? a.property : [a.property], s = Kr(t[o]);
|
|
651
|
-
if (!Qr(t[o]))
|
|
652
|
-
return i.forEach((c) => {
|
|
653
|
-
e.inlineStyles[c] = U[a.type](s, n);
|
|
654
|
-
}), e;
|
|
655
|
-
e.hasResponsiveStyles = !0;
|
|
656
|
-
const p = Zr(t[o]);
|
|
657
|
-
return i.forEach((c) => {
|
|
658
|
-
s && (e.styles[c] = U[a.type](s, n)), p.forEach((m) => {
|
|
659
|
-
const u = `(min-width: ${n.breakpoints[m]})`;
|
|
660
|
-
e.media[u] = {
|
|
661
|
-
...e.media[u],
|
|
662
|
-
[c]: U[a.type](
|
|
663
|
-
Jr(t[o], m),
|
|
664
|
-
n
|
|
665
|
-
)
|
|
666
|
-
};
|
|
667
|
-
});
|
|
668
|
-
}), e;
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
hasResponsiveStyles: !1,
|
|
672
|
-
styles: {},
|
|
673
|
-
inlineStyles: {},
|
|
674
|
-
media: {}
|
|
675
|
-
}
|
|
676
|
-
)
|
|
677
|
-
);
|
|
678
|
-
}
|
|
679
|
-
function rn() {
|
|
680
|
-
return `__m__-${ur().replace(/:/g, "")}`;
|
|
681
|
-
}
|
|
682
|
-
function ht(t) {
|
|
683
|
-
return t.startsWith("data-") ? t : `data-${t}`;
|
|
684
|
-
}
|
|
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[ht(n)] = t[n]), r;
|
|
689
|
-
}, {});
|
|
690
|
-
}
|
|
691
|
-
function St(t) {
|
|
692
|
-
return t ? typeof t == "string" ? { [ht(t)]: !0 } : Array.isArray(t) ? [...t].reduce(
|
|
693
|
-
(r, n) => ({ ...r, ...St(n) }),
|
|
694
|
-
{}
|
|
695
|
-
) : nn(t) : null;
|
|
696
|
-
}
|
|
697
|
-
function J(t, r) {
|
|
698
|
-
return Array.isArray(t) ? [...t].reduce(
|
|
699
|
-
(n, e) => ({ ...n, ...J(e, r) }),
|
|
700
|
-
{}
|
|
701
|
-
) : typeof t == "function" ? t(r) : t ?? {};
|
|
702
|
-
}
|
|
703
|
-
function en({
|
|
704
|
-
theme: t,
|
|
705
|
-
style: r,
|
|
706
|
-
vars: n,
|
|
707
|
-
styleProps: e
|
|
708
|
-
}) {
|
|
709
|
-
const o = J(r, t), a = J(n, t);
|
|
710
|
-
return { ...o, ...a, ...e };
|
|
711
|
-
}
|
|
712
|
-
const vt = P(
|
|
713
|
-
({
|
|
714
|
-
component: t,
|
|
715
|
-
style: r,
|
|
716
|
-
__vars: n,
|
|
717
|
-
className: e,
|
|
718
|
-
variant: o,
|
|
719
|
-
mod: a,
|
|
720
|
-
size: i,
|
|
721
|
-
hiddenFrom: s,
|
|
722
|
-
visibleFrom: p,
|
|
723
|
-
lightHidden: c,
|
|
724
|
-
darkHidden: m,
|
|
725
|
-
renderRoot: u,
|
|
726
|
-
__size: l,
|
|
727
|
-
...g
|
|
728
|
-
}, d) => {
|
|
729
|
-
var v;
|
|
730
|
-
const h = k(), b = t || "div", { styleProps: w, rest: T } = jr(g), S = cr(), N = (v = S == null ? void 0 : S()) == null ? void 0 : v(w.sx), C = rn(), y = tn({
|
|
731
|
-
styleProps: w,
|
|
732
|
-
theme: h,
|
|
733
|
-
data: kr
|
|
734
|
-
}), x = {
|
|
735
|
-
ref: d,
|
|
736
|
-
style: en({
|
|
737
|
-
theme: h,
|
|
738
|
-
style: r,
|
|
739
|
-
vars: n,
|
|
740
|
-
styleProps: y.inlineStyles
|
|
741
|
-
}),
|
|
742
|
-
className: L(e, N, {
|
|
743
|
-
[C]: y.hasResponsiveStyles,
|
|
744
|
-
"mantine-light-hidden": c,
|
|
745
|
-
"mantine-dark-hidden": m,
|
|
746
|
-
[`mantine-hidden-from-${s}`]: s,
|
|
747
|
-
[`mantine-visible-from-${p}`]: p
|
|
748
|
-
}),
|
|
749
|
-
"data-variant": o,
|
|
750
|
-
"data-size": yt(i) ? void 0 : i || void 0,
|
|
751
|
-
size: l,
|
|
752
|
-
...St(a),
|
|
753
|
-
...T
|
|
754
|
-
};
|
|
755
|
-
return /* @__PURE__ */ j(q, { children: [
|
|
756
|
-
y.hasResponsiveStyles && /* @__PURE__ */ f(
|
|
757
|
-
Mr,
|
|
758
|
-
{
|
|
759
|
-
selector: `.${C}`,
|
|
760
|
-
styles: y.styles,
|
|
761
|
-
media: y.media
|
|
762
|
-
}
|
|
763
|
-
),
|
|
764
|
-
typeof u == "function" ? u(x) : /* @__PURE__ */ f(b, { ...x })
|
|
765
|
-
] });
|
|
766
|
-
}
|
|
767
|
-
);
|
|
768
|
-
vt.displayName = "@mantine/core/Box";
|
|
769
|
-
const $ = vt;
|
|
770
|
-
function Nt(t) {
|
|
771
|
-
return t;
|
|
772
|
-
}
|
|
773
|
-
function ot(t) {
|
|
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
|
-
}
|
|
780
|
-
function wt(t) {
|
|
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
|
-
}
|
|
787
|
-
var xt = { root: "m_87cf2631" };
|
|
788
|
-
const on = {
|
|
43
|
+
var nt = { root: "m_87cf2631" };
|
|
44
|
+
const vt = {
|
|
789
45
|
__staticSelector: "UnstyledButton"
|
|
790
|
-
},
|
|
791
|
-
(t,
|
|
792
|
-
const n =
|
|
793
|
-
className:
|
|
794
|
-
component:
|
|
795
|
-
__staticSelector:
|
|
796
|
-
unstyled:
|
|
797
|
-
classNames:
|
|
798
|
-
styles:
|
|
799
|
-
style:
|
|
800
|
-
...
|
|
801
|
-
} = n,
|
|
802
|
-
name:
|
|
46
|
+
}, W = tt(
|
|
47
|
+
(t, o) => {
|
|
48
|
+
const n = P("UnstyledButton", vt, t), {
|
|
49
|
+
className: s,
|
|
50
|
+
component: r = "button",
|
|
51
|
+
__staticSelector: e,
|
|
52
|
+
unstyled: a,
|
|
53
|
+
classNames: i,
|
|
54
|
+
styles: m,
|
|
55
|
+
style: p,
|
|
56
|
+
...u
|
|
57
|
+
} = n, f = $({
|
|
58
|
+
name: e,
|
|
803
59
|
props: n,
|
|
804
|
-
classes:
|
|
805
|
-
className:
|
|
806
|
-
style:
|
|
807
|
-
classNames:
|
|
808
|
-
styles:
|
|
809
|
-
unstyled:
|
|
60
|
+
classes: nt,
|
|
61
|
+
className: s,
|
|
62
|
+
style: p,
|
|
63
|
+
classNames: i,
|
|
64
|
+
styles: m,
|
|
65
|
+
unstyled: a
|
|
810
66
|
});
|
|
811
|
-
return /* @__PURE__ */
|
|
812
|
-
|
|
67
|
+
return /* @__PURE__ */ c(
|
|
68
|
+
y,
|
|
813
69
|
{
|
|
814
|
-
...
|
|
815
|
-
component:
|
|
816
|
-
ref:
|
|
817
|
-
type:
|
|
818
|
-
...
|
|
70
|
+
...f("root", { focusable: !0 }),
|
|
71
|
+
component: r,
|
|
72
|
+
ref: o,
|
|
73
|
+
type: r === "button" ? "button" : void 0,
|
|
74
|
+
...u
|
|
819
75
|
}
|
|
820
76
|
);
|
|
821
77
|
}
|
|
822
78
|
);
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
const
|
|
79
|
+
W.classes = nt;
|
|
80
|
+
W.displayName = "@mantine/core/UnstyledButton";
|
|
81
|
+
const T = (t) => ({
|
|
826
82
|
in: { opacity: 1, transform: "scale(1)" },
|
|
827
83
|
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
828
84
|
transitionProperty: "transform, opacity"
|
|
829
|
-
}),
|
|
85
|
+
}), F = {
|
|
830
86
|
fade: {
|
|
831
87
|
in: { opacity: 1 },
|
|
832
88
|
out: { opacity: 0 },
|
|
@@ -919,26 +175,26 @@ const E = (t) => ({
|
|
|
919
175
|
transitionProperty: "transform, opacity"
|
|
920
176
|
},
|
|
921
177
|
pop: {
|
|
922
|
-
...
|
|
178
|
+
...T("bottom"),
|
|
923
179
|
common: { transformOrigin: "center center" }
|
|
924
180
|
},
|
|
925
181
|
"pop-bottom-left": {
|
|
926
|
-
...
|
|
182
|
+
...T("bottom"),
|
|
927
183
|
common: { transformOrigin: "bottom left" }
|
|
928
184
|
},
|
|
929
185
|
"pop-bottom-right": {
|
|
930
|
-
...
|
|
186
|
+
...T("bottom"),
|
|
931
187
|
common: { transformOrigin: "bottom right" }
|
|
932
188
|
},
|
|
933
189
|
"pop-top-left": {
|
|
934
|
-
...
|
|
190
|
+
...T("top"),
|
|
935
191
|
common: { transformOrigin: "top left" }
|
|
936
192
|
},
|
|
937
193
|
"pop-top-right": {
|
|
938
|
-
...
|
|
194
|
+
...T("top"),
|
|
939
195
|
common: { transformOrigin: "top right" }
|
|
940
196
|
}
|
|
941
|
-
},
|
|
197
|
+
}, K = {
|
|
942
198
|
entering: "in",
|
|
943
199
|
entered: "in",
|
|
944
200
|
exiting: "out",
|
|
@@ -946,394 +202,396 @@ const E = (t) => ({
|
|
|
946
202
|
"pre-exiting": "out",
|
|
947
203
|
"pre-entering": "out"
|
|
948
204
|
};
|
|
949
|
-
function
|
|
205
|
+
function wt({
|
|
950
206
|
transition: t,
|
|
951
|
-
state:
|
|
207
|
+
state: o,
|
|
952
208
|
duration: n,
|
|
953
|
-
timingFunction:
|
|
209
|
+
timingFunction: s
|
|
954
210
|
}) {
|
|
955
|
-
const
|
|
211
|
+
const r = {
|
|
956
212
|
WebkitBackfaceVisibility: "hidden",
|
|
957
213
|
willChange: "transform, opacity",
|
|
958
214
|
transitionDuration: `${n}ms`,
|
|
959
|
-
transitionTimingFunction:
|
|
215
|
+
transitionTimingFunction: s
|
|
960
216
|
};
|
|
961
|
-
return typeof t == "string" ? t in
|
|
962
|
-
transitionProperty:
|
|
963
|
-
...
|
|
964
|
-
...
|
|
965
|
-
...
|
|
217
|
+
return typeof t == "string" ? t in F ? {
|
|
218
|
+
transitionProperty: F[t].transitionProperty,
|
|
219
|
+
...r,
|
|
220
|
+
...F[t].common,
|
|
221
|
+
...F[t][K[o]]
|
|
966
222
|
} : {} : {
|
|
967
223
|
transitionProperty: t.transitionProperty,
|
|
968
|
-
...
|
|
224
|
+
...r,
|
|
969
225
|
...t.common,
|
|
970
|
-
...t[
|
|
226
|
+
...t[K[o]]
|
|
971
227
|
};
|
|
972
228
|
}
|
|
973
|
-
function
|
|
229
|
+
function St({
|
|
974
230
|
duration: t,
|
|
975
|
-
exitDuration:
|
|
231
|
+
exitDuration: o,
|
|
976
232
|
timingFunction: n,
|
|
977
|
-
mounted:
|
|
978
|
-
onEnter:
|
|
979
|
-
onExit:
|
|
980
|
-
onEntered:
|
|
981
|
-
onExited:
|
|
982
|
-
enterDelay:
|
|
983
|
-
exitDelay:
|
|
233
|
+
mounted: s,
|
|
234
|
+
onEnter: r,
|
|
235
|
+
onExit: e,
|
|
236
|
+
onEntered: a,
|
|
237
|
+
onExited: i,
|
|
238
|
+
enterDelay: m,
|
|
239
|
+
exitDelay: p
|
|
984
240
|
}) {
|
|
985
|
-
const
|
|
986
|
-
const
|
|
987
|
-
window.clearTimeout(
|
|
988
|
-
const
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
}),
|
|
993
|
-
typeof
|
|
994
|
-
typeof
|
|
995
|
-
},
|
|
241
|
+
const u = lt(), f = ht(), g = u.respectReducedMotion ? f : !1, [v, l] = V(g ? 0 : t), [S, w] = V(s ? "entered" : "exited"), _ = Y(-1), C = Y(-1), x = Y(-1), R = (d) => {
|
|
242
|
+
const N = d ? r : e, b = d ? a : i;
|
|
243
|
+
window.clearTimeout(_.current);
|
|
244
|
+
const O = g ? 0 : d ? t : o;
|
|
245
|
+
l(O), O === 0 ? (typeof N == "function" && N(), typeof b == "function" && b(), w(d ? "entered" : "exited")) : x.current = requestAnimationFrame(() => {
|
|
246
|
+
ut.flushSync(() => {
|
|
247
|
+
w(d ? "pre-entering" : "pre-exiting");
|
|
248
|
+
}), x.current = requestAnimationFrame(() => {
|
|
249
|
+
typeof N == "function" && N(), w(d ? "entering" : "exiting"), _.current = window.setTimeout(() => {
|
|
250
|
+
typeof b == "function" && b(), w(d ? "entered" : "exited");
|
|
251
|
+
}, O);
|
|
996
252
|
});
|
|
997
253
|
});
|
|
998
|
-
},
|
|
999
|
-
if (window.clearTimeout(
|
|
1000
|
-
|
|
254
|
+
}, Q = (d) => {
|
|
255
|
+
if (window.clearTimeout(C.current), typeof (d ? m : p) != "number") {
|
|
256
|
+
R(d);
|
|
1001
257
|
return;
|
|
1002
258
|
}
|
|
1003
|
-
|
|
259
|
+
C.current = window.setTimeout(
|
|
1004
260
|
() => {
|
|
1005
|
-
|
|
261
|
+
R(d);
|
|
1006
262
|
},
|
|
1007
|
-
|
|
263
|
+
d ? m : p
|
|
1008
264
|
);
|
|
1009
265
|
};
|
|
1010
|
-
return
|
|
1011
|
-
|
|
1012
|
-
}, [
|
|
266
|
+
return bt(() => {
|
|
267
|
+
Q(s);
|
|
268
|
+
}, [s]), D(
|
|
1013
269
|
() => () => {
|
|
1014
|
-
window.clearTimeout(
|
|
270
|
+
window.clearTimeout(_.current), cancelAnimationFrame(x.current);
|
|
1015
271
|
},
|
|
1016
272
|
[]
|
|
1017
273
|
), {
|
|
1018
|
-
transitionDuration:
|
|
1019
|
-
transitionStatus:
|
|
274
|
+
transitionDuration: v,
|
|
275
|
+
transitionStatus: S,
|
|
1020
276
|
transitionTimingFunction: n || "ease"
|
|
1021
277
|
};
|
|
1022
278
|
}
|
|
1023
|
-
function
|
|
279
|
+
function rt({
|
|
1024
280
|
keepMounted: t,
|
|
1025
|
-
transition:
|
|
281
|
+
transition: o = "fade",
|
|
1026
282
|
duration: n = 250,
|
|
1027
|
-
exitDuration:
|
|
1028
|
-
mounted:
|
|
1029
|
-
children:
|
|
1030
|
-
timingFunction:
|
|
1031
|
-
onExit:
|
|
1032
|
-
onEntered:
|
|
1033
|
-
onEnter:
|
|
1034
|
-
onExited:
|
|
1035
|
-
enterDelay:
|
|
1036
|
-
exitDelay:
|
|
283
|
+
exitDuration: s = n,
|
|
284
|
+
mounted: r,
|
|
285
|
+
children: e,
|
|
286
|
+
timingFunction: a = "ease",
|
|
287
|
+
onExit: i,
|
|
288
|
+
onEntered: m,
|
|
289
|
+
onEnter: p,
|
|
290
|
+
onExited: u,
|
|
291
|
+
enterDelay: f,
|
|
292
|
+
exitDelay: g
|
|
1037
293
|
}) {
|
|
1038
|
-
const
|
|
1039
|
-
mounted:
|
|
1040
|
-
exitDuration:
|
|
294
|
+
const v = pt(), { transitionDuration: l, transitionStatus: S, transitionTimingFunction: w } = St({
|
|
295
|
+
mounted: r,
|
|
296
|
+
exitDuration: s,
|
|
1041
297
|
duration: n,
|
|
1042
|
-
timingFunction:
|
|
1043
|
-
onExit:
|
|
1044
|
-
onEntered:
|
|
1045
|
-
onEnter:
|
|
1046
|
-
onExited:
|
|
1047
|
-
enterDelay:
|
|
1048
|
-
exitDelay:
|
|
298
|
+
timingFunction: a,
|
|
299
|
+
onExit: i,
|
|
300
|
+
onEntered: m,
|
|
301
|
+
onEnter: p,
|
|
302
|
+
onExited: u,
|
|
303
|
+
enterDelay: f,
|
|
304
|
+
exitDelay: g
|
|
1049
305
|
});
|
|
1050
|
-
return
|
|
1051
|
-
|
|
1052
|
-
transition:
|
|
1053
|
-
duration:
|
|
1054
|
-
state:
|
|
1055
|
-
timingFunction:
|
|
306
|
+
return l === 0 || v === "test" ? r ? /* @__PURE__ */ c(J, { children: e({}) }) : t ? e({ display: "none" }) : null : S === "exited" ? t ? e({ display: "none" }) : null : /* @__PURE__ */ c(J, { children: e(
|
|
307
|
+
wt({
|
|
308
|
+
transition: o,
|
|
309
|
+
duration: l,
|
|
310
|
+
state: S,
|
|
311
|
+
timingFunction: w
|
|
1056
312
|
})
|
|
1057
313
|
) });
|
|
1058
314
|
}
|
|
1059
|
-
|
|
1060
|
-
var
|
|
1061
|
-
const
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1064
|
-
/* @__PURE__ */
|
|
315
|
+
rt.displayName = "@mantine/core/Transition";
|
|
316
|
+
var h = { 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" };
|
|
317
|
+
const et = j(({ className: t, ...o }, n) => /* @__PURE__ */ X(y, { component: "span", className: I(h.barsLoader, t), ...o, ref: n, children: [
|
|
318
|
+
/* @__PURE__ */ c("span", { className: h.bar }),
|
|
319
|
+
/* @__PURE__ */ c("span", { className: h.bar }),
|
|
320
|
+
/* @__PURE__ */ c("span", { className: h.bar })
|
|
1065
321
|
] }));
|
|
1066
|
-
|
|
1067
|
-
const
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
322
|
+
et.displayName = "@mantine/core/Bars";
|
|
323
|
+
const at = j(({ className: t, ...o }, n) => /* @__PURE__ */ X(y, { component: "span", className: I(h.dotsLoader, t), ...o, ref: n, children: [
|
|
324
|
+
/* @__PURE__ */ c("span", { className: h.dot }),
|
|
325
|
+
/* @__PURE__ */ c("span", { className: h.dot }),
|
|
326
|
+
/* @__PURE__ */ c("span", { className: h.dot })
|
|
1071
327
|
] }));
|
|
1072
|
-
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
const
|
|
1076
|
-
bars:
|
|
1077
|
-
oval:
|
|
1078
|
-
dots:
|
|
1079
|
-
},
|
|
1080
|
-
loaders:
|
|
328
|
+
at.displayName = "@mantine/core/Dots";
|
|
329
|
+
const st = j(({ className: t, ...o }, n) => /* @__PURE__ */ c(y, { component: "span", className: I(h.ovalLoader, t), ...o, ref: n }));
|
|
330
|
+
st.displayName = "@mantine/core/Oval";
|
|
331
|
+
const it = {
|
|
332
|
+
bars: et,
|
|
333
|
+
oval: st,
|
|
334
|
+
dots: at
|
|
335
|
+
}, Nt = {
|
|
336
|
+
loaders: it,
|
|
1081
337
|
type: "oval"
|
|
1082
|
-
},
|
|
338
|
+
}, Pt = E((t, { size: o, color: n }) => ({
|
|
1083
339
|
root: {
|
|
1084
|
-
"--loader-size":
|
|
1085
|
-
"--loader-color": n ?
|
|
340
|
+
"--loader-size": L(o, "loader-size"),
|
|
341
|
+
"--loader-color": n ? dt(n, t) : void 0
|
|
1086
342
|
}
|
|
1087
|
-
}),
|
|
1088
|
-
const n =
|
|
1089
|
-
size:
|
|
1090
|
-
color:
|
|
1091
|
-
type:
|
|
1092
|
-
vars:
|
|
1093
|
-
className:
|
|
1094
|
-
style:
|
|
1095
|
-
classNames:
|
|
1096
|
-
styles:
|
|
1097
|
-
unstyled:
|
|
1098
|
-
loaders:
|
|
1099
|
-
variant:
|
|
1100
|
-
children:
|
|
1101
|
-
...
|
|
1102
|
-
} = n,
|
|
343
|
+
})), U = M((t, o) => {
|
|
344
|
+
const n = P("Loader", Nt, t), {
|
|
345
|
+
size: s,
|
|
346
|
+
color: r,
|
|
347
|
+
type: e,
|
|
348
|
+
vars: a,
|
|
349
|
+
className: i,
|
|
350
|
+
style: m,
|
|
351
|
+
classNames: p,
|
|
352
|
+
styles: u,
|
|
353
|
+
unstyled: f,
|
|
354
|
+
loaders: g,
|
|
355
|
+
variant: v,
|
|
356
|
+
children: l,
|
|
357
|
+
...S
|
|
358
|
+
} = n, w = $({
|
|
1103
359
|
name: "Loader",
|
|
1104
360
|
props: n,
|
|
1105
|
-
classes:
|
|
1106
|
-
className:
|
|
1107
|
-
style:
|
|
1108
|
-
classNames:
|
|
1109
|
-
styles:
|
|
1110
|
-
unstyled:
|
|
1111
|
-
vars:
|
|
1112
|
-
varsResolver:
|
|
361
|
+
classes: h,
|
|
362
|
+
className: i,
|
|
363
|
+
style: m,
|
|
364
|
+
classNames: p,
|
|
365
|
+
styles: u,
|
|
366
|
+
unstyled: f,
|
|
367
|
+
vars: a,
|
|
368
|
+
varsResolver: Pt
|
|
1113
369
|
});
|
|
1114
|
-
return
|
|
1115
|
-
|
|
370
|
+
return l ? /* @__PURE__ */ c(y, { ...w("root"), ref: o, ...S, children: l }) : /* @__PURE__ */ c(
|
|
371
|
+
y,
|
|
1116
372
|
{
|
|
1117
|
-
...
|
|
1118
|
-
ref:
|
|
1119
|
-
component:
|
|
1120
|
-
variant:
|
|
1121
|
-
size:
|
|
1122
|
-
...
|
|
373
|
+
...w("root"),
|
|
374
|
+
ref: o,
|
|
375
|
+
component: g[e],
|
|
376
|
+
variant: v,
|
|
377
|
+
size: s,
|
|
378
|
+
...S
|
|
1123
379
|
}
|
|
1124
380
|
);
|
|
1125
381
|
});
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
var
|
|
1130
|
-
const
|
|
382
|
+
U.defaultLoaders = it;
|
|
383
|
+
U.classes = h;
|
|
384
|
+
U.displayName = "@mantine/core/Loader";
|
|
385
|
+
var B = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
386
|
+
const Z = {
|
|
1131
387
|
orientation: "horizontal"
|
|
1132
|
-
},
|
|
1133
|
-
group: { "--button-border-width":
|
|
1134
|
-
}),
|
|
1135
|
-
const n =
|
|
1136
|
-
className:
|
|
1137
|
-
style:
|
|
1138
|
-
classNames:
|
|
1139
|
-
styles:
|
|
1140
|
-
unstyled:
|
|
1141
|
-
orientation:
|
|
1142
|
-
vars:
|
|
1143
|
-
borderWidth:
|
|
1144
|
-
variant:
|
|
1145
|
-
mod:
|
|
1146
|
-
...
|
|
1147
|
-
} =
|
|
388
|
+
}, xt = E((t, { borderWidth: o }) => ({
|
|
389
|
+
group: { "--button-border-width": z(o) }
|
|
390
|
+
})), A = M((t, o) => {
|
|
391
|
+
const n = P("ButtonGroup", Z, t), {
|
|
392
|
+
className: s,
|
|
393
|
+
style: r,
|
|
394
|
+
classNames: e,
|
|
395
|
+
styles: a,
|
|
396
|
+
unstyled: i,
|
|
397
|
+
orientation: m,
|
|
398
|
+
vars: p,
|
|
399
|
+
borderWidth: u,
|
|
400
|
+
variant: f,
|
|
401
|
+
mod: g,
|
|
402
|
+
...v
|
|
403
|
+
} = P("ButtonGroup", Z, t), l = $({
|
|
1148
404
|
name: "ButtonGroup",
|
|
1149
405
|
props: n,
|
|
1150
|
-
classes:
|
|
1151
|
-
className:
|
|
1152
|
-
style:
|
|
1153
|
-
classNames:
|
|
1154
|
-
styles:
|
|
1155
|
-
unstyled:
|
|
1156
|
-
vars:
|
|
1157
|
-
varsResolver:
|
|
406
|
+
classes: B,
|
|
407
|
+
className: s,
|
|
408
|
+
style: r,
|
|
409
|
+
classNames: e,
|
|
410
|
+
styles: a,
|
|
411
|
+
unstyled: i,
|
|
412
|
+
vars: p,
|
|
413
|
+
varsResolver: xt,
|
|
1158
414
|
rootSelector: "group"
|
|
1159
415
|
});
|
|
1160
|
-
return /* @__PURE__ */
|
|
1161
|
-
|
|
416
|
+
return /* @__PURE__ */ c(
|
|
417
|
+
y,
|
|
1162
418
|
{
|
|
1163
|
-
...
|
|
1164
|
-
ref:
|
|
1165
|
-
variant:
|
|
1166
|
-
mod: [{ "data-orientation":
|
|
419
|
+
...l("group"),
|
|
420
|
+
ref: o,
|
|
421
|
+
variant: f,
|
|
422
|
+
mod: [{ "data-orientation": m }, g],
|
|
1167
423
|
role: "group",
|
|
1168
|
-
...
|
|
424
|
+
...v
|
|
1169
425
|
}
|
|
1170
426
|
);
|
|
1171
427
|
});
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
const
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
428
|
+
A.classes = B;
|
|
429
|
+
A.displayName = "@mantine/core/ButtonGroup";
|
|
430
|
+
const q = {}, Bt = E(
|
|
431
|
+
(t, { radius: o, color: n, gradient: s, variant: r, autoContrast: e, size: a }) => {
|
|
432
|
+
const i = t.variantColorResolver({
|
|
433
|
+
color: n || t.primaryColor,
|
|
434
|
+
theme: t,
|
|
435
|
+
gradient: s,
|
|
436
|
+
variant: r || "filled",
|
|
437
|
+
autoContrast: e
|
|
438
|
+
});
|
|
439
|
+
return {
|
|
440
|
+
groupSection: {
|
|
441
|
+
"--section-height": L(a, "section-height"),
|
|
442
|
+
"--section-padding-x": L(a, "section-padding-x"),
|
|
443
|
+
"--section-fz": a != null && a.includes("compact") ? k(a.replace("compact-", "")) : k(a),
|
|
444
|
+
"--section-radius": o === void 0 ? void 0 : ot(o),
|
|
445
|
+
"--section-bg": n || r ? i.background : void 0,
|
|
446
|
+
"--section-color": i.color,
|
|
447
|
+
"--section-bd": n || r ? i.border : void 0
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
), H = M((t, o) => {
|
|
452
|
+
const n = P("ButtonGroupSection", q, t), {
|
|
453
|
+
className: s,
|
|
454
|
+
style: r,
|
|
455
|
+
classNames: e,
|
|
456
|
+
styles: a,
|
|
457
|
+
unstyled: i,
|
|
458
|
+
vars: m,
|
|
459
|
+
variant: p,
|
|
460
|
+
gradient: u,
|
|
461
|
+
radius: f,
|
|
462
|
+
autoContrast: g,
|
|
463
|
+
...v
|
|
464
|
+
} = P("ButtonGroupSection", q, t), l = $({
|
|
1207
465
|
name: "ButtonGroupSection",
|
|
1208
466
|
props: n,
|
|
1209
|
-
classes:
|
|
1210
|
-
className:
|
|
1211
|
-
style:
|
|
1212
|
-
classNames:
|
|
1213
|
-
styles:
|
|
1214
|
-
unstyled:
|
|
1215
|
-
vars:
|
|
1216
|
-
varsResolver:
|
|
467
|
+
classes: B,
|
|
468
|
+
className: s,
|
|
469
|
+
style: r,
|
|
470
|
+
classNames: e,
|
|
471
|
+
styles: a,
|
|
472
|
+
unstyled: i,
|
|
473
|
+
vars: m,
|
|
474
|
+
varsResolver: Bt,
|
|
1217
475
|
rootSelector: "groupSection"
|
|
1218
476
|
});
|
|
1219
|
-
return /* @__PURE__ */
|
|
477
|
+
return /* @__PURE__ */ c(y, { ...l("groupSection"), ref: o, variant: p, ...v });
|
|
1220
478
|
});
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1224
|
-
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${
|
|
479
|
+
H.classes = B;
|
|
480
|
+
H.displayName = "@mantine/core/ButtonGroupSection";
|
|
481
|
+
const _t = {
|
|
482
|
+
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${z(1)}))` },
|
|
1225
483
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
1226
484
|
common: { transformOrigin: "center" },
|
|
1227
485
|
transitionProperty: "transform, opacity"
|
|
1228
|
-
},
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
486
|
+
}, Rt = {}, Ot = E(
|
|
487
|
+
(t, { radius: o, color: n, gradient: s, variant: r, size: e, justify: a, autoContrast: i }) => {
|
|
488
|
+
const m = t.variantColorResolver({
|
|
489
|
+
color: n || t.primaryColor,
|
|
490
|
+
theme: t,
|
|
491
|
+
gradient: s,
|
|
492
|
+
variant: r || "filled",
|
|
493
|
+
autoContrast: i
|
|
494
|
+
});
|
|
495
|
+
return {
|
|
496
|
+
root: {
|
|
497
|
+
"--button-justify": a,
|
|
498
|
+
"--button-height": L(e, "button-height"),
|
|
499
|
+
"--button-padding-x": L(e, "button-padding-x"),
|
|
500
|
+
"--button-fz": e != null && e.includes("compact") ? k(e.replace("compact-", "")) : k(e),
|
|
501
|
+
"--button-radius": o === void 0 ? void 0 : ot(o),
|
|
502
|
+
"--button-bg": n || r ? m.background : void 0,
|
|
503
|
+
"--button-hover": n || r ? m.hover : void 0,
|
|
504
|
+
"--button-color": m.color,
|
|
505
|
+
"--button-bd": n || r ? m.border : void 0,
|
|
506
|
+
"--button-hover-color": n || r ? m.hoverColor : void 0
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
), G = tt((t, o) => {
|
|
511
|
+
const n = P("Button", Rt, t), {
|
|
512
|
+
style: s,
|
|
513
|
+
vars: r,
|
|
514
|
+
className: e,
|
|
515
|
+
color: a,
|
|
516
|
+
disabled: i,
|
|
517
|
+
children: m,
|
|
518
|
+
leftSection: p,
|
|
519
|
+
rightSection: u,
|
|
520
|
+
fullWidth: f,
|
|
521
|
+
variant: g,
|
|
522
|
+
radius: v,
|
|
523
|
+
loading: l,
|
|
524
|
+
loaderProps: S,
|
|
525
|
+
gradient: w,
|
|
526
|
+
classNames: _,
|
|
527
|
+
styles: C,
|
|
528
|
+
unstyled: x,
|
|
529
|
+
"data-disabled": R,
|
|
530
|
+
autoContrast: Q,
|
|
531
|
+
mod: d,
|
|
532
|
+
...N
|
|
533
|
+
} = n, b = $({
|
|
1274
534
|
name: "Button",
|
|
1275
535
|
props: n,
|
|
1276
|
-
classes:
|
|
1277
|
-
className:
|
|
1278
|
-
style:
|
|
1279
|
-
classNames:
|
|
1280
|
-
styles:
|
|
1281
|
-
unstyled:
|
|
1282
|
-
vars:
|
|
1283
|
-
varsResolver:
|
|
1284
|
-
}),
|
|
1285
|
-
return /* @__PURE__ */
|
|
1286
|
-
|
|
536
|
+
classes: B,
|
|
537
|
+
className: e,
|
|
538
|
+
style: s,
|
|
539
|
+
classNames: _,
|
|
540
|
+
styles: C,
|
|
541
|
+
unstyled: x,
|
|
542
|
+
vars: r,
|
|
543
|
+
varsResolver: Ot
|
|
544
|
+
}), O = !!p, ct = !!u;
|
|
545
|
+
return /* @__PURE__ */ X(
|
|
546
|
+
W,
|
|
1287
547
|
{
|
|
1288
|
-
ref:
|
|
1289
|
-
...
|
|
1290
|
-
unstyled:
|
|
1291
|
-
variant:
|
|
1292
|
-
disabled:
|
|
548
|
+
ref: o,
|
|
549
|
+
...b("root", { active: !i && !l && !R }),
|
|
550
|
+
unstyled: x,
|
|
551
|
+
variant: g,
|
|
552
|
+
disabled: i || l,
|
|
1293
553
|
mod: [
|
|
1294
554
|
{
|
|
1295
|
-
disabled:
|
|
1296
|
-
loading:
|
|
1297
|
-
block:
|
|
1298
|
-
"with-left-section":
|
|
1299
|
-
"with-right-section":
|
|
555
|
+
disabled: i || R,
|
|
556
|
+
loading: l,
|
|
557
|
+
block: f,
|
|
558
|
+
"with-left-section": O,
|
|
559
|
+
"with-right-section": ct
|
|
1300
560
|
},
|
|
1301
|
-
|
|
561
|
+
d
|
|
1302
562
|
],
|
|
1303
|
-
...
|
|
563
|
+
...N,
|
|
1304
564
|
children: [
|
|
1305
|
-
/* @__PURE__ */
|
|
1306
|
-
|
|
565
|
+
/* @__PURE__ */ c(rt, { mounted: !!l, transition: _t, duration: 150, children: (mt) => /* @__PURE__ */ c(y, { component: "span", ...b("loader", { style: mt }), "aria-hidden": !0, children: /* @__PURE__ */ c(
|
|
566
|
+
U,
|
|
1307
567
|
{
|
|
1308
568
|
color: "var(--button-color)",
|
|
1309
569
|
size: "calc(var(--button-height) / 1.8)",
|
|
1310
|
-
...
|
|
570
|
+
...S
|
|
1311
571
|
}
|
|
1312
572
|
) }) }),
|
|
1313
|
-
/* @__PURE__ */
|
|
1314
|
-
|
|
1315
|
-
/* @__PURE__ */
|
|
1316
|
-
|
|
573
|
+
/* @__PURE__ */ X("span", { ...b("inner"), children: [
|
|
574
|
+
p && /* @__PURE__ */ c(y, { component: "span", ...b("section"), mod: { position: "left" }, children: p }),
|
|
575
|
+
/* @__PURE__ */ c(y, { component: "span", mod: { loading: l }, ...b("label"), children: m }),
|
|
576
|
+
u && /* @__PURE__ */ c(y, { component: "span", ...b("section"), mod: { position: "right" }, children: u })
|
|
1317
577
|
] })
|
|
1318
578
|
]
|
|
1319
579
|
}
|
|
1320
580
|
);
|
|
1321
581
|
});
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
const
|
|
1327
|
-
root:
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}, $n = (t) => /* @__PURE__ */ f(
|
|
1331
|
-
F,
|
|
582
|
+
G.classes = B;
|
|
583
|
+
G.displayName = "@mantine/core/Button";
|
|
584
|
+
G.Group = A;
|
|
585
|
+
G.GroupSection = H;
|
|
586
|
+
const Tt = "_root_arz1h_1", Yt = {
|
|
587
|
+
root: Tt
|
|
588
|
+
}, Xt = (t) => /* @__PURE__ */ c(
|
|
589
|
+
G,
|
|
1332
590
|
{
|
|
1333
591
|
...t,
|
|
1334
|
-
classNames:
|
|
592
|
+
classNames: Yt
|
|
1335
593
|
}
|
|
1336
594
|
);
|
|
1337
595
|
export {
|
|
1338
|
-
|
|
596
|
+
Xt as Button
|
|
1339
597
|
};
|