tamagui 2.0.0-1768586279389 → 2.0.0-1768636514428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.cjs +408 -446
- package/dist/test.cjs +408 -678
- package/package.json +57 -57
- package/dist/cjs/helpers/inputHelpers.cjs +0 -68
- package/dist/cjs/helpers/inputHelpers.js +0 -50
- package/dist/cjs/helpers/inputHelpers.js.map +0 -6
- package/dist/cjs/helpers/inputHelpers.native.js +0 -76
- package/dist/cjs/helpers/inputHelpers.native.js.map +0 -1
- package/dist/cjs/views/Input.cjs +0 -123
- package/dist/cjs/views/Input.js +0 -114
- package/dist/cjs/views/Input.js.map +0 -6
- package/dist/cjs/views/Input.native.js +0 -132
- package/dist/cjs/views/Input.native.js.map +0 -1
- package/dist/cjs/views/Skeleton.cjs +0 -0
- package/dist/cjs/views/Skeleton.js +0 -1
- package/dist/cjs/views/Skeleton.js.map +0 -6
- package/dist/cjs/views/Skeleton.native.js +0 -2
- package/dist/cjs/views/Skeleton.native.js.map +0 -1
- package/dist/cjs/views/TextArea.cjs +0 -76
- package/dist/cjs/views/TextArea.js +0 -58
- package/dist/cjs/views/TextArea.js.map +0 -6
- package/dist/cjs/views/TextArea.native.js +0 -79
- package/dist/cjs/views/TextArea.native.js.map +0 -1
- package/dist/esm/helpers/inputHelpers.js +0 -37
- package/dist/esm/helpers/inputHelpers.js.map +0 -6
- package/dist/esm/helpers/inputHelpers.mjs +0 -44
- package/dist/esm/helpers/inputHelpers.mjs.map +0 -1
- package/dist/esm/helpers/inputHelpers.native.js +0 -49
- package/dist/esm/helpers/inputHelpers.native.js.map +0 -1
- package/dist/esm/views/Input.js +0 -96
- package/dist/esm/views/Input.js.map +0 -6
- package/dist/esm/views/Input.mjs +0 -86
- package/dist/esm/views/Input.mjs.map +0 -1
- package/dist/esm/views/Input.native.js +0 -92
- package/dist/esm/views/Input.native.js.map +0 -1
- package/dist/esm/views/Skeleton.js +0 -1
- package/dist/esm/views/Skeleton.js.map +0 -6
- package/dist/esm/views/Skeleton.mjs +0 -2
- package/dist/esm/views/Skeleton.mjs.map +0 -1
- package/dist/esm/views/Skeleton.native.js +0 -2
- package/dist/esm/views/Skeleton.native.js.map +0 -1
- package/dist/esm/views/TextArea.js +0 -39
- package/dist/esm/views/TextArea.js.map +0 -6
- package/dist/esm/views/TextArea.mjs +0 -41
- package/dist/esm/views/TextArea.mjs.map +0 -1
- package/dist/esm/views/TextArea.native.js +0 -41
- package/dist/esm/views/TextArea.native.js.map +0 -1
- package/dist/jsx/helpers/inputHelpers.js +0 -37
- package/dist/jsx/helpers/inputHelpers.js.map +0 -6
- package/dist/jsx/helpers/inputHelpers.mjs +0 -44
- package/dist/jsx/helpers/inputHelpers.mjs.map +0 -1
- package/dist/jsx/helpers/inputHelpers.native.js +0 -76
- package/dist/jsx/helpers/inputHelpers.native.js.map +0 -1
- package/dist/jsx/views/Input.js +0 -96
- package/dist/jsx/views/Input.js.map +0 -6
- package/dist/jsx/views/Input.mjs +0 -86
- package/dist/jsx/views/Input.mjs.map +0 -1
- package/dist/jsx/views/Input.native.js +0 -132
- package/dist/jsx/views/Input.native.js.map +0 -1
- package/dist/jsx/views/Skeleton.js +0 -1
- package/dist/jsx/views/Skeleton.js.map +0 -6
- package/dist/jsx/views/Skeleton.mjs +0 -2
- package/dist/jsx/views/Skeleton.mjs.map +0 -1
- package/dist/jsx/views/Skeleton.native.js +0 -2
- package/dist/jsx/views/Skeleton.native.js.map +0 -1
- package/dist/jsx/views/TextArea.js +0 -39
- package/dist/jsx/views/TextArea.js.map +0 -6
- package/dist/jsx/views/TextArea.mjs +0 -41
- package/dist/jsx/views/TextArea.mjs.map +0 -1
- package/dist/jsx/views/TextArea.native.js +0 -79
- package/dist/jsx/views/TextArea.native.js.map +0 -1
- package/types/helpers/inputHelpers.d.ts.map +0 -1
- package/types/views/Input.d.ts.map +0 -1
- package/types/views/Skeleton.d.ts.map +0 -1
- package/types/views/TextArea.d.ts.map +0 -1
package/dist/native.cjs
CHANGED
|
@@ -53,6 +53,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
53
53
|
};
|
|
54
54
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
55
55
|
const React = require("react");
|
|
56
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
56
57
|
function _interopNamespaceDefault(e2) {
|
|
57
58
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
58
59
|
if (e2) {
|
|
@@ -92,58 +93,6 @@ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
|
92
93
|
if (typeof globalThis["__DEV__"] === "undefined") {
|
|
93
94
|
globalThis["__DEV__"] = false;
|
|
94
95
|
}
|
|
95
|
-
function getDefaultExportFromCjs(x) {
|
|
96
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
97
|
-
}
|
|
98
|
-
var jsxRuntime = { exports: {} };
|
|
99
|
-
var reactJsxRuntime_production = {};
|
|
100
|
-
/**
|
|
101
|
-
* @license React
|
|
102
|
-
* react-jsx-runtime.production.js
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the MIT license found in the
|
|
107
|
-
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/
|
|
109
|
-
var hasRequiredReactJsxRuntime_production;
|
|
110
|
-
function requireReactJsxRuntime_production() {
|
|
111
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
112
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
113
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
114
|
-
function jsxProd(type, config, maybeKey) {
|
|
115
|
-
var key = null;
|
|
116
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
117
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
118
|
-
if ("key" in config) {
|
|
119
|
-
maybeKey = {};
|
|
120
|
-
for (var propName in config)
|
|
121
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
122
|
-
} else maybeKey = config;
|
|
123
|
-
config = maybeKey.ref;
|
|
124
|
-
return {
|
|
125
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
126
|
-
type,
|
|
127
|
-
key,
|
|
128
|
-
ref: void 0 !== config ? config : null,
|
|
129
|
-
props: maybeKey
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
133
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
134
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
135
|
-
return reactJsxRuntime_production;
|
|
136
|
-
}
|
|
137
|
-
var hasRequiredJsxRuntime;
|
|
138
|
-
function requireJsxRuntime() {
|
|
139
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
140
|
-
hasRequiredJsxRuntime = 1;
|
|
141
|
-
{
|
|
142
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
143
|
-
}
|
|
144
|
-
return jsxRuntime.exports;
|
|
145
|
-
}
|
|
146
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
147
96
|
var pseudoDescriptorsBase = {
|
|
148
97
|
// order of keys here important! in priority order
|
|
149
98
|
hoverStyle: {
|
|
@@ -263,9 +212,9 @@ function createStyledContext(defaultValues) {
|
|
|
263
212
|
]), scope = getNamespacedScope(scopeIn), next = React.useMemo(function() {
|
|
264
213
|
return __disableMergeDefaultValues ? values : mergeProps(defaultValues, values);
|
|
265
214
|
}, [objectIdentityKey(values)]), ScopedProvider = OGProvider;
|
|
266
|
-
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */
|
|
215
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ jsxRuntime.jsx(LastScopeInNamespace.Provider, {
|
|
267
216
|
value: scope,
|
|
268
|
-
children: /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScopedProvider, {
|
|
269
218
|
value: next,
|
|
270
219
|
children
|
|
271
220
|
})
|
|
@@ -598,7 +547,7 @@ function LocaleProvider(props) {
|
|
|
598
547
|
locale,
|
|
599
548
|
children
|
|
600
549
|
} = props;
|
|
601
|
-
return direction || locale ? /* @__PURE__ */
|
|
550
|
+
return direction || locale ? /* @__PURE__ */ jsxRuntime.jsx(LocaleContext.Provider, {
|
|
602
551
|
value: {
|
|
603
552
|
direction: locale ? getLocaleDirection(locale) : direction,
|
|
604
553
|
locale
|
|
@@ -618,7 +567,7 @@ var LayoutHandlers = /* @__PURE__ */ new WeakMap(), LayoutDisableKey = /* @__PUR
|
|
|
618
567
|
children
|
|
619
568
|
} = param, id2 = React.useId();
|
|
620
569
|
return useIsomorphicLayoutEffect(function() {
|
|
621
|
-
}, [disable, id2]), /* @__PURE__ */
|
|
570
|
+
}, [disable, id2]), /* @__PURE__ */ jsxRuntime.jsx(DisableLayoutContextKey.Provider, {
|
|
622
571
|
value: id2,
|
|
623
572
|
children
|
|
624
573
|
});
|
|
@@ -1759,6 +1708,9 @@ const stylesFromProps = /* @__PURE__ */ new WeakMap(), createDOMProps = (element
|
|
|
1759
1708
|
return _id && (domProps.id = _id), testID != null && (domProps["data-testid"] = testID), domProps;
|
|
1760
1709
|
};
|
|
1761
1710
|
const isWebColor$1 = (color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
|
|
1711
|
+
function getDefaultExportFromCjs(x) {
|
|
1712
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1713
|
+
}
|
|
1762
1714
|
var normalizeColor_1;
|
|
1763
1715
|
var hasRequiredNormalizeColor;
|
|
1764
1716
|
function requireNormalizeColor() {
|
|
@@ -2847,7 +2799,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2847
2799
|
if (!styles2) return;
|
|
2848
2800
|
const styleObj = {};
|
|
2849
2801
|
for (const style of styles2) styleObj[style[0]] = style;
|
|
2850
|
-
}, [styles2]), /* @__PURE__ */
|
|
2802
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2851
2803
|
children: [element, styleTags]
|
|
2852
2804
|
});
|
|
2853
2805
|
}, createElement$1 = (component, props, options) => {
|
|
@@ -2855,7 +2807,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2855
2807
|
element,
|
|
2856
2808
|
styles: styles2
|
|
2857
2809
|
} = createElementAndStyles$1(component, props);
|
|
2858
|
-
return /* @__PURE__ */
|
|
2810
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2859
2811
|
children: [element, styles2 ? getStyleTags() : null]
|
|
2860
2812
|
});
|
|
2861
2813
|
}, createElementAndStyles$1 = (component, props, options) => {
|
|
@@ -2864,7 +2816,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2864
2816
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
2865
2817
|
let element = React.createElement(Component, domProps);
|
|
2866
2818
|
return {
|
|
2867
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
2819
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, {
|
|
2868
2820
|
direction: domProps.dir,
|
|
2869
2821
|
locale: domProps.lang,
|
|
2870
2822
|
children: element
|
|
@@ -4067,7 +4019,7 @@ function createAnimatedComponent(Component) {
|
|
|
4067
4019
|
} = _a, passthroughProps = __objRest(_a, [
|
|
4068
4020
|
"style"
|
|
4069
4021
|
]);
|
|
4070
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, reducedProps), passthroughProps), {
|
|
4071
4023
|
style: [style, passthroughStyle],
|
|
4072
4024
|
ref
|
|
4073
4025
|
}));
|
|
@@ -4215,13 +4167,13 @@ const useCreateElement = (component, props, options) => {
|
|
|
4215
4167
|
const styleObj = {};
|
|
4216
4168
|
for (const style of styles2)
|
|
4217
4169
|
styleObj[style[0]] = style;
|
|
4218
|
-
}, [styles2]), /* @__PURE__ */
|
|
4170
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4219
4171
|
element,
|
|
4220
4172
|
styleTags
|
|
4221
4173
|
] });
|
|
4222
4174
|
}, createElement = (component, props, options) => {
|
|
4223
4175
|
const { element, styles: styles2 } = createElementAndStyles(component, props);
|
|
4224
|
-
return /* @__PURE__ */
|
|
4176
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4225
4177
|
element,
|
|
4226
4178
|
styles2 ? getStyleTags() : null
|
|
4227
4179
|
] });
|
|
@@ -4231,7 +4183,7 @@ const useCreateElement = (component, props, options) => {
|
|
|
4231
4183
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
4232
4184
|
let element = React.createElement(Component, domProps);
|
|
4233
4185
|
return {
|
|
4234
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
4186
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, { direction: domProps.dir, locale: domProps.lang, children: element }) : element,
|
|
4235
4187
|
styles: styles2
|
|
4236
4188
|
};
|
|
4237
4189
|
};
|
|
@@ -4394,7 +4346,7 @@ const ScrollViewBase$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
4394
4346
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent$1(e2));
|
|
4395
4347
|
}
|
|
4396
4348
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
4397
|
-
return /* @__PURE__ */
|
|
4349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4398
4350
|
View$3,
|
|
4399
4351
|
__spreadProps(__spreadValues({}, rest), {
|
|
4400
4352
|
onScroll: handleScroll,
|
|
@@ -4627,7 +4579,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4627
4579
|
});
|
|
4628
4580
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
4629
4581
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
4630
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
4582
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4631
4583
|
View$3,
|
|
4632
4584
|
{
|
|
4633
4585
|
style: StyleSheet.compose(
|
|
@@ -4637,7 +4589,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4637
4589
|
children: child
|
|
4638
4590
|
}
|
|
4639
4591
|
) : child;
|
|
4640
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
4592
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4641
4593
|
View$3,
|
|
4642
4594
|
__spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
4643
4595
|
collapsable: false,
|
|
@@ -4669,7 +4621,7 @@ let ScrollView$2 = class ScrollView extends React.Component {
|
|
|
4669
4621
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
4670
4622
|
}), ScrollViewClass = ScrollViewBase$1;
|
|
4671
4623
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
4672
|
-
const scrollView = /* @__PURE__ */
|
|
4624
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), { ref: this._setScrollNodeRef.bind(this), children: contentContainer }));
|
|
4673
4625
|
return refreshControl ? React.cloneElement(refreshControl, { style: props.style }, scrollView) : scrollView;
|
|
4674
4626
|
}
|
|
4675
4627
|
_handleContentOnLayout(e2) {
|
|
@@ -4908,7 +4860,7 @@ const commonStyle$1 = {
|
|
|
4908
4860
|
pagingEnabledChild: {
|
|
4909
4861
|
scrollSnapAlign: "start"
|
|
4910
4862
|
}
|
|
4911
|
-
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
4863
|
+
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView$2, __spreadProps(__spreadValues({}, props), { forwardedRef })));
|
|
4912
4864
|
ForwardedScrollView$1.displayName = "ScrollView";
|
|
4913
4865
|
function RefreshControl(props) {
|
|
4914
4866
|
const _a = props, {
|
|
@@ -4935,7 +4887,7 @@ function RefreshControl(props) {
|
|
|
4935
4887
|
"title",
|
|
4936
4888
|
"titleColor"
|
|
4937
4889
|
]);
|
|
4938
|
-
return /* @__PURE__ */
|
|
4890
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadValues({}, rest));
|
|
4939
4891
|
}
|
|
4940
4892
|
class Batchinator {
|
|
4941
4893
|
constructor(callback, delayMS) {
|
|
@@ -5269,7 +5221,7 @@ function VirtualizedListCellContextProvider({ cellKey, children }) {
|
|
|
5269
5221
|
() => currContext == null ? null : __spreadProps(__spreadValues({}, currContext), { cellKey }),
|
|
5270
5222
|
[currContext, cellKey]
|
|
5271
5223
|
);
|
|
5272
|
-
return /* @__PURE__ */
|
|
5224
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListContext.Provider, { value: context2, children });
|
|
5273
5225
|
}
|
|
5274
5226
|
class CellRenderer extends React__namespace.Component {
|
|
5275
5227
|
constructor() {
|
|
@@ -5367,8 +5319,8 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5367
5319
|
ItemSeparatorComponent
|
|
5368
5320
|
) : (
|
|
5369
5321
|
// $FlowFixMe[incompatible-type]
|
|
5370
|
-
ItemSeparatorComponent && /* @__PURE__ */
|
|
5371
|
-
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */
|
|
5322
|
+
ItemSeparatorComponent && /* @__PURE__ */ jsxRuntime.jsx(ItemSeparatorComponent, __spreadValues({}, this.state.separatorProps))
|
|
5323
|
+
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5372
5324
|
CellRendererComponent,
|
|
5373
5325
|
__spreadProps(__spreadValues({
|
|
5374
5326
|
cellKey,
|
|
@@ -5382,7 +5334,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5382
5334
|
itemSeparator
|
|
5383
5335
|
]
|
|
5384
5336
|
})
|
|
5385
|
-
) : /* @__PURE__ */
|
|
5337
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5386
5338
|
View$3,
|
|
5387
5339
|
__spreadProps(__spreadValues({
|
|
5388
5340
|
style: cellStyle,
|
|
@@ -5394,7 +5346,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5394
5346
|
]
|
|
5395
5347
|
})
|
|
5396
5348
|
);
|
|
5397
|
-
return /* @__PURE__ */
|
|
5349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListCellContextProvider, { cellKey: this.props.cellKey, children: result });
|
|
5398
5350
|
}
|
|
5399
5351
|
}
|
|
5400
5352
|
const styles$e = StyleSheet.create({
|
|
@@ -5616,14 +5568,14 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5616
5568
|
"viewabilityConfig",
|
|
5617
5569
|
"viewabilityConfigCallbackPairs"
|
|
5618
5570
|
]);
|
|
5619
|
-
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */
|
|
5571
|
+
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */ jsxRuntime.jsx(ListEmptyComponent, {}) : null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5620
5572
|
ForwardedScrollView$1,
|
|
5621
5573
|
__spreadProps(__spreadValues({}, restProps), {
|
|
5622
5574
|
ref: this._captureRef,
|
|
5623
5575
|
onContentSizeChange: this._onContentSizeChange,
|
|
5624
5576
|
onLayout: this._onLayout,
|
|
5625
5577
|
onScroll: this._onScroll,
|
|
5626
|
-
refreshControl: onRefresh && /* @__PURE__ */
|
|
5578
|
+
refreshControl: onRefresh && /* @__PURE__ */ jsxRuntime.jsx(RefreshControl, { refreshing, onRefresh }),
|
|
5627
5579
|
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
5628
5580
|
removeClippedSubviews,
|
|
5629
5581
|
children: this._renderChildren()
|
|
@@ -5635,7 +5587,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5635
5587
|
for (let i = 0; i < getItemCount(data); i++) {
|
|
5636
5588
|
const item = getItem(data, i);
|
|
5637
5589
|
items.push(
|
|
5638
|
-
/* @__PURE__ */
|
|
5590
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5639
5591
|
CellRenderer,
|
|
5640
5592
|
{
|
|
5641
5593
|
cellKey: String(i),
|
|
@@ -5707,13 +5659,13 @@ class FlatList extends React.PureComponent {
|
|
|
5707
5659
|
return numColumns > 1 ? (invariant(Array.isArray(items), "FlatList: Expected each item to be an array with multiple columns."), items.map((item, kk) => keyExtractor$1(item, index2 * numColumns + kk)).join(":")) : keyExtractor$1(items, index2);
|
|
5708
5660
|
});
|
|
5709
5661
|
__publicField(this, "_renderer", (ListItemComponent2, renderItem, columnWrapperStyle, numColumns, extraData) => {
|
|
5710
|
-
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent2 ? /* @__PURE__ */
|
|
5662
|
+
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent2 ? /* @__PURE__ */ jsxRuntime.jsx(ListItemComponent2, __spreadValues({}, props)) : renderItem ? renderItem(props) : null, renderProp = (info) => {
|
|
5711
5663
|
if (cols > 1) {
|
|
5712
5664
|
const {
|
|
5713
5665
|
item,
|
|
5714
5666
|
index: index2
|
|
5715
5667
|
} = info;
|
|
5716
|
-
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */
|
|
5668
|
+
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */ jsxRuntime.jsx(View$3, {
|
|
5717
5669
|
style: [styles$d.row, columnWrapperStyle],
|
|
5718
5670
|
children: item.map((it, kk) => {
|
|
5719
5671
|
const element = render({
|
|
@@ -5721,7 +5673,7 @@ class FlatList extends React.PureComponent {
|
|
|
5721
5673
|
index: index2 * cols + kk,
|
|
5722
5674
|
separators: info.separators
|
|
5723
5675
|
});
|
|
5724
|
-
return element != null ? /* @__PURE__ */
|
|
5676
|
+
return element != null ? /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
5725
5677
|
children: element
|
|
5726
5678
|
}, kk) : null;
|
|
5727
5679
|
})
|
|
@@ -5794,7 +5746,7 @@ class FlatList extends React.PureComponent {
|
|
|
5794
5746
|
"removeClippedSubviews",
|
|
5795
5747
|
"strictMode"
|
|
5796
5748
|
]), renderer = strictMode ? this._memoizedRenderer : this._renderer;
|
|
5797
|
-
return /* @__PURE__ */
|
|
5749
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedList, __spreadValues(__spreadProps(__spreadValues({}, restProps), {
|
|
5798
5750
|
getItem: this._getItem,
|
|
5799
5751
|
getItemCount: this._getItemCount,
|
|
5800
5752
|
keyExtractor: this._keyExtractor,
|
|
@@ -5809,7 +5761,7 @@ const styles$d = {
|
|
|
5809
5761
|
flexDirection: "row"
|
|
5810
5762
|
}
|
|
5811
5763
|
};
|
|
5812
|
-
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
5764
|
+
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(FlatList, __spreadProps(__spreadValues({
|
|
5813
5765
|
scrollEventThrottle: 1e-4
|
|
5814
5766
|
}, props), {
|
|
5815
5767
|
ref
|
|
@@ -5850,7 +5802,7 @@ const ERRORED$1 = "ERRORED", LOADED$1 = "LOADED", LOADING$1 = "LOADING", IDLE$1
|
|
|
5850
5802
|
let _filterId$1 = 0;
|
|
5851
5803
|
const svgDataUriPattern$1 = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
5852
5804
|
function createTintColorSVG$1(tintColor, id2) {
|
|
5853
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
5805
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5854
5806
|
"svg",
|
|
5855
5807
|
{
|
|
5856
5808
|
style: {
|
|
@@ -5859,9 +5811,9 @@ function createTintColorSVG$1(tintColor, id2) {
|
|
|
5859
5811
|
visibility: "hidden",
|
|
5860
5812
|
width: 0
|
|
5861
5813
|
},
|
|
5862
|
-
children: /* @__PURE__ */
|
|
5863
|
-
/* @__PURE__ */
|
|
5864
|
-
/* @__PURE__ */
|
|
5814
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("filter", { id: `tint-${id2}`, suppressHydrationWarning: true, children: [
|
|
5815
|
+
/* @__PURE__ */ jsxRuntime.jsx("feFlood", { floodColor: `${tintColor}` }, tintColor),
|
|
5816
|
+
/* @__PURE__ */ jsxRuntime.jsx("feComposite", { in2: "SourceAlpha", operator: "atop" })
|
|
5865
5817
|
] }) })
|
|
5866
5818
|
}
|
|
5867
5819
|
) : null;
|
|
@@ -5983,7 +5935,7 @@ const Image$2 = React__namespace.forwardRef((props, ref) => {
|
|
|
5983
5935
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
5984
5936
|
}
|
|
5985
5937
|
return abortPendingRequest;
|
|
5986
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
5938
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5987
5939
|
View$3,
|
|
5988
5940
|
__spreadProps(__spreadValues({}, rest), {
|
|
5989
5941
|
"aria-label": accessibilityLabel,
|
|
@@ -5998,7 +5950,7 @@ const Image$2 = React__namespace.forwardRef((props, ref) => {
|
|
|
5998
5950
|
flatStyle
|
|
5999
5951
|
],
|
|
6000
5952
|
children: [
|
|
6001
|
-
/* @__PURE__ */
|
|
5953
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6002
5954
|
View$3,
|
|
6003
5955
|
{
|
|
6004
5956
|
style: [
|
|
@@ -6075,7 +6027,7 @@ const styles$c = StyleSheet.create({
|
|
|
6075
6027
|
}
|
|
6076
6028
|
});
|
|
6077
6029
|
createAnimatedComponent(ImageWithStatics$1);
|
|
6078
|
-
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6030
|
+
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView$1, __spreadProps(__spreadValues({
|
|
6079
6031
|
scrollEventThrottle: 1e-4
|
|
6080
6032
|
}, props), {
|
|
6081
6033
|
ref
|
|
@@ -6147,7 +6099,7 @@ class VirtualizedSectionList extends React__namespace.PureComponent {
|
|
|
6147
6099
|
for (const section of this.props.sections)
|
|
6148
6100
|
stickyHeaderIndices == null ? void 0 : stickyHeaderIndices.push(itemCount + listHeaderOffset), itemCount += 2, itemCount += this.props.getItemCount(section.data);
|
|
6149
6101
|
const renderItem = this._renderItem(itemCount);
|
|
6150
|
-
return /* @__PURE__ */
|
|
6102
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6151
6103
|
VirtualizedList,
|
|
6152
6104
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6153
6105
|
keyExtractor: this._keyExtractor,
|
|
@@ -6222,7 +6174,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6222
6174
|
}
|
|
6223
6175
|
render() {
|
|
6224
6176
|
const _a = this.props, { sections } = _a, passThroughProps = __objRest(_a, ["sections"]);
|
|
6225
|
-
return /* @__PURE__ */
|
|
6177
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6226
6178
|
VirtualizedSectionList,
|
|
6227
6179
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6228
6180
|
sections,
|
|
@@ -6236,7 +6188,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6236
6188
|
}
|
|
6237
6189
|
}
|
|
6238
6190
|
var SectionList_default = SectionList;
|
|
6239
|
-
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6191
|
+
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(SectionList_default, __spreadProps(__spreadValues({
|
|
6240
6192
|
scrollEventThrottle: 1e-4
|
|
6241
6193
|
}, props), {
|
|
6242
6194
|
ref
|
|
@@ -6333,7 +6285,7 @@ const pickProps$4 = (props) => pick(props, forwardPropsListText), Text$5 = React
|
|
|
6333
6285
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
6334
6286
|
supportedProps.ref = setRef2;
|
|
6335
6287
|
const element = useCreateElement(component, supportedProps);
|
|
6336
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
6288
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, { value: true, children: element });
|
|
6337
6289
|
}
|
|
6338
6290
|
);
|
|
6339
6291
|
Text$5.displayName = "Text";
|
|
@@ -6566,7 +6518,7 @@ function requireReactDom_production() {
|
|
|
6566
6518
|
reactDom_production.useFormStatus = function() {
|
|
6567
6519
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
6568
6520
|
};
|
|
6569
|
-
reactDom_production.version = "19.
|
|
6521
|
+
reactDom_production.version = "19.2.3";
|
|
6570
6522
|
return reactDom_production;
|
|
6571
6523
|
}
|
|
6572
6524
|
var hasRequiredReactDom;
|
|
@@ -6683,16 +6635,16 @@ const RootTagContext$1 = React__namespace.createContext(null), AppContainer = Re
|
|
|
6683
6635
|
children,
|
|
6684
6636
|
WrapperComponent
|
|
6685
6637
|
} = props;
|
|
6686
|
-
let innerView = /* @__PURE__ */
|
|
6638
|
+
let innerView = /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
6687
6639
|
pointerEvents: "box-none",
|
|
6688
6640
|
style: styles$9.appContainer,
|
|
6689
6641
|
children
|
|
6690
6642
|
}, 1);
|
|
6691
|
-
return WrapperComponent && (innerView = /* @__PURE__ */
|
|
6643
|
+
return WrapperComponent && (innerView = /* @__PURE__ */ jsxRuntime.jsx(WrapperComponent, {
|
|
6692
6644
|
children: innerView
|
|
6693
|
-
})), /* @__PURE__ */
|
|
6645
|
+
})), /* @__PURE__ */ jsxRuntime.jsx(RootTagContext$1.Provider, {
|
|
6694
6646
|
value: props.rootTag,
|
|
6695
|
-
children: /* @__PURE__ */
|
|
6647
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
6696
6648
|
pointerEvents: "box-none",
|
|
6697
6649
|
ref: forwardedRef,
|
|
6698
6650
|
style: styles$9.appContainer,
|
|
@@ -6927,7 +6879,7 @@ class UnimplementedView extends React.Component {
|
|
|
6927
6879
|
});
|
|
6928
6880
|
}
|
|
6929
6881
|
render() {
|
|
6930
|
-
return /* @__PURE__ */
|
|
6882
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadValues({}, this.props));
|
|
6931
6883
|
}
|
|
6932
6884
|
}
|
|
6933
6885
|
function TouchableOpacityImpl(props, forwardedRef) {
|
|
@@ -6979,7 +6931,7 @@ function TouchableOpacityImpl(props, forwardedRef) {
|
|
|
6979
6931
|
setOpacityInactive(250), onPressOut == null ? void 0 : onPressOut(event);
|
|
6980
6932
|
}
|
|
6981
6933
|
}), [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]), pressEventHandlers = usePressEvents(hostRef, pressConfig);
|
|
6982
|
-
return /* @__PURE__ */
|
|
6934
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
6983
6935
|
accessibilityDisabled: disabled,
|
|
6984
6936
|
focusable: !disabled && focusable !== false,
|
|
6985
6937
|
ref: setRef2,
|
|
@@ -7048,7 +7000,7 @@ function TouchableWithoutFeedbackImpl(props, forwardedRef) {
|
|
|
7048
7000
|
}
|
|
7049
7001
|
const TouchableWithoutFeedback = React__namespace.memo(React__namespace.forwardRef(TouchableWithoutFeedbackImpl));
|
|
7050
7002
|
TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
|
|
7051
|
-
const createSvgCircle = (style) => /* @__PURE__ */
|
|
7003
|
+
const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntime.jsx("circle", {
|
|
7052
7004
|
cx: "16",
|
|
7053
7005
|
cy: "16",
|
|
7054
7006
|
fill: "none",
|
|
@@ -7068,7 +7020,7 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
7068
7020
|
"hidesWhenStopped",
|
|
7069
7021
|
"size",
|
|
7070
7022
|
"style"
|
|
7071
|
-
]), svg = /* @__PURE__ */
|
|
7023
|
+
]), svg = /* @__PURE__ */ jsxRuntime.jsxs("svg", {
|
|
7072
7024
|
height: "100%",
|
|
7073
7025
|
viewBox: "0 0 32 32",
|
|
7074
7026
|
width: "100%",
|
|
@@ -7081,13 +7033,13 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
7081
7033
|
strokeDashoffset: 60
|
|
7082
7034
|
})]
|
|
7083
7035
|
});
|
|
7084
|
-
return /* @__PURE__ */
|
|
7036
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, other), {
|
|
7085
7037
|
accessibilityRole: "progressbar",
|
|
7086
7038
|
accessibilityValueMax: 1,
|
|
7087
7039
|
accessibilityValueMin: 0,
|
|
7088
7040
|
ref: forwardedRef,
|
|
7089
7041
|
style: [styles$7.container, style],
|
|
7090
|
-
children: /* @__PURE__ */
|
|
7042
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7091
7043
|
children: svg,
|
|
7092
7044
|
style: [typeof size == "number" ? {
|
|
7093
7045
|
height: size,
|
|
@@ -7139,20 +7091,20 @@ const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE"
|
|
|
7139
7091
|
let _filterId = 0;
|
|
7140
7092
|
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
7141
7093
|
function createTintColorSVG(tintColor, id2) {
|
|
7142
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
7094
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
7143
7095
|
style: {
|
|
7144
7096
|
position: "absolute",
|
|
7145
7097
|
height: 0,
|
|
7146
7098
|
visibility: "hidden",
|
|
7147
7099
|
width: 0
|
|
7148
7100
|
},
|
|
7149
|
-
children: /* @__PURE__ */
|
|
7150
|
-
children: /* @__PURE__ */
|
|
7101
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", {
|
|
7102
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("filter", {
|
|
7151
7103
|
id: `tint-${id2}`,
|
|
7152
7104
|
suppressHydrationWarning: true,
|
|
7153
|
-
children: [/* @__PURE__ */
|
|
7105
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx("feFlood", {
|
|
7154
7106
|
floodColor: `${tintColor}`
|
|
7155
|
-
}, tintColor), /* @__PURE__ */
|
|
7107
|
+
}, tintColor), /* @__PURE__ */ jsxRuntime.jsx("feComposite", {
|
|
7156
7108
|
in2: "SourceAlpha",
|
|
7157
7109
|
operator: "atop"
|
|
7158
7110
|
})]
|
|
@@ -7292,13 +7244,13 @@ const Image$1 = React__namespace.forwardRef((props, ref) => {
|
|
|
7292
7244
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
7293
7245
|
}
|
|
7294
7246
|
return abortPendingRequest;
|
|
7295
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
7247
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7296
7248
|
"aria-label": accessibilityLabel,
|
|
7297
7249
|
onLayout: handleLayout,
|
|
7298
7250
|
pointerEvents,
|
|
7299
7251
|
ref,
|
|
7300
7252
|
style: [style, styles$6.root, hasTextAncestor && styles$6.inline, imageSizeStyle, flatStyle],
|
|
7301
|
-
children: [/* @__PURE__ */
|
|
7253
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7302
7254
|
style: [...[].concat(styles$6.image), resizeModeStyles[resizeMode], {
|
|
7303
7255
|
backgroundImage,
|
|
7304
7256
|
filter
|
|
@@ -7382,10 +7334,10 @@ const emptyObject$2 = {}, ImageBackground = React.forwardRef((props, forwardedRe
|
|
|
7382
7334
|
height,
|
|
7383
7335
|
width
|
|
7384
7336
|
} = StyleSheet.flatten(style);
|
|
7385
|
-
return /* @__PURE__ */
|
|
7337
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(View$2, {
|
|
7386
7338
|
ref: forwardedRef,
|
|
7387
7339
|
style,
|
|
7388
|
-
children: [/* @__PURE__ */
|
|
7340
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(ImageWithStatics, __spreadProps(__spreadValues({}, rest), {
|
|
7389
7341
|
ref: imageRef,
|
|
7390
7342
|
style: [{
|
|
7391
7343
|
// Temporary Workaround:
|
|
@@ -7481,7 +7433,7 @@ function Pressable(props, forwardedRef) {
|
|
|
7481
7433
|
}, [onContextMenu, onContextMenuPress]), keyDownHandler = React__namespace.useCallback((e2) => {
|
|
7482
7434
|
onKeyDownPress == null ? void 0 : onKeyDownPress(e2), onKeyDown2 == null ? void 0 : onKeyDown2(e2);
|
|
7483
7435
|
}, [onKeyDown2, onKeyDownPress]);
|
|
7484
|
-
return /* @__PURE__ */
|
|
7436
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
7485
7437
|
accessibilityDisabled: disabled,
|
|
7486
7438
|
focusable: !disabled && focusable !== false,
|
|
7487
7439
|
onBlur: blurHandler,
|
|
@@ -7511,7 +7463,7 @@ const cssFunction = canUseDOM$1 && window.CSS && window.CSS.supports && window.C
|
|
|
7511
7463
|
} = _a, rest = __objRest(_a, [
|
|
7512
7464
|
"style"
|
|
7513
7465
|
]);
|
|
7514
|
-
return /* @__PURE__ */
|
|
7466
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7515
7467
|
ref,
|
|
7516
7468
|
style: StyleSheet.compose(styles$4.root, style)
|
|
7517
7469
|
}));
|
|
@@ -7603,7 +7555,7 @@ const ScrollViewBase = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7603
7555
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent(e2));
|
|
7604
7556
|
}
|
|
7605
7557
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
7606
|
-
return /* @__PURE__ */
|
|
7558
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7607
7559
|
onScroll: handleScroll,
|
|
7608
7560
|
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
7609
7561
|
onWheel: createPreventableScrollHandler(onWheel),
|
|
@@ -7846,11 +7798,11 @@ let ScrollView$1 = class ScrollView2 extends React.Component {
|
|
|
7846
7798
|
});
|
|
7847
7799
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
7848
7800
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
7849
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
7801
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7850
7802
|
style: StyleSheet.compose(isSticky && styles$2.stickyHeader, pagingEnabled && styles$2.pagingEnabledChild),
|
|
7851
7803
|
children: child
|
|
7852
7804
|
}) : child;
|
|
7853
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
7805
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
7854
7806
|
collapsable: false,
|
|
7855
7807
|
ref: this._setInnerViewRef.bind(this),
|
|
7856
7808
|
style: [horizontal && styles$2.contentContainerHorizontal, centerContent && styles$2.contentContainerCenterContent, contentContainerStyle],
|
|
@@ -7875,7 +7827,7 @@ let ScrollView$1 = class ScrollView2 extends React.Component {
|
|
|
7875
7827
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
7876
7828
|
}), ScrollViewClass = ScrollViewBase;
|
|
7877
7829
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
7878
|
-
const scrollView = /* @__PURE__ */
|
|
7830
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), {
|
|
7879
7831
|
ref: this._setScrollNodeRef.bind(this),
|
|
7880
7832
|
children: contentContainer
|
|
7881
7833
|
}));
|
|
@@ -8124,7 +8076,7 @@ const commonStyle = {
|
|
|
8124
8076
|
pagingEnabledChild: {
|
|
8125
8077
|
scrollSnapAlign: "start"
|
|
8126
8078
|
}
|
|
8127
|
-
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
8079
|
+
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView$1, __spreadProps(__spreadValues({}, props), {
|
|
8128
8080
|
forwardedRef
|
|
8129
8081
|
})));
|
|
8130
8082
|
ForwardedScrollView.displayName = "ScrollView";
|
|
@@ -8214,7 +8166,7 @@ const pickProps$1 = (props) => pick(props, forwardPropsListText), Text$4 = React
|
|
|
8214
8166
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
8215
8167
|
supportedProps.ref = setRef2;
|
|
8216
8168
|
const element = useCreateElement$1(component, supportedProps);
|
|
8217
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
8169
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, {
|
|
8218
8170
|
value: true,
|
|
8219
8171
|
children: element
|
|
8220
8172
|
});
|
|
@@ -10630,9 +10582,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
10630
10582
|
}))), {
|
|
10631
10583
|
opacity: 1,
|
|
10632
10584
|
scale: 1,
|
|
10585
|
+
scaleX: 1,
|
|
10586
|
+
scaleY: 1,
|
|
10633
10587
|
rotate: "0deg",
|
|
10634
|
-
rotateY: "0deg",
|
|
10635
10588
|
rotateX: "0deg",
|
|
10589
|
+
rotateY: "0deg",
|
|
10590
|
+
rotateZ: "0deg",
|
|
10591
|
+
skewX: "0deg",
|
|
10592
|
+
skewY: "0deg",
|
|
10636
10593
|
x: 0,
|
|
10637
10594
|
y: 0,
|
|
10638
10595
|
borderRadius: 0
|
|
@@ -10774,7 +10731,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10774
10731
|
forceClassName
|
|
10775
10732
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
10776
10733
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
10777
|
-
children = /* @__PURE__ */
|
|
10734
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
10778
10735
|
value: themeState.id,
|
|
10779
10736
|
children
|
|
10780
10737
|
});
|
|
@@ -10788,7 +10745,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10788
10745
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
10789
10746
|
if (!parentState) throw new Error("‼️010");
|
|
10790
10747
|
children = React.Children.toArray(children).map(function(child) {
|
|
10791
|
-
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */
|
|
10748
|
+
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
10792
10749
|
name: parentState.name,
|
|
10793
10750
|
children: child.props.children
|
|
10794
10751
|
})) : child;
|
|
@@ -10814,21 +10771,21 @@ function themeable(Component, staticConfig) {
|
|
|
10814
10771
|
}
|
|
10815
10772
|
var element = (
|
|
10816
10773
|
// @ts-expect-error its ok
|
|
10817
|
-
/* @__PURE__ */
|
|
10774
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
10818
10775
|
ref
|
|
10819
10776
|
}, rest), {
|
|
10820
10777
|
"data-disable-theme": true
|
|
10821
10778
|
}))
|
|
10822
10779
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
10823
10780
|
if (compName && (filteredProps || (filteredProps = {}), filteredProps.componentName = compName), "debug" in props && (filteredProps || (filteredProps = {}), filteredProps.debug = props.debug), "theme" in props && (filteredProps || (filteredProps = {}), filteredProps.name = props.theme), "themeReset" in props && (filteredProps || (filteredProps = {}), filteredProps.reset = themeReset), optimize && !filteredProps) return element;
|
|
10824
|
-
var contents = /* @__PURE__ */
|
|
10781
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
10825
10782
|
"disable-child-theme": true
|
|
10826
10783
|
}, filteredProps), {
|
|
10827
10784
|
children: element
|
|
10828
10785
|
}));
|
|
10829
10786
|
if (context2) {
|
|
10830
10787
|
var Provider = context2.Provider, contextValue = React.useContext(context2);
|
|
10831
|
-
contents = /* @__PURE__ */
|
|
10788
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
10832
10789
|
children: contents
|
|
10833
10790
|
}));
|
|
10834
10791
|
}
|
|
@@ -10843,7 +10800,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
10843
10800
|
children,
|
|
10844
10801
|
enabled
|
|
10845
10802
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
10846
|
-
return /* @__PURE__ */
|
|
10803
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
10847
10804
|
value: enabled != null ? enabled : existingValue,
|
|
10848
10805
|
children
|
|
10849
10806
|
});
|
|
@@ -10961,7 +10918,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10961
10918
|
var {
|
|
10962
10919
|
children
|
|
10963
10920
|
} = param;
|
|
10964
|
-
return /* @__PURE__ */
|
|
10921
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
10965
10922
|
children
|
|
10966
10923
|
});
|
|
10967
10924
|
};
|
|
@@ -11283,24 +11240,27 @@ function createComponent(staticConfig) {
|
|
|
11283
11240
|
});
|
|
11284
11241
|
return;
|
|
11285
11242
|
}
|
|
11286
|
-
var tm;
|
|
11287
11243
|
if (state.unmounted) {
|
|
11288
|
-
if (
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11244
|
+
if (supportsCSS) {
|
|
11245
|
+
var cancelled = false;
|
|
11246
|
+
return requestAnimationFrame(function() {
|
|
11247
|
+
cancelled || requestAnimationFrame(function() {
|
|
11248
|
+
cancelled || setStateShallow({
|
|
11249
|
+
unmounted: false
|
|
11250
|
+
});
|
|
11251
|
+
});
|
|
11252
|
+
}), function() {
|
|
11253
|
+
cancelled = true;
|
|
11254
|
+
};
|
|
11255
|
+
}
|
|
11295
11256
|
setStateShallow({
|
|
11296
11257
|
unmounted: false
|
|
11297
11258
|
});
|
|
11298
|
-
return;
|
|
11299
11259
|
}
|
|
11300
11260
|
return function() {
|
|
11301
11261
|
componentSetStates.delete(setState);
|
|
11302
11262
|
};
|
|
11303
|
-
}, [state.unmounted,
|
|
11263
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11304
11264
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11305
11265
|
groupContext: allGroupContexts,
|
|
11306
11266
|
setStateShallow,
|
|
@@ -11388,19 +11348,19 @@ function createComponent(staticConfig) {
|
|
|
11388
11348
|
!isHOC && ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11389
11349
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11390
11350
|
var renderReset = needsReset || hasEverReset;
|
|
11391
|
-
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */
|
|
11351
|
+
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence2, {
|
|
11392
11352
|
disabled: !needsReset,
|
|
11393
11353
|
children: content
|
|
11394
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11354
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11395
11355
|
setParentFocusState: setStateShallow,
|
|
11396
11356
|
children: content
|
|
11397
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11357
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11398
11358
|
value: allGroupContexts,
|
|
11399
11359
|
children: content
|
|
11400
11360
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11401
11361
|
var Provider = contextForOverride.Provider;
|
|
11402
11362
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11403
|
-
|
|
11363
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11404
11364
|
__disableMergeDefaultValues: true
|
|
11405
11365
|
}, overriddenContextProps), {
|
|
11406
11366
|
children: content
|
|
@@ -12014,9 +11974,9 @@ function useThemeName() {
|
|
|
12014
11974
|
}
|
|
12015
11975
|
var Configuration = function(props) {
|
|
12016
11976
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
12017
|
-
return /* @__PURE__ */
|
|
11977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12018
11978
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
12019
|
-
children: /* @__PURE__ */
|
|
11979
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
12020
11980
|
});
|
|
12021
11981
|
};
|
|
12022
11982
|
function FontLanguage(param) {
|
|
@@ -12027,7 +11987,7 @@ function FontLanguage(param) {
|
|
|
12027
11987
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
12028
11988
|
return props;
|
|
12029
11989
|
}, [JSON.stringify(props)]);
|
|
12030
|
-
return /* @__PURE__ */
|
|
11990
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
12031
11991
|
language,
|
|
12032
11992
|
children
|
|
12033
11993
|
}));
|
|
@@ -12035,7 +11995,7 @@ function FontLanguage(param) {
|
|
|
12035
11995
|
var ThemeProvider = function(props) {
|
|
12036
11996
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
12037
11997
|
var forceClassName = addThemeClassName === void 0;
|
|
12038
|
-
return /* @__PURE__ */
|
|
11998
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
12039
11999
|
className: props.className,
|
|
12040
12000
|
name: props.defaultTheme,
|
|
12041
12001
|
forceClassName,
|
|
@@ -12059,11 +12019,11 @@ function TamaguiProvider$2(param) {
|
|
|
12059
12019
|
}, []);
|
|
12060
12020
|
var memoizedInsets = React.useMemo(function() {
|
|
12061
12021
|
return insets;
|
|
12062
|
-
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]), contents = /* @__PURE__ */
|
|
12063
|
-
children: /* @__PURE__ */
|
|
12022
|
+
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]), contents = /* @__PURE__ */ jsxRuntime.jsx(UnmountedClassName, {
|
|
12023
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, {
|
|
12064
12024
|
animationDriver: config == null ? void 0 : config.animations,
|
|
12065
12025
|
insets: memoizedInsets,
|
|
12066
|
-
children: /* @__PURE__ */
|
|
12026
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
12067
12027
|
defaultTheme,
|
|
12068
12028
|
reset,
|
|
12069
12029
|
className,
|
|
@@ -12071,10 +12031,10 @@ function TamaguiProvider$2(param) {
|
|
|
12071
12031
|
})
|
|
12072
12032
|
})
|
|
12073
12033
|
});
|
|
12074
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12034
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12075
12035
|
enabled: true,
|
|
12076
12036
|
children: contents
|
|
12077
|
-
})), /* @__PURE__ */
|
|
12037
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
12078
12038
|
children: [contents, false]
|
|
12079
12039
|
});
|
|
12080
12040
|
}
|
|
@@ -12196,8 +12156,8 @@ function spacedChildren(props) {
|
|
|
12196
12156
|
spaceFlex,
|
|
12197
12157
|
separator,
|
|
12198
12158
|
key: child.key
|
|
12199
|
-
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */
|
|
12200
|
-
children: isZStack ? /* @__PURE__ */
|
|
12159
|
+
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
12160
|
+
children: isZStack ? /* @__PURE__ */ jsxRuntime.jsx(AbsoluteFill, {
|
|
12201
12161
|
children: child
|
|
12202
12162
|
}) : child
|
|
12203
12163
|
}, `${index2}0t`)), !(isUnspaced(child) && index2 === 0) && !isZStack) {
|
|
@@ -12207,7 +12167,7 @@ function spacedChildren(props) {
|
|
|
12207
12167
|
direction,
|
|
12208
12168
|
space,
|
|
12209
12169
|
spaceFlex
|
|
12210
|
-
})), final.push(/* @__PURE__ */
|
|
12170
|
+
})), final.push(/* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
12211
12171
|
children: separator
|
|
12212
12172
|
}, `${index2}03t`)), hasSpace && final.push(createSpacer({
|
|
12213
12173
|
key: `_${index2}01t`,
|
|
@@ -12240,7 +12200,7 @@ function createSpacer(param) {
|
|
|
12240
12200
|
space,
|
|
12241
12201
|
spaceFlex
|
|
12242
12202
|
} = param;
|
|
12243
|
-
return /* @__PURE__ */
|
|
12203
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Spacer, __spreadValues({
|
|
12244
12204
|
// @ts-ignore
|
|
12245
12205
|
size: space,
|
|
12246
12206
|
// @ts-ignore
|
|
@@ -12278,7 +12238,7 @@ function useConstant(fn) {
|
|
|
12278
12238
|
}
|
|
12279
12239
|
var PresenceContext = /* @__PURE__ */ React__namespace.createContext(null), ResetPresence = function(props) {
|
|
12280
12240
|
var parent = React__namespace.useContext(PresenceContext);
|
|
12281
|
-
return /* @__PURE__ */
|
|
12241
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12282
12242
|
value: props.disable ? parent : null,
|
|
12283
12243
|
children: props.children
|
|
12284
12244
|
});
|
|
@@ -12367,7 +12327,7 @@ var PresenceChild = /* @__PURE__ */ React__namespace.memo(function(param) {
|
|
|
12367
12327
|
});
|
|
12368
12328
|
}, [isPresent2]), React__namespace.useEffect(function() {
|
|
12369
12329
|
!isPresent2 && !presenceChildren.size && (onExitComplete == null ? void 0 : onExitComplete());
|
|
12370
|
-
}, [isPresent2]), /* @__PURE__ */
|
|
12330
|
+
}, [isPresent2]), /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12371
12331
|
value: context2,
|
|
12372
12332
|
children
|
|
12373
12333
|
});
|
|
@@ -12405,14 +12365,14 @@ var AnimatePresence = function(param) {
|
|
|
12405
12365
|
} = param, _useContext_forceRender, forceRender = (_useContext_forceRender = React.useContext(LayoutGroupContext).forceRender) !== null && _useContext_forceRender !== void 0 ? _useContext_forceRender : useForceUpdate(), filteredChildren = onlyElements(children), presentChildren = React.useRef(filteredChildren), allChildren = React.useRef(/* @__PURE__ */ new Map()).current, exiting = React.useRef(/* @__PURE__ */ new Set()).current;
|
|
12406
12366
|
updateChildLookup(filteredChildren, allChildren);
|
|
12407
12367
|
var isInitialRender = React.useRef(true);
|
|
12408
|
-
if (passThrough) return /* @__PURE__ */
|
|
12368
|
+
if (passThrough) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12409
12369
|
children
|
|
12410
12370
|
});
|
|
12411
12371
|
if (useIsomorphicLayoutEffect(function() {
|
|
12412
12372
|
isInitialRender.current = false;
|
|
12413
|
-
}, []), isInitialRender.current) return /* @__PURE__ */
|
|
12373
|
+
}, []), isInitialRender.current) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12414
12374
|
children: filteredChildren.map(function(child) {
|
|
12415
|
-
return /* @__PURE__ */
|
|
12375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12416
12376
|
isPresent: true,
|
|
12417
12377
|
enterExitVariant,
|
|
12418
12378
|
exitVariant,
|
|
@@ -12438,7 +12398,7 @@ var AnimatePresence = function(param) {
|
|
|
12438
12398
|
return presentChild.key === key2;
|
|
12439
12399
|
});
|
|
12440
12400
|
presentChildren.current.splice(removeIndex, 1), exiting.size || (presentChildren.current = filteredChildren, forceRender(), onExitComplete == null ? void 0 : onExitComplete());
|
|
12441
|
-
}, exitingComponent = /* @__PURE__ */
|
|
12401
|
+
}, exitingComponent = /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12442
12402
|
isPresent: false,
|
|
12443
12403
|
onExitComplete: onExit,
|
|
12444
12404
|
presenceAffectsLayout,
|
|
@@ -12453,7 +12413,7 @@ var AnimatePresence = function(param) {
|
|
|
12453
12413
|
}
|
|
12454
12414
|
}), childrenToRender = childrenToRender.map(function(child) {
|
|
12455
12415
|
var key2 = child.key;
|
|
12456
|
-
return exiting.has(key2) ? child : /* @__PURE__ */
|
|
12416
|
+
return exiting.has(key2) ? child : /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12457
12417
|
isPresent: true,
|
|
12458
12418
|
exitVariant,
|
|
12459
12419
|
enterVariant,
|
|
@@ -12462,7 +12422,7 @@ var AnimatePresence = function(param) {
|
|
|
12462
12422
|
custom,
|
|
12463
12423
|
children: child
|
|
12464
12424
|
}, getChildKey(child));
|
|
12465
|
-
}), presentChildren.current = childrenToRender, /* @__PURE__ */
|
|
12425
|
+
}), presentChildren.current = childrenToRender, /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12466
12426
|
children: exiting.size ? childrenToRender : (
|
|
12467
12427
|
// biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
|
|
12468
12428
|
childrenToRender.map(function(child) {
|
|
@@ -12527,7 +12487,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12527
12487
|
defaultProp: defaultOpen,
|
|
12528
12488
|
onChange: onOpenChange
|
|
12529
12489
|
});
|
|
12530
|
-
return /* @__PURE__ */
|
|
12490
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleProvider, {
|
|
12531
12491
|
scope: __scopeCollapsible,
|
|
12532
12492
|
disabled,
|
|
12533
12493
|
contentId: React__namespace.useId(),
|
|
@@ -12537,7 +12497,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12537
12497
|
return !prevOpen;
|
|
12538
12498
|
});
|
|
12539
12499
|
}, [setOpen]),
|
|
12540
|
-
children: /* @__PURE__ */
|
|
12500
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack$1, __spreadProps(__spreadValues({
|
|
12541
12501
|
"data-state": getState$4(open2),
|
|
12542
12502
|
"data-disabled": disabled ? "" : void 0
|
|
12543
12503
|
}, collapsibleProps), {
|
|
@@ -12557,7 +12517,7 @@ var TRIGGER_NAME$4 = "CollapsibleTrigger", CollapsibleTriggerFrame = styled(Stac
|
|
|
12557
12517
|
"__scopeCollapsible",
|
|
12558
12518
|
"children"
|
|
12559
12519
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12560
|
-
return /* @__PURE__ */
|
|
12520
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleTriggerFrame, __spreadProps(__spreadValues({
|
|
12561
12521
|
"aria-controls": context2.contentId,
|
|
12562
12522
|
"aria-expanded": context2.open || false,
|
|
12563
12523
|
"data-state": getState$4(context2.open),
|
|
@@ -12585,11 +12545,11 @@ var CONTENT_NAME$3 = "CollapsibleContent", CollapsibleContentFrame = styled(Stac
|
|
|
12585
12545
|
// @ts-expect-error
|
|
12586
12546
|
"__scopeCollapsible"
|
|
12587
12547
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12588
|
-
return /* @__PURE__ */
|
|
12589
|
-
children: forceMount || context2.open ? /* @__PURE__ */
|
|
12548
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, __spreadProps(__spreadValues({}, contentProps), {
|
|
12549
|
+
children: forceMount || context2.open ? /* @__PURE__ */ jsxRuntime.jsx(CollapsibleContentFrame, __spreadProps(__spreadValues({
|
|
12590
12550
|
ref: forwardedRef
|
|
12591
12551
|
}, contentProps), {
|
|
12592
|
-
children: /* @__PURE__ */
|
|
12552
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
12593
12553
|
children
|
|
12594
12554
|
})
|
|
12595
12555
|
})) : null
|
|
@@ -13004,7 +12964,7 @@ var usePressability = require("react-native/Libraries/Pressability/usePressabili
|
|
|
13004
12964
|
var TamaguiProvider$1 = function(props) {
|
|
13005
12965
|
return useIsomorphicLayoutEffect(function() {
|
|
13006
12966
|
enable();
|
|
13007
|
-
}, []), /* @__PURE__ */
|
|
12967
|
+
}, []), /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$2, __spreadValues({}, props));
|
|
13008
12968
|
}, createTamagui$1 = function(conf2) {
|
|
13009
12969
|
return conf2.media && (conf2.media = createMedia(conf2.media)), createTamagui$2(conf2);
|
|
13010
12970
|
}, baseViews = getBaseViews();
|
|
@@ -13057,7 +13017,7 @@ function createCollection(name) {
|
|
|
13057
13017
|
scope,
|
|
13058
13018
|
children
|
|
13059
13019
|
} = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
|
|
13060
|
-
return /* @__PURE__ */
|
|
13020
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, {
|
|
13061
13021
|
scope,
|
|
13062
13022
|
itemMap,
|
|
13063
13023
|
collectionRef: ref,
|
|
@@ -13070,7 +13030,7 @@ function createCollection(name) {
|
|
|
13070
13030
|
scope,
|
|
13071
13031
|
children
|
|
13072
13032
|
} = props, context2 = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context2.collectionRef);
|
|
13073
|
-
return /* @__PURE__ */
|
|
13033
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
13074
13034
|
ref: composedRefs,
|
|
13075
13035
|
children
|
|
13076
13036
|
});
|
|
@@ -13090,7 +13050,7 @@ function createCollection(name) {
|
|
|
13090
13050
|
}, itemData)), function() {
|
|
13091
13051
|
return void context2.itemMap.delete(ref);
|
|
13092
13052
|
};
|
|
13093
|
-
}), /* @__PURE__ */
|
|
13053
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
13094
13054
|
[ITEM_DATA_ATTR]: "",
|
|
13095
13055
|
ref: composedRefs,
|
|
13096
13056
|
children
|
|
@@ -13570,7 +13530,7 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
13570
13530
|
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size && (props.size = size), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), React.Children.toArray(children).map(function(child, index2) {
|
|
13571
13531
|
return typeof child == "string" ? (
|
|
13572
13532
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
13573
|
-
/* @__PURE__ */
|
|
13533
|
+
/* @__PURE__ */ jsxRuntime.jsx(TextComponent, __spreadProps(__spreadValues(__spreadValues({}, props), textProps), {
|
|
13574
13534
|
children: child
|
|
13575
13535
|
}), index2)
|
|
13576
13536
|
) : child;
|
|
@@ -13587,11 +13547,11 @@ var ACCORDION_NAME = "Accordion", ACCORDION_KEYS = ["Home", "End", "ArrowDown",
|
|
|
13587
13547
|
} = _a, accordionProps = __objRest(_a, [
|
|
13588
13548
|
"type"
|
|
13589
13549
|
]), singleProps = accordionProps, multipleProps = accordionProps;
|
|
13590
|
-
return /* @__PURE__ */
|
|
13550
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, {
|
|
13591
13551
|
scope: props.__scopeAccordion || ACCORDION_CONTEXT,
|
|
13592
|
-
children: type === "multiple" ? /* @__PURE__ */
|
|
13552
|
+
children: type === "multiple" ? /* @__PURE__ */ jsxRuntime.jsx(AccordionImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
13593
13553
|
ref: forwardedRef
|
|
13594
|
-
})) : /* @__PURE__ */
|
|
13554
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AccordionImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
13595
13555
|
ref: forwardedRef
|
|
13596
13556
|
}))
|
|
13597
13557
|
});
|
|
@@ -13628,17 +13588,17 @@ var {
|
|
|
13628
13588
|
defaultProp: defaultValue2 || "",
|
|
13629
13589
|
onChange: onValueChange
|
|
13630
13590
|
});
|
|
13631
|
-
return /* @__PURE__ */
|
|
13591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13632
13592
|
scope: props.__scopeAccordion,
|
|
13633
13593
|
value: value ? [value] : [],
|
|
13634
13594
|
onItemOpen: setValue,
|
|
13635
13595
|
onItemClose: React__namespace.useCallback(function() {
|
|
13636
13596
|
return collapsible && setValue("");
|
|
13637
13597
|
}, [setValue, collapsible]),
|
|
13638
|
-
children: /* @__PURE__ */
|
|
13598
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13639
13599
|
scope: props.__scopeAccordion,
|
|
13640
13600
|
collapsible,
|
|
13641
|
-
children: /* @__PURE__ */
|
|
13601
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionSingleProps), {
|
|
13642
13602
|
ref: forwardedRef
|
|
13643
13603
|
}))
|
|
13644
13604
|
})
|
|
@@ -13670,15 +13630,15 @@ var {
|
|
|
13670
13630
|
});
|
|
13671
13631
|
});
|
|
13672
13632
|
}, [setValue]);
|
|
13673
|
-
return /* @__PURE__ */
|
|
13633
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13674
13634
|
scope: props.__scopeAccordion,
|
|
13675
13635
|
value: value || [],
|
|
13676
13636
|
onItemOpen: handleItemOpen,
|
|
13677
13637
|
onItemClose: handleItemClose,
|
|
13678
|
-
children: /* @__PURE__ */
|
|
13638
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13679
13639
|
scope: props.__scopeAccordion,
|
|
13680
13640
|
collapsible: true,
|
|
13681
|
-
children: /* @__PURE__ */
|
|
13641
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionMultipleProps), {
|
|
13682
13642
|
ref: forwardedRef
|
|
13683
13643
|
}))
|
|
13684
13644
|
})
|
|
@@ -13739,14 +13699,14 @@ var {
|
|
|
13739
13699
|
}
|
|
13740
13700
|
}
|
|
13741
13701
|
});
|
|
13742
|
-
return /* @__PURE__ */
|
|
13702
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionImplProvider, {
|
|
13743
13703
|
scope: __scopeAccordion,
|
|
13744
13704
|
disabled,
|
|
13745
13705
|
direction: dir,
|
|
13746
13706
|
orientation,
|
|
13747
|
-
children: /* @__PURE__ */
|
|
13707
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, {
|
|
13748
13708
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13749
|
-
children: /* @__PURE__ */
|
|
13709
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadValues(__spreadValues({
|
|
13750
13710
|
"data-orientation": orientation,
|
|
13751
13711
|
ref: composedRef
|
|
13752
13712
|
}, accordionProps), isWeb))
|
|
@@ -13763,12 +13723,12 @@ var {
|
|
|
13763
13723
|
"__scopeAccordion",
|
|
13764
13724
|
"value"
|
|
13765
13725
|
]), accordionContext = useAccordionContext(__scopeAccordion), valueContext = useAccordionValueContext(__scopeAccordion), triggerId = React__namespace.useId(), open2 = value && valueContext.value.includes(value) || false, disabled = accordionContext.disabled || props.disabled;
|
|
13766
|
-
return /* @__PURE__ */
|
|
13726
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionItemProvider, {
|
|
13767
13727
|
scope: __scopeAccordion,
|
|
13768
13728
|
open: open2,
|
|
13769
13729
|
disabled,
|
|
13770
13730
|
triggerId,
|
|
13771
|
-
children: /* @__PURE__ */
|
|
13731
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collapsible, __spreadProps(__spreadValues({
|
|
13772
13732
|
"data-orientation": accordionContext.orientation,
|
|
13773
13733
|
"data-state": open2 ? "open" : "closed",
|
|
13774
13734
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT
|
|
@@ -13789,7 +13749,7 @@ var HEADER_NAME = "AccordionHeader", AccordionHeader = /* @__PURE__ */ React__na
|
|
|
13789
13749
|
} = _a, headerProps = __objRest(_a, [
|
|
13790
13750
|
"__scopeAccordion"
|
|
13791
13751
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
13792
|
-
return /* @__PURE__ */
|
|
13752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(H1, __spreadProps(__spreadValues({
|
|
13793
13753
|
"data-orientation": accordionContext.orientation,
|
|
13794
13754
|
"data-state": getState$3(itemContext.open),
|
|
13795
13755
|
"data-disabled": itemContext.disabled ? "" : void 0
|
|
@@ -13828,9 +13788,9 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13828
13788
|
} = _a, triggerProps = __objRest(_a, [
|
|
13829
13789
|
"__scopeAccordion"
|
|
13830
13790
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
|
|
13831
|
-
return /* @__PURE__ */
|
|
13791
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.ItemSlot, {
|
|
13832
13792
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13833
|
-
children: /* @__PURE__ */
|
|
13793
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionTriggerFrame, __spreadProps(__spreadValues({
|
|
13834
13794
|
// @ts-ignore
|
|
13835
13795
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13836
13796
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -13858,7 +13818,7 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13858
13818
|
} = _a, contentProps = __objRest(_a, [
|
|
13859
13819
|
"__scopeAccordion"
|
|
13860
13820
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
13861
|
-
return /* @__PURE__ */
|
|
13821
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionContentFrame, __spreadProps(__spreadValues({
|
|
13862
13822
|
role: "region",
|
|
13863
13823
|
"aria-labelledby": itemContext.triggerId,
|
|
13864
13824
|
"data-orientation": accordionContext.orientation,
|
|
@@ -13873,12 +13833,12 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13873
13833
|
} = _a, rest = __objRest(_a, [
|
|
13874
13834
|
"children"
|
|
13875
13835
|
]), [height, setHeight] = React__namespace.useState(0);
|
|
13876
|
-
return /* @__PURE__ */
|
|
13836
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
13877
13837
|
ref,
|
|
13878
13838
|
height: itemContext.open ? height : 0,
|
|
13879
13839
|
position: "relative"
|
|
13880
13840
|
}, rest), {
|
|
13881
|
-
children: /* @__PURE__ */
|
|
13841
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
13882
13842
|
position: "absolute",
|
|
13883
13843
|
width: "100%",
|
|
13884
13844
|
onLayout: function(param) {
|
|
@@ -13949,11 +13909,11 @@ var StackZIndexContext = function(param) {
|
|
|
13949
13909
|
var {
|
|
13950
13910
|
children,
|
|
13951
13911
|
zIndex
|
|
13952
|
-
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */
|
|
13912
|
+
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexStackContext.Provider, {
|
|
13953
13913
|
value: existing + 1,
|
|
13954
13914
|
children
|
|
13955
13915
|
});
|
|
13956
|
-
return typeof zIndex < "u" && (content = /* @__PURE__ */
|
|
13916
|
+
return typeof zIndex < "u" && (content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexHardcodedContext.Provider, {
|
|
13957
13917
|
value: zIndex,
|
|
13958
13918
|
children: content
|
|
13959
13919
|
})), content;
|
|
@@ -14048,11 +14008,11 @@ var registerHost = function(state, hostName) {
|
|
|
14048
14008
|
};
|
|
14049
14009
|
return next;
|
|
14050
14010
|
}, [dispatch]);
|
|
14051
|
-
return /* @__PURE__ */
|
|
14011
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalDispatchContext.Provider, {
|
|
14052
14012
|
value: transitionDispatch,
|
|
14053
|
-
children: /* @__PURE__ */
|
|
14013
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(PortalStateContext.Provider, {
|
|
14054
14014
|
value: state,
|
|
14055
|
-
children: [children, shouldAddRootHost && /* @__PURE__ */
|
|
14015
|
+
children: [children, shouldAddRootHost && /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
14056
14016
|
name: rootHostName
|
|
14057
14017
|
})]
|
|
14058
14018
|
})
|
|
@@ -14060,11 +14020,11 @@ var registerHost = function(state, hostName) {
|
|
|
14060
14020
|
}, PortalProvider = /* @__PURE__ */ React.memo(PortalProviderComponent);
|
|
14061
14021
|
PortalProvider.displayName = "PortalProvider";
|
|
14062
14022
|
var defaultRenderer = function(children) {
|
|
14063
|
-
return /* @__PURE__ */
|
|
14023
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
14064
14024
|
children
|
|
14065
14025
|
});
|
|
14066
14026
|
}, PortalHost = /* @__PURE__ */ React.memo(function(props) {
|
|
14067
|
-
return /* @__PURE__ */
|
|
14027
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHostNonNative, __spreadValues({}, props));
|
|
14068
14028
|
});
|
|
14069
14029
|
function PortalHostNonNative(props) {
|
|
14070
14030
|
var {
|
|
@@ -14152,7 +14112,7 @@ var createPortal = (function() {
|
|
|
14152
14112
|
var rootTag = React__namespace.useContext(RootTagContext), zIndex = useStackedZIndex(getStackedZIndexProps(propsIn)), {
|
|
14153
14113
|
children,
|
|
14154
14114
|
passThrough
|
|
14155
|
-
} = propsIn, contents = /* @__PURE__ */
|
|
14115
|
+
} = propsIn, contents = /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
14156
14116
|
pointerEvents: "box-none",
|
|
14157
14117
|
position: "absolute",
|
|
14158
14118
|
inset: 0,
|
|
@@ -14161,7 +14121,7 @@ var createPortal = (function() {
|
|
|
14161
14121
|
passThrough,
|
|
14162
14122
|
children
|
|
14163
14123
|
});
|
|
14164
|
-
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */
|
|
14124
|
+
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14165
14125
|
passThrough,
|
|
14166
14126
|
hostName: "root",
|
|
14167
14127
|
children: contents
|
|
@@ -14184,9 +14144,9 @@ var AdaptContext = createStyledContext({
|
|
|
14184
14144
|
} = _a, context2 = __objRest(_a, [
|
|
14185
14145
|
"children"
|
|
14186
14146
|
]), scope = context2.scopeName || "", lastScope = React.useContext(LastAdaptContextScope);
|
|
14187
|
-
return /* @__PURE__ */
|
|
14147
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14188
14148
|
value: lastScope || context2.lastScope || "",
|
|
14189
|
-
children: /* @__PURE__ */
|
|
14149
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({
|
|
14190
14150
|
scope,
|
|
14191
14151
|
lastScope: lastScope || context2.lastScope
|
|
14192
14152
|
}, context2), {
|
|
@@ -14206,7 +14166,7 @@ var AdaptContext = createStyledContext({
|
|
|
14206
14166
|
if (Contents) return Contents;
|
|
14207
14167
|
if (AdaptPortals.has(portalName)) return AdaptPortals.get(portalName);
|
|
14208
14168
|
var element = function() {
|
|
14209
|
-
return /* @__PURE__ */
|
|
14169
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
14210
14170
|
name: portalName,
|
|
14211
14171
|
forwardProps: typeof portal == "boolean" ? void 0 : portal == null ? void 0 : portal.forwardProps
|
|
14212
14172
|
}, id2);
|
|
@@ -14219,9 +14179,9 @@ var AdaptContext = createStyledContext({
|
|
|
14219
14179
|
};
|
|
14220
14180
|
}, [portalName]);
|
|
14221
14181
|
var [when, setWhen] = React.useState(null), [platform2, setPlatform] = React.useState(null), [children2, setChildren] = React.useState(null);
|
|
14222
|
-
return /* @__PURE__ */
|
|
14182
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14223
14183
|
value: scope,
|
|
14224
|
-
children: /* @__PURE__ */
|
|
14184
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, {
|
|
14225
14185
|
Contents: FinalContents,
|
|
14226
14186
|
when,
|
|
14227
14187
|
platform: platform2,
|
|
@@ -14264,11 +14224,11 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14264
14224
|
var output;
|
|
14265
14225
|
if (typeof children == "function") {
|
|
14266
14226
|
var Component = context2 == null ? void 0 : context2.Contents;
|
|
14267
|
-
output = children(Component ? /* @__PURE__ */
|
|
14227
|
+
output = children(Component ? /* @__PURE__ */ jsxRuntime.jsx(Component, {}) : null);
|
|
14268
14228
|
} else output = children;
|
|
14269
14229
|
return useIsomorphicLayoutEffect(function() {
|
|
14270
14230
|
typeof children == "function" && output !== void 0 && (context2 == null ? void 0 : context2.setChildren(output));
|
|
14271
|
-
}, [output]), /* @__PURE__ */
|
|
14231
|
+
}, [output]), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14272
14232
|
children: enabled ? output : null
|
|
14273
14233
|
});
|
|
14274
14234
|
}, {
|
|
@@ -14277,7 +14237,7 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14277
14237
|
var isActive = useAdaptIsActive(props.scope), {
|
|
14278
14238
|
portalName
|
|
14279
14239
|
} = useAdaptContext(props.scope);
|
|
14280
|
-
return /* @__PURE__ */
|
|
14240
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14281
14241
|
passThrough: !isActive,
|
|
14282
14242
|
hostName: portalName,
|
|
14283
14243
|
children: props.children
|
|
@@ -14305,7 +14265,7 @@ function createContext(rootComponentName, defaultContext) {
|
|
|
14305
14265
|
]), value = React__namespace.useMemo(function() {
|
|
14306
14266
|
return context2;
|
|
14307
14267
|
}, Object.values(context2));
|
|
14308
|
-
return /* @__PURE__ */
|
|
14268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14309
14269
|
value,
|
|
14310
14270
|
children
|
|
14311
14271
|
});
|
|
@@ -14333,7 +14293,7 @@ function createContextScope(scopeName) {
|
|
|
14333
14293
|
]), Context = (scope == null || (_scope_scopeName = scope[scopeName]) === null || _scope_scopeName === void 0 ? void 0 : _scope_scopeName[index2]) || BaseContext, value = React__namespace.useMemo(function() {
|
|
14334
14294
|
return context2;
|
|
14335
14295
|
}, Object.values(context2));
|
|
14336
|
-
return /* @__PURE__ */
|
|
14296
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14337
14297
|
value,
|
|
14338
14298
|
children
|
|
14339
14299
|
});
|
|
@@ -14416,7 +14376,7 @@ function FocusScopeController(props) {
|
|
|
14416
14376
|
focusOnIdle
|
|
14417
14377
|
};
|
|
14418
14378
|
}, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
|
|
14419
|
-
return /* @__PURE__ */
|
|
14379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusScopeControllerProvider, __spreadProps(__spreadValues({
|
|
14420
14380
|
scope: __scopeFocusScope
|
|
14421
14381
|
}, contextValue), {
|
|
14422
14382
|
children
|
|
@@ -14451,7 +14411,7 @@ var SheetController = function(param) {
|
|
|
14451
14411
|
onOpenChange
|
|
14452
14412
|
};
|
|
14453
14413
|
}, [id2, onOpenChange, open2, hidden, disableDrag]);
|
|
14454
|
-
return /* @__PURE__ */
|
|
14414
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetControllerContext.Provider, {
|
|
14455
14415
|
value: memoValue,
|
|
14456
14416
|
children
|
|
14457
14417
|
});
|
|
@@ -14474,9 +14434,9 @@ var DialogContext = createStyledContext(
|
|
|
14474
14434
|
} = _a, triggerProps = __objRest(_a, [
|
|
14475
14435
|
"scope"
|
|
14476
14436
|
]), isInsideButton = React__namespace.useContext(ButtonNestingContext), context2 = useDialogContext(scope), composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
14477
|
-
return /* @__PURE__ */
|
|
14437
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
14478
14438
|
value: true,
|
|
14479
|
-
children: /* @__PURE__ */
|
|
14439
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogTriggerFrame, __spreadProps(__spreadValues({
|
|
14480
14440
|
tag: isInsideButton ? "span" : "button",
|
|
14481
14441
|
"aria-haspopup": "dialog",
|
|
14482
14442
|
"aria-expanded": context2.open,
|
|
@@ -14521,18 +14481,18 @@ var DialogContext = createStyledContext(
|
|
|
14521
14481
|
var {
|
|
14522
14482
|
context: context2,
|
|
14523
14483
|
children
|
|
14524
|
-
} = param, themeName = useThemeName(), isAdapted = useAdaptIsActive(context2.adaptScope), adaptContext = useAdaptContext(context2.adaptScope), content = /* @__PURE__ */
|
|
14484
|
+
} = param, themeName = useThemeName(), isAdapted = useAdaptIsActive(context2.adaptScope), adaptContext = useAdaptContext(context2.adaptScope), content = /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
14525
14485
|
name: themeName,
|
|
14526
14486
|
children
|
|
14527
14487
|
});
|
|
14528
|
-
return needsRepropagation$1 && (content = /* @__PURE__ */
|
|
14529
|
-
children: /* @__PURE__ */
|
|
14488
|
+
return needsRepropagation$1 && (content = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
14489
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({}, context2), {
|
|
14530
14490
|
children: content
|
|
14531
14491
|
}))
|
|
14532
|
-
}))), isAdapted ? /* @__PURE__ */
|
|
14492
|
+
}))), isAdapted ? /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
14533
14493
|
scope: context2.adaptScope,
|
|
14534
14494
|
children: content
|
|
14535
|
-
}) : context2.modal ? /* @__PURE__ */
|
|
14495
|
+
}) : context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14536
14496
|
hostName: context2.modal ? "root" : context2.adaptScope,
|
|
14537
14497
|
children: content
|
|
14538
14498
|
}) : content;
|
|
@@ -14549,9 +14509,9 @@ var DialogContext = createStyledContext(
|
|
|
14549
14509
|
isMountedOrOpen && isFullyHidden && setIsFullyHidden(false);
|
|
14550
14510
|
var handleExitComplete = React__namespace.useCallback(function() {
|
|
14551
14511
|
setIsFullyHidden(true);
|
|
14552
|
-
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */
|
|
14512
|
+
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14553
14513
|
zIndex: resolveViewZIndex(zIndex),
|
|
14554
|
-
children: /* @__PURE__ */
|
|
14514
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
14555
14515
|
passThrough: isAdapted,
|
|
14556
14516
|
onExitComplete: handleExitComplete,
|
|
14557
14517
|
children: isMountedOrOpen || isAdapted ? children : null
|
|
@@ -14560,9 +14520,9 @@ var DialogContext = createStyledContext(
|
|
|
14560
14520
|
// NOTE: we remove the inner frame, but not the portal itself
|
|
14561
14521
|
// saw a bug when we removed and re-added portals that caused stale inner contents of the portal
|
|
14562
14522
|
// seems like a React bug itself but leaving this for now as it fixes
|
|
14563
|
-
isFullyHidden && !isAdapted ? null : /* @__PURE__ */
|
|
14523
|
+
isFullyHidden && !isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
14564
14524
|
disable: !isMountedOrOpen,
|
|
14565
|
-
children: /* @__PURE__ */
|
|
14525
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogPortalFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
14566
14526
|
ref
|
|
14567
14527
|
}, isWeb), {
|
|
14568
14528
|
// passThrough={isAdapted}
|
|
@@ -14573,7 +14533,7 @@ var DialogContext = createStyledContext(
|
|
|
14573
14533
|
}))
|
|
14574
14534
|
})
|
|
14575
14535
|
);
|
|
14576
|
-
return isAdapted ? framedContents : /* @__PURE__ */
|
|
14536
|
+
return isAdapted ? framedContents : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14577
14537
|
context: context2,
|
|
14578
14538
|
children: framedContents
|
|
14579
14539
|
});
|
|
@@ -14611,7 +14571,7 @@ var DialogContext = createStyledContext(
|
|
|
14611
14571
|
} = _b, overlayProps = __objRest(_b, [
|
|
14612
14572
|
"forceMount"
|
|
14613
14573
|
]), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14614
|
-
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */
|
|
14574
|
+
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayFrame, __spreadProps(__spreadValues({
|
|
14615
14575
|
"data-state": getState$2(context2.open),
|
|
14616
14576
|
// TODO: this will be apply for v2
|
|
14617
14577
|
// onPress={() => {
|
|
@@ -14638,7 +14598,9 @@ var DialogContext = createStyledContext(
|
|
|
14638
14598
|
padded: true,
|
|
14639
14599
|
radiused: true,
|
|
14640
14600
|
elevate: true,
|
|
14641
|
-
zIndex: 1e5
|
|
14601
|
+
zIndex: 1e5,
|
|
14602
|
+
// Ensure content receives pointer events (fixes React 19 + display:contents inheritance)
|
|
14603
|
+
pointerEvents: "auto"
|
|
14642
14604
|
}
|
|
14643
14605
|
}
|
|
14644
14606
|
},
|
|
@@ -14655,12 +14617,12 @@ var DialogContext = createStyledContext(
|
|
|
14655
14617
|
forceMount = context2.forceMount
|
|
14656
14618
|
} = _b, contentProps = __objRest(_b, [
|
|
14657
14619
|
"forceMount"
|
|
14658
|
-
]), contents = /* @__PURE__ */
|
|
14659
|
-
children: context2.modal ? /* @__PURE__ */
|
|
14620
|
+
]), contents = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
14621
|
+
children: context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, __spreadProps(__spreadValues({
|
|
14660
14622
|
context: context2
|
|
14661
14623
|
}, contentProps), {
|
|
14662
14624
|
ref: forwardedRef
|
|
14663
|
-
})) : /* @__PURE__ */
|
|
14625
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, __spreadProps(__spreadValues({
|
|
14664
14626
|
context: context2
|
|
14665
14627
|
}, contentProps), {
|
|
14666
14628
|
ref: forwardedRef
|
|
@@ -14675,7 +14637,7 @@ var DialogContext = createStyledContext(
|
|
|
14675
14637
|
"children",
|
|
14676
14638
|
"context"
|
|
14677
14639
|
]), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, context2.contentRef, contentRef);
|
|
14678
|
-
return /* @__PURE__ */
|
|
14640
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
14679
14641
|
context: context2,
|
|
14680
14642
|
ref: composedRefs,
|
|
14681
14643
|
// we make sure focus isn't trapped once `DialogContent` has been closed
|
|
@@ -14702,7 +14664,7 @@ var DialogContext = createStyledContext(
|
|
|
14702
14664
|
}));
|
|
14703
14665
|
}), DialogContentNonModal = /* @__PURE__ */ React__namespace.forwardRef(function(props, forwardedRef) {
|
|
14704
14666
|
var hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
14705
|
-
return /* @__PURE__ */
|
|
14667
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues({}, props), {
|
|
14706
14668
|
ref: forwardedRef,
|
|
14707
14669
|
trapFocus: false,
|
|
14708
14670
|
disableOutsidePointerEvents: false,
|
|
@@ -14752,11 +14714,11 @@ var DialogContext = createStyledContext(
|
|
|
14752
14714
|
// TODO react 19 type workaround
|
|
14753
14715
|
void 0
|
|
14754
14716
|
), composedRefs = useComposedRefs(forwardedRef, contentRef), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14755
|
-
if (isAdapted) return !context2.open ? null : /* @__PURE__ */
|
|
14717
|
+
if (isAdapted) return !context2.open ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14756
14718
|
context: context2,
|
|
14757
14719
|
children: contentProps.children
|
|
14758
14720
|
});
|
|
14759
|
-
var contents = /* @__PURE__ */
|
|
14721
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(DialogContentFrame, __spreadValues({
|
|
14760
14722
|
ref: composedRefs,
|
|
14761
14723
|
id: context2.contentId,
|
|
14762
14724
|
role: "dialog",
|
|
@@ -14774,7 +14736,7 @@ var DialogContext = createStyledContext(
|
|
|
14774
14736
|
} = _a, titleProps = __objRest(_a, [
|
|
14775
14737
|
"scope"
|
|
14776
14738
|
]), context2 = useDialogContext(scope);
|
|
14777
|
-
return /* @__PURE__ */
|
|
14739
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitleFrame, __spreadProps(__spreadValues({
|
|
14778
14740
|
id: context2.titleId
|
|
14779
14741
|
}, titleProps), {
|
|
14780
14742
|
ref: forwardedRef
|
|
@@ -14787,7 +14749,7 @@ var DialogContext = createStyledContext(
|
|
|
14787
14749
|
} = _a, descriptionProps = __objRest(_a, [
|
|
14788
14750
|
"scope"
|
|
14789
14751
|
]), context2 = useDialogContext(scope);
|
|
14790
|
-
return /* @__PURE__ */
|
|
14752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescriptionFrame, __spreadProps(__spreadValues({
|
|
14791
14753
|
id: context2.descriptionId
|
|
14792
14754
|
}, descriptionProps), {
|
|
14793
14755
|
ref: forwardedRef
|
|
@@ -14803,7 +14765,7 @@ var DialogContext = createStyledContext(
|
|
|
14803
14765
|
"scope",
|
|
14804
14766
|
"displayWhenAdapted"
|
|
14805
14767
|
]), context2 = useDialogContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope), isInsideButton = React__namespace.useContext(ButtonNestingContext);
|
|
14806
|
-
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */
|
|
14768
|
+
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogCloseFrame, __spreadProps(__spreadValues({
|
|
14807
14769
|
"aria-label": "Dialog Close",
|
|
14808
14770
|
tag: isInsideButton ? "span" : "button"
|
|
14809
14771
|
}, closeProps), {
|
|
@@ -14855,15 +14817,15 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
14855
14817
|
return {
|
|
14856
14818
|
open: setOpen
|
|
14857
14819
|
};
|
|
14858
|
-
}, [setOpen]), /* @__PURE__ */
|
|
14820
|
+
}, [setOpen]), /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
14859
14821
|
scope: adaptScope,
|
|
14860
14822
|
portal: {
|
|
14861
14823
|
forwardProps: props
|
|
14862
14824
|
},
|
|
14863
|
-
children: /* @__PURE__ */
|
|
14825
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({
|
|
14864
14826
|
scope
|
|
14865
14827
|
}, context2), {
|
|
14866
|
-
children: /* @__PURE__ */
|
|
14828
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogSheetController, {
|
|
14867
14829
|
onOpenChange: setOpen,
|
|
14868
14830
|
scope,
|
|
14869
14831
|
children
|
|
@@ -14883,7 +14845,7 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
14883
14845
|
});
|
|
14884
14846
|
var DialogSheetController = function(props) {
|
|
14885
14847
|
var context2 = useDialogContext(props.scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14886
|
-
return /* @__PURE__ */
|
|
14848
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
14887
14849
|
onOpenChange: function(val) {
|
|
14888
14850
|
if (isAdapted) {
|
|
14889
14851
|
var _props_onOpenChange;
|
|
@@ -14910,7 +14872,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
14910
14872
|
"onPress",
|
|
14911
14873
|
"__onPress"
|
|
14912
14874
|
]);
|
|
14913
|
-
return /* @__PURE__ */
|
|
14875
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NativeAlertDialogTriggerFrame, __spreadProps(__spreadValues({}, rest), {
|
|
14914
14876
|
onPress: composeEventHandlers(onPress, __onPress)
|
|
14915
14877
|
}));
|
|
14916
14878
|
}
|
|
@@ -14919,7 +14881,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
14919
14881
|
} = _b, triggerProps = __objRest(_b, [
|
|
14920
14882
|
"scope"
|
|
14921
14883
|
]);
|
|
14922
|
-
return /* @__PURE__ */
|
|
14884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, __spreadProps(__spreadValues({
|
|
14923
14885
|
scope: getAlertDialogScope(scope)
|
|
14924
14886
|
}, triggerProps), {
|
|
14925
14887
|
ref: forwardedRef
|
|
@@ -14931,7 +14893,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14931
14893
|
} = _a, portalProps = __objRest(_a, [
|
|
14932
14894
|
"scope"
|
|
14933
14895
|
]);
|
|
14934
|
-
return /* @__PURE__ */
|
|
14896
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPortal, __spreadValues({
|
|
14935
14897
|
scope: getAlertDialogScope(scope)
|
|
14936
14898
|
}, portalProps));
|
|
14937
14899
|
}, OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
|
|
@@ -14942,7 +14904,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14942
14904
|
} = _a, overlayProps = __objRest(_a, [
|
|
14943
14905
|
"scope"
|
|
14944
14906
|
]);
|
|
14945
|
-
return /* @__PURE__ */
|
|
14907
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, __spreadProps(__spreadValues({
|
|
14946
14908
|
scope: getAlertDialogScope(scope)
|
|
14947
14909
|
}, overlayProps), {
|
|
14948
14910
|
ref: forwardedRef
|
|
@@ -14958,15 +14920,15 @@ var AlertDialogPortal = function(props) {
|
|
|
14958
14920
|
"scope",
|
|
14959
14921
|
"children"
|
|
14960
14922
|
]), dialogScope = getAlertDialogScope(scope), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), cancelRef = React__namespace.useRef(null), destructiveRef = React__namespace.useRef(null);
|
|
14961
|
-
return /* @__PURE__ */
|
|
14923
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogWarningProvider, {
|
|
14962
14924
|
contentName: CONTENT_NAME$1,
|
|
14963
14925
|
titleName: TITLE_NAME,
|
|
14964
14926
|
docsSlug: "alert-dialog",
|
|
14965
|
-
children: /* @__PURE__ */
|
|
14927
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AlertDialogContextProvider, {
|
|
14966
14928
|
scope,
|
|
14967
14929
|
cancelRef,
|
|
14968
14930
|
destructiveRef,
|
|
14969
|
-
children: /* @__PURE__ */
|
|
14931
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, __spreadProps(__spreadValues({
|
|
14970
14932
|
role: "alertdialog",
|
|
14971
14933
|
"aria-modal": true,
|
|
14972
14934
|
scope: dialogScope
|
|
@@ -14988,7 +14950,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14988
14950
|
* This is because we want the accessibility checks to run only once the content is actually
|
|
14989
14951
|
* open and that behaviour is already encapsulated in `DialogContent`.
|
|
14990
14952
|
*/
|
|
14991
|
-
/* @__PURE__ */
|
|
14953
|
+
/* @__PURE__ */ jsxRuntime.jsx(Slottable, {
|
|
14992
14954
|
children
|
|
14993
14955
|
}),
|
|
14994
14956
|
false
|
|
@@ -15004,7 +14966,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15004
14966
|
} = _a, titleProps = __objRest(_a, [
|
|
15005
14967
|
"scope"
|
|
15006
14968
|
]);
|
|
15007
|
-
return /* @__PURE__ */
|
|
14969
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, __spreadProps(__spreadValues({
|
|
15008
14970
|
scope: getAlertDialogScope(scope)
|
|
15009
14971
|
}, titleProps), {
|
|
15010
14972
|
ref: forwardedRef
|
|
@@ -15017,7 +14979,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15017
14979
|
} = _a, descriptionProps = __objRest(_a, [
|
|
15018
14980
|
"scope"
|
|
15019
14981
|
]);
|
|
15020
|
-
return /* @__PURE__ */
|
|
14982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, __spreadProps(__spreadValues({
|
|
15021
14983
|
scope: getAlertDialogScope(scope)
|
|
15022
14984
|
}, descriptionProps), {
|
|
15023
14985
|
ref: forwardedRef
|
|
@@ -15030,7 +14992,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15030
14992
|
} = _a, actionProps = __objRest(_a, [
|
|
15031
14993
|
"scope"
|
|
15032
14994
|
]);
|
|
15033
|
-
return /* @__PURE__ */
|
|
14995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15034
14996
|
scope: getAlertDialogScope(scope)
|
|
15035
14997
|
}, actionProps), {
|
|
15036
14998
|
ref: forwardedRef
|
|
@@ -15045,7 +15007,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15045
15007
|
]), {
|
|
15046
15008
|
cancelRef
|
|
15047
15009
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, cancelRef);
|
|
15048
|
-
return /* @__PURE__ */
|
|
15010
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15049
15011
|
scope: getAlertDialogScope(scope)
|
|
15050
15012
|
}, cancelProps), {
|
|
15051
15013
|
ref
|
|
@@ -15060,7 +15022,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15060
15022
|
]), {
|
|
15061
15023
|
destructiveRef
|
|
15062
15024
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, destructiveRef);
|
|
15063
|
-
return /* @__PURE__ */
|
|
15025
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
15064
15026
|
scope: getAlertDialogScope(scope)
|
|
15065
15027
|
}, destructiveProps), {
|
|
15066
15028
|
ref
|
|
@@ -15114,7 +15076,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15114
15076
|
__onPress: function() {
|
|
15115
15077
|
setOpen(true);
|
|
15116
15078
|
}
|
|
15117
|
-
}) : /* @__PURE__ */
|
|
15079
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(Dialog, __spreadProps(__spreadValues({
|
|
15118
15080
|
scope: dialogScope
|
|
15119
15081
|
}, alertDialogProps), {
|
|
15120
15082
|
modal: true
|
|
@@ -15251,7 +15213,7 @@ function createImage(options) {
|
|
|
15251
15213
|
onError({
|
|
15252
15214
|
type: "error"
|
|
15253
15215
|
});
|
|
15254
|
-
}), /* @__PURE__ */
|
|
15216
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
15255
15217
|
ref
|
|
15256
15218
|
}, finalProps));
|
|
15257
15219
|
}), comp = Component;
|
|
@@ -15323,10 +15285,10 @@ var AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = createCon
|
|
|
15323
15285
|
setStatus(resolvedSrc ? "idle" : "error");
|
|
15324
15286
|
}, [resolvedSrc]), React__namespace.useEffect(function() {
|
|
15325
15287
|
onLoadingStatusChange(status), context2.onImageLoadingStatusChange(status);
|
|
15326
|
-
}, [status]), resolvedSrc ? /* @__PURE__ */
|
|
15288
|
+
}, [status]), resolvedSrc ? /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
15327
15289
|
fullscreen: true,
|
|
15328
15290
|
zIndex: 1,
|
|
15329
|
-
children: /* @__PURE__ */
|
|
15291
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Image, __spreadProps(__spreadValues(__spreadValues({
|
|
15330
15292
|
fullscreen: true,
|
|
15331
15293
|
objectFit: "cover"
|
|
15332
15294
|
}, typeof shapeSize == "number" && !Number.isNaN(shapeSize) && {
|
|
@@ -15372,7 +15334,7 @@ var FALLBACK_NAME = "AvatarFallback", AvatarFallbackFrame = styled(YStack, {
|
|
|
15372
15334
|
return clearTimeout(timerId);
|
|
15373
15335
|
};
|
|
15374
15336
|
}
|
|
15375
|
-
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */
|
|
15337
|
+
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsxRuntime.jsx(AvatarFallbackFrame, __spreadProps(__spreadValues({}, fallbackProps), {
|
|
15376
15338
|
ref: forwardedRef
|
|
15377
15339
|
})) : null;
|
|
15378
15340
|
});
|
|
@@ -15389,12 +15351,12 @@ var AvatarFrame = styled(Square, {
|
|
|
15389
15351
|
"__scopeAvatar",
|
|
15390
15352
|
"size"
|
|
15391
15353
|
]), [imageLoadingStatus, setImageLoadingStatus] = React__namespace.useState("idle");
|
|
15392
|
-
return /* @__PURE__ */
|
|
15354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AvatarProvider, {
|
|
15393
15355
|
size,
|
|
15394
15356
|
scope: __scopeAvatar,
|
|
15395
15357
|
imageLoadingStatus,
|
|
15396
15358
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
15397
|
-
children: /* @__PURE__ */
|
|
15359
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AvatarFrame, __spreadProps(__spreadValues({
|
|
15398
15360
|
size
|
|
15399
15361
|
}, avatarProps), {
|
|
15400
15362
|
ref: forwardedRef
|
|
@@ -15601,9 +15563,9 @@ var context$2 = createStyledContext({
|
|
|
15601
15563
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
15602
15564
|
size: finalSize != null ? finalSize : styledContext == null ? void 0 : styledContext.size
|
|
15603
15565
|
});
|
|
15604
|
-
return /* @__PURE__ */
|
|
15566
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
15605
15567
|
value: true,
|
|
15606
|
-
children: /* @__PURE__ */
|
|
15568
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Frame$1, __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
15607
15569
|
ref
|
|
15608
15570
|
}, props), isNested && {
|
|
15609
15571
|
tag: "span"
|
|
@@ -15838,10 +15800,10 @@ var NAME$2 = "Label", [LabelProvider, useLabelContextImpl] = createContext(NAME$
|
|
|
15838
15800
|
"htmlFor",
|
|
15839
15801
|
"id"
|
|
15840
15802
|
]), controlRef = React__namespace.useRef(null), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), backupId = React__namespace.useId(), id2 = idProp != null ? idProp : backupId;
|
|
15841
|
-
return /* @__PURE__ */
|
|
15803
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LabelProvider, {
|
|
15842
15804
|
id: id2,
|
|
15843
15805
|
controlRef,
|
|
15844
|
-
children: /* @__PURE__ */
|
|
15806
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LabelFrame, __spreadProps(__spreadValues({
|
|
15845
15807
|
id: id2,
|
|
15846
15808
|
// @ts-ignore
|
|
15847
15809
|
htmlFor
|
|
@@ -15985,7 +15947,7 @@ function createCheckbox(createProps) {
|
|
|
15985
15947
|
});
|
|
15986
15948
|
}, [props.id, props.disabled]);
|
|
15987
15949
|
var renderNative = shouldRenderNativePlatform(native);
|
|
15988
|
-
if (renderNative === "web") return /* @__PURE__ */
|
|
15950
|
+
if (renderNative === "web") return /* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
15989
15951
|
type: "checkbox",
|
|
15990
15952
|
defaultChecked: isIndeterminate(checked) ? false : checked,
|
|
15991
15953
|
tabIndex: -1,
|
|
@@ -16002,12 +15964,12 @@ function createCheckbox(createProps) {
|
|
|
16002
15964
|
disabled: checkboxProps.disabled
|
|
16003
15965
|
};
|
|
16004
15966
|
}, [checked, checkboxProps.disabled]), _propsActive_size1, _ref1, _ref2;
|
|
16005
|
-
return /* @__PURE__ */
|
|
15967
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxContext.Provider, {
|
|
16006
15968
|
value: memoizedContext,
|
|
16007
|
-
children: /* @__PURE__ */
|
|
15969
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(CheckboxStyledContext.Provider, {
|
|
16008
15970
|
size: (_ref1 = (_propsActive_size1 = propsActive.size) !== null && _propsActive_size1 !== void 0 ? _propsActive_size1 : styledContext == null ? void 0 : styledContext.size) !== null && _ref1 !== void 0 ? _ref1 : "$true",
|
|
16009
15971
|
scaleIcon: (_ref2 = scaleIcon != null ? scaleIcon : styledContext == null ? void 0 : styledContext.scaleIcon) !== null && _ref2 !== void 0 ? _ref2 : 1,
|
|
16010
|
-
children: [/* @__PURE__ */
|
|
15972
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !unstyled && {
|
|
16011
15973
|
width: size,
|
|
16012
15974
|
height: size
|
|
16013
15975
|
}), {
|
|
@@ -16051,7 +16013,7 @@ function createCheckbox(createProps) {
|
|
|
16051
16013
|
});
|
|
16052
16014
|
}
|
|
16053
16015
|
var context2 = React.useContext(CheckboxContext);
|
|
16054
|
-
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */
|
|
16016
|
+
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadProps(__spreadValues({
|
|
16055
16017
|
pointerEvents: "none"
|
|
16056
16018
|
}, indicatorProps), {
|
|
16057
16019
|
ref: forwardedRef,
|
|
@@ -16081,7 +16043,7 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
16081
16043
|
"children",
|
|
16082
16044
|
"onPress"
|
|
16083
16045
|
]), context2 = useFormContext(TRIGGER_NAME$2, __scopeForm);
|
|
16084
|
-
return /* @__PURE__ */
|
|
16046
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormTriggerFrame, __spreadProps(__spreadValues({
|
|
16085
16047
|
tag: "button"
|
|
16086
16048
|
}, triggerProps), {
|
|
16087
16049
|
ref: forwardedRef,
|
|
@@ -16094,10 +16056,10 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
16094
16056
|
} = _a, props = __objRest(_a, [
|
|
16095
16057
|
"onSubmit"
|
|
16096
16058
|
]);
|
|
16097
|
-
return /* @__PURE__ */
|
|
16059
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormProvider, {
|
|
16098
16060
|
scope: props.__scopeForm,
|
|
16099
16061
|
onSubmit,
|
|
16100
|
-
children: /* @__PURE__ */
|
|
16062
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(FormFrame, __spreadProps(__spreadValues({
|
|
16101
16063
|
ref
|
|
16102
16064
|
}, props), {
|
|
16103
16065
|
onSubmit: function(e2) {
|
|
@@ -16131,10 +16093,10 @@ function useIndexedChildren(children) {
|
|
|
16131
16093
|
var parentMaxIndexPath = React__namespace.useContext(MaxIndexContext), indexPathString = React__namespace.useContext(IndexContext), childrenCount = React__namespace.Children.count(children), maxIndexPath = React__namespace.useMemo(function() {
|
|
16132
16094
|
return parentMaxIndexPath.concat(childrenCount - 1);
|
|
16133
16095
|
}, [childrenCount]);
|
|
16134
|
-
return /* @__PURE__ */
|
|
16096
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MaxIndexContext.Provider, {
|
|
16135
16097
|
value: maxIndexPath,
|
|
16136
16098
|
children: React__namespace.Children.map(children, function(child, index2) {
|
|
16137
|
-
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */
|
|
16099
|
+
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */ jsxRuntime.jsx(IndexContext.Provider, {
|
|
16138
16100
|
value: indexPathString ? `${indexPathString}.${index2.toString()}` : index2.toString(),
|
|
16139
16101
|
children: child
|
|
16140
16102
|
}, child.key) : child;
|
|
@@ -16225,7 +16187,7 @@ function createGroup(verticalDefault) {
|
|
|
16225
16187
|
return prev - 1;
|
|
16226
16188
|
});
|
|
16227
16189
|
}, []), flexValue = flex === true ? 1 : flex === false ? 0 : flex;
|
|
16228
|
-
return /* @__PURE__ */
|
|
16190
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GroupProvider, {
|
|
16229
16191
|
disablePassBorderRadius,
|
|
16230
16192
|
vertical: orientation === "vertical",
|
|
16231
16193
|
// @ts-ignore this just popped up since new version expo 49
|
|
@@ -16234,7 +16196,7 @@ function createGroup(verticalDefault) {
|
|
|
16234
16196
|
onItemMount,
|
|
16235
16197
|
onItemUnmount,
|
|
16236
16198
|
scope: __scopeGroup,
|
|
16237
|
-
children: /* @__PURE__ */
|
|
16199
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GroupFrame, __spreadProps(__spreadValues({
|
|
16238
16200
|
ref,
|
|
16239
16201
|
size,
|
|
16240
16202
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
@@ -16286,7 +16248,7 @@ var GroupItem = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
|
|
|
16286
16248
|
orientation,
|
|
16287
16249
|
showScrollIndicator = false
|
|
16288
16250
|
} = param;
|
|
16289
|
-
return scrollable ? /* @__PURE__ */
|
|
16251
|
+
return scrollable ? /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView, __spreadProps(__spreadValues(__spreadValues({}, orientation === "vertical" && {
|
|
16290
16252
|
showsVerticalScrollIndicator: showScrollIndicator
|
|
16291
16253
|
}), orientation === "horizontal" && {
|
|
16292
16254
|
horizontal: true,
|
|
@@ -16523,17 +16485,17 @@ var NAME$1 = "ListItem", context$1 = createStyledContext({
|
|
|
16523
16485
|
fontSize: propsIn.size,
|
|
16524
16486
|
fontWeight
|
|
16525
16487
|
} : void 0);
|
|
16526
|
-
return /* @__PURE__ */
|
|
16488
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ListItemFrame, __spreadProps(__spreadValues({
|
|
16527
16489
|
ref
|
|
16528
16490
|
}, rest), {
|
|
16529
|
-
children: [themedIcon, title || subTitle ? /* @__PURE__ */
|
|
16491
|
+
children: [themedIcon, title || subTitle ? /* @__PURE__ */ jsxRuntime.jsxs(YStack, {
|
|
16530
16492
|
flex: 1,
|
|
16531
|
-
children: [title ? typeof title == "string" ? /* @__PURE__ */
|
|
16493
|
+
children: [title ? typeof title == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemTitle, {
|
|
16532
16494
|
unstyled,
|
|
16533
16495
|
size,
|
|
16534
16496
|
children: title
|
|
16535
|
-
}) : title : null, subTitle ? /* @__PURE__ */
|
|
16536
|
-
children: typeof subTitle == "string" ? /* @__PURE__ */
|
|
16497
|
+
}) : title : null, subTitle ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16498
|
+
children: typeof subTitle == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemSubtitle, {
|
|
16537
16499
|
unstyled,
|
|
16538
16500
|
size,
|
|
16539
16501
|
children: subTitle
|
|
@@ -16569,7 +16531,7 @@ function Animate(param) {
|
|
|
16569
16531
|
});
|
|
16570
16532
|
}, [lazyMount, present]);
|
|
16571
16533
|
var mounted = present ? lazyMount ? lazyMounted : present : false;
|
|
16572
|
-
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */
|
|
16534
|
+
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, __spreadProps(__spreadValues({
|
|
16573
16535
|
isPresent: true
|
|
16574
16536
|
}, !passThrough && {
|
|
16575
16537
|
initial: props.initial ? void 0 : false,
|
|
@@ -16584,11 +16546,11 @@ function Animate(param) {
|
|
|
16584
16546
|
custom: props.custom
|
|
16585
16547
|
}), {
|
|
16586
16548
|
children
|
|
16587
|
-
})) : /* @__PURE__ */
|
|
16549
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, __spreadProps(__spreadValues({
|
|
16588
16550
|
passThrough
|
|
16589
16551
|
}, props), {
|
|
16590
16552
|
children: mounted || passThrough ? children : null
|
|
16591
|
-
})) : /* @__PURE__ */
|
|
16553
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16592
16554
|
children
|
|
16593
16555
|
});
|
|
16594
16556
|
}
|
|
@@ -17614,10 +17576,10 @@ var PopperContextFast = createStyledContext(
|
|
|
17614
17576
|
"scope",
|
|
17615
17577
|
"children"
|
|
17616
17578
|
]), slowContext = getContextSlow(context2);
|
|
17617
|
-
return /* @__PURE__ */
|
|
17579
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProviderFast, __spreadProps(__spreadValues({
|
|
17618
17580
|
scope
|
|
17619
17581
|
}, context2), {
|
|
17620
|
-
children: /* @__PURE__ */
|
|
17582
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProviderSlow, __spreadProps(__spreadValues({
|
|
17621
17583
|
scope
|
|
17622
17584
|
}, slowContext), {
|
|
17623
17585
|
children
|
|
@@ -17715,9 +17677,9 @@ function Popper(props) {
|
|
|
17715
17677
|
open: !!open2
|
|
17716
17678
|
}, floating);
|
|
17717
17679
|
}, [open2, size, floating.x, floating.y, floating.placement, JSON.stringify(middlewareData.arrow || null), JSON.stringify(middlewareData.transformOrigin || null), floating.isPositioned]);
|
|
17718
|
-
return /* @__PURE__ */
|
|
17680
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
17719
17681
|
disable: !isOpen,
|
|
17720
|
-
children: /* @__PURE__ */
|
|
17682
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
17721
17683
|
scope
|
|
17722
17684
|
}, popperContext), {
|
|
17723
17685
|
children
|
|
@@ -17751,7 +17713,7 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17751
17713
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
17752
17714
|
safeSetReference
|
|
17753
17715
|
);
|
|
17754
|
-
return /* @__PURE__ */
|
|
17716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, rest), refProps), {
|
|
17755
17717
|
ref: composedRefs
|
|
17756
17718
|
}), shouldHandleInHover));
|
|
17757
17719
|
}), PopperContentFrame = styled(YStack, {
|
|
@@ -17836,12 +17798,12 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17836
17798
|
} = _b, floatingProps = __objRest(_b, [
|
|
17837
17799
|
"style"
|
|
17838
17800
|
]), transformOriginStyle = void 0;
|
|
17839
|
-
return /* @__PURE__ */
|
|
17801
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
17840
17802
|
passThrough,
|
|
17841
17803
|
ref: contentRefs,
|
|
17842
17804
|
contain: "layout style"
|
|
17843
17805
|
}, passThrough ? null : floatingProps), {
|
|
17844
|
-
children: /* @__PURE__ */
|
|
17806
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContentFrame, __spreadProps(__spreadValues({
|
|
17845
17807
|
passThrough
|
|
17846
17808
|
}, !passThrough && __spreadValues(__spreadValues(__spreadValues({
|
|
17847
17809
|
"data-placement": placement,
|
|
@@ -17919,10 +17881,10 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17919
17881
|
(_context_onArrowSize = context2.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context2, size);
|
|
17920
17882
|
}, [size, context2.onArrowSize]);
|
|
17921
17883
|
}
|
|
17922
|
-
return /* @__PURE__ */
|
|
17884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperArrowOuterFrame, __spreadProps(__spreadValues({
|
|
17923
17885
|
ref: refs
|
|
17924
17886
|
}, arrowStyle), {
|
|
17925
|
-
children: /* @__PURE__ */
|
|
17887
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperArrowFrame, __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
17926
17888
|
width: size,
|
|
17927
17889
|
height: size
|
|
17928
17890
|
}, arrowProps), innerArrowStyle), {
|
|
@@ -17976,7 +17938,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17976
17938
|
return onCustomAnchorAdd(), function() {
|
|
17977
17939
|
return onCustomAnchorRemove();
|
|
17978
17940
|
};
|
|
17979
|
-
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */
|
|
17941
|
+
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({
|
|
17980
17942
|
scope
|
|
17981
17943
|
}, rest), {
|
|
17982
17944
|
ref: forwardedRef
|
|
@@ -17988,7 +17950,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17988
17950
|
"scope"
|
|
17989
17951
|
]), context2 = usePopoverContext(scope), anchorTo = context2.anchorTo, composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
17990
17952
|
if (!props.children) return null;
|
|
17991
|
-
var trigger = /* @__PURE__ */
|
|
17953
|
+
var trigger = /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
17992
17954
|
"aria-expanded": context2.open,
|
|
17993
17955
|
// TODO not matching
|
|
17994
17956
|
// aria-controls={context.contentId}
|
|
@@ -18013,7 +17975,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18013
17975
|
})
|
|
18014
17976
|
} : null;
|
|
18015
17977
|
}, [context2.anchorTo, anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.y, anchorTo == null ? void 0 : anchorTo.x, anchorTo == null ? void 0 : anchorTo.height, anchorTo == null ? void 0 : anchorTo.width]);
|
|
18016
|
-
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
17978
|
+
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({}, virtualRef && {
|
|
18017
17979
|
virtualRef
|
|
18018
17980
|
}), {
|
|
18019
17981
|
scope,
|
|
@@ -18038,14 +18000,14 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
18038
18000
|
context2.open && isFullyHidden && setIsFullyHidden(false);
|
|
18039
18001
|
}, [context2.open, isFullyHidden]), !context2.keepChildrenMounted && isFullyHidden && !context2.open) return null;
|
|
18040
18002
|
var _contentImplProps_pointerEvents;
|
|
18041
|
-
return /* @__PURE__ */
|
|
18003
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPortal, {
|
|
18042
18004
|
passThrough: context2.breakpointActive,
|
|
18043
18005
|
context: context2,
|
|
18044
18006
|
zIndex,
|
|
18045
|
-
children: /* @__PURE__ */
|
|
18007
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
18046
18008
|
passThrough: context2.breakpointActive,
|
|
18047
18009
|
pointerEvents: context2.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
18048
|
-
children: /* @__PURE__ */
|
|
18010
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContentImpl, __spreadProps(__spreadValues({}, contentImplProps), {
|
|
18049
18011
|
context: context2,
|
|
18050
18012
|
enableRemoveScroll,
|
|
18051
18013
|
ref: composedRefs,
|
|
@@ -18090,11 +18052,11 @@ function RepropagateParentContexts(param) {
|
|
|
18090
18052
|
context: context2,
|
|
18091
18053
|
popperContext
|
|
18092
18054
|
} = param;
|
|
18093
|
-
return /* @__PURE__ */
|
|
18055
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
18094
18056
|
scope: context2.popoverScope
|
|
18095
18057
|
}, popperContext), {
|
|
18096
|
-
children: /* @__PURE__ */
|
|
18097
|
-
children: /* @__PURE__ */
|
|
18058
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({}, context2), {
|
|
18059
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
18098
18060
|
children
|
|
18099
18061
|
}))
|
|
18100
18062
|
}))
|
|
@@ -18107,14 +18069,14 @@ var PortalAdaptSafe = function(param) {
|
|
|
18107
18069
|
} = param;
|
|
18108
18070
|
if (needsRepropagation) {
|
|
18109
18071
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18110
|
-
return /* @__PURE__ */
|
|
18072
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18111
18073
|
scope: context2.adaptScope,
|
|
18112
|
-
children: /* @__PURE__ */
|
|
18074
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18113
18075
|
children
|
|
18114
18076
|
}))
|
|
18115
18077
|
});
|
|
18116
18078
|
}
|
|
18117
|
-
return /* @__PURE__ */
|
|
18079
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18118
18080
|
scope: context2.adaptScope,
|
|
18119
18081
|
children
|
|
18120
18082
|
});
|
|
@@ -18129,26 +18091,26 @@ function PopoverPortal(param) {
|
|
|
18129
18091
|
} = param, themeName = useThemeName(), content = children;
|
|
18130
18092
|
if (needsRepropagation) {
|
|
18131
18093
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18132
|
-
content = /* @__PURE__ */
|
|
18094
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18133
18095
|
children: content
|
|
18134
18096
|
}));
|
|
18135
18097
|
}
|
|
18136
|
-
return /* @__PURE__ */
|
|
18098
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal, {
|
|
18137
18099
|
passThrough,
|
|
18138
18100
|
stackZIndex: true,
|
|
18139
18101
|
zIndex,
|
|
18140
18102
|
children: (
|
|
18141
18103
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
18142
18104
|
/* without this you'll see the site menu re-rendering. It must be something in wrapping children in Theme */
|
|
18143
|
-
/* @__PURE__ */
|
|
18105
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Theme, {
|
|
18144
18106
|
passThrough,
|
|
18145
18107
|
contain: true,
|
|
18146
18108
|
forceClassName: true,
|
|
18147
18109
|
name: themeName,
|
|
18148
|
-
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */
|
|
18110
|
+
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
18149
18111
|
fullscreen: true,
|
|
18150
18112
|
onPress: composeEventHandlers(onPress, context2.onOpenToggle)
|
|
18151
|
-
}), /* @__PURE__ */
|
|
18113
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
18152
18114
|
zIndex: resolveViewZIndex(zIndex),
|
|
18153
18115
|
children: content
|
|
18154
18116
|
})]
|
|
@@ -18196,25 +18158,25 @@ var PopoverContentImpl = /* @__PURE__ */ React__namespace.forwardRef(function(pr
|
|
|
18196
18158
|
keepChildrenMounted
|
|
18197
18159
|
} = context2, handleExitComplete = React__namespace.useCallback(function() {
|
|
18198
18160
|
setIsFullyHidden == null ? void 0 : setIsFullyHidden(true);
|
|
18199
|
-
}, [setIsFullyHidden]), contents = /* @__PURE__ */
|
|
18161
|
+
}, [setIsFullyHidden]), contents = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
18200
18162
|
disable: context2.breakpointActive,
|
|
18201
18163
|
children
|
|
18202
18164
|
});
|
|
18203
|
-
return context2.breakpointActive, /* @__PURE__ */
|
|
18165
|
+
return context2.breakpointActive, /* @__PURE__ */ jsxRuntime.jsx(Animate, {
|
|
18204
18166
|
type: "presence",
|
|
18205
18167
|
present: !!open2,
|
|
18206
18168
|
keepChildrenMounted: !!keepChildrenMounted,
|
|
18207
18169
|
onExitComplete: handleExitComplete,
|
|
18208
18170
|
lazyMount,
|
|
18209
18171
|
passThrough: context2.breakpointActive,
|
|
18210
|
-
children: /* @__PURE__ */
|
|
18172
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContent, __spreadProps(__spreadValues({
|
|
18211
18173
|
scope,
|
|
18212
18174
|
"data-state": getState$1(open2),
|
|
18213
18175
|
id: context2.contentId,
|
|
18214
18176
|
ref: forwardedRef,
|
|
18215
18177
|
passThrough: context2.breakpointActive
|
|
18216
18178
|
}, contentProps), {
|
|
18217
|
-
children: /* @__PURE__ */
|
|
18179
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PortalAdaptSafe, {
|
|
18218
18180
|
context: context2,
|
|
18219
18181
|
children: contents
|
|
18220
18182
|
})
|
|
@@ -18227,7 +18189,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18227
18189
|
} = _a, rest = __objRest(_a, [
|
|
18228
18190
|
"scope"
|
|
18229
18191
|
]), context2 = usePopoverContext(scope);
|
|
18230
|
-
return /* @__PURE__ */
|
|
18192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({}, rest), {
|
|
18231
18193
|
ref: forwardedRef,
|
|
18232
18194
|
componentName: "PopoverClose",
|
|
18233
18195
|
onPress: composeEventHandlers(props.onPress, function() {
|
|
@@ -18241,7 +18203,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18241
18203
|
} = _a, rest = __objRest(_a, [
|
|
18242
18204
|
"scope"
|
|
18243
18205
|
]), context2 = usePopoverContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
18244
|
-
return isAdapted ? null : /* @__PURE__ */
|
|
18206
|
+
return isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(PopperArrow, __spreadProps(__spreadValues({
|
|
18245
18207
|
scope,
|
|
18246
18208
|
componentName: "PopoverArrow"
|
|
18247
18209
|
}, rest), {
|
|
@@ -18253,7 +18215,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18253
18215
|
} = _a, props = __objRest(_a, [
|
|
18254
18216
|
"scope"
|
|
18255
18217
|
]), context2 = usePopoverContext(scope);
|
|
18256
|
-
return /* @__PURE__ */
|
|
18218
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ScrollView3, __spreadValues({
|
|
18257
18219
|
ref,
|
|
18258
18220
|
// when adapted, no pointer events!
|
|
18259
18221
|
pointerEvents: context2.breakpointActive ? "none" : void 0,
|
|
@@ -18266,10 +18228,10 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18266
18228
|
} = _a, props = __objRest(_a, [
|
|
18267
18229
|
"scope"
|
|
18268
18230
|
]), id2 = React__namespace.useId(), adaptScope = `PopoverAdapt${scope}`;
|
|
18269
|
-
return /* @__PURE__ */
|
|
18231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
18270
18232
|
scope: adaptScope,
|
|
18271
18233
|
portal: true,
|
|
18272
|
-
children: /* @__PURE__ */
|
|
18234
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverInner, __spreadValues({
|
|
18273
18235
|
adaptScope,
|
|
18274
18236
|
ref,
|
|
18275
18237
|
id: id2,
|
|
@@ -18362,16 +18324,16 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18362
18324
|
}, []),
|
|
18363
18325
|
keepChildrenMounted
|
|
18364
18326
|
}, memoizedChildren = React__namespace.useMemo(function() {
|
|
18365
|
-
return /* @__PURE__ */
|
|
18327
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({
|
|
18366
18328
|
scope
|
|
18367
18329
|
}, popoverContext), {
|
|
18368
|
-
children: /* @__PURE__ */
|
|
18330
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverSheetController, {
|
|
18369
18331
|
context: popoverContext,
|
|
18370
18332
|
onOpenChange: setOpen,
|
|
18371
18333
|
children
|
|
18372
18334
|
})
|
|
18373
18335
|
}));
|
|
18374
|
-
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */
|
|
18336
|
+
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */ jsxRuntime.jsx(Popper, __spreadProps(__spreadValues({
|
|
18375
18337
|
open: open2,
|
|
18376
18338
|
passThrough: isAdapted,
|
|
18377
18339
|
scope,
|
|
@@ -18379,7 +18341,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18379
18341
|
}, restProps), {
|
|
18380
18342
|
children: memoizedChildren
|
|
18381
18343
|
}));
|
|
18382
|
-
return /* @__PURE__ */
|
|
18344
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
18383
18345
|
children: contents
|
|
18384
18346
|
});
|
|
18385
18347
|
});
|
|
@@ -18392,7 +18354,7 @@ var PopoverSheetController = function(param) {
|
|
|
18392
18354
|
} = _a, props = __objRest(_a, [
|
|
18393
18355
|
"context"
|
|
18394
18356
|
]), showSheet = useShowPopoverSheet(context2), breakpointActive = context2.breakpointActive, getShowSheet = useGet(showSheet);
|
|
18395
|
-
return /* @__PURE__ */
|
|
18357
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
18396
18358
|
onOpenChange: function(val) {
|
|
18397
18359
|
if (getShowSheet()) {
|
|
18398
18360
|
var _props_onOpenChange;
|
|
@@ -18429,7 +18391,7 @@ var PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = c
|
|
|
18429
18391
|
"__scopeProgress",
|
|
18430
18392
|
"transition"
|
|
18431
18393
|
]), context2 = useProgressContext(INDICATOR_NAME, __scopeProgress), _context_value, pct = context2.max - ((_context_value = context2.value) !== null && _context_value !== void 0 ? _context_value : 0), x = -(context2.width === 0 ? 300 : context2.width) * (pct / context2.max), _context_value1;
|
|
18432
|
-
return /* @__PURE__ */
|
|
18394
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicatorFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18433
18395
|
"data-state": getProgressState(context2.value, context2.max),
|
|
18434
18396
|
"data-value": (_context_value1 = context2.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
18435
18397
|
"data-max": context2.max,
|
|
@@ -18498,12 +18460,12 @@ var DEFAULT_MAX = 100, ProgressFrame = styled(YStack, {
|
|
|
18498
18460
|
"getValueLabel",
|
|
18499
18461
|
"size"
|
|
18500
18462
|
]), max2 = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max2) ? Math.round(valueProp) : null, valueLabel = isNumber(value) ? getValueLabel(value, max2) : void 0, [width, setWidth] = React__namespace.useState(0);
|
|
18501
|
-
return /* @__PURE__ */
|
|
18463
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressProvider, {
|
|
18502
18464
|
scope: __scopeProgress,
|
|
18503
18465
|
value,
|
|
18504
18466
|
max: max2,
|
|
18505
18467
|
width,
|
|
18506
|
-
children: /* @__PURE__ */
|
|
18468
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProgressFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18507
18469
|
"aria-valuemax": max2,
|
|
18508
18470
|
"aria-valuemin": 0,
|
|
18509
18471
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
@@ -18645,7 +18607,7 @@ var BubbleInput = function(props) {
|
|
|
18645
18607
|
});
|
|
18646
18608
|
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
18647
18609
|
}
|
|
18648
|
-
}, [prevChecked, checked, bubbles]), /* @__PURE__ */
|
|
18610
|
+
}, [prevChecked, checked, bubbles]), /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({
|
|
18649
18611
|
type: "radio",
|
|
18650
18612
|
defaultChecked: checked
|
|
18651
18613
|
}, inputProps), {
|
|
@@ -18743,7 +18705,7 @@ var useRadioGroupItem = function(params) {
|
|
|
18743
18705
|
},
|
|
18744
18706
|
checked,
|
|
18745
18707
|
isFormControl,
|
|
18746
|
-
bubbleInput: /* @__PURE__ */
|
|
18708
|
+
bubbleInput: /* @__PURE__ */ jsxRuntime.jsx(BubbleInput, __spreadValues({
|
|
18747
18709
|
isHidden: !native,
|
|
18748
18710
|
control: button,
|
|
18749
18711
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
@@ -18798,7 +18760,7 @@ var ITEM_NAME$1 = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */
|
|
|
18798
18760
|
} = _a, props = __objRest(_a, [
|
|
18799
18761
|
"children"
|
|
18800
18762
|
]);
|
|
18801
|
-
return /* @__PURE__ */
|
|
18763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
18802
18764
|
children
|
|
18803
18765
|
}));
|
|
18804
18766
|
});
|
|
@@ -18809,7 +18771,7 @@ var GROUP_NAME$1 = "RovingFocusGroup", RovingFocusGroup = withStaticProperties(/
|
|
|
18809
18771
|
} = _a, props = __objRest(_a, [
|
|
18810
18772
|
"children"
|
|
18811
18773
|
]);
|
|
18812
|
-
return /* @__PURE__ */
|
|
18774
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
18813
18775
|
children
|
|
18814
18776
|
}));
|
|
18815
18777
|
}), {
|
|
@@ -18866,10 +18828,10 @@ function createRadioGroup(createProps) {
|
|
|
18866
18828
|
native,
|
|
18867
18829
|
accentColor
|
|
18868
18830
|
});
|
|
18869
|
-
return /* @__PURE__ */
|
|
18831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupContext.Provider, {
|
|
18870
18832
|
value: providerValue,
|
|
18871
|
-
children: /* @__PURE__ */
|
|
18872
|
-
children: /* @__PURE__ */
|
|
18833
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, __spreadProps(__spreadValues({}, rovingFocusGroupAttrs), {
|
|
18834
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupFrame, __spreadValues(__spreadProps(__spreadValues({}, frameAttrs), {
|
|
18873
18835
|
ref
|
|
18874
18836
|
}), rest))
|
|
18875
18837
|
}))
|
|
@@ -18902,11 +18864,11 @@ function createRadioGroup(createProps) {
|
|
|
18902
18864
|
disabled,
|
|
18903
18865
|
onPress
|
|
18904
18866
|
});
|
|
18905
|
-
return /* @__PURE__ */
|
|
18867
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemContext.Provider, {
|
|
18906
18868
|
value: providerValue,
|
|
18907
|
-
children: /* @__PURE__ */
|
|
18908
|
-
children: [/* @__PURE__ */
|
|
18909
|
-
children: /* @__PURE__ */
|
|
18869
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
18870
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, __spreadProps(__spreadValues({}, rovingFocusGroupAttrs), {
|
|
18871
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemFrame, __spreadValues(__spreadProps(__spreadValues({}, frameAttrs), {
|
|
18910
18872
|
ref
|
|
18911
18873
|
}), rest))
|
|
18912
18874
|
})), isFormControl]
|
|
@@ -18929,7 +18891,7 @@ function createRadioGroup(createProps) {
|
|
|
18929
18891
|
} = _b, useIndicatorRest = __objRest(_b, [
|
|
18930
18892
|
"checked"
|
|
18931
18893
|
]);
|
|
18932
|
-
return forceMount || checked ? /* @__PURE__ */
|
|
18894
|
+
return forceMount || checked ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadValues(__spreadProps(__spreadValues({}, useIndicatorRest), {
|
|
18933
18895
|
ref: forwardedRef
|
|
18934
18896
|
}), indicatorProps)) : null;
|
|
18935
18897
|
});
|
|
@@ -19030,11 +18992,11 @@ var {
|
|
|
19030
18992
|
itemContext,
|
|
19031
18993
|
children
|
|
19032
18994
|
} = param;
|
|
19033
|
-
return /* @__PURE__ */
|
|
18995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, __spreadProps(__spreadValues({
|
|
19034
18996
|
isInSheet: true,
|
|
19035
18997
|
scope: context2.scopeName
|
|
19036
18998
|
}, context2), {
|
|
19037
|
-
children: /* @__PURE__ */
|
|
18999
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, __spreadProps(__spreadValues({
|
|
19038
19000
|
scope: context2.scopeName
|
|
19039
19001
|
}, itemContext), {
|
|
19040
19002
|
children
|
|
@@ -19125,15 +19087,15 @@ var ITEM_NAME = "SelectItem", {
|
|
|
19125
19087
|
onPress: handleSelect
|
|
19126
19088
|
};
|
|
19127
19089
|
}, [handleSelect]);
|
|
19128
|
-
return /* @__PURE__ */
|
|
19090
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemContextProvider, {
|
|
19129
19091
|
scope,
|
|
19130
19092
|
value,
|
|
19131
19093
|
textId: textId || "",
|
|
19132
19094
|
isSelected,
|
|
19133
|
-
children: shouldRenderWebNative ? /* @__PURE__ */
|
|
19095
|
+
children: shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx("option", {
|
|
19134
19096
|
value,
|
|
19135
19097
|
children: props.children
|
|
19136
|
-
}) : /* @__PURE__ */
|
|
19098
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ListItem2.Frame, __spreadValues(__spreadValues(__spreadValues({
|
|
19137
19099
|
tag: "div",
|
|
19138
19100
|
componentName: ITEM_NAME,
|
|
19139
19101
|
ref: composedRefs,
|
|
@@ -19186,7 +19148,7 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19186
19148
|
"scope",
|
|
19187
19149
|
"className"
|
|
19188
19150
|
]), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), itemContext = useSelectItemContext(scope), contents = React__namespace.useRef(null);
|
|
19189
|
-
return contents.current = /* @__PURE__ */
|
|
19151
|
+
return contents.current = /* @__PURE__ */ jsxRuntime.jsx(SelectItemTextFrame, __spreadProps(__spreadValues({
|
|
19190
19152
|
className,
|
|
19191
19153
|
size: itemParentContext.size,
|
|
19192
19154
|
id: itemContext.textId
|
|
@@ -19198,9 +19160,9 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19198
19160
|
return itemParentContext.valueSubscribe(function(val) {
|
|
19199
19161
|
val === itemContext.value && context2.setSelectedItem(contents.current);
|
|
19200
19162
|
});
|
|
19201
|
-
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19163
|
+
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19202
19164
|
children: props.children
|
|
19203
|
-
}) : /* @__PURE__ */
|
|
19165
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19204
19166
|
children: contents.current
|
|
19205
19167
|
});
|
|
19206
19168
|
});
|
|
@@ -19219,7 +19181,7 @@ var TRIGGER_NAME$1 = "SelectTrigger", SelectTrigger = /* @__PURE__ */ React__nam
|
|
|
19219
19181
|
"disabled",
|
|
19220
19182
|
"unstyled"
|
|
19221
19183
|
]), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), composedRefs = useComposedRefs(forwardedRef, (_context_floatingContext = context2.floatingContext) === null || _context_floatingContext === void 0 ? void 0 : _context_floatingContext.refs.setReference);
|
|
19222
|
-
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19184
|
+
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
19223
19185
|
componentName: TRIGGER_NAME$1,
|
|
19224
19186
|
unstyled,
|
|
19225
19187
|
tag: "button",
|
|
@@ -19253,14 +19215,14 @@ var SelectViewport = function(props) {
|
|
|
19253
19215
|
scope,
|
|
19254
19216
|
children
|
|
19255
19217
|
} = props, context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), themeName = useThemeName(), adaptContext = useAdaptContext();
|
|
19256
|
-
return /* @__PURE__ */
|
|
19218
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
19257
19219
|
scope: context2.adaptScope,
|
|
19258
|
-
children: /* @__PURE__ */
|
|
19220
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
19259
19221
|
name: themeName,
|
|
19260
|
-
children: /* @__PURE__ */
|
|
19222
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardSelectContext, {
|
|
19261
19223
|
itemContext: itemParentContext,
|
|
19262
19224
|
context: context2,
|
|
19263
|
-
children: /* @__PURE__ */
|
|
19225
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({}, adaptContext), {
|
|
19264
19226
|
children
|
|
19265
19227
|
}))
|
|
19266
19228
|
})
|
|
@@ -19289,7 +19251,7 @@ var VALUE_NAME = "SelectValue", SelectValueFrame = styled(SizableText, {
|
|
|
19289
19251
|
forwardedRef,
|
|
19290
19252
|
context2.onValueNodeChange
|
|
19291
19253
|
), isEmptyValue = context2.value == null || context2.value === "", renderedValue = (_context_renderValue = context2.renderValue) === null || _context_renderValue === void 0 ? void 0 : _context_renderValue.call(context2, context2.value), _ref, children = (_ref = childrenProp != null ? childrenProp : renderedValue) !== null && _ref !== void 0 ? _ref : context2.selectedItem, selectValueChildren = isEmptyValue ? placeholder != null ? placeholder : children : children;
|
|
19292
|
-
return /* @__PURE__ */
|
|
19254
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectValueFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
19293
19255
|
size: itemParentContext.size,
|
|
19294
19256
|
ellipsis: true,
|
|
19295
19257
|
// we don't want events from the portalled `SelectValue` children to bubble
|
|
@@ -19315,7 +19277,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19315
19277
|
name: "SelectIcon",
|
|
19316
19278
|
// @ts-ignore
|
|
19317
19279
|
"aria-hidden": true,
|
|
19318
|
-
children: /* @__PURE__ */
|
|
19280
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Paragraph, {
|
|
19319
19281
|
children: "▼"
|
|
19320
19282
|
})
|
|
19321
19283
|
}), SelectItemIndicatorFrame = styled(XStack, {
|
|
@@ -19326,7 +19288,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19326
19288
|
} = _a, itemIndicatorProps = __objRest(_a, [
|
|
19327
19289
|
"scope"
|
|
19328
19290
|
]), context2 = useSelectItemParentContext(scope), itemContext = useSelectItemContext(scope);
|
|
19329
|
-
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */
|
|
19291
|
+
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */ jsxRuntime.jsx(SelectItemIndicatorFrame, __spreadProps(__spreadValues({
|
|
19330
19292
|
"aria-hidden": true
|
|
19331
19293
|
}, itemIndicatorProps), {
|
|
19332
19294
|
ref: forwardedRef
|
|
@@ -19368,7 +19330,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19368
19330
|
}));
|
|
19369
19331
|
};
|
|
19370
19332
|
return context2.open && context2.activeIndex !== null && update2(context2.activeIndex), itemContext.activeIndexSubscribe(update2);
|
|
19371
|
-
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */
|
|
19333
|
+
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */ jsxRuntime.jsx(SelectIndicatorFrame, __spreadProps(__spreadValues({
|
|
19372
19334
|
ref: forwardedRef
|
|
19373
19335
|
}, props), {
|
|
19374
19336
|
width: layout.width,
|
|
@@ -19430,13 +19392,13 @@ var SelectIcon = styled(XStack, {
|
|
|
19430
19392
|
} = _a, groupProps = __objRest(_a, [
|
|
19431
19393
|
"scope"
|
|
19432
19394
|
]), groupId = React__namespace.useId(), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), _itemParentContext_size, size = (_itemParentContext_size = itemParentContext.size) !== null && _itemParentContext_size !== void 0 ? _itemParentContext_size : "$true", nativeSelectRef = React__namespace.useRef(null), content = (function() {
|
|
19433
|
-
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19395
|
+
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(NativeSelectFrame, {
|
|
19434
19396
|
asChild: true,
|
|
19435
19397
|
size,
|
|
19436
19398
|
// @ts-expect-error until we support typing based on tag
|
|
19437
19399
|
value: context2.value,
|
|
19438
19400
|
id: itemParentContext.id,
|
|
19439
|
-
children: /* @__PURE__ */
|
|
19401
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(NativeSelectTextFrame, {
|
|
19440
19402
|
// @ts-ignore it's ok since tag="select"
|
|
19441
19403
|
onChange: function(event) {
|
|
19442
19404
|
itemParentContext.onChange(event.currentTarget.value);
|
|
@@ -19450,7 +19412,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19450
19412
|
},
|
|
19451
19413
|
children: props.children
|
|
19452
19414
|
})
|
|
19453
|
-
}) : /* @__PURE__ */
|
|
19415
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(SelectGroupFrame, __spreadProps(__spreadValues({
|
|
19454
19416
|
// @ts-ignore
|
|
19455
19417
|
role: "group",
|
|
19456
19418
|
"aria-labelledby": groupId
|
|
@@ -19458,7 +19420,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19458
19420
|
ref: forwardedRef
|
|
19459
19421
|
}));
|
|
19460
19422
|
})();
|
|
19461
|
-
return /* @__PURE__ */
|
|
19423
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupContextProvider, {
|
|
19462
19424
|
scope,
|
|
19463
19425
|
id: groupId || "",
|
|
19464
19426
|
children: content
|
|
@@ -19473,7 +19435,7 @@ var LABEL_NAME = "SelectLabel", SelectLabelText = styled(ListItem2.Text, {
|
|
|
19473
19435
|
} = _a, labelProps = __objRest(_a, [
|
|
19474
19436
|
"scope"
|
|
19475
19437
|
]), context2 = useSelectItemParentContext(scope), groupContext = useSelectGroupContext(scope);
|
|
19476
|
-
return context2.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19438
|
+
return context2.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues({
|
|
19477
19439
|
tag: "div",
|
|
19478
19440
|
componentName: LABEL_NAME,
|
|
19479
19441
|
fontWeight: "800",
|
|
@@ -19490,7 +19452,7 @@ var SelectSeparator = styled(Separator, {
|
|
|
19490
19452
|
name: "SelectSeparator"
|
|
19491
19453
|
}), SelectSheetController = function(props) {
|
|
19492
19454
|
var context2 = useSelectContext(props.scope), showSheet = useShowSelectSheet(context2), isAdapted = useAdaptIsActive(context2.adaptScope), getShowSheet = useGet(showSheet);
|
|
19493
|
-
return /* @__PURE__ */
|
|
19455
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
19494
19456
|
onOpenChange: function(val) {
|
|
19495
19457
|
getShowSheet() && props.onOpenChange(val);
|
|
19496
19458
|
},
|
|
@@ -19499,15 +19461,15 @@ var SelectSeparator = styled(Separator, {
|
|
|
19499
19461
|
children: props.children
|
|
19500
19462
|
});
|
|
19501
19463
|
}, SelectSheetImpl = function(props) {
|
|
19502
|
-
return /* @__PURE__ */
|
|
19464
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19503
19465
|
children: props.children
|
|
19504
19466
|
});
|
|
19505
19467
|
}, Select = withStaticProperties(function(props) {
|
|
19506
19468
|
var adaptScope = `AdaptSelect${props.scope || ""}`;
|
|
19507
|
-
return /* @__PURE__ */
|
|
19469
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
19508
19470
|
scope: adaptScope,
|
|
19509
19471
|
portal: true,
|
|
19510
|
-
children: /* @__PURE__ */
|
|
19472
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectInner, __spreadValues({
|
|
19511
19473
|
scope: props.scope,
|
|
19512
19474
|
adaptScope
|
|
19513
19475
|
}, props))
|
|
@@ -19599,7 +19561,7 @@ function SelectInner(props) {
|
|
|
19599
19561
|
return prev !== index2 ? (typeof index2 == "number" && emitActiveIndex(index2), index2) : prev;
|
|
19600
19562
|
});
|
|
19601
19563
|
}, 0, {}, []);
|
|
19602
|
-
return /* @__PURE__ */
|
|
19564
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, {
|
|
19603
19565
|
scopeName: scope,
|
|
19604
19566
|
scope,
|
|
19605
19567
|
adaptScope,
|
|
@@ -19622,7 +19584,7 @@ function SelectInner(props) {
|
|
|
19622
19584
|
listContentRef.current[index2] = value2;
|
|
19623
19585
|
}, []),
|
|
19624
19586
|
shouldRenderWebNative,
|
|
19625
|
-
children: /* @__PURE__ */
|
|
19587
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, {
|
|
19626
19588
|
scope,
|
|
19627
19589
|
scopeName: scope,
|
|
19628
19590
|
adaptScope,
|
|
@@ -19642,10 +19604,10 @@ function SelectInner(props) {
|
|
|
19642
19604
|
open: open2,
|
|
19643
19605
|
native,
|
|
19644
19606
|
renderValue,
|
|
19645
|
-
children: /* @__PURE__ */
|
|
19607
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectSheetController, {
|
|
19646
19608
|
onOpenChange: setOpen,
|
|
19647
19609
|
scope,
|
|
19648
|
-
children: /* @__PURE__ */
|
|
19610
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectImpl, __spreadProps(__spreadValues({
|
|
19649
19611
|
activeIndexRef,
|
|
19650
19612
|
listContentRef,
|
|
19651
19613
|
selectedIndexRef
|
|
@@ -19787,19 +19749,19 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
19787
19749
|
var _props_onOpenChange;
|
|
19788
19750
|
(_props_onOpenChange = props.onOpenChange) === null || _props_onOpenChange === void 0 || _props_onOpenChange.call(props, open2), setOpen(next);
|
|
19789
19751
|
}
|
|
19790
|
-
return /* @__PURE__ */
|
|
19791
|
-
children: /* @__PURE__ */
|
|
19752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19753
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({
|
|
19792
19754
|
setHasScrollView: emptyFn
|
|
19793
19755
|
}, providerProps), {
|
|
19794
19756
|
onlyShowFrame: true,
|
|
19795
19757
|
children: [
|
|
19796
|
-
/* @__PURE__ */
|
|
19758
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalSheetView, {
|
|
19797
19759
|
ref,
|
|
19798
19760
|
onModalDidDismiss: function() {
|
|
19799
19761
|
return setOpenInternal(false);
|
|
19800
19762
|
},
|
|
19801
|
-
children: /* @__PURE__ */
|
|
19802
|
-
children: /* @__PURE__ */
|
|
19763
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ModalSheetViewMainContent, {
|
|
19764
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
19803
19765
|
style: {
|
|
19804
19766
|
flex: 1
|
|
19805
19767
|
},
|
|
@@ -19809,7 +19771,7 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
19809
19771
|
}),
|
|
19810
19772
|
/* for some reason select triggers wont show on native if this isn't inside the actual tree not inside implementation... */
|
|
19811
19773
|
/* so just hiding it here for now... not great... */
|
|
19812
|
-
/* @__PURE__ */
|
|
19774
|
+
/* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
19813
19775
|
position: "absolute",
|
|
19814
19776
|
opacity: 0,
|
|
19815
19777
|
pointerEvents: "none",
|
|
@@ -20049,18 +20011,18 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20049
20011
|
`${maxSnapPoint}${"%"}`
|
|
20050
20012
|
) : maxSnapPoint, setHasScrollView = React.useCallback(function(val) {
|
|
20051
20013
|
hasScrollView.current = val;
|
|
20052
|
-
}, []), contents = /* @__PURE__ */
|
|
20014
|
+
}, []), contents = /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
20053
20015
|
disable: !open2,
|
|
20054
|
-
children: /* @__PURE__ */
|
|
20016
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ParentSheetContext.Provider, {
|
|
20055
20017
|
value: nextParentContext,
|
|
20056
|
-
children: /* @__PURE__ */
|
|
20018
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({}, providerProps), {
|
|
20057
20019
|
setHasScrollView,
|
|
20058
|
-
children: [/* @__PURE__ */
|
|
20020
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
20059
20021
|
custom: {
|
|
20060
20022
|
open: open2
|
|
20061
20023
|
},
|
|
20062
20024
|
children: shouldHideParentSheet || !open2 ? null : overlayComponent
|
|
20063
|
-
}), snapPointsMode !== "percent" && /* @__PURE__ */
|
|
20025
|
+
}), snapPointsMode !== "percent" && /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
20064
20026
|
style: {
|
|
20065
20027
|
opacity: 0,
|
|
20066
20028
|
position: "absolute",
|
|
@@ -20071,7 +20033,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20071
20033
|
pointerEvents: "none"
|
|
20072
20034
|
},
|
|
20073
20035
|
onLayout: handleMaxContentViewLayout
|
|
20074
|
-
}), /* @__PURE__ */
|
|
20036
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(AnimatedView, __spreadProps(__spreadValues({
|
|
20075
20037
|
ref
|
|
20076
20038
|
}, panResponder == null ? void 0 : panResponder.panHandlers), {
|
|
20077
20039
|
onLayout: handleAnimationViewLayout,
|
|
@@ -20100,7 +20062,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20100
20062
|
});
|
|
20101
20063
|
if (!USE_NATIVE_PORTAL) {
|
|
20102
20064
|
var adaptContext = useAdaptContext();
|
|
20103
|
-
contents = /* @__PURE__ */
|
|
20065
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
20104
20066
|
children: (
|
|
20105
20067
|
/* @ts-ignore */
|
|
20106
20068
|
contents
|
|
@@ -20109,11 +20071,11 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20109
20071
|
}
|
|
20110
20072
|
var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : true;
|
|
20111
20073
|
if (modal) {
|
|
20112
|
-
var modalContents = /* @__PURE__ */
|
|
20074
|
+
var modalContents = /* @__PURE__ */ jsxRuntime.jsx(Portal, __spreadProps(__spreadValues({
|
|
20113
20075
|
stackZIndex: zIndex
|
|
20114
20076
|
}, portalProps), {
|
|
20115
|
-
children: shouldMountChildren && /* @__PURE__ */
|
|
20116
|
-
children: /* @__PURE__ */
|
|
20077
|
+
children: shouldMountChildren && /* @__PURE__ */ jsxRuntime.jsx(ContainerComponent, {
|
|
20078
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
20117
20079
|
contain: true,
|
|
20118
20080
|
forceClassName: true,
|
|
20119
20081
|
name: themeName,
|
|
@@ -20121,7 +20083,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20121
20083
|
})
|
|
20122
20084
|
})
|
|
20123
20085
|
}));
|
|
20124
|
-
return /* @__PURE__ */
|
|
20086
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetInsideSheetContext.Provider, {
|
|
20125
20087
|
value: onInnerSheet,
|
|
20126
20088
|
children: modalContents
|
|
20127
20089
|
});
|
|
@@ -20207,7 +20169,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20207
20169
|
};
|
|
20208
20170
|
return React.useEffect(function() {
|
|
20209
20171
|
scrollBridge.hasScrollableContent = hasScrollableContent;
|
|
20210
|
-
}, [hasScrollableContent]), /* @__PURE__ */
|
|
20172
|
+
}, [hasScrollableContent]), /* @__PURE__ */ jsxRuntime.jsxs(ScrollView3, __spreadProps(__spreadValues({
|
|
20211
20173
|
onLayout: function(e2) {
|
|
20212
20174
|
parentHeight.current = Math.ceil(e2.nativeEvent.layout.height), setIsScrollable();
|
|
20213
20175
|
},
|
|
@@ -20247,7 +20209,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20247
20209
|
}, props), {
|
|
20248
20210
|
children: [
|
|
20249
20211
|
/* content height measurer */
|
|
20250
|
-
/* @__PURE__ */
|
|
20212
|
+
/* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
20251
20213
|
position: "absolute",
|
|
20252
20214
|
inset: 0,
|
|
20253
20215
|
pointerEvents: "none",
|
|
@@ -20296,7 +20258,7 @@ function createSheet(param) {
|
|
|
20296
20258
|
]), context2 = useSheetContext(SHEET_HANDLE_NAME, __scopeSheet), composedRef = useComposedRefs(context2.handleRef, forwardedRef);
|
|
20297
20259
|
return context2.onlyShowFrame ? null : (
|
|
20298
20260
|
// @ts-ignore
|
|
20299
|
-
/* @__PURE__ */
|
|
20261
|
+
/* @__PURE__ */ jsxRuntime.jsx(Handle2, __spreadValues({
|
|
20300
20262
|
ref: composedRef,
|
|
20301
20263
|
onPress: function() {
|
|
20302
20264
|
var max2 = context2.snapPoints.length + (context2.dismissOnSnapToBottom ? -1 : 0), nextPos = (context2.position + 1) % max2;
|
|
@@ -20313,7 +20275,7 @@ function createSheet(param) {
|
|
|
20313
20275
|
]), context2 = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet), element = React.useMemo(function() {
|
|
20314
20276
|
return (
|
|
20315
20277
|
// @ts-ignore
|
|
20316
|
-
/* @__PURE__ */
|
|
20278
|
+
/* @__PURE__ */ jsxRuntime.jsx(Overlay2, __spreadProps(__spreadValues({}, props), {
|
|
20317
20279
|
onPress: composeEventHandlers(props.onPress, context2.dismissOnOverlayPress ? function() {
|
|
20318
20280
|
context2.setOpen(false);
|
|
20319
20281
|
} : void 0)
|
|
@@ -20349,7 +20311,7 @@ function createSheet(param) {
|
|
|
20349
20311
|
var shouldUseFixedHeight = hasFit && !open2 && stableFrameSize.current;
|
|
20350
20312
|
return (
|
|
20351
20313
|
// @ts-expect-error
|
|
20352
|
-
/* @__PURE__ */
|
|
20314
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Frame2, __spreadProps(__spreadValues({
|
|
20353
20315
|
ref: composedContentRef,
|
|
20354
20316
|
flex: hasFit && open2 ? 0 : 1,
|
|
20355
20317
|
flexBasis: hasFit ? "auto" : void 0,
|
|
@@ -20357,10 +20319,10 @@ function createSheet(param) {
|
|
|
20357
20319
|
pointerEvents: open2 ? "auto" : "none",
|
|
20358
20320
|
"data-state": open2 ? "open" : "closed"
|
|
20359
20321
|
}, props), {
|
|
20360
|
-
children: [/* @__PURE__ */
|
|
20322
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
20361
20323
|
zIndex: resolveViewZIndex(props.zIndex),
|
|
20362
20324
|
children
|
|
20363
|
-
}), adjustPaddingForOffscreenContent && /* @__PURE__ */
|
|
20325
|
+
}), adjustPaddingForOffscreenContent && /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
20364
20326
|
"data-sheet-offscreen-pad": true,
|
|
20365
20327
|
height: offscreenSize,
|
|
20366
20328
|
width: "100%"
|
|
@@ -20368,15 +20330,15 @@ function createSheet(param) {
|
|
|
20368
20330
|
}))
|
|
20369
20331
|
);
|
|
20370
20332
|
}, [open2, props, frameSize, offscreenSize, adjustPaddingForOffscreenContent, hasFit]);
|
|
20371
|
-
return /* @__PURE__ */
|
|
20333
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20372
20334
|
children: [
|
|
20373
|
-
/* @__PURE__ */
|
|
20335
|
+
/* @__PURE__ */ jsxRuntime.jsx(RemoveScroll, {
|
|
20374
20336
|
enabled: !disableRemoveScroll && context2.open,
|
|
20375
20337
|
children: sheetContents
|
|
20376
20338
|
}),
|
|
20377
20339
|
/* below frame hide when bouncing past 100% */
|
|
20378
20340
|
!disableHideBottomOverflow && // @ts-ignore
|
|
20379
|
-
/* @__PURE__ */
|
|
20341
|
+
/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues({}, props), {
|
|
20380
20342
|
componentName: "SheetCover",
|
|
20381
20343
|
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
20382
20344
|
children: null,
|
|
@@ -20401,7 +20363,7 @@ function createSheet(param) {
|
|
|
20401
20363
|
isShowingNonSheet
|
|
20402
20364
|
} = useSheetController(), SheetImplementation = SheetImplementationCustom;
|
|
20403
20365
|
if (props.native && Platform.OS === "ios") ;
|
|
20404
|
-
return isShowingNonSheet || false ? null : /* @__PURE__ */
|
|
20366
|
+
return isShowingNonSheet || false ? null : /* @__PURE__ */ jsxRuntime.jsx(SheetImplementation, __spreadValues({
|
|
20405
20367
|
ref
|
|
20406
20368
|
}, props));
|
|
20407
20369
|
}), components = {
|
|
@@ -20607,7 +20569,7 @@ var SliderFrame = styled(YStack, {
|
|
|
20607
20569
|
"onEndKeyDown",
|
|
20608
20570
|
"onStepKeyDown"
|
|
20609
20571
|
]), context2 = useSliderContext(__scopeSlider);
|
|
20610
|
-
return /* @__PURE__ */
|
|
20572
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
20611
20573
|
size: "$4"
|
|
20612
20574
|
}, sliderProps), {
|
|
20613
20575
|
"data-orientation": sliderProps.orientation,
|
|
@@ -20680,14 +20642,14 @@ var SliderHorizontal = /* @__PURE__ */ React__namespace.forwardRef(function(prop
|
|
|
20680
20642
|
});
|
|
20681
20643
|
});
|
|
20682
20644
|
};
|
|
20683
|
-
return /* @__PURE__ */
|
|
20645
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20684
20646
|
scope: props.__scopeSlider,
|
|
20685
20647
|
startEdge: isDirectionLTR ? "left" : "right",
|
|
20686
20648
|
endEdge: isDirectionLTR ? "right" : "left",
|
|
20687
20649
|
direction: isDirectionLTR ? 1 : -1,
|
|
20688
20650
|
sizeProp: "width",
|
|
20689
20651
|
size: state.size,
|
|
20690
|
-
children: /* @__PURE__ */
|
|
20652
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20691
20653
|
ref: composeRefs(forwardedRef, sliderRef),
|
|
20692
20654
|
dir: direction
|
|
20693
20655
|
}, sliderProps), {
|
|
@@ -20751,14 +20713,14 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
20751
20713
|
});
|
|
20752
20714
|
});
|
|
20753
20715
|
};
|
|
20754
|
-
return /* @__PURE__ */
|
|
20716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20755
20717
|
scope: props.__scopeSlider,
|
|
20756
20718
|
startEdge: "bottom",
|
|
20757
20719
|
endEdge: "top",
|
|
20758
20720
|
sizeProp: "height",
|
|
20759
20721
|
size: state.size,
|
|
20760
20722
|
direction: 1,
|
|
20761
|
-
children: /* @__PURE__ */
|
|
20723
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20762
20724
|
ref: composeRefs(forwardedRef, sliderRef)
|
|
20763
20725
|
}, sliderProps), {
|
|
20764
20726
|
orientation: "vertical",
|
|
@@ -20807,7 +20769,7 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
20807
20769
|
} = _a, trackProps = __objRest(_a, [
|
|
20808
20770
|
"__scopeSlider"
|
|
20809
20771
|
]), context2 = useSliderContext(__scopeSlider);
|
|
20810
|
-
return /* @__PURE__ */
|
|
20772
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackFrame, __spreadProps(__spreadValues({
|
|
20811
20773
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
20812
20774
|
"data-orientation": context2.orientation,
|
|
20813
20775
|
orientation: context2.orientation,
|
|
@@ -20830,7 +20792,7 @@ var RANGE_NAME = "SliderTrackActive", SliderTrackActiveFrame = styled(SliderFram
|
|
|
20830
20792
|
]), context2 = useSliderContext(__scopeSlider), orientation = useSliderOrientationContext(__scopeSlider), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), valuesCount = context2.values.length, percentages = context2.values.map(function(value) {
|
|
20831
20793
|
return convertValueToPercentage(value, context2.min, context2.max);
|
|
20832
20794
|
}), offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0, offsetEnd = 100 - Math.max(...percentages);
|
|
20833
|
-
return /* @__PURE__ */
|
|
20795
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackActiveFrame, __spreadValues(__spreadProps(__spreadValues({
|
|
20834
20796
|
orientation: context2.orientation,
|
|
20835
20797
|
"data-orientation": context2.orientation,
|
|
20836
20798
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
@@ -20914,7 +20876,7 @@ var getThumbSize = function(val) {
|
|
|
20914
20876
|
left: "auto",
|
|
20915
20877
|
right: "auto"
|
|
20916
20878
|
});
|
|
20917
|
-
return /* @__PURE__ */
|
|
20879
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderThumbFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
20918
20880
|
ref: composedRefs,
|
|
20919
20881
|
role: "slider",
|
|
20920
20882
|
"aria-label": props["aria-label"] || label,
|
|
@@ -21002,7 +20964,7 @@ var getThumbSize = function(val) {
|
|
|
21002
20964
|
});
|
|
21003
20965
|
}
|
|
21004
20966
|
var SliderOriented = isHorizontal ? SliderHorizontal : SliderVertical;
|
|
21005
|
-
return /* @__PURE__ */
|
|
20967
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderProvider, {
|
|
21006
20968
|
scope: props.__scopeSlider,
|
|
21007
20969
|
disabled,
|
|
21008
20970
|
min: min2,
|
|
@@ -21012,7 +20974,7 @@ var getThumbSize = function(val) {
|
|
|
21012
20974
|
values,
|
|
21013
20975
|
orientation,
|
|
21014
20976
|
size: sizeProp,
|
|
21015
|
-
children: /* @__PURE__ */
|
|
20977
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderOriented, __spreadProps(__spreadValues({
|
|
21016
20978
|
"aria-disabled": disabled,
|
|
21017
20979
|
"data-disabled": disabled ? "" : void 0
|
|
21018
20980
|
}, sliderProps), {
|
|
@@ -21164,7 +21126,7 @@ function createSwitch(createProps) {
|
|
|
21164
21126
|
unstyled: unstyledContext,
|
|
21165
21127
|
size: sizeContext
|
|
21166
21128
|
} = styledContext, _ref, unstyled = process.env.TAMAGUI_HEADLESS === "1" ? true : (_ref = unstyledProp != null ? unstyledProp : unstyledContext) !== null && _ref !== void 0 ? _ref : false, _ref1, size = (_ref1 = sizeProp != null ? sizeProp : sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true", initialChecked = React__namespace.useRef(checked).current, initialWidth = getVariableValue(props.width, "size"), [thumbWidth, setThumbWidth] = React__namespace.useState(typeof initialWidth == "number" ? initialWidth : 0), distance = frameWidth - thumbWidth, x = initialChecked ? checked ? 0 : -distance : checked ? distance : 0;
|
|
21167
|
-
return /* @__PURE__ */
|
|
21129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Thumb2, __spreadValues(__spreadProps(__spreadValues({
|
|
21168
21130
|
ref: forwardedRef,
|
|
21169
21131
|
unstyled
|
|
21170
21132
|
}, unstyled === false && __spreadValues({
|
|
@@ -21228,7 +21190,7 @@ function createSwitch(createProps) {
|
|
|
21228
21190
|
});
|
|
21229
21191
|
}, [props.id, props.disabled]);
|
|
21230
21192
|
var renderNative = shouldRenderNativePlatform(native);
|
|
21231
|
-
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */
|
|
21193
|
+
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */ jsxRuntime.jsx(UnimplementedView, __spreadValues({
|
|
21232
21194
|
value: checked,
|
|
21233
21195
|
onValueChange: setChecked
|
|
21234
21196
|
}, nativeProps));
|
|
@@ -21242,9 +21204,9 @@ function createSwitch(createProps) {
|
|
|
21242
21204
|
var next = e2.nativeEvent.layout.width;
|
|
21243
21205
|
next !== frameWidth && setFrameInnerWidth(next);
|
|
21244
21206
|
}, _styledContext_unstyled, _ref3, unstyled = (_ref3 = (_styledContext_unstyled = styledContext.unstyled) !== null && _styledContext_unstyled !== void 0 ? _styledContext_unstyled : props.unstyled) !== null && _ref3 !== void 0 ? _ref3 : false, _styledContext_size, _ref4;
|
|
21245
|
-
return /* @__PURE__ */
|
|
21207
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SwitchContext.Provider, {
|
|
21246
21208
|
value,
|
|
21247
|
-
children: [/* @__PURE__ */
|
|
21209
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
21248
21210
|
ref: switchRef,
|
|
21249
21211
|
tag: "button"
|
|
21250
21212
|
}, isWeb), !unstyled && {
|
|
@@ -21257,7 +21219,7 @@ function createSwitch(createProps) {
|
|
|
21257
21219
|
// expected variants
|
|
21258
21220
|
checked,
|
|
21259
21221
|
disabled,
|
|
21260
|
-
children: /* @__PURE__ */
|
|
21222
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
21261
21223
|
style: measureContainerStyle,
|
|
21262
21224
|
onLayout: handleLayout,
|
|
21263
21225
|
children: frameWidth ? props.children : null
|
|
@@ -21340,13 +21302,13 @@ function createTabs(createProps) {
|
|
|
21340
21302
|
"loop",
|
|
21341
21303
|
"children"
|
|
21342
21304
|
]), context2 = useTabsContext(__scopeTabs);
|
|
21343
|
-
return /* @__PURE__ */
|
|
21305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
21344
21306
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21345
21307
|
orientation: context2.orientation,
|
|
21346
21308
|
dir: context2.dir,
|
|
21347
21309
|
loop,
|
|
21348
21310
|
asChild: true,
|
|
21349
|
-
children: /* @__PURE__ */
|
|
21311
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Group, __spreadProps(__spreadValues({
|
|
21350
21312
|
role: "tablist",
|
|
21351
21313
|
componentName: TAB_LIST_NAME,
|
|
21352
21314
|
"aria-orientation": context2.orientation,
|
|
@@ -21384,14 +21346,14 @@ function createTabs(createProps) {
|
|
|
21384
21346
|
isSelected && layout && (onInteraction == null ? void 0 : onInteraction("select", layout));
|
|
21385
21347
|
}, [isSelected, value, layout]);
|
|
21386
21348
|
var _props_onPress;
|
|
21387
|
-
return /* @__PURE__ */
|
|
21349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
21388
21350
|
name: isSelected && !disableActiveTheme ? "active" : null,
|
|
21389
|
-
children: /* @__PURE__ */
|
|
21351
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21390
21352
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21391
21353
|
asChild: true,
|
|
21392
21354
|
focusable: !disabled,
|
|
21393
21355
|
active: isSelected,
|
|
21394
|
-
children: /* @__PURE__ */
|
|
21356
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabFrame, __spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
21395
21357
|
onLayout: function(event) {
|
|
21396
21358
|
setLayout(event.nativeEvent.layout);
|
|
21397
21359
|
},
|
|
@@ -21435,7 +21397,7 @@ function createTabs(createProps) {
|
|
|
21435
21397
|
"forceMount",
|
|
21436
21398
|
"children"
|
|
21437
21399
|
]), context2 = useTabsContext(__scopeTabs), isSelected = value === context2.value, show = forceMount || isSelected, triggerId = makeTriggerId(context2.baseId, value), contentId = makeContentId(context2.baseId, value);
|
|
21438
|
-
return show ? /* @__PURE__ */
|
|
21400
|
+
return show ? /* @__PURE__ */ jsxRuntime.jsx(ContentFrame, __spreadProps(__spreadValues({
|
|
21439
21401
|
"data-state": isSelected ? "active" : "inactive",
|
|
21440
21402
|
"data-orientation": context2.orientation,
|
|
21441
21403
|
role: "tabpanel",
|
|
@@ -21480,7 +21442,7 @@ function createTabs(createProps) {
|
|
|
21480
21442
|
return v - 1;
|
|
21481
21443
|
});
|
|
21482
21444
|
});
|
|
21483
|
-
return /* @__PURE__ */
|
|
21445
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsProvider, {
|
|
21484
21446
|
scope: __scopeTabs,
|
|
21485
21447
|
baseId: React__namespace.useId(),
|
|
21486
21448
|
value,
|
|
@@ -21492,7 +21454,7 @@ function createTabs(createProps) {
|
|
|
21492
21454
|
registerTrigger,
|
|
21493
21455
|
triggersCount,
|
|
21494
21456
|
unregisterTrigger,
|
|
21495
|
-
children: /* @__PURE__ */
|
|
21457
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabsFrame, __spreadProps(__spreadValues({
|
|
21496
21458
|
direction,
|
|
21497
21459
|
// dir={direction}
|
|
21498
21460
|
"data-orientation": orientation
|
|
@@ -21710,7 +21672,7 @@ var context = createStyledContext({
|
|
|
21710
21672
|
onChange: onPressedChange,
|
|
21711
21673
|
defaultProp: defaultPressed
|
|
21712
21674
|
}), _props_onPress;
|
|
21713
|
-
return /* @__PURE__ */
|
|
21675
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
21714
21676
|
theme: pressed ? "accent" : null,
|
|
21715
21677
|
themeShallow: true
|
|
21716
21678
|
}), {
|
|
@@ -21758,18 +21720,18 @@ var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem
|
|
|
21758
21720
|
}, sizeProps), rest), {
|
|
21759
21721
|
children,
|
|
21760
21722
|
toggledStyle
|
|
21761
|
-
}), inner = /* @__PURE__ */
|
|
21723
|
+
}), inner = /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemImpl, __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
21762
21724
|
ref: forwardedRef,
|
|
21763
21725
|
// focusable={!disabled}
|
|
21764
21726
|
tabIndex: disabled ? -1 : 0,
|
|
21765
21727
|
disabled
|
|
21766
21728
|
}), groupItemProps));
|
|
21767
|
-
return /* @__PURE__ */
|
|
21729
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemProvider, {
|
|
21768
21730
|
scope: props.__scopeToggleGroup,
|
|
21769
|
-
children: /* @__PURE__ */
|
|
21731
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
21770
21732
|
color,
|
|
21771
21733
|
toggledStyle,
|
|
21772
|
-
children: context$12.rovingFocus ? /* @__PURE__ */
|
|
21734
|
+
children: context$12.rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21773
21735
|
asChild: "except-style",
|
|
21774
21736
|
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
21775
21737
|
focusable: !disabled,
|
|
@@ -21790,7 +21752,7 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
21790
21752
|
]), valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
21791
21753
|
"aria-pressed": void 0
|
|
21792
21754
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
21793
|
-
return /* @__PURE__ */
|
|
21755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Toggle, __spreadProps(__spreadValues(__spreadValues({}, typeProps), itemProps), {
|
|
21794
21756
|
ref: forwardedRef,
|
|
21795
21757
|
onPressedChange: function(pressed) {
|
|
21796
21758
|
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
@@ -21811,13 +21773,13 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
21811
21773
|
});
|
|
21812
21774
|
}, [props.id]), type === "single") {
|
|
21813
21775
|
var singleProps = toggleGroupProps;
|
|
21814
|
-
return /* @__PURE__ */
|
|
21776
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
21815
21777
|
ref: forwardedRef
|
|
21816
21778
|
}));
|
|
21817
21779
|
}
|
|
21818
21780
|
if (type === "multiple") {
|
|
21819
21781
|
var multipleProps = toggleGroupProps;
|
|
21820
|
-
return /* @__PURE__ */
|
|
21782
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
21821
21783
|
ref: forwardedRef
|
|
21822
21784
|
}));
|
|
21823
21785
|
}
|
|
@@ -21846,7 +21808,7 @@ var {
|
|
|
21846
21808
|
defaultProp: defaultValue2,
|
|
21847
21809
|
onChange: onValueChange
|
|
21848
21810
|
});
|
|
21849
|
-
return /* @__PURE__ */
|
|
21811
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
21850
21812
|
scope: props.__scopeToggleGroup,
|
|
21851
21813
|
type: "single",
|
|
21852
21814
|
value: value ? [value] : [],
|
|
@@ -21855,7 +21817,7 @@ var {
|
|
|
21855
21817
|
onItemDeactivate: React.useCallback(function() {
|
|
21856
21818
|
return disableDeactivation ? null : setValue("");
|
|
21857
21819
|
}, [setValue, disableDeactivation]),
|
|
21858
|
-
children: /* @__PURE__ */
|
|
21820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupSingleProps), {
|
|
21859
21821
|
ref: forwardedRef
|
|
21860
21822
|
}))
|
|
21861
21823
|
});
|
|
@@ -21888,14 +21850,14 @@ var {
|
|
|
21888
21850
|
});
|
|
21889
21851
|
});
|
|
21890
21852
|
}, [setValue]);
|
|
21891
|
-
return /* @__PURE__ */
|
|
21853
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
21892
21854
|
scope: props.__scopeToggleGroup,
|
|
21893
21855
|
type: "multiple",
|
|
21894
21856
|
value,
|
|
21895
21857
|
defaultValue: value,
|
|
21896
21858
|
onItemActivate: handleButtonActivate,
|
|
21897
21859
|
onItemDeactivate: handleButtonDeactivate,
|
|
21898
|
-
children: /* @__PURE__ */
|
|
21860
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupMultipleProps), {
|
|
21899
21861
|
ref: forwardedRef
|
|
21900
21862
|
}))
|
|
21901
21863
|
});
|
|
@@ -21954,21 +21916,21 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
21954
21916
|
}, toggleGroupProps), adjustedSize = getVariableValue(getSize(sizeProp, {
|
|
21955
21917
|
shift: sizeAdjust
|
|
21956
21918
|
})), size = Math.round(adjustedSize * 0.45);
|
|
21957
|
-
return /* @__PURE__ */
|
|
21919
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext, {
|
|
21958
21920
|
scope: __scopeToggleGroup,
|
|
21959
21921
|
rovingFocus,
|
|
21960
21922
|
disabled,
|
|
21961
21923
|
size,
|
|
21962
|
-
children: /* @__PURE__ */
|
|
21924
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
21963
21925
|
color,
|
|
21964
21926
|
toggledStyle,
|
|
21965
|
-
children: rovingFocus ? /* @__PURE__ */
|
|
21927
|
+
children: rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
21966
21928
|
asChild: "except-style",
|
|
21967
21929
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
21968
21930
|
orientation,
|
|
21969
21931
|
dir: direction,
|
|
21970
21932
|
loop,
|
|
21971
|
-
children: /* @__PURE__ */
|
|
21933
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
21972
21934
|
"aria-orientation": orientation,
|
|
21973
21935
|
orientation,
|
|
21974
21936
|
// axis={orientation}
|
|
@@ -21976,7 +21938,7 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
21976
21938
|
"data-disabled": disabled ? "" : void 0,
|
|
21977
21939
|
unstyled
|
|
21978
21940
|
}, commonProps))
|
|
21979
|
-
}) : /* @__PURE__ */
|
|
21941
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
21980
21942
|
"aria-orientation": orientation,
|
|
21981
21943
|
ref: forwardedRef,
|
|
21982
21944
|
orientation,
|
|
@@ -22072,7 +22034,7 @@ VisuallyHidden.isVisuallyHidden = true;
|
|
|
22072
22034
|
const createTamagui = createTamagui$1;
|
|
22073
22035
|
const TamaguiProvider = (_d) => {
|
|
22074
22036
|
var _e = _d, { children } = _e, props = __objRest(_e, ["children"]);
|
|
22075
|
-
return /* @__PURE__ */
|
|
22037
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$1, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxRuntime.jsx(ZIndexStackContext.Provider, { value: 1, children: /* @__PURE__ */ jsxRuntime.jsx(PortalProvider, { shouldAddRootHost: true, children }) }) }));
|
|
22076
22038
|
};
|
|
22077
22039
|
const AnchorFrame = styled(SizableText, {
|
|
22078
22040
|
name: "Anchor",
|
|
@@ -22082,7 +22044,7 @@ const AnchorFrame = styled(SizableText, {
|
|
|
22082
22044
|
const Anchor = AnchorFrame.styleable(
|
|
22083
22045
|
(_f, ref) => {
|
|
22084
22046
|
var _g = _f, { href, target } = _g, props = __objRest(_g, ["href", "target"]);
|
|
22085
|
-
return /* @__PURE__ */
|
|
22047
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22086
22048
|
AnchorFrame,
|
|
22087
22049
|
__spreadProps(__spreadValues(__spreadValues({}, props), {
|
|
22088
22050
|
onPress: (event) => {
|
|
@@ -22360,7 +22322,7 @@ var StyledInput = styled(TextInput, styledBody[0], styledBody[1]), Input = Style
|
|
|
22360
22322
|
onSelectionChange: onSelectionChange ? handleSelectionChange : void 0,
|
|
22361
22323
|
autoComplete
|
|
22362
22324
|
});
|
|
22363
|
-
return /* @__PURE__ */
|
|
22325
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledInput, __spreadValues({
|
|
22364
22326
|
ref: composedRefs
|
|
22365
22327
|
}, finalProps));
|
|
22366
22328
|
});
|
|
@@ -22393,7 +22355,7 @@ const Spinner = YStack.styleable((props, ref) => {
|
|
|
22393
22355
|
if (color && color[0] === "$") {
|
|
22394
22356
|
color = variableToString(theme[color]);
|
|
22395
22357
|
}
|
|
22396
|
-
return /* @__PURE__ */
|
|
22358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({ ref }, stackProps), { children: /* @__PURE__ */ jsxRuntime.jsx(ActivityIndicator, { size, color }) }));
|
|
22397
22359
|
});
|
|
22398
22360
|
const Text = styled(Text$2, {
|
|
22399
22361
|
variants: {
|