@televet/kibble-ui 1.2.1 → 1.2.2-beta.2p81ym7.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.
@@ -0,0 +1,37 @@
1
+ import * as tokens from './tokens';
2
+ import { ButtonStyleConfig, HeadingStyleConfig, TooltipStyleConfig } from '../components';
3
+ import { ComponentStyleConfig } from '@chakra-ui/theme';
4
+ import { FontWeight } from './tokens';
5
+ export interface ThemeProps {
6
+ theme: Theme;
7
+ }
8
+ export interface Theme {
9
+ blur: tokens.Blur;
10
+ borders: tokens.Borders;
11
+ colors: tokens.Colors;
12
+ radii: tokens.Radii;
13
+ shadows: tokens.Shadows;
14
+ sizes: tokens.Sizes;
15
+ fonts: tokens.Fonts;
16
+ fontSizes: tokens.FontSizes;
17
+ fontWeights: Record<FontWeight, number>;
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: ButtonStyleConfig;
35
+ Tooltip: TooltipStyleConfig;
36
+ };
37
+ }
@@ -0,0 +1,2 @@
1
+ import { ITheme } from './theme.model';
2
+ export declare const theme: ITheme;
@@ -1,14 +1,13 @@
1
1
  import * as tokens from './tokens';
2
2
  import { ButtonStyleType, HeadingStyleConfig, TooltipStyleConfig } from '../components';
3
3
  import { ComponentStyleConfig } from '@chakra-ui/theme';
4
- import { Colors } from './tokens/colors/color.types';
5
4
  export interface ThemeProps {
6
5
  theme: Theme;
7
6
  }
8
7
  export interface Theme {
9
8
  blur: tokens.Blur;
10
9
  borders: tokens.Borders;
11
- colors: Colors;
10
+ colors: tokens.Colors;
12
11
  radii: tokens.Radii;
13
12
  shadows: tokens.Shadows;
14
13
  sizes: tokens.Sizes;
@@ -0,0 +1,64 @@
1
+ import { IconColor } from '../../../components';
2
+ import { AdaptiveColorMap, ColorValueMap, SemanticTextToken } 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: Record<SemanticTextToken, string>;
21
+ background: {
22
+ light: string;
23
+ grayLight: string;
24
+ grayDark: string;
25
+ tealLight: string;
26
+ dark: string;
27
+ table: string;
28
+ overlay: string;
29
+ info: string;
30
+ error: string;
31
+ warning: string;
32
+ success: string;
33
+ };
34
+ border: {
35
+ default: string;
36
+ dark: string;
37
+ focus: string;
38
+ info: string;
39
+ error: string;
40
+ warning: string;
41
+ success: string;
42
+ };
43
+ divider: {
44
+ onLight: string;
45
+ };
46
+ status: {
47
+ open: string;
48
+ confirmed: string;
49
+ success: string;
50
+ warning: string;
51
+ action: string;
52
+ negative: string;
53
+ error: string;
54
+ archived: string;
55
+ closed: string;
56
+ };
57
+ general: {
58
+ brand: string;
59
+ error: string;
60
+ };
61
+ }
62
+ export interface AdaptiveColorTokens {
63
+ icon: AdaptiveColorMap<IconColor>;
64
+ }
@@ -0,0 +1,9 @@
1
+ import { ColorMode } from '@chakra-ui/react';
2
+ import { AdaptiveColorTokens, BaseColors, SemanticTokens } from './color.model';
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 declare type SemanticTextToken = 'onLight' | 'linkOnLight' | 'onLightSubtle' | 'onDark' | 'headline' | 'placeholder' | 'success' | 'warning' | 'error';
9
+ export declare type Colors = BaseColors & SemanticTokens & AdaptiveColorTokens;
@@ -1,5 +1,5 @@
1
1
  import { ColorMode } from '@chakra-ui/react';
2
- import { IconColor } from '../../../components';
2
+ import { IconColor, TextColor } from '../../../components';
3
3
  export declare type ColorValue = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
4
4
  export declare type ColorValueMap = Record<ColorValue, string>;
5
5
  export declare type AdaptiveColor = Record<ColorMode, string>;
@@ -23,28 +23,6 @@ export interface CoreColors {
23
23
  purple: ColorValueMap;
24
24
  }
25
25
  export interface SemanticColors {
26
- text: {
27
- light: {
28
- default: string;
29
- headline: string;
30
- subtle: string;
31
- link: string;
32
- placeholder: string;
33
- success: string;
34
- warning: string;
35
- error: string;
36
- };
37
- dark: {
38
- default: string;
39
- headline: string;
40
- subtle: string;
41
- link: string;
42
- placeholder: string;
43
- success: string;
44
- warning: string;
45
- error: string;
46
- };
47
- };
48
26
  background: {
49
27
  light: string;
50
28
  grayLight: string;
@@ -101,5 +79,6 @@ export interface SemanticColors {
101
79
  }
102
80
  export interface AdaptiveColors {
103
81
  icon: AdaptiveColorMap<IconColor>;
82
+ text: AdaptiveColorMap<TextColor>;
104
83
  }
105
84
  export declare type Colors = CoreColors & SemanticColors & AdaptiveColors;
@@ -1,12 +1,3 @@
1
- export declare const fontWeights: FontWeights;
2
- export declare type FontWeights = {
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
- };
1
+ export declare const fontWeights: Record<FontWeight, number>;
2
+ export declare type FontWeight = 'hairline' | 'thin' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
3
+ export declare type FontWeights = Record<FontWeight, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-beta.2p81ym7.2",
4
4
  "description": "Kibble Design System by Televet",
5
5
  "author": "TeleVet",
6
6
  "main": "build/index.js",