intelliwaketssveltekitv25 0.1.117 → 0.1.118
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 +6 -4
- package/dist/Icon.svelte.d.ts +1 -0
- package/package.json +1 -1
package/dist/Icon.svelte
CHANGED
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
primaryOpacity = 1,
|
|
30
30
|
secondaryOpacity = 0.4,
|
|
31
31
|
swapOpacity = false,
|
|
32
|
-
invisible = false
|
|
32
|
+
invisible = false,
|
|
33
|
+
hidden
|
|
33
34
|
}: {
|
|
34
35
|
class?: string
|
|
35
36
|
id?: string
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
secondaryOpacity?: number
|
|
59
60
|
swapOpacity?: boolean
|
|
60
61
|
invisible?: boolean
|
|
62
|
+
hidden?: boolean
|
|
61
63
|
} = $props()
|
|
62
64
|
|
|
63
65
|
function setCustomSize(element: SVGElement, size: string) {
|
|
@@ -148,7 +150,7 @@
|
|
|
148
150
|
}
|
|
149
151
|
</style>
|
|
150
152
|
|
|
151
|
-
{#if !!icon && i[4]}
|
|
153
|
+
{#if !!icon && i[4] && !hidden}
|
|
152
154
|
<svg
|
|
153
155
|
id={id || undefined}
|
|
154
156
|
bind:this={svgElement}
|
|
@@ -187,13 +189,13 @@
|
|
|
187
189
|
<path
|
|
188
190
|
d={zero}
|
|
189
191
|
fill={secondaryColor || color || 'currentColor'}
|
|
190
|
-
fill-opacity={swapOpacity
|
|
192
|
+
fill-opacity={!!swapOpacity ? primaryOpacity : secondaryOpacity}
|
|
191
193
|
transform='translate({CleanNumber(i[0]) / -2} {CleanNumber(i[1]) / -2})'
|
|
192
194
|
/>
|
|
193
195
|
<path
|
|
194
196
|
d={one}
|
|
195
197
|
fill={primaryColor || color || 'currentColor'}
|
|
196
|
-
fill-opacity={swapOpacity
|
|
198
|
+
fill-opacity={!!swapOpacity ? secondaryOpacity : primaryOpacity}
|
|
197
199
|
transform='translate({CleanNumber(i[0]) / -2} {CleanNumber(i[1]) / -2})'
|
|
198
200
|
/>
|
|
199
201
|
{/if}
|
package/dist/Icon.svelte.d.ts
CHANGED