@zohodesk/dot 1.0.0-temp-167 → 1.0.0-temp-169
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/PropUnificationExcludeFilesArray.js +345 -0
- package/.cli/PropValidationExcludeFilesArray.js +8 -1
- package/.cli/propValidation_report.html +24 -2
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +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 +16 -16
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.js +10 -1
- package/es/ActionButton/props/propTypes.js +2 -1
- package/es/Attachment/Attachment.module.css +2 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/Drawer/Drawer.js +2 -5
- package/es/ImportantNotes/ImportantNotes.module.css +2 -6
- package/es/Link/Link.js +1 -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/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +2 -5
- package/es/errorstate/EmptyStates.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/es/form/fields/Fields.module.css +1 -1
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/es/list/ListLayout/ListLayout.js +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +6 -6
- 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/ActionButton/ActionButton.js +7 -2
- package/es/v1/Drawer/Drawer.js +2 -5
- package/es/v1/Link/Link.js +1 -2
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/es/v1/list/ListLayout/ListLayout.js +1 -1
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
- package/es/v1/lookup/Lookup/Lookup.js +1 -1
- 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.js +1 -1
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
- package/lib/ActionButton/ActionButton.js +41 -32
- package/lib/ActionButton/props/propTypes.js +2 -1
- package/lib/Attachment/Attachment.module.css +2 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/lib/Drawer/Drawer.js +2 -5
- package/lib/ImportantNotes/ImportantNotes.module.css +2 -6
- package/lib/Link/Link.js +1 -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/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +2 -5
- package/lib/errorstate/EmptyStates.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
- package/lib/form/fields/Fields.module.css +1 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -6
- 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/ActionButton/ActionButton.js +7 -2
- package/lib/v1/Drawer/Drawer.js +2 -5
- package/lib/v1/Link/Link.js +1 -2
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/lib/v1/list/ListLayout/ListLayout.js +1 -1
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
- package/lib/v1/lookup/Lookup/Lookup.js +1 -1
- 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.js +1 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +2 -2
- package/package.json +8 -8
- package/propValidationArg.json +8 -0
- package/result.json +1 -1
package/es/Drawer/Drawer.js
CHANGED
|
@@ -73,10 +73,7 @@ export class Header extends React.Component {
|
|
|
73
73
|
shrink: true
|
|
74
74
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
75
75
|
title: title,
|
|
76
|
-
className: style.title
|
|
77
|
-
a11y: {
|
|
78
|
-
tabindex: '0'
|
|
79
|
-
}
|
|
76
|
+
className: style.title
|
|
80
77
|
})) : null, getTitleChildren ? /*#__PURE__*/React.createElement(Box, null, getTitleChildren()) : null)) : null, children ? /*#__PURE__*/React.createElement(Box, null, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
81
78
|
onClick: onClose,
|
|
82
79
|
dataId: "closeButton",
|
|
@@ -161,7 +158,7 @@ export default class Drawer extends React.Component {
|
|
|
161
158
|
needRestoreFocus = true,
|
|
162
159
|
needListNavigation = false,
|
|
163
160
|
needFocusLoop = true,
|
|
164
|
-
needEnterAction =
|
|
161
|
+
needEnterAction = true
|
|
165
162
|
} = focusScopeProps;
|
|
166
163
|
let childrenWithProps = React.Children.map(children, child => {
|
|
167
164
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
|
@@ -2,23 +2,19 @@
|
|
|
2
2
|
background: var(--zdt_importantnotes_bg);
|
|
3
3
|
padding: var(--zd_size5) var(--zd_size10) ;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.title {
|
|
7
6
|
font-size: var(--zd_font_size13) ;
|
|
8
|
-
line-height:
|
|
7
|
+
line-height: var(--zd_font_size18);
|
|
9
8
|
color: var(--zdt_importantnotes_title_text);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
10
|
.icon {
|
|
13
11
|
color: var(--zdt_importantnotes_icon);
|
|
14
12
|
font-size: 0 ;
|
|
15
13
|
margin-top: var(--zd_size1) ;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
[dir=ltr] .icon {
|
|
19
16
|
margin-right: var(--zd_size5) ;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
[dir=rtl] .icon {
|
|
23
19
|
margin-left: var(--zd_size5) ;
|
|
24
|
-
}
|
|
20
|
+
}
|
package/es/Link/Link.js
CHANGED
|
@@ -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: var(--zd_size16);
|
|
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: var(--zd_size14);
|
|
188
188
|
text-align: center;
|
|
189
189
|
padding: 0 var(--zd_size7) ;
|
|
190
190
|
cursor: pointer;
|
|
@@ -39,7 +39,6 @@ export default class AvatarStatus extends React.Component {
|
|
|
39
39
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
40
40
|
className: `${style.container} ${className} `
|
|
41
41
|
}, AvatarStatusProps, {
|
|
42
|
-
tabIndex: "0",
|
|
43
42
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
44
43
|
"data-selector-id": dataSelectorId
|
|
45
44
|
}), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
@@ -58,11 +58,8 @@
|
|
|
58
58
|
[dir=rtl] .linkDesc, [dir=rtl] .desc {
|
|
59
59
|
margin-left: var(--zd_size4) ;
|
|
60
60
|
}
|
|
61
|
-
.
|
|
62
|
-
line-height:
|
|
63
|
-
}
|
|
64
|
-
.medium .desc {
|
|
65
|
-
line-height: 1.358;
|
|
61
|
+
.desc {
|
|
62
|
+
line-height: var(--zd_size19);
|
|
66
63
|
}
|
|
67
64
|
.link {
|
|
68
65
|
/* css:theme-validation:ignore */
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
}
|
|
34
34
|
.title {
|
|
35
35
|
font-size: var(--zd_font_size50) ;
|
|
36
|
-
line-height:
|
|
36
|
+
line-height: var(--zd_size70);
|
|
37
37
|
}
|
|
38
38
|
.tabletTitle {
|
|
39
39
|
font-size: var(--zd_font_size24) ;
|
|
40
|
-
line-height:
|
|
40
|
+
line-height: var(--zd_size50);
|
|
41
41
|
}
|
|
42
42
|
.mobileTitle {
|
|
43
43
|
font-size: var(--zd_font_size22) ;
|
|
44
|
-
line-height:
|
|
44
|
+
line-height: var(--zd_size30);
|
|
45
45
|
}
|
|
46
46
|
.subtitle {
|
|
47
47
|
font-size: var(--zd_font_size30) ;
|
|
@@ -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: var(--zd_size18);
|
|
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: var(--zd_size30);
|
|
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: var(--zd_size16);
|
|
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: var(--zd_size26);
|
|
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: var(--zd_size24);
|
|
124
124
|
text-align: center;
|
|
125
125
|
border: 1px solid var(--zdt_setupdetail_infoicon_border);
|
|
126
126
|
border-radius: 2px;
|
|
@@ -335,8 +335,8 @@ export class StatusDropdown extends React.Component {
|
|
|
335
335
|
dataId: dataId,
|
|
336
336
|
onClick: removeClose,
|
|
337
337
|
disabled: isDisabled || isReadOnly ? true : false,
|
|
338
|
-
"aria-haspopup":
|
|
339
|
-
"aria-expanded":
|
|
338
|
+
"aria-haspopup": isSearch ? 'listbox' : 'menu',
|
|
339
|
+
"aria-expanded": isPopupReady && isEditable ? true : false,
|
|
340
340
|
tabIndex: tabIndex,
|
|
341
341
|
"aria-labelledby": ariaLabelledby,
|
|
342
342
|
"aria-label": ariaLabel,
|
|
@@ -395,10 +395,10 @@ export class StatusDropdown extends React.Component {
|
|
|
395
395
|
inputRef: this.searchInputRef,
|
|
396
396
|
onKeyDown: this.handleKeyDown,
|
|
397
397
|
a11y: {
|
|
398
|
-
ariaHaspopup:
|
|
399
|
-
ariaExpanded:
|
|
398
|
+
ariaHaspopup: isSearch ? 'listbox' : 'menu',
|
|
399
|
+
ariaExpanded: isPopupReady,
|
|
400
400
|
role: 'combobox',
|
|
401
|
-
ariaActivedescendant: value,
|
|
401
|
+
ariaActivedescendant: isPopupReady ? value : '',
|
|
402
402
|
ariaOwns: ariaTitleId
|
|
403
403
|
}
|
|
404
404
|
})) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -420,7 +420,7 @@ export class StatusDropdown extends React.Component {
|
|
|
420
420
|
onScroll: this.handleScroll,
|
|
421
421
|
role: isSearch ? 'listbox' : 'menu',
|
|
422
422
|
"aria-labelledby": ariaTitleId,
|
|
423
|
-
tabindex: "
|
|
423
|
+
tabindex: "-1"
|
|
424
424
|
}, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
425
425
|
key: i
|
|
426
426
|
}, /*#__PURE__*/React.createElement(StatusListItem, {
|
|
@@ -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: var(--zd_size20);
|
|
35
35
|
}
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -71,7 +71,7 @@ export default class Lookup extends Component {
|
|
|
71
71
|
needRestoreFocus = true,
|
|
72
72
|
needListNavigation = false,
|
|
73
73
|
needFocusLoop = true,
|
|
74
|
-
needEnterAction =
|
|
74
|
+
needEnterAction = true
|
|
75
75
|
} = focusScopeProps;
|
|
76
76
|
const content = /*#__PURE__*/React.createElement("div", {
|
|
77
77
|
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: var(--zd_size25);
|
|
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) ;
|
|
@@ -40,13 +40,18 @@ function ActionButton(props) {
|
|
|
40
40
|
innerClassName,
|
|
41
41
|
popupGroup,
|
|
42
42
|
togglePopup,
|
|
43
|
-
defaultPosition
|
|
43
|
+
defaultPosition,
|
|
44
|
+
openPopupOnly
|
|
44
45
|
} = props;
|
|
45
46
|
|
|
46
47
|
const handleTogglePopup = e => {
|
|
47
48
|
togglePopup(e, defaultPosition);
|
|
48
49
|
};
|
|
49
50
|
|
|
51
|
+
const handlePopupOpen = e => {
|
|
52
|
+
openPopupOnly(e, defaultPosition);
|
|
53
|
+
};
|
|
54
|
+
|
|
50
55
|
return /*#__PURE__*/React.createElement(Container, {
|
|
51
56
|
alignBox: "row",
|
|
52
57
|
isCover: false,
|
|
@@ -94,7 +99,7 @@ function ActionButton(props) {
|
|
|
94
99
|
"data-title": removeChildrenTooltip ? null : subText,
|
|
95
100
|
className: style.subTxt
|
|
96
101
|
}, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
|
|
97
|
-
onClick: onClick
|
|
102
|
+
onClick: onClick && !onHover ? handleTogglePopup : handlePopupOpen,
|
|
98
103
|
onMouseEnter: onClick ? onHover && handleTogglePopup : undefined,
|
|
99
104
|
onMouseLeave: onClick ? onHover && handleTogglePopup : undefined,
|
|
100
105
|
className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
|
package/es/v1/Drawer/Drawer.js
CHANGED
|
@@ -72,10 +72,7 @@ export function Header(props) {
|
|
|
72
72
|
shrink: true
|
|
73
73
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
74
74
|
title: title,
|
|
75
|
-
className: style.title
|
|
76
|
-
a11y: {
|
|
77
|
-
tabindex: '0'
|
|
78
|
-
}
|
|
75
|
+
className: style.title
|
|
79
76
|
})) : null, getTitleChildren ? /*#__PURE__*/React.createElement(Box, null, getTitleChildren()) : null)) : null, children ? /*#__PURE__*/React.createElement(Box, null, children) : null)), onClose ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
80
77
|
onClick: onClose,
|
|
81
78
|
dataId: "closeButton",
|
|
@@ -147,7 +144,7 @@ export default function Drawer(props) {
|
|
|
147
144
|
needRestoreFocus = true,
|
|
148
145
|
needListNavigation = false,
|
|
149
146
|
needFocusLoop = true,
|
|
150
|
-
needEnterAction =
|
|
147
|
+
needEnterAction = true
|
|
151
148
|
} = focusScopeProps;
|
|
152
149
|
let childrenWithProps = React.Children.map(children, child => {
|
|
153
150
|
if (child.type === Header || child.type === Footer || child.type === Content) {
|
package/es/v1/Link/Link.js
CHANGED
|
@@ -34,7 +34,6 @@ export default function AvatarStatus(props) {
|
|
|
34
34
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
35
35
|
className: `${style.container} ${className} `
|
|
36
36
|
}, AvatarStatusProps, {
|
|
37
|
-
tabIndex: "0",
|
|
38
37
|
"aria-label": `${title}, ${name}, ${statusTitle}`,
|
|
39
38
|
"data-selector-id": dataSelectorId
|
|
40
39
|
}), /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
@@ -247,8 +247,8 @@ function StatusDropdown(props) {
|
|
|
247
247
|
dataId: dataId,
|
|
248
248
|
onClick: removeClose,
|
|
249
249
|
disabled: isDisabled || isReadOnly ? true : false,
|
|
250
|
-
"aria-haspopup":
|
|
251
|
-
"aria-expanded":
|
|
250
|
+
"aria-haspopup": isSearch ? 'listbox' : 'menu',
|
|
251
|
+
"aria-expanded": isPopupReady && isEditable ? true : false,
|
|
252
252
|
tabIndex: tabIndex,
|
|
253
253
|
"aria-labelledby": ariaLabelledby,
|
|
254
254
|
"aria-label": ariaLabel,
|
|
@@ -307,10 +307,10 @@ function StatusDropdown(props) {
|
|
|
307
307
|
inputRef: searchInputRef,
|
|
308
308
|
onKeyDown: handleKeyDown,
|
|
309
309
|
a11y: {
|
|
310
|
-
ariaHaspopup:
|
|
311
|
-
ariaExpanded:
|
|
310
|
+
ariaHaspopup: isSearch ? 'listbox' : 'menu',
|
|
311
|
+
ariaExpanded: isPopupReady,
|
|
312
312
|
role: 'combobox',
|
|
313
|
-
ariaActivedescendant: value,
|
|
313
|
+
ariaActivedescendant: isPopupReady ? value : '',
|
|
314
314
|
ariaOwns: ariaTitleId
|
|
315
315
|
}
|
|
316
316
|
})) : null, title && optionsList.length != 0 && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -332,7 +332,7 @@ function StatusDropdown(props) {
|
|
|
332
332
|
onScroll: handleScroll,
|
|
333
333
|
role: isSearch ? 'listbox' : 'menu',
|
|
334
334
|
"aria-labelledby": ariaTitleId,
|
|
335
|
-
tabindex: "
|
|
335
|
+
tabindex: "-1"
|
|
336
336
|
}, optionsList.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, optionsList.map((item, i) => /*#__PURE__*/React.createElement(React.Fragment, {
|
|
337
337
|
key: i
|
|
338
338
|
}, /*#__PURE__*/React.createElement(StatusListItem, {
|
|
@@ -45,7 +45,7 @@ export default function Lookup(props) {
|
|
|
45
45
|
needRestoreFocus = true,
|
|
46
46
|
needListNavigation = false,
|
|
47
47
|
needFocusLoop = true,
|
|
48
|
-
needEnterAction =
|
|
48
|
+
needEnterAction = true
|
|
49
49
|
} = focusScopeProps;
|
|
50
50
|
const createRef = useRef(null);
|
|
51
51
|
const handleKeyDown = useCallback(e => {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
.title {
|
|
57
57
|
color: var(--zdt_alertlookupnew_text);
|
|
58
58
|
font-size: var(--zd_font_size18) ;
|
|
59
|
-
line-height:
|
|
59
|
+
line-height: var(--zd_size22);
|
|
60
60
|
font-family: var(--zd_bold);
|
|
61
61
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
62
62
|
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: var(--zd_size20);
|
|
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
|
}
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
.subTitle {
|
|
110
110
|
font-size: var(--zd_font_size15) ;
|
|
111
|
-
line-height:
|
|
111
|
+
line-height: var(--zd_size20);
|
|
112
112
|
font-family: var(--zd_semibold);
|
|
113
113
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
114
114
|
}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
|
|
120
120
|
.infoText {
|
|
121
121
|
font-size: var(--zd_font_size14) ;
|
|
122
|
-
line-height:
|
|
122
|
+
line-height: var(--zd_size18);
|
|
123
123
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -65,7 +65,7 @@ export default class DesktopNotificationHeader extends Component {
|
|
|
65
65
|
$ui_className: style.title,
|
|
66
66
|
$ui_tagName: "h1",
|
|
67
67
|
$ui_size: uptoTablet ? '16' : '18',
|
|
68
|
-
$ui_lineHeight: "
|
|
68
|
+
$ui_lineHeight: "20",
|
|
69
69
|
$ui_weight: "bold",
|
|
70
70
|
$flag_reset: true,
|
|
71
71
|
$ui_wordBreak: "breakWord"
|
package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.primary .infoText {
|
|
70
|
-
line-height:
|
|
70
|
+
line-height: var(--zd_size18);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.primary .close {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.secondary .infoText {
|
|
99
|
-
line-height:
|
|
99
|
+
line-height: var(--zd_size20);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.secondary .iconContainer {
|
|
@@ -63,48 +63,57 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
|
|
64
64
|
_this = _super.call(this, props);
|
|
65
65
|
_this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
|
|
66
|
+
_this.handlePopupOpen = _this.handlePopupOpen.bind(_assertThisInitialized(_this));
|
|
66
67
|
return _this;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
_createClass(ActionButton, [{
|
|
70
|
-
key: "
|
|
71
|
-
value: function
|
|
71
|
+
key: "handlePopupOpen",
|
|
72
|
+
value: function handlePopupOpen(e) {
|
|
72
73
|
var _this$props = this.props,
|
|
73
|
-
|
|
74
|
+
openPopupOnly = _this$props.openPopupOnly,
|
|
74
75
|
defaultPosition = _this$props.defaultPosition;
|
|
76
|
+
openPopupOnly(e, defaultPosition);
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
key: "handleTogglePopup",
|
|
80
|
+
value: function handleTogglePopup(e) {
|
|
81
|
+
var _this$props2 = this.props,
|
|
82
|
+
togglePopup = _this$props2.togglePopup,
|
|
83
|
+
defaultPosition = _this$props2.defaultPosition;
|
|
75
84
|
togglePopup(e, defaultPosition);
|
|
76
85
|
}
|
|
77
86
|
}, {
|
|
78
87
|
key: "render",
|
|
79
88
|
value: function render() {
|
|
80
|
-
var _this$
|
|
81
|
-
isLoading = _this$
|
|
82
|
-
onClick = _this$
|
|
83
|
-
size = _this$
|
|
84
|
-
dataId = _this$
|
|
85
|
-
dataSelectorId = _this$
|
|
86
|
-
isArrow = _this$
|
|
87
|
-
text = _this$
|
|
88
|
-
subText = _this$
|
|
89
|
-
arrowBoxSize = _this$
|
|
90
|
-
palette = _this$
|
|
91
|
-
onHover = _this$
|
|
92
|
-
position = _this$
|
|
93
|
-
className = _this$
|
|
94
|
-
iconName = _this$
|
|
95
|
-
iconSize = _this$
|
|
96
|
-
dataTitle = _this$
|
|
97
|
-
isDisabled = _this$
|
|
98
|
-
isPopupOpen = _this$
|
|
99
|
-
removeClose = _this$
|
|
100
|
-
children = _this$
|
|
101
|
-
dropBoxClass = _this$
|
|
102
|
-
isBoxPaddingNeed = _this$
|
|
103
|
-
getContainerRef = _this$
|
|
104
|
-
getTargetRef = _this$
|
|
105
|
-
removeChildrenTooltip = _this$
|
|
106
|
-
innerClassName = _this$
|
|
107
|
-
popupGroup = _this$
|
|
89
|
+
var _this$props3 = this.props,
|
|
90
|
+
isLoading = _this$props3.isLoading,
|
|
91
|
+
onClick = _this$props3.onClick,
|
|
92
|
+
size = _this$props3.size,
|
|
93
|
+
dataId = _this$props3.dataId,
|
|
94
|
+
dataSelectorId = _this$props3.dataSelectorId,
|
|
95
|
+
isArrow = _this$props3.isArrow,
|
|
96
|
+
text = _this$props3.text,
|
|
97
|
+
subText = _this$props3.subText,
|
|
98
|
+
arrowBoxSize = _this$props3.arrowBoxSize,
|
|
99
|
+
palette = _this$props3.palette,
|
|
100
|
+
onHover = _this$props3.onHover,
|
|
101
|
+
position = _this$props3.position,
|
|
102
|
+
className = _this$props3.className,
|
|
103
|
+
iconName = _this$props3.iconName,
|
|
104
|
+
iconSize = _this$props3.iconSize,
|
|
105
|
+
dataTitle = _this$props3.dataTitle,
|
|
106
|
+
isDisabled = _this$props3.isDisabled,
|
|
107
|
+
isPopupOpen = _this$props3.isPopupOpen,
|
|
108
|
+
removeClose = _this$props3.removeClose,
|
|
109
|
+
children = _this$props3.children,
|
|
110
|
+
dropBoxClass = _this$props3.dropBoxClass,
|
|
111
|
+
isBoxPaddingNeed = _this$props3.isBoxPaddingNeed,
|
|
112
|
+
getContainerRef = _this$props3.getContainerRef,
|
|
113
|
+
getTargetRef = _this$props3.getTargetRef,
|
|
114
|
+
removeChildrenTooltip = _this$props3.removeChildrenTooltip,
|
|
115
|
+
innerClassName = _this$props3.innerClassName,
|
|
116
|
+
popupGroup = _this$props3.popupGroup;
|
|
108
117
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
109
118
|
alignBox: "row",
|
|
110
119
|
isCover: false,
|
|
@@ -152,7 +161,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
152
161
|
"data-title": removeChildrenTooltip ? null : subText,
|
|
153
162
|
className: _ActionButtonModule["default"].subTxt
|
|
154
163
|
}, subText) : null)), children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
155
|
-
onClick: onClick
|
|
164
|
+
onClick: onClick && !onHover ? this.handleTogglePopup : this.handlePopupOpen,
|
|
156
165
|
onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
157
166
|
onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
158
167
|
className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(_ActionButtonModule["default"][arrowBoxSize + '_arrowBox'], " ").concat(_ActionButtonModule["default"][palette + 'Arw'], " ").concat(_ActionButtonModule["default"].arrowWrapper, " ").concat(isPopupOpen ? _ActionButtonModule["default"].arrowActive : ''),
|
|
@@ -38,6 +38,7 @@ var propTypes = {
|
|
|
38
38
|
removeChildrenTooltip: _propTypes["default"].bool,
|
|
39
39
|
innerClassName: _propTypes["default"].string,
|
|
40
40
|
popupGroup: _propTypes["default"].string,
|
|
41
|
-
togglePopup: _propTypes["default"].func
|
|
41
|
+
togglePopup: _propTypes["default"].func,
|
|
42
|
+
openPopupOnly: _propTypes["default"].func
|
|
42
43
|
};
|
|
43
44
|
exports.propTypes = propTypes;
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
|
|
83
83
|
.medium .atatchName {
|
|
84
84
|
font-size: var(--zd_font_size14) ;
|
|
85
|
-
line-height:
|
|
85
|
+
line-height: var(--zd_size20);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.small .atatchName {
|
|
89
89
|
font-size: var(--zd_font_size12) ;
|
|
90
|
-
line-height:
|
|
90
|
+
line-height: var(--zd_size15);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.attachSize {
|