@gataca/design-system 0.3.4 → 0.3.6
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/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/Lists/ListItem/listItem_types.native.d.ts +1 -1
- 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/Lists/ListItem/listItem_types.web.d.ts +2 -2
- 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
|
@@ -21,6 +21,7 @@ export { default as RadioButton } from './native/RadioButton/RadioButton/index.n
|
|
|
21
21
|
export { default as Switch } from './native/Switch/Switch/index.native';
|
|
22
22
|
export { default as NavOption } from './native/NavBar/NavOption/index.native';
|
|
23
23
|
export { default as NavigationBar } from './native/NavBar/NavigationBar/index.native';
|
|
24
|
+
export { default as Alert } from './native/Alerts/Alert/index.native';
|
|
24
25
|
export { default as GatacaLogoHorIcon } from './native/Icons/icons/brand/gatacaLogoHor';
|
|
25
26
|
export { default as GatacaLogoIcon } from './native/Icons/icons/brand/gatacaLogo';
|
|
26
27
|
export { default as HomeIcon } from './native/Icons/icons/withSelectedState/home';
|
|
@@ -19,6 +19,7 @@ export { default as RadioButton } from './web/RadioButton/RadioButton/index.web'
|
|
|
19
19
|
export { default as Switch } from './web/Switch/Switch/index.web';
|
|
20
20
|
export { default as NavOption } from './web/NavBar/NavOption/index.web';
|
|
21
21
|
export { default as NavigationBar } from './web/NavBar/NavigationBar/index.web';
|
|
22
|
+
export { default as Alert } from './web/Alerts/Alert/index.web';
|
|
22
23
|
export { default as GatacaLogoHorIcon } from './web/Icons/icons/brand/gatacaLogoHor';
|
|
23
24
|
export { default as GatacaLogoIcon } from './web/Icons/icons/brand/gatacaLogo';
|
|
24
25
|
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,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
|
+
}
|
|
@@ -48,9 +48,9 @@ export interface ListItemProps {
|
|
|
48
48
|
radioButton?: RadioButtonProps;
|
|
49
49
|
notification?: {
|
|
50
50
|
text: string;
|
|
51
|
-
onPress: (x
|
|
51
|
+
onPress: (x?: any) => void;
|
|
52
52
|
};
|
|
53
53
|
button?: ButtonProps;
|
|
54
54
|
chip?: ChipProps;
|
|
55
|
-
onPress?: (x
|
|
55
|
+
onPress?: (x?: any) => void;
|
|
56
56
|
}
|