@zohodesk/dot 1.4.0 → 1.4.2
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/AppearanceThemeValidationExcludeFiles.js +1 -0
- 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/README.md +12 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -0
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -0
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -0
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +5 -2
- 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/ActionButton.module.css +7 -0
- package/es/ActionButton/props/propTypes.js +2 -1
- package/es/AlphabeticList/AlphabeticList.module.css +2 -0
- package/es/AttachmentViewer/AttachmentViewer.module.css +2 -0
- package/es/ChannelIcon/ChannelIcon.module.css +4 -0
- package/es/Drawer/Drawer.js +2 -5
- package/es/FormAction/FormAction.module.css +2 -0
- package/es/IconButton/IconButton.module.css +1 -0
- package/es/Link/Link.js +1 -2
- package/es/Provider/Config.js +2 -1
- package/es/TagWithIcon/TagWithIcon.module.css +19 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
- package/es/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/es/layout/SubtabLayout/SubtabLayout.module.css +2 -0
- package/es/list/Comment/Comment.module.css +1 -0
- package/es/list/Dot/Dot.module.css +1 -0
- package/es/list/ListLayout/ListLayout.js +1 -1
- package/es/list/ListLayout/ListLayout.module.css +12 -0
- package/es/list/Subject/Subject.module.css +1 -0
- package/es/list/Thread/Thread.module.css +1 -0
- package/es/list/status/StatusDropdown/StatusDropdown.js +6 -6
- package/es/lookup/Lookup/Lookup.js +1 -1
- package/es/setup/header/Search/Search.module.css +1 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +3 -2
- 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/v1/notification/DesktopNotification/DesktopNotification.js +79 -55
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +3 -1
- package/es/v1/notification/DesktopNotification/props/propTypes.js +2 -1
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
- package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/es/v1/setup/header/Button/Button.js +17 -29
- package/es/v1/setup/header/Link/Link.js +23 -35
- package/es/v1/setup/header/Search/Search.js +43 -69
- package/es/v1/setup/header/Views/Views.js +27 -39
- package/es/v1/setup/helptips/Description/Description.js +8 -20
- package/es/v1/setup/helptips/Link/Link.js +20 -32
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +18 -30
- package/es/v1/setup/helptips/Title/Title.js +8 -20
- package/es/version2/GlobalNotification/GlobalNotification.module.css +3 -0
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +78 -55
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
- package/es/version2/notification/DesktopNotification/props/defaultProps.js +3 -1
- package/es/version2/notification/DesktopNotification/props/propTypes.js +2 -1
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
- package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
- package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/lib/ActionButton/ActionButton.js +41 -32
- package/lib/ActionButton/ActionButton.module.css +7 -0
- package/lib/ActionButton/props/propTypes.js +2 -1
- package/lib/AlphabeticList/AlphabeticList.module.css +2 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +2 -0
- package/lib/ChannelIcon/ChannelIcon.module.css +4 -0
- package/lib/Drawer/Drawer.js +2 -5
- package/lib/FormAction/FormAction.module.css +2 -0
- package/lib/IconButton/IconButton.module.css +1 -0
- package/lib/Link/Link.js +1 -2
- package/lib/Provider/Config.js +2 -1
- package/lib/TagWithIcon/TagWithIcon.module.css +19 -5
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +2 -0
- package/lib/list/Comment/Comment.module.css +1 -0
- package/lib/list/Dot/Dot.module.css +1 -0
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/list/ListLayout/ListLayout.module.css +12 -0
- package/lib/list/Subject/Subject.module.css +1 -0
- package/lib/list/Thread/Thread.module.css +1 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -6
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/setup/header/Search/Search.module.css +1 -0
- package/lib/setup/table/TableRow/SetupTableRow.module.css +3 -2
- 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/v1/notification/DesktopNotification/DesktopNotification.js +74 -55
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +5 -1
- package/lib/v1/notification/DesktopNotification/props/propTypes.js +2 -1
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
- package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/lib/v1/setup/header/Button/Button.js +17 -63
- package/lib/v1/setup/header/Link/Link.js +23 -69
- package/lib/v1/setup/header/Search/Search.js +57 -89
- package/lib/v1/setup/header/Views/Views.js +27 -73
- package/lib/v1/setup/helptips/Description/Description.js +8 -53
- package/lib/v1/setup/helptips/Link/Link.js +23 -69
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +26 -72
- package/lib/v1/setup/helptips/Title/Title.js +8 -53
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +3 -0
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +74 -55
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
- package/lib/version2/notification/DesktopNotification/props/defaultProps.js +5 -1
- package/lib/version2/notification/DesktopNotification/props/propTypes.js +2 -1
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
- package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
- package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
- package/package.json +15 -13
- package/propValidationArg.json +8 -0
- package/result.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{"total": {"lines":{"total":55,"covered":43,"skipped":0,"pct":78.18},"statements":{"total":55,"covered":43,"skipped":0,"pct":78.18},"functions":{"total":11,"covered":6,"skipped":0,"pct":54.54},"branches":{"total":59,"covered":37,"skipped":0,"pct":62.71},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
2
|
-
,"/Users/
|
|
3
|
-
,"/Users/
|
|
4
|
-
,"/Users/
|
|
5
|
-
,"/Users/
|
|
6
|
-
,"/Users/
|
|
7
|
-
,"/Users/
|
|
8
|
-
,"/Users/
|
|
9
|
-
,"/Users/
|
|
10
|
-
,"/Users/
|
|
11
|
-
,"/Users/
|
|
12
|
-
,"/Users/
|
|
13
|
-
,"/Users/
|
|
14
|
-
,"/Users/
|
|
15
|
-
,"/Users/
|
|
16
|
-
,"/Users/
|
|
17
|
-
,"/Users/
|
|
2
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/ExternalLink/ExternalLink.js": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
|
|
3
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/ExternalLink/ExternalLink.module.css": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
4
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/ExternalLink/props/defaultProps.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
5
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/ExternalLink/props/propTypes.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
6
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/IconButton/IconButton.js": {"lines":{"total":25,"covered":13,"skipped":0,"pct":52},"functions":{"total":7,"covered":2,"skipped":0,"pct":28.57},"statements":{"total":25,"covered":13,"skipped":0,"pct":52},"branches":{"total":31,"covered":12,"skipped":0,"pct":38.7}}
|
|
7
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/IconButton/IconButton.module.css": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
8
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/IconButton/props/defaultProps.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
9
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/IconButton/props/propTypes.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
10
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/Image/Image.js": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
11
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/Image/Image.module.css": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
12
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/Image/props/defaultProps.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
13
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/Image/props/propTypes.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
14
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/avatar/AvatarWithTeam/AvatarWithTeam.js": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
15
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/avatar/AvatarWithTeam/AvatarWithTeam.module.css": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
16
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/avatar/AvatarWithTeam/props/defaultProps.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
17
|
+
,"/Users/lakshmi-zt257/Documents/Git/Library/jsapps/dot/dot/src/avatar/AvatarWithTeam/props/propTypes.js": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
18
18
|
}
|
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-
|
|
209
|
+
at 2023-12-12T14:55:25.694Z
|
|
210
210
|
</div>
|
|
211
211
|
<script src="prettify.js"></script>
|
|
212
212
|
<script>
|
|
@@ -13,6 +13,15 @@ export class ActionButton extends React.Component {
|
|
|
13
13
|
constructor(props) {
|
|
14
14
|
super(props);
|
|
15
15
|
this.handleTogglePopup = this.handleTogglePopup.bind(this);
|
|
16
|
+
this.handlePopupOpen = this.handlePopupOpen.bind(this);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
handlePopupOpen(e) {
|
|
20
|
+
let {
|
|
21
|
+
openPopupOnly,
|
|
22
|
+
defaultPosition
|
|
23
|
+
} = this.props;
|
|
24
|
+
openPopupOnly(e, defaultPosition);
|
|
16
25
|
}
|
|
17
26
|
|
|
18
27
|
handleTogglePopup(e) {
|
|
@@ -100,7 +109,7 @@ export class ActionButton extends React.Component {
|
|
|
100
109
|
"data-title": removeChildrenTooltip ? null : subText,
|
|
101
110
|
className: style.subTxt
|
|
102
111
|
}, subText) : null)), children ? /*#__PURE__*/React.createElement(Box, {
|
|
103
|
-
onClick: onClick
|
|
112
|
+
onClick: onClick && !onHover ? this.handleTogglePopup : this.handlePopupOpen,
|
|
104
113
|
onMouseEnter: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
105
114
|
onMouseLeave: onClick ? onHover && this.handleTogglePopup : undefined,
|
|
106
115
|
className: `${btnStyle.buttonReset} ${style[arrowBoxSize + '_arrowBox']} ${style[palette + 'Arw']} ${style.arrowWrapper} ${isPopupOpen ? style.arrowActive : ''}`,
|
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
--buttonText: var(--zdt_actionButton_primaryFilled_text);
|
|
14
14
|
}
|
|
15
15
|
.primaryFilledBtn, .primaryFilledArw {
|
|
16
|
+
/* css:theme-validation:ignore */
|
|
16
17
|
background-color: var(--buttonBg);
|
|
17
18
|
}
|
|
18
19
|
.primaryBox {
|
|
19
20
|
--buttonText: var(--zdt_actionButton_primary_text);
|
|
20
21
|
}
|
|
21
22
|
.primaryBtn, .primaryArw {
|
|
23
|
+
/* css:theme-validation:ignore */
|
|
22
24
|
border: 1px solid var(--buttonBorder);
|
|
23
25
|
}
|
|
24
26
|
[dir=ltr] .primaryBtn {
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
.txt,
|
|
82
84
|
.subTxt {
|
|
83
85
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
86
|
+
/* css:theme-validation:ignore */
|
|
84
87
|
color: var(--buttonText);
|
|
85
88
|
}
|
|
86
89
|
.arrowWrapper {
|
|
@@ -94,6 +97,9 @@
|
|
|
94
97
|
[dir=rtl] .arrowWrapper {
|
|
95
98
|
border-radius: var(--zd_size4) 0 0 var(--zd_size4);
|
|
96
99
|
}
|
|
100
|
+
.primaryFilledArw {
|
|
101
|
+
/* css:theme-validation:ignore */
|
|
102
|
+
}
|
|
97
103
|
[dir=ltr] .primaryFilledArw {
|
|
98
104
|
border-left: 1px solid var(--buttonSeparatorBorder);
|
|
99
105
|
}
|
|
@@ -129,6 +135,7 @@
|
|
|
129
135
|
}
|
|
130
136
|
.arrow,
|
|
131
137
|
.iconClr {
|
|
138
|
+
/* css:theme-validation:ignore */
|
|
132
139
|
color: var(--buttonText);
|
|
133
140
|
}
|
|
134
141
|
[dir=ltr] .iconMrgn {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
.list {
|
|
34
34
|
font-size: var(--zd_font_size11) ;
|
|
35
35
|
flex-basis: var(--zd_size12) ;
|
|
36
|
+
/* css:theme-validation:ignore */
|
|
36
37
|
color: var(--textColor);
|
|
37
38
|
text-align: center;
|
|
38
39
|
cursor: pointer;
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
}
|
|
50
51
|
.list :hover,
|
|
51
52
|
.selected {
|
|
53
|
+
/* css:theme-validation:ignore */
|
|
52
54
|
color: var(--textHoverColor);
|
|
53
55
|
}
|
|
54
56
|
.title {
|
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
.imgItem {
|
|
155
155
|
height: var(--zd_size60) ;
|
|
156
156
|
min-width: var(--zd_size40) ;
|
|
157
|
+
/* css:theme-validation:ignore */
|
|
157
158
|
position: relative;
|
|
158
159
|
transition: border var(--zd_transition3);
|
|
159
160
|
border-width: 2px;
|
|
@@ -345,6 +346,7 @@
|
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
.btn {
|
|
349
|
+
/* css:theme-validation:ignore */
|
|
348
350
|
height: 100% ;
|
|
349
351
|
width: 100% ;
|
|
350
352
|
background-color: var(--dot_mirror);
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
top: calc( var(--zd_size4) * -1 ) ;
|
|
17
17
|
height: var(--zd_size15) ;
|
|
18
18
|
width: var(--zd_size15) ;
|
|
19
|
+
/* css:theme-validation:ignore */
|
|
19
20
|
background-color: var(--topIconBg);
|
|
20
21
|
}
|
|
21
22
|
[dir=ltr] .thread {
|
|
@@ -25,10 +26,12 @@
|
|
|
25
26
|
left: calc( var(--zd_size1) * -1 ) ;
|
|
26
27
|
}
|
|
27
28
|
.threadBorder {
|
|
29
|
+
/* css:theme-validation:ignore */
|
|
28
30
|
border: 1px solid var(--topIconBorderColor);
|
|
29
31
|
}
|
|
30
32
|
.iconStyle {
|
|
31
33
|
position: relative;
|
|
34
|
+
/* css:theme-validation:ignore */
|
|
32
35
|
color: var(--iconColor);
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -213,5 +216,6 @@
|
|
|
213
216
|
--topIconColor: var(--zdt_channelIcon_topIcon_iconYellow);
|
|
214
217
|
}
|
|
215
218
|
.topicIcon {
|
|
219
|
+
/* css:theme-validation:ignore */
|
|
216
220
|
color: var(--topIconColor);
|
|
217
221
|
}
|
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) {
|
package/es/Link/Link.js
CHANGED
package/es/Provider/Config.js
CHANGED
|
@@ -5,52 +5,66 @@
|
|
|
5
5
|
--tag_small_fontSize: var(--zd_font_size10);
|
|
6
6
|
--tag_large_fontSize: var(--zd_font_size12);
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.wrapper {
|
|
9
10
|
composes: varClass;
|
|
11
|
+
/* css:theme-validation:ignore */
|
|
12
|
+
/* css:theme-validation:ignore */
|
|
10
13
|
color: var(--tag_text_color);
|
|
11
14
|
background-color: var(--tag_bg_color);
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.small,
|
|
14
18
|
.large {
|
|
19
|
+
/* css:theme-validation:ignore */
|
|
15
20
|
max-width: 100% ;
|
|
16
21
|
height: var(--zd_size18) ;
|
|
17
22
|
}
|
|
23
|
+
|
|
18
24
|
.small, .large {
|
|
19
|
-
border: 1px solid;
|
|
20
|
-
border-color: var(--tag_border_color);
|
|
25
|
+
border: 1px solid var(--tag_border_color);
|
|
21
26
|
border-radius: var(--zd_size4);
|
|
22
27
|
padding: 0 var(--zd_size6) ;
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
.bold {
|
|
25
31
|
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
26
32
|
}
|
|
33
|
+
|
|
27
34
|
.small_text {
|
|
28
35
|
font-size: var(--tag_small_fontSize);
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
.large_text {
|
|
31
39
|
font-size: var(--tag_large_fontSize);
|
|
32
40
|
}
|
|
41
|
+
|
|
33
42
|
.text {
|
|
34
43
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
35
44
|
}
|
|
36
|
-
|
|
45
|
+
|
|
46
|
+
[dir=ltr] .iconSpace {
|
|
37
47
|
margin-right: var(--zd_size4) ;
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
|
|
50
|
+
[dir=rtl] .iconSpace {
|
|
40
51
|
margin-left: var(--zd_size4) ;
|
|
41
52
|
}
|
|
53
|
+
|
|
42
54
|
.yellow {
|
|
43
55
|
--tag_bg_color: var(--zdt_tagWithIconYellow_bg);
|
|
44
56
|
--tag_text_color: var(--zdt_tagWithIconYellow_text);
|
|
45
57
|
--tag_border_color: var(--zdt_tagWithIconYellow_border);
|
|
46
58
|
}
|
|
59
|
+
|
|
47
60
|
.grey {
|
|
48
61
|
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
49
62
|
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
50
63
|
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
51
64
|
}
|
|
65
|
+
|
|
52
66
|
.blue {
|
|
53
67
|
--tag_bg_color: var(--zdt_tagWithIconBlue_bg);
|
|
54
68
|
--tag_text_color: var(--zdt_tagWithIconBlue_text);
|
|
55
69
|
--tag_border_color: var(--zdt_tagWithIconBlue_border);
|
|
56
|
-
}
|
|
70
|
+
}
|
|
@@ -6,11 +6,16 @@
|
|
|
6
6
|
.container {
|
|
7
7
|
vertical-align: middle;
|
|
8
8
|
composes: varClass;
|
|
9
|
+
/* css:theme-validation:ignore */
|
|
9
10
|
border-width: 1px;
|
|
10
11
|
border-style: solid;
|
|
11
12
|
border-radius: 50%;
|
|
12
13
|
border-color: var(--border_color)
|
|
13
14
|
}
|
|
15
|
+
.borderOnHover:hover,
|
|
16
|
+
.borderOnActive {
|
|
17
|
+
/* css:theme-validation:ignore */
|
|
18
|
+
}
|
|
14
19
|
.borderOnHover:hover, .borderOnActive {
|
|
15
20
|
border-color: var(--border_hoverColor)
|
|
16
21
|
}
|
|
@@ -35,6 +40,7 @@
|
|
|
35
40
|
--border_hoverColor: var(--zdt_avatarIcon_danger_hover_border);
|
|
36
41
|
}
|
|
37
42
|
.iconColor {
|
|
43
|
+
/* css:theme-validation:ignore */
|
|
38
44
|
color: var(--icon_color);
|
|
39
45
|
}
|
|
40
46
|
.icon_danger {
|
|
@@ -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({
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
.title {
|
|
23
23
|
font-family: var(--zd_semibold);
|
|
24
|
+
/* css:theme-validation:ignore */
|
|
24
25
|
color: var(--titleColor);
|
|
25
26
|
}
|
|
26
27
|
.small .title {
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
}
|
|
32
33
|
.linkWrapper,
|
|
33
34
|
.linkDescWrapper {
|
|
35
|
+
/* css:theme-validation:ignore */
|
|
34
36
|
color: var(--descriptionColor);
|
|
35
37
|
}
|
|
36
38
|
.small .linkWrapper,
|
|
@@ -60,11 +62,13 @@
|
|
|
60
62
|
line-height: var(--zd_size19);
|
|
61
63
|
}
|
|
62
64
|
.link {
|
|
65
|
+
/* css:theme-validation:ignore */
|
|
63
66
|
color: var(--linkColor);
|
|
64
67
|
display: inline-block;
|
|
65
68
|
cursor: pointer;
|
|
66
69
|
}
|
|
67
70
|
.link:hover {
|
|
71
|
+
/* css:theme-validation:ignore */
|
|
68
72
|
color: var(--linkHoverColor);
|
|
69
73
|
}
|
|
70
74
|
.children {
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.tertiary_borderStyle {
|
|
51
|
+
/* css:theme-validation:ignore */
|
|
51
52
|
border-bottom: 1px solid var(--borderColor);
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -149,6 +150,7 @@
|
|
|
149
150
|
|
|
150
151
|
.footer {
|
|
151
152
|
composes: varClass;
|
|
153
|
+
/* css:theme-validation:ignore */
|
|
152
154
|
border-top: 1px solid var(--borderColor);
|
|
153
155
|
}
|
|
154
156
|
|
|
@@ -35,10 +35,22 @@
|
|
|
35
35
|
padding: var(--zd_size2) 0 ;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
.compact .innerContainer,
|
|
39
|
+
.classic .innerContainer,
|
|
40
|
+
.superCompact .innerContainer {
|
|
41
|
+
/* css:theme-validation:ignore */
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
39
45
|
border-bottom: 1px dotted var(--listBorder);
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
.compact,
|
|
49
|
+
.classic,
|
|
50
|
+
.superCompact {
|
|
51
|
+
/* css:theme-validation:ignore */
|
|
52
|
+
}
|
|
53
|
+
|
|
42
54
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
43
55
|
border-left: var(--zd_size2) solid transparent;
|
|
44
56
|
}
|
|
@@ -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, {
|
|
@@ -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,
|
|
@@ -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({
|