@instructure/ui-menu 8.9.2-snapshot.1 → 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.
@@ -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.propTypes);
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.propTypes);
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.propTypes);
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.propTypes);
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.propTypes);
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.propTypes);
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.1+11d97b23e",
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.1+11d97b23e",
28
- "@instructure/ui-color-utils": "8.9.2-snapshot.1+11d97b23e",
29
- "@instructure/ui-test-locator": "8.9.2-snapshot.1+11d97b23e",
30
- "@instructure/ui-test-queries": "8.9.2-snapshot.1+11d97b23e",
31
- "@instructure/ui-test-utils": "8.9.2-snapshot.1+11d97b23e",
32
- "@instructure/ui-themes": "8.9.2-snapshot.1+11d97b23e"
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.1+11d97b23e",
37
- "@instructure/emotion": "8.9.2-snapshot.1+11d97b23e",
38
- "@instructure/shared-types": "8.9.2-snapshot.1+11d97b23e",
39
- "@instructure/ui-a11y-utils": "8.9.2-snapshot.1+11d97b23e",
40
- "@instructure/ui-dom-utils": "8.9.2-snapshot.1+11d97b23e",
41
- "@instructure/ui-icons": "8.9.2-snapshot.1+11d97b23e",
42
- "@instructure/ui-popover": "8.9.2-snapshot.1+11d97b23e",
43
- "@instructure/ui-position": "8.9.2-snapshot.1+11d97b23e",
44
- "@instructure/ui-prop-types": "8.9.2-snapshot.1+11d97b23e",
45
- "@instructure/ui-react-utils": "8.9.2-snapshot.1+11d97b23e",
46
- "@instructure/ui-testable": "8.9.2-snapshot.1+11d97b23e",
47
- "@instructure/ui-utils": "8.9.2-snapshot.1+11d97b23e",
48
- "@instructure/uid": "8.9.2-snapshot.1+11d97b23e",
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": "11d97b23ea6f8360db54acd61c9caf51d787354b"
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.propTypes)
230
+ const props = omitProps(this.props, MenuItem.allowedProps)
231
231
  const ElementType = this.elementType
232
232
 
233
233
  return (
@@ -232,7 +232,7 @@ class MenuItemGroup extends Component<MenuGroupProps> {
232
232
  }
233
233
 
234
234
  render() {
235
- const props = omitProps(this.props, MenuItemGroup.propTypes)
235
+ const props = omitProps(this.props, MenuItemGroup.allowedProps)
236
236
  return (
237
237
  <span
238
238
  {...props}
@@ -61,7 +61,7 @@ class MenuItemSeparator extends Component<MenuSeparatorProps> {
61
61
  }
62
62
 
63
63
  render() {
64
- const props = omitProps(this.props, MenuItemSeparator.propTypes)
64
+ const props = omitProps(this.props, MenuItemSeparator.allowedProps)
65
65
  return (
66
66
  <div
67
67
  {...props}