@@ -107,6 +107,10 @@ type t_NoId = {
107107 style ?: ReactDOM .Style .t ,
108108 ref ?: ReactDOM .domRef ,
109109 @as ("data-testid" ) dataTestId ?: string ,
110+ /**
111+ * @default 0
112+ */
113+ tabIndex ?: int ,
110114}
111115
112116type classNameOnly = {className : string }
@@ -117,27 +121,74 @@ type t_NoRef = {
117121 id ?: string ,
118122}
119123
124+ type t_NoTitle = {
125+ ... t_NoId ,
126+ id ?: string ,
127+ }
128+
120129type t = {
121130 ... t_NoId ,
122131 id ?: string ,
132+ title ?: string ,
123133}
124134
125135type clickableProps = {
126136 ... t ,
137+ // Focus Events
127138 onBlur ?: ReactEvent .Focus .t => unit ,
128- onContextMenu ?: ReactEvent .Mouse .t => unit ,
129- onDragLeave ?: ReactEvent .Mouse .t => unit ,
130139 onFocus ?: ReactEvent .Focus .t => unit ,
140+
141+ // Keyboard Events
131142 onKeyDown ?: ReactEvent .Keyboard .t => unit ,
132143 onKeyPress ?: ReactEvent .Keyboard .t => unit ,
133144 onKeyUp ?: ReactEvent .Keyboard .t => unit ,
145+
146+ // Mouse Events
147+ onContextMenu ?: ReactEvent .Mouse .t => unit ,
148+ onDrag ?: ReactEvent .Mouse .t => unit ,
149+ onDragEnd ?: ReactEvent .Mouse .t => unit ,
150+ onDragEnter ?: ReactEvent .Mouse .t => unit ,
151+ onDragExit ?: ReactEvent .Mouse .t => unit ,
152+ onDragLeave ?: ReactEvent .Mouse .t => unit ,
153+ onDragOver ?: ReactEvent .Mouse .t => unit ,
154+ onDragStart ?: ReactEvent .Mouse .t => unit ,
155+ onDrop ?: ReactEvent .Mouse .t => unit ,
134156 onMouseDown ?: ReactEvent .Mouse .t => unit ,
135157 onMouseEnter ?: ReactEvent .Mouse .t => unit ,
136158 onMouseLeave ?: ReactEvent .Mouse .t => unit ,
137159 onMouseUp ?: ReactEvent .Mouse .t => unit ,
160+
161+ // Touch Events
162+ onTouchCancel ?: ReactEvent .Touch .t => unit ,
163+ onTouchCancelCapture ?: ReactEvent .Touch .t => unit ,
138164 onTouchEnd ?: ReactEvent .Touch .t => unit ,
165+ onTouchEndCapture ?: ReactEvent .Touch .t => unit ,
139166 onTouchMove ?: ReactEvent .Touch .t => unit ,
167+ onTouchMoveCapture ?: ReactEvent .Touch .t => unit ,
140168 onTouchStart ?: ReactEvent .Touch .t => unit ,
169+ onTouchStartCapture ?: ReactEvent .Touch .t => unit ,
170+
171+ // Pointer Events
172+ onGotPointerCapture ?: ReactEvent .Pointer .t => unit ,
173+ onGotPointerCaptureCapture ?: ReactEvent .Pointer .t => unit ,
174+ onLostPointerCapture ?: ReactEvent .Pointer .t => unit ,
175+ onLostPointerCaptureCapture ?: ReactEvent .Pointer .t => unit ,
176+ onPointerCancel ?: ReactEvent .Pointer .t => unit ,
177+ onPointerCancelCapture ?: ReactEvent .Pointer .t => unit ,
178+ onPointerDown ?: ReactEvent .Pointer .t => unit ,
179+ onPointerDownCapture ?: ReactEvent .Pointer .t => unit ,
180+ onPointerEnter ?: ReactEvent .Pointer .t => unit ,
181+ onPointerEnterCapture ?: ReactEvent .Pointer .t => unit ,
182+ onPointerLeave ?: ReactEvent .Pointer .t => unit ,
183+ onPointerLeaveCapture ?: ReactEvent .Pointer .t => unit ,
184+ onPointerMove ?: ReactEvent .Pointer .t => unit ,
185+ onPointerMoveCapture ?: ReactEvent .Pointer .t => unit ,
186+ onPointerOut ?: ReactEvent .Pointer .t => unit ,
187+ onPointerOutCapture ?: ReactEvent .Pointer .t => unit ,
188+ onPointerOver ?: ReactEvent .Pointer .t => unit ,
189+ onPointerOverCapture ?: ReactEvent .Pointer .t => unit ,
190+ onPointerUp ?: ReactEvent .Pointer .t => unit ,
191+ onPointerUpCapture ?: ReactEvent .Pointer .t => unit ,
141192}
142193
143194type clickablePropsWithOnClick = {
0 commit comments