@gataca/design-system 0.2.17 → 0.2.18

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 (30) hide show
  1. package/dist/components/index.native.d.ts +1 -0
  2. package/dist/components/index.web.d.ts +1 -0
  3. package/dist/components/native/Avatars/Avatar/Avatar.config.native.d.ts +214 -0
  4. package/dist/components/native/Avatars/Avatar/Avatar.native.d.ts +4 -0
  5. package/dist/components/native/Avatars/Avatar/Avatar.types.native.d.ts +57 -0
  6. package/dist/components/native/Avatars/Avatar/index.native.d.ts +2 -0
  7. package/dist/components/native/Avatars/Avatar/styles.native.d.ts +12 -0
  8. package/dist/components/native/Buttons/ButtonIcon/ButtonIcon.config.native.d.ts +38 -5
  9. package/dist/components/native/Buttons/ButtonIcon/ButtonIcon.types.native.d.ts +10 -2
  10. package/dist/components/native/Buttons/ButtonIcon/styles.native.d.ts +1 -0
  11. package/dist/components/native/Icons/icon_types.d.ts +3 -1
  12. package/dist/components/native/Icons/icons/camera.d.ts +2 -2
  13. package/dist/components/native/Icons/icons/check.d.ts +2 -2
  14. package/dist/components/native/Indicator/Indicator/indicator_types.native.d.ts +1 -0
  15. package/dist/components/web/Avatars/Avatar/Avatar.config.web.d.ts +214 -0
  16. package/dist/components/web/Avatars/Avatar/Avatar.types.web.d.ts +57 -0
  17. package/dist/components/web/Avatars/Avatar/Avatar.web.d.ts +4 -0
  18. package/dist/components/web/Avatars/Avatar/index.web.d.ts +2 -0
  19. package/dist/components/web/Avatars/Avatar/styles.web.d.ts +3 -0
  20. package/dist/components/web/Buttons/ButtonIcon/ButtonIcon.config.web.d.ts +40 -8
  21. package/dist/components/web/Buttons/ButtonIcon/ButtonIcon.types.web.d.ts +10 -2
  22. package/dist/components/web/Icons/icon_types.d.ts +3 -1
  23. package/dist/components/web/Icons/icons/camera.d.ts +2 -2
  24. package/dist/components/web/Icons/icons/check.d.ts +2 -2
  25. package/dist/components/web/Indicator/Indicator/indicator_types.web.d.ts +1 -0
  26. package/dist/index.native.js +1 -1
  27. package/dist/index.native.js.map +1 -1
  28. package/dist/index.web.js +1 -1
  29. package/dist/index.web.js.map +1 -1
  30. package/package.json +1 -1
@@ -10,6 +10,7 @@ export { default as ButtonIcon } from './native/Buttons/ButtonIcon/index.native'
10
10
  export { default as BrandButton } from './native/Buttons/BrandButton/index.native';
11
11
  export { default as SegmentedButton } from './native/Buttons/SegmentedButton/index.native';
12
12
  export { default as Indicator } from './native/Indicator/Indicator/index.native';
13
+ export { default as Avatar } from './native/Avatars/Avatar/index.native';
13
14
  export { default as CheckIcon } from './native/Icons/icons/check';
14
15
  export { default as InfoIcon } from './native/Icons/icons/info';
15
16
  export { default as ChevronDownIcon } from './native/Icons/icons/chevronDown';
@@ -9,6 +9,7 @@ export { default as ButtonIcon } from './web/Buttons/ButtonIcon/index.web';
9
9
  export { default as BrandButton } from './web/Buttons/BrandButton/index.web';
10
10
  export { default as SegmentedButton } from './web/Buttons/SegmentedButton/index.web';
11
11
  export { default as Indicator } from './web/Indicator/Indicator/index.web';
12
+ export { default as Avatar } from './web/Avatars/Avatar/index.web';
12
13
  export { default as CheckIcon } from './web/Icons/icons/check';
13
14
  export { default as InfoIcon } from './web/Icons/icons/info';
14
15
  export { default as ChevronDownIcon } from './web/Icons/icons/chevronDown';
@@ -0,0 +1,214 @@
1
+ import { ColorsType, StyleType } from '../../../../utils/theming';
2
+ import { AvatarType } from './Avatar.types.native';
3
+ export declare const createColorMap: (Colors: ColorsType) => {
4
+ white: {
5
+ enable: {
6
+ backgroundColor: string;
7
+ iconColor: string;
8
+ };
9
+ hover: {
10
+ backgroundColor: string;
11
+ iconColor: string;
12
+ };
13
+ disable: {
14
+ backgroundColor: string;
15
+ iconColor: string;
16
+ };
17
+ };
18
+ black: {
19
+ enable: {
20
+ backgroundColor: string;
21
+ iconColor: string;
22
+ };
23
+ hover: {
24
+ backgroundColor: string;
25
+ iconColor: string;
26
+ };
27
+ disable: {
28
+ backgroundColor: string;
29
+ iconColor: string;
30
+ };
31
+ };
32
+ purple: {
33
+ enable: {
34
+ backgroundColor: string;
35
+ iconColor: string;
36
+ };
37
+ hover: {
38
+ backgroundColor: string;
39
+ iconColor: string;
40
+ };
41
+ disable: {
42
+ backgroundColor: string;
43
+ iconColor: string;
44
+ };
45
+ };
46
+ lightPurple: {
47
+ enable: {
48
+ backgroundColor: string;
49
+ iconColor: string;
50
+ };
51
+ hover: {
52
+ backgroundColor: string;
53
+ iconColor: string;
54
+ };
55
+ disable: {
56
+ backgroundColor: string;
57
+ iconColor: string;
58
+ };
59
+ };
60
+ red: {
61
+ enable: {
62
+ backgroundColor: string;
63
+ iconColor: string;
64
+ };
65
+ hover: {
66
+ backgroundColor: string;
67
+ iconColor: string;
68
+ };
69
+ disable: {
70
+ backgroundColor: string;
71
+ iconColor: string;
72
+ };
73
+ };
74
+ green: {
75
+ enable: {
76
+ backgroundColor: string;
77
+ iconColor: string;
78
+ };
79
+ hover: {
80
+ backgroundColor: string;
81
+ iconColor: string;
82
+ };
83
+ disable: {
84
+ backgroundColor: string;
85
+ iconColor: string;
86
+ };
87
+ };
88
+ yellow: {
89
+ enable: {
90
+ backgroundColor: string;
91
+ iconColor: string;
92
+ };
93
+ hover: {
94
+ backgroundColor: string;
95
+ iconColor: string;
96
+ };
97
+ disable: {
98
+ backgroundColor: string;
99
+ iconColor: string;
100
+ };
101
+ };
102
+ blue: {
103
+ enable: {
104
+ backgroundColor: string;
105
+ iconColor: string;
106
+ };
107
+ hover: {
108
+ backgroundColor: string;
109
+ iconColor: string;
110
+ };
111
+ disable: {
112
+ backgroundColor: string;
113
+ iconColor: string;
114
+ };
115
+ };
116
+ teal: {
117
+ enable: {
118
+ backgroundColor: string;
119
+ iconColor: string;
120
+ };
121
+ hover: {
122
+ backgroundColor: string;
123
+ iconColor: string;
124
+ };
125
+ disable: {
126
+ backgroundColor: string;
127
+ iconColor: string;
128
+ };
129
+ };
130
+ lightTeal: {
131
+ enable: {
132
+ backgroundColor: string;
133
+ iconColor: string;
134
+ };
135
+ hover: {
136
+ backgroundColor: string;
137
+ iconColor: string;
138
+ };
139
+ disable: {
140
+ backgroundColor: string;
141
+ iconColor: string;
142
+ };
143
+ };
144
+ grey: {
145
+ enable: {
146
+ backgroundColor: string;
147
+ iconColor: string;
148
+ };
149
+ hover: {
150
+ backgroundColor: string;
151
+ iconColor: string;
152
+ };
153
+ disable: {
154
+ backgroundColor: string;
155
+ iconColor: string;
156
+ };
157
+ };
158
+ pink: {
159
+ enable: {
160
+ backgroundColor: string;
161
+ iconColor: string;
162
+ };
163
+ hover: {
164
+ backgroundColor: string;
165
+ iconColor: string;
166
+ };
167
+ disable: {
168
+ backgroundColor: string;
169
+ iconColor: string;
170
+ };
171
+ };
172
+ lightPink: {
173
+ enable: {
174
+ backgroundColor: string;
175
+ iconColor: string;
176
+ };
177
+ hover: {
178
+ backgroundColor: string;
179
+ iconColor: string;
180
+ };
181
+ disable: {
182
+ backgroundColor: string;
183
+ iconColor: string;
184
+ };
185
+ };
186
+ };
187
+ export declare const avatarBgColorMap: (Colors: ColorsType) => {
188
+ black: string;
189
+ purple: string;
190
+ pink: string;
191
+ teal: string;
192
+ gray: string;
193
+ };
194
+ export declare const avatarContainerSizeMap: Record<string, any>;
195
+ export declare const avatarSizeMap: Record<string, any>;
196
+ export declare const avatarBorderRadiousMap: Record<string, any>;
197
+ export declare const avatarFontsMap: (fonts: StyleType) => {
198
+ '2xl': import("../../../../styles/Fonts").FontsStyle;
199
+ large: import("../../../../styles/Fonts").FontsStyle;
200
+ medium: import("../../../../styles/Fonts").FontsStyle;
201
+ small: import("../../../../styles/Fonts").FontsStyle;
202
+ };
203
+ export declare const avatarIndicatorSizeMap: Record<string, string>;
204
+ export declare const avatarButtonIconSizeMap: Record<string, string>;
205
+ export declare const getAvatarGeneralStyles: (colors: ColorsType, size: string, color: string, type?: AvatarType, image?: string) => {
206
+ backgroundColor: any;
207
+ backgroundImage: any;
208
+ borderRadius: any;
209
+ height: any;
210
+ width: any;
211
+ };
212
+ export declare const getAvatarPaddings: (size: string) => "8px" | "12px";
213
+ export declare const getAvatarMinSize: (size: string) => 48 | 40 | 32;
214
+ export declare const getAvatarTextStyles: (fontStyles: StyleType, colors: ColorsType, size: string) => any;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from './Avatar.types.native';
3
+ declare const Avatar: (props: React.PropsWithChildren<AvatarProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Avatar;
@@ -0,0 +1,57 @@
1
+ import { ButtonIconColor, ButtonIconState } from '../../Buttons/ButtonIcon/ButtonIcon.types.native';
2
+ import { IconSize, IconStyle } from '../../Icons/icon_types';
3
+ import { IndicatorColor, IndicatorType } from '../../Indicator/Indicator/indicator_types.native';
4
+ export type Size = 'large' | 'medium' | 'small';
5
+ export type AvatarForm = 'square' | 'round';
6
+ export type AvatarType = 'image' | 'initials';
7
+ export type AvatarSize = '2xl' | 'large' | 'medium' | 'small';
8
+ export type AvatarColor = 'gray' | 'teal' | 'pink' | 'purple' | 'black';
9
+ export interface AvatarProps {
10
+ type: AvatarType;
11
+ image?: string;
12
+ text?: string;
13
+ size: AvatarSize;
14
+ color?: AvatarColor;
15
+ showIndicator?: boolean;
16
+ indicator?: {
17
+ color?: IndicatorColor;
18
+ type?: IndicatorType;
19
+ quantity?: number;
20
+ };
21
+ showButtonIcon?: boolean;
22
+ buttonIcon?: {
23
+ color?: ButtonIconColor;
24
+ state?: ButtonIconState;
25
+ Icon?: React.FC<{
26
+ size: IconSize;
27
+ style: IconStyle;
28
+ color: string;
29
+ }>;
30
+ onPress: (x?: any) => void;
31
+ };
32
+ containerStyle?: any;
33
+ }
34
+ export type AvatarCircleSize = {
35
+ '2xl': 109;
36
+ xl: 78.1;
37
+ large: 6.1;
38
+ medium: 40;
39
+ small: 32;
40
+ xsmall: 24.4;
41
+ };
42
+ export type AvatarIndicatorSize = {
43
+ '2xl': 24;
44
+ xl: 22;
45
+ large: 12;
46
+ medium: 10;
47
+ small: 8;
48
+ xsmall: 4;
49
+ };
50
+ export type AvatarFontStyle = {
51
+ '2xl': 'heading2';
52
+ xl: 'heading4';
53
+ large: 'heading5';
54
+ medium: 'bodyBoldMD';
55
+ small: 'bodyBoldSmall';
56
+ xsmall: 'bodyBoldCap';
57
+ };
@@ -0,0 +1,2 @@
1
+ import Avatar from './Avatar.native';
2
+ export default Avatar;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ avatarCircle: {
3
+ display: "flex";
4
+ alignItems: "center";
5
+ justifyContent: "center";
6
+ flexDirection: "row";
7
+ gap: number;
8
+ borderWidth: number;
9
+ position: "relative";
10
+ };
11
+ };
12
+ export default _default;
@@ -4,24 +4,28 @@ export declare const createColorMap: (Colors: ColorsType) => {
4
4
  enable: {
5
5
  backgroundColor: string;
6
6
  iconColor: string;
7
+ borderColor: string;
7
8
  };
8
9
  hover: {
9
10
  backgroundColor: string;
10
11
  iconColor: string;
12
+ borderColor: string;
11
13
  };
12
14
  disable: {
13
15
  backgroundColor: string;
14
16
  iconColor: string;
15
17
  };
16
18
  };
17
- black: {
19
+ grey: {
18
20
  enable: {
19
21
  backgroundColor: string;
20
22
  iconColor: string;
23
+ borderColor: string;
21
24
  };
22
25
  hover: {
23
26
  backgroundColor: string;
24
27
  iconColor: string;
28
+ borderColor: string;
25
29
  };
26
30
  disable: {
27
31
  backgroundColor: string;
@@ -32,10 +36,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
32
36
  enable: {
33
37
  backgroundColor: string;
34
38
  iconColor: string;
39
+ borderColor: string;
35
40
  };
36
41
  hover: {
37
42
  backgroundColor: string;
38
43
  iconColor: string;
44
+ borderColor: string;
39
45
  };
40
46
  disable: {
41
47
  backgroundColor: string;
@@ -46,10 +52,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
46
52
  enable: {
47
53
  backgroundColor: string;
48
54
  iconColor: string;
55
+ borderColor: string;
49
56
  };
50
57
  hover: {
51
58
  backgroundColor: string;
52
59
  iconColor: string;
60
+ borderColor: string;
53
61
  };
54
62
  disable: {
55
63
  backgroundColor: string;
@@ -60,10 +68,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
60
68
  enable: {
61
69
  backgroundColor: string;
62
70
  iconColor: string;
71
+ borderColor: string;
63
72
  };
64
73
  hover: {
65
74
  backgroundColor: string;
66
75
  iconColor: string;
76
+ borderColor: string;
67
77
  };
68
78
  disable: {
69
79
  backgroundColor: string;
@@ -74,10 +84,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
74
84
  enable: {
75
85
  backgroundColor: string;
76
86
  iconColor: string;
87
+ borderColor: string;
77
88
  };
78
89
  hover: {
79
90
  backgroundColor: string;
80
91
  iconColor: string;
92
+ borderColor: string;
81
93
  };
82
94
  disable: {
83
95
  backgroundColor: string;
@@ -88,10 +100,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
88
100
  enable: {
89
101
  backgroundColor: string;
90
102
  iconColor: string;
103
+ borderColor: string;
91
104
  };
92
105
  hover: {
93
106
  backgroundColor: string;
94
107
  iconColor: string;
108
+ borderColor: string;
95
109
  };
96
110
  disable: {
97
111
  backgroundColor: string;
@@ -102,10 +116,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
102
116
  enable: {
103
117
  backgroundColor: string;
104
118
  iconColor: string;
119
+ borderColor: string;
105
120
  };
106
121
  hover: {
107
122
  backgroundColor: string;
108
123
  iconColor: string;
124
+ borderColor: string;
109
125
  };
110
126
  disable: {
111
127
  backgroundColor: string;
@@ -116,10 +132,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
116
132
  enable: {
117
133
  backgroundColor: string;
118
134
  iconColor: string;
135
+ borderColor: string;
119
136
  };
120
137
  hover: {
121
138
  backgroundColor: string;
122
139
  iconColor: string;
140
+ borderColor: string;
123
141
  };
124
142
  disable: {
125
143
  backgroundColor: string;
@@ -130,24 +148,28 @@ export declare const createColorMap: (Colors: ColorsType) => {
130
148
  enable: {
131
149
  backgroundColor: string;
132
150
  iconColor: string;
151
+ borderColor: string;
133
152
  };
134
153
  hover: {
135
154
  backgroundColor: string;
136
155
  iconColor: string;
156
+ borderColor: string;
137
157
  };
138
158
  disable: {
139
159
  backgroundColor: string;
140
160
  iconColor: string;
141
161
  };
142
162
  };
143
- grey: {
163
+ lightGrey: {
144
164
  enable: {
145
165
  backgroundColor: string;
146
166
  iconColor: string;
167
+ borderColor: string;
147
168
  };
148
169
  hover: {
149
170
  backgroundColor: string;
150
171
  iconColor: string;
172
+ borderColor: string;
151
173
  };
152
174
  disable: {
153
175
  backgroundColor: string;
@@ -158,10 +180,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
158
180
  enable: {
159
181
  backgroundColor: string;
160
182
  iconColor: string;
183
+ borderColor: string;
161
184
  };
162
185
  hover: {
163
186
  backgroundColor: string;
164
187
  iconColor: string;
188
+ borderColor: string;
165
189
  };
166
190
  disable: {
167
191
  backgroundColor: string;
@@ -172,10 +196,12 @@ export declare const createColorMap: (Colors: ColorsType) => {
172
196
  enable: {
173
197
  backgroundColor: string;
174
198
  iconColor: string;
199
+ borderColor: string;
175
200
  };
176
201
  hover: {
177
202
  backgroundColor: string;
178
203
  iconColor: string;
204
+ borderColor: string;
179
205
  };
180
206
  disable: {
181
207
  backgroundColor: string;
@@ -183,9 +209,10 @@ export declare const createColorMap: (Colors: ColorsType) => {
183
209
  };
184
210
  };
185
211
  };
186
- export declare const getButtonIconGeneralStyles: (colors: ColorsType, color: string, style: string, state: string, size: string) => {
187
- minHeight: number;
212
+ export declare const getButtonIconGeneralStyles: (colors: ColorsType, color: string, style: string, state: string, icon: any, size: string, showStroke?: boolean) => {
213
+ height: number;
188
214
  width: number;
215
+ border: string;
189
216
  paddingVertical: number;
190
217
  paddingHorizontal: number;
191
218
  backgroundColor: any;
@@ -193,11 +220,17 @@ export declare const getButtonIconGeneralStyles: (colors: ColorsType, color: str
193
220
  cursor: string;
194
221
  borderRadius: number;
195
222
  };
223
+ export declare const borderWidthMap: Record<string, number>;
224
+ export declare const indicatorSizeMap: Record<string, string>;
225
+ export declare const paddingMap: Record<string, number>;
196
226
  export declare const getButtonIconPaddings: (size: string) => {
197
227
  paddingVertical: number;
198
228
  paddingHorizontal: number;
199
229
  };
200
- export declare const getButtonIconMinSize: (size: string) => 48 | 40 | 32;
230
+ export declare const iconSizeMap: Record<string, any>;
231
+ export declare const getIconSize: (icon: any, size: string) => any;
232
+ export declare const buttonIconSizeMap: Record<string, number>;
233
+ export declare const getButtonIconMinSize: (icon: any, size: string) => number;
201
234
  export declare const getButtonIconContentStyles: (fontStyles: StyleType, colors: ColorsType, color: string, state: string) => {
202
235
  styles: {
203
236
  lineHeight: number | undefined;
@@ -1,8 +1,9 @@
1
1
  import { IconSize, IconStyle } from '../../Icons/icon_types';
2
- export type ButtonIconColor = 'yellow' | 'red' | 'grey' | 'white' | 'purple' | 'lightPurple' | 'green' | 'blue' | 'teal' | 'lightTeal' | 'pink' | 'lightPink';
2
+ import { IndicatorColor } from '../../Indicator/Indicator/indicator_types.native';
3
+ export type ButtonIconColor = 'yellow' | 'red' | 'grey' | 'lightGrey' | 'white' | 'purple' | 'lightPurple' | 'green' | 'blue' | 'teal' | 'lightTeal' | 'pink' | 'lightPink';
3
4
  export type ButtonIconState = 'enable' | 'hover' | 'disable';
4
5
  export type ButtonIconStyle = 'square' | 'round';
5
- export type Size = 'large' | 'medium' | 'small';
6
+ export type Size = '2xlarge' | 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | '2xsmall' | '3xsmall';
6
7
  export type ButtonIconForm = 'square' | 'round';
7
8
  export interface ButtonIconProps {
8
9
  color?: ButtonIconColor;
@@ -14,5 +15,12 @@ export interface ButtonIconProps {
14
15
  style: IconStyle;
15
16
  color: string;
16
17
  }>;
18
+ showIndicator?: boolean;
19
+ indicator?: {
20
+ quantity?: number;
21
+ color?: IndicatorColor;
22
+ };
23
+ showStroke?: boolean;
24
+ containerStyle?: any;
17
25
  onPress?: (x?: any) => void;
18
26
  }
@@ -6,6 +6,7 @@ declare const _default: {
6
6
  flexDirection: "row";
7
7
  gap: number;
8
8
  borderWidth: number;
9
+ position: "relative";
9
10
  };
10
11
  };
11
12
  export default _default;
@@ -1,9 +1,11 @@
1
1
  export type IconSize = '16' | '24' | '32';
2
- export type IconExtendedSize = '12' | '16' | '24' | '32';
2
+ export type IconExtendedSize = '6' | '8' | '12' | '16' | '24' | '32';
3
3
  export type GatacaLogoIconSize = '12' | '16' | '24' | '32' | '64' | '71';
4
4
  export type LoaderPrototipeIconSize = '24' | '40';
5
5
  export type IconStyle = 'outline' | 'filled';
6
6
  export declare const iconStrokeWidthBySize: {
7
+ '6': string;
8
+ '8': string;
7
9
  '12': string;
8
10
  '16': string;
9
11
  '24': string;
@@ -1,6 +1,6 @@
1
- import { IconSize } from '../icon_types';
1
+ import { IconExtendedSize, IconSize } from '../icon_types';
2
2
  type CameraIconProps = {
3
- size: IconSize;
3
+ size: IconSize | IconExtendedSize;
4
4
  color?: string;
5
5
  };
6
6
  declare const CameraIcon: (props: CameraIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { IconSize } from '../icon_types';
1
+ import { IconExtendedSize, IconSize } from '../icon_types';
2
2
  type CheckIconProps = {
3
- size: IconSize;
3
+ size: IconSize | IconExtendedSize;
4
4
  color?: string;
5
5
  };
6
6
  declare const CheckIcon: (props: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,7 @@ export interface IndicatorProps {
8
8
  color: IndicatorColor;
9
9
  type: IndicatorType;
10
10
  quantity?: number;
11
+ containerStyle?: any;
11
12
  }
12
13
  export declare const IndicatorBorderWidthySize: Record<string, number>;
13
14
  export declare const createBgColorMap: (Colors: ColorsType) => {