@tamagui/linear-gradient 1.88.0 → 1.88.2

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.
@@ -12,8 +12,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0
12
12
  var LinearGradient_exports = {};
13
13
  module.exports = __toCommonJS(LinearGradient_exports);
14
14
  __reExport(LinearGradient_exports, require("./LinearGradient.shared"), module.exports);
15
- // Annotate the CommonJS export names for ESM import in node:
16
- 0 && (module.exports = {
17
- ...require("./LinearGradient.shared")
18
- });
19
15
  //# sourceMappingURL=LinearGradient.js.map
@@ -20,12 +20,8 @@ module.exports = __toCommonJS(LinearGradient_shared_exports);
20
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
21
  const LinearGradient = import_stacks.YStack.styleable(
22
22
  (propsIn, ref) => {
23
- var _a;
24
23
  const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)();
25
- let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
26
- var _a2;
27
- return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
28
- })) || [];
24
+ let colors = props.colors?.map((c) => theme[c]?.get("web") ?? c) || [];
29
25
  return process.env.NODE_ENV !== "production" && colors.some((c) => {
30
26
  const normalized = (0, import_core.normalizeColor)(c);
31
27
  if (!normalized || normalized.startsWith("$"))
@@ -58,8 +54,4 @@ const LinearGradient = import_stacks.YStack.styleable(
58
54
  overflow: "hidden",
59
55
  position: "relative"
60
56
  });
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- LinearGradient
64
- });
65
57
  //# sourceMappingURL=LinearGradient.shared.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/LinearGradient.shared.tsx"],
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0BACP,gBAAuB,4BAGvB,yBAGO,8BAoCD;AA7BC,MAAM,iBAAiB,qBAAO;AAAA,EACnC,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,GAEM,0BAAsB,oBAAO,sBAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
5
+ "names": ["ExpoLinearGradient"]
6
6
  }
package/dist/cjs/index.js CHANGED
@@ -12,8 +12,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0
12
12
  var src_exports = {};
13
13
  module.exports = __toCommonJS(src_exports);
14
14
  __reExport(src_exports, require("./LinearGradient"), module.exports);
15
- // Annotate the CommonJS export names for ESM import in node:
16
- 0 && (module.exports = {
17
- ...require("./LinearGradient")
18
- });
19
15
  //# sourceMappingURL=index.js.map
@@ -18,8 +18,4 @@ __export(linear_gradient_exports, {
18
18
  });
19
19
  module.exports = __toCommonJS(linear_gradient_exports);
20
20
  var import_expo_linear_gradient = require("expo-linear-gradient");
21
- // Annotate the CommonJS export names for ESM import in node:
22
- 0 && (module.exports = {
23
- LinearGradient
24
- });
25
21
  //# sourceMappingURL=linear-gradient.js.map
@@ -1,9 +1,30 @@
1
- import { jsx } from "react/jsx-runtime";
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_native_exports = {};
17
+ __export(LinearGradient_native_exports, {
18
+ LinearGradient: () => LinearGradient
19
+ });
20
+ module.exports = __toCommonJS(LinearGradient_native_exports);
21
+ var import_jsx_runtime = require("react/jsx-runtime");
2
22
  function LinearGradient(props) {
3
23
  const Real = require("./LinearGradient.shared").LinearGradient;
4
- return /* @__PURE__ */ jsx(Real, { ...props });
24
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Real, { ...props });
5
25
  }
6
- export {
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
7
28
  LinearGradient
8
- };
29
+ });
9
30
  //# sourceMappingURL=LinearGradient.native.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
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;",
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,27 +1,41 @@
1
- import {
2
- normalizeColor,
3
- styled,
4
- useProps,
5
- useTheme
6
- } from "@tamagui/core";
7
- import { YStack } from "@tamagui/stacks";
8
- import {
9
- LinearGradient as ExpoLinearGradient
10
- } from "./linear-gradient";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- const LinearGradient = YStack.styleable(
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(
13
23
  (propsIn, ref) => {
14
- const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme();
15
- let colors = props.colors?.map((c) => theme[c]?.get("web") ?? c) || [];
24
+ var _a;
25
+ const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)();
26
+ let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
27
+ var _a2;
28
+ return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
29
+ })) || [];
16
30
  return process.env.NODE_ENV !== "production" && colors.some((c) => {
17
- const normalized = normalizeColor(c);
31
+ const normalized = (0, import_core.normalizeColor)(c);
18
32
  if (!normalized || normalized.startsWith("$"))
19
33
  return !0;
20
34
  }) && (console.error(
21
35
  `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
22
- ), colors = ["#000", "#fff"]), /* @__PURE__ */ jsxs(LinearGradientFrame, { ref, ...stackProps, children: [
23
- /* @__PURE__ */ jsx(
24
- ExpoLinearGradient,
36
+ ), colors = ["#000", "#fff"]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LinearGradientFrame, { ref, ...stackProps, children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_linear_gradient.LinearGradient,
25
39
  {
26
40
  start,
27
41
  end,
@@ -40,12 +54,13 @@ const LinearGradient = YStack.styleable(
40
54
  right: 0,
41
55
  bottom: 0,
42
56
  zIndex: 0
43
- }, LinearGradientFrame = styled(YStack, {
57
+ }, LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
44
58
  name: "LinearGradient",
45
59
  overflow: "hidden",
46
60
  position: "relative"
47
61
  });
48
- export {
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
49
64
  LinearGradient
50
- };
65
+ });
51
66
  //# sourceMappingURL=LinearGradient.shared.js.map
@@ -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,EACA;AAAA,OACK;AACP,SAAS,cAAc;AAGvB;AAAA,EACE,kBAAkB;AAAA,OAEb;AAoCD,SACE,KADF;AA7BC,MAAM,iBAAiB,OAAO;AAAA,EACnC,CAAC,SAAS,QAAQ;AAChB,UAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS;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,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,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,GAEM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;A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
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
+ });
2
20
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,26 @@
1
- import { LinearGradient } from "expo-linear-gradient";
2
- export {
3
- LinearGradient
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;
4
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
+ });
5
26
  //# sourceMappingURL=linear-gradient.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": "AAAA,SAAS,sBAAsB;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAA+B;",
5
5
  "names": []
6
6
  }
@@ -1,8 +1,30 @@
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_native_exports = {};
17
+ __export(LinearGradient_native_exports, {
18
+ LinearGradient: () => LinearGradient
19
+ });
20
+ module.exports = __toCommonJS(LinearGradient_native_exports);
21
+ var import_jsx_runtime = require("react/jsx-runtime");
1
22
  function LinearGradient(props) {
2
23
  const Real = require("./LinearGradient.shared").LinearGradient;
3
- return <Real {...props} />;
24
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Real, { ...props });
4
25
  }
5
- export {
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
6
28
  LinearGradient
7
- };
29
+ });
8
30
  //# sourceMappingURL=LinearGradient.native.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/LinearGradient.native.tsx"],
4
- "mappings": "AAKO,SAAS,eAAe,OAAO;AACpC,QAAM,OAAO,QAAQ,yBAAyB,EAAE;AAEhD,SAAO,CAAC,SAAS,OAAO;AAC1B;",
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
  }
@@ -8,6 +8,7 @@ import { YStack } from "@tamagui/stacks";
8
8
  import {
9
9
  LinearGradient as ExpoLinearGradient
10
10
  } from "./linear-gradient";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
11
12
  const LinearGradient = YStack.styleable(
12
13
  (propsIn, ref) => {
13
14
  const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme();
@@ -18,16 +19,19 @@ const LinearGradient = YStack.styleable(
18
19
  return !0;
19
20
  }) && (console.error(
20
21
  `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
21
- ), colors = ["#000", "#fff"]), <LinearGradientFrame ref={ref} {...stackProps}>
22
- <ExpoLinearGradient
23
- start={start}
24
- end={end}
25
- colors={colors}
26
- locations={locations}
27
- style={gradientStyle}
28
- />
29
- {children}
30
- </LinearGradientFrame>;
22
+ ), colors = ["#000", "#fff"]), /* @__PURE__ */ jsxs(LinearGradientFrame, { ref, ...stackProps, children: [
23
+ /* @__PURE__ */ jsx(
24
+ ExpoLinearGradient,
25
+ {
26
+ start,
27
+ end,
28
+ colors,
29
+ locations,
30
+ style: gradientStyle
31
+ }
32
+ ),
33
+ children
34
+ ] });
31
35
  }
32
36
  ), gradientStyle = {
33
37
  position: "absolute",
@@ -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,EACA;AAAA,OACK;AACP,SAAS,cAAc;AAGvB;AAAA,EACE,kBAAkB;AAAA,OAEb;AAOA,MAAM,iBAAiB,OAAO;AAAA,EACnC,CAAC,SAAS,QAAQ;AAChB,UAAM,QAAQ,SAAS,OAAO,GAExB,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI,OACzE,QAAQ,SAAS;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,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,CAAC,oBAAoB,KAAK,SAAgB;AAAA,MACxC,CAAC;AAAA,QACC,OAAO;AAAA,QACP,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,OAAO;AAAA,MACT;AAAA,OACC;AAAA,IACH,EATC;AAAA,EAWL;AACF,GAIM,gBAA2B;AAAA,EAC/B,UAAU;AAAA,EACV,K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;AACZ,CAAC;",
5
5
  "names": []
6
6
  }
@@ -1,37 +1,51 @@
1
- import {
2
- normalizeColor,
3
- styled,
4
- useProps,
5
- useTheme
6
- } from "@tamagui/core";
7
- import { YStack } from "@tamagui/stacks";
8
- import {
9
- LinearGradient as ExpoLinearGradient
10
- } from "./linear-gradient";
11
- const LinearGradient = YStack.styleable(
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(
12
23
  (propsIn, ref) => {
13
24
  var _a;
14
- const props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme();
25
+ const props = (0, import_core.useProps)(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = (0, import_core.useTheme)();
15
26
  let colors = ((_a = props.colors) == null ? void 0 : _a.map((c) => {
16
27
  var _a2;
17
28
  return ((_a2 = theme[c]) == null ? void 0 : _a2.get("web")) ?? c;
18
29
  })) || [];
19
30
  return process.env.NODE_ENV !== "production" && colors.some((c) => {
20
- const normalized = normalizeColor(c);
31
+ const normalized = (0, import_core.normalizeColor)(c);
21
32
  if (!normalized || normalized.startsWith("$"))
22
33
  return !0;
23
34
  }) && (console.error(
24
35
  `LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`
25
- ), colors = ["#000", "#fff"]), <LinearGradientFrame ref={ref} {...stackProps}>
26
- <ExpoLinearGradient
27
- start={start}
28
- end={end}
29
- colors={colors}
30
- locations={locations}
31
- style={gradientStyle}
32
- />
33
- {children}
34
- </LinearGradientFrame>;
36
+ ), colors = ["#000", "#fff"]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LinearGradientFrame, { ref, ...stackProps, children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_linear_gradient.LinearGradient,
39
+ {
40
+ start,
41
+ end,
42
+ colors,
43
+ locations,
44
+ style: gradientStyle
45
+ }
46
+ ),
47
+ children
48
+ ] });
35
49
  }
36
50
  ), gradientStyle = {
37
51
  position: "absolute",
@@ -40,12 +54,13 @@ const LinearGradient = YStack.styleable(
40
54
  right: 0,
41
55
  bottom: 0,
42
56
  zIndex: 0
43
- }, LinearGradientFrame = styled(YStack, {
57
+ }, LinearGradientFrame = (0, import_core.styled)(import_stacks.YStack, {
44
58
  name: "LinearGradient",
45
59
  overflow: "hidden",
46
60
  position: "relative"
47
61
  });
48
- export {
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
49
64
  LinearGradient
50
- };
65
+ });
51
66
  //# sourceMappingURL=LinearGradient.shared.js.map
@@ -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,EACA;AAAA,OACK;AACP,SAAS,cAAc;AAGvB;AAAA,EACE,k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M,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,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,uBAAAC;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,GAEM,0BAAsB,oBAAO,sBAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;",
5
+ "names": ["_a", "ExpoLinearGradient"]
6
6
  }
@@ -1,2 +1,20 @@
1
- export * from "./LinearGradient";
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
+ });
2
20
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;",
5
5
  "names": []
6
6
  }
@@ -1,5 +1,26 @@
1
- import { LinearGradient } from "expo-linear-gradient";
2
- export {
3
- LinearGradient
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;
4
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
+ });
5
26
  //# sourceMappingURL=linear-gradient.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": "AAAA,SAAS,sBAAsB;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAA+B;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/linear-gradient",
3
- "version": "1.88.0",
3
+ "version": "1.88.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -32,14 +32,14 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@tamagui/core": "1.88.0",
36
- "@tamagui/stacks": "1.88.0"
35
+ "@tamagui/core": "1.88.2",
36
+ "@tamagui/stacks": "1.88.2"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "*"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "1.88.0",
42
+ "@tamagui/build": "1.88.2",
43
43
  "expo-linear-gradient": "~12.3.0",
44
44
  "react": "^18.2.0"
45
45
  },