@hig/icon
Advanced tools
Comparing version 0.1.0-alpha to 0.1.0-alpha.52870254
{ | ||
"name": "@hig/icon", | ||
"version": "0.1.0-alpha", | ||
"version": "0.1.0-alpha.52870254", | ||
"description": "HIG Icon component", | ||
@@ -8,14 +8,22 @@ "author": "Autodesk Inc.", | ||
"homepage": "https://hig.autodesk.com", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "build/index.js", | ||
"module": "build/index.es.js", | ||
"dependendies": { | ||
"@hig/icons": "^0.1.0-alpha" | ||
"style": "build/index.css", | ||
"files": [ | ||
"build/*" | ||
], | ||
"dependencies": { | ||
"@hig/icons": "0.1.0-alpha.52870254" | ||
}, | ||
"devDependencies": { | ||
"@hig/scripts": "^0.1.0", | ||
"@hig/styles": "^0.1.0-alpha" | ||
"@hig/babel-preset": "0.2.0-alpha.52870254", | ||
"@hig/scripts": "0.2.0-alpha.52870254", | ||
"@hig/styles": "0.1.0-alpha.52870254" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.4.1", | ||
"prop-types": "^15.6.1" | ||
"prop-types": "^15.6.1", | ||
"react": "^15.4.1" | ||
}, | ||
@@ -22,0 +30,0 @@ "scripts": { |
@@ -7,2 +7,15 @@ # Icon | ||
## Getting started | ||
``` | ||
yarn add @hig/icon | ||
``` | ||
## Import the component and CSS | ||
``` | ||
import Icon from '@hig/icon'; | ||
import '@hig/icon/build/index.css'; | ||
``` | ||
## Typical usage | ||
@@ -13,8 +26,3 @@ | ||
```jsx | ||
import Icon from '@hig/icon`; | ||
import '@hig/icon/build/index.css'; | ||
function MyComponent() { | ||
return <Icon name="assets" /> | ||
} | ||
<Icon name="assets" /> | ||
``` | ||
@@ -25,8 +33,3 @@ | ||
```jsx | ||
import Icon from '@hig/icon`; | ||
import '@hig/icon/build/index.css'; | ||
function MyComponent() { | ||
return <Icon name="assets" size="16" /> | ||
} | ||
<Icon name="assets" size="16" /> | ||
``` | ||
@@ -37,4 +40,2 @@ | ||
```jsx | ||
import Icon from '@hig/icon`; | ||
import '@hig/icon/build/index.css'; | ||
import myIcon from 'my-icon.svg'; | ||
@@ -45,2 +46,2 @@ | ||
} | ||
``` | ||
``` |
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 too big to display
Sorry, the diff of this file is too big to display
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
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
43
1
13997
3
3
6
431
1
+ Added@hig/icons@0.1.0-alpha.52870254(transitive)