@zohodesk/dot 1.0.0-temp-48 → 1.0.0-temp-52
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/README.md +89 -30
- package/es/ActionButton/ActionButton.module.css +25 -9
- package/es/AlphabeticList/AlphabeticList.module.css +7 -4
- package/es/Appearance/dark/mode/dotDarkMode.module.css +5 -4
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/es/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/es/Appearance/default/mode/dotDefaultMode.module.css +5 -4
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/es/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/es/Attachment/Attachment.module.css +20 -9
- package/es/ChannelIcon/ChannelIcon.module.css +30 -21
- package/es/Drawer/Drawer.module.css +59 -11
- package/es/FlipCard/FlipCard.module.css +14 -5
- package/es/FormAction/FormAction.module.css +34 -9
- package/es/FreezeLayer/FreezeLayer.module.css +7 -3
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.module.css +7 -2
- package/es/Link/Link.js +1 -1
- package/es/Loader/Loader.module.css +25 -4
- package/es/Message/Message.module.css +42 -9
- package/es/MessageBanner/MessageBanner.js +10 -5
- package/es/MessageBanner/MessageBanner.module.css +13 -4
- package/es/NewStar/NewStar.module.css +43 -6
- package/es/Provider.js +7 -1
- package/es/ToastMessage/ToastMessage.module.css +98 -29
- package/es/Upload/Upload.module.css +27 -8
- package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
- package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
- package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
- package/es/avatar/AvatarThread/AvatarThread.js +7 -5
- package/es/avatar/AvatarThread/AvatarThread.module.css +55 -5
- package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +10 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -3
- package/es/docs/setupDocs.js +1 -3
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +19 -6
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
- package/es/emptystate/EditionPage/EditionPage.css +9 -3
- package/es/errorstate/EmptyStates.module.css +13 -10
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
- package/es/errorstate/WillBack/WillBack.module.css +1 -3
- package/es/form/fields/Fields.module.css +48 -12
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
- package/es/form/fields/TextEditor/TextEditor.js +1 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +143 -71
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +14 -3
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
- package/es/form/layout/Section/Section.js +7 -3
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
- package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
- package/es/list/Comment/Comment.module.css +5 -0
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +72 -18
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/ListLayout/ListLayout.js +10 -4
- package/es/list/ListLayout/ListLayout.module.css +34 -12
- package/es/list/ListStencils/ListStencils.module.css +11 -6
- package/es/list/SecondaryText/SecondaryText.module.css +13 -3
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +2 -2
- package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
- package/es/list/TagNew/TagNew.module.css +14 -7
- package/es/list/Thread/Thread.module.css +13 -1
- package/es/list/UserTime/UserTime.module.css +6 -0
- package/es/list/listCommon.module.css +9 -1
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +19 -6
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
- package/es/lookup/Lookup/Lookup.module.css +2 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Close/LookupClose.module.css +4 -4
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
- package/es/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +13 -3
- package/es/lookup/header/Search/LookupSearch.module.css +21 -12
- package/es/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +9 -4
- package/es/lookup/header/lookupHeaderCommon.module.css +22 -6
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
- package/es/setup/header/Button/HeaderButton.module.css +3 -1
- package/es/setup/header/Link/HeaderLink.module.css +7 -1
- package/es/setup/header/Search/Search.module.css +19 -8
- package/es/setup/header/Views/Views.module.css +15 -5
- package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
- package/es/setup/table/TableData/SetupTableData.module.css +11 -3
- package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
- package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +28 -14
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +5 -4
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +5 -4
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/lib/FreezeLayer/FreezeLayer.module.css +1 -1
- package/lib/Link/Link.js +1 -1
- package/lib/MessageBanner/MessageBanner.js +10 -5
- package/lib/MessageBanner/MessageBanner.module.css +4 -3
- package/lib/NewStar/NewStar.module.css +2 -2
- package/lib/Provider.js +8 -1
- package/lib/ToastMessage/ToastMessage.module.css +4 -8
- package/lib/avatar/AvatarThread/AvatarThread.js +7 -5
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -2
- package/lib/form/fields/TextEditor/TextEditor.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -3
- package/lib/form/layout/Section/Section.js +7 -3
- package/lib/list/GridStencils/GridStencils.module.css +4 -4
- package/lib/list/ListLayout/ListLayout.js +11 -5
- package/lib/list/ListLayout/ListLayout.module.css +29 -4
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +8 -3
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +13 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/lib/lookup/header/lookupHeaderCommon.module.css +6 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -8
- package/package.json +7 -7
- package/src/Appearance/dark/mode/dotDarkMode.module.css +5 -4
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/green/greenDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/red/redDarkDotTheme.module.css +2 -0
- package/src/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +2 -0
- package/src/Appearance/default/mode/dotDefaultMode.module.css +5 -4
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/green/greenDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/red/redDefaultDotTheme.module.css +2 -0
- package/src/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +2 -0
- package/src/FreezeLayer/FreezeLayer.module.css +1 -1
- package/src/Link/Link.js +3 -1
- package/src/MessageBanner/MessageBanner.js +10 -6
- package/src/MessageBanner/MessageBanner.module.css +3 -2
- package/src/NewStar/NewStar.module.css +1 -1
- package/src/Provider.js +3 -0
- package/src/ToastMessage/ToastMessage.module.css +2 -4
- package/src/avatar/AvatarThread/AvatarThread.js +8 -3
- package/src/docs/setupDocs.js +0 -2
- package/src/form/fields/TextEditor/TextEditor.js +1 -1
- package/src/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -2
- package/src/form/layout/Section/Section.js +14 -10
- package/src/list/GridStencils/GridStencils.module.css +2 -2
- package/src/list/ListLayout/ListLayout.js +11 -5
- package/src/list/ListLayout/ListLayout.module.css +18 -4
- package/src/lookup/header/ModuleHeader/ModuleHeader.js +9 -3
- package/src/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +21 -8
- package/src/lookup/header/TicketHeader/TicketHeader.js +7 -4
- package/src/lookup/header/lookupHeaderCommon.module.css +6 -0
- package/src/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -4
- package/es/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/es/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/lib/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/lib/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/src/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/src/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/src/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/src/deprecated/Theme/palette/defaultPalette.module.css +0 -40
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #45a159;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #0e7c1c;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #ff801f;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #a85100;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e94f4f;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #a81111;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(27, 33, 43, 0.9);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #d79835;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #9b6808;
|
|
8
10
|
}
|
|
@@ -114,8 +114,6 @@
|
|
|
114
114
|
--zdt_commonEmptyState_default_description: var(--dot_text_shuttleGrey);
|
|
115
115
|
--zdt_commonEmptyState_default_link: var(--zdt_cta_primary_text);
|
|
116
116
|
--zdt_commonEmptyState_default_link_hover: var(--zdt_cta_primary_hover_text);
|
|
117
|
-
--zdt_commonEmptyState_dark_title: #fff;
|
|
118
|
-
--zdt_commonEmptyState_dark_description: #fff;
|
|
119
117
|
|
|
120
118
|
/* edition page */
|
|
121
119
|
--zdt_editionpage_footer_text: var(--zd_text_smoke5);
|
|
@@ -232,8 +230,10 @@
|
|
|
232
230
|
|
|
233
231
|
/* list layout */
|
|
234
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
235
|
-
--
|
|
236
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:var(--dot_border_slateGrey);
|
|
237
237
|
|
|
238
238
|
/* list stencils */
|
|
239
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -296,6 +296,7 @@
|
|
|
296
296
|
|
|
297
297
|
/* lookup header common */
|
|
298
298
|
--zdt_lookupheader_default_bg: var(--zdt_cta_grey_10_bg);
|
|
299
|
+
--zdt_lookupheader_white_bg: var(--dot_bg_white);
|
|
299
300
|
--zdt_lookupheader_default_border: var(--zdt_cta_grey_35_border);
|
|
300
301
|
--zdt_lookupheader_para_text: var(--dot_text_shuttleGrey);
|
|
301
302
|
--zdt_lookupheader_input_border: var(--zd_border_smoke33);
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(44, 51, 77, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #6cbbfc;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #2469ff;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(15, 34, 38, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #4ac064;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #0e7526;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(36, 30, 19, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e57717;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #b25900;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(34, 15, 27, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #ff6363;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #ab1a18;
|
|
8
10
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
--zdt_freezelayer_darklight_bg: rgba(34, 36, 18, 0.94);
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
+
--zdt_commonEmptyState_dark_title: var(--dot_text_white);
|
|
7
|
+
--zdt_commonEmptyState_dark_description: var(--dot_text_white);
|
|
6
8
|
--zdt_commonEmptyState_dark_link: #e8b923;
|
|
7
9
|
--zdt_commonEmptyState_dark_link_hover: #b59100;
|
|
8
10
|
}
|
package/lib/Link/Link.js
CHANGED
|
@@ -116,7 +116,7 @@ var Link = /*#__PURE__*/function (_React$Component) {
|
|
|
116
116
|
option.download = true;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
var ignoreKeys = ['children', 'href', 'target', 'urlData', 'urlName', 'className', 'title', 'download', 'rel', 'dataId', 'hasReload'];
|
|
119
|
+
var ignoreKeys = ['children', 'href', 'target', 'urlData', 'urlName', 'className', 'title', 'download', 'rel', 'dataId', 'hasReload', 'customProps', 'option'];
|
|
120
120
|
var others = Object.keys(this.props).filter(function (key) {
|
|
121
121
|
return ignoreKeys.indexOf(key) == -1;
|
|
122
122
|
}).reduce(function (res, key) {
|
|
@@ -63,11 +63,13 @@ var MessageBanner = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
onClick = _this$props.onClick,
|
|
64
64
|
urlText = _this$props.urlText,
|
|
65
65
|
palette = _this$props.palette,
|
|
66
|
-
customClass = _this$props.customClass
|
|
66
|
+
customClass = _this$props.customClass,
|
|
67
|
+
dataId = _this$props.dataId;
|
|
67
68
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
68
69
|
className: "".concat(_MessageBannerModule["default"]["type_".concat(type)], " ").concat(_MessageBannerModule["default"]["palette_".concat(palette)], " ").concat(customClass),
|
|
69
70
|
alignBox: "row",
|
|
70
|
-
isCover: false
|
|
71
|
+
isCover: false,
|
|
72
|
+
dataId: dataId
|
|
71
73
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
72
74
|
className: _MessageBannerModule["default"].content,
|
|
73
75
|
flexible: true
|
|
@@ -77,7 +79,8 @@ var MessageBanner = /*#__PURE__*/function (_React$Component) {
|
|
|
77
79
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
78
80
|
className: _MessageBannerModule["default"].message,
|
|
79
81
|
adjust: true,
|
|
80
|
-
shrink: true
|
|
82
|
+
shrink: true,
|
|
83
|
+
"data-title": message
|
|
81
84
|
}, message), href && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
82
85
|
href: href,
|
|
83
86
|
onClick: onClick,
|
|
@@ -102,7 +105,8 @@ exports["default"] = MessageBanner;
|
|
|
102
105
|
MessageBanner.defaultProps = {
|
|
103
106
|
type: 'primary',
|
|
104
107
|
palette: 'default',
|
|
105
|
-
customClass: ''
|
|
108
|
+
customClass: '',
|
|
109
|
+
dataId: 'MessageBanner'
|
|
106
110
|
};
|
|
107
111
|
MessageBanner.propTypes = {
|
|
108
112
|
customClass: _propTypes["default"].string,
|
|
@@ -112,7 +116,8 @@ MessageBanner.propTypes = {
|
|
|
112
116
|
onClose: _propTypes["default"].func,
|
|
113
117
|
palette: _propTypes["default"].oneOf(['default', 'blue', 'white']),
|
|
114
118
|
type: _propTypes["default"].oneOf(['primary', 'secondary']),
|
|
115
|
-
urlText: _propTypes["default"].string
|
|
119
|
+
urlText: _propTypes["default"].string,
|
|
120
|
+
dataId: _propTypes["default"].string
|
|
116
121
|
};
|
|
117
122
|
|
|
118
123
|
if (false) {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
.message {
|
|
7
7
|
color: var(--zdt_messagebanner_text);
|
|
8
8
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
9
|
-
|
|
9
|
+
padding: var(--zd_size10) 0;
|
|
10
10
|
}
|
|
11
11
|
[dir=ltr] .message {
|
|
12
|
-
|
|
12
|
+
margin-left: var(--zd_size10);
|
|
13
13
|
}
|
|
14
14
|
[dir=rtl] .message {
|
|
15
|
-
|
|
15
|
+
margin-right: var(--zd_size10);
|
|
16
16
|
}
|
|
17
17
|
.link {
|
|
18
18
|
color: var(--zdt_messagebanner_link_text);
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
[dir=rtl] .link {
|
|
24
24
|
margin-right: var(--zd_size5);
|
|
25
25
|
}
|
|
26
|
+
.message,.link{font-size: var(--zd_font_size14);}
|
|
26
27
|
.close {
|
|
27
28
|
color: var(--zdt_messagebanner_close_text);
|
|
28
29
|
cursor: pointer;
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
left: 0;
|
|
50
50
|
}
|
|
51
51
|
[dir=ltr] .stars {
|
|
52
|
-
animation: twinkle
|
|
52
|
+
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
53
53
|
}
|
|
54
54
|
[dir=rtl] .stars {
|
|
55
|
-
animation: twinkle
|
|
55
|
+
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
56
56
|
}
|
|
57
57
|
.green::before {
|
|
58
58
|
color: var(--zdt_newstar_green_text);
|
package/lib/Provider.js
CHANGED
|
@@ -15,6 +15,8 @@ var _Layout = require("@zohodesk/components/lib/Layout");
|
|
|
15
15
|
|
|
16
16
|
var _AppContainer = _interopRequireDefault(require("@zohodesk/components/lib/AppContainer/AppContainer"));
|
|
17
17
|
|
|
18
|
+
var _LibraryContextInit = _interopRequireDefault(require("@zohodesk/components/lib/Provider/LibraryContextInit"));
|
|
19
|
+
|
|
18
20
|
var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
|
|
19
21
|
|
|
20
22
|
var _i18n2 = _interopRequireDefault(require("./i18n"));
|
|
@@ -226,6 +228,11 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
226
228
|
dateTimeFormat: '',
|
|
227
229
|
timeFormat: '',
|
|
228
230
|
direction: 'ltr'
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement(_LibraryContextInit["default"].Provider, {
|
|
232
|
+
value: {
|
|
233
|
+
isReducedMotion: false,
|
|
234
|
+
direction: 'ltr'
|
|
235
|
+
}
|
|
229
236
|
}, /*#__PURE__*/_react["default"].createElement(_AppContainer["default"], {
|
|
230
237
|
customProps: {
|
|
231
238
|
ExtraProps: {
|
|
@@ -292,7 +299,7 @@ var Provider = /*#__PURE__*/function (_React$Component) {
|
|
|
292
299
|
onClick: function onClick() {
|
|
293
300
|
return _this2.setTheme('yellow');
|
|
294
301
|
}
|
|
295
|
-
})))));
|
|
302
|
+
}))))));
|
|
296
303
|
}
|
|
297
304
|
}]);
|
|
298
305
|
|
|
@@ -23,17 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
[dir=ltr] .animation {
|
|
26
|
-
animation-duration:
|
|
27
|
-
-webkit-animation-duration:
|
|
28
|
-
-moz-animation-duration: 0.4s;
|
|
29
|
-
-ms-animation-duration: 0.4s;
|
|
26
|
+
animation-duration: var(--zd_transition4);
|
|
27
|
+
-webkit-animation-duration: var(--zd_transition4);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
[dir=rtl] .animation {
|
|
33
|
-
animation-duration:
|
|
34
|
-
-webkit-animation-duration:
|
|
35
|
-
-moz-animation-duration: 0.4s;
|
|
36
|
-
-ms-animation-duration: 0.4s;
|
|
31
|
+
animation-duration: var(--zd_transition4);
|
|
32
|
+
-webkit-animation-duration: var(--zd_transition4);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
.leftanimate {
|
|
@@ -77,7 +77,8 @@ var AvatarThread = /*#__PURE__*/function (_React$Component) {
|
|
|
77
77
|
customTextClass = _this$props.customTextClass,
|
|
78
78
|
needTitle = _this$props.needTitle,
|
|
79
79
|
customProps = _this$props.customProps,
|
|
80
|
-
iconClass = _this$props.iconClass
|
|
80
|
+
iconClass = _this$props.iconClass,
|
|
81
|
+
getCustomThread = _this$props.getCustomThread;
|
|
81
82
|
var _customProps$AvatarTh = customProps.AvatarThreadProps,
|
|
82
83
|
AvatarThreadProps = _customProps$AvatarTh === void 0 ? {} : _customProps$AvatarTh,
|
|
83
84
|
_customProps$AvatarPr = customProps.AvatarProps,
|
|
@@ -97,18 +98,18 @@ var AvatarThread = /*#__PURE__*/function (_React$Component) {
|
|
|
97
98
|
textPalette: textPalette,
|
|
98
99
|
customClass: customTextClass,
|
|
99
100
|
needTitle: needTitle
|
|
100
|
-
}, AvatarProps)), iconName && /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
|
+
}, AvatarProps)), (iconName || getCustomThread) && /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
102
|
className: "".concat(_AvatarThreadModule["default"].thread, " ").concat(onIconClick ? _AvatarThreadModule["default"].pointer : _AvatarThreadModule["default"].defaultCursor, " ").concat(needBackground ? _AvatarThreadModule["default"].threadBg : '', " ").concat(_AvatarThreadModule["default"]["thread_".concat(size, "_pos")], " ").concat(needBorder ? _AvatarThreadModule["default"]["border_".concat(borderPalette)] : ''),
|
|
102
103
|
"data-title": iconTitle,
|
|
103
104
|
"data-id": iconTitle === 'Remove Follower' && 'removeFollower',
|
|
104
105
|
onClick: onIconClick
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
+
}, iconName && /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
107
|
className: _AvatarThreadModule["default"].icon
|
|
107
108
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
108
109
|
name: iconName,
|
|
109
110
|
size: iconSize,
|
|
110
111
|
iconClass: "".concat(iconClass, "\n ").concat(_AvatarThreadModule["default"]["text_".concat(iconColor)] ? _AvatarThreadModule["default"]["text_".concat(iconColor)] : iconColor)
|
|
111
|
-
}))));
|
|
112
|
+
})), getCustomThread && getCustomThread()));
|
|
112
113
|
}
|
|
113
114
|
}]);
|
|
114
115
|
|
|
@@ -149,7 +150,8 @@ AvatarThread.propTypes = {
|
|
|
149
150
|
AvatarThreadProps: _propTypes["default"].object,
|
|
150
151
|
AvatarProps: _propTypes["default"].object
|
|
151
152
|
}),
|
|
152
|
-
iconClass: _propTypes["default"].string
|
|
153
|
+
iconClass: _propTypes["default"].string,
|
|
154
|
+
getCustomThread: _propTypes["default"].func
|
|
153
155
|
};
|
|
154
156
|
|
|
155
157
|
if (false) {
|
|
@@ -269,8 +269,7 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
269
269
|
needTick: true,
|
|
270
270
|
highlight: selectSearchIndex === index,
|
|
271
271
|
getRef: _this3.getSelectedItemRef,
|
|
272
|
-
isDisabled: listDisabled
|
|
273
|
-
dataId: dataId
|
|
272
|
+
isDisabled: listDisabled
|
|
274
273
|
}, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
275
274
|
alignBox: "row",
|
|
276
275
|
align: "vertical"
|
|
@@ -285,7 +285,7 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
var customFonts = document.createElement('style');
|
|
288
|
-
customFonts.innerText = "@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/
|
|
288
|
+
customFonts.innerText = "@font-face {font-family: 'ZohoPuviRegular';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: normal;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: Regular;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: 'RobotoRegular';font-weight: 400;font-style: normal;font-display: swa;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}";
|
|
289
289
|
iframeHead.appendChild(customFonts);
|
|
290
290
|
}
|
|
291
291
|
}
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
height: var(--zd_size28);
|
|
7
7
|
width: 100%;
|
|
8
8
|
position: absolute;
|
|
9
|
-
transition: border
|
|
9
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
10
10
|
cursor: text;
|
|
11
11
|
}
|
|
12
12
|
[dir=ltr] .textBox {
|
|
13
13
|
left: 0;
|
|
14
|
-
animation: fadeIn
|
|
14
|
+
animation: fadeIn var(--zd_transition4);
|
|
15
15
|
}
|
|
16
16
|
[dir=rtl] .textBox {
|
|
17
17
|
right: 0;
|
|
18
|
-
animation: fadeIn
|
|
18
|
+
animation: fadeIn var(--zd_transition4);
|
|
19
19
|
}
|
|
20
20
|
.textEditor {
|
|
21
21
|
position: relative;
|
|
@@ -60,16 +60,19 @@ var Section = /*#__PURE__*/function (_Component) {
|
|
|
60
60
|
titleClass = _this$props.titleClass,
|
|
61
61
|
className = _this$props.className,
|
|
62
62
|
column = _this$props.column,
|
|
63
|
-
formName = _this$props.formName
|
|
63
|
+
formName = _this$props.formName,
|
|
64
|
+
innerContainerClass = _this$props.innerContainerClass;
|
|
64
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
66
|
"data-id": dataId,
|
|
66
67
|
className: containerClass ? containerClass : ''
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
|
+
className: innerContainerClass ? innerContainerClass : ''
|
|
67
70
|
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
71
|
className: titleClass ? titleClass : ''
|
|
69
72
|
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
73
|
className: "".concat(className ? className : '', " ").concat(column == 'single' ? _ModuleFormSectionModule["default"].singleColumn : ''),
|
|
71
74
|
"data-id": formName && formName
|
|
72
|
-
}, this.props.children));
|
|
75
|
+
}, this.props.children)));
|
|
73
76
|
}
|
|
74
77
|
}]);
|
|
75
78
|
|
|
@@ -83,7 +86,8 @@ Section.propTypes = {
|
|
|
83
86
|
containerClass: _propTypes["default"].string,
|
|
84
87
|
dataId: _propTypes["default"].string,
|
|
85
88
|
title: _propTypes["default"].string,
|
|
86
|
-
titleClass: _propTypes["default"].string
|
|
89
|
+
titleClass: _propTypes["default"].string,
|
|
90
|
+
innerContainerClass: _propTypes["default"].string
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
if (false) {
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
background-repeat: no-repeat;
|
|
53
53
|
}
|
|
54
54
|
[dir=ltr] .stenListBAr {
|
|
55
|
-
-webkit-animation-duration:
|
|
55
|
+
-webkit-animation-duration:var(--zd_transition10);
|
|
56
56
|
-webkit-animation-fill-mode: forwards;
|
|
57
57
|
-webkit-animation-iteration-count: infinite;
|
|
58
58
|
-webkit-animation-name: placeHolderShimmer;
|
|
59
59
|
-webkit-animation-timing-function: linear;
|
|
60
60
|
}
|
|
61
61
|
[dir=rtl] .stenListBAr {
|
|
62
|
-
-webkit-animation-duration:
|
|
62
|
+
-webkit-animation-duration:var(--zd_transition10);
|
|
63
63
|
-webkit-animation-fill-mode: forwards;
|
|
64
64
|
-webkit-animation-iteration-count: infinite;
|
|
65
65
|
-webkit-animation-name: placeHolderShimmer;
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
background-repeat: no-repeat;
|
|
72
72
|
}
|
|
73
73
|
[dir=ltr] .stenListBAr {
|
|
74
|
-
-webkit-animation-duration:
|
|
74
|
+
-webkit-animation-duration: var(--zd_transition10);
|
|
75
75
|
-webkit-animation-fill-mode: forwards;
|
|
76
76
|
-webkit-animation-iteration-count: infinite;
|
|
77
77
|
-webkit-animation-name: placeHolderShimmer;
|
|
78
78
|
-webkit-animation-timing-function: linear;
|
|
79
79
|
}
|
|
80
80
|
[dir=rtl] .stenListBAr {
|
|
81
|
-
-webkit-animation-duration:
|
|
81
|
+
-webkit-animation-duration: var(--zd_transition10);
|
|
82
82
|
-webkit-animation-fill-mode: forwards;
|
|
83
83
|
-webkit-animation-iteration-count: infinite;
|
|
84
84
|
-webkit-animation-name: placeHolderShimmer;
|
|
@@ -15,6 +15,8 @@ var _Layout = require("@zohodesk/components/lib/Layout");
|
|
|
15
15
|
|
|
16
16
|
var _ListLayoutModule = _interopRequireDefault(require("./ListLayout.module.css"));
|
|
17
17
|
|
|
18
|
+
var _ListLayout$propTypes;
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -73,14 +75,16 @@ var ListLayout = /*#__PURE__*/function (_Component) {
|
|
|
73
75
|
dataTitle = _this$props.dataTitle,
|
|
74
76
|
a11y = _this$props.a11y,
|
|
75
77
|
isHovered = _this$props.isHovered,
|
|
76
|
-
onMouseEnter = _this$props.onMouseEnter
|
|
78
|
+
onMouseEnter = _this$props.onMouseEnter,
|
|
79
|
+
needPointer = _this$props.needPointer,
|
|
80
|
+
isKeyboardActive = _this$props.isKeyboardActive;
|
|
77
81
|
var _a11y$role = a11y.role,
|
|
78
82
|
role = _a11y$role === void 0 ? 'listitem' : _a11y$role,
|
|
79
83
|
ariaLabel = a11y.ariaLabel,
|
|
80
84
|
ariaPosinset = a11y.ariaPosinset,
|
|
81
85
|
ariaSetsize = a11y.ariaSetsize;
|
|
82
86
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
-
className: "".concat(_ListLayoutModule["default"].container, " ").concat(containerClass, " ").concat(needHover ? _ListLayoutModule["default"].listHover : '', " ").concat(isActive ? _ListLayoutModule["default"].active : '', " ").concat(_ListLayoutModule["default"][view], " ").concat(onClick ? _ListLayoutModule["default"].cursorPointer : '', " ").concat(isHovered ? _ListLayoutModule["default"].hoveredStyle : '', " "),
|
|
87
|
+
className: "".concat(_ListLayoutModule["default"].container, " ").concat(containerClass, " ").concat(needHover ? _ListLayoutModule["default"].listHover : '', " ").concat(isActive ? _ListLayoutModule["default"].active : '', " ").concat(_ListLayoutModule["default"][view], " ").concat(onClick && needPointer ? _ListLayoutModule["default"].cursorPointer : '', " ").concat(isHovered ? _ListLayoutModule["default"].hoveredStyle : '', " ").concat(isKeyboardActive ? _ListLayoutModule["default"].keyboardActive : '', " "),
|
|
84
88
|
onClick: onClick,
|
|
85
89
|
onMouseEnter: onMouseEnter,
|
|
86
90
|
onMouseLeave: onMouseLeave,
|
|
@@ -103,7 +107,7 @@ var ListLayout = /*#__PURE__*/function (_Component) {
|
|
|
103
107
|
}(_react.Component);
|
|
104
108
|
|
|
105
109
|
exports["default"] = ListLayout;
|
|
106
|
-
ListLayout.propTypes =
|
|
110
|
+
ListLayout.propTypes = (_ListLayout$propTypes = {
|
|
107
111
|
align: _propTypes["default"].string,
|
|
108
112
|
children: _propTypes["default"].node,
|
|
109
113
|
className: _propTypes["default"].string,
|
|
@@ -122,7 +126,7 @@ ListLayout.propTypes = _defineProperty({
|
|
|
122
126
|
ariaSetsize: _propTypes["default"].number
|
|
123
127
|
}),
|
|
124
128
|
onMouseEnter: _propTypes["default"].func
|
|
125
|
-
}, "view", _propTypes["default"].oneOf(['classic', 'compact', 'superCompact']));
|
|
129
|
+
}, _defineProperty(_ListLayout$propTypes, "view", _propTypes["default"].oneOf(['classic', 'compact', 'superCompact'])), _defineProperty(_ListLayout$propTypes, "needPointer", _propTypes["default"].bool), _defineProperty(_ListLayout$propTypes, "isKeyboardActive", _propTypes["default"].bool), _ListLayout$propTypes);
|
|
126
130
|
ListLayout.defaultProps = {
|
|
127
131
|
needHover: true,
|
|
128
132
|
view: 'classic',
|
|
@@ -130,7 +134,9 @@ ListLayout.defaultProps = {
|
|
|
130
134
|
dataId: 'ticketsListInPopup',
|
|
131
135
|
a11y: {},
|
|
132
136
|
isHovered: false,
|
|
133
|
-
onMouseEnter: function onMouseEnter() {}
|
|
137
|
+
onMouseEnter: function onMouseEnter() {},
|
|
138
|
+
needPointer: true,
|
|
139
|
+
isKeyboardActive: false
|
|
134
140
|
};
|
|
135
141
|
|
|
136
142
|
var Column = /*#__PURE__*/function (_Component2) {
|
|
@@ -5,16 +5,15 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
composes: varClass;
|
|
7
7
|
}
|
|
8
|
-
.listHover:hover {
|
|
9
|
-
background-color: var(--
|
|
8
|
+
.listHover:hover, .hoveredStyle{
|
|
9
|
+
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
10
|
}
|
|
11
11
|
.active, .active:hover {
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--zdt_listLayout_active_bg);
|
|
13
13
|
}
|
|
14
14
|
.cursorPointer{
|
|
15
15
|
cursor: pointer
|
|
16
16
|
}
|
|
17
|
-
|
|
18
17
|
/* View */
|
|
19
18
|
.classic .innerContainer {
|
|
20
19
|
min-height: var(--zd_size70);
|
|
@@ -31,3 +30,29 @@
|
|
|
31
30
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
32
31
|
border-bottom: 1px dotted var(--listBorder);
|
|
33
32
|
}
|
|
33
|
+
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
|
+
border-left: var(--zd_size2) solid transparent;
|
|
35
|
+
}
|
|
36
|
+
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
|
+
border-right: var(--zd_size2) solid transparent;
|
|
38
|
+
}
|
|
39
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active{
|
|
40
|
+
border-top-left-radius: var(--zd_size5);
|
|
41
|
+
border-bottom-left-radius: var(--zd_size5);
|
|
42
|
+
}
|
|
43
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active{
|
|
44
|
+
border-top-right-radius: var(--zd_size5);
|
|
45
|
+
border-bottom-right-radius: var(--zd_size5);
|
|
46
|
+
}
|
|
47
|
+
[dir=ltr] .keyboardActive{
|
|
48
|
+
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .keyboardActive{
|
|
51
|
+
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
|
+
}
|
|
53
|
+
[dir=ltr] .active{
|
|
54
|
+
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
|
+
}
|
|
56
|
+
[dir=rtl] .active{
|
|
57
|
+
border-right-color: var(--zdt_listLayout_active_border);
|
|
58
|
+
}
|
|
@@ -80,11 +80,12 @@ var ModuleHeader = /*#__PURE__*/function (_PureComponent) {
|
|
|
80
80
|
miniDescription = _this$props.miniDescription,
|
|
81
81
|
dataId = _this$props.dataId,
|
|
82
82
|
closeTitle = _this$props.closeTitle,
|
|
83
|
-
onSearchKeyDown = _this$props.onSearchKeyDown
|
|
83
|
+
onSearchKeyDown = _this$props.onSearchKeyDown,
|
|
84
|
+
palette = _this$props.palette;
|
|
84
85
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
85
86
|
align: "vertical",
|
|
86
87
|
alignBox: "row",
|
|
87
|
-
className: "".concat(_lookupHeaderCommonModule["default"].container),
|
|
88
|
+
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonModule["default"]["".concat(palette)]),
|
|
88
89
|
isCover: false,
|
|
89
90
|
wrap: "wrap",
|
|
90
91
|
dataId: dataId
|
|
@@ -134,7 +135,11 @@ ModuleHeader.propTypes = {
|
|
|
134
135
|
title: _propTypes["default"].string,
|
|
135
136
|
dataId: _propTypes["default"].string,
|
|
136
137
|
closeTitle: _propTypes["default"].string,
|
|
137
|
-
onSearchKeyDown: _propTypes["default"].func
|
|
138
|
+
onSearchKeyDown: _propTypes["default"].func,
|
|
139
|
+
palette: _propTypes["default"].oneOf(['default', 'white'])
|
|
140
|
+
};
|
|
141
|
+
ModuleHeader.defaultProps = {
|
|
142
|
+
palette: 'default'
|
|
138
143
|
};
|
|
139
144
|
|
|
140
145
|
if (false) {
|
|
@@ -66,14 +66,24 @@ var ModuleHeader__default = /*#__PURE__*/function (_Component) {
|
|
|
66
66
|
key: "render",
|
|
67
67
|
value: function render() {
|
|
68
68
|
var searchStr = this.state.searchStr;
|
|
69
|
-
return /*#__PURE__*/_react["default"].createElement(_ModuleHeader["default"], {
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_ModuleHeader["default"], {
|
|
70
70
|
title: "Find Duplicate",
|
|
71
71
|
needSearch: true,
|
|
72
72
|
searchStr: searchStr,
|
|
73
73
|
onSearchChange: this.handleSearch,
|
|
74
74
|
searchPlaceHolder: "Search",
|
|
75
|
-
miniDescription: "Select a field to search for duplicate records"
|
|
76
|
-
|
|
75
|
+
miniDescription: "Select a field to search for duplicate records",
|
|
76
|
+
onLookupClose: function onLookupClose() {}
|
|
77
|
+
}), /*#__PURE__*/_react["default"].createElement(_ModuleHeader["default"], {
|
|
78
|
+
title: "Find Duplicate",
|
|
79
|
+
needSearch: true,
|
|
80
|
+
searchStr: searchStr,
|
|
81
|
+
onSearchChange: this.handleSearch,
|
|
82
|
+
searchPlaceHolder: "Search",
|
|
83
|
+
miniDescription: "Select a field to search for duplicate records",
|
|
84
|
+
onLookupClose: function onLookupClose() {},
|
|
85
|
+
palette: "white"
|
|
86
|
+
}));
|
|
77
87
|
}
|
|
78
88
|
}]);
|
|
79
89
|
|
|
@@ -82,13 +82,14 @@ var TicketHeader = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
needOnTypeSearch = _this$props.needOnTypeSearch,
|
|
83
83
|
getSearchBoxRef = _this$props.getSearchBoxRef,
|
|
84
84
|
needViewsList = _this$props.needViewsList,
|
|
85
|
-
i18nKeys = _this$props.i18nKeys
|
|
85
|
+
i18nKeys = _this$props.i18nKeys,
|
|
86
|
+
palette = _this$props.palette;
|
|
86
87
|
var _i18nKeys$menuEmptyMe = i18nKeys.menuEmptyMessage,
|
|
87
88
|
menuEmptyMessage = _i18nKeys$menuEmptyMe === void 0 ? 'No matches found' : _i18nKeys$menuEmptyMe;
|
|
88
89
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
89
90
|
align: "vertical",
|
|
90
91
|
alignBox: "row",
|
|
91
|
-
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonResponsiveModule["default"].container, " ").concat(_TicketHeaderModule["default"].container),
|
|
92
|
+
className: "".concat(_lookupHeaderCommonModule["default"].container, " ").concat(_lookupHeaderCommonModule["default"]["".concat(palette)], " ").concat(_lookupHeaderCommonResponsiveModule["default"].container, " ").concat(_TicketHeaderModule["default"].container),
|
|
92
93
|
isCover: false,
|
|
93
94
|
wrap: "wrap"
|
|
94
95
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -154,10 +155,12 @@ TicketHeader.propTypes = {
|
|
|
154
155
|
title: _propTypes["default"].string,
|
|
155
156
|
i18nKeys: _propTypes["default"].shape({
|
|
156
157
|
menuEmptyMessage: _propTypes["default"].string
|
|
157
|
-
})
|
|
158
|
+
}),
|
|
159
|
+
palette: _propTypes["default"].oneOf(['default', 'white'])
|
|
158
160
|
};
|
|
159
161
|
TicketHeader.defaultProps = {
|
|
160
|
-
i18nKeys: {}
|
|
162
|
+
i18nKeys: {},
|
|
163
|
+
palette: 'default'
|
|
161
164
|
};
|
|
162
165
|
|
|
163
166
|
if (false) {
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
}[dir=rtl] .container {
|
|
9
9
|
padding: 0 var(--zd_size10) 0 var(--zd_size52);
|
|
10
10
|
}
|
|
11
|
+
.default {
|
|
12
|
+
background-color: var(--zdt_lookupheader_default_bg);
|
|
13
|
+
}
|
|
14
|
+
.white {
|
|
15
|
+
background-color: var(--zdt_lookupheader_white_bg);
|
|
16
|
+
}
|
|
11
17
|
.searchContainer, .title {
|
|
12
18
|
margin: 0 var(--zd_size20);
|
|
13
19
|
}
|