@yahoo/uds-icons 0.0.3 → 0.0.4
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.
|
@@ -14,16 +14,14 @@ interface UniversalIconProps {
|
|
|
14
14
|
/** Icon to render from the icons package. */
|
|
15
15
|
name: SvgIcon;
|
|
16
16
|
/** Size of the icon. */
|
|
17
|
-
size
|
|
17
|
+
size?: IconSize;
|
|
18
18
|
/** Variant for icon. Either fill or outline. */
|
|
19
19
|
variant?: 'fill' | 'outline';
|
|
20
20
|
/** Color of the icon. */
|
|
21
21
|
color?: ForegroundColor;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
interface SvgIconProps {
|
|
25
|
-
variant: UniversalIconProps['variant'];
|
|
26
|
-
size: UniversalIconProps['size'];
|
|
24
|
+
interface SvgIconProps extends Partial<UniversalIconProps> {
|
|
27
25
|
}
|
|
28
26
|
type SvgIcon = (props: SvgIconProps) => JSX.Element;
|
|
29
27
|
|
|
@@ -14,16 +14,14 @@ interface UniversalIconProps {
|
|
|
14
14
|
/** Icon to render from the icons package. */
|
|
15
15
|
name: SvgIcon;
|
|
16
16
|
/** Size of the icon. */
|
|
17
|
-
size
|
|
17
|
+
size?: IconSize;
|
|
18
18
|
/** Variant for icon. Either fill or outline. */
|
|
19
19
|
variant?: 'fill' | 'outline';
|
|
20
20
|
/** Color of the icon. */
|
|
21
21
|
color?: ForegroundColor;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
interface SvgIconProps {
|
|
25
|
-
variant: UniversalIconProps['variant'];
|
|
26
|
-
size: UniversalIconProps['size'];
|
|
24
|
+
interface SvgIconProps extends Partial<UniversalIconProps> {
|
|
27
25
|
}
|
|
28
26
|
type SvgIcon = (props: SvgIconProps) => JSX.Element;
|
|
29
27
|
|