@artsy/palette-mobile 17.9.0 → 17.10.0

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Insets, TouchableOpacityProps } from "react-native";
2
+ import { Insets, TouchableWithoutFeedbackProps } from "react-native";
3
3
  import { FlexProps } from "../Flex";
4
- type CheckboxProps = Omit<TouchableOpacityProps, "hitSlop"> & Omit<FlexProps, "hitSlop"> & {
4
+ type CheckboxProps = Omit<TouchableWithoutFeedbackProps, "hitSlop"> & Omit<FlexProps, "hitSlop"> & {
5
5
  hitSlop?: Insets;
6
6
  checked?: boolean;
7
7
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { themeGet } from "@styled-system/theme-get";
3
3
  import { useState } from "react";
4
- import { PixelRatio, Pressable, StyleSheet } from "react-native";
4
+ import { PixelRatio, StyleSheet, TouchableWithoutFeedback, } from "react-native";
5
5
  import styled from "styled-components/native";
6
6
  import { CssTransition } from "../../animation/CssTransition";
7
7
  import { useTheme } from "../../utils/hooks/useTheme";
@@ -43,7 +43,7 @@ export const Checkbox = ({ checked: checkedProp, disabled, error, onPress, text,
43
43
  : checkboxStyles[error ? "error" : "default"][isChecked ? "checked" : "unchecked"];
44
44
  const textColor = error ? color("red100") : disabled ? color("mono30") : color("mono100");
45
45
  const subtitleColor = error ? color("red100") : disabled ? color("mono30") : color("mono60");
46
- return (_jsx(Pressable, { accessibilityRole: "checkbox", accessibilityState: { checked: isChecked, disabled }, accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint, onPress: (event) => {
46
+ return (_jsx(TouchableWithoutFeedback, { accessibilityRole: "checkbox", accessibilityState: { checked: isChecked, disabled }, accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint, onPress: (event) => {
47
47
  if (disabled) {
48
48
  return;
49
49
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").FC<Omit<import("react-native/types").TouchableOpacityProps, "hitSlop"> & Omit<import("..").BoxProps, "hitSlop"> & {
4
+ component: import("react").FC<Omit<import("react-native/types").TouchableWithoutFeedbackProps, "hitSlop"> & Omit<import("..").BoxProps, "hitSlop"> & {
5
5
  hitSlop?: import("react-native/types").Insets | undefined;
6
6
  checked?: boolean | undefined;
7
7
  disabled?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "17.9.0",
3
+ "version": "17.10.0",
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",