@leafygreen-ui/icon
Advanced tools
Comparing version 1.2.5 to 2.0.0
@@ -6,2 +6,3 @@ import React from 'react'; | ||
export declare const Size: { | ||
readonly Small: "small"; | ||
readonly Default: "default"; | ||
@@ -8,0 +9,0 @@ readonly Large: "large"; |
{ | ||
"name": "@leafygreen-ui/icon", | ||
"version": "1.2.5", | ||
"version": "2.0.0", | ||
"description": "LeafyGreen UI Kit Icons", | ||
@@ -8,4 +8,3 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/webpack --config ../../webpack.config.js", | ||
"ts:emit": "tsc --project ./tsconfig.json" | ||
"build": "../../node_modules/.bin/webpack --config ../../webpack.config.js" | ||
}, | ||
@@ -22,2 +21,2 @@ "license": "Apache-2.0", | ||
"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0" | ||
} | ||
} |
@@ -16,3 +16,3 @@ # Icon | ||
const SomeComponent = () => <Icon glyph="plus" fill="#FF0000" />; | ||
const SomeComponent = () => <Icon glyph="Plus" fill="#FF0000" />; | ||
``` | ||
@@ -23,5 +23,5 @@ | ||
```HTML | ||
<svg width="16" height="16" role="img" viewBox="0 0 16 16" fill="#000000" size="16"> | ||
<svg width="16" height="16" role="img" viewBox="0 0 16 16" class="leafygreen-ui-yqbynm"> | ||
<title>Plus Icon</title> | ||
<path d="M9 7h4v2H9v4H7V9H3V7h4V3h2v4z" fill="#FF0000" fill-rule="evenodd"></path> | ||
<path d="M9 7h4v2H9v4H7V9H3V7h4V3h2v4z" fill="currentColor" fill-rule="evenodd"></path> | ||
</svg> | ||
@@ -48,3 +48,3 @@ ``` | ||
`default`, `large`, `xLarge` | ||
`small`, `default`, `large`, `xlarge` | ||
@@ -55,6 +55,4 @@ ### fill | ||
**Default:** `#000000` | ||
The fill color that is passed to the glyph. By default, the glyph will inherit its fill from the CSS color property of its nearest ancestor. | ||
The fill color that is passed to the glyph. | ||
## Advanced Usage (Registering custom icon sets) | ||
@@ -61,0 +59,0 @@ |
{ | ||
"extends": "../../package.tsconfig.json", | ||
"compilerOptions": { | ||
"declarationDir": "dist" | ||
"declarationDir": "dist", | ||
"rootDir": "src" | ||
}, | ||
"include": ["src/**/*", "../../typings"] | ||
"include": ["src/**/*", "../../typings/*", "typings/**/*"], | ||
"references": [ | ||
{ | ||
"path": "../emotion" | ||
}, | ||
{ | ||
"path": "../lib" | ||
}, | ||
{ | ||
"path": "../theme" | ||
} | ||
] | ||
} |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
557245
56
643
91