@gataca/design-system 0.3.59 → 0.3.61
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.
- package/dist/components/index.native.d.ts +1 -0
- package/dist/components/index.web.d.ts +1 -0
- package/dist/components/native/Cards/Credential/credential_types.native.d.ts +7 -1
- package/dist/components/native/Cards/MiniCredential/miniCredential_types.native.d.ts +1 -0
- package/dist/components/native/Checkbox/Checkbox/checkbox_types.native.d.ts +2 -1
- package/dist/components/native/Chips/Chip/Chip.types.native.d.ts +2 -0
- package/dist/components/native/Headings/HeadingCredential/HeadingCredential_types.native.d.ts +2 -0
- package/dist/components/native/Lists/ListMetaContainer/listMetaContainer_types.native.d.ts +2 -1
- package/dist/components/native/RadioButton/RadioButton/radioButton_types.native.d.ts +2 -1
- package/dist/components/native/TextField/TextField/TextField.native.d.ts +4 -0
- package/dist/components/native/TextField/TextField/index.native.d.ts +2 -0
- package/dist/components/native/TextField/TextField/textField_config.d.ts +17 -0
- package/dist/components/native/TextField/TextField/textField_styles.native.d.ts +56 -0
- package/dist/components/native/TextField/TextField/textField_types.native.d.ts +42 -0
- package/dist/components/native/Tooltips/Tooltip/tooltip_types.native.d.ts +13 -0
- package/dist/components/web/Cards/Credential/credential_types.web.d.ts +7 -1
- package/dist/components/web/Cards/MiniCredential/miniCredential_types.web.d.ts +1 -0
- package/dist/components/web/Checkbox/Checkbox/checkbox_types.web.d.ts +2 -1
- package/dist/components/web/Chips/Chip/Chip.types.web.d.ts +2 -0
- package/dist/components/web/Headings/HeadingCredential/HeadingCredential_types.web.d.ts +2 -0
- package/dist/components/web/Lists/ListMetaContainer/listMetaContainer_types.web.d.ts +2 -1
- package/dist/components/web/RadioButton/RadioButton/radioButton_types.web.d.ts +2 -1
- package/dist/components/web/TextField/TextField/TextField.web.d.ts +4 -0
- package/dist/components/web/TextField/TextField/index.web.d.ts +2 -0
- package/dist/components/web/TextField/TextField/textField_config.d.ts +17 -0
- package/dist/components/web/TextField/TextField/textField_styles.web.d.ts +8 -0
- package/dist/components/web/TextField/TextField/textField_types.web.d.ts +45 -0
- package/dist/components/web/Tooltips/Tooltip/tooltip_types.web.d.ts +13 -0
- package/dist/index.native.js +1 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ export { default as Dialog } from './native/Dialog/Dialog/index.native';
|
|
|
30
30
|
export { default as Tooltip } from './native/Tooltips/Tooltip/index.native';
|
|
31
31
|
export { default as Popover } from './native/Popover/index.native';
|
|
32
32
|
export { default as BottomStickyContainer } from './native/BottomSticky/BottomStickyContainer/index.native';
|
|
33
|
+
export { default as TextField } from './native/TextField/TextField/index.native';
|
|
33
34
|
export { default as Illustration } from './native/Illustrations/index.native';
|
|
34
35
|
export { default as GatacaLogoHorIcon } from './native/Icons/icons/brand/gatacaLogoHor';
|
|
35
36
|
export { default as GatacaLogoIcon } from './native/Icons/icons/brand/gatacaLogo';
|
|
@@ -25,6 +25,7 @@ export { default as NavigationBar } from './web/NavBar/NavigationBar/index.web';
|
|
|
25
25
|
export { default as Alert } from './web/Alerts/Alert/index.web';
|
|
26
26
|
export { default as Tooltip } from './web/Tooltips/Tooltip/index.web';
|
|
27
27
|
export { default as Popover } from './web/Popover/index.web';
|
|
28
|
+
export { default as TextField } from './web/TextField/TextField/index.web';
|
|
28
29
|
export { default as Illustration } from './web/Illustrations/index.web';
|
|
29
30
|
export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
|
|
30
31
|
export { default as GatacaLogoIcon } from './web/Icons/icons/brand/gatacaLogo';
|
|
@@ -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;
|
|
@@ -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
|
}
|
package/dist/components/native/Headings/HeadingCredential/HeadingCredential_types.native.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
11
|
+
tooltip?: ParentComponentTooltipProps;
|
|
11
12
|
textColor?: RadioButtonColor;
|
|
12
13
|
containerStyle?: any;
|
|
13
14
|
onPress?: (x?: any) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StyleType } from '../../../../utils/theming';
|
|
2
|
+
import { TextFieldSize, TextFieldState } from './textField_types.native';
|
|
3
|
+
export declare const inputFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
4
|
+
export declare const labelFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
5
|
+
export declare const extraDescFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
6
|
+
export declare const inputBorder: {
|
|
7
|
+
enable: string;
|
|
8
|
+
disable: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
active: string;
|
|
11
|
+
complete: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const inputColor: (state: TextFieldState, value?: string) => "neutral1000" | "neutral600";
|
|
16
|
+
export declare const inputBackgroundColor: (state: TextFieldState) => "neutral300" | "neutral100";
|
|
17
|
+
export declare const helperTextColor: (state: TextFieldState) => "success300" | "alert300" | "neutral600";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
textFieldContainer: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
flexDirection: "column";
|
|
5
|
+
alignItems: "flex-start";
|
|
6
|
+
gap: number;
|
|
7
|
+
alignSelf: "stretch";
|
|
8
|
+
width: "100%";
|
|
9
|
+
};
|
|
10
|
+
textFieldTopTextContainer: {
|
|
11
|
+
display: "flex";
|
|
12
|
+
flexDirection: "row";
|
|
13
|
+
justifyContent: "space-between";
|
|
14
|
+
width: "100%";
|
|
15
|
+
alignItems: "center";
|
|
16
|
+
gap: number;
|
|
17
|
+
};
|
|
18
|
+
textFieldLabelContainer: {
|
|
19
|
+
display: "flex";
|
|
20
|
+
flexDirection: "row";
|
|
21
|
+
justifyContent: "flex-start";
|
|
22
|
+
alignItems: "center";
|
|
23
|
+
gap: number;
|
|
24
|
+
};
|
|
25
|
+
textFieldLeadingIcon: {
|
|
26
|
+
position: "absolute";
|
|
27
|
+
left: number;
|
|
28
|
+
top: number;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
display: "flex";
|
|
32
|
+
justifyContent: "center";
|
|
33
|
+
alignItems: "center";
|
|
34
|
+
zIndex: number;
|
|
35
|
+
};
|
|
36
|
+
textFieldInput: {
|
|
37
|
+
width: "100%";
|
|
38
|
+
borderWidth: number;
|
|
39
|
+
borderRadius: number;
|
|
40
|
+
paddingHorizontal: number;
|
|
41
|
+
paddingVertical: number;
|
|
42
|
+
position: "relative";
|
|
43
|
+
};
|
|
44
|
+
textFieldTrailingIcon: {
|
|
45
|
+
position: "absolute";
|
|
46
|
+
right: number;
|
|
47
|
+
top: number;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
display: "flex";
|
|
51
|
+
justifyContent: "center";
|
|
52
|
+
alignItems: "center";
|
|
53
|
+
zIndex: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { KeyboardTypeOptions } from 'react-native';
|
|
2
|
+
import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
|
|
3
|
+
import { IconSize, IconStyle } from '../../Icons/icon_types';
|
|
4
|
+
export type TextFieldSize = 'medium' | 'large';
|
|
5
|
+
export type TextFieldState = 'enable' | 'disable' | 'hover' | 'active' | 'complete' | 'success' | 'error';
|
|
6
|
+
export type TextFieldAutoComplete = 'additional-name' | 'address-line1' | 'address-line2' | 'birthdate-day' | 'birthdate-full' | 'birthdate-month' | 'birthdate-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-day' | 'cc-exp-month' | 'cc-exp-year' | 'cc-number' | 'country' | 'current-password' | 'email' | 'family-name' | 'gender' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'name-family' | 'name-given' | 'name-middle' | 'name-middle-initial' | 'name-prefix' | 'name-suffix' | 'new-password' | 'nickname' | 'one-time-code' | 'organization' | 'organization-title' | 'password' | 'password-new' | 'postal-address' | 'postal-address-country' | 'postal-address-extended' | 'postal-address-extended-postal-code' | 'postal-address-locality' | 'postal-address-region' | 'postal-code' | 'street-address' | 'sms-otp' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-device' | 'url' | 'username' | 'username-new' | 'off';
|
|
7
|
+
export interface TextFieldProps {
|
|
8
|
+
state: TextFieldState;
|
|
9
|
+
textFieldSize: TextFieldSize;
|
|
10
|
+
label: {
|
|
11
|
+
text: string;
|
|
12
|
+
tooltip?: ParentComponentTooltipProps;
|
|
13
|
+
};
|
|
14
|
+
value?: string;
|
|
15
|
+
autoComplete?: TextFieldAutoComplete;
|
|
16
|
+
extraDescription?: string;
|
|
17
|
+
helperText?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
keyboardType?: KeyboardTypeOptions;
|
|
20
|
+
leadingIcon?: {
|
|
21
|
+
Icon: React.FC<{
|
|
22
|
+
size: IconSize;
|
|
23
|
+
color: string;
|
|
24
|
+
style: IconStyle;
|
|
25
|
+
}>;
|
|
26
|
+
color?: string;
|
|
27
|
+
style?: string;
|
|
28
|
+
onPress?: (x?: any) => void;
|
|
29
|
+
};
|
|
30
|
+
trailingIcon?: {
|
|
31
|
+
Icon: React.FC<{
|
|
32
|
+
size: IconSize;
|
|
33
|
+
color: string;
|
|
34
|
+
style: IconStyle;
|
|
35
|
+
}>;
|
|
36
|
+
color?: string;
|
|
37
|
+
style?: string;
|
|
38
|
+
onPress?: (x?: any) => void;
|
|
39
|
+
};
|
|
40
|
+
containerStyle?: any;
|
|
41
|
+
onChangeText: (x?: any) => void;
|
|
42
|
+
}
|
|
@@ -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?: {
|
|
@@ -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
|
-
|
|
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
|
-
|
|
11
|
+
tooltip?: ParentComponentTooltipProps;
|
|
11
12
|
textColor?: RadioButtonColor;
|
|
12
13
|
containerStyle?: any;
|
|
13
14
|
onPress?: (x?: any) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StyleType } from '../../../../utils/theming';
|
|
2
|
+
import { TextFieldSize, TextFieldState } from './textField_types.web';
|
|
3
|
+
export declare const inputFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
4
|
+
export declare const labelFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
5
|
+
export declare const extraDescFont: (size: TextFieldSize, fontStyles: StyleType) => import("../../../../styles/Fonts").FontsStyle;
|
|
6
|
+
export declare const inputBorder: {
|
|
7
|
+
enable: string;
|
|
8
|
+
disable: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
active: string;
|
|
11
|
+
complete: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const inputColor: (state: TextFieldState, value?: string) => "neutral1000" | "neutral600";
|
|
16
|
+
export declare const inputBackgroundColor: (state: TextFieldState) => "neutral300" | "neutral100";
|
|
17
|
+
export declare const helperTextColor: (state: TextFieldState) => "success300" | "alert300" | "neutral600";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
textFieldContainer: React.CSSProperties;
|
|
3
|
+
textFieldTopTextContainer: React.CSSProperties;
|
|
4
|
+
textFieldLabelContainer: React.CSSProperties;
|
|
5
|
+
textFieldLeadingIcon: React.CSSProperties;
|
|
6
|
+
textFieldInput: React.CSSProperties;
|
|
7
|
+
textFieldTrailingIcon: React.CSSProperties;
|
|
8
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IconSize, IconStyle } from '../../Icons/icon_types';
|
|
2
|
+
import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
|
|
3
|
+
export type TextFieldSize = 'medium' | 'large';
|
|
4
|
+
export type TextFieldState = 'enable' | 'disable' | 'hover' | 'active' | 'complete' | 'success' | 'error';
|
|
5
|
+
export type TextFieldType = 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
6
|
+
export type TextFieldAutoComplete = 'additional-name' | 'address-line1' | 'address-line2' | 'birthdate-day' | 'birthdate-full' | 'birthdate-month' | 'birthdate-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-day' | 'cc-exp-month' | 'cc-exp-year' | 'cc-number' | 'country' | 'current-password' | 'email' | 'family-name' | 'gender' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'name-family' | 'name-given' | 'name-middle' | 'name-middle-initial' | 'name-prefix' | 'name-suffix' | 'new-password' | 'nickname' | 'one-time-code' | 'organization' | 'organization-title' | 'password' | 'password-new' | 'postal-address' | 'postal-address-country' | 'postal-address-extended' | 'postal-address-extended-postal-code' | 'postal-address-locality' | 'postal-address-region' | 'postal-code' | 'street-address' | 'sms-otp' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-device' | 'url' | 'username' | 'username-new' | 'off';
|
|
7
|
+
export interface TextFieldProps {
|
|
8
|
+
state: TextFieldState;
|
|
9
|
+
textFieldSize: TextFieldSize;
|
|
10
|
+
label: {
|
|
11
|
+
text: string;
|
|
12
|
+
tooltip?: ParentComponentTooltipProps;
|
|
13
|
+
};
|
|
14
|
+
value?: string;
|
|
15
|
+
autoComplete?: TextFieldAutoComplete;
|
|
16
|
+
extraDescription?: string;
|
|
17
|
+
helperText?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
type?: TextFieldType;
|
|
20
|
+
containerStyle?: any;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
minLength?: number;
|
|
23
|
+
leadingIcon?: {
|
|
24
|
+
Icon: React.FC<{
|
|
25
|
+
size: IconSize;
|
|
26
|
+
color: string;
|
|
27
|
+
style: IconStyle;
|
|
28
|
+
}>;
|
|
29
|
+
color?: string;
|
|
30
|
+
style?: string;
|
|
31
|
+
onClick?: (x?: any) => void;
|
|
32
|
+
};
|
|
33
|
+
trailingIcon?: {
|
|
34
|
+
Icon: React.FC<{
|
|
35
|
+
size: IconSize;
|
|
36
|
+
color: string;
|
|
37
|
+
style: IconStyle;
|
|
38
|
+
}>;
|
|
39
|
+
color?: string;
|
|
40
|
+
style?: string;
|
|
41
|
+
onClick?: (x?: any) => void;
|
|
42
|
+
};
|
|
43
|
+
onChange: (x?: any) => void;
|
|
44
|
+
onKeyPress?: (x?: any) => void;
|
|
45
|
+
}
|
|
@@ -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
|
+
};
|