@instructure/ui-simple-select 8.10.1-snapshot.9 → 8.10.3-snapshot.10

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 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-simple-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-simple-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-simple-select
@@ -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-snapshot.9+93b506fe0",
3
+ "version": "8.10.3-snapshot.10+cca148595",
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-snapshot.9+93b506fe0",
29
- "@instructure/ui-form-field": "8.10.1-snapshot.9+93b506fe0",
30
- "@instructure/ui-position": "8.10.1-snapshot.9+93b506fe0",
31
- "@instructure/ui-prop-types": "8.10.1-snapshot.9+93b506fe0",
32
- "@instructure/ui-react-utils": "8.10.1-snapshot.9+93b506fe0",
33
- "@instructure/ui-select": "8.10.1-snapshot.9+93b506fe0",
34
- "@instructure/ui-testable": "8.10.1-snapshot.9+93b506fe0",
35
- "@instructure/uid": "8.10.1-snapshot.9+93b506fe0",
28
+ "@instructure/console": "8.10.3-snapshot.10+cca148595",
29
+ "@instructure/ui-form-field": "8.10.3-snapshot.10+cca148595",
30
+ "@instructure/ui-position": "8.10.3-snapshot.10+cca148595",
31
+ "@instructure/ui-prop-types": "8.10.3-snapshot.10+cca148595",
32
+ "@instructure/ui-react-utils": "8.10.3-snapshot.10+cca148595",
33
+ "@instructure/ui-select": "8.10.3-snapshot.10+cca148595",
34
+ "@instructure/ui-testable": "8.10.3-snapshot.10+cca148595",
35
+ "@instructure/uid": "8.10.3-snapshot.10+cca148595",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.10.1-snapshot.9+93b506fe0",
40
- "@instructure/ui-color-utils": "8.10.1-snapshot.9+93b506fe0",
41
- "@instructure/ui-icons": "8.10.1-snapshot.9+93b506fe0",
42
- "@instructure/ui-test-locator": "8.10.1-snapshot.9+93b506fe0",
43
- "@instructure/ui-test-utils": "8.10.1-snapshot.9+93b506fe0"
39
+ "@instructure/ui-babel-preset": "8.10.3-snapshot.10+cca148595",
40
+ "@instructure/ui-color-utils": "8.10.3-snapshot.10+cca148595",
41
+ "@instructure/ui-icons": "8.10.3-snapshot.10+cca148595",
42
+ "@instructure/ui-test-locator": "8.10.3-snapshot.10+cca148595",
43
+ "@instructure/ui-test-utils": "8.10.3-snapshot.10+cca148595"
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": "93b506fe0860718ebe2cc2729fd023e3e7489231"
52
+ "gitHead": "cca1485957b780165ac6b283afc28f4bba1eda06"
53
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.
@@ -22,24 +22,28 @@ export declare const SimpleSelectLocator: {
22
22
  findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
23
23
  findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
24
24
  } & {
25
+ toString: (maxLength?: number | undefined, options?: {
26
+ highlight: boolean;
27
+ } | undefined) => string;
28
+ contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
29
+ children: (selector: string) => Element[];
30
+ title: () => string | null | undefined;
31
+ id: () => string;
32
+ tagName: () => string;
33
+ getAttribute: (qualifiedName: string) => string | null;
34
+ getBoundingClientRect: () => DOMRect;
35
+ matches: (selector: string | undefined) => boolean;
25
36
  visible: () => boolean;
26
37
  value: () => string | null;
27
38
  disabled: () => string | null;
28
39
  role: () => string | null;
29
- id: () => string;
30
40
  label: () => string | null | undefined;
31
- title: () => string | null | undefined;
32
- toString: (maxLength?: number | undefined, options?: {
33
- highlight: boolean;
34
- } | undefined) => string;
35
41
  getId: () => string;
36
42
  getOwnerWindow: () => (Window & typeof globalThis) | null;
37
43
  getOwnerDocument: () => Document;
38
44
  getComputedStyle: () => CSSStyleDeclaration;
39
45
  getTagName: () => string;
40
- tagName: () => string;
41
46
  typeIn: (text: string) => Promise<void>;
42
- getAttribute: (qualifiedName: string) => string | null;
43
47
  getDOMNode: () => Element;
44
48
  node: () => Element;
45
49
  debug: (maxLength?: number | undefined, options?: {
@@ -47,9 +51,8 @@ export declare const SimpleSelectLocator: {
47
51
  } | undefined) => void;
48
52
  accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
49
53
  getTextContent: () => string | null;
50
- getParentNode: () => (Node & ParentNode) | null;
51
- parent: () => (Node & ParentNode) | null;
52
- getBoundingClientRect: () => DOMRect;
54
+ getParentNode: () => ParentNode | null;
55
+ parent: () => ParentNode | null;
53
56
  rect: () => DOMRect;
54
57
  hasClass: (classname: string) => boolean;
55
58
  containsFocus: () => boolean;
@@ -61,19 +64,17 @@ export declare const SimpleSelectLocator: {
61
64
  exists: () => boolean;
62
65
  text: () => string | null;
63
66
  empty: () => boolean;
64
- contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
65
67
  descendants: (selector: string) => Element[];
66
- ancestors: (selector: string) => (Node & ParentNode)[];
68
+ ancestors: (selector: string) => ParentNode[];
67
69
  attribute: (qualifiedName: string) => string | null;
68
70
  style: (property: string) => string;
69
71
  classNames: () => string[];
70
- matches: (selector: string | undefined) => boolean;
71
72
  checked: () => any;
72
73
  selected: () => any;
73
74
  readonly: () => any;
74
- children: (selector: string) => Element[];
75
- parents: (selector: string) => (Node & ParentNode)[];
75
+ parents: (selector: string) => ParentNode[];
76
76
  } & {
77
+ scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
77
78
  copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
78
79
  cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
79
80
  paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -111,7 +112,6 @@ export declare const SimpleSelectLocator: {
111
112
  touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
112
113
  touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
113
114
  touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
114
- scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
115
115
  wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
116
116
  abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
117
117
  canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -164,24 +164,28 @@ export declare const SimpleSelectLocator: {
164
164
  findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
165
165
  findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
166
166
  } & {
167
+ toString: (maxLength?: number | undefined, options?: {
168
+ highlight: boolean;
169
+ } | undefined) => string;
170
+ contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
171
+ children: (selector: string) => Element[];
172
+ title: () => string | null | undefined;
173
+ id: () => string;
174
+ tagName: () => string;
175
+ getAttribute: (qualifiedName: string) => string | null;
176
+ getBoundingClientRect: () => DOMRect;
177
+ matches: (selector: string | undefined) => boolean;
167
178
  visible: () => boolean;
168
179
  value: () => string | null;
169
180
  disabled: () => string | null;
170
181
  role: () => string | null;
171
- id: () => string;
172
182
  label: () => string | null | undefined;
173
- title: () => string | null | undefined;
174
- toString: (maxLength?: number | undefined, options?: {
175
- highlight: boolean;
176
- } | undefined) => string;
177
183
  getId: () => string;
178
184
  getOwnerWindow: () => (Window & typeof globalThis) | null;
179
185
  getOwnerDocument: () => Document;
180
186
  getComputedStyle: () => CSSStyleDeclaration;
181
187
  getTagName: () => string;
182
- tagName: () => string;
183
188
  typeIn: (text: string) => Promise<void>;
184
- getAttribute: (qualifiedName: string) => string | null;
185
189
  getDOMNode: () => Element;
186
190
  node: () => Element;
187
191
  debug: (maxLength?: number | undefined, options?: {
@@ -189,9 +193,8 @@ export declare const SimpleSelectLocator: {
189
193
  } | undefined) => void;
190
194
  accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
191
195
  getTextContent: () => string | null;
192
- getParentNode: () => (Node & ParentNode) | null;
193
- parent: () => (Node & ParentNode) | null;
194
- getBoundingClientRect: () => DOMRect;
196
+ getParentNode: () => ParentNode | null;
197
+ parent: () => ParentNode | null;
195
198
  rect: () => DOMRect;
196
199
  hasClass: (classname: string) => boolean;
197
200
  containsFocus: () => boolean;
@@ -203,19 +206,17 @@ export declare const SimpleSelectLocator: {
203
206
  exists: () => boolean;
204
207
  text: () => string | null;
205
208
  empty: () => boolean;
206
- contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
207
209
  descendants: (selector: string) => Element[];
208
- ancestors: (selector: string) => (Node & ParentNode)[];
210
+ ancestors: (selector: string) => ParentNode[];
209
211
  attribute: (qualifiedName: string) => string | null;
210
212
  style: (property: string) => string;
211
213
  classNames: () => string[];
212
- matches: (selector: string | undefined) => boolean;
213
214
  checked: () => any;
214
215
  selected: () => any;
215
216
  readonly: () => any;
216
- children: (selector: string) => Element[];
217
- parents: (selector: string) => (Node & ParentNode)[];
217
+ parents: (selector: string) => ParentNode[];
218
218
  } & {
219
+ scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
219
220
  copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
220
221
  cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
221
222
  paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -253,7 +254,6 @@ export declare const SimpleSelectLocator: {
253
254
  touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
254
255
  touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
255
256
  touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
256
- scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
257
257
  wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
258
258
  abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
259
259
  canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -306,24 +306,28 @@ export declare const SimpleSelectLocator: {
306
306
  findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
307
307
  findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
308
308
  } & {
309
+ toString: (maxLength?: number | undefined, options?: {
310
+ highlight: boolean;
311
+ } | undefined) => string;
312
+ contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
313
+ children: (selector: string) => Element[];
314
+ title: () => string | null | undefined;
315
+ id: () => string;
316
+ tagName: () => string;
317
+ getAttribute: (qualifiedName: string) => string | null;
318
+ getBoundingClientRect: () => DOMRect;
319
+ matches: (selector: string | undefined) => boolean;
309
320
  visible: () => boolean;
310
321
  value: () => string | null;
311
322
  disabled: () => string | null;
312
323
  role: () => string | null;
313
- id: () => string;
314
324
  label: () => string | null | undefined;
315
- title: () => string | null | undefined;
316
- toString: (maxLength?: number | undefined, options?: {
317
- highlight: boolean;
318
- } | undefined) => string;
319
325
  getId: () => string;
320
326
  getOwnerWindow: () => (Window & typeof globalThis) | null;
321
327
  getOwnerDocument: () => Document;
322
328
  getComputedStyle: () => CSSStyleDeclaration;
323
329
  getTagName: () => string;
324
- tagName: () => string;
325
330
  typeIn: (text: string) => Promise<void>;
326
- getAttribute: (qualifiedName: string) => string | null;
327
331
  getDOMNode: () => Element;
328
332
  node: () => Element;
329
333
  debug: (maxLength?: number | undefined, options?: {
@@ -331,9 +335,8 @@ export declare const SimpleSelectLocator: {
331
335
  } | undefined) => void;
332
336
  accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
333
337
  getTextContent: () => string | null;
334
- getParentNode: () => (Node & ParentNode) | null;
335
- parent: () => (Node & ParentNode) | null;
336
- getBoundingClientRect: () => DOMRect;
338
+ getParentNode: () => ParentNode | null;
339
+ parent: () => ParentNode | null;
337
340
  rect: () => DOMRect;
338
341
  hasClass: (classname: string) => boolean;
339
342
  containsFocus: () => boolean;
@@ -345,19 +348,17 @@ export declare const SimpleSelectLocator: {
345
348
  exists: () => boolean;
346
349
  text: () => string | null;
347
350
  empty: () => boolean;
348
- contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
349
351
  descendants: (selector: string) => Element[];
350
- ancestors: (selector: string) => (Node & ParentNode)[];
352
+ ancestors: (selector: string) => ParentNode[];
351
353
  attribute: (qualifiedName: string) => string | null;
352
354
  style: (property: string) => string;
353
355
  classNames: () => string[];
354
- matches: (selector: string | undefined) => boolean;
355
356
  checked: () => any;
356
357
  selected: () => any;
357
358
  readonly: () => any;
358
- children: (selector: string) => Element[];
359
- parents: (selector: string) => (Node & ParentNode)[];
359
+ parents: (selector: string) => ParentNode[];
360
360
  } & {
361
+ scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
361
362
  copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
362
363
  cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
363
364
  paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -395,7 +396,6 @@ export declare const SimpleSelectLocator: {
395
396
  touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
396
397
  touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
397
398
  touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
398
- scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
399
399
  wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
400
400
  abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
401
401
  canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -448,24 +448,28 @@ export declare const SimpleSelectLocator: {
448
448
  findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
449
449
  findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
450
450
  } & {
451
+ toString: (maxLength?: number | undefined, options?: {
452
+ highlight: boolean;
453
+ } | undefined) => string;
454
+ contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
455
+ children: (selector: string) => Element[];
456
+ title: () => string | null | undefined;
457
+ id: () => string;
458
+ tagName: () => string;
459
+ getAttribute: (qualifiedName: string) => string | null;
460
+ getBoundingClientRect: () => DOMRect;
461
+ matches: (selector: string | undefined) => boolean;
451
462
  visible: () => boolean;
452
463
  value: () => string | null;
453
464
  disabled: () => string | null;
454
465
  role: () => string | null;
455
- id: () => string;
456
466
  label: () => string | null | undefined;
457
- title: () => string | null | undefined;
458
- toString: (maxLength?: number | undefined, options?: {
459
- highlight: boolean;
460
- } | undefined) => string;
461
467
  getId: () => string;
462
468
  getOwnerWindow: () => (Window & typeof globalThis) | null;
463
469
  getOwnerDocument: () => Document;
464
470
  getComputedStyle: () => CSSStyleDeclaration;
465
471
  getTagName: () => string;
466
- tagName: () => string;
467
472
  typeIn: (text: string) => Promise<void>;
468
- getAttribute: (qualifiedName: string) => string | null;
469
473
  getDOMNode: () => Element;
470
474
  node: () => Element;
471
475
  debug: (maxLength?: number | undefined, options?: {
@@ -473,9 +477,8 @@ export declare const SimpleSelectLocator: {
473
477
  } | undefined) => void;
474
478
  accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
475
479
  getTextContent: () => string | null;
476
- getParentNode: () => (Node & ParentNode) | null;
477
- parent: () => (Node & ParentNode) | null;
478
- getBoundingClientRect: () => DOMRect;
480
+ getParentNode: () => ParentNode | null;
481
+ parent: () => ParentNode | null;
479
482
  rect: () => DOMRect;
480
483
  hasClass: (classname: string) => boolean;
481
484
  containsFocus: () => boolean;
@@ -487,19 +490,17 @@ export declare const SimpleSelectLocator: {
487
490
  exists: () => boolean;
488
491
  text: () => string | null;
489
492
  empty: () => boolean;
490
- contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
491
493
  descendants: (selector: string) => Element[];
492
- ancestors: (selector: string) => (Node & ParentNode)[];
494
+ ancestors: (selector: string) => ParentNode[];
493
495
  attribute: (qualifiedName: string) => string | null;
494
496
  style: (property: string) => string;
495
497
  classNames: () => string[];
496
- matches: (selector: string | undefined) => boolean;
497
498
  checked: () => any;
498
499
  selected: () => any;
499
500
  readonly: () => any;
500
- children: (selector: string) => Element[];
501
- parents: (selector: string) => (Node & ParentNode)[];
501
+ parents: (selector: string) => ParentNode[];
502
502
  } & {
503
+ scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
503
504
  copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
504
505
  cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
505
506
  paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -537,7 +538,6 @@ export declare const SimpleSelectLocator: {
537
538
  touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
538
539
  touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
539
540
  touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
540
- scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
541
541
  wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
542
542
  abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
543
543
  canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
@@ -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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