@instructure/ui-simple-select 8.12.1-snapshot.44 → 8.12.1-snapshot.50
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/es/SimpleSelect/index.js +5 -6
- package/lib/SimpleSelect/Group/index.js +1 -1
- package/lib/SimpleSelect/Group/props.js +1 -1
- package/lib/SimpleSelect/Option/index.js +1 -1
- package/lib/SimpleSelect/Option/props.js +1 -1
- package/lib/SimpleSelect/index.js +5 -6
- package/lib/SimpleSelect/props.js +1 -1
- package/package.json +15 -15
package/es/SimpleSelect/index.js
CHANGED
|
@@ -79,9 +79,8 @@ let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class Si
|
|
|
79
79
|
this.props.onHideOptions(event);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
this.handleHighlightOption = (event, {
|
|
83
|
-
id
|
|
84
|
-
}) => {
|
|
82
|
+
this.handleHighlightOption = (event, _ref) => {
|
|
83
|
+
let id = _ref.id;
|
|
85
84
|
if (id === this._emptyOptionId) return;
|
|
86
85
|
const option = this.getOption('id', id);
|
|
87
86
|
const label = option.props.children;
|
|
@@ -92,9 +91,9 @@ let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class Si
|
|
|
92
91
|
});
|
|
93
92
|
};
|
|
94
93
|
|
|
95
|
-
this.handleSelectOption = (event, {
|
|
96
|
-
id
|
|
97
|
-
|
|
94
|
+
this.handleSelectOption = (event, _ref2) => {
|
|
95
|
+
let id = _ref2.id;
|
|
96
|
+
|
|
98
97
|
if (id === this._emptyOptionId) {
|
|
99
98
|
// selected option is the empty option
|
|
100
99
|
this.setState({
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -81,9 +81,8 @@ let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _cl
|
|
|
81
81
|
this.props.onHideOptions(event);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
this.handleHighlightOption = (event, {
|
|
85
|
-
id
|
|
86
|
-
}) => {
|
|
84
|
+
this.handleHighlightOption = (event, _ref) => {
|
|
85
|
+
let id = _ref.id;
|
|
87
86
|
if (id === this._emptyOptionId) return;
|
|
88
87
|
const option = this.getOption('id', id);
|
|
89
88
|
const label = option.props.children;
|
|
@@ -94,9 +93,9 @@ let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _cl
|
|
|
94
93
|
});
|
|
95
94
|
};
|
|
96
95
|
|
|
97
|
-
this.handleSelectOption = (event, {
|
|
98
|
-
id
|
|
99
|
-
|
|
96
|
+
this.handleSelectOption = (event, _ref2) => {
|
|
97
|
+
let id = _ref2.id;
|
|
98
|
+
|
|
100
99
|
if (id === this._emptyOptionId) {
|
|
101
100
|
// selected option is the empty option
|
|
102
101
|
this.setState({
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-simple-select",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.50+3786369ec",
|
|
4
4
|
"description": "A component for standard select element behavior.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.12.1-snapshot.
|
|
29
|
-
"@instructure/ui-form-field": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/ui-position": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-prop-types": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
33
|
-
"@instructure/ui-select": "8.12.1-snapshot.
|
|
34
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/uid": "8.12.1-snapshot.
|
|
28
|
+
"@instructure/console": "8.12.1-snapshot.50+3786369ec",
|
|
29
|
+
"@instructure/ui-form-field": "8.12.1-snapshot.50+3786369ec",
|
|
30
|
+
"@instructure/ui-position": "8.12.1-snapshot.50+3786369ec",
|
|
31
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.50+3786369ec",
|
|
32
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.50+3786369ec",
|
|
33
|
+
"@instructure/ui-select": "8.12.1-snapshot.50+3786369ec",
|
|
34
|
+
"@instructure/ui-testable": "8.12.1-snapshot.50+3786369ec",
|
|
35
|
+
"@instructure/uid": "8.12.1-snapshot.50+3786369ec",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
40
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-icons": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.50+3786369ec",
|
|
40
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.50+3786369ec",
|
|
41
|
+
"@instructure/ui-icons": "8.12.1-snapshot.50+3786369ec",
|
|
42
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.50+3786369ec",
|
|
43
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.50+3786369ec"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8 <=17"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "3786369ec892bc0f716844828cc2729447adb8be"
|
|
53
53
|
}
|