@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,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
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/**** Libraries ****/
|
|
@@ -31,7 +29,7 @@ export default function PhoneNumber(props) {
|
|
|
31
29
|
LinkProps = {},
|
|
32
30
|
TextProps = {}
|
|
33
31
|
} = customProps;
|
|
34
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
32
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
35
33
|
href: href,
|
|
36
34
|
title: title,
|
|
37
35
|
urlData: urlData,
|
|
@@ -39,13 +37,15 @@ export default function PhoneNumber(props) {
|
|
|
39
37
|
dataId: dataId,
|
|
40
38
|
target: target,
|
|
41
39
|
hasReload: hasReload,
|
|
42
|
-
className: style.link
|
|
43
|
-
|
|
40
|
+
className: style.link,
|
|
41
|
+
...LinkProps
|
|
42
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
44
43
|
className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
45
|
-
}, text)) : /*#__PURE__*/React.createElement("div",
|
|
44
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
46
45
|
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
47
|
-
"data-title": title
|
|
48
|
-
|
|
46
|
+
"data-title": title,
|
|
47
|
+
...TextProps
|
|
48
|
+
}, text));
|
|
49
49
|
}
|
|
50
50
|
PhoneNumber.propTypes = PhoneNumber_propTypes;
|
|
51
51
|
PhoneNumber.defaultProps = PhoneNumber_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 { SecondaryText_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { SecondaryText_propTypes } from './props/propTypes';
|
|
@@ -16,13 +14,14 @@ export default function SecondaryText(props) {
|
|
|
16
14
|
let {
|
|
17
15
|
SecondaryTextProps
|
|
18
16
|
} = customProps;
|
|
19
|
-
return /*#__PURE__*/React.createElement("div",
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
18
|
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
21
19
|
"data-title": dataTitle,
|
|
22
20
|
"data-id": dataId,
|
|
23
21
|
"data-test-id": dataId,
|
|
24
|
-
onClick: onClick
|
|
25
|
-
|
|
22
|
+
onClick: onClick,
|
|
23
|
+
...SecondaryTextProps
|
|
24
|
+
}, text);
|
|
26
25
|
}
|
|
27
26
|
SecondaryText.propTypes = SecondaryText_propTypes;
|
|
28
27
|
SecondaryText.defaultProps = SecondaryText_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 { TicketId_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TicketId_propTypes } from './props/propTypes';
|
|
@@ -23,19 +21,21 @@ export default function TicketId(props) {
|
|
|
23
21
|
LinkProps = {},
|
|
24
22
|
TicketIdProps = {}
|
|
25
23
|
} = customProps;
|
|
26
|
-
return /*#__PURE__*/React.createElement("div",
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
25
|
className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
|
|
28
26
|
"data-id": dataId,
|
|
29
27
|
"data-test-id": dataId,
|
|
30
28
|
"data-title": dataTitle,
|
|
31
|
-
onClick: !isLink && onClick
|
|
32
|
-
|
|
29
|
+
onClick: !isLink && onClick,
|
|
30
|
+
...TicketIdProps
|
|
31
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
33
32
|
urlName: urlName,
|
|
34
33
|
urlData: urlData,
|
|
35
34
|
href: url,
|
|
36
35
|
target: target,
|
|
37
|
-
onClick: onClick
|
|
38
|
-
|
|
36
|
+
onClick: onClick,
|
|
37
|
+
...LinkProps
|
|
38
|
+
}, text) : text);
|
|
39
39
|
}
|
|
40
40
|
TicketId.propTypes = TicketId_propTypes;
|
|
41
41
|
TicketId.defaultProps = TicketId_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';
|
|
@@ -26,7 +24,7 @@ const Subject = props => {
|
|
|
26
24
|
LinkProps = {},
|
|
27
25
|
TextProps = {}
|
|
28
26
|
} = customProps;
|
|
29
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link,
|
|
27
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
30
28
|
urlName: urlName,
|
|
31
29
|
href: href,
|
|
32
30
|
urlData: urlData,
|
|
@@ -34,13 +32,15 @@ const Subject = props => {
|
|
|
34
32
|
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
35
33
|
dataId: dataId,
|
|
36
34
|
title: text,
|
|
37
|
-
target: target
|
|
38
|
-
|
|
35
|
+
target: target,
|
|
36
|
+
...LinkProps
|
|
37
|
+
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
39
38
|
className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
|
|
40
39
|
"data-title": text,
|
|
41
40
|
"data-id": dataId,
|
|
42
|
-
"data-test-id": dataId
|
|
43
|
-
|
|
41
|
+
"data-test-id": dataId,
|
|
42
|
+
...TextProps
|
|
43
|
+
}, text));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export default Subject;
|
|
@@ -15,8 +15,8 @@ import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptySt
|
|
|
15
15
|
import StatusListItem from '../StatusListItem/StatusListItem';
|
|
16
16
|
import commonStyle from '@zohodesk/components/es/common/common.module.css';
|
|
17
17
|
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
18
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/
|
|
19
|
-
import { useUniqueId } from '@zohodesk/components/es/
|
|
18
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
19
|
+
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
20
20
|
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
|
|
21
21
|
import style from '../../../../list/status/StatusDropdown/StatusDropdown.module.css';
|
|
22
22
|
|
|
@@ -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, { useRef } from 'react';
|
|
5
3
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -8,7 +6,7 @@ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
|
8
6
|
/**** Components ****/
|
|
9
7
|
|
|
10
8
|
import { Icon } from '@zohodesk/icons';
|
|
11
|
-
import CssProvider from '@zohodesk/components/es/
|
|
9
|
+
import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
14
12
|
import style from '../../../../list/status/StatusListItem/StatusListItem.module.css';
|
|
@@ -66,7 +64,7 @@ export default function StatusListItem(props) {
|
|
|
66
64
|
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
67
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
70
68
|
role: role,
|
|
71
69
|
"aria-selected": ariaSelected,
|
|
72
70
|
isCover: false,
|
|
@@ -79,8 +77,10 @@ export default function StatusListItem(props) {
|
|
|
79
77
|
eleRef: getReference,
|
|
80
78
|
tagName: isLink ? 'a' : 'li',
|
|
81
79
|
"data-title": isDisabled ? disableTitle : null,
|
|
82
|
-
tabindex: isDisabled ? '-1' : '0'
|
|
83
|
-
|
|
80
|
+
tabindex: isDisabled ? '-1' : '0',
|
|
81
|
+
...options,
|
|
82
|
+
...a11y
|
|
83
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
84
84
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
85
85
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
86
86
|
flexible: true,
|
|
@@ -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, { useRef, useCallback, useEffect } from 'react';
|
|
5
3
|
import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
|
|
@@ -31,7 +29,8 @@ export default function Lookup(props) {
|
|
|
31
29
|
needFocusScope,
|
|
32
30
|
customProps,
|
|
33
31
|
onKeyDown,
|
|
34
|
-
isMinHeight
|
|
32
|
+
isMinHeight,
|
|
33
|
+
lookupClass
|
|
35
34
|
} = props;
|
|
36
35
|
const {
|
|
37
36
|
role = 'dialog',
|
|
@@ -67,7 +66,7 @@ export default function Lookup(props) {
|
|
|
67
66
|
document.removeEventListener('keydown', handleKeyDown);
|
|
68
67
|
};
|
|
69
68
|
}, []);
|
|
70
|
-
const content = /*#__PURE__*/React.createElement("div",
|
|
69
|
+
const content = /*#__PURE__*/React.createElement("div", {
|
|
71
70
|
ref: createRef,
|
|
72
71
|
tabIndex: "-1",
|
|
73
72
|
"data-a11y-need-focus-style": "false",
|
|
@@ -77,10 +76,11 @@ export default function Lookup(props) {
|
|
|
77
76
|
"aria-label": ariaLabel,
|
|
78
77
|
"aria-modal": ariaModal,
|
|
79
78
|
id: htmlId,
|
|
80
|
-
className: `${style.box} ${style[`${size}Size`]}`,
|
|
79
|
+
className: `${style.box} ${style[`${size}Size`]} ${lookupClass ? lookupClass : ''}`,
|
|
81
80
|
"data-id": dataId,
|
|
82
|
-
"data-test-id": dataId
|
|
83
|
-
|
|
81
|
+
"data-test-id": dataId,
|
|
82
|
+
...a11yAttributes
|
|
83
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
84
84
|
"data-drag-container": "true",
|
|
85
85
|
isCover: false,
|
|
86
86
|
className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
|
|
@@ -4,7 +4,7 @@ export const propTypes = {
|
|
|
4
4
|
customClass: PropTypes.string,
|
|
5
5
|
dataId: PropTypes.string,
|
|
6
6
|
isActive: PropTypes.bool,
|
|
7
|
-
size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'full']),
|
|
7
|
+
size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'xlarge', 'full']),
|
|
8
8
|
htmlId: PropTypes.string,
|
|
9
9
|
a11y: PropTypes.shape({
|
|
10
10
|
role: PropTypes.string,
|
|
@@ -19,5 +19,6 @@ export const propTypes = {
|
|
|
19
19
|
forwardRef: PropTypes.object,
|
|
20
20
|
onClick: PropTypes.func,
|
|
21
21
|
onClose: PropTypes.func,
|
|
22
|
-
isMinHeight: PropTypes.bool
|
|
22
|
+
isMinHeight: PropTypes.bool,
|
|
23
|
+
lookupClass: PropTypes.string
|
|
23
24
|
};
|
|
@@ -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
|
/* eslint-disable react/forbid-component-props */
|
|
4
2
|
|
|
5
3
|
/*** Libraries ***/
|
|
@@ -71,7 +69,11 @@ export default function Search(props) {
|
|
|
71
69
|
selectedId: selectedId,
|
|
72
70
|
onDropDownOpen: handleDropDownOpen,
|
|
73
71
|
onDropDownClose: handleDropDownClose
|
|
74
|
-
}, /*#__PURE__*/React.createElement(SearchUI,
|
|
72
|
+
}, /*#__PURE__*/React.createElement(SearchUI, { ...props,
|
|
73
|
+
...searchUIExtraProps
|
|
74
|
+
})) : /*#__PURE__*/React.createElement(SearchUI, { ...props,
|
|
75
|
+
...searchUIExtraProps
|
|
76
|
+
});
|
|
75
77
|
}
|
|
76
78
|
Search.propTypes = Search_propTypes;
|
|
77
79
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { memo, useRef } from 'react';
|
|
3
3
|
import { defaultProps } from './props/defaultProps';
|
|
4
4
|
import { propTypes } from './props/propTypes';
|
|
5
5
|
/*** Components ***/
|
|
@@ -9,6 +9,7 @@ import Close from '../Close/Close';
|
|
|
9
9
|
import Search from '../Search/Search';
|
|
10
10
|
import ViewDropDown from '../../../../lookup/header/ViewDropDown/ViewDropDown';
|
|
11
11
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
12
|
+
import useDragger from '../../../../Hooks/Dragger/useDragger';
|
|
12
13
|
/*** CSS ***/
|
|
13
14
|
|
|
14
15
|
import commonStyle from '../../../../lookup/header/lookupHeaderCommon.module.css';
|
|
@@ -16,7 +17,7 @@ import commonResponsive from '../../../../lookup/header/lookupHeaderCommonRespon
|
|
|
16
17
|
import style from '../../../../lookup/header/TicketHeader/TicketHeader.module.css';
|
|
17
18
|
/* eslint-disable react/forbid-component-props */
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
function TicketHeader(props) {
|
|
20
21
|
let {
|
|
21
22
|
needSearch,
|
|
22
23
|
onLookupClose,
|
|
@@ -32,23 +33,29 @@ export default function TicketHeader(props) {
|
|
|
32
33
|
getSearchBoxRef,
|
|
33
34
|
needViewsList,
|
|
34
35
|
i18nKeys,
|
|
35
|
-
palette
|
|
36
|
+
palette,
|
|
37
|
+
dragBoundaryLimit
|
|
36
38
|
} = props;
|
|
37
39
|
let {
|
|
38
40
|
menuEmptyMessage = 'No matches found'
|
|
39
41
|
} = i18nKeys;
|
|
42
|
+
const dragRef = useRef(null); //dragRef
|
|
43
|
+
|
|
44
|
+
useDragger({
|
|
45
|
+
isActive: true,
|
|
46
|
+
ChildRef: dragRef,
|
|
47
|
+
boundaryLimit: dragBoundaryLimit
|
|
48
|
+
}); //custom Hook
|
|
49
|
+
|
|
40
50
|
return /*#__PURE__*/React.createElement(Container, {
|
|
41
51
|
align: "vertical",
|
|
42
52
|
alignBox: "row",
|
|
43
53
|
className: `${commonStyle.container} ${commonStyle[`${palette}`]} ${commonResponsive.container} ${style.container}`,
|
|
44
54
|
isCover: false,
|
|
45
|
-
wrap: "wrap"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, /*#__PURE__*/React.createElement(
|
|
49
|
-
onClose: onLookupClose,
|
|
50
|
-
dataId: "close"
|
|
51
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
wrap: "wrap",
|
|
56
|
+
ref: dragRef,
|
|
57
|
+
"data-drag-hook": "true"
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
52
59
|
flexible: true
|
|
53
60
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
54
61
|
alignBox: "column",
|
|
@@ -84,7 +91,18 @@ export default function TicketHeader(props) {
|
|
|
84
91
|
dataId: "search",
|
|
85
92
|
needOnTypeSearch: needOnTypeSearch,
|
|
86
93
|
getRef: getSearchBoxRef
|
|
87
|
-
})) : null
|
|
94
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
className: commonStyle.closeContainer
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Close, {
|
|
97
|
+
onClose: onLookupClose,
|
|
98
|
+
dataId: "close"
|
|
99
|
+
})));
|
|
88
100
|
}
|
|
101
|
+
|
|
89
102
|
TicketHeader.propTypes = propTypes;
|
|
90
|
-
TicketHeader.defaultProps = defaultProps;
|
|
103
|
+
TicketHeader.defaultProps = defaultProps;
|
|
104
|
+
const MemoizedTicketHeader = /*#__PURE__*/memo(TicketHeader);
|
|
105
|
+
MemoizedTicketHeader.propTypes = propTypes;
|
|
106
|
+
MemoizedTicketHeader.defaultProps = defaultProps;
|
|
107
|
+
MemoizedTicketHeader.displayName = 'TicketHeader';
|
|
108
|
+
export default MemoizedTicketHeader;
|
|
@@ -10,7 +10,7 @@ import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
|
|
|
10
10
|
import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
|
|
11
11
|
import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
|
|
12
12
|
import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
|
|
13
|
-
import { ResponsiveReceiver } from '@zohodesk/components/es/
|
|
13
|
+
import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
|
|
14
14
|
/**** Icons ****/
|
|
15
15
|
|
|
16
16
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -1,10 +1,8 @@
|
|
|
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';
|
|
6
4
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
7
|
-
import { useZIndex } from '@zohodesk/components/es/
|
|
5
|
+
import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
|
|
8
6
|
import AutoClose from '../../../actions/AutoClose';
|
|
9
7
|
import Button from '@zohodesk/components/es/v1/Button/Button';
|
|
10
8
|
import FormAction from '../../../FormAction/FormAction';
|
|
@@ -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;
|