@trackunit/ui-icons 1.13.30 → 1.13.34
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/package.json
CHANGED
|
@@ -17,6 +17,18 @@ export declare function generateSpriteTemplate(content: string): string;
|
|
|
17
17
|
* @returns {string} The file name for the SVG sprite.
|
|
18
18
|
*/
|
|
19
19
|
export declare function generateSpriteFileName(type: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Prefixes every id and id reference with the icon type, e.g.
|
|
22
|
+
* `id="ArrowDown"` -> `id="solid-ArrowDown"`, `url(#a)` -> `url(#solid-a)`.
|
|
23
|
+
*
|
|
24
|
+
* All sprite types reuse the same ids (icon name as symbol id, plus SVGO's
|
|
25
|
+
* minified `id="a"`), so Icon inlining them into one document would collide.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} spriteContent - The concatenated `<symbol>` markup for one type.
|
|
28
|
+
* @param {string} iconType - The icon type used as the id prefix (e.g. 'solid').
|
|
29
|
+
* @returns {string} The sprite content with every id and id reference prefixed.
|
|
30
|
+
*/
|
|
31
|
+
export declare function namespaceSpriteIds(spriteContent: string, iconType: string): string;
|
|
20
32
|
/**
|
|
21
33
|
* Retrieves all SVG icon files from a directory.
|
|
22
34
|
*
|