@tamagui/web 1.89.7 → 1.89.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.
@@ -19,7 +19,7 @@ __export(internalWithTheme_exports, {
19
19
  module.exports = __toCommonJS(internalWithTheme_exports);
20
20
  var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
21
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, expressions), ...rest });
22
+ const { _expressions = [], ...rest } = props, theme = (0, import_useTheme.useTheme)();
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, _expressions), ...rest });
24
24
  };
25
25
  //# sourceMappingURL=internalWithTheme.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAyB,6BAOhB;AAHF,MAAM,oBAAoB,CAAC,WAAgB,kBAAuB,CAAC,UAAU;AAClF,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,WAAW,GAAI,GAAG,MAAM;AACxE;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAyB,6BASd;AALJ,MAAM,oBACX,CAAC,WAAgB,kBACjB,CAAC,UAAe;AACd,QAAM,EAAE,eAAe,CAAC,GAAG,GAAG,KAAK,IAAI,OACjC,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,YAAY,GAAI,GAAG,MAAM;AACzE;",
5
5
  "names": []
6
6
  }
@@ -20,8 +20,8 @@ __export(internalWithTheme_exports, {
20
20
  module.exports = __toCommonJS(internalWithTheme_exports);
21
21
  var import_useTheme = require("./hooks/useTheme"), import_jsx_runtime = require("react/jsx-runtime");
22
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, expressions), ...rest });
23
+ const { _expressions = [], ...rest } = props, theme = (0, import_useTheme.useTheme)();
24
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { style: styleProvider(theme, _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,sBAAyB,6BAOhB;AAHF,MAAM,oBAAoB,CAAC,WAAgB,kBAAuB,CAAC,UAAU;AAClF,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,WAAW,GAAI,GAAG,MAAM;AACxE;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAyB,6BASd;AALJ,MAAM,oBACX,CAAC,WAAgB,kBACjB,CAAC,UAAe;AACd,QAAM,EAAE,eAAe,CAAC,GAAG,GAAG,KAAK,IAAI,OACjC,YAAQ,0BAAS;AACvB,SAAO,4CAAC,aAAU,OAAO,cAAc,OAAO,YAAY,GAAI,GAAG,MAAM;AACzE;",
5
5
  "names": []
6
6
  }
@@ -1,8 +1,8 @@
1
1
  import { useTheme } from "./hooks/useTheme";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  const internalWithTheme = (Component, styleProvider) => (props) => {
4
- const { expressions, ...rest } = props, theme = useTheme();
5
- return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, expressions), ...rest });
4
+ const { _expressions = [], ...rest } = props, theme = useTheme();
5
+ return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, _expressions), ...rest });
6
6
  };
7
7
  export {
8
8
  internalWithTheme
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAOhB;AAHF,MAAM,oBAAoB,CAAC,WAAgB,kBAAuB,CAAC,UAAU;AAClF,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,WAAW,GAAI,GAAG,MAAM;AACxE;",
4
+ "mappings": "AAAA,SAAS,gBAAgB;AASd;AALJ,MAAM,oBACX,CAAC,WAAgB,kBACjB,CAAC,UAAe;AACd,QAAM,EAAE,eAAe,CAAC,GAAG,GAAG,KAAK,IAAI,OACjC,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,YAAY,GAAI,GAAG,MAAM;AACzE;",
5
5
  "names": []
6
6
  }
@@ -2,12 +2,12 @@ import { useTheme } from "./hooks/useTheme.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  const internalWithTheme = (Component, styleProvider) => props => {
4
4
  const {
5
- expressions,
5
+ _expressions = [],
6
6
  ...rest
7
7
  } = props,
8
8
  theme = useTheme();
9
9
  return /* @__PURE__ */jsx(Component, {
10
- style: styleProvider(theme, expressions),
10
+ style: styleProvider(theme, _expressions),
11
11
  ...rest
12
12
  });
13
13
  };
@@ -1,8 +1,8 @@
1
1
  import { useTheme } from "./hooks/useTheme";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  const internalWithTheme = (Component, styleProvider) => (props) => {
4
- const { expressions, ...rest } = props, theme = useTheme();
5
- return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, expressions), ...rest });
4
+ const { _expressions = [], ...rest } = props, theme = useTheme();
5
+ return /* @__PURE__ */ jsx(Component, { style: styleProvider(theme, _expressions), ...rest });
6
6
  };
7
7
  export {
8
8
  internalWithTheme
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/internalWithTheme.tsx"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAOhB;AAHF,MAAM,oBAAoB,CAAC,WAAgB,kBAAuB,CAAC,UAAU;AAClF,QAAM,EAAE,aAAa,GAAG,KAAK,IAAI,OAC3B,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,WAAW,GAAI,GAAG,MAAM;AACxE;",
4
+ "mappings": "AAAA,SAAS,gBAAgB;AASd;AALJ,MAAM,oBACX,CAAC,WAAgB,kBACjB,CAAC,UAAe;AACd,QAAM,EAAE,eAAe,CAAC,GAAG,GAAG,KAAK,IAAI,OACjC,QAAQ,SAAS;AACvB,SAAO,oBAAC,aAAU,OAAO,cAAc,OAAO,YAAY,GAAI,GAAG,MAAM;AACzE;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.89.7",
3
+ "version": "1.89.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.89.7",
31
- "@tamagui/constants": "1.89.7",
32
- "@tamagui/helpers": "1.89.7",
33
- "@tamagui/normalize-css-color": "1.89.7",
34
- "@tamagui/timer": "1.89.7",
35
- "@tamagui/types": "1.89.7",
36
- "@tamagui/use-did-finish-ssr": "1.89.7",
37
- "@tamagui/use-event": "1.89.7",
38
- "@tamagui/use-force-update": "1.89.7",
30
+ "@tamagui/compose-refs": "1.89.8",
31
+ "@tamagui/constants": "1.89.8",
32
+ "@tamagui/helpers": "1.89.8",
33
+ "@tamagui/normalize-css-color": "1.89.8",
34
+ "@tamagui/timer": "1.89.8",
35
+ "@tamagui/types": "1.89.8",
36
+ "@tamagui/use-did-finish-ssr": "1.89.8",
37
+ "@tamagui/use-event": "1.89.8",
38
+ "@tamagui/use-force-update": "1.89.8",
39
39
  "react": "^18.2.0",
40
40
  "react-dom": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.89.7",
43
+ "@tamagui/build": "1.89.8",
44
44
  "@testing-library/react": "^14.0.0",
45
45
  "csstype": "^3.0.10",
46
46
  "typescript": "^5.3.3",
@@ -2,8 +2,10 @@ import { useTheme } from './hooks/useTheme'
2
2
 
3
3
  /** internal: this is for tamagui babel plugin usage only */
4
4
 
5
- export const internalWithTheme = (Component: any, styleProvider: any) => (props) => {
6
- const { expressions, ...rest } = props
7
- const theme = useTheme()
8
- return <Component style={styleProvider(theme, expressions)} {...rest} />
9
- }
5
+ export const internalWithTheme =
6
+ (Component: any, styleProvider: (theme: any, expressions: any[]) => Object) =>
7
+ (props: any) => {
8
+ const { _expressions = [], ...rest } = props
9
+ const theme = useTheme()
10
+ return <Component style={styleProvider(theme, _expressions)} {...rest} />
11
+ }
@@ -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) => (props: any) => JSX.Element;
3
+ export declare const internalWithTheme: (Component: any, styleProvider: (theme: any, expressions: any[]) => Object) => (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":";AAEA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAAe,GAAG,iBAAiB,GAAG,gCAInE,CAAA"}
1
+ {"version":3,"file":"internalWithTheme.d.ts","sourceRoot":"","sources":["../src/internalWithTheme.tsx"],"names":[],"mappings":";AAEA,4DAA4D;AAE5D,eAAO,MAAM,iBAAiB,cAChB,GAAG,yBAAyB,GAAG,eAAe,GAAG,EAAE,KAAK,MAAM,aAClE,GAAG,gBAIV,CAAA"}