@ledgerhq/react-ui 0.10.0 → 0.10.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 (148) hide show
  1. package/lib/assets/logos/LedgerLiveAltRegular.d.ts +1 -1
  2. package/lib/assets/logos/LedgerLiveRegular.d.ts +1 -1
  3. package/lib/cjs/components/asorted/Icon/FlagIcon.js +1 -1
  4. package/lib/cjs/components/asorted/Icon/FlagIcon.js.map +1 -1
  5. package/lib/cjs/components/asorted/Icon/PaymentIcon.js +1 -1
  6. package/lib/cjs/components/asorted/Icon/PaymentIcon.js.map +1 -1
  7. package/lib/cjs/components/asorted/Icon/ProviderIcon.js +15 -11
  8. package/lib/cjs/components/asorted/Icon/ProviderIcon.js.map +2 -2
  9. package/lib/components/Chart/index.d.ts +1 -1
  10. package/lib/components/Chart/types.d.ts +3 -3
  11. package/lib/components/Table/index.d.ts +1 -1
  12. package/lib/components/Table/stories.helper.d.ts +2 -2
  13. package/lib/components/Tag/index.d.ts +3 -3
  14. package/lib/components/asorted/Divider/index.d.ts +1 -1
  15. package/lib/components/asorted/Icon/BoxedIcon.d.ts +3 -3
  16. package/lib/components/asorted/Icon/CryptoIcon.d.ts +1 -1
  17. package/lib/components/asorted/Icon/FlagIcon.d.ts +2 -2
  18. package/lib/components/asorted/Icon/FlagIcon.js +1 -1
  19. package/lib/components/asorted/Icon/Icon.d.ts +1 -1
  20. package/lib/components/asorted/Icon/PaymentIcon.d.ts +3 -3
  21. package/lib/components/asorted/Icon/PaymentIcon.js +1 -1
  22. package/lib/components/asorted/Icon/ProviderIcon.d.ts +3 -3
  23. package/lib/components/asorted/Icon/ProviderIcon.js +12 -9
  24. package/lib/components/asorted/Text/index.d.ts +2 -2
  25. package/lib/components/cards/Carousel/Slide.d.ts +1 -1
  26. package/lib/components/cards/Carousel/index.d.ts +1 -1
  27. package/lib/components/cta/Button/index.d.ts +3 -3
  28. package/lib/components/cta/Link/index.d.ts +1 -1
  29. package/lib/components/form/BaseInput/index.d.ts +4 -4
  30. package/lib/components/form/Checkbox/Checkbox.d.ts +1 -1
  31. package/lib/components/form/Dropdown/index.d.ts +1 -1
  32. package/lib/components/form/DropdownGeneric/index.d.ts +2 -2
  33. package/lib/components/form/LegendInput/index.d.ts +1 -1
  34. package/lib/components/form/Radio/RadioElement.d.ts +2 -2
  35. package/lib/components/form/Radio/RadioListElement.d.ts +3 -3
  36. package/lib/components/form/Radio/index.d.ts +1 -1
  37. package/lib/components/form/SelectInput/Option.d.ts +2 -2
  38. package/lib/components/form/SelectInput/ValueContainer.d.ts +1 -1
  39. package/lib/components/form/SelectInput/VirtualMenuList.d.ts +1 -1
  40. package/lib/components/form/SelectInput/index.d.ts +2 -2
  41. package/lib/components/form/SplitInput/index.d.ts +4 -4
  42. package/lib/components/form/Switch/Switch.d.ts +1 -1
  43. package/lib/components/helpers.d.ts +1 -1
  44. package/lib/components/layout/Box/index.d.ts +1 -1
  45. package/lib/components/layout/Flex/index.d.ts +1 -1
  46. package/lib/components/layout/List/VerticalTimeline/TimelineIndicator.d.ts +1 -1
  47. package/lib/components/layout/List/VerticalTimeline/TimelineItem.d.ts +1 -1
  48. package/lib/components/layout/List/VerticalTimeline/index.d.ts +3 -3
  49. package/lib/components/layout/Popin/index.d.ts +1 -1
  50. package/lib/components/loaders/InfiniteLoader/index.d.ts +1 -1
  51. package/lib/components/message/Alert/index.d.ts +2 -2
  52. package/lib/components/message/Log/index.d.ts +1 -1
  53. package/lib/components/message/Notification/Badge.d.ts +1 -1
  54. package/lib/components/message/Notification/index.d.ts +1 -1
  55. package/lib/components/message/Tip/index.d.ts +1 -1
  56. package/lib/components/message/Tooltip/index.d.ts +1 -1
  57. package/lib/components/navigation/Aside/index.d.ts +1 -1
  58. package/lib/components/navigation/Breadcrumb/index.d.ts +4 -4
  59. package/lib/components/navigation/FlowStepper/index.d.ts +7 -7
  60. package/lib/components/navigation/Header/index.d.ts +1 -1
  61. package/lib/components/navigation/progress/ProgressBar/Onboarding.d.ts +1 -1
  62. package/lib/components/navigation/progress/Stepper/index.d.ts +3 -3
  63. package/lib/components/navigation/sideBar/Item/Item.d.ts +1 -1
  64. package/lib/components/navigation/sideBar/SideBar/SideBar.d.ts +1 -1
  65. package/lib/components/navigation/sideBar/Toggle/Toggle.d.ts +1 -1
  66. package/lib/components/navigation/sideBar/index.d.ts +1 -1
  67. package/lib/components/styled.d.ts +1 -1
  68. package/lib/components/tabs/Bar/index.d.ts +1 -1
  69. package/lib/components/tabs/Chip/index.d.ts +1 -1
  70. package/lib/components/tabs/Pill/index.d.ts +1 -1
  71. package/lib/components/tabs/Tabs/index.d.ts +1 -1
  72. package/lib/components/transitions/TransitionInOut.d.ts +1 -1
  73. package/lib/components/transitions/TransitionScale.d.ts +1 -1
  74. package/lib/components/transitions/TransitionSlide.d.ts +1 -1
  75. package/lib/styles/InvertTheme.d.ts +1 -1
  76. package/lib/styles/global.d.ts +1 -1
  77. package/lib/styles/theme.d.ts +4 -4
  78. package/package.json +5 -5
  79. package/lib/assets/providersFavicons/Aave.png +0 -0
  80. package/lib/assets/providersFavicons/Baanx.png +0 -0
  81. package/lib/assets/providersFavicons/Banxa.png +0 -0
  82. package/lib/assets/providersFavicons/Bitrefill.png +0 -0
  83. package/lib/assets/providersFavicons/BtcDirect.png +0 -0
  84. package/lib/assets/providersFavicons/Changelly.png +0 -0
  85. package/lib/assets/providersFavicons/CoinGecko.png +0 -0
  86. package/lib/assets/providersFavicons/Coinify.png +0 -0
  87. package/lib/assets/providersFavicons/Compound.png +0 -0
  88. package/lib/assets/providersFavicons/Deversifi.png +0 -0
  89. package/lib/assets/providersFavicons/Ftx.png +0 -0
  90. package/lib/assets/providersFavicons/Ftxus.png +0 -0
  91. package/lib/assets/providersFavicons/Kiln.png +0 -0
  92. package/lib/assets/providersFavicons/LedgerBlack.png +0 -0
  93. package/lib/assets/providersFavicons/LedgerCard.png +0 -0
  94. package/lib/assets/providersFavicons/LedgerWhite.png +0 -0
  95. package/lib/assets/providersFavicons/Lido.png +0 -0
  96. package/lib/assets/providersFavicons/LoopiPay.png +0 -0
  97. package/lib/assets/providersFavicons/Mercuryo.png +0 -0
  98. package/lib/assets/providersFavicons/Moonpay.png +0 -0
  99. package/lib/assets/providersFavicons/Opensea.png +0 -0
  100. package/lib/assets/providersFavicons/PancakeSwap.png +0 -0
  101. package/lib/assets/providersFavicons/Paraswap.png +0 -0
  102. package/lib/assets/providersFavicons/Poap.png +0 -0
  103. package/lib/assets/providersFavicons/RainbowMe.png +0 -0
  104. package/lib/assets/providersFavicons/Ramp.png +0 -0
  105. package/lib/assets/providersFavicons/Rarible.png +0 -0
  106. package/lib/assets/providersFavicons/Simplex.png +0 -0
  107. package/lib/assets/providersFavicons/SushiSwap.png +0 -0
  108. package/lib/assets/providersFavicons/Transak.png +0 -0
  109. package/lib/assets/providersFavicons/Wyre.png +0 -0
  110. package/lib/assets/providersFavicons/Zerion.png +0 -0
  111. package/lib/assets/providersFavicons/_1Inch.png +0 -0
  112. package/lib/cjs/assets/providersFavicons/Aave.png +0 -0
  113. package/lib/cjs/assets/providersFavicons/Baanx.png +0 -0
  114. package/lib/cjs/assets/providersFavicons/Banxa.png +0 -0
  115. package/lib/cjs/assets/providersFavicons/Bitrefill.png +0 -0
  116. package/lib/cjs/assets/providersFavicons/BtcDirect.png +0 -0
  117. package/lib/cjs/assets/providersFavicons/Changelly.png +0 -0
  118. package/lib/cjs/assets/providersFavicons/CoinGecko.png +0 -0
  119. package/lib/cjs/assets/providersFavicons/Coinify.png +0 -0
  120. package/lib/cjs/assets/providersFavicons/Compound.png +0 -0
  121. package/lib/cjs/assets/providersFavicons/Deversifi.png +0 -0
  122. package/lib/cjs/assets/providersFavicons/Ftx.png +0 -0
  123. package/lib/cjs/assets/providersFavicons/Ftxus.png +0 -0
  124. package/lib/cjs/assets/providersFavicons/Kiln.png +0 -0
  125. package/lib/cjs/assets/providersFavicons/LedgerBlack.png +0 -0
  126. package/lib/cjs/assets/providersFavicons/LedgerCard.png +0 -0
  127. package/lib/cjs/assets/providersFavicons/LedgerWhite.png +0 -0
  128. package/lib/cjs/assets/providersFavicons/Lido.png +0 -0
  129. package/lib/cjs/assets/providersFavicons/LoopiPay.png +0 -0
  130. package/lib/cjs/assets/providersFavicons/Mercuryo.png +0 -0
  131. package/lib/cjs/assets/providersFavicons/Moonpay.png +0 -0
  132. package/lib/cjs/assets/providersFavicons/Opensea.png +0 -0
  133. package/lib/cjs/assets/providersFavicons/PancakeSwap.png +0 -0
  134. package/lib/cjs/assets/providersFavicons/Paraswap.png +0 -0
  135. package/lib/cjs/assets/providersFavicons/Poap.png +0 -0
  136. package/lib/cjs/assets/providersFavicons/RainbowMe.png +0 -0
  137. package/lib/cjs/assets/providersFavicons/Ramp.png +0 -0
  138. package/lib/cjs/assets/providersFavicons/Rarible.png +0 -0
  139. package/lib/cjs/assets/providersFavicons/Simplex.png +0 -0
  140. package/lib/cjs/assets/providersFavicons/SushiSwap.png +0 -0
  141. package/lib/cjs/assets/providersFavicons/Transak.png +0 -0
  142. package/lib/cjs/assets/providersFavicons/Wyre.png +0 -0
  143. package/lib/cjs/assets/providersFavicons/Zerion.png +0 -0
  144. package/lib/cjs/assets/providersFavicons/_1Inch.png +0 -0
  145. package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js +0 -92
  146. package/lib/cjs/components/asorted/Icon/providerFaviconsIndex.js.map +0 -7
  147. package/lib/components/asorted/Icon/providerFaviconsIndex.d.ts +0 -33
  148. package/lib/components/asorted/Icon/providerFaviconsIndex.js +0 -33
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export declare const lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi varius sollicitudin lectus vel finibus. Praesent eu leo nec libero interdum sodales et eget nulla. Donec tincidunt posuere sem vel porttitor. Nullam maximus urna non elit tempor, ut fermentum metus euismod. Quisque et rutrum arcu. Etiam nisl elit, tincidunt volutpat libero sed, imperdiet mollis risus. Maecenas imperdiet lectus id sapien tempus, eget fringilla nisl lacinia. Sed sem velit, egestas nec imperdiet ac, lobortis vel lectus. Curabitur dui orci, aliquam sit amet metus ut, sollicitudin fermentum erat. Curabitur id purus eget lectus varius congue. Donec eu auctor augue. Ut eleifend arcu nisl, volutpat fringilla quam cursus sit amet. Praesent leo enim, cursus vel egestas sed, vestibulum imperdiet diam. Etiam a diam lectus. Suspendisse aliquam imperdiet ultrices. Phasellus eget nulla eros. Nullam semper porta pulvinar. Duis maximus, lectus ac fringilla interdum, lacus ex cursus tellus, et dapibus est nisi id dolor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla gravida elit turpis, ac condimentum velit placerat at. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In dolor tellus, semper id pulvinar eget, ornare bibendum justo. Sed in libero nisl. Morbi tincidunt sollicitudin nunc, vel imperdiet nisi iaculis vel. Nam viverra lorem vel ligula varius, lacinia maximus metus porta. Sed vitae vehicula leo. Proin sed lectus in lorem laoreet iaculis sed ut eros. Pellentesque et rhoncus sapien. Nam fringilla mauris nec tellus vestibulum, vel convallis mauris sagittis. Vivamus et lacinia dui. Sed pharetra vitae lacus vel facilisis. Nullam et sollicitudin risus. Curabitur egestas bibendum neque, sed lacinia nisi cursus nec. Quisque sed diam congue, luctus magna eget, convallis lectus. Cras ut tellus imperdiet, blandit magna non, auctor felis. Suspendisse potenti. Nulla volutpat felis vitae ante blandit tempor. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nulla sagittis scelerisque magna quis ultrices";
3
- export declare type StoryTemplate<Args> = {
3
+ export type StoryTemplate<Args> = {
4
4
  (args: Args): React.ReactNode;
5
5
  args?: Partial<Args>;
6
6
  parameters?: unknown;
@@ -1,5 +1,5 @@
1
1
  import { BaseStyledProps } from "../../styled";
2
- export declare type BoxProps = BaseStyledProps;
2
+ export type BoxProps = BaseStyledProps;
3
3
  declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
4
4
  columnGap?: string | number | undefined;
5
5
  rowGap?: string | number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { BaseStyledProps } from "../../styled";
2
- export declare type FlexBoxProps = BaseStyledProps;
2
+ export type FlexBoxProps = BaseStyledProps;
3
3
  declare const FlexBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").OverflowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
4
4
  columnGap?: string | number | undefined;
5
5
  rowGap?: string | number | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FlexBoxProps as FlexProps } from "../../Flex";
3
- export declare type Props = FlexProps & {
3
+ export type Props = FlexProps & {
4
4
  status: "inactive" | "active" | "completed";
5
5
  isFirstItem?: boolean;
6
6
  isLastItem?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Item } from ".";
3
- export declare type Props = {
3
+ export type Props = {
4
4
  item: Item;
5
5
  isFirstItem?: boolean;
6
6
  isLastItem?: boolean;
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from "react";
2
2
  import { BaseStyledProps } from "src/components/styled";
3
- export declare type ItemStatus = "inactive" | "active" | "completed";
4
- export declare type Item = {
3
+ export type ItemStatus = "inactive" | "active" | "completed";
4
+ export type Item = {
5
5
  status: ItemStatus;
6
6
  title: string;
7
7
  renderBody?: (isDisplayed?: boolean) => ReactNode;
8
8
  estimatedTime?: number;
9
9
  };
10
- export declare type Props = BaseStyledProps & {
10
+ export type Props = BaseStyledProps & {
11
11
  steps?: Item[];
12
12
  };
13
13
  export default function VerticalTimeline({ steps, ...props }: Props): JSX.Element;
@@ -5,7 +5,7 @@ export interface PopinProps extends BaseStyledProps {
5
5
  children: React.ReactNode;
6
6
  menuPortalTarget?: Element | null;
7
7
  }
8
- export declare type PopinHeaderProps = BaseStyledProps & {
8
+ export type PopinHeaderProps = BaseStyledProps & {
9
9
  onClose?: () => void;
10
10
  onBack?: () => void;
11
11
  children: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { SizeProps } from "styled-system";
3
3
  declare const Loader: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, SizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Height<import("styled-system").TLengthStyledSystem>>, never>;
4
- export declare type Props = React.ComponentProps<typeof Loader> & {
4
+ export type Props = React.ComponentProps<typeof Loader> & {
5
5
  color?: string;
6
6
  };
7
7
  export default function InfiniteLoader({ size, color, ...extraProps }: Props): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TextVariants } from "../../../styles/theme";
3
- declare type AlertType = "info" | "warning" | "error";
4
- declare type RenderProps = (props: {
3
+ type AlertType = "info" | "warning" | "error";
4
+ type RenderProps = (props: {
5
5
  color: string;
6
6
  textProps: {
7
7
  variant?: TextVariants;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { TextProps } from "../../asorted/Text";
3
3
  import { FlexBoxProps } from "../../layout/Flex";
4
- export declare type Props = React.PropsWithChildren<FlexBoxProps & {
4
+ export type Props = React.PropsWithChildren<FlexBoxProps & {
5
5
  extraTextProps?: TextProps;
6
6
  }>;
7
7
  declare function Log({ children, extraTextProps, ...props }: Props): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare type Props = {
3
+ export type Props = {
4
4
  active?: boolean;
5
5
  icon: JSX.Element;
6
6
  } & React.ComponentProps<typeof Wrapper>;
@@ -12,7 +12,7 @@ export interface Props extends ContainerProps {
12
12
  link?: string;
13
13
  onLinkClick?: LinkProps["onClick"];
14
14
  }
15
- export declare type NotificationType = {
15
+ export type NotificationType = {
16
16
  (p: Props): JSX.Element;
17
17
  Badge: typeof Badge;
18
18
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type TipType = "success" | "warning" | "error";
2
+ type TipType = "success" | "warning" | "error";
3
3
  export interface TipProps {
4
4
  type?: TipType;
5
5
  label: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TippyProps } from "@tippyjs/react";
3
- declare type Placement = "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "auto" | "auto-start" | "auto-end";
3
+ type Placement = "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "auto" | "auto-start" | "auto-end";
4
4
  export interface Props extends TippyProps {
5
5
  /** The preferred placement of the tippy. */
6
6
  placement?: Placement;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ColorProps, LayoutProps, TypographyProps } from "styled-system";
3
- export declare type Props = React.PropsWithChildren<{
3
+ export type Props = React.PropsWithChildren<{
4
4
  header: React.ReactNode;
5
5
  footer?: React.ReactNode;
6
6
  }> & React.ComponentProps<typeof Wrapper>;
@@ -1,16 +1,16 @@
1
1
  import React from "react";
2
- export declare type Props = {
2
+ export type Props = {
3
3
  segments: Segment[];
4
4
  onChange: (values: string[]) => void;
5
5
  };
6
- export declare type Element = {
6
+ export type Element = {
7
7
  label: string;
8
8
  value: string;
9
9
  };
10
- export declare type Elements = {
10
+ export type Elements = {
11
11
  value: Element;
12
12
  options: Element[];
13
13
  };
14
- export declare type Segment = Element | Elements;
14
+ export type Segment = Element | Elements;
15
15
  declare const _default: React.NamedExoticComponent<Props>;
16
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Props as StepperProps } from "../progress/Stepper";
3
3
  import { FlexBoxProps as FlexProps } from "../../layout/Flex";
4
- export declare type StepProps = {
4
+ export type StepProps = {
5
5
  /**
6
6
  * A specific index, can be used to explicitely order steps.
7
7
  */
@@ -37,9 +37,9 @@ interface InnerProps {
37
37
  */
38
38
  stepsLength: number;
39
39
  }
40
- declare type StepChild = React.ReactElement<StepProps>;
41
- declare type SectionRenderFunc<ExtraProps> = (props: InnerProps & ExtraProps) => React.ReactNode;
42
- declare type SectionStepRenderFunc<ExtraProps> = (args: InnerProps & ExtraProps & {
40
+ type StepChild = React.ReactElement<StepProps>;
41
+ type SectionRenderFunc<ExtraProps> = (props: InnerProps & ExtraProps) => React.ReactNode;
42
+ type SectionStepRenderFunc<ExtraProps> = (args: InnerProps & ExtraProps & {
43
43
  children: React.ReactNode;
44
44
  }) => React.ReactNode;
45
45
  export interface Props<ExtraProps> {
@@ -101,14 +101,14 @@ declare namespace FlowStepper {
101
101
  var Indexed: typeof FlowStepperIndexed;
102
102
  }
103
103
  export default FlowStepper;
104
- export declare type IndexedStepProps = StepProps & {
104
+ export type IndexedStepProps = StepProps & {
105
105
  /**
106
106
  * String to identify the step. Must be different from sibling steps's `key` prop.
107
107
  */
108
108
  itemKey: string;
109
109
  };
110
- declare type IndexedStepperChild = React.ReactElement<IndexedStepProps>;
111
- export declare type IndexedProps<ExtraProps> = Omit<Props<ExtraProps>, "activeIndex" | "children"> & {
110
+ type IndexedStepperChild = React.ReactElement<IndexedStepProps>;
111
+ export type IndexedProps<ExtraProps> = Omit<Props<ExtraProps>, "activeIndex" | "children"> & {
112
112
  /**
113
113
  * The key of the active step
114
114
  */
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import FlexBox from "../../layout/Flex";
3
- export declare type Props = {
3
+ export type Props = {
4
4
  left?: React.ReactNode;
5
5
  right?: React.ReactNode;
6
6
  children?: React.ReactNode;
@@ -3,7 +3,7 @@ interface Step {
3
3
  key: string;
4
4
  label: string;
5
5
  }
6
- export declare type OnboardingProps = {
6
+ export type OnboardingProps = {
7
7
  steps: Step[];
8
8
  currentIndex: number;
9
9
  };
@@ -4,8 +4,8 @@ import { FlexBoxProps } from "../../../layout/Flex";
4
4
  /**
5
5
  * The state of a progress bar step.
6
6
  */
7
- export declare type StepState = "pending" | "current" | "completed" | "errored" | "disabled";
8
- declare type LabelType = string | React.ComponentType<{
7
+ export type StepState = "pending" | "current" | "completed" | "errored" | "disabled";
8
+ type LabelType = string | React.ComponentType<{
9
9
  state: StepState;
10
10
  }>;
11
11
  export interface Props extends FlexBoxProps {
@@ -29,7 +29,7 @@ export interface Props extends FlexBoxProps {
29
29
  */
30
30
  disabledIndexes?: number[];
31
31
  }
32
- export declare type StepProps = {
32
+ export type StepProps = {
33
33
  /**
34
34
  * State of the step.
35
35
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ItemLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../../asorted/Text").TextProps, keyof import("../../../asorted/Text").TextProps>;
3
- export declare type ItemType = {
3
+ export type ItemType = {
4
4
  label: string;
5
5
  children: JSX.Element;
6
6
  onClick: () => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type SideBarProps = {
2
+ export type SideBarProps = {
3
3
  children: Array<JSX.Element>;
4
4
  onToggle: () => void;
5
5
  isExpanded?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type ToggleButtonProps = {
2
+ type ToggleButtonProps = {
3
3
  isDisplayed: boolean;
4
4
  };
5
5
  declare const ToggleButton: ({ isDisplayed }: ToggleButtonProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type SideBarContextType = {
2
+ type SideBarContextType = {
3
3
  isExpanded: boolean;
4
4
  onToggle: () => void;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { StyledInterface, InterpolationFunction } from "styled-components";
2
2
  import { FlexboxProps, SpaceProps, PositionProps, ColorProps, LayoutProps, OverflowProps, BorderProps } from "styled-system";
3
- export declare type BaseStyledProps = SpaceProps & FlexboxProps & PositionProps & ColorProps & LayoutProps & BorderProps & OverflowProps & {
3
+ export type BaseStyledProps = SpaceProps & FlexboxProps & PositionProps & ColorProps & LayoutProps & BorderProps & OverflowProps & {
4
4
  /**
5
5
  * The columnGap CSS property sets the size of the gap (gutter) between an element's grid columns.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Props = React.PropsWithChildren<{
2
+ export type Props = React.PropsWithChildren<{
3
3
  /**
4
4
  * An optional callback that will be called when the active tab changes.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Props = React.PropsWithChildren<{
2
+ export type Props = React.PropsWithChildren<{
3
3
  /**
4
4
  * An optional callback that will be called when the active tab changes.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Props = React.PropsWithChildren<{
2
+ export type Props = React.PropsWithChildren<{
3
3
  /**
4
4
  * An optional callback that will be called when the active tab changes.
5
5
  */
@@ -6,7 +6,7 @@ export interface TabContent {
6
6
  badge?: string | number;
7
7
  Component: React.ReactFragment;
8
8
  }
9
- export declare type Props = React.PropsWithChildren<{
9
+ export type Props = React.PropsWithChildren<{
10
10
  /**
11
11
  * An optional callback that will be called when the active tab changes.
12
12
  */
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CSSTransitionProps } from "react-transition-group/CSSTransition";
3
- declare type TransitionInOutProps = Partial<CSSTransitionProps & {
3
+ type TransitionInOutProps = Partial<CSSTransitionProps & {
4
4
  children: React.ReactNode;
5
5
  in: boolean;
6
6
  timeout?: number;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CSSTransitionProps } from "react-transition-group/CSSTransition";
3
- declare type TransitionScaleProps = Partial<CSSTransitionProps & {
3
+ type TransitionScaleProps = Partial<CSSTransitionProps & {
4
4
  children: React.ReactNode;
5
5
  in: boolean;
6
6
  timeout?: number;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CSSTransitionProps } from "react-transition-group/CSSTransition";
3
- declare type TransitionSlideProps = Partial<CSSTransitionProps & {
3
+ type TransitionSlideProps = Partial<CSSTransitionProps & {
4
4
  children: React.ReactNode;
5
5
  fixed: boolean;
6
6
  reverseExit?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type Props = {
2
+ export type Props = {
3
3
  if?: boolean;
4
4
  };
5
5
  export declare const InvertTheme: ({ if: condition, children, }: React.PropsWithChildren<Props>) => React.ReactElement;
@@ -1,4 +1,4 @@
1
- export declare type GlobalStyleProps = {
1
+ export type GlobalStyleProps = {
2
2
  fontsPath?: string;
3
3
  fontMappings?: (name: string) => string;
4
4
  };
@@ -1,10 +1,10 @@
1
1
  import { DefaultTheme } from "styled-components";
2
2
  import { ColorPalette } from "@ledgerhq/ui-shared";
3
- export declare type screensBreakpoints = "sm" | "md" | "lg" | "xl" | "xxl";
3
+ export type screensBreakpoints = "sm" | "md" | "lg" | "xl" | "xxl";
4
4
  export declare const breakpoints: Record<screensBreakpoints, string>;
5
5
  export declare const space: number[];
6
- export declare type TextVariants = "h1" | "h1Inter" | "h2" | "h2Inter" | "h3" | "h3Inter" | "h4" | "h4Inter" | "h5" | "h5Inter" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "extraSmall" | "tiny" | "micro" | "subtitle";
7
- export declare type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
6
+ export type TextVariants = "h1" | "h1Inter" | "h2" | "h2Inter" | "h3" | "h3Inter" | "h4" | "h4Inter" | "h5" | "h5Inter" | "large" | "largeLineHeight" | "body" | "bodyLineHeight" | "paragraph" | "paragraphLineHeight" | "small" | "extraSmall" | "tiny" | "micro" | "subtitle";
7
+ export type ThemeScale<Type, Aliases extends string> = Array<Type> & Record<Aliases, Type>;
8
8
  export declare const fontSizes: ThemeScale<number, TextVariants>;
9
9
  export declare const radii: number[];
10
10
  export declare const shadows: string[];
@@ -113,4 +113,4 @@ declare module "styled-components" {
113
113
  }
114
114
  declare const theme: DefaultTheme;
115
115
  export default theme;
116
- export declare type Theme = DefaultTheme;
116
+ export type Theme = DefaultTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/react-ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.1-next.0",
4
4
  "description": "Ledger Live - Desktop UI",
5
5
  "author": "Ledger Live Team <team-live@ledger.fr>",
6
6
  "repository": {
@@ -57,9 +57,6 @@
57
57
  ],
58
58
  "dependencies": {
59
59
  "@floating-ui/react-dom": "^0.4.0",
60
- "@ledgerhq/crypto-icons-ui": "^0.2.1",
61
- "@ledgerhq/icons-ui": "^0.3.0",
62
- "@ledgerhq/ui-shared": "^0.1.10",
63
60
  "@tippyjs/react": "^4.2.6",
64
61
  "@types/color": "^3.0.2",
65
62
  "@types/react": "~17.0.37",
@@ -77,7 +74,10 @@
77
74
  "react-select": "^5.2.1",
78
75
  "react-transition-group": "^4.4.2",
79
76
  "react-window": "^1.8.6",
80
- "styled-system": "^5.1.5"
77
+ "styled-system": "^5.1.5",
78
+ "@ledgerhq/crypto-icons-ui": "^0.2.1",
79
+ "@ledgerhq/icons-ui": "^0.3.1-next.0",
80
+ "@ledgerhq/ui-shared": "^0.1.10"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^17.0.2",