@instructure/ui-simple-select 8.38.2-snapshot-5 → 8.38.2-snapshot-6
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 +1 -1
- package/es/SimpleSelect/index.js +6 -4
- package/lib/SimpleSelect/index.js +6 -4
- package/package.json +15 -15
- package/tsconfig.build.tsbuildinfo +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
|
-
## [8.38.2-snapshot-
|
6
|
+
## [8.38.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-6) (2023-07-17)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-simple-select
|
9
9
|
|
package/es/SimpleSelect/index.js
CHANGED
@@ -101,8 +101,9 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
|
|
101
101
|
this.props.onHideOptions(event);
|
102
102
|
}
|
103
103
|
};
|
104
|
-
this.handleHighlightOption = (event,
|
105
|
-
|
104
|
+
this.handleHighlightOption = (event, {
|
105
|
+
id
|
106
|
+
}) => {
|
106
107
|
if (id === this._emptyOptionId) return;
|
107
108
|
const option = this.getOption('id', id);
|
108
109
|
const label = option === null || option === void 0 ? void 0 : option.props.children;
|
@@ -112,8 +113,9 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
|
|
112
113
|
inputValue
|
113
114
|
});
|
114
115
|
};
|
115
|
-
this.handleSelectOption = (event,
|
116
|
-
|
116
|
+
this.handleSelectOption = (event, {
|
117
|
+
id
|
118
|
+
}) => {
|
117
119
|
if (id === this._emptyOptionId) {
|
118
120
|
// selected option is the empty option
|
119
121
|
this.setState({
|
@@ -112,8 +112,9 @@ let SimpleSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec
|
|
112
112
|
this.props.onHideOptions(event);
|
113
113
|
}
|
114
114
|
};
|
115
|
-
this.handleHighlightOption = (event,
|
116
|
-
|
115
|
+
this.handleHighlightOption = (event, {
|
116
|
+
id
|
117
|
+
}) => {
|
117
118
|
if (id === this._emptyOptionId) return;
|
118
119
|
const option = this.getOption('id', id);
|
119
120
|
const label = option === null || option === void 0 ? void 0 : option.props.children;
|
@@ -123,8 +124,9 @@ let SimpleSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec
|
|
123
124
|
inputValue
|
124
125
|
});
|
125
126
|
};
|
126
|
-
this.handleSelectOption = (event,
|
127
|
-
|
127
|
+
this.handleSelectOption = (event, {
|
128
|
+
id
|
129
|
+
}) => {
|
128
130
|
if (id === this._emptyOptionId) {
|
129
131
|
// selected option is the empty option
|
130
132
|
this.setState({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-simple-select",
|
3
|
-
"version": "8.38.2-snapshot-
|
3
|
+
"version": "8.38.2-snapshot-6",
|
4
4
|
"description": "A component for standard select element behavior.",
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
6
6
|
"module": "./es/index.js",
|
@@ -23,23 +23,23 @@
|
|
23
23
|
},
|
24
24
|
"license": "MIT",
|
25
25
|
"dependencies": {
|
26
|
-
"@babel/runtime": "^7.22.
|
27
|
-
"@instructure/console": "8.38.2-snapshot-
|
28
|
-
"@instructure/shared-types": "8.38.2-snapshot-
|
29
|
-
"@instructure/ui-form-field": "8.38.2-snapshot-
|
30
|
-
"@instructure/ui-position": "8.38.2-snapshot-
|
31
|
-
"@instructure/ui-prop-types": "8.38.2-snapshot-
|
32
|
-
"@instructure/ui-react-utils": "8.38.2-snapshot-
|
33
|
-
"@instructure/ui-select": "8.38.2-snapshot-
|
34
|
-
"@instructure/ui-testable": "8.38.2-snapshot-
|
26
|
+
"@babel/runtime": "^7.22.6",
|
27
|
+
"@instructure/console": "8.38.2-snapshot-6",
|
28
|
+
"@instructure/shared-types": "8.38.2-snapshot-6",
|
29
|
+
"@instructure/ui-form-field": "8.38.2-snapshot-6",
|
30
|
+
"@instructure/ui-position": "8.38.2-snapshot-6",
|
31
|
+
"@instructure/ui-prop-types": "8.38.2-snapshot-6",
|
32
|
+
"@instructure/ui-react-utils": "8.38.2-snapshot-6",
|
33
|
+
"@instructure/ui-select": "8.38.2-snapshot-6",
|
34
|
+
"@instructure/ui-testable": "8.38.2-snapshot-6",
|
35
35
|
"prop-types": "^15.8.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@instructure/ui-babel-preset": "8.38.2-snapshot-
|
39
|
-
"@instructure/ui-color-utils": "8.38.2-snapshot-
|
40
|
-
"@instructure/ui-icons": "8.38.2-snapshot-
|
41
|
-
"@instructure/ui-test-locator": "8.38.2-snapshot-
|
42
|
-
"@instructure/ui-test-utils": "8.38.2-snapshot-
|
38
|
+
"@instructure/ui-babel-preset": "8.38.2-snapshot-6",
|
39
|
+
"@instructure/ui-color-utils": "8.38.2-snapshot-6",
|
40
|
+
"@instructure/ui-icons": "8.38.2-snapshot-6",
|
41
|
+
"@instructure/ui-test-locator": "8.38.2-snapshot-6",
|
42
|
+
"@instructure/ui-test-utils": "8.38.2-snapshot-6"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
45
|
"react": ">=16.8 <=18"
|