@instructure/ui-simple-select 8.8.1-snapshot.3 → 8.9.0

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 (46) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/es/SimpleSelect/Group/index.js +4 -15
  3. package/{src/SimpleSelect/Group/types.ts → es/SimpleSelect/Group/props.js} +15 -3
  4. package/es/SimpleSelect/Option/index.js +4 -35
  5. package/es/SimpleSelect/Option/props.js +57 -0
  6. package/es/SimpleSelect/index.js +3 -175
  7. package/es/SimpleSelect/props.js +192 -0
  8. package/lib/SimpleSelect/Group/index.js +3 -18
  9. package/{src/SimpleSelect/Option/types.ts → lib/SimpleSelect/Group/props.js} +28 -7
  10. package/lib/SimpleSelect/Option/index.js +3 -36
  11. package/lib/SimpleSelect/Option/props.js +68 -0
  12. package/lib/SimpleSelect/index.js +3 -178
  13. package/lib/SimpleSelect/props.js +208 -0
  14. package/package.json +15 -16
  15. package/src/SimpleSelect/Group/index.tsx +4 -16
  16. package/src/SimpleSelect/{types.ts → Group/props.ts} +31 -35
  17. package/src/SimpleSelect/Option/index.tsx +4 -31
  18. package/src/SimpleSelect/Option/props.ts +80 -0
  19. package/src/SimpleSelect/index.tsx +5 -149
  20. package/src/SimpleSelect/props.ts +247 -0
  21. package/src/index.ts +3 -3
  22. package/types/SimpleSelect/Group/index.d.ts +9 -15
  23. package/types/SimpleSelect/Group/index.d.ts.map +1 -1
  24. package/types/SimpleSelect/Group/props.d.ts +14 -0
  25. package/types/SimpleSelect/Group/props.d.ts.map +1 -0
  26. package/types/SimpleSelect/Option/index.d.ts +17 -30
  27. package/types/SimpleSelect/Option/index.d.ts.map +1 -1
  28. package/types/SimpleSelect/Option/props.d.ts +18 -0
  29. package/types/SimpleSelect/Option/props.d.ts.map +1 -0
  30. package/types/SimpleSelect/index.d.ts +61 -150
  31. package/types/SimpleSelect/index.d.ts.map +1 -1
  32. package/types/SimpleSelect/{types.d.ts → props.d.ts} +11 -2
  33. package/types/SimpleSelect/props.d.ts.map +1 -0
  34. package/types/index.d.ts +3 -3
  35. package/LICENSE.md +0 -27
  36. package/es/SimpleSelect/Group/types.js +0 -1
  37. package/es/SimpleSelect/Option/types.js +0 -1
  38. package/es/SimpleSelect/types.js +0 -1
  39. package/lib/SimpleSelect/Group/types.js +0 -1
  40. package/lib/SimpleSelect/Option/types.js +0 -1
  41. package/lib/SimpleSelect/types.js +0 -1
  42. package/types/SimpleSelect/Group/types.d.ts +0 -5
  43. package/types/SimpleSelect/Group/types.d.ts.map +0 -1
  44. package/types/SimpleSelect/Option/types.d.ts +0 -9
  45. package/types/SimpleSelect/Option/types.d.ts.map +0 -1
  46. package/types/SimpleSelect/types.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-simple-select
9
+
6
10
  # [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27)
7
11
 
8
12
  ### Features
@@ -22,16 +22,14 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { Component } from 'react';
25
- import PropTypes from 'prop-types';
26
- import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
27
- import { Option } from '../Option';
28
-
25
+ import { allowedProps, propTypes } from './props';
29
26
  /**
30
27
  ---
31
28
  parent: SimpleSelect
32
29
  id: SimpleSelect.Group
33
30
  ---
34
31
  **/
32
+
35
33
  class Group extends Component {
36
34
  /* istanbul ignore next */
37
35
  render() {
@@ -44,17 +42,8 @@ class Group extends Component {
44
42
 
45
43
  Group.displayName = "Group";
46
44
  Group.componentId = 'SimpleSelect.Group';
47
- Group.propTypes = {
48
- /**
49
- * The label associated with the group options.
50
- */
51
- renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
52
-
53
- /**
54
- * Children of type `<SimpleSelect.Option />` that will be considered part of the group.
55
- */
56
- children: ChildrenPropTypes.oneOf([Option])
57
- };
45
+ Group.allowedProps = allowedProps;
46
+ Group.propTypes = propTypes;
58
47
  Group.defaultProps = {
59
48
  children: null
60
49
  };
@@ -21,7 +21,19 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
+ import PropTypes from 'prop-types';
25
+ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
+ import { Option } from '../Option';
27
+ const propTypes = {
28
+ /**
29
+ * The label associated with the group options.
30
+ */
31
+ renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
24
32
 
25
- export type SimpleSelectGroupProps = {
26
- renderLabel: React.ReactNode | ((...args: any[]) => any)
27
- }
33
+ /**
34
+ * Children of type `<SimpleSelect.Option />` that will be considered part of the group.
35
+ */
36
+ children: ChildrenPropTypes.oneOf([Option])
37
+ };
38
+ const allowedProps = ['renderLabel', 'children'];
39
+ export { propTypes, allowedProps };
@@ -22,14 +22,14 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
  import { Component } from 'react';
25
- import PropTypes from 'prop-types';
26
-
25
+ import { allowedProps, propTypes } from './props';
27
26
  /**
28
27
  ---
29
28
  parent: SimpleSelect
30
29
  id: SimpleSelect.Option
31
30
  ---
32
31
  **/
32
+
33
33
  class Option extends Component {
34
34
  /* istanbul ignore next */
35
35
  render() {
@@ -42,41 +42,10 @@ class Option extends Component {
42
42
 
43
43
  Option.displayName = "Option";
44
44
  Option.componentId = 'SimpleSelect.Option';
45
- Option.propTypes = {
46
- /**
47
- * The id for the option.
48
- */
49
- id: PropTypes.string.isRequired,
50
-
51
- /**
52
- * The value for the option.
53
- */
54
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
55
-
56
- /**
57
- * Whether or not this option is disabled.
58
- */
59
- isDisabled: PropTypes.bool,
60
-
61
- /**
62
- * Content to display before the option label, such as an icon.
63
- */
64
- renderBeforeLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
65
-
66
- /**
67
- * Content to display after the option label, such as an icon.
68
- */
69
- renderAfterLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
70
-
71
- /**
72
- * Content to display as the option label.
73
- */
74
- children: PropTypes.string
75
- };
45
+ Option.allowedProps = allowedProps;
46
+ Option.propTypes = propTypes;
76
47
  Option.defaultProps = {
77
48
  isDisabled: false,
78
- renderBeforeLabel: void 0,
79
- renderAfterLabel: void 0,
80
49
  children: null
81
50
  };
82
51
  export default Option;
@@ -0,0 +1,57 @@
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
+ import PropTypes from 'prop-types';
25
+ const propTypes = {
26
+ /**
27
+ * The id for the option.
28
+ */
29
+ id: PropTypes.string.isRequired,
30
+
31
+ /**
32
+ * The value for the option.
33
+ */
34
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
35
+
36
+ /**
37
+ * Whether or not this option is disabled.
38
+ */
39
+ isDisabled: PropTypes.bool,
40
+
41
+ /**
42
+ * Content to display before the option label, such as an icon.
43
+ */
44
+ renderBeforeLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
45
+
46
+ /**
47
+ * Content to display after the option label, such as an icon.
48
+ */
49
+ renderAfterLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
50
+
51
+ /**
52
+ * Content to display as the option label.
53
+ */
54
+ children: PropTypes.string
55
+ };
56
+ const allowedProps = ['id', 'value', 'isDisabled', 'renderBeforeLabel', 'renderAfterLabel', 'children'];
57
+ export { propTypes, allowedProps };
@@ -29,23 +29,20 @@ var _dec, _class, _class2, _temp;
29
29
  * SOFTWARE.
30
30
  */
31
31
  import React, { Component, Children } from 'react';
32
- import PropTypes from 'prop-types';
33
- import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
34
- import { FormPropTypes } from '@instructure/ui-form-field';
35
- import { PositionPropTypes } from '@instructure/ui-position';
36
32
  import { testable } from '@instructure/ui-testable';
37
33
  import { matchComponentTypes, passthroughProps, callRenderProp, getInteraction } from '@instructure/ui-react-utils';
38
34
  import { uid } from '@instructure/uid';
39
35
  import { Select } from '@instructure/ui-select';
40
36
  import { Option } from './Option';
41
37
  import { Group } from './Group';
42
-
38
+ import { allowedProps, propTypes } from './props';
43
39
  /**
44
40
  ---
45
41
  category: components
46
42
  tags: form, field, dropdown
47
43
  ---
48
44
  **/
45
+
49
46
  let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class SimpleSelect extends Component {
50
47
  constructor(props) {
51
48
  super(props);
@@ -387,182 +384,13 @@ let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class Si
387
384
  }, passthroughProps(rest)), this.renderChildren(children));
388
385
  }
389
386
 
390
- }, _class2.displayName = "SimpleSelect", _class2.componentId = 'SimpleSelect', _class2.Option = Option, _class2.Group = Group, _class2.propTypes = {
391
- /**
392
- * The form field label.
393
- */
394
- renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
395
-
396
- /**
397
- * The value corresponding to the value of the selected option. If defined,
398
- * the component will act controlled and will not manage its own state.
399
- */
400
- // TODO: it was using the "controllable" util, in the TS migration mimic that behaviour
401
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
402
-
403
- /**
404
- * The value of the option to select by default, when uncontrolled.
405
- */
406
- defaultValue: PropTypes.string,
407
-
408
- /**
409
- * The id of the text input. One is generated if not supplied.
410
- */
411
- id: PropTypes.string,
412
-
413
- /**
414
- * The size of the text input.
415
- */
416
- size: PropTypes.oneOf(['small', 'medium', 'large']),
417
-
418
- /**
419
- * Additional helpful text to provide to screen readers about the operation
420
- * of the component. Provided via aria-describedby.
421
- */
422
- assistiveText: PropTypes.string,
423
-
424
- /**
425
- * Html placeholder text to display when the input has no value. This should
426
- * be hint text, not a label replacement.
427
- */
428
- placeholder: PropTypes.string,
429
-
430
- /**
431
- * Specifies if interaction with the input is enabled, disabled, or readonly.
432
- * When "disabled", the input changes visibly to indicate that it cannot
433
- * receive user interactions. When "readonly" the input still cannot receive
434
- * user interactions but it keeps the same styles as if it were enabled.
435
- */
436
- interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
437
-
438
- /**
439
- * Whether or not the text input is required.
440
- */
441
- isRequired: PropTypes.bool,
442
-
443
- /**
444
- * Whether the input is rendered inline with other elements or if it
445
- * is rendered as a block level element.
446
- */
447
- isInline: PropTypes.bool,
448
-
449
- /**
450
- * The width of the text input.
451
- */
452
- width: PropTypes.string,
453
-
454
- /**
455
- * The max width the options list can be before option text wraps. If not
456
- * set, the list will only display as wide as the text input.
457
- */
458
- optionsMaxWidth: PropTypes.string,
459
-
460
- /**
461
- * The number of options that should be visible before having to scroll.
462
- */
463
- visibleOptionsCount: PropTypes.number,
464
-
465
- /**
466
- * Displays messages and validation for the input. It should be an object
467
- * with the following shape:
468
- * `{
469
- * text: PropTypes.string,
470
- * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
471
- * }`
472
- */
473
- messages: PropTypes.arrayOf(FormPropTypes.message),
474
-
475
- /**
476
- * The placement of the options list.
477
- */
478
- placement: PositionPropTypes.placement,
479
-
480
- /**
481
- * The parent in which to constrain the placement.
482
- */
483
- constrain: PositionPropTypes.constrain,
484
-
485
- /**
486
- * An element or a function returning an element to use mount the options
487
- * list to in the DOM (defaults to `document.body`)
488
- */
489
- mountNode: PositionPropTypes.mountNode,
490
-
491
- /**
492
- * Callback fired when a new option is selected.
493
- * @param {Object} event - the event object
494
- * @param {Object} data - additional data
495
- * @param data.value - the value of selected option
496
- * @param data.id - the id of the selected option
497
- */
498
- onChange: PropTypes.func,
499
-
500
- /**
501
- * Callback fired when text input receives focus.
502
- */
503
- onFocus: PropTypes.func,
504
-
505
- /**
506
- * Callback fired when text input loses focus.
507
- */
508
- onBlur: PropTypes.func,
509
-
510
- /**
511
- * Callback fired when the options list is shown.
512
- */
513
- onShowOptions: PropTypes.func,
514
-
515
- /**
516
- * Callback fired when the options list is hidden.
517
- */
518
- onHideOptions: PropTypes.func,
519
-
520
- /**
521
- * A ref to the html `input` element.
522
- */
523
- inputRef: PropTypes.func,
524
-
525
- /**
526
- * A ref to the html `ul` element.
527
- */
528
- listRef: PropTypes.func,
529
-
530
- /**
531
- * Content to display in the list when no options are available.
532
- */
533
- renderEmptyOption: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
534
-
535
- /**
536
- * Content to display before the text input. This will commonly be an icon.
537
- */
538
- renderBeforeInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
539
-
540
- /**
541
- * Content to display after the text input. This content will replace the
542
- * default arrow icons.
543
- */
544
- renderAfterInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
545
-
546
- /**
547
- * Children of type `<SimpleSelect.Option />` or `<SimpleSelect.Group />`.
548
- */
549
- children: ChildrenPropTypes.oneOf([Group, Option])
550
- }, _class2.defaultProps = {
551
- value: void 0,
552
- defaultValue: void 0,
553
- id: void 0,
387
+ }, _class2.displayName = "SimpleSelect", _class2.componentId = 'SimpleSelect', _class2.Option = Option, _class2.Group = Group, _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
554
388
  size: 'medium',
555
- assistiveText: void 0,
556
389
  placeholder: null,
557
- interaction: void 0,
558
390
  isRequired: false,
559
391
  isInline: false,
560
- width: void 0,
561
- optionsMaxWidth: void 0,
562
392
  visibleOptionsCount: 8,
563
- messages: void 0,
564
393
  placement: 'bottom stretch',
565
- mountNode: void 0,
566
394
  constrain: 'window',
567
395
  onChange: (event, data) => {},
568
396
  onFocus: event => {},
@@ -0,0 +1,192 @@
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
+ import PropTypes from 'prop-types';
25
+ import { Children as ChildrenPropTypes } from '@instructure/ui-prop-types';
26
+ import { FormPropTypes } from '@instructure/ui-form-field';
27
+ import { PositionPropTypes } from '@instructure/ui-position';
28
+ import { Group } from './Group';
29
+ import { Option } from './Option';
30
+ const propTypes = {
31
+ /**
32
+ * The form field label.
33
+ */
34
+ renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
35
+
36
+ /**
37
+ * The value corresponding to the value of the selected option. If defined,
38
+ * the component will act controlled and will not manage its own state.
39
+ */
40
+ // TODO: it was using the "controllable" util, in the TS migration mimic that behaviour
41
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
42
+
43
+ /**
44
+ * The value of the option to select by default, when uncontrolled.
45
+ */
46
+ defaultValue: PropTypes.string,
47
+
48
+ /**
49
+ * The id of the text input. One is generated if not supplied.
50
+ */
51
+ id: PropTypes.string,
52
+
53
+ /**
54
+ * The size of the text input.
55
+ */
56
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
57
+
58
+ /**
59
+ * Additional helpful text to provide to screen readers about the operation
60
+ * of the component. Provided via aria-describedby.
61
+ */
62
+ assistiveText: PropTypes.string,
63
+
64
+ /**
65
+ * Html placeholder text to display when the input has no value. This should
66
+ * be hint text, not a label replacement.
67
+ */
68
+ placeholder: PropTypes.string,
69
+
70
+ /**
71
+ * Specifies if interaction with the input is enabled, disabled, or readonly.
72
+ * When "disabled", the input changes visibly to indicate that it cannot
73
+ * receive user interactions. When "readonly" the input still cannot receive
74
+ * user interactions but it keeps the same styles as if it were enabled.
75
+ */
76
+ interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
77
+
78
+ /**
79
+ * Whether or not the text input is required.
80
+ */
81
+ isRequired: PropTypes.bool,
82
+
83
+ /**
84
+ * Whether the input is rendered inline with other elements or if it
85
+ * is rendered as a block level element.
86
+ */
87
+ isInline: PropTypes.bool,
88
+
89
+ /**
90
+ * The width of the text input.
91
+ */
92
+ width: PropTypes.string,
93
+
94
+ /**
95
+ * The max width the options list can be before option text wraps. If not
96
+ * set, the list will only display as wide as the text input.
97
+ */
98
+ optionsMaxWidth: PropTypes.string,
99
+
100
+ /**
101
+ * The number of options that should be visible before having to scroll.
102
+ */
103
+ visibleOptionsCount: PropTypes.number,
104
+
105
+ /**
106
+ * Displays messages and validation for the input. It should be an object
107
+ * with the following shape:
108
+ * `{
109
+ * text: PropTypes.string,
110
+ * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
111
+ * }`
112
+ */
113
+ messages: PropTypes.arrayOf(FormPropTypes.message),
114
+
115
+ /**
116
+ * The placement of the options list.
117
+ */
118
+ placement: PositionPropTypes.placement,
119
+
120
+ /**
121
+ * The parent in which to constrain the placement.
122
+ */
123
+ constrain: PositionPropTypes.constrain,
124
+
125
+ /**
126
+ * An element or a function returning an element to use mount the options
127
+ * list to in the DOM (defaults to `document.body`)
128
+ */
129
+ mountNode: PositionPropTypes.mountNode,
130
+
131
+ /**
132
+ * Callback fired when a new option is selected.
133
+ * @param {Object} event - the event object
134
+ * @param {Object} data - additional data
135
+ * @param data.value - the value of selected option
136
+ * @param data.id - the id of the selected option
137
+ */
138
+ onChange: PropTypes.func,
139
+
140
+ /**
141
+ * Callback fired when text input receives focus.
142
+ */
143
+ onFocus: PropTypes.func,
144
+
145
+ /**
146
+ * Callback fired when text input loses focus.
147
+ */
148
+ onBlur: PropTypes.func,
149
+
150
+ /**
151
+ * Callback fired when the options list is shown.
152
+ */
153
+ onShowOptions: PropTypes.func,
154
+
155
+ /**
156
+ * Callback fired when the options list is hidden.
157
+ */
158
+ onHideOptions: PropTypes.func,
159
+
160
+ /**
161
+ * A ref to the html `input` element.
162
+ */
163
+ inputRef: PropTypes.func,
164
+
165
+ /**
166
+ * A ref to the html `ul` element.
167
+ */
168
+ listRef: PropTypes.func,
169
+
170
+ /**
171
+ * Content to display in the list when no options are available.
172
+ */
173
+ renderEmptyOption: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
174
+
175
+ /**
176
+ * Content to display before the text input. This will commonly be an icon.
177
+ */
178
+ renderBeforeInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
179
+
180
+ /**
181
+ * Content to display after the text input. This content will replace the
182
+ * default arrow icons.
183
+ */
184
+ renderAfterInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
185
+
186
+ /**
187
+ * Children of type `<SimpleSelect.Option />` or `<SimpleSelect.Group />`.
188
+ */
189
+ children: ChildrenPropTypes.oneOf([Group, Option])
190
+ };
191
+ const allowedProps = ['renderLabel', 'value', 'defaultValue', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'optionsMaxWidth', 'visibleOptionsCount', 'messages', 'placement', 'constrain', 'mountNode', 'onChange', 'onFocus', 'onBlur', 'onShowOptions', 'onHideOptions', 'inputRef', 'listRef', 'renderEmptyOption', 'renderBeforeInput', 'renderAfterInput', 'children'];
192
+ export { propTypes, allowedProps };