@kvell-group/ui 1.7.1 → 1.8.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/README.md +0 -0
- package/dist/{MantineThemeProvider-CyD9KzqB.js → MantineThemeProvider-kHsOfZUW.js} +14 -13
- package/dist/Text-B8e4XllM.js +80 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/TypographyBodySMedium.css +1 -0
- package/dist/assets/TypographyCaptionLMedium.css +1 -0
- package/dist/components/Button/Button.js +362 -1104
- package/dist/components/MainProvider/MantineProvider.js +1 -1
- package/dist/components/Typography/TypographyBodySMedium.d.ts +2 -0
- package/dist/components/Typography/TypographyBodySMedium.js +14 -0
- package/dist/components/Typography/TypographyCaptionLMedium.d.ts +2 -0
- package/dist/components/Typography/TypographyCaptionLMedium.js +14 -0
- package/dist/components/Typography/types.d.ts +5 -0
- package/dist/components/Typography/types.js +1 -0
- package/dist/components/theme.js +74 -18
- package/dist/polymorphic-factory-DUeudAZR.js +767 -0
- package/package.json +3 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as v, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import { u as E,
|
|
2
|
+
import { u as E, b as j, k as d, e as M, c as p, p as z, d as f, r as D, f as R, D as B, h as G, M as U, i as q } from "../../MantineThemeProvider-kHsOfZUW.js";
|
|
3
3
|
import { useLayoutEffect as J, useEffect as k, useRef as K, useState as Q, useCallback as S } from "react";
|
|
4
4
|
function X(r) {
|
|
5
5
|
var o;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { T as t } from "../../Text-B8e4XllM.js";
|
|
3
|
+
import '../../assets/TypographyBodySMedium.css';const r = "_root_41o9b_1", m = {
|
|
4
|
+
root: r
|
|
5
|
+
}, c = (o) => /* @__PURE__ */ s(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
...o,
|
|
9
|
+
classNames: m
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
c as TypographyBodySMedium
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { T as t } from "../../Text-B8e4XllM.js";
|
|
3
|
+
import '../../assets/TypographyCaptionLMedium.css';const r = "_root_k5pqg_1", a = {
|
|
4
|
+
root: r
|
|
5
|
+
}, e = (o) => /* @__PURE__ */ s(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
...o,
|
|
9
|
+
classNames: a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
e as TypographyCaptionLMedium
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/components/theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a(r) {
|
|
2
2
|
return Array.isArray(r) ? r : Array(10).fill(r);
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const e = {
|
|
5
5
|
focusRing: "never",
|
|
6
6
|
scale: 1,
|
|
7
7
|
//default value
|
|
@@ -10,11 +10,12 @@ const a = {
|
|
|
10
10
|
// white: 'ffffff',
|
|
11
11
|
black: "#14151a",
|
|
12
12
|
colors: {
|
|
13
|
-
primary:
|
|
14
|
-
|
|
13
|
+
primary: a("#14151a"),
|
|
14
|
+
secondary: a("#ffffff"),
|
|
15
|
+
tertiary: a("#0a0f290a")
|
|
15
16
|
},
|
|
16
17
|
primaryShade: 6,
|
|
17
|
-
// { light: 6, dark: 8 } by theme
|
|
18
|
+
// { light: 6, dark: 8 } default mantine by theme
|
|
18
19
|
primaryColor: "primary",
|
|
19
20
|
/* variantColorResolver: ({ color, variant, gradient, theme }) => {
|
|
20
21
|
if (variant === 'primary') {
|
|
@@ -47,20 +48,50 @@ const a = {
|
|
|
47
48
|
//..
|
|
48
49
|
},
|
|
49
50
|
}, */
|
|
50
|
-
radius: {
|
|
51
|
+
radius: {
|
|
52
|
+
xl: "12px"
|
|
53
|
+
// xs: '6px', sm: '8px', md: '12px', lg: '16px',
|
|
54
|
+
},
|
|
51
55
|
//!!!TODO sync with blank
|
|
52
56
|
defaultRadius: "sm",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
xs: '
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
spacing: {
|
|
58
|
+
//blank variables
|
|
59
|
+
"body-s": " -0.20000000298023224px",
|
|
60
|
+
"caption-l": "-0.10000000149011612px;"
|
|
61
|
+
//mantine variables !!!TODO sync with mantine
|
|
62
|
+
// xs: '6px', sm: '8px', md: '12px', lg: '16px', xl: '18px'
|
|
63
|
+
},
|
|
64
|
+
//for example
|
|
65
|
+
fontSizes: {
|
|
66
|
+
//blank variables
|
|
67
|
+
"body-s-medium": "16px",
|
|
68
|
+
"caption-l": "14px",
|
|
69
|
+
// mantine variables !!!TODO sync with mantine
|
|
70
|
+
xs: "6px",
|
|
71
|
+
sm: "8px",
|
|
72
|
+
md: "12px",
|
|
73
|
+
lg: "16px",
|
|
74
|
+
xl: "18px"
|
|
75
|
+
},
|
|
76
|
+
//for example
|
|
77
|
+
lineHeights: {
|
|
78
|
+
//blank variables
|
|
79
|
+
"body-s": "24px",
|
|
80
|
+
"caption-l": "20px"
|
|
81
|
+
// mantine variables !!!TODO sync with mantine
|
|
82
|
+
// xs: '6px', sm: '8px', md: '12px', lg: '16px', xl: '18px'
|
|
83
|
+
},
|
|
84
|
+
//for example
|
|
85
|
+
// breakpoints: { xs: '6px', sm: '8px', md: '12px', lg: '16px', xl: '18px' }, //for example !!!TODO sync with mantine
|
|
86
|
+
shadows: {
|
|
87
|
+
//same name for mantine and
|
|
88
|
+
xs: "0px 1px 2px 0px #14151A0D"
|
|
89
|
+
// sm: '1px 1px 3px rgba(0, 0, 0, .25)',
|
|
90
|
+
// md: '1px 1px 3px rgba(0, 0, 0, .25)',
|
|
91
|
+
// lg: '1px 1px 3px rgba(0, 0, 0, .25)',
|
|
92
|
+
// xl: '1px 1px 3px rgba(0, 0, 0, .25)',
|
|
93
|
+
},
|
|
94
|
+
//for example
|
|
64
95
|
respectReducedMotion: !1,
|
|
65
96
|
//default
|
|
66
97
|
cursorType: "default",
|
|
@@ -78,8 +109,33 @@ const a = {
|
|
|
78
109
|
}, */
|
|
79
110
|
other: {
|
|
80
111
|
// any additional vars
|
|
112
|
+
/* usage:
|
|
113
|
+
import { createStyles } from '@mantine/core';
|
|
114
|
+
|
|
115
|
+
const useStyles = createStyles((theme) => ({
|
|
116
|
+
customBox: {
|
|
117
|
+
padding: theme.other.customSpacing,
|
|
118
|
+
backgroundColor: theme.other.brandColor,
|
|
119
|
+
},
|
|
120
|
+
}));
|
|
121
|
+
|
|
122
|
+
function MyComponent() {
|
|
123
|
+
const { classes } = useStyles();
|
|
124
|
+
|
|
125
|
+
return <div className={classes.customBox}>Hello Mantine</div>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// theme-override.d.ts
|
|
129
|
+
import '@mantine/core';
|
|
130
|
+
|
|
131
|
+
declare module '@mantine/core' {
|
|
132
|
+
export interface MantineThemeOther {
|
|
133
|
+
customSpacing: string;
|
|
134
|
+
brandColor: string;
|
|
135
|
+
}
|
|
136
|
+
}*/
|
|
81
137
|
}
|
|
82
138
|
};
|
|
83
139
|
export {
|
|
84
|
-
|
|
140
|
+
e as theme
|
|
85
141
|
};
|