@gataca/design-system 0.2.35 → 0.2.37

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 (25) 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 +1 -0
  4. package/dist/components/native/Cards/MiniCredential/index.native.d.ts +2 -0
  5. package/dist/components/native/Cards/MiniCredential/miniCredential.native.d.ts +3 -0
  6. package/dist/components/native/Cards/MiniCredential/miniCredential_styles.native.d.ts +75 -0
  7. package/dist/components/native/Cards/MiniCredential/miniCredential_types.native.d.ts +25 -0
  8. package/dist/components/native/Icons/icon_types.d.ts +1 -0
  9. package/dist/components/native/Icons/icons/shieldCheck.d.ts +2 -2
  10. package/dist/components/native/Icons/icons/shieldError.d.ts +2 -2
  11. package/dist/components/native/Lists/ListItem/listItem_types.native.d.ts +2 -0
  12. package/dist/components/web/Avatars/Avatar/Avatar.config.web.d.ts +1 -0
  13. package/dist/components/web/Cards/MiniCredential/index.web.d.ts +2 -0
  14. package/dist/components/web/Cards/MiniCredential/miniCredential.web.d.ts +3 -0
  15. package/dist/components/web/Cards/MiniCredential/miniCredential_styles.web.d.ts +12 -0
  16. package/dist/components/web/Cards/MiniCredential/miniCredential_types.web.d.ts +25 -0
  17. package/dist/components/web/Icons/icon_types.d.ts +1 -0
  18. package/dist/components/web/Icons/icons/shieldCheck.d.ts +2 -2
  19. package/dist/components/web/Icons/icons/shieldError.d.ts +2 -2
  20. package/dist/components/web/Lists/ListItem/listItem_types.web.d.ts +2 -0
  21. package/dist/index.native.js +1 -1
  22. package/dist/index.native.js.map +1 -1
  23. package/dist/index.web.js +1 -1
  24. package/dist/index.web.js.map +1 -1
  25. package/package.json +1 -1
@@ -2,6 +2,7 @@ export { default as Chip } from './native/Chips/Chip/index.native';
2
2
  export { default as ActionItems } from './native/Action/ActionItems/index.native';
3
3
  export { default as MultiShadowContainer } from './native/MultiShadowContainer/index.native';
4
4
  export { default as CredentialCard } from './native/Cards/Credential/index.native';
5
+ export { default as MiniCredentialCard } from './native/Cards/MiniCredential/index.native';
5
6
  export { default as HeadingCredential } from './native/Headings/HeadingCredential/index.native';
6
7
  export { default as HeadingContainer } from './native/Headings/HeadingContainer/index.native';
7
8
  export { default as Button } from './native/Buttons/Button/index.native';
@@ -1,6 +1,7 @@
1
1
  export { default as Chip } from './web/Chips/Chip/index.web';
2
2
  export { default as ActionItems } from './web/Action/ActionItems/index.web';
3
3
  export { default as CredentialCard } from './web/Cards/Credential/index.web';
4
+ export { default as MiniCredentialCard } from './web/Cards/MiniCredential/index.web';
4
5
  export { default as HeadingCredential } from './web/Headings/HeadingCredential/index.web';
5
6
  export { default as HeadingContainer } from './web/Headings/HeadingContainer/index.web';
6
7
  export { default as Button } from './web/Buttons/Button/index.web';
@@ -212,3 +212,4 @@ export declare const getAvatarGeneralStyles: (colors: ColorsType, size: string,
212
212
  export declare const getAvatarPaddings: (size: string) => "8px" | "12px";
213
213
  export declare const getAvatarMinSize: (size: string) => 48 | 40 | 32;
214
214
  export declare const getAvatarTextStyles: (fontStyles: StyleType, colors: ColorsType, size: string) => any;
215
+ export declare function getInitials(text: string): string;
@@ -0,0 +1,2 @@
1
+ import MiniCredentialCard from './miniCredential.native';
2
+ export default MiniCredentialCard;
@@ -0,0 +1,3 @@
1
+ import { MiniCredentialCardProps } from './miniCredential_types.native';
2
+ declare const MiniCredentialCard: (props: MiniCredentialCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MiniCredentialCard;
@@ -0,0 +1,75 @@
1
+ import { ColorsType } from '../../../../styles/Colors';
2
+ import { StyleType } from '../../../../styles';
3
+ export declare const styles: (colors: ColorsType, fontStyles: StyleType, background_color?: string) => {
4
+ credCardContainer: {
5
+ display: "flex";
6
+ flexDirection: "column";
7
+ backgroundColor: string;
8
+ borderRadius: number;
9
+ alignSelf: "stretch";
10
+ width: number;
11
+ height: number;
12
+ };
13
+ linearGradientOverlay: {
14
+ paddingVertical: number;
15
+ paddingHorizontal: number;
16
+ display: "flex";
17
+ flexDirection: "column";
18
+ borderRadius: number;
19
+ width: "100%";
20
+ height: "100%";
21
+ alignSelf: "stretch";
22
+ };
23
+ credCardMainContent: {
24
+ display: "flex";
25
+ flexDirection: "column";
26
+ gap: number;
27
+ };
28
+ credCardTopData: {
29
+ display: "flex";
30
+ alignSelf: "stretch";
31
+ };
32
+ credCardDetailRow: {
33
+ display: "flex";
34
+ flexDirection: "row";
35
+ justifyContent: "space-between";
36
+ gap: number;
37
+ };
38
+ credCardIssuerImageContainer: {
39
+ maxHeight: number;
40
+ flexDirection: "row";
41
+ justifyContent: "flex-start";
42
+ alignItems: "flex-start";
43
+ };
44
+ credIssuerImageError: {
45
+ fontFamily?: string;
46
+ fontSize?: number;
47
+ lineHeight?: number;
48
+ color?: string;
49
+ textDecoration?: string;
50
+ fontWeight?: "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
51
+ opacity?: number;
52
+ fontStyle?: "normal" | "italic";
53
+ display: "flex";
54
+ alignItems: "center";
55
+ justifyContent: "flex-start";
56
+ alignSelf: "flex-start";
57
+ gap: number;
58
+ flexDirection: "row";
59
+ };
60
+ credCardIssuerImage: {
61
+ height: number;
62
+ resizeMode: "contain";
63
+ };
64
+ };
65
+ export declare const credentialCardShadows: (colors: ColorsType) => {
66
+ elevation: number;
67
+ shadowOffset: {
68
+ width: number;
69
+ height: number;
70
+ };
71
+ xAxis: number;
72
+ yAxis: number;
73
+ shadowOpacity: number;
74
+ shadowColor: string;
75
+ }[];
@@ -0,0 +1,25 @@
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../../Icons/icon_types';
2
+ export type VerifiedIcons = 'error' | 'check';
3
+ export declare const verifiedIconMap: {
4
+ [key in VerifiedIcons]: React.FC<{
5
+ size: IconSize | ShieldIconSize;
6
+ color: string;
7
+ checkColor?: string;
8
+ style: IconStyle;
9
+ crossColor?: string;
10
+ }>;
11
+ };
12
+ export type MiniCredentialCardProps = {
13
+ issuer: {
14
+ image?: string;
15
+ name: string;
16
+ failToLoadImageText?: string;
17
+ };
18
+ verifiedIcon?: VerifiedIcons;
19
+ style?: any;
20
+ display?: {
21
+ background_color?: string;
22
+ text_color?: string;
23
+ hasGradient?: boolean;
24
+ };
25
+ };
@@ -1,5 +1,6 @@
1
1
  export type IconSize = '16' | '24' | '32';
2
2
  export type IconExtendedSize = '6' | '8' | '12' | '16' | '24' | '32';
3
+ export type ShieldIconSize = '8' | '16' | '24' | '32';
3
4
  export type GatacaLogoIconSize = '12' | '16' | '24' | '32' | '64' | '71';
4
5
  export type LoaderPrototipeIconSize = '24' | '40';
5
6
  export type IconStyle = 'outline' | 'filled';
@@ -1,6 +1,6 @@
1
- import { IconSize, IconStyle } from '../icon_types';
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../icon_types';
2
2
  type ShieldCheckIconProps = {
3
- size: IconSize;
3
+ size: IconSize | ShieldIconSize;
4
4
  color?: string;
5
5
  checkColor?: string;
6
6
  style: IconStyle;
@@ -1,6 +1,6 @@
1
- import { IconSize, IconStyle } from '../icon_types';
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../icon_types';
2
2
  type ShieldErrorIconProps = {
3
- size: IconSize;
3
+ size: IconSize | ShieldIconSize;
4
4
  color?: string;
5
5
  crossColor?: string;
6
6
  style: IconStyle;
@@ -1,4 +1,5 @@
1
1
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
2
+ import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.native';
2
3
  export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
3
4
  export type ListItemSize = 'medium' | 'small';
4
5
  export type ListItemColor = 'black' | 'gray';
@@ -14,6 +15,7 @@ export interface ListItemProps {
14
15
  trailing: ListItemTrailing;
15
16
  helperText?: string;
16
17
  avatar?: AvatarProps;
18
+ credential?: MiniCredentialCardProps;
17
19
  containerStyle?: any;
18
20
  onPress?: (x: any) => void;
19
21
  }
@@ -212,3 +212,4 @@ export declare const getAvatarGeneralStyles: (colors: ColorsType, size: string,
212
212
  export declare const getAvatarPaddings: (size: string) => "8px" | "12px";
213
213
  export declare const getAvatarMinSize: (size: string) => 48 | 40 | 32;
214
214
  export declare const getAvatarTextStyles: (fontStyles: StyleType, colors: ColorsType, size: string) => any;
215
+ export declare function getInitials(text: string): string;
@@ -0,0 +1,2 @@
1
+ import MiniCredentialCard from './miniCredential.web';
2
+ export default MiniCredentialCard;
@@ -0,0 +1,3 @@
1
+ import { MiniCredentialCardProps } from './miniCredential_types.web';
2
+ declare const MiniCredentialCard: (props: MiniCredentialCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MiniCredentialCard;
@@ -0,0 +1,12 @@
1
+ import { ColorsType } from '../../../../styles/Colors';
2
+ import { StyleType } from '../../../../styles';
3
+ export declare const styles: (colors: ColorsType, fontStyles: StyleType, background_color?: string, verifiedIcon?: boolean, hasGradient?: boolean) => {
4
+ credCardContainer: React.CSSProperties;
5
+ linearGradientOverlay: React.CSSProperties;
6
+ credCardMainContent: React.CSSProperties;
7
+ credCardTopData: React.CSSProperties;
8
+ credCardDetailRow: React.CSSProperties;
9
+ credIssuerImageError: React.CSSProperties;
10
+ credCardIssuerImage: React.CSSProperties;
11
+ credCardVerifiedIcon: React.CSSProperties;
12
+ };
@@ -0,0 +1,25 @@
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../../Icons/icon_types';
2
+ export type VerifiedIcons = 'error' | 'check';
3
+ export declare const verifiedIconMap: {
4
+ [key in VerifiedIcons]: React.FC<{
5
+ size: IconSize | ShieldIconSize;
6
+ color: string;
7
+ checkColor?: string;
8
+ style: IconStyle;
9
+ crossColor?: string;
10
+ }>;
11
+ };
12
+ export type MiniCredentialCardProps = {
13
+ issuer: {
14
+ image?: string;
15
+ name: string;
16
+ failToLoadImageText?: string;
17
+ };
18
+ verifiedIcon?: VerifiedIcons;
19
+ style?: any;
20
+ display?: {
21
+ background_color?: string;
22
+ text_color?: string;
23
+ hasGradient?: boolean;
24
+ };
25
+ };
@@ -1,5 +1,6 @@
1
1
  export type IconSize = '16' | '24' | '32';
2
2
  export type IconExtendedSize = '6' | '8' | '12' | '16' | '24' | '32';
3
+ export type ShieldIconSize = '8' | '16' | '24' | '32';
3
4
  export type GatacaLogoIconSize = '12' | '16' | '24' | '32' | '64' | '71';
4
5
  export type LoaderPrototipeIconSize = '24' | '40';
5
6
  export type IconStyle = 'outline' | 'filled';
@@ -1,6 +1,6 @@
1
- import { IconSize, IconStyle } from '../icon_types';
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../icon_types';
2
2
  type ShieldCheckIconProps = {
3
- size: IconSize;
3
+ size: IconSize | ShieldIconSize;
4
4
  color?: string;
5
5
  checkColor?: string;
6
6
  style: IconStyle;
@@ -1,6 +1,6 @@
1
- import { IconSize, IconStyle } from '../icon_types';
1
+ import { IconSize, IconStyle, ShieldIconSize } from '../icon_types';
2
2
  type ShieldErrorIconProps = {
3
- size: IconSize;
3
+ size: IconSize | ShieldIconSize;
4
4
  color?: string;
5
5
  crossColor?: string;
6
6
  style: IconStyle;
@@ -1,4 +1,5 @@
1
1
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.web';
2
+ import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.web';
2
3
  export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
3
4
  export type ListItemSize = 'medium' | 'small';
4
5
  export type ListItemColor = 'black' | 'gray';
@@ -14,6 +15,7 @@ export interface ListItemProps {
14
15
  trailing: ListItemTrailing;
15
16
  helperText?: string;
16
17
  avatar?: AvatarProps;
18
+ credential?: MiniCredentialCardProps;
17
19
  containerStyle?: any;
18
20
  onPress?: (x: any) => void;
19
21
  }