@zohodesk/dot 1.0.0-temp-162 → 1.0.0-temp-163
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 +9 -2
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +0 -7
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +0 -7
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +0 -7
- 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/Attachment/Attachment.module.css +2 -2
- package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.module.css +2 -6
- 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/Comment/Comment.js +4 -7
- package/es/list/Comment/props/defaultProps.js +2 -1
- package/es/list/Comment/props/propTypes.js +1 -0
- package/es/list/index.js +1 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +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 +2 -2
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/list/Comment/Comment.js +4 -7
- package/es/v1/list/index.js +1 -2
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- 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/ImportantNotes/ImportantNotes.module.css +2 -6
- 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/Comment/Comment.js +4 -8
- package/lib/list/Comment/props/defaultProps.js +2 -1
- package/lib/list/Comment/props/propTypes.js +1 -0
- package/lib/list/index.js +0 -8
- package/lib/list/status/StatusListItem/StatusListItem.module.css +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 +2 -2
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/list/Comment/Comment.js +4 -8
- package/lib/v1/list/index.js +0 -8
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- 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 +3 -5
- package/result.json +1 -1
- package/es/list/UserTime/UserTime.js +0 -83
- package/es/list/UserTime/UserTime.module.css +0 -58
- package/es/list/UserTime/props/defaultProps.js +0 -3
- package/es/list/UserTime/props/propTypes.js +0 -18
- package/es/v1/list/UserTime/UserTime.js +0 -83
- package/lib/list/UserTime/UserTime.js +0 -136
- package/lib/list/UserTime/UserTime.module.css +0 -58
- package/lib/list/UserTime/props/defaultProps.js +0 -10
- package/lib/list/UserTime/props/propTypes.js +0 -29
- package/lib/v1/list/UserTime/UserTime.js +0 -136
package/coverage/index.html
CHANGED
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
207
207
|
Code coverage generated by
|
|
208
208
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
209
|
-
at 2023-11-
|
|
209
|
+
at 2023-11-16T05:26:33.603Z
|
|
210
210
|
</div>
|
|
211
211
|
<script src="prettify.js"></script>
|
|
212
212
|
<script>
|
|
@@ -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 {
|
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -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) ;
|
|
@@ -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: normal;
|
|
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: 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;
|
|
@@ -2,7 +2,6 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { defaultProps } from './props/defaultProps';
|
|
3
3
|
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
6
5
|
import Button from '@zohodesk/components/lib/semantic/Button/Button';
|
|
7
6
|
import style from './Comment.module.css';
|
|
8
7
|
export default class Comment extends Component {
|
|
@@ -14,18 +13,16 @@ export default class Comment extends Component {
|
|
|
14
13
|
let {
|
|
15
14
|
count,
|
|
16
15
|
onClick,
|
|
17
|
-
className
|
|
16
|
+
className,
|
|
17
|
+
title
|
|
18
18
|
} = this.props;
|
|
19
|
-
let i18N = i18NProviderUtils.getI18NValue;
|
|
20
|
-
let commentCount = parseInt(count);
|
|
21
|
-
let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
22
19
|
return /*#__PURE__*/React.createElement(Button, {
|
|
23
20
|
customClass: `${style.container} ${className} `,
|
|
24
21
|
onClick: onClick,
|
|
25
22
|
dataId: "commentLstContainer",
|
|
26
|
-
title:
|
|
23
|
+
title: title,
|
|
27
24
|
a11y: {
|
|
28
|
-
ariaLabel:
|
|
25
|
+
ariaLabel: title
|
|
29
26
|
}
|
|
30
27
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
31
28
|
name: "ZD-TK-commentLine",
|
package/es/list/index.js
CHANGED
|
@@ -13,5 +13,4 @@ export { default as StatusDropdown } from './status/StatusDropdown/StatusDropdow
|
|
|
13
13
|
export { default as StatusListItem } from './status/StatusListItem/StatusListItem';
|
|
14
14
|
export { default as Subject } from './Subject/Subject';
|
|
15
15
|
export { default as TagNew } from './TagNew/TagNew';
|
|
16
|
-
export { default as Thread } from './Thread/Thread';
|
|
17
|
-
export { default as UserTime } from './UserTime/UserTime';
|
|
16
|
+
export { default as Thread } from './Thread/Thread';
|
|
@@ -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';
|
|
@@ -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) ;
|
|
@@ -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: var(--zd_size20);
|
|
30
30
|
color: var(--zdt_viewdropdown_label_text);
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
}
|
|
@@ -132,8 +132,8 @@ function ActionButton(props) {
|
|
|
132
132
|
ActionButton.defaultProps = defaultProps;
|
|
133
133
|
ActionButton.propTypes = propTypes;
|
|
134
134
|
const ActionButtonComponent = Popup(ActionButton);
|
|
135
|
-
ActionButtonComponent.defaultProps =
|
|
136
|
-
ActionButtonComponent.propTypes =
|
|
135
|
+
ActionButtonComponent.defaultProps = defaultProps;
|
|
136
|
+
ActionButtonComponent.propTypes = propTypes; // ActionButton.docs = {
|
|
137
137
|
// componentGroup: 'Atom'
|
|
138
138
|
// };
|
|
139
139
|
|
|
@@ -10,8 +10,8 @@ import { mergeStyle } from '@zohodesk/utils'; //customHooks
|
|
|
10
10
|
|
|
11
11
|
import useDragger from '../../../Hooks/Dragger/useDragger'; //Props
|
|
12
12
|
|
|
13
|
-
import defaultProps from '
|
|
14
|
-
import propTypes from '
|
|
13
|
+
import defaultProps from './props/defaultProps';
|
|
14
|
+
import propTypes from './props/propTypes';
|
|
15
15
|
export default function AlertHeader(props) {
|
|
16
16
|
const {
|
|
17
17
|
title,
|
|
@@ -24,7 +24,8 @@ export default function AlertHeader(props) {
|
|
|
24
24
|
type,
|
|
25
25
|
htmlId,
|
|
26
26
|
customStyle,
|
|
27
|
-
dragBoundaryLimit
|
|
27
|
+
dragBoundaryLimit,
|
|
28
|
+
renderAlertIcon
|
|
28
29
|
} = props;
|
|
29
30
|
const finalStyle = mergeStyle(style, customStyle);
|
|
30
31
|
const {
|
|
@@ -51,7 +52,7 @@ export default function AlertHeader(props) {
|
|
|
51
52
|
eleRef: dragRef
|
|
52
53
|
}, needIcon && /*#__PURE__*/React.createElement("div", {
|
|
53
54
|
className: finalStyle.iconContainer
|
|
54
|
-
}, /*#__PURE__*/React.createElement(AlertIcons, {
|
|
55
|
+
}, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/React.createElement(AlertIcons, {
|
|
55
56
|
type: type
|
|
56
57
|
})), (title || children) && /*#__PURE__*/React.createElement(Box, {
|
|
57
58
|
flexible: true
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export default {
|
|
3
|
+
breakChildren: PropTypes.bool,
|
|
4
|
+
children: PropTypes.node,
|
|
5
|
+
closeTitle: PropTypes.string,
|
|
6
|
+
dataId: PropTypes.string,
|
|
7
|
+
needIcon: PropTypes.bool,
|
|
8
|
+
onClose: PropTypes.func,
|
|
9
|
+
title: PropTypes.string,
|
|
10
|
+
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification']),
|
|
11
|
+
htmlId: PropTypes.string,
|
|
12
|
+
customStyle: PropTypes.object,
|
|
13
|
+
dragBoundaryLimit: PropTypes.shape({
|
|
14
|
+
top: PropTypes.number,
|
|
15
|
+
left: PropTypes.number,
|
|
16
|
+
right: PropTypes.number,
|
|
17
|
+
bottom: PropTypes.number
|
|
18
|
+
}),
|
|
19
|
+
renderAlertIcon: PropTypes.func
|
|
20
|
+
};
|
|
@@ -2,8 +2,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { defaultProps } from '
|
|
6
|
-
import { propTypes } from '
|
|
5
|
+
import { defaultProps } from './props/defaultProps';
|
|
6
|
+
import { propTypes } from './props/propTypes';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
|
|
@@ -65,7 +65,8 @@ export default function AlertLookup(props) {
|
|
|
65
65
|
isHtmlContent,
|
|
66
66
|
scroll,
|
|
67
67
|
isDefaultFocus,
|
|
68
|
-
onEsc
|
|
68
|
+
onEsc,
|
|
69
|
+
renderAlertIcon
|
|
69
70
|
} = props;
|
|
70
71
|
const {
|
|
71
72
|
LookupProps = {},
|
|
@@ -115,7 +116,8 @@ export default function AlertLookup(props) {
|
|
|
115
116
|
type: type,
|
|
116
117
|
needIcon: needIcon,
|
|
117
118
|
onClose: onClose,
|
|
118
|
-
breakChildren: wrapHeader
|
|
119
|
+
breakChildren: wrapHeader,
|
|
120
|
+
renderAlertIcon: renderAlertIcon
|
|
119
121
|
}, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
|
|
120
122
|
flexible: true
|
|
121
123
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const defaultProps = {
|
|
2
|
+
isActive: false,
|
|
3
|
+
size: 'small',
|
|
4
|
+
wrapHeader: false,
|
|
5
|
+
dataId: 'alertPopup',
|
|
6
|
+
isDefaultFocus: true,
|
|
7
|
+
customProps: {},
|
|
8
|
+
align: 'top',
|
|
9
|
+
childAnimationName: 'flyDown',
|
|
10
|
+
isHtmlContent: false,
|
|
11
|
+
scroll: '',
|
|
12
|
+
onEsc: 'cancel'
|
|
13
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
cancelText: PropTypes.string,
|
|
4
|
+
children: PropTypes.node,
|
|
5
|
+
confirmationMessage: PropTypes.string,
|
|
6
|
+
customClass: PropTypes.object,
|
|
7
|
+
dataId: PropTypes.string,
|
|
8
|
+
forwardRef: PropTypes.object,
|
|
9
|
+
headerChildren: PropTypes.func,
|
|
10
|
+
isActive: PropTypes.bool,
|
|
11
|
+
isDefaultFocus: PropTypes.bool,
|
|
12
|
+
message: PropTypes.node,
|
|
13
|
+
needIcon: PropTypes.bool,
|
|
14
|
+
onCancelClick: PropTypes.func,
|
|
15
|
+
onClose: PropTypes.func,
|
|
16
|
+
onLookupClick: PropTypes.func,
|
|
17
|
+
onSubmitClick: PropTypes.func,
|
|
18
|
+
size: PropTypes.oneOf(['small', 'xmedium', 'medium']),
|
|
19
|
+
submitText: PropTypes.string,
|
|
20
|
+
title: PropTypes.string,
|
|
21
|
+
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification']),
|
|
22
|
+
wrapHeader: PropTypes.bool,
|
|
23
|
+
a11y: PropTypes.object,
|
|
24
|
+
customProps: PropTypes.shape({
|
|
25
|
+
LookupProps: PropTypes.object,
|
|
26
|
+
AlertHeaderProps: PropTypes.object,
|
|
27
|
+
PrimaryButtonProps: PropTypes.object,
|
|
28
|
+
SecondaryButtonProps: PropTypes.object
|
|
29
|
+
}),
|
|
30
|
+
align: PropTypes.oneOf(['top', 'vertical']),
|
|
31
|
+
childAnimationName: PropTypes.oneOf(['expand', 'flyDown']),
|
|
32
|
+
isHtmlContent: PropTypes.bool,
|
|
33
|
+
scroll: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
|
|
34
|
+
onEsc: PropTypes.oneOf(['close', 'cancel']),
|
|
35
|
+
renderAlertIcon: PropTypes.func
|
|
36
|
+
};
|
|
@@ -2,25 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import { defaultProps } from '../../../list/Comment/props/defaultProps';
|
|
3
3
|
import { propTypes } from '../../../list/Comment/props/propTypes';
|
|
4
4
|
import { Icon } from '@zohodesk/icons';
|
|
5
|
-
import { i18NProviderUtils } from '@zohodesk/i18n';
|
|
6
5
|
import Button from '@zohodesk/components/es/v1/semantic/Button/Button';
|
|
7
6
|
import style from '../../../list/Comment/Comment.module.css';
|
|
8
7
|
export default function Comment(props) {
|
|
9
8
|
let {
|
|
10
9
|
count,
|
|
11
10
|
onClick,
|
|
12
|
-
className
|
|
11
|
+
className,
|
|
12
|
+
title
|
|
13
13
|
} = props;
|
|
14
|
-
let i18N = i18NProviderUtils.getI18NValue;
|
|
15
|
-
let commentCount = parseInt(count);
|
|
16
|
-
let commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
|
|
17
14
|
return /*#__PURE__*/React.createElement(Button, {
|
|
18
15
|
customClass: `${style.container} ${className} `,
|
|
19
16
|
onClick: onClick,
|
|
20
17
|
dataId: "commentLstContainer",
|
|
21
|
-
title:
|
|
18
|
+
title: title,
|
|
22
19
|
a11y: {
|
|
23
|
-
ariaLabel:
|
|
20
|
+
ariaLabel: title
|
|
24
21
|
}
|
|
25
22
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
23
|
name: "ZD-TK-commentLine",
|
package/es/v1/list/index.js
CHANGED
|
@@ -13,5 +13,4 @@ export { default as StatusDropdown } from './status/StatusDropdown/StatusDropdow
|
|
|
13
13
|
export { default as StatusListItem } from './status/StatusListItem/StatusListItem';
|
|
14
14
|
export { default as Subject } from './Subject/Subject';
|
|
15
15
|
export { default as TagNew } from './TagNew/TagNew';
|
|
16
|
-
export { default as Thread } from './Thread/Thread';
|
|
17
|
-
export { default as UserTime } from './UserTime/UserTime';
|
|
16
|
+
export { default as Thread } from './Thread/Thread';
|
|
@@ -369,6 +369,6 @@ function StatusDropdown(props) {
|
|
|
369
369
|
StatusDropdown.defaultProps = defaultProps;
|
|
370
370
|
StatusDropdown.propTypes = propTypes;
|
|
371
371
|
const StatusDropdown_Component = Popup(StatusDropdown);
|
|
372
|
-
StatusDropdown_Component.defaultProps =
|
|
373
|
-
StatusDropdown_Component.propTypes =
|
|
372
|
+
StatusDropdown_Component.defaultProps = defaultProps;
|
|
373
|
+
StatusDropdown_Component.propTypes = propTypes;
|
|
374
374
|
export default StatusDropdown_Component;
|
|
@@ -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: var(--zd_size20);
|
|
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: var(--zd_size22);
|
|
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: var(--zd_size18);
|
|
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: var(--zd_size20);
|
|
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: var(--zd_size18);
|
|
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: var(--zd_size22);
|
|
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: var(--zd_size18);
|
|
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: var(--zd_size20);
|
|
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: 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 {
|
|
@@ -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
|
+
}
|
|
@@ -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;
|