tamagui 1.68.2 → 1.68.3
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 +5 -2
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +5 -2
- package/dist/test.native.js.map +2 -2
- package/package.json +52 -52
package/dist/test.native.js
CHANGED
|
@@ -15858,7 +15858,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
15858
15858
|
}
|
|
15859
15859
|
);
|
|
15860
15860
|
}), SwitchComponent = Frame.extractable(
|
|
15861
|
-
React2.forwardRef(function
|
|
15861
|
+
React2.forwardRef(function(propsIn, forwardedRef) {
|
|
15862
15862
|
let styledContext = React2.useContext(import_SwitchContext.SwitchContext), props = (0, import_core12.useProps)(propsIn), {
|
|
15863
15863
|
labeledBy: ariaLabelledby,
|
|
15864
15864
|
name,
|
|
@@ -15878,7 +15878,10 @@ var require_createSwitch_native = __commonJS({
|
|
|
15878
15878
|
let _;
|
|
15879
15879
|
for (let key in switchProps)
|
|
15880
15880
|
(key === "borderWidth" || key === "borderLeftWidth") && (_ = switchProps[key]);
|
|
15881
|
-
return
|
|
15881
|
+
return (
|
|
15882
|
+
// Frame === SwitchFrame &&
|
|
15883
|
+
acceptsUnstyled && _ == null && unstyled === !1 && (_ = 2), typeof _ == "string" && (_ = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(_))), typeof _ == "number" ? _ : 0
|
|
15884
|
+
);
|
|
15882
15885
|
})(), native = Array.isArray(nativeProp) ? nativeProp : [nativeProp], shouldRenderMobileNative = !import_core12.isWeb && nativeProp === !0 || !import_core12.isWeb && native.includes("mobile") || native.includes("android") && import_react_native4.Platform.OS === "android" || native.includes("ios") && import_react_native4.Platform.OS === "ios", [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (node) => setButton(node)), labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId, hasConsumerStoppedPropagationRef = React2.useRef(!1), isFormControl = import_core12.isWeb ? button ? !!button.closest("form") : !0 : !1, [frameWidth, setFrameWidth] = React2.useState(0), [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
|
|
15883
15886
|
prop: checkedProp,
|
|
15884
15887
|
defaultProp: defaultChecked || !1,
|