@react-aria/focus 3.4.0 → 3.5.2
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/dist/main.js +552 -680
- package/dist/main.js.map +1 -1
- package/dist/module.js +535 -635
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +173 -169
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/FocusScope.tsx +139 -33
- package/src/useFocusRing.ts +3 -1
- package/src/useFocusable.tsx +8 -4
package/dist/types.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ interface FocusManager {
|
|
|
34
34
|
focusNext(opts?: FocusManagerOptions): HTMLElement;
|
|
35
35
|
/** Moves focus to the previous focusable or tabbable element in the focus scope. */
|
|
36
36
|
focusPrevious(opts?: FocusManagerOptions): HTMLElement;
|
|
37
|
+
/** Moves focus to the first focusable or tabbable element in the focus scope. */
|
|
38
|
+
focusFirst(opts?: FocusManagerOptions): HTMLElement;
|
|
39
|
+
/** Moves focus to the last focusable or tabbable element in the focus scope. */
|
|
40
|
+
focusLast(opts?: FocusManagerOptions): HTMLElement;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
* A FocusScope manages focus for its descendants. It supports containing focus inside
|
|
@@ -109,7 +113,7 @@ interface _FocusRingProps1 {
|
|
|
109
113
|
* Focus rings are visible only when the user is interacting with a keyboard,
|
|
110
114
|
* not with a mouse, touch, or other input methods.
|
|
111
115
|
*/
|
|
112
|
-
export function FocusRing(props: _FocusRingProps1): React.ReactElement<any, string |
|
|
116
|
+
export function FocusRing(props: _FocusRingProps1): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
113
117
|
interface FocusableOptions extends FocusableProps, FocusableDOMProps {
|
|
114
118
|
/** Whether focus should be disabled. */
|
|
115
119
|
isDisabled?: boolean;
|
|
@@ -134,7 +138,7 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
134
138
|
suppressHydrationWarning?: boolean;
|
|
135
139
|
accessKey?: string;
|
|
136
140
|
className?: string;
|
|
137
|
-
contentEditable?:
|
|
141
|
+
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
138
142
|
contextMenu?: string;
|
|
139
143
|
dir?: string;
|
|
140
144
|
draggable?: boolean | "false" | "true";
|
|
@@ -146,9 +150,9 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
146
150
|
spellCheck?: boolean | "false" | "true";
|
|
147
151
|
style?: React.CSSProperties;
|
|
148
152
|
title?: string;
|
|
149
|
-
translate?: "
|
|
153
|
+
translate?: "yes" | "no";
|
|
150
154
|
radioGroup?: string;
|
|
151
|
-
role?:
|
|
155
|
+
role?: React.AriaRole;
|
|
152
156
|
about?: string;
|
|
153
157
|
datatype?: string;
|
|
154
158
|
inlist?: any;
|
|
@@ -169,18 +173,18 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
169
173
|
results?: number;
|
|
170
174
|
security?: string;
|
|
171
175
|
unselectable?: "on" | "off";
|
|
172
|
-
inputMode?: "search" | "
|
|
176
|
+
inputMode?: "search" | "numeric" | "none" | "url" | "text" | "tel" | "email" | "decimal";
|
|
173
177
|
is?: string;
|
|
174
178
|
'aria-activedescendant'?: string;
|
|
175
179
|
'aria-atomic'?: boolean | "false" | "true";
|
|
176
|
-
'aria-autocomplete'?: "
|
|
180
|
+
'aria-autocomplete'?: "inline" | "both" | "none" | "list";
|
|
177
181
|
'aria-busy'?: boolean | "false" | "true";
|
|
178
182
|
'aria-checked'?: boolean | "mixed" | "false" | "true";
|
|
179
183
|
'aria-colcount'?: number;
|
|
180
184
|
'aria-colindex'?: number;
|
|
181
185
|
'aria-colspan'?: number;
|
|
182
186
|
'aria-controls'?: string;
|
|
183
|
-
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "step" | "
|
|
187
|
+
'aria-current'?: boolean | "location" | "time" | "page" | "false" | "true" | "step" | "date";
|
|
184
188
|
'aria-describedby'?: string;
|
|
185
189
|
'aria-details'?: string;
|
|
186
190
|
'aria-disabled'?: boolean | "false" | "true";
|
|
@@ -189,7 +193,7 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
189
193
|
'aria-expanded'?: boolean | "false" | "true";
|
|
190
194
|
'aria-flowto'?: string;
|
|
191
195
|
'aria-grabbed'?: boolean | "false" | "true";
|
|
192
|
-
'aria-haspopup'?: boolean | "
|
|
196
|
+
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "listbox" | "false" | "true" | "tree";
|
|
193
197
|
'aria-hidden'?: boolean | "false" | "true";
|
|
194
198
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
|
|
195
199
|
'aria-keyshortcuts'?: string;
|
|
@@ -214,7 +218,7 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
214
218
|
'aria-rowspan'?: number;
|
|
215
219
|
'aria-selected'?: boolean | "false" | "true";
|
|
216
220
|
'aria-setsize'?: number;
|
|
217
|
-
'aria-sort'?: "none" | "
|
|
221
|
+
'aria-sort'?: "none" | "other" | "ascending" | "descending";
|
|
218
222
|
'aria-valuemax'?: number;
|
|
219
223
|
'aria-valuemin'?: number;
|
|
220
224
|
'aria-valuenow'?: number;
|
|
@@ -223,166 +227,166 @@ export function useFocusable(props: FocusableOptions, domRef: RefObject<HTMLElem
|
|
|
223
227
|
dangerouslySetInnerHTML?: {
|
|
224
228
|
__html: string;
|
|
225
229
|
};
|
|
226
|
-
onCopy?:
|
|
227
|
-
onCopyCapture?:
|
|
228
|
-
onCut?:
|
|
229
|
-
onCutCapture?:
|
|
230
|
-
onPaste?:
|
|
231
|
-
onPasteCapture?:
|
|
232
|
-
onCompositionEnd?:
|
|
233
|
-
onCompositionEndCapture?:
|
|
234
|
-
onCompositionStart?:
|
|
235
|
-
onCompositionStartCapture?:
|
|
236
|
-
onCompositionUpdate?:
|
|
237
|
-
onCompositionUpdateCapture?:
|
|
238
|
-
onFocus?:
|
|
239
|
-
onFocusCapture?:
|
|
240
|
-
onBlur?:
|
|
241
|
-
onBlurCapture?:
|
|
242
|
-
onChange?:
|
|
243
|
-
onChangeCapture?:
|
|
244
|
-
onBeforeInput?:
|
|
245
|
-
onBeforeInputCapture?:
|
|
246
|
-
onInput?:
|
|
247
|
-
onInputCapture?:
|
|
248
|
-
onReset?:
|
|
249
|
-
onResetCapture?:
|
|
250
|
-
onSubmit?:
|
|
251
|
-
onSubmitCapture?:
|
|
252
|
-
onInvalid?:
|
|
253
|
-
onInvalidCapture?:
|
|
254
|
-
onLoad?:
|
|
255
|
-
onLoadCapture?:
|
|
256
|
-
onError?:
|
|
257
|
-
onErrorCapture?:
|
|
258
|
-
onKeyDown?:
|
|
259
|
-
onKeyDownCapture?:
|
|
260
|
-
onKeyPress?:
|
|
261
|
-
onKeyPressCapture?:
|
|
262
|
-
onKeyUp?:
|
|
263
|
-
onKeyUpCapture?:
|
|
264
|
-
onAbort?:
|
|
265
|
-
onAbortCapture?:
|
|
266
|
-
onCanPlay?:
|
|
267
|
-
onCanPlayCapture?:
|
|
268
|
-
onCanPlayThrough?:
|
|
269
|
-
onCanPlayThroughCapture?:
|
|
270
|
-
onDurationChange?:
|
|
271
|
-
onDurationChangeCapture?:
|
|
272
|
-
onEmptied?:
|
|
273
|
-
onEmptiedCapture?:
|
|
274
|
-
onEncrypted?:
|
|
275
|
-
onEncryptedCapture?:
|
|
276
|
-
onEnded?:
|
|
277
|
-
onEndedCapture?:
|
|
278
|
-
onLoadedData?:
|
|
279
|
-
onLoadedDataCapture?:
|
|
280
|
-
onLoadedMetadata?:
|
|
281
|
-
onLoadedMetadataCapture?:
|
|
282
|
-
onLoadStart?:
|
|
283
|
-
onLoadStartCapture?:
|
|
284
|
-
onPause?:
|
|
285
|
-
onPauseCapture?:
|
|
286
|
-
onPlay?:
|
|
287
|
-
onPlayCapture?:
|
|
288
|
-
onPlaying?:
|
|
289
|
-
onPlayingCapture?:
|
|
290
|
-
onProgress?:
|
|
291
|
-
onProgressCapture?:
|
|
292
|
-
onRateChange?:
|
|
293
|
-
onRateChangeCapture?:
|
|
294
|
-
onSeeked?:
|
|
295
|
-
onSeekedCapture?:
|
|
296
|
-
onSeeking?:
|
|
297
|
-
onSeekingCapture?:
|
|
298
|
-
onStalled?:
|
|
299
|
-
onStalledCapture?:
|
|
300
|
-
onSuspend?:
|
|
301
|
-
onSuspendCapture?:
|
|
302
|
-
onTimeUpdate?:
|
|
303
|
-
onTimeUpdateCapture?:
|
|
304
|
-
onVolumeChange?:
|
|
305
|
-
onVolumeChangeCapture?:
|
|
306
|
-
onWaiting?:
|
|
307
|
-
onWaitingCapture?:
|
|
308
|
-
onAuxClick?:
|
|
309
|
-
onAuxClickCapture?:
|
|
310
|
-
onClick?:
|
|
311
|
-
onClickCapture?:
|
|
312
|
-
onContextMenu?:
|
|
313
|
-
onContextMenuCapture?:
|
|
314
|
-
onDoubleClick?:
|
|
315
|
-
onDoubleClickCapture?:
|
|
316
|
-
onDrag?:
|
|
317
|
-
onDragCapture?:
|
|
318
|
-
onDragEnd?:
|
|
319
|
-
onDragEndCapture?:
|
|
320
|
-
onDragEnter?:
|
|
321
|
-
onDragEnterCapture?:
|
|
322
|
-
onDragExit?:
|
|
323
|
-
onDragExitCapture?:
|
|
324
|
-
onDragLeave?:
|
|
325
|
-
onDragLeaveCapture?:
|
|
326
|
-
onDragOver?:
|
|
327
|
-
onDragOverCapture?:
|
|
328
|
-
onDragStart?:
|
|
329
|
-
onDragStartCapture?:
|
|
330
|
-
onDrop?:
|
|
331
|
-
onDropCapture?:
|
|
332
|
-
onMouseDown?:
|
|
333
|
-
onMouseDownCapture?:
|
|
334
|
-
onMouseEnter?:
|
|
335
|
-
onMouseLeave?:
|
|
336
|
-
onMouseMove?:
|
|
337
|
-
onMouseMoveCapture?:
|
|
338
|
-
onMouseOut?:
|
|
339
|
-
onMouseOutCapture?:
|
|
340
|
-
onMouseOver?:
|
|
341
|
-
onMouseOverCapture?:
|
|
342
|
-
onMouseUp?:
|
|
343
|
-
onMouseUpCapture?:
|
|
344
|
-
onSelect?:
|
|
345
|
-
onSelectCapture?:
|
|
346
|
-
onTouchCancel?:
|
|
347
|
-
onTouchCancelCapture?:
|
|
348
|
-
onTouchEnd?:
|
|
349
|
-
onTouchEndCapture?:
|
|
350
|
-
onTouchMove?:
|
|
351
|
-
onTouchMoveCapture?:
|
|
352
|
-
onTouchStart?:
|
|
353
|
-
onTouchStartCapture?:
|
|
354
|
-
onPointerDown?:
|
|
355
|
-
onPointerDownCapture?:
|
|
356
|
-
onPointerMove?:
|
|
357
|
-
onPointerMoveCapture?:
|
|
358
|
-
onPointerUp?:
|
|
359
|
-
onPointerUpCapture?:
|
|
360
|
-
onPointerCancel?:
|
|
361
|
-
onPointerCancelCapture?:
|
|
362
|
-
onPointerEnter?:
|
|
363
|
-
onPointerEnterCapture?:
|
|
364
|
-
onPointerLeave?:
|
|
365
|
-
onPointerLeaveCapture?:
|
|
366
|
-
onPointerOver?:
|
|
367
|
-
onPointerOverCapture?:
|
|
368
|
-
onPointerOut?:
|
|
369
|
-
onPointerOutCapture?:
|
|
370
|
-
onGotPointerCapture?:
|
|
371
|
-
onGotPointerCaptureCapture?:
|
|
372
|
-
onLostPointerCapture?:
|
|
373
|
-
onLostPointerCaptureCapture?:
|
|
374
|
-
onScroll?:
|
|
375
|
-
onScrollCapture?:
|
|
376
|
-
onWheel?:
|
|
377
|
-
onWheelCapture?:
|
|
378
|
-
onAnimationStart?:
|
|
379
|
-
onAnimationStartCapture?:
|
|
380
|
-
onAnimationEnd?:
|
|
381
|
-
onAnimationEndCapture?:
|
|
382
|
-
onAnimationIteration?:
|
|
383
|
-
onAnimationIterationCapture?:
|
|
384
|
-
onTransitionEnd?:
|
|
385
|
-
onTransitionEndCapture?:
|
|
230
|
+
onCopy?: React.ClipboardEventHandler<HTMLElement>;
|
|
231
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLElement>;
|
|
232
|
+
onCut?: React.ClipboardEventHandler<HTMLElement>;
|
|
233
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLElement>;
|
|
234
|
+
onPaste?: React.ClipboardEventHandler<HTMLElement>;
|
|
235
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLElement>;
|
|
236
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLElement>;
|
|
237
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLElement>;
|
|
238
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLElement>;
|
|
239
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLElement>;
|
|
240
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement>;
|
|
241
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLElement>;
|
|
242
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
243
|
+
onFocusCapture?: React.FocusEventHandler<HTMLElement>;
|
|
244
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
245
|
+
onBlurCapture?: React.FocusEventHandler<HTMLElement>;
|
|
246
|
+
onChange?: React.FormEventHandler<HTMLElement>;
|
|
247
|
+
onChangeCapture?: React.FormEventHandler<HTMLElement>;
|
|
248
|
+
onBeforeInput?: React.FormEventHandler<HTMLElement>;
|
|
249
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLElement>;
|
|
250
|
+
onInput?: React.FormEventHandler<HTMLElement>;
|
|
251
|
+
onInputCapture?: React.FormEventHandler<HTMLElement>;
|
|
252
|
+
onReset?: React.FormEventHandler<HTMLElement>;
|
|
253
|
+
onResetCapture?: React.FormEventHandler<HTMLElement>;
|
|
254
|
+
onSubmit?: React.FormEventHandler<HTMLElement>;
|
|
255
|
+
onSubmitCapture?: React.FormEventHandler<HTMLElement>;
|
|
256
|
+
onInvalid?: React.FormEventHandler<HTMLElement>;
|
|
257
|
+
onInvalidCapture?: React.FormEventHandler<HTMLElement>;
|
|
258
|
+
onLoad?: React.ReactEventHandler<HTMLElement>;
|
|
259
|
+
onLoadCapture?: React.ReactEventHandler<HTMLElement>;
|
|
260
|
+
onError?: React.ReactEventHandler<HTMLElement>;
|
|
261
|
+
onErrorCapture?: React.ReactEventHandler<HTMLElement>;
|
|
262
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
263
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLElement>;
|
|
264
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
|
|
265
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLElement>;
|
|
266
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
267
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLElement>;
|
|
268
|
+
onAbort?: React.ReactEventHandler<HTMLElement>;
|
|
269
|
+
onAbortCapture?: React.ReactEventHandler<HTMLElement>;
|
|
270
|
+
onCanPlay?: React.ReactEventHandler<HTMLElement>;
|
|
271
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLElement>;
|
|
272
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLElement>;
|
|
273
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLElement>;
|
|
274
|
+
onDurationChange?: React.ReactEventHandler<HTMLElement>;
|
|
275
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLElement>;
|
|
276
|
+
onEmptied?: React.ReactEventHandler<HTMLElement>;
|
|
277
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLElement>;
|
|
278
|
+
onEncrypted?: React.ReactEventHandler<HTMLElement>;
|
|
279
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLElement>;
|
|
280
|
+
onEnded?: React.ReactEventHandler<HTMLElement>;
|
|
281
|
+
onEndedCapture?: React.ReactEventHandler<HTMLElement>;
|
|
282
|
+
onLoadedData?: React.ReactEventHandler<HTMLElement>;
|
|
283
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLElement>;
|
|
284
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLElement>;
|
|
285
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLElement>;
|
|
286
|
+
onLoadStart?: React.ReactEventHandler<HTMLElement>;
|
|
287
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLElement>;
|
|
288
|
+
onPause?: React.ReactEventHandler<HTMLElement>;
|
|
289
|
+
onPauseCapture?: React.ReactEventHandler<HTMLElement>;
|
|
290
|
+
onPlay?: React.ReactEventHandler<HTMLElement>;
|
|
291
|
+
onPlayCapture?: React.ReactEventHandler<HTMLElement>;
|
|
292
|
+
onPlaying?: React.ReactEventHandler<HTMLElement>;
|
|
293
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLElement>;
|
|
294
|
+
onProgress?: React.ReactEventHandler<HTMLElement>;
|
|
295
|
+
onProgressCapture?: React.ReactEventHandler<HTMLElement>;
|
|
296
|
+
onRateChange?: React.ReactEventHandler<HTMLElement>;
|
|
297
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLElement>;
|
|
298
|
+
onSeeked?: React.ReactEventHandler<HTMLElement>;
|
|
299
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLElement>;
|
|
300
|
+
onSeeking?: React.ReactEventHandler<HTMLElement>;
|
|
301
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLElement>;
|
|
302
|
+
onStalled?: React.ReactEventHandler<HTMLElement>;
|
|
303
|
+
onStalledCapture?: React.ReactEventHandler<HTMLElement>;
|
|
304
|
+
onSuspend?: React.ReactEventHandler<HTMLElement>;
|
|
305
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLElement>;
|
|
306
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLElement>;
|
|
307
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLElement>;
|
|
308
|
+
onVolumeChange?: React.ReactEventHandler<HTMLElement>;
|
|
309
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLElement>;
|
|
310
|
+
onWaiting?: React.ReactEventHandler<HTMLElement>;
|
|
311
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLElement>;
|
|
312
|
+
onAuxClick?: React.MouseEventHandler<HTMLElement>;
|
|
313
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLElement>;
|
|
314
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
315
|
+
onClickCapture?: React.MouseEventHandler<HTMLElement>;
|
|
316
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
317
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLElement>;
|
|
318
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
319
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLElement>;
|
|
320
|
+
onDrag?: React.DragEventHandler<HTMLElement>;
|
|
321
|
+
onDragCapture?: React.DragEventHandler<HTMLElement>;
|
|
322
|
+
onDragEnd?: React.DragEventHandler<HTMLElement>;
|
|
323
|
+
onDragEndCapture?: React.DragEventHandler<HTMLElement>;
|
|
324
|
+
onDragEnter?: React.DragEventHandler<HTMLElement>;
|
|
325
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLElement>;
|
|
326
|
+
onDragExit?: React.DragEventHandler<HTMLElement>;
|
|
327
|
+
onDragExitCapture?: React.DragEventHandler<HTMLElement>;
|
|
328
|
+
onDragLeave?: React.DragEventHandler<HTMLElement>;
|
|
329
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLElement>;
|
|
330
|
+
onDragOver?: React.DragEventHandler<HTMLElement>;
|
|
331
|
+
onDragOverCapture?: React.DragEventHandler<HTMLElement>;
|
|
332
|
+
onDragStart?: React.DragEventHandler<HTMLElement>;
|
|
333
|
+
onDragStartCapture?: React.DragEventHandler<HTMLElement>;
|
|
334
|
+
onDrop?: React.DragEventHandler<HTMLElement>;
|
|
335
|
+
onDropCapture?: React.DragEventHandler<HTMLElement>;
|
|
336
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
337
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLElement>;
|
|
338
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
339
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
340
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
341
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLElement>;
|
|
342
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement>;
|
|
343
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLElement>;
|
|
344
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement>;
|
|
345
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLElement>;
|
|
346
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
347
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLElement>;
|
|
348
|
+
onSelect?: React.ReactEventHandler<HTMLElement>;
|
|
349
|
+
onSelectCapture?: React.ReactEventHandler<HTMLElement>;
|
|
350
|
+
onTouchCancel?: React.TouchEventHandler<HTMLElement>;
|
|
351
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLElement>;
|
|
352
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement>;
|
|
353
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLElement>;
|
|
354
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement>;
|
|
355
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLElement>;
|
|
356
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement>;
|
|
357
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLElement>;
|
|
358
|
+
onPointerDown?: React.PointerEventHandler<HTMLElement>;
|
|
359
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLElement>;
|
|
360
|
+
onPointerMove?: React.PointerEventHandler<HTMLElement>;
|
|
361
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLElement>;
|
|
362
|
+
onPointerUp?: React.PointerEventHandler<HTMLElement>;
|
|
363
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLElement>;
|
|
364
|
+
onPointerCancel?: React.PointerEventHandler<HTMLElement>;
|
|
365
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLElement>;
|
|
366
|
+
onPointerEnter?: React.PointerEventHandler<HTMLElement>;
|
|
367
|
+
onPointerEnterCapture?: React.PointerEventHandler<HTMLElement>;
|
|
368
|
+
onPointerLeave?: React.PointerEventHandler<HTMLElement>;
|
|
369
|
+
onPointerLeaveCapture?: React.PointerEventHandler<HTMLElement>;
|
|
370
|
+
onPointerOver?: React.PointerEventHandler<HTMLElement>;
|
|
371
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLElement>;
|
|
372
|
+
onPointerOut?: React.PointerEventHandler<HTMLElement>;
|
|
373
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLElement>;
|
|
374
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLElement>;
|
|
375
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLElement>;
|
|
376
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLElement>;
|
|
377
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLElement>;
|
|
378
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
379
|
+
onScrollCapture?: React.UIEventHandler<HTMLElement>;
|
|
380
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
381
|
+
onWheelCapture?: React.WheelEventHandler<HTMLElement>;
|
|
382
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLElement>;
|
|
383
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLElement>;
|
|
384
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLElement>;
|
|
385
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLElement>;
|
|
386
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLElement>;
|
|
387
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement>;
|
|
388
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLElement>;
|
|
389
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement>;
|
|
386
390
|
};
|
|
387
391
|
};
|
|
388
392
|
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"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","sources":["packages/@react-aria/focus/src/packages/@react-aria/focus/src/focusSafely.ts","packages/@react-aria/focus/src/packages/@react-aria/focus/src/isElementVisible.ts","packages/@react-aria/focus/src/packages/@react-aria/focus/src/FocusScope.tsx","packages/@react-aria/focus/src/packages/@react-aria/focus/src/useFocusRing.ts","packages/@react-aria/focus/src/packages/@react-aria/focus/src/FocusRing.tsx","packages/@react-aria/focus/src/packages/@react-aria/focus/src/useFocusable.tsx","packages/@react-aria/focus/src/packages/@react-aria/focus/src/index.ts","packages/@react-aria/focus/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './FocusScope';\nexport * from './FocusRing';\nexport * from './useFocusable';\nexport * from './useFocusRing';\nexport * from './focusSafely';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/focus",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@react-aria/interactions": "^3.
|
|
22
|
-
"@react-aria/utils": "^3.
|
|
23
|
-
"@react-types/shared": "^3.
|
|
21
|
+
"@react-aria/interactions": "^3.8.1",
|
|
22
|
+
"@react-aria/utils": "^3.11.2",
|
|
23
|
+
"@react-types/shared": "^3.11.1",
|
|
24
24
|
"clsx": "^1.1.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
|
|
33
33
|
}
|