@gataca/design-system 0.3.5 → 0.3.7
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 +2 -0
- package/dist/components/index.web.d.ts +2 -0
- package/dist/components/native/Alerts/Alert/Alert.native.d.ts +4 -0
- package/dist/components/native/Alerts/Alert/Alert_config.native.d.ts +43 -0
- package/dist/components/native/Alerts/Alert/Alert_styles.native.d.ts +48 -0
- package/dist/components/native/Alerts/Alert/Alert_types.native.d.ts +14 -0
- package/dist/components/native/Alerts/Alert/index.native.d.ts +2 -0
- package/dist/components/native/Buttons/Button/Button.config.native.d.ts +1 -0
- package/dist/components/native/Lists/List/List.native.d.ts +4 -0
- package/dist/components/native/Lists/List/index.native.d.ts +2 -0
- package/dist/components/native/Lists/List/list_styles.native.d.ts +17 -0
- package/dist/components/native/Lists/List/list_types.native.d.ts +7 -0
- package/dist/components/native/Lists/ListItem/listItem_types.native.d.ts +2 -0
- package/dist/components/web/Alerts/Alert/Alert.web.d.ts +4 -0
- package/dist/components/web/Alerts/Alert/Alert_config.web.d.ts +43 -0
- package/dist/components/web/Alerts/Alert/Alert_styles.web.d.ts +8 -0
- package/dist/components/web/Alerts/Alert/Alert_types.web.d.ts +14 -0
- package/dist/components/web/Alerts/Alert/index.web.d.ts +2 -0
- package/dist/components/web/Buttons/Button/Button.config.web.d.ts +1 -0
- package/dist/components/web/Lists/List/List.web.d.ts +4 -0
- package/dist/components/web/Lists/List/index.web.d.ts +2 -0
- package/dist/components/web/Lists/List/list_styles.web.d.ts +4 -0
- package/dist/components/web/Lists/List/list_types.web.d.ts +7 -0
- package/dist/components/web/Lists/ListItem/listItem_types.web.d.ts +2 -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
|
@@ -14,6 +14,7 @@ export { default as Indicator } from './native/Indicator/Indicator/index.native'
|
|
|
14
14
|
export { default as Avatar } from './native/Avatars/Avatar/index.native';
|
|
15
15
|
export { default as AvatarGroup } from './native/Avatars/AvatarGroup/index.native';
|
|
16
16
|
export { default as TopAppBar } from './native/TopAppBar/TopAppBar/index.native';
|
|
17
|
+
export { default as List } from './native/Lists/List/index.native';
|
|
17
18
|
export { default as ListMetaContainer } from './native/Lists/ListMetaContainer/index.native';
|
|
18
19
|
export { default as ListItem } from './native/Lists/ListItem/index.native';
|
|
19
20
|
export { default as Checkbox } from './native/Checkbox/Checkbox/index.native';
|
|
@@ -21,6 +22,7 @@ export { default as RadioButton } from './native/RadioButton/RadioButton/index.n
|
|
|
21
22
|
export { default as Switch } from './native/Switch/Switch/index.native';
|
|
22
23
|
export { default as NavOption } from './native/NavBar/NavOption/index.native';
|
|
23
24
|
export { default as NavigationBar } from './native/NavBar/NavigationBar/index.native';
|
|
25
|
+
export { default as Alert } from './native/Alerts/Alert/index.native';
|
|
24
26
|
export { default as GatacaLogoHorIcon } from './native/Icons/icons/brand/gatacaLogoHor';
|
|
25
27
|
export { default as GatacaLogoIcon } from './native/Icons/icons/brand/gatacaLogo';
|
|
26
28
|
export { default as HomeIcon } from './native/Icons/icons/withSelectedState/home';
|
|
@@ -12,6 +12,7 @@ export { default as SegmentedButton } from './web/Buttons/SegmentedButton/index.
|
|
|
12
12
|
export { default as Indicator } from './web/Indicator/Indicator/index.web';
|
|
13
13
|
export { default as Avatar } from './web/Avatars/Avatar/index.web';
|
|
14
14
|
export { default as AvatarGroup } from './web/Avatars/AvatarGroup/index.web';
|
|
15
|
+
export { default as List } from './web/Lists/List/index.web';
|
|
15
16
|
export { default as ListMetaContainer } from './web/Lists/ListMetaContainer/index.web';
|
|
16
17
|
export { default as ListItem } from './web/Lists/ListItem/index.web';
|
|
17
18
|
export { default as Checkbox } from './web/Checkbox/Checkbox/index.web';
|
|
@@ -19,6 +20,7 @@ export { default as RadioButton } from './web/RadioButton/RadioButton/index.web'
|
|
|
19
20
|
export { default as Switch } from './web/Switch/Switch/index.web';
|
|
20
21
|
export { default as NavOption } from './web/NavBar/NavOption/index.web';
|
|
21
22
|
export { default as NavigationBar } from './web/NavBar/NavigationBar/index.web';
|
|
23
|
+
export { default as Alert } from './web/Alerts/Alert/index.web';
|
|
22
24
|
export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
|
|
23
25
|
export { default as GatacaLogoIcon } from './web/Icons/icons/brand/gatacaLogo';
|
|
24
26
|
export { default as HomeIcon } from './web/Icons/icons/withSelectedState/home';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../styles';
|
|
2
|
+
export declare const iconsByState: {
|
|
3
|
+
alert: (props: {
|
|
4
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
warning: (props: {
|
|
8
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
9
|
+
color?: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
info: (props: {
|
|
12
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
13
|
+
color?: string;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
success: (props: {
|
|
16
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
17
|
+
color?: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const iconColor: (colors: ColorsType) => {
|
|
21
|
+
alert: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
info: string;
|
|
24
|
+
success: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const borderColor: (colors: ColorsType) => {
|
|
27
|
+
alert: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
info: string;
|
|
30
|
+
success: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const bgColor: (colors: ColorsType) => {
|
|
33
|
+
alert: string;
|
|
34
|
+
warning: string;
|
|
35
|
+
info: string;
|
|
36
|
+
success: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const btnColor: {
|
|
39
|
+
alert: string;
|
|
40
|
+
warning: string;
|
|
41
|
+
info: string;
|
|
42
|
+
success: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
alert: {
|
|
3
|
+
borderWidth: number;
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
display: "flex";
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
justifyContent: "space-between";
|
|
8
|
+
gap: number;
|
|
9
|
+
alignItems: "center";
|
|
10
|
+
padding: number;
|
|
11
|
+
width: "100%";
|
|
12
|
+
};
|
|
13
|
+
leadingIconContainer: {
|
|
14
|
+
height: number;
|
|
15
|
+
display: "flex";
|
|
16
|
+
justifyContent: "flex-start";
|
|
17
|
+
alignItems: "flex-start";
|
|
18
|
+
};
|
|
19
|
+
mainContainer: {
|
|
20
|
+
display: "flex";
|
|
21
|
+
justifyContent: "flex-start";
|
|
22
|
+
alignItems: "flex-start";
|
|
23
|
+
flexWrap: "wrap";
|
|
24
|
+
gap: number;
|
|
25
|
+
flex: number;
|
|
26
|
+
};
|
|
27
|
+
textsContainer: {
|
|
28
|
+
display: "flex";
|
|
29
|
+
flexDirection: "column";
|
|
30
|
+
gap: number;
|
|
31
|
+
alignItems: "flex-start";
|
|
32
|
+
};
|
|
33
|
+
buttonsContainer: {
|
|
34
|
+
display: "flex";
|
|
35
|
+
flexDirection: "row";
|
|
36
|
+
justifyContent: "flex-start";
|
|
37
|
+
gap: number;
|
|
38
|
+
alignItems: "center";
|
|
39
|
+
flexWrap: "wrap";
|
|
40
|
+
};
|
|
41
|
+
closeButton: {
|
|
42
|
+
height: number;
|
|
43
|
+
display: "flex";
|
|
44
|
+
justifyContent: "flex-start";
|
|
45
|
+
alignItems: "flex-start";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonProps } from '../../Buttons/Button/Button.types.native';
|
|
2
|
+
export type AlertState = 'alert' | 'warning' | 'info' | 'success';
|
|
3
|
+
export type AlertOrientation = 'vertical' | 'horizontal';
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
state: AlertState;
|
|
6
|
+
title?: string;
|
|
7
|
+
subTitle?: string;
|
|
8
|
+
orientation: AlertOrientation;
|
|
9
|
+
primaryButton?: ButtonProps;
|
|
10
|
+
secondaryButton?: ButtonProps;
|
|
11
|
+
isClosable?: boolean;
|
|
12
|
+
containerStyle?: any;
|
|
13
|
+
onClose?: (x?: any) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
listContainer: {
|
|
3
|
+
alignSelf: "flex-start";
|
|
4
|
+
width: "100%";
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
flexDirection: "column";
|
|
7
|
+
overflow: "hidden";
|
|
8
|
+
};
|
|
9
|
+
listInnerContainer: {
|
|
10
|
+
display: "flex";
|
|
11
|
+
flexDirection: "column";
|
|
12
|
+
justifyContent: "flex-start";
|
|
13
|
+
alignItems: "stretch";
|
|
14
|
+
gap: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -8,6 +8,7 @@ import { ChipProps } from '../../Chips/Chip/Chip.types.native';
|
|
|
8
8
|
import { IconSize } from '../../Icons/icon_types';
|
|
9
9
|
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.native';
|
|
10
10
|
import { SwitchProps } from '../../Switch/Switch/switch_types.native';
|
|
11
|
+
export type ListItemBg = 'transparent' | 'white';
|
|
11
12
|
export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
12
13
|
export type ListItemSize = 'medium' | 'small';
|
|
13
14
|
export type ListItemColor = 'black' | 'gray';
|
|
@@ -16,6 +17,7 @@ export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'indic
|
|
|
16
17
|
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button' | 'chip';
|
|
17
18
|
export interface ListItemProps {
|
|
18
19
|
condition: ListItemCondition;
|
|
20
|
+
bgColor?: ListItemBg;
|
|
19
21
|
title?: string;
|
|
20
22
|
content?: string;
|
|
21
23
|
extraInfo?: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../styles';
|
|
2
|
+
export declare const iconsByState: {
|
|
3
|
+
alert: (props: {
|
|
4
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
warning: (props: {
|
|
8
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
9
|
+
color?: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
info: (props: {
|
|
12
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
13
|
+
color?: string;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
success: (props: {
|
|
16
|
+
size: import("../../Icons/icon_types").IconSize;
|
|
17
|
+
color?: string;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const iconColor: (colors: ColorsType) => {
|
|
21
|
+
alert: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
info: string;
|
|
24
|
+
success: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const borderColor: (colors: ColorsType) => {
|
|
27
|
+
alert: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
info: string;
|
|
30
|
+
success: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const bgColor: (colors: ColorsType) => {
|
|
33
|
+
alert: string;
|
|
34
|
+
warning: string;
|
|
35
|
+
info: string;
|
|
36
|
+
success: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const btnColor: {
|
|
39
|
+
alert: string;
|
|
40
|
+
warning: string;
|
|
41
|
+
info: string;
|
|
42
|
+
success: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const styles: () => {
|
|
2
|
+
alert: React.CSSProperties;
|
|
3
|
+
leadingIconContainer: React.CSSProperties;
|
|
4
|
+
mainContainer: React.CSSProperties;
|
|
5
|
+
textsContainer: React.CSSProperties;
|
|
6
|
+
buttonsContainer: React.CSSProperties;
|
|
7
|
+
closeButton: React.CSSProperties;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonProps } from '../../Buttons/Button/Button.types.web';
|
|
2
|
+
export type AlertState = 'alert' | 'warning' | 'info' | 'success';
|
|
3
|
+
export type AlertOrientation = 'vertical' | 'horizontal';
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
state: AlertState;
|
|
6
|
+
title?: string;
|
|
7
|
+
subTitle?: string;
|
|
8
|
+
orientation: AlertOrientation;
|
|
9
|
+
primaryButton?: ButtonProps;
|
|
10
|
+
secondaryButton?: ButtonProps;
|
|
11
|
+
isClosable?: boolean;
|
|
12
|
+
containerStyle?: any;
|
|
13
|
+
onClose?: (x?: any) => void;
|
|
14
|
+
}
|
|
@@ -8,6 +8,7 @@ import { ChipProps } from '../../Chips/Chip/Chip.types.web';
|
|
|
8
8
|
import { IconSize } from '../../Icons/icon_types';
|
|
9
9
|
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.web';
|
|
10
10
|
import { SwitchProps } from '../../Switch/Switch/switch_types.web';
|
|
11
|
+
export type ListItemBg = 'white' | 'transparent';
|
|
11
12
|
export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
12
13
|
export type ListItemSize = 'medium' | 'small';
|
|
13
14
|
export type ListItemColor = 'black' | 'gray';
|
|
@@ -16,6 +17,7 @@ export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'indic
|
|
|
16
17
|
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'notifications' | 'icon' | 'segmentedButton' | 'value' | 'action' | 'button' | 'chip';
|
|
17
18
|
export interface ListItemProps {
|
|
18
19
|
condition: ListItemCondition;
|
|
20
|
+
bgColor?: ListItemBg;
|
|
19
21
|
title?: string;
|
|
20
22
|
content?: string;
|
|
21
23
|
extraInfo?: string;
|