@gataca/design-system 0.3.7 → 0.3.8
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/native/Dialog/Dialog/Dialog.native.d.ts +4 -0
- package/dist/components/native/Dialog/Dialog/dialog_config.native.d.ts +5 -0
- package/dist/components/native/Dialog/Dialog/dialog_styles.native.d.ts +101 -0
- package/dist/components/native/Dialog/Dialog/dialog_types.native.d.ts +19 -0
- package/dist/components/native/Dialog/Dialog/index.native.d.ts +2 -0
- package/dist/components/native/Ilustrations/images/error_80.d.ts +2 -0
- package/dist/components/native/Ilustrations/images/success_80.d.ts +2 -0
- package/dist/components/native/Ilustrations/images/warningYellow_80.d.ts +2 -0
- package/dist/components/native/Lists/List/list_styles.native.d.ts +2 -1
- 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
|
@@ -23,6 +23,7 @@ export { default as Switch } from './native/Switch/Switch/index.native';
|
|
|
23
23
|
export { default as NavOption } from './native/NavBar/NavOption/index.native';
|
|
24
24
|
export { default as NavigationBar } from './native/NavBar/NavigationBar/index.native';
|
|
25
25
|
export { default as Alert } from './native/Alerts/Alert/index.native';
|
|
26
|
+
export { default as Dialog } from './native/Dialog/Dialog/index.native';
|
|
26
27
|
export { default as GatacaLogoHorIcon } from './native/Icons/icons/brand/gatacaLogoHor';
|
|
27
28
|
export { default as GatacaLogoIcon } from './native/Icons/icons/brand/gatacaLogo';
|
|
28
29
|
export { default as HomeIcon } from './native/Icons/icons/withSelectedState/home';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
bg: {
|
|
3
|
+
position: "absolute";
|
|
4
|
+
height: "100%";
|
|
5
|
+
width: "100%";
|
|
6
|
+
top: number;
|
|
7
|
+
left: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
right: number;
|
|
10
|
+
zIndex: number;
|
|
11
|
+
display: "flex";
|
|
12
|
+
justifyContent: "center";
|
|
13
|
+
alignItems: "center";
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
};
|
|
16
|
+
dialog: {
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
display: "flex";
|
|
19
|
+
flexDirection: "column";
|
|
20
|
+
width: "100%";
|
|
21
|
+
elevation: number;
|
|
22
|
+
shadowOffset: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
shadowOpacity: number;
|
|
27
|
+
shadowRadius: number;
|
|
28
|
+
overflow: "hidden";
|
|
29
|
+
maxWidth: number;
|
|
30
|
+
maxHeight: "90%";
|
|
31
|
+
};
|
|
32
|
+
topContainer: {
|
|
33
|
+
display: "flex";
|
|
34
|
+
flexDirection: "row";
|
|
35
|
+
justifyContent: "space-between";
|
|
36
|
+
alignItems: "flex-start";
|
|
37
|
+
width: "100%";
|
|
38
|
+
flexWrap: "wrap-reverse";
|
|
39
|
+
paddingVertical: number;
|
|
40
|
+
paddingHorizontal: number;
|
|
41
|
+
};
|
|
42
|
+
closeButton: {
|
|
43
|
+
height: number;
|
|
44
|
+
display: "flex";
|
|
45
|
+
justifyContent: "flex-start";
|
|
46
|
+
alignItems: "flex-start";
|
|
47
|
+
marginLeft: "auto";
|
|
48
|
+
alignSelf: "center";
|
|
49
|
+
};
|
|
50
|
+
mainContainer: {
|
|
51
|
+
display: "flex";
|
|
52
|
+
justifyContent: "flex-start";
|
|
53
|
+
alignItems: "flex-start";
|
|
54
|
+
flexDirection: "column";
|
|
55
|
+
gap: number;
|
|
56
|
+
flex: number;
|
|
57
|
+
paddingVertical: number;
|
|
58
|
+
paddingHorizontal: number;
|
|
59
|
+
paddingBottom: number;
|
|
60
|
+
};
|
|
61
|
+
statusTextImageContainer: {
|
|
62
|
+
display: "flex";
|
|
63
|
+
flexDirection: "column";
|
|
64
|
+
justifyContent: "flex-start";
|
|
65
|
+
alignItems: "flex-start";
|
|
66
|
+
gap: number;
|
|
67
|
+
width: "100%";
|
|
68
|
+
};
|
|
69
|
+
scrollableArea: {
|
|
70
|
+
maxHeight: number;
|
|
71
|
+
overflow: "scroll";
|
|
72
|
+
width: "100%";
|
|
73
|
+
display: "flex";
|
|
74
|
+
flexDirection: "column";
|
|
75
|
+
justifyContent: "flex-start";
|
|
76
|
+
paddingHorizontal: number;
|
|
77
|
+
alignItems: "flex-start";
|
|
78
|
+
gap: number;
|
|
79
|
+
};
|
|
80
|
+
textsContainer: {
|
|
81
|
+
display: "flex";
|
|
82
|
+
flexDirection: "column";
|
|
83
|
+
gap: number;
|
|
84
|
+
alignItems: "flex-start";
|
|
85
|
+
paddingHorizontal: number;
|
|
86
|
+
width: "100%";
|
|
87
|
+
};
|
|
88
|
+
bottomContainer: {
|
|
89
|
+
paddingVertical: number;
|
|
90
|
+
paddingHorizontal: number;
|
|
91
|
+
};
|
|
92
|
+
buttonsContainer: {
|
|
93
|
+
display: "flex";
|
|
94
|
+
flexDirection: "row";
|
|
95
|
+
justifyContent: "flex-start";
|
|
96
|
+
gap: number;
|
|
97
|
+
alignItems: "center";
|
|
98
|
+
flexWrap: "wrap";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AlertProps } from '../../Alerts/Alert/Alert_types.native';
|
|
2
|
+
import { ButtonProps } from '../../Buttons/Button/Button.types.native';
|
|
3
|
+
import { ListProps } from '../../Lists/List/list_types.native';
|
|
4
|
+
export type DialogType = 'basic' | 'list';
|
|
5
|
+
export type DialogUse = 'actionable' | 'status';
|
|
6
|
+
export type DialogStatus = 'success' | 'error' | 'warning';
|
|
7
|
+
export interface DialogProps {
|
|
8
|
+
type: DialogType;
|
|
9
|
+
use: DialogUse;
|
|
10
|
+
title: string;
|
|
11
|
+
contentText?: string;
|
|
12
|
+
alert?: AlertProps;
|
|
13
|
+
primaryButton?: ButtonProps;
|
|
14
|
+
secondaryButton?: ButtonProps;
|
|
15
|
+
containerStyle?: any;
|
|
16
|
+
status?: DialogStatus;
|
|
17
|
+
list?: ListProps;
|
|
18
|
+
onClose?: (x?: any) => void;
|
|
19
|
+
}
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
width: "100%";
|
|
5
5
|
borderRadius: number;
|
|
6
6
|
flexDirection: "column";
|
|
7
|
-
overflow: "
|
|
7
|
+
overflow: "visible";
|
|
8
8
|
};
|
|
9
9
|
listInnerContainer: {
|
|
10
10
|
display: "flex";
|
|
@@ -12,6 +12,7 @@ declare const _default: {
|
|
|
12
12
|
justifyContent: "flex-start";
|
|
13
13
|
alignItems: "stretch";
|
|
14
14
|
gap: number;
|
|
15
|
+
flex: number;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
export default _default;
|