@evlop/commons 1.0.202 → 1.0.204

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/bin/generate-icons-cache.d.ts +2 -0
  2. package/dist/bin/generate-icons-cache.d.ts.map +1 -0
  3. package/dist/bin/{generate-icons-type.js → generate-icons-cache.js} +7 -1
  4. package/dist/bin/generate-icons-cache.js.map +1 -0
  5. package/dist/src/constants/iconInfo/directed-icons.d.ts +1 -1
  6. package/dist/src/constants/iconInfo/directed-icons.d.ts.map +1 -1
  7. package/dist/src/constants/iconInfo/directed-icons.js +3 -2
  8. package/dist/src/constants/iconInfo/directed-icons.js.map +1 -1
  9. package/dist/src/constants/iconInfo/index.d.ts +1 -0
  10. package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
  11. package/dist/src/constants/iconInfo/index.js +5 -0
  12. package/dist/src/constants/iconInfo/index.js.map +1 -1
  13. package/dist/src/constants/iconInfo/index.native.d.ts +23 -1
  14. package/dist/src/constants/iconInfo/index.native.d.ts.map +1 -1
  15. package/dist/src/constants/iconInfo/index.native.js +35 -2
  16. package/dist/src/constants/iconInfo/index.native.js.map +1 -1
  17. package/dist/src/constants/iconInfo/index.web.d.ts +2 -1
  18. package/dist/src/constants/iconInfo/index.web.d.ts.map +1 -1
  19. package/dist/src/constants/iconInfo/index.web.js +7 -2
  20. package/dist/src/constants/iconInfo/index.web.js.map +1 -1
  21. package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.json +102286 -0
  22. package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json +1 -0
  23. package/dist/src/constants/index.d.ts +1 -1
  24. package/dist/src/constants/index.d.ts.map +1 -1
  25. package/dist/src/constants/index.js +2 -1
  26. package/dist/src/constants/index.js.map +1 -1
  27. package/dist/src/helpers/themeHelpers.d.ts +1 -1
  28. package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
  29. package/package.json +2 -2
  30. package/dist/bin/generate-icons-type.d.ts +0 -2
  31. package/dist/bin/generate-icons-type.d.ts.map +0 -1
  32. package/dist/bin/generate-icons-type.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generate-icons-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-icons-cache.d.ts","sourceRoot":"","sources":["../../bin/generate-icons-cache.ts"],"names":[],"mappings":""}
@@ -17,6 +17,12 @@ const icons = lodash_1.reduce(iconTypeToIconNames, ({ typeNames, typeDefinations
17
17
  ].join("\n");
18
18
  return { typeNames: [...typeNames, identifierTypeName], typeDefinations: [...typeDefinations, typeDefination] };
19
19
  }, { typeNames: [], typeDefinations: [] });
20
+ require('fs').writeFileSync('./src/constants/iconInfo/reactNativeVectorIcons.lookup.json', JSON.stringify(reactNativeVectorIcons_1.default, null, 2));
21
+ require('fs').writeFileSync('./src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json', JSON.stringify(lodash_1.reduce(reactNativeVectorIcons_1.default, (acc, icon, id) => {
22
+ const idPath = id.split(':');
23
+ lodash_1.set(acc, idPath, icon.character);
24
+ return acc;
25
+ }, {})));
20
26
  require('fs').writeFileSync('./src/constants/iconInfo/types.ts', [
21
27
  ...icons.typeDefinations,
22
28
  `export type IconIdentifier = ${lodash_1.join(icons.typeNames, '|')};`,
@@ -26,4 +32,4 @@ require('fs').writeFileSync('./src/constants/iconInfo/types.ts', [
26
32
  'export default IconIdentifier;',
27
33
  ].join('\n'));
28
34
  console.log("Generated icon types");
29
- //# sourceMappingURL=generate-icons-type.js.map
35
+ //# sourceMappingURL=generate-icons-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-icons-cache.js","sourceRoot":"","sources":["../../bin/generate-icons-cache.ts"],"names":[],"mappings":";;;;;AAAA,6CAAyC;AACzC,mCAAgF;AAChF,8GAAuF;AAEvF,MAAM,WAAW,GAAG,gBAAO,CAAC,gCAAsB,EAAE,IAAI,CAAA,EAAE,CAAC,eAAM,CAAC,WAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS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AAE;IAC7D,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,YAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC,CACR,CAAC;AAEF,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,CACzB,mCAAmC,EACnC;IACE,GAAG,KAAK,CAAC,eAAe;IACxB,gCAAgC,aAAI,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,GAAG;IAC7D,EAAE;IACF,yEAAyE;IACzE,EAAE;IACF,gCAAgC;CACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;AAEF,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const directedIcons: {
1
+ export declare const directedIcons: {
2
2
  "ant-design": import("lodash").Dictionary<boolean>;
3
3
  entypo: import("lodash").Dictionary<boolean>;
4
4
  evilicons: import("lodash").Dictionary<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"directed-icons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/directed-icons.ts"],"names":[],"mappings":"AAoUA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;CAAoF,CAAA;AAEvG,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"directed-icons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/directed-icons.ts"],"names":[],"mappings":"AAoUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAAoF,CAAA;AAE9G,eAAe,aAAa,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.directedIcons = void 0;
3
4
  const lodash_1 = require("lodash");
4
5
  // list of directed icons as directed icons has to be flipped on RTL layout
5
6
  // list was provide by chatGPT
@@ -322,6 +323,6 @@ const directedIconsArray = {
322
323
  ]
323
324
  };
324
325
  // convert to directedIcons[icon-library][icon-name] => true
325
- const directedIcons = lodash_1.mapValues(directedIconsArray, icons => lodash_1.fromPairs(lodash_1.map(icons, icon => [icon, true])));
326
- exports.default = directedIcons;
326
+ exports.directedIcons = lodash_1.mapValues(directedIconsArray, icons => lodash_1.fromPairs(lodash_1.map(icons, icon => [icon, true])));
327
+ exports.default = exports.directedIcons;
327
328
  //# sourceMappingURL=directed-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"directed-icons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/directed-icons.ts"],"names":[],"mappings":";;AAAA,mCAAmD;AAEnD,2EAA2E;AAC3E,8BAA8B;AAC9B,MAAM,kBAAkB,GAAG;IACvB,YAAY,EAAE;QACZ,WAAW;QACX,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,MAAM;QACN,OAAO;QACP,YAAY;QACZ,aAAa;QACb,aAAa;QACb,cAAc;QACd,aAAa;QACb,YAAY;QACZ,UAAU;QACV,WAAW;QACX,SAAS;QACT,WAAW;QACX,IAAI;QACJ,MAAM;QACN,UAAU;QACV,YAAY;QACZ,WAAW;QACX,aAAa;KACd;IACD,QAAQ,EAAE;QACR,wBAAwB;QACxB,yBAAyB;QACzB,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,oBAAoB;QACpB,cAAc;QACd,eAAe;QACf,oBAAoB;QACpB,qBAAqB;QACrB,0BAA0B;QAC1B,2BAA2B;QAC3B,0BAA0B;QAC1B,yBAAyB;QACzB,iBAAiB;QACjB,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;QACnB,iBAAiB;KAClB;IACD,WAAW,EAAE;QACT,YAAY;QACZ,aAAa;QACb,cAAc;QACd,eAAe;QACf,MAAM;QACN,MAAM;QACN,SAAS;QACT,WAAW;QACX,WAAW;KACd;IACD,cAAc,EAAE;QACd,YAAY;QACZ,aAAa;QACb,mBAAmB;QAC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aAAa;QACb,UAAU;QACV,YAAY;QACZ,cAAc;QACd,eAAe;QACf,YAAY;QACZ,cAAc;QACd,eAAe;QACf,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,kBAAkB;QAClB,gBAAgB;QAChB,SAAS;QACT,UAAU;QACV,WAAW;QACX,WAAW;QACX,YAAY;QACZ,cAAc;QACd,eAAe;KAClB;IACD,mBAAmB,EAAE;QACjB,YAAY;QACZ,aAAa;QACb,UAAU;QACV,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,OAAO;QACP,QAAQ;QACR,aAAa;QACb,aAAa;QACb,SAAS;QACT,UAAU;QACV,aAAa;QACb,cAAc;QACd,SAAS;QACT,mBAAmB;QACnB,gBAAgB;KACnB;IACD,QAAQ,EAAE;QACN,YAAY;QACZ,aAAa;QACb,UAAU;QACV,YAAY;KACf;CACJ,CAAA;AAED,4DAA4D;AAC5D,MAAM,aAAa,GAAG,kBAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAS,CAAC,YAAG,CAAC,KAAK,EAAE,IAAI,CAAA,EAAE,CAAA,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvG,kBAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"directed-icons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/directed-icons.ts"],"names":[],"mappings":";;;AAAA,mCAAmD;AAEnD,2EAA2E;AAC3E,8BAA8B;AAC9B,MAAM,kBAAkB,GAAG;IACvB,YAAY,EAAE;QACZ,WAAW;QACX,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,MAAM;QACN,OAAO;QACP,YAAY;QACZ,aAAa;QACb,aAAa;QACb,cAAc;QACd,aAAa;QACb,YAAY;QACZ,UAAU;QACV,WAAW;QACX,SAAS;QACT,WAAW;QACX,IAAI;QACJ,MAAM;QACN,UAAU;QACV,YAAY;QACZ,WAAW;QACX,aAAa;KACd;IACD,QAAQ,EAAE;QACR,wBAAwB;QAC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1,5 +1,6 @@
1
1
  import { IconIdentifier, ReactNativeVectorIcons } from './types';
2
2
  declare const icons: ReactNativeVectorIcons;
3
+ export declare function getIconInfo(iconIdentifier: IconIdentifier): Object;
3
4
  export { IconIdentifier, ReactNativeVectorIcons };
4
5
  export default icons;
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjE,QAAA,MAAM,KAAK,wBAA+B,CAAE;AAE5C,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAA;AACjD,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjE,QAAA,MAAM,KAAK,wBAA+B,CAAE;AAE5C,wBAAgB,WAAW,CAAC,cAAc,EAAE,cAAc,UAEzD;AAED,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAA;AACjD,eAAe,KAAK,CAAC"}
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIconInfo = void 0;
3
4
  const icons = {};
5
+ function getIconInfo(iconIdentifier) {
6
+ return icons[iconIdentifier];
7
+ }
8
+ exports.getIconInfo = getIconInfo;
4
9
  exports.default = icons;
5
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK,GAAG,EAA4B,CAAE;AAG5C,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,KAAK,GAAG,EAA4B,CAAE;AAE5C,SAAgB,WAAW,CAAC,cAA8B;IACtD,OAAO,KAAK,CAAC,cAAc,CAAC,CAAC;AACjC,CAAC;AAFD,kCAEC;AAGD,kBAAe,KAAK,CAAC"}
@@ -1,3 +1,25 @@
1
- import reactNativeVectorIcons from "./reactNativeVectorIcons";
1
+ import reactNativeVectorIcons from "./reactNativeVectorIcons.lookup.min.json";
2
+ export declare function getIconInfo(iconIdentifier: string): {
3
+ id: string;
4
+ type: string;
5
+ name: string;
6
+ character: any;
7
+ isDirected: any;
8
+ variant?: undefined;
9
+ } | {
10
+ id: string;
11
+ type: string;
12
+ variant: string;
13
+ name: string;
14
+ character: any;
15
+ isDirected: any;
16
+ } | {
17
+ name: string;
18
+ id?: undefined;
19
+ type?: undefined;
20
+ character?: undefined;
21
+ isDirected?: undefined;
22
+ variant?: undefined;
23
+ };
2
24
  export default reactNativeVectorIcons;
3
25
  //# sourceMappingURL=index.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAE9E,wBAAgB,WAAW,CAAC,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EA0BjD;AAED,eAAe,sBAAsB,CAAC"}
@@ -3,6 +3,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const reactNativeVectorIcons_1 = __importDefault(require("./reactNativeVectorIcons"));
7
- exports.default = reactNativeVectorIcons_1.default;
6
+ exports.getIconInfo = void 0;
7
+ const directed_icons_1 = __importDefault(require("./directed-icons"));
8
+ const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
9
+ function getIconInfo(iconIdentifier) {
10
+ var _a, _b;
11
+ const parts = iconIdentifier.split(':');
12
+ if (parts.length === 2) {
13
+ const [library, iconName] = parts;
14
+ const character = reactNativeVectorIcons_lookup_min_json_1.default[library][iconName];
15
+ return {
16
+ id: iconIdentifier,
17
+ type: library,
18
+ name: iconName,
19
+ character,
20
+ isDirected: (_a = directed_icons_1.default[library]) === null || _a === void 0 ? void 0 : _a[iconName],
21
+ };
22
+ }
23
+ else if (parts.length === 3) {
24
+ const [library, variant, iconName] = parts;
25
+ const character = reactNativeVectorIcons_lookup_min_json_1.default[library][variant][iconName];
26
+ return {
27
+ id: iconIdentifier,
28
+ type: library,
29
+ variant,
30
+ name: iconName,
31
+ character,
32
+ isDirected: (_b = directed_icons_1.default[library]) === null || _b === void 0 ? void 0 : _b[iconName],
33
+ };
34
+ }
35
+ else {
36
+ return { name: iconIdentifier };
37
+ }
38
+ }
39
+ exports.getIconInfo = getIconInfo;
40
+ exports.default = reactNativeVectorIcons_lookup_min_json_1.default;
8
41
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,kBAAe,gCAAsB,CAAC"}
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,sHAA8E;AAE9E,SAAgB,WAAW,CAAC,cAAsB;;IAChD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QACpB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAClC,MAAM,SAAS,GAAG,gDAAsB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC5D,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3C,MAAM,SAAS,GAAG,gDAAsB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QACrE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM;QACL,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,CAAA;KAChC;AACH,CAAC;AA1BD,kCA0BC;AAED,kBAAe,gDAAsB,CAAC"}
@@ -1,3 +1,4 @@
1
- import reactNativeVectorIcons from "./reactNativeVectorIcons";
1
+ import reactNativeVectorIcons from "./reactNativeVectorIcons.lookup.json";
2
+ export declare function getIconInfo(iconIdentifier: string): any;
2
3
  export default reactNativeVectorIcons;
3
4
  //# sourceMappingURL=index.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAE1E,wBAAgB,WAAW,CAAC,cAAc,EAAE,MAAM,OAEjD;AAED,eAAe,sBAAsB,CAAC"}
@@ -3,6 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const reactNativeVectorIcons_1 = __importDefault(require("./reactNativeVectorIcons"));
7
- exports.default = reactNativeVectorIcons_1.default;
6
+ exports.getIconInfo = void 0;
7
+ const reactNativeVectorIcons_lookup_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.json"));
8
+ function getIconInfo(iconIdentifier) {
9
+ return reactNativeVectorIcons_lookup_json_1.default[iconIdentifier];
10
+ }
11
+ exports.getIconInfo = getIconInfo;
12
+ exports.default = reactNativeVectorIcons_lookup_json_1.default;
8
13
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,kBAAe,gCAAsB,CAAC"}
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":";;;;;;AAAA,8GAA0E;AAE1E,SAAgB,WAAW,CAAC,cAAsB;IAC9C,OAAO,4CAAsB,CAAC,cAAc,CAAC,CAAC;AAClD,CAAC;AAFD,kCAEC;AAED,kBAAe,4CAAsB,CAAC"}