@cfasim-ui/components 0.4.16 → 0.5.1

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.
@@ -3,7 +3,9 @@ interface Props {
3
3
  icon: string;
4
4
  size?: IconSize | number;
5
5
  fill?: boolean;
6
+ /** @deprecated No effect — SVG icons ship at weight 400. */
6
7
  weight?: number;
8
+ /** @deprecated No effect — SVG icons ship at grade 0. */
7
9
  grade?: number;
8
10
  decorative?: boolean;
9
11
  ariaLabel?: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Register the base icon set once. A name already registered by the consumer is
3
+ * left untouched, so explicit `registerIcons` calls always win over defaults.
4
+ */
5
+ export declare function registerDefaultIcons(): void;
@@ -0,0 +1,18 @@
1
+ import { Component } from 'vue';
2
+ /** A registered icon. Provide a bare component (outline only) or both variants. */
3
+ export interface IconVariants {
4
+ outline: Component;
5
+ fill?: Component;
6
+ }
7
+ export type IconRegistration = Component | IconVariants;
8
+ /**
9
+ * Register icons for use with `<Icon icon="name" />`. Call once at app startup.
10
+ * Re-registering a name overwrites the previous entry.
11
+ */
12
+ export declare function registerIcons(icons: Record<string, IconRegistration>): void;
13
+ /** Resolve the component for an icon name, preferring the fill variant when asked. */
14
+ export declare function getIconComponent(name: string, fill?: boolean): Component | undefined;
15
+ /** Whether an icon name has been registered. */
16
+ export declare function hasIcon(name: string): boolean;
17
+ /** Warn once per unregistered icon name with copy-pasteable registration code. */
18
+ export declare function warnMissingIcon(name: string): void;