@gataca/design-system 4.0.1 → 4.1.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 (54) hide show
  1. package/dist/components/index.native.d.ts +3 -0
  2. package/dist/components/index.web.d.ts +3 -0
  3. package/dist/components/native/Buttons/SegmentedButton/SegmentedButton.types.native.d.ts +8 -1
  4. package/dist/components/native/Chips/Chip/Chip.config.native.d.ts +2 -0
  5. package/dist/components/native/Chips/Chip/Chip.types.native.d.ts +1 -0
  6. package/dist/components/native/Credentials/Credential/credential_styles.native.d.ts +2 -0
  7. package/dist/components/native/Credentials/DiplomaCredential/diplomaCredential_config.d.ts +0 -1
  8. package/dist/components/native/Credentials/DiplomaCredential/diplomaCredential_styles.native.d.ts +9 -122
  9. package/dist/components/native/Credentials/DiplomaCredential/diplomaCredential_types.native.d.ts +2 -7
  10. package/dist/components/native/Credentials/LegalAgeCredential/components/HexagonBadgeRing.d.ts +1 -1
  11. package/dist/components/native/Credentials/LegalAgeCredential/components/OuterBadgeHexagon.d.ts +14 -0
  12. package/dist/components/native/Credentials/LegalAgeCredential/legalAgeCredential_config.d.ts +0 -2
  13. package/dist/components/native/Credentials/LegalAgeCredential/legalAgeCredential_styles.native.d.ts +20 -350
  14. package/dist/components/native/Credentials/LegalAgeCredential/legalAgeCredential_types.native.d.ts +1 -0
  15. package/dist/components/native/Credentials/PersonalIdCredential/personalIdCredential_styles.native.d.ts +18 -58
  16. package/dist/components/native/Credentials/PersonalIdCredential/personalIdCredential_types.native.d.ts +1 -1
  17. package/dist/components/native/Icons/icons/withSelectedState/credentialView.d.ts +9 -0
  18. package/dist/components/native/Icons/icons/withSelectedState/stack.d.ts +9 -0
  19. package/dist/components/native/Icons/index.native.d.ts +2 -0
  20. package/dist/components/web/Buttons/SegmentedButton/SegmentedButton.types.web.d.ts +8 -1
  21. package/dist/components/web/Chips/Chip/Chip.config.web.d.ts +2 -0
  22. package/dist/components/web/Chips/Chip/Chip.types.web.d.ts +1 -0
  23. package/dist/components/web/Credentials/DiplomaCredential/components/CircularText.d.ts +56 -0
  24. package/dist/components/web/Credentials/DiplomaCredential/components/Ribbon.d.ts +1 -0
  25. package/dist/components/web/Credentials/DiplomaCredential/diplomaCredential.web.d.ts +3 -0
  26. package/dist/components/web/Credentials/DiplomaCredential/diplomaCredential_config.d.ts +28 -0
  27. package/dist/components/web/Credentials/DiplomaCredential/diplomaCredential_styles.web.d.ts +4 -0
  28. package/dist/components/web/Credentials/DiplomaCredential/diplomaCredential_types.web.d.ts +15 -0
  29. package/dist/components/web/Credentials/DiplomaCredential/index.web.d.ts +2 -0
  30. package/dist/components/web/Credentials/LegalAgeCredential/components/DynamicBadgeBanner.d.ts +9 -0
  31. package/dist/components/web/Credentials/LegalAgeCredential/components/HexagonBadgeRing.d.ts +17 -0
  32. package/dist/components/web/Credentials/LegalAgeCredential/components/HexagonText.d.ts +46 -0
  33. package/dist/components/web/Credentials/LegalAgeCredential/components/InnerBadgeHexagon.d.ts +14 -0
  34. package/dist/components/web/Credentials/LegalAgeCredential/components/OuterBadgeHexagon.d.ts +14 -0
  35. package/dist/components/web/Credentials/LegalAgeCredential/components/Ribbon.d.ts +3 -0
  36. package/dist/components/web/Credentials/LegalAgeCredential/index.web.d.ts +2 -0
  37. package/dist/components/web/Credentials/LegalAgeCredential/legalAgeCredential.web.d.ts +3 -0
  38. package/dist/components/web/Credentials/LegalAgeCredential/legalAgeCredential_config.d.ts +24 -0
  39. package/dist/components/web/Credentials/LegalAgeCredential/legalAgeCredential_styles.web.d.ts +4 -0
  40. package/dist/components/web/Credentials/LegalAgeCredential/legalAgeCredential_types.web.d.ts +15 -0
  41. package/dist/components/web/Credentials/PersonalIdCredential/index.web.d.ts +2 -0
  42. package/dist/components/web/Credentials/PersonalIdCredential/personalIdCredential.web.d.ts +3 -0
  43. package/dist/components/web/Credentials/PersonalIdCredential/personalIdCredential_config.d.ts +17 -0
  44. package/dist/components/web/Credentials/PersonalIdCredential/personalIdCredential_styles.web.d.ts +4 -0
  45. package/dist/components/web/Credentials/PersonalIdCredential/personalIdCredential_types.web.d.ts +19 -0
  46. package/dist/components/web/Icons/icons/withSelectedState/credentialView.d.ts +9 -0
  47. package/dist/components/web/Icons/icons/withSelectedState/stack.d.ts +9 -0
  48. package/dist/components/web/Icons/index.web.d.ts +2 -0
  49. package/dist/components/web/Illustrations/illustrations_types.d.ts +6 -0
  50. package/dist/index.native.js +1 -1
  51. package/dist/index.native.js.map +1 -1
  52. package/dist/index.web.js +1 -1
  53. package/dist/index.web.js.map +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export { default as Chip } from './native/Chips/Chip/index.native';
2
+ export { default as ChipGroup } from './native/Chips/ChipGroup/index.native';
2
3
  export { default as ActionItems } from './native/Action/ActionItems/index.native';
3
4
  export { default as MultiShadowContainer } from './native/MultiShadowContainer/index.native';
4
5
  export { default as HeadingAvatarsCard } from './native/Cards/HeadingAvatars/index.native';
@@ -51,6 +52,7 @@ export { default as KeyIcon } from './native/Icons/icons/withSelectedState/key';
51
52
  export { default as ConnectIcon } from './native/Icons/icons/withSelectedState/connect';
52
53
  export { default as ServicesLinkedV4Icon } from './native/Icons/icons/withSelectedState/servicesLinkedV4';
53
54
  export { default as CircleWarningIcon } from './native/Icons/icons/withSelectedState/circleWarning';
55
+ export { default as CredentialViewIcon } from './native/Icons/icons/withSelectedState/credentialView';
54
56
  export { default as FeaturesIcon } from './native/Icons/icons/withSelectedState/features';
55
57
  export { default as UsersV2Icon } from './native/Icons/icons/withSelectedState/users';
56
58
  export { default as AwardIcon } from './native/Icons/icons/withSelectedState/award';
@@ -67,6 +69,7 @@ export { default as PaymentMethodIcon } from './native/Icons/icons/withSelectedS
67
69
  export { default as StarIcon } from './native/Icons/icons/withSelectedState/star';
68
70
  export { default as SubscriptionsIcon } from './native/Icons/icons/withSelectedState/subscriptions';
69
71
  export { default as StampIcon } from './native/Icons/icons/withSelectedState/stamp';
72
+ export { default as StackIcon } from './native/Icons/icons/withSelectedState/stack';
70
73
  export { default as SquareIcon } from './native/Icons/icons/withSelectedState/square';
71
74
  export { default as SettingsIcon } from './native/Icons/icons/withSelectedState/settings';
72
75
  export { default as ServicesLinkedV2Icon } from './native/Icons/icons/withSelectedState/servicesLinkedV2';
@@ -1,4 +1,5 @@
1
1
  export { default as Chip } from './web/Chips/Chip/index.web';
2
+ export { default as ChipGroup } from './web/Chips/ChipGroup/index.web';
2
3
  export { default as ActionItems } from './web/Action/ActionItems/index.web';
3
4
  export { default as CredentialCard } from './web/Credentials/Credential/index.web';
4
5
  export { default as MiniCredentialCard } from './web/Credentials/MiniCredential/index.web';
@@ -46,6 +47,7 @@ export { default as KeyIcon } from './web/Icons/icons/withSelectedState/key';
46
47
  export { default as ConnectIcon } from './web/Icons/icons/withSelectedState/connect';
47
48
  export { default as ServicesLinkedV4Icon } from './web/Icons/icons/withSelectedState/servicesLinkedV4';
48
49
  export { default as CircleWarningIcon } from './web/Icons/icons/withSelectedState/circleWarning';
50
+ export { default as CredentialViewIcon } from './web/Icons/icons/withSelectedState/credentialView';
49
51
  export { default as FeaturesIcon } from './web/Icons/icons/withSelectedState/features';
50
52
  export { default as UsersV2Icon } from './web/Icons/icons/withSelectedState/users';
51
53
  export { default as AwardIcon } from './web/Icons/icons/withSelectedState/award';
@@ -62,6 +64,7 @@ export { default as PaymentMethodIcon } from './web/Icons/icons/withSelectedStat
62
64
  export { default as StarIcon } from './web/Icons/icons/withSelectedState/star';
63
65
  export { default as SubscriptionsIcon } from './web/Icons/icons/withSelectedState/subscriptions';
64
66
  export { default as StampIcon } from './web/Icons/icons/withSelectedState/stamp';
67
+ export { default as StackIcon } from './web/Icons/icons/withSelectedState/stack';
65
68
  export { default as SquareIcon } from './web/Icons/icons/withSelectedState/square';
66
69
  export { default as SettingsIcon } from './web/Icons/icons/withSelectedState/settings';
67
70
  export { default as ServicesLinkedV2Icon } from './web/Icons/icons/withSelectedState/servicesLinkedV2';
@@ -1,8 +1,15 @@
1
+ import { IconSize, IconStyle } from '../../Icons/icon_types';
1
2
  export type Size = 'medium' | 'small';
2
3
  export type SelectedColor = 'purple' | 'white';
3
4
  export interface SegmentedButtonItem {
4
5
  id: string;
5
- text: string;
6
+ text?: string;
7
+ Icon?: React.FC<{
8
+ size: IconSize;
9
+ style: IconStyle;
10
+ color: string;
11
+ }>;
12
+ iconColor?: string;
6
13
  }
7
14
  export interface SegmentedButtonProps<D = any> {
8
15
  id?: string;
@@ -375,12 +375,14 @@ export declare const createColorMap: (Colors: ColorsType) => {
375
375
  };
376
376
  outline: {
377
377
  enable: {
378
+ bordersColor: string;
378
379
  textColor: string;
379
380
  };
380
381
  hover: {
381
382
  textColor: string;
382
383
  };
383
384
  active: {
385
+ backgroundColor: string;
384
386
  textColor: string;
385
387
  bordersColor: string;
386
388
  };
@@ -19,4 +19,5 @@ export interface ChipProps {
19
19
  showText?: boolean;
20
20
  tooltip?: ParentComponentTooltipProps;
21
21
  containerStyle?: any;
22
+ onPress?: (x?: any) => void;
22
23
  }
@@ -16,6 +16,8 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType, backgro
16
16
  borderRadius: number;
17
17
  width: "100%";
18
18
  alignSelf: "stretch";
19
+ borderWidth: number;
20
+ borderColor: string;
19
21
  };
20
22
  credCardMainContent: {
21
23
  display: "flex";
@@ -15,7 +15,6 @@ type DiplomaTheme = {
15
15
  generalContainerStyle: any;
16
16
  innerContainerStyle: any;
17
17
  mainDataStyle: any;
18
- frameStrokeStyle: any;
19
18
  badgeDiplomaStyle: any;
20
19
  };
21
20
  type CreateDiplomaThemeArgs = {
@@ -2,11 +2,6 @@ import { ColorsType } from '../../../../styles/Colors';
2
2
  import { StyleType } from '../../../../styles';
3
3
  export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
4
4
  outerContainer: {
5
- padding: number;
6
- elevation: number;
7
- borderWidth: number;
8
- borderColor: string;
9
- backgroundColor: string;
10
5
  borderRadius: number;
11
6
  shadowColor: string;
12
7
  shadowOffset: {
@@ -16,12 +11,12 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
16
11
  shadowOpacity: number;
17
12
  shadowRadius: number;
18
13
  overflow: "hidden";
19
- } | {
20
14
  padding: number;
21
15
  elevation: number;
22
16
  borderWidth: number;
23
17
  borderColor: string;
24
18
  backgroundColor: string;
19
+ } | {
25
20
  shadowColor: string;
26
21
  shadowOpacity: number;
27
22
  shadowOffset: {
@@ -29,14 +24,15 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
29
24
  height: number;
30
25
  };
31
26
  shadowRadius: number;
27
+ elevation: number;
32
28
  borderRadius: number;
33
29
  overflow: "hidden";
34
- } | {
35
30
  padding: number;
36
- elevation: number;
37
31
  borderWidth: number;
38
32
  borderColor: string;
39
33
  backgroundColor: string;
34
+ } | {
35
+ elevation: number;
40
36
  shadowColor: string;
41
37
  shadowOpacity: number;
42
38
  shadowOffset: {
@@ -46,6 +42,10 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
46
42
  shadowRadius: number;
47
43
  borderRadius: number;
48
44
  overflow: "hidden";
45
+ padding: number;
46
+ borderWidth: number;
47
+ borderColor: string;
48
+ backgroundColor: string;
49
49
  };
50
50
  containerDefault: {
51
51
  width: "100%";
@@ -71,33 +71,6 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
71
71
  borderRadius: number;
72
72
  width: "100%";
73
73
  };
74
- gradientContainer: {
75
- overflow: "hidden";
76
- position: "relative";
77
- borderRadius: number;
78
- flex: number;
79
- };
80
- frameStrokeDefault: {
81
- position: "absolute";
82
- left: number;
83
- top: number;
84
- width: "100%";
85
- minHeight: number;
86
- };
87
- frameStrokeSmall: {
88
- position: "absolute";
89
- left: "50%";
90
- top: "50%";
91
- width: "100%";
92
- minHeight: number;
93
- transform: ({
94
- translateX: number;
95
- translateY?: undefined;
96
- } | {
97
- translateY: number;
98
- translateX?: undefined;
99
- })[];
100
- };
101
74
  mainDataContainerDefault: {
102
75
  width: "100%";
103
76
  minHeight: number;
@@ -111,7 +84,6 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
111
84
  mainDataContainer: {
112
85
  borderRadius: number;
113
86
  justifyContent: "space-between";
114
- marginRight: number;
115
87
  zIndex: number;
116
88
  gap: number;
117
89
  width: "100%";
@@ -185,30 +157,6 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
185
157
  opacity?: number;
186
158
  fontStyle?: "normal" | "italic";
187
159
  };
188
- starButton: {
189
- backgroundColor: string;
190
- borderRadius: number;
191
- padding: number;
192
- justifyContent: "center";
193
- alignItems: "center";
194
- flexShrink: number;
195
- };
196
- starIconContainer: {
197
- width: number;
198
- height: number;
199
- overflow: "hidden";
200
- justifyContent: "center";
201
- alignItems: "center";
202
- };
203
- starIcon: {
204
- width: number;
205
- height: number;
206
- };
207
- starIconPlaceholder: {
208
- fontSize: number;
209
- color: string;
210
- textAlign: "center";
211
- };
212
160
  badgeDiploma: {
213
161
  shadowColor: string;
214
162
  shadowOffset: {
@@ -236,52 +184,6 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
236
184
  height: number;
237
185
  zIndex: number;
238
186
  };
239
- completeBadgeImage: {
240
- width: number;
241
- height: number;
242
- };
243
- medalRibbon: {
244
- position: "absolute";
245
- top: number;
246
- left: "50%";
247
- width: number;
248
- height: number;
249
- transform: {
250
- translateX: number;
251
- }[];
252
- shadowColor: string;
253
- } | {
254
- shadowColor: string;
255
- shadowOpacity: number;
256
- shadowOffset: {
257
- width: number;
258
- height: number;
259
- };
260
- shadowRadius: number;
261
- elevation?: undefined;
262
- position: "absolute";
263
- top: number;
264
- left: "50%";
265
- width: number;
266
- height: number;
267
- transform: {
268
- translateX: number;
269
- }[];
270
- } | {
271
- elevation: number;
272
- shadowOpacity: number;
273
- shadowColor: string;
274
- shadowOffset?: undefined;
275
- shadowRadius?: undefined;
276
- position: "absolute";
277
- top: number;
278
- left: "50%";
279
- width: number;
280
- height: number;
281
- transform: {
282
- translateX: number;
283
- }[];
284
- };
285
187
  badgeMedalContainer: {
286
188
  position: "absolute";
287
189
  top: number;
@@ -339,7 +241,6 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
339
241
  justifyContent: "center";
340
242
  alignItems: "center";
341
243
  position: "relative";
342
- shadowColor: string;
343
244
  } | {
344
245
  shadowColor: string;
345
246
  shadowOpacity: number;
@@ -357,7 +258,7 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
357
258
  position: "relative";
358
259
  } | {
359
260
  elevation: number;
360
- shadowColor: string;
261
+ shadowColor?: undefined;
361
262
  shadowOpacity?: undefined;
362
263
  shadowOffset?: undefined;
363
264
  shadowRadius?: undefined;
@@ -415,18 +316,4 @@ export declare const styles: (colors: ColorsType, fontStyles: StyleType) => {
415
316
  width: number;
416
317
  height: number;
417
318
  };
418
- emblemPlaceholder: {
419
- fontSize: number;
420
- lineHeight: number;
421
- marginTop: number;
422
- color: string;
423
- fontWeight: "bold";
424
- textAlign: "center";
425
- textShadowColor: string;
426
- textShadowOffset: {
427
- width: number;
428
- height: number;
429
- };
430
- textShadowRadius: number;
431
- };
432
319
  };
@@ -9,12 +9,7 @@ export interface DiplomaCredentialProps {
9
9
  size?: DiplomaCredentialSize;
10
10
  certificateText?: string;
11
11
  containerStyle?: any;
12
- images?: {
13
- frameStroke?: any;
14
- medalBadge?: any;
15
- medalRibbon?: any;
16
- medalEmblem?: any;
17
- };
18
- onStarPress?: () => void;
12
+ hasBadge?: boolean;
19
13
  isFavorite?: boolean;
14
+ onStarPress?: () => void;
20
15
  }
@@ -13,5 +13,5 @@ type Props = {
13
13
  * Hexagonal outer ring with circular/around-the-edge text,
14
14
  * all contained within the same `size` square.
15
15
  */
16
- export default function HexagonBadgeRing({ size, text, gradientColors, borderColor, fontSize, style, children }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export default function HexagonBadgeRing({ size, text, gradientColors, borderColor, fontSize, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -0,0 +1,14 @@
1
+ export declare function OuterBadgeHexagon({ size, cornerRadius, colors, strokeColor, strokeWidth, style, shadow1Blur, shadow2Blur, }: {
2
+ size: number;
3
+ cornerRadius?: number;
4
+ colors: string[];
5
+ strokeColor?: string;
6
+ strokeWidth?: number;
7
+ style?: any;
8
+ shadowEnabled?: boolean;
9
+ shadowColor?: string;
10
+ shadow1Opacity?: number;
11
+ shadow1Blur?: number;
12
+ shadow2Opacity?: number;
13
+ shadow2Blur?: number;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -11,8 +11,6 @@ type AgeTheme = {
11
11
  badgeOuterBorderColor: string;
12
12
  glowColor: string;
13
13
  ribbonColors: string[];
14
- labelColor: string;
15
- valueColor: string;
16
14
  };
17
15
  export declare const createAgeTheme: (colors: ColorsType) => Record<Age, AgeTheme>;
18
16
  type MainDataSizeTheme = {