@digital-realty/ix-icon
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,1 +0,4 @@ | ||
export {}; | ||
import { IxIcon } from './IxIcon.js'; | ||
export declare class IxIconStyled extends IxIcon { | ||
static styles: import("lit").CSSResult; | ||
} |
@@ -0,3 +1,16 @@ | ||
import { css } from 'lit'; | ||
import { IxIcon } from './IxIcon.js'; | ||
window.customElements.define('ix-icon', IxIcon); | ||
export class IxIconStyled extends IxIcon { | ||
} | ||
IxIconStyled.styles = css ` | ||
md-icon { | ||
font-size: var(--ix-icon-font-size); | ||
height: var(--ix-icon-font-size); | ||
width: var(--ix-icon-font-size); | ||
} | ||
md-icon[filled] { | ||
font-variation-settings: 'FILL' 1; | ||
} | ||
`; | ||
window.customElements.define('ix-icon', IxIconStyled); | ||
//# sourceMappingURL=ix-icon.js.map |
@@ -6,3 +6,3 @@ import { LitElement } from 'lit'; | ||
connectedCallback(): void; | ||
render(): import("lit-html").TemplateResult<1>; | ||
render(): import("lit").TemplateResult<1>; | ||
} |
import { IxIcon as LitComp } from '../IxIcon.js'; | ||
export declare const IxIcon: import("@lit-labs/react").ReactWebComponent<LitComp, {}>; | ||
export declare const IxIcon: import("@lit/react").ReactWebComponent<LitComp, {}>; |
import React from 'react'; | ||
import { createComponent } from '@lit-labs/react'; | ||
import { createComponent } from '@lit/react'; | ||
import { IxIcon as LitComp } from '../IxIcon.js'; | ||
window.customElements.define('ix-icon', LitComp); | ||
customElements.define('ix-icon', LitComp); | ||
export const IxIcon = createComponent({ | ||
@@ -6,0 +6,0 @@ tagName: 'ix-icon', |
@@ -6,3 +6,3 @@ { | ||
"author": "Digital Realty", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"type": "module", | ||
@@ -30,4 +30,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@lit-labs/react": "^2.1.0", | ||
"@lit/react": "^1.0.2", | ||
"@material/web": "^1.0.0", | ||
"@ungap/structured-clone": "^1.2.0", | ||
"lit": "^2.0.2", | ||
@@ -38,2 +39,3 @@ "react": "^18.2.0" | ||
"@custom-elements-manifest/analyzer": "^0.4.17", | ||
"@eslint/js": "^8.49.0", | ||
"@open-wc/eslint-config": "^9.2.1", | ||
@@ -43,3 +45,2 @@ "@open-wc/testing": "^3.1.6", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"@ungap/structured-clone": "^1.2.0", | ||
"@web/dev-server": "^0.1.34", | ||
@@ -104,3 +105,3 @@ "@web/test-runner": "^0.14.0", | ||
], | ||
"gitHead": "ed23dcb034e9d2a56ba58c27d995a737442e66ea" | ||
"gitHead": "351ac4d7500d9b6a33acc3e4efef9519701d5253" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10688
68
5
+ Added@lit/react@^1.0.2
+ Added@ungap/structured-clone@1.3.0(transitive)
- Removed@lit-labs/react@^2.1.0
- Removed@lit-labs/react@2.1.3(transitive)