@evlop/native-components 1.0.97 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/Text/index.d.ts.map +1 -1
- package/dist/src/Text/index.js +1 -9
- package/dist/src/Text/index.js.map +1 -1
- package/dist/src/WebView/index.d.ts +1 -2
- package/dist/src/WebView/index.d.ts.map +1 -1
- package/dist/src/WebView/index.js +2 -7
- package/dist/src/WebView/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/WebView/index.native.d.ts +0 -2
- package/dist/src/WebView/index.native.d.ts.map +0 -1
- package/dist/src/WebView/index.native.js +0 -6
- package/dist/src/WebView/index.native.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,EAGN,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAkB,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,EAAgE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAG,MAAM,eAAe,CAAC;AAGlL,aAAK,eAAe,GAAG,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAyB9L,aAAK,aAAa,GAAG,eAAe,GAAG;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,EAGN,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAkB,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,EAAgE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAG,MAAM,eAAe,CAAC;AAGlL,aAAK,eAAe,GAAG,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAyB9L,aAAK,aAAa,GAAG,eAAe,GAAG;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAE/E,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAUvD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,qBAAqB,CAAC,aAAa,CAgC1C,CAAC;AAOb,eAAe,IAAI,CAAC"}
|
package/dist/src/Text/index.js
CHANGED
|
@@ -53,19 +53,11 @@ const NativeText = (0, native_1.default)(react_native_1.Text)((0, styled_system_
|
|
|
53
53
|
}), styled_system_1.border, styled_system_1.layout, styled_system_1.background, styled_system_1.color, styled_system_1.typography, styled_system_1.space, ({ fontSize, fontScale = 1, theme: { fontSize: baseFontSize }, }) => !fontSize && ({
|
|
54
54
|
fontSize: fontScale * baseFontSize,
|
|
55
55
|
}));
|
|
56
|
-
const emptyTextProps = { height: 0 };
|
|
57
56
|
const BaseText = (_a) => {
|
|
58
57
|
var { isEditing, children, content = children } = _a, props = __rest(_a, ["isEditing", "children", "content"]);
|
|
59
58
|
let template = (0, commons_1.useTemplate)();
|
|
60
59
|
let displayValue = (0, react_1.useMemo)(() => template(content), [template, content]);
|
|
61
|
-
|
|
62
|
-
displayValue = 'Click to edit';
|
|
63
|
-
}
|
|
64
|
-
const additionalProps = {};
|
|
65
|
-
if (!displayValue) {
|
|
66
|
-
additionalProps.height = 0;
|
|
67
|
-
}
|
|
68
|
-
return (react_1.default.createElement(NativeText, Object.assign({}, props, additionalProps), displayValue));
|
|
60
|
+
return (react_1.default.createElement(NativeText, Object.assign({}, props), displayValue));
|
|
69
61
|
};
|
|
70
62
|
exports.BaseText = BaseText;
|
|
71
63
|
exports.Text = (0, commons_1.withSettings)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Text/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAKwB;AACxB,+CAAuC;AACvC,+CAAwE;AACxE,sEAA8C;AAC9C,iDAAkL;AAClL,mCAA6B;AAI7B,MAAM,UAAU,GAAG,IAAA,gBAAM,EAAC,mBAAM,CAAC,CAC/B,IAAA,sBAAM,EAAC;IACL,QAAQ,EAAC;QACP,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,aAAa;QACpB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,IAAA,YAAG,EAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;KAC7F;CACF,CAAC,EACF,sBAAM,EACN,sBAAM,EACN,0BAAU,EACV,qBAAK,EACL,0BAAU,EACV,qBAAK,EACL,CAAC,EACC,QAAQ,EACR,SAAS,GAAG,CAAC,EACb,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,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AAQ,EAAC;gBAClC,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC;gBAChC,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAC;aACrC;YACD,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC,CAAC,gBAAQ,CAAC,CAAC;AAEb,YAAI,CAAC,YAAY,GAAG;IAClB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,SAAS;CACtB,CAAA;AAED,kBAAe,YAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/WebView/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/WebView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.WebView = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const WebView = () => react_1.default.createElement(react_native_1.Text, null, "WebView is only supported on real Devices");
|
|
10
|
-
exports.WebView = WebView;
|
|
4
|
+
var react_native_webview_1 = require("react-native-webview");
|
|
5
|
+
Object.defineProperty(exports, "WebView", { enumerable: true, get: function () { return react_native_webview_1.WebView; } });
|
|
11
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/WebView/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/WebView/index.tsx"],"names":[],"mappings":";;;AAAA,6DAA+C;AAAtC,+GAAA,OAAO,OAAA"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/WebView/index.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebView = void 0;
|
|
4
|
-
var react_native_webview_1 = require("react-native-webview");
|
|
5
|
-
Object.defineProperty(exports, "WebView", { enumerable: true, get: function () { return react_native_webview_1.WebView; } });
|
|
6
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../src/WebView/index.native.tsx"],"names":[],"mappings":";;;AAAA,6DAA+C;AAAtC,+GAAA,OAAO,OAAA"}
|