@kvell-group/ui 1.12.19 → 1.13.0
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/Input.module-CPh0cNNI.js +9 -0
- package/dist/assets/Switch.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Inputs/CvvInput/CvvInput.js +11 -10
- package/dist/components/Inputs/Input.js +5 -4
- package/dist/components/Inputs/PasswordInput/PasswordInput.js +4 -3
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.js +17 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/theme.js +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +16 -14
- package/package.json +1 -1
- package/dist/clsx-oLHujfaf.js +0 -23
- /package/dist/assets/{clsx.css → Input.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._track_g524i_1{--switch-height: 1rem;--switch-width: calc(1.75rem * var(--mantine-scale));--switch-color: var(--mantine-color-background-toggle-active-0)}input:not(:checked)+._track_g524i_1{background-color:var(--mantine-color-background-toggle-default-0)}._description_g524i_11{margin-top:-1px;--label-offset-start: 1rem;color:var(--mantine-color-primary)}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
|
|
7
|
+
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as c
|
|
16
|
+
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { MaskedInput as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MaskedInput as a } from "../MaskedInput/MaskedInput.js";
|
|
3
|
+
import { b as m } from "../../../Input.module-CPh0cNNI.js";
|
|
4
|
+
import { c as r } from "../../../clsx-OuTLNxxd.js";
|
|
4
5
|
import { forwardRef as p } from "react";
|
|
5
6
|
import { CARD_CVV_MASK as n } from "../../../constants/masks.js";
|
|
6
|
-
import { IMask as
|
|
7
|
-
import '../../../assets/CvvInput.css';const
|
|
8
|
-
input:
|
|
9
|
-
}, { input:
|
|
10
|
-
|
|
7
|
+
import { IMask as i } from "react-imask";
|
|
8
|
+
import '../../../assets/CvvInput.css';const e = "_input_17dgl_9", c = {
|
|
9
|
+
input: e
|
|
10
|
+
}, { input: f, ...u } = m, l = r(f, c.input), C = i.createMask({ mask: n }), b = p((s, t) => /* @__PURE__ */ o(
|
|
11
|
+
a,
|
|
11
12
|
{
|
|
12
13
|
ref: t,
|
|
13
14
|
...s,
|
|
14
15
|
mask: C,
|
|
15
|
-
classNames: { ...
|
|
16
|
+
classNames: { ...u, input: l }
|
|
16
17
|
}
|
|
17
18
|
));
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
b as CvvInput
|
|
20
21
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { TextInput as
|
|
2
|
-
import {
|
|
1
|
+
import { TextInput as o } from "@mantine/core";
|
|
2
|
+
import { b as t } from "../../Input.module-CPh0cNNI.js";
|
|
3
3
|
import { c as a } from "../../typography.module-krUfTmwf.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { CAPTION_L_REGULAR_FONT_VARIANT as m } from "../../constants/font-variants.js";
|
|
6
|
+
const { input: e, error: p, ...n } = t, r = a[m], c = s(e, r), i = s(p, r), I = o.withProps({
|
|
6
7
|
classNames: { ...n, input: c, error: i }
|
|
7
8
|
});
|
|
8
9
|
export {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PasswordInput as t } from "@mantine/core";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
2
|
+
import { b as r } from "../../../Input.module-CPh0cNNI.js";
|
|
3
|
+
import { c as a } from "../../../typography.module-krUfTmwf.js";
|
|
4
|
+
import { c as s } from "../../../clsx-OuTLNxxd.js";
|
|
4
5
|
import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../../constants/font-variants.js";
|
|
5
6
|
import '../../../assets/PasswordInput.css';const n = "_section_1lzoc_1", c = {
|
|
6
7
|
section: n
|
|
7
|
-
}, { input:
|
|
8
|
+
}, { input: m, error: i, ...p } = r, o = a[e], l = s(m, o), N = s(i, o), P = t.withProps({
|
|
8
9
|
classNames: {
|
|
9
10
|
...p,
|
|
10
11
|
input: l,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Switch as c } from "@mantine/core";
|
|
2
|
+
import { c as i } from "../../typography.module-krUfTmwf.js";
|
|
3
|
+
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { CAPTION_L_MEDIUM_FONT_VARIANT as o } from "../../constants/font-variants.js";
|
|
5
|
+
import '../../assets/Switch.css';const r = "_track_g524i_1", a = "_description_g524i_11", s = {
|
|
6
|
+
track: r,
|
|
7
|
+
description: a
|
|
8
|
+
}, e = t(
|
|
9
|
+
s.description,
|
|
10
|
+
i[o]
|
|
11
|
+
), d = c.withProps({
|
|
12
|
+
classNames: { ...s, description: e },
|
|
13
|
+
size: "xs"
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
d as Switch
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './Switch';
|
package/dist/components/theme.js
CHANGED
|
@@ -27,6 +27,9 @@ const a = {
|
|
|
27
27
|
"text-base-tertiary": e("#0d112666"),
|
|
28
28
|
"text-base-quaternary": e("#0a0f2940"),
|
|
29
29
|
"text-status-destructive": e("#e6483d"),
|
|
30
|
+
//toggle
|
|
31
|
+
"background-toggle-active": e("#26bd6c"),
|
|
32
|
+
"background-toggle-default": e("#babdc5"),
|
|
30
33
|
//typography
|
|
31
34
|
"typography-secondary": e("#91989e")
|
|
32
35
|
},
|
package/dist/main.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export { PasswordInput } from './components/Inputs/PasswordInput';
|
|
|
9
9
|
export { CvvInput } from './components/Inputs/CvvInput';
|
|
10
10
|
export { Loader } from './components/Loader';
|
|
11
11
|
export { Modal } from './components/Modal';
|
|
12
|
+
export { Switch } from './components/Switch';
|
|
12
13
|
export { Text } from './components/Text';
|
package/dist/main.js
CHANGED
|
@@ -3,25 +3,27 @@ import { MantineProvider as m } from "./components/MainProvider/MantineProvider.
|
|
|
3
3
|
import { theme as f } from "./components/theme.js";
|
|
4
4
|
import { Button as a } from "./components/Button/Button.js";
|
|
5
5
|
import { Input as u } from "./components/Inputs/Input.js";
|
|
6
|
-
import { CardInput as
|
|
7
|
-
import { MaskedInput as
|
|
8
|
-
import { PasswordInput as
|
|
9
|
-
import { CvvInput as
|
|
10
|
-
import { Loader as
|
|
11
|
-
import { Modal as
|
|
12
|
-
import {
|
|
6
|
+
import { CardInput as I } from "./components/Inputs/CardInput/CardInput.js";
|
|
7
|
+
import { MaskedInput as c } from "./components/Inputs/MaskedInput/MaskedInput.js";
|
|
8
|
+
import { PasswordInput as l } from "./components/Inputs/PasswordInput/PasswordInput.js";
|
|
9
|
+
import { CvvInput as C } from "./components/Inputs/CvvInput/CvvInput.js";
|
|
10
|
+
import { Loader as P } from "./components/Loader/Loader.js";
|
|
11
|
+
import { Modal as w } from "./components/Modal/Modal.js";
|
|
12
|
+
import { Switch as B } from "./components/Switch/Switch.js";
|
|
13
|
+
import { Text as L } from "./components/Text/Text.js";
|
|
13
14
|
export {
|
|
14
15
|
a as Button,
|
|
15
|
-
|
|
16
|
+
I as CardInput,
|
|
16
17
|
t as ColorSchemeScript,
|
|
17
|
-
|
|
18
|
+
C as CvvInput,
|
|
18
19
|
u as Input,
|
|
19
|
-
|
|
20
|
+
P as Loader,
|
|
20
21
|
m as MantineProvider,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
B as
|
|
22
|
+
c as MaskedInput,
|
|
23
|
+
w as Modal,
|
|
24
|
+
l as PasswordInput,
|
|
25
|
+
B as Switch,
|
|
26
|
+
L as Text,
|
|
25
27
|
e as mantineHtmlProps,
|
|
26
28
|
f as theme
|
|
27
29
|
};
|
package/package.json
CHANGED
package/dist/clsx-oLHujfaf.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import './assets/clsx.css';const e = "_input_1d20c_1", a = "_section_1d20c_19", i = "_label_1d20c_24", l = "_error_1d20c_28", _ = {
|
|
2
|
-
input: e,
|
|
3
|
-
section: a,
|
|
4
|
-
label: i,
|
|
5
|
-
error: l
|
|
6
|
-
};
|
|
7
|
-
function c(r) {
|
|
8
|
-
var o, n, t = "";
|
|
9
|
-
if (typeof r == "string" || typeof r == "number") t += r;
|
|
10
|
-
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
11
|
-
var s = r.length;
|
|
12
|
-
for (o = 0; o < s; o++) r[o] && (n = c(r[o])) && (t && (t += " "), t += n);
|
|
13
|
-
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
14
|
-
return t;
|
|
15
|
-
}
|
|
16
|
-
function u() {
|
|
17
|
-
for (var r, o, n = 0, t = "", s = arguments.length; n < s; n++) (r = arguments[n]) && (o = c(r)) && (t && (t += " "), t += o);
|
|
18
|
-
return t;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
_ as b,
|
|
22
|
-
u as c
|
|
23
|
-
};
|
|
File without changes
|