@gataca/design-system 4.2.0 → 4.3.0

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.
@@ -7,14 +7,14 @@ export interface NumberBadgesProps {
7
7
  containerStyle?: any;
8
8
  }
9
9
  export declare enum numberBadgesBgColorByState {
10
- 'enable' = "neutral500",
11
- 'active' = "primary700",
12
- 'disable' = "neutral500",
13
- 'hover' = "neutral600"
10
+ 'enable' = "surfaceNeutralDefault",
11
+ 'active' = "surfacePrimaryDefault",
12
+ 'disable' = "iconsDisabledDefault",
13
+ 'hover' = "surfacePrimaryDefaultHover"
14
14
  }
15
15
  export declare enum numberBadgesTextColorByState {
16
- 'enable' = "fundationWhite",
17
- 'active' = "fundationWhite",
18
- 'disable' = "neutral600",
19
- 'hover' = "fundationWhite"
16
+ 'enable' = "textPrimaryOnColor",
17
+ 'active' = "textPrimaryOnColor",
18
+ 'disable' = "textDisableOnColor",
19
+ 'hover' = "textPrimaryOnColorHover"
20
20
  }
@@ -1,6 +1,6 @@
1
- import { ColorsType } from '../../../../utils/theming';
1
+ import { ThemeColorsType } from '../../../../utils/theming';
2
2
  import { ListItemColor, ListItemState, ListItemType } from './listItem_types.web';
3
- export declare const createColorMap: (Colors: ColorsType) => {
3
+ export declare const createColorMap: (themeColors: ThemeColorsType) => {
4
4
  white: {
5
5
  enable: string;
6
6
  hover: string;
@@ -17,7 +17,7 @@ export declare const createColorMap: (Colors: ColorsType) => {
17
17
  active: string;
18
18
  };
19
19
  };
20
- export declare const getContainerStyles: (colors: ColorsType, color?: ListItemColor, type?: ListItemType, state?: ListItemState) => {
20
+ export declare const getContainerStyles: (themeColors: ThemeColorsType, color?: ListItemColor, type?: ListItemType, state?: ListItemState) => {
21
21
  borderBottomRightRadius: number;
22
22
  borderBottomLeftRadius: number;
23
23
  borderRadius?: undefined;
@@ -1,6 +1,7 @@
1
1
  import { ChipProps } from '../../Chips/Chip/Chip.types.web';
2
2
  import { IconSize, IconStyle } from '../../Icons/icon_types';
3
3
  import { IndicatorProps } from '../../Indicator/Indicator/indicator_types.web';
4
+ import { ThemeColorsType } from '../../../../styles/Colors';
4
5
  export type MenuItemState = 'enable' | 'active' | 'disable' | 'hover';
5
6
  export type MenuItemType = 'main' | 'sub-menu';
6
7
  export interface MenuItemProps {
@@ -44,15 +45,5 @@ export interface MenuItemProps {
44
45
  containerStyle?: any;
45
46
  onClick?: (x?: any) => void;
46
47
  }
47
- export declare enum stateLeadingIconColors {
48
- 'enable' = "neutral1000",
49
- 'active' = "primary700",
50
- 'disable' = "neutral700",
51
- 'hover' = "neutral1000"
52
- }
53
- export declare enum backgroundColorByState {
54
- 'enable' = "fundationWhite",
55
- 'active' = "primary100",
56
- 'disable' = "fundationWhite",
57
- 'hover' = "neutral200"
58
- }
48
+ export declare const stateLeadingIconColors: Record<MenuItemState, keyof ThemeColorsType>;
49
+ export declare const backgroundColorByState: Record<MenuItemState, keyof ThemeColorsType>;
@@ -1,5 +1,5 @@
1
- import { ColorsType, StyleType } from '../../../../utils/theming';
2
- export declare const createColorMap: (Colors: ColorsType) => {
1
+ import { StyleType, ThemeColorsType } from '../../../../utils/theming';
2
+ export declare const createColorMap: (themeColors: ThemeColorsType) => {
3
3
  white: {
4
4
  fill: {
5
5
  enable: {
@@ -37,7 +37,7 @@ export declare const createColorMap: (Colors: ColorsType) => {
37
37
  };
38
38
  };
39
39
  };
40
- export declare const getButtonGeneralStyles: (colors: ColorsType, color: string, state: string) => {
40
+ export declare const getButtonGeneralStyles: (themeColors: ThemeColorsType, color: string, state: string) => {
41
41
  backgroundColor: any;
42
42
  borderColor: any;
43
43
  borderWidth: number;
@@ -46,7 +46,7 @@ export declare const getButtonGeneralStyles: (colors: ColorsType, color: string,
46
46
  padding: string;
47
47
  minHeight: number;
48
48
  };
49
- export declare const getButtonContentStyles: (fontStyles: StyleType, colors: ColorsType, color: string, state: string) => {
49
+ export declare const getButtonContentStyles: (fontStyles: StyleType, themeColors: ThemeColorsType, color: string, state: string) => {
50
50
  styles: {
51
51
  lineHeight: string;
52
52
  color: any;
@@ -17,20 +17,20 @@ export interface TabsProps {
17
17
  onChange: (index?: number) => void;
18
18
  }
19
19
  export declare enum textColorByState {
20
- 'enable' = "neutral1000",
21
- 'active' = "primary700",
22
- 'disable' = "neutral500",
23
- 'hover' = "neutral1000"
20
+ 'enable' = "textNeutralDefault",
21
+ 'active' = "iconsPrimaryDefault",
22
+ 'disable' = "textDisableDefault",
23
+ 'hover' = "textNeutralDefault"
24
24
  }
25
25
  export declare enum borderColorByState {
26
- 'enable' = "neutral400",
27
- 'active' = "primary700",
28
- 'disable' = "neutral400",
29
- 'hover' = "neutral400"
26
+ 'enable' = "bordersGeneralDefault",
27
+ 'active' = "bordersPrimaryDefault",
28
+ 'disable' = "bordersGeneralDefault",
29
+ 'hover' = "bordersGeneralDefault"
30
30
  }
31
31
  export declare enum infoIconColorByState {
32
- 'enable' = "neutral1000",
33
- 'active' = "neutral1000",
34
- 'disable' = "neutral500",
35
- 'hover' = "neutral1000"
32
+ 'enable' = "iconsNeutralDefault",
33
+ 'active' = "iconsNeutralDefault",
34
+ 'disable' = "iconsDisabledDefault",
35
+ 'hover' = "iconsNeutralDefault"
36
36
  }
@@ -12,6 +12,6 @@ export declare const inputBorder: {
12
12
  success: string;
13
13
  error: string;
14
14
  };
15
- export declare const inputColor: (state: TextFieldState, value?: string) => "neutral600" | "neutral1000";
16
- export declare const inputBackgroundColor: (state: TextFieldState) => "fundationWhite" | "neutral300";
17
- export declare const helperTextColor: (state: TextFieldState) => "neutral600" | "success300" | "alert300";
15
+ export declare const inputColor: (state: TextFieldState, value?: string) => "textNeutralDefault" | "textDisableDefault";
16
+ export declare const inputBackgroundColor: (state: TextFieldState) => "surfaceDisableDisable" | "surfaceNeutralDefaultSubtle";
17
+ export declare const helperTextColor: (state: TextFieldState) => "textAlertDefault" | "textSuccessDefault" | "textDefaultPlaceholder";