@gataca/design-system 1.0.41 → 1.0.44
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.
- package/dist/components/index.web.d.ts +2 -0
- package/dist/components/native/TextField/TextField/textField_config.d.ts +3 -3
- package/dist/components/web/Indicator/NumberBadges/NumberBadges.web.d.ts +4 -0
- package/dist/components/web/Indicator/NumberBadges/index.web.d.ts +2 -0
- package/dist/components/web/Indicator/NumberBadges/numberBadges_styles.web.d.ts +3 -0
- package/dist/components/web/Indicator/NumberBadges/numberBadges_types.web.d.ts +20 -0
- package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.config.web.d.ts +61 -0
- package/dist/components/web/Tabs/ButtonTabs/ButtonTabs.web.d.ts +4 -0
- package/dist/components/web/Tabs/ButtonTabs/buttonTabs_styles.web.d.ts +5 -0
- package/dist/components/web/Tabs/ButtonTabs/buttonTabs_types.web.d.ts +24 -0
- package/dist/components/web/Tabs/ButtonTabs/index.web.d.ts +2 -0
- package/dist/components/web/Tabs/Tabs/tabs_types.web.d.ts +0 -6
- package/dist/components/web/TextField/TextField/textField_config.d.ts +3 -3
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- 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';
|
|
@@ -29,6 +30,7 @@ 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';
|
|
31
32
|
export { default as Tabs } from './web/Tabs/Tabs/index.web';
|
|
33
|
+
export { default as ButtonTabs } from './web/Tabs/ButtonTabs/index.web';
|
|
32
34
|
export { default as IconGroup } from './web/Icons/IconGroup/index.web';
|
|
33
35
|
export { default as Illustration } from './web/Illustrations/index.web';
|
|
34
36
|
export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
|
|
@@ -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) => "
|
|
16
|
-
export declare const inputBackgroundColor: (state: TextFieldState) => "
|
|
17
|
-
export declare const helperTextColor: (state: TextFieldState) => "
|
|
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";
|
|
@@ -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
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -22,12 +22,6 @@ export declare enum textColorByState {
|
|
|
22
22
|
'disable' = "neutral500",
|
|
23
23
|
'hover' = "neutral1000"
|
|
24
24
|
}
|
|
25
|
-
export declare enum numberBadgeColorByState {
|
|
26
|
-
'enable' = "neutral500",
|
|
27
|
-
'active' = "primary700",
|
|
28
|
-
'disable' = "neutral500",
|
|
29
|
-
'hover' = "neutral600"
|
|
30
|
-
}
|
|
31
25
|
export declare enum borderColorByState {
|
|
32
26
|
'enable' = "neutral400",
|
|
33
27
|
'active' = "primary700",
|
|
@@ -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) => "
|
|
16
|
-
export declare const inputBackgroundColor: (state: TextFieldState) => "
|
|
17
|
-
export declare const helperTextColor: (state: TextFieldState) => "
|
|
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";
|