@instructure/ui-select 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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 (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/Select/v2/Group/props.js → babel.config.cjs} +12 -7
  4. package/es/Select/v1/Group/index.js +3 -2
  5. package/es/Select/v1/Option/index.js +3 -2
  6. package/es/Select/v1/index.js +6 -6
  7. package/es/Select/v2/Group/index.js +3 -2
  8. package/es/Select/v2/Option/index.js +3 -2
  9. package/es/Select/v2/index.js +5 -5
  10. package/es/exports/a.js +4 -3
  11. package/es/exports/b.js +4 -3
  12. package/package.json +21 -26
  13. package/src/Select/v1/Group/index.tsx +2 -1
  14. package/src/Select/v1/Option/index.tsx +2 -1
  15. package/src/Select/v1/index.tsx +6 -5
  16. package/src/Select/v2/Group/index.tsx +2 -1
  17. package/src/Select/v2/Option/index.tsx +2 -1
  18. package/src/Select/v2/index.tsx +5 -4
  19. package/src/exports/a.ts +3 -3
  20. package/src/exports/b.ts +3 -3
  21. package/tsconfig.build.tsbuildinfo +1 -1
  22. package/types/Select/v1/Group/index.d.ts +1 -0
  23. package/types/Select/v1/Group/index.d.ts.map +1 -1
  24. package/types/Select/v1/Option/index.d.ts +1 -0
  25. package/types/Select/v1/Option/index.d.ts.map +1 -1
  26. package/types/Select/v1/index.d.ts +3 -2
  27. package/types/Select/v1/index.d.ts.map +1 -1
  28. package/types/Select/v2/Group/index.d.ts +1 -0
  29. package/types/Select/v2/Group/index.d.ts.map +1 -1
  30. package/types/Select/v2/Option/index.d.ts +1 -0
  31. package/types/Select/v2/Option/index.d.ts.map +1 -1
  32. package/types/Select/v2/index.d.ts +3 -2
  33. package/types/Select/v2/index.d.ts.map +1 -1
  34. package/types/exports/a.d.ts +3 -3
  35. package/types/exports/a.d.ts.map +1 -1
  36. package/types/exports/b.d.ts +3 -3
  37. package/types/exports/b.d.ts.map +1 -1
  38. package/lib/Select/v1/Group/index.js +0 -54
  39. package/lib/Select/v1/Group/props.js +0 -31
  40. package/lib/Select/v1/Option/index.js +0 -58
  41. package/lib/Select/v1/Option/props.js +0 -31
  42. package/lib/Select/v1/index.js +0 -711
  43. package/lib/Select/v1/props.js +0 -40
  44. package/lib/Select/v1/styles.js +0 -72
  45. package/lib/Select/v1/theme.js +0 -56
  46. package/lib/Select/v2/Group/index.js +0 -54
  47. package/lib/Select/v2/Option/index.js +0 -58
  48. package/lib/Select/v2/Option/props.js +0 -31
  49. package/lib/Select/v2/index.js +0 -721
  50. package/lib/Select/v2/props.js +0 -40
  51. package/lib/Select/v2/styles.js +0 -46
  52. package/lib/exports/a.js +0 -26
  53. package/lib/exports/b.js +0 -26
  54. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-select
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
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)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['renderLabel', 'children'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -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';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A component for select and autocomplete behavior.",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,30 +15,30 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.3",
19
- "@instructure/shared-types": "11.7.3",
20
- "@instructure/ui-dom-utils": "11.7.3",
21
- "@instructure/ui-form-field": "11.7.3",
22
- "@instructure/ui-icons": "11.7.3",
23
- "@instructure/ui-options": "11.7.3",
24
- "@instructure/ui-popover": "11.7.3",
25
- "@instructure/ui-react-utils": "11.7.3",
26
- "@instructure/ui-selectable": "11.7.3",
27
- "@instructure/ui-position": "11.7.3",
28
- "@instructure/ui-themes": "11.7.3",
29
- "@instructure/ui-text-input": "11.7.3",
30
- "@instructure/ui-utils": "11.7.3",
31
- "@instructure/ui-view": "11.7.3",
32
- "@instructure/uid": "11.7.3"
18
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-form-field": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-popover": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-options": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-text-input": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-selectable": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/uid": "11.7.4-pr-snapshot-1781695314229",
31
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
32
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229"
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-color-utils": "11.7.3",
40
- "@instructure/ui-babel-preset": "11.7.3",
41
- "@instructure/ui-scripts": "11.7.3"
39
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
40
+ "@instructure/ui-scripts": "11.7.4-pr-snapshot-1781695314229",
41
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=18 <=19"
@@ -48,7 +48,6 @@
48
48
  },
49
49
  "sideEffects": false,
50
50
  "exports": {
51
- "./lib/*": "./lib/*",
52
51
  "./es/*": "./es/*",
53
52
  "./types/*": "./types/*",
54
53
  "./package.json": "./package.json",
@@ -57,28 +56,24 @@
57
56
  "src": "./src/exports/a.ts",
58
57
  "types": "./types/exports/a.d.ts",
59
58
  "import": "./es/exports/a.js",
60
- "require": "./lib/exports/a.js",
61
59
  "default": "./es/exports/a.js"
62
60
  },
63
61
  "./v11_6": {
64
62
  "src": "./src/exports/a.ts",
65
63
  "types": "./types/exports/a.d.ts",
66
64
  "import": "./es/exports/a.js",
67
- "require": "./lib/exports/a.js",
68
65
  "default": "./es/exports/a.js"
69
66
  },
70
67
  "./v11_7": {
71
68
  "src": "./src/exports/b.ts",
72
69
  "types": "./types/exports/b.d.ts",
73
70
  "import": "./es/exports/b.js",
74
- "require": "./lib/exports/b.js",
75
71
  "default": "./es/exports/b.js"
76
72
  },
77
73
  "./latest": {
78
74
  "src": "./src/exports/b.ts",
79
75
  "types": "./types/exports/b.d.ts",
80
76
  "import": "./es/exports/b.js",
81
- "require": "./lib/exports/b.js",
82
77
  "default": "./es/exports/b.js"
83
78
  }
84
79
  },
@@ -86,7 +81,7 @@
86
81
  "lint": "ui-scripts lint",
87
82
  "lint:fix": "ui-scripts lint --fix",
88
83
  "clean": "ui-scripts clean",
89
- "build": "ui-scripts build --modules es,cjs",
84
+ "build": "ui-scripts build",
90
85
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
91
86
  "build:types": "tsc -p tsconfig.build.json",
92
87
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -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
@@ -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,15 +61,15 @@ import type {
61
61
 
62
62
  import { withStyleNew, BorderWidth } from '@instructure/emotion'
63
63
 
64
- import generateStyle from './styles'
64
+ import generateStyle from './styles.js'
65
65
 
66
- import { Group } from './Group'
66
+ import { Group } from './Group/index.js'
67
67
  import type { SelectGroupProps } from './Group/props'
68
- import { Option } from './Option'
68
+ import { Option } from './Option/index.js'
69
69
  import type { SelectOptionProps, RenderSelectOptionLabel } from './Option/props'
70
70
 
71
71
  import type { SelectProps } from './props'
72
- import { allowedProps } from './props'
72
+ import { allowedProps } from './props.js'
73
73
  import { Renderable } from '@instructure/shared-types'
74
74
 
75
75
  const selectSizeToIconSize: Record<
@@ -139,6 +139,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
139
139
  @withDeterministicId()
140
140
  @withStyleNew(generateStyle)
141
141
  class Select extends Component<SelectProps> {
142
+ static displayName = 'Select'
142
143
  static readonly componentId = 'Select'
143
144
  private readonly SCROLL_TOLERANCE = 0.5
144
145
 
package/src/exports/a.ts CHANGED
@@ -22,9 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { Select } from '../Select/v1'
26
- export { Group as SelectGroup } from '../Select/v1/Group'
27
- export { Option as SelectOption } from '../Select/v1/Option'
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'
28
28
 
29
29
  export type { SelectProps, SelectOwnProps } from '../Select/v1/props'
30
30
  export type { SelectGroupProps } from '../Select/v1/Group/props'
package/src/exports/b.ts CHANGED
@@ -22,9 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { Select } from '../Select/v2'
26
- export { Group as SelectGroup } from '../Select/v2/Group'
27
- export { Option as SelectOption } from '../Select/v2/Option'
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'
28
28
 
29
29
  export type { SelectProps, SelectOwnProps } from '../Select/v2/props'
30
30
  export type { SelectGroupProps } from '../Select/v2/Group/props'