@uxf/icons-generator 11.45.0 → 11.52.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/icons-generator",
3
- "version": "11.45.0",
3
+ "version": "11.52.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/types.d.ts CHANGED
@@ -18,7 +18,7 @@ export type _IconsConfig = {
18
18
  configFile: string;
19
19
  customDefinitionContent?: string;
20
20
  definitionFile: string;
21
- moduleDefinition?: ModuleDefinition;
21
+ moduleDefinition?: ModuleDefinition | false;
22
22
  ext: "ts" | "js";
23
23
  fallbackFilesDirectory: string;
24
24
  generatedDirectory: string;
@@ -33,11 +33,13 @@ ${iconDefinitions.join("\n")}
33
33
  } as const;
34
34
 
35
35
  export type ${config.typeName} = keyof typeof ICONS;
36
-
37
- declare module "@uxf/ui/icon/theme" {
38
- interface IconsSet {
36
+ ${config.moduleDefinition
37
+ ? `
38
+ declare module "${config.moduleDefinition.moduleName}" {
39
+ ${config.moduleDefinition.format} ${config.moduleDefinition.typeName} {
39
40
  ${iconNames.map((iconName) => ` "${iconName}": true;`).join("\n")}
40
41
  }
41
42
  }
42
- ${config.customDefinitionContent ? `\n${config.customDefinitionContent}\n` : ""}`;
43
+ `
44
+ : ""}${config.customDefinitionContent ? `\n${config.customDefinitionContent}\n` : ""}`;
43
45
  }
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._getConfig = _getConfig;
4
4
  const empty_object_1 = require("@uxf/core/constants/empty-object");
5
5
  function _getModuleDefinition(data) {
6
- if (!data) {
7
- return undefined;
6
+ if (data === false) {
7
+ return false;
8
8
  }
9
9
  return {
10
- moduleName: data.moduleName || "icons",
11
- typeName: data.typeName || "IconsSet",
12
- format: data.format || "interface",
10
+ moduleName: (data === null || data === void 0 ? void 0 : data.moduleName) || "@uxf/ui/icon/theme",
11
+ typeName: (data === null || data === void 0 ? void 0 : data.typeName) || "IconsSet",
12
+ format: (data === null || data === void 0 ? void 0 : data.format) || "interface",
13
13
  };
14
14
  }
15
15
  function _getConfig(confFile) {