@teambit/evangelist.elements.icon
Advanced tools
Comparing version
/// <reference types="react" /> | ||
import { BaseIconProps } from '@teambit/base-ui.elements.icon'; | ||
export declare type IconProps = BaseIconProps; | ||
/** | ||
* Placeholder for an icon, from Bit.dev's icon font. | ||
* | ||
* (Make sure [IconFont](https://bit.dev/bit/evangelist/theme/icon-font) is present in the page, for the icons to load). | ||
* @name Icon | ||
* @example | ||
* // Embed icon at the document root: | ||
* <EvaIconFont query="sdfj4k2d"/> | ||
* | ||
* // Then use icon anywhere in the document: | ||
* <Icon of="spinner"/> | ||
*/ | ||
export declare function Icon({ className, of: iconName, ...rest }: IconProps): JSX.Element; |
@@ -21,14 +21,2 @@ "use strict"; | ||
const iconSetPrefix = 'bitcon'; | ||
/** | ||
* Placeholder for an icon, from Bit.dev's icon font. | ||
* | ||
* (Make sure [IconFont](https://bit.dev/bit/evangelist/theme/icon-font) is present in the page, for the icons to load). | ||
* @name Icon | ||
* @example | ||
* // Embed icon at the document root: | ||
* <EvaIconFont query="sdfj4k2d"/> | ||
* | ||
* // Then use icon anywhere in the document: | ||
* <Icon of="spinner"/> | ||
*/ | ||
function Icon(_a) { | ||
@@ -35,0 +23,0 @@ var { className, of: iconName } = _a, rest = __rest(_a, ["className", "of"]); |
{ | ||
"name": "@teambit/evangelist.elements.icon", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"homepage": "https://bit.dev/teambit/evangelist/elements/icon", | ||
"main": "dist/index.js", | ||
@@ -8,3 +9,3 @@ "componentId": { | ||
"name": "elements/icon", | ||
"version": "0.5.4" | ||
"version": "0.5.5" | ||
}, | ||
@@ -16,2 +17,3 @@ "dependencies": { | ||
"@types/react": "16.9.43", | ||
"@testing-library/react": "^10.4.7", | ||
"@babel/runtime": "^7.11.2", | ||
@@ -21,7 +23,8 @@ "@types/react-router-dom": "^5.1.5", | ||
"core-js": "^3.6.5", | ||
"@types/node": "^12.12.27" | ||
"@types/node": "^12.12.27", | ||
"@teambit/evangelist.theme.icon-font": "0.5.5" | ||
}, | ||
"peerDependencies": { | ||
"react-dom": "^16.13.1", | ||
"react": "^16.13.1" | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1" | ||
}, | ||
@@ -28,0 +31,0 @@ "license": "SEE LICENSE IN LICENSE", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
14983
134.84%21
90.91%317
131.39%8
33.33%2
Infinity%