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.
@@ -4094,7 +4094,7 @@ var require_createComponent_native = __commonJS({
4094
4094
  isZStack,
4095
4095
  debug: debugProp
4096
4096
  });
4097
- asChild && (elementType = import_Slot.Slot), content = (0, import_react2.createElement)(elementType, viewProps, content);
4097
+ asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), content = (0, import_react2.createElement)(elementType, viewProps, content);
4098
4098
  let subGroupContext = (0, import_react2.useMemo)(() => {
4099
4099
  if (groupName)
4100
4100
  return {
@@ -12105,22 +12105,22 @@ var require_Form_native = __commonJS({
12105
12105
  useFormContext: () => useFormContext
12106
12106
  });
12107
12107
  module2.exports = __toCommonJS2(Form_exports);
12108
- var import_core12 = require_index_native15(), import_create_context = require_index_native25(), import_react2 = require("react"), import_jsx_runtime6 = require("react/jsx-runtime"), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
12108
+ 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, {
12109
12109
  name: FORM_NAME,
12110
12110
  tag: "form"
12111
12111
  }), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core12.styled)(import_core12.View, {
12112
12112
  name: TRIGGER_NAME
12113
12113
  }), FormTrigger = FormTriggerFrame.styleable(
12114
12114
  (props, forwardedRef) => {
12115
- let { __scopeForm, children, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
12115
+ let { __scopeForm, children, onPress, ...triggerProps } = props, context = useFormContext(TRIGGER_NAME, __scopeForm);
12116
12116
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
12117
12117
  FormTriggerFrame,
12118
12118
  {
12119
12119
  tag: "button",
12120
12120
  ...triggerProps,
12121
- children: triggerProps.asChild ? (0, import_react2.cloneElement)(children, { disabled: triggerProps.disabled }) : children,
12122
12121
  ref: forwardedRef,
12123
- onPress: (0, import_core12.composeEventHandlers)(props.onPress, context.onSubmit)
12122
+ onPress: (0, import_core12.composeEventHandlers)(onPress, context.onSubmit),
12123
+ children
12124
12124
  }
12125
12125
  );
12126
12126
  }