@flanksource/icons 1.0.50 → 1.0.52
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/demo-bundle.js +92 -0
- package/icon/index.d.ts +25 -0
- package/icon/index.js +937 -0
- package/icon/index.mjs +917 -0
- package/package.json +7 -1
package/icon/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IconType } from "../lib/iconBase";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
export declare const aliases: Record<string, string>;
|
|
5
|
+
export declare const prefixes: Record<string, string>;
|
|
6
|
+
export declare const colorClassMap: Record<string, string>;
|
|
7
|
+
|
|
8
|
+
export declare function processIconNameSearch(name: string): string;
|
|
9
|
+
export declare function findByName(name: string | undefined, iconMap: Record<string, IconType>): IconType | undefined;
|
|
10
|
+
export declare function areTwoIconNamesEqual(firstIconName?: string, secondIconName?: string): boolean;
|
|
11
|
+
export declare function resolveColor(color?: string): { className?: string; style?: { color: string } } | undefined;
|
|
12
|
+
|
|
13
|
+
export type IconProps = {
|
|
14
|
+
name?: string;
|
|
15
|
+
secondary?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
alt?: string;
|
|
19
|
+
prefix?: React.ReactNode;
|
|
20
|
+
size?: string | number;
|
|
21
|
+
iconWithColor?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare function Icon(props: IconProps): JSX.Element | null;
|
|
25
|
+
export type { IconType };
|