@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
|
@@ -1,11 +1,9 @@
|
|
|
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';
|
|
6
4
|
import CheckBox from '@zohodesk/components/es/v1/CheckBox/CheckBox';
|
|
7
5
|
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
8
|
-
import AvatarSize from '@zohodesk/components/es/
|
|
6
|
+
import AvatarSize from '@zohodesk/components/es/Provider/AvatarSize';
|
|
9
7
|
import ChannelIcon from '../ChannelIcon/ChannelIcon';
|
|
10
8
|
import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
|
|
11
9
|
import AvatarUser from '../avatar/AvatarUser/AvatarUser';
|
|
@@ -76,16 +74,17 @@ export default function FlipCard(props) {
|
|
|
76
74
|
}, !noNeedFlip ? /*#__PURE__*/React.createElement(Container, {
|
|
77
75
|
align: "both",
|
|
78
76
|
className: `${style.front} ${frontClass ? frontClass : ''}`
|
|
79
|
-
}, /*#__PURE__*/React.createElement(CheckBox,
|
|
77
|
+
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
80
78
|
isFilled: isFilledCheckbox,
|
|
81
79
|
checked: isChecked,
|
|
82
80
|
onChange: onChange,
|
|
83
81
|
id: `checkbox_${id}`,
|
|
84
|
-
dataId: `listViewCheckBox_${id}
|
|
85
|
-
|
|
82
|
+
dataId: `listViewCheckBox_${id}`,
|
|
83
|
+
...CheckBoxProps
|
|
84
|
+
})) : null, /*#__PURE__*/React.createElement(Container, {
|
|
86
85
|
align: "both",
|
|
87
86
|
className: style.back
|
|
88
|
-
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon,
|
|
87
|
+
}, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, {
|
|
89
88
|
name: channel,
|
|
90
89
|
action: action,
|
|
91
90
|
size: size,
|
|
@@ -98,8 +97,9 @@ export default function FlipCard(props) {
|
|
|
98
97
|
customTextClass: customTextClass,
|
|
99
98
|
iconColor: iconColor,
|
|
100
99
|
title: channelTitle,
|
|
101
|
-
iconTitle: channelTitle
|
|
102
|
-
|
|
100
|
+
iconTitle: channelTitle,
|
|
101
|
+
...ChannelIconProps
|
|
102
|
+
}) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
103
103
|
name: icon,
|
|
104
104
|
iconSize: iconSize,
|
|
105
105
|
size: size,
|
|
@@ -107,8 +107,9 @@ export default function FlipCard(props) {
|
|
|
107
107
|
dataId: icon,
|
|
108
108
|
className: className,
|
|
109
109
|
iconColor: iconColor,
|
|
110
|
-
title: needTitle ? name : ''
|
|
111
|
-
|
|
110
|
+
title: needTitle ? name : '',
|
|
111
|
+
...AvatarIconProps
|
|
112
|
+
}) : /*#__PURE__*/React.createElement(AvatarUser, {
|
|
112
113
|
name: name,
|
|
113
114
|
initial: initial,
|
|
114
115
|
size: size,
|
|
@@ -119,8 +120,9 @@ export default function FlipCard(props) {
|
|
|
119
120
|
needTitle: needTitle,
|
|
120
121
|
palette: palette,
|
|
121
122
|
textPalette: textPalette,
|
|
122
|
-
customTextClass: customTextClass
|
|
123
|
-
|
|
123
|
+
customTextClass: customTextClass,
|
|
124
|
+
...AvatarUserProps
|
|
125
|
+
}))));
|
|
124
126
|
}
|
|
125
127
|
FlipCard.propTypes = propTypes;
|
|
126
128
|
FlipCard.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -4,9 +4,9 @@ import { propTypes } from './props/propTypes';
|
|
|
4
4
|
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
5
5
|
import { mergeStyle } from '@zohodesk/utils';
|
|
6
6
|
import VelocityAnimationGroup from '@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
7
|
-
import { useZIndex } from '@zohodesk/components/es/
|
|
7
|
+
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
8
8
|
import cssJSLogic from '../../FreezeLayer/css/cssJSLogic';
|
|
9
|
-
import useFreezeLayer from '../../
|
|
9
|
+
import useFreezeLayer from '../../Hooks/useFreezeLayer';
|
|
10
10
|
import style from '../../FreezeLayer/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, { useEffect } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes, UI_propTypes, new_propTypes } from './props/propTypes';
|
|
@@ -96,7 +94,7 @@ export function GlobalNotificationUI(props) {
|
|
|
96
94
|
onClose && onClose(e);
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
return /*#__PURE__*/React.createElement("div",
|
|
97
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
100
98
|
ref: eleRef,
|
|
101
99
|
className: ` ${style.message}
|
|
102
100
|
${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
|
|
@@ -105,8 +103,9 @@ export function GlobalNotificationUI(props) {
|
|
|
105
103
|
"data-id": `show_${type}_message`,
|
|
106
104
|
"data-test-id": `show_${type}_message`,
|
|
107
105
|
tabIndex: 0,
|
|
108
|
-
"data-selector-id": dataSelectorId
|
|
109
|
-
|
|
106
|
+
"data-selector-id": dataSelectorId,
|
|
107
|
+
...ExtraProps
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
110
109
|
className: `${style.container}`,
|
|
111
110
|
alignBox: "row",
|
|
112
111
|
isCover: false,
|
|
@@ -138,8 +137,8 @@ export function GlobalNotificationUI(props) {
|
|
|
138
137
|
}
|
|
139
138
|
GlobalNotificationUI.propTypes = UI_propTypes;
|
|
140
139
|
export function GlobalNotificationNew(props) {
|
|
141
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
140
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
142
141
|
Element: GlobalNotificationUI
|
|
143
|
-
})
|
|
142
|
+
});
|
|
144
143
|
}
|
|
145
144
|
GlobalNotificationNew.propTypes = new_propTypes;
|
|
@@ -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';
|
|
@@ -73,7 +71,7 @@ export default function IconButton(props) {
|
|
|
73
71
|
hoverType: hoverType,
|
|
74
72
|
isDisabled: isDisabled,
|
|
75
73
|
isNeedEffect: isNeedEffect
|
|
76
|
-
}, /*#__PURE__*/React.createElement(Container,
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
77
75
|
"aria-label": ariaLabel,
|
|
78
76
|
"aria-haspopup": ariaHaspopup,
|
|
79
77
|
"aria-expanded": ariaExpanded,
|
|
@@ -97,8 +95,9 @@ export default function IconButton(props) {
|
|
|
97
95
|
onKeyDown: handleToggle,
|
|
98
96
|
onFocus: triggerMouseOver,
|
|
99
97
|
onBlur: onBlur,
|
|
100
|
-
disabled: isDisabled
|
|
101
|
-
|
|
98
|
+
disabled: isDisabled,
|
|
99
|
+
...customProps
|
|
100
|
+
}, iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
102
101
|
isBold: isBold,
|
|
103
102
|
size: iconSize,
|
|
104
103
|
name: iconName,
|
package/es/v1/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, { useContext, useRef } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -72,20 +70,20 @@ export default function Link(props) {
|
|
|
72
70
|
} //urlOutput = addHttp(urlOutput);
|
|
73
71
|
|
|
74
72
|
|
|
75
|
-
return /*#__PURE__*/React.createElement("a",
|
|
73
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
76
74
|
href: isLink && urlOutput ? urlOutput : 'javascript:void(0);',
|
|
77
75
|
target: target,
|
|
78
76
|
"data-title": title,
|
|
79
|
-
className: `${style.container} ${className ? className : ''}
|
|
80
|
-
|
|
77
|
+
className: `${style.container} ${className ? className : ''}`,
|
|
78
|
+
...option.current,
|
|
81
79
|
rel: rel,
|
|
82
80
|
"data-id": dataId,
|
|
83
|
-
"data-test-id": dataId
|
|
84
|
-
|
|
85
|
-
onClick: callBack
|
|
86
|
-
|
|
81
|
+
"data-test-id": dataId,
|
|
82
|
+
...others,
|
|
83
|
+
onClick: callBack,
|
|
84
|
+
...customProps,
|
|
87
85
|
"aria-label": ariaLabel
|
|
88
|
-
}
|
|
86
|
+
}, children);
|
|
89
87
|
}
|
|
90
88
|
Link.defaultProps = defaultProps;
|
|
91
89
|
Link.propTypes = propTypes; // if (__DOCS__) {
|
package/es/v1/Loader/Loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useZIndex } from '@zohodesk/components/es/
|
|
2
|
+
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
3
3
|
import style from '../../Loader/Loader.module.css';
|
|
4
4
|
export default function Loader() {
|
|
5
5
|
let getNextId = useZIndex();
|
package/es/v1/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, { useState, useEffect } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes, MessageUI_propTypes, MessageNew_propTypes } from './props/propTypes';
|
|
@@ -24,7 +22,8 @@ export default function Message(props) {
|
|
|
24
22
|
}, 3000);
|
|
25
23
|
}
|
|
26
24
|
}, [showMessage]);
|
|
27
|
-
return /*#__PURE__*/React.createElement(MessageUI, props
|
|
25
|
+
return /*#__PURE__*/React.createElement(MessageUI, { ...props
|
|
26
|
+
});
|
|
28
27
|
}
|
|
29
28
|
Message.propTypes = propTypes;
|
|
30
29
|
Message.defaultProps = defaultProps;
|
|
@@ -85,8 +84,8 @@ export function MessageUI(props) {
|
|
|
85
84
|
}
|
|
86
85
|
MessageUI.propTypes = MessageUI_propTypes;
|
|
87
86
|
export function MessageNew(props) {
|
|
88
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
87
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
89
88
|
Element: MessageUI
|
|
90
|
-
})
|
|
89
|
+
});
|
|
91
90
|
}
|
|
92
91
|
MessageNew.propTypes = MessageNew_propTypes;
|
|
@@ -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
|
|
@@ -7,8 +5,8 @@ import { propTypes } from './props/propTypes'; //components
|
|
|
7
5
|
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
8
6
|
import { Icon } from '@zohodesk/icons';
|
|
9
7
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
10
|
-
import { useZIndex } from '@zohodesk/components/es/
|
|
11
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
8
|
+
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
9
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
12
10
|
import AutoClose from '../actions/AutoClose';
|
|
13
11
|
import a11yStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css'; //style
|
|
14
12
|
|
|
@@ -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__) {
|
|
@@ -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,12 +1,10 @@
|
|
|
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';
|
|
6
4
|
import { propTypes } from './props/propTypes';
|
|
7
5
|
/**** Components ****/
|
|
8
6
|
|
|
9
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
7
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
10
8
|
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
11
9
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
12
10
|
import Lookup from '../../lookup/Lookup/Lookup';
|
|
@@ -90,7 +88,7 @@ export default function AlertLookup(props) {
|
|
|
90
88
|
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
91
89
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
92
90
|
};
|
|
93
|
-
return /*#__PURE__*/React.createElement(Lookup,
|
|
91
|
+
return /*#__PURE__*/React.createElement(Lookup, {
|
|
94
92
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
95
93
|
needFocusScope: true,
|
|
96
94
|
isActive: isActive,
|
|
@@ -100,8 +98,9 @@ export default function AlertLookup(props) {
|
|
|
100
98
|
onClick: onLookupClick,
|
|
101
99
|
customClass: containerClass,
|
|
102
100
|
a11y: a11y,
|
|
103
|
-
childAnimationName: childAnimationName
|
|
104
|
-
|
|
101
|
+
childAnimationName: childAnimationName,
|
|
102
|
+
...LookupProps
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
105
104
|
alignBox: "row",
|
|
106
105
|
align: align,
|
|
107
106
|
wrap: "wrap"
|
|
@@ -110,15 +109,16 @@ export default function AlertLookup(props) {
|
|
|
110
109
|
className: style.section
|
|
111
110
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
112
111
|
alignBox: "column"
|
|
113
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader,
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
114
113
|
htmlId: ariaTitleId,
|
|
115
114
|
title: title,
|
|
116
115
|
type: type,
|
|
117
116
|
needIcon: needIcon,
|
|
118
117
|
onClose: onClose,
|
|
119
118
|
breakChildren: wrapHeader,
|
|
120
|
-
renderAlertIcon: renderAlertIcon
|
|
121
|
-
|
|
119
|
+
renderAlertIcon: renderAlertIcon,
|
|
120
|
+
...AlertHeaderProps
|
|
121
|
+
}, headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
122
122
|
flexible: true
|
|
123
123
|
}, /*#__PURE__*/React.createElement("div", {
|
|
124
124
|
className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
|
|
@@ -137,30 +137,30 @@ export default function AlertLookup(props) {
|
|
|
137
137
|
}, /*#__PURE__*/React.createElement(FormAction, {
|
|
138
138
|
size: "small",
|
|
139
139
|
paddingLeftSize: "xmedium"
|
|
140
|
-
}, /*#__PURE__*/React.createElement(Button,
|
|
140
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
141
141
|
text: submitText,
|
|
142
142
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
143
143
|
onClick: onSubmitClick,
|
|
144
144
|
palette: buttonPalette,
|
|
145
145
|
customProps: {
|
|
146
146
|
'data-a11y-autofocus': isDefaultFocus
|
|
147
|
-
}
|
|
148
|
-
|
|
147
|
+
},
|
|
148
|
+
...PrimaryButtonProps,
|
|
149
149
|
a11y: {
|
|
150
150
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
151
151
|
},
|
|
152
152
|
id: ariaLeaveButtonId
|
|
153
|
-
})
|
|
153
|
+
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
154
154
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
155
155
|
text: cancelText,
|
|
156
156
|
onClick: onCancelClick,
|
|
157
|
-
palette: "secondary"
|
|
158
|
-
|
|
157
|
+
palette: "secondary",
|
|
158
|
+
...SecondaryButtonProps,
|
|
159
159
|
a11y: {
|
|
160
160
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
161
161
|
},
|
|
162
162
|
id: ariaStayButtonId
|
|
163
|
-
}))))
|
|
163
|
+
})))) : null))));
|
|
164
164
|
}
|
|
165
165
|
AlertLookup.propTypes = propTypes;
|
|
166
166
|
AlertLookup.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
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -21,15 +19,17 @@ export default function AvatarClose(props) {
|
|
|
21
19
|
AvatarCloseProps = {},
|
|
22
20
|
AvatarProps = {}
|
|
23
21
|
} = customProps;
|
|
24
|
-
return /*#__PURE__*/React.createElement("div",
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
23
|
className: style.container,
|
|
26
|
-
"data-selector-id": dataSelectorId
|
|
27
|
-
|
|
24
|
+
"data-selector-id": dataSelectorId,
|
|
25
|
+
...AvatarCloseProps
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
28
27
|
src: src,
|
|
29
28
|
name: name,
|
|
30
29
|
title: title,
|
|
31
|
-
size: size
|
|
32
|
-
|
|
30
|
+
size: size,
|
|
31
|
+
...AvatarProps
|
|
32
|
+
}), isClose && /*#__PURE__*/React.createElement("span", {
|
|
33
33
|
className: style.pop,
|
|
34
34
|
onClick: onClick
|
|
35
35
|
}, /*#__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';
|
|
@@ -24,21 +22,23 @@ export default function AvatarCollision(props) {
|
|
|
24
22
|
AvatarCollisionProps = {},
|
|
25
23
|
AvatarProps = {}
|
|
26
24
|
} = customProps;
|
|
27
|
-
return /*#__PURE__*/React.createElement("div",
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
26
|
className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
|
|
29
27
|
onClick: onClick,
|
|
30
28
|
"data-id": "collsionPop",
|
|
31
29
|
"data-test-id": "collsionPop",
|
|
32
30
|
"data-title": title,
|
|
33
|
-
"data-selector-id": dataSelectorId
|
|
34
|
-
|
|
31
|
+
"data-selector-id": dataSelectorId,
|
|
32
|
+
...AvatarCollisionProps
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
35
34
|
src: src,
|
|
36
35
|
name: name,
|
|
37
36
|
size: size,
|
|
38
37
|
palette: "default",
|
|
39
38
|
needTitle: false,
|
|
40
|
-
initial: initial
|
|
41
|
-
|
|
39
|
+
initial: initial,
|
|
40
|
+
...AvatarProps
|
|
41
|
+
}), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
|
|
42
42
|
className: style.pop,
|
|
43
43
|
"data-title": title
|
|
44
44
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,11 +1,9 @@
|
|
|
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';
|
|
6
4
|
import { Icon } from '@zohodesk/icons';
|
|
7
5
|
import { Container } from '@zohodesk/components/es/v1/Layout';
|
|
8
|
-
import AvatarSize from '@zohodesk/components/es/
|
|
6
|
+
import AvatarSize from '@zohodesk/components/es/Provider/AvatarSize';
|
|
9
7
|
import style from '../../../avatar/AvatarIcon/AvatarIcon.module.css';
|
|
10
8
|
export default function AvatarIcon(props) {
|
|
11
9
|
let {
|
|
@@ -29,7 +27,7 @@ export default function AvatarIcon(props) {
|
|
|
29
27
|
AvatarIconProps = {}
|
|
30
28
|
} = customProps;
|
|
31
29
|
let border = borderOnHover || onClick;
|
|
32
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
30
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
33
31
|
className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
|
|
34
32
|
onClick: onClick,
|
|
35
33
|
dataId: dataId,
|
|
@@ -37,8 +35,9 @@ export default function AvatarIcon(props) {
|
|
|
37
35
|
isInline: true,
|
|
38
36
|
align: "both",
|
|
39
37
|
isCover: false,
|
|
40
|
-
dataSelectorId: dataSelectorId
|
|
41
|
-
|
|
38
|
+
dataSelectorId: dataSelectorId,
|
|
39
|
+
...AvatarIconProps
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
42
41
|
name: name,
|
|
43
42
|
size: iconSize,
|
|
44
43
|
iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
|
|
@@ -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';
|
|
@@ -31,12 +29,12 @@ export default function AvatarStatus(props) {
|
|
|
31
29
|
AvatarStatusProps = {},
|
|
32
30
|
AvatarProps = {}
|
|
33
31
|
} = customProps;
|
|
34
|
-
return /*#__PURE__*/React.createElement("div",
|
|
35
|
-
className: `${style.container} ${className}
|
|
36
|
-
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: `${style.container} ${className} `,
|
|
34
|
+
...AvatarStatusProps,
|
|
37
35
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
38
36
|
"data-selector-id": dataSelectorId
|
|
39
|
-
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
40
38
|
src: src,
|
|
41
39
|
name: name,
|
|
42
40
|
palette: palette,
|
|
@@ -50,8 +48,9 @@ export default function AvatarStatus(props) {
|
|
|
50
48
|
shape: shape,
|
|
51
49
|
needTitle: needTitle,
|
|
52
50
|
needDefaultBorder: needDefaultBorder,
|
|
53
|
-
needBorder: needBorder
|
|
54
|
-
|
|
51
|
+
needBorder: needBorder,
|
|
52
|
+
...AvatarProps
|
|
53
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
55
54
|
"data-title": statusTitle,
|
|
56
55
|
className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
|
|
57
56
|
}));
|
|
@@ -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';
|
|
@@ -38,10 +36,11 @@ export default function AvatarThread(props) {
|
|
|
38
36
|
AvatarProps = {}
|
|
39
37
|
} = customProps;
|
|
40
38
|
let hoverEffect = showOnHover ? style.hover : '';
|
|
41
|
-
return /*#__PURE__*/React.createElement("div",
|
|
39
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
42
40
|
className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
|
|
43
|
-
"data-selector-id": dataSelectorId
|
|
44
|
-
|
|
41
|
+
"data-selector-id": dataSelectorId,
|
|
42
|
+
...AvatarThreadProps
|
|
43
|
+
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
45
44
|
initial: initial,
|
|
46
45
|
src: src,
|
|
47
46
|
name: name,
|
|
@@ -52,8 +51,9 @@ export default function AvatarThread(props) {
|
|
|
52
51
|
palette: palette,
|
|
53
52
|
textPalette: textPalette,
|
|
54
53
|
customClass: customTextClass,
|
|
55
|
-
needTitle: needTitle
|
|
56
|
-
|
|
54
|
+
needTitle: needTitle,
|
|
55
|
+
...AvatarProps
|
|
56
|
+
}), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
|
|
57
57
|
className: `${style.thread} ${onIconClick ? style.pointer : style.defaultCursor} ${needBackground ? style.threadBg : ''} ${style[`thread_${size}_pos`]} ${needBorder ? style[`border_${borderPalette}`] : ''}`,
|
|
58
58
|
"data-title": iconTitle,
|
|
59
59
|
"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';
|
|
@@ -49,20 +47,22 @@ export default function AvatarUser(props) {
|
|
|
49
47
|
portalTitle = 'End User',
|
|
50
48
|
lockTitle = 'Locked'
|
|
51
49
|
} = i18nKeys;
|
|
52
|
-
return /*#__PURE__*/React.createElement("div",
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
53
51
|
className: `${style.container} ${style[size]}`,
|
|
54
52
|
"data-id": dataId || name || iconName,
|
|
55
53
|
"data-test-id": dataId || name || iconName,
|
|
56
|
-
"data-selector-id": dataSelectorId
|
|
57
|
-
|
|
54
|
+
"data-selector-id": dataSelectorId,
|
|
55
|
+
...AvatarUserProps
|
|
56
|
+
}, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
|
|
58
57
|
name: iconName,
|
|
59
58
|
iconSize: iconSize,
|
|
60
59
|
size: size,
|
|
61
60
|
iconClass: iconClass,
|
|
62
61
|
dataId: iconName,
|
|
63
62
|
iconColor: iconColor,
|
|
64
|
-
title: title
|
|
65
|
-
|
|
63
|
+
title: title,
|
|
64
|
+
...AvatarIconProps
|
|
65
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
66
66
|
src: src,
|
|
67
67
|
name: name,
|
|
68
68
|
initial: initial,
|
|
@@ -73,8 +73,9 @@ export default function AvatarUser(props) {
|
|
|
73
73
|
palette: palette,
|
|
74
74
|
textPalette: textPalette,
|
|
75
75
|
customClass: customTextClass,
|
|
76
|
-
alternateSrc: alternateSrc
|
|
77
|
-
|
|
76
|
+
alternateSrc: alternateSrc,
|
|
77
|
+
...AvatarProps
|
|
78
|
+
}), isPaid ? /*#__PURE__*/React.createElement("span", {
|
|
78
79
|
"data-title": paidTitle,
|
|
79
80
|
className: style.paid,
|
|
80
81
|
"data-id": "paidUser",
|
|
@@ -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';
|
|
@@ -32,12 +30,13 @@ export default function AvatarWithTeam(props) {
|
|
|
32
30
|
Avatar2Props = {},
|
|
33
31
|
AvatarTeam2Props = {}
|
|
34
32
|
} = customProps;
|
|
35
|
-
return /*#__PURE__*/React.createElement("span",
|
|
33
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
36
34
|
className: `${style.container} `,
|
|
37
35
|
"data-id": "avatarWithTeamId",
|
|
38
36
|
"data-test-id": "avatarWithTeamId",
|
|
39
|
-
"data-selector-id": dataSelectorId
|
|
40
|
-
|
|
37
|
+
"data-selector-id": dataSelectorId,
|
|
38
|
+
...AvatarWithTeamProps
|
|
39
|
+
}, isTeam && teamName ? /*#__PURE__*/React.createElement(Avatar, {
|
|
41
40
|
name: name,
|
|
42
41
|
src: src,
|
|
43
42
|
size: size,
|
|
@@ -46,8 +45,9 @@ export default function AvatarWithTeam(props) {
|
|
|
46
45
|
palette: palette,
|
|
47
46
|
textPalette: textPalette,
|
|
48
47
|
customClass: customTextClass,
|
|
49
|
-
borderOnActive: borderOnActive
|
|
50
|
-
|
|
48
|
+
borderOnActive: borderOnActive,
|
|
49
|
+
...Avatar1Props
|
|
50
|
+
}) : isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
51
51
|
name: name,
|
|
52
52
|
src: src,
|
|
53
53
|
size: size,
|
|
@@ -58,8 +58,9 @@ export default function AvatarWithTeam(props) {
|
|
|
58
58
|
customClass: {
|
|
59
59
|
customAvatar: customTextClass
|
|
60
60
|
},
|
|
61
|
-
borderOnActive: borderOnActive
|
|
62
|
-
|
|
61
|
+
borderOnActive: borderOnActive,
|
|
62
|
+
...AvatarTeam1Props
|
|
63
|
+
}) : /*#__PURE__*/React.createElement(Avatar, {
|
|
63
64
|
name: name,
|
|
64
65
|
src: src,
|
|
65
66
|
size: size,
|
|
@@ -68,13 +69,14 @@ export default function AvatarWithTeam(props) {
|
|
|
68
69
|
palette: palette,
|
|
69
70
|
textPalette: textPalette,
|
|
70
71
|
customClass: customTextClass,
|
|
71
|
-
borderOnActive: borderOnActive
|
|
72
|
-
|
|
72
|
+
borderOnActive: borderOnActive,
|
|
73
|
+
...Avatar2Props
|
|
74
|
+
}), teamName ? /*#__PURE__*/React.createElement("span", {
|
|
73
75
|
className: `${style.teamAvatar} ${teamClassName} `,
|
|
74
76
|
"data-id": "teamNameTestId",
|
|
75
77
|
"data-test-id": "teamNameTestId",
|
|
76
78
|
"data-title": needTitle ? title : undefined
|
|
77
|
-
}, /*#__PURE__*/React.createElement(AvatarTeam,
|
|
79
|
+
}, /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
78
80
|
name: teamName,
|
|
79
81
|
size: "small",
|
|
80
82
|
palette: palette,
|
|
@@ -84,8 +86,9 @@ export default function AvatarWithTeam(props) {
|
|
|
84
86
|
customClass: {
|
|
85
87
|
customAvatar: customTextClass
|
|
86
88
|
},
|
|
87
|
-
borderOnActive: teamBorderActive
|
|
88
|
-
|
|
89
|
+
borderOnActive: teamBorderActive,
|
|
90
|
+
...AvatarTeam2Props
|
|
91
|
+
})) : null);
|
|
89
92
|
}
|
|
90
93
|
AvatarWithTeam.defaultProps = defaultProps;
|
|
91
94
|
AvatarWithTeam.propTypes = propTypes;
|