@instructure/ui-menu 11.7.8 → 11.7.9-pr-snapshot-1792147648392
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/CHANGELOG.md +13 -0
- package/es/Menu/v1/MenuItem/index.js +184 -223
- package/es/Menu/v1/MenuItem/props.js +19 -26
- package/es/Menu/v1/MenuItem/styles.js +90 -133
- package/es/Menu/v1/MenuItem/theme.js +30 -64
- package/es/Menu/v1/MenuItemGroup/index.js +145 -166
- package/es/Menu/v1/MenuItemGroup/props.js +14 -26
- package/es/Menu/v1/MenuItemGroup/styles.js +25 -59
- package/es/Menu/v1/MenuItemGroup/theme.js +20 -54
- package/es/Menu/v1/MenuItemSeparator/index.js +38 -61
- package/es/Menu/v1/MenuItemSeparator/props.js +1 -28
- package/es/Menu/v1/MenuItemSeparator/styles.js +11 -45
- package/es/Menu/v1/MenuItemSeparator/theme.js +11 -44
- package/es/Menu/v1/index.js +324 -378
- package/es/Menu/v1/props.js +31 -26
- package/es/Menu/v1/styles.js +40 -74
- package/es/Menu/v1/theme.js +16 -49
- package/es/Menu/v2/MenuItem/index.js +203 -252
- package/es/Menu/v2/MenuItem/props.js +19 -26
- package/es/Menu/v2/MenuItem/styles.js +103 -147
- package/es/Menu/v2/MenuItemGroup/index.js +145 -166
- package/es/Menu/v2/MenuItemGroup/props.js +14 -26
- package/es/Menu/v2/MenuItemGroup/styles.js +25 -59
- package/es/Menu/v2/MenuItemSeparator/index.js +38 -61
- package/es/Menu/v2/MenuItemSeparator/props.js +1 -28
- package/es/Menu/v2/MenuItemSeparator/styles.js +11 -45
- package/es/Menu/v2/index.js +324 -378
- package/es/Menu/v2/props.js +31 -26
- package/es/Menu/v2/styles.js +22 -57
- package/es/exports/a.js +1 -24
- package/es/exports/b.js +1 -24
- package/es/utils/v1/MenuContext.js +4 -36
- package/package.json +18 -24
- package/tsconfig.build.json +0 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/lib/Menu/v1/MenuItem/index.js +0 -247
- package/lib/Menu/v1/MenuItem/props.js +0 -31
- package/lib/Menu/v1/MenuItem/styles.js +0 -142
- package/lib/Menu/v1/MenuItem/theme.js +0 -71
- package/lib/Menu/v1/MenuItemGroup/index.js +0 -191
- package/lib/Menu/v1/MenuItemGroup/props.js +0 -31
- package/lib/Menu/v1/MenuItemGroup/styles.js +0 -66
- package/lib/Menu/v1/MenuItemGroup/theme.js +0 -61
- package/lib/Menu/v1/MenuItemSeparator/index.js +0 -73
- package/lib/Menu/v1/MenuItemSeparator/props.js +0 -34
- package/lib/Menu/v1/MenuItemSeparator/styles.js +0 -52
- package/lib/Menu/v1/MenuItemSeparator/theme.js +0 -51
- package/lib/Menu/v1/index.js +0 -438
- package/lib/Menu/v1/props.js +0 -31
- package/lib/Menu/v1/styles.js +0 -82
- package/lib/Menu/v1/theme.js +0 -56
- package/lib/Menu/v2/MenuItem/index.js +0 -286
- package/lib/Menu/v2/MenuItem/props.js +0 -31
- package/lib/Menu/v2/MenuItem/styles.js +0 -154
- package/lib/Menu/v2/MenuItemGroup/index.js +0 -190
- package/lib/Menu/v2/MenuItemGroup/props.js +0 -31
- package/lib/Menu/v2/MenuItemGroup/styles.js +0 -66
- package/lib/Menu/v2/MenuItemSeparator/index.js +0 -72
- package/lib/Menu/v2/MenuItemSeparator/props.js +0 -34
- package/lib/Menu/v2/MenuItemSeparator/styles.js +0 -52
- package/lib/Menu/v2/index.js +0 -437
- package/lib/Menu/v2/props.js +0 -31
- package/lib/Menu/v2/styles.js +0 -64
- package/lib/exports/a.js +0 -30
- package/lib/exports/b.js +0 -30
- package/lib/package.json +0 -1
- 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.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
|
|
7
|
+
|
|
8
|
+
### Build System
|
|
9
|
+
|
|
10
|
+
* **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
|
|
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.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @instructure/ui-menu
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
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 { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
26
3
|
import { Component } from 'react';
|
|
27
4
|
import keycode from 'keycode';
|
|
28
5
|
import { IconCheckSolid, IconArrowOpenEndSolid } from '@instructure/ui-icons';
|
|
@@ -34,203 +11,187 @@ import { MenuContext } from '../../../utils/v1/MenuContext.js';
|
|
|
34
11
|
import generateStyle from './styles.js';
|
|
35
12
|
import generateComponentTheme from './theme.js';
|
|
36
13
|
import { allowedProps } from './props.js';
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
14
|
+
class MenuItem extends Component {
|
|
15
|
+
static{
|
|
16
|
+
this.displayName = 'MenuItem';
|
|
17
|
+
}
|
|
18
|
+
static{
|
|
19
|
+
this.componentId = 'Menu.Item';
|
|
20
|
+
}
|
|
21
|
+
static{
|
|
22
|
+
this.allowedProps = allowedProps;
|
|
23
|
+
}
|
|
24
|
+
static{
|
|
25
|
+
this.defaultProps = {
|
|
26
|
+
type: 'button',
|
|
27
|
+
disabled: false
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
static{
|
|
31
|
+
this.contextType = MenuContext;
|
|
32
|
+
}
|
|
33
|
+
constructor(props){
|
|
34
|
+
super(props), this.ref = null, this.handleRef = (el)=>{
|
|
35
|
+
this.ref = el;
|
|
36
|
+
}, this.handleClick = (e)=>{
|
|
37
|
+
const { onSelect, onClick, disabled, value } = this.props;
|
|
38
|
+
const selected = !this.selected;
|
|
39
|
+
if (disabled) {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (typeof this.props.selected === 'undefined') {
|
|
44
|
+
this.setState({
|
|
45
|
+
selected
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (typeof onSelect === 'function') {
|
|
49
|
+
e.persist();
|
|
50
|
+
onSelect(e, value, selected, this);
|
|
51
|
+
}
|
|
52
|
+
if (typeof onClick === 'function') {
|
|
53
|
+
onClick(e);
|
|
54
|
+
}
|
|
55
|
+
}, this.handleKeyDown = (e)=>{
|
|
56
|
+
const spaceKey = e.keyCode === keycode.codes.space;
|
|
57
|
+
const enterKey = e.keyCode === keycode.codes.enter;
|
|
58
|
+
if (spaceKey || enterKey) {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
e.stopPropagation();
|
|
61
|
+
if (enterKey) {
|
|
62
|
+
const refNode = findDOMNode(this.ref);
|
|
63
|
+
refNode.click();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, this.handleKeyUp = (e)=>{
|
|
67
|
+
const spaceKey = e.keyCode === keycode.codes.space;
|
|
68
|
+
const enterKey = e.keyCode === keycode.codes.enter;
|
|
69
|
+
if (spaceKey || enterKey) {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
if (spaceKey) {
|
|
73
|
+
const refNode = findDOMNode(this.ref);
|
|
74
|
+
refNode.click();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, this.handleMouseOver = (event)=>{
|
|
78
|
+
if (!this.focused) {
|
|
79
|
+
this.focus();
|
|
80
|
+
}
|
|
81
|
+
if (typeof this.props.onMouseOver === 'function') {
|
|
82
|
+
this.props.onMouseOver(event, this);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
if (typeof props.selected === 'undefined') {
|
|
86
|
+
this.state = {
|
|
87
|
+
selected: !!props.defaultSelected
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
this.labelId = props.deterministicId('MenuItem__label');
|
|
91
|
+
}
|
|
92
|
+
get _node() {
|
|
93
|
+
void 0;
|
|
94
|
+
return this.ref;
|
|
95
|
+
}
|
|
96
|
+
componentDidMount() {
|
|
97
|
+
this.props.makeStyles?.();
|
|
98
|
+
const context = this.context;
|
|
99
|
+
if (context && context.registerMenuItem) {
|
|
100
|
+
context.registerMenuItem(this);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
componentDidUpdate() {
|
|
104
|
+
this.props.makeStyles?.();
|
|
105
|
+
}
|
|
106
|
+
componentWillUnmount() {
|
|
107
|
+
const context = this.context;
|
|
108
|
+
if (context && context.removeMenuItem) {
|
|
109
|
+
context.removeMenuItem(this);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
get elementType() {
|
|
113
|
+
return getElementType(MenuItem, this.props);
|
|
114
|
+
}
|
|
115
|
+
get role() {
|
|
116
|
+
switch(this.props.type){
|
|
117
|
+
case 'checkbox':
|
|
118
|
+
return 'menuitemcheckbox';
|
|
119
|
+
case 'radio':
|
|
120
|
+
return 'menuitemradio';
|
|
121
|
+
default:
|
|
122
|
+
return 'menuitem';
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
get selected() {
|
|
126
|
+
return typeof this.props.selected === 'undefined' ? this.state.selected : this.props.selected;
|
|
127
|
+
}
|
|
128
|
+
get focused() {
|
|
129
|
+
return isActiveElement(this.ref);
|
|
130
|
+
}
|
|
131
|
+
focus() {
|
|
131
132
|
const refNode = findDOMNode(this.ref);
|
|
132
|
-
refNode.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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);
|
|
133
|
+
refNode.focus();
|
|
134
|
+
}
|
|
135
|
+
renderContent() {
|
|
136
|
+
const { children, type, renderLabelInfo } = this.props;
|
|
137
|
+
return /*#__PURE__*/ _jsxs("span", {
|
|
138
|
+
children: [
|
|
139
|
+
(type === 'checkbox' || type === 'radio') && /*#__PURE__*/ _jsx("span", {
|
|
140
|
+
css: this.props.styles?.icon,
|
|
141
|
+
children: this.selected && /*#__PURE__*/ _jsx(IconCheckSolid, {})
|
|
142
|
+
}),
|
|
143
|
+
/*#__PURE__*/ _jsx("span", {
|
|
144
|
+
css: this.props.styles?.label,
|
|
145
|
+
id: this.labelId,
|
|
146
|
+
children: children
|
|
147
|
+
}),
|
|
148
|
+
type === 'flyout' && /*#__PURE__*/ _jsx("span", {
|
|
149
|
+
css: this.props.styles?.icon,
|
|
150
|
+
children: /*#__PURE__*/ _jsx(IconArrowOpenEndSolid, {})
|
|
151
|
+
}),
|
|
152
|
+
renderLabelInfo && /*#__PURE__*/ _jsx("span", {
|
|
153
|
+
css: this.props.styles?.labelInfo,
|
|
154
|
+
children: callRenderProp(renderLabelInfo)
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const { disabled, controls, onKeyDown, onKeyUp, type, href: rawHref, target } = this.props;
|
|
161
|
+
const props = omitProps(this.props, MenuItem.allowedProps);
|
|
162
|
+
const ElementType = this.elementType;
|
|
163
|
+
const { href, rel } = safeLinkProps({
|
|
164
|
+
tag: typeof ElementType === 'string' ? ElementType : 'a',
|
|
165
|
+
attr: 'href',
|
|
166
|
+
href: rawHref,
|
|
167
|
+
target,
|
|
168
|
+
rel: this.props.rel
|
|
169
|
+
});
|
|
170
|
+
return /*#__PURE__*/ _jsx(ElementType, {
|
|
171
|
+
tabIndex: -1,
|
|
172
|
+
...props,
|
|
173
|
+
href: href,
|
|
174
|
+
target: target,
|
|
175
|
+
rel: rel,
|
|
176
|
+
role: this.role,
|
|
177
|
+
"aria-labelledby": this.labelId,
|
|
178
|
+
"aria-disabled": disabled ? 'true' : undefined,
|
|
179
|
+
"aria-controls": controls,
|
|
180
|
+
"aria-checked": type === 'checkbox' || type === 'radio' ? this.selected ? 'true' : 'false' : undefined,
|
|
181
|
+
onClick: this.handleClick,
|
|
182
|
+
onKeyUp: createChainedFunction(onKeyUp, this.handleKeyUp),
|
|
183
|
+
onKeyDown: createChainedFunction(onKeyDown, this.handleKeyDown),
|
|
184
|
+
ref: this.handleRef,
|
|
185
|
+
css: this.props.styles?.menuItem,
|
|
186
|
+
onMouseOver: this.handleMouseOver,
|
|
187
|
+
"data-cid": "MenuItem",
|
|
188
|
+
children: this.renderContent()
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
MenuItem = _ts_decorate([
|
|
193
|
+
withDeterministicId(),
|
|
194
|
+
withStyle(generateStyle, generateComponentTheme)
|
|
195
|
+
], MenuItem);
|
|
235
196
|
export default MenuItem;
|
|
236
|
-
export { MenuItem };
|
|
197
|
+
export { MenuItem };
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 };
|