@instructure/ui-menu 11.7.10 → 11.7.11-pr-snapshot-1794840116362

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/es/Menu/v1/MenuItem/index.js +180 -223
  3. package/es/Menu/v1/MenuItem/props.js +19 -26
  4. package/es/Menu/v1/MenuItem/styles.js +90 -133
  5. package/es/Menu/v1/MenuItem/theme.js +30 -64
  6. package/es/Menu/v1/MenuItemGroup/index.js +141 -166
  7. package/es/Menu/v1/MenuItemGroup/props.js +14 -26
  8. package/es/Menu/v1/MenuItemGroup/styles.js +25 -59
  9. package/es/Menu/v1/MenuItemGroup/theme.js +20 -54
  10. package/es/Menu/v1/MenuItemSeparator/index.js +35 -61
  11. package/es/Menu/v1/MenuItemSeparator/props.js +1 -28
  12. package/es/Menu/v1/MenuItemSeparator/styles.js +11 -45
  13. package/es/Menu/v1/MenuItemSeparator/theme.js +11 -44
  14. package/es/Menu/v1/index.js +320 -378
  15. package/es/Menu/v1/props.js +31 -26
  16. package/es/Menu/v1/styles.js +40 -74
  17. package/es/Menu/v1/theme.js +16 -49
  18. package/es/Menu/v2/MenuItem/index.js +199 -252
  19. package/es/Menu/v2/MenuItem/props.js +19 -26
  20. package/es/Menu/v2/MenuItem/styles.js +103 -147
  21. package/es/Menu/v2/MenuItemGroup/index.js +141 -166
  22. package/es/Menu/v2/MenuItemGroup/props.js +14 -26
  23. package/es/Menu/v2/MenuItemGroup/styles.js +25 -59
  24. package/es/Menu/v2/MenuItemSeparator/index.js +35 -61
  25. package/es/Menu/v2/MenuItemSeparator/props.js +1 -28
  26. package/es/Menu/v2/MenuItemSeparator/styles.js +11 -45
  27. package/es/Menu/v2/index.js +320 -378
  28. package/es/Menu/v2/props.js +31 -26
  29. package/es/Menu/v2/styles.js +22 -57
  30. package/es/exports/a.js +1 -24
  31. package/es/exports/b.js +1 -24
  32. package/es/utils/v1/MenuContext.js +4 -36
  33. package/package.json +18 -24
  34. package/src/Menu/v1/MenuItem/index.tsx +6 -3
  35. package/src/Menu/v1/MenuItemGroup/index.tsx +9 -3
  36. package/src/Menu/v1/MenuItemSeparator/index.tsx +7 -2
  37. package/src/Menu/v1/index.tsx +6 -3
  38. package/src/Menu/v2/MenuItem/index.tsx +6 -3
  39. package/src/Menu/v2/MenuItemGroup/index.tsx +9 -3
  40. package/src/Menu/v2/MenuItemSeparator/index.tsx +4 -2
  41. package/src/Menu/v2/index.tsx +4 -3
  42. package/tsconfig.build.json +0 -1
  43. package/tsconfig.build.tsbuildinfo +1 -1
  44. package/types/Menu/v1/MenuItem/index.d.ts +3 -1
  45. package/types/Menu/v1/MenuItem/index.d.ts.map +1 -1
  46. package/types/Menu/v1/MenuItemGroup/index.d.ts +3 -1
  47. package/types/Menu/v1/MenuItemGroup/index.d.ts.map +1 -1
  48. package/types/Menu/v1/MenuItemSeparator/index.d.ts +3 -1
  49. package/types/Menu/v1/MenuItemSeparator/index.d.ts.map +1 -1
  50. package/types/Menu/v1/index.d.ts +7 -5
  51. package/types/Menu/v1/index.d.ts.map +1 -1
  52. package/types/Menu/v2/MenuItem/index.d.ts +3 -1
  53. package/types/Menu/v2/MenuItem/index.d.ts.map +1 -1
  54. package/types/Menu/v2/MenuItemGroup/index.d.ts +3 -1
  55. package/types/Menu/v2/MenuItemGroup/index.d.ts.map +1 -1
  56. package/types/Menu/v2/MenuItemSeparator/index.d.ts +3 -1
  57. package/types/Menu/v2/MenuItemSeparator/index.d.ts.map +1 -1
  58. package/types/Menu/v2/index.d.ts +7 -5
  59. package/types/Menu/v2/index.d.ts.map +1 -1
  60. package/lib/Menu/v1/MenuItem/index.js +0 -241
  61. package/lib/Menu/v1/MenuItem/props.js +0 -31
  62. package/lib/Menu/v1/MenuItem/styles.js +0 -142
  63. package/lib/Menu/v1/MenuItem/theme.js +0 -71
  64. package/lib/Menu/v1/MenuItemGroup/index.js +0 -188
  65. package/lib/Menu/v1/MenuItemGroup/props.js +0 -31
  66. package/lib/Menu/v1/MenuItemGroup/styles.js +0 -66
  67. package/lib/Menu/v1/MenuItemGroup/theme.js +0 -61
  68. package/lib/Menu/v1/MenuItemSeparator/index.js +0 -73
  69. package/lib/Menu/v1/MenuItemSeparator/props.js +0 -34
  70. package/lib/Menu/v1/MenuItemSeparator/styles.js +0 -52
  71. package/lib/Menu/v1/MenuItemSeparator/theme.js +0 -51
  72. package/lib/Menu/v1/index.js +0 -436
  73. package/lib/Menu/v1/props.js +0 -31
  74. package/lib/Menu/v1/styles.js +0 -82
  75. package/lib/Menu/v1/theme.js +0 -56
  76. package/lib/Menu/v2/MenuItem/index.js +0 -281
  77. package/lib/Menu/v2/MenuItem/props.js +0 -31
  78. package/lib/Menu/v2/MenuItem/styles.js +0 -154
  79. package/lib/Menu/v2/MenuItemGroup/index.js +0 -187
  80. package/lib/Menu/v2/MenuItemGroup/props.js +0 -31
  81. package/lib/Menu/v2/MenuItemGroup/styles.js +0 -66
  82. package/lib/Menu/v2/MenuItemSeparator/index.js +0 -72
  83. package/lib/Menu/v2/MenuItemSeparator/props.js +0 -34
  84. package/lib/Menu/v2/MenuItemSeparator/styles.js +0 -52
  85. package/lib/Menu/v2/index.js +0 -435
  86. package/lib/Menu/v2/props.js +0 -31
  87. package/lib/Menu/v2/styles.js +0 -64
  88. package/lib/exports/a.js +0 -30
  89. package/lib/exports/b.js +0 -30
  90. package/lib/package.json +0 -1
  91. package/lib/utils/v1/MenuContext.js +0 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [11.7.11-pr-snapshot-1794840116362](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-pr-snapshot-1794840116362) (2026-11-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([9c2e562](https://github.com/instructure/instructure-ui/commit/9c2e5629e7c509fdfc0d1770d1b81e70e60e083b))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.10](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.10) (2026-10-14)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-menu
@@ -1,28 +1,4 @@
1
- var _dec, _dec2, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
26
2
  import { Component } from 'react';
27
3
  import keycode from 'keycode';
28
4
  import { IconCheckSolid, IconArrowOpenEndSolid } from '@instructure/ui-icons';
@@ -34,203 +10,184 @@ import { MenuContext } from '../../../utils/v1/MenuContext.js';
34
10
  import generateStyle from './styles.js';
35
11
  import generateComponentTheme from './theme.js';
36
12
  import { allowedProps } from './props.js';
37
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
38
- /**
39
- ---
40
- parent: Menu
41
- id: Menu.Item
42
- ---
43
- **/
44
- let MenuItem = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class MenuItem extends Component {
45
- static displayName = 'MenuItem';
46
- static componentId = 'Menu.Item';
47
- static allowedProps = allowedProps;
48
- static defaultProps = {
49
- type: 'button',
50
- disabled: false
51
- };
52
- static contextType = MenuContext;
53
- constructor(props) {
54
- super(props);
55
- if (typeof props.selected === 'undefined') {
56
- this.state = {
57
- selected: !!props.defaultSelected
58
- };
59
- }
60
- this.labelId = props.deterministicId('MenuItem__label');
61
- }
62
- get _node() {
63
- return this.ref;
64
- }
65
- labelId;
66
- ref = null;
67
- handleRef = el => {
68
- this.ref = el;
69
- };
70
- componentDidMount() {
71
- this.props.makeStyles?.();
72
- const context = this.context;
73
- if (context && context.registerMenuItem) {
74
- context.registerMenuItem(this);
75
- }
76
- }
77
- componentDidUpdate() {
78
- this.props.makeStyles?.();
79
- }
80
- componentWillUnmount() {
81
- const context = this.context;
82
- if (context && context.removeMenuItem) {
83
- context.removeMenuItem(this);
84
- }
85
- }
86
- handleClick = e => {
87
- const {
88
- onSelect,
89
- onClick,
90
- disabled,
91
- value
92
- } = this.props;
93
- const selected = !this.selected;
94
- if (disabled) {
95
- e.preventDefault();
96
- return;
97
- }
98
- if (typeof this.props.selected === 'undefined') {
99
- this.setState({
100
- selected
101
- });
102
- }
103
- if (typeof onSelect === 'function') {
104
- e.persist();
105
- onSelect(e, value, selected, this);
106
- }
107
- if (typeof onClick === 'function') {
108
- onClick(e);
109
- }
110
- };
111
- handleKeyDown = e => {
112
- const spaceKey = e.keyCode === keycode.codes.space;
113
- const enterKey = e.keyCode === keycode.codes.enter;
114
- if (spaceKey || enterKey) {
115
- e.preventDefault();
116
- e.stopPropagation();
117
- if (enterKey) {
118
- // handle space key on keyUp for FF
119
- const refNode = findDOMNode(this.ref);
120
- refNode.click();
121
- }
122
- }
123
- };
124
- handleKeyUp = e => {
125
- const spaceKey = e.keyCode === keycode.codes.space;
126
- const enterKey = e.keyCode === keycode.codes.enter;
127
- if (spaceKey || enterKey) {
128
- e.preventDefault();
129
- e.stopPropagation();
130
- if (spaceKey) {
13
+ export class MenuItemBase extends Component {
14
+ static{
15
+ this.displayName = 'MenuItem';
16
+ }
17
+ static{
18
+ this.componentId = 'Menu.Item';
19
+ }
20
+ static{
21
+ this.allowedProps = allowedProps;
22
+ }
23
+ static{
24
+ this.defaultProps = {
25
+ type: 'button',
26
+ disabled: false
27
+ };
28
+ }
29
+ static{
30
+ this.contextType = MenuContext;
31
+ }
32
+ constructor(props){
33
+ super(props), this.ref = null, this.handleRef = (el)=>{
34
+ this.ref = el;
35
+ }, this.handleClick = (e)=>{
36
+ const { onSelect, onClick, disabled, value } = this.props;
37
+ const selected = !this.selected;
38
+ if (disabled) {
39
+ e.preventDefault();
40
+ return;
41
+ }
42
+ if (typeof this.props.selected === 'undefined') {
43
+ this.setState({
44
+ selected
45
+ });
46
+ }
47
+ if (typeof onSelect === 'function') {
48
+ e.persist();
49
+ onSelect(e, value, selected, this);
50
+ }
51
+ if (typeof onClick === 'function') {
52
+ onClick(e);
53
+ }
54
+ }, this.handleKeyDown = (e)=>{
55
+ const spaceKey = e.keyCode === keycode.codes.space;
56
+ const enterKey = e.keyCode === keycode.codes.enter;
57
+ if (spaceKey || enterKey) {
58
+ e.preventDefault();
59
+ e.stopPropagation();
60
+ if (enterKey) {
61
+ const refNode = findDOMNode(this.ref);
62
+ refNode.click();
63
+ }
64
+ }
65
+ }, this.handleKeyUp = (e)=>{
66
+ const spaceKey = e.keyCode === keycode.codes.space;
67
+ const enterKey = e.keyCode === keycode.codes.enter;
68
+ if (spaceKey || enterKey) {
69
+ e.preventDefault();
70
+ e.stopPropagation();
71
+ if (spaceKey) {
72
+ const refNode = findDOMNode(this.ref);
73
+ refNode.click();
74
+ }
75
+ }
76
+ }, this.handleMouseOver = (event)=>{
77
+ if (!this.focused) {
78
+ this.focus();
79
+ }
80
+ if (typeof this.props.onMouseOver === 'function') {
81
+ this.props.onMouseOver(event, this);
82
+ }
83
+ };
84
+ if (typeof props.selected === 'undefined') {
85
+ this.state = {
86
+ selected: !!props.defaultSelected
87
+ };
88
+ }
89
+ this.labelId = props.deterministicId('MenuItem__label');
90
+ }
91
+ get _node() {
92
+ void 0;
93
+ return this.ref;
94
+ }
95
+ componentDidMount() {
96
+ this.props.makeStyles?.();
97
+ const context = this.context;
98
+ if (context && context.registerMenuItem) {
99
+ context.registerMenuItem(this);
100
+ }
101
+ }
102
+ componentDidUpdate() {
103
+ this.props.makeStyles?.();
104
+ }
105
+ componentWillUnmount() {
106
+ const context = this.context;
107
+ if (context && context.removeMenuItem) {
108
+ context.removeMenuItem(this);
109
+ }
110
+ }
111
+ get elementType() {
112
+ return getElementType(MenuItem, this.props);
113
+ }
114
+ get role() {
115
+ switch(this.props.type){
116
+ case 'checkbox':
117
+ return 'menuitemcheckbox';
118
+ case 'radio':
119
+ return 'menuitemradio';
120
+ default:
121
+ return 'menuitem';
122
+ }
123
+ }
124
+ get selected() {
125
+ return typeof this.props.selected === 'undefined' ? this.state.selected : this.props.selected;
126
+ }
127
+ get focused() {
128
+ return isActiveElement(this.ref);
129
+ }
130
+ focus() {
131
131
  const refNode = findDOMNode(this.ref);
132
- refNode.click();
133
- }
134
- }
135
- };
136
- handleMouseOver = event => {
137
- if (!this.focused) {
138
- this.focus();
139
- }
140
- if (typeof this.props.onMouseOver === 'function') {
141
- this.props.onMouseOver(event, this);
142
- }
143
- };
144
- get elementType() {
145
- return getElementType(MenuItem, this.props);
146
- }
147
- get role() {
148
- switch (this.props.type) {
149
- case 'checkbox':
150
- return 'menuitemcheckbox';
151
- case 'radio':
152
- return 'menuitemradio';
153
- default:
154
- return 'menuitem';
155
- }
156
- }
157
- get selected() {
158
- return typeof this.props.selected === 'undefined' ? this.state.selected : this.props.selected;
159
- }
160
- get focused() {
161
- return isActiveElement(this.ref);
162
- }
163
- focus() {
164
- const refNode = findDOMNode(this.ref);
165
- refNode.focus();
166
- }
167
- renderContent() {
168
- const {
169
- children,
170
- type,
171
- renderLabelInfo
172
- } = this.props;
173
- return _jsxs("span", {
174
- children: [(type === 'checkbox' || type === 'radio') && _jsx("span", {
175
- css: this.props.styles?.icon,
176
- children: this.selected && _jsx(IconCheckSolid, {})
177
- }), _jsx("span", {
178
- css: this.props.styles?.label,
179
- id: this.labelId,
180
- children: children
181
- }), type === 'flyout' && _jsx("span", {
182
- css: this.props.styles?.icon,
183
- children: _jsx(IconArrowOpenEndSolid, {})
184
- }), renderLabelInfo && _jsx("span", {
185
- css: this.props.styles?.labelInfo,
186
- children: callRenderProp(renderLabelInfo)
187
- })]
188
- });
189
- }
190
- render() {
191
- const {
192
- disabled,
193
- controls,
194
- onKeyDown,
195
- onKeyUp,
196
- type,
197
- href: rawHref,
198
- target
199
- } = this.props;
200
- const props = omitProps(this.props, MenuItem.allowedProps);
201
- const ElementType = this.elementType;
202
- const {
203
- href,
204
- rel
205
- } = safeLinkProps({
206
- tag: typeof ElementType === 'string' ? ElementType : 'a',
207
- attr: 'href',
208
- href: rawHref,
209
- target,
210
- rel: this.props.rel
211
- });
212
- return _jsx(ElementType, {
213
- tabIndex: -1 // note: tabIndex can be overridden by Menu or MenuItemGroup components
214
- ,
215
- ...props,
216
- href: href,
217
- target: target,
218
- rel: rel,
219
- role: this.role,
220
- "aria-labelledby": this.labelId,
221
- "aria-disabled": disabled ? 'true' : undefined,
222
- "aria-controls": controls,
223
- "aria-checked": type === 'checkbox' || type === 'radio' ? this.selected ? 'true' : 'false' : undefined,
224
- onClick: this.handleClick,
225
- onKeyUp: createChainedFunction(onKeyUp, this.handleKeyUp),
226
- onKeyDown: createChainedFunction(onKeyDown, this.handleKeyDown),
227
- ref: this.handleRef,
228
- css: this.props.styles?.menuItem,
229
- onMouseOver: this.handleMouseOver,
230
- "data-cid": "MenuItem",
231
- children: this.renderContent()
232
- });
233
- }
234
- }) || _class) || _class);
132
+ refNode.focus();
133
+ }
134
+ renderContent() {
135
+ const { children, type, renderLabelInfo } = this.props;
136
+ return /*#__PURE__*/ _jsxs("span", {
137
+ children: [
138
+ (type === 'checkbox' || type === 'radio') && /*#__PURE__*/ _jsx("span", {
139
+ css: this.props.styles?.icon,
140
+ children: this.selected && /*#__PURE__*/ _jsx(IconCheckSolid, {})
141
+ }),
142
+ /*#__PURE__*/ _jsx("span", {
143
+ css: this.props.styles?.label,
144
+ id: this.labelId,
145
+ children: children
146
+ }),
147
+ type === 'flyout' && /*#__PURE__*/ _jsx("span", {
148
+ css: this.props.styles?.icon,
149
+ children: /*#__PURE__*/ _jsx(IconArrowOpenEndSolid, {})
150
+ }),
151
+ renderLabelInfo && /*#__PURE__*/ _jsx("span", {
152
+ css: this.props.styles?.labelInfo,
153
+ children: callRenderProp(renderLabelInfo)
154
+ })
155
+ ]
156
+ });
157
+ }
158
+ render() {
159
+ const { disabled, controls, onKeyDown, onKeyUp, type, href: rawHref, target } = this.props;
160
+ const props = omitProps(this.props, MenuItem.allowedProps);
161
+ const ElementType = this.elementType;
162
+ const { href, rel } = safeLinkProps({
163
+ tag: typeof ElementType === 'string' ? ElementType : 'a',
164
+ attr: 'href',
165
+ href: rawHref,
166
+ target,
167
+ rel: this.props.rel
168
+ });
169
+ return /*#__PURE__*/ _jsx(ElementType, {
170
+ tabIndex: -1,
171
+ ...props,
172
+ href: href,
173
+ target: target,
174
+ rel: rel,
175
+ role: this.role,
176
+ "aria-labelledby": this.labelId,
177
+ "aria-disabled": disabled ? 'true' : undefined,
178
+ "aria-controls": controls,
179
+ "aria-checked": type === 'checkbox' || type === 'radio' ? this.selected ? 'true' : 'false' : undefined,
180
+ onClick: this.handleClick,
181
+ onKeyUp: createChainedFunction(onKeyUp, this.handleKeyUp),
182
+ onKeyDown: createChainedFunction(onKeyDown, this.handleKeyDown),
183
+ ref: this.handleRef,
184
+ css: this.props.styles?.menuItem,
185
+ onMouseOver: this.handleMouseOver,
186
+ "data-cid": "MenuItem",
187
+ children: this.renderContent()
188
+ });
189
+ }
190
+ }
191
+ const MenuItem = withDeterministicId()(withStyle(generateStyle, generateComponentTheme)(MenuItemBase));
235
192
  export default MenuItem;
236
- export { MenuItem };
193
+ export { MenuItem };
@@ -1,26 +1,19 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['children', 'defaultSelected', 'selected', 'onSelect', 'onClick', 'onKeyDown', 'onKeyUp', 'onMouseOver', 'controls', 'disabled', 'as', 'type', 'value', 'href', 'target', 'renderLabelInfo'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'children',
3
+ 'defaultSelected',
4
+ 'selected',
5
+ 'onSelect',
6
+ 'onClick',
7
+ 'onKeyDown',
8
+ 'onKeyUp',
9
+ 'onMouseOver',
10
+ 'controls',
11
+ 'disabled',
12
+ 'as',
13
+ 'type',
14
+ 'value',
15
+ 'href',
16
+ 'target',
17
+ 'renderLabelInfo'
18
+ ];
19
+ export { allowedProps };