@gataca/design-system 0.3.6 → 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.
Files changed (27) hide show
  1. package/dist/components/index.native.d.ts +2 -0
  2. package/dist/components/index.web.d.ts +1 -0
  3. package/dist/components/native/Buttons/Button/Button.config.native.d.ts +1 -0
  4. package/dist/components/native/Dialog/Dialog/Dialog.native.d.ts +4 -0
  5. package/dist/components/native/Dialog/Dialog/dialog_config.native.d.ts +5 -0
  6. package/dist/components/native/Dialog/Dialog/dialog_styles.native.d.ts +101 -0
  7. package/dist/components/native/Dialog/Dialog/dialog_types.native.d.ts +19 -0
  8. package/dist/components/native/Dialog/Dialog/index.native.d.ts +2 -0
  9. package/dist/components/native/Ilustrations/images/error_80.d.ts +2 -0
  10. package/dist/components/native/Ilustrations/images/success_80.d.ts +2 -0
  11. package/dist/components/native/Ilustrations/images/warningYellow_80.d.ts +2 -0
  12. package/dist/components/native/Lists/List/List.native.d.ts +4 -0
  13. package/dist/components/native/Lists/List/index.native.d.ts +2 -0
  14. package/dist/components/native/Lists/List/list_styles.native.d.ts +18 -0
  15. package/dist/components/native/Lists/List/list_types.native.d.ts +7 -0
  16. package/dist/components/native/Lists/ListItem/listItem_types.native.d.ts +2 -0
  17. package/dist/components/web/Buttons/Button/Button.config.web.d.ts +1 -0
  18. package/dist/components/web/Lists/List/List.web.d.ts +4 -0
  19. package/dist/components/web/Lists/List/index.web.d.ts +2 -0
  20. package/dist/components/web/Lists/List/list_styles.web.d.ts +4 -0
  21. package/dist/components/web/Lists/List/list_types.web.d.ts +7 -0
  22. package/dist/components/web/Lists/ListItem/listItem_types.web.d.ts +2 -0
  23. package/dist/index.native.js +1 -1
  24. package/dist/index.native.js.map +1 -1
  25. package/dist/index.web.js +1 -1
  26. package/dist/index.web.js.map +1 -1
  27. 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';
@@ -22,6 +23,7 @@ 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';
24
25
  export { default as Alert } from './native/Alerts/Alert/index.native';
26
+ export { default as Dialog } from './native/Dialog/Dialog/index.native';
25
27
  export { default as GatacaLogoHorIcon } from './native/Icons/icons/brand/gatacaLogoHor';
26
28
  export { default as GatacaLogoIcon } from './native/Icons/icons/brand/gatacaLogo';
27
29
  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';
@@ -402,6 +402,7 @@ export declare const createColorMap: (Colors: ColorsType) => {
402
402
  enable: {
403
403
  iconColor: string;
404
404
  textColor: string;
405
+ bordersColor: string;
405
406
  };
406
407
  hover: {
407
408
  textColor: string;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { DialogProps } from './dialog_types.native';
3
+ declare const Dialog: (props: React.PropsWithChildren<DialogProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Dialog;
@@ -0,0 +1,5 @@
1
+ export declare const IllustrationByStatus: {
2
+ success: () => import("react/jsx-runtime").JSX.Element;
3
+ warning: () => import("react/jsx-runtime").JSX.Element;
4
+ error: () => import("react/jsx-runtime").JSX.Element;
5
+ };
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ import HeadingCredential from './Dialog.native';
2
+ export default HeadingCredential;
@@ -0,0 +1,2 @@
1
+ declare const Error80: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Error80;
@@ -0,0 +1,2 @@
1
+ declare const Success80: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Success80;
@@ -0,0 +1,2 @@
1
+ declare const WarningYellow80: () => import("react/jsx-runtime").JSX.Element;
2
+ export default WarningYellow80;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListProps } from './list_types.native';
3
+ declare const List: (props: React.PropsWithChildren<ListProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default List;
@@ -0,0 +1,2 @@
1
+ import List from './List.native';
2
+ export default List;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ listContainer: {
3
+ alignSelf: "flex-start";
4
+ width: "100%";
5
+ borderRadius: number;
6
+ flexDirection: "column";
7
+ overflow: "visible";
8
+ };
9
+ listInnerContainer: {
10
+ display: "flex";
11
+ flexDirection: "column";
12
+ justifyContent: "flex-start";
13
+ alignItems: "stretch";
14
+ gap: number;
15
+ flex: number;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ListItemProps } from '../ListItem/listItem_types.native';
2
+ export type ListBg = 'grey' | 'white';
3
+ export interface ListProps {
4
+ list: ListItemProps[];
5
+ bgColor?: ListBg;
6
+ containerStyle?: any;
7
+ }
@@ -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;
@@ -402,6 +402,7 @@ export declare const createColorMap: (Colors: ColorsType) => {
402
402
  enable: {
403
403
  iconColor: string;
404
404
  textColor: string;
405
+ bordersColor: string;
405
406
  };
406
407
  hover: {
407
408
  textColor: string;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListProps } from './list_types.web';
3
+ declare const List: (props: React.PropsWithChildren<ListProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default List;
@@ -0,0 +1,2 @@
1
+ import List from './List.web';
2
+ export default List;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const styles: () => {
3
+ listContainer: React.CSSProperties;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { ListItemProps } from '../ListItem/listItem_types.web';
2
+ export type ListBg = 'grey' | 'white';
3
+ export interface ListProps {
4
+ list: ListItemProps[];
5
+ bgColor?: ListBg;
6
+ containerStyle?: any;
7
+ }
@@ -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;