tamagui 1.88.4 → 1.88.6

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/dist/native.js CHANGED
@@ -6059,7 +6059,7 @@ var require_internalWithTheme_native = __commonJS({
6059
6059
  module2.exports = __toCommonJS2(internalWithTheme_exports);
6060
6060
  var import_useTheme = require_useTheme_native(), import_jsx_runtime6 = require("react/jsx-runtime"), internalWithTheme = (Component, styleProvider) => (props) => {
6061
6061
  let { expressions, ...rest } = props, theme = (0, import_useTheme.useTheme)();
6062
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Component, { style: styleProvider(theme, props.expressions), ...rest });
6062
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Component, { style: styleProvider(theme, expressions), ...rest });
6063
6063
  };
6064
6064
  }
6065
6065
  });
@@ -11857,7 +11857,7 @@ var require_getFontSize_native = __commonJS({
11857
11857
  }, getFontSizeToken = (inSize, opts) => {
11858
11858
  if (typeof inSize == "number")
11859
11859
  return null;
11860
- let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core13.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, size2 = (inSize === "$true" ? "$4" : inSize) || ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
11860
+ let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core13.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, size2 = (inSize === "$true" && !("$true" in fontSize) ? "$4" : inSize) ?? ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
11861
11861
  foundIndex === -1 && size2.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size2.replace(".5", ""))), process.env.NODE_ENV === "development" && foundIndex === -1 && console.warn("No font size found", size2, opts, "in size tokens", sizeTokens);
11862
11862
  let tokenIndex = Math.min(
11863
11863
  Math.max(0, foundIndex + relativeSize),
@@ -16842,7 +16842,8 @@ var require_SelectItem_native = __commonJS({
16842
16842
  pressTheme: !0,
16843
16843
  hoverTheme: !0,
16844
16844
  cursor: "default",
16845
- size: size2
16845
+ size: size2,
16846
+ outlineOffset: -1
16846
16847
  },
16847
16848
  ...listItemProps,
16848
16849
  ...selectItemProps
@@ -18211,11 +18212,12 @@ var require_createSwitch_native = __commonJS({
18211
18212
  // @ts-ignore
18212
18213
  require("react/jsx-runtime")
18213
18214
  );
18214
- function createSwitch({
18215
- disableActiveTheme,
18216
- Frame = import_Switch.SwitchFrame,
18217
- Thumb = import_Switch.SwitchThumb
18218
- }) {
18215
+ function createSwitch(createProps) {
18216
+ let {
18217
+ disableActiveTheme,
18218
+ Frame = import_Switch.SwitchFrame,
18219
+ Thumb = import_Switch.SwitchThumb
18220
+ } = createProps;
18219
18221
  process.env.NODE_ENV === "development" && (Frame !== import_Switch.SwitchFrame && Frame.staticConfig.context && console.warn(
18220
18222
  "Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."
18221
18223
  ), Thumb !== import_Switch.SwitchThumb && Thumb.staticConfig.context && console.warn(
@@ -18424,9 +18426,7 @@ var require_index_native63 = __commonJS({
18424
18426
  __reExport2(src_exports2, require_SwitchContext_native(), module2.exports);
18425
18427
  __reExport2(src_exports2, require_createSwitch_native(), module2.exports);
18426
18428
  var Switch = (0, import_createSwitch.createSwitch)({
18427
- // @ts-ignore
18428
18429
  Frame: import_Switch.SwitchFrame,
18429
- // @ts-ignore
18430
18430
  Thumb: import_Switch.SwitchThumb
18431
18431
  });
18432
18432
  }