@televet/kibble-ui 1.2.2-beta.2p81ym7.2 → 1.2.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.
Files changed (27) hide show
  1. package/build/components/Icon/icon.types.d.ts +1 -1
  2. package/build/components/Typography/Heading/heading.component.d.ts +3 -4
  3. package/build/components/Typography/Text/text.component.d.ts +2 -6
  4. package/build/components/Typography/Text/text.types.d.ts +0 -1
  5. package/build/components/Typography/index.d.ts +0 -1
  6. package/build/index.js +463 -441
  7. package/build/index.js.map +1 -1
  8. package/build/theme/theme.types.d.ts +2 -1
  9. package/build/theme/tokens/colors/color.types.d.ts +23 -2
  10. package/build/theme/tokens/fontWeights.d.ts +12 -3
  11. package/package.json +2 -2
  12. package/build/components/Button/button.model.d.ts +0 -5
  13. package/build/components/Button/button.records.d.ts +0 -2
  14. package/build/components/Drawer/drawer.records.d.ts +0 -13
  15. package/build/components/Modal/index.d.ts +0 -2
  16. package/build/components/Modal/modal-section.component.d.ts +0 -7
  17. package/build/components/Modal/modal.component.d.ts +0 -24
  18. package/build/components/Modal/modal.types.d.ts +0 -1
  19. package/build/components/Tooltip/tooltip.model.d.ts +0 -4
  20. package/build/components/Tooltip/tooltip.records.d.ts +0 -9
  21. package/build/components/Typography/Heading/heading.records.d.ts +0 -2
  22. package/build/components/Typography/Text/text.records.d.ts +0 -2
  23. package/build/components/Typography/typography.types.d.ts +0 -1
  24. package/build/theme/theme.model.d.ts +0 -37
  25. package/build/theme/theme.record.d.ts +0 -2
  26. package/build/theme/tokens/colors/color.model.d.ts +0 -64
  27. package/build/theme/tokens/colors/color.type.d.ts +0 -9
@@ -1,13 +1,14 @@
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';
4
5
  export interface ThemeProps {
5
6
  theme: Theme;
6
7
  }
7
8
  export interface Theme {
8
9
  blur: tokens.Blur;
9
10
  borders: tokens.Borders;
10
- colors: tokens.Colors;
11
+ colors: Colors;
11
12
  radii: tokens.Radii;
12
13
  shadows: tokens.Shadows;
13
14
  sizes: tokens.Sizes;
@@ -1,5 +1,5 @@
1
1
  import { ColorMode } from '@chakra-ui/react';
2
- import { IconColor, TextColor } from '../../../components';
2
+ import { IconColor } 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,6 +23,28 @@ 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
+ };
26
48
  background: {
27
49
  light: string;
28
50
  grayLight: string;
@@ -79,6 +101,5 @@ export interface SemanticColors {
79
101
  }
80
102
  export interface AdaptiveColors {
81
103
  icon: AdaptiveColorMap<IconColor>;
82
- text: AdaptiveColorMap<TextColor>;
83
104
  }
84
105
  export declare type Colors = CoreColors & SemanticColors & AdaptiveColors;
@@ -1,3 +1,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>;
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
- "version": "1.2.2-beta.2p81ym7.2",
3
+ "version": "1.2.2",
4
4
  "description": "Kibble Design System by Televet",
5
5
  "author": "TeleVet",
6
6
  "main": "build/index.js",
@@ -120,6 +120,6 @@
120
120
  "styled-components": ">=5.0.0"
121
121
  },
122
122
  "dependencies": {
123
- "@televet/kibble-icons": "^0.1.10"
123
+ "@televet/kibble-icons": "^0.1.11"
124
124
  }
125
125
  }
@@ -1,5 +0,0 @@
1
- import { ButtonColorOptions } from './button.types';
2
- import { AdaptiveColorMap } from '../../theme/tokens';
3
- export interface ButtonVariantConfig extends AdaptiveColorMap<ButtonColorOptions> {
4
- variant: 'solid' | 'outline' | 'ghost';
5
- }
@@ -1,2 +0,0 @@
1
- import { ButtonStyleConfig } from './button.types';
2
- export declare const ButtonConfig: ButtonStyleConfig;
@@ -1,13 +0,0 @@
1
- export declare const DrawerConfig: {
2
- variants: {
3
- alwaysOpen: {
4
- parts: string[];
5
- dialog: {
6
- pointerEvents: string;
7
- };
8
- dialogContainer: {
9
- pointerEvents: string;
10
- };
11
- };
12
- };
13
- };
@@ -1,2 +0,0 @@
1
- export * from './modal.component';
2
- export * from './modal.types';
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface props {
3
- children: ReactNode;
4
- alignContent?: 'left' | 'right';
5
- }
6
- export declare const ModalSection: ({ children, alignContent }: props) => JSX.Element;
7
- export {};
@@ -1,24 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { ModalProps as ChakraModalProps } from '@chakra-ui/react';
3
- import { BlurAmount } from '../../theme/tokens';
4
- import { FocusableElement } from '@chakra-ui/utils';
5
- import { ModalSize } from './modal.types';
6
- declare type ResponsiveBreakpoints = 'base' | 'md';
7
- export interface ModalProps extends ChakraModalProps {
8
- title?: string;
9
- children: ReactNode;
10
- footer?: ReactNode;
11
- isOpen: boolean;
12
- onClose: () => void;
13
- modalSize?: Partial<Record<ResponsiveBreakpoints, ModalSize>>;
14
- allowEscape?: boolean;
15
- useDefaultCloseButton?: boolean;
16
- overlayBlur?: BlurAmount;
17
- overlayHueShift?: number;
18
- overlayBase?: 'whiteAlpha' | 'blackAlpha';
19
- darkMode?: boolean;
20
- initialFocusRef: React.RefObject<FocusableElement>;
21
- scrollBehavior?: 'inside' | 'outside';
22
- }
23
- export declare const Modal: ({ title, children, footer, isOpen, onClose, modalSize, overlayBlur, allowEscape, useDefaultCloseButton, initialFocusRef, scrollBehavior, overlayHueShift, overlayBase, darkMode, ...rest }: ModalProps) => JSX.Element;
24
- export {};
@@ -1 +0,0 @@
1
- export declare type ModalSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | 'full';
@@ -1,4 +0,0 @@
1
- import { AdaptiveColor } from '../../theme/tokens';
2
- export interface TooltipStyleConfig {
3
- color: AdaptiveColor;
4
- }
@@ -1,9 +0,0 @@
1
- import { TooltipStyleConfig } from './tooltip.model';
2
- export declare const TooltipGlobalStyle: {
3
- '[id^=tooltip]': {
4
- padding: string;
5
- borderRadius: string;
6
- textTransform: string;
7
- };
8
- };
9
- export declare const TooltipConfig: TooltipStyleConfig;
@@ -1,2 +0,0 @@
1
- import { HeadingStyleConfig } from './heading.types';
2
- export declare const HeadingConfig: HeadingStyleConfig;
@@ -1,2 +0,0 @@
1
- import { ComponentStyleConfig } from '@chakra-ui/theme';
2
- export declare const TextConfig: ComponentStyleConfig;
@@ -1 +0,0 @@
1
- export declare type TextColor = 'default' | 'headline' | 'subtle' | 'link' | 'placeholder' | 'success' | 'warning' | 'error';
@@ -1,37 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- import { ITheme } from './theme.model';
2
- export declare const theme: ITheme;
@@ -1,64 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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;