@tamagui/core 2.0.0-1768586279389 → 2.0.0-1768696252732
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 +206 -196
- package/dist/test.native.cjs +140 -362
- package/package.json +11 -11
package/dist/native.cjs
CHANGED
|
@@ -52,6 +52,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
55
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
55
56
|
const React = require("react");
|
|
56
57
|
function _interopNamespaceDefault(e2) {
|
|
57
58
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -89,58 +90,6 @@ function _mergeNamespaces(n, m) {
|
|
|
89
90
|
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
90
91
|
}
|
|
91
92
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
92
|
-
function getDefaultExportFromCjs(x) {
|
|
93
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
94
|
-
}
|
|
95
|
-
var jsxRuntime = { exports: {} };
|
|
96
|
-
var reactJsxRuntime_production = {};
|
|
97
|
-
/**
|
|
98
|
-
* @license React
|
|
99
|
-
* react-jsx-runtime.production.js
|
|
100
|
-
*
|
|
101
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the MIT license found in the
|
|
104
|
-
* LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/
|
|
106
|
-
var hasRequiredReactJsxRuntime_production;
|
|
107
|
-
function requireReactJsxRuntime_production() {
|
|
108
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
109
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
110
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
111
|
-
function jsxProd(type, config, maybeKey) {
|
|
112
|
-
var key = null;
|
|
113
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
114
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
115
|
-
if ("key" in config) {
|
|
116
|
-
maybeKey = {};
|
|
117
|
-
for (var propName in config)
|
|
118
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
119
|
-
} else maybeKey = config;
|
|
120
|
-
config = maybeKey.ref;
|
|
121
|
-
return {
|
|
122
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
123
|
-
type,
|
|
124
|
-
key,
|
|
125
|
-
ref: void 0 !== config ? config : null,
|
|
126
|
-
props: maybeKey
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
130
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
131
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
132
|
-
return reactJsxRuntime_production;
|
|
133
|
-
}
|
|
134
|
-
var hasRequiredJsxRuntime;
|
|
135
|
-
function requireJsxRuntime() {
|
|
136
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
137
|
-
hasRequiredJsxRuntime = 1;
|
|
138
|
-
{
|
|
139
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
140
|
-
}
|
|
141
|
-
return jsxRuntime.exports;
|
|
142
|
-
}
|
|
143
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
144
93
|
var pseudoDescriptorsBase = {
|
|
145
94
|
// order of keys here important! in priority order
|
|
146
95
|
hoverStyle: {
|
|
@@ -189,7 +138,7 @@ var pseudoDescriptorsBase = {
|
|
|
189
138
|
priority: 5
|
|
190
139
|
}
|
|
191
140
|
}), defaultMediaImportance = Object.keys(pseudoDescriptors).length;
|
|
192
|
-
function _type_of$
|
|
141
|
+
function _type_of$a(obj) {
|
|
193
142
|
"@swc/helpers - typeof";
|
|
194
143
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
195
144
|
}
|
|
@@ -213,13 +162,13 @@ var mergeProps = function(defaultProps2, props) {
|
|
|
213
162
|
};
|
|
214
163
|
function mergeProp(out, defaultProps2, props, key) {
|
|
215
164
|
var val = props[key];
|
|
216
|
-
if (defaultProps2 && key in defaultProps2 && (key in pseudoDescriptors || key[0] === "$") && val && (typeof val > "u" ? "undefined" : _type_of$
|
|
165
|
+
if (defaultProps2 && key in defaultProps2 && (key in pseudoDescriptors || key[0] === "$") && val && (typeof val > "u" ? "undefined" : _type_of$a(val)) === "object") {
|
|
217
166
|
var defaultVal = defaultProps2[key];
|
|
218
|
-
defaultVal && (typeof defaultVal > "u" ? "undefined" : _type_of$
|
|
167
|
+
defaultVal && (typeof defaultVal > "u" ? "undefined" : _type_of$a(defaultVal)) === "object" && (val = mergeProps(defaultVal, val));
|
|
219
168
|
}
|
|
220
169
|
out[key] = val;
|
|
221
170
|
}
|
|
222
|
-
function _type_of$
|
|
171
|
+
function _type_of$9(obj) {
|
|
223
172
|
"@swc/helpers - typeof";
|
|
224
173
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
225
174
|
}
|
|
@@ -227,7 +176,7 @@ function objectIdentityKey(obj) {
|
|
|
227
176
|
var k = "";
|
|
228
177
|
for (var key in obj) {
|
|
229
178
|
k += key;
|
|
230
|
-
var arg = obj[key], type = typeof arg > "u" ? "undefined" : _type_of$
|
|
179
|
+
var arg = obj[key], type = typeof arg > "u" ? "undefined" : _type_of$9(arg);
|
|
231
180
|
if (!arg || type !== "object" && type !== "function") k += type + arg;
|
|
232
181
|
else if (cache$6.has(arg)) k += cache$6.get(arg);
|
|
233
182
|
else {
|
|
@@ -260,9 +209,9 @@ function createStyledContext(defaultValues) {
|
|
|
260
209
|
]), scope = getNamespacedScope(scopeIn), next = React.useMemo(function() {
|
|
261
210
|
return __disableMergeDefaultValues ? values : mergeProps(defaultValues, values);
|
|
262
211
|
}, [objectIdentityKey(values)]), ScopedProvider = OGProvider;
|
|
263
|
-
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */
|
|
212
|
+
return scope && (ScopedProvider = getOrCreateScopedContext(scope).Provider), /* @__PURE__ */ jsxRuntime.jsx(LastScopeInNamespace.Provider, {
|
|
264
213
|
value: scope,
|
|
265
|
-
children: /* @__PURE__ */
|
|
214
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ScopedProvider, {
|
|
266
215
|
value: next,
|
|
267
216
|
children
|
|
268
217
|
})
|
|
@@ -595,7 +544,7 @@ function LocaleProvider(props) {
|
|
|
595
544
|
locale,
|
|
596
545
|
children
|
|
597
546
|
} = props;
|
|
598
|
-
return direction || locale ? /* @__PURE__ */
|
|
547
|
+
return direction || locale ? /* @__PURE__ */ jsxRuntime.jsx(LocaleContext.Provider, {
|
|
599
548
|
value: {
|
|
600
549
|
direction: locale ? getLocaleDirection(locale) : direction,
|
|
601
550
|
locale
|
|
@@ -615,7 +564,7 @@ var LayoutHandlers = /* @__PURE__ */ new WeakMap(), LayoutDisableKey = /* @__PUR
|
|
|
615
564
|
children
|
|
616
565
|
} = param, id2 = React.useId();
|
|
617
566
|
return useIsomorphicLayoutEffect(function() {
|
|
618
|
-
}, [disable, id2]), /* @__PURE__ */
|
|
567
|
+
}, [disable, id2]), /* @__PURE__ */ jsxRuntime.jsx(DisableLayoutContextKey.Provider, {
|
|
619
568
|
value: id2,
|
|
620
569
|
children
|
|
621
570
|
});
|
|
@@ -1756,6 +1705,9 @@ const stylesFromProps = /* @__PURE__ */ new WeakMap(), createDOMProps = (element
|
|
|
1756
1705
|
return _id && (domProps.id = _id), testID != null && (domProps["data-testid"] = testID), domProps;
|
|
1757
1706
|
};
|
|
1758
1707
|
const isWebColor$1 = (color) => color === "currentcolor" || color === "currentColor" || color === "inherit" || color.startsWith("var(");
|
|
1708
|
+
function getDefaultExportFromCjs(x) {
|
|
1709
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1710
|
+
}
|
|
1759
1711
|
var normalizeColor_1;
|
|
1760
1712
|
var hasRequiredNormalizeColor;
|
|
1761
1713
|
function requireNormalizeColor() {
|
|
@@ -2844,7 +2796,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2844
2796
|
if (!styles2) return;
|
|
2845
2797
|
const styleObj = {};
|
|
2846
2798
|
for (const style of styles2) styleObj[style[0]] = style;
|
|
2847
|
-
}, [styles2]), /* @__PURE__ */
|
|
2799
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2848
2800
|
children: [element, styleTags]
|
|
2849
2801
|
});
|
|
2850
2802
|
}, createElement$1 = (component, props, options) => {
|
|
@@ -2852,7 +2804,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2852
2804
|
element,
|
|
2853
2805
|
styles: styles2
|
|
2854
2806
|
} = createElementAndStyles$1(component, props);
|
|
2855
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2856
2808
|
children: [element, styles2 ? getStyleTags() : null]
|
|
2857
2809
|
});
|
|
2858
2810
|
}, createElementAndStyles$1 = (component, props, options) => {
|
|
@@ -2861,7 +2813,7 @@ const useCreateElement$1 = (component, props, options) => {
|
|
|
2861
2813
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
2862
2814
|
let element = React.createElement(Component, domProps);
|
|
2863
2815
|
return {
|
|
2864
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
2816
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, {
|
|
2865
2817
|
direction: domProps.dir,
|
|
2866
2818
|
locale: domProps.lang,
|
|
2867
2819
|
children: element
|
|
@@ -4064,7 +4016,7 @@ function createAnimatedComponent(Component) {
|
|
|
4064
4016
|
} = _a, passthroughProps = __objRest(_a, [
|
|
4065
4017
|
"style"
|
|
4066
4018
|
]);
|
|
4067
|
-
return /* @__PURE__ */
|
|
4019
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues(__spreadValues({}, reducedProps), passthroughProps), {
|
|
4068
4020
|
style: [style, passthroughStyle],
|
|
4069
4021
|
ref
|
|
4070
4022
|
}));
|
|
@@ -4212,13 +4164,13 @@ const useCreateElement = (component, props, options) => {
|
|
|
4212
4164
|
const styleObj = {};
|
|
4213
4165
|
for (const style of styles2)
|
|
4214
4166
|
styleObj[style[0]] = style;
|
|
4215
|
-
}, [styles2]), /* @__PURE__ */
|
|
4167
|
+
}, [styles2]), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4216
4168
|
element,
|
|
4217
4169
|
styleTags
|
|
4218
4170
|
] });
|
|
4219
4171
|
}, createElement = (component, props, options) => {
|
|
4220
4172
|
const { element, styles: styles2 } = createElementAndStyles(component, props);
|
|
4221
|
-
return /* @__PURE__ */
|
|
4173
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4222
4174
|
element,
|
|
4223
4175
|
styles2 ? getStyleTags() : null
|
|
4224
4176
|
] });
|
|
@@ -4228,7 +4180,7 @@ const useCreateElement = (component, props, options) => {
|
|
|
4228
4180
|
const Component = accessibilityComponent || component, domProps = createDOMProps(Component, props), styles2 = stylesFromProps.get(domProps);
|
|
4229
4181
|
let element = React.createElement(Component, domProps);
|
|
4230
4182
|
return {
|
|
4231
|
-
element: domProps.dir ? /* @__PURE__ */
|
|
4183
|
+
element: domProps.dir ? /* @__PURE__ */ jsxRuntime.jsx(LocaleProvider, { direction: domProps.dir, locale: domProps.lang, children: element }) : element,
|
|
4232
4184
|
styles: styles2
|
|
4233
4185
|
};
|
|
4234
4186
|
};
|
|
@@ -4391,7 +4343,7 @@ const ScrollViewBase$1 = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
4391
4343
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent$1(e2));
|
|
4392
4344
|
}
|
|
4393
4345
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
4394
|
-
return /* @__PURE__ */
|
|
4346
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4395
4347
|
View$3,
|
|
4396
4348
|
__spreadProps(__spreadValues({}, rest), {
|
|
4397
4349
|
onScroll: handleScroll,
|
|
@@ -4624,7 +4576,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
|
|
|
4624
4576
|
});
|
|
4625
4577
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
4626
4578
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
4627
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
4579
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4628
4580
|
View$3,
|
|
4629
4581
|
{
|
|
4630
4582
|
style: StyleSheet.compose(
|
|
@@ -4634,7 +4586,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
|
|
|
4634
4586
|
children: child
|
|
4635
4587
|
}
|
|
4636
4588
|
) : child;
|
|
4637
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
4589
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4638
4590
|
View$3,
|
|
4639
4591
|
__spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
4640
4592
|
collapsable: false,
|
|
@@ -4666,7 +4618,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
|
|
|
4666
4618
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
4667
4619
|
}), ScrollViewClass = ScrollViewBase$1;
|
|
4668
4620
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
4669
|
-
const scrollView = /* @__PURE__ */
|
|
4621
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), { ref: this._setScrollNodeRef.bind(this), children: contentContainer }));
|
|
4670
4622
|
return refreshControl ? React.cloneElement(refreshControl, { style: props.style }, scrollView) : scrollView;
|
|
4671
4623
|
}
|
|
4672
4624
|
_handleContentOnLayout(e2) {
|
|
@@ -4905,7 +4857,7 @@ const commonStyle$1 = {
|
|
|
4905
4857
|
pagingEnabledChild: {
|
|
4906
4858
|
scrollSnapAlign: "start"
|
|
4907
4859
|
}
|
|
4908
|
-
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
4860
|
+
}, ForwardedScrollView$1 = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView$1, __spreadProps(__spreadValues({}, props), { forwardedRef })));
|
|
4909
4861
|
ForwardedScrollView$1.displayName = "ScrollView";
|
|
4910
4862
|
function RefreshControl(props) {
|
|
4911
4863
|
const _a = props, {
|
|
@@ -4932,7 +4884,7 @@ function RefreshControl(props) {
|
|
|
4932
4884
|
"title",
|
|
4933
4885
|
"titleColor"
|
|
4934
4886
|
]);
|
|
4935
|
-
return /* @__PURE__ */
|
|
4887
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadValues({}, rest));
|
|
4936
4888
|
}
|
|
4937
4889
|
class Batchinator {
|
|
4938
4890
|
constructor(callback, delayMS) {
|
|
@@ -5266,7 +5218,7 @@ function VirtualizedListCellContextProvider({ cellKey, children }) {
|
|
|
5266
5218
|
() => currContext == null ? null : __spreadProps(__spreadValues({}, currContext), { cellKey }),
|
|
5267
5219
|
[currContext, cellKey]
|
|
5268
5220
|
);
|
|
5269
|
-
return /* @__PURE__ */
|
|
5221
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListContext.Provider, { value: context, children });
|
|
5270
5222
|
}
|
|
5271
5223
|
class CellRenderer extends React__namespace.Component {
|
|
5272
5224
|
constructor() {
|
|
@@ -5364,8 +5316,8 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5364
5316
|
ItemSeparatorComponent
|
|
5365
5317
|
) : (
|
|
5366
5318
|
// $FlowFixMe[incompatible-type]
|
|
5367
|
-
ItemSeparatorComponent && /* @__PURE__ */
|
|
5368
|
-
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */
|
|
5319
|
+
ItemSeparatorComponent && /* @__PURE__ */ jsxRuntime.jsx(ItemSeparatorComponent, __spreadValues({}, this.state.separatorProps))
|
|
5320
|
+
), cellStyle = inversionStyle ? horizontal ? [styles$e.rowReverse, inversionStyle] : [styles$e.columnReverse, inversionStyle] : horizontal ? [styles$e.row, inversionStyle] : inversionStyle, result = CellRendererComponent ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5369
5321
|
CellRendererComponent,
|
|
5370
5322
|
__spreadProps(__spreadValues({
|
|
5371
5323
|
cellKey,
|
|
@@ -5379,7 +5331,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5379
5331
|
itemSeparator
|
|
5380
5332
|
]
|
|
5381
5333
|
})
|
|
5382
|
-
) : /* @__PURE__ */
|
|
5334
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5383
5335
|
View$3,
|
|
5384
5336
|
__spreadProps(__spreadValues({
|
|
5385
5337
|
style: cellStyle,
|
|
@@ -5391,7 +5343,7 @@ class CellRenderer extends React__namespace.Component {
|
|
|
5391
5343
|
]
|
|
5392
5344
|
})
|
|
5393
5345
|
);
|
|
5394
|
-
return /* @__PURE__ */
|
|
5346
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedListCellContextProvider, { cellKey: this.props.cellKey, children: result });
|
|
5395
5347
|
}
|
|
5396
5348
|
}
|
|
5397
5349
|
const styles$e = StyleSheet.create({
|
|
@@ -5613,14 +5565,14 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5613
5565
|
"viewabilityConfig",
|
|
5614
5566
|
"viewabilityConfigCallbackPairs"
|
|
5615
5567
|
]);
|
|
5616
|
-
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */
|
|
5568
|
+
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */ jsxRuntime.jsx(ListEmptyComponent, {}) : null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5617
5569
|
ForwardedScrollView$1,
|
|
5618
5570
|
__spreadProps(__spreadValues({}, restProps), {
|
|
5619
5571
|
ref: this._captureRef,
|
|
5620
5572
|
onContentSizeChange: this._onContentSizeChange,
|
|
5621
5573
|
onLayout: this._onLayout,
|
|
5622
5574
|
onScroll: this._onScroll,
|
|
5623
|
-
refreshControl: onRefresh && /* @__PURE__ */
|
|
5575
|
+
refreshControl: onRefresh && /* @__PURE__ */ jsxRuntime.jsx(RefreshControl, { refreshing, onRefresh }),
|
|
5624
5576
|
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
5625
5577
|
removeClippedSubviews,
|
|
5626
5578
|
children: this._renderChildren()
|
|
@@ -5632,7 +5584,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
5632
5584
|
for (let i = 0; i < getItemCount(data); i++) {
|
|
5633
5585
|
const item = getItem(data, i);
|
|
5634
5586
|
items.push(
|
|
5635
|
-
/* @__PURE__ */
|
|
5587
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5636
5588
|
CellRenderer,
|
|
5637
5589
|
{
|
|
5638
5590
|
cellKey: String(i),
|
|
@@ -5704,13 +5656,13 @@ class FlatList extends React.PureComponent {
|
|
|
5704
5656
|
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);
|
|
5705
5657
|
});
|
|
5706
5658
|
__publicField(this, "_renderer", (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) => {
|
|
5707
|
-
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent ? /* @__PURE__ */
|
|
5659
|
+
const cols = numColumnsOrDefault(numColumns), render = (props) => ListItemComponent ? /* @__PURE__ */ jsxRuntime.jsx(ListItemComponent, __spreadValues({}, props)) : renderItem ? renderItem(props) : null, renderProp = (info) => {
|
|
5708
5660
|
if (cols > 1) {
|
|
5709
5661
|
const {
|
|
5710
5662
|
item,
|
|
5711
5663
|
index: index2
|
|
5712
5664
|
} = info;
|
|
5713
|
-
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */
|
|
5665
|
+
return invariant(Array.isArray(item), "Expected array of items with numColumns > 1"), /* @__PURE__ */ jsxRuntime.jsx(View$3, {
|
|
5714
5666
|
style: [styles$d.row, columnWrapperStyle],
|
|
5715
5667
|
children: item.map((it, kk) => {
|
|
5716
5668
|
const element = render({
|
|
@@ -5718,7 +5670,7 @@ class FlatList extends React.PureComponent {
|
|
|
5718
5670
|
index: index2 * cols + kk,
|
|
5719
5671
|
separators: info.separators
|
|
5720
5672
|
});
|
|
5721
|
-
return element != null ? /* @__PURE__ */
|
|
5673
|
+
return element != null ? /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, {
|
|
5722
5674
|
children: element
|
|
5723
5675
|
}, kk) : null;
|
|
5724
5676
|
})
|
|
@@ -5791,7 +5743,7 @@ class FlatList extends React.PureComponent {
|
|
|
5791
5743
|
"removeClippedSubviews",
|
|
5792
5744
|
"strictMode"
|
|
5793
5745
|
]), renderer = strictMode ? this._memoizedRenderer : this._renderer;
|
|
5794
|
-
return /* @__PURE__ */
|
|
5746
|
+
return /* @__PURE__ */ jsxRuntime.jsx(VirtualizedList, __spreadValues(__spreadProps(__spreadValues({}, restProps), {
|
|
5795
5747
|
getItem: this._getItem,
|
|
5796
5748
|
getItemCount: this._getItemCount,
|
|
5797
5749
|
keyExtractor: this._keyExtractor,
|
|
@@ -5806,7 +5758,7 @@ const styles$d = {
|
|
|
5806
5758
|
flexDirection: "row"
|
|
5807
5759
|
}
|
|
5808
5760
|
};
|
|
5809
|
-
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
5761
|
+
const FlatListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(FlatList, __spreadProps(__spreadValues({
|
|
5810
5762
|
scrollEventThrottle: 1e-4
|
|
5811
5763
|
}, props), {
|
|
5812
5764
|
ref
|
|
@@ -5847,7 +5799,7 @@ const ERRORED$1 = "ERRORED", LOADED$1 = "LOADED", LOADING$1 = "LOADING", IDLE$1
|
|
|
5847
5799
|
let _filterId$1 = 0;
|
|
5848
5800
|
const svgDataUriPattern$1 = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
5849
5801
|
function createTintColorSVG$1(tintColor, id2) {
|
|
5850
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
5802
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5851
5803
|
"svg",
|
|
5852
5804
|
{
|
|
5853
5805
|
style: {
|
|
@@ -5856,9 +5808,9 @@ function createTintColorSVG$1(tintColor, id2) {
|
|
|
5856
5808
|
visibility: "hidden",
|
|
5857
5809
|
width: 0
|
|
5858
5810
|
},
|
|
5859
|
-
children: /* @__PURE__ */
|
|
5860
|
-
/* @__PURE__ */
|
|
5861
|
-
/* @__PURE__ */
|
|
5811
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("filter", { id: `tint-${id2}`, suppressHydrationWarning: true, children: [
|
|
5812
|
+
/* @__PURE__ */ jsxRuntime.jsx("feFlood", { floodColor: `${tintColor}` }, tintColor),
|
|
5813
|
+
/* @__PURE__ */ jsxRuntime.jsx("feComposite", { in2: "SourceAlpha", operator: "atop" })
|
|
5862
5814
|
] }) })
|
|
5863
5815
|
}
|
|
5864
5816
|
) : null;
|
|
@@ -5980,7 +5932,7 @@ const Image$1 = React__namespace.forwardRef((props, ref) => {
|
|
|
5980
5932
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
5981
5933
|
}
|
|
5982
5934
|
return abortPendingRequest;
|
|
5983
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
5935
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5984
5936
|
View$3,
|
|
5985
5937
|
__spreadProps(__spreadValues({}, rest), {
|
|
5986
5938
|
"aria-label": accessibilityLabel,
|
|
@@ -5995,7 +5947,7 @@ const Image$1 = React__namespace.forwardRef((props, ref) => {
|
|
|
5995
5947
|
flatStyle
|
|
5996
5948
|
],
|
|
5997
5949
|
children: [
|
|
5998
|
-
/* @__PURE__ */
|
|
5950
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5999
5951
|
View$3,
|
|
6000
5952
|
{
|
|
6001
5953
|
style: [
|
|
@@ -6072,7 +6024,7 @@ const styles$c = StyleSheet.create({
|
|
|
6072
6024
|
}
|
|
6073
6025
|
});
|
|
6074
6026
|
createAnimatedComponent(ImageWithStatics$1);
|
|
6075
|
-
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6027
|
+
const ScrollViewWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(ForwardedScrollView$1, __spreadProps(__spreadValues({
|
|
6076
6028
|
scrollEventThrottle: 1e-4
|
|
6077
6029
|
}, props), {
|
|
6078
6030
|
ref
|
|
@@ -6144,7 +6096,7 @@ class VirtualizedSectionList extends React__namespace.PureComponent {
|
|
|
6144
6096
|
for (const section of this.props.sections)
|
|
6145
6097
|
stickyHeaderIndices == null ? void 0 : stickyHeaderIndices.push(itemCount + listHeaderOffset), itemCount += 2, itemCount += this.props.getItemCount(section.data);
|
|
6146
6098
|
const renderItem = this._renderItem(itemCount);
|
|
6147
|
-
return /* @__PURE__ */
|
|
6099
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6148
6100
|
VirtualizedList,
|
|
6149
6101
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6150
6102
|
keyExtractor: this._keyExtractor,
|
|
@@ -6219,7 +6171,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6219
6171
|
}
|
|
6220
6172
|
render() {
|
|
6221
6173
|
const _a = this.props, { sections } = _a, passThroughProps = __objRest(_a, ["sections"]);
|
|
6222
|
-
return /* @__PURE__ */
|
|
6174
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6223
6175
|
VirtualizedSectionList,
|
|
6224
6176
|
__spreadProps(__spreadValues({}, passThroughProps), {
|
|
6225
6177
|
sections,
|
|
@@ -6233,7 +6185,7 @@ class SectionList extends React__namespace.PureComponent {
|
|
|
6233
6185
|
}
|
|
6234
6186
|
}
|
|
6235
6187
|
var SectionList_default = SectionList;
|
|
6236
|
-
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
6188
|
+
const SectionListWithEventThrottle = React__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(SectionList_default, __spreadProps(__spreadValues({
|
|
6237
6189
|
scrollEventThrottle: 1e-4
|
|
6238
6190
|
}, props), {
|
|
6239
6191
|
ref
|
|
@@ -6330,7 +6282,7 @@ const pickProps$4 = (props) => pick(props, forwardPropsListText), Text$3 = React
|
|
|
6330
6282
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
6331
6283
|
supportedProps.ref = setRef2;
|
|
6332
6284
|
const element = useCreateElement(component, supportedProps);
|
|
6333
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
6285
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, { value: true, children: element });
|
|
6334
6286
|
}
|
|
6335
6287
|
);
|
|
6336
6288
|
Text$3.displayName = "Text";
|
|
@@ -6563,7 +6515,7 @@ function requireReactDom_production() {
|
|
|
6563
6515
|
reactDom_production.useFormStatus = function() {
|
|
6564
6516
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
6565
6517
|
};
|
|
6566
|
-
reactDom_production.version = "19.
|
|
6518
|
+
reactDom_production.version = "19.2.3";
|
|
6567
6519
|
return reactDom_production;
|
|
6568
6520
|
}
|
|
6569
6521
|
var hasRequiredReactDom;
|
|
@@ -6680,16 +6632,16 @@ const RootTagContext = React__namespace.createContext(null), AppContainer = Reac
|
|
|
6680
6632
|
children,
|
|
6681
6633
|
WrapperComponent
|
|
6682
6634
|
} = props;
|
|
6683
|
-
let innerView = /* @__PURE__ */
|
|
6635
|
+
let innerView = /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
6684
6636
|
pointerEvents: "box-none",
|
|
6685
6637
|
style: styles$9.appContainer,
|
|
6686
6638
|
children
|
|
6687
6639
|
}, 1);
|
|
6688
|
-
return WrapperComponent && (innerView = /* @__PURE__ */
|
|
6640
|
+
return WrapperComponent && (innerView = /* @__PURE__ */ jsxRuntime.jsx(WrapperComponent, {
|
|
6689
6641
|
children: innerView
|
|
6690
|
-
})), /* @__PURE__ */
|
|
6642
|
+
})), /* @__PURE__ */ jsxRuntime.jsx(RootTagContext.Provider, {
|
|
6691
6643
|
value: props.rootTag,
|
|
6692
|
-
children: /* @__PURE__ */
|
|
6644
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
6693
6645
|
pointerEvents: "box-none",
|
|
6694
6646
|
ref: forwardedRef,
|
|
6695
6647
|
style: styles$9.appContainer,
|
|
@@ -6794,7 +6746,7 @@ class UnimplementedView extends React.Component {
|
|
|
6794
6746
|
});
|
|
6795
6747
|
}
|
|
6796
6748
|
render() {
|
|
6797
|
-
return /* @__PURE__ */
|
|
6749
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadValues({}, this.props));
|
|
6798
6750
|
}
|
|
6799
6751
|
}
|
|
6800
6752
|
function TouchableOpacityImpl(props, forwardedRef) {
|
|
@@ -6846,7 +6798,7 @@ function TouchableOpacityImpl(props, forwardedRef) {
|
|
|
6846
6798
|
setOpacityInactive(250), onPressOut == null ? void 0 : onPressOut(event);
|
|
6847
6799
|
}
|
|
6848
6800
|
}), [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, setOpacityActive, setOpacityInactive]), pressEventHandlers = usePressEvents(hostRef, pressConfig);
|
|
6849
|
-
return /* @__PURE__ */
|
|
6801
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$3, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
6850
6802
|
accessibilityDisabled: disabled,
|
|
6851
6803
|
focusable: !disabled && focusable !== false,
|
|
6852
6804
|
ref: setRef2,
|
|
@@ -6915,7 +6867,7 @@ function TouchableWithoutFeedbackImpl(props, forwardedRef) {
|
|
|
6915
6867
|
}
|
|
6916
6868
|
const TouchableWithoutFeedback = React__namespace.memo(React__namespace.forwardRef(TouchableWithoutFeedbackImpl));
|
|
6917
6869
|
TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
|
|
6918
|
-
const createSvgCircle = (style) => /* @__PURE__ */
|
|
6870
|
+
const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntime.jsx("circle", {
|
|
6919
6871
|
cx: "16",
|
|
6920
6872
|
cy: "16",
|
|
6921
6873
|
fill: "none",
|
|
@@ -6935,7 +6887,7 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
6935
6887
|
"hidesWhenStopped",
|
|
6936
6888
|
"size",
|
|
6937
6889
|
"style"
|
|
6938
|
-
]), svg = /* @__PURE__ */
|
|
6890
|
+
]), svg = /* @__PURE__ */ jsxRuntime.jsxs("svg", {
|
|
6939
6891
|
height: "100%",
|
|
6940
6892
|
viewBox: "0 0 32 32",
|
|
6941
6893
|
width: "100%",
|
|
@@ -6948,13 +6900,13 @@ const createSvgCircle = (style) => /* @__PURE__ */ jsxRuntimeExports.jsx("circle
|
|
|
6948
6900
|
strokeDashoffset: 60
|
|
6949
6901
|
})]
|
|
6950
6902
|
});
|
|
6951
|
-
return /* @__PURE__ */
|
|
6903
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, other), {
|
|
6952
6904
|
accessibilityRole: "progressbar",
|
|
6953
6905
|
accessibilityValueMax: 1,
|
|
6954
6906
|
accessibilityValueMin: 0,
|
|
6955
6907
|
ref: forwardedRef,
|
|
6956
6908
|
style: [styles$7.container, style],
|
|
6957
|
-
children: /* @__PURE__ */
|
|
6909
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
6958
6910
|
children: svg,
|
|
6959
6911
|
style: [typeof size == "number" ? {
|
|
6960
6912
|
height: size,
|
|
@@ -7006,20 +6958,20 @@ const ERRORED = "ERRORED", LOADED = "LOADED", LOADING = "LOADING", IDLE = "IDLE"
|
|
|
7006
6958
|
let _filterId = 0;
|
|
7007
6959
|
const svgDataUriPattern = /^(data:image\/svg\+xml;utf8,)(.*)/;
|
|
7008
6960
|
function createTintColorSVG(tintColor, id2) {
|
|
7009
|
-
return tintColor && id2 != null ? /* @__PURE__ */
|
|
6961
|
+
return tintColor && id2 != null ? /* @__PURE__ */ jsxRuntime.jsx("svg", {
|
|
7010
6962
|
style: {
|
|
7011
6963
|
position: "absolute",
|
|
7012
6964
|
height: 0,
|
|
7013
6965
|
visibility: "hidden",
|
|
7014
6966
|
width: 0
|
|
7015
6967
|
},
|
|
7016
|
-
children: /* @__PURE__ */
|
|
7017
|
-
children: /* @__PURE__ */
|
|
6968
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("defs", {
|
|
6969
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("filter", {
|
|
7018
6970
|
id: `tint-${id2}`,
|
|
7019
6971
|
suppressHydrationWarning: true,
|
|
7020
|
-
children: [/* @__PURE__ */
|
|
6972
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx("feFlood", {
|
|
7021
6973
|
floodColor: `${tintColor}`
|
|
7022
|
-
}, tintColor), /* @__PURE__ */
|
|
6974
|
+
}, tintColor), /* @__PURE__ */ jsxRuntime.jsx("feComposite", {
|
|
7023
6975
|
in2: "SourceAlpha",
|
|
7024
6976
|
operator: "atop"
|
|
7025
6977
|
})]
|
|
@@ -7159,13 +7111,13 @@ const Image = React__namespace.forwardRef((props, ref) => {
|
|
|
7159
7111
|
requestRef.current != null && (ImageLoader.abort(requestRef.current), requestRef.current = null);
|
|
7160
7112
|
}
|
|
7161
7113
|
return abortPendingRequest;
|
|
7162
|
-
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */
|
|
7114
|
+
}, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]), /* @__PURE__ */ jsxRuntime.jsxs(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7163
7115
|
"aria-label": accessibilityLabel,
|
|
7164
7116
|
onLayout: handleLayout,
|
|
7165
7117
|
pointerEvents,
|
|
7166
7118
|
ref,
|
|
7167
7119
|
style: [style, styles$6.root, hasTextAncestor && styles$6.inline, imageSizeStyle, flatStyle],
|
|
7168
|
-
children: [/* @__PURE__ */
|
|
7120
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7169
7121
|
style: [...[].concat(styles$6.image), resizeModeStyles[resizeMode], {
|
|
7170
7122
|
backgroundImage,
|
|
7171
7123
|
filter
|
|
@@ -7249,10 +7201,10 @@ const emptyObject$2 = {}, ImageBackground = React.forwardRef((props, forwardedRe
|
|
|
7249
7201
|
height,
|
|
7250
7202
|
width
|
|
7251
7203
|
} = StyleSheet.flatten(style);
|
|
7252
|
-
return /* @__PURE__ */
|
|
7204
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(View$2, {
|
|
7253
7205
|
ref: forwardedRef,
|
|
7254
7206
|
style,
|
|
7255
|
-
children: [/* @__PURE__ */
|
|
7207
|
+
children: [/* @__PURE__ */ jsxRuntime.jsx(ImageWithStatics, __spreadProps(__spreadValues({}, rest), {
|
|
7256
7208
|
ref: imageRef,
|
|
7257
7209
|
style: [{
|
|
7258
7210
|
// Temporary Workaround:
|
|
@@ -7348,7 +7300,7 @@ function Pressable(props, forwardedRef) {
|
|
|
7348
7300
|
}, [onContextMenu, onContextMenuPress]), keyDownHandler = React__namespace.useCallback((e2) => {
|
|
7349
7301
|
onKeyDownPress == null ? void 0 : onKeyDownPress(e2), onKeyDown2 == null ? void 0 : onKeyDown2(e2);
|
|
7350
7302
|
}, [onKeyDown2, onKeyDownPress]);
|
|
7351
|
-
return /* @__PURE__ */
|
|
7303
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues(__spreadValues({}, rest), pressEventHandlers), {
|
|
7352
7304
|
accessibilityDisabled: disabled,
|
|
7353
7305
|
focusable: !disabled && focusable !== false,
|
|
7354
7306
|
onBlur: blurHandler,
|
|
@@ -7378,7 +7330,7 @@ const cssFunction = canUseDOM$1 && window.CSS && window.CSS.supports && window.C
|
|
|
7378
7330
|
} = _a, rest = __objRest(_a, [
|
|
7379
7331
|
"style"
|
|
7380
7332
|
]);
|
|
7381
|
-
return /* @__PURE__ */
|
|
7333
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7382
7334
|
ref,
|
|
7383
7335
|
style: StyleSheet.compose(styles$4.root, style)
|
|
7384
7336
|
}));
|
|
@@ -7470,7 +7422,7 @@ const ScrollViewBase = React__namespace.forwardRef((props, forwardedRef) => {
|
|
|
7470
7422
|
scrollState.current.isScrolling = false, onScroll && onScroll(normalizeScrollEvent(e2));
|
|
7471
7423
|
}
|
|
7472
7424
|
const hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
|
|
7473
|
-
return /* @__PURE__ */
|
|
7425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, rest), {
|
|
7474
7426
|
onScroll: handleScroll,
|
|
7475
7427
|
onTouchMove: createPreventableScrollHandler(onTouchMove),
|
|
7476
7428
|
onWheel: createPreventableScrollHandler(onWheel),
|
|
@@ -7713,11 +7665,11 @@ class ScrollView2 extends React.Component {
|
|
|
7713
7665
|
});
|
|
7714
7666
|
const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, (child, i) => {
|
|
7715
7667
|
const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
7716
|
-
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */
|
|
7668
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ jsxRuntime.jsx(View$2, {
|
|
7717
7669
|
style: StyleSheet.compose(isSticky && styles$2.stickyHeader, pagingEnabled && styles$2.pagingEnabledChild),
|
|
7718
7670
|
children: child
|
|
7719
7671
|
}) : child;
|
|
7720
|
-
}) : this.props.children, contentContainer = /* @__PURE__ */
|
|
7672
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ jsxRuntime.jsx(View$2, __spreadProps(__spreadValues({}, contentSizeChangeProps), {
|
|
7721
7673
|
collapsable: false,
|
|
7722
7674
|
ref: this._setInnerViewRef.bind(this),
|
|
7723
7675
|
style: [horizontal && styles$2.contentContainerHorizontal, centerContent && styles$2.contentContainerCenterContent, contentContainerStyle],
|
|
@@ -7742,7 +7694,7 @@ class ScrollView2 extends React.Component {
|
|
|
7742
7694
|
onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
|
|
7743
7695
|
}), ScrollViewClass = ScrollViewBase;
|
|
7744
7696
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
7745
|
-
const scrollView = /* @__PURE__ */
|
|
7697
|
+
const scrollView = /* @__PURE__ */ jsxRuntime.jsx(ScrollViewClass, __spreadProps(__spreadValues({}, props), {
|
|
7746
7698
|
ref: this._setScrollNodeRef.bind(this),
|
|
7747
7699
|
children: contentContainer
|
|
7748
7700
|
}));
|
|
@@ -7991,7 +7943,7 @@ const commonStyle = {
|
|
|
7991
7943
|
pagingEnabledChild: {
|
|
7992
7944
|
scrollSnapAlign: "start"
|
|
7993
7945
|
}
|
|
7994
|
-
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */
|
|
7946
|
+
}, ForwardedScrollView = React.forwardRef((props, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(ScrollView2, __spreadProps(__spreadValues({}, props), {
|
|
7995
7947
|
forwardedRef
|
|
7996
7948
|
})));
|
|
7997
7949
|
ForwardedScrollView.displayName = "ScrollView";
|
|
@@ -8081,7 +8033,7 @@ const pickProps$1 = (props) => pick(props, forwardPropsListText), Text$2 = React
|
|
|
8081
8033
|
const platformMethodsRef = usePlatformMethods(supportedProps), setRef2 = useMergeRefs$1(hostRef, platformMethodsRef, forwardedRef);
|
|
8082
8034
|
supportedProps.ref = setRef2;
|
|
8083
8035
|
const element = useCreateElement$1(component, supportedProps);
|
|
8084
|
-
return hasTextAncestor ? element : /* @__PURE__ */
|
|
8036
|
+
return hasTextAncestor ? element : /* @__PURE__ */ jsxRuntime.jsx(TextAncestorContext.Provider, {
|
|
8085
8037
|
value: true,
|
|
8086
8038
|
children: element
|
|
8087
8039
|
});
|
|
@@ -8438,6 +8390,18 @@ var getTokens = function() {
|
|
|
8438
8390
|
};
|
|
8439
8391
|
function setupDev(conf2) {
|
|
8440
8392
|
}
|
|
8393
|
+
function loadAnimationDriver(name, driver) {
|
|
8394
|
+
var config = getConfigFromGlobalOrLocal();
|
|
8395
|
+
if (!config) {
|
|
8396
|
+
return;
|
|
8397
|
+
}
|
|
8398
|
+
config.animations && !("default" in config.animations) && (config.animations = {
|
|
8399
|
+
default: config.animations
|
|
8400
|
+
}), config.animations ? config.animations[name] = driver : config.animations = {
|
|
8401
|
+
default: driver,
|
|
8402
|
+
[name]: driver
|
|
8403
|
+
};
|
|
8404
|
+
}
|
|
8441
8405
|
var matchMediaImpl = matchMediaFallback, matchMedia$1 = function() {
|
|
8442
8406
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
8443
8407
|
return matchMediaImpl(...args);
|
|
@@ -8646,7 +8610,7 @@ function clamp(value, param) {
|
|
|
8646
8610
|
var [min, max] = param;
|
|
8647
8611
|
return Math.min(max, Math.max(min, value));
|
|
8648
8612
|
}
|
|
8649
|
-
function _type_of$
|
|
8613
|
+
function _type_of$8(obj) {
|
|
8650
8614
|
"@swc/helpers - typeof";
|
|
8651
8615
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8652
8616
|
}
|
|
@@ -8655,7 +8619,7 @@ function composeEventHandlers(og, next) {
|
|
|
8655
8619
|
checkDefaultPrevented = true
|
|
8656
8620
|
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
8657
8621
|
return !og || !next ? next || og || void 0 : function(event) {
|
|
8658
|
-
if (og == null ? void 0 : og(event), !event || !(checkDefaultPrevented && (typeof event > "u" ? "undefined" : _type_of$
|
|
8622
|
+
if (og == null ? void 0 : og(event), !event || !(checkDefaultPrevented && (typeof event > "u" ? "undefined" : _type_of$8(event)) === "object" && "defaultPrevented" in event) || // @ts-ignore
|
|
8659
8623
|
"defaultPrevented" in event && !event.defaultPrevented) return next == null ? void 0 : next(event);
|
|
8660
8624
|
};
|
|
8661
8625
|
}
|
|
@@ -8963,6 +8927,7 @@ var textColors = {
|
|
|
8963
8927
|
elevationAndroid: true
|
|
8964
8928
|
} : {}), {
|
|
8965
8929
|
boxShadow: true,
|
|
8930
|
+
border: true,
|
|
8966
8931
|
filter: true,
|
|
8967
8932
|
// RN 0.76/0.77+ style props (New Architecture)
|
|
8968
8933
|
boxSizing: true,
|
|
@@ -8999,7 +8964,7 @@ var textColors = {
|
|
|
8999
8964
|
disabledStyle: true,
|
|
9000
8965
|
focusWithinStyle: true
|
|
9001
8966
|
}, validStyles = stylePropsView;
|
|
9002
|
-
function _type_of$
|
|
8967
|
+
function _type_of$7(obj) {
|
|
9003
8968
|
"@swc/helpers - typeof";
|
|
9004
8969
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9005
8970
|
}
|
|
@@ -9013,14 +8978,14 @@ var Decorated = Symbol(), withStaticProperties = function(component, staticProps
|
|
|
9013
8978
|
});
|
|
9014
8979
|
for (var key in component) {
|
|
9015
8980
|
var v = component[key];
|
|
9016
|
-
_2[key] = v && (typeof v > "u" ? "undefined" : _type_of$
|
|
8981
|
+
_2[key] = v && (typeof v > "u" ? "undefined" : _type_of$7(v)) === "object" ? __spreadValues({}, v) : v;
|
|
9017
8982
|
}
|
|
9018
8983
|
}
|
|
9019
8984
|
return component;
|
|
9020
8985
|
})();
|
|
9021
8986
|
return Object.assign(next, staticProps), next[Decorated] = true, next;
|
|
9022
8987
|
};
|
|
9023
|
-
function _type_of$
|
|
8988
|
+
function _type_of$6(obj) {
|
|
9024
8989
|
"@swc/helpers - typeof";
|
|
9025
8990
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9026
8991
|
}
|
|
@@ -9047,7 +9012,7 @@ function variableToString(vrble) {
|
|
|
9047
9012
|
return isVariable(vrble) ? `${vrble.val}` : `${vrble || ""}`;
|
|
9048
9013
|
}
|
|
9049
9014
|
function isVariable(v) {
|
|
9050
|
-
return v && (typeof v > "u" ? "undefined" : _type_of$
|
|
9015
|
+
return v && (typeof v > "u" ? "undefined" : _type_of$6(v)) === "object" && "isVar" in v;
|
|
9051
9016
|
}
|
|
9052
9017
|
function getVariable(nameOrVariable) {
|
|
9053
9018
|
var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size", _tokens_group;
|
|
@@ -9379,7 +9344,7 @@ function getThemeProxied(_props, _state, _keys) {
|
|
|
9379
9344
|
var outVal = getVariable(value), {
|
|
9380
9345
|
name,
|
|
9381
9346
|
scheme
|
|
9382
|
-
} = curState, shouldOptimize = scheme && platform !== "web" && isIos && !curProps.deopt && getSetting("fastSchemeChange") && doesRootSchemeMatchSystem();
|
|
9347
|
+
} = curState, shouldOptimize = scheme && platform !== "web" && isIos && !curProps.deopt && !curState.isInverse && getSetting("fastSchemeChange") && doesRootSchemeMatchSystem();
|
|
9383
9348
|
if (shouldOptimize) {
|
|
9384
9349
|
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = getVariable((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = getVariable((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = getDynamicVal({
|
|
9385
9350
|
scheme,
|
|
@@ -9415,7 +9380,7 @@ var _withStableStyle = function(Component, styleProvider) {
|
|
|
9415
9380
|
}), media = hasMediaKeys ? useMedia() : null, resolvedExpressions = media ? _expressions.map(function(expr) {
|
|
9416
9381
|
return typeof expr == "string" ? media[expr] : expr;
|
|
9417
9382
|
}) : _expressions;
|
|
9418
|
-
return /* @__PURE__ */
|
|
9383
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
9419
9384
|
ref,
|
|
9420
9385
|
style: styleProvider(theme, resolvedExpressions)
|
|
9421
9386
|
}, rest));
|
|
@@ -9768,12 +9733,12 @@ function getFontsForLanguage(fonts, language) {
|
|
|
9768
9733
|
})));
|
|
9769
9734
|
return fontLanguageCache.set(language, next), next;
|
|
9770
9735
|
}
|
|
9771
|
-
function _type_of$
|
|
9736
|
+
function _type_of$5(obj) {
|
|
9772
9737
|
"@swc/helpers - typeof";
|
|
9773
9738
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9774
9739
|
}
|
|
9775
9740
|
var isObj = function(x) {
|
|
9776
|
-
return x && !Array.isArray(x) && (typeof x > "u" ? "undefined" : _type_of$
|
|
9741
|
+
return x && !Array.isArray(x) && (typeof x > "u" ? "undefined" : _type_of$5(x)) === "object";
|
|
9777
9742
|
};
|
|
9778
9743
|
function normalizeStyle$1(style) {
|
|
9779
9744
|
var disableNormalize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, res = {};
|
|
@@ -9860,14 +9825,14 @@ var skipProps = {
|
|
|
9860
9825
|
debug: 1,
|
|
9861
9826
|
componentName: 1,
|
|
9862
9827
|
disableOptimization: 1,
|
|
9863
|
-
|
|
9828
|
+
render: 1,
|
|
9864
9829
|
style: 1,
|
|
9865
9830
|
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
9866
9831
|
group: 1,
|
|
9867
9832
|
animatePresence: 1
|
|
9868
9833
|
};
|
|
9869
9834
|
Object.assign(skipProps, webPropsToSkip);
|
|
9870
|
-
function _type_of$
|
|
9835
|
+
function _type_of$4(obj) {
|
|
9871
9836
|
"@swc/helpers - typeof";
|
|
9872
9837
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9873
9838
|
}
|
|
@@ -9940,7 +9905,7 @@ var resolveTok = function(v, cat, sp, ss) {
|
|
|
9940
9905
|
}
|
|
9941
9906
|
styleProps2.disableExpandShorthands || key in conf2.shorthands && (key = conf2.shorthands[key]);
|
|
9942
9907
|
var originalValue = value;
|
|
9943
|
-
if (value != null && (key === "boxShadow" && (typeof value > "u" ? "undefined" : _type_of$
|
|
9908
|
+
if (value != null && (key === "boxShadow" && (typeof value > "u" ? "undefined" : _type_of$4(value)) === "object" ? value = boxShadowObjResolve(value, styleProps2, styleState) : key === "filter" && (typeof value > "u" ? "undefined" : _type_of$4(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) {
|
|
9944
9909
|
var cat = /^\$-?\d/.test(t2) ? "size" : "color", r = getTokenForKey(cat, t2, styleProps2, styleState);
|
|
9945
9910
|
return r != null ? String(r) : t2;
|
|
9946
9911
|
}) : key === "filter" && typeof value == "string" && value.includes("$") ? value = value.replace(/(\$[\w.-]+)/g, function(t2) {
|
|
@@ -10099,7 +10064,7 @@ function getVariantDefinition(variant, value, conf2) {
|
|
|
10099
10064
|
var fontSizeVariant = variant["...fontSize"];
|
|
10100
10065
|
if (fontSizeVariant && conf2.fontSizeTokens.has(value)) return fontSizeVariant;
|
|
10101
10066
|
}
|
|
10102
|
-
return variant[`:${typeof value > "u" ? "undefined" : _type_of$
|
|
10067
|
+
return variant[`:${typeof value > "u" ? "undefined" : _type_of$4(value)}`] || variant["..."];
|
|
10103
10068
|
}
|
|
10104
10069
|
}
|
|
10105
10070
|
var fontShorthand = {
|
|
@@ -10186,7 +10151,7 @@ function transformsToString(transforms) {
|
|
|
10186
10151
|
}
|
|
10187
10152
|
).join(" ");
|
|
10188
10153
|
}
|
|
10189
|
-
function _type_of$
|
|
10154
|
+
function _type_of$3(obj) {
|
|
10190
10155
|
"@swc/helpers - typeof";
|
|
10191
10156
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10192
10157
|
}
|
|
@@ -10211,7 +10176,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10211
10176
|
if (keyInit === "children") return viewProps[keyInit] = valInit, "continue";
|
|
10212
10177
|
if (accept) {
|
|
10213
10178
|
var accepted = accept[keyInit];
|
|
10214
|
-
if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of$
|
|
10179
|
+
if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of$3(valInit)) === "object") return viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps2.noClass), "continue";
|
|
10215
10180
|
}
|
|
10216
10181
|
if (disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className") return "continue";
|
|
10217
10182
|
if (keyInit in skipProps && !noSkip && !isHOC) {
|
|
@@ -10396,7 +10361,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
10396
10361
|
inlineWhenUnflattened,
|
|
10397
10362
|
parentStaticConfig,
|
|
10398
10363
|
acceptsClassName
|
|
10399
|
-
} = staticConfig, viewProps = {}, mediaState = styleProps2.mediaState || exports.mediaState, shouldDoClasses = acceptsClassName && isWeb, rulesToInsert = void 0, classNames = {}
|
|
10364
|
+
} = staticConfig, viewProps = {}, mediaState = styleProps2.mediaState || exports.mediaState, shouldDoClasses = acceptsClassName && isWeb, rulesToInsert = void 0, classNames = {};
|
|
10365
|
+
props.space;
|
|
10366
|
+
var pseudos = null, hasMedia = false, dynamicThemeAccess, pseudoGroups, mediaGroups;
|
|
10400
10367
|
props.className || "";
|
|
10401
10368
|
var mediaStylesSeen = 0, validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);
|
|
10402
10369
|
var styleState = {
|
|
@@ -10587,9 +10554,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
10587
10554
|
}))), {
|
|
10588
10555
|
opacity: 1,
|
|
10589
10556
|
scale: 1,
|
|
10557
|
+
scaleX: 1,
|
|
10558
|
+
scaleY: 1,
|
|
10590
10559
|
rotate: "0deg",
|
|
10591
|
-
rotateY: "0deg",
|
|
10592
10560
|
rotateX: "0deg",
|
|
10561
|
+
rotateY: "0deg",
|
|
10562
|
+
rotateZ: "0deg",
|
|
10563
|
+
skewX: "0deg",
|
|
10564
|
+
skewY: "0deg",
|
|
10593
10565
|
x: 0,
|
|
10594
10566
|
y: 0,
|
|
10595
10567
|
borderRadius: 0
|
|
@@ -10634,6 +10606,18 @@ function applyDefaultStyle(pkey, styleState) {
|
|
|
10634
10606
|
var defaultValues = animatableDefaults[pkey];
|
|
10635
10607
|
defaultValues != null && !(pkey in styleState.usedKeys) && (!styleState.style || !(pkey in styleState.style)) && mergeStyle(styleState, pkey, defaultValues, 1);
|
|
10636
10608
|
}
|
|
10609
|
+
var isEventHandler = /^on[A-Z]/;
|
|
10610
|
+
function mergeSlotStyleProps(base, overlay) {
|
|
10611
|
+
for (var key in overlay) {
|
|
10612
|
+
var baseVal = base[key], overlayVal = overlay[key];
|
|
10613
|
+
overlayVal !== void 0 && (key === "style" ? base.style = baseVal && overlayVal ? __spreadValues(__spreadValues({}, baseVal), overlayVal) : overlayVal || baseVal : key === "className" ? base.className = baseVal && overlayVal ? `${baseVal} ${overlayVal}` : overlayVal || baseVal : key === "ref" ? base.ref = baseVal && overlayVal ? composeRefs(baseVal, overlayVal) : overlayVal || baseVal : isEventHandler.test(key) && typeof baseVal == "function" && typeof overlayVal == "function" ? base[key] = composeEventHandlers(baseVal, overlayVal) : base[key] = overlayVal);
|
|
10614
|
+
}
|
|
10615
|
+
return base;
|
|
10616
|
+
}
|
|
10617
|
+
function mergeRenderElementProps(elementProps, viewProps, children) {
|
|
10618
|
+
var merged = mergeSlotStyleProps(__spreadValues({}, elementProps), viewProps);
|
|
10619
|
+
return merged.children = children, merged;
|
|
10620
|
+
}
|
|
10637
10621
|
function setElementProps(element) {
|
|
10638
10622
|
element && !element.getBoundingClientRect && (element.getBoundingClientRect = function() {
|
|
10639
10623
|
if (element.unstable_getBoundingClientRect != null) return element.unstable_getBoundingClientRect();
|
|
@@ -10731,7 +10715,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10731
10715
|
forceClassName
|
|
10732
10716
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
10733
10717
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
10734
|
-
children = /* @__PURE__ */
|
|
10718
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
10735
10719
|
value: themeState.id,
|
|
10736
10720
|
children
|
|
10737
10721
|
});
|
|
@@ -10745,7 +10729,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10745
10729
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
10746
10730
|
if (!parentState) throw new Error("‼️010");
|
|
10747
10731
|
children = React.Children.toArray(children).map(function(child) {
|
|
10748
|
-
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */
|
|
10732
|
+
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
10749
10733
|
name: parentState.name,
|
|
10750
10734
|
children: child.props.children
|
|
10751
10735
|
})) : child;
|
|
@@ -10771,21 +10755,21 @@ function themeable(Component, staticConfig) {
|
|
|
10771
10755
|
}
|
|
10772
10756
|
var element = (
|
|
10773
10757
|
// @ts-expect-error its ok
|
|
10774
|
-
/* @__PURE__ */
|
|
10758
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
10775
10759
|
ref
|
|
10776
10760
|
}, rest), {
|
|
10777
10761
|
"data-disable-theme": true
|
|
10778
10762
|
}))
|
|
10779
10763
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
10780
10764
|
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;
|
|
10781
|
-
var contents = /* @__PURE__ */
|
|
10765
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
10782
10766
|
"disable-child-theme": true
|
|
10783
10767
|
}, filteredProps), {
|
|
10784
10768
|
children: element
|
|
10785
10769
|
}));
|
|
10786
10770
|
if (context) {
|
|
10787
10771
|
var Provider = context.Provider, contextValue = React.useContext(context);
|
|
10788
|
-
contents = /* @__PURE__ */
|
|
10772
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
10789
10773
|
children: contents
|
|
10790
10774
|
}));
|
|
10791
10775
|
}
|
|
@@ -10800,7 +10784,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
10800
10784
|
children,
|
|
10801
10785
|
enabled
|
|
10802
10786
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
10803
|
-
return /* @__PURE__ */
|
|
10787
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
10804
10788
|
value: enabled != null ? enabled : existingValue,
|
|
10805
10789
|
children
|
|
10806
10790
|
});
|
|
@@ -10816,7 +10800,7 @@ function useClientValue(value) {
|
|
|
10816
10800
|
useDidFinishSSR();
|
|
10817
10801
|
return typeof value == "function" ? value() : value;
|
|
10818
10802
|
}
|
|
10819
|
-
function _type_of$
|
|
10803
|
+
function _type_of$2(obj) {
|
|
10820
10804
|
"@swc/helpers - typeof";
|
|
10821
10805
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10822
10806
|
}
|
|
@@ -10894,7 +10878,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
|
10894
10878
|
function hasAnimatedStyleValue(style) {
|
|
10895
10879
|
return Object.keys(style).some(function(k) {
|
|
10896
10880
|
var val = style[k];
|
|
10897
|
-
return val && (typeof val > "u" ? "undefined" : _type_of$
|
|
10881
|
+
return val && (typeof val > "u" ? "undefined" : _type_of$2(val)) === "object" && "_animation" in val;
|
|
10898
10882
|
});
|
|
10899
10883
|
}
|
|
10900
10884
|
var isDisabled = function(props) {
|
|
@@ -10905,7 +10889,7 @@ var hooks = {};
|
|
|
10905
10889
|
function setupHooks(next) {
|
|
10906
10890
|
Object.assign(hooks, next);
|
|
10907
10891
|
}
|
|
10908
|
-
var
|
|
10892
|
+
var Slot = /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
10909
10893
|
var _a = props, {
|
|
10910
10894
|
children
|
|
10911
10895
|
} = _a, slotProps = __objRest(_a, [
|
|
@@ -10914,7 +10898,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10914
10898
|
if (/* @__PURE__ */ React.isValidElement(children)) {
|
|
10915
10899
|
var mergedProps = mergeSlotProps(children, slotProps);
|
|
10916
10900
|
return /* @__PURE__ */ React.cloneElement(children, children.type.avoidForwardRef ? mergedProps : __spreadProps(__spreadValues({}, mergedProps), {
|
|
10917
|
-
ref: composeRefs(forwardedRef,
|
|
10901
|
+
ref: composeRefs(forwardedRef, children.props.ref)
|
|
10918
10902
|
}));
|
|
10919
10903
|
}
|
|
10920
10904
|
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
@@ -10922,24 +10906,23 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10922
10906
|
var {
|
|
10923
10907
|
children
|
|
10924
10908
|
} = param;
|
|
10925
|
-
return /* @__PURE__ */
|
|
10909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
10926
10910
|
children
|
|
10927
10911
|
});
|
|
10928
10912
|
};
|
|
10929
10913
|
Slottable.displayName = "Slottable";
|
|
10930
10914
|
var pressMap = {};
|
|
10931
10915
|
function mergeSlotProps(child, slotProps) {
|
|
10932
|
-
var childProps = child.props,
|
|
10916
|
+
var childProps = child.props, isHTMLChild = typeof child.type == "string";
|
|
10933
10917
|
if (isHTMLChild) for (var key in pressMap) key in slotProps && (slotProps[pressMap[key]] = slotProps[key], delete slotProps[key]);
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
return
|
|
10918
|
+
var merged = mergeSlotStyleProps(slotProps, childProps);
|
|
10919
|
+
if (isHTMLChild) for (var key1 in pressMap) key1 in merged && (merged[pressMap[key1]] = merged[key1], delete merged[key1]);
|
|
10920
|
+
return merged;
|
|
10921
|
+
}
|
|
10922
|
+
function _type_of$1(obj) {
|
|
10923
|
+
"@swc/helpers - typeof";
|
|
10924
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
10941
10925
|
}
|
|
10942
|
-
var handleRegex = /^on[A-Z]/;
|
|
10943
10926
|
var componentSetStates = /* @__PURE__ */ new Set(), avoidReRenderKeys = /* @__PURE__ */ new Set(["hover", "press", "pressIn", "group", "focus", "focusWithin", "media", "group"]);
|
|
10944
10927
|
var BaseText, BaseView, hasSetupBaseViews = false, lastInteractionWasKeyboard = {
|
|
10945
10928
|
value: false
|
|
@@ -10961,7 +10944,7 @@ function createComponent(staticConfig) {
|
|
|
10961
10944
|
isHOC
|
|
10962
10945
|
} = staticConfig;
|
|
10963
10946
|
var component = /* @__PURE__ */ React.forwardRef(function(propsIn, forwardedRef) {
|
|
10964
|
-
var _hooks_usePropsTransform, _hooks_useEvents
|
|
10947
|
+
var _hooks_usePropsTransform, _hooks_useEvents;
|
|
10965
10948
|
if (!hasSetupBaseViews) {
|
|
10966
10949
|
var _hooks_getBaseViews;
|
|
10967
10950
|
hasSetupBaseViews = true;
|
|
@@ -10978,7 +10961,17 @@ function createComponent(staticConfig) {
|
|
|
10978
10961
|
nextProps && (props = nextProps), overriddenContextProps = overrides;
|
|
10979
10962
|
}
|
|
10980
10963
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
10981
|
-
var groupContextParent = React.useContext(GroupContext), animationDriver =
|
|
10964
|
+
var groupContextParent = React.useContext(GroupContext), animationDriver = (function() {
|
|
10965
|
+
if (props.animatedBy && (config == null ? void 0 : config.animations)) {
|
|
10966
|
+
var animations2 = config.animations;
|
|
10967
|
+
if ("default" in animations2) {
|
|
10968
|
+
var _animations_props_animatedBy;
|
|
10969
|
+
return (_animations_props_animatedBy = animations2[props.animatedBy]) !== null && _animations_props_animatedBy !== void 0 ? _animations_props_animatedBy : animations2.default;
|
|
10970
|
+
}
|
|
10971
|
+
return props.animatedBy === "default" ? animations2 : null;
|
|
10972
|
+
}
|
|
10973
|
+
return componentContext.animationDriver;
|
|
10974
|
+
})(), useAnimations = animationDriver == null ? void 0 : animationDriver.useAnimations, componentState = useComponentState(props, (animationDriver == null ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig), {
|
|
10982
10975
|
disabled,
|
|
10983
10976
|
groupName,
|
|
10984
10977
|
hasAnimationProp,
|
|
@@ -11035,7 +11028,7 @@ function createComponent(staticConfig) {
|
|
|
11035
11028
|
}
|
|
11036
11029
|
});
|
|
11037
11030
|
}, [stateRef, groupName, groupContextParent]), setStateShallow = componentState.setStateShallow;
|
|
11038
|
-
var isTaggable = !Component || typeof Component == "string",
|
|
11031
|
+
var isTaggable = !Component || typeof Component == "string", renderProp = props.render, element = Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || "div", elementType = isText ? BaseTextComponent : BaseViewComponent;
|
|
11039
11032
|
animationDriver && isAnimated && // this should really be behind another prop as it's not really related to
|
|
11040
11033
|
// "needsWebStyles" basically with motion we just animate a plain div, but
|
|
11041
11034
|
// we still have animated.View/Text for Sheet which wants to control
|
|
@@ -11053,7 +11046,7 @@ function createComponent(staticConfig) {
|
|
|
11053
11046
|
return !!stateRef.current.isListeningToTheme;
|
|
11054
11047
|
}, themeStateProps.deopt = willBeAnimated, false) ;
|
|
11055
11048
|
var [theme, themeState] = useThemeWithState(themeStateProps);
|
|
11056
|
-
elementType =
|
|
11049
|
+
elementType = element || elementType;
|
|
11057
11050
|
var mediaState = useMedia(componentContext);
|
|
11058
11051
|
setDidGetVariableValue(false);
|
|
11059
11052
|
var resolveValues = (
|
|
@@ -11195,7 +11188,7 @@ function createComponent(staticConfig) {
|
|
|
11195
11188
|
"onClick",
|
|
11196
11189
|
"theme"
|
|
11197
11190
|
]), viewProps = nonTamaguiProps;
|
|
11198
|
-
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && (typeof _themeProp < "u" && (viewProps.theme = _themeProp), typeof passThrough < "u" && (viewProps.passThrough = passThrough)),
|
|
11191
|
+
!isTaggable && props.forceStyle && (viewProps.forceStyle = props.forceStyle), isHOC && (typeof _themeProp < "u" && (viewProps.theme = _themeProp), typeof passThrough < "u" && (viewProps.passThrough = passThrough)), renderProp && elementType.acceptTagProp && (viewProps.render = renderProp);
|
|
11199
11192
|
var animationStyles, shouldUseAnimation = (
|
|
11200
11193
|
// if it supports css vars we run it on server too to get matching initial style
|
|
11201
11194
|
(supportsCSS ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC
|
|
@@ -11214,6 +11207,7 @@ function createComponent(staticConfig) {
|
|
|
11214
11207
|
componentState: state,
|
|
11215
11208
|
styleProps: styleProps2,
|
|
11216
11209
|
theme,
|
|
11210
|
+
themeName,
|
|
11217
11211
|
pseudos: pseudos || null,
|
|
11218
11212
|
staticConfig,
|
|
11219
11213
|
stateRef
|
|
@@ -11244,24 +11238,27 @@ function createComponent(staticConfig) {
|
|
|
11244
11238
|
});
|
|
11245
11239
|
return;
|
|
11246
11240
|
}
|
|
11247
|
-
var tm;
|
|
11248
11241
|
if (state.unmounted) {
|
|
11249
|
-
if (
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11242
|
+
if (supportsCSS) {
|
|
11243
|
+
var cancelled = false;
|
|
11244
|
+
return requestAnimationFrame(function() {
|
|
11245
|
+
cancelled || requestAnimationFrame(function() {
|
|
11246
|
+
cancelled || setStateShallow({
|
|
11247
|
+
unmounted: false
|
|
11248
|
+
});
|
|
11249
|
+
});
|
|
11250
|
+
}), function() {
|
|
11251
|
+
cancelled = true;
|
|
11252
|
+
};
|
|
11253
|
+
}
|
|
11256
11254
|
setStateShallow({
|
|
11257
11255
|
unmounted: false
|
|
11258
11256
|
});
|
|
11259
|
-
return;
|
|
11260
11257
|
}
|
|
11261
11258
|
return function() {
|
|
11262
11259
|
componentSetStates.delete(setState);
|
|
11263
11260
|
};
|
|
11264
|
-
}, [state.unmounted,
|
|
11261
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11265
11262
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11266
11263
|
groupContext: allGroupContexts,
|
|
11267
11264
|
setStateShallow,
|
|
@@ -11342,26 +11339,35 @@ function createComponent(staticConfig) {
|
|
|
11342
11339
|
}
|
|
11343
11340
|
});
|
|
11344
11341
|
var useChildrenResult;
|
|
11345
|
-
hooks.useChildren && (useChildrenResult = hooks.useChildren(elementType, content, viewProps)), useChildrenResult
|
|
11346
|
-
|
|
11342
|
+
if (hooks.useChildren && (useChildrenResult = hooks.useChildren(elementType, content, viewProps)), useChildrenResult) content = useChildrenResult;
|
|
11343
|
+
else if (typeof renderProp == "function") {
|
|
11344
|
+
var renderProps = __spreadProps(__spreadValues({}, viewProps), {
|
|
11345
|
+
children: content
|
|
11346
|
+
});
|
|
11347
|
+
content = renderProp(renderProps, state);
|
|
11348
|
+
} else if (renderProp && (typeof renderProp > "u" ? "undefined" : _type_of$1(renderProp)) === "object" && /* @__PURE__ */ React.isValidElement(renderProp)) {
|
|
11349
|
+
var elementProps = renderProp.props || {}, mergedProps = mergeRenderElementProps(elementProps, viewProps, content);
|
|
11350
|
+
content = /* @__PURE__ */ React.cloneElement(renderProp, mergedProps);
|
|
11351
|
+
} else content = /* @__PURE__ */ React.createElement(elementType, viewProps, content);
|
|
11352
|
+
var ResetPresence = animationDriver == null ? void 0 : animationDriver.ResetPresence, needsReset = !!// not when passing down to child
|
|
11347
11353
|
(!asChild && // not when passThrough
|
|
11348
11354
|
splitStyles && // not when HOC
|
|
11349
11355
|
!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11350
11356
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11351
11357
|
var renderReset = needsReset || hasEverReset;
|
|
11352
|
-
if (renderReset && ResetPresence && (content = /* @__PURE__ */
|
|
11358
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
11353
11359
|
disabled: !needsReset,
|
|
11354
11360
|
children: content
|
|
11355
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11361
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11356
11362
|
setParentFocusState: setStateShallow,
|
|
11357
11363
|
children: content
|
|
11358
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11364
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11359
11365
|
value: allGroupContexts,
|
|
11360
11366
|
children: content
|
|
11361
11367
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11362
11368
|
var Provider = contextForOverride.Provider;
|
|
11363
11369
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11364
|
-
|
|
11370
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11365
11371
|
__disableMergeDefaultValues: true
|
|
11366
11372
|
}, overriddenContextProps), {
|
|
11367
11373
|
children: content
|
|
@@ -12019,9 +12025,9 @@ function useThemeName() {
|
|
|
12019
12025
|
}
|
|
12020
12026
|
var Configuration = function(props) {
|
|
12021
12027
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
12022
|
-
return /* @__PURE__ */
|
|
12028
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12023
12029
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
12024
|
-
children: /* @__PURE__ */
|
|
12030
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
12025
12031
|
});
|
|
12026
12032
|
};
|
|
12027
12033
|
function FontLanguage(param) {
|
|
@@ -12032,7 +12038,7 @@ function FontLanguage(param) {
|
|
|
12032
12038
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
12033
12039
|
return props;
|
|
12034
12040
|
}, [JSON.stringify(props)]);
|
|
12035
|
-
return /* @__PURE__ */
|
|
12041
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
12036
12042
|
language,
|
|
12037
12043
|
children
|
|
12038
12044
|
}));
|
|
@@ -12040,7 +12046,7 @@ function FontLanguage(param) {
|
|
|
12040
12046
|
var ThemeProvider = function(props) {
|
|
12041
12047
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
12042
12048
|
var forceClassName = addThemeClassName === void 0;
|
|
12043
|
-
return /* @__PURE__ */
|
|
12049
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
12044
12050
|
className: props.className,
|
|
12045
12051
|
name: props.defaultTheme,
|
|
12046
12052
|
forceClassName,
|
|
@@ -12064,11 +12070,14 @@ function TamaguiProvider$1(param) {
|
|
|
12064
12070
|
}, []);
|
|
12065
12071
|
var memoizedInsets = React.useMemo(function() {
|
|
12066
12072
|
return insets;
|
|
12067
|
-
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]),
|
|
12068
|
-
|
|
12069
|
-
|
|
12073
|
+
}, [insets == null ? void 0 : insets.top, insets == null ? void 0 : insets.right, insets == null ? void 0 : insets.bottom, insets == null ? void 0 : insets.left]), defaultAnimationDriver2 = React.useMemo(function() {
|
|
12074
|
+
var animations = config == null ? void 0 : config.animations;
|
|
12075
|
+
return animations ? "default" in animations ? animations.default : animations : null;
|
|
12076
|
+
}, [config == null ? void 0 : config.animations]), contents = /* @__PURE__ */ jsxRuntime.jsx(UnmountedClassName, {
|
|
12077
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, {
|
|
12078
|
+
animationDriver: defaultAnimationDriver2,
|
|
12070
12079
|
insets: memoizedInsets,
|
|
12071
|
-
children: /* @__PURE__ */
|
|
12080
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
12072
12081
|
defaultTheme,
|
|
12073
12082
|
reset,
|
|
12074
12083
|
className,
|
|
@@ -12076,10 +12085,10 @@ function TamaguiProvider$1(param) {
|
|
|
12076
12085
|
})
|
|
12077
12086
|
})
|
|
12078
12087
|
});
|
|
12079
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12088
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12080
12089
|
enabled: true,
|
|
12081
12090
|
children: contents
|
|
12082
|
-
})), /* @__PURE__ */
|
|
12091
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
12083
12092
|
children: [contents, false]
|
|
12084
12093
|
});
|
|
12085
12094
|
}
|
|
@@ -12572,7 +12581,7 @@ const TamaguiProvider = (props) => {
|
|
|
12572
12581
|
useIsomorphicLayoutEffect(() => {
|
|
12573
12582
|
enable();
|
|
12574
12583
|
}, []);
|
|
12575
|
-
return /* @__PURE__ */
|
|
12584
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$1, __spreadValues({}, props));
|
|
12576
12585
|
};
|
|
12577
12586
|
const createTamagui = (conf2) => {
|
|
12578
12587
|
{
|
|
@@ -12736,6 +12745,7 @@ exports.isVariable = isVariable;
|
|
|
12736
12745
|
exports.isWeb = isWeb;
|
|
12737
12746
|
exports.isWebTouchable = isWebTouchable;
|
|
12738
12747
|
exports.isWindowDefined = isWindowDefined;
|
|
12748
|
+
exports.loadAnimationDriver = loadAnimationDriver;
|
|
12739
12749
|
exports.matchMedia = matchMedia$1;
|
|
12740
12750
|
exports.mediaKeyMatch = mediaKeyMatch;
|
|
12741
12751
|
exports.mediaObjectToString = mediaObjectToString;
|