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/test.native.js
CHANGED
|
@@ -6661,12 +6661,11 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6661
6661
|
return cb();
|
|
6662
6662
|
};
|
|
6663
6663
|
function createShallowSetState(setter, onlyAllow, transition, debugIn, callback) {
|
|
6664
|
-
var debug = !0;
|
|
6665
6664
|
return (0, import_react3.useCallback)(function(next) {
|
|
6666
6665
|
var wrap = transition ? import_react3.startTransition : callImmediate;
|
|
6667
6666
|
wrap(function() {
|
|
6668
6667
|
setter(function(prev) {
|
|
6669
|
-
var out = mergeIfNotShallowEqual(prev, next, onlyAllow,
|
|
6668
|
+
var out = mergeIfNotShallowEqual(prev, next, onlyAllow, debugIn);
|
|
6670
6669
|
return callback == null || callback(out), out;
|
|
6671
6670
|
});
|
|
6672
6671
|
});
|
|
@@ -6674,7 +6673,7 @@ var require_createShallowSetState_native = __commonJS({
|
|
|
6674
6673
|
setter,
|
|
6675
6674
|
onlyAllow ? onlyAllow.join("") : "",
|
|
6676
6675
|
transition,
|
|
6677
|
-
|
|
6676
|
+
debugIn,
|
|
6678
6677
|
callback
|
|
6679
6678
|
]);
|
|
6680
6679
|
}
|
|
@@ -8998,7 +8997,7 @@ var require_createFont_native = __commonJS({
|
|
|
8998
8997
|
];
|
|
8999
8998
|
}));
|
|
9000
8999
|
}, createFont2 = function(font) {
|
|
9001
|
-
var sizeKeys = Object.keys(font.size), processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
|
|
9000
|
+
var sizeKeys = Object.keys(font.size || {}), processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
|
|
9002
9001
|
var [key, section] = param;
|
|
9003
9002
|
return [
|
|
9004
9003
|
key,
|
|
@@ -28394,7 +28393,7 @@ var require_Slider_native = __commonJS({
|
|
|
28394
28393
|
defaultVariants: {
|
|
28395
28394
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
28396
28395
|
}
|
|
28397
|
-
}), SliderThumb =
|
|
28396
|
+
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
28398
28397
|
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() {
|
|
28399
28398
|
var estimatedSize = (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width);
|
|
28400
28399
|
return estimatedSize;
|
|
@@ -28461,7 +28460,11 @@ var require_Slider_native = __commonJS({
|
|
|
28461
28460
|
context.valueIndexToChangeRef.current = index;
|
|
28462
28461
|
})
|
|
28463
28462
|
});
|
|
28464
|
-
}
|
|
28463
|
+
}, {
|
|
28464
|
+
staticConfig: {
|
|
28465
|
+
memo: !0
|
|
28466
|
+
}
|
|
28467
|
+
}), SliderComponent = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
28465
28468
|
var { name, min: min2 = 0, max: max2 = 100, step = 1, orientation = "horizontal", disabled = !1, minStepsBetweenThumbs = 0, defaultValue = [
|
|
28466
28469
|
min2
|
|
28467
28470
|
], value, onValueChange = function() {
|