@kvell-group/ui 1.8.3 → 1.9.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/Text.module-R-XLggXY.js +8 -0
- package/dist/UnstyledButton-D2QHft3M.js +44 -0
- package/dist/assets/CardInput.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/components/Button/Button.js +251 -288
- package/dist/components/CardInput/CardInput.d.ts +145 -0
- package/dist/components/CardInput/CardInput.js +3924 -0
- package/dist/components/CardInput/index.d.ts +1 -0
- package/dist/components/CardInput/index.js +4 -0
- package/dist/components/CardInput/useCardLogo.d.ts +1 -0
- package/dist/components/CardInput/useCardLogo.js +47 -0
- package/dist/components/MainProvider/MantineProvider.js +31 -31
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.js +88 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +4 -0
- package/dist/components/theme.js +40 -23
- package/dist/main.d.ts +3 -1
- package/dist/main.js +10 -6
- package/dist/{polymorphic-factory-DUeudAZR.js → polymorphic-factory-Bvt8Is5k.js} +3 -0
- package/dist/use-isomorphic-effect-TT0F1lfC.js +5 -0
- package/package.json +3 -1
- package/dist/Text-B8e4XllM.js +0 -80
- package/dist/assets/TypographyBodySMedium.css +0 -1
- package/dist/assets/TypographyCaptionLMedium.css +0 -1
- package/dist/components/Typography/TypographyBodySMedium.d.ts +0 -2
- package/dist/components/Typography/TypographyBodySMedium.js +0 -14
- package/dist/components/Typography/TypographyCaptionLMedium.d.ts +0 -2
- package/dist/components/Typography/TypographyCaptionLMedium.js +0 -14
- package/dist/components/Typography/types.d.ts +0 -5
- package/dist/components/Typography/types.js +0 -1
|
@@ -1,88 +1,51 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useState as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { jsx as i, Fragment as Q, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import { u as it, j as ct, g as mt, r as q } from "../../MantineThemeProvider-kHsOfZUW.js";
|
|
3
|
+
import { useState as j, useRef as L, useEffect as X, forwardRef as I } from "react";
|
|
4
|
+
import { B as g, d as M, f as W, u as N, a as k, c as E, e as _, h as z, b as D, p as pt } from "../../polymorphic-factory-Bvt8Is5k.js";
|
|
5
|
+
import lt from "react-dom";
|
|
6
|
+
import { U as dt } from "../../UnstyledButton-D2QHft3M.js";
|
|
7
|
+
import '../../assets/Button.css';function ut(t, o) {
|
|
7
8
|
try {
|
|
8
9
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
9
10
|
} catch {
|
|
10
11
|
return t.addListener(o), () => t.removeListener(o);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
+
function ft(t, o) {
|
|
14
15
|
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function yt(t, o, { getInitialValueInEffect: r } = {
|
|
17
18
|
getInitialValueInEffect: !0
|
|
18
19
|
}) {
|
|
19
|
-
const [s,
|
|
20
|
-
|
|
21
|
-
),
|
|
22
|
-
return
|
|
20
|
+
const [s, e] = j(
|
|
21
|
+
r ? o : ft(t)
|
|
22
|
+
), n = L(null);
|
|
23
|
+
return X(() => {
|
|
23
24
|
if ("matchMedia" in window)
|
|
24
|
-
return
|
|
25
|
+
return n.current = window.matchMedia(t), e(n.current.matches), ut(n.current, (a) => e(a.matches));
|
|
25
26
|
}, [t]), s;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
function gt(t, o) {
|
|
29
|
+
const r = L(!1);
|
|
30
|
+
X(
|
|
30
31
|
() => () => {
|
|
31
|
-
|
|
32
|
+
r.current = !1;
|
|
32
33
|
},
|
|
33
34
|
[]
|
|
34
|
-
),
|
|
35
|
-
if (
|
|
35
|
+
), X(() => {
|
|
36
|
+
if (r.current)
|
|
36
37
|
return t();
|
|
37
|
-
|
|
38
|
+
r.current = !0;
|
|
38
39
|
}, o);
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
41
|
+
function bt(t, o) {
|
|
42
|
+
return yt("(prefers-reduced-motion: reduce)", t, o);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
const vt = {
|
|
45
|
-
__staticSelector: "UnstyledButton"
|
|
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,
|
|
59
|
-
props: n,
|
|
60
|
-
classes: nt,
|
|
61
|
-
className: s,
|
|
62
|
-
style: p,
|
|
63
|
-
classNames: i,
|
|
64
|
-
styles: m,
|
|
65
|
-
unstyled: a
|
|
66
|
-
});
|
|
67
|
-
return /* @__PURE__ */ c(
|
|
68
|
-
y,
|
|
69
|
-
{
|
|
70
|
-
...f("root", { focusable: !0 }),
|
|
71
|
-
component: r,
|
|
72
|
-
ref: o,
|
|
73
|
-
type: r === "button" ? "button" : void 0,
|
|
74
|
-
...u
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
W.classes = nt;
|
|
80
|
-
W.displayName = "@mantine/core/UnstyledButton";
|
|
81
|
-
const T = (t) => ({
|
|
44
|
+
const Y = (t) => ({
|
|
82
45
|
in: { opacity: 1, transform: "scale(1)" },
|
|
83
46
|
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
84
47
|
transitionProperty: "transform, opacity"
|
|
85
|
-
}),
|
|
48
|
+
}), C = {
|
|
86
49
|
fade: {
|
|
87
50
|
in: { opacity: 1 },
|
|
88
51
|
out: { opacity: 0 },
|
|
@@ -175,26 +138,26 @@ const T = (t) => ({
|
|
|
175
138
|
transitionProperty: "transform, opacity"
|
|
176
139
|
},
|
|
177
140
|
pop: {
|
|
178
|
-
...
|
|
141
|
+
...Y("bottom"),
|
|
179
142
|
common: { transformOrigin: "center center" }
|
|
180
143
|
},
|
|
181
144
|
"pop-bottom-left": {
|
|
182
|
-
...
|
|
145
|
+
...Y("bottom"),
|
|
183
146
|
common: { transformOrigin: "bottom left" }
|
|
184
147
|
},
|
|
185
148
|
"pop-bottom-right": {
|
|
186
|
-
...
|
|
149
|
+
...Y("bottom"),
|
|
187
150
|
common: { transformOrigin: "bottom right" }
|
|
188
151
|
},
|
|
189
152
|
"pop-top-left": {
|
|
190
|
-
...
|
|
153
|
+
...Y("top"),
|
|
191
154
|
common: { transformOrigin: "top left" }
|
|
192
155
|
},
|
|
193
156
|
"pop-top-right": {
|
|
194
|
-
...
|
|
157
|
+
...Y("top"),
|
|
195
158
|
common: { transformOrigin: "top right" }
|
|
196
159
|
}
|
|
197
|
-
},
|
|
160
|
+
}, J = {
|
|
198
161
|
entering: "in",
|
|
199
162
|
entered: "in",
|
|
200
163
|
exiting: "out",
|
|
@@ -202,396 +165,396 @@ const T = (t) => ({
|
|
|
202
165
|
"pre-exiting": "out",
|
|
203
166
|
"pre-entering": "out"
|
|
204
167
|
};
|
|
205
|
-
function
|
|
168
|
+
function ht({
|
|
206
169
|
transition: t,
|
|
207
170
|
state: o,
|
|
208
|
-
duration:
|
|
171
|
+
duration: r,
|
|
209
172
|
timingFunction: s
|
|
210
173
|
}) {
|
|
211
|
-
const
|
|
174
|
+
const e = {
|
|
212
175
|
WebkitBackfaceVisibility: "hidden",
|
|
213
176
|
willChange: "transform, opacity",
|
|
214
|
-
transitionDuration: `${
|
|
177
|
+
transitionDuration: `${r}ms`,
|
|
215
178
|
transitionTimingFunction: s
|
|
216
179
|
};
|
|
217
|
-
return typeof t == "string" ? t in
|
|
218
|
-
transitionProperty:
|
|
219
|
-
...
|
|
220
|
-
...
|
|
221
|
-
...
|
|
180
|
+
return typeof t == "string" ? t in C ? {
|
|
181
|
+
transitionProperty: C[t].transitionProperty,
|
|
182
|
+
...e,
|
|
183
|
+
...C[t].common,
|
|
184
|
+
...C[t][J[o]]
|
|
222
185
|
} : {} : {
|
|
223
186
|
transitionProperty: t.transitionProperty,
|
|
224
|
-
...
|
|
187
|
+
...e,
|
|
225
188
|
...t.common,
|
|
226
|
-
...t[
|
|
189
|
+
...t[J[o]]
|
|
227
190
|
};
|
|
228
191
|
}
|
|
229
|
-
function
|
|
192
|
+
function vt({
|
|
230
193
|
duration: t,
|
|
231
194
|
exitDuration: o,
|
|
232
|
-
timingFunction:
|
|
195
|
+
timingFunction: r,
|
|
233
196
|
mounted: s,
|
|
234
|
-
onEnter:
|
|
235
|
-
onExit:
|
|
197
|
+
onEnter: e,
|
|
198
|
+
onExit: n,
|
|
236
199
|
onEntered: a,
|
|
237
|
-
onExited:
|
|
200
|
+
onExited: c,
|
|
238
201
|
enterDelay: m,
|
|
239
|
-
exitDelay:
|
|
202
|
+
exitDelay: l
|
|
240
203
|
}) {
|
|
241
|
-
const u =
|
|
242
|
-
const
|
|
243
|
-
window.clearTimeout(
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
|
|
204
|
+
const u = it(), h = bt(), f = u.respectReducedMotion ? h : !1, [v, p] = j(f ? 0 : t), [S, w] = j(s ? "entered" : "exited"), B = L(-1), $ = L(-1), x = L(-1), O = (d) => {
|
|
205
|
+
const P = d ? e : n, y = d ? a : c;
|
|
206
|
+
window.clearTimeout(B.current);
|
|
207
|
+
const T = f ? 0 : d ? t : o;
|
|
208
|
+
p(T), T === 0 ? (typeof P == "function" && P(), typeof y == "function" && y(), w(d ? "entered" : "exited")) : x.current = requestAnimationFrame(() => {
|
|
209
|
+
lt.flushSync(() => {
|
|
247
210
|
w(d ? "pre-entering" : "pre-exiting");
|
|
248
211
|
}), x.current = requestAnimationFrame(() => {
|
|
249
|
-
typeof
|
|
250
|
-
typeof
|
|
251
|
-
},
|
|
212
|
+
typeof P == "function" && P(), w(d ? "entering" : "exiting"), B.current = window.setTimeout(() => {
|
|
213
|
+
typeof y == "function" && y(), w(d ? "entered" : "exited");
|
|
214
|
+
}, T);
|
|
252
215
|
});
|
|
253
216
|
});
|
|
254
|
-
},
|
|
255
|
-
if (window.clearTimeout(
|
|
256
|
-
|
|
217
|
+
}, H = (d) => {
|
|
218
|
+
if (window.clearTimeout($.current), typeof (d ? m : l) != "number") {
|
|
219
|
+
O(d);
|
|
257
220
|
return;
|
|
258
221
|
}
|
|
259
|
-
|
|
222
|
+
$.current = window.setTimeout(
|
|
260
223
|
() => {
|
|
261
|
-
|
|
224
|
+
O(d);
|
|
262
225
|
},
|
|
263
|
-
d ? m :
|
|
226
|
+
d ? m : l
|
|
264
227
|
);
|
|
265
228
|
};
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
}, [s]),
|
|
229
|
+
return gt(() => {
|
|
230
|
+
H(s);
|
|
231
|
+
}, [s]), X(
|
|
269
232
|
() => () => {
|
|
270
|
-
window.clearTimeout(
|
|
233
|
+
window.clearTimeout(B.current), cancelAnimationFrame(x.current);
|
|
271
234
|
},
|
|
272
235
|
[]
|
|
273
236
|
), {
|
|
274
237
|
transitionDuration: v,
|
|
275
238
|
transitionStatus: S,
|
|
276
|
-
transitionTimingFunction:
|
|
239
|
+
transitionTimingFunction: r || "ease"
|
|
277
240
|
};
|
|
278
241
|
}
|
|
279
|
-
function
|
|
242
|
+
function tt({
|
|
280
243
|
keepMounted: t,
|
|
281
244
|
transition: o = "fade",
|
|
282
|
-
duration:
|
|
283
|
-
exitDuration: s =
|
|
284
|
-
mounted:
|
|
285
|
-
children:
|
|
245
|
+
duration: r = 250,
|
|
246
|
+
exitDuration: s = r,
|
|
247
|
+
mounted: e,
|
|
248
|
+
children: n,
|
|
286
249
|
timingFunction: a = "ease",
|
|
287
|
-
onExit:
|
|
250
|
+
onExit: c,
|
|
288
251
|
onEntered: m,
|
|
289
|
-
onEnter:
|
|
252
|
+
onEnter: l,
|
|
290
253
|
onExited: u,
|
|
291
|
-
enterDelay:
|
|
292
|
-
exitDelay:
|
|
254
|
+
enterDelay: h,
|
|
255
|
+
exitDelay: f
|
|
293
256
|
}) {
|
|
294
|
-
const v =
|
|
295
|
-
mounted:
|
|
257
|
+
const v = ct(), { transitionDuration: p, transitionStatus: S, transitionTimingFunction: w } = vt({
|
|
258
|
+
mounted: e,
|
|
296
259
|
exitDuration: s,
|
|
297
|
-
duration:
|
|
260
|
+
duration: r,
|
|
298
261
|
timingFunction: a,
|
|
299
|
-
onExit:
|
|
262
|
+
onExit: c,
|
|
300
263
|
onEntered: m,
|
|
301
|
-
onEnter:
|
|
264
|
+
onEnter: l,
|
|
302
265
|
onExited: u,
|
|
303
|
-
enterDelay:
|
|
304
|
-
exitDelay:
|
|
266
|
+
enterDelay: h,
|
|
267
|
+
exitDelay: f
|
|
305
268
|
});
|
|
306
|
-
return
|
|
307
|
-
|
|
269
|
+
return p === 0 || v === "test" ? e ? /* @__PURE__ */ i(Q, { children: n({}) }) : t ? n({ display: "none" }) : null : S === "exited" ? t ? n({ display: "none" }) : null : /* @__PURE__ */ i(Q, { children: n(
|
|
270
|
+
ht({
|
|
308
271
|
transition: o,
|
|
309
|
-
duration:
|
|
272
|
+
duration: p,
|
|
310
273
|
state: S,
|
|
311
274
|
timingFunction: w
|
|
312
275
|
})
|
|
313
276
|
) });
|
|
314
277
|
}
|
|
315
|
-
|
|
316
|
-
var
|
|
317
|
-
const
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
278
|
+
tt.displayName = "@mantine/core/Transition";
|
|
279
|
+
var b = { 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" };
|
|
280
|
+
const ot = I(({ className: t, ...o }, r) => /* @__PURE__ */ F(g, { component: "span", className: M(b.barsLoader, t), ...o, ref: r, children: [
|
|
281
|
+
/* @__PURE__ */ i("span", { className: b.bar }),
|
|
282
|
+
/* @__PURE__ */ i("span", { className: b.bar }),
|
|
283
|
+
/* @__PURE__ */ i("span", { className: b.bar })
|
|
321
284
|
] }));
|
|
322
|
-
|
|
323
|
-
const
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
285
|
+
ot.displayName = "@mantine/core/Bars";
|
|
286
|
+
const rt = I(({ className: t, ...o }, r) => /* @__PURE__ */ F(g, { component: "span", className: M(b.dotsLoader, t), ...o, ref: r, children: [
|
|
287
|
+
/* @__PURE__ */ i("span", { className: b.dot }),
|
|
288
|
+
/* @__PURE__ */ i("span", { className: b.dot }),
|
|
289
|
+
/* @__PURE__ */ i("span", { className: b.dot })
|
|
327
290
|
] }));
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
bars:
|
|
333
|
-
oval:
|
|
334
|
-
dots:
|
|
335
|
-
},
|
|
336
|
-
loaders:
|
|
291
|
+
rt.displayName = "@mantine/core/Dots";
|
|
292
|
+
const nt = I(({ className: t, ...o }, r) => /* @__PURE__ */ i(g, { component: "span", className: M(b.ovalLoader, t), ...o, ref: r }));
|
|
293
|
+
nt.displayName = "@mantine/core/Oval";
|
|
294
|
+
const et = {
|
|
295
|
+
bars: ot,
|
|
296
|
+
oval: nt,
|
|
297
|
+
dots: rt
|
|
298
|
+
}, wt = {
|
|
299
|
+
loaders: et,
|
|
337
300
|
type: "oval"
|
|
338
|
-
},
|
|
301
|
+
}, St = E((t, { size: o, color: r }) => ({
|
|
339
302
|
root: {
|
|
340
|
-
"--loader-size":
|
|
341
|
-
"--loader-color":
|
|
303
|
+
"--loader-size": _(o, "loader-size"),
|
|
304
|
+
"--loader-color": r ? mt(r, t) : void 0
|
|
342
305
|
}
|
|
343
|
-
})),
|
|
344
|
-
const
|
|
306
|
+
})), V = W((t, o) => {
|
|
307
|
+
const r = N("Loader", wt, t), {
|
|
345
308
|
size: s,
|
|
346
|
-
color:
|
|
347
|
-
type:
|
|
309
|
+
color: e,
|
|
310
|
+
type: n,
|
|
348
311
|
vars: a,
|
|
349
|
-
className:
|
|
312
|
+
className: c,
|
|
350
313
|
style: m,
|
|
351
|
-
classNames:
|
|
314
|
+
classNames: l,
|
|
352
315
|
styles: u,
|
|
353
|
-
unstyled:
|
|
354
|
-
loaders:
|
|
316
|
+
unstyled: h,
|
|
317
|
+
loaders: f,
|
|
355
318
|
variant: v,
|
|
356
|
-
children:
|
|
319
|
+
children: p,
|
|
357
320
|
...S
|
|
358
|
-
} =
|
|
321
|
+
} = r, w = k({
|
|
359
322
|
name: "Loader",
|
|
360
|
-
props:
|
|
361
|
-
classes:
|
|
362
|
-
className:
|
|
323
|
+
props: r,
|
|
324
|
+
classes: b,
|
|
325
|
+
className: c,
|
|
363
326
|
style: m,
|
|
364
|
-
classNames:
|
|
327
|
+
classNames: l,
|
|
365
328
|
styles: u,
|
|
366
|
-
unstyled:
|
|
329
|
+
unstyled: h,
|
|
367
330
|
vars: a,
|
|
368
|
-
varsResolver:
|
|
331
|
+
varsResolver: St
|
|
369
332
|
});
|
|
370
|
-
return
|
|
371
|
-
|
|
333
|
+
return p ? /* @__PURE__ */ i(g, { ...w("root"), ref: o, ...S, children: p }) : /* @__PURE__ */ i(
|
|
334
|
+
g,
|
|
372
335
|
{
|
|
373
336
|
...w("root"),
|
|
374
337
|
ref: o,
|
|
375
|
-
component:
|
|
338
|
+
component: f[n],
|
|
376
339
|
variant: v,
|
|
377
340
|
size: s,
|
|
378
341
|
...S
|
|
379
342
|
}
|
|
380
343
|
);
|
|
381
344
|
});
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
var
|
|
386
|
-
const
|
|
345
|
+
V.defaultLoaders = et;
|
|
346
|
+
V.classes = b;
|
|
347
|
+
V.displayName = "@mantine/core/Loader";
|
|
348
|
+
var R = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
349
|
+
const K = {
|
|
387
350
|
orientation: "horizontal"
|
|
388
|
-
},
|
|
389
|
-
group: { "--button-border-width":
|
|
390
|
-
})), A =
|
|
391
|
-
const
|
|
351
|
+
}, Pt = E((t, { borderWidth: o }) => ({
|
|
352
|
+
group: { "--button-border-width": q(o) }
|
|
353
|
+
})), A = W((t, o) => {
|
|
354
|
+
const r = N("ButtonGroup", K, t), {
|
|
392
355
|
className: s,
|
|
393
|
-
style:
|
|
394
|
-
classNames:
|
|
356
|
+
style: e,
|
|
357
|
+
classNames: n,
|
|
395
358
|
styles: a,
|
|
396
|
-
unstyled:
|
|
359
|
+
unstyled: c,
|
|
397
360
|
orientation: m,
|
|
398
|
-
vars:
|
|
361
|
+
vars: l,
|
|
399
362
|
borderWidth: u,
|
|
400
|
-
variant:
|
|
401
|
-
mod:
|
|
363
|
+
variant: h,
|
|
364
|
+
mod: f,
|
|
402
365
|
...v
|
|
403
|
-
} =
|
|
366
|
+
} = N("ButtonGroup", K, t), p = k({
|
|
404
367
|
name: "ButtonGroup",
|
|
405
|
-
props:
|
|
406
|
-
classes:
|
|
368
|
+
props: r,
|
|
369
|
+
classes: R,
|
|
407
370
|
className: s,
|
|
408
|
-
style:
|
|
409
|
-
classNames:
|
|
371
|
+
style: e,
|
|
372
|
+
classNames: n,
|
|
410
373
|
styles: a,
|
|
411
|
-
unstyled:
|
|
412
|
-
vars:
|
|
413
|
-
varsResolver:
|
|
374
|
+
unstyled: c,
|
|
375
|
+
vars: l,
|
|
376
|
+
varsResolver: Pt,
|
|
414
377
|
rootSelector: "group"
|
|
415
378
|
});
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
-
|
|
379
|
+
return /* @__PURE__ */ i(
|
|
380
|
+
g,
|
|
418
381
|
{
|
|
419
|
-
...
|
|
382
|
+
...p("group"),
|
|
420
383
|
ref: o,
|
|
421
|
-
variant:
|
|
422
|
-
mod: [{ "data-orientation": m },
|
|
384
|
+
variant: h,
|
|
385
|
+
mod: [{ "data-orientation": m }, f],
|
|
423
386
|
role: "group",
|
|
424
387
|
...v
|
|
425
388
|
}
|
|
426
389
|
);
|
|
427
390
|
});
|
|
428
|
-
A.classes =
|
|
391
|
+
A.classes = R;
|
|
429
392
|
A.displayName = "@mantine/core/ButtonGroup";
|
|
430
|
-
const
|
|
431
|
-
(t, { radius: o, color:
|
|
432
|
-
const
|
|
433
|
-
color:
|
|
393
|
+
const Z = {}, xt = E(
|
|
394
|
+
(t, { radius: o, color: r, gradient: s, variant: e, autoContrast: n, size: a }) => {
|
|
395
|
+
const c = t.variantColorResolver({
|
|
396
|
+
color: r || t.primaryColor,
|
|
434
397
|
theme: t,
|
|
435
398
|
gradient: s,
|
|
436
|
-
variant:
|
|
437
|
-
autoContrast:
|
|
399
|
+
variant: e || "filled",
|
|
400
|
+
autoContrast: n
|
|
438
401
|
});
|
|
439
402
|
return {
|
|
440
403
|
groupSection: {
|
|
441
|
-
"--section-height":
|
|
442
|
-
"--section-padding-x":
|
|
443
|
-
"--section-fz": a != null && a.includes("compact") ?
|
|
444
|
-
"--section-radius": o === void 0 ? void 0 :
|
|
445
|
-
"--section-bg":
|
|
446
|
-
"--section-color":
|
|
447
|
-
"--section-bd":
|
|
404
|
+
"--section-height": _(a, "section-height"),
|
|
405
|
+
"--section-padding-x": _(a, "section-padding-x"),
|
|
406
|
+
"--section-fz": a != null && a.includes("compact") ? D(a.replace("compact-", "")) : D(a),
|
|
407
|
+
"--section-radius": o === void 0 ? void 0 : z(o),
|
|
408
|
+
"--section-bg": r || e ? c.background : void 0,
|
|
409
|
+
"--section-color": c.color,
|
|
410
|
+
"--section-bd": r || e ? c.border : void 0
|
|
448
411
|
}
|
|
449
412
|
};
|
|
450
413
|
}
|
|
451
|
-
),
|
|
452
|
-
const
|
|
414
|
+
), U = W((t, o) => {
|
|
415
|
+
const r = N("ButtonGroupSection", Z, t), {
|
|
453
416
|
className: s,
|
|
454
|
-
style:
|
|
455
|
-
classNames:
|
|
417
|
+
style: e,
|
|
418
|
+
classNames: n,
|
|
456
419
|
styles: a,
|
|
457
|
-
unstyled:
|
|
420
|
+
unstyled: c,
|
|
458
421
|
vars: m,
|
|
459
|
-
variant:
|
|
422
|
+
variant: l,
|
|
460
423
|
gradient: u,
|
|
461
|
-
radius:
|
|
462
|
-
autoContrast:
|
|
424
|
+
radius: h,
|
|
425
|
+
autoContrast: f,
|
|
463
426
|
...v
|
|
464
|
-
} =
|
|
427
|
+
} = N("ButtonGroupSection", Z, t), p = k({
|
|
465
428
|
name: "ButtonGroupSection",
|
|
466
|
-
props:
|
|
467
|
-
classes:
|
|
429
|
+
props: r,
|
|
430
|
+
classes: R,
|
|
468
431
|
className: s,
|
|
469
|
-
style:
|
|
470
|
-
classNames:
|
|
432
|
+
style: e,
|
|
433
|
+
classNames: n,
|
|
471
434
|
styles: a,
|
|
472
|
-
unstyled:
|
|
435
|
+
unstyled: c,
|
|
473
436
|
vars: m,
|
|
474
|
-
varsResolver:
|
|
437
|
+
varsResolver: xt,
|
|
475
438
|
rootSelector: "groupSection"
|
|
476
439
|
});
|
|
477
|
-
return /* @__PURE__ */
|
|
440
|
+
return /* @__PURE__ */ i(g, { ...p("groupSection"), ref: o, variant: l, ...v });
|
|
478
441
|
});
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${
|
|
442
|
+
U.classes = R;
|
|
443
|
+
U.displayName = "@mantine/core/ButtonGroupSection";
|
|
444
|
+
const Nt = {
|
|
445
|
+
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${q(1)}))` },
|
|
483
446
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
484
447
|
common: { transformOrigin: "center" },
|
|
485
448
|
transitionProperty: "transform, opacity"
|
|
486
|
-
}, Rt = {},
|
|
487
|
-
(t, { radius: o, color:
|
|
449
|
+
}, Rt = {}, Bt = E(
|
|
450
|
+
(t, { radius: o, color: r, gradient: s, variant: e, size: n, justify: a, autoContrast: c }) => {
|
|
488
451
|
const m = t.variantColorResolver({
|
|
489
|
-
color:
|
|
452
|
+
color: r || t.primaryColor,
|
|
490
453
|
theme: t,
|
|
491
454
|
gradient: s,
|
|
492
|
-
variant:
|
|
493
|
-
autoContrast:
|
|
455
|
+
variant: e || "filled",
|
|
456
|
+
autoContrast: c
|
|
494
457
|
});
|
|
495
458
|
return {
|
|
496
459
|
root: {
|
|
497
460
|
"--button-justify": a,
|
|
498
|
-
"--button-height":
|
|
499
|
-
"--button-padding-x":
|
|
500
|
-
"--button-fz":
|
|
501
|
-
"--button-radius": o === void 0 ? void 0 :
|
|
502
|
-
"--button-bg":
|
|
503
|
-
"--button-hover":
|
|
461
|
+
"--button-height": _(n, "button-height"),
|
|
462
|
+
"--button-padding-x": _(n, "button-padding-x"),
|
|
463
|
+
"--button-fz": n != null && n.includes("compact") ? D(n.replace("compact-", "")) : D(n),
|
|
464
|
+
"--button-radius": o === void 0 ? void 0 : z(o),
|
|
465
|
+
"--button-bg": r || e ? m.background : void 0,
|
|
466
|
+
"--button-hover": r || e ? m.hover : void 0,
|
|
504
467
|
"--button-color": m.color,
|
|
505
|
-
"--button-bd":
|
|
506
|
-
"--button-hover-color":
|
|
468
|
+
"--button-bd": r || e ? m.border : void 0,
|
|
469
|
+
"--button-hover-color": r || e ? m.hoverColor : void 0
|
|
507
470
|
}
|
|
508
471
|
};
|
|
509
472
|
}
|
|
510
|
-
), G =
|
|
511
|
-
const
|
|
473
|
+
), G = pt((t, o) => {
|
|
474
|
+
const r = N("Button", Rt, t), {
|
|
512
475
|
style: s,
|
|
513
|
-
vars:
|
|
514
|
-
className:
|
|
476
|
+
vars: e,
|
|
477
|
+
className: n,
|
|
515
478
|
color: a,
|
|
516
|
-
disabled:
|
|
479
|
+
disabled: c,
|
|
517
480
|
children: m,
|
|
518
|
-
leftSection:
|
|
481
|
+
leftSection: l,
|
|
519
482
|
rightSection: u,
|
|
520
|
-
fullWidth:
|
|
521
|
-
variant:
|
|
483
|
+
fullWidth: h,
|
|
484
|
+
variant: f,
|
|
522
485
|
radius: v,
|
|
523
|
-
loading:
|
|
486
|
+
loading: p,
|
|
524
487
|
loaderProps: S,
|
|
525
488
|
gradient: w,
|
|
526
|
-
classNames:
|
|
527
|
-
styles:
|
|
489
|
+
classNames: B,
|
|
490
|
+
styles: $,
|
|
528
491
|
unstyled: x,
|
|
529
|
-
"data-disabled":
|
|
530
|
-
autoContrast:
|
|
492
|
+
"data-disabled": O,
|
|
493
|
+
autoContrast: H,
|
|
531
494
|
mod: d,
|
|
532
|
-
...
|
|
533
|
-
} =
|
|
495
|
+
...P
|
|
496
|
+
} = r, y = k({
|
|
534
497
|
name: "Button",
|
|
535
|
-
props:
|
|
536
|
-
classes:
|
|
537
|
-
className:
|
|
498
|
+
props: r,
|
|
499
|
+
classes: R,
|
|
500
|
+
className: n,
|
|
538
501
|
style: s,
|
|
539
|
-
classNames:
|
|
540
|
-
styles:
|
|
502
|
+
classNames: B,
|
|
503
|
+
styles: $,
|
|
541
504
|
unstyled: x,
|
|
542
|
-
vars:
|
|
543
|
-
varsResolver:
|
|
544
|
-
}),
|
|
545
|
-
return /* @__PURE__ */
|
|
546
|
-
|
|
505
|
+
vars: e,
|
|
506
|
+
varsResolver: Bt
|
|
507
|
+
}), T = !!l, at = !!u;
|
|
508
|
+
return /* @__PURE__ */ F(
|
|
509
|
+
dt,
|
|
547
510
|
{
|
|
548
511
|
ref: o,
|
|
549
|
-
...
|
|
512
|
+
...y("root", { active: !c && !p && !O }),
|
|
550
513
|
unstyled: x,
|
|
551
|
-
variant:
|
|
552
|
-
disabled:
|
|
514
|
+
variant: f,
|
|
515
|
+
disabled: c || p,
|
|
553
516
|
mod: [
|
|
554
517
|
{
|
|
555
|
-
disabled:
|
|
556
|
-
loading:
|
|
557
|
-
block:
|
|
558
|
-
"with-left-section":
|
|
559
|
-
"with-right-section":
|
|
518
|
+
disabled: c || O,
|
|
519
|
+
loading: p,
|
|
520
|
+
block: h,
|
|
521
|
+
"with-left-section": T,
|
|
522
|
+
"with-right-section": at
|
|
560
523
|
},
|
|
561
524
|
d
|
|
562
525
|
],
|
|
563
|
-
...
|
|
526
|
+
...P,
|
|
564
527
|
children: [
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
|
|
528
|
+
/* @__PURE__ */ i(tt, { mounted: !!p, transition: Nt, duration: 150, children: (st) => /* @__PURE__ */ i(g, { component: "span", ...y("loader", { style: st }), "aria-hidden": !0, children: /* @__PURE__ */ i(
|
|
529
|
+
V,
|
|
567
530
|
{
|
|
568
531
|
color: "var(--button-color)",
|
|
569
532
|
size: "calc(var(--button-height) / 1.8)",
|
|
570
533
|
...S
|
|
571
534
|
}
|
|
572
535
|
) }) }),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
u && /* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ F("span", { ...y("inner"), children: [
|
|
537
|
+
l && /* @__PURE__ */ i(g, { component: "span", ...y("section"), mod: { position: "left" }, children: l }),
|
|
538
|
+
/* @__PURE__ */ i(g, { component: "span", mod: { loading: p }, ...y("label"), children: m }),
|
|
539
|
+
u && /* @__PURE__ */ i(g, { component: "span", ...y("section"), mod: { position: "right" }, children: u })
|
|
577
540
|
] })
|
|
578
541
|
]
|
|
579
542
|
}
|
|
580
543
|
);
|
|
581
544
|
});
|
|
582
|
-
G.classes =
|
|
545
|
+
G.classes = R;
|
|
583
546
|
G.displayName = "@mantine/core/Button";
|
|
584
547
|
G.Group = A;
|
|
585
|
-
G.GroupSection =
|
|
586
|
-
const
|
|
587
|
-
root:
|
|
588
|
-
},
|
|
548
|
+
G.GroupSection = U;
|
|
549
|
+
const Ot = "_root_arz1h_1", Tt = {
|
|
550
|
+
root: Ot
|
|
551
|
+
}, Ft = (t) => /* @__PURE__ */ i(
|
|
589
552
|
G,
|
|
590
553
|
{
|
|
591
554
|
...t,
|
|
592
|
-
classNames:
|
|
555
|
+
classNames: Tt
|
|
593
556
|
}
|
|
594
557
|
);
|
|
595
558
|
export {
|
|
596
|
-
|
|
559
|
+
Ft as Button
|
|
597
560
|
};
|