@thesvg/astro 4.0.3 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lumin.astro +41 -0
- package/dist/lumin.astro.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4649,6 +4649,7 @@ export { default as Lufthansa } from "./lufthansa.astro";
|
|
|
4649
4649
|
export { default as Luma } from "./luma.astro";
|
|
4650
4650
|
export { default as Lume } from "./lume.astro";
|
|
4651
4651
|
export { default as Lumen } from "./lumen.astro";
|
|
4652
|
+
export { default as Lumin } from "./lumin.astro";
|
|
4652
4653
|
export { default as Lunacy } from "./lunacy.astro";
|
|
4653
4654
|
export { default as LunanodeBadge } from "./lunanode-badge.astro";
|
|
4654
4655
|
export { default as Lunit } from "./lunit.astro";
|
package/dist/index.js
CHANGED
|
@@ -4649,6 +4649,7 @@ export { default as Lufthansa } from "./lufthansa.astro";
|
|
|
4649
4649
|
export { default as Luma } from "./luma.astro";
|
|
4650
4650
|
export { default as Lume } from "./lume.astro";
|
|
4651
4651
|
export { default as Lumen } from "./lumen.astro";
|
|
4652
|
+
export { default as Lumin } from "./lumin.astro";
|
|
4652
4653
|
export { default as Lunacy } from "./lunacy.astro";
|
|
4653
4654
|
export { default as LunanodeBadge } from "./lunanode-badge.astro";
|
|
4654
4655
|
export { default as Lunit } from "./lunit.astro";
|
package/dist/lumin.astro
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
// @thesvg/astro - Lumin. Auto-generated. Do not edit.
|
|
3
|
+
import type { HTMLAttributes } from "astro/types";
|
|
4
|
+
|
|
5
|
+
export interface Props extends HTMLAttributes<"svg"> {
|
|
6
|
+
/** Width and height. Numbers are pixels. Defaults to "1em". */
|
|
7
|
+
size?: number | string;
|
|
8
|
+
/** Sets the CSS color. */
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const { size = "1em", color, class: className, style, ...rest } = Astro.props;
|
|
13
|
+
// Style may be a string or an object (kebab-case or camelCase keys).
|
|
14
|
+
const styleText =
|
|
15
|
+
style && typeof style === "object"
|
|
16
|
+
? Object.entries(style)
|
|
17
|
+
.filter(([, v]) => v !== null && v !== undefined && v !== "")
|
|
18
|
+
.map(([k, v]) => `${k.startsWith("--") ? k : k.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase())}:${v}`)
|
|
19
|
+
.join(";")
|
|
20
|
+
: typeof style === "string"
|
|
21
|
+
? style
|
|
22
|
+
: "";
|
|
23
|
+
const inlineStyle = ["", color ? `color:${color}` : "", styleText]
|
|
24
|
+
.map((part) => part.replace(/;\s*$/, ""))
|
|
25
|
+
.filter(Boolean)
|
|
26
|
+
.join(";");
|
|
27
|
+
const classes = ["", className].filter(Boolean).join(" ");
|
|
28
|
+
const rootAttrs = {};
|
|
29
|
+
const markup = "<path d=\"m592.717 287.982 8.331-14.456h-16.591c-1.989 0-3.095-1.92-2.065-3.688l20.792-35.915c.444-.813 1.106-1.253 2.287-1.253h20.641c1.99 0 3.095 1.919 2.065 3.687l-18.722 32.45h29.118c1.989 0 3.024 1.991 2.065 3.688l-10.321 17.922c-.444.813-1.105 1.253-2.287 1.253h-33.252c-1.99 0-3.095-1.919-2.065-3.688zm11.058-19.175 18.207-31.419H606.87l-18.283 31.419zm22.999 18.14 7.594-13.421h-27.644l-7.741 13.421z\"/>";
|
|
30
|
+
---
|
|
31
|
+
<svg
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
+
viewBox="582 232.67 59 59"
|
|
34
|
+
fill="currentColor"
|
|
35
|
+
width={size}
|
|
36
|
+
height={size}
|
|
37
|
+
{...rootAttrs}
|
|
38
|
+
class={classes || undefined}
|
|
39
|
+
style={inlineStyle || undefined}
|
|
40
|
+
{...rest}
|
|
41
|
+
><Fragment set:html={markup} /></svg>
|