@gataca/design-system 0.2.25 → 0.2.27
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/native/Buttons/RoundedButton/RoundedButton.types.native.d.ts +2 -2
- package/dist/components/native/TopAppBar/TopAppBar/topAppBar_types.native.d.ts +9 -43
- package/dist/components/web/Buttons/RoundedButton/RoundedButton.types.web.d.ts +1 -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
|
@@ -2,7 +2,7 @@ export type RoundedButtonColor = 'yellow' | 'red' | 'grey' | 'white' | 'purple'
|
|
|
2
2
|
export type RoundedButtonState = 'enable' | 'hover' | 'focus' | 'disable';
|
|
3
3
|
export type RoundedButtonStyle = 'fill' | 'outline';
|
|
4
4
|
export type Size = 'small' | 'xsmall';
|
|
5
|
-
export type LeadingIcon = 'check' | 'alert' | 'warning' | 'slash';
|
|
5
|
+
export type LeadingIcon = 'check' | 'alert' | 'warning' | 'slash' | 'plus';
|
|
6
6
|
export type TrailingIcon = 'close' | 'chevronDown' | 'info';
|
|
7
7
|
export interface RoundedButtonProps {
|
|
8
8
|
text: string;
|
|
@@ -13,5 +13,5 @@ export interface RoundedButtonProps {
|
|
|
13
13
|
leadingIcon?: LeadingIcon;
|
|
14
14
|
trailingIcon?: TrailingIcon;
|
|
15
15
|
showText?: boolean;
|
|
16
|
-
onPress
|
|
16
|
+
onPress: (x?: any) => void;
|
|
17
17
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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';
|
|
1
|
+
import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
|
|
2
|
+
import { LeadingIcon, RoundedButtonState, TrailingIcon } from '../../Buttons/RoundedButton/RoundedButton.types.native';
|
|
3
|
+
import { BellIconStyle, IconStyle } from '../../Icons/icon_types';
|
|
7
4
|
export type TopAppBarConfiguration = 'main-screen' | 'sub-screen' | 'sheet-screen';
|
|
8
5
|
export type TopAppBarSize = '28' | '16' | '14' | '10' | '8' | '5' | '4';
|
|
9
6
|
export type TopAppBarType = 'quantity' | 'status';
|
|
@@ -25,46 +22,15 @@ export interface TopAppBarProps {
|
|
|
25
22
|
trailingIconAction?: (x?: any) => void;
|
|
26
23
|
style?: IconStyle | BellIconStyle;
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
}>;
|
|
25
|
+
roundedButton?: {
|
|
26
|
+
text: string;
|
|
27
|
+
state?: RoundedButtonState;
|
|
28
|
+
leadingIcon?: LeadingIcon;
|
|
29
|
+
trailingIcon?: TrailingIcon;
|
|
49
30
|
onPress: (x?: any) => void;
|
|
50
31
|
};
|
|
51
32
|
};
|
|
33
|
+
avatar?: AvatarProps;
|
|
52
34
|
headingContainerText?: string;
|
|
53
35
|
containerStyle?: any;
|
|
54
36
|
}
|
|
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
|
-
};
|
|
@@ -2,7 +2,7 @@ export type RoundedButtonColor = 'yellow' | 'red' | 'grey' | 'white' | 'purple'
|
|
|
2
2
|
export type RoundedButtonState = 'enable' | 'hover' | 'focus' | 'disable';
|
|
3
3
|
export type RoundedButtonStyle = 'fill' | 'outline';
|
|
4
4
|
export type Size = 'small' | 'xsmall';
|
|
5
|
-
export type LeadingIcon = 'check' | 'alert' | 'warning' | 'slash';
|
|
5
|
+
export type LeadingIcon = 'check' | 'alert' | 'warning' | 'slash' | 'plus';
|
|
6
6
|
export type TrailingIcon = 'close' | 'chevronDown' | 'info';
|
|
7
7
|
export interface RoundedButtonProps {
|
|
8
8
|
text: string;
|