@atls-ui-generators/icons 1.2.2 → 1.2.3
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/CHANGELOG.md +28 -0
- package/dist/commands/base-icons.command.d.ts +1 -1
- package/dist/commands/base-icons.command.js +1 -0
- package/dist/commands/generate-icons.command.js +2 -1
- package/dist/commands/generate-replacements.command.js +1 -0
- package/dist/replacement-utils/build-replacements/build-replacements.d.ts +3 -0
- package/dist/replacement-utils/build-replacements/index.d.ts +1 -1
- package/dist/replacement-utils/build-replacements/index.js +1 -1
- package/dist/replacement-utils/create-replacement-icon-colors/create-replacement-icon-colors.d.ts +3 -0
- package/dist/replacement-utils/create-replacement-icon-colors/{create-replacement-icon-colors.util.js → create-replacement-icon-colors.js} +1 -1
- package/dist/replacement-utils/create-replacement-icon-colors/index.d.ts +1 -1
- package/dist/replacement-utils/create-replacement-icon-colors/index.js +1 -1
- package/dist/replacement-utils/create-replacements/create-replacements.d.ts +3 -0
- package/dist/replacement-utils/create-replacements/index.cjs +1 -1
- package/dist/replacement-utils/create-replacements/index.d.cts +1 -1
- package/dist/replacement-utils/create-replacements/index.d.ts +1 -1
- package/dist/replacement-utils/create-replacements/index.js +1 -1
- package/dist/replacement-utils/create-replacements/tests/create-replacements.test.interfaces.d.ts +1 -1
- package/dist/replacement-utils/get-color-replacement/get-color-replacement.d.ts +2 -0
- package/dist/replacement-utils/get-color-replacement/index.cjs +1 -1
- package/dist/replacement-utils/get-color-replacement/index.d.cts +1 -1
- package/dist/replacement-utils/get-color-replacement/index.d.ts +1 -1
- package/dist/replacement-utils/get-color-replacement/index.js +1 -1
- package/dist/replacement-utils/write-replacements-file/index.d.ts +1 -1
- package/dist/replacement-utils/write-replacements-file/index.js +1 -1
- package/dist/replacement-utils/write-replacements-file/{write-replacements-file.util.d.ts → write-replacements-file.d.ts} +1 -1
- package/dist/svgr-utils/{build-svgr.util.d.ts → build-svgr.d.ts} +1 -1
- package/dist/svgr-utils/{build-svgr.util.js → build-svgr.js} +2 -2
- package/dist/svgr-utils/compile-icons/{compile-icons.constants.js → constants.js} +8 -2
- package/dist/svgr-utils/compile-icons/{compile-icon-jsx.util.d.ts → icon-jsx.d.ts} +1 -1
- package/dist/svgr-utils/compile-icons/{compile-icon-jsx.util.js → icon-jsx.js} +2 -2
- package/dist/svgr-utils/compile-icons/icons.d.ts +4 -0
- package/dist/svgr-utils/compile-icons/{compile-icons.util.js → icons.js} +6 -6
- package/dist/svgr-utils/compile-icons/index.d.ts +3 -3
- package/dist/svgr-utils/compile-icons/index.js +3 -3
- package/dist/svgr-utils/compile-icons/interfaces.d.ts +2 -0
- package/dist/svgr-utils/{discover-icons.util.d.ts → discover-icons.d.ts} +1 -1
- package/dist/svgr-utils/get-svg-colors/constants.d.ts +1 -0
- package/dist/svgr-utils/get-svg-colors/constants.js +1 -0
- package/dist/svgr-utils/get-svg-colors/{extract-color-from-element.helper.d.ts → extract-color-from-element.d.ts} +2 -2
- package/dist/svgr-utils/get-svg-colors/{extract-color-from-element.helper.js → extract-color-from-element.js} +2 -2
- package/dist/svgr-utils/get-svg-colors/{get-svg-colors.util.d.ts → get-svg-colors.d.ts} +1 -1
- package/dist/svgr-utils/get-svg-colors/{get-svg-colors.util.js → get-svg-colors.js} +3 -3
- package/dist/svgr-utils/get-svg-colors/{validate-color.helper.d.ts → helpers/validate-color.d.ts} +1 -1
- package/dist/svgr-utils/get-svg-colors/index.d.ts +2 -2
- package/dist/svgr-utils/get-svg-colors/index.js +1 -1
- package/dist/svgr-utils/get-svg-colors/interfaces.js +1 -0
- package/dist/svgr-utils/index.d.ts +2 -2
- package/dist/svgr-utils/index.js +2 -2
- package/dist/svgr-utils/{write-compiled-icons.util.d.ts → write-compiled-icons.d.ts} +1 -1
- package/dist/svgr-utils/{write-compiled-icons.util.js → write-compiled-icons.js} +1 -1
- package/package.json +7 -4
- package/dist/replacement-utils/build-replacements/build-replacements.util.d.ts +0 -3
- package/dist/replacement-utils/create-replacement-icon-colors/create-replacement-icon-colors.util.d.ts +0 -3
- package/dist/replacement-utils/create-replacements/create-replacements.util.d.ts +0 -3
- package/dist/replacement-utils/get-color-replacement/get-color-replacement.util.d.ts +0 -2
- package/dist/svgr-utils/compile-icons/compile-icons.util.d.ts +0 -4
- package/dist/svgr-utils/get-svg-colors/get-svg-colors.constants.d.ts +0 -1
- package/dist/svgr-utils/get-svg-colors/get-svg-colors.constants.js +0 -1
- /package/dist/{icons.generator.d.ts → generator.d.ts} +0 -0
- /package/dist/{icons.generator.js → generator.js} +0 -0
- /package/dist/{icons.interfaces.d.ts → interfaces.d.ts} +0 -0
- /package/dist/{icons.interfaces.js → interfaces.js} +0 -0
- /package/dist/replacement-utils/build-replacements/{build-replacements.util.js → build-replacements.js} +0 -0
- /package/dist/replacement-utils/create-replacement-icon-colors/{create-replacement-icon-colors.constants.d.ts → constants.d.ts} +0 -0
- /package/dist/replacement-utils/create-replacement-icon-colors/{create-replacement-icon-colors.constants.js → constants.js} +0 -0
- /package/dist/replacement-utils/create-replacements/{create-replacements.util.cjs → create-replacements.cjs} +0 -0
- /package/dist/replacement-utils/create-replacements/{create-replacements.util.d.cts → create-replacements.d.cts} +0 -0
- /package/dist/replacement-utils/create-replacements/{create-replacements.util.js → create-replacements.js} +0 -0
- /package/dist/replacement-utils/get-color-replacement/{get-color-replacement.util.cjs → get-color-replacement.cjs} +0 -0
- /package/dist/replacement-utils/get-color-replacement/{get-color-replacement.util.d.cts → get-color-replacement.d.cts} +0 -0
- /package/dist/replacement-utils/get-color-replacement/{get-color-replacement.util.js → get-color-replacement.js} +0 -0
- /package/dist/replacement-utils/get-color-replacement/{get-color-replacement.interfaces.d.ts → interfaces.d.ts} +0 -0
- /package/dist/replacement-utils/get-color-replacement/{get-color-replacement.interfaces.js → interfaces.js} +0 -0
- /package/dist/replacement-utils/write-replacements-file/{write-replacements-file.util.js → write-replacements-file.js} +0 -0
- /package/dist/svgr-utils/compile-icons/{compile-icons.constants.d.ts → constants.d.ts} +0 -0
- /package/dist/svgr-utils/{get-svg-colors/get-svg-colors.interfaces.js → compile-icons/interfaces.js} +0 -0
- /package/dist/svgr-utils/compile-icons/{compile-icons.template.d.ts → template.d.ts} +0 -0
- /package/dist/svgr-utils/compile-icons/{compile-icons.template.js → template.js} +0 -0
- /package/dist/svgr-utils/{discover-icons.util.js → discover-icons.js} +0 -0
- /package/dist/svgr-utils/get-svg-colors/{validate-color.helper.js → helpers/validate-color.js} +0 -0
- /package/dist/svgr-utils/get-svg-colors/{get-svg-colors.interfaces.d.ts → interfaces.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [1.2.3](https://github.com/atls/hyperion/compare/@atls-ui-generators/icons@1.2.2...@atls-ui-generators/icons@1.2.3) (2026-09-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* **atls-ui-generators:** return cheerio generator instead of regex ([5d548f7](https://github.com/atls/hyperion/commit/5d548f71935d6170d805a4ca8e16a99d89b0104a))
|
|
10
|
+
* **atls-ui-generators:** stabilize icon generation ([b3e16c6](https://github.com/atls/hyperion/commit/b3e16c6d3b8c5ae522cd6359201c67066ca03d58))
|
|
11
|
+
* **icons:** declare svgr plugin dependencies ([afb9201](https://github.com/atls/hyperion/commit/afb9201d900e5f55e2db802816f26d986bd5242b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.2.2](https://github.com/atls/hyperion/compare/@atls-ui-generators/icons@1.2.2...@atls-ui-generators/icons@1.2.2) (2026-06-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [1.2.2](https://github.com/atls/hyperion/compare/@atls-ui-generators/icons@1.2.2...@atls-ui-generators/icons@1.2.2) (2025-10-25)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
3
31
|
## [1.2.2](https://github.com/atls/hyperion/compare/@atls-ui-generators/icons@1.2.1...@atls-ui-generators/icons@1.2.2) (2025-10-09)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolvedIconsPath } from '../
|
|
1
|
+
import type { ResolvedIconsPath } from '../interfaces.js';
|
|
2
2
|
import { Command } from 'clipanion';
|
|
3
3
|
export declare class BaseIconsCommand extends Command {
|
|
4
4
|
static readonly usage: import("clipanion").Usage;
|
|
@@ -30,7 +30,7 @@ export class GenerateIconsCommand extends BaseIconsCommand {
|
|
|
30
30
|
assert.ok(lstatSync(replacementsPath).isFile(), 'Replacements path should point to a file');
|
|
31
31
|
this.logger.info(`Extract replacements from ${replacementsPath}`);
|
|
32
32
|
const exports = processFile(replacementsPath);
|
|
33
|
-
replacements = Object.values(exports)
|
|
33
|
+
replacements = Object.values(exports)[0];
|
|
34
34
|
}
|
|
35
35
|
this.logger.info(`Icon generation started into ${outputPath}`);
|
|
36
36
|
await buildSvgr(iconsPath, outputPath, replacements);
|
|
@@ -38,6 +38,7 @@ export class GenerateIconsCommand extends BaseIconsCommand {
|
|
|
38
38
|
}
|
|
39
39
|
catch (error) {
|
|
40
40
|
this.logger.error(error);
|
|
41
|
+
process.exitCode = 1;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './build-replacements.
|
|
1
|
+
export * from './build-replacements.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./build-replacements.
|
|
1
|
+
export * from "./build-replacements.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compileIconJsx } from '../../svgr-utils/index.js';
|
|
2
2
|
import { getSvgColors } from '../../svgr-utils/index.js';
|
|
3
|
-
import { getSvgColorsOptions } from './
|
|
3
|
+
import { getSvgColorsOptions } from './constants.js';
|
|
4
4
|
export const createReplacementIconColors = async (icons) => {
|
|
5
5
|
const promises = icons.map(async (icon) => {
|
|
6
6
|
const source = await compileIconJsx(icon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './create-replacement-icon-colors.
|
|
1
|
+
export * from './create-replacement-icon-colors.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./create-replacement-icon-colors.
|
|
1
|
+
export * from "./create-replacement-icon-colors.js";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create-replacements.
|
|
17
|
+
__exportStar(require("./create-replacements.cjs"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './create-replacements.
|
|
1
|
+
export * from './create-replacements.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './create-replacements.
|
|
1
|
+
export * from './create-replacements.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./create-replacements.
|
|
1
|
+
export * from "./create-replacements.js";
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./get-color-replacement.
|
|
17
|
+
__exportStar(require("./get-color-replacement.cjs"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './get-color-replacement.
|
|
1
|
+
export * from './get-color-replacement.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './get-color-replacement.
|
|
1
|
+
export * from './get-color-replacement.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./get-color-replacement.
|
|
1
|
+
export * from "./get-color-replacement.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './write-replacements-file.
|
|
1
|
+
export * from './write-replacements-file.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./write-replacements-file.
|
|
1
|
+
export * from "./write-replacements-file.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Replacements } from '../../
|
|
1
|
+
import type { Replacements } from '../../interfaces.js';
|
|
2
2
|
export declare const writeReplacementsFile: (targetFile: string, replacements: Replacements) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Replacements } from '../
|
|
1
|
+
import type { Replacements } from '../interfaces.js';
|
|
2
2
|
export declare const buildSvgr: (iconsPath: string, targetDir: string, replacements: Replacements) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compileIcons } from './compile-icons/index.js';
|
|
2
|
-
import { discoverIcons } from './discover-icons.
|
|
3
|
-
import { writeCompiledIcons } from './write-compiled-icons.
|
|
2
|
+
import { discoverIcons } from './discover-icons.js';
|
|
3
|
+
import { writeCompiledIcons } from './write-compiled-icons.js';
|
|
4
4
|
export const buildSvgr = async (iconsPath, targetDir, replacements) => {
|
|
5
5
|
const icons = await discoverIcons(iconsPath);
|
|
6
6
|
const sources = await compileIcons(icons, replacements);
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import { svgrTemplate } from './template.js';
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
4
|
+
const svgoPlugin = require('@svgr/plugin-svgo');
|
|
5
|
+
const jsxPlugin = require('@svgr/plugin-jsx');
|
|
6
|
+
const prettierPlugin = require('@svgr/plugin-prettier');
|
|
7
|
+
const svgrTransformPlugins = [svgoPlugin, jsxPlugin, prettierPlugin];
|
|
2
8
|
export const MASK_ID_PATTERN = /mask0/g;
|
|
3
9
|
export const PROPS_SPREAD_FROM = '...props';
|
|
4
10
|
export const PROPS_SPREAD_TO = '...otherProps';
|
|
@@ -8,7 +14,7 @@ export const svgrTransformConfig = {
|
|
|
8
14
|
icon: true,
|
|
9
15
|
typescript: true,
|
|
10
16
|
template: svgrTemplate,
|
|
11
|
-
plugins:
|
|
17
|
+
plugins: svgrTransformPlugins,
|
|
12
18
|
svgProps: {
|
|
13
19
|
className: `{clsx(className, String(otherProps.className || ''))}`,
|
|
14
20
|
style: '{iconStyle}',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Icon } from '../../
|
|
1
|
+
import type { Icon } from '../../interfaces.js';
|
|
2
2
|
export declare const compileIconJsx: (icon: Icon) => Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { transform } from '@svgr/core';
|
|
2
|
-
import { MASK_ID_PATTERN } from './
|
|
3
|
-
import { svgrTransformConfig } from './
|
|
2
|
+
import { MASK_ID_PATTERN } from './constants.js';
|
|
3
|
+
import { svgrTransformConfig } from './constants.js';
|
|
4
4
|
export const compileIconJsx = async (icon) => transform(icon.source.replace(MASK_ID_PATTERN, icon.name), {
|
|
5
5
|
...svgrTransformConfig,
|
|
6
6
|
template: ({ jsx }, { tpl }) => tpl `${jsx}`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { transform } from '@svgr/core';
|
|
2
|
-
import { MASK_ID_PATTERN } from './
|
|
3
|
-
import { PROPS_SPREAD_FROM } from './
|
|
4
|
-
import { PROPS_SPREAD_TO } from './
|
|
5
|
-
import { FIFTY_PLUS_PATTERN } from './
|
|
6
|
-
import { FIFTY_PLUS_REPLACEMENT } from './
|
|
7
|
-
import { svgrTransformConfig } from './
|
|
2
|
+
import { MASK_ID_PATTERN } from './constants.js';
|
|
3
|
+
import { PROPS_SPREAD_FROM } from './constants.js';
|
|
4
|
+
import { PROPS_SPREAD_TO } from './constants.js';
|
|
5
|
+
import { FIFTY_PLUS_PATTERN } from './constants.js';
|
|
6
|
+
import { FIFTY_PLUS_REPLACEMENT } from './constants.js';
|
|
7
|
+
import { svgrTransformConfig } from './constants.js';
|
|
8
8
|
export const compileIcons = async (icons, replacements) => {
|
|
9
9
|
const promises = icons.map(async (icon) => {
|
|
10
10
|
const transformed = await transform(icon.source, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
export * from './icon-jsx.js';
|
|
2
|
+
export * from './icons.js';
|
|
3
|
+
export * from './template.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
1
|
+
export * from "./icon-jsx.js";
|
|
2
|
+
export * from "./icons.js";
|
|
3
|
+
export * from "./template.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Icon } from '../
|
|
1
|
+
import type { Icon } from '../interfaces.js';
|
|
2
2
|
export declare const discoverIcons: (svgDirectory: string) => Promise<Array<Icon>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styleColorAttributeKey = "style";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const styleColorAttributeKey = 'style';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CheerioAPI } from 'cheerio';
|
|
1
|
+
import type { CheerioAPI } from 'cheerio/slim';
|
|
2
2
|
import type { AnyNode } from 'domhandler';
|
|
3
|
-
import type { GetSvgColorsOptions } from './
|
|
3
|
+
import type { GetSvgColorsOptions } from './interfaces.js';
|
|
4
4
|
export declare const extractColorFromElement: (cheerio: CheerioAPI, element: AnyNode, options: GetSvgColorsOptions) => Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { styleColorAttributeKey } from './constants.js';
|
|
2
2
|
export const extractColorFromElement = (cheerio, element, options) => {
|
|
3
3
|
const colors = new Set();
|
|
4
4
|
const attributes = cheerio(element).attr() ?? {};
|
|
@@ -6,7 +6,7 @@ export const extractColorFromElement = (cheerio, element, options) => {
|
|
|
6
6
|
if (options.colorAttributes?.has(name)) {
|
|
7
7
|
colors.add(value);
|
|
8
8
|
}
|
|
9
|
-
if (name ===
|
|
9
|
+
if (name === styleColorAttributeKey) {
|
|
10
10
|
options.colorAttributes?.forEach((colorAttribute) => {
|
|
11
11
|
colors.add(cheerio(element).css(colorAttribute) || '');
|
|
12
12
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GetSvgColorsOptions } from './
|
|
1
|
+
import type { GetSvgColorsOptions } from './interfaces.js';
|
|
2
2
|
export declare const getSvgColors: (source: string, options?: GetSvgColorsOptions) => Array<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { load } from 'cheerio';
|
|
2
|
-
import { extractColorFromElement } from './extract-color-from-element.
|
|
3
|
-
import { validateColor } from './validate-color.
|
|
1
|
+
import { load } from 'cheerio/slim';
|
|
2
|
+
import { extractColorFromElement } from './extract-color-from-element.js';
|
|
3
|
+
import { validateColor } from './helpers/validate-color.js';
|
|
4
4
|
export const getSvgColors = (source, options = {}) => {
|
|
5
5
|
const colors = new Set();
|
|
6
6
|
const cheerio = load(source, { xml: true });
|
package/dist/svgr-utils/get-svg-colors/{validate-color.helper.d.ts → helpers/validate-color.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GetSvgColorsOptions } from '
|
|
1
|
+
import type { GetSvgColorsOptions } from '../interfaces.js';
|
|
2
2
|
export declare const validateColor: (color: string, options: GetSvgColorsOptions) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './get-svg-colors.
|
|
2
|
-
export type * from './
|
|
1
|
+
export * from './get-svg-colors.js';
|
|
2
|
+
export type * from './interfaces.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./get-svg-colors.
|
|
1
|
+
export * from "./get-svg-colors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/svgr-utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Source } from '../
|
|
1
|
+
import type { Source } from '../interfaces.js';
|
|
2
2
|
export declare const writeCompiledIcons: (sources: Array<Source>, targetDir: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls-ui-generators/icons",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,30 +19,33 @@
|
|
|
19
19
|
},
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"bin": {
|
|
22
|
-
"generate-icons": "dist/
|
|
22
|
+
"generate-icons": "dist/generator.js"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "yarn library build",
|
|
29
|
-
"generate-icons": "tsx src/
|
|
29
|
+
"generate-icons": "tsx src/generator.ts",
|
|
30
30
|
"prepack": "yarn run build",
|
|
31
31
|
"postpack": "rm -rf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atls-ui-generators/utils": "1.0.5",
|
|
35
35
|
"@svgr/core": "8.1.0",
|
|
36
|
+
"@svgr/plugin-jsx": "8.1.0",
|
|
37
|
+
"@svgr/plugin-prettier": "8.1.0",
|
|
38
|
+
"@svgr/plugin-svgo": "8.1.0",
|
|
36
39
|
"@swc-node/register": "1.9.0",
|
|
37
40
|
"@swc/core": "1.6.1",
|
|
38
41
|
"cheerio": "1.1.2",
|
|
39
42
|
"clipanion": "4.0.0-rc.4",
|
|
43
|
+
"domhandler": "5.0.3",
|
|
40
44
|
"glob": "11.0.2",
|
|
41
45
|
"is-svg": "6.1.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
48
|
"@types/node": "22.15.3",
|
|
45
|
-
"domhandler": "5.0.3",
|
|
46
49
|
"tsx": "4.20.5",
|
|
47
50
|
"typescript": "5.5.4"
|
|
48
51
|
},
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Icon } from '../../icons.interfaces.js';
|
|
2
|
-
import type { Replacements } from '../../icons.interfaces.js';
|
|
3
|
-
import type { Source } from '../../icons.interfaces.js';
|
|
4
|
-
export declare const compileIcons: (icons: Array<Icon>, replacements: Replacements) => Promise<Array<Source>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const STYLE_COLOR_ATTRIBUTE_KEY = "style";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const STYLE_COLOR_ATTRIBUTE_KEY = 'style';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/svgr-utils/{get-svg-colors/get-svg-colors.interfaces.js → compile-icons/interfaces.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/svgr-utils/get-svg-colors/{validate-color.helper.js → helpers/validate-color.js}
RENAMED
|
File without changes
|
|
File without changes
|