@instructure/ui-select 8.10.1-snapshot.8 → 8.10.2
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 +8 -0
- package/es/Select/index.js +4 -1
- package/lib/Select/index.js +4 -1
- package/package.json +23 -24
- package/src/Select/index.tsx +4 -1
- package/types/Select/index.d.ts +1 -0
- package/types/Select/index.d.ts.map +1 -1
- package/LICENSE.md +0 -27
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
|
+
## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-select
|
|
9
|
+
|
|
10
|
+
## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @instructure/ui-select
|
|
13
|
+
|
|
6
14
|
# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-select
|
package/es/Select/index.js
CHANGED
|
@@ -58,6 +58,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
|
|
|
58
58
|
let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Select extends Component {
|
|
59
59
|
constructor(...args) {
|
|
60
60
|
super(...args);
|
|
61
|
+
this.ref = null;
|
|
61
62
|
this.state = {
|
|
62
63
|
hasInputRef: false
|
|
63
64
|
};
|
|
@@ -77,7 +78,9 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
|
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
this._input = node;
|
|
81
|
+
this._input = node; // TODO remove this in v9 and keep just 'ref'
|
|
82
|
+
|
|
83
|
+
this.ref = node;
|
|
81
84
|
this.props.inputRef(node);
|
|
82
85
|
};
|
|
83
86
|
|
package/lib/Select/index.js
CHANGED
|
@@ -68,6 +68,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
|
|
|
68
68
|
let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Select extends _react.Component {
|
|
69
69
|
constructor(...args) {
|
|
70
70
|
super(...args);
|
|
71
|
+
this.ref = null;
|
|
71
72
|
this.state = {
|
|
72
73
|
hasInputRef: false
|
|
73
74
|
};
|
|
@@ -87,7 +88,9 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
this._input = node;
|
|
91
|
+
this._input = node; // TODO remove this in v9 and keep just 'ref'
|
|
92
|
+
|
|
93
|
+
this.ref = node;
|
|
91
94
|
this.props.inputRef(node);
|
|
92
95
|
};
|
|
93
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-select",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.2",
|
|
4
4
|
"description": "A component for select and autocomplete behavior.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,30 +24,30 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.10.
|
|
28
|
-
"@instructure/ui-color-utils": "8.10.
|
|
29
|
-
"@instructure/ui-test-locator": "8.10.
|
|
30
|
-
"@instructure/ui-test-utils": "8.10.
|
|
31
|
-
"@instructure/ui-themes": "8.10.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.10.2",
|
|
28
|
+
"@instructure/ui-color-utils": "8.10.2",
|
|
29
|
+
"@instructure/ui-test-locator": "8.10.2",
|
|
30
|
+
"@instructure/ui-test-utils": "8.10.2",
|
|
31
|
+
"@instructure/ui-themes": "8.10.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.13.10",
|
|
35
|
-
"@instructure/emotion": "8.10.
|
|
36
|
-
"@instructure/shared-types": "8.10.
|
|
37
|
-
"@instructure/ui-dom-utils": "8.10.
|
|
38
|
-
"@instructure/ui-form-field": "8.10.
|
|
39
|
-
"@instructure/ui-icons": "8.10.
|
|
40
|
-
"@instructure/ui-options": "8.10.
|
|
41
|
-
"@instructure/ui-popover": "8.10.
|
|
42
|
-
"@instructure/ui-position": "8.10.
|
|
43
|
-
"@instructure/ui-prop-types": "8.10.
|
|
44
|
-
"@instructure/ui-react-utils": "8.10.
|
|
45
|
-
"@instructure/ui-selectable": "8.10.
|
|
46
|
-
"@instructure/ui-testable": "8.10.
|
|
47
|
-
"@instructure/ui-text-input": "8.10.
|
|
48
|
-
"@instructure/ui-utils": "8.10.
|
|
49
|
-
"@instructure/ui-view": "8.10.
|
|
50
|
-
"@instructure/uid": "8.10.
|
|
35
|
+
"@instructure/emotion": "8.10.2",
|
|
36
|
+
"@instructure/shared-types": "8.10.2",
|
|
37
|
+
"@instructure/ui-dom-utils": "8.10.2",
|
|
38
|
+
"@instructure/ui-form-field": "8.10.2",
|
|
39
|
+
"@instructure/ui-icons": "8.10.2",
|
|
40
|
+
"@instructure/ui-options": "8.10.2",
|
|
41
|
+
"@instructure/ui-popover": "8.10.2",
|
|
42
|
+
"@instructure/ui-position": "8.10.2",
|
|
43
|
+
"@instructure/ui-prop-types": "8.10.2",
|
|
44
|
+
"@instructure/ui-react-utils": "8.10.2",
|
|
45
|
+
"@instructure/ui-selectable": "8.10.2",
|
|
46
|
+
"@instructure/ui-testable": "8.10.2",
|
|
47
|
+
"@instructure/ui-text-input": "8.10.2",
|
|
48
|
+
"@instructure/ui-utils": "8.10.2",
|
|
49
|
+
"@instructure/ui-view": "8.10.2",
|
|
50
|
+
"@instructure/uid": "8.10.2",
|
|
51
51
|
"prop-types": "^15"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -56,6 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"sideEffects": false
|
|
60
|
-
"gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
|
|
59
|
+
"sideEffects": false
|
|
61
60
|
}
|
package/src/Select/index.tsx
CHANGED
|
@@ -109,6 +109,8 @@ class Select extends Component<SelectProps> {
|
|
|
109
109
|
static Option = Option
|
|
110
110
|
static Group = Group
|
|
111
111
|
|
|
112
|
+
ref: Element | null = null
|
|
113
|
+
|
|
112
114
|
componentDidMount() {
|
|
113
115
|
this.props.makeStyles?.()
|
|
114
116
|
}
|
|
@@ -222,7 +224,8 @@ class Select extends Component<SelectProps> {
|
|
|
222
224
|
this.setState({ hasInputRef: true })
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
this._input = node
|
|
227
|
+
this._input = node // TODO remove this in v9 and keep just 'ref'
|
|
228
|
+
this.ref = node
|
|
226
229
|
// @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
|
|
227
230
|
this.props.inputRef(node)
|
|
228
231
|
}
|
package/types/Select/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Select/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAyB3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAA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title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|