@zohodesk/dot 1.2.1 → 1.2.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/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +10 -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/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 +12 -12
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +1 -1
- package/es/Attachment/Attachment.js +2 -1
- package/es/Attachment/Attachment.module.css +10 -6
- package/es/Link/Link.js +2 -1
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/es/list/Icons/AddNewIcon.js +3 -2
- package/es/list/Icons/CompleteIcon.js +3 -2
- package/es/list/Icons/DeleteIcon.js +4 -3
- package/es/list/Icons/EditIcon.js +5 -3
- package/es/list/Icons/ReadUnreadIcon.js +5 -3
- package/es/list/Icons/SmartIcon.js +5 -3
- package/es/list/ListLayout/ListLayout.module.css +24 -8
- package/es/list/listCommon.module.css +23 -5
- package/es/list/status/StatusDropdown/StatusDropdown.js +12 -2
- package/es/lookup/Lookup/Lookup.js +2 -0
- package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/lib/Attachment/Attachment.js +2 -1
- package/lib/Attachment/Attachment.module.css +10 -6
- package/lib/Link/Link.js +2 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
- package/lib/list/Icons/AddNewIcon.js +4 -2
- package/lib/list/Icons/CompleteIcon.js +4 -2
- package/lib/list/Icons/DeleteIcon.js +5 -3
- package/lib/list/Icons/EditIcon.js +6 -3
- package/lib/list/Icons/ReadUnreadIcon.js +6 -3
- package/lib/list/Icons/SmartIcon.js +6 -3
- package/lib/list/ListLayout/ListLayout.module.css +24 -8
- package/lib/list/listCommon.module.css +23 -5
- package/lib/list/status/StatusDropdown/StatusDropdown.js +12 -2
- package/lib/lookup/Lookup/Lookup.js +2 -0
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
- package/package.json +4 -4
- package/result.json +1 -1
|
@@ -1,58 +1,74 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--listBorder: var(--zdt_listLayout_border)
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.container {
|
|
5
6
|
position: relative;
|
|
6
7
|
composes: varClass;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
.listHover:hover, .hoveredStyle, .listHover:focus-within, .hoveredStyle:focus-within {
|
|
9
11
|
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.active, .active:hover {
|
|
12
15
|
background-color: var(--zdt_listLayout_active_bg);
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
.cursorPointer {
|
|
15
19
|
cursor: pointer
|
|
16
20
|
}
|
|
21
|
+
|
|
17
22
|
/* View */
|
|
18
23
|
.classic .innerContainer {
|
|
19
24
|
min-height: var(--zd_size70) ;
|
|
20
25
|
padding: var(--zd_size13) 0 ;
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.compact .innerContainer {
|
|
23
29
|
min-height: var(--zd_size41) ;
|
|
24
30
|
padding: var(--zd_size5) 0 ;
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
.superCompact .innerContainer {
|
|
27
34
|
min-height: var(--zd_size35) ;
|
|
28
35
|
padding: var(--zd_size2) 0 ;
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
31
39
|
border-bottom: 1px dotted var(--listBorder);
|
|
32
40
|
}
|
|
41
|
+
|
|
33
42
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
43
|
border-left: var(--zd_size2) solid transparent;
|
|
35
44
|
}
|
|
45
|
+
|
|
36
46
|
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
47
|
border-right: var(--zd_size2) solid transparent;
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
|
|
50
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active {
|
|
40
51
|
border-top-left-radius: var(--zd_size5);
|
|
41
52
|
border-bottom-left-radius: var(--zd_size5);
|
|
42
53
|
}
|
|
43
|
-
|
|
54
|
+
|
|
55
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active {
|
|
44
56
|
border-top-right-radius: var(--zd_size5);
|
|
45
57
|
border-bottom-right-radius: var(--zd_size5);
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
|
|
60
|
+
[dir=ltr] .keyboardActive {
|
|
48
61
|
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
62
|
}
|
|
50
|
-
|
|
63
|
+
|
|
64
|
+
[dir=rtl] .keyboardActive {
|
|
51
65
|
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
66
|
}
|
|
53
|
-
|
|
67
|
+
|
|
68
|
+
[dir=ltr] .active {
|
|
54
69
|
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
70
|
}
|
|
56
|
-
|
|
71
|
+
|
|
72
|
+
[dir=rtl] .active {
|
|
57
73
|
border-right-color: var(--zdt_listLayout_active_border);
|
|
58
74
|
}
|
|
@@ -2,59 +2,77 @@
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
vertical-align: middle;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.inlineFlex {
|
|
6
7
|
composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
7
8
|
}
|
|
9
|
+
|
|
8
10
|
[dir=ltr] .avatarMargin {
|
|
9
11
|
margin-right: var(--zd_size25) ;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
[dir=rtl] .avatarMargin {
|
|
12
15
|
margin-left: var(--zd_size25) ;
|
|
13
16
|
}
|
|
17
|
+
|
|
14
18
|
.subject {
|
|
15
19
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
16
20
|
font-size: var(--zd_font_size16) ;
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
.secondaryPanel {
|
|
19
24
|
line-height: var(--zd_size18);
|
|
20
25
|
composes: dflex alignVertical flexwrap from '~@zohodesk/components/lib/common/common.module.css';
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.statusColumn {
|
|
23
29
|
composes: inlineBlockMiddle;
|
|
24
30
|
}
|
|
31
|
+
|
|
25
32
|
[dir=ltr] .statusColumn {
|
|
26
33
|
text-align: right;
|
|
27
34
|
}
|
|
35
|
+
|
|
28
36
|
[dir=rtl] .statusColumn {
|
|
29
37
|
text-align: left;
|
|
30
38
|
}
|
|
39
|
+
|
|
31
40
|
.classic .floatingIconContainer {
|
|
32
41
|
display: none;
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.compact .floatingIconContainer,
|
|
35
45
|
.superCompact .floatingIconContainer,
|
|
36
46
|
.listContainer:hover .classic .floatingIconContainer,
|
|
37
|
-
.hoveredStyle .classic .floatingIconContainer
|
|
47
|
+
.hoveredStyle .classic .floatingIconContainer,
|
|
48
|
+
.compact:focus-within .floatingIconContainer,
|
|
49
|
+
.superCompact:focus-within .floatingIconContainer,
|
|
50
|
+
.listContainer:focus-within .classic .floatingIconContainer,
|
|
51
|
+
.hoveredStyle .classic:focus-within .floatingIconContainer {
|
|
38
52
|
display: inline-flex;
|
|
39
53
|
align-items: center;
|
|
40
54
|
}
|
|
55
|
+
|
|
41
56
|
.compact .floatingIconContainer,
|
|
42
57
|
.superCompact .floatingIconContainer {
|
|
43
58
|
opacity: 0;
|
|
44
59
|
visibility: hidden;
|
|
45
60
|
}
|
|
61
|
+
|
|
46
62
|
.floatingIcons {
|
|
47
63
|
font-size: var(--zd_font_size15) ;
|
|
48
64
|
}
|
|
49
|
-
|
|
65
|
+
|
|
66
|
+
.listContainer,
|
|
67
|
+
.listLayoutContainer {
|
|
50
68
|
position: relative;
|
|
51
69
|
transition: var(--zd_transition3) all ease;
|
|
52
70
|
}
|
|
71
|
+
|
|
53
72
|
.listContainer:hover .compact .floatingIconContainer,
|
|
54
73
|
.listContainer:hover .superCompact .floatingIconContainer,
|
|
55
74
|
.hoveredStyle .compact .floatingIconContainer,
|
|
56
|
-
.hoveredStyle .superCompact .floatingIconContainer
|
|
57
|
-
{
|
|
75
|
+
.hoveredStyle .superCompact .floatingIconContainer {
|
|
58
76
|
opacity: 1;
|
|
59
77
|
visibility: visible;
|
|
60
|
-
}
|
|
78
|
+
}
|
|
@@ -306,8 +306,14 @@ export class StatusDropdown extends React.Component {
|
|
|
306
306
|
statusColor,
|
|
307
307
|
needExternalPopupState = false,
|
|
308
308
|
isPopupActive = false,
|
|
309
|
-
needMultiLineText
|
|
309
|
+
needMultiLineText,
|
|
310
|
+
a11y = {}
|
|
310
311
|
} = this.props;
|
|
312
|
+
const {
|
|
313
|
+
tabIndex = 0,
|
|
314
|
+
ariaLabelledby,
|
|
315
|
+
ariaLabel
|
|
316
|
+
} = a11y;
|
|
311
317
|
let isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
|
|
312
318
|
let {
|
|
313
319
|
searchString
|
|
@@ -330,7 +336,11 @@ export class StatusDropdown extends React.Component {
|
|
|
330
336
|
onClick: removeClose,
|
|
331
337
|
disabled: isDisabled || isReadOnly ? true : false,
|
|
332
338
|
"aria-haspopup": true,
|
|
333
|
-
"aria-expanded": isPopupOpen && isEditable ? true : false
|
|
339
|
+
"aria-expanded": isPopupOpen && isEditable ? true : false,
|
|
340
|
+
tabIndex: tabIndex,
|
|
341
|
+
"aria-labelledby": ariaLabelledby,
|
|
342
|
+
"aria-label": ariaLabel,
|
|
343
|
+
"aria-disabled": isDisabled || isReadOnly
|
|
334
344
|
}, isEditable ? /*#__PURE__*/React.createElement("div", {
|
|
335
345
|
className: style.hiddenInput
|
|
336
346
|
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
@@ -60,6 +60,7 @@ export default class Lookup extends Component {
|
|
|
60
60
|
role = 'dialog',
|
|
61
61
|
ariaLabelledby,
|
|
62
62
|
ariaDescribedby,
|
|
63
|
+
ariaLabel,
|
|
63
64
|
ariaModal = isActive ? true : undefined
|
|
64
65
|
} = a11y;
|
|
65
66
|
const {
|
|
@@ -79,6 +80,7 @@ export default class Lookup extends Component {
|
|
|
79
80
|
role: role,
|
|
80
81
|
"aria-labelledby": ariaLabelledby,
|
|
81
82
|
"aria-describedby": ariaDescribedby,
|
|
83
|
+
"aria-label": ariaLabel,
|
|
82
84
|
"aria-modal": ariaModal,
|
|
83
85
|
id: htmlId,
|
|
84
86
|
className: `${style.box} ${style[`${size}Size`]}`,
|
|
@@ -117,6 +117,8 @@ export default class AlertLookup extends Component {
|
|
|
117
117
|
let ariaMessageId = this.getAriaId();
|
|
118
118
|
let ariaConfirmMsgId = this.getAriaId();
|
|
119
119
|
let ariaTitleId = this.getAriaId();
|
|
120
|
+
let ariaLeaveButtonId = this.getAriaId();
|
|
121
|
+
let ariaStayButtonId = this.getAriaId();
|
|
120
122
|
a11y = {
|
|
121
123
|
ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
|
|
122
124
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
@@ -175,12 +177,22 @@ export default class AlertLookup extends Component {
|
|
|
175
177
|
customProps: {
|
|
176
178
|
'data-a11y-autofocus': isDefaultFocus
|
|
177
179
|
}
|
|
178
|
-
}, PrimaryButtonProps
|
|
180
|
+
}, PrimaryButtonProps, {
|
|
181
|
+
a11y: {
|
|
182
|
+
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
|
|
183
|
+
},
|
|
184
|
+
id: ariaLeaveButtonId
|
|
185
|
+
})), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
|
|
179
186
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
180
187
|
text: cancelText,
|
|
181
188
|
onClick: onCancelClick,
|
|
182
189
|
palette: "secondary"
|
|
183
|
-
}, SecondaryButtonProps
|
|
190
|
+
}, SecondaryButtonProps, {
|
|
191
|
+
a11y: {
|
|
192
|
+
'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
|
|
193
|
+
},
|
|
194
|
+
id: ariaStayButtonId
|
|
195
|
+
}))))) : null))));
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
}
|
|
@@ -80,7 +80,8 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
|
|
|
80
80
|
"data-title": tooltip,
|
|
81
81
|
alignBox: "row",
|
|
82
82
|
isCover: false,
|
|
83
|
-
dataSelectorId: dataSelectorId
|
|
83
|
+
dataSelectorId: dataSelectorId,
|
|
84
|
+
tabIndex: "0"
|
|
84
85
|
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
85
86
|
className: _AttachmentModule["default"].attachleft
|
|
86
87
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -18,19 +18,22 @@
|
|
|
18
18
|
background-color: var(--zdt_attachment_transparent_bg);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.attachmentHover:hover, .attachmentHover:hover .attachleft {
|
|
21
|
+
.attachmentHover:hover, .attachmentHover:hover .attachleft, .attachmentHover:focus-within, .attachmentHover:focus-within .attachleft {
|
|
22
22
|
border-color: var(--zdt_attachment_default_hover_border);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.attachmentHover:hover .attachleft i
|
|
25
|
+
.attachmentHover:hover .attachleft i,
|
|
26
|
+
.attachmentHover:focus-within .attachleft i {
|
|
26
27
|
color: var(--zdt_attachment_hover_text);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
.attachment:hover .attachDownload
|
|
30
|
+
.attachment:hover .attachDownload,
|
|
31
|
+
.attachment:focus-within .attachDownload {
|
|
30
32
|
display: block;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
.attachmentHover:hover .attachSize
|
|
35
|
+
.attachmentHover:hover .attachSize,
|
|
36
|
+
.attachment:focus-within .attachSize {
|
|
34
37
|
color: var(--zdt_attachment_hover_text);
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -132,7 +135,7 @@
|
|
|
132
135
|
line-height: var(--zd_size18);
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
.attachDownload:hover {
|
|
138
|
+
.attachDownload:hover, .attachDownload:focus-within {
|
|
136
139
|
background-color: var(--zdt_attachment_download_hover_bg);
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -145,7 +148,8 @@
|
|
|
145
148
|
color: var(--zdt_attachment_size_text);
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
.attachDownload:hover .downIcon
|
|
151
|
+
.attachDownload:hover .downIcon,
|
|
152
|
+
.attachDownload:focus-within .downIcon {
|
|
149
153
|
color: var(--zdt_attachment_download_hover_text);
|
|
150
154
|
}
|
|
151
155
|
|
package/lib/Link/Link.js
CHANGED
|
@@ -141,7 +141,8 @@ var Link = /*#__PURE__*/function (_React$Component) {
|
|
|
141
141
|
}, others, {
|
|
142
142
|
onClick: this.onCallBack.bind(this, urlOutput, href)
|
|
143
143
|
}, customProps, {
|
|
144
|
-
"aria-label": ariaLabel
|
|
144
|
+
"aria-label": ariaLabel,
|
|
145
|
+
tabIndex: "0"
|
|
145
146
|
}), children);
|
|
146
147
|
}
|
|
147
148
|
}]);
|
|
@@ -82,6 +82,7 @@ var CommonEmptyState = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
"data-id": dataId,
|
|
83
83
|
"data-test-id": dataId
|
|
84
84
|
}, getEmptyState ? getEmptyState() : null, title ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
tabIndex: "0",
|
|
85
86
|
className: "".concat(_CommonEmptyStateModule["default"].title, " ").concat(titleClass)
|
|
86
87
|
}, title) : null, description ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
88
|
className: _CommonEmptyStateModule["default"].linkWrapper
|
|
@@ -15,6 +15,8 @@ var _icons = require("@zohodesk/icons");
|
|
|
15
15
|
|
|
16
16
|
var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
17
17
|
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -57,9 +59,9 @@ var AddNewIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
57
59
|
dataTitle = _this$props.dataTitle,
|
|
58
60
|
iconClass = _this$props.iconClass,
|
|
59
61
|
className = _this$props.className;
|
|
60
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
61
63
|
onClick: onClick,
|
|
62
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : ''),
|
|
64
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
63
65
|
"data-id": dataId,
|
|
64
66
|
"data-test-id": dataId,
|
|
65
67
|
"data-title": dataTitle
|
|
@@ -15,6 +15,8 @@ var _icons = require("@zohodesk/icons");
|
|
|
15
15
|
|
|
16
16
|
var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
17
17
|
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -58,9 +60,9 @@ var CompleteIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
58
60
|
iconClass = _this$props.iconClass,
|
|
59
61
|
className = _this$props.className,
|
|
60
62
|
iconSize = _this$props.iconSize;
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
62
64
|
onClick: onClick,
|
|
63
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : ''),
|
|
65
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
64
66
|
"data-id": dataId,
|
|
65
67
|
"data-test-id": dataId,
|
|
66
68
|
"data-title": dataTitle
|
|
@@ -15,6 +15,8 @@ var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -58,13 +60,13 @@ var DeleteComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
58
60
|
iconClass = _this$props.iconClass,
|
|
59
61
|
iconSize = _this$props.iconSize,
|
|
60
62
|
className = _this$props.className;
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
62
64
|
onClick: onClick,
|
|
63
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].redHover, " ").concat(className ? className : ''),
|
|
65
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].redHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
64
66
|
"data-id": dataId,
|
|
65
67
|
"data-test-id": dataId,
|
|
66
68
|
"data-title": dataTitle,
|
|
67
|
-
|
|
69
|
+
"aria-label": dataTitle
|
|
68
70
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
69
71
|
name: "ZD-GN-delete",
|
|
70
72
|
iconClass: iconClass ? iconClass : '',
|
|
@@ -15,6 +15,8 @@ var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -58,12 +60,13 @@ var EditIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
58
60
|
iconClass = _this$props.iconClass,
|
|
59
61
|
iconSize = _this$props.iconSize,
|
|
60
62
|
className = _this$props.className;
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
62
64
|
onClick: onClick,
|
|
63
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : ''),
|
|
65
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
64
66
|
"data-id": dataId,
|
|
65
67
|
"data-test-id": dataId,
|
|
66
|
-
"data-title": dataTitle
|
|
68
|
+
"data-title": dataTitle,
|
|
69
|
+
"aria-label": dataTitle
|
|
67
70
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
68
71
|
name: "ZD-GN-edit",
|
|
69
72
|
iconClass: iconClass ? iconClass : '',
|
|
@@ -17,6 +17,8 @@ var _icons = require("@zohodesk/icons");
|
|
|
17
17
|
|
|
18
18
|
var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
19
19
|
|
|
20
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -62,12 +64,13 @@ var ReadUnreadIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
62
64
|
className = _this$props.className,
|
|
63
65
|
isRead = _this$props.isRead,
|
|
64
66
|
iconSize = _this$props.iconSize;
|
|
65
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
66
68
|
onClick: onClick,
|
|
67
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : ''),
|
|
69
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
68
70
|
"data-id": dataId,
|
|
69
71
|
"data-test-id": dataId,
|
|
70
|
-
"data-title": dataTitle
|
|
72
|
+
"data-title": dataTitle,
|
|
73
|
+
"aria-label": dataTitle
|
|
71
74
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
72
75
|
name: isRead ? 'ZD-GN-read' : 'ZD-GN-unread',
|
|
73
76
|
size: iconSize,
|
|
@@ -15,6 +15,8 @@ var _IconsModule = _interopRequireDefault(require("./Icons.module.css"));
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@zohodesk/icons");
|
|
17
17
|
|
|
18
|
+
var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/semanticButton.module.css"));
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -61,12 +63,13 @@ var SmartIcon = /*#__PURE__*/function (_Component) {
|
|
|
61
63
|
dataTitle = _this$props.dataTitle,
|
|
62
64
|
iconClass = _this$props.iconClass,
|
|
63
65
|
className = _this$props.className;
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
65
67
|
onClick: onClick,
|
|
66
|
-
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : ''),
|
|
68
|
+
className: "".concat(_IconsModule["default"].iconStyle, " ").concat(_IconsModule["default"].blueHover, " ").concat(className ? className : '', " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
67
69
|
"data-id": dataId,
|
|
68
70
|
"data-test-id": dataId,
|
|
69
|
-
"data-title": dataTitle
|
|
71
|
+
"data-title": dataTitle,
|
|
72
|
+
"aria-label": dataTitle
|
|
70
73
|
}, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
|
|
71
74
|
name: "ZD-TK-peek",
|
|
72
75
|
iconClass: iconClass ? iconClass : ''
|
|
@@ -1,58 +1,74 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--listBorder: var(--zdt_listLayout_border)
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.container {
|
|
5
6
|
position: relative;
|
|
6
7
|
composes: varClass;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
.listHover:hover, .hoveredStyle, .listHover:focus-within, .hoveredStyle:focus-within {
|
|
9
11
|
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.active, .active:hover {
|
|
12
15
|
background-color: var(--zdt_listLayout_active_bg);
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
.cursorPointer {
|
|
15
19
|
cursor: pointer
|
|
16
20
|
}
|
|
21
|
+
|
|
17
22
|
/* View */
|
|
18
23
|
.classic .innerContainer {
|
|
19
24
|
min-height: var(--zd_size70) ;
|
|
20
25
|
padding: var(--zd_size13) 0 ;
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.compact .innerContainer {
|
|
23
29
|
min-height: var(--zd_size41) ;
|
|
24
30
|
padding: var(--zd_size5) 0 ;
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
.superCompact .innerContainer {
|
|
27
34
|
min-height: var(--zd_size35) ;
|
|
28
35
|
padding: var(--zd_size2) 0 ;
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
.compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
|
|
31
39
|
border-bottom: 1px dotted var(--listBorder);
|
|
32
40
|
}
|
|
41
|
+
|
|
33
42
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
43
|
border-left: var(--zd_size2) solid transparent;
|
|
35
44
|
}
|
|
45
|
+
|
|
36
46
|
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
47
|
border-right: var(--zd_size2) solid transparent;
|
|
38
48
|
}
|
|
39
|
-
|
|
49
|
+
|
|
50
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active {
|
|
40
51
|
border-top-left-radius: var(--zd_size5);
|
|
41
52
|
border-bottom-left-radius: var(--zd_size5);
|
|
42
53
|
}
|
|
43
|
-
|
|
54
|
+
|
|
55
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active {
|
|
44
56
|
border-top-right-radius: var(--zd_size5);
|
|
45
57
|
border-bottom-right-radius: var(--zd_size5);
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
|
|
60
|
+
[dir=ltr] .keyboardActive {
|
|
48
61
|
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
62
|
}
|
|
50
|
-
|
|
63
|
+
|
|
64
|
+
[dir=rtl] .keyboardActive {
|
|
51
65
|
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
66
|
}
|
|
53
|
-
|
|
67
|
+
|
|
68
|
+
[dir=ltr] .active {
|
|
54
69
|
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
70
|
}
|
|
56
|
-
|
|
71
|
+
|
|
72
|
+
[dir=rtl] .active {
|
|
57
73
|
border-right-color: var(--zdt_listLayout_active_border);
|
|
58
74
|
}
|
|
@@ -2,59 +2,77 @@
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
vertical-align: middle;
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
.inlineFlex {
|
|
6
7
|
composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
7
8
|
}
|
|
9
|
+
|
|
8
10
|
[dir=ltr] .avatarMargin {
|
|
9
11
|
margin-right: var(--zd_size25) ;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
[dir=rtl] .avatarMargin {
|
|
12
15
|
margin-left: var(--zd_size25) ;
|
|
13
16
|
}
|
|
17
|
+
|
|
14
18
|
.subject {
|
|
15
19
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
16
20
|
font-size: var(--zd_font_size16) ;
|
|
17
21
|
}
|
|
22
|
+
|
|
18
23
|
.secondaryPanel {
|
|
19
24
|
line-height: var(--zd_size18);
|
|
20
25
|
composes: dflex alignVertical flexwrap from '~@zohodesk/components/lib/common/common.module.css';
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.statusColumn {
|
|
23
29
|
composes: inlineBlockMiddle;
|
|
24
30
|
}
|
|
31
|
+
|
|
25
32
|
[dir=ltr] .statusColumn {
|
|
26
33
|
text-align: right;
|
|
27
34
|
}
|
|
35
|
+
|
|
28
36
|
[dir=rtl] .statusColumn {
|
|
29
37
|
text-align: left;
|
|
30
38
|
}
|
|
39
|
+
|
|
31
40
|
.classic .floatingIconContainer {
|
|
32
41
|
display: none;
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.compact .floatingIconContainer,
|
|
35
45
|
.superCompact .floatingIconContainer,
|
|
36
46
|
.listContainer:hover .classic .floatingIconContainer,
|
|
37
|
-
.hoveredStyle .classic .floatingIconContainer
|
|
47
|
+
.hoveredStyle .classic .floatingIconContainer,
|
|
48
|
+
.compact:focus-within .floatingIconContainer,
|
|
49
|
+
.superCompact:focus-within .floatingIconContainer,
|
|
50
|
+
.listContainer:focus-within .classic .floatingIconContainer,
|
|
51
|
+
.hoveredStyle .classic:focus-within .floatingIconContainer {
|
|
38
52
|
display: inline-flex;
|
|
39
53
|
align-items: center;
|
|
40
54
|
}
|
|
55
|
+
|
|
41
56
|
.compact .floatingIconContainer,
|
|
42
57
|
.superCompact .floatingIconContainer {
|
|
43
58
|
opacity: 0;
|
|
44
59
|
visibility: hidden;
|
|
45
60
|
}
|
|
61
|
+
|
|
46
62
|
.floatingIcons {
|
|
47
63
|
font-size: var(--zd_font_size15) ;
|
|
48
64
|
}
|
|
49
|
-
|
|
65
|
+
|
|
66
|
+
.listContainer,
|
|
67
|
+
.listLayoutContainer {
|
|
50
68
|
position: relative;
|
|
51
69
|
transition: var(--zd_transition3) all ease;
|
|
52
70
|
}
|
|
71
|
+
|
|
53
72
|
.listContainer:hover .compact .floatingIconContainer,
|
|
54
73
|
.listContainer:hover .superCompact .floatingIconContainer,
|
|
55
74
|
.hoveredStyle .compact .floatingIconContainer,
|
|
56
|
-
.hoveredStyle .superCompact .floatingIconContainer
|
|
57
|
-
{
|
|
75
|
+
.hoveredStyle .superCompact .floatingIconContainer {
|
|
58
76
|
opacity: 1;
|
|
59
77
|
visibility: visible;
|
|
60
|
-
}
|
|
78
|
+
}
|