tamagui 1.130.7 → 1.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +11 -11
- package/dist/cjs/views/Input.cjs +1 -1
- package/dist/cjs/views/TextArea.cjs +2 -2
- package/dist/native.js +635 -550
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +635 -550
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -3227,7 +3227,7 @@ var require_useMedia_native = __commonJS({
|
|
|
3227
3227
|
internalRef.current || (internalRef.current = {
|
|
3228
3228
|
keys: /* @__PURE__ */ new Set()
|
|
3229
3229
|
});
|
|
3230
|
-
var { keys, lastState =
|
|
3230
|
+
var { keys, lastState = mediaState3 } = internalRef.current;
|
|
3231
3231
|
keys.size && keys.clear();
|
|
3232
3232
|
var state = (0, import_react3.useSyncExternalStore)(subscribe, function() {
|
|
3233
3233
|
if (componentState != null && componentState.enabled) return internalRef.current.lastState = mediaState3, mediaState3;
|
|
@@ -3816,13 +3816,15 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3816
3816
|
module2.exports = __toCommonJS2(createStyledContext_exports);
|
|
3817
3817
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react3 = __toESM2(require("react")), import_objectIdentityKey = require_objectIdentityKey_native(), createReactContext = import_react3.default[Math.random(), "createContext"];
|
|
3818
3818
|
function createStyledContext2(defaultValues) {
|
|
3819
|
-
var OGContext = createReactContext(defaultValues), OGProvider2 = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map();
|
|
3819
|
+
var namespace = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", OGContext = createReactContext(defaultValues), OGProvider2 = OGContext.Provider, Context = OGContext, scopedContexts = /* @__PURE__ */ new Map(), LastScopeInNamespace = createReactContext(namespace);
|
|
3820
3820
|
function getOrCreateScopedContext(scope) {
|
|
3821
3821
|
var ScopedContext = scopedContexts.get(scope);
|
|
3822
3822
|
return ScopedContext || (ScopedContext = createReactContext(defaultValues), scopedContexts.set(scope, ScopedContext)), ScopedContext;
|
|
3823
3823
|
}
|
|
3824
|
-
var
|
|
3825
|
-
|
|
3824
|
+
var getNamespacedScope = function(scope) {
|
|
3825
|
+
return namespace ? `${namespace}--${scope}` : scope;
|
|
3826
|
+
}, Provider = function(param) {
|
|
3827
|
+
var { children, scope: scopeIn, ...values } = param, scope = getNamespacedScope(scopeIn), next = import_react3.default.useMemo(function() {
|
|
3826
3828
|
return {
|
|
3827
3829
|
// this ! is a workaround for ts error
|
|
3828
3830
|
...defaultValues,
|
|
@@ -3831,13 +3833,16 @@ var require_createStyledContext_native = __commonJS({
|
|
|
3831
3833
|
}, [
|
|
3832
3834
|
(0, import_objectIdentityKey.objectIdentityKey)(values)
|
|
3833
3835
|
]), Provider22 = OGProvider2;
|
|
3834
|
-
return scope && (Provider22 = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3835
|
-
value:
|
|
3836
|
-
children
|
|
3836
|
+
return scope && (Provider22 = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastScopeInNamespace.Provider, {
|
|
3837
|
+
value: scope,
|
|
3838
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Provider22, {
|
|
3839
|
+
value: next,
|
|
3840
|
+
children
|
|
3841
|
+
})
|
|
3837
3842
|
});
|
|
3838
|
-
}, useStyledContext = function(
|
|
3839
|
-
var context = scope ? getOrCreateScopedContext(scope) : OGContext;
|
|
3840
|
-
return
|
|
3843
|
+
}, useStyledContext = function() {
|
|
3844
|
+
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", lastScopeInNamespace = (0, import_react3.useContext)(LastScopeInNamespace), scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn, context = scope ? getOrCreateScopedContext(scope) : OGContext, value = import_react3.default.useContext(context);
|
|
3845
|
+
return value;
|
|
3841
3846
|
};
|
|
3842
3847
|
return Context.Provider = Provider, Context.props = defaultValues, Context.context = OGContext, Context.useStyledContext = useStyledContext, Context;
|
|
3843
3848
|
}
|
|
@@ -8910,13 +8915,14 @@ var require_createComponent_native = __commonJS({
|
|
|
8910
8915
|
onBlur,
|
|
8911
8916
|
separator,
|
|
8912
8917
|
// ignore from here on out
|
|
8918
|
+
passThrough,
|
|
8913
8919
|
forceStyle: _forceStyle,
|
|
8914
8920
|
// @ts-ignore for next/link compat etc
|
|
8915
8921
|
onClick,
|
|
8916
8922
|
theme: _themeProp,
|
|
8917
8923
|
...nonTamaguiProps
|
|
8918
8924
|
} = viewPropsIn || {}, viewProps = nonTamaguiProps;
|
|
8919
|
-
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && _themeProp && (viewProps.theme = _themeProp), tagProp && elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
8925
|
+
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && (typeof _themeProp < "u" && (viewProps.theme = _themeProp), typeof passThrough < "u" && (viewProps.passThrough = passThrough)), tagProp && elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
8920
8926
|
var animationStyles, shouldUseAnimation = (
|
|
8921
8927
|
// if it supports css vars we run it on server too to get matching initial style
|
|
8922
8928
|
(supportsCSS ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
|
|
@@ -13444,23 +13450,35 @@ var require_index_native19 = __commonJS({
|
|
|
13444
13450
|
}), mod);
|
|
13445
13451
|
}, index_exports2 = {};
|
|
13446
13452
|
__export2(index_exports2, {
|
|
13453
|
+
createMeasure: function() {
|
|
13454
|
+
return createMeasure;
|
|
13455
|
+
},
|
|
13456
|
+
createMeasureInWindow: function() {
|
|
13457
|
+
return createMeasureInWindow;
|
|
13458
|
+
},
|
|
13459
|
+
createMeasureLayout: function() {
|
|
13460
|
+
return createMeasureLayout;
|
|
13461
|
+
},
|
|
13447
13462
|
enable: function() {
|
|
13448
13463
|
return enable;
|
|
13449
13464
|
},
|
|
13465
|
+
getBoundingClientRectAsync: function() {
|
|
13466
|
+
return getBoundingClientRectAsync;
|
|
13467
|
+
},
|
|
13450
13468
|
getElementLayoutEvent: function() {
|
|
13451
13469
|
return getElementLayoutEvent;
|
|
13452
13470
|
},
|
|
13453
|
-
|
|
13454
|
-
return
|
|
13471
|
+
measure: function() {
|
|
13472
|
+
return measure;
|
|
13455
13473
|
},
|
|
13456
|
-
|
|
13457
|
-
return
|
|
13474
|
+
measureInWindow: function() {
|
|
13475
|
+
return measureInWindow;
|
|
13458
13476
|
},
|
|
13459
13477
|
measureLayout: function() {
|
|
13460
13478
|
return measureLayout;
|
|
13461
13479
|
},
|
|
13462
|
-
|
|
13463
|
-
return
|
|
13480
|
+
measureNode: function() {
|
|
13481
|
+
return measureNode;
|
|
13464
13482
|
},
|
|
13465
13483
|
setOnLayoutStrategy: function() {
|
|
13466
13484
|
return setOnLayoutStrategy3;
|
|
@@ -13480,7 +13498,7 @@ var require_index_native19 = __commonJS({
|
|
|
13480
13498
|
return cb();
|
|
13481
13499
|
}), queuedUpdates.clear()));
|
|
13482
13500
|
}
|
|
13483
|
-
function
|
|
13501
|
+
function startGlobalObservers() {
|
|
13484
13502
|
!import_constants4.isClient || globalIntersectionObserver || (globalIntersectionObserver = new IntersectionObserver(function(entries) {
|
|
13485
13503
|
entries.forEach(function(entry) {
|
|
13486
13504
|
var node = entry.target;
|
|
@@ -13533,9 +13551,9 @@ var require_index_native19 = __commonJS({
|
|
|
13533
13551
|
}
|
|
13534
13552
|
}
|
|
13535
13553
|
}
|
|
13536
|
-
rAF(layoutOnAnimationFrame), frameCount = 0, RUN_EVERY_X_FRAMES =
|
|
13554
|
+
rAF(layoutOnAnimationFrame), frameCount = 0, userSkipVal = process.env.TAMAGUI_LAYOUT_FRAME_SKIP, RUN_EVERY_X_FRAMES = userSkipVal ? +userSkipVal : 10;
|
|
13537
13555
|
} else process.env.NODE_ENV === "development" && console.warn("No requestAnimationFrame - please polyfill for onLayout to work correctly");
|
|
13538
|
-
var layoutOnAnimationFrame, layoutOnAnimationFrame2, supportsCheckVisibility, frameCount, RUN_EVERY_X_FRAMES, getElementLayoutEvent = function(nodeRect, parentRect) {
|
|
13556
|
+
var layoutOnAnimationFrame, layoutOnAnimationFrame2, supportsCheckVisibility, frameCount, userSkipVal, RUN_EVERY_X_FRAMES, getElementLayoutEvent = function(nodeRect, parentRect) {
|
|
13539
13557
|
return {
|
|
13540
13558
|
nativeEvent: {
|
|
13541
13559
|
layout: getRelativeDimensions(nodeRect, parentRect),
|
|
@@ -13543,45 +13561,6 @@ var require_index_native19 = __commonJS({
|
|
|
13543
13561
|
},
|
|
13544
13562
|
timeStamp: Date.now()
|
|
13545
13563
|
};
|
|
13546
|
-
}, measureLayout = function(node, relativeTo, callback) {
|
|
13547
|
-
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
13548
|
-
if (relativeNode instanceof HTMLElement) {
|
|
13549
|
-
var nodeDim = node.getBoundingClientRect(), relativeNodeDim = relativeNode.getBoundingClientRect();
|
|
13550
|
-
if (relativeNodeDim && nodeDim) {
|
|
13551
|
-
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13552
|
-
callback(x, y, width, height, left, top);
|
|
13553
|
-
}
|
|
13554
|
-
}
|
|
13555
|
-
}, getElementLayoutEventAsync = async function(target) {
|
|
13556
|
-
var layout = await measureLayoutAsync(target);
|
|
13557
|
-
if (!layout) throw new Error("\u203C\uFE0F");
|
|
13558
|
-
return {
|
|
13559
|
-
nativeEvent: {
|
|
13560
|
-
layout,
|
|
13561
|
-
target
|
|
13562
|
-
},
|
|
13563
|
-
timeStamp: Date.now()
|
|
13564
|
-
};
|
|
13565
|
-
}, measureLayoutAsync = async function(node, relativeTo) {
|
|
13566
|
-
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
13567
|
-
if (relativeNode instanceof HTMLElement) {
|
|
13568
|
-
var [nodeDim, relativeNodeDim] = await Promise.all([
|
|
13569
|
-
getBoundingClientRectAsync(node),
|
|
13570
|
-
getBoundingClientRectAsync(relativeNode)
|
|
13571
|
-
]);
|
|
13572
|
-
if (relativeNodeDim && nodeDim) {
|
|
13573
|
-
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13574
|
-
return {
|
|
13575
|
-
x,
|
|
13576
|
-
y,
|
|
13577
|
-
width,
|
|
13578
|
-
height,
|
|
13579
|
-
left,
|
|
13580
|
-
top
|
|
13581
|
-
};
|
|
13582
|
-
}
|
|
13583
|
-
}
|
|
13584
|
-
return null;
|
|
13585
13564
|
}, getRelativeDimensions = function(a, b) {
|
|
13586
13565
|
var { height, left, top, width } = a, x = left - b.left, y = top - b.top;
|
|
13587
13566
|
return {
|
|
@@ -13589,8 +13568,8 @@ var require_index_native19 = __commonJS({
|
|
|
13589
13568
|
y,
|
|
13590
13569
|
width,
|
|
13591
13570
|
height,
|
|
13592
|
-
left,
|
|
13593
|
-
top
|
|
13571
|
+
pageX: a.left,
|
|
13572
|
+
pageY: a.top
|
|
13594
13573
|
};
|
|
13595
13574
|
};
|
|
13596
13575
|
function useElementLayout(ref, onLayout) {
|
|
@@ -13600,7 +13579,7 @@ var require_index_native19 = __commonJS({
|
|
|
13600
13579
|
if (onLayout) {
|
|
13601
13580
|
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
13602
13581
|
if (node2) {
|
|
13603
|
-
Nodes.add(node2),
|
|
13582
|
+
Nodes.add(node2), startGlobalObservers(), globalIntersectionObserver && (globalIntersectionObserver.observe(node2), IntersectionState.set(node2, !0));
|
|
13604
13583
|
var parentNode = node2.parentNode;
|
|
13605
13584
|
return parentNode && onLayout(getElementLayoutEvent(node2.getBoundingClientRect(), parentNode.getBoundingClientRect())), function() {
|
|
13606
13585
|
Nodes.delete(node2), LayoutHandlers.delete(node2), NodeRectCache.delete(node2), LastChangeTime.delete(node2), IntersectionState.delete(node2), globalIntersectionObserver && globalIntersectionObserver.unobserve(node2);
|
|
@@ -13625,23 +13604,41 @@ var require_index_native19 = __commonJS({
|
|
|
13625
13604
|
});
|
|
13626
13605
|
io.observe(node);
|
|
13627
13606
|
});
|
|
13628
|
-
},
|
|
13629
|
-
var
|
|
13630
|
-
if (
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
return
|
|
13636
|
-
x,
|
|
13637
|
-
y,
|
|
13638
|
-
width: node.offsetWidth,
|
|
13639
|
-
height: node.offsetHeight,
|
|
13640
|
-
top,
|
|
13641
|
-
left
|
|
13642
|
-
};
|
|
13607
|
+
}, measureNode = async function(node, relativeTo) {
|
|
13608
|
+
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
13609
|
+
if (relativeNode instanceof HTMLElement) {
|
|
13610
|
+
var [nodeDim, relativeNodeDim] = await Promise.all([
|
|
13611
|
+
getBoundingClientRectAsync(node),
|
|
13612
|
+
getBoundingClientRectAsync(relativeNode)
|
|
13613
|
+
]);
|
|
13614
|
+
if (relativeNodeDim && nodeDim) return getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13643
13615
|
}
|
|
13616
|
+
return null;
|
|
13617
|
+
}, measure = async function(node, callback) {
|
|
13618
|
+
var out = await measureNode(node, node.parentNode instanceof HTMLElement ? node.parentNode : null);
|
|
13619
|
+
return out && (callback == null || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY)), out;
|
|
13620
|
+
};
|
|
13621
|
+
function createMeasure(node) {
|
|
13622
|
+
return function(callback) {
|
|
13623
|
+
return measure(node, callback);
|
|
13624
|
+
};
|
|
13625
|
+
}
|
|
13626
|
+
var measureInWindow = async function(node, callback) {
|
|
13627
|
+
var out = await measureNode(node, null);
|
|
13628
|
+
return out && (callback == null || callback(out.pageX, out.pageY, out.width, out.height)), out;
|
|
13629
|
+
}, createMeasureInWindow = function(node) {
|
|
13630
|
+
return function(callback) {
|
|
13631
|
+
return measureInWindow(node, callback);
|
|
13632
|
+
};
|
|
13633
|
+
}, measureLayout = async function(node, relativeNode, callback) {
|
|
13634
|
+
var out = await measureNode(node, relativeNode);
|
|
13635
|
+
return out && (callback == null || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY)), out;
|
|
13644
13636
|
};
|
|
13637
|
+
function createMeasureLayout(node) {
|
|
13638
|
+
return function(relativeTo, callback) {
|
|
13639
|
+
return measureLayout(node, relativeTo, callback);
|
|
13640
|
+
};
|
|
13641
|
+
}
|
|
13645
13642
|
}
|
|
13646
13643
|
});
|
|
13647
13644
|
|
|
@@ -14207,19 +14204,7 @@ var require_index_native20 = __commonJS({
|
|
|
14207
14204
|
(0, import_web.setupHooks)({
|
|
14208
14205
|
getBaseViews: import_getBaseViews.getBaseViews,
|
|
14209
14206
|
setElementProps: function(node) {
|
|
14210
|
-
if (
|
|
14211
|
-
var _node, _node1, _node2;
|
|
14212
|
-
(_node = node).measure || (_node.measure = function(callback) {
|
|
14213
|
-
return (0, import_use_element_layout.measureLayout)(node, null, callback);
|
|
14214
|
-
}), (_node1 = node).measureLayout || (_node1.measureLayout = function(relativeToNode, success) {
|
|
14215
|
-
return (0, import_use_element_layout.measureLayout)(node, relativeToNode, success);
|
|
14216
|
-
}), (_node2 = node).measureInWindow || (_node2.measureInWindow = function(callback) {
|
|
14217
|
-
setTimeout(function() {
|
|
14218
|
-
var { height, left, top, width } = (0, import_use_element_layout.getRect)(node);
|
|
14219
|
-
callback(left, top, width, height);
|
|
14220
|
-
}, 0);
|
|
14221
|
-
});
|
|
14222
|
-
}
|
|
14207
|
+
if (0) var _node, _node1, _node2;
|
|
14223
14208
|
},
|
|
14224
14209
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
14225
14210
|
if (0) {
|
|
@@ -14320,10 +14305,10 @@ var require_Collection_native = __commonJS({
|
|
|
14320
14305
|
current: void 0
|
|
14321
14306
|
},
|
|
14322
14307
|
itemMap: /* @__PURE__ */ new Map()
|
|
14323
|
-
}), CollectionProvider = function(props) {
|
|
14324
|
-
var {
|
|
14308
|
+
}, "Toast"), CollectionProvider = function(props) {
|
|
14309
|
+
var { scope, children } = props, ref = import_react3.default.useRef(void 0), itemMap = import_react3.default.useRef(/* @__PURE__ */ new Map()).current;
|
|
14325
14310
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CollectionProviderImpl, {
|
|
14326
|
-
scope
|
|
14311
|
+
scope,
|
|
14327
14312
|
itemMap,
|
|
14328
14313
|
collectionRef: ref,
|
|
14329
14314
|
children
|
|
@@ -14331,7 +14316,7 @@ var require_Collection_native = __commonJS({
|
|
|
14331
14316
|
};
|
|
14332
14317
|
CollectionProvider.displayName = "CollectionProvider";
|
|
14333
14318
|
var COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
14334
|
-
var {
|
|
14319
|
+
var { scope, children } = props, context = useCollectionContext(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
|
|
14335
14320
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Slot, {
|
|
14336
14321
|
ref: composedRefs,
|
|
14337
14322
|
children
|
|
@@ -14339,7 +14324,7 @@ var require_Collection_native = __commonJS({
|
|
|
14339
14324
|
});
|
|
14340
14325
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
14341
14326
|
var ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = /* @__PURE__ */ import_react3.default.forwardRef(function(props, forwardedRef) {
|
|
14342
|
-
var {
|
|
14327
|
+
var { scope, children, ...itemData } = props, ref = import_react3.default.useRef(void 0), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(scope);
|
|
14343
14328
|
return import_react3.default.useEffect(function() {
|
|
14344
14329
|
return context.itemMap.set(ref, {
|
|
14345
14330
|
ref,
|
|
@@ -14354,8 +14339,8 @@ var require_Collection_native = __commonJS({
|
|
|
14354
14339
|
});
|
|
14355
14340
|
});
|
|
14356
14341
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
14357
|
-
function useCollection(
|
|
14358
|
-
var context = useCollectionContext(
|
|
14342
|
+
function useCollection(scope) {
|
|
14343
|
+
var context = useCollectionContext(scope), getItems = import_react3.default.useCallback(function() {
|
|
14359
14344
|
if (!import_constants4.isWeb) return [];
|
|
14360
14345
|
var collectionNode = context.collectionRef.current;
|
|
14361
14346
|
if (!collectionNode) return [];
|
|
@@ -15872,7 +15857,7 @@ var require_Accordion_native = __commonJS({
|
|
|
15872
15857
|
], [Collection, useCollection] = (0, import_collection.createCollection)(ACCORDION_NAME), ACCORDION_CONTEXT = "Accordion", AccordionComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
15873
15858
|
var { type, ...accordionProps } = props, singleProps = accordionProps, multipleProps = accordionProps;
|
|
15874
15859
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.Provider, {
|
|
15875
|
-
|
|
15860
|
+
scope: props.__scopeAccordion || ACCORDION_CONTEXT,
|
|
15876
15861
|
children: type === "multiple" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionImplMultiple, {
|
|
15877
15862
|
...multipleProps,
|
|
15878
15863
|
ref: forwardedRef
|
|
@@ -16008,7 +15993,7 @@ var require_Accordion_native = __commonJS({
|
|
|
16008
15993
|
direction: dir,
|
|
16009
15994
|
orientation,
|
|
16010
15995
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.Slot, {
|
|
16011
|
-
|
|
15996
|
+
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
16012
15997
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
|
|
16013
15998
|
"data-orientation": orientation,
|
|
16014
15999
|
ref: composedRef,
|
|
@@ -16079,7 +16064,7 @@ var require_Accordion_native = __commonJS({
|
|
|
16079
16064
|
}), AccordionTrigger = AccordionTriggerFrame.styleable(function(props, forwardedRef) {
|
|
16080
16065
|
var { __scopeAccordion, ...triggerProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
|
|
16081
16066
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Collection.ItemSlot, {
|
|
16082
|
-
|
|
16067
|
+
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
16083
16068
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AccordionTriggerFrame, {
|
|
16084
16069
|
// @ts-ignore
|
|
16085
16070
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT,
|
|
@@ -16663,7 +16648,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
16663
16648
|
});
|
|
16664
16649
|
});
|
|
16665
16650
|
function PortalHostWeb(props) {
|
|
16666
|
-
return (0,
|
|
16651
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
16667
16652
|
return function() {
|
|
16668
16653
|
import_constants22.allPortalHosts.delete(props.name);
|
|
16669
16654
|
};
|
|
@@ -16685,7 +16670,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
16685
16670
|
}
|
|
16686
16671
|
function PortalHostNonNative(props) {
|
|
16687
16672
|
var { name, forwardProps, render = defaultRenderer } = props, state = usePortalState(name), { registerHost: registerHost2, deregisterHost: deregisterHost2 } = usePortal(props.name);
|
|
16688
|
-
return (0,
|
|
16673
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
16689
16674
|
if (!(typeof window > "u")) return registerHost2(), function() {
|
|
16690
16675
|
deregisterHost2();
|
|
16691
16676
|
};
|
|
@@ -17087,7 +17072,7 @@ var require_Adapt_native = __commonJS({
|
|
|
17087
17072
|
}
|
|
17088
17073
|
});
|
|
17089
17074
|
module2.exports = __toCommonJS2(Adapt_exports);
|
|
17090
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"),
|
|
17075
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_z_index_stack2 = require_index_native29(), import_react3 = __toESM2(require("react")), AdaptContext = (0, import_core12.createStyledContext)({
|
|
17091
17076
|
Contents: null,
|
|
17092
17077
|
scopeName: "",
|
|
17093
17078
|
portalName: "",
|
|
@@ -17098,42 +17083,56 @@ var require_Adapt_native = __commonJS({
|
|
|
17098
17083
|
setChildren: null,
|
|
17099
17084
|
setWhen: function() {
|
|
17100
17085
|
}
|
|
17101
|
-
}), ProvideAdaptContext = function(param) {
|
|
17102
|
-
var { children, ...context } = param, scope = context.scopeName || "";
|
|
17103
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17104
|
-
value:
|
|
17086
|
+
}), LastAdaptContextScope = /* @__PURE__ */ (0, import_react3.createContext)(""), ProvideAdaptContext = function(param) {
|
|
17087
|
+
var { children, ...context } = param, scope = context.scopeName || "", lastScope = (0, import_react3.useContext)(LastAdaptContextScope);
|
|
17088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope.Provider, {
|
|
17089
|
+
value: lastScope || context.lastScope || "",
|
|
17105
17090
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AdaptContext.Provider, {
|
|
17106
17091
|
scope,
|
|
17092
|
+
lastScope: lastScope || context.lastScope,
|
|
17107
17093
|
...context,
|
|
17108
17094
|
children
|
|
17109
17095
|
})
|
|
17110
17096
|
});
|
|
17111
|
-
}, useAdaptContext = function() {
|
|
17112
|
-
var
|
|
17113
|
-
return
|
|
17097
|
+
}, useAdaptContext = function(scope) {
|
|
17098
|
+
var lastScope = (0, import_react3.useContext)(LastAdaptContextScope), adaptScope = scope ?? lastScope;
|
|
17099
|
+
return AdaptContext.useStyledContext(adaptScope);
|
|
17114
17100
|
}, AdaptPortals = /* @__PURE__ */ new Map(), AdaptParent = function(param) {
|
|
17115
|
-
var { children, Contents, scope, portal } = param, portalName = `AdaptPortal${scope}`,
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
AdaptPortals.delete(id);
|
|
17101
|
+
var { children, Contents, scope, portal } = param, id = (0, import_react3.useId)(), portalName = `AdaptPortal${scope}${id}`, FinalContents = (0, import_react3.useMemo)(function() {
|
|
17102
|
+
if (Contents) return Contents;
|
|
17103
|
+
if (AdaptPortals.has(portalName)) return AdaptPortals.get(portalName);
|
|
17104
|
+
var element = function() {
|
|
17105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, {
|
|
17106
|
+
name: portalName,
|
|
17107
|
+
forwardProps: typeof portal == "boolean" || portal == null ? void 0 : portal.forwardProps
|
|
17108
|
+
}, id);
|
|
17124
17109
|
};
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
|
|
17128
|
-
Contents: FinalContents,
|
|
17129
|
-
when,
|
|
17130
|
-
platform: platform2,
|
|
17131
|
-
setPlatform,
|
|
17132
|
-
setWhen,
|
|
17133
|
-
setChildren,
|
|
17110
|
+
return AdaptPortals.set(portalName, element), element;
|
|
17111
|
+
}, [
|
|
17134
17112
|
portalName,
|
|
17135
|
-
|
|
17136
|
-
|
|
17113
|
+
Contents
|
|
17114
|
+
]);
|
|
17115
|
+
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
17116
|
+
return AdaptPortals.set(portalName, FinalContents), function() {
|
|
17117
|
+
AdaptPortals.delete(portalName);
|
|
17118
|
+
};
|
|
17119
|
+
}, [
|
|
17120
|
+
portalName
|
|
17121
|
+
]);
|
|
17122
|
+
var [when, setWhen] = import_react3.default.useState(null), [platform2, setPlatform] = import_react3.default.useState(null), [children2, setChildren] = import_react3.default.useState(null);
|
|
17123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(LastAdaptContextScope, {
|
|
17124
|
+
value: scope,
|
|
17125
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProvideAdaptContext, {
|
|
17126
|
+
Contents: FinalContents,
|
|
17127
|
+
when,
|
|
17128
|
+
platform: platform2,
|
|
17129
|
+
setPlatform,
|
|
17130
|
+
setWhen,
|
|
17131
|
+
setChildren,
|
|
17132
|
+
portalName,
|
|
17133
|
+
scopeName: scope,
|
|
17134
|
+
children
|
|
17135
|
+
})
|
|
17137
17136
|
});
|
|
17138
17137
|
}, AdaptContents = function(param) {
|
|
17139
17138
|
var { scope, ...rest } = param, context = useAdaptContext(scope);
|
|
@@ -17145,7 +17144,7 @@ var require_Adapt_native = __commonJS({
|
|
|
17145
17144
|
};
|
|
17146
17145
|
AdaptContents.shouldForwardSpace = !0;
|
|
17147
17146
|
var Adapt = (0, import_helpers.withStaticProperties)(function(props) {
|
|
17148
|
-
var { platform: platform2, when, children, scope } = props, context = useAdaptContext(scope),
|
|
17147
|
+
var { platform: platform2, when, children, scope } = props, context = useAdaptContext(scope), enabled = useAdaptIsActiveGiven(props);
|
|
17149
17148
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
17150
17149
|
var _context_setWhen, _context_setPlatform;
|
|
17151
17150
|
context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, when || enabled), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, platform2 || null);
|
|
@@ -17171,10 +17170,7 @@ var require_Adapt_native = __commonJS({
|
|
|
17171
17170
|
}, [
|
|
17172
17171
|
output
|
|
17173
17172
|
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
17174
|
-
children:
|
|
17175
|
-
value: scopeName,
|
|
17176
|
-
children: enabled ? output : null
|
|
17177
|
-
})
|
|
17173
|
+
children: enabled ? output : null
|
|
17178
17174
|
});
|
|
17179
17175
|
}, {
|
|
17180
17176
|
Contents: AdaptContents
|
|
@@ -17188,6 +17184,7 @@ var require_Adapt_native = __commonJS({
|
|
|
17188
17184
|
}, useAdaptIsActiveGiven = function(param) {
|
|
17189
17185
|
var { when, platform: platform2 } = param, media = (0, import_core12.useMedia)();
|
|
17190
17186
|
if (when == null && platform2 == null) return !1;
|
|
17187
|
+
if (when === !0) return !0;
|
|
17191
17188
|
var enabled = !1;
|
|
17192
17189
|
return platform2 === "touch" ? enabled = import_constants4.isTouchable : platform2 === "native" ? enabled = !import_constants4.isWeb : platform2 === "web" ? enabled = import_constants4.isWeb : platform2 === "ios" ? enabled = import_constants4.isIos : platform2 === "android" && (enabled = import_constants4.isAndroid), platform2 && enabled == !1 ? !1 : (when && typeof when == "string" && (enabled = media[when]), enabled);
|
|
17193
17190
|
}, useAdaptIsActive = function(scope) {
|
|
@@ -17236,6 +17233,93 @@ var require_index_native31 = __commonJS({
|
|
|
17236
17233
|
}
|
|
17237
17234
|
});
|
|
17238
17235
|
|
|
17236
|
+
// ../../core/aria-hidden/dist/cjs/AriaHidden.native.js
|
|
17237
|
+
var require_AriaHidden_native = __commonJS({
|
|
17238
|
+
"../../core/aria-hidden/dist/cjs/AriaHidden.native.js"(exports2, module2) {
|
|
17239
|
+
"use strict";
|
|
17240
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
17241
|
+
for (var name in all) __defProp2(target, name, {
|
|
17242
|
+
get: all[name],
|
|
17243
|
+
enumerable: !0
|
|
17244
|
+
});
|
|
17245
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
17246
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
17247
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17248
|
+
for (var _loop = function() {
|
|
17249
|
+
var key = _step.value;
|
|
17250
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17251
|
+
get: function() {
|
|
17252
|
+
return from[key];
|
|
17253
|
+
},
|
|
17254
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17255
|
+
});
|
|
17256
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17257
|
+
} catch (err) {
|
|
17258
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
17259
|
+
} finally {
|
|
17260
|
+
try {
|
|
17261
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17262
|
+
} finally {
|
|
17263
|
+
if (_didIteratorError)
|
|
17264
|
+
throw _iteratorError;
|
|
17265
|
+
}
|
|
17266
|
+
}
|
|
17267
|
+
return to;
|
|
17268
|
+
}, __toCommonJS2 = function(mod) {
|
|
17269
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17270
|
+
value: !0
|
|
17271
|
+
}), mod);
|
|
17272
|
+
}, AriaHidden_native_exports = {};
|
|
17273
|
+
__export2(AriaHidden_native_exports, {
|
|
17274
|
+
hideOthers: function() {
|
|
17275
|
+
return hideOthers;
|
|
17276
|
+
}
|
|
17277
|
+
});
|
|
17278
|
+
module2.exports = __toCommonJS2(AriaHidden_native_exports);
|
|
17279
|
+
var hideOthers = function() {
|
|
17280
|
+
};
|
|
17281
|
+
}
|
|
17282
|
+
});
|
|
17283
|
+
|
|
17284
|
+
// ../../core/aria-hidden/dist/cjs/index.native.js
|
|
17285
|
+
var require_index_native32 = __commonJS({
|
|
17286
|
+
"../../core/aria-hidden/dist/cjs/index.native.js"(exports2, module2) {
|
|
17287
|
+
"use strict";
|
|
17288
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
17289
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
17290
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17291
|
+
for (var _loop = function() {
|
|
17292
|
+
var key = _step.value;
|
|
17293
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17294
|
+
get: function() {
|
|
17295
|
+
return from[key];
|
|
17296
|
+
},
|
|
17297
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17298
|
+
});
|
|
17299
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17300
|
+
} catch (err) {
|
|
17301
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
17302
|
+
} finally {
|
|
17303
|
+
try {
|
|
17304
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17305
|
+
} finally {
|
|
17306
|
+
if (_didIteratorError)
|
|
17307
|
+
throw _iteratorError;
|
|
17308
|
+
}
|
|
17309
|
+
}
|
|
17310
|
+
return to;
|
|
17311
|
+
}, __reExport2 = function(target, mod, secondTarget) {
|
|
17312
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
17313
|
+
}, __toCommonJS2 = function(mod) {
|
|
17314
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17315
|
+
value: !0
|
|
17316
|
+
}), mod);
|
|
17317
|
+
}, index_exports2 = {};
|
|
17318
|
+
module2.exports = __toCommonJS2(index_exports2);
|
|
17319
|
+
__reExport2(index_exports2, require_AriaHidden_native(), module2.exports);
|
|
17320
|
+
}
|
|
17321
|
+
});
|
|
17322
|
+
|
|
17239
17323
|
// ../../core/create-context/dist/cjs/create-context.native.js
|
|
17240
17324
|
var require_create_context_native = __commonJS({
|
|
17241
17325
|
"../../core/create-context/dist/cjs/create-context.native.js"(exports2, module2) {
|
|
@@ -17405,7 +17489,7 @@ var require_create_context_native = __commonJS({
|
|
|
17405
17489
|
});
|
|
17406
17490
|
|
|
17407
17491
|
// ../../core/create-context/dist/cjs/index.native.js
|
|
17408
|
-
var
|
|
17492
|
+
var require_index_native33 = __commonJS({
|
|
17409
17493
|
"../../core/create-context/dist/cjs/index.native.js"(exports2, module2) {
|
|
17410
17494
|
"use strict";
|
|
17411
17495
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -17443,93 +17527,6 @@ var require_index_native32 = __commonJS({
|
|
|
17443
17527
|
}
|
|
17444
17528
|
});
|
|
17445
17529
|
|
|
17446
|
-
// ../../core/aria-hidden/dist/cjs/AriaHidden.native.js
|
|
17447
|
-
var require_AriaHidden_native = __commonJS({
|
|
17448
|
-
"../../core/aria-hidden/dist/cjs/AriaHidden.native.js"(exports2, module2) {
|
|
17449
|
-
"use strict";
|
|
17450
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
17451
|
-
for (var name in all) __defProp2(target, name, {
|
|
17452
|
-
get: all[name],
|
|
17453
|
-
enumerable: !0
|
|
17454
|
-
});
|
|
17455
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
17456
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
17457
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17458
|
-
for (var _loop = function() {
|
|
17459
|
-
var key = _step.value;
|
|
17460
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17461
|
-
get: function() {
|
|
17462
|
-
return from[key];
|
|
17463
|
-
},
|
|
17464
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17465
|
-
});
|
|
17466
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17467
|
-
} catch (err) {
|
|
17468
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
17469
|
-
} finally {
|
|
17470
|
-
try {
|
|
17471
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17472
|
-
} finally {
|
|
17473
|
-
if (_didIteratorError)
|
|
17474
|
-
throw _iteratorError;
|
|
17475
|
-
}
|
|
17476
|
-
}
|
|
17477
|
-
return to;
|
|
17478
|
-
}, __toCommonJS2 = function(mod) {
|
|
17479
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17480
|
-
value: !0
|
|
17481
|
-
}), mod);
|
|
17482
|
-
}, AriaHidden_native_exports = {};
|
|
17483
|
-
__export2(AriaHidden_native_exports, {
|
|
17484
|
-
hideOthers: function() {
|
|
17485
|
-
return hideOthers;
|
|
17486
|
-
}
|
|
17487
|
-
});
|
|
17488
|
-
module2.exports = __toCommonJS2(AriaHidden_native_exports);
|
|
17489
|
-
var hideOthers = function() {
|
|
17490
|
-
};
|
|
17491
|
-
}
|
|
17492
|
-
});
|
|
17493
|
-
|
|
17494
|
-
// ../../core/aria-hidden/dist/cjs/index.native.js
|
|
17495
|
-
var require_index_native33 = __commonJS({
|
|
17496
|
-
"../../core/aria-hidden/dist/cjs/index.native.js"(exports2, module2) {
|
|
17497
|
-
"use strict";
|
|
17498
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
17499
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
17500
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
17501
|
-
for (var _loop = function() {
|
|
17502
|
-
var key = _step.value;
|
|
17503
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
17504
|
-
get: function() {
|
|
17505
|
-
return from[key];
|
|
17506
|
-
},
|
|
17507
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
17508
|
-
});
|
|
17509
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
17510
|
-
} catch (err) {
|
|
17511
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
17512
|
-
} finally {
|
|
17513
|
-
try {
|
|
17514
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
17515
|
-
} finally {
|
|
17516
|
-
if (_didIteratorError)
|
|
17517
|
-
throw _iteratorError;
|
|
17518
|
-
}
|
|
17519
|
-
}
|
|
17520
|
-
return to;
|
|
17521
|
-
}, __reExport2 = function(target, mod, secondTarget) {
|
|
17522
|
-
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
17523
|
-
}, __toCommonJS2 = function(mod) {
|
|
17524
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
17525
|
-
value: !0
|
|
17526
|
-
}), mod);
|
|
17527
|
-
}, index_exports2 = {};
|
|
17528
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
17529
|
-
__reExport2(index_exports2, require_AriaHidden_native(), module2.exports);
|
|
17530
|
-
}
|
|
17531
|
-
});
|
|
17532
|
-
|
|
17533
17530
|
// ../dismissable/dist/cjs/Dismissable.native.js
|
|
17534
17531
|
var require_Dismissable_native = __commonJS({
|
|
17535
17532
|
"../dismissable/dist/cjs/Dismissable.native.js"(exports2, module2) {
|
|
@@ -17760,7 +17757,7 @@ var require_FocusScopeController_native = __commonJS({
|
|
|
17760
17757
|
}
|
|
17761
17758
|
});
|
|
17762
17759
|
module2.exports = __toCommonJS2(FocusScopeController_exports);
|
|
17763
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context =
|
|
17760
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_create_context = require_index_native33(), import_use_event = require_index_native8(), React4 = __toESM2(require("react")), FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController", [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME), [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
|
|
17764
17761
|
function FocusScopeController(props) {
|
|
17765
17762
|
var { __scopeFocusScope, children, enabled, loop, trapped, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props, stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus), stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus), contextValue = React4.useMemo(function() {
|
|
17766
17763
|
return {
|
|
@@ -18031,7 +18028,7 @@ var require_SheetContext_native = __commonJS({
|
|
|
18031
18028
|
}
|
|
18032
18029
|
});
|
|
18033
18030
|
module2.exports = __toCommonJS2(SheetContext_exports);
|
|
18034
|
-
var import_create_context =
|
|
18031
|
+
var import_create_context = require_index_native33(), import_constants4 = require_constants_native4(), [createSheetContext, createSheetScope2] = (0, import_create_context.createContextScope)(import_constants4.SHEET_NAME), [SheetProvider, useSheetContext] = createSheetContext(import_constants4.SHEET_NAME, {});
|
|
18035
18032
|
}
|
|
18036
18033
|
});
|
|
18037
18034
|
|
|
@@ -18731,7 +18728,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18731
18728
|
if (isScrolled) return previouslyScrolling = !0, !1;
|
|
18732
18729
|
if (isNearTop && hasScrollView.current && isDraggingUp) return !1;
|
|
18733
18730
|
}
|
|
18734
|
-
return Math.abs(dy) >
|
|
18731
|
+
return Math.abs(dy) > 10;
|
|
18735
18732
|
}
|
|
18736
18733
|
var granted = getShouldSet();
|
|
18737
18734
|
return granted && scrollBridge.setParentDragging(!0), granted;
|
|
@@ -19200,7 +19197,8 @@ var require_SheetScrollView_native = __commonJS({
|
|
|
19200
19197
|
state.current.isScrolling = !0, scrollBridge.scrollLock = !0, setScrollEnabled(!0);
|
|
19201
19198
|
return;
|
|
19202
19199
|
}
|
|
19203
|
-
|
|
19200
|
+
var isDraggingUpFromTopOnFirstScroll = !state.current.isScrolling && dy > 0 && scrollBridge.y === 0;
|
|
19201
|
+
if (!isDraggingUpFromTopOnFirstScroll && scrollBridge.y >= 0) return;
|
|
19204
19202
|
setScrollEnabled(!1), scrollBridge.drag(dragAt), state.current.dragAt = dragAt, state.current.dys.push(dy), state.current.dys.length > 100 && (state.current.dys = state.current.dys.slice(-10));
|
|
19205
19203
|
}
|
|
19206
19204
|
},
|
|
@@ -19408,6 +19406,7 @@ var require_createSheet_native = __commonJS({
|
|
|
19408
19406
|
!disableHideBottomOverflow && // @ts-ignore
|
|
19409
19407
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, {
|
|
19410
19408
|
...props,
|
|
19409
|
+
"data-testid": "ensure-sheet-cover-not-overlapping",
|
|
19411
19410
|
componentName: "SheetCover",
|
|
19412
19411
|
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
19413
19412
|
children: null,
|
|
@@ -19865,6 +19864,9 @@ var require_Dialog_native = __commonJS({
|
|
|
19865
19864
|
DialogContent: function() {
|
|
19866
19865
|
return DialogContent;
|
|
19867
19866
|
},
|
|
19867
|
+
DialogContext: function() {
|
|
19868
|
+
return DialogContext;
|
|
19869
|
+
},
|
|
19868
19870
|
DialogDescription: function() {
|
|
19869
19871
|
return DialogDescription;
|
|
19870
19872
|
},
|
|
@@ -19880,6 +19882,9 @@ var require_Dialog_native = __commonJS({
|
|
|
19880
19882
|
DialogPortalFrame: function() {
|
|
19881
19883
|
return DialogPortalFrame;
|
|
19882
19884
|
},
|
|
19885
|
+
DialogProvider: function() {
|
|
19886
|
+
return DialogProvider;
|
|
19887
|
+
},
|
|
19883
19888
|
DialogTitle: function() {
|
|
19884
19889
|
return DialogTitle;
|
|
19885
19890
|
},
|
|
@@ -19889,15 +19894,19 @@ var require_Dialog_native = __commonJS({
|
|
|
19889
19894
|
DialogWarningProvider: function() {
|
|
19890
19895
|
return DialogWarningProvider;
|
|
19891
19896
|
},
|
|
19892
|
-
|
|
19893
|
-
return
|
|
19897
|
+
useDialogContext: function() {
|
|
19898
|
+
return useDialogContext;
|
|
19894
19899
|
}
|
|
19895
19900
|
});
|
|
19896
19901
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
19897
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native4(), import_aria_hidden =
|
|
19898
|
-
|
|
19902
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native32(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_dismissable = require_index_native34(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_text2 = require_index_native26(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), DialogContext = (0, import_core12.createStyledContext)(
|
|
19903
|
+
// since we always provide this we can avoid setting here
|
|
19904
|
+
{},
|
|
19905
|
+
"Dialog__"
|
|
19906
|
+
), { useStyledContext: useDialogContext, Provider: DialogProvider } = DialogContext, DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
19907
|
+
name: "DialogTrigger"
|
|
19899
19908
|
}), DialogTrigger = DialogTriggerFrame.styleable(function(props, forwardedRef) {
|
|
19900
|
-
var {
|
|
19909
|
+
var { scope, ...triggerProps } = props, isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext), context = useDialogContext(scope), composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
19901
19910
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.ButtonNestingContext.Provider, {
|
|
19902
19911
|
value: !0,
|
|
19903
19912
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTriggerFrame, {
|
|
@@ -19911,8 +19920,6 @@ var require_Dialog_native = __commonJS({
|
|
|
19911
19920
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.onOpenToggle)
|
|
19912
19921
|
})
|
|
19913
19922
|
});
|
|
19914
|
-
}), PORTAL_NAME = "DialogPortal", [PortalProvider2, usePortalContext] = createDialogContext(PORTAL_NAME, {
|
|
19915
|
-
forceMount: void 0
|
|
19916
19923
|
}), DialogPortalFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
19917
19924
|
pointerEvents: "none",
|
|
19918
19925
|
variants: {
|
|
@@ -19931,73 +19938,70 @@ var require_Dialog_native = __commonJS({
|
|
|
19931
19938
|
defaultVariants: {
|
|
19932
19939
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19933
19940
|
}
|
|
19934
|
-
}), DialogPortalItem = function(
|
|
19935
|
-
var {
|
|
19936
|
-
|
|
19937
|
-
children
|
|
19938
|
-
separator,
|
|
19939
|
-
space,
|
|
19940
|
-
direction: spaceDirection
|
|
19941
|
-
}));
|
|
19942
|
-
var content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
|
|
19943
|
-
scope: __scopeDialog,
|
|
19944
|
-
...context,
|
|
19945
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
19946
|
-
name: themeName,
|
|
19947
|
-
children: childrenSpaced
|
|
19948
|
-
})
|
|
19941
|
+
}), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, DialogPortalItem = function(param) {
|
|
19942
|
+
var { context, children } = param, themeName = (0, import_core12.useThemeName)(), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope), content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
19943
|
+
name: themeName,
|
|
19944
|
+
children
|
|
19949
19945
|
});
|
|
19950
|
-
return
|
|
19946
|
+
return needsRepropagation && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.ProvideAdaptContext, {
|
|
19947
|
+
...adaptContext,
|
|
19948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
|
|
19949
|
+
...context,
|
|
19950
|
+
children: content
|
|
19951
|
+
})
|
|
19952
|
+
})), isAdapted ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
|
|
19953
|
+
scope: context.adaptScope,
|
|
19951
19954
|
children: content
|
|
19952
19955
|
}) : context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, {
|
|
19953
|
-
hostName: context.modal ? "root" : context.
|
|
19956
|
+
hostName: context.modal ? "root" : context.adaptScope,
|
|
19954
19957
|
children: content
|
|
19955
19958
|
}) : content;
|
|
19956
19959
|
}, DialogPortal = function(props) {
|
|
19957
|
-
var {
|
|
19960
|
+
var { scope, forceMount, children, ...frameProps } = props, context = useDialogContext(scope), isShowing = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React4.useState(!isShowing), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
19958
19961
|
isShowing && isFullyHidden && setIsFullyHidden(!1);
|
|
19959
19962
|
var handleExitComplete = React4.useCallback(function() {
|
|
19960
19963
|
setIsFullyHidden(!0);
|
|
19961
19964
|
}, []), zIndex = (0, import_core12.getExpandedShorthand)("zIndex", props), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_z_index_stack2.StackZIndexContext, {
|
|
19962
19965
|
zIndex: (0, import_portal2.resolveViewZIndex)(zIndex),
|
|
19963
19966
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
19967
|
+
passThrough: isAdapted,
|
|
19964
19968
|
onExitComplete: handleExitComplete,
|
|
19965
19969
|
children: isShowing || isAdapted ? children : null
|
|
19966
19970
|
})
|
|
19967
19971
|
});
|
|
19968
19972
|
if (isFullyHidden && !isAdapted) return null;
|
|
19969
|
-
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
19970
|
-
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
...frameProps,
|
|
19975
|
-
children: contents
|
|
19976
|
-
})
|
|
19973
|
+
var framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, {
|
|
19974
|
+
// passThrough={isAdapted}
|
|
19975
|
+
pointerEvents: isShowing ? "auto" : "none",
|
|
19976
|
+
...frameProps,
|
|
19977
|
+
children: contents
|
|
19977
19978
|
});
|
|
19978
19979
|
return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
19979
19980
|
zIndex,
|
|
19980
19981
|
// set to 1000 which "boosts" it 1000 above baseline for current context
|
|
19981
19982
|
// this makes sure its above (this first 1k) popovers on the same layer
|
|
19982
19983
|
stackZIndex: 1e3,
|
|
19984
|
+
passThrough: isAdapted,
|
|
19983
19985
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, {
|
|
19986
|
+
passThrough: isAdapted,
|
|
19984
19987
|
children: framedContents
|
|
19985
19988
|
})
|
|
19986
19989
|
}) : isAdapted ? framedContents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
|
|
19987
|
-
|
|
19990
|
+
context,
|
|
19988
19991
|
children: framedContents
|
|
19989
19992
|
});
|
|
19990
19993
|
}, PassthroughTheme = function(param) {
|
|
19991
|
-
var { children } = param, themeName = (0, import_core12.useThemeName)();
|
|
19994
|
+
var { children, passThrough } = param, themeName = (0, import_core12.useThemeName)();
|
|
19992
19995
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
19996
|
+
passThrough,
|
|
19993
19997
|
name: themeName,
|
|
19994
19998
|
forceClassName: !0,
|
|
19995
19999
|
children
|
|
19996
20000
|
});
|
|
19997
20001
|
}, OVERLAY_NAME = "DialogOverlay", DialogOverlayFrame = (0, import_core12.styled)(import_sheet.Overlay, {
|
|
19998
20002
|
name: OVERLAY_NAME
|
|
19999
|
-
}), DialogOverlay = DialogOverlayFrame.
|
|
20000
|
-
var {
|
|
20003
|
+
}), DialogOverlay = DialogOverlayFrame.styleable(function(param, forwardedRef) {
|
|
20004
|
+
var { scope, ...props } = param, context = useDialogContext(scope), { forceMount = context.forceMount, ...overlayProps } = props, isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
20001
20005
|
return !forceMount && (!context.modal || isAdapted) ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayFrame, {
|
|
20002
20006
|
"data-state": getState(context.open),
|
|
20003
20007
|
// TODO: this will be apply for v2
|
|
@@ -20010,7 +20014,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20010
20014
|
...overlayProps,
|
|
20011
20015
|
ref: forwardedRef
|
|
20012
20016
|
});
|
|
20013
|
-
})
|
|
20017
|
+
}), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
20014
20018
|
name: CONTENT_NAME,
|
|
20015
20019
|
tag: "dialog",
|
|
20016
20020
|
variants: {
|
|
@@ -20034,8 +20038,8 @@ var require_Dialog_native = __commonJS({
|
|
|
20034
20038
|
size: "$true",
|
|
20035
20039
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
20036
20040
|
}
|
|
20037
|
-
}), DialogContent = DialogContentFrame.
|
|
20038
|
-
var {
|
|
20041
|
+
}), DialogContent = DialogContentFrame.styleable(function(param, forwardedRef) {
|
|
20042
|
+
var { scope, ...props } = param, context = useDialogContext(scope), { forceMount = context.forceMount, ...contentProps } = props, contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
|
|
20039
20043
|
children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentModal, {
|
|
20040
20044
|
context,
|
|
20041
20045
|
...contentProps,
|
|
@@ -20054,7 +20058,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20054
20058
|
children: contents
|
|
20055
20059
|
})
|
|
20056
20060
|
});
|
|
20057
|
-
})
|
|
20061
|
+
}), DialogContentModal = /* @__PURE__ */ React4.forwardRef(function(param, forwardedRef) {
|
|
20058
20062
|
var { children, context, ...props } = param, contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.contentRef, contentRef);
|
|
20059
20063
|
return React4.useEffect(function() {
|
|
20060
20064
|
if (import_constants4.isWeb && context.open) {
|
|
@@ -20118,11 +20122,12 @@ var require_Dialog_native = __commonJS({
|
|
|
20118
20122
|
}
|
|
20119
20123
|
});
|
|
20120
20124
|
}), DialogContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20121
|
-
var {
|
|
20125
|
+
var { trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, context, ...contentProps } = props, contentRef = React4.useRef(
|
|
20122
20126
|
// TODO react 19 type workaround
|
|
20123
20127
|
void 0
|
|
20124
|
-
), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)();
|
|
20128
|
+
), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
20125
20129
|
if (isAdapted) return !import_constants4.isWeb && !context.open ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, {
|
|
20130
|
+
context,
|
|
20126
20131
|
children: contentProps.children
|
|
20127
20132
|
});
|
|
20128
20133
|
var contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogContentFrame, {
|
|
@@ -20173,7 +20178,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20173
20178
|
}), DialogTitleFrame = (0, import_core12.styled)(import_text2.H2, {
|
|
20174
20179
|
name: "DialogTitle"
|
|
20175
20180
|
}), DialogTitle = DialogTitleFrame.styleable(function(props, forwardedRef) {
|
|
20176
|
-
var {
|
|
20181
|
+
var { scope, ...titleProps } = props, context = useDialogContext(scope);
|
|
20177
20182
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogTitleFrame, {
|
|
20178
20183
|
id: context.titleId,
|
|
20179
20184
|
...titleProps,
|
|
@@ -20181,8 +20186,8 @@ var require_Dialog_native = __commonJS({
|
|
|
20181
20186
|
});
|
|
20182
20187
|
}), DialogDescriptionFrame = (0, import_core12.styled)(import_text2.Paragraph, {
|
|
20183
20188
|
name: "DialogDescription"
|
|
20184
|
-
}),
|
|
20185
|
-
var {
|
|
20189
|
+
}), DialogDescription = DialogDescriptionFrame.styleable(function(props, forwardedRef) {
|
|
20190
|
+
var { scope, ...descriptionProps } = props, context = useDialogContext(scope);
|
|
20186
20191
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogDescriptionFrame, {
|
|
20187
20192
|
id: context.descriptionId,
|
|
20188
20193
|
...descriptionProps,
|
|
@@ -20192,10 +20197,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20192
20197
|
name: CLOSE_NAME,
|
|
20193
20198
|
tag: "button"
|
|
20194
20199
|
}), DialogClose = DialogCloseFrame.styleable(function(props, forwardedRef) {
|
|
20195
|
-
var {
|
|
20196
|
-
warn: !1,
|
|
20197
|
-
fallback: {}
|
|
20198
|
-
}), isAdapted = (0, import_adapt.useAdaptIsActive)(), isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext);
|
|
20200
|
+
var { scope, displayWhenAdapted, ...closeProps } = props, context = useDialogContext(scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), isInsideButton = React4.useContext(import_stacks3.ButtonNestingContext);
|
|
20199
20201
|
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogCloseFrame, {
|
|
20200
20202
|
accessibilityLabel: "Dialog Close",
|
|
20201
20203
|
tag: isInsideButton ? "span" : "button",
|
|
@@ -20251,10 +20253,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20251
20253
|
}
|
|
20252
20254
|
return null;
|
|
20253
20255
|
}, Dialog = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(props, ref) {
|
|
20254
|
-
var {
|
|
20255
|
-
scopeKey,
|
|
20256
|
-
contentId
|
|
20257
|
-
}), triggerRef = React4.useRef(null), contentRef = React4.useRef(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
20256
|
+
var { scope = "", children, open: openProp, defaultOpen = !1, onOpenChange, modal = !0, disableRemoveScroll = !1 } = props, baseId = React4.useId(), dialogId = `Dialog-${scope}-${baseId}`, contentId = `${dialogId}-content`, titleId = `${dialogId}-title`, descriptionId = `${dialogId}-description`, triggerRef = React4.useRef(null), contentRef = React4.useRef(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
20258
20257
|
prop: openProp,
|
|
20259
20258
|
defaultProp: defaultOpen,
|
|
20260
20259
|
onChange: onOpenChange
|
|
@@ -20264,9 +20263,9 @@ var require_Dialog_native = __commonJS({
|
|
|
20264
20263
|
});
|
|
20265
20264
|
}, [
|
|
20266
20265
|
setOpen
|
|
20267
|
-
]), context = {
|
|
20268
|
-
|
|
20269
|
-
|
|
20266
|
+
]), adaptScope = `DialogAdapt${scope}`, context = {
|
|
20267
|
+
dialogScope: scope,
|
|
20268
|
+
adaptScope,
|
|
20270
20269
|
triggerRef,
|
|
20271
20270
|
contentRef,
|
|
20272
20271
|
contentId,
|
|
@@ -20276,8 +20275,7 @@ var require_Dialog_native = __commonJS({
|
|
|
20276
20275
|
onOpenChange: setOpen,
|
|
20277
20276
|
onOpenToggle,
|
|
20278
20277
|
modal,
|
|
20279
|
-
disableRemoveScroll
|
|
20280
|
-
adaptName
|
|
20278
|
+
disableRemoveScroll
|
|
20281
20279
|
};
|
|
20282
20280
|
return React4.useImperativeHandle(ref, function() {
|
|
20283
20281
|
return {
|
|
@@ -20286,15 +20284,16 @@ var require_Dialog_native = __commonJS({
|
|
|
20286
20284
|
}, [
|
|
20287
20285
|
setOpen
|
|
20288
20286
|
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
|
|
20289
|
-
scope:
|
|
20287
|
+
scope: adaptScope,
|
|
20290
20288
|
portal: {
|
|
20291
20289
|
forwardProps: props
|
|
20292
20290
|
},
|
|
20293
20291
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, {
|
|
20292
|
+
scope,
|
|
20294
20293
|
...context,
|
|
20295
20294
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogSheetController, {
|
|
20296
20295
|
onOpenChange: setOpen,
|
|
20297
|
-
|
|
20296
|
+
scope,
|
|
20298
20297
|
children
|
|
20299
20298
|
})
|
|
20300
20299
|
})
|
|
@@ -20310,11 +20309,8 @@ var require_Dialog_native = __commonJS({
|
|
|
20310
20309
|
Sheet: import_sheet.Sheet.Controlled,
|
|
20311
20310
|
FocusScope: import_focus_scope.FocusScopeController,
|
|
20312
20311
|
Adapt: import_adapt.Adapt
|
|
20313
|
-
}),
|
|
20314
|
-
var
|
|
20315
|
-
return `${scopeKey || contentId}DialogAdapt`;
|
|
20316
|
-
}, DialogSheetController = function(props) {
|
|
20317
|
-
var context = useDialogContext("DialogSheetController", props.__scopeDialog), isAdapted = (0, import_adapt.useAdaptIsActive)();
|
|
20312
|
+
}), DialogSheetController = function(props) {
|
|
20313
|
+
var context = useDialogContext(props.scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
20318
20314
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
|
|
20319
20315
|
onOpenChange: function(val) {
|
|
20320
20316
|
if (isAdapted) {
|
|
@@ -20445,15 +20441,12 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20445
20441
|
},
|
|
20446
20442
|
AlertDialogTrigger: function() {
|
|
20447
20443
|
return AlertDialogTrigger;
|
|
20448
|
-
},
|
|
20449
|
-
createAlertDialogScope: function() {
|
|
20450
|
-
return createAlertDialogScope;
|
|
20451
20444
|
}
|
|
20452
20445
|
});
|
|
20453
20446
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
20454
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(),
|
|
20455
|
-
|
|
20456
|
-
|
|
20447
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_dialog = require_index_native39(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native10(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), AlertScopePrefix = "Alert__", getAlertDialogScope = function(scope) {
|
|
20448
|
+
return AlertScopePrefix + scope;
|
|
20449
|
+
}, ROOT_NAME = "AlertDialog", TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
20457
20450
|
name: TRIGGER_NAME
|
|
20458
20451
|
}), AlertDialogTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20459
20452
|
if (props.__native) {
|
|
@@ -20463,46 +20456,40 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20463
20456
|
onPress: (0, import_helpers.composeEventHandlers)(onPress, __onPress)
|
|
20464
20457
|
});
|
|
20465
20458
|
}
|
|
20466
|
-
var {
|
|
20459
|
+
var { scope, ...triggerProps } = props;
|
|
20467
20460
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogTrigger, {
|
|
20468
|
-
|
|
20461
|
+
scope: getAlertDialogScope(scope),
|
|
20469
20462
|
...triggerProps,
|
|
20470
20463
|
ref: forwardedRef
|
|
20471
20464
|
});
|
|
20472
|
-
})
|
|
20473
|
-
|
|
20474
|
-
var PORTAL_NAME = "AlertDialogPortal", AlertDialogPortal = function(props) {
|
|
20475
|
-
var { __scopeAlertDialog, ...portalProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
20465
|
+
}), AlertDialogPortal = function(props) {
|
|
20466
|
+
var { scope, ...portalProps } = props;
|
|
20476
20467
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogPortal, {
|
|
20477
|
-
|
|
20468
|
+
scope: getAlertDialogScope(scope),
|
|
20478
20469
|
...portalProps
|
|
20479
20470
|
});
|
|
20480
|
-
}
|
|
20481
|
-
AlertDialogPortal.displayName = PORTAL_NAME;
|
|
20482
|
-
var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core12.styled)(import_dialog.DialogOverlayFrame, {
|
|
20471
|
+
}, OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core12.styled)(import_dialog.DialogOverlayFrame, {
|
|
20483
20472
|
name: OVERLAY_NAME
|
|
20484
20473
|
}), AlertDialogOverlay = AlertDialogOverlayFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20485
|
-
var {
|
|
20474
|
+
var { scope, ...overlayProps } = props;
|
|
20486
20475
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogOverlay, {
|
|
20487
|
-
|
|
20476
|
+
scope: getAlertDialogScope(scope),
|
|
20488
20477
|
...overlayProps,
|
|
20489
20478
|
ref: forwardedRef
|
|
20490
20479
|
});
|
|
20491
|
-
}))
|
|
20492
|
-
|
|
20493
|
-
var CONTENT_NAME = "AlertDialogContent", [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME), AlertDialogContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20494
|
-
var { __scopeAlertDialog, children, ...contentProps } = props, dialogScope = useDialogScope(__scopeAlertDialog), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React4.useRef(null);
|
|
20480
|
+
})), CONTENT_NAME = "AlertDialogContent", { Provider: AlertDialogContextProvider, useStyledContext: useAlertDialogContentContext } = (0, import_core12.createStyledContext)({}, "AlertDialogContext"), AlertDialogContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20481
|
+
var { scope, children, ...contentProps } = props, dialogScope = getAlertDialogScope(scope), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), cancelRef = React4.useRef(null);
|
|
20495
20482
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogWarningProvider, {
|
|
20496
20483
|
contentName: CONTENT_NAME,
|
|
20497
20484
|
titleName: TITLE_NAME,
|
|
20498
20485
|
docsSlug: "alert-dialog",
|
|
20499
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
20500
|
-
scope
|
|
20486
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AlertDialogContextProvider, {
|
|
20487
|
+
scope,
|
|
20501
20488
|
cancelRef,
|
|
20502
20489
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_dialog.DialogContent, {
|
|
20503
20490
|
// @ts-ignore
|
|
20504
20491
|
role: "alertdialog",
|
|
20505
|
-
|
|
20492
|
+
scope: dialogScope,
|
|
20506
20493
|
...contentProps,
|
|
20507
20494
|
ref: composedRefs,
|
|
20508
20495
|
onOpenAutoFocus: (0, import_helpers.composeEventHandlers)(contentProps.onOpenAutoFocus, function(event) {
|
|
@@ -20536,45 +20523,35 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20536
20523
|
})
|
|
20537
20524
|
})
|
|
20538
20525
|
});
|
|
20539
|
-
})
|
|
20540
|
-
|
|
20541
|
-
var TITLE_NAME = "AlertDialogTitle", AlertDialogTitle = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20542
|
-
var { __scopeAlertDialog, ...titleProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
20526
|
+
}), TITLE_NAME = "AlertDialogTitle", AlertDialogTitle = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20527
|
+
var { scope, ...titleProps } = props;
|
|
20543
20528
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogTitle, {
|
|
20544
|
-
|
|
20529
|
+
scope: getAlertDialogScope(scope),
|
|
20545
20530
|
...titleProps,
|
|
20546
20531
|
ref: forwardedRef
|
|
20547
20532
|
});
|
|
20548
|
-
})
|
|
20549
|
-
|
|
20550
|
-
var DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20551
|
-
var { __scopeAlertDialog, ...descriptionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
20533
|
+
}), DESCRIPTION_NAME = "AlertDialogDescription", AlertDialogDescription = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20534
|
+
var { scope, ...descriptionProps } = props;
|
|
20552
20535
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogDescription, {
|
|
20553
|
-
|
|
20536
|
+
scope: getAlertDialogScope(scope),
|
|
20554
20537
|
...descriptionProps,
|
|
20555
20538
|
ref: forwardedRef
|
|
20556
20539
|
});
|
|
20557
|
-
})
|
|
20558
|
-
|
|
20559
|
-
var ACTION_NAME = "AlertDialogAction", AlertDialogAction = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20560
|
-
var { __scopeAlertDialog, ...actionProps } = props, dialogScope = useDialogScope(__scopeAlertDialog);
|
|
20540
|
+
}), ACTION_NAME = "AlertDialogAction", AlertDialogAction = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20541
|
+
var { scope, ...actionProps } = props;
|
|
20561
20542
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogClose, {
|
|
20562
|
-
|
|
20543
|
+
scope: getAlertDialogScope(scope),
|
|
20563
20544
|
...actionProps,
|
|
20564
20545
|
ref: forwardedRef
|
|
20565
20546
|
});
|
|
20566
|
-
})
|
|
20567
|
-
|
|
20568
|
-
var CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20569
|
-
var { __scopeAlertDialog, ...cancelProps } = props, { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog), dialogScope = useDialogScope(__scopeAlertDialog), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, cancelRef);
|
|
20547
|
+
}), CANCEL_NAME = "AlertDialogCancel", AlertDialogCancel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
20548
|
+
var { scope, ...cancelProps } = props, { cancelRef } = useAlertDialogContentContext(scope), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, cancelRef);
|
|
20570
20549
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogClose, {
|
|
20571
|
-
|
|
20550
|
+
scope: getAlertDialogScope(scope),
|
|
20572
20551
|
...cancelProps,
|
|
20573
20552
|
ref
|
|
20574
20553
|
});
|
|
20575
|
-
})
|
|
20576
|
-
AlertDialogCancel.displayName = CANCEL_NAME;
|
|
20577
|
-
var DescriptionWarning = function(param) {
|
|
20554
|
+
}), DescriptionWarning = function(param) {
|
|
20578
20555
|
var { contentRef } = param;
|
|
20579
20556
|
return process.env.NODE_ENV === "development" && React4.useEffect(function() {
|
|
20580
20557
|
var _contentRef_current;
|
|
@@ -20592,7 +20569,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20592
20569
|
contentRef
|
|
20593
20570
|
]), null;
|
|
20594
20571
|
}, AlertDialogInner = function(props) {
|
|
20595
|
-
var {
|
|
20572
|
+
var { scope, native, ...alertDialogProps } = props, dialogScope = getAlertDialogScope(scope), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
20596
20573
|
prop: props.open,
|
|
20597
20574
|
defaultProp: props.defaultOpen || !1,
|
|
20598
20575
|
onChange: props.onOpenChange,
|
|
@@ -20638,7 +20615,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
20638
20615
|
setOpen(!0);
|
|
20639
20616
|
}
|
|
20640
20617
|
}) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.Dialog, {
|
|
20641
|
-
|
|
20618
|
+
scope: dialogScope,
|
|
20642
20619
|
...alertDialogProps,
|
|
20643
20620
|
modal: !0
|
|
20644
20621
|
});
|
|
@@ -21146,7 +21123,7 @@ var require_Avatar_native = __commonJS({
|
|
|
21146
21123
|
}
|
|
21147
21124
|
});
|
|
21148
21125
|
module2.exports = __toCommonJS2(Avatar_exports);
|
|
21149
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context =
|
|
21126
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), import_image = require_index_native41(), import_shapes = require_index_native42(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = (0, import_create_context.createContextScope)(AVATAR_NAME), [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME), IMAGE_NAME = "AvatarImage", AvatarImage = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
21150
21127
|
var _getShapeSize, { __scopeAvatar, src, onLoadingStatusChange = function() {
|
|
21151
21128
|
}, ...imageProps } = props, context = useAvatarContext(IMAGE_NAME, __scopeAvatar), [status, setStatus] = React4.useState("idle"), shapeSize = (0, import_core12.getVariableValue)((_getShapeSize = (0, import_shapes.getShapeSize)(
|
|
21152
21129
|
context.size,
|
|
@@ -22532,7 +22509,7 @@ var require_Label_native = __commonJS({
|
|
|
22532
22509
|
}
|
|
22533
22510
|
});
|
|
22534
22511
|
module2.exports = __toCommonJS2(Label_exports);
|
|
22535
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_create_context =
|
|
22512
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_create_context = require_index_native33(), import_focusable2 = require_index_native48(), import_get_button_sized2 = require_index_native23(), import_get_font_sized2 = require_index_native25(), import_text2 = require_index_native26(), import_web = require_index_native15(), React4 = __toESM2(require("react")), NAME = "Label", [LabelProvider, useLabelContextImpl] = (0, import_create_context.createContext)(NAME, {
|
|
22536
22513
|
id: void 0,
|
|
22537
22514
|
controlRef: {
|
|
22538
22515
|
current: null
|
|
@@ -23331,7 +23308,7 @@ var require_Form_native = __commonJS({
|
|
|
23331
23308
|
}
|
|
23332
23309
|
});
|
|
23333
23310
|
module2.exports = __toCommonJS2(Form_exports);
|
|
23334
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context =
|
|
23311
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
|
|
23335
23312
|
name: FORM_NAME,
|
|
23336
23313
|
tag: "form"
|
|
23337
23314
|
}), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
@@ -23573,7 +23550,7 @@ var require_Group_native = __commonJS({
|
|
|
23573
23550
|
}
|
|
23574
23551
|
});
|
|
23575
23552
|
module2.exports = __toCommonJS2(Group_exports);
|
|
23576
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context =
|
|
23553
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_react3 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), import_useIndexedChildren = require_useIndexedChildren_native(), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
23577
23554
|
name: "GroupFrame",
|
|
23578
23555
|
variants: {
|
|
23579
23556
|
unstyled: {
|
|
@@ -24521,17 +24498,20 @@ var require_Popper_native = __commonJS({
|
|
|
24521
24498
|
PopperArrow: function() {
|
|
24522
24499
|
return PopperArrow;
|
|
24523
24500
|
},
|
|
24501
|
+
PopperArrowFrame: function() {
|
|
24502
|
+
return PopperArrowFrame;
|
|
24503
|
+
},
|
|
24524
24504
|
PopperContent: function() {
|
|
24525
24505
|
return PopperContent;
|
|
24526
24506
|
},
|
|
24527
24507
|
PopperContentFrame: function() {
|
|
24528
24508
|
return PopperContentFrame;
|
|
24529
24509
|
},
|
|
24530
|
-
|
|
24531
|
-
return
|
|
24510
|
+
PopperContextFast: function() {
|
|
24511
|
+
return PopperContextFast;
|
|
24532
24512
|
},
|
|
24533
|
-
|
|
24534
|
-
return
|
|
24513
|
+
PopperContextSlow: function() {
|
|
24514
|
+
return PopperContextSlow;
|
|
24535
24515
|
},
|
|
24536
24516
|
PopperPositionContext: function() {
|
|
24537
24517
|
return PopperPositionContext;
|
|
@@ -24539,20 +24519,59 @@ var require_Popper_native = __commonJS({
|
|
|
24539
24519
|
PopperProvider: function() {
|
|
24540
24520
|
return PopperProvider;
|
|
24541
24521
|
},
|
|
24522
|
+
PopperProviderFast: function() {
|
|
24523
|
+
return PopperProviderFast;
|
|
24524
|
+
},
|
|
24525
|
+
PopperProviderSlow: function() {
|
|
24526
|
+
return PopperProviderSlow;
|
|
24527
|
+
},
|
|
24542
24528
|
setupPopper: function() {
|
|
24543
24529
|
return setupPopper;
|
|
24544
24530
|
},
|
|
24545
24531
|
usePopperContext: function() {
|
|
24546
24532
|
return usePopperContext;
|
|
24547
24533
|
},
|
|
24548
|
-
|
|
24549
|
-
return
|
|
24534
|
+
usePopperContextSlow: function() {
|
|
24535
|
+
return usePopperContextSlow;
|
|
24550
24536
|
}
|
|
24551
24537
|
});
|
|
24552
24538
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
24553
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_get_token2 = require_index_native22(), import_stacks3 = require_index_native24(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(),
|
|
24554
|
-
|
|
24555
|
-
|
|
24539
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_get_token2 = require_index_native22(), import_stacks3 = require_index_native24(), import_start_transition = require_index_native9(), React4 = __toESM2(require("react")), import_react_native4 = require_fake_react_native(), PopperContextFast = (0, import_core12.createStyledContext)(
|
|
24540
|
+
// since we always provide this we can avoid setting here
|
|
24541
|
+
{},
|
|
24542
|
+
"Popper__"
|
|
24543
|
+
), PopperPositionContext = import_core12.createStyledContext, { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast, PopperContextSlow = (0, import_core12.createStyledContext)(
|
|
24544
|
+
// since we always provide this we can avoid setting here
|
|
24545
|
+
{},
|
|
24546
|
+
"PopperSlow__"
|
|
24547
|
+
), { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow, PopperProvider = function(param) {
|
|
24548
|
+
var { scope, children, ...context } = param, slowContext = getContextSlow(context);
|
|
24549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProviderFast, {
|
|
24550
|
+
scope,
|
|
24551
|
+
...context,
|
|
24552
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProviderSlow, {
|
|
24553
|
+
scope,
|
|
24554
|
+
...slowContext,
|
|
24555
|
+
children
|
|
24556
|
+
})
|
|
24557
|
+
});
|
|
24558
|
+
};
|
|
24559
|
+
function getContextSlow(context) {
|
|
24560
|
+
return {
|
|
24561
|
+
refs: context.refs,
|
|
24562
|
+
size: context.size,
|
|
24563
|
+
arrowRef: context.arrowRef,
|
|
24564
|
+
arrowStyle: context.arrowStyle,
|
|
24565
|
+
onArrowSize: context.onArrowSize,
|
|
24566
|
+
hasFloating: context.hasFloating,
|
|
24567
|
+
strategy: context.strategy,
|
|
24568
|
+
update: context.update,
|
|
24569
|
+
context: context.context,
|
|
24570
|
+
getFloatingProps: context.getFloatingProps,
|
|
24571
|
+
getReferenceProps: context.getFloatingProps
|
|
24572
|
+
};
|
|
24573
|
+
}
|
|
24574
|
+
var checkFloating = {
|
|
24556
24575
|
name: "checkFloating",
|
|
24557
24576
|
fn(data) {
|
|
24558
24577
|
return {
|
|
@@ -24566,7 +24585,7 @@ var require_Popper_native = __commonJS({
|
|
|
24566
24585
|
Object.assign(setupOptions, options);
|
|
24567
24586
|
}
|
|
24568
24587
|
function Popper(props) {
|
|
24569
|
-
var _middlewareData_checkFloating, { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open,
|
|
24588
|
+
var _middlewareData_checkFloating, { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, scope } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
|
|
24570
24589
|
open: passThrough ? !1 : open || !0,
|
|
24571
24590
|
strategy,
|
|
24572
24591
|
placement,
|
|
@@ -24615,31 +24634,39 @@ var require_Popper_native = __commonJS({
|
|
|
24615
24634
|
arrowRef: setArrow,
|
|
24616
24635
|
arrowStyle: middlewareData.arrow,
|
|
24617
24636
|
onArrowSize: setArrowSize,
|
|
24618
|
-
scope: __scopePopper,
|
|
24619
24637
|
hasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,
|
|
24620
24638
|
...floating
|
|
24621
24639
|
};
|
|
24622
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
24623
|
-
|
|
24624
|
-
|
|
24625
|
-
|
|
24626
|
-
children
|
|
24627
|
-
})
|
|
24640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
24641
|
+
scope,
|
|
24642
|
+
...popperContext,
|
|
24643
|
+
children
|
|
24628
24644
|
});
|
|
24629
24645
|
}
|
|
24630
24646
|
var PopperAnchor = import_stacks3.YStack.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24631
|
-
var { virtualRef,
|
|
24647
|
+
var { virtualRef, scope, ...anchorProps } = props, { getReferenceProps, refs, update } = usePopperContextSlow(scope), ref = React4.useRef(null);
|
|
24632
24648
|
React4.useEffect(function() {
|
|
24633
24649
|
virtualRef && refs.setReference(virtualRef.current);
|
|
24634
24650
|
}, [
|
|
24635
24651
|
virtualRef
|
|
24636
24652
|
]);
|
|
24637
|
-
var stackProps =
|
|
24638
|
-
ref: composedRefs,
|
|
24639
|
-
...anchorProps
|
|
24640
|
-
};
|
|
24653
|
+
var stackProps = anchorProps, refProps = getReferenceProps ? getReferenceProps(stackProps) : null, composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref);
|
|
24641
24654
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24642
|
-
...
|
|
24655
|
+
...refProps,
|
|
24656
|
+
ref: composedRefs,
|
|
24657
|
+
// this helps us with handling scoped poppers with many different targets
|
|
24658
|
+
// basically we wait for mouseEnter to ever set a reference and remove it on leave
|
|
24659
|
+
// otherwise floating ui gets confused by having >1 reference
|
|
24660
|
+
onMouseEnter: function(e) {
|
|
24661
|
+
ref.current instanceof HTMLElement && (refs.setReference(ref.current), setTimeout(function() {
|
|
24662
|
+
var _refProps_onPointerEnter;
|
|
24663
|
+
(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e), update();
|
|
24664
|
+
}));
|
|
24665
|
+
},
|
|
24666
|
+
onMouseLeave: function(e) {
|
|
24667
|
+
var _refProps_onMouseLeave;
|
|
24668
|
+
refProps == null || (_refProps_onMouseLeave = refProps.onMouseLeave) === null || _refProps_onMouseLeave === void 0 || _refProps_onMouseLeave.call(refProps, e), refs.setReference(null);
|
|
24669
|
+
}
|
|
24643
24670
|
});
|
|
24644
24671
|
})), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
24645
24672
|
name: "PopperContent",
|
|
@@ -24666,7 +24693,7 @@ var require_Popper_native = __commonJS({
|
|
|
24666
24693
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
24667
24694
|
}
|
|
24668
24695
|
}), PopperContent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24669
|
-
var {
|
|
24696
|
+
var { scope, enableAnimationForPositionChange, children, passThrough, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2 } = usePopperContext(scope), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), [needsMeasure, setNeedsMeasure] = React4.useState(enableAnimationForPositionChange);
|
|
24670
24697
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
24671
24698
|
needsMeasure && x && y && setNeedsMeasure(!1);
|
|
24672
24699
|
}, [
|
|
@@ -24684,9 +24711,9 @@ var require_Popper_native = __commonJS({
|
|
|
24684
24711
|
position: strategy,
|
|
24685
24712
|
opacity: 1,
|
|
24686
24713
|
...enableAnimationForPositionChange && {
|
|
24687
|
-
// apply animation but disable it on initial render to avoid animating from 0 to the first position
|
|
24688
24714
|
animation: rest.animation,
|
|
24689
24715
|
animateOnly: needsMeasure ? [] : rest.animateOnly,
|
|
24716
|
+
// apply animation but disable it on initial render to avoid animating from 0 to the first position
|
|
24690
24717
|
animatePresence: !1
|
|
24691
24718
|
},
|
|
24692
24719
|
...hide2 && {
|
|
@@ -24694,7 +24721,7 @@ var require_Popper_native = __commonJS({
|
|
|
24694
24721
|
animateOnly: []
|
|
24695
24722
|
}
|
|
24696
24723
|
}, { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;
|
|
24697
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.
|
|
24724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24698
24725
|
passThrough,
|
|
24699
24726
|
ref: contentRefs,
|
|
24700
24727
|
...passThrough ? null : floatingProps,
|
|
@@ -24747,8 +24774,8 @@ var require_Popper_native = __commonJS({
|
|
|
24747
24774
|
right: "left",
|
|
24748
24775
|
bottom: "top",
|
|
24749
24776
|
left: "right"
|
|
24750
|
-
}, PopperArrow =
|
|
24751
|
-
var _context_arrowStyle, _context_arrowStyle1, {
|
|
24777
|
+
}, PopperArrow = /* @__PURE__ */ React4.forwardRef(function(propsIn, forwardedRef) {
|
|
24778
|
+
var _context_arrowStyle, _context_arrowStyle1, { scope, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(scope), sizeVal = typeof sizeProp == "number" ? sizeProp : (0, import_core12.getVariableValue)((0, import_get_token2.getSpace)(sizeProp ?? context.size, {
|
|
24752
24779
|
shift: -2,
|
|
24753
24780
|
bounds: [
|
|
24754
24781
|
2
|
|
@@ -24978,8 +25005,12 @@ var require_Popover_native = __commonJS({
|
|
|
24978
25005
|
}
|
|
24979
25006
|
});
|
|
24980
25007
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
24981
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native57(), import_animate_presence = require_index_native4(), import_aria_hidden =
|
|
24982
|
-
|
|
25008
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native31(), import_animate = require_index_native57(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native32(), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_core12 = require_index_native20(), import_floating = require_index_native58(), import_focus_scope = require_index_native35(), import_helpers = require_index_native7(), import_popper = require_index_native59(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native36(), import_scroll_view = require_index_native37(), import_sheet = require_index_native38(), import_stacks3 = require_index_native24(), import_use_controllable_state = require_index_native10(), import_z_index_stack2 = require_index_native29(), React4 = __toESM2(require("react")), import_useFloatingContext = require_useFloatingContext_native(), needsRepropagation = import_constants4.isAndroid || import_constants4.isIos && !import_portal2.USE_NATIVE_PORTAL, PopoverContext = (0, import_core12.createStyledContext)(
|
|
25009
|
+
// since we always provide this we can avoid setting here
|
|
25010
|
+
{},
|
|
25011
|
+
"Popover__"
|
|
25012
|
+
), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25013
|
+
var { scope, ...rest } = props, context = usePopoverContext(scope), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
24983
25014
|
return React4.useEffect(function() {
|
|
24984
25015
|
return onCustomAnchorAdd(), function() {
|
|
24985
25016
|
return onCustomAnchorRemove();
|
|
@@ -24988,12 +25019,12 @@ var require_Popover_native = __commonJS({
|
|
|
24988
25019
|
onCustomAnchorAdd,
|
|
24989
25020
|
onCustomAnchorRemove
|
|
24990
25021
|
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperAnchor, {
|
|
24991
|
-
|
|
25022
|
+
scope,
|
|
24992
25023
|
...rest,
|
|
24993
25024
|
ref: forwardedRef
|
|
24994
25025
|
});
|
|
24995
25026
|
}), PopoverTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
24996
|
-
var {
|
|
25027
|
+
var { scope, ...rest } = props, context = usePopoverContext(scope), anchorTo = context.anchorTo, composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
|
24997
25028
|
if (!props.children) return null;
|
|
24998
25029
|
var trigger = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.View, {
|
|
24999
25030
|
"aria-expanded": context.open,
|
|
@@ -25032,12 +25063,14 @@ var require_Popover_native = __commonJS({
|
|
|
25032
25063
|
...virtualRef && {
|
|
25033
25064
|
virtualRef
|
|
25034
25065
|
},
|
|
25035
|
-
|
|
25066
|
+
scope,
|
|
25036
25067
|
asChild: rest.asChild,
|
|
25037
25068
|
children: trigger
|
|
25038
25069
|
});
|
|
25039
|
-
}),
|
|
25040
|
-
|
|
25070
|
+
}), PopoverContentFrame = (0, import_core12.styled)(import_popper.PopperContentFrame, {
|
|
25071
|
+
name: "Popover"
|
|
25072
|
+
}), PopoverContent = PopoverContentFrame.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25073
|
+
var { trapFocus, enableRemoveScroll = !1, zIndex, scope, ...contentImplProps } = props, context = usePopoverContext(scope), contentRef = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), isRightClickOutsideRef = React4.useRef(!1), [isFullyHidden, setIsFullyHidden] = React4.useState(!context.open);
|
|
25041
25074
|
if (context.open && isFullyHidden && setIsFullyHidden(!1), React4.useEffect(function() {
|
|
25042
25075
|
if (context.open) {
|
|
25043
25076
|
var content = contentRef.current;
|
|
@@ -25049,17 +25082,18 @@ var require_Popover_native = __commonJS({
|
|
|
25049
25082
|
var _contentImplProps_pointerEvents;
|
|
25050
25083
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverPortal, {
|
|
25051
25084
|
passThrough: context.breakpointActive,
|
|
25052
|
-
|
|
25085
|
+
context,
|
|
25053
25086
|
zIndex,
|
|
25054
25087
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, {
|
|
25055
25088
|
passThrough: context.breakpointActive,
|
|
25056
25089
|
pointerEvents: context.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
25057
25090
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentImpl, {
|
|
25058
25091
|
...contentImplProps,
|
|
25092
|
+
context,
|
|
25059
25093
|
enableRemoveScroll,
|
|
25060
25094
|
ref: composedRefs,
|
|
25061
25095
|
setIsFullyHidden,
|
|
25062
|
-
|
|
25096
|
+
scope,
|
|
25063
25097
|
// we make sure we're not trapping once it's been closed
|
|
25064
25098
|
// (closed !== unmounted when animating out)
|
|
25065
25099
|
trapFocus: trapFocus ?? context.open,
|
|
@@ -25085,7 +25119,7 @@ var require_Popover_native = __commonJS({
|
|
|
25085
25119
|
})
|
|
25086
25120
|
});
|
|
25087
25121
|
})), useParentContexts = function(scope) {
|
|
25088
|
-
var popperContext = (0, import_popper.usePopperContext)(scope
|
|
25122
|
+
var context = usePopoverContext(scope), popperContext = (0, import_popper.usePopperContext)(scope), adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);
|
|
25089
25123
|
return {
|
|
25090
25124
|
popperContext,
|
|
25091
25125
|
adaptContext,
|
|
@@ -25093,9 +25127,9 @@ var require_Popover_native = __commonJS({
|
|
|
25093
25127
|
};
|
|
25094
25128
|
};
|
|
25095
25129
|
function RepropagateParentContexts(param) {
|
|
25096
|
-
var { adaptContext, children, context, popperContext
|
|
25097
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.
|
|
25098
|
-
scope,
|
|
25130
|
+
var { adaptContext, children, context, popperContext } = param;
|
|
25131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperProvider, {
|
|
25132
|
+
scope: context.popoverScope,
|
|
25099
25133
|
...popperContext,
|
|
25100
25134
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
|
|
25101
25135
|
...context,
|
|
@@ -25107,40 +25141,40 @@ var require_Popover_native = __commonJS({
|
|
|
25107
25141
|
});
|
|
25108
25142
|
}
|
|
25109
25143
|
var PortalAdaptSafe = function(param) {
|
|
25110
|
-
var { children,
|
|
25144
|
+
var { children, context } = param;
|
|
25111
25145
|
if (needsRepropagation) {
|
|
25112
|
-
var
|
|
25146
|
+
var parentContexts = useParentContexts(context.popoverScope);
|
|
25113
25147
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
|
|
25148
|
+
scope: context.adaptScope,
|
|
25114
25149
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RepropagateParentContexts, {
|
|
25115
|
-
scope,
|
|
25116
25150
|
...parentContexts,
|
|
25117
25151
|
children
|
|
25118
25152
|
})
|
|
25119
25153
|
});
|
|
25120
25154
|
}
|
|
25121
25155
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
|
|
25156
|
+
scope: context.adaptScope,
|
|
25122
25157
|
children
|
|
25123
25158
|
});
|
|
25124
25159
|
};
|
|
25125
|
-
function PopoverPortal(
|
|
25126
|
-
var
|
|
25160
|
+
function PopoverPortal(param) {
|
|
25161
|
+
var { context, zIndex, passThrough, children } = param, themeName = (0, import_core12.useThemeName)(), content = children;
|
|
25127
25162
|
if (needsRepropagation) {
|
|
25128
|
-
var parentContexts = useParentContexts(
|
|
25163
|
+
var parentContexts = useParentContexts(context.popoverScope);
|
|
25129
25164
|
content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RepropagateParentContexts, {
|
|
25130
|
-
scope,
|
|
25131
25165
|
...parentContexts,
|
|
25132
25166
|
children: content
|
|
25133
25167
|
});
|
|
25134
25168
|
}
|
|
25135
25169
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
25136
|
-
passThrough
|
|
25170
|
+
passThrough,
|
|
25137
25171
|
stackZIndex: !0,
|
|
25138
25172
|
zIndex,
|
|
25139
25173
|
children: (
|
|
25140
25174
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
25141
25175
|
/* without this you'll see the site menu re-rendering. It must be something in wrapping children in Theme */
|
|
25142
25176
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
25143
|
-
passThrough
|
|
25177
|
+
passThrough,
|
|
25144
25178
|
contain: !0,
|
|
25145
25179
|
forceClassName: !0,
|
|
25146
25180
|
name: themeName,
|
|
@@ -25153,7 +25187,7 @@ var require_Popover_native = __commonJS({
|
|
|
25153
25187
|
});
|
|
25154
25188
|
}
|
|
25155
25189
|
var PopoverContentImpl = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25156
|
-
var { trapFocus,
|
|
25190
|
+
var { trapFocus, scope, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, enableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, lazyMount, context, ...contentProps } = props, { open, keepChildrenMounted } = context, handleExitComplete = React4.useCallback(function() {
|
|
25157
25191
|
setIsFullyHidden == null || setIsFullyHidden(!0);
|
|
25158
25192
|
}, [
|
|
25159
25193
|
setIsFullyHidden
|
|
@@ -25169,19 +25203,20 @@ var require_Popover_native = __commonJS({
|
|
|
25169
25203
|
lazyMount,
|
|
25170
25204
|
passThrough: context.breakpointActive,
|
|
25171
25205
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContent, {
|
|
25172
|
-
|
|
25206
|
+
scope,
|
|
25173
25207
|
"data-state": getState(open),
|
|
25174
25208
|
id: context.contentId,
|
|
25175
25209
|
ref: forwardedRef,
|
|
25176
25210
|
passThrough: context.breakpointActive,
|
|
25177
25211
|
...contentProps,
|
|
25178
25212
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalAdaptSafe, {
|
|
25213
|
+
context,
|
|
25179
25214
|
children: contents
|
|
25180
25215
|
})
|
|
25181
25216
|
}, context.contentId)
|
|
25182
25217
|
});
|
|
25183
25218
|
}), PopoverClose = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25184
|
-
var {
|
|
25219
|
+
var { scope, ...rest } = props, context = usePopoverContext(scope);
|
|
25185
25220
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_stacks3.YStack, {
|
|
25186
25221
|
...rest,
|
|
25187
25222
|
ref: forwardedRef,
|
|
@@ -25191,16 +25226,16 @@ var require_Popover_native = __commonJS({
|
|
|
25191
25226
|
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1, "press");
|
|
25192
25227
|
})
|
|
25193
25228
|
});
|
|
25194
|
-
}), PopoverArrow = import_popper.
|
|
25195
|
-
var {
|
|
25229
|
+
}), PopoverArrow = import_popper.PopperArrowFrame.styleable(function(props, forwardedRef) {
|
|
25230
|
+
var { scope, ...rest } = props, context = usePopoverContext(scope), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
25196
25231
|
return isAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperArrow, {
|
|
25197
|
-
|
|
25232
|
+
scope,
|
|
25198
25233
|
componentName: "PopoverArrow",
|
|
25199
25234
|
...rest,
|
|
25200
25235
|
ref: forwardedRef
|
|
25201
25236
|
});
|
|
25202
|
-
}), PopoverScrollView = /* @__PURE__ */ React4.forwardRef(function(
|
|
25203
|
-
var context = usePopoverContext(
|
|
25237
|
+
}), PopoverScrollView = /* @__PURE__ */ React4.forwardRef(function(param, ref) {
|
|
25238
|
+
var { scope, ...props } = param, context = usePopoverContext(scope);
|
|
25204
25239
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_scroll_view.ScrollView, {
|
|
25205
25240
|
ref,
|
|
25206
25241
|
// when adapted, no pointer events!
|
|
@@ -25209,14 +25244,16 @@ var require_Popover_native = __commonJS({
|
|
|
25209
25244
|
passThrough: context.breakpointActive,
|
|
25210
25245
|
...props
|
|
25211
25246
|
});
|
|
25212
|
-
}), Popover = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(
|
|
25213
|
-
var id = React4.useId()
|
|
25247
|
+
}), DEFAULT_SCOPE = "", Popover = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ React4.forwardRef(function(param, ref) {
|
|
25248
|
+
var { scope = DEFAULT_SCOPE, ...props } = param, id = React4.useId(), adaptScope = `PopoverAdapt${scope}`;
|
|
25214
25249
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
|
|
25215
|
-
scope:
|
|
25250
|
+
scope: adaptScope,
|
|
25216
25251
|
portal: !0,
|
|
25217
25252
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverInner, {
|
|
25253
|
+
adaptScope,
|
|
25218
25254
|
ref,
|
|
25219
25255
|
id,
|
|
25256
|
+
scope,
|
|
25220
25257
|
...props
|
|
25221
25258
|
})
|
|
25222
25259
|
});
|
|
@@ -25231,7 +25268,7 @@ var require_Popover_native = __commonJS({
|
|
|
25231
25268
|
Sheet: import_sheet.Sheet.Controlled,
|
|
25232
25269
|
FocusScope: import_focus_scope.FocusScopeController
|
|
25233
25270
|
}), PopoverInner = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
25234
|
-
var { children, open: openProp, defaultOpen, onOpenChange,
|
|
25271
|
+
var { children, open: openProp, defaultOpen, onOpenChange, scope = DEFAULT_SCOPE, keepChildrenMounted: keepChildrenMountedProp, hoverable, disableFocus, id, adaptScope, ...restProps } = props, triggerRef = React4.useRef(null), [hasCustomAnchor, setHasCustomAnchor] = React4.useState(!1), viaRef = React4.useRef(void 0), [keepChildrenMounted] = (0, import_use_controllable_state.useControllableState)({
|
|
25235
25272
|
prop: keepChildrenMountedProp,
|
|
25236
25273
|
defaultProp: !1,
|
|
25237
25274
|
transition: keepChildrenMountedProp === "lazy"
|
|
@@ -25243,7 +25280,7 @@ var require_Popover_native = __commonJS({
|
|
|
25243
25280
|
}
|
|
25244
25281
|
}), handleOpenChange = (0, import_core12.useEvent)(function(val, via) {
|
|
25245
25282
|
viaRef.current = via, setOpen(val);
|
|
25246
|
-
}), isAdapted = (0, import_adapt.useAdaptIsActive)(), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
|
|
25283
|
+
}), isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
|
|
25247
25284
|
open,
|
|
25248
25285
|
setOpen: handleOpenChange,
|
|
25249
25286
|
disable: isAdapted,
|
|
@@ -25268,6 +25305,8 @@ var require_Popover_native = __commonJS({
|
|
|
25268
25305
|
};
|
|
25269
25306
|
});
|
|
25270
25307
|
var popoverContext = {
|
|
25308
|
+
popoverScope: scope,
|
|
25309
|
+
adaptScope,
|
|
25271
25310
|
id,
|
|
25272
25311
|
contentId: React4.useId(),
|
|
25273
25312
|
triggerRef,
|
|
@@ -25288,22 +25327,23 @@ var require_Popover_native = __commonJS({
|
|
|
25288
25327
|
keepChildrenMounted
|
|
25289
25328
|
}, memoizedChildren = React4.useMemo(function() {
|
|
25290
25329
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, {
|
|
25291
|
-
scope
|
|
25330
|
+
scope,
|
|
25292
25331
|
...popoverContext,
|
|
25293
25332
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverSheetController, {
|
|
25333
|
+
context: popoverContext,
|
|
25294
25334
|
onOpenChange: setOpen,
|
|
25295
25335
|
children
|
|
25296
25336
|
})
|
|
25297
25337
|
});
|
|
25298
25338
|
}, [
|
|
25299
|
-
|
|
25339
|
+
scope,
|
|
25300
25340
|
setOpen,
|
|
25301
25341
|
children,
|
|
25302
25342
|
...Object.values(popoverContext)
|
|
25303
25343
|
]), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.Popper, {
|
|
25304
25344
|
open,
|
|
25305
25345
|
passThrough: isAdapted,
|
|
25306
|
-
|
|
25346
|
+
scope,
|
|
25307
25347
|
stayInFrame: !0,
|
|
25308
25348
|
...restProps,
|
|
25309
25349
|
children: memoizedChildren
|
|
@@ -25319,7 +25359,7 @@ var require_Popover_native = __commonJS({
|
|
|
25319
25359
|
return open ? "open" : "closed";
|
|
25320
25360
|
}
|
|
25321
25361
|
var PopoverSheetController = function(param) {
|
|
25322
|
-
var {
|
|
25362
|
+
var { context, ...props } = param, showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core12.useGet)(showSheet);
|
|
25323
25363
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
|
|
25324
25364
|
onOpenChange: function(val) {
|
|
25325
25365
|
if (getShowSheet()) {
|
|
@@ -25332,7 +25372,7 @@ var require_Popover_native = __commonJS({
|
|
|
25332
25372
|
children: props.children
|
|
25333
25373
|
});
|
|
25334
25374
|
}, useShowPopoverSheet = function(context) {
|
|
25335
|
-
var isAdapted = (0, import_adapt.useAdaptIsActive)();
|
|
25375
|
+
var isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
25336
25376
|
return context.open === !1 ? !1 : isAdapted;
|
|
25337
25377
|
};
|
|
25338
25378
|
}
|
|
@@ -25445,7 +25485,7 @@ var require_Progress_native = __commonJS({
|
|
|
25445
25485
|
}
|
|
25446
25486
|
});
|
|
25447
25487
|
module2.exports = __toCommonJS2(Progress_exports);
|
|
25448
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context =
|
|
25488
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), import_create_context = require_index_native33(), import_get_token2 = require_index_native22(), import_helpers = require_index_native7(), import_stacks3 = require_index_native24(), React4 = __toESM2(require("react")), PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
25449
25489
|
name: INDICATOR_NAME,
|
|
25450
25490
|
variants: {
|
|
25451
25491
|
unstyled: {
|
|
@@ -26423,7 +26463,7 @@ var require_RadioGroupStyledContext_native = __commonJS({
|
|
|
26423
26463
|
var import_core12 = require_index_native20(), RadioGroupStyledContext = (0, import_core12.createStyledContext)({
|
|
26424
26464
|
size: "$true",
|
|
26425
26465
|
scaleIcon: 1
|
|
26426
|
-
});
|
|
26466
|
+
}, "RadioGroup");
|
|
26427
26467
|
}
|
|
26428
26468
|
});
|
|
26429
26469
|
|
|
@@ -26710,71 +26750,6 @@ var require_index_native66 = __commonJS({
|
|
|
26710
26750
|
}
|
|
26711
26751
|
});
|
|
26712
26752
|
|
|
26713
|
-
// ../select/dist/cjs/constants.native.js
|
|
26714
|
-
var require_constants_native5 = __commonJS({
|
|
26715
|
-
"../select/dist/cjs/constants.native.js"(exports2, module2) {
|
|
26716
|
-
"use strict";
|
|
26717
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
26718
|
-
for (var name in all) __defProp2(target, name, {
|
|
26719
|
-
get: all[name],
|
|
26720
|
-
enumerable: !0
|
|
26721
|
-
});
|
|
26722
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
26723
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
26724
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
26725
|
-
for (var _loop = function() {
|
|
26726
|
-
var key = _step.value;
|
|
26727
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
26728
|
-
get: function() {
|
|
26729
|
-
return from[key];
|
|
26730
|
-
},
|
|
26731
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
26732
|
-
});
|
|
26733
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
26734
|
-
} catch (err) {
|
|
26735
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
26736
|
-
} finally {
|
|
26737
|
-
try {
|
|
26738
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
26739
|
-
} finally {
|
|
26740
|
-
if (_didIteratorError)
|
|
26741
|
-
throw _iteratorError;
|
|
26742
|
-
}
|
|
26743
|
-
}
|
|
26744
|
-
return to;
|
|
26745
|
-
}, __toCommonJS2 = function(mod) {
|
|
26746
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
26747
|
-
value: !0
|
|
26748
|
-
}), mod);
|
|
26749
|
-
}, constants_exports = {};
|
|
26750
|
-
__export2(constants_exports, {
|
|
26751
|
-
FALLBACK_THRESHOLD: function() {
|
|
26752
|
-
return FALLBACK_THRESHOLD;
|
|
26753
|
-
},
|
|
26754
|
-
MIN_HEIGHT: function() {
|
|
26755
|
-
return MIN_HEIGHT;
|
|
26756
|
-
},
|
|
26757
|
-
SCROLL_ARROW_THRESHOLD: function() {
|
|
26758
|
-
return SCROLL_ARROW_THRESHOLD;
|
|
26759
|
-
},
|
|
26760
|
-
SCROLL_ARROW_VELOCITY: function() {
|
|
26761
|
-
return SCROLL_ARROW_VELOCITY;
|
|
26762
|
-
},
|
|
26763
|
-
SELECT_NAME: function() {
|
|
26764
|
-
return SELECT_NAME;
|
|
26765
|
-
},
|
|
26766
|
-
VIEWPORT_NAME: function() {
|
|
26767
|
-
return VIEWPORT_NAME;
|
|
26768
|
-
},
|
|
26769
|
-
WINDOW_PADDING: function() {
|
|
26770
|
-
return WINDOW_PADDING;
|
|
26771
|
-
}
|
|
26772
|
-
});
|
|
26773
|
-
module2.exports = __toCommonJS2(constants_exports);
|
|
26774
|
-
var SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
|
|
26775
|
-
}
|
|
26776
|
-
});
|
|
26777
|
-
|
|
26778
26753
|
// ../select/dist/cjs/context.native.js
|
|
26779
26754
|
var require_context_native2 = __commonJS({
|
|
26780
26755
|
"../select/dist/cjs/context.native.js"(exports2, module2) {
|
|
@@ -26822,18 +26797,6 @@ var require_context_native2 = __commonJS({
|
|
|
26822
26797
|
SelectProvider: function() {
|
|
26823
26798
|
return SelectProvider;
|
|
26824
26799
|
},
|
|
26825
|
-
createSelectContext: function() {
|
|
26826
|
-
return createSelectContext;
|
|
26827
|
-
},
|
|
26828
|
-
createSelectItemParentContext: function() {
|
|
26829
|
-
return createSelectItemParentContext;
|
|
26830
|
-
},
|
|
26831
|
-
createSelectItemParentScope: function() {
|
|
26832
|
-
return createSelectItemParentScope;
|
|
26833
|
-
},
|
|
26834
|
-
createSelectScope: function() {
|
|
26835
|
-
return createSelectScope;
|
|
26836
|
-
},
|
|
26837
26800
|
useSelectContext: function() {
|
|
26838
26801
|
return useSelectContext;
|
|
26839
26802
|
},
|
|
@@ -26842,14 +26805,14 @@ var require_context_native2 = __commonJS({
|
|
|
26842
26805
|
}
|
|
26843
26806
|
});
|
|
26844
26807
|
module2.exports = __toCommonJS2(context_exports);
|
|
26845
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"),
|
|
26846
|
-
var {
|
|
26808
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native20(), { Provider: SelectProvider, useStyledContext: useSelectContext } = (0, import_core12.createStyledContext)(null, "Select"), { Provider: SelectItemParentProvider, useStyledContext: useSelectItemParentContext } = (0, import_core12.createStyledContext)(null, "SelectItem"), ForwardSelectContext = function(param) {
|
|
26809
|
+
var { context, itemContext, children } = param;
|
|
26847
26810
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectProvider, {
|
|
26848
26811
|
isInSheet: !0,
|
|
26849
|
-
scope:
|
|
26812
|
+
scope: context.scopeName,
|
|
26850
26813
|
...context,
|
|
26851
26814
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemParentProvider, {
|
|
26852
|
-
scope:
|
|
26815
|
+
scope: context.scopeName,
|
|
26853
26816
|
...itemContext,
|
|
26854
26817
|
children
|
|
26855
26818
|
})
|
|
@@ -27020,13 +26983,13 @@ var require_SelectItem_native = __commonJS({
|
|
|
27020
26983
|
}
|
|
27021
26984
|
});
|
|
27022
26985
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
27023
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_list_item = require_index_native56(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem",
|
|
27024
|
-
var {
|
|
26986
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_list_item = require_index_native56(), import_core12 = require_index_native20(), React4 = __toESM2(require("react")), import_context = require_context_native2(), ITEM_NAME = "SelectItem", { Provider: SelectItemContextProvider, useStyledContext: useSelectItemContext } = (0, import_core12.createStyledContext)(null, ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(function(props, forwardedRef) {
|
|
26987
|
+
var { scope, value, disabled = !1, textValue: textValueProp, index, ...restProps } = props, { props: listItemProps } = (0, import_list_item.useListItem)({
|
|
27025
26988
|
...!props.unstyled && {
|
|
27026
26989
|
ellipse: !0
|
|
27027
26990
|
},
|
|
27028
26991
|
...restProps
|
|
27029
|
-
}), context = (0, import_context.useSelectItemParentContext)(
|
|
26992
|
+
}), context = (0, import_context.useSelectItemParentContext)(scope), { setSelectedIndex, listRef, setOpen, onChange, activeIndexSubscribe, valueSubscribe, allowMouseUpRef, allowSelectRef, setValueAtIndex, selectTimeoutRef, dataRef, interactions, shouldRenderWebNative, size: size2, onActiveChange, initialValue } = context, [isSelected, setSelected] = React4.useState(initialValue === value);
|
|
27030
26993
|
React4.useEffect(function() {
|
|
27031
26994
|
return activeIndexSubscribe(function(i) {
|
|
27032
26995
|
var isActive = index === i;
|
|
@@ -27083,7 +27046,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
27083
27046
|
handleSelect
|
|
27084
27047
|
]);
|
|
27085
27048
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemContextProvider, {
|
|
27086
|
-
scope
|
|
27049
|
+
scope,
|
|
27087
27050
|
value,
|
|
27088
27051
|
textId: textId || "",
|
|
27089
27052
|
isSelected,
|
|
@@ -27200,16 +27163,16 @@ var require_SelectItemText_native = __commonJS({
|
|
|
27200
27163
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
27201
27164
|
}
|
|
27202
27165
|
}), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
|
|
27203
|
-
var {
|
|
27166
|
+
var { scope, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), ref = React4.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(scope), contents = React4.useRef(null);
|
|
27204
27167
|
return contents.current = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemTextFrame, {
|
|
27205
27168
|
className,
|
|
27206
27169
|
size: itemParentContext.size,
|
|
27207
27170
|
id: itemContext.textId,
|
|
27208
27171
|
...itemTextProps,
|
|
27209
27172
|
ref: composedRefs
|
|
27210
|
-
}),
|
|
27173
|
+
}), (0, import_core12.useIsomorphicLayoutEffect)(function() {
|
|
27211
27174
|
itemParentContext.initialValue === itemContext.value && !context.selectedIndex && context.setSelectedItem(contents.current);
|
|
27212
|
-
}, []),
|
|
27175
|
+
}, []), (0, import_core12.useIsomorphicLayoutEffect)(function() {
|
|
27213
27176
|
return itemParentContext.valueSubscribe(function(val) {
|
|
27214
27177
|
val === itemContext.value && context.setSelectedItem(contents.current);
|
|
27215
27178
|
});
|
|
@@ -27334,7 +27297,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27334
27297
|
});
|
|
27335
27298
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
27336
27299
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_core12 = require_index_native20(), import_list_item = require_index_native56(), React4 = __toESM2(require("react")), import_context = require_context_native2(), TRIGGER_NAME = "SelectTrigger", isPointerCoarse = import_core12.isWeb && import_core12.isClient ? window.matchMedia("(pointer:coarse)").matches : !0, SelectTrigger = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27337
|
-
var _context_floatingContext, {
|
|
27300
|
+
var _context_floatingContext, { scope, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (_context_floatingContext = context.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
|
|
27338
27301
|
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27339
27302
|
componentName: TRIGGER_NAME,
|
|
27340
27303
|
unstyled,
|
|
@@ -27371,6 +27334,71 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
27371
27334
|
}
|
|
27372
27335
|
});
|
|
27373
27336
|
|
|
27337
|
+
// ../select/dist/cjs/constants.native.js
|
|
27338
|
+
var require_constants_native5 = __commonJS({
|
|
27339
|
+
"../select/dist/cjs/constants.native.js"(exports2, module2) {
|
|
27340
|
+
"use strict";
|
|
27341
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
27342
|
+
for (var name in all) __defProp2(target, name, {
|
|
27343
|
+
get: all[name],
|
|
27344
|
+
enumerable: !0
|
|
27345
|
+
});
|
|
27346
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
27347
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
27348
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
27349
|
+
for (var _loop = function() {
|
|
27350
|
+
var key = _step.value;
|
|
27351
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
27352
|
+
get: function() {
|
|
27353
|
+
return from[key];
|
|
27354
|
+
},
|
|
27355
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
27356
|
+
});
|
|
27357
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
27358
|
+
} catch (err) {
|
|
27359
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
27360
|
+
} finally {
|
|
27361
|
+
try {
|
|
27362
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
27363
|
+
} finally {
|
|
27364
|
+
if (_didIteratorError)
|
|
27365
|
+
throw _iteratorError;
|
|
27366
|
+
}
|
|
27367
|
+
}
|
|
27368
|
+
return to;
|
|
27369
|
+
}, __toCommonJS2 = function(mod) {
|
|
27370
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
27371
|
+
value: !0
|
|
27372
|
+
}), mod);
|
|
27373
|
+
}, constants_exports = {};
|
|
27374
|
+
__export2(constants_exports, {
|
|
27375
|
+
FALLBACK_THRESHOLD: function() {
|
|
27376
|
+
return FALLBACK_THRESHOLD;
|
|
27377
|
+
},
|
|
27378
|
+
MIN_HEIGHT: function() {
|
|
27379
|
+
return MIN_HEIGHT;
|
|
27380
|
+
},
|
|
27381
|
+
SCROLL_ARROW_THRESHOLD: function() {
|
|
27382
|
+
return SCROLL_ARROW_THRESHOLD;
|
|
27383
|
+
},
|
|
27384
|
+
SCROLL_ARROW_VELOCITY: function() {
|
|
27385
|
+
return SCROLL_ARROW_VELOCITY;
|
|
27386
|
+
},
|
|
27387
|
+
SELECT_NAME: function() {
|
|
27388
|
+
return SELECT_NAME;
|
|
27389
|
+
},
|
|
27390
|
+
VIEWPORT_NAME: function() {
|
|
27391
|
+
return VIEWPORT_NAME;
|
|
27392
|
+
},
|
|
27393
|
+
WINDOW_PADDING: function() {
|
|
27394
|
+
return WINDOW_PADDING;
|
|
27395
|
+
}
|
|
27396
|
+
});
|
|
27397
|
+
module2.exports = __toCommonJS2(constants_exports);
|
|
27398
|
+
var SELECT_NAME = "Select", WINDOW_PADDING = 8, SCROLL_ARROW_VELOCITY = 8, SCROLL_ARROW_THRESHOLD = 8, MIN_HEIGHT = 80, FALLBACK_THRESHOLD = 16, VIEWPORT_NAME = "SelectViewport";
|
|
27399
|
+
}
|
|
27400
|
+
});
|
|
27401
|
+
|
|
27374
27402
|
// ../select/dist/cjs/SelectViewport.native.js
|
|
27375
27403
|
var require_SelectViewport_native = __commonJS({
|
|
27376
27404
|
"../select/dist/cjs/SelectViewport.native.js"(exports2, module2) {
|
|
@@ -27415,12 +27443,12 @@ var require_SelectViewport_native = __commonJS({
|
|
|
27415
27443
|
});
|
|
27416
27444
|
module2.exports = __toCommonJS2(SelectViewport_native_exports);
|
|
27417
27445
|
var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native31(), import_core12 = require_index_native20(), import_constants4 = require_constants_native5(), import_context = require_context_native2(), SelectViewport = function(props) {
|
|
27418
|
-
var {
|
|
27446
|
+
var { scope, children } = props, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), themeName = (0, import_core12.useThemeName)(), adaptContext = (0, import_adapt.useAdaptContext)();
|
|
27419
27447
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptPortalContents, {
|
|
27448
|
+
scope: context.adaptScope,
|
|
27420
27449
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, {
|
|
27421
27450
|
name: themeName,
|
|
27422
27451
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.ForwardSelectContext, {
|
|
27423
|
-
__scopeSelect,
|
|
27424
27452
|
itemContext: itemParentContext,
|
|
27425
27453
|
context,
|
|
27426
27454
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptContext.Provider, {
|
|
@@ -27479,7 +27507,7 @@ var require_useSelectBreakpointActive_native = __commonJS({
|
|
|
27479
27507
|
});
|
|
27480
27508
|
module2.exports = __toCommonJS2(useSelectBreakpointActive_exports);
|
|
27481
27509
|
var import_adapt = require_index_native31(), useShowSelectSheet = function(context) {
|
|
27482
|
-
var breakpointActive = (0, import_adapt.useAdaptIsActive)();
|
|
27510
|
+
var breakpointActive = (0, import_adapt.useAdaptIsActive)(context.adaptScope);
|
|
27483
27511
|
return context.open === !1 ? !1 : breakpointActive;
|
|
27484
27512
|
};
|
|
27485
27513
|
}
|
|
@@ -27553,7 +27581,7 @@ var require_Select_native = __commonJS({
|
|
|
27553
27581
|
name: VALUE_NAME,
|
|
27554
27582
|
userSelect: "none"
|
|
27555
27583
|
}), SelectValue = SelectValueFrame.styleable(function(param, forwardedRef) {
|
|
27556
|
-
var {
|
|
27584
|
+
var { scope, children: childrenProp, placeholder, ...props } = param, context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.onValueNodeChange), children = childrenProp ?? context.selectedItem, isEmptyValue = context.value == null || context.value === "", selectValueChildren = isEmptyValue ? placeholder ?? children : children;
|
|
27557
27585
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectValueFrame, {
|
|
27558
27586
|
...!props.unstyled && {
|
|
27559
27587
|
size: itemParentContext.size,
|
|
@@ -27584,18 +27612,18 @@ var require_Select_native = __commonJS({
|
|
|
27584
27612
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_text2.Paragraph, {
|
|
27585
27613
|
children: "\u25BC"
|
|
27586
27614
|
})
|
|
27587
|
-
}),
|
|
27588
|
-
name:
|
|
27615
|
+
}), SelectItemIndicatorFrame = (0, import_core12.styled)(import_stacks3.XStack, {
|
|
27616
|
+
name: "SelectItemIndicator"
|
|
27589
27617
|
}), SelectItemIndicator = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27590
|
-
var {
|
|
27618
|
+
var { scope, ...itemIndicatorProps } = props, context = (0, import_context.useSelectItemParentContext)(scope), itemContext = (0, import_SelectItem.useSelectItemContext)(scope);
|
|
27591
27619
|
return context.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectItemIndicatorFrame, {
|
|
27592
27620
|
"aria-hidden": !0,
|
|
27593
27621
|
...itemIndicatorProps,
|
|
27594
27622
|
ref: forwardedRef
|
|
27595
27623
|
}) : null;
|
|
27596
|
-
})
|
|
27597
|
-
|
|
27598
|
-
|
|
27624
|
+
}), GROUP_NAME = "SelectGroup", { Provider: SelectGroupContextProvider, useStyledContext: useSelectGroupContext } = (0, import_core12.createStyledContext)({
|
|
27625
|
+
id: ""
|
|
27626
|
+
}, "SelectGroup"), SelectGroupFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
27599
27627
|
name: GROUP_NAME,
|
|
27600
27628
|
width: "100%"
|
|
27601
27629
|
}), NativeSelectTextFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
@@ -27631,7 +27659,7 @@ var require_Select_native = __commonJS({
|
|
|
27631
27659
|
size: "$2"
|
|
27632
27660
|
}
|
|
27633
27661
|
}), SelectGroup = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27634
|
-
var {
|
|
27662
|
+
var { scope, ...groupProps } = props, groupId = React4.useId(), context = (0, import_context.useSelectContext)(scope), itemParentContext = (0, import_context.useSelectItemParentContext)(scope), _itemParentContext_size, size2 = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React4.useRef(null), content = function() {
|
|
27635
27663
|
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, {
|
|
27636
27664
|
asChild: !0,
|
|
27637
27665
|
size: size2,
|
|
@@ -27661,14 +27689,14 @@ var require_Select_native = __commonJS({
|
|
|
27661
27689
|
});
|
|
27662
27690
|
}();
|
|
27663
27691
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectGroupContextProvider, {
|
|
27664
|
-
scope
|
|
27692
|
+
scope,
|
|
27665
27693
|
id: groupId || "",
|
|
27666
27694
|
children: content
|
|
27667
27695
|
});
|
|
27668
27696
|
});
|
|
27669
27697
|
SelectGroup.displayName = GROUP_NAME;
|
|
27670
27698
|
var LABEL_NAME = "SelectLabel", SelectLabel = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
27671
|
-
var {
|
|
27699
|
+
var { scope, ...labelProps } = props, context = (0, import_context.useSelectItemParentContext)(scope), groupContext = useSelectGroupContext(scope);
|
|
27672
27700
|
return context.shouldRenderWebNative ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_list_item.ListItem, {
|
|
27673
27701
|
tag: "div",
|
|
27674
27702
|
componentName: LABEL_NAME,
|
|
@@ -27683,7 +27711,7 @@ var require_Select_native = __commonJS({
|
|
|
27683
27711
|
var SelectSeparator = (0, import_core12.styled)(import_separator.Separator, {
|
|
27684
27712
|
name: "SelectSeparator"
|
|
27685
27713
|
}), SelectSheetController = function(props) {
|
|
27686
|
-
var context = (0, import_context.useSelectContext)(
|
|
27714
|
+
var context = (0, import_context.useSelectContext)(props.scope), showSheet = (0, import_useSelectBreakpointActive.useShowSelectSheet)(context), isAdapted = (0, import_adapt.useAdaptIsActive)(context.adaptScope), getShowSheet = (0, import_core12.useGet)(showSheet);
|
|
27687
27715
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_sheet.SheetController, {
|
|
27688
27716
|
onOpenChange: function(val) {
|
|
27689
27717
|
getShowSheet() && props.onOpenChange(val);
|
|
@@ -27697,12 +27725,13 @@ var require_Select_native = __commonJS({
|
|
|
27697
27725
|
children: props.children
|
|
27698
27726
|
});
|
|
27699
27727
|
}, Select = (0, import_helpers.withStaticProperties)(function(props) {
|
|
27700
|
-
var
|
|
27728
|
+
var adaptScope = `AdaptSelect${props.scope || ""}`;
|
|
27701
27729
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParent, {
|
|
27702
|
-
scope:
|
|
27730
|
+
scope: adaptScope,
|
|
27703
27731
|
portal: !0,
|
|
27704
27732
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectInner, {
|
|
27705
|
-
|
|
27733
|
+
scope: props.scope,
|
|
27734
|
+
adaptScope,
|
|
27706
27735
|
...props
|
|
27707
27736
|
})
|
|
27708
27737
|
});
|
|
@@ -27741,7 +27770,7 @@ var require_Select_native = __commonJS({
|
|
|
27741
27770
|
];
|
|
27742
27771
|
}
|
|
27743
27772
|
function SelectInner(props) {
|
|
27744
|
-
var {
|
|
27773
|
+
var { scope = "", adaptScope, native, children, open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, disablePreventBodyScroll, size: sizeProp = "$true", onActiveChange, dir, id } = props, isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope), SelectImpl = isAdapted || !import_constants4.isWeb ? SelectSheetImpl : import_SelectImpl.SelectInlineImpl, forceUpdate = React4.useReducer(function() {
|
|
27745
27774
|
return {};
|
|
27746
27775
|
}, {})[1], [selectedItem, setSelectedItem] = React4.useState(null), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
27747
27776
|
prop: openProp,
|
|
@@ -27784,7 +27813,9 @@ var require_Select_native = __commonJS({
|
|
|
27784
27813
|
});
|
|
27785
27814
|
}, 1, {}, []);
|
|
27786
27815
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.SelectItemParentProvider, {
|
|
27787
|
-
|
|
27816
|
+
scopeName: scope,
|
|
27817
|
+
scope,
|
|
27818
|
+
adaptScope,
|
|
27788
27819
|
initialValue: React4.useMemo(function() {
|
|
27789
27820
|
return value;
|
|
27790
27821
|
}, [
|
|
@@ -27798,9 +27829,8 @@ var require_Select_native = __commonJS({
|
|
|
27798
27829
|
onChange: React4.useCallback(function(val) {
|
|
27799
27830
|
setValue(val), emitValue(val);
|
|
27800
27831
|
}, []),
|
|
27801
|
-
onActiveChange: (0, import_core12.useEvent)(function() {
|
|
27802
|
-
|
|
27803
|
-
onActiveChange == null || onActiveChange(...args);
|
|
27832
|
+
onActiveChange: (0, import_core12.useEvent)(function(value2, index) {
|
|
27833
|
+
onActiveChange == null || onActiveChange(value2, index);
|
|
27804
27834
|
}),
|
|
27805
27835
|
setSelectedIndex,
|
|
27806
27836
|
setValueAtIndex: React4.useCallback(function(index, value2) {
|
|
@@ -27808,7 +27838,9 @@ var require_Select_native = __commonJS({
|
|
|
27808
27838
|
}, []),
|
|
27809
27839
|
shouldRenderWebNative,
|
|
27810
27840
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_context.SelectProvider, {
|
|
27811
|
-
scope
|
|
27841
|
+
scope,
|
|
27842
|
+
scopeName: scope,
|
|
27843
|
+
adaptScope,
|
|
27812
27844
|
disablePreventBodyScroll,
|
|
27813
27845
|
dir,
|
|
27814
27846
|
blockSelection: !1,
|
|
@@ -27818,7 +27850,6 @@ var require_Select_native = __commonJS({
|
|
|
27818
27850
|
forceUpdate,
|
|
27819
27851
|
valueNode,
|
|
27820
27852
|
onValueNodeChange: setValueNode,
|
|
27821
|
-
scopeKey: props.scopeKey,
|
|
27822
27853
|
activeIndex,
|
|
27823
27854
|
selectedIndex,
|
|
27824
27855
|
setActiveIndex: setActiveIndexDebounced,
|
|
@@ -27827,7 +27858,7 @@ var require_Select_native = __commonJS({
|
|
|
27827
27858
|
native,
|
|
27828
27859
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectSheetController, {
|
|
27829
27860
|
onOpenChange: setOpen,
|
|
27830
|
-
|
|
27861
|
+
scope,
|
|
27831
27862
|
children: shouldRenderWebNative ? children : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SelectImpl, {
|
|
27832
27863
|
activeIndexRef,
|
|
27833
27864
|
listContentRef,
|
|
@@ -30768,6 +30799,71 @@ var require_index_native74 = __commonJS({
|
|
|
30768
30799
|
}
|
|
30769
30800
|
});
|
|
30770
30801
|
|
|
30802
|
+
// ../../core/use-window-dimensions/dist/cjs/helpers.native.js
|
|
30803
|
+
var require_helpers_native4 = __commonJS({
|
|
30804
|
+
"../../core/use-window-dimensions/dist/cjs/helpers.native.js"(exports2, module2) {
|
|
30805
|
+
"use strict";
|
|
30806
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30807
|
+
for (var name in all) __defProp2(target, name, {
|
|
30808
|
+
get: all[name],
|
|
30809
|
+
enumerable: !0
|
|
30810
|
+
});
|
|
30811
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30812
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30813
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30814
|
+
for (var _loop = function() {
|
|
30815
|
+
var key = _step.value;
|
|
30816
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30817
|
+
get: function() {
|
|
30818
|
+
return from[key];
|
|
30819
|
+
},
|
|
30820
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30821
|
+
});
|
|
30822
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30823
|
+
} catch (err) {
|
|
30824
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30825
|
+
} finally {
|
|
30826
|
+
try {
|
|
30827
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30828
|
+
} finally {
|
|
30829
|
+
if (_didIteratorError)
|
|
30830
|
+
throw _iteratorError;
|
|
30831
|
+
}
|
|
30832
|
+
}
|
|
30833
|
+
return to;
|
|
30834
|
+
}, __toCommonJS2 = function(mod) {
|
|
30835
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30836
|
+
value: !0
|
|
30837
|
+
}), mod);
|
|
30838
|
+
}, helpers_native_exports = {};
|
|
30839
|
+
__export2(helpers_native_exports, {
|
|
30840
|
+
getWindowSize: function() {
|
|
30841
|
+
return getWindowSize;
|
|
30842
|
+
},
|
|
30843
|
+
subscribe: function() {
|
|
30844
|
+
return subscribe;
|
|
30845
|
+
}
|
|
30846
|
+
});
|
|
30847
|
+
module2.exports = __toCommonJS2(helpers_native_exports);
|
|
30848
|
+
var import_react_native4 = require_fake_react_native();
|
|
30849
|
+
function getWindowSize() {
|
|
30850
|
+
return import_react_native4.Dimensions.get("window");
|
|
30851
|
+
}
|
|
30852
|
+
var cbs = /* @__PURE__ */ new Set();
|
|
30853
|
+
import_react_native4.Dimensions.addEventListener("change", function(param) {
|
|
30854
|
+
var { window: window2 } = param;
|
|
30855
|
+
cbs.forEach(function(cb) {
|
|
30856
|
+
return cb(window2);
|
|
30857
|
+
});
|
|
30858
|
+
});
|
|
30859
|
+
function subscribe(cb) {
|
|
30860
|
+
return cbs.add(cb), function() {
|
|
30861
|
+
return cbs.delete(cb);
|
|
30862
|
+
};
|
|
30863
|
+
}
|
|
30864
|
+
}
|
|
30865
|
+
});
|
|
30866
|
+
|
|
30771
30867
|
// ../../core/use-window-dimensions/dist/cjs/index.native.js
|
|
30772
30868
|
var require_index_native75 = __commonJS({
|
|
30773
30869
|
"../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -30826,30 +30922,19 @@ var require_index_native75 = __commonJS({
|
|
|
30826
30922
|
}
|
|
30827
30923
|
});
|
|
30828
30924
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30829
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(),
|
|
30830
|
-
|
|
30831
|
-
|
|
30925
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(), initialValue = {
|
|
30926
|
+
width: 800,
|
|
30927
|
+
height: 600,
|
|
30928
|
+
scale: 1,
|
|
30929
|
+
fontScale: 1
|
|
30832
30930
|
};
|
|
30833
30931
|
function configureInitialWindowDimensions(next) {
|
|
30834
30932
|
Object.assign(initialValue, next);
|
|
30835
30933
|
}
|
|
30836
|
-
import_react_native4.Dimensions.addEventListener("change", function() {
|
|
30837
|
-
cbs.forEach(function(cb) {
|
|
30838
|
-
return cb(window);
|
|
30839
|
-
});
|
|
30840
|
-
});
|
|
30841
|
-
var cbs = /* @__PURE__ */ new Set();
|
|
30842
|
-
function subscribe(cb) {
|
|
30843
|
-
return cbs.add(cb), function() {
|
|
30844
|
-
return cbs.delete(cb);
|
|
30845
|
-
};
|
|
30846
|
-
}
|
|
30847
30934
|
function useWindowDimensions() {
|
|
30848
30935
|
var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30849
|
-
return import_react3.default.useSyncExternalStore(subscribe, function() {
|
|
30850
|
-
return
|
|
30851
|
-
}, function() {
|
|
30852
|
-
return import_constants4.isWeb ? serverValue : import_react_native4.Dimensions.get("window");
|
|
30936
|
+
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
30937
|
+
return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
30853
30938
|
});
|
|
30854
30939
|
}
|
|
30855
30940
|
}
|
|
@@ -31060,7 +31145,7 @@ __reExport(index_exports, __toESM(require_index_native46()), module.exports);
|
|
|
31060
31145
|
__reExport(index_exports, __toESM(require_index_native47()), module.exports);
|
|
31061
31146
|
__reExport(index_exports, __toESM(require_index_native52()), module.exports);
|
|
31062
31147
|
__reExport(index_exports, __toESM(require_index_native11()), module.exports);
|
|
31063
|
-
__reExport(index_exports, __toESM(
|
|
31148
|
+
__reExport(index_exports, __toESM(require_index_native33()), module.exports);
|
|
31064
31149
|
__reExport(index_exports, __toESM(require_index_native39()), module.exports);
|
|
31065
31150
|
__reExport(index_exports, __toESM(require_index_native44()), module.exports);
|
|
31066
31151
|
__reExport(index_exports, __toESM(require_index_native53()), module.exports);
|