@uxf/icons-generator 10.0.0-beta.19 → 10.0.0-beta.80

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": "10.0.0-beta.19",
3
+ "version": "10.0.0-beta.80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,8 +17,7 @@
17
17
  "url": "git+https://gitlab.com/uxf-npm/icons-generator.git"
18
18
  },
19
19
  "dependencies": {
20
- "fast-xml-parser": "^3.20.3",
21
- "fs": "*"
20
+ "fast-xml-parser": "4.3.2"
22
21
  },
23
22
  "author": "",
24
23
  "license": "ISC",
@@ -6,9 +6,9 @@ const _generateDefinitionFile_1 = require("../utils/_generateDefinitionFile");
6
6
  const _generateSeparateIconFiles_1 = require("../utils/_generateSeparateIconFiles");
7
7
  const _generateSpriteFile_1 = require("../utils/_generateSpriteFile");
8
8
  const _getConfig_1 = require("../utils/_getConfig");
9
+ const _removeUnusedSeparateIconFiles_1 = require("../utils/_removeUnusedSeparateIconFiles");
9
10
  const _check_1 = require("../utils/check/_check");
10
11
  const _validateSourceData_1 = require("../utils/check/_validateSourceData");
11
- const _removeUnusedSeparateIconFiles_1 = require("../utils/_removeUnusedSeparateIconFiles");
12
12
  const config = (0, _getConfig_1._getConfig)();
13
13
  let error = false;
14
14
  let shouldUpdate = false;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._generateSeparateIconFiles = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const types_1 = require("../types");
6
- const _createPath_1 = require("./_createPath");
7
6
  const _createIconContent_1 = require("./_createIconContent");
7
+ const _createPath_1 = require("./_createPath");
8
8
  function _generateSeparateIconFiles({ source, directory, mode, }) {
9
9
  (0, _createPath_1._createPath)(directory, false);
10
10
  switch (mode) {
@@ -8,7 +8,7 @@ function _validateSourceData({ source, mode }) {
8
8
  case types_1.Mode.Simple:
9
9
  Object.keys(source).map((name) => {
10
10
  const svg = source[name];
11
- if ((0, fast_xml_parser_1.validate)(svg.data) !== true) {
11
+ if (fast_xml_parser_1.XMLValidator.validate(`<svg>${svg.data}</svg>`) !== true) {
12
12
  throw new Error(`Invalid SVG data for icon "${name}"`);
13
13
  }
14
14
  });
@@ -18,7 +18,7 @@ function _validateSourceData({ source, mode }) {
18
18
  const sizes = source[name];
19
19
  return Object.keys(sizes).map((s) => {
20
20
  const svg = sizes[s];
21
- if ((0, fast_xml_parser_1.validate)(svg) !== true) {
21
+ if (fast_xml_parser_1.XMLValidator.validate(`<svg>${svg}</svg>`) !== true) {
22
22
  throw new Error(`Invalid SVG data for icon "${name}"`);
23
23
  }
24
24
  });
@@ -26,5 +26,23 @@ module.exports = {
26
26
  height: 42,
27
27
  data: `<path d="m23.916 6 1.125-1.123c3.14-3.06 7.49-4.454 11.765-3.742A13.397 13.397 0 0 1 48 14.353v.544c0 3.89-1.612 7.613-4.462 10.266L26.597 40.978A3.806 3.806 0 0 1 24 42a3.806 3.806 0 0 1-2.597-1.022L4.462 25.163A14.038 14.038 0 0 1 0 14.897v-.543a13.4 13.4 0 0 1 11.194-13.22c4.19-.71 8.625.682 11.681 3.743L23.915 6Zm0 4.247-3.16-3.253a10.413 10.413 0 0 0-9.065-2.9c-5.015.836-8.775 5.178-8.775 10.26v.543c0 3.066 1.354 5.981 3.592 8.072l16.939 15.816c.15.14.347.215.469.215.29 0 .487-.075.637-.215l16.94-15.816A11.059 11.059 0 0 0 45 14.897v-.543c0-5.082-3.675-9.424-8.69-10.26-3.394-.553-6.694.53-9.066 2.9l-3.328 3.253Z" fill="#fff" />`,
28
28
  },
29
+ lagSk: {
30
+ width: 51,
31
+ height: 51,
32
+ data: `<g clip-path="url(#clip0_3040_8323)">
33
+ <path d="M50.9149 20.287H0.915009V10.2295C0.915009 9.7534 1.30104 9.36736 1.77712 9.36736H50.0529C50.529 9.36736 50.915 9.7534 50.915 10.2295L50.9149 20.287Z" fill="#F5F5F5"/>
34
+ <path d="M50.0528 42.126H1.77712C1.30104 42.126 0.915009 41.74 0.915009 41.2639V31.2065H50.9149V41.2639C50.9149 41.7401 50.5289 42.126 50.0528 42.126Z" fill="#FF4B55"/>
35
+ <path d="M50.9149 20.2868H0.915009V31.2057H50.9149V20.2868Z" fill="#41479B"/>
36
+ <path d="M13.6321 33.88C13.3769 33.7335 7.38034 30.2457 7.38034 24.8846V17.5571H20.3114V24.8846C20.3114 30.2457 14.3148 33.7335 14.0596 33.88L13.8459 34.002L13.6321 33.88Z" fill="#FF4B55"/>
37
+ <path d="M17.2327 23.5916L15.2005 23.8593H14.5233V22.6466H14.9296L16.5552 22.9142L16.3351 21.9692L16.5552 21.0242L14.9296 21.2918H14.5233V20.8822L14.7909 18.8502L13.8459 19.1255L12.901 18.8502L13.1686 20.8822V21.2918H12.7621L11.1366 21.0242L11.3567 21.9692L11.1366 22.9142L12.7621 22.6466H13.1686V23.8593H12.4913L10.4592 23.5916L10.7344 24.5365L10.4592 25.4815L12.4913 25.2138H13.1686V28.333H14.5233V25.2138H15.2005L17.2327 25.4815L16.9575 24.5365L17.2327 23.5916Z" fill="#F5F5F5"/>
38
+ <path d="M13.8461 27.0398C12.9557 27.0398 12.192 27.58 11.8635 28.3503C11.8055 28.3455 11.75 28.3329 11.6909 28.3329C10.5434 28.3329 9.61416 29.2323 9.54834 30.3632C11.2939 32.5121 13.4804 33.7925 13.6323 33.8799L13.8461 34.002L14.0599 33.8799C14.2118 33.7925 16.3982 32.5122 18.1438 30.3632C18.078 29.2323 17.1488 28.3329 16.0013 28.3329C15.9422 28.3329 15.8867 28.3455 15.8287 28.3503C15.5002 27.58 14.7365 27.0398 13.8461 27.0398Z" fill="#41479B"/>
39
+ <path d="M19.8806 17.9881C19.8806 17.9881 19.8806 23.1606 19.8806 24.8847C19.8806 30.0572 13.8462 33.5054 13.8462 33.5054C13.8462 33.5054 7.81172 30.0572 7.81172 24.8847C7.81172 23.1606 7.81172 17.9881 7.81172 17.9881H19.8806ZM20.7427 17.126H19.8805H7.81172H6.94962V17.9881V24.8847C6.94962 30.4929 13.1544 34.1029 13.4185 34.2538L13.8462 34.4983L14.2739 34.2538C14.5381 34.1029 20.7428 30.4928 20.7428 24.8847V17.9881V17.126H20.7427Z" fill="#F5F5F5"/>
40
+ </g>
41
+ <defs>
42
+ <clipPath id="clip0_3040_8323">
43
+ <rect width="50" height="50" fill="white" transform="translate(0.914062 0.746582)"/>
44
+ </clipPath>
45
+ </defs>`,
46
+ },
29
47
  },
30
48
  };