@kvell-group/ui 1.6.10 → 1.6.12

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.
@@ -1,7 +1,7 @@
1
- import { jsx as f, jsxs as j, Fragment as q } from "react/jsx-runtime";
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 lr, forwardRef as P } from "react";
4
- import ur from "react-dom";
1
+ import { jsx as f, jsxs as k, Fragment as q } from "react/jsx-runtime";
2
+ import { r as P, u as F, 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 j, useEffect as z, useId as ur, forwardRef as R } from "react";
4
+ import lr 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
  }
@@ -21,7 +21,7 @@ function yt(t) {
21
21
  }
22
22
  function A(t, r = "size", n = !0) {
23
23
  if (t !== void 0)
24
- return yt(t) ? n ? R(t) : t : `var(--${r}-${t})`;
24
+ return yt(t) ? n ? P(t) : t : `var(--${r}-${t})`;
25
25
  }
26
26
  function gt(t) {
27
27
  return t === void 0 ? "var(--mantine-radius-default)" : A(t, "mantine-radius");
@@ -44,14 +44,14 @@ function gr(t, r, { getInitialValueInEffect: n } = {
44
44
  }) {
45
45
  const [e, o] = Q(
46
46
  n ? r : yr(t)
47
- ), a = M(null);
47
+ ), a = j(null);
48
48
  return z(() => {
49
49
  if ("matchMedia" in window)
50
50
  return a.current = window.matchMedia(t), o(a.current.matches), dr(a.current, (i) => o(i.matches));
51
51
  }, [t]), e;
52
52
  }
53
53
  function hr(t, r) {
54
- const n = M(!1);
54
+ const n = j(!1);
55
55
  z(
56
56
  () => () => {
57
57
  n.current = !1;
@@ -145,7 +145,7 @@ function Tr({
145
145
  }) {
146
146
  return e === !1 ? [] : t.map((o) => `${r}-${o}-${n}`);
147
147
  }
148
- function Rr({
148
+ function Pr({
149
149
  themeName: t,
150
150
  theme: r,
151
151
  selector: n,
@@ -164,7 +164,7 @@ function Rr({
164
164
  }
165
165
  );
166
166
  }
167
- function Pr({
167
+ function Rr({
168
168
  options: t,
169
169
  classes: r,
170
170
  selector: n,
@@ -184,21 +184,21 @@ function Cr({
184
184
  className: p,
185
185
  rootSelector: c,
186
186
  props: m,
187
- stylesCtx: l,
188
- withStaticClasses: u,
187
+ stylesCtx: u,
188
+ withStaticClasses: l,
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: l }),
195
- Pr({ options: r, classes: i, selector: e, unstyled: s }),
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 }),
194
+ Pr({ theme: t, themeName: n, selector: e, props: m, stylesCtx: u }),
195
+ Rr({ options: r, classes: i, selector: e, unstyled: s }),
196
+ ct({ selector: e, stylesCtx: u, theme: t, classNames: a, props: m }),
197
+ ct({ selector: e, stylesCtx: u, theme: t, classNames: d, props: m }),
198
+ wr({ selector: e, stylesCtx: u, options: r, props: m, theme: t }),
199
199
  $r({ rootSelector: c, selector: e, className: p }),
200
200
  _r({ selector: e, classes: i, unstyled: s || g }),
201
- u && !g && Tr({
201
+ l && !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, 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);
254
+ var m, u, l;
255
+ return (l = (u = (m = n.components) == null ? void 0 : m[c]) == null ? void 0 : u.vars) == null ? void 0 : l.call(u, n, e, o);
256
256
  }),
257
257
  t == null ? void 0 : t(n, e, o)
258
258
  ])) == null ? void 0 : p[a];
@@ -269,21 +269,21 @@ function Lr({
269
269
  style: p,
270
270
  vars: c,
271
271
  varsResolver: m,
272
- headless: l,
273
- withStylesTransform: u
272
+ headless: u,
273
+ withStylesTransform: l
274
274
  }) {
275
275
  return {
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 }),
276
+ ...!l && Br({ theme: t, themeName: r, props: o, stylesCtx: a, selector: n }),
277
+ ...!l && K({ theme: t, styles: s, props: o, stylesCtx: a })[n],
278
+ ...!l && K({ theme: t, styles: e == null ? void 0 : e.styles, props: (e == null ? void 0 : e.props) || o, stylesCtx: a })[n],
279
+ ...Or({ theme: t, props: o, stylesCtx: a, vars: c, varsResolver: m, selector: n, themeName: r, headless: u }),
280
280
  ...i === n ? Z({ style: p, theme: t }) : null,
281
281
  ...Z({ style: e == null ? void 0 : e.style, theme: t })
282
282
  };
283
283
  }
284
284
  function Yr({ props: t, stylesCtx: r, themeName: n }) {
285
285
  var i;
286
- const e = k(), o = (i = er()) == null ? void 0 : i();
286
+ const e = F(), o = (i = er()) == null ? void 0 : i();
287
287
  return {
288
288
  getTransformedStyles: (s) => o ? [
289
289
  ...s.map(
@@ -299,7 +299,7 @@ function Yr({ props: t, stylesCtx: r, themeName: n }) {
299
299
  withStylesTransform: !!o
300
300
  };
301
301
  }
302
- function F({
302
+ function I({
303
303
  name: t,
304
304
  classes: r,
305
305
  props: n,
@@ -311,16 +311,16 @@ function F({
311
311
  classNames: p,
312
312
  styles: c,
313
313
  vars: m,
314
- varsResolver: l
314
+ varsResolver: u
315
315
  }) {
316
- const u = k(), g = or(), d = ar(), b = ir(), h = (Array.isArray(t) ? t : [t]).filter((S) => S), { withStylesTransform: x, getTransformedStyles: T } = Yr({
316
+ const l = F(), 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: u,
323
+ theme: l,
324
324
  options: N,
325
325
  themeName: h,
326
326
  selector: S,
@@ -337,7 +337,7 @@ function F({
337
337
  transformedStyles: T([N == null ? void 0 : N.styles, c])
338
338
  }),
339
339
  style: Lr({
340
- theme: u,
340
+ theme: l,
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: l,
350
+ varsResolver: u,
351
351
  headless: b,
352
352
  withStylesTransform: x
353
353
  })
@@ -355,7 +355,7 @@ function F({
355
355
  }
356
356
  function O(t, r, n) {
357
357
  var i;
358
- const e = k(), o = (i = e.components[t]) == null ? void 0 : i.defaultProps, a = typeof o == "function" ? o(e) : o;
358
+ const e = F(), o = (i = e.components[t]) == null ? void 0 : i.defaultProps, a = typeof o == "function" ? o(e) : o;
359
359
  return { ...r, ...a, ...rt(n) };
360
360
  }
361
361
  function X(t) {
@@ -393,8 +393,8 @@ function jr(t) {
393
393
  me: p,
394
394
  ms: c,
395
395
  p: m,
396
- px: l,
397
- py: u,
396
+ px: u,
397
+ py: l,
398
398
  pt: g,
399
399
  pb: d,
400
400
  pl: b,
@@ -450,8 +450,8 @@ function jr(t) {
450
450
  me: p,
451
451
  ms: c,
452
452
  p: m,
453
- px: l,
454
- py: u,
453
+ px: u,
454
+ py: l,
455
455
  pt: g,
456
456
  pb: d,
457
457
  pl: b,
@@ -557,10 +557,10 @@ function Fr(t, r) {
557
557
  }
558
558
  function Ir(t, r) {
559
559
  if (typeof t == "number")
560
- return R(t);
560
+ return P(t);
561
561
  if (typeof t == "string") {
562
562
  const [n, e, ...o] = t.split(" ").filter((i) => i.trim() !== "");
563
- let a = `${R(n)}`;
563
+ let a = `${P(n)}`;
564
564
  return e && (a += ` ${e}`), o.length > 0 && (a += ` ${et(o.join(" "), r)}`), a.trim();
565
565
  }
566
566
  return t;
@@ -577,7 +577,7 @@ function Wr(t) {
577
577
  }
578
578
  const zr = ["h1", "h2", "h3", "h4", "h5", "h6"];
579
579
  function Gr(t, r) {
580
- return typeof t == "string" && t in r.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && zr.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" ? R(t) : typeof t == "string" ? R(t) : t;
580
+ return typeof t == "string" && t in r.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && zr.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" ? P(t) : typeof t == "string" ? P(t) : t;
581
581
  }
582
582
  function Dr(t) {
583
583
  return t;
@@ -587,15 +587,15 @@ function Vr(t, r) {
587
587
  return typeof t == "string" && t in r.lineHeights ? `var(--mantine-line-height-${t})` : typeof t == "string" && Hr.includes(t) ? `var(--mantine-${t}-line-height)` : t;
588
588
  }
589
589
  function Xr(t) {
590
- return typeof t == "number" ? R(t) : t;
590
+ return typeof t == "number" ? P(t) : t;
591
591
  }
592
592
  function Ur(t, r) {
593
593
  if (typeof t == "number")
594
- return R(t);
594
+ return P(t);
595
595
  if (typeof t == "string") {
596
596
  const n = t.replace("-", "");
597
597
  if (!(n in r.spacing))
598
- return R(t);
598
+ return P(t);
599
599
  const e = `--mantine-spacing-${n}`;
600
600
  return t.startsWith("-") ? `calc(var(${e}) * -1)` : `var(${e})`;
601
601
  }
@@ -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 l = `(min-width: ${n.breakpoints[m]})`;
660
- e.media[l] = {
661
- ...e.media[l],
659
+ const u = `(min-width: ${n.breakpoints[m]})`;
660
+ e.media[u] = {
661
+ ...e.media[u],
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__-${lr().replace(/:/g, "")}`;
680
+ return `__m__-${ur().replace(/:/g, "")}`;
681
681
  }
682
682
  function bt(t) {
683
683
  return t.startsWith("data-") ? t : `data-${t}`;
@@ -709,7 +709,7 @@ function en({
709
709
  const o = J(r, t), a = J(n, t);
710
710
  return { ...o, ...a, ...e };
711
711
  }
712
- const vt = P(
712
+ const vt = R(
713
713
  ({
714
714
  component: t,
715
715
  style: r,
@@ -722,12 +722,12 @@ const vt = P(
722
722
  visibleFrom: p,
723
723
  lightHidden: c,
724
724
  darkHidden: m,
725
- renderRoot: l,
726
- __size: u,
725
+ renderRoot: u,
726
+ __size: l,
727
727
  ...g
728
728
  }, d) => {
729
729
  var v;
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({
730
+ const b = F(), 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,11 +748,11 @@ const vt = P(
748
748
  }),
749
749
  "data-variant": o,
750
750
  "data-size": yt(i) ? void 0 : i || void 0,
751
- size: u,
751
+ size: l,
752
752
  ...St(a),
753
753
  ...T
754
754
  };
755
- return /* @__PURE__ */ j(q, { children: [
755
+ return /* @__PURE__ */ k(q, { children: [
756
756
  y.hasResponsiveStyles && /* @__PURE__ */ f(
757
757
  Mr,
758
758
  {
@@ -761,7 +761,7 @@ const vt = P(
761
761
  media: y.media
762
762
  }
763
763
  ),
764
- typeof l == "function" ? l(w) : /* @__PURE__ */ f(h, { ...w })
764
+ typeof u == "function" ? u(w) : /* @__PURE__ */ f(h, { ...w })
765
765
  ] });
766
766
  }
767
767
  );
@@ -771,16 +771,16 @@ function Nt(t) {
771
771
  return t;
772
772
  }
773
773
  function ot(t) {
774
- const r = P(t);
774
+ const r = R(t);
775
775
  return r.extend = Nt, r.withProps = (n) => {
776
- const e = P((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
776
+ const e = R((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
777
777
  return e.extend = r.extend, e.displayName = `WithProps(${r.displayName})`, e;
778
778
  }, r;
779
779
  }
780
780
  function xt(t) {
781
- const r = P(t);
781
+ const r = R(t);
782
782
  return r.withProps = (n) => {
783
- const e = P((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
783
+ const e = R((o, a) => /* @__PURE__ */ f(r, { ...n, ...o, ref: a }));
784
784
  return e.extend = r.extend, e.displayName = `WithProps(${r.displayName})`, e;
785
785
  }, r.extend = Nt, r;
786
786
  }
@@ -798,7 +798,7 @@ const on = {
798
798
  styles: p,
799
799
  style: c,
800
800
  ...m
801
- } = n, l = F({
801
+ } = n, u = I({
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
- ...l("root", { focusable: !0 }),
814
+ ...u("root", { focusable: !0 }),
815
815
  component: o,
816
816
  ref: r,
817
817
  type: o === "button" ? "button" : void 0,
@@ -822,7 +822,7 @@ const on = {
822
822
  );
823
823
  at.classes = wt;
824
824
  at.displayName = "@mantine/core/UnstyledButton";
825
- const E = (t) => ({
825
+ const M = (t) => ({
826
826
  in: { opacity: 1, transform: "scale(1)" },
827
827
  out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
828
828
  transitionProperty: "transform, opacity"
@@ -919,26 +919,26 @@ const E = (t) => ({
919
919
  transitionProperty: "transform, opacity"
920
920
  },
921
921
  pop: {
922
- ...E("bottom"),
922
+ ...M("bottom"),
923
923
  common: { transformOrigin: "center center" }
924
924
  },
925
925
  "pop-bottom-left": {
926
- ...E("bottom"),
926
+ ...M("bottom"),
927
927
  common: { transformOrigin: "bottom left" }
928
928
  },
929
929
  "pop-bottom-right": {
930
- ...E("bottom"),
930
+ ...M("bottom"),
931
931
  common: { transformOrigin: "bottom right" }
932
932
  },
933
933
  "pop-top-left": {
934
- ...E("top"),
934
+ ...M("top"),
935
935
  common: { transformOrigin: "top left" }
936
936
  },
937
937
  "pop-top-right": {
938
- ...E("top"),
938
+ ...M("top"),
939
939
  common: { transformOrigin: "top right" }
940
940
  }
941
- }, lt = {
941
+ }, ut = {
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][lt[r]]
965
+ ...W[t][ut[r]]
966
966
  } : {} : {
967
967
  transitionProperty: t.transitionProperty,
968
968
  ...o,
969
969
  ...t.common,
970
- ...t[lt[r]]
970
+ ...t[ut[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(), 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) => {
985
+ const m = F(), u = br(), l = m.respectReducedMotion ? u : !1, [g, d] = Q(l ? 0 : t), [b, h] = Q(e ? "entered" : "exited"), x = j(-1), T = j(-1), S = j(-1), N = (y) => {
986
986
  const w = y ? o : a, v = y ? i : s;
987
987
  window.clearTimeout(x.current);
988
- const B = u ? 0 : y ? t : r;
988
+ const B = l ? 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
- ur.flushSync(() => {
990
+ lr.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(() => {
@@ -1032,8 +1032,8 @@ function $t({
1032
1032
  onEntered: p,
1033
1033
  onEnter: c,
1034
1034
  onExited: m,
1035
- enterDelay: l,
1036
- exitDelay: u
1035
+ enterDelay: u,
1036
+ exitDelay: l
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: l,
1048
- exitDelay: u
1047
+ enterDelay: u,
1048
+ exitDelay: l
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({
@@ -1058,26 +1058,26 @@ function $t({
1058
1058
  }
1059
1059
  $t.displayName = "@mantine/core/Transition";
1060
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: [
1061
+ const _t = R(({ className: t, ...r }, n) => /* @__PURE__ */ k($, { component: "span", className: L(_.barsLoader, t), ...r, ref: n, children: [
1062
1062
  /* @__PURE__ */ f("span", { className: _.bar }),
1063
1063
  /* @__PURE__ */ f("span", { className: _.bar }),
1064
1064
  /* @__PURE__ */ f("span", { className: _.bar })
1065
1065
  ] }));
1066
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: [
1067
+ const Tt = R(({ className: t, ...r }, n) => /* @__PURE__ */ k($, { component: "span", className: L(_.dotsLoader, t), ...r, ref: n, children: [
1068
1068
  /* @__PURE__ */ f("span", { className: _.dot }),
1069
1069
  /* @__PURE__ */ f("span", { className: _.dot }),
1070
1070
  /* @__PURE__ */ f("span", { className: _.dot })
1071
1071
  ] }));
1072
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
- Rt.displayName = "@mantine/core/Oval";
1075
- const Pt = {
1073
+ const Pt = R(({ className: t, ...r }, n) => /* @__PURE__ */ f($, { component: "span", className: L(_.ovalLoader, t), ...r, ref: n }));
1074
+ Pt.displayName = "@mantine/core/Oval";
1075
+ const Rt = {
1076
1076
  bars: _t,
1077
- oval: Rt,
1077
+ oval: Pt,
1078
1078
  dots: Tt
1079
1079
  }, cn = {
1080
- loaders: Pt,
1080
+ loaders: Rt,
1081
1081
  type: "oval"
1082
1082
  }, pn = (t, { size: r, color: n }) => ({
1083
1083
  root: {
@@ -1094,12 +1094,12 @@ const Pt = {
1094
1094
  style: p,
1095
1095
  classNames: c,
1096
1096
  styles: m,
1097
- unstyled: l,
1098
- loaders: u,
1097
+ unstyled: u,
1098
+ loaders: l,
1099
1099
  variant: g,
1100
1100
  children: d,
1101
1101
  ...b
1102
- } = n, h = F({
1102
+ } = n, h = I({
1103
1103
  name: "Loader",
1104
1104
  props: n,
1105
1105
  classes: _,
@@ -1107,7 +1107,7 @@ const Pt = {
1107
1107
  style: p,
1108
1108
  classNames: c,
1109
1109
  styles: m,
1110
- unstyled: l,
1110
+ unstyled: u,
1111
1111
  vars: i,
1112
1112
  varsResolver: pn
1113
1113
  });
@@ -1116,23 +1116,23 @@ const Pt = {
1116
1116
  {
1117
1117
  ...h("root"),
1118
1118
  ref: r,
1119
- component: u[a],
1119
+ component: l[a],
1120
1120
  variant: g,
1121
1121
  size: e,
1122
1122
  ...b
1123
1123
  }
1124
1124
  );
1125
1125
  });
1126
- D.defaultLoaders = Pt;
1126
+ D.defaultLoaders = Rt;
1127
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 ut = {
1130
+ const lt = {
1131
1131
  orientation: "horizontal"
1132
1132
  }, mn = (t, { borderWidth: r }) => ({
1133
- group: { "--button-border-width": R(r) }
1133
+ group: { "--button-border-width": P(r) }
1134
1134
  }), it = ot((t, r) => {
1135
- const n = O("ButtonGroup", ut, t), {
1135
+ const n = O("ButtonGroup", lt, t), {
1136
1136
  className: e,
1137
1137
  style: o,
1138
1138
  classNames: a,
@@ -1141,10 +1141,10 @@ const ut = {
1141
1141
  orientation: p,
1142
1142
  vars: c,
1143
1143
  borderWidth: m,
1144
- variant: l,
1145
- mod: u,
1144
+ variant: u,
1145
+ mod: l,
1146
1146
  ...g
1147
- } = O("ButtonGroup", ut, t), d = F({
1147
+ } = O("ButtonGroup", lt, t), d = I({
1148
1148
  name: "ButtonGroup",
1149
1149
  props: n,
1150
1150
  classes: Y,
@@ -1162,8 +1162,8 @@ const ut = {
1162
1162
  {
1163
1163
  ...d("group"),
1164
1164
  ref: r,
1165
- variant: l,
1166
- mod: [{ "data-orientation": p }, u],
1165
+ variant: u,
1166
+ mod: [{ "data-orientation": p }, l],
1167
1167
  role: "group",
1168
1168
  ...g
1169
1169
  }
@@ -1171,7 +1171,7 @@ const ut = {
1171
1171
  });
1172
1172
  it.classes = Y;
1173
1173
  it.displayName = "@mantine/core/ButtonGroup";
1174
- const ft = {}, ln = (t, { radius: r, color: n, gradient: e, variant: o, autoContrast: a, size: i }) => {
1174
+ const ft = {}, un = (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,10 +1200,10 @@ const ft = {}, ln = (t, { radius: r, color: n, gradient: e, variant: o, autoCont
1200
1200
  vars: p,
1201
1201
  variant: c,
1202
1202
  gradient: m,
1203
- radius: l,
1204
- autoContrast: u,
1203
+ radius: u,
1204
+ autoContrast: l,
1205
1205
  ...g
1206
- } = O("ButtonGroupSection", ft, t), d = F({
1206
+ } = O("ButtonGroupSection", ft, t), d = I({
1207
1207
  name: "ButtonGroupSection",
1208
1208
  props: n,
1209
1209
  classes: Y,
@@ -1213,15 +1213,15 @@ const ft = {}, ln = (t, { radius: r, color: n, gradient: e, variant: o, autoCont
1213
1213
  styles: i,
1214
1214
  unstyled: s,
1215
1215
  vars: p,
1216
- varsResolver: ln,
1216
+ varsResolver: un,
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 un = {
1224
- in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${R(1)}))` },
1223
+ const ln = {
1224
+ in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${P(1)}))` },
1225
1225
  out: { opacity: 0, transform: "translate(-50%, -200%)" },
1226
1226
  common: { transformOrigin: "center" },
1227
1227
  transitionProperty: "transform, opacity"
@@ -1247,7 +1247,7 @@ const un = {
1247
1247
  "--button-hover-color": n || o ? p.hoverColor : void 0
1248
1248
  }
1249
1249
  };
1250
- }, I = xt((t, r) => {
1250
+ }, E = xt((t, r) => {
1251
1251
  const n = O("Button", fn, t), {
1252
1252
  style: e,
1253
1253
  vars: o,
@@ -1257,8 +1257,8 @@ const un = {
1257
1257
  children: p,
1258
1258
  leftSection: c,
1259
1259
  rightSection: m,
1260
- fullWidth: l,
1261
- variant: u,
1260
+ fullWidth: u,
1261
+ variant: l,
1262
1262
  radius: g,
1263
1263
  loading: d,
1264
1264
  loaderProps: b,
@@ -1270,7 +1270,7 @@ const un = {
1270
1270
  autoContrast: C,
1271
1271
  mod: y,
1272
1272
  ...w
1273
- } = n, v = F({
1273
+ } = n, v = I({
1274
1274
  name: "Button",
1275
1275
  props: n,
1276
1276
  classes: Y,
@@ -1282,19 +1282,19 @@ const un = {
1282
1282
  vars: o,
1283
1283
  varsResolver: dn
1284
1284
  }), B = !!c, H = !!m;
1285
- return /* @__PURE__ */ j(
1285
+ return /* @__PURE__ */ k(
1286
1286
  at,
1287
1287
  {
1288
1288
  ref: r,
1289
1289
  ...v("root", { active: !s && !d && !N }),
1290
1290
  unstyled: S,
1291
- variant: u,
1291
+ variant: l,
1292
1292
  disabled: s || d,
1293
1293
  mod: [
1294
1294
  {
1295
1295
  disabled: s || N,
1296
1296
  loading: d,
1297
- block: l,
1297
+ block: u,
1298
1298
  "with-left-section": B,
1299
1299
  "with-right-section": H
1300
1300
  },
@@ -1302,7 +1302,7 @@ const un = {
1302
1302
  ],
1303
1303
  ...w,
1304
1304
  children: [
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(
1305
+ /* @__PURE__ */ f($t, { mounted: !!d, transition: ln, 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)",
@@ -1310,7 +1310,7 @@ const un = {
1310
1310
  ...b
1311
1311
  }
1312
1312
  ) }) }),
1313
- /* @__PURE__ */ j("span", { ...v("inner"), children: [
1313
+ /* @__PURE__ */ k("span", { ...v("inner"), children: [
1314
1314
  c && /* @__PURE__ */ f($, { component: "span", ...v("section"), mod: { position: "left" }, children: c }),
1315
1315
  /* @__PURE__ */ f($, { component: "span", mod: { loading: d }, ...v("label"), children: p }),
1316
1316
  m && /* @__PURE__ */ f($, { component: "span", ...v("section"), mod: { position: "right" }, children: m })
@@ -1319,16 +1319,18 @@ const un = {
1319
1319
  }
1320
1320
  );
1321
1321
  });
1322
- I.classes = Y;
1323
- I.displayName = "@mantine/core/Button";
1324
- I.Group = it;
1325
- I.GroupSection = st;
1322
+ E.classes = Y;
1323
+ E.displayName = "@mantine/core/Button";
1324
+ E.Group = it;
1325
+ E.GroupSection = st;
1326
1326
  const yn = "_root_gdr8x_1", gn = "_inner_gdr8x_7", hn = "_label_gdr8x_11", bn = {
1327
1327
  root: yn,
1328
1328
  inner: gn,
1329
1329
  label: hn
1330
- }, $n = (t) => /* @__PURE__ */ f(
1331
- I,
1330
+ };
1331
+ E.withProps({});
1332
+ const $n = (t) => /* @__PURE__ */ f(
1333
+ E,
1332
1334
  {
1333
1335
  ...t,
1334
1336
  classNames: bn
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.10",
5
+ "version": "1.6.12",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",