@tamagui/adapt 3.0.0-beta.669.1 → 3.0.0-beta.719.1

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.
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"Adapt.native.js","names":[],"sources":["cjs/Adapt.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Adapt_exports = {};\n__export(Adapt_exports, {\n Adapt: () => Adapt,\n AdaptCapabilities: () => AdaptCapabilities,\n AdaptContents: () => AdaptContents,\n AdaptContext: () => AdaptContext,\n AdaptParent: () => AdaptParent,\n AdaptPortalContents: () => AdaptPortalContents,\n ProvideAdaptContext: () => ProvideAdaptContext,\n useAdaptContext: () => useAdaptContext,\n useAdaptIsActive: () => useAdaptIsActive,\n useAdaptTarget: () => useAdaptTarget,\n useAdaptedCapabilities: () => useAdaptedCapabilities\n});\nmodule.exports = __toCommonJS(Adapt_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_z_index_stack = require(\"@tamagui/z-index-stack\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"platform\",\n \"setPlatform\",\n \"when\",\n \"setWhen\",\n \"active\",\n \"rawActive\",\n \"setRawActive\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = (0, import_core.createStyledContext)({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n platform: null,\n setPlatform: function(x) {\n },\n when: null,\n setWhen: function() {\n },\n active: false,\n rawActive: false,\n setRawActive: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ (0, import_react.createContext)({});\nvar LastAdaptContextScope = /* @__PURE__ */ (0, import_react.createContext)(\"\");\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = (0, import_react.useContext)(LastAdaptContextScope);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = (0, import_react.useContext)(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nvar AdaptParent = function(param) {\n var { children, Contents, scope, open, onOpenChange, state } = param;\n var id = (0, import_react.useId)();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = import_react.default.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var [when, setWhen] = import_react.default.useState(null);\n var [platform, setPlatform] = import_react.default.useState(null);\n var [rawActive, setRawActive] = import_react.default.useState(false);\n var [exiting, setExiting] = import_react.default.useState(false);\n var [present, setPresent] = import_react.default.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = import_react.default.useState(!open);\n var targetCountRef = import_react.default.useRef(0);\n var contentsCountRef = import_react.default.useRef(0);\n var renderCallbackCountRef = import_react.default.useRef(0);\n var rawActiveRef = import_react.default.useRef(false);\n var openRef = import_react.default.useRef(open);\n var wasTargetHiddenRef = import_react.default.useRef(!rawActive);\n var hasHadActiveTargetRef = import_react.default.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n var releasePresenceLatch = import_react.default.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = import_react.default.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = import_react.default.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = import_react.default.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = import_react.default.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = import_react.default.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = import_react.default.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = import_react.default.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n import_react.default.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProvideAdaptContext, {\n Contents: FinalContents,\n when,\n platform,\n setPlatform,\n setWhen,\n active,\n rawActive,\n setRawActive,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ import_react.default.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n });\n};\nAdaptContents.shouldForwardSpace = true;\nvar Adapt = (0, import_helpers.withStaticProperties)(function Adapt2(props) {\n var { platform, when, children, scope } = props;\n var context = useAdaptContext(scope);\n var rawEnabled = useAdaptIsActiveGiven(props);\n var enabled = rawEnabled || context.active;\n var isRenderCallback = typeof children === \"function\";\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, when || rawEnabled);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, platform || null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, rawEnabled);\n }, [\n when,\n platform,\n rawEnabled,\n context.setWhen,\n context.setPlatform,\n context.setRawActive\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n return function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);\n };\n }, []);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_z_index_stack.StackZIndexContext, {\n children: !enabled ? null : output\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n import_react.default.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = import_react.default.useRef(false);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!slot) return;\n if (isActive) {\n slot.publish(children);\n publishedRef.current = true;\n } else {\n slot.clear();\n publishedRef.current = false;\n }\n slot.notify();\n });\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n return function() {\n if (publishedRef.current) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n publishedRef.current = false;\n }\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(param) {\n var { when, platform } = param;\n var media = (0, import_core.useMedia)();\n if (when == null && platform == null) {\n return false;\n }\n if (when === true) {\n return true;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = import_constants.isTouchable;\n else if (platform === \"native\") enabled = !import_constants.isWeb;\n else if (platform === \"web\") enabled = import_constants.isWeb;\n else if (platform === \"ios\") enabled = import_constants.isIos;\n else if (platform === \"android\") enabled = import_constants.isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n var props = useAdaptContext(scope);\n var isActiveGiven = useAdaptIsActiveGiven(props);\n return props.active || isActiveGiven;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!context.active) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget\n ]);\n if (!context.active) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = (0, import_react.useContext)(AdaptCapabilitiesContext);\n var value = import_react.default.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return (0, import_react.useContext)(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE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Q;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
1
+ {"version":3,"file":"Adapt.native.js","names":[],"sources":["cjs/Adapt.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Adapt_exports = {};\n__export(Adapt_exports, {\n Adapt: () => Adapt,\n AdaptCapabilities: () => AdaptCapabilities,\n AdaptContents: () => AdaptContents,\n AdaptContext: () => AdaptContext,\n AdaptParent: () => AdaptParent,\n AdaptPortalContents: () => AdaptPortalContents,\n ProvideAdaptContext: () => ProvideAdaptContext,\n useAdaptContext: () => useAdaptContext,\n useAdaptIsActive: () => useAdaptIsActive,\n useAdaptTarget: () => useAdaptTarget,\n useAdaptedCapabilities: () => useAdaptedCapabilities\n});\nmodule.exports = __toCommonJS(Adapt_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_z_index_stack = require(\"@tamagui/z-index-stack\");\nvar import_react = __toESM(require(\"react\"), 1);\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"platform\",\n \"setPlatform\",\n \"when\",\n \"setWhen\",\n \"active\",\n \"rawActive\",\n \"setRawActive\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = (0, import_core.createStyledContext)({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n platform: null,\n setPlatform: function(x) {\n },\n when: null,\n setWhen: function() {\n },\n active: false,\n rawActive: false,\n setRawActive: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ (0, import_react.createContext)({});\nvar LastAdaptContextScope = /* @__PURE__ */ (0, import_react.createContext)(\"\");\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = (0, import_react.useContext)(LastAdaptContextScope);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = (0, import_react.useContext)(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nvar AdaptParent = function(param) {\n var { children, Contents, scope, open, onOpenChange, state } = param;\n var id = (0, import_react.useId)();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = import_react.default.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var [when, setWhen] = import_react.default.useState(null);\n var [platform, setPlatform] = import_react.default.useState(null);\n var [rawActive, setRawActive] = import_react.default.useState(false);\n var [exiting, setExiting] = import_react.default.useState(false);\n var [present, setPresent] = import_react.default.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = import_react.default.useState(!open);\n var targetCountRef = import_react.default.useRef(0);\n var contentsCountRef = import_react.default.useRef(0);\n var renderCallbackCountRef = import_react.default.useRef(0);\n var rawActiveRef = import_react.default.useRef(false);\n var openRef = import_react.default.useRef(open);\n var wasTargetHiddenRef = import_react.default.useRef(!rawActive);\n var hasHadActiveTargetRef = import_react.default.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n var releasePresenceLatch = import_react.default.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = import_react.default.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = import_react.default.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = import_react.default.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = import_react.default.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = import_react.default.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = import_react.default.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = import_react.default.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n import_react.default.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProvideAdaptContext, {\n Contents: FinalContents,\n when,\n platform,\n setPlatform,\n setWhen,\n active,\n rawActive,\n setRawActive,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ import_react.default.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n });\n};\nAdaptContents.shouldForwardSpace = true;\nvar Adapt = (0, import_helpers.withStaticProperties)(function Adapt2(props) {\n var { platform, when, children, scope } = props;\n var context = useAdaptContext(scope);\n var rawEnabled = useAdaptIsActiveGiven(props);\n var enabled = rawEnabled || context.active;\n var isRenderCallback = typeof children === \"function\";\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, when || rawEnabled);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, platform || null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, rawEnabled);\n }, [\n when,\n platform,\n rawEnabled,\n context.setWhen,\n context.setPlatform,\n context.setRawActive\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n return function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);\n };\n }, []);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_z_index_stack.StackZIndexContext, {\n children: !enabled ? null : output\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n import_react.default.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = import_react.default.useRef(false);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!slot) return;\n if (isActive) {\n slot.publish(children);\n publishedRef.current = true;\n } else {\n slot.clear();\n publishedRef.current = false;\n }\n slot.notify();\n });\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n return function() {\n if (publishedRef.current) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n publishedRef.current = false;\n }\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(param) {\n var { when, platform } = param;\n var media = (0, import_core.useMedia)();\n if (when == null && platform == null) {\n return false;\n }\n if (when === true) {\n return true;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = import_constants.isTouchable;\n else if (platform === \"native\") enabled = !import_constants.isWeb;\n else if (platform === \"web\") enabled = import_constants.isWeb;\n else if (platform === \"ios\") enabled = import_constants.isIos;\n else if (platform === \"android\") enabled = import_constants.isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n var props = useAdaptContext(scope);\n var isActiveGiven = useAdaptIsActiveGiven(props);\n return props.active || isActiveGiven;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n (0, import_constants.useIsomorphicLayoutEffect)(function() {\n if (!context.active) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget\n ]);\n if (!context.active) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = (0, import_react.useContext)(AdaptCapabilitiesContext);\n var value = import_react.default.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return (0, import_react.useContext)(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,aAAa;CACb,yBAAyB;CACzB,qBAAq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AC,QAAQ,QAAQ;EACrB,QAAQ,eAAe;EACvB,OAAO,WAAW;GAChB,QAAQ,iBAAiB;EAC3B;CACF,GAAG;EACD,QAAQ;EACR,QAAQ;EACR,QAAQ;CACV,CAAC;CACD,IAAI,CAAC,QAAQ,QAAQ;EACnB,OAAO;CACT;CACA,OAAO;EACL,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,SAAS,QAAQ;EACjB,OAAO,QAAQ;CACjB;AACF;AACA,IAAI,oBAAoB,SAAS,OAAO;CACtC,IAAI,EAAE,UAAU,QAAQ,SAAS,YAAY;CAC7C,IAAI,UAAU,GAAG,aAAa,WAAU,CAAE,wBAAwB;CAClE,IAAI,QAAQ,aAAa,QAAQ,QAAQ,WAAW;EAClD,OAAO;GACL,QAAQ,WAAW,QAAQ,WAAW,KAAK,IAAI,SAAS,OAAO;GAC/D,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;GACnE,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;EACrE;CACF,GAAG;EACD;EACA;EACA,OAAO;EACP,OAAO;EACP,OAAO;EACP;CACF,CAAC;CACD,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,yBAAyB,UAAU;EACpF;EACA;CACF,CAAC;AACH;AACA,IAAI,yBAAyB,WAAW;CACtC,QAAQ,GAAG,aAAa,WAAU,CAAE,wBAAwB;AAC9D;AACA,SAAS,oBAAoB,SAAS;CACpC,OAAO;EACL,QAAQ,QAAQ;EAChB,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Adapt\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Adapt\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"Adapt.native.js","names":["_Fragment"],"sources":["esm/Adapt.native.js"],"sourcesContent":["import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { createStyledContext, useMedia } from \"@tamagui/core\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { StackZIndexContext } from \"@tamagui/z-index-stack\";\nimport React, { createContext, useContext, useId } from \"react\";\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"platform\",\n \"setPlatform\",\n \"when\",\n \"setWhen\",\n \"active\",\n \"rawActive\",\n \"setRawActive\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = createStyledContext({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n platform: null,\n setPlatform: function(x) {\n },\n when: null,\n setWhen: function() {\n },\n active: false,\n rawActive: false,\n setRawActive: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ createContext({});\nvar LastAdaptContextScope = /* @__PURE__ */ createContext(\"\");\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = useContext(LastAdaptContextScope);\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ _jsx(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = useContext(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nvar AdaptParent = function(param) {\n var { children, Contents, scope, open, onOpenChange, state } = param;\n var id = useId();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = React.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var [when, setWhen] = React.useState(null);\n var [platform, setPlatform] = React.useState(null);\n var [rawActive, setRawActive] = React.useState(false);\n var [exiting, setExiting] = React.useState(false);\n var [present, setPresent] = React.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = React.useState(!open);\n var targetCountRef = React.useRef(0);\n var contentsCountRef = React.useRef(0);\n var renderCallbackCountRef = React.useRef(0);\n var rawActiveRef = React.useRef(false);\n var openRef = React.useRef(open);\n var wasTargetHiddenRef = React.useRef(!rawActive);\n var hasHadActiveTargetRef = React.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n var releasePresenceLatch = React.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n useIsomorphicLayoutEffect(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n useIsomorphicLayoutEffect(function() {\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = React.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = React.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = React.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = React.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = React.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n React.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ _jsx(ProvideAdaptContext, {\n Contents: FinalContents,\n when,\n platform,\n setPlatform,\n setWhen,\n active,\n rawActive,\n setRawActive,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ React.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n });\n};\nAdaptContents.shouldForwardSpace = true;\nvar Adapt = withStaticProperties(function Adapt2(props) {\n var { platform, when, children, scope } = props;\n var context = useAdaptContext(scope);\n var rawEnabled = useAdaptIsActiveGiven(props);\n var enabled = rawEnabled || context.active;\n var isRenderCallback = typeof children === \"function\";\n useIsomorphicLayoutEffect(function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, when || rawEnabled);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, platform || null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, rawEnabled);\n }, [\n when,\n platform,\n rawEnabled,\n context.setWhen,\n context.setPlatform,\n context.setRawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n useIsomorphicLayoutEffect(function() {\n return function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);\n };\n }, []);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ _jsx(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ _jsx(StackZIndexContext, {\n children: !enabled ? null : output\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ _jsx(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n React.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ _jsx(_Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = React.useRef(false);\n useIsomorphicLayoutEffect(function() {\n if (!slot) return;\n if (isActive) {\n slot.publish(children);\n publishedRef.current = true;\n } else {\n slot.clear();\n publishedRef.current = false;\n }\n slot.notify();\n });\n useIsomorphicLayoutEffect(function() {\n return function() {\n if (publishedRef.current) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n publishedRef.current = false;\n }\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(param) {\n var { when, platform } = param;\n var media = useMedia();\n if (when == null && platform == null) {\n return false;\n }\n if (when === true) {\n return true;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = isTouchable;\n else if (platform === \"native\") enabled = !isWeb;\n else if (platform === \"web\") enabled = isWeb;\n else if (platform === \"ios\") enabled = isIos;\n else if (platform === \"android\") enabled = isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n var props = useAdaptContext(scope);\n var isActiveGiven = useAdaptIsActiveGiven(props);\n return props.active || isActiveGiven;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget\n ]);\n if (!context.active) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = useContext(AdaptCapabilitiesContext);\n var value = React.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ _jsx(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return useContext(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\nexport {\n Adapt,\n AdaptCapabilities,\n AdaptContents,\n AdaptContext,\n AdaptParent,\n AdaptPortalContents,\n ProvideAdaptContext,\n useAdaptContext,\n useAdaptIsActive,\n useAdaptTarget,\n useAdaptedCapabilities\n};\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,uBAAuB;CAC9B,IAAI,4BAA4B,IAAI,IAAI;CACxC,IAAI,QAAQ;EACV,SAAS;EACT,SAAS;EACT,QAAQ,SAAS;GACf,MAAM,UAAU;EAClB;EACA,QAAQ;GACN,MAAM,UAAU;EAClB;EACA,SAAS;GACP,MAAM,WAAW;GACjB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;GACvF,IAAI;IACF,KAAK,IAAI,YAAY,UAAU,OAAO,UAAU,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,GAAG,OAAO,4BAA4B,MAAM;KAC1J,IAAI,WAAW,MAAM;KACrB,SAAS;IACX;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;EACF;EACA,cAAc;GACZ,OAAO,MAAM;EACf;EACA,UAAU,UAAU;GAClB,UAAU,IAAI,QAAQ;GACtB,OAAO,WAAW;IAChB,UAAU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AS,oBAAoB,SAAS;CACpC,OAAO;EACL,QAAQ,QAAQ;EAChB,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
1
+ {"version":3,"file":"Adapt.native.js","names":["_Fragment"],"sources":["esm/Adapt.native.js"],"sourcesContent":["import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { createStyledContext, useMedia } from \"@tamagui/core\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { StackZIndexContext } from \"@tamagui/z-index-stack\";\nimport React, { createContext, useContext, useId } from \"react\";\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"platform\",\n \"setPlatform\",\n \"when\",\n \"setWhen\",\n \"active\",\n \"rawActive\",\n \"setRawActive\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = createStyledContext({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n platform: null,\n setPlatform: function(x) {\n },\n when: null,\n setWhen: function() {\n },\n active: false,\n rawActive: false,\n setRawActive: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ createContext({});\nvar LastAdaptContextScope = /* @__PURE__ */ createContext(\"\");\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = useContext(LastAdaptContextScope);\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ _jsx(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = useContext(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nvar AdaptParent = function(param) {\n var { children, Contents, scope, open, onOpenChange, state } = param;\n var id = useId();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = React.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var [when, setWhen] = React.useState(null);\n var [platform, setPlatform] = React.useState(null);\n var [rawActive, setRawActive] = React.useState(false);\n var [exiting, setExiting] = React.useState(false);\n var [present, setPresent] = React.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = React.useState(!open);\n var targetCountRef = React.useRef(0);\n var contentsCountRef = React.useRef(0);\n var renderCallbackCountRef = React.useRef(0);\n var rawActiveRef = React.useRef(false);\n var openRef = React.useRef(open);\n var wasTargetHiddenRef = React.useRef(!rawActive);\n var hasHadActiveTargetRef = React.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n var releasePresenceLatch = React.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n useIsomorphicLayoutEffect(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n useIsomorphicLayoutEffect(function() {\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = React.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = React.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = React.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = React.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = React.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n React.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ _jsx(ProvideAdaptContext, {\n Contents: FinalContents,\n when,\n platform,\n setPlatform,\n setWhen,\n active,\n rawActive,\n setRawActive,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ React.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n });\n};\nAdaptContents.shouldForwardSpace = true;\nvar Adapt = withStaticProperties(function Adapt2(props) {\n var { platform, when, children, scope } = props;\n var context = useAdaptContext(scope);\n var rawEnabled = useAdaptIsActiveGiven(props);\n var enabled = rawEnabled || context.active;\n var isRenderCallback = typeof children === \"function\";\n useIsomorphicLayoutEffect(function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, when || rawEnabled);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, platform || null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, rawEnabled);\n }, [\n when,\n platform,\n rawEnabled,\n context.setWhen,\n context.setPlatform,\n context.setRawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n useIsomorphicLayoutEffect(function() {\n return function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);\n };\n }, []);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ _jsx(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ _jsx(StackZIndexContext, {\n children: !enabled ? null : output\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ _jsx(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n React.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ _jsx(_Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = React.useRef(false);\n useIsomorphicLayoutEffect(function() {\n if (!slot) return;\n if (isActive) {\n slot.publish(children);\n publishedRef.current = true;\n } else {\n slot.clear();\n publishedRef.current = false;\n }\n slot.notify();\n });\n useIsomorphicLayoutEffect(function() {\n return function() {\n if (publishedRef.current) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n publishedRef.current = false;\n }\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(param) {\n var { when, platform } = param;\n var media = useMedia();\n if (when == null && platform == null) {\n return false;\n }\n if (when === true) {\n return true;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = isTouchable;\n else if (platform === \"native\") enabled = !isWeb;\n else if (platform === \"web\") enabled = isWeb;\n else if (platform === \"ios\") enabled = isIos;\n else if (platform === \"android\") enabled = isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n var props = useAdaptContext(scope);\n var isActiveGiven = useAdaptIsActiveGiven(props);\n return props.active || isActiveGiven;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget\n ]);\n if (!context.active) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = useContext(AdaptCapabilitiesContext);\n var value = React.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ _jsx(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return useContext(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\nexport {\n Adapt,\n AdaptCapabilities,\n AdaptContents,\n AdaptContext,\n AdaptParent,\n AdaptPortalContents,\n ProvideAdaptContext,\n useAdaptContext,\n useAdaptIsActive,\n useAdaptTarget,\n useAdaptedCapabilities\n};\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,uBAAuB;CAC9B,IAAI,4BAA4B,IAAI,IAAI;CACxC,IAAI,QAAQ;EACV,SAAS;EACT,SAAS;EACT,QAAQ,SAAS;GACf,MAAM,UAAU;EAClB;EACA,QAAQ;GACN,MAAM,UAAU;EAClB;EACA,SAAS;GACP,MAAM,WAAW;GACjB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;GACvF,IAAI;IACF,KAAK,IAAI,YAAY,UAAU,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;KAC1J,IAAI,WAAW,MAAM;KACrB,SAAS;IACX;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;EACF;EACA,cAAc;GACZ,OAAO,MAAM;EACf;EACA,UAAU,UAAU;GAClB,UAAU,IAAI,QAAQ;GACtB,OAAO,WAAW;IAChB,UAAU,OAAO,QAAQ;GAC3B;EACF;CACF;CACA,OAAO;AACT;AACA,IAAI,mBAAmB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,eAAe,oBAAoB;CACrC,UAAU;CACV,WAAW;CACX,YAAY;CACZ,UAAU;CACV,aAAa,SAAS,GAAG,CACzB;CACA,MAAM;CACN,SAAS,WAAW,CACpB;CACA,QAAQ;CACR,WAAW;CACX,cAAc,WAAW,CACzB;CACA,MAAM;CACN,SAAS;EACP,QAAQ;EACR,cAAc,WAA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AA0B,WAAW;EACnC,IAAI,CAAC,QAAQ,QAAQ;EACrB,QAAQ,eAAe;EACvB,OAAO,WAAW;GAChB,QAAQ,iBAAiB;EAC3B;CACF,GAAG;EACD,QAAQ;EACR,QAAQ;EACR,QAAQ;CACV,CAAC;CACD,IAAI,CAAC,QAAQ,QAAQ;EACnB,OAAO;CACT;CACA,OAAO;EACL,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,SAAS,QAAQ;EACjB,OAAO,QAAQ;CACjB;AACF;AACA,IAAI,oBAAoB,SAAS,OAAO;CACtC,IAAI,EAAE,UAAU,QAAQ,SAAS,YAAY;CAC7C,IAAI,SAAS,WAAW,wBAAwB;CAChD,IAAI,QAAQ,MAAM,QAAQ,WAAW;EACnC,OAAO;GACL,QAAQ,WAAW,QAAQ,WAAW,KAAK,IAAI,SAAS,OAAO;GAC/D,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;GACnE,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;EACrE;CACF,GAAG;EACD;EACA;EACA,OAAO;EACP,OAAO;EACP,OAAO;EACP;CACF,CAAC;CACD,OAAuB,oBAAK,yBAAyB,UAAU;EAC7D;EACA;CACF,CAAC;AACH;AACA,IAAI,yBAAyB,WAAW;CACtC,OAAO,WAAW,wBAAwB;AAC5C;AACA,SAAS,oBAAoB,SAAS;CACpC,OAAO;EACL,QAAQ,QAAQ;EAChB,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/adapt",
3
- "version": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.719.1",
4
4
  "files": [
5
5
  "src",
6
6
  "types",
@@ -33,15 +33,15 @@
33
33
  "clean:build": "tamagui-build clean:build"
34
34
  },
35
35
  "dependencies": {
36
- "@tamagui/constants": "3.0.0-beta.669.1",
37
- "@tamagui/core": "3.0.0-beta.669.1",
38
- "@tamagui/helpers": "3.0.0-beta.669.1",
39
- "@tamagui/portal": "3.0.0-beta.669.1",
40
- "@tamagui/z-index-stack": "3.0.0-beta.669.1"
36
+ "@tamagui/constants": "3.0.0-beta.719.1",
37
+ "@tamagui/core": "3.0.0-beta.719.1",
38
+ "@tamagui/helpers": "3.0.0-beta.719.1",
39
+ "@tamagui/portal": "3.0.0-beta.719.1",
40
+ "@tamagui/z-index-stack": "3.0.0-beta.719.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "3.0.0-beta.669.1",
44
- "react": ">=19"
43
+ "@tamagui/build": "3.0.0-beta.719.1",
44
+ "react": "19.2.3"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": ">=19"