@instructure/ui-simple-select 8.33.1-snapshot-1 → 8.33.2-snapshot-5

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 CHANGED
@@ -3,7 +3,7 @@
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
- ## [8.33.1-snapshot-1](https://github.com/instructure/instructure-ui/compare/v8.33.0...v8.33.1-snapshot-1) (2023-01-06)
6
+ ## [8.33.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.33.1...v8.33.2-snapshot-5) (2023-01-23)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-simple-select
9
9
 
@@ -11,22 +11,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [8.33.0](https://github.com/instructure/instructure-ui/compare/v8.32.1...v8.33.0) (2023-01-04)
14
+ ## [8.33.1](https://github.com/instructure/instructure-ui/compare/v8.33.0...v8.33.1) (2023-01-06)
15
15
 
16
16
  **Note:** Version bump only for package @instructure/ui-simple-select
17
17
 
18
+ # [8.33.0](https://github.com/instructure/instructure-ui/compare/v8.32.1...v8.33.0) (2023-01-04)
18
19
 
19
-
20
-
20
+ **Note:** Version bump only for package @instructure/ui-simple-select
21
21
 
22
22
  ## [8.32.1](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.32.1) (2022-12-01)
23
23
 
24
24
  **Note:** Version bump only for package @instructure/ui-simple-select
25
25
 
26
-
27
-
28
-
29
-
30
26
  # [8.32.0](https://github.com/instructure/instructure-ui/compare/v8.31.0...v8.32.0) (2022-11-23)
31
27
 
32
28
  **Note:** Version bump only for package @instructure/ui-simple-select
@@ -21,8 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import { Component } from 'react';
25
26
  import { allowedProps, propTypes } from './props';
27
+
26
28
  /**
27
29
  ---
28
30
  parent: SimpleSelect
@@ -30,7 +32,6 @@ id: SimpleSelect.Group
30
32
  ---
31
33
  @tsProps
32
34
  **/
33
-
34
35
  class Group extends Component {
35
36
  /* istanbul ignore next */
36
37
  render() {
@@ -38,9 +39,7 @@ class Group extends Component {
38
39
  // are parsed in Select and rendered as Options components
39
40
  return null;
40
41
  }
41
-
42
42
  }
43
-
44
43
  Group.displayName = "Group";
45
44
  Group.componentId = 'SimpleSelect.Group';
46
45
  Group.allowedProps = allowedProps;
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import PropTypes from 'prop-types';
25
26
  import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
27
  import { Option } from '../Option';
@@ -21,8 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import { Component } from 'react';
25
26
  import { allowedProps, propTypes } from './props';
27
+
26
28
  /**
27
29
  ---
28
30
  parent: SimpleSelect
@@ -30,7 +32,6 @@ id: SimpleSelect.Option
30
32
  ---
31
33
  @tsProps
32
34
  **/
33
-
34
35
  class Option extends Component {
35
36
  /* istanbul ignore next */
36
37
  render() {
@@ -38,9 +39,7 @@ class Option extends Component {
38
39
  // are parsed in Select and rendered as Options.Item components
39
40
  return null;
40
41
  }
41
-
42
42
  }
43
-
44
43
  Option.displayName = "Option";
45
44
  Option.componentId = 'SimpleSelect.Option';
46
45
  Option.allowedProps = allowedProps;
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import PropTypes from 'prop-types';
25
26
  const propTypes = {
26
27
  id: PropTypes.string.isRequired,
@@ -22,14 +22,15 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { locator } from '@instructure/ui-test-locator';
25
+
25
26
  /* eslint-disable no-restricted-imports */
26
27
  // @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
27
-
28
28
  import { SelectLocator } from '@instructure/ui-select/es/Select/SelectLocator';
29
29
  /* eslint-enable no-restricted-imports */
30
30
 
31
- import { SimpleSelect } from './index'; // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
31
+ import { SimpleSelect } from './index';
32
32
 
33
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
33
34
  export const SimpleSelectLocator = locator(SimpleSelect.selector, {
34
35
  findInput: SelectLocator.findInput,
35
36
  // TODO these dont work because TS doesnt find its type declarations,
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import React from 'react';
25
26
  import { SimpleSelect } from '../../SimpleSelect';
26
27
  export default {
@@ -1,10 +1,8 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["id", "value", "children", "renderBeforeLabel", "renderAfterLabel"],
3
- _excluded2 = ["id", "renderLabel", "children"],
4
- _excluded3 = ["renderLabel", "value", "defaultValue", "id", "size", "assistiveText", "placeholder", "interaction", "isRequired", "isInline", "width", "optionsMaxWidth", "optionsMaxHeight", "visibleOptionsCount", "messages", "placement", "constrain", "mountNode", "inputRef", "listRef", "renderEmptyOption", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onShowOptions", "onHideOptions", "children"];
5
-
3
+ _excluded2 = ["id", "renderLabel", "children"],
4
+ _excluded3 = ["renderLabel", "value", "defaultValue", "id", "size", "assistiveText", "placeholder", "interaction", "isRequired", "isInline", "width", "optionsMaxWidth", "optionsMaxHeight", "visibleOptionsCount", "messages", "placement", "constrain", "mountNode", "inputRef", "listRef", "renderEmptyOption", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onShowOptions", "onHideOptions", "children"];
6
5
  var _dec, _dec2, _class, _class2;
7
-
8
6
  /*
9
7
  * The MIT License (MIT)
10
8
  *
@@ -28,6 +26,7 @@ var _dec, _dec2, _class, _class2;
28
26
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
27
  * SOFTWARE.
30
28
  */
29
+
31
30
  import React, { Component, Children } from 'react';
32
31
  import { testable } from '@instructure/ui-testable';
33
32
  import { matchComponentTypes, passthroughProps, callRenderProp, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
@@ -35,7 +34,6 @@ import { Select } from '@instructure/ui-select';
35
34
  import { Option } from './Option';
36
35
  import { Group } from './Group';
37
36
  import { allowedProps, propTypes } from './props';
38
-
39
37
  /**
40
38
  ---
41
39
  category: components
@@ -48,61 +46,48 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
48
46
  super(props);
49
47
  this.ref = null;
50
48
  this._emptyOptionId = void 0;
51
-
52
49
  this.getOption = (field, value) => {
53
50
  const children = Children.toArray(this.props.children);
54
51
  let match;
55
-
56
52
  for (let i = 0; i < children.length; ++i) {
57
53
  const child = children[i];
58
-
59
54
  if (matchComponentTypes(child, [Option])) {
60
55
  if (child.props[field] === value) {
61
56
  match = child;
62
57
  }
63
58
  } else if (matchComponentTypes(child, [Group])) {
64
59
  const groupChildren = Children.toArray(child.props.children);
65
-
66
60
  for (let j = 0; j < groupChildren.length; ++j) {
67
61
  const groupChild = groupChildren[j];
68
-
69
62
  if (groupChild.props[field] === value) {
70
63
  match = groupChild;
71
64
  break;
72
65
  }
73
66
  }
74
67
  }
75
-
76
68
  if (match) break;
77
69
  }
78
-
79
70
  return match;
80
71
  };
81
-
82
72
  this.handleRef = node => {
83
73
  this.ref = node;
84
74
  };
85
-
86
75
  this.handleBlur = event => {
87
76
  this.setState({
88
77
  highlightedOptionId: void 0
89
78
  });
90
-
91
79
  if (typeof this.props.onBlur === 'function') {
92
80
  this.props.onBlur(event);
93
81
  }
94
82
  };
95
-
96
83
  this.handleShowOptions = event => {
97
84
  this.setState({
98
85
  isShowingOptions: true
99
86
  });
100
-
101
87
  if (typeof this.props.onShowOptions === 'function') {
102
88
  this.props.onShowOptions(event);
103
89
  }
104
90
  };
105
-
106
91
  this.handleHideOptions = event => {
107
92
  this.setState(state => {
108
93
  const option = this.getOption('id', state.selectedOptionId);
@@ -112,12 +97,10 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
112
97
  inputValue: option ? option.props.children : ''
113
98
  };
114
99
  });
115
-
116
100
  if (typeof this.props.onHideOptions === 'function') {
117
101
  this.props.onHideOptions(event);
118
102
  }
119
103
  };
120
-
121
104
  this.handleHighlightOption = (event, _ref) => {
122
105
  let id = _ref.id;
123
106
  if (id === this._emptyOptionId) return;
@@ -129,10 +112,8 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
129
112
  inputValue
130
113
  });
131
114
  };
132
-
133
115
  this.handleSelectOption = (event, _ref2) => {
134
116
  let id = _ref2.id;
135
-
136
117
  if (id === this._emptyOptionId) {
137
118
  // selected option is the empty option
138
119
  this.setState({
@@ -140,10 +121,8 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
140
121
  });
141
122
  return;
142
123
  }
143
-
144
124
  const option = this.getOption('id', id);
145
125
  const value = option && option.props.value;
146
-
147
126
  if (this.isControlled) {
148
127
  this.setState({
149
128
  isShowingOptions: false
@@ -154,24 +133,20 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
154
133
  selectedOptionId: id,
155
134
  inputValue: option ? option.props.children : state.inputValue
156
135
  }));
157
- } // fire onChange if selected option changed
158
-
159
-
136
+ }
137
+ // fire onChange if selected option changed
160
138
  if (option && typeof this.props.onChange === 'function') {
161
139
  this.props.onChange(event, {
162
140
  value,
163
141
  id
164
142
  });
165
- } // hide options list whenever selection is made
166
-
167
-
143
+ }
144
+ // hide options list whenever selection is made
168
145
  if (typeof this.props.onHideOptions === 'function') {
169
146
  this.props.onHideOptions(event);
170
147
  }
171
148
  };
172
-
173
149
  const _option = this.getInitialOption(props);
174
-
175
150
  this.state = {
176
151
  inputValue: _option ? _option.props.children : '',
177
152
  isShowingOptions: false,
@@ -180,90 +155,71 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
180
155
  };
181
156
  this._emptyOptionId = props.deterministicId('Select-EmptyOption');
182
157
  }
183
-
184
158
  get _select() {
185
159
  return this.ref;
186
160
  }
187
-
188
161
  focus() {
189
162
  this.ref && this.ref.focus();
190
163
  }
191
-
192
164
  get focused() {
193
165
  return this.ref ? this.ref.focused : false;
194
166
  }
195
-
196
167
  get id() {
197
168
  return this.ref ? this.ref.id : void 0;
198
169
  }
199
-
200
170
  get isControlled() {
201
171
  return typeof this.props.value !== 'undefined';
202
172
  }
203
-
204
173
  get interaction() {
205
174
  return getInteraction({
206
175
  props: this.props
207
176
  });
208
177
  }
209
-
210
178
  componentDidUpdate(prevProps) {
211
179
  if (this.props.value !== prevProps.value) {
212
180
  let option = this.getOption('value', this.props.value);
213
-
214
181
  if (typeof this.props.value === 'undefined') {
215
182
  // preserve current value when changing from controlled to uncontrolled
216
183
  option = this.getOption('value', prevProps.value);
217
184
  }
218
-
219
185
  this.setState({
220
186
  inputValue: option ? option.props.children : '',
221
187
  selectedOptionId: option ? option.props.id : ''
222
188
  });
223
189
  }
224
190
  }
225
-
226
191
  getInitialOption(props) {
227
192
  const value = props.value,
228
- defaultValue = props.defaultValue;
193
+ defaultValue = props.defaultValue;
229
194
  const initialValue = value || defaultValue;
230
-
231
195
  if (typeof initialValue === 'string' || typeof initialValue === 'number') {
232
196
  // get option based on value or defaultValue, if provided
233
197
  return this.getOption('value', initialValue);
234
- } // otherwise get the first option
235
-
236
-
198
+ }
199
+ // otherwise get the first option
237
200
  return this.getFirstOption();
238
201
  }
239
-
240
202
  getOptionLabelById(id) {
241
203
  const option = this.getOption('id', id);
242
204
  return option ? option.props.children : '';
243
205
  }
244
-
245
206
  getFirstOption() {
246
207
  const children = Children.toArray(this.props.children);
247
208
  let match;
248
-
249
209
  for (let i = 0; i < children.length; i++) {
250
210
  const child = children[i];
251
-
252
211
  if (matchComponentTypes(child, [Option])) {
253
212
  match = child;
254
213
  } else if (matchComponentTypes(child, [Group])) {
255
214
  // first child is a group, not an option, find first child in group
256
215
  match = Children.toArray(child.props.children)[0];
257
216
  }
258
-
259
217
  if (match) {
260
218
  break;
261
219
  }
262
220
  }
263
-
264
221
  return match;
265
222
  }
266
-
267
223
  renderChildren() {
268
224
  let children = Children.toArray(this.props.children);
269
225
  children = Children.map(children, child => {
@@ -272,18 +228,14 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
272
228
  } else if (matchComponentTypes(child, [Group])) {
273
229
  return this.renderGroup(child);
274
230
  }
275
-
276
231
  return null;
277
232
  }).filter(child => !!child);
278
-
279
233
  if (children.length === 0) {
280
234
  // no valid children, render empty option
281
235
  return this.renderEmptyOption();
282
236
  }
283
-
284
237
  return children;
285
238
  }
286
-
287
239
  renderEmptyOption() {
288
240
  return /*#__PURE__*/React.createElement(Select.Option, {
289
241
  id: this._emptyOptionId,
@@ -291,23 +243,19 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
291
243
  isSelected: false
292
244
  }, callRenderProp(this.props.renderEmptyOption));
293
245
  }
294
-
295
246
  renderOption(option) {
296
247
  const _option$props = option.props,
297
- id = _option$props.id,
298
- value = _option$props.value,
299
- children = _option$props.children,
300
- renderBeforeLabel = _option$props.renderBeforeLabel,
301
- renderAfterLabel = _option$props.renderAfterLabel,
302
- rest = _objectWithoutProperties(_option$props, _excluded);
303
-
248
+ id = _option$props.id,
249
+ value = _option$props.value,
250
+ children = _option$props.children,
251
+ renderBeforeLabel = _option$props.renderBeforeLabel,
252
+ renderAfterLabel = _option$props.renderAfterLabel,
253
+ rest = _objectWithoutProperties(_option$props, _excluded);
304
254
  const isDisabled = option.props.isDisabled;
305
255
  const isSelected = id === this.state.selectedOptionId;
306
256
  const isHighlighted = id === this.state.highlightedOptionId;
307
-
308
257
  const getRenderLabel = renderLabel => {
309
258
  var _renderLabel$prototyp;
310
-
311
259
  return typeof renderLabel === 'function' && !(renderLabel !== null && renderLabel !== void 0 && (_renderLabel$prototyp = renderLabel.prototype) !== null && _renderLabel$prototyp !== void 0 && _renderLabel$prototyp.isReactComponent) ? renderLabel.bind(null, {
312
260
  id,
313
261
  isDisabled,
@@ -316,7 +264,6 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
316
264
  children
317
265
  }) : renderLabel;
318
266
  };
319
-
320
267
  return /*#__PURE__*/React.createElement(Select.Option, Object.assign({
321
268
  id: id,
322
269
  value: value,
@@ -328,52 +275,48 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
328
275
  renderAfterLabel: getRenderLabel(renderAfterLabel)
329
276
  }, passthroughProps(rest)), children);
330
277
  }
331
-
332
278
  renderGroup(group) {
333
279
  const _group$props = group.props,
334
- id = _group$props.id,
335
- renderLabel = _group$props.renderLabel,
336
- children = _group$props.children,
337
- rest = _objectWithoutProperties(_group$props, _excluded2);
338
-
280
+ id = _group$props.id,
281
+ renderLabel = _group$props.renderLabel,
282
+ children = _group$props.children,
283
+ rest = _objectWithoutProperties(_group$props, _excluded2);
339
284
  return /*#__PURE__*/React.createElement(Select.Group, Object.assign({
340
285
  renderLabel: renderLabel,
341
286
  key: group.key || id
342
287
  }, passthroughProps(rest)), Children.map(children, child => this.renderOption(child)));
343
288
  }
344
-
345
289
  render() {
346
290
  const _this$props = this.props,
347
- renderLabel = _this$props.renderLabel,
348
- value = _this$props.value,
349
- defaultValue = _this$props.defaultValue,
350
- id = _this$props.id,
351
- size = _this$props.size,
352
- assistiveText = _this$props.assistiveText,
353
- placeholder = _this$props.placeholder,
354
- interaction = _this$props.interaction,
355
- isRequired = _this$props.isRequired,
356
- isInline = _this$props.isInline,
357
- width = _this$props.width,
358
- optionsMaxWidth = _this$props.optionsMaxWidth,
359
- optionsMaxHeight = _this$props.optionsMaxHeight,
360
- visibleOptionsCount = _this$props.visibleOptionsCount,
361
- messages = _this$props.messages,
362
- placement = _this$props.placement,
363
- constrain = _this$props.constrain,
364
- mountNode = _this$props.mountNode,
365
- inputRef = _this$props.inputRef,
366
- listRef = _this$props.listRef,
367
- renderEmptyOption = _this$props.renderEmptyOption,
368
- renderBeforeInput = _this$props.renderBeforeInput,
369
- renderAfterInput = _this$props.renderAfterInput,
370
- onFocus = _this$props.onFocus,
371
- onBlur = _this$props.onBlur,
372
- onShowOptions = _this$props.onShowOptions,
373
- onHideOptions = _this$props.onHideOptions,
374
- children = _this$props.children,
375
- rest = _objectWithoutProperties(_this$props, _excluded3);
376
-
291
+ renderLabel = _this$props.renderLabel,
292
+ value = _this$props.value,
293
+ defaultValue = _this$props.defaultValue,
294
+ id = _this$props.id,
295
+ size = _this$props.size,
296
+ assistiveText = _this$props.assistiveText,
297
+ placeholder = _this$props.placeholder,
298
+ interaction = _this$props.interaction,
299
+ isRequired = _this$props.isRequired,
300
+ isInline = _this$props.isInline,
301
+ width = _this$props.width,
302
+ optionsMaxWidth = _this$props.optionsMaxWidth,
303
+ optionsMaxHeight = _this$props.optionsMaxHeight,
304
+ visibleOptionsCount = _this$props.visibleOptionsCount,
305
+ messages = _this$props.messages,
306
+ placement = _this$props.placement,
307
+ constrain = _this$props.constrain,
308
+ mountNode = _this$props.mountNode,
309
+ inputRef = _this$props.inputRef,
310
+ listRef = _this$props.listRef,
311
+ renderEmptyOption = _this$props.renderEmptyOption,
312
+ renderBeforeInput = _this$props.renderBeforeInput,
313
+ renderAfterInput = _this$props.renderAfterInput,
314
+ onFocus = _this$props.onFocus,
315
+ onBlur = _this$props.onBlur,
316
+ onShowOptions = _this$props.onShowOptions,
317
+ onHideOptions = _this$props.onHideOptions,
318
+ children = _this$props.children,
319
+ rest = _objectWithoutProperties(_this$props, _excluded3);
377
320
  return /*#__PURE__*/React.createElement(Select, Object.assign({
378
321
  renderLabel: renderLabel,
379
322
  inputValue: this.state.inputValue,
@@ -406,7 +349,6 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
406
349
  onRequestSelectOption: this.handleSelectOption
407
350
  }, passthroughProps(rest)), this.renderChildren());
408
351
  }
409
-
410
352
  }, _class2.displayName = "SimpleSelect", _class2.componentId = 'SimpleSelect', _class2.Option = Option, _class2.Group = Group, _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
411
353
  size: 'medium',
412
354
  isRequired: false,
@@ -21,6 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  import PropTypes from 'prop-types';
25
26
  import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
27
  import { FormPropTypes } from '@instructure/ui-form-field';
package/es/index.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+
24
25
  export { SimpleSelect } from './SimpleSelect';
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.Group = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _props = require("./props");
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -47,9 +44,7 @@ class Group extends _react.Component {
47
44
  // are parsed in Select and rendered as Options components
48
45
  return null;
49
46
  }
50
-
51
47
  }
52
-
53
48
  exports.Group = Group;
54
49
  Group.displayName = "Group";
55
50
  Group.componentId = 'SimpleSelect.Group';
@@ -1,18 +1,13 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _Children = require("@instructure/ui-prop-types/lib/Children.js");
13
-
14
10
  var _Option = require("../Option");
15
-
16
11
  /*
17
12
  * The MIT License (MIT)
18
13
  *
@@ -36,6 +31,7 @@ var _Option = require("../Option");
36
31
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
32
  * SOFTWARE.
38
33
  */
34
+
39
35
  const propTypes = {
40
36
  renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
41
37
  children: _Children.Children.oneOf([_Option.Option])
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.Option = void 0;
7
-
8
7
  var _react = require("react");
9
-
10
8
  var _props = require("./props");
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -47,9 +44,7 @@ class Option extends _react.Component {
47
44
  // are parsed in Select and rendered as Options.Item components
48
45
  return null;
49
46
  }
50
-
51
47
  }
52
-
53
48
  exports.Option = Option;
54
49
  Option.displayName = "Option";
55
50
  Option.componentId = 'SimpleSelect.Option';
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
32
+
35
33
  const propTypes = {
36
34
  id: _propTypes.default.string.isRequired,
37
35
  value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]).isRequired,
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SimpleSelectLocator = void 0;
7
-
8
7
  var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
9
-
10
8
  var _SelectLocator = require("@instructure/ui-select/lib/Select/SelectLocator");
11
-
12
9
  var _index = require("./index");
13
-
14
10
  /*
15
11
  * The MIT License (MIT)
16
12
  *
@@ -39,6 +35,7 @@ var _index = require("./index");
39
35
  // @ts-expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module '@ins... Remove this comment to see the full error message
40
36
 
41
37
  /* eslint-enable no-restricted-imports */
38
+
42
39
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
43
40
  const SimpleSelectLocator = (0, _locator.locator)(_index.SimpleSelect.selector, {
44
41
  findInput: _SelectLocator.SelectLocator.findInput,