@instructure/ui-simple-select 8.10.1 → 8.10.2-snapshot.22

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/LICENSE.md ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ 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.
@@ -46,10 +46,13 @@ tags: form, field, dropdown
46
46
  let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class SimpleSelect extends Component {
47
47
  constructor(props) {
48
48
  super(props);
49
+ this.ref = null;
49
50
  this._emptyOptionId = uid('Select-EmptyOption');
50
51
 
51
52
  this.handleRef = node => {
52
- this._select = node;
53
+ this._select = node; // TODO remove this in v9 and keep only "ref"
54
+
55
+ this.ref = node;
53
56
  };
54
57
 
55
58
  this.handleBlur = event => {
@@ -48,10 +48,13 @@ tags: form, field, dropdown
48
48
  let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2 = class SimpleSelect extends _react.Component {
49
49
  constructor(props) {
50
50
  super(props);
51
+ this.ref = null;
51
52
  this._emptyOptionId = (0, _uid.uid)('Select-EmptyOption');
52
53
 
53
54
  this.handleRef = node => {
54
- this._select = node;
55
+ this._select = node; // TODO remove this in v9 and keep only "ref"
56
+
57
+ this.ref = node;
55
58
  };
56
59
 
57
60
  this.handleBlur = event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-simple-select",
3
- "version": "8.10.1",
3
+ "version": "8.10.2-snapshot.22+b84160eff",
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.10.1",
29
- "@instructure/ui-form-field": "8.10.1",
30
- "@instructure/ui-position": "8.10.1",
31
- "@instructure/ui-prop-types": "8.10.1",
32
- "@instructure/ui-react-utils": "8.10.1",
33
- "@instructure/ui-select": "8.10.1",
34
- "@instructure/ui-testable": "8.10.1",
35
- "@instructure/uid": "8.10.1",
28
+ "@instructure/console": "8.10.2-snapshot.22+b84160eff",
29
+ "@instructure/ui-form-field": "8.10.2-snapshot.22+b84160eff",
30
+ "@instructure/ui-position": "8.10.2-snapshot.22+b84160eff",
31
+ "@instructure/ui-prop-types": "8.10.2-snapshot.22+b84160eff",
32
+ "@instructure/ui-react-utils": "8.10.2-snapshot.22+b84160eff",
33
+ "@instructure/ui-select": "8.10.2-snapshot.22+b84160eff",
34
+ "@instructure/ui-testable": "8.10.2-snapshot.22+b84160eff",
35
+ "@instructure/uid": "8.10.2-snapshot.22+b84160eff",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.10.1",
40
- "@instructure/ui-color-utils": "8.10.1",
41
- "@instructure/ui-icons": "8.10.1",
42
- "@instructure/ui-test-locator": "8.10.1",
43
- "@instructure/ui-test-utils": "8.10.1"
39
+ "@instructure/ui-babel-preset": "8.10.2-snapshot.22+b84160eff",
40
+ "@instructure/ui-color-utils": "8.10.2-snapshot.22+b84160eff",
41
+ "@instructure/ui-icons": "8.10.2-snapshot.22+b84160eff",
42
+ "@instructure/ui-test-locator": "8.10.2-snapshot.22+b84160eff",
43
+ "@instructure/ui-test-utils": "8.10.2-snapshot.22+b84160eff"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -48,5 +48,6 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false
51
+ "sideEffects": false,
52
+ "gitHead": "b84160effefb01aeb94b754f0b7a64f8dad1b7f2"
52
53
  }
@@ -83,6 +83,8 @@ class SimpleSelect extends Component<SimpleSelectProps> {
83
83
  children: null
84
84
  }
85
85
 
86
+ ref: Element | null = null
87
+
86
88
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'props' implicitly has an 'any' type.
87
89
  constructor(props) {
88
90
  super(props)
@@ -214,7 +216,8 @@ class SimpleSelect extends Component<SimpleSelectProps> {
214
216
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'node' implicitly has an 'any' type.
215
217
  handleRef = (node) => {
216
218
  // @ts-expect-error ts-migrate(2339) FIXME: Property '_select' does not exist on type 'SimpleS... Remove this comment to see the full error message
217
- this._select = node
219
+ this._select = node // TODO remove this in v9 and keep only "ref"
220
+ this.ref = node
218
221
  }
219
222
 
220
223
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'event' implicitly has an 'any' type.
@@ -92,6 +92,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
92
92
  renderAfterInput: null;
93
93
  children: null;
94
94
  };
95
+ ref: Element | null;
95
96
  constructor(props: any);
96
97
  _emptyOptionId: string;
97
98
  focus(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAYlD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGhD;;;;;GAKG;AACH,cACM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACrD,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,MAAM,gBAAS;IACtB,MAAM,CAAC,KAAK,eAAQ;IAEpB,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;MA0BlB;gBAGW,KAAK,KAAA;IAejB,cAAc,SAA4B;IAE1C,KAAK;IAKL,IAAI,OAAO,QAGV;IAED,IAAI,EAAE,QAGL;IAED,IAAI,YAAY,YAEf;IAED,IAAI,WAAW,0DAEd;IAGD,kBAAkB,CAAC,SAAS,KAAA;IAiB5B,gBAAgB,CAAC,KAAK,KAAA;IAatB,kBAAkB,CAAC,EAAE,KAAA;IAOrB,gBAAgB,CAAC,KAAK,KAAA;IAqBtB,SAAS,CAAC,KAAK,KAAA,EAAE,KAAK,KAAA;IA6BtB,SAAS,sBAGR;IAGD,UAAU,uBAIT;IAGD,iBAAiB,uBAIhB;IAGD,iBAAiB,uBAahB;IAGD,qBAAqB;;eAapB;IAGD,kBAAkB;;eA2BjB;IAED,cAAc;IAmBd,iBAAiB;IAajB,YAAY,CAAC,MAAM,KAAA;IA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