@chakra-ui/clickable
Advanced tools
Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "@chakra-ui/clickable", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "React hook and component that implements native button interactions", | ||
@@ -16,4 +16,4 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"types": "dist/index.d.ts", | ||
@@ -35,4 +35,4 @@ "files": [ | ||
"dependencies": { | ||
"@chakra-ui/react-utils": "2.0.2", | ||
"@chakra-ui/utils": "2.0.5" | ||
"@chakra-ui/react-utils": "2.0.3", | ||
"@chakra-ui/utils": "2.0.6" | ||
}, | ||
@@ -43,12 +43,13 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@chakra-ui/system": "2.2.3", | ||
"@chakra-ui/system": "2.2.4", | ||
"react": "^18.0.0" | ||
}, | ||
"scripts": { | ||
"build": "tsup src/index.ts --format=esm,cjs --dts", | ||
"build": "tsup src/index.ts --dts", | ||
"dev": "pnpm build -- --watch", | ||
"clean": "rimraf dist .turbo", | ||
"typecheck": "tsc --noEmit", | ||
"build:fast": "tsup src/index.ts --format=esm,cjs" | ||
} | ||
"build:fast": "tsup src/index.ts" | ||
}, | ||
"readme": "# @chakra-ui/clickable\n\nReact hook that implements all the interactions of a native `button` component\nwith support for making it focusable even if it is disabled.\n\nIt can be used with both native button elements or other elements (like `div`).\n\n## Installation\n\n```jsx\nimport { useClickable } from \"@chakra-ui/clickable\"\n```\n\n## Usage\n\n```jsx\n// create a clickable primitive\nconst Clickable = (props) => {\n const clickable = useClickable(props)\n return <chakra.button display=\"inline-flex\" {...clickable} />\n}\n\n// use the clickable primitive\nconst Example = () => (\n <Clickable\n as=\"div\"\n onClick={(event) => {\n alert(\"clicked\")\n }}\n _active={{ bg: \"blue\", color: \"white\" }}\n _disabled={{ opacity: 0.4, pointerEvents: \"none\" }}\n >\n Clickable\n </Clickable>\n)\n```\n" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50956
6
976
1
+ Added@chakra-ui/react-utils@2.0.3(transitive)
+ Added@chakra-ui/utils@2.0.6(transitive)
- Removed@chakra-ui/react-utils@2.0.2(transitive)
- Removed@chakra-ui/utils@2.0.5(transitive)
Updated@chakra-ui/react-utils@2.0.3
Updated@chakra-ui/utils@2.0.6