@gataca/design-system 3.37.0 → 4.0.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.
Files changed (24) hide show
  1. package/dist/components/index.web.d.ts +3 -0
  2. package/dist/components/native/Buttons/Button/Button.types.native.d.ts +10 -5
  3. package/dist/components/native/TextField/TextField/textField_config.d.ts +3 -3
  4. package/dist/components/web/Buttons/Button/Button.types.web.d.ts +10 -5
  5. package/dist/components/web/Indicator/NumberBadges/NumberBadges.web.d.ts +4 -0
  6. package/dist/components/web/Indicator/NumberBadges/index.web.d.ts +2 -0
  7. package/dist/components/web/Indicator/NumberBadges/numberBadges_styles.web.d.ts +3 -0
  8. package/dist/components/web/Indicator/NumberBadges/numberBadges_types.web.d.ts +20 -0
  9. package/dist/components/web/Menus/MenuItem/MenuItem_types.web.d.ts +2 -1
  10. package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.config.web.d.ts +61 -0
  11. package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.web.d.ts +4 -0
  12. package/dist/components/web/Tabs/ButtonTabs/buttonTabs_styles.web.d.ts +5 -0
  13. package/dist/components/web/Tabs/ButtonTabs/buttonTabs_types.web.d.ts +24 -0
  14. package/dist/components/web/Tabs/ButtonTabs/index.web.d.ts +2 -0
  15. package/dist/components/web/Tabs/Tabs/Tabs.web.d.ts +4 -0
  16. package/dist/components/web/Tabs/Tabs/index.web.d.ts +2 -0
  17. package/dist/components/web/Tabs/Tabs/tabs_styles.web.d.ts +4 -0
  18. package/dist/components/web/Tabs/Tabs/tabs_types.web.d.ts +36 -0
  19. package/dist/components/web/TextField/TextField/textField_config.d.ts +3 -3
  20. package/dist/index.native.js +1 -1
  21. package/dist/index.native.js.map +1 -1
  22. package/dist/index.web.js +1 -1
  23. package/dist/index.web.js.map +1 -1
  24. package/package.json +1 -1
@@ -13,6 +13,7 @@ export { default as ButtonIcon } from './web/Buttons/ButtonIcon/index.web';
13
13
  export { default as BrandButton } from './web/Buttons/BrandButton/index.web';
14
14
  export { default as SegmentedButton } from './web/Buttons/SegmentedButton/index.web';
15
15
  export { default as Indicator } from './web/Indicator/Indicator/index.web';
16
+ export { default as NumberBadges } from './web/Indicator/NumberBadges/index.web';
16
17
  export { default as Avatar } from './web/Avatars/Avatar/index.web';
17
18
  export { default as AvatarGroup } from './web/Avatars/AvatarGroup/index.web';
18
19
  export { default as List } from './web/Lists/List/index.web';
@@ -28,6 +29,8 @@ export { default as Tooltip } from './web/Tooltips/Tooltip/index.web';
28
29
  export { default as Popover } from './web/Popover/index.web';
29
30
  export { default as TextField } from './web/TextField/TextField/index.web';
30
31
  export { default as MenuItem } from './web/Menus/MenuItem/index.web';
32
+ export { default as Tabs } from './web/Tabs/Tabs/index.web';
33
+ export { default as ButtonTabs } from './web/Tabs/ButtonTabs/index.web';
31
34
  export { default as IconGroup } from './web/Icons/IconGroup/index.web';
32
35
  export { default as Illustration } from './web/Illustrations/index.web';
33
36
  export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
@@ -12,11 +12,16 @@ export interface ButtonProps {
12
12
  state?: ButtonState;
13
13
  style?: ButtonStyle;
14
14
  textSize?: TextSize;
15
- LeadingIcon?: React.FC<{
16
- size: IconSize;
17
- style: IconStyle;
18
- color: string;
19
- }>;
15
+ leadingIcon?: {
16
+ Icon: React.FC<{
17
+ size: IconSize;
18
+ style: IconStyle;
19
+ color: string;
20
+ }>;
21
+ size?: IconSize;
22
+ style?: IconStyle;
23
+ color?: string;
24
+ };
20
25
  showText?: boolean;
21
26
  containerStyle?: any;
22
27
  onPress?: (x?: any) => void;
@@ -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) => "neutral1000" | "neutral600";
16
- export declare const inputBackgroundColor: (state: TextFieldState) => "neutral300" | "neutral100";
17
- export declare const helperTextColor: (state: TextFieldState) => "success300" | "alert300" | "neutral600";
15
+ export declare const inputColor: (state: TextFieldState, value?: string) => "neutral600" | "neutral1000";
16
+ export declare const inputBackgroundColor: (state: TextFieldState) => "neutral100" | "neutral300";
17
+ export declare const helperTextColor: (state: TextFieldState) => "neutral600" | "success300" | "alert300";
@@ -13,11 +13,16 @@ export interface ButtonProps {
13
13
  state?: ButtonState;
14
14
  style?: ButtonStyle;
15
15
  textSize?: TextSize;
16
- LeadingIcon?: React.FC<{
17
- size: IconSize;
18
- style: IconStyle;
19
- color: string;
20
- }>;
16
+ leadingIcon?: {
17
+ Icon: React.FC<{
18
+ size: IconSize;
19
+ style: IconStyle;
20
+ color: string;
21
+ }>;
22
+ size?: IconSize;
23
+ style?: IconStyle;
24
+ color?: string;
25
+ };
21
26
  showText?: boolean;
22
27
  containerStyle?: any;
23
28
  onClick?: (x?: any) => void;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NumberBadgesProps } from './numberBadges_types.web';
3
+ declare const NumberBadges: (props: React.PropsWithChildren<NumberBadgesProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default NumberBadges;
@@ -0,0 +1,2 @@
1
+ import NumberBadges from './NumberBadges.web';
2
+ export default NumberBadges;
@@ -0,0 +1,3 @@
1
+ export declare const styles: () => {
2
+ numberBadgesContainer: React.CSSProperties;
3
+ };
@@ -0,0 +1,20 @@
1
+ export type NumberBadgesState = 'enable' | 'hover' | 'disable' | 'active';
2
+ export interface NumberBadgesProps {
3
+ id?: string;
4
+ className?: string;
5
+ state: NumberBadgesState;
6
+ number: number;
7
+ containerStyle?: any;
8
+ }
9
+ export declare enum numberBadgesBgColorByState {
10
+ 'enable' = "neutral500",
11
+ 'active' = "primary700",
12
+ 'disable' = "neutral500",
13
+ 'hover' = "neutral600"
14
+ }
15
+ export declare enum numberBadgesTextColorByState {
16
+ 'enable' = "neutral100",
17
+ 'active' = "neutral100",
18
+ 'disable' = "neutral600",
19
+ 'hover' = "neutral100"
20
+ }
@@ -39,9 +39,10 @@ export interface MenuItemProps {
39
39
  }>;
40
40
  size?: IconSize;
41
41
  color?: string;
42
- style: IconStyle;
42
+ style?: IconStyle;
43
43
  };
44
44
  containerStyle?: any;
45
+ onClick?: (x?: any) => void;
45
46
  }
46
47
  export declare enum stateLeadingIconColors {
47
48
  'enable' = "neutral1000",
@@ -0,0 +1,61 @@
1
+ import { ColorsType, StyleType } from '../../../../utils/theming';
2
+ export declare const createColorMap: (Colors: ColorsType) => {
3
+ white: {
4
+ fill: {
5
+ enable: {
6
+ backgroundColor: string;
7
+ textColor: string;
8
+ };
9
+ active: {
10
+ backgroundColor: string;
11
+ textColor: string;
12
+ };
13
+ hover: {
14
+ backgroundColor: string;
15
+ textColor: string;
16
+ };
17
+ disable: {
18
+ backgroundColor: string;
19
+ textColor: string;
20
+ };
21
+ };
22
+ };
23
+ grey: {
24
+ fill: {
25
+ enable: {
26
+ backgroundColor: string;
27
+ textColor: string;
28
+ };
29
+ hover: {
30
+ backgroundColor: string;
31
+ textColor: string;
32
+ };
33
+ disable: {
34
+ backgroundColor: string;
35
+ textColor: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export declare const getButtonGeneralStyles: (colors: ColorsType, color: string, state: string) => {
41
+ backgroundColor: any;
42
+ borderColor: any;
43
+ borderWidth: number;
44
+ textColor: any;
45
+ cursor: string;
46
+ padding: string;
47
+ minHeight: number;
48
+ };
49
+ export declare const getButtonContentStyles: (fontStyles: StyleType, colors: ColorsType, color: string, state: string) => {
50
+ styles: {
51
+ lineHeight: string;
52
+ color: any;
53
+ fontFamily?: string;
54
+ fontSize?: number;
55
+ textDecoration?: string;
56
+ fontWeight?: "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
57
+ opacity?: number;
58
+ fontStyle?: "normal" | "italic";
59
+ };
60
+ iconColor: any;
61
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ButtonTabsProps } from './buttonTabs_types.web';
3
+ declare const ButtonTabs: (props: React.PropsWithChildren<ButtonTabsProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ButtonTabs;
@@ -0,0 +1,5 @@
1
+ export declare const styles: () => {
2
+ tabsContainer: React.CSSProperties;
3
+ buttonContainer: React.CSSProperties;
4
+ iconContainer: React.CSSProperties;
5
+ };
@@ -0,0 +1,24 @@
1
+ export type ButtonTabState = 'enable' | 'hover' | 'disable' | 'active';
2
+ export interface ButtonTabProps {
3
+ id?: string;
4
+ className?: string;
5
+ state: ButtonTabState;
6
+ text?: string;
7
+ numberBadge?: number;
8
+ loading?: boolean;
9
+ containerStyle?: any;
10
+ }
11
+ export interface ButtonTabsProps {
12
+ id?: string;
13
+ className?: string;
14
+ tabs: ButtonTabProps[];
15
+ selectedTabIndex: number;
16
+ containerStyle?: any;
17
+ onChange: (index?: number) => void;
18
+ }
19
+ export declare enum textColorByState {
20
+ 'enable' = "neutral1000",
21
+ 'active' = "primary700",
22
+ 'disable' = "neutral500",
23
+ 'hover' = "neutral1000"
24
+ }
@@ -0,0 +1,2 @@
1
+ import ButtonTabs from './ButtonTabs.web';
2
+ export default ButtonTabs;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TabsProps } from './tabs_types.web';
3
+ declare const Tabs: (props: React.PropsWithChildren<TabsProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ import Tabs from './Tabs.web';
2
+ export default Tabs;
@@ -0,0 +1,4 @@
1
+ export declare const styles: () => {
2
+ tabsContainer: React.CSSProperties;
3
+ tab: React.CSSProperties;
4
+ };
@@ -0,0 +1,36 @@
1
+ export type TabsState = 'enable' | 'hover' | 'disable' | 'active';
2
+ export interface TabProps {
3
+ id?: string;
4
+ className?: string;
5
+ state: TabsState;
6
+ text?: string;
7
+ numberBadge?: number;
8
+ info?: string;
9
+ containerStyle?: any;
10
+ }
11
+ export interface TabsProps {
12
+ id?: string;
13
+ className?: string;
14
+ tabs: TabProps[];
15
+ selectedTabIndex: number;
16
+ containerStyle?: any;
17
+ onChange: (index?: number) => void;
18
+ }
19
+ export declare enum textColorByState {
20
+ 'enable' = "neutral1000",
21
+ 'active' = "primary700",
22
+ 'disable' = "neutral500",
23
+ 'hover' = "neutral1000"
24
+ }
25
+ export declare enum borderColorByState {
26
+ 'enable' = "neutral400",
27
+ 'active' = "primary700",
28
+ 'disable' = "neutral400",
29
+ 'hover' = "neutral400"
30
+ }
31
+ export declare enum infoIconColorByState {
32
+ 'enable' = "neutral1000",
33
+ 'active' = "neutral1000",
34
+ 'disable' = "neutral500",
35
+ 'hover' = "neutral1000"
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) => "neutral1000" | "neutral600";
16
- export declare const inputBackgroundColor: (state: TextFieldState) => "neutral300" | "neutral100";
17
- export declare const helperTextColor: (state: TextFieldState) => "success300" | "alert300" | "neutral600";
15
+ export declare const inputColor: (state: TextFieldState, value?: string) => "neutral600" | "neutral1000";
16
+ export declare const inputBackgroundColor: (state: TextFieldState) => "neutral100" | "neutral300";
17
+ export declare const helperTextColor: (state: TextFieldState) => "neutral600" | "success300" | "alert300";