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/native.js
CHANGED
|
@@ -16403,7 +16403,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
16403
16403
|
}
|
|
16404
16404
|
);
|
|
16405
16405
|
}), SwitchComponent = Frame.extractable(
|
|
16406
|
-
React2.forwardRef(function
|
|
16406
|
+
React2.forwardRef(function(propsIn, forwardedRef) {
|
|
16407
16407
|
let styledContext = React2.useContext(import_SwitchContext.SwitchContext), props = (0, import_core12.useProps)(propsIn), {
|
|
16408
16408
|
labeledBy: ariaLabelledby,
|
|
16409
16409
|
name,
|
|
@@ -16423,7 +16423,10 @@ var require_createSwitch_native = __commonJS({
|
|
|
16423
16423
|
let _;
|
|
16424
16424
|
for (let key in switchProps)
|
|
16425
16425
|
(key === "borderWidth" || key === "borderLeftWidth") && (_ = switchProps[key]);
|
|
16426
|
-
return
|
|
16426
|
+
return (
|
|
16427
|
+
// Frame === SwitchFrame &&
|
|
16428
|
+
acceptsUnstyled && _ == null && unstyled === !1 && (_ = 2), typeof _ == "string" && (_ = (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(_))), typeof _ == "number" ? _ : 0
|
|
16429
|
+
);
|
|
16427
16430
|
})(), 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)({
|
|
16428
16431
|
prop: checkedProp,
|
|
16429
16432
|
defaultProp: defaultChecked || !1,
|