@iconode/react 2.6.2
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/LICENSE +11 -0
- package/README.md +172 -0
- package/dist/index.cjs +10300 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +10290 -0
- package/dist/index.js.map +1 -0
- package/package.json +149 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface IconData {
|
|
4
|
+
name: string;
|
|
5
|
+
category: string;
|
|
6
|
+
sourceUrl?: string;
|
|
7
|
+
keywords: string[];
|
|
8
|
+
svgContent: string;
|
|
9
|
+
}
|
|
10
|
+
interface IconComponentProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
11
|
+
size?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
16
|
+
title?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function createIcon(name: string, svgContent: string): React$1.FC<IconComponentProps>;
|
|
20
|
+
|
|
21
|
+
declare const Categories: {
|
|
22
|
+
Programming: IconData[];
|
|
23
|
+
Apps: IconData[];
|
|
24
|
+
DesignTools: IconData[];
|
|
25
|
+
AI: IconData[];
|
|
26
|
+
Frameworks: IconData[];
|
|
27
|
+
Tools: IconData[];
|
|
28
|
+
Other: IconData[];
|
|
29
|
+
Company: IconData[];
|
|
30
|
+
Database: IconData[];
|
|
31
|
+
OperatingSystem: IconData[];
|
|
32
|
+
};
|
|
33
|
+
declare const icons: Record<string, React$1.FC<IconComponentProps>>;
|
|
34
|
+
declare const allIconsData: IconData[];
|
|
35
|
+
|
|
36
|
+
type IconName = keyof typeof icons;
|
|
37
|
+
interface DynamicIconProps {
|
|
38
|
+
name: IconName;
|
|
39
|
+
size?: number;
|
|
40
|
+
className?: string;
|
|
41
|
+
style?: React$1.CSSProperties;
|
|
42
|
+
"aria-label"?: string;
|
|
43
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
44
|
+
title?: string;
|
|
45
|
+
}
|
|
46
|
+
declare function Icon({ name, ...rest }: DynamicIconProps): React$1.FunctionComponentElement<IconComponentProps>;
|
|
47
|
+
|
|
48
|
+
export { Categories, type DynamicIconProps, Icon, type IconData, type IconName, allIconsData, createIcon, icons };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface IconData {
|
|
4
|
+
name: string;
|
|
5
|
+
category: string;
|
|
6
|
+
sourceUrl?: string;
|
|
7
|
+
keywords: string[];
|
|
8
|
+
svgContent: string;
|
|
9
|
+
}
|
|
10
|
+
interface IconComponentProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
11
|
+
size?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
16
|
+
title?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function createIcon(name: string, svgContent: string): React$1.FC<IconComponentProps>;
|
|
20
|
+
|
|
21
|
+
declare const Categories: {
|
|
22
|
+
Programming: IconData[];
|
|
23
|
+
Apps: IconData[];
|
|
24
|
+
DesignTools: IconData[];
|
|
25
|
+
AI: IconData[];
|
|
26
|
+
Frameworks: IconData[];
|
|
27
|
+
Tools: IconData[];
|
|
28
|
+
Other: IconData[];
|
|
29
|
+
Company: IconData[];
|
|
30
|
+
Database: IconData[];
|
|
31
|
+
OperatingSystem: IconData[];
|
|
32
|
+
};
|
|
33
|
+
declare const icons: Record<string, React$1.FC<IconComponentProps>>;
|
|
34
|
+
declare const allIconsData: IconData[];
|
|
35
|
+
|
|
36
|
+
type IconName = keyof typeof icons;
|
|
37
|
+
interface DynamicIconProps {
|
|
38
|
+
name: IconName;
|
|
39
|
+
size?: number;
|
|
40
|
+
className?: string;
|
|
41
|
+
style?: React$1.CSSProperties;
|
|
42
|
+
"aria-label"?: string;
|
|
43
|
+
onClick?: (e: React$1.MouseEvent) => void;
|
|
44
|
+
title?: string;
|
|
45
|
+
}
|
|
46
|
+
declare function Icon({ name, ...rest }: DynamicIconProps): React$1.FunctionComponentElement<IconComponentProps>;
|
|
47
|
+
|
|
48
|
+
export { Categories, type DynamicIconProps, Icon, type IconData, type IconName, allIconsData, createIcon, icons };
|