tamagui 1.79.0 → 1.79.2

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.
@@ -2720,7 +2720,7 @@ var require_propMapper_native = __commonJS({
2720
2720
  fontSize: "size",
2721
2721
  fontWeight: "weight"
2722
2722
  }, lastFontFamilyToken = null, getTokenForKey = (key, value, resolveAs = "none", styleState) => {
2723
- var _a, _b;
2723
+ var _a, _b, _c;
2724
2724
  if (resolveAs === "none")
2725
2725
  return value;
2726
2726
  let { theme, conf = (0, import_config.getConfig)(), context, fontFamily } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1;
@@ -2731,7 +2731,7 @@ var require_propMapper_native = __commonJS({
2731
2731
  else {
2732
2732
  switch (key) {
2733
2733
  case "fontFamily": {
2734
- valOrVar = ((_a = (context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed)[value]) == null ? void 0 : _a.family) || value, lastFontFamilyToken = value, hasSet = !0;
2734
+ valOrVar = ((_b = (context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed)[value]) == null ? void 0 : _b.family) || value, lastFontFamilyToken = value, hasSet = !0;
2735
2735
  break;
2736
2736
  }
2737
2737
  case "fontSize":
@@ -2741,7 +2741,7 @@ var require_propMapper_native = __commonJS({
2741
2741
  let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
2742
2742
  if (fam) {
2743
2743
  let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
2744
- valOrVar = ((_b = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _b[value]) || value, hasSet = !0;
2744
+ valOrVar = ((_c = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _c[value]) || value, hasSet = !0;
2745
2745
  }
2746
2746
  break;
2747
2747
  }
@@ -2764,7 +2764,7 @@ var require_propMapper_native = __commonJS({
2764
2764
  if ((0, import_createVariable.isVariable)(valOrVar)) {
2765
2765
  if (resolveValues === "value")
2766
2766
  return valOrVar.val;
2767
- let get = valOrVar.get;
2767
+ let get = valOrVar == null ? void 0 : valOrVar.get;
2768
2768
  return key !== "shadowColor" && typeof get == "function" ? get(resolveValues === "web" ? "web" : void 0) : valOrVar.val;
2769
2769
  }
2770
2770
  return valOrVar;
@@ -4000,6 +4000,7 @@ var require_createComponent_native = __commonJS({
4000
4000
  componentName,
4001
4001
  disable: disableTheme,
4002
4002
  shallow: stateRef.current.themeShallow,
4003
+ inverse: props.themeInverse,
4003
4004
  debug: debugProp
4004
4005
  };
4005
4006
  typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated;
@@ -11594,7 +11595,8 @@ var require_Button_native = __commonJS({
11594
11595
  letterSpacing: void 0,
11595
11596
  maxFontSizeMultiplier: void 0,
11596
11597
  size: void 0,
11597
- textAlign: void 0
11598
+ textAlign: void 0,
11599
+ variant: void 0
11598
11600
  }), BUTTON_NAME = "Button", ButtonFrame = (0, import_web.styled)(import_stacks3.ThemeableStack, {
11599
11601
  name: BUTTON_NAME,
11600
11602
  tag: "button",
@@ -11707,9 +11709,9 @@ var require_Button_native = __commonJS({
11707
11709
  noTextWrap,
11708
11710
  fontFamily,
11709
11711
  fontSize
11710
- } = 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)({
11712
+ } = propsActive, size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), color = propsActive.color, iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({
11711
11713
  size: iconSize,
11712
- color: propsActive.color
11714
+ color
11713
11715
  }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = noTextWrap ? [propsIn.children] : (0, import_text2.wrapChildrenInText)(
11714
11716
  Text3,
11715
11717
  { children: propsIn.children, fontFamily, fontSize, textProps },
@@ -14927,11 +14929,19 @@ var require_Popover_native = __commonJS({
14927
14929
  })
14928
14930
  );
14929
14931
  function PopoverRepropagateContext(props) {
14930
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, { ...props.popperContext, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, { ...props.context, children: props.children }) });
14932
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, { scope: props.scope, ...props.popperContext, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, { ...props.context, children: props.children }) });
14931
14933
  }
14932
14934
  function PopoverContentPortal(props) {
14933
14935
  let { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core13.useThemeName)(), contents = props.children;
14934
- return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverRepropagateContext, { popperContext, context, children: props.children })), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_core13.Theme, { name: themeName, children: [
14936
+ return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14937
+ PopoverRepropagateContext,
14938
+ {
14939
+ scope: __scopePopover || POPOVER_SCOPE,
14940
+ popperContext,
14941
+ context,
14942
+ children: props.children
14943
+ }
14944
+ )), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_core13.Theme, { name: themeName, children: [
14935
14945
  !!context.open && !context.breakpointActive && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14936
14946
  import_stacks3.YStack,
14937
14947
  {