@kvell-group/ui 1.12.2 → 1.12.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/assets/Loader.css +1 -0
- package/dist/components/Inputs/Input.js +4 -4
- package/dist/components/Inputs/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/Loader/Loader.d.ts +7 -0
- package/dist/components/Loader/Loader.js +25 -0
- package/dist/components/Loader/constants.d.ts +5 -0
- package/dist/components/Loader/constants.js +8 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Loader/index.js +4 -0
- package/dist/components/Modal/Modal.js +5 -5
- package/dist/components/Text/Text.js +5 -5
- package/dist/components/theme.js +3 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +6 -4
- package/dist/{typography.module-CkcKr7wr.js → typography.module-gwO-h9Os.js} +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_6ptye_1{position:relative;display:inline-block}._container_6ptye_1[data-size=auto]{width:100%;height:100%}._container_6ptye_1[data-size=sm]{width:1.5rem;height:1.5rem}._container_6ptye_1[data-size=md]{width:2rem;height:2rem}._container_6ptye_1[data-size=lg]{width:4rem;height:4rem}._part_6ptye_26{position:absolute;left:45%;top:36%;width:8%;height:26%;background:var(--mantine-color-typography-secondary-0);opacity:0;border-radius:3rem;box-shadow:0 0 3px #0003;animation:_fade_6ptye_1 1s linear infinite}@keyframes _fade_6ptye_1{0%{opacity:1}to{opacity:.25}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InputBase as
|
|
2
|
-
import { c as s, b as
|
|
3
|
-
import {
|
|
1
|
+
import { InputBase as a } from "@mantine/core";
|
|
2
|
+
import { c as s, b as o } from "../../clsx-BvFBxcni.js";
|
|
3
|
+
import { c as t } from "../../typography.module-gwO-h9Os.js";
|
|
4
4
|
import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../constants/font-variants.js";
|
|
5
|
-
const { input: m, error: p, ...n } =
|
|
5
|
+
const { input: m, error: p, ...n } = o, r = t[e], c = s(m, r), i = s(p, r), I = a.withProps({
|
|
6
6
|
classNames: { ...n, input: c, error: i }
|
|
7
7
|
});
|
|
8
8
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PasswordInput as t } from "@mantine/core";
|
|
2
2
|
import { c as s, b as a } from "../../../clsx-BvFBxcni.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as r } from "../../../typography.module-gwO-h9Os.js";
|
|
4
4
|
import { CAPTION_L_REGULAR_FONT_VARIANT as e } from "../../../constants/font-variants.js";
|
|
5
5
|
import '../../../assets/PasswordInput.css';const n = "_section_1lzoc_1", c = {
|
|
6
6
|
section: n
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Loader.css';const n = "_container_6ptye_1", s = "_part_6ptye_26", r = {
|
|
3
|
+
container: n,
|
|
4
|
+
part: s
|
|
5
|
+
}, o = (a) => ({
|
|
6
|
+
transform: `rotate(${a * 360 / 8}deg) translate(0, -130%)`,
|
|
7
|
+
animationDelay: `${-(8 - a) * 0.125}s`
|
|
8
|
+
}), i = ({ size: a = "auto" }) => /* @__PURE__ */ e(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: r.container,
|
|
12
|
+
"data-size": a,
|
|
13
|
+
children: Array(8).fill(0).map((c, t) => /* @__PURE__ */ e(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: r.part,
|
|
17
|
+
style: o(t)
|
|
18
|
+
},
|
|
19
|
+
t
|
|
20
|
+
))
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
i as Loader
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Loader } from './Loader';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Modal as o } from "@mantine/core";
|
|
2
|
-
import {
|
|
3
|
-
import { BODY_M_MEDIUM_FONT_VARIANT as
|
|
4
|
-
import '../../assets/Modal.css';const
|
|
5
|
-
root:
|
|
2
|
+
import { c } from "../../typography.module-gwO-h9Os.js";
|
|
3
|
+
import { BODY_M_MEDIUM_FONT_VARIANT as s } from "../../constants/font-variants.js";
|
|
4
|
+
import '../../assets/Modal.css';const t = "_root_jcnc7_1", e = "_content_jcnc7_5", a = "_header_jcnc7_12", n = "_close_jcnc7_16", _ = {
|
|
5
|
+
root: t,
|
|
6
6
|
content: e,
|
|
7
7
|
header: a,
|
|
8
8
|
close: n
|
|
9
9
|
}, d = o.withProps({
|
|
10
|
-
classNames: { ..._, title:
|
|
10
|
+
classNames: { ..._, title: c[s] },
|
|
11
11
|
withOverlay: !1
|
|
12
12
|
});
|
|
13
13
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Text as m } from "@mantine/core";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { c as a } from "../../typography.module-gwO-h9Os.js";
|
|
5
|
+
const c = s((t, o) => /* @__PURE__ */ r(
|
|
6
6
|
m,
|
|
7
7
|
{
|
|
8
8
|
ref: o,
|
|
9
9
|
...t,
|
|
10
|
-
classNames: { root:
|
|
10
|
+
classNames: { root: a[t.variant || "text"] }
|
|
11
11
|
}
|
|
12
12
|
));
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as Text
|
|
15
15
|
};
|
package/dist/components/theme.js
CHANGED
|
@@ -22,7 +22,9 @@ const a = {
|
|
|
22
22
|
//text
|
|
23
23
|
"text-base-secondary": e("#0f132499"),
|
|
24
24
|
"text-base-tertiary": e("#0d112666"),
|
|
25
|
-
"text-status-destructive": e("#e6483d")
|
|
25
|
+
"text-status-destructive": e("#e6483d"),
|
|
26
|
+
//typography
|
|
27
|
+
"typography-secondary": e("#91989e")
|
|
26
28
|
},
|
|
27
29
|
primaryShade: 6,
|
|
28
30
|
// { light: 6, dark: 8 } default mantine by theme
|
package/dist/main.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { CardInput } from './components/Inputs/CardInput';
|
|
|
7
7
|
export { MaskedInput } from './components/Inputs/MaskedInput';
|
|
8
8
|
export { PasswordInput } from './components/Inputs/PasswordInput';
|
|
9
9
|
export { CvvInput } from './components/Inputs/CvvInput';
|
|
10
|
-
export {
|
|
10
|
+
export { Loader } from './components/Loader';
|
|
11
11
|
export { Modal } from './components/Modal';
|
|
12
|
+
export { Text } from './components/Text';
|
package/dist/main.js
CHANGED
|
@@ -2,24 +2,26 @@ import { ColorSchemeScript as t, mantineHtmlProps as e } from "@mantine/core";
|
|
|
2
2
|
import { MantineProvider as m } from "./components/MainProvider/MantineProvider.js";
|
|
3
3
|
import { theme as f } from "./components/theme.js";
|
|
4
4
|
import { Button as a } from "./components/Button/Button.js";
|
|
5
|
-
import { Input as
|
|
5
|
+
import { Input as u } from "./components/Inputs/Input.js";
|
|
6
6
|
import { CardInput as i } from "./components/Inputs/CardInput/CardInput.js";
|
|
7
7
|
import { MaskedInput as l } from "./components/Inputs/MaskedInput/MaskedInput.js";
|
|
8
8
|
import { PasswordInput as C } from "./components/Inputs/PasswordInput/PasswordInput.js";
|
|
9
9
|
import { CvvInput as P } from "./components/Inputs/CvvInput/CvvInput.js";
|
|
10
|
-
import {
|
|
10
|
+
import { Loader as h } from "./components/Loader/Loader.js";
|
|
11
11
|
import { Modal as k } from "./components/Modal/Modal.js";
|
|
12
|
+
import { Text as B } from "./components/Text/Text.js";
|
|
12
13
|
export {
|
|
13
14
|
a as Button,
|
|
14
15
|
i as CardInput,
|
|
15
16
|
t as ColorSchemeScript,
|
|
16
17
|
P as CvvInput,
|
|
17
|
-
|
|
18
|
+
u as Input,
|
|
19
|
+
h as Loader,
|
|
18
20
|
m as MantineProvider,
|
|
19
21
|
l as MaskedInput,
|
|
20
22
|
k as Modal,
|
|
21
23
|
C as PasswordInput,
|
|
22
|
-
|
|
24
|
+
B as Text,
|
|
23
25
|
e as mantineHtmlProps,
|
|
24
26
|
f as theme
|
|
25
27
|
};
|