@gataca/design-system 0.2.45 → 0.2.47

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.
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  alignItems: "center";
6
6
  gap: number;
7
7
  alignSelf: "flex-start";
8
+ cursor: "pointer";
8
9
  };
9
10
  actionItemsTextsContainer: {
10
11
  display: "flex";
@@ -16,10 +17,27 @@ declare const _default: {
16
17
  alignItems: "center";
17
18
  gap: number;
18
19
  };
19
- actionItemsImage: {
20
+ imageContainer: {
20
21
  width: number;
21
22
  height: number;
22
23
  borderRadius: number;
23
24
  };
25
+ landscapeImage: {
26
+ minWidth: "100%";
27
+ minHeight: "100%";
28
+ maxHeight: "100%";
29
+ objectFit: "cover";
30
+ };
31
+ portraitImage: {
32
+ minWidth: "100%";
33
+ minHeight: "100%";
34
+ maxWidth: "100%";
35
+ objectFit: "cover";
36
+ };
37
+ squareImage: {
38
+ minWidth: "100%";
39
+ minHeight: "100%";
40
+ objectFit: "cover";
41
+ };
24
42
  };
25
43
  export default _default;
@@ -15,4 +15,5 @@ export interface ActionItemsProps {
15
15
  }>;
16
16
  image?: string;
17
17
  containerStyle?: any;
18
+ onPress: (x?: any) => void;
18
19
  }
@@ -17,5 +17,6 @@ export interface ButtonProps {
17
17
  color: string;
18
18
  }>;
19
19
  showText?: boolean;
20
+ containerStyle?: any;
20
21
  onPress?: (x?: any) => void;
21
22
  }
@@ -10,5 +10,6 @@ export interface SegmentedButtonProps<D = any> {
10
10
  size: Size;
11
11
  animationDuration?: number;
12
12
  selectedColor: SelectedColor;
13
- onChange: (value: SegmentedButtonItem) => void;
13
+ containerStyle?: any;
14
+ onChange: (value?: any) => void;
14
15
  }
@@ -1,6 +1,6 @@
1
1
  import { ColorsType } from '../../../../styles/Colors';
2
2
  import { StyleType } from '../../../../styles';
3
- export declare const styles: (topDataHeight: number, colors: ColorsType, fontStyles: StyleType, background_color?: string) => {
3
+ export declare const styles: (colors: ColorsType, fontStyles: StyleType, background_color?: string) => {
4
4
  credCardContainer: {
5
5
  display: "flex";
6
6
  flexDirection: "column";
@@ -21,10 +21,11 @@ export declare const styles: (topDataHeight: number, colors: ColorsType, fontSty
21
21
  display: "flex";
22
22
  flexDirection: "column";
23
23
  gap: number;
24
+ minHeight: number;
25
+ justifyContent: "space-between";
24
26
  };
25
27
  credCardTopData: {
26
28
  display: "flex";
27
- minHeight: number;
28
29
  alignSelf: "stretch";
29
30
  };
30
31
  credCardDetailRow: {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListItemProps } from './listItem_types.native';
3
+ declare const ListItemContent: (props: React.PropsWithChildren<ListItemProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ListItemContent;
@@ -14,6 +14,7 @@ declare const _default: {
14
14
  justifyContent: "space-between";
15
15
  alignItems: "center";
16
16
  gap: number;
17
+ flexWrap: "wrap";
17
18
  alignSelf: "stretch";
18
19
  paddingVertical: number;
19
20
  paddingHorizontal: number;
@@ -27,5 +28,13 @@ declare const _default: {
27
28
  alignItems: "center";
28
29
  gap: number;
29
30
  };
31
+ notificationContainer: {
32
+ display: "flex";
33
+ flexDirection: "column";
34
+ justifyContent: "center";
35
+ alignItems: "center";
36
+ cursor: "pointer";
37
+ marginLeft: "auto";
38
+ };
30
39
  };
31
40
  export default _default;
@@ -1,6 +1,10 @@
1
+ import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.native';
1
2
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
3
+ import { ButtonProps } from '../../Buttons/Button/Button.types.native';
4
+ import { SegmentedButtonProps } from '../../Buttons/SegmentedButton/SegmentedButton.types.native';
2
5
  import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.native';
3
6
  import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.native';
7
+ import { ChipProps } from '../../Chips/Chip/Chip.types.native';
4
8
  import { IconSize } from '../../Icons/icon_types';
5
9
  import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.native';
6
10
  import { SwitchProps } from '../../Switch/Switch/switch_types.native';
@@ -9,7 +13,7 @@ export type ListItemSize = 'medium' | 'small';
9
13
  export type ListItemColor = 'black' | 'gray';
10
14
  export type ListItemAlign = 'left' | 'right';
11
15
  export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'indicator';
12
- export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button';
16
+ export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button' | 'chip';
13
17
  export interface ListItemProps {
14
18
  condition: ListItemCondition;
15
19
  title?: string;
@@ -31,7 +35,16 @@ export interface ListItemProps {
31
35
  size: IconSize;
32
36
  color: string;
33
37
  }>;
38
+ segmentedButton?: SegmentedButtonProps;
39
+ trailingValue?: string;
34
40
  hasHoverStyle?: boolean;
35
41
  containerStyle?: any;
42
+ actionItem?: ActionItemsProps;
43
+ notification?: {
44
+ text: string;
45
+ onPress: (x: any) => void;
46
+ };
47
+ button?: ButtonProps;
48
+ chip?: ChipProps;
36
49
  onPress?: (x: any) => void;
37
50
  }
@@ -3,5 +3,8 @@ export declare const styles: () => {
3
3
  actionItemsContainer: React.CSSProperties;
4
4
  actionItemsTextsContainer: React.CSSProperties;
5
5
  actionItemsTitleContainer: React.CSSProperties;
6
- actionItemsImage: React.CSSProperties;
6
+ imageContainer: React.CSSProperties;
7
+ landscapeImage: React.CSSProperties;
8
+ portraitImage: React.CSSProperties;
9
+ squareImage: React.CSSProperties;
7
10
  };
@@ -15,4 +15,5 @@ export interface ActionItemsProps {
15
15
  }>;
16
16
  image?: string;
17
17
  containerStyle?: any;
18
+ onClick: (x?: any) => void;
18
19
  }
@@ -17,5 +17,6 @@ export interface ButtonProps {
17
17
  color: string;
18
18
  }>;
19
19
  showText?: boolean;
20
+ containerStyle?: any;
20
21
  onClick?: (x?: any) => void;
21
22
  }
@@ -10,5 +10,6 @@ export interface SegmentedButtonProps<D = any> {
10
10
  size: Size;
11
11
  animationDuration?: number;
12
12
  selectedColor: SelectedColor;
13
- onChange: (value: SegmentedButtonItem) => void;
13
+ containerStyle?: any;
14
+ onChange: (value?: any) => void;
14
15
  }
@@ -3,4 +3,5 @@ export declare const styles: () => {
3
3
  generalContainer: React.CSSProperties;
4
4
  listItemContainer: React.CSSProperties;
5
5
  listItemLeftContainer: React.CSSProperties;
6
+ notificationContainer: React.CSSProperties;
6
7
  };
@@ -1,6 +1,10 @@
1
+ import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.web';
1
2
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.web';
3
+ import { ButtonProps } from '../../Buttons/Button/Button.types.web';
4
+ import { SegmentedButtonProps } from '../../Buttons/SegmentedButton/SegmentedButton.types.web';
2
5
  import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.web';
3
6
  import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.web';
7
+ import { ChipProps } from '../../Chips/Chip/Chip.types.web';
4
8
  import { IconSize } from '../../Icons/icon_types';
5
9
  import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.web';
6
10
  import { SwitchProps } from '../../Switch/Switch/switch_types.web';
@@ -9,7 +13,7 @@ export type ListItemSize = 'medium' | 'small';
9
13
  export type ListItemColor = 'black' | 'gray';
10
14
  export type ListItemAlign = 'left' | 'right';
11
15
  export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'indicator';
12
- export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button';
16
+ export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button' | 'chip';
13
17
  export interface ListItemProps {
14
18
  condition: ListItemCondition;
15
19
  title?: string;
@@ -31,7 +35,16 @@ export interface ListItemProps {
31
35
  size: IconSize;
32
36
  color: string;
33
37
  }>;
38
+ segmentedButton?: SegmentedButtonProps;
39
+ trailingValue?: string;
40
+ actionItem?: ActionItemsProps;
34
41
  hasHoverStyle?: boolean;
35
42
  radioButton?: RadioButtonProps;
43
+ notification?: {
44
+ text: string;
45
+ onPress: (x: any) => void;
46
+ };
47
+ button?: ButtonProps;
48
+ chip?: ChipProps;
36
49
  onPress?: (x: any) => void;
37
50
  }