@televet/kibble-ui 0.1.0-beta.2 → 0.1.0-beta.21
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 +37 -230
- package/build/components/Banner/index.d.ts +3 -0
- package/build/components/Input/index.d.ts +3 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +541 -173
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +16 -15
- package/build/theme/{colors.d.ts → tokens/colors.d.ts} +32 -31
- package/package.json +17 -28
- package/build/index.es.js +0 -13886
- package/build/index.es.js.map +0 -1
- package/build/providers/ThemeProvider/ThemeProvider.d.ts +0 -5
- package/build/theme/breakpoints.d.ts +0 -9
- package/build/theme/theme.d.ts +0 -3
- package/build/theme/tokens/colors/colors.d.ts +0 -190
- package/build/theme/tokens/fonts/fonts.d.ts +0 -6
- /package/build/theme/{blur.d.ts → tokens/blur.d.ts} +0 -0
- /package/build/theme/{borders.d.ts → tokens/borders.d.ts} +0 -0
- /package/build/theme/{fontSizes.d.ts → tokens/fontSizes.d.ts} +0 -0
- /package/build/theme/{fontWeights.d.ts → tokens/fontWeights.d.ts} +0 -0
- /package/build/theme/{fonts.d.ts → tokens/fonts.d.ts} +0 -0
- /package/build/theme/{letterSpacings.d.ts → tokens/letterSpacings.d.ts} +0 -0
- /package/build/theme/{lineHeights.d.ts → tokens/lineHeights.d.ts} +0 -0
- /package/build/theme/{radii.d.ts → tokens/radii.d.ts} +0 -0
- /package/build/theme/{shadows.d.ts → tokens/shadows.d.ts} +0 -0
- /package/build/theme/{sizes.d.ts → tokens/sizes.d.ts} +0 -0
- /package/build/theme/{space.d.ts → tokens/space.d.ts} +0 -0
- /package/build/theme/{transition.d.ts → tokens/transition.d.ts} +0 -0
- /package/build/theme/{zIndeces.d.ts → tokens/zIndeces.d.ts} +0 -0
package/build/theme/index.d.ts
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { TColors } from './colors';
|
|
2
|
-
import { Tblur } from './blur';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { TZIndices } from './zIndeces';
|
|
1
|
+
import { ISemanticTokens, TColors } from './tokens/colors';
|
|
2
|
+
import { Tblur } from './tokens/blur';
|
|
3
|
+
import { Tborders } from './tokens/borders';
|
|
4
|
+
import { TRadii } from './tokens/radii';
|
|
5
|
+
import { TShadows } from './tokens/shadows';
|
|
6
|
+
import { TSpace } from './tokens/space';
|
|
7
|
+
import { TSizes } from './tokens/sizes';
|
|
8
|
+
import { TTransition } from './tokens/transition';
|
|
9
|
+
import { TFonts } from './tokens/fonts';
|
|
10
|
+
import { TFontSizes } from './tokens/fontSizes';
|
|
11
|
+
import { TFontWeights } from './tokens/fontWeights';
|
|
12
|
+
import { TLineHeights } from './tokens/lineHeights';
|
|
13
|
+
import { TZIndices } from './tokens/zIndeces';
|
|
15
14
|
declare const theme: ITheme;
|
|
16
15
|
export interface ITheme {
|
|
17
16
|
blur: Tblur;
|
|
18
17
|
borders: Tborders;
|
|
19
|
-
breakpoints: Tbreakpoints;
|
|
20
18
|
colors: TColors;
|
|
21
19
|
radii: TRadii;
|
|
22
20
|
shadows: TShadows;
|
|
@@ -28,5 +26,8 @@ export interface ITheme {
|
|
|
28
26
|
space: TSpace;
|
|
29
27
|
transition: TTransition;
|
|
30
28
|
zIndices: TZIndices;
|
|
29
|
+
semanticTokens: ISemanticTokens;
|
|
30
|
+
initialColorMode: string;
|
|
31
|
+
useSystemColorMode: boolean;
|
|
31
32
|
}
|
|
32
33
|
export default theme;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const baseColors: IBaseColors;
|
|
2
|
+
export declare const semanticTokens: ISemanticTokens;
|
|
3
|
+
interface IBaseColors {
|
|
2
4
|
transparent: string;
|
|
3
5
|
current: string;
|
|
4
6
|
black: string;
|
|
5
7
|
white: string;
|
|
6
|
-
televet: {
|
|
7
|
-
100: string;
|
|
8
|
-
};
|
|
9
8
|
whiteAlpha: {
|
|
10
9
|
50: string;
|
|
11
10
|
100: string;
|
|
@@ -127,54 +126,50 @@ interface IPallette {
|
|
|
127
126
|
900: string;
|
|
128
127
|
};
|
|
129
128
|
}
|
|
130
|
-
interface ISemanticTokens {
|
|
129
|
+
export interface ISemanticTokens {
|
|
131
130
|
text: {
|
|
132
131
|
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;
|
|
136
140
|
};
|
|
137
141
|
background: {
|
|
138
142
|
light: string;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
warning: string;
|
|
143
|
-
success: string;
|
|
144
|
-
};
|
|
145
|
-
border: {
|
|
146
|
-
default: string;
|
|
143
|
+
grayLight: string;
|
|
144
|
+
grayDark: string;
|
|
145
|
+
tealLight: string;
|
|
147
146
|
dark: string;
|
|
147
|
+
table: string;
|
|
148
|
+
overlay: string;
|
|
148
149
|
info: string;
|
|
149
150
|
error: string;
|
|
150
151
|
warning: string;
|
|
151
152
|
success: string;
|
|
152
153
|
};
|
|
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
|
-
};
|
|
170
154
|
icon: {
|
|
171
155
|
onLight: string;
|
|
156
|
+
onLightSubtle: string;
|
|
172
157
|
onDark: string;
|
|
158
|
+
inactive: string;
|
|
173
159
|
active: string;
|
|
174
160
|
success: string;
|
|
175
161
|
warning: string;
|
|
176
162
|
error: string;
|
|
177
163
|
};
|
|
164
|
+
border: {
|
|
165
|
+
default: string;
|
|
166
|
+
dark: string;
|
|
167
|
+
focus: string;
|
|
168
|
+
info: string;
|
|
169
|
+
error: string;
|
|
170
|
+
warning: string;
|
|
171
|
+
success: string;
|
|
172
|
+
};
|
|
178
173
|
divider: {
|
|
179
174
|
onLight: string;
|
|
180
175
|
};
|
|
@@ -186,8 +181,14 @@ interface ISemanticTokens {
|
|
|
186
181
|
action: string;
|
|
187
182
|
negative: string;
|
|
188
183
|
error: string;
|
|
184
|
+
archived: string;
|
|
185
|
+
closed: string;
|
|
186
|
+
};
|
|
187
|
+
general: {
|
|
188
|
+
brand: string;
|
|
189
|
+
error: string;
|
|
189
190
|
};
|
|
190
191
|
}
|
|
191
|
-
export declare type TColors =
|
|
192
|
+
export declare type TColors = IBaseColors & ISemanticTokens;
|
|
192
193
|
declare const colors: TColors;
|
|
193
194
|
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.21",
|
|
4
4
|
"description": "Kibble Design System by Televet",
|
|
5
5
|
"author": "TeleVet",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -11,16 +11,10 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "react-scripts test",
|
|
13
13
|
"eject": "react-scripts eject",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"lint:js": "npx eslint ./src/",
|
|
17
|
-
"lint:style": "npx stylelint ./src/",
|
|
18
|
-
"fix:style": "npx stylelint ./src/ --fix",
|
|
14
|
+
"fix": "npx eslint --fix ./src/ && npx stylelint ./src/ --fix",
|
|
15
|
+
"lint": "npx eslint ./src/ && npx stylelint ./src/",
|
|
19
16
|
"start": "start-storybook -p 6006 && npx rollup -c --watch",
|
|
20
|
-
"build
|
|
21
|
-
"build": "npm run build:docs && npm run build:lib",
|
|
22
|
-
"start:localDev": "npx rollup -c --watch",
|
|
23
|
-
"prepare": "husky install"
|
|
17
|
+
"build": "build-storybook -o docs && npx rollup -c"
|
|
24
18
|
},
|
|
25
19
|
"browserslist": {
|
|
26
20
|
"production": [
|
|
@@ -45,8 +39,8 @@
|
|
|
45
39
|
"@babel/preset-react": "^7.14.5",
|
|
46
40
|
"@babel/runtime": "^7.15.3",
|
|
47
41
|
"@chakra-ui/storybook-addon": "^1.0.3",
|
|
48
|
-
"@emotion/react": "^11.
|
|
49
|
-
"@emotion/styled": "^11.
|
|
42
|
+
"@emotion/react": "^11.4.0",
|
|
43
|
+
"@emotion/styled": "^11.3.0",
|
|
50
44
|
"@rollup/plugin-babel": "^5.3.0",
|
|
51
45
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
52
46
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
@@ -54,13 +48,19 @@
|
|
|
54
48
|
"@storybook/addon-docs": "^6.4.19",
|
|
55
49
|
"@storybook/addon-essentials": "6.4.19",
|
|
56
50
|
"@storybook/addon-links": "6.4.17",
|
|
51
|
+
"@storybook/addons": "^6.4.22",
|
|
57
52
|
"@storybook/node-logger": "6.4.19",
|
|
58
53
|
"@storybook/preset-create-react-app": "^3.2.0",
|
|
59
54
|
"@storybook/react": "^6.3.8",
|
|
55
|
+
"@storybook/theming": "^6.4.22",
|
|
60
56
|
"@testing-library/jest-dom": "^5.14.1",
|
|
61
57
|
"@testing-library/react": "^12.0.0",
|
|
62
58
|
"@testing-library/react-hooks": "^7.0.2",
|
|
63
59
|
"@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,27 +100,16 @@
|
|
|
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"
|
|
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",
|
|
103
|
+
"stylelint-order": "^4.1.0",
|
|
113
104
|
"react": "^16.13.1",
|
|
114
105
|
"react-dom": "^16.13.1",
|
|
115
|
-
"styled-components": "^5.3.3",
|
|
116
106
|
"typescript": "^4.6.2"
|
|
117
107
|
},
|
|
118
108
|
"peerDependencies": {
|
|
119
|
-
"@chakra-ui/react": "^1.8.6",
|
|
120
|
-
"styled-components": ">=5.0.0",
|
|
121
|
-
"react-hook-form": ">=5.7.0",
|
|
122
109
|
"prop-types": ">=15.0.0",
|
|
123
|
-
"react": "
|
|
124
|
-
"react-dom": "
|
|
110
|
+
"react": ">=16.13.1",
|
|
111
|
+
"react-dom": ">=16.13.1",
|
|
112
|
+
"react-hook-form": ">=5.7.0",
|
|
113
|
+
"styled-components": ">=5.0.0"
|
|
125
114
|
}
|
|
126
115
|
}
|