@react-native-aria/interactions 0.2.11-alpha.1 → 0.2.12
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 +8 -0
- package/lib/commonjs/index.js +14 -17
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +8 -11
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/useHover.js +0 -3
- package/lib/commonjs/useHover.js.map +1 -1
- package/lib/commonjs/useHover.web.js +4 -7
- package/lib/commonjs/useHover.web.js.map +1 -1
- package/lib/commonjs/useKeyboardDismisssable.js +28 -27
- package/lib/commonjs/useKeyboardDismisssable.js.map +1 -1
- package/lib/commonjs/usePress.js +0 -5
- package/lib/commonjs/usePress.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/useHover.js.map +1 -1
- package/lib/module/useHover.web.js +4 -2
- package/lib/module/useHover.web.js.map +1 -1
- package/lib/module/useKeyboardDismisssable.js +24 -14
- package/lib/module/useKeyboardDismisssable.js.map +1 -1
- package/lib/module/usePress.js.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/index.web.d.ts +1 -0
- package/lib/typescript/index.web.d.ts.map +1 -0
- package/lib/typescript/useHover.d.ts +1 -0
- package/lib/typescript/useHover.d.ts.map +1 -0
- package/lib/typescript/useHover.web.d.ts +228 -214
- package/lib/typescript/useHover.web.d.ts.map +1 -0
- package/lib/typescript/useKeyboardDismisssable.d.ts +2 -1
- package/lib/typescript/useKeyboardDismisssable.d.ts.map +1 -0
- package/lib/typescript/usePress.d.ts +2 -1
- package/lib/typescript/usePress.d.ts.map +1 -0
- package/package.json +8 -4
- package/src/useKeyboardDismisssable.ts +23 -10
@@ -1,22 +1,25 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
/// <reference types="react" />
|
2
3
|
import { HoverProps } from '@react-aria/interactions';
|
3
4
|
export declare const useHover: (props?: HoverProps, ref?: any) => {
|
4
5
|
hoverProps: {
|
5
|
-
onHoverIn:
|
6
|
-
onHoverOut:
|
6
|
+
onHoverIn: import("react").PointerEventHandler<HTMLElement>;
|
7
|
+
onHoverOut: import("react").PointerEventHandler<HTMLElement>;
|
7
8
|
defaultChecked?: boolean;
|
8
9
|
defaultValue?: string | number | readonly string[];
|
9
10
|
suppressContentEditableWarning?: boolean;
|
10
11
|
suppressHydrationWarning?: boolean;
|
11
12
|
accessKey?: string;
|
13
|
+
autoFocus?: boolean;
|
12
14
|
className?: string;
|
13
|
-
contentEditable?: boolean | "true" | "false" | "inherit";
|
15
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
14
16
|
contextMenu?: string;
|
15
17
|
dir?: string;
|
16
18
|
draggable?: boolean | "true" | "false";
|
17
19
|
hidden?: boolean;
|
18
20
|
id?: string;
|
19
21
|
lang?: string;
|
22
|
+
nonce?: string;
|
20
23
|
placeholder?: string;
|
21
24
|
slot?: string;
|
22
25
|
spellCheck?: boolean | "true" | "false";
|
@@ -25,13 +28,16 @@ export declare const useHover: (props?: HoverProps, ref?: any) => {
|
|
25
28
|
title?: string;
|
26
29
|
translate?: "yes" | "no";
|
27
30
|
radioGroup?: string;
|
28
|
-
role?:
|
31
|
+
role?: import("react").AriaRole;
|
29
32
|
about?: string;
|
33
|
+
content?: string;
|
30
34
|
datatype?: string;
|
31
35
|
inlist?: any;
|
32
36
|
prefix?: string;
|
33
37
|
property?: string;
|
38
|
+
rel?: string;
|
34
39
|
resource?: string;
|
40
|
+
rev?: string;
|
35
41
|
typeof?: string;
|
36
42
|
vocab?: string;
|
37
43
|
autoCapitalize?: string;
|
@@ -46,220 +52,228 @@ export declare const useHover: (props?: HoverProps, ref?: any) => {
|
|
46
52
|
results?: number;
|
47
53
|
security?: string;
|
48
54
|
unselectable?: "on" | "off";
|
49
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"
|
55
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
50
56
|
is?: string;
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
57
|
+
"aria-activedescendant"?: string;
|
58
|
+
"aria-atomic"?: boolean | "true" | "false";
|
59
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both";
|
60
|
+
"aria-braillelabel"?: string;
|
61
|
+
"aria-brailleroledescription"?: string;
|
62
|
+
"aria-busy"?: boolean | "true" | "false";
|
63
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
64
|
+
"aria-colcount"?: number;
|
65
|
+
"aria-colindex"?: number;
|
66
|
+
"aria-colindextext"?: string;
|
67
|
+
"aria-colspan"?: number;
|
68
|
+
"aria-controls"?: string;
|
69
|
+
"aria-current"?: boolean | "location" | "true" | "false" | "page" | "step" | "date" | "time";
|
70
|
+
"aria-describedby"?: string;
|
71
|
+
"aria-description"?: string;
|
72
|
+
"aria-details"?: string;
|
73
|
+
"aria-disabled"?: boolean | "true" | "false";
|
74
|
+
"aria-dropeffect"?: "copy" | "link" | "none" | "execute" | "move" | "popup";
|
75
|
+
"aria-errormessage"?: string;
|
76
|
+
"aria-expanded"?: boolean | "true" | "false";
|
77
|
+
"aria-flowto"?: string;
|
78
|
+
"aria-grabbed"?: boolean | "true" | "false";
|
79
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree";
|
80
|
+
"aria-hidden"?: boolean | "true" | "false";
|
81
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
82
|
+
"aria-keyshortcuts"?: string;
|
83
|
+
"aria-label"?: string;
|
84
|
+
"aria-labelledby"?: string;
|
85
|
+
"aria-level"?: number;
|
86
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
87
|
+
"aria-modal"?: boolean | "true" | "false";
|
88
|
+
"aria-multiline"?: boolean | "true" | "false";
|
89
|
+
"aria-multiselectable"?: boolean | "true" | "false";
|
90
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
91
|
+
"aria-owns"?: string;
|
92
|
+
"aria-placeholder"?: string;
|
93
|
+
"aria-posinset"?: number;
|
94
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
95
|
+
"aria-readonly"?: boolean | "true" | "false";
|
96
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
97
|
+
"aria-required"?: boolean | "true" | "false";
|
98
|
+
"aria-roledescription"?: string;
|
99
|
+
"aria-rowcount"?: number;
|
100
|
+
"aria-rowindex"?: number;
|
101
|
+
"aria-rowindextext"?: string;
|
102
|
+
"aria-rowspan"?: number;
|
103
|
+
"aria-selected"?: boolean | "true" | "false";
|
104
|
+
"aria-setsize"?: number;
|
105
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
106
|
+
"aria-valuemax"?: number;
|
107
|
+
"aria-valuemin"?: number;
|
108
|
+
"aria-valuenow"?: number;
|
109
|
+
"aria-valuetext"?: string;
|
99
110
|
children?: import("react").ReactNode;
|
100
111
|
dangerouslySetInnerHTML?: {
|
101
|
-
__html: string;
|
112
|
+
__html: string | TrustedHTML;
|
102
113
|
};
|
103
|
-
onCopy?:
|
104
|
-
onCopyCapture?:
|
105
|
-
onCut?:
|
106
|
-
onCutCapture?:
|
107
|
-
onPaste?:
|
108
|
-
onPasteCapture?:
|
109
|
-
onCompositionEnd?:
|
110
|
-
onCompositionEndCapture?:
|
111
|
-
onCompositionStart?:
|
112
|
-
onCompositionStartCapture?:
|
113
|
-
onCompositionUpdate?:
|
114
|
-
onCompositionUpdateCapture?:
|
115
|
-
onFocus?:
|
116
|
-
onFocusCapture?:
|
117
|
-
onBlur?:
|
118
|
-
onBlurCapture?:
|
119
|
-
onChange?:
|
120
|
-
onChangeCapture?:
|
121
|
-
onBeforeInput?:
|
122
|
-
onBeforeInputCapture?:
|
123
|
-
onInput?:
|
124
|
-
onInputCapture?:
|
125
|
-
onReset?:
|
126
|
-
onResetCapture?:
|
127
|
-
onSubmit?:
|
128
|
-
onSubmitCapture?:
|
129
|
-
onInvalid?:
|
130
|
-
onInvalidCapture?:
|
131
|
-
onLoad?:
|
132
|
-
onLoadCapture?:
|
133
|
-
onError?:
|
134
|
-
onErrorCapture?:
|
135
|
-
onKeyDown?:
|
136
|
-
onKeyDownCapture?:
|
137
|
-
onKeyPress?:
|
138
|
-
onKeyPressCapture?:
|
139
|
-
onKeyUp?:
|
140
|
-
onKeyUpCapture?:
|
141
|
-
onAbort?:
|
142
|
-
onAbortCapture?:
|
143
|
-
onCanPlay?:
|
144
|
-
onCanPlayCapture?:
|
145
|
-
onCanPlayThrough?:
|
146
|
-
onCanPlayThroughCapture?:
|
147
|
-
onDurationChange?:
|
148
|
-
onDurationChangeCapture?:
|
149
|
-
onEmptied?:
|
150
|
-
onEmptiedCapture?:
|
151
|
-
onEncrypted?:
|
152
|
-
onEncryptedCapture?:
|
153
|
-
onEnded?:
|
154
|
-
onEndedCapture?:
|
155
|
-
onLoadedData?:
|
156
|
-
onLoadedDataCapture?:
|
157
|
-
onLoadedMetadata?:
|
158
|
-
onLoadedMetadataCapture?:
|
159
|
-
onLoadStart?:
|
160
|
-
onLoadStartCapture?:
|
161
|
-
onPause?:
|
162
|
-
onPauseCapture?:
|
163
|
-
onPlay?:
|
164
|
-
onPlayCapture?:
|
165
|
-
onPlaying?:
|
166
|
-
onPlayingCapture?:
|
167
|
-
onProgress?:
|
168
|
-
onProgressCapture?:
|
169
|
-
onRateChange?:
|
170
|
-
onRateChangeCapture?:
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
114
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLElement>;
|
115
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLElement>;
|
116
|
+
onCut?: import("react").ClipboardEventHandler<HTMLElement>;
|
117
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLElement>;
|
118
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLElement>;
|
119
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLElement>;
|
120
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLElement>;
|
121
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLElement>;
|
122
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLElement>;
|
123
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLElement>;
|
124
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLElement>;
|
125
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLElement>;
|
126
|
+
onFocus?: import("react").FocusEventHandler<HTMLElement>;
|
127
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLElement>;
|
128
|
+
onBlur?: import("react").FocusEventHandler<HTMLElement>;
|
129
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLElement>;
|
130
|
+
onChange?: import("react").FormEventHandler<HTMLElement>;
|
131
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLElement>;
|
132
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLElement>;
|
133
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLElement>;
|
134
|
+
onInput?: import("react").FormEventHandler<HTMLElement>;
|
135
|
+
onInputCapture?: import("react").FormEventHandler<HTMLElement>;
|
136
|
+
onReset?: import("react").FormEventHandler<HTMLElement>;
|
137
|
+
onResetCapture?: import("react").FormEventHandler<HTMLElement>;
|
138
|
+
onSubmit?: import("react").FormEventHandler<HTMLElement>;
|
139
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLElement>;
|
140
|
+
onInvalid?: import("react").FormEventHandler<HTMLElement>;
|
141
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLElement>;
|
142
|
+
onLoad?: import("react").ReactEventHandler<HTMLElement>;
|
143
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLElement>;
|
144
|
+
onError?: import("react").ReactEventHandler<HTMLElement>;
|
145
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLElement>;
|
146
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
|
147
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLElement>;
|
148
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
|
149
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLElement>;
|
150
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLElement>;
|
151
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLElement>;
|
152
|
+
onAbort?: import("react").ReactEventHandler<HTMLElement>;
|
153
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLElement>;
|
154
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLElement>;
|
155
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLElement>;
|
156
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLElement>;
|
157
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLElement>;
|
158
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLElement>;
|
159
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLElement>;
|
160
|
+
onEmptied?: import("react").ReactEventHandler<HTMLElement>;
|
161
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLElement>;
|
162
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLElement>;
|
163
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLElement>;
|
164
|
+
onEnded?: import("react").ReactEventHandler<HTMLElement>;
|
165
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLElement>;
|
166
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLElement>;
|
167
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLElement>;
|
168
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLElement>;
|
169
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLElement>;
|
170
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLElement>;
|
171
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLElement>;
|
172
|
+
onPause?: import("react").ReactEventHandler<HTMLElement>;
|
173
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLElement>;
|
174
|
+
onPlay?: import("react").ReactEventHandler<HTMLElement>;
|
175
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLElement>;
|
176
|
+
onPlaying?: import("react").ReactEventHandler<HTMLElement>;
|
177
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLElement>;
|
178
|
+
onProgress?: import("react").ReactEventHandler<HTMLElement>;
|
179
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLElement>;
|
180
|
+
onRateChange?: import("react").ReactEventHandler<HTMLElement>;
|
181
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLElement>;
|
182
|
+
onResize?: import("react").ReactEventHandler<HTMLElement>;
|
183
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLElement>;
|
184
|
+
onSeeked?: import("react").ReactEventHandler<HTMLElement>;
|
185
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLElement>;
|
186
|
+
onSeeking?: import("react").ReactEventHandler<HTMLElement>;
|
187
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLElement>;
|
188
|
+
onStalled?: import("react").ReactEventHandler<HTMLElement>;
|
189
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLElement>;
|
190
|
+
onSuspend?: import("react").ReactEventHandler<HTMLElement>;
|
191
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLElement>;
|
192
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLElement>;
|
193
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLElement>;
|
194
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLElement>;
|
195
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLElement>;
|
196
|
+
onWaiting?: import("react").ReactEventHandler<HTMLElement>;
|
197
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLElement>;
|
198
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLElement>;
|
199
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLElement>;
|
200
|
+
onClick?: import("react").MouseEventHandler<HTMLElement>;
|
201
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLElement>;
|
202
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLElement>;
|
203
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLElement>;
|
204
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLElement>;
|
205
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLElement>;
|
206
|
+
onDrag?: import("react").DragEventHandler<HTMLElement>;
|
207
|
+
onDragCapture?: import("react").DragEventHandler<HTMLElement>;
|
208
|
+
onDragEnd?: import("react").DragEventHandler<HTMLElement>;
|
209
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLElement>;
|
210
|
+
onDragEnter?: import("react").DragEventHandler<HTMLElement>;
|
211
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLElement>;
|
212
|
+
onDragExit?: import("react").DragEventHandler<HTMLElement>;
|
213
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLElement>;
|
214
|
+
onDragLeave?: import("react").DragEventHandler<HTMLElement>;
|
215
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLElement>;
|
216
|
+
onDragOver?: import("react").DragEventHandler<HTMLElement>;
|
217
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLElement>;
|
218
|
+
onDragStart?: import("react").DragEventHandler<HTMLElement>;
|
219
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLElement>;
|
220
|
+
onDrop?: import("react").DragEventHandler<HTMLElement>;
|
221
|
+
onDropCapture?: import("react").DragEventHandler<HTMLElement>;
|
222
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLElement>;
|
223
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLElement>;
|
224
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
|
225
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
|
226
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLElement>;
|
227
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLElement>;
|
228
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLElement>;
|
229
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLElement>;
|
230
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLElement>;
|
231
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLElement>;
|
232
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLElement>;
|
233
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLElement>;
|
234
|
+
onSelect?: import("react").ReactEventHandler<HTMLElement>;
|
235
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLElement>;
|
236
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLElement>;
|
237
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLElement>;
|
238
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLElement>;
|
239
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLElement>;
|
240
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLElement>;
|
241
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLElement>;
|
242
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLElement>;
|
243
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLElement>;
|
244
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLElement>;
|
245
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLElement>;
|
246
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLElement>;
|
247
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLElement>;
|
248
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLElement>;
|
249
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLElement>;
|
250
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLElement>;
|
251
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLElement>;
|
252
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLElement>;
|
253
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLElement>;
|
254
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLElement>;
|
255
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLElement>;
|
256
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLElement>;
|
257
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLElement>;
|
258
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLElement>;
|
259
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLElement>;
|
260
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLElement>;
|
261
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLElement>;
|
262
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLElement>;
|
263
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLElement>;
|
264
|
+
onScroll?: import("react").UIEventHandler<HTMLElement>;
|
265
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLElement>;
|
266
|
+
onWheel?: import("react").WheelEventHandler<HTMLElement>;
|
267
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLElement>;
|
268
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLElement>;
|
269
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLElement>;
|
270
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLElement>;
|
271
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLElement>;
|
272
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLElement>;
|
273
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement>;
|
274
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement>;
|
275
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement>;
|
263
276
|
};
|
264
277
|
isHovered: boolean;
|
265
278
|
};
|
279
|
+
//# sourceMappingURL=useHover.web.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useHover.web.d.ts","sourceRoot":"","sources":["../../src/useHover.web.ts"],"names":[],"mappings":";;AAAA,OAAO,EAA2B,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI/E,eAAO,MAAM,QAAQ,6BAAoC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB3D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
type IParams = {
|
2
2
|
enabled?: boolean;
|
3
3
|
callback: () => any;
|
4
4
|
};
|
@@ -13,3 +13,4 @@ export declare const keyboardDismissHandlerManager: {
|
|
13
13
|
export declare const useKeyboardDismissable: ({ enabled, callback }: IParams) => void;
|
14
14
|
export declare function useBackHandler({ enabled, callback }: IParams): void;
|
15
15
|
export {};
|
16
|
+
//# sourceMappingURL=useKeyboardDismisssable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useKeyboardDismisssable.d.ts","sourceRoot":"","sources":["../../src/useKeyboardDismisssable.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,CAAC;CACrB,CAAC;AAGF,eAAO,MAAM,6BAA6B;oBACxB,MAAM,GAAG;;qBAFc,GAAG;CAc3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,0BAA2B,OAAO,SAcpE,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO,QA2B5D"}
|
@@ -29,7 +29,7 @@ export interface PressHookProps extends PressProps {
|
|
29
29
|
/** A ref to the target element. */
|
30
30
|
ref?: RefObject<any>;
|
31
31
|
}
|
32
|
-
export
|
32
|
+
export type PressResult = {
|
33
33
|
/** Whether the target is currently pressed. */
|
34
34
|
isPressed: boolean;
|
35
35
|
/** Props to spread on the target element. */
|
@@ -37,3 +37,4 @@ export declare type PressResult = {
|
|
37
37
|
};
|
38
38
|
export declare function usePress({ isDisabled, onPress, onPressStart, onPressEnd, onPressUp, // No onPressUp on RN.
|
39
39
|
onPressChange, isPressed: isPressedProp, ...restProps }: PressHookProps): PressResult;
|
40
|
+
//# sourceMappingURL=usePress.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"usePress.d.ts","sourceRoot":"","sources":["../../src/usePress.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,WAAW,WAAW;IAC1B,yEAAyE;IACzE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,8DAA8D;IAC9D,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,2DAA2D;IAC3D,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC7C,+FAA+F;IAC/F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,mCAAmC;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,UAAU,EACV,SAAS,EAAE,sBAAsB;AACjC,aAAa,EACb,SAAS,EAAE,aAAa,EACxB,GAAG,SAAS,EACb,EAAE,cAAc,GAAG,WAAW,CA6B9B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-aria/interactions",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.12",
|
4
4
|
"description": "mono repo setup with bob",
|
5
5
|
"main": "lib/commonjs/index",
|
6
6
|
"module": "lib/module/index",
|
@@ -26,6 +26,7 @@
|
|
26
26
|
"typescript": "tsc --noEmit",
|
27
27
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
28
28
|
"prepare": "bob build",
|
29
|
+
"build": "bob build",
|
29
30
|
"release": "release-it",
|
30
31
|
"example": "yarn --cwd example",
|
31
32
|
"pods": "cd example && pod-install --quiet",
|
@@ -36,20 +37,23 @@
|
|
36
37
|
"ios",
|
37
38
|
"android"
|
38
39
|
],
|
39
|
-
"
|
40
|
+
"homepage": "https://github.com/gluestack/gluestack-ui/tree/main/packages/react-native-aria/interactions#readme",
|
41
|
+
"repository": {
|
42
|
+
"type": "git",
|
43
|
+
"url": "git+https://github.com/gluestack/gluestack-ui.git"
|
44
|
+
},
|
40
45
|
"author": "nishan <nishanbende@gmail.com> (https://github.com/intergalacticspacehighway)",
|
41
46
|
"license": "MIT",
|
42
47
|
"bugs": {
|
43
48
|
"url": "https://github.com/intergalacticspacehighway/react-native-bob-mono/issues"
|
44
49
|
},
|
45
|
-
"homepage": "https://github.com/intergalacticspacehighway/react-native-bob-mono#readme",
|
46
50
|
"publishConfig": {
|
47
51
|
"registry": "https://registry.npmjs.org/"
|
48
52
|
},
|
49
53
|
"dependencies": {
|
50
54
|
"@react-aria/interactions": "^3.3.2",
|
51
55
|
"@react-aria/utils": "^3.6.0",
|
52
|
-
"@react-native-aria/utils": "^0.2.
|
56
|
+
"@react-native-aria/utils": "^0.2.10"
|
53
57
|
},
|
54
58
|
"peerDependencies": {
|
55
59
|
"react": "*",
|