@chakra-ui/clickable
Advanced tools
Comparing version 0.0.0-dev-20220804193815 to 0.0.0-dev-20220804194739
{ | ||
"name": "@chakra-ui/clickable", | ||
"version": "0.0.0-dev-20220804193815", | ||
"version": "0.0.0-dev-20220804194739", | ||
"description": "React hook and component that implements native button interactions", | ||
@@ -34,4 +34,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/react-utils": "0.0.0-dev-20220804193815", | ||
"@chakra-ui/utils": "0.0.0-dev-20220804193815" | ||
"@chakra-ui/react-utils": "0.0.0-dev-20220804194739", | ||
"@chakra-ui/utils": "0.0.0-dev-20220804194739" | ||
}, | ||
@@ -42,3 +42,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@chakra-ui/system": "0.0.0-dev-20220804193815", | ||
"@chakra-ui/system": "0.0.0-dev-20220804194739", | ||
"react": "^18.0.0" | ||
@@ -52,4 +52,3 @@ }, | ||
"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
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
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
3166
3
0
2
+ Added@chakra-ui/react-utils@0.0.0-dev-20220804194739(transitive)
+ Added@chakra-ui/utils@0.0.0-dev-20220804194739(transitive)
- Removed@chakra-ui/react-utils@0.0.0-dev-20220804193815(transitive)
- Removed@chakra-ui/utils@0.0.0-dev-20220804193815(transitive)