@zohodesk/dot 1.0.0-temp-159 → 1.0.0-temp-162
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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +3 -2
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
- 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 +7 -7
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +11 -11
- 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/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +17 -17
- package/coverage/index.html +11 -11
- package/es/Attachment/Attachment.module.css +2 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/IconButton/IconButton.js +2 -2
- package/es/ImportantNotes/ImportantNotes.module.css +6 -2
- package/es/ToastMessage/ToastMessage.module.css +2 -2
- package/es/Upload/Upload.module.css +1 -1
- package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/es/errorstate/EmptyStates.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/es/form/fields/Fields.module.css +2 -2
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/es/list/status/StatusDropdown/StatusDropdown.js +1 -2
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
- package/es/lookup/Lookup/Lookup.js +1 -1
- package/es/lookup/header/Close/LookupClose.module.css +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
- package/lib/Attachment/Attachment.module.css +2 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/ImportantNotes/ImportantNotes.module.css +6 -2
- package/lib/ToastMessage/ToastMessage.module.css +2 -2
- package/lib/Upload/Upload.module.css +1 -1
- package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
- package/lib/errorstate/EmptyStates.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/lib/form/fields/Fields.module.css +2 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -2
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/header/Close/LookupClose.module.css +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
- package/package.json +7 -7
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { defaultProps } from '
|
|
6
|
-
import { propTypes } from '
|
|
4
|
+
import React, { useRef } from 'react';
|
|
5
|
+
import { defaultProps } from '../../../../list/status/StatusListItem/props/defaultProps';
|
|
6
|
+
import { propTypes } from '../../../../list/status/StatusListItem/props/propTypes';
|
|
7
7
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
8
8
|
/**** Components ****/
|
|
9
9
|
|
|
@@ -11,112 +11,87 @@ import { Icon } from '@zohodesk/icons';
|
|
|
11
11
|
import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
|
|
12
12
|
/**** CSS ****/
|
|
13
13
|
|
|
14
|
-
import style from '
|
|
15
|
-
export default
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import style from '../../../../list/status/StatusListItem/StatusListItem.module.css';
|
|
15
|
+
export default function StatusListItem(props) {
|
|
16
|
+
let {
|
|
17
|
+
size,
|
|
18
|
+
active,
|
|
19
|
+
highlight,
|
|
20
|
+
value,
|
|
21
|
+
autoHover,
|
|
22
|
+
palette,
|
|
23
|
+
title,
|
|
24
|
+
disableTitle,
|
|
25
|
+
needTick,
|
|
26
|
+
isLink,
|
|
27
|
+
href,
|
|
28
|
+
target,
|
|
29
|
+
needBorder,
|
|
30
|
+
isDisabled,
|
|
31
|
+
bulletColor,
|
|
32
|
+
a11y,
|
|
33
|
+
needMultiLineText,
|
|
34
|
+
index,
|
|
35
|
+
getRef,
|
|
36
|
+
id,
|
|
37
|
+
onClick,
|
|
38
|
+
onMouseEnter
|
|
39
|
+
} = props;
|
|
40
|
+
let options = {};
|
|
41
|
+
let {
|
|
42
|
+
role,
|
|
43
|
+
ariaSelected,
|
|
44
|
+
ariaHidden = true
|
|
45
|
+
} = a11y;
|
|
46
|
+
|
|
47
|
+
if (isLink) {
|
|
48
|
+
options.href = href;
|
|
49
|
+
options.target = `_${target}`;
|
|
21
50
|
}
|
|
22
51
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
id
|
|
29
|
-
} = this.props;
|
|
30
|
-
getRef && getRef(ele, index, id);
|
|
52
|
+
const element = useRef(null);
|
|
53
|
+
|
|
54
|
+
function getReference(ele) {
|
|
55
|
+
element.current = ele;
|
|
56
|
+
getRef && getRef(element.current, index, id);
|
|
31
57
|
}
|
|
32
58
|
|
|
33
|
-
handleClick(e) {
|
|
34
|
-
let {
|
|
35
|
-
onClick,
|
|
36
|
-
id,
|
|
37
|
-
value,
|
|
38
|
-
index
|
|
39
|
-
} = this.props;
|
|
59
|
+
function handleClick(e) {
|
|
40
60
|
onClick && onClick(id, value, index, e);
|
|
41
61
|
}
|
|
42
62
|
|
|
43
|
-
handleMouseEnter(e) {
|
|
44
|
-
let {
|
|
45
|
-
onMouseEnter,
|
|
46
|
-
id,
|
|
47
|
-
value,
|
|
48
|
-
index
|
|
49
|
-
} = this.props;
|
|
63
|
+
function handleMouseEnter(e) {
|
|
50
64
|
onMouseEnter && onMouseEnter(id, value, index, e);
|
|
51
65
|
}
|
|
52
66
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
options.href = href;
|
|
82
|
-
options.target = `_${target}`;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
86
|
-
role: role,
|
|
87
|
-
"aria-selected": ariaSelected,
|
|
88
|
-
isCover: false,
|
|
89
|
-
align: "baseline",
|
|
90
|
-
alignBox: "row",
|
|
91
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''}`,
|
|
92
|
-
dataId: String(value).replace("'", '_'),
|
|
93
|
-
onClick: !isDisabled && this.handleClick,
|
|
94
|
-
onMouseEnter: this.handleMouseEnter,
|
|
95
|
-
eleRef: this.getRef,
|
|
96
|
-
tagName: isLink ? 'a' : 'li',
|
|
97
|
-
"data-title": isDisabled ? disableTitle : null,
|
|
98
|
-
tabindex: isDisabled ? '-1' : '0'
|
|
99
|
-
}, options), /*#__PURE__*/React.createElement(Box, {
|
|
100
|
-
className: `${style.statusType} ${style[bulletColor]}`
|
|
101
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
102
|
-
"data-title": isDisabled ? null : title,
|
|
103
|
-
flexible: true,
|
|
104
|
-
shrink: true,
|
|
105
|
-
className: needMultiLineText ? style.multiLineValue : style.value
|
|
106
|
-
}, value), needTick && active ? /*#__PURE__*/React.createElement("div", {
|
|
107
|
-
className: style.tickIcon,
|
|
108
|
-
"aria-hidden": ariaHidden
|
|
109
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
110
|
-
name: "ZD-ticknew",
|
|
111
|
-
size: "8"
|
|
112
|
-
})) : null);
|
|
113
|
-
}
|
|
114
|
-
|
|
67
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
68
|
+
role: role,
|
|
69
|
+
"aria-selected": ariaSelected,
|
|
70
|
+
isCover: false,
|
|
71
|
+
align: "baseline",
|
|
72
|
+
alignBox: "row",
|
|
73
|
+
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''}`,
|
|
74
|
+
dataId: String(value).replace("'", '_'),
|
|
75
|
+
onClick: !isDisabled && handleClick,
|
|
76
|
+
onMouseEnter: handleMouseEnter,
|
|
77
|
+
eleRef: getReference,
|
|
78
|
+
tagName: isLink ? 'a' : 'li',
|
|
79
|
+
"data-title": isDisabled ? disableTitle : null,
|
|
80
|
+
tabindex: isDisabled ? '-1' : '0'
|
|
81
|
+
}, options), /*#__PURE__*/React.createElement(Box, {
|
|
82
|
+
className: `${style.statusType} ${style[bulletColor]}`
|
|
83
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
84
|
+
"data-title": isDisabled ? null : title,
|
|
85
|
+
flexible: true,
|
|
86
|
+
shrink: true,
|
|
87
|
+
className: needMultiLineText ? style.multiLineValue : style.value
|
|
88
|
+
}, value), needTick && active ? /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
className: style.tickIcon,
|
|
90
|
+
"aria-hidden": ariaHidden
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
92
|
+
name: "ZD-ticknew",
|
|
93
|
+
size: "8"
|
|
94
|
+
})) : null);
|
|
115
95
|
}
|
|
116
96
|
StatusListItem.defaultProps = defaultProps;
|
|
117
|
-
StatusListItem.propTypes = propTypes;
|
|
118
|
-
// StatusListItem.docs = {
|
|
119
|
-
// componentGroup: 'StatusListItem',
|
|
120
|
-
// folderName: 'List'
|
|
121
|
-
// };
|
|
122
|
-
// }
|
|
97
|
+
StatusListItem.propTypes = propTypes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*** Libraries ***/
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { defaultProps } from '../../../lookup/EmptyPage/props/defaultProps';
|
|
4
4
|
import { propTypes } from '../../../lookup/EmptyPage/props/propTypes';
|
|
5
5
|
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
@@ -9,13 +9,13 @@ import EmptyProducts from '@zohodesk/svg/lib/emptystate/version3/EmptyProducts';
|
|
|
9
9
|
/*** CSS ***/
|
|
10
10
|
|
|
11
11
|
import style from '../../../lookup/EmptyPage/LookupEmptyPage.module.css';
|
|
12
|
-
export default
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
12
|
+
export default function EmptyPage(props) {
|
|
13
|
+
let {
|
|
14
|
+
type,
|
|
15
|
+
title
|
|
16
|
+
} = props;
|
|
17
17
|
|
|
18
|
-
renderEmptyState(type) {
|
|
18
|
+
function renderEmptyState(type) {
|
|
19
19
|
switch (type) {
|
|
20
20
|
case 'search':
|
|
21
21
|
return /*#__PURE__*/React.createElement(EmptySearch, {
|
|
@@ -42,24 +42,13 @@ export default class EmptyPage extends Component {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"data-id": `empty_${type}`,
|
|
53
|
-
"data-test-id": `empty_${type}`
|
|
54
|
-
}, this.renderEmptyState(type), /*#__PURE__*/React.createElement("div", {
|
|
55
|
-
className: style.contentDiv
|
|
56
|
-
}, title));
|
|
57
|
-
}
|
|
58
|
-
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: style.container,
|
|
47
|
+
"data-id": `empty_${type}`,
|
|
48
|
+
"data-test-id": `empty_${type}`
|
|
49
|
+
}, renderEmptyState(type), /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: style.contentDiv
|
|
51
|
+
}, title));
|
|
59
52
|
}
|
|
60
53
|
EmptyPage.propTypes = propTypes;
|
|
61
|
-
EmptyPage.defaultProps = defaultProps;
|
|
62
|
-
// EmptyPage.docs = {
|
|
63
|
-
// componentGroup: 'Lookup'
|
|
64
|
-
// };
|
|
65
|
-
// }
|
|
54
|
+
EmptyPage.defaultProps = defaultProps;
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { propTypes } from '../../../lookup/Section/props/propTypes';
|
|
3
3
|
import { Container, Box } from '@zohodesk/components/es/v1/Layout';
|
|
4
4
|
import style from '../../../lookup/Section/LookupSection.module.css';
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
className: `${style.section} ${className ? className : ''}`
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
20
|
-
flexible: true
|
|
21
|
-
}, this.props.children));
|
|
22
|
-
}
|
|
23
|
-
|
|
5
|
+
export default function Section(props) {
|
|
6
|
+
let {
|
|
7
|
+
alignBox,
|
|
8
|
+
className,
|
|
9
|
+
children
|
|
10
|
+
} = props;
|
|
11
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
12
|
+
"data-drag-container": "true",
|
|
13
|
+
alignBox: alignBox,
|
|
14
|
+
className: `${style.section} ${className ? className : ''}`
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
16
|
+
flexible: true
|
|
17
|
+
}, children));
|
|
24
18
|
}
|
|
25
19
|
Section.propTypes = propTypes;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
font-size: var(--zd_font_size14) ;
|
|
100
100
|
font-family: var(--zd_semibold);
|
|
101
101
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
102
|
-
line-height:
|
|
102
|
+
line-height: 1.4285714285714286;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
[dir=ltr] .text {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
.title {
|
|
56
56
|
color: var(--zdt_alertlookupnew_text);
|
|
57
57
|
font-size: var(--zd_font_size18) ;
|
|
58
|
-
line-height:
|
|
58
|
+
line-height: 1.2222222222222223;
|
|
59
59
|
font-family: var(--zd_bold);
|
|
60
60
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
61
61
|
vertical-align: middle;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.innerSection {
|
|
6
6
|
color: var(--zdt_alertlookupnew_text);
|
|
7
7
|
font-size: var(--zd_font_size14) ;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.2857142857142858;
|
|
9
9
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
10
10
|
padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
|
|
11
11
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
.subTitle {
|
|
104
104
|
font-size: var(--zd_font_size15) ;
|
|
105
|
-
line-height:
|
|
105
|
+
line-height: 1.3333333333333333;
|
|
106
106
|
font-family: var(--zd_semibold);
|
|
107
107
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
108
108
|
}
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
.infoText {
|
|
115
115
|
font-size: var(--zd_font_size14) ;
|
|
116
|
-
line-height:
|
|
116
|
+
line-height: 1.2857142857142858;
|
|
117
117
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
118
118
|
}
|
|
119
119
|
|
package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.title {
|
|
16
16
|
font-size: var(--zd_font_size18) ;
|
|
17
|
-
line-height:
|
|
17
|
+
line-height: 1.2222222222222223;
|
|
18
18
|
font-family: var(--zd_bold);
|
|
19
19
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
20
20
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.primary .infoText {
|
|
73
|
-
line-height:
|
|
73
|
+
line-height: 1;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.primary .close {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.secondary .infoText {
|
|
102
|
-
line-height:
|
|
102
|
+
line-height: 1.42857142857;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.secondary .iconContainer {
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
|
|
83
83
|
.medium .atatchName {
|
|
84
84
|
font-size: var(--zd_font_size14) ;
|
|
85
|
-
line-height:
|
|
85
|
+
line-height: 1.4285714285714286;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.small .atatchName {
|
|
89
89
|
font-size: var(--zd_font_size12) ;
|
|
90
|
-
line-height:
|
|
90
|
+
line-height: 1.25;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.attachSize {
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -268,7 +268,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
268
268
|
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
269
269
|
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
270
270
|
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
271
|
-
needEnterAction = _focusScopeProps$need5 === void 0 ?
|
|
271
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
272
272
|
|
|
273
273
|
var childrenWithProps = _react["default"].Children.map(children, function (child) {
|
|
274
274
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
|
@@ -73,8 +73,8 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
key: "handleToggle",
|
|
74
74
|
value: function handleToggle(e) {
|
|
75
75
|
if (e.key === ' ' || e.key === 'Enter' || e.key === 'Spacebar') {
|
|
76
|
-
e.preventDefault();
|
|
77
|
-
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
this.triggerClick(e);
|
|
78
78
|
this.triggerMouseDown(e);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
background: var(--zdt_importantnotes_bg);
|
|
3
3
|
padding: var(--zd_size5) var(--zd_size10) ;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.title {
|
|
6
7
|
font-size: var(--zd_font_size13) ;
|
|
7
|
-
line-height:
|
|
8
|
+
line-height: 1.3846153846153846;
|
|
8
9
|
color: var(--zdt_importantnotes_title_text);
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.icon {
|
|
11
13
|
color: var(--zdt_importantnotes_icon);
|
|
12
14
|
font-size: 0 ;
|
|
13
15
|
margin-top: var(--zd_size1) ;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
[dir=ltr] .icon {
|
|
16
19
|
margin-right: var(--zd_size5) ;
|
|
17
20
|
}
|
|
21
|
+
|
|
18
22
|
[dir=rtl] .icon {
|
|
19
23
|
margin-left: var(--zd_size5) ;
|
|
20
|
-
}
|
|
24
|
+
}
|
|
@@ -177,14 +177,14 @@
|
|
|
177
177
|
.alertMessage {
|
|
178
178
|
font-size: var(--zd_font_size12) ;
|
|
179
179
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
180
|
-
line-height:
|
|
180
|
+
line-height: 1.3333333333333333;
|
|
181
181
|
color: var(--zdt_toastmessage_alert_text);
|
|
182
182
|
margin-top: var(--zd_size5) ;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.buttonText {
|
|
186
186
|
font-size: inherit ;
|
|
187
|
-
line-height:
|
|
187
|
+
line-height: normal;
|
|
188
188
|
text-align: center;
|
|
189
189
|
padding: 0 var(--zd_size7) ;
|
|
190
190
|
cursor: pointer;
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
}
|
|
34
34
|
.title {
|
|
35
35
|
font-size: var(--zd_font_size50) ;
|
|
36
|
-
line-height:
|
|
36
|
+
line-height: 1.4;
|
|
37
37
|
}
|
|
38
38
|
.tabletTitle {
|
|
39
39
|
font-size: var(--zd_font_size24) ;
|
|
40
|
-
line-height:
|
|
40
|
+
line-height: 2.0833333333333335;
|
|
41
41
|
}
|
|
42
42
|
.mobileTitle {
|
|
43
43
|
font-size: var(--zd_font_size22) ;
|
|
44
|
-
line-height:
|
|
44
|
+
line-height: 1.3636363636363635;
|
|
45
45
|
}
|
|
46
46
|
.subtitle {
|
|
47
47
|
font-size: var(--zd_font_size30) ;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
.checkboxText {
|
|
37
37
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
38
|
-
line-height:
|
|
38
|
+
line-height: 1.2;
|
|
39
39
|
}
|
|
40
40
|
[dir=ltr] .checkboxText {
|
|
41
41
|
padding-left: var(--zd_size6) ;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
color: var(--zdt_fields_phitag_text);
|
|
170
170
|
font-size: var(--zd_font_size12) ;
|
|
171
171
|
height: var(--zd_size18) ;
|
|
172
|
-
line-height:
|
|
172
|
+
line-height: 1.5;
|
|
173
173
|
background-color: var(--zdt_fields_phitag_bg);
|
|
174
174
|
border: 1px solid var(--zdt_fields_phitag_border);
|
|
175
175
|
padding: 0 var(--zd_size5) ;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
font-size: var(--zd_font_size12) ;
|
|
13
13
|
display: inline-block;
|
|
14
14
|
color: var(--zdt_setupdetail_backicon);
|
|
15
|
-
line-height:
|
|
15
|
+
line-height: 2.5;
|
|
16
16
|
text-align: center;
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
cursor: pointer;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
.title {
|
|
31
31
|
font-size: var(--zd_font_size16) ;
|
|
32
|
-
line-height:
|
|
32
|
+
line-height: 1;
|
|
33
33
|
font-family: var(--zd_semibold);
|
|
34
34
|
color: var(--zdt_setupdetail_backicon);
|
|
35
35
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
padding: var(--zd_size12) 0 0 var(--zd_size15) ;
|
|
58
58
|
}
|
|
59
59
|
.helpInfo {
|
|
60
|
-
line-height:
|
|
60
|
+
line-height: 2.3636363636363638;
|
|
61
61
|
height: var(--zd_size28) ;
|
|
62
62
|
width: var(--zd_size28) ;
|
|
63
63
|
color: var(--zdt_setupdetail_helpinfo_text);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
height: var(--zd_size26) ;
|
|
121
121
|
width: var(--zd_size26) ;
|
|
122
122
|
font-size: var(--zd_font_size12) ;
|
|
123
|
-
line-height:
|
|
123
|
+
line-height: 2;
|
|
124
124
|
text-align: center;
|
|
125
125
|
border: 1px solid var(--zdt_setupdetail_infoicon_border);
|
|
126
126
|
border-radius: 2px;
|
|
@@ -508,8 +508,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
508
508
|
needMultiLineText: needMultiLineText,
|
|
509
509
|
a11y: {
|
|
510
510
|
role: isSearch ? 'option' : 'menuitem',
|
|
511
|
-
ariaSelected: value === item[keyName]
|
|
512
|
-
'data-a11y-list-active': selectedIndex === i
|
|
511
|
+
ariaSelected: value === item[keyName]
|
|
513
512
|
}
|
|
514
513
|
}));
|
|
515
514
|
})) : isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_CommonEmptyState["default"], {
|
|
@@ -138,7 +138,7 @@ var StatusListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
138
138
|
tagName: isLink ? 'a' : 'li',
|
|
139
139
|
"data-title": isDisabled ? disableTitle : null,
|
|
140
140
|
tabindex: isDisabled ? '-1' : '0'
|
|
141
|
-
}, options
|
|
141
|
+
}, options), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
142
142
|
className: "".concat(_StatusListItemModule["default"].statusType, " ").concat(_StatusListItemModule["default"][bulletColor])
|
|
143
143
|
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
144
144
|
"data-title": isDisabled ? null : title,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
|
|
32
32
|
}
|
|
33
33
|
.value,.multiLineValue {
|
|
34
|
-
line-height:
|
|
34
|
+
line-height: 1.53846153846;
|
|
35
35
|
}
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -119,7 +119,7 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
119
119
|
_focusScopeProps$need4 = focusScopeProps.needFocusLoop,
|
|
120
120
|
needFocusLoop = _focusScopeProps$need4 === void 0 ? true : _focusScopeProps$need4,
|
|
121
121
|
_focusScopeProps$need5 = focusScopeProps.needEnterAction,
|
|
122
|
-
needEnterAction = _focusScopeProps$need5 === void 0 ?
|
|
122
|
+
needEnterAction = _focusScopeProps$need5 === void 0 ? false : _focusScopeProps$need5;
|
|
123
123
|
|
|
124
124
|
var content = /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
125
|
ref: this.createRef,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
width: var(--zd_size25) ;
|
|
3
3
|
height: var(--zd_size25) ;
|
|
4
|
-
line-height:
|
|
4
|
+
line-height: 2.7777777777777777;
|
|
5
5
|
color: var(--zdt_lookupclose_default_text);
|
|
6
6
|
transition: var(--zd_transition2) cubic-bezier(0.4, 1, 0.65, 1);
|
|
7
7
|
font-size: var(--zd_font_size9) ;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
/* Label Style */
|
|
27
27
|
.labelCnt {
|
|
28
28
|
composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
29
|
-
line-height:
|
|
29
|
+
line-height: 1.66666666667;
|
|
30
30
|
color: var(--zdt_viewdropdown_label_text);
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
}
|