|
|
|
@ -1,4 +1,11 @@
|
|
|
|
|
import { DeesElement, html, property, customElement } from '@designestate/dees-element';
|
|
|
|
|
import {
|
|
|
|
|
DeesElement,
|
|
|
|
|
html,
|
|
|
|
|
property,
|
|
|
|
|
customElement,
|
|
|
|
|
cssManager,
|
|
|
|
|
css,
|
|
|
|
|
} from '@designestate/dees-element';
|
|
|
|
|
|
|
|
|
|
import * as domtools from '@designestate/dees-domtools';
|
|
|
|
|
|
|
|
|
@ -21,11 +28,15 @@ import {
|
|
|
|
|
import {
|
|
|
|
|
faBell as faBellSolid,
|
|
|
|
|
faBug as faBugSolid,
|
|
|
|
|
faCaretLeft as faCaretLeftSolid,
|
|
|
|
|
faCircleInfo as faCircleInfoSolid,
|
|
|
|
|
faDesktop as faDesktopSolid,
|
|
|
|
|
faGrip as faGripSolid,
|
|
|
|
|
faMessage as faMessageSolid,
|
|
|
|
|
faRss as faRssSolid,
|
|
|
|
|
faUsers as faUsersSolid,
|
|
|
|
|
faShare as faShareSolid,
|
|
|
|
|
faSun as faSunSolid,
|
|
|
|
|
faGrip as faGripSolid,
|
|
|
|
|
} from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
|
|
export const faIcons = {
|
|
|
|
@ -34,14 +45,20 @@ export const faIcons = {
|
|
|
|
|
bellSolid: faBellSolid,
|
|
|
|
|
bug: faBugSolid,
|
|
|
|
|
bugSolid: faBugSolid,
|
|
|
|
|
caretLeft: faCaretLeftSolid,
|
|
|
|
|
caretLeftSolid: faCaretLeftSolid,
|
|
|
|
|
circleinfo: faCircleInfoSolid,
|
|
|
|
|
circleinfoSolid: faCircleInfoSolid,
|
|
|
|
|
desktop: faDesktopSolid,
|
|
|
|
|
desktopSolid: faDesktopSolid,
|
|
|
|
|
grip: faGripSolid,
|
|
|
|
|
gripSolid: faGripSolid,
|
|
|
|
|
message: faMessageRegular,
|
|
|
|
|
messageSolid: faMessageRegular,
|
|
|
|
|
messageSolid: faMessageSolid,
|
|
|
|
|
rss: faRssSolid,
|
|
|
|
|
rssSolid: faRssSolid,
|
|
|
|
|
share: faShareSolid,
|
|
|
|
|
shareSolid: faShareSolid,
|
|
|
|
|
sun: faSunRegular,
|
|
|
|
|
sunSolid: faSunSolid,
|
|
|
|
|
// brands
|
|
|
|
@ -67,7 +84,7 @@ export class DeesIcon extends DeesElement {
|
|
|
|
|
public static demo = () => html`
|
|
|
|
|
<dees-icon iconName="visibility"></dees-icon>
|
|
|
|
|
<div style="background: #fff; padding: 10px; font-size: 24px">
|
|
|
|
|
<dees-icon iconFA="message"></dees-icon>
|
|
|
|
|
<dees-icon iconFA="messageSolid"></dees-icon>
|
|
|
|
|
<dees-icon iconFA="sun"></dees-icon>
|
|
|
|
|
<dees-icon iconFA="sunSolid"></dees-icon>
|
|
|
|
|
<dees-icon iconFA="facebook"></dees-icon>
|
|
|
|
@ -85,18 +102,21 @@ export class DeesIcon extends DeesElement {
|
|
|
|
|
domtools.elementBasic.setup();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static styles = [
|
|
|
|
|
cssManager.defaultStyles,
|
|
|
|
|
css`
|
|
|
|
|
:host {
|
|
|
|
|
display: block;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
`,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public render() {
|
|
|
|
|
return html`
|
|
|
|
|
${domtools.elementBasic.styles}
|
|
|
|
|
<style>
|
|
|
|
|
:host {
|
|
|
|
|
display: block;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
padding: 0px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
#iconContainer svg {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: ${this.iconSize}px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|