@televet/kibble-ui 1.0.11 → 1.0.12-beta.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.
Files changed (47) hide show
  1. package/build/components/Button/button.component.d.ts +1 -1
  2. package/build/components/Drawer/drawer.records.d.ts +13 -0
  3. package/build/components/Drawer/index.d.ts +1 -0
  4. package/build/components/Icon/index.d.ts +1 -0
  5. package/build/components/Textarea/index.d.ts +1 -0
  6. package/build/components/Textarea/textarea.component.d.ts +3 -1
  7. package/build/components/Tooltip/index.d.ts +3 -0
  8. package/build/components/Tooltip/tooltip.model.d.ts +1 -1
  9. package/build/components/Tooltip/tooltip.records.d.ts +9 -0
  10. package/build/components/Typography/Heading/heading.component.d.ts +9 -0
  11. package/build/components/Typography/Heading/heading.records.d.ts +2 -0
  12. package/build/components/Typography/Heading/heading.types.d.ts +6 -0
  13. package/build/components/Typography/Heading/index.d.ts +3 -7
  14. package/build/components/Typography/Text/index.d.ts +3 -7
  15. package/build/components/Typography/Text/text.component.d.ts +8 -0
  16. package/build/components/Typography/Text/text.records.d.ts +2 -0
  17. package/build/components/Typography/Text/text.types.d.ts +1 -0
  18. package/build/components/Typography/index.d.ts +2 -0
  19. package/build/components/index.d.ts +7 -0
  20. package/build/hooks/index.d.ts +1 -0
  21. package/build/hooks/useTheme.d.ts +2 -2
  22. package/build/index.d.ts +4 -6
  23. package/build/index.js +651 -1972
  24. package/build/index.js.map +1 -1
  25. package/build/providers/index.d.ts +1 -0
  26. package/build/theme/index.d.ts +2 -48
  27. package/build/theme/theme.model.d.ts +33 -0
  28. package/build/theme/theme.record.d.ts +2 -0
  29. package/build/theme/tokens/blur.d.ts +2 -3
  30. package/build/theme/tokens/borders.d.ts +2 -9
  31. package/build/theme/tokens/colors/color.model.d.ts +74 -0
  32. package/build/theme/tokens/colors/color.record.d.ts +6 -0
  33. package/build/theme/tokens/colors/color.type.d.ts +8 -0
  34. package/build/theme/tokens/colors/index.d.ts +3 -0
  35. package/build/theme/tokens/fontSizes.d.ts +2 -3
  36. package/build/theme/tokens/fontWeights.d.ts +2 -3
  37. package/build/theme/tokens/fonts.d.ts +2 -3
  38. package/build/theme/tokens/index.d.ts +14 -0
  39. package/build/theme/tokens/letterSpacings.d.ts +2 -10
  40. package/build/theme/tokens/lineHeights.d.ts +2 -3
  41. package/build/theme/tokens/radii.d.ts +2 -3
  42. package/build/theme/tokens/shadows.d.ts +2 -15
  43. package/build/theme/tokens/sizes.d.ts +2 -3
  44. package/build/theme/tokens/space.d.ts +2 -3
  45. package/build/theme/tokens/transition.d.ts +9 -9
  46. package/build/theme/tokens/zIndeces.d.ts +2 -3
  47. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export * from './ThemeProvider';
@@ -1,48 +1,2 @@
1
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- import { ISemanticTokens, TColors } from './tokens/colors';
3
- import { Tblur } from './tokens/blur';
4
- import { Tborders } from './tokens/borders';
5
- import { TRadii } from './tokens/radii';
6
- import { TShadows } from './tokens/shadows';
7
- import { TSpace } from './tokens/space';
8
- import { TSizes } from './tokens/sizes';
9
- import { TTransition } from './tokens/transition';
10
- import { TFonts } from './tokens/fonts';
11
- import { TFontSizes } from './tokens/fontSizes';
12
- import { TFontWeights } from './tokens/fontWeights';
13
- import { TLineHeights } from './tokens/lineHeights';
14
- import { TZIndices } from './tokens/zIndeces';
15
- import { ButtonStyleConfig } from '../components/Button';
16
- import { TooltipStyleConfig } from '../components/Tooltip/tooltip.model';
17
- declare const theme: ITheme;
18
- export interface ITheme {
19
- blur: Tblur;
20
- borders: Tborders;
21
- colors: TColors;
22
- radii: TRadii;
23
- shadows: TShadows;
24
- sizes: TSizes;
25
- fonts: TFonts;
26
- fontSizes: TFontSizes;
27
- fontWeights: TFontWeights;
28
- lineHeights: TLineHeights;
29
- space: TSpace;
30
- transition: TTransition;
31
- zIndices: TZIndices;
32
- semanticTokens: ISemanticTokens;
33
- initialColorMode: string;
34
- useSystemColorMode: boolean;
35
- config: {
36
- initialColorMode: string;
37
- useSystemColorMode: boolean;
38
- };
39
- components: {
40
- Button: ButtonStyleConfig;
41
- Drawer: ComponentStyleConfig;
42
- Textarea: ComponentStyleConfig;
43
- Heading: ComponentStyleConfig;
44
- Text: ComponentStyleConfig;
45
- Tooltip: TooltipStyleConfig;
46
- };
47
- }
48
- export default theme;
1
+ export * from './theme.model';
2
+ export * from './theme.record';
@@ -0,0 +1,33 @@
1
+ import { Blur, Borders, Colors, Fonts, FontSizes, FontWeights, LineHeights, Radii, SemanticTokens, Shadows, Sizes, Space, Transition, ZIndices } from './tokens';
2
+ import { ButtonStyleConfig, HeadingStyleConfig, TooltipStyleConfig } from '../components';
3
+ import { ComponentStyleConfig } from '@chakra-ui/theme';
4
+ export interface Theme {
5
+ blur: Blur;
6
+ borders: Borders;
7
+ colors: Colors;
8
+ radii: Radii;
9
+ shadows: Shadows;
10
+ sizes: Sizes;
11
+ fonts: Fonts;
12
+ fontSizes: FontSizes;
13
+ fontWeights: FontWeights;
14
+ lineHeights: LineHeights;
15
+ space: Space;
16
+ transition: Transition;
17
+ zIndices: ZIndices;
18
+ semanticTokens: SemanticTokens;
19
+ initialColorMode: string;
20
+ useSystemColorMode: boolean;
21
+ config: {
22
+ initialColorMode: string;
23
+ useSystemColorMode: boolean;
24
+ };
25
+ components: {
26
+ Button: ButtonStyleConfig;
27
+ Drawer: ComponentStyleConfig;
28
+ Textarea: ComponentStyleConfig;
29
+ Heading: HeadingStyleConfig;
30
+ Text: ComponentStyleConfig;
31
+ Tooltip: TooltipStyleConfig;
32
+ };
33
+ }
@@ -0,0 +1,2 @@
1
+ import { Theme } from './theme.model';
2
+ export declare const TeleVetTheme: Theme;
@@ -1,5 +1,5 @@
1
- declare const blur: Tblur;
2
- export declare type Tblur = {
1
+ export declare const blur: Blur;
2
+ export declare type Blur = {
3
3
  none: number;
4
4
  sm: string;
5
5
  base: string;
@@ -9,4 +9,3 @@ export declare type Tblur = {
9
9
  '2xl': string;
10
10
  '3xl': string;
11
11
  };
12
- export default blur;
@@ -1,15 +1,8 @@
1
- declare const borders: {
1
+ export declare const borders: Borders;
2
+ export declare type Borders = {
2
3
  none: number;
3
4
  '1px': string;
4
5
  '2px': string;
5
6
  '4px': string;
6
7
  '8px': string;
7
8
  };
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;
@@ -0,0 +1,74 @@
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
+ onLight: string;
22
+ linkOnLight: string;
23
+ onLightSubtle: string;
24
+ onDark: string;
25
+ headline: string;
26
+ placeholder: string;
27
+ success: string;
28
+ warning: string;
29
+ error: string;
30
+ };
31
+ background: {
32
+ light: string;
33
+ grayLight: string;
34
+ grayDark: string;
35
+ tealLight: string;
36
+ dark: string;
37
+ table: string;
38
+ overlay: string;
39
+ info: string;
40
+ error: string;
41
+ warning: string;
42
+ success: string;
43
+ };
44
+ border: {
45
+ default: string;
46
+ dark: string;
47
+ focus: string;
48
+ info: string;
49
+ error: string;
50
+ warning: string;
51
+ success: string;
52
+ };
53
+ divider: {
54
+ onLight: string;
55
+ };
56
+ status: {
57
+ open: string;
58
+ confirmed: string;
59
+ success: string;
60
+ warning: string;
61
+ action: string;
62
+ negative: string;
63
+ error: string;
64
+ archived: string;
65
+ closed: string;
66
+ };
67
+ general: {
68
+ brand: string;
69
+ error: string;
70
+ };
71
+ }
72
+ export interface AdaptiveColorTokens {
73
+ icon: AdaptiveColorMap<IconColor>;
74
+ }
@@ -0,0 +1,6 @@
1
+ import { AdaptiveColorTokens, BaseColors, SemanticTokens } from './color.model';
2
+ import { Colors } from './color.type';
3
+ export declare const baseColors: BaseColors;
4
+ export declare const semanticTokens: SemanticTokens;
5
+ export declare const adaptiveColorTokens: AdaptiveColorTokens;
6
+ export declare const colors: Colors;
@@ -0,0 +1,8 @@
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 Colors = BaseColors & SemanticTokens & AdaptiveColorTokens;
@@ -0,0 +1,3 @@
1
+ export * from './color.model';
2
+ export * from './color.record';
3
+ export * from './color.type';
@@ -1,5 +1,5 @@
1
- declare const fontSizes: TFontSizes;
2
- export declare type TFontSizes = {
1
+ export declare const fontSizes: FontSizes;
2
+ export declare type FontSizes = {
3
3
  xs: string;
4
4
  sm: string;
5
5
  md: string;
@@ -14,4 +14,3 @@ export declare type TFontSizes = {
14
14
  '8xl': string;
15
15
  '9xl': string;
16
16
  };
17
- export default fontSizes;
@@ -1,5 +1,5 @@
1
- declare const fontWeights: TFontWeights;
2
- export declare type TFontWeights = {
1
+ export declare const fontWeights: FontWeights;
2
+ export declare type FontWeights = {
3
3
  hairline: number;
4
4
  thin: number;
5
5
  light: number;
@@ -10,4 +10,3 @@ export declare type TFontWeights = {
10
10
  extrabold: number;
11
11
  black: number;
12
12
  };
13
- export default fontWeights;
@@ -1,7 +1,6 @@
1
- declare const fonts: TFonts;
2
- export declare type TFonts = {
1
+ export declare const fonts: Fonts;
2
+ export declare type Fonts = {
3
3
  heading: string;
4
4
  body: string;
5
5
  mono: string;
6
6
  };
7
- export default fonts;
@@ -0,0 +1,14 @@
1
+ export * from './blur';
2
+ export * from './borders';
3
+ export * from './colors';
4
+ export * from './fonts';
5
+ export * from './fontSizes';
6
+ export * from './fontWeights';
7
+ export * from './letterSpacings';
8
+ export * from './lineHeights';
9
+ export * from './radii';
10
+ export * from './shadows';
11
+ export * from './sizes';
12
+ export * from './space';
13
+ export * from './transition';
14
+ export * from './zIndeces';
@@ -1,4 +1,5 @@
1
- declare const letterSpacings: {
1
+ export declare const letterSpacings: LetterSpacings;
2
+ export declare type LetterSpacings = {
2
3
  tighter: string;
3
4
  tight: string;
4
5
  normal: string;
@@ -6,12 +7,3 @@ declare const letterSpacings: {
6
7
  wider: string;
7
8
  widest: string;
8
9
  };
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,5 +1,5 @@
1
- declare const lineHeights: TLineHeights;
2
- export declare type TLineHeights = {
1
+ export declare const lineHeights: LineHeights;
2
+ export declare type LineHeights = {
3
3
  normal: string;
4
4
  none: number;
5
5
  shorter: number;
@@ -16,4 +16,3 @@ export declare type TLineHeights = {
16
16
  '9': string;
17
17
  '10': string;
18
18
  };
19
- export default lineHeights;
@@ -1,5 +1,5 @@
1
- declare const radii: TRadii;
2
- export declare type TRadii = {
1
+ export declare const radii: Radii;
2
+ export declare type Radii = {
3
3
  none: string;
4
4
  sm: string;
5
5
  base: string;
@@ -10,4 +10,3 @@ export declare type TRadii = {
10
10
  '3xl': string;
11
11
  full: string;
12
12
  };
13
- export default radii;
@@ -1,4 +1,5 @@
1
- declare const shadows: {
1
+ export declare const shadows: Shadows;
2
+ export declare type Shadows = {
2
3
  xs: string;
3
4
  sm: string;
4
5
  base: string;
@@ -11,17 +12,3 @@ declare const shadows: {
11
12
  none: string;
12
13
  'dark-lg': string;
13
14
  };
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,5 +1,5 @@
1
- declare const sizes: TSizes;
2
- export declare type TSizes = {
1
+ export declare const sizes: Sizes;
2
+ export declare type Sizes = {
3
3
  max: string;
4
4
  min: string;
5
5
  full: string;
@@ -24,4 +24,3 @@ export declare type TSizes = {
24
24
  xl: string;
25
25
  };
26
26
  };
27
- export default sizes;
@@ -1,5 +1,5 @@
1
- declare const space: TSpace;
2
- export declare type TSpace = {
1
+ export declare const space: Space;
2
+ export declare type Space = {
3
3
  px: string;
4
4
  0.5: string;
5
5
  1: string;
@@ -34,4 +34,3 @@ export declare type TSpace = {
34
34
  80: string;
35
35
  96: string;
36
36
  };
37
- export default space;
@@ -1,16 +1,16 @@
1
- interface ITransitionProperty {
1
+ interface TransitionProperty {
2
2
  common: string;
3
3
  colors: string;
4
4
  dimensions: string;
5
5
  position: string;
6
6
  background: string;
7
7
  }
8
- interface ITransitionTimingFunction {
8
+ interface TransitionTimingFunction {
9
9
  'ease-in': string;
10
10
  'ease-out': string;
11
11
  'ease-in-out': string;
12
12
  }
13
- interface ITransitionDuration {
13
+ interface TransitionDuration {
14
14
  'ultra-fast': string;
15
15
  faster: string;
16
16
  fast: string;
@@ -19,10 +19,10 @@ interface ITransitionDuration {
19
19
  slower: string;
20
20
  'ultra-slow': string;
21
21
  }
22
- declare const transition: TTransition;
23
- export declare type TTransition = {
24
- property: ITransitionProperty;
25
- easing: ITransitionTimingFunction;
26
- duration: ITransitionDuration;
22
+ export declare const transition: Transition;
23
+ export declare type Transition = {
24
+ property: TransitionProperty;
25
+ easing: TransitionTimingFunction;
26
+ duration: TransitionDuration;
27
27
  };
28
- export default transition;
28
+ export {};
@@ -1,5 +1,5 @@
1
- declare const zIndices: TZIndices;
2
- export declare type TZIndices = {
1
+ export declare const zIndices: ZIndices;
2
+ export declare type ZIndices = {
3
3
  hide: number;
4
4
  auto: string;
5
5
  base: number;
@@ -14,4 +14,3 @@ export declare type TZIndices = {
14
14
  toast: number;
15
15
  tooltip: number;
16
16
  };
17
- export default zIndices;
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.12-beta.1",
4
4
  "description": "Kibble Design System by Televet",
5
5
  "author": "TeleVet",
6
6
  "main": "build/index.js",
@@ -128,6 +128,6 @@
128
128
  "styled-components": ">=5.0.0"
129
129
  },
130
130
  "dependencies": {
131
- "@televet/kibble-icons": "^0.1.3"
131
+ "@televet/kibble-icons": "^0.1.4"
132
132
  }
133
133
  }