@tamagui/core 2.0.0-1768586279389 → 2.0.0-1768636514428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.cjs +114 -154
- package/dist/test.native.cjs +48 -320
- 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: {
|
|
@@ -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
|
});
|
|
@@ -9415,7 +9367,7 @@ var _withStableStyle = function(Component, styleProvider) {
|
|
|
9415
9367
|
}), media = hasMediaKeys ? useMedia() : null, resolvedExpressions = media ? _expressions.map(function(expr) {
|
|
9416
9368
|
return typeof expr == "string" ? media[expr] : expr;
|
|
9417
9369
|
}) : _expressions;
|
|
9418
|
-
return /* @__PURE__ */
|
|
9370
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
9419
9371
|
ref,
|
|
9420
9372
|
style: styleProvider(theme, resolvedExpressions)
|
|
9421
9373
|
}, rest));
|
|
@@ -10587,9 +10539,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
10587
10539
|
}))), {
|
|
10588
10540
|
opacity: 1,
|
|
10589
10541
|
scale: 1,
|
|
10542
|
+
scaleX: 1,
|
|
10543
|
+
scaleY: 1,
|
|
10590
10544
|
rotate: "0deg",
|
|
10591
|
-
rotateY: "0deg",
|
|
10592
10545
|
rotateX: "0deg",
|
|
10546
|
+
rotateY: "0deg",
|
|
10547
|
+
rotateZ: "0deg",
|
|
10548
|
+
skewX: "0deg",
|
|
10549
|
+
skewY: "0deg",
|
|
10593
10550
|
x: 0,
|
|
10594
10551
|
y: 0,
|
|
10595
10552
|
borderRadius: 0
|
|
@@ -10731,7 +10688,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10731
10688
|
forceClassName
|
|
10732
10689
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
10733
10690
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
10734
|
-
children = /* @__PURE__ */
|
|
10691
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
10735
10692
|
value: themeState.id,
|
|
10736
10693
|
children
|
|
10737
10694
|
});
|
|
@@ -10745,7 +10702,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10745
10702
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
10746
10703
|
if (!parentState) throw new Error("‼️010");
|
|
10747
10704
|
children = React.Children.toArray(children).map(function(child) {
|
|
10748
|
-
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */
|
|
10705
|
+
return /* @__PURE__ */ React.isValidElement(child) ? passThrough ? child : /* @__PURE__ */ React.cloneElement(child, void 0, /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
10749
10706
|
name: parentState.name,
|
|
10750
10707
|
children: child.props.children
|
|
10751
10708
|
})) : child;
|
|
@@ -10771,21 +10728,21 @@ function themeable(Component, staticConfig) {
|
|
|
10771
10728
|
}
|
|
10772
10729
|
var element = (
|
|
10773
10730
|
// @ts-expect-error its ok
|
|
10774
|
-
/* @__PURE__ */
|
|
10731
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
10775
10732
|
ref
|
|
10776
10733
|
}, rest), {
|
|
10777
10734
|
"data-disable-theme": true
|
|
10778
10735
|
}))
|
|
10779
10736
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
10780
10737
|
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__ */
|
|
10738
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
10782
10739
|
"disable-child-theme": true
|
|
10783
10740
|
}, filteredProps), {
|
|
10784
10741
|
children: element
|
|
10785
10742
|
}));
|
|
10786
10743
|
if (context) {
|
|
10787
10744
|
var Provider = context.Provider, contextValue = React.useContext(context);
|
|
10788
|
-
contents = /* @__PURE__ */
|
|
10745
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
10789
10746
|
children: contents
|
|
10790
10747
|
}));
|
|
10791
10748
|
}
|
|
@@ -10800,7 +10757,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
10800
10757
|
children,
|
|
10801
10758
|
enabled
|
|
10802
10759
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
10803
|
-
return /* @__PURE__ */
|
|
10760
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
10804
10761
|
value: enabled != null ? enabled : existingValue,
|
|
10805
10762
|
children
|
|
10806
10763
|
});
|
|
@@ -10922,7 +10879,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10922
10879
|
var {
|
|
10923
10880
|
children
|
|
10924
10881
|
} = param;
|
|
10925
|
-
return /* @__PURE__ */
|
|
10882
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
10926
10883
|
children
|
|
10927
10884
|
});
|
|
10928
10885
|
};
|
|
@@ -11244,24 +11201,27 @@ function createComponent(staticConfig) {
|
|
|
11244
11201
|
});
|
|
11245
11202
|
return;
|
|
11246
11203
|
}
|
|
11247
|
-
var tm;
|
|
11248
11204
|
if (state.unmounted) {
|
|
11249
|
-
if (
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11205
|
+
if (supportsCSS) {
|
|
11206
|
+
var cancelled = false;
|
|
11207
|
+
return requestAnimationFrame(function() {
|
|
11208
|
+
cancelled || requestAnimationFrame(function() {
|
|
11209
|
+
cancelled || setStateShallow({
|
|
11210
|
+
unmounted: false
|
|
11211
|
+
});
|
|
11212
|
+
});
|
|
11213
|
+
}), function() {
|
|
11214
|
+
cancelled = true;
|
|
11215
|
+
};
|
|
11216
|
+
}
|
|
11256
11217
|
setStateShallow({
|
|
11257
11218
|
unmounted: false
|
|
11258
11219
|
});
|
|
11259
|
-
return;
|
|
11260
11220
|
}
|
|
11261
11221
|
return function() {
|
|
11262
11222
|
componentSetStates.delete(setState);
|
|
11263
11223
|
};
|
|
11264
|
-
}, [state.unmounted,
|
|
11224
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11265
11225
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11266
11226
|
groupContext: allGroupContexts,
|
|
11267
11227
|
setStateShallow,
|
|
@@ -11349,19 +11309,19 @@ function createComponent(staticConfig) {
|
|
|
11349
11309
|
!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11350
11310
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11351
11311
|
var renderReset = needsReset || hasEverReset;
|
|
11352
|
-
if (renderReset && ResetPresence && (content = /* @__PURE__ */
|
|
11312
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
11353
11313
|
disabled: !needsReset,
|
|
11354
11314
|
children: content
|
|
11355
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11315
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11356
11316
|
setParentFocusState: setStateShallow,
|
|
11357
11317
|
children: content
|
|
11358
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11318
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11359
11319
|
value: allGroupContexts,
|
|
11360
11320
|
children: content
|
|
11361
11321
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11362
11322
|
var Provider = contextForOverride.Provider;
|
|
11363
11323
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11364
|
-
|
|
11324
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11365
11325
|
__disableMergeDefaultValues: true
|
|
11366
11326
|
}, overriddenContextProps), {
|
|
11367
11327
|
children: content
|
|
@@ -12019,9 +11979,9 @@ function useThemeName() {
|
|
|
12019
11979
|
}
|
|
12020
11980
|
var Configuration = function(props) {
|
|
12021
11981
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
12022
|
-
return /* @__PURE__ */
|
|
11982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12023
11983
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
12024
|
-
children: /* @__PURE__ */
|
|
11984
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
12025
11985
|
});
|
|
12026
11986
|
};
|
|
12027
11987
|
function FontLanguage(param) {
|
|
@@ -12032,7 +11992,7 @@ function FontLanguage(param) {
|
|
|
12032
11992
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
12033
11993
|
return props;
|
|
12034
11994
|
}, [JSON.stringify(props)]);
|
|
12035
|
-
return /* @__PURE__ */
|
|
11995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
12036
11996
|
language,
|
|
12037
11997
|
children
|
|
12038
11998
|
}));
|
|
@@ -12040,7 +12000,7 @@ function FontLanguage(param) {
|
|
|
12040
12000
|
var ThemeProvider = function(props) {
|
|
12041
12001
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
12042
12002
|
var forceClassName = addThemeClassName === void 0;
|
|
12043
|
-
return /* @__PURE__ */
|
|
12003
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
12044
12004
|
className: props.className,
|
|
12045
12005
|
name: props.defaultTheme,
|
|
12046
12006
|
forceClassName,
|
|
@@ -12064,11 +12024,11 @@ function TamaguiProvider$1(param) {
|
|
|
12064
12024
|
}, []);
|
|
12065
12025
|
var memoizedInsets = React.useMemo(function() {
|
|
12066
12026
|
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]), contents = /* @__PURE__ */
|
|
12068
|
-
children: /* @__PURE__ */
|
|
12027
|
+
}, [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, {
|
|
12028
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, {
|
|
12069
12029
|
animationDriver: config == null ? void 0 : config.animations,
|
|
12070
12030
|
insets: memoizedInsets,
|
|
12071
|
-
children: /* @__PURE__ */
|
|
12031
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
12072
12032
|
defaultTheme,
|
|
12073
12033
|
reset,
|
|
12074
12034
|
className,
|
|
@@ -12076,10 +12036,10 @@ function TamaguiProvider$1(param) {
|
|
|
12076
12036
|
})
|
|
12077
12037
|
})
|
|
12078
12038
|
});
|
|
12079
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12039
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
12080
12040
|
enabled: true,
|
|
12081
12041
|
children: contents
|
|
12082
|
-
})), /* @__PURE__ */
|
|
12042
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
12083
12043
|
children: [contents, false]
|
|
12084
12044
|
});
|
|
12085
12045
|
}
|
|
@@ -12572,7 +12532,7 @@ const TamaguiProvider = (props) => {
|
|
|
12572
12532
|
useIsomorphicLayoutEffect(() => {
|
|
12573
12533
|
enable();
|
|
12574
12534
|
}, []);
|
|
12575
|
-
return /* @__PURE__ */
|
|
12535
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$1, __spreadValues({}, props));
|
|
12576
12536
|
};
|
|
12577
12537
|
const createTamagui = (conf2) => {
|
|
12578
12538
|
{
|