@scarlab-icons/js 3.0.0 → 3.1.0
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/README.md +20 -2
- package/dist/index.cjs +85 -58460
- package/dist/index.d.ts +10 -3
- package/dist/index.js +84 -58461
- package/package.json +17 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
declare function replace(params?: {}): void;
|
|
1
|
+
import { IconNode } from '@scarlab-icons/icons';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
type Attrs = Record<string, string | number | boolean | null | undefined>;
|
|
4
|
+
declare function toSvg(icon: IconNode, attrs?: Attrs): string;
|
|
5
|
+
|
|
6
|
+
declare function getIcon(name: string, style?: string): IconNode | undefined;
|
|
7
|
+
declare function replaceByAttribute(params?: Attrs, root?: ParentNode): void;
|
|
8
|
+
declare function replace(params?: Attrs, root?: ParentNode): void;
|
|
9
|
+
|
|
10
|
+
export { getIcon, replace, replaceByAttribute, toSvg };
|
|
11
|
+
export type { Attrs };
|