@tamagui/web 1.79.7 → 1.79.8

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.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=scheme.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=scheme.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -17,10 +17,10 @@ __export(internalWithTheme_exports, {
17
17
  internalWithTheme: () => internalWithTheme
18
18
  });
19
19
  module.exports = __toCommonJS(internalWithTheme_exports);
20
- var import_react = require("react"), import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
21
- const internalWithTheme = (Component, styleProvider, memoArgs) => (props) => {
22
- const theme = (0, import_useTheme.useTheme)();
23
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: (0, import_react.useMemo)(() => styleProvider(theme), memoArgs), ...props });
20
+ var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
21
+ const internalWithTheme = (Component, styleProvider) => (props) => {
22
+ const { expressions, ...rest } = props, theme = (0, import_useTheme.useTheme)();
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, props.expressions), ...rest });
24
24
  };
25
25
  // Annotate the CommonJS export names for ESM import in node:
26
26
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAwB,kBAExB,kBAAyB,6BAWd;AAPJ,MAAM,oBAAoB,CAC/B,WACA,eACA,aAEO,CAAC,UAAU;AAChB,QAAM,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,WAAO,sBAAQ,MAAM,cAAc,KAAK,GAAG,QAAQ,GAAI,GAAG,OAAO;AACrF;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB,6BAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
5
5
  "names": []
6
6
  }
@@ -18,10 +18,10 @@ __export(internalWithTheme_exports, {
18
18
  internalWithTheme: () => internalWithTheme
19
19
  });
20
20
  module.exports = __toCommonJS(internalWithTheme_exports);
21
- var import_react = require("react"), import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
22
- const internalWithTheme = (Component, styleProvider, memoArgs) => (props) => {
23
- const theme = (0, import_useTheme.useTheme)();
24
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: (0, import_react.useMemo)(() => styleProvider(theme), memoArgs), ...props });
21
+ var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
22
+ const internalWithTheme = (Component, styleProvider) => (props) => {
23
+ const { expressions, ...rest } = props, theme = (0, import_useTheme.useTheme)();
24
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, props.expressions), ...rest });
25
25
  };
26
26
  // Annotate the CommonJS export names for ESM import in node:
27
27
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAwB,kBAExB,kBAAyB,6BAWd;AAPJ,MAAM,oBAAoB,CAC/B,WACA,eACA,aAEO,CAAC,UAAU;AAChB,QAAM,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,WAAO,sBAAQ,MAAM,cAAc,KAAK,GAAG,QAAQ,GAAI,GAAG,OAAO;AACrF;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB,6BAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=scheme.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=scheme.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
@@ -1,9 +1,8 @@
1
- import { useMemo } from "react";
2
1
  import { useTheme } from "./hooks/useTheme";
3
2
  import { jsx } from "react/jsx-runtime";
4
- const internalWithTheme = (Component, styleProvider, memoArgs) => (props) => {
5
- const theme = useTheme();
6
- return /* @__PURE__ */ jsx(Component, { style: useMemo(() => styleProvider(theme), memoArgs), ...props });
3
+ const internalWithTheme = (Component, styleProvider) => (props) => {
4
+ const { expressions, ...rest } = props, theme = useTheme();
5
+ return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, props.expressions), ...rest });
7
6
  };
8
7
  export {
9
8
  internalWithTheme
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAWd;AAPJ,MAAM,oBAAoB,CAC/B,WACA,eACA,aAEO,CAAC,UAAU;AAChB,QAAM,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,QAAQ,MAAM,cAAc,KAAK,GAAG,QAAQ,GAAI,GAAG,OAAO;AACrF;",
4
+ "mappings": "AAEA,SAAS,gBAAgB;AAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
5
5
  "names": []
6
6
  }
@@ -1,9 +1,8 @@
1
- import { useMemo } from "react";
2
1
  import { useTheme } from "./hooks/useTheme";
3
2
  import { jsx } from "react/jsx-runtime";
4
- const internalWithTheme = (Component, styleProvider, memoArgs) => (props) => {
5
- const theme = useTheme();
6
- return /* @__PURE__ */ jsx(Component, { style: useMemo(() => styleProvider(theme), memoArgs), ...props });
3
+ const internalWithTheme = (Component, styleProvider) => (props) => {
4
+ const { expressions, ...rest } = props, theme = useTheme();
5
+ return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, props.expressions), ...rest });
7
6
  };
8
7
  export {
9
8
  internalWithTheme
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,gBAAgB;AAWd;AAPJ,MAAM,oBAAoB,CAC/B,WACA,eACA,aAEO,CAAC,UAAU;AAChB,QAAM,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,QAAQ,MAAM,cAAc,KAAK,GAAG,QAAQ,GAAI,GAAG,OAAO;AACrF;",
4
+ "mappings": "AAEA,SAAS,gBAAgB;AAQd;AAJJ,MAAM,oBAAoB,CAAC,WAAgB,kBACzC,CAAC,UAAU;AAChB,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,MAAM,WAAW,GAAI,GAAG,MAAM;AAC9E;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.79.7",
3
+ "version": "1.79.8",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,20 +27,20 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.79.7",
31
- "@tamagui/constants": "1.79.7",
32
- "@tamagui/helpers": "1.79.7",
33
- "@tamagui/normalize-css-color": "1.79.7",
34
- "@tamagui/timer": "1.79.7",
35
- "@tamagui/use-did-finish-ssr": "1.79.7",
36
- "@tamagui/use-event": "1.79.7",
37
- "@tamagui/use-force-update": "1.79.7"
30
+ "@tamagui/compose-refs": "1.79.8",
31
+ "@tamagui/constants": "1.79.8",
32
+ "@tamagui/helpers": "1.79.8",
33
+ "@tamagui/normalize-css-color": "1.79.8",
34
+ "@tamagui/timer": "1.79.8",
35
+ "@tamagui/use-did-finish-ssr": "1.79.8",
36
+ "@tamagui/use-event": "1.79.8",
37
+ "@tamagui/use-force-update": "1.79.8"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.79.7",
43
+ "@tamagui/build": "1.79.8",
44
44
  "@testing-library/react": "^14.0.0",
45
45
  "csstype": "^3.0.10",
46
46
  "react": "^18.2.0",
@@ -4,13 +4,10 @@ import { useTheme } from './hooks/useTheme'
4
4
 
5
5
  /** internal: this is for tamagui babel plugin usage only */
6
6
 
7
- export const internalWithTheme = (
8
- Component: any,
9
- styleProvider: any,
10
- memoArgs: string[]
11
- ) => {
7
+ export const internalWithTheme = (Component: any, styleProvider: any) => {
12
8
  return (props) => {
9
+ const { expressions, ...rest } = props
13
10
  const theme = useTheme()
14
- return <Component style={useMemo(() => styleProvider(theme), memoArgs)} {...props} />
11
+ return <Component style={styleProvider(theme, props.expressions)} {...rest} />
15
12
  }
16
13
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheme.d.ts","sourceRoot":"","sources":["../../src/helpers/scheme.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  /** internal: this is for tamagui babel plugin usage only */
3
- export declare const internalWithTheme: (Component: any, styleProvider: any, memoArgs: string[]) => (props: any) => JSX.Element;
3
+ export declare const internalWithTheme: (Component: any, styleProvider: any) => (props: any) => JSX.Element;
4
4
  //# sourceMappingURL=internalWithTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAIA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cACjB,GAAG,iBACC,GAAG,YACR,MAAM,EAAE,gCAMnB,CAAA"}
1
+ {"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAIA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAAe,GAAG,iBAAiB,GAAG,gCAMnE,CAAA"}