@zohodesk/dot 1.0.0-beta.270 → 1.0.0-beta.271
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 +6 -0
- package/es/Drawer/Drawer.js +19 -6
- package/es/Drawer/props/defaultProps.js +2 -1
- package/es/Drawer/props/propTypes.js +2 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +168 -210
- package/es/list/ListLayout/ListLayout.js +1 -1
- package/es/lookup/Lookup/Lookup.js +19 -6
- package/es/lookup/Lookup/props/defaultProps.js +2 -1
- package/es/lookup/Lookup/props/propTypes.js +2 -1
- package/lib/Drawer/Drawer.js +21 -6
- package/lib/Drawer/props/defaultProps.js +2 -1
- package/lib/Drawer/props/propTypes.js +2 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +258 -301
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +21 -6
- package/lib/lookup/Lookup/props/defaultProps.js +2 -1
- package/lib/lookup/Lookup/props/propTypes.js +2 -1
- package/package.json +3 -3
|
@@ -91,7 +91,7 @@ var ListLayout = /*#__PURE__*/function (_Component) {
|
|
|
91
91
|
"data-title": dataTitle,
|
|
92
92
|
tabIndex: "0",
|
|
93
93
|
role: role,
|
|
94
|
-
"data-a11y-
|
|
94
|
+
"data-a11y-inset-focus": true,
|
|
95
95
|
"aria-label": ariaLabel,
|
|
96
96
|
"aria-setsize": ariaSetsize,
|
|
97
97
|
"aria-posinset": ariaPosinset
|
|
@@ -99,18 +99,31 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
99
99
|
a11y = _this$props.a11y,
|
|
100
100
|
childAnimationName = _this$props.childAnimationName,
|
|
101
101
|
onClose = _this$props.onClose,
|
|
102
|
-
needFocusScope = _this$props.needFocusScope
|
|
102
|
+
needFocusScope = _this$props.needFocusScope,
|
|
103
|
+
customProps = _this$props.customProps;
|
|
103
104
|
var _a11y$role = a11y.role,
|
|
104
105
|
role = _a11y$role === void 0 ? 'dialog' : _a11y$role,
|
|
105
106
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
106
107
|
ariaDescribedby = a11y.ariaDescribedby,
|
|
107
108
|
_a11y$ariaModal = a11y.ariaModal,
|
|
108
109
|
ariaModal = _a11y$ariaModal === void 0 ? isActive ? true : undefined : _a11y$ariaModal;
|
|
110
|
+
var _customProps$focusSco = customProps.focusScopeProps,
|
|
111
|
+
focusScopeProps = _customProps$focusSco === void 0 ? {} : _customProps$focusSco;
|
|
112
|
+
var _focusScopeProps$auto = focusScopeProps.autoFocus,
|
|
113
|
+
autoFocus = _focusScopeProps$auto === void 0 ? true : _focusScopeProps$auto,
|
|
114
|
+
_focusScopeProps$rest = focusScopeProps.restoreFocus,
|
|
115
|
+
restoreFocus = _focusScopeProps$rest === void 0 ? true : _focusScopeProps$rest,
|
|
116
|
+
_focusScopeProps$need = focusScopeProps.needArrowLoop,
|
|
117
|
+
needArrowLoop = _focusScopeProps$need === void 0 ? false : _focusScopeProps$need,
|
|
118
|
+
_focusScopeProps$need2 = focusScopeProps.needTabLoop,
|
|
119
|
+
needTabLoop = _focusScopeProps$need2 === void 0 ? true : _focusScopeProps$need2,
|
|
120
|
+
_focusScopeProps$enab = focusScopeProps.enableEnterAction,
|
|
121
|
+
enableEnterAction = _focusScopeProps$enab === void 0 ? false : _focusScopeProps$enab;
|
|
109
122
|
|
|
110
123
|
var content = /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
124
|
ref: this.createRef,
|
|
112
125
|
tabIndex: "-1",
|
|
113
|
-
"data-a11y-
|
|
126
|
+
"data-a11y-need-focus-style": "false",
|
|
114
127
|
role: role,
|
|
115
128
|
"aria-labelledby": ariaLabelledby,
|
|
116
129
|
"aria-describedby": ariaDescribedby,
|
|
@@ -135,11 +148,13 @@ var Lookup = /*#__PURE__*/function (_Component) {
|
|
|
135
148
|
className: _LookupModule["default"].container,
|
|
136
149
|
dataId: "fldValue"
|
|
137
150
|
}, needFocusScope ? /*#__PURE__*/_react["default"].createElement(_FocusScope["default"], {
|
|
138
|
-
|
|
151
|
+
needTabLoop: needTabLoop,
|
|
152
|
+
needArrowLoop: needArrowLoop,
|
|
139
153
|
elementRef: this.createRef,
|
|
140
|
-
autoFocus:
|
|
141
|
-
restoreFocus:
|
|
142
|
-
|
|
154
|
+
autoFocus: autoFocus,
|
|
155
|
+
restoreFocus: restoreFocus,
|
|
156
|
+
onClose: onClose,
|
|
157
|
+
enableEnterAction: enableEnterAction
|
|
143
158
|
}, content) : content));
|
|
144
159
|
}
|
|
145
160
|
}]);
|
|
@@ -24,6 +24,7 @@ var propTypes = {
|
|
|
24
24
|
}),
|
|
25
25
|
onKeyDown: _propTypes["default"].func,
|
|
26
26
|
childAnimationName: _propTypes["default"].oneOf(['expand', 'flyDown']),
|
|
27
|
-
needFocusScope: _propTypes["default"].bool
|
|
27
|
+
needFocusScope: _propTypes["default"].bool,
|
|
28
|
+
customProps: _propTypes["default"].object
|
|
28
29
|
};
|
|
29
30
|
exports.propTypes = propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.271",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@zohodesk-private/css-variable-migrator": "^1.0.5",
|
|
49
49
|
"@zohodesk-private/node-plugins": "^1.0.0",
|
|
50
|
-
"@zohodesk/a11y": "
|
|
51
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
50
|
+
"@zohodesk/a11y": "2.0.0",
|
|
51
|
+
"@zohodesk/components": "1.0.0-alpha-277",
|
|
52
52
|
"@zohodesk/i18n": "1.0.0-beta.23",
|
|
53
53
|
"@zohodesk/icons": "1.0.0-beta.132",
|
|
54
54
|
"@zohodesk/svg": "1.0.0-beta.59",
|