@televet/kibble-ui 0.1.0-beta.19 → 0.1.0-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.
@@ -1,6 +1,4 @@
1
- export declare const baseColors: IBaseColors;
2
- export declare const semanticTokens: ISemanticTokens;
3
- interface IBaseColors {
1
+ interface IPallette {
4
2
  transparent: string;
5
3
  current: string;
6
4
  black: string;
@@ -129,50 +127,54 @@ interface IBaseColors {
129
127
  900: string;
130
128
  };
131
129
  }
132
- export interface ISemanticTokens {
130
+ interface ISemanticTokens {
133
131
  text: {
134
132
  onLight: string;
135
- linkOnLight: string;
136
133
  onLightSubtle: string;
137
134
  onDark: string;
138
135
  headline: string;
139
- placeholder: string;
140
- success: string;
141
- warning: string;
142
- error: string;
143
136
  };
144
137
  background: {
145
138
  light: string;
146
- grayLight: string;
147
- grayDark: string;
148
- tealLight: string;
139
+ gray: string;
140
+ info: string;
141
+ error: string;
142
+ warning: string;
143
+ success: string;
144
+ };
145
+ border: {
146
+ default: string;
149
147
  dark: string;
150
- table: string;
151
- overlay: string;
152
148
  info: string;
153
149
  error: string;
154
150
  warning: string;
155
151
  success: string;
156
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
+ };
157
170
  icon: {
158
171
  onLight: string;
159
- onLightSubtle: string;
160
172
  onDark: string;
161
- inactive: string;
162
173
  active: string;
163
174
  success: string;
164
175
  warning: string;
165
176
  error: string;
166
177
  };
167
- border: {
168
- default: string;
169
- dark: string;
170
- focus: string;
171
- info: string;
172
- error: string;
173
- warning: string;
174
- success: string;
175
- };
176
178
  divider: {
177
179
  onLight: string;
178
180
  };
@@ -184,14 +186,8 @@ export interface ISemanticTokens {
184
186
  action: string;
185
187
  negative: string;
186
188
  error: string;
187
- archived: string;
188
- closed: string;
189
- };
190
- brand: {
191
- teal: string;
192
- red: string;
193
189
  };
194
190
  }
195
- export declare type TColors = IBaseColors & ISemanticTokens;
191
+ export declare type TColors = IPallette & ISemanticTokens;
196
192
  declare const colors: TColors;
197
193
  export default colors;
@@ -1,19 +1,17 @@
1
- import { ISemanticTokens, TColors } from './foundations/colors';
2
- import { Tblur } from './foundations/blur';
3
- import { Tbreakpoints } from './foundations/breakpoints';
4
- import { Tborders } from './foundations/borders';
5
- import { TRadii } from './foundations/radii';
6
- import { TShadows } from './foundations/shadows';
7
- import { TSpace } from './foundations/space';
8
- import { TSizes } from './foundations/sizes';
9
- import { TTransition } from './foundations/transition';
10
- import { TFonts } from './foundations/fonts';
11
- import { TFontSizes } from './foundations/fontSizes';
12
- import { TFontWeights } from './foundations/fontWeights';
13
- import { TLineHeights } from './foundations/lineHeights';
14
- import { TZIndices } from './foundations/zIndeces';
15
- import { TPalette } from './foundations/palette';
16
- import { TGlobalStyles } from './global';
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';
17
15
  declare const theme: ITheme;
18
16
  export interface ITheme {
19
17
  blur: Tblur;
@@ -30,10 +28,5 @@ export interface ITheme {
30
28
  space: TSpace;
31
29
  transition: TTransition;
32
30
  zIndices: TZIndices;
33
- palette: TPalette;
34
- semanticTokens: ISemanticTokens;
35
- styles: TGlobalStyles;
36
- initialColorMode: string;
37
- useSystemColorMode: boolean;
38
31
  }
39
32
  export default theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
- "version": "0.1.0-beta.19",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "Kibble Design System by Televet",
5
5
  "author": "TeleVet",
6
6
  "main": "build/index.js",
@@ -45,8 +45,8 @@
45
45
  "@babel/preset-react": "^7.14.5",
46
46
  "@babel/runtime": "^7.15.3",
47
47
  "@chakra-ui/storybook-addon": "^1.0.3",
48
- "@emotion/react": "^11.4.0",
49
- "@emotion/styled": "^11.3.0",
48
+ "@emotion/react": "^11.8.1",
49
+ "@emotion/styled": "^11.8.1",
50
50
  "@rollup/plugin-babel": "^5.3.0",
51
51
  "@rollup/plugin-commonjs": "^20.0.0",
52
52
  "@rollup/plugin-node-resolve": "^13.0.4",
@@ -100,7 +100,9 @@
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": {
104
106
  "@types/jest": "^27.4.1",
105
107
  "@types/node": "^17.0.21",
106
108
  "@types/react": "^17.0.40",
@@ -115,10 +117,6 @@
115
117
  },
116
118
  "peerDependencies": {
117
119
  "@chakra-ui/react": "^1.8.6",
118
- "@chakra-ui/icons": "^1.1.7",
119
- "@emotion/react": "^11.4.0",
120
- "@emotion/styled": "^11.3.0",
121
- "@chakra-ui/theme-tools": "^1.3.6",
122
120
  "styled-components": ">=5.0.0",
123
121
  "react-hook-form": ">=5.7.0",
124
122
  "prop-types": ">=15.0.0",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const KInput: () => JSX.Element;
3
- export default KInput;
@@ -1,3 +0,0 @@
1
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- declare const Input: ComponentStyleConfig;
3
- export default Input;
@@ -1,3 +0,0 @@
1
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- declare const Popover: ComponentStyleConfig;
3
- export default Popover;
@@ -1,3 +0,0 @@
1
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- declare const Select: ComponentStyleConfig;
3
- export default Select;
@@ -1,8 +0,0 @@
1
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- declare const components: TComponents;
3
- export declare type TComponents = {
4
- Input: ComponentStyleConfig;
5
- Popover: ComponentStyleConfig;
6
- Select: ComponentStyleConfig;
7
- };
8
- export default components;
@@ -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,197 +0,0 @@
1
- export declare const baseColors: IBaseColors;
2
- export declare const semanticTokens: ISemanticTokens;
3
- interface IBaseColors {
4
- transparent: string;
5
- current: string;
6
- black: string;
7
- white: string;
8
- televet: {
9
- 100: string;
10
- };
11
- whiteAlpha: {
12
- 50: string;
13
- 100: string;
14
- 200: string;
15
- 300: string;
16
- 400: string;
17
- 500: string;
18
- 600: string;
19
- 700: string;
20
- 800: string;
21
- 900: string;
22
- };
23
- blackAlpha: {
24
- 50: string;
25
- 100: string;
26
- 200: string;
27
- 300: string;
28
- 400: string;
29
- 500: string;
30
- 600: string;
31
- 700: string;
32
- 800: string;
33
- 900: string;
34
- };
35
- gray: {
36
- 50: string;
37
- 100: string;
38
- 200: string;
39
- 300: string;
40
- 400: string;
41
- 500: string;
42
- 600: string;
43
- 700: string;
44
- 800: string;
45
- 900: string;
46
- };
47
- red: {
48
- 50: string;
49
- 100: string;
50
- 200: string;
51
- 300: string;
52
- 400: string;
53
- 500: string;
54
- 600: string;
55
- 700: string;
56
- 800: string;
57
- 900: string;
58
- };
59
- orange: {
60
- 50: string;
61
- 100: string;
62
- 200: string;
63
- 300: string;
64
- 400: string;
65
- 500: string;
66
- 600: string;
67
- 700: string;
68
- 800: string;
69
- 900: string;
70
- };
71
- yellow: {
72
- 50: string;
73
- 100: string;
74
- 200: string;
75
- 300: string;
76
- 400: string;
77
- 500: string;
78
- 600: string;
79
- 700: string;
80
- 800: string;
81
- 900: string;
82
- };
83
- green: {
84
- 50: string;
85
- 100: string;
86
- 200: string;
87
- 300: string;
88
- 400: string;
89
- 500: string;
90
- 600: string;
91
- 700: string;
92
- 800: string;
93
- 900: string;
94
- };
95
- teal: {
96
- 50: string;
97
- 100: string;
98
- 200: string;
99
- 300: string;
100
- 400: string;
101
- 500: string;
102
- 600: string;
103
- 700: string;
104
- 800: string;
105
- 900: string;
106
- };
107
- blue: {
108
- 50: string;
109
- 100: string;
110
- 200: string;
111
- 300: string;
112
- 400: string;
113
- 500: string;
114
- 600: string;
115
- 700: string;
116
- 800: string;
117
- 900: string;
118
- };
119
- comet: {
120
- 50: string;
121
- 100: string;
122
- 200: string;
123
- 300: string;
124
- 400: string;
125
- 500: string;
126
- 600: string;
127
- 700: string;
128
- 800: string;
129
- 900: string;
130
- };
131
- }
132
- export interface ISemanticTokens {
133
- text: {
134
- onLight: string;
135
- linkOnLight: string;
136
- onLightSubtle: string;
137
- onDark: string;
138
- headline: string;
139
- placeholder: string;
140
- success: string;
141
- warning: string;
142
- error: string;
143
- };
144
- background: {
145
- light: string;
146
- grayLight: string;
147
- grayDark: string;
148
- tealLight: string;
149
- dark: string;
150
- table: string;
151
- overlay: string;
152
- info: string;
153
- error: string;
154
- warning: string;
155
- success: string;
156
- };
157
- icon: {
158
- onLight: string;
159
- onLightSubtle: string;
160
- onDark: string;
161
- inactive: string;
162
- active: string;
163
- success: string;
164
- warning: string;
165
- error: string;
166
- };
167
- border: {
168
- default: string;
169
- dark: string;
170
- focus: string;
171
- info: string;
172
- error: string;
173
- warning: string;
174
- success: 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
- archived: string;
188
- closed: string;
189
- };
190
- brand: {
191
- teal: string;
192
- red: string;
193
- };
194
- }
195
- export declare type TColors = IBaseColors & ISemanticTokens;
196
- declare const colors: TColors;
197
- 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,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,23 +0,0 @@
1
- declare const palette: TPalette;
2
- export declare type TPalette = {
3
- primaryLightest: string;
4
- primaryLight: string;
5
- primary: string;
6
- primaryDark: string;
7
- error: string;
8
- errorLight: string;
9
- errorSecondary: string;
10
- errorSecondaryDark: string;
11
- grayWhite: string;
12
- graySecondary: string;
13
- success: string;
14
- grayLightest: string;
15
- grayLight: string;
16
- grayDark: string;
17
- grayDarker: string;
18
- grayDarkest: string;
19
- warning: string;
20
- white: string;
21
- black: string;
22
- };
23
- export default palette;
@@ -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,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;