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.
package/dist/native.js CHANGED
@@ -10333,6 +10333,9 @@ var require_getExpandedShorthands_native = __commonJS({
10333
10333
  }), mod);
10334
10334
  }, getExpandedShorthands_exports = {};
10335
10335
  __export2(getExpandedShorthands_exports, {
10336
+ getExpandedShorthand: function() {
10337
+ return getExpandedShorthand;
10338
+ },
10336
10339
  getExpandedShorthands: function() {
10337
10340
  return getExpandedShorthands;
10338
10341
  }
@@ -10346,6 +10349,10 @@ var require_getExpandedShorthands_native = __commonJS({
10346
10349
  for (var key in props) res[shorthands[key] || key] = props[key];
10347
10350
  return res;
10348
10351
  }
10352
+ function getExpandedShorthand(propKey, props) {
10353
+ var shorthands = (0, import_config.getConfig)().inverseShorthands, _props_propKey;
10354
+ return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
10355
+ }
10349
10356
  }
10350
10357
  });
10351
10358
 
@@ -19455,6 +19462,7 @@ var require_Dialog_native = __commonJS({
19455
19462
  return isAdapted ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
19456
19463
  children: content
19457
19464
  }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, {
19465
+ hostName: context.adaptName,
19458
19466
  children: content
19459
19467
  });
19460
19468
  }, DialogPortal = function(props) {
@@ -19462,10 +19470,10 @@ var require_Dialog_native = __commonJS({
19462
19470
  isShowing && isFullyHidden && setIsFullyHidden(!1);
19463
19471
  var handleExitComplete = React4.useCallback(function() {
19464
19472
  setIsFullyHidden(!0);
19465
- }, []);
19473
+ }, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props);
19466
19474
  if (context.modal) {
19467
19475
  var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
19468
- zIndex: (0, import_portal2.resolveViewZIndex)(props.zIndex),
19476
+ zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
19469
19477
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
19470
19478
  onExitComplete: handleExitComplete,
19471
19479
  children: isShowing || isAdapted ? children : null
@@ -19482,7 +19490,7 @@ var require_Dialog_native = __commonJS({
19482
19490
  })
19483
19491
  });
19484
19492
  return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
19485
- zIndex: props.zIndex,
19493
+ zIndex,
19486
19494
  // set to 1000 which "boosts" it 1000 above baseline for current context
19487
19495
  // this makes sure its above (this first 1k) popovers on the same layer
19488
19496
  stackZIndex: 1e3,
@@ -19566,8 +19574,8 @@ var require_Dialog_native = __commonJS({
19566
19574
  });
19567
19575
  })), DialogContentModal = /* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
19568
19576
  var { children, context, ...props } = param, contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.contentRef, contentRef);
19569
- return import_constants4.isWeb && React4.useEffect(function() {
19570
- if (context.open) {
19577
+ return React4.useEffect(function() {
19578
+ if (import_constants4.isWeb && context.open) {
19571
19579
  var content = contentRef.current;
19572
19580
  if (content) return (0, import_aria_hidden.hideOthers)(content);
19573
19581
  }
@@ -19785,7 +19793,8 @@ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it wi
19785
19793
  onOpenToggle,
19786
19794
  modal,
19787
19795
  allowPinchZoom,
19788
- disableRemoveScroll
19796
+ disableRemoveScroll,
19797
+ adaptName
19789
19798
  };
19790
19799
  return React4.useImperativeHandle(ref, function() {
19791
19800
  return {