@kvell-group/ui 1.6.9 → 1.6.10
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/assets/Button.css +1 -1
- package/dist/components/Button/Button.js +101 -100
- package/package.json +1 -4
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_gdr8x_1{background-color:green;border-radius:12px;width:200px}._inner_gdr8x_7{background-color:red}._label_gdr8x_11{color:#ff0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f, jsxs as j, Fragment as q } from "react/jsx-runtime";
|
|
2
2
|
import { r as R, u as k, h as er, i as or, j as ar, l as ir, k as tt, a as sr, p as dt, m as cr, n as pr, o as mr } from "../../MantineThemeProvider-CyD9KzqB.js";
|
|
3
|
-
import { useState as Q, useRef as M, useEffect as z, useId as
|
|
4
|
-
import
|
|
3
|
+
import { useState as Q, useRef as M, useEffect as z, useId as lr, forwardRef as P } from "react";
|
|
4
|
+
import ur from "react-dom";
|
|
5
5
|
import '../../assets/Button.css';function fr(t) {
|
|
6
6
|
return t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
|
|
7
7
|
}
|
|
@@ -134,10 +134,10 @@ function ct({
|
|
|
134
134
|
function $r({ rootSelector: t, selector: r, className: n }) {
|
|
135
135
|
return t === r ? n : void 0;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function _r({ selector: t, classes: r, unstyled: n }) {
|
|
138
138
|
return n ? void 0 : r[t];
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Tr({
|
|
141
141
|
themeName: t,
|
|
142
142
|
classNamesPrefix: r,
|
|
143
143
|
selector: n,
|
|
@@ -184,21 +184,21 @@ function Cr({
|
|
|
184
184
|
className: p,
|
|
185
185
|
rootSelector: c,
|
|
186
186
|
props: m,
|
|
187
|
-
stylesCtx:
|
|
188
|
-
withStaticClasses:
|
|
187
|
+
stylesCtx: l,
|
|
188
|
+
withStaticClasses: u,
|
|
189
189
|
headless: g,
|
|
190
190
|
transformedStyles: d
|
|
191
191
|
}) {
|
|
192
192
|
return L(
|
|
193
193
|
xr({ theme: t, options: r, unstyled: s || g }),
|
|
194
|
-
Rr({ theme: t, themeName: n, selector: e, props: m, stylesCtx:
|
|
194
|
+
Rr({ theme: t, themeName: n, selector: e, props: m, stylesCtx: l }),
|
|
195
195
|
Pr({ options: r, classes: i, selector: e, unstyled: s }),
|
|
196
|
-
ct({ selector: e, stylesCtx:
|
|
197
|
-
ct({ selector: e, stylesCtx:
|
|
198
|
-
wr({ selector: e, stylesCtx:
|
|
196
|
+
ct({ selector: e, stylesCtx: l, theme: t, classNames: a, props: m }),
|
|
197
|
+
ct({ selector: e, stylesCtx: l, theme: t, classNames: d, props: m }),
|
|
198
|
+
wr({ selector: e, stylesCtx: l, options: r, props: m, theme: t }),
|
|
199
199
|
$r({ rootSelector: c, selector: e, className: p }),
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
_r({ selector: e, classes: i, unstyled: s || g }),
|
|
201
|
+
u && !g && Tr({
|
|
202
202
|
themeName: n,
|
|
203
203
|
classNamesPrefix: o,
|
|
204
204
|
selector: e,
|
|
@@ -251,8 +251,8 @@ function Or({
|
|
|
251
251
|
return (p = Ar([
|
|
252
252
|
s ? {} : r == null ? void 0 : r(n, e, o),
|
|
253
253
|
...i.map((c) => {
|
|
254
|
-
var m,
|
|
255
|
-
return (
|
|
254
|
+
var m, l, u;
|
|
255
|
+
return (u = (l = (m = n.components) == null ? void 0 : m[c]) == null ? void 0 : l.vars) == null ? void 0 : u.call(l, n, e, o);
|
|
256
256
|
}),
|
|
257
257
|
t == null ? void 0 : t(n, e, o)
|
|
258
258
|
])) == null ? void 0 : p[a];
|
|
@@ -269,14 +269,14 @@ function Lr({
|
|
|
269
269
|
style: p,
|
|
270
270
|
vars: c,
|
|
271
271
|
varsResolver: m,
|
|
272
|
-
headless:
|
|
273
|
-
withStylesTransform:
|
|
272
|
+
headless: l,
|
|
273
|
+
withStylesTransform: u
|
|
274
274
|
}) {
|
|
275
275
|
return {
|
|
276
|
-
...!
|
|
277
|
-
...!
|
|
278
|
-
...!
|
|
279
|
-
...Or({ theme: t, props: o, stylesCtx: a, vars: c, varsResolver: m, selector: n, themeName: r, headless:
|
|
276
|
+
...!u && Br({ theme: t, themeName: r, props: o, stylesCtx: a, selector: n }),
|
|
277
|
+
...!u && K({ theme: t, styles: s, props: o, stylesCtx: a })[n],
|
|
278
|
+
...!u && K({ theme: t, styles: e == null ? void 0 : e.styles, props: (e == null ? void 0 : e.props) || o, stylesCtx: a })[n],
|
|
279
|
+
...Or({ theme: t, props: o, stylesCtx: a, vars: c, varsResolver: m, selector: n, themeName: r, headless: l }),
|
|
280
280
|
...i === n ? Z({ style: p, theme: t }) : null,
|
|
281
281
|
...Z({ style: e == null ? void 0 : e.style, theme: t })
|
|
282
282
|
};
|
|
@@ -311,16 +311,16 @@ function F({
|
|
|
311
311
|
classNames: p,
|
|
312
312
|
styles: c,
|
|
313
313
|
vars: m,
|
|
314
|
-
varsResolver:
|
|
314
|
+
varsResolver: l
|
|
315
315
|
}) {
|
|
316
|
-
const
|
|
316
|
+
const u = k(), g = or(), d = ar(), b = ir(), h = (Array.isArray(t) ? t : [t]).filter((S) => S), { withStylesTransform: x, getTransformedStyles: T } = Yr({
|
|
317
317
|
props: n,
|
|
318
318
|
stylesCtx: e,
|
|
319
319
|
themeName: h
|
|
320
320
|
});
|
|
321
321
|
return (S, N) => ({
|
|
322
322
|
className: Cr({
|
|
323
|
-
theme:
|
|
323
|
+
theme: u,
|
|
324
324
|
options: N,
|
|
325
325
|
themeName: h,
|
|
326
326
|
selector: S,
|
|
@@ -334,10 +334,10 @@ function F({
|
|
|
334
334
|
stylesCtx: e,
|
|
335
335
|
withStaticClasses: d,
|
|
336
336
|
headless: b,
|
|
337
|
-
transformedStyles:
|
|
337
|
+
transformedStyles: T([N == null ? void 0 : N.styles, c])
|
|
338
338
|
}),
|
|
339
339
|
style: Lr({
|
|
340
|
-
theme:
|
|
340
|
+
theme: u,
|
|
341
341
|
themeName: h,
|
|
342
342
|
selector: S,
|
|
343
343
|
options: N,
|
|
@@ -347,7 +347,7 @@ function F({
|
|
|
347
347
|
styles: c,
|
|
348
348
|
style: a,
|
|
349
349
|
vars: m,
|
|
350
|
-
varsResolver:
|
|
350
|
+
varsResolver: l,
|
|
351
351
|
headless: b,
|
|
352
352
|
withStylesTransform: x
|
|
353
353
|
})
|
|
@@ -393,14 +393,14 @@ function jr(t) {
|
|
|
393
393
|
me: p,
|
|
394
394
|
ms: c,
|
|
395
395
|
p: m,
|
|
396
|
-
px:
|
|
397
|
-
py:
|
|
396
|
+
px: l,
|
|
397
|
+
py: u,
|
|
398
398
|
pt: g,
|
|
399
399
|
pb: d,
|
|
400
400
|
pl: b,
|
|
401
401
|
pr: h,
|
|
402
402
|
pe: x,
|
|
403
|
-
ps:
|
|
403
|
+
ps: T,
|
|
404
404
|
bd: S,
|
|
405
405
|
bg: N,
|
|
406
406
|
c: C,
|
|
@@ -450,14 +450,14 @@ function jr(t) {
|
|
|
450
450
|
me: p,
|
|
451
451
|
ms: c,
|
|
452
452
|
p: m,
|
|
453
|
-
px:
|
|
454
|
-
py:
|
|
453
|
+
px: l,
|
|
454
|
+
py: u,
|
|
455
455
|
pt: g,
|
|
456
456
|
pb: d,
|
|
457
457
|
pl: b,
|
|
458
458
|
pr: h,
|
|
459
459
|
pe: x,
|
|
460
|
-
ps:
|
|
460
|
+
ps: T,
|
|
461
461
|
bd: S,
|
|
462
462
|
bg: N,
|
|
463
463
|
c: C,
|
|
@@ -656,9 +656,9 @@ function tn({
|
|
|
656
656
|
const p = Zr(t[o]);
|
|
657
657
|
return i.forEach((c) => {
|
|
658
658
|
s && (e.styles[c] = U[a.type](s, n)), p.forEach((m) => {
|
|
659
|
-
const
|
|
660
|
-
e.media[
|
|
661
|
-
...e.media[
|
|
659
|
+
const l = `(min-width: ${n.breakpoints[m]})`;
|
|
660
|
+
e.media[l] = {
|
|
661
|
+
...e.media[l],
|
|
662
662
|
[c]: U[a.type](
|
|
663
663
|
Jr(t[o], m),
|
|
664
664
|
n
|
|
@@ -677,7 +677,7 @@ function tn({
|
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
679
|
function rn() {
|
|
680
|
-
return `__m__-${
|
|
680
|
+
return `__m__-${lr().replace(/:/g, "")}`;
|
|
681
681
|
}
|
|
682
682
|
function bt(t) {
|
|
683
683
|
return t.startsWith("data-") ? t : `data-${t}`;
|
|
@@ -722,12 +722,12 @@ const vt = P(
|
|
|
722
722
|
visibleFrom: p,
|
|
723
723
|
lightHidden: c,
|
|
724
724
|
darkHidden: m,
|
|
725
|
-
renderRoot:
|
|
726
|
-
__size:
|
|
725
|
+
renderRoot: l,
|
|
726
|
+
__size: u,
|
|
727
727
|
...g
|
|
728
728
|
}, d) => {
|
|
729
729
|
var v;
|
|
730
|
-
const b = k(), h = t || "div", { styleProps: x, rest:
|
|
730
|
+
const b = k(), h = t || "div", { styleProps: x, rest: T } = jr(g), S = cr(), N = (v = S == null ? void 0 : S()) == null ? void 0 : v(x.sx), C = rn(), y = tn({
|
|
731
731
|
styleProps: x,
|
|
732
732
|
theme: b,
|
|
733
733
|
data: kr
|
|
@@ -748,9 +748,9 @@ const vt = P(
|
|
|
748
748
|
}),
|
|
749
749
|
"data-variant": o,
|
|
750
750
|
"data-size": yt(i) ? void 0 : i || void 0,
|
|
751
|
-
size:
|
|
751
|
+
size: u,
|
|
752
752
|
...St(a),
|
|
753
|
-
...
|
|
753
|
+
...T
|
|
754
754
|
};
|
|
755
755
|
return /* @__PURE__ */ j(q, { children: [
|
|
756
756
|
y.hasResponsiveStyles && /* @__PURE__ */ f(
|
|
@@ -761,7 +761,7 @@ const vt = P(
|
|
|
761
761
|
media: y.media
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
|
-
typeof
|
|
764
|
+
typeof l == "function" ? l(w) : /* @__PURE__ */ f(h, { ...w })
|
|
765
765
|
] });
|
|
766
766
|
}
|
|
767
767
|
);
|
|
@@ -798,7 +798,7 @@ const on = {
|
|
|
798
798
|
styles: p,
|
|
799
799
|
style: c,
|
|
800
800
|
...m
|
|
801
|
-
} = n,
|
|
801
|
+
} = n, l = F({
|
|
802
802
|
name: a,
|
|
803
803
|
props: n,
|
|
804
804
|
classes: wt,
|
|
@@ -811,7 +811,7 @@ const on = {
|
|
|
811
811
|
return /* @__PURE__ */ f(
|
|
812
812
|
$,
|
|
813
813
|
{
|
|
814
|
-
...
|
|
814
|
+
...l("root", { focusable: !0 }),
|
|
815
815
|
component: o,
|
|
816
816
|
ref: r,
|
|
817
817
|
type: o === "button" ? "button" : void 0,
|
|
@@ -938,7 +938,7 @@ const E = (t) => ({
|
|
|
938
938
|
...E("top"),
|
|
939
939
|
common: { transformOrigin: "top right" }
|
|
940
940
|
}
|
|
941
|
-
},
|
|
941
|
+
}, lt = {
|
|
942
942
|
entering: "in",
|
|
943
943
|
entered: "in",
|
|
944
944
|
exiting: "out",
|
|
@@ -962,12 +962,12 @@ function an({
|
|
|
962
962
|
transitionProperty: W[t].transitionProperty,
|
|
963
963
|
...o,
|
|
964
964
|
...W[t].common,
|
|
965
|
-
...W[t][
|
|
965
|
+
...W[t][lt[r]]
|
|
966
966
|
} : {} : {
|
|
967
967
|
transitionProperty: t.transitionProperty,
|
|
968
968
|
...o,
|
|
969
969
|
...t.common,
|
|
970
|
-
...t[
|
|
970
|
+
...t[lt[r]]
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
973
|
function sn({
|
|
@@ -982,12 +982,12 @@ function sn({
|
|
|
982
982
|
enterDelay: p,
|
|
983
983
|
exitDelay: c
|
|
984
984
|
}) {
|
|
985
|
-
const m = k(),
|
|
985
|
+
const m = k(), l = br(), u = m.respectReducedMotion ? l : !1, [g, d] = Q(u ? 0 : t), [b, h] = Q(e ? "entered" : "exited"), x = M(-1), T = M(-1), S = M(-1), N = (y) => {
|
|
986
986
|
const w = y ? o : a, v = y ? i : s;
|
|
987
987
|
window.clearTimeout(x.current);
|
|
988
|
-
const B =
|
|
988
|
+
const B = u ? 0 : y ? t : r;
|
|
989
989
|
d(B), B === 0 ? (typeof w == "function" && w(), typeof v == "function" && v(), h(y ? "entered" : "exited")) : S.current = requestAnimationFrame(() => {
|
|
990
|
-
|
|
990
|
+
ur.flushSync(() => {
|
|
991
991
|
h(y ? "pre-entering" : "pre-exiting");
|
|
992
992
|
}), S.current = requestAnimationFrame(() => {
|
|
993
993
|
typeof w == "function" && w(), h(y ? "entering" : "exiting"), x.current = window.setTimeout(() => {
|
|
@@ -996,11 +996,11 @@ function sn({
|
|
|
996
996
|
});
|
|
997
997
|
});
|
|
998
998
|
}, C = (y) => {
|
|
999
|
-
if (window.clearTimeout(
|
|
999
|
+
if (window.clearTimeout(T.current), typeof (y ? p : c) != "number") {
|
|
1000
1000
|
N(y);
|
|
1001
1001
|
return;
|
|
1002
1002
|
}
|
|
1003
|
-
|
|
1003
|
+
T.current = window.setTimeout(
|
|
1004
1004
|
() => {
|
|
1005
1005
|
N(y);
|
|
1006
1006
|
},
|
|
@@ -1032,8 +1032,8 @@ function $t({
|
|
|
1032
1032
|
onEntered: p,
|
|
1033
1033
|
onEnter: c,
|
|
1034
1034
|
onExited: m,
|
|
1035
|
-
enterDelay:
|
|
1036
|
-
exitDelay:
|
|
1035
|
+
enterDelay: l,
|
|
1036
|
+
exitDelay: u
|
|
1037
1037
|
}) {
|
|
1038
1038
|
const g = pr(), { transitionDuration: d, transitionStatus: b, transitionTimingFunction: h } = sn({
|
|
1039
1039
|
mounted: o,
|
|
@@ -1044,8 +1044,8 @@ function $t({
|
|
|
1044
1044
|
onEntered: p,
|
|
1045
1045
|
onEnter: c,
|
|
1046
1046
|
onExited: m,
|
|
1047
|
-
enterDelay:
|
|
1048
|
-
exitDelay:
|
|
1047
|
+
enterDelay: l,
|
|
1048
|
+
exitDelay: u
|
|
1049
1049
|
});
|
|
1050
1050
|
return d === 0 || g === "test" ? o ? /* @__PURE__ */ f(q, { children: a({}) }) : t ? a({ display: "none" }) : null : b === "exited" ? t ? a({ display: "none" }) : null : /* @__PURE__ */ f(q, { children: a(
|
|
1051
1051
|
an({
|
|
@@ -1057,25 +1057,25 @@ function $t({
|
|
|
1057
1057
|
) });
|
|
1058
1058
|
}
|
|
1059
1059
|
$t.displayName = "@mantine/core/Transition";
|
|
1060
|
-
var
|
|
1061
|
-
const
|
|
1062
|
-
/* @__PURE__ */ f("span", { className:
|
|
1063
|
-
/* @__PURE__ */ f("span", { className:
|
|
1064
|
-
/* @__PURE__ */ f("span", { className:
|
|
1060
|
+
var _ = { 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 _t = P(({ className: t, ...r }, n) => /* @__PURE__ */ j($, { component: "span", className: L(_.barsLoader, t), ...r, ref: n, children: [
|
|
1062
|
+
/* @__PURE__ */ f("span", { className: _.bar }),
|
|
1063
|
+
/* @__PURE__ */ f("span", { className: _.bar }),
|
|
1064
|
+
/* @__PURE__ */ f("span", { className: _.bar })
|
|
1065
1065
|
] }));
|
|
1066
|
-
|
|
1067
|
-
const
|
|
1068
|
-
/* @__PURE__ */ f("span", { className:
|
|
1069
|
-
/* @__PURE__ */ f("span", { className:
|
|
1070
|
-
/* @__PURE__ */ f("span", { className:
|
|
1066
|
+
_t.displayName = "@mantine/core/Bars";
|
|
1067
|
+
const Tt = P(({ className: t, ...r }, n) => /* @__PURE__ */ j($, { component: "span", className: L(_.dotsLoader, t), ...r, ref: n, children: [
|
|
1068
|
+
/* @__PURE__ */ f("span", { className: _.dot }),
|
|
1069
|
+
/* @__PURE__ */ f("span", { className: _.dot }),
|
|
1070
|
+
/* @__PURE__ */ f("span", { className: _.dot })
|
|
1071
1071
|
] }));
|
|
1072
|
-
|
|
1073
|
-
const Rt = P(({ className: t, ...r }, n) => /* @__PURE__ */ f($, { component: "span", className: L(
|
|
1072
|
+
Tt.displayName = "@mantine/core/Dots";
|
|
1073
|
+
const Rt = P(({ className: t, ...r }, n) => /* @__PURE__ */ f($, { component: "span", className: L(_.ovalLoader, t), ...r, ref: n }));
|
|
1074
1074
|
Rt.displayName = "@mantine/core/Oval";
|
|
1075
1075
|
const Pt = {
|
|
1076
|
-
bars:
|
|
1076
|
+
bars: _t,
|
|
1077
1077
|
oval: Rt,
|
|
1078
|
-
dots:
|
|
1078
|
+
dots: Tt
|
|
1079
1079
|
}, cn = {
|
|
1080
1080
|
loaders: Pt,
|
|
1081
1081
|
type: "oval"
|
|
@@ -1094,20 +1094,20 @@ const Pt = {
|
|
|
1094
1094
|
style: p,
|
|
1095
1095
|
classNames: c,
|
|
1096
1096
|
styles: m,
|
|
1097
|
-
unstyled:
|
|
1098
|
-
loaders:
|
|
1097
|
+
unstyled: l,
|
|
1098
|
+
loaders: u,
|
|
1099
1099
|
variant: g,
|
|
1100
1100
|
children: d,
|
|
1101
1101
|
...b
|
|
1102
1102
|
} = n, h = F({
|
|
1103
1103
|
name: "Loader",
|
|
1104
1104
|
props: n,
|
|
1105
|
-
classes:
|
|
1105
|
+
classes: _,
|
|
1106
1106
|
className: s,
|
|
1107
1107
|
style: p,
|
|
1108
1108
|
classNames: c,
|
|
1109
1109
|
styles: m,
|
|
1110
|
-
unstyled:
|
|
1110
|
+
unstyled: l,
|
|
1111
1111
|
vars: i,
|
|
1112
1112
|
varsResolver: pn
|
|
1113
1113
|
});
|
|
@@ -1116,7 +1116,7 @@ const Pt = {
|
|
|
1116
1116
|
{
|
|
1117
1117
|
...h("root"),
|
|
1118
1118
|
ref: r,
|
|
1119
|
-
component:
|
|
1119
|
+
component: u[a],
|
|
1120
1120
|
variant: g,
|
|
1121
1121
|
size: e,
|
|
1122
1122
|
...b
|
|
@@ -1124,15 +1124,15 @@ const Pt = {
|
|
|
1124
1124
|
);
|
|
1125
1125
|
});
|
|
1126
1126
|
D.defaultLoaders = Pt;
|
|
1127
|
-
D.classes =
|
|
1127
|
+
D.classes = _;
|
|
1128
1128
|
D.displayName = "@mantine/core/Loader";
|
|
1129
1129
|
var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
1130
|
-
const
|
|
1130
|
+
const ut = {
|
|
1131
1131
|
orientation: "horizontal"
|
|
1132
1132
|
}, mn = (t, { borderWidth: r }) => ({
|
|
1133
1133
|
group: { "--button-border-width": R(r) }
|
|
1134
1134
|
}), it = ot((t, r) => {
|
|
1135
|
-
const n = O("ButtonGroup",
|
|
1135
|
+
const n = O("ButtonGroup", ut, t), {
|
|
1136
1136
|
className: e,
|
|
1137
1137
|
style: o,
|
|
1138
1138
|
classNames: a,
|
|
@@ -1141,10 +1141,10 @@ const lt = {
|
|
|
1141
1141
|
orientation: p,
|
|
1142
1142
|
vars: c,
|
|
1143
1143
|
borderWidth: m,
|
|
1144
|
-
variant:
|
|
1145
|
-
mod:
|
|
1144
|
+
variant: l,
|
|
1145
|
+
mod: u,
|
|
1146
1146
|
...g
|
|
1147
|
-
} = O("ButtonGroup",
|
|
1147
|
+
} = O("ButtonGroup", ut, t), d = F({
|
|
1148
1148
|
name: "ButtonGroup",
|
|
1149
1149
|
props: n,
|
|
1150
1150
|
classes: Y,
|
|
@@ -1162,8 +1162,8 @@ const lt = {
|
|
|
1162
1162
|
{
|
|
1163
1163
|
...d("group"),
|
|
1164
1164
|
ref: r,
|
|
1165
|
-
variant:
|
|
1166
|
-
mod: [{ "data-orientation": p },
|
|
1165
|
+
variant: l,
|
|
1166
|
+
mod: [{ "data-orientation": p }, u],
|
|
1167
1167
|
role: "group",
|
|
1168
1168
|
...g
|
|
1169
1169
|
}
|
|
@@ -1171,7 +1171,7 @@ const lt = {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
it.classes = Y;
|
|
1173
1173
|
it.displayName = "@mantine/core/ButtonGroup";
|
|
1174
|
-
const ft = {},
|
|
1174
|
+
const ft = {}, ln = (t, { radius: r, color: n, gradient: e, variant: o, autoContrast: a, size: i }) => {
|
|
1175
1175
|
const s = t.variantColorResolver({
|
|
1176
1176
|
color: n || t.primaryColor,
|
|
1177
1177
|
theme: t,
|
|
@@ -1200,8 +1200,8 @@ const ft = {}, un = (t, { radius: r, color: n, gradient: e, variant: o, autoCont
|
|
|
1200
1200
|
vars: p,
|
|
1201
1201
|
variant: c,
|
|
1202
1202
|
gradient: m,
|
|
1203
|
-
radius:
|
|
1204
|
-
autoContrast:
|
|
1203
|
+
radius: l,
|
|
1204
|
+
autoContrast: u,
|
|
1205
1205
|
...g
|
|
1206
1206
|
} = O("ButtonGroupSection", ft, t), d = F({
|
|
1207
1207
|
name: "ButtonGroupSection",
|
|
@@ -1213,14 +1213,14 @@ const ft = {}, un = (t, { radius: r, color: n, gradient: e, variant: o, autoCont
|
|
|
1213
1213
|
styles: i,
|
|
1214
1214
|
unstyled: s,
|
|
1215
1215
|
vars: p,
|
|
1216
|
-
varsResolver:
|
|
1216
|
+
varsResolver: ln,
|
|
1217
1217
|
rootSelector: "groupSection"
|
|
1218
1218
|
});
|
|
1219
1219
|
return /* @__PURE__ */ f($, { ...d("groupSection"), ref: r, variant: c, ...g });
|
|
1220
1220
|
});
|
|
1221
1221
|
st.classes = Y;
|
|
1222
1222
|
st.displayName = "@mantine/core/ButtonGroupSection";
|
|
1223
|
-
const
|
|
1223
|
+
const un = {
|
|
1224
1224
|
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${R(1)}))` },
|
|
1225
1225
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
1226
1226
|
common: { transformOrigin: "center" },
|
|
@@ -1257,14 +1257,14 @@ const ln = {
|
|
|
1257
1257
|
children: p,
|
|
1258
1258
|
leftSection: c,
|
|
1259
1259
|
rightSection: m,
|
|
1260
|
-
fullWidth:
|
|
1261
|
-
variant:
|
|
1260
|
+
fullWidth: l,
|
|
1261
|
+
variant: u,
|
|
1262
1262
|
radius: g,
|
|
1263
1263
|
loading: d,
|
|
1264
1264
|
loaderProps: b,
|
|
1265
1265
|
gradient: h,
|
|
1266
1266
|
classNames: x,
|
|
1267
|
-
styles:
|
|
1267
|
+
styles: T,
|
|
1268
1268
|
unstyled: S,
|
|
1269
1269
|
"data-disabled": N,
|
|
1270
1270
|
autoContrast: C,
|
|
@@ -1277,7 +1277,7 @@ const ln = {
|
|
|
1277
1277
|
className: a,
|
|
1278
1278
|
style: e,
|
|
1279
1279
|
classNames: x,
|
|
1280
|
-
styles:
|
|
1280
|
+
styles: T,
|
|
1281
1281
|
unstyled: S,
|
|
1282
1282
|
vars: o,
|
|
1283
1283
|
varsResolver: dn
|
|
@@ -1288,13 +1288,13 @@ const ln = {
|
|
|
1288
1288
|
ref: r,
|
|
1289
1289
|
...v("root", { active: !s && !d && !N }),
|
|
1290
1290
|
unstyled: S,
|
|
1291
|
-
variant:
|
|
1291
|
+
variant: u,
|
|
1292
1292
|
disabled: s || d,
|
|
1293
1293
|
mod: [
|
|
1294
1294
|
{
|
|
1295
1295
|
disabled: s || N,
|
|
1296
1296
|
loading: d,
|
|
1297
|
-
block:
|
|
1297
|
+
block: l,
|
|
1298
1298
|
"with-left-section": B,
|
|
1299
1299
|
"with-right-section": H
|
|
1300
1300
|
},
|
|
@@ -1302,7 +1302,7 @@ const ln = {
|
|
|
1302
1302
|
],
|
|
1303
1303
|
...w,
|
|
1304
1304
|
children: [
|
|
1305
|
-
/* @__PURE__ */ f($t, { mounted: !!d, transition:
|
|
1305
|
+
/* @__PURE__ */ f($t, { mounted: !!d, transition: un, duration: 150, children: (V) => /* @__PURE__ */ f($, { component: "span", ...v("loader", { style: V }), "aria-hidden": !0, children: /* @__PURE__ */ f(
|
|
1306
1306
|
D,
|
|
1307
1307
|
{
|
|
1308
1308
|
color: "var(--button-color)",
|
|
@@ -1323,16 +1323,17 @@ I.classes = Y;
|
|
|
1323
1323
|
I.displayName = "@mantine/core/Button";
|
|
1324
1324
|
I.Group = it;
|
|
1325
1325
|
I.GroupSection = st;
|
|
1326
|
-
const yn = "
|
|
1326
|
+
const yn = "_root_gdr8x_1", gn = "_inner_gdr8x_7", hn = "_label_gdr8x_11", bn = {
|
|
1327
1327
|
root: yn,
|
|
1328
|
-
inner: gn
|
|
1329
|
-
|
|
1328
|
+
inner: gn,
|
|
1329
|
+
label: hn
|
|
1330
|
+
}, $n = (t) => /* @__PURE__ */ f(
|
|
1330
1331
|
I,
|
|
1331
1332
|
{
|
|
1332
1333
|
...t,
|
|
1333
|
-
classNames:
|
|
1334
|
+
classNames: bn
|
|
1334
1335
|
}
|
|
1335
1336
|
);
|
|
1336
1337
|
export {
|
|
1337
|
-
|
|
1338
|
+
$n as Button
|
|
1338
1339
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@kvell-group/ui",
|
|
3
3
|
"author": "Kvell Group",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.6.
|
|
5
|
+
"version": "1.6.10",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"format:fix": "prettier --write .",
|
|
22
22
|
"build-storybook": "storybook build"
|
|
23
23
|
},
|
|
24
|
-
"sideEffects": [
|
|
25
|
-
"**/*.css"
|
|
26
|
-
],
|
|
27
24
|
"dependencies": {
|
|
28
25
|
"@mantine/core": "^7.17.3",
|
|
29
26
|
"@mantine/hooks": "^7.17.3",
|