@brighthr/component-tooltip
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,5 +6,5 @@ // src/index.tsx | ||
// src/onClickOutside.js | ||
// src/onClickOutside.tsx | ||
import { useEffect } from "react"; | ||
var onClickOutside = (ref, handler) => { | ||
var useOnClickOutside = (ref, handler) => { | ||
useEffect(() => { | ||
@@ -22,3 +22,3 @@ const handleClick = (e) => { | ||
}; | ||
var onClickOutside_default = onClickOutside; | ||
var onClickOutside_default = useOnClickOutside; | ||
@@ -25,0 +25,0 @@ // src/index.tsx |
{ | ||
"name": "@brighthr/component-tooltip", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
"eslintConfig": { | ||
"rules": { | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/*.test.tsx" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^12.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0" | ||
}, | ||
"dependencies": { | ||
"@brighthr/component-icon": "^2.0.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"classnames": "^2.3.1" | ||
}, | ||
"gitHead": "1b82cedd964ef0ee483494eba535cdd0e48716ea" | ||
"name": "@brighthr/component-tooltip", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.9.0" | ||
}, | ||
"dependencies": { | ||
"@brighthr/component-icon": "^2.0.1", | ||
"classnames": "^2.3.1" | ||
}, | ||
"gitHead": "bcc368c7b077e1087feecd6299cc53416f05ae25" | ||
} |
@@ -6,2 +6,3 @@ # ComponentName | ||
To install, type the following into the command line at the root of your project: | ||
```javascript | ||
@@ -14,4 +15,5 @@ npm i @brighthr/component-tooltip | ||
Import into your file: | ||
```javascript | ||
import Tooltip from '@brighthr/component-tooltip'; | ||
``` |
Sorry, the diff of this file is not supported yet
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
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
3
0
18
0
13201
- Removed@testing-library/user-event@^14.4.3
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@testing-library/dom@10.4.0(transitive)
- Removed@testing-library/user-event@14.5.2(transitive)
- Removed@types/aria-query@5.0.4(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.05.2.0(transitive)
- Removedaria-query@5.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removeddequal@2.0.3(transitive)
- Removeddom-accessibility-api@0.5.16(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedlz-string@1.5.0(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpretty-format@27.5.1(transitive)
- Removedreact-is@17.0.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedsupports-color@7.2.0(transitive)