tamagui 2.0.0-1768530912818 → 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 +530 -485
- package/dist/test.cjs +530 -717
- 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() {
|
|
@@ -1956,14 +1908,14 @@ function requireNormalizeColor() {
|
|
|
1956
1908
|
return (int % 360 + 360) % 360 / 360;
|
|
1957
1909
|
}
|
|
1958
1910
|
function parse1(str) {
|
|
1959
|
-
const
|
|
1960
|
-
if (
|
|
1911
|
+
const num2 = parseFloat(str);
|
|
1912
|
+
if (num2 < 0) {
|
|
1961
1913
|
return 0;
|
|
1962
1914
|
}
|
|
1963
|
-
if (
|
|
1915
|
+
if (num2 > 1) {
|
|
1964
1916
|
return 255;
|
|
1965
1917
|
}
|
|
1966
|
-
return Math.round(
|
|
1918
|
+
return Math.round(num2 * 255);
|
|
1967
1919
|
}
|
|
1968
1920
|
function parsePercentage(str) {
|
|
1969
1921
|
const int = parseFloat(str);
|
|
@@ -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
|
});
|
|
@@ -8850,13 +8802,14 @@ var webOnlyStylePropsView = {
|
|
|
8850
8802
|
borderLeftStyle: true,
|
|
8851
8803
|
borderRightStyle: true,
|
|
8852
8804
|
borderTopStyle: true,
|
|
8853
|
-
boxSizing:
|
|
8805
|
+
// boxSizing: now supported in RN 0.77+ (New Architecture)
|
|
8854
8806
|
caretColor: true,
|
|
8855
8807
|
clipPath: true,
|
|
8856
8808
|
contain: true,
|
|
8857
8809
|
containerType: true,
|
|
8858
8810
|
content: true,
|
|
8859
8811
|
cursor: true,
|
|
8812
|
+
// NOTE: cursor is supported on iOS 17+ for trackpad/stylus
|
|
8860
8813
|
float: true,
|
|
8861
8814
|
mask: true,
|
|
8862
8815
|
maskBorder: true,
|
|
@@ -8875,13 +8828,10 @@ var webOnlyStylePropsView = {
|
|
|
8875
8828
|
maskRepeat: true,
|
|
8876
8829
|
maskSize: true,
|
|
8877
8830
|
maskType: true,
|
|
8878
|
-
mixBlendMode:
|
|
8831
|
+
// mixBlendMode: now supported in RN 0.77+ (New Architecture)
|
|
8879
8832
|
objectFit: true,
|
|
8880
8833
|
objectPosition: true,
|
|
8881
|
-
|
|
8882
|
-
outlineStyle: true,
|
|
8883
|
-
outlineWidth: true,
|
|
8884
|
-
outlineColor: true,
|
|
8834
|
+
// outline*: now supported in RN 0.77+ (New Architecture)
|
|
8885
8835
|
overflowBlock: true,
|
|
8886
8836
|
overflowInline: true,
|
|
8887
8837
|
overflowX: true,
|
|
@@ -8937,7 +8887,7 @@ var textColors = {
|
|
|
8937
8887
|
zIndex: {
|
|
8938
8888
|
zIndex: true
|
|
8939
8889
|
},
|
|
8940
|
-
color: __spreadValues({
|
|
8890
|
+
color: __spreadProps(__spreadValues({
|
|
8941
8891
|
backgroundColor: true,
|
|
8942
8892
|
borderColor: true,
|
|
8943
8893
|
borderBlockStartColor: true,
|
|
@@ -8953,7 +8903,10 @@ var textColors = {
|
|
|
8953
8903
|
borderEndColor: true,
|
|
8954
8904
|
borderStartColor: true,
|
|
8955
8905
|
shadowColor: true
|
|
8956
|
-
}, textColors)
|
|
8906
|
+
}, textColors), {
|
|
8907
|
+
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
8908
|
+
outlineColor: true
|
|
8909
|
+
})
|
|
8957
8910
|
}, stylePropsUnitless = {
|
|
8958
8911
|
WebkitLineClamp: true,
|
|
8959
8912
|
animationIterationCount: true,
|
|
@@ -9006,7 +8959,7 @@ var textColors = {
|
|
|
9006
8959
|
rotateY: true,
|
|
9007
8960
|
rotateX: true,
|
|
9008
8961
|
rotateZ: true
|
|
9009
|
-
}, stylePropsView =
|
|
8962
|
+
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
9010
8963
|
backfaceVisibility: true,
|
|
9011
8964
|
borderBottomEndRadius: true,
|
|
9012
8965
|
borderBottomStartRadius: true,
|
|
@@ -9096,12 +9049,13 @@ var textColors = {
|
|
|
9096
9049
|
elevationAndroid: true
|
|
9097
9050
|
} : {}), {
|
|
9098
9051
|
boxShadow: true,
|
|
9099
|
-
filter: true
|
|
9100
|
-
|
|
9052
|
+
filter: true,
|
|
9053
|
+
// RN 0.76/0.77+ style props (New Architecture)
|
|
9101
9054
|
boxSizing: true,
|
|
9102
9055
|
mixBlendMode: true,
|
|
9056
|
+
isolation: true,
|
|
9103
9057
|
outlineColor: true,
|
|
9104
|
-
|
|
9058
|
+
outlineOffset: true,
|
|
9105
9059
|
outlineStyle: true,
|
|
9106
9060
|
outlineWidth: true
|
|
9107
9061
|
}), stylePropsFont = {
|
|
@@ -9720,9 +9674,58 @@ var _loop = function(parent) {
|
|
|
9720
9674
|
EXPANSIONS[parent] = EXPANSIONS[parent].map(function(k) {
|
|
9721
9675
|
return `${prefix}${k}`;
|
|
9722
9676
|
});
|
|
9677
|
+
}, num = function(v) {
|
|
9678
|
+
return Number.parseFloat(v) || 0;
|
|
9679
|
+
}, parseBoxShadowStr = function(s2) {
|
|
9680
|
+
return s2.split(/,(?![^(]*\))/).map(function(sh) {
|
|
9681
|
+
var p = sh.trim().split(/\s+/), i = p[0] === "inset" ? 1 : 0, o = {
|
|
9682
|
+
offsetX: num(p[i++]),
|
|
9683
|
+
offsetY: num(p[i++])
|
|
9684
|
+
};
|
|
9685
|
+
return p[0] === "inset" && (o.inset = true), p[i] && /^-?[\d.]/.test(p[i]) && (o.blurRadius = num(p[i++])), p[i] && /^-?[\d.]/.test(p[i]) && (o.spreadDistance = num(p[i++])), p[i] && (o.color = p.slice(i).join(" ")), o;
|
|
9686
|
+
});
|
|
9687
|
+
}, simpleFilters = /* @__PURE__ */ new Set(["brightness", "opacity", "contrast", "grayscale", "invert", "saturate", "sepia", "blur"]), parseFilterStr = function(s2) {
|
|
9688
|
+
var r = [], _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
9689
|
+
try {
|
|
9690
|
+
for (var _iterator = s2.matchAll(/(\w+)\(([^)]+)\)/g)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
9691
|
+
var [, fn, val] = _step.value, n = +val || 0;
|
|
9692
|
+
if (simpleFilters.has(fn)) r.push({
|
|
9693
|
+
[fn]: n
|
|
9694
|
+
});
|
|
9695
|
+
else if (fn === "hueRotate" || fn === "hue-rotate") r.push({
|
|
9696
|
+
hueRotate: val
|
|
9697
|
+
});
|
|
9698
|
+
else if (fn === "dropShadow" || fn === "drop-shadow") {
|
|
9699
|
+
var p = val.trim().split(/\s+/), ds = {
|
|
9700
|
+
offsetX: num(p[0]),
|
|
9701
|
+
offsetY: num(p[1])
|
|
9702
|
+
};
|
|
9703
|
+
p[2] && /^-?[\d.]/.test(p[2]) ? (ds.blurRadius = num(p[2]), p[3] && (ds.color = p.slice(3).join(" "))) : p[2] && (ds.color = p.slice(2).join(" ")), r.push({
|
|
9704
|
+
dropShadow: ds
|
|
9705
|
+
});
|
|
9706
|
+
}
|
|
9707
|
+
}
|
|
9708
|
+
} catch (err) {
|
|
9709
|
+
_didIteratorError = true, _iteratorError = err;
|
|
9710
|
+
} finally {
|
|
9711
|
+
try {
|
|
9712
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
9713
|
+
} finally {
|
|
9714
|
+
if (_didIteratorError) throw _iteratorError;
|
|
9715
|
+
}
|
|
9716
|
+
}
|
|
9717
|
+
return r;
|
|
9723
9718
|
};
|
|
9724
9719
|
function expandStyle(key, value) {
|
|
9725
9720
|
if (isAndroid && key === "elevationAndroid") return [["elevation", value]];
|
|
9721
|
+
if (key === "boxShadow") {
|
|
9722
|
+
if (typeof value == "string") return [["boxShadow", parseBoxShadowStr(value)]];
|
|
9723
|
+
if (value && !Array.isArray(value)) return [["boxShadow", [value]]];
|
|
9724
|
+
}
|
|
9725
|
+
if (key === "filter") {
|
|
9726
|
+
if (typeof value == "string") return [["filter", parseFilterStr(value)]];
|
|
9727
|
+
if (value && !Array.isArray(value)) return [["filter", [value]]];
|
|
9728
|
+
}
|
|
9726
9729
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
9727
9730
|
return [key2, value];
|
|
9728
9731
|
});
|
|
@@ -9731,18 +9734,17 @@ function expandStyle(key, value) {
|
|
|
9731
9734
|
});
|
|
9732
9735
|
if (key in webToNativeDynamicExpansion) return webToNativeDynamicExpansion[key](value);
|
|
9733
9736
|
}
|
|
9734
|
-
var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"],
|
|
9737
|
+
var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"], EXPANSIONS = {
|
|
9735
9738
|
borderColor: ["TopColor", "RightColor", "BottomColor", "LeftColor"],
|
|
9736
9739
|
borderRadius: ["TopLeftRadius", "TopRightRadius", "BottomRightRadius", "BottomLeftRadius"],
|
|
9737
9740
|
borderWidth: ["TopWidth", "RightWidth", "BottomWidth", "LeftWidth"],
|
|
9738
9741
|
margin: all,
|
|
9739
9742
|
marginHorizontal: horiz,
|
|
9740
9743
|
marginVertical: vert,
|
|
9741
|
-
overscrollBehavior: xy,
|
|
9742
9744
|
padding: all,
|
|
9743
9745
|
paddingHorizontal: horiz,
|
|
9744
9746
|
paddingVertical: vert
|
|
9745
|
-
}
|
|
9747
|
+
};
|
|
9746
9748
|
for (var parent in EXPANSIONS) _loop(parent);
|
|
9747
9749
|
var cache$2 = /* @__PURE__ */ new WeakMap(), getVariantExtras = function(styleState) {
|
|
9748
9750
|
if (cache$2.has(styleState)) return cache$2.get(styleState);
|
|
@@ -9882,14 +9884,47 @@ function _type_of$5(obj) {
|
|
|
9882
9884
|
"@swc/helpers - typeof";
|
|
9883
9885
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9884
9886
|
}
|
|
9885
|
-
var
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9887
|
+
var resolveTok = function(v, cat, sp, ss) {
|
|
9888
|
+
if (typeof v == "string" && v[0] === "$") {
|
|
9889
|
+
var r = getTokenForKey(cat, v, sp, ss);
|
|
9890
|
+
return cat === "size" ? r != null && +r || 0 : r != null ? String(r) : v;
|
|
9891
|
+
}
|
|
9892
|
+
return cat === "size" ? typeof v == "number" ? v : +v || 0 : v;
|
|
9893
|
+
}, boxShadowObjResolve = function(v, sp, ss) {
|
|
9894
|
+
return (Array.isArray(v) ? v : [v]).map(function(o) {
|
|
9895
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, o.inset && {
|
|
9896
|
+
inset: true
|
|
9897
|
+
}), {
|
|
9898
|
+
offsetX: resolveTok(o.offsetX, "size", sp, ss),
|
|
9899
|
+
offsetY: resolveTok(o.offsetY, "size", sp, ss)
|
|
9900
|
+
}), o.blurRadius != null && {
|
|
9901
|
+
blurRadius: resolveTok(o.blurRadius, "size", sp, ss)
|
|
9902
|
+
}), o.spreadDistance != null && {
|
|
9903
|
+
spreadDistance: resolveTok(o.spreadDistance, "size", sp, ss)
|
|
9904
|
+
}), o.color != null && {
|
|
9905
|
+
color: resolveTok(o.color, "color", sp, ss)
|
|
9906
|
+
});
|
|
9907
|
+
});
|
|
9908
|
+
}, filterObjResolve = function(v, sp, ss) {
|
|
9909
|
+
return (Array.isArray(v) ? v : [v]).map(function(o) {
|
|
9910
|
+
if ("blur" in o) return {
|
|
9911
|
+
blur: resolveTok(o.blur, "size", sp, ss)
|
|
9912
|
+
};
|
|
9913
|
+
if ("dropShadow" in o) {
|
|
9914
|
+
var ds = o.dropShadow;
|
|
9915
|
+
return {
|
|
9916
|
+
dropShadow: __spreadValues(__spreadValues({
|
|
9917
|
+
offsetX: resolveTok(ds.offsetX, "size", sp, ss),
|
|
9918
|
+
offsetY: resolveTok(ds.offsetY, "size", sp, ss)
|
|
9919
|
+
}, ds.blurRadius != null && {
|
|
9920
|
+
blurRadius: resolveTok(ds.blurRadius, "size", sp, ss)
|
|
9921
|
+
}), ds.color != null && {
|
|
9922
|
+
color: resolveTok(ds.color, "color", sp, ss)
|
|
9923
|
+
})
|
|
9924
|
+
};
|
|
9925
|
+
}
|
|
9926
|
+
return o;
|
|
9927
|
+
});
|
|
9893
9928
|
}, propMapper = function(key, value, styleState, disabled, map) {
|
|
9894
9929
|
if (disabled) return map(key, value);
|
|
9895
9930
|
if (lastFontFamilyToken = null, !(!isAndroid && key === "elevationAndroid")) {
|
|
@@ -9918,13 +9953,13 @@ var shorthandStringProps = {
|
|
|
9918
9953
|
}
|
|
9919
9954
|
styleProps2.disableExpandShorthands || key in conf2.shorthands && (key = conf2.shorthands[key]);
|
|
9920
9955
|
var originalValue = value;
|
|
9921
|
-
if (value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps2, styleState) : (
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
)), value != null) {
|
|
9956
|
+
if (value != null && (key === "boxShadow" && (typeof value > "u" ? "undefined" : _type_of$5(value)) === "object" ? value = boxShadowObjResolve(value, styleProps2, styleState) : key === "filter" && (typeof value > "u" ? "undefined" : _type_of$5(value)) === "object" ? value = filterObjResolve(value, styleProps2, styleState) : typeof value == "string" && value[0] === "$" ? value = getTokenForKey(key, value, styleProps2, styleState) : key === "boxShadow" && typeof value == "string" && value.includes("$") ? value = value.replace(/(\$[\w.-]+)/g, function(t2) {
|
|
9957
|
+
var cat = /^\$-?\d/.test(t2) ? "size" : "color", r = getTokenForKey(cat, t2, styleProps2, styleState);
|
|
9958
|
+
return r != null ? String(r) : t2;
|
|
9959
|
+
}) : key === "filter" && typeof value == "string" && value.includes("$") ? value = value.replace(/(\$[\w.-]+)/g, function(t2) {
|
|
9960
|
+
var cat = /^\$-?\d/.test(t2) ? "size" : "color", r = getTokenForKey(cat, t2, styleProps2, styleState);
|
|
9961
|
+
return r != null ? String(r) : t2;
|
|
9962
|
+
}) : isVariable(value) ? value = resolveVariableValue(key, value, styleProps2.resolveValues) : isRemValue(value) && (value = resolveRem(value))), value != null) {
|
|
9928
9963
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
9929
9964
|
var expanded = styleProps2.noExpand ? null : expandStyle(key, value);
|
|
9930
9965
|
if (expanded) for (var max2 = expanded.length, i = 0; i < max2; i++) {
|
|
@@ -10547,9 +10582,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
10547
10582
|
}))), {
|
|
10548
10583
|
opacity: 1,
|
|
10549
10584
|
scale: 1,
|
|
10585
|
+
scaleX: 1,
|
|
10586
|
+
scaleY: 1,
|
|
10550
10587
|
rotate: "0deg",
|
|
10551
|
-
rotateY: "0deg",
|
|
10552
10588
|
rotateX: "0deg",
|
|
10589
|
+
rotateY: "0deg",
|
|
10590
|
+
rotateZ: "0deg",
|
|
10591
|
+
skewX: "0deg",
|
|
10592
|
+
skewY: "0deg",
|
|
10553
10593
|
x: 0,
|
|
10554
10594
|
y: 0,
|
|
10555
10595
|
borderRadius: 0
|
|
@@ -10691,7 +10731,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10691
10731
|
forceClassName
|
|
10692
10732
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
10693
10733
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
10694
|
-
children = /* @__PURE__ */
|
|
10734
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
10695
10735
|
value: themeState.id,
|
|
10696
10736
|
children
|
|
10697
10737
|
});
|
|
@@ -10705,7 +10745,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10705
10745
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
10706
10746
|
if (!parentState) throw new Error("‼️010");
|
|
10707
10747
|
children = React.Children.toArray(children).map(function(child) {
|
|
10708
|
-
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, {
|
|
10709
10749
|
name: parentState.name,
|
|
10710
10750
|
children: child.props.children
|
|
10711
10751
|
})) : child;
|
|
@@ -10731,21 +10771,21 @@ function themeable(Component, staticConfig) {
|
|
|
10731
10771
|
}
|
|
10732
10772
|
var element = (
|
|
10733
10773
|
// @ts-expect-error its ok
|
|
10734
|
-
/* @__PURE__ */
|
|
10774
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
10735
10775
|
ref
|
|
10736
10776
|
}, rest), {
|
|
10737
10777
|
"data-disable-theme": true
|
|
10738
10778
|
}))
|
|
10739
10779
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
10740
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;
|
|
10741
|
-
var contents = /* @__PURE__ */
|
|
10781
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
10742
10782
|
"disable-child-theme": true
|
|
10743
10783
|
}, filteredProps), {
|
|
10744
10784
|
children: element
|
|
10745
10785
|
}));
|
|
10746
10786
|
if (context2) {
|
|
10747
10787
|
var Provider = context2.Provider, contextValue = React.useContext(context2);
|
|
10748
|
-
contents = /* @__PURE__ */
|
|
10788
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
10749
10789
|
children: contents
|
|
10750
10790
|
}));
|
|
10751
10791
|
}
|
|
@@ -10760,7 +10800,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
10760
10800
|
children,
|
|
10761
10801
|
enabled
|
|
10762
10802
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
10763
|
-
return /* @__PURE__ */
|
|
10803
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
10764
10804
|
value: enabled != null ? enabled : existingValue,
|
|
10765
10805
|
children
|
|
10766
10806
|
});
|
|
@@ -10878,7 +10918,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10878
10918
|
var {
|
|
10879
10919
|
children
|
|
10880
10920
|
} = param;
|
|
10881
|
-
return /* @__PURE__ */
|
|
10921
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
10882
10922
|
children
|
|
10883
10923
|
});
|
|
10884
10924
|
};
|
|
@@ -11200,24 +11240,27 @@ function createComponent(staticConfig) {
|
|
|
11200
11240
|
});
|
|
11201
11241
|
return;
|
|
11202
11242
|
}
|
|
11203
|
-
var tm;
|
|
11204
11243
|
if (state.unmounted) {
|
|
11205
|
-
if (
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
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
|
+
}
|
|
11212
11256
|
setStateShallow({
|
|
11213
11257
|
unmounted: false
|
|
11214
11258
|
});
|
|
11215
|
-
return;
|
|
11216
11259
|
}
|
|
11217
11260
|
return function() {
|
|
11218
11261
|
componentSetStates.delete(setState);
|
|
11219
11262
|
};
|
|
11220
|
-
}, [state.unmounted,
|
|
11263
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11221
11264
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11222
11265
|
groupContext: allGroupContexts,
|
|
11223
11266
|
setStateShallow,
|
|
@@ -11305,19 +11348,19 @@ function createComponent(staticConfig) {
|
|
|
11305
11348
|
!isHOC && ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11306
11349
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11307
11350
|
var renderReset = needsReset || hasEverReset;
|
|
11308
|
-
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */
|
|
11351
|
+
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence2, {
|
|
11309
11352
|
disabled: !needsReset,
|
|
11310
11353
|
children: content
|
|
11311
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11354
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11312
11355
|
setParentFocusState: setStateShallow,
|
|
11313
11356
|
children: content
|
|
11314
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11357
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11315
11358
|
value: allGroupContexts,
|
|
11316
11359
|
children: content
|
|
11317
11360
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11318
11361
|
var Provider = contextForOverride.Provider;
|
|
11319
11362
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11320
|
-
|
|
11363
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11321
11364
|
__disableMergeDefaultValues: true
|
|
11322
11365
|
}, overriddenContextProps), {
|
|
11323
11366
|
children: content
|
|
@@ -11931,9 +11974,9 @@ function useThemeName() {
|
|
|
11931
11974
|
}
|
|
11932
11975
|
var Configuration = function(props) {
|
|
11933
11976
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
11934
|
-
return /* @__PURE__ */
|
|
11977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
11935
11978
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
11936
|
-
children: /* @__PURE__ */
|
|
11979
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
11937
11980
|
});
|
|
11938
11981
|
};
|
|
11939
11982
|
function FontLanguage(param) {
|
|
@@ -11944,7 +11987,7 @@ function FontLanguage(param) {
|
|
|
11944
11987
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
11945
11988
|
return props;
|
|
11946
11989
|
}, [JSON.stringify(props)]);
|
|
11947
|
-
return /* @__PURE__ */
|
|
11990
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
11948
11991
|
language,
|
|
11949
11992
|
children
|
|
11950
11993
|
}));
|
|
@@ -11952,7 +11995,7 @@ function FontLanguage(param) {
|
|
|
11952
11995
|
var ThemeProvider = function(props) {
|
|
11953
11996
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
11954
11997
|
var forceClassName = addThemeClassName === void 0;
|
|
11955
|
-
return /* @__PURE__ */
|
|
11998
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
11956
11999
|
className: props.className,
|
|
11957
12000
|
name: props.defaultTheme,
|
|
11958
12001
|
forceClassName,
|
|
@@ -11976,11 +12019,11 @@ function TamaguiProvider$2(param) {
|
|
|
11976
12019
|
}, []);
|
|
11977
12020
|
var memoizedInsets = React.useMemo(function() {
|
|
11978
12021
|
return insets;
|
|
11979
|
-
}, [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__ */
|
|
11980
|
-
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, {
|
|
11981
12024
|
animationDriver: config == null ? void 0 : config.animations,
|
|
11982
12025
|
insets: memoizedInsets,
|
|
11983
|
-
children: /* @__PURE__ */
|
|
12026
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
11984
12027
|
defaultTheme,
|
|
11985
12028
|
reset,
|
|
11986
12029
|
className,
|
|
@@ -11988,10 +12031,10 @@ function TamaguiProvider$2(param) {
|
|
|
11988
12031
|
})
|
|
11989
12032
|
})
|
|
11990
12033
|
});
|
|
11991
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12034
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
11992
12035
|
enabled: true,
|
|
11993
12036
|
children: contents
|
|
11994
|
-
})), /* @__PURE__ */
|
|
12037
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
11995
12038
|
children: [contents, false]
|
|
11996
12039
|
});
|
|
11997
12040
|
}
|
|
@@ -12113,8 +12156,8 @@ function spacedChildren(props) {
|
|
|
12113
12156
|
spaceFlex,
|
|
12114
12157
|
separator,
|
|
12115
12158
|
key: child.key
|
|
12116
|
-
})), isEmpty || !child || child.key && !isZStack ? final.push(child) : final.push(/* @__PURE__ */
|
|
12117
|
-
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, {
|
|
12118
12161
|
children: child
|
|
12119
12162
|
}) : child
|
|
12120
12163
|
}, `${index2}0t`)), !(isUnspaced(child) && index2 === 0) && !isZStack) {
|
|
@@ -12124,7 +12167,7 @@ function spacedChildren(props) {
|
|
|
12124
12167
|
direction,
|
|
12125
12168
|
space,
|
|
12126
12169
|
spaceFlex
|
|
12127
|
-
})), final.push(/* @__PURE__ */
|
|
12170
|
+
})), final.push(/* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
12128
12171
|
children: separator
|
|
12129
12172
|
}, `${index2}03t`)), hasSpace && final.push(createSpacer({
|
|
12130
12173
|
key: `_${index2}01t`,
|
|
@@ -12157,7 +12200,7 @@ function createSpacer(param) {
|
|
|
12157
12200
|
space,
|
|
12158
12201
|
spaceFlex
|
|
12159
12202
|
} = param;
|
|
12160
|
-
return /* @__PURE__ */
|
|
12203
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Spacer, __spreadValues({
|
|
12161
12204
|
// @ts-ignore
|
|
12162
12205
|
size: space,
|
|
12163
12206
|
// @ts-ignore
|
|
@@ -12195,7 +12238,7 @@ function useConstant(fn) {
|
|
|
12195
12238
|
}
|
|
12196
12239
|
var PresenceContext = /* @__PURE__ */ React__namespace.createContext(null), ResetPresence = function(props) {
|
|
12197
12240
|
var parent = React__namespace.useContext(PresenceContext);
|
|
12198
|
-
return /* @__PURE__ */
|
|
12241
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12199
12242
|
value: props.disable ? parent : null,
|
|
12200
12243
|
children: props.children
|
|
12201
12244
|
});
|
|
@@ -12284,7 +12327,7 @@ var PresenceChild = /* @__PURE__ */ React__namespace.memo(function(param) {
|
|
|
12284
12327
|
});
|
|
12285
12328
|
}, [isPresent2]), React__namespace.useEffect(function() {
|
|
12286
12329
|
!isPresent2 && !presenceChildren.size && (onExitComplete == null ? void 0 : onExitComplete());
|
|
12287
|
-
}, [isPresent2]), /* @__PURE__ */
|
|
12330
|
+
}, [isPresent2]), /* @__PURE__ */ jsxRuntime.jsx(PresenceContext.Provider, {
|
|
12288
12331
|
value: context2,
|
|
12289
12332
|
children
|
|
12290
12333
|
});
|
|
@@ -12322,14 +12365,14 @@ var AnimatePresence = function(param) {
|
|
|
12322
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;
|
|
12323
12366
|
updateChildLookup(filteredChildren, allChildren);
|
|
12324
12367
|
var isInitialRender = React.useRef(true);
|
|
12325
|
-
if (passThrough) return /* @__PURE__ */
|
|
12368
|
+
if (passThrough) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12326
12369
|
children
|
|
12327
12370
|
});
|
|
12328
12371
|
if (useIsomorphicLayoutEffect(function() {
|
|
12329
12372
|
isInitialRender.current = false;
|
|
12330
|
-
}, []), isInitialRender.current) return /* @__PURE__ */
|
|
12373
|
+
}, []), isInitialRender.current) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12331
12374
|
children: filteredChildren.map(function(child) {
|
|
12332
|
-
return /* @__PURE__ */
|
|
12375
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12333
12376
|
isPresent: true,
|
|
12334
12377
|
enterExitVariant,
|
|
12335
12378
|
exitVariant,
|
|
@@ -12355,7 +12398,7 @@ var AnimatePresence = function(param) {
|
|
|
12355
12398
|
return presentChild.key === key2;
|
|
12356
12399
|
});
|
|
12357
12400
|
presentChildren.current.splice(removeIndex, 1), exiting.size || (presentChildren.current = filteredChildren, forceRender(), onExitComplete == null ? void 0 : onExitComplete());
|
|
12358
|
-
}, exitingComponent = /* @__PURE__ */
|
|
12401
|
+
}, exitingComponent = /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12359
12402
|
isPresent: false,
|
|
12360
12403
|
onExitComplete: onExit,
|
|
12361
12404
|
presenceAffectsLayout,
|
|
@@ -12370,7 +12413,7 @@ var AnimatePresence = function(param) {
|
|
|
12370
12413
|
}
|
|
12371
12414
|
}), childrenToRender = childrenToRender.map(function(child) {
|
|
12372
12415
|
var key2 = child.key;
|
|
12373
|
-
return exiting.has(key2) ? child : /* @__PURE__ */
|
|
12416
|
+
return exiting.has(key2) ? child : /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, {
|
|
12374
12417
|
isPresent: true,
|
|
12375
12418
|
exitVariant,
|
|
12376
12419
|
enterVariant,
|
|
@@ -12379,7 +12422,7 @@ var AnimatePresence = function(param) {
|
|
|
12379
12422
|
custom,
|
|
12380
12423
|
children: child
|
|
12381
12424
|
}, getChildKey(child));
|
|
12382
|
-
}), presentChildren.current = childrenToRender, /* @__PURE__ */
|
|
12425
|
+
}), presentChildren.current = childrenToRender, /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
12383
12426
|
children: exiting.size ? childrenToRender : (
|
|
12384
12427
|
// biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
|
|
12385
12428
|
childrenToRender.map(function(child) {
|
|
@@ -12444,7 +12487,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12444
12487
|
defaultProp: defaultOpen,
|
|
12445
12488
|
onChange: onOpenChange
|
|
12446
12489
|
});
|
|
12447
|
-
return /* @__PURE__ */
|
|
12490
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleProvider, {
|
|
12448
12491
|
scope: __scopeCollapsible,
|
|
12449
12492
|
disabled,
|
|
12450
12493
|
contentId: React__namespace.useId(),
|
|
@@ -12454,7 +12497,7 @@ var COLLAPSIBLE_NAME = "Collapsible", {
|
|
|
12454
12497
|
return !prevOpen;
|
|
12455
12498
|
});
|
|
12456
12499
|
}, [setOpen]),
|
|
12457
|
-
children: /* @__PURE__ */
|
|
12500
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack$1, __spreadProps(__spreadValues({
|
|
12458
12501
|
"data-state": getState$4(open2),
|
|
12459
12502
|
"data-disabled": disabled ? "" : void 0
|
|
12460
12503
|
}, collapsibleProps), {
|
|
@@ -12474,7 +12517,7 @@ var TRIGGER_NAME$4 = "CollapsibleTrigger", CollapsibleTriggerFrame = styled(Stac
|
|
|
12474
12517
|
"__scopeCollapsible",
|
|
12475
12518
|
"children"
|
|
12476
12519
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12477
|
-
return /* @__PURE__ */
|
|
12520
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollapsibleTriggerFrame, __spreadProps(__spreadValues({
|
|
12478
12521
|
"aria-controls": context2.contentId,
|
|
12479
12522
|
"aria-expanded": context2.open || false,
|
|
12480
12523
|
"data-state": getState$4(context2.open),
|
|
@@ -12502,11 +12545,11 @@ var CONTENT_NAME$3 = "CollapsibleContent", CollapsibleContentFrame = styled(Stac
|
|
|
12502
12545
|
// @ts-expect-error
|
|
12503
12546
|
"__scopeCollapsible"
|
|
12504
12547
|
]), context2 = useCollapsibleContext(__scopeCollapsible);
|
|
12505
|
-
return /* @__PURE__ */
|
|
12506
|
-
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({
|
|
12507
12550
|
ref: forwardedRef
|
|
12508
12551
|
}, contentProps), {
|
|
12509
|
-
children: /* @__PURE__ */
|
|
12552
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
12510
12553
|
children
|
|
12511
12554
|
})
|
|
12512
12555
|
})) : null
|
|
@@ -12921,7 +12964,7 @@ var usePressability = require("react-native/Libraries/Pressability/usePressabili
|
|
|
12921
12964
|
var TamaguiProvider$1 = function(props) {
|
|
12922
12965
|
return useIsomorphicLayoutEffect(function() {
|
|
12923
12966
|
enable();
|
|
12924
|
-
}, []), /* @__PURE__ */
|
|
12967
|
+
}, []), /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$2, __spreadValues({}, props));
|
|
12925
12968
|
}, createTamagui$1 = function(conf2) {
|
|
12926
12969
|
return conf2.media && (conf2.media = createMedia(conf2.media)), createTamagui$2(conf2);
|
|
12927
12970
|
}, baseViews = getBaseViews();
|
|
@@ -12974,7 +13017,7 @@ function createCollection(name) {
|
|
|
12974
13017
|
scope,
|
|
12975
13018
|
children
|
|
12976
13019
|
} = props, ref = React.useRef(void 0), itemMap = React.useRef(/* @__PURE__ */ new Map()).current;
|
|
12977
|
-
return /* @__PURE__ */
|
|
13020
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, {
|
|
12978
13021
|
scope,
|
|
12979
13022
|
itemMap,
|
|
12980
13023
|
collectionRef: ref,
|
|
@@ -12987,7 +13030,7 @@ function createCollection(name) {
|
|
|
12987
13030
|
scope,
|
|
12988
13031
|
children
|
|
12989
13032
|
} = props, context2 = useCollectionContext(scope), composedRefs = useComposedRefs(forwardedRef, context2.collectionRef);
|
|
12990
|
-
return /* @__PURE__ */
|
|
13033
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
12991
13034
|
ref: composedRefs,
|
|
12992
13035
|
children
|
|
12993
13036
|
});
|
|
@@ -13007,7 +13050,7 @@ function createCollection(name) {
|
|
|
13007
13050
|
}, itemData)), function() {
|
|
13008
13051
|
return void context2.itemMap.delete(ref);
|
|
13009
13052
|
};
|
|
13010
|
-
}), /* @__PURE__ */
|
|
13053
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Slot, {
|
|
13011
13054
|
[ITEM_DATA_ATTR]: "",
|
|
13012
13055
|
ref: composedRefs,
|
|
13013
13056
|
children
|
|
@@ -13037,13 +13080,13 @@ var getElevation = function(size, extras) {
|
|
|
13037
13080
|
var {
|
|
13038
13081
|
theme,
|
|
13039
13082
|
tokens
|
|
13040
|
-
} = param,
|
|
13083
|
+
} = param, num2 = 0;
|
|
13041
13084
|
if (val === true) {
|
|
13042
13085
|
var _$val = getVariableValue(tokens.size.true);
|
|
13043
|
-
typeof _$val == "number" ?
|
|
13044
|
-
} else
|
|
13045
|
-
if (
|
|
13046
|
-
var [height, shadowRadius] = [Math.round(
|
|
13086
|
+
typeof _$val == "number" ? num2 = _$val : num2 = 10;
|
|
13087
|
+
} else num2 = +val;
|
|
13088
|
+
if (num2 !== 0) {
|
|
13089
|
+
var [height, shadowRadius] = [Math.round(num2 / 4 + 1), Math.round(num2 / 2 + 2)], shadow = __spreadValues({
|
|
13047
13090
|
shadowColor: theme.shadowColor,
|
|
13048
13091
|
shadowRadius,
|
|
13049
13092
|
shadowOffset: {
|
|
@@ -13487,7 +13530,7 @@ function wrapChildrenInText(TextComponent, propsIn, extraProps) {
|
|
|
13487
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) {
|
|
13488
13531
|
return typeof child == "string" ? (
|
|
13489
13532
|
// so "data-disable-theme" is a hack to fix themeInverse, don't ask me why
|
|
13490
|
-
/* @__PURE__ */
|
|
13533
|
+
/* @__PURE__ */ jsxRuntime.jsx(TextComponent, __spreadProps(__spreadValues(__spreadValues({}, props), textProps), {
|
|
13491
13534
|
children: child
|
|
13492
13535
|
}), index2)
|
|
13493
13536
|
) : child;
|
|
@@ -13504,11 +13547,11 @@ var ACCORDION_NAME = "Accordion", ACCORDION_KEYS = ["Home", "End", "ArrowDown",
|
|
|
13504
13547
|
} = _a, accordionProps = __objRest(_a, [
|
|
13505
13548
|
"type"
|
|
13506
13549
|
]), singleProps = accordionProps, multipleProps = accordionProps;
|
|
13507
|
-
return /* @__PURE__ */
|
|
13550
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, {
|
|
13508
13551
|
scope: props.__scopeAccordion || ACCORDION_CONTEXT,
|
|
13509
|
-
children: type === "multiple" ? /* @__PURE__ */
|
|
13552
|
+
children: type === "multiple" ? /* @__PURE__ */ jsxRuntime.jsx(AccordionImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
13510
13553
|
ref: forwardedRef
|
|
13511
|
-
})) : /* @__PURE__ */
|
|
13554
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AccordionImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
13512
13555
|
ref: forwardedRef
|
|
13513
13556
|
}))
|
|
13514
13557
|
});
|
|
@@ -13545,17 +13588,17 @@ var {
|
|
|
13545
13588
|
defaultProp: defaultValue2 || "",
|
|
13546
13589
|
onChange: onValueChange
|
|
13547
13590
|
});
|
|
13548
|
-
return /* @__PURE__ */
|
|
13591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13549
13592
|
scope: props.__scopeAccordion,
|
|
13550
13593
|
value: value ? [value] : [],
|
|
13551
13594
|
onItemOpen: setValue,
|
|
13552
13595
|
onItemClose: React__namespace.useCallback(function() {
|
|
13553
13596
|
return collapsible && setValue("");
|
|
13554
13597
|
}, [setValue, collapsible]),
|
|
13555
|
-
children: /* @__PURE__ */
|
|
13598
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13556
13599
|
scope: props.__scopeAccordion,
|
|
13557
13600
|
collapsible,
|
|
13558
|
-
children: /* @__PURE__ */
|
|
13601
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionSingleProps), {
|
|
13559
13602
|
ref: forwardedRef
|
|
13560
13603
|
}))
|
|
13561
13604
|
})
|
|
@@ -13587,15 +13630,15 @@ var {
|
|
|
13587
13630
|
});
|
|
13588
13631
|
});
|
|
13589
13632
|
}, [setValue]);
|
|
13590
|
-
return /* @__PURE__ */
|
|
13633
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionValueProvider, {
|
|
13591
13634
|
scope: props.__scopeAccordion,
|
|
13592
13635
|
value: value || [],
|
|
13593
13636
|
onItemOpen: handleItemOpen,
|
|
13594
13637
|
onItemClose: handleItemClose,
|
|
13595
|
-
children: /* @__PURE__ */
|
|
13638
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, {
|
|
13596
13639
|
scope: props.__scopeAccordion,
|
|
13597
13640
|
collapsible: true,
|
|
13598
|
-
children: /* @__PURE__ */
|
|
13641
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, __spreadProps(__spreadValues({}, accordionMultipleProps), {
|
|
13599
13642
|
ref: forwardedRef
|
|
13600
13643
|
}))
|
|
13601
13644
|
})
|
|
@@ -13656,14 +13699,14 @@ var {
|
|
|
13656
13699
|
}
|
|
13657
13700
|
}
|
|
13658
13701
|
});
|
|
13659
|
-
return /* @__PURE__ */
|
|
13702
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionImplProvider, {
|
|
13660
13703
|
scope: __scopeAccordion,
|
|
13661
13704
|
disabled,
|
|
13662
13705
|
direction: dir,
|
|
13663
13706
|
orientation,
|
|
13664
|
-
children: /* @__PURE__ */
|
|
13707
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, {
|
|
13665
13708
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13666
|
-
children: /* @__PURE__ */
|
|
13709
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadValues(__spreadValues({
|
|
13667
13710
|
"data-orientation": orientation,
|
|
13668
13711
|
ref: composedRef
|
|
13669
13712
|
}, accordionProps), isWeb))
|
|
@@ -13680,12 +13723,12 @@ var {
|
|
|
13680
13723
|
"__scopeAccordion",
|
|
13681
13724
|
"value"
|
|
13682
13725
|
]), accordionContext = useAccordionContext(__scopeAccordion), valueContext = useAccordionValueContext(__scopeAccordion), triggerId = React__namespace.useId(), open2 = value && valueContext.value.includes(value) || false, disabled = accordionContext.disabled || props.disabled;
|
|
13683
|
-
return /* @__PURE__ */
|
|
13726
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionItemProvider, {
|
|
13684
13727
|
scope: __scopeAccordion,
|
|
13685
13728
|
open: open2,
|
|
13686
13729
|
disabled,
|
|
13687
13730
|
triggerId,
|
|
13688
|
-
children: /* @__PURE__ */
|
|
13731
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Collapsible, __spreadProps(__spreadValues({
|
|
13689
13732
|
"data-orientation": accordionContext.orientation,
|
|
13690
13733
|
"data-state": open2 ? "open" : "closed",
|
|
13691
13734
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT
|
|
@@ -13706,7 +13749,7 @@ var HEADER_NAME = "AccordionHeader", AccordionHeader = /* @__PURE__ */ React__na
|
|
|
13706
13749
|
} = _a, headerProps = __objRest(_a, [
|
|
13707
13750
|
"__scopeAccordion"
|
|
13708
13751
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
13709
|
-
return /* @__PURE__ */
|
|
13752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(H1, __spreadProps(__spreadValues({
|
|
13710
13753
|
"data-orientation": accordionContext.orientation,
|
|
13711
13754
|
"data-state": getState$3(itemContext.open),
|
|
13712
13755
|
"data-disabled": itemContext.disabled ? "" : void 0
|
|
@@ -13745,9 +13788,9 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13745
13788
|
} = _a, triggerProps = __objRest(_a, [
|
|
13746
13789
|
"__scopeAccordion"
|
|
13747
13790
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
|
|
13748
|
-
return /* @__PURE__ */
|
|
13791
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Collection.ItemSlot, {
|
|
13749
13792
|
scope: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13750
|
-
children: /* @__PURE__ */
|
|
13793
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AccordionTriggerFrame, __spreadProps(__spreadValues({
|
|
13751
13794
|
// @ts-ignore
|
|
13752
13795
|
__scopeCollapsible: __scopeAccordion || ACCORDION_CONTEXT,
|
|
13753
13796
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -13775,7 +13818,7 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13775
13818
|
} = _a, contentProps = __objRest(_a, [
|
|
13776
13819
|
"__scopeAccordion"
|
|
13777
13820
|
]), accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
13778
|
-
return /* @__PURE__ */
|
|
13821
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionContentFrame, __spreadProps(__spreadValues({
|
|
13779
13822
|
role: "region",
|
|
13780
13823
|
"aria-labelledby": itemContext.triggerId,
|
|
13781
13824
|
"data-orientation": accordionContext.orientation,
|
|
@@ -13790,12 +13833,12 @@ var AccordionTriggerFrame = styled(Collapsible.Trigger, {
|
|
|
13790
13833
|
} = _a, rest = __objRest(_a, [
|
|
13791
13834
|
"children"
|
|
13792
13835
|
]), [height, setHeight] = React__namespace.useState(0);
|
|
13793
|
-
return /* @__PURE__ */
|
|
13836
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
13794
13837
|
ref,
|
|
13795
13838
|
height: itemContext.open ? height : 0,
|
|
13796
13839
|
position: "relative"
|
|
13797
13840
|
}, rest), {
|
|
13798
|
-
children: /* @__PURE__ */
|
|
13841
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
13799
13842
|
position: "absolute",
|
|
13800
13843
|
width: "100%",
|
|
13801
13844
|
onLayout: function(param) {
|
|
@@ -13866,11 +13909,11 @@ var StackZIndexContext = function(param) {
|
|
|
13866
13909
|
var {
|
|
13867
13910
|
children,
|
|
13868
13911
|
zIndex
|
|
13869
|
-
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */
|
|
13912
|
+
} = param, existing = React.useContext(ZIndexStackContext), content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexStackContext.Provider, {
|
|
13870
13913
|
value: existing + 1,
|
|
13871
13914
|
children
|
|
13872
13915
|
});
|
|
13873
|
-
return typeof zIndex < "u" && (content = /* @__PURE__ */
|
|
13916
|
+
return typeof zIndex < "u" && (content = /* @__PURE__ */ jsxRuntime.jsx(ZIndexHardcodedContext.Provider, {
|
|
13874
13917
|
value: zIndex,
|
|
13875
13918
|
children: content
|
|
13876
13919
|
})), content;
|
|
@@ -13965,11 +14008,11 @@ var registerHost = function(state, hostName) {
|
|
|
13965
14008
|
};
|
|
13966
14009
|
return next;
|
|
13967
14010
|
}, [dispatch]);
|
|
13968
|
-
return /* @__PURE__ */
|
|
14011
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalDispatchContext.Provider, {
|
|
13969
14012
|
value: transitionDispatch,
|
|
13970
|
-
children: /* @__PURE__ */
|
|
14013
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(PortalStateContext.Provider, {
|
|
13971
14014
|
value: state,
|
|
13972
|
-
children: [children, shouldAddRootHost && /* @__PURE__ */
|
|
14015
|
+
children: [children, shouldAddRootHost && /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
13973
14016
|
name: rootHostName
|
|
13974
14017
|
})]
|
|
13975
14018
|
})
|
|
@@ -13977,11 +14020,11 @@ var registerHost = function(state, hostName) {
|
|
|
13977
14020
|
}, PortalProvider = /* @__PURE__ */ React.memo(PortalProviderComponent);
|
|
13978
14021
|
PortalProvider.displayName = "PortalProvider";
|
|
13979
14022
|
var defaultRenderer = function(children) {
|
|
13980
|
-
return /* @__PURE__ */
|
|
14023
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
13981
14024
|
children
|
|
13982
14025
|
});
|
|
13983
14026
|
}, PortalHost = /* @__PURE__ */ React.memo(function(props) {
|
|
13984
|
-
return /* @__PURE__ */
|
|
14027
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHostNonNative, __spreadValues({}, props));
|
|
13985
14028
|
});
|
|
13986
14029
|
function PortalHostNonNative(props) {
|
|
13987
14030
|
var {
|
|
@@ -14069,7 +14112,7 @@ var createPortal = (function() {
|
|
|
14069
14112
|
var rootTag = React__namespace.useContext(RootTagContext), zIndex = useStackedZIndex(getStackedZIndexProps(propsIn)), {
|
|
14070
14113
|
children,
|
|
14071
14114
|
passThrough
|
|
14072
|
-
} = propsIn, contents = /* @__PURE__ */
|
|
14115
|
+
} = propsIn, contents = /* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
14073
14116
|
pointerEvents: "box-none",
|
|
14074
14117
|
position: "absolute",
|
|
14075
14118
|
inset: 0,
|
|
@@ -14078,7 +14121,7 @@ var createPortal = (function() {
|
|
|
14078
14121
|
passThrough,
|
|
14079
14122
|
children
|
|
14080
14123
|
});
|
|
14081
|
-
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */
|
|
14124
|
+
return !createPortal || !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14082
14125
|
passThrough,
|
|
14083
14126
|
hostName: "root",
|
|
14084
14127
|
children: contents
|
|
@@ -14101,9 +14144,9 @@ var AdaptContext = createStyledContext({
|
|
|
14101
14144
|
} = _a, context2 = __objRest(_a, [
|
|
14102
14145
|
"children"
|
|
14103
14146
|
]), scope = context2.scopeName || "", lastScope = React.useContext(LastAdaptContextScope);
|
|
14104
|
-
return /* @__PURE__ */
|
|
14147
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14105
14148
|
value: lastScope || context2.lastScope || "",
|
|
14106
|
-
children: /* @__PURE__ */
|
|
14149
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({
|
|
14107
14150
|
scope,
|
|
14108
14151
|
lastScope: lastScope || context2.lastScope
|
|
14109
14152
|
}, context2), {
|
|
@@ -14123,7 +14166,7 @@ var AdaptContext = createStyledContext({
|
|
|
14123
14166
|
if (Contents) return Contents;
|
|
14124
14167
|
if (AdaptPortals.has(portalName)) return AdaptPortals.get(portalName);
|
|
14125
14168
|
var element = function() {
|
|
14126
|
-
return /* @__PURE__ */
|
|
14169
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PortalHost, {
|
|
14127
14170
|
name: portalName,
|
|
14128
14171
|
forwardProps: typeof portal == "boolean" ? void 0 : portal == null ? void 0 : portal.forwardProps
|
|
14129
14172
|
}, id2);
|
|
@@ -14136,9 +14179,9 @@ var AdaptContext = createStyledContext({
|
|
|
14136
14179
|
};
|
|
14137
14180
|
}, [portalName]);
|
|
14138
14181
|
var [when, setWhen] = React.useState(null), [platform2, setPlatform] = React.useState(null), [children2, setChildren] = React.useState(null);
|
|
14139
|
-
return /* @__PURE__ */
|
|
14182
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LastAdaptContextScope.Provider, {
|
|
14140
14183
|
value: scope,
|
|
14141
|
-
children: /* @__PURE__ */
|
|
14184
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, {
|
|
14142
14185
|
Contents: FinalContents,
|
|
14143
14186
|
when,
|
|
14144
14187
|
platform: platform2,
|
|
@@ -14181,11 +14224,11 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14181
14224
|
var output;
|
|
14182
14225
|
if (typeof children == "function") {
|
|
14183
14226
|
var Component = context2 == null ? void 0 : context2.Contents;
|
|
14184
|
-
output = children(Component ? /* @__PURE__ */
|
|
14227
|
+
output = children(Component ? /* @__PURE__ */ jsxRuntime.jsx(Component, {}) : null);
|
|
14185
14228
|
} else output = children;
|
|
14186
14229
|
return useIsomorphicLayoutEffect(function() {
|
|
14187
14230
|
typeof children == "function" && output !== void 0 && (context2 == null ? void 0 : context2.setChildren(output));
|
|
14188
|
-
}, [output]), /* @__PURE__ */
|
|
14231
|
+
}, [output]), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14189
14232
|
children: enabled ? output : null
|
|
14190
14233
|
});
|
|
14191
14234
|
}, {
|
|
@@ -14194,7 +14237,7 @@ var Adapt = withStaticProperties(function(props) {
|
|
|
14194
14237
|
var isActive = useAdaptIsActive(props.scope), {
|
|
14195
14238
|
portalName
|
|
14196
14239
|
} = useAdaptContext(props.scope);
|
|
14197
|
-
return /* @__PURE__ */
|
|
14240
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14198
14241
|
passThrough: !isActive,
|
|
14199
14242
|
hostName: portalName,
|
|
14200
14243
|
children: props.children
|
|
@@ -14222,7 +14265,7 @@ function createContext(rootComponentName, defaultContext) {
|
|
|
14222
14265
|
]), value = React__namespace.useMemo(function() {
|
|
14223
14266
|
return context2;
|
|
14224
14267
|
}, Object.values(context2));
|
|
14225
|
-
return /* @__PURE__ */
|
|
14268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14226
14269
|
value,
|
|
14227
14270
|
children
|
|
14228
14271
|
});
|
|
@@ -14250,7 +14293,7 @@ function createContextScope(scopeName) {
|
|
|
14250
14293
|
]), Context = (scope == null || (_scope_scopeName = scope[scopeName]) === null || _scope_scopeName === void 0 ? void 0 : _scope_scopeName[index2]) || BaseContext, value = React__namespace.useMemo(function() {
|
|
14251
14294
|
return context2;
|
|
14252
14295
|
}, Object.values(context2));
|
|
14253
|
-
return /* @__PURE__ */
|
|
14296
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
|
|
14254
14297
|
value,
|
|
14255
14298
|
children
|
|
14256
14299
|
});
|
|
@@ -14333,7 +14376,7 @@ function FocusScopeController(props) {
|
|
|
14333
14376
|
focusOnIdle
|
|
14334
14377
|
};
|
|
14335
14378
|
}, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
|
|
14336
|
-
return /* @__PURE__ */
|
|
14379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FocusScopeControllerProvider, __spreadProps(__spreadValues({
|
|
14337
14380
|
scope: __scopeFocusScope
|
|
14338
14381
|
}, contextValue), {
|
|
14339
14382
|
children
|
|
@@ -14368,7 +14411,7 @@ var SheetController = function(param) {
|
|
|
14368
14411
|
onOpenChange
|
|
14369
14412
|
};
|
|
14370
14413
|
}, [id2, onOpenChange, open2, hidden, disableDrag]);
|
|
14371
|
-
return /* @__PURE__ */
|
|
14414
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetControllerContext.Provider, {
|
|
14372
14415
|
value: memoValue,
|
|
14373
14416
|
children
|
|
14374
14417
|
});
|
|
@@ -14391,9 +14434,9 @@ var DialogContext = createStyledContext(
|
|
|
14391
14434
|
} = _a, triggerProps = __objRest(_a, [
|
|
14392
14435
|
"scope"
|
|
14393
14436
|
]), isInsideButton = React__namespace.useContext(ButtonNestingContext), context2 = useDialogContext(scope), composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
14394
|
-
return /* @__PURE__ */
|
|
14437
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
14395
14438
|
value: true,
|
|
14396
|
-
children: /* @__PURE__ */
|
|
14439
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogTriggerFrame, __spreadProps(__spreadValues({
|
|
14397
14440
|
tag: isInsideButton ? "span" : "button",
|
|
14398
14441
|
"aria-haspopup": "dialog",
|
|
14399
14442
|
"aria-expanded": context2.open,
|
|
@@ -14438,18 +14481,18 @@ var DialogContext = createStyledContext(
|
|
|
14438
14481
|
var {
|
|
14439
14482
|
context: context2,
|
|
14440
14483
|
children
|
|
14441
|
-
} = 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, {
|
|
14442
14485
|
name: themeName,
|
|
14443
14486
|
children
|
|
14444
14487
|
});
|
|
14445
|
-
return needsRepropagation$1 && (content = /* @__PURE__ */
|
|
14446
|
-
children: /* @__PURE__ */
|
|
14488
|
+
return needsRepropagation$1 && (content = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
14489
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({}, context2), {
|
|
14447
14490
|
children: content
|
|
14448
14491
|
}))
|
|
14449
|
-
}))), isAdapted ? /* @__PURE__ */
|
|
14492
|
+
}))), isAdapted ? /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
14450
14493
|
scope: context2.adaptScope,
|
|
14451
14494
|
children: content
|
|
14452
|
-
}) : context2.modal ? /* @__PURE__ */
|
|
14495
|
+
}) : context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(GorhomPortalItem, {
|
|
14453
14496
|
hostName: context2.modal ? "root" : context2.adaptScope,
|
|
14454
14497
|
children: content
|
|
14455
14498
|
}) : content;
|
|
@@ -14466,9 +14509,9 @@ var DialogContext = createStyledContext(
|
|
|
14466
14509
|
isMountedOrOpen && isFullyHidden && setIsFullyHidden(false);
|
|
14467
14510
|
var handleExitComplete = React__namespace.useCallback(function() {
|
|
14468
14511
|
setIsFullyHidden(true);
|
|
14469
|
-
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */
|
|
14512
|
+
}, []), zIndex = getExpandedShorthand("zIndex", props), contents = /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
14470
14513
|
zIndex: resolveViewZIndex(zIndex),
|
|
14471
|
-
children: /* @__PURE__ */
|
|
14514
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
14472
14515
|
passThrough: isAdapted,
|
|
14473
14516
|
onExitComplete: handleExitComplete,
|
|
14474
14517
|
children: isMountedOrOpen || isAdapted ? children : null
|
|
@@ -14477,9 +14520,9 @@ var DialogContext = createStyledContext(
|
|
|
14477
14520
|
// NOTE: we remove the inner frame, but not the portal itself
|
|
14478
14521
|
// saw a bug when we removed and re-added portals that caused stale inner contents of the portal
|
|
14479
14522
|
// seems like a React bug itself but leaving this for now as it fixes
|
|
14480
|
-
isFullyHidden && !isAdapted ? null : /* @__PURE__ */
|
|
14523
|
+
isFullyHidden && !isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
14481
14524
|
disable: !isMountedOrOpen,
|
|
14482
|
-
children: /* @__PURE__ */
|
|
14525
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogPortalFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
14483
14526
|
ref
|
|
14484
14527
|
}, isWeb), {
|
|
14485
14528
|
// passThrough={isAdapted}
|
|
@@ -14490,7 +14533,7 @@ var DialogContext = createStyledContext(
|
|
|
14490
14533
|
}))
|
|
14491
14534
|
})
|
|
14492
14535
|
);
|
|
14493
|
-
return isAdapted ? framedContents : /* @__PURE__ */
|
|
14536
|
+
return isAdapted ? framedContents : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14494
14537
|
context: context2,
|
|
14495
14538
|
children: framedContents
|
|
14496
14539
|
});
|
|
@@ -14528,7 +14571,7 @@ var DialogContext = createStyledContext(
|
|
|
14528
14571
|
} = _b, overlayProps = __objRest(_b, [
|
|
14529
14572
|
"forceMount"
|
|
14530
14573
|
]), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14531
|
-
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */
|
|
14574
|
+
return !forceMount && (!context2.modal || isAdapted) ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogOverlayFrame, __spreadProps(__spreadValues({
|
|
14532
14575
|
"data-state": getState$2(context2.open),
|
|
14533
14576
|
// TODO: this will be apply for v2
|
|
14534
14577
|
// onPress={() => {
|
|
@@ -14555,7 +14598,9 @@ var DialogContext = createStyledContext(
|
|
|
14555
14598
|
padded: true,
|
|
14556
14599
|
radiused: true,
|
|
14557
14600
|
elevate: true,
|
|
14558
|
-
zIndex: 1e5
|
|
14601
|
+
zIndex: 1e5,
|
|
14602
|
+
// Ensure content receives pointer events (fixes React 19 + display:contents inheritance)
|
|
14603
|
+
pointerEvents: "auto"
|
|
14559
14604
|
}
|
|
14560
14605
|
}
|
|
14561
14606
|
},
|
|
@@ -14572,12 +14617,12 @@ var DialogContext = createStyledContext(
|
|
|
14572
14617
|
forceMount = context2.forceMount
|
|
14573
14618
|
} = _b, contentProps = __objRest(_b, [
|
|
14574
14619
|
"forceMount"
|
|
14575
|
-
]), contents = /* @__PURE__ */
|
|
14576
|
-
children: context2.modal ? /* @__PURE__ */
|
|
14620
|
+
]), contents = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
14621
|
+
children: context2.modal ? /* @__PURE__ */ jsxRuntime.jsx(DialogContentModal, __spreadProps(__spreadValues({
|
|
14577
14622
|
context: context2
|
|
14578
14623
|
}, contentProps), {
|
|
14579
14624
|
ref: forwardedRef
|
|
14580
|
-
})) : /* @__PURE__ */
|
|
14625
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(DialogContentNonModal, __spreadProps(__spreadValues({
|
|
14581
14626
|
context: context2
|
|
14582
14627
|
}, contentProps), {
|
|
14583
14628
|
ref: forwardedRef
|
|
@@ -14592,7 +14637,7 @@ var DialogContext = createStyledContext(
|
|
|
14592
14637
|
"children",
|
|
14593
14638
|
"context"
|
|
14594
14639
|
]), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, context2.contentRef, contentRef);
|
|
14595
|
-
return /* @__PURE__ */
|
|
14640
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
|
|
14596
14641
|
context: context2,
|
|
14597
14642
|
ref: composedRefs,
|
|
14598
14643
|
// we make sure focus isn't trapped once `DialogContent` has been closed
|
|
@@ -14619,7 +14664,7 @@ var DialogContext = createStyledContext(
|
|
|
14619
14664
|
}));
|
|
14620
14665
|
}), DialogContentNonModal = /* @__PURE__ */ React__namespace.forwardRef(function(props, forwardedRef) {
|
|
14621
14666
|
var hasInteractedOutsideRef = React__namespace.useRef(false);
|
|
14622
|
-
return /* @__PURE__ */
|
|
14667
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogContentImpl, __spreadProps(__spreadValues({}, props), {
|
|
14623
14668
|
ref: forwardedRef,
|
|
14624
14669
|
trapFocus: false,
|
|
14625
14670
|
disableOutsidePointerEvents: false,
|
|
@@ -14669,11 +14714,11 @@ var DialogContext = createStyledContext(
|
|
|
14669
14714
|
// TODO react 19 type workaround
|
|
14670
14715
|
void 0
|
|
14671
14716
|
), composedRefs = useComposedRefs(forwardedRef, contentRef), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14672
|
-
if (isAdapted) return !context2.open ? null : /* @__PURE__ */
|
|
14717
|
+
if (isAdapted) return !context2.open ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogPortalItem, {
|
|
14673
14718
|
context: context2,
|
|
14674
14719
|
children: contentProps.children
|
|
14675
14720
|
});
|
|
14676
|
-
var contents = /* @__PURE__ */
|
|
14721
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(DialogContentFrame, __spreadValues({
|
|
14677
14722
|
ref: composedRefs,
|
|
14678
14723
|
id: context2.contentId,
|
|
14679
14724
|
role: "dialog",
|
|
@@ -14691,7 +14736,7 @@ var DialogContext = createStyledContext(
|
|
|
14691
14736
|
} = _a, titleProps = __objRest(_a, [
|
|
14692
14737
|
"scope"
|
|
14693
14738
|
]), context2 = useDialogContext(scope);
|
|
14694
|
-
return /* @__PURE__ */
|
|
14739
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitleFrame, __spreadProps(__spreadValues({
|
|
14695
14740
|
id: context2.titleId
|
|
14696
14741
|
}, titleProps), {
|
|
14697
14742
|
ref: forwardedRef
|
|
@@ -14704,7 +14749,7 @@ var DialogContext = createStyledContext(
|
|
|
14704
14749
|
} = _a, descriptionProps = __objRest(_a, [
|
|
14705
14750
|
"scope"
|
|
14706
14751
|
]), context2 = useDialogContext(scope);
|
|
14707
|
-
return /* @__PURE__ */
|
|
14752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescriptionFrame, __spreadProps(__spreadValues({
|
|
14708
14753
|
id: context2.descriptionId
|
|
14709
14754
|
}, descriptionProps), {
|
|
14710
14755
|
ref: forwardedRef
|
|
@@ -14720,7 +14765,7 @@ var DialogContext = createStyledContext(
|
|
|
14720
14765
|
"scope",
|
|
14721
14766
|
"displayWhenAdapted"
|
|
14722
14767
|
]), context2 = useDialogContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope), isInsideButton = React__namespace.useContext(ButtonNestingContext);
|
|
14723
|
-
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */
|
|
14768
|
+
return isAdapted && !displayWhenAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(DialogCloseFrame, __spreadProps(__spreadValues({
|
|
14724
14769
|
"aria-label": "Dialog Close",
|
|
14725
14770
|
tag: isInsideButton ? "span" : "button"
|
|
14726
14771
|
}, closeProps), {
|
|
@@ -14772,15 +14817,15 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
14772
14817
|
return {
|
|
14773
14818
|
open: setOpen
|
|
14774
14819
|
};
|
|
14775
|
-
}, [setOpen]), /* @__PURE__ */
|
|
14820
|
+
}, [setOpen]), /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
14776
14821
|
scope: adaptScope,
|
|
14777
14822
|
portal: {
|
|
14778
14823
|
forwardProps: props
|
|
14779
14824
|
},
|
|
14780
|
-
children: /* @__PURE__ */
|
|
14825
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogProvider, __spreadProps(__spreadValues({
|
|
14781
14826
|
scope
|
|
14782
14827
|
}, context2), {
|
|
14783
|
-
children: /* @__PURE__ */
|
|
14828
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DialogSheetController, {
|
|
14784
14829
|
onOpenChange: setOpen,
|
|
14785
14830
|
scope,
|
|
14786
14831
|
children
|
|
@@ -14800,7 +14845,7 @@ var TITLE_WARNING_NAME = "DialogTitleWarning", [DialogWarningProvider, useWarnin
|
|
|
14800
14845
|
});
|
|
14801
14846
|
var DialogSheetController = function(props) {
|
|
14802
14847
|
var context2 = useDialogContext(props.scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
14803
|
-
return /* @__PURE__ */
|
|
14848
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
14804
14849
|
onOpenChange: function(val) {
|
|
14805
14850
|
if (isAdapted) {
|
|
14806
14851
|
var _props_onOpenChange;
|
|
@@ -14827,7 +14872,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
14827
14872
|
"onPress",
|
|
14828
14873
|
"__onPress"
|
|
14829
14874
|
]);
|
|
14830
|
-
return /* @__PURE__ */
|
|
14875
|
+
return /* @__PURE__ */ jsxRuntime.jsx(NativeAlertDialogTriggerFrame, __spreadProps(__spreadValues({}, rest), {
|
|
14831
14876
|
onPress: composeEventHandlers(onPress, __onPress)
|
|
14832
14877
|
}));
|
|
14833
14878
|
}
|
|
@@ -14836,7 +14881,7 @@ var getAlertDialogScope = function(scope) {
|
|
|
14836
14881
|
} = _b, triggerProps = __objRest(_b, [
|
|
14837
14882
|
"scope"
|
|
14838
14883
|
]);
|
|
14839
|
-
return /* @__PURE__ */
|
|
14884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTrigger, __spreadProps(__spreadValues({
|
|
14840
14885
|
scope: getAlertDialogScope(scope)
|
|
14841
14886
|
}, triggerProps), {
|
|
14842
14887
|
ref: forwardedRef
|
|
@@ -14848,7 +14893,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14848
14893
|
} = _a, portalProps = __objRest(_a, [
|
|
14849
14894
|
"scope"
|
|
14850
14895
|
]);
|
|
14851
|
-
return /* @__PURE__ */
|
|
14896
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPortal, __spreadValues({
|
|
14852
14897
|
scope: getAlertDialogScope(scope)
|
|
14853
14898
|
}, portalProps));
|
|
14854
14899
|
}, OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = styled(DialogOverlayFrame, {
|
|
@@ -14859,7 +14904,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14859
14904
|
} = _a, overlayProps = __objRest(_a, [
|
|
14860
14905
|
"scope"
|
|
14861
14906
|
]);
|
|
14862
|
-
return /* @__PURE__ */
|
|
14907
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, __spreadProps(__spreadValues({
|
|
14863
14908
|
scope: getAlertDialogScope(scope)
|
|
14864
14909
|
}, overlayProps), {
|
|
14865
14910
|
ref: forwardedRef
|
|
@@ -14875,15 +14920,15 @@ var AlertDialogPortal = function(props) {
|
|
|
14875
14920
|
"scope",
|
|
14876
14921
|
"children"
|
|
14877
14922
|
]), dialogScope = getAlertDialogScope(scope), contentRef = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, contentRef), cancelRef = React__namespace.useRef(null), destructiveRef = React__namespace.useRef(null);
|
|
14878
|
-
return /* @__PURE__ */
|
|
14923
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogWarningProvider, {
|
|
14879
14924
|
contentName: CONTENT_NAME$1,
|
|
14880
14925
|
titleName: TITLE_NAME,
|
|
14881
14926
|
docsSlug: "alert-dialog",
|
|
14882
|
-
children: /* @__PURE__ */
|
|
14927
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AlertDialogContextProvider, {
|
|
14883
14928
|
scope,
|
|
14884
14929
|
cancelRef,
|
|
14885
14930
|
destructiveRef,
|
|
14886
|
-
children: /* @__PURE__ */
|
|
14931
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, __spreadProps(__spreadValues({
|
|
14887
14932
|
role: "alertdialog",
|
|
14888
14933
|
"aria-modal": true,
|
|
14889
14934
|
scope: dialogScope
|
|
@@ -14905,7 +14950,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14905
14950
|
* This is because we want the accessibility checks to run only once the content is actually
|
|
14906
14951
|
* open and that behaviour is already encapsulated in `DialogContent`.
|
|
14907
14952
|
*/
|
|
14908
|
-
/* @__PURE__ */
|
|
14953
|
+
/* @__PURE__ */ jsxRuntime.jsx(Slottable, {
|
|
14909
14954
|
children
|
|
14910
14955
|
}),
|
|
14911
14956
|
false
|
|
@@ -14921,7 +14966,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14921
14966
|
} = _a, titleProps = __objRest(_a, [
|
|
14922
14967
|
"scope"
|
|
14923
14968
|
]);
|
|
14924
|
-
return /* @__PURE__ */
|
|
14969
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, __spreadProps(__spreadValues({
|
|
14925
14970
|
scope: getAlertDialogScope(scope)
|
|
14926
14971
|
}, titleProps), {
|
|
14927
14972
|
ref: forwardedRef
|
|
@@ -14934,7 +14979,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14934
14979
|
} = _a, descriptionProps = __objRest(_a, [
|
|
14935
14980
|
"scope"
|
|
14936
14981
|
]);
|
|
14937
|
-
return /* @__PURE__ */
|
|
14982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, __spreadProps(__spreadValues({
|
|
14938
14983
|
scope: getAlertDialogScope(scope)
|
|
14939
14984
|
}, descriptionProps), {
|
|
14940
14985
|
ref: forwardedRef
|
|
@@ -14947,7 +14992,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14947
14992
|
} = _a, actionProps = __objRest(_a, [
|
|
14948
14993
|
"scope"
|
|
14949
14994
|
]);
|
|
14950
|
-
return /* @__PURE__ */
|
|
14995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
14951
14996
|
scope: getAlertDialogScope(scope)
|
|
14952
14997
|
}, actionProps), {
|
|
14953
14998
|
ref: forwardedRef
|
|
@@ -14962,7 +15007,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14962
15007
|
]), {
|
|
14963
15008
|
cancelRef
|
|
14964
15009
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, cancelRef);
|
|
14965
|
-
return /* @__PURE__ */
|
|
15010
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
14966
15011
|
scope: getAlertDialogScope(scope)
|
|
14967
15012
|
}, cancelProps), {
|
|
14968
15013
|
ref
|
|
@@ -14977,7 +15022,7 @@ var AlertDialogPortal = function(props) {
|
|
|
14977
15022
|
]), {
|
|
14978
15023
|
destructiveRef
|
|
14979
15024
|
} = useAlertDialogContentContext(scope), ref = useComposedRefs(forwardedRef, destructiveRef);
|
|
14980
|
-
return /* @__PURE__ */
|
|
15025
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogClose, __spreadProps(__spreadValues({
|
|
14981
15026
|
scope: getAlertDialogScope(scope)
|
|
14982
15027
|
}, destructiveProps), {
|
|
14983
15028
|
ref
|
|
@@ -15031,7 +15076,7 @@ var AlertDialogPortal = function(props) {
|
|
|
15031
15076
|
__onPress: function() {
|
|
15032
15077
|
setOpen(true);
|
|
15033
15078
|
}
|
|
15034
|
-
}) : /* @__PURE__ */
|
|
15079
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(Dialog, __spreadProps(__spreadValues({
|
|
15035
15080
|
scope: dialogScope
|
|
15036
15081
|
}, alertDialogProps), {
|
|
15037
15082
|
modal: true
|
|
@@ -15168,7 +15213,7 @@ function createImage(options) {
|
|
|
15168
15213
|
onError({
|
|
15169
15214
|
type: "error"
|
|
15170
15215
|
});
|
|
15171
|
-
}), /* @__PURE__ */
|
|
15216
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
15172
15217
|
ref
|
|
15173
15218
|
}, finalProps));
|
|
15174
15219
|
}), comp = Component;
|
|
@@ -15240,10 +15285,10 @@ var AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = createCon
|
|
|
15240
15285
|
setStatus(resolvedSrc ? "idle" : "error");
|
|
15241
15286
|
}, [resolvedSrc]), React__namespace.useEffect(function() {
|
|
15242
15287
|
onLoadingStatusChange(status), context2.onImageLoadingStatusChange(status);
|
|
15243
|
-
}, [status]), resolvedSrc ? /* @__PURE__ */
|
|
15288
|
+
}, [status]), resolvedSrc ? /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
15244
15289
|
fullscreen: true,
|
|
15245
15290
|
zIndex: 1,
|
|
15246
|
-
children: /* @__PURE__ */
|
|
15291
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Image, __spreadProps(__spreadValues(__spreadValues({
|
|
15247
15292
|
fullscreen: true,
|
|
15248
15293
|
objectFit: "cover"
|
|
15249
15294
|
}, typeof shapeSize == "number" && !Number.isNaN(shapeSize) && {
|
|
@@ -15289,7 +15334,7 @@ var FALLBACK_NAME = "AvatarFallback", AvatarFallbackFrame = styled(YStack, {
|
|
|
15289
15334
|
return clearTimeout(timerId);
|
|
15290
15335
|
};
|
|
15291
15336
|
}
|
|
15292
|
-
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */
|
|
15337
|
+
}, [delayMs]), canRender && context2.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ jsxRuntime.jsx(AvatarFallbackFrame, __spreadProps(__spreadValues({}, fallbackProps), {
|
|
15293
15338
|
ref: forwardedRef
|
|
15294
15339
|
})) : null;
|
|
15295
15340
|
});
|
|
@@ -15306,12 +15351,12 @@ var AvatarFrame = styled(Square, {
|
|
|
15306
15351
|
"__scopeAvatar",
|
|
15307
15352
|
"size"
|
|
15308
15353
|
]), [imageLoadingStatus, setImageLoadingStatus] = React__namespace.useState("idle");
|
|
15309
|
-
return /* @__PURE__ */
|
|
15354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AvatarProvider, {
|
|
15310
15355
|
size,
|
|
15311
15356
|
scope: __scopeAvatar,
|
|
15312
15357
|
imageLoadingStatus,
|
|
15313
15358
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
15314
|
-
children: /* @__PURE__ */
|
|
15359
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AvatarFrame, __spreadProps(__spreadValues({
|
|
15315
15360
|
size
|
|
15316
15361
|
}, avatarProps), {
|
|
15317
15362
|
ref: forwardedRef
|
|
@@ -15518,9 +15563,9 @@ var context$2 = createStyledContext({
|
|
|
15518
15563
|
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
15519
15564
|
size: finalSize != null ? finalSize : styledContext == null ? void 0 : styledContext.size
|
|
15520
15565
|
});
|
|
15521
|
-
return /* @__PURE__ */
|
|
15566
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ButtonNestingContext.Provider, {
|
|
15522
15567
|
value: true,
|
|
15523
|
-
children: /* @__PURE__ */
|
|
15568
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Frame$1, __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
15524
15569
|
ref
|
|
15525
15570
|
}, props), isNested && {
|
|
15526
15571
|
tag: "span"
|
|
@@ -15755,10 +15800,10 @@ var NAME$2 = "Label", [LabelProvider, useLabelContextImpl] = createContext(NAME$
|
|
|
15755
15800
|
"htmlFor",
|
|
15756
15801
|
"id"
|
|
15757
15802
|
]), controlRef = React__namespace.useRef(null), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), backupId = React__namespace.useId(), id2 = idProp != null ? idProp : backupId;
|
|
15758
|
-
return /* @__PURE__ */
|
|
15803
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LabelProvider, {
|
|
15759
15804
|
id: id2,
|
|
15760
15805
|
controlRef,
|
|
15761
|
-
children: /* @__PURE__ */
|
|
15806
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(LabelFrame, __spreadProps(__spreadValues({
|
|
15762
15807
|
id: id2,
|
|
15763
15808
|
// @ts-ignore
|
|
15764
15809
|
htmlFor
|
|
@@ -15902,7 +15947,7 @@ function createCheckbox(createProps) {
|
|
|
15902
15947
|
});
|
|
15903
15948
|
}, [props.id, props.disabled]);
|
|
15904
15949
|
var renderNative = shouldRenderNativePlatform(native);
|
|
15905
|
-
if (renderNative === "web") return /* @__PURE__ */
|
|
15950
|
+
if (renderNative === "web") return /* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
15906
15951
|
type: "checkbox",
|
|
15907
15952
|
defaultChecked: isIndeterminate(checked) ? false : checked,
|
|
15908
15953
|
tabIndex: -1,
|
|
@@ -15919,12 +15964,12 @@ function createCheckbox(createProps) {
|
|
|
15919
15964
|
disabled: checkboxProps.disabled
|
|
15920
15965
|
};
|
|
15921
15966
|
}, [checked, checkboxProps.disabled]), _propsActive_size1, _ref1, _ref2;
|
|
15922
|
-
return /* @__PURE__ */
|
|
15967
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CheckboxContext.Provider, {
|
|
15923
15968
|
value: memoizedContext,
|
|
15924
|
-
children: /* @__PURE__ */
|
|
15969
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(CheckboxStyledContext.Provider, {
|
|
15925
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",
|
|
15926
15971
|
scaleIcon: (_ref2 = scaleIcon != null ? scaleIcon : styledContext == null ? void 0 : styledContext.scaleIcon) !== null && _ref2 !== void 0 ? _ref2 : 1,
|
|
15927
|
-
children: [/* @__PURE__ */
|
|
15972
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !unstyled && {
|
|
15928
15973
|
width: size,
|
|
15929
15974
|
height: size
|
|
15930
15975
|
}), {
|
|
@@ -15968,7 +16013,7 @@ function createCheckbox(createProps) {
|
|
|
15968
16013
|
});
|
|
15969
16014
|
}
|
|
15970
16015
|
var context2 = React.useContext(CheckboxContext);
|
|
15971
|
-
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */
|
|
16016
|
+
return forceMount || isIndeterminate(context2.checked) || context2.checked === true ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadProps(__spreadValues({
|
|
15972
16017
|
pointerEvents: "none"
|
|
15973
16018
|
}, indicatorProps), {
|
|
15974
16019
|
ref: forwardedRef,
|
|
@@ -15998,7 +16043,7 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
15998
16043
|
"children",
|
|
15999
16044
|
"onPress"
|
|
16000
16045
|
]), context2 = useFormContext(TRIGGER_NAME$2, __scopeForm);
|
|
16001
|
-
return /* @__PURE__ */
|
|
16046
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormTriggerFrame, __spreadProps(__spreadValues({
|
|
16002
16047
|
tag: "button"
|
|
16003
16048
|
}, triggerProps), {
|
|
16004
16049
|
ref: forwardedRef,
|
|
@@ -16011,10 +16056,10 @@ var FORM_NAME = "Form", FormFrame = styled(Stack, {
|
|
|
16011
16056
|
} = _a, props = __objRest(_a, [
|
|
16012
16057
|
"onSubmit"
|
|
16013
16058
|
]);
|
|
16014
|
-
return /* @__PURE__ */
|
|
16059
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormProvider, {
|
|
16015
16060
|
scope: props.__scopeForm,
|
|
16016
16061
|
onSubmit,
|
|
16017
|
-
children: /* @__PURE__ */
|
|
16062
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(FormFrame, __spreadProps(__spreadValues({
|
|
16018
16063
|
ref
|
|
16019
16064
|
}, props), {
|
|
16020
16065
|
onSubmit: function(e2) {
|
|
@@ -16048,10 +16093,10 @@ function useIndexedChildren(children) {
|
|
|
16048
16093
|
var parentMaxIndexPath = React__namespace.useContext(MaxIndexContext), indexPathString = React__namespace.useContext(IndexContext), childrenCount = React__namespace.Children.count(children), maxIndexPath = React__namespace.useMemo(function() {
|
|
16049
16094
|
return parentMaxIndexPath.concat(childrenCount - 1);
|
|
16050
16095
|
}, [childrenCount]);
|
|
16051
|
-
return /* @__PURE__ */
|
|
16096
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MaxIndexContext.Provider, {
|
|
16052
16097
|
value: maxIndexPath,
|
|
16053
16098
|
children: React__namespace.Children.map(children, function(child, index2) {
|
|
16054
|
-
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */
|
|
16099
|
+
return /* @__PURE__ */ React__namespace.isValidElement(child) ? /* @__PURE__ */ jsxRuntime.jsx(IndexContext.Provider, {
|
|
16055
16100
|
value: indexPathString ? `${indexPathString}.${index2.toString()}` : index2.toString(),
|
|
16056
16101
|
children: child
|
|
16057
16102
|
}, child.key) : child;
|
|
@@ -16142,7 +16187,7 @@ function createGroup(verticalDefault) {
|
|
|
16142
16187
|
return prev - 1;
|
|
16143
16188
|
});
|
|
16144
16189
|
}, []), flexValue = flex === true ? 1 : flex === false ? 0 : flex;
|
|
16145
|
-
return /* @__PURE__ */
|
|
16190
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GroupProvider, {
|
|
16146
16191
|
disablePassBorderRadius,
|
|
16147
16192
|
vertical: orientation === "vertical",
|
|
16148
16193
|
// @ts-ignore this just popped up since new version expo 49
|
|
@@ -16151,7 +16196,7 @@ function createGroup(verticalDefault) {
|
|
|
16151
16196
|
onItemMount,
|
|
16152
16197
|
onItemUnmount,
|
|
16153
16198
|
scope: __scopeGroup,
|
|
16154
|
-
children: /* @__PURE__ */
|
|
16199
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(GroupFrame, __spreadProps(__spreadValues({
|
|
16155
16200
|
ref,
|
|
16156
16201
|
size,
|
|
16157
16202
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
@@ -16203,7 +16248,7 @@ var GroupItem = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
|
|
|
16203
16248
|
orientation,
|
|
16204
16249
|
showScrollIndicator = false
|
|
16205
16250
|
} = param;
|
|
16206
|
-
return scrollable ? /* @__PURE__ */
|
|
16251
|
+
return scrollable ? /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView, __spreadProps(__spreadValues(__spreadValues({}, orientation === "vertical" && {
|
|
16207
16252
|
showsVerticalScrollIndicator: showScrollIndicator
|
|
16208
16253
|
}), orientation === "horizontal" && {
|
|
16209
16254
|
horizontal: true,
|
|
@@ -16440,17 +16485,17 @@ var NAME$1 = "ListItem", context$1 = createStyledContext({
|
|
|
16440
16485
|
fontSize: propsIn.size,
|
|
16441
16486
|
fontWeight
|
|
16442
16487
|
} : void 0);
|
|
16443
|
-
return /* @__PURE__ */
|
|
16488
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ListItemFrame, __spreadProps(__spreadValues({
|
|
16444
16489
|
ref
|
|
16445
16490
|
}, rest), {
|
|
16446
|
-
children: [themedIcon, title || subTitle ? /* @__PURE__ */
|
|
16491
|
+
children: [themedIcon, title || subTitle ? /* @__PURE__ */ jsxRuntime.jsxs(YStack, {
|
|
16447
16492
|
flex: 1,
|
|
16448
|
-
children: [title ? typeof title == "string" ? /* @__PURE__ */
|
|
16493
|
+
children: [title ? typeof title == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemTitle, {
|
|
16449
16494
|
unstyled,
|
|
16450
16495
|
size,
|
|
16451
16496
|
children: title
|
|
16452
|
-
}) : title : null, subTitle ? /* @__PURE__ */
|
|
16453
|
-
children: typeof subTitle == "string" ? /* @__PURE__ */
|
|
16497
|
+
}) : title : null, subTitle ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16498
|
+
children: typeof subTitle == "string" ? /* @__PURE__ */ jsxRuntime.jsx(ListItemSubtitle, {
|
|
16454
16499
|
unstyled,
|
|
16455
16500
|
size,
|
|
16456
16501
|
children: subTitle
|
|
@@ -16486,7 +16531,7 @@ function Animate(param) {
|
|
|
16486
16531
|
});
|
|
16487
16532
|
}, [lazyMount, present]);
|
|
16488
16533
|
var mounted = present ? lazyMount ? lazyMounted : present : false;
|
|
16489
|
-
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */
|
|
16534
|
+
return type === "presence" ? props.keepChildrenMounted ? /* @__PURE__ */ jsxRuntime.jsx(PresenceChild, __spreadProps(__spreadValues({
|
|
16490
16535
|
isPresent: true
|
|
16491
16536
|
}, !passThrough && {
|
|
16492
16537
|
initial: props.initial ? void 0 : false,
|
|
@@ -16501,11 +16546,11 @@ function Animate(param) {
|
|
|
16501
16546
|
custom: props.custom
|
|
16502
16547
|
}), {
|
|
16503
16548
|
children
|
|
16504
|
-
})) : /* @__PURE__ */
|
|
16549
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, __spreadProps(__spreadValues({
|
|
16505
16550
|
passThrough
|
|
16506
16551
|
}, props), {
|
|
16507
16552
|
children: mounted || passThrough ? children : null
|
|
16508
|
-
})) : /* @__PURE__ */
|
|
16553
|
+
})) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
16509
16554
|
children
|
|
16510
16555
|
});
|
|
16511
16556
|
}
|
|
@@ -17531,10 +17576,10 @@ var PopperContextFast = createStyledContext(
|
|
|
17531
17576
|
"scope",
|
|
17532
17577
|
"children"
|
|
17533
17578
|
]), slowContext = getContextSlow(context2);
|
|
17534
|
-
return /* @__PURE__ */
|
|
17579
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProviderFast, __spreadProps(__spreadValues({
|
|
17535
17580
|
scope
|
|
17536
17581
|
}, context2), {
|
|
17537
|
-
children: /* @__PURE__ */
|
|
17582
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProviderSlow, __spreadProps(__spreadValues({
|
|
17538
17583
|
scope
|
|
17539
17584
|
}, slowContext), {
|
|
17540
17585
|
children
|
|
@@ -17632,9 +17677,9 @@ function Popper(props) {
|
|
|
17632
17677
|
open: !!open2
|
|
17633
17678
|
}, floating);
|
|
17634
17679
|
}, [open2, size, floating.x, floating.y, floating.placement, JSON.stringify(middlewareData.arrow || null), JSON.stringify(middlewareData.transformOrigin || null), floating.isPositioned]);
|
|
17635
|
-
return /* @__PURE__ */
|
|
17680
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
17636
17681
|
disable: !isOpen,
|
|
17637
|
-
children: /* @__PURE__ */
|
|
17682
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
17638
17683
|
scope
|
|
17639
17684
|
}, popperContext), {
|
|
17640
17685
|
children
|
|
@@ -17668,7 +17713,7 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17668
17713
|
// web handles this onMouseEnter below so it can support multiple targets + hovering
|
|
17669
17714
|
safeSetReference
|
|
17670
17715
|
);
|
|
17671
|
-
return /* @__PURE__ */
|
|
17716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, rest), refProps), {
|
|
17672
17717
|
ref: composedRefs
|
|
17673
17718
|
}), shouldHandleInHover));
|
|
17674
17719
|
}), PopperContentFrame = styled(YStack, {
|
|
@@ -17753,12 +17798,12 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17753
17798
|
} = _b, floatingProps = __objRest(_b, [
|
|
17754
17799
|
"style"
|
|
17755
17800
|
]), transformOriginStyle = void 0;
|
|
17756
|
-
return /* @__PURE__ */
|
|
17801
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
17757
17802
|
passThrough,
|
|
17758
17803
|
ref: contentRefs,
|
|
17759
17804
|
contain: "layout style"
|
|
17760
17805
|
}, passThrough ? null : floatingProps), {
|
|
17761
|
-
children: /* @__PURE__ */
|
|
17806
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContentFrame, __spreadProps(__spreadValues({
|
|
17762
17807
|
passThrough
|
|
17763
17808
|
}, !passThrough && __spreadValues(__spreadValues(__spreadValues({
|
|
17764
17809
|
"data-placement": placement,
|
|
@@ -17836,10 +17881,10 @@ var PopperAnchor = YStack.styleable(function(props, forwardedRef) {
|
|
|
17836
17881
|
(_context_onArrowSize = context2.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context2, size);
|
|
17837
17882
|
}, [size, context2.onArrowSize]);
|
|
17838
17883
|
}
|
|
17839
|
-
return /* @__PURE__ */
|
|
17884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperArrowOuterFrame, __spreadProps(__spreadValues({
|
|
17840
17885
|
ref: refs
|
|
17841
17886
|
}, arrowStyle), {
|
|
17842
|
-
children: /* @__PURE__ */
|
|
17887
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperArrowFrame, __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
17843
17888
|
width: size,
|
|
17844
17889
|
height: size
|
|
17845
17890
|
}, arrowProps), innerArrowStyle), {
|
|
@@ -17893,7 +17938,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17893
17938
|
return onCustomAnchorAdd(), function() {
|
|
17894
17939
|
return onCustomAnchorRemove();
|
|
17895
17940
|
};
|
|
17896
|
-
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */
|
|
17941
|
+
}, [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({
|
|
17897
17942
|
scope
|
|
17898
17943
|
}, rest), {
|
|
17899
17944
|
ref: forwardedRef
|
|
@@ -17905,7 +17950,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17905
17950
|
"scope"
|
|
17906
17951
|
]), context2 = usePopoverContext(scope), anchorTo = context2.anchorTo, composedTriggerRef = useComposedRefs(forwardedRef, context2.triggerRef);
|
|
17907
17952
|
if (!props.children) return null;
|
|
17908
|
-
var trigger = /* @__PURE__ */
|
|
17953
|
+
var trigger = /* @__PURE__ */ jsxRuntime.jsx(View, __spreadProps(__spreadValues({
|
|
17909
17954
|
"aria-expanded": context2.open,
|
|
17910
17955
|
// TODO not matching
|
|
17911
17956
|
// aria-controls={context.contentId}
|
|
@@ -17930,7 +17975,7 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17930
17975
|
})
|
|
17931
17976
|
} : null;
|
|
17932
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]);
|
|
17933
|
-
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */
|
|
17978
|
+
return context2.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntime.jsx(PopperAnchor, __spreadProps(__spreadValues({}, virtualRef && {
|
|
17934
17979
|
virtualRef
|
|
17935
17980
|
}), {
|
|
17936
17981
|
scope,
|
|
@@ -17955,14 +18000,14 @@ var needsRepropagation = isAndroid || isIos && !USE_NATIVE_PORTAL, PopoverContex
|
|
|
17955
18000
|
context2.open && isFullyHidden && setIsFullyHidden(false);
|
|
17956
18001
|
}, [context2.open, isFullyHidden]), !context2.keepChildrenMounted && isFullyHidden && !context2.open) return null;
|
|
17957
18002
|
var _contentImplProps_pointerEvents;
|
|
17958
|
-
return /* @__PURE__ */
|
|
18003
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverPortal, {
|
|
17959
18004
|
passThrough: context2.breakpointActive,
|
|
17960
18005
|
context: context2,
|
|
17961
18006
|
zIndex,
|
|
17962
|
-
children: /* @__PURE__ */
|
|
18007
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
17963
18008
|
passThrough: context2.breakpointActive,
|
|
17964
18009
|
pointerEvents: context2.open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : "auto" : "none",
|
|
17965
|
-
children: /* @__PURE__ */
|
|
18010
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContentImpl, __spreadProps(__spreadValues({}, contentImplProps), {
|
|
17966
18011
|
context: context2,
|
|
17967
18012
|
enableRemoveScroll,
|
|
17968
18013
|
ref: composedRefs,
|
|
@@ -18007,11 +18052,11 @@ function RepropagateParentContexts(param) {
|
|
|
18007
18052
|
context: context2,
|
|
18008
18053
|
popperContext
|
|
18009
18054
|
} = param;
|
|
18010
|
-
return /* @__PURE__ */
|
|
18055
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, __spreadProps(__spreadValues({
|
|
18011
18056
|
scope: context2.popoverScope
|
|
18012
18057
|
}, popperContext), {
|
|
18013
|
-
children: /* @__PURE__ */
|
|
18014
|
-
children: /* @__PURE__ */
|
|
18058
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({}, context2), {
|
|
18059
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
18015
18060
|
children
|
|
18016
18061
|
}))
|
|
18017
18062
|
}))
|
|
@@ -18024,14 +18069,14 @@ var PortalAdaptSafe = function(param) {
|
|
|
18024
18069
|
} = param;
|
|
18025
18070
|
if (needsRepropagation) {
|
|
18026
18071
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18027
|
-
return /* @__PURE__ */
|
|
18072
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18028
18073
|
scope: context2.adaptScope,
|
|
18029
|
-
children: /* @__PURE__ */
|
|
18074
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18030
18075
|
children
|
|
18031
18076
|
}))
|
|
18032
18077
|
});
|
|
18033
18078
|
}
|
|
18034
|
-
return /* @__PURE__ */
|
|
18079
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
18035
18080
|
scope: context2.adaptScope,
|
|
18036
18081
|
children
|
|
18037
18082
|
});
|
|
@@ -18046,26 +18091,26 @@ function PopoverPortal(param) {
|
|
|
18046
18091
|
} = param, themeName = useThemeName(), content = children;
|
|
18047
18092
|
if (needsRepropagation) {
|
|
18048
18093
|
var parentContexts = useParentContexts(context2.popoverScope);
|
|
18049
|
-
content = /* @__PURE__ */
|
|
18094
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(RepropagateParentContexts, __spreadProps(__spreadValues({}, parentContexts), {
|
|
18050
18095
|
children: content
|
|
18051
18096
|
}));
|
|
18052
18097
|
}
|
|
18053
|
-
return /* @__PURE__ */
|
|
18098
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Portal, {
|
|
18054
18099
|
passThrough,
|
|
18055
18100
|
stackZIndex: true,
|
|
18056
18101
|
zIndex,
|
|
18057
18102
|
children: (
|
|
18058
18103
|
/* forceClassName avoids forced re-mount renders for some reason... see the HeadMenu as you change tints a few times */
|
|
18059
18104
|
/* without this you'll see the site menu re-rendering. It must be something in wrapping children in Theme */
|
|
18060
|
-
/* @__PURE__ */
|
|
18105
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Theme, {
|
|
18061
18106
|
passThrough,
|
|
18062
18107
|
contain: true,
|
|
18063
18108
|
forceClassName: true,
|
|
18064
18109
|
name: themeName,
|
|
18065
|
-
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */
|
|
18110
|
+
children: [!!context2.open && !context2.breakpointActive && /* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
18066
18111
|
fullscreen: true,
|
|
18067
18112
|
onPress: composeEventHandlers(onPress, context2.onOpenToggle)
|
|
18068
|
-
}), /* @__PURE__ */
|
|
18113
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
18069
18114
|
zIndex: resolveViewZIndex(zIndex),
|
|
18070
18115
|
children: content
|
|
18071
18116
|
})]
|
|
@@ -18113,25 +18158,25 @@ var PopoverContentImpl = /* @__PURE__ */ React__namespace.forwardRef(function(pr
|
|
|
18113
18158
|
keepChildrenMounted
|
|
18114
18159
|
} = context2, handleExitComplete = React__namespace.useCallback(function() {
|
|
18115
18160
|
setIsFullyHidden == null ? void 0 : setIsFullyHidden(true);
|
|
18116
|
-
}, [setIsFullyHidden]), contents = /* @__PURE__ */
|
|
18161
|
+
}, [setIsFullyHidden]), contents = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
18117
18162
|
disable: context2.breakpointActive,
|
|
18118
18163
|
children
|
|
18119
18164
|
});
|
|
18120
|
-
return context2.breakpointActive, /* @__PURE__ */
|
|
18165
|
+
return context2.breakpointActive, /* @__PURE__ */ jsxRuntime.jsx(Animate, {
|
|
18121
18166
|
type: "presence",
|
|
18122
18167
|
present: !!open2,
|
|
18123
18168
|
keepChildrenMounted: !!keepChildrenMounted,
|
|
18124
18169
|
onExitComplete: handleExitComplete,
|
|
18125
18170
|
lazyMount,
|
|
18126
18171
|
passThrough: context2.breakpointActive,
|
|
18127
|
-
children: /* @__PURE__ */
|
|
18172
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopperContent, __spreadProps(__spreadValues({
|
|
18128
18173
|
scope,
|
|
18129
18174
|
"data-state": getState$1(open2),
|
|
18130
18175
|
id: context2.contentId,
|
|
18131
18176
|
ref: forwardedRef,
|
|
18132
18177
|
passThrough: context2.breakpointActive
|
|
18133
18178
|
}, contentProps), {
|
|
18134
|
-
children: /* @__PURE__ */
|
|
18179
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PortalAdaptSafe, {
|
|
18135
18180
|
context: context2,
|
|
18136
18181
|
children: contents
|
|
18137
18182
|
})
|
|
@@ -18144,7 +18189,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18144
18189
|
} = _a, rest = __objRest(_a, [
|
|
18145
18190
|
"scope"
|
|
18146
18191
|
]), context2 = usePopoverContext(scope);
|
|
18147
|
-
return /* @__PURE__ */
|
|
18192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({}, rest), {
|
|
18148
18193
|
ref: forwardedRef,
|
|
18149
18194
|
componentName: "PopoverClose",
|
|
18150
18195
|
onPress: composeEventHandlers(props.onPress, function() {
|
|
@@ -18158,7 +18203,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18158
18203
|
} = _a, rest = __objRest(_a, [
|
|
18159
18204
|
"scope"
|
|
18160
18205
|
]), context2 = usePopoverContext(scope), isAdapted = useAdaptIsActive(context2.adaptScope);
|
|
18161
|
-
return isAdapted ? null : /* @__PURE__ */
|
|
18206
|
+
return isAdapted ? null : /* @__PURE__ */ jsxRuntime.jsx(PopperArrow, __spreadProps(__spreadValues({
|
|
18162
18207
|
scope,
|
|
18163
18208
|
componentName: "PopoverArrow"
|
|
18164
18209
|
}, rest), {
|
|
@@ -18170,7 +18215,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18170
18215
|
} = _a, props = __objRest(_a, [
|
|
18171
18216
|
"scope"
|
|
18172
18217
|
]), context2 = usePopoverContext(scope);
|
|
18173
|
-
return /* @__PURE__ */
|
|
18218
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ScrollView3, __spreadValues({
|
|
18174
18219
|
ref,
|
|
18175
18220
|
// when adapted, no pointer events!
|
|
18176
18221
|
pointerEvents: context2.breakpointActive ? "none" : void 0,
|
|
@@ -18183,10 +18228,10 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18183
18228
|
} = _a, props = __objRest(_a, [
|
|
18184
18229
|
"scope"
|
|
18185
18230
|
]), id2 = React__namespace.useId(), adaptScope = `PopoverAdapt${scope}`;
|
|
18186
|
-
return /* @__PURE__ */
|
|
18231
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
18187
18232
|
scope: adaptScope,
|
|
18188
18233
|
portal: true,
|
|
18189
|
-
children: /* @__PURE__ */
|
|
18234
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverInner, __spreadValues({
|
|
18190
18235
|
adaptScope,
|
|
18191
18236
|
ref,
|
|
18192
18237
|
id: id2,
|
|
@@ -18279,16 +18324,16 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18279
18324
|
}, []),
|
|
18280
18325
|
keepChildrenMounted
|
|
18281
18326
|
}, memoizedChildren = React__namespace.useMemo(function() {
|
|
18282
|
-
return /* @__PURE__ */
|
|
18327
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopoverContext.Provider, __spreadProps(__spreadValues({
|
|
18283
18328
|
scope
|
|
18284
18329
|
}, popoverContext), {
|
|
18285
|
-
children: /* @__PURE__ */
|
|
18330
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PopoverSheetController, {
|
|
18286
18331
|
context: popoverContext,
|
|
18287
18332
|
onOpenChange: setOpen,
|
|
18288
18333
|
children
|
|
18289
18334
|
})
|
|
18290
18335
|
}));
|
|
18291
|
-
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */
|
|
18336
|
+
}, [scope, setOpen, children, ...Object.values(popoverContext)]), contents = /* @__PURE__ */ jsxRuntime.jsx(Popper, __spreadProps(__spreadValues({
|
|
18292
18337
|
open: open2,
|
|
18293
18338
|
passThrough: isAdapted,
|
|
18294
18339
|
scope,
|
|
@@ -18296,7 +18341,7 @@ var PopoverClose = /* @__PURE__ */ React__namespace.forwardRef(function(props, f
|
|
|
18296
18341
|
}, restProps), {
|
|
18297
18342
|
children: memoizedChildren
|
|
18298
18343
|
}));
|
|
18299
|
-
return /* @__PURE__ */
|
|
18344
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
18300
18345
|
children: contents
|
|
18301
18346
|
});
|
|
18302
18347
|
});
|
|
@@ -18309,7 +18354,7 @@ var PopoverSheetController = function(param) {
|
|
|
18309
18354
|
} = _a, props = __objRest(_a, [
|
|
18310
18355
|
"context"
|
|
18311
18356
|
]), showSheet = useShowPopoverSheet(context2), breakpointActive = context2.breakpointActive, getShowSheet = useGet(showSheet);
|
|
18312
|
-
return /* @__PURE__ */
|
|
18357
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
18313
18358
|
onOpenChange: function(val) {
|
|
18314
18359
|
if (getShowSheet()) {
|
|
18315
18360
|
var _props_onOpenChange;
|
|
@@ -18346,7 +18391,7 @@ var PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = c
|
|
|
18346
18391
|
"__scopeProgress",
|
|
18347
18392
|
"transition"
|
|
18348
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;
|
|
18349
|
-
return /* @__PURE__ */
|
|
18394
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressIndicatorFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18350
18395
|
"data-state": getProgressState(context2.value, context2.max),
|
|
18351
18396
|
"data-value": (_context_value1 = context2.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
18352
18397
|
"data-max": context2.max,
|
|
@@ -18415,12 +18460,12 @@ var DEFAULT_MAX = 100, ProgressFrame = styled(YStack, {
|
|
|
18415
18460
|
"getValueLabel",
|
|
18416
18461
|
"size"
|
|
18417
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);
|
|
18418
|
-
return /* @__PURE__ */
|
|
18463
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProgressProvider, {
|
|
18419
18464
|
scope: __scopeProgress,
|
|
18420
18465
|
value,
|
|
18421
18466
|
max: max2,
|
|
18422
18467
|
width,
|
|
18423
|
-
children: /* @__PURE__ */
|
|
18468
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ProgressFrame, __spreadProps(__spreadValues(__spreadValues({
|
|
18424
18469
|
"aria-valuemax": max2,
|
|
18425
18470
|
"aria-valuemin": 0,
|
|
18426
18471
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
@@ -18562,7 +18607,7 @@ var BubbleInput = function(props) {
|
|
|
18562
18607
|
});
|
|
18563
18608
|
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
18564
18609
|
}
|
|
18565
|
-
}, [prevChecked, checked, bubbles]), /* @__PURE__ */
|
|
18610
|
+
}, [prevChecked, checked, bubbles]), /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({
|
|
18566
18611
|
type: "radio",
|
|
18567
18612
|
defaultChecked: checked
|
|
18568
18613
|
}, inputProps), {
|
|
@@ -18660,7 +18705,7 @@ var useRadioGroupItem = function(params) {
|
|
|
18660
18705
|
},
|
|
18661
18706
|
checked,
|
|
18662
18707
|
isFormControl,
|
|
18663
|
-
bubbleInput: /* @__PURE__ */
|
|
18708
|
+
bubbleInput: /* @__PURE__ */ jsxRuntime.jsx(BubbleInput, __spreadValues({
|
|
18664
18709
|
isHidden: !native,
|
|
18665
18710
|
control: button,
|
|
18666
18711
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
@@ -18715,7 +18760,7 @@ var ITEM_NAME$1 = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */
|
|
|
18715
18760
|
} = _a, props = __objRest(_a, [
|
|
18716
18761
|
"children"
|
|
18717
18762
|
]);
|
|
18718
|
-
return /* @__PURE__ */
|
|
18763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
18719
18764
|
children
|
|
18720
18765
|
}));
|
|
18721
18766
|
});
|
|
@@ -18726,7 +18771,7 @@ var GROUP_NAME$1 = "RovingFocusGroup", RovingFocusGroup = withStaticProperties(/
|
|
|
18726
18771
|
} = _a, props = __objRest(_a, [
|
|
18727
18772
|
"children"
|
|
18728
18773
|
]);
|
|
18729
|
-
return /* @__PURE__ */
|
|
18774
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, __spreadProps(__spreadValues({}, props), {
|
|
18730
18775
|
children
|
|
18731
18776
|
}));
|
|
18732
18777
|
}), {
|
|
@@ -18783,10 +18828,10 @@ function createRadioGroup(createProps) {
|
|
|
18783
18828
|
native,
|
|
18784
18829
|
accentColor
|
|
18785
18830
|
});
|
|
18786
|
-
return /* @__PURE__ */
|
|
18831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupContext.Provider, {
|
|
18787
18832
|
value: providerValue,
|
|
18788
|
-
children: /* @__PURE__ */
|
|
18789
|
-
children: /* @__PURE__ */
|
|
18833
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, __spreadProps(__spreadValues({}, rovingFocusGroupAttrs), {
|
|
18834
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupFrame, __spreadValues(__spreadProps(__spreadValues({}, frameAttrs), {
|
|
18790
18835
|
ref
|
|
18791
18836
|
}), rest))
|
|
18792
18837
|
}))
|
|
@@ -18819,11 +18864,11 @@ function createRadioGroup(createProps) {
|
|
|
18819
18864
|
disabled,
|
|
18820
18865
|
onPress
|
|
18821
18866
|
});
|
|
18822
|
-
return /* @__PURE__ */
|
|
18867
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemContext.Provider, {
|
|
18823
18868
|
value: providerValue,
|
|
18824
|
-
children: /* @__PURE__ */
|
|
18825
|
-
children: [/* @__PURE__ */
|
|
18826
|
-
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), {
|
|
18827
18872
|
ref
|
|
18828
18873
|
}), rest))
|
|
18829
18874
|
})), isFormControl]
|
|
@@ -18846,7 +18891,7 @@ function createRadioGroup(createProps) {
|
|
|
18846
18891
|
} = _b, useIndicatorRest = __objRest(_b, [
|
|
18847
18892
|
"checked"
|
|
18848
18893
|
]);
|
|
18849
|
-
return forceMount || checked ? /* @__PURE__ */
|
|
18894
|
+
return forceMount || checked ? /* @__PURE__ */ jsxRuntime.jsx(Indicator, __spreadValues(__spreadProps(__spreadValues({}, useIndicatorRest), {
|
|
18850
18895
|
ref: forwardedRef
|
|
18851
18896
|
}), indicatorProps)) : null;
|
|
18852
18897
|
});
|
|
@@ -18947,11 +18992,11 @@ var {
|
|
|
18947
18992
|
itemContext,
|
|
18948
18993
|
children
|
|
18949
18994
|
} = param;
|
|
18950
|
-
return /* @__PURE__ */
|
|
18995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, __spreadProps(__spreadValues({
|
|
18951
18996
|
isInSheet: true,
|
|
18952
18997
|
scope: context2.scopeName
|
|
18953
18998
|
}, context2), {
|
|
18954
|
-
children: /* @__PURE__ */
|
|
18999
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, __spreadProps(__spreadValues({
|
|
18955
19000
|
scope: context2.scopeName
|
|
18956
19001
|
}, itemContext), {
|
|
18957
19002
|
children
|
|
@@ -19042,15 +19087,15 @@ var ITEM_NAME = "SelectItem", {
|
|
|
19042
19087
|
onPress: handleSelect
|
|
19043
19088
|
};
|
|
19044
19089
|
}, [handleSelect]);
|
|
19045
|
-
return /* @__PURE__ */
|
|
19090
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemContextProvider, {
|
|
19046
19091
|
scope,
|
|
19047
19092
|
value,
|
|
19048
19093
|
textId: textId || "",
|
|
19049
19094
|
isSelected,
|
|
19050
|
-
children: shouldRenderWebNative ? /* @__PURE__ */
|
|
19095
|
+
children: shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx("option", {
|
|
19051
19096
|
value,
|
|
19052
19097
|
children: props.children
|
|
19053
|
-
}) : /* @__PURE__ */
|
|
19098
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ListItem2.Frame, __spreadValues(__spreadValues(__spreadValues({
|
|
19054
19099
|
tag: "div",
|
|
19055
19100
|
componentName: ITEM_NAME,
|
|
19056
19101
|
ref: composedRefs,
|
|
@@ -19103,7 +19148,7 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19103
19148
|
"scope",
|
|
19104
19149
|
"className"
|
|
19105
19150
|
]), context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), ref = React__namespace.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), itemContext = useSelectItemContext(scope), contents = React__namespace.useRef(null);
|
|
19106
|
-
return contents.current = /* @__PURE__ */
|
|
19151
|
+
return contents.current = /* @__PURE__ */ jsxRuntime.jsx(SelectItemTextFrame, __spreadProps(__spreadValues({
|
|
19107
19152
|
className,
|
|
19108
19153
|
size: itemParentContext.size,
|
|
19109
19154
|
id: itemContext.textId
|
|
@@ -19115,9 +19160,9 @@ var ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = styled(SizableText,
|
|
|
19115
19160
|
return itemParentContext.valueSubscribe(function(val) {
|
|
19116
19161
|
val === itemContext.value && context2.setSelectedItem(contents.current);
|
|
19117
19162
|
});
|
|
19118
|
-
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19163
|
+
}, [itemContext.value]), itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19119
19164
|
children: props.children
|
|
19120
|
-
}) : /* @__PURE__ */
|
|
19165
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19121
19166
|
children: contents.current
|
|
19122
19167
|
});
|
|
19123
19168
|
});
|
|
@@ -19136,7 +19181,7 @@ var TRIGGER_NAME$1 = "SelectTrigger", SelectTrigger = /* @__PURE__ */ React__nam
|
|
|
19136
19181
|
"disabled",
|
|
19137
19182
|
"unstyled"
|
|
19138
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);
|
|
19139
|
-
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19184
|
+
return itemParentContext.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
19140
19185
|
componentName: TRIGGER_NAME$1,
|
|
19141
19186
|
unstyled,
|
|
19142
19187
|
tag: "button",
|
|
@@ -19170,14 +19215,14 @@ var SelectViewport = function(props) {
|
|
|
19170
19215
|
scope,
|
|
19171
19216
|
children
|
|
19172
19217
|
} = props, context2 = useSelectContext(scope), itemParentContext = useSelectItemParentContext(scope), themeName = useThemeName(), adaptContext = useAdaptContext();
|
|
19173
|
-
return /* @__PURE__ */
|
|
19218
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptPortalContents, {
|
|
19174
19219
|
scope: context2.adaptScope,
|
|
19175
|
-
children: /* @__PURE__ */
|
|
19220
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
19176
19221
|
name: themeName,
|
|
19177
|
-
children: /* @__PURE__ */
|
|
19222
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ForwardSelectContext, {
|
|
19178
19223
|
itemContext: itemParentContext,
|
|
19179
19224
|
context: context2,
|
|
19180
|
-
children: /* @__PURE__ */
|
|
19225
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(AdaptContext.Provider, __spreadProps(__spreadValues({}, adaptContext), {
|
|
19181
19226
|
children
|
|
19182
19227
|
}))
|
|
19183
19228
|
})
|
|
@@ -19206,7 +19251,7 @@ var VALUE_NAME = "SelectValue", SelectValueFrame = styled(SizableText, {
|
|
|
19206
19251
|
forwardedRef,
|
|
19207
19252
|
context2.onValueNodeChange
|
|
19208
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;
|
|
19209
|
-
return /* @__PURE__ */
|
|
19254
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectValueFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
19210
19255
|
size: itemParentContext.size,
|
|
19211
19256
|
ellipsis: true,
|
|
19212
19257
|
// we don't want events from the portalled `SelectValue` children to bubble
|
|
@@ -19232,7 +19277,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19232
19277
|
name: "SelectIcon",
|
|
19233
19278
|
// @ts-ignore
|
|
19234
19279
|
"aria-hidden": true,
|
|
19235
|
-
children: /* @__PURE__ */
|
|
19280
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Paragraph, {
|
|
19236
19281
|
children: "▼"
|
|
19237
19282
|
})
|
|
19238
19283
|
}), SelectItemIndicatorFrame = styled(XStack, {
|
|
@@ -19243,7 +19288,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19243
19288
|
} = _a, itemIndicatorProps = __objRest(_a, [
|
|
19244
19289
|
"scope"
|
|
19245
19290
|
]), context2 = useSelectItemParentContext(scope), itemContext = useSelectItemContext(scope);
|
|
19246
|
-
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */
|
|
19291
|
+
return context2.shouldRenderWebNative ? null : itemContext.isSelected ? /* @__PURE__ */ jsxRuntime.jsx(SelectItemIndicatorFrame, __spreadProps(__spreadValues({
|
|
19247
19292
|
"aria-hidden": true
|
|
19248
19293
|
}, itemIndicatorProps), {
|
|
19249
19294
|
ref: forwardedRef
|
|
@@ -19285,7 +19330,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19285
19330
|
}));
|
|
19286
19331
|
};
|
|
19287
19332
|
return context2.open && context2.activeIndex !== null && update2(context2.activeIndex), itemContext.activeIndexSubscribe(update2);
|
|
19288
|
-
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */
|
|
19333
|
+
}, [context2.open, itemContext.listRef]), layout ? /* @__PURE__ */ jsxRuntime.jsx(SelectIndicatorFrame, __spreadProps(__spreadValues({
|
|
19289
19334
|
ref: forwardedRef
|
|
19290
19335
|
}, props), {
|
|
19291
19336
|
width: layout.width,
|
|
@@ -19347,13 +19392,13 @@ var SelectIcon = styled(XStack, {
|
|
|
19347
19392
|
} = _a, groupProps = __objRest(_a, [
|
|
19348
19393
|
"scope"
|
|
19349
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() {
|
|
19350
|
-
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */
|
|
19395
|
+
return itemParentContext.shouldRenderWebNative ? /* @__PURE__ */ jsxRuntime.jsx(NativeSelectFrame, {
|
|
19351
19396
|
asChild: true,
|
|
19352
19397
|
size,
|
|
19353
19398
|
// @ts-expect-error until we support typing based on tag
|
|
19354
19399
|
value: context2.value,
|
|
19355
19400
|
id: itemParentContext.id,
|
|
19356
|
-
children: /* @__PURE__ */
|
|
19401
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(NativeSelectTextFrame, {
|
|
19357
19402
|
// @ts-ignore it's ok since tag="select"
|
|
19358
19403
|
onChange: function(event) {
|
|
19359
19404
|
itemParentContext.onChange(event.currentTarget.value);
|
|
@@ -19367,7 +19412,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19367
19412
|
},
|
|
19368
19413
|
children: props.children
|
|
19369
19414
|
})
|
|
19370
|
-
}) : /* @__PURE__ */
|
|
19415
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(SelectGroupFrame, __spreadProps(__spreadValues({
|
|
19371
19416
|
// @ts-ignore
|
|
19372
19417
|
role: "group",
|
|
19373
19418
|
"aria-labelledby": groupId
|
|
@@ -19375,7 +19420,7 @@ var SelectIcon = styled(XStack, {
|
|
|
19375
19420
|
ref: forwardedRef
|
|
19376
19421
|
}));
|
|
19377
19422
|
})();
|
|
19378
|
-
return /* @__PURE__ */
|
|
19423
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectGroupContextProvider, {
|
|
19379
19424
|
scope,
|
|
19380
19425
|
id: groupId || "",
|
|
19381
19426
|
children: content
|
|
@@ -19390,7 +19435,7 @@ var LABEL_NAME = "SelectLabel", SelectLabelText = styled(ListItem2.Text, {
|
|
|
19390
19435
|
} = _a, labelProps = __objRest(_a, [
|
|
19391
19436
|
"scope"
|
|
19392
19437
|
]), context2 = useSelectItemParentContext(scope), groupContext = useSelectGroupContext(scope);
|
|
19393
|
-
return context2.shouldRenderWebNative ? null : /* @__PURE__ */
|
|
19438
|
+
return context2.shouldRenderWebNative ? null : /* @__PURE__ */ jsxRuntime.jsx(ListItem2, __spreadProps(__spreadValues({
|
|
19394
19439
|
tag: "div",
|
|
19395
19440
|
componentName: LABEL_NAME,
|
|
19396
19441
|
fontWeight: "800",
|
|
@@ -19407,7 +19452,7 @@ var SelectSeparator = styled(Separator, {
|
|
|
19407
19452
|
name: "SelectSeparator"
|
|
19408
19453
|
}), SelectSheetController = function(props) {
|
|
19409
19454
|
var context2 = useSelectContext(props.scope), showSheet = useShowSelectSheet(context2), isAdapted = useAdaptIsActive(context2.adaptScope), getShowSheet = useGet(showSheet);
|
|
19410
|
-
return /* @__PURE__ */
|
|
19455
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetController, {
|
|
19411
19456
|
onOpenChange: function(val) {
|
|
19412
19457
|
getShowSheet() && props.onOpenChange(val);
|
|
19413
19458
|
},
|
|
@@ -19416,15 +19461,15 @@ var SelectSeparator = styled(Separator, {
|
|
|
19416
19461
|
children: props.children
|
|
19417
19462
|
});
|
|
19418
19463
|
}, SelectSheetImpl = function(props) {
|
|
19419
|
-
return /* @__PURE__ */
|
|
19464
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19420
19465
|
children: props.children
|
|
19421
19466
|
});
|
|
19422
19467
|
}, Select = withStaticProperties(function(props) {
|
|
19423
19468
|
var adaptScope = `AdaptSelect${props.scope || ""}`;
|
|
19424
|
-
return /* @__PURE__ */
|
|
19469
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AdaptParent, {
|
|
19425
19470
|
scope: adaptScope,
|
|
19426
19471
|
portal: true,
|
|
19427
|
-
children: /* @__PURE__ */
|
|
19472
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectInner, __spreadValues({
|
|
19428
19473
|
scope: props.scope,
|
|
19429
19474
|
adaptScope
|
|
19430
19475
|
}, props))
|
|
@@ -19516,7 +19561,7 @@ function SelectInner(props) {
|
|
|
19516
19561
|
return prev !== index2 ? (typeof index2 == "number" && emitActiveIndex(index2), index2) : prev;
|
|
19517
19562
|
});
|
|
19518
19563
|
}, 0, {}, []);
|
|
19519
|
-
return /* @__PURE__ */
|
|
19564
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItemParentProvider, {
|
|
19520
19565
|
scopeName: scope,
|
|
19521
19566
|
scope,
|
|
19522
19567
|
adaptScope,
|
|
@@ -19539,7 +19584,7 @@ function SelectInner(props) {
|
|
|
19539
19584
|
listContentRef.current[index2] = value2;
|
|
19540
19585
|
}, []),
|
|
19541
19586
|
shouldRenderWebNative,
|
|
19542
|
-
children: /* @__PURE__ */
|
|
19587
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectProvider, {
|
|
19543
19588
|
scope,
|
|
19544
19589
|
scopeName: scope,
|
|
19545
19590
|
adaptScope,
|
|
@@ -19559,10 +19604,10 @@ function SelectInner(props) {
|
|
|
19559
19604
|
open: open2,
|
|
19560
19605
|
native,
|
|
19561
19606
|
renderValue,
|
|
19562
|
-
children: /* @__PURE__ */
|
|
19607
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectSheetController, {
|
|
19563
19608
|
onOpenChange: setOpen,
|
|
19564
19609
|
scope,
|
|
19565
|
-
children: /* @__PURE__ */
|
|
19610
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SelectImpl, __spreadProps(__spreadValues({
|
|
19566
19611
|
activeIndexRef,
|
|
19567
19612
|
listContentRef,
|
|
19568
19613
|
selectedIndexRef
|
|
@@ -19704,19 +19749,19 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
19704
19749
|
var _props_onOpenChange;
|
|
19705
19750
|
(_props_onOpenChange = props.onOpenChange) === null || _props_onOpenChange === void 0 || _props_onOpenChange.call(props, open2), setOpen(next);
|
|
19706
19751
|
}
|
|
19707
|
-
return /* @__PURE__ */
|
|
19708
|
-
children: /* @__PURE__ */
|
|
19752
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19753
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({
|
|
19709
19754
|
setHasScrollView: emptyFn
|
|
19710
19755
|
}, providerProps), {
|
|
19711
19756
|
onlyShowFrame: true,
|
|
19712
19757
|
children: [
|
|
19713
|
-
/* @__PURE__ */
|
|
19758
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalSheetView, {
|
|
19714
19759
|
ref,
|
|
19715
19760
|
onModalDidDismiss: function() {
|
|
19716
19761
|
return setOpenInternal(false);
|
|
19717
19762
|
},
|
|
19718
|
-
children: /* @__PURE__ */
|
|
19719
|
-
children: /* @__PURE__ */
|
|
19763
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ModalSheetViewMainContent, {
|
|
19764
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
19720
19765
|
style: {
|
|
19721
19766
|
flex: 1
|
|
19722
19767
|
},
|
|
@@ -19726,7 +19771,7 @@ function setupNativeSheet(platform2, RNIOSModal) {
|
|
|
19726
19771
|
}),
|
|
19727
19772
|
/* for some reason select triggers wont show on native if this isn't inside the actual tree not inside implementation... */
|
|
19728
19773
|
/* so just hiding it here for now... not great... */
|
|
19729
|
-
/* @__PURE__ */
|
|
19774
|
+
/* @__PURE__ */ jsxRuntime.jsx(YStack, {
|
|
19730
19775
|
position: "absolute",
|
|
19731
19776
|
opacity: 0,
|
|
19732
19777
|
pointerEvents: "none",
|
|
@@ -19966,18 +20011,18 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
19966
20011
|
`${maxSnapPoint}${"%"}`
|
|
19967
20012
|
) : maxSnapPoint, setHasScrollView = React.useCallback(function(val) {
|
|
19968
20013
|
hasScrollView.current = val;
|
|
19969
|
-
}, []), contents = /* @__PURE__ */
|
|
20014
|
+
}, []), contents = /* @__PURE__ */ jsxRuntime.jsx(LayoutMeasurementController, {
|
|
19970
20015
|
disable: !open2,
|
|
19971
|
-
children: /* @__PURE__ */
|
|
20016
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ParentSheetContext.Provider, {
|
|
19972
20017
|
value: nextParentContext,
|
|
19973
|
-
children: /* @__PURE__ */
|
|
20018
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(SheetProvider, __spreadProps(__spreadValues({}, providerProps), {
|
|
19974
20019
|
setHasScrollView,
|
|
19975
|
-
children: [/* @__PURE__ */
|
|
20020
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, {
|
|
19976
20021
|
custom: {
|
|
19977
20022
|
open: open2
|
|
19978
20023
|
},
|
|
19979
20024
|
children: shouldHideParentSheet || !open2 ? null : overlayComponent
|
|
19980
|
-
}), snapPointsMode !== "percent" && /* @__PURE__ */
|
|
20025
|
+
}), snapPointsMode !== "percent" && /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
19981
20026
|
style: {
|
|
19982
20027
|
opacity: 0,
|
|
19983
20028
|
position: "absolute",
|
|
@@ -19988,7 +20033,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
19988
20033
|
pointerEvents: "none"
|
|
19989
20034
|
},
|
|
19990
20035
|
onLayout: handleMaxContentViewLayout
|
|
19991
|
-
}), /* @__PURE__ */
|
|
20036
|
+
}), /* @__PURE__ */ jsxRuntime.jsx(AnimatedView, __spreadProps(__spreadValues({
|
|
19992
20037
|
ref
|
|
19993
20038
|
}, panResponder == null ? void 0 : panResponder.panHandlers), {
|
|
19994
20039
|
onLayout: handleAnimationViewLayout,
|
|
@@ -20017,7 +20062,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20017
20062
|
});
|
|
20018
20063
|
if (!USE_NATIVE_PORTAL) {
|
|
20019
20064
|
var adaptContext = useAdaptContext();
|
|
20020
|
-
contents = /* @__PURE__ */
|
|
20065
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(ProvideAdaptContext, __spreadProps(__spreadValues({}, adaptContext), {
|
|
20021
20066
|
children: (
|
|
20022
20067
|
/* @ts-ignore */
|
|
20023
20068
|
contents
|
|
@@ -20026,11 +20071,11 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20026
20071
|
}
|
|
20027
20072
|
var shouldMountChildren = unmountChildrenWhenHidden ? !!opacity : true;
|
|
20028
20073
|
if (modal) {
|
|
20029
|
-
var modalContents = /* @__PURE__ */
|
|
20074
|
+
var modalContents = /* @__PURE__ */ jsxRuntime.jsx(Portal, __spreadProps(__spreadValues({
|
|
20030
20075
|
stackZIndex: zIndex
|
|
20031
20076
|
}, portalProps), {
|
|
20032
|
-
children: shouldMountChildren && /* @__PURE__ */
|
|
20033
|
-
children: /* @__PURE__ */
|
|
20077
|
+
children: shouldMountChildren && /* @__PURE__ */ jsxRuntime.jsx(ContainerComponent, {
|
|
20078
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
20034
20079
|
contain: true,
|
|
20035
20080
|
forceClassName: true,
|
|
20036
20081
|
name: themeName,
|
|
@@ -20038,7 +20083,7 @@ var hiddenSize = 10000.1, relativeDimensionTo = "screen", SheetImplementationCus
|
|
|
20038
20083
|
})
|
|
20039
20084
|
})
|
|
20040
20085
|
}));
|
|
20041
|
-
return /* @__PURE__ */
|
|
20086
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetInsideSheetContext.Provider, {
|
|
20042
20087
|
value: onInnerSheet,
|
|
20043
20088
|
children: modalContents
|
|
20044
20089
|
});
|
|
@@ -20124,7 +20169,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20124
20169
|
};
|
|
20125
20170
|
return React.useEffect(function() {
|
|
20126
20171
|
scrollBridge.hasScrollableContent = hasScrollableContent;
|
|
20127
|
-
}, [hasScrollableContent]), /* @__PURE__ */
|
|
20172
|
+
}, [hasScrollableContent]), /* @__PURE__ */ jsxRuntime.jsxs(ScrollView3, __spreadProps(__spreadValues({
|
|
20128
20173
|
onLayout: function(e2) {
|
|
20129
20174
|
parentHeight.current = Math.ceil(e2.nativeEvent.layout.height), setIsScrollable();
|
|
20130
20175
|
},
|
|
@@ -20164,7 +20209,7 @@ var SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = /* @__PURE__ *
|
|
|
20164
20209
|
}, props), {
|
|
20165
20210
|
children: [
|
|
20166
20211
|
/* content height measurer */
|
|
20167
|
-
/* @__PURE__ */
|
|
20212
|
+
/* @__PURE__ */ jsxRuntime.jsx(View, {
|
|
20168
20213
|
position: "absolute",
|
|
20169
20214
|
inset: 0,
|
|
20170
20215
|
pointerEvents: "none",
|
|
@@ -20213,7 +20258,7 @@ function createSheet(param) {
|
|
|
20213
20258
|
]), context2 = useSheetContext(SHEET_HANDLE_NAME, __scopeSheet), composedRef = useComposedRefs(context2.handleRef, forwardedRef);
|
|
20214
20259
|
return context2.onlyShowFrame ? null : (
|
|
20215
20260
|
// @ts-ignore
|
|
20216
|
-
/* @__PURE__ */
|
|
20261
|
+
/* @__PURE__ */ jsxRuntime.jsx(Handle2, __spreadValues({
|
|
20217
20262
|
ref: composedRef,
|
|
20218
20263
|
onPress: function() {
|
|
20219
20264
|
var max2 = context2.snapPoints.length + (context2.dismissOnSnapToBottom ? -1 : 0), nextPos = (context2.position + 1) % max2;
|
|
@@ -20230,7 +20275,7 @@ function createSheet(param) {
|
|
|
20230
20275
|
]), context2 = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet), element = React.useMemo(function() {
|
|
20231
20276
|
return (
|
|
20232
20277
|
// @ts-ignore
|
|
20233
|
-
/* @__PURE__ */
|
|
20278
|
+
/* @__PURE__ */ jsxRuntime.jsx(Overlay2, __spreadProps(__spreadValues({}, props), {
|
|
20234
20279
|
onPress: composeEventHandlers(props.onPress, context2.dismissOnOverlayPress ? function() {
|
|
20235
20280
|
context2.setOpen(false);
|
|
20236
20281
|
} : void 0)
|
|
@@ -20266,7 +20311,7 @@ function createSheet(param) {
|
|
|
20266
20311
|
var shouldUseFixedHeight = hasFit && !open2 && stableFrameSize.current;
|
|
20267
20312
|
return (
|
|
20268
20313
|
// @ts-expect-error
|
|
20269
|
-
/* @__PURE__ */
|
|
20314
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Frame2, __spreadProps(__spreadValues({
|
|
20270
20315
|
ref: composedContentRef,
|
|
20271
20316
|
flex: hasFit && open2 ? 0 : 1,
|
|
20272
20317
|
flexBasis: hasFit ? "auto" : void 0,
|
|
@@ -20274,10 +20319,10 @@ function createSheet(param) {
|
|
|
20274
20319
|
pointerEvents: open2 ? "auto" : "none",
|
|
20275
20320
|
"data-state": open2 ? "open" : "closed"
|
|
20276
20321
|
}, props), {
|
|
20277
|
-
children: [/* @__PURE__ */
|
|
20322
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(StackZIndexContext, {
|
|
20278
20323
|
zIndex: resolveViewZIndex(props.zIndex),
|
|
20279
20324
|
children
|
|
20280
|
-
}), adjustPaddingForOffscreenContent && /* @__PURE__ */
|
|
20325
|
+
}), adjustPaddingForOffscreenContent && /* @__PURE__ */ jsxRuntime.jsx(Stack, {
|
|
20281
20326
|
"data-sheet-offscreen-pad": true,
|
|
20282
20327
|
height: offscreenSize,
|
|
20283
20328
|
width: "100%"
|
|
@@ -20285,15 +20330,15 @@ function createSheet(param) {
|
|
|
20285
20330
|
}))
|
|
20286
20331
|
);
|
|
20287
20332
|
}, [open2, props, frameSize, offscreenSize, adjustPaddingForOffscreenContent, hasFit]);
|
|
20288
|
-
return /* @__PURE__ */
|
|
20333
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
20289
20334
|
children: [
|
|
20290
|
-
/* @__PURE__ */
|
|
20335
|
+
/* @__PURE__ */ jsxRuntime.jsx(RemoveScroll, {
|
|
20291
20336
|
enabled: !disableRemoveScroll && context2.open,
|
|
20292
20337
|
children: sheetContents
|
|
20293
20338
|
}),
|
|
20294
20339
|
/* below frame hide when bouncing past 100% */
|
|
20295
20340
|
!disableHideBottomOverflow && // @ts-ignore
|
|
20296
|
-
/* @__PURE__ */
|
|
20341
|
+
/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues({}, props), {
|
|
20297
20342
|
componentName: "SheetCover",
|
|
20298
20343
|
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
20299
20344
|
children: null,
|
|
@@ -20318,7 +20363,7 @@ function createSheet(param) {
|
|
|
20318
20363
|
isShowingNonSheet
|
|
20319
20364
|
} = useSheetController(), SheetImplementation = SheetImplementationCustom;
|
|
20320
20365
|
if (props.native && Platform.OS === "ios") ;
|
|
20321
|
-
return isShowingNonSheet || false ? null : /* @__PURE__ */
|
|
20366
|
+
return isShowingNonSheet || false ? null : /* @__PURE__ */ jsxRuntime.jsx(SheetImplementation, __spreadValues({
|
|
20322
20367
|
ref
|
|
20323
20368
|
}, props));
|
|
20324
20369
|
}), components = {
|
|
@@ -20524,7 +20569,7 @@ var SliderFrame = styled(YStack, {
|
|
|
20524
20569
|
"onEndKeyDown",
|
|
20525
20570
|
"onStepKeyDown"
|
|
20526
20571
|
]), context2 = useSliderContext(__scopeSlider);
|
|
20527
|
-
return /* @__PURE__ */
|
|
20572
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
20528
20573
|
size: "$4"
|
|
20529
20574
|
}, sliderProps), {
|
|
20530
20575
|
"data-orientation": sliderProps.orientation,
|
|
@@ -20597,14 +20642,14 @@ var SliderHorizontal = /* @__PURE__ */ React__namespace.forwardRef(function(prop
|
|
|
20597
20642
|
});
|
|
20598
20643
|
});
|
|
20599
20644
|
};
|
|
20600
|
-
return /* @__PURE__ */
|
|
20645
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20601
20646
|
scope: props.__scopeSlider,
|
|
20602
20647
|
startEdge: isDirectionLTR ? "left" : "right",
|
|
20603
20648
|
endEdge: isDirectionLTR ? "right" : "left",
|
|
20604
20649
|
direction: isDirectionLTR ? 1 : -1,
|
|
20605
20650
|
sizeProp: "width",
|
|
20606
20651
|
size: state.size,
|
|
20607
|
-
children: /* @__PURE__ */
|
|
20652
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20608
20653
|
ref: composeRefs(forwardedRef, sliderRef),
|
|
20609
20654
|
dir: direction
|
|
20610
20655
|
}, sliderProps), {
|
|
@@ -20668,14 +20713,14 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
20668
20713
|
});
|
|
20669
20714
|
});
|
|
20670
20715
|
};
|
|
20671
|
-
return /* @__PURE__ */
|
|
20716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderOrientationProvider, {
|
|
20672
20717
|
scope: props.__scopeSlider,
|
|
20673
20718
|
startEdge: "bottom",
|
|
20674
20719
|
endEdge: "top",
|
|
20675
20720
|
sizeProp: "height",
|
|
20676
20721
|
size: state.size,
|
|
20677
20722
|
direction: 1,
|
|
20678
|
-
children: /* @__PURE__ */
|
|
20723
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderImpl, __spreadProps(__spreadValues({
|
|
20679
20724
|
ref: composeRefs(forwardedRef, sliderRef)
|
|
20680
20725
|
}, sliderProps), {
|
|
20681
20726
|
orientation: "vertical",
|
|
@@ -20724,7 +20769,7 @@ var SliderVertical = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
20724
20769
|
} = _a, trackProps = __objRest(_a, [
|
|
20725
20770
|
"__scopeSlider"
|
|
20726
20771
|
]), context2 = useSliderContext(__scopeSlider);
|
|
20727
|
-
return /* @__PURE__ */
|
|
20772
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackFrame, __spreadProps(__spreadValues({
|
|
20728
20773
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
20729
20774
|
"data-orientation": context2.orientation,
|
|
20730
20775
|
orientation: context2.orientation,
|
|
@@ -20747,7 +20792,7 @@ var RANGE_NAME = "SliderTrackActive", SliderTrackActiveFrame = styled(SliderFram
|
|
|
20747
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) {
|
|
20748
20793
|
return convertValueToPercentage(value, context2.min, context2.max);
|
|
20749
20794
|
}), offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0, offsetEnd = 100 - Math.max(...percentages);
|
|
20750
|
-
return /* @__PURE__ */
|
|
20795
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderTrackActiveFrame, __spreadValues(__spreadProps(__spreadValues({
|
|
20751
20796
|
orientation: context2.orientation,
|
|
20752
20797
|
"data-orientation": context2.orientation,
|
|
20753
20798
|
"data-disabled": context2.disabled ? "" : void 0,
|
|
@@ -20831,7 +20876,7 @@ var getThumbSize = function(val) {
|
|
|
20831
20876
|
left: "auto",
|
|
20832
20877
|
right: "auto"
|
|
20833
20878
|
});
|
|
20834
|
-
return /* @__PURE__ */
|
|
20879
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderThumbFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
20835
20880
|
ref: composedRefs,
|
|
20836
20881
|
role: "slider",
|
|
20837
20882
|
"aria-label": props["aria-label"] || label,
|
|
@@ -20919,7 +20964,7 @@ var getThumbSize = function(val) {
|
|
|
20919
20964
|
});
|
|
20920
20965
|
}
|
|
20921
20966
|
var SliderOriented = isHorizontal ? SliderHorizontal : SliderVertical;
|
|
20922
|
-
return /* @__PURE__ */
|
|
20967
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SliderProvider, {
|
|
20923
20968
|
scope: props.__scopeSlider,
|
|
20924
20969
|
disabled,
|
|
20925
20970
|
min: min2,
|
|
@@ -20929,7 +20974,7 @@ var getThumbSize = function(val) {
|
|
|
20929
20974
|
values,
|
|
20930
20975
|
orientation,
|
|
20931
20976
|
size: sizeProp,
|
|
20932
|
-
children: /* @__PURE__ */
|
|
20977
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderOriented, __spreadProps(__spreadValues({
|
|
20933
20978
|
"aria-disabled": disabled,
|
|
20934
20979
|
"data-disabled": disabled ? "" : void 0
|
|
20935
20980
|
}, sliderProps), {
|
|
@@ -21081,7 +21126,7 @@ function createSwitch(createProps) {
|
|
|
21081
21126
|
unstyled: unstyledContext,
|
|
21082
21127
|
size: sizeContext
|
|
21083
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;
|
|
21084
|
-
return /* @__PURE__ */
|
|
21129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Thumb2, __spreadValues(__spreadProps(__spreadValues({
|
|
21085
21130
|
ref: forwardedRef,
|
|
21086
21131
|
unstyled
|
|
21087
21132
|
}, unstyled === false && __spreadValues({
|
|
@@ -21145,7 +21190,7 @@ function createSwitch(createProps) {
|
|
|
21145
21190
|
});
|
|
21146
21191
|
}, [props.id, props.disabled]);
|
|
21147
21192
|
var renderNative = shouldRenderNativePlatform(native);
|
|
21148
|
-
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */
|
|
21193
|
+
if (renderNative === "android" || renderNative === "ios") return /* @__PURE__ */ jsxRuntime.jsx(UnimplementedView, __spreadValues({
|
|
21149
21194
|
value: checked,
|
|
21150
21195
|
onValueChange: setChecked
|
|
21151
21196
|
}, nativeProps));
|
|
@@ -21159,9 +21204,9 @@ function createSwitch(createProps) {
|
|
|
21159
21204
|
var next = e2.nativeEvent.layout.width;
|
|
21160
21205
|
next !== frameWidth && setFrameInnerWidth(next);
|
|
21161
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;
|
|
21162
|
-
return /* @__PURE__ */
|
|
21207
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SwitchContext.Provider, {
|
|
21163
21208
|
value,
|
|
21164
|
-
children: [/* @__PURE__ */
|
|
21209
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(Frame2, __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({
|
|
21165
21210
|
ref: switchRef,
|
|
21166
21211
|
tag: "button"
|
|
21167
21212
|
}, isWeb), !unstyled && {
|
|
@@ -21174,7 +21219,7 @@ function createSwitch(createProps) {
|
|
|
21174
21219
|
// expected variants
|
|
21175
21220
|
checked,
|
|
21176
21221
|
disabled,
|
|
21177
|
-
children: /* @__PURE__ */
|
|
21222
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
21178
21223
|
style: measureContainerStyle,
|
|
21179
21224
|
onLayout: handleLayout,
|
|
21180
21225
|
children: frameWidth ? props.children : null
|
|
@@ -21257,13 +21302,13 @@ function createTabs(createProps) {
|
|
|
21257
21302
|
"loop",
|
|
21258
21303
|
"children"
|
|
21259
21304
|
]), context2 = useTabsContext(__scopeTabs);
|
|
21260
|
-
return /* @__PURE__ */
|
|
21305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
21261
21306
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21262
21307
|
orientation: context2.orientation,
|
|
21263
21308
|
dir: context2.dir,
|
|
21264
21309
|
loop,
|
|
21265
21310
|
asChild: true,
|
|
21266
|
-
children: /* @__PURE__ */
|
|
21311
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Group, __spreadProps(__spreadValues({
|
|
21267
21312
|
role: "tablist",
|
|
21268
21313
|
componentName: TAB_LIST_NAME,
|
|
21269
21314
|
"aria-orientation": context2.orientation,
|
|
@@ -21301,14 +21346,14 @@ function createTabs(createProps) {
|
|
|
21301
21346
|
isSelected && layout && (onInteraction == null ? void 0 : onInteraction("select", layout));
|
|
21302
21347
|
}, [isSelected, value, layout]);
|
|
21303
21348
|
var _props_onPress;
|
|
21304
|
-
return /* @__PURE__ */
|
|
21349
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
21305
21350
|
name: isSelected && !disableActiveTheme ? "active" : null,
|
|
21306
|
-
children: /* @__PURE__ */
|
|
21351
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21307
21352
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
21308
21353
|
asChild: true,
|
|
21309
21354
|
focusable: !disabled,
|
|
21310
21355
|
active: isSelected,
|
|
21311
|
-
children: /* @__PURE__ */
|
|
21356
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabFrame, __spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
21312
21357
|
onLayout: function(event) {
|
|
21313
21358
|
setLayout(event.nativeEvent.layout);
|
|
21314
21359
|
},
|
|
@@ -21352,7 +21397,7 @@ function createTabs(createProps) {
|
|
|
21352
21397
|
"forceMount",
|
|
21353
21398
|
"children"
|
|
21354
21399
|
]), context2 = useTabsContext(__scopeTabs), isSelected = value === context2.value, show = forceMount || isSelected, triggerId = makeTriggerId(context2.baseId, value), contentId = makeContentId(context2.baseId, value);
|
|
21355
|
-
return show ? /* @__PURE__ */
|
|
21400
|
+
return show ? /* @__PURE__ */ jsxRuntime.jsx(ContentFrame, __spreadProps(__spreadValues({
|
|
21356
21401
|
"data-state": isSelected ? "active" : "inactive",
|
|
21357
21402
|
"data-orientation": context2.orientation,
|
|
21358
21403
|
role: "tabpanel",
|
|
@@ -21397,7 +21442,7 @@ function createTabs(createProps) {
|
|
|
21397
21442
|
return v - 1;
|
|
21398
21443
|
});
|
|
21399
21444
|
});
|
|
21400
|
-
return /* @__PURE__ */
|
|
21445
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsProvider, {
|
|
21401
21446
|
scope: __scopeTabs,
|
|
21402
21447
|
baseId: React__namespace.useId(),
|
|
21403
21448
|
value,
|
|
@@ -21409,7 +21454,7 @@ function createTabs(createProps) {
|
|
|
21409
21454
|
registerTrigger,
|
|
21410
21455
|
triggersCount,
|
|
21411
21456
|
unregisterTrigger,
|
|
21412
|
-
children: /* @__PURE__ */
|
|
21457
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabsFrame, __spreadProps(__spreadValues({
|
|
21413
21458
|
direction,
|
|
21414
21459
|
// dir={direction}
|
|
21415
21460
|
"data-orientation": orientation
|
|
@@ -21627,7 +21672,7 @@ var context = createStyledContext({
|
|
|
21627
21672
|
onChange: onPressedChange,
|
|
21628
21673
|
defaultProp: defaultPressed
|
|
21629
21674
|
}), _props_onPress;
|
|
21630
|
-
return /* @__PURE__ */
|
|
21675
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleFrame, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, !props.unstyled && {
|
|
21631
21676
|
theme: pressed ? "accent" : null,
|
|
21632
21677
|
themeShallow: true
|
|
21633
21678
|
}), {
|
|
@@ -21675,18 +21720,18 @@ var TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem
|
|
|
21675
21720
|
}, sizeProps), rest), {
|
|
21676
21721
|
children,
|
|
21677
21722
|
toggledStyle
|
|
21678
|
-
}), inner = /* @__PURE__ */
|
|
21723
|
+
}), inner = /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemImpl, __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
21679
21724
|
ref: forwardedRef,
|
|
21680
21725
|
// focusable={!disabled}
|
|
21681
21726
|
tabIndex: disabled ? -1 : 0,
|
|
21682
21727
|
disabled
|
|
21683
21728
|
}), groupItemProps));
|
|
21684
|
-
return /* @__PURE__ */
|
|
21729
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupItemProvider, {
|
|
21685
21730
|
scope: props.__scopeToggleGroup,
|
|
21686
|
-
children: /* @__PURE__ */
|
|
21731
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
21687
21732
|
color,
|
|
21688
21733
|
toggledStyle,
|
|
21689
|
-
children: context$12.rovingFocus ? /* @__PURE__ */
|
|
21734
|
+
children: context$12.rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup.Item, {
|
|
21690
21735
|
asChild: "except-style",
|
|
21691
21736
|
__scopeRovingFocusGroup: props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
21692
21737
|
focusable: !disabled,
|
|
@@ -21707,7 +21752,7 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
21707
21752
|
]), valueContext = useToggleGroupValueContext(__scopeToggleGroup), singleProps = {
|
|
21708
21753
|
"aria-pressed": void 0
|
|
21709
21754
|
}, typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
21710
|
-
return /* @__PURE__ */
|
|
21755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Toggle, __spreadProps(__spreadValues(__spreadValues({}, typeProps), itemProps), {
|
|
21711
21756
|
ref: forwardedRef,
|
|
21712
21757
|
onPressedChange: function(pressed) {
|
|
21713
21758
|
pressed ? valueContext.onItemActivate(value) : valueContext.onItemDeactivate(value);
|
|
@@ -21728,13 +21773,13 @@ var ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(function(props, forwa
|
|
|
21728
21773
|
});
|
|
21729
21774
|
}, [props.id]), type === "single") {
|
|
21730
21775
|
var singleProps = toggleGroupProps;
|
|
21731
|
-
return /* @__PURE__ */
|
|
21776
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplSingle, __spreadProps(__spreadValues({}, singleProps), {
|
|
21732
21777
|
ref: forwardedRef
|
|
21733
21778
|
}));
|
|
21734
21779
|
}
|
|
21735
21780
|
if (type === "multiple") {
|
|
21736
21781
|
var multipleProps = toggleGroupProps;
|
|
21737
|
-
return /* @__PURE__ */
|
|
21782
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplMultiple, __spreadProps(__spreadValues({}, multipleProps), {
|
|
21738
21783
|
ref: forwardedRef
|
|
21739
21784
|
}));
|
|
21740
21785
|
}
|
|
@@ -21763,7 +21808,7 @@ var {
|
|
|
21763
21808
|
defaultProp: defaultValue2,
|
|
21764
21809
|
onChange: onValueChange
|
|
21765
21810
|
});
|
|
21766
|
-
return /* @__PURE__ */
|
|
21811
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
21767
21812
|
scope: props.__scopeToggleGroup,
|
|
21768
21813
|
type: "single",
|
|
21769
21814
|
value: value ? [value] : [],
|
|
@@ -21772,7 +21817,7 @@ var {
|
|
|
21772
21817
|
onItemDeactivate: React.useCallback(function() {
|
|
21773
21818
|
return disableDeactivation ? null : setValue("");
|
|
21774
21819
|
}, [setValue, disableDeactivation]),
|
|
21775
|
-
children: /* @__PURE__ */
|
|
21820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupSingleProps), {
|
|
21776
21821
|
ref: forwardedRef
|
|
21777
21822
|
}))
|
|
21778
21823
|
});
|
|
@@ -21805,14 +21850,14 @@ var {
|
|
|
21805
21850
|
});
|
|
21806
21851
|
});
|
|
21807
21852
|
}, [setValue]);
|
|
21808
|
-
return /* @__PURE__ */
|
|
21853
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupValueProvider, {
|
|
21809
21854
|
scope: props.__scopeToggleGroup,
|
|
21810
21855
|
type: "multiple",
|
|
21811
21856
|
value,
|
|
21812
21857
|
defaultValue: value,
|
|
21813
21858
|
onItemActivate: handleButtonActivate,
|
|
21814
21859
|
onItemDeactivate: handleButtonDeactivate,
|
|
21815
|
-
children: /* @__PURE__ */
|
|
21860
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImpl, __spreadProps(__spreadValues({}, toggleGroupMultipleProps), {
|
|
21816
21861
|
ref: forwardedRef
|
|
21817
21862
|
}))
|
|
21818
21863
|
});
|
|
@@ -21871,21 +21916,21 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
21871
21916
|
}, toggleGroupProps), adjustedSize = getVariableValue(getSize(sizeProp, {
|
|
21872
21917
|
shift: sizeAdjust
|
|
21873
21918
|
})), size = Math.round(adjustedSize * 0.45);
|
|
21874
|
-
return /* @__PURE__ */
|
|
21919
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext, {
|
|
21875
21920
|
scope: __scopeToggleGroup,
|
|
21876
21921
|
rovingFocus,
|
|
21877
21922
|
disabled,
|
|
21878
21923
|
size,
|
|
21879
|
-
children: /* @__PURE__ */
|
|
21924
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(context.Provider, {
|
|
21880
21925
|
color,
|
|
21881
21926
|
toggledStyle,
|
|
21882
|
-
children: rovingFocus ? /* @__PURE__ */
|
|
21927
|
+
children: rovingFocus ? /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroup, {
|
|
21883
21928
|
asChild: "except-style",
|
|
21884
21929
|
__scopeRovingFocusGroup: __scopeToggleGroup || TOGGLE_GROUP_CONTEXT,
|
|
21885
21930
|
orientation,
|
|
21886
21931
|
dir: direction,
|
|
21887
21932
|
loop,
|
|
21888
|
-
children: /* @__PURE__ */
|
|
21933
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
21889
21934
|
"aria-orientation": orientation,
|
|
21890
21935
|
orientation,
|
|
21891
21936
|
// axis={orientation}
|
|
@@ -21893,7 +21938,7 @@ var ToggleGroupImplElementFrame = styled(Group, {
|
|
|
21893
21938
|
"data-disabled": disabled ? "" : void 0,
|
|
21894
21939
|
unstyled
|
|
21895
21940
|
}, commonProps))
|
|
21896
|
-
}) : /* @__PURE__ */
|
|
21941
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupImplElementFrame, __spreadValues({
|
|
21897
21942
|
"aria-orientation": orientation,
|
|
21898
21943
|
ref: forwardedRef,
|
|
21899
21944
|
orientation,
|
|
@@ -21989,7 +22034,7 @@ VisuallyHidden.isVisuallyHidden = true;
|
|
|
21989
22034
|
const createTamagui = createTamagui$1;
|
|
21990
22035
|
const TamaguiProvider = (_d) => {
|
|
21991
22036
|
var _e = _d, { children } = _e, props = __objRest(_e, ["children"]);
|
|
21992
|
-
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 }) }) }));
|
|
21993
22038
|
};
|
|
21994
22039
|
const AnchorFrame = styled(SizableText, {
|
|
21995
22040
|
name: "Anchor",
|
|
@@ -21999,7 +22044,7 @@ const AnchorFrame = styled(SizableText, {
|
|
|
21999
22044
|
const Anchor = AnchorFrame.styleable(
|
|
22000
22045
|
(_f, ref) => {
|
|
22001
22046
|
var _g = _f, { href, target } = _g, props = __objRest(_g, ["href", "target"]);
|
|
22002
|
-
return /* @__PURE__ */
|
|
22047
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22003
22048
|
AnchorFrame,
|
|
22004
22049
|
__spreadProps(__spreadValues(__spreadValues({}, props), {
|
|
22005
22050
|
onPress: (event) => {
|
|
@@ -22277,7 +22322,7 @@ var StyledInput = styled(TextInput, styledBody[0], styledBody[1]), Input = Style
|
|
|
22277
22322
|
onSelectionChange: onSelectionChange ? handleSelectionChange : void 0,
|
|
22278
22323
|
autoComplete
|
|
22279
22324
|
});
|
|
22280
|
-
return /* @__PURE__ */
|
|
22325
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledInput, __spreadValues({
|
|
22281
22326
|
ref: composedRefs
|
|
22282
22327
|
}, finalProps));
|
|
22283
22328
|
});
|
|
@@ -22310,7 +22355,7 @@ const Spinner = YStack.styleable((props, ref) => {
|
|
|
22310
22355
|
if (color && color[0] === "$") {
|
|
22311
22356
|
color = variableToString(theme[color]);
|
|
22312
22357
|
}
|
|
22313
|
-
return /* @__PURE__ */
|
|
22358
|
+
return /* @__PURE__ */ jsxRuntime.jsx(YStack, __spreadProps(__spreadValues({ ref }, stackProps), { children: /* @__PURE__ */ jsxRuntime.jsx(ActivityIndicator, { size, color }) }));
|
|
22314
22359
|
});
|
|
22315
22360
|
const Text = styled(Text$2, {
|
|
22316
22361
|
variants: {
|