@thesvg/astro 4.0.14 → 4.0.16
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/context7.astro +41 -0
- package/dist/context7.astro.d.ts +5 -0
- package/dist/glinr.astro +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/ramp.astro +41 -0
- package/dist/ramp.astro.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
// @thesvg/astro - Context7. 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=\"28\" height=\"28\" fill=\"#000\" rx=\"4\"/><path fill=\"#fff\" d=\"M10.572 15.257c0 2.246-.91 4.12-2.394 5.848h3.454v1.674H6.335v-1.59c1.62-1.832 2.246-3.326 2.246-5.932zm6.856 0c0 2.246.91 4.12 2.394 5.848h-3.454v1.674h5.297v-1.59c-1.62-1.832-2.246-3.326-2.246-5.932zm-6.856-2.513c0-2.246-.91-4.122-2.394-5.849h3.454V5.221H6.335v1.59c1.62 1.832 2.246 3.326 2.246 5.932zm6.856 0c0-2.246.91-4.122 2.394-5.849h-3.454V5.221h5.297v1.59c-1.62 1.832-2.246 3.326-2.246 5.932z\"/>";
|
|
30
|
+
---
|
|
31
|
+
<svg
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
+
viewBox="0 0 28 28"
|
|
34
|
+
fill="none"
|
|
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/glinr.astro
CHANGED
|
@@ -26,7 +26,7 @@ const inlineStyle = ["", color ? `color:${color}` : "", styleText]
|
|
|
26
26
|
.join(";");
|
|
27
27
|
const classes = ["", className].filter(Boolean).join(" ");
|
|
28
28
|
const rootAttrs = {};
|
|
29
|
-
const markup = "<
|
|
29
|
+
const markup = "<path fill=\"#fbf8f4\" d=\"M256 40Q40 40 40 256c0 216 72 216 216 216s216-72 216-216c0-36-2-66-10-96-102-10-166-60-144-116-18-3-38-4-62-4\"/>";
|
|
30
30
|
---
|
|
31
31
|
<svg
|
|
32
32
|
xmlns="http://www.w3.org/2000/svg"
|
package/dist/index.d.ts
CHANGED
|
@@ -2448,6 +2448,7 @@ export { default as Contao } from "./contao.astro";
|
|
|
2448
2448
|
export { default as Contensis } from "./contensis.astro";
|
|
2449
2449
|
export { default as Contentful } from "./contentful.astro";
|
|
2450
2450
|
export { default as Contentstack } from "./contentstack.astro";
|
|
2451
|
+
export { default as Context7 } from "./context7.astro";
|
|
2451
2452
|
export { default as Continente } from "./continente.astro";
|
|
2452
2453
|
export { default as Continue } from "./continue.astro";
|
|
2453
2454
|
export { default as Contour } from "./contour.astro";
|
|
@@ -6004,6 +6005,7 @@ export { default as RakutenKobo } from "./rakuten-kobo.astro";
|
|
|
6004
6005
|
export { default as Rallly } from "./rallly.astro";
|
|
6005
6006
|
export { default as RalphLauren } from "./ralph-lauren.astro";
|
|
6006
6007
|
export { default as Ram } from "./ram.astro";
|
|
6008
|
+
export { default as Ramp } from "./ramp.astro";
|
|
6007
6009
|
export { default as Rancher } from "./rancher.astro";
|
|
6008
6010
|
export { default as Randevum } from "./randevum.astro";
|
|
6009
6011
|
export { default as Rapid } from "./rapid.astro";
|
package/dist/index.js
CHANGED
|
@@ -2448,6 +2448,7 @@ export { default as Contao } from "./contao.astro";
|
|
|
2448
2448
|
export { default as Contensis } from "./contensis.astro";
|
|
2449
2449
|
export { default as Contentful } from "./contentful.astro";
|
|
2450
2450
|
export { default as Contentstack } from "./contentstack.astro";
|
|
2451
|
+
export { default as Context7 } from "./context7.astro";
|
|
2451
2452
|
export { default as Continente } from "./continente.astro";
|
|
2452
2453
|
export { default as Continue } from "./continue.astro";
|
|
2453
2454
|
export { default as Contour } from "./contour.astro";
|
|
@@ -6004,6 +6005,7 @@ export { default as RakutenKobo } from "./rakuten-kobo.astro";
|
|
|
6004
6005
|
export { default as Rallly } from "./rallly.astro";
|
|
6005
6006
|
export { default as RalphLauren } from "./ralph-lauren.astro";
|
|
6006
6007
|
export { default as Ram } from "./ram.astro";
|
|
6008
|
+
export { default as Ramp } from "./ramp.astro";
|
|
6007
6009
|
export { default as Rancher } from "./rancher.astro";
|
|
6008
6010
|
export { default as Randevum } from "./randevum.astro";
|
|
6009
6011
|
export { default as Rapid } from "./rapid.astro";
|
package/dist/ramp.astro
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
// @thesvg/astro - Ramp. 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=\"M69.5 58.7v.3H31.6v-.3c5.5-3.1 9.2-6.2 12.6-9.5h15.6zM60.2 9.4 50.6 0h-.3s.2 17.5-16 33.5C18.5 49.1 0 49.2 0 49.2v.3L9.8 59s18.3.2 34.4-15.7c16.1-15.7 16-33.9 16-33.9\"/>";
|
|
30
|
+
---
|
|
31
|
+
<svg
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
+
viewBox="0 0 69.5 59"
|
|
34
|
+
fill="#1F1F1F"
|
|
35
|
+
width={size}
|
|
36
|
+
height={size}
|
|
37
|
+
{...rootAttrs}
|
|
38
|
+
class={classes || undefined}
|
|
39
|
+
style={inlineStyle || undefined}
|
|
40
|
+
{...rest}
|
|
41
|
+
><Fragment set:html={markup} /></svg>
|