@selemondev/svgl-svelte 2.8.0 → 2.9.0
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.
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
const restAttrs = Object.entries(rest)
|
|
12
12
|
.map(([k, v]) => `${k}="${v}"`)
|
|
13
13
|
.join(' ');
|
|
14
|
-
return `<svg viewBox="0 0
|
|
15
|
-
<g clip-path="url(#
|
|
16
|
-
<path d="
|
|
17
|
-
<path d="
|
|
18
|
-
<path d="
|
|
14
|
+
return `<svg viewBox="0 0 32 31" fill="none" xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" ${restAttrs}>
|
|
15
|
+
<g clip-path="url(#clip0_2_233)">
|
|
16
|
+
<path d="M5.65714 0H26.3429C29.4857 0 32 2.51429 32 5.65714V25.2C32 28.3429 29.4857 30.8571 26.3429 30.8571H5.65714C2.51429 30.8571 0 28.3429 0 25.2V5.65714C0 2.51429 2.51429 0 5.65714 0Z" fill="#808080"/>
|
|
17
|
+
<path d="M15.4858 18.2857H10.6286L9.65719 21.5428C9.65719 21.6571 9.54291 21.7143 9.42862 21.7143H6.97148C6.85719 21.7143 6.80005 21.6571 6.80005 21.4857L11.0286 9.31427C11.0858 9.19998 11.0858 9.02856 11.1429 8.85713C11.2 8.62856 11.2572 8.39998 11.2 8.11427C11.2 8.05713 11.2572 7.99998 11.3143 7.94284C11.3143 7.94284 11.3143 7.94284 11.3715 7.94284H14.7429C14.8572 7.94284 14.9143 7.99998 14.9143 8.05713L19.7143 21.4286C19.7715 21.5428 19.7143 21.6571 19.6 21.6571H16.8572C16.7429 21.6571 16.6858 21.6 16.6286 21.4857L15.4858 18.2857ZM11.3715 16H14.9715C14.9143 15.7143 14.5715 15.0857 14.4572 14.7428C14.3429 14.4 14.1715 14.1143 14.0572 13.7143C13.9429 13.3143 13.8286 12.9143 13.6572 12.5143C13.5429 12.1143 13.4286 11.7143 13.3143 11.3714C13.2 10.9714 13.0858 10.6286 13.0286 10.3428C12.9143 10.9143 12.7429 11.4857 12.5715 12.0571C12.4 12.6857 12.1715 13.3143 11.9429 14C11.7715 14.5714 11.5429 15.4286 11.3715 16Z" fill="white"/>
|
|
18
|
+
<path d="M22.5143 10.1143C22.0572 10.1143 21.6572 9.94285 21.3715 9.65713C21.0858 9.31427 20.9143 8.91427 20.9143 8.45713C20.9143 7.99999 21.0858 7.59999 21.3715 7.25713C21.7143 6.97142 22.1143 6.79999 22.5715 6.79999C23.0286 6.79999 23.4286 6.91427 23.7715 7.25713C24.0572 7.59999 24.2286 7.99999 24.2286 8.45713C24.2286 8.91427 24.0572 9.31427 23.7715 9.65713C23.4286 9.94285 22.9715 10.1143 22.5143 10.1143ZM21.1429 21.4286V11.7143C21.1429 11.6 21.2001 11.5428 21.3143 11.5428H23.7143C23.8286 11.5428 23.8858 11.6 23.8858 11.7143V21.3714C23.8858 21.4857 23.8286 21.6 23.7143 21.6H21.3143C21.2001 21.6 21.1429 21.5428 21.1429 21.4286Z" fill="white"/>
|
|
19
19
|
</g>
|
|
20
20
|
<defs>
|
|
21
|
-
<clipPath id="
|
|
22
|
-
<rect width="
|
|
21
|
+
<clipPath id="clip0_2_233">
|
|
22
|
+
<rect width="32" height="30.8571" fill="white"/>
|
|
23
23
|
</clipPath>
|
|
24
24
|
</defs>
|
|
25
25
|
</svg>
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
const restAttrs = Object.entries(rest)
|
|
12
12
|
.map(([k, v]) => `${k}="${v}"`)
|
|
13
13
|
.join(' ');
|
|
14
|
-
return `<svg viewBox="0 0
|
|
15
|
-
<g clip-path="url(#
|
|
16
|
-
<path d="
|
|
17
|
-
<path d="
|
|
18
|
-
<path d="
|
|
14
|
+
return `<svg viewBox="0 0 32 31" fill="none" xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" ${restAttrs}>
|
|
15
|
+
<g clip-path="url(#clip0_2_243)">
|
|
16
|
+
<path d="M5.65714 0H26.3429C29.4857 0 32 2.51429 32 5.65714V25.2C32 28.3429 29.4857 30.8571 26.3429 30.8571H5.65714C2.51429 30.8571 0 28.3429 0 25.2V5.65714C0 2.51429 2.51429 0 5.65714 0Z" fill="#808080"/>
|
|
17
|
+
<path d="M6.62856 21.5429V8.05717C6.62856 7.94289 6.6857 7.88574 6.74284 7.88574C6.97141 7.88574 7.25713 7.88574 7.54284 7.88574C7.82855 7.88574 8.17141 7.88574 8.57141 7.88574C8.91427 7.88574 9.31427 7.88574 9.71427 7.88574C10.1143 7.88574 10.5143 7.88574 10.9143 7.88574C11.8286 7.88574 12.7428 8.00003 13.6 8.28574C14.2857 8.51431 14.8571 8.85717 15.3714 9.37146C15.7714 9.77146 16.1143 10.2857 16.3428 10.8572C16.5143 11.4286 16.6286 12 16.6286 12.5715C16.6857 13.5429 16.4 14.5143 15.8286 15.3715C15.3143 16.1143 14.5714 16.6857 13.7143 16.9715C12.7428 17.3143 11.7714 17.4857 10.7428 17.4857C10.4571 17.4857 10.2286 17.4857 10.1143 17.4857C9.99998 17.4857 9.77141 17.4857 9.54284 17.4857V21.6572C9.54284 21.7715 9.4857 21.8286 9.37141 21.8286H9.31427H6.74284C6.6857 21.7143 6.62856 21.6572 6.62856 21.5429ZM9.54284 10.4V14.8C9.71427 14.8 9.8857 14.8 10.0571 14.8H10.7428C11.2571 14.8 11.7714 14.7429 12.2286 14.5715C12.6286 14.4572 13.0286 14.2286 13.3143 13.8857C13.6 13.4857 13.7714 13.0286 13.7143 12.5143C13.7143 12.1143 13.6 11.7143 13.4286 11.3715C13.2 11.0286 12.8571 10.7429 12.5143 10.6286C12 10.4572 11.4857 10.3429 10.9714 10.3429C10.6286 10.3429 10.3428 10.3429 10.0571 10.3429C9.82856 10.4 9.65713 10.4 9.54284 10.4Z" fill="white"/>
|
|
18
|
+
<path d="M24.8571 13.9429C24.3428 13.7143 23.8286 13.6 23.3143 13.4857C22.8571 13.3714 22.3428 13.3143 21.8286 13.3143C21.5428 13.3143 21.3143 13.3143 21.0286 13.4286C20.8571 13.4857 20.7428 13.5429 20.6286 13.7143C20.5714 13.8286 20.5143 13.9429 20.5143 14.0572C20.5143 14.1714 20.5714 14.2857 20.6286 14.4C20.7428 14.5714 20.9143 14.6857 21.0857 14.7429C21.3714 14.9143 21.7143 15.0286 22 15.2C22.6857 15.4286 23.3714 15.7714 24 16.1714C24.4571 16.4572 24.8 16.8 25.0286 17.2572C25.2571 17.6572 25.3714 18.1143 25.3143 18.6286C25.3143 19.2572 25.1428 19.8286 24.8 20.4C24.4571 20.9143 23.9428 21.3143 23.3143 21.6C22.5714 21.8857 21.7714 22.0572 20.9143 22C20.3428 22 19.7143 21.9429 19.1428 21.8286C18.6286 21.7143 18.1714 21.6 17.7143 21.4286C17.6 21.3714 17.5428 21.2572 17.5428 21.2V18.9143C17.5428 18.8572 17.5428 18.8 17.6 18.8C17.6571 18.8 17.6571 18.8 17.7143 18.8C18.2286 19.0857 18.8 19.3143 19.4286 19.4286C19.9428 19.5429 20.4571 19.6 20.9714 19.6572C21.3714 19.6572 21.7143 19.6 22.0571 19.4857C22.2857 19.3714 22.4 19.2 22.4 18.9143C22.4 18.6857 22.2857 18.5143 22.0571 18.4C21.6571 18.1143 21.2 17.9429 20.7428 17.7714C20.0571 17.5429 19.4286 17.2 18.8571 16.8C18.4571 16.5143 18.1143 16.1143 17.8857 15.7143C17.6571 15.3143 17.6 14.8572 17.6 14.4C17.6 13.8286 17.7714 13.3143 18.0571 12.8C18.4 12.2857 18.8571 11.8286 19.4286 11.6C20.0571 11.2572 20.8 11.0857 21.5428 11.0857C22.1143 11.0286 22.7428 11.0857 23.3143 11.0857C23.7714 11.2 24.2857 11.3143 24.6857 11.5429C24.7428 11.5429 24.8 11.6 24.8 11.6572C24.8 11.7143 24.8 11.7714 24.8 11.8286V13.9429C24.8 14 24.8 14.0572 24.7428 14.0572C24.9714 14 24.9143 14 24.8571 13.9429Z" fill="white"/>
|
|
19
19
|
</g>
|
|
20
20
|
<defs>
|
|
21
|
-
<clipPath id="
|
|
22
|
-
<rect width="
|
|
21
|
+
<clipPath id="clip0_2_243">
|
|
22
|
+
<rect width="32" height="30.8571" fill="white"/>
|
|
23
23
|
</clipPath>
|
|
24
24
|
</defs>
|
|
25
25
|
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
|
|
4
|
+
export interface Props extends HTMLAttributes<SVGElement> {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { width = 50, height = 50, ...rest }: Props = $props();
|
|
10
|
+
const svgContent = () => {
|
|
11
|
+
const restAttrs = Object.entries(rest)
|
|
12
|
+
.map(([k, v]) => `${k}="${v}"`)
|
|
13
|
+
.join(' ');
|
|
14
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="enable-background:new 0 0 841.89 595.28" viewBox="0 0 841.89 595.28" width="${width}" height="${height}" ${restAttrs}><path d="m557.09 211.99 8.31 326.37h66.56l8.32-445.18zM640.28 56.91H538.72L379.35 284.53l50.78 72.52zM201.61 538.36h101.56l50.79-72.52-50.79-72.53zM201.61 211.99l228.52 326.37h101.56L303.17 211.99z"/></svg>`;
|
|
15
|
+
};
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
{@html svgContent()}
|
package/dist/index.d.ts
CHANGED
|
@@ -635,6 +635,7 @@ export { default as SvglWindowsLogo } from './components/Windows.svelte';
|
|
|
635
635
|
export { default as SvglWindsurfLogo } from './components/Windsurf.svelte';
|
|
636
636
|
export { default as SvglWordPressLogo } from './components/WordPress.svelte';
|
|
637
637
|
export { default as SvglWorkOSLogo } from './components/WorkOS.svelte';
|
|
638
|
+
export { default as SvglXAILogo } from './components/XAI.svelte';
|
|
638
639
|
export { default as SvglXAIGrokLogo } from './components/XAIGrok.svelte';
|
|
639
640
|
export { default as SvglXDLogo } from './components/XD.svelte';
|
|
640
641
|
export { default as SvglXRPLogo } from './components/XRP.svelte';
|
package/dist/index.js
CHANGED
|
@@ -637,6 +637,7 @@ export { default as SvglWindowsLogo } from './components/Windows.svelte';
|
|
|
637
637
|
export { default as SvglWindsurfLogo } from './components/Windsurf.svelte';
|
|
638
638
|
export { default as SvglWordPressLogo } from './components/WordPress.svelte';
|
|
639
639
|
export { default as SvglWorkOSLogo } from './components/WorkOS.svelte';
|
|
640
|
+
export { default as SvglXAILogo } from './components/XAI.svelte';
|
|
640
641
|
export { default as SvglXAIGrokLogo } from './components/XAIGrok.svelte';
|
|
641
642
|
export { default as SvglXDLogo } from './components/XD.svelte';
|
|
642
643
|
export { default as SvglXRPLogo } from './components/XRP.svelte';
|