@tamagui/react-native-svg 1.0.1-beta.146 → 1.0.1-beta.147

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.
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ Circle: () => Circle,
22
+ ClipPath: () => ClipPath,
23
+ Defs: () => Defs,
24
+ Ellipse: () => Ellipse,
25
+ ForeignObject: () => ForeignObject,
26
+ G: () => G,
27
+ Image: () => Image,
28
+ Line: () => Line,
29
+ LinearGradient: () => LinearGradient,
30
+ Marker: () => Marker,
31
+ Mask: () => Mask,
32
+ Path: () => Path,
33
+ Pattern: () => Pattern,
34
+ Polygon: () => Polygon,
35
+ Polyline: () => Polyline,
36
+ RadialGradient: () => RadialGradient,
37
+ Rect: () => Rect,
38
+ Shape: () => Shape,
39
+ Stop: () => Stop,
40
+ Svg: () => Svg,
41
+ Symbol: () => Symbol,
42
+ TSpan: () => TSpan,
43
+ Text: () => Text,
44
+ TextPath: () => TextPath,
45
+ Use: () => Use
46
+ });
47
+ module.exports = __toCommonJS(src_exports);
48
+ var import_react = require("react");
49
+ const Circle = (p) => (0, import_react.createElement)("circle", p);
50
+ const ClipPath = (p) => (0, import_react.createElement)("clipPath", p);
51
+ const Defs = (p) => (0, import_react.createElement)("defs", p);
52
+ const Ellipse = (p) => (0, import_react.createElement)("ellipse", p);
53
+ const ForeignObject = (p) => (0, import_react.createElement)("foreignObject", p);
54
+ const G = (p) => (0, import_react.createElement)("g", p);
55
+ const Image = (p) => (0, import_react.createElement)("image", p);
56
+ const Line = (p) => (0, import_react.createElement)("line", p);
57
+ const LinearGradient = (p) => (0, import_react.createElement)("lineargradient", p);
58
+ const Marker = (p) => (0, import_react.createElement)("marker", p);
59
+ const Mask = (p) => (0, import_react.createElement)("mask", p);
60
+ const Path = (p) => (0, import_react.createElement)("path", p);
61
+ const Pattern = (p) => (0, import_react.createElement)("pattern", p);
62
+ const Polygon = (p) => (0, import_react.createElement)("polygon", p);
63
+ const Polyline = (p) => (0, import_react.createElement)("polyline", p);
64
+ const RadialGradient = (p) => (0, import_react.createElement)("radialgradient", p);
65
+ const Rect = (p) => (0, import_react.createElement)("rect", p);
66
+ const Shape = (p) => (0, import_react.createElement)("shape", p);
67
+ const Stop = (p) => (0, import_react.createElement)("stop", p);
68
+ const Svg = (p) => (0, import_react.createElement)("svg", p);
69
+ const Symbol = (p) => (0, import_react.createElement)("symbol", p);
70
+ const Text = (p) => (0, import_react.createElement)("text", p);
71
+ const TextPath = (p) => (0, import_react.createElement)("clipPath", p);
72
+ const TSpan = (p) => (0, import_react.createElement)("tSpan", p);
73
+ const Use = (p) => (0, import_react.createElement)("use", p);
74
+ // Annotate the CommonJS export names for ESM import in node:
75
+ 0 && (module.exports = {
76
+ Circle,
77
+ ClipPath,
78
+ Defs,
79
+ Ellipse,
80
+ ForeignObject,
81
+ G,
82
+ Image,
83
+ Line,
84
+ LinearGradient,
85
+ Marker,
86
+ Mask,
87
+ Path,
88
+ Pattern,
89
+ Polygon,
90
+ Polyline,
91
+ RadialGradient,
92
+ Rect,
93
+ Shape,
94
+ Stop,
95
+ Svg,
96
+ Symbol,
97
+ TSpan,
98
+ Text,
99
+ TextPath,
100
+ Use
101
+ });
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.js"],
4
+ "sourcesContent": ["import { createElement } from 'react'\n\nexport const Circle = (p) => createElement('circle', p)\nexport const ClipPath = (p) => createElement('clipPath', p)\nexport const Defs = (p) => createElement('defs', p)\nexport const Ellipse = (p) => createElement('ellipse', p)\nexport const ForeignObject = (p) => createElement('foreignObject', p)\nexport const G = (p) => createElement('g', p)\nexport const Image = (p) => createElement('image', p)\nexport const Line = (p) => createElement('line', p)\nexport const LinearGradient = (p) => createElement('lineargradient', p)\nexport const Marker = (p) => createElement('marker', p)\nexport const Mask = (p) => createElement('mask', p)\nexport const Path = (p) => createElement('path', p)\nexport const Pattern = (p) => createElement('pattern', p)\nexport const Polygon = (p) => createElement('polygon', p)\nexport const Polyline = (p) => createElement('polyline', p)\nexport const RadialGradient = (p) => createElement('radialgradient', p)\nexport const Rect = (p) => createElement('rect', p)\nexport const Shape = (p) => createElement('shape', p)\nexport const Stop = (p) => createElement('stop', p)\nexport const Svg = (p) => createElement('svg', p)\nexport const Symbol = (p) => createElement('symbol', p)\nexport const Text = (p) => createElement('text', p)\nexport const TextPath = (p) => createElement('clipPath', p)\nexport const TSpan = (p) => createElement('tSpan', p)\nexport const Use = (p) => createElement('use', p)\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B;AAEvB,MAAM,SAAS,CAAC,MAAM,gCAAc,UAAU,CAAC;AAC/C,MAAM,WAAW,CAAC,MAAM,gCAAc,YAAY,CAAC;AACnD,MAAM,OAAO,CAAC,MAAM,gCAAc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 const ClipPath = (p) => createElement("clipPath", p);
4
+ const Defs = (p) => createElement("defs", p);
5
+ const Ellipse = (p) => createElement("ellipse", p);
6
+ const ForeignObject = (p) => createElement("foreignObject", p);
7
+ const G = (p) => createElement("g", p);
8
+ const Image = (p) => createElement("image", p);
9
+ const Line = (p) => createElement("line", p);
10
+ const LinearGradient = (p) => createElement("lineargradient", p);
11
+ const Marker = (p) => createElement("marker", p);
12
+ const Mask = (p) => createElement("mask", p);
13
+ const Path = (p) => createElement("path", p);
14
+ const Pattern = (p) => createElement("pattern", p);
15
+ const Polygon = (p) => createElement("polygon", p);
16
+ const Polyline = (p) => createElement("polyline", p);
17
+ const RadialGradient = (p) => createElement("radialgradient", p);
18
+ const Rect = (p) => createElement("rect", p);
19
+ const Shape = (p) => createElement("shape", p);
20
+ const Stop = (p) => createElement("stop", p);
21
+ const Svg = (p) => createElement("svg", p);
22
+ const Symbol = (p) => createElement("symbol", p);
23
+ const Text = (p) => createElement("text", p);
24
+ const TextPath = (p) => createElement("clipPath", p);
25
+ const TSpan = (p) => createElement("tSpan", p);
26
+ const Use = (p) => createElement("use", p);
27
+ export {
28
+ Circle,
29
+ ClipPath,
30
+ Defs,
31
+ Ellipse,
32
+ ForeignObject,
33
+ G,
34
+ Image,
35
+ Line,
36
+ LinearGradient,
37
+ Marker,
38
+ Mask,
39
+ Path,
40
+ Pattern,
41
+ Polygon,
42
+ Polyline,
43
+ RadialGradient,
44
+ Rect,
45
+ Shape,
46
+ Stop,
47
+ Svg,
48
+ Symbol,
49
+ TSpan,
50
+ Text,
51
+ TextPath,
52
+ Use
53
+ };
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.js"],
4
+ "sourcesContent": ["import { createElement } from 'react'\n\nexport const Circle = (p) => createElement('circle', p)\nexport const ClipPath = (p) => createElement('clipPath', p)\nexport const Defs = (p) => createElement('defs', p)\nexport const Ellipse = (p) => createElement('ellipse', p)\nexport const ForeignObject = (p) => createElement('foreignObject', p)\nexport const G = (p) => createElement('g', p)\nexport const Image = (p) => createElement('image', p)\nexport const Line = (p) => createElement('line', p)\nexport const LinearGradient = (p) => createElement('lineargradient', p)\nexport const Marker = (p) => createElement('marker', p)\nexport const Mask = (p) => createElement('mask', p)\nexport const Path = (p) => createElement('path', p)\nexport const Pattern = (p) => createElement('pattern', p)\nexport const Polygon = (p) => createElement('polygon', p)\nexport const Polyline = (p) => createElement('polyline', p)\nexport const RadialGradient = (p) => createElement('radialgradient', p)\nexport const Rect = (p) => createElement('rect', p)\nexport const Shape = (p) => createElement('shape', p)\nexport const Stop = (p) => createElement('stop', p)\nexport const Svg = (p) => createElement('svg', p)\nexport const Symbol = (p) => createElement('symbol', p)\nexport const Text = (p) => createElement('text', p)\nexport const TextPath = (p) => createElement('clipPath', p)\nexport const TSpan = (p) => createElement('tSpan', p)\nexport const Use = (p) => createElement('use', p)\n"],
5
+ "mappings": "AAAA;AAEO,MAAM,SAAS,CAAC,MAAM,cAAc,UAAU,CAAC;AAC/C,MAAM,WAAW,CAAC,MAAM,cAAc,YAAY,CAAC;AACnD,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,UAAU,CAAC,MAAM,cAAc,WAAW,CAAC;AACjD,MAAM,gBAAgB,CAAC,MAAM,cAAc,iBAAiB,CAAC;AAC7D,MAAM,IAAI,CAAC,MAAM,cAAc,KAAK,CAAC;AACrC,MAAM,QAAQ,CAAC,MAAM,cAAc,SAAS,CAAC;AAC7C,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,iBAAiB,CAAC,MAAM,cAAc,kBAAkB,CAAC;AAC/D,MAAM,SAAS,CAAC,MAAM,cAAc,UAAU,CAAC;AAC/C,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,UAAU,CAAC,MAAM,cAAc,WAAW,CAAC;AACjD,MAAM,UAAU,CAAC,MAAM,cAAc,WAAW,CAAC;AACjD,MAAM,WAAW,CAAC,MAAM,cAAc,YAAY,CAAC;AACnD,MAAM,iBAAiB,CAAC,MAAM,cAAc,kBAAkB,CAAC;AAC/D,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,QAAQ,CAAC,MAAM,cAAc,SAAS,CAAC;AAC7C,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,MAAM,CAAC,MAAM,cAAc,OAAO,CAAC;AACzC,MAAM,SAAS,CAAC,MAAM,cAAc,UAAU,CAAC;AAC/C,MAAM,OAAO,CAAC,MAAM,cAAc,QAAQ,CAAC;AAC3C,MAAM,WAAW,CAAC,MAAM,cAAc,YAAY,CAAC;AACnD,MAAM,QAAQ,CAAC,MAAM,cAAc,SAAS,CAAC;AAC7C,MAAM,MAAM,CAAC,MAAM,cAAc,OAAO,CAAC;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,21 +1,18 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-svg",
3
- "version": "1.0.1-beta.146",
4
- "type": "module",
5
- "main": "index.js",
6
- "module": "index.esm.js",
3
+ "version": "1.0.1-beta.147",
4
+ "main": "dist/cjs/index.js",
5
+ "module": "dist/esm/index.js",
7
6
  "publishConfig": {
8
7
  "access": "public"
9
8
  },
10
9
  "scripts": {
11
- "build": "true",
12
- "watch": "true"
10
+ "build": "tamagui-build",
11
+ "watch": "tamagui-build --watch",
12
+ "clean": "tamagui-build clean",
13
+ "clean:build": "tamagui-build clean:build"
13
14
  },
14
- "exports": {
15
- "./package.json": "./package.json",
16
- ".": {
17
- "import": "./index.esm.js",
18
- "require": "./index.js"
19
- }
15
+ "devDependencies": {
16
+ "@tamagui/build": "^1.0.1-beta.147"
20
17
  }
21
18
  }
package/src/index.js ADDED
@@ -0,0 +1,27 @@
1
+ import { createElement } from 'react'
2
+
3
+ export const Circle = (p) => createElement('circle', p)
4
+ export const ClipPath = (p) => createElement('clipPath', p)
5
+ export const Defs = (p) => createElement('defs', p)
6
+ export const Ellipse = (p) => createElement('ellipse', p)
7
+ export const ForeignObject = (p) => createElement('foreignObject', p)
8
+ export const G = (p) => createElement('g', p)
9
+ export const Image = (p) => createElement('image', p)
10
+ export const Line = (p) => createElement('line', p)
11
+ export const LinearGradient = (p) => createElement('lineargradient', p)
12
+ export const Marker = (p) => createElement('marker', p)
13
+ export const Mask = (p) => createElement('mask', p)
14
+ export const Path = (p) => createElement('path', p)
15
+ export const Pattern = (p) => createElement('pattern', p)
16
+ export const Polygon = (p) => createElement('polygon', p)
17
+ export const Polyline = (p) => createElement('polyline', p)
18
+ export const RadialGradient = (p) => createElement('radialgradient', p)
19
+ export const Rect = (p) => createElement('rect', p)
20
+ export const Shape = (p) => createElement('shape', p)
21
+ export const Stop = (p) => createElement('stop', p)
22
+ export const Svg = (p) => createElement('svg', p)
23
+ export const Symbol = (p) => createElement('symbol', p)
24
+ export const Text = (p) => createElement('text', p)
25
+ export const TextPath = (p) => createElement('clipPath', p)
26
+ export const TSpan = (p) => createElement('tSpan', p)
27
+ export const Use = (p) => createElement('use', p)
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": { "composite": true, "jsx": "preserve" },
4
+ "references": [
5
+ ]
6
+ }
package/index.esm.js DELETED
@@ -1,27 +0,0 @@
1
- import React from 'react'
2
-
3
- export const Circle = (p) => React.createElement('circle', p)
4
- export const ClipPath = (p) => React.createElement('clipPath', p)
5
- export const Defs = (p) => React.createElement('defs', p)
6
- export const Ellipse = (p) => React.createElement('ellipse', p)
7
- export const ForeignObject = (p) => React.createElement('foreignObject', p)
8
- export const G = (p) => React.createElement('g', p)
9
- export const Image = (p) => React.createElement('image', p)
10
- export const Line = (p) => React.createElement('line', p)
11
- export const LinearGradient = (p) => React.createElement('lineargradient', p)
12
- export const Marker = (p) => React.createElement('marker', p)
13
- export const Mask = (p) => React.createElement('mask', p)
14
- export const Path = (p) => React.createElement('path', p)
15
- export const Pattern = (p) => React.createElement('pattern', p)
16
- export const Polygon = (p) => React.createElement('polygon', p)
17
- export const Polyline = (p) => React.createElement('polyline', p)
18
- export const RadialGradient = (p) => React.createElement('radialgradient', p)
19
- export const Rect = (p) => React.createElement('rect', p)
20
- export const Shape = (p) => React.createElement('shape', p)
21
- export const Stop = (p) => React.createElement('stop', p)
22
- export const Svg = (p) => React.createElement('svg', p)
23
- export const Symbol = (p) => React.createElement('symbol', p)
24
- export const Text = (p) => React.createElement('text', p)
25
- export const TextPath = (p) => React.createElement('clipPath', p)
26
- export const TSpan = (p) => React.createElement('tSpan', p)
27
- export const Use = (p) => React.createElement('use', p)
package/index.js DELETED
@@ -1,32 +0,0 @@
1
- const React = require('react')
2
-
3
- const exports = {
4
- Circle: (p) => React.createElement('circle', p),
5
- ClipPath: (p) => React.createElement('clipPath', p),
6
- Defs: (p) => React.createElement('defs', p),
7
- Ellipse: (p) => React.createElement('ellipse', p),
8
- ForeignObject: (p) => React.createElement('foreignObject', p),
9
- G: (p) => React.createElement('g', p),
10
- Image: (p) => React.createElement('image', p),
11
- Line: (p) => React.createElement('line', p),
12
- LinearGradient: (p) => React.createElement('lineargradient', p),
13
- Marker: (p) => React.createElement('marker', p),
14
- Mask: (p) => React.createElement('mask', p),
15
- Path: (p) => React.createElement('path', p),
16
- Pattern: (p) => React.createElement('pattern', p),
17
- Polygon: (p) => React.createElement('polygon', p),
18
- Polyline: (p) => React.createElement('polyline', p),
19
- RadialGradient: (p) => React.createElement('radialgradient', p),
20
- Rect: (p) => React.createElement('rect', p),
21
- Shape: (p) => React.createElement('shape', p),
22
- Stop: (p) => React.createElement('stop', p),
23
- Svg: (p) => React.createElement('svg', p),
24
- Symbol: (p) => React.createElement('symbol', p),
25
- Text: (p) => React.createElement('text', p),
26
- TextPath: (p) => React.createElement('clipPath', p),
27
- TSpan: (p) => React.createElement('tSpan', p),
28
- Use: (p) => React.createElement('use', p),
29
- }
30
-
31
- Object.assign(module.exports, exports)
32
- export default exports