@zohodesk/dot 1.4.12 → 1.4.14
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/README.md +13 -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 +2 -5
- 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 +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/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +51 -4
- package/es/AlphabeticList/AlphabeticList.module.css +0 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/es/ChannelIcon/ChannelIcon.module.css +9 -4
- package/es/Drawer/Drawer.js +4 -5
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/FormAction/FormAction.module.css +18 -1
- package/es/FreezeLayer/FreezeLayer.js +1 -1
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +0 -1
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +0 -3
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/actions/AutoClose.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +14 -12
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
- package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +36 -24
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +21 -15
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/form/fields/TextareaField/TextareaField.js +16 -13
- package/es/form/fields/TextareaField/props/propTypes.js +1 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/es/list/Comment/Comment.module.css +0 -1
- package/es/list/Dot/Dot.module.css +0 -1
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +0 -6
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +8 -9
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +4 -5
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +8 -1
- package/es/list/Thread/Thread.module.css +0 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +7 -7
- package/es/lookup/Lookup/Lookup.module.css +4 -1
- package/es/lookup/Lookup/props/propTypes.js +3 -2
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
- package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/ActionButton/ActionButton.js +1 -1
- package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
- package/es/v1/Drawer/Drawer.js +6 -7
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +15 -13
- package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
- package/es/v1/IconButton/IconButton.js +4 -5
- package/es/v1/Link/Link.js +8 -10
- package/es/v1/Loader/Loader.js +1 -1
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +4 -6
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +16 -16
- 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 -6
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +39 -27
- package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +15 -13
- package/es/v1/form/fields/DateField/DateField.js +15 -15
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +14 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +21 -16
- package/es/v1/form/fields/SelectField/SelectField.js +15 -15
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -11
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +15 -15
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +17 -14
- package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/v1/list/ListLayout/ListLayout.js +4 -5
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +8 -9
- 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 +4 -5
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +6 -6
- package/es/v1/lookup/Lookup/Lookup.js +7 -7
- package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -8
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
- package/lib/ActionButton/ActionButton.module.css +51 -4
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
- package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
- package/lib/FormAction/FormAction.module.css +18 -1
- package/lib/FreezeLayer/FreezeLayer.js +1 -1
- package/lib/IconButton/IconButton.module.css +0 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- package/lib/form/fields/RadioField/RadioField.js +3 -0
- package/lib/form/fields/TextareaField/TextareaField.js +2 -0
- package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
- package/lib/list/Comment/Comment.module.css +0 -1
- package/lib/list/Dot/Dot.module.css +0 -1
- package/lib/list/ListLayout/ListLayout.module.css +0 -6
- package/lib/list/Subject/Subject.module.css +8 -1
- package/lib/list/Thread/Thread.module.css +0 -1
- package/lib/lookup/Lookup/Lookup.js +3 -2
- package/lib/lookup/Lookup/Lookup.module.css +4 -1
- package/lib/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
- package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/v1/ActionButton/ActionButton.js +1 -1
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
- package/lib/v1/Drawer/Drawer.js +2 -2
- package/lib/v1/FlipCard/FlipCard.js +1 -1
- package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
- package/lib/v1/Loader/Loader.js +1 -1
- package/lib/v1/ToastMessage/ToastMessage.js +2 -2
- package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
- package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
- package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/v1/form/fields/DateField/DateField.js +1 -1
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/v1/form/fields/RadioField/RadioField.js +3 -0
- package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
- package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/v1/lookup/Lookup/Lookup.js +3 -2
- package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
- package/package.json +11 -11
- package/result.json +1 -1
- package/es/v1/Provider/Config.js +0 -20
- package/lib/v1/Provider/Config.js +0 -29
- /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
- /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
package/es/FlipCard/FlipCard.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -89,16 +87,17 @@ export default class FlipCard extends Component {
|
|
|
89
87
|
}, !noNeedFlip ? /*#__PURE__*/React.createElement(Container, {
|
|
90
88
|
align: "both",
|
|
91
89
|
className: `${style.front} ${frontClass ? frontClass : ''}`
|
|
92
|
-
}, /*#__PURE__*/React.createElement(CheckBox,
|
|
90
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
93
91
|
isFilled: isFilledCheckbox,
|
|
94
92
|
checked: isChecked,
|
|
95
93
|
onChange: this.onChange,
|
|
96
94
|
id: `checkbox_${id}`,
|
|
97
|
-
dataId: `listViewCheckBox_${id}
|
|
98
|
-
|
|
95
|
+
dataId: `listViewCheckBox_${id}`,
|
|
96
|
+
...CheckBoxProps
|
|
97
|
+
})) : null, /*#__PURE__*/React.createElement(Container, {
|
|
99
98
|
align: "both",
|
|
100
99
|
className: style.back
|
|
101
|
-
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon,
|
|
100
|
+
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, {
|
|
102
101
|
name: channel,
|
|
103
102
|
action: action,
|
|
104
103
|
size: size,
|
|
@@ -111,8 +110,9 @@ export default class FlipCard extends Component {
|
|
|
111
110
|
customTextClass: customTextClass,
|
|
112
111
|
iconColor: iconColor,
|
|
113
112
|
title: channelTitle,
|
|
114
|
-
iconTitle: channelTitle
|
|
115
|
-
|
|
113
|
+
iconTitle: channelTitle,
|
|
114
|
+
...ChannelIconProps
|
|
115
|
+
}) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
116
116
|
name: icon,
|
|
117
117
|
iconSize: iconSize,
|
|
118
118
|
size: size,
|
|
@@ -120,8 +120,9 @@ export default class FlipCard extends Component {
|
|
|
120
120
|
dataId: icon,
|
|
121
121
|
className: className,
|
|
122
122
|
iconColor: iconColor,
|
|
123
|
-
title: needTitle ? name : ''
|
|
124
|
-
|
|
123
|
+
title: needTitle ? name : '',
|
|
124
|
+
...AvatarIconProps
|
|
125
|
+
}) : /*#__PURE__*/React.createElement(AvatarUser, {
|
|
125
126
|
name: name,
|
|
126
127
|
initial: initial,
|
|
127
128
|
size: size,
|
|
@@ -132,8 +133,9 @@ export default class FlipCard extends Component {
|
|
|
132
133
|
needTitle: needTitle,
|
|
133
134
|
palette: palette,
|
|
134
135
|
textPalette: textPalette,
|
|
135
|
-
customTextClass: customTextClass
|
|
136
|
-
|
|
136
|
+
customTextClass: customTextClass,
|
|
137
|
+
...AvatarUserProps
|
|
138
|
+
}))));
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
--footerBg: var(--zdt_formAction_bg);
|
|
3
3
|
--footerBorder: var(--zdt_formAction_border);
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.wrapperDiv {
|
|
6
7
|
position: relative;
|
|
7
8
|
z-index: 1;
|
|
8
9
|
composes: varClass;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.footerParent {
|
|
11
13
|
position: relative;
|
|
12
14
|
/* css:theme-validation:ignore */
|
|
@@ -14,14 +16,17 @@
|
|
|
14
16
|
background-color: var(--footerBg);
|
|
15
17
|
border-top: solid 1px var(--footerBorder);
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
.largeFooter {
|
|
18
21
|
padding-top: var(--zd_size24) ;
|
|
19
22
|
padding-bottom: var(--zd_size24) ;
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
.mediumFooter {
|
|
22
26
|
padding-top: var(--zd_size20) ;
|
|
23
27
|
padding-bottom: var(--zd_size20) ;
|
|
24
28
|
}
|
|
29
|
+
|
|
25
30
|
.smallFooter {
|
|
26
31
|
padding-top: var(--zd_size10) ;
|
|
27
32
|
padding-bottom: var(--zd_size10) ;
|
|
@@ -34,27 +39,35 @@
|
|
|
34
39
|
[dir=rtl] .largePadding {
|
|
35
40
|
padding-right: var(--zd_size60) ;
|
|
36
41
|
}
|
|
42
|
+
|
|
37
43
|
[dir=ltr] .mediumPadding {
|
|
38
44
|
padding-left: var(--zd_size50) ;
|
|
39
45
|
}
|
|
46
|
+
|
|
40
47
|
[dir=rtl] .mediumPadding {
|
|
41
48
|
padding-right: var(--zd_size50) ;
|
|
42
49
|
}
|
|
50
|
+
|
|
43
51
|
[dir=ltr] .xmediumPadding {
|
|
44
52
|
padding-left: var(--zd_size30) ;
|
|
45
53
|
}
|
|
54
|
+
|
|
46
55
|
[dir=rtl] .xmediumPadding {
|
|
47
56
|
padding-right: var(--zd_size30) ;
|
|
48
57
|
}
|
|
58
|
+
|
|
49
59
|
[dir=ltr] .smallPadding {
|
|
50
60
|
padding-left: var(--zd_size25) ;
|
|
51
61
|
}
|
|
62
|
+
|
|
52
63
|
[dir=rtl] .smallPadding {
|
|
53
64
|
padding-right: var(--zd_size25) ;
|
|
54
65
|
}
|
|
66
|
+
|
|
55
67
|
[dir=ltr] .xsmallPadding {
|
|
56
68
|
padding-left: var(--zd_size20) ;
|
|
57
69
|
}
|
|
70
|
+
|
|
58
71
|
[dir=rtl] .xsmallPadding {
|
|
59
72
|
padding-right: var(--zd_size20) ;
|
|
60
73
|
}
|
|
@@ -62,15 +75,19 @@
|
|
|
62
75
|
.marginRight {
|
|
63
76
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
64
77
|
}
|
|
78
|
+
|
|
65
79
|
[dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
|
|
66
80
|
margin-right: var(--zd_size15) ;
|
|
67
81
|
}
|
|
82
|
+
|
|
68
83
|
[dir=rtl] .largeFooter .marginRight, [dir=rtl] .mediumFooter .marginRight {
|
|
69
84
|
margin-left: var(--zd_size15) ;
|
|
70
85
|
}
|
|
86
|
+
|
|
71
87
|
[dir=ltr] .smallFooter .marginRight {
|
|
72
88
|
margin-right: var(--zd_size12) ;
|
|
73
89
|
}
|
|
90
|
+
|
|
74
91
|
[dir=rtl] .smallFooter .marginRight {
|
|
75
92
|
margin-left: var(--zd_size12) ;
|
|
76
93
|
}
|
|
@@ -81,4 +98,4 @@
|
|
|
81
98
|
|
|
82
99
|
[dir=rtl] .marginRight:last-child {
|
|
83
100
|
margin-left: 0 ;
|
|
84
|
-
}
|
|
101
|
+
}
|
|
@@ -6,7 +6,7 @@ import { mergeStyle } from '@zohodesk/utils';
|
|
|
6
6
|
import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
7
7
|
import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
8
8
|
import cssJSLogic from './css/cssJSLogic';
|
|
9
|
-
import useFreezeLayer from '
|
|
9
|
+
import useFreezeLayer from '../Hooks/useFreezeLayer';
|
|
10
10
|
import style from './css/FreezeLayer.module.css';
|
|
11
11
|
export default function FreezeLayer(props) {
|
|
12
12
|
let {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -107,7 +105,7 @@ export default class IconButton extends React.Component {
|
|
|
107
105
|
hoverType: hoverType,
|
|
108
106
|
isDisabled: isDisabled,
|
|
109
107
|
isNeedEffect: isNeedEffect
|
|
110
|
-
}, /*#__PURE__*/React.createElement(Container,
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
111
109
|
"aria-label": ariaLabel,
|
|
112
110
|
"aria-haspopup": ariaHaspopup,
|
|
113
111
|
"aria-expanded": ariaExpanded,
|
|
@@ -131,8 +129,9 @@ export default class IconButton extends React.Component {
|
|
|
131
129
|
onKeyDown: this.handleToggle,
|
|
132
130
|
onFocus: this.triggerMouseOver,
|
|
133
131
|
onBlur: this.onBlur,
|
|
134
|
-
disabled: isDisabled
|
|
135
|
-
|
|
132
|
+
disabled: isDisabled,
|
|
133
|
+
...customProps
|
|
134
|
+
}, iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
136
135
|
isBold: isBold,
|
|
137
136
|
size: iconSize,
|
|
138
137
|
name: iconName,
|
package/es/Link/Link.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -80,20 +78,20 @@ export default class Link extends React.Component {
|
|
|
80
78
|
return res;
|
|
81
79
|
}, {}); //urlOutput = this.addHttp(urlOutput);
|
|
82
80
|
|
|
83
|
-
return /*#__PURE__*/React.createElement("a",
|
|
81
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
84
82
|
href: isLink && urlOutput ? urlOutput : 'javascript:void(0);',
|
|
85
83
|
target: target,
|
|
86
84
|
"data-title": title,
|
|
87
|
-
className: `${style.container} ${className ? className : ''}
|
|
88
|
-
|
|
85
|
+
className: `${style.container} ${className ? className : ''}`,
|
|
86
|
+
...option,
|
|
89
87
|
rel: rel,
|
|
90
88
|
"data-id": dataId,
|
|
91
|
-
"data-test-id": dataId
|
|
92
|
-
|
|
93
|
-
onClick: this.onCallBack.bind(this, urlOutput, href)
|
|
94
|
-
|
|
89
|
+
"data-test-id": dataId,
|
|
90
|
+
...others,
|
|
91
|
+
onClick: this.onCallBack.bind(this, urlOutput, href),
|
|
92
|
+
...customProps,
|
|
95
93
|
"aria-label": ariaLabel
|
|
96
|
-
}
|
|
94
|
+
}, children);
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
}
|
package/es/Message/Message.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes, MessageUI_propTypes, MessageNew_propTypes } from './props/propTypes';
|
|
@@ -43,7 +41,8 @@ export default class Message extends React.Component {
|
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
render() {
|
|
46
|
-
return /*#__PURE__*/React.createElement(MessageUI, this.props
|
|
44
|
+
return /*#__PURE__*/React.createElement(MessageUI, { ...this.props
|
|
45
|
+
});
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
}
|
|
@@ -111,8 +110,8 @@ export function MessageUI(props) {
|
|
|
111
110
|
}
|
|
112
111
|
MessageUI.propTypes = MessageUI_propTypes;
|
|
113
112
|
export function MessageNew(props) {
|
|
114
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
113
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
115
114
|
Element: MessageUI
|
|
116
|
-
})
|
|
115
|
+
});
|
|
117
116
|
}
|
|
118
117
|
MessageNew.propTypes = MessageNew_propTypes;
|
|
@@ -8,15 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
.wrapper {
|
|
10
10
|
composes: varClass;
|
|
11
|
-
/* css:theme-validation:ignore */
|
|
12
|
-
/* css:theme-validation:ignore */
|
|
13
11
|
color: var(--tag_text_color);
|
|
14
12
|
background-color: var(--tag_bg_color);
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.small,
|
|
18
16
|
.large {
|
|
19
|
-
/* css:theme-validation:ignore */
|
|
20
17
|
max-width: 100% ;
|
|
21
18
|
height: var(--zd_size18) ;
|
|
22
19
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React, { useState } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes'; //components
|
|
@@ -191,9 +189,9 @@ function ToastMessageUI(props) {
|
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
export default function ToastMessage(props) {
|
|
194
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
192
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
195
193
|
Element: ToastMessageUI
|
|
196
|
-
})
|
|
194
|
+
});
|
|
197
195
|
}
|
|
198
196
|
ToastMessage.propTypes = propTypes;
|
|
199
197
|
ToastMessage.defaultProps = defaultProps; // if (__DOCS__) {
|
package/es/actions/AutoClose.js
CHANGED
|
@@ -37,7 +37,8 @@ export default function AutoClose(props) {
|
|
|
37
37
|
isClose,
|
|
38
38
|
onClose
|
|
39
39
|
});
|
|
40
|
-
return /*#__PURE__*/React.createElement(Element, newProps
|
|
40
|
+
return /*#__PURE__*/React.createElement(Element, { ...newProps
|
|
41
|
+
});
|
|
41
42
|
}
|
|
42
43
|
AutoClose.propTypes = propTypes;
|
|
43
44
|
AutoClose.defaultProps = defaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -51,7 +49,7 @@ export default class AlertLookup extends Component {
|
|
|
51
49
|
PrimaryButtonProps = {},
|
|
52
50
|
SecondaryButtonProps = {}
|
|
53
51
|
} = customProps;
|
|
54
|
-
return /*#__PURE__*/React.createElement(Lookup,
|
|
52
|
+
return /*#__PURE__*/React.createElement(Lookup, {
|
|
55
53
|
needFocusScope: true,
|
|
56
54
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
57
55
|
isActive: isActive,
|
|
@@ -59,8 +57,9 @@ export default class AlertLookup extends Component {
|
|
|
59
57
|
dataId: dataId,
|
|
60
58
|
forwardRef: forwardRef,
|
|
61
59
|
onClick: onLookupClick,
|
|
62
|
-
customClass: customClass
|
|
63
|
-
|
|
60
|
+
customClass: customClass,
|
|
61
|
+
...LookupProps
|
|
62
|
+
}, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
64
63
|
title: title,
|
|
65
64
|
palette: palette,
|
|
66
65
|
iconType: type,
|
|
@@ -69,8 +68,9 @@ export default class AlertLookup extends Component {
|
|
|
69
68
|
breakChildren: wrapHeader,
|
|
70
69
|
iconName: iconName,
|
|
71
70
|
iconClass: iconClass,
|
|
72
|
-
iconSize: iconSize
|
|
73
|
-
|
|
71
|
+
iconSize: iconSize,
|
|
72
|
+
...AlertHeaderProps
|
|
73
|
+
}, headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
|
|
74
74
|
alignBox: "row",
|
|
75
75
|
className: style.section
|
|
76
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -84,17 +84,19 @@ 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, {
|
|
88
88
|
text: submitText,
|
|
89
89
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
90
90
|
onClick: onSubmitClick,
|
|
91
|
-
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
|
|
92
|
-
|
|
91
|
+
palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled',
|
|
92
|
+
...PrimaryButtonProps
|
|
93
|
+
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
93
94
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
94
95
|
text: cancelText,
|
|
95
96
|
onClick: onCancelClick,
|
|
96
|
-
palette: "secondary"
|
|
97
|
-
|
|
97
|
+
palette: "secondary",
|
|
98
|
+
...SecondaryButtonProps
|
|
99
|
+
})) : null));
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -26,15 +24,17 @@ export default class AvatarClose extends React.Component {
|
|
|
26
24
|
AvatarCloseProps = {},
|
|
27
25
|
AvatarProps = {}
|
|
28
26
|
} = customProps;
|
|
29
|
-
return /*#__PURE__*/React.createElement("div",
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
28
|
className: style.container,
|
|
31
|
-
"data-selector-id": dataSelectorId
|
|
32
|
-
|
|
29
|
+
"data-selector-id": dataSelectorId,
|
|
30
|
+
...AvatarCloseProps
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
33
32
|
src: src,
|
|
34
33
|
name: name,
|
|
35
34
|
title: title,
|
|
36
|
-
size: size
|
|
37
|
-
|
|
35
|
+
size: size,
|
|
36
|
+
...AvatarProps
|
|
37
|
+
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
38
38
|
className: style.pop,
|
|
39
39
|
onClick: onClick
|
|
40
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -29,21 +27,23 @@ export default class AvatarCollision extends React.Component {
|
|
|
29
27
|
AvatarCollisionProps = {},
|
|
30
28
|
AvatarProps = {}
|
|
31
29
|
} = customProps;
|
|
32
|
-
return /*#__PURE__*/React.createElement("div",
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
31
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
34
32
|
onClick: onClick,
|
|
35
33
|
"data-id": "collsionPop",
|
|
36
34
|
"data-test-id": "collsionPop",
|
|
37
35
|
"data-title": title,
|
|
38
|
-
"data-selector-id": dataSelectorId
|
|
39
|
-
|
|
36
|
+
"data-selector-id": dataSelectorId,
|
|
37
|
+
...AvatarCollisionProps
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
40
39
|
src: src,
|
|
41
40
|
name: name,
|
|
42
41
|
size: size,
|
|
43
42
|
palette: "default",
|
|
44
43
|
needTitle: false,
|
|
45
|
-
initial: initial
|
|
46
|
-
|
|
44
|
+
initial: initial,
|
|
45
|
+
...AvatarProps
|
|
46
|
+
}), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
47
47
|
className: style.pop,
|
|
48
48
|
"data-title": title
|
|
49
49
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -30,7 +28,7 @@ export default class AvatarIcon extends React.Component {
|
|
|
30
28
|
AvatarIconProps = {}
|
|
31
29
|
} = customProps;
|
|
32
30
|
let border = borderOnHover || onClick;
|
|
33
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
31
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
34
32
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
|
|
35
33
|
onClick: onClick,
|
|
36
34
|
dataId: dataId,
|
|
@@ -38,8 +36,9 @@ export default class AvatarIcon extends React.Component {
|
|
|
38
36
|
isInline: true,
|
|
39
37
|
align: "both",
|
|
40
38
|
isCover: false,
|
|
41
|
-
dataSelectorId: dataSelectorId
|
|
42
|
-
|
|
39
|
+
dataSelectorId: dataSelectorId,
|
|
40
|
+
...AvatarIconProps
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
43
42
|
name: name,
|
|
44
43
|
size: iconSize,
|
|
45
44
|
iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
|
|
@@ -6,16 +6,11 @@
|
|
|
6
6
|
.container {
|
|
7
7
|
vertical-align: middle;
|
|
8
8
|
composes: varClass;
|
|
9
|
-
/* css:theme-validation:ignore */
|
|
10
9
|
border-width: 1px;
|
|
11
10
|
border-style: solid;
|
|
12
11
|
border-radius: 50%;
|
|
13
12
|
border-color: var(--border_color)
|
|
14
13
|
}
|
|
15
|
-
.borderOnHover:hover,
|
|
16
|
-
.borderOnActive {
|
|
17
|
-
/* css:theme-validation:ignore */
|
|
18
|
-
}
|
|
19
14
|
.borderOnHover:hover, .borderOnActive {
|
|
20
15
|
border-color: var(--border_hoverColor)
|
|
21
16
|
}
|
|
@@ -40,7 +35,6 @@
|
|
|
40
35
|
--border_hoverColor: var(--zdt_avatarIcon_danger_hover_border);
|
|
41
36
|
}
|
|
42
37
|
.iconColor {
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
38
|
color: var(--icon_color);
|
|
45
39
|
}
|
|
46
40
|
.icon_danger {
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -36,12 +34,12 @@ export default class AvatarStatus extends React.Component {
|
|
|
36
34
|
AvatarStatusProps = {},
|
|
37
35
|
AvatarProps = {}
|
|
38
36
|
} = customProps;
|
|
39
|
-
return /*#__PURE__*/React.createElement("div",
|
|
40
|
-
className: `${style.container} ${className}
|
|
41
|
-
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: `${style.container} ${className} `,
|
|
39
|
+
...AvatarStatusProps,
|
|
42
40
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
43
41
|
"data-selector-id": dataSelectorId
|
|
44
|
-
}
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
45
43
|
src: src,
|
|
46
44
|
name: name,
|
|
47
45
|
palette: palette,
|
|
@@ -55,8 +53,9 @@ export default class AvatarStatus extends React.Component {
|
|
|
55
53
|
shape: shape,
|
|
56
54
|
needTitle: needTitle,
|
|
57
55
|
needDefaultBorder: needDefaultBorder,
|
|
58
|
-
needBorder: needBorder
|
|
59
|
-
|
|
56
|
+
needBorder: needBorder,
|
|
57
|
+
...AvatarProps
|
|
58
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
60
59
|
"data-title": statusTitle,
|
|
61
60
|
className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
|
|
62
61
|
}));
|
|
@@ -1,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -39,10 +37,11 @@ export default class AvatarThread extends React.Component {
|
|
|
39
37
|
AvatarProps = {}
|
|
40
38
|
} = customProps;
|
|
41
39
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
42
|
-
return /*#__PURE__*/React.createElement("div",
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
41
|
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
44
|
-
"data-selector-id": dataSelectorId
|
|
45
|
-
|
|
42
|
+
"data-selector-id": dataSelectorId,
|
|
43
|
+
...AvatarThreadProps
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
46
45
|
initial: initial,
|
|
47
46
|
src: src,
|
|
48
47
|
name: name,
|
|
@@ -53,8 +52,9 @@ export default class AvatarThread extends React.Component {
|
|
|
53
52
|
palette: palette,
|
|
54
53
|
textPalette: textPalette,
|
|
55
54
|
customClass: customTextClass,
|
|
56
|
-
needTitle: needTitle
|
|
57
|
-
|
|
55
|
+
needTitle: needTitle,
|
|
56
|
+
...AvatarProps
|
|
57
|
+
}), (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,5 +1,3 @@
|
|
|
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
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -50,20 +48,22 @@ export default class AvatarUser extends React.Component {
|
|
|
50
48
|
portalTitle = 'End User',
|
|
51
49
|
lockTitle = 'Locked'
|
|
52
50
|
} = i18nKeys;
|
|
53
|
-
return /*#__PURE__*/React.createElement("div",
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
52
|
className: `${style.container} ${style[size]}`,
|
|
55
53
|
"data-id": dataId || name || iconName,
|
|
56
54
|
"data-test-id": dataId || name || iconName,
|
|
57
|
-
"data-selector-id": dataSelectorId
|
|
58
|
-
|
|
55
|
+
"data-selector-id": dataSelectorId,
|
|
56
|
+
...AvatarUserProps
|
|
57
|
+
}, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
59
58
|
name: iconName,
|
|
60
59
|
iconSize: iconSize,
|
|
61
60
|
size: size,
|
|
62
61
|
iconClass: iconClass,
|
|
63
62
|
dataId: iconName,
|
|
64
63
|
iconColor: iconColor,
|
|
65
|
-
title: title
|
|
66
|
-
|
|
64
|
+
title: title,
|
|
65
|
+
...AvatarIconProps
|
|
66
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
67
67
|
src: src,
|
|
68
68
|
name: name,
|
|
69
69
|
initial: initial,
|
|
@@ -74,8 +74,9 @@ export default class AvatarUser extends React.Component {
|
|
|
74
74
|
palette: palette,
|
|
75
75
|
textPalette: textPalette,
|
|
76
76
|
customClass: customTextClass,
|
|
77
|
-
alternateSrc: alternateSrc
|
|
78
|
-
|
|
77
|
+
alternateSrc: alternateSrc,
|
|
78
|
+
...AvatarProps
|
|
79
|
+
}), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
79
80
|
"data-title": paidTitle,
|
|
80
81
|
className: style.paid,
|
|
81
82
|
"data-id": "paidUser",
|