@tamagui/core 2.0.0-1768530912818 → 2.0.0-1768636514428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.cjs +231 -188
- package/dist/test.native.cjs +165 -354
- 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() {
|
|
@@ -1953,14 +1905,14 @@ function requireNormalizeColor() {
|
|
|
1953
1905
|
return (int % 360 + 360) % 360 / 360;
|
|
1954
1906
|
}
|
|
1955
1907
|
function parse1(str) {
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1908
|
+
const num2 = parseFloat(str);
|
|
1909
|
+
if (num2 < 0) {
|
|
1958
1910
|
return 0;
|
|
1959
1911
|
}
|
|
1960
|
-
if (
|
|
1912
|
+
if (num2 > 1) {
|
|
1961
1913
|
return 255;
|
|
1962
1914
|
}
|
|
1963
|
-
return Math.round(
|
|
1915
|
+
return Math.round(num2 * 255);
|
|
1964
1916
|
}
|
|
1965
1917
|
function parsePercentage(str) {
|
|
1966
1918
|
const int = parseFloat(str);
|
|
@@ -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
|
});
|
|
@@ -8716,13 +8668,14 @@ var webOnlyStylePropsView = {
|
|
|
8716
8668
|
borderLeftStyle: true,
|
|
8717
8669
|
borderRightStyle: true,
|
|
8718
8670
|
borderTopStyle: true,
|
|
8719
|
-
boxSizing:
|
|
8671
|
+
// boxSizing: now supported in RN 0.77+ (New Architecture)
|
|
8720
8672
|
caretColor: true,
|
|
8721
8673
|
clipPath: true,
|
|
8722
8674
|
contain: true,
|
|
8723
8675
|
containerType: true,
|
|
8724
8676
|
content: true,
|
|
8725
8677
|
cursor: true,
|
|
8678
|
+
// NOTE: cursor is supported on iOS 17+ for trackpad/stylus
|
|
8726
8679
|
float: true,
|
|
8727
8680
|
mask: true,
|
|
8728
8681
|
maskBorder: true,
|
|
@@ -8741,13 +8694,10 @@ var webOnlyStylePropsView = {
|
|
|
8741
8694
|
maskRepeat: true,
|
|
8742
8695
|
maskSize: true,
|
|
8743
8696
|
maskType: true,
|
|
8744
|
-
mixBlendMode:
|
|
8697
|
+
// mixBlendMode: now supported in RN 0.77+ (New Architecture)
|
|
8745
8698
|
objectFit: true,
|
|
8746
8699
|
objectPosition: true,
|
|
8747
|
-
|
|
8748
|
-
outlineStyle: true,
|
|
8749
|
-
outlineWidth: true,
|
|
8750
|
-
outlineColor: true,
|
|
8700
|
+
// outline*: now supported in RN 0.77+ (New Architecture)
|
|
8751
8701
|
overflowBlock: true,
|
|
8752
8702
|
overflowInline: true,
|
|
8753
8703
|
overflowX: true,
|
|
@@ -8803,7 +8753,7 @@ var textColors = {
|
|
|
8803
8753
|
zIndex: {
|
|
8804
8754
|
zIndex: true
|
|
8805
8755
|
},
|
|
8806
|
-
color: __spreadValues({
|
|
8756
|
+
color: __spreadProps(__spreadValues({
|
|
8807
8757
|
backgroundColor: true,
|
|
8808
8758
|
borderColor: true,
|
|
8809
8759
|
borderBlockStartColor: true,
|
|
@@ -8819,7 +8769,10 @@ var textColors = {
|
|
|
8819
8769
|
borderEndColor: true,
|
|
8820
8770
|
borderStartColor: true,
|
|
8821
8771
|
shadowColor: true
|
|
8822
|
-
}, textColors)
|
|
8772
|
+
}, textColors), {
|
|
8773
|
+
// outlineColor is supported on RN 0.77+ (New Architecture)
|
|
8774
|
+
outlineColor: true
|
|
8775
|
+
})
|
|
8823
8776
|
}, stylePropsUnitless = {
|
|
8824
8777
|
WebkitLineClamp: true,
|
|
8825
8778
|
animationIterationCount: true,
|
|
@@ -8872,7 +8825,7 @@ var textColors = {
|
|
|
8872
8825
|
rotateY: true,
|
|
8873
8826
|
rotateX: true,
|
|
8874
8827
|
rotateZ: true
|
|
8875
|
-
}, stylePropsView =
|
|
8828
|
+
}, stylePropsView = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
8876
8829
|
backfaceVisibility: true,
|
|
8877
8830
|
borderBottomEndRadius: true,
|
|
8878
8831
|
borderBottomStartRadius: true,
|
|
@@ -8962,12 +8915,13 @@ var textColors = {
|
|
|
8962
8915
|
elevationAndroid: true
|
|
8963
8916
|
} : {}), {
|
|
8964
8917
|
boxShadow: true,
|
|
8965
|
-
filter: true
|
|
8966
|
-
|
|
8918
|
+
filter: true,
|
|
8919
|
+
// RN 0.76/0.77+ style props (New Architecture)
|
|
8967
8920
|
boxSizing: true,
|
|
8968
8921
|
mixBlendMode: true,
|
|
8922
|
+
isolation: true,
|
|
8969
8923
|
outlineColor: true,
|
|
8970
|
-
|
|
8924
|
+
outlineOffset: true,
|
|
8971
8925
|
outlineStyle: true,
|
|
8972
8926
|
outlineWidth: true
|
|
8973
8927
|
}), stylePropsFont = {
|
|
@@ -9413,7 +9367,7 @@ var _withStableStyle = function(Component, styleProvider) {
|
|
|
9413
9367
|
}), media = hasMediaKeys ? useMedia() : null, resolvedExpressions = media ? _expressions.map(function(expr) {
|
|
9414
9368
|
return typeof expr == "string" ? media[expr] : expr;
|
|
9415
9369
|
}) : _expressions;
|
|
9416
|
-
return /* @__PURE__ */
|
|
9370
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadValues({
|
|
9417
9371
|
ref,
|
|
9418
9372
|
style: styleProvider(theme, resolvedExpressions)
|
|
9419
9373
|
}, rest));
|
|
@@ -9659,9 +9613,58 @@ var _loop = function(parent) {
|
|
|
9659
9613
|
EXPANSIONS[parent] = EXPANSIONS[parent].map(function(k) {
|
|
9660
9614
|
return `${prefix}${k}`;
|
|
9661
9615
|
});
|
|
9616
|
+
}, num = function(v) {
|
|
9617
|
+
return Number.parseFloat(v) || 0;
|
|
9618
|
+
}, parseBoxShadowStr = function(s2) {
|
|
9619
|
+
return s2.split(/,(?![^(]*\))/).map(function(sh) {
|
|
9620
|
+
var p = sh.trim().split(/\s+/), i = p[0] === "inset" ? 1 : 0, o = {
|
|
9621
|
+
offsetX: num(p[i++]),
|
|
9622
|
+
offsetY: num(p[i++])
|
|
9623
|
+
};
|
|
9624
|
+
return p[0] === "inset" && (o.inset = true), p[i] && /^-?[\d.]/.test(p[i]) && (o.blurRadius = num(p[i++])), p[i] && /^-?[\d.]/.test(p[i]) && (o.spreadDistance = num(p[i++])), p[i] && (o.color = p.slice(i).join(" ")), o;
|
|
9625
|
+
});
|
|
9626
|
+
}, simpleFilters = /* @__PURE__ */ new Set(["brightness", "opacity", "contrast", "grayscale", "invert", "saturate", "sepia", "blur"]), parseFilterStr = function(s2) {
|
|
9627
|
+
var r = [], _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
9628
|
+
try {
|
|
9629
|
+
for (var _iterator = s2.matchAll(/(\w+)\(([^)]+)\)/g)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
9630
|
+
var [, fn, val] = _step.value, n = +val || 0;
|
|
9631
|
+
if (simpleFilters.has(fn)) r.push({
|
|
9632
|
+
[fn]: n
|
|
9633
|
+
});
|
|
9634
|
+
else if (fn === "hueRotate" || fn === "hue-rotate") r.push({
|
|
9635
|
+
hueRotate: val
|
|
9636
|
+
});
|
|
9637
|
+
else if (fn === "dropShadow" || fn === "drop-shadow") {
|
|
9638
|
+
var p = val.trim().split(/\s+/), ds = {
|
|
9639
|
+
offsetX: num(p[0]),
|
|
9640
|
+
offsetY: num(p[1])
|
|
9641
|
+
};
|
|
9642
|
+
p[2] && /^-?[\d.]/.test(p[2]) ? (ds.blurRadius = num(p[2]), p[3] && (ds.color = p.slice(3).join(" "))) : p[2] && (ds.color = p.slice(2).join(" ")), r.push({
|
|
9643
|
+
dropShadow: ds
|
|
9644
|
+
});
|
|
9645
|
+
}
|
|
9646
|
+
}
|
|
9647
|
+
} catch (err) {
|
|
9648
|
+
_didIteratorError = true, _iteratorError = err;
|
|
9649
|
+
} finally {
|
|
9650
|
+
try {
|
|
9651
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
9652
|
+
} finally {
|
|
9653
|
+
if (_didIteratorError) throw _iteratorError;
|
|
9654
|
+
}
|
|
9655
|
+
}
|
|
9656
|
+
return r;
|
|
9662
9657
|
};
|
|
9663
9658
|
function expandStyle(key, value) {
|
|
9664
9659
|
if (isAndroid && key === "elevationAndroid") return [["elevation", value]];
|
|
9660
|
+
if (key === "boxShadow") {
|
|
9661
|
+
if (typeof value == "string") return [["boxShadow", parseBoxShadowStr(value)]];
|
|
9662
|
+
if (value && !Array.isArray(value)) return [["boxShadow", [value]]];
|
|
9663
|
+
}
|
|
9664
|
+
if (key === "filter") {
|
|
9665
|
+
if (typeof value == "string") return [["filter", parseFilterStr(value)]];
|
|
9666
|
+
if (value && !Array.isArray(value)) return [["filter", [value]]];
|
|
9667
|
+
}
|
|
9665
9668
|
if (key in EXPANSIONS) return EXPANSIONS[key].map(function(key2) {
|
|
9666
9669
|
return [key2, value];
|
|
9667
9670
|
});
|
|
@@ -9670,18 +9673,17 @@ function expandStyle(key, value) {
|
|
|
9670
9673
|
});
|
|
9671
9674
|
if (key in webToNativeDynamicExpansion) return webToNativeDynamicExpansion[key](value);
|
|
9672
9675
|
}
|
|
9673
|
-
var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"],
|
|
9676
|
+
var all = ["Top", "Right", "Bottom", "Left"], horiz = ["Right", "Left"], vert = ["Top", "Bottom"], EXPANSIONS = {
|
|
9674
9677
|
borderColor: ["TopColor", "RightColor", "BottomColor", "LeftColor"],
|
|
9675
9678
|
borderRadius: ["TopLeftRadius", "TopRightRadius", "BottomRightRadius", "BottomLeftRadius"],
|
|
9676
9679
|
borderWidth: ["TopWidth", "RightWidth", "BottomWidth", "LeftWidth"],
|
|
9677
9680
|
margin: all,
|
|
9678
9681
|
marginHorizontal: horiz,
|
|
9679
9682
|
marginVertical: vert,
|
|
9680
|
-
overscrollBehavior: xy,
|
|
9681
9683
|
padding: all,
|
|
9682
9684
|
paddingHorizontal: horiz,
|
|
9683
9685
|
paddingVertical: vert
|
|
9684
|
-
}
|
|
9686
|
+
};
|
|
9685
9687
|
for (var parent in EXPANSIONS) _loop(parent);
|
|
9686
9688
|
var cache$1 = /* @__PURE__ */ new WeakMap(), getVariantExtras = function(styleState) {
|
|
9687
9689
|
if (cache$1.has(styleState)) return cache$1.get(styleState);
|
|
@@ -9821,14 +9823,47 @@ function _type_of$3(obj) {
|
|
|
9821
9823
|
"@swc/helpers - typeof";
|
|
9822
9824
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
9823
9825
|
}
|
|
9824
|
-
var
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9826
|
+
var resolveTok = function(v, cat, sp, ss) {
|
|
9827
|
+
if (typeof v == "string" && v[0] === "$") {
|
|
9828
|
+
var r = getTokenForKey(cat, v, sp, ss);
|
|
9829
|
+
return cat === "size" ? r != null && +r || 0 : r != null ? String(r) : v;
|
|
9830
|
+
}
|
|
9831
|
+
return cat === "size" ? typeof v == "number" ? v : +v || 0 : v;
|
|
9832
|
+
}, boxShadowObjResolve = function(v, sp, ss) {
|
|
9833
|
+
return (Array.isArray(v) ? v : [v]).map(function(o) {
|
|
9834
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, o.inset && {
|
|
9835
|
+
inset: true
|
|
9836
|
+
}), {
|
|
9837
|
+
offsetX: resolveTok(o.offsetX, "size", sp, ss),
|
|
9838
|
+
offsetY: resolveTok(o.offsetY, "size", sp, ss)
|
|
9839
|
+
}), o.blurRadius != null && {
|
|
9840
|
+
blurRadius: resolveTok(o.blurRadius, "size", sp, ss)
|
|
9841
|
+
}), o.spreadDistance != null && {
|
|
9842
|
+
spreadDistance: resolveTok(o.spreadDistance, "size", sp, ss)
|
|
9843
|
+
}), o.color != null && {
|
|
9844
|
+
color: resolveTok(o.color, "color", sp, ss)
|
|
9845
|
+
});
|
|
9846
|
+
});
|
|
9847
|
+
}, filterObjResolve = function(v, sp, ss) {
|
|
9848
|
+
return (Array.isArray(v) ? v : [v]).map(function(o) {
|
|
9849
|
+
if ("blur" in o) return {
|
|
9850
|
+
blur: resolveTok(o.blur, "size", sp, ss)
|
|
9851
|
+
};
|
|
9852
|
+
if ("dropShadow" in o) {
|
|
9853
|
+
var ds = o.dropShadow;
|
|
9854
|
+
return {
|
|
9855
|
+
dropShadow: __spreadValues(__spreadValues({
|
|
9856
|
+
offsetX: resolveTok(ds.offsetX, "size", sp, ss),
|
|
9857
|
+
offsetY: resolveTok(ds.offsetY, "size", sp, ss)
|
|
9858
|
+
}, ds.blurRadius != null && {
|
|
9859
|
+
blurRadius: resolveTok(ds.blurRadius, "size", sp, ss)
|
|
9860
|
+
}), ds.color != null && {
|
|
9861
|
+
color: resolveTok(ds.color, "color", sp, ss)
|
|
9862
|
+
})
|
|
9863
|
+
};
|
|
9864
|
+
}
|
|
9865
|
+
return o;
|
|
9866
|
+
});
|
|
9832
9867
|
}, propMapper = function(key, value, styleState, disabled, map) {
|
|
9833
9868
|
if (disabled) return map(key, value);
|
|
9834
9869
|
if (lastFontFamilyToken = null, !(!isAndroid && key === "elevationAndroid")) {
|
|
@@ -9857,13 +9892,13 @@ var shorthandStringProps = {
|
|
|
9857
9892
|
}
|
|
9858
9893
|
styleProps2.disableExpandShorthands || key in conf2.shorthands && (key = conf2.shorthands[key]);
|
|
9859
9894
|
var originalValue = value;
|
|
9860
|
-
if (value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps2, styleState) : (
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
)), value != null) {
|
|
9895
|
+
if (value != null && (key === "boxShadow" && (typeof value > "u" ? "undefined" : _type_of$3(value)) === "object" ? value = boxShadowObjResolve(value, styleProps2, styleState) : key === "filter" && (typeof value > "u" ? "undefined" : _type_of$3(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) {
|
|
9896
|
+
var cat = /^\$-?\d/.test(t2) ? "size" : "color", r = getTokenForKey(cat, t2, styleProps2, styleState);
|
|
9897
|
+
return r != null ? String(r) : t2;
|
|
9898
|
+
}) : key === "filter" && typeof value == "string" && value.includes("$") ? value = value.replace(/(\$[\w.-]+)/g, function(t2) {
|
|
9899
|
+
var cat = /^\$-?\d/.test(t2) ? "size" : "color", r = getTokenForKey(cat, t2, styleProps2, styleState);
|
|
9900
|
+
return r != null ? String(r) : t2;
|
|
9901
|
+
}) : isVariable(value) ? value = resolveVariableValue(key, value, styleProps2.resolveValues) : isRemValue(value) && (value = resolveRem(value))), value != null) {
|
|
9867
9902
|
key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
|
|
9868
9903
|
var expanded = styleProps2.noExpand ? null : expandStyle(key, value);
|
|
9869
9904
|
if (expanded) for (var max = expanded.length, i = 0; i < max; i++) {
|
|
@@ -10504,9 +10539,14 @@ var defaultColor = process.env.TAMAGUI_DEFAULT_COLOR || "rgba(0,0,0,0)", animata
|
|
|
10504
10539
|
}))), {
|
|
10505
10540
|
opacity: 1,
|
|
10506
10541
|
scale: 1,
|
|
10542
|
+
scaleX: 1,
|
|
10543
|
+
scaleY: 1,
|
|
10507
10544
|
rotate: "0deg",
|
|
10508
|
-
rotateY: "0deg",
|
|
10509
10545
|
rotateX: "0deg",
|
|
10546
|
+
rotateY: "0deg",
|
|
10547
|
+
rotateZ: "0deg",
|
|
10548
|
+
skewX: "0deg",
|
|
10549
|
+
skewY: "0deg",
|
|
10510
10550
|
x: 0,
|
|
10511
10551
|
y: 0,
|
|
10512
10552
|
borderRadius: 0
|
|
@@ -10648,7 +10688,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10648
10688
|
forceClassName
|
|
10649
10689
|
} = props, state = stateRef.current, hasEverThemed = state.hasEverThemed, shouldRenderChildrenWithTheme = hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props);
|
|
10650
10690
|
if (!shouldRenderChildrenWithTheme) return children;
|
|
10651
|
-
children = /* @__PURE__ */
|
|
10691
|
+
children = /* @__PURE__ */ jsxRuntime.jsx(ThemeStateContext.Provider, {
|
|
10652
10692
|
value: themeState.id,
|
|
10653
10693
|
children
|
|
10654
10694
|
});
|
|
@@ -10662,7 +10702,7 @@ function getThemedChildren(themeState, children, props) {
|
|
|
10662
10702
|
var parentState = getThemeState(themeState.isNew ? themeState.id : themeState.parentId);
|
|
10663
10703
|
if (!parentState) throw new Error("‼️010");
|
|
10664
10704
|
children = React.Children.toArray(children).map(function(child) {
|
|
10665
|
-
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, {
|
|
10666
10706
|
name: parentState.name,
|
|
10667
10707
|
children: child.props.children
|
|
10668
10708
|
})) : child;
|
|
@@ -10688,21 +10728,21 @@ function themeable(Component, staticConfig) {
|
|
|
10688
10728
|
}
|
|
10689
10729
|
var element = (
|
|
10690
10730
|
// @ts-expect-error its ok
|
|
10691
|
-
/* @__PURE__ */
|
|
10731
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({
|
|
10692
10732
|
ref
|
|
10693
10733
|
}, rest), {
|
|
10694
10734
|
"data-disable-theme": true
|
|
10695
10735
|
}))
|
|
10696
10736
|
), filteredProps = null, compName = componentName || (staticConfig == null ? void 0 : staticConfig.componentName);
|
|
10697
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;
|
|
10698
|
-
var contents = /* @__PURE__ */
|
|
10738
|
+
var contents = /* @__PURE__ */ jsxRuntime.jsx(Theme, __spreadProps(__spreadValues({
|
|
10699
10739
|
"disable-child-theme": true
|
|
10700
10740
|
}, filteredProps), {
|
|
10701
10741
|
children: element
|
|
10702
10742
|
}));
|
|
10703
10743
|
if (context) {
|
|
10704
10744
|
var Provider = context.Provider, contextValue = React.useContext(context);
|
|
10705
|
-
contents = /* @__PURE__ */
|
|
10745
|
+
contents = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues(__spreadValues({}, contextValue), overriddenContextProps), {
|
|
10706
10746
|
children: contents
|
|
10707
10747
|
}));
|
|
10708
10748
|
}
|
|
@@ -10717,7 +10757,7 @@ var ClientOnlyContext = /* @__PURE__ */ React.createContext(false), ClientOnly =
|
|
|
10717
10757
|
children,
|
|
10718
10758
|
enabled
|
|
10719
10759
|
} = param, existingValue = React.useContext(ClientOnlyContext);
|
|
10720
|
-
return /* @__PURE__ */
|
|
10760
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnlyContext.Provider, {
|
|
10721
10761
|
value: enabled != null ? enabled : existingValue,
|
|
10722
10762
|
children
|
|
10723
10763
|
});
|
|
@@ -10839,7 +10879,7 @@ var is19 = React.version.startsWith("19."), Slot = /* @__PURE__ */ React.memo(/*
|
|
|
10839
10879
|
var {
|
|
10840
10880
|
children
|
|
10841
10881
|
} = param;
|
|
10842
|
-
return /* @__PURE__ */
|
|
10882
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
10843
10883
|
children
|
|
10844
10884
|
});
|
|
10845
10885
|
};
|
|
@@ -11161,24 +11201,27 @@ function createComponent(staticConfig) {
|
|
|
11161
11201
|
});
|
|
11162
11202
|
return;
|
|
11163
11203
|
}
|
|
11164
|
-
var tm;
|
|
11165
11204
|
if (state.unmounted) {
|
|
11166
|
-
if (
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
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
|
+
}
|
|
11173
11217
|
setStateShallow({
|
|
11174
11218
|
unmounted: false
|
|
11175
11219
|
});
|
|
11176
|
-
return;
|
|
11177
11220
|
}
|
|
11178
11221
|
return function() {
|
|
11179
11222
|
componentSetStates.delete(setState);
|
|
11180
11223
|
};
|
|
11181
|
-
}, [state.unmounted,
|
|
11224
|
+
}, [state.unmounted, supportsCSS]), useIsomorphicLayoutEffect(function() {
|
|
11182
11225
|
if (!disabled && !(!pseudoGroups && !mediaGroups) && allGroupContexts) return subscribeToContextGroup({
|
|
11183
11226
|
groupContext: allGroupContexts,
|
|
11184
11227
|
setStateShallow,
|
|
@@ -11266,19 +11309,19 @@ function createComponent(staticConfig) {
|
|
|
11266
11309
|
!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
11267
11310
|
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = true);
|
|
11268
11311
|
var renderReset = needsReset || hasEverReset;
|
|
11269
|
-
if (renderReset && ResetPresence && (content = /* @__PURE__ */
|
|
11312
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ jsxRuntime.jsx(ResetPresence, {
|
|
11270
11313
|
disabled: !needsReset,
|
|
11271
11314
|
children: content
|
|
11272
|
-
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */
|
|
11315
|
+
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, componentContext), {
|
|
11273
11316
|
setParentFocusState: setStateShallow,
|
|
11274
11317
|
children: content
|
|
11275
|
-
}))), "group" in props && (content = /* @__PURE__ */
|
|
11318
|
+
}))), "group" in props && (content = /* @__PURE__ */ jsxRuntime.jsx(GroupContext.Provider, {
|
|
11276
11319
|
value: allGroupContexts,
|
|
11277
11320
|
children: content
|
|
11278
11321
|
})), content = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef), overriddenContextProps && contextForOverride) {
|
|
11279
11322
|
var Provider = contextForOverride.Provider;
|
|
11280
11323
|
for (var key1 in styledContextValue) key1 in overriddenContextProps || (overriddenContextProps[key1] = styledContextValue[key1]);
|
|
11281
|
-
|
|
11324
|
+
content = /* @__PURE__ */ jsxRuntime.jsx(Provider, __spreadProps(__spreadValues({
|
|
11282
11325
|
__disableMergeDefaultValues: true
|
|
11283
11326
|
}, overriddenContextProps), {
|
|
11284
11327
|
children: content
|
|
@@ -11936,9 +11979,9 @@ function useThemeName() {
|
|
|
11936
11979
|
}
|
|
11937
11980
|
var Configuration = function(props) {
|
|
11938
11981
|
var current = React.useContext(ComponentContext), _props_disableSSR;
|
|
11939
|
-
return /* @__PURE__ */
|
|
11982
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
11940
11983
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
11941
|
-
children: /* @__PURE__ */
|
|
11984
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadValues(__spreadValues({}, current), props))
|
|
11942
11985
|
});
|
|
11943
11986
|
};
|
|
11944
11987
|
function FontLanguage(param) {
|
|
@@ -11949,7 +11992,7 @@ function FontLanguage(param) {
|
|
|
11949
11992
|
]), parentProps = React.useContext(ComponentContext), language = React.useMemo(function() {
|
|
11950
11993
|
return props;
|
|
11951
11994
|
}, [JSON.stringify(props)]);
|
|
11952
|
-
return /* @__PURE__ */
|
|
11995
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComponentContext.Provider, __spreadProps(__spreadValues({}, parentProps), {
|
|
11953
11996
|
language,
|
|
11954
11997
|
children
|
|
11955
11998
|
}));
|
|
@@ -11957,7 +12000,7 @@ function FontLanguage(param) {
|
|
|
11957
12000
|
var ThemeProvider = function(props) {
|
|
11958
12001
|
var addThemeClassName = getSetting("addThemeClassName");
|
|
11959
12002
|
var forceClassName = addThemeClassName === void 0;
|
|
11960
|
-
return /* @__PURE__ */
|
|
12003
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Theme, {
|
|
11961
12004
|
className: props.className,
|
|
11962
12005
|
name: props.defaultTheme,
|
|
11963
12006
|
forceClassName,
|
|
@@ -11981,11 +12024,11 @@ function TamaguiProvider$1(param) {
|
|
|
11981
12024
|
}, []);
|
|
11982
12025
|
var memoizedInsets = React.useMemo(function() {
|
|
11983
12026
|
return insets;
|
|
11984
|
-
}, [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__ */
|
|
11985
|
-
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, {
|
|
11986
12029
|
animationDriver: config == null ? void 0 : config.animations,
|
|
11987
12030
|
insets: memoizedInsets,
|
|
11988
|
-
children: /* @__PURE__ */
|
|
12031
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, {
|
|
11989
12032
|
defaultTheme,
|
|
11990
12033
|
reset,
|
|
11991
12034
|
className,
|
|
@@ -11993,10 +12036,10 @@ function TamaguiProvider$1(param) {
|
|
|
11993
12036
|
})
|
|
11994
12037
|
})
|
|
11995
12038
|
});
|
|
11996
|
-
return getSetting("disableSSR") && (contents = /* @__PURE__ */
|
|
12039
|
+
return getSetting("disableSSR") && (contents = /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, {
|
|
11997
12040
|
enabled: true,
|
|
11998
12041
|
children: contents
|
|
11999
|
-
})), /* @__PURE__ */
|
|
12042
|
+
})), /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
12000
12043
|
children: [contents, false]
|
|
12001
12044
|
});
|
|
12002
12045
|
}
|
|
@@ -12489,7 +12532,7 @@ const TamaguiProvider = (props) => {
|
|
|
12489
12532
|
useIsomorphicLayoutEffect(() => {
|
|
12490
12533
|
enable();
|
|
12491
12534
|
}, []);
|
|
12492
|
-
return /* @__PURE__ */
|
|
12535
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TamaguiProvider$1, __spreadValues({}, props));
|
|
12493
12536
|
};
|
|
12494
12537
|
const createTamagui = (conf2) => {
|
|
12495
12538
|
{
|