@instructure/ui-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.
@@ -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
 
@@ -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.1",
3
+ "version": "8.10.2-snapshot.22+b84160eff",
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.1",
28
- "@instructure/ui-color-utils": "8.10.1",
29
- "@instructure/ui-test-locator": "8.10.1",
30
- "@instructure/ui-test-utils": "8.10.1",
31
- "@instructure/ui-themes": "8.10.1"
27
+ "@instructure/ui-babel-preset": "8.10.2-snapshot.22+b84160eff",
28
+ "@instructure/ui-color-utils": "8.10.2-snapshot.22+b84160eff",
29
+ "@instructure/ui-test-locator": "8.10.2-snapshot.22+b84160eff",
30
+ "@instructure/ui-test-utils": "8.10.2-snapshot.22+b84160eff",
31
+ "@instructure/ui-themes": "8.10.2-snapshot.22+b84160eff"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.10.1",
36
- "@instructure/shared-types": "8.10.1",
37
- "@instructure/ui-dom-utils": "8.10.1",
38
- "@instructure/ui-form-field": "8.10.1",
39
- "@instructure/ui-icons": "8.10.1",
40
- "@instructure/ui-options": "8.10.1",
41
- "@instructure/ui-popover": "8.10.1",
42
- "@instructure/ui-position": "8.10.1",
43
- "@instructure/ui-prop-types": "8.10.1",
44
- "@instructure/ui-react-utils": "8.10.1",
45
- "@instructure/ui-selectable": "8.10.1",
46
- "@instructure/ui-testable": "8.10.1",
47
- "@instructure/ui-text-input": "8.10.1",
48
- "@instructure/ui-utils": "8.10.1",
49
- "@instructure/ui-view": "8.10.1",
50
- "@instructure/uid": "8.10.1",
35
+ "@instructure/emotion": "8.10.2-snapshot.22+b84160eff",
36
+ "@instructure/shared-types": "8.10.2-snapshot.22+b84160eff",
37
+ "@instructure/ui-dom-utils": "8.10.2-snapshot.22+b84160eff",
38
+ "@instructure/ui-form-field": "8.10.2-snapshot.22+b84160eff",
39
+ "@instructure/ui-icons": "8.10.2-snapshot.22+b84160eff",
40
+ "@instructure/ui-options": "8.10.2-snapshot.22+b84160eff",
41
+ "@instructure/ui-popover": "8.10.2-snapshot.22+b84160eff",
42
+ "@instructure/ui-position": "8.10.2-snapshot.22+b84160eff",
43
+ "@instructure/ui-prop-types": "8.10.2-snapshot.22+b84160eff",
44
+ "@instructure/ui-react-utils": "8.10.2-snapshot.22+b84160eff",
45
+ "@instructure/ui-selectable": "8.10.2-snapshot.22+b84160eff",
46
+ "@instructure/ui-testable": "8.10.2-snapshot.22+b84160eff",
47
+ "@instructure/ui-text-input": "8.10.2-snapshot.22+b84160eff",
48
+ "@instructure/ui-utils": "8.10.2-snapshot.22+b84160eff",
49
+ "@instructure/ui-view": "8.10.2-snapshot.22+b84160eff",
50
+ "@instructure/uid": "8.10.2-snapshot.22+b84160eff",
51
51
  "prop-types": "^15"
52
52
  },
53
53
  "peerDependencies": {
@@ -56,5 +56,6 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "sideEffects": false
59
+ "sideEffects": false,
60
+ "gitHead": "b84160effefb01aeb94b754f0b7a64f8dad1b7f2"
60
61
  }
@@ -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
  }
@@ -104,6 +104,7 @@ declare class Select extends Component<SelectProps> {
104
104
  };
105
105
  static Option: typeof Option;
106
106
  static Group: typeof Group;
107
+ ref: Element | null;
107
108
  componentDidMount(): void;
108
109
  componentDidUpdate(): void;
109
110
  state: {
@@ -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,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,cAEM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;I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