@chakra-ui/clickable
Advanced tools
Comparing version 1.0.0-next.6 to 1.0.0-next.7
@@ -6,2 +6,16 @@ # Change Log | ||
# [1.0.0-next.7](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/clickable@1.0.0-next.6...@chakra-ui/clickable@1.0.0-next.7) (2020-07-26) | ||
### Bug Fixes | ||
- prevent issue where right click triggers active css state | ||
([4ea9b88](https://github.com/chakra-ui/chakra-ui/commit/4ea9b8872599168f7a6ecb078b62f3473a25b4d8)) | ||
- types issue in use-tabs | ||
([c388927](https://github.com/chakra-ui/chakra-ui/commit/c38892760257b9bbf1b63c05f7f9ccf1684a90b0)) | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# [1.0.0-next.6](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/clickable@1.0.0-next.5...@chakra-ui/clickable@1.0.0-next.6) (2020-07-15) | ||
@@ -8,0 +22,0 @@ |
@@ -6,10 +6,6 @@ "use strict"; | ||
var React = _interopRequireWildcard(require("react")); | ||
var _react = require("react"); | ||
var _utils = require("@chakra-ui/utils"); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
@@ -53,5 +49,5 @@ | ||
var _React$useState = React.useState(true), | ||
isButton = _React$useState[0], | ||
setIsButton = _React$useState[1]; | ||
var _useState = (0, _react.useState)(true), | ||
isButton = _useState[0], | ||
setIsButton = _useState[1]; | ||
/** | ||
@@ -63,5 +59,5 @@ * For custom button implementation, we'll use this to track when | ||
var _React$useState2 = React.useState(false), | ||
isActive = _React$useState2[0], | ||
setIsActive = _React$useState2[1]; | ||
var _useState2 = (0, _react.useState)(false), | ||
isActive = _useState2[0], | ||
setIsActive = _useState2[1]; | ||
/** | ||
@@ -72,3 +68,3 @@ * The ref callback that fires as soon as the dom node is ready | ||
var refCallback = React.useCallback(function (node) { | ||
var refCallback = (0, _react.useCallback)(function (node) { | ||
if ((node == null ? void 0 : node.tagName) !== "BUTTON") { | ||
@@ -80,3 +76,3 @@ setIsButton(false); | ||
var trulyDisabled = isDisabled && !isFocusable; | ||
var handleClick = React.useCallback(function (event) { | ||
var handleClick = (0, _react.useCallback)(function (event) { | ||
if (isDisabled) { | ||
@@ -92,3 +88,3 @@ event.stopPropagation(); | ||
}, [isDisabled, onClick]); | ||
var handleKeyDown = React.useCallback(function (event) { | ||
var handleKeyDown = (0, _react.useCallback)(function (event) { | ||
onKeyDown == null ? void 0 : onKeyDown(event); | ||
@@ -116,3 +112,3 @@ | ||
}, [isDisabled, isButton, onKeyDown, clickOnEnter, clickOnSpace]); | ||
var handleKeyUp = React.useCallback(function (event) { | ||
var handleKeyUp = (0, _react.useCallback)(function (event) { | ||
onKeyUp == null ? void 0 : onKeyUp(event); | ||
@@ -129,3 +125,9 @@ if (isDisabled || event.defaultPrevented || event.metaKey) return; | ||
}, [clickOnSpace, isButton, isDisabled, onKeyUp]); | ||
var handleMouseDown = React.useCallback(function (event) { | ||
var handleMouseDown = (0, _react.useCallback)(function (event) { | ||
/** | ||
* Prevent right-click from triggering the | ||
* active state. | ||
*/ | ||
if ((0, _utils.isRightClick)(event)) return; | ||
if (isDisabled) { | ||
@@ -143,3 +145,3 @@ event.stopPropagation(); | ||
}, [isDisabled, isButton, onMouseDown]); | ||
var handleMouseUp = React.useCallback(function (event) { | ||
var handleMouseUp = (0, _react.useCallback)(function (event) { | ||
if (!isButton) { | ||
@@ -151,3 +153,3 @@ setIsActive(false); | ||
}, [onMouseUp, isButton]); | ||
var handleMouseOver = React.useCallback(function (event) { | ||
var handleMouseOver = (0, _react.useCallback)(function (event) { | ||
if (isDisabled) { | ||
@@ -154,0 +156,0 @@ event.preventDefault(); |
@@ -5,4 +5,4 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import * as React from "react"; | ||
import { mergeRefs, dataAttr } from "@chakra-ui/utils"; | ||
import { useCallback, useState } from "react"; | ||
import { mergeRefs, dataAttr, isRightClick } from "@chakra-ui/utils"; | ||
@@ -42,3 +42,3 @@ /** | ||
var [isButton, setIsButton] = React.useState(true); | ||
var [isButton, setIsButton] = useState(true); | ||
/** | ||
@@ -49,3 +49,3 @@ * For custom button implementation, we'll use this to track when | ||
var [isActive, setIsActive] = React.useState(false); | ||
var [isActive, setIsActive] = useState(false); | ||
/** | ||
@@ -55,3 +55,3 @@ * The ref callback that fires as soon as the dom node is ready | ||
var refCallback = React.useCallback(node => { | ||
var refCallback = useCallback(node => { | ||
if ((node == null ? void 0 : node.tagName) !== "BUTTON") { | ||
@@ -63,3 +63,3 @@ setIsButton(false); | ||
var trulyDisabled = isDisabled && !isFocusable; | ||
var handleClick = React.useCallback(event => { | ||
var handleClick = useCallback(event => { | ||
if (isDisabled) { | ||
@@ -75,3 +75,3 @@ event.stopPropagation(); | ||
}, [isDisabled, onClick]); | ||
var handleKeyDown = React.useCallback(event => { | ||
var handleKeyDown = useCallback(event => { | ||
onKeyDown == null ? void 0 : onKeyDown(event); | ||
@@ -99,3 +99,3 @@ | ||
}, [isDisabled, isButton, onKeyDown, clickOnEnter, clickOnSpace]); | ||
var handleKeyUp = React.useCallback(event => { | ||
var handleKeyUp = useCallback(event => { | ||
onKeyUp == null ? void 0 : onKeyUp(event); | ||
@@ -112,3 +112,9 @@ if (isDisabled || event.defaultPrevented || event.metaKey) return; | ||
}, [clickOnSpace, isButton, isDisabled, onKeyUp]); | ||
var handleMouseDown = React.useCallback(event => { | ||
var handleMouseDown = useCallback(event => { | ||
/** | ||
* Prevent right-click from triggering the | ||
* active state. | ||
*/ | ||
if (isRightClick(event)) return; | ||
if (isDisabled) { | ||
@@ -126,3 +132,3 @@ event.stopPropagation(); | ||
}, [isDisabled, isButton, onMouseDown]); | ||
var handleMouseUp = React.useCallback(event => { | ||
var handleMouseUp = useCallback(event => { | ||
if (!isButton) { | ||
@@ -134,3 +140,3 @@ setIsActive(false); | ||
}, [onMouseUp, isButton]); | ||
var handleMouseOver = React.useCallback(event => { | ||
var handleMouseOver = useCallback(event => { | ||
if (isDisabled) { | ||
@@ -137,0 +143,0 @@ event.preventDefault(); |
@@ -1,16 +0,3 @@ | ||
import * as React from "react"; | ||
interface DOMAttrs { | ||
onMouseDown?: React.MouseEventHandler; | ||
onMouseUp?: React.MouseEventHandler; | ||
onMouseOver?: React.MouseEventHandler; | ||
onMouseEnter?: React.MouseEventHandler; | ||
onMouseMove?: React.MouseEventHandler; | ||
onMouseLeave?: React.MouseEventHandler; | ||
onClick?: React.MouseEventHandler; | ||
ref?: React.Ref<any>; | ||
onKeyDown?: React.KeyboardEventHandler; | ||
onKeyUp?: React.KeyboardEventHandler; | ||
tabIndex?: number; | ||
} | ||
export interface UseClickableProps extends DOMAttrs { | ||
import React, { HTMLAttributes, KeyboardEvent, MouseEvent } from "react"; | ||
export interface UseClickableProps extends HTMLAttributes<Element> { | ||
/** | ||
@@ -34,2 +21,3 @@ * If `true`, the element will be disabled. | ||
clickOnSpace?: boolean; | ||
ref?: React.Ref<HTMLElement>; | ||
} | ||
@@ -49,28 +37,516 @@ /** | ||
disabled: boolean | undefined; | ||
onClick: (event: React.MouseEvent) => void; | ||
onMouseDown: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseUp: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onClick: (event: MouseEvent) => void; | ||
onMouseDown: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseUp: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onKeyUp: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyDown: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onMouseOver: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseMove?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseOver: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
defaultChecked?: boolean | undefined; | ||
defaultValue?: string | number | readonly string[] | undefined; | ||
suppressContentEditableWarning?: boolean | undefined; | ||
suppressHydrationWarning?: boolean | undefined; | ||
accessKey?: string | undefined; | ||
className?: string | undefined; | ||
contentEditable?: boolean | "true" | "false" | "inherit" | undefined; | ||
contextMenu?: string | undefined; | ||
dir?: string | undefined; | ||
draggable?: boolean | "true" | "false" | undefined; | ||
hidden?: boolean | undefined; | ||
id?: string | undefined; | ||
lang?: string | undefined; | ||
placeholder?: string | undefined; | ||
slot?: string | undefined; | ||
spellCheck?: boolean | "true" | "false" | undefined; | ||
style?: React.CSSProperties | undefined; | ||
title?: string | undefined; | ||
translate?: "yes" | "no" | undefined; | ||
radioGroup?: string | undefined; | ||
role?: string | undefined; | ||
about?: string | undefined; | ||
datatype?: string | undefined; | ||
inlist?: any; | ||
prefix?: string | undefined; | ||
property?: string | undefined; | ||
resource?: string | undefined; | ||
typeof?: string | undefined; | ||
vocab?: string | undefined; | ||
autoCapitalize?: string | undefined; | ||
autoCorrect?: string | undefined; | ||
autoSave?: string | undefined; | ||
color?: string | undefined; | ||
itemProp?: string | undefined; | ||
itemScope?: boolean | undefined; | ||
itemType?: string | undefined; | ||
itemID?: string | undefined; | ||
itemRef?: string | undefined; | ||
results?: number | undefined; | ||
security?: string | undefined; | ||
unselectable?: "on" | "off" | undefined; | ||
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined; | ||
is?: string | undefined; | ||
'aria-activedescendant'?: string | undefined; | ||
'aria-atomic'?: boolean | "true" | "false" | undefined; | ||
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined; | ||
'aria-busy'?: boolean | "true" | "false" | undefined; | ||
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined; | ||
'aria-colcount'?: number | undefined; | ||
'aria-colindex'?: number | undefined; | ||
'aria-colspan'?: number | undefined; | ||
'aria-controls'?: string | undefined; | ||
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined; | ||
'aria-describedby'?: string | undefined; | ||
'aria-details'?: string | undefined; | ||
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined; | ||
'aria-errormessage'?: string | undefined; | ||
'aria-expanded'?: boolean | "true" | "false" | undefined; | ||
'aria-flowto'?: string | undefined; | ||
'aria-grabbed'?: boolean | "true" | "false" | undefined; | ||
'aria-haspopup'?: boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined; | ||
'aria-hidden'?: boolean | "true" | "false" | undefined; | ||
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined; | ||
'aria-keyshortcuts'?: string | undefined; | ||
'aria-label'?: string | undefined; | ||
'aria-labelledby'?: string | undefined; | ||
'aria-level'?: number | undefined; | ||
'aria-live'?: "off" | "assertive" | "polite" | undefined; | ||
'aria-modal'?: boolean | "true" | "false" | undefined; | ||
'aria-multiline'?: boolean | "true" | "false" | undefined; | ||
'aria-multiselectable'?: boolean | "true" | "false" | undefined; | ||
'aria-orientation'?: "horizontal" | "vertical" | undefined; | ||
'aria-owns'?: string | undefined; | ||
'aria-placeholder'?: string | undefined; | ||
'aria-posinset'?: number | undefined; | ||
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined; | ||
'aria-readonly'?: boolean | "true" | "false" | undefined; | ||
'aria-relevant'?: "text" | "additions" | "additions text" | "all" | "removals" | undefined; | ||
'aria-required'?: boolean | "true" | "false" | undefined; | ||
'aria-roledescription'?: string | undefined; | ||
'aria-rowcount'?: number | undefined; | ||
'aria-rowindex'?: number | undefined; | ||
'aria-rowspan'?: number | undefined; | ||
'aria-selected'?: boolean | "true" | "false" | undefined; | ||
'aria-setsize'?: number | undefined; | ||
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; | ||
'aria-valuemax'?: number | undefined; | ||
'aria-valuemin'?: number | undefined; | ||
'aria-valuenow'?: number | undefined; | ||
'aria-valuetext'?: string | undefined; | ||
children?: React.ReactNode; | ||
dangerouslySetInnerHTML?: { | ||
__html: string; | ||
} | undefined; | ||
onCopy?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCopyCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCut?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCutCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onPaste?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onPasteCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCompositionEnd?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionEndCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionStart?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionStartCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionUpdate?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionUpdateCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onFocus?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onFocusCapture?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onBlur?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onBlurCapture?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onChange?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onChangeCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onBeforeInput?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onBeforeInputCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInput?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInputCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onReset?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onResetCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onSubmit?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onSubmitCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInvalid?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInvalidCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onLoad?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onError?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onErrorCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onKeyDownCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyPress?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyPressCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyUpCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onAbort?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onAbortCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayThrough?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayThroughCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onDurationChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onDurationChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEmptied?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEmptiedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEncrypted?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEncryptedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEnded?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEndedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedData?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedDataCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedMetadata?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedMetadataCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadStart?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadStartCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPause?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPauseCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlayCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlaying?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlayingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onProgress?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onProgressCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onRateChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onRateChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeeked?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeekedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeeking?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeekingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onStalled?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onStalledCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSuspend?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSuspendCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTimeUpdate?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTimeUpdateCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onVolumeChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onVolumeChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onWaiting?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onWaitingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onAuxClick?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onAuxClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onContextMenu?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onContextMenuCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDoubleClick?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDoubleClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDrag?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnd?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEndCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnter?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnterCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragExit?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragExitCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragLeave?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragLeaveCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragOver?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragOverCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragStart?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragStartCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDrop?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDropCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onMouseDownCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseEnter?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseLeave?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseMove?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseMoveCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOut?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOutCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOverCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseUpCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onSelect?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSelectCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTouchCancel?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchCancelCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchEnd?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchEndCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchMove?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchMoveCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchStart?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchStartCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onPointerDown?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerDownCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerMove?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerMoveCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerUp?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerUpCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerCancel?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerCancelCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerEnter?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerEnterCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerLeave?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerLeaveCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOver?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOverCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOut?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOutCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onGotPointerCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onGotPointerCaptureCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onLostPointerCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onLostPointerCaptureCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onScroll?: ((event: React.UIEvent<Element, UIEvent>) => void) | undefined; | ||
onScrollCapture?: ((event: React.UIEvent<Element, UIEvent>) => void) | undefined; | ||
onWheel?: ((event: React.WheelEvent<Element>) => void) | undefined; | ||
onWheelCapture?: ((event: React.WheelEvent<Element>) => void) | undefined; | ||
onAnimationStart?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationStartCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationEnd?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationEndCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationIteration?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationIterationCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onTransitionEnd?: ((event: React.TransitionEvent<Element>) => void) | undefined; | ||
onTransitionEndCapture?: ((event: React.TransitionEvent<Element>) => void) | undefined; | ||
} | { | ||
ref: (value: any) => void; | ||
role: string; | ||
"data-active": import("@chakra-ui/utils").Booleanish; | ||
"data-active": boolean | "true" | "false"; | ||
"aria-disabled": boolean; | ||
tabIndex: number | undefined; | ||
onClick: (event: React.MouseEvent) => void; | ||
onMouseDown: (event: React.MouseEvent) => void; | ||
onMouseUp: (event: React.MouseEvent) => void; | ||
onClick: (event: MouseEvent) => void; | ||
onMouseDown: (event: MouseEvent) => void; | ||
onMouseUp: (event: MouseEvent) => void; | ||
onKeyUp: (event: React.KeyboardEvent) => void; | ||
onKeyDown: (event: React.KeyboardEvent) => void; | ||
onMouseOver: (event: React.MouseEvent) => void; | ||
onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseMove?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined; | ||
onKeyDown: (event: KeyboardEvent) => void; | ||
onMouseOver: (event: MouseEvent) => void; | ||
defaultChecked?: boolean | undefined; | ||
defaultValue?: string | number | readonly string[] | undefined; | ||
suppressContentEditableWarning?: boolean | undefined; | ||
suppressHydrationWarning?: boolean | undefined; | ||
accessKey?: string | undefined; | ||
className?: string | undefined; | ||
contentEditable?: boolean | "true" | "false" | "inherit" | undefined; | ||
contextMenu?: string | undefined; | ||
dir?: string | undefined; | ||
draggable?: boolean | "true" | "false" | undefined; | ||
hidden?: boolean | undefined; | ||
id?: string | undefined; | ||
lang?: string | undefined; | ||
placeholder?: string | undefined; | ||
slot?: string | undefined; | ||
spellCheck?: boolean | "true" | "false" | undefined; | ||
style?: React.CSSProperties | undefined; | ||
title?: string | undefined; | ||
translate?: "yes" | "no" | undefined; | ||
radioGroup?: string | undefined; | ||
about?: string | undefined; | ||
datatype?: string | undefined; | ||
inlist?: any; | ||
prefix?: string | undefined; | ||
property?: string | undefined; | ||
resource?: string | undefined; | ||
typeof?: string | undefined; | ||
vocab?: string | undefined; | ||
autoCapitalize?: string | undefined; | ||
autoCorrect?: string | undefined; | ||
autoSave?: string | undefined; | ||
color?: string | undefined; | ||
itemProp?: string | undefined; | ||
itemScope?: boolean | undefined; | ||
itemType?: string | undefined; | ||
itemID?: string | undefined; | ||
itemRef?: string | undefined; | ||
results?: number | undefined; | ||
security?: string | undefined; | ||
unselectable?: "on" | "off" | undefined; | ||
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined; | ||
is?: string | undefined; | ||
'aria-activedescendant'?: string | undefined; | ||
'aria-atomic'?: boolean | "true" | "false" | undefined; | ||
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined; | ||
'aria-busy'?: boolean | "true" | "false" | undefined; | ||
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined; | ||
'aria-colcount'?: number | undefined; | ||
'aria-colindex'?: number | undefined; | ||
'aria-colspan'?: number | undefined; | ||
'aria-controls'?: string | undefined; | ||
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined; | ||
'aria-describedby'?: string | undefined; | ||
'aria-details'?: string | undefined; | ||
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined; | ||
'aria-errormessage'?: string | undefined; | ||
'aria-expanded'?: boolean | "true" | "false" | undefined; | ||
'aria-flowto'?: string | undefined; | ||
'aria-grabbed'?: boolean | "true" | "false" | undefined; | ||
'aria-haspopup'?: boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined; | ||
'aria-hidden'?: boolean | "true" | "false" | undefined; | ||
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined; | ||
'aria-keyshortcuts'?: string | undefined; | ||
'aria-label'?: string | undefined; | ||
'aria-labelledby'?: string | undefined; | ||
'aria-level'?: number | undefined; | ||
'aria-live'?: "off" | "assertive" | "polite" | undefined; | ||
'aria-modal'?: boolean | "true" | "false" | undefined; | ||
'aria-multiline'?: boolean | "true" | "false" | undefined; | ||
'aria-multiselectable'?: boolean | "true" | "false" | undefined; | ||
'aria-orientation'?: "horizontal" | "vertical" | undefined; | ||
'aria-owns'?: string | undefined; | ||
'aria-placeholder'?: string | undefined; | ||
'aria-posinset'?: number | undefined; | ||
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined; | ||
'aria-readonly'?: boolean | "true" | "false" | undefined; | ||
'aria-relevant'?: "text" | "additions" | "additions text" | "all" | "removals" | undefined; | ||
'aria-required'?: boolean | "true" | "false" | undefined; | ||
'aria-roledescription'?: string | undefined; | ||
'aria-rowcount'?: number | undefined; | ||
'aria-rowindex'?: number | undefined; | ||
'aria-rowspan'?: number | undefined; | ||
'aria-selected'?: boolean | "true" | "false" | undefined; | ||
'aria-setsize'?: number | undefined; | ||
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined; | ||
'aria-valuemax'?: number | undefined; | ||
'aria-valuemin'?: number | undefined; | ||
'aria-valuenow'?: number | undefined; | ||
'aria-valuetext'?: string | undefined; | ||
children?: React.ReactNode; | ||
dangerouslySetInnerHTML?: { | ||
__html: string; | ||
} | undefined; | ||
onCopy?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCopyCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCut?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCutCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onPaste?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onPasteCapture?: ((event: React.ClipboardEvent<Element>) => void) | undefined; | ||
onCompositionEnd?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionEndCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionStart?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionStartCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionUpdate?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onCompositionUpdateCapture?: ((event: React.CompositionEvent<Element>) => void) | undefined; | ||
onFocus?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onFocusCapture?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onBlur?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onBlurCapture?: ((event: React.FocusEvent<Element>) => void) | undefined; | ||
onChange?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onChangeCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onBeforeInput?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onBeforeInputCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInput?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInputCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onReset?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onResetCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onSubmit?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onSubmitCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInvalid?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onInvalidCapture?: ((event: React.FormEvent<Element>) => void) | undefined; | ||
onLoad?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onError?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onErrorCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onKeyDownCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyPress?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyPressCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onKeyUpCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined; | ||
onAbort?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onAbortCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayThrough?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onCanPlayThroughCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onDurationChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onDurationChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEmptied?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEmptiedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEncrypted?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEncryptedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEnded?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onEndedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedData?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedDataCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedMetadata?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadedMetadataCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadStart?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onLoadStartCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPause?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPauseCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlayCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlaying?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onPlayingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onProgress?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onProgressCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onRateChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onRateChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeeked?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeekedCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeeking?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSeekingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onStalled?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onStalledCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSuspend?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSuspendCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTimeUpdate?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTimeUpdateCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onVolumeChange?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onVolumeChangeCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onWaiting?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onWaitingCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onAuxClick?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onAuxClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onContextMenu?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onContextMenuCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDoubleClick?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDoubleClickCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onDrag?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnd?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEndCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnter?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragEnterCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragExit?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragExitCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragLeave?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragLeaveCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragOver?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragOverCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragStart?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDragStartCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDrop?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onDropCapture?: ((event: React.DragEvent<Element>) => void) | undefined; | ||
onMouseDownCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseEnter?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseLeave?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseMove?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseMoveCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOut?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOutCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseOverCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onMouseUpCapture?: ((event: React.MouseEvent<Element, globalThis.MouseEvent>) => void) | undefined; | ||
onSelect?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onSelectCapture?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined; | ||
onTouchCancel?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchCancelCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchEnd?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchEndCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchMove?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchMoveCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchStart?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onTouchStartCapture?: ((event: React.TouchEvent<Element>) => void) | undefined; | ||
onPointerDown?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerDownCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerMove?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerMoveCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerUp?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerUpCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerCancel?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerCancelCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerEnter?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerEnterCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerLeave?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerLeaveCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOver?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOverCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOut?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onPointerOutCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onGotPointerCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onGotPointerCaptureCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onLostPointerCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onLostPointerCaptureCapture?: ((event: React.PointerEvent<Element>) => void) | undefined; | ||
onScroll?: ((event: React.UIEvent<Element, UIEvent>) => void) | undefined; | ||
onScrollCapture?: ((event: React.UIEvent<Element, UIEvent>) => void) | undefined; | ||
onWheel?: ((event: React.WheelEvent<Element>) => void) | undefined; | ||
onWheelCapture?: ((event: React.WheelEvent<Element>) => void) | undefined; | ||
onAnimationStart?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationStartCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationEnd?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationEndCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationIteration?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onAnimationIterationCapture?: ((event: React.AnimationEvent<Element>) => void) | undefined; | ||
onTransitionEnd?: ((event: React.TransitionEvent<Element>) => void) | undefined; | ||
onTransitionEndCapture?: ((event: React.TransitionEvent<Element>) => void) | undefined; | ||
}; | ||
export declare type UseClickableReturn = ReturnType<typeof useClickable>; | ||
export {}; |
{ | ||
"name": "@chakra-ui/clickable", | ||
"version": "1.0.0-next.6", | ||
"version": "1.0.0-next.7", | ||
"description": "React hook and component that implements native button interactions", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "^1.0.0-next.6" | ||
"@chakra-ui/utils": "^1.0.0-next.7" | ||
}, | ||
@@ -54,3 +54,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "72eeca4ba3fc6e7d8845b0d283a03cb6ec384a50" | ||
"gitHead": "3dcabd8c7e21b32ae1b61485588f70370c4e626f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76084
867