@draftbit/core 49.2.11-e1ddae.2 → 49.2.11-fb486e.2
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/lib/commonjs/components/SVG.js +1 -1
- package/lib/commonjs/components/SVG.web.js +1 -0
- package/lib/typescript/src/components/SVG.js +4 -2
- package/lib/typescript/src/components/SVG.js.map +1 -1
- package/lib/typescript/src/components/SVG.web.js +8 -0
- package/lib/typescript/src/components/SVG.web.js.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/SVG.js +4 -2
- package/src/components/SVG.js.map +1 -1
- package/src/components/SVG.tsx +7 -2
- package/src/components/SVG.web.js +8 -0
- package/src/components/SVG.web.js.map +1 -0
- package/src/components/{SVG.native.tsx → SVG.web.tsx} +2 -7
- package/lib/commonjs/components/SVG.native.js +0 -1
- package/lib/typescript/src/components/SVG.native.js +0 -10
- package/lib/typescript/src/components/SVG.native.js.map +0 -1
- package/src/components/SVG.native.js +0 -10
- package/src/components/SVG.native.js.map +0 -1
- /package/lib/typescript/src/components/{SVG.native.d.ts → SVG.web.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SVG.tsx";import*as React from"react";import{
|
|
1
|
+
var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SVG.tsx";import*as React from"react";import{View}from"react-native";import{SvgUri}from"react-native-svg";import Config from"./Config";import{jsx as _jsx}from"react/jsx-runtime";var SVG=function SVG(_ref){var _ref$source=_ref.source,source=_ref$source===void 0?Config.placeholderSvgURL:_ref$source,style=_ref.style;return _jsx(View,{style:style,children:_jsx(SvgUri,{width:"100%",height:"100%",uri:source})});};export default SVG;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SVG.web.tsx";import*as React from"react";import{Image}from"react-native";import Config from"./Config";import{jsx as _jsx}from"react/jsx-runtime";var SVG=function SVG(_ref){var _ref$source=_ref.source,source=_ref$source===void 0?Config.placeholderSvgURL:_ref$source,style=_ref.style;return _jsx(Image,{style:style,source:{uri:source}});};export default SVG;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { SvgUri } from "react-native-svg";
|
|
3
4
|
import Config from "./Config";
|
|
4
5
|
const SVG = ({ source = Config.placeholderSvgURL, style, }) => {
|
|
5
|
-
return React.createElement(
|
|
6
|
+
return (React.createElement(View, { style: style },
|
|
7
|
+
React.createElement(SvgUri, { width: "100%", height: "100%", uri: source })));
|
|
6
8
|
};
|
|
7
9
|
export default SVG;
|
|
8
10
|
//# sourceMappingURL=SVG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../../../src/components/SVG.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["../../../../src/components/SVG.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAyB,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,MAAM,MAAM,UAAU,CAAC;AAO9B,MAAM,GAAG,GAAyD,CAAC,EACjE,MAAM,GAAG,MAAM,CAAC,iBAAiB,EACjC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;QAChB,oBAAC,MAAM,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,GAAG,EAAE,MAAM,GAAI,CAC7C,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Image } from "react-native";
|
|
3
|
+
import Config from "./Config";
|
|
4
|
+
const SVG = ({ source = Config.placeholderSvgURL, style, }) => {
|
|
5
|
+
return React.createElement(Image, { style: style, source: { uri: source } });
|
|
6
|
+
};
|
|
7
|
+
export default SVG;
|
|
8
|
+
//# sourceMappingURL=SVG.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SVG.web.js","sourceRoot":"","sources":["../../../../src/components/SVG.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAyB,MAAM,cAAc,CAAC;AAE5D,OAAO,MAAM,MAAM,UAAU,CAAC;AAO9B,MAAM,GAAG,GAAyD,CAAC,EACjE,MAAM,GAAG,MAAM,CAAC,iBAAiB,EACjC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
|