@thesvg/astro 4.0.11 → 4.0.12
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/README.md +1 -1
- package/dist/apiko.astro +41 -0
- package/dist/apiko.astro.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/glincker/thesvg/main/public/og-image.png" />
|
|
5
5
|
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/glincker/thesvg/main/public/og-image-light.png" />
|
|
6
|
-
<img src="https://raw.githubusercontent.com/glincker/thesvg/main/public/og-image-light.png" alt="theSVG - 7,
|
|
6
|
+
<img src="https://raw.githubusercontent.com/glincker/thesvg/main/public/og-image-light.png" alt="theSVG - 7,900+ Brand SVG Icons" width="700" />
|
|
7
7
|
</picture>
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
package/dist/apiko.astro
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
// @thesvg/astro - APIKO. 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 (no effect: this icon has fixed brand colors). */
|
|
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 = "<rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#5B5BD6\"/><path d=\"M142 352 256 128l114 224\" fill=\"none\" stroke=\"#fff\" stroke-width=\"42\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M200 260h112\" fill=\"none\" stroke=\"#fff\" stroke-width=\"38\" stroke-linecap=\"round\"/><circle cx=\"142\" cy=\"352\" r=\"30\" fill=\"#fff\"/><circle cx=\"256\" cy=\"128\" r=\"30\" fill=\"#fff\"/><circle cx=\"370\" cy=\"352\" r=\"30\" fill=\"#fff\"/>";
|
|
30
|
+
---
|
|
31
|
+
<svg
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
+
viewBox="0 0 512 512"
|
|
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>
|
package/dist/index.d.ts
CHANGED
|
@@ -297,6 +297,7 @@ export { default as Apex } from "./apex.astro";
|
|
|
297
297
|
export { default as Apidog } from "./apidog.astro";
|
|
298
298
|
export { default as Apifox } from "./apifox.astro";
|
|
299
299
|
export { default as ApigeeBadge } from "./apigee-badge.astro";
|
|
300
|
+
export { default as Apiko } from "./apiko.astro";
|
|
300
301
|
export { default as Apl } from "./apl.astro";
|
|
301
302
|
export { default as ApmTerminals } from "./apm-terminals.astro";
|
|
302
303
|
export { default as ApolloGraphql } from "./apollo-graphql.astro";
|
package/dist/index.js
CHANGED
|
@@ -297,6 +297,7 @@ export { default as Apex } from "./apex.astro";
|
|
|
297
297
|
export { default as Apidog } from "./apidog.astro";
|
|
298
298
|
export { default as Apifox } from "./apifox.astro";
|
|
299
299
|
export { default as ApigeeBadge } from "./apigee-badge.astro";
|
|
300
|
+
export { default as Apiko } from "./apiko.astro";
|
|
300
301
|
export { default as Apl } from "./apl.astro";
|
|
301
302
|
export { default as ApmTerminals } from "./apm-terminals.astro";
|
|
302
303
|
export { default as ApolloGraphql } from "./apollo-graphql.astro";
|