tamagui 1.125.28 → 1.125.29-1742879698913

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.
@@ -9758,6 +9758,9 @@ var require_getExpandedShorthands_native = __commonJS({
9758
9758
  }), mod);
9759
9759
  }, getExpandedShorthands_exports = {};
9760
9760
  __export2(getExpandedShorthands_exports, {
9761
+ getExpandedShorthand: function() {
9762
+ return getExpandedShorthand;
9763
+ },
9761
9764
  getExpandedShorthands: function() {
9762
9765
  return getExpandedShorthands;
9763
9766
  }
@@ -9771,6 +9774,10 @@ var require_getExpandedShorthands_native = __commonJS({
9771
9774
  for (var key in props) res[shorthands[key] || key] = props[key];
9772
9775
  return res;
9773
9776
  }
9777
+ function getExpandedShorthand(propKey, props) {
9778
+ var shorthands = (0, import_config.getConfig)().inverseShorthands, _props_propKey;
9779
+ return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
9780
+ }
9774
9781
  }
9775
9782
  });
9776
9783
 
@@ -18848,6 +18855,7 @@ var require_Dialog_native = __commonJS({
18848
18855
  return isAdapted ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
18849
18856
  children: content
18850
18857
  }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, {
18858
+ hostName: context.adaptName,
18851
18859
  children: content
18852
18860
  });
18853
18861
  }, DialogPortal = function(props) {
@@ -18855,10 +18863,10 @@ var require_Dialog_native = __commonJS({
18855
18863
  isShowing && isFullyHidden && setIsFullyHidden(!1);
18856
18864
  var handleExitComplete = React4.useCallback(function() {
18857
18865
  setIsFullyHidden(!0);
18858
- }, []);
18866
+ }, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props);
18859
18867
  if (context.modal) {
18860
18868
  var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
18861
- zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
18869
+ zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
18862
18870
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
18863
18871
  onExitComplete: handleExitComplete,
18864
18872
  children: isShowing || isAdapted ? children : null
@@ -18875,7 +18883,7 @@ var require_Dialog_native = __commonJS({
18875
18883
  })
18876
18884
  });
18877
18885
  return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
18878
- zIndex: props.zIndex,
18886
+ zIndex,
18879
18887
  // set to 1000 which "boosts" it 1000 above baseline for current context
18880
18888
  // this makes sure its above (this first 1k) popovers on the same layer
18881
18889
  stackZIndex: 1e3,
@@ -18959,8 +18967,8 @@ var require_Dialog_native = __commonJS({
18959
18967
  });
18960
18968
  })), DialogContentModal = /* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
18961
18969
  var { children, context, ...props } = param, contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.contentRef, contentRef);
18962
- return import_constants4.isWeb && React4.useEffect(function() {
18963
- if (context.open) {
18970
+ return React4.useEffect(function() {
18971
+ if (import_constants4.isWeb && context.open) {
18964
18972
  var content = contentRef.current;
18965
18973
  if (content) return (0, import_aria_hidden.hideOthers)(content);
18966
18974
  }
@@ -19129,7 +19137,8 @@ var require_Dialog_native = __commonJS({
19129
19137
  onOpenToggle,
19130
19138
  modal,
19131
19139
  allowPinchZoom,
19132
- disableRemoveScroll
19140
+ disableRemoveScroll,
19141
+ adaptName
19133
19142
  };
19134
19143
  return React4.useImperativeHandle(ref, function() {
19135
19144
  return {