@instructure/ui-buttons 8.10.1 → 8.10.3-snapshot.3
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 +4 -0
- package/LICENSE.md +27 -0
- package/es/BaseButton/index.js +42 -38
- package/es/Button/index.js +3 -1
- package/es/CloseButton/index.js +28 -16
- package/es/CondensedButton/index.js +22 -14
- package/es/IconButton/index.js +27 -19
- package/es/ToggleButton/index.js +24 -15
- package/lib/BaseButton/index.js +42 -38
- package/lib/Button/index.js +3 -1
- package/lib/CloseButton/index.js +28 -16
- package/lib/CondensedButton/index.js +22 -14
- package/lib/IconButton/index.js +27 -19
- package/lib/ToggleButton/index.js +24 -15
- package/package.json +22 -21
- package/src/BaseButton/index.tsx +6 -5
- package/src/BaseButton/props.ts +1 -1
- package/src/Button/index.tsx +5 -5
- package/src/Button/props.ts +1 -1
- package/src/CloseButton/index.tsx +8 -1
- package/src/CloseButton/props.ts +1 -1
- package/src/CondensedButton/index.tsx +8 -1
- package/src/CondensedButton/props.ts +1 -1
- package/src/IconButton/index.tsx +8 -1
- package/src/IconButton/props.ts +1 -1
- package/src/ToggleButton/index.tsx +8 -1
- package/src/ToggleButton/props.ts +1 -1
- package/types/BaseButton/BaseButtonLocator.d.ts +64 -64
- package/types/BaseButton/index.d.ts +5 -4
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/BaseButton/props.d.ts +1 -1
- package/types/BaseButton/props.d.ts.map +1 -1
- package/types/Button/ButtonLocator.d.ts +64 -64
- package/types/Button/index.d.ts +4 -3
- package/types/Button/index.d.ts.map +1 -1
- package/types/Button/locator.d.ts +64 -64
- package/types/Button/props.d.ts +1 -1
- package/types/Button/props.d.ts.map +1 -1
- package/types/CloseButton/CloseButtonLocator.d.ts +64 -64
- package/types/CloseButton/index.d.ts +4 -2
- package/types/CloseButton/index.d.ts.map +1 -1
- package/types/CloseButton/props.d.ts +1 -1
- package/types/CloseButton/props.d.ts.map +1 -1
- package/types/CondensedButton/CondensedButtonLocator.d.ts +64 -64
- package/types/CondensedButton/index.d.ts +4 -2
- package/types/CondensedButton/index.d.ts.map +1 -1
- package/types/CondensedButton/props.d.ts +1 -1
- package/types/CondensedButton/props.d.ts.map +1 -1
- package/types/IconButton/IconButtonLocator.d.ts +64 -64
- package/types/IconButton/index.d.ts +4 -2
- package/types/IconButton/index.d.ts.map +1 -1
- package/types/IconButton/props.d.ts +1 -1
- package/types/IconButton/props.d.ts.map +1 -1
- package/types/ToggleButton/ToggleButtonLocator.d.ts +64 -64
- package/types/ToggleButton/index.d.ts +4 -2
- package/types/ToggleButton/index.d.ts.map +1 -1
- package/types/ToggleButton/props.d.ts +1 -1
- package/types/ToggleButton/props.d.ts.map +1 -1
|
@@ -24,24 +24,28 @@ declare const _default: {
|
|
|
24
24
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
25
25
|
findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
|
|
26
26
|
} & {
|
|
27
|
+
toString: (maxLength?: number | undefined, options?: {
|
|
28
|
+
highlight: boolean;
|
|
29
|
+
} | undefined) => string;
|
|
30
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
31
|
+
children: (selector: string) => Element[];
|
|
32
|
+
title: () => string | null | undefined;
|
|
33
|
+
id: () => string;
|
|
34
|
+
tagName: () => string;
|
|
35
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
36
|
+
getBoundingClientRect: () => DOMRect;
|
|
37
|
+
matches: (selector: string | undefined) => boolean;
|
|
27
38
|
visible: () => boolean;
|
|
28
39
|
value: () => string | null;
|
|
29
40
|
disabled: () => string | null;
|
|
30
41
|
role: () => string | null;
|
|
31
|
-
id: () => string;
|
|
32
42
|
label: () => string | null | undefined;
|
|
33
|
-
title: () => string | null | undefined;
|
|
34
|
-
toString: (maxLength?: number | undefined, options?: {
|
|
35
|
-
highlight: boolean;
|
|
36
|
-
} | undefined) => string;
|
|
37
43
|
getId: () => string;
|
|
38
44
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
39
45
|
getOwnerDocument: () => Document;
|
|
40
46
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
41
47
|
getTagName: () => string;
|
|
42
|
-
tagName: () => string;
|
|
43
48
|
typeIn: (text: string) => Promise<void>;
|
|
44
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
45
49
|
getDOMNode: () => Element;
|
|
46
50
|
node: () => Element;
|
|
47
51
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -49,9 +53,8 @@ declare const _default: {
|
|
|
49
53
|
} | undefined) => void;
|
|
50
54
|
accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
|
|
51
55
|
getTextContent: () => string | null;
|
|
52
|
-
getParentNode: () =>
|
|
53
|
-
parent: () =>
|
|
54
|
-
getBoundingClientRect: () => DOMRect;
|
|
56
|
+
getParentNode: () => ParentNode | null;
|
|
57
|
+
parent: () => ParentNode | null;
|
|
55
58
|
rect: () => DOMRect;
|
|
56
59
|
hasClass: (classname: string) => boolean;
|
|
57
60
|
containsFocus: () => boolean;
|
|
@@ -63,19 +66,17 @@ declare const _default: {
|
|
|
63
66
|
exists: () => boolean;
|
|
64
67
|
text: () => string | null;
|
|
65
68
|
empty: () => boolean;
|
|
66
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
67
69
|
descendants: (selector: string) => Element[];
|
|
68
|
-
ancestors: (selector: string) =>
|
|
70
|
+
ancestors: (selector: string) => ParentNode[];
|
|
69
71
|
attribute: (qualifiedName: string) => string | null;
|
|
70
72
|
style: (property: string) => string;
|
|
71
73
|
classNames: () => string[];
|
|
72
|
-
matches: (selector: string | undefined) => boolean;
|
|
73
74
|
checked: () => any;
|
|
74
75
|
selected: () => any;
|
|
75
76
|
readonly: () => any;
|
|
76
|
-
|
|
77
|
-
parents: (selector: string) => (Node & ParentNode)[];
|
|
77
|
+
parents: (selector: string) => ParentNode[];
|
|
78
78
|
} & {
|
|
79
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
79
80
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
80
81
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
81
82
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -113,7 +114,6 @@ declare const _default: {
|
|
|
113
114
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
114
115
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
115
116
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
116
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
117
117
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
118
118
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
119
119
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -165,24 +165,28 @@ declare const _default: {
|
|
|
165
165
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
166
166
|
findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
|
|
167
167
|
} & {
|
|
168
|
+
toString: (maxLength?: number | undefined, options?: {
|
|
169
|
+
highlight: boolean;
|
|
170
|
+
} | undefined) => string;
|
|
171
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
172
|
+
children: (selector: string) => Element[];
|
|
173
|
+
title: () => string | null | undefined;
|
|
174
|
+
id: () => string;
|
|
175
|
+
tagName: () => string;
|
|
176
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
177
|
+
getBoundingClientRect: () => DOMRect;
|
|
178
|
+
matches: (selector: string | undefined) => boolean;
|
|
168
179
|
visible: () => boolean;
|
|
169
180
|
value: () => string | null;
|
|
170
181
|
disabled: () => string | null;
|
|
171
182
|
role: () => string | null;
|
|
172
|
-
id: () => string;
|
|
173
183
|
label: () => string | null | undefined;
|
|
174
|
-
title: () => string | null | undefined;
|
|
175
|
-
toString: (maxLength?: number | undefined, options?: {
|
|
176
|
-
highlight: boolean;
|
|
177
|
-
} | undefined) => string;
|
|
178
184
|
getId: () => string;
|
|
179
185
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
180
186
|
getOwnerDocument: () => Document;
|
|
181
187
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
182
188
|
getTagName: () => string;
|
|
183
|
-
tagName: () => string;
|
|
184
189
|
typeIn: (text: string) => Promise<void>;
|
|
185
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
186
190
|
getDOMNode: () => Element;
|
|
187
191
|
node: () => Element;
|
|
188
192
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -190,9 +194,8 @@ declare const _default: {
|
|
|
190
194
|
} | undefined) => void;
|
|
191
195
|
accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
|
|
192
196
|
getTextContent: () => string | null;
|
|
193
|
-
getParentNode: () =>
|
|
194
|
-
parent: () =>
|
|
195
|
-
getBoundingClientRect: () => DOMRect;
|
|
197
|
+
getParentNode: () => ParentNode | null;
|
|
198
|
+
parent: () => ParentNode | null;
|
|
196
199
|
rect: () => DOMRect;
|
|
197
200
|
hasClass: (classname: string) => boolean;
|
|
198
201
|
containsFocus: () => boolean;
|
|
@@ -204,19 +207,17 @@ declare const _default: {
|
|
|
204
207
|
exists: () => boolean;
|
|
205
208
|
text: () => string | null;
|
|
206
209
|
empty: () => boolean;
|
|
207
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
208
210
|
descendants: (selector: string) => Element[];
|
|
209
|
-
ancestors: (selector: string) =>
|
|
211
|
+
ancestors: (selector: string) => ParentNode[];
|
|
210
212
|
attribute: (qualifiedName: string) => string | null;
|
|
211
213
|
style: (property: string) => string;
|
|
212
214
|
classNames: () => string[];
|
|
213
|
-
matches: (selector: string | undefined) => boolean;
|
|
214
215
|
checked: () => any;
|
|
215
216
|
selected: () => any;
|
|
216
217
|
readonly: () => any;
|
|
217
|
-
|
|
218
|
-
parents: (selector: string) => (Node & ParentNode)[];
|
|
218
|
+
parents: (selector: string) => ParentNode[];
|
|
219
219
|
} & {
|
|
220
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
220
221
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
221
222
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
222
223
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -254,7 +255,6 @@ declare const _default: {
|
|
|
254
255
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
255
256
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
256
257
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
257
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
258
258
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
259
259
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
260
260
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -306,24 +306,28 @@ declare const _default: {
|
|
|
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 @@ declare const _default: {
|
|
|
331
335
|
} | undefined) => void;
|
|
332
336
|
accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
|
|
333
337
|
getTextContent: () => string | null;
|
|
334
|
-
getParentNode: () =>
|
|
335
|
-
parent: () =>
|
|
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 @@ declare const _default: {
|
|
|
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) =>
|
|
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
|
-
|
|
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 @@ declare const _default: {
|
|
|
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>;
|
|
@@ -447,24 +447,28 @@ declare const _default: {
|
|
|
447
447
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
448
448
|
findParents: typeof import("@instructure/ui-test-queries/src/utils/queries").findParents;
|
|
449
449
|
} & {
|
|
450
|
+
toString: (maxLength?: number | undefined, options?: {
|
|
451
|
+
highlight: boolean;
|
|
452
|
+
} | undefined) => string;
|
|
453
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
454
|
+
children: (selector: string) => Element[];
|
|
455
|
+
title: () => string | null | undefined;
|
|
456
|
+
id: () => string;
|
|
457
|
+
tagName: () => string;
|
|
458
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
459
|
+
getBoundingClientRect: () => DOMRect;
|
|
460
|
+
matches: (selector: string | undefined) => boolean;
|
|
450
461
|
visible: () => boolean;
|
|
451
462
|
value: () => string | null;
|
|
452
463
|
disabled: () => string | null;
|
|
453
464
|
role: () => string | null;
|
|
454
|
-
id: () => string;
|
|
455
465
|
label: () => string | null | undefined;
|
|
456
|
-
title: () => string | null | undefined;
|
|
457
|
-
toString: (maxLength?: number | undefined, options?: {
|
|
458
|
-
highlight: boolean;
|
|
459
|
-
} | undefined) => string;
|
|
460
466
|
getId: () => string;
|
|
461
467
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
462
468
|
getOwnerDocument: () => Document;
|
|
463
469
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
464
470
|
getTagName: () => string;
|
|
465
|
-
tagName: () => string;
|
|
466
471
|
typeIn: (text: string) => Promise<void>;
|
|
467
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
468
472
|
getDOMNode: () => Element;
|
|
469
473
|
node: () => Element;
|
|
470
474
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -472,9 +476,8 @@ declare const _default: {
|
|
|
472
476
|
} | undefined) => void;
|
|
473
477
|
accessible: (options?: Record<string, unknown> | undefined) => Promise<boolean>;
|
|
474
478
|
getTextContent: () => string | null;
|
|
475
|
-
getParentNode: () =>
|
|
476
|
-
parent: () =>
|
|
477
|
-
getBoundingClientRect: () => DOMRect;
|
|
479
|
+
getParentNode: () => ParentNode | null;
|
|
480
|
+
parent: () => ParentNode | null;
|
|
478
481
|
rect: () => DOMRect;
|
|
479
482
|
hasClass: (classname: string) => boolean;
|
|
480
483
|
containsFocus: () => boolean;
|
|
@@ -486,19 +489,17 @@ declare const _default: {
|
|
|
486
489
|
exists: () => boolean;
|
|
487
490
|
text: () => string | null;
|
|
488
491
|
empty: () => boolean;
|
|
489
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
490
492
|
descendants: (selector: string) => Element[];
|
|
491
|
-
ancestors: (selector: string) =>
|
|
493
|
+
ancestors: (selector: string) => ParentNode[];
|
|
492
494
|
attribute: (qualifiedName: string) => string | null;
|
|
493
495
|
style: (property: string) => string;
|
|
494
496
|
classNames: () => string[];
|
|
495
|
-
matches: (selector: string | undefined) => boolean;
|
|
496
497
|
checked: () => any;
|
|
497
498
|
selected: () => any;
|
|
498
499
|
readonly: () => any;
|
|
499
|
-
|
|
500
|
-
parents: (selector: string) => (Node & ParentNode)[];
|
|
500
|
+
parents: (selector: string) => ParentNode[];
|
|
501
501
|
} & {
|
|
502
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
502
503
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
503
504
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
504
505
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -536,7 +537,6 @@ declare const _default: {
|
|
|
536
537
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
537
538
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
538
539
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
539
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
540
540
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
541
541
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
542
542
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
package/types/Button/props.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare type ButtonOwnProps = {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
type?: 'button' | 'submit' | 'reset';
|
|
7
7
|
size?: 'small' | 'medium' | 'large';
|
|
8
|
-
elementRef?: (
|
|
8
|
+
elementRef?: (element: Element | null) => void;
|
|
9
9
|
as?: AsElementType;
|
|
10
10
|
interaction?: 'enabled' | 'disabled' | 'readonly';
|
|
11
11
|
color?: 'primary' | 'primary-inverse' | 'secondary' | 'success' | 'danger';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Button/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAElC,aAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Button/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAElC,aAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IACjD,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IAClC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;CACzD,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,cAAc,CAAA;AAEpC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAA;AAEzE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAuEvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAgBnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|