@evlop/commons 1.0.123 → 1.0.124

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) 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/index.d.ts +1 -0
  10. package/dist/src/constants/index.d.ts.map +1 -1
  11. package/dist/src/constants/index.js +3 -1
  12. package/dist/src/constants/index.js.map +1 -1
  13. package/dist/src/helpers/handlebarHelpers.js +5 -0
  14. package/dist/src/helpers/handlebarHelpers.js.map +1 -1
  15. package/dist/src/helpers/handlebarHelpers.test.d.ts.map +1 -1
  16. package/dist/src/helpers/handlebarHelpers.test.js +11 -0
  17. package/dist/src/helpers/handlebarHelpers.test.js.map +1 -1
  18. package/dist/src/helpers/index.d.ts +1 -1
  19. package/dist/src/helpers/index.d.ts.map +1 -1
  20. package/dist/src/helpers/index.js +1 -1
  21. package/dist/src/helpers/index.js.map +1 -1
  22. package/dist/src/helpers/themeHelpers.d.ts +119 -15
  23. package/dist/src/helpers/themeHelpers.d.ts.map +1 -1
  24. package/dist/src/helpers/themeHelpers.js +51 -43
  25. package/dist/src/helpers/themeHelpers.js.map +1 -1
  26. package/dist/src/hooks/index.d.ts +1 -0
  27. package/dist/src/hooks/index.d.ts.map +1 -1
  28. package/dist/src/hooks/index.js +1 -0
  29. package/dist/src/hooks/index.js.map +1 -1
  30. package/dist/src/hooks/useTheme.d.ts +4 -1
  31. package/dist/src/hooks/useTheme.d.ts.map +1 -1
  32. package/dist/src/hooks/useTheme.js.map +1 -1
  33. package/dist/src/hooks/useTranslation.d.ts +4 -0
  34. package/dist/src/hooks/useTranslation.d.ts.map +1 -0
  35. package/dist/src/hooks/useTranslation.js +17 -0
  36. package/dist/src/hooks/useTranslation.js.map +1 -0
  37. 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,YAAY,GAAG,CAAC,EAAC,IAAI,EAAE,WAAW,EAAE,YAAY,GAAG,EAAE,EAAE,oBAAoB,GAAG,EAAE,EAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,kBAAU,CAAC,CAAC,KAAU,EAAE,YAAY,EAAE,EAAE;IAE1J,MAAM,MAAM,GAAG,cAAM,EAAE,CAAC;IACxB,MAAM,GAAG,GAAG,eAAO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LU,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"}
@@ -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,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAAiD;AAAxC,qHAAA,OAAO,OAAY"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,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,MA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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;QA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AC,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,129 @@
1
1
  export declare const generateSizeScale: (baseSize: number, variants: {
2
- scale: number;
3
- name: string;
4
- }[]) => {};
2
+ [key: string]: number;
3
+ }) => {
4
+ [x: string]: number;
5
+ };
5
6
  export declare const fontVariations: {
6
- scale: number;
7
- name: string;
8
- }[];
9
- export declare const generateFontSizes: (baseFontSize: number) => {};
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 FontVariants = typeof fontVariations;
25
+ declare type FontSize = keyof FontVariants;
26
+ export declare const generateFontSizes: (baseFontSize: number) => {
27
+ [x: string]: number;
28
+ };
10
29
  export declare const lineHeightVariants: {
11
- scale: number;
12
- name: string;
13
- }[];
14
- export declare const generateLineHeights: (baseFontSize: number) => {};
30
+ xxxxs: number;
31
+ xxxs: number;
32
+ xxs: number;
33
+ xs: number;
34
+ sm: number;
35
+ md: number;
36
+ lg: number;
37
+ xl: number;
38
+ xxl: number;
39
+ xxxl: number;
40
+ xxxxl: number;
41
+ xxxxxl: number;
42
+ xxxxxxl: number;
43
+ xxxxxxxl: number;
44
+ xxxxxxxxl: number;
45
+ xxxxxxxxxl: number;
46
+ };
47
+ declare type LineHeightVariants = typeof lineHeightVariants;
48
+ declare type LineHeight = keyof LineHeightVariants;
49
+ export declare const generateLineHeights: (baseFontSize: number) => {
50
+ [x: string]: number;
51
+ };
15
52
  export declare const spacingVariations: {
16
- scale: number;
17
- name: string;
18
- }[];
19
- export declare const generateSpacingSizes: (baseSpacing: number) => {};
53
+ none: number;
54
+ xxxxxxxs: number;
55
+ xxxxxxs: number;
56
+ xxxxxs: number;
57
+ xxxxs: number;
58
+ xxxs: number;
59
+ xxs: number;
60
+ xs: number;
61
+ sm: number;
62
+ md: number;
63
+ lg: number;
64
+ xl: number;
65
+ xxl: number;
66
+ xxxl: number;
67
+ xxxxl: number;
68
+ xxxxxl: number;
69
+ xxxxxxl: number;
70
+ xxxxxxxl: number;
71
+ };
72
+ declare type SpaceVariants = typeof fontVariations;
73
+ declare type Space = keyof SpaceVariants;
74
+ export declare const generateSpacingSizes: (baseSpacing: number) => {
75
+ [x: string]: number;
76
+ };
77
+ declare const colors: {
78
+ white: string;
79
+ black: string;
80
+ primary: string;
81
+ secondary: string;
82
+ success: string;
83
+ info: string;
84
+ warning: string;
85
+ danger: string;
86
+ grey: string;
87
+ };
88
+ declare type BaseColors = typeof colors;
89
+ declare type BaseColor = keyof BaseColors;
90
+ declare const colorShades: {
91
+ 0: number;
92
+ 50: number;
93
+ 100: number;
94
+ 200: number;
95
+ 300: number;
96
+ 400: number;
97
+ 500: number;
98
+ 600: number;
99
+ 700: number;
100
+ 800: number;
101
+ 900: number;
102
+ };
103
+ declare type ColorShades = typeof colorShades;
104
+ export declare type ColorShade = keyof ColorShades;
105
+ declare type ShadeableColor = Exclude<BaseColor, 'white' | 'black'>;
106
+ declare type ShadedColor = `${ShadeableColor}-shade-${ColorShade}`;
107
+ export declare type Color = BaseColor | ShadedColor;
20
108
  export declare function getColorVariants(colors: {
21
109
  [colorName: string]: string;
22
110
  }): {
23
111
  [colorName: string]: string;
24
112
  };
113
+ export interface Theme {
114
+ space: {
115
+ [key in Space]: string;
116
+ };
117
+ fontSizes: {
118
+ [key in FontSize]: string;
119
+ };
120
+ lineHeights: {
121
+ [key in LineHeight]: string;
122
+ };
123
+ colors: {
124
+ [key in Color]: string;
125
+ };
126
+ fontSize: number;
127
+ }
128
+ export {};
25
129
  //# sourceMappingURL=themeHelpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB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,MAAM;;CAAsD,CAAC;AAE/G,QAAA,MAAM,MAAM;;;;;;;;;;CAUX,CAAA;AAED,aAAK,UAAU,GAAG,OAAO,MAAM,CAAC;AAEhC,aAAK,SAAS,GAAG,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,WAAW;;;;;;;;;;;;CAcd,CAAA;AAEH,aAAK,WAAW,GAAG,OAAO,WAAW,CAAC;AAEtC,oBAAY,UAAU,GAAG,MAAM,WAAW,CAAC;AAE3C,aAAK,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,OAAO,GAAC,OAAO,CAAC,CAAC;AAC1D,aAAK,WAAW,GAAG,GAAG,cAAc,UAAU,UAAU,EAAE,CAAA;AAE1D,oBAAY,KAAK,GAAG,SAAS,GAAG,WAAW,CAAC;AAqB5C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC;;EAuCrE;AAED,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IAChC,SAAS,EAAE;SAAE,GAAG,IAAI,QAAQ,GAAG,MAAM;KAAC,CAAC;IACvC,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,MAAM,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -23,59 +23,67 @@ 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
- ];
29
+ exports.fontVariations = {
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
+ };
50
47
  const generateFontSizes = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.fontVariations);
51
48
  exports.generateFontSizes = generateFontSizes;
52
49
  // line heights for font
53
- exports.lineHeightVariants = exports.fontVariations.map(f => (Object.assign(Object.assign({}, f), { scale: f.scale * 1.6 })));
50
+ exports.lineHeightVariants = lodash_1.mapValues(exports.fontVariations, f => f * 1.6);
54
51
  const generateLineHeights = (baseFontSize) => exports.generateSizeScale(baseFontSize, exports.lineHeightVariants);
55
52
  exports.generateLineHeights = generateLineHeights;
56
53
  // 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
- ];
54
+ exports.spacingVariations = {
55
+ 'none': 0 / 20,
56
+ 'xxxxxxxs': 1 / 20,
57
+ 'xxxxxxs': 2 / 20,
58
+ 'xxxxxs': 4 / 20,
59
+ 'xxxxs': 5 / 20,
60
+ 'xxxs': 8 / 20,
61
+ 'xxs': 10 / 20,
62
+ 'xs': 16 / 20,
63
+ 'sm': 18 / 20,
64
+ 'md': 20 / 20,
65
+ 'lg': 24 / 20,
66
+ 'xl': 28 / 20,
67
+ 'xxl': 32 / 20,
68
+ 'xxxl': 36 / 20,
69
+ 'xxxxl': 40 / 20,
70
+ 'xxxxxl': 48 / 20,
71
+ 'xxxxxxl': 60 / 20,
72
+ 'xxxxxxxl': 72 / 20
73
+ };
77
74
  const generateSpacingSizes = (baseSpacing) => exports.generateSizeScale(baseSpacing, exports.spacingVariations);
78
75
  exports.generateSpacingSizes = generateSpacingSizes;
76
+ const colors = {
77
+ white: "#ffffff",
78
+ black: "#1e1e1e",
79
+ primary: '#008f7b',
80
+ secondary: '#008f7b',
81
+ success: '#008f7b',
82
+ info: '#008f7b',
83
+ warning: '#ff00ff',
84
+ danger: '#ff0000',
85
+ grey: '#696969'
86
+ };
79
87
  const colorShades = {
80
88
  // whiten
81
89
  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,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IAElE,OAAO,cAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,SAAS,CAAC,GAAG,EAAE,SAAS;IAC/B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,GAAC,SAAS,CAAC,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK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,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC;wBACvC,WAAW,GAAG,2BAA2B,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,CAAA;oBACvE,QAAQ;iBACX;aACJ;YAED,OAAO,WAAW,CAAC;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.124",
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",