@tamagui/core 3.0.7 → 3.0.9
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/cjs/createOptimizedView.native.cjs +2 -2
- package/dist/cjs/createOptimizedView.native.js +2 -2
- package/dist/cjs/createOptimizedView.native.js.map +1 -1
- package/dist/cjs/inject-styles.native.cjs +1 -1
- package/dist/cjs/inject-styles.native.js +1 -1
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/runtime.native.cjs +4 -5
- package/dist/cjs/runtime.native.js +4 -5
- package/dist/cjs/runtime.native.js.map +1 -1
- package/dist/esm/createOptimizedView.native.js +2 -2
- package/dist/esm/createOptimizedView.native.js.map +1 -1
- package/dist/esm/inject-styles.native.js +1 -1
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/esm/runtime.native.js +4 -5
- package/dist/esm/runtime.native.js.map +1 -1
- package/dist/native.cjs +313 -334
- package/dist/test.native.cjs +292 -316
- package/package.json +13 -13
package/dist/native.cjs
CHANGED
|
@@ -113,7 +113,7 @@ function isPlainObject(value) {
|
|
|
113
113
|
}
|
|
114
114
|
var isObj;
|
|
115
115
|
var init_isObj_native = __esmMin((() => {
|
|
116
|
-
isObj = function(x) {
|
|
116
|
+
isObj = function isObj2(x) {
|
|
117
117
|
return x && !Array.isArray(x) && typeof x === "object";
|
|
118
118
|
};
|
|
119
119
|
}));
|
|
@@ -121,20 +121,20 @@ var init_isObj_native = __esmMin((() => {
|
|
|
121
121
|
//#region ../web/dist/esm/helpers/mergeProps.native.js
|
|
122
122
|
var mergeLayer, mergeProps, mergeComponentProps;
|
|
123
123
|
var init_mergeProps_native = __esmMin((() => {
|
|
124
|
-
mergeLayer = function(out, layer) {
|
|
124
|
+
mergeLayer = function mergeLayer2(out, layer) {
|
|
125
125
|
for (var key in layer) {
|
|
126
126
|
var value = layer[key];
|
|
127
127
|
if (value === void 0 && key in out) continue;
|
|
128
128
|
out[key] = value;
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
mergeProps = function(defaultProps, props) {
|
|
131
|
+
mergeProps = function mergeProps2(defaultProps, props) {
|
|
132
132
|
var out = {};
|
|
133
133
|
mergeLayer(out, defaultProps);
|
|
134
134
|
mergeLayer(out, props);
|
|
135
135
|
return out;
|
|
136
136
|
};
|
|
137
|
-
mergeComponentProps = function(defaultProps, contextProps, props) {
|
|
137
|
+
mergeComponentProps = function mergeComponentProps2(defaultProps, contextProps, props) {
|
|
138
138
|
var overriddenContext = null;
|
|
139
139
|
if (!defaultProps && !contextProps) return [props, overriddenContext];
|
|
140
140
|
var out = {};
|
|
@@ -190,7 +190,7 @@ var init_createStyledContext_native = __esmMin((() => {
|
|
|
190
190
|
"scope",
|
|
191
191
|
"__disableMergeDefaultValues"
|
|
192
192
|
];
|
|
193
|
-
createStyledContext = function(defaultValues) {
|
|
193
|
+
createStyledContext = function createStyledContext2(defaultValues) {
|
|
194
194
|
"use no memo";
|
|
195
195
|
var namespaceOrOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
196
196
|
var namespace = typeof namespaceOrOptions === "string" ? namespaceOrOptions : namespaceOrOptions.namespace || "";
|
|
@@ -209,10 +209,10 @@ var init_createStyledContext_native = __esmMin((() => {
|
|
|
209
209
|
}
|
|
210
210
|
return ScopedContext;
|
|
211
211
|
}
|
|
212
|
-
var getNamespacedScope = function(scope) {
|
|
212
|
+
var getNamespacedScope = function getNamespacedScope2(scope) {
|
|
213
213
|
return namespace ? `${namespace}--${scope}` : scope;
|
|
214
214
|
};
|
|
215
|
-
var Provider = function(param) {
|
|
215
|
+
var Provider = function Provider2(param) {
|
|
216
216
|
var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$26);
|
|
217
217
|
var scope = getNamespacedScope(scopeIn);
|
|
218
218
|
var next = react.default.useMemo(function() {
|
|
@@ -228,7 +228,7 @@ var init_createStyledContext_native = __esmMin((() => {
|
|
|
228
228
|
})
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
|
-
var useStyledContext = function() {
|
|
231
|
+
var useStyledContext = function useStyledContext2() {
|
|
232
232
|
var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
233
233
|
var lastScopeInNamespace = react.default.useContext(LastScopeInNamespace);
|
|
234
234
|
var scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn;
|
|
@@ -271,7 +271,7 @@ var init_ComponentContext_native = __esmMin((() => {
|
|
|
271
271
|
"setParentFocusState",
|
|
272
272
|
"insets"
|
|
273
273
|
] });
|
|
274
|
-
useConfiguration = function() {
|
|
274
|
+
useConfiguration = function useConfiguration2() {
|
|
275
275
|
return (0, react.useContext)(ComponentContext);
|
|
276
276
|
};
|
|
277
277
|
}));
|
|
@@ -513,13 +513,13 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
513
513
|
Nodes = /* @__PURE__ */ new Set();
|
|
514
514
|
NodeRectCache = /* @__PURE__ */ new WeakMap();
|
|
515
515
|
PrevHostNode = /* @__PURE__ */ new WeakMap();
|
|
516
|
-
usePretransformDimensions = function() {
|
|
516
|
+
usePretransformDimensions = function usePretransformDimensions2() {
|
|
517
517
|
return globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM === true || process.env.TAMAGUI_ONLAYOUT_PRETRANSFORM === "1";
|
|
518
518
|
};
|
|
519
519
|
DisableLayoutContextValues = {};
|
|
520
520
|
DisableLayoutContextKey = /* @__PURE__ */ (0, react.createContext)("");
|
|
521
521
|
ENABLE = false;
|
|
522
|
-
LayoutMeasurementController = function(param) {
|
|
522
|
+
LayoutMeasurementController = function LayoutMeasurementController2(param) {
|
|
523
523
|
var { disable, children } = param;
|
|
524
524
|
var id = (0, react.useId)();
|
|
525
525
|
useIsomorphicLayoutEffect(function() {
|
|
@@ -668,14 +668,14 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
668
668
|
return _layoutOnAnimationFrame.apply(this, arguments);
|
|
669
669
|
}
|
|
670
670
|
resumeLayoutLoop = scheduleLayoutFrame2;
|
|
671
|
-
measureOnNextFrame = function() {
|
|
671
|
+
measureOnNextFrame = function measureOnNextFrame2() {
|
|
672
672
|
frameCount = 0;
|
|
673
673
|
scheduleLayoutFrame2();
|
|
674
674
|
};
|
|
675
675
|
document.addEventListener("visibilitychange", scheduleLayoutFrame2);
|
|
676
676
|
scheduleLayoutFrame2();
|
|
677
677
|
}
|
|
678
|
-
getElementLayoutEvent = function(nodeRect, parentRect, node) {
|
|
678
|
+
getElementLayoutEvent = function getElementLayoutEvent2(nodeRect, parentRect, node) {
|
|
679
679
|
return {
|
|
680
680
|
nativeEvent: {
|
|
681
681
|
layout: getRelativeDimensions(nodeRect, parentRect, node),
|
|
@@ -684,13 +684,13 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
684
684
|
timeStamp: Date.now()
|
|
685
685
|
};
|
|
686
686
|
};
|
|
687
|
-
getPreTransformDimensions = function(node) {
|
|
687
|
+
getPreTransformDimensions = function getPreTransformDimensions2(node) {
|
|
688
688
|
return {
|
|
689
689
|
width: node.offsetWidth,
|
|
690
690
|
height: node.offsetHeight
|
|
691
691
|
};
|
|
692
692
|
};
|
|
693
|
-
getRelativeDimensions = function(a, b, aNode) {
|
|
693
|
+
getRelativeDimensions = function getRelativeDimensions2(a, b, aNode) {
|
|
694
694
|
var left = a.left - b.left;
|
|
695
695
|
var top = a.top - b.top;
|
|
696
696
|
var { width, height } = usePretransformDimensions() && aNode ? getPreTransformDimensions(aNode) : {
|
|
@@ -706,7 +706,7 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
706
706
|
pageY: a.top
|
|
707
707
|
};
|
|
708
708
|
};
|
|
709
|
-
getBoundingClientRectAsync = function(node) {
|
|
709
|
+
getBoundingClientRectAsync = function getBoundingClientRectAsync2(node) {
|
|
710
710
|
return new Promise(function(res) {
|
|
711
711
|
if (!node || node.nodeType !== 1) return res(false);
|
|
712
712
|
var io = new IntersectionObserver(function(entries) {
|
|
@@ -717,7 +717,7 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
717
717
|
});
|
|
718
718
|
};
|
|
719
719
|
measureNode = /* @__PURE__ */ function() {
|
|
720
|
-
var
|
|
720
|
+
var _measureNode = _asyncToGenerator(function* (node, relativeTo) {
|
|
721
721
|
var relativeNode = relativeTo || (node === null || node === void 0 ? void 0 : node.parentElement);
|
|
722
722
|
if (relativeNode instanceof HTMLElement) {
|
|
723
723
|
var [nodeDim, relativeNodeDim] = yield Promise.all([getBoundingClientRectAsync(node), getBoundingClientRectAsync(relativeNode)]);
|
|
@@ -725,51 +725,55 @@ var init_index_native$10 = __esmMin((() => {
|
|
|
725
725
|
}
|
|
726
726
|
return null;
|
|
727
727
|
});
|
|
728
|
-
|
|
729
|
-
return
|
|
730
|
-
}
|
|
728
|
+
function measureNode2(_x, _x2) {
|
|
729
|
+
return _measureNode.apply(this, arguments);
|
|
730
|
+
}
|
|
731
|
+
return measureNode2;
|
|
731
732
|
}();
|
|
732
733
|
measure = /* @__PURE__ */ function() {
|
|
733
|
-
var
|
|
734
|
+
var _measure = _asyncToGenerator(function* (node, callback) {
|
|
734
735
|
var out = yield measureNode(node, node.parentElement);
|
|
735
736
|
if (out) callback === null || callback === void 0 || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY);
|
|
736
737
|
return out;
|
|
737
738
|
});
|
|
738
|
-
|
|
739
|
-
return
|
|
740
|
-
}
|
|
739
|
+
function measure2(_x3, _x4) {
|
|
740
|
+
return _measure.apply(this, arguments);
|
|
741
|
+
}
|
|
742
|
+
return measure2;
|
|
741
743
|
}();
|
|
742
|
-
createMeasure = function(node) {
|
|
744
|
+
createMeasure = function createMeasure2(node) {
|
|
743
745
|
return function(callback) {
|
|
744
746
|
return measure(node, callback);
|
|
745
747
|
};
|
|
746
748
|
};
|
|
747
749
|
measureInWindow = /* @__PURE__ */ function() {
|
|
748
|
-
var
|
|
750
|
+
var _measureInWindow = _asyncToGenerator(function* (node, callback) {
|
|
749
751
|
var out = yield measureNode(node, null);
|
|
750
752
|
if (out) callback === null || callback === void 0 || callback(out.pageX, out.pageY, out.width, out.height);
|
|
751
753
|
return out;
|
|
752
754
|
});
|
|
753
|
-
|
|
754
|
-
return
|
|
755
|
-
}
|
|
755
|
+
function measureInWindow2(_x5, _x6) {
|
|
756
|
+
return _measureInWindow.apply(this, arguments);
|
|
757
|
+
}
|
|
758
|
+
return measureInWindow2;
|
|
756
759
|
}();
|
|
757
|
-
createMeasureInWindow = function(node) {
|
|
760
|
+
createMeasureInWindow = function createMeasureInWindow2(node) {
|
|
758
761
|
return function(callback) {
|
|
759
762
|
return measureInWindow(node, callback);
|
|
760
763
|
};
|
|
761
764
|
};
|
|
762
765
|
measureLayout$1 = /* @__PURE__ */ function() {
|
|
763
|
-
var
|
|
766
|
+
var _measureLayout = _asyncToGenerator(function* (node, relativeNode, callback) {
|
|
764
767
|
var out = yield measureNode(node, relativeNode);
|
|
765
768
|
if (out) callback === null || callback === void 0 || callback(out.x, out.y, out.width, out.height, out.pageX, out.pageY);
|
|
766
769
|
return out;
|
|
767
770
|
});
|
|
768
|
-
|
|
769
|
-
return
|
|
770
|
-
}
|
|
771
|
+
function measureLayout2(_x7, _x8, _x9) {
|
|
772
|
+
return _measureLayout.apply(this, arguments);
|
|
773
|
+
}
|
|
774
|
+
return measureLayout2;
|
|
771
775
|
}();
|
|
772
|
-
createMeasureLayout = function(node) {
|
|
776
|
+
createMeasureLayout = function createMeasureLayout2(node) {
|
|
773
777
|
return function(relativeTo, callback) {
|
|
774
778
|
return measureLayout$1(node, relativeTo, callback);
|
|
775
779
|
};
|
|
@@ -2709,19 +2713,19 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2709
2713
|
LONG_PRESS_DETECTED: NOT_RESPONDER
|
|
2710
2714
|
}
|
|
2711
2715
|
});
|
|
2712
|
-
isActiveSignal = function(signal) {
|
|
2716
|
+
isActiveSignal = function isActiveSignal2(signal) {
|
|
2713
2717
|
return signal === RESPONDER_ACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_LONG_PRESS_START;
|
|
2714
2718
|
};
|
|
2715
|
-
isButtonRole = function(element) {
|
|
2719
|
+
isButtonRole = function isButtonRole2(element) {
|
|
2716
2720
|
return element.getAttribute("role") === "button";
|
|
2717
2721
|
};
|
|
2718
|
-
isPressStartSignal = function(signal) {
|
|
2722
|
+
isPressStartSignal = function isPressStartSignal2(signal) {
|
|
2719
2723
|
return signal === RESPONDER_INACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_PRESS_START || signal === RESPONDER_ACTIVE_LONG_PRESS_START;
|
|
2720
2724
|
};
|
|
2721
|
-
isTerminalSignal = function(signal) {
|
|
2725
|
+
isTerminalSignal = function isTerminalSignal2(signal) {
|
|
2722
2726
|
return signal === RESPONDER_TERMINATED || signal === RESPONDER_RELEASE;
|
|
2723
2727
|
};
|
|
2724
|
-
isValidKeyPress = function(event) {
|
|
2728
|
+
isValidKeyPress = function isValidKeyPress2(event) {
|
|
2725
2729
|
var key = event.key;
|
|
2726
2730
|
var role = event.target.getAttribute("role");
|
|
2727
2731
|
return key === "Enter" || (key === " " || key === "Spacebar") && role === "button";
|
|
@@ -2776,7 +2780,7 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2776
2780
|
key: "_createEventHandlers",
|
|
2777
2781
|
value: function _createEventHandlers() {
|
|
2778
2782
|
var _this = this;
|
|
2779
|
-
var start = function(event, shouldDelay) {
|
|
2783
|
+
var start = function start2(event, shouldDelay) {
|
|
2780
2784
|
event.persist();
|
|
2781
2785
|
_this._cancelPressOutDelayTimeout();
|
|
2782
2786
|
_this._longPressDispatched = false;
|
|
@@ -2794,10 +2798,10 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2794
2798
|
_this._handleLongPress(event);
|
|
2795
2799
|
}, delayLongPress + delayPressStart);
|
|
2796
2800
|
};
|
|
2797
|
-
var end = function(event) {
|
|
2801
|
+
var end = function end2(event) {
|
|
2798
2802
|
_this._receiveSignal(RESPONDER_RELEASE, event);
|
|
2799
2803
|
};
|
|
2800
|
-
var keyupHandler = function(event) {
|
|
2804
|
+
var keyupHandler = function keyupHandler1(event) {
|
|
2801
2805
|
var onPress = _this._config.onPress;
|
|
2802
2806
|
var target = event.target;
|
|
2803
2807
|
if (_this._touchState !== NOT_RESPONDER && isValidKeyPress(event)) {
|
|
@@ -2809,13 +2813,13 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2809
2813
|
}
|
|
2810
2814
|
};
|
|
2811
2815
|
return {
|
|
2812
|
-
onStartShouldSetResponder: function(event) {
|
|
2816
|
+
onStartShouldSetResponder: function onStartShouldSetResponder(event) {
|
|
2813
2817
|
var disabled = _this._config.disabled;
|
|
2814
2818
|
if (disabled && isButtonRole(event.currentTarget)) event.stopPropagation();
|
|
2815
2819
|
if (disabled == null) return true;
|
|
2816
2820
|
return !disabled;
|
|
2817
2821
|
},
|
|
2818
|
-
onKeyDown: function(event) {
|
|
2822
|
+
onKeyDown: function onKeyDown(event) {
|
|
2819
2823
|
var disabled = _this._config.disabled;
|
|
2820
2824
|
var key = event.key;
|
|
2821
2825
|
var target = event.target;
|
|
@@ -2829,10 +2833,10 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2829
2833
|
event.stopPropagation();
|
|
2830
2834
|
}
|
|
2831
2835
|
},
|
|
2832
|
-
onResponderGrant: function(event) {
|
|
2836
|
+
onResponderGrant: function onResponderGrant(event) {
|
|
2833
2837
|
return start(event);
|
|
2834
2838
|
},
|
|
2835
|
-
onResponderMove: function(event) {
|
|
2839
|
+
onResponderMove: function onResponderMove(event) {
|
|
2836
2840
|
if (_this._config.onPressMove != null) _this._config.onPressMove(event);
|
|
2837
2841
|
var touch = getTouchFromResponderEvent(event);
|
|
2838
2842
|
if (_this._touchActivatePosition != null) {
|
|
@@ -2841,14 +2845,14 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2841
2845
|
if (Math.hypot(deltaX, deltaY) > 10) _this._cancelLongPressDelayTimeout();
|
|
2842
2846
|
}
|
|
2843
2847
|
},
|
|
2844
|
-
onResponderRelease: function(event) {
|
|
2848
|
+
onResponderRelease: function onResponderRelease(event) {
|
|
2845
2849
|
return end(event);
|
|
2846
2850
|
},
|
|
2847
|
-
onResponderTerminate: function(event) {
|
|
2851
|
+
onResponderTerminate: function onResponderTerminate(event) {
|
|
2848
2852
|
if (event.nativeEvent.type === "selectionchange") _this._selectionTerminated = true;
|
|
2849
2853
|
_this._receiveSignal(RESPONDER_TERMINATED, event);
|
|
2850
2854
|
},
|
|
2851
|
-
onResponderTerminationRequest: function(event) {
|
|
2855
|
+
onResponderTerminationRequest: function onResponderTerminationRequest(event) {
|
|
2852
2856
|
var _this$_config = _this._config;
|
|
2853
2857
|
var cancelable = _this$_config.cancelable;
|
|
2854
2858
|
var disabled = _this$_config.disabled;
|
|
@@ -2857,7 +2861,7 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2857
2861
|
if (cancelable == null) return true;
|
|
2858
2862
|
return cancelable;
|
|
2859
2863
|
},
|
|
2860
|
-
onClick: function(event) {
|
|
2864
|
+
onClick: function onClick(event) {
|
|
2861
2865
|
var _this$_config2 = _this._config;
|
|
2862
2866
|
var disabled = _this$_config2.disabled;
|
|
2863
2867
|
var onPress = _this$_config2.onPress;
|
|
@@ -2867,7 +2871,7 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
2867
2871
|
else if (onPress != null && event.altKey === false) onPress(event);
|
|
2868
2872
|
} else if (isButtonRole(event.currentTarget)) event.stopPropagation();
|
|
2869
2873
|
},
|
|
2870
|
-
onContextMenu: function(event) {
|
|
2874
|
+
onContextMenu: function onContextMenu(event) {
|
|
2871
2875
|
var _this$_config3 = _this._config;
|
|
2872
2876
|
var disabled = _this$_config3.disabled;
|
|
2873
2877
|
var onLongPress = _this$_config3.onLongPress;
|
|
@@ -3132,7 +3136,7 @@ var keyName, canUseDOM, getBoundingClientRect;
|
|
|
3132
3136
|
var init_utils_native = __esmMin((() => {
|
|
3133
3137
|
keyName = "__reactResponderId";
|
|
3134
3138
|
canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
3135
|
-
getBoundingClientRect = function(node) {
|
|
3139
|
+
getBoundingClientRect = function getBoundingClientRect2(node) {
|
|
3136
3140
|
if (!node) return;
|
|
3137
3141
|
if (node.nodeType !== 1) return;
|
|
3138
3142
|
if (node.getBoundingClientRect) return node.getBoundingClientRect();
|
|
@@ -3256,7 +3260,7 @@ function createResponderEvent(domEvent, responderTouchHistoryStore) {
|
|
|
3256
3260
|
var emptyFunction$2, emptyObject$6, emptyArray;
|
|
3257
3261
|
var init_createResponderEvent_native = __esmMin((() => {
|
|
3258
3262
|
init_utils_native();
|
|
3259
|
-
emptyFunction$2 = function() {};
|
|
3263
|
+
emptyFunction$2 = function emptyFunction2() {};
|
|
3260
3264
|
emptyObject$6 = {};
|
|
3261
3265
|
emptyArray = [];
|
|
3262
3266
|
}));
|
|
@@ -3566,7 +3570,7 @@ function findWantsResponder(eventPaths, domEvent, responderEvent) {
|
|
|
3566
3570
|
var shouldSetCallbackCaptureName = shouldSetCallbacks[0];
|
|
3567
3571
|
var shouldSetCallbackBubbleName = shouldSetCallbacks[1];
|
|
3568
3572
|
var { bubbles } = shouldSetCallbacks[2];
|
|
3569
|
-
var check = function(id3, node3, callbackName) {
|
|
3573
|
+
var check = function check2(id3, node3, callbackName) {
|
|
3570
3574
|
var shouldSetCallback = getResponderConfig(id3)[callbackName];
|
|
3571
3575
|
if (shouldSetCallback != null) {
|
|
3572
3576
|
responderEvent.currentTarget = node3;
|
|
@@ -11479,7 +11483,7 @@ var cache$2, cacheSize, simpleHash, hashChar;
|
|
|
11479
11483
|
var init_index_native$5 = __esmMin((() => {
|
|
11480
11484
|
cache$2 = /* @__PURE__ */ new Map();
|
|
11481
11485
|
cacheSize = 0;
|
|
11482
|
-
simpleHash = function(strIn) {
|
|
11486
|
+
simpleHash = function simpleHash2(strIn) {
|
|
11483
11487
|
var hashMin = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;
|
|
11484
11488
|
var cacheKey = `${hashMin}:${strIn}`;
|
|
11485
11489
|
if (cache$2.has(cacheKey)) return cache$2.get(cacheKey);
|
|
@@ -11513,7 +11517,7 @@ var init_index_native$5 = __esmMin((() => {
|
|
|
11513
11517
|
cacheSize++;
|
|
11514
11518
|
return res;
|
|
11515
11519
|
};
|
|
11516
|
-
hashChar = function(hash, c) {
|
|
11520
|
+
hashChar = function hashChar2(hash, c) {
|
|
11517
11521
|
return Math.imul(31, hash) + c.charCodeAt(0) | 0;
|
|
11518
11522
|
};
|
|
11519
11523
|
}));
|
|
@@ -12159,7 +12163,7 @@ var init_cssStyleProps_native = __esmMin((() => {
|
|
|
12159
12163
|
//#region ../helpers/dist/esm/toStylePropsObject.native.js
|
|
12160
12164
|
var toStylePropsObject;
|
|
12161
12165
|
var init_toStylePropsObject_native = __esmMin((() => {
|
|
12162
|
-
toStylePropsObject = function() {
|
|
12166
|
+
toStylePropsObject = function toStylePropsObject2() {
|
|
12163
12167
|
for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) sources[_key] = arguments[_key];
|
|
12164
12168
|
var out = {};
|
|
12165
12169
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
@@ -12241,7 +12245,7 @@ var Decorated, withStaticProperties;
|
|
|
12241
12245
|
var init_withStaticProperties_native = __esmMin((() => {
|
|
12242
12246
|
init_objectSpread2();
|
|
12243
12247
|
Decorated = /* @__PURE__ */ Symbol();
|
|
12244
|
-
withStaticProperties = function(component, staticProps) {
|
|
12248
|
+
withStaticProperties = function withStaticProperties2(component, staticProps) {
|
|
12245
12249
|
var out = (function() {
|
|
12246
12250
|
if (component[Decorated]) return typeof component === "function" ? Object.assign(component.bind(null), component) : _objectSpread2({}, component);
|
|
12247
12251
|
return component;
|
|
@@ -12363,13 +12367,13 @@ function parseFlatValueProduction(source) {
|
|
|
12363
12367
|
var length = source.length;
|
|
12364
12368
|
var segments = [];
|
|
12365
12369
|
var sawChain = false, chainStart = -1, chainEnd = -1, segmentStart = 0, wordStart = -1, lastColon = -1, quote = 0, comment = false, depth = 0, valid = true, clauseChainValid = true, currentChainValid = true, chainNonPlatformModifiers = null;
|
|
12366
|
-
var close = function(end) {
|
|
12370
|
+
var close = function close2(end) {
|
|
12367
12371
|
var start = segmentStart;
|
|
12368
12372
|
while (start < end && source.charCodeAt(start) <= 32) start++;
|
|
12369
12373
|
while (end > start && source.charCodeAt(end - 1) <= 32) end--;
|
|
12370
12374
|
segments.push(start, end, chainStart, chainEnd, (!sawChain ? 1 : 0) | (clauseChainValid ? 6 : 0));
|
|
12371
12375
|
};
|
|
12372
|
-
var flush = function() {
|
|
12376
|
+
var flush = function flush2() {
|
|
12373
12377
|
if (wordStart !== -1 && lastColon !== -1) {
|
|
12374
12378
|
chainStart = wordStart;
|
|
12375
12379
|
chainEnd = lastColon;
|
|
@@ -12517,8 +12521,9 @@ function isRootThemeName(name) {
|
|
|
12517
12521
|
return name.length > 0 && !name.includes("_");
|
|
12518
12522
|
}
|
|
12519
12523
|
function compileModifierVocabulary(view, onRefusal, onRegistered) {
|
|
12524
|
+
var _view_platformNames;
|
|
12520
12525
|
var names = /* @__PURE__ */ Object.create(null);
|
|
12521
|
-
var register = function(name2, code) {
|
|
12526
|
+
var register = function register2(name2, code) {
|
|
12522
12527
|
var kind = code & 7;
|
|
12523
12528
|
if (name2.charCodeAt(0) === 64) {
|
|
12524
12529
|
onRefusal === null || onRefusal === void 0 || onRefusal(1, name2, kind, 0);
|
|
@@ -12555,7 +12560,6 @@ function compileModifierVocabulary(view, onRefusal, onRegistered) {
|
|
|
12555
12560
|
forEachModifierName(view.mediaNames, function(name2, rank2) {
|
|
12556
12561
|
return register(name2, 2 | rank2 << 3);
|
|
12557
12562
|
});
|
|
12558
|
-
var _view_platformNames;
|
|
12559
12563
|
forEachModifierName((_view_platformNames = view.platformNames) !== null && _view_platformNames !== void 0 ? _view_platformNames : grammarPlatformNames, function(name2) {
|
|
12560
12564
|
return register(name2, 3 | grammarPlatformRank(name2) << 3);
|
|
12561
12565
|
});
|
|
@@ -12860,9 +12864,9 @@ function canChangeGestureHandlerEnabled(nextEnabled, source) {
|
|
|
12860
12864
|
return false;
|
|
12861
12865
|
}
|
|
12862
12866
|
function getEventPointerId(e) {
|
|
12867
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
12863
12868
|
var _e_pointer, _e_event, _e_event_pointer, _e_event1, _e_nativeEvent, _e_nativeEvent1, _e_event_nativeEvent, _e_event2, _e_event_nativeEvent1, _e_event3;
|
|
12864
|
-
var
|
|
12865
|
-
var pointerId = (_ref6 = (_ref5 = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_ref = (_e_pointerId = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref !== void 0 ? _ref : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref6 !== void 0 ? _ref6 : null;
|
|
12869
|
+
var pointerId = (_ref = (_ref1 = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _ref7 !== void 0 ? _ref7 : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref6 !== void 0 ? _ref6 : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref !== void 0 ? _ref : null;
|
|
12866
12870
|
return pointerId == null || Number.isNaN(pointerId) ? null : Number(pointerId);
|
|
12867
12871
|
}
|
|
12868
12872
|
function resetPressOwner() {
|
|
@@ -12896,9 +12900,9 @@ function getGestureHandler() {
|
|
|
12896
12900
|
state$1.get().enabled = false;
|
|
12897
12901
|
},
|
|
12898
12902
|
createPressGesture(config) {
|
|
12903
|
+
var _config_delayLongPress;
|
|
12899
12904
|
var { Gesture } = state$1.get();
|
|
12900
12905
|
if (!Gesture) return null;
|
|
12901
|
-
var _config_delayLongPress;
|
|
12902
12906
|
var longPressDuration = (_config_delayLongPress = config.delayLongPress) !== null && _config_delayLongPress !== void 0 ? _config_delayLongPress : 500;
|
|
12903
12907
|
var myToken = {};
|
|
12904
12908
|
var myDebugId = ++pressGestureDebugId;
|
|
@@ -12911,7 +12915,7 @@ function getGestureHandler() {
|
|
|
12911
12915
|
cancelledByMove: false
|
|
12912
12916
|
};
|
|
12913
12917
|
var GRACE_PERIOD_MS = process.env.TAMAGUI_RNGH_PRESS_DELAY ? +process.env.TAMAGUI_RNGH_PRESS_DELAY : 24;
|
|
12914
|
-
var tryClaimOwnership = function(e) {
|
|
12918
|
+
var tryClaimOwnership = function tryClaimOwnership2(e) {
|
|
12915
12919
|
var now = Date.now();
|
|
12916
12920
|
resetStaleOwner(now, config.debugName);
|
|
12917
12921
|
var currentPointerId = getEventPointerId(e);
|
|
@@ -12925,24 +12929,24 @@ function getGestureHandler() {
|
|
|
12925
12929
|
}
|
|
12926
12930
|
return pressState.owner === myToken;
|
|
12927
12931
|
};
|
|
12928
|
-
var isOwner = function() {
|
|
12932
|
+
var isOwner = function isOwner2() {
|
|
12929
12933
|
return pressState.owner === myToken;
|
|
12930
12934
|
};
|
|
12931
|
-
var releaseOwnership = function() {
|
|
12935
|
+
var releaseOwnership = function releaseOwnership2() {
|
|
12932
12936
|
if (flags.pressInTimer) {
|
|
12933
12937
|
clearTimeout(flags.pressInTimer);
|
|
12934
12938
|
flags.pressInTimer = null;
|
|
12935
12939
|
}
|
|
12936
12940
|
if (pressState.owner === myToken) resetPressOwner();
|
|
12937
12941
|
};
|
|
12938
|
-
var firePressIn = function(e) {
|
|
12942
|
+
var firePressIn = function firePressIn2(e) {
|
|
12939
12943
|
if (!flags.didPressIn && isOwner()) {
|
|
12940
12944
|
var _config_onPressIn;
|
|
12941
12945
|
flags.didPressIn = true;
|
|
12942
12946
|
(_config_onPressIn = config.onPressIn) === null || _config_onPressIn === void 0 || _config_onPressIn.call(config, e);
|
|
12943
12947
|
}
|
|
12944
12948
|
};
|
|
12945
|
-
var schedulePressIn = function(e) {
|
|
12949
|
+
var schedulePressIn = function schedulePressIn2(e) {
|
|
12946
12950
|
if (flags.pressInTimer) clearTimeout(flags.pressInTimer);
|
|
12947
12951
|
flags.pressInTimer = setTimeout(function() {
|
|
12948
12952
|
flags.pressInTimer = null;
|
|
@@ -12958,10 +12962,10 @@ function getGestureHandler() {
|
|
|
12958
12962
|
tryClaimOwnership(e);
|
|
12959
12963
|
schedulePressIn(e);
|
|
12960
12964
|
}).onTouchesMove(function(e) {
|
|
12965
|
+
var _ref;
|
|
12961
12966
|
var _e_changedTouches, _e_allTouches;
|
|
12962
12967
|
if (flags.cancelledByMove || flags.moveStartX === null) return;
|
|
12963
|
-
var
|
|
12964
|
-
var touch = (_e_changedTouches_ = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _e_changedTouches_ !== void 0 ? _e_changedTouches_ : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
|
|
12968
|
+
var touch = (_ref = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _ref !== void 0 ? _ref : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
|
|
12965
12969
|
if (!touch) return;
|
|
12966
12970
|
var dx = touch.absoluteX - flags.moveStartX;
|
|
12967
12971
|
var dy = touch.absoluteY - flags.moveStartY;
|
|
@@ -13009,7 +13013,7 @@ function getGestureHandler() {
|
|
|
13009
13013
|
}
|
|
13010
13014
|
};
|
|
13011
13015
|
}
|
|
13012
|
-
var _globalThis, _PRESS_STATE_KEY, state$1, GESTURE_ENABLED_FREEZE_KEY$1, pressGestureDebugId, PRESS_MOVE_CANCEL_DISTANCE, PRESS_MOVE_CANCEL_DISTANCE_SQ, PRESS_STATE_KEY,
|
|
13016
|
+
var _globalThis, _PRESS_STATE_KEY, _$1, state$1, GESTURE_ENABLED_FREEZE_KEY$1, pressGestureDebugId, PRESS_MOVE_CANCEL_DISTANCE, PRESS_MOVE_CANCEL_DISTANCE_SQ, PRESS_STATE_KEY, pressState;
|
|
13013
13017
|
var init_gestureState_native = __esmMin((() => {
|
|
13014
13018
|
init_globalState_native();
|
|
13015
13019
|
state$1 = createGlobalState(`gesture`, {
|
|
@@ -13105,11 +13109,9 @@ var init_safeAreaState_native = __esmMin((() => {
|
|
|
13105
13109
|
}));
|
|
13106
13110
|
//#endregion
|
|
13107
13111
|
//#region ../native/dist/esm/nativeMenuContext.native.js
|
|
13108
|
-
var _g, _KEY,
|
|
13112
|
+
var _g, _KEY, _, NativeMenuContext;
|
|
13109
13113
|
var init_nativeMenuContext_native = __esmMin((() => {
|
|
13110
|
-
|
|
13111
|
-
g = globalThis;
|
|
13112
|
-
NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
|
|
13114
|
+
NativeMenuContext = (_ = (_g = globalThis)[_KEY = "__tamagui_native_menu_context__"]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
|
|
13113
13115
|
}));
|
|
13114
13116
|
//#endregion
|
|
13115
13117
|
//#region ../native/dist/esm/index.native.js
|
|
@@ -13121,13 +13123,13 @@ var init_index_native$3 = __esmMin((() => {
|
|
|
13121
13123
|
//#endregion
|
|
13122
13124
|
//#region ../web/dist/esm/helpers/resolveSafeAreaVariable.native.js
|
|
13123
13125
|
function resolveSafeAreaVariable(name) {
|
|
13126
|
+
var _ref;
|
|
13124
13127
|
var _state_initialMetrics;
|
|
13125
13128
|
var edge = name.startsWith("safe-area-") ? name.slice(10) : "";
|
|
13126
13129
|
if (edge !== "top" && edge !== "right" && edge !== "bottom" && edge !== "left") return;
|
|
13127
13130
|
var state = getSafeArea().state;
|
|
13128
13131
|
if (!state.didSetup) return 0;
|
|
13129
|
-
|
|
13130
|
-
return state.enabled ? (_state_initialMetrics_insets_edge = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _state_initialMetrics_insets_edge !== void 0 ? _state_initialMetrics_insets_edge : 0 : 0;
|
|
13132
|
+
return state.enabled ? (_ref = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _ref !== void 0 ? _ref : 0 : 0;
|
|
13131
13133
|
}
|
|
13132
13134
|
function subscribeToSafeArea(listener) {
|
|
13133
13135
|
return getSafeArea().subscribe(listener);
|
|
@@ -13225,7 +13227,7 @@ function resolveStyleStaticConfig(staticConfig, conf, revision) {
|
|
|
13225
13227
|
if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {
|
|
13226
13228
|
var directBaseStyle;
|
|
13227
13229
|
var directBaseKeys;
|
|
13228
|
-
var flushDirectBaseStyle = function() {
|
|
13230
|
+
var flushDirectBaseStyle = function flushDirectBaseStyle2() {
|
|
13229
13231
|
if (!directBaseStyle || !directBaseKeys) return;
|
|
13230
13232
|
var piece = createStylePiece(directBaseStyle, "base");
|
|
13231
13233
|
baseStylePiece || (baseStylePiece = piece);
|
|
@@ -13352,7 +13354,7 @@ function prepareConfigRevision(config) {
|
|
|
13352
13354
|
rank
|
|
13353
13355
|
];
|
|
13354
13356
|
}
|
|
13355
|
-
var resolveCondition = function(authored) {
|
|
13357
|
+
var resolveCondition = function resolveCondition2(authored) {
|
|
13356
13358
|
var cached = conditionModifiers[authored];
|
|
13357
13359
|
if (cached !== void 0) return cached;
|
|
13358
13360
|
var result = null;
|
|
@@ -13421,10 +13423,10 @@ function prepareConfigRevision(config) {
|
|
|
13421
13423
|
insetInline: 8,
|
|
13422
13424
|
borderRadius: 8
|
|
13423
13425
|
};
|
|
13424
|
-
var propertyKind = function(property) {
|
|
13426
|
+
var propertyKind = function propertyKind2(property) {
|
|
13425
13427
|
return propertyKinds[property] || 0;
|
|
13426
13428
|
};
|
|
13427
|
-
var tokenCategory = function(property) {
|
|
13429
|
+
var tokenCategory = function tokenCategory2(property) {
|
|
13428
13430
|
return config.tokensParsed[property] ? property : config.tokensParsed.borderWidth && property.startsWith("border") && property.endsWith("Width") ? "borderWidth" : getTokenCategoryForProperty(property);
|
|
13429
13431
|
};
|
|
13430
13432
|
var normalizedTransitions = /* @__PURE__ */ new Map();
|
|
@@ -13437,11 +13439,11 @@ function prepareConfigRevision(config) {
|
|
|
13437
13439
|
expandSafeArea: expandSafeAreaValue,
|
|
13438
13440
|
safeAreaVariable: resolveSafeAreaVariable,
|
|
13439
13441
|
parseFlatValue,
|
|
13440
|
-
styleStaticConfig: function(staticConfig, conf) {
|
|
13442
|
+
styleStaticConfig: function styleStaticConfig(staticConfig, conf) {
|
|
13441
13443
|
return resolveStyleStaticConfig(staticConfig, conf, captured.revision);
|
|
13442
13444
|
},
|
|
13443
13445
|
propertyKind,
|
|
13444
|
-
compositeValue: function(property, raw, context, resolve) {
|
|
13446
|
+
compositeValue: function compositeValue(property, raw, context, resolve) {
|
|
13445
13447
|
var kind2 = propertyKinds[property];
|
|
13446
13448
|
if (kind2 < 7) return;
|
|
13447
13449
|
if (kind2 === 7) {
|
|
@@ -13477,7 +13479,7 @@ function prepareConfigRevision(config) {
|
|
|
13477
13479
|
return value;
|
|
13478
13480
|
}
|
|
13479
13481
|
},
|
|
13480
|
-
normalizeTransition: function(raw) {
|
|
13482
|
+
normalizeTransition: function normalizeTransition(raw) {
|
|
13481
13483
|
var known = normalizedTransitions.get(raw);
|
|
13482
13484
|
if (known !== void 0) return known;
|
|
13483
13485
|
var out = raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[A-Za-z_][\w-]*/g, function(authored, quote, offset) {
|
|
@@ -13488,7 +13490,7 @@ function prepareConfigRevision(config) {
|
|
|
13488
13490
|
normalizedTransitions.set(raw, out);
|
|
13489
13491
|
return out;
|
|
13490
13492
|
},
|
|
13491
|
-
embeddedTokens: function(raw, resolve) {
|
|
13493
|
+
embeddedTokens: function embeddedTokens(raw, resolve) {
|
|
13492
13494
|
return raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[$A-Za-z_][\w.$-]*(?:\/\d*\.?\d+)?/g, function(word, quote, offset) {
|
|
13493
13495
|
var before = raw.charCodeAt(offset - 1);
|
|
13494
13496
|
return quote || word[0] !== "$" && (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(offset - 2) === 45 || raw.charCodeAt(offset + word.length) === 40) ? word : resolve(word);
|
|
@@ -13542,15 +13544,15 @@ var init_config_native = __esmMin((() => {
|
|
|
13542
13544
|
init_index_native$6();
|
|
13543
13545
|
init_formatDiagnostic_native();
|
|
13544
13546
|
init_grammarConfig_native();
|
|
13545
|
-
getConfigFromGlobalOrLocal = function() {
|
|
13547
|
+
getConfigFromGlobalOrLocal = function getConfigFromGlobalOrLocal2() {
|
|
13546
13548
|
if (conf) return conf;
|
|
13547
13549
|
if (globalThis.__tamaguiConfig) return globalThis.__tamaguiConfig;
|
|
13548
13550
|
return null;
|
|
13549
13551
|
};
|
|
13550
|
-
getSetting = function(key) {
|
|
13552
|
+
getSetting = function getSetting2(key) {
|
|
13551
13553
|
return getConfigFromGlobalOrLocal().settings[key];
|
|
13552
13554
|
};
|
|
13553
|
-
setConfig = function(next) {
|
|
13555
|
+
setConfig = function setConfig2(next) {
|
|
13554
13556
|
var previous = conf;
|
|
13555
13557
|
var previousGlobal = globalThis.__tamaguiConfig;
|
|
13556
13558
|
prepareConfigRevision(next);
|
|
@@ -13559,57 +13561,57 @@ var init_config_native = __esmMin((() => {
|
|
|
13559
13561
|
globalThis.__tamaguiConfig = next;
|
|
13560
13562
|
if (process.env.TAMAGUI_ENVIRONMENT === "tamagui") globalThis.__tamaguiEvaluationConfig = next;
|
|
13561
13563
|
};
|
|
13562
|
-
setConfigFont = function(name, font, fontParsed) {
|
|
13564
|
+
setConfigFont = function setConfigFont2(name, font, fontParsed) {
|
|
13563
13565
|
var config = getConfigFromGlobalOrLocal();
|
|
13564
13566
|
config.fonts[name] = font;
|
|
13565
13567
|
config.fontsParsed[name] = fontParsed;
|
|
13566
13568
|
prepareConfigRevision(config);
|
|
13567
13569
|
};
|
|
13568
|
-
getConfig = function() {
|
|
13570
|
+
getConfig = function getConfig2() {
|
|
13569
13571
|
var config = getConfigFromGlobalOrLocal();
|
|
13570
13572
|
if (!config) throw new Error(formatDiagnostic("Err0", "TamaguiConfig", "no config is available", "Call createTamagui before rendering and deduplicate Tamagui package versions", "config", config));
|
|
13571
13573
|
return config;
|
|
13572
13574
|
};
|
|
13573
|
-
getConfigMaybe = function() {
|
|
13575
|
+
getConfigMaybe = function getConfigMaybe2() {
|
|
13574
13576
|
return getConfigFromGlobalOrLocal();
|
|
13575
13577
|
};
|
|
13576
|
-
getTokensParsed = function() {
|
|
13578
|
+
getTokensParsed = function getTokensParsed2() {
|
|
13579
|
+
var _ref;
|
|
13577
13580
|
var _getConfigFromGlobalOrLocal;
|
|
13578
|
-
|
|
13579
|
-
return (_getConfigFromGlobalOrLocal_tokensParsed = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _getConfigFromGlobalOrLocal_tokensParsed !== void 0 ? _getConfigFromGlobalOrLocal_tokensParsed : tokens;
|
|
13581
|
+
return (_ref = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _ref !== void 0 ? _ref : tokens;
|
|
13580
13582
|
};
|
|
13581
|
-
getTokens = function() {
|
|
13583
|
+
getTokens = function getTokens2() {
|
|
13582
13584
|
return getTokensParsed();
|
|
13583
13585
|
};
|
|
13584
|
-
getTokenObject = function(value, group) {
|
|
13586
|
+
getTokenObject = function getTokenObject2(value, group) {
|
|
13585
13587
|
var _tokens_group, _tokens_;
|
|
13586
13588
|
var tokens2 = getTokensParsed();
|
|
13587
13589
|
return group ? (_tokens_group = tokens2[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[value] : (_tokens_ = tokens2[Object.keys(tokens2).find(function(cat) {
|
|
13588
13590
|
return tokens2[cat][value];
|
|
13589
13591
|
}) || ""]) === null || _tokens_ === void 0 ? void 0 : _tokens_[value];
|
|
13590
13592
|
};
|
|
13591
|
-
getToken = function(value, group) {
|
|
13593
|
+
getToken = function getToken2(value, group) {
|
|
13592
13594
|
var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
13593
13595
|
var token = getTokenObject(value, group);
|
|
13594
13596
|
return useVariable ? token === null || token === void 0 ? void 0 : token.variable : token === null || token === void 0 ? void 0 : token.val;
|
|
13595
13597
|
};
|
|
13596
|
-
getTokenValue = function(value, group) {
|
|
13598
|
+
getTokenValue = function getTokenValue2(value, group) {
|
|
13597
13599
|
if (value === "unset" || value === "auto") return;
|
|
13598
13600
|
return getToken(value, group, false);
|
|
13599
13601
|
};
|
|
13600
|
-
getThemes = function() {
|
|
13602
|
+
getThemes = function getThemes2() {
|
|
13601
13603
|
return getConfigFromGlobalOrLocal().themes;
|
|
13602
13604
|
};
|
|
13603
|
-
updateConfig = function(key, value) {
|
|
13605
|
+
updateConfig = function updateConfig2(key, value) {
|
|
13604
13606
|
var config = getConfigFromGlobalOrLocal();
|
|
13605
13607
|
if (!config || key === "__proto__" || !(key in config)) return;
|
|
13606
13608
|
Object.assign(config[key], value);
|
|
13607
13609
|
prepareConfigRevision(config);
|
|
13608
13610
|
};
|
|
13609
|
-
getFont = function(name) {
|
|
13611
|
+
getFont = function getFont2(name) {
|
|
13612
|
+
var _conf_fontsParsed_name;
|
|
13610
13613
|
var _Object_entries_find;
|
|
13611
13614
|
var conf2 = getConfig();
|
|
13612
|
-
var _conf_fontsParsed_name;
|
|
13613
13615
|
return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {
|
|
13614
13616
|
var [k] = param;
|
|
13615
13617
|
var _conf_fontsParsed_k_family, _conf_fontsParsed_k;
|
|
@@ -13632,13 +13634,13 @@ function isVariable(v) {
|
|
|
13632
13634
|
}
|
|
13633
13635
|
function getVariable(nameOrVariable) {
|
|
13634
13636
|
var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size";
|
|
13637
|
+
var _ref;
|
|
13635
13638
|
var _tokens_group;
|
|
13636
13639
|
if (nameOrVariable === null || nameOrVariable === void 0 ? void 0 : nameOrVariable.dynamic) return nameOrVariable;
|
|
13637
13640
|
setDidGetVariableValue(true);
|
|
13638
13641
|
if (isVariable(nameOrVariable)) return variableToString(nameOrVariable);
|
|
13639
13642
|
var tokens = getConfig().tokensParsed;
|
|
13640
|
-
|
|
13641
|
-
return variableToString((_tokens_group_nameOrVariable = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _tokens_group_nameOrVariable !== void 0 ? _tokens_group_nameOrVariable : nameOrVariable);
|
|
13643
|
+
return variableToString((_ref = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _ref !== void 0 ? _ref : nameOrVariable);
|
|
13642
13644
|
}
|
|
13643
13645
|
function getVariableValue(v, group) {
|
|
13644
13646
|
if (isVariable(v)) {
|
|
@@ -13667,7 +13669,7 @@ var init_createVariable_native = __esmMin((() => {
|
|
|
13667
13669
|
init_index_native$4();
|
|
13668
13670
|
init_config_native();
|
|
13669
13671
|
pxStringRe$1 = /^-?\d*\.?\d+px$/;
|
|
13670
|
-
createVariable = function(props) {
|
|
13672
|
+
createVariable = function createVariable2(props) {
|
|
13671
13673
|
var skipHash = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
13672
13674
|
if (!skipHash && isVariable(props)) return props;
|
|
13673
13675
|
var { key, name, val } = props;
|
|
@@ -13682,13 +13684,13 @@ var init_createVariable_native = __esmMin((() => {
|
|
|
13682
13684
|
};
|
|
13683
13685
|
};
|
|
13684
13686
|
accessed = false;
|
|
13685
|
-
setDidGetVariableValue = function(val) {
|
|
13687
|
+
setDidGetVariableValue = function setDidGetVariableValue2(val) {
|
|
13686
13688
|
return accessed = val;
|
|
13687
13689
|
};
|
|
13688
|
-
didGetVariableValue = function() {
|
|
13690
|
+
didGetVariableValue = function didGetVariableValue2() {
|
|
13689
13691
|
return accessed;
|
|
13690
13692
|
};
|
|
13691
|
-
createCSSVariable = function(nameProp) {
|
|
13693
|
+
createCSSVariable = function createCSSVariable2(nameProp) {
|
|
13692
13694
|
var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
13693
13695
|
var name = simpleHash(nameProp, 60);
|
|
13694
13696
|
return includeVar ? constructCSSVariableName(name) : name;
|
|
@@ -13717,11 +13719,11 @@ function mediaKeyMatch(key, dimensions) {
|
|
|
13717
13719
|
var mediaState, setMediaState, mediaQueryConfig, getMedia, mediaKeys;
|
|
13718
13720
|
var init_mediaState_native = __esmMin((() => {
|
|
13719
13721
|
mediaState = {};
|
|
13720
|
-
setMediaState = function(next) {
|
|
13722
|
+
setMediaState = function setMediaState2(next) {
|
|
13721
13723
|
mediaState = next;
|
|
13722
13724
|
};
|
|
13723
13725
|
mediaQueryConfig = {};
|
|
13724
|
-
getMedia = function() {
|
|
13726
|
+
getMedia = function getMedia2() {
|
|
13725
13727
|
return mediaState;
|
|
13726
13728
|
};
|
|
13727
13729
|
mediaKeys = /* @__PURE__ */ new Set();
|
|
@@ -13731,11 +13733,11 @@ var init_mediaState_native = __esmMin((() => {
|
|
|
13731
13733
|
function matchMediaFallback(query) {
|
|
13732
13734
|
if (!process.env.IS_STATIC && false);
|
|
13733
13735
|
return {
|
|
13734
|
-
match: function(a, b) {
|
|
13736
|
+
match: function match(a, b) {
|
|
13735
13737
|
return false;
|
|
13736
13738
|
},
|
|
13737
|
-
addListener: function() {},
|
|
13738
|
-
removeListener: function() {},
|
|
13739
|
+
addListener: function addListener() {},
|
|
13740
|
+
removeListener: function removeListener() {},
|
|
13739
13741
|
matches: false
|
|
13740
13742
|
};
|
|
13741
13743
|
}
|
|
@@ -13746,7 +13748,7 @@ function setupMatchMedia(_) {
|
|
|
13746
13748
|
var matchMediaImpl, matchMedia;
|
|
13747
13749
|
var init_matchMedia_native = __esmMin((() => {
|
|
13748
13750
|
matchMediaImpl = matchMediaFallback;
|
|
13749
|
-
matchMedia = function() {
|
|
13751
|
+
matchMedia = function matchMedia2() {
|
|
13750
13752
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
13751
13753
|
return matchMediaImpl(...args);
|
|
13752
13754
|
};
|
|
@@ -13762,7 +13764,7 @@ function unlisten() {
|
|
|
13762
13764
|
function setupMediaListeners() {
|
|
13763
13765
|
var _loop = function(key2) {
|
|
13764
13766
|
var str = mediaObjectToString(mediaQueryConfig[key2]);
|
|
13765
|
-
var getMatch = function() {
|
|
13767
|
+
var getMatch = function getMatch2() {
|
|
13766
13768
|
return matchMedia(str);
|
|
13767
13769
|
};
|
|
13768
13770
|
var match = getMatch();
|
|
@@ -14125,7 +14127,7 @@ var init_useMedia_native = __esmMin((() => {
|
|
|
14125
14127
|
init_objectSpread2();
|
|
14126
14128
|
dispose = /* @__PURE__ */ new Set();
|
|
14127
14129
|
mediaVersion = 0;
|
|
14128
|
-
configureMedia = function(config) {
|
|
14130
|
+
configureMedia = function configureMedia2(config) {
|
|
14129
14131
|
var { media } = config;
|
|
14130
14132
|
var mediaQueryDefaultActive = getSetting("mediaQueryDefaultActive");
|
|
14131
14133
|
if (!media) return;
|
|
@@ -14151,7 +14153,7 @@ var init_useMedia_native = __esmMin((() => {
|
|
|
14151
14153
|
States = /* @__PURE__ */ new WeakMap();
|
|
14152
14154
|
touchTrackerProto = null;
|
|
14153
14155
|
refSlot = /* @__PURE__ */ Symbol("mediaRefSlot");
|
|
14154
|
-
incReducer$1 = function(c) {
|
|
14156
|
+
incReducer$1 = function incReducer2(c) {
|
|
14155
14157
|
return c + 1;
|
|
14156
14158
|
};
|
|
14157
14159
|
disableMediaTouch = false;
|
|
@@ -14330,7 +14332,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14330
14332
|
PendingUpdate = /* @__PURE__ */ new Map();
|
|
14331
14333
|
states = /* @__PURE__ */ new Map();
|
|
14332
14334
|
shouldForce = false;
|
|
14333
|
-
forceUpdateThemes = function() {
|
|
14335
|
+
forceUpdateThemes = function forceUpdateThemes2() {
|
|
14334
14336
|
cacheVersion++;
|
|
14335
14337
|
shouldForce = true;
|
|
14336
14338
|
allListeners.forEach(function(cb) {
|
|
@@ -14338,24 +14340,24 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14338
14340
|
});
|
|
14339
14341
|
shouldForce = false;
|
|
14340
14342
|
};
|
|
14341
|
-
getThemeState = function(id) {
|
|
14343
|
+
getThemeState = function getThemeState2(id) {
|
|
14342
14344
|
return states.get(id);
|
|
14343
14345
|
};
|
|
14344
14346
|
themeUpdateLayers = /* @__PURE__ */ new Map();
|
|
14345
14347
|
themeProviderParents = /* @__PURE__ */ new Map();
|
|
14346
|
-
getThemeUpdateLayer = function(id) {
|
|
14348
|
+
getThemeUpdateLayer = function getThemeUpdateLayer2(id) {
|
|
14347
14349
|
return themeUpdateLayers.get(id);
|
|
14348
14350
|
};
|
|
14349
|
-
getThemeProviderParent = function(id) {
|
|
14351
|
+
getThemeProviderParent = function getThemeProviderParent2(id) {
|
|
14350
14352
|
return themeProviderParents.get(id);
|
|
14351
14353
|
};
|
|
14352
|
-
getThemeProviderChainSizes = function() {
|
|
14354
|
+
getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
|
|
14353
14355
|
return {
|
|
14354
14356
|
layers: themeUpdateLayers.size,
|
|
14355
14357
|
parents: themeProviderParents.size
|
|
14356
14358
|
};
|
|
14357
14359
|
};
|
|
14358
|
-
registerThemeProviderChain = function(id, parentId, props) {
|
|
14360
|
+
registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props) {
|
|
14359
14361
|
themeProviderParents.set(id, parentId);
|
|
14360
14362
|
if (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);
|
|
14361
14363
|
else themeUpdateLayers.delete(id);
|
|
@@ -14365,20 +14367,20 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14365
14367
|
themeNameCacheVer = -1;
|
|
14366
14368
|
themes = null;
|
|
14367
14369
|
rootThemeState = null;
|
|
14368
|
-
getRootThemeState = function() {
|
|
14370
|
+
getRootThemeState = function getRootThemeState2() {
|
|
14369
14371
|
return rootThemeState;
|
|
14370
14372
|
};
|
|
14371
|
-
getThemeBaseName = function(name) {
|
|
14373
|
+
getThemeBaseName = function getThemeBaseName2(name) {
|
|
14372
14374
|
return name.replace(/^(light|dark)_/, "");
|
|
14373
14375
|
};
|
|
14374
|
-
incReducer = function(c) {
|
|
14376
|
+
incReducer = function incReducer2(c) {
|
|
14375
14377
|
return c + 1;
|
|
14376
14378
|
};
|
|
14377
|
-
useThemeState = function(props) {
|
|
14379
|
+
useThemeState = function useThemeState2(props) {
|
|
14378
14380
|
"use no memo";
|
|
14379
14381
|
var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
|
|
14380
|
-
var _props__themeUpdate;
|
|
14381
14382
|
var _ref;
|
|
14383
|
+
var _props__themeUpdate;
|
|
14382
14384
|
var { disable } = props;
|
|
14383
14385
|
var parentId = (0, react.useContext)(ThemeStateContext);
|
|
14384
14386
|
if (!parentId && !isRoot) throw new Error(MISSING_THEME_MESSAGE);
|
|
@@ -14421,7 +14423,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14421
14423
|
var _listenersByParent, _pid;
|
|
14422
14424
|
var pid = r.parentId;
|
|
14423
14425
|
var sid = r.id;
|
|
14424
|
-
var cb = function(forced) {
|
|
14426
|
+
var cb = function cb2(forced) {
|
|
14425
14427
|
var next = getSnapshotImpl(r);
|
|
14426
14428
|
if (next !== r.lastSnap) {
|
|
14427
14429
|
var _r_props_nativeUpdate, _r_props;
|
|
@@ -14471,11 +14473,11 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14471
14473
|
}, [keys, propsKey]);
|
|
14472
14474
|
return state;
|
|
14473
14475
|
};
|
|
14474
|
-
shouldSubscribeToTheme = function(r, cascadeOnChange) {
|
|
14476
|
+
shouldSubscribeToTheme = function shouldSubscribeToTheme2(r, cascadeOnChange) {
|
|
14475
14477
|
var _r_keys_current, _r_props_needsUpdate, _r_props;
|
|
14476
14478
|
return Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));
|
|
14477
14479
|
};
|
|
14478
|
-
getSnapshotImpl = function(r) {
|
|
14480
|
+
getSnapshotImpl = function getSnapshotImpl2(r) {
|
|
14479
14481
|
var _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;
|
|
14480
14482
|
var { id, parentId, props, propsKey, isRoot, keys, optimizeForFirstRender } = r;
|
|
14481
14483
|
var schemeKeys = r.schemeKeys;
|
|
@@ -14510,8 +14512,9 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14510
14512
|
states.set(id, next);
|
|
14511
14513
|
return local;
|
|
14512
14514
|
};
|
|
14513
|
-
getNextState = function(lastState, props, propsKey) {
|
|
14515
|
+
getNextState = function getNextState2(lastState, props, propsKey) {
|
|
14514
14516
|
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;
|
|
14517
|
+
var _ref;
|
|
14515
14518
|
var parentState = states.get(parentId);
|
|
14516
14519
|
if (props.passThrough) return [false, parentState || lastState || { name: "" }];
|
|
14517
14520
|
themes || (themes = getConfig().themes);
|
|
@@ -14529,8 +14532,8 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14529
14532
|
return [shouldRerender, _objectSpread2(_objectSpread2({}, parentState), {}, { isNew: false })];
|
|
14530
14533
|
}
|
|
14531
14534
|
if (!resolvedName) {
|
|
14532
|
-
var
|
|
14533
|
-
var next = (_ref1 = (
|
|
14535
|
+
var _ref1, _ref2;
|
|
14536
|
+
var next = (_ref1 = (_ref2 = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref2 !== void 0 ? _ref2 : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
14534
14537
|
id,
|
|
14535
14538
|
name: "light",
|
|
14536
14539
|
theme: getConfig().themes.light
|
|
@@ -14539,8 +14542,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14539
14542
|
return [false, next];
|
|
14540
14543
|
}
|
|
14541
14544
|
var scheme = getAuthoredThemeScheme(themes[resolvedName]) || getThemeScheme(resolvedName);
|
|
14542
|
-
var
|
|
14543
|
-
var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
|
|
14545
|
+
var parentInverses = (_ref = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _ref !== void 0 ? _ref : 0;
|
|
14544
14546
|
var isInverse = Boolean(parentState && scheme !== parentState.scheme);
|
|
14545
14547
|
var inverses = parentInverses + (isInverse ? 1 : 0);
|
|
14546
14548
|
var nextState = {
|
|
@@ -14558,7 +14560,7 @@ var init_useThemeState_native = __esmMin((() => {
|
|
|
14558
14560
|
if (isRoot) rootThemeState = nextState;
|
|
14559
14561
|
return [pendingUpdate === "force" || !sameAsLast, nextState];
|
|
14560
14562
|
};
|
|
14561
|
-
hasThemeUpdatingProps = function(props) {
|
|
14563
|
+
hasThemeUpdatingProps = function hasThemeUpdatingProps2(props) {
|
|
14562
14564
|
return "name" in props || "forceClassName" in props || "_themeUpdate" in props;
|
|
14563
14565
|
};
|
|
14564
14566
|
}));
|
|
@@ -14598,7 +14600,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
|
|
|
14598
14600
|
var config = getConfig();
|
|
14599
14601
|
var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
|
|
14600
14602
|
var [key, value] = param;
|
|
14601
|
-
var get = function(platform) {
|
|
14603
|
+
var get = function get2(platform) {
|
|
14602
14604
|
if (!curState) return;
|
|
14603
14605
|
var outVal = getVariable(value);
|
|
14604
14606
|
var { name, scheme } = curState;
|
|
@@ -14669,12 +14671,12 @@ var init_useTheme_native = __esmMin((() => {
|
|
|
14669
14671
|
init_getThemeProxied_native();
|
|
14670
14672
|
init_useThemeState_native();
|
|
14671
14673
|
EMPTY = {};
|
|
14672
|
-
useTheme = function() {
|
|
14674
|
+
useTheme = function useTheme2() {
|
|
14673
14675
|
"use no memo";
|
|
14674
14676
|
var [theme] = useThemeWithState(EMPTY);
|
|
14675
14677
|
return theme;
|
|
14676
14678
|
};
|
|
14677
|
-
useThemeWithState = function(props) {
|
|
14679
|
+
useThemeWithState = function useThemeWithState2(props) {
|
|
14678
14680
|
"use no memo";
|
|
14679
14681
|
var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, forThemeView = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
14680
14682
|
var bag = (0, react.useRef)(null);
|
|
@@ -14704,7 +14706,7 @@ var init__withStableStyle_native = __esmMin((() => {
|
|
|
14704
14706
|
EMPTY_EXPRESSIONS = [];
|
|
14705
14707
|
EMPTY_THEME = {};
|
|
14706
14708
|
FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
|
|
14707
|
-
_withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKeys) {
|
|
14709
|
+
_withStableStyle = function _withStableStyle2(Component, createStyle, hasThemeKeys, hasMediaKeys) {
|
|
14708
14710
|
return /* @__PURE__ */ react.default.memo(function WithStableStyle(props) {
|
|
14709
14711
|
var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$8);
|
|
14710
14712
|
var { _expressions = EMPTY_EXPRESSIONS } = propsWithoutRef, rest = _objectWithoutProperties(propsWithoutRef, _excluded2$3);
|
|
@@ -14724,7 +14726,7 @@ var init__withStableStyle_native = __esmMin((() => {
|
|
|
14724
14726
|
if (!gettableTheme) {
|
|
14725
14727
|
var _loop = function(key2) {
|
|
14726
14728
|
var value = fallbackTheme[key2];
|
|
14727
|
-
gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function() {
|
|
14729
|
+
gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function get() {
|
|
14728
14730
|
return getVariable(value);
|
|
14729
14731
|
} });
|
|
14730
14732
|
};
|
|
@@ -14813,6 +14815,7 @@ function getCompiledMapping(mapping) {
|
|
|
14813
14815
|
return compiled;
|
|
14814
14816
|
}
|
|
14815
14817
|
function resolveCompiledMapping(compiled, stateName, theme) {
|
|
14818
|
+
var _ref;
|
|
14816
14819
|
var cached = compiled.states.get(stateName);
|
|
14817
14820
|
if ((cached === null || cached === void 0 ? void 0 : cached.theme) === theme) return cached;
|
|
14818
14821
|
var renderProps = {};
|
|
@@ -14821,8 +14824,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
14821
14824
|
renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);
|
|
14822
14825
|
}
|
|
14823
14826
|
renderProps = normalizeNativeStyle(renderProps, true);
|
|
14824
|
-
var
|
|
14825
|
-
var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
|
|
14827
|
+
var nativeProps = (_ref = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _ref !== void 0 ? _ref : renderProps;
|
|
14826
14828
|
if (compiled.states.size >= 1e4) compiled.states.clear();
|
|
14827
14829
|
var resolved = {
|
|
14828
14830
|
theme,
|
|
@@ -15079,7 +15081,7 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15079
15081
|
allowFontScaling: true,
|
|
15080
15082
|
ellipsizeMode: "tail"
|
|
15081
15083
|
};
|
|
15082
|
-
_withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
|
|
15084
|
+
_withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeStyleKeys, host) {
|
|
15083
15085
|
var _hooks_getBaseViews;
|
|
15084
15086
|
var Fallback = _withStableStyle(Component, function(theme) {
|
|
15085
15087
|
var themedStyle = {};
|
|
@@ -15095,14 +15097,14 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15095
15097
|
var HostText = host === "text" && !("userSelect" in baseStyle) && !("verticalAlign" in baseStyle) ? baseViews === null || baseViews === void 0 ? void 0 : baseViews.NativeText : void 0;
|
|
15096
15098
|
var hostTextBase = HostText ? _objectSpread2(_objectSpread2({ overflow: "hidden" }, baseStyle), typeof baseStyle.fontWeight === "number" && { fontWeight: String(baseStyle.fontWeight) }) : baseStyle;
|
|
15097
15099
|
var entries = /* @__PURE__ */ new Map();
|
|
15098
|
-
var createEntry = function() {
|
|
15100
|
+
var createEntry = function createEntry2() {
|
|
15099
15101
|
var entry = {
|
|
15100
15102
|
style: [baseStyle, null],
|
|
15101
15103
|
hostTextStyle: [hostTextBase, null],
|
|
15102
15104
|
stateName: "",
|
|
15103
15105
|
theme: null,
|
|
15104
15106
|
state: null,
|
|
15105
|
-
ref: function(node) {
|
|
15107
|
+
ref: function ref(node) {
|
|
15106
15108
|
if (node) linkHost(node, entry.state);
|
|
15107
15109
|
}
|
|
15108
15110
|
};
|
|
@@ -15115,7 +15117,7 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15115
15117
|
var linkState = createNativeStyleLinkState;
|
|
15116
15118
|
var linkHost = linkNativeStyleHost;
|
|
15117
15119
|
var assignRef = setRef;
|
|
15118
|
-
var render = function(props, key) {
|
|
15120
|
+
var render = function render2(props, key) {
|
|
15119
15121
|
var scopeId = (0, react.use)(ScopeContext);
|
|
15120
15122
|
var inText = TextAncestor ? (0, react.use)(TextAncestor) : false;
|
|
15121
15123
|
var themeState = scopeId && engineOf() ? scopeState(scopeId) : void 0;
|
|
@@ -15140,8 +15142,8 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15140
15142
|
}
|
|
15141
15143
|
if (entry.stateName !== name || entry.theme !== theme) {
|
|
15142
15144
|
var themed = resolve(themeStyleKeys, name, theme);
|
|
15143
|
-
entry.style
|
|
15144
|
-
entry.hostTextStyle
|
|
15145
|
+
entry.style = [baseStyle, themed];
|
|
15146
|
+
entry.hostTextStyle = [hostTextBase, themed];
|
|
15145
15147
|
entry.stateName = name;
|
|
15146
15148
|
entry.theme = theme;
|
|
15147
15149
|
entry.state = linkState(themeStyleKeys, scopeId, name, theme);
|
|
@@ -15165,7 +15167,7 @@ var init__withNativeStyle_native = __esmMin((() => {
|
|
|
15165
15167
|
children: element
|
|
15166
15168
|
}, key);
|
|
15167
15169
|
};
|
|
15168
|
-
var NativeStyleView = function(props) {
|
|
15170
|
+
var NativeStyleView = function NativeStyleView2(props) {
|
|
15169
15171
|
return render(props);
|
|
15170
15172
|
};
|
|
15171
15173
|
NativeStyleView.inline = function(element) {
|
|
@@ -15255,8 +15257,8 @@ function useMainThreadPressEvents(events, viewProps) {
|
|
|
15255
15257
|
ownsResponder.current = false;
|
|
15256
15258
|
};
|
|
15257
15259
|
viewProps.onResponderTerminationRequest = function(e) {
|
|
15258
|
-
var
|
|
15259
|
-
return (
|
|
15260
|
+
var _ref;
|
|
15261
|
+
return (_ref = userTerminationRequest === null || userTerminationRequest === void 0 ? void 0 : userTerminationRequest(e)) !== null && _ref !== void 0 ? _ref : handlers.onResponderTerminationRequest();
|
|
15260
15262
|
};
|
|
15261
15263
|
viewProps.onResponderMove = function(e) {
|
|
15262
15264
|
userMove === null || userMove === void 0 || userMove(e);
|
|
@@ -15319,7 +15321,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
|
|
|
15319
15321
|
var gestureRef = (0, react.useRef)(null);
|
|
15320
15322
|
var longPressTimerRef = (0, react.useRef)(null);
|
|
15321
15323
|
var longPressedRef = (0, react.useRef)(false);
|
|
15322
|
-
var clearLongPress = function() {
|
|
15324
|
+
var clearLongPress = function clearLongPress2() {
|
|
15323
15325
|
if (longPressTimerRef.current) clearTimeout(longPressTimerRef.current);
|
|
15324
15326
|
longPressTimerRef.current = null;
|
|
15325
15327
|
};
|
|
@@ -15327,7 +15329,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
|
|
|
15327
15329
|
return clearLongPress;
|
|
15328
15330
|
}, []);
|
|
15329
15331
|
var pressActiveRef = (0, react.useRef)(false);
|
|
15330
|
-
var beginPress = function(e) {
|
|
15332
|
+
var beginPress = function beginPress2(e) {
|
|
15331
15333
|
var _callbacksRef_current_onPressIn, _callbacksRef_current;
|
|
15332
15334
|
if (pressActiveRef.current) return;
|
|
15333
15335
|
pressActiveRef.current = true;
|
|
@@ -15346,7 +15348,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
|
|
|
15346
15348
|
}
|
|
15347
15349
|
(_callbacksRef_current_onPressIn = (_callbacksRef_current = callbacksRef.current).onPressIn) === null || _callbacksRef_current_onPressIn === void 0 || _callbacksRef_current_onPressIn.call(_callbacksRef_current, e !== null && e !== void 0 ? e : {});
|
|
15348
15350
|
};
|
|
15349
|
-
var endPress = function(e) {
|
|
15351
|
+
var endPress = function endPress2(e) {
|
|
15350
15352
|
var firePress = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
15351
15353
|
var _callbacksRef_current_onPress, _callbacksRef_current, _callbacksRef_current_onPressOut, _callbacksRef_current1;
|
|
15352
15354
|
clearLongPress();
|
|
@@ -15419,15 +15421,15 @@ var init_eventHandling_native = __esmMin((() => {
|
|
|
15419
15421
|
init_esm();
|
|
15420
15422
|
init_mainThreadPressEvents_native();
|
|
15421
15423
|
isFabric = !!globalThis.nativeFabricUIManager;
|
|
15422
|
-
getIsAndroid = function() {
|
|
15424
|
+
getIsAndroid = function getIsAndroid2() {
|
|
15423
15425
|
if (isAndroidCache === void 0) isAndroidCache = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "android";
|
|
15424
15426
|
return isAndroidCache;
|
|
15425
15427
|
};
|
|
15426
|
-
getIsNativeDesktop = function() {
|
|
15428
|
+
getIsNativeDesktop = function getIsNativeDesktop2() {
|
|
15427
15429
|
if (isNativeDesktopCache === void 0) isNativeDesktopCache = (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "macos" || (Platform === null || Platform === void 0 ? void 0 : Platform.OS) === "windows";
|
|
15428
15430
|
return isNativeDesktopCache;
|
|
15429
15431
|
};
|
|
15430
|
-
responderClaim = function() {
|
|
15432
|
+
responderClaim = function responderClaim2() {
|
|
15431
15433
|
return true;
|
|
15432
15434
|
};
|
|
15433
15435
|
responderWrapperStyle = { display: "contents" };
|
|
@@ -15449,7 +15451,7 @@ var init_transitionResolver_native = __esmMin((() => {
|
|
|
15449
15451
|
slot = /* @__PURE__ */ Symbol.for("tamagui.transitionResolver");
|
|
15450
15452
|
})), empty$1, flushDirectStyles, registerAtomicSlot, getCSSStylesAtomic;
|
|
15451
15453
|
var init_getCSSStylesAtomic_native = __esmMin((() => {
|
|
15452
|
-
empty$1 = function() {};
|
|
15454
|
+
empty$1 = function empty2() {};
|
|
15453
15455
|
flushDirectStyles = empty$1;
|
|
15454
15456
|
registerAtomicSlot = empty$1;
|
|
15455
15457
|
getCSSStylesAtomic = empty$1;
|
|
@@ -15561,9 +15563,9 @@ var init_expandStyle_native = __esmMin((() => {
|
|
|
15561
15563
|
init_parseOutlineShorthand_native();
|
|
15562
15564
|
init_objectSpread2();
|
|
15563
15565
|
_loop = function(parent2) {
|
|
15566
|
+
var _ref;
|
|
15564
15567
|
var _exec;
|
|
15565
|
-
var
|
|
15566
|
-
var prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
|
|
15568
|
+
var prefix = parent2.slice(0, (_ref = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _ref !== void 0 ? _ref : parent2.length);
|
|
15567
15569
|
EXPANSIONS[parent2] = EXPANSIONS[parent2].map(function(k) {
|
|
15568
15570
|
return `${prefix}${k}`;
|
|
15569
15571
|
});
|
|
@@ -15709,10 +15711,10 @@ var isDynamicColor, normalizeColor, getRgba;
|
|
|
15709
15711
|
var init_normalizeColor_native = __esmMin((() => {
|
|
15710
15712
|
init_index_native$9();
|
|
15711
15713
|
init_objectSpread2();
|
|
15712
|
-
isDynamicColor = function(color) {
|
|
15714
|
+
isDynamicColor = function isDynamicColor2(color) {
|
|
15713
15715
|
return typeof color.dynamic === "object" && color.dynamic !== null;
|
|
15714
15716
|
};
|
|
15715
|
-
normalizeColor = function(color, opacity) {
|
|
15717
|
+
normalizeColor = function normalizeColor1(color, opacity) {
|
|
15716
15718
|
if (!color) return;
|
|
15717
15719
|
if (typeof color !== "string") {
|
|
15718
15720
|
if (opacity === void 0 || opacity === 1 || !isDynamicColor(color)) return color;
|
|
@@ -15725,13 +15727,13 @@ var init_normalizeColor_native = __esmMin((() => {
|
|
|
15725
15727
|
}
|
|
15726
15728
|
var rgbaVal = getRgba(color);
|
|
15727
15729
|
if (rgbaVal) {
|
|
15728
|
-
var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
|
|
15729
15730
|
var _ref;
|
|
15731
|
+
var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
|
|
15730
15732
|
return opacity === 1 ? `rgb(${colors})` : `rgba(${colors},${(_ref = opacity !== null && opacity !== void 0 ? opacity : rgbaVal.a) !== null && _ref !== void 0 ? _ref : 1})`;
|
|
15731
15733
|
}
|
|
15732
15734
|
return color;
|
|
15733
15735
|
};
|
|
15734
|
-
getRgba = function(color) {
|
|
15736
|
+
getRgba = function getRgba2(color) {
|
|
15735
15737
|
if (typeof color !== "string") return;
|
|
15736
15738
|
var nativeColor = color.replace(/^(rgb|hsl)\((?=[^)]*\/)/, "$1a(");
|
|
15737
15739
|
var colorNum = normalizeCSSColor(nativeColor);
|
|
@@ -15811,11 +15813,11 @@ var init_styleFrontend_native = __esmMin((() => {
|
|
|
15811
15813
|
//#endregion
|
|
15812
15814
|
//#region ../web/dist/esm/helpers/resolveSizing.native.js
|
|
15813
15815
|
function resolveSizing(size, env) {
|
|
15816
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
15814
15817
|
var _font_size, _font_size1, _font_lineHeight, _tokens_space;
|
|
15815
15818
|
if (size === false) return void 0;
|
|
15816
15819
|
var conf = (env === null || env === void 0 ? void 0 : env.fonts) && (env === null || env === void 0 ? void 0 : env.tokens) ? void 0 : getConfig();
|
|
15817
|
-
var
|
|
15818
|
-
var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_env_sizing = env === null || env === void 0 ? void 0 : env.sizing) !== null && _env_sizing !== void 0 ? _env_sizing : conf === null || conf === void 0 ? void 0 : conf.sizing);
|
|
15820
|
+
var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_ref = env === null || env === void 0 ? void 0 : env.sizing) !== null && _ref !== void 0 ? _ref : conf === null || conf === void 0 ? void 0 : conf.sizing);
|
|
15819
15821
|
var name = size === true || size == null ? sizing.default : size;
|
|
15820
15822
|
var rung = sizing.sizes[name];
|
|
15821
15823
|
if (!rung) return void 0;
|
|
@@ -15832,12 +15834,9 @@ function resolveSizing(size, env) {
|
|
|
15832
15834
|
icon: rung.px.icon,
|
|
15833
15835
|
square: rung.px.square
|
|
15834
15836
|
});
|
|
15835
|
-
var
|
|
15836
|
-
var
|
|
15837
|
-
var
|
|
15838
|
-
var tokens = (_env_tokens = env === null || env === void 0 ? void 0 : env.tokens) !== null && _env_tokens !== void 0 ? _env_tokens : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
|
|
15839
|
-
var _conf_defaultFontToken, _env_font;
|
|
15840
|
-
var font = (_env_font = env === null || env === void 0 ? void 0 : env.font) !== null && _env_font !== void 0 ? _env_font : fonts === null || fonts === void 0 ? void 0 : fonts[(_conf_defaultFontToken = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _conf_defaultFontToken !== void 0 ? _conf_defaultFontToken : "body"];
|
|
15837
|
+
var fonts = (_ref1 = env === null || env === void 0 ? void 0 : env.fonts) !== null && _ref1 !== void 0 ? _ref1 : conf === null || conf === void 0 ? void 0 : conf.fontsParsed;
|
|
15838
|
+
var tokens = (_ref2 = env === null || env === void 0 ? void 0 : env.tokens) !== null && _ref2 !== void 0 ? _ref2 : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
|
|
15839
|
+
var font = (_ref3 = env === null || env === void 0 ? void 0 : env.font) !== null && _ref3 !== void 0 ? _ref3 : fonts === null || fonts === void 0 ? void 0 : fonts[(_ref4 = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _ref4 !== void 0 ? _ref4 : "body"];
|
|
15841
15840
|
var px = {
|
|
15842
15841
|
fontSize: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size = font.size) === null || _font_size === void 0 ? void 0 : _font_size[rung.fontSize])),
|
|
15843
15842
|
control: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size1 = font.size) === null || _font_size1 === void 0 ? void 0 : _font_size1[rung.controlFontSize])),
|
|
@@ -15901,7 +15900,7 @@ var init_resolveSizing_native = __esmMin((() => {
|
|
|
15901
15900
|
}
|
|
15902
15901
|
}
|
|
15903
15902
|
};
|
|
15904
|
-
toPx$1 = function(value) {
|
|
15903
|
+
toPx$1 = function toPx2(value) {
|
|
15905
15904
|
return typeof value === "number" ? value : Number.parseFloat(value);
|
|
15906
15905
|
};
|
|
15907
15906
|
}));
|
|
@@ -16047,7 +16046,7 @@ var init_insertStyleRule_native = __esmMin((() => {
|
|
|
16047
16046
|
allSelectors = {};
|
|
16048
16047
|
allRules = {};
|
|
16049
16048
|
allRuleSets = {};
|
|
16050
|
-
getRulesForIdentifier = function(identifier) {
|
|
16049
|
+
getRulesForIdentifier = function getRulesForIdentifier2(identifier) {
|
|
16051
16050
|
return allRuleSets[identifier];
|
|
16052
16051
|
};
|
|
16053
16052
|
bailAfterEnv = process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES;
|
|
@@ -16148,7 +16147,7 @@ var init_isTamaguiComponent_native = __esmMin((() => {}));
|
|
|
16148
16147
|
var isTamaguiElement;
|
|
16149
16148
|
var init_isTamaguiElement_native = __esmMin((() => {
|
|
16150
16149
|
init_isTamaguiComponent_native();
|
|
16151
|
-
isTamaguiElement = function(child) {
|
|
16150
|
+
isTamaguiElement = function isTamaguiElement2(child) {
|
|
16152
16151
|
return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
|
|
16153
16152
|
};
|
|
16154
16153
|
}));
|
|
@@ -16362,11 +16361,11 @@ function isDynamicUnitValue(value) {
|
|
|
16362
16361
|
return !!((_UNIT_RE_exec = UNIT_RE.exec(trimmed.replace(/\s+/g, ""))) === null || _UNIT_RE_exec === void 0 ? void 0 : _UNIT_RE_exec[2]);
|
|
16363
16362
|
}
|
|
16364
16363
|
function getUnitContext(key, styleState) {
|
|
16364
|
+
var _ref;
|
|
16365
16365
|
var _styleState_conf_settings, _styleState_conf, _styleState_style, _groupEntry_state, _styleState_componentState_group_, _styleState_componentState_group, _styleState_componentState;
|
|
16366
16366
|
var window = Dimensions.get("window");
|
|
16367
16367
|
var fontScale = typeof PixelRatio !== "undefined" && PixelRatio.getFontScale ? PixelRatio.getFontScale() : 1;
|
|
16368
|
-
var
|
|
16369
|
-
var remBaseFontSize = (_styleState_conf_settings_remBaseFontSize = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _styleState_conf_settings_remBaseFontSize !== void 0 ? _styleState_conf_settings_remBaseFontSize : 16;
|
|
16368
|
+
var remBaseFontSize = (_ref = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _ref !== void 0 ? _ref : 16;
|
|
16370
16369
|
var isFontSizeProp = key === "fontSize";
|
|
16371
16370
|
var elementFontSize = typeof (styleState === null || styleState === void 0 ? void 0 : (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.fontSize) === "number" ? styleState.style.fontSize : remBaseFontSize;
|
|
16372
16371
|
var groupContext = styleState === null || styleState === void 0 ? void 0 : styleState.flatGroupContext;
|
|
@@ -16423,10 +16422,10 @@ function evaluateCalc(expr, ctx) {
|
|
|
16423
16422
|
if (s.toLowerCase().startsWith("calc(") && s.endsWith(")")) s = s.slice(5, -1).trim();
|
|
16424
16423
|
var tokens = s.match(/[()*/+-]|[^\s()*/+-]+/g) || [];
|
|
16425
16424
|
var pos = 0;
|
|
16426
|
-
var peek = function() {
|
|
16425
|
+
var peek = function peek2() {
|
|
16427
16426
|
return tokens[pos];
|
|
16428
16427
|
};
|
|
16429
|
-
var consume = function() {
|
|
16428
|
+
var consume = function consume2() {
|
|
16430
16429
|
return tokens[pos++];
|
|
16431
16430
|
};
|
|
16432
16431
|
function parseExpression() {
|
|
@@ -16710,8 +16709,8 @@ function resolveConditionModifier(state, condition, authored) {
|
|
|
16710
16709
|
ranks[rankIndex] = precedence;
|
|
16711
16710
|
var buildCSS = false;
|
|
16712
16711
|
if (kind === 2) {
|
|
16713
|
-
var _state_flatMediaState;
|
|
16714
16712
|
var _state;
|
|
16713
|
+
var _state_flatMediaState;
|
|
16715
16714
|
var query = modifier[3];
|
|
16716
16715
|
if (!query) return setConditionUnresolved(condition, name);
|
|
16717
16716
|
if (buildCSS) appendConditionWrapper(condition, `@media ${query}`);
|
|
@@ -16727,8 +16726,7 @@ function resolveConditionModifier(state, condition, authored) {
|
|
|
16727
16726
|
return;
|
|
16728
16727
|
}
|
|
16729
16728
|
if (kind === 6) {
|
|
16730
|
-
var _state_componentState_group, _state_flatGroupContext, _component_media;
|
|
16731
|
-
var _state1, _state2;
|
|
16729
|
+
var _state1, _state2, _state_componentState_group, _state_flatGroupContext, _component_media;
|
|
16732
16730
|
var size = modifier[4];
|
|
16733
16731
|
var containerName = modifier[5];
|
|
16734
16732
|
var groupName = `@${containerName}`;
|
|
@@ -16746,14 +16744,13 @@ function resolveConditionModifier(state, condition, authored) {
|
|
|
16746
16744
|
}
|
|
16747
16745
|
var selector = modifier[3];
|
|
16748
16746
|
if (kind === 5) {
|
|
16747
|
+
var _ref, _state3;
|
|
16749
16748
|
var _state_componentState_group1, _state_flatGroupContext2, _this;
|
|
16750
|
-
var _state3;
|
|
16751
16749
|
var groupName1 = modifier[4];
|
|
16752
16750
|
if (buildCSS) condition[conditionSelector] += `:where(.t_group_${groupName1}${selector} *)`;
|
|
16753
16751
|
var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupName1];
|
|
16754
16752
|
var context1 = (_state_flatGroupContext2 = state.flatGroupContext) === null || _state_flatGroupContext2 === void 0 ? void 0 : _state_flatGroupContext2[groupName1];
|
|
16755
|
-
|
|
16756
|
-
if (!((_this = (_component_pseudo = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
|
|
16753
|
+
if (!((_this = (_ref = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _ref !== void 0 ? _ref : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
|
|
16757
16754
|
((_state3 = state).flatGroupKeys || (_state3.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName1);
|
|
16758
16755
|
} else {
|
|
16759
16756
|
var _state4;
|
|
@@ -16890,7 +16887,7 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
16890
16887
|
}
|
|
16891
16888
|
var resolveClassName = styleFrontend === null || styleFrontend === void 0 ? void 0 : styleFrontend.resolveClassName;
|
|
16892
16889
|
var composedProps = null;
|
|
16893
|
-
var sink = function(entry2) {
|
|
16890
|
+
var sink = function sink2(entry2) {
|
|
16894
16891
|
var property3 = entry2[0];
|
|
16895
16892
|
var condition2 = entry2[2];
|
|
16896
16893
|
if (property3.charCodeAt(0) === 95 && property3.charCodeAt(1) === 95) {
|
|
@@ -17057,10 +17054,8 @@ function contributeProp(pass, keyOg, valOg) {
|
|
|
17057
17054
|
if (!isValidStyleKeyInit) {
|
|
17058
17055
|
if (keyInit === "textOverflow") {
|
|
17059
17056
|
if (isText && valInit === "ellipsis") {
|
|
17060
|
-
var _viewProps, _viewProps1;
|
|
17061
|
-
var _numberOfLines;
|
|
17057
|
+
var _viewProps, _numberOfLines, _viewProps1, _ellipsizeMode;
|
|
17062
17058
|
(_numberOfLines = (_viewProps = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps.numberOfLines = 1);
|
|
17063
|
-
var _ellipsizeMode;
|
|
17064
17059
|
(_ellipsizeMode = (_viewProps1 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps1.ellipsizeMode = "tail");
|
|
17065
17060
|
}
|
|
17066
17061
|
return;
|
|
@@ -17175,11 +17170,10 @@ function mergeStyle(styleState, key, val) {
|
|
|
17175
17170
|
var { viewProps, styleProps, staticConfig } = styleState;
|
|
17176
17171
|
var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
|
|
17177
17172
|
if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
|
|
17173
|
+
var _styleState, _ref;
|
|
17178
17174
|
var _styleState_originalContextPropValues;
|
|
17179
|
-
var _styleState;
|
|
17180
17175
|
(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
|
|
17181
17176
|
var originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];
|
|
17182
|
-
var _ref;
|
|
17183
17177
|
styleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;
|
|
17184
17178
|
}
|
|
17185
17179
|
if (key === "transform" || key in stylePropsTransform) {
|
|
@@ -17228,8 +17222,8 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
|
|
|
17228
17222
|
}
|
|
17229
17223
|
function writeStyleRecord(state, property, value, cursor, original, flags) {
|
|
17230
17224
|
var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
|
|
17231
|
-
var _direct_flatPass, _direct_flatPass1;
|
|
17232
17225
|
var _direct;
|
|
17226
|
+
var _direct_flatPass, _direct_flatPass1;
|
|
17233
17227
|
var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
|
|
17234
17228
|
var identity = cursor ? cursor[conditionKey] : "";
|
|
17235
17229
|
if (value === "unset" && identity !== "") {
|
|
@@ -17276,11 +17270,11 @@ function completeResolvedStyles(state) {
|
|
|
17276
17270
|
var direct = state;
|
|
17277
17271
|
var shadow = direct.flatWebShadow;
|
|
17278
17272
|
if (shadow && (direct.flatBoxShadowSequence || 0) <= shadow[4]) {
|
|
17273
|
+
var _shadow_;
|
|
17279
17274
|
var offset = shadow[1] || {
|
|
17280
17275
|
width: 0,
|
|
17281
17276
|
height: 0
|
|
17282
17277
|
};
|
|
17283
|
-
var _shadow_;
|
|
17284
17278
|
var color = normalizeColor(shadow[0], (_shadow_ = shadow[2]) !== null && _shadow_ !== void 0 ? _shadow_ : 1);
|
|
17285
17279
|
if (color) {
|
|
17286
17280
|
var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow[3])} ${color}`;
|
|
@@ -17518,8 +17512,8 @@ function configuredValue(state, property, raw) {
|
|
|
17518
17512
|
}
|
|
17519
17513
|
function ownsSourceLayer(state, property) {
|
|
17520
17514
|
var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
17521
|
-
var _direct_flatPass, _direct_flatPass1;
|
|
17522
17515
|
var _direct;
|
|
17516
|
+
var _direct_flatPass, _direct_flatPass1;
|
|
17523
17517
|
var direct = state;
|
|
17524
17518
|
var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
|
|
17525
17519
|
var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
|
|
@@ -17799,15 +17793,14 @@ function walkConditionalValue(state, property, value, parent, sink) {
|
|
|
17799
17793
|
if (!(flags & 1)) continue;
|
|
17800
17794
|
if (start === end) continue;
|
|
17801
17795
|
if (flags & 2) {
|
|
17802
|
-
var _slices, _index;
|
|
17803
|
-
var _;
|
|
17796
|
+
var _slices, _index, _;
|
|
17804
17797
|
var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
|
|
17805
17798
|
emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
|
|
17806
17799
|
hasBase = true;
|
|
17807
17800
|
} else if (warnMode);
|
|
17808
17801
|
}
|
|
17809
17802
|
for (var index1 = 0; index1 < segments.length; index1 += 5) {
|
|
17810
|
-
var _slices1, _ref;
|
|
17803
|
+
var _slices1, _ref, _1;
|
|
17811
17804
|
var start1 = segments[index1];
|
|
17812
17805
|
var end1 = segments[index1 + 1];
|
|
17813
17806
|
var flags1 = segments[index1 + 4];
|
|
@@ -17817,12 +17810,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
|
|
|
17817
17810
|
continue;
|
|
17818
17811
|
}
|
|
17819
17812
|
if (start1 === end1) continue;
|
|
17820
|
-
var _1;
|
|
17821
17813
|
var cursor = conditionFromKey(state, (_1 = (_slices1 = slices)[_ref = index1 + 2]) !== null && _1 !== void 0 ? _1 : _slices1[_ref] = value.slice(segments[index1 + 2], segments[index1 + 3]), parentCondition);
|
|
17822
17814
|
conditions |= cursor[conditionValue];
|
|
17823
17815
|
if (cursor[conditionValue] & conditionResolvedFlag || warnMode) {
|
|
17824
|
-
var _slices2, _index1;
|
|
17825
|
-
var _2;
|
|
17816
|
+
var _slices2, _index1, _2;
|
|
17826
17817
|
emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
|
|
17827
17818
|
}
|
|
17828
17819
|
}
|
|
@@ -17938,7 +17929,7 @@ function emitVariantStyle(state, key, value, original, condition, disabled) {
|
|
|
17938
17929
|
pass[passParentCursor] = parent;
|
|
17939
17930
|
pass[passVariantOutput] = parentVariantOutput;
|
|
17940
17931
|
}
|
|
17941
|
-
var shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig,
|
|
17932
|
+
var shouldTrackStyleTokenProvenance, conditionValue, conditionPlatform, conditionKey, conditionSelector, conditionTheme, conditionWrappers, conditionAtoms, conditionRanks, conditionResolvedFlag, conditionPlatformPseudoFlag, passClassName, passShouldDoClasses, passContainerValue, passContainerName, passContainerType, passFrontendGroup, passFrontendContainer, passFrontendContainerType, passSourceLayer, passParentCursor, passMapSourceKey, passVariantOutput, passFlags, sourceLayerBase, sourceLayerVariant, sourceLayerResolver, sourceLayerProps, sourceLayerStyle, passNoSkipFlag, passDisableShorthandsFlag, passNoExpandFlag, passNoMergeFlag, passHocFlag, passTextFlag, passInputFlag, passAsChildStyleFlag, getSplitStyles, stylePieceStaticConfig, resolvedStylePieceCache, resolveStyleObject, recordInline, recordNormalize, recordRetract, recordDefault, recordCSS, borderTargets, valueCacheConf, valueCacheRevision, valueCaches, valueCacheEntries, valueCacheRoot, parsedSlices, shadowRecipeProperties, shadowRecipeKeywords;
|
|
17942
17933
|
var init_getSplitStyles_native = __esmMin((() => {
|
|
17943
17934
|
init_transitionResolver_native();
|
|
17944
17935
|
init_index_native$6();
|
|
@@ -18013,7 +18004,7 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
18013
18004
|
passTextFlag = 32;
|
|
18014
18005
|
passInputFlag = 64;
|
|
18015
18006
|
passAsChildStyleFlag = 128;
|
|
18016
|
-
getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
|
|
18007
|
+
getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
|
|
18017
18008
|
var _staticConfig_Component_staticConfig, _staticConfig_Component, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_flatGroupKeys1, _styleState_flatGroupMedia1, _styleState_style;
|
|
18018
18009
|
var conf = getConfig();
|
|
18019
18010
|
styleStaticConfig || (styleStaticConfig = getStyleStaticConfig(staticConfig, conf));
|
|
@@ -18233,15 +18224,13 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
18233
18224
|
var nativeTextMetrics;
|
|
18234
18225
|
var _styleState_style2;
|
|
18235
18226
|
if (viewProps.tabIndex === 0) {
|
|
18236
|
-
var _viewProps;
|
|
18237
|
-
var _accessible;
|
|
18227
|
+
var _viewProps, _accessible;
|
|
18238
18228
|
(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
|
|
18239
18229
|
}
|
|
18240
18230
|
if ((isText || isInput || staticConfig.isDOM) && !isHOC && (styleState.nativeLineHeight !== void 0 || ((_styleState_style2 = styleState.style) === null || _styleState_style2 === void 0 ? void 0 : _styleState_style2.fontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentFontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentLineHeight) !== void 0)) {
|
|
18231
|
+
var _styleState2, _styleState_nativeLineHeight;
|
|
18241
18232
|
var _parentSplitStyles_nativeTextMetrics;
|
|
18242
|
-
var _styleState2;
|
|
18243
18233
|
var style = (_styleState2 = styleState).style || (_styleState2.style = {});
|
|
18244
|
-
var _styleState_nativeLineHeight;
|
|
18245
18234
|
var lineHeight = (_styleState_nativeLineHeight = styleState.nativeLineHeight) !== null && _styleState_nativeLineHeight !== void 0 ? _styleState_nativeLineHeight : parentSplitStyles === null || parentSplitStyles === void 0 ? void 0 : (_parentSplitStyles_nativeTextMetrics = parentSplitStyles.nativeTextMetrics) === null || _parentSplitStyles_nativeTextMetrics === void 0 ? void 0 : _parentSplitStyles_nativeTextMetrics.lineHeight;
|
|
18246
18235
|
if (typeof lineHeight === "string") {
|
|
18247
18236
|
var length = resolveNativeUnits("lineHeight", lineHeight, styleState);
|
|
@@ -18372,8 +18361,7 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
18372
18361
|
isText: true,
|
|
18373
18362
|
validStyles: stylePropsInput
|
|
18374
18363
|
};
|
|
18375
|
-
|
|
18376
|
-
setStylePieceCompiler(compileStylePieceRuntime);
|
|
18364
|
+
setStylePieceCompiler(function compileStylePieceRuntime2(piece, layer) {});
|
|
18377
18365
|
setStylePieceResolver(function(piece, theme, themeName) {
|
|
18378
18366
|
var split = getSplitStyles({ style: piece }, stylePieceStaticConfig, theme, themeName, defaultComponentStateMounted, {
|
|
18379
18367
|
isAnimated: false,
|
|
@@ -18382,7 +18370,7 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
18382
18370
|
return (split === null || split === void 0 ? void 0 : split.style) || {};
|
|
18383
18371
|
});
|
|
18384
18372
|
resolvedStylePieceCache = /* @__PURE__ */ new WeakMap();
|
|
18385
|
-
resolveStyleObject = function(styleState, styleIn) {
|
|
18373
|
+
resolveStyleObject = function resolveStyleObject2(styleState, styleIn) {
|
|
18386
18374
|
var { conf, styleProps } = styleState;
|
|
18387
18375
|
var styleOut = {};
|
|
18388
18376
|
var originalValues;
|
|
@@ -18397,10 +18385,10 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
18397
18385
|
childState.flatAtomics = void 0;
|
|
18398
18386
|
childState.flatSlots = void 0;
|
|
18399
18387
|
childState.flatPropertyLayers = void 0;
|
|
18400
|
-
var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
|
|
18388
|
+
var mergeAccepted = function mergeAccepted2(_state, key2, value2, disableNormalize, originalValue) {
|
|
18389
|
+
var _ref;
|
|
18401
18390
|
styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : normalizeValueWithProperty(value2, key2);
|
|
18402
|
-
var
|
|
18403
|
-
var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
|
|
18391
|
+
var trackedOriginal = (_ref = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _ref !== void 0 ? _ref : originalValue;
|
|
18404
18392
|
if (trackedOriginal !== void 0) (originalValues || (originalValues = {}))[key2] = trackedOriginal;
|
|
18405
18393
|
};
|
|
18406
18394
|
for (var key in styleIn) {
|
|
@@ -18511,9 +18499,9 @@ function usePointerEvents(props, viewProps) {
|
|
|
18511
18499
|
};
|
|
18512
18500
|
if (!hasPointerEvents) return;
|
|
18513
18501
|
var bag = ref.current;
|
|
18514
|
-
var createNormalizedEvent = function(e) {
|
|
18515
|
-
var touch = e.nativeEvent;
|
|
18502
|
+
var createNormalizedEvent = function createNormalizedEvent2(e) {
|
|
18516
18503
|
var _touch_identifier;
|
|
18504
|
+
var touch = e.nativeEvent;
|
|
18517
18505
|
return _objectSpread2(_objectSpread2({}, e), {}, {
|
|
18518
18506
|
clientX: touch.pageX,
|
|
18519
18507
|
clientY: touch.pageY,
|
|
@@ -18525,10 +18513,10 @@ function usePointerEvents(props, viewProps) {
|
|
|
18525
18513
|
pointerId: (_touch_identifier = touch.identifier) !== null && _touch_identifier !== void 0 ? _touch_identifier : 0,
|
|
18526
18514
|
nativeEvent: touch,
|
|
18527
18515
|
target: {
|
|
18528
|
-
setPointerCapture: function(_pointerId) {
|
|
18516
|
+
setPointerCapture: function setPointerCapture(_pointerId) {
|
|
18529
18517
|
bag.isCaptured = true;
|
|
18530
18518
|
},
|
|
18531
|
-
releasePointerCapture: function(_pointerId) {
|
|
18519
|
+
releasePointerCapture: function releasePointerCapture(_pointerId) {
|
|
18532
18520
|
bag.isCaptured = false;
|
|
18533
18521
|
}
|
|
18534
18522
|
}
|
|
@@ -18623,7 +18611,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
|
|
|
18623
18611
|
init_index_native$11();
|
|
18624
18612
|
init_useMedia_native();
|
|
18625
18613
|
init_objectSpread2();
|
|
18626
|
-
useGroupSetRevision = function(pseudoGroups, mediaGroups) {
|
|
18614
|
+
useGroupSetRevision = function useGroupSetRevision2(pseudoGroups, mediaGroups) {
|
|
18627
18615
|
var previous = (0, react.useRef)({
|
|
18628
18616
|
pseudoGroups,
|
|
18629
18617
|
mediaGroups,
|
|
@@ -18636,7 +18624,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
|
|
|
18636
18624
|
};
|
|
18637
18625
|
return previous.current.revision;
|
|
18638
18626
|
};
|
|
18639
|
-
setsEqual = function(a, b) {
|
|
18627
|
+
setsEqual = function setsEqual2(a, b) {
|
|
18640
18628
|
if (a === b) return true;
|
|
18641
18629
|
if (!a || !b || a.size !== b.size) return false;
|
|
18642
18630
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
@@ -18657,7 +18645,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
|
|
|
18657
18645
|
}
|
|
18658
18646
|
return true;
|
|
18659
18647
|
};
|
|
18660
|
-
subscribeToContextGroup = function(props) {
|
|
18648
|
+
subscribeToContextGroup = function subscribeToContextGroup2(props) {
|
|
18661
18649
|
var { pseudoGroups, mediaGroups, groupContext } = props;
|
|
18662
18650
|
if (pseudoGroups || mediaGroups) {
|
|
18663
18651
|
var disposables = /* @__PURE__ */ new Set();
|
|
@@ -18704,7 +18692,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
|
|
|
18704
18692
|
};
|
|
18705
18693
|
}
|
|
18706
18694
|
};
|
|
18707
|
-
createGroupListener = function(name, param) {
|
|
18695
|
+
createGroupListener = function createGroupListener2(name, param) {
|
|
18708
18696
|
var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param;
|
|
18709
18697
|
var parent = groupContext === null || groupContext === void 0 ? void 0 : groupContext[name];
|
|
18710
18698
|
if (!parent) return function() {};
|
|
@@ -18759,7 +18747,7 @@ var init_subscribeToContextGroup_native = __esmMin((() => {
|
|
|
18759
18747
|
var ClientOnlyContext, ClientOnly;
|
|
18760
18748
|
var init_ClientOnly_native = __esmMin((() => {
|
|
18761
18749
|
ClientOnlyContext = /* @__PURE__ */ (0, react.createContext)(false);
|
|
18762
|
-
ClientOnly = function(param) {
|
|
18750
|
+
ClientOnly = function ClientOnly2(param) {
|
|
18763
18751
|
var { children, enabled } = param;
|
|
18764
18752
|
var existingValue = (0, react.useContext)(ClientOnlyContext);
|
|
18765
18753
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
|
|
@@ -18780,7 +18768,7 @@ function useClientValue(value) {
|
|
|
18780
18768
|
var useIsClientOnly;
|
|
18781
18769
|
var init_index_native$2 = __esmMin((() => {
|
|
18782
18770
|
init_ClientOnly_native();
|
|
18783
|
-
useIsClientOnly = function() {
|
|
18771
|
+
useIsClientOnly = function useIsClientOnly2() {
|
|
18784
18772
|
return react.useContext(ClientOnlyContext);
|
|
18785
18773
|
};
|
|
18786
18774
|
}));
|
|
@@ -18803,10 +18791,10 @@ var init_useComponentState_native = __esmMin((() => {
|
|
|
18803
18791
|
init_defaultComponentState_native();
|
|
18804
18792
|
init_isObj_native();
|
|
18805
18793
|
init_objectSpread2();
|
|
18806
|
-
useComponentState = function(props, animationDriver, staticConfig, config) {
|
|
18794
|
+
useComponentState = function useComponentState2(props, animationDriver, staticConfig, config) {
|
|
18807
18795
|
"use no memo";
|
|
18796
|
+
var _stateRef, _ref, _ref1, _curStateRef, _curStateRef1;
|
|
18808
18797
|
var _getPlatformDriver, _animationDriver_usePresence;
|
|
18809
|
-
var _stateRef, _curStateRef, _curStateRef1;
|
|
18810
18798
|
var isHydrated = useDidFinishSSR();
|
|
18811
18799
|
var needsHydration = !useIsClientOnly();
|
|
18812
18800
|
var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
|
|
@@ -18817,10 +18805,8 @@ var init_useComponentState_native = __esmMin((() => {
|
|
|
18817
18805
|
optimizeForFirstRender: isOptimizedForFirstRender()
|
|
18818
18806
|
});
|
|
18819
18807
|
var hasAnimationProp = Boolean(!isHOC && "transition" in props || props.style && hasAnimatedStyleValue(props.style));
|
|
18820
|
-
var
|
|
18821
|
-
var
|
|
18822
|
-
var _animationDriver_outputStyle;
|
|
18823
|
-
var outputStyle = (_animationDriver_outputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _animationDriver_outputStyle !== void 0 ? _animationDriver_outputStyle : "css";
|
|
18808
|
+
var inputStyle = (_ref = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _ref !== void 0 ? _ref : "css";
|
|
18809
|
+
var outputStyle = (_ref1 = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _ref1 !== void 0 ? _ref1 : "css";
|
|
18824
18810
|
if (!needsHydration && hasAnimationProp) curStateRef.hasAnimated = true;
|
|
18825
18811
|
var platformPseudoPossible = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = getPlatformDriver()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo));
|
|
18826
18812
|
var willBeAnimatedClient = Boolean((hasAnimationProp || platformPseudoPossible) && !isHOC && useAnimations || curStateRef.hasAnimated);
|
|
@@ -18830,8 +18816,7 @@ var init_useComponentState_native = __esmMin((() => {
|
|
|
18830
18816
|
var animatePresenceOptIn = willBeAnimated && !isHOC && props["animatePresence"] !== false;
|
|
18831
18817
|
if (animatePresenceOptIn) curStateRef.shouldRegisterPresence = true;
|
|
18832
18818
|
else {
|
|
18833
|
-
var _curStateRef2;
|
|
18834
|
-
var _shouldRegisterPresence;
|
|
18819
|
+
var _curStateRef2, _shouldRegisterPresence;
|
|
18835
18820
|
(_shouldRegisterPresence = (_curStateRef2 = curStateRef).shouldRegisterPresence) !== null && _shouldRegisterPresence !== void 0 || (_curStateRef2.shouldRegisterPresence = false);
|
|
18836
18821
|
}
|
|
18837
18822
|
var presenceResult = (animationDriver === null || animationDriver === void 0 ? void 0 : (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver, curStateRef)) || null;
|
|
@@ -18924,7 +18909,7 @@ var init_useComponentState_native = __esmMin((() => {
|
|
|
18924
18909
|
};
|
|
18925
18910
|
return result;
|
|
18926
18911
|
};
|
|
18927
|
-
isDisabled = function(props) {
|
|
18912
|
+
isDisabled = function isDisabled2(props) {
|
|
18928
18913
|
var _props_accessibilityState;
|
|
18929
18914
|
return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || false;
|
|
18930
18915
|
};
|
|
@@ -18935,7 +18920,7 @@ var useSplitStyles;
|
|
|
18935
18920
|
var init_useSplitStyles_native = __esmMin((() => {
|
|
18936
18921
|
init_index_native$6();
|
|
18937
18922
|
init_getSplitStyles_native();
|
|
18938
|
-
useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
|
|
18923
|
+
useSplitStyles = function useSplitStyles2(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
|
|
18939
18924
|
"use no memo";
|
|
18940
18925
|
var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
|
|
18941
18926
|
if (process.env.TAMAGUI_RUNTIME !== "island" && false);
|
|
@@ -18978,7 +18963,7 @@ var init_Slot_native = __esmMin((() => {
|
|
|
18978
18963
|
}
|
|
18979
18964
|
return react.Children.count(children) > 1 ? react.Children.only(null) : null;
|
|
18980
18965
|
}));
|
|
18981
|
-
Slottable = function(param) {
|
|
18966
|
+
Slottable = function Slottable2(param) {
|
|
18982
18967
|
var { children } = param;
|
|
18983
18968
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
18984
18969
|
};
|
|
@@ -19060,10 +19045,10 @@ function createComponent(staticConfig) {
|
|
|
19060
19045
|
var { Component, isText, isHOC } = staticConfig;
|
|
19061
19046
|
var res;
|
|
19062
19047
|
var { displayName } = staticConfig;
|
|
19063
|
-
var component = function(propsInWithRef) {
|
|
19048
|
+
var component = function component2(propsInWithRef) {
|
|
19064
19049
|
"use no memo";
|
|
19050
|
+
var _stateRef_current, _avoidReRenders, _ref, _ref1;
|
|
19065
19051
|
var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
|
|
19066
|
-
var _stateRef_current;
|
|
19067
19052
|
var forwardedRef = propsInWithRef.ref;
|
|
19068
19053
|
var propsIn = propsInWithRef;
|
|
19069
19054
|
config = config || getConfig();
|
|
@@ -19098,12 +19083,12 @@ function createComponent(staticConfig) {
|
|
|
19098
19083
|
overriddenContextProps = overrides;
|
|
19099
19084
|
var groupContextParent = react.default.useContext(GroupContext);
|
|
19100
19085
|
var animationDriver = (function() {
|
|
19086
|
+
var _ref9, _componentContext_animationDriver;
|
|
19101
19087
|
if (props.animatedBy && config) {
|
|
19102
19088
|
if (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;
|
|
19103
19089
|
return props.animatedBy === "default" ? config.animations : null;
|
|
19104
19090
|
}
|
|
19105
|
-
|
|
19106
|
-
return (_ref5 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref5 !== void 0 ? _ref5 : null;
|
|
19091
|
+
return (_ref9 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref9 !== void 0 ? _ref9 : null;
|
|
19107
19092
|
})();
|
|
19108
19093
|
var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
|
|
19109
19094
|
var componentState = useComponentState(props, (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig, config);
|
|
@@ -19111,7 +19096,6 @@ function createComponent(staticConfig) {
|
|
|
19111
19096
|
var { groupName } = componentState;
|
|
19112
19097
|
var { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;
|
|
19113
19098
|
props = componentState.props;
|
|
19114
|
-
var _avoidReRenders;
|
|
19115
19099
|
(_avoidReRenders = (_stateRef_current = stateRef.current).avoidReRenders) !== null && _avoidReRenders !== void 0 || (_stateRef_current.avoidReRenders = !!(animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders));
|
|
19116
19100
|
if (stateRef.current.avoidReRenders) useIsomorphicLayoutEffect(function() {
|
|
19117
19101
|
var emitted = stateRef.current.prevPseudoState;
|
|
@@ -19158,9 +19142,9 @@ function createComponent(staticConfig) {
|
|
|
19158
19142
|
var _stateRef_current1;
|
|
19159
19143
|
themeStateProps.deopt = willBeAnimated;
|
|
19160
19144
|
themeStateProps.nativeUpdate = (_stateRef_current1 = stateRef.current).nativeUpdateProxy || (_stateRef_current1.nativeUpdateProxy = function(next) {
|
|
19145
|
+
var _ref9;
|
|
19161
19146
|
var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
|
|
19162
|
-
|
|
19163
|
-
return (_stateRef_current_nativeStyleUpdate1 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _stateRef_current_nativeStyleUpdate1 !== void 0 ? _stateRef_current_nativeStyleUpdate1 : false;
|
|
19147
|
+
return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
19164
19148
|
});
|
|
19165
19149
|
var [theme, themeState] = useThemeWithState(themeStateProps);
|
|
19166
19150
|
if (!isAnimatedCustomComponent) elementType = element || elementType;
|
|
@@ -19186,10 +19170,8 @@ function createComponent(staticConfig) {
|
|
|
19186
19170
|
willBeAnimated = finalizedComponentState.willBeAnimated;
|
|
19187
19171
|
willBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;
|
|
19188
19172
|
platformPseudo = finalizedComponentState.platformPseudo;
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
var _splitStyles_frontendContainer;
|
|
19192
|
-
var containerProp = (_splitStyles_frontendContainer = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _splitStyles_frontendContainer !== void 0 ? _splitStyles_frontendContainer : props.container;
|
|
19173
|
+
groupName = (_ref = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _ref !== void 0 ? _ref : groupName;
|
|
19174
|
+
var containerProp = (_ref1 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _ref1 !== void 0 ? _ref1 : props.container;
|
|
19193
19175
|
var containerName = props.containerName || (typeof containerProp === "string" ? containerProp : void 0);
|
|
19194
19176
|
var containerType = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainerType) || props.containerType || (containerProp ? "inline-size" : void 0);
|
|
19195
19177
|
var isContainer = !!containerType && containerType !== "normal";
|
|
@@ -19216,7 +19198,7 @@ function createComponent(staticConfig) {
|
|
|
19216
19198
|
};
|
|
19217
19199
|
var entry = {
|
|
19218
19200
|
state: { pseudo: defaultComponentStateMounted },
|
|
19219
|
-
subscribe: function(listener) {
|
|
19201
|
+
subscribe: function subscribe(listener) {
|
|
19220
19202
|
var _stateRef_current_group2;
|
|
19221
19203
|
var dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
|
|
19222
19204
|
return function() {
|
|
@@ -19370,6 +19352,7 @@ function createComponent(staticConfig) {
|
|
|
19370
19352
|
var _stateRef_current2;
|
|
19371
19353
|
var ogSetStateShallow = setStateShallow;
|
|
19372
19354
|
stateRef.current.updateStyleListener = function() {
|
|
19355
|
+
var _ref9, _ref12;
|
|
19373
19356
|
var useStyleListener = stateRef.current.useStyleListener;
|
|
19374
19357
|
if (!useStyleListener) {
|
|
19375
19358
|
var pendingState = stateRef.current.nextState;
|
|
@@ -19379,8 +19362,7 @@ function createComponent(staticConfig) {
|
|
|
19379
19362
|
var updatedState = stateRef.current.nextState || state;
|
|
19380
19363
|
var mediaState2 = stateRef.current.nextMedia;
|
|
19381
19364
|
var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
|
|
19382
|
-
var
|
|
19383
|
-
var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
|
|
19365
|
+
var effectiveTransition2 = (_ref9 = (_ref12 = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _ref12 !== void 0 ? _ref12 : props.transition) !== null && _ref9 !== void 0 ? _ref9 : platformPseudo ? "0ms" : void 0;
|
|
19384
19366
|
stateRef.current.prevPseudoState = extractPseudoState(updatedState);
|
|
19385
19367
|
var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
|
|
19386
19368
|
useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
|
|
@@ -19413,7 +19395,7 @@ function createComponent(staticConfig) {
|
|
|
19413
19395
|
(_stateRef_current_updateStyleListener = (_stateRef_current3 = stateRef.current).updateStyleListener) === null || _stateRef_current_updateStyleListener === void 0 || _stateRef_current_updateStyleListener.call(_stateRef_current3);
|
|
19414
19396
|
} else ogSetStateShallow(next);
|
|
19415
19397
|
};
|
|
19416
|
-
setStateShallow = function(state2) {
|
|
19398
|
+
setStateShallow = function setStateShallow2(state2) {
|
|
19417
19399
|
var _stateRef_current_setStateShallow, _stateRef_current3;
|
|
19418
19400
|
(_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
|
|
19419
19401
|
};
|
|
@@ -19432,7 +19414,7 @@ function createComponent(staticConfig) {
|
|
|
19432
19414
|
var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
|
|
19433
19415
|
stateRef.current.prevStyle = splitStylesStyle || null;
|
|
19434
19416
|
var propsWithAnimation = props;
|
|
19435
|
-
var
|
|
19417
|
+
var _ref13 = viewPropsIn || {}, { asChild, children, themeShallow, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref13, nonTamaguiProps = _objectWithoutProperties(_ref13, _excluded2$2);
|
|
19436
19418
|
var viewProps = nonTamaguiProps;
|
|
19437
19419
|
if (props.forceStyle) viewProps.forceStyle = props.forceStyle;
|
|
19438
19420
|
if (isHOC) {
|
|
@@ -19446,12 +19428,12 @@ function createComponent(staticConfig) {
|
|
|
19446
19428
|
var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
|
|
19447
19429
|
var animatedRef;
|
|
19448
19430
|
if (shouldUseAnimation) {
|
|
19431
|
+
var _ref2, _ref3;
|
|
19449
19432
|
var _splitStyles_nativeTextMetrics;
|
|
19450
19433
|
var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
|
|
19451
19434
|
stateRef.current.useStyleListener = listener;
|
|
19452
19435
|
} : void 0;
|
|
19453
|
-
var
|
|
19454
|
-
var effectiveTransition = (_ref = (_splitStyles_effectiveTransition = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _splitStyles_effectiveTransition !== void 0 ? _splitStyles_effectiveTransition : props.transition) !== null && _ref !== void 0 ? _ref : platformPseudo ? "0ms" : void 0;
|
|
19436
|
+
var effectiveTransition = (_ref2 = (_ref3 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _ref3 !== void 0 ? _ref3 : props.transition) !== null && _ref2 !== void 0 ? _ref2 : platformPseudo ? "0ms" : void 0;
|
|
19455
19437
|
if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
|
|
19456
19438
|
stateRef.current.prevPseudoState = extractPseudoState(state);
|
|
19457
19439
|
var animations = useAnimations({
|
|
@@ -19508,7 +19490,7 @@ function createComponent(staticConfig) {
|
|
|
19508
19490
|
if (stateRef.current.host) setRef(forwardedRef, stateRef.current.host);
|
|
19509
19491
|
}, [forwardedRef]);
|
|
19510
19492
|
usePointerEvents(props, viewProps);
|
|
19511
|
-
var unPress = function() {
|
|
19493
|
+
var unPress = function unPress2() {
|
|
19512
19494
|
setStateShallow({
|
|
19513
19495
|
press: false,
|
|
19514
19496
|
pressIn: false
|
|
@@ -19544,7 +19526,7 @@ function createComponent(staticConfig) {
|
|
|
19544
19526
|
useIsomorphicLayoutEffect(function() {
|
|
19545
19527
|
var disposeSafeArea;
|
|
19546
19528
|
if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
|
|
19547
|
-
var updateSafeArea = function() {
|
|
19529
|
+
var updateSafeArea = function updateSafeArea2() {
|
|
19548
19530
|
setState(function(previous) {
|
|
19549
19531
|
return _objectSpread2({}, previous);
|
|
19550
19532
|
});
|
|
@@ -19598,7 +19580,7 @@ function createComponent(staticConfig) {
|
|
|
19598
19580
|
onPressOut === null || onPressOut === void 0 || onPressOut(e);
|
|
19599
19581
|
onMouseUp === null || onMouseUp === void 0 || onMouseUp(e);
|
|
19600
19582
|
} : void 0 }, (attachHover || attachPress) && {
|
|
19601
|
-
onMouseEnter: function(e) {
|
|
19583
|
+
onMouseEnter: function onMouseEnter1(e) {
|
|
19602
19584
|
var next = {};
|
|
19603
19585
|
if (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;
|
|
19604
19586
|
if (needsPressState) {
|
|
@@ -19608,7 +19590,7 @@ function createComponent(staticConfig) {
|
|
|
19608
19590
|
onHoverIn === null || onHoverIn === void 0 || onHoverIn(e);
|
|
19609
19591
|
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
|
|
19610
19592
|
},
|
|
19611
|
-
onMouseLeave: function(e) {
|
|
19593
|
+
onMouseLeave: function onMouseLeave1(e) {
|
|
19612
19594
|
var next = {};
|
|
19613
19595
|
if (needsHoverState) next.hover = false;
|
|
19614
19596
|
if (needsPressState) {
|
|
@@ -19632,11 +19614,11 @@ function createComponent(staticConfig) {
|
|
|
19632
19614
|
unPress();
|
|
19633
19615
|
onPress === null || onPress === void 0 || onPress(e);
|
|
19634
19616
|
} : void 0
|
|
19635
|
-
}, attachPress && onLongPress && { onLongPress: function(e) {
|
|
19617
|
+
}, attachPress && onLongPress && { onLongPress: function onLongPress1(e) {
|
|
19636
19618
|
unPress();
|
|
19637
19619
|
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
19638
19620
|
} }), attachFocus && {
|
|
19639
|
-
onFocus: function(e) {
|
|
19621
|
+
onFocus: function onFocus1(e) {
|
|
19640
19622
|
var next = {};
|
|
19641
19623
|
if (componentContext.setParentFocusState) {
|
|
19642
19624
|
componentContext.setParentFocusState({ focusWithin: true });
|
|
@@ -19648,7 +19630,7 @@ function createComponent(staticConfig) {
|
|
|
19648
19630
|
setStateShallow(next);
|
|
19649
19631
|
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
19650
19632
|
},
|
|
19651
|
-
onBlur: function(e) {
|
|
19633
|
+
onBlur: function onBlur1(e) {
|
|
19652
19634
|
if (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });
|
|
19653
19635
|
setStateShallow({
|
|
19654
19636
|
focus: false,
|
|
@@ -19681,10 +19663,10 @@ function createComponent(staticConfig) {
|
|
|
19681
19663
|
});
|
|
19682
19664
|
var hasRealPressEvents = false;
|
|
19683
19665
|
var pressGesture = null;
|
|
19666
|
+
var _ref4, _ref5, _ref6, _ref7, _props_testID;
|
|
19684
19667
|
var propsWithHref = props;
|
|
19685
19668
|
var propsInWithHref = propsIn;
|
|
19686
|
-
var _props_testID
|
|
19687
|
-
var pressDebugDetail = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref1 !== void 0 ? _ref1 : props.accessibilityLabel) !== null && _ref2 !== void 0 ? _ref2 : propsIn.accessibilityLabel) !== null && _ref3 !== void 0 ? _ref3 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
19669
|
+
var pressDebugDetail = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref7 !== void 0 ? _ref7 : props.accessibilityLabel) !== null && _ref6 !== void 0 ? _ref6 : propsIn.accessibilityLabel) !== null && _ref5 !== void 0 ? _ref5 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
|
|
19688
19670
|
var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
|
|
19689
19671
|
hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
|
|
19690
19672
|
pressGesture = useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
|
|
@@ -19739,10 +19721,10 @@ function createComponent(staticConfig) {
|
|
|
19739
19721
|
var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
|
|
19740
19722
|
var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
|
|
19741
19723
|
if (provideText || provideFocus) {
|
|
19742
|
-
var
|
|
19724
|
+
var _ref8;
|
|
19743
19725
|
content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, componentContext), {}, {
|
|
19744
19726
|
inText: provideText || componentContext.inText,
|
|
19745
|
-
parentFontSize: (
|
|
19727
|
+
parentFontSize: (_ref8 = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _ref8 !== void 0 ? _ref8 : componentContext.parentFontSize,
|
|
19746
19728
|
parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
|
|
19747
19729
|
animatedText,
|
|
19748
19730
|
setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
|
|
@@ -19889,12 +19871,12 @@ var init_createComponent_native = __esmMin((() => {
|
|
|
19889
19871
|
hasSetupBaseViews = false;
|
|
19890
19872
|
lastInteractionWasKeyboard = { value: false };
|
|
19891
19873
|
lastInteractionWasTouch = { value: false };
|
|
19892
|
-
fromPx = function(val) {
|
|
19874
|
+
fromPx = function fromPx2(val) {
|
|
19893
19875
|
if (typeof val === "number") return val;
|
|
19894
19876
|
if (typeof val === "string") return +val.replace("px", "");
|
|
19895
19877
|
return 0;
|
|
19896
19878
|
};
|
|
19897
|
-
getCustomRender = function(renderProp, content, viewProps, state) {
|
|
19879
|
+
getCustomRender = function getCustomRender2(renderProp, content, viewProps, state) {
|
|
19898
19880
|
if (typeof renderProp === "function") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));
|
|
19899
19881
|
if (renderProp) {
|
|
19900
19882
|
if (typeof renderProp === "object" && /* @__PURE__ */ react.default.isValidElement(renderProp)) {
|
|
@@ -19913,8 +19895,8 @@ var init_createComponent_native = __esmMin((() => {
|
|
|
19913
19895
|
//#endregion
|
|
19914
19896
|
//#region ../web/dist/esm/helpers/getExpandedShorthands.native.js
|
|
19915
19897
|
function getExpandedShorthand(propKey, props) {
|
|
19916
|
-
var shorthands = getConfig().inverseShorthands;
|
|
19917
19898
|
var _props_propKey;
|
|
19899
|
+
var shorthands = getConfig().inverseShorthands;
|
|
19918
19900
|
return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
|
|
19919
19901
|
}
|
|
19920
19902
|
var init_getExpandedShorthands_native = __esmMin((() => {
|
|
@@ -19926,7 +19908,7 @@ var variableGeneration, registerCSSVariable, variableToCSS, tokensValueToVariabl
|
|
|
19926
19908
|
var init_registerCSSVariable_native = __esmMin((() => {
|
|
19927
19909
|
init_createVariable_native();
|
|
19928
19910
|
variableGeneration = 0;
|
|
19929
|
-
registerCSSVariable = function(v) {
|
|
19911
|
+
registerCSSVariable = function registerCSSVariable2(v) {
|
|
19930
19912
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
|
|
19931
19913
|
var key = getVariableValue(v);
|
|
19932
19914
|
if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {
|
|
@@ -19935,23 +19917,23 @@ var init_registerCSSVariable_native = __esmMin((() => {
|
|
|
19935
19917
|
}
|
|
19936
19918
|
}
|
|
19937
19919
|
};
|
|
19938
|
-
variableToCSS = function(v) {
|
|
19920
|
+
variableToCSS = function variableToCSS2(v) {
|
|
19939
19921
|
var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
19940
19922
|
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${createCSSVariable(v.name, false)}:${!unitless && typeof v.val === "number" ? `${v.val}px` : v.val}`;
|
|
19941
19923
|
return "";
|
|
19942
19924
|
};
|
|
19943
19925
|
tokensValueToVariable = /* @__PURE__ */ new Map();
|
|
19944
19926
|
autoVariables = [];
|
|
19945
|
-
serializeVariables = function(variables) {
|
|
19927
|
+
serializeVariables = function serializeVariables2(variables) {
|
|
19946
19928
|
return variables.map(function(v) {
|
|
19947
19929
|
return `--${v.name}:${v.val}`;
|
|
19948
19930
|
}).join(";");
|
|
19949
19931
|
};
|
|
19950
|
-
getAutoVariableCSS = function() {
|
|
19932
|
+
getAutoVariableCSS = function getAutoVariableCSS2() {
|
|
19951
19933
|
return serializeVariables(autoVariables);
|
|
19952
19934
|
};
|
|
19953
19935
|
mutatedAutoVariables = [];
|
|
19954
|
-
getMutatedAutoVariableCSS = function() {
|
|
19936
|
+
getMutatedAutoVariableCSS = function getMutatedAutoVariableCSS2() {
|
|
19955
19937
|
return serializeVariables(mutatedAutoVariables);
|
|
19956
19938
|
};
|
|
19957
19939
|
}));
|
|
@@ -20063,19 +20045,19 @@ var init_createFont_native = __esmMin((() => {
|
|
|
20063
20045
|
"800",
|
|
20064
20046
|
"900"
|
|
20065
20047
|
];
|
|
20066
|
-
processSection = function(section, keys, defaultValue) {
|
|
20048
|
+
processSection = function processSection2(section, keys, defaultValue) {
|
|
20067
20049
|
if (typeof section === "string") return section;
|
|
20068
20050
|
var sectionKeys = Object.keys(section);
|
|
20069
20051
|
var fillValue = section[sectionKeys[0]];
|
|
20070
20052
|
return Object.fromEntries([.../* @__PURE__ */ new Set([...keys, ...sectionKeys])].map(function(key) {
|
|
20071
|
-
var
|
|
20053
|
+
var _ref, _section_key;
|
|
20072
20054
|
var value = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
|
|
20073
20055
|
fillValue = value;
|
|
20074
20056
|
defaultValue = value;
|
|
20075
20057
|
return [key, value];
|
|
20076
20058
|
}));
|
|
20077
20059
|
};
|
|
20078
|
-
createFont = function(font) {
|
|
20060
|
+
createFont = function createFont2(font) {
|
|
20079
20061
|
var sizeKeys = Object.keys(font.size || {});
|
|
20080
20062
|
var processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
|
|
20081
20063
|
var [key, section] = param;
|
|
@@ -20200,7 +20182,7 @@ var init_createVariables_native = __esmMin((() => {
|
|
|
20200
20182
|
init_index_native$4();
|
|
20201
20183
|
init_createVariable_native();
|
|
20202
20184
|
cache = /* @__PURE__ */ new WeakMap();
|
|
20203
|
-
createVariables = function(tokens) {
|
|
20185
|
+
createVariables = function createVariables1(tokens) {
|
|
20204
20186
|
var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
20205
20187
|
arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
20206
20188
|
if (cache.has(tokens)) return tokens;
|
|
@@ -20237,29 +20219,28 @@ var init_createVariables_native = __esmMin((() => {
|
|
|
20237
20219
|
}));
|
|
20238
20220
|
//#endregion
|
|
20239
20221
|
//#region ../web/dist/esm/helpers/defaultAnimationDriver.native.js
|
|
20240
|
-
var noAnimationDriver,
|
|
20222
|
+
var noAnimationDriver, defaultAnimationDriver;
|
|
20241
20223
|
var init_defaultAnimationDriver_native = __esmMin((() => {
|
|
20242
|
-
noAnimationDriver = function(method) {
|
|
20224
|
+
noAnimationDriver = function noAnimationDriver2(method) {
|
|
20243
20225
|
console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
|
|
20244
20226
|
};
|
|
20245
|
-
|
|
20227
|
+
defaultAnimationDriver = function createEmptyAnimationDriver2() {
|
|
20246
20228
|
return {
|
|
20247
20229
|
inputStyle: "css",
|
|
20248
20230
|
outputStyle: "css",
|
|
20249
20231
|
isStub: true,
|
|
20250
20232
|
animations: {},
|
|
20251
|
-
useAnimations: function() {
|
|
20233
|
+
useAnimations: function useAnimations() {
|
|
20252
20234
|
return noAnimationDriver("animations");
|
|
20253
20235
|
},
|
|
20254
|
-
usePresence: function() {
|
|
20236
|
+
usePresence: function usePresence() {
|
|
20255
20237
|
return noAnimationDriver("usePresence");
|
|
20256
20238
|
},
|
|
20257
|
-
ResetPresence: function() {
|
|
20239
|
+
ResetPresence: function ResetPresence() {
|
|
20258
20240
|
return noAnimationDriver("ResetPresence");
|
|
20259
20241
|
}
|
|
20260
20242
|
};
|
|
20261
|
-
};
|
|
20262
|
-
defaultAnimationDriver = createEmptyAnimationDriver();
|
|
20243
|
+
}();
|
|
20263
20244
|
}));
|
|
20264
20245
|
//#endregion
|
|
20265
20246
|
//#region ../web/dist/esm/helpers/resolveAnimationDriver.native.js
|
|
@@ -20543,7 +20524,7 @@ var init_variableValue_native = __esmMin((() => {
|
|
|
20543
20524
|
"ratio",
|
|
20544
20525
|
"elevation"
|
|
20545
20526
|
];
|
|
20546
|
-
isUnitlessVariableKey = function(key) {
|
|
20527
|
+
isUnitlessVariableKey = function isUnitlessVariableKey2(key) {
|
|
20547
20528
|
var lower = key.toLowerCase();
|
|
20548
20529
|
return unitlessSuffixes.some(function(suffix) {
|
|
20549
20530
|
return lower.endsWith(suffix);
|
|
@@ -20556,7 +20537,7 @@ var init_variableValue_native = __esmMin((() => {
|
|
|
20556
20537
|
"radius",
|
|
20557
20538
|
"zIndex"
|
|
20558
20539
|
];
|
|
20559
|
-
findVariableToken = function(tokensParsed, name) {
|
|
20540
|
+
findVariableToken = function findVariableToken2(tokensParsed, name) {
|
|
20560
20541
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
20561
20542
|
try {
|
|
20562
20543
|
for (var _iterator1 = tokenCategoryOrder[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
@@ -20582,7 +20563,7 @@ var init_variableValue_native = __esmMin((() => {
|
|
|
20582
20563
|
function mergeConfigVariablesIntoTheme(theme, themeName, variables, tokensParsed) {
|
|
20583
20564
|
var scheme = themeName.startsWith("dark") ? "dark" : "light";
|
|
20584
20565
|
var resolving = /* @__PURE__ */ new Set();
|
|
20585
|
-
var resolveRawValue = function(key2, value) {
|
|
20566
|
+
var resolveRawValue = function resolveRawValue1(key2, value) {
|
|
20586
20567
|
if (typeof value === "object" && value !== null) {
|
|
20587
20568
|
if (isVariable(value)) return value.val;
|
|
20588
20569
|
if ("needsPx" in value) return value;
|
|
@@ -20790,10 +20771,10 @@ function createTamagui$2(configIn) {
|
|
|
20790
20771
|
lastIndex: -1,
|
|
20791
20772
|
static: null
|
|
20792
20773
|
};
|
|
20793
|
-
var getCSS$1 = function() {
|
|
20774
|
+
var getCSS$1 = function getCSS2() {
|
|
20794
20775
|
return getCSS(themeConfig, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, cssState);
|
|
20795
20776
|
};
|
|
20796
|
-
var getNewCSS = function(opts) {
|
|
20777
|
+
var getNewCSS = function getNewCSS2(opts) {
|
|
20797
20778
|
return getCSS$1(_objectSpread2(_objectSpread2({}, opts), {}, { sinceLastCall: true }));
|
|
20798
20779
|
};
|
|
20799
20780
|
var inputAnimations = configIn.animations;
|
|
@@ -20978,7 +20959,7 @@ var init_createTokens_native = __esmMin((() => {
|
|
|
20978
20959
|
function mergeVariantValues(earlier, later) {
|
|
20979
20960
|
if (typeof earlier !== "string" || typeof later !== "string") return later;
|
|
20980
20961
|
if (!earlier.includes(":") && !later.includes(":")) return later;
|
|
20981
|
-
var getSlot = function(token, colon) {
|
|
20962
|
+
var getSlot = function getSlot2(token, colon) {
|
|
20982
20963
|
var slot = [];
|
|
20983
20964
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
20984
20965
|
try {
|
|
@@ -21004,7 +20985,7 @@ function mergeVariantValues(earlier, later) {
|
|
|
21004
20985
|
};
|
|
21005
20986
|
var clauses = /* @__PURE__ */ new Map();
|
|
21006
20987
|
var base;
|
|
21007
|
-
var add = function(source, reject) {
|
|
20988
|
+
var add = function add2(source, reject) {
|
|
21008
20989
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
21009
20990
|
try {
|
|
21010
20991
|
for (var _iterator = source.trim().split(/\s+/)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
@@ -21047,7 +21028,7 @@ var init_mergeVariants_native = __esmMin((() => {
|
|
|
21047
21028
|
init_types_native();
|
|
21048
21029
|
init_isObj_native();
|
|
21049
21030
|
init_objectSpread2();
|
|
21050
|
-
mergeVariants = function(parentVariants, ourVariants) {
|
|
21031
|
+
mergeVariants = function mergeVariants1(parentVariants, ourVariants) {
|
|
21051
21032
|
var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
21052
21033
|
if (!ourVariants) return parentVariants || {};
|
|
21053
21034
|
if (!parentVariants) return ourVariants || {};
|
|
@@ -21081,12 +21062,11 @@ function resolveSelection(state, variants, key, value, parentKey, condition) {
|
|
|
21081
21062
|
if (!isObj(output)) return;
|
|
21082
21063
|
var originals = styleOriginalValues.get(output);
|
|
21083
21064
|
for (var outputKey in output) {
|
|
21065
|
+
var _ref;
|
|
21084
21066
|
if (!state.styleProps.noSkip && outputKey in skipProps) continue;
|
|
21085
21067
|
var raw = output[outputKey];
|
|
21086
21068
|
if (raw == null) continue;
|
|
21087
|
-
|
|
21088
|
-
var _originals_outputKey;
|
|
21089
|
-
emitVariantStyle(state, outputKey, _$value, (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : raw, condition, parentKey === key && outputKey === key);
|
|
21069
|
+
emitVariantStyle(state, outputKey, state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey), (_ref = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _ref !== void 0 ? _ref : raw, condition, parentKey === key && outputKey === key);
|
|
21090
21070
|
}
|
|
21091
21071
|
}
|
|
21092
21072
|
var init_resolveVariantStyle_native = __esmMin((() => {
|
|
@@ -21152,7 +21132,8 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
21152
21132
|
var reactNativeConfig = !parentStaticConfig ? getReactNativeConfig(Component) : void 0;
|
|
21153
21133
|
var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
|
|
21154
21134
|
var component = createComponent((function() {
|
|
21155
|
-
var _ref
|
|
21135
|
+
var _ref;
|
|
21136
|
+
var _ref2 = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref2, defaultProps = _objectWithoutProperties(_ref2, _excluded$2);
|
|
21156
21137
|
var parentDefaultVariants;
|
|
21157
21138
|
var parentDefaultProps;
|
|
21158
21139
|
var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);
|
|
@@ -21183,8 +21164,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
21183
21164
|
var isInput = Boolean((config === null || config === void 0 ? void 0 : config.isInput) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isInput));
|
|
21184
21165
|
var isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));
|
|
21185
21166
|
var validStyles = (config === null || config === void 0 ? void 0 : config.validStyles) || ((config === null || config === void 0 ? void 0 : config.isInput) ? stylePropsInput : (config === null || config === void 0 ? void 0 : config.isText) ? stylePropsText : parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.validStyles);
|
|
21186
|
-
var
|
|
21187
|
-
var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
|
|
21167
|
+
var acceptsClassName = (_ref = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
|
|
21188
21168
|
var conf = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentStaticConfig), config), !isPlainStyledComponent && { Component }), {}, {
|
|
21189
21169
|
variants,
|
|
21190
21170
|
baseClassName: mergedBaseClassName,
|
|
@@ -21250,7 +21230,7 @@ var useIsTouchDevice;
|
|
|
21250
21230
|
var init_useIsTouchDevice_native = __esmMin((() => {
|
|
21251
21231
|
init_index_native$6();
|
|
21252
21232
|
init_index_native$2();
|
|
21253
|
-
useIsTouchDevice = function() {
|
|
21233
|
+
useIsTouchDevice = function useIsTouchDevice2() {
|
|
21254
21234
|
return true;
|
|
21255
21235
|
};
|
|
21256
21236
|
}));
|
|
@@ -21272,13 +21252,13 @@ function useAnimatedNumber(initial) {
|
|
|
21272
21252
|
var useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimatedNumberReaction;
|
|
21273
21253
|
var init_useAnimationDriver_native = __esmMin((() => {
|
|
21274
21254
|
init_ComponentContext_native();
|
|
21275
|
-
useAnimatedNumberStyle = function(value, getStyle) {
|
|
21255
|
+
useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
|
|
21276
21256
|
return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);
|
|
21277
21257
|
};
|
|
21278
|
-
useAnimatedNumbersStyle = function(values, getStyle) {
|
|
21258
|
+
useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(values, getStyle) {
|
|
21279
21259
|
return useAnimatedNumberDriver().useAnimatedNumbersStyle(values, getStyle);
|
|
21280
21260
|
};
|
|
21281
|
-
useAnimatedNumberReaction = function(opts, onValue) {
|
|
21261
|
+
useAnimatedNumberReaction = function useAnimatedNumberReaction2(opts, onValue) {
|
|
21282
21262
|
return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);
|
|
21283
21263
|
};
|
|
21284
21264
|
}));
|
|
@@ -21294,7 +21274,7 @@ var init_useThemeName_native = __esmMin((() => {
|
|
|
21294
21274
|
forceUpdateState = {
|
|
21295
21275
|
forceClassName: true,
|
|
21296
21276
|
deopt: true,
|
|
21297
|
-
needsUpdate: function() {
|
|
21277
|
+
needsUpdate: function needsUpdate() {
|
|
21298
21278
|
return true;
|
|
21299
21279
|
}
|
|
21300
21280
|
};
|
|
@@ -21393,11 +21373,11 @@ var init_domEventProps_native = __esmMin((() => {
|
|
|
21393
21373
|
//#region ../web/dist/esm/dom/adapters.native.js
|
|
21394
21374
|
var noop, returnFalse, clickFromPress, changeFromText, inputFromText, keyFromKeyPress, loadFromImage, errorFromImage, textEntryChange;
|
|
21395
21375
|
var init_adapters_native = __esmMin((() => {
|
|
21396
|
-
noop = function() {};
|
|
21397
|
-
returnFalse = function() {
|
|
21376
|
+
noop = function noop2() {};
|
|
21377
|
+
returnFalse = function returnFalse2() {
|
|
21398
21378
|
return false;
|
|
21399
21379
|
};
|
|
21400
|
-
clickFromPress = function(onClick) {
|
|
21380
|
+
clickFromPress = function clickFromPress2(onClick) {
|
|
21401
21381
|
return function(event) {
|
|
21402
21382
|
var _event_nativeEvent_pageX, _event_nativeEvent_pageY;
|
|
21403
21383
|
onClick({
|
|
@@ -21416,7 +21396,7 @@ var init_adapters_native = __esmMin((() => {
|
|
|
21416
21396
|
});
|
|
21417
21397
|
};
|
|
21418
21398
|
};
|
|
21419
|
-
changeFromText = function(onChange) {
|
|
21399
|
+
changeFromText = function changeFromText2(onChange) {
|
|
21420
21400
|
return function(event) {
|
|
21421
21401
|
var _event_nativeEvent_text;
|
|
21422
21402
|
onChange({
|
|
@@ -21425,7 +21405,7 @@ var init_adapters_native = __esmMin((() => {
|
|
|
21425
21405
|
});
|
|
21426
21406
|
};
|
|
21427
21407
|
};
|
|
21428
|
-
inputFromText = function(onInput) {
|
|
21408
|
+
inputFromText = function inputFromText2(onInput) {
|
|
21429
21409
|
return function(event) {
|
|
21430
21410
|
var _event_nativeEvent_text;
|
|
21431
21411
|
onInput({
|
|
@@ -21434,7 +21414,7 @@ var init_adapters_native = __esmMin((() => {
|
|
|
21434
21414
|
});
|
|
21435
21415
|
};
|
|
21436
21416
|
};
|
|
21437
|
-
keyFromKeyPress = function(onKeyDown) {
|
|
21417
|
+
keyFromKeyPress = function keyFromKeyPress2(onKeyDown) {
|
|
21438
21418
|
return function(event) {
|
|
21439
21419
|
var _event_nativeEvent_key;
|
|
21440
21420
|
onKeyDown({
|
|
@@ -21443,7 +21423,7 @@ var init_adapters_native = __esmMin((() => {
|
|
|
21443
21423
|
});
|
|
21444
21424
|
};
|
|
21445
21425
|
};
|
|
21446
|
-
loadFromImage = function(onLoad) {
|
|
21426
|
+
loadFromImage = function loadFromImage2(onLoad) {
|
|
21447
21427
|
return function(event) {
|
|
21448
21428
|
var source = event.nativeEvent.source;
|
|
21449
21429
|
onLoad({
|
|
@@ -21455,12 +21435,12 @@ var init_adapters_native = __esmMin((() => {
|
|
|
21455
21435
|
});
|
|
21456
21436
|
};
|
|
21457
21437
|
};
|
|
21458
|
-
errorFromImage = function(onError) {
|
|
21438
|
+
errorFromImage = function errorFromImage2(onError) {
|
|
21459
21439
|
return function() {
|
|
21460
21440
|
onError({ type: "error" });
|
|
21461
21441
|
};
|
|
21462
21442
|
};
|
|
21463
|
-
textEntryChange = function(onChange, onInput) {
|
|
21443
|
+
textEntryChange = function textEntryChange2(onChange, onInput) {
|
|
21464
21444
|
if (!onChange) return onInput && inputFromText(onInput);
|
|
21465
21445
|
if (!onInput) return changeFromText(onChange);
|
|
21466
21446
|
return function(event) {
|
|
@@ -21487,7 +21467,7 @@ function assignRef(ref, value) {
|
|
|
21487
21467
|
else if (ref) ref.current = value;
|
|
21488
21468
|
}
|
|
21489
21469
|
function scaledRect(rect, scale) {
|
|
21490
|
-
var value = function(name) {
|
|
21470
|
+
var value = function value2(name) {
|
|
21491
21471
|
return typeof rect[name] === "number" ? rect[name] / scale : rect[name];
|
|
21492
21472
|
};
|
|
21493
21473
|
var DOMRectConstructor = globalThis.DOMRect;
|
|
@@ -21553,7 +21533,7 @@ function facadeFor(instance, tag, viewportScale) {
|
|
|
21553
21533
|
var property = _step.value;
|
|
21554
21534
|
if (property in host) Object.defineProperty(facade, property, {
|
|
21555
21535
|
configurable: true,
|
|
21556
|
-
get: function() {
|
|
21536
|
+
get: function get() {
|
|
21557
21537
|
return typeof host[property] === "number" ? host[property] / viewportScale : host[property];
|
|
21558
21538
|
}
|
|
21559
21539
|
});
|
|
@@ -21573,7 +21553,7 @@ function facadeFor(instance, tag, viewportScale) {
|
|
|
21573
21553
|
if (tag === "img") Object.defineProperty(facade, "complete", {
|
|
21574
21554
|
configurable: true,
|
|
21575
21555
|
enumerable: true,
|
|
21576
|
-
get: function() {
|
|
21556
|
+
get: function get() {
|
|
21577
21557
|
var _host_complete;
|
|
21578
21558
|
return (_host_complete = host.complete) !== null && _host_complete !== void 0 ? _host_complete : false;
|
|
21579
21559
|
}
|
|
@@ -21584,13 +21564,13 @@ function facadeFor(instance, tag, viewportScale) {
|
|
|
21584
21564
|
Object.defineProperties(facade, _objectSpread2({
|
|
21585
21565
|
selectionStart: {
|
|
21586
21566
|
enumerable: true,
|
|
21587
|
-
get: function() {
|
|
21567
|
+
get: function get() {
|
|
21588
21568
|
return selectionStart;
|
|
21589
21569
|
}
|
|
21590
21570
|
},
|
|
21591
21571
|
selectionEnd: {
|
|
21592
21572
|
enumerable: true,
|
|
21593
|
-
get: function() {
|
|
21573
|
+
get: function get() {
|
|
21594
21574
|
return selectionEnd;
|
|
21595
21575
|
}
|
|
21596
21576
|
}
|
|
@@ -21626,14 +21606,14 @@ function createDOMRefCallback(ref, tag, viewportScale) {
|
|
|
21626
21606
|
var callback = byTag.get(cacheKey);
|
|
21627
21607
|
if (!callback) {
|
|
21628
21608
|
var release;
|
|
21629
|
-
callback = function(instance) {
|
|
21609
|
+
callback = function callback2(instance) {
|
|
21630
21610
|
if (!instance) {
|
|
21631
21611
|
if (release) return release();
|
|
21632
21612
|
return assignRef(ref, null);
|
|
21633
21613
|
}
|
|
21634
21614
|
release === null || release === void 0 || release();
|
|
21635
21615
|
var cleanup = assignRef(ref, facadeFor(instance, tag, viewportScale));
|
|
21636
|
-
var currentRelease = function() {
|
|
21616
|
+
var currentRelease = function currentRelease1() {
|
|
21637
21617
|
if (release !== currentRelease) return;
|
|
21638
21618
|
release = void 0;
|
|
21639
21619
|
if (typeof cleanup === "function") cleanup();
|
|
@@ -21754,11 +21734,11 @@ function resolvedDOMView(props) {
|
|
|
21754
21734
|
}
|
|
21755
21735
|
function DOMTextWithInheritedStyle(param) {
|
|
21756
21736
|
var { props } = param;
|
|
21737
|
+
var _context_animationDriver;
|
|
21757
21738
|
var parent = (0, react.useContext)(inheritedTextStyleContext);
|
|
21758
21739
|
var context = (0, react.useContext)(ComponentContext);
|
|
21759
21740
|
var value = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
|
|
21760
21741
|
var content = renderDOMText(_objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, value.style] }));
|
|
21761
|
-
var _context_animationDriver;
|
|
21762
21742
|
var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
|
|
21763
21743
|
if (value.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) content = (0, react_jsx_runtime.jsx)(NativeTextBinding, {
|
|
21764
21744
|
element: content,
|
|
@@ -21782,11 +21762,11 @@ function resolvedDOMText(props) {
|
|
|
21782
21762
|
}
|
|
21783
21763
|
function DOMTextInputWithInheritedStyle(param) {
|
|
21784
21764
|
var { props } = param;
|
|
21765
|
+
var _context_animationDriver;
|
|
21785
21766
|
var parent = (0, react.useContext)(inheritedTextStyleContext);
|
|
21786
21767
|
var context = (0, react.useContext)(ComponentContext);
|
|
21787
21768
|
var inherited = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
|
|
21788
21769
|
var resolved = _objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, inherited.style] });
|
|
21789
|
-
var _context_animationDriver;
|
|
21790
21770
|
var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
|
|
21791
21771
|
if (inherited.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) return (0, react_jsx_runtime.jsx)(NativeTextBinding, {
|
|
21792
21772
|
element: renderDOMTextInput(resolved),
|
|
@@ -22006,6 +21986,7 @@ function resolveDOMProps(props, tag, spec, tables) {
|
|
|
22006
21986
|
var hasInputMode = false;
|
|
22007
21987
|
var hasRole = false;
|
|
22008
21988
|
for (var name in props) {
|
|
21989
|
+
var _tables_unsupportedProps_name, _tables_renamed_name;
|
|
22009
21990
|
var value = props[name];
|
|
22010
21991
|
if (value === void 0) continue;
|
|
22011
21992
|
if (name === "display") {
|
|
@@ -22053,13 +22034,11 @@ function resolveDOMProps(props, tag, spec, tables) {
|
|
|
22053
22034
|
continue;
|
|
22054
22035
|
}
|
|
22055
22036
|
if (tables.unsupportedEvents.has(name)) throw new Error(`${name} has no native DOM event equivalent`);
|
|
22056
|
-
var _tables_unsupportedProps_name;
|
|
22057
22037
|
var note = (_tables_unsupportedProps_name = tables.unsupportedProps[name]) !== null && _tables_unsupportedProps_name !== void 0 ? _tables_unsupportedProps_name : name.startsWith("data-") && name !== "data-testid" ? tables.dataPropNote : void 0;
|
|
22058
22038
|
if (note !== void 0) throw new Error(`${name} is not supported on native html.${tag}: ${note}`);
|
|
22059
22039
|
if (name === "onKeyDown" && !spec.entry) throw new Error("onKeyDown requires a native text-entry control");
|
|
22060
22040
|
if (name === "inputMode") hasInputMode = true;
|
|
22061
22041
|
else if (name === "role") hasRole = true;
|
|
22062
|
-
var _tables_renamed_name;
|
|
22063
22042
|
next[(_tables_renamed_name = tables.renamed[name]) !== null && _tables_renamed_name !== void 0 ? _tables_renamed_name : name] = value;
|
|
22064
22043
|
}
|
|
22065
22044
|
if (nested) Object.assign(next, nested);
|
|
@@ -22080,7 +22059,7 @@ function resolveDOMProps(props, tag, spec, tables) {
|
|
|
22080
22059
|
function createDOMTagFactory(tables) {
|
|
22081
22060
|
return function domTag(tag, Component) {
|
|
22082
22061
|
var spec = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
22083
|
-
var Tag = function(props) {
|
|
22062
|
+
var Tag = function Tag2(props) {
|
|
22084
22063
|
return (0, react_jsx_runtime.jsx)(Component, resolveDOMProps(props, tag, spec, tables));
|
|
22085
22064
|
};
|
|
22086
22065
|
Tag.displayName = tag;
|
|
@@ -22093,7 +22072,7 @@ function createDOMTagFactory(tables) {
|
|
|
22093
22072
|
};
|
|
22094
22073
|
}
|
|
22095
22074
|
function unsupportedDOMTag(tag, note) {
|
|
22096
|
-
var Tag = function() {
|
|
22075
|
+
var Tag = function Tag2() {
|
|
22097
22076
|
throw new Error(`html.${tag} is not supported on native: ${note}`);
|
|
22098
22077
|
};
|
|
22099
22078
|
Tag.displayName = tag;
|
|
@@ -22235,7 +22214,7 @@ var init_html_native = __esmMin((() => {
|
|
|
22235
22214
|
});
|
|
22236
22215
|
domValidStyles = _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles);
|
|
22237
22216
|
domInputValidStyles = _objectSpread2(_objectSpread2({}, domValidStyles), stylePropsInput);
|
|
22238
|
-
primitive = function(component) {
|
|
22217
|
+
primitive = function primitive2(component) {
|
|
22239
22218
|
return component;
|
|
22240
22219
|
};
|
|
22241
22220
|
html = {
|
|
@@ -22948,9 +22927,9 @@ var init_Configuration_native = __esmMin((() => {
|
|
|
22948
22927
|
init_index_native$2();
|
|
22949
22928
|
init_ComponentContext_native();
|
|
22950
22929
|
init_objectSpread2();
|
|
22951
|
-
Configuration = function(props) {
|
|
22952
|
-
var current = react.default.useContext(ComponentContext);
|
|
22930
|
+
Configuration = function Configuration2(props) {
|
|
22953
22931
|
var _props_disableSSR;
|
|
22932
|
+
var current = react.default.useContext(ComponentContext);
|
|
22954
22933
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnly, {
|
|
22955
22934
|
enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
|
|
22956
22935
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, current), props))
|
|
@@ -23001,7 +22980,7 @@ var ThemeProvider;
|
|
|
23001
22980
|
var init_ThemeProvider_native = __esmMin((() => {
|
|
23002
22981
|
init_config_native();
|
|
23003
22982
|
init_Theme_native();
|
|
23004
|
-
ThemeProvider = function(props) {
|
|
22983
|
+
ThemeProvider = function ThemeProvider2(props) {
|
|
23005
22984
|
"use no memo";
|
|
23006
22985
|
var addThemeClassName = props.isSubtreeRoot ? false : getSetting("addThemeClassName");
|
|
23007
22986
|
var forceClassName = props.isSubtreeRoot || addThemeClassName === void 0;
|
|
@@ -23108,7 +23087,7 @@ function useEvent(callback) {
|
|
|
23108
23087
|
var defaultValue;
|
|
23109
23088
|
var init_useEvent_native = __esmMin((() => {
|
|
23110
23089
|
init_useGet_native();
|
|
23111
|
-
defaultValue = function() {
|
|
23090
|
+
defaultValue = function defaultValue2() {
|
|
23112
23091
|
throw new Error("Cannot call an event handler while rendering.");
|
|
23113
23092
|
};
|
|
23114
23093
|
}));
|
|
@@ -23590,7 +23569,7 @@ var NativeMediaQueryList = /* @__PURE__ */ (function() {
|
|
|
23590
23569
|
})();
|
|
23591
23570
|
//#endregion
|
|
23592
23571
|
//#region ../react-native-media-driver/dist/esm/matchMedia.native.js
|
|
23593
|
-
var matchMedia$1 = function(query) {
|
|
23572
|
+
var matchMedia$1 = function matchMedia2(query) {
|
|
23594
23573
|
return new NativeMediaQueryList(query);
|
|
23595
23574
|
};
|
|
23596
23575
|
//#endregion
|