@genarou/blazir-icons 1.1.5 → 1.1.9
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/Icon.svelte +20 -12
- package/dist/IconBase.svelte +99 -40
- package/dist/icons/Blaze.svelte +25 -0
- package/dist/icons/Blaze.svelte.d.ts +4 -0
- package/dist/icons/Box.svelte +25 -0
- package/dist/icons/Box.svelte.d.ts +4 -0
- package/dist/icons/CheckO.svelte +15 -6
- package/dist/icons/CircleExclamation.svelte +18 -4
- package/dist/icons/CircleInfo.svelte +13 -7
- package/dist/icons/CircleQuestion.svelte +18 -4
- package/dist/icons/Close.svelte +12 -2
- package/dist/icons/Copy.svelte +25 -0
- package/dist/icons/Copy.svelte.d.ts +4 -0
- package/dist/icons/Csv.svelte +25 -0
- package/dist/icons/Csv.svelte.d.ts +4 -0
- package/dist/icons/Excel.svelte +23 -16
- package/dist/icons/Facebook.svelte +25 -0
- package/dist/icons/Facebook.svelte.d.ts +4 -0
- package/dist/icons/Favorites.svelte +25 -0
- package/dist/icons/Favorites.svelte.d.ts +4 -0
- package/dist/icons/Google.svelte +12 -15
- package/dist/icons/Lock.svelte +18 -4
- package/dist/icons/LockOpen.svelte +18 -7
- package/dist/icons/Logout.svelte +18 -3
- package/dist/icons/Png.svelte +24 -0
- package/dist/icons/Png.svelte.d.ts +4 -0
- package/dist/icons/Powerpoint.svelte +25 -0
- package/dist/icons/Powerpoint.svelte.d.ts +4 -0
- package/dist/icons/Shield.svelte +30 -0
- package/dist/icons/Shield.svelte.d.ts +4 -0
- package/dist/icons/Star.svelte +25 -0
- package/dist/icons/Star.svelte.d.ts +4 -0
- package/dist/icons/Word.svelte +25 -0
- package/dist/icons/Word.svelte.d.ts +4 -0
- package/dist/icons/Xml.svelte +25 -0
- package/dist/icons/Xml.svelte.d.ts +4 -0
- package/dist/icons/Zip.svelte +26 -0
- package/dist/icons/Zip.svelte.d.ts +4 -0
- package/dist/icons/registry.d.ts +13 -0
- package/dist/icons/registry.js +26 -0
- package/dist/icons-api.d.ts +35 -35
- package/dist/icons-api.js +0 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +19 -2
- package/dist/styles/hybrid-inject.d.ts +3 -3
- package/dist/styles/hybrid-inject.js +46 -52
- package/dist/types.d.ts +1 -1
- package/dist/utils/animations.d.ts +2 -2
- package/dist/utils/animations.js +4 -8
- package/package.json +1 -1
package/dist/Icon.svelte
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<!-- src/lib/Icon.svelte -->
|
|
2
1
|
<script lang="ts">
|
|
3
2
|
import { iconRegistry, type IconName } from "./icons/registry";
|
|
4
|
-
import type { IconProps } from "./types";
|
|
3
|
+
import type { IconComponent, IconProps } from "./types";
|
|
5
4
|
import { coerceSize } from "./utils/defaults";
|
|
6
5
|
|
|
7
6
|
let {
|
|
8
7
|
name,
|
|
9
|
-
size = 24,
|
|
10
|
-
color
|
|
8
|
+
size = 24,
|
|
9
|
+
color,
|
|
11
10
|
stroke,
|
|
12
11
|
strokeWidth,
|
|
13
12
|
fill,
|
|
13
|
+
class: classAttr = "",
|
|
14
14
|
className = "",
|
|
15
15
|
ariaLabel,
|
|
16
16
|
title = "",
|
|
@@ -30,16 +30,24 @@
|
|
|
30
30
|
...rest
|
|
31
31
|
}: { name: IconName } & Partial<IconProps> = $props();
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
// ✅ Comp tipado como el mismo tipo que usa tu registry
|
|
34
|
+
const Comp: IconComponent | undefined = $derived(iconRegistry?.[name]);
|
|
35
|
+
|
|
36
|
+
// ❌ ANTES: const colorOverrides = $derived(() => color !== undefined ? {...} : {...})
|
|
37
|
+
// ✅ AHORA:
|
|
38
|
+
const colorOverrides = $derived(
|
|
39
|
+
color !== undefined
|
|
40
|
+
? { color, stroke: stroke ?? "none", fill: fill ?? color }
|
|
41
|
+
: { stroke, fill }
|
|
42
|
+
);
|
|
34
43
|
|
|
35
|
-
const passProps = $derived(() => ({
|
|
36
|
-
|
|
44
|
+
// ❌ ANTES: const passProps = $derived(() => ({ ... }))
|
|
45
|
+
// ✅ AHORA:
|
|
46
|
+
const passProps = $derived({
|
|
37
47
|
size: coerceSize(size, 24),
|
|
38
|
-
|
|
39
|
-
stroke: color ? (stroke ?? "none") : stroke,
|
|
40
|
-
fill: color ? (fill ?? color) : fill,
|
|
48
|
+
...colorOverrides,
|
|
41
49
|
strokeWidth,
|
|
42
|
-
className,
|
|
50
|
+
className: classAttr || className,
|
|
43
51
|
ariaLabel,
|
|
44
52
|
title,
|
|
45
53
|
rotate,
|
|
@@ -62,7 +70,7 @@
|
|
|
62
70
|
: animationDelay,
|
|
63
71
|
animationEasing,
|
|
64
72
|
...rest,
|
|
65
|
-
})
|
|
73
|
+
});
|
|
66
74
|
</script>
|
|
67
75
|
|
|
68
76
|
{#if Comp}
|
package/dist/IconBase.svelte
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- 📁 src/lib/IconBase.svelte -->
|
|
1
2
|
<script lang="ts">
|
|
2
3
|
import type { IconMode, IconProps } from "./types.js";
|
|
3
4
|
import {
|
|
@@ -11,58 +12,122 @@
|
|
|
11
12
|
normalizeClass,
|
|
12
13
|
} from "./utils/defaults.js";
|
|
13
14
|
|
|
15
|
+
// Props del icono + modo visual
|
|
14
16
|
const props: IconProps & { mode?: IconMode } = $props();
|
|
15
17
|
|
|
18
|
+
// ====== Derivados visuales / clases / defaults ======
|
|
16
19
|
const mode = $derived(props.mode ?? "solid");
|
|
17
20
|
const klass = $derived(normalizeClass(props));
|
|
18
|
-
const common = $derived(commonDefaults(props)); //
|
|
19
|
-
const visual = $derived(modeDefaults(mode, props));
|
|
21
|
+
const common = $derived(commonDefaults(props)); // size, viewBox, preserveAspectRatio
|
|
22
|
+
const visual = $derived(modeDefaults(mode, props)); // lo que ya tienes
|
|
20
23
|
|
|
21
24
|
const animationClasses = $derived(getAnimationClasses(props).join(" "));
|
|
22
|
-
const
|
|
23
|
-
const animationStyle = $derived(getAnimationStyle(props));
|
|
25
|
+
const timingStyle = $derived(getAnimationStyle(props)); // duration/delay/easing
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
// ⚠️ Solo CSS transforms semánticos (chevron/morph/slide).
|
|
28
|
+
// Quitamos rotate/flip del combine para no duplicar (rotate/flip van en <g transform>).
|
|
29
|
+
const cssTransformOnly = $derived(
|
|
30
|
+
combineTransforms({
|
|
31
|
+
...props,
|
|
32
|
+
rotate: undefined as any,
|
|
33
|
+
flipH: false,
|
|
34
|
+
flipV: false,
|
|
35
|
+
})
|
|
31
36
|
);
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
// ✅ Sólo variable para spin (sin animation: inline)
|
|
39
|
+
const spinStyle = $derived(
|
|
40
|
+
(() => {
|
|
41
|
+
const s = props.spin;
|
|
42
|
+
if (!s) return "";
|
|
43
|
+
const dur = s === true ? "1s" : typeof s === "number" ? `${s}ms` : s;
|
|
44
|
+
return `--bz-spin: ${dur};`;
|
|
45
|
+
})()
|
|
37
46
|
);
|
|
38
47
|
|
|
39
|
-
|
|
40
|
-
const s = props.spin;
|
|
41
|
-
if (!s) return "";
|
|
42
|
-
const dur = s === true ? "1s" : typeof s === "number" ? `${s}ms` : s;
|
|
43
|
-
return `animation: __icon_spin ${dur} linear infinite;`;
|
|
44
|
-
});
|
|
45
|
-
|
|
48
|
+
// Estilo final inline (añadimos transform-origin/box, timing y variable de spin)
|
|
46
49
|
const style = $derived(
|
|
47
|
-
`${props.style || ""}${props.style && !props.style.endsWith(";") ? ";" : ""}
|
|
50
|
+
`${props.style || ""}${props.style && !props.style.endsWith(";") ? ";" : ""}` +
|
|
51
|
+
(cssTransformOnly ? `transform: ${cssTransformOnly};` : "") +
|
|
52
|
+
`transform-origin: center;` + // deja 'transform-box' fuera si TS te marca error
|
|
53
|
+
(spinStyle ? spinStyle : "") +
|
|
54
|
+
(timingStyle ? timingStyle : "") +
|
|
55
|
+
(props.color ? `color: ${props.color};` : "") // ← ★ clave para currentColor
|
|
48
56
|
);
|
|
49
57
|
|
|
50
|
-
//
|
|
58
|
+
// A11y derivados
|
|
59
|
+
const ariaHidden = $derived(props.decorative ? "true" : undefined);
|
|
60
|
+
const ariaLabel = $derived(
|
|
61
|
+
props.decorative ? undefined : props.ariaLabel || undefined
|
|
62
|
+
);
|
|
63
|
+
const ariaLabelledby = $derived(
|
|
64
|
+
!props.decorative && props.title ? props.titleId : undefined
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
// Size final como string para width/height
|
|
51
68
|
const finalSize = $derived(
|
|
52
69
|
typeof common.size === "number" ? `${common.size}px` : common.size
|
|
53
70
|
);
|
|
54
71
|
|
|
55
|
-
//
|
|
72
|
+
// Atributos seguros (evitar que pisen width/height del svg)
|
|
56
73
|
const safeAttrs = $derived(() => {
|
|
57
74
|
const a = { ...(props.attrs ?? {}) } as Record<string, any>;
|
|
58
75
|
delete a.width;
|
|
59
|
-
delete a.height;
|
|
76
|
+
delete a.height;
|
|
60
77
|
return a;
|
|
61
78
|
});
|
|
62
79
|
|
|
63
80
|
const finalClass = $derived(
|
|
64
81
|
`${klass} ${animationClasses} ${props.chevronState ? "bz-icon-chevron" : ""}`.trim()
|
|
65
82
|
);
|
|
83
|
+
|
|
84
|
+
// ====== ROTATE / FLIPS en <g transform> (SVG nativo, centrado) ======
|
|
85
|
+
function getViewBoxCenter(vb: string) {
|
|
86
|
+
const parts = vb.trim().split(/\s+/).map(Number);
|
|
87
|
+
const [minX, minY, w, h] = parts.length === 4 ? parts : [0, 0, 24, 24];
|
|
88
|
+
return { cx: minX + w / 2, cy: minY + h / 2 };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const { cx, cy } = $derived(getViewBoxCenter(common.viewBox));
|
|
92
|
+
|
|
93
|
+
const svgTransform = $derived(() => {
|
|
94
|
+
const cmds: string[] = [];
|
|
95
|
+
|
|
96
|
+
// rotate
|
|
97
|
+
if (props.rotate != null) {
|
|
98
|
+
const r =
|
|
99
|
+
typeof props.rotate === "number"
|
|
100
|
+
? props.rotate
|
|
101
|
+
: parseFloat(String(props.rotate));
|
|
102
|
+
if (!Number.isNaN(r)) cmds.push(`rotate(${r} ${cx} ${cy})`);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// flips
|
|
106
|
+
if (props.flipH || props.flipV) {
|
|
107
|
+
const sx = props.flipH ? -1 : 1;
|
|
108
|
+
const sy = props.flipV ? -1 : 1;
|
|
109
|
+
cmds.push(
|
|
110
|
+
`translate(${cx} ${cy}) scale(${sx} ${sy}) translate(${-cx} ${-cy})`
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return cmds.join(" ");
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
const visualColor = $derived(() => {
|
|
118
|
+
if (!props.color) return visual;
|
|
119
|
+
|
|
120
|
+
const v = { ...visual };
|
|
121
|
+
|
|
122
|
+
if (mode === "solid") {
|
|
123
|
+
v.fill = props.color; // ← Fuerza el color aquí
|
|
124
|
+
} else {
|
|
125
|
+
v.stroke = props.color;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
console.log("Final visual color:", v); // ← Debug temporal
|
|
129
|
+
return v;
|
|
130
|
+
});
|
|
66
131
|
</script>
|
|
67
132
|
|
|
68
133
|
<svg
|
|
@@ -74,27 +139,21 @@
|
|
|
74
139
|
preserveAspectRatio={common.preserveAspectRatio}
|
|
75
140
|
class={finalClass}
|
|
76
141
|
role="img"
|
|
77
|
-
aria-hidden={
|
|
78
|
-
aria-label={
|
|
79
|
-
aria-labelledby={
|
|
142
|
+
aria-hidden={ariaHidden}
|
|
143
|
+
aria-label={ariaLabel}
|
|
144
|
+
aria-labelledby={ariaLabelledby}
|
|
80
145
|
focusable="false"
|
|
81
146
|
{style}
|
|
82
|
-
fill={
|
|
83
|
-
stroke={
|
|
84
|
-
stroke-width={
|
|
147
|
+
fill={visualColor().fill}
|
|
148
|
+
stroke={visualColor().stroke}
|
|
149
|
+
stroke-width={visualColor().strokeWidth}
|
|
85
150
|
stroke-linecap={props.strokeLinecap}
|
|
86
151
|
stroke-linejoin={props.strokeLinejoin}
|
|
87
152
|
vector-effect={props.nonScalingStroke ? "non-scaling-stroke" : undefined}
|
|
88
153
|
data-testid={props.testId}
|
|
89
154
|
>
|
|
90
155
|
{#if props.title}<title id={props.titleId}>{props.title}</title>{/if}
|
|
91
|
-
{
|
|
156
|
+
<g transform={svgTransform()}>
|
|
157
|
+
{@render props.children?.()}
|
|
158
|
+
</g>
|
|
92
159
|
</svg>
|
|
93
|
-
|
|
94
|
-
<style>
|
|
95
|
-
@keyframes __icon_spin {
|
|
96
|
-
to {
|
|
97
|
-
transform: rotate(360deg);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- src/lib/icons/Leaf.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import IconBase from "../IconBase.svelte";
|
|
4
|
+
import type { IconProps } from "../types";
|
|
5
|
+
|
|
6
|
+
const props: IconProps = $props();
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Leaf");
|
|
8
|
+
const title = $derived(props.title ?? "");
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M12.063 2.065a.67.67 0 0 0-.759.149a.8.8 0 0 0-.205.738c.099.44.151.9.151 1.37c0 1.076-.271 1.83-.738 2.455c-.474.635-1.16 1.152-2.027 1.735a.3.3 0 0 0-.038.031l-.105.106a6.75 6.75 0 1 0 9.685 2.63a.25.25 0 0 0-.413-.05l-.208.241c-.878 1.026-1.587 1.855-3.04 2.225c-.062.015-.1.004-.127-.013a.24.24 0 0 1-.091-.124a.41.41 0 0 1 .074-.414c.777-.843 1.329-1.987 1.526-3.614c.37-3.048-1.015-6.294-3.685-7.465"
|
|
24
|
+
/>
|
|
25
|
+
</IconBase>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- src/lib/icons/Archive.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import IconBase from "../IconBase.svelte";
|
|
4
|
+
import type { IconProps } from "../types";
|
|
5
|
+
|
|
6
|
+
const props: IconProps = $props();
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Archive");
|
|
8
|
+
const title = $derived(props.title ?? "");
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M7.245 3.356c.372-.107.766-.106 1.267-.106h6.976c.5 0 .895 0 1.267.106c.328.093.636.247.907.453c.309.234.545.55.846.95l1.487 1.984c.204.272.364.485.48.726q.156.32.224.67c.051.263.051.53.051.87v7.822c0 .534 0 .98-.03 1.344c-.03.38-.098.736-.27 1.073a2.75 2.75 0 0 1-1.201 1.202c-.338.172-.694.24-1.074.27c-.364.03-.81.03-1.344.03H7.17c-.535 0-.98 0-1.345-.03c-.38-.03-.736-.098-1.073-.27a2.75 2.75 0 0 1-1.202-1.2c-.172-.338-.24-.694-.27-1.074c-.03-.364-.03-.81-.03-1.344V9.008c0-.339 0-.606.051-.869a2.8 2.8 0 0 1 .223-.67c.117-.24.277-.454.481-.726L5.493 4.76c.3-.401.536-.717.845-.95c.271-.207.579-.36.907-.454M10.5 12.5a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1V8.75h6.499a2.5 2.5 0 0 0-.036-.467a2 2 0 0 0-.163-.487c-.074-.154-.176-.296-.363-.546h-6.03l-.283-2.258a1.133 1.133 0 0 0-2.248 0l-.282 2.258H4.563c-.187.25-.289.392-.363.546a2 2 0 0 0-.163.487a2.5 2.5 0 0 0-.036.467H10.5zM6 17a1 1 0 0 0 1 1h3a1 1 0 1 0 0-2H7a1 1 0 0 0-1 1"
|
|
24
|
+
/>
|
|
25
|
+
</IconBase>
|
package/dist/icons/CheckO.svelte
CHANGED
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
import type { IconProps } from "../types";
|
|
5
5
|
|
|
6
6
|
const props: IconProps = $props();
|
|
7
|
-
const ariaLabel = $derived(props.ariaLabel ?? "
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Check Circle");
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<IconBase
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
12
21
|
<path
|
|
13
|
-
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M15.53 10.53a.75.75 0 1 0-1.06-1.06L11 12.94l-1.47-1.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0z"
|
|
14
24
|
/>
|
|
15
25
|
<path
|
|
16
|
-
fill
|
|
17
|
-
|
|
18
|
-
d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12m11 9a9 9 0 1 1 0-18 9 9 0 0 1 0 18"
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
d="M12 20.75a8.75 8.75 0 1 1 0-17.5a8.75 8.75 0 0 1 0 17.5M4.75 12a7.25 7.25 0 1 0 14.5 0a7.25 7.25 0 0 0-14.5 0"
|
|
19
28
|
/>
|
|
20
29
|
</IconBase>
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
<!-- src/lib/icons/
|
|
1
|
+
<!-- src/lib/icons/Warning.svelte -->
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
import IconBase from "../IconBase.svelte";
|
|
4
4
|
import type { IconProps } from "../types";
|
|
5
5
|
|
|
6
6
|
const props: IconProps = $props();
|
|
7
|
-
const ariaLabel = $derived(props.ariaLabel ?? "
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Warning");
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<IconBase
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
12
21
|
<path
|
|
13
|
-
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M12 7c-.736 0-1.313.649-1.244 1.4l.494 4.15a.76.76 0 0 0 .75.7a.76.76 0 0 0 .75-.7l.494-4.15C13.314 7.65 12.736 7 12 7m0 10a1.25 1.25 0 1 0 0-2.5a1.25 1.25 0 0 0 0 2.5"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
d="M12 4.5a7.5 7.5 0 1 0 0 15a7.5 7.5 0 0 0 0-15M3.5 12a8.5 8.5 0 1 1 17 0a8.5 8.5 0 0 1-17 0"
|
|
14
28
|
/>
|
|
15
29
|
</IconBase>
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
<!-- src/lib/icons/
|
|
1
|
+
<!-- src/lib/icons/Info.svelte -->
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
import IconBase from "../IconBase.svelte";
|
|
4
4
|
import type { IconProps } from "../types";
|
|
5
5
|
|
|
6
6
|
const props: IconProps = $props();
|
|
7
|
-
const ariaLabel = $derived(props.ariaLabel ?? "Info
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Info");
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<IconBase
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
15
21
|
<path
|
|
16
22
|
fill="currentColor"
|
|
17
|
-
d="
|
|
23
|
+
d="M12 3.75a8.25 8.25 0 1 0 0 16.5a8.25 8.25 0 0 0 0-16.5M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75s-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12M12 7.75a.25.25 0 1 0 0 .5a.25.25 0 0 0 0-.5M10.25 8a1.75 1.75 0 1 1 3.5 0a1.75 1.75 0 0 1-3.5 0m1.5 4.401l-.334.223a.75.75 0 1 1-.832-1.248l.723-.482a1.25 1.25 0 0 1 1.943 1.04v3.816H14a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75z"
|
|
18
24
|
/>
|
|
19
25
|
</IconBase>
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
<!-- src/lib/icons/
|
|
1
|
+
<!-- src/lib/icons/HelpCircle.svelte -->
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
import IconBase from "../IconBase.svelte";
|
|
4
4
|
import type { IconProps } from "../types";
|
|
5
5
|
|
|
6
6
|
const props: IconProps = $props();
|
|
7
|
-
const ariaLabel = $derived(props.ariaLabel ?? "
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Help Circle");
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<IconBase
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
12
21
|
<path
|
|
13
|
-
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M12 8.75c-.69 0-1.25.56-1.25 1.25v.107a.75.75 0 1 1-1.5 0V10A2.75 2.75 0 0 1 12 7.25h.116a2.634 2.634 0 0 1 1.714 4.633l-.77.66a.9.9 0 0 0-.31.674v.533a.75.75 0 0 1-1.5 0v-.533c0-.697.304-1.359.833-1.812l.771-.66a1.134 1.134 0 0 0-.738-1.995zM12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
d="M3.25 12a8.75 8.75 0 1 1 17.5 0a8.75 8.75 0 0 1-17.5 0M12 4.75a7.25 7.25 0 1 0 0 14.5a7.25 7.25 0 0 0 0-14.5"
|
|
14
28
|
/>
|
|
15
29
|
</IconBase>
|
package/dist/icons/Close.svelte
CHANGED
|
@@ -8,8 +8,18 @@
|
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
|
-
<IconBase
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
12
21
|
<path
|
|
13
|
-
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M17.127 6.873a1.25 1.25 0 0 1 0 1.768L13.767 12l3.36 3.359a1.25 1.25 0 1 1-1.768 1.768L12 13.767l-3.359 3.36a1.25 1.25 0 1 1-1.768-1.768L10.233 12l-3.36-3.359a1.25 1.25 0 0 1 1.768-1.768L12 10.233l3.359-3.36a1.25 1.25 0 0 1 1.768 0"
|
|
14
24
|
/>
|
|
15
25
|
</IconBase>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- src/lib/icons/Copy.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import IconBase from "../IconBase.svelte";
|
|
4
|
+
import type { IconProps } from "../types";
|
|
5
|
+
|
|
6
|
+
const props: IconProps = $props();
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Copy");
|
|
8
|
+
const title = $derived(props.title ?? "");
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M13.569 4.25h.225c1.118 0 1.83 0 2.435.162a4.75 4.75 0 0 1 3.36 3.359c.161.605.161 1.317.161 2.435v1.624c0 .535 0 .98-.03 1.345c-.03.38-.098.736-.27 1.073a2.75 2.75 0 0 1-1.201 1.202c-.338.172-.694.24-1.074.27c-.365.03-.81.03-1.344.03h-1.662c-.534 0-.98 0-1.344-.03c-.38-.03-.736-.098-1.073-.27a2.75 2.75 0 0 1-1.202-1.201c-.172-.338-.24-.694-.27-1.074c-.03-.365-.03-.81-.03-1.345V7.57c0-.524 0-.929.094-1.28a2.75 2.75 0 0 1 1.944-1.945c.352-.095.757-.094 1.281-.094m.098 1.5c-.669 0-.856.006-.99.043a1.25 1.25 0 0 0-.884.883c-.037.135-.043.322-.043.99V11.8c0 .572 0 .957.025 1.252c.023.288.065.425.111.516c.12.235.311.426.547.546c.09.046.227.088.515.111c.295.024.68.025 1.252.025h1.6c.572 0 .957 0 1.252-.025c.288-.023.425-.065.515-.111a1.25 1.25 0 0 0 .547-.546c.046-.091.088-.228.111-.515c.024-.296.025-.68.025-1.253v-1.467c0-.446 0-.798-.006-1.083H16.5a1.75 1.75 0 0 1-1.75-1.75V5.756a62 62 0 0 0-1.083-.006M16.25 6v1.5c0 .138.112.25.25.25H18A3.26 3.26 0 0 0 16.25 6M8.496 8.25H8.5a.75.75 0 0 1 0 1.5c-.25 0-.727 0-1.19.026a7 7 0 0 0-.622.058a2 2 0 0 0-.255.052a1.25 1.25 0 0 0-.547.547c-.046.09-.088.227-.111.515c-.024.295-.025.68-.025 1.252v3.6c0 .572 0 .957.025 1.252c.023.288.065.425.111.515c.12.236.311.427.547.547c.09.046.227.088.514.111c.296.024.68.025 1.253.025h1.6c.572 0 .957 0 1.252-.025c.288-.023.425-.065.516-.111a1.25 1.25 0 0 0 .546-.547c.06-.119.098-.262.118-.39A2 2 0 0 0 12.25 17v-.004a.75.75 0 0 1 1.5.005H13h.75v.044l-.005.087a4 4 0 0 1-.031.279c-.035.219-.106.53-.264.838a2.75 2.75 0 0 1-1.201 1.202c-.338.172-.694.24-1.074.27c-.365.03-.81.03-1.345.03H8.17c-.535 0-.98 0-1.345-.03c-.38-.03-.736-.098-1.073-.27A2.75 2.75 0 0 1 4.55 18.25c-.172-.338-.24-.694-.27-1.074c-.03-.365-.03-.81-.03-1.345v-3.66c0-.535 0-.98.03-1.345c.03-.38.098-.736.27-1.073A2.75 2.75 0 0 1 5.752 8.55c.224-.115.502-.168.716-.2c.239-.035.505-.057.759-.072c.507-.028 1.019-.028 1.27-.028m3.754 8.745V17z"
|
|
24
|
+
/>
|
|
25
|
+
</IconBase>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- src/lib/icons/CSV.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import IconBase from "../IconBase.svelte";
|
|
4
|
+
import type { IconProps } from "../types";
|
|
5
|
+
|
|
6
|
+
const props: IconProps = $props();
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "CSV");
|
|
8
|
+
const title = $derived(props.title ?? "");
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M5.75 15H8q.325 0 .538-.213t.212-.537t-.213-.537T8 13.5H6.25v-3H8q.325 0 .538-.213t.212-.537t-.213-.537T8 9H5.75q-.425 0-.712.288T4.75 10v4q0 .425.288.713T5.75 15m4.65 0h2.25q.425 0 .713-.288T13.65 14v-1.5q0-.425-.288-.788t-.712-.362h-1.5v-.85h1.75q.325 0 .538-.212t.212-.538t-.213-.537T12.9 9h-2.25q-.425 0-.712.288T9.65 10v1.5q0 .425.288.763t.712.337h1.5v.9H10.4q-.325 0-.537.213t-.213.537t.213.538t.537.212m6.6-2.55l-.85-2.925q-.075-.225-.262-.375T15.45 9q-.35 0-.562.287t-.113.638l1.325 4.55q.075.225.263.375t.437.15h.4q.25 0 .438-.15t.262-.375l1.325-4.55q.1-.35-.113-.638T18.55 9q-.25 0-.437.15t-.263.375zM4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z"
|
|
24
|
+
/>
|
|
25
|
+
</IconBase>
|
package/dist/icons/Excel.svelte
CHANGED
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
<!-- src/lib/icons/
|
|
1
|
+
<!-- src/lib/icons/DeleteDocument.svelte -->
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
import IconBase from "../IconBase.svelte";
|
|
4
4
|
import type { IconProps } from "../types";
|
|
5
5
|
|
|
6
6
|
const props: IconProps = $props();
|
|
7
|
-
const ariaLabel = $derived(props.ariaLabel ?? "Document
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Delete Document");
|
|
8
8
|
const title = $derived(props.title ?? "");
|
|
9
|
-
|
|
10
|
-
// Evita colisiones de <mask> si hay múltiples instancias
|
|
11
|
-
const maskId = $state(
|
|
12
|
-
`bz-doc-close-${Math.random().toString(36).slice(2, 9)}`
|
|
13
|
-
);
|
|
14
9
|
</script>
|
|
15
10
|
|
|
16
|
-
<IconBase
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
17
21
|
<defs>
|
|
18
|
-
<mask id=
|
|
19
|
-
<g fill="none" stroke-linecap="round" stroke-width="
|
|
22
|
+
<mask id="delete-document-mask">
|
|
23
|
+
<g fill="none" stroke-linecap="round" stroke-width="2">
|
|
20
24
|
<path
|
|
21
25
|
stroke="#fff"
|
|
22
26
|
stroke-linejoin="round"
|
|
23
|
-
d="
|
|
27
|
+
d="M4 7.5V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5"
|
|
24
28
|
/>
|
|
25
|
-
<path stroke="#fff" d="
|
|
29
|
+
<path stroke="#fff" d="M15.5 7.5h1.5m-3 4h3m-3 4h3" />
|
|
26
30
|
<path
|
|
27
31
|
fill="#fff"
|
|
28
32
|
stroke="#fff"
|
|
29
33
|
stroke-linejoin="round"
|
|
30
|
-
d="
|
|
34
|
+
d="M2 7.5h9v9H2z"
|
|
31
35
|
/>
|
|
32
|
-
<path stroke="#000" stroke-linejoin="round" d="
|
|
36
|
+
<path stroke="#000" stroke-linejoin="round" d="m5 10.5l3 3m0-3l-3 3" />
|
|
33
37
|
</g>
|
|
34
38
|
</mask>
|
|
35
39
|
</defs>
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
<path
|
|
41
|
+
fill="currentColor"
|
|
42
|
+
d="M0 0h24v24H0z"
|
|
43
|
+
mask="url(#delete-document-mask)"
|
|
44
|
+
/>
|
|
38
45
|
</IconBase>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- src/lib/icons/FacebookAlt.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import IconBase from "../IconBase.svelte";
|
|
4
|
+
import type { IconProps } from "../types";
|
|
5
|
+
|
|
6
|
+
const props: IconProps = $props();
|
|
7
|
+
const ariaLabel = $derived(props.ariaLabel ?? "Facebook Alt");
|
|
8
|
+
const title = $derived(props.title ?? "");
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<IconBase
|
|
12
|
+
{...props}
|
|
13
|
+
mode="outline"
|
|
14
|
+
{ariaLabel}
|
|
15
|
+
{title}
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
strokeWidth={props.strokeWidth ?? 2}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
d="M13.458 21.696c4.693-.704 8.292-4.753 8.292-9.642c0-5.385-4.365-9.75-9.75-9.75s-9.75 4.365-9.75 9.75c0 4.89 3.599 8.938 8.292 9.642v-6.798h-2.05a.486.486 0 0 1-.486-.486v-1.843c0-.269.218-.486.486-.486h2.05l-.072-1.943c0-.942.175-2.471 1.342-3.307c.816-.583 1.423-.693 2.397-.693c.845 0 1.426.084 1.81.14l.188.025a.193.193 0 0 1 .168.192v2.04c0 .113-.095.2-.205.194h-.038c-.114.004-.71.029-1.216.029c-.89 0-1.458.406-1.458 1.755v1.568h2.192c.3 0 .529.27.48.566l-.28 1.843a.486.486 0 0 1-.479.406h-1.913z"
|
|
24
|
+
/>
|
|
25
|
+
</IconBase>
|