tamagui 1.125.13 → 1.125.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +9 -6
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +9 -6
- package/dist/test.native.js.map +1 -1
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -7029,12 +7029,11 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
7029
7029
|
return cb();
|
|
7030
7030
|
};
|
|
7031
7031
|
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
7032
|
-
var debug = !0;
|
|
7033
7032
|
return (0, import_react3.useCallback)(function(next) {
|
|
7034
7033
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
7035
7034
|
wrap(function() {
|
|
7036
7035
|
setter(function(prev) {
|
|
7037
|
-
var out = mergeIfNotShallowEqual(prev, next, onlyAllow,
|
|
7036
|
+
var out = mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn);
|
|
7038
7037
|
return callback == null || callback(out), out;
|
|
7039
7038
|
});
|
|
7040
7039
|
});
|
|
@@ -7042,7 +7041,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
7042
7041
|
setter,
|
|
7043
7042
|
onlyAllow ? onlyAllow.join("") : "",
|
|
7044
7043
|
transition,
|
|
7045
|
-
|
|
7044
|
+
debugIn,
|
|
7046
7045
|
callback
|
|
7047
7046
|
]);
|
|
7048
7047
|
}
|
|
@@ -9571,7 +9570,7 @@ var require_createFont_native = __commonJS({
|
|
|
9571
9570
|
];
|
|
9572
9571
|
}));
|
|
9573
9572
|
}, createFont2 = function(font) {
|
|
9574
|
-
var sizeKeys = Object.keys(font.size), processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
|
|
9573
|
+
var sizeKeys = Object.keys(font.size || {}), processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
|
|
9575
9574
|
var [key, section] = param;
|
|
9576
9575
|
return [
|
|
9577
9576
|
key,
|
|
@@ -29089,7 +29088,7 @@ var require_Slider_native = __commonJS({
|
|
|
29089
29088
|
defaultVariants: {
|
|
29090
29089
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
29091
29090
|
}
|
|
29092
|
-
}), SliderThumb =
|
|
29091
|
+
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
29093
29092
|
var { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React4.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, setThumb), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers3.getLabel)(index, context.values.length), _ref, sizeIn = (_ref = sizeProp ?? context.size) !== null && _ref !== void 0 ? _ref : "$true", [size4, setSize] = React4.useState(function() {
|
|
29094
29093
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
29095
29094
|
return estimatedSize;
|
|
@@ -29156,7 +29155,11 @@ var require_Slider_native = __commonJS({
|
|
|
29156
29155
|
context.valueIndexToChangeRef.current = index;
|
|
29157
29156
|
})
|
|
29158
29157
|
});
|
|
29159
|
-
}
|
|
29158
|
+
}, {
|
|
29159
|
+
staticConfig: {
|
|
29160
|
+
memo: !0
|
|
29161
|
+
}
|
|
29162
|
+
}), SliderComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
29160
29163
|
var { name, min: min2 = 0, max: max2 = 100, step = 1, orientation = "horizontal", disabled = !1, minStepsBetweenThumbs = 0, defaultValue = [
|
|
29161
29164
|
min2
|
|
29162
29165
|
], value, onValueChange = function() {
|