@zohodesk/dot 1.3.0 → 1.3.2
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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -12,105 +12,98 @@ import { Icon } from '@zohodesk/icons';
|
|
|
12
12
|
import style from '../../../avatar/AvatarUser/AvatarUser.module.css';
|
|
13
13
|
/**** Methods ****/
|
|
14
14
|
|
|
15
|
-
export default
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
})) : null);
|
|
108
|
-
}
|
|
109
|
-
|
|
15
|
+
export default function AvatarUser(props) {
|
|
16
|
+
let {
|
|
17
|
+
src,
|
|
18
|
+
alternateSrc,
|
|
19
|
+
name,
|
|
20
|
+
size,
|
|
21
|
+
onClick,
|
|
22
|
+
onDelete,
|
|
23
|
+
title,
|
|
24
|
+
isPaid,
|
|
25
|
+
isPortal,
|
|
26
|
+
isLocked,
|
|
27
|
+
dataId,
|
|
28
|
+
dataSelectorId,
|
|
29
|
+
needTitle,
|
|
30
|
+
needDelete,
|
|
31
|
+
initial,
|
|
32
|
+
palette,
|
|
33
|
+
textPalette,
|
|
34
|
+
customTextClass,
|
|
35
|
+
iconName,
|
|
36
|
+
iconSize,
|
|
37
|
+
iconClass,
|
|
38
|
+
iconColor,
|
|
39
|
+
i18nKeys,
|
|
40
|
+
customProps
|
|
41
|
+
} = props;
|
|
42
|
+
let {
|
|
43
|
+
AvatarUserProps = {},
|
|
44
|
+
AvatarIconProps = {},
|
|
45
|
+
AvatarProps = {}
|
|
46
|
+
} = customProps;
|
|
47
|
+
let {
|
|
48
|
+
paidTitle = 'Paid User',
|
|
49
|
+
portalTitle = 'End User',
|
|
50
|
+
lockTitle = 'Locked'
|
|
51
|
+
} = i18nKeys;
|
|
52
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
53
|
+
className: `${style.container} ${style[size]}`,
|
|
54
|
+
"data-id": dataId || name || iconName,
|
|
55
|
+
"data-test-id": dataId || name || iconName,
|
|
56
|
+
"data-selector-id": dataSelectorId
|
|
57
|
+
}, AvatarUserProps), iconName ? /*#__PURE__*/React.createElement(AvatarIcon, _extends({
|
|
58
|
+
name: iconName,
|
|
59
|
+
iconSize: iconSize,
|
|
60
|
+
size: size,
|
|
61
|
+
iconClass: iconClass,
|
|
62
|
+
dataId: iconName,
|
|
63
|
+
iconColor: iconColor,
|
|
64
|
+
title: title
|
|
65
|
+
}, AvatarIconProps)) : /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
66
|
+
src: src,
|
|
67
|
+
name: name,
|
|
68
|
+
initial: initial,
|
|
69
|
+
title: title,
|
|
70
|
+
onClick: onClick,
|
|
71
|
+
size: size,
|
|
72
|
+
needTitle: needTitle,
|
|
73
|
+
palette: palette,
|
|
74
|
+
textPalette: textPalette,
|
|
75
|
+
customClass: customTextClass,
|
|
76
|
+
alternateSrc: alternateSrc
|
|
77
|
+
}, AvatarProps)), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
78
|
+
"data-title": paidTitle,
|
|
79
|
+
className: style.paid,
|
|
80
|
+
"data-id": "paidUser",
|
|
81
|
+
"data-test-id": "paidUser"
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
83
|
+
name: "ZD-paiduser"
|
|
84
|
+
})) : null, isPortal ? /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
"data-title": portalTitle,
|
|
86
|
+
className: style.portal,
|
|
87
|
+
"data-id": "portalUser",
|
|
88
|
+
"data-test-id": "portalUser"
|
|
89
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
90
|
+
name: "ZD-globe1"
|
|
91
|
+
})) : null, isLocked ? /*#__PURE__*/React.createElement("span", {
|
|
92
|
+
"data-title": lockTitle,
|
|
93
|
+
className: style.lock,
|
|
94
|
+
"data-id": "locked",
|
|
95
|
+
"data-test-id": "locked"
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
97
|
+
name: "ZD-lock01"
|
|
98
|
+
})) : null, needDelete ? /*#__PURE__*/React.createElement("span", {
|
|
99
|
+
className: style.delete,
|
|
100
|
+
"data-id": "dltContactPhoto",
|
|
101
|
+
"data-test-id": "dltContactPhoto",
|
|
102
|
+
onClick: onDelete
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
104
|
+
name: "ZD-delete2",
|
|
105
|
+
size: "15"
|
|
106
|
+
})) : null);
|
|
110
107
|
}
|
|
111
108
|
AvatarUser.propTypes = propTypes;
|
|
112
|
-
AvatarUser.defaultProps = defaultProps;
|
|
113
|
-
// AvatarUser.docs = {
|
|
114
|
-
// componentGroup: 'Avatar Group'
|
|
115
|
-
// };
|
|
116
|
-
// }
|
|
109
|
+
AvatarUser.defaultProps = defaultProps;
|
|
@@ -6,93 +6,86 @@ import { propTypes } from '../../../avatar/AvatarWithTeam/props/propTypes';
|
|
|
6
6
|
import Avatar from '@zohodesk/components/es/v1/Avatar/Avatar';
|
|
7
7
|
import AvatarTeam from '@zohodesk/components/es/v1/AvatarTeam/AvatarTeam';
|
|
8
8
|
import style from '../../../avatar/AvatarWithTeam/AvatarWithTeam.module.css';
|
|
9
|
-
export default
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}, AvatarTeam2Props))) : null);
|
|
90
|
-
}
|
|
91
|
-
|
|
9
|
+
export default function AvatarWithTeam(props) {
|
|
10
|
+
let {
|
|
11
|
+
name,
|
|
12
|
+
size,
|
|
13
|
+
src,
|
|
14
|
+
teamName,
|
|
15
|
+
isTeam,
|
|
16
|
+
needTitle = false,
|
|
17
|
+
initial,
|
|
18
|
+
title,
|
|
19
|
+
palette,
|
|
20
|
+
textPalette,
|
|
21
|
+
customTextClass,
|
|
22
|
+
teamClassName,
|
|
23
|
+
borderOnActive,
|
|
24
|
+
customProps,
|
|
25
|
+
dataSelectorId,
|
|
26
|
+
teamBorderActive
|
|
27
|
+
} = props;
|
|
28
|
+
let {
|
|
29
|
+
AvatarWithTeamProps = {},
|
|
30
|
+
Avatar1Props = {},
|
|
31
|
+
AvatarTeam1Props = {},
|
|
32
|
+
Avatar2Props = {},
|
|
33
|
+
AvatarTeam2Props = {}
|
|
34
|
+
} = customProps;
|
|
35
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
36
|
+
className: `${style.container} `,
|
|
37
|
+
"data-id": "avatarWithTeamId",
|
|
38
|
+
"data-test-id": "avatarWithTeamId",
|
|
39
|
+
"data-selector-id": dataSelectorId
|
|
40
|
+
}, AvatarWithTeamProps), isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
41
|
+
name: name,
|
|
42
|
+
src: src,
|
|
43
|
+
size: size,
|
|
44
|
+
initial: initial,
|
|
45
|
+
needTitle: needTitle,
|
|
46
|
+
palette: palette,
|
|
47
|
+
textPalette: textPalette,
|
|
48
|
+
customClass: customTextClass,
|
|
49
|
+
borderOnActive: borderOnActive
|
|
50
|
+
}, Avatar1Props)) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
51
|
+
name: name,
|
|
52
|
+
src: src,
|
|
53
|
+
size: size,
|
|
54
|
+
needTitle: needTitle,
|
|
55
|
+
title: needTitle ? title : undefined,
|
|
56
|
+
palette: palette,
|
|
57
|
+
textPalette: textPalette,
|
|
58
|
+
customClass: {
|
|
59
|
+
customAvatar: customTextClass
|
|
60
|
+
},
|
|
61
|
+
borderOnActive: borderOnActive
|
|
62
|
+
}, AvatarTeam1Props)) : /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
63
|
+
name: name,
|
|
64
|
+
src: src,
|
|
65
|
+
size: size,
|
|
66
|
+
initial: initial,
|
|
67
|
+
needTitle: needTitle,
|
|
68
|
+
palette: palette,
|
|
69
|
+
textPalette: textPalette,
|
|
70
|
+
customClass: customTextClass,
|
|
71
|
+
borderOnActive: borderOnActive
|
|
72
|
+
}, Avatar2Props)), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
73
|
+
className: `${style.teamAvatar} ${teamClassName} `,
|
|
74
|
+
"data-id": "teamNameTestId",
|
|
75
|
+
"data-test-id": "teamNameTestId",
|
|
76
|
+
"data-title": needTitle ? title : undefined
|
|
77
|
+
}, /*#__PURE__*/React.createElement(AvatarTeam, _extends({
|
|
78
|
+
name: teamName,
|
|
79
|
+
size: "small",
|
|
80
|
+
palette: palette,
|
|
81
|
+
textPalette: textPalette,
|
|
82
|
+
isFilled: true,
|
|
83
|
+
needTitle: needTitle,
|
|
84
|
+
customClass: {
|
|
85
|
+
customAvatar: customTextClass
|
|
86
|
+
},
|
|
87
|
+
borderOnActive: teamBorderActive
|
|
88
|
+
}, AvatarTeam2Props))) : null);
|
|
92
89
|
}
|
|
93
90
|
AvatarWithTeam.defaultProps = defaultProps;
|
|
94
|
-
AvatarWithTeam.propTypes = propTypes;
|
|
95
|
-
// AvatarWithTeam.docs = {
|
|
96
|
-
// componentGroup: 'Avatar Group'
|
|
97
|
-
// };
|
|
98
|
-
// }
|
|
91
|
+
AvatarWithTeam.propTypes = propTypes;
|
|
@@ -114,12 +114,12 @@ function CheckBoxField(props) {
|
|
|
114
114
|
type: errorType,
|
|
115
115
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
116
116
|
}, ValidationMessageProps2))));
|
|
117
|
-
}
|
|
118
|
-
// export default MomoizedCheckBoxField;
|
|
119
|
-
// MomoizedCheckBoxField.propTypes = propTypes;
|
|
120
|
-
// MomoizedCheckBoxField.defaultProps = defaultProps;
|
|
121
|
-
|
|
117
|
+
}
|
|
122
118
|
|
|
123
119
|
CheckBoxField.propTypes = propTypes;
|
|
124
120
|
CheckBoxField.defaultProps = defaultProps;
|
|
125
|
-
|
|
121
|
+
const MemoizedCheckBoxField = /*#__PURE__*/memo(CheckBoxField);
|
|
122
|
+
MemoizedCheckBoxField.propTypes = propTypes;
|
|
123
|
+
MemoizedCheckBoxField.defaultProps = defaultProps;
|
|
124
|
+
MemoizedCheckBoxField.displayName = 'CheckBoxField';
|
|
125
|
+
export default MemoizedCheckBoxField;
|
|
@@ -146,12 +146,12 @@ function CurrencyField(props) {
|
|
|
146
146
|
htmlFor: uniqueId,
|
|
147
147
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
148
148
|
}, ValidationMessageProps2))));
|
|
149
|
-
}
|
|
150
|
-
// export default MomoizedCurrencyField;
|
|
151
|
-
// MomoizedCurrencyField.propTypes = propTypes;
|
|
152
|
-
// MomoizedCurrencyField.defaultProps = defaultProps;
|
|
153
|
-
|
|
149
|
+
}
|
|
154
150
|
|
|
155
151
|
CurrencyField.propTypes = propTypes;
|
|
156
152
|
CurrencyField.defaultProps = defaultProps;
|
|
157
|
-
|
|
153
|
+
const MemoizedCurrencyField = /*#__PURE__*/memo(CurrencyField);
|
|
154
|
+
MemoizedCurrencyField.propTypes = propTypes;
|
|
155
|
+
MemoizedCurrencyField.defaultProps = defaultProps;
|
|
156
|
+
MemoizedCurrencyField.displayName = 'CurrencyField';
|
|
157
|
+
export default MemoizedCurrencyField;
|
|
@@ -153,12 +153,12 @@ function DateField(props) {
|
|
|
153
153
|
htmlFor: getAriaId,
|
|
154
154
|
dataId: `${dataId}_ValidationRuleMessage`
|
|
155
155
|
}, ValidationMessageProps2))));
|
|
156
|
-
}
|
|
157
|
-
// export default MomoizedDateField;
|
|
158
|
-
// MomoizedDateField.propTypes = propTypes;
|
|
159
|
-
// MomoizedDateField.defaultProps = defaultProps;
|
|
160
|
-
|
|
156
|
+
}
|
|
161
157
|
|
|
162
158
|
DateField.propTypes = propTypes;
|
|
163
159
|
DateField.defaultProps = defaultProps;
|
|
164
|
-
|
|
160
|
+
const MemoizedDateField = /*#__PURE__*/memo(DateField);
|
|
161
|
+
MemoizedDateField.propTypes = propTypes;
|
|
162
|
+
MemoizedDateField.defaultProps = defaultProps;
|
|
163
|
+
MemoizedDateField.displayName = 'DateField';
|
|
164
|
+
export default MemoizedDateField;
|
|
@@ -55,12 +55,12 @@ function FieldContainer(props) {
|
|
|
55
55
|
"data-test-id": `${dataId}_ePHI`,
|
|
56
56
|
className: style.ePhiTag
|
|
57
57
|
}, ePhiText) : null, renderEnd ? renderEnd() : null);
|
|
58
|
-
}
|
|
59
|
-
// export default MomoizedFieldContainer;
|
|
60
|
-
// MomoizedFieldContainer.propTypes = propTypes;
|
|
61
|
-
// MomoizedFieldContainer.defaultProps = defaultProps;
|
|
62
|
-
|
|
58
|
+
}
|
|
63
59
|
|
|
64
60
|
FieldContainer.propTypes = propTypes;
|
|
65
61
|
FieldContainer.defaultProps = defaultProps;
|
|
66
|
-
|
|
62
|
+
const MemoizedFieldContainer = /*#__PURE__*/memo(FieldContainer);
|
|
63
|
+
MemoizedFieldContainer.propTypes = propTypes;
|
|
64
|
+
MemoizedFieldContainer.defaultProps = defaultProps;
|
|
65
|
+
MemoizedFieldContainer.displayName = 'FieldContainer';
|
|
66
|
+
export default MemoizedFieldContainer;
|
|
@@ -178,12 +178,12 @@ function MultiSelectField(props) {
|
|
|
178
178
|
dataId: `${dataId}_ValidationRuleMessage`,
|
|
179
179
|
htmlFor: uniqueId
|
|
180
180
|
}, ValidationMessageProps2)));
|
|
181
|
-
}
|
|
182
|
-
// export default MomoizedMultiSelectField;
|
|
183
|
-
// MomoizedMultiSelectField.propTypes = propTypes;
|
|
184
|
-
// MomoizedMultiSelectField.defaultProps = defaultProps;
|
|
185
|
-
|
|
181
|
+
}
|
|
186
182
|
|
|
187
183
|
MultiSelectField.propTypes = propTypes;
|
|
188
184
|
MultiSelectField.defaultProps = defaultProps;
|
|
189
|
-
|
|
185
|
+
const MemoizedMultiSelectField = /*#__PURE__*/memo(MultiSelectField);
|
|
186
|
+
MemoizedMultiSelectField.propTypes = propTypes;
|
|
187
|
+
MemoizedMultiSelectField.defaultProps = defaultProps;
|
|
188
|
+
MemoizedMultiSelectField.displayName = 'MultiSelectField';
|
|
189
|
+
export default MemoizedMultiSelectField;
|
|
@@ -150,12 +150,12 @@ function PhoneField(props) {
|
|
|
150
150
|
name: "ZD-GN-phone",
|
|
151
151
|
size: "14"
|
|
152
152
|
})) : null));
|
|
153
|
-
}
|
|
154
|
-
// export default MomoizedPhoneField;
|
|
155
|
-
// MomoizedPhoneField.propTypes = propTypes;
|
|
156
|
-
// MomoizedPhoneField.defaultProps = defaultProps;
|
|
157
|
-
|
|
153
|
+
}
|
|
158
154
|
|
|
159
155
|
PhoneField.propTypes = propTypes;
|
|
160
156
|
PhoneField.defaultProps = defaultProps;
|
|
161
|
-
|
|
157
|
+
const MemoizedPhoneField = /*#__PURE__*/memo(PhoneField);
|
|
158
|
+
MemoizedPhoneField.propTypes = propTypes;
|
|
159
|
+
MemoizedPhoneField.defaultProps = defaultProps;
|
|
160
|
+
MemoizedPhoneField.displayName = 'PhoneField';
|
|
161
|
+
export default MemoizedPhoneField;
|