@gataca/design-system 1.0.22 → 1.0.24
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/Icons/icons/moreHorizontal.d.ts +8 -0
- package/dist/components/native/Icons/index.native.d.ts +1 -0
- package/dist/components/native/Lists/ListItem/listItem.config.native.d.ts +74 -0
- package/dist/components/native/Lists/ListItem/listItem_styles.native.d.ts +0 -10
- package/dist/components/native/Lists/ListItem/listItem_types.native.d.ts +11 -21
- package/dist/components/native/Lists/ListMetaContainer/listMetaContainer_types.native.d.ts +22 -3
- package/dist/components/native/TopAppBar/TopAppBar/topAppBar_types.native.d.ts +11 -3
- package/dist/components/web/Buttons/RoundedButton/RoundedButton.config.web.d.ts +2 -4
- package/dist/components/web/Icons/icons/moreHorizontal.d.ts +9 -0
- package/dist/components/web/Icons/index.web.d.ts +1 -0
- package/dist/components/web/Lists/ListItem/listItem.config.web.d.ts +62 -0
- package/dist/components/web/Lists/ListItem/listItem_styles.web.d.ts +0 -1
- package/dist/components/web/Lists/ListItem/listItem_types.web.d.ts +15 -26
- package/dist/components/web/Lists/ListMetaContainer/listMetaContainer_types.web.d.ts +24 -3
- 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
|
@@ -134,6 +134,7 @@ export { default as MinusIcon } from './native/Icons/icons/minus';
|
|
|
134
134
|
export { default as MoneyIcon } from './native/Icons/icons/money';
|
|
135
135
|
export { default as MonitorIcon } from './native/Icons/icons/monitor';
|
|
136
136
|
export { default as MoreVerticalIcon } from './native/Icons/icons/moreVertical';
|
|
137
|
+
export { default as MoreHorizontalIcon } from './native/Icons/icons/moreHorizontal';
|
|
137
138
|
export { default as PencilIcon } from './native/Icons/icons/pencil';
|
|
138
139
|
export { default as PlayCircleIcon } from './native/Icons/icons/playCircle';
|
|
139
140
|
export { default as PlusSquaresIcon } from './native/Icons/icons/plusSquares';
|
|
@@ -128,6 +128,7 @@ export { default as MinusIcon } from './web/Icons/icons/minus';
|
|
|
128
128
|
export { default as MoneyIcon } from './web/Icons/icons/money';
|
|
129
129
|
export { default as MonitorIcon } from './web/Icons/icons/monitor';
|
|
130
130
|
export { default as MoreVerticalIcon } from './web/Icons/icons/moreVertical';
|
|
131
|
+
export { default as MoreHorizontalIcon } from './web/Icons/icons/moreHorizontal';
|
|
131
132
|
export { default as PencilIcon } from './web/Icons/icons/pencil';
|
|
132
133
|
export { default as PlayCircleIcon } from './web/Icons/icons/playCircle';
|
|
133
134
|
export { default as PlusSquaresIcon } from './web/Icons/icons/plusSquares';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconSize } from '../icon_types';
|
|
2
|
+
type MoreHorizontalIconProps = {
|
|
3
|
+
id?: string;
|
|
4
|
+
size: IconSize;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const MoreHorizontalIcon: (props: MoreHorizontalIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default MoreHorizontalIcon;
|
|
@@ -97,6 +97,7 @@ export { default as MinusIcon } from './icons/minus';
|
|
|
97
97
|
export { default as MoneyIcon } from './icons/money';
|
|
98
98
|
export { default as MonitorIcon } from './icons/monitor';
|
|
99
99
|
export { default as MoreVerticalIcon } from './icons/moreVertical';
|
|
100
|
+
export { default as MoreHorizontalIcon } from './icons/moreHorizontal';
|
|
100
101
|
export { default as PencilIcon } from './icons/pencil';
|
|
101
102
|
export { default as PlayCircleIcon } from './icons/playCircle';
|
|
102
103
|
export { default as PlusSquaresIcon } from './icons/plusSquares';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../utils/theming';
|
|
2
|
+
import { ListItemColor, ListItemState, ListItemType } from './listItem_types.native';
|
|
3
|
+
export declare const createColorMap: (Colors: ColorsType) => {
|
|
4
|
+
white: {
|
|
5
|
+
enable: string;
|
|
6
|
+
hover: string;
|
|
7
|
+
active: string;
|
|
8
|
+
};
|
|
9
|
+
grey: {
|
|
10
|
+
enable: string;
|
|
11
|
+
hover: string;
|
|
12
|
+
active: string;
|
|
13
|
+
};
|
|
14
|
+
none: {
|
|
15
|
+
enable: string;
|
|
16
|
+
hover: string;
|
|
17
|
+
active: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const getContainerStyles: (colors: ColorsType, color?: ListItemColor, type?: ListItemType, state?: ListItemState) => {
|
|
21
|
+
borderBottomRightRadius: number;
|
|
22
|
+
borderBottomLeftRadius: number;
|
|
23
|
+
borderRadius?: undefined;
|
|
24
|
+
borderWidth: number;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
borderTopWidth?: undefined;
|
|
27
|
+
borderTopColor?: undefined;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
} | {
|
|
30
|
+
borderRadius: number;
|
|
31
|
+
borderBottomRightRadius?: undefined;
|
|
32
|
+
borderBottomLeftRadius?: undefined;
|
|
33
|
+
borderWidth: number;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
borderTopWidth?: undefined;
|
|
36
|
+
borderTopColor?: undefined;
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
} | {
|
|
39
|
+
borderBottomRightRadius: number;
|
|
40
|
+
borderBottomLeftRadius: number;
|
|
41
|
+
borderRadius?: undefined;
|
|
42
|
+
borderTopWidth: number;
|
|
43
|
+
borderTopColor: string;
|
|
44
|
+
borderWidth?: undefined;
|
|
45
|
+
borderColor?: undefined;
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
} | {
|
|
48
|
+
borderRadius: number;
|
|
49
|
+
borderBottomRightRadius?: undefined;
|
|
50
|
+
borderBottomLeftRadius?: undefined;
|
|
51
|
+
borderTopWidth: number;
|
|
52
|
+
borderTopColor: string;
|
|
53
|
+
borderWidth?: undefined;
|
|
54
|
+
borderColor?: undefined;
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
} | {
|
|
57
|
+
borderBottomRightRadius: number;
|
|
58
|
+
borderBottomLeftRadius: number;
|
|
59
|
+
borderRadius?: undefined;
|
|
60
|
+
borderWidth: number;
|
|
61
|
+
borderColor?: undefined;
|
|
62
|
+
borderTopWidth?: undefined;
|
|
63
|
+
borderTopColor?: undefined;
|
|
64
|
+
backgroundColor: string;
|
|
65
|
+
} | {
|
|
66
|
+
borderRadius: number;
|
|
67
|
+
borderBottomRightRadius?: undefined;
|
|
68
|
+
borderBottomLeftRadius?: undefined;
|
|
69
|
+
borderWidth: number;
|
|
70
|
+
borderColor?: undefined;
|
|
71
|
+
borderTopWidth?: undefined;
|
|
72
|
+
borderTopColor?: undefined;
|
|
73
|
+
backgroundColor: string;
|
|
74
|
+
};
|
|
@@ -12,7 +12,6 @@ declare const _default: {
|
|
|
12
12
|
display: "flex";
|
|
13
13
|
flexDirection: "row";
|
|
14
14
|
justifyContent: "space-between";
|
|
15
|
-
alignItems: "center";
|
|
16
15
|
gap: number;
|
|
17
16
|
flexWrap: "wrap";
|
|
18
17
|
alignSelf: "stretch";
|
|
@@ -24,17 +23,8 @@ declare const _default: {
|
|
|
24
23
|
display: "flex";
|
|
25
24
|
flexDirection: "row";
|
|
26
25
|
justifyContent: "flex-start";
|
|
27
|
-
alignItems: "center";
|
|
28
26
|
gap: number;
|
|
29
27
|
flex: number;
|
|
30
28
|
};
|
|
31
|
-
notificationContainer: {
|
|
32
|
-
display: "flex";
|
|
33
|
-
flexDirection: "column";
|
|
34
|
-
justifyContent: "center";
|
|
35
|
-
alignItems: "center";
|
|
36
|
-
cursor: "pointer";
|
|
37
|
-
marginLeft: "auto";
|
|
38
|
-
};
|
|
39
29
|
};
|
|
40
30
|
export default _default;
|
|
@@ -11,26 +11,20 @@ import { IconSize } from '../../Icons/icon_types';
|
|
|
11
11
|
import { IconGroupProps } from '../../Icons/IconGroup/iconGroup_types.native';
|
|
12
12
|
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.native';
|
|
13
13
|
import { SwitchProps } from '../../Switch/Switch/switch_types.native';
|
|
14
|
-
import {
|
|
15
|
-
export type ListItemType = 'filled' | '
|
|
16
|
-
export type ListItemState = 'enable' | 'active';
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
19
|
-
export type ListItemColor = 'black' | 'gray' | 'white' | 'red';
|
|
20
|
-
export type ListItemAlign = 'left' | 'right';
|
|
14
|
+
import { ListMetaContainerProps } from '../ListMetaContainer/listMetaContainer_types.native';
|
|
15
|
+
export type ListItemType = 'filled' | 'outline' | 'divider' | 'select';
|
|
16
|
+
export type ListItemState = 'enable' | 'hover' | 'active';
|
|
17
|
+
export type ListItemColor = 'white' | 'grey' | 'none';
|
|
18
|
+
export type ListItemAlign = 'center' | 'top';
|
|
21
19
|
export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'chip' | 'indicator' | 'buttonIcon' | 'chipGroup';
|
|
22
|
-
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | '
|
|
20
|
+
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'icon' | 'segmentedButton' | 'listMetaContainer' | 'action' | 'button' | 'chip' | 'iconGroup';
|
|
23
21
|
export interface ListItemProps {
|
|
24
22
|
id?: string;
|
|
23
|
+
color?: ListItemColor;
|
|
25
24
|
type?: ListItemType;
|
|
26
25
|
state?: ListItemState;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
content?: string;
|
|
30
|
-
extraInfo?: string | React.Component | any;
|
|
31
|
-
mainTextColor?: ListMetaContainerColor;
|
|
32
|
-
mainTextInfoColor?: ListMetaContainerColor;
|
|
33
|
-
mainActionItem?: ActionItemsProps;
|
|
26
|
+
align?: ListItemAlign;
|
|
27
|
+
listMetaContainer?: ListMetaContainerProps;
|
|
34
28
|
leading: ListItemLeading;
|
|
35
29
|
trailing: ListItemTrailing;
|
|
36
30
|
helperText?: string;
|
|
@@ -55,16 +49,12 @@ export interface ListItemProps {
|
|
|
55
49
|
}>;
|
|
56
50
|
color?: string;
|
|
57
51
|
};
|
|
52
|
+
typeSelectRadioButton?: RadioButtonProps;
|
|
58
53
|
segmentedButton?: SegmentedButtonProps;
|
|
59
|
-
|
|
54
|
+
trailingListMetaContainer?: ListMetaContainerProps;
|
|
60
55
|
hasHoverStyle?: boolean;
|
|
61
56
|
containerStyle?: any;
|
|
62
57
|
actionItem?: ActionItemsProps;
|
|
63
|
-
notification?: {
|
|
64
|
-
id?: string;
|
|
65
|
-
text: string;
|
|
66
|
-
onPress: (x?: any) => void;
|
|
67
|
-
};
|
|
68
58
|
button?: ButtonProps;
|
|
69
59
|
leadingChip?: ChipProps;
|
|
70
60
|
chip?: ChipProps;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.native';
|
|
2
|
+
import { RoundedButtonProps } from '../../Buttons/RoundedButton/RoundedButton.types.native';
|
|
2
3
|
import { ChipProps } from '../../Chips/Chip/Chip.types.native';
|
|
4
|
+
import { IconSize, IconStyle } from '../../Icons/icon_types';
|
|
3
5
|
import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.native';
|
|
4
6
|
export type ListMetaContainerCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
7
|
+
export type ListMetaContainerType = 'main' | 'notification';
|
|
8
|
+
export type ListMetaContainerMainColor = 'white' | 'black';
|
|
5
9
|
export type ListMetaContainerSize = 'medium' | 'small';
|
|
6
|
-
export type ListMetaContainerColor = 'black' | 'gray' | '
|
|
10
|
+
export type ListMetaContainerColor = 'black' | 'gray' | 'purple' | 'white';
|
|
7
11
|
export type ListMetaContainerAlign = 'left' | 'right';
|
|
8
12
|
export interface ListMetaContainerProps {
|
|
9
13
|
id?: string;
|
|
10
14
|
condition: ListMetaContainerCondition;
|
|
15
|
+
type?: ListMetaContainerType;
|
|
11
16
|
size?: ListMetaContainerSize;
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
mainColor?: ListMetaContainerMainColor;
|
|
18
|
+
titleColor?: ListMetaContainerColor;
|
|
19
|
+
contentColor?: ListMetaContainerColor;
|
|
14
20
|
align?: ListMetaContainerAlign;
|
|
15
21
|
tooltip?: ParentComponentTooltipProps;
|
|
16
22
|
chip?: ChipProps;
|
|
@@ -18,5 +24,18 @@ export interface ListMetaContainerProps {
|
|
|
18
24
|
title?: string;
|
|
19
25
|
content?: string;
|
|
20
26
|
extraInfo?: string | React.Component | any;
|
|
27
|
+
icon16px?: {
|
|
28
|
+
id?: string;
|
|
29
|
+
color?: string;
|
|
30
|
+
style?: IconStyle;
|
|
31
|
+
Icon?: React.FC<{
|
|
32
|
+
id?: string;
|
|
33
|
+
size: IconSize;
|
|
34
|
+
style?: IconStyle;
|
|
35
|
+
color: string;
|
|
36
|
+
}>;
|
|
37
|
+
onPress: (x?: any) => void;
|
|
38
|
+
};
|
|
39
|
+
roundedButton?: RoundedButtonProps;
|
|
21
40
|
containerStyle?: any;
|
|
22
41
|
}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
|
|
2
2
|
import { RoundedButtonState, TrailingIcon } from '../../Buttons/RoundedButton/RoundedButton.types.native';
|
|
3
3
|
import { BellIconStyle, IconSize, IconStyle } from '../../Icons/icon_types';
|
|
4
|
-
export type TopAppBarConfiguration = 'main-screen' | 'sub-screen' | 'sheet-screen';
|
|
4
|
+
export type TopAppBarConfiguration = 'main-screen' | 'sub-screen' | 'sheet-screen' | 'action-screen';
|
|
5
5
|
export type TopAppBarSize = '28' | '16' | '14' | '10' | '8' | '5' | '4';
|
|
6
6
|
export type TopAppBarType = 'quantity' | 'status';
|
|
7
|
-
export type TopAppBarTrailingContainerIcon = 'bell' | 'moreVertical' | 'trash' | 'search';
|
|
7
|
+
export type TopAppBarTrailingContainerIcon = 'bell' | 'moreVertical' | 'trash' | 'search' | 'settings';
|
|
8
8
|
export interface TopAppBarProps {
|
|
9
9
|
id?: string;
|
|
10
10
|
configuration: TopAppBarConfiguration;
|
|
11
11
|
bg?: boolean;
|
|
12
12
|
showBackIcon?: boolean;
|
|
13
13
|
backButtonAction?: (x?: any) => void;
|
|
14
|
-
|
|
14
|
+
centerText?: string;
|
|
15
|
+
leftTextWithAction?: {
|
|
16
|
+
text: string;
|
|
17
|
+
action: (x?: any) => void;
|
|
18
|
+
};
|
|
19
|
+
rightTextWithAction?: {
|
|
20
|
+
text: string;
|
|
21
|
+
action: (x?: any) => void;
|
|
22
|
+
};
|
|
15
23
|
trailingContainer?: {
|
|
16
24
|
leadingIcon?: {
|
|
17
25
|
icon: TopAppBarTrailingContainerIcon;
|
|
@@ -349,8 +349,7 @@ export declare const createColorMap: (Colors: ColorsType) => {
|
|
|
349
349
|
};
|
|
350
350
|
export declare const getRoundedButtonGeneralStyles: (colors: ColorsType, color: string, style: string, state: string, size: string) => {
|
|
351
351
|
minHeight: number;
|
|
352
|
-
|
|
353
|
-
paddingHorizontal: number;
|
|
352
|
+
padding: string;
|
|
354
353
|
backgroundColor: any;
|
|
355
354
|
borderColor: any;
|
|
356
355
|
borderWidth: number;
|
|
@@ -358,8 +357,7 @@ export declare const getRoundedButtonGeneralStyles: (colors: ColorsType, color:
|
|
|
358
357
|
cursor: string;
|
|
359
358
|
};
|
|
360
359
|
export declare const getRoundedButtonPaddings: (size: string, style: string) => {
|
|
361
|
-
|
|
362
|
-
paddingHorizontal: number;
|
|
360
|
+
padding: string;
|
|
363
361
|
};
|
|
364
362
|
export declare const getRoundedButtonMinHeight: (size: string) => 40 | 32;
|
|
365
363
|
export declare const getRoundedButtonContentStyles: (fontStyles: StyleType, colors: ColorsType, color: string, style: string, state: string, size: string) => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconSize } from '../icon_types';
|
|
2
|
+
type MoreHorizontalIconProps = {
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
size: IconSize;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const MoreHorizontalIcon: (props: MoreHorizontalIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default MoreHorizontalIcon;
|
|
@@ -97,6 +97,7 @@ export { default as MinusIcon } from './icons/minus';
|
|
|
97
97
|
export { default as MoneyIcon } from './icons/money';
|
|
98
98
|
export { default as MonitorIcon } from './icons/monitor';
|
|
99
99
|
export { default as MoreVerticalIcon } from './icons/moreVertical';
|
|
100
|
+
export { default as MoreHorizontalIcon } from './icons/moreHorizontal';
|
|
100
101
|
export { default as PencilIcon } from './icons/pencil';
|
|
101
102
|
export { default as PlayCircleIcon } from './icons/playCircle';
|
|
102
103
|
export { default as PlusSquaresIcon } from './icons/plusSquares';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../utils/theming';
|
|
2
|
+
import { ListItemColor, ListItemState, ListItemType } from './listItem_types.web';
|
|
3
|
+
export declare const createColorMap: (Colors: ColorsType) => {
|
|
4
|
+
white: {
|
|
5
|
+
enable: string;
|
|
6
|
+
hover: string;
|
|
7
|
+
active: string;
|
|
8
|
+
};
|
|
9
|
+
grey: {
|
|
10
|
+
enable: string;
|
|
11
|
+
hover: string;
|
|
12
|
+
active: string;
|
|
13
|
+
};
|
|
14
|
+
none: {
|
|
15
|
+
enable: string;
|
|
16
|
+
hover: string;
|
|
17
|
+
active: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const getContainerStyles: (colors: ColorsType, color?: ListItemColor, type?: ListItemType, state?: ListItemState) => {
|
|
21
|
+
borderBottomRightRadius: number;
|
|
22
|
+
borderBottomLeftRadius: number;
|
|
23
|
+
borderRadius?: undefined;
|
|
24
|
+
border: string;
|
|
25
|
+
borderTop?: undefined;
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
} | {
|
|
28
|
+
borderRadius: number;
|
|
29
|
+
borderBottomRightRadius?: undefined;
|
|
30
|
+
borderBottomLeftRadius?: undefined;
|
|
31
|
+
border: string;
|
|
32
|
+
borderTop?: undefined;
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
} | {
|
|
35
|
+
borderBottomRightRadius: number;
|
|
36
|
+
borderBottomLeftRadius: number;
|
|
37
|
+
borderRadius?: undefined;
|
|
38
|
+
borderTop: string;
|
|
39
|
+
border?: undefined;
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
} | {
|
|
42
|
+
borderRadius: number;
|
|
43
|
+
borderBottomRightRadius?: undefined;
|
|
44
|
+
borderBottomLeftRadius?: undefined;
|
|
45
|
+
borderTop: string;
|
|
46
|
+
border?: undefined;
|
|
47
|
+
backgroundColor: string;
|
|
48
|
+
} | {
|
|
49
|
+
borderBottomRightRadius: number;
|
|
50
|
+
borderBottomLeftRadius: number;
|
|
51
|
+
borderRadius?: undefined;
|
|
52
|
+
border: number;
|
|
53
|
+
borderTop?: undefined;
|
|
54
|
+
backgroundColor: string;
|
|
55
|
+
} | {
|
|
56
|
+
borderRadius: number;
|
|
57
|
+
borderBottomRightRadius?: undefined;
|
|
58
|
+
borderBottomLeftRadius?: undefined;
|
|
59
|
+
border: number;
|
|
60
|
+
borderTop?: undefined;
|
|
61
|
+
backgroundColor: string;
|
|
62
|
+
};
|
|
@@ -11,35 +11,30 @@ import { IconSize } from '../../Icons/icon_types';
|
|
|
11
11
|
import { IconGroupProps } from '../../Icons/IconGroup/iconGroup_types.web';
|
|
12
12
|
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.web';
|
|
13
13
|
import { SwitchProps } from '../../Switch/Switch/switch_types.web';
|
|
14
|
-
import {
|
|
15
|
-
export type ListItemType = 'filled' | '
|
|
16
|
-
export type ListItemState = 'enable' | 'active';
|
|
17
|
-
export type
|
|
18
|
-
export type
|
|
19
|
-
export type ListItemColor = 'black' | 'gray' | 'white' | 'red';
|
|
20
|
-
export type ListItemAlign = 'left' | 'right';
|
|
14
|
+
import { ListMetaContainerProps } from '../ListMetaContainer/listMetaContainer_types.web';
|
|
15
|
+
export type ListItemType = 'filled' | 'outline' | 'divider' | 'select';
|
|
16
|
+
export type ListItemState = 'enable' | 'hover' | 'active';
|
|
17
|
+
export type ListItemColor = 'white' | 'grey' | 'none';
|
|
18
|
+
export type ListItemAlign = 'center' | 'top';
|
|
21
19
|
export type ListItemLeading = 'none' | 'avatar' | 'credential' | 'icon' | 'indicator' | 'chip' | 'buttonIcon' | 'chipGroup';
|
|
22
|
-
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | '
|
|
20
|
+
export type ListItemTrailing = 'none' | 'checkbox' | 'switch' | 'radioButton' | 'icon' | 'segmentedButton' | 'listMetaContainer' | 'action' | 'button' | 'chip' | 'iconGroup';
|
|
23
21
|
export interface ListItemProps {
|
|
24
22
|
id?: string;
|
|
25
23
|
className?: string;
|
|
24
|
+
color?: ListItemColor;
|
|
26
25
|
type?: ListItemType;
|
|
27
26
|
state?: ListItemState;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
content?: string;
|
|
31
|
-
extraInfo?: string | React.Component | any;
|
|
32
|
-
mainTextColor?: ListMetaContainerColor;
|
|
33
|
-
mainActionItem?: ActionItemsProps;
|
|
34
|
-
mainTextInfoColor?: ListMetaContainerColor;
|
|
27
|
+
align?: ListItemAlign;
|
|
28
|
+
listMetaContainer?: ListMetaContainerProps;
|
|
35
29
|
leading: ListItemLeading;
|
|
36
30
|
trailing: ListItemTrailing;
|
|
37
31
|
helperText?: string;
|
|
38
32
|
avatar?: AvatarProps;
|
|
39
33
|
credential?: MiniCredentialCardProps;
|
|
40
|
-
|
|
34
|
+
leadingButtonIcon?: ButtonIconProps;
|
|
41
35
|
checkbox?: CheckboxProps;
|
|
42
36
|
switchOpt?: SwitchProps;
|
|
37
|
+
radioButton?: RadioButtonProps;
|
|
43
38
|
iconGroup?: IconGroupProps;
|
|
44
39
|
leadingIcon?: {
|
|
45
40
|
Icon: React.FC<{
|
|
@@ -56,20 +51,14 @@ export interface ListItemProps {
|
|
|
56
51
|
color?: string;
|
|
57
52
|
};
|
|
58
53
|
segmentedButton?: SegmentedButtonProps;
|
|
59
|
-
|
|
60
|
-
actionItem?: ActionItemsProps;
|
|
54
|
+
trailingListMetaContainer?: ListMetaContainerProps;
|
|
61
55
|
hasHoverStyle?: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
id?: string;
|
|
65
|
-
className?: string;
|
|
66
|
-
text: string;
|
|
67
|
-
onClick: (x?: any) => void;
|
|
68
|
-
};
|
|
56
|
+
containerStyle?: any;
|
|
57
|
+
actionItem?: ActionItemsProps;
|
|
69
58
|
button?: ButtonProps;
|
|
70
59
|
leadingChip?: ChipProps;
|
|
71
60
|
chip?: ChipProps;
|
|
72
61
|
chipGroup?: ChipGroupProps;
|
|
73
|
-
|
|
62
|
+
typeSelectRadioButton?: RadioButtonProps;
|
|
74
63
|
onClick?: (x?: any) => void;
|
|
75
64
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { ActionItemsProps } from '../../Action/ActionItems/actionItems_types.web';
|
|
2
|
+
import { RoundedButtonProps } from '../../Buttons/RoundedButton/RoundedButton.types.web';
|
|
2
3
|
import { ChipProps } from '../../Chips/Chip/Chip.types.web';
|
|
4
|
+
import { IconSize, IconStyle } from '../../Icons/icon_types';
|
|
3
5
|
import { ParentComponentTooltipProps } from '../../Tooltips/Tooltip/tooltip_types.web';
|
|
4
6
|
export type ListMetaContainerCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
7
|
+
export type ListMetaContainerType = 'main' | 'notification';
|
|
8
|
+
export type ListMetaContainerMainColor = 'white' | 'black';
|
|
5
9
|
export type ListMetaContainerSize = 'medium' | 'small';
|
|
6
|
-
export type ListMetaContainerColor = 'black' | 'gray' | '
|
|
10
|
+
export type ListMetaContainerColor = 'black' | 'gray' | 'purple' | 'white';
|
|
7
11
|
export type ListMetaContainerAlign = 'left' | 'right';
|
|
8
12
|
export interface ListMetaContainerProps {
|
|
9
13
|
id?: string;
|
|
10
14
|
className?: string;
|
|
11
15
|
condition: ListMetaContainerCondition;
|
|
16
|
+
type?: ListMetaContainerType;
|
|
12
17
|
size?: ListMetaContainerSize;
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
mainColor?: ListMetaContainerMainColor;
|
|
19
|
+
titleColor?: ListMetaContainerColor;
|
|
20
|
+
contentColor?: ListMetaContainerColor;
|
|
15
21
|
align?: ListMetaContainerAlign;
|
|
16
22
|
tooltip?: ParentComponentTooltipProps;
|
|
17
23
|
chip?: ChipProps;
|
|
@@ -19,5 +25,20 @@ export interface ListMetaContainerProps {
|
|
|
19
25
|
title?: string;
|
|
20
26
|
content?: string;
|
|
21
27
|
extraInfo?: string | React.Component | any;
|
|
28
|
+
icon16px?: {
|
|
29
|
+
id?: string;
|
|
30
|
+
className?: string;
|
|
31
|
+
color?: string;
|
|
32
|
+
style?: IconStyle;
|
|
33
|
+
Icon?: React.FC<{
|
|
34
|
+
id?: string;
|
|
35
|
+
className?: string;
|
|
36
|
+
size: IconSize;
|
|
37
|
+
style?: IconStyle;
|
|
38
|
+
color: string;
|
|
39
|
+
}>;
|
|
40
|
+
onClick: (x?: any) => void;
|
|
41
|
+
};
|
|
42
|
+
roundedButton?: RoundedButtonProps;
|
|
22
43
|
containerStyle?: any;
|
|
23
44
|
}
|