@tamagui/popover 1.110.5 → 1.111.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/cjs/Popover.native.js +66 -195
- package/dist/cjs/Popover.native.js.map +2 -2
- package/dist/esm/Popover.native.js +67 -195
- package/dist/esm/Popover.native.js.map +2 -2
- package/dist/esm/Popover.native.mjs +445 -0
- package/dist/esm/Popover.native.mjs.map +1 -0
- package/dist/esm/index.native.mjs +3 -0
- package/dist/esm/index.native.mjs.map +1 -0
- package/dist/esm/useFloatingContext.native.mjs +6 -0
- package/dist/esm/useFloatingContext.native.mjs.map +1 -0
- package/dist/jsx/Popover.native.js +65 -193
- package/dist/jsx/Popover.native.js.map +2 -2
- package/package.json +20 -20
|
@@ -33,103 +33,8 @@ __export(Popover_exports, {
|
|
|
33
33
|
usePopoverContext: () => usePopoverContext
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(Popover_exports);
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime"), import_polyfill_dev = require("@tamagui/polyfill-dev"), import_adapt = require("@tamagui/adapt"), import_animate = require("@tamagui/animate"), import_animate_presence = require("@tamagui/animate-presence"), import_aria_hidden = require("@tamagui/aria-hidden"), import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_floating = require("@tamagui/floating"), import_focus_scope = require("@tamagui/focus-scope"), import_helpers = require("@tamagui/helpers"), import_popper = require("@tamagui/popper"), import_portal = require("@tamagui/portal"), import_remove_scroll = require("@tamagui/remove-scroll"), import_sheet = require("@tamagui/sheet"), import_stacks = require("@tamagui/stacks"), import_use_controllable_state = require("@tamagui/use-controllable-state"), React = __toESM(require("react")), import_react_native = require("react-native"), import_useFloatingContext = require("./useFloatingContext")
|
|
37
|
-
|
|
38
|
-
(len == null || len > arr.length) && (len = arr.length);
|
|
39
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
40
|
-
return arr2;
|
|
41
|
-
}
|
|
42
|
-
function _array_with_holes(arr) {
|
|
43
|
-
if (Array.isArray(arr)) return arr;
|
|
44
|
-
}
|
|
45
|
-
function _define_property(obj, key, value) {
|
|
46
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
47
|
-
value,
|
|
48
|
-
enumerable: !0,
|
|
49
|
-
configurable: !0,
|
|
50
|
-
writable: !0
|
|
51
|
-
}) : obj[key] = value, obj;
|
|
52
|
-
}
|
|
53
|
-
function _iterable_to_array_limit(arr, i) {
|
|
54
|
-
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
55
|
-
if (_i != null) {
|
|
56
|
-
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
57
|
-
try {
|
|
58
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
59
|
-
;
|
|
60
|
-
} catch (err) {
|
|
61
|
-
_d = !0, _e = err;
|
|
62
|
-
} finally {
|
|
63
|
-
try {
|
|
64
|
-
!_n && _i.return != null && _i.return();
|
|
65
|
-
} finally {
|
|
66
|
-
if (_d) throw _e;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return _arr;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _non_iterable_rest() {
|
|
73
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
74
|
-
}
|
|
75
|
-
function _object_spread(target) {
|
|
76
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
77
|
-
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
78
|
-
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
79
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
80
|
-
}))), ownKeys2.forEach(function(key) {
|
|
81
|
-
_define_property(target, key, source[key]);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return target;
|
|
85
|
-
}
|
|
86
|
-
function ownKeys(object, enumerableOnly) {
|
|
87
|
-
var keys = Object.keys(object);
|
|
88
|
-
if (Object.getOwnPropertySymbols) {
|
|
89
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
90
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
91
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
92
|
-
})), keys.push.apply(keys, symbols);
|
|
93
|
-
}
|
|
94
|
-
return keys;
|
|
95
|
-
}
|
|
96
|
-
function _object_spread_props(target, source) {
|
|
97
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
98
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
99
|
-
}), target;
|
|
100
|
-
}
|
|
101
|
-
function _object_without_properties(source, excluded) {
|
|
102
|
-
if (source == null) return {};
|
|
103
|
-
var target = _object_without_properties_loose(source, excluded), key, i;
|
|
104
|
-
if (Object.getOwnPropertySymbols) {
|
|
105
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
106
|
-
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
107
|
-
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
108
|
-
}
|
|
109
|
-
return target;
|
|
110
|
-
}
|
|
111
|
-
function _object_without_properties_loose(source, excluded) {
|
|
112
|
-
if (source == null) return {};
|
|
113
|
-
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
114
|
-
for (i = 0; i < sourceKeys.length; i++)
|
|
115
|
-
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
116
|
-
return target;
|
|
117
|
-
}
|
|
118
|
-
function _sliced_to_array(arr, i) {
|
|
119
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
120
|
-
}
|
|
121
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
122
|
-
if (o) {
|
|
123
|
-
if (typeof o == "string") return _array_like_to_array(o, minLen);
|
|
124
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
125
|
-
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
126
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
var POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
130
|
-
var __scopePopover = props.__scopePopover, rest = _object_without_properties(props, [
|
|
131
|
-
"__scopePopover"
|
|
132
|
-
]), context = usePopoverContext(__scopePopover), _ref = context || {}, onCustomAnchorAdd = _ref.onCustomAnchorAdd, onCustomAnchorRemove = _ref.onCustomAnchorRemove;
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_polyfill_dev = require("@tamagui/polyfill-dev"), import_adapt = require("@tamagui/adapt"), import_animate = require("@tamagui/animate"), import_animate_presence = require("@tamagui/animate-presence"), import_aria_hidden = require("@tamagui/aria-hidden"), import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_floating = require("@tamagui/floating"), import_focus_scope = require("@tamagui/focus-scope"), import_helpers = require("@tamagui/helpers"), import_popper = require("@tamagui/popper"), import_portal = require("@tamagui/portal"), import_remove_scroll = require("@tamagui/remove-scroll"), import_sheet = require("@tamagui/sheet"), import_stacks = require("@tamagui/stacks"), import_use_controllable_state = require("@tamagui/use-controllable-state"), React = __toESM(require("react")), import_react_native = require("react-native"), import_useFloatingContext = require("./useFloatingContext"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
37
|
+
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
133
38
|
return React.useEffect(function() {
|
|
134
39
|
return onCustomAnchorAdd(), function() {
|
|
135
40
|
return onCustomAnchorRemove();
|
|
@@ -137,41 +42,40 @@ var POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyle
|
|
|
137
42
|
}, [
|
|
138
43
|
onCustomAnchorAdd,
|
|
139
44
|
onCustomAnchorRemove
|
|
140
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor,
|
|
141
|
-
__scopePopper: __scopePopover || POPOVER_SCOPE
|
|
142
|
-
|
|
45
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {
|
|
46
|
+
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
47
|
+
...rest,
|
|
143
48
|
ref: forwardedRef
|
|
144
|
-
})
|
|
49
|
+
});
|
|
145
50
|
}), PopoverTrigger = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
146
|
-
var __scopePopover = props
|
|
147
|
-
"__scopePopover"
|
|
148
|
-
]), context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
51
|
+
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), anchorTo = context.anchorTo, composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
149
52
|
if (!props.children) return null;
|
|
150
|
-
var trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View,
|
|
53
|
+
var trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {
|
|
151
54
|
"aria-haspopup": "dialog",
|
|
152
55
|
"aria-expanded": context.open,
|
|
153
56
|
// TODO not matching
|
|
154
57
|
// aria-controls={context.contentId}
|
|
155
|
-
"data-state": getState(context.open)
|
|
156
|
-
|
|
58
|
+
"data-state": getState(context.open),
|
|
59
|
+
...rest,
|
|
157
60
|
// @ts-ignore
|
|
158
61
|
ref: composedTriggerRef,
|
|
159
62
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
160
|
-
})
|
|
63
|
+
});
|
|
161
64
|
if (anchorTo) {
|
|
162
65
|
var virtualRef = {
|
|
163
|
-
current:
|
|
66
|
+
current: {
|
|
164
67
|
getBoundingClientRect: function() {
|
|
165
68
|
return import_constants.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;
|
|
166
|
-
}
|
|
167
|
-
}, !import_constants.isWeb && {
|
|
168
|
-
measure: function(c) {
|
|
169
|
-
return c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height);
|
|
170
69
|
},
|
|
171
|
-
|
|
172
|
-
|
|
70
|
+
...!import_constants.isWeb && {
|
|
71
|
+
measure: function(c) {
|
|
72
|
+
return c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height);
|
|
73
|
+
},
|
|
74
|
+
measureInWindow: function(c) {
|
|
75
|
+
return c(anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.width, anchorTo == null ? void 0 : anchorTo.height);
|
|
76
|
+
}
|
|
173
77
|
}
|
|
174
|
-
}
|
|
78
|
+
}
|
|
175
79
|
};
|
|
176
80
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {
|
|
177
81
|
virtualRef,
|
|
@@ -185,13 +89,7 @@ var POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyle
|
|
|
185
89
|
children: trigger
|
|
186
90
|
});
|
|
187
91
|
}), PopoverContent = import_popper.PopperContentFrame.extractable(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
188
|
-
var
|
|
189
|
-
"allowPinchZoom",
|
|
190
|
-
"trapFocus",
|
|
191
|
-
"disableRemoveScroll",
|
|
192
|
-
"zIndex",
|
|
193
|
-
"__scopePopover"
|
|
194
|
-
]), context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React.useRef(!1), _React_useState = _sliced_to_array(React.useState(!context.open), 2), isFullyHidden = _React_useState[0], setIsFullyHidden = _React_useState[1];
|
|
92
|
+
var { allowPinchZoom, trapFocus, disableRemoveScroll = !0, zIndex, __scopePopover, ...contentImplProps } = props, context = usePopoverContext(__scopePopover), contentRef = React.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React.useRef(!1), [isFullyHidden, setIsFullyHidden] = React.useState(!context.open);
|
|
195
93
|
return context.open && isFullyHidden && setIsFullyHidden(!1), React.useEffect(function() {
|
|
196
94
|
if (context.open) {
|
|
197
95
|
var content = contentRef.current;
|
|
@@ -204,7 +102,8 @@ var POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyle
|
|
|
204
102
|
zIndex: props.zIndex,
|
|
205
103
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Stack, {
|
|
206
104
|
pointerEvents: context.open ? "auto" : "none",
|
|
207
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl,
|
|
105
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl, {
|
|
106
|
+
...contentImplProps,
|
|
208
107
|
disableRemoveScroll,
|
|
209
108
|
ref: composedRefs,
|
|
210
109
|
setIsFullyHidden,
|
|
@@ -230,21 +129,22 @@ var POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core.createStyle
|
|
|
230
129
|
}, {
|
|
231
130
|
checkDefaultPrevented: !1
|
|
232
131
|
})
|
|
233
|
-
})
|
|
132
|
+
})
|
|
234
133
|
})
|
|
235
134
|
});
|
|
236
135
|
}));
|
|
237
136
|
function PopoverRepropagateContext(props) {
|
|
238
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContext.Provider,
|
|
239
|
-
scope: props.scope
|
|
240
|
-
|
|
241
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider,
|
|
137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContext.Provider, {
|
|
138
|
+
scope: props.scope,
|
|
139
|
+
...props.popperContext,
|
|
140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {
|
|
141
|
+
...props.context,
|
|
242
142
|
children: props.children
|
|
243
|
-
})
|
|
244
|
-
})
|
|
143
|
+
})
|
|
144
|
+
});
|
|
245
145
|
}
|
|
246
146
|
function PopoverContentPortal(props) {
|
|
247
|
-
var __scopePopover = props
|
|
147
|
+
var { __scopePopover } = props, _props_zIndex, zIndex = (_props_zIndex = props.zIndex) !== null && _props_zIndex !== void 0 ? _props_zIndex : 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core.useThemeName)(), contents = props.children;
|
|
248
148
|
return (import_react_native.Platform.OS === "android" || import_react_native.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverRepropagateContext, {
|
|
249
149
|
scope: __scopePopover || POPOVER_SCOPE,
|
|
250
150
|
popperContext,
|
|
@@ -270,22 +170,7 @@ function PopoverContentPortal(props) {
|
|
|
270
170
|
});
|
|
271
171
|
}
|
|
272
172
|
var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
273
|
-
var
|
|
274
|
-
"trapFocus",
|
|
275
|
-
"__scopePopover",
|
|
276
|
-
"onOpenAutoFocus",
|
|
277
|
-
"onCloseAutoFocus",
|
|
278
|
-
"disableOutsidePointerEvents",
|
|
279
|
-
"disableFocusScope",
|
|
280
|
-
"onEscapeKeyDown",
|
|
281
|
-
"onPointerDownOutside",
|
|
282
|
-
"onFocusOutside",
|
|
283
|
-
"onInteractOutside",
|
|
284
|
-
"children",
|
|
285
|
-
"disableRemoveScroll",
|
|
286
|
-
"freezeContentsWhenHidden",
|
|
287
|
-
"setIsFullyHidden"
|
|
288
|
-
]), context = usePopoverContext(__scopePopover), open = context.open, keepChildrenMounted = context.keepChildrenMounted, popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), handleExitComplete = React.useCallback(function() {
|
|
173
|
+
var { trapFocus, __scopePopover, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, disableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, ...contentProps } = props, context = usePopoverContext(__scopePopover), { open, keepChildrenMounted } = context, popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), handleExitComplete = React.useCallback(function() {
|
|
289
174
|
setIsFullyHidden == null || setIsFullyHidden(!0);
|
|
290
175
|
}, [
|
|
291
176
|
setIsFullyHidden
|
|
@@ -296,12 +181,12 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
296
181
|
}), content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {
|
|
297
182
|
children: childrenWithoutScrollView
|
|
298
183
|
});
|
|
299
|
-
return (import_react_native.Platform.OS === "android" || import_react_native.Platform.OS === "ios") && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContext.Provider,
|
|
300
|
-
scope: __scopePopover || POPOVER_SCOPE
|
|
301
|
-
|
|
184
|
+
return (import_react_native.Platform.OS === "android" || import_react_native.Platform.OS === "ios") && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContext.Provider, {
|
|
185
|
+
scope: __scopePopover || POPOVER_SCOPE,
|
|
186
|
+
...popperContext,
|
|
302
187
|
children: childrenWithoutScrollView
|
|
303
|
-
}))
|
|
304
|
-
hostName:
|
|
188
|
+
})), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalItem, {
|
|
189
|
+
hostName: `${context.id}PopoverContents`,
|
|
305
190
|
children: content
|
|
306
191
|
});
|
|
307
192
|
}
|
|
@@ -310,12 +195,12 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
310
195
|
present: !!open,
|
|
311
196
|
keepChildrenMounted,
|
|
312
197
|
onExitComplete: handleExitComplete,
|
|
313
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContent,
|
|
198
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContent, {
|
|
314
199
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
315
200
|
"data-state": getState(open),
|
|
316
201
|
id: context.contentId,
|
|
317
|
-
ref: forwardedRef
|
|
318
|
-
|
|
202
|
+
ref: forwardedRef,
|
|
203
|
+
...contentProps,
|
|
319
204
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_remove_scroll.RemoveScroll, {
|
|
320
205
|
enabled: disableRemoveScroll ? !1 : open,
|
|
321
206
|
allowPinchZoom: !0,
|
|
@@ -336,54 +221,42 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
336
221
|
})
|
|
337
222
|
})
|
|
338
223
|
})
|
|
339
|
-
}
|
|
224
|
+
}, context.contentId)
|
|
340
225
|
});
|
|
341
226
|
}), dspContentsStyle = {
|
|
342
227
|
display: "contents"
|
|
343
228
|
}, PopoverClose = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
344
|
-
var __scopePopover = props
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, _object_spread_props(_object_spread({}, rest), {
|
|
229
|
+
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {
|
|
231
|
+
...rest,
|
|
348
232
|
ref: forwardedRef,
|
|
349
233
|
componentName: "PopoverClose",
|
|
350
234
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function() {
|
|
351
235
|
return context.onOpenChange(!1, "press");
|
|
352
236
|
})
|
|
353
|
-
})
|
|
237
|
+
});
|
|
354
238
|
}), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
|
|
355
|
-
var __scopePopover = props
|
|
356
|
-
|
|
357
|
-
]), context = usePopoverContext(__scopePopover), sheetActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
358
|
-
return sheetActive ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperArrow, _object_spread_props(_object_spread({
|
|
239
|
+
var { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), sheetActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
240
|
+
return sheetActive ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperArrow, {
|
|
359
241
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
360
|
-
componentName: "PopoverArrow"
|
|
361
|
-
|
|
242
|
+
componentName: "PopoverArrow",
|
|
243
|
+
...rest,
|
|
362
244
|
ref: forwardedRef
|
|
363
|
-
})
|
|
245
|
+
});
|
|
364
246
|
}), Popover = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
365
|
-
var
|
|
366
|
-
"children",
|
|
367
|
-
"open",
|
|
368
|
-
"defaultOpen",
|
|
369
|
-
"onOpenChange",
|
|
370
|
-
"__scopePopover",
|
|
371
|
-
"keepChildrenMounted",
|
|
372
|
-
"hoverable",
|
|
373
|
-
"disableFocus"
|
|
374
|
-
]), id = React.useId(), _useAdaptParent = (0, import_adapt.useAdaptParent)({
|
|
247
|
+
var { children, open: openProp, defaultOpen, onOpenChange, __scopePopover, keepChildrenMounted, hoverable, disableFocus, ...restProps } = props, id = React.useId(), { when, AdaptProvider } = (0, import_adapt.useAdaptParent)({
|
|
375
248
|
Contents: React.useCallback(function() {
|
|
376
249
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalHost, {
|
|
377
|
-
name:
|
|
250
|
+
name: `${id}PopoverContents`
|
|
378
251
|
});
|
|
379
252
|
}, [])
|
|
380
|
-
}),
|
|
253
|
+
}), sheetBreakpoint = when, triggerRef = React.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React.useState(!1), viaRef = React.useRef(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
381
254
|
prop: openProp,
|
|
382
255
|
defaultProp: defaultOpen || !1,
|
|
383
256
|
onChange: function(val) {
|
|
384
257
|
onOpenChange == null || onOpenChange(val, viaRef.current);
|
|
385
258
|
}
|
|
386
|
-
}),
|
|
259
|
+
}), handleOpenChange = (0, import_core.useEvent)(function(val, via) {
|
|
387
260
|
viaRef.current = via, setOpen(val);
|
|
388
261
|
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
|
|
389
262
|
open,
|
|
@@ -391,7 +264,7 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
391
264
|
disable: sheetActive,
|
|
392
265
|
hoverable,
|
|
393
266
|
disableFocus
|
|
394
|
-
}),
|
|
267
|
+
}), [anchorTo, setAnchorToRaw] = React.useState(), setAnchorTo = (0, import_core.createShallowSetState)(setAnchorToRaw);
|
|
395
268
|
React.useImperativeHandle(forwardedRef, function() {
|
|
396
269
|
return {
|
|
397
270
|
anchorTo: setAnchorTo,
|
|
@@ -429,19 +302,19 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
429
302
|
return setHasCustomAnchor(!1);
|
|
430
303
|
}, []),
|
|
431
304
|
keepChildrenMounted
|
|
432
|
-
}, contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.Popper,
|
|
305
|
+
}, contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.Popper, {
|
|
433
306
|
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
434
|
-
stayInFrame: !0
|
|
435
|
-
|
|
436
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider,
|
|
437
|
-
scope: __scopePopover
|
|
438
|
-
|
|
307
|
+
stayInFrame: !0,
|
|
308
|
+
...restProps,
|
|
309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {
|
|
310
|
+
scope: __scopePopover,
|
|
311
|
+
...popoverContext,
|
|
439
312
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverSheetController, {
|
|
440
313
|
onOpenChange: setOpen,
|
|
441
314
|
children
|
|
442
315
|
})
|
|
443
|
-
})
|
|
444
|
-
})
|
|
316
|
+
})
|
|
317
|
+
});
|
|
445
318
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AdaptProvider, {
|
|
446
319
|
children: import_constants.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {
|
|
447
320
|
value: floatingContext,
|
|
@@ -461,10 +334,8 @@ var PopoverContentImpl = /* @__PURE__ */ React.forwardRef(function(props, forwar
|
|
|
461
334
|
function getState(open) {
|
|
462
335
|
return open ? "open" : "closed";
|
|
463
336
|
}
|
|
464
|
-
var PopoverSheetController = function(
|
|
465
|
-
var __scopePopover =
|
|
466
|
-
"__scopePopover"
|
|
467
|
-
]), context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core.useGet)(showSheet);
|
|
337
|
+
var PopoverSheetController = function(param) {
|
|
338
|
+
var { __scopePopover, ...props } = param, context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core.useGet)(showSheet);
|
|
468
339
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sheet.SheetController, {
|
|
469
340
|
onOpenChange: function(val) {
|
|
470
341
|
if (getShowSheet()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/popover/src/Popover.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,sBAAO,kCAGP,eAAsC,2BACtC,iBAAwB,6BACxB,0BAA8B,sCAC9B,qBAA2B,iCAC3B,sBAAgC,kCAChC,mBAAsB,+BAQtB,cAUO,0BAEP,kBAAwC,8BAExC,qBAA2B,iCAC3B,iBAA2D,6BAO3D,gBAQO,4BACP,gBAA+C,4BAE/C,uBAA6B,mCAC7B,eAAuC,2BAEvC,gBAAuB,4BACvB,gCAAqC,4CACrC,QAAuB,2BACvB,sBAAqC,yBAErC,4BAAmC
|
|
5
|
-
"names": ["POPOVER_SCOPE", "PopoverContext", "createStyledContext", "usePopoverContext", "useStyledContext", "PopoverAnchor", "React", "forwardRef", "props", "forwardedRef", "__scopePopover", "rest", "context", "onCustomAnchorAdd", "onCustomAnchorRemove", "useEffect", "_jsx", "PopperAnchor", "__scopePopper", "ref", "PopoverTrigger", "anchorTo", "composedTriggerRef", "useComposedRefs", "triggerRef", "children", "trigger", "View", "aria-haspopup", "aria-expanded", "open", "data-state", "getState", "onPress", "composeEventHandlers", "onOpenToggle", "virtualRef", "current", "getBoundingClientRect", "isWeb", "DOMRect", "fromRect", "measure", "c", "x", "y", "width", "height", "measureInWindow", "hasCustomAnchor", "asChild", "PopoverContent", "PopperContentFrame", "extractable", "allowPinchZoom", "trapFocus", "disableRemoveScroll", "zIndex", "contentImplProps", "contentRef", "useRef", "composedRefs", "isRightClickOutsideRef", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,sBAAO,kCAGP,eAAsC,2BACtC,iBAAwB,6BACxB,0BAA8B,sCAC9B,qBAA2B,iCAC3B,sBAAgC,kCAChC,mBAAsB,+BAQtB,cAUO,0BAEP,kBAAwC,8BAExC,qBAA2B,iCAC3B,iBAA2D,6BAO3D,gBAQO,4BACP,gBAA+C,4BAE/C,uBAA6B,mCAC7B,eAAuC,2BAEvC,gBAAuB,4BACvB,gCAAqC,4CACrC,QAAuB,2BACvB,sBAAqC,yBAErC,4BAAmC,iCAwC7BA,gBAAgB,gBAETC,qBAAiBC,iCAAyC,CAAC,CAAA,GAE3DC,oBAAoBF,eAAeG,kBAQnCC,gBAAgBC,sBAAMC,WAGjC,SAAuBC,OAA+CC,cAAY;AAClF,MAAM,EAAEC,gBAAgB,GAAGC,KAAAA,IAASH,OAC9BI,UAAUT,kBAAkBO,cAAAA,GAC5B,EAAEG,mBAAmBC,qBAAoB,IAAKF,WAAW,CAAC;AAEhEN,eAAMS,UAAU,WAAA;AACdF,6BAAAA,GACO,WAAA;aAAMC,qBAAAA;;EACf,GAAG;IAACD;IAAmBC;GAAqB,GAG1C,uCAAAE,KAACC,4BAAAA;IACCC,eAAeR,kBAAkBV;IAChC,GAAGW;IACJQ,KAAKV;;AAGX,CAAA,GAQaW,iBAAiBd,sBAAMC,WAG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,mBAAmBgD,yBAAyB3I,QAAQ4I,eAAe;AACzE,SAAO5I,QAAQkB,SAAS,KAAQ,KAAQyE;AAC1C;",
|
|
5
|
+
"names": ["POPOVER_SCOPE", "PopoverContext", "createStyledContext", "usePopoverContext", "useStyledContext", "PopoverAnchor", "React", "forwardRef", "props", "forwardedRef", "__scopePopover", "rest", "context", "onCustomAnchorAdd", "onCustomAnchorRemove", "useEffect", "_jsx", "PopperAnchor", "__scopePopper", "ref", "PopoverTrigger", "anchorTo", "composedTriggerRef", "useComposedRefs", "triggerRef", "children", "trigger", "View", "aria-haspopup", "aria-expanded", "open", "data-state", "getState", "onPress", "composeEventHandlers", "onOpenToggle", "virtualRef", "current", "getBoundingClientRect", "isWeb", "DOMRect", "fromRect", "measure", "c", "x", "y", "width", "height", "measureInWindow", "hasCustomAnchor", "asChild", "PopoverContent", "PopperContentFrame", "extractable", "allowPinchZoom", "trapFocus", "disableRemoveScroll", "zIndex", "contentImplProps", "contentRef", "useRef", "composedRefs", "isRightClickOutsideRef", "isFullyHidden", "setIsFullyHidden", "useState", "content", "hideOthers", "keepChildrenMounted", "PopoverContentPortal", "Stack", "pointerEvents", "PopoverContentImpl", "disableOutsidePointerEvents", "onCloseAutoFocus", "event", "preventDefault", "focus", "onPointerDownOutside", "originalEvent", "detail", "ctrlLeftClick", "button", "ctrlKey", "isRightClick", "checkDefaultPrevented", "onFocusOutside", "PopoverRepropagateContext", "PopperContext", "Provider", "scope", "popperContext", "usePopperContext", "themeName", "useThemeName", "contents", "Platform", "OS", "Portal", "_jsxs", "Theme", "forceClassName", "name", "breakpointActive", "YStack", "fullscreen", "onOpenAutoFocus", "disableFocusScope", "onEscapeKeyDown", "onInteractOutside", "freezeContentsWhenHidden", "contentProps", "handleExitComplete", "useCallback", "childrenWithoutScrollView", "Children", "toArray", "map", "child", "isValidElement", "type", "ScrollView", "ResetPresence", "PortalItem", "hostName", "id", "Animate", "present", "Boolean", "onExitComplete", "PopperContent", "contentId", "RemoveScroll", "enabled", "removeScrollBar", "style", "dspContentsStyle", "FocusScope", "loop", "trapped", "onMountAutoFocus", "onUnmountAutoFocus", "div", "display", "PopoverClose", "componentName", "onOpenChange", "PopoverArrow", "PopperArrow", "styleable", "sheetActive", "useSheetBreakpointActive", "sheetBreakpoint", "Popover", "withStaticProperties", "openProp", "defaultOpen", "hoverable", "disableFocus", "restProps", "useId", "when", "AdaptProvider", "useAdaptParent", "Contents", "PortalHost", "setHasCustomAnchor", "viaRef", "setOpen", "useControllableState", "prop", "defaultProp", "onChange", "val", "handleOpenChange", "useEvent", "via", "floatingContext", "useFloatingContext", "disable", "setAnchorToRaw", "setAnchorTo", "createShallowSetState", "useImperativeHandle", "toggle", "prev", "close", "popoverContext", "Popper", "stayInFrame", "PopoverSheetController", "FloatingOverrideContext", "value", "Anchor", "Arrow", "Trigger", "Content", "Close", "Adapt", "Sheet", "Controlled", "showSheet", "useShowPopoverSheet", "getShowSheet", "useGet", "SheetController", "hidden", "breakpoint", "media", "useMedia"]
|
|
6
6
|
}
|