@instructure/ui-buttons 8.13.1-snapshot.9 → 8.14.0
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/es/BaseButton/index.js +64 -43
- package/es/BaseButton/props.js +2 -88
- package/es/BaseButton/theme.js +1 -1
- package/es/Button/index.js +2 -2
- package/es/Button/props.js +3 -65
- package/es/CloseButton/index.js +23 -18
- package/es/CloseButton/props.js +2 -60
- package/es/CondensedButton/index.js +2 -2
- package/es/CondensedButton/props.js +3 -48
- package/es/IconButton/index.js +2 -2
- package/es/IconButton/props.js +3 -68
- package/es/ToggleButton/index.js +4 -5
- package/es/ToggleButton/props.js +1 -58
- package/lib/BaseButton/index.js +67 -43
- package/lib/BaseButton/props.js +2 -88
- package/lib/BaseButton/theme.js +1 -1
- package/lib/Button/index.js +2 -2
- package/lib/Button/props.js +3 -65
- package/lib/CloseButton/index.js +23 -18
- package/lib/CloseButton/props.js +2 -60
- package/lib/CondensedButton/index.js +2 -2
- package/lib/CondensedButton/props.js +3 -48
- package/lib/IconButton/index.js +2 -2
- package/lib/IconButton/props.js +3 -68
- package/lib/ToggleButton/index.js +4 -5
- package/lib/ToggleButton/props.js +1 -58
- package/package.json +21 -22
- package/src/BaseButton/index.tsx +35 -27
- package/src/BaseButton/props.ts +103 -72
- package/src/BaseButton/theme.ts +1 -6
- package/src/Button/index.tsx +4 -8
- package/src/Button/props.ts +74 -48
- package/src/CloseButton/index.tsx +4 -6
- package/src/CloseButton/props.ts +67 -41
- package/src/CondensedButton/index.tsx +3 -7
- package/src/CondensedButton/props.ts +56 -34
- package/src/IconButton/index.tsx +3 -7
- package/src/IconButton/props.ts +77 -50
- package/src/ToggleButton/index.tsx +8 -15
- package/src/ToggleButton/props.ts +65 -39
- package/tsconfig.build.json +25 -2
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/BaseButton/BaseButtonLocator.d.ts +57 -56
- package/types/BaseButton/BaseButtonLocator.d.ts.map +1 -1
- package/types/BaseButton/index.d.ts +16 -15
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/BaseButton/props.d.ts +76 -5
- package/types/BaseButton/props.d.ts.map +1 -1
- package/types/BaseButton/theme.d.ts.map +1 -1
- package/types/Button/ButtonLocator.d.ts +57 -56
- package/types/Button/ButtonLocator.d.ts.map +1 -1
- package/types/Button/index.d.ts +10 -7
- package/types/Button/index.d.ts.map +1 -1
- package/types/Button/locator.d.ts +52 -52
- package/types/Button/props.d.ts +57 -3
- package/types/Button/props.d.ts.map +1 -1
- package/types/CloseButton/CloseButtonLocator.d.ts +52 -52
- package/types/CloseButton/index.d.ts +4 -3
- package/types/CloseButton/index.d.ts.map +1 -1
- package/types/CloseButton/props.d.ts +55 -5
- package/types/CloseButton/props.d.ts.map +1 -1
- package/types/CondensedButton/CondensedButtonLocator.d.ts +57 -56
- package/types/CondensedButton/CondensedButtonLocator.d.ts.map +1 -1
- package/types/CondensedButton/index.d.ts +9 -6
- package/types/CondensedButton/index.d.ts.map +1 -1
- package/types/CondensedButton/props.d.ts +44 -3
- package/types/CondensedButton/props.d.ts.map +1 -1
- package/types/IconButton/IconButtonLocator.d.ts +57 -56
- package/types/IconButton/IconButtonLocator.d.ts.map +1 -1
- package/types/IconButton/index.d.ts +11 -8
- package/types/IconButton/index.d.ts.map +1 -1
- package/types/IconButton/props.d.ts +60 -4
- package/types/IconButton/props.d.ts.map +1 -1
- package/types/ToggleButton/ToggleButtonLocator.d.ts +57 -56
- package/types/ToggleButton/ToggleButtonLocator.d.ts.map +1 -1
- package/types/ToggleButton/index.d.ts +12 -13
- package/types/ToggleButton/index.d.ts.map +1 -1
- package/types/ToggleButton/props.d.ts +52 -4
- package/types/ToggleButton/props.d.ts.map +1 -1
- package/LICENSE.md +0 -27
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { find } from '@instructure/ui-test-queries';
|
|
1
2
|
export declare const ButtonLocator: {
|
|
2
3
|
customMethods: {
|
|
3
4
|
click: (element: any, ...args: any[]) => Promise<Event>;
|
|
@@ -15,7 +16,7 @@ export declare const ButtonLocator: {
|
|
|
15
16
|
findAllByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllByQuery;
|
|
16
17
|
findByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findByQuery;
|
|
17
18
|
findAll: typeof import("@instructure/ui-test-queries/src/utils/queries").findAll;
|
|
18
|
-
find: typeof
|
|
19
|
+
find: typeof find;
|
|
19
20
|
findAllFrames: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllFrames;
|
|
20
21
|
findFrame: typeof import("@instructure/ui-test-queries/src/utils/queries").findFrame;
|
|
21
22
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
@@ -24,25 +25,15 @@ export declare const ButtonLocator: {
|
|
|
24
25
|
toString: (maxLength?: number | undefined, options?: {
|
|
25
26
|
highlight: boolean;
|
|
26
27
|
} | undefined) => string;
|
|
27
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
28
|
-
children: (selector: string) => Element[];
|
|
29
|
-
title: () => string | null | undefined;
|
|
30
|
-
id: () => string;
|
|
31
|
-
tagName: () => string;
|
|
32
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
33
|
-
getBoundingClientRect: () => DOMRect;
|
|
34
|
-
matches: (selector: string | undefined) => boolean;
|
|
35
28
|
visible: () => boolean;
|
|
36
|
-
value: () => string | null;
|
|
37
|
-
disabled: () => string | null;
|
|
38
|
-
role: () => string | null;
|
|
39
|
-
label: () => string | null | undefined;
|
|
40
29
|
getId: () => string;
|
|
41
30
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
42
31
|
getOwnerDocument: () => Document;
|
|
43
32
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
44
33
|
getTagName: () => string;
|
|
34
|
+
tagName: () => string;
|
|
45
35
|
typeIn: (text: string) => Promise<void>;
|
|
36
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
46
37
|
getDOMNode: () => Element;
|
|
47
38
|
node: () => Element;
|
|
48
39
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -52,6 +43,7 @@ export declare const ButtonLocator: {
|
|
|
52
43
|
getTextContent: () => string | null;
|
|
53
44
|
getParentNode: () => ParentNode | null;
|
|
54
45
|
parent: () => ParentNode | null;
|
|
46
|
+
getBoundingClientRect: () => DOMRect;
|
|
55
47
|
rect: () => DOMRect;
|
|
56
48
|
hasClass: (classname: string) => boolean;
|
|
57
49
|
containsFocus: () => boolean;
|
|
@@ -63,17 +55,25 @@ export declare const ButtonLocator: {
|
|
|
63
55
|
exists: () => boolean;
|
|
64
56
|
text: () => string | null;
|
|
65
57
|
empty: () => boolean;
|
|
58
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
66
59
|
descendants: (selector: string) => Element[];
|
|
67
60
|
ancestors: (selector: string) => ParentNode[];
|
|
68
61
|
attribute: (qualifiedName: string) => string | null;
|
|
69
62
|
style: (property: string) => string;
|
|
70
63
|
classNames: () => string[];
|
|
64
|
+
id: () => string;
|
|
65
|
+
matches: (selector: string | undefined) => boolean;
|
|
71
66
|
checked: () => any;
|
|
72
67
|
selected: () => any;
|
|
68
|
+
disabled: () => string | null;
|
|
73
69
|
readonly: () => any;
|
|
70
|
+
role: () => string | null;
|
|
71
|
+
value: () => string | null;
|
|
72
|
+
label: () => string | null | undefined;
|
|
73
|
+
title: () => string | null | undefined;
|
|
74
|
+
children: (selector: string) => Element[];
|
|
74
75
|
parents: (selector: string) => ParentNode[];
|
|
75
76
|
} & {
|
|
76
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
77
77
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
78
78
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
79
79
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -111,6 +111,7 @@ export declare const ButtonLocator: {
|
|
|
111
111
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
112
112
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
113
113
|
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>;
|
|
114
115
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
115
116
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
116
117
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -156,7 +157,7 @@ export declare const ButtonLocator: {
|
|
|
156
157
|
findAllByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllByQuery;
|
|
157
158
|
findByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findByQuery;
|
|
158
159
|
findAll: typeof import("@instructure/ui-test-queries/src/utils/queries").findAll;
|
|
159
|
-
find: typeof
|
|
160
|
+
find: typeof find;
|
|
160
161
|
findAllFrames: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllFrames;
|
|
161
162
|
findFrame: typeof import("@instructure/ui-test-queries/src/utils/queries").findFrame;
|
|
162
163
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
@@ -165,25 +166,15 @@ export declare const ButtonLocator: {
|
|
|
165
166
|
toString: (maxLength?: number | undefined, options?: {
|
|
166
167
|
highlight: boolean;
|
|
167
168
|
} | undefined) => string;
|
|
168
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
169
|
-
children: (selector: string) => Element[];
|
|
170
|
-
title: () => string | null | undefined;
|
|
171
|
-
id: () => string;
|
|
172
|
-
tagName: () => string;
|
|
173
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
174
|
-
getBoundingClientRect: () => DOMRect;
|
|
175
|
-
matches: (selector: string | undefined) => boolean;
|
|
176
169
|
visible: () => boolean;
|
|
177
|
-
value: () => string | null;
|
|
178
|
-
disabled: () => string | null;
|
|
179
|
-
role: () => string | null;
|
|
180
|
-
label: () => string | null | undefined;
|
|
181
170
|
getId: () => string;
|
|
182
171
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
183
172
|
getOwnerDocument: () => Document;
|
|
184
173
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
185
174
|
getTagName: () => string;
|
|
175
|
+
tagName: () => string;
|
|
186
176
|
typeIn: (text: string) => Promise<void>;
|
|
177
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
187
178
|
getDOMNode: () => Element;
|
|
188
179
|
node: () => Element;
|
|
189
180
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -193,6 +184,7 @@ export declare const ButtonLocator: {
|
|
|
193
184
|
getTextContent: () => string | null;
|
|
194
185
|
getParentNode: () => ParentNode | null;
|
|
195
186
|
parent: () => ParentNode | null;
|
|
187
|
+
getBoundingClientRect: () => DOMRect;
|
|
196
188
|
rect: () => DOMRect;
|
|
197
189
|
hasClass: (classname: string) => boolean;
|
|
198
190
|
containsFocus: () => boolean;
|
|
@@ -204,17 +196,25 @@ export declare const ButtonLocator: {
|
|
|
204
196
|
exists: () => boolean;
|
|
205
197
|
text: () => string | null;
|
|
206
198
|
empty: () => boolean;
|
|
199
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
207
200
|
descendants: (selector: string) => Element[];
|
|
208
201
|
ancestors: (selector: string) => ParentNode[];
|
|
209
202
|
attribute: (qualifiedName: string) => string | null;
|
|
210
203
|
style: (property: string) => string;
|
|
211
204
|
classNames: () => string[];
|
|
205
|
+
id: () => string;
|
|
206
|
+
matches: (selector: string | undefined) => boolean;
|
|
212
207
|
checked: () => any;
|
|
213
208
|
selected: () => any;
|
|
209
|
+
disabled: () => string | null;
|
|
214
210
|
readonly: () => any;
|
|
211
|
+
role: () => string | null;
|
|
212
|
+
value: () => string | null;
|
|
213
|
+
label: () => string | null | undefined;
|
|
214
|
+
title: () => string | null | undefined;
|
|
215
|
+
children: (selector: string) => Element[];
|
|
215
216
|
parents: (selector: string) => ParentNode[];
|
|
216
217
|
} & {
|
|
217
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
218
218
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
219
219
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
220
220
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -252,6 +252,7 @@ export declare const ButtonLocator: {
|
|
|
252
252
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
253
253
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
254
254
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
255
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
255
256
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
256
257
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
257
258
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -297,7 +298,7 @@ export declare const ButtonLocator: {
|
|
|
297
298
|
findAllByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllByQuery;
|
|
298
299
|
findByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findByQuery;
|
|
299
300
|
findAll: typeof import("@instructure/ui-test-queries/src/utils/queries").findAll;
|
|
300
|
-
find: typeof
|
|
301
|
+
find: typeof find;
|
|
301
302
|
findAllFrames: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllFrames;
|
|
302
303
|
findFrame: typeof import("@instructure/ui-test-queries/src/utils/queries").findFrame;
|
|
303
304
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
@@ -306,25 +307,15 @@ export declare const ButtonLocator: {
|
|
|
306
307
|
toString: (maxLength?: number | undefined, options?: {
|
|
307
308
|
highlight: boolean;
|
|
308
309
|
} | undefined) => string;
|
|
309
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
310
|
-
children: (selector: string) => Element[];
|
|
311
|
-
title: () => string | null | undefined;
|
|
312
|
-
id: () => string;
|
|
313
|
-
tagName: () => string;
|
|
314
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
315
|
-
getBoundingClientRect: () => DOMRect;
|
|
316
|
-
matches: (selector: string | undefined) => boolean;
|
|
317
310
|
visible: () => boolean;
|
|
318
|
-
value: () => string | null;
|
|
319
|
-
disabled: () => string | null;
|
|
320
|
-
role: () => string | null;
|
|
321
|
-
label: () => string | null | undefined;
|
|
322
311
|
getId: () => string;
|
|
323
312
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
324
313
|
getOwnerDocument: () => Document;
|
|
325
314
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
326
315
|
getTagName: () => string;
|
|
316
|
+
tagName: () => string;
|
|
327
317
|
typeIn: (text: string) => Promise<void>;
|
|
318
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
328
319
|
getDOMNode: () => Element;
|
|
329
320
|
node: () => Element;
|
|
330
321
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -334,6 +325,7 @@ export declare const ButtonLocator: {
|
|
|
334
325
|
getTextContent: () => string | null;
|
|
335
326
|
getParentNode: () => ParentNode | null;
|
|
336
327
|
parent: () => ParentNode | null;
|
|
328
|
+
getBoundingClientRect: () => DOMRect;
|
|
337
329
|
rect: () => DOMRect;
|
|
338
330
|
hasClass: (classname: string) => boolean;
|
|
339
331
|
containsFocus: () => boolean;
|
|
@@ -345,17 +337,25 @@ export declare const ButtonLocator: {
|
|
|
345
337
|
exists: () => boolean;
|
|
346
338
|
text: () => string | null;
|
|
347
339
|
empty: () => boolean;
|
|
340
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
348
341
|
descendants: (selector: string) => Element[];
|
|
349
342
|
ancestors: (selector: string) => ParentNode[];
|
|
350
343
|
attribute: (qualifiedName: string) => string | null;
|
|
351
344
|
style: (property: string) => string;
|
|
352
345
|
classNames: () => string[];
|
|
346
|
+
id: () => string;
|
|
347
|
+
matches: (selector: string | undefined) => boolean;
|
|
353
348
|
checked: () => any;
|
|
354
349
|
selected: () => any;
|
|
350
|
+
disabled: () => string | null;
|
|
355
351
|
readonly: () => any;
|
|
352
|
+
role: () => string | null;
|
|
353
|
+
value: () => string | null;
|
|
354
|
+
label: () => string | null | undefined;
|
|
355
|
+
title: () => string | null | undefined;
|
|
356
|
+
children: (selector: string) => Element[];
|
|
356
357
|
parents: (selector: string) => ParentNode[];
|
|
357
358
|
} & {
|
|
358
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
359
359
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
360
360
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
361
361
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -393,6 +393,7 @@ export declare const ButtonLocator: {
|
|
|
393
393
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
394
394
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
395
395
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
396
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
396
397
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
397
398
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
398
399
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -438,7 +439,7 @@ export declare const ButtonLocator: {
|
|
|
438
439
|
findAllByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllByQuery;
|
|
439
440
|
findByQuery: typeof import("@instructure/ui-test-queries/src/utils/queries").findByQuery;
|
|
440
441
|
findAll: typeof import("@instructure/ui-test-queries/src/utils/queries").findAll;
|
|
441
|
-
find: typeof
|
|
442
|
+
find: typeof find;
|
|
442
443
|
findAllFrames: typeof import("@instructure/ui-test-queries/src/utils/queries").findAllFrames;
|
|
443
444
|
findFrame: typeof import("@instructure/ui-test-queries/src/utils/queries").findFrame;
|
|
444
445
|
findParent: typeof import("@instructure/ui-test-queries/src/utils/queries").findParent;
|
|
@@ -447,25 +448,15 @@ export declare const ButtonLocator: {
|
|
|
447
448
|
toString: (maxLength?: number | undefined, options?: {
|
|
448
449
|
highlight: boolean;
|
|
449
450
|
} | undefined) => string;
|
|
450
|
-
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
451
|
-
children: (selector: string) => Element[];
|
|
452
|
-
title: () => string | null | undefined;
|
|
453
|
-
id: () => string;
|
|
454
|
-
tagName: () => string;
|
|
455
|
-
getAttribute: (qualifiedName: string) => string | null;
|
|
456
|
-
getBoundingClientRect: () => DOMRect;
|
|
457
|
-
matches: (selector: string | undefined) => boolean;
|
|
458
451
|
visible: () => boolean;
|
|
459
|
-
value: () => string | null;
|
|
460
|
-
disabled: () => string | null;
|
|
461
|
-
role: () => string | null;
|
|
462
|
-
label: () => string | null | undefined;
|
|
463
452
|
getId: () => string;
|
|
464
453
|
getOwnerWindow: () => (Window & typeof globalThis) | null;
|
|
465
454
|
getOwnerDocument: () => Document;
|
|
466
455
|
getComputedStyle: () => CSSStyleDeclaration;
|
|
467
456
|
getTagName: () => string;
|
|
457
|
+
tagName: () => string;
|
|
468
458
|
typeIn: (text: string) => Promise<void>;
|
|
459
|
+
getAttribute: (qualifiedName: string) => string | null;
|
|
469
460
|
getDOMNode: () => Element;
|
|
470
461
|
node: () => Element;
|
|
471
462
|
debug: (maxLength?: number | undefined, options?: {
|
|
@@ -475,6 +466,7 @@ export declare const ButtonLocator: {
|
|
|
475
466
|
getTextContent: () => string | null;
|
|
476
467
|
getParentNode: () => ParentNode | null;
|
|
477
468
|
parent: () => ParentNode | null;
|
|
469
|
+
getBoundingClientRect: () => DOMRect;
|
|
478
470
|
rect: () => DOMRect;
|
|
479
471
|
hasClass: (classname: string) => boolean;
|
|
480
472
|
containsFocus: () => boolean;
|
|
@@ -486,17 +478,25 @@ export declare const ButtonLocator: {
|
|
|
486
478
|
exists: () => boolean;
|
|
487
479
|
text: () => string | null;
|
|
488
480
|
empty: () => boolean;
|
|
481
|
+
contains: (elementOrSelector?: string | Element | undefined) => boolean | Element;
|
|
489
482
|
descendants: (selector: string) => Element[];
|
|
490
483
|
ancestors: (selector: string) => ParentNode[];
|
|
491
484
|
attribute: (qualifiedName: string) => string | null;
|
|
492
485
|
style: (property: string) => string;
|
|
493
486
|
classNames: () => string[];
|
|
487
|
+
id: () => string;
|
|
488
|
+
matches: (selector: string | undefined) => boolean;
|
|
494
489
|
checked: () => any;
|
|
495
490
|
selected: () => any;
|
|
491
|
+
disabled: () => string | null;
|
|
496
492
|
readonly: () => any;
|
|
493
|
+
role: () => string | null;
|
|
494
|
+
value: () => string | null;
|
|
495
|
+
label: () => string | null | undefined;
|
|
496
|
+
title: () => string | null | undefined;
|
|
497
|
+
children: (selector: string) => Element[];
|
|
497
498
|
parents: (selector: string) => ParentNode[];
|
|
498
499
|
} & {
|
|
499
|
-
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
500
500
|
copy: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
501
501
|
cut: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
502
502
|
paste: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -534,6 +534,7 @@ export declare const ButtonLocator: {
|
|
|
534
534
|
touchEnd: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
535
535
|
touchMove: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
536
536
|
touchStart: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
537
|
+
scroll: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
537
538
|
wheel: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
538
539
|
abort: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
539
540
|
canPlay: (init?: import("@instructure/ui-test-queries/src/utils/events").FireEventInit | undefined, options?: Record<string, unknown> | undefined) => Promise<Event>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLocator.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonLocator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonLocator.d.ts","sourceRoot":"","sources":["../../src/Button/ButtonLocator.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAA;AAKnD,eAAO,MAAM,aAAa;;yBACD,GAAG,WAAW,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAnB,GAAG,WAAW,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAnB,GAAG,WAAW,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAnB,GAAG,WAAW,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAnB,GAAG,WAAW,GAAG,EAAE;;uIAG1C,CAAA"}
|
package/types/Button/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
import { BaseButton } from '../BaseButton';
|
|
2
3
|
import type { ButtonProps } from './props';
|
|
3
4
|
/**
|
|
4
5
|
---
|
|
5
6
|
category: components
|
|
6
7
|
---
|
|
8
|
+
@tsProps
|
|
7
9
|
**/
|
|
8
10
|
declare class Button extends Component<ButtonProps> {
|
|
9
11
|
static readonly componentId = "Button";
|
|
@@ -22,7 +24,8 @@ declare class Button extends Component<ButtonProps> {
|
|
|
22
24
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
23
25
|
cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
|
|
24
26
|
href?: string | undefined;
|
|
25
|
-
renderIcon?: React.ReactNode | ((
|
|
27
|
+
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
28
|
+
onClick?: ((event: React.KeyboardEvent<import("@instructure/ui-view/types/View/props").ViewProps> | React.MouseEvent<import("@instructure/ui-view/types/View/props").ViewProps, MouseEvent>) => void) | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
static allowedProps: readonly (keyof {
|
|
28
31
|
children?: React.ReactNode;
|
|
@@ -39,14 +42,14 @@ declare class Button extends Component<ButtonProps> {
|
|
|
39
42
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
40
43
|
cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
|
|
41
44
|
href?: string | undefined;
|
|
42
|
-
renderIcon?: React.ReactNode | ((
|
|
45
|
+
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
46
|
+
onClick?: ((event: React.KeyboardEvent<import("@instructure/ui-view/types/View/props").ViewProps> | React.MouseEvent<import("@instructure/ui-view/types/View/props").ViewProps, MouseEvent>) => void) | undefined;
|
|
43
47
|
})[];
|
|
44
48
|
static defaultProps: {
|
|
45
|
-
children: null;
|
|
46
49
|
type: string;
|
|
47
50
|
size: string;
|
|
48
|
-
elementRef: (el: any) => void;
|
|
49
51
|
as: string;
|
|
52
|
+
interaction: undefined;
|
|
50
53
|
color: string;
|
|
51
54
|
display: string;
|
|
52
55
|
textAlign: string;
|
|
@@ -54,12 +57,12 @@ declare class Button extends Component<ButtonProps> {
|
|
|
54
57
|
margin: string;
|
|
55
58
|
cursor: string;
|
|
56
59
|
};
|
|
57
|
-
_buttonComponent: null;
|
|
60
|
+
_buttonComponent: BaseButton | null;
|
|
58
61
|
ref: Element | null;
|
|
59
|
-
get focused(): null;
|
|
62
|
+
get focused(): boolean | null;
|
|
60
63
|
focus(): void;
|
|
61
64
|
handleElementRef: (el: Element | null) => void;
|
|
62
|
-
handleButtonRef: (component:
|
|
65
|
+
handleButtonRef: (component: BaseButton | null) => void;
|
|
63
66
|
render(): JSX.Element;
|
|
64
67
|
}
|
|
65
68
|
export default Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;GAKG;AAEH,cAEM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAYlB;IAED,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAO;IAE1C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,IAAI,OAAO,mBAEV;IAED,KAAK;IAIL,gBAAgB,OAAQ,OAAO,GAAG,IAAI,UAQrC;IAED,eAAe,cAAe,UAAU,GAAG,IAAI,UAE9C;IAED,MAAM;CA4CP;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|