@equinor/fusion-wc-icon
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,4 +6,15 @@ # Change Log | ||
## [1.0.2](https://github.com/equinor/fusion-web-components/compare/@equinor/fusion-wc-icon@1.0.1...@equinor/fusion-wc-icon@1.0.2) (2021-03-30) | ||
### Bug Fixes | ||
* update package deps ([24f71cd](https://github.com/equinor/fusion-web-components/commit/24f71cdb8f2ce709dcd7be534e3ddaea6496311f)) | ||
## 1.0.1 (2021-03-26) | ||
**Note:** Version bump only for package @equinor/fusion-wc-icon |
@@ -0,1 +1,2 @@ | ||
import { SVGTemplateResult } from 'lit-element'; | ||
import * as edsIcons from '@equinor/eds-icons'; | ||
@@ -8,4 +9,4 @@ import { IconData } from '@equinor/eds-icons'; | ||
} | ||
export declare const createSvg: ({ height, width, svgPathData }: IconData) => import("lit-element").SVGTemplateResult; | ||
export declare const createIcon: (name: IconName, type?: IconType) => import("lit-element").SVGTemplateResult; | ||
export declare const createSvg: ({ height, width, svgPathData }: IconData) => SVGTemplateResult; | ||
export declare const createIcon: (name: IconName, type?: IconType) => SVGTemplateResult; | ||
export default createIcon; |
{ | ||
"name": "@equinor/fusion-wc-icon", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -15,12 +15,10 @@ "main": "lib/index.js", | ||
"@equinor/eds-icons": "^0.6.2", | ||
"@equinor/fusion-wc-core": "^1.0.1" | ||
"@equinor/fusion-wc-core": "^1.0.1", | ||
"lit-element": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@equinor/fusion-wc-builder": "^1.0.1", | ||
"lit-element": "^2.4.0", | ||
"lit-html": "^1.3.0" | ||
"@equinor/fusion-wc-builder": "^1.0.1" | ||
}, | ||
"peerDependencies": { | ||
"lit-element": "^2.x", | ||
"lit-html": "^1.x", | ||
"typescript": "^4.x" | ||
@@ -36,3 +34,3 @@ }, | ||
}, | ||
"gitHead": "11f038604de70bde31a11d8a4032e163d50be2f9" | ||
"gitHead": "244ab4075452091476bcb40a8ac90165f3bcad46" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { svg } from 'lit-element'; | ||
import { svg, SVGTemplateResult } from 'lit-element'; | ||
@@ -14,3 +14,3 @@ import * as edsIcons from '@equinor/eds-icons'; | ||
export const createSvg = ({ height, width, svgPathData }: IconData) => svg` | ||
export const createSvg = ({ height, width, svgPathData }: IconData): SVGTemplateResult => svg` | ||
<svg height="${height}" width="${width}" viewBox="0 0 ${width} ${height}"> | ||
@@ -21,3 +21,3 @@ <path fill-rule="evenodd" clip-rule="evenodd" d="${svgPathData}"></path> | ||
export const createIcon = (name: IconName, type: IconType = IconType.EDS) => { | ||
export const createIcon = (name: IconName, type: IconType = IconType.EDS): SVGTemplateResult => { | ||
switch (type) { | ||
@@ -24,0 +24,0 @@ case IconType.EDS: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
565562
1
1068
+ Addedlit-element@^2.4.0