tamagui 1.74.2 → 1.74.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 +8 -8
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +5 -5
- package/dist/test.native.js.map +2 -2
- package/package.json +52 -52
package/dist/native.js
CHANGED
|
@@ -3665,15 +3665,15 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3665
3665
|
let selfListenerDispose = themeManager.onChangeTheme((_a, _b, forced) => {
|
|
3666
3666
|
forced && setThemeState((prev) => createState(prev, !0));
|
|
3667
3667
|
}), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme((name, manager) => {
|
|
3668
|
-
let force = (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"],
|
|
3668
|
+
let force = (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], shouldTryUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
|
|
3669
3669
|
process.env.NODE_ENV === "development" && props.debug && console.log(" \u{1F538} onChange", themeManager.id, {
|
|
3670
3670
|
force,
|
|
3671
|
-
|
|
3671
|
+
shouldTryUpdate,
|
|
3672
3672
|
props,
|
|
3673
3673
|
name,
|
|
3674
3674
|
manager,
|
|
3675
3675
|
keys
|
|
3676
|
-
}),
|
|
3676
|
+
}), shouldTryUpdate && setThemeState(createState);
|
|
3677
3677
|
}, themeManager.id);
|
|
3678
3678
|
return () => {
|
|
3679
3679
|
selfListenerDispose(), disposeChangeListener == null || disposeChangeListener(), activeThemeManagers.delete(themeManager);
|
|
@@ -4415,7 +4415,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4415
4415
|
isZStack,
|
|
4416
4416
|
debug: debugProp
|
|
4417
4417
|
});
|
|
4418
|
-
asChild && (elementType = import_Slot.Slot), process.env.NODE_ENV === "development" && time && time`spaced-as-child`, // in test mode disable perf unwrapping so react-testing-library finds Text properly
|
|
4418
|
+
asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`, // in test mode disable perf unwrapping so react-testing-library finds Text properly
|
|
4419
4419
|
process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS ? (viewProps.children = content, content = (0, import_react2.createElement)(
|
|
4420
4420
|
elementType === BaseText ? "RCTText" : "RCTView",
|
|
4421
4421
|
viewProps
|
|
@@ -12577,22 +12577,22 @@ var require_Form_native = __commonJS({
|
|
|
12577
12577
|
useFormContext: () => useFormContext
|
|
12578
12578
|
});
|
|
12579
12579
|
module2.exports = __toCommonJS2(Form_exports);
|
|
12580
|
-
var import_core12 = require_index_native15(), import_create_context = require_index_native25(),
|
|
12580
|
+
var import_core12 = require_index_native15(), import_create_context = require_index_native25(), import_jsx_runtime6 = require("react/jsx-runtime"), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
|
|
12581
12581
|
name: FORM_NAME,
|
|
12582
12582
|
tag: "form"
|
|
12583
12583
|
}), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
12584
12584
|
name: TRIGGER_NAME
|
|
12585
12585
|
}), FormTrigger = FormTriggerFrame.styleable(
|
|
12586
12586
|
(props, forwardedRef) => {
|
|
12587
|
-
let { __scopeForm, children, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
12587
|
+
let { __scopeForm, children, onPress, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
|
|
12588
12588
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
12589
12589
|
FormTriggerFrame,
|
|
12590
12590
|
{
|
|
12591
12591
|
tag: "button",
|
|
12592
12592
|
...triggerProps,
|
|
12593
|
-
children: triggerProps.asChild ? (0, import_react2.cloneElement)(children, { disabled: triggerProps.disabled }) : children,
|
|
12594
12593
|
ref: forwardedRef,
|
|
12595
|
-
onPress: (0, import_core12.composeEventHandlers)(
|
|
12594
|
+
onPress: (0, import_core12.composeEventHandlers)(onPress, context.onSubmit),
|
|
12595
|
+
children
|
|
12596
12596
|
}
|
|
12597
12597
|
);
|
|
12598
12598
|
}
|