@instructure/ui-simple-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.
- package/CHANGELOG.md +44 -0
- package/LICENSE.md +1 -0
- package/{lib/SimpleSelect/v2/Group/props.js → babel.config.cjs} +12 -7
- package/es/SimpleSelect/v1/Group/index.js +3 -2
- package/es/SimpleSelect/v1/Option/index.js +3 -2
- package/es/SimpleSelect/v1/index.js +4 -4
- package/es/SimpleSelect/v2/Group/index.js +3 -2
- package/es/SimpleSelect/v2/Option/index.js +3 -2
- package/es/SimpleSelect/v2/index.js +4 -7
- package/es/exports/a.js +4 -3
- package/es/exports/b.js +4 -3
- package/package.json +13 -18
- package/src/SimpleSelect/v1/Group/index.tsx +2 -1
- package/src/SimpleSelect/v1/Option/index.tsx +2 -1
- package/src/SimpleSelect/v1/index.tsx +4 -3
- package/src/SimpleSelect/v2/Group/index.tsx +2 -1
- package/src/SimpleSelect/v2/Option/index.tsx +2 -1
- package/src/SimpleSelect/v2/index.tsx +4 -11
- package/src/exports/a.ts +3 -3
- package/src/exports/b.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/SimpleSelect/v1/Group/index.d.ts +1 -0
- package/types/SimpleSelect/v1/Group/index.d.ts.map +1 -1
- package/types/SimpleSelect/v1/Option/index.d.ts +1 -0
- package/types/SimpleSelect/v1/Option/index.d.ts.map +1 -1
- package/types/SimpleSelect/v1/index.d.ts +4 -3
- package/types/SimpleSelect/v1/index.d.ts.map +1 -1
- package/types/SimpleSelect/v2/Group/index.d.ts +1 -0
- package/types/SimpleSelect/v2/Group/index.d.ts.map +1 -1
- package/types/SimpleSelect/v2/Option/index.d.ts +1 -0
- package/types/SimpleSelect/v2/Option/index.d.ts.map +1 -1
- package/types/SimpleSelect/v2/index.d.ts +4 -4
- package/types/SimpleSelect/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +3 -3
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +3 -3
- package/types/exports/b.d.ts.map +1 -1
- package/lib/SimpleSelect/v1/Group/index.js +0 -53
- package/lib/SimpleSelect/v1/Group/props.js +0 -31
- package/lib/SimpleSelect/v1/Option/index.js +0 -55
- package/lib/SimpleSelect/v1/Option/props.js +0 -31
- package/lib/SimpleSelect/v1/index.js +0 -457
- package/lib/SimpleSelect/v1/props.js +0 -31
- package/lib/SimpleSelect/v2/Group/index.js +0 -53
- package/lib/SimpleSelect/v2/Option/index.js +0 -55
- package/lib/SimpleSelect/v2/Option/props.js +0 -31
- package/lib/SimpleSelect/v2/index.js +0 -457
- package/lib/SimpleSelect/v2/props.js +0 -31
- package/lib/exports/a.js +0 -26
- package/lib/exports/b.js +0 -26
- package/lib/package.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **many:** remove deprecated v2 items ([eaf8876](https://github.com/instructure/instructure-ui/commit/eaf88767c9beb95c4e09ee5705c387dfd79e4cb7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **many:** Removed FormFieldLabel component
|
|
17
|
+
|
|
18
|
+
Removed _content prop from DrawerLayout.Tray and DrawerLayout.Content
|
|
19
|
+
|
|
20
|
+
Removed _link prop from Link
|
|
21
|
+
|
|
22
|
+
Removed _node prop from Menu.Item
|
|
23
|
+
|
|
24
|
+
Removed _root prop from Pagination, TreeBrowser
|
|
25
|
+
|
|
26
|
+
Removed _select prop from SimpleSelect and TimeSelect
|
|
27
|
+
|
|
28
|
+
Removed _ref prop from TruncateText
|
|
29
|
+
|
|
30
|
+
Removed _element prop from View
|
|
31
|
+
|
|
32
|
+
Removed color="ai" from Heading
|
|
33
|
+
|
|
34
|
+
Removed variant="inline-small" and variant="standalone-small" from Link
|
|
35
|
+
|
|
36
|
+
Removed title prop from Tag
|
|
37
|
+
|
|
38
|
+
Removed focusRingBorderRadius prop from View
|
|
39
|
+
|
|
40
|
+
Removed hideActionsUserSeparator prop from TopNavBar.Layout
|
|
41
|
+
|
|
42
|
+
Removed handleFocusOutlineColor, handleFocusOutlineWidth, handleShadowColor from RangeInput
|
|
43
|
+
|
|
44
|
+
INSTUI-5025
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
51
|
|
|
8
52
|
|
package/LICENSE.md
CHANGED
|
@@ -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
|
-
|
|
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
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
---
|
|
29
30
|
parent: SimpleSelect
|
|
@@ -31,7 +32,7 @@ id: SimpleSelect.Group
|
|
|
31
32
|
---
|
|
32
33
|
**/
|
|
33
34
|
class Group extends Component {
|
|
34
|
-
static displayName =
|
|
35
|
+
static displayName = 'Group';
|
|
35
36
|
static componentId = 'SimpleSelect.Group';
|
|
36
37
|
static allowedProps = allowedProps;
|
|
37
38
|
static defaultProps = {};
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { allowedProps } from
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
---
|
|
29
30
|
parent: SimpleSelect
|
|
@@ -31,7 +32,7 @@ id: SimpleSelect.Option
|
|
|
31
32
|
---
|
|
32
33
|
**/
|
|
33
34
|
class Option extends Component {
|
|
34
|
-
static displayName =
|
|
35
|
+
static displayName = 'Option';
|
|
35
36
|
static componentId = 'SimpleSelect.Option';
|
|
36
37
|
static allowedProps = allowedProps;
|
|
37
38
|
static defaultProps = {
|
|
@@ -27,9 +27,9 @@ import { isValidElement, Component, Children } from 'react';
|
|
|
27
27
|
import * as utils from '@instructure/ui-utils';
|
|
28
28
|
import { matchComponentTypes, passthroughProps, callRenderProp, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
|
|
29
29
|
import { Select } from '@instructure/ui-select/v11_6';
|
|
30
|
-
import { Option } from
|
|
31
|
-
import { Group } from
|
|
32
|
-
import { allowedProps } from
|
|
30
|
+
import { Option } from './Option/index.js';
|
|
31
|
+
import { Group } from './Group/index.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -38,7 +38,7 @@ tags: form, field, dropdown
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let SimpleSelect = (_dec = withDeterministicId(), _dec(_class = class SimpleSelect extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'SimpleSelect';
|
|
42
42
|
static componentId = 'SimpleSelect';
|
|
43
43
|
static Option = Option;
|
|
44
44
|
static Group = Group;
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { allowedProps } from
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
---
|
|
29
30
|
parent: SimpleSelect
|
|
@@ -31,7 +32,7 @@ id: SimpleSelect.Group
|
|
|
31
32
|
---
|
|
32
33
|
**/
|
|
33
34
|
class Group extends Component {
|
|
34
|
-
static displayName =
|
|
35
|
+
static displayName = 'Group';
|
|
35
36
|
static componentId = 'SimpleSelect.Group';
|
|
36
37
|
static allowedProps = allowedProps;
|
|
37
38
|
static defaultProps = {};
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react';
|
|
26
|
-
import { allowedProps } from
|
|
26
|
+
import { allowedProps } from './props.js';
|
|
27
|
+
|
|
27
28
|
/**
|
|
28
29
|
---
|
|
29
30
|
parent: SimpleSelect
|
|
@@ -31,7 +32,7 @@ id: SimpleSelect.Option
|
|
|
31
32
|
---
|
|
32
33
|
**/
|
|
33
34
|
class Option extends Component {
|
|
34
|
-
static displayName =
|
|
35
|
+
static displayName = 'Option';
|
|
35
36
|
static componentId = 'SimpleSelect.Option';
|
|
36
37
|
static allowedProps = allowedProps;
|
|
37
38
|
static defaultProps = {
|
|
@@ -27,9 +27,9 @@ import { isValidElement, Component, Children } from 'react';
|
|
|
27
27
|
import * as utils from '@instructure/ui-utils';
|
|
28
28
|
import { matchComponentTypes, passthroughProps, callRenderProp, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
|
|
29
29
|
import { Select } from '@instructure/ui-select/latest';
|
|
30
|
-
import { Option } from
|
|
31
|
-
import { Group } from
|
|
32
|
-
import { allowedProps } from
|
|
30
|
+
import { Option } from './Option/index.js';
|
|
31
|
+
import { Group } from './Group/index.js';
|
|
32
|
+
import { allowedProps } from './props.js';
|
|
33
33
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
34
34
|
/**
|
|
35
35
|
---
|
|
@@ -38,7 +38,7 @@ tags: form, field, dropdown
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let SimpleSelect = (_dec = withDeterministicId(), _dec(_class = class SimpleSelect extends Component {
|
|
41
|
-
static displayName =
|
|
41
|
+
static displayName = 'SimpleSelect';
|
|
42
42
|
static componentId = 'SimpleSelect';
|
|
43
43
|
static Option = Option;
|
|
44
44
|
static Group = Group;
|
|
@@ -66,9 +66,6 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec(_class = class SimpleSele
|
|
|
66
66
|
};
|
|
67
67
|
this._emptyOptionId = props.deterministicId('Select-EmptyOption');
|
|
68
68
|
}
|
|
69
|
-
get _select() {
|
|
70
|
-
return this.ref;
|
|
71
|
-
}
|
|
72
69
|
focus() {
|
|
73
70
|
this.ref && this.ref.focus();
|
|
74
71
|
}
|
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
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { SimpleSelect } from '../SimpleSelect/v1/index.js';
|
|
26
|
+
export { Group as SimpleSelectGroup } from '../SimpleSelect/v1/Group/index.js';
|
|
27
|
+
export { Option as SimpleSelectOption } from '../SimpleSelect/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
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { SimpleSelect } from '../SimpleSelect/v2/index.js';
|
|
26
|
+
export { Group as SimpleSelectGroup } from '../SimpleSelect/v2/Group/index.js';
|
|
27
|
+
export { Option as SimpleSelectOption } from '../SimpleSelect/v2/Option/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-simple-select",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A component for standard select element 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,22 +15,22 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/ui-
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/ui-select": "11.7.
|
|
18
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-form-field": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-select": "11.7.4-pr-snapshot-1781695314229"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@testing-library/jest-dom": "^6.6.3",
|
|
27
27
|
"@testing-library/react": "15.0.7",
|
|
28
28
|
"@testing-library/user-event": "^14.6.1",
|
|
29
29
|
"vitest": "^3.2.2",
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-
|
|
32
|
-
"@instructure/ui-icons": "11.7.
|
|
33
|
-
"@instructure/ui-utils": "11.7.
|
|
30
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
31
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
32
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
33
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18 <=19"
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"exports": {
|
|
43
|
-
"./lib/*": "./lib/*",
|
|
44
43
|
"./es/*": "./es/*",
|
|
45
44
|
"./types/*": "./types/*",
|
|
46
45
|
"./package.json": "./package.json",
|
|
@@ -49,28 +48,24 @@
|
|
|
49
48
|
"src": "./src/exports/a.ts",
|
|
50
49
|
"types": "./types/exports/a.d.ts",
|
|
51
50
|
"import": "./es/exports/a.js",
|
|
52
|
-
"require": "./lib/exports/a.js",
|
|
53
51
|
"default": "./es/exports/a.js"
|
|
54
52
|
},
|
|
55
53
|
"./v11_6": {
|
|
56
54
|
"src": "./src/exports/a.ts",
|
|
57
55
|
"types": "./types/exports/a.d.ts",
|
|
58
56
|
"import": "./es/exports/a.js",
|
|
59
|
-
"require": "./lib/exports/a.js",
|
|
60
57
|
"default": "./es/exports/a.js"
|
|
61
58
|
},
|
|
62
59
|
"./v11_7": {
|
|
63
60
|
"src": "./src/exports/b.ts",
|
|
64
61
|
"types": "./types/exports/b.d.ts",
|
|
65
62
|
"import": "./es/exports/b.js",
|
|
66
|
-
"require": "./lib/exports/b.js",
|
|
67
63
|
"default": "./es/exports/b.js"
|
|
68
64
|
},
|
|
69
65
|
"./latest": {
|
|
70
66
|
"src": "./src/exports/b.ts",
|
|
71
67
|
"types": "./types/exports/b.d.ts",
|
|
72
68
|
"import": "./es/exports/b.js",
|
|
73
|
-
"require": "./lib/exports/b.js",
|
|
74
69
|
"default": "./es/exports/b.js"
|
|
75
70
|
}
|
|
76
71
|
},
|
|
@@ -78,7 +73,7 @@
|
|
|
78
73
|
"lint": "ui-scripts lint",
|
|
79
74
|
"lint:fix": "ui-scripts lint --fix",
|
|
80
75
|
"clean": "ui-scripts clean",
|
|
81
|
-
"build": "ui-scripts build
|
|
76
|
+
"build": "ui-scripts build",
|
|
82
77
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
83
78
|
"build:types": "tsc -p tsconfig.build.json",
|
|
84
79
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
27
|
import type { SimpleSelectGroupProps } from './props'
|
|
28
|
-
import { allowedProps } from './props'
|
|
28
|
+
import { allowedProps } from './props.js'
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
---
|
|
@@ -34,6 +34,7 @@ id: SimpleSelect.Group
|
|
|
34
34
|
---
|
|
35
35
|
**/
|
|
36
36
|
class Group extends Component<SimpleSelectGroupProps> {
|
|
37
|
+
static displayName = 'Group'
|
|
37
38
|
static readonly componentId = 'SimpleSelect.Group'
|
|
38
39
|
|
|
39
40
|
static allowedProps = allowedProps
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
import type { SimpleSelectOptionProps } from './props'
|
|
27
|
-
import { allowedProps } from './props'
|
|
27
|
+
import { allowedProps } from './props.js'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
---
|
|
@@ -33,6 +33,7 @@ id: SimpleSelect.Option
|
|
|
33
33
|
---
|
|
34
34
|
**/
|
|
35
35
|
class Option extends Component<SimpleSelectOptionProps> {
|
|
36
|
+
static displayName = 'Option'
|
|
36
37
|
static readonly componentId = 'SimpleSelect.Option'
|
|
37
38
|
|
|
38
39
|
static allowedProps = allowedProps
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
import { Select } from '@instructure/ui-select/v11_6'
|
|
43
43
|
import type { SelectProps } from '@instructure/ui-select/v11_6'
|
|
44
44
|
|
|
45
|
-
import { Option } from './Option'
|
|
45
|
+
import { Option } from './Option/index.js'
|
|
46
46
|
import type {
|
|
47
47
|
SimpleSelectOptionProps,
|
|
48
48
|
RenderSimpleSelectOptionLabel
|
|
49
49
|
} from './Option/props'
|
|
50
50
|
|
|
51
|
-
import { Group } from './Group'
|
|
51
|
+
import { Group } from './Group/index.js'
|
|
52
52
|
import type { SimpleSelectGroupProps } from './Group/props'
|
|
53
53
|
|
|
54
54
|
import type { SimpleSelectProps } from './props'
|
|
55
|
-
import { allowedProps, SimpleSelectState } from './props'
|
|
55
|
+
import { allowedProps, SimpleSelectState } from './props.js'
|
|
56
56
|
|
|
57
57
|
type OptionChild = ComponentElement<SimpleSelectOptionProps, Option>
|
|
58
58
|
type GroupChild = ComponentElement<SimpleSelectGroupProps, Group>
|
|
@@ -70,6 +70,7 @@ tags: form, field, dropdown
|
|
|
70
70
|
**/
|
|
71
71
|
@withDeterministicId()
|
|
72
72
|
class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectState> {
|
|
73
|
+
static displayName = 'SimpleSelect'
|
|
73
74
|
static readonly componentId = 'SimpleSelect'
|
|
74
75
|
|
|
75
76
|
static Option = Option
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
|
|
27
27
|
import type { SimpleSelectGroupProps } from './props'
|
|
28
|
-
import { allowedProps } from './props'
|
|
28
|
+
import { allowedProps } from './props.js'
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
---
|
|
@@ -34,6 +34,7 @@ id: SimpleSelect.Group
|
|
|
34
34
|
---
|
|
35
35
|
**/
|
|
36
36
|
class Group extends Component<SimpleSelectGroupProps> {
|
|
37
|
+
static displayName = 'Group'
|
|
37
38
|
static readonly componentId = 'SimpleSelect.Group'
|
|
38
39
|
|
|
39
40
|
static allowedProps = allowedProps
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { Component } from 'react'
|
|
26
26
|
import type { SimpleSelectOptionProps } from './props'
|
|
27
|
-
import { allowedProps } from './props'
|
|
27
|
+
import { allowedProps } from './props.js'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
---
|
|
@@ -33,6 +33,7 @@ id: SimpleSelect.Option
|
|
|
33
33
|
---
|
|
34
34
|
**/
|
|
35
35
|
class Option extends Component<SimpleSelectOptionProps> {
|
|
36
|
+
static displayName = 'Option'
|
|
36
37
|
static readonly componentId = 'SimpleSelect.Option'
|
|
37
38
|
|
|
38
39
|
static allowedProps = allowedProps
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
import { Select } from '@instructure/ui-select/latest'
|
|
43
43
|
import type { SelectProps } from '@instructure/ui-select/latest'
|
|
44
44
|
|
|
45
|
-
import { Option } from './Option'
|
|
45
|
+
import { Option } from './Option/index.js'
|
|
46
46
|
import type {
|
|
47
47
|
SimpleSelectOptionProps,
|
|
48
48
|
RenderSimpleSelectOptionLabel
|
|
49
49
|
} from './Option/props'
|
|
50
50
|
|
|
51
|
-
import { Group } from './Group'
|
|
51
|
+
import { Group } from './Group/index.js'
|
|
52
52
|
import type { SimpleSelectGroupProps } from './Group/props'
|
|
53
53
|
|
|
54
54
|
import type { SimpleSelectProps } from './props'
|
|
55
|
-
import { allowedProps, SimpleSelectState } from './props'
|
|
55
|
+
import { allowedProps, SimpleSelectState } from './props.js'
|
|
56
56
|
|
|
57
57
|
type OptionChild = ComponentElement<SimpleSelectOptionProps, Option>
|
|
58
58
|
type GroupChild = ComponentElement<SimpleSelectGroupProps, Group>
|
|
@@ -70,6 +70,7 @@ tags: form, field, dropdown
|
|
|
70
70
|
**/
|
|
71
71
|
@withDeterministicId()
|
|
72
72
|
class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectState> {
|
|
73
|
+
static displayName = 'SimpleSelect'
|
|
73
74
|
static readonly componentId = 'SimpleSelect'
|
|
74
75
|
|
|
75
76
|
static Option = Option
|
|
@@ -107,14 +108,6 @@ class SimpleSelect extends Component<SimpleSelectProps, SimpleSelectState> {
|
|
|
107
108
|
this._emptyOptionId = props.deterministicId!('Select-EmptyOption')
|
|
108
109
|
}
|
|
109
110
|
|
|
110
|
-
get _select() {
|
|
111
|
-
console.warn(
|
|
112
|
-
'_select property is deprecated and will be removed in v9, please use ref instead'
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
return this.ref
|
|
116
|
-
}
|
|
117
|
-
|
|
118
111
|
focus() {
|
|
119
112
|
this.ref && this.ref.focus()
|
|
120
113
|
}
|
package/src/exports/a.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { SimpleSelect } from '../SimpleSelect/v1'
|
|
26
|
-
export { Group as SimpleSelectGroup } from '../SimpleSelect/v1/Group'
|
|
27
|
-
export { Option as SimpleSelectOption } from '../SimpleSelect/v1/Option'
|
|
25
|
+
export { SimpleSelect } from '../SimpleSelect/v1/index.js'
|
|
26
|
+
export { Group as SimpleSelectGroup } from '../SimpleSelect/v1/Group/index.js'
|
|
27
|
+
export { Option as SimpleSelectOption } from '../SimpleSelect/v1/Option/index.js'
|
|
28
28
|
|
|
29
29
|
export type { SimpleSelectProps } from '../SimpleSelect/v1/props'
|
|
30
30
|
export type { SimpleSelectGroupProps } from '../SimpleSelect/v1/Group/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { SimpleSelect } from '../SimpleSelect/v2'
|
|
26
|
-
export { Group as SimpleSelectGroup } from '../SimpleSelect/v2/Group'
|
|
27
|
-
export { Option as SimpleSelectOption } from '../SimpleSelect/v2/Option'
|
|
25
|
+
export { SimpleSelect } from '../SimpleSelect/v2/index.js'
|
|
26
|
+
export { Group as SimpleSelectGroup } from '../SimpleSelect/v2/Group/index.js'
|
|
27
|
+
export { Option as SimpleSelectOption } from '../SimpleSelect/v2/Option/index.js'
|
|
28
28
|
|
|
29
29
|
export type { SimpleSelectProps } from '../SimpleSelect/v2/props'
|
|
30
30
|
export type { SimpleSelectGroupProps } from '../SimpleSelect/v2/Group/props'
|