@kvell-group/ui 1.11.1 → 1.11.3
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/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +8 -6
- package/dist/components/Button/constants.d.ts +4 -0
- package/dist/components/Button/constants.js +11 -0
- package/dist/components/Button/types.d.ts +5 -0
- package/dist/components/Button/types.js +1 -0
- package/dist/components/Inputs/CardInput/CardInput.d.ts +4 -2
- package/dist/components/Inputs/CardInput/CardInput.js +15 -12
- package/dist/components/Inputs/CvvInput/CvvInput.d.ts +4 -2
- package/dist/components/Inputs/CvvInput/CvvInput.js +12 -9
- package/dist/components/Inputs/Input.js +6 -5
- package/dist/components/Inputs/MaskedInput/MaskedInput.d.ts +4 -2
- package/dist/components/Inputs/MaskedInput/MaskedInput.js +49 -48
- package/dist/components/Inputs/PasswordInput/PasswordInput.js +10 -9
- package/dist/components/Text/Text.d.ts +4 -6
- package/dist/components/Text/Text.js +9 -7
- package/dist/components/Text/types.d.ts +5 -0
- package/dist/components/Text/types.js +1 -0
- package/dist/constants/font-variants.d.ts +4 -0
- package/dist/constants/font-variants.js +11 -0
- package/dist/constants/masks.d.ts +4 -0
- package/dist/constants/masks.js +7 -0
- package/dist/{Text.module-D3VLOIGk.js → typography.module-D5hr9RHB.js} +1 -1
- package/package.json +1 -1
- /package/dist/assets/{Text.css → typography.css} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from '@mantine/core';
|
|
2
|
-
export declare const Button: (
|
|
2
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Button as s } from "@mantine/core";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
import '../../assets/Button.css';const a = "_root_arz1h_1", n = {
|
|
5
|
+
root: a
|
|
6
|
+
}, p = m((o, t) => /* @__PURE__ */ r(
|
|
6
7
|
s,
|
|
7
8
|
{
|
|
9
|
+
ref: t,
|
|
8
10
|
...o,
|
|
9
11
|
classNames: n
|
|
10
12
|
}
|
|
11
|
-
);
|
|
13
|
+
));
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
p as Button
|
|
14
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
-
} })),
|
|
10
|
-
const
|
|
11
|
+
} })), d = i((t, l) => {
|
|
12
|
+
const r = a(t.value);
|
|
11
13
|
return /* @__PURE__ */ o(
|
|
12
|
-
|
|
14
|
+
_,
|
|
13
15
|
{
|
|
16
|
+
ref: l,
|
|
14
17
|
...t,
|
|
15
|
-
mask:
|
|
16
|
-
rightSection:
|
|
17
|
-
leftSection: /* @__PURE__ */ o(
|
|
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
|
-
|
|
26
|
+
d as CardInput
|
|
24
27
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { MaskedInput as a } from "../MaskedInput/MaskedInput.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
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:
|
|
11
|
-
classNames: { ...
|
|
13
|
+
mask: n,
|
|
14
|
+
classNames: { ...u, input: f }
|
|
12
15
|
}
|
|
13
|
-
);
|
|
16
|
+
));
|
|
14
17
|
export {
|
|
15
|
-
|
|
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
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
+
I as Input
|
|
9
10
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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 ===
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
2260
|
-
class
|
|
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 =
|
|
2353
|
+
g.RepeatBlock = fe;
|
|
2354
2354
|
try {
|
|
2355
2355
|
globalThis.IMask = g;
|
|
2356
2356
|
} catch {
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
2644
|
+
function Ee() {
|
|
2645
2645
|
if ($t) return xt;
|
|
2646
2646
|
$t = 1;
|
|
2647
|
-
var a = Xt(), t =
|
|
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
|
|
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
|
|
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__ */
|
|
3017
|
+
nt.exports = /* @__PURE__ */ Ee()(a.isElement, t);
|
|
3018
3018
|
} else
|
|
3019
|
-
nt.exports = /* @__PURE__ */
|
|
3019
|
+
nt.exports = /* @__PURE__ */ ye()();
|
|
3020
3020
|
return nt.exports;
|
|
3021
3021
|
}
|
|
3022
|
-
var
|
|
3023
|
-
const f = /* @__PURE__ */
|
|
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"),
|
|
3071
|
-
function
|
|
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) =>
|
|
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
|
|
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
|
-
}),
|
|
3150
|
+
}), Te = (a, t) => X.createElement(xe, {
|
|
3151
3151
|
...a,
|
|
3152
3152
|
ref: t
|
|
3153
|
-
}),
|
|
3154
|
-
|
|
3153
|
+
}), Ie = X.forwardRef(Te), Oe = se((a, t) => /* @__PURE__ */ ee(
|
|
3154
|
+
ie,
|
|
3155
3155
|
{
|
|
3156
|
-
|
|
3156
|
+
ref: t,
|
|
3157
|
+
component: Ie,
|
|
3157
3158
|
...a
|
|
3158
3159
|
}
|
|
3159
|
-
);
|
|
3160
|
+
));
|
|
3160
3161
|
export {
|
|
3161
|
-
|
|
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
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
...
|
|
9
|
-
input:
|
|
10
|
-
error:
|
|
11
|
-
section:
|
|
9
|
+
...p,
|
|
10
|
+
input: l,
|
|
11
|
+
error: N,
|
|
12
|
+
section: c.section
|
|
12
13
|
}
|
|
13
14
|
});
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
P as PasswordInput
|
|
16
17
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { TextProps as TextBaseProps } from '@mantine/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
import { TextVariants } from './types';
|
|
4
|
+
export declare const Text: import('react').ForwardRefExoticComponent<Omit<TextBaseProps, "variant"> & {
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
variant
|
|
7
|
-
}
|
|
8
|
-
export declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
6
|
+
variant?: TextVariants;
|
|
7
|
+
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Text as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Text as m } from "@mantine/core";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { c as a } from "../../typography.module-D5hr9RHB.js";
|
|
5
|
+
const c = s((t, o) => /* @__PURE__ */ r(
|
|
6
|
+
m,
|
|
6
7
|
{
|
|
8
|
+
ref: o,
|
|
7
9
|
...t,
|
|
8
10
|
classNames: { root: a[t.variant || "text"] }
|
|
9
11
|
}
|
|
10
|
-
);
|
|
12
|
+
));
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
c as Text
|
|
13
15
|
};
|
|
@@ -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")[];
|
package/package.json
CHANGED
|
File without changes
|