@shival99/z-ui-svelte 0.1.7 → 0.1.8
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.
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
import ZIconAnimated from './ZIconAnimated.svelte';
|
|
8
8
|
import ZIconCustom from './ZIconCustom.svelte';
|
|
9
9
|
import { zGetIcon, zLoadIcon } from './z-icon.loader.svelte';
|
|
10
|
-
import type { ZIcon, ZIconAnimationTrigger, ZIconSize } from './z-icon.types';
|
|
10
|
+
import type { ZIcon as ZIconName, ZIconAnimationTrigger, ZIconSize } from './z-icon.types';
|
|
11
11
|
|
|
12
12
|
interface Props extends Omit<HTMLAttributes<HTMLSpanElement>, 'class'> {
|
|
13
13
|
class?: ClassValue;
|
|
14
14
|
/** Named icon from any supported family (`lucideX`, `saxHomeBold`, `tablerHeart`, …). */
|
|
15
|
-
zType?:
|
|
15
|
+
zType?: ZIconName;
|
|
16
16
|
/** Animated icon (kebab-case, e.g. `bell`). Takes precedence over `zType`. */
|
|
17
17
|
zAnimatedType?: ZAnimatedIcon;
|
|
18
18
|
/** Keep the animated icon looping. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
2
|
import type { ClassValue } from 'clsx';
|
|
3
3
|
import type { ZAnimatedIcon } from './animated';
|
|
4
|
-
import type { ZIcon, ZIconAnimationTrigger, ZIconSize } from './z-icon.types';
|
|
4
|
+
import type { ZIcon as ZIconName, ZIconAnimationTrigger, ZIconSize } from './z-icon.types';
|
|
5
5
|
interface Props extends Omit<HTMLAttributes<HTMLSpanElement>, 'class'> {
|
|
6
6
|
class?: ClassValue;
|
|
7
7
|
/** Named icon from any supported family (`lucideX`, `saxHomeBold`, `tablerHeart`, …). */
|
|
8
|
-
zType?:
|
|
8
|
+
zType?: ZIconName;
|
|
9
9
|
/** Animated icon (kebab-case, e.g. `bell`). Takes precedence over `zType`. */
|
|
10
10
|
zAnimatedType?: ZAnimatedIcon;
|
|
11
11
|
/** Keep the animated icon looping. */
|