@artsy/palette-mobile 18.0.0--canary.368.4016.0 → 18.0.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.
- package/dist/animation/CssTransition.d.ts +1 -1
- package/dist/elements/ArtsyKeyboardAvoidingView/ArtsyKeyboardAvoidingView.d.ts +1 -1
- package/dist/elements/Avatar/Avatar.d.ts +1 -1
- package/dist/elements/Avatar/Avatar.stories.d.ts +2 -3
- package/dist/elements/BackButton/BackButton.stories.d.ts +1 -1
- package/dist/elements/Banner/Banner.d.ts +1 -1
- package/dist/elements/Banner/Banner.stories.d.ts +2 -3
- package/dist/elements/Box/Box.stories.d.ts +3 -4
- package/dist/elements/Button/Button.stories.d.ts +4 -4
- package/dist/elements/Button/CTAButton.d.ts +1 -2
- package/dist/elements/Button/FollowButton.d.ts +1 -2
- package/dist/elements/Button/LinkButton.d.ts +1 -2
- package/dist/elements/ButtonNew/Button.d.ts +1 -1
- package/dist/elements/ButtonNew/Button.stories.d.ts +12 -13
- package/dist/elements/ButtonNew/CTAButton.d.ts +1 -2
- package/dist/elements/ButtonNew/FollowButton.d.ts +1 -2
- package/dist/elements/ButtonNew/LinkButton.d.ts +1 -2
- package/dist/elements/Checkbox/Checkbox.d.ts +2 -2
- package/dist/elements/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/elements/Chip/Chip.stories.d.ts +1 -1
- package/dist/elements/ClassTheme/ClassTheme.d.ts +1 -1
- package/dist/elements/Collapse/Collapse.stories.d.ts +1 -1
- package/dist/elements/CollapsibleMenuItem/CollapsibleMenuItem.stories.d.ts +5 -6
- package/dist/elements/Dialog/Dialog.d.ts +1 -2
- package/dist/elements/EntityHeader/EntityHeader.d.ts +1 -1
- package/dist/elements/EntityHeader/EntityHeader.stories.d.ts +6 -7
- package/dist/elements/Header/ArtsyLogoHeader.d.ts +1 -2
- package/dist/elements/Histogram/Histogram.d.ts +1 -2
- package/dist/elements/Image/Image.js +20 -25
- package/dist/elements/LegacyScreen/LegacyScreen.d.ts +3 -3
- package/dist/elements/LegacyTabs/ContentTabs.d.ts +1 -2
- package/dist/elements/LegacyTabs/NavigationalTabs.d.ts +1 -2
- package/dist/elements/LegacyTabs/Tab.d.ts +1 -2
- package/dist/elements/LegacyTabs/TabBarContainer.d.ts +2 -2
- package/dist/elements/LegacyTabs/index.d.ts +1 -2
- package/dist/elements/List/BulletedItem.d.ts +1 -1
- package/dist/elements/MeasuredView/MeasuredView.d.ts +1 -1
- package/dist/elements/MenuItem/MenuItem.d.ts +1 -1
- package/dist/elements/MenuItem/MenuItem.stories.d.ts +2 -3
- package/dist/elements/Message/Message.d.ts +1 -1
- package/dist/elements/PopIn/PopIn.d.ts +1 -2
- package/dist/elements/Popover/Popover.d.ts +1 -1
- package/dist/elements/ProgressBar/ProgressBar.d.ts +1 -2
- package/dist/elements/Radio/RadioButton.d.ts +2 -2
- package/dist/elements/Radio/RadioDot.d.ts +1 -2
- package/dist/elements/Screen/Body.d.ts +13 -2
- package/dist/elements/Screen/Body.js +2 -2
- package/dist/elements/Screen/ScreenFlatList.d.ts +1 -1
- package/dist/elements/Screen/StickySubHeader.d.ts +1 -1
- package/dist/elements/SearchInput/SearchInput.d.ts +1 -2
- package/dist/elements/Separator/Separator.stories.d.ts +1 -2
- package/dist/elements/Skeleton/Skeleton.stories.d.ts +1 -1
- package/dist/elements/Spacer/Spacer.d.ts +1 -2
- package/dist/elements/Spacer/Spacer.stories.d.ts +3 -4
- package/dist/elements/Switch/Switch.d.ts +1 -2
- package/dist/elements/Switch/Switch.stories.d.ts +2 -3
- package/dist/elements/Tabs/TabFlashList.d.ts +1 -2
- package/dist/elements/Tabs/TabFlatList.d.ts +1 -2
- package/dist/elements/Tabs/TabMasonry.d.ts +1 -1
- package/dist/elements/Text/LinkText.d.ts +1 -2
- package/dist/elements/Touchable/Touchable.stories.d.ts +1 -1
- package/dist/elements/Touchable/TouchableHighlightColor.d.ts +1 -1
- package/dist/elements/Touchable/TouchableWithScale.d.ts +1 -2
- package/dist/storybook/helpers.d.ts +3 -4
- package/dist/utils/Wrap.d.ts +2 -2
- package/dist/utils/colors.stories.d.ts +1 -2
- package/dist/utils/hooks/useScreenDimensions.d.ts +1 -2
- package/dist/utils/space.stories.d.ts +1 -2
- package/dist/utils/tests/renderWithWrappers.d.ts +1 -1
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@ export declare class CssTransition extends Component<CssTransitionProps, CssTran
|
|
|
11
11
|
private animatedValue;
|
|
12
12
|
constructor(props: any);
|
|
13
13
|
UNSAFE_componentWillReceiveProps(nextProps: CssTransitionProps): void;
|
|
14
|
-
render(): JSX.Element;
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
private mergeStyles;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -9,4 +9,4 @@ export interface AvatarProps extends ImgHTMLAttributes<any> {
|
|
|
9
9
|
src?: string;
|
|
10
10
|
}
|
|
11
11
|
/** A circular Avatar component containing an image or initials */
|
|
12
|
-
export declare const Avatar: ({ src, initials, size, blurhash }: AvatarProps) => JSX.Element;
|
|
12
|
+
export declare const Avatar: ({ src, initials, size, blurhash }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AvatarProps } from "./Avatar";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: ({ src, initials, size, blurhash }: AvatarProps) => JSX.Element;
|
|
4
|
+
component: ({ src, initials, size, blurhash }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
|
-
export declare function Variants(): JSX.Element;
|
|
7
|
+
export declare function Variants(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,7 +15,7 @@ type BannerWithChildren = CommonBannerProps & {
|
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
};
|
|
17
17
|
export type BannerProps = BannerWithText | BannerWithChildren;
|
|
18
|
-
export declare const Banner: ({ text, onClose, dismissable, variant, children, ...restProps }: BannerProps) => JSX.Element;
|
|
18
|
+
export declare const Banner: ({ text, onClose, dismissable, variant, children, ...restProps }: BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
declare const BANNER_VARIANTS: {
|
|
20
20
|
defaultLight: {
|
|
21
21
|
backgroundColor: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: ({ text, onClose, dismissable, variant, children, ...restProps }: import("./Banner").BannerProps) => JSX.Element;
|
|
3
|
+
component: ({ text, onClose, dismissable, variant, children, ...restProps }: import("./Banner").BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const States: () => JSX.Element;
|
|
6
|
+
export declare const States: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from "react-native";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: import("styled-components").StyledComponent<typeof View, any, import("./Box").BoxProps, never>;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
|
-
export declare const Styled: () => JSX.Element;
|
|
9
|
-
export declare const RegularViewProps: () => JSX.Element;
|
|
10
|
-
export declare const GapProps: () => JSX.Element;
|
|
7
|
+
export declare const Styled: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const RegularViewProps: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const GapProps: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
component: import("react").FC<ButtonProps>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Sizes: () => JSX.Element;
|
|
9
|
-
export declare const States: () => JSX.Element;
|
|
10
|
-
export declare const Variants: () => JSX.Element;
|
|
11
|
-
export declare const VariantsLoading: () => JSX.Element;
|
|
8
|
+
export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const States: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const VariantsLoading: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps } from "../Button";
|
|
3
2
|
type FollowButtonProps = Omit<ButtonProps, "variant" | "size" | "longestText" | "icon" | "children"> & {
|
|
4
3
|
isFollowed: boolean;
|
|
5
4
|
followCount?: number;
|
|
6
5
|
longestText?: string;
|
|
7
6
|
};
|
|
8
|
-
export declare const FollowButton: ({ isFollowed, followCount, longestText, loading, ...restProps }: FollowButtonProps) => JSX.Element;
|
|
7
|
+
export declare const FollowButton: ({ isFollowed, followCount, longestText, loading, ...restProps }: FollowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -30,5 +30,5 @@ export interface ButtonProps extends BoxProps {
|
|
|
30
30
|
/** Used only for tests and stories */
|
|
31
31
|
testOnly_pressed?: PressableProps["testOnly_pressed"];
|
|
32
32
|
}
|
|
33
|
-
export declare const Button: ({ children, disabled: disabledProp, haptic, icon, iconPosition, loading: loadingProp, block, longestText, onPress, size, variant, testOnly_pressed, testID, hitSlop, ...restProps }: ButtonProps) => JSX.Element;
|
|
33
|
+
export declare const Button: ({ children, disabled: disabledProp, haptic, icon, iconPosition, loading: loadingProp, block, longestText, onPress, size, variant, testOnly_pressed, testID, hitSlop, ...restProps }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export {};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps } from "./Button";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: ({ children, disabled: disabledProp, haptic, icon, iconPosition, loading: loadingProp, block, longestText, onPress, size, variant, testOnly_pressed, testID, hitSlop, ...restProps }: ButtonProps) => JSX.Element;
|
|
4
|
+
component: ({ children, disabled: disabledProp, haptic, icon, iconPosition, loading: loadingProp, block, longestText, onPress, size, variant, testOnly_pressed, testID, hitSlop, ...restProps }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
|
-
export declare const Sizes: () => JSX.Element;
|
|
9
|
-
export declare const States: () => JSX.Element;
|
|
10
|
-
export declare const Variants: () => JSX.Element;
|
|
11
|
-
export declare const VariantsLoading: () => JSX.Element;
|
|
12
|
-
export declare const VariantsDisabled: () => JSX.Element;
|
|
13
|
-
export declare const TheFollowButton: () => JSX.Element;
|
|
14
|
-
export declare const TheCTAButton: () => JSX.Element;
|
|
15
|
-
export declare const TheLinkButton: () => JSX.Element;
|
|
16
|
-
export declare const Miscellaneous: () => JSX.Element;
|
|
17
|
-
export declare const Playground: () => JSX.Element;
|
|
18
|
-
export declare const SpacingAround: () => JSX.Element;
|
|
7
|
+
export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const States: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const VariantsLoading: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const VariantsDisabled: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const TheFollowButton: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const TheCTAButton: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const TheLinkButton: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Miscellaneous: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Playground: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const SpacingAround: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps } from "../Button";
|
|
3
2
|
type FollowButtonProps = Omit<ButtonProps, "variant" | "size" | "longestText" | "icon" | "children"> & {
|
|
4
3
|
isFollowed: boolean;
|
|
5
4
|
followCount?: number;
|
|
6
5
|
longestText?: string;
|
|
7
6
|
};
|
|
8
|
-
export declare const FollowButton: ({ isFollowed, followCount, longestText, loading, ...restProps }: FollowButtonProps) => JSX.Element;
|
|
7
|
+
export declare const FollowButton: ({ isFollowed, followCount, longestText, loading, ...restProps }: FollowButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -16,6 +16,6 @@ export declare const Checkbox: React.FC<CheckboxProps>;
|
|
|
16
16
|
interface CheckMarkProps {
|
|
17
17
|
size: number;
|
|
18
18
|
}
|
|
19
|
-
export declare const CheckMark: ({ size }: CheckMarkProps) => JSX.Element;
|
|
20
|
-
export declare const DisabledMark: import("styled-components").StyledComponent<({ size }: CheckMarkProps) => JSX.Element, any, {}, never>;
|
|
19
|
+
export declare const CheckMark: ({ size }: CheckMarkProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const DisabledMark: import("styled-components").StyledComponent<({ size }: CheckMarkProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
21
21
|
export {};
|
|
@@ -3,4 +3,4 @@ import { useTheme } from "../../";
|
|
|
3
3
|
export declare const ClassTheme: ({ theme, children, }: {
|
|
4
4
|
theme?: "v3" | undefined;
|
|
5
5
|
children: import("react").ReactNode | ((helpers: ReturnType<typeof useTheme>) => React.ReactNode);
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ArtworkDetails: ({ handlePress }: {
|
|
3
2
|
handlePress: () => void;
|
|
4
|
-
}) => JSX.Element;
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare const UploadPhotos: ({ handlePress }: {
|
|
6
5
|
handlePress: () => void;
|
|
7
|
-
}) => JSX.Element;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export declare const ContactInformation: ({ handlePress }: {
|
|
9
8
|
handlePress: () => void;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
export declare const DisplayContent: () => JSX.Element;
|
|
12
|
-
export declare const ComponentWithCollapsibleMenu: () => JSX.Element;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const DisplayContent: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ComponentWithCollapsibleMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface DialogAction {
|
|
3
2
|
text: string;
|
|
4
3
|
onPress: () => void;
|
|
@@ -11,5 +10,5 @@ export interface DialogProps {
|
|
|
11
10
|
secondaryCta?: DialogAction;
|
|
12
11
|
onBackgroundPress?: () => void;
|
|
13
12
|
}
|
|
14
|
-
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
13
|
+
export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -16,4 +16,4 @@ export interface EntityHeaderProps extends FlexProps {
|
|
|
16
16
|
displayPrivateIcon?: boolean;
|
|
17
17
|
theme?: "dark" | "light";
|
|
18
18
|
}
|
|
19
|
-
export declare const EntityHeader: ({ avatarSize, FollowButton, RightButton, imageUrl, initials, meta, name, smallVariant, displayPrivateIcon, theme, ...restProps }: EntityHeaderProps) => JSX.Element;
|
|
19
|
+
export declare const EntityHeader: ({ avatarSize, FollowButton, RightButton, imageUrl, initials, meta, name, smallVariant, displayPrivateIcon, theme, ...restProps }: EntityHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: ({ avatarSize, FollowButton, RightButton, imageUrl, initials, meta, name, smallVariant, displayPrivateIcon, theme, ...restProps }: import("./EntityHeader").EntityHeaderProps) => JSX.Element;
|
|
3
|
+
component: ({ avatarSize, FollowButton, RightButton, imageUrl, initials, meta, name, smallVariant, displayPrivateIcon, theme, ...restProps }: import("./EntityHeader").EntityHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const Initials: () => JSX.Element;
|
|
8
|
-
export declare const Image: () => JSX.Element;
|
|
9
|
-
export declare const VariantSmall: () => JSX.Element;
|
|
10
|
-
export declare const WithRightButton: () => JSX.Element;
|
|
11
|
-
export declare const WithPrivateIcon: () => JSX.Element;
|
|
6
|
+
export declare const Initials: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Image: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const VariantSmall: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const WithRightButton: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const WithPrivateIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Props {
|
|
3
2
|
shadow?: boolean;
|
|
4
3
|
}
|
|
5
|
-
export declare const ArtsyLogoHeader: ({ shadow }: Props) => JSX.Element;
|
|
4
|
+
export declare const ArtsyLogoHeader: ({ shadow }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Range = [number, number];
|
|
3
2
|
export interface HistogramBarEntity {
|
|
4
3
|
count: number;
|
|
@@ -8,5 +7,5 @@ interface HistogramProps {
|
|
|
8
7
|
selectedRange: Range;
|
|
9
8
|
bars: HistogramBarEntity[];
|
|
10
9
|
}
|
|
11
|
-
export declare const Histogram: ({ bars, selectedRange }: HistogramProps) => JSX.Element;
|
|
10
|
+
export declare const Histogram: ({ bars, selectedRange }: HistogramProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -1,29 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import FastImage from "@d11/react-native-fast-image";
|
|
3
|
-
import { memo,
|
|
4
|
-
import { PixelRatio, View } from "react-native";
|
|
3
|
+
import { memo, useRef } from "react";
|
|
4
|
+
import { PixelRatio, View, Animated } from "react-native";
|
|
5
5
|
import { Blurhash } from "react-native-blurhash";
|
|
6
|
-
import Animated, { Easing, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
|
|
7
6
|
import { createGeminiUrl } from "../../utils/createGeminiUrl";
|
|
8
7
|
import { useColor } from "../../utils/hooks";
|
|
9
8
|
import { useScreenDimensions } from "../../utils/hooks/useScreenDimensions";
|
|
10
9
|
import { Flex } from "../Flex";
|
|
11
10
|
import { Skeleton, SkeletonBox } from "../Skeleton";
|
|
12
11
|
export const Image = memo(({ aspectRatio, width, height, performResize = true, src, style, resizeMode, geminiResizeMode, showLoadingState = false, blurhash, ...flexProps }) => {
|
|
13
|
-
const loading = useSharedValue(true);
|
|
14
12
|
const dimensions = useImageDimensions({ aspectRatio, width, height });
|
|
15
13
|
const color = useColor();
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// No need to get the js thread involved here
|
|
25
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
|
-
}, []);
|
|
14
|
+
const opacity = useRef(new Animated.Value(0)).current;
|
|
15
|
+
const onLoadEnd = () => {
|
|
16
|
+
Animated.timing(opacity, {
|
|
17
|
+
toValue: 1,
|
|
18
|
+
duration: 200,
|
|
19
|
+
useNativeDriver: true,
|
|
20
|
+
}).start();
|
|
21
|
+
};
|
|
27
22
|
if (showLoadingState) {
|
|
28
23
|
return (_jsx(ImageSkeleton, { dimensions: dimensions, blurhash: blurhash, style: { position: "absolute" } }));
|
|
29
24
|
}
|
|
@@ -36,16 +31,16 @@ export const Image = memo(({ aspectRatio, width, height, performResize = true, s
|
|
|
36
31
|
resizeMode: geminiResizeMode,
|
|
37
32
|
});
|
|
38
33
|
}
|
|
39
|
-
return (_jsxs(Flex, { position: "relative", ...flexProps, style: { ...dimensions }, children: [_jsx(View, { style: [dimensions, { position: "absolute" }], children: _jsx(ImageSkeleton, { dimensions: dimensions, blurhash: blurhash, style: { position: "absolute" } }) }), _jsx(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
return (_jsxs(Flex, { position: "relative", ...flexProps, style: { ...dimensions }, children: [_jsx(View, { style: [dimensions, { position: "absolute" }], children: _jsx(ImageSkeleton, { dimensions: dimensions, blurhash: blurhash, style: { position: "absolute" } }) }), _jsx(FastImage, { style: [
|
|
35
|
+
dimensions,
|
|
36
|
+
style,
|
|
37
|
+
// If we have a blurhash, we don't want to show a background color
|
|
38
|
+
// That might flash before the image loads
|
|
39
|
+
{ backgroundColor: blurhash ? "transparent" : color("mono30") },
|
|
40
|
+
], resizeMode: resizeMode, onLoadEnd: onLoadEnd, source: {
|
|
41
|
+
priority: FastImage.priority.normal,
|
|
42
|
+
uri,
|
|
43
|
+
} })] }));
|
|
49
44
|
});
|
|
50
45
|
const useImageDimensions = (props) => {
|
|
51
46
|
const screenDimensions = useScreenDimensions();
|
|
@@ -19,8 +19,8 @@ interface BodyProps extends Pick<FlexProps, "backgroundColor"> {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const LegacyScreen: (({ children }: {
|
|
21
21
|
children?: React.ReactNode;
|
|
22
|
-
}) => JSX.Element) & {
|
|
23
|
-
Body: ({ scroll, noTopSafe, noBottomSafe, fullwidth, children, ...restFlexProps }: BodyProps) => JSX.Element;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
23
|
+
Body: ({ scroll, noTopSafe, noBottomSafe, fullwidth, children, ...restFlexProps }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
Header: import("react").FC<HeaderProps>;
|
|
25
25
|
FloatingHeader: import("react").FC<HeaderProps>;
|
|
26
26
|
Background: import("react").FC<{
|
|
@@ -30,6 +30,6 @@ export declare const LegacyScreen: (({ children }: {
|
|
|
30
30
|
children?: import("react").ReactNode;
|
|
31
31
|
}>;
|
|
32
32
|
BodyXPadding: import("react").FC<import("..").BoxProps>;
|
|
33
|
-
SafeBottomPadding: () => JSX.Element | null;
|
|
33
|
+
SafeBottomPadding: () => import("react/jsx-runtime").JSX.Element | null;
|
|
34
34
|
};
|
|
35
35
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabsProps } from "../LegacyTabs";
|
|
3
2
|
/**
|
|
4
3
|
* Renders a scrollable list of tabs. Tabs are not evenly spaced across screen
|
|
5
4
|
*/
|
|
6
|
-
export declare const ContentTabs: ({ onTabPress, activeTab, tabs }: TabsProps) => JSX.Element;
|
|
5
|
+
export declare const ContentTabs: ({ onTabPress, activeTab, tabs }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabsProps } from "../LegacyTabs";
|
|
3
2
|
/**
|
|
4
3
|
* Renders a list of tabs. Evenly-spaces them across the screen with
|
|
5
4
|
* each tab label centered on the tab
|
|
6
5
|
*/
|
|
7
|
-
export declare const NavigationalTabs: ({ onTabPress, activeTab, tabs }: TabsProps) => JSX.Element;
|
|
6
|
+
export declare const NavigationalTabs: ({ onTabPress, activeTab, tabs }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ViewProps, ViewStyle } from "react-native";
|
|
3
2
|
export interface TabV3Props {
|
|
4
3
|
label: string;
|
|
@@ -8,4 +7,4 @@ export interface TabV3Props {
|
|
|
8
7
|
onPress: () => void;
|
|
9
8
|
onLayout: ViewProps["onLayout"];
|
|
10
9
|
}
|
|
11
|
-
export declare const TabV3: ({ label, superscript, active, onLayout, onPress, style }: TabV3Props) => JSX.Element;
|
|
10
|
+
export declare const TabV3: ({ label, superscript, active, onLayout, onPress, style }: TabV3Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,7 +13,7 @@ export interface TabBarContainerProps {
|
|
|
13
13
|
* <TabBarContainer>{props.tabs.map((tab) => <Tab {...tab} />)}</TabContainer>
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export declare const TabBarContainer: ({ children, activeTabIndex, scrollEnabled, tabLayouts, }: TabBarContainerProps) => JSX.Element;
|
|
16
|
+
export declare const TabBarContainer: ({ children, activeTabIndex, scrollEnabled, tabLayouts, }: TabBarContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare function spring(node: Animated.Value, toValue: number): Animated.CompositeAnimation;
|
|
18
18
|
/**
|
|
19
19
|
* Underlines the Active Tab. Same implementation in StickyTabPageTabBar
|
|
@@ -21,4 +21,4 @@ export declare function spring(node: Animated.Value, toValue: number): Animated.
|
|
|
21
21
|
export declare const ActiveTabBorder: ({ tabLayouts, activeTabIndex, }: {
|
|
22
22
|
tabLayouts: LayoutRectangle[];
|
|
23
23
|
activeTabIndex: number;
|
|
24
|
-
}) => JSX.Element;
|
|
24
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ContentTabs } from "./ContentTabs";
|
|
3
2
|
import { NavigationalTabs } from "./NavigationalTabs";
|
|
4
3
|
import { StepTabs } from "./StepTabs";
|
|
5
4
|
import { TabV3Props } from "./Tab";
|
|
6
5
|
export { NavigationalTabs, ContentTabs, StepTabs };
|
|
7
|
-
export declare const Tab: ({ ...props }: TabV3Props) => JSX.Element;
|
|
6
|
+
export declare const Tab: ({ ...props }: TabV3Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export declare const TAB_BAR_HEIGHT = 44;
|
|
9
8
|
export type TabsType = Array<{
|
|
10
9
|
label: string;
|
|
@@ -4,5 +4,5 @@ interface BulletedItemProps extends FlexProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
color?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const BulletedItem: ({ children, color, ...otherFlexProps }: BulletedItemProps) => JSX.Element;
|
|
7
|
+
export declare const BulletedItem: ({ children, color, ...otherFlexProps }: BulletedItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -14,6 +14,6 @@ interface Props {
|
|
|
14
14
|
* A view that renders off-screen, measures the width and height of the view, and reports it back.
|
|
15
15
|
* Note: it is rendering just null when in test mode.
|
|
16
16
|
*/
|
|
17
|
-
export declare const MeasuredView: ({ children, setMeasuredState, show }: Props) => JSX.Element | null;
|
|
17
|
+
export declare const MeasuredView: ({ children, setMeasuredState, show }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
18
|
export declare const useOffscreenStyle: (notOffscreen?: boolean) => ViewStyle;
|
|
19
19
|
export {};
|
|
@@ -8,4 +8,4 @@ export interface MenuItemProps {
|
|
|
8
8
|
chevron?: React.ReactNode;
|
|
9
9
|
rightView?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare const MenuItem: ({ title, text, value, onPress, disabled, chevron, }: MenuItemProps) => JSX.Element;
|
|
11
|
+
export declare const MenuItem: ({ title, text, value, onPress, disabled, chevron, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: ({ title, text, value, onPress, disabled, chevron, }: import("./MenuItem").MenuItemProps) => JSX.Element;
|
|
3
|
+
component: ({ title, text, value, onPress, disabled, chevron, }: import("./MenuItem").MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const Variations: () => JSX.Element;
|
|
6
|
+
export declare const Variations: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,6 @@ interface PopoverProps extends Omit<RNPopoverProps, "placement"> {
|
|
|
14
14
|
noCloseIcon?: boolean;
|
|
15
15
|
visible?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const Popover: ({ variant, children, visible, onOpenComplete, onPressOutside, onDismiss, onCloseComplete, placement, title, content, noCloseIcon, ...rest }: PopoverProps) => JSX.Element;
|
|
17
|
+
export declare const Popover: ({ variant, children, visible, onOpenComplete, onPressOutside, onDismiss, onCloseComplete, placement, title, content, noCloseIcon, ...rest }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export type PopoverVariant = "light" | "dark";
|
|
19
19
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ViewStyle } from "react-native";
|
|
3
2
|
import { Color } from "../../types";
|
|
4
3
|
export interface ProgressBarProps {
|
|
@@ -11,4 +10,4 @@ export interface ProgressBarProps {
|
|
|
11
10
|
style?: ViewStyle;
|
|
12
11
|
progressBarStyle?: ViewStyle;
|
|
13
12
|
}
|
|
14
|
-
export declare const ProgressBar: ({ animationDuration, backgroundColor, height, onCompletion, progress: unclampedProgress, trackColor, style, progressBarStyle, }: ProgressBarProps) => JSX.Element;
|
|
13
|
+
export declare const ProgressBar: ({ animationDuration, backgroundColor, height, onCompletion, progress: unclampedProgress, trackColor, style, progressBarStyle, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,6 @@ export declare const RadioButton: React.FC<RadioButtonProps>;
|
|
|
22
22
|
interface RadioDotProps {
|
|
23
23
|
size: number;
|
|
24
24
|
}
|
|
25
|
-
export declare const RadioDot: ({ size }: RadioDotProps) => JSX.Element;
|
|
26
|
-
export declare const DisabledDot: import("styled-components").StyledComponent<({ size }: RadioDotProps) => JSX.Element, any, {}, never>;
|
|
25
|
+
export declare const RadioDot: ({ size }: RadioDotProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const DisabledDot: import("styled-components").StyledComponent<({ size }: RadioDotProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
27
27
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexProps } from "../Flex";
|
|
3
2
|
type RadioDotMode = "default" | "disabled" | "error" | "hover";
|
|
4
3
|
export declare const RADIO_DOT_MODES: Record<RadioDotMode, {
|
|
@@ -11,5 +10,5 @@ interface RadioDotProps {
|
|
|
11
10
|
hover?: boolean;
|
|
12
11
|
selected?: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare const RadioDot: (props: RadioDotProps) => JSX.Element;
|
|
13
|
+
export declare const RadioDot: (props: RadioDotProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type ScrollViewProps } from "react-native";
|
|
2
3
|
import { FlexProps } from "../Flex";
|
|
3
|
-
|
|
4
|
+
interface BodyBaseProps extends FlexProps {
|
|
4
5
|
fullwidth?: boolean;
|
|
5
|
-
scroll?: boolean;
|
|
6
6
|
disableKeyboardAvoidance?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
}
|
|
9
|
+
interface BodyScrollableProps extends BodyBaseProps {
|
|
10
|
+
scroll: true;
|
|
11
|
+
scrollViewProps?: ScrollViewProps;
|
|
12
|
+
}
|
|
13
|
+
interface BodyNonScrollableProps extends BodyBaseProps {
|
|
14
|
+
scroll?: false | undefined;
|
|
15
|
+
scrollViewProps?: never;
|
|
16
|
+
}
|
|
17
|
+
export type BodyProps = BodyScrollableProps | BodyNonScrollableProps;
|
|
8
18
|
export declare const Body: React.FC<BodyProps>;
|
|
19
|
+
export {};
|
|
@@ -3,9 +3,9 @@ import { Fragment } from "react";
|
|
|
3
3
|
import { KeyboardAvoidingView, Platform, ScrollView } from "react-native";
|
|
4
4
|
import { SCREEN_HORIZONTAL_PADDING } from "./constants";
|
|
5
5
|
import { Flex } from "../Flex";
|
|
6
|
-
export const Body = ({ children, fullwidth, scroll, disableKeyboardAvoidance = false, ...flexProps }) => {
|
|
6
|
+
export const Body = ({ children, fullwidth, scroll, disableKeyboardAvoidance = false, scrollViewProps, ...flexProps }) => {
|
|
7
7
|
const Wrapper = disableKeyboardAvoidance ? Fragment : KeyboardAvoidingView;
|
|
8
8
|
return (_jsx(Wrapper, { ...(disableKeyboardAvoidance
|
|
9
9
|
? {}
|
|
10
|
-
: { style: { flex: 1 }, behavior: Platform.OS === "ios" ? "padding" : "height" }), children: _jsx(Flex, { flex: 1, ...flexProps, children: _jsx(Flex, { flex: 1, px: fullwidth ? undefined : SCREEN_HORIZONTAL_PADDING, children: scroll ? _jsx(ScrollView, { children: children }) : children }) }) }));
|
|
10
|
+
: { style: { flex: 1 }, behavior: Platform.OS === "ios" ? "padding" : "height" }), children: _jsx(Flex, { flex: 1, ...flexProps, children: _jsx(Flex, { flex: 1, px: fullwidth ? undefined : SCREEN_HORIZONTAL_PADDING, children: scroll ? _jsx(ScrollView, { ...scrollViewProps, children: children }) : children }) }) }));
|
|
11
11
|
};
|
|
@@ -3,4 +3,4 @@ import { FlatList, FlatListProps } from "react-native";
|
|
|
3
3
|
export type ScreenFlatListProps<T> = Omit<FlatListProps<T>, "CellRendererComponent"> & {
|
|
4
4
|
innerRef?: React.ForwardedRef<FlatList<T>>;
|
|
5
5
|
};
|
|
6
|
-
export declare function ScreenFlatList<T>(props: ScreenFlatListProps<T>): JSX.Element;
|
|
6
|
+
export declare function ScreenFlatList<T>(props: ScreenFlatListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,6 @@ export interface StickySubHeaderProps extends React.PropsWithChildren<{}> {
|
|
|
10
10
|
Component?: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export declare const STICKY_BAR_HEIGHT = 42;
|
|
13
|
-
export declare const DEFAULT_SEPARATOR_COMPONENT: JSX.Element;
|
|
13
|
+
export declare const DEFAULT_SEPARATOR_COMPONENT: import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare const BOTTOM_TABS_HEIGHT = 65;
|
|
15
15
|
export declare const StickySubHeader: React.FC<StickySubHeaderProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type InputProps } from "../Input";
|
|
3
2
|
export interface SearchInputProps extends InputProps {
|
|
4
3
|
enableCancelButton?: boolean;
|
|
5
4
|
}
|
|
6
|
-
export declare const SearchInput: ({ enableCancelButton, onChangeText, onClear, ...props }: SearchInputProps) => JSX.Element;
|
|
5
|
+
export declare const SearchInput: ({ enableCancelButton, onChangeText, onClear, ...props }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
3
|
component: import("styled-components").StyledComponent<typeof import("react-native/types").View, import("styled-components").DefaultTheme, import("./Separator").SeparatorProps, never>;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const Styled: () => JSX.Element;
|
|
6
|
+
export declare const Styled: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SpacingUnit } from "../../types";
|
|
3
2
|
export interface SpacerProps {
|
|
4
3
|
x?: SpacingUnit;
|
|
@@ -7,4 +6,4 @@ export interface SpacerProps {
|
|
|
7
6
|
/**
|
|
8
7
|
* Used to inject space where it's needed.
|
|
9
8
|
*/
|
|
10
|
-
export declare const Spacer: ({ x, y, ...props }: SpacerProps) => JSX.Element;
|
|
9
|
+
export declare const Spacer: ({ x, y, ...props }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SpacerProps } from "./Spacer";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: ({ x, y, ...props }: SpacerProps) => JSX.Element;
|
|
4
|
+
component: ({ x, y, ...props }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
|
-
export declare const Horizontal: () => JSX.Element;
|
|
9
|
-
export declare const Vertical: () => JSX.Element;
|
|
7
|
+
export declare const Horizontal: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Vertical: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Color } from "@artsy/palette-tokens";
|
|
3
2
|
import { SwitchProps as RNSwitchProps } from "react-native";
|
|
4
3
|
type CustomSwitchProps = Omit<RNSwitchProps, "trackColor" | "thumbColor" | "ios_backgroundColor" | "thumbTintColor" | "tintColor" | "onTintColor">;
|
|
@@ -20,5 +19,5 @@ export interface SwitchProps extends CustomSwitchProps {
|
|
|
20
19
|
*/
|
|
21
20
|
trackColorInactive?: Color;
|
|
22
21
|
}
|
|
23
|
-
export declare const Switch: ({ value, thumbColorActive, thumbColorInactive, trackColorActive, trackColorInactive, disabled, ...restProps }: SwitchProps) => JSX.Element;
|
|
22
|
+
export declare const Switch: ({ value, thumbColorActive, thumbColorInactive, trackColorActive, trackColorInactive, disabled, ...restProps }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: ({ value, thumbColorActive, thumbColorInactive, trackColorActive, trackColorInactive, disabled, ...restProps }: import("./Switch").SwitchProps) => JSX.Element;
|
|
3
|
+
component: ({ value, thumbColorActive, thumbColorInactive, trackColorActive, trackColorInactive, disabled, ...restProps }: import("./Switch").SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const Variants: () => JSX.Element;
|
|
6
|
+
export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlashListProps } from "@shopify/flash-list";
|
|
3
|
-
export declare function TabFlashList<T>(props: FlashListProps<T>): JSX.Element;
|
|
2
|
+
export declare function TabFlashList<T>(props: FlashListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { MasonryFlashListProps, MasonryFlashListRef } from "@shopify/flash-list"
|
|
|
2
2
|
import { RefObject } from "react";
|
|
3
3
|
export declare function TabMasonry<T>(props: MasonryFlashListProps<T> & {
|
|
4
4
|
innerRef?: RefObject<MasonryFlashListRef<T>> | null;
|
|
5
|
-
}): JSX.Element;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,5 +10,5 @@ interface TouchableHighlightColorProps extends TouchableProps {
|
|
|
10
10
|
normalColor?: Color;
|
|
11
11
|
render: (state: TouchableHighlightState) => React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const TouchableHighlightColor: (props: TouchableHighlightColorProps) => JSX.Element;
|
|
13
|
+
export declare const TouchableHighlightColor: (props: TouchableHighlightColorProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableWithoutFeedbackProps } from "react-native";
|
|
3
2
|
export interface TouchableWithScaleProps extends TouchableWithoutFeedbackProps {
|
|
4
3
|
defaultScale?: number;
|
|
5
4
|
activeScale?: number;
|
|
6
5
|
}
|
|
7
|
-
export declare const TouchableWithScale: ({ defaultScale, activeScale, onPressIn, onPressOut, style, children, ...restProps }: TouchableWithScaleProps) => JSX.Element;
|
|
6
|
+
export declare const TouchableWithScale: ({ defaultScale, activeScale, onPressIn, onPressOut, style, children, ...restProps }: TouchableWithScaleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StyleProp, ViewStyle } from "react-native";
|
|
3
2
|
export declare const DataList: <ItemT>({ data, keyExtractor, renderItem, contentContainerStyle, }: {
|
|
4
3
|
data: ItemT[];
|
|
@@ -8,13 +7,13 @@ export declare const DataList: <ItemT>({ data, keyExtractor, renderItem, content
|
|
|
8
7
|
index: number;
|
|
9
8
|
}) => React.ReactElement | null;
|
|
10
9
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
11
|
-
}) => JSX.Element;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const List: ({ children, contentContainerStyle, style, horizontal, }: {
|
|
13
12
|
children: React.ReactElement[] | React.ReactElement;
|
|
14
13
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
15
14
|
style?: StyleProp<ViewStyle>;
|
|
16
15
|
horizontal?: boolean | undefined;
|
|
17
|
-
}) => JSX.Element;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export declare const Row: ({ children }: {
|
|
19
18
|
children: React.ReactNode;
|
|
20
|
-
}) => JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/utils/Wrap.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ interface WrapProps {
|
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const Wrap: {
|
|
7
|
-
({ if: condition, children }: WrapProps): JSX.Element;
|
|
7
|
+
({ if: condition, children }: WrapProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Content({ children }: {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
-
}): JSX.Element;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ScaledSize } from "react-native";
|
|
3
2
|
import { EdgeInsets } from "react-native-safe-area-context";
|
|
4
3
|
export type ScreenOrientation = "landscape" | "portrait";
|
|
@@ -11,7 +10,7 @@ export interface ScreenDimensions extends ScaledSize {
|
|
|
11
10
|
}
|
|
12
11
|
export declare const ScreenDimensionsProvider: ({ children }: {
|
|
13
12
|
children: React.ReactNode;
|
|
14
|
-
}) => JSX.Element;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export declare function useScreenDimensions(): ScreenDimensions;
|
|
16
15
|
/**
|
|
17
16
|
* The following components have slightly different sizing dimensions based on the iPhone model
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/palette-mobile",
|
|
3
|
-
"version": "18.0.0
|
|
3
|
+
"version": "18.0.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",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/events": "^3.0.0",
|
|
90
90
|
"@types/jest": "29.4.0",
|
|
91
91
|
"@types/lodash": "4.14.191",
|
|
92
|
-
"@types/react": "
|
|
92
|
+
"@types/react": "18.3.12",
|
|
93
93
|
"@types/react-test-renderer": "18.3.0",
|
|
94
94
|
"@types/styled-components": "^5.1.26",
|
|
95
95
|
"@types/styled-components-react-native": "^5.2.1",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"prettier": "^2.8.8",
|
|
127
127
|
"pull-lock": "1.0.0",
|
|
128
128
|
"react": "18.3.1",
|
|
129
|
-
"react-dom": "18.
|
|
129
|
+
"react-dom": "18.3.1",
|
|
130
130
|
"react-native": "0.76.9",
|
|
131
131
|
"react-native-device-info": "14.0.4",
|
|
132
132
|
"react-native-haptic-feedback": "1.14.0",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"typescript": "5.0.4"
|
|
141
141
|
},
|
|
142
142
|
"resolutions": {
|
|
143
|
-
"@types/react": "
|
|
143
|
+
"@types/react": "18.3.12"
|
|
144
144
|
},
|
|
145
145
|
"engines": {
|
|
146
146
|
"yarn": "1.x"
|