@instructure/ui-menu 8.9.2-snapshot.4 → 8.9.2-snapshot.7
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/es/Menu/MenuItem/index.js +1 -1
- package/es/Menu/MenuItemGroup/index.js +1 -1
- package/es/Menu/MenuItemSeparator/index.js +1 -1
- package/lib/Menu/MenuItem/index.js +1 -1
- package/lib/Menu/MenuItemGroup/index.js +1 -1
- package/lib/Menu/MenuItemSeparator/index.js +1 -1
- package/package.json +21 -21
- package/src/Menu/MenuItem/index.tsx +1 -1
- package/src/Menu/MenuItemGroup/index.tsx +1 -1
- package/src/Menu/MenuItemSeparator/index.tsx +1 -1
|
@@ -203,7 +203,7 @@ let MenuItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
203
203
|
onKeyUp = _this$props3.onKeyUp,
|
|
204
204
|
type = _this$props3.type,
|
|
205
205
|
href = _this$props3.href;
|
|
206
|
-
const props = omitProps(this.props, MenuItem.
|
|
206
|
+
const props = omitProps(this.props, MenuItem.allowedProps);
|
|
207
207
|
const ElementType = this.elementType;
|
|
208
208
|
return jsx(ElementType // eslint-disable-line jsx-a11y/mouse-events-have-key-events
|
|
209
209
|
, Object.assign({
|
|
@@ -168,7 +168,7 @@ let MenuItemGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
168
168
|
render() {
|
|
169
169
|
var _this$props$styles2, _this$props$styles3;
|
|
170
170
|
|
|
171
|
-
const props = omitProps(this.props, MenuItemGroup.
|
|
171
|
+
const props = omitProps(this.props, MenuItemGroup.allowedProps);
|
|
172
172
|
return jsx("span", Object.assign({}, props, {
|
|
173
173
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.menuItemGroup,
|
|
174
174
|
role: "presentation"
|
|
@@ -52,7 +52,7 @@ let MenuItemSeparator = (_dec = withStyle(generateStyle, generateComponentTheme)
|
|
|
52
52
|
render() {
|
|
53
53
|
var _this$props$styles;
|
|
54
54
|
|
|
55
|
-
const props = omitProps(this.props, MenuItemSeparator.
|
|
55
|
+
const props = omitProps(this.props, MenuItemSeparator.allowedProps);
|
|
56
56
|
return jsx("div", Object.assign({}, props, {
|
|
57
57
|
role: "presentation",
|
|
58
58
|
css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.menuItemSeparator
|
|
@@ -205,7 +205,7 @@ let MenuItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
205
205
|
onKeyUp = _this$props3.onKeyUp,
|
|
206
206
|
type = _this$props3.type,
|
|
207
207
|
href = _this$props3.href;
|
|
208
|
-
const props = (0, _omitProps.omitProps)(this.props, MenuItem.
|
|
208
|
+
const props = (0, _omitProps.omitProps)(this.props, MenuItem.allowedProps);
|
|
209
209
|
const ElementType = this.elementType;
|
|
210
210
|
return (0, _emotion.jsx)(ElementType // eslint-disable-line jsx-a11y/mouse-events-have-key-events
|
|
211
211
|
, Object.assign({
|
|
@@ -167,7 +167,7 @@ let MenuItemGroup = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defa
|
|
|
167
167
|
render() {
|
|
168
168
|
var _this$props$styles2, _this$props$styles3;
|
|
169
169
|
|
|
170
|
-
const props = (0, _omitProps.omitProps)(this.props, MenuItemGroup.
|
|
170
|
+
const props = (0, _omitProps.omitProps)(this.props, MenuItemGroup.allowedProps);
|
|
171
171
|
return (0, _emotion.jsx)("span", Object.assign({}, props, {
|
|
172
172
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.menuItemGroup,
|
|
173
173
|
role: "presentation"
|
|
@@ -42,7 +42,7 @@ let MenuItemSeparator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.
|
|
|
42
42
|
render() {
|
|
43
43
|
var _this$props$styles;
|
|
44
44
|
|
|
45
|
-
const props = (0, _omitProps.omitProps)(this.props, MenuItemSeparator.
|
|
45
|
+
const props = (0, _omitProps.omitProps)(this.props, MenuItemSeparator.allowedProps);
|
|
46
46
|
return (0, _emotion.jsx)("div", Object.assign({}, props, {
|
|
47
47
|
role: "presentation",
|
|
48
48
|
css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.menuItemSeparator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-menu",
|
|
3
|
-
"version": "8.9.2-snapshot.
|
|
3
|
+
"version": "8.9.2-snapshot.7+1a56581cd",
|
|
4
4
|
"description": "A dropdown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.9.2-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.9.2-snapshot.
|
|
29
|
-
"@instructure/ui-test-locator": "8.9.2-snapshot.
|
|
30
|
-
"@instructure/ui-test-queries": "8.9.2-snapshot.
|
|
31
|
-
"@instructure/ui-test-utils": "8.9.2-snapshot.
|
|
32
|
-
"@instructure/ui-themes": "8.9.2-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.9.2-snapshot.7+1a56581cd",
|
|
28
|
+
"@instructure/ui-color-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
29
|
+
"@instructure/ui-test-locator": "8.9.2-snapshot.7+1a56581cd",
|
|
30
|
+
"@instructure/ui-test-queries": "8.9.2-snapshot.7+1a56581cd",
|
|
31
|
+
"@instructure/ui-test-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
32
|
+
"@instructure/ui-themes": "8.9.2-snapshot.7+1a56581cd"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.13.10",
|
|
36
|
-
"@instructure/console": "8.9.2-snapshot.
|
|
37
|
-
"@instructure/emotion": "8.9.2-snapshot.
|
|
38
|
-
"@instructure/shared-types": "8.9.2-snapshot.
|
|
39
|
-
"@instructure/ui-a11y-utils": "8.9.2-snapshot.
|
|
40
|
-
"@instructure/ui-dom-utils": "8.9.2-snapshot.
|
|
41
|
-
"@instructure/ui-icons": "8.9.2-snapshot.
|
|
42
|
-
"@instructure/ui-popover": "8.9.2-snapshot.
|
|
43
|
-
"@instructure/ui-position": "8.9.2-snapshot.
|
|
44
|
-
"@instructure/ui-prop-types": "8.9.2-snapshot.
|
|
45
|
-
"@instructure/ui-react-utils": "8.9.2-snapshot.
|
|
46
|
-
"@instructure/ui-testable": "8.9.2-snapshot.
|
|
47
|
-
"@instructure/ui-utils": "8.9.2-snapshot.
|
|
48
|
-
"@instructure/uid": "8.9.2-snapshot.
|
|
36
|
+
"@instructure/console": "8.9.2-snapshot.7+1a56581cd",
|
|
37
|
+
"@instructure/emotion": "8.9.2-snapshot.7+1a56581cd",
|
|
38
|
+
"@instructure/shared-types": "8.9.2-snapshot.7+1a56581cd",
|
|
39
|
+
"@instructure/ui-a11y-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
40
|
+
"@instructure/ui-dom-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
41
|
+
"@instructure/ui-icons": "8.9.2-snapshot.7+1a56581cd",
|
|
42
|
+
"@instructure/ui-popover": "8.9.2-snapshot.7+1a56581cd",
|
|
43
|
+
"@instructure/ui-position": "8.9.2-snapshot.7+1a56581cd",
|
|
44
|
+
"@instructure/ui-prop-types": "8.9.2-snapshot.7+1a56581cd",
|
|
45
|
+
"@instructure/ui-react-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
46
|
+
"@instructure/ui-testable": "8.9.2-snapshot.7+1a56581cd",
|
|
47
|
+
"@instructure/ui-utils": "8.9.2-snapshot.7+1a56581cd",
|
|
48
|
+
"@instructure/uid": "8.9.2-snapshot.7+1a56581cd",
|
|
49
49
|
"keycode": "^2",
|
|
50
50
|
"prop-types": "^15"
|
|
51
51
|
},
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"sideEffects": false,
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
|
|
60
60
|
}
|
|
@@ -227,7 +227,7 @@ class MenuItem extends Component<MenuItemProps> {
|
|
|
227
227
|
render() {
|
|
228
228
|
const { disabled, controls, onKeyDown, onKeyUp, type, href } = this.props
|
|
229
229
|
|
|
230
|
-
const props = omitProps(this.props, MenuItem.
|
|
230
|
+
const props = omitProps(this.props, MenuItem.allowedProps)
|
|
231
231
|
const ElementType = this.elementType
|
|
232
232
|
|
|
233
233
|
return (
|