@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.
@@ -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>
@@ -0,0 +1,5 @@
1
+ // @thesvg/astro - Context7. Auto-generated. Do not edit.
2
+ import type { IconComponent } from "./types";
3
+
4
+ declare const Context7: IconComponent;
5
+ export default Context7;
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 = "<defs><radialGradient id=\"thesvg-glinr-c\" cx=\".32\" cy=\".16\" r=\".7\"><stop offset=\"0\" stop-color=\"#fff\" stop-opacity=\".65\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></radialGradient><linearGradient id=\"thesvg-glinr-a\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#fbf8f4\"/><stop offset=\"1\" stop-color=\"#ddd6cc\"/></linearGradient><clipPath id=\"thesvg-glinr-b\"><path 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\"/></clipPath></defs><path fill=\"#5f5c56\" d=\"M256 60Q40 60 40 276c0 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\"/><path fill=\"url(#thesvg-glinr-a)\" 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\"/><g clip-path=\"url(#thesvg-glinr-b)\"><path fill=\"#fff\" fill-opacity=\".95\" fill-rule=\"evenodd\" 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-4m0 10Q40 50 40 266c0 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\"/><path fill-opacity=\".14\" fill-rule=\"evenodd\" 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-4m0-10Q40 30 40 246c0 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\"/><path fill=\"url(#thesvg-glinr-c)\" d=\"M0 0h512v512H0z\"/></g><path fill=\"none\" stroke=\"#000\" stroke-opacity=\".4\" stroke-width=\"3\" 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-4Z\"/>";
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";
@@ -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>
@@ -0,0 +1,5 @@
1
+ // @thesvg/astro - Ramp. Auto-generated. Do not edit.
2
+ import type { IconComponent } from "./types";
3
+
4
+ declare const Ramp: IconComponent;
5
+ export default Ramp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thesvg/astro",
3
- "version": "4.0.14",
3
+ "version": "4.0.16",
4
4
  "description": "Typed Astro SVG components for all 7,600+ brand icons from thesvg.org",
5
5
  "type": "module",
6
6
  "sideEffects": false,