New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lit-heroicons

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit-heroicons - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

27

heroicon.ts
import { html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
import icons from "./generated/heroicons.json";
import icons from "./heroicons.json";
import { HeroIconName } from "./generated/heroicons";

@@ -21,4 +21,25 @@

return (
icons?.[this.name.toLowerCase()]?.[this.solid ? 0 : 1] ??
html`<svg></svg>`
// icons?.[this.name.toLowerCase()]?.[this.solid ? 0 : 1] ??
html`${this.solid
? html`<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="heroicon solid"
>
${icons[this.name.toLowerCase()][1].map((e) => {
html`<path ${e}></path>`;
})}
</svg>`
: html`<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
class="outline heroicon"
>
${icons[this.name.toLowerCase()][0].map((e) => {
html`<path ${e}></path>`;
})}
</svg>`}`
);

@@ -25,0 +46,0 @@ }

2

package.json
{
"name": "lit-heroicons",
"version": "0.5.2",
"version": "0.5.3",
"description": "Heroicons for Lit (Project based on heroicons)",

@@ -5,0 +5,0 @@ "main": "heroicon.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc