@artsy/palette-mobile 14.0.5 → 14.0.7

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.
@@ -89,7 +89,7 @@ export const Button = ({ children, disabled, haptic, icon, iconPosition = "left"
89
89
  textDecorationLine: springProps.textDecorationLine,
90
90
  },
91
91
  textStyle,
92
- ], textAlign: "center", children: children }), iconPosition === "right" && !!icon && (_jsxs(_Fragment, { children: [_jsx(Spacer, { x: 0.5 }), icon] }))] }), displayState === DisplayState.Loading && (_jsx(SpinnerContainer, { children: _jsx(Spinner, { size: size, color: to.loaderColor }) }))] }) }) }) })) }));
92
+ ], textAlign: "center", children: children }), iconPosition === "right" && !!icon && (_jsxs(_Fragment, { children: [_jsx(Spacer, { x: 0.5 }), icon] }))] }), displayState === DisplayState.Loading && (_jsx(SpinnerContainer, { children: _jsx(Spinner, { size: size, color: to.loaderColor, testID: "button-loading-spinner" }) }))] }) }) }) })) }));
93
93
  };
94
94
  const useStyleForVariantAndState = (variant, state) => {
95
95
  const color = useColor();
@@ -3,6 +3,7 @@ import isArray from "lodash/isArray";
3
3
  import isString from "lodash/isString";
4
4
  import { useCallback, useRef, useState } from "react";
5
5
  import { TextInput } from "react-native";
6
+ import { DEFAULT_HIT_SLOP } from "../../constants";
6
7
  import { ArrowLeftIcon, MagnifyingGlassIcon } from "../../svgs";
7
8
  import { useColor, useTheme } from "../../utils/hooks";
8
9
  import { Flex } from "../Flex";
@@ -83,7 +84,7 @@ export const RoundSearchInput = ({ value, placeholder, onLeftIconPress, ...rest
83
84
  ref.current?.blur();
84
85
  setIsFocused(false);
85
86
  onLeftIconPress?.();
86
- }, haptic: "impactLight", children: !isFocused ? (_jsx(MagnifyingGlassIcon, { fill: "black60", width: ICON_SIZE, height: ICON_SIZE, style: {
87
+ }, hitSlop: DEFAULT_HIT_SLOP, haptic: "impactLight", children: !isFocused ? (_jsx(MagnifyingGlassIcon, { fill: "black60", width: ICON_SIZE, height: ICON_SIZE, style: {
87
88
  transform: [
88
89
  {
89
90
  scaleX: -1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "14.0.5",
3
+ "version": "14.0.7",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082 --terminal terminal",