@tamagui/linear-gradient 2.0.0-rc.4 → 2.0.0-rc.40
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.cjs +64 -52
- package/dist/cjs/LinearGradient.native.js +68 -57
- package/dist/cjs/LinearGradient.native.js.map +1 -1
- package/dist/cjs/index.cjs +12 -10
- package/dist/cjs/index.native.js +12 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/linear-gradient.cjs +90 -65
- package/dist/cjs/linear-gradient.native.js +16 -13
- package/dist/cjs/linear-gradient.native.js.map +1 -1
- package/dist/esm/LinearGradient.mjs +48 -38
- package/dist/esm/LinearGradient.mjs.map +1 -1
- package/dist/esm/LinearGradient.native.js +51 -42
- package/dist/esm/LinearGradient.native.js.map +1 -1
- package/dist/esm/index.js +2 -6
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/linear-gradient.mjs +62 -39
- package/dist/esm/linear-gradient.mjs.map +1 -1
- package/dist/esm/linear-gradient.native.js +2 -1
- package/dist/esm/linear-gradient.native.js.map +1 -1
- package/dist/jsx/LinearGradient.mjs +48 -38
- package/dist/jsx/LinearGradient.mjs.map +1 -1
- package/dist/jsx/LinearGradient.native.js +68 -57
- package/dist/jsx/LinearGradient.native.js.map +1 -1
- package/dist/jsx/index.js +2 -6
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +12 -10
- package/dist/jsx/linear-gradient.mjs +62 -39
- package/dist/jsx/linear-gradient.mjs.map +1 -1
- package/dist/jsx/linear-gradient.native.js +16 -13
- package/dist/jsx/linear-gradient.native.js.map +1 -1
- package/package.json +10 -13
- package/dist/cjs/LinearGradient.js +0 -57
- package/dist/cjs/LinearGradient.js.map +0 -6
- package/dist/cjs/index.js +0 -21
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/linear-gradient.js +0 -118
- package/dist/cjs/linear-gradient.js.map +0 -6
- package/dist/esm/LinearGradient.js +0 -44
- package/dist/esm/LinearGradient.js.map +0 -6
- package/dist/esm/linear-gradient.js +0 -97
- package/dist/esm/linear-gradient.js.map +0 -6
- package/dist/jsx/LinearGradient.js +0 -44
- package/dist/jsx/LinearGradient.js.map +0 -6
- package/dist/jsx/linear-gradient.js +0 -97
- package/dist/jsx/linear-gradient.js.map +0 -6
|
@@ -5,72 +5,83 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var LinearGradient_exports = {};
|
|
24
26
|
__export(LinearGradient_exports, {
|
|
25
27
|
LinearGradient: () => LinearGradient
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(LinearGradient_exports);
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_core = require("@tamagui/core");
|
|
32
|
+
var import_stacks = require("@tamagui/stacks");
|
|
33
|
+
var import_linear_gradient = require("./linear-gradient.native.js");
|
|
34
|
+
var LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
35
|
+
name: "LinearGradient",
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
position: "relative"
|
|
38
|
+
});
|
|
39
|
+
var LinearGradient = LinearGradientFrame.styleable(function (propsIn, ref) {
|
|
40
|
+
var _props_colors;
|
|
41
|
+
var props = (0, import_core.useProps)(propsIn);
|
|
42
|
+
var {
|
|
43
|
+
start,
|
|
44
|
+
end,
|
|
45
|
+
colors: colorsProp,
|
|
46
|
+
locations,
|
|
47
|
+
children,
|
|
48
|
+
...stackProps
|
|
49
|
+
} = props;
|
|
50
|
+
var theme = (0, import_core.useTheme)();
|
|
51
|
+
var colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function (c) {
|
|
52
|
+
var _theme_c;
|
|
53
|
+
var _theme_c_get;
|
|
54
|
+
return (_theme_c_get = (_theme_c = theme[c]) === null || _theme_c === void 0 ? void 0 : _theme_c.get("web")) !== null && _theme_c_get !== void 0 ? _theme_c_get : c;
|
|
55
|
+
})) || [];
|
|
56
|
+
if (process.env.NODE_ENV !== "production") {
|
|
57
|
+
if (colors.some(function (c) {
|
|
54
58
|
var normalized = (0, import_core.normalizeColor)(c);
|
|
55
|
-
if (!normalized || normalized.startsWith("$"))
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
59
|
+
if (!normalized || normalized.startsWith("$")) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
})) {
|
|
63
|
+
console.error(`LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`);
|
|
64
|
+
colors = ["#000", "#fff"];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(LinearGradientFrame, {
|
|
68
|
+
ref,
|
|
69
|
+
...stackProps,
|
|
70
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_linear_gradient.LinearGradient, {
|
|
71
|
+
start,
|
|
72
|
+
end,
|
|
73
|
+
colors,
|
|
74
|
+
locations,
|
|
75
|
+
style: gradientStyle
|
|
76
|
+
}), children]
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
var gradientStyle = {
|
|
80
|
+
position: "absolute",
|
|
81
|
+
top: 0,
|
|
82
|
+
left: 0,
|
|
83
|
+
right: 0,
|
|
84
|
+
bottom: 0,
|
|
85
|
+
zIndex: 0
|
|
86
|
+
};
|
|
76
87
|
//# sourceMappingURL=LinearGradient.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","LinearGradient_exports","LinearGradient","module","exports","import_jsx_runtime","require","import_core","import_stacks","import_linear_gradient","LinearGradientFrame","styled","YStack","overflow","position","styleable","propsIn","ref","_props_colors","props","useProps","start","end","colors","colorsProp","locations","children","stackProps","theme","useTheme","map","c","_theme_c","_theme_c_get","process","env","NODE_ENV","some","normalized","normalizeColor","startsWith","console","error"
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","LinearGradient_exports","LinearGradient","module","exports","import_jsx_runtime","require","import_core","import_stacks","import_linear_gradient","LinearGradientFrame","styled","YStack","overflow","position","styleable","propsIn","ref","_props_colors","props","useProps","start","end","colors","colorsProp","locations","children","stackProps","theme","useTheme","map","c","_theme_c","_theme_c_get","process","env","NODE_ENV","some","normalized","normalizeColor","startsWith","console","error"],"sources":["../../src/LinearGradient.tsx"],"sourcesContent":[null],"mappings":"AACA,YAAS;;AACT,IAAAA,SAAS,GAAAC,MAAA,CAAcC,cAAA;AAIvB,IAAAC,gBAAS,GAAAF,MAAkB,CAAAG,wBAA0B;AA6C/C,IAAAC,iBAAA,GAAAJ,MAAA,CAAAK,mBAAA;AAnCN,IAAAC,YAAM,GAAAN,MAAA,CAAAO,SAA6B,CAAAC,cAAQ;AAAA,IACzCC,QAAM,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EACN,SAAAC,IAAU,IAAAD,GAAA,EACVZ,SAAU,CAAAW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AACZ,CAAC;AAEM,IAAAC,WAAM,GAAAA,CAAAC,EAAA,EAAiBC,IAAA,EAAAC,MAAA,EAAAC,IAAA,KAAoB;EAChD,IAACF,IAAA,IAAS,OAAQA,IAAA,wBAAAA,IAAA;IAChB,SAAMG,GAAA,IAAQhB,iBAAgB,CAAAa,IAAA,GAE9B,IAAM,CAAAX,YAAS,CAAKe,I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AC,QACA;IAAO,IAAAC,YAAA;IAAA,OACT,CAAAA,YAAA,IAAAD,QAAA,GAAAJ,KAAA,CAAAG,CAAA,eAAAC,QAAA,uBAAAA,QAAA,CAAA3C,GAAA,qBAAA4C,YAAA,cAAAA,YAAA,GAAAF,CAAA;EAAA,OACC;EAAA,IAAAG,OACH,CAAAC,GAAA,CAAAC,QAAA;IAEJ,IAAAb,MAAA,CAAAc,IAAA,WAAAN,CAAA;MACF,IAAAO,UAAA,OAAA/B,WAAA,CAAAgC,cAAA,EAAAR,CAAA;MAIM,KAAAO,UAAA,IAA2BA,UAAA,CAAAE,UAAA;QAC/B,OAAU;MACV;IACA,IAAM;MACNC,OAAO,CAAAC,KAAA,iEAAAnB,MAAA;MACPA,MAAQ,IACR,MAAQ,EACV,O","ignoreList":[]}
|
package/dist/jsx/index.js
CHANGED
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.native.js
CHANGED
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var index_exports = {};
|
|
24
26
|
__export(index_exports, {
|
|
@@ -3,9 +3,9 @@ import * as React from "react";
|
|
|
3
3
|
import { View } from "react-native-web";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
function needsDimensionAwareAngle(start, end) {
|
|
6
|
-
if (!start && !end) return
|
|
7
|
-
const startX = start?.[0] ?? 0.5
|
|
8
|
-
|
|
6
|
+
if (!start && !end) return false;
|
|
7
|
+
const startX = start?.[0] ?? 0.5;
|
|
8
|
+
const endX = end?.[0] ?? 0.5;
|
|
9
9
|
return startX !== endX;
|
|
10
10
|
}
|
|
11
11
|
function LinearGradient({
|
|
@@ -15,20 +15,33 @@ function LinearGradient({
|
|
|
15
15
|
end,
|
|
16
16
|
...props
|
|
17
17
|
}) {
|
|
18
|
-
const normalizedStart = start ? Array.isArray(start) ? start : [start.x, start.y] : void 0
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
const normalizedStart = start ? Array.isArray(start) ? start : [start.x, start.y] : void 0;
|
|
19
|
+
const normalizedEnd = end ? Array.isArray(end) ? end : [end.x, end.y] : void 0;
|
|
20
|
+
const needsLayout = needsDimensionAwareAngle(normalizedStart, normalizedEnd);
|
|
21
|
+
const [{
|
|
22
|
+
height,
|
|
23
|
+
width
|
|
24
|
+
}, setLayout] = React.useState({
|
|
25
|
+
height: 1,
|
|
26
|
+
width: 1
|
|
27
|
+
});
|
|
28
|
+
const linearGradientBackgroundImage = React.useMemo(() => {
|
|
29
|
+
return getLinearGradientBackgroundImage(
|
|
29
30
|
// @ts-expect-error ok
|
|
30
|
-
colors, locations, normalizedStart, normalizedEnd, width, height)
|
|
31
|
-
|
|
31
|
+
colors, locations, normalizedStart, normalizedEnd, width, height);
|
|
32
|
+
}, [colors, locations, normalizedStart, normalizedEnd, width, height]);
|
|
33
|
+
if (!needsLayout) {
|
|
34
|
+
return /* @__PURE__ */jsx(View, {
|
|
35
|
+
...props,
|
|
36
|
+
onLayout: props.onLayout,
|
|
37
|
+
style: [props.style,
|
|
38
|
+
// @ts-ignore: [ts] Property 'backgroundImage' does not exist on type 'ViewStyle'.
|
|
39
|
+
{
|
|
40
|
+
backgroundImage: linearGradientBackgroundImage
|
|
41
|
+
}]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return /* @__PURE__ */jsx(View, {
|
|
32
45
|
...props,
|
|
33
46
|
style: [props.style,
|
|
34
47
|
// @ts-ignore: [ts] Property 'backgroundImage' does not exist on type 'ViewStyle'.
|
|
@@ -40,45 +53,55 @@ function LinearGradient({
|
|
|
40
53
|
width: width2,
|
|
41
54
|
height: height2
|
|
42
55
|
} = event.nativeEvent.layout;
|
|
43
|
-
setLayout(oldLayout =>
|
|
44
|
-
height
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
setLayout(oldLayout => {
|
|
57
|
+
if (width2 !== oldLayout.width || height2 !== oldLayout.height) {
|
|
58
|
+
return {
|
|
59
|
+
height: height2,
|
|
60
|
+
width: width2
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return oldLayout;
|
|
64
|
+
});
|
|
65
|
+
if (props.onLayout) {
|
|
66
|
+
props.onLayout(event);
|
|
67
|
+
}
|
|
47
68
|
}
|
|
48
|
-
}) : /* @__PURE__ */jsx(View, {
|
|
49
|
-
...props,
|
|
50
|
-
onLayout: props.onLayout,
|
|
51
|
-
style: [props.style,
|
|
52
|
-
// @ts-ignore: [ts] Property 'backgroundImage' does not exist on type 'ViewStyle'.
|
|
53
|
-
{
|
|
54
|
-
backgroundImage: linearGradientBackgroundImage
|
|
55
|
-
}]
|
|
56
69
|
});
|
|
57
70
|
}
|
|
58
71
|
function getLinearGradientBackgroundImage(colors, locations, startPoint, endPoint, width = 1, height = 1) {
|
|
59
72
|
const gradientColors = calculateGradientColors(
|
|
60
73
|
// @ts-expect-error TODO fix numbers
|
|
61
74
|
colors, locations);
|
|
62
|
-
|
|
75
|
+
const angle = calculatePseudoAngle(width, height, startPoint, endPoint);
|
|
76
|
+
return `linear-gradient(${angle}deg, ${gradientColors.join(", ")})`;
|
|
63
77
|
}
|
|
64
78
|
function calculatePseudoAngle(width, height, startPoint, endPoint) {
|
|
65
79
|
const getControlPoints = () => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
let correctedStartPoint = [0, 0];
|
|
81
|
+
if (Array.isArray(startPoint)) {
|
|
82
|
+
correctedStartPoint = [startPoint[0] != null ? startPoint[0] : 0, startPoint[1] != null ? startPoint[1] : 0];
|
|
83
|
+
}
|
|
84
|
+
let correctedEndPoint = [0, 1];
|
|
85
|
+
if (Array.isArray(endPoint)) {
|
|
86
|
+
correctedEndPoint = [endPoint[0] != null ? endPoint[0] : 0, endPoint[1] != null ? endPoint[1] : 1];
|
|
87
|
+
}
|
|
88
|
+
return [correctedStartPoint, correctedEndPoint];
|
|
89
|
+
};
|
|
90
|
+
const [start, end] = getControlPoints();
|
|
91
|
+
start[0] *= width;
|
|
92
|
+
end[0] *= width;
|
|
93
|
+
start[1] *= height;
|
|
94
|
+
end[1] *= height;
|
|
95
|
+
const py = end[1] - start[1];
|
|
96
|
+
const px = end[0] - start[0];
|
|
75
97
|
return 90 + Math.atan2(py, px) * 180 / Math.PI;
|
|
76
98
|
}
|
|
77
99
|
function calculateGradientColors(colors, locations) {
|
|
78
100
|
return colors.map((color, index) => {
|
|
79
101
|
const output = normalizeColor(color);
|
|
80
102
|
if (locations && locations[index] !== void 0) {
|
|
81
|
-
const
|
|
103
|
+
const location = Math.max(0, Math.min(1, locations[index]));
|
|
104
|
+
const percentage = location * 100;
|
|
82
105
|
return `${output} ${percentage}%`;
|
|
83
106
|
}
|
|
84
107
|
return output;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["normalizeColor","React","View","jsx","needsDimensionAwareAngle","start","end","startX","endX","LinearGradient","colors","locations","props","normalizedStart","Array","isArray","x","y","normalizedEnd","needsLayout","height","width","setLayout","useState","linearGradientBackgroundImage","useMemo","getLinearGradientBackgroundImage","
|
|
1
|
+
{"version":3,"names":["normalizeColor","React","View","jsx","needsDimensionAwareAngle","start","end","startX","endX","LinearGradient","colors","locations","props","normalizedStart","Array","isArray","x","y","normalizedEnd","needsLayout","height","width","setLayout","useState","linearGradientBackgroundImage","useMemo","getLinearGradientBackgroundImage","onLayout","style","backgroundImage","event","width2","height2","nativeEvent","layout","oldLayout","startPoint","endPoint","gradientColors","calculateGradientColors","angle","calculatePseudoAngle","join","getControlPoints","correctedStartPoint","correctedEndPoint","py","px","Math","atan2","PI","map","color","index","output","location","max","min","percentage"],"sources":["../../src/linear-gradient.tsx"],"sourcesContent":[null],"mappings":"AAQA,SAASA,cAAA,QAAsB;AAS/B,YAAYC,KAAA,MAAW;AACvB,SAASC,IAAA,QAAY;AA0Df,SAAAC,GAAA;AAvDN,SAASC,yBACPC,KAAA,EACAC,GAAA,EACS;EAIT,IAAI,CAACD,KAAA,IAAS,CAACC,GAAA,EAAK,OAAO;EAE3B,MAAMC,MAAA,GAASF,KAAA,GAAQ,CAAC,KAAK;EAC7B,MAAMG,IAAA,GAAOF,GAAA,GAAM,CAAC,KAAK;EAGzB,OAAOC,MAAA,KAAWC,IAAA;AACpB;AAEO,SAASC,eAAe;EAC7BC,MAAA;EACAC,SAAA;EACAN,KAAA;EACAC,GAAA;EACA,GAAGM;AACL,GAAwB;EACtB,MAAMC,eAAA,GAAkBR,KAAA,GACpBS,KAAA,CAAMC,OAAA,CAAQV,KAAK,IACjBA,KAAA,GACA,CAACA,KAAA,CAAMW,C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tC;IACF;IACA,OAAO,CAACO,mBAAA,EAAqBC,iBAAiB;EAChD;EAEA,MAAM,CAACxC,KAAA,EAAOC,GAAG,IAAIqC,gBAAA,CAAiB;EACtCtC,KAAA,CAAM,CAAC,KAAKgB,KAAA;EACZf,GAAA,CAAI,CAAC,KAAKe,KAAA;EACVhB,KAAA,CAAM,CAAC,KAAKe,MAAA;EACZd,GAAA,CAAI,CAAC,KAAKc,MAAA;EACV,MAAM0B,EAAA,GAAKxC,GAAA,CAAI,CAAC,IAAID,KAAA,CAAM,CAAC;EAC3B,MAAM0C,EAAA,GAAKzC,GAAA,CAAI,CAAC,IAAID,KAAA,CAAM,CAAC;EAE3B,OAAO,KAAM2C,IAAA,CAAKC,KAAA,CAAMH,EAAA,EAAIC,EAAE,IAAI,MAAOC,IAAA,CAAKE,EAAA;AAChD;AAEA,SAASX,wBAAwB7B,MAAA,EAAkBC,SAAA,EAA6B;EAC9E,OAAOD,MAAA,CAAOyC,GAAA,CAAI,CAACC,KAAA,EAAeC,KAAA,KAAiC;IACjE,MAAMC,MAAA,GAAStD,cAAA,CAAeoD,KAAK;IACnC,IAAIzC,SAAA,IAAaA,SAAA,CAAU0C,KAAK,MAAM,QAAW;MAC/C,MAAME,QAAA,GAAWP,IAAA,CAAKQ,GAAA,CAAI,GAAGR,IAAA,CAAKS,GAAA,CAAI,GAAG9C,SAAA,CAAU0C,KAAK,CAAC,CAAC;MAE1D,MAAMK,UAAA,GAAaH,QAAA,GAAW;MAC9B,OAAO,GAAGD,MAAM,IAAII,UAAU;IAChC;IACA,OAAOJ,MAAA;EACT,CAAC;AACH","ignoreList":[]}
|
|
@@ -5,28 +5,30 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var linear_gradient_native_exports = {};
|
|
24
26
|
__export(linear_gradient_native_exports, {
|
|
25
27
|
LinearGradient: () => LinearGradient
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(linear_gradient_native_exports);
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
29
|
-
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_native = require("@tamagui/native");
|
|
30
32
|
function LinearGradient(props) {
|
|
31
33
|
var state = (0, import_native.getLinearGradient)().state;
|
|
32
34
|
if (state.enabled && state.Component) {
|
|
@@ -35,6 +37,7 @@ function LinearGradient(props) {
|
|
|
35
37
|
...props
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
|
-
console.warn(
|
|
40
|
+
console.warn(`Warning: Must call import '@tamagui/native/setup-expo-linear-gradient' at root`);
|
|
41
|
+
return;
|
|
39
42
|
}
|
|
40
43
|
//# sourceMappingURL=linear-gradient.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["linear_gradient_native_exports","__export","LinearGradient","module","exports","__toCommonJS","import_jsx_runtime","require","import_native","props","state","getLinearGradient","enabled","Component","ExpoLinearGradient","jsx","console","warn"],"sources":["../../src/linear-gradient.native.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["linear_gradient_native_exports","__export","LinearGradient","module","exports","__toCommonJS","import_jsx_runtime","require","import_native","props","state","getLinearGradient","enabled","Component","ExpoLinearGradient","jsx","console","warn"],"sources":["../../src/linear-gradient.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA;AAAAC,QAAA,CAAAD,8BAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,8BAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,aAAA,GAAkCD,OAAA;AAC3B,SAASL,eAAeO,KAAA,EAAO;EAClC,IAAIC,KAAA,OAAQF,aAAA,CAAAG,iBAAA,EAAkB,EAAED,KAAA;EAChC,IAAIA,KAAA,CAAME,OAAA,IAAWF,KAAA,CAAMG,SAAA,EAAW;IAClC,IAAIC,kBAAA,GAAqBJ,KAAA,CAAMG,SAAA;IAC/B,OAAqB,mBAAAP,kBAAA,CAAAS,GAAA,EAAKD,kBAAA,EAAoB;MAC1C,GAAGL;IACP,CAAC;EACL;EACAO,OAAA,CAAQC,IAAA,CAAK,gFAAgF;EAC7F;AACJ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/linear-gradient",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.40",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -18,15 +18,12 @@
|
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./types/index.d.ts",
|
|
21
|
-
"react-native":
|
|
22
|
-
|
|
23
|
-
"import": "./dist/esm/index.native.js",
|
|
24
|
-
"require": "./dist/cjs/index.native.js"
|
|
25
|
-
},
|
|
21
|
+
"react-native": "./dist/esm/index.native.js",
|
|
22
|
+
"browser": "./dist/esm/index.mjs",
|
|
26
23
|
"module": "./dist/esm/index.mjs",
|
|
27
24
|
"import": "./dist/esm/index.mjs",
|
|
28
25
|
"require": "./dist/cjs/index.cjs",
|
|
29
|
-
"default": "./dist/
|
|
26
|
+
"default": "./dist/esm/index.mjs"
|
|
30
27
|
}
|
|
31
28
|
},
|
|
32
29
|
"publishConfig": {
|
|
@@ -39,15 +36,15 @@
|
|
|
39
36
|
"clean:build": "tamagui-build clean:build"
|
|
40
37
|
},
|
|
41
38
|
"dependencies": {
|
|
42
|
-
"@tamagui/core": "2.0.0-rc.
|
|
43
|
-
"@tamagui/native": "2.0.0-rc.
|
|
44
|
-
"@tamagui/stacks": "2.0.0-rc.
|
|
39
|
+
"@tamagui/core": "2.0.0-rc.40",
|
|
40
|
+
"@tamagui/native": "2.0.0-rc.40",
|
|
41
|
+
"@tamagui/stacks": "2.0.0-rc.40"
|
|
45
42
|
},
|
|
46
43
|
"devDependencies": {
|
|
47
|
-
"@tamagui/build": "2.0.0-rc.
|
|
48
|
-
"expo-linear-gradient": "~
|
|
44
|
+
"@tamagui/build": "2.0.0-rc.40",
|
|
45
|
+
"expo-linear-gradient": "~55.0.8",
|
|
49
46
|
"react": ">=19",
|
|
50
|
-
"react-native": "0.
|
|
47
|
+
"react-native": "0.83.2"
|
|
51
48
|
},
|
|
52
49
|
"peerDependencies": {
|
|
53
50
|
"react": ">=19",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var LinearGradient_exports = {};
|
|
16
|
-
__export(LinearGradient_exports, {
|
|
17
|
-
LinearGradient: () => LinearGradient
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(LinearGradient_exports);
|
|
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");
|
|
21
|
-
const LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
22
|
-
name: "LinearGradient",
|
|
23
|
-
overflow: "hidden",
|
|
24
|
-
position: "relative"
|
|
25
|
-
}), LinearGradient = LinearGradientFrame.styleable(
|
|
26
|
-
(propsIn, ref) => {
|
|
27
|
-
const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)();
|
|
28
|
-
let colors = props.colors?.map((c) => theme[c]?.get("web") ?? c) || [];
|
|
29
|
-
return process.env.NODE_ENV !== "production" && colors.some((c) => {
|
|
30
|
-
const normalized = (0, import_core.normalizeColor)(c);
|
|
31
|
-
if (!normalized || normalized.startsWith("$"))
|
|
32
|
-
return !0;
|
|
33
|
-
}) && (console.error(
|
|
34
|
-
`LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
|
|
35
|
-
), colors = ["#000", "#fff"]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LinearGradientFrame, { ref, ...stackProps, children: [
|
|
36
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
37
|
-
import_linear_gradient.LinearGradient,
|
|
38
|
-
{
|
|
39
|
-
start,
|
|
40
|
-
end,
|
|
41
|
-
colors,
|
|
42
|
-
locations,
|
|
43
|
-
style: gradientStyle
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
children
|
|
47
|
-
] });
|
|
48
|
-
}
|
|
49
|
-
), gradientStyle = {
|
|
50
|
-
position: "absolute",
|
|
51
|
-
top: 0,
|
|
52
|
-
left: 0,
|
|
53
|
-
right: 0,
|
|
54
|
-
bottom: 0,
|
|
55
|
-
zIndex: 0
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=LinearGradient.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/LinearGradient.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2D,0BAC3D,gBAAuB,4BAIvB,yBAAqD,8BA6C/C;AAnCN,MAAM,0BAAsB,oBAAO,sBAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC,GAEY,iBAAiB,oBAAoB;AAAA,EAChD,CAAC,SAAS,QAAQ;AAChB,UAAM,YAAQ,sBAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,YAAQ,sBAAS;AAEvB,QAAI,SACF,MAAM,QAAQ,IAAI,CAAC,MACT,MAAM,CAAC,GAAG,IAAI,KAAK,KAAgB,CAC5C,KAAK,CAAC;AAET,WAAI,QAAQ,IAAI,aAAa,gBAEzB,OAAO,KAAK,CAAC,MAAM;AACjB,YAAM,iBAAa,4BAAe,CAAC;AACnC,UAAI,CAAC,cAAc,WAAW,WAAW,GAAG;AAC1C,eAAO;AAAA,IAEX,CAAC,MAED,QAAQ;AAAA,MACN,gEAAgE,MAAM;AAAA,IACxE,GACA,SAAS,CAAC,QAAQ,MAAM,IAK1B,6CAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA;AAAA,QAAC,uBAAAA;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,OAAO;AAAA;AAAA,MACT;AAAA,MACC;AAAA,OACH;AAAA,EAEJ;AACF,GAIM,gBAA2B;AAAA,EAC/B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV;",
|
|
5
|
-
"names": ["ExpoLinearGradient"]
|
|
6
|
-
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var index_exports = {};
|
|
16
|
-
__export(index_exports, {
|
|
17
|
-
LinearGradient: () => import_LinearGradient.LinearGradient
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
var import_LinearGradient = require("./LinearGradient");
|
|
21
|
-
//# sourceMappingURL=index.js.map
|