@artsy/palette-mobile 19.17.0 → 20.0.0--canary.399.4711.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.
@@ -8,4 +8,6 @@ export interface BorderBoxProps extends FlexProps, BorderProps, SpaceProps<Spaci
8
8
  * A `View` or `div` (depending on the platform) that has a common border
9
9
  * and padding set by default
10
10
  */
11
- export declare const BorderBox: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").BoxProps & import("react").RefAttributes<import("react-native").View>>, any, BorderBoxProps, never>;
11
+ export declare const BorderBox: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<Omit<import("..").BoxProps & import("react").RefAttributes<import("react-native").View>, "ref"> & {
12
+ ref?: import("react").Ref<import("react-native").View>;
13
+ }, BorderBoxProps>>;
@@ -12,5 +12,5 @@ export interface BoxProps extends ViewProps, SpaceProps<SpacingUnitsTheme>, Omit
12
12
  /**
13
13
  * Box is just a `View` with common styled-system props.
14
14
  */
15
- export declare const Box: import("styled-components").StyledComponent<typeof View, any, BoxProps, never>;
15
+ export declare const Box: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<ViewProps & import("react").RefAttributes<View>, BoxProps>>;
16
16
  export {};
@@ -1,7 +1,7 @@
1
1
  import { View } from "react-native";
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("styled-components").StyledComponent<typeof View, any, import("./Box").BoxProps, never>;
4
+ component: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps & import("react").RefAttributes<View>, import("./Box").BoxProps>>;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Styled: () => import("react/jsx-runtime").JSX.Element;
@@ -16,5 +16,5 @@ interface CheckMarkProps {
16
16
  size: number;
17
17
  }
18
18
  export declare const CheckMark: ({ size }: CheckMarkProps) => import("react/jsx-runtime").JSX.Element;
19
- export declare const DisabledMark: import("styled-components").StyledComponent<({ size }: CheckMarkProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
19
+ export declare const DisabledMark: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<CheckMarkProps, never>>;
20
20
  export {};
@@ -39,5 +39,5 @@ export declare const getInputState: ({ isFocused, value, }: {
39
39
  export declare const getInputVariant: ({ disabled, hasError, }: {
40
40
  disabled: boolean;
41
41
  hasError: boolean;
42
- }) => "disabled" | "error" | "default";
42
+ }) => "disabled" | "default" | "error";
43
43
  export {};
@@ -1,6 +1,6 @@
1
1
  import { IconProps } from "@artsy/icons/native";
2
2
  import { MotiPressableProps } from "moti/interactions";
3
- import { FlattenInterpolation } from "styled-components";
3
+ import { RuleSet } from "styled-components";
4
4
  import { FlexProps } from "../Flex";
5
5
  export declare const PILL_VARIANT_NAMES: readonly ["badge", "default", "dotted", "filter", "profile", "search", "onboarding", "link"];
6
6
  export type PillState = "default" | "selected" | "disabled";
@@ -18,5 +18,5 @@ export type PillProps = (FlexProps & {
18
18
  src?: string;
19
19
  });
20
20
  export declare const Pill: React.FC<PillProps>;
21
- declare const PILL_VARIANTS: Record<PillVariant, Record<PillState, FlattenInterpolation<any>>>;
21
+ declare const PILL_VARIANTS: Record<PillVariant, Record<PillState, RuleSet>>;
22
22
  export {};
@@ -22,5 +22,5 @@ interface RadioDotProps {
22
22
  size: number;
23
23
  }
24
24
  export declare const RadioDot: ({ size }: RadioDotProps) => import("react/jsx-runtime").JSX.Element;
25
- export declare const DisabledDot: import("styled-components").StyledComponent<({ size }: RadioDotProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
25
+ export declare const DisabledDot: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<RadioDotProps, never>>;
26
26
  export {};
@@ -4,4 +4,4 @@ export interface SeparatorProps extends SpaceProps, WidthProps, BorderProps {
4
4
  /**
5
5
  * A horizontal divider whose width and spacing can be adjusted
6
6
  */
7
- export declare const Separator: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, SeparatorProps, never>;
7
+ export declare const Separator: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps, import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>>, SeparatorProps>, SeparatorProps>>;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, import("./Separator").SeparatorProps, never>;
3
+ component: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps, import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>>, import("./Separator").SeparatorProps>, import("./Separator").SeparatorProps>>;
4
4
  };
5
5
  export default _default;
6
6
  export declare const Styled: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,3 @@
1
- export declare const ShadowSeparator: import("styled-components").StyledComponent<typeof import("react-native").View, any, import("./Separator").SeparatorProps, never>;
1
+ export declare const ShadowSeparator: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Omit<import("styled-components/native/dist/types").FastOmit<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps, import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>>, import("./Separator").SeparatorProps>, keyof import("./Separator").SeparatorProps> & import("./Separator").SeparatorProps, "ref"> & {
2
+ ref?: import("react").Ref<import("react-native").View>;
3
+ }, never>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "19.17.0",
3
+ "version": "20.0.0--canary.399.4711.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "expo run:android --port 8082",
@@ -38,7 +38,6 @@
38
38
  "@artsy/palette-tokens": "7.0.0",
39
39
  "@d11/react-native-fast-image": "8.12.0",
40
40
  "@shopify/flash-list": "^1.8.3",
41
- "@styled-system/core": "^5.1.2",
42
41
  "@styled-system/theme-get": "^5.1.2",
43
42
  "events": "^3.3.0",
44
43
  "lodash": "^4.17.21",
@@ -91,10 +90,7 @@
91
90
  "@types/lodash": "4.14.191",
92
91
  "@types/react": "~19.0.10",
93
92
  "@types/react-test-renderer": "19.0.0",
94
- "@types/styled-components": "^5.1.26",
95
- "@types/styled-components-react-native": "^5.2.1",
96
93
  "@types/styled-system": "^5.1.16",
97
- "@types/styled-system__core": "^5.1.3",
98
94
  "@types/styled-system__theme-get": "^5.0.2",
99
95
  "@typescript-eslint/eslint-plugin": "5.51.0",
100
96
  "@typescript-eslint/parser": "^5.51.0",
@@ -137,7 +133,7 @@
137
133
  "react-native-svg": "15.12.0",
138
134
  "react-test-renderer": "19.0.0",
139
135
  "rimraf": "4.1.2",
140
- "styled-components": "5.3.6",
136
+ "styled-components": "6.1.19",
141
137
  "typescript": "5.8.3"
142
138
  },
143
139
  "resolutions": {