@tamagui/react-native-svg 2.7.7 → 3.0.0-beta.637.1
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/cjs/index.cjs +48 -53
- package/dist/cjs/index.native.cjs +35 -0
- package/dist/cjs/index.native.js +18 -25
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +10 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +10 -12
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +5 -4
- package/package.json +10 -3
- package/.turbo/turbo-build.log +0 -2
- package/dist/esm/index.native.js.map +0 -1
- package/tsconfig.json +0 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,69 +1,64 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var index_exports = {};
|
|
24
23
|
__export(index_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
Circle: () => Circle,
|
|
25
|
+
ClipPath: () => ClipPath,
|
|
26
|
+
Defs: () => Defs,
|
|
27
|
+
Ellipse: () => Ellipse,
|
|
28
|
+
ForeignObject: () => ForeignObject,
|
|
29
|
+
G: () => G,
|
|
30
|
+
Image: () => Image,
|
|
31
|
+
Line: () => Line,
|
|
32
|
+
LinearGradient: () => LinearGradient,
|
|
33
|
+
Marker: () => Marker,
|
|
34
|
+
Mask: () => Mask,
|
|
35
|
+
Path: () => Path,
|
|
36
|
+
Pattern: () => Pattern,
|
|
37
|
+
Polygon: () => Polygon,
|
|
38
|
+
Polyline: () => Polyline,
|
|
39
|
+
RadialGradient: () => RadialGradient,
|
|
40
|
+
Rect: () => Rect,
|
|
41
|
+
Shape: () => Shape,
|
|
42
|
+
Stop: () => Stop,
|
|
43
|
+
Svg: () => Svg,
|
|
44
|
+
Symbol: () => Symbol2,
|
|
45
|
+
TSpan: () => TSpan,
|
|
46
|
+
Text: () => Text,
|
|
47
|
+
TextPath: () => TextPath,
|
|
48
|
+
Use: () => Use,
|
|
49
|
+
default: () => index_default
|
|
51
50
|
});
|
|
52
51
|
module.exports = __toCommonJS(index_exports);
|
|
53
52
|
var import_react = require("react");
|
|
54
|
-
const toDOMProps = props => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} = props;
|
|
60
|
-
if (testID !== void 0) rest["data-testid"] = testID;
|
|
61
|
-
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
62
|
-
return rest;
|
|
53
|
+
const toDOMProps = (props) => {
|
|
54
|
+
const { testID, accessibilityLabel, ...rest } = props;
|
|
55
|
+
if (testID !== void 0) rest["data-testid"] = testID;
|
|
56
|
+
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
57
|
+
return rest;
|
|
63
58
|
};
|
|
64
|
-
const svgElement = tag => (0, import_react.forwardRef)((props, ref) => (0, import_react.createElement)(tag, {
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
const svgElement = (tag) => (0, import_react.forwardRef)((props, ref) => (0, import_react.createElement)(tag, {
|
|
60
|
+
...toDOMProps(props),
|
|
61
|
+
ref
|
|
67
62
|
}));
|
|
68
63
|
const Circle = svgElement("circle");
|
|
69
64
|
const ClipPath = svgElement("clipPath");
|
|
@@ -90,4 +85,4 @@ const Text = svgElement("text");
|
|
|
90
85
|
const TextPath = svgElement("clipPath");
|
|
91
86
|
const TSpan = svgElement("tSpan");
|
|
92
87
|
const Use = svgElement("use");
|
|
93
|
-
var index_default = Svg;
|
|
88
|
+
var index_default = Svg;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
27
|
+
value: mod,
|
|
28
|
+
enumerable: true
|
|
29
|
+
}) : target, mod));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
var index_native_exports = {};
|
|
32
|
+
__export(index_native_exports, { default: () => import_react_native_svg.default });
|
|
33
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
34
|
+
__reExport(index_native_exports, require("react-native-svg"), module.exports);
|
|
35
|
+
var import_react_native_svg = __toESM(require("react-native-svg"), 1);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __create = Object.create;
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7,38 +8,30 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
10
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
14
15
|
};
|
|
15
16
|
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
23
24
|
};
|
|
24
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
25
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
-
value: mod,
|
|
32
|
-
enumerable: true
|
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
27
|
+
value: mod,
|
|
28
|
+
enumerable: true
|
|
33
29
|
}) : target, mod));
|
|
34
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
35
|
-
value: true
|
|
36
|
-
}), mod);
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
31
|
var index_native_exports = {};
|
|
38
|
-
__export(index_native_exports, {
|
|
39
|
-
default: () => import_react_native_svg.default
|
|
40
|
-
});
|
|
32
|
+
__export(index_native_exports, { default: () => import_react_native_svg.default });
|
|
41
33
|
module.exports = __toCommonJS(index_native_exports);
|
|
42
34
|
__reExport(index_native_exports, require("react-native-svg"), module.exports);
|
|
43
35
|
var import_react_native_svg = __toESM(require("react-native-svg"), 1);
|
|
36
|
+
|
|
44
37
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_native_exports = {};\n__export(index_native_exports, {\n default: () => import_react_native_svg.default\n});\nmodule.exports = __toCommonJS(index_native_exports);\n__reExport(index_native_exports, require(\"react-native-svg\"), module.exports);\nvar import_react_native_svg = __toESM(require(\"react-native-svg\"), 1);\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB,EAC7B,eAAe,wBAAwB,QACzC,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,WAAW,sBAAsB,QAAQ,kBAAkB,GAAG,OAAO,OAAO;AAC5E,IAAI,0BAA0B,QAAQ,QAAQ,kBAAkB,GAAG,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { createElement, forwardRef } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (testID !== void 0) rest["data-testid"] = testID;
|
|
9
|
-
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
10
|
-
return rest;
|
|
2
|
+
|
|
3
|
+
const toDOMProps = (props) => {
|
|
4
|
+
const { testID, accessibilityLabel, ...rest } = props;
|
|
5
|
+
if (testID !== void 0) rest["data-testid"] = testID;
|
|
6
|
+
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
7
|
+
return rest;
|
|
11
8
|
};
|
|
12
|
-
const svgElement = tag => forwardRef((props, ref) => createElement(tag, {
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const svgElement = (tag) => forwardRef((props, ref) => createElement(tag, {
|
|
10
|
+
...toDOMProps(props),
|
|
11
|
+
ref
|
|
15
12
|
}));
|
|
16
13
|
const Circle = svgElement("circle");
|
|
17
14
|
const ClipPath = svgElement("clipPath");
|
|
@@ -39,5 +36,6 @@ const TextPath = svgElement("clipPath");
|
|
|
39
36
|
const TSpan = svgElement("tSpan");
|
|
40
37
|
const Use = svgElement("use");
|
|
41
38
|
var index_default = Svg;
|
|
39
|
+
|
|
42
40
|
export { Circle, ClipPath, Defs, Ellipse, ForeignObject, G, Image, Line, LinearGradient, Marker, Mask, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Shape, Stop, Svg, Symbol, TSpan, Text, TextPath, Use, index_default as default };
|
|
43
41
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createElement, forwardRef } from \"react\";\nconst toDOMProps = (props) => {\n const { testID, accessibilityLabel, ...rest } = props;\n if (testID !== void 0) rest[\"data-testid\"] = testID;\n if (accessibilityLabel !== void 0) rest[\"aria-label\"] = accessibilityLabel;\n return rest;\n};\nconst svgElement = (tag) => forwardRef((props, ref) => createElement(tag, { ...toDOMProps(props), ref }));\nconst Circle = svgElement(\"circle\");\nconst ClipPath = svgElement(\"clipPath\");\nconst Defs = svgElement(\"defs\");\nconst Ellipse = svgElement(\"ellipse\");\nconst ForeignObject = svgElement(\"foreignObject\");\nconst G = svgElement(\"g\");\nconst Image = svgElement(\"image\");\nconst Line = svgElement(\"line\");\nconst LinearGradient = svgElement(\"linearGradient\");\nconst Marker = svgElement(\"marker\");\nconst Mask = svgElement(\"mask\");\nconst Path = svgElement(\"path\");\nconst Pattern = svgElement(\"pattern\");\nconst Polygon = svgElement(\"polygon\");\nconst Polyline = svgElement(\"polyline\");\nconst RadialGradient = svgElement(\"radialGradient\");\nconst Rect = svgElement(\"rect\");\nconst Shape = svgElement(\"shape\");\nconst Stop = svgElement(\"stop\");\nconst Svg = svgElement(\"svg\");\nconst Symbol = svgElement(\"symbol\");\nconst Text = svgElement(\"text\");\nconst TextPath = svgElement(\"clipPath\");\nconst TSpan = svgElement(\"tSpan\");\nconst Use = svgElement(\"use\");\nvar index_default = Svg;\nexport {\n Circle,\n ClipPath,\n Defs,\n Ellipse,\n ForeignObject,\n G,\n Image,\n Line,\n LinearGradient,\n Marker,\n Mask,\n Path,\n Pattern,\n Polygon,\n Polyline,\n RadialGradient,\n Rect,\n Shape,\n Stop,\n Svg,\n Symbol,\n TSpan,\n Text,\n TextPath,\n Use,\n index_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,cAAc,UAAU;CAC5B,MAAM,EAAE,QAAQ,oBAAoB,GAAG,SAAS;CAChD,IAAI,WAAW,KAAK,GAAG,KAAK,iBAAiB;CAC7C,IAAI,uBAAuB,KAAK,GAAG,KAAK,gBAAgB;CACxD,OAAO;AACT;AACA,MAAM,cAAc,QAAQ,YAAY,OAAO,QAAQ,cAAc,KAAK;CAAE,GAAG,WAAW,KAAK;CAAG;AAAI,CAAC,CAAC;AACxG,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,gBAAgB,WAAW,eAAe;AAChD,MAAM,IAAI,WAAW,GAAG;AACxB,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,iBAAiB,WAAW,gBAAgB;AAClD,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,iBAAiB,WAAW,gBAAgB;AAClD,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,MAAM,WAAW,KAAK;AAC5B,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,MAAM,WAAW,KAAK;AAC5B,IAAI,gBAAgB"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { createElement, forwardRef } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (testID !== void 0) rest["data-testid"] = testID;
|
|
9
|
-
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
10
|
-
return rest;
|
|
2
|
+
|
|
3
|
+
const toDOMProps = (props) => {
|
|
4
|
+
const { testID, accessibilityLabel, ...rest } = props;
|
|
5
|
+
if (testID !== void 0) rest["data-testid"] = testID;
|
|
6
|
+
if (accessibilityLabel !== void 0) rest["aria-label"] = accessibilityLabel;
|
|
7
|
+
return rest;
|
|
11
8
|
};
|
|
12
|
-
const svgElement = tag => forwardRef((props, ref) => createElement(tag, {
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const svgElement = (tag) => forwardRef((props, ref) => createElement(tag, {
|
|
10
|
+
...toDOMProps(props),
|
|
11
|
+
ref
|
|
15
12
|
}));
|
|
16
13
|
const Circle = svgElement("circle");
|
|
17
14
|
const ClipPath = svgElement("clipPath");
|
|
@@ -39,5 +36,6 @@ const TextPath = svgElement("clipPath");
|
|
|
39
36
|
const TSpan = svgElement("tSpan");
|
|
40
37
|
const Use = svgElement("use");
|
|
41
38
|
var index_default = Svg;
|
|
39
|
+
|
|
42
40
|
export { Circle, ClipPath, Defs, Ellipse, ForeignObject, G, Image, Line, LinearGradient, Marker, Mask, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Shape, Stop, Svg, Symbol, TSpan, Text, TextPath, Use, index_default as default };
|
|
43
41
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { createElement, forwardRef } from \"react\";\nconst toDOMProps = (props) => {\n const { testID, accessibilityLabel, ...rest } = props;\n if (testID !== void 0) rest[\"data-testid\"] = testID;\n if (accessibilityLabel !== void 0) rest[\"aria-label\"] = accessibilityLabel;\n return rest;\n};\nconst svgElement = (tag) => forwardRef((props, ref) => createElement(tag, { ...toDOMProps(props), ref }));\nconst Circle = svgElement(\"circle\");\nconst ClipPath = svgElement(\"clipPath\");\nconst Defs = svgElement(\"defs\");\nconst Ellipse = svgElement(\"ellipse\");\nconst ForeignObject = svgElement(\"foreignObject\");\nconst G = svgElement(\"g\");\nconst Image = svgElement(\"image\");\nconst Line = svgElement(\"line\");\nconst LinearGradient = svgElement(\"linearGradient\");\nconst Marker = svgElement(\"marker\");\nconst Mask = svgElement(\"mask\");\nconst Path = svgElement(\"path\");\nconst Pattern = svgElement(\"pattern\");\nconst Polygon = svgElement(\"polygon\");\nconst Polyline = svgElement(\"polyline\");\nconst RadialGradient = svgElement(\"radialGradient\");\nconst Rect = svgElement(\"rect\");\nconst Shape = svgElement(\"shape\");\nconst Stop = svgElement(\"stop\");\nconst Svg = svgElement(\"svg\");\nconst Symbol = svgElement(\"symbol\");\nconst Text = svgElement(\"text\");\nconst TextPath = svgElement(\"clipPath\");\nconst TSpan = svgElement(\"tSpan\");\nconst Use = svgElement(\"use\");\nvar index_default = Svg;\nexport {\n Circle,\n ClipPath,\n Defs,\n Ellipse,\n ForeignObject,\n G,\n Image,\n Line,\n LinearGradient,\n Marker,\n Mask,\n Path,\n Pattern,\n Polygon,\n Polyline,\n RadialGradient,\n Rect,\n Shape,\n Stop,\n Svg,\n Symbol,\n TSpan,\n Text,\n TextPath,\n Use,\n index_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,cAAc,UAAU;CAC5B,MAAM,EAAE,QAAQ,oBAAoB,GAAG,SAAS;CAChD,IAAI,WAAW,KAAK,GAAG,KAAK,iBAAiB;CAC7C,IAAI,uBAAuB,KAAK,GAAG,KAAK,gBAAgB;CACxD,OAAO;AACT;AACA,MAAM,cAAc,QAAQ,YAAY,OAAO,QAAQ,cAAc,KAAK;CAAE,GAAG,WAAW,KAAK;CAAG;AAAI,CAAC,CAAC;AACxG,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,gBAAgB,WAAW,eAAe;AAChD,MAAM,IAAI,WAAW,GAAG;AACxB,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,iBAAiB,WAAW,gBAAgB;AAClD,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,UAAU,WAAW,SAAS;AACpC,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,iBAAiB,WAAW,gBAAgB;AAClD,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,MAAM,WAAW,KAAK;AAC5B,MAAM,SAAS,WAAW,QAAQ;AAClC,MAAM,OAAO,WAAW,MAAM;AAC9B,MAAM,WAAW,WAAW,UAAU;AACtC,MAAM,QAAQ,WAAW,OAAO;AAChC,MAAM,MAAM,WAAW,KAAK;AAC5B,IAAI,gBAAgB"}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
import default2 from "react-native-svg";
|
|
2
|
+
|
|
3
|
+
export * from "react-native-svg"
|
|
4
|
+
|
|
5
|
+
export { default2 as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/react-native-svg",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.637.1",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"src",
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
5
9
|
"main": "dist/cjs",
|
|
6
10
|
"module": "dist/esm/index.js",
|
|
7
11
|
"exports": {
|
|
@@ -25,8 +29,11 @@
|
|
|
25
29
|
"clean:build": "tamagui-build clean:build"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
|
-
"@tamagui/build": "
|
|
29
|
-
"react-native-svg": "15.15.
|
|
32
|
+
"@tamagui/build": "3.0.0-beta.637.1",
|
|
33
|
+
"react-native-svg": "15.15.4"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": ">=19"
|
|
30
37
|
},
|
|
31
38
|
"repository": {
|
|
32
39
|
"type": "git",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["default","default2"],"sources":["../../src/index.native.js"],"sourcesContent":[null],"mappings":"AACA,cAAc;AACd,SAASA,OAAA,IAAAC,QAAA,QAAe","ignoreList":[]}
|