@televet/kibble-ui 0.1.0-beta.21 → 0.1.0-beta.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/README.md +230 -37
- package/build/index.d.ts +1 -2
- package/build/index.es.js +13886 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +1989 -13469
- package/build/index.js.map +1 -1
- package/build/providers/ThemeProvider/ThemeProvider.d.ts +5 -0
- package/build/theme/breakpoints.d.ts +9 -0
- package/build/theme/{tokens/colors.d.ts → colors.d.ts} +31 -32
- package/build/theme/index.d.ts +15 -16
- package/build/theme/theme.d.ts +3 -0
- package/build/theme/tokens/colors/colors.d.ts +190 -0
- package/build/theme/tokens/fonts/fonts.d.ts +6 -0
- package/package.json +28 -17
- package/build/components/Banner/index.d.ts +0 -3
- package/build/components/Input/index.d.ts +0 -3
- /package/build/theme/{tokens/blur.d.ts → blur.d.ts} +0 -0
- /package/build/theme/{tokens/borders.d.ts → borders.d.ts} +0 -0
- /package/build/theme/{tokens/fontSizes.d.ts → fontSizes.d.ts} +0 -0
- /package/build/theme/{tokens/fontWeights.d.ts → fontWeights.d.ts} +0 -0
- /package/build/theme/{tokens/fonts.d.ts → fonts.d.ts} +0 -0
- /package/build/theme/{tokens/letterSpacings.d.ts → letterSpacings.d.ts} +0 -0
- /package/build/theme/{tokens/lineHeights.d.ts → lineHeights.d.ts} +0 -0
- /package/build/theme/{tokens/radii.d.ts → radii.d.ts} +0 -0
- /package/build/theme/{tokens/shadows.d.ts → shadows.d.ts} +0 -0
- /package/build/theme/{tokens/sizes.d.ts → sizes.d.ts} +0 -0
- /package/build/theme/{tokens/space.d.ts → space.d.ts} +0 -0
- /package/build/theme/{tokens/transition.d.ts → transition.d.ts} +0 -0
- /package/build/theme/{tokens/zIndeces.d.ts → zIndeces.d.ts} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const semanticTokens: ISemanticTokens;
|
|
3
|
-
interface IBaseColors {
|
|
1
|
+
interface IPallette {
|
|
4
2
|
transparent: string;
|
|
5
3
|
current: string;
|
|
6
4
|
black: string;
|
|
7
5
|
white: string;
|
|
6
|
+
televet: {
|
|
7
|
+
100: string;
|
|
8
|
+
};
|
|
8
9
|
whiteAlpha: {
|
|
9
10
|
50: string;
|
|
10
11
|
100: string;
|
|
@@ -126,50 +127,54 @@ interface IBaseColors {
|
|
|
126
127
|
900: string;
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
+
interface ISemanticTokens {
|
|
130
131
|
text: {
|
|
131
132
|
onLight: string;
|
|
132
|
-
linkOnLight: string;
|
|
133
133
|
onLightSubtle: string;
|
|
134
134
|
onDark: string;
|
|
135
135
|
headline: string;
|
|
136
|
-
placeholder: string;
|
|
137
|
-
success: string;
|
|
138
|
-
warning: string;
|
|
139
|
-
error: string;
|
|
140
136
|
};
|
|
141
137
|
background: {
|
|
142
138
|
light: string;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
gray: string;
|
|
140
|
+
info: string;
|
|
141
|
+
error: string;
|
|
142
|
+
warning: string;
|
|
143
|
+
success: string;
|
|
144
|
+
};
|
|
145
|
+
border: {
|
|
146
|
+
default: string;
|
|
146
147
|
dark: string;
|
|
147
|
-
table: string;
|
|
148
|
-
overlay: string;
|
|
149
148
|
info: string;
|
|
150
149
|
error: string;
|
|
151
150
|
warning: string;
|
|
152
151
|
success: string;
|
|
153
152
|
};
|
|
153
|
+
button: {
|
|
154
|
+
primaryDefault: string;
|
|
155
|
+
primaryHover: string;
|
|
156
|
+
primaryActive: string;
|
|
157
|
+
secondaryDefault: string;
|
|
158
|
+
secondaryHover: string;
|
|
159
|
+
secondaryActive: string;
|
|
160
|
+
tertiaryDefault: string;
|
|
161
|
+
tertiaryHover: string;
|
|
162
|
+
tertiaryActive: string;
|
|
163
|
+
ghostDefault: string;
|
|
164
|
+
ghostHover: string;
|
|
165
|
+
ghostActive: string;
|
|
166
|
+
};
|
|
167
|
+
link: {
|
|
168
|
+
onLight: string;
|
|
169
|
+
};
|
|
154
170
|
icon: {
|
|
155
171
|
onLight: string;
|
|
156
|
-
onLightSubtle: string;
|
|
157
172
|
onDark: string;
|
|
158
|
-
inactive: string;
|
|
159
173
|
active: string;
|
|
160
174
|
success: string;
|
|
161
175
|
warning: string;
|
|
162
176
|
error: string;
|
|
163
177
|
};
|
|
164
|
-
border: {
|
|
165
|
-
default: string;
|
|
166
|
-
dark: string;
|
|
167
|
-
focus: string;
|
|
168
|
-
info: string;
|
|
169
|
-
error: string;
|
|
170
|
-
warning: string;
|
|
171
|
-
success: string;
|
|
172
|
-
};
|
|
173
178
|
divider: {
|
|
174
179
|
onLight: string;
|
|
175
180
|
};
|
|
@@ -181,14 +186,8 @@ export interface ISemanticTokens {
|
|
|
181
186
|
action: string;
|
|
182
187
|
negative: string;
|
|
183
188
|
error: string;
|
|
184
|
-
archived: string;
|
|
185
|
-
closed: string;
|
|
186
|
-
};
|
|
187
|
-
general: {
|
|
188
|
-
brand: string;
|
|
189
|
-
error: string;
|
|
190
189
|
};
|
|
191
190
|
}
|
|
192
|
-
export declare type TColors =
|
|
191
|
+
export declare type TColors = IPallette & ISemanticTokens;
|
|
193
192
|
declare const colors: TColors;
|
|
194
193
|
export default colors;
|
package/build/theme/index.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Tblur } from './
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { TColors } from './colors';
|
|
2
|
+
import { Tblur } from './blur';
|
|
3
|
+
import { Tbreakpoints } from './breakpoints';
|
|
4
|
+
import { Tborders } from './borders';
|
|
5
|
+
import { TRadii } from './radii';
|
|
6
|
+
import { TShadows } from './shadows';
|
|
7
|
+
import { TSpace } from './space';
|
|
8
|
+
import { TSizes } from './sizes';
|
|
9
|
+
import { TTransition } from './transition';
|
|
10
|
+
import { TFonts } from './fonts';
|
|
11
|
+
import { TFontSizes } from './fontSizes';
|
|
12
|
+
import { TFontWeights } from './fontWeights';
|
|
13
|
+
import { TLineHeights } from './lineHeights';
|
|
14
|
+
import { TZIndices } from './zIndeces';
|
|
14
15
|
declare const theme: ITheme;
|
|
15
16
|
export interface ITheme {
|
|
16
17
|
blur: Tblur;
|
|
17
18
|
borders: Tborders;
|
|
19
|
+
breakpoints: Tbreakpoints;
|
|
18
20
|
colors: TColors;
|
|
19
21
|
radii: TRadii;
|
|
20
22
|
shadows: TShadows;
|
|
@@ -26,8 +28,5 @@ export interface ITheme {
|
|
|
26
28
|
space: TSpace;
|
|
27
29
|
transition: TTransition;
|
|
28
30
|
zIndices: TZIndices;
|
|
29
|
-
semanticTokens: ISemanticTokens;
|
|
30
|
-
initialColorMode: string;
|
|
31
|
-
useSystemColorMode: boolean;
|
|
32
31
|
}
|
|
33
32
|
export default theme;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
pallette: {
|
|
3
|
+
comet: {
|
|
4
|
+
50: string;
|
|
5
|
+
100: string;
|
|
6
|
+
200: string;
|
|
7
|
+
300: string;
|
|
8
|
+
400: string;
|
|
9
|
+
500: string;
|
|
10
|
+
600: string;
|
|
11
|
+
700: string;
|
|
12
|
+
800: string;
|
|
13
|
+
900: string;
|
|
14
|
+
};
|
|
15
|
+
teal: {
|
|
16
|
+
50: string;
|
|
17
|
+
100: string;
|
|
18
|
+
200: string;
|
|
19
|
+
300: string;
|
|
20
|
+
400: string;
|
|
21
|
+
500: string;
|
|
22
|
+
600: string;
|
|
23
|
+
700: string;
|
|
24
|
+
800: string;
|
|
25
|
+
900: string;
|
|
26
|
+
};
|
|
27
|
+
blue: {
|
|
28
|
+
50: string;
|
|
29
|
+
100: string;
|
|
30
|
+
200: string;
|
|
31
|
+
300: string;
|
|
32
|
+
400: string;
|
|
33
|
+
500: string;
|
|
34
|
+
600: string;
|
|
35
|
+
700: string;
|
|
36
|
+
800: string;
|
|
37
|
+
900: string;
|
|
38
|
+
};
|
|
39
|
+
red: {
|
|
40
|
+
50: string;
|
|
41
|
+
100: string;
|
|
42
|
+
200: string;
|
|
43
|
+
300: string;
|
|
44
|
+
400: string;
|
|
45
|
+
500: string;
|
|
46
|
+
600: string;
|
|
47
|
+
700: string;
|
|
48
|
+
800: string;
|
|
49
|
+
900: string;
|
|
50
|
+
};
|
|
51
|
+
orange: {
|
|
52
|
+
50: string;
|
|
53
|
+
100: string;
|
|
54
|
+
200: string;
|
|
55
|
+
300: string;
|
|
56
|
+
400: string;
|
|
57
|
+
500: string;
|
|
58
|
+
600: string;
|
|
59
|
+
700: string;
|
|
60
|
+
800: string;
|
|
61
|
+
900: string;
|
|
62
|
+
};
|
|
63
|
+
yellow: {
|
|
64
|
+
50: string;
|
|
65
|
+
100: string;
|
|
66
|
+
200: string;
|
|
67
|
+
300: string;
|
|
68
|
+
400: string;
|
|
69
|
+
500: string;
|
|
70
|
+
600: string;
|
|
71
|
+
700: string;
|
|
72
|
+
800: string;
|
|
73
|
+
900: string;
|
|
74
|
+
};
|
|
75
|
+
green: {
|
|
76
|
+
50: string;
|
|
77
|
+
100: string;
|
|
78
|
+
200: string;
|
|
79
|
+
300: string;
|
|
80
|
+
400: string;
|
|
81
|
+
500: string;
|
|
82
|
+
600: string;
|
|
83
|
+
700: string;
|
|
84
|
+
800: string;
|
|
85
|
+
900: string;
|
|
86
|
+
};
|
|
87
|
+
transparent: string;
|
|
88
|
+
current: string;
|
|
89
|
+
black: string;
|
|
90
|
+
white: string;
|
|
91
|
+
whiteAlpha: {
|
|
92
|
+
50: string;
|
|
93
|
+
100: string;
|
|
94
|
+
200: string;
|
|
95
|
+
300: string;
|
|
96
|
+
400: string;
|
|
97
|
+
500: string;
|
|
98
|
+
600: string;
|
|
99
|
+
700: string;
|
|
100
|
+
800: string;
|
|
101
|
+
900: string;
|
|
102
|
+
};
|
|
103
|
+
blackAlpha: {
|
|
104
|
+
50: string;
|
|
105
|
+
100: string;
|
|
106
|
+
200: string;
|
|
107
|
+
300: string;
|
|
108
|
+
400: string;
|
|
109
|
+
500: string;
|
|
110
|
+
600: string;
|
|
111
|
+
700: string;
|
|
112
|
+
800: string;
|
|
113
|
+
900: string;
|
|
114
|
+
};
|
|
115
|
+
gray: {
|
|
116
|
+
50: string;
|
|
117
|
+
100: string;
|
|
118
|
+
200: string;
|
|
119
|
+
300: string;
|
|
120
|
+
400: string;
|
|
121
|
+
500: string;
|
|
122
|
+
600: string;
|
|
123
|
+
700: string;
|
|
124
|
+
800: string;
|
|
125
|
+
900: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
semanticTokens: {
|
|
129
|
+
text: {
|
|
130
|
+
onLight: string;
|
|
131
|
+
onLightSubtle: string;
|
|
132
|
+
onDark: string;
|
|
133
|
+
headline: string;
|
|
134
|
+
};
|
|
135
|
+
background: {
|
|
136
|
+
light: string;
|
|
137
|
+
gray: string;
|
|
138
|
+
info: string;
|
|
139
|
+
error: string;
|
|
140
|
+
warning: string;
|
|
141
|
+
success: string;
|
|
142
|
+
};
|
|
143
|
+
border: {
|
|
144
|
+
default: string;
|
|
145
|
+
dark: string;
|
|
146
|
+
info: string;
|
|
147
|
+
error: string;
|
|
148
|
+
warning: string;
|
|
149
|
+
success: string;
|
|
150
|
+
};
|
|
151
|
+
button: {
|
|
152
|
+
primaryDefault: string;
|
|
153
|
+
primaryHover: string;
|
|
154
|
+
primaryActive: string;
|
|
155
|
+
secondaryDefault: string;
|
|
156
|
+
secondaryHover: string;
|
|
157
|
+
secondaryActive: string;
|
|
158
|
+
tertiaryDefault: string;
|
|
159
|
+
tertiaryHover: string;
|
|
160
|
+
tertiaryActive: string;
|
|
161
|
+
ghostDefault: string;
|
|
162
|
+
ghostHover: string;
|
|
163
|
+
ghostActive: string;
|
|
164
|
+
};
|
|
165
|
+
link: {
|
|
166
|
+
onLight: string;
|
|
167
|
+
};
|
|
168
|
+
icon: {
|
|
169
|
+
onLight: string;
|
|
170
|
+
onDark: string;
|
|
171
|
+
active: string;
|
|
172
|
+
success: string;
|
|
173
|
+
warning: string;
|
|
174
|
+
error: string;
|
|
175
|
+
};
|
|
176
|
+
divider: {
|
|
177
|
+
onLight: string;
|
|
178
|
+
};
|
|
179
|
+
status: {
|
|
180
|
+
open: string;
|
|
181
|
+
confirmed: string;
|
|
182
|
+
success: string;
|
|
183
|
+
warning: string;
|
|
184
|
+
action: string;
|
|
185
|
+
negative: string;
|
|
186
|
+
error: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export default colors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@televet/kibble-ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"description": "Kibble Design System by Televet",
|
|
5
5
|
"author": "TeleVet",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -11,10 +11,16 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "react-scripts test",
|
|
13
13
|
"eject": "react-scripts eject",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"build:lib": "npx rollup -c",
|
|
15
|
+
"fix:js": "npx eslint --fix ./src/",
|
|
16
|
+
"lint:js": "npx eslint ./src/",
|
|
17
|
+
"lint:style": "npx stylelint ./src/",
|
|
18
|
+
"fix:style": "npx stylelint ./src/ --fix",
|
|
16
19
|
"start": "start-storybook -p 6006 && npx rollup -c --watch",
|
|
17
|
-
"build": "build-storybook -o docs
|
|
20
|
+
"build:docs": "build-storybook -o docs",
|
|
21
|
+
"build": "npm run build:docs && npm run build:lib",
|
|
22
|
+
"start:localDev": "npx rollup -c --watch",
|
|
23
|
+
"prepare": "husky install"
|
|
18
24
|
},
|
|
19
25
|
"browserslist": {
|
|
20
26
|
"production": [
|
|
@@ -39,8 +45,8 @@
|
|
|
39
45
|
"@babel/preset-react": "^7.14.5",
|
|
40
46
|
"@babel/runtime": "^7.15.3",
|
|
41
47
|
"@chakra-ui/storybook-addon": "^1.0.3",
|
|
42
|
-
"@emotion/react": "^11.
|
|
43
|
-
"@emotion/styled": "^11.
|
|
48
|
+
"@emotion/react": "^11.8.1",
|
|
49
|
+
"@emotion/styled": "^11.8.1",
|
|
44
50
|
"@rollup/plugin-babel": "^5.3.0",
|
|
45
51
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
46
52
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
@@ -48,19 +54,13 @@
|
|
|
48
54
|
"@storybook/addon-docs": "^6.4.19",
|
|
49
55
|
"@storybook/addon-essentials": "6.4.19",
|
|
50
56
|
"@storybook/addon-links": "6.4.17",
|
|
51
|
-
"@storybook/addons": "^6.4.22",
|
|
52
57
|
"@storybook/node-logger": "6.4.19",
|
|
53
58
|
"@storybook/preset-create-react-app": "^3.2.0",
|
|
54
59
|
"@storybook/react": "^6.3.8",
|
|
55
|
-
"@storybook/theming": "^6.4.22",
|
|
56
60
|
"@testing-library/jest-dom": "^5.14.1",
|
|
57
61
|
"@testing-library/react": "^12.0.0",
|
|
58
62
|
"@testing-library/react-hooks": "^7.0.2",
|
|
59
63
|
"@testing-library/user-event": "^13.2.1",
|
|
60
|
-
"@types/jest": "^27.4.1",
|
|
61
|
-
"@types/node": "^17.0.21",
|
|
62
|
-
"@types/react": "^17.0.40",
|
|
63
|
-
"@types/react-dom": "^17.0.13",
|
|
64
64
|
"@types/styled-components": "^5.1.24",
|
|
65
65
|
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
|
66
66
|
"@typescript-eslint/parser": "^4.29.0",
|
|
@@ -100,16 +100,27 @@
|
|
|
100
100
|
"rollup-plugin-typescript2": "^0.27.1",
|
|
101
101
|
"stylelint": "^13.13.1",
|
|
102
102
|
"stylelint-config-standard": "^22.0.0",
|
|
103
|
-
"stylelint-order": "^4.1.0"
|
|
103
|
+
"stylelint-order": "^4.1.0"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@types/jest": "^27.4.1",
|
|
107
|
+
"@types/node": "^17.0.21",
|
|
108
|
+
"@types/react": "^17.0.40",
|
|
109
|
+
"@types/react-dom": "^17.0.13",
|
|
110
|
+
"@chakra-ui/icons": "^1.1.7",
|
|
111
|
+
"@chakra-ui/react": "^1.8.6",
|
|
112
|
+
"@chakra-ui/theme-tools": "^1.3.6",
|
|
104
113
|
"react": "^16.13.1",
|
|
105
114
|
"react-dom": "^16.13.1",
|
|
115
|
+
"styled-components": "^5.3.3",
|
|
106
116
|
"typescript": "^4.6.2"
|
|
107
117
|
},
|
|
108
118
|
"peerDependencies": {
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"react-dom": ">=16.13.1",
|
|
119
|
+
"@chakra-ui/react": "^1.8.6",
|
|
120
|
+
"styled-components": ">=5.0.0",
|
|
112
121
|
"react-hook-form": ">=5.7.0",
|
|
113
|
-
"
|
|
122
|
+
"prop-types": ">=15.0.0",
|
|
123
|
+
"react": "^16.13.1",
|
|
124
|
+
"react-dom": "^16.13.1"
|
|
114
125
|
}
|
|
115
126
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|