@tamagui/linear-gradient 1.61.2 → 1.62.0
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/LinearGradient.js +4 -8
- package/dist/cjs/LinearGradient.js.map +1 -1
- package/dist/cjs/LinearGradient.native.js +5 -8
- package/dist/cjs/LinearGradient.native.js.map +1 -1
- package/dist/cjs/LinearGradient.shared.js +9 -25
- package/dist/cjs/LinearGradient.shared.js.map +2 -2
- package/dist/cjs/LinearGradient.shared.native.js +50 -0
- package/dist/cjs/LinearGradient.shared.native.js.map +6 -0
- package/dist/cjs/index.js +4 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +20 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/linear-gradient.js +5 -9
- package/dist/cjs/linear-gradient.js.map +1 -1
- package/dist/cjs/linear-gradient.native.js +26 -0
- package/dist/cjs/linear-gradient.native.js.map +6 -0
- package/dist/esm/LinearGradient.shared.js +4 -13
- package/dist/esm/LinearGradient.shared.js.map +2 -2
- package/dist/jsx/LinearGradient.shared.js +3 -10
- package/dist/jsx/LinearGradient.shared.js.map +1 -1
- package/dist/jsx/LinearGradient.shared.native.js +33 -0
- package/dist/jsx/LinearGradient.shared.native.js.map +6 -0
- package/dist/jsx/index.native.js +2 -0
- package/dist/jsx/index.native.js.map +6 -0
- package/dist/jsx/linear-gradient.native.js +5 -0
- package/dist/jsx/linear-gradient.native.js.map +6 -0
- package/package.json +4 -4
- package/dist/esm/LinearGradient.native.js +0 -9
- package/dist/esm/LinearGradient.native.js.map +0 -6
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
7
|
for (let key of __getOwnPropNames(from))
|
|
9
|
-
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
9
|
return to;
|
|
13
|
-
};
|
|
14
|
-
var
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
10
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
12
|
var LinearGradient_exports = {};
|
|
17
13
|
module.exports = __toCommonJS(LinearGradient_exports);
|
|
18
14
|
__reExport(LinearGradient_exports, require("./LinearGradient.shared"), module.exports);
|
|
@@ -5,17 +5,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
7
7
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
11
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
13
|
return to;
|
|
17
14
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
16
|
var LinearGradient_native_exports = {};
|
|
20
17
|
__export(LinearGradient_native_exports, {
|
|
21
18
|
LinearGradient: () => LinearGradient
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LinearGradient.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQS;AAHF,SAAS,eAAe,OAAO;AACpC,QAAM,OAAO,QAAQ,yBAAyB,EAAE;AAEhD,SAAO,4CAAC,QAAM,GAAG,OAAO;AAC1B;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,39 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var LinearGradient_shared_exports = {};
|
|
20
16
|
__export(LinearGradient_shared_exports, {
|
|
21
17
|
LinearGradient: () => LinearGradient
|
|
22
18
|
});
|
|
23
19
|
module.exports = __toCommonJS(LinearGradient_shared_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_core = require("@tamagui/core");
|
|
26
|
-
var import_stacks = require("@tamagui/stacks");
|
|
27
|
-
var import_linear_gradient = require("./linear-gradient");
|
|
20
|
+
var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), import_linear_gradient = require("./linear-gradient"), import_jsx_runtime = require("react/jsx-runtime");
|
|
28
21
|
const LinearGradient = import_stacks.YStack.styleable((propsIn, ref) => {
|
|
29
|
-
|
|
30
|
-
const props = (0, import_core.useProps)(propsIn);
|
|
31
|
-
const { start, end, colors: colorsProp, locations, children, ...stackProps } = props;
|
|
32
|
-
const theme = (0, import_core.useTheme)();
|
|
33
|
-
const colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
|
|
34
|
-
var _a2;
|
|
35
|
-
return ((_a2 = theme[c]) == null ? void 0 : _a2.get()) ?? c;
|
|
36
|
-
})) || [];
|
|
22
|
+
const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)(), colors = props.colors?.map((c) => theme[c]?.get() ?? c) || [];
|
|
37
23
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LinearGradientFrame, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
24
|
import_linear_gradient.LinearGradient,
|
|
39
25
|
{
|
|
@@ -45,15 +31,13 @@ const LinearGradient = import_stacks.YStack.styleable((propsIn, ref) => {
|
|
|
45
31
|
children
|
|
46
32
|
}
|
|
47
33
|
) });
|
|
48
|
-
})
|
|
49
|
-
const absoluteFill = {
|
|
34
|
+
}), absoluteFill = {
|
|
50
35
|
position: "absolute",
|
|
51
36
|
top: 0,
|
|
52
37
|
left: 0,
|
|
53
38
|
right: 0,
|
|
54
39
|
bottom: 0
|
|
55
|
-
}
|
|
56
|
-
const LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
40
|
+
}, LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
57
41
|
name: "LinearGradient",
|
|
58
42
|
overflow: "hidden",
|
|
59
43
|
position: "relative"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LinearGradient.shared.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAOO,0BACP,gBAAoC,4BAGpC,yBAGO,8BAqBD;AAbC,MAAM,iBAAiB,qBAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,YAAQ,sBAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,YAAQ,sBAAS,GAEjB,SACJ,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAgB,CACvC,KAAK,CAAC;AAET,SACE,4CAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA,IAAC,uBAAAA;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MAEN;AAAA;AAAA,EACH,GACF;AAEJ,CAAC,GAEK,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV,GAEM,0BAAsB,oBAAO,sBAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
|
|
5
|
+
"names": ["ExpoLinearGradient"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var LinearGradient_shared_exports = {};
|
|
17
|
+
__export(LinearGradient_shared_exports, {
|
|
18
|
+
LinearGradient: () => LinearGradient
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(LinearGradient_shared_exports);
|
|
21
|
+
var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), import_linear_gradient = require("./linear-gradient"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
+
const LinearGradient = import_stacks.YStack.styleable((propsIn, ref) => {
|
|
23
|
+
const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)(), colors = props.colors?.map((c) => theme[c]?.get() ?? c) || [];
|
|
24
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LinearGradientFrame, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
25
|
+
import_linear_gradient.LinearGradient,
|
|
26
|
+
{
|
|
27
|
+
start,
|
|
28
|
+
end,
|
|
29
|
+
colors,
|
|
30
|
+
locations,
|
|
31
|
+
style: absoluteFill,
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
}), absoluteFill = {
|
|
36
|
+
position: "absolute",
|
|
37
|
+
top: 0,
|
|
38
|
+
left: 0,
|
|
39
|
+
right: 0,
|
|
40
|
+
bottom: 0
|
|
41
|
+
}, LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
42
|
+
name: "LinearGradient",
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
position: "relative"
|
|
45
|
+
});
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
LinearGradient
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=LinearGradient.shared.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/LinearGradient.shared.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAOO,0BACP,gBAAoC,4BAGpC,yBAGO,8BAqBD;AAbC,MAAM,iBAAiB,qBAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,YAAQ,sBAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,YAAQ,sBAAS,GAEjB,SACJ,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAgB,CACvC,KAAK,CAAC;AAET,SACE,4CAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA,IAAC,uBAAAA;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MAEN;AAAA;AAAA,EACH,GACF;AAEJ,CAAC,GAEK,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV,GAEM,0BAAsB,oBAAO,sBAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
|
|
5
|
+
"names": ["ExpoLinearGradient"]
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
7
|
for (let key of __getOwnPropNames(from))
|
|
9
|
-
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
9
|
return to;
|
|
13
|
-
};
|
|
14
|
-
var
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
10
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
12
|
var src_exports = {};
|
|
17
13
|
module.exports = __toCommonJS(src_exports);
|
|
18
14
|
__reExport(src_exports, require("./LinearGradient"), module.exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
+
var src_exports = {};
|
|
14
|
+
module.exports = __toCommonJS(src_exports);
|
|
15
|
+
__reExport(src_exports, require("./LinearGradient"), module.exports);
|
|
16
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
17
|
+
0 && (module.exports = {
|
|
18
|
+
...require("./LinearGradient")
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var linear_gradient_exports = {};
|
|
20
16
|
__export(linear_gradient_exports, {
|
|
21
17
|
LinearGradient: () => import_expo_linear_gradient.LinearGradient
|
|
@@ -0,0 +1,26 @@
|
|
|
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: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var linear_gradient_exports = {};
|
|
17
|
+
__export(linear_gradient_exports, {
|
|
18
|
+
LinearGradient: () => import_expo_linear_gradient.LinearGradient
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(linear_gradient_exports);
|
|
21
|
+
var import_expo_linear_gradient = require("expo-linear-gradient");
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
LinearGradient
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=linear-gradient.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import {
|
|
3
2
|
styled,
|
|
4
3
|
useProps,
|
|
@@ -8,15 +7,9 @@ import { YStack } from "@tamagui/stacks";
|
|
|
8
7
|
import {
|
|
9
8
|
LinearGradient as ExpoLinearGradient
|
|
10
9
|
} from "./linear-gradient";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
const LinearGradient = YStack.styleable((propsIn, ref) => {
|
|
12
|
-
|
|
13
|
-
const props = useProps(propsIn);
|
|
14
|
-
const { start, end, colors: colorsProp, locations, children, ...stackProps } = props;
|
|
15
|
-
const theme = useTheme();
|
|
16
|
-
const colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
|
|
17
|
-
var _a2;
|
|
18
|
-
return ((_a2 = theme[c]) == null ? void 0 : _a2.get()) ?? c;
|
|
19
|
-
})) || [];
|
|
12
|
+
const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme(), colors = props.colors?.map((c) => theme[c]?.get() ?? c) || [];
|
|
20
13
|
return /* @__PURE__ */ jsx(LinearGradientFrame, { ref, ...stackProps, children: /* @__PURE__ */ jsx(
|
|
21
14
|
ExpoLinearGradient,
|
|
22
15
|
{
|
|
@@ -28,15 +21,13 @@ const LinearGradient = YStack.styleable((propsIn, ref) => {
|
|
|
28
21
|
children
|
|
29
22
|
}
|
|
30
23
|
) });
|
|
31
|
-
})
|
|
32
|
-
const absoluteFill = {
|
|
24
|
+
}), absoluteFill = {
|
|
33
25
|
position: "absolute",
|
|
34
26
|
top: 0,
|
|
35
27
|
left: 0,
|
|
36
28
|
right: 0,
|
|
37
29
|
bottom: 0
|
|
38
|
-
}
|
|
39
|
-
const LinearGradientFrame = styled(YStack, {
|
|
30
|
+
}, LinearGradientFrame = styled(YStack, {
|
|
40
31
|
name: "LinearGradient",
|
|
41
32
|
overflow: "hidden",
|
|
42
33
|
position: "relative"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LinearGradient.shared.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAA2B;AAGpC;AAAA,EACE,kBAAkB;AAAA,OAEb;AAqBD;AAbC,MAAM,iBAAiB,OAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS,GAEjB,SACJ,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAgB,CACvC,KAAK,CAAC;AAET,SACE,oBAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MAEN;AAAA;AAAA,EACH,GACF;AAEJ,CAAC,GAEK,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV,GAEM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -8,12 +8,7 @@ import {
|
|
|
8
8
|
LinearGradient as ExpoLinearGradient
|
|
9
9
|
} from "./linear-gradient";
|
|
10
10
|
const LinearGradient = YStack.styleable((propsIn, ref) => {
|
|
11
|
-
const props = useProps(propsIn);
|
|
12
|
-
const { start, end, colors: colorsProp, locations, children, ...stackProps } = props;
|
|
13
|
-
const theme = useTheme();
|
|
14
|
-
const colors = props.colors?.map((c) => {
|
|
15
|
-
return theme[c]?.get() ?? c;
|
|
16
|
-
}) || [];
|
|
11
|
+
const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme(), colors = props.colors?.map((c) => theme[c]?.get() ?? c) || [];
|
|
17
12
|
return <LinearGradientFrame ref={ref} {...stackProps}><ExpoLinearGradient
|
|
18
13
|
start={start}
|
|
19
14
|
end={end}
|
|
@@ -21,15 +16,13 @@ const LinearGradient = YStack.styleable((propsIn, ref) => {
|
|
|
21
16
|
locations={locations}
|
|
22
17
|
style={absoluteFill}
|
|
23
18
|
>{children}</ExpoLinearGradient></LinearGradientFrame>;
|
|
24
|
-
})
|
|
25
|
-
const absoluteFill = {
|
|
19
|
+
}), absoluteFill = {
|
|
26
20
|
position: "absolute",
|
|
27
21
|
top: 0,
|
|
28
22
|
left: 0,
|
|
29
23
|
right: 0,
|
|
30
24
|
bottom: 0
|
|
31
|
-
}
|
|
32
|
-
const LinearGradientFrame = styled(YStack, {
|
|
25
|
+
}, LinearGradientFrame = styled(YStack, {
|
|
33
26
|
name: "LinearGradient",
|
|
34
27
|
overflow: "hidden",
|
|
35
28
|
position: "relative"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LinearGradient.shared.tsx"],
|
|
4
|
-
"mappings": "AAAA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAA2B;AAGpC;AAAA,EACE,kBAAkB;AAAA,OAEb;AAQA,MAAM,iBAAiB,OAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,QAAQ,SAAS,OAAO
|
|
4
|
+
"mappings": "AAAA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAA2B;AAGpC;AAAA,EACE,kBAAkB;AAAA,OAEb;AAQA,MAAM,iBAAiB,OAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS,GAEjB,SACJ,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAgB,CACvC,KAAK,CAAC;AAET,SACE,CAAC,oBAAoB,KAAK,SAAgB,YACxC,CAAC;AAAA,IACC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IAEN,SACH,EARC,mBASH,EAVC;AAYL,CAAC,GAEK,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV,GAEM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
styled,
|
|
3
|
+
useProps,
|
|
4
|
+
useTheme
|
|
5
|
+
} from "@tamagui/core";
|
|
6
|
+
import { YStack } from "@tamagui/stacks";
|
|
7
|
+
import {
|
|
8
|
+
LinearGradient as ExpoLinearGradient
|
|
9
|
+
} from "./linear-gradient";
|
|
10
|
+
const LinearGradient = YStack.styleable((propsIn, ref) => {
|
|
11
|
+
const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme(), colors = props.colors?.map((c) => theme[c]?.get() ?? c) || [];
|
|
12
|
+
return <LinearGradientFrame ref={ref} {...stackProps}><ExpoLinearGradient
|
|
13
|
+
start={start}
|
|
14
|
+
end={end}
|
|
15
|
+
colors={colors}
|
|
16
|
+
locations={locations}
|
|
17
|
+
style={absoluteFill}
|
|
18
|
+
>{children}</ExpoLinearGradient></LinearGradientFrame>;
|
|
19
|
+
}), absoluteFill = {
|
|
20
|
+
position: "absolute",
|
|
21
|
+
top: 0,
|
|
22
|
+
left: 0,
|
|
23
|
+
right: 0,
|
|
24
|
+
bottom: 0
|
|
25
|
+
}, LinearGradientFrame = styled(YStack, {
|
|
26
|
+
name: "LinearGradient",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
position: "relative"
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
LinearGradient
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=LinearGradient.shared.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/LinearGradient.shared.tsx"],
|
|
4
|
+
"mappings": "AAAA;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAA2B;AAGpC;AAAA,EACE,kBAAkB;AAAA,OAEb;AAQA,MAAM,iBAAiB,OAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS,GAEjB,SACJ,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAgB,CACvC,KAAK,CAAC;AAET,SACE,CAAC,oBAAoB,KAAK,SAAgB,YACxC,CAAC;AAAA,IACC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,OAAO;AAAA,IAEN,SACH,EARC,mBASH,EAVC;AAYL,CAAC,GAEK,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV,GAEM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/linear-gradient",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/core": "1.
|
|
35
|
-
"@tamagui/stacks": "1.
|
|
34
|
+
"@tamagui/core": "1.62.0",
|
|
35
|
+
"@tamagui/stacks": "1.62.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "*"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tamagui/build": "1.
|
|
41
|
+
"@tamagui/build": "1.62.0",
|
|
42
42
|
"expo-linear-gradient": "~12.3.0",
|
|
43
43
|
"react": "^18.2.0"
|
|
44
44
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
function LinearGradient(props) {
|
|
3
|
-
const Real = require("./LinearGradient.shared").LinearGradient;
|
|
4
|
-
return /* @__PURE__ */ jsx(Real, { ...props });
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
LinearGradient
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=LinearGradient.native.js.map
|