Socket
Socket
Sign inDemoInstall

@chakra-ui/clickable

Package Overview
Dependencies
Maintainers
4
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/clickable - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

dist/types/index.d.ts.map

16

CHANGELOG.md
# Change Log
## 1.1.0
### Minor Changes
- [`b724a9dd9`](https://github.com/chakra-ui/chakra-ui/commit/b724a9dd9429d02c0b2c7f7deac66d3553100bdc)
[#3674](https://github.com/chakra-ui/chakra-ui/pull/3674) Thanks
[@codebender828](https://github.com/codebender828)! - Extract all React based
utilities and types into `@chakra-ui/react-utils`
### Patch Changes
- Updated dependencies
[[`a58b724e9`](https://github.com/chakra-ui/chakra-ui/commit/a58b724e9c8656044f866b658f378662f2a44b46),
[`b724a9dd9`](https://github.com/chakra-ui/chakra-ui/commit/b724a9dd9429d02c0b2c7f7deac66d3553100bdc)]:
- @chakra-ui/utils@1.5.0
## 1.0.6

@@ -4,0 +20,0 @@

8

dist/cjs/use-clickable.js

@@ -8,2 +8,4 @@ "use strict";

var _reactUtils = require("@chakra-ui/react-utils");
var React = _interopRequireWildcard(require("react"));

@@ -153,3 +155,3 @@

var handleMouseDown = React.useCallback(function (event) {
if ((0, _utils.isRightClick)(event)) return;
if ((0, _reactUtils.isRightClick)(event)) return;

@@ -174,3 +176,3 @@ if (isDisabled) {

var handleMouseUp = React.useCallback(function (event) {
if ((0, _utils.isRightClick)(event)) return;
if ((0, _reactUtils.isRightClick)(event)) return;

@@ -199,3 +201,3 @@ if (!isButton) {

}, [isPressed, onMouseLeave]);
var ref = (0, _utils.mergeRefs)(htmlRef, refCallback);
var ref = (0, _reactUtils.mergeRefs)(htmlRef, refCallback);

@@ -202,0 +204,0 @@ if (isButton) {

@@ -5,3 +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 { dataAttr, isRightClick, mergeRefs } from "@chakra-ui/utils";
import { dataAttr } from "@chakra-ui/utils";
import { mergeRefs, isRightClick } from "@chakra-ui/react-utils";
import * as React from "react";

@@ -8,0 +9,0 @@ import { useEventListeners } from "./use-event-listeners";

export * from "./use-clickable";
//# sourceMappingURL=index.d.ts.map

@@ -552,1 +552,2 @@ import * as React from "react";

export declare type UseClickableReturn = ReturnType<typeof useClickable>;
//# sourceMappingURL=use-clickable.d.ts.map

@@ -9,1 +9,2 @@ interface EventListeners {

export {};
//# sourceMappingURL=use-event-listeners.d.ts.map
{
"name": "@chakra-ui/clickable",
"version": "1.0.6",
"version": "1.1.0",
"description": "React hook and component that implements native button interactions",

@@ -54,3 +54,3 @@ "keywords": [

"dependencies": {
"@chakra-ui/utils": "1.4.0"
"@chakra-ui/utils": "1.5.0"
},

@@ -57,0 +57,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc