@artsy/palette-mobile 20.0.0--canary.399.4711.0 → 20.0.0--canary.399.4716.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
- import { BorderProps, SpaceProps } from "styled-system";
1
+ import { SpaceProps } from "styled-system";
2
2
  import { SpacingUnitsTheme } from "../../tokens";
3
3
  import { FlexProps } from "../Flex";
4
- export interface BorderBoxProps extends FlexProps, BorderProps, SpaceProps<SpacingUnitsTheme> {
4
+ export interface BorderBoxProps extends FlexProps, SpaceProps<SpacingUnitsTheme> {
5
5
  hover?: boolean;
6
6
  }
7
7
  /**
@@ -2,12 +2,20 @@ import { SpacingUnit } from "@artsy/palette-tokens";
2
2
  import { View, ViewProps } from "react-native";
3
3
  import { BorderProps, ColorProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TextAlignProps } from "styled-system";
4
4
  import { ColorsTheme, SpacingUnitsTheme } from "../../tokens";
5
+ type BorderRadiusValue = number | `${number}px` | `${number}rem` | `${number}em` | `${number}%`;
6
+ export interface SafeBorderProps extends Omit<BorderProps, "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius"> {
7
+ borderRadius?: BorderRadiusValue;
8
+ borderTopLeftRadius?: BorderRadiusValue;
9
+ borderTopRightRadius?: BorderRadiusValue;
10
+ borderBottomLeftRadius?: BorderRadiusValue;
11
+ borderBottomRightRadius?: BorderRadiusValue;
12
+ }
5
13
  type GapProps = {
6
14
  gap?: SpacingUnit;
7
15
  rowGap?: SpacingUnit;
8
16
  columnGap?: SpacingUnit;
9
17
  };
10
- export interface BoxProps extends ViewProps, SpaceProps<SpacingUnitsTheme>, Omit<ColorProps<ColorsTheme>, "color">, FlexboxProps, LayoutProps, PositionProps, BorderProps, GapProps, TextAlignProps {
18
+ export interface BoxProps extends ViewProps, SpaceProps<SpacingUnitsTheme>, Omit<ColorProps<ColorsTheme>, "color">, FlexboxProps, LayoutProps, PositionProps, SafeBorderProps, GapProps, TextAlignProps {
11
19
  }
12
20
  /**
13
21
  * Box is just a `View` with common styled-system props.
@@ -1,5 +1,6 @@
1
- import { BorderProps, SpaceProps, WidthProps } from "styled-system";
2
- export interface SeparatorProps extends SpaceProps, WidthProps, BorderProps {
1
+ import { SpaceProps, WidthProps } from "styled-system";
2
+ import { SafeBorderProps } from "../Box";
3
+ export interface SeparatorProps extends SpaceProps, WidthProps, SafeBorderProps {
3
4
  }
4
5
  /**
5
6
  * A horizontal divider whose width and spacing can be adjusted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "20.0.0--canary.399.4711.0",
3
+ "version": "20.0.0--canary.399.4716.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "expo run:android --port 8082",