@kvell-group/ui 1.8.3 → 1.9.1
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/assets/CardInput.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/components/Button/Button.js +9 -592
- package/dist/components/CardInput/CardInput.d.ts +145 -0
- package/dist/components/CardInput/CardInput.js +3223 -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 +9 -425
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.js +13 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +4 -0
- package/dist/components/theme.js +40 -25
- package/dist/main.d.ts +3 -1
- package/dist/main.js +13 -46
- package/package.json +10 -10
- package/dist/MantineThemeProvider-kHsOfZUW.js +0 -705
- 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
- package/dist/polymorphic-factory-DUeudAZR.js +0 -767
package/README.md
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._input_u23b9_1{border-radius:var(--mantine-radius-xl);border:1px solid var(--mantine-color-border-action-normal-0);color:var(--mantine-color-text-base-tertiary-0)}._section_u23b9_7[data-position=right]{padding-right:.25rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._body-s-medium_ziqnx_2{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-s-medium);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-letter-spacing-body-s)}._caption-l-medium_ziqnx_11{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-letter-spacing-caption-l)}._caption-l-regular_ziqnx_19{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l-regular);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-letter-spacing-caption-l)}
|
|
@@ -1,597 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
try {
|
|
8
|
-
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
9
|
-
} catch {
|
|
10
|
-
return t.addListener(o), () => t.removeListener(o);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function yt(t, o) {
|
|
14
|
-
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
15
|
-
}
|
|
16
|
-
function gt(t, o, { getInitialValueInEffect: n } = {
|
|
17
|
-
getInitialValueInEffect: !0
|
|
18
|
-
}) {
|
|
19
|
-
const [s, r] = V(
|
|
20
|
-
n ? o : yt(t)
|
|
21
|
-
), e = Y(null);
|
|
22
|
-
return D(() => {
|
|
23
|
-
if ("matchMedia" in window)
|
|
24
|
-
return e.current = window.matchMedia(t), r(e.current.matches), ft(e.current, (a) => r(a.matches));
|
|
25
|
-
}, [t]), s;
|
|
26
|
-
}
|
|
27
|
-
function bt(t, o) {
|
|
28
|
-
const n = Y(!1);
|
|
29
|
-
D(
|
|
30
|
-
() => () => {
|
|
31
|
-
n.current = !1;
|
|
32
|
-
},
|
|
33
|
-
[]
|
|
34
|
-
), D(() => {
|
|
35
|
-
if (n.current)
|
|
36
|
-
return t();
|
|
37
|
-
n.current = !0;
|
|
38
|
-
}, o);
|
|
39
|
-
}
|
|
40
|
-
function ht(t, o) {
|
|
41
|
-
return gt("(prefers-reduced-motion: reduce)", t, o);
|
|
42
|
-
}
|
|
43
|
-
var nt = { root: "m_87cf2631" };
|
|
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) => ({
|
|
82
|
-
in: { opacity: 1, transform: "scale(1)" },
|
|
83
|
-
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
84
|
-
transitionProperty: "transform, opacity"
|
|
85
|
-
}), F = {
|
|
86
|
-
fade: {
|
|
87
|
-
in: { opacity: 1 },
|
|
88
|
-
out: { opacity: 0 },
|
|
89
|
-
transitionProperty: "opacity"
|
|
90
|
-
},
|
|
91
|
-
"fade-up": {
|
|
92
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
93
|
-
out: { opacity: 0, transform: "translateY(30px)" },
|
|
94
|
-
transitionProperty: "opacity, transform"
|
|
95
|
-
},
|
|
96
|
-
"fade-down": {
|
|
97
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
98
|
-
out: { opacity: 0, transform: "translateY(-30px)" },
|
|
99
|
-
transitionProperty: "opacity, transform"
|
|
100
|
-
},
|
|
101
|
-
"fade-left": {
|
|
102
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
103
|
-
out: { opacity: 0, transform: "translateX(30px)" },
|
|
104
|
-
transitionProperty: "opacity, transform"
|
|
105
|
-
},
|
|
106
|
-
"fade-right": {
|
|
107
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
108
|
-
out: { opacity: 0, transform: "translateX(-30px)" },
|
|
109
|
-
transitionProperty: "opacity, transform"
|
|
110
|
-
},
|
|
111
|
-
scale: {
|
|
112
|
-
in: { opacity: 1, transform: "scale(1)" },
|
|
113
|
-
out: { opacity: 0, transform: "scale(0)" },
|
|
114
|
-
common: { transformOrigin: "top" },
|
|
115
|
-
transitionProperty: "transform, opacity"
|
|
116
|
-
},
|
|
117
|
-
"scale-y": {
|
|
118
|
-
in: { opacity: 1, transform: "scaleY(1)" },
|
|
119
|
-
out: { opacity: 0, transform: "scaleY(0)" },
|
|
120
|
-
common: { transformOrigin: "top" },
|
|
121
|
-
transitionProperty: "transform, opacity"
|
|
122
|
-
},
|
|
123
|
-
"scale-x": {
|
|
124
|
-
in: { opacity: 1, transform: "scaleX(1)" },
|
|
125
|
-
out: { opacity: 0, transform: "scaleX(0)" },
|
|
126
|
-
common: { transformOrigin: "left" },
|
|
127
|
-
transitionProperty: "transform, opacity"
|
|
128
|
-
},
|
|
129
|
-
"skew-up": {
|
|
130
|
-
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
131
|
-
out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" },
|
|
132
|
-
common: { transformOrigin: "top" },
|
|
133
|
-
transitionProperty: "transform, opacity"
|
|
134
|
-
},
|
|
135
|
-
"skew-down": {
|
|
136
|
-
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
137
|
-
out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" },
|
|
138
|
-
common: { transformOrigin: "bottom" },
|
|
139
|
-
transitionProperty: "transform, opacity"
|
|
140
|
-
},
|
|
141
|
-
"rotate-left": {
|
|
142
|
-
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
143
|
-
out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
|
|
144
|
-
common: { transformOrigin: "bottom" },
|
|
145
|
-
transitionProperty: "transform, opacity"
|
|
146
|
-
},
|
|
147
|
-
"rotate-right": {
|
|
148
|
-
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
149
|
-
out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
|
|
150
|
-
common: { transformOrigin: "top" },
|
|
151
|
-
transitionProperty: "transform, opacity"
|
|
152
|
-
},
|
|
153
|
-
"slide-down": {
|
|
154
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
155
|
-
out: { opacity: 0, transform: "translateY(-100%)" },
|
|
156
|
-
common: { transformOrigin: "top" },
|
|
157
|
-
transitionProperty: "transform, opacity"
|
|
158
|
-
},
|
|
159
|
-
"slide-up": {
|
|
160
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
161
|
-
out: { opacity: 0, transform: "translateY(100%)" },
|
|
162
|
-
common: { transformOrigin: "bottom" },
|
|
163
|
-
transitionProperty: "transform, opacity"
|
|
164
|
-
},
|
|
165
|
-
"slide-left": {
|
|
166
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
167
|
-
out: { opacity: 0, transform: "translateX(100%)" },
|
|
168
|
-
common: { transformOrigin: "left" },
|
|
169
|
-
transitionProperty: "transform, opacity"
|
|
170
|
-
},
|
|
171
|
-
"slide-right": {
|
|
172
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
173
|
-
out: { opacity: 0, transform: "translateX(-100%)" },
|
|
174
|
-
common: { transformOrigin: "right" },
|
|
175
|
-
transitionProperty: "transform, opacity"
|
|
176
|
-
},
|
|
177
|
-
pop: {
|
|
178
|
-
...T("bottom"),
|
|
179
|
-
common: { transformOrigin: "center center" }
|
|
180
|
-
},
|
|
181
|
-
"pop-bottom-left": {
|
|
182
|
-
...T("bottom"),
|
|
183
|
-
common: { transformOrigin: "bottom left" }
|
|
184
|
-
},
|
|
185
|
-
"pop-bottom-right": {
|
|
186
|
-
...T("bottom"),
|
|
187
|
-
common: { transformOrigin: "bottom right" }
|
|
188
|
-
},
|
|
189
|
-
"pop-top-left": {
|
|
190
|
-
...T("top"),
|
|
191
|
-
common: { transformOrigin: "top left" }
|
|
192
|
-
},
|
|
193
|
-
"pop-top-right": {
|
|
194
|
-
...T("top"),
|
|
195
|
-
common: { transformOrigin: "top right" }
|
|
196
|
-
}
|
|
197
|
-
}, K = {
|
|
198
|
-
entering: "in",
|
|
199
|
-
entered: "in",
|
|
200
|
-
exiting: "out",
|
|
201
|
-
exited: "out",
|
|
202
|
-
"pre-exiting": "out",
|
|
203
|
-
"pre-entering": "out"
|
|
204
|
-
};
|
|
205
|
-
function wt({
|
|
206
|
-
transition: t,
|
|
207
|
-
state: o,
|
|
208
|
-
duration: n,
|
|
209
|
-
timingFunction: s
|
|
210
|
-
}) {
|
|
211
|
-
const r = {
|
|
212
|
-
WebkitBackfaceVisibility: "hidden",
|
|
213
|
-
willChange: "transform, opacity",
|
|
214
|
-
transitionDuration: `${n}ms`,
|
|
215
|
-
transitionTimingFunction: s
|
|
216
|
-
};
|
|
217
|
-
return typeof t == "string" ? t in F ? {
|
|
218
|
-
transitionProperty: F[t].transitionProperty,
|
|
219
|
-
...r,
|
|
220
|
-
...F[t].common,
|
|
221
|
-
...F[t][K[o]]
|
|
222
|
-
} : {} : {
|
|
223
|
-
transitionProperty: t.transitionProperty,
|
|
224
|
-
...r,
|
|
225
|
-
...t.common,
|
|
226
|
-
...t[K[o]]
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function St({
|
|
230
|
-
duration: t,
|
|
231
|
-
exitDuration: o,
|
|
232
|
-
timingFunction: n,
|
|
233
|
-
mounted: s,
|
|
234
|
-
onEnter: r,
|
|
235
|
-
onExit: e,
|
|
236
|
-
onEntered: a,
|
|
237
|
-
onExited: i,
|
|
238
|
-
enterDelay: m,
|
|
239
|
-
exitDelay: p
|
|
240
|
-
}) {
|
|
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);
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
}, Q = (d) => {
|
|
255
|
-
if (window.clearTimeout(C.current), typeof (d ? m : p) != "number") {
|
|
256
|
-
R(d);
|
|
257
|
-
return;
|
|
258
|
-
}
|
|
259
|
-
C.current = window.setTimeout(
|
|
260
|
-
() => {
|
|
261
|
-
R(d);
|
|
262
|
-
},
|
|
263
|
-
d ? m : p
|
|
264
|
-
);
|
|
265
|
-
};
|
|
266
|
-
return bt(() => {
|
|
267
|
-
Q(s);
|
|
268
|
-
}, [s]), D(
|
|
269
|
-
() => () => {
|
|
270
|
-
window.clearTimeout(_.current), cancelAnimationFrame(x.current);
|
|
271
|
-
},
|
|
272
|
-
[]
|
|
273
|
-
), {
|
|
274
|
-
transitionDuration: v,
|
|
275
|
-
transitionStatus: S,
|
|
276
|
-
transitionTimingFunction: n || "ease"
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
function rt({
|
|
280
|
-
keepMounted: t,
|
|
281
|
-
transition: o = "fade",
|
|
282
|
-
duration: n = 250,
|
|
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
|
|
293
|
-
}) {
|
|
294
|
-
const v = pt(), { transitionDuration: l, transitionStatus: S, transitionTimingFunction: w } = St({
|
|
295
|
-
mounted: r,
|
|
296
|
-
exitDuration: s,
|
|
297
|
-
duration: n,
|
|
298
|
-
timingFunction: a,
|
|
299
|
-
onExit: i,
|
|
300
|
-
onEntered: m,
|
|
301
|
-
onEnter: p,
|
|
302
|
-
onExited: u,
|
|
303
|
-
enterDelay: f,
|
|
304
|
-
exitDelay: g
|
|
305
|
-
});
|
|
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
|
|
312
|
-
})
|
|
313
|
-
) });
|
|
314
|
-
}
|
|
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 })
|
|
321
|
-
] }));
|
|
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 })
|
|
327
|
-
] }));
|
|
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,
|
|
337
|
-
type: "oval"
|
|
338
|
-
}, Pt = E((t, { size: o, color: n }) => ({
|
|
339
|
-
root: {
|
|
340
|
-
"--loader-size": L(o, "loader-size"),
|
|
341
|
-
"--loader-color": n ? dt(n, t) : void 0
|
|
342
|
-
}
|
|
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 = $({
|
|
359
|
-
name: "Loader",
|
|
360
|
-
props: n,
|
|
361
|
-
classes: h,
|
|
362
|
-
className: i,
|
|
363
|
-
style: m,
|
|
364
|
-
classNames: p,
|
|
365
|
-
styles: u,
|
|
366
|
-
unstyled: f,
|
|
367
|
-
vars: a,
|
|
368
|
-
varsResolver: Pt
|
|
369
|
-
});
|
|
370
|
-
return l ? /* @__PURE__ */ c(y, { ...w("root"), ref: o, ...S, children: l }) : /* @__PURE__ */ c(
|
|
371
|
-
y,
|
|
372
|
-
{
|
|
373
|
-
...w("root"),
|
|
374
|
-
ref: o,
|
|
375
|
-
component: g[e],
|
|
376
|
-
variant: v,
|
|
377
|
-
size: s,
|
|
378
|
-
...S
|
|
379
|
-
}
|
|
380
|
-
);
|
|
381
|
-
});
|
|
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 = {
|
|
387
|
-
orientation: "horizontal"
|
|
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 = $({
|
|
404
|
-
name: "ButtonGroup",
|
|
405
|
-
props: n,
|
|
406
|
-
classes: B,
|
|
407
|
-
className: s,
|
|
408
|
-
style: r,
|
|
409
|
-
classNames: e,
|
|
410
|
-
styles: a,
|
|
411
|
-
unstyled: i,
|
|
412
|
-
vars: p,
|
|
413
|
-
varsResolver: xt,
|
|
414
|
-
rootSelector: "group"
|
|
415
|
-
});
|
|
416
|
-
return /* @__PURE__ */ c(
|
|
417
|
-
y,
|
|
418
|
-
{
|
|
419
|
-
...l("group"),
|
|
420
|
-
ref: o,
|
|
421
|
-
variant: f,
|
|
422
|
-
mod: [{ "data-orientation": m }, g],
|
|
423
|
-
role: "group",
|
|
424
|
-
...v
|
|
425
|
-
}
|
|
426
|
-
);
|
|
427
|
-
});
|
|
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 = $({
|
|
465
|
-
name: "ButtonGroupSection",
|
|
466
|
-
props: n,
|
|
467
|
-
classes: B,
|
|
468
|
-
className: s,
|
|
469
|
-
style: r,
|
|
470
|
-
classNames: e,
|
|
471
|
-
styles: a,
|
|
472
|
-
unstyled: i,
|
|
473
|
-
vars: m,
|
|
474
|
-
varsResolver: Bt,
|
|
475
|
-
rootSelector: "groupSection"
|
|
476
|
-
});
|
|
477
|
-
return /* @__PURE__ */ c(y, { ...l("groupSection"), ref: o, variant: p, ...v });
|
|
478
|
-
});
|
|
479
|
-
H.classes = B;
|
|
480
|
-
H.displayName = "@mantine/core/ButtonGroupSection";
|
|
481
|
-
const _t = {
|
|
482
|
-
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${z(1)}))` },
|
|
483
|
-
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
484
|
-
common: { transformOrigin: "center" },
|
|
485
|
-
transitionProperty: "transform, opacity"
|
|
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 = $({
|
|
534
|
-
name: "Button",
|
|
535
|
-
props: n,
|
|
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,
|
|
547
|
-
{
|
|
548
|
-
ref: o,
|
|
549
|
-
...b("root", { active: !i && !l && !R }),
|
|
550
|
-
unstyled: x,
|
|
551
|
-
variant: g,
|
|
552
|
-
disabled: i || l,
|
|
553
|
-
mod: [
|
|
554
|
-
{
|
|
555
|
-
disabled: i || R,
|
|
556
|
-
loading: l,
|
|
557
|
-
block: f,
|
|
558
|
-
"with-left-section": O,
|
|
559
|
-
"with-right-section": ct
|
|
560
|
-
},
|
|
561
|
-
d
|
|
562
|
-
],
|
|
563
|
-
...N,
|
|
564
|
-
children: [
|
|
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,
|
|
567
|
-
{
|
|
568
|
-
color: "var(--button-color)",
|
|
569
|
-
size: "calc(var(--button-height) / 1.8)",
|
|
570
|
-
...S
|
|
571
|
-
}
|
|
572
|
-
) }) }),
|
|
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 })
|
|
577
|
-
] })
|
|
578
|
-
]
|
|
579
|
-
}
|
|
580
|
-
);
|
|
581
|
-
});
|
|
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,
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Button as s } from "@mantine/core";
|
|
3
|
+
import '../../assets/Button.css';const r = "_root_arz1h_1", n = {
|
|
4
|
+
root: r
|
|
5
|
+
}, c = (o) => /* @__PURE__ */ t(
|
|
6
|
+
s,
|
|
590
7
|
{
|
|
591
|
-
...
|
|
592
|
-
classNames:
|
|
8
|
+
...o,
|
|
9
|
+
classNames: n
|
|
593
10
|
}
|
|
594
11
|
);
|
|
595
12
|
export {
|
|
596
|
-
|
|
13
|
+
c as Button
|
|
597
14
|
};
|