@ledgerhq/native-ui 0.22.0-nightly.0 → 0.22.1-next.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.
Files changed (34) hide show
  1. package/lib/components/Cards/BannerCard/index.d.ts +1 -1
  2. package/lib/components/Cards/SideImageCard/index.d.ts +1 -1
  3. package/lib/components/Carousel/index.d.ts +1 -1
  4. package/lib/components/Carousel/index.js +1 -1
  5. package/lib/components/ChartCard/index.d.ts +1 -1
  6. package/lib/components/Form/SelectableList.d.ts +2 -2
  7. package/lib/components/Form/Slider/components.d.ts +2 -2
  8. package/lib/components/Form/Slider/index.d.ts +2 -2
  9. package/lib/components/Form/Slider/index.native.d.ts +2 -2
  10. package/lib/components/Icon/BoxedIcon.d.ts +3 -3
  11. package/lib/components/Icon/IconBadge.d.ts +2 -2
  12. package/lib/components/Layout/Collapse/Accordion/index.js +1 -1
  13. package/lib/components/Layout/List/VerticalStepper/StepperItem.d.ts +2 -2
  14. package/lib/components/Layout/List/VerticalStepper/index.d.ts +1 -12
  15. package/lib/components/Layout/List/VerticalTimeline/TimelineIndicator.d.ts +2 -2
  16. package/lib/components/Layout/List/VerticalTimeline/TimelineItem.d.ts +2 -2
  17. package/lib/components/Layout/List/VerticalTimeline/index.d.ts +1 -1
  18. package/lib/components/Layout/Modals/BaseModal/index.d.ts +4 -2
  19. package/lib/components/Layout/ScrollContainerHeader/index.d.ts +4 -4
  20. package/lib/components/Layout/ScrollContainerHeader/index.js +3 -3
  21. package/lib/components/Navigation/FlowStepper/index.d.ts +1 -1
  22. package/lib/components/Navigation/StoriesIndicator/index.d.ts +1 -1
  23. package/lib/components/ProgressBar/index.d.ts +1 -1
  24. package/lib/components/Text/index.d.ts +1 -1
  25. package/lib/components/cta/Button/index.js +1 -1
  26. package/lib/components/cta/QuickAction/QuickActionButton/index.d.ts +1 -1
  27. package/lib/components/cta/QuickAction/QuickActionList/index.js +1 -1
  28. package/lib/components/message/Alert/index.d.ts +2 -2
  29. package/lib/components/message/Log/Brackets.d.ts +4 -4
  30. package/lib/components/transitions/Fade.d.ts +2 -2
  31. package/lib/components/transitions/Slide.d.ts +2 -2
  32. package/package.json +39 -44
  33. package/lib/components/Layout/types.d.ts +0 -30
  34. package/lib/components/Layout/types.js +0 -2
@@ -21,6 +21,6 @@ export declare const ChevronContainer: import("styled-components").StyledCompone
21
21
  position?: string | undefined;
22
22
  maxHeight?: string | number | undefined;
23
23
  }, never>;
24
- export declare const CloseButton: ({ onPressDismiss }: CloseProps) => JSX.Element;
24
+ export declare const CloseButton: ({ onPressDismiss }: CloseProps) => React.JSX.Element;
25
25
  declare const BannerCard: (props: CardProps) => React.ReactElement;
26
26
  export default BannerCard;
@@ -27,6 +27,6 @@ export declare const ImageContainer: import("styled-components").StyledComponent
27
27
  }, never>;
28
28
  export declare const ImageContent: import("styled-components").StyledComponent<typeof Image, import("styled-components").DefaultTheme, {}, never>;
29
29
  export declare const CloseContainer: import("styled-components").StyledComponent<typeof TouchableOpacity, import("styled-components").DefaultTheme, {}, never>;
30
- export declare const CloseButton: (props: CardProps) => JSX.Element;
30
+ export declare const CloseButton: (props: CardProps) => React.JSX.Element;
31
31
  declare const SideImageCard: (props: CardProps) => React.ReactElement;
32
32
  export default SideImageCard;
@@ -70,6 +70,6 @@ export type Props = React.PropsWithChildren<{
70
70
  */
71
71
  onManualChange?: (index: number) => void;
72
72
  }>;
73
- declare function Carousel({ activeIndex, autoDelay, restartAfterEnd, scrollOnSidePress, containerProps, slideIndicatorContainerProps, scrollViewProps, onChange, onOverflow, IndicatorComponent, maxDurationOfTap, children, onAutoChange, onManualChange, }: Props): JSX.Element;
73
+ declare function Carousel({ activeIndex, autoDelay, restartAfterEnd, scrollOnSidePress, containerProps, slideIndicatorContainerProps, scrollViewProps, onChange, onOverflow, IndicatorComponent, maxDurationOfTap, children, onAutoChange, onManualChange, }: Props): React.JSX.Element;
74
74
  declare const _default: React.MemoExoticComponent<typeof Carousel>;
75
75
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState, useRef, useCallback } from "react";
2
- import { Platform } from "react-native";
2
+ import { Platform, } from "react-native";
3
3
  import styled from "styled-components/native";
4
4
  import { Flex, SlideIndicator } from "../index";
5
5
  import { I18nManager } from "react-native";
@@ -15,5 +15,5 @@ declare const ChartCard: ({ Header, Footer, range, isLoading, refreshChart, char
15
15
  }[];
16
16
  yAxisFormatter: (value: number) => string;
17
17
  valueFormatter: (value: number) => string;
18
- }) => JSX.Element;
18
+ }) => React.JSX.Element;
19
19
  export default ChartCard;
@@ -20,8 +20,8 @@ export type Props<V> = React.PropsWithChildren<{
20
20
  currentValue?: V;
21
21
  onChange: (newValue: V) => void;
22
22
  }>;
23
- declare function SelectableList<V>({ currentValue, onChange, children }: Props<V>): JSX.Element;
23
+ declare function SelectableList<V>({ currentValue, onChange, children }: Props<V>): React.JSX.Element;
24
24
  declare namespace SelectableList {
25
- var Element: <V>(props: ElementProps<V>) => JSX.Element;
25
+ var Element: <V extends React.ReactNode>(props: ElementProps<V>) => React.JSX.Element;
26
26
  }
27
27
  export default SelectableList;
@@ -4,7 +4,7 @@ export declare const MinMaxTextContainer: import("styled-components").StyledComp
4
4
  export declare const Notch: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const RailSelected: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const Rail: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
7
- export declare const Thumb: () => JSX.Element;
7
+ export declare const Thumb: () => React.JSX.Element;
8
8
  export declare const Label: ({ children }: {
9
9
  children: React.ReactNode;
10
- }) => JSX.Element;
10
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import type { SliderProps } from "./index.native";
3
- declare const SliderScreen: (_props: SliderProps) => JSX.Element;
3
+ declare const SliderScreen: (_props: SliderProps) => React.JSX.Element;
4
4
  export default SliderScreen;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export type SliderProps = {
3
3
  step: number;
4
4
  min: number;
@@ -9,5 +9,5 @@ export type SliderProps = {
9
9
  onTouchEnd?: (low: number, high: number) => void;
10
10
  disabled?: boolean;
11
11
  };
12
- declare const Slider: ({ value, min, max, step, onChange, onTouchEnd, onTouchStart, disabled, }: SliderProps) => JSX.Element;
12
+ declare const Slider: ({ value, min, max, step, onChange, onTouchEnd, onTouchStart, disabled, }: SliderProps) => React.JSX.Element;
13
13
  export default Slider;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { IconOrElementType, NewIconOrElementType, NewIconProps, IconType } from "./type";
3
3
  export declare const DEFAULT_BOX_SIZE = 40;
4
4
  export declare const DEFAULT_ICON_SIZE = 16;
@@ -49,6 +49,6 @@ export type BoxedIconProps = IconBoxProps & {
49
49
  */
50
50
  iconColor?: string;
51
51
  };
52
- export declare const IconBox: ({ Badge, size, children, borderColor, backgroundColor, badgeColor, badgeSize, variant, }: IconBoxProps) => JSX.Element;
53
- declare const BoxedIcon: ({ Icon, iconSize, iconColor, ...iconBoxProps }: BoxedIconProps) => JSX.Element;
52
+ export declare const IconBox: ({ Badge, size, children, borderColor, backgroundColor, badgeColor, badgeSize, variant, }: IconBoxProps) => React.JSX.Element;
53
+ declare const BoxedIcon: ({ Icon, iconSize, iconColor, ...iconBoxProps }: BoxedIconProps) => React.JSX.Element;
54
54
  export default BoxedIcon;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { FlexBoxProps } from "../Layout/Flex";
3
3
  import { IconOrElementType } from "./type";
4
4
  export declare const DEFAULT_ICON_SIZE = 16;
@@ -22,5 +22,5 @@ export type IconBadgeProps = FlexBoxProps & {
22
22
  */
23
23
  backgroundColor?: string;
24
24
  };
25
- declare const IconBadge: ({ Icon, iconSize, backgroundColor, iconColor, ...rest }: IconBadgeProps) => JSX.Element;
25
+ declare const IconBadge: ({ Icon, iconSize, backgroundColor, iconColor, ...rest }: IconBadgeProps) => React.JSX.Element;
26
26
  export default IconBadge;
@@ -11,7 +11,7 @@ const Accordion = ({ collapsed = false, children, title, onPress, }) => {
11
11
  };
12
12
  const style = useAnimatedStyle(() => {
13
13
  return {
14
- maxHeight: withTiming(animationHeight.value, config),
14
+ maxHeight: withTiming(animationHeight.value, config), // patch for
15
15
  };
16
16
  });
17
17
  useEffect(() => {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { Item } from "../types";
3
3
  export type Props = {
4
4
  item: Item;
@@ -8,4 +8,4 @@ export type Props = {
8
8
  onTapIndex?: (_: number) => void;
9
9
  index: number;
10
10
  };
11
- export default function StepperItem({ item, progress, nested, isLastItem, onTapIndex, index, }: Props): JSX.Element;
11
+ export default function StepperItem({ item, progress, nested, isLastItem, onTapIndex, index, }: Props): React.JSX.Element;
@@ -6,16 +6,5 @@ export type Props = BaseStyledProps & {
6
6
  onTapIndex?: (arg0: number) => void;
7
7
  nested?: boolean;
8
8
  };
9
- declare const _default: React.NamedExoticComponent<import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & {
10
- columnGap?: string | number | undefined;
11
- rowGap?: string | number | undefined;
12
- color?: string | undefined;
13
- display?: string | undefined;
14
- position?: string | undefined;
15
- maxHeight?: string | number | undefined;
16
- } & {
17
- steps?: Item[] | undefined;
18
- onTapIndex?: ((arg0: number) => void) | undefined;
19
- nested?: boolean | undefined;
20
- }>;
9
+ declare const _default: React.NamedExoticComponent<Props>;
21
10
  export default _default;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { Props as FlexProps } from "../../Flex";
3
3
  import { ItemStatus } from "../types";
4
4
  export type Props = FlexProps & {
@@ -7,7 +7,7 @@ export type Props = FlexProps & {
7
7
  isLastItem?: boolean;
8
8
  topHeight?: number;
9
9
  };
10
- declare function TimelineIndicator({ status, isFirstItem, isLastItem, topHeight, ...props }: Props): JSX.Element;
10
+ declare function TimelineIndicator({ status, isFirstItem, isLastItem, topHeight, ...props }: Props): React.JSX.Element;
11
11
  declare namespace TimelineIndicator {
12
12
  var topSegmentDefaultHeight: number;
13
13
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { Item } from "../types";
3
3
  export type Props = {
4
4
  item: Item;
@@ -9,4 +9,4 @@ export type Props = {
9
9
  index: number;
10
10
  withExtraMarginOnActiveStep?: boolean;
11
11
  };
12
- export default function TimelineItem({ item, formatEstimatedTime, isFirstItem, isLastItem, setActiveIndex, index, withExtraMarginOnActiveStep, }: Props): JSX.Element;
12
+ export default function TimelineItem({ item, formatEstimatedTime, isFirstItem, isLastItem, setActiveIndex, index, withExtraMarginOnActiveStep, }: Props): React.JSX.Element;
@@ -15,7 +15,7 @@ export type Props = BaseStyledProps & {
15
15
  autoScroll?: boolean;
16
16
  contentContainerStyle?: StyleProp<ViewStyle>;
17
17
  };
18
- declare function VerticalTimeline({ steps, formatEstimatedTime, setActiveIndex, header, autoScroll, contentContainerStyle, ...props }: Props): JSX.Element;
18
+ declare function VerticalTimeline({ steps, formatEstimatedTime, setActiveIndex, header, autoScroll, contentContainerStyle, ...props }: Props): React.JSX.Element;
19
19
  declare namespace VerticalTimeline {
20
20
  var BodyText: React.FC<BaseTextProps>;
21
21
  var SubtitleText: React.FC<BaseTextProps>;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
2
  import { ModalProps } from "react-native-modal";
3
3
  import { StyleProp, ViewStyle } from "react-native";
4
4
  import { IconOrElementType } from "../../../Icon/type";
@@ -16,7 +16,9 @@ export type BaseModalProps = {
16
16
  subtitle?: string;
17
17
  children?: React.ReactNode;
18
18
  noCloseButton?: boolean;
19
- CustomHeader?: React.ComponentType;
19
+ CustomHeader?: React.ComponentType<{
20
+ children?: ReactNode;
21
+ }>;
20
22
  } & Partial<ModalProps>;
21
23
  export declare function ModalHeader({ Icon, iconColor, title, description, subtitle, }: Pick<BaseModalProps, "Icon" | "iconColor" | "title" | "description" | "subtitle">): React.ReactElement | null;
22
24
  export declare function ModalHeaderCloseButton({ onClose, }: Pick<BaseModalProps, "onClose">): React.ReactElement;
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
- import { FlatListProps } from "react-native";
2
+ import { FlatListProps, ScrollViewProps } from "react-native";
3
3
  import type { HeaderProps } from "./Header";
4
4
  import { BaseStyledProps } from "../../styled";
5
- type ScrollContainerHeaderProps = BaseStyledProps & Omit<HeaderProps, "currentPositionY"> & Omit<FlatListProps<any>, "onScroll" | "data" | "renderItem"> & {
5
+ type ScrollContainerHeaderProps<ItemType> = BaseStyledProps & Omit<HeaderProps, "currentPositionY"> & Omit<FlatListProps<ItemType>, "onScroll" | "data" | "renderItem"> & {
6
6
  children?: React.ReactNode;
7
7
  onScroll?: (y: number) => void;
8
8
  containerProps?: BaseStyledProps;
9
- };
9
+ } & Pick<ScrollViewProps, "stickyHeaderIndices">;
10
10
  declare const ScrollContainerHeader: {
11
- ({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps, ...props }: ScrollContainerHeaderProps): JSX.Element;
11
+ <ItemType>({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps, ...props }: ScrollContainerHeaderProps<ItemType>): JSX.Element;
12
12
  Header: {
13
13
  ({ TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, currentPositionY, }: HeaderProps): JSX.Element;
14
14
  PADDING_HORIZONTAL: number;
@@ -10,12 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from "react";
13
- import { View } from "react-native";
13
+ import { FlatList, View } from "react-native";
14
14
  import Animated, { useAnimatedScrollHandler, useSharedValue } from "react-native-reanimated";
15
15
  import Flex from "../Flex";
16
16
  import Header from "./Header";
17
17
  import baseStyled from "../../styled";
18
- const StyledFlatList = baseStyled.FlatList ``;
18
+ const StyledFlatList = baseStyled(FlatList) ``;
19
19
  const AnimatedFlatList = Animated.createAnimatedComponent(StyledFlatList);
20
20
  const ScrollContainerHeader = (_a) => {
21
21
  var { TopLeftSection, TopRightSection, TopMiddleSection, MiddleSection, BottomSection, children, onScroll, containerProps } = _a, props = __rest(_a, ["TopLeftSection", "TopRightSection", "TopMiddleSection", "MiddleSection", "BottomSection", "children", "onScroll", "containerProps"]);
@@ -27,7 +27,7 @@ const ScrollContainerHeader = (_a) => {
27
27
  });
28
28
  return (React.createElement(Flex, Object.assign({ flex: 1 }, containerProps),
29
29
  React.createElement(Header, { TopLeftSection: TopLeftSection, TopRightSection: TopRightSection, TopMiddleSection: TopMiddleSection, MiddleSection: MiddleSection, BottomSection: BottomSection, currentPositionY: currentPositionY }),
30
- React.createElement(AnimatedFlatList, Object.assign({}, props, { onScroll: handleScroll, scrollEventThrottle: 16, data: [...React.Children.toArray(children)], renderItem: ({ item }) => React.createElement(View, null, item), keyExtractor: (_, index) => index }))));
30
+ React.createElement(AnimatedFlatList, Object.assign({}, props, { onScroll: handleScroll, scrollEventThrottle: 16, data: [...React.Children.toArray(children)], renderItem: ({ item }) => React.createElement(View, null, item), keyExtractor: (_, index) => index.toString() }))));
31
31
  };
32
32
  ScrollContainerHeader.Header = Header;
33
33
  export default ScrollContainerHeader;
@@ -66,5 +66,5 @@ export interface Props<ExtraProps> {
66
66
  */
67
67
  children: React.ReactNode;
68
68
  }
69
- declare function FlowStepper<ExtraProps>({ activeIndex, header, footer, extraProps, progressBarProps, renderTransition, transitionDuration, children, }: Props<ExtraProps>): JSX.Element;
69
+ declare function FlowStepper<ExtraProps>({ activeIndex, header, footer, extraProps, progressBarProps, renderTransition, transitionDuration, children, }: Props<ExtraProps>): React.JSX.Element;
70
70
  export default FlowStepper;
@@ -29,6 +29,6 @@ export interface StoriesIndicatorProps extends FlexBoxProps {
29
29
  */
30
30
  duration?: number;
31
31
  }
32
- declare function StoriesIndicator({ activeIndex, slidesLength, duration }: StoriesIndicatorProps): JSX.Element;
32
+ declare function StoriesIndicator({ activeIndex, slidesLength, duration }: StoriesIndicatorProps): React.JSX.Element;
33
33
  declare const _default: React.MemoExoticComponent<typeof StoriesIndicator>;
34
34
  export default _default;
@@ -15,6 +15,6 @@ export interface Props extends FlexBoxProps {
15
15
  */
16
16
  activeBarProps?: BaseStyledProps;
17
17
  }
18
- declare function ProgressBar({ index, length, activeBarProps, ...props }: Props): JSX.Element;
18
+ declare function ProgressBar({ index, length, activeBarProps, ...props }: Props): React.JSX.Element;
19
19
  declare const _default: React.MemoExoticComponent<typeof ProgressBar>;
20
20
  export default _default;
@@ -17,5 +17,5 @@ export interface BaseTextProps extends TextProps, BaseStyledProps, FontSizeProps
17
17
  uppercase?: boolean;
18
18
  children?: React.ReactNode;
19
19
  }
20
- declare const Text: ({ children, bracket, textAlign, testID, ...props }: BaseTextProps) => JSX.Element;
20
+ declare const Text: ({ children, bracket, textAlign, testID, ...props }: BaseTextProps) => React.JSX.Element;
21
21
  export default Text;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import React, { useCallback, useState, useMemo } from "react";
11
11
  import styled, { useTheme } from "styled-components/native";
12
- import { ActivityIndicator, TouchableOpacity, View } from "react-native";
12
+ import { ActivityIndicator, TouchableOpacity, View, } from "react-native";
13
13
  import { buttonSizeStyle, getButtonColorStyle } from "../../cta/Button/getButtonStyle";
14
14
  import { ctaIconSize, ctaTextType } from "../../cta/getCtaStyle";
15
15
  import Text from "../../Text";
@@ -11,7 +11,7 @@ export type QuickActionButtonProps = TouchableOpacityProps & BaseStyledProps & {
11
11
  textVariant?: TextVariants;
12
12
  variant?: Variant;
13
13
  };
14
- export declare const StyledText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../../Text").BaseTextProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const StyledText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../../Text").BaseTextProps) => React.JSX.Element, import("styled-components").DefaultTheme, {}, never>;
15
15
  export declare const Base: import("styled-components").StyledComponent<typeof TouchableOpacity, import("styled-components").DefaultTheme, TouchableOpacityProps & {
16
16
  visuallyDisabled?: boolean | undefined;
17
17
  variant: Variant;
@@ -17,6 +17,6 @@ const QuickActionList = (_a) => {
17
17
  const renderItem = useCallback(({ item, index }) => {
18
18
  return (React.createElement(QuickActionButton, Object.assign({}, item, { flex: 1, mr: (index + 1) % numColumns > 0 && data && index !== data.length - 1 ? 4 : 0, mb: (data === null || data === void 0 ? void 0 : data.length) && index + numColumns < data.length ? 4 : 0 })));
19
19
  }, []);
20
- return (React.createElement(FlatList, Object.assign({}, otherProps, { data: data, keyExtractor: (_item, index) => `${id}${index}`, horizontal: false, renderItem: renderItem, numColumns: numColumns, style: { width: "100%" } })));
20
+ return (React.createElement(FlatList, Object.assign({}, otherProps, { data: data, keyExtractor: (_item, index) => `${id}${index}`, horizontal: false, renderItem: renderItem, numColumns: numColumns })));
21
21
  };
22
22
  export default QuickActionList;
@@ -19,12 +19,12 @@ export interface AlertProps {
19
19
  }
20
20
  declare function Alert({ type, Icon, title, showIcon, children }: AlertProps): JSX.Element;
21
21
  declare namespace Alert {
22
- var BodyText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../Text").BaseTextProps) => JSX.Element, import("styled-components").DefaultTheme, {
22
+ var BodyText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../Text").BaseTextProps) => React.JSX.Element, import("styled-components").DefaultTheme, {
23
23
  flexShrink: 1;
24
24
  variant: "bodyLineHeight";
25
25
  fontWeight: "semiBold";
26
26
  }, "fontWeight" | "flexShrink" | "variant">;
27
- var UnderlinedText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../Text").BaseTextProps) => JSX.Element, import("styled-components").DefaultTheme, {
27
+ var UnderlinedText: import("styled-components").StyledComponent<({ children, bracket, textAlign, testID, ...props }: import("../../Text").BaseTextProps) => React.JSX.Element, import("styled-components").DefaultTheme, {
28
28
  flexShrink: 1;
29
29
  variant: "bodyLineHeight";
30
30
  fontWeight: "semiBold";
@@ -8,8 +8,8 @@ type BaseBracketProps = FlexBoxProps & BracketProps & {
8
8
  style?: ViewStyle;
9
9
  };
10
10
  export declare const Bracket: ({ color, style, mb, mt }: BaseBracketProps) => React.ReactElement;
11
- export declare const BracketTopLeft: ({ color }: BracketProps) => JSX.Element;
12
- export declare const BracketTopRight: ({ color }: BracketProps) => JSX.Element;
13
- export declare const BracketBottomLeft: ({ color }: BracketProps) => JSX.Element;
14
- export declare const BracketBottomRight: ({ color }: BracketProps) => JSX.Element;
11
+ export declare const BracketTopLeft: ({ color }: BracketProps) => React.JSX.Element;
12
+ export declare const BracketTopRight: ({ color }: BracketProps) => React.JSX.Element;
13
+ export declare const BracketBottomLeft: ({ color }: BracketProps) => React.JSX.Element;
14
+ export declare const BracketBottomRight: ({ color }: BracketProps) => React.JSX.Element;
15
15
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { TransitionProps } from "./types";
3
3
  export interface FadeProps extends TransitionProps {
4
4
  /**
@@ -9,4 +9,4 @@ export interface FadeProps extends TransitionProps {
9
9
  /**
10
10
  * A fade-in / fade-out transition changing the opacity of its children based on their status.
11
11
  */
12
- export declare function Fade({ status, delay, duration, style, children }: FadeProps): JSX.Element;
12
+ export declare function Fade({ status, delay, duration, style, children }: FadeProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { TransitionProps } from "./types";
3
3
  export interface SlideProps extends TransitionProps {
4
4
  /**
@@ -9,4 +9,4 @@ export interface SlideProps extends TransitionProps {
9
9
  /**
10
10
  * A slide left/right transition translating its children based on their status and a given direction.
11
11
  */
12
- export declare function Slide({ status, duration, style, direction, children }: SlideProps): JSX.Element;
12
+ export declare function Slide({ status, duration, style, direction, children }: SlideProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/native-ui",
3
- "version": "0.22.0-nightly.0",
3
+ "version": "0.22.1-next.0",
4
4
  "description": "Ledger Live - Mobile UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,46 +36,39 @@
36
36
  "lib/**/*"
37
37
  ],
38
38
  "dependencies": {
39
- "@types/color": "^3.0.3",
40
- "@types/styled-system": "^5.1.13",
41
39
  "color": "^4.0.0",
42
- "moment": "^2.29.1",
43
- "react-native-animatable": "^1.3.3",
44
40
  "react-native-modal": "^13.0.0",
45
41
  "react-native-svg": "^13.11.0",
46
42
  "rn-range-slider": "2.1.1",
47
43
  "styled-system": "^5.1.5",
48
44
  "victory-native": "^35.5.5",
49
- "@ledgerhq/crypto-icons-ui": "^0.5.1",
50
- "@ledgerhq/icons-ui": "^0.6.1",
45
+ "@ledgerhq/crypto-icons-ui": "^0.6.0-next.0",
46
+ "@ledgerhq/icons-ui": "^0.6.2-next.0",
51
47
  "@ledgerhq/ui-shared": "^0.2.1"
52
48
  },
53
49
  "peerDependencies": {
54
- "@types/react": "*",
55
- "@types/react-native": "*",
56
- "@types/styled-components": "^5.3.3",
57
- "@types/styled-components-react-native": "^5.3.3",
58
50
  "react": ">=17",
59
51
  "react-native": ">=0.64.0",
60
- "react-native-reanimated": "^3.0.0",
52
+ "react-native-reanimated": "~3.3.0",
61
53
  "styled-components": "^5.3.3"
62
54
  },
63
55
  "devDependencies": {
56
+ "@types/color": "^3.0.3",
64
57
  "@babel/core": "^7.22.8",
65
58
  "@babel/generator": "^7.17.2",
66
59
  "@babel/plugin-proposal-class-properties": "^7.13.0",
67
60
  "@babel/plugin-proposal-export-namespace-from": "^7.16.0",
68
61
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
69
62
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
70
- "@babel/plugin-transform-arrow-functions": "^7.20.7",
71
- "@babel/plugin-transform-shorthand-properties": "^7.18.6",
72
- "@babel/plugin-transform-template-literals": "^7.18.9",
63
+ "@babel/plugin-transform-arrow-functions": "^7.22.5",
64
+ "@babel/plugin-transform-shorthand-properties": "^7.22.5",
65
+ "@babel/plugin-transform-template-literals": "^7.22.5",
73
66
  "@babel/preset-env": "^7.15.8",
74
67
  "@babel/runtime": "^7.17.2",
75
68
  "@emotion/core": "^11.0.0",
76
69
  "@emotion/native": "^11.0.0",
77
- "@expo/metro-config": "^0.7.1",
78
- "@expo/webpack-config": "^18.0.1",
70
+ "@expo/metro-config": "^0.10.7",
71
+ "@expo/webpack-config": "^18.1.2",
79
72
  "@react-native-async-storage/async-storage": "1.17.12",
80
73
  "@react-native-community/cli-server-api": "^7.0.3",
81
74
  "@react-native-community/datetimepicker": "6.7.5",
@@ -100,46 +93,47 @@
100
93
  "@types/hoist-non-react-statics": "^3.3.1",
101
94
  "@types/node": "^18.0.0",
102
95
  "@types/prop-types": "^15.7.5",
103
- "@types/react": "^17.0.53",
104
- "@types/react-native": "0.71.5",
96
+ "@types/react": "^18.2.21",
97
+ "@types/react-native": "0.72.5",
105
98
  "@types/styled-components": "^5.1.3",
106
99
  "@types/styled-components-react-native": "^5.1.3",
100
+ "@types/styled-system": "^5.1.13",
107
101
  "assert": "^2.0.0",
108
102
  "babel-loader": "^8.2.2",
109
103
  "babel-plugin-module-resolver": "^4.1.0",
110
104
  "babel-plugin-react-docgen-typescript": "^1.5.1",
111
105
  "babel-plugin-react-native-web": "^0.19.0",
112
- "babel-preset-expo": "^9.3.0",
106
+ "babel-preset-expo": "^9.5.0",
113
107
  "camelcase": "^6.2.1",
114
108
  "csstype": "^3.0.11",
115
- "eslint-plugin-react": "^7.32.2",
109
+ "eslint-plugin-react": "^7.33.2",
116
110
  "eslint-plugin-react-hooks": "^4.6.0",
117
- "expo": "~48.0.9",
118
- "expo-asset": "^8.9.1",
119
- "expo-constants": "^14.2.1",
120
- "expo-font": "^11.1.1",
121
- "expo-modules-core": "^1.2.2",
111
+ "expo": "^49.0.7",
112
+ "expo-asset": "8.10.1",
113
+ "expo-constants": "^14.4.2",
114
+ "expo-font": "^11.4.0",
115
+ "expo-modules-core": "1.5.11",
122
116
  "fs-extra": "^10.0.1",
123
117
  "glob": "^7.2.0",
124
- "metro": "^0.76.0",
125
- "metro-config": "^0.76.0",
126
- "metro-core": "^0.77.0",
127
- "metro-minify-uglify": "^0.76.0",
128
- "metro-react-native-babel-preset": "^0.76.0",
129
- "metro-react-native-babel-transformer": "^0.76.0",
130
- "metro-resolver": "^0.76.0",
131
- "metro-runtime": "^0.76.0",
132
- "metro-source-map": "^0.76.0",
133
- "metro-transform-worker": "^0.76.0",
118
+ "metro": "^0.79.0",
119
+ "metro-config": "^0.79.0",
120
+ "metro-core": "^0.79.0",
121
+ "metro-minify-uglify": "^0.76.8",
122
+ "metro-react-native-babel-preset": "^0.77.0",
123
+ "metro-react-native-babel-transformer": "^0.77.0",
124
+ "metro-resolver": "^0.79.0",
125
+ "metro-runtime": "^0.79.0",
126
+ "metro-source-map": "^0.79.0",
127
+ "metro-transform-worker": "^0.79.0",
134
128
  "minimatch": "^5.1.0",
135
129
  "prop-types": "^15.8.1",
136
- "react": "^18",
137
- "react-dom": "^18",
130
+ "react": "^18.2.0",
131
+ "react-dom": "^18.2.0",
138
132
  "react-is": "^18",
139
- "react-native": "0.71.6",
140
- "react-native-reanimated": "^3.1.0",
133
+ "react-native": "0.72.6",
134
+ "react-native-reanimated": "~3.3.0",
141
135
  "react-native-safe-area-context": "^4.5.0",
142
- "react-native-web": "~0.19.0",
136
+ "react-native-web": "~0.19.6",
143
137
  "regenerator-runtime": "^0.14.0",
144
138
  "rimraf": "^4.4.1",
145
139
  "styled-components": "^5.3.3",
@@ -151,7 +145,7 @@
151
145
  "victory": "^35.5.5",
152
146
  "webpack": "^5.76.1",
153
147
  "webpack-dev-server": "^4.12.0",
154
- "metro-extra-config": "1.0.0"
148
+ "metro-extra-config": "1.0.1-next.0"
155
149
  },
156
150
  "scripts": {
157
151
  "android": "expo start --android",
@@ -166,10 +160,11 @@
166
160
  "lint:fix": "pnpm lint --fix",
167
161
  "lint:css": "stylelint './src/**/*.{js,jsx,ts,tsx}'",
168
162
  "release": "yarn publish ./lib --access public",
169
- "expo": "expo start",
163
+ "expo-start": "expo start",
170
164
  "storybook": "start-storybook -c .storybook-web -p 6006",
171
165
  "typecheck": "tsc --noEmit -p tsconfig.json",
172
166
  "test": "exit 0",
173
- "web": "expo start --web"
167
+ "web": "expo start --web",
168
+ "unimported": "unimported"
174
169
  }
175
170
  }
@@ -1,30 +0,0 @@
1
- export type SpacingProps = {
2
- margin?: string | number;
3
- marginTop?: string | number;
4
- marginRight?: string | number;
5
- marginBottom?: string | number;
6
- marginLeft?: string | number;
7
- marginX?: string | number;
8
- marginY?: string | number;
9
- m?: string | number;
10
- mt?: string | number;
11
- mr?: string | number;
12
- mb?: string | number;
13
- ml?: string | number;
14
- mx?: string | number;
15
- my?: string | number;
16
- padding?: string | number;
17
- paddingTop?: string | number;
18
- paddingRight?: string | number;
19
- paddingBottom?: string | number;
20
- paddingLeft?: string | number;
21
- paddingX?: string | number;
22
- paddingY?: string | number;
23
- p?: string | number;
24
- pt?: string | number;
25
- pr?: string | number;
26
- pb?: string | number;
27
- pl?: string | number;
28
- px?: string | number;
29
- py?: string | number;
30
- };
@@ -1,2 +0,0 @@
1
- // Nb Aligns with @styled-system/space
2
- export {};