@televet/kibble-ui 1.0.14-beta.0 → 1.0.14-beta.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.
- package/build/index.js +55866 -414
- package/build/index.js.map +1 -1
- package/build/theme/tokens/colors.d.ts +18 -130
- package/package.json +1 -16
- package/build/components/Banner/index.d.ts +0 -3
- package/build/components/Input/index.d.ts +0 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IconColor } from '../../components/Icon/icon.types';
|
|
2
|
+
import { ColorMode } from '@chakra-ui/react';
|
|
1
3
|
export declare const baseColors: IBaseColors;
|
|
2
4
|
export declare const semanticTokens: ISemanticTokens;
|
|
3
5
|
interface IBaseColors {
|
|
@@ -5,126 +7,16 @@ interface IBaseColors {
|
|
|
5
7
|
current: string;
|
|
6
8
|
black: string;
|
|
7
9
|
white: string;
|
|
8
|
-
whiteAlpha:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
900: string;
|
|
19
|
-
};
|
|
20
|
-
blackAlpha: {
|
|
21
|
-
50: string;
|
|
22
|
-
100: string;
|
|
23
|
-
200: string;
|
|
24
|
-
300: string;
|
|
25
|
-
400: string;
|
|
26
|
-
500: string;
|
|
27
|
-
600: string;
|
|
28
|
-
700: string;
|
|
29
|
-
800: string;
|
|
30
|
-
900: string;
|
|
31
|
-
};
|
|
32
|
-
gray: {
|
|
33
|
-
50: string;
|
|
34
|
-
100: string;
|
|
35
|
-
200: string;
|
|
36
|
-
300: string;
|
|
37
|
-
400: string;
|
|
38
|
-
500: string;
|
|
39
|
-
600: string;
|
|
40
|
-
700: string;
|
|
41
|
-
800: string;
|
|
42
|
-
900: string;
|
|
43
|
-
};
|
|
44
|
-
red: {
|
|
45
|
-
50: string;
|
|
46
|
-
100: string;
|
|
47
|
-
200: string;
|
|
48
|
-
300: string;
|
|
49
|
-
400: string;
|
|
50
|
-
500: string;
|
|
51
|
-
600: string;
|
|
52
|
-
700: string;
|
|
53
|
-
800: string;
|
|
54
|
-
900: string;
|
|
55
|
-
};
|
|
56
|
-
orange: {
|
|
57
|
-
50: string;
|
|
58
|
-
100: string;
|
|
59
|
-
200: string;
|
|
60
|
-
300: string;
|
|
61
|
-
400: string;
|
|
62
|
-
500: string;
|
|
63
|
-
600: string;
|
|
64
|
-
700: string;
|
|
65
|
-
800: string;
|
|
66
|
-
900: string;
|
|
67
|
-
};
|
|
68
|
-
yellow: {
|
|
69
|
-
50: string;
|
|
70
|
-
100: string;
|
|
71
|
-
200: string;
|
|
72
|
-
300: string;
|
|
73
|
-
400: string;
|
|
74
|
-
500: string;
|
|
75
|
-
600: string;
|
|
76
|
-
700: string;
|
|
77
|
-
800: string;
|
|
78
|
-
900: string;
|
|
79
|
-
};
|
|
80
|
-
green: {
|
|
81
|
-
50: string;
|
|
82
|
-
100: string;
|
|
83
|
-
200: string;
|
|
84
|
-
300: string;
|
|
85
|
-
400: string;
|
|
86
|
-
500: string;
|
|
87
|
-
600: string;
|
|
88
|
-
700: string;
|
|
89
|
-
800: string;
|
|
90
|
-
900: string;
|
|
91
|
-
};
|
|
92
|
-
teal: {
|
|
93
|
-
50: string;
|
|
94
|
-
100: string;
|
|
95
|
-
200: string;
|
|
96
|
-
300: string;
|
|
97
|
-
400: string;
|
|
98
|
-
500: string;
|
|
99
|
-
600: string;
|
|
100
|
-
700: string;
|
|
101
|
-
800: string;
|
|
102
|
-
900: string;
|
|
103
|
-
};
|
|
104
|
-
blue: {
|
|
105
|
-
50: string;
|
|
106
|
-
100: string;
|
|
107
|
-
200: string;
|
|
108
|
-
300: string;
|
|
109
|
-
400: string;
|
|
110
|
-
500: string;
|
|
111
|
-
600: string;
|
|
112
|
-
700: string;
|
|
113
|
-
800: string;
|
|
114
|
-
900: string;
|
|
115
|
-
};
|
|
116
|
-
comet: {
|
|
117
|
-
50: string;
|
|
118
|
-
100: string;
|
|
119
|
-
200: string;
|
|
120
|
-
300: string;
|
|
121
|
-
400: string;
|
|
122
|
-
500: string;
|
|
123
|
-
600: string;
|
|
124
|
-
700: string;
|
|
125
|
-
800: string;
|
|
126
|
-
900: string;
|
|
127
|
-
};
|
|
10
|
+
whiteAlpha: ColorValueMap;
|
|
11
|
+
blackAlpha: ColorValueMap;
|
|
12
|
+
gray: ColorValueMap;
|
|
13
|
+
red: ColorValueMap;
|
|
14
|
+
orange: ColorValueMap;
|
|
15
|
+
yellow: ColorValueMap;
|
|
16
|
+
green: ColorValueMap;
|
|
17
|
+
teal: ColorValueMap;
|
|
18
|
+
blue: ColorValueMap;
|
|
19
|
+
comet: ColorValueMap;
|
|
128
20
|
}
|
|
129
21
|
export interface ISemanticTokens {
|
|
130
22
|
text: {
|
|
@@ -151,16 +43,7 @@ export interface ISemanticTokens {
|
|
|
151
43
|
warning: string;
|
|
152
44
|
success: string;
|
|
153
45
|
};
|
|
154
|
-
icon:
|
|
155
|
-
onLight: string;
|
|
156
|
-
onLightSubtle: string;
|
|
157
|
-
onDark: string;
|
|
158
|
-
inactive: string;
|
|
159
|
-
active: string;
|
|
160
|
-
success: string;
|
|
161
|
-
warning: string;
|
|
162
|
-
error: string;
|
|
163
|
-
};
|
|
46
|
+
icon: AdaptiveColorMap<IconColor>;
|
|
164
47
|
border: {
|
|
165
48
|
default: string;
|
|
166
49
|
dark: string;
|
|
@@ -189,6 +72,11 @@ export interface ISemanticTokens {
|
|
|
189
72
|
error: string;
|
|
190
73
|
};
|
|
191
74
|
}
|
|
75
|
+
export declare type ColorValue = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
76
|
+
export declare type ColorValueMap = Record<ColorValue, string>;
|
|
77
|
+
export declare type AdaptiveColor = Record<ColorMode, string>;
|
|
78
|
+
export declare type AdaptiveColorMap<T extends keyof any> = Record<ColorMode, Record<T, string>>;
|
|
79
|
+
export declare type AdaptiveColorConfig<K extends keyof any, T extends keyof any> = Record<K, AdaptiveColorMap<T>>;
|
|
192
80
|
export declare type TColors = IBaseColors & ISemanticTokens;
|
|
193
81
|
declare const colors: TColors;
|
|
194
82
|
export default colors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@televet/kibble-ui",
|
|
3
|
-
"version": "1.0.14-beta.
|
|
3
|
+
"version": "1.0.14-beta.2",
|
|
4
4
|
"description": "Kibble Design System by Televet",
|
|
5
5
|
"author": "TeleVet",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -40,11 +40,8 @@
|
|
|
40
40
|
"@babel/preset-env": "^7.15.0",
|
|
41
41
|
"@babel/preset-react": "^7.14.5",
|
|
42
42
|
"@babel/runtime": "^7.15.3",
|
|
43
|
-
"@chakra-ui/icons": "^1.0.14",
|
|
44
43
|
"@chakra-ui/react": "^1.6.5",
|
|
45
44
|
"@chakra-ui/storybook-addon": "^1.0.3",
|
|
46
|
-
"@chakra-ui/theme-tools": "^1.3.6",
|
|
47
|
-
"@emotion/react": "^11.4.0",
|
|
48
45
|
"@emotion/styled": "^11.3.0",
|
|
49
46
|
"@rollup/plugin-babel": "^5.3.0",
|
|
50
47
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
@@ -115,18 +112,6 @@
|
|
|
115
112
|
"stylelint-order": "^4.1.0",
|
|
116
113
|
"typescript": "^4.6.2"
|
|
117
114
|
},
|
|
118
|
-
"peerDependencies": {
|
|
119
|
-
"@chakra-ui/icons": ">=1.0.14",
|
|
120
|
-
"@chakra-ui/react": ">=1.6.5",
|
|
121
|
-
"@chakra-ui/theme-tools": "^1.3.6",
|
|
122
|
-
"@emotion/react": "^11.4.0",
|
|
123
|
-
"@emotion/styled": "^11.3.0",
|
|
124
|
-
"prop-types": ">=15.0.0",
|
|
125
|
-
"react": ">=16.13.1",
|
|
126
|
-
"react-dom": ">=16.13.1",
|
|
127
|
-
"react-hook-form": ">=5.7.0",
|
|
128
|
-
"styled-components": ">=5.0.0"
|
|
129
|
-
},
|
|
130
115
|
"dependencies": {
|
|
131
116
|
"@televet/kibble-icons": "^0.1.4"
|
|
132
117
|
}
|