@genarou/blazir-icons 1.4.0 → 1.4.2
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/IconBase.svelte +39 -21
- package/dist/icons/Block.svelte +22 -0
- package/dist/icons/Block.svelte.d.ts +4 -0
- package/dist/icons/DisplaySettings.svelte +22 -0
- package/dist/icons/DisplaySettings.svelte.d.ts +4 -0
- package/dist/icons/Experiment.svelte +22 -0
- package/dist/icons/Experiment.svelte.d.ts +4 -0
- package/dist/icons/Flag.svelte +22 -0
- package/dist/icons/Flag.svelte.d.ts +4 -0
- package/dist/icons/GraphQL.svelte +27 -0
- package/dist/icons/GraphQL.svelte.d.ts +4 -0
- package/dist/icons/Heart.svelte +0 -3
- package/dist/icons/Plugin.svelte +22 -0
- package/dist/icons/Plugin.svelte.d.ts +4 -0
- package/dist/icons/RateLimit.svelte +24 -0
- package/dist/icons/RateLimit.svelte.d.ts +4 -0
- package/dist/icons/Robot.svelte +22 -0
- package/dist/icons/Robot.svelte.d.ts +4 -0
- package/dist/icons/Schema.svelte +22 -0
- package/dist/icons/Schema.svelte.d.ts +4 -0
- package/dist/icons/ShieldCard.svelte +22 -0
- package/dist/icons/ShieldCard.svelte.d.ts +4 -0
- package/dist/icons/ShieldLock.svelte +22 -0
- package/dist/icons/ShieldLock.svelte.d.ts +4 -0
- package/dist/icons/ShieldToggle.svelte +22 -0
- package/dist/icons/ShieldToggle.svelte.d.ts +4 -0
- package/dist/icons/Webhook.svelte +22 -0
- package/dist/icons/Webhook.svelte.d.ts +4 -0
- package/dist/icons/components.d.ts +13 -0
- package/dist/icons/components.js +13 -0
- package/dist/icons/lazy-registry.js +13 -0
- package/dist/icons/registry.d.ts +13 -0
- package/dist/icons/registry.js +26 -0
- package/dist/icons-api.d.ts +13 -0
- package/dist/icons-api.js +13 -0
- package/dist/plugin/index.d.ts +5 -2
- package/dist/plugin/index.js +26 -1
- package/package.json +6 -1
package/dist/IconBase.svelte
CHANGED
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
let internalPressed = $state(false);
|
|
52
52
|
const isHovered = $derived(
|
|
53
53
|
!props.disabled &&
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
!props.loading &&
|
|
55
|
+
(internalHovered || (props.parentHoverContext?.hovered ?? false)),
|
|
56
56
|
);
|
|
57
57
|
const isPressed = $derived(!props.disabled && internalPressed);
|
|
58
58
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
? props.activeColor
|
|
63
63
|
: isHovered && props.hoverColor
|
|
64
64
|
? props.hoverColor
|
|
65
|
-
: props.color) ?? DEFAULT_ICON_COLOR
|
|
65
|
+
: props.color) ?? DEFAULT_ICON_COLOR,
|
|
66
66
|
);
|
|
67
67
|
|
|
68
68
|
// Mode
|
|
@@ -83,14 +83,12 @@
|
|
|
83
83
|
const timingStyle = $derived(getAnimationStyle(props));
|
|
84
84
|
|
|
85
85
|
// Transiciones — hoverSpeed > transitionMs > default
|
|
86
|
-
const hoverMs = $derived(
|
|
87
|
-
normalizeMs(props.transitionMs ?? props.hoverSpeed)
|
|
88
|
-
);
|
|
86
|
+
const hoverMs = $derived(normalizeMs(props.transitionMs ?? props.hoverSpeed));
|
|
89
87
|
const hoverEase = $derived(props.transitionEasing ?? DEFAULT_EASING);
|
|
90
88
|
|
|
91
89
|
// Animaciones continuas — $derived.by idiomático (Svelte 5)
|
|
92
90
|
const spinDuration = $derived.by(() => {
|
|
93
|
-
if (props.loading) return "0.75s";
|
|
91
|
+
if (props.loading) return "0.75s"; // loading siempre gira
|
|
94
92
|
if (!props.spin) return null;
|
|
95
93
|
if (props.spin === true) return "1s";
|
|
96
94
|
return typeof props.spin === "number"
|
|
@@ -132,7 +130,7 @@
|
|
|
132
130
|
|
|
133
131
|
// Clase final
|
|
134
132
|
const finalClass = $derived(
|
|
135
|
-
`bz-icon ${klass}${effectiveChevronState ? " bz-icon-chevron" : ""}`.trim()
|
|
133
|
+
`bz-icon ${klass}${effectiveChevronState ? " bz-icon-chevron" : ""}`.trim(),
|
|
136
134
|
);
|
|
137
135
|
|
|
138
136
|
// ===== SVG transform (solo rotate/flip declarativos) =====
|
|
@@ -162,7 +160,7 @@
|
|
|
162
160
|
const sx = props.flipH ? -1 : 1;
|
|
163
161
|
const sy = props.flipV ? -1 : 1;
|
|
164
162
|
cmds.push(
|
|
165
|
-
`translate(${center.cx} ${center.cy}) scale(${sx} ${sy}) translate(${-center.cx} ${-center.cy})
|
|
163
|
+
`translate(${center.cx} ${center.cy}) scale(${sx} ${sy}) translate(${-center.cx} ${-center.cy})`,
|
|
166
164
|
);
|
|
167
165
|
}
|
|
168
166
|
|
|
@@ -185,7 +183,7 @@
|
|
|
185
183
|
|
|
186
184
|
parts.push(
|
|
187
185
|
`transition:color ${hoverMs}ms ${hoverEase},fill ${hoverMs}ms ${hoverEase},` +
|
|
188
|
-
`stroke ${hoverMs}ms ${hoverEase},transform ${hoverMs}ms ${hoverEase},opacity ${hoverMs}ms ${hoverEase}
|
|
186
|
+
`stroke ${hoverMs}ms ${hoverEase},transform ${hoverMs}ms ${hoverEase},opacity ${hoverMs}ms ${hoverEase};`,
|
|
189
187
|
);
|
|
190
188
|
|
|
191
189
|
const deg = chevronDeg;
|
|
@@ -211,7 +209,7 @@
|
|
|
211
209
|
if (spin) animations.push(`__icon_spin ${spin} linear infinite`);
|
|
212
210
|
if (wantsPulse)
|
|
213
211
|
animations.push(
|
|
214
|
-
`bz-icon-pulse 1200ms cubic-bezier(.2,.8,.2,1) infinite
|
|
212
|
+
`bz-icon-pulse 1200ms cubic-bezier(.2,.8,.2,1) infinite`,
|
|
215
213
|
);
|
|
216
214
|
if (wantsBounce) animations.push(`bz-icon-bounce 400ms ease infinite`);
|
|
217
215
|
if (wantsWiggle)
|
|
@@ -229,18 +227,20 @@
|
|
|
229
227
|
// A11y — computedTitleId usa el UID de instancia (estable durante todo el ciclo de vida)
|
|
230
228
|
const ariaHidden = $derived(props.decorative ? "true" : undefined);
|
|
231
229
|
const computedTitleId = $derived(
|
|
232
|
-
props.title
|
|
230
|
+
props.title
|
|
231
|
+
? (props.titleId ?? `bz-icon-title-${_instanceUid}`)
|
|
232
|
+
: undefined,
|
|
233
233
|
);
|
|
234
234
|
const ariaLabel = $derived(
|
|
235
|
-
props.decorative ? undefined : props.ariaLabel || undefined
|
|
235
|
+
props.decorative ? undefined : props.ariaLabel || undefined,
|
|
236
236
|
);
|
|
237
237
|
const ariaLabelledby = $derived(
|
|
238
|
-
!props.decorative && props.title ? computedTitleId : undefined
|
|
238
|
+
!props.decorative && props.title ? computedTitleId : undefined,
|
|
239
239
|
);
|
|
240
240
|
|
|
241
241
|
// Tamaño y attrs
|
|
242
242
|
const finalSize = $derived(
|
|
243
|
-
typeof common.size === "number" ? `${common.size}px` : common.size
|
|
243
|
+
typeof common.size === "number" ? `${common.size}px` : common.size,
|
|
244
244
|
);
|
|
245
245
|
|
|
246
246
|
const safeAttrs = $derived.by(() => {
|
|
@@ -278,10 +278,19 @@
|
|
|
278
278
|
return () => controller.destroy();
|
|
279
279
|
});
|
|
280
280
|
|
|
281
|
-
function handleMouseEnter() {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
function
|
|
281
|
+
function handleMouseEnter() {
|
|
282
|
+
internalHovered = true;
|
|
283
|
+
}
|
|
284
|
+
function handleMouseLeave() {
|
|
285
|
+
internalHovered = false;
|
|
286
|
+
internalPressed = false;
|
|
287
|
+
}
|
|
288
|
+
function handleMouseDown() {
|
|
289
|
+
internalPressed = true;
|
|
290
|
+
}
|
|
291
|
+
function handleMouseUp() {
|
|
292
|
+
internalPressed = false;
|
|
293
|
+
}
|
|
285
294
|
</script>
|
|
286
295
|
|
|
287
296
|
<svg
|
|
@@ -298,7 +307,7 @@
|
|
|
298
307
|
aria-label={ariaLabel}
|
|
299
308
|
aria-labelledby={ariaLabelledby}
|
|
300
309
|
focusable="false"
|
|
301
|
-
|
|
310
|
+
{style}
|
|
302
311
|
fill={visual.fill}
|
|
303
312
|
stroke={visual.stroke}
|
|
304
313
|
stroke-width={visual.strokeWidth}
|
|
@@ -318,7 +327,16 @@
|
|
|
318
327
|
{/if}
|
|
319
328
|
<g bind:this={fxLayer} transform={svgTransform}>
|
|
320
329
|
{#if props.loading}
|
|
321
|
-
<circle
|
|
330
|
+
<circle
|
|
331
|
+
cx="12"
|
|
332
|
+
cy="12"
|
|
333
|
+
r="9"
|
|
334
|
+
fill="none"
|
|
335
|
+
stroke="currentColor"
|
|
336
|
+
stroke-width="2.5"
|
|
337
|
+
stroke-dasharray="42 15"
|
|
338
|
+
stroke-linecap="round"
|
|
339
|
+
/>
|
|
322
340
|
{:else}
|
|
323
341
|
{@render props.children?.()}
|
|
324
342
|
{/if}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Bloqueado"}
|
|
13
|
+
title={props.title ?? "Block"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M8.1 21.213q-1.825-.788-3.175-2.138T2.788 15.9 2 12t.788-3.9 2.137-3.175T8.1 2.788 12 2t3.9.788 3.175 2.137T21.213 8.1 22 12t-.788 3.9-2.137 3.175-3.175 2.138T12 22t-3.9-.788M12 20q1.35 0 2.6-.437t2.3-1.263L5.7 7.1q-.825 1.05-1.263 2.3T4 12q0 3.35 2.325 5.675T12 20m6.3-3.1q.825-1.05 1.263-2.3T20 12q0-3.35-2.325-5.675T12 4q-1.35 0-2.6.437T7.1 5.7zM12 12"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Configuración de pantalla"}
|
|
13
|
+
title={props.title ?? "Display Settings"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M7.5 13.75v.5q0 .325.213.538T8.25 15t.538-.213T9 14.25v-2.5q0-.325-.213-.537T8.25 11t-.537.213-.213.537v.5h-.75q-.325 0-.537.213T6 13t.213.538.537.212zm3.25 0h6.5q.325 0 .538-.213T18 13t-.213-.537-.537-.213h-6.5q-.325 0-.537.213T10 13t.213.538.537.212m5.75-4h.75q.325 0 .538-.213T18 9t-.213-.537-.537-.213h-.75v-.5q0-.325-.213-.537T15.75 7t-.537.213T15 7.75v2.5q0 .325.213.538t.537.212.538-.213.212-.537zm-9.75 0h6.5q.325 0 .538-.213T14 9t-.213-.537-.537-.213h-6.5q-.325 0-.537.213T6 9t.213.538.537.212M4 19q-.825 0-1.412-.587T2 17V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v12q0 .825-.587 1.413T20 19h-4v1q0 .425-.288.713T15 21H9q-.425 0-.712-.288T8 20v-1z"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Experimento"}
|
|
13
|
+
title={props.title ?? "Experiment"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M5 21q-1.275 0-1.812-1.137t.262-2.113L9 11V5H8q-.425 0-.712-.288T7 4t.288-.712T8 3h8q.425 0 .713.288T17 4t-.288.713T16 5h-1v6l5.55 6.75q.8.975.263 2.113T19 21zm2-3h10l-3.4-4h-3.2z"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Bandera"}
|
|
13
|
+
title={props.title ?? "Flag"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M7 13v8q0 .425-.288.713T6 22t-.712-.288T5 21V4q0-.425.288-.712T6 3h13.525q.275 0 .488.125t.337.325.162.438-.062.487L19 8l1.45 3.625q.1.25.063.488t-.163.437-.337.325-.488.125z"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="outline"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "GraphQL"}
|
|
13
|
+
title={props.title ?? "GraphQL"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<polygon
|
|
17
|
+
points="12,2 22,8 22,16 12,22 2,16 2,8"
|
|
18
|
+
fill="none"
|
|
19
|
+
stroke="currentColor"
|
|
20
|
+
stroke-width="1.8"
|
|
21
|
+
stroke-linejoin="round"
|
|
22
|
+
/>
|
|
23
|
+
<line x1="2" y1="8" x2="22" y2="16" stroke="currentColor" stroke-width="1.8" />
|
|
24
|
+
<line x1="22" y1="8" x2="2" y2="16" stroke="currentColor" stroke-width="1.8" />
|
|
25
|
+
<line x1="12" y1="2" x2="12" y2="22" stroke="currentColor" stroke-width="1.8" />
|
|
26
|
+
{/snippet}
|
|
27
|
+
</IconBase>
|
package/dist/icons/Heart.svelte
CHANGED
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
ariaLabel={props.ariaLabel ?? "Heart icon"}
|
|
13
13
|
title={props.title ?? ""}
|
|
14
14
|
>
|
|
15
|
-
<path
|
|
16
|
-
d="m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z"
|
|
17
|
-
/>
|
|
18
15
|
<path
|
|
19
16
|
fill="currentColor"
|
|
20
17
|
d="M18.494 3.801c2.095 1.221 3.569 3.7 3.504 6.592C21.86 16.5 13.5 21 12 21s-9.861-4.5-9.998-10.607c-.065-2.892 1.409-5.37 3.504-6.592C7.466 2.66 9.928 2.653 12 4.338c2.072-1.685 4.534-1.679 6.494-.537"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Plugin"}
|
|
13
|
+
title={props.title ?? "Plugin"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M9.5 21v-3L6 14.5V9q0-.825.588-1.412T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3z"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="outline"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Límite de peticiones"}
|
|
13
|
+
title={props.title ?? "Rate Limit"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path
|
|
17
|
+
stroke="currentColor"
|
|
18
|
+
stroke-width="1.8"
|
|
19
|
+
stroke-linecap="round"
|
|
20
|
+
fill="none"
|
|
21
|
+
d="M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48 2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48 2.83-2.83"
|
|
22
|
+
/>
|
|
23
|
+
{/snippet}
|
|
24
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Robot"}
|
|
13
|
+
title={props.title ?? "Robot"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M5 21q-.425 0-.712-.288T4 20v-4q0-.825.588-1.412T6 14h12q.825 0 1.413.588T20 16v4q0 .425-.288.713T19 21zm4-8q-2.075 0-3.537-1.463T4 8t1.463-3.537T9 3h6q2.075 0 3.538 1.463T20 8t-1.463 3.538T15 13zm.713-4.288Q10 8.425 10 8t-.288-.712T9 7t-.712.288T8 8t.288.713T9 9t.713-.288m6 0Q16 8.426 16 8t-.288-.712T15 7t-.712.288T14 8t.288.713T15 9t.713-.288"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Schema"}
|
|
13
|
+
title={props.title ?? "Schema"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M4 21v-2q0-.825.588-1.412T6 17h.5v-2H6q-.825 0-1.412-.587T4 13v-2q0-.825.588-1.412T6 9h.5V7H6q-.825 0-1.412-.587T4 5V3q0-.825.588-1.412T6 1h3q.825 0 1.413.588T11 3v2q0 .825-.587 1.413T9 7h-.5v2H9q.825 0 1.413.588T11 11h3q0-.825.588-1.412T16 9h3q.825 0 1.413.588T21 11v2q0 .825-.587 1.413T19 15h-3q-.825 0-1.412-.587T14 13h-3q0 .825-.587 1.413T9 15h-.5v2H9q.825 0 1.413.588T11 19v2q0 .825-.587 1.413T9 23H6q-.825 0-1.412-.587T4 21"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Escudo con tarjeta"}
|
|
13
|
+
title={props.title ?? "Shield Card"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M13 22q-.825 0-1.412-.587T11 20v-5q0-.825.588-1.412T13 13h8q.825 0 1.413.588T23 15v5q0 .825-.587 1.413T21 22zm0-2h8v-2h-8zm0-4h8v-1h-8zm-9-4.9V5l8-3 8 3v6h-7q-1.65 0-2.825 1.175T9 15v5.35q0 .175.05.35-2.275-1.5-3.662-4.075T4 11.1"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Escudo con candado"}
|
|
13
|
+
title={props.title ?? "Shield Lock"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M12 22q-3.475-.875-5.738-3.988T4 11.1V5l8-3 8 3v6.1q0 3.8-2.262 6.913T12 22m0-2.1q2.6-.825 4.3-3.3t1.7-5.5V6.375l-6-2.25-6 2.25V11.1q0 3.025 1.7 5.5t4.3 3.3M10 16h4q.425 0 .713-.288T15 15v-3q0-.425-.288-.712T14 11v-1q0-.825-.587-1.412T12 8t-1.412.588T10 10v1q-.425 0-.712.288T9 12v3q0 .425.288.713T10 16m1-5v-1q0-.425.288-.712T12 9t.713.288T13 10v1z"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Escudo con toggle"}
|
|
13
|
+
title={props.title ?? "Shield Toggle"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M10 11h4q.825 0 1.413-.587T16 9t-.587-1.412T14 7h-4q-.825 0-1.412.588T8 9t.588 1.413T10 11m3.288-1.287Q13 9.425 13 9t.288-.712T14 8t.713.288T15 9t-.288.713T14 10t-.712-.288M10 16h4q.825 0 1.413-.587T16 14t-.587-1.412T14 12h-4q-.825 0-1.412.588T8 14t.588 1.413T10 16m-.712-1.287Q9 14.425 9 14t.288-.712T10 13t.713.288T11 14t-.288.713T10 15t-.712-.288M12 22q-3.475-.875-5.738-3.988T4 11.1V5l8-3 8 3v6.1q0 3.8-2.262 6.913T12 22"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconBase from "../IconBase.svelte";
|
|
3
|
+
import type { IconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const props: IconProps = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<IconBase
|
|
9
|
+
{...props}
|
|
10
|
+
mode="solid"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
ariaLabel={props.ariaLabel ?? "Webhook"}
|
|
13
|
+
title={props.title ?? "Webhook"}
|
|
14
|
+
>
|
|
15
|
+
{#snippet children()}
|
|
16
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
17
|
+
<path
|
|
18
|
+
fill="currentColor"
|
|
19
|
+
d="M7 21q-2.075 0-3.537-1.463T2 16q0-1.825 1.138-3.187T6 11.1v2.075q-.875.3-1.437 1.075T4 16q0 1.25.875 2.125T7 19t2.125-.875T10 16v-1h5.875q.2-.225.488-.363T17 14.5q.625 0 1.063.438T18.5 16t-.437 1.063T17 17.5q-.35 0-.638-.137T15.876 17H11.9q-.35 1.725-1.713 2.863T7 21m10 0q-1.4 0-2.537-.687T12.675 18.5h2.675q.35.25.775.375T17 19q1.25 0 2.125-.875T20 16t-.875-2.125T17 13q-.5 0-.925.138t-.8.412l-3.05-5.075q-.525-.1-.875-.5T11 7q0-.625.438-1.062T12.5 5.5t1.063.438T14 7v.213q0 .087-.05.212l2.175 3.65q.2-.05.425-.062T17 11q2.075 0 3.538 1.463T22 16t-1.463 3.538T17 21M7 17.5q-.625 0-1.062-.437T5.5 16q0-.55.35-.95t.85-.525l2.35-3.9q-.725-.675-1.138-1.612T7.5 7q0-2.075 1.463-3.537T12.5 2t3.538 1.463T17.5 7h-2q0-1.25-.875-2.125T12.5 4t-2.125.875T9.5 7q0 1.075.65 1.888t1.65 1.037L8.425 15.55q.05.125.063.225T8.5 16q0 .625-.437 1.063T7 17.5"
|
|
20
|
+
/>
|
|
21
|
+
{/snippet}
|
|
22
|
+
</IconBase>
|
|
@@ -198,3 +198,16 @@ export { default as UserPlus } from './UserPlus.svelte';
|
|
|
198
198
|
export { default as Video } from './Video.svelte';
|
|
199
199
|
export { default as Volume } from './Volume.svelte';
|
|
200
200
|
export { default as VolumeOff } from './VolumeOff.svelte';
|
|
201
|
+
export { default as Block } from './Block.svelte';
|
|
202
|
+
export { default as DisplaySettings } from './DisplaySettings.svelte';
|
|
203
|
+
export { default as Experiment } from './Experiment.svelte';
|
|
204
|
+
export { default as Flag } from './Flag.svelte';
|
|
205
|
+
export { default as GraphQL } from './GraphQL.svelte';
|
|
206
|
+
export { default as Plugin } from './Plugin.svelte';
|
|
207
|
+
export { default as RateLimit } from './RateLimit.svelte';
|
|
208
|
+
export { default as Robot } from './Robot.svelte';
|
|
209
|
+
export { default as Schema } from './Schema.svelte';
|
|
210
|
+
export { default as ShieldCard } from './ShieldCard.svelte';
|
|
211
|
+
export { default as ShieldLock } from './ShieldLock.svelte';
|
|
212
|
+
export { default as ShieldToggle } from './ShieldToggle.svelte';
|
|
213
|
+
export { default as Webhook } from './Webhook.svelte';
|
package/dist/icons/components.js
CHANGED
|
@@ -199,3 +199,16 @@ export { default as UserPlus } from './UserPlus.svelte';
|
|
|
199
199
|
export { default as Video } from './Video.svelte';
|
|
200
200
|
export { default as Volume } from './Volume.svelte';
|
|
201
201
|
export { default as VolumeOff } from './VolumeOff.svelte';
|
|
202
|
+
export { default as Block } from './Block.svelte';
|
|
203
|
+
export { default as DisplaySettings } from './DisplaySettings.svelte';
|
|
204
|
+
export { default as Experiment } from './Experiment.svelte';
|
|
205
|
+
export { default as Flag } from './Flag.svelte';
|
|
206
|
+
export { default as GraphQL } from './GraphQL.svelte';
|
|
207
|
+
export { default as Plugin } from './Plugin.svelte';
|
|
208
|
+
export { default as RateLimit } from './RateLimit.svelte';
|
|
209
|
+
export { default as Robot } from './Robot.svelte';
|
|
210
|
+
export { default as Schema } from './Schema.svelte';
|
|
211
|
+
export { default as ShieldCard } from './ShieldCard.svelte';
|
|
212
|
+
export { default as ShieldLock } from './ShieldLock.svelte';
|
|
213
|
+
export { default as ShieldToggle } from './ShieldToggle.svelte';
|
|
214
|
+
export { default as Webhook } from './Webhook.svelte';
|
|
@@ -27,6 +27,10 @@ const _loaders = {
|
|
|
27
27
|
eye: () => import('./Eye.svelte'),
|
|
28
28
|
eyeOff: () => import('./EyeOff.svelte'),
|
|
29
29
|
shield: () => import('./Shield.svelte'),
|
|
30
|
+
shieldCard: () => import('./ShieldCard.svelte'),
|
|
31
|
+
shieldLock: () => import('./ShieldLock.svelte'),
|
|
32
|
+
shieldToggle: () => import('./ShieldToggle.svelte'),
|
|
33
|
+
block: () => import('./Block.svelte'),
|
|
30
34
|
fingerprint: () => import('./Fingerprint.svelte'),
|
|
31
35
|
contact: () => import('./Contact.svelte'),
|
|
32
36
|
security: () => import('./Security.svelte'),
|
|
@@ -133,6 +137,7 @@ const _loaders = {
|
|
|
133
137
|
circleQuestionOutline: () => import('./CircleQuestionOutlined.svelte'),
|
|
134
138
|
star: () => import('./Star.svelte'),
|
|
135
139
|
favorites: () => import('./Favorites.svelte'),
|
|
140
|
+
flag: () => import('./Flag.svelte'),
|
|
136
141
|
heart: () => import('./Heart.svelte'),
|
|
137
142
|
reset: () => import('./Reset.svelte'),
|
|
138
143
|
height: () => import('./Height.svelte'),
|
|
@@ -215,6 +220,14 @@ const _loaders = {
|
|
|
215
220
|
|
|
216
221
|
code: () => import('./Code.svelte'),
|
|
217
222
|
terminal: () => import('./Terminal.svelte'),
|
|
223
|
+
webhook: () => import('./Webhook.svelte'),
|
|
224
|
+
robot: () => import('./Robot.svelte'),
|
|
225
|
+
schema: () => import('./Schema.svelte'),
|
|
226
|
+
plugin: () => import('./Plugin.svelte'),
|
|
227
|
+
experiment: () => import('./Experiment.svelte'),
|
|
228
|
+
displaySettings: () => import('./DisplaySettings.svelte'),
|
|
229
|
+
graphql: () => import('./GraphQL.svelte'),
|
|
230
|
+
rateLimit: () => import('./RateLimit.svelte'),
|
|
218
231
|
|
|
219
232
|
video: () => import('./Video.svelte'),
|
|
220
233
|
microphone: () => import('./Microphone.svelte'),
|
package/dist/icons/registry.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export declare const iconRegistry: {
|
|
|
42
42
|
mode?: import("..").IconMode;
|
|
43
43
|
}, {}, "">;
|
|
44
44
|
readonly shield: Component<import("..").IconProps, {}, "">;
|
|
45
|
+
readonly shieldCard: Component<import("..").IconProps, {}, "">;
|
|
46
|
+
readonly shieldLock: Component<import("..").IconProps, {}, "">;
|
|
47
|
+
readonly shieldToggle: Component<import("..").IconProps, {}, "">;
|
|
45
48
|
readonly fingerprint: Component<import("..").IconProps, {}, "">;
|
|
46
49
|
readonly contact: Component<import("..").IconProps, {}, "">;
|
|
47
50
|
readonly security: Component<import("..").IconProps, {}, "">;
|
|
@@ -172,6 +175,7 @@ export declare const iconRegistry: {
|
|
|
172
175
|
readonly circleQuestionOutline: Component<import("..").IconProps, {}, "">;
|
|
173
176
|
readonly star: Component<import("..").IconProps, {}, "">;
|
|
174
177
|
readonly favorites: Component<import("..").IconProps, {}, "">;
|
|
178
|
+
readonly flag: Component<import("..").IconProps, {}, "">;
|
|
175
179
|
readonly heart: Component<import("..").IconProps, {}, "">;
|
|
176
180
|
readonly reset: Component<import("..").IconProps, {}, "">;
|
|
177
181
|
readonly height: Component<import("..").IconProps, {}, "">;
|
|
@@ -227,6 +231,7 @@ export declare const iconRegistry: {
|
|
|
227
231
|
readonly cloudAlert: Component<import("..").IconProps, {}, "">;
|
|
228
232
|
readonly cloudCheck: Component<import("..").IconProps, {}, "">;
|
|
229
233
|
readonly cloudDownload: Component<import("..").IconProps, {}, "">;
|
|
234
|
+
readonly block: Component<import("..").IconProps, {}, "">;
|
|
230
235
|
readonly blaze: Component<import("..").IconProps, {}, "">;
|
|
231
236
|
readonly earth: Component<import("..").IconProps, {}, "">;
|
|
232
237
|
readonly globe: Component<import("..").IconProps, {}, "">;
|
|
@@ -253,9 +258,17 @@ export declare const iconRegistry: {
|
|
|
253
258
|
readonly layers: Component<import("..").IconProps, {}, "">;
|
|
254
259
|
readonly sliders: Component<import("..").IconProps, {}, "">;
|
|
255
260
|
readonly code: Component<import("..").IconProps, {}, "">;
|
|
261
|
+
readonly rateLimit: Component<import("..").IconProps, {}, "">;
|
|
262
|
+
readonly graphql: Component<import("..").IconProps, {}, "">;
|
|
256
263
|
readonly terminal: Component<import("..").IconProps & {
|
|
257
264
|
mode?: import("..").IconMode;
|
|
258
265
|
}, {}, "">;
|
|
266
|
+
readonly webhook: Component<import("..").IconProps, {}, "">;
|
|
267
|
+
readonly robot: Component<import("..").IconProps, {}, "">;
|
|
268
|
+
readonly schema: Component<import("..").IconProps, {}, "">;
|
|
269
|
+
readonly plugin: Component<import("..").IconProps, {}, "">;
|
|
270
|
+
readonly experiment: Component<import("..").IconProps, {}, "">;
|
|
271
|
+
readonly displaySettings: Component<import("..").IconProps, {}, "">;
|
|
259
272
|
readonly video: Component<import("..").IconProps, {}, "">;
|
|
260
273
|
readonly microphone: Component<import("..").IconProps, {}, "">;
|
|
261
274
|
readonly micOff: Component<import("..").IconProps, {}, "">;
|
package/dist/icons/registry.js
CHANGED
|
@@ -3,6 +3,7 @@ import Alternate from "./Alternate.svelte";
|
|
|
3
3
|
import AnimatedArrowLeft from "./AnimatedArrowLeft.svelte";
|
|
4
4
|
import Attachment from "./Attachment.svelte";
|
|
5
5
|
import Bag from "./Bag.svelte";
|
|
6
|
+
import Block from "./Block.svelte";
|
|
6
7
|
import Bank from "./Bank.svelte";
|
|
7
8
|
import Bell from "./Bell.svelte";
|
|
8
9
|
import Blaze from "./Blaze.svelte";
|
|
@@ -56,6 +57,7 @@ import Exchange from "./Exchange.svelte";
|
|
|
56
57
|
import Eye from "./Eye.svelte";
|
|
57
58
|
import EyeOff from "./EyeOff.svelte";
|
|
58
59
|
import Favorites from "./Favorites.svelte";
|
|
60
|
+
import Flag from "./Flag.svelte";
|
|
59
61
|
import File from "./File.svelte";
|
|
60
62
|
import FileUpdateAnimated from "./FileUploadAnimated.svelte";
|
|
61
63
|
import Filter from "./Filter.svelte";
|
|
@@ -157,9 +159,11 @@ import Desktop from "./Desktop.svelte";
|
|
|
157
159
|
import DoughnutChart from "./DoughnutChart.svelte";
|
|
158
160
|
import Earth from "./Earth.svelte";
|
|
159
161
|
import Globe from "./Globe.svelte";
|
|
162
|
+
import GraphQL from "./GraphQL.svelte";
|
|
160
163
|
import LightHub from "./LightHub.svelte";
|
|
161
164
|
import Link from "./Link.svelte";
|
|
162
165
|
import Power from "./Power.svelte";
|
|
166
|
+
import RateLimit from "./RateLimit.svelte";
|
|
163
167
|
import Receipt from "./Receipt.svelte";
|
|
164
168
|
import Sync from "./Sync.svelte";
|
|
165
169
|
import Wifi from "./Wifi.svelte";
|
|
@@ -179,6 +183,15 @@ import ChevronRight from "./ChevronRight.svelte";
|
|
|
179
183
|
import ChevronUp from "./ChevronUp.svelte";
|
|
180
184
|
import CloudUpload from "./CloudUpload.svelte";
|
|
181
185
|
import Code from "./Code.svelte";
|
|
186
|
+
import DisplaySettings from "./DisplaySettings.svelte";
|
|
187
|
+
import Experiment from "./Experiment.svelte";
|
|
188
|
+
import Plugin from "./Plugin.svelte";
|
|
189
|
+
import Robot from "./Robot.svelte";
|
|
190
|
+
import Schema from "./Schema.svelte";
|
|
191
|
+
import ShieldCard from "./ShieldCard.svelte";
|
|
192
|
+
import ShieldLock from "./ShieldLock.svelte";
|
|
193
|
+
import ShieldToggle from "./ShieldToggle.svelte";
|
|
194
|
+
import Webhook from "./Webhook.svelte";
|
|
182
195
|
import ExternalLink from "./ExternalLink.svelte";
|
|
183
196
|
import Gift from "./Gift.svelte";
|
|
184
197
|
import Grid from "./Grid.svelte";
|
|
@@ -228,6 +241,9 @@ export const iconRegistry = /* @__PURE__ */ {
|
|
|
228
241
|
eye: Eye,
|
|
229
242
|
eyeOff: EyeOff,
|
|
230
243
|
shield: Shield,
|
|
244
|
+
shieldCard: ShieldCard,
|
|
245
|
+
shieldLock: ShieldLock,
|
|
246
|
+
shieldToggle: ShieldToggle,
|
|
231
247
|
fingerprint: Fingerprint,
|
|
232
248
|
contact: Contact,
|
|
233
249
|
security: Security,
|
|
@@ -334,6 +350,7 @@ export const iconRegistry = /* @__PURE__ */ {
|
|
|
334
350
|
circleQuestionOutline: CircleQuestionOutlined,
|
|
335
351
|
star: Star,
|
|
336
352
|
favorites: Favorites,
|
|
353
|
+
flag: Flag,
|
|
337
354
|
heart: Heart,
|
|
338
355
|
reset: Reset,
|
|
339
356
|
height: Height,
|
|
@@ -385,6 +402,7 @@ export const iconRegistry = /* @__PURE__ */ {
|
|
|
385
402
|
cloudCheck: CloudCheck,
|
|
386
403
|
cloudDownload: CloudDownload,
|
|
387
404
|
|
|
405
|
+
block: Block,
|
|
388
406
|
blaze: Blaze,
|
|
389
407
|
earth: Earth,
|
|
390
408
|
globe: Globe,
|
|
@@ -415,7 +433,15 @@ export const iconRegistry = /* @__PURE__ */ {
|
|
|
415
433
|
sliders: Sliders,
|
|
416
434
|
|
|
417
435
|
code: Code,
|
|
436
|
+
rateLimit: RateLimit,
|
|
437
|
+
graphql: GraphQL,
|
|
418
438
|
terminal: Terminal,
|
|
439
|
+
webhook: Webhook,
|
|
440
|
+
robot: Robot,
|
|
441
|
+
schema: Schema,
|
|
442
|
+
plugin: Plugin,
|
|
443
|
+
experiment: Experiment,
|
|
444
|
+
displaySettings: DisplaySettings,
|
|
419
445
|
|
|
420
446
|
video: Video,
|
|
421
447
|
microphone: Microphone,
|
package/dist/icons-api.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ export declare const bzIcons: {
|
|
|
30
30
|
readonly Eye: "eye";
|
|
31
31
|
readonly EyeOff: "eyeOff";
|
|
32
32
|
readonly Shield: "shield";
|
|
33
|
+
readonly ShieldCard: "shieldCard";
|
|
34
|
+
readonly ShieldLock: "shieldLock";
|
|
35
|
+
readonly ShieldToggle: "shieldToggle";
|
|
36
|
+
readonly Block: "block";
|
|
33
37
|
readonly Fingerprint: "fingerprint";
|
|
34
38
|
readonly Contact: "contact";
|
|
35
39
|
readonly Security: "security";
|
|
@@ -195,6 +199,14 @@ export declare const bzIcons: {
|
|
|
195
199
|
readonly Sliders: "sliders";
|
|
196
200
|
readonly Code: "code";
|
|
197
201
|
readonly Terminal: "terminal";
|
|
202
|
+
readonly Webhook: "webhook";
|
|
203
|
+
readonly Robot: "robot";
|
|
204
|
+
readonly Schema: "schema";
|
|
205
|
+
readonly Plugin: "plugin";
|
|
206
|
+
readonly Experiment: "experiment";
|
|
207
|
+
readonly DisplaySettings: "displaySettings";
|
|
208
|
+
readonly GraphQL: "graphql";
|
|
209
|
+
readonly RateLimit: "rateLimit";
|
|
198
210
|
readonly Video: "video";
|
|
199
211
|
readonly Microphone: "microphone";
|
|
200
212
|
readonly MicOff: "micOff";
|
|
@@ -202,5 +214,6 @@ export declare const bzIcons: {
|
|
|
202
214
|
readonly VolumeOff: "volumeOff";
|
|
203
215
|
readonly Percentage: "percentage";
|
|
204
216
|
readonly Gift: "gift";
|
|
217
|
+
readonly Flag: "flag";
|
|
205
218
|
};
|
|
206
219
|
export type BzIconKey = keyof typeof bzIcons;
|
package/dist/icons-api.js
CHANGED
|
@@ -28,6 +28,10 @@ export const bzIcons = {
|
|
|
28
28
|
Eye: "eye",
|
|
29
29
|
EyeOff: "eyeOff",
|
|
30
30
|
Shield: "shield",
|
|
31
|
+
ShieldCard: "shieldCard",
|
|
32
|
+
ShieldLock: "shieldLock",
|
|
33
|
+
ShieldToggle: "shieldToggle",
|
|
34
|
+
Block: "block",
|
|
31
35
|
Fingerprint: "fingerprint",
|
|
32
36
|
Contact: "contact",
|
|
33
37
|
Security: "security",
|
|
@@ -214,6 +218,14 @@ export const bzIcons = {
|
|
|
214
218
|
|
|
215
219
|
Code: "code",
|
|
216
220
|
Terminal: "terminal",
|
|
221
|
+
Webhook: "webhook",
|
|
222
|
+
Robot: "robot",
|
|
223
|
+
Schema: "schema",
|
|
224
|
+
Plugin: "plugin",
|
|
225
|
+
Experiment: "experiment",
|
|
226
|
+
DisplaySettings: "displaySettings",
|
|
227
|
+
GraphQL: "graphql",
|
|
228
|
+
RateLimit: "rateLimit",
|
|
217
229
|
|
|
218
230
|
Video: "video",
|
|
219
231
|
Microphone: "microphone",
|
|
@@ -223,4 +235,5 @@ export const bzIcons = {
|
|
|
223
235
|
|
|
224
236
|
Percentage: "percentage",
|
|
225
237
|
Gift: "gift",
|
|
238
|
+
Flag: "flag",
|
|
226
239
|
};
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -29,8 +29,11 @@ export declare function blazirIconsPlugin(options?: BlazerIconsPluginOptions): {
|
|
|
29
29
|
root?: string;
|
|
30
30
|
}): void;
|
|
31
31
|
buildStart(): void;
|
|
32
|
-
resolveId(id: string, importer?: string): "\0virtual:blazir-icons/registry" | null | undefined;
|
|
33
|
-
load(id: string): string |
|
|
32
|
+
resolveId(id: string, importer?: string): "\0virtual:blazir-icons/registry" | "\0blazir-icons-css" | null | undefined;
|
|
33
|
+
load(id: string): string | {
|
|
34
|
+
code: string;
|
|
35
|
+
moduleSideEffects: boolean;
|
|
36
|
+
} | undefined;
|
|
34
37
|
handleHotUpdate({ file, read, server }: {
|
|
35
38
|
file: string;
|
|
36
39
|
read: () => Promise<string>;
|
package/dist/plugin/index.js
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
* plugins: [blazirIconsPlugin()]
|
|
13
13
|
*/
|
|
14
14
|
import { readFileSync, readdirSync } from 'node:fs';
|
|
15
|
-
import { join } from 'node:path';
|
|
15
|
+
import { dirname, join } from 'node:path';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
16
17
|
// ============================================================================
|
|
17
18
|
// MAPA COMPLETO: clave del registry → nombre del archivo .svelte
|
|
18
19
|
// (necesario porque no siempre coinciden, e.g. search → MagnifiyingGlass)
|
|
@@ -177,6 +178,7 @@ const DYNAMIC_RE = /\bname=\{(?!["'])/;
|
|
|
177
178
|
// ID del módulo virtual que reemplaza al registry completo
|
|
178
179
|
const VIRTUAL_ID = 'virtual:blazir-icons/registry';
|
|
179
180
|
const RESOLVED_ID = '\0virtual:blazir-icons/registry';
|
|
181
|
+
const RESOLVED_CSS_ID = '\0blazir-icons-css';
|
|
180
182
|
// ============================================================================
|
|
181
183
|
// PLUGIN
|
|
182
184
|
// ============================================================================
|
|
@@ -272,6 +274,8 @@ export function blazirIconsPlugin(options = {}) {
|
|
|
272
274
|
},
|
|
273
275
|
// Intercepta la importación del registry desde Icon.svelte
|
|
274
276
|
resolveId(id, importer) {
|
|
277
|
+
if (id.includes('icon-animation.css'))
|
|
278
|
+
return RESOLVED_CSS_ID;
|
|
275
279
|
if (id === VIRTUAL_ID)
|
|
276
280
|
return RESOLVED_ID;
|
|
277
281
|
// Solo interceptar cuando podemos optimizar:
|
|
@@ -290,6 +294,27 @@ export function blazirIconsPlugin(options = {}) {
|
|
|
290
294
|
},
|
|
291
295
|
// Genera el módulo virtual con solo los íconos detectados
|
|
292
296
|
load(id) {
|
|
297
|
+
if (id === RESOLVED_CSS_ID) {
|
|
298
|
+
const cssPath = join(dirname(fileURLToPath(import.meta.url)), '../icon-animation.css');
|
|
299
|
+
const css = readFileSync(cssPath, 'utf-8');
|
|
300
|
+
const code = `
|
|
301
|
+
const css = ${JSON.stringify(css)};
|
|
302
|
+
if (typeof document !== 'undefined' && !document.getElementById('blazir-icons-css')) {
|
|
303
|
+
const el = document.createElement('style');
|
|
304
|
+
el.id = 'blazir-icons-css';
|
|
305
|
+
el.textContent = css;
|
|
306
|
+
const nonce =
|
|
307
|
+
document.querySelector('meta[property="csp-nonce"]')?.getAttribute('content') ??
|
|
308
|
+
document.currentScript?.nonce ??
|
|
309
|
+
'';
|
|
310
|
+
if (nonce) el.nonce = nonce;
|
|
311
|
+
document.head.appendChild(el);
|
|
312
|
+
}
|
|
313
|
+
`;
|
|
314
|
+
// moduleSideEffects: true evita que Rollup elimine este módulo por tree-shaking.
|
|
315
|
+
// El sideEffects["**/*.css"] del package.json no cubre módulos virtuales.
|
|
316
|
+
return { code, moduleSideEffects: true };
|
|
317
|
+
}
|
|
293
318
|
if (id !== RESOLVED_ID)
|
|
294
319
|
return;
|
|
295
320
|
ensureScanned();
|
package/package.json
CHANGED
|
@@ -57,6 +57,11 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"svelte": "^5.0.0"
|
|
59
59
|
},
|
|
60
|
+
"pnpm": {
|
|
61
|
+
"onlyBuiltDependencies": [
|
|
62
|
+
"esbuild"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
60
65
|
"private": false,
|
|
61
66
|
"publishConfig": {
|
|
62
67
|
"access": "public"
|
|
@@ -83,5 +88,5 @@
|
|
|
83
88
|
"svelte": "./dist/index.js",
|
|
84
89
|
"type": "module",
|
|
85
90
|
"types": "./dist/index.d.ts",
|
|
86
|
-
"version": "1.4.
|
|
91
|
+
"version": "1.4.2"
|
|
87
92
|
}
|