@tamagui/linear-gradient 1.89.27 → 1.89.29
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-shared.native.js +32 -12
- package/dist/cjs/LinearGradient-shared.native.js.map +2 -2
- package/dist/cjs/LinearGradient.native.js +21 -1
- package/dist/cjs/LinearGradient.native.js.map +2 -2
- package/dist/esm/LinearGradient-shared.native.js +32 -11
- package/dist/esm/LinearGradient-shared.native.js.map +1 -1
- package/dist/esm/LinearGradient.native.js +21 -1
- package/dist/esm/LinearGradient.native.js.map +1 -1
- package/dist/jsx/LinearGradient-shared.native.js +32 -11
- package/dist/jsx/LinearGradient-shared.native.js.map +1 -1
- package/dist/jsx/LinearGradient.native.js +21 -1
- package/dist/jsx/LinearGradient.native.js.map +1 -1
- package/package.json +4 -4
|
@@ -18,7 +18,7 @@ __export(LinearGradient_shared_exports, {
|
|
|
18
18
|
LinearGradient: () => LinearGradient
|
|
19
19
|
});
|
|
20
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");
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), import_linear_gradient = require("./linear-gradient");
|
|
22
22
|
function _define_property(obj, key, value) {
|
|
23
23
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
24
|
value,
|
|
@@ -29,15 +29,30 @@ function _define_property(obj, key, value) {
|
|
|
29
29
|
}
|
|
30
30
|
function _object_spread(target) {
|
|
31
31
|
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
33
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
32
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
33
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
34
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
-
}))),
|
|
35
|
+
}))), ownKeys2.forEach(function(key) {
|
|
36
36
|
_define_property(target, key, source[key]);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
return target;
|
|
40
40
|
}
|
|
41
|
+
function ownKeys(object, enumerableOnly) {
|
|
42
|
+
var keys = Object.keys(object);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
45
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
47
|
+
})), keys.push.apply(keys, symbols);
|
|
48
|
+
}
|
|
49
|
+
return keys;
|
|
50
|
+
}
|
|
51
|
+
function _object_spread_props(target, source) {
|
|
52
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
53
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
54
|
+
}), target;
|
|
55
|
+
}
|
|
41
56
|
function _object_without_properties(source, excluded) {
|
|
42
57
|
if (source == null)
|
|
43
58
|
return {};
|
|
@@ -79,15 +94,20 @@ var LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
|
79
94
|
}) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
|
|
80
95
|
"#000",
|
|
81
96
|
"#fff"
|
|
82
|
-
]), /* @__PURE__ */
|
|
97
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LinearGradientFrame, _object_spread_props(_object_spread({
|
|
83
98
|
ref
|
|
84
|
-
}, stackProps),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
}, stackProps), {
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_linear_gradient.LinearGradient, {
|
|
102
|
+
start,
|
|
103
|
+
end,
|
|
104
|
+
colors,
|
|
105
|
+
locations,
|
|
106
|
+
style: gradientStyle
|
|
107
|
+
}),
|
|
108
|
+
children
|
|
109
|
+
]
|
|
110
|
+
}));
|
|
91
111
|
}), gradientStyle = {
|
|
92
112
|
position: "absolute",
|
|
93
113
|
top: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient-shared.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;
|
|
5
|
-
"names": ["LinearGradientFrame", "styled", "YStack", "name", "overflow", "position", "LinearGradient", "styleable", "propsIn", "ref", "props", "useProps", "start", "end", "colorsProp", "colors", "locations", "children", "stackProps", "theme", "useTheme", "map", "c", "get", "process", "env", "NODE_ENV", "some", "normalized", "normalizeColor", "startsWith", "console", "error", "ExpoLinearGradient", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;uDACA,cAA2D,0BAC3D,gBAAuB,4BAIvB,yBAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUrD,IAAMA,0BAAsBC,oBAAOC,sBAAQ;EACzCC,MAAM;EACNC,UAAU;EACVC,UAAU;AACZ,CAAA,GAEaC,iBAAiBN,oBAAoBO,UAChD,SAACC,SAASC,KAAAA;MAONC,eANIA,YAAQC,sBAASH,OAAAA,GAEfI,QAAuEF,MAAvEE,OAAOC,MAAgEH,MAAhEG,KAAaC,aAAmDJ,MAA3DK,QAAoBC,YAAuCN,MAAvCM,WAAWC,WAA4BP,MAA5BO,UAAaC,aAAAA,2BAAeR,OAAAA;IAAvEE;IAAOC;IAAKE;IAAoBC;IAAWC;MAC7CE,YAAQC,sBAAAA,GAEVL,WACFL,gBAAAA,MAAMK,YAAM,QAAZL,kBAAAA,SAAAA,SAAAA,cAAcW,IAAI,SAACC,GAAAA;QACTH,UAAAA;AAAR,YAAQA,gBAAAA,WAAAA,MAAMG,CAAAA,OAAE,QAARH,aAAAA,SAAAA,SAAAA,SAAUI,IAAI,KAAA,OAAA,QAAdJ,iBAAAA,SAAAA,eAAmCG;EAC7C,CAAA,MAAM,CAAA;AAER,SAAIE,QAAQC,IAAIC,aAAa,gBAEzBX,OAAOY,KAAK,SAACL,GAAAA;AACX,QAAMM,iBAAaC,4BAAeP,CAAAA;AAClC,QAAI,CAACM,cAAcA,WAAWE,WAAW,GAAA;AACvC,aAAO;EAEX,CAAA,MAEAC,QAAQC,MACL,gEAAsE,OAAPjB,QAAO,+CAAA,CAAA,GAEzEA,SAAS;IAAC;IAAQ;MAKpB,uCAAAkB,MAACjC,qBAAAA,qBAAAA,eAAAA;IAAoBS;KAAqBS,UAAAA,GAAAA;;MACxC,uCAAAgB,KAACC,uBAAAA,gBAAAA;QACCvB;QACAC;QACAE;QACAC;QACAoB,OAAOC;;MAERpB;;;AAGP,CAAA,GAKIoB,gBAA2B;EAC/BhC,UAAU;EACViC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,QAAQ;AACV;",
|
|
5
|
+
"names": ["LinearGradientFrame", "styled", "YStack", "name", "overflow", "position", "LinearGradient", "styleable", "propsIn", "ref", "props", "useProps", "start", "end", "colorsProp", "colors", "locations", "children", "stackProps", "theme", "useTheme", "map", "c", "get", "process", "env", "NODE_ENV", "some", "normalized", "normalizeColor", "startsWith", "console", "error", "_jsxs", "_jsx", "ExpoLinearGradient", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
|
|
6
6
|
}
|
|
@@ -18,9 +18,29 @@ __export(LinearGradient_native_exports, {
|
|
|
18
18
|
LinearGradient: () => LinearGradient
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(LinearGradient_native_exports);
|
|
21
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
+
function _define_property(obj, key, value) {
|
|
23
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
+
value,
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
configurable: !0,
|
|
27
|
+
writable: !0
|
|
28
|
+
}) : obj[key] = value, obj;
|
|
29
|
+
}
|
|
30
|
+
function _object_spread(target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
33
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
+
}))), ownKeys.forEach(function(key) {
|
|
36
|
+
_define_property(target, key, source[key]);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
21
41
|
function LinearGradient(props) {
|
|
22
42
|
var Real = require("./LinearGradient-shared").LinearGradient;
|
|
23
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Real, _object_spread({}, props));
|
|
24
44
|
}
|
|
25
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
46
|
0 && (module.exports = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": ["LinearGradient", "props", "Real", "require"]
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;AAGC,SAAA,iBAAA,KAAA,KAAA,OAAA;;;;;;;;;;;;;;;;;;;AAEM,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,uCAAAI,KAACF,MAAAA,eAAAA,CAAAA,GAASD,KAAAA,CAAAA;AACnB;",
|
|
5
|
+
"names": ["LinearGradient", "props", "Real", "require", "_jsx"]
|
|
6
6
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { normalizeColor, styled, useProps, useTheme } from "@tamagui/core";
|
|
2
3
|
import { YStack } from "@tamagui/stacks";
|
|
3
4
|
import { LinearGradient as ExpoLinearGradient } from "./linear-gradient";
|
|
@@ -11,15 +12,30 @@ function _define_property(obj, key, value) {
|
|
|
11
12
|
}
|
|
12
13
|
function _object_spread(target) {
|
|
13
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
15
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
16
17
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
17
|
-
}))),
|
|
18
|
+
}))), ownKeys2.forEach(function(key) {
|
|
18
19
|
_define_property(target, key, source[key]);
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
return target;
|
|
22
23
|
}
|
|
24
|
+
function ownKeys(object, enumerableOnly) {
|
|
25
|
+
var keys = Object.keys(object);
|
|
26
|
+
if (Object.getOwnPropertySymbols) {
|
|
27
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
29
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30
|
+
})), keys.push.apply(keys, symbols);
|
|
31
|
+
}
|
|
32
|
+
return keys;
|
|
33
|
+
}
|
|
34
|
+
function _object_spread_props(target, source) {
|
|
35
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
36
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37
|
+
}), target;
|
|
38
|
+
}
|
|
23
39
|
function _object_without_properties(source, excluded) {
|
|
24
40
|
if (source == null)
|
|
25
41
|
return {};
|
|
@@ -61,15 +77,20 @@ var LinearGradientFrame = styled(YStack, {
|
|
|
61
77
|
}) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
|
|
62
78
|
"#000",
|
|
63
79
|
"#fff"
|
|
64
|
-
]), /* @__PURE__ */
|
|
80
|
+
]), /* @__PURE__ */ _jsxs(LinearGradientFrame, _object_spread_props(_object_spread({
|
|
65
81
|
ref
|
|
66
|
-
}, stackProps),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
}, stackProps), {
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ _jsx(ExpoLinearGradient, {
|
|
85
|
+
start,
|
|
86
|
+
end,
|
|
87
|
+
colors,
|
|
88
|
+
locations,
|
|
89
|
+
style: gradientStyle
|
|
90
|
+
}),
|
|
91
|
+
children
|
|
92
|
+
]
|
|
93
|
+
}));
|
|
73
94
|
}), gradientStyle = {
|
|
74
95
|
position: "absolute",
|
|
75
96
|
top: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient-shared.tsx"],
|
|
4
|
-
"mappings": "AACA,SAASA,gBAAgBC,QAAQC,UAAUC,gBAAgB;AAC3D,SAASC,cAAc;AAIvB,SAASC,kBAAkBC,0BAA0B
|
|
4
|
+
"mappings": ";AACA,SAASA,gBAAgBC,QAAQC,UAAUC,gBAAgB;AAC3D,SAASC,cAAc;AAIvB,SAASC,kBAAkBC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUrD,IAAMC,sBAAsBN,OAAOG,QAAQ;EACzCI,MAAM;EACNC,UAAU;EACVC,UAAU;AACZ,CAAA,GAEaL,iBAAiBE,oBAAoBI,UAChD,SAACC,SAASC,KAAAA;MAONC,eANIA,QAAQZ,SAASU,OAAAA,GAEfG,QAAuED,MAAvEC,OAAOC,MAAgEF,MAAhEE,KAAaC,aAAmDH,MAA3DI,QAAoBC,YAAuCL,MAAvCK,WAAWC,WAA4BN,MAA5BM,UAAaC,aAAAA,2BAAeP,OAAAA;IAAvEC;IAAOC;IAAKE;IAAoBC;IAAWC;MAC7CE,QAAQnB,SAAAA,GAEVe,WACFJ,gBAAAA,MAAMI,YAAM,QAAZJ,kBAAAA,SAAAA,SAAAA,cAAcS,IAAI,SAACC,GAAAA;QACTF,UAAAA;AAAR,YAAQA,gBAAAA,WAAAA,MAAME,CAAAA,OAAE,QAARF,aAAAA,SAAAA,SAAAA,SAAUG,IAAI,KAAA,OAAA,QAAdH,iBAAAA,SAAAA,eAAmCE;EAC7C,CAAA,MAAM,CAAA;AAER,SAAIE,QAAQC,IAAIC,aAAa,gBAEzBV,OAAOW,KAAK,SAACL,GAAAA;AACX,QAAMM,aAAa9B,eAAewB,CAAAA;AAClC,QAAI,CAACM,cAAcA,WAAWC,WAAW,GAAA;AACvC,aAAO;EAEX,CAAA,MAEAC,QAAQC,MACL,gEAAsE,OAAPf,QAAO,+CAAA,CAAA,GAEzEA,SAAS;IAAC;IAAQ;MAKpB,sBAACX,qBAAAA,qBAAAA,eAAAA;IAAoBM;KAAqBQ,UAAAA,GAAAA;;MACxC,qBAACf,oBAAAA;QACCS;QACAC;QACAE;QACAC;QACAe,OAAOC;;MAERf;;;AAGP,CAAA,GAKIe,gBAA2B;EAC/BzB,UAAU;EACV0B,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,QAAQ;AACV;",
|
|
5
5
|
"names": ["normalizeColor", "styled", "useProps", "useTheme", "YStack", "LinearGradient", "ExpoLinearGradient", "LinearGradientFrame", "name", "overflow", "position", "styleable", "propsIn", "ref", "props", "start", "end", "colorsProp", "colors", "locations", "children", "stackProps", "theme", "map", "c", "get", "process", "env", "NODE_ENV", "some", "normalized", "startsWith", "console", "error", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
4
|
+
value,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : obj[key] = value, obj;
|
|
9
|
+
}
|
|
10
|
+
function _object_spread(target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15
|
+
}))), ownKeys.forEach(function(key) {
|
|
16
|
+
_define_property(target, key, source[key]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
1
21
|
function LinearGradient(props) {
|
|
2
22
|
var Real = require("./LinearGradient-shared").LinearGradient;
|
|
3
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ _jsx(Real, _object_spread({}, props));
|
|
4
24
|
}
|
|
5
25
|
export {
|
|
6
26
|
LinearGradient
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";AAGC,SAAA,iBAAA,KAAA,KAAA,OAAA;;;;;;;;;;;;;;;;;;;AAEM,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,qBAACE,MAAAA,eAAAA,CAAAA,GAASD,KAAAA,CAAAA;AACnB;",
|
|
5
5
|
"names": ["LinearGradient", "props", "Real", "require"]
|
|
6
6
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { normalizeColor, styled, useProps, useTheme } from "@tamagui/core";
|
|
2
3
|
import { YStack } from "@tamagui/stacks";
|
|
3
4
|
import { LinearGradient as ExpoLinearGradient } from "./linear-gradient";
|
|
@@ -11,15 +12,30 @@ function _define_property(obj, key, value) {
|
|
|
11
12
|
}
|
|
12
13
|
function _object_spread(target) {
|
|
13
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
15
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
16
17
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
17
|
-
}))),
|
|
18
|
+
}))), ownKeys2.forEach(function(key) {
|
|
18
19
|
_define_property(target, key, source[key]);
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
return target;
|
|
22
23
|
}
|
|
24
|
+
function ownKeys(object, enumerableOnly) {
|
|
25
|
+
var keys = Object.keys(object);
|
|
26
|
+
if (Object.getOwnPropertySymbols) {
|
|
27
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
29
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
30
|
+
})), keys.push.apply(keys, symbols);
|
|
31
|
+
}
|
|
32
|
+
return keys;
|
|
33
|
+
}
|
|
34
|
+
function _object_spread_props(target, source) {
|
|
35
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
36
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37
|
+
}), target;
|
|
38
|
+
}
|
|
23
39
|
function _object_without_properties(source, excluded) {
|
|
24
40
|
if (source == null)
|
|
25
41
|
return {};
|
|
@@ -61,15 +77,20 @@ var LinearGradientFrame = styled(YStack, {
|
|
|
61
77
|
}) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
|
|
62
78
|
"#000",
|
|
63
79
|
"#fff"
|
|
64
|
-
]), /* @__PURE__ */
|
|
80
|
+
]), /* @__PURE__ */ _jsxs(LinearGradientFrame, _object_spread_props(_object_spread({
|
|
65
81
|
ref
|
|
66
|
-
}, stackProps),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
}, stackProps), {
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ _jsx(ExpoLinearGradient, {
|
|
85
|
+
start,
|
|
86
|
+
end,
|
|
87
|
+
colors,
|
|
88
|
+
locations,
|
|
89
|
+
style: gradientStyle
|
|
90
|
+
}),
|
|
91
|
+
children
|
|
92
|
+
]
|
|
93
|
+
}));
|
|
73
94
|
}), gradientStyle = {
|
|
74
95
|
position: "absolute",
|
|
75
96
|
top: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient-shared.tsx"],
|
|
4
|
-
"mappings": "AACA,SAASA,gBAAgBC,QAAQC,UAAUC,gBAAgB;AAC3D,SAASC,cAAc;AAIvB,SAASC,kBAAkBC,0BAA0B
|
|
4
|
+
"mappings": ";AACA,SAASA,gBAAgBC,QAAQC,UAAUC,gBAAgB;AAC3D,SAASC,cAAc;AAIvB,SAASC,kBAAkBC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUrD,IAAMC,sBAAsBN,OAAOG,QAAQ;EACzCI,MAAM;EACNC,UAAU;EACVC,UAAU;AACZ,CAAA,GAEaL,iBAAiBE,oBAAoBI,UAChD,SAACC,SAASC,KAAAA;MAONC,eANIA,QAAQZ,SAASU,OAAAA,GAEfG,QAAuED,MAAvEC,OAAOC,MAAgEF,MAAhEE,KAAaC,aAAmDH,MAA3DI,QAAoBC,YAAuCL,MAAvCK,WAAWC,WAA4BN,MAA5BM,UAAaC,aAAAA,2BAAeP,OAAAA;IAAvEC;IAAOC;IAAKE;IAAoBC;IAAWC;MAC7CE,QAAQnB,SAAAA,GAEVe,WACFJ,gBAAAA,MAAMI,YAAM,QAAZJ,kBAAAA,SAAAA,SAAAA,cAAcS,IAAI,SAACC,GAAAA;QACTF,UAAAA;AAAR,YAAQA,gBAAAA,WAAAA,MAAME,CAAAA,OAAE,QAARF,aAAAA,SAAAA,SAAAA,SAAUG,IAAI,KAAA,OAAA,QAAdH,iBAAAA,SAAAA,eAAmCE;EAC7C,CAAA,MAAM,CAAA;AAER,SAAIE,QAAQC,IAAIC,aAAa,gBAEzBV,OAAOW,KAAK,SAACL,GAAAA;AACX,QAAMM,aAAa9B,eAAewB,CAAAA;AAClC,QAAI,CAACM,cAAcA,WAAWC,WAAW,GAAA;AACvC,aAAO;EAEX,CAAA,MAEAC,QAAQC,MACL,gEAAsE,OAAPf,QAAO,+CAAA,CAAA,GAEzEA,SAAS;IAAC;IAAQ;MAKpB,sBAACX,qBAAAA,qBAAAA,eAAAA;IAAoBM;KAAqBQ,UAAAA,GAAAA;;MACxC,qBAACf,oBAAAA;QACCS;QACAC;QACAE;QACAC;QACAe,OAAOC;;MAERf;;;AAGP,CAAA,GAKIe,gBAA2B;EAC/BzB,UAAU;EACV0B,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,QAAQ;AACV;",
|
|
5
5
|
"names": ["normalizeColor", "styled", "useProps", "useTheme", "YStack", "LinearGradient", "ExpoLinearGradient", "LinearGradientFrame", "name", "overflow", "position", "styleable", "propsIn", "ref", "props", "start", "end", "colorsProp", "colors", "locations", "children", "stackProps", "theme", "map", "c", "get", "process", "env", "NODE_ENV", "some", "normalized", "startsWith", "console", "error", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
4
|
+
value,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : obj[key] = value, obj;
|
|
9
|
+
}
|
|
10
|
+
function _object_spread(target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15
|
+
}))), ownKeys.forEach(function(key) {
|
|
16
|
+
_define_property(target, key, source[key]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
1
21
|
function LinearGradient(props) {
|
|
2
22
|
var Real = require("./LinearGradient-shared").LinearGradient;
|
|
3
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ _jsx(Real, _object_spread({}, props));
|
|
4
24
|
}
|
|
5
25
|
export {
|
|
6
26
|
LinearGradient
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";AAGC,SAAA,iBAAA,KAAA,KAAA,OAAA;;;;;;;;;;;;;;;;;;;AAEM,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,qBAACE,MAAAA,eAAAA,CAAAA,GAASD,KAAAA,CAAAA;AACnB;",
|
|
5
5
|
"names": ["LinearGradient", "props", "Real", "require"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/linear-gradient",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.29",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/core": "1.89.
|
|
36
|
-
"@tamagui/stacks": "1.89.
|
|
35
|
+
"@tamagui/core": "1.89.29",
|
|
36
|
+
"@tamagui/stacks": "1.89.29"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "1.89.
|
|
42
|
+
"@tamagui/build": "1.89.29",
|
|
43
43
|
"expo-linear-gradient": "^12.7.1",
|
|
44
44
|
"react": "^18.2.0"
|
|
45
45
|
},
|