@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.
@@ -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
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
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
- Circle: () => Circle,
26
- ClipPath: () => ClipPath,
27
- Defs: () => Defs,
28
- Ellipse: () => Ellipse,
29
- ForeignObject: () => ForeignObject,
30
- G: () => G,
31
- Image: () => Image,
32
- Line: () => Line,
33
- LinearGradient: () => LinearGradient,
34
- Marker: () => Marker,
35
- Mask: () => Mask,
36
- Path: () => Path,
37
- Pattern: () => Pattern,
38
- Polygon: () => Polygon,
39
- Polyline: () => Polyline,
40
- RadialGradient: () => RadialGradient,
41
- Rect: () => Rect,
42
- Shape: () => Shape,
43
- Stop: () => Stop,
44
- Svg: () => Svg,
45
- Symbol: () => Symbol2,
46
- TSpan: () => TSpan,
47
- Text: () => Text,
48
- TextPath: () => TextPath,
49
- Use: () => Use,
50
- default: () => index_default
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
- const {
56
- testID,
57
- accessibilityLabel,
58
- ...rest
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
- ...toDOMProps(props),
66
- ref
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);
@@ -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
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
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
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
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
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
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":["index_native_exports","__export","default","import_react_native_svg","module","exports","__toCommonJS","__reExport","require","__toESM"],"sources":["../../src/index.native.js"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,uBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,oBAAA;AACAO,UAAA,CAAAP,oBAAA,EAAcQ,OAAA,sBADdJ,MAAA,CAAAC,OAAA;AAEA,IAAAF,uBAAA,GAAwBM,OAAA,CAAAD,OAAA","ignoreList":[]}
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
- const toDOMProps = props => {
3
- const {
4
- testID,
5
- accessibilityLabel,
6
- ...rest
7
- } = props;
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
- ...toDOMProps(props),
14
- ref
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
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","forwardRef","toDOMProps","props","testID","accessibilityLabel","rest","svgElement","tag","ref","Circle","ClipPath","Defs","Ellipse","ForeignObject","G","Image","Line","LinearGradient","Marker","Mask","Path","Pattern","Polygon","Polyline","RadialGradient","Rect","Shape","Stop","Svg","Symbol","Text","TextPath","TSpan","Use","index_default"],"sources":["../../src/index.js"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,UAAA,QAAkB;AAM1C,MAAMC,UAAA,GAAcC,KAAA,IAAU;EAC5B,MAAM;IAAEC,MAAA;IAAQC,kBAAA;IAAoB,GAAGC;EAAK,IAAIH,KAAA;EAChD,IAAIC,MAAA,KAAW,QAAWE,IAAA,CAAK,aAAa,IAAIF,MAAA;EAChD,IAAIC,kBAAA,KAAuB,QAAWC,IAAA,CAAK,YAAY,IAAID,kBAAA;EAC3D,OAAOC,IAAA;AACT;AAEA,MAAMC,UAAA,GAAcC,GAAA,IAClBP,UAAA,CAAW,CAACE,KAAA,EAAOM,GAAA,KAAQT,aAAA,CAAcQ,GAAA,EAAK;EAAE,GAAGN,UAAA,CAAWC,KAAK;EAAGM;AAAI,CAAC,CAAC;AAEvE,MAAMC,MAAA,GAASH,UAAA,CAAW,QAAQ;AAClC,MAAMI,QAAA,GAAWJ,UAAA,CAAW,UAAU;AACtC,MAAMK,IAAA,GAAOL,UAAA,CAAW,MAAM;AAC9B,MAAMM,OAAA,GAAUN,UAAA,CAAW,SAAS;AACpC,MAAMO,aAAA,GAAgBP,UAAA,CAAW,eAAe;AAChD,MAAMQ,CAAA,GAAIR,UAAA,CAAW,GAAG;AACxB,MAAMS,KAAA,GAAQT,UAAA,CAAW,OAAO;AAChC,MAAMU,IAAA,GAAOV,UAAA,CAAW,MAAM;AAC9B,MAAMW,cAAA,GAAiBX,UAAA,CAAW,gBAAgB;AAClD,MAAMY,MAAA,GAASZ,UAAA,CAAW,QAAQ;AAClC,MAAMa,IAAA,GAAOb,UAAA,CAAW,MAAM;AAC9B,MAAMc,IAAA,GAAOd,UAAA,CAAW,MAAM;AAC9B,MAAMe,OAAA,GAAUf,UAAA,CAAW,SAAS;AACpC,MAAMgB,OAAA,GAAUhB,UAAA,CAAW,SAAS;AACpC,MAAMiB,QAAA,GAAWjB,UAAA,CAAW,UAAU;AACtC,MAAMkB,cAAA,GAAiBlB,UAAA,CAAW,gBAAgB;AAClD,MAAMmB,IAAA,GAAOnB,UAAA,CAAW,MAAM;AAC9B,MAAMoB,KAAA,GAAQpB,UAAA,CAAW,OAAO;AAChC,MAAMqB,IAAA,GAAOrB,UAAA,CAAW,MAAM;AAC9B,MAAMsB,GAAA,GAAMtB,UAAA,CAAW,KAAK;AAC5B,MAAMuB,MAAA,GAASvB,UAAA,CAAW,QAAQ;AAClC,MAAMwB,IAAA,GAAOxB,UAAA,CAAW,MAAM;AAC9B,MAAMyB,QAAA,GAAWzB,UAAA,CAAW,UAAU;AACtC,MAAM0B,KAAA,GAAQ1B,UAAA,CAAW,OAAO;AAChC,MAAM2B,GAAA,GAAM3B,UAAA,CAAW,KAAK;AAEnC,IAAO4B,aAAA,GAAQN,GAAA","ignoreList":[]}
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"}
@@ -1,17 +1,14 @@
1
1
  import { createElement, forwardRef } from "react";
2
- const toDOMProps = props => {
3
- const {
4
- testID,
5
- accessibilityLabel,
6
- ...rest
7
- } = props;
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
- ...toDOMProps(props),
14
- ref
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
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","forwardRef","toDOMProps","props","testID","accessibilityLabel","rest","svgElement","tag","ref","Circle","ClipPath","Defs","Ellipse","ForeignObject","G","Image","Line","LinearGradient","Marker","Mask","Path","Pattern","Polygon","Polyline","RadialGradient","Rect","Shape","Stop","Svg","Symbol","Text","TextPath","TSpan","Use","index_default"],"sources":["../../src/index.js"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,UAAA,QAAkB;AAM1C,MAAMC,UAAA,GAAcC,KAAA,IAAU;EAC5B,MAAM;IAAEC,MAAA;IAAQC,kBAAA;IAAoB,GAAGC;EAAK,IAAIH,KAAA;EAChD,IAAIC,MAAA,KAAW,QAAWE,IAAA,CAAK,aAAa,IAAIF,MAAA;EAChD,IAAIC,kBAAA,KAAuB,QAAWC,IAAA,CAAK,YAAY,IAAID,kBAAA;EAC3D,OAAOC,IAAA;AACT;AAEA,MAAMC,UAAA,GAAcC,GAAA,IAClBP,UAAA,CAAW,CAACE,KAAA,EAAOM,GAAA,KAAQT,aAAA,CAAcQ,GAAA,EAAK;EAAE,GAAGN,UAAA,CAAWC,KAAK;EAAGM;AAAI,CAAC,CAAC;AAEvE,MAAMC,MAAA,GAASH,UAAA,CAAW,QAAQ;AAClC,MAAMI,QAAA,GAAWJ,UAAA,CAAW,UAAU;AACtC,MAAMK,IAAA,GAAOL,UAAA,CAAW,MAAM;AAC9B,MAAMM,OAAA,GAAUN,UAAA,CAAW,SAAS;AACpC,MAAMO,aAAA,GAAgBP,UAAA,CAAW,eAAe;AAChD,MAAMQ,CAAA,GAAIR,UAAA,CAAW,GAAG;AACxB,MAAMS,KAAA,GAAQT,UAAA,CAAW,OAAO;AAChC,MAAMU,IAAA,GAAOV,UAAA,CAAW,MAAM;AAC9B,MAAMW,cAAA,GAAiBX,UAAA,CAAW,gBAAgB;AAClD,MAAMY,MAAA,GAASZ,UAAA,CAAW,QAAQ;AAClC,MAAMa,IAAA,GAAOb,UAAA,CAAW,MAAM;AAC9B,MAAMc,IAAA,GAAOd,UAAA,CAAW,MAAM;AAC9B,MAAMe,OAAA,GAAUf,UAAA,CAAW,SAAS;AACpC,MAAMgB,OAAA,GAAUhB,UAAA,CAAW,SAAS;AACpC,MAAMiB,QAAA,GAAWjB,UAAA,CAAW,UAAU;AACtC,MAAMkB,cAAA,GAAiBlB,UAAA,CAAW,gBAAgB;AAClD,MAAMmB,IAAA,GAAOnB,UAAA,CAAW,MAAM;AAC9B,MAAMoB,KAAA,GAAQpB,UAAA,CAAW,OAAO;AAChC,MAAMqB,IAAA,GAAOrB,UAAA,CAAW,MAAM;AAC9B,MAAMsB,GAAA,GAAMtB,UAAA,CAAW,KAAK;AAC5B,MAAMuB,MAAA,GAASvB,UAAA,CAAW,QAAQ;AAClC,MAAMwB,IAAA,GAAOxB,UAAA,CAAW,MAAM;AAC9B,MAAMyB,QAAA,GAAWzB,UAAA,CAAW,UAAU;AACtC,MAAM0B,KAAA,GAAQ1B,UAAA,CAAW,OAAO;AAChC,MAAM2B,GAAA,GAAM3B,UAAA,CAAW,KAAK;AAEnC,IAAO4B,aAAA,GAAQN,GAAA","ignoreList":[]}
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"}
@@ -1,4 +1,5 @@
1
- export * from "react-native-svg";
2
- import { default as default2 } from "react-native-svg";
3
- export { default2 as default };
4
- //# sourceMappingURL=index.native.js.map
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": "2.7.7",
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": "2.7.7",
29
- "react-native-svg": "15.15.3"
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",
@@ -1,2 +0,0 @@
1
- $ tamagui-build
2
- built @tamagui/react-native-svg in 199 ms
@@ -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":[]}
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "composite": true
5
- },
6
- "references": []
7
- }