@televet/kibble-ui 1.3.2-release.0 → 1.3.2-release.1
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.model.d.ts +5 -0
- package/build/components/Button/button.records.d.ts +2 -0
- package/build/components/DataDisplay/Badge/index.d.ts +1 -0
- package/build/components/DataDisplay/Code/index.d.ts +1 -0
- package/build/components/DataDisplay/Divider/index.d.ts +1 -0
- package/build/components/DataDisplay/Kbd/index.d.ts +1 -0
- package/build/components/DataDisplay/List/index.d.ts +1 -0
- package/build/components/DataDisplay/Tag/index.d.ts +1 -0
- package/build/components/Disclosure/Accordion/index.d.ts +1 -0
- package/build/components/Disclosure/Tabs/index.d.ts +1 -0
- package/build/components/Disclosure/VisuallyHidden/index.d.ts +1 -0
- package/build/components/Disclosure/index.d.ts +3 -0
- package/build/components/Drawer/drawer.records.d.ts +13 -0
- package/build/components/Feedback/Alert/index.d.ts +1 -0
- package/build/components/Feedback/CircularProgress/index.d.ts +1 -0
- package/build/components/Feedback/Progress/index.d.ts +1 -0
- package/build/components/Feedback/Skeleton/index.d.ts +1 -0
- package/build/components/Feedback/Spinner/index.d.ts +1 -0
- package/build/components/Feedback/Toast/index.d.ts +1 -0
- package/build/components/Feedback/index.d.ts +6 -0
- package/build/components/Forms/FormControl/formControl.component.d.ts +4 -4
- package/build/components/Icon/icon.config.d.ts +3 -0
- package/build/components/Logo/logo.records.d.ts +33 -0
- package/build/components/Media/Icon/icon.component.d.ts +8 -0
- package/build/components/Media/Icon/icon.records.d.ts +3 -0
- package/build/components/Media/Icon/icon.types.d.ts +3 -0
- package/build/components/Media/Icon/index.d.ts +2 -0
- package/build/components/Media/Logo/index.d.ts +2 -0
- package/build/components/Media/Logo/logo.component.d.ts +14 -0
- package/build/components/Media/Logo/logo.config.d.ts +6 -0
- package/build/components/Media/Logo/logo.types.d.ts +3 -0
- package/build/components/Media/Logo/logos.d.ts +22 -0
- package/build/components/Navigation/Breadcrumb/index.d.ts +1 -0
- package/build/components/Navigation/Link/index.d.ts +1 -0
- package/build/components/Navigation/LinkOverlay/index.d.ts +1 -0
- package/build/components/Navigation/index.d.ts +3 -0
- package/build/components/Overlay/AlertDialog/index.d.ts +1 -0
- package/build/components/Overlay/Menu/index.d.ts +1 -0
- package/build/components/TextInput/textInput.component.d.ts +3 -1
- package/build/components/Textarea/textarea.types.d.ts +2 -0
- package/build/components/Tooltip/tooltip.model.d.ts +4 -0
- package/build/components/Tooltip/tooltip.records.d.ts +9 -0
- package/build/components/Typography/Heading/heading.records.d.ts +2 -0
- package/build/components/Typography/Text/text.records.d.ts +2 -0
- package/build/index.js +5 -4
- package/build/index.js.map +1 -1
- package/build/shared/interfaces/SelectOption.d.ts +4 -0
- package/build/theme/theme.model.d.ts +37 -0
- package/build/theme/theme.record.d.ts +2 -0
- package/build/theme/tokens/colors/color.model.d.ts +96 -0
- package/build/theme/tokens/colors/color.type.d.ts +102 -0
- package/build/theme/tokens/colors.d.ts +82 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as tokens from './tokens';
|
|
2
|
+
import { ButtonStyleType, HeadingStyleConfig, TooltipStyleConfig } from '../components';
|
|
3
|
+
import { ComponentStyleConfig } from '@chakra-ui/theme';
|
|
4
|
+
import { Colors } from './tokens/colors/color.type';
|
|
5
|
+
export interface ThemeProps {
|
|
6
|
+
theme: Theme;
|
|
7
|
+
}
|
|
8
|
+
export interface Theme {
|
|
9
|
+
blur: tokens.Blur;
|
|
10
|
+
borders: tokens.Borders;
|
|
11
|
+
colors: Colors;
|
|
12
|
+
radii: tokens.Radii;
|
|
13
|
+
shadows: tokens.Shadows;
|
|
14
|
+
sizes: tokens.Sizes;
|
|
15
|
+
fonts: tokens.Fonts;
|
|
16
|
+
fontSizes: tokens.FontSizes;
|
|
17
|
+
fontWeights: tokens.FontWeights;
|
|
18
|
+
lineHeights: tokens.LineHeights;
|
|
19
|
+
space: tokens.Space;
|
|
20
|
+
transition: tokens.Transition;
|
|
21
|
+
zIndices: tokens.ZIndices;
|
|
22
|
+
semanticTokens: tokens.SemanticTokens;
|
|
23
|
+
initialColorMode: string;
|
|
24
|
+
useSystemColorMode: boolean;
|
|
25
|
+
config: {
|
|
26
|
+
initialColorMode: string;
|
|
27
|
+
useSystemColorMode: boolean;
|
|
28
|
+
};
|
|
29
|
+
components: {
|
|
30
|
+
Drawer: ComponentStyleConfig;
|
|
31
|
+
Textarea: ComponentStyleConfig;
|
|
32
|
+
Heading: HeadingStyleConfig;
|
|
33
|
+
Text: ComponentStyleConfig;
|
|
34
|
+
Button: ButtonStyleType;
|
|
35
|
+
Tooltip: TooltipStyleConfig;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { IconColor } from '../../../components';
|
|
2
|
+
import { AdaptiveColorMap, ColorValueMap } from './color.type';
|
|
3
|
+
export interface BaseColors {
|
|
4
|
+
transparent: string;
|
|
5
|
+
current: string;
|
|
6
|
+
black: string;
|
|
7
|
+
white: string;
|
|
8
|
+
whiteAlpha: ColorValueMap;
|
|
9
|
+
blackAlpha: ColorValueMap;
|
|
10
|
+
gray: ColorValueMap;
|
|
11
|
+
red: ColorValueMap;
|
|
12
|
+
orange: ColorValueMap;
|
|
13
|
+
yellow: ColorValueMap;
|
|
14
|
+
green: ColorValueMap;
|
|
15
|
+
teal: ColorValueMap;
|
|
16
|
+
blue: ColorValueMap;
|
|
17
|
+
comet: ColorValueMap;
|
|
18
|
+
}
|
|
19
|
+
export interface SemanticTokens {
|
|
20
|
+
text: {
|
|
21
|
+
light: {
|
|
22
|
+
default: string;
|
|
23
|
+
headline: string;
|
|
24
|
+
subtle: string;
|
|
25
|
+
link: string;
|
|
26
|
+
placeholder: string;
|
|
27
|
+
success: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
error: string;
|
|
30
|
+
};
|
|
31
|
+
dark: {
|
|
32
|
+
default: string;
|
|
33
|
+
headline: string;
|
|
34
|
+
subtle: string;
|
|
35
|
+
link: string;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
success: string;
|
|
38
|
+
warning: string;
|
|
39
|
+
error: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
background: {
|
|
43
|
+
light: string;
|
|
44
|
+
grayLight: string;
|
|
45
|
+
grayDark: string;
|
|
46
|
+
tealLight: string;
|
|
47
|
+
dark: string;
|
|
48
|
+
table: string;
|
|
49
|
+
overlay: string;
|
|
50
|
+
info: string;
|
|
51
|
+
error: string;
|
|
52
|
+
warning: string;
|
|
53
|
+
success: string;
|
|
54
|
+
};
|
|
55
|
+
border: {
|
|
56
|
+
light: {
|
|
57
|
+
default: string;
|
|
58
|
+
heavy: string;
|
|
59
|
+
focus: string;
|
|
60
|
+
success: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
error: string;
|
|
63
|
+
info: string;
|
|
64
|
+
};
|
|
65
|
+
dark: {
|
|
66
|
+
default: string;
|
|
67
|
+
heavy: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
divider: {
|
|
71
|
+
light: {
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
dark: {
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
status: {
|
|
79
|
+
open: string;
|
|
80
|
+
confirmed: string;
|
|
81
|
+
success: string;
|
|
82
|
+
warning: string;
|
|
83
|
+
action: string;
|
|
84
|
+
negative: string;
|
|
85
|
+
error: string;
|
|
86
|
+
archived: string;
|
|
87
|
+
closed: string;
|
|
88
|
+
};
|
|
89
|
+
general: {
|
|
90
|
+
brand: string;
|
|
91
|
+
error: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export interface AdaptiveColorTokens {
|
|
95
|
+
icon: AdaptiveColorMap<IconColor>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ColorMode } from '@chakra-ui/react';
|
|
2
|
+
import { IconColor } from '../../../components';
|
|
3
|
+
export declare type ColorValue = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
4
|
+
export declare type ColorValueMap = Record<ColorValue, string>;
|
|
5
|
+
export declare type AdaptiveColor = Record<ColorMode, string>;
|
|
6
|
+
export declare type AdaptiveColorMap<T extends keyof any> = Record<ColorMode, Record<T, string>>;
|
|
7
|
+
export declare type AdaptiveColorConfig<K extends keyof any, T extends keyof any> = Record<K, AdaptiveColorMap<T>>;
|
|
8
|
+
export interface BaseColors {
|
|
9
|
+
transparent: string;
|
|
10
|
+
current: string;
|
|
11
|
+
black: string;
|
|
12
|
+
white: string;
|
|
13
|
+
whiteAlpha: ColorValueMap;
|
|
14
|
+
blackAlpha: ColorValueMap;
|
|
15
|
+
gray: ColorValueMap;
|
|
16
|
+
red: ColorValueMap;
|
|
17
|
+
orange: ColorValueMap;
|
|
18
|
+
yellow: ColorValueMap;
|
|
19
|
+
green: ColorValueMap;
|
|
20
|
+
teal: ColorValueMap;
|
|
21
|
+
blue: ColorValueMap;
|
|
22
|
+
comet: ColorValueMap;
|
|
23
|
+
}
|
|
24
|
+
export interface SemanticTokens {
|
|
25
|
+
text: {
|
|
26
|
+
light: {
|
|
27
|
+
default: string;
|
|
28
|
+
headline: string;
|
|
29
|
+
subtle: string;
|
|
30
|
+
link: string;
|
|
31
|
+
placeholder: string;
|
|
32
|
+
success: string;
|
|
33
|
+
warning: string;
|
|
34
|
+
error: string;
|
|
35
|
+
};
|
|
36
|
+
dark: {
|
|
37
|
+
default: string;
|
|
38
|
+
headline: string;
|
|
39
|
+
subtle: string;
|
|
40
|
+
link: string;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
success: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
error: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
background: {
|
|
48
|
+
light: string;
|
|
49
|
+
grayLight: string;
|
|
50
|
+
grayDark: string;
|
|
51
|
+
tealLight: string;
|
|
52
|
+
dark: string;
|
|
53
|
+
table: string;
|
|
54
|
+
overlay: string;
|
|
55
|
+
info: string;
|
|
56
|
+
error: string;
|
|
57
|
+
warning: string;
|
|
58
|
+
success: string;
|
|
59
|
+
};
|
|
60
|
+
border: {
|
|
61
|
+
light: {
|
|
62
|
+
default: string;
|
|
63
|
+
heavy: string;
|
|
64
|
+
focus: string;
|
|
65
|
+
success: string;
|
|
66
|
+
warning: string;
|
|
67
|
+
error: string;
|
|
68
|
+
info: string;
|
|
69
|
+
};
|
|
70
|
+
dark: {
|
|
71
|
+
default: string;
|
|
72
|
+
heavy: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
divider: {
|
|
76
|
+
light: {
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
dark: {
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
status: {
|
|
84
|
+
open: string;
|
|
85
|
+
confirmed: string;
|
|
86
|
+
success: string;
|
|
87
|
+
warning: string;
|
|
88
|
+
action: string;
|
|
89
|
+
negative: string;
|
|
90
|
+
error: string;
|
|
91
|
+
archived: string;
|
|
92
|
+
closed: string;
|
|
93
|
+
};
|
|
94
|
+
general: {
|
|
95
|
+
brand: string;
|
|
96
|
+
error: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export interface AdaptiveColorTokens {
|
|
100
|
+
icon: AdaptiveColorMap<IconColor>;
|
|
101
|
+
}
|
|
102
|
+
export declare type Colors = BaseColors & SemanticTokens & AdaptiveColorTokens;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IconColor } from '../../components/Icon/icon.types';
|
|
2
|
+
import { ColorMode } from '@chakra-ui/react';
|
|
3
|
+
export declare const baseColors: IBaseColors;
|
|
4
|
+
export declare const semanticTokens: ISemanticTokens;
|
|
5
|
+
interface IBaseColors {
|
|
6
|
+
transparent: string;
|
|
7
|
+
current: string;
|
|
8
|
+
black: string;
|
|
9
|
+
white: string;
|
|
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;
|
|
20
|
+
}
|
|
21
|
+
export interface ISemanticTokens {
|
|
22
|
+
text: {
|
|
23
|
+
onLight: string;
|
|
24
|
+
linkOnLight: string;
|
|
25
|
+
onLightSubtle: string;
|
|
26
|
+
onDark: string;
|
|
27
|
+
headline: string;
|
|
28
|
+
placeholder: string;
|
|
29
|
+
success: string;
|
|
30
|
+
warning: string;
|
|
31
|
+
error: string;
|
|
32
|
+
};
|
|
33
|
+
background: {
|
|
34
|
+
light: string;
|
|
35
|
+
grayLight: string;
|
|
36
|
+
grayDark: string;
|
|
37
|
+
tealLight: string;
|
|
38
|
+
dark: string;
|
|
39
|
+
table: string;
|
|
40
|
+
overlay: string;
|
|
41
|
+
info: string;
|
|
42
|
+
error: string;
|
|
43
|
+
warning: string;
|
|
44
|
+
success: string;
|
|
45
|
+
};
|
|
46
|
+
icon: AdaptiveColorMap<IconColor>;
|
|
47
|
+
border: {
|
|
48
|
+
default: string;
|
|
49
|
+
dark: string;
|
|
50
|
+
focus: string;
|
|
51
|
+
info: string;
|
|
52
|
+
error: string;
|
|
53
|
+
warning: string;
|
|
54
|
+
success: string;
|
|
55
|
+
};
|
|
56
|
+
divider: {
|
|
57
|
+
onLight: string;
|
|
58
|
+
};
|
|
59
|
+
status: {
|
|
60
|
+
open: string;
|
|
61
|
+
confirmed: string;
|
|
62
|
+
success: string;
|
|
63
|
+
warning: string;
|
|
64
|
+
action: string;
|
|
65
|
+
negative: string;
|
|
66
|
+
error: string;
|
|
67
|
+
archived: string;
|
|
68
|
+
closed: string;
|
|
69
|
+
};
|
|
70
|
+
general: {
|
|
71
|
+
brand: string;
|
|
72
|
+
error: string;
|
|
73
|
+
};
|
|
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>;
|
|
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>>;
|
|
80
|
+
export declare type TColors = IBaseColors & ISemanticTokens;
|
|
81
|
+
declare const colors: TColors;
|
|
82
|
+
export default colors;
|