@kvell-group/ui 1.8.3 → 1.9.1
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/README.md +0 -0
- package/dist/Text.module-R-XLggXY.js +8 -0
- package/dist/assets/CardInput.css +1 -0
- package/dist/assets/Text.css +1 -0
- package/dist/components/Button/Button.js +9 -592
- package/dist/components/CardInput/CardInput.d.ts +145 -0
- package/dist/components/CardInput/CardInput.js +3223 -0
- package/dist/components/CardInput/index.d.ts +1 -0
- package/dist/components/CardInput/index.js +4 -0
- package/dist/components/CardInput/useCardLogo.d.ts +1 -0
- package/dist/components/CardInput/useCardLogo.js +47 -0
- package/dist/components/MainProvider/MantineProvider.js +9 -425
- package/dist/components/Text/Text.d.ts +9 -0
- package/dist/components/Text/Text.js +13 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +4 -0
- package/dist/components/theme.js +40 -25
- package/dist/main.d.ts +3 -1
- package/dist/main.js +13 -46
- package/package.json +10 -10
- package/dist/MantineThemeProvider-kHsOfZUW.js +0 -705
- package/dist/Text-B8e4XllM.js +0 -80
- package/dist/assets/TypographyBodySMedium.css +0 -1
- package/dist/assets/TypographyCaptionLMedium.css +0 -1
- package/dist/components/Typography/TypographyBodySMedium.d.ts +0 -2
- package/dist/components/Typography/TypographyBodySMedium.js +0 -14
- package/dist/components/Typography/TypographyCaptionLMedium.d.ts +0 -2
- package/dist/components/Typography/TypographyCaptionLMedium.js +0 -14
- package/dist/components/Typography/types.d.ts +0 -5
- package/dist/components/Typography/types.js +0 -1
- package/dist/polymorphic-factory-DUeudAZR.js +0 -767
package/dist/components/theme.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
const e = {
|
|
1
|
+
import { colorsTuple as e } from "@mantine/core";
|
|
2
|
+
const m = {
|
|
5
3
|
focusRing: "never",
|
|
6
4
|
scale: 1,
|
|
7
5
|
//default value
|
|
@@ -10,9 +8,13 @@ const e = {
|
|
|
10
8
|
// white: 'ffffff',
|
|
11
9
|
black: "#14151a",
|
|
12
10
|
colors: {
|
|
13
|
-
primary:
|
|
14
|
-
secondary:
|
|
15
|
-
tertiary:
|
|
11
|
+
primary: e("#14151a"),
|
|
12
|
+
secondary: e("#ffffff"),
|
|
13
|
+
tertiary: e("#0a0f290a"),
|
|
14
|
+
//borders
|
|
15
|
+
"border-action-normal": e("#dee0e3"),
|
|
16
|
+
//text
|
|
17
|
+
"text-base-tertiary": e("#0d112666")
|
|
16
18
|
},
|
|
17
19
|
primaryShade: 6,
|
|
18
20
|
// { light: 6, dark: 8 } default mantine by theme
|
|
@@ -49,40 +51,53 @@ const e = {
|
|
|
49
51
|
},
|
|
50
52
|
}, */
|
|
51
53
|
radius: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
// same name from blank and mantine
|
|
55
|
+
xl: "12px",
|
|
56
|
+
//mantine default variables
|
|
57
|
+
xs: "0.125rem",
|
|
58
|
+
sm: "0.25rem",
|
|
59
|
+
md: "0.5rem",
|
|
60
|
+
lg: "2rem"
|
|
54
61
|
},
|
|
55
|
-
//!!!TODO sync with blank
|
|
56
62
|
defaultRadius: "sm",
|
|
57
63
|
spacing: {
|
|
58
64
|
//blank variables
|
|
59
65
|
"body-s": " -0.20000000298023224px",
|
|
60
|
-
"caption-l": "-0.10000000149011612px;"
|
|
61
|
-
//mantine variables
|
|
62
|
-
|
|
66
|
+
"caption-l": "-0.10000000149011612px;",
|
|
67
|
+
//mantine default variables
|
|
68
|
+
xs: "0.625rem",
|
|
69
|
+
sm: "0.75rem",
|
|
70
|
+
md: "1rem",
|
|
71
|
+
lg: "1.25rem",
|
|
72
|
+
xl: "2rem"
|
|
63
73
|
},
|
|
64
74
|
//for example
|
|
65
75
|
fontSizes: {
|
|
66
76
|
//blank variables
|
|
67
77
|
"body-s-medium": "16px",
|
|
68
78
|
"caption-l": "14px",
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
"caption-l-regular": "14px",
|
|
80
|
+
// mantine default variables
|
|
81
|
+
xs: "0.75rem",
|
|
82
|
+
sm: "0.875rem",
|
|
83
|
+
md: "1rem",
|
|
84
|
+
lg: "1.125rem",
|
|
85
|
+
xl: "1.25rem"
|
|
75
86
|
},
|
|
76
87
|
//for example
|
|
77
88
|
lineHeights: {
|
|
78
89
|
//blank variables
|
|
79
90
|
"body-s": "24px",
|
|
80
|
-
"caption-l": "20px"
|
|
81
|
-
// mantine variables
|
|
82
|
-
|
|
91
|
+
"caption-l": "20px",
|
|
92
|
+
// mantine default variables
|
|
93
|
+
xs: "1.4",
|
|
94
|
+
sm: "1.45",
|
|
95
|
+
md: "1.55",
|
|
96
|
+
lg: "1.6",
|
|
97
|
+
xl: "1.65"
|
|
83
98
|
},
|
|
84
|
-
//
|
|
85
|
-
|
|
99
|
+
// mantine default variables
|
|
100
|
+
breakpoints: { xs: "36em", sm: "48em", md: "62em", lg: "75em", xl: "88em" },
|
|
86
101
|
shadows: {
|
|
87
102
|
//same name for mantine and
|
|
88
103
|
xs: "0px 1px 2px 0px #14151A0D"
|
|
@@ -137,5 +152,5 @@ const e = {
|
|
|
137
152
|
}
|
|
138
153
|
};
|
|
139
154
|
export {
|
|
140
|
-
|
|
155
|
+
m as theme
|
|
141
156
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { ColorSchemeScript, mantineHtmlProps } from '@mantine/core';
|
|
2
2
|
export { MantineProvider } from './components/MainProvider';
|
|
3
|
-
export { Button } from './components/Button';
|
|
4
3
|
export { theme } from './components/theme';
|
|
4
|
+
export { Button } from './components/Button';
|
|
5
|
+
export { CardInput } from './components/CardInput';
|
|
6
|
+
export { Text } from './components/Text';
|
package/dist/main.js
CHANGED
|
@@ -1,48 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { theme as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
localStorageKey: o,
|
|
8
|
-
forceColorScheme: t
|
|
9
|
-
}) => t ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${t}');` : `try {
|
|
10
|
-
var _colorScheme = window.localStorage.getItem("${o}");
|
|
11
|
-
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${e}";
|
|
12
|
-
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
13
|
-
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
14
|
-
} catch (e) {}
|
|
15
|
-
`;
|
|
16
|
-
function l({
|
|
17
|
-
defaultColorScheme: e = "light",
|
|
18
|
-
localStorageKey: o = "mantine-color-scheme-value",
|
|
19
|
-
forceColorScheme: t,
|
|
20
|
-
...r
|
|
21
|
-
}) {
|
|
22
|
-
const c = ["light", "dark", "auto"].includes(e) ? e : "light";
|
|
23
|
-
return /* @__PURE__ */ m(
|
|
24
|
-
"script",
|
|
25
|
-
{
|
|
26
|
-
...r,
|
|
27
|
-
"data-mantine-script": !0,
|
|
28
|
-
dangerouslySetInnerHTML: {
|
|
29
|
-
__html: a({
|
|
30
|
-
defaultColorScheme: c,
|
|
31
|
-
localStorageKey: o,
|
|
32
|
-
forceColorScheme: t
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
const i = {
|
|
39
|
-
suppressHydrationWarning: !0,
|
|
40
|
-
"data-mantine-color-scheme": "light"
|
|
41
|
-
};
|
|
1
|
+
import { ColorSchemeScript as t, mantineHtmlProps as e } from "@mantine/core";
|
|
2
|
+
import { MantineProvider as p } from "./components/MainProvider/MantineProvider.js";
|
|
3
|
+
import { theme as f } from "./components/theme.js";
|
|
4
|
+
import { Button as i } from "./components/Button/Button.js";
|
|
5
|
+
import { CardInput as c } from "./components/CardInput/CardInput.js";
|
|
6
|
+
import { Text as h } from "./components/Text/Text.js";
|
|
42
7
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
8
|
+
i as Button,
|
|
9
|
+
c as CardInput,
|
|
10
|
+
t as ColorSchemeScript,
|
|
11
|
+
p as MantineProvider,
|
|
12
|
+
h as Text,
|
|
13
|
+
e as mantineHtmlProps,
|
|
14
|
+
f as theme
|
|
48
15
|
};
|
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.
|
|
5
|
+
"version": "1.9.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -21,17 +21,12 @@
|
|
|
21
21
|
"format:fix": "prettier --write .",
|
|
22
22
|
"build-storybook": "storybook build"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"peerDependencies": {
|
|
25
25
|
"@mantine/core": "^7.17.3",
|
|
26
26
|
"@mantine/hooks": "^7.17.3",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
31
|
-
},
|
|
32
|
-
"peerDependencies ": {
|
|
33
|
-
"react-dom": "^19.0.0",
|
|
34
|
-
"react": "^19.0.0"
|
|
27
|
+
"react": "^18.0.0",
|
|
28
|
+
"react-dom": "^18.0.0",
|
|
29
|
+
"react-imask": "^7.6.1"
|
|
35
30
|
},
|
|
36
31
|
"devDependencies": {
|
|
37
32
|
"@chromatic-com/storybook": "^3.2.6",
|
|
@@ -51,17 +46,20 @@
|
|
|
51
46
|
"@vitest/browser": "^3.1.1",
|
|
52
47
|
"@vitest/coverage-v8": "^3.1.1",
|
|
53
48
|
"autoprefixer": "^10.4.21",
|
|
49
|
+
"classnames": "^2.5.1",
|
|
54
50
|
"eslint": "^9.21.0",
|
|
55
51
|
"eslint-config-prettier": "^10.1.1",
|
|
56
52
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
57
53
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
58
54
|
"eslint-plugin-storybook": "^0.12.0",
|
|
55
|
+
"glob": "^11.0.1",
|
|
59
56
|
"globals": "^15.15.0",
|
|
60
57
|
"playwright": "^1.51.1",
|
|
61
58
|
"postcss": "^8.5.3",
|
|
62
59
|
"postcss-preset-mantine": "^1.17.0",
|
|
63
60
|
"postcss-simple-vars": "^7.0.1",
|
|
64
61
|
"prettier": "^3.5.3",
|
|
62
|
+
"semantic-release": "^24.2.3",
|
|
65
63
|
"storybook": "^8.6.12",
|
|
66
64
|
"stylelint": "^16.17.0",
|
|
67
65
|
"stylelint-config-standard": "^37.0.0",
|
|
@@ -70,6 +68,8 @@
|
|
|
70
68
|
"vite": "^6.2.0",
|
|
71
69
|
"vite-plugin-dts": "^4.5.3",
|
|
72
70
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
71
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
72
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
73
73
|
"vitest": "^3.1.1"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|