media-icons
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,1 @@ | ||
export { lazyPaths } from './lazy.js'; | ||
export { MediaIconElement } from './element.js'; | ||
const p={"add-note":()=>import("./icons/add-note.js"),"add-playlist":()=>import("./icons/add-playlist.js"),"add-user":()=>import("./icons/add-user.js"),add:()=>import("./icons/add.js"),airplay:()=>import("./icons/airplay.js"),"arrow-collapse-in":()=>import("./icons/arrow-collapse-in.js"),"arrow-collapse":()=>import("./icons/arrow-collapse.js"),"arrow-down":()=>import("./icons/arrow-down.js"),"arrow-expand-out":()=>import("./icons/arrow-expand-out.js"),"arrow-expand":()=>import("./icons/arrow-expand.js"),"arrow-left":()=>import("./icons/arrow-left.js"),"arrow-right":()=>import("./icons/arrow-right.js"),"arrow-up":()=>import("./icons/arrow-up.js"),bookmark:()=>import("./icons/bookmark.js"),camera:()=>import("./icons/camera.js"),chapters:()=>import("./icons/chapters.js"),"chat-collapse":()=>import("./icons/chat-collapse.js"),chat:()=>import("./icons/chat.js"),"chevron-down":()=>import("./icons/chevron-down.js"),"chevron-left":()=>import("./icons/chevron-left.js"),"chevron-right":()=>import("./icons/chevron-right.js"),"chevron-up":()=>import("./icons/chevron-up.js"),chromecast:()=>import("./icons/chromecast.js"),clip:()=>import("./icons/clip.js"),"closed-captions-on":()=>import("./icons/closed-captions-on.js"),"closed-captions":()=>import("./icons/closed-captions.js"),comment:()=>import("./icons/comment.js"),computer:()=>import("./icons/computer.js"),device:()=>import("./icons/device.js"),download:()=>import("./icons/download.js"),episodes:()=>import("./icons/episodes.js"),eye:()=>import("./icons/eye.js"),"fast-backward":()=>import("./icons/fast-backward.js"),"fast-forward":()=>import("./icons/fast-forward.js"),flag:()=>import("./icons/flag.js"),"fullscreen-arrow-exit":()=>import("./icons/fullscreen-arrow-exit.js"),"fullscreen-arrow":()=>import("./icons/fullscreen-arrow.js"),"fullscreen-exit":()=>import("./icons/fullscreen-exit.js"),fullscreen:()=>import("./icons/fullscreen.js"),heart:()=>import("./icons/heart.js"),info:()=>import("./icons/info.js"),language:()=>import("./icons/language.js"),link:()=>import("./icons/link.js"),"lock-closed":()=>import("./icons/lock-closed.js"),"lock-open":()=>import("./icons/lock-open.js"),"menu-horizontal":()=>import("./icons/menu-horizontal.js"),"menu-vertical":()=>import("./icons/menu-vertical.js"),microphone:()=>import("./icons/microphone.js"),mobile:()=>import("./icons/mobile.js"),moon:()=>import("./icons/moon.js"),"music-off":()=>import("./icons/music-off.js"),music:()=>import("./icons/music.js"),mute:()=>import("./icons/mute.js"),next:()=>import("./icons/next.js"),notification:()=>import("./icons/notification.js"),odometer:()=>import("./icons/odometer.js"),pause:()=>import("./icons/pause.js"),"picture-in-picture-exit":()=>import("./icons/picture-in-picture-exit.js"),"picture-in-picture":()=>import("./icons/picture-in-picture.js"),play:()=>import("./icons/play.js"),"playback-speed-circle":()=>import("./icons/playback-speed-circle.js"),playlist:()=>import("./icons/playlist.js"),previous:()=>import("./icons/previous.js"),"question-mark":()=>import("./icons/question-mark.js"),"queue-list":()=>import("./icons/queue-list.js"),"radio-button-selected":()=>import("./icons/radio-button-selected.js"),"radio-button":()=>import("./icons/radio-button.js"),"repeat-on":()=>import("./icons/repeat-on.js"),"repeat-square-on":()=>import("./icons/repeat-square-on.js"),"repeat-square":()=>import("./icons/repeat-square.js"),repeat:()=>import("./icons/repeat.js"),replay:()=>import("./icons/replay.js"),rotate:()=>import("./icons/rotate.js"),search:()=>import("./icons/search.js"),"seek-backward-10":()=>import("./icons/seek-backward-10.js"),"seek-backward-15":()=>import("./icons/seek-backward-15.js"),"seek-backward-30":()=>import("./icons/seek-backward-30.js"),"seek-backward":()=>import("./icons/seek-backward.js"),"seek-forward-10":()=>import("./icons/seek-forward-10.js"),"seek-forward-15":()=>import("./icons/seek-forward-15.js"),"seek-forward-30":()=>import("./icons/seek-forward-30.js"),"seek-forward":()=>import("./icons/seek-forward.js"),send:()=>import("./icons/send.js"),"settings-menu":()=>import("./icons/settings-menu.js"),"settings-switch":()=>import("./icons/settings-switch.js"),settings:()=>import("./icons/settings.js"),"share-arrow":()=>import("./icons/share-arrow.js"),share:()=>import("./icons/share.js"),"shuffle-on":()=>import("./icons/shuffle-on.js"),shuffle:()=>import("./icons/shuffle.js"),stop:()=>import("./icons/stop.js"),subtitles:()=>import("./icons/subtitles.js"),sun:()=>import("./icons/sun.js"),"theatre-mode-exit":()=>import("./icons/theatre-mode-exit.js"),"theatre-mode":()=>import("./icons/theatre-mode.js"),"thumbs-down":()=>import("./icons/thumbs-down.js"),"thumbs-up":()=>import("./icons/thumbs-up.js"),timer:()=>import("./icons/timer.js"),transcript:()=>import("./icons/transcript.js"),tv:()=>import("./icons/tv.js"),user:()=>import("./icons/user.js"),"volume-high":()=>import("./icons/volume-high.js"),"volume-low":()=>import("./icons/volume-low.js"),"x-mark":()=>import("./icons/x-mark.js")};function s(r){const t=document.createElement("template");return t.innerHTML=r,t.content}function a(r){return r.cloneNode(!0).firstElementChild}const n=s('<svg width="100%" height="100%" viewBox="0 0 32 32" fill="none" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg"></svg>');class o extends HTMLElement{constructor(){super(...arguments),this.e=this.n(),this.t=null}static{this.tagName="media-icon"}static get observedAttributes(){return["type"]}get type(){return this.t}set type(t){this.t!==t&&(t?this.setAttribute("type",t):this.removeAttribute("type"),this.i(t))}attributeChangedCallback(t,i,m){if(t==="type"){const e=m||null;this.t!==e&&this.i(e)}}connectedCallback(){this.classList.add("vds-icon"),this.e.parentNode!==this&&this.prepend(this.e)}n(){return a(n)}a(){const t=this.t;t&&p[t]?p[t]().then(({default:i})=>{t===this.t&&this.s(i)}):this.s("")}i(t){this.t=t,this.a()}s(t){this.e.innerHTML=t}}window.customElements.define(o.tagName,o);export{o as MediaIconElement}; |
@@ -17,8 +17,13 @@ import { lazyPaths } from './lazy.js'; | ||
class MediaIconElement extends HTMLElement { | ||
static tagName = "media-icon"; | ||
constructor() { | ||
super(...arguments); | ||
this._svg = this._createSVG(); | ||
this._type = null; | ||
} | ||
static { | ||
this.tagName = "media-icon"; | ||
} | ||
static get observedAttributes() { | ||
return ["type"]; | ||
} | ||
_svg = this._createSVG(); | ||
_type = null; | ||
/** | ||
@@ -25,0 +30,0 @@ * The type of icon. You can find a complete and searchable list on our website - see our |
@@ -1,2 +0,2 @@ | ||
export * from "./icons/index.js"; | ||
export * from "./icons/lazy.js"; | ||
export * from "./icons/index"; | ||
export * from "./icons/lazy"; |
{ | ||
"name": "media-icons", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Open-source and beautifully hand-crafted collection of media icons.", | ||
@@ -27,7 +27,7 @@ "type": "module", | ||
"devDependencies": { | ||
"esbuild": "^0.18.1", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.25.1", | ||
"rollup-plugin-esbuild": "^5.0.0", | ||
"typescript": "^5.1.0" | ||
"esbuild": "^0.20.0", | ||
"rimraf": "^5.0.0", | ||
"rollup": "^4.0.0", | ||
"rollup-plugin-esbuild": "^6.0.0", | ||
"typescript": "^5.4.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "contributors": [ |
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
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
296160
1377
325