@televet/kibble-ui 1.0.11-beta.0 → 1.0.11
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/components/Button/button.component.d.ts +12 -0
- package/build/components/Button/button.model.d.ts +5 -0
- package/build/components/Button/button.records.d.ts +2 -0
- package/build/components/Button/button.types.d.ts +5 -0
- package/build/components/Button/index.d.ts +4 -5
- package/build/components/Icon/icon.types.d.ts +1 -1
- package/build/components/Logo/index.d.ts +35 -0
- package/build/components/Logo/logos.d.ts +21 -0
- package/build/components/Textarea/index.d.ts +3 -0
- package/build/components/Textarea/textarea.component.d.ts +13 -0
- package/build/components/Textarea/textarea.config.d.ts +2 -0
- package/build/components/Textarea/textarea.types.d.ts +2 -0
- package/build/components/Tooltip/tooltip.component.d.ts +8 -0
- package/build/components/Tooltip/tooltip.model.d.ts +4 -0
- package/build/hooks/useAdaptiveColor.d.ts +2 -2
- package/build/hooks/useAdaptiveColorMap.d.ts +2 -0
- package/build/index.d.ts +4 -3
- package/build/index.js +2129 -10
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +7 -2
- package/build/theme/tokens/colors.d.ts +14 -120
- package/build/utils/strings.d.ts +1 -0
- package/package.json +3 -1
- package/build/components/Banner/index.d.ts +0 -3
- package/build/components/Input/index.d.ts +0 -3
package/build/theme/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import { TFontSizes } from './tokens/fontSizes';
|
|
|
12
12
|
import { TFontWeights } from './tokens/fontWeights';
|
|
13
13
|
import { TLineHeights } from './tokens/lineHeights';
|
|
14
14
|
import { TZIndices } from './tokens/zIndeces';
|
|
15
|
+
import { ButtonStyleConfig } from '../components/Button';
|
|
16
|
+
import { TooltipStyleConfig } from '../components/Tooltip/tooltip.model';
|
|
15
17
|
declare const theme: ITheme;
|
|
16
18
|
export interface ITheme {
|
|
17
19
|
blur: Tblur;
|
|
@@ -35,9 +37,12 @@ export interface ITheme {
|
|
|
35
37
|
useSystemColorMode: boolean;
|
|
36
38
|
};
|
|
37
39
|
components: {
|
|
38
|
-
|
|
39
|
-
Heading: ComponentStyleConfig;
|
|
40
|
+
Button: ButtonStyleConfig;
|
|
40
41
|
Drawer: ComponentStyleConfig;
|
|
42
|
+
Textarea: ComponentStyleConfig;
|
|
43
|
+
Heading: ComponentStyleConfig;
|
|
44
|
+
Text: ComponentStyleConfig;
|
|
45
|
+
Tooltip: TooltipStyleConfig;
|
|
41
46
|
};
|
|
42
47
|
}
|
|
43
48
|
export default theme;
|
|
@@ -7,126 +7,16 @@ interface IBaseColors {
|
|
|
7
7
|
current: string;
|
|
8
8
|
black: string;
|
|
9
9
|
white: string;
|
|
10
|
-
whiteAlpha:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
900: string;
|
|
21
|
-
};
|
|
22
|
-
blackAlpha: {
|
|
23
|
-
50: string;
|
|
24
|
-
100: string;
|
|
25
|
-
200: string;
|
|
26
|
-
300: string;
|
|
27
|
-
400: string;
|
|
28
|
-
500: string;
|
|
29
|
-
600: string;
|
|
30
|
-
700: string;
|
|
31
|
-
800: string;
|
|
32
|
-
900: string;
|
|
33
|
-
};
|
|
34
|
-
gray: {
|
|
35
|
-
50: string;
|
|
36
|
-
100: string;
|
|
37
|
-
200: string;
|
|
38
|
-
300: string;
|
|
39
|
-
400: string;
|
|
40
|
-
500: string;
|
|
41
|
-
600: string;
|
|
42
|
-
700: string;
|
|
43
|
-
800: string;
|
|
44
|
-
900: string;
|
|
45
|
-
};
|
|
46
|
-
red: {
|
|
47
|
-
50: string;
|
|
48
|
-
100: string;
|
|
49
|
-
200: string;
|
|
50
|
-
300: string;
|
|
51
|
-
400: string;
|
|
52
|
-
500: string;
|
|
53
|
-
600: string;
|
|
54
|
-
700: string;
|
|
55
|
-
800: string;
|
|
56
|
-
900: string;
|
|
57
|
-
};
|
|
58
|
-
orange: {
|
|
59
|
-
50: string;
|
|
60
|
-
100: string;
|
|
61
|
-
200: string;
|
|
62
|
-
300: string;
|
|
63
|
-
400: string;
|
|
64
|
-
500: string;
|
|
65
|
-
600: string;
|
|
66
|
-
700: string;
|
|
67
|
-
800: string;
|
|
68
|
-
900: string;
|
|
69
|
-
};
|
|
70
|
-
yellow: {
|
|
71
|
-
50: string;
|
|
72
|
-
100: string;
|
|
73
|
-
200: string;
|
|
74
|
-
300: string;
|
|
75
|
-
400: string;
|
|
76
|
-
500: string;
|
|
77
|
-
600: string;
|
|
78
|
-
700: string;
|
|
79
|
-
800: string;
|
|
80
|
-
900: string;
|
|
81
|
-
};
|
|
82
|
-
green: {
|
|
83
|
-
50: string;
|
|
84
|
-
100: string;
|
|
85
|
-
200: string;
|
|
86
|
-
300: string;
|
|
87
|
-
400: string;
|
|
88
|
-
500: string;
|
|
89
|
-
600: string;
|
|
90
|
-
700: string;
|
|
91
|
-
800: string;
|
|
92
|
-
900: string;
|
|
93
|
-
};
|
|
94
|
-
teal: {
|
|
95
|
-
50: string;
|
|
96
|
-
100: string;
|
|
97
|
-
200: string;
|
|
98
|
-
300: string;
|
|
99
|
-
400: string;
|
|
100
|
-
500: string;
|
|
101
|
-
600: string;
|
|
102
|
-
700: string;
|
|
103
|
-
800: string;
|
|
104
|
-
900: string;
|
|
105
|
-
};
|
|
106
|
-
blue: {
|
|
107
|
-
50: string;
|
|
108
|
-
100: string;
|
|
109
|
-
200: string;
|
|
110
|
-
300: string;
|
|
111
|
-
400: string;
|
|
112
|
-
500: string;
|
|
113
|
-
600: string;
|
|
114
|
-
700: string;
|
|
115
|
-
800: string;
|
|
116
|
-
900: string;
|
|
117
|
-
};
|
|
118
|
-
comet: {
|
|
119
|
-
50: string;
|
|
120
|
-
100: string;
|
|
121
|
-
200: string;
|
|
122
|
-
300: string;
|
|
123
|
-
400: string;
|
|
124
|
-
500: string;
|
|
125
|
-
600: string;
|
|
126
|
-
700: string;
|
|
127
|
-
800: string;
|
|
128
|
-
900: string;
|
|
129
|
-
};
|
|
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;
|
|
130
20
|
}
|
|
131
21
|
export interface ISemanticTokens {
|
|
132
22
|
text: {
|
|
@@ -182,7 +72,11 @@ export interface ISemanticTokens {
|
|
|
182
72
|
error: string;
|
|
183
73
|
};
|
|
184
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>;
|
|
185
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>>;
|
|
186
80
|
export declare type TColors = IBaseColors & ISemanticTokens;
|
|
187
81
|
declare const colors: TColors;
|
|
188
82
|
export default colors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const camelCaseToLabel: (s: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@televet/kibble-ui",
|
|
3
|
-
"version": "1.0.11
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Kibble Design System by Televet",
|
|
5
5
|
"author": "TeleVet",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@rollup/plugin-babel": "^5.3.0",
|
|
50
50
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
51
51
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
52
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
52
53
|
"@storybook/addon-actions": "6.4.1",
|
|
53
54
|
"@storybook/addon-docs": "^6.4.19",
|
|
54
55
|
"@storybook/addon-essentials": "6.4.19",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"@storybook/preset-create-react-app": "^3.2.0",
|
|
59
60
|
"@storybook/react": "^6.3.8",
|
|
60
61
|
"@storybook/theming": "^6.4.22",
|
|
62
|
+
"@svgr/rollup": "^6.2.1",
|
|
61
63
|
"@testing-library/jest-dom": "^5.14.1",
|
|
62
64
|
"@testing-library/react": "^12.0.0",
|
|
63
65
|
"@testing-library/react-hooks": "^7.0.2",
|