@tamagui/linear-gradient 1.89.26 → 1.89.27-1708113113238

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.
@@ -18,40 +18,77 @@ __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"), import_jsx_runtime = require("react/jsx-runtime");
22
- const LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
21
+ var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), import_linear_gradient = require("./linear-gradient");
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
+ }
41
+ function _object_without_properties(source, excluded) {
42
+ if (source == null)
43
+ return {};
44
+ var target = _object_without_properties_loose(source, excluded), key, i;
45
+ if (Object.getOwnPropertySymbols) {
46
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
47
+ for (i = 0; i < sourceSymbolKeys.length; i++)
48
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
49
+ }
50
+ return target;
51
+ }
52
+ function _object_without_properties_loose(source, excluded) {
53
+ if (source == null)
54
+ return {};
55
+ var target = {}, sourceKeys = Object.keys(source), key, i;
56
+ for (i = 0; i < sourceKeys.length; i++)
57
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
58
+ return target;
59
+ }
60
+ var LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
23
61
  name: "LinearGradient",
24
62
  overflow: "hidden",
25
63
  position: "relative"
26
- }), LinearGradient = LinearGradientFrame.styleable(
27
- (propsIn, ref) => {
28
- var _a;
29
- const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)();
30
- let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
31
- var _a2;
32
- return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
33
- })) || [];
34
- return process.env.NODE_ENV !== "production" && colors.some((c) => {
35
- const normalized = (0, import_core.normalizeColor)(c);
36
- if (!normalized || normalized.startsWith("$"))
37
- return !0;
38
- }) && (console.error(
39
- `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
40
- ), colors = ["#000", "#fff"]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LinearGradientFrame, { ref, ...stackProps, children: [
41
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
- import_linear_gradient.LinearGradient,
43
- {
44
- start,
45
- end,
46
- colors,
47
- locations,
48
- style: gradientStyle
49
- }
50
- ),
51
- children
52
- ] });
53
- }
54
- ), gradientStyle = {
64
+ }), LinearGradient = LinearGradientFrame.styleable(function(propsIn, ref) {
65
+ var _props_colors, props = (0, import_core.useProps)(propsIn), start = props.start, end = props.end, colorsProp = props.colors, locations = props.locations, children = props.children, stackProps = _object_without_properties(props, [
66
+ "start",
67
+ "end",
68
+ "colors",
69
+ "locations",
70
+ "children"
71
+ ]), theme = (0, import_core.useTheme)(), colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function(c) {
72
+ var _theme_c, _theme_c_get;
73
+ 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;
74
+ })) || [];
75
+ return process.env.NODE_ENV !== "production" && colors.some(function(c) {
76
+ var normalized = (0, import_core.normalizeColor)(c);
77
+ if (!normalized || normalized.startsWith("$"))
78
+ return !0;
79
+ }) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
80
+ "#000",
81
+ "#fff"
82
+ ]), /* @__PURE__ */ React.createElement(LinearGradientFrame, _object_spread({
83
+ ref
84
+ }, stackProps), /* @__PURE__ */ React.createElement(import_linear_gradient.LinearGradient, {
85
+ start,
86
+ end,
87
+ colors,
88
+ locations,
89
+ style: gradientStyle
90
+ }), children);
91
+ }), gradientStyle = {
55
92
  position: "absolute",
56
93
  top: 0,
57
94
  left: 0,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient-shared.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;AAvBpB;AAwBI,UAAM,YAAQ,sBAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,YAAQ,sBAAS;AAEvB,QAAI,WACF,WAAM,WAAN,mBAAc,IAAI,CAAC,MAAM;AA9B/B,UAAAA;AA+BQ,eAAQA,MAAA,MAAM,CAAC,MAAP,gBAAAA,IAAU,IAAI,WAAqB;AAAA,IAC7C,OAAM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ZL,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,sBAAA,cAACf,qBAAAA,eAAAA;IAAoBS;KAAqBS,UAAAA,GACxC,sBAAA,cAACe,uBAAAA,gBAAAA;IACCrB;IACAC;IACAE;IACAC;IACAkB,OAAOC;MAERlB,QAAAA;AAGP,CAAA,GAKIkB,gBAA2B;EAC/B9B,UAAU;EACV+B,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", "ExpoLinearGradient", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
6
6
  }
@@ -18,10 +18,9 @@ __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
21
  function LinearGradient(props) {
23
- const Real = require("./LinearGradient.shared").LinearGradient;
24
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Real, { ...props });
22
+ var Real = require("./LinearGradient-shared").LinearGradient;
23
+ return /* @__PURE__ */ React.createElement(Real, props);
25
24
  }
26
25
  // Annotate the CommonJS export names for ESM import in node:
27
26
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient.native.tsx"],
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
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAKO,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,sBAAA,cAACE,MAASD,KAAAA;AACnB;",
5
+ "names": ["LinearGradient", "props", "Real", "require"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;",
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;;wBAAc,6BAAd;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAA+B;",
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/linear-gradient.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;kCAA+B;",
5
5
  "names": []
6
6
  }
@@ -1,40 +1,76 @@
1
1
  import { normalizeColor, styled, useProps, useTheme } from "@tamagui/core";
2
2
  import { YStack } from "@tamagui/stacks";
3
3
  import { LinearGradient as ExpoLinearGradient } from "./linear-gradient";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- const LinearGradientFrame = styled(YStack, {
4
+ function _define_property(obj, key, value) {
5
+ return key in obj ? Object.defineProperty(obj, key, {
6
+ value,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : obj[key] = value, obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
15
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
16
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
17
+ }))), ownKeys.forEach(function(key) {
18
+ _define_property(target, key, source[key]);
19
+ });
20
+ }
21
+ return target;
22
+ }
23
+ function _object_without_properties(source, excluded) {
24
+ if (source == null)
25
+ return {};
26
+ var target = _object_without_properties_loose(source, excluded), key, i;
27
+ if (Object.getOwnPropertySymbols) {
28
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
29
+ for (i = 0; i < sourceSymbolKeys.length; i++)
30
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31
+ }
32
+ return target;
33
+ }
34
+ function _object_without_properties_loose(source, excluded) {
35
+ if (source == null)
36
+ return {};
37
+ var target = {}, sourceKeys = Object.keys(source), key, i;
38
+ for (i = 0; i < sourceKeys.length; i++)
39
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
40
+ return target;
41
+ }
42
+ var LinearGradientFrame = styled(YStack, {
6
43
  name: "LinearGradient",
7
44
  overflow: "hidden",
8
45
  position: "relative"
9
- }), LinearGradient = LinearGradientFrame.styleable(
10
- (propsIn, ref) => {
11
- var _a;
12
- const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme();
13
- let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
14
- var _a2;
15
- return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
16
- })) || [];
17
- return process.env.NODE_ENV !== "production" && colors.some((c) => {
18
- const normalized = normalizeColor(c);
19
- if (!normalized || normalized.startsWith("$"))
20
- return !0;
21
- }) && (console.error(
22
- `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
23
- ), colors = ["#000", "#fff"]), /* @__PURE__ */ jsxs(LinearGradientFrame, { ref, ...stackProps, children: [
24
- /* @__PURE__ */ jsx(
25
- ExpoLinearGradient,
26
- {
27
- start,
28
- end,
29
- colors,
30
- locations,
31
- style: gradientStyle
32
- }
33
- ),
34
- children
35
- ] });
36
- }
37
- ), gradientStyle = {
46
+ }), LinearGradient = LinearGradientFrame.styleable(function(propsIn, ref) {
47
+ var _props_colors, props = useProps(propsIn), start = props.start, end = props.end, colorsProp = props.colors, locations = props.locations, children = props.children, stackProps = _object_without_properties(props, [
48
+ "start",
49
+ "end",
50
+ "colors",
51
+ "locations",
52
+ "children"
53
+ ]), theme = useTheme(), colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function(c) {
54
+ var _theme_c, _theme_c_get;
55
+ 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;
56
+ })) || [];
57
+ return process.env.NODE_ENV !== "production" && colors.some(function(c) {
58
+ var normalized = normalizeColor(c);
59
+ if (!normalized || normalized.startsWith("$"))
60
+ return !0;
61
+ }) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
62
+ "#000",
63
+ "#fff"
64
+ ]), /* @__PURE__ */ React.createElement(LinearGradientFrame, _object_spread({
65
+ ref
66
+ }, stackProps), /* @__PURE__ */ React.createElement(ExpoLinearGradient, {
67
+ start,
68
+ end,
69
+ colors,
70
+ locations,
71
+ style: gradientStyle
72
+ }), children);
73
+ }), gradientStyle = {
38
74
  position: "absolute",
39
75
  top: 0,
40
76
  left: 0,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient-shared.tsx"],
4
- "mappings": "AACA,SAAS,gBAAgB,QAAQ,UAAU,gBAAgB;AAC3D,SAAS,cAAc;AAIvB,SAAS,kBAAkB,0BAA0B;AA6C/C,SACE,KADF;AAnCN,MAAM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC,GAEY,iBAAiB,oBAAoB;AAAA,EAChD,CAAC,SAAS,QAAQ;AAvBpB;AAwBI,UAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS;AAEvB,QAAI,WACF,WAAM,WAAN,mBAAc,IAAI,CAAC,MAAM;AA9B/B,UAAAA;AA+BQ,eAAQA,MAAA,MAAM,CAAC,MAAP,gBAAAA,IAAU,IAAI,WAAqB;AAAA,IAC7C,OAAM,CAAC;AAET,WAAI,QAAQ,IAAI,aAAa,gBAEzB,OAAO,KAAK,CAAC,MAAM;AACjB,YAAM,aAAa,eAAe,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,qBAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,OAAO;AAAA;AAAA,MACT;AAAA,M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,gEAAsE,OAAPf,QAAO,+CAAA,CAAA,GAEzEA,SAAS;IAAC;IAAQ;MAKpB,sBAAA,cAACX,qBAAAA,eAAAA;IAAoBM;KAAqBQ,UAAAA,GACxC,sBAAA,cAACf,oBAAAA;IACCS;IACAC;IACAE;IACAC;IACAe,OAAOC;MAERf,QAAAA;AAGP,CAAA,GAKIe,gBAA2B;EAC/BzB,UAAU;EACV0B,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,QAAQ;AACV;",
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,7 +1,6 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  function LinearGradient(props) {
3
- const Real = require("./LinearGradient.shared").LinearGradient;
4
- return /* @__PURE__ */ jsx(Real, { ...props });
2
+ var Real = require("./LinearGradient-shared").LinearGradient;
3
+ return /* @__PURE__ */ React.createElement(Real, props);
5
4
  }
6
5
  export {
7
6
  LinearGradient
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient.native.tsx"],
4
- "mappings": "AAQS;AAHF,SAAS,eAAe,OAAO;AACpC,QAAM,OAAO,QAAQ,yBAAyB,EAAE;AAEhD,SAAO,oBAAC,QAAM,GAAG,OAAO;AAC1B;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
4
+ "mappings": "AAKO,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,sBAAA,cAACE,MAASD,KAAAA;AACnB;",
5
+ "names": ["LinearGradient", "props", "Real", "require"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/index.ts"],
4
4
  "mappings": "AAAA,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": "AAAA,SAAS,sBAAsB;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/linear-gradient.ts"],
4
+ "mappings": "AAAA,SAASA,sBAAsB;",
5
+ "names": ["LinearGradient"]
6
6
  }
@@ -1,40 +1,76 @@
1
1
  import { normalizeColor, styled, useProps, useTheme } from "@tamagui/core";
2
2
  import { YStack } from "@tamagui/stacks";
3
3
  import { LinearGradient as ExpoLinearGradient } from "./linear-gradient";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- const LinearGradientFrame = styled(YStack, {
4
+ function _define_property(obj, key, value) {
5
+ return key in obj ? Object.defineProperty(obj, key, {
6
+ value,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : obj[key] = value, obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
15
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
16
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
17
+ }))), ownKeys.forEach(function(key) {
18
+ _define_property(target, key, source[key]);
19
+ });
20
+ }
21
+ return target;
22
+ }
23
+ function _object_without_properties(source, excluded) {
24
+ if (source == null)
25
+ return {};
26
+ var target = _object_without_properties_loose(source, excluded), key, i;
27
+ if (Object.getOwnPropertySymbols) {
28
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
29
+ for (i = 0; i < sourceSymbolKeys.length; i++)
30
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31
+ }
32
+ return target;
33
+ }
34
+ function _object_without_properties_loose(source, excluded) {
35
+ if (source == null)
36
+ return {};
37
+ var target = {}, sourceKeys = Object.keys(source), key, i;
38
+ for (i = 0; i < sourceKeys.length; i++)
39
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
40
+ return target;
41
+ }
42
+ var LinearGradientFrame = styled(YStack, {
6
43
  name: "LinearGradient",
7
44
  overflow: "hidden",
8
45
  position: "relative"
9
- }), LinearGradient = LinearGradientFrame.styleable(
10
- (propsIn, ref) => {
11
- var _a;
12
- const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme();
13
- let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
14
- var _a2;
15
- return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
16
- })) || [];
17
- return process.env.NODE_ENV !== "production" && colors.some((c) => {
18
- const normalized = normalizeColor(c);
19
- if (!normalized || normalized.startsWith("$"))
20
- return !0;
21
- }) && (console.error(
22
- `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
23
- ), colors = ["#000", "#fff"]), /* @__PURE__ */ jsxs(LinearGradientFrame, { ref, ...stackProps, children: [
24
- /* @__PURE__ */ jsx(
25
- ExpoLinearGradient,
26
- {
27
- start,
28
- end,
29
- colors,
30
- locations,
31
- style: gradientStyle
32
- }
33
- ),
34
- children
35
- ] });
36
- }
37
- ), gradientStyle = {
46
+ }), LinearGradient = LinearGradientFrame.styleable(function(propsIn, ref) {
47
+ var _props_colors, props = useProps(propsIn), start = props.start, end = props.end, colorsProp = props.colors, locations = props.locations, children = props.children, stackProps = _object_without_properties(props, [
48
+ "start",
49
+ "end",
50
+ "colors",
51
+ "locations",
52
+ "children"
53
+ ]), theme = useTheme(), colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function(c) {
54
+ var _theme_c, _theme_c_get;
55
+ 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;
56
+ })) || [];
57
+ return process.env.NODE_ENV !== "production" && colors.some(function(c) {
58
+ var normalized = normalizeColor(c);
59
+ if (!normalized || normalized.startsWith("$"))
60
+ return !0;
61
+ }) && (console.error('LinearGradient: "colors" prop contains invalid color tokens: '.concat(colors, ' fallback to default colors: ["#000", "#fff"]')), colors = [
62
+ "#000",
63
+ "#fff"
64
+ ]), /* @__PURE__ */ React.createElement(LinearGradientFrame, _object_spread({
65
+ ref
66
+ }, stackProps), /* @__PURE__ */ React.createElement(ExpoLinearGradient, {
67
+ start,
68
+ end,
69
+ colors,
70
+ locations,
71
+ style: gradientStyle
72
+ }), children);
73
+ }), gradientStyle = {
38
74
  position: "absolute",
39
75
  top: 0,
40
76
  left: 0,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient-shared.tsx"],
4
- "mappings": "AACA,SAAS,gBAAgB,QAAQ,UAAU,gBAAgB;AAC3D,SAAS,cAAc;AAIvB,SAAS,kBAAkB,0BAA0B;AA6C/C,SACE,KADF;AAnCN,MAAM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC,GAEY,iBAAiB,oBAAoB;AAAA,EAChD,CAAC,SAAS,QAAQ;AAvBpB;AAwBI,UAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS;AAEvB,QAAI,WACF,WAAM,WAAN,mBAAc,IAAI,CAAC,MAAM;AA9B/B,UAAAA;AA+BQ,eAAQA,MAAA,MAAM,C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AAA,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,sBAAA,cAACX,qBAAAA,eAAAA;IAAoBM;KAAqBQ,UAAAA,GACxC,sBAAA,cAACf,oBAAAA;IACCS;IACAC;IACAE;IACAC;IACAe,OAAOC;MAERf,QAAAA;AAGP,CAAA,GAKIe,gBAA2B;EAC/BzB,UAAU;EACV0B,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,QAAQ;EACRC,QAAQ;AACV;",
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,7 +1,6 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  function LinearGradient(props) {
3
- const Real = require("./LinearGradient.shared").LinearGradient;
4
- return /* @__PURE__ */ jsx(Real, { ...props });
2
+ var Real = require("./LinearGradient-shared").LinearGradient;
3
+ return /* @__PURE__ */ React.createElement(Real, props);
5
4
  }
6
5
  export {
7
6
  LinearGradient
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/LinearGradient.native.tsx"],
4
- "mappings": "AAQS;AAHF,SAAS,eAAe,OAAO;AACpC,QAAM,OAAO,QAAQ,yBAAyB,EAAE;AAEhD,SAAO,oBAAC,QAAM,GAAG,OAAO;AAC1B;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/LinearGradient.native.tsx"],
4
+ "mappings": "AAKO,SAASA,eAAeC,OAAK;AAClC,MAAMC,OAAOC,QAAQ,yBAAA,EAA2BH;AAChD,SAAO,sBAAA,cAACE,MAASD,KAAAA;AACnB;",
5
+ "names": ["LinearGradient", "props", "Real", "require"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/index.ts"],
4
4
  "mappings": "AAAA,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": "AAAA,SAAS,sBAAsB;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/linear-gradient/src/linear-gradient.ts"],
4
+ "mappings": "AAAA,SAASA,sBAAsB;",
5
+ "names": ["LinearGradient"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/linear-gradient",
3
- "version": "1.89.26",
3
+ "version": "1.89.27-1708113113238",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -32,14 +32,14 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/core": "1.89.26",
36
- "@tamagui/stacks": "1.89.26"
35
+ "@tamagui/core": "1.89.27-1708113113238",
36
+ "@tamagui/stacks": "1.89.27-1708113113238"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.89.26",
42
+ "@tamagui/build": "1.89.27-1708113113238",
43
43
  "expo-linear-gradient": "^12.7.1",
44
44
  "react": "^18.2.0"
45
45
  },
@@ -4,7 +4,6 @@
4
4
  */
5
5
 
6
6
  export function LinearGradient(props) {
7
- const Real = require('./LinearGradient.shared').LinearGradient
8
-
7
+ const Real = require('./LinearGradient-shared').LinearGradient
9
8
  return <Real {...props} />
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinearGradient.native.d.ts","sourceRoot":"","sources":["../src/LinearGradient.native.tsx"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,wBAAgB,cAAc,CAAC,KAAK,KAAA,eAInC"}
1
+ {"version":3,"file":"LinearGradient.native.d.ts","sourceRoot":"","sources":["../src/LinearGradient.native.tsx"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,wBAAgB,cAAc,CAAC,KAAK,KAAA,eAGnC"}