@kvell-group/ui 1.14.0 → 1.14.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,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<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" fill-opacity="0.4" style="fill:#0D1126;fill:color(display-p3 0.0510 0.0667 0.1490);fill-opacity:0.4;"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MaskedInput as e } from "./MaskedInput/MaskedInput.js";
|
|
3
|
+
import { useCardLogo as a } from "./CardInput/useCardLogo.js";
|
|
4
|
+
import { forwardRef as s } from "react";
|
|
5
|
+
import { CARD_NUMBER_MASK as m } from "../../constants/masks.js";
|
|
6
|
+
import { IMask as n } from "react-imask";
|
|
7
|
+
const i = "/assets/card.svg?no-inline", c = n.createMask({ mask: m }), C = s((r, _) => {
|
|
8
|
+
const t = a(r.value);
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
ref: _,
|
|
13
|
+
...r,
|
|
14
|
+
mask: c,
|
|
15
|
+
rightSection: t && /* @__PURE__ */ o(t, {}),
|
|
16
|
+
leftSection: /* @__PURE__ */ o(i, {}),
|
|
17
|
+
placeholder: "____ ____ ____ ____"
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
C as CardInputTest
|
|
23
|
+
};
|
package/dist/components/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colorsTuple as e } from "@mantine/core";
|
|
2
|
-
const
|
|
2
|
+
const r = {
|
|
3
3
|
focusRing: "never",
|
|
4
4
|
scale: 1,
|
|
5
5
|
//default value
|
|
@@ -14,6 +14,7 @@ const a = {
|
|
|
14
14
|
//borders
|
|
15
15
|
"border-action-normal": e("#dee0e3"),
|
|
16
16
|
"border-action-destructive": e("#f7c3c0"),
|
|
17
|
+
"border-base-alpha": e("#0a0f2914"),
|
|
17
18
|
//buttons
|
|
18
19
|
"background-button-tertiary": e("#0a0f290a"),
|
|
19
20
|
"background-button-primary-disabled": e("#e9eaec"),
|
|
@@ -179,5 +180,5 @@ const a = {
|
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
r as theme
|
|
183
184
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ 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 { CardInputTest } from './components/Inputs/CardInputTest';
|
|
10
11
|
export { Loader } from './components/Loader';
|
|
11
12
|
export { Modal } from './components/Modal';
|
|
12
13
|
export { Switch } from './components/Switch';
|
package/dist/main.js
CHANGED
|
@@ -3,27 +3,29 @@ 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 {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
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 h } from "./components/Inputs/PasswordInput/PasswordInput.js";
|
|
9
|
+
import { CvvInput as v } from "./components/Inputs/CvvInput/CvvInput.js";
|
|
10
|
+
import { CardInputTest as P } from "./components/Inputs/CardInputTest.js";
|
|
11
|
+
import { Loader as w } from "./components/Loader/Loader.js";
|
|
12
|
+
import { Modal as k } from "./components/Modal/Modal.js";
|
|
13
|
+
import { Switch as H } from "./components/Switch/Switch.js";
|
|
14
|
+
import { Text as b } from "./components/Text/Text.js";
|
|
14
15
|
export {
|
|
15
16
|
a as Button,
|
|
16
|
-
|
|
17
|
+
i as CardInput,
|
|
18
|
+
P as CardInputTest,
|
|
17
19
|
t as ColorSchemeScript,
|
|
18
|
-
|
|
20
|
+
v as CvvInput,
|
|
19
21
|
u as Input,
|
|
20
|
-
|
|
22
|
+
w as Loader,
|
|
21
23
|
m as MantineProvider,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
C as MaskedInput,
|
|
25
|
+
k as Modal,
|
|
26
|
+
h as PasswordInput,
|
|
27
|
+
H as Switch,
|
|
28
|
+
b as Text,
|
|
27
29
|
e as mantineHtmlProps,
|
|
28
30
|
f as theme
|
|
29
31
|
};
|