@zohodesk/dot 1.0.0-temp-182 → 1.0.0-temp-183
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/propValidation_report.html +1 -1
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +50 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +50 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +50 -0
- 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 +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- 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 +7 -4
- 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 +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/Attachment/Attachment.module.css +4 -4
- package/es/ChannelIcon/ChannelIcon.module.css +1 -1
- package/es/Drawer/Drawer.js +5 -4
- package/es/Drawer/Drawer.module.css +3 -3
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/ImportantNotes/ImportantNotes.module.css +1 -1
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Message/Message.module.css +1 -1
- package/es/Separator/Separator.module.css +2 -11
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +3 -3
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/errorstate/EmptyStates.module.css +1 -24
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +15 -18
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -16
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +9 -3
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/GridStencils/GridStencils.module.css +1 -35
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +9 -8
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/header/Close/LookupClose.module.css +2 -3
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/Title/LookupTitle.module.css +2 -6
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/es/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/es/setup/header/Search/Search.module.css +2 -14
- package/es/setup/table/Text/TableText.module.css +2 -11
- package/es/v1/Drawer/Drawer.js +5 -4
- package/es/v1/ExternalLink/ExternalLink.js +5 -4
- package/es/v1/FlipCard/FlipCard.js +12 -14
- package/es/v1/GlobalNotification/GlobalNotification.js +7 -6
- package/es/v1/IconButton/IconButton.js +5 -4
- package/es/v1/Link/Link.js +10 -8
- package/es/v1/Message/Message.js +5 -4
- package/es/v1/ToastMessage/ToastMessage.js +4 -2
- package/es/v1/actions/AutoClose.js +1 -2
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +16 -18
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/v1/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/v1/list/ListLayout/ListLayout.js +5 -4
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +9 -8
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +5 -4
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +5 -4
- package/es/v1/lookup/header/Search/Search.js +3 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/lib/Attachment/Attachment.module.css +4 -4
- package/lib/ChannelIcon/ChannelIcon.module.css +1 -1
- package/lib/Drawer/Drawer.module.css +3 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +1 -1
- package/lib/Message/Message.module.css +1 -1
- package/lib/Separator/Separator.module.css +2 -11
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.module.css +3 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/lib/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/lib/errorstate/EmptyStates.module.css +1 -24
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -35
- package/lib/list/Subject/Subject.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/lib/lookup/header/Close/LookupClose.module.css +2 -3
- package/lib/lookup/header/Title/LookupTitle.module.css +2 -6
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/lib/setup/header/Search/Search.module.css +2 -14
- package/lib/setup/table/Text/TableText.module.css +2 -11
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -1,43 +1,34 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--separator_fontSize: var(--zd_font_size15);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
.separator {
|
|
6
5
|
font-size: var(--separator_fontSize);
|
|
7
6
|
margin: 0 var(--zd_size5) ;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
.dot {
|
|
11
9
|
--separator_fontSize: var(--zd_font_size8);
|
|
12
10
|
}
|
|
13
|
-
|
|
14
11
|
.slash {
|
|
15
12
|
--separator_fontSize: var(--zd_font_size10);
|
|
16
13
|
/* line-height: var(--zd_size10); */
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
.arrow {
|
|
20
16
|
--separator_fontSize: var(--zd_font_size8);
|
|
21
17
|
/* line-height: var(--zd_size7); */
|
|
22
18
|
}
|
|
23
|
-
|
|
24
19
|
.comma {
|
|
25
20
|
--separator_fontSize: var(--zd_font_size15);
|
|
26
21
|
/* line-height: var(--zd_size13); */
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
.none {
|
|
30
24
|
display: none;
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
.default {
|
|
34
27
|
color: var(--zdt_separator_default_text);
|
|
35
28
|
}
|
|
36
|
-
|
|
37
29
|
.primary {
|
|
38
30
|
color: var(--zdt_separator_primary_text);
|
|
39
31
|
}
|
|
40
|
-
|
|
41
32
|
.secondary {
|
|
42
|
-
color: var(--
|
|
43
|
-
}
|
|
33
|
+
color: var(--zdt_separator_secondary_text);
|
|
34
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
3
|
-
--tag_text_color: var(--
|
|
3
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
4
4
|
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
5
5
|
--tag_small_fontSize: var(--zd_font_size10);
|
|
6
6
|
--tag_large_fontSize: var(--zd_font_size12);
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.grey {
|
|
58
58
|
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
59
|
-
--tag_text_color: var(--
|
|
59
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
60
60
|
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes'; //components
|
|
@@ -189,9 +191,9 @@ function ToastMessageUI(props) {
|
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
export default function ToastMessage(props) {
|
|
192
|
-
return /*#__PURE__*/React.createElement(AutoClose, {
|
|
194
|
+
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
193
195
|
Element: ToastMessageUI
|
|
194
|
-
});
|
|
196
|
+
}));
|
|
195
197
|
}
|
|
196
198
|
ToastMessage.propTypes = propTypes;
|
|
197
199
|
ToastMessage.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
max-height: 100% ;
|
|
5
5
|
border-radius: 5px;
|
|
6
6
|
box-shadow: var(--zd_bs_toastmessage_container);
|
|
7
|
-
background-color: var(--
|
|
7
|
+
background-color: var(--zdt_toastmessage_default_bg);
|
|
8
8
|
margin-bottom: var(--zd_size7) ;
|
|
9
9
|
}[dir=ltr] .container {
|
|
10
10
|
transform-origin: right center;
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.cancelButton:hover {
|
|
119
|
-
color: var(--
|
|
119
|
+
color: var(--zdt_toastmessage_cancel_hover_text);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.primary:hover,
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.dropdown:hover i {
|
|
252
|
-
color: var(--
|
|
252
|
+
color: var(--zdt_toastmessage_cancel_hover_text);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.message {
|
package/es/actions/AutoClose.js
CHANGED
|
@@ -37,8 +37,7 @@ export default function AutoClose(props) {
|
|
|
37
37
|
isClose,
|
|
38
38
|
onClose
|
|
39
39
|
});
|
|
40
|
-
return /*#__PURE__*/React.createElement(Element,
|
|
41
|
-
});
|
|
40
|
+
return /*#__PURE__*/React.createElement(Element, newProps);
|
|
42
41
|
}
|
|
43
42
|
AutoClose.propTypes = propTypes;
|
|
44
43
|
AutoClose.defaultProps = defaultProps;
|
|
@@ -55,9 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
/* icon size */
|
|
57
57
|
|
|
58
|
-
.icon_delete,
|
|
59
|
-
.icon_alert,
|
|
60
|
-
.icon_remoteAssist {
|
|
58
|
+
.icon_delete, .icon_alert, .icon_remoteAssist {
|
|
61
59
|
font-size: var(--zd_font_size20) ;
|
|
62
60
|
}
|
|
63
61
|
|
|
@@ -79,5 +77,5 @@
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
.text_default {
|
|
82
|
-
color: var(--
|
|
80
|
+
color: var(--zdt_alertheader_default_text);
|
|
83
81
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -49,7 +51,7 @@ export default class AlertLookup extends Component {
|
|
|
49
51
|
PrimaryButtonProps = {},
|
|
50
52
|
SecondaryButtonProps = {}
|
|
51
53
|
} = customProps;
|
|
52
|
-
return /*#__PURE__*/React.createElement(Lookup, {
|
|
54
|
+
return /*#__PURE__*/React.createElement(Lookup, _extends({
|
|
53
55
|
needFocusScope: true,
|
|
54
56
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
55
57
|
isActive: isActive,
|
|
@@ -57,9 +59,8 @@ export default class AlertLookup extends Component {
|
|
|
57
59
|
dataId: dataId,
|
|
58
60
|
forwardRef: forwardRef,
|
|
59
61
|
onClick: onLookupClick,
|
|
60
|
-
customClass: customClass
|
|
61
|
-
|
|
62
|
-
}, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
62
|
+
customClass: customClass
|
|
63
|
+
}, LookupProps), /*#__PURE__*/React.createElement(AlertHeader, _extends({
|
|
63
64
|
title: title,
|
|
64
65
|
palette: palette,
|
|
65
66
|
iconType: type,
|
|
@@ -68,9 +69,8 @@ export default class AlertLookup extends Component {
|
|
|
68
69
|
breakChildren: wrapHeader,
|
|
69
70
|
iconName: iconName,
|
|
70
71
|
iconClass: iconClass,
|
|
71
|
-
iconSize: iconSize
|
|
72
|
-
|
|
73
|
-
}, headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
|
|
72
|
+
iconSize: iconSize
|
|
73
|
+
}, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
|
|
74
74
|
alignBox: "row",
|
|
75
75
|
className: style.section
|
|
76
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -84,19 +84,17 @@ export default class AlertLookup extends Component {
|
|
|
84
84
|
}, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
|
|
85
85
|
size: "small",
|
|
86
86
|
paddingLeftSize: "xsmall"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
87
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
88
88
|
text: submitText,
|
|
89
89
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
90
90
|
onClick: onSubmitClick,
|
|
91
|
-
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
|
|
92
|
-
|
|
93
|
-
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
91
|
+
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
|
|
92
|
+
}, PrimaryButtonProps)), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
|
|
94
93
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
95
94
|
text: cancelText,
|
|
96
95
|
onClick: onCancelClick,
|
|
97
|
-
palette: "secondary"
|
|
98
|
-
|
|
99
|
-
})) : null));
|
|
96
|
+
palette: "secondary"
|
|
97
|
+
}, SecondaryButtonProps))) : null));
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -24,17 +26,15 @@ export default class AvatarClose extends React.Component {
|
|
|
24
26
|
AvatarCloseProps = {},
|
|
25
27
|
AvatarProps = {}
|
|
26
28
|
} = customProps;
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
28
30
|
className: style.container,
|
|
29
|
-
"data-selector-id": dataSelectorId
|
|
30
|
-
|
|
31
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
31
|
+
"data-selector-id": dataSelectorId
|
|
32
|
+
}, AvatarCloseProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
32
33
|
src: src,
|
|
33
34
|
name: name,
|
|
34
35
|
title: title,
|
|
35
|
-
size: size
|
|
36
|
-
|
|
37
|
-
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
36
|
+
size: size
|
|
37
|
+
}, AvatarProps)), isClose && /*#__PURE__*/React.createElement("span", {
|
|
38
38
|
className: style.pop,
|
|
39
39
|
onClick: onClick
|
|
40
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -27,23 +29,21 @@ export default class AvatarCollision extends React.Component {
|
|
|
27
29
|
AvatarCollisionProps = {},
|
|
28
30
|
AvatarProps = {}
|
|
29
31
|
} = customProps;
|
|
30
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
31
33
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
32
34
|
onClick: onClick,
|
|
33
35
|
"data-id": "collsionPop",
|
|
34
36
|
"data-test-id": "collsionPop",
|
|
35
37
|
"data-title": title,
|
|
36
|
-
"data-selector-id": dataSelectorId
|
|
37
|
-
|
|
38
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
38
|
+
"data-selector-id": dataSelectorId
|
|
39
|
+
}, AvatarCollisionProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
39
40
|
src: src,
|
|
40
41
|
name: name,
|
|
41
42
|
size: size,
|
|
42
43
|
palette: "default",
|
|
43
44
|
needTitle: false,
|
|
44
|
-
initial: initial
|
|
45
|
-
|
|
46
|
-
}), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
initial: initial
|
|
46
|
+
}, AvatarProps)), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
47
47
|
className: style.pop,
|
|
48
48
|
"data-title": title
|
|
49
49
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -28,7 +30,7 @@ export default class AvatarIcon extends React.Component {
|
|
|
28
30
|
AvatarIconProps = {}
|
|
29
31
|
} = customProps;
|
|
30
32
|
let border = borderOnHover || onClick;
|
|
31
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
33
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
32
34
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
|
|
33
35
|
onClick: onClick,
|
|
34
36
|
dataId: dataId,
|
|
@@ -36,9 +38,8 @@ export default class AvatarIcon extends React.Component {
|
|
|
36
38
|
isInline: true,
|
|
37
39
|
align: "both",
|
|
38
40
|
isCover: false,
|
|
39
|
-
dataSelectorId: dataSelectorId
|
|
40
|
-
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
dataSelectorId: dataSelectorId
|
|
42
|
+
}, AvatarIconProps), /*#__PURE__*/React.createElement(Icon, {
|
|
42
43
|
name: name,
|
|
43
44
|
size: iconSize,
|
|
44
45
|
iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -34,12 +36,12 @@ export default class AvatarStatus extends React.Component {
|
|
|
34
36
|
AvatarStatusProps = {},
|
|
35
37
|
AvatarProps = {}
|
|
36
38
|
} = customProps;
|
|
37
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
className: `${style.container} ${className}
|
|
39
|
-
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
40
|
+
className: `${style.container} ${className} `
|
|
41
|
+
}, AvatarStatusProps, {
|
|
40
42
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
41
43
|
"data-selector-id": dataSelectorId
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
44
|
+
}), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
43
45
|
src: src,
|
|
44
46
|
name: name,
|
|
45
47
|
palette: palette,
|
|
@@ -53,9 +55,8 @@ export default class AvatarStatus extends React.Component {
|
|
|
53
55
|
shape: shape,
|
|
54
56
|
needTitle: needTitle,
|
|
55
57
|
needDefaultBorder: needDefaultBorder,
|
|
56
|
-
needBorder: needBorder
|
|
57
|
-
|
|
58
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
58
|
+
needBorder: needBorder
|
|
59
|
+
}, AvatarProps)), /*#__PURE__*/React.createElement("span", {
|
|
59
60
|
"data-title": statusTitle,
|
|
60
61
|
className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
|
|
61
62
|
}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -37,11 +39,10 @@ export default class AvatarThread extends React.Component {
|
|
|
37
39
|
AvatarProps = {}
|
|
38
40
|
} = customProps;
|
|
39
41
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
40
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
41
43
|
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
42
|
-
"data-selector-id": dataSelectorId
|
|
43
|
-
|
|
44
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
44
|
+
"data-selector-id": dataSelectorId
|
|
45
|
+
}, AvatarThreadProps), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
45
46
|
initial: initial,
|
|
46
47
|
src: src,
|
|
47
48
|
name: name,
|
|
@@ -52,9 +53,8 @@ export default class AvatarThread extends React.Component {
|
|
|
52
53
|
palette: palette,
|
|
53
54
|
textPalette: textPalette,
|
|
54
55
|
customClass: customTextClass,
|
|
55
|
-
needTitle: needTitle
|
|
56
|
-
|
|
57
|
-
}), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
|
|
56
|
+
needTitle: needTitle
|
|
57
|
+
}, AvatarProps)), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
|
|
58
58
|
className: `${style.thread} ${onIconClick ? style.pointer : style.defaultCursor} ${needBackground ? style.threadBg : ''} ${style[`thread_${size}_pos`]} ${needBorder ? style[`border_${borderPalette}`] : ''}`,
|
|
59
59
|
"data-title": iconTitle,
|
|
60
60
|
"data-id": iconTitle === 'Remove Follower' && 'removeFollower',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -48,22 +50,20 @@ export default class AvatarUser extends React.Component {
|
|
|
48
50
|
portalTitle = 'End User',
|
|
49
51
|
lockTitle = 'Locked'
|
|
50
52
|
} = i18nKeys;
|
|
51
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
52
54
|
className: `${style.container} ${style[size]}`,
|
|
53
55
|
"data-id": dataId || name || iconName,
|
|
54
56
|
"data-test-id": dataId || name || iconName,
|
|
55
|
-
"data-selector-id": dataSelectorId
|
|
56
|
-
|
|
57
|
-
}, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
57
|
+
"data-selector-id": dataSelectorId
|
|
58
|
+
}, AvatarUserProps), iconName ? /*#__PURE__*/React.createElement(AvatarIcon, _extends({
|
|
58
59
|
name: iconName,
|
|
59
60
|
iconSize: iconSize,
|
|
60
61
|
size: size,
|
|
61
62
|
iconClass: iconClass,
|
|
62
63
|
dataId: iconName,
|
|
63
64
|
iconColor: iconColor,
|
|
64
|
-
title: title
|
|
65
|
-
|
|
66
|
-
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
65
|
+
title: title
|
|
66
|
+
}, AvatarIconProps)) : /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
67
67
|
src: src,
|
|
68
68
|
name: name,
|
|
69
69
|
initial: initial,
|
|
@@ -74,9 +74,8 @@ export default class AvatarUser extends React.Component {
|
|
|
74
74
|
palette: palette,
|
|
75
75
|
textPalette: textPalette,
|
|
76
76
|
customClass: customTextClass,
|
|
77
|
-
alternateSrc: alternateSrc
|
|
78
|
-
|
|
79
|
-
}), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
77
|
+
alternateSrc: alternateSrc
|
|
78
|
+
}, AvatarProps)), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
80
79
|
"data-title": paidTitle,
|
|
81
80
|
className: style.paid,
|
|
82
81
|
"data-id": "paidUser",
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
6
|
.paid,
|
|
8
7
|
.portal,
|
|
9
8
|
.delete {
|
|
10
9
|
font-size: var(--zd_font_size10) ;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
.paid,
|
|
14
12
|
.portal,
|
|
15
13
|
.delete,
|
|
@@ -17,28 +15,22 @@
|
|
|
17
15
|
position: absolute;
|
|
18
16
|
line-height: 0;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
.paid {
|
|
22
19
|
composes: middle from '~@zohodesk/components/lib/common/common.module.css';
|
|
23
20
|
}
|
|
24
|
-
|
|
25
21
|
[dir=ltr] .paid {
|
|
26
22
|
left: 50% ;
|
|
27
23
|
}
|
|
28
|
-
|
|
29
24
|
[dir=rtl] .paid {
|
|
30
25
|
right: 50% ;
|
|
31
26
|
}
|
|
32
|
-
|
|
33
27
|
.paid {
|
|
34
28
|
top: calc( var(--zd_size2) * -1 ) ;
|
|
35
29
|
}
|
|
36
|
-
|
|
37
30
|
.portal, .lock {
|
|
38
|
-
background-color: var(--
|
|
31
|
+
background-color: var(--zdt_avataruser_default_bg);
|
|
39
32
|
border-radius: 50%;
|
|
40
33
|
}
|
|
41
|
-
|
|
42
34
|
.delete {
|
|
43
35
|
top: 0 ;
|
|
44
36
|
width: 100% ;
|
|
@@ -51,87 +43,66 @@
|
|
|
51
43
|
border-radius: 50%;
|
|
52
44
|
background-color: var(--zdt_avataruser_delete_bg);
|
|
53
45
|
}
|
|
54
|
-
|
|
55
46
|
[dir=ltr] .delete {
|
|
56
47
|
left: 0 ;
|
|
57
48
|
}
|
|
58
|
-
|
|
59
49
|
[dir=rtl] .delete {
|
|
60
50
|
right: 0 ;
|
|
61
51
|
}
|
|
62
|
-
|
|
63
52
|
.container:hover .delete {
|
|
64
53
|
opacity: 1;
|
|
65
54
|
}
|
|
66
|
-
|
|
67
55
|
.small .portal {
|
|
68
56
|
top: 0 ;
|
|
69
57
|
}
|
|
70
|
-
|
|
71
58
|
[dir=ltr] .small .portal {
|
|
72
59
|
right: calc( var(--zd_size4) * -1 ) ;
|
|
73
60
|
}
|
|
74
|
-
|
|
75
61
|
[dir=rtl] .small .portal {
|
|
76
62
|
left: calc( var(--zd_size4) * -1 ) ;
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
.xsmall .portal {
|
|
80
65
|
top: var(--zd_size1) ;
|
|
81
66
|
}
|
|
82
|
-
|
|
83
67
|
[dir=ltr] .xsmall .portal {
|
|
84
68
|
right: calc( var(--zd_size2) * -1 ) ;
|
|
85
69
|
}
|
|
86
|
-
|
|
87
70
|
[dir=rtl] .xsmall .portal {
|
|
88
71
|
left: calc( var(--zd_size2) * -1 ) ;
|
|
89
72
|
}
|
|
90
|
-
|
|
91
73
|
.medium .portal {
|
|
92
74
|
top: var(--zd_size1) ;
|
|
93
75
|
}
|
|
94
|
-
|
|
95
76
|
[dir=ltr] .medium .portal {
|
|
96
77
|
right: calc( var(--zd_size1) * -1 ) ;
|
|
97
78
|
}
|
|
98
|
-
|
|
99
79
|
[dir=rtl] .medium .portal {
|
|
100
80
|
left: calc( var(--zd_size1) * -1 ) ;
|
|
101
81
|
}
|
|
102
|
-
|
|
103
82
|
.xmedium .portal {
|
|
104
83
|
top: var(--zd_size3) ;
|
|
105
84
|
}
|
|
106
|
-
|
|
107
85
|
[dir=ltr] .xmedium .portal {
|
|
108
86
|
right: 0 ;
|
|
109
87
|
}
|
|
110
|
-
|
|
111
88
|
[dir=rtl] .xmedium .portal {
|
|
112
89
|
left: 0 ;
|
|
113
90
|
}
|
|
114
|
-
|
|
115
91
|
.large .portal {
|
|
116
92
|
top: var(--zd_size8) ;
|
|
117
93
|
}
|
|
118
|
-
|
|
119
94
|
[dir=ltr] .large .portal {
|
|
120
95
|
right: var(--zd_size1) ;
|
|
121
96
|
}
|
|
122
|
-
|
|
123
97
|
[dir=rtl] .large .portal {
|
|
124
98
|
left: var(--zd_size1) ;
|
|
125
99
|
}
|
|
126
|
-
|
|
127
100
|
.xlarge .portal {
|
|
128
101
|
top: var(--zd_size15) ;
|
|
129
102
|
}
|
|
130
|
-
|
|
131
103
|
[dir=ltr] .xlarge .portal {
|
|
132
104
|
right: var(--zd_size2) ;
|
|
133
105
|
}
|
|
134
|
-
|
|
135
106
|
[dir=rtl] .xlarge .portal {
|
|
136
107
|
left: var(--zd_size2) ;
|
|
137
108
|
}
|
|
@@ -148,68 +119,53 @@
|
|
|
148
119
|
[dir=rtl] .small .lock {
|
|
149
120
|
left: calc( var(--zd_size5) * -1 ) ;
|
|
150
121
|
}
|
|
151
|
-
|
|
152
122
|
.xsmall .lock {
|
|
153
123
|
top: var(--zd_size1) ;
|
|
154
124
|
font-size: var(--zd_font_size12) ;
|
|
155
125
|
}
|
|
156
|
-
|
|
157
126
|
[dir=ltr] .xsmall .lock {
|
|
158
127
|
right: calc( var(--zd_size4) * -1 ) ;
|
|
159
128
|
}
|
|
160
|
-
|
|
161
129
|
[dir=rtl] .xsmall .lock {
|
|
162
130
|
left: calc( var(--zd_size4) * -1 ) ;
|
|
163
131
|
}
|
|
164
|
-
|
|
165
132
|
.medium .lock {
|
|
166
133
|
top: var(--zd_size2) ;
|
|
167
134
|
font-size: var(--zd_font_size13) ;
|
|
168
135
|
}
|
|
169
|
-
|
|
170
136
|
[dir=ltr] .medium .lock {
|
|
171
137
|
right: calc( var(--zd_size5) * -1 ) ;
|
|
172
138
|
}
|
|
173
|
-
|
|
174
139
|
[dir=rtl] .medium .lock {
|
|
175
140
|
left: calc( var(--zd_size5) * -1 ) ;
|
|
176
141
|
}
|
|
177
|
-
|
|
178
142
|
.xmedium .lock {
|
|
179
143
|
top: var(--zd_size4) ;
|
|
180
144
|
font-size: var(--zd_font_size14) ;
|
|
181
145
|
}
|
|
182
|
-
|
|
183
146
|
[dir=ltr] .xmedium .lock {
|
|
184
147
|
right: calc( var(--zd_size6) * -1 ) ;
|
|
185
148
|
}
|
|
186
|
-
|
|
187
149
|
[dir=rtl] .xmedium .lock {
|
|
188
150
|
left: calc( var(--zd_size6) * -1 ) ;
|
|
189
151
|
}
|
|
190
|
-
|
|
191
152
|
.large .lock {
|
|
192
153
|
top: var(--zd_size6) ;
|
|
193
154
|
font-size: var(--zd_font_size18) ;
|
|
194
155
|
}
|
|
195
|
-
|
|
196
156
|
[dir=ltr] .large .lock {
|
|
197
157
|
right: calc( var(--zd_size6) * -1 ) ;
|
|
198
158
|
}
|
|
199
|
-
|
|
200
159
|
[dir=rtl] .large .lock {
|
|
201
160
|
left: calc( var(--zd_size6) * -1 ) ;
|
|
202
161
|
}
|
|
203
|
-
|
|
204
162
|
.xlarge .lock {
|
|
205
163
|
top: var(--zd_size12) ;
|
|
206
164
|
font-size: var(--zd_font_size22) ;
|
|
207
165
|
}
|
|
208
|
-
|
|
209
166
|
[dir=ltr] .xlarge .lock {
|
|
210
167
|
right: calc( var(--zd_size8) * -1 ) ;
|
|
211
168
|
}
|
|
212
|
-
|
|
213
169
|
[dir=rtl] .xlarge .lock {
|
|
214
170
|
left: calc( var(--zd_size8) * -1 ) ;
|
|
215
|
-
}
|
|
171
|
+
}
|