@zohodesk/dot 1.0.0-temp-100 → 1.0.0-temp-101
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/README.md +0 -4
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +0 -2
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +0 -2
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +0 -2
- package/es/ActionButton/ActionButton.js +3 -1
- package/es/Drawer/Drawer.js +16 -3
- package/es/Drawer/Drawer.module.css +5 -0
- package/es/avatar/AvatarThread/AvatarThread.module.css +3 -7
- package/es/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -19
- package/es/avatar/AvatarThread/props/propTypes.js +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +17 -17
- package/es/lookup/Lookup/Lookup.js +1 -1
- package/es/lookup/Section/Section.js +16 -4
- package/es/version2/GlobalNotification/GlobalNotification.js +3 -3
- package/es/version2/lookup/AlertLookup/AlertLookup.js +9 -4
- package/lib/ActionButton/ActionButton.js +3 -1
- package/lib/Drawer/Drawer.js +17 -3
- package/lib/Drawer/Drawer.module.css +5 -0
- package/lib/avatar/AvatarThread/AvatarThread.module.css +3 -7
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +0 -19
- package/lib/avatar/AvatarThread/props/propTypes.js +1 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +17 -15
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Section/Section.js +21 -5
- package/lib/version2/GlobalNotification/GlobalNotification.js +3 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +9 -4
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -83,8 +83,6 @@
|
|
|
83
83
|
--zdt_avatarthread_success_text: var(--dot_darkmint);
|
|
84
84
|
--zdt_avatarthread_danger_border: var(--dot_bittersweet);
|
|
85
85
|
--zdt_avatarthread_danger_text: var(--dot_bittersweet);
|
|
86
|
-
--zdt_avatarthread_orange_border: var(--dot_cadmiumorange);
|
|
87
|
-
--zdt_avatarthread_orange_text: var(--dot_cadmiumorange);
|
|
88
86
|
|
|
89
87
|
/* avatar user */
|
|
90
88
|
--zdt_avataruser_default_bg: var(--dot_ebonyclay);
|
|
@@ -83,8 +83,6 @@
|
|
|
83
83
|
--zdt_avatarthread_success_text: var(--dot_strongGreen);
|
|
84
84
|
--zdt_avatarthread_danger_border: var(--dot_brightRed);
|
|
85
85
|
--zdt_avatarthread_danger_text: var(--dot_brightRed);
|
|
86
|
-
--zdt_avatarthread_orange_border: var(--dot_vividOrange);
|
|
87
|
-
--zdt_avatarthread_orange_text: var(--dot_vividOrange);
|
|
88
86
|
|
|
89
87
|
/* avatar user */
|
|
90
88
|
--zdt_avataruser_default_bg: var(--dot_white);
|
|
@@ -83,8 +83,6 @@
|
|
|
83
83
|
--zdt_avatarthread_success_text: var(--dot_darkmint);
|
|
84
84
|
--zdt_avatarthread_danger_border: var(--dot_bittersweet);
|
|
85
85
|
--zdt_avatarthread_danger_text: var(--dot_bittersweet);
|
|
86
|
-
--zdt_avatarthread_orange_border: var(--dot_cadmiumorange);
|
|
87
|
-
--zdt_avatarthread_orange_text: var(--dot_cadmiumorange);
|
|
88
86
|
|
|
89
87
|
/* avatar user */
|
|
90
88
|
--zdt_avataruser_default_bg: #212121;
|
|
@@ -118,7 +118,9 @@ export class ActionButton extends React.Component {
|
|
|
118
118
|
},
|
|
119
119
|
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
120
120
|
getRef: getContainerRef,
|
|
121
|
-
popupGroup: popupGroup
|
|
121
|
+
popupGroup: popupGroup,
|
|
122
|
+
needFocusScope: true,
|
|
123
|
+
onClose: this.handleTogglePopup
|
|
122
124
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
123
125
|
flexible: true,
|
|
124
126
|
shrink: true,
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -11,6 +11,7 @@ import IconButton from '../IconButton/IconButton';
|
|
|
11
11
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
12
12
|
import { getZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
13
13
|
import style from './Drawer.module.css';
|
|
14
|
+
import FocusScope from "@zohodesk/a11y/es/FocusScope/FocusScope";
|
|
14
15
|
export class Header extends React.Component {
|
|
15
16
|
render() {
|
|
16
17
|
let {
|
|
@@ -128,6 +129,7 @@ export default class Drawer extends React.Component {
|
|
|
128
129
|
this.drawers = this.drawers.bind(this);
|
|
129
130
|
this.responsiveFunc = this.responsiveFunc.bind(this);
|
|
130
131
|
this.getNextIndex = getZIndex(this);
|
|
132
|
+
this.createRef = /*#__PURE__*/React.createRef();
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
drawers(uptoTablet, styleByResolutions) {
|
|
@@ -163,14 +165,25 @@ export default class Drawer extends React.Component {
|
|
|
163
165
|
}
|
|
164
166
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
165
167
|
flexible: true
|
|
166
|
-
}, subDrawerChildren))))) : null, /*#__PURE__*/React.createElement(
|
|
167
|
-
|
|
168
|
+
}, subDrawerChildren))))) : null, /*#__PURE__*/React.createElement(FocusScope, {
|
|
169
|
+
elementRef: this.createRef,
|
|
170
|
+
autoFocus: true,
|
|
171
|
+
focusTabLoop: true,
|
|
172
|
+
restoreFocus: true
|
|
173
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
174
|
+
className: `${style.container} ${style.columns} ${style.drawerModal} ${uptoTablet ? style.mbleSize : style[size]}`,
|
|
175
|
+
"data-a11y-focus-class": style.focusStyle,
|
|
176
|
+
tabindex: -1,
|
|
177
|
+
eleRef: this.createRef
|
|
168
178
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
169
179
|
onClick: e => {
|
|
170
180
|
e && e.stopPropagation && e.stopPropagation();
|
|
171
181
|
onBodyClick(e);
|
|
182
|
+
},
|
|
183
|
+
customProps: {
|
|
184
|
+
tabindex: -1
|
|
172
185
|
}
|
|
173
|
-
}, childrenWithProps)));
|
|
186
|
+
}, childrenWithProps))));
|
|
174
187
|
}
|
|
175
188
|
|
|
176
189
|
responsiveFunc(_ref) {
|
|
@@ -36,18 +36,20 @@
|
|
|
36
36
|
[dir=rtl] .thread_xsmall_pos {
|
|
37
37
|
left: calc(var(--zd_size5) * -1);
|
|
38
38
|
}
|
|
39
|
+
|
|
39
40
|
.thread_small_pos {
|
|
40
41
|
top: calc(var(--zd_size3) * -1);
|
|
41
42
|
height: var(--zd_size12);
|
|
42
43
|
width: var(--zd_size12);
|
|
43
44
|
}
|
|
45
|
+
|
|
44
46
|
[dir=ltr] .thread_small_pos {
|
|
45
47
|
right: calc(var(--zd_size6) * -1);
|
|
46
48
|
}
|
|
49
|
+
|
|
47
50
|
[dir=rtl] .thread_small_pos {
|
|
48
51
|
left: calc(var(--zd_size6) * -1);
|
|
49
52
|
}
|
|
50
|
-
|
|
51
53
|
.thread_small_pos i {
|
|
52
54
|
font-size: var(--zd_font_size8);
|
|
53
55
|
}
|
|
@@ -133,9 +135,6 @@
|
|
|
133
135
|
.border_default {
|
|
134
136
|
border: 1px solid var(--zdt_avatarthread_default_border);
|
|
135
137
|
}
|
|
136
|
-
.border_orange {
|
|
137
|
-
border: 1px solid var(--zdt_avatarthread_orange_border);
|
|
138
|
-
}
|
|
139
138
|
|
|
140
139
|
.hover .thread {
|
|
141
140
|
display: none;
|
|
@@ -162,6 +161,3 @@
|
|
|
162
161
|
.text_default {
|
|
163
162
|
color: var(--zdt_avatarthread_default_text);
|
|
164
163
|
}
|
|
165
|
-
.text_orange {
|
|
166
|
-
color: var(--zdt_avatarthread_orange_text);
|
|
167
|
-
}
|
|
@@ -65,16 +65,6 @@ export default class AvatarThread__default extends Component {
|
|
|
65
65
|
iconSize: "14",
|
|
66
66
|
iconColor: "default",
|
|
67
67
|
borderPalette: "default"
|
|
68
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
69
|
-
style: margin
|
|
70
|
-
}, /*#__PURE__*/React.createElement(AvatarThread, {
|
|
71
|
-
src: "https://contacts.zoho.com/file?ID=8237519&exp=6000&t=user&fs=thumb",
|
|
72
|
-
name: "Bharathikannan",
|
|
73
|
-
size: "medium",
|
|
74
|
-
iconName: "ZD-TK-in",
|
|
75
|
-
iconSize: "14",
|
|
76
|
-
iconColor: "orange",
|
|
77
|
-
borderPalette: "orange"
|
|
78
68
|
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
79
69
|
style: margin
|
|
80
70
|
}, "Icon Color"), /*#__PURE__*/React.createElement("span", {
|
|
@@ -95,15 +85,6 @@ export default class AvatarThread__default extends Component {
|
|
|
95
85
|
iconName: "ZD-chFacebook",
|
|
96
86
|
iconSize: "10",
|
|
97
87
|
iconColor: "danger"
|
|
98
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
99
|
-
style: margin
|
|
100
|
-
}, /*#__PURE__*/React.createElement(AvatarThread, {
|
|
101
|
-
src: "https://contacts.zoho.com/file?ID=8237519&exp=6000&t=user&fs=thumb",
|
|
102
|
-
name: "Bharathikannan",
|
|
103
|
-
size: "medium",
|
|
104
|
-
iconName: "ZD-chFacebook",
|
|
105
|
-
iconSize: "10",
|
|
106
|
-
iconColor: "orange"
|
|
107
88
|
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
108
89
|
style: margin
|
|
109
90
|
}, "Size"), /*#__PURE__*/React.createElement("span", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
export const propTypes = {
|
|
3
|
-
borderPalette: PropTypes.oneOfType(['primary', 'success', 'danger', 'default'
|
|
3
|
+
borderPalette: PropTypes.oneOfType(['primary', 'success', 'danger', 'default']),
|
|
4
4
|
customTextClass: PropTypes.string,
|
|
5
5
|
dataId: PropTypes.string,
|
|
6
6
|
iconColor: PropTypes.string,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.array.includes";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import React, { Component, Fragment } from 'react';
|
|
@@ -369,22 +367,24 @@ export class ToggleDropDown extends Component {
|
|
|
369
367
|
break;
|
|
370
368
|
|
|
371
369
|
case 13:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
370
|
+
{
|
|
371
|
+
const selectedId = optionsArr[selectedIndex][idName] || '';
|
|
372
|
+
onClick && onClick(selectedId, optionsArr[selectedIndex]);
|
|
373
|
+
|
|
374
|
+
if (!preventPopupClose) {
|
|
375
|
+
togglePopup(e, boxPosition);
|
|
376
|
+
} else if (isSearch) {
|
|
377
|
+
this.searchInput.focus({
|
|
378
|
+
preventScroll: true
|
|
379
|
+
});
|
|
380
|
+
} else {
|
|
381
|
+
this.hiddenInput.focus({
|
|
382
|
+
preventScroll: true
|
|
383
|
+
});
|
|
384
|
+
}
|
|
386
385
|
|
|
387
|
-
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
388
|
}
|
|
389
389
|
} else {
|
|
390
390
|
if (keyCode === 13 || keyCode === 40) {
|
|
@@ -71,7 +71,7 @@ export default class Lookup extends Component {
|
|
|
71
71
|
className: style.container,
|
|
72
72
|
dataId: "fldValue"
|
|
73
73
|
}, /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
tabIndex: "
|
|
74
|
+
tabIndex: "-1",
|
|
75
75
|
role: role,
|
|
76
76
|
"aria-labelledby": ariaLabelledby,
|
|
77
77
|
"aria-describedby": ariaDescribedby,
|
|
@@ -2,22 +2,34 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { propTypes } from './props/propTypes';
|
|
3
3
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
4
4
|
import style from './LookupSection.module.css';
|
|
5
|
+
import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
|
|
5
6
|
export default class Section extends Component {
|
|
6
7
|
constructor(props) {
|
|
7
8
|
super(props);
|
|
9
|
+
this.createRef = /*#__PURE__*/React.createRef();
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
render() {
|
|
11
13
|
let {
|
|
12
14
|
alignBox,
|
|
13
|
-
className
|
|
15
|
+
className,
|
|
16
|
+
onClose
|
|
14
17
|
} = this.props;
|
|
15
|
-
return /*#__PURE__*/React.createElement(
|
|
18
|
+
return /*#__PURE__*/React.createElement(FocusScope, {
|
|
19
|
+
focusTabLoop: true,
|
|
20
|
+
elementRef: this.createRef,
|
|
21
|
+
autoFocus: true,
|
|
22
|
+
restoreFocus: true,
|
|
23
|
+
focusClose: onClose
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
25
|
+
"data-a11y-focus-container": true,
|
|
26
|
+
tabindex: -1,
|
|
27
|
+
eleRef: this.createRef,
|
|
16
28
|
alignBox: alignBox,
|
|
17
|
-
className: `${style.section} ${className ? className :
|
|
29
|
+
className: `${style.section} ${className ? className : ""}`
|
|
18
30
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
19
31
|
flexible: true
|
|
20
|
-
}, this.props.children));
|
|
32
|
+
}, this.props.children)));
|
|
21
33
|
}
|
|
22
34
|
|
|
23
35
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.array.includes";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import React from 'react';
|
|
@@ -103,7 +101,9 @@ export function GlobalNotificationUI(props) {
|
|
|
103
101
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
104
102
|
className: `${style.message} ${type ? style[type] : ''}`,
|
|
105
103
|
"data-id": `show_${type}_message`
|
|
106
|
-
}, ExtraProps
|
|
104
|
+
}, ExtraProps, {
|
|
105
|
+
tabIndex: 0
|
|
106
|
+
}), /*#__PURE__*/React.createElement(Container, {
|
|
107
107
|
className: `${style.container}`,
|
|
108
108
|
alignBox: "row",
|
|
109
109
|
isCover: false,
|
|
@@ -127,7 +127,8 @@ export default class AlertLookup extends Component {
|
|
|
127
127
|
align,
|
|
128
128
|
childAnimationName,
|
|
129
129
|
isHtmlContent,
|
|
130
|
-
scroll
|
|
130
|
+
scroll,
|
|
131
|
+
isDefaultFocus
|
|
131
132
|
} = this.props;
|
|
132
133
|
const {
|
|
133
134
|
LookupProps = {},
|
|
@@ -164,7 +165,8 @@ export default class AlertLookup extends Component {
|
|
|
164
165
|
wrap: "wrap"
|
|
165
166
|
}, /*#__PURE__*/React.createElement(Section, {
|
|
166
167
|
alignBox: "row",
|
|
167
|
-
className: style.section
|
|
168
|
+
className: style.section,
|
|
169
|
+
onClose: onCancelClick
|
|
168
170
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
169
171
|
alignBox: "column"
|
|
170
172
|
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, _extends({
|
|
@@ -197,8 +199,11 @@ export default class AlertLookup extends Component {
|
|
|
197
199
|
text: submitText,
|
|
198
200
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
|
|
199
201
|
onClick: onSubmitClick,
|
|
200
|
-
palette: buttonPalette
|
|
201
|
-
|
|
202
|
+
palette: buttonPalette // getRef={this.getButtonRef}
|
|
203
|
+
,
|
|
204
|
+
customProps: {
|
|
205
|
+
'data-a11y-autofocus': isDefaultFocus
|
|
206
|
+
}
|
|
202
207
|
}, PrimaryButtonProps)), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
|
|
203
208
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
|
|
204
209
|
text: cancelText,
|
|
@@ -169,7 +169,9 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
|
|
|
169
169
|
},
|
|
170
170
|
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
171
171
|
getRef: getContainerRef,
|
|
172
|
-
popupGroup: popupGroup
|
|
172
|
+
popupGroup: popupGroup,
|
|
173
|
+
needFocusScope: true,
|
|
174
|
+
onClose: this.handleTogglePopup
|
|
173
175
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
174
176
|
flexible: true,
|
|
175
177
|
shrink: true,
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -33,6 +33,8 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
|
|
|
33
33
|
|
|
34
34
|
var _DrawerModule = _interopRequireDefault(require("./Drawer.module.css"));
|
|
35
35
|
|
|
36
|
+
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
37
|
+
|
|
36
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
39
|
|
|
38
40
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -228,6 +230,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
228
230
|
_this.drawers = _this.drawers.bind(_assertThisInitialized(_this));
|
|
229
231
|
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
230
232
|
_this.getNextIndex = (0, _ZindexProvider.getZIndex)(_assertThisInitialized(_this));
|
|
233
|
+
_this.createRef = /*#__PURE__*/_react["default"].createRef();
|
|
231
234
|
return _this;
|
|
232
235
|
}
|
|
233
236
|
|
|
@@ -267,14 +270,25 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
|
|
|
267
270
|
}
|
|
268
271
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
269
272
|
flexible: true
|
|
270
|
-
}, subDrawerChildren))))) : null, /*#__PURE__*/_react["default"].createElement(
|
|
271
|
-
|
|
273
|
+
}, subDrawerChildren))))) : null, /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
274
|
+
elementRef: this.createRef,
|
|
275
|
+
autoFocus: true,
|
|
276
|
+
focusTabLoop: true,
|
|
277
|
+
restoreFocus: true
|
|
278
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
279
|
+
className: "".concat(_DrawerModule["default"].container, " ").concat(_DrawerModule["default"].columns, " ").concat(_DrawerModule["default"].drawerModal, " ").concat(uptoTablet ? _DrawerModule["default"].mbleSize : _DrawerModule["default"][size]),
|
|
280
|
+
"data-a11y-focus-class": _DrawerModule["default"].focusStyle,
|
|
281
|
+
tabindex: -1,
|
|
282
|
+
eleRef: this.createRef
|
|
272
283
|
}, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
|
|
273
284
|
onClick: function onClick(e) {
|
|
274
285
|
e && e.stopPropagation && e.stopPropagation();
|
|
275
286
|
onBodyClick(e);
|
|
287
|
+
},
|
|
288
|
+
customProps: {
|
|
289
|
+
tabindex: -1
|
|
276
290
|
}
|
|
277
|
-
}, childrenWithProps)));
|
|
291
|
+
}, childrenWithProps))));
|
|
278
292
|
}
|
|
279
293
|
}, {
|
|
280
294
|
key: "responsiveFunc",
|
|
@@ -36,18 +36,20 @@
|
|
|
36
36
|
[dir=rtl] .thread_xsmall_pos {
|
|
37
37
|
left: calc(var(--zd_size5) * -1);
|
|
38
38
|
}
|
|
39
|
+
|
|
39
40
|
.thread_small_pos {
|
|
40
41
|
top: calc(var(--zd_size3) * -1);
|
|
41
42
|
height: var(--zd_size12);
|
|
42
43
|
width: var(--zd_size12);
|
|
43
44
|
}
|
|
45
|
+
|
|
44
46
|
[dir=ltr] .thread_small_pos {
|
|
45
47
|
right: calc(var(--zd_size6) * -1);
|
|
46
48
|
}
|
|
49
|
+
|
|
47
50
|
[dir=rtl] .thread_small_pos {
|
|
48
51
|
left: calc(var(--zd_size6) * -1);
|
|
49
52
|
}
|
|
50
|
-
|
|
51
53
|
.thread_small_pos i {
|
|
52
54
|
font-size: var(--zd_font_size8);
|
|
53
55
|
}
|
|
@@ -133,9 +135,6 @@
|
|
|
133
135
|
.border_default {
|
|
134
136
|
border: 1px solid var(--zdt_avatarthread_default_border);
|
|
135
137
|
}
|
|
136
|
-
.border_orange {
|
|
137
|
-
border: 1px solid var(--zdt_avatarthread_orange_border);
|
|
138
|
-
}
|
|
139
138
|
|
|
140
139
|
.hover .thread {
|
|
141
140
|
display: none;
|
|
@@ -162,6 +161,3 @@
|
|
|
162
161
|
.text_default {
|
|
163
162
|
color: var(--zdt_avatarthread_default_text);
|
|
164
163
|
}
|
|
165
|
-
.text_orange {
|
|
166
|
-
color: var(--zdt_avatarthread_orange_text);
|
|
167
|
-
}
|
|
@@ -112,16 +112,6 @@ var AvatarThread__default = /*#__PURE__*/function (_Component) {
|
|
|
112
112
|
iconSize: "14",
|
|
113
113
|
iconColor: "default",
|
|
114
114
|
borderPalette: "default"
|
|
115
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
-
style: margin
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(_AvatarThread["default"], {
|
|
118
|
-
src: "https://contacts.zoho.com/file?ID=8237519&exp=6000&t=user&fs=thumb",
|
|
119
|
-
name: "Bharathikannan",
|
|
120
|
-
size: "medium",
|
|
121
|
-
iconName: "ZD-TK-in",
|
|
122
|
-
iconSize: "14",
|
|
123
|
-
iconColor: "orange",
|
|
124
|
-
borderPalette: "orange"
|
|
125
115
|
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", {
|
|
126
116
|
style: margin
|
|
127
117
|
}, "Icon Color"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -142,15 +132,6 @@ var AvatarThread__default = /*#__PURE__*/function (_Component) {
|
|
|
142
132
|
iconName: "ZD-chFacebook",
|
|
143
133
|
iconSize: "10",
|
|
144
134
|
iconColor: "danger"
|
|
145
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
|
-
style: margin
|
|
147
|
-
}, /*#__PURE__*/_react["default"].createElement(_AvatarThread["default"], {
|
|
148
|
-
src: "https://contacts.zoho.com/file?ID=8237519&exp=6000&t=user&fs=thumb",
|
|
149
|
-
name: "Bharathikannan",
|
|
150
|
-
size: "medium",
|
|
151
|
-
iconName: "ZD-chFacebook",
|
|
152
|
-
iconSize: "10",
|
|
153
|
-
iconColor: "orange"
|
|
154
135
|
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("p", {
|
|
155
136
|
style: margin
|
|
156
137
|
}, "Size"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -10,7 +10,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
12
|
var propTypes = {
|
|
13
|
-
borderPalette: _propTypes["default"].oneOfType(['primary', 'success', 'danger', 'default'
|
|
13
|
+
borderPalette: _propTypes["default"].oneOfType(['primary', 'success', 'danger', 'default']),
|
|
14
14
|
customTextClass: _propTypes["default"].string,
|
|
15
15
|
dataId: _propTypes["default"].string,
|
|
16
16
|
iconColor: _propTypes["default"].string,
|
|
@@ -430,22 +430,24 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
430
430
|
break;
|
|
431
431
|
|
|
432
432
|
case 13:
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
433
|
+
{
|
|
434
|
+
var selectedId = optionsArr[selectedIndex][idName] || '';
|
|
435
|
+
onClick && onClick(selectedId, optionsArr[selectedIndex]);
|
|
436
|
+
|
|
437
|
+
if (!preventPopupClose) {
|
|
438
|
+
togglePopup(e, boxPosition);
|
|
439
|
+
} else if (isSearch) {
|
|
440
|
+
this.searchInput.focus({
|
|
441
|
+
preventScroll: true
|
|
442
|
+
});
|
|
443
|
+
} else {
|
|
444
|
+
this.hiddenInput.focus({
|
|
445
|
+
preventScroll: true
|
|
446
|
+
});
|
|
447
|
+
}
|
|
447
448
|
|
|
448
|
-
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
449
451
|
}
|
|
450
452
|
} else {
|
|
451
453
|
if (keyCode === 13 || keyCode === 40) {
|
|
@@ -115,7 +115,7 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
115
115
|
className: _LookupModule["default"].container,
|
|
116
116
|
dataId: "fldValue"
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
|
-
tabIndex: "
|
|
118
|
+
tabIndex: "-1",
|
|
119
119
|
role: role,
|
|
120
120
|
"aria-labelledby": ariaLabelledby,
|
|
121
121
|
"aria-describedby": ariaDescribedby,
|
|
@@ -15,6 +15,8 @@ var _Layout = require("@zohodesk/components/lib/Layout");
|
|
|
15
15
|
|
|
16
16
|
var _LookupSectionModule = _interopRequireDefault(require("./LookupSection.module.css"));
|
|
17
17
|
|
|
18
|
+
var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
|
|
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); }
|
|
@@ -47,9 +49,13 @@ var Section = /*#__PURE__*/function (_Component) {
|
|
|
47
49
|
var _super = _createSuper(Section);
|
|
48
50
|
|
|
49
51
|
function Section(props) {
|
|
52
|
+
var _this;
|
|
53
|
+
|
|
50
54
|
_classCallCheck(this, Section);
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
_this = _super.call(this, props);
|
|
57
|
+
_this.createRef = /*#__PURE__*/_react["default"].createRef();
|
|
58
|
+
return _this;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
_createClass(Section, [{
|
|
@@ -57,13 +63,23 @@ var Section = /*#__PURE__*/function (_Component) {
|
|
|
57
63
|
value: function render() {
|
|
58
64
|
var _this$props = this.props,
|
|
59
65
|
alignBox = _this$props.alignBox,
|
|
60
|
-
className = _this$props.className
|
|
61
|
-
|
|
66
|
+
className = _this$props.className,
|
|
67
|
+
onClose = _this$props.onClose;
|
|
68
|
+
return /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
69
|
+
focusTabLoop: true,
|
|
70
|
+
elementRef: this.createRef,
|
|
71
|
+
autoFocus: true,
|
|
72
|
+
restoreFocus: true,
|
|
73
|
+
focusClose: onClose
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
75
|
+
"data-a11y-focus-container": true,
|
|
76
|
+
tabindex: -1,
|
|
77
|
+
eleRef: this.createRef,
|
|
62
78
|
alignBox: alignBox,
|
|
63
|
-
className: "".concat(_LookupSectionModule["default"].section, " ").concat(className ? className :
|
|
79
|
+
className: "".concat(_LookupSectionModule["default"].section, " ").concat(className ? className : "")
|
|
64
80
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
65
81
|
flexible: true
|
|
66
|
-
}, this.props.children));
|
|
82
|
+
}, this.props.children)));
|
|
67
83
|
}
|
|
68
84
|
}]);
|
|
69
85
|
|
|
@@ -154,7 +154,9 @@ function GlobalNotificationUI(props) {
|
|
|
154
154
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
155
155
|
className: "".concat(_GlobalNotificationModule["default"].message, " ").concat(type ? _GlobalNotificationModule["default"][type] : ''),
|
|
156
156
|
"data-id": "show_".concat(type, "_message")
|
|
157
|
-
}, ExtraProps
|
|
157
|
+
}, ExtraProps, {
|
|
158
|
+
tabIndex: 0
|
|
159
|
+
}), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
158
160
|
className: "".concat(_GlobalNotificationModule["default"].container),
|
|
159
161
|
alignBox: "row",
|
|
160
162
|
isCover: false,
|
|
@@ -182,7 +182,8 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
182
182
|
align = _this$props2.align,
|
|
183
183
|
childAnimationName = _this$props2.childAnimationName,
|
|
184
184
|
isHtmlContent = _this$props2.isHtmlContent,
|
|
185
|
-
scroll = _this$props2.scroll
|
|
185
|
+
scroll = _this$props2.scroll,
|
|
186
|
+
isDefaultFocus = _this$props2.isDefaultFocus;
|
|
186
187
|
var _customProps$LookupPr = customProps.LookupProps,
|
|
187
188
|
LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
|
|
188
189
|
_customProps$AlertHea = customProps.AlertHeaderProps,
|
|
@@ -222,7 +223,8 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
222
223
|
wrap: "wrap"
|
|
223
224
|
}, /*#__PURE__*/_react["default"].createElement(_Section["default"], {
|
|
224
225
|
alignBox: "row",
|
|
225
|
-
className: _AlertLookupNewModule["default"].section
|
|
226
|
+
className: _AlertLookupNewModule["default"].section,
|
|
227
|
+
onClose: onCancelClick
|
|
226
228
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
227
229
|
alignBox: "column"
|
|
228
230
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_AlertHeader["default"], _extends({
|
|
@@ -255,8 +257,11 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
255
257
|
text: submitText,
|
|
256
258
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
|
|
257
259
|
onClick: onSubmitClick,
|
|
258
|
-
palette: buttonPalette
|
|
259
|
-
|
|
260
|
+
palette: buttonPalette // getRef={this.getButtonRef}
|
|
261
|
+
,
|
|
262
|
+
customProps: {
|
|
263
|
+
'data-a11y-autofocus': isDefaultFocus
|
|
264
|
+
}
|
|
260
265
|
}, PrimaryButtonProps)), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
261
266
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
|
|
262
267
|
text: cancelText,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-101",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"velocity-react": "1.4.3",
|
|
37
37
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
38
38
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
39
|
-
"@zohodesk/components": "1.0.0-
|
|
39
|
+
"@zohodesk/components": "1.0.0-temp-78",
|
|
40
40
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
41
41
|
"@zohodesk/svg": "1.0.0-beta.49",
|
|
42
42
|
"@zohodesk/virtualizer": "1.0.3",
|
|
43
|
-
"react-sortable-hoc": "^0.8.3"
|
|
43
|
+
"react-sortable-hoc": "^0.8.3",
|
|
44
|
+
"@zohodesk/a11y": "1.0.0-alpha-2"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"velocity-react": "1.4.3",
|