@zohodesk/dot 1.0.0-temp-182 → 1.0.0-temp-183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/propValidation_report.html +1 -1
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +50 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +50 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +50 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +7 -4
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/Attachment/Attachment.module.css +4 -4
- package/es/ChannelIcon/ChannelIcon.module.css +1 -1
- package/es/Drawer/Drawer.js +5 -4
- package/es/Drawer/Drawer.module.css +3 -3
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/ImportantNotes/ImportantNotes.module.css +1 -1
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Message/Message.module.css +1 -1
- package/es/Separator/Separator.module.css +2 -11
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +3 -3
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/errorstate/EmptyStates.module.css +1 -24
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +15 -18
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -16
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/es/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +9 -3
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +2 -1
- package/es/list/GridStencils/GridStencils.module.css +1 -35
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +9 -8
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/header/Close/LookupClose.module.css +2 -3
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/Title/LookupTitle.module.css +2 -6
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/es/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/es/setup/header/Search/Search.module.css +2 -14
- package/es/setup/table/Text/TableText.module.css +2 -11
- package/es/v1/Drawer/Drawer.js +5 -4
- package/es/v1/ExternalLink/ExternalLink.js +5 -4
- package/es/v1/FlipCard/FlipCard.js +12 -14
- package/es/v1/GlobalNotification/GlobalNotification.js +7 -6
- package/es/v1/IconButton/IconButton.js +5 -4
- package/es/v1/Link/Link.js +10 -8
- package/es/v1/Message/Message.js +5 -4
- package/es/v1/ToastMessage/ToastMessage.js +4 -2
- package/es/v1/actions/AutoClose.js +1 -2
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +16 -18
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/v1/form/fields/TextareaField/TextareaField.js +13 -14
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/v1/list/ListLayout/ListLayout.js +5 -4
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +9 -8
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +5 -4
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +5 -4
- package/es/v1/lookup/header/Search/Search.js +3 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.js +7 -6
- package/es/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/lib/Attachment/Attachment.module.css +4 -4
- package/lib/ChannelIcon/ChannelIcon.module.css +1 -1
- package/lib/Drawer/Drawer.module.css +3 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +1 -1
- package/lib/Message/Message.module.css +1 -1
- package/lib/Separator/Separator.module.css +2 -11
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.module.css +3 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +2 -4
- package/lib/avatar/AvatarUser/AvatarUser.module.css +2 -46
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +2 -2
- package/lib/errorstate/EmptyStates.module.css +1 -24
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TextEditor/TextEditor.module.css +63 -48
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +2 -22
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
- package/lib/list/AvatarFlip/AvatarFlip.module.css +2 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +2 -4
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -35
- package/lib/list/Subject/Subject.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -1
- package/lib/lookup/header/Close/LookupClose.module.css +2 -3
- package/lib/lookup/header/Title/LookupTitle.module.css +2 -6
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +2 -13
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -9
- package/lib/setup/header/Search/Search.module.css +2 -14
- package/lib/setup/table/Text/TableText.module.css +2 -11
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +6 -6
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -7
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +2 -8
- package/lib/version2/lookup/alertLookupCommonNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +3 -4
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +93 -96
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/*** Libraries ***/
|
|
@@ -69,11 +71,7 @@ export default function Search(props) {
|
|
|
69
71
|
selectedId: selectedId,
|
|
70
72
|
onDropDownOpen: handleDropDownOpen,
|
|
71
73
|
onDropDownClose: handleDropDownClose
|
|
72
|
-
}, /*#__PURE__*/React.createElement(SearchUI, {
|
|
73
|
-
...searchUIExtraProps
|
|
74
|
-
})) : /*#__PURE__*/React.createElement(SearchUI, { ...props,
|
|
75
|
-
...searchUIExtraProps
|
|
76
|
-
});
|
|
74
|
+
}, /*#__PURE__*/React.createElement(SearchUI, _extends({}, props, searchUIExtraProps))) : /*#__PURE__*/React.createElement(SearchUI, _extends({}, props, searchUIExtraProps));
|
|
77
75
|
}
|
|
78
76
|
Search.propTypes = Search_propTypes;
|
|
79
77
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import defaultProps from './props/defaultProps';
|
|
3
5
|
import { propTypes, DesktopNotificationUI_propTypes } from './props/propTypes';
|
|
@@ -115,15 +117,14 @@ export function DesktopNotificationUI(props) {
|
|
|
115
117
|
let {
|
|
116
118
|
uptoTablet
|
|
117
119
|
} = _ref2;
|
|
118
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
120
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
119
121
|
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
120
122
|
${isShrinkView ? style.globalNotify : ''} ${containerClass}
|
|
121
123
|
${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
122
124
|
isCover: false,
|
|
123
125
|
dataId: dataId,
|
|
124
|
-
isInline: uiVariantTwo
|
|
125
|
-
|
|
126
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
126
|
+
isInline: uiVariantTwo
|
|
127
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
127
128
|
type: type,
|
|
128
129
|
title: title,
|
|
129
130
|
variant: titleVariant,
|
|
@@ -177,9 +178,9 @@ export function DesktopNotificationUI(props) {
|
|
|
177
178
|
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
178
179
|
DesktopNotificationUI.propTypes = defaultProps;
|
|
179
180
|
export default function DesktopNotification(props) {
|
|
180
|
-
return /*#__PURE__*/React.createElement(AutoClose, {
|
|
181
|
+
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
181
182
|
Element: DesktopNotificationUI
|
|
182
|
-
});
|
|
183
|
+
}));
|
|
183
184
|
}
|
|
184
185
|
DesktopNotification.propTypes = propTypes;
|
|
185
186
|
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes, UI_propTypes, new_propTypes } from './props/propTypes';
|
|
@@ -119,7 +121,7 @@ export function GlobalNotificationUI(props) {
|
|
|
119
121
|
let {
|
|
120
122
|
ExtraProps = {}
|
|
121
123
|
} = customProps;
|
|
122
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
123
125
|
ref: eleRef,
|
|
124
126
|
className: ` ${style.message}
|
|
125
127
|
${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
|
|
@@ -128,9 +130,8 @@ export function GlobalNotificationUI(props) {
|
|
|
128
130
|
"data-id": `show_${type}_message`,
|
|
129
131
|
"data-test-id": `show_${type}_message`,
|
|
130
132
|
tabIndex: 0,
|
|
131
|
-
"data-selector-id": dataSelectorId
|
|
132
|
-
|
|
133
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
133
|
+
"data-selector-id": dataSelectorId
|
|
134
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Container, {
|
|
134
135
|
className: `${style.container}`,
|
|
135
136
|
alignBox: "row",
|
|
136
137
|
isCover: false,
|
|
@@ -162,8 +163,8 @@ export function GlobalNotificationUI(props) {
|
|
|
162
163
|
}
|
|
163
164
|
GlobalNotificationUI.propTypes = UI_propTypes;
|
|
164
165
|
export function GlobalNotificationNew(props) {
|
|
165
|
-
return /*#__PURE__*/React.createElement(AutoClose, {
|
|
166
|
+
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
166
167
|
Element: GlobalNotificationUI
|
|
167
|
-
});
|
|
168
|
+
}));
|
|
168
169
|
}
|
|
169
170
|
GlobalNotificationNew.propTypes = new_propTypes;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* globalnotfication default variables */
|
|
3
3
|
--commonalert_border_color: var(--zdt_commonalert_default_border);
|
|
4
4
|
--globalnotification_bg_color: var(--zdt_globalnotification_default_bg);
|
|
5
|
-
--globalnotification_text_color: var(--
|
|
5
|
+
--globalnotification_text_color: var(--zdt_globalnotification_default_text);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.message {
|
|
@@ -117,31 +117,31 @@
|
|
|
117
117
|
.success {
|
|
118
118
|
--commonalert_border_color: var(--zdt_commonalert_success_border);
|
|
119
119
|
--globalnotification_bg_color: var(--zdt_globalnotification_success_bg);
|
|
120
|
-
--globalnotification_text_color: var(--
|
|
120
|
+
--globalnotification_text_color: var(--zdt_globalnotification_success_text);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.info {
|
|
124
124
|
--commonalert_border_color: var(--zdt_commonalert_info_border);
|
|
125
125
|
--globalnotification_bg_color: var(--zdt_globalnotification_info_bg);
|
|
126
|
-
--globalnotification_text_color: var(--
|
|
126
|
+
--globalnotification_text_color: var(--zdt_globalnotification_info_text);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.danger {
|
|
130
130
|
--commonalert_border_color: var(--zdt_commonalert_danger_border);
|
|
131
131
|
--globalnotification_bg_color: var(--zdt_globalnotification_danger_bg);
|
|
132
|
-
--globalnotification_text_color: var(--
|
|
132
|
+
--globalnotification_text_color: var(--zdt_globalnotification_danger_text);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.error {
|
|
136
136
|
--commonalert_border_color: var(--zdt_commonalert_error_border);
|
|
137
137
|
--globalnotification_bg_color: var(--zdt_globalnotification_error_bg);
|
|
138
|
-
--globalnotification_text_color: var(--
|
|
138
|
+
--globalnotification_text_color: var(--zdt_globalnotification_error_text);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.warning {
|
|
142
142
|
--commonalert_border_color: var(--zdt_commonalert_warning_border);
|
|
143
143
|
--globalnotification_bg_color: var(--zdt_globalnotification_warning_bg);
|
|
144
|
-
--globalnotification_text_color: var(--
|
|
144
|
+
--globalnotification_text_color: var(--zdt_globalnotification_warning_text);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.text {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--commonalert_border_color: var(--zdt_commonalert_default_border);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
.container {
|
|
6
5
|
composes: varClass;
|
|
7
6
|
position: relative;
|
|
@@ -10,15 +9,12 @@
|
|
|
10
9
|
border-color: var(--commonalert_border_color);
|
|
11
10
|
border-width: 2px 0 0 0;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
.headerLayout {
|
|
15
13
|
min-height: var(--zd_size54) ;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
[dir=ltr] .headerLayout {
|
|
19
16
|
padding: var(--zd_size15) var(--zd_size45) 0 var(--zd_size20) ;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
[dir=rtl] .headerLayout {
|
|
23
19
|
padding: var(--zd_size15) var(--zd_size20) 0 var(--zd_size45) ;
|
|
24
20
|
}
|
|
@@ -27,8 +23,7 @@
|
|
|
27
23
|
--commonalert_border_color: var(--zdt_commonalert_success_border);
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
.info
|
|
31
|
-
.notification {
|
|
26
|
+
.info,.notification {
|
|
32
27
|
--commonalert_border_color: var(--zdt_commonalert_info_border);
|
|
33
28
|
}
|
|
34
29
|
|
|
@@ -58,7 +53,7 @@
|
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
.title {
|
|
61
|
-
color: var(--
|
|
56
|
+
color: var(--zdt_alertlookupnew_text);
|
|
62
57
|
font-size: var(--zd_font_size18) ;
|
|
63
58
|
line-height: 1.2222;
|
|
64
59
|
font-family: var(--zd_bold);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React, { Component } from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -121,7 +123,7 @@ export default class AlertLookup extends Component {
|
|
|
121
123
|
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
122
124
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
123
125
|
};
|
|
124
|
-
return /*#__PURE__*/React.createElement(Lookup, {
|
|
126
|
+
return /*#__PURE__*/React.createElement(Lookup, _extends({
|
|
125
127
|
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
126
128
|
needFocusScope: true,
|
|
127
129
|
isActive: isActive,
|
|
@@ -131,9 +133,8 @@ export default class AlertLookup extends Component {
|
|
|
131
133
|
onClick: onLookupClick,
|
|
132
134
|
customClass: containerClass,
|
|
133
135
|
a11y: a11y,
|
|
134
|
-
childAnimationName: childAnimationName
|
|
135
|
-
|
|
136
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
136
|
+
childAnimationName: childAnimationName
|
|
137
|
+
}, LookupProps), /*#__PURE__*/React.createElement(Container, {
|
|
137
138
|
alignBox: "row",
|
|
138
139
|
align: align,
|
|
139
140
|
wrap: "wrap"
|
|
@@ -142,15 +143,14 @@ export default class AlertLookup extends Component {
|
|
|
142
143
|
className: style.section
|
|
143
144
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
144
145
|
alignBox: "column"
|
|
145
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, {
|
|
146
|
+
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, _extends({
|
|
146
147
|
htmlId: ariaTitleId,
|
|
147
148
|
title: title,
|
|
148
149
|
type: type,
|
|
149
150
|
needIcon: needIcon,
|
|
150
151
|
onClose: onClose,
|
|
151
|
-
breakChildren: wrapHeader
|
|
152
|
-
|
|
153
|
-
}, headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
152
|
+
breakChildren: wrapHeader
|
|
153
|
+
}, AlertHeaderProps), 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, _extends({
|
|
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
|
-
}), cancelText && /*#__PURE__*/React.createElement(Button, {
|
|
185
|
+
})), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
|
|
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
|
-
})))) : null))));
|
|
195
|
+
}))))) : null))));
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.innerSection {
|
|
6
|
-
color: var(--
|
|
6
|
+
color: var(--zdt_alertlookupnew_text);
|
|
7
7
|
font-size: var(--zd_font_size14) ;
|
|
8
8
|
line-height: 1.428;
|
|
9
9
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -30,21 +30,15 @@
|
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
.horizontalScroll,
|
|
35
|
-
.verticalScroll,
|
|
36
|
-
.bothScroll {
|
|
33
|
+
.horizontalScroll, .verticalScroll, .bothScroll {
|
|
37
34
|
height: 100% ;
|
|
38
35
|
}
|
|
39
|
-
|
|
40
36
|
.horizontalScroll {
|
|
41
37
|
composes: oflowx from '~@zohodesk/components/lib/common/common.module.css';
|
|
42
38
|
}
|
|
43
|
-
|
|
44
39
|
.verticalScroll {
|
|
45
40
|
composes: oflowy from '~@zohodesk/components/lib/common/common.module.css';
|
|
46
41
|
}
|
|
47
|
-
|
|
48
42
|
.bothScroll {
|
|
49
43
|
composes: oflowA from '~@zohodesk/components/lib/common/common.module.css';
|
|
50
44
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes, DesktopNotificationUI_propTypes } from './props/propTypes';
|
|
@@ -114,14 +116,13 @@ export function DesktopNotificationUI(props) {
|
|
|
114
116
|
let {
|
|
115
117
|
uptoTablet
|
|
116
118
|
} = _ref2;
|
|
117
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
119
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
118
120
|
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
|
|
119
121
|
${isShrinkView ? style.globalNotify : ''} ${containerClass} ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
|
|
120
122
|
isCover: false,
|
|
121
123
|
dataId: dataId,
|
|
122
|
-
isInline: uiVariantTwo
|
|
123
|
-
|
|
124
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
124
|
+
isInline: uiVariantTwo
|
|
125
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
125
126
|
type: type,
|
|
126
127
|
title: title,
|
|
127
128
|
variant: titleVariant,
|
|
@@ -174,9 +175,9 @@ export function DesktopNotificationUI(props) {
|
|
|
174
175
|
}
|
|
175
176
|
DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
|
|
176
177
|
export default function DesktopNotification(props) {
|
|
177
|
-
return /*#__PURE__*/React.createElement(AutoClose, {
|
|
178
|
+
return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
|
|
178
179
|
Element: DesktopNotificationUI
|
|
179
|
-
});
|
|
180
|
+
}));
|
|
180
181
|
}
|
|
181
182
|
DesktopNotification.propTypes = propTypes;
|
|
182
183
|
DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.container {
|
|
7
|
-
color: var(--
|
|
7
|
+
color: var(--zdt_desktopnotification_text);
|
|
8
8
|
transition: all var(--zd_transition4);
|
|
9
9
|
position: relative;
|
|
10
10
|
max-height: 100% ;
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
.large {
|
|
37
37
|
width: var(--zd_size580) ;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
.tapWidth {
|
|
39
|
+
.tapWidth{
|
|
41
40
|
max-width: 100% ;
|
|
42
41
|
min-width: 100% ;
|
|
43
42
|
}
|
|
@@ -131,4 +130,4 @@
|
|
|
131
130
|
.footer {
|
|
132
131
|
overflow: hidden;
|
|
133
132
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
134
|
-
}
|
|
133
|
+
}
|
package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -1,57 +1,54 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--commonalert_border_color: var(--zdt_commonalert_default_border);
|
|
3
3
|
}
|
|
4
|
-
|
|
5
4
|
.container {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.title {
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
[dir=ltr] .title {
|
|
5
|
+
composes: varClass;
|
|
6
|
+
min-height: var(--zd_size54) ;
|
|
7
|
+
position: relative;
|
|
8
|
+
color: var(--zdt_desktopnotification_text);
|
|
9
|
+
background-color: var(--alert_lookup_bg_color);
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-color: var(--commonalert_border_color);
|
|
12
|
+
border-width: 2px 0 0 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.title {
|
|
16
|
+
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[dir=ltr] .title {
|
|
21
20
|
margin: 0 var(--zd_size5) 0 var(--zd_size10) ;
|
|
22
|
-
}
|
|
21
|
+
}
|
|
23
22
|
|
|
24
|
-
[dir=rtl] .title {
|
|
25
|
-
|
|
26
|
-
}
|
|
23
|
+
[dir=rtl] .title {
|
|
24
|
+
margin: 0 var(--zd_size10) 0 var(--zd_size5) ;
|
|
25
|
+
}
|
|
27
26
|
|
|
28
|
-
.infoText {
|
|
29
|
-
|
|
30
|
-
}
|
|
27
|
+
.infoText {
|
|
28
|
+
max-width: 100% ;
|
|
29
|
+
}
|
|
31
30
|
|
|
32
|
-
/* Palette */
|
|
31
|
+
/* Palette */
|
|
33
32
|
|
|
34
|
-
.success {
|
|
35
|
-
|
|
36
|
-
}
|
|
33
|
+
.success {
|
|
34
|
+
--commonalert_border_color: var(--zdt_commonalert_success_border);
|
|
35
|
+
}
|
|
37
36
|
|
|
38
|
-
.info
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
--commonalert_border_color: var(--zdt_commonalert_info_border);
|
|
42
|
-
}
|
|
37
|
+
.info,.notification,.alarm {
|
|
38
|
+
--commonalert_border_color: var(--zdt_commonalert_info_border);
|
|
39
|
+
}
|
|
43
40
|
|
|
44
|
-
.danger {
|
|
45
|
-
|
|
46
|
-
}
|
|
41
|
+
.danger {
|
|
42
|
+
--commonalert_border_color: var(--zdt_commonalert_danger_border);
|
|
43
|
+
}
|
|
47
44
|
|
|
48
|
-
.error {
|
|
49
|
-
|
|
50
|
-
}
|
|
45
|
+
.error {
|
|
46
|
+
--commonalert_border_color: var(--zdt_commonalert_error_border);
|
|
47
|
+
}
|
|
51
48
|
|
|
52
|
-
.warning {
|
|
53
|
-
|
|
54
|
-
}
|
|
49
|
+
.warning {
|
|
50
|
+
--commonalert_border_color: var(--zdt_commonalert_warning_border);
|
|
51
|
+
}
|
|
55
52
|
|
|
56
53
|
|
|
57
54
|
/* Primary Header */
|
|
@@ -59,7 +56,7 @@
|
|
|
59
56
|
padding: var(--zd_size15) var(--zd_size45) 0 var(--zd_size20) ;
|
|
60
57
|
}
|
|
61
58
|
[dir=rtl] .primary {
|
|
62
|
-
|
|
59
|
+
padding: var(--zd_size15) var(--zd_size20) 0 var(--zd_size45) ;
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
.primary .iconContainer {
|
|
@@ -68,68 +65,68 @@
|
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
.primary .infoText {
|
|
71
|
-
|
|
72
|
-
}
|
|
68
|
+
line-height: 1;
|
|
69
|
+
}
|
|
73
70
|
|
|
74
|
-
.primary .close {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
71
|
+
.primary .close {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: var(--zd_size12) ;
|
|
74
|
+
}
|
|
78
75
|
|
|
79
|
-
[dir=ltr] .primary .close {
|
|
76
|
+
[dir=ltr] .primary .close {
|
|
80
77
|
right: var(--zd_size12) ;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
[dir=rtl] .primary .close {
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Secondary Header */
|
|
88
|
-
.secondary {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
[dir=ltr] .secondary {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[dir=rtl] .primary .close {
|
|
81
|
+
left: var(--zd_size12) ;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Secondary Header */
|
|
85
|
+
.secondary {
|
|
86
|
+
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
87
|
+
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
88
|
+
}
|
|
89
|
+
[dir=ltr] .secondary {
|
|
93
90
|
padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75) ;
|
|
94
|
-
}
|
|
95
|
-
[dir=rtl] .secondary {
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.secondary .infoText {
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.secondary .iconContainer {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
[dir=ltr] .secondary .iconContainer {
|
|
91
|
+
}
|
|
92
|
+
[dir=rtl] .secondary {
|
|
93
|
+
padding: var(--zd_size18) var(--zd_size75) var(--zd_size19) var(--zd_size70) ;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.secondary .infoText {
|
|
97
|
+
line-height: 1.4286;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.secondary .iconContainer {
|
|
101
|
+
height: var(--zd_size44) ;
|
|
102
|
+
width: var(--zd_size44) ;
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0 ;
|
|
105
|
+
bottom: 0 ;
|
|
106
|
+
margin: auto 0 ;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[dir=ltr] .secondary .iconContainer {
|
|
113
110
|
left: var(--zd_size18) ;
|
|
114
|
-
}
|
|
111
|
+
}
|
|
115
112
|
|
|
116
|
-
[dir=rtl] .secondary .iconContainer {
|
|
117
|
-
|
|
118
|
-
}
|
|
113
|
+
[dir=rtl] .secondary .iconContainer {
|
|
114
|
+
right: var(--zd_size18) ;
|
|
115
|
+
}
|
|
119
116
|
|
|
120
|
-
.secondary .close {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
117
|
+
.secondary .close {
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 0 ;
|
|
120
|
+
bottom: 0 ;
|
|
121
|
+
height: var(--zd_size25) ;
|
|
122
|
+
}
|
|
126
123
|
|
|
127
|
-
[dir=ltr] .secondary .close {
|
|
124
|
+
[dir=ltr] .secondary .close {
|
|
128
125
|
right: var(--zd_size12) ;
|
|
129
126
|
margin: auto 0 auto var(--zd_size25) ;
|
|
130
|
-
}
|
|
127
|
+
}
|
|
131
128
|
|
|
132
|
-
[dir=rtl] .secondary .close {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
129
|
+
[dir=rtl] .secondary .close {
|
|
130
|
+
left: var(--zd_size12) ;
|
|
131
|
+
margin: auto var(--zd_size25) auto 0 ;
|
|
132
|
+
}
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
height: 100% ;
|
|
15
15
|
width: 100% ;
|
|
16
16
|
position: absolute;
|
|
17
|
-
top:
|
|
17
|
+
top:0
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[dir=ltr] .disableLayer {
|
|
21
|
-
left:
|
|
21
|
+
left:0
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[dir=rtl] .disableLayer {
|
|
25
|
-
right:
|
|
25
|
+
right:0
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.attachmentHover {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.palette_default {
|
|
33
|
-
background-color: var(--
|
|
33
|
+
background-color: var(--zdt_attachment_default_bg);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.palette_transparent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
transition: width var(--zd_transition3);
|
|
3
3
|
box-shadow: var(--zd_bs_drawer_shadow);
|
|
4
|
-
background-color: var(--
|
|
4
|
+
background-color: var(--zdt_drawer_default_bg);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.isOverlay {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.secondDrawer {
|
|
31
|
-
background-color: var(--
|
|
31
|
+
background-color: var(--zdt_drawer_default_bg);
|
|
32
32
|
box-shadow: var(--zd_bs_drawer_shadow);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.title {
|
|
111
|
-
color: var(--
|
|
111
|
+
color: var(--zdt_drawer_title_text);
|
|
112
112
|
font-family: var(--zd_semibold);
|
|
113
113
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
114
114
|
font-size: var(--zd_font_size16) ;
|