@gataca/design-system 0.3.59 → 0.3.60

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 (21) hide show
  1. package/dist/components/native/Cards/Credential/credential_types.native.d.ts +7 -1
  2. package/dist/components/native/Cards/MiniCredential/miniCredential_types.native.d.ts +1 -0
  3. package/dist/components/native/Checkbox/Checkbox/checkbox_types.native.d.ts +2 -1
  4. package/dist/components/native/Chips/Chip/Chip.types.native.d.ts +2 -0
  5. package/dist/components/native/Headings/HeadingCredential/HeadingCredential_types.native.d.ts +2 -0
  6. package/dist/components/native/Lists/ListMetaContainer/listMetaContainer_types.native.d.ts +2 -1
  7. package/dist/components/native/RadioButton/RadioButton/radioButton_types.native.d.ts +2 -1
  8. package/dist/components/native/Tooltips/Tooltip/tooltip_types.native.d.ts +13 -0
  9. package/dist/components/web/Cards/Credential/credential_types.web.d.ts +7 -1
  10. package/dist/components/web/Cards/MiniCredential/miniCredential_types.web.d.ts +1 -0
  11. package/dist/components/web/Checkbox/Checkbox/checkbox_types.web.d.ts +2 -1
  12. package/dist/components/web/Chips/Chip/Chip.types.web.d.ts +2 -0
  13. package/dist/components/web/Headings/HeadingCredential/HeadingCredential_types.web.d.ts +2 -0
  14. package/dist/components/web/Lists/ListMetaContainer/listMetaContainer_types.web.d.ts +2 -1
  15. package/dist/components/web/RadioButton/RadioButton/radioButton_types.web.d.ts +2 -1
  16. package/dist/components/web/Tooltips/Tooltip/tooltip_types.web.d.ts +13 -0
  17. package/dist/index.native.js +1 -1
  18. package/dist/index.native.js.map +1 -1
  19. package/dist/index.web.js +1 -1
  20. package/dist/index.web.js.map +1 -1
  21. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { HeadingCredentialChipColor } from '../../Headings/HeadingCredential/HeadingCredential_types.native';
2
2
  import { IconSize, IconStyle } from '../../Icons/icon_types';
3
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
3
4
  export type CredentialCardStates = 'open' | 'closed';
4
5
  export type VerifiedIcons = 'error' | 'check';
5
6
  export declare const verifiedIconMap: {
@@ -21,8 +22,12 @@ export type CredentialCardProps = {
21
22
  chip?: {
22
23
  text: string;
23
24
  containerStyle?: any;
25
+ tooltip?: ParentComponentTooltipProps;
26
+ };
27
+ verifiedIcon?: {
28
+ icon: VerifiedIcons;
29
+ tooltip?: ParentComponentTooltipProps;
24
30
  };
25
- verifiedIcon?: VerifiedIcons;
26
31
  headingCredential1: {
27
32
  typeText: string;
28
33
  valueText?: string;
@@ -45,6 +50,7 @@ export type CredentialCardProps = {
45
50
  chip?: {
46
51
  color: HeadingCredentialChipColor;
47
52
  text: string;
53
+ tooltip?: ParentComponentTooltipProps;
48
54
  };
49
55
  };
50
56
  style?: any;
@@ -27,4 +27,5 @@ export type MiniCredentialCardProps = {
27
27
  text_color?: string;
28
28
  hasGradient?: boolean;
29
29
  };
30
+ onPress?: (x?: any) => void;
30
31
  };
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
1
2
  export type CheckboxSize = 'medium' | 'small';
2
3
  export type CheckboxState = 'active' | 'default' | 'hover' | 'disable' | 'error';
3
4
  export type CheckboxAlign = 'left' | 'right';
@@ -7,8 +8,8 @@ export interface CheckboxProps {
7
8
  leadingText?: string;
8
9
  size?: CheckboxSize;
9
10
  textAlign?: CheckboxAlign;
10
- showInfoIcon?: boolean;
11
11
  textColor?: CheckboxTextColor;
12
12
  containerStyle?: any;
13
+ tooltip?: ParentComponentTooltipProps;
13
14
  onPress?: (x?: any) => void;
14
15
  }
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
1
2
  export type ChipColor = 'yellow' | 'lightYellow' | 'red' | 'grey' | 'white' | 'purple' | 'green' | 'blue' | 'teal' | 'pink' | 'black';
2
3
  export type ChipState = 'enable' | 'hover' | 'disable' | 'active';
3
4
  export type ChipStyle = 'outline' | 'filled';
@@ -15,5 +16,6 @@ export interface ChipProps {
15
16
  leadingIcon?: LeadingIcon;
16
17
  trailingIcon?: TrailingIcon;
17
18
  showText?: boolean;
19
+ tooltip?: ParentComponentTooltipProps;
18
20
  containerStyle?: any;
19
21
  }
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
1
2
  export type HeadingCredentialType = 'main' | 'content';
2
3
  export type HeadingCredentialAlign = 'left' | 'right';
3
4
  export type ImageSlotResizeMode = 'stretch' | 'cover';
@@ -11,6 +12,7 @@ export interface ImageSlotProps {
11
12
  export interface ChipProps {
12
13
  color?: HeadingCredentialChipColor;
13
14
  text: string;
15
+ tooltip?: ParentComponentTooltipProps;
14
16
  }
15
17
  export interface HeadingCredentialProps {
16
18
  type?: HeadingCredentialType;
@@ -1,5 +1,6 @@
1
1
  import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.native';
2
2
  import { ChipProps } from '../../Chips/Chip/Chip.types.native';
3
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
3
4
  export type ListMetaContainerCondition = 'all' | 'title' | 'titleExtraInfo';
4
5
  export type ListMetaContainerSize = 'medium' | 'small';
5
6
  export type ListMetaContainerColor = 'black' | 'gray' | 'red' | 'white';
@@ -9,7 +10,7 @@ export interface ListMetaContainerProps {
9
10
  size?: ListMetaContainerSize;
10
11
  color?: ListMetaContainerColor;
11
12
  align?: ListMetaContainerAlign;
12
- showInfoIcon?: boolean;
13
+ tooltip?: ParentComponentTooltipProps;
13
14
  chip?: ChipProps;
14
15
  actionItem?: ActionItemsProps;
15
16
  title?: string;
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
1
2
  export type RadioButtonSize = 'medium' | 'small';
2
3
  export type RadioButtonState = 'active' | 'default' | 'hover' | 'disable';
3
4
  export type RadioButtonAlign = 'left' | 'right';
@@ -7,7 +8,7 @@ export interface RadioButtonProps {
7
8
  leadingText?: string;
8
9
  size?: RadioButtonSize;
9
10
  textAlign?: RadioButtonAlign;
10
- showInfoIcon?: boolean;
11
+ tooltip?: ParentComponentTooltipProps;
11
12
  textColor?: RadioButtonColor;
12
13
  containerStyle?: any;
13
14
  onPress?: (x?: any) => void;
@@ -47,3 +47,16 @@ export type CaretProps = {
47
47
  position: PopoverProps['position'];
48
48
  style?: ViewProps['style'];
49
49
  };
50
+ export type ParentComponentTooltipProps = {
51
+ action?: PopableAction;
52
+ caretPosition?: PopoverProps['caretPosition'];
53
+ textAlign?: PopoverProps['textAlign'];
54
+ content: PopoverProps['children'];
55
+ numberOfLines?: PopoverProps['numberOfLines'];
56
+ position?: PopoverProps['position'];
57
+ strictPosition?: boolean;
58
+ style?: PopoverProps['style'];
59
+ visible?: boolean;
60
+ wrapperStyle?: ViewProps['style'];
61
+ onAction?: (visible: boolean) => void;
62
+ };
@@ -1,5 +1,6 @@
1
1
  import { HeadingCredentialChipColor } from '../../Headings/HeadingCredential/HeadingCredential_types.web';
2
2
  import { IconSize, IconStyle } from '../../Icons/icon_types';
3
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
3
4
  export type CredentialCardStates = 'open' | 'closed';
4
5
  export type VerifiedIcons = 'error' | 'check';
5
6
  export declare const verifiedIconMap: {
@@ -21,8 +22,12 @@ export type CredentialCardProps = {
21
22
  chip?: {
22
23
  text: string;
23
24
  containerStyle?: any;
25
+ tooltip?: ParentComponentTooltipProps;
26
+ };
27
+ verifiedIcon?: {
28
+ icon: VerifiedIcons;
29
+ tooltip?: ParentComponentTooltipProps;
24
30
  };
25
- verifiedIcon?: VerifiedIcons;
26
31
  headingCredential1: {
27
32
  typeText: string;
28
33
  valueText?: string;
@@ -45,6 +50,7 @@ export type CredentialCardProps = {
45
50
  chip?: {
46
51
  color: HeadingCredentialChipColor;
47
52
  text: string;
53
+ tooltip?: ParentComponentTooltipProps;
48
54
  };
49
55
  };
50
56
  display?: {
@@ -27,4 +27,5 @@ export type MiniCredentialCardProps = {
27
27
  text_color?: string;
28
28
  hasGradient?: boolean;
29
29
  };
30
+ onClick?: (x?: any) => void;
30
31
  };
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../../native/Tooltips/Tooltip/tooltip_types.native';
1
2
  export type CheckboxSize = 'medium' | 'small';
2
3
  export type CheckboxState = 'active' | 'default' | 'hover' | 'disable' | 'error';
3
4
  export type CheckboxAlign = 'left' | 'right';
@@ -7,8 +8,8 @@ export interface CheckboxProps {
7
8
  leadingText?: string;
8
9
  size?: CheckboxSize;
9
10
  textAlign?: CheckboxAlign;
10
- showInfoIcon?: boolean;
11
11
  textColor?: CheckboxTextColor;
12
12
  containerStyle?: any;
13
+ tooltip?: ParentComponentTooltipProps;
13
14
  onPress?: (x?: any) => void;
14
15
  }
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
1
2
  export type ChipColor = 'yellow' | 'lightYellow' | 'red' | 'grey' | 'white' | 'purple' | 'green' | 'blue' | 'teal' | 'pink' | 'black';
2
3
  export type ChipState = 'enable' | 'hover' | 'disable' | 'active';
3
4
  export type ChipStyle = 'outline' | 'filled';
@@ -15,5 +16,6 @@ export interface ChipProps {
15
16
  leadingIcon?: LeadingIcon;
16
17
  trailingIcon?: TrailingIcon;
17
18
  showText?: boolean;
19
+ tooltip?: ParentComponentTooltipProps;
18
20
  containerStyle?: any;
19
21
  }
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
1
2
  export type HeadingCredentialType = 'main' | 'content';
2
3
  export type HeadingCredentialAlign = 'left' | 'right';
3
4
  export type ImageSlotResizeMode = 'stretch' | 'cover';
@@ -11,6 +12,7 @@ export interface ImageSlotProps {
11
12
  export interface ChipProps {
12
13
  color?: HeadingCredentialChipColor;
13
14
  text: string;
15
+ tooltip?: ParentComponentTooltipProps;
14
16
  }
15
17
  export interface HeadingCredentialProps {
16
18
  type?: HeadingCredentialType;
@@ -1,5 +1,6 @@
1
1
  import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.web';
2
2
  import { ChipProps } from '../../Chips/Chip/Chip.types.web';
3
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
3
4
  export type ListMetaContainerCondition = 'all' | 'title' | 'titleExtraInfo';
4
5
  export type ListMetaContainerSize = 'medium' | 'small';
5
6
  export type ListMetaContainerColor = 'black' | 'gray' | 'red' | 'white';
@@ -9,7 +10,7 @@ export interface ListMetaContainerProps {
9
10
  size?: ListMetaContainerSize;
10
11
  color?: ListMetaContainerColor;
11
12
  align?: ListMetaContainerAlign;
12
- showInfoIcon?: boolean;
13
+ tooltip?: ParentComponentTooltipProps;
13
14
  chip?: ChipProps;
14
15
  actionItem?: ActionItemsProps;
15
16
  title?: string;
@@ -1,3 +1,4 @@
1
+ import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
1
2
  export type RadioButtonSize = 'medium' | 'small';
2
3
  export type RadioButtonState = 'active' | 'default' | 'hover' | 'disable';
3
4
  export type RadioButtonAlign = 'left' | 'right';
@@ -7,7 +8,7 @@ export interface RadioButtonProps {
7
8
  leadingText?: string;
8
9
  size?: RadioButtonSize;
9
10
  textAlign?: RadioButtonAlign;
10
- showInfoIcon?: boolean;
11
+ tooltip?: ParentComponentTooltipProps;
11
12
  textColor?: RadioButtonColor;
12
13
  containerStyle?: any;
13
14
  onPress?: (x?: any) => void;
@@ -48,3 +48,16 @@ export type CaretProps = {
48
48
  position: PopoverProps['position'];
49
49
  style?: any;
50
50
  };
51
+ export type ParentComponentTooltipProps = {
52
+ action?: PopableAction;
53
+ caretPosition?: PopoverProps['caretPosition'];
54
+ textAlign?: PopoverProps['textAlign'];
55
+ content: PopoverProps['children'];
56
+ numberOfLines?: PopoverProps['numberOfLines'];
57
+ position?: PopoverProps['position'];
58
+ strictPosition?: boolean;
59
+ style?: PopoverProps['style'];
60
+ visible?: boolean;
61
+ wrapperStyle?: any;
62
+ onAction?: (visible: boolean) => void;
63
+ };