🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@leafygreen-ui/icon

Package Overview
Dependencies
Maintainers
3
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/icon - npm Package Compare versions

Comparing version

to
2.0.0

CHANGELOG.md

1

dist/createIconComponent.d.ts

@@ -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";

7

package.json
{
"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