@gataca/design-system 0.2.20 → 0.2.22
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 +1 -0
- package/dist/components/native/Avatars/AvatarGroup/AvatarGroup.native.d.ts +4 -0
- package/dist/components/native/Avatars/AvatarGroup/avatarGroup.types.native.d.ts +9 -0
- package/dist/components/native/Avatars/AvatarGroup/index.native.d.ts +2 -0
- package/dist/components/native/Avatars/AvatarGroup/styles.native.d.ts +8 -0
- package/dist/components/native/Buttons/ButtonIcon/ButtonIcon.config.native.d.ts +2 -1
- package/dist/components/native/Icons/icon_types.d.ts +1 -0
- package/dist/components/native/Icons/icons/bell.d.ts +8 -0
- package/dist/components/native/Icons/index.native.d.ts +1 -0
- package/dist/components/native/TopAppBar/TopAppBar/TopAppBar.native.d.ts +4 -0
- package/dist/components/native/TopAppBar/TopAppBar/index.native.d.ts +2 -0
- package/dist/components/native/TopAppBar/TopAppBar/topAppBar.config.d.ts +31 -0
- package/dist/components/native/TopAppBar/TopAppBar/topAppBar_styles.native.d.ts +32 -0
- package/dist/components/native/TopAppBar/TopAppBar/topAppBar_types.native.d.ts +70 -0
- package/dist/components/web/Avatars/AvatarGroup/AvatarGroup.web.d.ts +4 -0
- package/dist/components/web/Avatars/AvatarGroup/avatarGroup.types.web.d.ts +9 -0
- package/dist/components/web/Avatars/AvatarGroup/index.web.d.ts +2 -0
- package/dist/components/web/Avatars/AvatarGroup/styles.web.d.ts +3 -0
- package/dist/components/web/Icons/icon_types.d.ts +1 -0
- package/dist/components/web/Icons/icons/bell.d.ts +8 -0
- package/dist/components/web/Icons/index.web.d.ts +1 -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
|
@@ -11,6 +11,8 @@ export { default as BrandButton } from './native/Buttons/BrandButton/index.nativ
|
|
|
11
11
|
export { default as SegmentedButton } from './native/Buttons/SegmentedButton/index.native';
|
|
12
12
|
export { default as Indicator } from './native/Indicator/Indicator/index.native';
|
|
13
13
|
export { default as Avatar } from './native/Avatars/Avatar/index.native';
|
|
14
|
+
export { default as AvatarGroup } from './native/Avatars/AvatarGroup/index.native';
|
|
15
|
+
export { default as TopAppBar } from './native/TopAppBar/TopAppBar/index.native';
|
|
14
16
|
export { default as CheckIcon } from './native/Icons/icons/check';
|
|
15
17
|
export { default as InfoIcon } from './native/Icons/icons/info';
|
|
16
18
|
export { default as ChevronDownIcon } from './native/Icons/icons/chevronDown';
|
|
@@ -10,6 +10,7 @@ export { default as BrandButton } from './web/Buttons/BrandButton/index.web';
|
|
|
10
10
|
export { default as SegmentedButton } from './web/Buttons/SegmentedButton/index.web';
|
|
11
11
|
export { default as Indicator } from './web/Indicator/Indicator/index.web';
|
|
12
12
|
export { default as Avatar } from './web/Avatars/Avatar/index.web';
|
|
13
|
+
export { default as AvatarGroup } from './web/Avatars/AvatarGroup/index.web';
|
|
13
14
|
export { default as CheckIcon } from './web/Icons/icons/check';
|
|
14
15
|
export { default as InfoIcon } from './web/Icons/icons/info';
|
|
15
16
|
export { default as ChevronDownIcon } from './web/Icons/icons/chevronDown';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HeadingContainerProps } from '../../Headings/HeadingContainer/HeadingContainer_types.native';
|
|
2
|
+
import { AvatarProps } from '../Avatar/Avatar.types.native';
|
|
3
|
+
export type AvatarGroupAlign = 'horizontal' | 'vertical';
|
|
4
|
+
export interface AvatarGroupProps {
|
|
5
|
+
avatar: AvatarProps;
|
|
6
|
+
headingContainer: HeadingContainerProps;
|
|
7
|
+
align: AvatarGroupAlign;
|
|
8
|
+
containerStyle?: any;
|
|
9
|
+
}
|
|
@@ -212,7 +212,8 @@ export declare const createColorMap: (Colors: ColorsType) => {
|
|
|
212
212
|
export declare const getButtonIconGeneralStyles: (colors: ColorsType, color: string, style: string, state: string, icon: any, size: string, showStroke?: boolean) => {
|
|
213
213
|
height: number;
|
|
214
214
|
width: number;
|
|
215
|
-
|
|
215
|
+
borderWidth: number;
|
|
216
|
+
borderColor: any;
|
|
216
217
|
paddingVertical: number;
|
|
217
218
|
paddingHorizontal: number;
|
|
218
219
|
backgroundColor: any;
|
|
@@ -3,6 +3,7 @@ export type IconExtendedSize = '6' | '8' | '12' | '16' | '24' | '32';
|
|
|
3
3
|
export type GatacaLogoIconSize = '12' | '16' | '24' | '32' | '64' | '71';
|
|
4
4
|
export type LoaderPrototipeIconSize = '24' | '40';
|
|
5
5
|
export type IconStyle = 'outline' | 'filled';
|
|
6
|
+
export type BellIconStyle = 'outline' | 'filled' | 'active';
|
|
6
7
|
export declare const iconStrokeWidthBySize: {
|
|
7
8
|
'6': string;
|
|
8
9
|
'8': string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BellIconStyle, IconSize, IconStyle } from '../icon_types';
|
|
2
|
+
type BellIconProps = {
|
|
3
|
+
size: IconSize;
|
|
4
|
+
color?: string;
|
|
5
|
+
style?: IconStyle | BellIconStyle;
|
|
6
|
+
};
|
|
7
|
+
declare const BellIcon: (props: BellIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BellIcon;
|
|
@@ -8,6 +8,7 @@ export { default as ShieldErrorIcon } from './icons/shieldError';
|
|
|
8
8
|
export { default as SlashIcon } from './icons/slash';
|
|
9
9
|
export { default as WarningIcon } from './icons/warning';
|
|
10
10
|
export { default as HomeIcon } from './icons/home';
|
|
11
|
+
export { default as BellIcon } from './icons/bell';
|
|
11
12
|
export { default as ChevronLeftIcon } from './icons/chevronLeft';
|
|
12
13
|
export { default as CheckCircleIcon } from './icons/checkCircle';
|
|
13
14
|
export { default as gatacaLogoIcon } from './icons/gatacaLogo';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../styles';
|
|
2
|
+
import { BellIconStyle, IconSize } from '../../Icons/icon_types';
|
|
3
|
+
export declare const topAppBarIconMap: {
|
|
4
|
+
[key: string]: React.FC<{
|
|
5
|
+
size: IconSize;
|
|
6
|
+
color: string;
|
|
7
|
+
style?: BellIconStyle;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
export declare const topAppBarShadows: (colors: ColorsType) => {
|
|
11
|
+
elevation: number;
|
|
12
|
+
shadowOffset: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
xAxis: number;
|
|
17
|
+
yAxis: number;
|
|
18
|
+
shadowOpacity: number;
|
|
19
|
+
shadowColor: string;
|
|
20
|
+
}[];
|
|
21
|
+
export declare const topAppBarEmptyShadows: () => {
|
|
22
|
+
elevation: number;
|
|
23
|
+
shadowOffset: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
27
|
+
xAxis: number;
|
|
28
|
+
yAxis: number;
|
|
29
|
+
shadowOpacity: number;
|
|
30
|
+
shadowColor: string;
|
|
31
|
+
}[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
multiShadowWrapper: {
|
|
3
|
+
width: "100%";
|
|
4
|
+
};
|
|
5
|
+
topAppBarContainer: {
|
|
6
|
+
display: "flex";
|
|
7
|
+
justifyContent: "space-between";
|
|
8
|
+
flexDirection: "row";
|
|
9
|
+
alignItems: "center";
|
|
10
|
+
gap: number;
|
|
11
|
+
alignSelf: "stretch";
|
|
12
|
+
width: "100%";
|
|
13
|
+
flexShrink: number;
|
|
14
|
+
};
|
|
15
|
+
mainContainer: {
|
|
16
|
+
display: "flex";
|
|
17
|
+
gap: number;
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
justifyContent: "flex-start";
|
|
20
|
+
flexDirection: "row";
|
|
21
|
+
};
|
|
22
|
+
trailingContainter: {
|
|
23
|
+
alignSelf: "flex-end";
|
|
24
|
+
display: "flex";
|
|
25
|
+
flexDirection: "row";
|
|
26
|
+
justifyContent: "flex-end";
|
|
27
|
+
alignItems: "center";
|
|
28
|
+
minHeight: number;
|
|
29
|
+
gap: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { StyleType } from '../../../../styles';
|
|
2
|
+
import { ColorsType } from '../../../../styles/Colors';
|
|
3
|
+
import { AvatarColor, AvatarType } from '../../Avatars/Avatar/Avatar.types.native';
|
|
4
|
+
import { ButtonIconColor, ButtonIconState } from '../../Buttons/ButtonIcon/ButtonIcon.types.native';
|
|
5
|
+
import { BellIconStyle, IconSize, IconStyle } from '../../Icons/icon_types';
|
|
6
|
+
import { IndicatorColor, IndicatorType } from '../../Indicator/Indicator/indicator_types.native';
|
|
7
|
+
export type TopAppBarConfiguration = 'main-screen' | 'sub-screen' | 'sheet-screen';
|
|
8
|
+
export type TopAppBarSize = '28' | '16' | '14' | '10' | '8' | '5' | '4';
|
|
9
|
+
export type TopAppBarType = 'quantity' | 'status';
|
|
10
|
+
export type TopAppBarTrailingContainerIcon = 'bell' | 'moreVertical' | 'trash' | 'search';
|
|
11
|
+
export interface TopAppBarProps {
|
|
12
|
+
configuration: TopAppBarConfiguration;
|
|
13
|
+
bg?: boolean;
|
|
14
|
+
showBackIcon?: boolean;
|
|
15
|
+
backButtonAction?: (x?: any) => void;
|
|
16
|
+
text?: string;
|
|
17
|
+
trailingContainer?: {
|
|
18
|
+
leadingIcon?: {
|
|
19
|
+
icon: TopAppBarTrailingContainerIcon;
|
|
20
|
+
leadingIconAction?: (x?: any) => void;
|
|
21
|
+
style?: IconStyle | BellIconStyle;
|
|
22
|
+
};
|
|
23
|
+
trailingIcon?: {
|
|
24
|
+
icon: TopAppBarTrailingContainerIcon;
|
|
25
|
+
trailingIconAction?: (x?: any) => void;
|
|
26
|
+
style?: IconStyle | BellIconStyle;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
avatar?: {
|
|
30
|
+
type: AvatarType;
|
|
31
|
+
image?: string;
|
|
32
|
+
text?: string;
|
|
33
|
+
color?: AvatarColor;
|
|
34
|
+
showIndicator?: boolean;
|
|
35
|
+
indicator?: {
|
|
36
|
+
color?: IndicatorColor;
|
|
37
|
+
type?: IndicatorType;
|
|
38
|
+
quantity?: number;
|
|
39
|
+
};
|
|
40
|
+
showButtonIcon?: boolean;
|
|
41
|
+
buttonIcon?: {
|
|
42
|
+
color?: ButtonIconColor;
|
|
43
|
+
state?: ButtonIconState;
|
|
44
|
+
Icon?: React.FC<{
|
|
45
|
+
size: IconSize;
|
|
46
|
+
style: IconStyle;
|
|
47
|
+
color: string;
|
|
48
|
+
}>;
|
|
49
|
+
onPress: (x?: any) => void;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
headingContainerText?: string;
|
|
53
|
+
containerStyle?: any;
|
|
54
|
+
}
|
|
55
|
+
export declare const TopAppBarBorderWidthySize: Record<string, number>;
|
|
56
|
+
export declare const createBgColorMap: (Colors: ColorsType) => {
|
|
57
|
+
purple: string;
|
|
58
|
+
red: string;
|
|
59
|
+
green: string;
|
|
60
|
+
blue: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const fontMap: (fontStyles: StyleType) => {
|
|
63
|
+
'28': import("../../../../styles").FontsStyle;
|
|
64
|
+
'16': import("../../../../styles").FontsStyle;
|
|
65
|
+
'14': import("../../../../styles").FontsStyle;
|
|
66
|
+
'10': import("../../../../styles").FontsStyle;
|
|
67
|
+
'8': import("../../../../styles").FontsStyle;
|
|
68
|
+
'5': import("../../../../styles").FontsStyle;
|
|
69
|
+
'4': import("../../../../styles").FontsStyle;
|
|
70
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HeadingContainerProps } from '../../Headings/HeadingContainer/HeadingContainer_types.web';
|
|
2
|
+
import { AvatarProps } from '../Avatar/Avatar.types.web';
|
|
3
|
+
export type AvatarGroupAlign = 'horizontal' | 'vertical';
|
|
4
|
+
export interface AvatarGroupProps {
|
|
5
|
+
avatar: AvatarProps;
|
|
6
|
+
headingContainer: HeadingContainerProps;
|
|
7
|
+
align: AvatarGroupAlign;
|
|
8
|
+
containerStyle?: any;
|
|
9
|
+
}
|
|
@@ -3,6 +3,7 @@ export type IconExtendedSize = '6' | '8' | '12' | '16' | '24' | '32';
|
|
|
3
3
|
export type GatacaLogoIconSize = '12' | '16' | '24' | '32' | '64' | '71';
|
|
4
4
|
export type LoaderPrototipeIconSize = '24' | '40';
|
|
5
5
|
export type IconStyle = 'outline' | 'filled';
|
|
6
|
+
export type BellIconStyle = 'outline' | 'filled' | 'active';
|
|
6
7
|
export declare const iconStrokeWidthBySize: {
|
|
7
8
|
'6': string;
|
|
8
9
|
'8': string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BellIconStyle, IconSize, IconStyle } from '../icon_types';
|
|
2
|
+
type BellIconProps = {
|
|
3
|
+
size: IconSize;
|
|
4
|
+
color?: string;
|
|
5
|
+
style?: IconStyle | BellIconStyle;
|
|
6
|
+
};
|
|
7
|
+
declare const BellIcon: (props: BellIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BellIcon;
|
|
@@ -7,6 +7,7 @@ export { default as ShieldCheckIcon } from './icons/shieldCheck';
|
|
|
7
7
|
export { default as ShieldErrorIcon } from './icons/shieldError';
|
|
8
8
|
export { default as SlashIcon } from './icons/slash';
|
|
9
9
|
export { default as WarningIcon } from './icons/warning';
|
|
10
|
+
export { default as BellIcon } from './icons/bell';
|
|
10
11
|
export { default as HomeIcon } from './icons/home';
|
|
11
12
|
export { default as ChevronLeftIcon } from './icons/chevronLeft';
|
|
12
13
|
export { default as CheckCircleIcon } from './icons/checkCircle';
|