@tamagui/linear-gradient 1.26.0 → 1.27.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/linear-gradient",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -31,14 +31,14 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@tamagui/core": "1.26.0",
35
- "@tamagui/stacks": "1.26.0"
34
+ "@tamagui/core": "1.27.0",
35
+ "@tamagui/stacks": "1.27.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "*"
39
39
  },
40
40
  "devDependencies": {
41
- "@tamagui/build": "1.26.0",
41
+ "@tamagui/build": "1.27.0",
42
42
  "expo-linear-gradient": "^12.0.1",
43
43
  "react": "^18.2.0"
44
44
  },
@@ -1,2 +0,0 @@
1
- export * from "./LinearGradient.shared";
2
- //# sourceMappingURL=LinearGradient.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/LinearGradient.tsx"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }
@@ -1,9 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- function LinearGradient(props) {
3
- const Real = require("./LinearGradient.shared").LinearGradient;
4
- return /* @__PURE__ */ jsx(Real, { ...props });
5
- }
6
- export {
7
- LinearGradient
8
- };
9
- //# sourceMappingURL=LinearGradient.native.mjs.map
@@ -1,6 +0,0 @@
1
- {
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": []
6
- }
@@ -1,52 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import {
3
- getVariable,
4
- styled,
5
- useProps,
6
- useTheme
7
- } from "@tamagui/core";
8
- import { YStack } from "@tamagui/stacks";
9
- import {
10
- LinearGradient as ExpoLinearGradient
11
- } from "./linear-gradient";
12
- const LinearGradient = YStack.styleable((propsIn, ref) => {
13
- const props = useProps(propsIn);
14
- const { start, end, colors: colorsProp, locations, children, ...stackProps } = props;
15
- const colors = useThemeColors(colorsProp || []);
16
- return /* @__PURE__ */ jsx(LinearGradientFrame, { ref, ...stackProps, children: /* @__PURE__ */ jsx(
17
- ExpoLinearGradient,
18
- {
19
- start,
20
- end,
21
- colors,
22
- locations,
23
- style: absoluteFill,
24
- children
25
- }
26
- ) });
27
- });
28
- const absoluteFill = {
29
- position: "absolute",
30
- top: 0,
31
- left: 0,
32
- right: 0,
33
- bottom: 0
34
- };
35
- const LinearGradientFrame = styled(YStack, {
36
- name: "LinearGradient",
37
- overflow: "hidden",
38
- position: "relative"
39
- });
40
- const useThemeColors = (colors) => {
41
- const theme = useTheme();
42
- return colors.map((color) => {
43
- if (color[0] === "$") {
44
- return getVariable(theme[color] || color);
45
- }
46
- return color;
47
- });
48
- };
49
- export {
50
- LinearGradient
51
- };
52
- //# sourceMappingURL=LinearGradient.shared.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/LinearGradient.shared.tsx"],
4
- "mappings": "AA6BM;AA7BN;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAA2B;AAGpC;AAAA,EACE,kBAAkB;AAAA,OAEb;AAQA,MAAM,iBAAiB,OAAO,UAA+B,CAAC,SAAS,QAAQ;AACpF,QAAM,QAAQ,SAAS,OAAO;AAE9B,QAAM,EAAE,OAAO,KAAK,QAAQ,YAAY,WAAW,UAAU,GAAG,WAAW,IAAI;AAC/E,QAAM,SAAS,eAAe,cAAc,CAAC,CAAC;AAC9C,SACE,oBAAC,uBAAoB,KAAkB,GAAG,YACxC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MAEN;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,MAAM,eAA0B;AAAA,EAC9B,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AACV;AAEA,MAAM,sBAAsB,OAAO,QAAQ;AAAA,EACzC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ,CAAC;AAGD,MAAM,iBAAiB,CAAC,WAAqB;AAC3C,QAAM,QAAQ,SAAS;AACvB,SAAO,OAAO,IAAI,CAAC,UAAU;AAC3B,QAAI,MAAM,CAAC,MAAM,KAAK;AACpB,aAAO,YAAY,MAAM,KAAK,KAAK,KAAK;AAAA,IAC1C;AACA,WAAO;AAAA,EACT,CAAC;AACH;",
5
- "names": []
6
- }
@@ -1,2 +0,0 @@
1
- export * from "./LinearGradient";
2
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }
@@ -1,5 +0,0 @@
1
- import { LinearGradient } from "expo-linear-gradient";
2
- export {
3
- LinearGradient
4
- };
5
- //# sourceMappingURL=linear-gradient.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/linear-gradient.ts"],
4
- "mappings": "AAAA,SAAS,sBAAsB;",
5
- "names": []
6
- }