@artsy/palette-mobile 13.2.22 → 13.2.23

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.
@@ -11,6 +11,7 @@ export interface TextProps extends RNTextProps, InnerStyledTextProps {
11
11
  maxChars?: number;
12
12
  underline?: boolean;
13
13
  maxWidth?: boolean;
14
+ selectable?: boolean;
14
15
  }
15
16
  export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<RNText>>;
16
17
  type LineHeight = `${number}px`;
@@ -11,11 +11,11 @@ const native_1 = __importDefault(require("styled-components/native"));
11
11
  const styled_system_1 = require("styled-system");
12
12
  const helpers_1 = require("./helpers");
13
13
  const useTheme_1 = require("../../utils/hooks/useTheme");
14
- exports.Text = (0, react_1.forwardRef)(({ variant = "sm", italic = false, color = "onBackgroundHigh", caps = false, weight = "regular", underline = false, maxWidth = false, style, children, ...restProps }, ref) => {
14
+ exports.Text = (0, react_1.forwardRef)(({ variant = "sm", italic = false, color = "onBackgroundHigh", caps = false, weight = "regular", underline = false, maxWidth = false, selectable = true, style, children, ...restProps }, ref) => {
15
15
  const { theme } = (0, useTheme_1.useTheme)();
16
16
  const fontFamily = (0, helpers_1.useFontFamilyFor)({ italic, weight });
17
17
  const nativeTextStyle = [caps ? { textTransform: "uppercase" } : {}];
18
- return ((0, jsx_runtime_1.jsx)(InnerStyledText, { ref: ref, style: [
18
+ return ((0, jsx_runtime_1.jsx)(InnerStyledText, { ref: ref, selectable: selectable, style: [
19
19
  ...nativeTextStyle,
20
20
  { textAlignVertical: "center" },
21
21
  { textDecorationLine: !!underline ? "underline" : "none" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "13.2.22",
3
+ "version": "13.2.23",
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",