@tamagui/linear-gradient 1.113.1 → 1.113.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.
@@ -1,50 +1,46 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { normalizeColor, styled, useProps, useTheme } from "@tamagui/core";
3
3
  import { YStack } from "@tamagui/stacks";
4
- import { LinearGradient as ExpoLinearGradient } from "./linear-gradient.native.js";
4
+ import { LinearGradient as ExpoLinearGradient } from "./linear-gradient";
5
5
  var LinearGradientFrame = styled(YStack, {
6
- name: "LinearGradient",
7
- overflow: "hidden",
8
- position: "relative"
9
- }),
10
- LinearGradient = LinearGradientFrame.styleable(function (propsIn, ref) {
11
- var _props_colors,
12
- props = useProps(propsIn),
13
- {
14
- start,
15
- end,
16
- colors: colorsProp,
17
- locations,
18
- children,
19
- ...stackProps
20
- } = props,
21
- theme = useTheme(),
22
- colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function (c) {
23
- var _theme_c, _theme_c_get;
24
- 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;
25
- })) || [];
26
- return process.env.NODE_ENV !== "production" && colors.some(function (c) {
27
- var normalized = normalizeColor(c);
28
- if (!normalized || normalized.startsWith("$")) return !0;
29
- }) && (console.error(`LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`), colors = ["#000", "#fff"]), /* @__PURE__ */_jsxs(LinearGradientFrame, {
30
- ref,
31
- ...stackProps,
32
- children: [/* @__PURE__ */_jsx(ExpoLinearGradient, {
6
+ name: "LinearGradient",
7
+ overflow: "hidden",
8
+ position: "relative"
9
+ }), LinearGradient = LinearGradientFrame.styleable(function(propsIn, ref) {
10
+ var _props_colors, props = useProps(propsIn), { start, end, colors: colorsProp, locations, children, ...stackProps } = props, theme = useTheme(), colors = ((_props_colors = props.colors) === null || _props_colors === void 0 ? void 0 : _props_colors.map(function(c) {
11
+ var _theme_c, _theme_c_get;
12
+ 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;
13
+ })) || [];
14
+ return process.env.NODE_ENV !== "production" && colors.some(function(c) {
15
+ var normalized = normalizeColor(c);
16
+ if (!normalized || normalized.startsWith("$"))
17
+ return !0;
18
+ }) && (console.error(`LinearGradient: "colors" prop contains invalid color tokens: ${colors} fallback to default colors: ["#000", "#fff"]`), colors = [
19
+ "#000",
20
+ "#fff"
21
+ ]), /* @__PURE__ */ _jsxs(LinearGradientFrame, {
22
+ ref,
23
+ ...stackProps,
24
+ children: [
25
+ /* @__PURE__ */ _jsx(ExpoLinearGradient, {
33
26
  start,
34
27
  end,
35
28
  colors,
36
29
  locations,
37
30
  style: gradientStyle
38
- }), children]
39
- });
40
- }),
41
- gradientStyle = {
42
- position: "absolute",
43
- top: 0,
44
- left: 0,
45
- right: 0,
46
- bottom: 0,
47
- zIndex: 0
48
- };
49
- export { LinearGradient };
50
- //# sourceMappingURL=LinearGradient.native.js.map
31
+ }),
32
+ children
33
+ ]
34
+ });
35
+ }), gradientStyle = {
36
+ position: "absolute",
37
+ top: 0,
38
+ left: 0,
39
+ right: 0,
40
+ bottom: 0,
41
+ zIndex: 0
42
+ };
43
+ export {
44
+ LinearGradient
45
+ };
46
+ //# sourceMappingURL=LinearGradient.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","jsxs","_jsxs","normalizeColor","styled","useProps","useTheme","YStack","LinearGradient","ExpoLinearGradient","LinearGradientFrame","name","overflow","position","styleable","propsIn","ref","_props_colors","props","start","end","colors","colorsProp","locations","children","stackProps","theme","map","c","_theme_c","_theme_c_get","get","process","env","NODE_ENV","some","normalized","startsWith","console","error","style","gradientStyle","top","left","right","bottom"],"sources":["../../src/LinearGradient.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,GAEvHA,SAAS;IAAC;IAAQ;MAKpB,sBAACV,qBAAAA;IAAoBM;IAAkB,GAAGQ;;MACxC,qBAACf,oBAAAA;QACCS;QACAC;QACAC;QACAE;QACAe,OAAOC;;MAERf;;;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", "colors", "colorsProp", "locations", "children", "stackProps", "theme", "map", "c", "get", "process", "env", "NODE_ENV", "some", "normalized", "startsWith", "console", "error", "style", "gradientStyle", "top", "left", "right", "bottom", "zIndex"]
6
+ }
@@ -1,2 +1,2 @@
1
- export * from "./LinearGradient.native.js";
2
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./LinearGradient";
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/ui/linear-gradient/src/index.ts"],
4
+ "mappings": "AAAA,cAAc;",
5
+ "names": []
6
+ }
@@ -1,3 +1,5 @@
1
1
  import { LinearGradient } from "expo-linear-gradient";
2
- export { LinearGradient };
2
+ export {
3
+ LinearGradient
4
+ };
3
5
  //# sourceMappingURL=linear-gradient.native.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["LinearGradient"],"sources":["../../src/Users/n8/tamagui/code/ui/linear-gradient/src/linear-gradient.native.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,cAAA,QAAsB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/code/ui/linear-gradient/src/linear-gradient.native.tsx"],
4
+ "mappings": "AAAA,SAASA,sBAAsB;",
5
+ "names": ["LinearGradient"]
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/linear-gradient",
3
- "version": "1.113.1",
3
+ "version": "1.113.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -33,11 +33,11 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@tamagui/core": "1.113.1",
37
- "@tamagui/stacks": "1.113.1"
36
+ "@tamagui/core": "1.113.2",
37
+ "@tamagui/stacks": "1.113.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "1.113.1",
40
+ "@tamagui/build": "1.113.2",
41
41
  "expo-linear-gradient": "~13.0.2",
42
42
  "react": "^18.2.0 || ^19.0.0"
43
43
  },