@evlop/commons 1.0.123 → 1.0.126

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/src/components/hoc/withSettings.d.ts +9 -2
  2. package/dist/src/components/hoc/withSettings.d.ts.map +1 -1
  3. package/dist/src/components/hoc/withSettings.js +1 -1
  4. package/dist/src/components/hoc/withSettings.js.map +1 -1
  5. package/dist/src/constants/i18ninstance.d.ts +3 -0
  6. package/dist/src/constants/i18ninstance.d.ts.map +1 -0
  7. package/dist/src/constants/i18ninstance.js +13 -0
  8. package/dist/src/constants/i18ninstance.js.map +1 -0
  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.map +1 -1
  12. package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +31 -0
  13. package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
  14. package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
  15. package/dist/src/constants/index.d.ts +1 -0
  16. package/dist/src/constants/index.d.ts.map +1 -1
  17. package/dist/src/constants/index.js +3 -1
  18. package/dist/src/constants/index.js.map +1 -1
  19. package/dist/src/helpers/handlebarHelpers.js +5 -0
  20. package/dist/src/helpers/handlebarHelpers.js.map +1 -1
  21. package/dist/src/helpers/handlebarHelpers.test.d.ts.map +1 -1
  22. package/dist/src/helpers/handlebarHelpers.test.js +11 -0
  23. package/dist/src/helpers/handlebarHelpers.test.js.map +1 -1
  24. package/dist/src/helpers/index.d.ts +1 -1
  25. package/dist/src/helpers/index.d.ts.map +1 -1
  26. package/dist/src/helpers/index.js +1 -1
  27. package/dist/src/helpers/index.js.map +1 -1
  28. package/dist/src/helpers/themeHelpers.d.ts +136 -16
  29. package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
  30. package/dist/src/helpers/themeHelpers.js +64 -45
  31. package/dist/src/helpers/themeHelpers.js.map +1 -1
  32. package/dist/src/hooks/index.d.ts +1 -0
  33. package/dist/src/hooks/index.d.ts.map +1 -1
  34. package/dist/src/hooks/index.js +1 -0
  35. package/dist/src/hooks/index.js.map +1 -1
  36. package/dist/src/hooks/useTheme.d.ts +4 -1
  37. package/dist/src/hooks/useTheme.d.ts.map +1 -1
  38. package/dist/src/hooks/useTheme.js.map +1 -1
  39. package/dist/src/hooks/useTranslation.d.ts +4 -0
  40. package/dist/src/hooks/useTranslation.d.ts.map +1 -0
  41. package/dist/src/hooks/useTranslation.js +17 -0
  42. package/dist/src/hooks/useTranslation.js.map +1 -0
  43. package/package.json +6 -3
@@ -1,13 +1,20 @@
1
1
  import React from 'react';
2
+ import { Action } from '../../hooks';
3
+ declare type SettingProp = {
4
+ model?: string;
5
+ dataModel?: string;
6
+ configModel?: string;
7
+ action?: Action;
8
+ };
2
9
  export declare const withSettings: ({ name: elementName, valueOptions, configurationOptions }: {
3
10
  name: any;
4
11
  valueOptions?: any[];
5
12
  configurationOptions?: any[];
6
- }) => (RenderComponent: any) => React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
13
+ }) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & SettingProp> & React.RefAttributes<any>>;
7
14
  export declare const withToolbar: ({ name: elementName, valueOptions, configurationOptions }: {
8
15
  name: any;
9
16
  valueOptions?: any[];
10
17
  configurationOptions?: any[];
11
- }) => (RenderComponent: any) => React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
18
+ }) => <P extends Object>(RenderComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & SettingProp> & React.RefAttributes<any>>;
12
19
  export default withSettings;
13
20
  //# sourceMappingURL=withSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAIzG,eAAO,MAAM,YAAY;;;;mIAsLvB,CAAC;AAGH,eAAO,MAAM,WAAW;;;;mIAAe,CAAC;AACxC,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,MAAM,EAAgE,MAAM,aAAa,CAAC;AAEnG,aAAK,WAAW,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/F,eAAO,MAAM,YAAY;;;;uKAsLvB,CAAC;AAGH,eAAO,MAAM,WAAW;;;;uKAAe,CAAC;AACxC,eAAe,YAAY,CAAC"}
@@ -35,7 +35,7 @@ const lodash_1 = __importStar(require("lodash"));
35
35
  const react_1 = __importStar(require("react"));
36
36
  const contexts_1 = require("../../contexts");
37
37
  const hooks_1 = require("../../hooks");
38
- const withSettings = ({ name: elementName, valueOptions = [], configurationOptions = [] }) => RenderComponent => react_1.forwardRef((props, forwardedRef) => {
38
+ const withSettings = ({ name: elementName, valueOptions = [], configurationOptions = [] }) => (RenderComponent) => react_1.forwardRef((props, forwardedRef) => {
39
39
  const newRef = react_1.useRef();
40
40
  const ref = react_1.useMemo(() => forwardedRef || newRef, [newRef, forwardedRef]);
41
41
  const { model, dataModel = model, configModel = dataModel && `${dataModel}_config`, restrictEdit, action: actionProp, onPress, onClick: onClickProp = onPress } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmD;AACnD,+CAAyG;AACzG,6CAAiE;AACjE,uCAA2F;AAEpF,MAAM,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eAAe,6BACH,EAAE,EACX,OAAO,QACP,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,IACf,KAAK,EACL,OAAO,EACP,MAAM,EACN,UAAU,IACd,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,GAAG,IACV,CACY,CACrB,CAAC;AACN,CAAC,CAAC,CAAC;AAtLU,QAAA,YAAY,gBAsLtB;AAGU,QAAA,WAAW,GAAG,oBAAY,CAAC;AACxC,kBAAe,oBAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const i18nInstance: import("i18next").i18n;
2
+ export default i18nInstance;
3
+ //# sourceMappingURL=i18ninstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18ninstance.d.ts","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,wBAA2B,CAAC;AAM9C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const i18next_1 = __importDefault(require("i18next"));
7
+ const i18nInstance = i18next_1.default.createInstance();
8
+ i18nInstance.init({
9
+ fallbackLng: ['en', 'EN'],
10
+ defaultNS: "common",
11
+ });
12
+ exports.default = i18nInstance;
13
+ //# sourceMappingURL=i18ninstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18ninstance.js","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAE9B,MAAM,YAAY,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;AAC9C,YAAY,CAAC,IAAI,CAAC;IACd,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACzB,SAAS,EAAE,QAAQ;CACtB,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { IconIdentifier } from './reactNativeVectorIcons';
1
2
  declare const _default: {};
2
3
  export default _default;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";AAAA,wBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;AAC1D,wBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AACA,kBAAe,EAAE,CAAA"}
@@ -1,3 +1,34 @@
1
+ import Entypo from 'react-native-vector-icons/glyphmaps/Entypo.json';
2
+ import Evilicon from 'react-native-vector-icons/glyphmaps/EvilIcons.json';
3
+ import Feather from 'react-native-vector-icons/glyphmaps/Feather.json';
4
+ import FontAwesome from 'react-native-vector-icons/glyphmaps/FontAwesome.json';
5
+ import FontAwesome5_meta from 'react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json';
6
+ import FontAwesome5 from 'react-native-vector-icons/glyphmaps/FontAwesome5Free.json';
7
+ import Fontisto from 'react-native-vector-icons/glyphmaps/Fontisto.json';
8
+ import Foundation from 'react-native-vector-icons/glyphmaps/Foundation.json';
9
+ import Ionicon from 'react-native-vector-icons/glyphmaps/Ionicons.json';
10
+ import MaterialCommunity from 'react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
11
+ import Material from 'react-native-vector-icons/glyphmaps/MaterialIcons.json';
12
+ import Octicon from 'react-native-vector-icons/glyphmaps/Octicons.json';
13
+ import SimpleLineIcon from 'react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
14
+ import Zocial from 'react-native-vector-icons/glyphmaps/Zocial.json';
15
+ declare type FaIcons = typeof FontAwesome5_meta;
16
+ declare type FA5IconVariant = keyof FaIcons;
17
+ declare type Fa5IconName = keyof (typeof FontAwesome5);
18
+ declare type Fa5Icon = `font-awesome-5:${FA5IconVariant}:${Fa5IconName}`;
19
+ declare type EntypoIcon = `entypo:${keyof (typeof Entypo)}`;
20
+ declare type EvilIcon = `evilicon:${keyof (typeof Evilicon)}`;
21
+ declare type FeatherIcon = `fetther:${keyof (typeof Feather)}`;
22
+ declare type FontAwesomeIcon = `font-awesome:${keyof (typeof FontAwesome)}`;
23
+ declare type FontistoIcon = `fontisto:${keyof (typeof Fontisto)}`;
24
+ declare type FoundationIcon = `foundation:${keyof (typeof Foundation)}`;
25
+ declare type IoniconIcon = `ionicon:${keyof (typeof Ionicon)}`;
26
+ declare type MaterialCommunityIcon = `material-community:${keyof (typeof MaterialCommunity)}`;
27
+ declare type MaterialIcon = `material:${keyof (typeof Material)}`;
28
+ declare type OcticonIcon = `octicon:${keyof (typeof Octicon)}`;
29
+ declare type SimpleLineIconIcon = `simple-line-icon:${keyof (typeof SimpleLineIcon)}`;
30
+ declare type ZocialIcon = `zocial:${keyof (typeof Zocial)}`;
31
+ export declare type IconIdentifier = Fa5Icon | EntypoIcon | EvilIcon | FeatherIcon | FontAwesomeIcon | FontistoIcon | FoundationIcon | IoniconIcon | MaterialCommunityIcon | MaterialIcon | OcticonIcon | SimpleLineIconIcon | ZocialIcon;
1
32
  declare const reactNativeVectorIcons: {
2
33
  [x: string]: {
3
34
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"AAmDA,QAAA,MAAO,sBAAsB;;;;;;;;;;;;;CAAgC,CAAC;AAE9D,eAAe,sB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AAY,CAAC,QAAQ,CAAC;CACpC,CAAC,CACL,CACJ;KACA,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,EAAE,CAAC;AAe7B,MAAM,WAAW,GAAG,cAAK,CAAC,aAAa,CAAC;KAC3B,SAAS,CAAC,CAAC,YAAY,EAAC,EAAE,CAAA,YAAG,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,IAAI,EAAC,EAAE,CAAA,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;KACpF,OAAO,CACJ,CAAC,kBAAkB,EAAE,WAAW,EAAC,EAAE,CAAC,YAAG,CAAC,kBAAkB,EACtD,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,EAAE,EAAE,GAAG,uBAAS,CAAC,WAAW,CAAC,IAAI,QAAQ,EAAE;IAC3C,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,uBAAS,CAAC,WAAW,CAAC;IAC5B,SAAS;CACZ,CAAC,CACL,CACJ;KACA,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,EAAE,CAAC;AAIrB,MAAO,sBAAsB,mCAAO,QAAQ,GAAK,WAAW,CAAC,CAAC;AAE9D,kBAAe,sBAAsB,CAAA"}
@@ -11,4 +11,5 @@ export declare const TYPE_COMPONENT = "type/component";
11
11
  export declare const DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
12
12
  export { API_BASE_URL, SOCKET_URL };
13
13
  export { default as iconInfo } from './iconInfo';
14
+ export { default as i18ninstance } from './i18ninstance';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -3,7 +3,7 @@ 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
- exports.iconInfo = exports.SOCKET_URL = exports.API_BASE_URL = exports.DATA_SOURCE_KEY_NAMESPACE = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = exports.isNode = void 0;
6
+ exports.i18ninstance = exports.iconInfo = exports.SOCKET_URL = exports.API_BASE_URL = exports.DATA_SOURCE_KEY_NAMESPACE = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = exports.isNode = void 0;
7
7
  const platformSpecific_1 = require("./platformSpecific");
8
8
  Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return platformSpecific_1.API_BASE_URL; } });
9
9
  Object.defineProperty(exports, "SOCKET_URL", { enumerable: true, get: function () { return platformSpecific_1.SOCKET_URL; } });
@@ -19,4 +19,6 @@ exports.TYPE_COMPONENT = "type/component";
19
19
  exports.DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
20
20
  var iconInfo_1 = require("./iconInfo");
21
21
  Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
22
+ var i18ninstance_1 = require("./i18ninstance");
23
+ Object.defineProperty(exports, "i18ninstance", { enumerable: true, get: function () { return __importDefault(i18ninstance_1).default; } });
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,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C,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const handlebars_min_js_1 = __importDefault(require("handlebars/dist/handlebars.min.js"));
7
7
  const moment_1 = __importDefault(require("moment"));
8
8
  const lodash_1 = require("lodash");
9
+ const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
9
10
  handlebars_min_js_1.default.registerHelper('json', function (context) {
10
11
  return JSON.stringify(context, null, 2);
11
12
  });
@@ -30,4 +31,8 @@ handlebars_min_js_1.default.registerHelper('plaintext', function (context) {
30
31
  return '';
31
32
  return context.replace(htmlTags, '');
32
33
  });
34
+ // helper for translation of text
35
+ handlebars_min_js_1.default.registerHelper('t', function (key, options) {
36
+ return i18ninstance_1.default.t(key, options.hash);
37
+ });
33
38
  //# sourceMappingURL=handlebarHelpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handlebarHelpers.js","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.ts"],"names":[],"mappings":";;;;;AAAA,0FAA2D;AAC3D,oDAA4B;AAC5B,mCAA+B;AAE/B,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,OAAO;IAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,IAAI,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM;IACrE,MAAM,UAAU,GAAW,OAAO,MAAM,KAAK,QAAQ,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACtE,MAAM,UAAU,GAAG,gBAAM,CAAC,IAAI,CAAC,CAAC;IAChC,IAAG,CAAC,UAAU,CAAC,OAAO,EAAE;QAA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AI,CAAC,CAAC;IAChC,IAAG,CAAC,UAAU,CAAC,OAAO,EAAE;QAAE,OAAO,IAAI,CAAC;IACtC,QAAO,UAAU,EAAC;QACd,KAAK,UAAU;YACX,OAAO,UAAU,CAAC,OAAO,EAAE,CAAC;QAChC;YACI,OAAO,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;KAC5C;AACL,CAAC,CAAC,CAAC;AAEH,2BAAU,CAAC,cAAc,CAAC,MAAM,EAAE,UAAS,GAAG,MAAqB;IAC/D,OAAO,gBAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,eAAe,CAAC;AACjC,2BAAU,CAAC,cAAc,CAAC,WAAW,EAAE,UAAS,OAAe;IAC3D,IAAG,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACvB,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC;AAEH,iCAAiC;AACjC,2BAAU,CAAC,cAAc,CAAC,GAAG,EAAE,UAAS,GAAW,EAAE,OAAY;IAC7D,OAAO,sBAAY,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlebarHelpers.test.d.ts","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.test.ts"],"names":[],"mappings":"AAGA,OAAO,oBAAoB,CAAC"}
1
+ {"version":3,"file":"handlebarHelpers.test.d.ts","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.test.ts"],"names":[],"mappings":"AAIA,OAAO,oBAAoB,CAAC"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const chai_1 = require("chai");
7
7
  const handlebars_min_js_1 = __importDefault(require("handlebars/dist/handlebars.min.js"));
8
8
  const moment_1 = __importDefault(require("moment"));
9
+ const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
9
10
  require("./handlebarHelpers");
10
11
  describe('Test handlebar temaplates', function () {
11
12
  it('scan returns last value if none available before that', () => {
@@ -45,5 +46,15 @@ describe('Test handlebar temaplates', function () {
45
46
  const templatedString = template({ now: testDate });
46
47
  chai_1.expect(templatedString).to.eq(moment_1.default(testDate).fromNow());
47
48
  });
49
+ it('translation', () => {
50
+ i18ninstance_1.default.addResources("en", "common", { "hello": " {{testId}} Hello my friend {{amount}}", hi: "hi friend how are you" });
51
+ i18ninstance_1.default.addResources("np", "common", { "hello": "{{testId}} Sathi k chha khabar {{amount}}?", });
52
+ i18ninstance_1.default.changeLanguage("np");
53
+ const stringValue = "{{t 'hello' amount=price testId=123 }} {{t 'cart here'}} {{t 'hi'}}";
54
+ const template = handlebars_min_js_1.default.compile(stringValue);
55
+ const templatedString = template({ price: 1024 });
56
+ // expect (templatedString).to.eq("asd")
57
+ console.log("templated:", templatedString);
58
+ });
48
59
  });
49
60
  //# sourceMappingURL=handlebarHelpers.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handlebarHelpers.test.js","sourceRoot":"","sources":["../../../src/helpers/handlebarHelpers.test.ts"],"names":[],"mappings":";;;;;AAAA,+BAA4B;AAC5B,0FAA2D;AAC3D,oDAA4B;AAC5B,8BAA4B;AAE5B,QAAQ,CAAC,2BAA2B,EAAE;IAClC,EAAE,CAAC,wDAAwD,EAAE,GAAE,EAAE;QAC7D,MAAM,WAAW,GAAG,gBAAgB,CAAC;QACrC,MAAM,QAAQ,GAAG,2BAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,EAAC,CAAC,EAAE,KAAK,EAAC,CAAC,CAAC;QAE7C,aAAM,CAAC,eAA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C,CAAA;IAEF,EAAE,CAAC,yBAAyB,EAAE,GAAE,EAAE;QAC9B,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,MAAM,QAAQ,GAAG,2BAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,EAAC,GAAG,EAAE,QAAQ,EAAC,CAAC,CAAC;QAClD,aAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gBAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,aAAa,EAAE,GAAE,EAAE;QAClB,sBAAY,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE,EAAE,EAAE,uBAAuB,EAAE,CAAC,CAAA;QAC7H,sBAAY,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,4CAA4C,GAAG,CAAC,CAAA;QACrG,sBAAY,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,WAAW,GAAG,qEAAqE,CAAC;QAC1F,MAAM,QAAQ,GAAG,2BAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,eAAe,GAAG,QAAQ,CAAC,EAAC,KAAK,EAAC,IAAI,EAAC,CAAC,CAAC;QAC/C,wCAAwC;QACxC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import './handlebarHelpers';
1
+ export * from './handlebarHelpers';
2
2
  export * from './functions';
3
3
  export * from './commonStyles';
4
4
  export * from './themeHelpers';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- require("./handlebarHelpers");
13
+ __exportStar(require("./handlebarHelpers"), exports);
14
14
  __exportStar(require("./functions"), exports);
15
15
  __exportStar(require("./commonStyles"), exports);
16
16
  __exportStar(require("./themeHelpers"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA4B;AAC5B,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC;AACnC,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB"}
@@ -1,25 +1,145 @@
1
1
  export declare const generateSizeScale: (baseSize: number, variants: {
2
- scale: number;
3
- name: string;
4
- }[]) => {};
5
- export declare const fontVariations: {
6
- scale: number;
7
- name: string;
8
- }[];
9
- export declare const generateFontSizes: (baseFontSize: number) => {};
2
+ [key: string]: number;
3
+ }) => {
4
+ [x: string]: number;
5
+ };
6
+ export declare const fontSizes: {
7
+ xxxxs: number;
8
+ xxxs: number;
9
+ xxs: number;
10
+ xs: number;
11
+ sm: number;
12
+ md: number;
13
+ lg: number;
14
+ xl: number;
15
+ xxl: number;
16
+ xxxl: number;
17
+ xxxxl: number;
18
+ xxxxxl: number;
19
+ xxxxxxl: number;
20
+ xxxxxxxl: number;
21
+ xxxxxxxxl: number;
22
+ xxxxxxxxxl: number;
23
+ };
24
+ declare type FontSizes = typeof fontSizes;
25
+ declare type FontSize = keyof FontSizes;
26
+ declare const fontWeights: {
27
+ Thin: number;
28
+ UltraLight: number;
29
+ Light: number;
30
+ Regular: number;
31
+ Medium: number;
32
+ Semibold: number;
33
+ Bold: number;
34
+ Heavy: number;
35
+ Black: number;
36
+ };
37
+ declare type FontWeights = typeof fontWeights;
38
+ declare type FontWeight = keyof FontWeights;
39
+ export declare const generateFontSizes: (baseFontSize: number) => {
40
+ [x: string]: number;
41
+ };
10
42
  export declare const lineHeightVariants: {
11
- scale: number;
12
- name: string;
13
- }[];
14
- export declare const generateLineHeights: (baseFontSize: number) => {};
43
+ xxxxs: number;
44
+ xxxs: number;
45
+ xxs: number;
46
+ xs: number;
47
+ sm: number;
48
+ md: number;
49
+ lg: number;
50
+ xl: number;
51
+ xxl: number;
52
+ xxxl: number;
53
+ xxxxl: number;
54
+ xxxxxl: number;
55
+ xxxxxxl: number;
56
+ xxxxxxxl: number;
57
+ xxxxxxxxl: number;
58
+ xxxxxxxxxl: number;
59
+ };
60
+ declare type LineHeightVariants = typeof lineHeightVariants;
61
+ declare type LineHeight = keyof LineHeightVariants;
62
+ export declare const generateLineHeights: (baseFontSize: number) => {
63
+ [x: string]: number;
64
+ };
15
65
  export declare const spacingVariations: {
16
- scale: number;
17
- name: string;
18
- }[];
19
- export declare const generateSpacingSizes: (baseSpacing: number) => {};
66
+ none: number;
67
+ xxxxxxxs: number;
68
+ xxxxxxs: number;
69
+ xxxxxs: number;
70
+ xxxxs: number;
71
+ xxxs: number;
72
+ xxs: number;
73
+ xs: number;
74
+ sm: number;
75
+ md: number;
76
+ lg: number;
77
+ xl: number;
78
+ xxl: number;
79
+ xxxl: number;
80
+ xxxxl: number;
81
+ xxxxxl: number;
82
+ xxxxxxl: number;
83
+ xxxxxxxl: number;
84
+ };
85
+ declare type SpaceVariants = typeof fontSizes;
86
+ declare type Space = keyof SpaceVariants;
87
+ export declare const generateSpacingSizes: (baseSpacing: number) => {
88
+ [x: string]: number;
89
+ };
90
+ declare const colors: {
91
+ white: string;
92
+ black: string;
93
+ primary: string;
94
+ secondary: string;
95
+ success: string;
96
+ info: string;
97
+ warning: string;
98
+ danger: string;
99
+ grey: string;
100
+ };
101
+ declare type BaseColors = typeof colors;
102
+ declare type BaseColor = keyof BaseColors;
103
+ declare const colorShades: {
104
+ 0: number;
105
+ 50: number;
106
+ 100: number;
107
+ 200: number;
108
+ 300: number;
109
+ 400: number;
110
+ 500: number;
111
+ 600: number;
112
+ 700: number;
113
+ 800: number;
114
+ 900: number;
115
+ };
116
+ declare type ColorShades = typeof colorShades;
117
+ export declare type ColorShade = keyof ColorShades;
118
+ declare type ShadeableColor = Exclude<BaseColor, 'white' | 'black'>;
119
+ declare type ShadedColor = `${ShadeableColor}-shade-${ColorShade}`;
120
+ export declare type Color = BaseColor | ShadedColor;
20
121
  export declare function getColorVariants(colors: {
21
122
  [colorName: string]: string;
22
123
  }): {
23
124
  [colorName: string]: string;
24
125
  };
126
+ export interface Theme {
127
+ space: {
128
+ [key in Space]: string;
129
+ };
130
+ fontSizes: {
131
+ [key in FontSize]: string;
132
+ };
133
+ fontWeights: {
134
+ [key in FontWeight]: string;
135
+ };
136
+ lineHeights: {
137
+ [key in LineHeight]: string;
138
+ };
139
+ colors: {
140
+ [key in Color]: string;
141
+ };
142
+ fontSize: number;
143
+ }
144
+ export {};
25
145
  //# sourceMappingURL=themeHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/them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: true });
3
- exports.getColorVariants = exports.generateSpacingSizes = exports.spacingVariations = exports.generateLineHeights = exports.lineHeightVariants = exports.generateFontSizes = exports.fontVariations = exports.generateSizeScale = void 0;
3
+ exports.getColorVariants = exports.generateSpacingSizes = exports.spacingVariations = exports.generateLineHeights = exports.lineHeightVariants = exports.generateFontSizes = exports.fontSizes = exports.generateSizeScale = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  const polished_1 = require("polished");
6
6
  function lightenRgb(hex, intensity) {
@@ -23,59 +23,78 @@ function darkenRgb(hex, intensity) {
23
23
  const b = Math.round(color.blue * (1 - intensity));
24
24
  return polished_1.rgb(r, g, b);
25
25
  }
26
- const generateSizeScale = (baseSize, variants) => variants.reduce((sizes, { name, scale }) => {
27
- sizes[name] = baseSize * scale;
28
- return sizes;
29
- }, {});
26
+ const generateSizeScale = (baseSize, variants) => lodash_1.mapValues(variants, scale => scale * baseSize);
30
27
  exports.generateSizeScale = generateSizeScale;
31
28
  // font sizes
32
- exports.fontVariations = [
33
- { scale: 10 / 15, name: 'xxxxs' },
34
- { scale: 11 / 15, name: 'xxxs' },
35
- { scale: 12 / 15, name: 'xxs' },
36
- { scale: 13 / 15, name: 'xs' },
37
- { scale: 14 / 15, name: 'sm' },
38
- { scale: 15 / 15, name: 'md' },
39
- { scale: 16 / 15, name: 'lg' },
40
- { scale: 17 / 15, name: 'xl' },
41
- { scale: 20 / 15, name: 'xxl' },
42
- { scale: 24 / 15, name: 'xxxl' },
43
- { scale: 27 / 15, name: 'xxxxl' },
44
- { scale: 32 / 15, name: 'xxxxxl' },
45
- { scale: 48 / 15, name: 'xxxxxxl' },
46
- { scale: 60 / 15, name: 'xxxxxxxl' },
47
- { scale: 76 / 15, name: 'xxxxxxxxl' },
48
- { scale: 94 / 15, name: 'xxxxxxxxxl' },
49
- ];
50
- const generateFontSizes = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.fontVariations);
29
+ exports.fontSizes = {
30
+ 'xxxxs': 10 / 15,
31
+ 'xxxs': 11 / 15,
32
+ 'xxs': 12 / 15,
33
+ 'xs': 13 / 15,
34
+ 'sm': 14 / 15,
35
+ 'md': 15 / 15,
36
+ 'lg': 16 / 15,
37
+ 'xl': 17 / 15,
38
+ 'xxl': 20 / 15,
39
+ 'xxxl': 24 / 15,
40
+ 'xxxxl': 27 / 15,
41
+ 'xxxxxl': 32 / 15,
42
+ 'xxxxxxl': 48 / 15,
43
+ 'xxxxxxxl': 60 / 15,
44
+ 'xxxxxxxxl': 76 / 15,
45
+ 'xxxxxxxxxl': 94 / 15
46
+ };
47
+ const fontWeights = {
48
+ Thin: 100,
49
+ UltraLight: 200,
50
+ Light: 300,
51
+ Regular: 400,
52
+ Medium: 500,
53
+ Semibold: 600,
54
+ Bold: 700,
55
+ Heavy: 800,
56
+ Black: 900,
57
+ };
58
+ const generateFontSizes = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.fontSizes);
51
59
  exports.generateFontSizes = generateFontSizes;
52
60
  // line heights for font
53
- exports.lineHeightVariants = exports.fontVariations.map(f => (Object.assign(Object.assign({}, f), { scale: f.scale * 1.6 })));
61
+ exports.lineHeightVariants = lodash_1.mapValues(exports.fontSizes, f => f * 1.6);
54
62
  const generateLineHeights = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.lineHeightVariants);
55
63
  exports.generateLineHeights = generateLineHeights;
56
64
  // spacing
57
- exports.spacingVariations = [
58
- { scale: 0 / 20, name: 'none' },
59
- { scale: 1 / 20, name: 'xxxxxxxs' },
60
- { scale: 2 / 20, name: 'xxxxxxs' },
61
- { scale: 4 / 20, name: 'xxxxxs' },
62
- { scale: 5 / 20, name: 'xxxxs' },
63
- { scale: 8 / 20, name: 'xxxs' },
64
- { scale: 10 / 20, name: 'xxs' },
65
- { scale: 16 / 20, name: 'xs' },
66
- { scale: 18 / 20, name: 'sm' },
67
- { scale: 20 / 20, name: 'md' },
68
- { scale: 24 / 20, name: 'lg' },
69
- { scale: 28 / 20, name: 'xl' },
70
- { scale: 32 / 20, name: 'xxl' },
71
- { scale: 36 / 20, name: 'xxxl' },
72
- { scale: 40 / 20, name: 'xxxxl' },
73
- { scale: 48 / 20, name: 'xxxxxl' },
74
- { scale: 60 / 20, name: 'xxxxxxl' },
75
- { scale: 72 / 20, name: 'xxxxxxxl' },
76
- ];
65
+ exports.spacingVariations = {
66
+ 'none': 0 / 20,
67
+ 'xxxxxxxs': 1 / 20,
68
+ 'xxxxxxs': 2 / 20,
69
+ 'xxxxxs': 4 / 20,
70
+ 'xxxxs': 5 / 20,
71
+ 'xxxs': 8 / 20,
72
+ 'xxs': 10 / 20,
73
+ 'xs': 16 / 20,
74
+ 'sm': 18 / 20,
75
+ 'md': 20 / 20,
76
+ 'lg': 24 / 20,
77
+ 'xl': 28 / 20,
78
+ 'xxl': 32 / 20,
79
+ 'xxxl': 36 / 20,
80
+ 'xxxxl': 40 / 20,
81
+ 'xxxxxl': 48 / 20,
82
+ 'xxxxxxl': 60 / 20,
83
+ 'xxxxxxxl': 72 / 20
84
+ };
77
85
  const generateSpacingSizes = (baseSpacing) => exports.generateSizeScale(baseSpacing, exports.spacingVariations);
78
86
  exports.generateSpacingSizes = generateSpacingSizes;
87
+ const colors = {
88
+ white: "#ffffff",
89
+ black: "#1e1e1e",
90
+ primary: '#008f7b',
91
+ secondary: '#008f7b',
92
+ success: '#008f7b',
93
+ info: '#008f7b',
94
+ warning: '#ff00ff',
95
+ danger: '#ff0000',
96
+ grey: '#696969'
97
+ };
79
98
  const colorShades = {
80
99
  // whiten
81
100
  0: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAA+C;AAC/C,uCAAiH;AAEjH,SAAS,UAAU,CAAC,GAAG,EAAE,SAAS;IAC9B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAA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;QACvB,CAAC;QACD,GAAG,KAAI,OAAO,KAAK,CAAA,CAAC,CAAC;KACxB,CAAC,CAAA;AACN,CAAC;AAvCD,4CAuCC"}
@@ -7,6 +7,7 @@ export * from './useScope';
7
7
  export * from './useComponentData';
8
8
  export * from './useTemplate';
9
9
  export * from './useTheme';
10
+ export * from './useTranslation';
10
11
  export * from './useUrl';
11
12
  export * from './useFocus';
12
13
  export * from './useFonts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -19,6 +19,7 @@ __exportStar(require("./useScope"), exports);
19
19
  __exportStar(require("./useComponentData"), exports);
20
20
  __exportStar(require("./useTemplate"), exports);
21
21
  __exportStar(require("./useTheme"), exports);
22
+ __exportStar(require("./useTranslation"), exports);
22
23
  __exportStar(require("./useUrl"), exports);
23
24
  __exportStar(require("./useFocus"), exports);
24
25
  __exportStar(require("./useFonts"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,6CAA2B;AAC3B,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,kDAAgC"}
@@ -1,2 +1,5 @@
1
- export declare const useTheme: any;
1
+ import { Theme } from '../helpers';
2
+ declare type UseThemeHook = () => Theme;
3
+ export declare const useTheme: UseThemeHook;
4
+ export {};
2
5
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,KAAa,CAAC"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,aAAK,YAAY,GAAG,MAAM,KAAK,CAAA;AAE/B,eAAO,MAAM,QAAQ,EAAE,YAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.js","sourceRoot":"","sources":["../../../src/hooks/useTheme.tsx"],"names":[],"mappings":";;;AAAA,yDAA2D;AAG9C,QAAA,QAAQ,GAAG,4BAAU,CAAC"}
1
+ {"version":3,"file":"useTheme.js","sourceRoot":"","sources":["../../../src/hooks/useTheme.tsx"],"names":[],"mappings":";;;AAAA,yDAA2D;AAK9C,QAAA,QAAQ,GAAiB,4BAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TFunction } from 'i18next';
2
+ export declare const useTranslation: () => TFunction;
3
+ export default useTranslation;
4
+ //# sourceMappingURL=useTranslation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslation.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC,eAAO,MAAM,cAAc,iBAM1B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useTranslation = void 0;
7
+ const react_1 = require("react");
8
+ const i18ninstance_1 = __importDefault(require("../constants/i18ninstance"));
9
+ const useTranslation = () => {
10
+ const translate = react_1.useCallback((key, options) => {
11
+ return i18ninstance_1.default.t(key, options);
12
+ }, []);
13
+ return translate;
14
+ };
15
+ exports.useTranslation = useTranslation;
16
+ exports.default = exports.useTranslation;
17
+ //# sourceMappingURL=useTranslation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslation.js","sourceRoot":"","sources":["../../../src/hooks/useTranslation.tsx"],"names":[],"mappings":";;;;;;AACA,iCAAoC;AACpC,6EAAqD;AAE9C,MAAM,cAAc,GAAG,GAAE,EAAE;IAC9B,MAAM,SAAS,GAAc,mBAAW,CAAC,CAAC,GAAQ,EAAE,OAAa,EAAC,EAAE;QAChE,OAAO,sBAAY,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC,EAAG,EAAE,CAAC,CAAA;IAEP,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB;AAEF,kBAAe,sBAAc,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.123",
3
+ "version": "1.0.126",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
7
7
  "@mukti107/redux-rest": "^1.0.20",
8
- "handlebars": "latest",
9
- "change-case": "latest",
8
+ "handlebars": "^4.7.6",
9
+ "i18next": "^21.8.8",
10
+ "change-case": "^4.1.1",
10
11
  "lodash": "latest",
11
12
  "polished": "latest",
12
13
  "react": "latest",
@@ -52,6 +53,8 @@
52
53
  "@types/uuid": "^8.3.4",
53
54
  "chai": "^4.3.4",
54
55
  "change-case": "^4.1.2",
56
+ "handlebars": "^4.7.7",
57
+ "i18next": "^21.8.8",
55
58
  "jest": "^26.6.3",
56
59
  "lodash": "^4.17.21",
57
60
  "mocha": "^8.4.0",