@televet/kibble-ui 0.1.0-beta.8 → 0.1.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.
@@ -1,3 +1,2 @@
1
- import { ThemeConfig } from '@chakra-ui/react';
2
- declare const theme: ThemeConfig;
1
+ declare const theme: import("@chakra-ui/utils").Dict<any>;
3
2
  export default theme;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0",
4
4
  "description": "Kibble Design System by Televet",
5
5
  "author": "TeleVet",
6
6
  "main": "build/index.js",
7
- "types": "build/index.d.ts",
7
+ "module": "build/index.es.js",
8
8
  "files": [
9
9
  "build"
10
10
  ],
@@ -16,10 +16,8 @@
16
16
  "lint:js": "npx eslint ./src/",
17
17
  "lint:style": "npx stylelint ./src/",
18
18
  "fix:style": "npx stylelint ./src/ --fix",
19
- "start": "start-storybook -p 6006 && npx rollup -c --watch",
20
- "build:docs": "build-storybook -o docs",
21
- "build": "npm run build:docs && npm run build:lib",
22
- "start:localDev": "npx rollup -c --watch",
19
+ "start:docs": "start-storybook -p 6006 -s public",
20
+ "build:docs": "build-storybook -s public",
23
21
  "prepare": "husky install"
24
22
  },
25
23
  "browserslist": {
@@ -44,7 +42,13 @@
44
42
  "@babel/preset-env": "^7.15.0",
45
43
  "@babel/preset-react": "^7.14.5",
46
44
  "@babel/runtime": "^7.15.3",
45
+ "@chakra-ui/cli": "^1.9.0",
46
+ "@chakra-ui/icons": "^1.1.7",
47
+ "@chakra-ui/react": "^1.8.6",
48
+ "@chakra-ui/theme-tools": "^1.3.6",
47
49
  "@chakra-ui/storybook-addon": "^1.0.3",
50
+ "@emotion/react": "^11.8.1",
51
+ "@emotion/styled": "^11.8.1",
48
52
  "@rollup/plugin-babel": "^5.3.0",
49
53
  "@rollup/plugin-commonjs": "^20.0.0",
50
54
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -59,7 +63,6 @@
59
63
  "@testing-library/react": "^12.0.0",
60
64
  "@testing-library/react-hooks": "^7.0.2",
61
65
  "@testing-library/user-event": "^13.2.1",
62
- "@types/styled-components": "^5.1.24",
63
66
  "@typescript-eslint/eslint-plugin": "^4.29.0",
64
67
  "@typescript-eslint/parser": "^4.29.0",
65
68
  "autoprefixer": "^9.8.6",
@@ -86,38 +89,32 @@
86
89
  "recursive-copy": "^2.0.13",
87
90
  "rimraf": "^3.0.2",
88
91
  "rollup": "^2.56.3",
89
- "rollup-plugin-commonjs": "^10.1.0",
90
92
  "rollup-plugin-eslint": "^7.0.0",
91
93
  "rollup-plugin-filesize": "^9.1.1",
92
94
  "rollup-plugin-includepaths": "^0.2.4",
93
- "rollup-plugin-node-resolve": "^5.2.0",
94
95
  "rollup-plugin-peer-deps-external": "^2.2.4",
95
96
  "rollup-plugin-postcss": "^3.1.8",
96
97
  "rollup-plugin-stylelint": "^1.0.0",
97
98
  "rollup-plugin-terser": "^7.0.2",
98
- "rollup-plugin-typescript2": "^0.27.1",
99
+ "rollup-plugin-node-resolve": "^5.2.0",
100
+ "rollup-plugin-commonjs": "^10.1.0",
99
101
  "stylelint": "^13.13.1",
100
102
  "stylelint-config-standard": "^22.0.0",
101
103
  "stylelint-order": "^4.1.0",
104
+ "rollup-plugin-typescript2": "^0.27.1"
105
+ },
106
+ "dependencies": {
102
107
  "@types/jest": "^27.4.1",
103
108
  "@types/node": "^17.0.21",
104
109
  "@types/react": "^17.0.40",
105
110
  "@types/react-dom": "^17.0.13",
106
- "@chakra-ui/icons": "^1.1.7",
107
- "@chakra-ui/react": "^1.8.6",
108
- "@chakra-ui/theme-tools": "^1.3.6",
109
- "react": "^16.13.1",
110
- "react-dom": "^16.13.1",
111
- "styled-components": "^5.3.3",
111
+ "react": ">=16.8.0",
112
+ "react-dom": ">=16.8.0",
112
113
  "typescript": "^4.6.2"
113
114
  },
114
115
  "peerDependencies": {
115
- "@chakra-ui/react": "^1.8.6",
116
- "@chakra-ui/icons": "^1.1.7",
117
- "styled-components": ">=5.0.0",
118
- "react-hook-form": ">=5.7.0",
119
- "prop-types": ">=15.0.0",
120
- "react": "^16.13.1",
121
- "react-dom": "^16.13.1"
116
+ "react": ">=16.8.0",
117
+ "react-dom": ">=16.8.0",
118
+ "prop-types": ">=15.0.0"
122
119
  }
123
120
  }
@@ -1,5 +0,0 @@
1
- import { ReactNode } from 'react';
2
- declare const Button: ({ children }: {
3
- children: ReactNode;
4
- }) => JSX.Element;
5
- export default Button;
@@ -1,5 +0,0 @@
1
- import { ReactNode } from 'react';
2
- declare const KibbleThemeProvider: ({ children }: {
3
- children: ReactNode;
4
- }) => JSX.Element;
5
- export default KibbleThemeProvider;
@@ -1,12 +0,0 @@
1
- declare const blur: Tblur;
2
- export declare type Tblur = {
3
- none: number;
4
- sm: string;
5
- base: string;
6
- md: string;
7
- lg: string;
8
- xl: string;
9
- '2xl': string;
10
- '3xl': string;
11
- };
12
- export default blur;
@@ -1,15 +0,0 @@
1
- declare const borders: {
2
- none: number;
3
- '1px': string;
4
- '2px': string;
5
- '4px': string;
6
- '8px': string;
7
- };
8
- export declare type Tborders = {
9
- none: number;
10
- '1px': string;
11
- '2px': string;
12
- '4px': string;
13
- '8px': string;
14
- };
15
- export default borders;
@@ -1,9 +0,0 @@
1
- declare const breakpoints: Tbreakpoints;
2
- export declare type Tbreakpoints = {
3
- sm: string;
4
- md: string;
5
- lg: string;
6
- xl: string;
7
- '2xl': string;
8
- };
9
- export default breakpoints;
@@ -1,210 +0,0 @@
1
- interface IPallette {
2
- transparent: string;
3
- current: string;
4
- black: string;
5
- white: string;
6
- televet: {
7
- 100: string;
8
- };
9
- whiteAlpha: {
10
- 50: string;
11
- 100: string;
12
- 200: string;
13
- 300: string;
14
- 400: string;
15
- 500: string;
16
- 600: string;
17
- 700: string;
18
- 800: string;
19
- 900: string;
20
- };
21
- blackAlpha: {
22
- 50: string;
23
- 100: string;
24
- 200: string;
25
- 300: string;
26
- 400: string;
27
- 500: string;
28
- 600: string;
29
- 700: string;
30
- 800: string;
31
- 900: string;
32
- };
33
- gray: {
34
- 50: string;
35
- 100: string;
36
- 200: string;
37
- 300: string;
38
- 400: string;
39
- 500: string;
40
- 600: string;
41
- 700: string;
42
- 800: string;
43
- 900: string;
44
- };
45
- red: {
46
- 50: string;
47
- 100: string;
48
- 200: string;
49
- 300: string;
50
- 400: string;
51
- 500: string;
52
- 600: string;
53
- 700: string;
54
- 800: string;
55
- 900: string;
56
- };
57
- orange: {
58
- 50: string;
59
- 100: string;
60
- 200: string;
61
- 300: string;
62
- 400: string;
63
- 500: string;
64
- 600: string;
65
- 700: string;
66
- 800: string;
67
- 900: string;
68
- };
69
- yellow: {
70
- 50: string;
71
- 100: string;
72
- 200: string;
73
- 300: string;
74
- 400: string;
75
- 500: string;
76
- 600: string;
77
- 700: string;
78
- 800: string;
79
- 900: string;
80
- };
81
- green: {
82
- 50: string;
83
- 100: string;
84
- 200: string;
85
- 300: string;
86
- 400: string;
87
- 500: string;
88
- 600: string;
89
- 700: string;
90
- 800: string;
91
- 900: string;
92
- };
93
- teal: {
94
- 50: string;
95
- 100: string;
96
- 200: string;
97
- 300: string;
98
- 400: string;
99
- 500: string;
100
- 600: string;
101
- 700: string;
102
- 800: string;
103
- 900: string;
104
- };
105
- blue: {
106
- 50: string;
107
- 100: string;
108
- 200: string;
109
- 300: string;
110
- 400: string;
111
- 500: string;
112
- 600: string;
113
- 700: string;
114
- 800: string;
115
- 900: string;
116
- };
117
- comet: {
118
- 50: string;
119
- 100: string;
120
- 200: string;
121
- 300: string;
122
- 400: string;
123
- 500: string;
124
- 600: string;
125
- 700: string;
126
- 800: string;
127
- 900: string;
128
- };
129
- }
130
- interface ISemanticTokens {
131
- primaryLightest: string;
132
- primaryLight: string;
133
- primary: string;
134
- primaryDark: string;
135
- error: string;
136
- errorLight: string;
137
- errorSecondary: string;
138
- errorSecondaryDark: string;
139
- grayWhite: string;
140
- graySecondary: string;
141
- success: string;
142
- grayLightest: string;
143
- grayLight: string;
144
- grayDark: string;
145
- grayDarker: string;
146
- grayDarkest: string;
147
- warning: string;
148
- text: {
149
- onLight: string;
150
- onLightSubtle: string;
151
- onDark: string;
152
- headline: string;
153
- };
154
- background: {
155
- light: string;
156
- gray: string;
157
- info: string;
158
- error: string;
159
- warning: string;
160
- success: string;
161
- };
162
- border: {
163
- default: string;
164
- dark: string;
165
- info: string;
166
- error: string;
167
- warning: string;
168
- success: string;
169
- };
170
- button: {
171
- primaryDefault: string;
172
- primaryHover: string;
173
- primaryActive: string;
174
- secondaryDefault: string;
175
- secondaryHover: string;
176
- secondaryActive: string;
177
- tertiaryDefault: string;
178
- tertiaryHover: string;
179
- tertiaryActive: string;
180
- ghostDefault: string;
181
- ghostHover: string;
182
- ghostActive: string;
183
- };
184
- link: {
185
- onLight: string;
186
- };
187
- icon: {
188
- onLight: string;
189
- onDark: string;
190
- active: string;
191
- success: string;
192
- warning: string;
193
- error: string;
194
- };
195
- divider: {
196
- onLight: string;
197
- };
198
- status: {
199
- open: string;
200
- confirmed: string;
201
- success: string;
202
- warning: string;
203
- action: string;
204
- negative: string;
205
- error: string;
206
- };
207
- }
208
- export declare type TColors = IPallette & ISemanticTokens;
209
- declare const colors: TColors;
210
- export default colors;
@@ -1,17 +0,0 @@
1
- declare const fontSizes: TFontSizes;
2
- export declare type TFontSizes = {
3
- xs: string;
4
- sm: string;
5
- md: string;
6
- lg: string;
7
- xl: string;
8
- '2xl': string;
9
- '3xl': string;
10
- '4xl': string;
11
- '5xl': string;
12
- '6xl': string;
13
- '7xl': string;
14
- '8xl': string;
15
- '9xl': string;
16
- };
17
- export default fontSizes;
@@ -1,13 +0,0 @@
1
- declare const fontWeights: TFontWeights;
2
- export declare type TFontWeights = {
3
- hairline: number;
4
- thin: number;
5
- light: number;
6
- normal: number;
7
- medium: number;
8
- semibold: number;
9
- bold: number;
10
- extrabold: number;
11
- black: number;
12
- };
13
- export default fontWeights;
@@ -1,7 +0,0 @@
1
- declare const fonts: TFonts;
2
- export declare type TFonts = {
3
- heading: string;
4
- body: string;
5
- mono: string;
6
- };
7
- export default fonts;
@@ -1,32 +0,0 @@
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';
15
- declare const theme: ITheme;
16
- export interface ITheme {
17
- blur: Tblur;
18
- borders: Tborders;
19
- breakpoints: Tbreakpoints;
20
- colors: TColors;
21
- radii: TRadii;
22
- shadows: TShadows;
23
- sizes: TSizes;
24
- fonts: TFonts;
25
- fontSizes: TFontSizes;
26
- fontWeights: TFontWeights;
27
- lineHeights: TLineHeights;
28
- space: TSpace;
29
- transition: TTransition;
30
- zIndices: TZIndices;
31
- }
32
- export default theme;
@@ -1,17 +0,0 @@
1
- declare const letterSpacings: {
2
- tighter: string;
3
- tight: string;
4
- normal: string;
5
- wide: string;
6
- wider: string;
7
- widest: string;
8
- };
9
- export declare type TLetterSpacings = {
10
- tighter: string;
11
- tight: string;
12
- normal: string;
13
- wide: string;
14
- wider: string;
15
- widest: string;
16
- };
17
- export default letterSpacings;
@@ -1,19 +0,0 @@
1
- declare const lineHeights: TLineHeights;
2
- export declare type TLineHeights = {
3
- normal: string;
4
- none: number;
5
- shorter: number;
6
- short: number;
7
- base: number;
8
- tall: number;
9
- taller: string;
10
- '3': string;
11
- '4': string;
12
- '5': string;
13
- '6': string;
14
- '7': string;
15
- '8': string;
16
- '9': string;
17
- '10': string;
18
- };
19
- export default lineHeights;
@@ -1,13 +0,0 @@
1
- declare const radii: TRadii;
2
- export declare type TRadii = {
3
- none: string;
4
- sm: string;
5
- base: string;
6
- md: string;
7
- lg: string;
8
- xl: string;
9
- '2xl': string;
10
- '3xl': string;
11
- full: string;
12
- };
13
- export default radii;
@@ -1,27 +0,0 @@
1
- declare const shadows: {
2
- xs: string;
3
- sm: string;
4
- base: string;
5
- md: string;
6
- lg: string;
7
- xl: string;
8
- '2xl': string;
9
- outline: string;
10
- inner: string;
11
- none: string;
12
- 'dark-lg': string;
13
- };
14
- export declare type TShadows = {
15
- xs: string;
16
- sm: string;
17
- base: string;
18
- md: string;
19
- lg: string;
20
- xl: string;
21
- '2xl': string;
22
- outline: string;
23
- inner: string;
24
- none: string;
25
- 'dark-lg': string;
26
- };
27
- export default shadows;
@@ -1,27 +0,0 @@
1
- declare const sizes: TSizes;
2
- export declare type TSizes = {
3
- max: string;
4
- min: string;
5
- full: string;
6
- '3xs': string;
7
- '2xs': string;
8
- xs: string;
9
- sm: string;
10
- md: string;
11
- lg: string;
12
- xl: string;
13
- '2xl': string;
14
- '3xl': string;
15
- '4xl': string;
16
- '5xl': string;
17
- '6xl': string;
18
- '7xl': string;
19
- '8xl': string;
20
- container: {
21
- sm: string;
22
- md: string;
23
- lg: string;
24
- xl: string;
25
- };
26
- };
27
- export default sizes;
@@ -1,37 +0,0 @@
1
- declare const space: TSpace;
2
- export declare type TSpace = {
3
- px: string;
4
- 0.5: string;
5
- 1: string;
6
- 1.5: string;
7
- 2: string;
8
- 2.5: string;
9
- 3: string;
10
- 3.5: string;
11
- 4: string;
12
- 5: string;
13
- 6: string;
14
- 7: string;
15
- 8: string;
16
- 9: string;
17
- 10: string;
18
- 12: string;
19
- 14: string;
20
- 16: string;
21
- 20: string;
22
- 24: string;
23
- 28: string;
24
- 32: string;
25
- 36: string;
26
- 40: string;
27
- 44: string;
28
- 48: string;
29
- 52: string;
30
- 56: string;
31
- 60: string;
32
- 64: string;
33
- 72: string;
34
- 80: string;
35
- 96: string;
36
- };
37
- export default space;
@@ -1,6 +0,0 @@
1
- declare const fonts: {
2
- body: string;
3
- heading: string;
4
- mono: string;
5
- };
6
- export default fonts;
@@ -1,28 +0,0 @@
1
- interface ITransitionProperty {
2
- common: string;
3
- colors: string;
4
- dimensions: string;
5
- position: string;
6
- background: string;
7
- }
8
- interface ITransitionTimingFunction {
9
- 'ease-in': string;
10
- 'ease-out': string;
11
- 'ease-in-out': string;
12
- }
13
- interface ITransitionDuration {
14
- 'ultra-fast': string;
15
- faster: string;
16
- fast: string;
17
- normal: string;
18
- slow: string;
19
- slower: string;
20
- 'ultra-slow': string;
21
- }
22
- declare const transition: TTransition;
23
- export declare type TTransition = {
24
- property: ITransitionProperty;
25
- easing: ITransitionTimingFunction;
26
- duration: ITransitionDuration;
27
- };
28
- export default transition;
@@ -1,17 +0,0 @@
1
- declare const zIndices: TZIndices;
2
- export declare type TZIndices = {
3
- hide: number;
4
- auto: string;
5
- base: number;
6
- docked: number;
7
- dropdown: number;
8
- sticky: number;
9
- banner: number;
10
- overlay: number;
11
- modal: number;
12
- popover: number;
13
- skipLink: number;
14
- toast: number;
15
- tooltip: number;
16
- };
17
- export default zIndices;