@artsy/palette-mobile 20.3.0 → 20.5.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,6 +8,4 @@ export interface BorderBoxProps extends FlexProps, SpaceProps<SpacingUnitsTheme>
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/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>>;
11
+ export declare const BorderBox: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("..").BoxProps & import("react").RefAttributes<import("react-native").View>, BorderBoxProps>>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from "react";
1
2
  import { AvatarSize } from "../Avatar";
2
3
  import { FlexProps } from "../Flex";
3
4
  export interface EntityHeaderProps extends FlexProps {
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from "events";
2
+ import { JSX } from "react";
2
3
  import { TextInput, TextInputProps } from "react-native";
3
4
  export declare const inputEvents: EventEmitter<[never]>;
4
5
  export declare const emitInputClearEvent: () => void;
@@ -41,7 +41,7 @@ export const Input = forwardRef(({ addClearListener = false, defaultValue, disab
41
41
  const [inputWidth, setInputWidth] = useState(0);
42
42
  const placeholderWidths = useRef([]);
43
43
  const rightComponentRef = useRef(null);
44
- const inputRef = useRef();
44
+ const inputRef = useRef(null);
45
45
  const variant = getInputVariant({
46
46
  hasError: !!props.error,
47
47
  disabled: disabled,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { JSX } from "react";
2
2
  import { FlexProps } from "../Flex";
3
3
  export interface HeaderProps {
4
4
  animated?: boolean;
@@ -1,3 +1 @@
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>>;
1
+ export declare const ShadowSeparator: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<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, never>>;
@@ -1,3 +1,4 @@
1
+ import { JSX } from "react";
1
2
  import { CollapsibleProps } from "react-native-collapsible-tab-view";
2
3
  import { TabsContainerProps } from "./TabsContainer";
3
4
  import { HeaderProps } from "../Screen/Header";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { View } from "react-native";
3
+ import { flattenChildren } from "../flattenChildren";
4
+ describe("flattenChildren", () => {
5
+ it("flattens the children", () => {
6
+ const flattened = flattenChildren(_jsxs(_Fragment, { children: [_jsx(View, { children: "one" }), _jsx(View, { children: "two" }), _jsxs(_Fragment, { children: [_jsx(View, { children: "three" }), _jsx(_Fragment, { children: _jsx(View, { children: "four" }) })] })] }));
7
+ expect(flattened).toHaveLength(4);
8
+ });
9
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "20.3.0",
3
+ "version": "20.5.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "workspaces": [
6
6
  "Example"
@@ -129,9 +129,6 @@
129
129
  "styled-components": "6.1.19",
130
130
  "typescript": "5.8.3"
131
131
  },
132
- "resolutions": {
133
- "@types/react": "18.3.12"
134
- },
135
132
  "engines": {
136
133
  "yarn": "4.x"
137
134
  },