@iconify/tools 2.1.1 → 2.2.0-beta.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.
Files changed (89) hide show
  1. package/lib/colors/attribs.cjs +0 -2
  2. package/lib/colors/attribs.d.ts +4 -4
  3. package/lib/colors/detect.cjs +0 -2
  4. package/lib/colors/parse.cjs +0 -2
  5. package/lib/colors/parse.d.ts +4 -4
  6. package/lib/colors/validate.cjs +0 -2
  7. package/lib/css/parse.cjs +0 -2
  8. package/lib/css/parser/error.cjs +0 -2
  9. package/lib/css/parser/export.cjs +0 -2
  10. package/lib/css/parser/strings.cjs +0 -2
  11. package/lib/css/parser/text.cjs +0 -2
  12. package/lib/css/parser/tokens.cjs +0 -2
  13. package/lib/css/parser/tree.cjs +0 -2
  14. package/lib/css/parser/types.d.ts +4 -4
  15. package/lib/download/api/cache.cjs +0 -2
  16. package/lib/download/api/download.cjs +1 -7
  17. package/lib/download/api/index.cjs +1 -7
  18. package/lib/download/git/branch.cjs +0 -2
  19. package/lib/download/git/hash.cjs +0 -2
  20. package/lib/download/git/index.cjs +0 -2
  21. package/lib/download/git/reset.cjs +0 -2
  22. package/lib/download/github/hash.cjs +0 -2
  23. package/lib/download/github/index.cjs +0 -2
  24. package/lib/download/gitlab/hash.cjs +0 -2
  25. package/lib/download/gitlab/index.cjs +0 -2
  26. package/lib/download/gitlab/types.cjs +0 -2
  27. package/lib/download/helpers/untar.cjs +0 -2
  28. package/lib/download/helpers/unzip.cjs +1 -7
  29. package/lib/download/index.cjs +0 -2
  30. package/lib/download/index.d.ts +4 -4
  31. package/lib/download/npm/index.cjs +0 -2
  32. package/lib/download/npm/version.cjs +0 -2
  33. package/lib/download/types/modified.d.ts +1 -1
  34. package/lib/download/types/sources.d.ts +1 -1
  35. package/lib/export/directory.cjs +0 -2
  36. package/lib/export/helpers/custom-files.cjs +0 -2
  37. package/lib/export/helpers/prepare.cjs +0 -2
  38. package/lib/export/helpers/types-version.cjs +0 -2
  39. package/lib/export/icon-package.cjs +0 -2
  40. package/lib/export/json-package.cjs +0 -2
  41. package/lib/icon-set/index.cjs +0 -2
  42. package/lib/icon-set/match.cjs +0 -2
  43. package/lib/icon-set/merge.cjs +0 -2
  44. package/lib/icon-set/modified.cjs +0 -2
  45. package/lib/icon-set/props.cjs +0 -2
  46. package/lib/icon-set/tags.cjs +0 -2
  47. package/lib/icon-set/types.d.ts +7 -7
  48. package/lib/import/directory.cjs +0 -2
  49. package/lib/import/directory.d.ts +2 -2
  50. package/lib/import/figma/index.cjs +0 -2
  51. package/lib/import/figma/nodes.cjs +0 -2
  52. package/lib/import/figma/query.cjs +0 -2
  53. package/lib/import/figma/types/api.d.ts +1 -1
  54. package/lib/import/figma/types/nodes.d.ts +5 -5
  55. package/lib/import/figma/types/options.d.ts +1 -1
  56. package/lib/index.cjs +0 -2
  57. package/lib/misc/bump-version.cjs +0 -2
  58. package/lib/misc/cheerio.d.ts +2 -2
  59. package/lib/misc/compare-dirs.cjs +0 -2
  60. package/lib/misc/exec.cjs +0 -2
  61. package/lib/misc/keyword.cjs +0 -2
  62. package/lib/misc/scan.cjs +0 -2
  63. package/lib/misc/scan.d.ts +5 -5
  64. package/lib/misc/write-json.cjs +0 -2
  65. package/lib/optimise/flags.cjs +0 -2
  66. package/lib/optimise/global-style.cjs +0 -2
  67. package/lib/optimise/scale.cjs +0 -2
  68. package/lib/optimise/svgo.cjs +1 -3
  69. package/lib/optimise/svgo.d.ts +4 -4
  70. package/lib/optimise/svgo.mjs +1 -1
  71. package/lib/svg/analyse/error.cjs +0 -2
  72. package/lib/svg/analyse/types.d.ts +1 -1
  73. package/lib/svg/analyse.cjs +0 -2
  74. package/lib/svg/cleanup/attribs.cjs +0 -2
  75. package/lib/svg/cleanup/bad-tags.cjs +0 -2
  76. package/lib/svg/cleanup/inline-style.cjs +0 -2
  77. package/lib/svg/cleanup/root-style.cjs +0 -2
  78. package/lib/svg/cleanup/root-svg.cjs +0 -2
  79. package/lib/svg/cleanup/svgo-style.cjs +0 -2
  80. package/lib/svg/cleanup.cjs +0 -2
  81. package/lib/svg/data/attributes.cjs +0 -2
  82. package/lib/svg/data/tags.cjs +0 -2
  83. package/lib/svg/index.cjs +1 -7
  84. package/lib/svg/parse-style.cjs +0 -2
  85. package/lib/svg/parse-style.d.ts +3 -3
  86. package/lib/svg/parse.cjs +0 -2
  87. package/lib/svg/parse.d.ts +1 -1
  88. package/license.txt +0 -0
  89. package/package.json +533 -422
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const commonColorAttributes = ["color"];
6
4
  const shapeColorAttributes = ["fill", "stroke"];
7
5
  const specialColorAttributes = [
@@ -3,13 +3,13 @@ import { Color } from '@iconify/utils/lib/colors/types';
3
3
  /**
4
4
  * Color attributes
5
5
  */
6
- declare type CommonColorAttributes = 'color';
6
+ type CommonColorAttributes = 'color';
7
7
  declare const commonColorAttributes: CommonColorAttributes[];
8
- declare type ShapeColorAttributes = 'fill' | 'stroke';
8
+ type ShapeColorAttributes = 'fill' | 'stroke';
9
9
  declare const shapeColorAttributes: ShapeColorAttributes[];
10
- declare type SpecialColorAttributes = 'stop-color' | 'flood-color';
10
+ type SpecialColorAttributes = 'stop-color' | 'flood-color';
11
11
  declare const specialColorAttributes: SpecialColorAttributes[];
12
- declare type ColorAttributes = CommonColorAttributes | ShapeColorAttributes | SpecialColorAttributes;
12
+ type ColorAttributes = CommonColorAttributes | ShapeColorAttributes | SpecialColorAttributes;
13
13
  /**
14
14
  * Default values
15
15
  */
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const colors_parse = require('./parse.cjs');
6
4
  require('@iconify/utils/lib/colors');
7
5
  require('../svg/data/tags.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const colors = require('@iconify/utils/lib/colors');
6
4
  const svg_data_tags = require('../svg/data/tags.cjs');
7
5
  const svg_parseStyle = require('../svg/parse-style.cjs');
@@ -22,12 +22,12 @@ interface FindColorsResult {
22
22
  * - 'unset' to delete old value
23
23
  * - 'remove' to remove shape or rule
24
24
  */
25
- declare type ParseColorsCallbackResult = Color | string | 'remove' | 'unset';
26
- declare type ParseColorsCallback = (attr: ColorAttributes, colorString: string, parsedColor: Color | null, tagName?: string, item?: ExtendedTagElementWithColors) => ParseColorsCallbackResult | Promise<ParseColorsCallbackResult>;
25
+ type ParseColorsCallbackResult = Color | string | 'remove' | 'unset';
26
+ type ParseColorsCallback = (attr: ColorAttributes, colorString: string, parsedColor: Color | null, tagName?: string, item?: ExtendedTagElementWithColors) => ParseColorsCallbackResult | Promise<ParseColorsCallbackResult>;
27
27
  /**
28
28
  * Callback for default color
29
29
  */
30
- declare type ParseColorOptionsDefaultColorCallback = (prop: string, item: ExtendedTagElementWithColors, treeItem: ElementsTreeItem, iconData: AnalyseSVGStructureResult) => Color;
30
+ type ParseColorOptionsDefaultColorCallback = (prop: string, item: ExtendedTagElementWithColors, treeItem: ElementsTreeItem, iconData: AnalyseSVGStructureResult) => Color;
31
31
  /**
32
32
  * Options
33
33
  */
@@ -38,7 +38,7 @@ interface ParseColorsOptions extends AnalyseSVGStructureOptions {
38
38
  /**
39
39
  * Extend properties for element
40
40
  */
41
- declare type ItemColors = Partial<Record<ColorAttributes, Color | string>>;
41
+ type ItemColors = Partial<Record<ColorAttributes, Color | string>>;
42
42
  interface ExtendedTagElementWithColors extends ExtendedTagElement {
43
43
  _colors?: ItemColors;
44
44
  _removed?: boolean;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const colors = require('@iconify/utils/lib/colors');
6
4
  const colors_parse = require('./parse.cjs');
7
5
  require('../svg/data/tags.cjs');
package/lib/css/parse.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const css_parser_tokens = require('./parser/tokens.cjs');
6
4
  require('./parser/error.cjs');
7
5
  require('./parser/strings.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function styleParseError(message, code, index) {
6
4
  let fullMessage = message;
7
5
  if (typeof index === "number" && index !== -1) {
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const tab = " ";
6
4
  const nl = "\n";
7
5
  function tokensToString(tree) {
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const css_parser_error = require('./error.cjs');
6
4
 
7
5
  function findEndOfQuotedString(code, quote, start) {
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function mergeTextTokens(tokens) {
6
4
  return tokens.map((token) => token.text).join("").trim();
7
5
  }
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const css_parser_error = require('./error.cjs');
6
4
  const css_parser_strings = require('./strings.cjs');
7
5
  const css_parser_text = require('./text.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function tokensTree(tokens) {
6
4
  const result = [];
7
5
  let index = 0;
@@ -9,7 +9,7 @@ interface TextToken {
9
9
  /**
10
10
  * Values
11
11
  */
12
- declare type CSSATValue = string | string[];
12
+ type CSSATValue = string | string[];
13
13
  /**
14
14
  * Tokens
15
15
  */
@@ -37,8 +37,8 @@ interface CSSCloseToken {
37
37
  type: 'close';
38
38
  index: number;
39
39
  }
40
- declare type CSSTokenWithSelector = CSSSelectorToken | CSSAtRuleToken;
41
- declare type CSSToken = CSSRuleToken | CSSSelectorToken | CSSAtRuleToken | CSSCloseToken;
40
+ type CSSTokenWithSelector = CSSSelectorToken | CSSAtRuleToken;
41
+ type CSSToken = CSSRuleToken | CSSSelectorToken | CSSAtRuleToken | CSSCloseToken;
42
42
  /**
43
43
  * Tree tokens
44
44
  */
@@ -48,6 +48,6 @@ interface CSSSelectorTreeToken extends CSSSelectorToken {
48
48
  interface CSSAtRuleTreeToken extends CSSAtRuleToken {
49
49
  children: CSSTreeToken[];
50
50
  }
51
- declare type CSSTreeToken = CSSRuleToken | CSSSelectorTreeToken | CSSAtRuleTreeToken;
51
+ type CSSTreeToken = CSSRuleToken | CSSSelectorTreeToken | CSSAtRuleTreeToken;
52
52
 
53
53
  export { CSSATValue, CSSAtRuleToken, CSSAtRuleTreeToken, CSSCloseToken, CSSRuleToken, CSSSelectorToken, CSSSelectorTreeToken, CSSToken, CSSTokenWithSelector, CSSTreeToken, TextToken };
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const crypto = require('crypto');
7
5
  const misc_scan = require('../../misc/scan.cjs');
@@ -1,22 +1,16 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fetch = require('node-fetch');
6
4
  const util = require('util');
7
5
  const stream = require('stream');
8
6
  const fs = require('fs');
9
7
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
11
-
12
- const fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
13
-
14
8
  const streamPipeline = util.promisify(stream.pipeline);
15
9
  async function downloadFile(query, target) {
16
10
  const params = query.params ? query.params.toString() : "";
17
11
  const url = query.uri + (params ? "?" + params : "");
18
12
  const headers = query.headers;
19
- const response = await fetch__default(url, {
13
+ const response = await fetch(url, {
20
14
  headers
21
15
  });
22
16
  if (!response.ok || !response.body) {
@@ -1,17 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fetch = require('node-fetch');
6
4
  const download_api_cache = require('./cache.cjs');
7
5
  require('fs');
8
6
  require('crypto');
9
7
  require('../../misc/scan.cjs');
10
8
 
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
12
-
13
- const fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
14
-
15
9
  async function sendAPIQuery(query, cache) {
16
10
  const cacheKey = cache ? download_api_cache.apiCacheKey(query) : "";
17
11
  if (cache) {
@@ -36,7 +30,7 @@ async function sendQuery(query) {
36
30
  console.log("Fetch:", url);
37
31
  const headers = query.headers;
38
32
  try {
39
- const response = await fetch__default(url, {
33
+ const response = await fetch(url, {
40
34
  headers
41
35
  });
42
36
  if (response.status >= 400) {
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const misc_exec = require('../../misc/exec.cjs');
6
4
  require('pathe');
7
5
  require('child_process');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const misc_exec = require('../../misc/exec.cjs');
6
4
  require('pathe');
7
5
  require('child_process');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const export_helpers_prepare = require('../../export/helpers/prepare.cjs');
6
4
  const misc_exec = require('../../misc/exec.cjs');
7
5
  const download_git_branch = require('./branch.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  require('cheerio');
6
4
  require('@iconify/utils');
7
5
  require('../../svg/data/attributes.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const download_api_index = require('../api/index.cjs');
6
4
  require('node-fetch');
7
5
  require('../api/cache.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const export_helpers_prepare = require('../../export/helpers/prepare.cjs');
7
5
  const download_github_hash = require('./hash.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const download_api_index = require('../api/index.cjs');
6
4
  const download_gitlab_types = require('./types.cjs');
7
5
  require('node-fetch');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const export_helpers_prepare = require('../../export/helpers/prepare.cjs');
7
5
  const download_gitlab_hash = require('./hash.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const defaultGitLabBaseURI = "https://gitlab.com/api/v4/projects";
6
4
 
7
5
  exports.defaultGitLabBaseURI = defaultGitLabBaseURI;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const tar = require('tar');
6
4
 
7
5
  async function untar(file, path) {
@@ -1,17 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const extract = require('extract-zip');
6
4
  const fs = require('fs');
7
5
 
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
9
-
10
- const extract__default = /*#__PURE__*/_interopDefaultLegacy(extract);
11
-
12
6
  async function unzip(source, path) {
13
7
  const dir = await fs.promises.realpath(path);
14
- await extract__default(source, {
8
+ await extract(source, {
15
9
  dir
16
10
  });
17
11
  }
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const download_github_index = require('./github/index.cjs');
6
4
  const download_git_index = require('./git/index.cjs');
7
5
  const download_npm_index = require('./npm/index.cjs');
@@ -30,16 +30,16 @@ interface DownloadNPMPackage {
30
30
  /**
31
31
  * Combinations based on type
32
32
  */
33
- declare type DownloadParamsMixin<T extends DownloadSourceType> = T extends 'git' ? DownloadGitRepo : T extends 'github' ? DownloadGitHubRepo : T extends 'gitlab' ? DownloadGitLabRepo : T extends 'npm' ? DownloadNPMPackage : never;
33
+ type DownloadParamsMixin<T extends DownloadSourceType> = T extends 'git' ? DownloadGitRepo : T extends 'github' ? DownloadGitHubRepo : T extends 'gitlab' ? DownloadGitLabRepo : T extends 'npm' ? DownloadNPMPackage : never;
34
34
  /**
35
35
  * Combinations
36
36
  */
37
- declare type DownloadParams = DownloadGitRepo | DownloadGitHubRepo | DownloadGitLabRepo | DownloadNPMPackage;
37
+ type DownloadParams = DownloadGitRepo | DownloadGitHubRepo | DownloadGitLabRepo | DownloadNPMPackage;
38
38
  /**
39
39
  * Pick options or result from combinations
40
40
  */
41
- declare type DownloadOptions<T extends DownloadSourceType> = DownloadParamsMixin<T>['options'];
42
- declare type DownloadResult<T extends DownloadSourceType> = Promise<DocumentNotModified | DownloadParamsMixin<T>['result']>;
41
+ type DownloadOptions<T extends DownloadSourceType> = DownloadParamsMixin<T>['options'];
42
+ type DownloadResult<T extends DownloadSourceType> = Promise<DocumentNotModified | DownloadParamsMixin<T>['result']>;
43
43
  declare function downloadPackage<T extends 'git'>(options: DownloadOptions<T>): DownloadResult<T>;
44
44
  declare function downloadPackage<T extends 'github'>(options: DownloadOptions<T>): DownloadResult<T>;
45
45
  declare function downloadPackage<T extends 'gitlab'>(options: DownloadOptions<T>): DownloadResult<T>;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const export_helpers_prepare = require('../../export/helpers/prepare.cjs');
7
5
  const download_api_download = require('../api/download.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const misc_exec = require('../../misc/exec.cjs');
7
5
  require('pathe');
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Document wasn't modified
3
3
  */
4
- declare type DocumentNotModified = 'not_modified';
4
+ type DocumentNotModified = 'not_modified';
5
5
 
6
6
  export { DocumentNotModified };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Download types
3
3
  */
4
- declare type DownloadSourceType = 'git' | 'github' | 'gitlab' | 'npm';
4
+ type DownloadSourceType = 'git' | 'github' | 'gitlab' | 'npm';
5
5
  /**
6
6
  * Type in other objects
7
7
  */
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const export_helpers_prepare = require('./helpers/prepare.cjs');
7
5
  require('pathe');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const misc_writeJson = require('../../misc/write-json.cjs');
7
5
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const pathe = require('pathe');
7
5
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  require('local-pkg');
6
4
  require('fs');
7
5
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const export_helpers_prepare = require('./helpers/prepare.cjs');
7
5
  const misc_writeJson = require('../misc/write-json.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const defaults = require('@iconify/utils/lib/icon/defaults');
7
5
  const export_helpers_prepare = require('./helpers/prepare.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const defaults = require('@iconify/utils/lib/icon/defaults');
6
4
  const build = require('@iconify/utils/lib/svg/build');
7
5
  const minify = require('@iconify/utils/lib/icon-set/minify');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const defaults = require('@iconify/utils/lib/icon/defaults');
6
4
 
7
5
  const maxIteration = 5;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const iconSet_index = require('./index.cjs');
6
4
  const iconSet_match = require('./match.cjs');
7
5
  const iconSet_modified = require('./modified.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function hasIconDataBeenModified(set1, set2) {
6
4
  const entries1 = set1.entries;
7
5
  const entries2 = set2.entries;
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const objects = require('@iconify/utils/lib/misc/objects');
6
4
  const utils = require('@iconify/utils');
7
5
 
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const defaults = require('@iconify/utils/lib/icon/defaults');
6
4
  const colors_detect = require('../colors/detect.cjs');
7
5
  require('../colors/parse.cjs');
@@ -10,14 +10,14 @@ interface IconCategory {
10
10
  /**
11
11
  * Get common properties: IconifyOptional + APIIconAttributes
12
12
  */
13
- declare type CommonProps<A, B> = {
13
+ type CommonProps<A, B> = {
14
14
  [K in keyof A & keyof B]?: A[K] extends B[K] ? A[K] : never;
15
15
  };
16
- declare type CommonIconProps = CommonProps<ExtendedIconifyIcon, ExtendedIconifyAlias>;
16
+ type CommonIconProps = CommonProps<ExtendedIconifyIcon, ExtendedIconifyAlias>;
17
17
  /**
18
18
  * Exclude IconifyOptional from CommonIconProps
19
19
  */
20
- declare type ExtraIconProps = Omit<CommonIconProps, keyof IconifyOptional>;
20
+ type ExtraIconProps = Omit<CommonIconProps, keyof IconifyOptional>;
21
21
  /**
22
22
  * Partials
23
23
  */
@@ -49,8 +49,8 @@ interface IconSetIconVariation extends IconWithPropsData, IconParentData {
49
49
  /**
50
50
  * All icon types
51
51
  */
52
- declare type IconSetIconEntry = IconSetIcon | IconSetIconAlias | IconSetIconVariation;
53
- declare type IconSetIconType = IconSetIconEntry['type'];
52
+ type IconSetIconEntry = IconSetIcon | IconSetIconAlias | IconSetIconVariation;
53
+ type IconSetIconType = IconSetIconEntry['type'];
54
54
  /**
55
55
  * Full icon with extra stuff
56
56
  */
@@ -68,7 +68,7 @@ interface CheckThemeResult {
68
68
  *
69
69
  * Return false to stop loop
70
70
  */
71
- declare type IconSetAsyncForEachCallbackResult = void | false;
72
- declare type IconSetAsyncForEachCallback = (name: string, type: IconSetIconEntry['type']) => Promise<IconSetAsyncForEachCallbackResult> | IconSetAsyncForEachCallbackResult;
71
+ type IconSetAsyncForEachCallbackResult = void | false;
72
+ type IconSetAsyncForEachCallback = (name: string, type: IconSetIconEntry['type']) => Promise<IconSetAsyncForEachCallbackResult> | IconSetAsyncForEachCallbackResult;
73
73
 
74
74
  export { CheckThemeResult, CommonIconProps, ExtraIconProps, IconCategory, IconParentData, IconSetAsyncForEachCallback, IconSetIcon, IconSetIconAlias, IconSetIconEntry, IconSetIconType, IconSetIconVariation, IconWithCategories, IconWithChars, IconWithPropsData, ResolvedIconifyIcon };
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const fs = require('fs');
6
4
  const iconSet_index = require('../icon-set/index.cjs');
7
5
  const misc_keyword = require('../misc/keyword.cjs');
@@ -23,8 +23,8 @@ interface ImportDirectoryFileEntry {
23
23
  *
24
24
  * Callback can be asynchronous
25
25
  */
26
- declare type ImportDirectoryKeywordCallbackResult = string | undefined;
27
- declare type ImportDirectoryKeywordCallback = (file: ImportDirectoryFileEntry, defaultKeyword: string, iconSet: IconSet) => ImportDirectoryKeywordCallbackResult | Promise<ImportDirectoryKeywordCallbackResult>;
26
+ type ImportDirectoryKeywordCallbackResult = string | undefined;
27
+ type ImportDirectoryKeywordCallback = (file: ImportDirectoryFileEntry, defaultKeyword: string, iconSet: IconSet) => ImportDirectoryKeywordCallbackResult | Promise<ImportDirectoryKeywordCallbackResult>;
28
28
  /**
29
29
  * Options
30
30
  */
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const iconSet_index = require('../../icon-set/index.cjs');
6
4
  const svg_index = require('../../svg/index.cjs');
7
5
  const svg_cleanup = require('../../svg/cleanup.cjs');
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function getFigmaIconNodes(document, options) {
6
4
  const nodes = {
7
5
  icons: /* @__PURE__ */ Object.create(null)
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const download_api_index = require('../../download/api/index.cjs');
6
4
  const download_api_cache = require('../../download/api/cache.cjs');
7
5
  require('node-fetch');
@@ -25,7 +25,7 @@ interface FigmaDocumentNode extends BaseFigmaNode {
25
25
  type: 'DOCUMENT';
26
26
  children: FigmaNode[];
27
27
  }
28
- declare type FigmaNode = GenericFigmaNode | IconFigmaNode;
28
+ type FigmaNode = GenericFigmaNode | IconFigmaNode;
29
29
  /**
30
30
  * Document response from API
31
31
  */