@evlop/commons 1.0.203 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) 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 +20 -4
  10. package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
  11. package/dist/src/constants/iconInfo/index.js +37 -2
  12. package/dist/src/constants/iconInfo/index.js.map +1 -1
  13. package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json +1 -0
  14. package/dist/src/constants/index.d.ts +1 -1
  15. package/dist/src/constants/index.d.ts.map +1 -1
  16. package/dist/src/constants/index.js +2 -1
  17. package/dist/src/constants/index.js.map +1 -1
  18. package/package.json +2 -2
  19. package/dist/bin/generate-icons-type.d.ts +0 -2
  20. package/dist/bin/generate-icons-type.d.ts.map +0 -1
  21. package/dist/bin/generate-icons-type.js.map +0 -1
  22. package/dist/src/constants/iconInfo/index.native.d.ts +0 -3
  23. package/dist/src/constants/iconInfo/index.native.d.ts.map +0 -1
  24. package/dist/src/constants/iconInfo/index.native.js +0 -8
  25. package/dist/src/constants/iconInfo/index.native.js.map +0 -1
  26. package/dist/src/constants/iconInfo/index.web.d.ts +0 -3
  27. package/dist/src/constants/iconInfo/index.web.d.ts.map +0 -1
  28. package/dist/src/constants/iconInfo/index.web.js +0 -8
  29. package/dist/src/constants/iconInfo/index.web.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,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1G,MAAM,mBAAmB,GAAG,kBAAS,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CA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AAS,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;QACnB,oBAAoB;QACpB,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,aAAa;QACb,cAAc;QACd,eAAe;QACf,aAAa;QACb,cAAc;QACd,iBAAiB;QACjB,kBAAkB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AkB;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;QACxB,yBAAyB;QACzB,YAAY;QACZ,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,oBAAoB;QACpB,cAAc;QACd,eAAe;QACf,oBAAoB;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AAc;QACd,WAAW;KACd;IACD,UAAU,EAAE;QACR,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,aAAa;QACb,cAAc;QACd,eAAe;QACf,eAAe;QACf,cAAc;QACd,mBAAmB;QACnB,oBAAoB;KACvB;IACD,YAAY,EAAE;QACV,YAAY;QACZ,aAAa;QACb,UAAU;QACV,YAAY;QACZ,cAAc;QACd,eAAe;QACf,YAAY;QACZ,cAAc;KACjB;IACD,UAAU,EAAE;QACR,YAAY;QACZ,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;AAC/C,QAAA,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;AAE9G,kBAAe,qBAAa,CAAC"}
@@ -1,5 +1,21 @@
1
- import { IconIdentifier, ReactNativeVectorIcons } from './types';
2
- declare const icons: ReactNativeVectorIcons;
3
- export { IconIdentifier, ReactNativeVectorIcons };
4
- export default icons;
1
+ import IconIdentifier from "./types";
2
+ declare function _getIconInfo(iconIdentifier: IconIdentifier | any): {
3
+ id: any;
4
+ type: any;
5
+ name: any;
6
+ character: any;
7
+ isDirected: any;
8
+ variant?: undefined;
9
+ } | {
10
+ id: any;
11
+ type: any;
12
+ variant: any;
13
+ name: any;
14
+ character: any;
15
+ isDirected: any;
16
+ };
17
+ export declare const getIconInfo: typeof _getIconInfo & import("lodash").MemoizedFunction;
18
+ declare const reactNativeVectorIcons: {};
19
+ export { IconIdentifier };
20
+ export default reactNativeVectorIcons;
5
21
  //# 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":"AAGA,OAAO,cAAc,MAAM,SAAS,CAAC;AAErC,iBAAS,YAAY,CAAC,cAAc,EAAE,cAAc,GAAG,GAAG;;;;;;;;;;;;;;EAwBzD;AAED,eAAO,MAAM,WAAW,yDAAwB,CAAC;AAEjD,QAAA,MAAM,sBAAsB,IAAK,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,eAAe,sBAAsB,CAAC"}
@@ -1,5 +1,40 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const icons = {};
4
- exports.default = icons;
6
+ exports.getIconInfo = void 0;
7
+ const lodash_1 = require("lodash");
8
+ const directed_icons_1 = __importDefault(require("./directed-icons"));
9
+ const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
10
+ function _getIconInfo(iconIdentifier) {
11
+ var _a, _b;
12
+ const parts = iconIdentifier.split(':');
13
+ if (parts.length === 2) {
14
+ const [library, iconName] = parts;
15
+ const character = reactNativeVectorIcons_lookup_min_json_1.default[library][iconName];
16
+ return {
17
+ id: iconIdentifier,
18
+ type: library,
19
+ name: iconName,
20
+ character,
21
+ isDirected: (_a = directed_icons_1.default[library]) === null || _a === void 0 ? void 0 : _a[iconName],
22
+ };
23
+ }
24
+ else if (parts.length === 3) {
25
+ const [library, variant, iconName] = parts;
26
+ const character = reactNativeVectorIcons_lookup_min_json_1.default[library][variant][iconName];
27
+ return {
28
+ id: iconIdentifier,
29
+ type: library,
30
+ variant,
31
+ name: iconName,
32
+ character,
33
+ isDirected: (_b = directed_icons_1.default[library]) === null || _b === void 0 ? void 0 : _b[iconName],
34
+ };
35
+ }
36
+ }
37
+ exports.getIconInfo = lodash_1.memoize(_getIconInfo);
38
+ const reactNativeVectorIcons = {};
39
+ exports.default = reactNativeVectorIcons;
5
40
  //# 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":";;;;;;AAAA,mCAAiC;AACjC,sEAA6C;AAC7C,sHAAoF;AAGpF,SAAS,YAAY,CAAC,cAAoC;;IACxD,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,gDAA4B,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAClE,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,gDAA4B,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC3E,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;AACH,CAAC;AAEY,QAAA,WAAW,GAAG,gBAAO,CAAC,YAAY,CAAC,CAAC;AAEjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAIlC,kBAAe,sBAAsB,CAAC"}