tamagui 1.74.14 → 1.74.15

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 CHANGED
@@ -4396,7 +4396,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
4396
4396
  fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
4397
4397
  let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = avoidAnimationStyle ? splitStyles.style : animationStyles || splitStyles.style, className;
4398
4398
  viewProps.style = style;
4399
- let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), handlesPressEvents = !(import_constants.isWeb || asChild), shouldAttach = !!(attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);
4399
+ let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), handlesPressEvents = !(import_constants.isWeb || asChild), shouldAttach = !!(attachFocus || attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);
4400
4400
  process.env.NODE_ENV === "development" && time && time`events-setup`;
4401
4401
  let events = shouldAttach && !isDisabled && !props.asChild ? {
4402
4402
  onPressOut: attachPress ? (e) => {
@@ -4425,6 +4425,18 @@ If you meant to do this, you can disable this warning - either change untilMeasu
4425
4425
  onLongPress: (e) => {
4426
4426
  unPress(), onLongPress == null || onLongPress(e);
4427
4427
  }
4428
+ },
4429
+ ...attachFocus && {
4430
+ onFocus: (e) => {
4431
+ setStateShallow({
4432
+ focus: !0
4433
+ }), onFocus == null || onFocus(e);
4434
+ },
4435
+ onBlur: (e) => {
4436
+ setStateShallow({
4437
+ focus: !1
4438
+ }), onBlur == null || onBlur(e);
4439
+ }
4428
4440
  }
4429
4441
  } : null;
4430
4442
  events && !asChild && Object.assign(events, {
@@ -7601,11 +7613,7 @@ var require_index_native15 = __commonJS({
7601
7613
  return viewProps;
7602
7614
  },
7603
7615
  useEvents(viewProps, events, { pseudos }, setStateShallow, staticConfig) {
7604
- if (pseudos != null && pseudos.focusStyle && (viewProps.onFocus = (0, import_web.composeEventHandlers)(viewProps.onFocus, () => {
7605
- setStateShallow({ focus: !0 });
7606
- }), viewProps.onBlur = (0, import_web.composeEventHandlers)(viewProps.onBlur, () => {
7607
- setStateShallow({ focus: !1 });
7608
- })), staticConfig.isInput) {
7616
+ if (events != null && events.onFocus && (viewProps.onFocus = events.onFocus), events != null && events.onBlur && (viewProps.onBlur = events.onBlur), staticConfig.isInput) {
7609
7617
  if (events) {
7610
7618
  let { onPressIn, onPressOut, onPress } = events, inputEvents = {
7611
7619
  onPressIn,