@zohodesk/dot 1.4.13 → 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 +6 -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/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 +28 -24
- 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 +18 -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 +14 -13
- 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/Drawer/Drawer.js +4 -5
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +14 -12
- 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/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +2 -4
- package/es/v1/actions/AutoClose.js +2 -1
- 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 +4 -5
- 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 +28 -24
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +18 -16
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- 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 +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
- 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/StatusListItem/StatusListItem.js +5 -5
- 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/notification/DesktopNotification/DesktopNotification.js +6 -7
- 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/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/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
- 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/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/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 +9 -9
- package/result.json +1 -1
|
@@ -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, DesktopNotificationUI_propTypes } from './props/propTypes';
|
|
@@ -117,14 +115,15 @@ export function DesktopNotificationUI(props) {
|
|
|
117
115
|
let {
|
|
118
116
|
uptoTablet
|
|
119
117
|
} = _ref2;
|
|
120
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
118
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
121
119
|
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
122
120
|
${isShrinkView ? style.globalNotify : ''} ${containerClass}
|
|
123
121
|
${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
124
122
|
isCover: false,
|
|
125
123
|
dataId: dataId,
|
|
126
|
-
isInline: uiVariantTwo
|
|
127
|
-
|
|
124
|
+
isInline: uiVariantTwo,
|
|
125
|
+
...ExtraProps
|
|
126
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
128
127
|
type: type,
|
|
129
128
|
title: title,
|
|
130
129
|
variant: titleVariant,
|
|
@@ -178,9 +177,9 @@ export function DesktopNotificationUI(props) {
|
|
|
178
177
|
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
179
178
|
DesktopNotificationUI.propTypes = defaultProps;
|
|
180
179
|
export default function DesktopNotification(props) {
|
|
181
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
180
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
182
181
|
Element: DesktopNotificationUI
|
|
183
|
-
})
|
|
182
|
+
});
|
|
184
183
|
}
|
|
185
184
|
DesktopNotification.propTypes = propTypes;
|
|
186
185
|
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -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, UI_propTypes, new_propTypes } from './props/propTypes';
|
|
@@ -121,7 +119,7 @@ export function GlobalNotificationUI(props) {
|
|
|
121
119
|
let {
|
|
122
120
|
ExtraProps = {}
|
|
123
121
|
} = customProps;
|
|
124
|
-
return /*#__PURE__*/React.createElement("div",
|
|
122
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
125
123
|
ref: eleRef,
|
|
126
124
|
className: ` ${style.message}
|
|
127
125
|
${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
|
|
@@ -130,8 +128,9 @@ export function GlobalNotificationUI(props) {
|
|
|
130
128
|
"data-id": `show_${type}_message`,
|
|
131
129
|
"data-test-id": `show_${type}_message`,
|
|
132
130
|
tabIndex: 0,
|
|
133
|
-
"data-selector-id": dataSelectorId
|
|
134
|
-
|
|
131
|
+
"data-selector-id": dataSelectorId,
|
|
132
|
+
...ExtraProps
|
|
133
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
135
134
|
className: `${style.container}`,
|
|
136
135
|
alignBox: "row",
|
|
137
136
|
isCover: false,
|
|
@@ -163,8 +162,8 @@ export function GlobalNotificationUI(props) {
|
|
|
163
162
|
}
|
|
164
163
|
GlobalNotificationUI.propTypes = UI_propTypes;
|
|
165
164
|
export function GlobalNotificationNew(props) {
|
|
166
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
165
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
167
166
|
Element: GlobalNotificationUI
|
|
168
|
-
})
|
|
167
|
+
});
|
|
169
168
|
}
|
|
170
169
|
GlobalNotificationNew.propTypes = new_propTypes;
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
.stackShadowTwo::before {
|
|
30
30
|
content: '';
|
|
31
31
|
position: absolute;
|
|
32
|
-
/* css:theme-validation:ignore */
|
|
33
32
|
height: var(--zd_size20) ;
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -78,9 +77,6 @@
|
|
|
78
77
|
.container {
|
|
79
78
|
position: relative;
|
|
80
79
|
pointer-events: initial;
|
|
81
|
-
/* css:theme-validation:ignore */
|
|
82
|
-
/* css:theme-validation:ignore */
|
|
83
|
-
/* css:theme-validation:ignore */
|
|
84
80
|
color: var(--globalnotification_text_color);
|
|
85
81
|
z-index: 1;
|
|
86
82
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -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';
|
|
@@ -123,7 +121,7 @@ export default class AlertLookup extends Component {
|
|
|
123
121
|
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
124
122
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
125
123
|
};
|
|
126
|
-
return /*#__PURE__*/React.createElement(Lookup,
|
|
124
|
+
return /*#__PURE__*/React.createElement(Lookup, {
|
|
127
125
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
128
126
|
needFocusScope: true,
|
|
129
127
|
isActive: isActive,
|
|
@@ -133,8 +131,9 @@ export default class AlertLookup extends Component {
|
|
|
133
131
|
onClick: onLookupClick,
|
|
134
132
|
customClass: containerClass,
|
|
135
133
|
a11y: a11y,
|
|
136
|
-
childAnimationName: childAnimationName
|
|
137
|
-
|
|
134
|
+
childAnimationName: childAnimationName,
|
|
135
|
+
...LookupProps
|
|
136
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
138
137
|
alignBox: "row",
|
|
139
138
|
align: align,
|
|
140
139
|
wrap: "wrap"
|
|
@@ -143,14 +142,15 @@ export default class AlertLookup extends Component {
|
|
|
143
142
|
className: style.section
|
|
144
143
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
145
144
|
alignBox: "column"
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader,
|
|
145
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
147
146
|
htmlId: ariaTitleId,
|
|
148
147
|
title: title,
|
|
149
148
|
type: type,
|
|
150
149
|
needIcon: needIcon,
|
|
151
150
|
onClose: onClose,
|
|
152
|
-
breakChildren: wrapHeader
|
|
153
|
-
|
|
151
|
+
breakChildren: wrapHeader,
|
|
152
|
+
...AlertHeaderProps
|
|
153
|
+
}, headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
154
154
|
flexible: true
|
|
155
155
|
}, /*#__PURE__*/React.createElement("div", {
|
|
156
156
|
className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
|
|
@@ -169,30 +169,30 @@ export default class AlertLookup extends Component {
|
|
|
169
169
|
}, /*#__PURE__*/React.createElement(FormAction, {
|
|
170
170
|
size: "small",
|
|
171
171
|
paddingLeftSize: "xmedium"
|
|
172
|
-
}, /*#__PURE__*/React.createElement(Button,
|
|
172
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
173
173
|
text: submitText,
|
|
174
174
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
175
175
|
onClick: onSubmitClick,
|
|
176
176
|
palette: buttonPalette,
|
|
177
177
|
customProps: {
|
|
178
178
|
'data-a11y-autofocus': isDefaultFocus
|
|
179
|
-
}
|
|
180
|
-
|
|
179
|
+
},
|
|
180
|
+
...PrimaryButtonProps,
|
|
181
181
|
a11y: {
|
|
182
182
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
183
183
|
},
|
|
184
184
|
id: ariaLeaveButtonId
|
|
185
|
-
})
|
|
185
|
+
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
186
186
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
187
187
|
text: cancelText,
|
|
188
188
|
onClick: onCancelClick,
|
|
189
|
-
palette: "secondary"
|
|
190
|
-
|
|
189
|
+
palette: "secondary",
|
|
190
|
+
...SecondaryButtonProps,
|
|
191
191
|
a11y: {
|
|
192
192
|
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
193
193
|
},
|
|
194
194
|
id: ariaStayButtonId
|
|
195
|
-
}))))
|
|
195
|
+
})))) : null))));
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
}
|
|
@@ -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, DesktopNotificationUI_propTypes } from './props/propTypes';
|
|
@@ -116,13 +114,14 @@ export function DesktopNotificationUI(props) {
|
|
|
116
114
|
let {
|
|
117
115
|
uptoTablet
|
|
118
116
|
} = _ref2;
|
|
119
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
117
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
120
118
|
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
121
119
|
${isShrinkView ? style.globalNotify : ''} ${containerClass} ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
122
120
|
isCover: false,
|
|
123
121
|
dataId: dataId,
|
|
124
|
-
isInline: uiVariantTwo
|
|
125
|
-
|
|
122
|
+
isInline: uiVariantTwo,
|
|
123
|
+
...ExtraProps
|
|
124
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
126
125
|
type: type,
|
|
127
126
|
title: title,
|
|
128
127
|
variant: titleVariant,
|
|
@@ -175,9 +174,9 @@ export function DesktopNotificationUI(props) {
|
|
|
175
174
|
}
|
|
176
175
|
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
177
176
|
export default function DesktopNotification(props) {
|
|
178
|
-
return /*#__PURE__*/React.createElement(AutoClose,
|
|
177
|
+
return /*#__PURE__*/React.createElement(AutoClose, { ...props,
|
|
179
178
|
Element: DesktopNotificationUI
|
|
180
|
-
})
|
|
179
|
+
});
|
|
181
180
|
}
|
|
182
181
|
DesktopNotification.propTypes = propTypes;
|
|
183
182
|
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
composes: varClass;
|
|
6
6
|
min-height: var(--zd_size54) ;
|
|
7
7
|
position: relative;
|
|
8
|
-
/* css:theme-validation:ignore */
|
|
9
|
-
/* css:theme-validation:ignore */
|
|
10
8
|
color: var(--zdt_desktopnotification_text);
|
|
11
9
|
background-color: var(--alert_lookup_bg_color);
|
|
12
10
|
border-style: solid;
|
|
@@ -3,121 +3,163 @@
|
|
|
3
3
|
--buttonBorder: var(--zdt_actionButton_primary_border);
|
|
4
4
|
--buttonSeparatorBorder: var(--zdt_actionButton_separator_border);
|
|
5
5
|
}
|
|
6
|
+
|
|
6
7
|
.container {
|
|
7
8
|
composes: varClass;
|
|
8
9
|
}
|
|
10
|
+
|
|
9
11
|
.container:hover {
|
|
10
12
|
--buttonSeparatorBorder: var(--zdt_actionButton_separator_hover_border);
|
|
11
13
|
}
|
|
14
|
+
|
|
12
15
|
.primaryFilledBox {
|
|
13
16
|
--buttonText: var(--zdt_actionButton_primaryFilled_text);
|
|
14
17
|
}
|
|
15
|
-
|
|
18
|
+
|
|
19
|
+
.primaryFilledBtn,
|
|
20
|
+
.primaryFilledArw {
|
|
16
21
|
/* css:theme-validation:ignore */
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.primaryFilledBtn, .primaryFilledArw {
|
|
17
25
|
background-color: var(--buttonBg);
|
|
18
26
|
}
|
|
27
|
+
|
|
19
28
|
.primaryBox {
|
|
20
29
|
--buttonText: var(--zdt_actionButton_primary_text);
|
|
21
30
|
}
|
|
22
|
-
|
|
31
|
+
|
|
32
|
+
.primaryBtn,
|
|
33
|
+
.primaryArw {
|
|
23
34
|
/* css:theme-validation:ignore */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.primaryBtn, .primaryArw {
|
|
24
38
|
border: 1px solid var(--buttonBorder);
|
|
25
39
|
}
|
|
40
|
+
|
|
26
41
|
[dir=ltr] .primaryBtn {
|
|
27
42
|
border-right: none;
|
|
28
43
|
}
|
|
44
|
+
|
|
29
45
|
[dir=rtl] .primaryBtn {
|
|
30
46
|
border-left: none;
|
|
31
47
|
}
|
|
48
|
+
|
|
32
49
|
.contentBox,
|
|
33
50
|
.arrowWrapper {
|
|
34
51
|
transition: width var(--zd_transition3), padding var(--zd_transition3), background-color var(--zd_transition2), border-color var(--zd_transition2);
|
|
35
52
|
}
|
|
53
|
+
|
|
36
54
|
.contentBox, .arrowWrapper {
|
|
37
55
|
margin: 0 ;
|
|
38
56
|
}
|
|
57
|
+
|
|
39
58
|
.clickable {
|
|
40
59
|
cursor: pointer;
|
|
41
60
|
}
|
|
61
|
+
|
|
42
62
|
[dir=ltr] .contentBoxBdr {
|
|
43
63
|
border-radius: var(--zd_size4) 0 0 var(--zd_size4);
|
|
44
64
|
}
|
|
65
|
+
|
|
45
66
|
[dir=rtl] .contentBoxBdr {
|
|
46
67
|
border-radius: 0 var(--zd_size4) var(--zd_size4) 0;
|
|
47
68
|
}
|
|
69
|
+
|
|
48
70
|
.contentBoxBdrRds {
|
|
49
71
|
border-radius: var(--zd_size4);
|
|
50
72
|
}
|
|
73
|
+
|
|
51
74
|
.small {
|
|
52
75
|
height: var(--zd_size28) ;
|
|
53
76
|
}
|
|
77
|
+
|
|
54
78
|
.medium,
|
|
55
79
|
.large {
|
|
56
80
|
height: var(--zd_size30) ;
|
|
57
81
|
}
|
|
82
|
+
|
|
58
83
|
.medium {
|
|
59
84
|
min-width: var(--zd_size115) ;
|
|
60
85
|
}
|
|
86
|
+
|
|
61
87
|
.large {
|
|
62
88
|
min-width: var(--zd_size135) ;
|
|
63
89
|
}
|
|
90
|
+
|
|
64
91
|
.small_btnBox {
|
|
65
92
|
padding: 0 var(--zd_size8) ;
|
|
66
93
|
}
|
|
94
|
+
|
|
67
95
|
.medium_btnBox, .large_btnBox {
|
|
68
96
|
padding: 0 var(--zd_size10) ;
|
|
69
97
|
}
|
|
98
|
+
|
|
70
99
|
.txt {
|
|
71
100
|
font-size: var(--zd_font_size13) ;
|
|
72
101
|
font-family: var(--zd_semibold);
|
|
73
102
|
text-transform: capitalize;
|
|
74
103
|
}
|
|
104
|
+
|
|
75
105
|
.subTxt {
|
|
76
106
|
font-size: var(--zd_font_size10) ;
|
|
77
107
|
}
|
|
108
|
+
|
|
78
109
|
.contentwrapper,
|
|
79
110
|
.txt,
|
|
80
111
|
.subTxt {
|
|
81
112
|
max-width: 100% ;
|
|
82
113
|
}
|
|
114
|
+
|
|
83
115
|
.txt,
|
|
84
116
|
.subTxt {
|
|
85
117
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
86
118
|
/* css:theme-validation:ignore */
|
|
87
119
|
color: var(--buttonText);
|
|
88
120
|
}
|
|
121
|
+
|
|
89
122
|
.arrowWrapper {
|
|
90
123
|
position: relative;
|
|
91
124
|
composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
|
|
92
125
|
cursor: pointer;
|
|
93
126
|
}
|
|
127
|
+
|
|
94
128
|
[dir=ltr] .arrowWrapper {
|
|
95
129
|
border-radius: 0 var(--zd_size4) var(--zd_size4) 0;
|
|
96
130
|
}
|
|
131
|
+
|
|
97
132
|
[dir=rtl] .arrowWrapper {
|
|
98
133
|
border-radius: var(--zd_size4) 0 0 var(--zd_size4);
|
|
99
134
|
}
|
|
135
|
+
|
|
100
136
|
.primaryFilledArw {
|
|
101
137
|
/* css:theme-validation:ignore */
|
|
102
138
|
}
|
|
139
|
+
|
|
103
140
|
[dir=ltr] .primaryFilledArw {
|
|
104
141
|
border-left: 1px solid var(--buttonSeparatorBorder);
|
|
105
142
|
}
|
|
143
|
+
|
|
106
144
|
[dir=rtl] .primaryFilledArw {
|
|
107
|
-
|
|
145
|
+
border-right: 1px solid var(--buttonSeparatorBorder);
|
|
108
146
|
}
|
|
147
|
+
|
|
109
148
|
.small_arrowBox {
|
|
110
149
|
width: var(--zd_size20) ;
|
|
111
150
|
}
|
|
151
|
+
|
|
112
152
|
.medium_arrowBox {
|
|
113
153
|
width: var(--zd_size26) ;
|
|
114
154
|
}
|
|
155
|
+
|
|
115
156
|
.primaryFilledArw:hover,
|
|
116
157
|
.primaryFilledArw.arrowActive,
|
|
117
158
|
.clickable.primaryFilledBtn:hover,
|
|
118
159
|
.wholeDiv.primaryFilledBox:hover {
|
|
119
160
|
--buttonBg: var(--zdt_actionButton_primaryFilled_hover_bg);
|
|
120
161
|
}
|
|
162
|
+
|
|
121
163
|
.primaryArw:hover,
|
|
122
164
|
.primaryArw.arrowActive,
|
|
123
165
|
.clickable.primaryBtn:hover,
|
|
@@ -125,22 +167,27 @@
|
|
|
125
167
|
--buttonBorder: var(--zdt_actionButton_primary_hover_border);
|
|
126
168
|
--buttonText: var(--zdt_actionButton_primary_hover_text);
|
|
127
169
|
}
|
|
170
|
+
|
|
128
171
|
.btn {
|
|
129
172
|
height: 100% ;
|
|
130
173
|
width: 100% ;
|
|
131
174
|
}
|
|
175
|
+
|
|
132
176
|
.popupWrapper {
|
|
133
177
|
padding: var(--zd_size10) 0 ;
|
|
134
178
|
margin: var(--zd_size5) 0 ;
|
|
135
179
|
}
|
|
180
|
+
|
|
136
181
|
.arrow,
|
|
137
182
|
.iconClr {
|
|
138
183
|
/* css:theme-validation:ignore */
|
|
139
184
|
color: var(--buttonText);
|
|
140
185
|
}
|
|
186
|
+
|
|
141
187
|
[dir=ltr] .iconMrgn {
|
|
142
188
|
margin-right: var(--zd_size6) ;
|
|
143
189
|
}
|
|
190
|
+
|
|
144
191
|
[dir=rtl] .iconMrgn {
|
|
145
192
|
margin-left: var(--zd_size6) ;
|
|
146
|
-
}
|
|
193
|
+
}
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
.list {
|
|
34
34
|
font-size: var(--zd_font_size11) ;
|
|
35
35
|
flex-basis: var(--zd_size12) ;
|
|
36
|
-
/* css:theme-validation:ignore */
|
|
37
36
|
color: var(--textColor);
|
|
38
37
|
text-align: center;
|
|
39
38
|
cursor: pointer;
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
}
|
|
51
50
|
.list :hover,
|
|
52
51
|
.selected {
|
|
53
|
-
/* css:theme-validation:ignore */
|
|
54
52
|
color: var(--textHoverColor);
|
|
55
53
|
}
|
|
56
54
|
.title {
|
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
.imgItem {
|
|
155
155
|
height: var(--zd_size60) ;
|
|
156
156
|
min-width: var(--zd_size40) ;
|
|
157
|
-
/* css:theme-validation:ignore */
|
|
158
157
|
position: relative;
|
|
159
158
|
transition: border var(--zd_transition3);
|
|
160
159
|
border-width: 2px;
|
|
@@ -346,7 +345,6 @@
|
|
|
346
345
|
}
|
|
347
346
|
|
|
348
347
|
.btn {
|
|
349
|
-
/* css:theme-validation:ignore */
|
|
350
348
|
height: 100% ;
|
|
351
349
|
width: 100% ;
|
|
352
350
|
background-color: var(--dot_mirror);
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
--topIconColor: var(--zdt_channelIcon_topIcon_iconGreen);
|
|
5
5
|
--topIconBorderColor: var(--zdt_channelIcon_topIcon_border);
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.container {
|
|
8
9
|
position: relative;
|
|
9
10
|
composes: dInflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
10
11
|
vertical-align: middle;
|
|
11
12
|
composes: varClass;
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
.thread {
|
|
14
16
|
composes: dflex alignVertical alignHorizontal rounded from '~@zohodesk/components/lib/common/common.module.css';
|
|
15
17
|
position: absolute;
|
|
@@ -19,19 +21,21 @@
|
|
|
19
21
|
/* css:theme-validation:ignore */
|
|
20
22
|
background-color: var(--topIconBg);
|
|
21
23
|
}
|
|
24
|
+
|
|
22
25
|
[dir=ltr] .thread {
|
|
23
26
|
right: calc( var(--zd_size1) * -1 ) ;
|
|
24
27
|
}
|
|
28
|
+
|
|
25
29
|
[dir=rtl] .thread {
|
|
26
30
|
left: calc( var(--zd_size1) * -1 ) ;
|
|
27
31
|
}
|
|
32
|
+
|
|
28
33
|
.threadBorder {
|
|
29
|
-
/* css:theme-validation:ignore */
|
|
30
34
|
border: 1px solid var(--topIconBorderColor);
|
|
31
35
|
}
|
|
36
|
+
|
|
32
37
|
.iconStyle {
|
|
33
38
|
position: relative;
|
|
34
|
-
/* css:theme-validation:ignore */
|
|
35
39
|
color: var(--iconColor);
|
|
36
40
|
}
|
|
37
41
|
|
|
@@ -212,10 +216,11 @@
|
|
|
212
216
|
.topic_olive {
|
|
213
217
|
--topIconColor: var(--zdt_channelIcon_topIcon_iconGreen);
|
|
214
218
|
}
|
|
219
|
+
|
|
215
220
|
.topic_yellow3 {
|
|
216
221
|
--topIconColor: var(--zdt_channelIcon_topIcon_iconYellow);
|
|
217
222
|
}
|
|
223
|
+
|
|
218
224
|
.topicIcon {
|
|
219
|
-
/* css:theme-validation:ignore */
|
|
220
225
|
color: var(--topIconColor);
|
|
221
|
-
}
|
|
226
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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 {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
.title {
|
|
23
23
|
font-family: var(--zd_semibold);
|
|
24
|
-
/* css:theme-validation:ignore */
|
|
25
24
|
color: var(--titleColor);
|
|
26
25
|
word-wrap: break-word;
|
|
27
26
|
}
|
|
@@ -33,7 +32,6 @@
|
|
|
33
32
|
}
|
|
34
33
|
.linkWrapper,
|
|
35
34
|
.linkDescWrapper {
|
|
36
|
-
/* css:theme-validation:ignore */
|
|
37
35
|
color: var(--descriptionColor);
|
|
38
36
|
}
|
|
39
37
|
.small .linkWrapper,
|
|
@@ -69,13 +67,11 @@
|
|
|
69
67
|
line-height: 1.358;
|
|
70
68
|
}
|
|
71
69
|
.link {
|
|
72
|
-
/* css:theme-validation:ignore */
|
|
73
70
|
color: var(--linkColor);
|
|
74
71
|
display: inline-block;
|
|
75
72
|
cursor: pointer;
|
|
76
73
|
}
|
|
77
74
|
.link:hover {
|
|
78
|
-
/* css:theme-validation:ignore */
|
|
79
75
|
color: var(--linkHoverColor);
|
|
80
76
|
}
|
|
81
77
|
.children {
|