tamagui 1.130.8 → 1.131.0

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
@@ -3227,7 +3227,7 @@ var require_useMedia_native = __commonJS({
3227
3227
  internalRef.current || (internalRef.current = {
3228
3228
  keys: /* @__PURE__ */ new Set()
3229
3229
  });
3230
- var { keys, lastState = (0, import_config.getSetting)("disableSSR") ? mediaState3 : initState } = internalRef.current;
3230
+ var { keys, lastState = mediaState3 } = internalRef.current;
3231
3231
  keys.size && keys.clear();
3232
3232
  var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
3233
3233
  if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState3, mediaState3;
@@ -3816,13 +3816,15 @@ var require_createStyledContext_native = __commonJS({
3816
3816
  module2.exports = __toCommonJS2(createStyledContext_exports);
3817
3817
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_objectIdentityKey = require_objectIdentityKey_native(), createReactContext = import_react3.default[Math.random(), "createContext"];
3818
3818
  function createStyledContext2(defaultValues) {
3819
- var OGContext = createReactContext(defaultValues), OGProvider2 = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map();
3819
+ var namespace = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", OGContext = createReactContext(defaultValues), OGProvider2 = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), LastScopeInNamespace = createReactContext(namespace);
3820
3820
  function getOrCreateScopedContext(scope) {
3821
3821
  var ScopedContext = scopedContexts.get(scope);
3822
3822
  return ScopedContext || (ScopedContext = createReactContext(defaultValues), scopedContexts.set(scope, ScopedContext)), ScopedContext;
3823
3823
  }
3824
- var Provider = function(param) {
3825
- var { children, scope, ...values } = param, next = import_react3.default.useMemo(function() {
3824
+ var getNamespacedScope = function(scope) {
3825
+ return namespace ? `${namespace}--${scope}` : scope;
3826
+ }, Provider = function(param) {
3827
+ var { children, scope: scopeIn, ...values } = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
3826
3828
  return {
3827
3829
  // this ! is a workaround for ts error
3828
3830
  ...defaultValues,
@@ -3831,13 +3833,16 @@ var require_createStyledContext_native = __commonJS({
3831
3833
  }, [
3832
3834
  (0, import_objectIdentityKey.objectIdentityKey)(values)
3833
3835
  ]), Provider22 = OGProvider2;
3834
- return scope && (Provider22 = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider22, {
3835
- value: next,
3836
- children
3836
+ return scope && (Provider22 = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastScopeInNamespace.Provider, {
3837
+ value: scope,
3838
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider22, {
3839
+ value: next,
3840
+ children
3841
+ })
3837
3842
  });
3838
- }, useStyledContext = function(scope) {
3839
- var context = scope ? getOrCreateScopedContext(scope) : OGContext;
3840
- return import_react3.default.useContext(context);
3843
+ }, useStyledContext = function() {
3844
+ var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext, value = import_react3.default.useContext(context);
3845
+ return value;
3841
3846
  };
3842
3847
  return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
3843
3848
  }
@@ -14300,10 +14305,10 @@ var require_Collection_native = __commonJS({
14300
14305
  current: void 0
14301
14306
  },
14302
14307
  itemMap: /* @__PURE__ */ new Map()
14303
- }), CollectionProvider = function(props) {
14304
- var { __scopeCollection, children } = props, ref = import_react3.default.useRef(void 0), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
14308
+ }, "Toast"), CollectionProvider = function(props) {
14309
+ var { scope, children } = props, ref = import_react3.default.useRef(void 0), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
14305
14310
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CollectionProviderImpl, {
14306
- scope: __scopeCollection,
14311
+ scope,
14307
14312
  itemMap,
14308
14313
  collectionRef: ref,
14309
14314
  children
@@ -14311,7 +14316,7 @@ var require_Collection_native = __commonJS({
14311
14316
  };
14312
14317
  CollectionProvider.displayName = "CollectionProvider";
14313
14318
  var COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
14314
- var { __scopeCollection, children } = props, context = useCollectionContext(__scopeCollection), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
14319
+ var { scope, children } = props, context = useCollectionContext(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
14315
14320
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Slot, {
14316
14321
  ref: composedRefs,
14317
14322
  children
@@ -14319,7 +14324,7 @@ var require_Collection_native = __commonJS({
14319
14324
  });
14320
14325
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
14321
14326
  var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
14322
- var { __scopeCollection, children, ...itemData } = props, ref = import_react3.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(__scopeCollection);
14327
+ var { scope, children, ...itemData } = props, ref = import_react3.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(scope);
14323
14328
  return import_react3.default.useEffect(function() {
14324
14329
  return context.itemMap.set(ref, {
14325
14330
  ref,
@@ -14334,8 +14339,8 @@ var require_Collection_native = __commonJS({
14334
14339
  });
14335
14340
  });
14336
14341
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
14337
- function useCollection(__scopeCollection) {
14338
- var context = useCollectionContext(__scopeCollection), getItems = import_react3.default.useCallback(function() {
14342
+ function useCollection(scope) {
14343
+ var context = useCollectionContext(scope), getItems = import_react3.default.useCallback(function() {
14339
14344
  if (!import_constants4.isWeb) return [];
14340
14345
  var collectionNode = context.collectionRef.current;
14341
14346
  if (!collectionNode) return [];
@@ -15852,7 +15857,7 @@ var require_Accordion_native = __commonJS({
15852
15857
  ], [Collection, useCollection] = (0, import_collection.createCollection)(ACCORDION_NAME), ACCORDION_CONTEXT = "Accordion", AccordionComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
15853
15858
  var { type, ...accordionProps } = props, singleProps = accordionProps, multipleProps = accordionProps;
15854
15859
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.Provider, {
15855
- __scopeCollection: props.__scopeAccordion || ACCORDION_CONTEXT,
15860
+ scope: props.__scopeAccordion || ACCORDION_CONTEXT,
15856
15861
  children: type === "multiple" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionImplMultiple, {
15857
15862
  ...multipleProps,
15858
15863
  ref: forwardedRef
@@ -15988,7 +15993,7 @@ var require_Accordion_native = __commonJS({
15988
15993
  direction: dir,
15989
15994
  orientation,
15990
15995
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.Slot, {
15991
- __scopeCollection: __scopeAccordion || ACCORDION_CONTEXT,
15996
+ scope: __scopeAccordion || ACCORDION_CONTEXT,
15992
15997
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
15993
15998
  "data-orientation": orientation,
15994
15999
  ref: composedRef,
@@ -16059,7 +16064,7 @@ var require_Accordion_native = __commonJS({
16059
16064
  }), AccordionTrigger = AccordionTriggerFrame.styleable(function(props, forwardedRef) {
16060
16065
  var { __scopeAccordion, ...triggerProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
16061
16066
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.ItemSlot, {
16062
- __scopeCollection: __scopeAccordion || ACCORDION_CONTEXT,
16067
+ scope: __scopeAccordion || ACCORDION_CONTEXT,
16063
16068
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionTriggerFrame, {
16064
16069
  // @ts-ignore
16065
16070
  __scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT,
@@ -16643,7 +16648,7 @@ var require_GorhomPortal_native = __commonJS({
16643
16648
  });
16644
16649
  });
16645
16650
  function PortalHostWeb(props) {
16646
- return (0, import_react3.useEffect)(function() {
16651
+ return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
16647
16652
  return function() {
16648
16653
  import_constants22.allPortalHosts.delete(props.name);
16649
16654
  };
@@ -16665,7 +16670,7 @@ var require_GorhomPortal_native = __commonJS({
16665
16670
  }
16666
16671
  function PortalHostNonNative(props) {
16667
16672
  var { name, forwardProps, render = defaultRenderer } = props, state = usePortalState(name), { registerHost: registerHost2, deregisterHost: deregisterHost2 } = usePortal(props.name);
16668
- return (0, import_react3.useEffect)(function() {
16673
+ return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
16669
16674
  if (!(typeof window > "u")) return registerHost2(), function() {
16670
16675
  deregisterHost2();
16671
16676
  };
@@ -17067,7 +17072,7 @@ var require_Adapt_native = __commonJS({
17067
17072
  }
17068
17073
  });
17069
17074
  module2.exports = __toCommonJS2(Adapt_exports);
17070
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_z_index_stack2 = require_index_native29(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_react3 = __toESM2(require("react")), CurrentAdaptContextScope = /* @__PURE__ */ (0, import_react3.createContext)(""), AdaptContext = (0, import_core12.createStyledContext)({
17075
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_z_index_stack2 = require_index_native29(), import_react3 = __toESM2(require("react")), AdaptContext = (0, import_core12.createStyledContext)({
17071
17076
  Contents: null,
17072
17077
  scopeName: "",
17073
17078
  portalName: "",
@@ -17078,42 +17083,56 @@ var require_Adapt_native = __commonJS({
17078
17083
  setChildren: null,
17079
17084
  setWhen: function() {
17080
17085
  }
17081
- }), ProvideAdaptContext = function(param) {
17082
- var { children, ...context } = param, scope = context.scopeName || "";
17083
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CurrentAdaptContextScope.Provider, {
17084
- value: scope,
17086
+ }), LastAdaptContextScope = /* @__PURE__ */ (0, import_react3.createContext)(""), ProvideAdaptContext = function(param) {
17087
+ var { children, ...context } = param, scope = context.scopeName || "", lastScope = (0, import_react3.useContext)(LastAdaptContextScope);
17088
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope.Provider, {
17089
+ value: lastScope || context.lastScope || "",
17085
17090
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AdaptContext.Provider, {
17086
17091
  scope,
17092
+ lastScope: lastScope || context.lastScope,
17087
17093
  ...context,
17088
17094
  children
17089
17095
  })
17090
17096
  });
17091
- }, useAdaptContext = function() {
17092
- var scope = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", contextScope = (0, import_react3.useContext)(CurrentAdaptContextScope), context = AdaptContext.useStyledContext(scope === "" && contextScope || scope);
17093
- return context;
17097
+ }, useAdaptContext = function(scope) {
17098
+ var lastScope = (0, import_react3.useContext)(LastAdaptContextScope), adaptScope = scope ?? lastScope;
17099
+ return AdaptContext.useStyledContext(adaptScope);
17094
17100
  }, AdaptPortals = /* @__PURE__ */ new Map(), AdaptParent = function(param) {
17095
- var { children, Contents, scope, portal } = param, portalName = `AdaptPortal${scope}`, id = (0, import_react3.useId)(), FinalContents = Contents || AdaptPortals.get(id);
17096
- FinalContents || (FinalContents = function() {
17097
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, {
17098
- name: portalName,
17099
- forwardProps: typeof portal == "boolean" || portal == null ? void 0 : portal.forwardProps
17100
- });
17101
- }, AdaptPortals.set(id, FinalContents)), (0, import_react3.useEffect)(function() {
17102
- return function() {
17103
- AdaptPortals.delete(id);
17101
+ var { children, Contents, scope, portal } = param, id = (0, import_react3.useId)(), portalName = `AdaptPortal${scope}${id}`, FinalContents = (0, import_react3.useMemo)(function() {
17102
+ if (Contents) return Contents;
17103
+ if (AdaptPortals.has(portalName)) return AdaptPortals.get(portalName);
17104
+ var element = function() {
17105
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, {
17106
+ name: portalName,
17107
+ forwardProps: typeof portal == "boolean" || portal == null ? void 0 : portal.forwardProps
17108
+ }, id);
17104
17109
  };
17105
- }, []);
17106
- var [when, setWhen] = import_react3.default.useState(null), [platform2, setPlatform] = import_react3.default.useState(null), [children2, setChildren] = import_react3.default.useState(null);
17107
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
17108
- Contents: FinalContents,
17109
- when,
17110
- platform: platform2,
17111
- setPlatform,
17112
- setWhen,
17113
- setChildren,
17110
+ return AdaptPortals.set(portalName, element), element;
17111
+ }, [
17114
17112
  portalName,
17115
- scopeName: scope,
17116
- children
17113
+ Contents
17114
+ ]);
17115
+ (0, import_constants4.useIsomorphicLayoutEffect)(function() {
17116
+ return AdaptPortals.set(portalName, FinalContents), function() {
17117
+ AdaptPortals.delete(portalName);
17118
+ };
17119
+ }, [
17120
+ portalName
17121
+ ]);
17122
+ var [when, setWhen] = import_react3.default.useState(null), [platform2, setPlatform] = import_react3.default.useState(null), [children2, setChildren] = import_react3.default.useState(null);
17123
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope, {
17124
+ value: scope,
17125
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
17126
+ Contents: FinalContents,
17127
+ when,
17128
+ platform: platform2,
17129
+ setPlatform,
17130
+ setWhen,
17131
+ setChildren,
17132
+ portalName,
17133
+ scopeName: scope,
17134
+ children
17135
+ })
17117
17136
  });
17118
17137
  }, AdaptContents = function(param) {
17119
17138
  var { scope, ...rest } = param, context = useAdaptContext(scope);
@@ -17125,7 +17144,7 @@ var require_Adapt_native = __commonJS({
17125
17144
  };
17126
17145
  AdaptContents.shouldForwardSpace = !0;
17127
17146
  var Adapt = (0, import_helpers.withStaticProperties)(function(props) {
17128
- var { platform: platform2, when, children, scope } = props, context = useAdaptContext(scope), scopeName = scope ?? context.scopeName, enabled = useAdaptIsActiveGiven(props);
17147
+ var { platform: platform2, when, children, scope } = props, context = useAdaptContext(scope), enabled = useAdaptIsActiveGiven(props);
17129
17148
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
17130
17149
  var _context_setWhen, _context_setPlatform;
17131
17150
  context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, when || enabled), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, platform2 || null);
@@ -17151,10 +17170,7 @@ var require_Adapt_native = __commonJS({
17151
17170
  }, [
17152
17171
  output
17153
17172
  ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
17154
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CurrentAdaptContextScope.Provider, {
17155
- value: scopeName,
17156
- children: enabled ? output : null
17157
- })
17173
+ children: enabled ? output : null
17158
17174
  });
17159
17175
  }, {
17160
17176
  Contents: AdaptContents
@@ -17168,6 +17184,7 @@ var require_Adapt_native = __commonJS({
17168
17184
  }, useAdaptIsActiveGiven = function(param) {
17169
17185
  var { when, platform: platform2 } = param, media = (0, import_core12.useMedia)();
17170
17186
  if (when == null && platform2 == null) return !1;
17187
+ if (when === !0) return !0;
17171
17188
  var enabled = !1;
17172
17189
  return platform2 === "touch" ? enabled = import_constants4.isTouchable : platform2 === "native" ? enabled = !import_constants4.isWeb : platform2 === "web" ? enabled = import_constants4.isWeb : platform2 === "ios" ? enabled = import_constants4.isIos : platform2 === "android" && (enabled = import_constants4.isAndroid), platform2 && enabled == !1 ? !1 : (when && typeof when == "string" && (enabled = media[when]), enabled);
17173
17190
  }, useAdaptIsActive = function(scope) {
@@ -17216,6 +17233,93 @@ var require_index_native31 = __commonJS({
17216
17233
  }
17217
17234
  });
17218
17235
 
17236
+ // ../../core/aria-hidden/dist/cjs/AriaHidden.native.js
17237
+ var require_AriaHidden_native = __commonJS({
17238
+ "../../core/aria-hidden/dist/cjs/AriaHidden.native.js"(exports2, module2) {
17239
+ "use strict";
17240
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
17241
+ for (var name in all) __defProp2(target, name, {
17242
+ get: all[name],
17243
+ enumerable: !0
17244
+ });
17245
+ }, __copyProps2 = function(to, from, except, desc) {
17246
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
17247
+ if (from && typeof from == "object" || typeof from == "function") try {
17248
+ for (var _loop = function() {
17249
+ var key = _step.value;
17250
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
17251
+ get: function() {
17252
+ return from[key];
17253
+ },
17254
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
17255
+ });
17256
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
17257
+ } catch (err) {
17258
+ _didIteratorError = !0, _iteratorError = err;
17259
+ } finally {
17260
+ try {
17261
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
17262
+ } finally {
17263
+ if (_didIteratorError)
17264
+ throw _iteratorError;
17265
+ }
17266
+ }
17267
+ return to;
17268
+ }, __toCommonJS2 = function(mod) {
17269
+ return __copyProps2(__defProp2({}, "__esModule", {
17270
+ value: !0
17271
+ }), mod);
17272
+ }, AriaHidden_native_exports = {};
17273
+ __export2(AriaHidden_native_exports, {
17274
+ hideOthers: function() {
17275
+ return hideOthers;
17276
+ }
17277
+ });
17278
+ module2.exports = __toCommonJS2(AriaHidden_native_exports);
17279
+ var hideOthers = function() {
17280
+ };
17281
+ }
17282
+ });
17283
+
17284
+ // ../../core/aria-hidden/dist/cjs/index.native.js
17285
+ var require_index_native32 = __commonJS({
17286
+ "../../core/aria-hidden/dist/cjs/index.native.js"(exports2, module2) {
17287
+ "use strict";
17288
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
17289
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
17290
+ if (from && typeof from == "object" || typeof from == "function") try {
17291
+ for (var _loop = function() {
17292
+ var key = _step.value;
17293
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
17294
+ get: function() {
17295
+ return from[key];
17296
+ },
17297
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
17298
+ });
17299
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
17300
+ } catch (err) {
17301
+ _didIteratorError = !0, _iteratorError = err;
17302
+ } finally {
17303
+ try {
17304
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
17305
+ } finally {
17306
+ if (_didIteratorError)
17307
+ throw _iteratorError;
17308
+ }
17309
+ }
17310
+ return to;
17311
+ }, __reExport2 = function(target, mod, secondTarget) {
17312
+ return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
17313
+ }, __toCommonJS2 = function(mod) {
17314
+ return __copyProps2(__defProp2({}, "__esModule", {
17315
+ value: !0
17316
+ }), mod);
17317
+ }, index_exports2 = {};
17318
+ module2.exports = __toCommonJS2(index_exports2);
17319
+ __reExport2(index_exports2, require_AriaHidden_native(), module2.exports);
17320
+ }
17321
+ });
17322
+
17219
17323
  // ../../core/create-context/dist/cjs/create-context.native.js
17220
17324
  var require_create_context_native = __commonJS({
17221
17325
  "../../core/create-context/dist/cjs/create-context.native.js"(exports2, module2) {
@@ -17385,7 +17489,7 @@ var require_create_context_native = __commonJS({
17385
17489
  });
17386
17490
 
17387
17491
  // ../../core/create-context/dist/cjs/index.native.js
17388
- var require_index_native32 = __commonJS({
17492
+ var require_index_native33 = __commonJS({
17389
17493
  "../../core/create-context/dist/cjs/index.native.js"(exports2, module2) {
17390
17494
  "use strict";
17391
17495
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -17423,93 +17527,6 @@ var require_index_native32 = __commonJS({
17423
17527
  }
17424
17528
  });
17425
17529
 
17426
- // ../../core/aria-hidden/dist/cjs/AriaHidden.native.js
17427
- var require_AriaHidden_native = __commonJS({
17428
- "../../core/aria-hidden/dist/cjs/AriaHidden.native.js"(exports2, module2) {
17429
- "use strict";
17430
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
17431
- for (var name in all) __defProp2(target, name, {
17432
- get: all[name],
17433
- enumerable: !0
17434
- });
17435
- }, __copyProps2 = function(to, from, except, desc) {
17436
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
17437
- if (from && typeof from == "object" || typeof from == "function") try {
17438
- for (var _loop = function() {
17439
- var key = _step.value;
17440
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
17441
- get: function() {
17442
- return from[key];
17443
- },
17444
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
17445
- });
17446
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
17447
- } catch (err) {
17448
- _didIteratorError = !0, _iteratorError = err;
17449
- } finally {
17450
- try {
17451
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
17452
- } finally {
17453
- if (_didIteratorError)
17454
- throw _iteratorError;
17455
- }
17456
- }
17457
- return to;
17458
- }, __toCommonJS2 = function(mod) {
17459
- return __copyProps2(__defProp2({}, "__esModule", {
17460
- value: !0
17461
- }), mod);
17462
- }, AriaHidden_native_exports = {};
17463
- __export2(AriaHidden_native_exports, {
17464
- hideOthers: function() {
17465
- return hideOthers;
17466
- }
17467
- });
17468
- module2.exports = __toCommonJS2(AriaHidden_native_exports);
17469
- var hideOthers = function() {
17470
- };
17471
- }
17472
- });
17473
-
17474
- // ../../core/aria-hidden/dist/cjs/index.native.js
17475
- var require_index_native33 = __commonJS({
17476
- "../../core/aria-hidden/dist/cjs/index.native.js"(exports2, module2) {
17477
- "use strict";
17478
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
17479
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
17480
- if (from && typeof from == "object" || typeof from == "function") try {
17481
- for (var _loop = function() {
17482
- var key = _step.value;
17483
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
17484
- get: function() {
17485
- return from[key];
17486
- },
17487
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
17488
- });
17489
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
17490
- } catch (err) {
17491
- _didIteratorError = !0, _iteratorError = err;
17492
- } finally {
17493
- try {
17494
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
17495
- } finally {
17496
- if (_didIteratorError)
17497
- throw _iteratorError;
17498
- }
17499
- }
17500
- return to;
17501
- }, __reExport2 = function(target, mod, secondTarget) {
17502
- return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
17503
- }, __toCommonJS2 = function(mod) {
17504
- return __copyProps2(__defProp2({}, "__esModule", {
17505
- value: !0
17506
- }), mod);
17507
- }, index_exports2 = {};
17508
- module2.exports = __toCommonJS2(index_exports2);
17509
- __reExport2(index_exports2, require_AriaHidden_native(), module2.exports);
17510
- }
17511
- });
17512
-
17513
17530
  // ../dismissable/dist/cjs/Dismissable.native.js
17514
17531
  var require_Dismissable_native = __commonJS({
17515
17532
  "../dismissable/dist/cjs/Dismissable.native.js"(exports2, module2) {
@@ -17740,7 +17757,7 @@ var require_FocusScopeController_native = __commonJS({
17740
17757
  }
17741
17758
  });
17742
17759
  module2.exports = __toCommonJS2(FocusScopeController_exports);
17743
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context = require_index_native32(), import_use_event = require_index_native8(), React4 = __toESM2(require("react")), FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController", [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME), [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
17760
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context = require_index_native33(), import_use_event = require_index_native8(), React4 = __toESM2(require("react")), FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController", [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME), [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
17744
17761
  function FocusScopeController(props) {
17745
17762
  var { __scopeFocusScope, children, enabled, loop, trapped, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props, stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus), stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus), contextValue = React4.useMemo(function() {
17746
17763
  return {
@@ -18011,7 +18028,7 @@ var require_SheetContext_native = __commonJS({
18011
18028
  }
18012
18029
  });
18013
18030
  module2.exports = __toCommonJS2(SheetContext_exports);
18014
- var import_create_context = require_index_native32(), import_constants4 = require_constants_native4(), [createSheetContext, createSheetScope2] = (0, import_create_context.createContextScope)(import_constants4.SHEET_NAME), [SheetProvider, useSheetContext] = createSheetContext(import_constants4.SHEET_NAME, {});
18031
+ var import_create_context = require_index_native33(), import_constants4 = require_constants_native4(), [createSheetContext, createSheetScope2] = (0, import_create_context.createContextScope)(import_constants4.SHEET_NAME), [SheetProvider, useSheetContext] = createSheetContext(import_constants4.SHEET_NAME, {});
18015
18032
  }
18016
18033
  });
18017
18034
 
@@ -18711,7 +18728,7 @@ var require_SheetImplementationCustom_native = __commonJS({
18711
18728
  if (isScrolled) return previouslyScrolling = !0, !1;
18712
18729
  if (isNearTop && hasScrollView.current && isDraggingUp) return !1;
18713
18730
  }
18714
- return Math.abs(dy) > 5;
18731
+ return Math.abs(dy) > 10;
18715
18732
  }
18716
18733
  var granted = getShouldSet();
18717
18734
  return granted && scrollBridge.setParentDragging(!0), granted;
@@ -19180,7 +19197,8 @@ var require_SheetScrollView_native = __commonJS({
19180
19197
  state.current.isScrolling = !0, scrollBridge.scrollLock = !0, setScrollEnabled(!0);
19181
19198
  return;
19182
19199
  }
19183
- if (scrollBridge.y >= 0) return;
19200
+ var isDraggingUpFromTopOnFirstScroll = !state.current.isScrolling && dy > 0 && scrollBridge.y === 0;
19201
+ if (!isDraggingUpFromTopOnFirstScroll && scrollBridge.y >= 0) return;
19184
19202
  setScrollEnabled(!1), scrollBridge.drag(dragAt), state.current.dragAt = dragAt, state.current.dys.push(dy), state.current.dys.length > 100 && (state.current.dys = state.current.dys.slice(-10));
19185
19203
  }
19186
19204
  },
@@ -19388,6 +19406,7 @@ var require_createSheet_native = __commonJS({
19388
19406
  !disableHideBottomOverflow && // @ts-ignore
19389
19407
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, {
19390
19408
  ...props,
19409
+ "data-testid": "ensure-sheet-cover-not-overlapping",
19391
19410
  componentName: "SheetCover",
19392
19411
  // biome-ignore lint/correctness/noChildrenProp: <explanation>
19393
19412
  children: null,
@@ -19845,6 +19864,9 @@ var require_Dialog_native = __commonJS({
19845
19864
  DialogContent: function() {
19846
19865
  return DialogContent;
19847
19866
  },
19867
+ DialogContext: function() {
19868
+ return DialogContext;
19869
+ },
19848
19870
  DialogDescription: function() {
19849
19871
  return DialogDescription;
19850
19872
  },
@@ -19860,6 +19882,9 @@ var require_Dialog_native = __commonJS({
19860
19882
  DialogPortalFrame: function() {
19861
19883
  return DialogPortalFrame;
19862
19884
  },
19885
+ DialogProvider: function() {
19886
+ return DialogProvider;
19887
+ },
19863
19888
  DialogTitle: function() {
19864
19889
  return DialogTitle;
19865
19890
  },
@@ -19869,15 +19894,19 @@ var require_Dialog_native = __commonJS({
19869
19894
  DialogWarningProvider: function() {
19870
19895
  return DialogWarningProvider;
19871
19896
  },
19872
- createDialogScope: function() {
19873
- return createDialogScope;
19897
+ useDialogContext: function() {
19898
+ return useDialogContext;
19874
19899
  }
19875
19900
  });
19876
19901
  module2.exports = __toCommonJS2(Dialog_exports);
19877
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native33(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_dismissable = require_index_native34(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = (0, import_create_context.createContextScope)(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), TRIGGER_NAME = "DialogTrigger", DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
19878
- name: TRIGGER_NAME
19902
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native32(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_dismissable = require_index_native34(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), DialogContext = (0, import_core12.createStyledContext)(
19903
+ // since we always provide this we can avoid setting here
19904
+ {},
19905
+ "Dialog__"
19906
+ ), { useStyledContext: useDialogContext, Provider: DialogProvider } = DialogContext, DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
19907
+ name: "DialogTrigger"
19879
19908
  }), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
19880
- var { __scopeDialog, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(TRIGGER_NAME, __scopeDialog), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
19909
+ var { scope, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(scope), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
19881
19910
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.ButtonNestingContext.Provider, {
19882
19911
  value: !0,
19883
19912
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTriggerFrame, {
@@ -19891,8 +19920,6 @@ var require_Dialog_native = __commonJS({
19891
19920
  onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
19892
19921
  })
19893
19922
  });
19894
- }), PORTAL_NAME = "DialogPortal", [PortalProvider2, usePortalContext] = createDialogContext(PORTAL_NAME, {
19895
- forceMount: void 0
19896
19923
  }), DialogPortalFrame = (0, import_core12.styled)(import_stacks3.YStack, {
19897
19924
  pointerEvents: "none",
19898
19925
  variants: {
@@ -19911,73 +19938,70 @@ var require_Dialog_native = __commonJS({
19911
19938
  defaultVariants: {
19912
19939
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
19913
19940
  }
19914
- }), DialogPortalItem = function(props) {
19915
- var { __scopeDialog, children, space, spaceDirection, separator } = props, themeName = (0, import_core12.useThemeName)(), context = useDialogContext(PORTAL_NAME, props.__scopeDialog), isAdapted = (0, import_adapt.useAdaptIsActive)(), childrenSpaced = children;
19916
- (space || separator) && (childrenSpaced = (0, import_core12.spacedChildren)({
19917
- children,
19918
- separator,
19919
- space,
19920
- direction: spaceDirection
19921
- }));
19922
- var content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
19923
- scope: __scopeDialog,
19924
- ...context,
19925
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
19926
- name: themeName,
19927
- children: childrenSpaced
19928
- })
19941
+ }), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, DialogPortalItem = function(param) {
19942
+ var { context, children } = param, themeName = (0, import_core12.useThemeName)(), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope), content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
19943
+ name: themeName,
19944
+ children
19929
19945
  });
19930
- return isAdapted ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
19946
+ return needsRepropagation && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
19947
+ ...adaptContext,
19948
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
19949
+ ...context,
19950
+ children: content
19951
+ })
19952
+ })), isAdapted ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
19953
+ scope: context.adaptScope,
19931
19954
  children: content
19932
19955
  }) : context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, {
19933
- hostName: context.modal ? "root" : context.adaptName,
19956
+ hostName: context.modal ? "root" : context.adaptScope,
19934
19957
  children: content
19935
19958
  }) : content;
19936
19959
  }, DialogPortal = function(props) {
19937
- var { __scopeDialog, forceMount, children, ...frameProps } = props, context = useDialogContext(PORTAL_NAME, __scopeDialog), isShowing = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React4.useState(!isShowing), isAdapted = (0, import_adapt.useAdaptIsActive)();
19960
+ var { scope, forceMount, children, ...frameProps } = props, context = useDialogContext(scope), isShowing = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React4.useState(!isShowing), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
19938
19961
  isShowing && isFullyHidden && setIsFullyHidden(!1);
19939
19962
  var handleExitComplete = React4.useCallback(function() {
19940
19963
  setIsFullyHidden(!0);
19941
19964
  }, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
19942
19965
  zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
19943
19966
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
19967
+ passThrough: isAdapted,
19944
19968
  onExitComplete: handleExitComplete,
19945
19969
  children: isShowing || isAdapted ? children : null
19946
19970
  })
19947
19971
  });
19948
19972
  if (isFullyHidden && !isAdapted) return null;
19949
- var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, {
19950
- scope: __scopeDialog,
19951
- forceMount,
19952
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, {
19953
- pointerEvents: isShowing ? "auto" : "none",
19954
- ...frameProps,
19955
- children: contents
19956
- })
19973
+ var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, {
19974
+ // passThrough={isAdapted}
19975
+ pointerEvents: isShowing ? "auto" : "none",
19976
+ ...frameProps,
19977
+ children: contents
19957
19978
  });
19958
19979
  return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
19959
19980
  zIndex,
19960
19981
  // set to 1000 which "boosts" it 1000 above baseline for current context
19961
19982
  // this makes sure its above (this first 1k) popovers on the same layer
19962
19983
  stackZIndex: 1e3,
19984
+ passThrough: isAdapted,
19963
19985
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
19986
+ passThrough: isAdapted,
19964
19987
  children: framedContents
19965
19988
  })
19966
19989
  }) : isAdapted ? framedContents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
19967
- __scopeDialog,
19990
+ context,
19968
19991
  children: framedContents
19969
19992
  });
19970
19993
  }, PassthroughTheme = function(param) {
19971
- var { children } = param, themeName = (0, import_core12.useThemeName)();
19994
+ var { children, passThrough } = param, themeName = (0, import_core12.useThemeName)();
19972
19995
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
19996
+ passThrough,
19973
19997
  name: themeName,
19974
19998
  forceClassName: !0,
19975
19999
  children
19976
20000
  });
19977
20001
  }, OVERLAY_NAME = "DialogOverlay", DialogOverlayFrame = (0, import_core12.styled)(import_sheet.Overlay, {
19978
20002
  name: OVERLAY_NAME
19979
- }), DialogOverlay = DialogOverlayFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
19980
- var { __scopeDialog, ...props } = param, portalContext = usePortalContext(OVERLAY_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...overlayProps } = props, context = useDialogContext(OVERLAY_NAME, __scopeDialog), isAdapted = (0, import_adapt.useAdaptIsActive)();
20003
+ }), DialogOverlay = DialogOverlayFrame.styleable(function(param, forwardedRef) {
20004
+ var { scope, ...props } = param, context = useDialogContext(scope), { forceMount = context.forceMount, ...overlayProps } = props, isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
19981
20005
  return !forceMount && (!context.modal || isAdapted) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayFrame, {
19982
20006
  "data-state": getState(context.open),
19983
20007
  // TODO: this will be apply for v2
@@ -19990,7 +20014,7 @@ var require_Dialog_native = __commonJS({
19990
20014
  ...overlayProps,
19991
20015
  ref: forwardedRef
19992
20016
  });
19993
- })), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
20017
+ }), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
19994
20018
  name: CONTENT_NAME,
19995
20019
  tag: "dialog",
19996
20020
  variants: {
@@ -20014,8 +20038,8 @@ var require_Dialog_native = __commonJS({
20014
20038
  size: "$true",
20015
20039
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
20016
20040
  }
20017
- }), DialogContent = DialogContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
20018
- var { __scopeDialog, ...props } = param, portalContext = usePortalContext(CONTENT_NAME, __scopeDialog), { forceMount = portalContext.forceMount, ...contentProps } = props, context = useDialogContext(CONTENT_NAME, __scopeDialog), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
20041
+ }), DialogContent = DialogContentFrame.styleable(function(param, forwardedRef) {
20042
+ var { scope, ...props } = param, context = useDialogContext(scope), { forceMount = context.forceMount, ...contentProps } = props, contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
20019
20043
  children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
20020
20044
  context,
20021
20045
  ...contentProps,
@@ -20034,7 +20058,7 @@ var require_Dialog_native = __commonJS({
20034
20058
  children: contents
20035
20059
  })
20036
20060
  });
20037
- })), DialogContentModal = /* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
20061
+ }), DialogContentModal = /* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
20038
20062
  var { children, context, ...props } = param, contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.contentRef, contentRef);
20039
20063
  return React4.useEffect(function() {
20040
20064
  if (import_constants4.isWeb && context.open) {
@@ -20098,11 +20122,12 @@ var require_Dialog_native = __commonJS({
20098
20122
  }
20099
20123
  });
20100
20124
  }), DialogContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20101
- var { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
20125
+ var { trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
20102
20126
  // TODO react 19 type workaround
20103
20127
  void 0
20104
- ), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)();
20128
+ ), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
20105
20129
  if (isAdapted) return !import_constants4.isWeb && !context.open ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
20130
+ context,
20106
20131
  children: contentProps.children
20107
20132
  });
20108
20133
  var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentFrame, {
@@ -20153,7 +20178,7 @@ var require_Dialog_native = __commonJS({
20153
20178
  }), DialogTitleFrame = (0, import_core12.styled)(import_text2.H2, {
20154
20179
  name: "DialogTitle"
20155
20180
  }), DialogTitle = DialogTitleFrame.styleable(function(props, forwardedRef) {
20156
- var { __scopeDialog, ...titleProps } = props, context = useDialogContext("DialogTitle", __scopeDialog);
20181
+ var { scope, ...titleProps } = props, context = useDialogContext(scope);
20157
20182
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTitleFrame, {
20158
20183
  id: context.titleId,
20159
20184
  ...titleProps,
@@ -20161,8 +20186,8 @@ var require_Dialog_native = __commonJS({
20161
20186
  });
20162
20187
  }), DialogDescriptionFrame = (0, import_core12.styled)(import_text2.Paragraph, {
20163
20188
  name: "DialogDescription"
20164
- }), DESCRIPTION_NAME = "DialogDescription", DialogDescription = DialogDescriptionFrame.styleable(function(props, forwardedRef) {
20165
- var { __scopeDialog, ...descriptionProps } = props, context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
20189
+ }), DialogDescription = DialogDescriptionFrame.styleable(function(props, forwardedRef) {
20190
+ var { scope, ...descriptionProps } = props, context = useDialogContext(scope);
20166
20191
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogDescriptionFrame, {
20167
20192
  id: context.descriptionId,
20168
20193
  ...descriptionProps,
@@ -20172,10 +20197,7 @@ var require_Dialog_native = __commonJS({
20172
20197
  name: CLOSE_NAME,
20173
20198
  tag: "button"
20174
20199
  }), DialogClose = DialogCloseFrame.styleable(function(props, forwardedRef) {
20175
- var { __scopeDialog, displayWhenAdapted, ...closeProps } = props, context = useDialogContext(CLOSE_NAME, __scopeDialog, {
20176
- warn: !1,
20177
- fallback: {}
20178
- }), isAdapted = (0, import_adapt.useAdaptIsActive)(), isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext);
20200
+ var { scope, displayWhenAdapted, ...closeProps } = props, context = useDialogContext(scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext);
20179
20201
  return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogCloseFrame, {
20180
20202
  accessibilityLabel: "Dialog Close",
20181
20203
  tag: isInsideButton ? "span" : "button",
@@ -20231,10 +20253,7 @@ var require_Dialog_native = __commonJS({
20231
20253
  }
20232
20254
  return null;
20233
20255
  }, Dialog = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(props, ref) {
20234
- var { __scopeDialog, children, open: openProp, defaultOpen = !1, onOpenChange, modal = !0, disableRemoveScroll = !1 } = props, baseId = React4.useId(), scopeId = `scope-${baseId}`, contentId = `content-${baseId}`, titleId = `title-${baseId}`, descriptionId = `description-${baseId}`, scopeKey = __scopeDialog ? Object.keys(__scopeDialog)[0] : scopeId, adaptName = getAdaptName({
20235
- scopeKey,
20236
- contentId
20237
- }), triggerRef = React4.useRef(null), contentRef = React4.useRef(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
20256
+ var { scope = "", children, open: openProp, defaultOpen = !1, onOpenChange, modal = !0, disableRemoveScroll = !1 } = props, baseId = React4.useId(), dialogId = `Dialog-${scope}-${baseId}`, contentId = `${dialogId}-content`, titleId = `${dialogId}-title`, descriptionId = `${dialogId}-description`, triggerRef = React4.useRef(null), contentRef = React4.useRef(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
20238
20257
  prop: openProp,
20239
20258
  defaultProp: defaultOpen,
20240
20259
  onChange: onOpenChange
@@ -20244,9 +20263,9 @@ var require_Dialog_native = __commonJS({
20244
20263
  });
20245
20264
  }, [
20246
20265
  setOpen
20247
- ]), context = {
20248
- scope: __scopeDialog,
20249
- scopeKey,
20266
+ ]), adaptScope = `DialogAdapt${scope}`, context = {
20267
+ dialogScope: scope,
20268
+ adaptScope,
20250
20269
  triggerRef,
20251
20270
  contentRef,
20252
20271
  contentId,
@@ -20256,8 +20275,7 @@ var require_Dialog_native = __commonJS({
20256
20275
  onOpenChange: setOpen,
20257
20276
  onOpenToggle,
20258
20277
  modal,
20259
- disableRemoveScroll,
20260
- adaptName
20278
+ disableRemoveScroll
20261
20279
  };
20262
20280
  return React4.useImperativeHandle(ref, function() {
20263
20281
  return {
@@ -20266,15 +20284,16 @@ var require_Dialog_native = __commonJS({
20266
20284
  }, [
20267
20285
  setOpen
20268
20286
  ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
20269
- scope: adaptName,
20287
+ scope: adaptScope,
20270
20288
  portal: {
20271
20289
  forwardProps: props
20272
20290
  },
20273
20291
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
20292
+ scope,
20274
20293
  ...context,
20275
20294
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogSheetController, {
20276
20295
  onOpenChange: setOpen,
20277
- __scopeDialog,
20296
+ scope,
20278
20297
  children
20279
20298
  })
20280
20299
  })
@@ -20290,11 +20309,8 @@ var require_Dialog_native = __commonJS({
20290
20309
  Sheet: import_sheet.Sheet.Controlled,
20291
20310
  FocusScope: import_focus_scope.FocusScopeController,
20292
20311
  Adapt: import_adapt.Adapt
20293
- }), getAdaptName = function(param) {
20294
- var { scopeKey, contentId } = param;
20295
- return `${scopeKey || contentId}DialogAdapt`;
20296
- }, DialogSheetController = function(props) {
20297
- var context = useDialogContext("DialogSheetController", props.__scopeDialog), isAdapted = (0, import_adapt.useAdaptIsActive)();
20312
+ }), DialogSheetController = function(props) {
20313
+ var context = useDialogContext(props.scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
20298
20314
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
20299
20315
  onOpenChange: function(val) {
20300
20316
  if (isAdapted) {
@@ -20425,15 +20441,12 @@ var require_AlertDialog_native = __commonJS({
20425
20441
  },
20426
20442
  AlertDialogTrigger: function() {
20427
20443
  return AlertDialogTrigger;
20428
- },
20429
- createAlertDialogScope: function() {
20430
- return createAlertDialogScope;
20431
20444
  }
20432
20445
  });
20433
20446
  module2.exports = __toCommonJS2(AlertDialog_exports);
20434
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_dialog = require_index_native39(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
20435
- import_dialog.createDialogScope
20436
- ]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
20447
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_dialog = require_index_native39(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), AlertScopePrefix = "Alert__", getAlertDialogScope = function(scope) {
20448
+ return AlertScopePrefix + scope;
20449
+ }, ROOT_NAME = "AlertDialog", TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
20437
20450
  name: TRIGGER_NAME
20438
20451
  }), AlertDialogTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20439
20452
  if (props.__native) {
@@ -20443,46 +20456,40 @@ var require_AlertDialog_native = __commonJS({
20443
20456
  onPress: (0, import_helpers.composeEventHandlers)(onPress, __onPress)
20444
20457
  });
20445
20458
  }
20446
- var { __scopeAlertDialog, ...triggerProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20459
+ var { scope, ...triggerProps } = props;
20447
20460
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogTrigger, {
20448
- ...dialogScope,
20461
+ scope: getAlertDialogScope(scope),
20449
20462
  ...triggerProps,
20450
20463
  ref: forwardedRef
20451
20464
  });
20452
- });
20453
- AlertDialogTrigger.displayName = TRIGGER_NAME;
20454
- var PORTAL_NAME = "AlertDialogPortal", AlertDialogPortal = function(props) {
20455
- var { __scopeAlertDialog, ...portalProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20465
+ }), AlertDialogPortal = function(props) {
20466
+ var { scope, ...portalProps } = props;
20456
20467
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogPortal, {
20457
- ...dialogScope,
20468
+ scope: getAlertDialogScope(scope),
20458
20469
  ...portalProps
20459
20470
  });
20460
- };
20461
- AlertDialogPortal.displayName = PORTAL_NAME;
20462
- var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core12.styled)(import_dialog.DialogOverlayFrame, {
20471
+ }, OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core12.styled)(import_dialog.DialogOverlayFrame, {
20463
20472
  name: OVERLAY_NAME
20464
20473
  }), AlertDialogOverlay = AlertDialogOverlayFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20465
- var { __scopeAlertDialog, ...overlayProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20474
+ var { scope, ...overlayProps } = props;
20466
20475
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogOverlay, {
20467
- ...dialogScope,
20476
+ scope: getAlertDialogScope(scope),
20468
20477
  ...overlayProps,
20469
20478
  ref: forwardedRef
20470
20479
  });
20471
- }));
20472
- AlertDialogOverlay.displayName = OVERLAY_NAME;
20473
- var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), AlertDialogContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20474
- var { __scopeAlertDialog, children, ...contentProps } = props, dialogScope = useDialogScope(__scopeAlertDialog), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React4.useRef(null);
20480
+ })), CONTENT_NAME = "AlertDialogContent", { Provider: AlertDialogContextProvider, useStyledContext: useAlertDialogContentContext } = (0, import_core12.createStyledContext)({}, "AlertDialogContext"), AlertDialogContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20481
+ var { scope, children, ...contentProps } = props, dialogScope = getAlertDialogScope(scope), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React4.useRef(null);
20475
20482
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogWarningProvider, {
20476
20483
  contentName: CONTENT_NAME,
20477
20484
  titleName: TITLE_NAME,
20478
20485
  docsSlug: "alert-dialog",
20479
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AlertDialogContentProvider, {
20480
- scope: __scopeAlertDialog,
20486
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AlertDialogContextProvider, {
20487
+ scope,
20481
20488
  cancelRef,
20482
20489
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_dialog.DialogContent, {
20483
20490
  // @ts-ignore
20484
20491
  role: "alertdialog",
20485
- ...dialogScope,
20492
+ scope: dialogScope,
20486
20493
  ...contentProps,
20487
20494
  ref: composedRefs,
20488
20495
  onOpenAutoFocus: (0, import_helpers.composeEventHandlers)(contentProps.onOpenAutoFocus, function(event) {
@@ -20516,45 +20523,35 @@ var require_AlertDialog_native = __commonJS({
20516
20523
  })
20517
20524
  })
20518
20525
  });
20519
- });
20520
- AlertDialogContent.displayName = CONTENT_NAME;
20521
- var TITLE_NAME = "AlertDialogTitle", AlertDialogTitle = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20522
- var { __scopeAlertDialog, ...titleProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20526
+ }), TITLE_NAME = "AlertDialogTitle", AlertDialogTitle = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20527
+ var { scope, ...titleProps } = props;
20523
20528
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogTitle, {
20524
- ...dialogScope,
20529
+ scope: getAlertDialogScope(scope),
20525
20530
  ...titleProps,
20526
20531
  ref: forwardedRef
20527
20532
  });
20528
- });
20529
- AlertDialogTitle.displayName = TITLE_NAME;
20530
- var DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20531
- var { __scopeAlertDialog, ...descriptionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20533
+ }), DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20534
+ var { scope, ...descriptionProps } = props;
20532
20535
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogDescription, {
20533
- ...dialogScope,
20536
+ scope: getAlertDialogScope(scope),
20534
20537
  ...descriptionProps,
20535
20538
  ref: forwardedRef
20536
20539
  });
20537
- });
20538
- AlertDialogDescription.displayName = DESCRIPTION_NAME;
20539
- var ACTION_NAME = "AlertDialogAction", AlertDialogAction = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20540
- var { __scopeAlertDialog, ...actionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
20540
+ }), ACTION_NAME = "AlertDialogAction", AlertDialogAction = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20541
+ var { scope, ...actionProps } = props;
20541
20542
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogClose, {
20542
- ...dialogScope,
20543
+ scope: getAlertDialogScope(scope),
20543
20544
  ...actionProps,
20544
20545
  ref: forwardedRef
20545
20546
  });
20546
- });
20547
- AlertDialogAction.displayName = ACTION_NAME;
20548
- var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20549
- var { __scopeAlertDialog, ...cancelProps } = props, { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog), dialogScope = useDialogScope(__scopeAlertDialog), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, cancelRef);
20547
+ }), CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
20548
+ var { scope, ...cancelProps } = props, { cancelRef } = useAlertDialogContentContext(scope), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, cancelRef);
20550
20549
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogClose, {
20551
- ...dialogScope,
20550
+ scope: getAlertDialogScope(scope),
20552
20551
  ...cancelProps,
20553
20552
  ref
20554
20553
  });
20555
- });
20556
- AlertDialogCancel.displayName = CANCEL_NAME;
20557
- var DescriptionWarning = function(param) {
20554
+ }), DescriptionWarning = function(param) {
20558
20555
  var { contentRef } = param;
20559
20556
  return process.env.NODE_ENV === "development" && React4.useEffect(function() {
20560
20557
  var _contentRef_current;
@@ -20572,7 +20569,7 @@ var require_AlertDialog_native = __commonJS({
20572
20569
  contentRef
20573
20570
  ]), null;
20574
20571
  }, AlertDialogInner = function(props) {
20575
- var { __scopeAlertDialog, native, ...alertDialogProps } = props, dialogScope = useDialogScope(__scopeAlertDialog), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
20572
+ var { scope, native, ...alertDialogProps } = props, dialogScope = getAlertDialogScope(scope), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
20576
20573
  prop: props.open,
20577
20574
  defaultProp: props.defaultOpen || !1,
20578
20575
  onChange: props.onOpenChange,
@@ -20618,7 +20615,7 @@ var require_AlertDialog_native = __commonJS({
20618
20615
  setOpen(!0);
20619
20616
  }
20620
20617
  }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.Dialog, {
20621
- ...dialogScope,
20618
+ scope: dialogScope,
20622
20619
  ...alertDialogProps,
20623
20620
  modal: !0
20624
20621
  });
@@ -21126,7 +21123,7 @@ var require_Avatar_native = __commonJS({
21126
21123
  }
21127
21124
  });
21128
21125
  module2.exports = __toCommonJS2(Avatar_exports);
21129
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_helpers = require_index_native7(), import_image = require_index_native41(), import_shapes = require_index_native42(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = (0, import_create_context.createContextScope)(AVATAR_NAME), [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME), IMAGE_NAME = "AvatarImage", AvatarImage = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
21126
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), import_image = require_index_native41(), import_shapes = require_index_native42(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = (0, import_create_context.createContextScope)(AVATAR_NAME), [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME), IMAGE_NAME = "AvatarImage", AvatarImage = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
21130
21127
  var _getShapeSize, { __scopeAvatar, src, onLoadingStatusChange = function() {
21131
21128
  }, ...imageProps } = props, context = useAvatarContext(IMAGE_NAME, __scopeAvatar), [status, setStatus] = React4.useState("idle"), shapeSize = (0, import_core12.getVariableValue)((_getShapeSize = (0, import_shapes.getShapeSize)(
21132
21129
  context.size,
@@ -22512,7 +22509,7 @@ var require_Label_native = __commonJS({
22512
22509
  }
22513
22510
  });
22514
22511
  module2.exports = __toCommonJS2(Label_exports);
22515
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_create_context = require_index_native32(), import_focusable2 = require_index_native48(), import_get_button_sized2 = require_index_native23(), import_get_font_sized2 = require_index_native25(), import_text2 = require_index_native26(), import_web = require_index_native15(), React4 = __toESM2(require("react")), NAME = "Label", [LabelProvider, useLabelContextImpl] = (0, import_create_context.createContext)(NAME, {
22512
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_create_context = require_index_native33(), import_focusable2 = require_index_native48(), import_get_button_sized2 = require_index_native23(), import_get_font_sized2 = require_index_native25(), import_text2 = require_index_native26(), import_web = require_index_native15(), React4 = __toESM2(require("react")), NAME = "Label", [LabelProvider, useLabelContextImpl] = (0, import_create_context.createContext)(NAME, {
22516
22513
  id: void 0,
22517
22514
  controlRef: {
22518
22515
  current: null
@@ -23311,7 +23308,7 @@ var require_Form_native = __commonJS({
23311
23308
  }
23312
23309
  });
23313
23310
  module2.exports = __toCommonJS2(Form_exports);
23314
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_helpers = require_index_native7(), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
23311
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
23315
23312
  name: FORM_NAME,
23316
23313
  tag: "form"
23317
23314
  }), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core12.styled)(import_core12.View, {
@@ -23553,7 +23550,7 @@ var require_Group_native = __commonJS({
23553
23550
  }
23554
23551
  });
23555
23552
  module2.exports = __toCommonJS2(Group_exports);
23556
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_useIndexedChildren = require_useIndexedChildren_native(), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
23553
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_useIndexedChildren = require_useIndexedChildren_native(), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
23557
23554
  name: "GroupFrame",
23558
23555
  variants: {
23559
23556
  unstyled: {
@@ -24501,17 +24498,20 @@ var require_Popper_native = __commonJS({
24501
24498
  PopperArrow: function() {
24502
24499
  return PopperArrow;
24503
24500
  },
24501
+ PopperArrowFrame: function() {
24502
+ return PopperArrowFrame;
24503
+ },
24504
24504
  PopperContent: function() {
24505
24505
  return PopperContent;
24506
24506
  },
24507
24507
  PopperContentFrame: function() {
24508
24508
  return PopperContentFrame;
24509
24509
  },
24510
- PopperContext: function() {
24511
- return PopperContext;
24510
+ PopperContextFast: function() {
24511
+ return PopperContextFast;
24512
24512
  },
24513
- PopperInfrequentContext: function() {
24514
- return PopperInfrequentContext;
24513
+ PopperContextSlow: function() {
24514
+ return PopperContextSlow;
24515
24515
  },
24516
24516
  PopperPositionContext: function() {
24517
24517
  return PopperPositionContext;
@@ -24519,20 +24519,59 @@ var require_Popper_native = __commonJS({
24519
24519
  PopperProvider: function() {
24520
24520
  return PopperProvider;
24521
24521
  },
24522
+ PopperProviderFast: function() {
24523
+ return PopperProviderFast;
24524
+ },
24525
+ PopperProviderSlow: function() {
24526
+ return PopperProviderSlow;
24527
+ },
24522
24528
  setupPopper: function() {
24523
24529
  return setupPopper;
24524
24530
  },
24525
24531
  usePopperContext: function() {
24526
24532
  return usePopperContext;
24527
24533
  },
24528
- usePopperInfrequentContext: function() {
24529
- return usePopperInfrequentContext;
24534
+ usePopperContextSlow: function() {
24535
+ return usePopperContextSlow;
24530
24536
  }
24531
24537
  });
24532
24538
  module2.exports = __toCommonJS2(Popper_exports);
24533
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_get_token2 = require_index_native22(), import_stacks3 = require_index_native24(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), PopperContext = (0, import_core12.createStyledContext)({}), PopperPositionContext = import_core12.createStyledContext, { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext, PopperInfrequentContext = (0, import_core12.createStyledContext)({
24534
- size: void 0
24535
- }), usePopperInfrequentContext = PopperInfrequentContext.useStyledContext, checkFloating = {
24539
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_get_token2 = require_index_native22(), import_stacks3 = require_index_native24(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), PopperContextFast = (0, import_core12.createStyledContext)(
24540
+ // since we always provide this we can avoid setting here
24541
+ {},
24542
+ "Popper__"
24543
+ ), PopperPositionContext = import_core12.createStyledContext, { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast, PopperContextSlow = (0, import_core12.createStyledContext)(
24544
+ // since we always provide this we can avoid setting here
24545
+ {},
24546
+ "PopperSlow__"
24547
+ ), { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow, PopperProvider = function(param) {
24548
+ var { scope, children, ...context } = param, slowContext = getContextSlow(context);
24549
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProviderFast, {
24550
+ scope,
24551
+ ...context,
24552
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProviderSlow, {
24553
+ scope,
24554
+ ...slowContext,
24555
+ children
24556
+ })
24557
+ });
24558
+ };
24559
+ function getContextSlow(context) {
24560
+ return {
24561
+ refs: context.refs,
24562
+ size: context.size,
24563
+ arrowRef: context.arrowRef,
24564
+ arrowStyle: context.arrowStyle,
24565
+ onArrowSize: context.onArrowSize,
24566
+ hasFloating: context.hasFloating,
24567
+ strategy: context.strategy,
24568
+ update: context.update,
24569
+ context: context.context,
24570
+ getFloatingProps: context.getFloatingProps,
24571
+ getReferenceProps: context.getFloatingProps
24572
+ };
24573
+ }
24574
+ var checkFloating = {
24536
24575
  name: "checkFloating",
24537
24576
  fn(data) {
24538
24577
  return {
@@ -24546,7 +24585,7 @@ var require_Popper_native = __commonJS({
24546
24585
  Object.assign(setupOptions, options);
24547
24586
  }
24548
24587
  function Popper(props) {
24549
- var _middlewareData_checkFloating, { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, __scopePopper } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
24588
+ var _middlewareData_checkFloating, { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, scope } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
24550
24589
  open: passThrough ? !1 : open || !0,
24551
24590
  strategy,
24552
24591
  placement,
@@ -24595,31 +24634,39 @@ var require_Popper_native = __commonJS({
24595
24634
  arrowRef: setArrow,
24596
24635
  arrowStyle: middlewareData.arrow,
24597
24636
  onArrowSize: setArrowSize,
24598
- scope: __scopePopper,
24599
24637
  hasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,
24600
24638
  ...floating
24601
24639
  };
24602
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperInfrequentContext.Provider, {
24603
- size: size2,
24604
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
24605
- ...popperContext,
24606
- children
24607
- })
24640
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
24641
+ scope,
24642
+ ...popperContext,
24643
+ children
24608
24644
  });
24609
24645
  }
24610
24646
  var PopperAnchor = import_stacks3.YStack.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24611
- var { virtualRef, __scopePopper, ...anchorProps } = props, { getReferenceProps, refs } = usePopperContext(__scopePopper), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref, refs.setReference);
24647
+ var { virtualRef, scope, ...anchorProps } = props, { getReferenceProps, refs, update } = usePopperContextSlow(scope), ref = React4.useRef(null);
24612
24648
  React4.useEffect(function() {
24613
24649
  virtualRef && refs.setReference(virtualRef.current);
24614
24650
  }, [
24615
24651
  virtualRef
24616
24652
  ]);
24617
- var stackProps = {
24618
- ref: composedRefs,
24619
- ...anchorProps
24620
- };
24653
+ var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
24621
24654
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
24622
- ...getReferenceProps ? getReferenceProps(stackProps) : stackProps
24655
+ ...refProps,
24656
+ ref: composedRefs,
24657
+ // this helps us with handling scoped poppers with many different targets
24658
+ // basically we wait for mouseEnter to ever set a reference and remove it on leave
24659
+ // otherwise floating ui gets confused by having >1 reference
24660
+ onMouseEnter: function(e) {
24661
+ ref.current instanceof HTMLElement && (refs.setReference(ref.current), setTimeout(function() {
24662
+ var _refProps_onPointerEnter;
24663
+ (_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e), update();
24664
+ }));
24665
+ },
24666
+ onMouseLeave: function(e) {
24667
+ var _refProps_onMouseLeave;
24668
+ refProps == null || (_refProps_onMouseLeave = refProps.onMouseLeave) === null || _refProps_onMouseLeave === void 0 || _refProps_onMouseLeave.call(refProps, e), refs.setReference(null);
24669
+ }
24623
24670
  });
24624
24671
  })), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
24625
24672
  name: "PopperContent",
@@ -24646,7 +24693,7 @@ var require_Popper_native = __commonJS({
24646
24693
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
24647
24694
  }
24648
24695
  }), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24649
- var { __scopePopper, enableAnimationForPositionChange, children, passThrough, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2 } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), [needsMeasure, setNeedsMeasure] = React4.useState(enableAnimationForPositionChange);
24696
+ var { scope, enableAnimationForPositionChange, children, passThrough, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2 } = usePopperContext(scope), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), [needsMeasure, setNeedsMeasure] = React4.useState(enableAnimationForPositionChange);
24650
24697
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
24651
24698
  needsMeasure && x && y && setNeedsMeasure(!1);
24652
24699
  }, [
@@ -24664,9 +24711,9 @@ var require_Popper_native = __commonJS({
24664
24711
  position: strategy,
24665
24712
  opacity: 1,
24666
24713
  ...enableAnimationForPositionChange && {
24667
- // apply animation but disable it on initial render to avoid animating from 0 to the first position
24668
24714
  animation: rest.animation,
24669
24715
  animateOnly: needsMeasure ? [] : rest.animateOnly,
24716
+ // apply animation but disable it on initial render to avoid animating from 0 to the first position
24670
24717
  animatePresence: !1
24671
24718
  },
24672
24719
  ...hide2 && {
@@ -24674,7 +24721,7 @@ var require_Popper_native = __commonJS({
24674
24721
  animateOnly: []
24675
24722
  }
24676
24723
  }, { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;
24677
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
24724
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
24678
24725
  passThrough,
24679
24726
  ref: contentRefs,
24680
24727
  ...passThrough ? null : floatingProps,
@@ -24727,8 +24774,8 @@ var require_Popper_native = __commonJS({
24727
24774
  right: "left",
24728
24775
  bottom: "top",
24729
24776
  left: "right"
24730
- }, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
24731
- var _context_arrowStyle, _context_arrowStyle1, { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = typeof sizeProp == "number" ? sizeProp : (0, import_core12.getVariableValue)((0, import_get_token2.getSpace)(sizeProp ?? context.size, {
24777
+ }, PopperArrow = /* @__PURE__ */ React4.forwardRef(function(propsIn, forwardedRef) {
24778
+ var _context_arrowStyle, _context_arrowStyle1, { scope, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(scope), sizeVal = typeof sizeProp == "number" ? sizeProp : (0, import_core12.getVariableValue)((0, import_get_token2.getSpace)(sizeProp ?? context.size, {
24732
24779
  shift: -2,
24733
24780
  bounds: [
24734
24781
  2
@@ -24958,8 +25005,12 @@ var require_Popover_native = __commonJS({
24958
25005
  }
24959
25006
  });
24960
25007
  module2.exports = __toCommonJS2(Popover_exports);
24961
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native57(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native33(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_popper = require_index_native59(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_scroll_view = require_index_native37(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), import_useFloatingContext = require_useFloatingContext_native(), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24962
- var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover || POPOVER_SCOPE), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
25008
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native57(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native32(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_popper = require_index_native59(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_scroll_view = require_index_native37(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), import_useFloatingContext = require_useFloatingContext_native(), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, PopoverContext = (0, import_core12.createStyledContext)(
25009
+ // since we always provide this we can avoid setting here
25010
+ {},
25011
+ "Popover__"
25012
+ ), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25013
+ var { scope, ...rest } = props, context = usePopoverContext(scope), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
24963
25014
  return React4.useEffect(function() {
24964
25015
  return onCustomAnchorAdd(), function() {
24965
25016
  return onCustomAnchorRemove();
@@ -24968,12 +25019,12 @@ var require_Popover_native = __commonJS({
24968
25019
  onCustomAnchorAdd,
24969
25020
  onCustomAnchorRemove
24970
25021
  ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperAnchor, {
24971
- __scopePopper: __scopePopover || POPOVER_SCOPE,
25022
+ scope,
24972
25023
  ...rest,
24973
25024
  ref: forwardedRef
24974
25025
  });
24975
25026
  }), PopoverTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
24976
- var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover || POPOVER_SCOPE), anchorTo = context.anchorTo, composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
25027
+ var { scope, ...rest } = props, context = usePopoverContext(scope), anchorTo = context.anchorTo, composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
24977
25028
  if (!props.children) return null;
24978
25029
  var trigger = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
24979
25030
  "aria-expanded": context.open,
@@ -25012,12 +25063,14 @@ var require_Popover_native = __commonJS({
25012
25063
  ...virtualRef && {
25013
25064
  virtualRef
25014
25065
  },
25015
- __scopePopper: __scopePopover || POPOVER_SCOPE,
25066
+ scope,
25016
25067
  asChild: rest.asChild,
25017
25068
  children: trigger
25018
25069
  });
25019
- }), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25020
- var { trapFocus, enableRemoveScroll = !1, zIndex, __scopePopover, ...contentImplProps } = props, context = usePopoverContext(__scopePopover || POPOVER_SCOPE), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
25070
+ }), PopoverContentFrame = (0, import_core12.styled)(import_popper.PopperContentFrame, {
25071
+ name: "Popover"
25072
+ }), PopoverContent = PopoverContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25073
+ var { trapFocus, enableRemoveScroll = !1, zIndex, scope, ...contentImplProps } = props, context = usePopoverContext(scope), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
25021
25074
  if (context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
25022
25075
  if (context.open) {
25023
25076
  var content = contentRef.current;
@@ -25029,17 +25082,18 @@ var require_Popover_native = __commonJS({
25029
25082
  var _contentImplProps_pointerEvents;
25030
25083
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverPortal, {
25031
25084
  passThrough: context.breakpointActive,
25032
- __scopePopover: __scopePopover || POPOVER_SCOPE,
25085
+ context,
25033
25086
  zIndex,
25034
25087
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
25035
25088
  passThrough: context.breakpointActive,
25036
25089
  pointerEvents: context.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
25037
25090
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
25038
25091
  ...contentImplProps,
25092
+ context,
25039
25093
  enableRemoveScroll,
25040
25094
  ref: composedRefs,
25041
25095
  setIsFullyHidden,
25042
- __scopePopover: __scopePopover || POPOVER_SCOPE,
25096
+ scope,
25043
25097
  // we make sure we're not trapping once it's been closed
25044
25098
  // (closed !== unmounted when animating out)
25045
25099
  trapFocus: trapFocus ?? context.open,
@@ -25065,7 +25119,7 @@ var require_Popover_native = __commonJS({
25065
25119
  })
25066
25120
  });
25067
25121
  })), useParentContexts = function(scope) {
25068
- var popperContext = (0, import_popper.usePopperContext)(scope || POPOVER_SCOPE), adaptContext = (0, import_adapt.useAdaptContext)(), context = usePopoverContext(scope || POPOVER_SCOPE);
25122
+ var context = usePopoverContext(scope), popperContext = (0, import_popper.usePopperContext)(scope), adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);
25069
25123
  return {
25070
25124
  popperContext,
25071
25125
  adaptContext,
@@ -25073,9 +25127,9 @@ var require_Popover_native = __commonJS({
25073
25127
  };
25074
25128
  };
25075
25129
  function RepropagateParentContexts(param) {
25076
- var { adaptContext, children, context, popperContext, scope } = param;
25077
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, {
25078
- scope,
25130
+ var { adaptContext, children, context, popperContext } = param;
25131
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperProvider, {
25132
+ scope: context.popoverScope,
25079
25133
  ...popperContext,
25080
25134
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
25081
25135
  ...context,
@@ -25087,40 +25141,40 @@ var require_Popover_native = __commonJS({
25087
25141
  });
25088
25142
  }
25089
25143
  var PortalAdaptSafe = function(param) {
25090
- var { children, __scopePopover } = param;
25144
+ var { children, context } = param;
25091
25145
  if (needsRepropagation) {
25092
- var scope = __scopePopover || POPOVER_SCOPE, parentContexts = useParentContexts(scope);
25146
+ var parentContexts = useParentContexts(context.popoverScope);
25093
25147
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
25148
+ scope: context.adaptScope,
25094
25149
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RepropagateParentContexts, {
25095
- scope,
25096
25150
  ...parentContexts,
25097
25151
  children
25098
25152
  })
25099
25153
  });
25100
25154
  }
25101
25155
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
25156
+ scope: context.adaptScope,
25102
25157
  children
25103
25158
  });
25104
25159
  };
25105
- function PopoverPortal(props) {
25106
- var scope = props.__scopePopover || POPOVER_SCOPE, zIndex = props.zIndex, themeName = (0, import_core12.useThemeName)(), content = props.children;
25160
+ function PopoverPortal(param) {
25161
+ var { context, zIndex, passThrough, children } = param, themeName = (0, import_core12.useThemeName)(), content = children;
25107
25162
  if (needsRepropagation) {
25108
- var parentContexts = useParentContexts(scope);
25163
+ var parentContexts = useParentContexts(context.popoverScope);
25109
25164
  content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RepropagateParentContexts, {
25110
- scope,
25111
25165
  ...parentContexts,
25112
25166
  children: content
25113
25167
  });
25114
25168
  }
25115
25169
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
25116
- passThrough: props.passThrough,
25170
+ passThrough,
25117
25171
  stackZIndex: !0,
25118
25172
  zIndex,
25119
25173
  children: (
25120
25174
  /* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
25121
25175
  /* without this you'll see the site menu re-rendering. It must be something in wrapping children in Theme */
25122
25176
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
25123
- passThrough: props.passThrough,
25177
+ passThrough,
25124
25178
  contain: !0,
25125
25179
  forceClassName: !0,
25126
25180
  name: themeName,
@@ -25133,7 +25187,7 @@ var require_Popover_native = __commonJS({
25133
25187
  });
25134
25188
  }
25135
25189
  var PopoverContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25136
- var { trapFocus, __scopePopover, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, enableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, lazyMount, ...contentProps } = props, context = usePopoverContext(__scopePopover || POPOVER_SCOPE), { open, keepChildrenMounted } = context, handleExitComplete = React4.useCallback(function() {
25190
+ var { trapFocus, scope, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, enableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, lazyMount, context, ...contentProps } = props, { open, keepChildrenMounted } = context, handleExitComplete = React4.useCallback(function() {
25137
25191
  setIsFullyHidden == null || setIsFullyHidden(!0);
25138
25192
  }, [
25139
25193
  setIsFullyHidden
@@ -25149,19 +25203,20 @@ var require_Popover_native = __commonJS({
25149
25203
  lazyMount,
25150
25204
  passThrough: context.breakpointActive,
25151
25205
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContent, {
25152
- __scopePopper: __scopePopover || POPOVER_SCOPE,
25206
+ scope,
25153
25207
  "data-state": getState(open),
25154
25208
  id: context.contentId,
25155
25209
  ref: forwardedRef,
25156
25210
  passThrough: context.breakpointActive,
25157
25211
  ...contentProps,
25158
25212
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalAdaptSafe, {
25213
+ context,
25159
25214
  children: contents
25160
25215
  })
25161
25216
  }, context.contentId)
25162
25217
  });
25163
25218
  }), PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25164
- var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover || POPOVER_SCOPE);
25219
+ var { scope, ...rest } = props, context = usePopoverContext(scope);
25165
25220
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
25166
25221
  ...rest,
25167
25222
  ref: forwardedRef,
@@ -25171,16 +25226,16 @@ var require_Popover_native = __commonJS({
25171
25226
  return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1, "press");
25172
25227
  })
25173
25228
  });
25174
- }), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
25175
- var { __scopePopover, ...rest } = props, isAdapted = (0, import_adapt.useAdaptIsActive)();
25229
+ }), PopoverArrow = import_popper.PopperArrowFrame.styleable(function(props, forwardedRef) {
25230
+ var { scope, ...rest } = props, context = usePopoverContext(scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
25176
25231
  return isAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperArrow, {
25177
- __scopePopper: __scopePopover || POPOVER_SCOPE,
25232
+ scope,
25178
25233
  componentName: "PopoverArrow",
25179
25234
  ...rest,
25180
25235
  ref: forwardedRef
25181
25236
  });
25182
- }), PopoverScrollView = /* @__PURE__ */ React4.forwardRef(function(props, ref) {
25183
- var context = usePopoverContext(POPOVER_SCOPE);
25237
+ }), PopoverScrollView = /* @__PURE__ */ React4.forwardRef(function(param, ref) {
25238
+ var { scope, ...props } = param, context = usePopoverContext(scope);
25184
25239
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_scroll_view.ScrollView, {
25185
25240
  ref,
25186
25241
  // when adapted, no pointer events!
@@ -25189,14 +25244,16 @@ var require_Popover_native = __commonJS({
25189
25244
  passThrough: context.breakpointActive,
25190
25245
  ...props
25191
25246
  });
25192
- }), Popover = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(props, ref) {
25193
- var id = React4.useId();
25247
+ }), DEFAULT_SCOPE = "", Popover = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(param, ref) {
25248
+ var { scope = DEFAULT_SCOPE, ...props } = param, id = React4.useId(), adaptScope = `PopoverAdapt${scope}`;
25194
25249
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
25195
- scope: `${id}PopoverContents`,
25250
+ scope: adaptScope,
25196
25251
  portal: !0,
25197
25252
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverInner, {
25253
+ adaptScope,
25198
25254
  ref,
25199
25255
  id,
25256
+ scope,
25200
25257
  ...props
25201
25258
  })
25202
25259
  });
@@ -25211,7 +25268,7 @@ var require_Popover_native = __commonJS({
25211
25268
  Sheet: import_sheet.Sheet.Controlled,
25212
25269
  FocusScope: import_focus_scope.FocusScopeController
25213
25270
  }), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
25214
- var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted: keepChildrenMountedProp, hoverable, disableFocus, id, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(void 0), [keepChildrenMounted] = (0, import_use_controllable_state.useControllableState)({
25271
+ var { children, open: openProp, defaultOpen, onOpenChange, scope = DEFAULT_SCOPE, keepChildrenMounted: keepChildrenMountedProp, hoverable, disableFocus, id, adaptScope, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(void 0), [keepChildrenMounted] = (0, import_use_controllable_state.useControllableState)({
25215
25272
  prop: keepChildrenMountedProp,
25216
25273
  defaultProp: !1,
25217
25274
  transition: keepChildrenMountedProp === "lazy"
@@ -25223,7 +25280,7 @@ var require_Popover_native = __commonJS({
25223
25280
  }
25224
25281
  }), handleOpenChange = (0, import_core12.useEvent)(function(val, via) {
25225
25282
  viaRef.current = via, setOpen(val);
25226
- }), isAdapted = (0, import_adapt.useAdaptIsActive)(), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
25283
+ }), isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
25227
25284
  open,
25228
25285
  setOpen: handleOpenChange,
25229
25286
  disable: isAdapted,
@@ -25248,6 +25305,8 @@ var require_Popover_native = __commonJS({
25248
25305
  };
25249
25306
  });
25250
25307
  var popoverContext = {
25308
+ popoverScope: scope,
25309
+ adaptScope,
25251
25310
  id,
25252
25311
  contentId: React4.useId(),
25253
25312
  triggerRef,
@@ -25268,22 +25327,23 @@ var require_Popover_native = __commonJS({
25268
25327
  keepChildrenMounted
25269
25328
  }, memoizedChildren = React4.useMemo(function() {
25270
25329
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
25271
- scope: __scopePopover || POPOVER_SCOPE,
25330
+ scope,
25272
25331
  ...popoverContext,
25273
25332
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverSheetController, {
25333
+ context: popoverContext,
25274
25334
  onOpenChange: setOpen,
25275
25335
  children
25276
25336
  })
25277
25337
  });
25278
25338
  }, [
25279
- __scopePopover,
25339
+ scope,
25280
25340
  setOpen,
25281
25341
  children,
25282
25342
  ...Object.values(popoverContext)
25283
25343
  ]), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.Popper, {
25284
25344
  open,
25285
25345
  passThrough: isAdapted,
25286
- __scopePopper: __scopePopover || POPOVER_SCOPE,
25346
+ scope,
25287
25347
  stayInFrame: !0,
25288
25348
  ...restProps,
25289
25349
  children: memoizedChildren
@@ -25299,7 +25359,7 @@ var require_Popover_native = __commonJS({
25299
25359
  return open ? "open" : "closed";
25300
25360
  }
25301
25361
  var PopoverSheetController = function(param) {
25302
- var { __scopePopover, ...props } = param, context = usePopoverContext(__scopePopover || POPOVER_SCOPE), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core12.useGet)(showSheet);
25362
+ var { context, ...props } = param, showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core12.useGet)(showSheet);
25303
25363
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
25304
25364
  onOpenChange: function(val) {
25305
25365
  if (getShowSheet()) {
@@ -25312,7 +25372,7 @@ var require_Popover_native = __commonJS({
25312
25372
  children: props.children
25313
25373
  });
25314
25374
  }, useShowPopoverSheet = function(context) {
25315
- var isAdapted = (0, import_adapt.useAdaptIsActive)();
25375
+ var isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
25316
25376
  return context.open === !1 ? !1 : isAdapted;
25317
25377
  };
25318
25378
  }
@@ -25425,7 +25485,7 @@ var require_Progress_native = __commonJS({
25425
25485
  }
25426
25486
  });
25427
25487
  module2.exports = __toCommonJS2(Progress_exports);
25428
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native32(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
25488
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
25429
25489
  name: INDICATOR_NAME,
25430
25490
  variants: {
25431
25491
  unstyled: {
@@ -26403,7 +26463,7 @@ var require_RadioGroupStyledContext_native = __commonJS({
26403
26463
  var import_core12 = require_index_native20(), RadioGroupStyledContext = (0, import_core12.createStyledContext)({
26404
26464
  size: "$true",
26405
26465
  scaleIcon: 1
26406
- });
26466
+ }, "RadioGroup");
26407
26467
  }
26408
26468
  });
26409
26469
 
@@ -26690,71 +26750,6 @@ var require_index_native66 = __commonJS({
26690
26750
  }
26691
26751
  });
26692
26752
 
26693
- // ../select/dist/cjs/constants.native.js
26694
- var require_constants_native5 = __commonJS({
26695
- "../select/dist/cjs/constants.native.js"(exports2, module2) {
26696
- "use strict";
26697
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
26698
- for (var name in all) __defProp2(target, name, {
26699
- get: all[name],
26700
- enumerable: !0
26701
- });
26702
- }, __copyProps2 = function(to, from, except, desc) {
26703
- var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
26704
- if (from && typeof from == "object" || typeof from == "function") try {
26705
- for (var _loop = function() {
26706
- var key = _step.value;
26707
- !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
26708
- get: function() {
26709
- return from[key];
26710
- },
26711
- enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
26712
- });
26713
- }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
26714
- } catch (err) {
26715
- _didIteratorError = !0, _iteratorError = err;
26716
- } finally {
26717
- try {
26718
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
26719
- } finally {
26720
- if (_didIteratorError)
26721
- throw _iteratorError;
26722
- }
26723
- }
26724
- return to;
26725
- }, __toCommonJS2 = function(mod) {
26726
- return __copyProps2(__defProp2({}, "__esModule", {
26727
- value: !0
26728
- }), mod);
26729
- }, constants_exports = {};
26730
- __export2(constants_exports, {
26731
- FALLBACK_THRESHOLD: function() {
26732
- return FALLBACK_THRESHOLD;
26733
- },
26734
- MIN_HEIGHT: function() {
26735
- return MIN_HEIGHT;
26736
- },
26737
- SCROLL_ARROW_THRESHOLD: function() {
26738
- return SCROLL_ARROW_THRESHOLD;
26739
- },
26740
- SCROLL_ARROW_VELOCITY: function() {
26741
- return SCROLL_ARROW_VELOCITY;
26742
- },
26743
- SELECT_NAME: function() {
26744
- return SELECT_NAME;
26745
- },
26746
- VIEWPORT_NAME: function() {
26747
- return VIEWPORT_NAME;
26748
- },
26749
- WINDOW_PADDING: function() {
26750
- return WINDOW_PADDING;
26751
- }
26752
- });
26753
- module2.exports = __toCommonJS2(constants_exports);
26754
- var SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
26755
- }
26756
- });
26757
-
26758
26753
  // ../select/dist/cjs/context.native.js
26759
26754
  var require_context_native2 = __commonJS({
26760
26755
  "../select/dist/cjs/context.native.js"(exports2, module2) {
@@ -26802,18 +26797,6 @@ var require_context_native2 = __commonJS({
26802
26797
  SelectProvider: function() {
26803
26798
  return SelectProvider;
26804
26799
  },
26805
- createSelectContext: function() {
26806
- return createSelectContext;
26807
- },
26808
- createSelectItemParentContext: function() {
26809
- return createSelectItemParentContext;
26810
- },
26811
- createSelectItemParentScope: function() {
26812
- return createSelectItemParentScope;
26813
- },
26814
- createSelectScope: function() {
26815
- return createSelectScope;
26816
- },
26817
26800
  useSelectContext: function() {
26818
26801
  return useSelectContext;
26819
26802
  },
@@ -26822,14 +26805,14 @@ var require_context_native2 = __commonJS({
26822
26805
  }
26823
26806
  });
26824
26807
  module2.exports = __toCommonJS2(context_exports);
26825
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context = require_index_native32(), import_constants4 = require_constants_native5(), [createSelectContext, createSelectScope] = (0, import_create_context.createContextScope)(import_constants4.SELECT_NAME), [SelectProvider, useSelectContext] = createSelectContext(import_constants4.SELECT_NAME), [createSelectItemParentContext, createSelectItemParentScope] = (0, import_create_context.createContextScope)(import_constants4.SELECT_NAME), [SelectItemParentProvider, useSelectItemParentContext] = createSelectContext(import_constants4.SELECT_NAME), ForwardSelectContext = function(param) {
26826
- var { __scopeSelect, context, itemContext, children } = param;
26808
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), { Provider: SelectProvider, useStyledContext: useSelectContext } = (0, import_core12.createStyledContext)(null, "Select"), { Provider: SelectItemParentProvider, useStyledContext: useSelectItemParentContext } = (0, import_core12.createStyledContext)(null, "SelectItem"), ForwardSelectContext = function(param) {
26809
+ var { context, itemContext, children } = param;
26827
26810
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectProvider, {
26828
26811
  isInSheet: !0,
26829
- scope: __scopeSelect,
26812
+ scope: context.scopeName,
26830
26813
  ...context,
26831
26814
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemParentProvider, {
26832
- scope: __scopeSelect,
26815
+ scope: context.scopeName,
26833
26816
  ...itemContext,
26834
26817
  children
26835
26818
  })
@@ -27000,13 +26983,13 @@ var require_SelectItem_native = __commonJS({
27000
26983
  }
27001
26984
  });
27002
26985
  module2.exports = __toCommonJS2(SelectItem_exports);
27003
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_list_item = require_index_native56(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = (0, import_context.createSelectContext)(ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(function(props, forwardedRef) {
27004
- var { __scopeSelect, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
26986
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_list_item = require_index_native56(), import_core12 = require_index_native20(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem", { Provider: SelectItemContextProvider, useStyledContext: useSelectItemContext } = (0, import_core12.createStyledContext)(null, ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(function(props, forwardedRef) {
26987
+ var { scope, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
27005
26988
  ...!props.unstyled && {
27006
26989
  ellipse: !0
27007
26990
  },
27008
26991
  ...restProps
27009
- }), context = (0, import_context.useSelectItemParentContext)(ITEM_NAME, __scopeSelect), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue === value);
26992
+ }), context = (0, import_context.useSelectItemParentContext)(scope), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue === value);
27010
26993
  React4.useEffect(function() {
27011
26994
  return activeIndexSubscribe(function(i) {
27012
26995
  var isActive = index === i;
@@ -27063,7 +27046,7 @@ var require_SelectItem_native = __commonJS({
27063
27046
  handleSelect
27064
27047
  ]);
27065
27048
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemContextProvider, {
27066
- scope: __scopeSelect,
27049
+ scope,
27067
27050
  value,
27068
27051
  textId: textId || "",
27069
27052
  isSelected,
@@ -27180,16 +27163,16 @@ var require_SelectItemText_native = __commonJS({
27180
27163
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
27181
27164
  }
27182
27165
  }), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
27183
- var { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React4.useRef(null);
27166
+ var { scope, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(scope), contents = React4.useRef(null);
27184
27167
  return contents.current = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemTextFrame, {
27185
27168
  className,
27186
27169
  size: itemParentContext.size,
27187
27170
  id: itemContext.textId,
27188
27171
  ...itemTextProps,
27189
27172
  ref: composedRefs
27190
- }), React4.useEffect(function() {
27173
+ }), (0, import_core12.useIsomorphicLayoutEffect)(function() {
27191
27174
  itemParentContext.initialValue === itemContext.value && !context.selectedIndex && context.setSelectedItem(contents.current);
27192
- }, []), React4.useEffect(function() {
27175
+ }, []), (0, import_core12.useIsomorphicLayoutEffect)(function() {
27193
27176
  return itemParentContext.valueSubscribe(function(val) {
27194
27177
  val === itemContext.value && context.setSelectedItem(contents.current);
27195
27178
  });
@@ -27314,7 +27297,7 @@ var require_SelectTrigger_native = __commonJS({
27314
27297
  });
27315
27298
  module2.exports = __toCommonJS2(SelectTrigger_exports);
27316
27299
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_core12 = require_index_native20(), import_list_item = require_index_native56(), React4 = __toESM2(require("react")), import_context = require_context_native2(), TRIGGER_NAME = "SelectTrigger", isPointerCoarse = import_core12.isWeb && import_core12.isClient ? window.matchMedia("(pointer:coarse)").matches : !0, SelectTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
27317
- var _context_floatingContext, { __scopeSelect, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(TRIGGER_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(TRIGGER_NAME, __scopeSelect), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (_context_floatingContext = context.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
27300
+ var _context_floatingContext, { scope, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (_context_floatingContext = context.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
27318
27301
  return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
27319
27302
  componentName: TRIGGER_NAME,
27320
27303
  unstyled,
@@ -27351,6 +27334,71 @@ var require_SelectTrigger_native = __commonJS({
27351
27334
  }
27352
27335
  });
27353
27336
 
27337
+ // ../select/dist/cjs/constants.native.js
27338
+ var require_constants_native5 = __commonJS({
27339
+ "../select/dist/cjs/constants.native.js"(exports2, module2) {
27340
+ "use strict";
27341
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
27342
+ for (var name in all) __defProp2(target, name, {
27343
+ get: all[name],
27344
+ enumerable: !0
27345
+ });
27346
+ }, __copyProps2 = function(to, from, except, desc) {
27347
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
27348
+ if (from && typeof from == "object" || typeof from == "function") try {
27349
+ for (var _loop = function() {
27350
+ var key = _step.value;
27351
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
27352
+ get: function() {
27353
+ return from[key];
27354
+ },
27355
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
27356
+ });
27357
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
27358
+ } catch (err) {
27359
+ _didIteratorError = !0, _iteratorError = err;
27360
+ } finally {
27361
+ try {
27362
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
27363
+ } finally {
27364
+ if (_didIteratorError)
27365
+ throw _iteratorError;
27366
+ }
27367
+ }
27368
+ return to;
27369
+ }, __toCommonJS2 = function(mod) {
27370
+ return __copyProps2(__defProp2({}, "__esModule", {
27371
+ value: !0
27372
+ }), mod);
27373
+ }, constants_exports = {};
27374
+ __export2(constants_exports, {
27375
+ FALLBACK_THRESHOLD: function() {
27376
+ return FALLBACK_THRESHOLD;
27377
+ },
27378
+ MIN_HEIGHT: function() {
27379
+ return MIN_HEIGHT;
27380
+ },
27381
+ SCROLL_ARROW_THRESHOLD: function() {
27382
+ return SCROLL_ARROW_THRESHOLD;
27383
+ },
27384
+ SCROLL_ARROW_VELOCITY: function() {
27385
+ return SCROLL_ARROW_VELOCITY;
27386
+ },
27387
+ SELECT_NAME: function() {
27388
+ return SELECT_NAME;
27389
+ },
27390
+ VIEWPORT_NAME: function() {
27391
+ return VIEWPORT_NAME;
27392
+ },
27393
+ WINDOW_PADDING: function() {
27394
+ return WINDOW_PADDING;
27395
+ }
27396
+ });
27397
+ module2.exports = __toCommonJS2(constants_exports);
27398
+ var SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
27399
+ }
27400
+ });
27401
+
27354
27402
  // ../select/dist/cjs/SelectViewport.native.js
27355
27403
  var require_SelectViewport_native = __commonJS({
27356
27404
  "../select/dist/cjs/SelectViewport.native.js"(exports2, module2) {
@@ -27395,12 +27443,12 @@ var require_SelectViewport_native = __commonJS({
27395
27443
  });
27396
27444
  module2.exports = __toCommonJS2(SelectViewport_native_exports);
27397
27445
  var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_core12 = require_index_native20(), import_constants4 = require_constants_native5(), import_context = require_context_native2(), SelectViewport = function(props) {
27398
- var { __scopeSelect, children } = props, context = (0, import_context.useSelectContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)();
27446
+ var { scope, children } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)();
27399
27447
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
27448
+ scope: context.adaptScope,
27400
27449
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
27401
27450
  name: themeName,
27402
27451
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.ForwardSelectContext, {
27403
- __scopeSelect,
27404
27452
  itemContext: itemParentContext,
27405
27453
  context,
27406
27454
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptContext.Provider, {
@@ -27459,7 +27507,7 @@ var require_useSelectBreakpointActive_native = __commonJS({
27459
27507
  });
27460
27508
  module2.exports = __toCommonJS2(useSelectBreakpointActive_exports);
27461
27509
  var import_adapt = require_index_native31(), useShowSelectSheet = function(context) {
27462
- var breakpointActive = (0, import_adapt.useAdaptIsActive)();
27510
+ var breakpointActive = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
27463
27511
  return context.open === !1 ? !1 : breakpointActive;
27464
27512
  };
27465
27513
  }
@@ -27533,7 +27581,7 @@ var require_Select_native = __commonJS({
27533
27581
  name: VALUE_NAME,
27534
27582
  userSelect: "none"
27535
27583
  }), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
27536
- var { __scopeSelect, children: childrenProp, placeholder, ...props } = param, context = (0, import_context.useSelectContext)(VALUE_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(VALUE_NAME, __scopeSelect), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.onValueNodeChange), children = childrenProp ?? context.selectedItem, isEmptyValue = context.value == null || context.value === "", selectValueChildren = isEmptyValue ? placeholder ?? children : children;
27584
+ var { scope, children: childrenProp, placeholder, ...props } = param, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.onValueNodeChange), children = childrenProp ?? context.selectedItem, isEmptyValue = context.value == null || context.value === "", selectValueChildren = isEmptyValue ? placeholder ?? children : children;
27537
27585
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectValueFrame, {
27538
27586
  ...!props.unstyled && {
27539
27587
  size: itemParentContext.size,
@@ -27564,18 +27612,18 @@ var require_Select_native = __commonJS({
27564
27612
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_text2.Paragraph, {
27565
27613
  children: "\u25BC"
27566
27614
  })
27567
- }), ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicatorFrame = (0, import_core12.styled)(import_stacks3.XStack, {
27568
- name: import_SelectItemText.ITEM_TEXT_NAME
27615
+ }), SelectItemIndicatorFrame = (0, import_core12.styled)(import_stacks3.XStack, {
27616
+ name: "SelectItemIndicator"
27569
27617
  }), SelectItemIndicator = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
27570
- var { __scopeSelect, ...itemIndicatorProps } = props, context = (0, import_context.useSelectItemParentContext)(ITEM_INDICATOR_NAME, __scopeSelect), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_INDICATOR_NAME, __scopeSelect);
27618
+ var { scope, ...itemIndicatorProps } = props, context = (0, import_context.useSelectItemParentContext)(scope), itemContext = (0, import_SelectItem.useSelectItemContext)(scope);
27571
27619
  return context.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemIndicatorFrame, {
27572
27620
  "aria-hidden": !0,
27573
27621
  ...itemIndicatorProps,
27574
27622
  ref: forwardedRef
27575
27623
  }) : null;
27576
- });
27577
- SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
27578
- var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupContext] = (0, import_context.createSelectContext)(GROUP_NAME), SelectGroupFrame = (0, import_core12.styled)(import_stacks3.YStack, {
27624
+ }), GROUP_NAME = "SelectGroup", { Provider: SelectGroupContextProvider, useStyledContext: useSelectGroupContext } = (0, import_core12.createStyledContext)({
27625
+ id: ""
27626
+ }, "SelectGroup"), SelectGroupFrame = (0, import_core12.styled)(import_stacks3.YStack, {
27579
27627
  name: GROUP_NAME,
27580
27628
  width: "100%"
27581
27629
  }), NativeSelectTextFrame = (0, import_core12.styled)(import_text2.SizableText, {
@@ -27611,7 +27659,7 @@ var require_Select_native = __commonJS({
27611
27659
  size: "$2"
27612
27660
  }
27613
27661
  }), SelectGroup = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
27614
- var { __scopeSelect, ...groupProps } = props, groupId = React4.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), _itemParentContext_size, size2 = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React4.useRef(null), content = function() {
27662
+ var { scope, ...groupProps } = props, groupId = React4.useId(), context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), _itemParentContext_size, size2 = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React4.useRef(null), content = function() {
27615
27663
  return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, {
27616
27664
  asChild: !0,
27617
27665
  size: size2,
@@ -27641,14 +27689,14 @@ var require_Select_native = __commonJS({
27641
27689
  });
27642
27690
  }();
27643
27691
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectGroupContextProvider, {
27644
- scope: __scopeSelect,
27692
+ scope,
27645
27693
  id: groupId || "",
27646
27694
  children: content
27647
27695
  });
27648
27696
  });
27649
27697
  SelectGroup.displayName = GROUP_NAME;
27650
27698
  var LABEL_NAME = "SelectLabel", SelectLabel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
27651
- var { __scopeSelect, ...labelProps } = props, context = (0, import_context.useSelectItemParentContext)(LABEL_NAME, __scopeSelect), groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
27699
+ var { scope, ...labelProps } = props, context = (0, import_context.useSelectItemParentContext)(scope), groupContext = useSelectGroupContext(scope);
27652
27700
  return context.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
27653
27701
  tag: "div",
27654
27702
  componentName: LABEL_NAME,
@@ -27663,7 +27711,7 @@ var require_Select_native = __commonJS({
27663
27711
  var SelectSeparator = (0, import_core12.styled)(import_separator.Separator, {
27664
27712
  name: "SelectSeparator"
27665
27713
  }), SelectSheetController = function(props) {
27666
- var context = (0, import_context.useSelectContext)("SelectSheetController", props.__scopeSelect), showSheet = (0, import_useSelectBreakpointActive.useShowSelectSheet)(context), isAdapted = (0, import_adapt.useAdaptIsActive)(), getShowSheet = (0, import_core12.useGet)(showSheet);
27714
+ var context = (0, import_context.useSelectContext)(props.scope), showSheet = (0, import_useSelectBreakpointActive.useShowSelectSheet)(context), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), getShowSheet = (0, import_core12.useGet)(showSheet);
27667
27715
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
27668
27716
  onOpenChange: function(val) {
27669
27717
  getShowSheet() && props.onOpenChange(val);
@@ -27677,12 +27725,13 @@ var require_Select_native = __commonJS({
27677
27725
  children: props.children
27678
27726
  });
27679
27727
  }, Select = (0, import_helpers.withStaticProperties)(function(props) {
27680
- var internalId = React4.useId(), _Object_keys_, scopeKey = props.__scopeSelect && (_Object_keys_ = Object.keys(props.__scopeSelect)[0]) !== null && _Object_keys_ !== void 0 ? _Object_keys_ : internalId;
27728
+ var adaptScope = `AdaptSelect${props.scope || ""}`;
27681
27729
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
27682
- scope: `${scopeKey}SheetContents`,
27730
+ scope: adaptScope,
27683
27731
  portal: !0,
27684
27732
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectInner, {
27685
- scopeKey,
27733
+ scope: props.scope,
27734
+ adaptScope,
27686
27735
  ...props
27687
27736
  })
27688
27737
  });
@@ -27721,7 +27770,7 @@ var require_Select_native = __commonJS({
27721
27770
  ];
27722
27771
  }
27723
27772
  function SelectInner(props) {
27724
- var { __scopeSelect, native, children, open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disablePreventBodyScroll, size: sizeProp = "$true", onActiveChange, dir, id } = props, isAdapted = (0, import_adapt.useAdaptIsActive)(), SelectImpl = isAdapted || !import_constants4.isWeb ? SelectSheetImpl : import_SelectImpl.SelectInlineImpl, forceUpdate = React4.useReducer(function() {
27773
+ var { scope = "", adaptScope, native, children, open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disablePreventBodyScroll, size: sizeProp = "$true", onActiveChange, dir, id } = props, isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope), SelectImpl = isAdapted || !import_constants4.isWeb ? SelectSheetImpl : import_SelectImpl.SelectInlineImpl, forceUpdate = React4.useReducer(function() {
27725
27774
  return {};
27726
27775
  }, {})[1], [selectedItem, setSelectedItem] = React4.useState(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
27727
27776
  prop: openProp,
@@ -27764,7 +27813,9 @@ var require_Select_native = __commonJS({
27764
27813
  });
27765
27814
  }, 1, {}, []);
27766
27815
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.SelectItemParentProvider, {
27767
- scope: __scopeSelect,
27816
+ scopeName: scope,
27817
+ scope,
27818
+ adaptScope,
27768
27819
  initialValue: React4.useMemo(function() {
27769
27820
  return value;
27770
27821
  }, [
@@ -27778,9 +27829,8 @@ var require_Select_native = __commonJS({
27778
27829
  onChange: React4.useCallback(function(val) {
27779
27830
  setValue(val), emitValue(val);
27780
27831
  }, []),
27781
- onActiveChange: (0, import_core12.useEvent)(function() {
27782
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
27783
- onActiveChange == null || onActiveChange(...args);
27832
+ onActiveChange: (0, import_core12.useEvent)(function(value2, index) {
27833
+ onActiveChange == null || onActiveChange(value2, index);
27784
27834
  }),
27785
27835
  setSelectedIndex,
27786
27836
  setValueAtIndex: React4.useCallback(function(index, value2) {
@@ -27788,7 +27838,9 @@ var require_Select_native = __commonJS({
27788
27838
  }, []),
27789
27839
  shouldRenderWebNative,
27790
27840
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.SelectProvider, {
27791
- scope: __scopeSelect,
27841
+ scope,
27842
+ scopeName: scope,
27843
+ adaptScope,
27792
27844
  disablePreventBodyScroll,
27793
27845
  dir,
27794
27846
  blockSelection: !1,
@@ -27798,7 +27850,6 @@ var require_Select_native = __commonJS({
27798
27850
  forceUpdate,
27799
27851
  valueNode,
27800
27852
  onValueNodeChange: setValueNode,
27801
- scopeKey: props.scopeKey,
27802
27853
  activeIndex,
27803
27854
  selectedIndex,
27804
27855
  setActiveIndex: setActiveIndexDebounced,
@@ -27807,7 +27858,7 @@ var require_Select_native = __commonJS({
27807
27858
  native,
27808
27859
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectSheetController, {
27809
27860
  onOpenChange: setOpen,
27810
- __scopeSelect,
27861
+ scope,
27811
27862
  children: shouldRenderWebNative ? children : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectImpl, {
27812
27863
  activeIndexRef,
27813
27864
  listContentRef,
@@ -30748,6 +30799,71 @@ var require_index_native74 = __commonJS({
30748
30799
  }
30749
30800
  });
30750
30801
 
30802
+ // ../../core/use-window-dimensions/dist/cjs/helpers.native.js
30803
+ var require_helpers_native4 = __commonJS({
30804
+ "../../core/use-window-dimensions/dist/cjs/helpers.native.js"(exports2, module2) {
30805
+ "use strict";
30806
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
30807
+ for (var name in all) __defProp2(target, name, {
30808
+ get: all[name],
30809
+ enumerable: !0
30810
+ });
30811
+ }, __copyProps2 = function(to, from, except, desc) {
30812
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
30813
+ if (from && typeof from == "object" || typeof from == "function") try {
30814
+ for (var _loop = function() {
30815
+ var key = _step.value;
30816
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
30817
+ get: function() {
30818
+ return from[key];
30819
+ },
30820
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
30821
+ });
30822
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
30823
+ } catch (err) {
30824
+ _didIteratorError = !0, _iteratorError = err;
30825
+ } finally {
30826
+ try {
30827
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
30828
+ } finally {
30829
+ if (_didIteratorError)
30830
+ throw _iteratorError;
30831
+ }
30832
+ }
30833
+ return to;
30834
+ }, __toCommonJS2 = function(mod) {
30835
+ return __copyProps2(__defProp2({}, "__esModule", {
30836
+ value: !0
30837
+ }), mod);
30838
+ }, helpers_native_exports = {};
30839
+ __export2(helpers_native_exports, {
30840
+ getWindowSize: function() {
30841
+ return getWindowSize;
30842
+ },
30843
+ subscribe: function() {
30844
+ return subscribe;
30845
+ }
30846
+ });
30847
+ module2.exports = __toCommonJS2(helpers_native_exports);
30848
+ var import_react_native4 = require_fake_react_native();
30849
+ function getWindowSize() {
30850
+ return import_react_native4.Dimensions.get("window");
30851
+ }
30852
+ var cbs = /* @__PURE__ */ new Set();
30853
+ import_react_native4.Dimensions.addEventListener("change", function(param) {
30854
+ var { window: window2 } = param;
30855
+ cbs.forEach(function(cb) {
30856
+ return cb(window2);
30857
+ });
30858
+ });
30859
+ function subscribe(cb) {
30860
+ return cbs.add(cb), function() {
30861
+ return cbs.delete(cb);
30862
+ };
30863
+ }
30864
+ }
30865
+ });
30866
+
30751
30867
  // ../../core/use-window-dimensions/dist/cjs/index.native.js
30752
30868
  var require_index_native75 = __commonJS({
30753
30869
  "../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
@@ -30806,30 +30922,19 @@ var require_index_native75 = __commonJS({
30806
30922
  }
30807
30923
  });
30808
30924
  module2.exports = __toCommonJS2(index_exports2);
30809
- var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_react_native4 = require_fake_react_native(), initialValue = {
30810
- height: 800,
30811
- width: 600
30925
+ var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(), initialValue = {
30926
+ width: 800,
30927
+ height: 600,
30928
+ scale: 1,
30929
+ fontScale: 1
30812
30930
  };
30813
30931
  function configureInitialWindowDimensions(next) {
30814
30932
  Object.assign(initialValue, next);
30815
30933
  }
30816
- import_react_native4.Dimensions.addEventListener("change", function() {
30817
- cbs.forEach(function(cb) {
30818
- return cb(window);
30819
- });
30820
- });
30821
- var cbs = /* @__PURE__ */ new Set();
30822
- function subscribe(cb) {
30823
- return cbs.add(cb), function() {
30824
- return cbs.delete(cb);
30825
- };
30826
- }
30827
30934
  function useWindowDimensions() {
30828
30935
  var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
30829
- return import_react3.default.useSyncExternalStore(subscribe, function() {
30830
- return import_react_native4.Dimensions.get("window");
30831
- }, function() {
30832
- return import_constants4.isWeb ? serverValue : import_react_native4.Dimensions.get("window");
30936
+ return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
30937
+ return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
30833
30938
  });
30834
30939
  }
30835
30940
  }
@@ -31040,7 +31145,7 @@ __reExport(index_exports, __toESM(require_index_native46()), module.exports);
31040
31145
  __reExport(index_exports, __toESM(require_index_native47()), module.exports);
31041
31146
  __reExport(index_exports, __toESM(require_index_native52()), module.exports);
31042
31147
  __reExport(index_exports, __toESM(require_index_native11()), module.exports);
31043
- __reExport(index_exports, __toESM(require_index_native32()), module.exports);
31148
+ __reExport(index_exports, __toESM(require_index_native33()), module.exports);
31044
31149
  __reExport(index_exports, __toESM(require_index_native39()), module.exports);
31045
31150
  __reExport(index_exports, __toESM(require_index_native44()), module.exports);
31046
31151
  __reExport(index_exports, __toESM(require_index_native53()), module.exports);