@evlop/commons 1.0.175 → 1.0.176

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ exports.i18nInstance = i18next_1.default.createInstance();
9
9
  exports.i18nInstance.init({
10
10
  compatibilityJSON: "v3",
11
11
  lng: "en",
12
- fallbackLng: ['en', 'EN'],
12
+ fallbackLng: ['default', 'en', 'EN'],
13
13
  defaultNS: "common",
14
14
  interpolation: {
15
15
  escapeValue: false,
@@ -1 +1 @@
1
- {"version":3,"file":"i18ninstance.js","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAEjB,QAAA,YAAY,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;AACrD,oBAAY,CAAC,IAAI,CAAC;IACd,iBAAiB,EAAE,IAAI;IACvB,GAAG,EAAE,IAAI;IACT,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IACzB,SAAS,EAAE,QAAQ;IACnB,aAAa,EAAC;QACV,WAAW,EAAE,KAAK;KACrB;IACD,KAAK,EAAC;QACF,WAAW,EAAE,KAAK;KACrB;CACJ,CAAC,CAAC;AAEH,kBAAe,oBAAY,CAAC"}
1
+ {"version":3,"file":"i18ninstance.js","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAEjB,QAAA,YAAY,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;AACrD,oBAAY,CAAC,IAAI,CAAC;IACd,iBAAiB,EAAE,IAAI;IACvB,GAAG,EAAE,IAAI;IACT,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;IACpC,SAAS,EAAE,QAAQ;IACnB,aAAa,EAAC;QACV,WAAW,EAAE,KAAK;KACrB;IACD,KAAK,EAAC;QACF,WAAW,EAAE,KAAK;KACrB;CACJ,CAAC,CAAC;AAEH,kBAAe,oBAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.175",
3
+ "version": "1.0.176",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -1,3 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- //# sourceMappingURL=Dropable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dropable.d.ts","sourceRoot":"","sources":["../../../src/components/Dropable.tsx"],"names":[],"mappings":";AAiCA,wBAaW"}
@@ -1,39 +0,0 @@
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 react_1 = __importDefault(require("react"));
7
- const styled_components_1 = __importDefault(require("styled-components"));
8
- const react_dnd_1 = require("react-dnd");
9
- const constants_1 = require("../constants");
10
- const DropableContainer = styled_components_1.default.div && styled_components_1.default.div(({ theme }) => ({
11
- display: 'none',
12
- transition: 'all 0.25s',
13
- height: 'auto',
14
- backgroundColor: theme.adminPrimaryColor,
15
- border: '2px dashed #17559b',
16
- color: '#fff',
17
- padding: 20,
18
- }), ({ canDrop }) => canDrop && {
19
- display: 'block',
20
- opacity: 0,
21
- }, ({ canDrop, isOver }) => canDrop && isOver && {
22
- visibility: 'visible',
23
- opacity: 1,
24
- });
25
- const Dropable = ({ isOver, canDrop, connectDropTarget }) => {
26
- return connectDropTarget(react_1.default.createElement("div", { style: { paddingBottom: 200 } },
27
- react_1.default.createElement(DropableContainer, { canDrop: canDrop, isOver: isOver }, "Drag here and release to add selected component here")));
28
- };
29
- exports.default = react_dnd_1.DropTarget(() => [constants_1.TYPE_COMPONENT], {
30
- drop(props, monitor) {
31
- props.onDrop(monitor.getItem());
32
- },
33
- }, (connect, monitor) => ({
34
- connectDropTarget: connect.dropTarget(),
35
- isDragging: false,
36
- isOver: monitor.isOver(),
37
- canDrop: monitor.canDrop(),
38
- }))(Dropable);
39
- //# sourceMappingURL=Dropable.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