@gataca/design-system 4.2.0 → 4.3.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 (33) hide show
  1. package/dist/components/native/Icons/icons/profilePhoto.d.ts +1 -1
  2. package/dist/components/native/TextField/TextField/textField_config.d.ts +3 -3
  3. package/dist/components/native/Tooltips/Tooltip/components/Backdrop.native.d.ts +1 -1
  4. package/dist/components/web/Alerts/Alert/Alert_config.web.d.ts +4 -4
  5. package/dist/components/web/Avatars/Avatar/Avatar.config.web.d.ts +4 -188
  6. package/dist/components/web/Buttons/Button/Button.config.web.d.ts +30 -4
  7. package/dist/components/web/Buttons/SegmentedButton/SegmentedButton.config.web.d.ts +3 -3
  8. package/dist/components/web/Buttons/SegmentedButton/styles.web.d.ts +2 -2
  9. package/dist/components/web/Chips/Chip/Chip.config.web.d.ts +41 -4
  10. package/dist/components/web/Icons/icons/checkbox.d.ts +2 -2
  11. package/dist/components/web/Icons/icons/commitment.d.ts +1 -1
  12. package/dist/components/web/Icons/icons/compliance.d.ts +1 -1
  13. package/dist/components/web/Icons/icons/devices.d.ts +1 -1
  14. package/dist/components/web/Icons/icons/disconnect.d.ts +1 -1
  15. package/dist/components/web/Icons/icons/government.d.ts +1 -1
  16. package/dist/components/web/Icons/icons/navigation.d.ts +1 -1
  17. package/dist/components/web/Icons/icons/plusCircle.d.ts +1 -1
  18. package/dist/components/web/Icons/icons/radioButton.d.ts +2 -2
  19. package/dist/components/web/Icons/icons/userSecure.d.ts +1 -1
  20. package/dist/components/web/Indicator/Indicator/indicator_types.web.d.ts +2 -2
  21. package/dist/components/web/Indicator/NumberBadges/numberBadges_types.web.d.ts +8 -8
  22. package/dist/components/web/Lists/ListItem/listItem.config.web.d.ts +3 -3
  23. package/dist/components/web/Menus/MenuItem/MenuItem_types.web.d.ts +3 -12
  24. package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.config.web.d.ts +4 -4
  25. package/dist/components/web/Tabs/Tabs/tabs_types.web.d.ts +12 -12
  26. package/dist/components/web/TextField/TextField/textField_config.d.ts +3 -3
  27. package/dist/index.native.js +1 -1
  28. package/dist/index.native.js.map +1 -1
  29. package/dist/index.web.js +1 -1
  30. package/dist/index.web.js.map +1 -1
  31. package/dist/styles/Colors.d.ts +170 -1
  32. package/dist/utils/theming/themeProvider.d.ts +7 -2
  33. package/package.json +92 -18
@@ -6,5 +6,5 @@ type ComplianceIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const ComplianceIcon: ({ id, className, size, color }: ComplianceIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const ComplianceIcon: ({ id, className, size, color, }: ComplianceIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default ComplianceIcon;
@@ -6,5 +6,5 @@ type DevicesIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- export declare const DevicesIcon: ({ id, className, size, color }: DevicesIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const DevicesIcon: ({ id, className, size, color, }: DevicesIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default DevicesIcon;
@@ -6,5 +6,5 @@ type DisconnectIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const DisconnectIcon: ({ id, className, size, color }: DisconnectIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const DisconnectIcon: ({ id, className, size, color, }: DisconnectIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default DisconnectIcon;
@@ -6,5 +6,5 @@ type GovernmentIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const GovernmentIcon: ({ id, className, size, color }: GovernmentIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const GovernmentIcon: ({ id, className, size, color, }: GovernmentIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default GovernmentIcon;
@@ -6,5 +6,5 @@ type NavigationIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const NavigationIcon: ({ id, className, size, color }: NavigationIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const NavigationIcon: ({ id, className, size, color, }: NavigationIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default NavigationIcon;
@@ -6,5 +6,5 @@ type PlusCircleIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const PlusCircleIcon: ({ id, className, size, color }: PlusCircleIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const PlusCircleIcon: ({ id, className, size, color, }: PlusCircleIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default PlusCircleIcon;
@@ -1,11 +1,11 @@
1
- import { ColorsType } from '../../../../styles';
1
+ import { ThemeColorsType } from '../../../../styles';
2
2
  import { RadioButtonSize, RadioButtonState } from '../../RadioButton/RadioButton/radioButton_types.web';
3
3
  import { IconStyle } from '../icon_types';
4
4
  type RadioButtonIconProps = {
5
5
  id?: string;
6
6
  className?: string;
7
7
  size: RadioButtonSize;
8
- colors: ColorsType;
8
+ themeColors: ThemeColorsType;
9
9
  state: RadioButtonState;
10
10
  style?: IconStyle;
11
11
  };
@@ -6,5 +6,5 @@ type UserSecureIconProps = {
6
6
  color?: string;
7
7
  style?: IconStyle;
8
8
  };
9
- declare const UserSecureIcon: ({ id, className, size, color }: UserSecureIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const UserSecureIcon: ({ id, className, size, color, }: UserSecureIconProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default UserSecureIcon;
@@ -1,5 +1,5 @@
1
1
  import { StyleType } from '../../../../styles';
2
- import { ColorsType } from '../../../../styles/Colors';
2
+ import { ThemeColorsType } from '../../../../styles/Colors';
3
3
  export type IndicatorColor = 'purple' | 'green' | 'red' | 'blue';
4
4
  export type IndicatorSize = '28' | '16' | '14' | '10' | '8' | '5' | '4';
5
5
  export type IndicatorType = 'quantity' | 'status';
@@ -13,7 +13,7 @@ export interface IndicatorProps {
13
13
  containerStyle?: any;
14
14
  }
15
15
  export declare const IndicatorBorderWidthySize: Record<string, number>;
16
- export declare const createBgColorMap: (Colors: ColorsType) => {
16
+ export declare const createBgColorMap: (themeColors: ThemeColorsType) => {
17
17
  purple: string;
18
18
  red: string;
19
19
  green: string;
@@ -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";