@tamagui/web 1.123.12 → 1.123.13

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.
@@ -40,7 +40,7 @@ var import_react = __toESM(require("react")),
40
40
  // @ts-expect-error its ok
41
41
  require("react/jsx-runtime");
42
42
  function themeable(Component, staticConfig, optimize = !1) {
43
- const withTheme = function (props, ref) {
43
+ const withTheme = import_react.default.forwardRef(function (props, ref) {
44
44
  const {
45
45
  themeInverse,
46
46
  theme,
@@ -77,6 +77,6 @@ function themeable(Component, staticConfig, optimize = !1) {
77
77
  });
78
78
  }
79
79
  return contents;
80
- };
81
- return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, optimize ? withTheme : import_react.default.forwardRef(withTheme);
80
+ });
81
+ return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
82
82
  }
@@ -30,7 +30,7 @@ var import_react = __toESM(require("react")), import_Theme = require("../views/T
30
30
  require("react/jsx-runtime")
31
31
  );
32
32
  function themeable(Component, staticConfig, optimize = !1) {
33
- const withTheme = function(props, ref) {
33
+ const withTheme = import_react.default.forwardRef(function(props, ref) {
34
34
  const { themeInverse, theme, componentName, themeReset, ...rest } = props;
35
35
  let overriddenContextProps;
36
36
  const context = staticConfig?.context;
@@ -50,7 +50,7 @@ function themeable(Component, staticConfig, optimize = !1) {
50
50
  contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { ...contextValue, ...overriddenContextProps, children: contents });
51
51
  }
52
52
  return contents;
53
- };
54
- return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, optimize ? withTheme : import_react.default.forwardRef(withTheme);
53
+ });
54
+ return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
55
55
  }
56
56
  //# sourceMappingURL=themeable.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/themeable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ACjE,KAMO;AACT;",
5
5
  "names": ["React"]
6
6
  }
@@ -28,7 +28,7 @@ __export(themeable_exports, {
28
28
  module.exports = __toCommonJS(themeable_exports);
29
29
  var import_jsx_runtime = require("react/jsx-runtime"), import_react = __toESM(require("react")), import_Theme = require("../views/Theme");
30
30
  function themeable(Component, staticConfig) {
31
- var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, withThemeComponent = function(props, ref) {
31
+ var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, withThemeComponent = /* @__PURE__ */ import_react.default.forwardRef(function(props, ref) {
32
32
  var { themeInverse, theme, componentName, themeReset, ...rest } = props, overriddenContextProps, context = staticConfig == null ? void 0 : staticConfig.context;
33
33
  if (context)
34
34
  for (var key in context.props) {
@@ -59,8 +59,8 @@ function themeable(Component, staticConfig) {
59
59
  });
60
60
  }
61
61
  return contents;
62
- }, withTheme = withThemeComponent;
63
- return withTheme.displayName = `Themed(${(Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "Anonymous"})`, optimize ? withTheme : /* @__PURE__ */ import_react.default.forwardRef(withTheme);
62
+ }), withTheme = withThemeComponent;
63
+ return withTheme.displayName = `Themed(${(Component == null ? void 0 : Component.displayName) || (Component == null ? void 0 : Component.name) || "Anonymous"})`, withTheme;
64
64
  }
65
65
  // Annotate the CommonJS export names for ESM import in node:
66
66
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/themeable.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAGlB,eAAsB;AAEf,SAASA,UACdC,WACAC,cAAoC;MACpCC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW,IAELC,qBAAqB,SAAmBC,OAAuBC,KAAG;AACtE,QAAM,EAAEC,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,WAAA,KAO7DpB,WACK8B,YAGFF,6BAAAA,QAAMI,WAAWF,SAAAA;AAC1B;",
5
- "names": ["themeable", "Component", "staticConfig", "optimize", "withThemeComponent", "props", "ref", "themeInverse", "theme", "componentName", "themeReset", "rest", "overriddenContextProps", "context", "key", "val", "undefined", "element", "_jsx", "data-disable-theme", "filteredProps", "compName", "debug", "name", "inverse", "reset", "contents", "Theme", "disable-child-theme", "Provider", "contextValue", "React", "useContext", "withTheme", "displayName", "forwardRef"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAkB,2BAGlB,eAAsB;AAEf,SAASA,UACdC,WACAC,cAAoC;MACpCC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW,IAELC,qBAAqBC,6BAAAA,QAAMC,WAAW,SAC1CC,OACAC,KAAG;AAEH,QAAM,EAAEC,cAAcC,OAAOC,eAAeC,YAAY,GAAGC,KAAAA,IAASN,OAEhEO,wBACEC,UAAUb,gBAAAA,OAAAA,SAAAA,aAAca;AAC9B,QAAIA;AACF,eAAWC,OAAOD,QAAQR,OAAO;AAC/B,YAAMU,MAAMV,MAAMS,GAAAA;AAClB,QAAIC,QAAQC,WACVJ,2BAAAA,yBAA2B,CAAC,IAC5BA,uBAAuBE,GAAAA,IAAOC;MAElC;AAGF,QAAME;;MAEJ,uCAAAC,KAACnB,WAAAA;QAAUO;QAAW,GAAGK;QAAMQ,sBAAkB;;OAY/CC,gBAA4C,MAE1CC,WAAWZ,kBAAiBT,gBAAAA,OAAAA,SAAAA,aAAcS;AAsBhD,QArBIY,aACFD,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcX,gBAAgBY,WAE5B,WAAWhB,UACbe,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcE,QAAQjB,MAAMiB,QAE1B,WAAWjB,UACbe,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcG,OAAOlB,MAAMG,QAEzB,kBAAkBH,UACpBe,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcI,UAAUnB,MAAME,eAE5B,gBAAgBF,UAClBe,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcK,QAAQf,aAGpBT,YAAY,CAACmB;AAGf,aAAOH;AAGT,QAAIS,WACF,uCAAAR,KAACS,oBAAAA;MAAMC,uBAAmB;MAAE,GAAGR;gBAC5BH;;AAIL,QAAIJ,SAAS;AACX,UAAMgB,WAAWhB,QAAQgB,UACnBC,eAAe3B,aAAAA,QAAM4B,WAAWlB,OAAAA;AACtCa,iBACE,uCAAAR,KAACW,UAAAA;QAAU,GAAGC;QAAe,GAAGlB;kBAC7Bc;;IAGP;AAEA,WAAOA;EACT,CAAA,GAEMM,YAAiB9B;AACvB8B,mBAAUC,cAAc,WACrBlC,aAAAA,OAAAA,SAAAA,UAAmBkC,iBAAgBlC,aAAAA,OAAAA,SAAAA,UAAmBwB,SAAQ,WAAA,KAO1DS;AACT;",
5
+ "names": ["themeable", "Component", "staticConfig", "optimize", "withThemeComponent", "React", "forwardRef", "props", "ref", "themeInverse", "theme", "componentName", "themeReset", "rest", "overriddenContextProps", "context", "key", "val", "undefined", "element", "_jsx", "data-disable-theme", "filteredProps", "compName", "debug", "name", "inverse", "reset", "contents", "Theme", "disable-child-theme", "Provider", "contextValue", "useContext", "withTheme", "displayName"]
6
6
  }
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Theme } from "../views/Theme";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function themeable(Component, staticConfig, optimize = !1) {
5
- const withTheme = function(props, ref) {
5
+ const withTheme = React.forwardRef(function(props, ref) {
6
6
  const { themeInverse, theme, componentName, themeReset, ...rest } = props;
7
7
  let overriddenContextProps;
8
8
  const context = staticConfig?.context;
@@ -25,8 +25,8 @@ function themeable(Component, staticConfig, optimize = !1) {
25
25
  contents = /* @__PURE__ */ jsx(Provider, { ...contextValue, ...overriddenContextProps, children: contents });
26
26
  }
27
27
  return contents;
28
- };
29
- return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, optimize ? withTheme : React.forwardRef(withTheme);
28
+ });
29
+ return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
30
30
  }
31
31
  export {
32
32
  themeable
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/themeable.tsx"],
4
- "mappings": "AAAA,OAAO,WAAW;AAGlB,SAAS,aAAa;AAwBhB;AAtBC,SAAS,UACd,WACA,cACA,WAAW,IACX;AA+EA,QAAM,YA9EqB,SAAmB,OAAuB,KAAK;AACxE,UAAM,EAAE,cAAc,OAAO,eAAe,YAAY,GAAG,KAAK,IAAI;AAEpE,QAAI;AACJ,UAAM,UAAU,cAAc;AAC9B,QAAI;AACF,iBAAW,OAAO,QAAQ,OAAO;AAC/B,cAAM,MAAM,MAAM,GAAG;AACrB,QAAI,QAAQ,WACV,2BAA2B,CAAC,GAC5B,uBAAuB,GAAG,IAAI;AAAA,MAElC;AAGF,UAAM;AAAA;AAAA,MAEJ,oBAAC,aAAU,KAAW,GAAG,MAAM,sBAAkB,IAAC;AAAA;AAYpD,QAAI,gBAA4C;AAEhD,UAAM,WAAW,iBAAiB,cAAc;AAsBhD,QArBI,aACF,kBAAkB,CAAC,GACnB,cAAc,gBAAgB,WAE5B,WAAW,UACb,kBAAkB,CAAC,GACnB,cAAc,QAAQ,MAAM,QAE1B,WAAW,UACb,kBAAkB,CAAC,GACnB,cAAc,OAAO,MAAM,QAEzB,kBAAkB,UACpB,kBAAkB,CAAC,GACnB,cAAc,UAAU,MAAM,eAE5B,gBAAgB,UAClB,kBAAkB,CAAC,GACnB,cAAc,QAAQ,aAGpB,YAAY,CAAC;AAGf,aAAO;AAGT,QAAI,WACF,oBAAC,SAAM,uBAAmB,IAAE,GAAG,eAC5B,mBACH;AAGF,QAAI,SAAS;AACX,YAAM,WAAW,QAAQ,UACnB,eAAe,MAAM,WAAW,O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GAAG,wBAC7B,oBACH;AAAA,IAEJ;AAEA,WAAO;AAAA,EACT,CAAC;AAGD,mBAAU,cAAc,UACrB,WAAmB,eAAgB,WAAmB,QAAQ,WACjE,KAMO;AACT;",
5
5
  "names": []
6
6
  }
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Theme } from "../views/Theme.mjs";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  function themeable(Component, staticConfig, optimize = !1) {
5
- const withTheme = function (props, ref) {
5
+ const withTheme = React.forwardRef(function (props, ref) {
6
6
  const {
7
7
  themeInverse,
8
8
  theme,
@@ -42,8 +42,8 @@ function themeable(Component, staticConfig, optimize = !1) {
42
42
  });
43
43
  }
44
44
  return contents;
45
- };
46
- return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, optimize ? withTheme : React.forwardRef(withTheme);
45
+ });
46
+ return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
47
47
  }
48
48
  export { themeable };
49
49
  //# sourceMappingURL=themeable.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Theme","jsx","themeable","Component","staticConfig","optimize","withTheme","props","ref","themeInverse","theme","componentName","themeReset","rest","overriddenContextProps","context","key","val","element","filteredProps","compName","debug","name","inverse","reset","contents","children","Provider","contextValue","useContext","displayName","forwardRef"],"sources":["../../../src/helpers/themeable.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAGlB,SAASC,KAAA,QAAa;AAwBhB,SAAAC,GAAA;AAtBC,SAASC,UACdC,SAAA,EACAC,YAAA,EACAC,QAAA,GAAW,IACX;EA+EA,MAAMC,SAAA,GA9EqB,SAAAA,CAAmBC,KAAA,EAAuBC,GAAA,EAAK;IACxE,MAAM;MAAEC,YAAA;MAAcC,KAAA;MAAOC,aAAA;MAAeC,UAAA;MAAY,GAAGC;IAAK,IAAIN,KAAA;IAEpE,IAAIO,sBAAA;IACJ,MAAMC,OAAA,GAAUX,YAAA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AxB,GAAA,CAAC0B,QAAA;QAAU,GAAGC,YAAA;QAAe,GAAGd,sBAAA;QAC7BY,QAAA,EAAAD;MAAA,CACH;IAEJ;IAEA,OAAOA,QAAA;EACT;EAWA,OARAnB,SAAA,CAAUwB,WAAA,GAAc,UACrB3B,SAAA,EAAmB2B,WAAA,IAAgB3B,SAAA,EAAmBmB,IAAA,IAAQ,WACjE,KAMIjB,QAAA,GACKC,SAAA,GAGFP,KAAA,CAAMgC,UAAA,CAAWzB,SAAS;AACnC","ignoreList":[]}
1
+ {"version":3,"names":["React","Theme","jsx","themeable","Component","staticConfig","optimize","withTheme","forwardRef","props","ref","themeInverse","theme","componentName","themeReset","rest","overriddenContextProps","context","key","val","element","filteredProps","compName","debug","name","inverse","reset","contents","children","Provider","contextValue","useContext","displayName"],"sources":["../../../src/helpers/themeable.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAGlB,SAASC,KAAA,QAAa;AA2BhB,SAAAC,GAAA;AAzBC,SAASC,UACdC,SAAA,EACAC,YAAA,EACAC,QAAA,GAAW,IACX;EAkFA,MAAMC,SAAA,GAjFqBP,KAAA,CAAMQ,UAAA,CAAW,UAC1CC,KAAA,EACAC,GAAA,EACA;IACA,MAAM;MAAEC,YAAA;MAAcC,KAAA;MAAOC,aAAA;MAAeC,UAAA;MAAY,GAAGC;IAAK,IAAIN,KAAA;IAEpE,IAAIO,sBAAA;IACJ,MAAMC,OAAA,GAAUZ,YAAA,EAAcY,OAAA;IAC9B,IAAIA,OAAA,EACF,WAAWC,GAAA,IAAOD,OAAA,CAAQR,KAAA,EAAO;MAC/B,MAAMU,GAAA,GAAMV,KAAA,CAAMS,GAAG;MACjBC,GAAA,KAAQ,WACVH,sBAAA,KAA2B,CAAC,GAC5BA,sBAAA,CAAuBE,GAAG,IAAIC,GAAA;IAElC;IAGF,MAAMC,OAAA;IAAA;IAEJ;IAAAlB,GAAA,CAACE,SAAA;MAAUM,GAAA;MAAW,GAAGK,IA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react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Theme } from "../views/Theme";
4
4
  function themeable(Component, staticConfig) {
5
- var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, withThemeComponent = function(props, ref) {
5
+ var optimize = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, withThemeComponent = /* @__PURE__ */ React.forwardRef(function(props, ref) {
6
6
  var { themeInverse, theme, componentName, themeReset, ...rest } = props, overriddenContextProps, context = staticConfig?.context;
7
7
  if (context)
8
8
  for (var key in context.props) {
@@ -33,8 +33,8 @@ function themeable(Component, staticConfig) {
33
33
  });
34
34
  }
35
35
  return contents;
36
- }, withTheme = withThemeComponent;
37
- return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, optimize ? withTheme : /* @__PURE__ */ React.forwardRef(withTheme);
36
+ }), withTheme = withThemeComponent;
37
+ return withTheme.displayName = `Themed(${Component?.displayName || Component?.name || "Anonymous"})`, withTheme;
38
38
  }
39
39
  export {
40
40
  themeable
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/helpers/Users/n8/tamagui/code/core/web/src/helpers/themeable.tsx"],
4
- "mappings": ";AAAA,OAAOA,WAAW;AAGlB,SAASC,aAAa;AAEf,SAASC,UACdC,WACAC,cAAoC;MACpCC,WAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAW,IAELC,qBAAqB,SAAmBC,OAAuBC,KAAG;AACtE,QAAM,EAAEC,cAAcC,OAAOC,eAAeC,YAAY,GAAGC,KAAAA,IAASN,OAEhEO,wBACEC,UAAUX,cAAcW;AAC9B,QAAIA;AACF,eAAWC,OAAOD,QAAQR,OAAO;AAC/B,YAAMU,MAAMV,MAAMS,GAAAA;AAClB,QAAIC,QAAQC,WACVJ,2BAAAA,yBAA2B,CAAC,IAC5BA,uBAAuBE,GAAAA,IAAOC;MAElC;AAGF,QAAME;;MAEJ,qBAAChB,WAAAA;QAAUK;QAAW,GAAGK;QAAMO,sBAAkB;;OAY/CC,gBAA4C,MAE1CC,WAAWX,iBAAiBP,cAAcO;AAsBhD,QArBIW,aACFD,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcV,gBAAgBW,WAE5B,WAAWf,UACbc,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcE,QAAQhB,MAAMgB,QAE1B,WAAWhB,UACbc,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcG,OAAOjB,MAAMG,QAEzB,kBAAkBH,UACpBc,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcI,UAAUlB,MAAME,eAE5B,gBAAgBF,UAClBc,kBAAAA,gBAAkB,CAAC,IACnBA,cAAcK,QAAQd,aAGpBP,YAAY,CAACgB;AAGf,aAAOF;AAGT,QAAIQ,WACF,qBAAC1B,OAAAA;MAAM2B,uBAAmB;MAAE,GAAGP;gBAC5BF;;AAIL,QAAIJ,SAAS;AACX,UAAMc,WAAWd,QAAQc,UACnBC,eAAe9B,MAAM+B,WAAWhB,OAAAA;AACtCY,iBACE,qBAACE,UAAAA;QAAU,GAAGC;QAAe,GAAGhB;kBAC7Ba;;IAGP;AAEA,WAAOA;EACT,GAEMK,YAAiB1B;AASvB,SARA0B,UAAUC,cAAc,UACrB9B,WAAmB8B,eAAgB9B,WAAmBqB,QAAQ,WAAA,KAO7DnB,WACK2B,YAGFhC,sBAAMkC,WAAWF,SAAAA;AAC1B;",
5
- "names": ["React", "Theme", "themeable", "Component", "staticConfig", "optimize", "withThemeComponent", "props", "ref", "themeInverse", "theme", "componentName", "themeReset", "rest", "overriddenContextProps", "context", "key", "val", "undefined", "element", "data-disable-theme", "filteredProps", "compName", "debug", "name", "inverse", "reset", "contents", "disable-child-theme", "Provider", "contextValue", "useContext", "withTheme", "displayName", "forwardRef"]
4
+ "mappings": ";AAAA,OAAOA,WAAW;AAGlB,SAASC,aAAa;AAEf,SAASC,UACdC,WACAC,cAAoC;MACpCC,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AmB+B,eAAgB/B,WAAmBsB,QAAQ,WAAA,KAO1DQ;AACT;",
5
+ "names": ["React", "Theme", "themeable", "Component", "staticConfig", "optimize", "withThemeComponent", "forwardRef", "props", "ref", "themeInverse", "theme", "componentName", "themeReset", "rest", "overriddenContextProps", "context", "key", "val", "undefined", "element", "data-disable-theme", "filteredProps", "compName", "debug", "name", "inverse", "reset", "contents", "disable-child-theme", "Provider", "contextValue", "useContext", "withTheme", "displayName"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.123.12",
3
+ "version": "1.123.13",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,22 +27,22 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.123.12",
31
- "@tamagui/constants": "1.123.12",
32
- "@tamagui/helpers": "1.123.12",
33
- "@tamagui/normalize-css-color": "1.123.12",
34
- "@tamagui/timer": "1.123.12",
35
- "@tamagui/types": "1.123.12",
36
- "@tamagui/use-did-finish-ssr": "1.123.12",
37
- "@tamagui/use-event": "1.123.12",
38
- "@tamagui/use-force-update": "1.123.12"
30
+ "@tamagui/compose-refs": "1.123.13",
31
+ "@tamagui/constants": "1.123.13",
32
+ "@tamagui/helpers": "1.123.13",
33
+ "@tamagui/normalize-css-color": "1.123.13",
34
+ "@tamagui/timer": "1.123.13",
35
+ "@tamagui/types": "1.123.13",
36
+ "@tamagui/use-did-finish-ssr": "1.123.13",
37
+ "@tamagui/use-event": "1.123.13",
38
+ "@tamagui/use-force-update": "1.123.13"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "*",
42
42
  "react-dom": "*"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "1.123.12",
45
+ "@tamagui/build": "1.123.13",
46
46
  "@testing-library/react": "^16.1.0",
47
47
  "csstype": "^3.0.10",
48
48
  "react": "*",
@@ -8,7 +8,10 @@ export function themeable<ComponentType extends (props: any) => any>(
8
8
  staticConfig?: Partial<StaticConfig>,
9
9
  optimize = false
10
10
  ) {
11
- const withThemeComponent = function WithTheme(props: ThemeableProps, ref) {
11
+ const withThemeComponent = React.forwardRef(function WithTheme(
12
+ props: ThemeableProps,
13
+ ref
14
+ ) {
12
15
  const { themeInverse, theme, componentName, themeReset, ...rest } = props
13
16
 
14
17
  let overriddenContextProps: Object | undefined
@@ -84,7 +87,7 @@ export function themeable<ComponentType extends (props: any) => any>(
84
87
  }
85
88
 
86
89
  return contents
87
- }
90
+ })
88
91
 
89
92
  const withTheme: any = withThemeComponent
90
93
  withTheme.displayName = `Themed(${
@@ -95,5 +98,5 @@ export function themeable<ComponentType extends (props: any) => any>(
95
98
  ? (props: Omit<P, 'theme' | 'themeInverse'> & ThemeableProps) => R
96
99
  : unknown
97
100
 
98
- return React.forwardRef(withTheme) as FinalComponentType
101
+ return withTheme as FinalComponentType
99
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"themeable.d.ts","sourceRoot":"","sources":["../../src/helpers/themeable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAc,MAAM,UAAU,CAAA;AAGxE,wBAAgB,SAAS,CAAC,aAAa,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,EACjE,SAAS,EAAE,aAAa,EACxB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EACpC,QAAQ,UAAQ,iCAqFwC,MAAM,CAAC,KAAK,MAAM,CAAC,WAC/D,IAAI,CAAC,CAAC,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG,cAAc,KAAK,CAAC,WAQrE"}
1
+ {"version":3,"file":"themeable.d.ts","sourceRoot":"","sources":["../../src/helpers/themeable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAc,MAAM,UAAU,CAAA;AAGxE,wBAAgB,SAAS,CAAC,aAAa,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,EACjE,SAAS,EAAE,aAAa,EACxB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EACpC,QAAQ,UAAQ,iCAwFwC,MAAM,CAAC,KAAK,MAAM,CAAC,WAC/D,IAAI,CAAC,CAAC,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG,cAAc,KAAK,CAAC,WAIrE"}