@kvell-group/ui 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MantineThemeProvider-CyD9KzqB.js +704 -0
- package/dist/components/Button/Button.js +1331 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/MainProvider/MantineProvider.js +424 -0
- package/dist/components/MainProvider/index.js +4 -0
- package/dist/components/theme.js +21 -0
- package/dist/main.js +27 -2451
- package/package.json +1 -1
- /package/dist/assets/{main.css → Button.css} +0 -0
|
@@ -0,0 +1,1331 @@
|
|
|
1
|
+
import { jsx as f, jsxs as j, Fragment as U } from "react/jsx-runtime";
|
|
2
|
+
import { r as P, u as k, h as en, i as on, j as an, l as sn, k as tt, a as cn, p as dt, m as pn, n as mn, o as un } from "../../MantineThemeProvider-CyD9KzqB.js";
|
|
3
|
+
import { useState as Q, useRef as M, useEffect as z, useId as ln, forwardRef as _ } from "react";
|
|
4
|
+
import fn from "react-dom";
|
|
5
|
+
import '../../assets/Button.css';function dn(t) {
|
|
6
|
+
return t.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
|
|
7
|
+
}
|
|
8
|
+
function nt(t) {
|
|
9
|
+
return Object.keys(t).reduce((n, r) => (t[r] !== void 0 && (n[r] = t[r]), n), {});
|
|
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 n = /^[+-]?[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) => n.test(e));
|
|
19
|
+
}
|
|
20
|
+
return !1;
|
|
21
|
+
}
|
|
22
|
+
function A(t, n = "size", r = !0) {
|
|
23
|
+
if (t !== void 0)
|
|
24
|
+
return yt(t) ? r ? P(t) : t : `var(--${n}-${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 yn(t, n) {
|
|
33
|
+
try {
|
|
34
|
+
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
35
|
+
} catch {
|
|
36
|
+
return t.addListener(n), () => t.removeListener(n);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function gn(t, n) {
|
|
40
|
+
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
41
|
+
}
|
|
42
|
+
function hn(t, n, { getInitialValueInEffect: r } = {
|
|
43
|
+
getInitialValueInEffect: !0
|
|
44
|
+
}) {
|
|
45
|
+
const [e, o] = Q(
|
|
46
|
+
r ? n : gn(t)
|
|
47
|
+
), a = M(null);
|
|
48
|
+
return z(() => {
|
|
49
|
+
if ("matchMedia" in window)
|
|
50
|
+
return a.current = window.matchMedia(t), o(a.current.matches), yn(a.current, (i) => o(i.matches));
|
|
51
|
+
}, [t]), e;
|
|
52
|
+
}
|
|
53
|
+
function bn(t, n) {
|
|
54
|
+
const r = M(!1);
|
|
55
|
+
z(
|
|
56
|
+
() => () => {
|
|
57
|
+
r.current = !1;
|
|
58
|
+
},
|
|
59
|
+
[]
|
|
60
|
+
), z(() => {
|
|
61
|
+
if (r.current)
|
|
62
|
+
return t();
|
|
63
|
+
r.current = !0;
|
|
64
|
+
}, n);
|
|
65
|
+
}
|
|
66
|
+
function Sn(t, n) {
|
|
67
|
+
return hn("(prefers-reduced-motion: reduce)", t, n);
|
|
68
|
+
}
|
|
69
|
+
function ht(t) {
|
|
70
|
+
var n, r, 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 (n = 0; n < o; n++) t[n] && (r = ht(t[n])) && (e && (e += " "), e += r);
|
|
75
|
+
} else for (r in t) t[r] && (e && (e += " "), e += r);
|
|
76
|
+
return e;
|
|
77
|
+
}
|
|
78
|
+
function L() {
|
|
79
|
+
for (var t, n, r = 0, e = "", o = arguments.length; r < o; r++) (t = arguments[r]) && (n = ht(t)) && (e && (e += " "), e += n);
|
|
80
|
+
return e;
|
|
81
|
+
}
|
|
82
|
+
const vn = {};
|
|
83
|
+
function Nn(t) {
|
|
84
|
+
const n = {};
|
|
85
|
+
return t.forEach((r) => {
|
|
86
|
+
Object.entries(r).forEach(([e, o]) => {
|
|
87
|
+
n[e] ? n[e] = L(n[e], o) : n[e] = o;
|
|
88
|
+
});
|
|
89
|
+
}), n;
|
|
90
|
+
}
|
|
91
|
+
function rt({ theme: t, classNames: n, props: r, stylesCtx: e }) {
|
|
92
|
+
const a = (Array.isArray(n) ? n : [n]).map(
|
|
93
|
+
(i) => typeof i == "function" ? i(t, r, e) : i || vn
|
|
94
|
+
);
|
|
95
|
+
return Nn(a);
|
|
96
|
+
}
|
|
97
|
+
function K({ theme: t, styles: n, props: r, stylesCtx: e }) {
|
|
98
|
+
return (Array.isArray(n) ? n : [n]).reduce((a, i) => typeof i == "function" ? { ...a, ...i(t, r, e) } : { ...a, ...i }, {});
|
|
99
|
+
}
|
|
100
|
+
const xn = {
|
|
101
|
+
always: "mantine-focus-always",
|
|
102
|
+
auto: "mantine-focus-auto",
|
|
103
|
+
never: "mantine-focus-never"
|
|
104
|
+
};
|
|
105
|
+
function wn({ theme: t, options: n, unstyled: r }) {
|
|
106
|
+
return L(
|
|
107
|
+
(n == null ? void 0 : n.focusable) && !r && (t.focusClassName || xn[t.focusRing]),
|
|
108
|
+
(n == null ? void 0 : n.active) && !r && t.activeClassName
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function $n({
|
|
112
|
+
selector: t,
|
|
113
|
+
stylesCtx: n,
|
|
114
|
+
options: r,
|
|
115
|
+
props: e,
|
|
116
|
+
theme: o
|
|
117
|
+
}) {
|
|
118
|
+
return rt({
|
|
119
|
+
theme: o,
|
|
120
|
+
classNames: r == null ? void 0 : r.classNames,
|
|
121
|
+
props: (r == null ? void 0 : r.props) || e,
|
|
122
|
+
stylesCtx: n
|
|
123
|
+
})[t];
|
|
124
|
+
}
|
|
125
|
+
function ct({
|
|
126
|
+
selector: t,
|
|
127
|
+
stylesCtx: n,
|
|
128
|
+
theme: r,
|
|
129
|
+
classNames: e,
|
|
130
|
+
props: o
|
|
131
|
+
}) {
|
|
132
|
+
return rt({ theme: r, classNames: e, props: o, stylesCtx: n })[t];
|
|
133
|
+
}
|
|
134
|
+
function Tn({ rootSelector: t, selector: n, className: r }) {
|
|
135
|
+
return t === n ? r : void 0;
|
|
136
|
+
}
|
|
137
|
+
function Rn({ selector: t, classes: n, unstyled: r }) {
|
|
138
|
+
return r ? void 0 : n[t];
|
|
139
|
+
}
|
|
140
|
+
function Pn({
|
|
141
|
+
themeName: t,
|
|
142
|
+
classNamesPrefix: n,
|
|
143
|
+
selector: r,
|
|
144
|
+
withStaticClass: e
|
|
145
|
+
}) {
|
|
146
|
+
return e === !1 ? [] : t.map((o) => `${n}-${o}-${r}`);
|
|
147
|
+
}
|
|
148
|
+
function _n({
|
|
149
|
+
themeName: t,
|
|
150
|
+
theme: n,
|
|
151
|
+
selector: r,
|
|
152
|
+
props: e,
|
|
153
|
+
stylesCtx: o
|
|
154
|
+
}) {
|
|
155
|
+
return t.map(
|
|
156
|
+
(a) => {
|
|
157
|
+
var i, s;
|
|
158
|
+
return (s = rt({
|
|
159
|
+
theme: n,
|
|
160
|
+
classNames: (i = n.components[a]) == null ? void 0 : i.classNames,
|
|
161
|
+
props: e,
|
|
162
|
+
stylesCtx: o
|
|
163
|
+
})) == null ? void 0 : s[r];
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function Cn({
|
|
168
|
+
options: t,
|
|
169
|
+
classes: n,
|
|
170
|
+
selector: r,
|
|
171
|
+
unstyled: e
|
|
172
|
+
}) {
|
|
173
|
+
return t != null && t.variant && !e ? n[`${r}--${t.variant}`] : void 0;
|
|
174
|
+
}
|
|
175
|
+
function Bn({
|
|
176
|
+
theme: t,
|
|
177
|
+
options: n,
|
|
178
|
+
themeName: r,
|
|
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
|
+
wn({ theme: t, options: n, unstyled: s || g }),
|
|
194
|
+
_n({ theme: t, themeName: r, selector: e, props: m, stylesCtx: u }),
|
|
195
|
+
Cn({ options: n, 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
|
+
$n({ selector: e, stylesCtx: u, options: n, props: m, theme: t }),
|
|
199
|
+
Tn({ rootSelector: c, selector: e, className: p }),
|
|
200
|
+
Rn({ selector: e, classes: i, unstyled: s || g }),
|
|
201
|
+
l && !g && Pn({
|
|
202
|
+
themeName: r,
|
|
203
|
+
classNamesPrefix: o,
|
|
204
|
+
selector: e,
|
|
205
|
+
withStaticClass: n == null ? void 0 : n.withStaticClass
|
|
206
|
+
}),
|
|
207
|
+
n == null ? void 0 : n.className
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
function An({
|
|
211
|
+
theme: t,
|
|
212
|
+
themeName: n,
|
|
213
|
+
props: r,
|
|
214
|
+
stylesCtx: e,
|
|
215
|
+
selector: o
|
|
216
|
+
}) {
|
|
217
|
+
return n.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: r,
|
|
224
|
+
stylesCtx: e
|
|
225
|
+
})[o];
|
|
226
|
+
}
|
|
227
|
+
).reduce((a, i) => ({ ...a, ...i }), {});
|
|
228
|
+
}
|
|
229
|
+
function Z({ style: t, theme: n }) {
|
|
230
|
+
return Array.isArray(t) ? [...t].reduce(
|
|
231
|
+
(r, e) => ({ ...r, ...Z({ style: e, theme: n }) }),
|
|
232
|
+
{}
|
|
233
|
+
) : typeof t == "function" ? t(n) : t ?? {};
|
|
234
|
+
}
|
|
235
|
+
function On(t) {
|
|
236
|
+
return t.reduce((n, r) => (r && Object.keys(r).forEach((e) => {
|
|
237
|
+
n[e] = { ...n[e], ...nt(r[e]) };
|
|
238
|
+
}), n), {});
|
|
239
|
+
}
|
|
240
|
+
function Ln({
|
|
241
|
+
vars: t,
|
|
242
|
+
varsResolver: n,
|
|
243
|
+
theme: r,
|
|
244
|
+
props: e,
|
|
245
|
+
stylesCtx: o,
|
|
246
|
+
selector: a,
|
|
247
|
+
themeName: i,
|
|
248
|
+
headless: s
|
|
249
|
+
}) {
|
|
250
|
+
var p;
|
|
251
|
+
return (p = On([
|
|
252
|
+
s ? {} : n == null ? void 0 : n(r, e, o),
|
|
253
|
+
...i.map((c) => {
|
|
254
|
+
var m, u, l;
|
|
255
|
+
return (l = (u = (m = r.components) == null ? void 0 : m[c]) == null ? void 0 : u.vars) == null ? void 0 : l.call(u, r, e, o);
|
|
256
|
+
}),
|
|
257
|
+
t == null ? void 0 : t(r, e, o)
|
|
258
|
+
])) == null ? void 0 : p[a];
|
|
259
|
+
}
|
|
260
|
+
function Yn({
|
|
261
|
+
theme: t,
|
|
262
|
+
themeName: n,
|
|
263
|
+
selector: r,
|
|
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 && An({ theme: t, themeName: n, props: o, stylesCtx: a, selector: r }),
|
|
277
|
+
...!l && K({ theme: t, styles: s, props: o, stylesCtx: a })[r],
|
|
278
|
+
...!l && K({ theme: t, styles: e == null ? void 0 : e.styles, props: (e == null ? void 0 : e.props) || o, stylesCtx: a })[r],
|
|
279
|
+
...Ln({ theme: t, props: o, stylesCtx: a, vars: c, varsResolver: m, selector: r, themeName: n, headless: u }),
|
|
280
|
+
...i === r ? Z({ style: p, theme: t }) : null,
|
|
281
|
+
...Z({ style: e == null ? void 0 : e.style, theme: t })
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
function En({ props: t, stylesCtx: n, themeName: r }) {
|
|
285
|
+
var i;
|
|
286
|
+
const e = k(), o = (i = en()) == null ? void 0 : i();
|
|
287
|
+
return {
|
|
288
|
+
getTransformedStyles: (s) => o ? [
|
|
289
|
+
...s.map(
|
|
290
|
+
(c) => o(c, { props: t, theme: e, ctx: n })
|
|
291
|
+
),
|
|
292
|
+
...r.map(
|
|
293
|
+
(c) => {
|
|
294
|
+
var m;
|
|
295
|
+
return o((m = e.components[c]) == null ? void 0 : m.styles, { props: t, theme: e, ctx: n });
|
|
296
|
+
}
|
|
297
|
+
)
|
|
298
|
+
].filter(Boolean) : [],
|
|
299
|
+
withStylesTransform: !!o
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function F({
|
|
303
|
+
name: t,
|
|
304
|
+
classes: n,
|
|
305
|
+
props: r,
|
|
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 = on(), d = an(), b = sn(), h = (Array.isArray(t) ? t : [t]).filter((S) => S), { withStylesTransform: x, getTransformedStyles: R } = En({
|
|
317
|
+
props: r,
|
|
318
|
+
stylesCtx: e,
|
|
319
|
+
themeName: h
|
|
320
|
+
});
|
|
321
|
+
return (S, N) => ({
|
|
322
|
+
className: Bn({
|
|
323
|
+
theme: l,
|
|
324
|
+
options: N,
|
|
325
|
+
themeName: h,
|
|
326
|
+
selector: S,
|
|
327
|
+
classNamesPrefix: g,
|
|
328
|
+
classNames: p,
|
|
329
|
+
classes: n,
|
|
330
|
+
unstyled: s,
|
|
331
|
+
className: o,
|
|
332
|
+
rootSelector: i,
|
|
333
|
+
props: r,
|
|
334
|
+
stylesCtx: e,
|
|
335
|
+
withStaticClasses: d,
|
|
336
|
+
headless: b,
|
|
337
|
+
transformedStyles: R([N == null ? void 0 : N.styles, c])
|
|
338
|
+
}),
|
|
339
|
+
style: Yn({
|
|
340
|
+
theme: l,
|
|
341
|
+
themeName: h,
|
|
342
|
+
selector: S,
|
|
343
|
+
options: N,
|
|
344
|
+
props: r,
|
|
345
|
+
stylesCtx: e,
|
|
346
|
+
rootSelector: i,
|
|
347
|
+
styles: c,
|
|
348
|
+
style: a,
|
|
349
|
+
vars: m,
|
|
350
|
+
varsResolver: u,
|
|
351
|
+
headless: b,
|
|
352
|
+
withStylesTransform: x
|
|
353
|
+
})
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
function O(t, n, r) {
|
|
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 { ...n, ...a, ...nt(r) };
|
|
360
|
+
}
|
|
361
|
+
function X(t) {
|
|
362
|
+
return tt(t).reduce(
|
|
363
|
+
(n, r) => t[r] !== void 0 ? `${n}${dn(r)}:${t[r]};` : n,
|
|
364
|
+
""
|
|
365
|
+
).trim();
|
|
366
|
+
}
|
|
367
|
+
function Mn({ selector: t, styles: n, media: r, container: e }) {
|
|
368
|
+
const o = n ? X(n) : "", a = Array.isArray(r) ? r.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 jn(t) {
|
|
374
|
+
const n = cn();
|
|
375
|
+
return /* @__PURE__ */ f(
|
|
376
|
+
"style",
|
|
377
|
+
{
|
|
378
|
+
"data-mantine-styles": "inline",
|
|
379
|
+
nonce: n == null ? void 0 : n(),
|
|
380
|
+
dangerouslySetInnerHTML: { __html: Mn(t) }
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
function kn(t) {
|
|
385
|
+
const {
|
|
386
|
+
m: n,
|
|
387
|
+
mx: r,
|
|
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: b,
|
|
401
|
+
pr: h,
|
|
402
|
+
pe: x,
|
|
403
|
+
ps: R,
|
|
404
|
+
bd: S,
|
|
405
|
+
bg: N,
|
|
406
|
+
c: C,
|
|
407
|
+
opacity: y,
|
|
408
|
+
ff: w,
|
|
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: Ft,
|
|
424
|
+
bgp: It,
|
|
425
|
+
bgr: Wt,
|
|
426
|
+
bga: zt,
|
|
427
|
+
pos: Gt,
|
|
428
|
+
top: Dt,
|
|
429
|
+
left: Ht,
|
|
430
|
+
bottom: Vt,
|
|
431
|
+
right: Xt,
|
|
432
|
+
inset: qt,
|
|
433
|
+
display: Ut,
|
|
434
|
+
flex: Qt,
|
|
435
|
+
hiddenFrom: Kt,
|
|
436
|
+
visibleFrom: Zt,
|
|
437
|
+
lightHidden: Jt,
|
|
438
|
+
darkHidden: tn,
|
|
439
|
+
sx: nn,
|
|
440
|
+
...rn
|
|
441
|
+
} = t;
|
|
442
|
+
return { styleProps: nt({
|
|
443
|
+
m: n,
|
|
444
|
+
mx: r,
|
|
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: b,
|
|
458
|
+
pr: h,
|
|
459
|
+
pe: x,
|
|
460
|
+
ps: R,
|
|
461
|
+
bd: S,
|
|
462
|
+
bg: N,
|
|
463
|
+
c: C,
|
|
464
|
+
opacity: y,
|
|
465
|
+
ff: w,
|
|
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: Ft,
|
|
481
|
+
bgp: It,
|
|
482
|
+
bgr: Wt,
|
|
483
|
+
bga: zt,
|
|
484
|
+
pos: Gt,
|
|
485
|
+
top: Dt,
|
|
486
|
+
left: Ht,
|
|
487
|
+
bottom: Vt,
|
|
488
|
+
right: Xt,
|
|
489
|
+
inset: qt,
|
|
490
|
+
display: Ut,
|
|
491
|
+
flex: Qt,
|
|
492
|
+
hiddenFrom: Kt,
|
|
493
|
+
visibleFrom: Zt,
|
|
494
|
+
lightHidden: Jt,
|
|
495
|
+
darkHidden: tn,
|
|
496
|
+
sx: nn
|
|
497
|
+
}), rest: rn };
|
|
498
|
+
}
|
|
499
|
+
const Fn = {
|
|
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, n) {
|
|
551
|
+
const r = dt({ color: t, theme: n });
|
|
552
|
+
return r.color === "dimmed" ? "var(--mantine-color-dimmed)" : r.color === "bright" ? "var(--mantine-color-bright)" : r.variable ? `var(${r.variable})` : r.color;
|
|
553
|
+
}
|
|
554
|
+
function In(t, n) {
|
|
555
|
+
const r = dt({ color: t, theme: n });
|
|
556
|
+
return r.isThemeColor && r.shade === void 0 ? `var(--mantine-color-${r.color}-text)` : et(t, n);
|
|
557
|
+
}
|
|
558
|
+
function Wn(t, n) {
|
|
559
|
+
if (typeof t == "number")
|
|
560
|
+
return P(t);
|
|
561
|
+
if (typeof t == "string") {
|
|
562
|
+
const [r, e, ...o] = t.split(" ").filter((i) => i.trim() !== "");
|
|
563
|
+
let a = `${P(r)}`;
|
|
564
|
+
return e && (a += ` ${e}`), o.length > 0 && (a += ` ${et(o.join(" "), n)}`), 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 zn(t) {
|
|
576
|
+
return typeof t == "string" && t in pt ? pt[t] : t;
|
|
577
|
+
}
|
|
578
|
+
const Gn = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
579
|
+
function Dn(t, n) {
|
|
580
|
+
return typeof t == "string" && t in n.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && Gn.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" ? P(t) : typeof t == "string" ? P(t) : t;
|
|
581
|
+
}
|
|
582
|
+
function Hn(t) {
|
|
583
|
+
return t;
|
|
584
|
+
}
|
|
585
|
+
const Vn = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
586
|
+
function Xn(t, n) {
|
|
587
|
+
return typeof t == "string" && t in n.lineHeights ? `var(--mantine-line-height-${t})` : typeof t == "string" && Vn.includes(t) ? `var(--mantine-${t}-line-height)` : t;
|
|
588
|
+
}
|
|
589
|
+
function qn(t) {
|
|
590
|
+
return typeof t == "number" ? P(t) : t;
|
|
591
|
+
}
|
|
592
|
+
function Un(t, n) {
|
|
593
|
+
if (typeof t == "number")
|
|
594
|
+
return P(t);
|
|
595
|
+
if (typeof t == "string") {
|
|
596
|
+
const r = t.replace("-", "");
|
|
597
|
+
if (!(r in n.spacing))
|
|
598
|
+
return P(t);
|
|
599
|
+
const e = `--mantine-spacing-${r}`;
|
|
600
|
+
return t.startsWith("-") ? `calc(var(${e}) * -1)` : `var(${e})`;
|
|
601
|
+
}
|
|
602
|
+
return t;
|
|
603
|
+
}
|
|
604
|
+
const q = {
|
|
605
|
+
color: et,
|
|
606
|
+
textColor: In,
|
|
607
|
+
fontSize: Dn,
|
|
608
|
+
spacing: Un,
|
|
609
|
+
identity: Hn,
|
|
610
|
+
size: qn,
|
|
611
|
+
lineHeight: Xn,
|
|
612
|
+
fontFamily: zn,
|
|
613
|
+
border: Wn
|
|
614
|
+
};
|
|
615
|
+
function mt(t) {
|
|
616
|
+
return t.replace("(min-width: ", "").replace("em)", "");
|
|
617
|
+
}
|
|
618
|
+
function Qn({
|
|
619
|
+
media: t,
|
|
620
|
+
...n
|
|
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 { ...n, media: e };
|
|
624
|
+
}
|
|
625
|
+
function Kn(t) {
|
|
626
|
+
if (typeof t != "object" || t === null)
|
|
627
|
+
return !1;
|
|
628
|
+
const n = Object.keys(t);
|
|
629
|
+
return !(n.length === 1 && n[0] === "base");
|
|
630
|
+
}
|
|
631
|
+
function Zn(t) {
|
|
632
|
+
return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
|
|
633
|
+
}
|
|
634
|
+
function Jn(t) {
|
|
635
|
+
return typeof t == "object" && t !== null ? tt(t).filter((n) => n !== "base") : [];
|
|
636
|
+
}
|
|
637
|
+
function tr(t, n) {
|
|
638
|
+
return typeof t == "object" && t !== null && n in t ? t[n] : t;
|
|
639
|
+
}
|
|
640
|
+
function nr({
|
|
641
|
+
styleProps: t,
|
|
642
|
+
data: n,
|
|
643
|
+
theme: r
|
|
644
|
+
}) {
|
|
645
|
+
return Qn(
|
|
646
|
+
tt(t).reduce(
|
|
647
|
+
(e, o) => {
|
|
648
|
+
if (o === "hiddenFrom" || o === "visibleFrom" || o === "sx")
|
|
649
|
+
return e;
|
|
650
|
+
const a = n[o], i = Array.isArray(a.property) ? a.property : [a.property], s = Zn(t[o]);
|
|
651
|
+
if (!Kn(t[o]))
|
|
652
|
+
return i.forEach((c) => {
|
|
653
|
+
e.inlineStyles[c] = q[a.type](s, r);
|
|
654
|
+
}), e;
|
|
655
|
+
e.hasResponsiveStyles = !0;
|
|
656
|
+
const p = Jn(t[o]);
|
|
657
|
+
return i.forEach((c) => {
|
|
658
|
+
s && (e.styles[c] = q[a.type](s, r)), p.forEach((m) => {
|
|
659
|
+
const u = `(min-width: ${r.breakpoints[m]})`;
|
|
660
|
+
e.media[u] = {
|
|
661
|
+
...e.media[u],
|
|
662
|
+
[c]: q[a.type](
|
|
663
|
+
tr(t[o], m),
|
|
664
|
+
r
|
|
665
|
+
)
|
|
666
|
+
};
|
|
667
|
+
});
|
|
668
|
+
}), e;
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
hasResponsiveStyles: !1,
|
|
672
|
+
styles: {},
|
|
673
|
+
inlineStyles: {},
|
|
674
|
+
media: {}
|
|
675
|
+
}
|
|
676
|
+
)
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
function rr() {
|
|
680
|
+
return `__m__-${ln().replace(/:/g, "")}`;
|
|
681
|
+
}
|
|
682
|
+
function bt(t) {
|
|
683
|
+
return t.startsWith("data-") ? t : `data-${t}`;
|
|
684
|
+
}
|
|
685
|
+
function er(t) {
|
|
686
|
+
return Object.keys(t).reduce((n, r) => {
|
|
687
|
+
const e = t[r];
|
|
688
|
+
return e === void 0 || e === "" || e === !1 || e === null || (n[bt(r)] = t[r]), n;
|
|
689
|
+
}, {});
|
|
690
|
+
}
|
|
691
|
+
function St(t) {
|
|
692
|
+
return t ? typeof t == "string" ? { [bt(t)]: !0 } : Array.isArray(t) ? [...t].reduce(
|
|
693
|
+
(n, r) => ({ ...n, ...St(r) }),
|
|
694
|
+
{}
|
|
695
|
+
) : er(t) : null;
|
|
696
|
+
}
|
|
697
|
+
function J(t, n) {
|
|
698
|
+
return Array.isArray(t) ? [...t].reduce(
|
|
699
|
+
(r, e) => ({ ...r, ...J(e, n) }),
|
|
700
|
+
{}
|
|
701
|
+
) : typeof t == "function" ? t(n) : t ?? {};
|
|
702
|
+
}
|
|
703
|
+
function or({
|
|
704
|
+
theme: t,
|
|
705
|
+
style: n,
|
|
706
|
+
vars: r,
|
|
707
|
+
styleProps: e
|
|
708
|
+
}) {
|
|
709
|
+
const o = J(n, t), a = J(r, t);
|
|
710
|
+
return { ...o, ...a, ...e };
|
|
711
|
+
}
|
|
712
|
+
const vt = _(
|
|
713
|
+
({
|
|
714
|
+
component: t,
|
|
715
|
+
style: n,
|
|
716
|
+
__vars: r,
|
|
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 b = k(), h = t || "div", { styleProps: x, rest: R } = kn(g), S = pn(), N = (v = S == null ? void 0 : S()) == null ? void 0 : v(x.sx), C = rr(), y = nr({
|
|
731
|
+
styleProps: x,
|
|
732
|
+
theme: b,
|
|
733
|
+
data: Fn
|
|
734
|
+
}), w = {
|
|
735
|
+
ref: d,
|
|
736
|
+
style: or({
|
|
737
|
+
theme: b,
|
|
738
|
+
style: n,
|
|
739
|
+
vars: r,
|
|
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
|
+
...R
|
|
754
|
+
};
|
|
755
|
+
return /* @__PURE__ */ j(U, { children: [
|
|
756
|
+
y.hasResponsiveStyles && /* @__PURE__ */ f(
|
|
757
|
+
jn,
|
|
758
|
+
{
|
|
759
|
+
selector: `.${C}`,
|
|
760
|
+
styles: y.styles,
|
|
761
|
+
media: y.media
|
|
762
|
+
}
|
|
763
|
+
),
|
|
764
|
+
typeof u == "function" ? u(w) : /* @__PURE__ */ f(h, { ...w })
|
|
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 n = _(t);
|
|
775
|
+
return n.extend = Nt, n.withProps = (r) => {
|
|
776
|
+
const e = _((o, a) => /* @__PURE__ */ f(n, { ...r, ...o, ref: a }));
|
|
777
|
+
return e.extend = n.extend, e.displayName = `WithProps(${n.displayName})`, e;
|
|
778
|
+
}, n;
|
|
779
|
+
}
|
|
780
|
+
function xt(t) {
|
|
781
|
+
const n = _(t);
|
|
782
|
+
return n.withProps = (r) => {
|
|
783
|
+
const e = _((o, a) => /* @__PURE__ */ f(n, { ...r, ...o, ref: a }));
|
|
784
|
+
return e.extend = n.extend, e.displayName = `WithProps(${n.displayName})`, e;
|
|
785
|
+
}, n.extend = Nt, n;
|
|
786
|
+
}
|
|
787
|
+
var wt = { root: "m_87cf2631" };
|
|
788
|
+
const ar = {
|
|
789
|
+
__staticSelector: "UnstyledButton"
|
|
790
|
+
}, at = xt(
|
|
791
|
+
(t, n) => {
|
|
792
|
+
const r = O("UnstyledButton", ar, t), {
|
|
793
|
+
className: e,
|
|
794
|
+
component: o = "button",
|
|
795
|
+
__staticSelector: a,
|
|
796
|
+
unstyled: i,
|
|
797
|
+
classNames: s,
|
|
798
|
+
styles: p,
|
|
799
|
+
style: c,
|
|
800
|
+
...m
|
|
801
|
+
} = r, u = F({
|
|
802
|
+
name: a,
|
|
803
|
+
props: r,
|
|
804
|
+
classes: wt,
|
|
805
|
+
className: e,
|
|
806
|
+
style: c,
|
|
807
|
+
classNames: s,
|
|
808
|
+
styles: p,
|
|
809
|
+
unstyled: i
|
|
810
|
+
});
|
|
811
|
+
return /* @__PURE__ */ f(
|
|
812
|
+
$,
|
|
813
|
+
{
|
|
814
|
+
...u("root", { focusable: !0 }),
|
|
815
|
+
component: o,
|
|
816
|
+
ref: n,
|
|
817
|
+
type: o === "button" ? "button" : void 0,
|
|
818
|
+
...m
|
|
819
|
+
}
|
|
820
|
+
);
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
at.classes = wt;
|
|
824
|
+
at.displayName = "@mantine/core/UnstyledButton";
|
|
825
|
+
const E = (t) => ({
|
|
826
|
+
in: { opacity: 1, transform: "scale(1)" },
|
|
827
|
+
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
828
|
+
transitionProperty: "transform, opacity"
|
|
829
|
+
}), W = {
|
|
830
|
+
fade: {
|
|
831
|
+
in: { opacity: 1 },
|
|
832
|
+
out: { opacity: 0 },
|
|
833
|
+
transitionProperty: "opacity"
|
|
834
|
+
},
|
|
835
|
+
"fade-up": {
|
|
836
|
+
in: { opacity: 1, transform: "translateY(0)" },
|
|
837
|
+
out: { opacity: 0, transform: "translateY(30px)" },
|
|
838
|
+
transitionProperty: "opacity, transform"
|
|
839
|
+
},
|
|
840
|
+
"fade-down": {
|
|
841
|
+
in: { opacity: 1, transform: "translateY(0)" },
|
|
842
|
+
out: { opacity: 0, transform: "translateY(-30px)" },
|
|
843
|
+
transitionProperty: "opacity, transform"
|
|
844
|
+
},
|
|
845
|
+
"fade-left": {
|
|
846
|
+
in: { opacity: 1, transform: "translateX(0)" },
|
|
847
|
+
out: { opacity: 0, transform: "translateX(30px)" },
|
|
848
|
+
transitionProperty: "opacity, transform"
|
|
849
|
+
},
|
|
850
|
+
"fade-right": {
|
|
851
|
+
in: { opacity: 1, transform: "translateX(0)" },
|
|
852
|
+
out: { opacity: 0, transform: "translateX(-30px)" },
|
|
853
|
+
transitionProperty: "opacity, transform"
|
|
854
|
+
},
|
|
855
|
+
scale: {
|
|
856
|
+
in: { opacity: 1, transform: "scale(1)" },
|
|
857
|
+
out: { opacity: 0, transform: "scale(0)" },
|
|
858
|
+
common: { transformOrigin: "top" },
|
|
859
|
+
transitionProperty: "transform, opacity"
|
|
860
|
+
},
|
|
861
|
+
"scale-y": {
|
|
862
|
+
in: { opacity: 1, transform: "scaleY(1)" },
|
|
863
|
+
out: { opacity: 0, transform: "scaleY(0)" },
|
|
864
|
+
common: { transformOrigin: "top" },
|
|
865
|
+
transitionProperty: "transform, opacity"
|
|
866
|
+
},
|
|
867
|
+
"scale-x": {
|
|
868
|
+
in: { opacity: 1, transform: "scaleX(1)" },
|
|
869
|
+
out: { opacity: 0, transform: "scaleX(0)" },
|
|
870
|
+
common: { transformOrigin: "left" },
|
|
871
|
+
transitionProperty: "transform, opacity"
|
|
872
|
+
},
|
|
873
|
+
"skew-up": {
|
|
874
|
+
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
875
|
+
out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" },
|
|
876
|
+
common: { transformOrigin: "top" },
|
|
877
|
+
transitionProperty: "transform, opacity"
|
|
878
|
+
},
|
|
879
|
+
"skew-down": {
|
|
880
|
+
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
881
|
+
out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" },
|
|
882
|
+
common: { transformOrigin: "bottom" },
|
|
883
|
+
transitionProperty: "transform, opacity"
|
|
884
|
+
},
|
|
885
|
+
"rotate-left": {
|
|
886
|
+
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
887
|
+
out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
|
|
888
|
+
common: { transformOrigin: "bottom" },
|
|
889
|
+
transitionProperty: "transform, opacity"
|
|
890
|
+
},
|
|
891
|
+
"rotate-right": {
|
|
892
|
+
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
893
|
+
out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
|
|
894
|
+
common: { transformOrigin: "top" },
|
|
895
|
+
transitionProperty: "transform, opacity"
|
|
896
|
+
},
|
|
897
|
+
"slide-down": {
|
|
898
|
+
in: { opacity: 1, transform: "translateY(0)" },
|
|
899
|
+
out: { opacity: 0, transform: "translateY(-100%)" },
|
|
900
|
+
common: { transformOrigin: "top" },
|
|
901
|
+
transitionProperty: "transform, opacity"
|
|
902
|
+
},
|
|
903
|
+
"slide-up": {
|
|
904
|
+
in: { opacity: 1, transform: "translateY(0)" },
|
|
905
|
+
out: { opacity: 0, transform: "translateY(100%)" },
|
|
906
|
+
common: { transformOrigin: "bottom" },
|
|
907
|
+
transitionProperty: "transform, opacity"
|
|
908
|
+
},
|
|
909
|
+
"slide-left": {
|
|
910
|
+
in: { opacity: 1, transform: "translateX(0)" },
|
|
911
|
+
out: { opacity: 0, transform: "translateX(100%)" },
|
|
912
|
+
common: { transformOrigin: "left" },
|
|
913
|
+
transitionProperty: "transform, opacity"
|
|
914
|
+
},
|
|
915
|
+
"slide-right": {
|
|
916
|
+
in: { opacity: 1, transform: "translateX(0)" },
|
|
917
|
+
out: { opacity: 0, transform: "translateX(-100%)" },
|
|
918
|
+
common: { transformOrigin: "right" },
|
|
919
|
+
transitionProperty: "transform, opacity"
|
|
920
|
+
},
|
|
921
|
+
pop: {
|
|
922
|
+
...E("bottom"),
|
|
923
|
+
common: { transformOrigin: "center center" }
|
|
924
|
+
},
|
|
925
|
+
"pop-bottom-left": {
|
|
926
|
+
...E("bottom"),
|
|
927
|
+
common: { transformOrigin: "bottom left" }
|
|
928
|
+
},
|
|
929
|
+
"pop-bottom-right": {
|
|
930
|
+
...E("bottom"),
|
|
931
|
+
common: { transformOrigin: "bottom right" }
|
|
932
|
+
},
|
|
933
|
+
"pop-top-left": {
|
|
934
|
+
...E("top"),
|
|
935
|
+
common: { transformOrigin: "top left" }
|
|
936
|
+
},
|
|
937
|
+
"pop-top-right": {
|
|
938
|
+
...E("top"),
|
|
939
|
+
common: { transformOrigin: "top right" }
|
|
940
|
+
}
|
|
941
|
+
}, ut = {
|
|
942
|
+
entering: "in",
|
|
943
|
+
entered: "in",
|
|
944
|
+
exiting: "out",
|
|
945
|
+
exited: "out",
|
|
946
|
+
"pre-exiting": "out",
|
|
947
|
+
"pre-entering": "out"
|
|
948
|
+
};
|
|
949
|
+
function ir({
|
|
950
|
+
transition: t,
|
|
951
|
+
state: n,
|
|
952
|
+
duration: r,
|
|
953
|
+
timingFunction: e
|
|
954
|
+
}) {
|
|
955
|
+
const o = {
|
|
956
|
+
WebkitBackfaceVisibility: "hidden",
|
|
957
|
+
willChange: "transform, opacity",
|
|
958
|
+
transitionDuration: `${r}ms`,
|
|
959
|
+
transitionTimingFunction: e
|
|
960
|
+
};
|
|
961
|
+
return typeof t == "string" ? t in W ? {
|
|
962
|
+
transitionProperty: W[t].transitionProperty,
|
|
963
|
+
...o,
|
|
964
|
+
...W[t].common,
|
|
965
|
+
...W[t][ut[n]]
|
|
966
|
+
} : {} : {
|
|
967
|
+
transitionProperty: t.transitionProperty,
|
|
968
|
+
...o,
|
|
969
|
+
...t.common,
|
|
970
|
+
...t[ut[n]]
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
function sr({
|
|
974
|
+
duration: t,
|
|
975
|
+
exitDuration: n,
|
|
976
|
+
timingFunction: r,
|
|
977
|
+
mounted: e,
|
|
978
|
+
onEnter: o,
|
|
979
|
+
onExit: a,
|
|
980
|
+
onEntered: i,
|
|
981
|
+
onExited: s,
|
|
982
|
+
enterDelay: p,
|
|
983
|
+
exitDelay: c
|
|
984
|
+
}) {
|
|
985
|
+
const m = k(), u = Sn(), l = m.respectReducedMotion ? u : !1, [g, d] = Q(l ? 0 : t), [b, h] = Q(e ? "entered" : "exited"), x = M(-1), R = M(-1), S = M(-1), N = (y) => {
|
|
986
|
+
const w = y ? o : a, v = y ? i : s;
|
|
987
|
+
window.clearTimeout(x.current);
|
|
988
|
+
const B = l ? 0 : y ? t : n;
|
|
989
|
+
d(B), B === 0 ? (typeof w == "function" && w(), typeof v == "function" && v(), h(y ? "entered" : "exited")) : S.current = requestAnimationFrame(() => {
|
|
990
|
+
fn.flushSync(() => {
|
|
991
|
+
h(y ? "pre-entering" : "pre-exiting");
|
|
992
|
+
}), S.current = requestAnimationFrame(() => {
|
|
993
|
+
typeof w == "function" && w(), h(y ? "entering" : "exiting"), x.current = window.setTimeout(() => {
|
|
994
|
+
typeof v == "function" && v(), h(y ? "entered" : "exited");
|
|
995
|
+
}, B);
|
|
996
|
+
});
|
|
997
|
+
});
|
|
998
|
+
}, C = (y) => {
|
|
999
|
+
if (window.clearTimeout(R.current), typeof (y ? p : c) != "number") {
|
|
1000
|
+
N(y);
|
|
1001
|
+
return;
|
|
1002
|
+
}
|
|
1003
|
+
R.current = window.setTimeout(
|
|
1004
|
+
() => {
|
|
1005
|
+
N(y);
|
|
1006
|
+
},
|
|
1007
|
+
y ? p : c
|
|
1008
|
+
);
|
|
1009
|
+
};
|
|
1010
|
+
return bn(() => {
|
|
1011
|
+
C(e);
|
|
1012
|
+
}, [e]), z(
|
|
1013
|
+
() => () => {
|
|
1014
|
+
window.clearTimeout(x.current), cancelAnimationFrame(S.current);
|
|
1015
|
+
},
|
|
1016
|
+
[]
|
|
1017
|
+
), {
|
|
1018
|
+
transitionDuration: g,
|
|
1019
|
+
transitionStatus: b,
|
|
1020
|
+
transitionTimingFunction: r || "ease"
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
function $t({
|
|
1024
|
+
keepMounted: t,
|
|
1025
|
+
transition: n = "fade",
|
|
1026
|
+
duration: r = 250,
|
|
1027
|
+
exitDuration: e = r,
|
|
1028
|
+
mounted: o,
|
|
1029
|
+
children: a,
|
|
1030
|
+
timingFunction: i = "ease",
|
|
1031
|
+
onExit: s,
|
|
1032
|
+
onEntered: p,
|
|
1033
|
+
onEnter: c,
|
|
1034
|
+
onExited: m,
|
|
1035
|
+
enterDelay: u,
|
|
1036
|
+
exitDelay: l
|
|
1037
|
+
}) {
|
|
1038
|
+
const g = mn(), { transitionDuration: d, transitionStatus: b, transitionTimingFunction: h } = sr({
|
|
1039
|
+
mounted: o,
|
|
1040
|
+
exitDuration: e,
|
|
1041
|
+
duration: r,
|
|
1042
|
+
timingFunction: i,
|
|
1043
|
+
onExit: s,
|
|
1044
|
+
onEntered: p,
|
|
1045
|
+
onEnter: c,
|
|
1046
|
+
onExited: m,
|
|
1047
|
+
enterDelay: u,
|
|
1048
|
+
exitDelay: l
|
|
1049
|
+
});
|
|
1050
|
+
return d === 0 || g === "test" ? o ? /* @__PURE__ */ f(U, { children: a({}) }) : t ? a({ display: "none" }) : null : b === "exited" ? t ? a({ display: "none" }) : null : /* @__PURE__ */ f(U, { children: a(
|
|
1051
|
+
ir({
|
|
1052
|
+
transition: n,
|
|
1053
|
+
duration: d,
|
|
1054
|
+
state: b,
|
|
1055
|
+
timingFunction: h
|
|
1056
|
+
})
|
|
1057
|
+
) });
|
|
1058
|
+
}
|
|
1059
|
+
$t.displayName = "@mantine/core/Transition";
|
|
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 = _(({ className: t, ...n }, r) => /* @__PURE__ */ j($, { component: "span", className: L(T.barsLoader, t), ...n, ref: r, children: [
|
|
1062
|
+
/* @__PURE__ */ f("span", { className: T.bar }),
|
|
1063
|
+
/* @__PURE__ */ f("span", { className: T.bar }),
|
|
1064
|
+
/* @__PURE__ */ f("span", { className: T.bar })
|
|
1065
|
+
] }));
|
|
1066
|
+
Tt.displayName = "@mantine/core/Bars";
|
|
1067
|
+
const Rt = _(({ className: t, ...n }, r) => /* @__PURE__ */ j($, { component: "span", className: L(T.dotsLoader, t), ...n, ref: r, children: [
|
|
1068
|
+
/* @__PURE__ */ f("span", { className: T.dot }),
|
|
1069
|
+
/* @__PURE__ */ f("span", { className: T.dot }),
|
|
1070
|
+
/* @__PURE__ */ f("span", { className: T.dot })
|
|
1071
|
+
] }));
|
|
1072
|
+
Rt.displayName = "@mantine/core/Dots";
|
|
1073
|
+
const Pt = _(({ className: t, ...n }, r) => /* @__PURE__ */ f($, { component: "span", className: L(T.ovalLoader, t), ...n, ref: r }));
|
|
1074
|
+
Pt.displayName = "@mantine/core/Oval";
|
|
1075
|
+
const _t = {
|
|
1076
|
+
bars: Tt,
|
|
1077
|
+
oval: Pt,
|
|
1078
|
+
dots: Rt
|
|
1079
|
+
}, cr = {
|
|
1080
|
+
loaders: _t,
|
|
1081
|
+
type: "oval"
|
|
1082
|
+
}, pr = (t, { size: n, color: r }) => ({
|
|
1083
|
+
root: {
|
|
1084
|
+
"--loader-size": A(n, "loader-size"),
|
|
1085
|
+
"--loader-color": r ? un(r, t) : void 0
|
|
1086
|
+
}
|
|
1087
|
+
}), D = ot((t, n) => {
|
|
1088
|
+
const r = O("Loader", cr, t), {
|
|
1089
|
+
size: e,
|
|
1090
|
+
color: o,
|
|
1091
|
+
type: a,
|
|
1092
|
+
vars: i,
|
|
1093
|
+
className: s,
|
|
1094
|
+
style: p,
|
|
1095
|
+
classNames: c,
|
|
1096
|
+
styles: m,
|
|
1097
|
+
unstyled: u,
|
|
1098
|
+
loaders: l,
|
|
1099
|
+
variant: g,
|
|
1100
|
+
children: d,
|
|
1101
|
+
...b
|
|
1102
|
+
} = r, h = F({
|
|
1103
|
+
name: "Loader",
|
|
1104
|
+
props: r,
|
|
1105
|
+
classes: T,
|
|
1106
|
+
className: s,
|
|
1107
|
+
style: p,
|
|
1108
|
+
classNames: c,
|
|
1109
|
+
styles: m,
|
|
1110
|
+
unstyled: u,
|
|
1111
|
+
vars: i,
|
|
1112
|
+
varsResolver: pr
|
|
1113
|
+
});
|
|
1114
|
+
return d ? /* @__PURE__ */ f($, { ...h("root"), ref: n, ...b, children: d }) : /* @__PURE__ */ f(
|
|
1115
|
+
$,
|
|
1116
|
+
{
|
|
1117
|
+
...h("root"),
|
|
1118
|
+
ref: n,
|
|
1119
|
+
component: l[a],
|
|
1120
|
+
variant: g,
|
|
1121
|
+
size: e,
|
|
1122
|
+
...b
|
|
1123
|
+
}
|
|
1124
|
+
);
|
|
1125
|
+
});
|
|
1126
|
+
D.defaultLoaders = _t;
|
|
1127
|
+
D.classes = T;
|
|
1128
|
+
D.displayName = "@mantine/core/Loader";
|
|
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
|
+
const lt = {
|
|
1131
|
+
orientation: "horizontal"
|
|
1132
|
+
}, mr = (t, { borderWidth: n }) => ({
|
|
1133
|
+
group: { "--button-border-width": P(n) }
|
|
1134
|
+
}), it = ot((t, n) => {
|
|
1135
|
+
const r = O("ButtonGroup", lt, t), {
|
|
1136
|
+
className: e,
|
|
1137
|
+
style: o,
|
|
1138
|
+
classNames: a,
|
|
1139
|
+
styles: i,
|
|
1140
|
+
unstyled: s,
|
|
1141
|
+
orientation: p,
|
|
1142
|
+
vars: c,
|
|
1143
|
+
borderWidth: m,
|
|
1144
|
+
variant: u,
|
|
1145
|
+
mod: l,
|
|
1146
|
+
...g
|
|
1147
|
+
} = O("ButtonGroup", lt, t), d = F({
|
|
1148
|
+
name: "ButtonGroup",
|
|
1149
|
+
props: r,
|
|
1150
|
+
classes: Y,
|
|
1151
|
+
className: e,
|
|
1152
|
+
style: o,
|
|
1153
|
+
classNames: a,
|
|
1154
|
+
styles: i,
|
|
1155
|
+
unstyled: s,
|
|
1156
|
+
vars: c,
|
|
1157
|
+
varsResolver: mr,
|
|
1158
|
+
rootSelector: "group"
|
|
1159
|
+
});
|
|
1160
|
+
return /* @__PURE__ */ f(
|
|
1161
|
+
$,
|
|
1162
|
+
{
|
|
1163
|
+
...d("group"),
|
|
1164
|
+
ref: n,
|
|
1165
|
+
variant: u,
|
|
1166
|
+
mod: [{ "data-orientation": p }, l],
|
|
1167
|
+
role: "group",
|
|
1168
|
+
...g
|
|
1169
|
+
}
|
|
1170
|
+
);
|
|
1171
|
+
});
|
|
1172
|
+
it.classes = Y;
|
|
1173
|
+
it.displayName = "@mantine/core/ButtonGroup";
|
|
1174
|
+
const ft = {}, ur = (t, { radius: n, color: r, gradient: e, variant: o, autoContrast: a, size: i }) => {
|
|
1175
|
+
const s = t.variantColorResolver({
|
|
1176
|
+
color: r || t.primaryColor,
|
|
1177
|
+
theme: t,
|
|
1178
|
+
gradient: e,
|
|
1179
|
+
variant: o || "filled",
|
|
1180
|
+
autoContrast: a
|
|
1181
|
+
});
|
|
1182
|
+
return {
|
|
1183
|
+
groupSection: {
|
|
1184
|
+
"--section-height": A(i, "section-height"),
|
|
1185
|
+
"--section-padding-x": A(i, "section-padding-x"),
|
|
1186
|
+
"--section-fz": i != null && i.includes("compact") ? G(i.replace("compact-", "")) : G(i),
|
|
1187
|
+
"--section-radius": n === void 0 ? void 0 : gt(n),
|
|
1188
|
+
"--section-bg": r || o ? s.background : void 0,
|
|
1189
|
+
"--section-color": s.color,
|
|
1190
|
+
"--section-bd": r || o ? s.border : void 0
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
}, st = ot((t, n) => {
|
|
1194
|
+
const r = O("ButtonGroupSection", ft, t), {
|
|
1195
|
+
className: e,
|
|
1196
|
+
style: o,
|
|
1197
|
+
classNames: a,
|
|
1198
|
+
styles: i,
|
|
1199
|
+
unstyled: s,
|
|
1200
|
+
vars: p,
|
|
1201
|
+
variant: c,
|
|
1202
|
+
gradient: m,
|
|
1203
|
+
radius: u,
|
|
1204
|
+
autoContrast: l,
|
|
1205
|
+
...g
|
|
1206
|
+
} = O("ButtonGroupSection", ft, t), d = F({
|
|
1207
|
+
name: "ButtonGroupSection",
|
|
1208
|
+
props: r,
|
|
1209
|
+
classes: Y,
|
|
1210
|
+
className: e,
|
|
1211
|
+
style: o,
|
|
1212
|
+
classNames: a,
|
|
1213
|
+
styles: i,
|
|
1214
|
+
unstyled: s,
|
|
1215
|
+
vars: p,
|
|
1216
|
+
varsResolver: ur,
|
|
1217
|
+
rootSelector: "groupSection"
|
|
1218
|
+
});
|
|
1219
|
+
return /* @__PURE__ */ f($, { ...d("groupSection"), ref: n, variant: c, ...g });
|
|
1220
|
+
});
|
|
1221
|
+
st.classes = Y;
|
|
1222
|
+
st.displayName = "@mantine/core/ButtonGroupSection";
|
|
1223
|
+
const lr = {
|
|
1224
|
+
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${P(1)}))` },
|
|
1225
|
+
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
1226
|
+
common: { transformOrigin: "center" },
|
|
1227
|
+
transitionProperty: "transform, opacity"
|
|
1228
|
+
}, fr = {}, dr = (t, { radius: n, color: r, gradient: e, variant: o, size: a, justify: i, autoContrast: s }) => {
|
|
1229
|
+
const p = t.variantColorResolver({
|
|
1230
|
+
color: r || t.primaryColor,
|
|
1231
|
+
theme: t,
|
|
1232
|
+
gradient: e,
|
|
1233
|
+
variant: o || "filled",
|
|
1234
|
+
autoContrast: s
|
|
1235
|
+
});
|
|
1236
|
+
return {
|
|
1237
|
+
root: {
|
|
1238
|
+
"--button-justify": i,
|
|
1239
|
+
"--button-height": A(a, "button-height"),
|
|
1240
|
+
"--button-padding-x": A(a, "button-padding-x"),
|
|
1241
|
+
"--button-fz": a != null && a.includes("compact") ? G(a.replace("compact-", "")) : G(a),
|
|
1242
|
+
"--button-radius": n === void 0 ? void 0 : gt(n),
|
|
1243
|
+
"--button-bg": r || o ? p.background : void 0,
|
|
1244
|
+
"--button-hover": r || o ? p.hover : void 0,
|
|
1245
|
+
"--button-color": p.color,
|
|
1246
|
+
"--button-bd": r || o ? p.border : void 0,
|
|
1247
|
+
"--button-hover-color": r || o ? p.hoverColor : void 0
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
}, I = xt((t, n) => {
|
|
1251
|
+
const r = O("Button", fr, t), {
|
|
1252
|
+
style: e,
|
|
1253
|
+
vars: o,
|
|
1254
|
+
className: a,
|
|
1255
|
+
color: i,
|
|
1256
|
+
disabled: s,
|
|
1257
|
+
children: p,
|
|
1258
|
+
leftSection: c,
|
|
1259
|
+
rightSection: m,
|
|
1260
|
+
fullWidth: u,
|
|
1261
|
+
variant: l,
|
|
1262
|
+
radius: g,
|
|
1263
|
+
loading: d,
|
|
1264
|
+
loaderProps: b,
|
|
1265
|
+
gradient: h,
|
|
1266
|
+
classNames: x,
|
|
1267
|
+
styles: R,
|
|
1268
|
+
unstyled: S,
|
|
1269
|
+
"data-disabled": N,
|
|
1270
|
+
autoContrast: C,
|
|
1271
|
+
mod: y,
|
|
1272
|
+
...w
|
|
1273
|
+
} = r, v = F({
|
|
1274
|
+
name: "Button",
|
|
1275
|
+
props: r,
|
|
1276
|
+
classes: Y,
|
|
1277
|
+
className: a,
|
|
1278
|
+
style: e,
|
|
1279
|
+
classNames: x,
|
|
1280
|
+
styles: R,
|
|
1281
|
+
unstyled: S,
|
|
1282
|
+
vars: o,
|
|
1283
|
+
varsResolver: dr
|
|
1284
|
+
}), B = !!c, H = !!m;
|
|
1285
|
+
return /* @__PURE__ */ j(
|
|
1286
|
+
at,
|
|
1287
|
+
{
|
|
1288
|
+
ref: n,
|
|
1289
|
+
...v("root", { active: !s && !d && !N }),
|
|
1290
|
+
unstyled: S,
|
|
1291
|
+
variant: l,
|
|
1292
|
+
disabled: s || d,
|
|
1293
|
+
mod: [
|
|
1294
|
+
{
|
|
1295
|
+
disabled: s || N,
|
|
1296
|
+
loading: d,
|
|
1297
|
+
block: u,
|
|
1298
|
+
"with-left-section": B,
|
|
1299
|
+
"with-right-section": H
|
|
1300
|
+
},
|
|
1301
|
+
y
|
|
1302
|
+
],
|
|
1303
|
+
...w,
|
|
1304
|
+
children: [
|
|
1305
|
+
/* @__PURE__ */ f($t, { mounted: !!d, transition: lr, duration: 150, children: (V) => /* @__PURE__ */ f($, { component: "span", ...v("loader", { style: V }), "aria-hidden": !0, children: /* @__PURE__ */ f(
|
|
1306
|
+
D,
|
|
1307
|
+
{
|
|
1308
|
+
color: "var(--button-color)",
|
|
1309
|
+
size: "calc(var(--button-height) / 1.8)",
|
|
1310
|
+
...b
|
|
1311
|
+
}
|
|
1312
|
+
) }) }),
|
|
1313
|
+
/* @__PURE__ */ j("span", { ...v("inner"), children: [
|
|
1314
|
+
c && /* @__PURE__ */ f($, { component: "span", ...v("section"), mod: { position: "left" }, children: c }),
|
|
1315
|
+
/* @__PURE__ */ f($, { component: "span", mod: { loading: d }, ...v("label"), children: p }),
|
|
1316
|
+
m && /* @__PURE__ */ f($, { component: "span", ...v("section"), mod: { position: "right" }, children: m })
|
|
1317
|
+
] })
|
|
1318
|
+
]
|
|
1319
|
+
}
|
|
1320
|
+
);
|
|
1321
|
+
});
|
|
1322
|
+
I.classes = Y;
|
|
1323
|
+
I.displayName = "@mantine/core/Button";
|
|
1324
|
+
I.Group = it;
|
|
1325
|
+
I.GroupSection = st;
|
|
1326
|
+
const yr = "_button_1bwq5_1", gr = {
|
|
1327
|
+
button: yr
|
|
1328
|
+
}, xr = (t) => /* @__PURE__ */ f(I, { ...t, className: gr.button });
|
|
1329
|
+
export {
|
|
1330
|
+
xr as Button
|
|
1331
|
+
};
|