@gataca/design-system 0.3.60 → 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.
@@ -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';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from './textField_types.native';
3
+ declare const TextField: (props: React.PropsWithChildren<TextFieldProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default TextField;
@@ -0,0 +1,2 @@
1
+ import TextField from './TextField.native';
2
+ export default TextField;
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from './textField_types.web';
3
+ declare const TextField: (props: React.PropsWithChildren<TextFieldProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default TextField;
@@ -0,0 +1,2 @@
1
+ import TextField from './TextField.web';
2
+ export default TextField;
@@ -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
+ }