tamagui 1.74.7 → 1.74.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.
@@ -11342,8 +11342,7 @@ var require_Button_native = __commonJS({
11342
11342
  Icon: ButtonIcon
11343
11343
  }), ButtonNestingContext = (0, import_react2.createContext)(!1);
11344
11344
  function useButton(propsIn, { Text: Text3 = Button2.Text } = { Text: Button2.Text }) {
11345
- let isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), {
11346
- children,
11345
+ let isNested = (0, import_react2.useContext)(ButtonNestingContext), didFinishSSR = (0, import_web.useDidFinishSSR)(), propsActive = (0, import_web.useProps)(propsIn), {
11347
11346
  icon,
11348
11347
  iconAfter,
11349
11348
  space,
@@ -11353,15 +11352,14 @@ var require_Button_native = __commonJS({
11353
11352
  separator,
11354
11353
  noTextWrap,
11355
11354
  fontFamily,
11356
- fontSize,
11357
- ...rest
11355
+ fontSize
11358
11356
  } = propsActive, size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
11359
11357
  size: iconSize,
11360
11358
  color: propsActive.color
11361
- }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = propsActive.space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = noTextWrap ? [children] : (0, import_text2.wrapChildrenInText)(
11359
+ }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = noTextWrap ? [propsIn.children] : (0, import_text2.wrapChildrenInText)(
11362
11360
  Text3,
11363
- { children, fontFamily, fontSize },
11364
- Text3 === ButtonText && propsIn.unstyled !== !0 ? {
11361
+ { children: propsIn.children, fontFamily, fontSize },
11362
+ Text3 === ButtonText && propsActive.unstyled !== !0 ? {
11365
11363
  unstyled: !1,
11366
11364
  size: size2
11367
11365
  } : void 0
@@ -11375,10 +11373,10 @@ var require_Button_native = __commonJS({
11375
11373
  }), tag = isNested ? "span" : (
11376
11374
  // defaults to <a /> when accessibilityRole = link
11377
11375
  // see https://github.com/tamagui/tamagui/issues/505
11378
- propsIn.accessibilityRole === "link" ? "a" : void 0
11379
- ), props = {
11376
+ propsActive.accessibilityRole === "link" ? "a" : void 0
11377
+ ), { iconAfter: _1, icon: _2, noTextWrap: _3, ...restProps } = propsIn, props = {
11380
11378
  size: size2,
11381
- ...propsActive.disabled && {
11379
+ ...propsIn.disabled && {
11382
11380
  // in rnw - false still has keyboard tabIndex, undefined = not actually focusable
11383
11381
  focusable: void 0,
11384
11382
  // even with tabIndex unset, it will keep focusStyle on web so disable it here
@@ -11389,10 +11387,10 @@ var require_Button_native = __commonJS({
11389
11387
  ...tag && {
11390
11388
  tag
11391
11389
  },
11392
- ...rest,
11390
+ ...restProps,
11393
11391
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ButtonNestingContext.Provider, { value: !0, children: inner }),
11394
11392
  // forces it to be a runtime pressStyle so it passes through context text colors
11395
- disableClassName: !0
11393
+ disableClassName: didFinishSSR
11396
11394
  };
11397
11395
  return {
11398
11396
  spaceSize,