@kvell-group/ui 1.11.1 → 1.11.2

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.
@@ -0,0 +1,4 @@
1
+ export declare const PRIMARY_BUTTON_VARIANT: "primary";
2
+ export declare const SECONDARY_BUTTON_VARIANT: "secondary";
3
+ export declare const TERTIARY_BUTTON_VARIANT: "tertiary";
4
+ export declare const ButtonVariants: ("primary" | "secondary" | "tertiary")[];
@@ -0,0 +1,11 @@
1
+ const T = "primary", t = "secondary", A = "tertiary", R = [
2
+ T,
3
+ t,
4
+ A
5
+ ];
6
+ export {
7
+ R as ButtonVariants,
8
+ T as PRIMARY_BUTTON_VARIANT,
9
+ t as SECONDARY_BUTTON_VARIANT,
10
+ A as TERTIARY_BUTTON_VARIANT
11
+ };
@@ -0,0 +1,5 @@
1
+ import { ButtonVariants } from './constants';
2
+ import { ButtonVariant } from '@mantine/core';
3
+ type ButtonVariantsTypes = typeof ButtonVariants;
4
+ export type ExtendedButtonVariant = ButtonVariant | ButtonVariantsTypes[number];
5
+ export {};
@@ -0,0 +1 @@
1
+
@@ -1,2 +1,4 @@
1
- import { InputProps } from '../types';
2
- export declare const CardInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const CardInput: import('react').ForwardRefExoticComponent<import('@mantine/core').InputBaseProps & import('@mantine/core').ElementProps<"input"> & {
2
+ value?: string;
3
+ mask?: string;
4
+ } & import('react').RefAttributes<unknown>>;
@@ -1,24 +1,27 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { MaskedInput as r } from "../MaskedInput/MaskedInput.js";
4
- import { useCardLogo as i } from "./useCardLogo.js";
5
- const a = (t) => /* @__PURE__ */ l.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ l.createElement("path", { d: "M2.49984 2.5H17.4998C17.7209 2.5 17.9328 2.5878 18.0891 2.74408C18.2454 2.90036 18.3332 3.11232 18.3332 3.33333V16.6667C18.3332 16.8877 18.2454 17.0996 18.0891 17.2559C17.9328 17.4122 17.7209 17.5 17.4998 17.5H2.49984C2.27882 17.5 2.06686 17.4122 1.91058 17.2559C1.7543 17.0996 1.6665 16.8877 1.6665 16.6667V3.33333C1.6665 3.11232 1.7543 2.90036 1.91058 2.74408C2.06686 2.5878 2.27882 2.5 2.49984 2.5ZM16.6665 9.16667H3.33317V15.8333H16.6665V9.16667ZM16.6665 7.5V4.16667H3.33317V7.5H16.6665ZM11.6665 12.5H14.9998V14.1667H11.6665V12.5Z", fill: "currentColor", fillOpacity: 0.4, style: {
2
+ import * as e from "react";
3
+ import { forwardRef as i } from "react";
4
+ import { MaskedInput as _ } from "../MaskedInput/MaskedInput.js";
5
+ import { useCardLogo as a } from "./useCardLogo.js";
6
+ import { CARD_NUMBER_MASK as m } from "../../../constants/masks.js";
7
+ const f = (t) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M2.49984 2.5H17.4998C17.7209 2.5 17.9328 2.5878 18.0891 2.74408C18.2454 2.90036 18.3332 3.11232 18.3332 3.33333V16.6667C18.3332 16.8877 18.2454 17.0996 18.0891 17.2559C17.9328 17.4122 17.7209 17.5 17.4998 17.5H2.49984C2.27882 17.5 2.06686 17.4122 1.91058 17.2559C1.7543 17.0996 1.6665 16.8877 1.6665 16.6667V3.33333C1.6665 3.11232 1.7543 2.90036 1.91058 2.74408C2.06686 2.5878 2.27882 2.5 2.49984 2.5ZM16.6665 9.16667H3.33317V15.8333H16.6665V9.16667ZM16.6665 7.5V4.16667H3.33317V7.5H16.6665ZM11.6665 12.5H14.9998V14.1667H11.6665V12.5Z", fill: "currentColor", fillOpacity: 0.4, style: {
6
8
  fill: "#0D1126",
7
9
  fill: "color(display-p3 0.0510 0.0667 0.1490)",
8
10
  fillOpacity: 0.4
9
- } })), C = (t) => {
10
- const e = i(t.value);
11
+ } })), d = i((t, l) => {
12
+ const r = a(t.value);
11
13
  return /* @__PURE__ */ o(
12
- r,
14
+ _,
13
15
  {
16
+ ref: l,
14
17
  ...t,
15
- mask: "0000 0000 0000 0000",
16
- rightSection: e && /* @__PURE__ */ o(e, {}),
17
- leftSection: /* @__PURE__ */ o(a, {}),
18
+ mask: m,
19
+ rightSection: r && /* @__PURE__ */ o(r, {}),
20
+ leftSection: /* @__PURE__ */ o(f, {}),
18
21
  placeholder: "____ ____ ____ ____"
19
22
  }
20
23
  );
21
- };
24
+ });
22
25
  export {
23
- C as CardInput
26
+ d as CardInput
24
27
  };
@@ -1,2 +1,4 @@
1
- import { InputProps } from '../types';
2
- export declare const CvvInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const CvvInput: import('react').ForwardRefExoticComponent<import('@mantine/core').InputBaseProps & import('@mantine/core').ElementProps<"input"> & {
2
+ value?: string;
3
+ mask?: string;
4
+ } & import('react').RefAttributes<unknown>>;
@@ -1,16 +1,19 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import { MaskedInput as a } from "../MaskedInput/MaskedInput.js";
3
- import { c as n, b as p } from "../../../clsx-BvFBxcni.js";
4
- import '../../../assets/CvvInput.css';const o = "_input_17dgl_9", m = {
5
- input: o
6
- }, { input: c, ...e } = p, i = n(c, m.input), N = (s) => /* @__PURE__ */ t(
3
+ import { c as m, b as p } from "../../../clsx-BvFBxcni.js";
4
+ import { forwardRef as r } from "react";
5
+ import { CARD_CVV_MASK as n } from "../../../constants/masks.js";
6
+ import '../../../assets/CvvInput.css';const i = "_input_17dgl_9", e = {
7
+ input: i
8
+ }, { input: c, ...u } = p, f = m(c, e.input), x = r((s, t) => /* @__PURE__ */ o(
7
9
  a,
8
10
  {
11
+ ref: t,
9
12
  ...s,
10
- mask: "000",
11
- classNames: { ...e, input: i }
13
+ mask: n,
14
+ classNames: { ...u, input: f }
12
15
  }
13
- );
16
+ ));
14
17
  export {
15
- N as CvvInput
18
+ x as CvvInput
16
19
  };
@@ -1,9 +1,10 @@
1
1
  import { InputBase as a } from "@mantine/core";
2
- import { c as s, b as t } from "../../clsx-BvFBxcni.js";
3
- import { c as r } from "../../Text.module-D3VLOIGk.js";
4
- const { input: o, error: e, ...p } = t, m = s(o, r["caption-l-regular"]), n = s(e, r["caption-l-regular"]), u = a.withProps({
5
- classNames: { ...p, input: m, error: n }
2
+ import { c as s, b as o } from "../../clsx-BvFBxcni.js";
3
+ import { c as t } from "../../typography.module-D5hr9RHB.js";
4
+ import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../constants/font-variants.js";
5
+ const { input: m, error: p, ...n } = o, r = t[e], c = s(m, r), i = s(p, r), I = a.withProps({
6
+ classNames: { ...n, input: c, error: i }
6
7
  });
7
8
  export {
8
- u as Input
9
+ I as Input
9
10
  };
@@ -1,2 +1,4 @@
1
- import { InputProps } from '../types';
2
- export declare const MaskedInput: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const MaskedInput: import('react').ForwardRefExoticComponent<import('@mantine/core').InputBaseProps & import('@mantine/core').ElementProps<"input"> & {
2
+ value?: string;
3
+ mask?: string;
4
+ } & import('react').RefAttributes<unknown>>;
@@ -1,6 +1,6 @@
1
1
  import { jsx as ee } from "react/jsx-runtime";
2
- import X from "react";
3
- import { Input as se } from "../Input.js";
2
+ import X, { forwardRef as se } from "react";
3
+ import { Input as ie } from "../Input.js";
4
4
  function G(a) {
5
5
  return typeof a == "string" || a instanceof String;
6
6
  }
@@ -21,7 +21,7 @@ const m = {
21
21
  RIGHT: "RIGHT",
22
22
  FORCE_RIGHT: "FORCE_RIGHT"
23
23
  };
24
- function ie(a) {
24
+ function re(a) {
25
25
  switch (a) {
26
26
  case m.LEFT:
27
27
  return m.FORCE_LEFT;
@@ -59,7 +59,7 @@ function ot(a, t) {
59
59
  return t.toString() === a.toString();
60
60
  return !1;
61
61
  }
62
- class re {
62
+ class ne {
63
63
  /** Current input value */
64
64
  /** Current cursor position */
65
65
  /** Old input value */
@@ -187,7 +187,7 @@ class Rt {
187
187
  /** */
188
188
  }
189
189
  g.MaskElement = Rt;
190
- const Ot = 90, ne = 89;
190
+ const Ot = 90, ae = 89;
191
191
  class ht extends Rt {
192
192
  /** HTMLElement to use mask on */
193
193
  constructor(t) {
@@ -206,7 +206,7 @@ class ht extends Rt {
206
206
  this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
207
207
  }
208
208
  _onKeydown(t) {
209
- if (this._handlers.redo && (t.keyCode === Ot && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === ne && t.ctrlKey))
209
+ if (this._handlers.redo && (t.keyCode === Ot && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === ae && t.ctrlKey))
210
210
  return t.preventDefault(), this._handlers.redo(t);
211
211
  if (this._handlers.undo && t.keyCode === Ot && (t.metaKey || t.ctrlKey))
212
212
  return t.preventDefault(), this._handlers.undo(t);
@@ -230,7 +230,7 @@ class ht extends Rt {
230
230
  }
231
231
  }
232
232
  g.HTMLMaskElement = ht;
233
- class ae extends ht {
233
+ class ue extends ht {
234
234
  /** InputElement to use mask on */
235
235
  constructor(t) {
236
236
  super(t), this.input = t;
@@ -310,13 +310,13 @@ class pt {
310
310
  }
311
311
  }
312
312
  pt.MAX_LENGTH = 100;
313
- class ue {
313
+ class oe {
314
314
  /**
315
315
  View element
316
316
  */
317
317
  /** Internal {@link Masked} model */
318
318
  constructor(t, e) {
319
- this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Kt(t) : new ae(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
319
+ this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Kt(t) : new ue(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
320
320
  }
321
321
  maskEquals(t) {
322
322
  var e;
@@ -475,7 +475,7 @@ class ue {
475
475
  /** Handles view input event */
476
476
  _onInput(t) {
477
477
  this._inputEvent = t, this._abortUpdateCursor();
478
- const e = new re({
478
+ const e = new ne({
479
479
  // new state
480
480
  value: this.el.value,
481
481
  cursorPos: this.cursorPos,
@@ -519,7 +519,7 @@ class ue {
519
519
  this._unbindEvents(), this._listeners.length = 0, delete this.el;
520
520
  }
521
521
  }
522
- g.InputMask = ue;
522
+ g.InputMask = oe;
523
523
  class E {
524
524
  /** Inserted symbols */
525
525
  /** Additional offset if any changes occurred before tail */
@@ -802,7 +802,7 @@ class P {
802
802
  });
803
803
  const n = t + e, u = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
804
804
  let h;
805
- l && (i = ie(i), h = this.extractInput(0, n, {
805
+ l && (i = re(i), h = this.extractInput(0, n, {
806
806
  raw: !0
807
807
  }));
808
808
  let v = t;
@@ -932,7 +932,7 @@ class J {
932
932
  return "";
933
933
  }
934
934
  }
935
- class oe {
935
+ class le {
936
936
  constructor(t, e) {
937
937
  this.masked = t, this._log = [];
938
938
  const {
@@ -1251,7 +1251,7 @@ lt.DEFAULT_DEFINITIONS = {
1251
1251
  // http://stackoverflow.com/a/22075070
1252
1252
  "*": /./
1253
1253
  };
1254
- class le extends P {
1254
+ class he extends P {
1255
1255
  /** */
1256
1256
  /** Enable characters overwriting */
1257
1257
  /** */
@@ -1265,7 +1265,7 @@ class le extends P {
1265
1265
  e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
1266
1266
  }
1267
1267
  }
1268
- g.MaskedRegExp = le;
1268
+ g.MaskedRegExp = he;
1269
1269
  class L extends P {
1270
1270
  /** */
1271
1271
  /** */
@@ -1528,7 +1528,7 @@ class L extends P {
1528
1528
  }
1529
1529
  nearestInputPos(t, e) {
1530
1530
  if (e === void 0 && (e = m.NONE), !this._blocks.length) return 0;
1531
- const s = new oe(this, t);
1531
+ const s = new le(this, t);
1532
1532
  if (e === m.NONE)
1533
1533
  return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
1534
1534
  if (e === m.LEFT || e === m.FORCE_LEFT) {
@@ -1643,7 +1643,7 @@ class ut extends L {
1643
1643
  }
1644
1644
  }
1645
1645
  g.MaskedRange = ut;
1646
- const he = "d{.}`m{.}`Y";
1646
+ const pe = "d{.}`m{.}`Y";
1647
1647
  class H extends L {
1648
1648
  static extractPatternOptions(t) {
1649
1649
  const {
@@ -1736,7 +1736,7 @@ H.GET_DEFAULT_BLOCKS = () => ({
1736
1736
  H.DEFAULTS = {
1737
1737
  ...L.DEFAULTS,
1738
1738
  mask: Date,
1739
- pattern: he,
1739
+ pattern: pe,
1740
1740
  format: (a, t) => {
1741
1741
  if (!a) return "";
1742
1742
  const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
@@ -2019,7 +2019,7 @@ dt.DEFAULTS = {
2019
2019
  matchValue: (a, t, e) => a.indexOf(t, e) === e
2020
2020
  };
2021
2021
  g.MaskedEnum = dt;
2022
- class pe extends P {
2022
+ class ce extends P {
2023
2023
  /** */
2024
2024
  /** Enable characters overwriting */
2025
2025
  /** */
@@ -2035,7 +2035,7 @@ class pe extends P {
2035
2035
  });
2036
2036
  }
2037
2037
  }
2038
- g.MaskedFunction = pe;
2038
+ g.MaskedFunction = ce;
2039
2039
  var Wt;
2040
2040
  class U extends P {
2041
2041
  /** Single char */
@@ -2251,13 +2251,13 @@ function Zt(a, t, e) {
2251
2251
  const s = K(a);
2252
2252
  return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
2253
2253
  }
2254
- function ce(a, t, e, s) {
2254
+ function de(a, t, e, s) {
2255
2255
  return Zt(t, e, s)(a);
2256
2256
  }
2257
2257
  g.PIPE_TYPE = It;
2258
2258
  g.createPipe = Zt;
2259
- g.pipe = ce;
2260
- class de extends L {
2259
+ g.pipe = de;
2260
+ class fe extends L {
2261
2261
  get repeatFrom() {
2262
2262
  var t;
2263
2263
  return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
@@ -2350,12 +2350,12 @@ class de extends L {
2350
2350
  this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
2351
2351
  }
2352
2352
  }
2353
- g.RepeatBlock = de;
2353
+ g.RepeatBlock = fe;
2354
2354
  try {
2355
2355
  globalThis.IMask = g;
2356
2356
  } catch {
2357
2357
  }
2358
- function fe(a) {
2358
+ function me(a) {
2359
2359
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
2360
2360
  }
2361
2361
  var nt = { exports: {} }, at = { exports: {} }, I = {};
@@ -2368,7 +2368,7 @@ var nt = { exports: {} }, at = { exports: {} }, I = {};
2368
2368
  * LICENSE file in the root directory of this source tree.
2369
2369
  */
2370
2370
  var Dt;
2371
- function me() {
2371
+ function ve() {
2372
2372
  if (Dt) return I;
2373
2373
  Dt = 1;
2374
2374
  var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
@@ -2443,7 +2443,7 @@ var R = {};
2443
2443
  * LICENSE file in the root directory of this source tree.
2444
2444
  */
2445
2445
  var Vt;
2446
- function ve() {
2446
+ function ge() {
2447
2447
  return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
2448
2448
  var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
2449
2449
  function V(p) {
@@ -2527,7 +2527,7 @@ function ve() {
2527
2527
  }
2528
2528
  var Pt;
2529
2529
  function Xt() {
2530
- return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? at.exports = me() : at.exports = ve()), at.exports;
2530
+ return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? at.exports = ve() : at.exports = ge()), at.exports;
2531
2531
  }
2532
2532
  /*
2533
2533
  object-assign
@@ -2535,7 +2535,7 @@ object-assign
2535
2535
  @license MIT
2536
2536
  */
2537
2537
  var At, Lt;
2538
- function ge() {
2538
+ function ke() {
2539
2539
  if (Lt) return At;
2540
2540
  Lt = 1;
2541
2541
  var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
@@ -2592,7 +2592,7 @@ function Jt() {
2592
2592
  return jt || (jt = 1, Ft = Function.call.bind(Object.prototype.hasOwnProperty)), Ft;
2593
2593
  }
2594
2594
  var St, Ut;
2595
- function ke() {
2595
+ function _e() {
2596
2596
  if (Ut) return St;
2597
2597
  Ut = 1;
2598
2598
  var a = function() {
@@ -2641,10 +2641,10 @@ function ke() {
2641
2641
  }, St = i, St;
2642
2642
  }
2643
2643
  var xt, $t;
2644
- function _e() {
2644
+ function Ee() {
2645
2645
  if ($t) return xt;
2646
2646
  $t = 1;
2647
- var a = Xt(), t = ge(), e = /* @__PURE__ */ wt(), s = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ ke(), r = function() {
2647
+ var a = Xt(), t = ke(), e = /* @__PURE__ */ wt(), s = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ _e(), r = function() {
2648
2648
  };
2649
2649
  process.env.NODE_ENV !== "production" && (r = function(u) {
2650
2650
  var l = "Warning: " + u;
@@ -2962,7 +2962,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
2962
2962
  }, xt;
2963
2963
  }
2964
2964
  var Tt, qt;
2965
- function Ee() {
2965
+ function ye() {
2966
2966
  if (qt) return Tt;
2967
2967
  qt = 1;
2968
2968
  var a = /* @__PURE__ */ wt();
@@ -3010,17 +3010,17 @@ function Ee() {
3010
3010
  }, Tt;
3011
3011
  }
3012
3012
  var Yt;
3013
- function ye() {
3013
+ function Ce() {
3014
3014
  if (Yt) return nt.exports;
3015
3015
  if (Yt = 1, process.env.NODE_ENV !== "production") {
3016
3016
  var a = Xt(), t = !0;
3017
- nt.exports = /* @__PURE__ */ _e()(a.isElement, t);
3017
+ nt.exports = /* @__PURE__ */ Ee()(a.isElement, t);
3018
3018
  } else
3019
- nt.exports = /* @__PURE__ */ Ee()();
3019
+ nt.exports = /* @__PURE__ */ ye()();
3020
3020
  return nt.exports;
3021
3021
  }
3022
- var Ce = /* @__PURE__ */ ye();
3023
- const f = /* @__PURE__ */ fe(Ce), Qt = {
3022
+ var Ae = /* @__PURE__ */ Ce();
3023
+ const f = /* @__PURE__ */ me(Ae), Qt = {
3024
3024
  // common
3025
3025
  mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, g.Masked]), f.instanceOf(g.Masked)]),
3026
3026
  value: f.any,
@@ -3067,8 +3067,8 @@ const f = /* @__PURE__ */ fe(Ce), Qt = {
3067
3067
  inputRef: f.oneOfType([f.func, f.shape({
3068
3068
  current: f.object
3069
3069
  })])
3070
- }, te = Object.keys(Qt).filter((a) => a !== "value"), Ae = ["value", "unmask", "onAccept", "onComplete", "inputRef"], be = te.filter((a) => Ae.indexOf(a) < 0);
3071
- function Fe(a) {
3070
+ }, te = Object.keys(Qt).filter((a) => a !== "value"), be = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Fe = te.filter((a) => be.indexOf(a) < 0);
3071
+ function Se(a) {
3072
3072
  var t;
3073
3073
  const e = (t = class extends X.Component {
3074
3074
  constructor(r) {
@@ -3102,7 +3102,7 @@ function Fe(a) {
3102
3102
  const {
3103
3103
  ...n
3104
3104
  } = r;
3105
- return Object.keys(n).filter((u) => be.indexOf(u) < 0).forEach((u) => {
3105
+ return Object.keys(n).filter((u) => Fe.indexOf(u) < 0).forEach((u) => {
3106
3106
  delete n[u];
3107
3107
  }), n;
3108
3108
  }
@@ -3138,7 +3138,7 @@ function Fe(a) {
3138
3138
  ref: r
3139
3139
  }));
3140
3140
  }
3141
- const Se = Fe((a) => {
3141
+ const xe = Se((a) => {
3142
3142
  let {
3143
3143
  inputRef: t,
3144
3144
  ...e
@@ -3147,16 +3147,17 @@ const Se = Fe((a) => {
3147
3147
  ...e,
3148
3148
  ref: t
3149
3149
  });
3150
- }), xe = (a, t) => X.createElement(Se, {
3150
+ }), Te = (a, t) => X.createElement(xe, {
3151
3151
  ...a,
3152
3152
  ref: t
3153
- }), Te = X.forwardRef(xe), Be = (a) => /* @__PURE__ */ ee(
3154
- se,
3153
+ }), Ie = X.forwardRef(Te), Oe = se((a, t) => /* @__PURE__ */ ee(
3154
+ ie,
3155
3155
  {
3156
- component: Te,
3156
+ ref: t,
3157
+ component: Ie,
3157
3158
  ...a
3158
3159
  }
3159
- );
3160
+ ));
3160
3161
  export {
3161
- Be as MaskedInput
3162
+ Oe as MaskedInput
3162
3163
  };
@@ -1,16 +1,17 @@
1
1
  import { PasswordInput as t } from "@mantine/core";
2
2
  import { c as s, b as a } from "../../../clsx-BvFBxcni.js";
3
- import { c as o } from "../../../Text.module-D3VLOIGk.js";
4
- import '../../../assets/PasswordInput.css';const r = "_section_1lzoc_1", e = {
5
- section: r
6
- }, { input: n, error: c, ...i } = a, p = s(n, o["caption-l-regular"]), l = s(c, o["caption-l-regular"]), C = t.withProps({
3
+ import { c as r } from "../../../typography.module-D5hr9RHB.js";
4
+ import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../../constants/font-variants.js";
5
+ import '../../../assets/PasswordInput.css';const n = "_section_1lzoc_1", c = {
6
+ section: n
7
+ }, { input: i, error: m, ...p } = a, o = r[e], l = s(i, o), N = s(m, o), P = t.withProps({
7
8
  classNames: {
8
- ...i,
9
- input: p,
10
- error: l,
11
- section: e.section
9
+ ...p,
10
+ input: l,
11
+ error: N,
12
+ section: c.section
12
13
  }
13
14
  });
14
15
  export {
15
- C as PasswordInput
16
+ P as PasswordInput
16
17
  };
@@ -1,9 +1,8 @@
1
1
  import { TextProps as TextBaseProps } from '@mantine/core';
2
2
  import { ReactNode } from 'react';
3
- type TextVariants = TextBaseProps['variant'] | 'body-s-medium' | 'caption-l-medium' | 'caption-l-regular';
3
+ import { TextVariants } from './types';
4
4
  export type TextProps = Omit<TextBaseProps, 'variant'> & {
5
5
  children: ReactNode;
6
- variant: TextVariants;
6
+ variant?: TextVariants;
7
7
  };
8
8
  export declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { Text as o } from "@mantine/core";
3
- import { c as a } from "../../Text.module-D3VLOIGk.js";
3
+ import { c as a } from "../../typography.module-D5hr9RHB.js";
4
4
  const x = (t) => /* @__PURE__ */ s(
5
5
  o,
6
6
  {
@@ -0,0 +1,5 @@
1
+ import { FontVariants as FontVariantsConstants } from '../../constants/font-variants';
2
+ import { TextProps as TextBaseProps } from '@mantine/core';
3
+ type FontVariantsConstantsType = typeof FontVariantsConstants;
4
+ export type TextVariants = TextBaseProps['variant'] | FontVariantsConstantsType[number];
5
+ export {};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ export declare const BODY_S_MEDIUM_FONT_VARIANT: "body-s-medium";
2
+ export declare const CAPTION_L_MEDIUM_FONT_VARIANT: "caption-l-medium";
3
+ export declare const CAPTION_L_REGULAR_FONT_VARIANT: "caption-l-regular";
4
+ export declare const FontVariants: ("body-s-medium" | "caption-l-regular" | "caption-l-medium")[];
@@ -0,0 +1,11 @@
1
+ const _ = "body-s-medium", o = "caption-l-medium", t = "caption-l-regular", A = [
2
+ _,
3
+ o,
4
+ t
5
+ ];
6
+ export {
7
+ _ as BODY_S_MEDIUM_FONT_VARIANT,
8
+ o as CAPTION_L_MEDIUM_FONT_VARIANT,
9
+ t as CAPTION_L_REGULAR_FONT_VARIANT,
10
+ A as FontVariants
11
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CARD_NUMBER_MASK: "0000 0000 0000 0000";
2
+ export declare const CARD_CVV_MASK: "000";
3
+ export declare const CARD_EXPIRY_DATE_MASK: "00/00";
4
+ export declare const PHONE_MASK: "+7 000 000 00 00";
@@ -0,0 +1,7 @@
1
+ const A = "0000 0000 0000 0000", _ = "000", o = "00/00", t = "+7 000 000 00 00";
2
+ export {
3
+ _ as CARD_CVV_MASK,
4
+ o as CARD_EXPIRY_DATE_MASK,
5
+ A as CARD_NUMBER_MASK,
6
+ t as PHONE_MASK
7
+ };
@@ -1,4 +1,4 @@
1
- import './assets/Text.css';const a = {
1
+ import './assets/typography.css';const a = {
2
2
  "body-s-medium": "_body-s-medium_19522_2",
3
3
  "caption-l-medium": "_caption-l-medium_19522_11",
4
4
  "caption-l-regular": "_caption-l-regular_19522_19"
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.11.1",
5
+ "version": "1.11.2",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
File without changes