@instructure/ui-select 11.7.4-snapshot-14 → 11.7.4-snapshot-49

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 (44) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -0
  3. package/es/Select/v1/Group/index.js +3 -2
  4. package/es/Select/v1/Option/index.js +3 -2
  5. package/es/Select/v1/index.js +6 -6
  6. package/es/Select/v2/Group/index.js +3 -2
  7. package/es/Select/v2/Option/index.js +3 -2
  8. package/es/Select/v2/index.js +5 -5
  9. package/es/exports/a.js +4 -3
  10. package/es/exports/b.js +4 -3
  11. package/lib/Select/v1/Group/index.js +2 -2
  12. package/lib/Select/v1/Option/index.js +2 -2
  13. package/lib/Select/v1/index.js +16 -16
  14. package/lib/Select/v2/Group/index.js +2 -2
  15. package/lib/Select/v2/Option/index.js +2 -2
  16. package/lib/Select/v2/index.js +15 -15
  17. package/lib/exports/a.js +6 -6
  18. package/lib/exports/b.js +6 -6
  19. package/package.json +19 -19
  20. package/src/Select/v1/Group/index.tsx +2 -1
  21. package/src/Select/v1/Option/index.tsx +2 -1
  22. package/src/Select/v1/index.tsx +6 -5
  23. package/src/Select/v2/Group/index.tsx +2 -1
  24. package/src/Select/v2/Option/index.tsx +2 -1
  25. package/src/Select/v2/index.tsx +5 -4
  26. package/src/exports/a.ts +3 -3
  27. package/src/exports/b.ts +3 -3
  28. package/tsconfig.build.tsbuildinfo +1 -1
  29. package/types/Select/v1/Group/index.d.ts +1 -0
  30. package/types/Select/v1/Group/index.d.ts.map +1 -1
  31. package/types/Select/v1/Option/index.d.ts +1 -0
  32. package/types/Select/v1/Option/index.d.ts.map +1 -1
  33. package/types/Select/v1/index.d.ts +3 -2
  34. package/types/Select/v1/index.d.ts.map +1 -1
  35. package/types/Select/v2/Group/index.d.ts +1 -0
  36. package/types/Select/v2/Group/index.d.ts.map +1 -1
  37. package/types/Select/v2/Option/index.d.ts +1 -0
  38. package/types/Select/v2/Option/index.d.ts.map +1 -1
  39. package/types/Select/v2/index.d.ts +3 -2
  40. package/types/Select/v2/index.d.ts.map +1 -1
  41. package/types/exports/a.d.ts +3 -3
  42. package/types/exports/a.d.ts.map +1 -1
  43. package/types/exports/b.d.ts +3 -3
  44. package/types/exports/b.d.ts.map +1 -1
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
- ## [11.7.4-snapshot-14](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-14) (2026-05-20)
6
+ ## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-select
9
9
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -23,7 +23,8 @@
23
23
  */
24
24
 
25
25
  import { Component } from 'react';
26
- import { allowedProps } from "./props.js";
26
+ import { allowedProps } from './props.js';
27
+
27
28
  /**
28
29
  ---
29
30
  parent: Select
@@ -32,7 +33,7 @@ id: Select.Group
32
33
  @module Group
33
34
  **/
34
35
  class Group extends Component {
35
- static displayName = "Group";
36
+ static displayName = 'Group';
36
37
  static componentId = 'Select.Group';
37
38
  static allowedProps = allowedProps;
38
39
  static defaultProps = {};
@@ -23,7 +23,8 @@
23
23
  */
24
24
 
25
25
  import { Component } from 'react';
26
- import { allowedProps } from "./props.js";
26
+ import { allowedProps } from './props.js';
27
+
27
28
  /**
28
29
  ---
29
30
  parent: Select
@@ -32,7 +33,7 @@ id: Select.Option
32
33
  @module Option
33
34
  **/
34
35
  class Option extends Component {
35
- static displayName = "Option";
36
+ static displayName = 'Option';
36
37
  static componentId = 'Select.Option';
37
38
  static allowedProps = allowedProps;
38
39
  static defaultProps = {
@@ -35,11 +35,11 @@ import { TextInput } from '@instructure/ui-text-input/v11_6';
35
35
  import { Options } from '@instructure/ui-options/v11_6';
36
36
  import { IconArrowOpenDownLine, IconArrowOpenUpLine } from '@instructure/ui-icons';
37
37
  import { withStyle } from '@instructure/emotion';
38
- import generateStyle from "./styles.js";
39
- import generateComponentTheme from "./theme.js";
40
- import { Group } from "./Group/index.js";
41
- import { Option } from "./Option/index.js";
42
- import { allowedProps } from "./props.js";
38
+ import generateStyle from './styles.js';
39
+ import generateComponentTheme from './theme.js';
40
+ import { Group } from './Group/index.js';
41
+ import { Option } from './Option/index.js';
42
+ import { allowedProps } from './props.js';
43
43
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
44
44
  // This memoed Option component is used to prevent unnecessary re-renders of
45
45
  // Options.Item when the Select component is re-rendered. This is necessary
@@ -75,7 +75,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
75
75
  ---
76
76
  **/
77
77
  let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class Select extends Component {
78
- static displayName = "Select";
78
+ static displayName = 'Select';
79
79
  static componentId = 'Select';
80
80
  SCROLL_TOLERANCE = 0.5;
81
81
  static allowedProps = allowedProps;
@@ -23,7 +23,8 @@
23
23
  */
24
24
 
25
25
  import { Component } from 'react';
26
- import { allowedProps } from "./props.js";
26
+ import { allowedProps } from './props.js';
27
+
27
28
  /**
28
29
  ---
29
30
  parent: Select
@@ -32,7 +33,7 @@ id: Select.Group
32
33
  @module Group
33
34
  **/
34
35
  class Group extends Component {
35
- static displayName = "Group";
36
+ static displayName = 'Group';
36
37
  static componentId = 'Select.Group';
37
38
  static allowedProps = allowedProps;
38
39
  static defaultProps = {};
@@ -23,7 +23,8 @@
23
23
  */
24
24
 
25
25
  import { Component } from 'react';
26
- import { allowedProps } from "./props.js";
26
+ import { allowedProps } from './props.js';
27
+
27
28
  /**
28
29
  ---
29
30
  parent: Select
@@ -32,7 +33,7 @@ id: Select.Option
32
33
  @module Option
33
34
  **/
34
35
  class Option extends Component {
35
- static displayName = "Option";
36
+ static displayName = 'Option';
36
37
  static componentId = 'Select.Option';
37
38
  static allowedProps = allowedProps;
38
39
  static defaultProps = {
@@ -35,10 +35,10 @@ import { TextInput } from '@instructure/ui-text-input/latest';
35
35
  import { Options } from '@instructure/ui-options/latest';
36
36
  import { ChevronDownInstUIIcon, ChevronUpInstUIIcon } from '@instructure/ui-icons';
37
37
  import { withStyleNew } from '@instructure/emotion';
38
- import generateStyle from "./styles.js";
39
- import { Group } from "./Group/index.js";
40
- import { Option } from "./Option/index.js";
41
- import { allowedProps } from "./props.js";
38
+ import generateStyle from './styles.js';
39
+ import { Group } from './Group/index.js';
40
+ import { Option } from './Option/index.js';
41
+ import { allowedProps } from './props.js';
42
42
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
43
43
  const selectSizeToIconSize = {
44
44
  small: 'sm',
@@ -79,7 +79,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
79
79
  ---
80
80
  **/
81
81
  let Select = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Select extends Component {
82
- static displayName = "Select";
82
+ static displayName = 'Select';
83
83
  static componentId = 'Select';
84
84
  SCROLL_TOLERANCE = 0.5;
85
85
  static allowedProps = allowedProps;
package/es/exports/a.js CHANGED
@@ -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
- export { Select } from "../Select/v1/index.js";
25
- export { Group as SelectGroup } from "../Select/v1/Group/index.js";
26
- export { Option as SelectOption } from "../Select/v1/Option/index.js";
24
+
25
+ export { Select } from '../Select/v1/index.js';
26
+ export { Group as SelectGroup } from '../Select/v1/Group/index.js';
27
+ export { Option as SelectOption } from '../Select/v1/Option/index.js';
package/es/exports/b.js CHANGED
@@ -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
- export { Select } from "../Select/v2/index.js";
25
- export { Group as SelectGroup } from "../Select/v2/Group/index.js";
26
- export { Option as SelectOption } from "../Select/v2/Option/index.js";
24
+
25
+ export { Select } from '../Select/v2/index.js';
26
+ export { Group as SelectGroup } from '../Select/v2/Group/index.js';
27
+ export { Option as SelectOption } from '../Select/v2/Option/index.js';
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Group = void 0;
7
7
  var _react = require("react");
8
- var _props = require("./props");
8
+ var _props = require("./props.js");
9
9
  /*
10
10
  * The MIT License (MIT)
11
11
  *
@@ -38,7 +38,7 @@ id: Select.Group
38
38
  @module Group
39
39
  **/
40
40
  class Group extends _react.Component {
41
- static displayName = "Group";
41
+ static displayName = 'Group';
42
42
  static componentId = 'Select.Group';
43
43
  static allowedProps = _props.allowedProps;
44
44
  static defaultProps = {};
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Option = void 0;
7
7
  var _react = require("react");
8
- var _props = require("./props");
8
+ var _props = require("./props.js");
9
9
  /*
10
10
  * The MIT License (MIT)
11
11
  *
@@ -38,7 +38,7 @@ id: Select.Option
38
38
  @module Option
39
39
  **/
40
40
  class Option extends _react.Component {
41
- static displayName = "Option";
41
+ static displayName = 'Option';
42
42
  static componentId = 'Select.Option';
43
43
  static allowedProps = _props.allowedProps;
44
44
  static defaultProps = {
@@ -23,11 +23,11 @@ var _v11_4 = require("@instructure/ui-options/v11_6");
23
23
  var _IconArrowOpenDownLine = require("@instructure/ui-icons/lib/generated/IconArrowOpenDownLine.js");
24
24
  var _IconArrowOpenUpLine = require("@instructure/ui-icons/lib/generated/IconArrowOpenUpLine.js");
25
25
  var _emotion = require("@instructure/emotion");
26
- var _styles = _interopRequireDefault(require("./styles"));
27
- var _theme = _interopRequireDefault(require("./theme"));
28
- var _Group = require("./Group");
29
- var _Option = require("./Option");
30
- var _props = require("./props");
26
+ var _styles = _interopRequireDefault(require("./styles.js"));
27
+ var _theme = _interopRequireDefault(require("./theme.js"));
28
+ var _index = require("./Group/index.js");
29
+ var _index2 = require("./Option/index.js");
30
+ var _props = require("./props.js");
31
31
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
32
32
  var _dec, _dec2, _class;
33
33
  /*
@@ -87,7 +87,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
87
87
  ---
88
88
  **/
89
89
  let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class Select extends _react.Component {
90
- static displayName = "Select";
90
+ static displayName = 'Select';
91
91
  static componentId = 'Select';
92
92
  SCROLL_TOLERANCE = 0.5;
93
93
  static allowedProps = _props.allowedProps;
@@ -106,8 +106,8 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
106
106
  scrollToHighlightedOption: true,
107
107
  isOptionContentAppliedToInput: false
108
108
  };
109
- static Option = _Option.Option;
110
- static Group = _Group.Group;
109
+ static Option = _index2.Option;
110
+ static Group = _index.Group;
111
111
  componentDidMount() {
112
112
  this.props.makeStyles?.();
113
113
  }
@@ -159,7 +159,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
159
159
  get highlightedOptionId() {
160
160
  let highlightedOptionId;
161
161
  this.childrenArray.forEach(child => {
162
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
162
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
163
163
  // group found
164
164
  this.getGroupChildrenArray(child).forEach(option => {
165
165
  // check options in group
@@ -179,7 +179,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
179
179
  get selectedOptionId() {
180
180
  const selectedOptionId = [];
181
181
  this.childrenArray.forEach(child => {
182
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
182
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
183
183
  // group found
184
184
  this.getGroupChildrenArray(child).forEach(option => {
185
185
  // check options in group
@@ -333,7 +333,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
333
333
  };
334
334
  let optionProps = {
335
335
  // passthrough props
336
- ...(0, _omitProps.omitProps)(option.props, [..._Option.Option.allowedProps, ..._v11_4.Options.Item.allowedProps]),
336
+ ...(0, _omitProps.omitProps)(option.props, [..._index2.Option.allowedProps, ..._v11_4.Options.Item.allowedProps]),
337
337
  // props from selectable
338
338
  ...getOptionProps({
339
339
  id
@@ -395,7 +395,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
395
395
  as: "ul",
396
396
  role: "group",
397
397
  renderLabel: renderLabel,
398
- ...(0, _omitProps.omitProps)(rest, [..._v11_4.Options.allowedProps, ..._Group.Group.allowedProps]),
398
+ ...(0, _omitProps.omitProps)(rest, [..._v11_4.Options.allowedProps, ..._index.Group.allowedProps]),
399
399
  children: _react.Children.map(children, child => {
400
400
  return this.renderOption(child, {
401
401
  getOptionProps,
@@ -444,17 +444,17 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
444
444
  elementRef: this.handleListRef
445
445
  }),
446
446
  children: isShowingOptions ? _react.Children.map(children, (child, index) => {
447
- if (!child || !(0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group, _Option.Option])) {
447
+ if (!child || !(0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group, _index2.Option])) {
448
448
  return; // ignore invalid children
449
449
  }
450
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Option.Option])) {
450
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.Option])) {
451
451
  lastWasGroup = false;
452
452
  return this.renderOption(child, {
453
453
  getOptionProps,
454
454
  getDisabledOptionProps
455
455
  });
456
456
  }
457
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
457
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
458
458
  const afterGroup = lastWasGroup;
459
459
  lastWasGroup = true;
460
460
  return this.renderGroup(child, {
@@ -487,7 +487,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
487
487
  }
488
488
  renderContentBeforeOrAfterInput(position) {
489
489
  for (const child of this.childrenArray) {
490
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
490
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
491
491
  // Group found
492
492
  const options = this.getGroupChildrenArray(child);
493
493
  for (const option of options) {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Group = void 0;
7
7
  var _react = require("react");
8
- var _props = require("./props");
8
+ var _props = require("./props.js");
9
9
  /*
10
10
  * The MIT License (MIT)
11
11
  *
@@ -38,7 +38,7 @@ id: Select.Group
38
38
  @module Group
39
39
  **/
40
40
  class Group extends _react.Component {
41
- static displayName = "Group";
41
+ static displayName = 'Group';
42
42
  static componentId = 'Select.Group';
43
43
  static allowedProps = _props.allowedProps;
44
44
  static defaultProps = {};
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.Option = void 0;
7
7
  var _react = require("react");
8
- var _props = require("./props");
8
+ var _props = require("./props.js");
9
9
  /*
10
10
  * The MIT License (MIT)
11
11
  *
@@ -38,7 +38,7 @@ id: Select.Option
38
38
  @module Option
39
39
  **/
40
40
  class Option extends _react.Component {
41
- static displayName = "Option";
41
+ static displayName = 'Option';
42
42
  static componentId = 'Select.Option';
43
43
  static allowedProps = _props.allowedProps;
44
44
  static defaultProps = {
@@ -22,10 +22,10 @@ var _latest3 = require("@instructure/ui-text-input/latest");
22
22
  var _latest4 = require("@instructure/ui-options/latest");
23
23
  var _uiIcons = require("@instructure/ui-icons");
24
24
  var _emotion = require("@instructure/emotion");
25
- var _styles = _interopRequireDefault(require("./styles"));
26
- var _Group = require("./Group");
27
- var _Option = require("./Option");
28
- var _props = require("./props");
25
+ var _styles = _interopRequireDefault(require("./styles.js"));
26
+ var _index = require("./Group/index.js");
27
+ var _index2 = require("./Option/index.js");
28
+ var _props = require("./props.js");
29
29
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
30
30
  var _dec, _dec2, _class;
31
31
  /*
@@ -90,7 +90,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
90
90
  ---
91
91
  **/
92
92
  let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = _dec2(_class = class Select extends _react.Component {
93
- static displayName = "Select";
93
+ static displayName = 'Select';
94
94
  static componentId = 'Select';
95
95
  SCROLL_TOLERANCE = 0.5;
96
96
  static allowedProps = _props.allowedProps;
@@ -109,8 +109,8 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
109
109
  scrollToHighlightedOption: true,
110
110
  isOptionContentAppliedToInput: false
111
111
  };
112
- static Option = _Option.Option;
113
- static Group = _Group.Group;
112
+ static Option = _index2.Option;
113
+ static Group = _index.Group;
114
114
  componentDidMount() {
115
115
  this.props.makeStyles?.();
116
116
  }
@@ -162,7 +162,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
162
162
  get highlightedOptionId() {
163
163
  let highlightedOptionId;
164
164
  this.childrenArray.forEach(child => {
165
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
165
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
166
166
  // group found
167
167
  this.getGroupChildrenArray(child).forEach(option => {
168
168
  // check options in group
@@ -182,7 +182,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
182
182
  get selectedOptionId() {
183
183
  const selectedOptionId = [];
184
184
  this.childrenArray.forEach(child => {
185
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
185
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
186
186
  // group found
187
187
  this.getGroupChildrenArray(child).forEach(option => {
188
188
  // check options in group
@@ -336,7 +336,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
336
336
  };
337
337
  let optionProps = {
338
338
  // passthrough props
339
- ...(0, _omitProps.omitProps)(option.props, [..._Option.Option.allowedProps, ..._latest4.Options.Item.allowedProps]),
339
+ ...(0, _omitProps.omitProps)(option.props, [..._index2.Option.allowedProps, ..._latest4.Options.Item.allowedProps]),
340
340
  // props from selectable
341
341
  ...getOptionProps({
342
342
  id
@@ -398,7 +398,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
398
398
  as: "ul",
399
399
  role: "group",
400
400
  renderLabel: renderLabel,
401
- ...(0, _omitProps.omitProps)(rest, [..._latest4.Options.allowedProps, ..._Group.Group.allowedProps]),
401
+ ...(0, _omitProps.omitProps)(rest, [..._latest4.Options.allowedProps, ..._index.Group.allowedProps]),
402
402
  children: _react.Children.map(children, child => {
403
403
  return this.renderOption(child, {
404
404
  getOptionProps,
@@ -447,17 +447,17 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
447
447
  elementRef: this.handleListRef
448
448
  }),
449
449
  children: isShowingOptions ? _react.Children.map(children, (child, index) => {
450
- if (!child || !(0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group, _Option.Option])) {
450
+ if (!child || !(0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group, _index2.Option])) {
451
451
  return; // ignore invalid children
452
452
  }
453
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Option.Option])) {
453
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index2.Option])) {
454
454
  lastWasGroup = false;
455
455
  return this.renderOption(child, {
456
456
  getOptionProps,
457
457
  getDisabledOptionProps
458
458
  });
459
459
  }
460
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
460
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
461
461
  const afterGroup = lastWasGroup;
462
462
  lastWasGroup = true;
463
463
  return this.renderGroup(child, {
@@ -494,7 +494,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
494
494
  }
495
495
  renderContentBeforeOrAfterInput(position) {
496
496
  for (const child of this.childrenArray) {
497
- if ((0, _matchComponentTypes.matchComponentTypes)(child, [_Group.Group])) {
497
+ if ((0, _matchComponentTypes.matchComponentTypes)(child, [_index.Group])) {
498
498
  // Group found
499
499
  const options = this.getGroupChildrenArray(child);
500
500
  for (const option of options) {
package/lib/exports/a.js CHANGED
@@ -6,21 +6,21 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Select", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Select;
9
+ return _index.Select;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "SelectGroup", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _Group.Group;
15
+ return _index2.Group;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "SelectOption", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _Option.Option;
21
+ return _index3.Option;
22
22
  }
23
23
  });
24
- var _v = require("../Select/v1");
25
- var _Group = require("../Select/v1/Group");
26
- var _Option = require("../Select/v1/Option");
24
+ var _index = require("../Select/v1/index.js");
25
+ var _index2 = require("../Select/v1/Group/index.js");
26
+ var _index3 = require("../Select/v1/Option/index.js");
package/lib/exports/b.js CHANGED
@@ -6,21 +6,21 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Select", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Select;
9
+ return _index.Select;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "SelectGroup", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _Group.Group;
15
+ return _index2.Group;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "SelectOption", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _Option.Option;
21
+ return _index3.Option;
22
22
  }
23
23
  });
24
- var _v = require("../Select/v2");
25
- var _Group = require("../Select/v2/Group");
26
- var _Option = require("../Select/v2/Option");
24
+ var _index = require("../Select/v2/index.js");
25
+ var _index2 = require("../Select/v2/Group/index.js");
26
+ var _index3 = require("../Select/v2/Option/index.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "11.7.4-snapshot-14",
3
+ "version": "11.7.4-snapshot-49",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,30 +15,30 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.4-snapshot-14",
19
- "@instructure/shared-types": "11.7.4-snapshot-14",
20
- "@instructure/ui-form-field": "11.7.4-snapshot-14",
21
- "@instructure/ui-dom-utils": "11.7.4-snapshot-14",
22
- "@instructure/ui-icons": "11.7.4-snapshot-14",
23
- "@instructure/ui-options": "11.7.4-snapshot-14",
24
- "@instructure/ui-popover": "11.7.4-snapshot-14",
25
- "@instructure/ui-position": "11.7.4-snapshot-14",
26
- "@instructure/ui-react-utils": "11.7.4-snapshot-14",
27
- "@instructure/ui-text-input": "11.7.4-snapshot-14",
28
- "@instructure/ui-selectable": "11.7.4-snapshot-14",
29
- "@instructure/ui-themes": "11.7.4-snapshot-14",
30
- "@instructure/ui-view": "11.7.4-snapshot-14",
31
- "@instructure/uid": "11.7.4-snapshot-14",
32
- "@instructure/ui-utils": "11.7.4-snapshot-14"
18
+ "@instructure/emotion": "11.7.4-snapshot-49",
19
+ "@instructure/shared-types": "11.7.4-snapshot-49",
20
+ "@instructure/ui-dom-utils": "11.7.4-snapshot-49",
21
+ "@instructure/ui-icons": "11.7.4-snapshot-49",
22
+ "@instructure/ui-form-field": "11.7.4-snapshot-49",
23
+ "@instructure/ui-options": "11.7.4-snapshot-49",
24
+ "@instructure/ui-position": "11.7.4-snapshot-49",
25
+ "@instructure/ui-react-utils": "11.7.4-snapshot-49",
26
+ "@instructure/ui-text-input": "11.7.4-snapshot-49",
27
+ "@instructure/ui-themes": "11.7.4-snapshot-49",
28
+ "@instructure/ui-popover": "11.7.4-snapshot-49",
29
+ "@instructure/ui-utils": "11.7.4-snapshot-49",
30
+ "@instructure/ui-view": "11.7.4-snapshot-49",
31
+ "@instructure/ui-selectable": "11.7.4-snapshot-49",
32
+ "@instructure/uid": "11.7.4-snapshot-49"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/jest-dom": "^6.6.3",
36
36
  "@testing-library/react": "15.0.7",
37
37
  "@testing-library/user-event": "^14.6.1",
38
38
  "vitest": "^3.2.2",
39
- "@instructure/ui-babel-preset": "11.7.4-snapshot-14",
40
- "@instructure/ui-color-utils": "11.7.4-snapshot-14",
41
- "@instructure/ui-scripts": "11.7.4-snapshot-14"
39
+ "@instructure/ui-color-utils": "11.7.4-snapshot-49",
40
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-49",
41
+ "@instructure/ui-scripts": "11.7.4-snapshot-49"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=18 <=19"
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
  import type { SelectGroupProps } from './props'
27
- import { allowedProps } from './props'
27
+ import { allowedProps } from './props.js'
28
28
 
29
29
  /**
30
30
  ---
@@ -34,6 +34,7 @@ id: Select.Group
34
34
  @module Group
35
35
  **/
36
36
  class Group extends Component<SelectGroupProps> {
37
+ static displayName = 'Group'
37
38
  static readonly componentId = 'Select.Group'
38
39
 
39
40
  static allowedProps = allowedProps
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
  import type { SelectOptionProps } from './props'
27
- import { allowedProps } from './props'
27
+ import { allowedProps } from './props.js'
28
28
 
29
29
  /**
30
30
  ---
@@ -34,6 +34,7 @@ id: Select.Option
34
34
  @module Option
35
35
  **/
36
36
  class Option extends Component<SelectOptionProps> {
37
+ static displayName = 'Option'
37
38
  static readonly componentId = 'Select.Option'
38
39
 
39
40
  static allowedProps = allowedProps
@@ -61,16 +61,16 @@ import type {
61
61
 
62
62
  import { withStyle, BorderWidth } from '@instructure/emotion'
63
63
 
64
- import generateStyle from './styles'
65
- import generateComponentTheme from './theme'
64
+ import generateStyle from './styles.js'
65
+ import generateComponentTheme from './theme.js'
66
66
 
67
- import { Group } from './Group'
67
+ import { Group } from './Group/index.js'
68
68
  import type { SelectGroupProps } from './Group/props'
69
- import { Option } from './Option'
69
+ import { Option } from './Option/index.js'
70
70
  import type { SelectOptionProps, RenderSelectOptionLabel } from './Option/props'
71
71
 
72
72
  import type { SelectProps } from './props'
73
- import { allowedProps } from './props'
73
+ import { allowedProps } from './props.js'
74
74
  import { Renderable } from '@instructure/shared-types'
75
75
 
76
76
  type GroupChild = ComponentElement<SelectGroupProps, Group>
@@ -131,6 +131,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
131
131
  @withDeterministicId()
132
132
  @withStyle(generateStyle, generateComponentTheme)
133
133
  class Select extends Component<SelectProps> {
134
+ static displayName = 'Select'
134
135
  static readonly componentId = 'Select'
135
136
  private readonly SCROLL_TOLERANCE = 0.5
136
137
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
  import type { SelectGroupProps } from './props'
27
- import { allowedProps } from './props'
27
+ import { allowedProps } from './props.js'
28
28
 
29
29
  /**
30
30
  ---
@@ -34,6 +34,7 @@ id: Select.Group
34
34
  @module Group
35
35
  **/
36
36
  class Group extends Component<SelectGroupProps> {
37
+ static displayName = 'Group'
37
38
  static readonly componentId = 'Select.Group'
38
39
 
39
40
  static allowedProps = allowedProps